most_liked_posts

The bbPress Like Button most liked posts shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[most_liked_posts]'); 
  1. // variable usage 
  2. $result = do_shortcode('[most_liked_posts]'); 
  3. echo $result;  

Defined (2)

The shortcode is defined in the following location(s).

/class.bbpress_like.php  
  1. add_action('wp_ajax_delete_like', array($this, 'delete_like')); 
  2.  
  3. //Shortcodes 
  4. add_shortcode('most_liked_users', array($this, 'get_most_liked_users_shortcode')); 
  5. add_shortcode('most_liking_users', array($this, 'get_most_liking_users_shortcode')); 
  6. add_shortcode('most_liked_posts', array($this, 'get_most_liked_posts_shortcode')); 
  7.  
  8. //Load text strings 
  9. $this->load_labels(); 
  10.  
  11. //Add settings link to plugins page 
  1. add_action('wp_ajax_delete_like', array($this, 'delete_like')); 
  2.  
  3. //Shortcodes 
  4. add_shortcode('most_liked_users', array($this, 'get_most_liked_users_shortcode')); 
  5. add_shortcode('most_liking_users', array($this, 'get_most_liking_users_shortcode')); 
  6. add_shortcode('most_liked_posts', array($this, 'get_most_liked_posts_shortcode')); 
  7.  
  8. //Load text strings 
  9. $this->load_labels(); 
  10.  
  11. //Add settings link to plugins page