WordPress.org

Forums

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

  1. cikatomo
    Member
    Posted 2 years 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. Sketch Themes
    Member
    Plugin Author

    Posted 2 years 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

  • Like Dislike Counter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.