appthemes_list_page_comments

This function executes in the comments-page.php file and loads in the page comments. This is where the page comments are hooked and loaded from.

Usage

This hook provides no parameters. You use this hook by having your function echo output to the browser, or by having it perform background tasks. Your functions shouldn’t return, and shouldn’t take any parameters.

add_action( 'appthemes_list_page_comments', 'your_function' );

Example

<?php
// remove the default ClassiPress page comments code
remove_action( 'appthemes_list_page_comments', 'cp_list_comments' ); 
 
// now load your own comments code
function insert_your_code_block() { 
    global $post;
 
    wp_list_comments( array( 'callback' => 'my_custom_comments_callback', 'type' => 'comment' ) );
}
add_action( 'appthemes_list_page_comments', 'insert_your_code_block' ); 
?>

Changelog

  • since 1.1

Source File

appthemes_list_page_comments() is located in comments-page.php.

Your rating: none
Rating: 0 - 0 votes

Popular Add-ons

Motivate Mails

Motivate users to purchase featured ads on your ClassiPress website


(1)
$19

Price Comparer

Jump start your Price Comparision site with products from Amazon,…


(3)
$29

AdPoster Blocker

A simple but powerful plugin that blocks spammy new user regs and/or…


(5)
$19