WordPress.org

Ready to get started?Download WordPress

Forums

Like Dislike Counter
[resolved] can you explain please what this code do? (2 posts)

  1. cikatomo
    Member
    Posted 1 year ago #

    if (!$changedDir)$changedDir = preg_replace('|wp-content.*$|','',__FILE__);

    and what ajax_counter.php does in general?

    Thanks a lot, great plugin

    http://wordpress.org/extend/plugins/like-dislike-counter-for-posts-pages-and-comments/

  2. Tikendra Maitry
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Cikatomo,

    if (!$changedDir)$changedDir = preg_replace('|wp-content.*$|','',__FILE__);

    This code loads WordPress Farmework into ajax_counter.php file for using WordPress Functions outside the function file or theme files.

    And ajax_counter.php file is for submitting users vote using ajax.

    Regards,
    Tiks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.