This function executes in the comments-blog.php file and loads after the trackback/pingback section.
appthemes_after_blog_pings(); |
Example: Share Link
You can use this hook to add meta data to a post, like a share link for social media sites.
<?php
function insert_share_link() {
echo '<div class="share-link">' . __( 'Share this link with your friends!', 'appthemes' ) . '<input type="text" value="' . esc_attr( get_permalink() ) . '">';
}
add_action( 'appthemes_after_blog_pings', 'insert_share_link' );
?> |
Changelog
Source File
appthemes_after_blog_pings()
is located in comments-blog.php
.
This function executes in the comments-blog.php file and loads before the comments respond form.
appthemes_before_blog_respond(); |
Example: Legal Disclaimers
You can use this hook to add things like legal disclaimers or other information your readers should know after commenting.
<?php
function insert_comments_disclaimer() {
echo '<div class="disclaimer">' . __( 'Comments will be moderated and approved upon author\'s discretion.', 'appthemes' ) . '</div>';
}
add_action( 'appthemes_before_blog_respond', 'insert_comments_disclaimer' );
?> |
Changelog
Source File
appthemes_before_blog_respond()
is located in comments-blog.php
.
This function executes in the comments-blog.php file and loads after the comments respond form.
appthemes_after_blog_respond(); |
Example: Legal Disclaimers
You can use this hook to add things like legal disclaimers or other information your readers should know after commenting.
<?php
function insert_comments_disclaimer() {
echo '<div class="disclaimer">' . __( 'Comments will be moderated and approved upon author\'s discretion.', 'appthemes' ) . '</div>';
}
add_action( 'appthemes_after_blog_respond', 'insert_comments_disclaimer' );
?> |
Changelog
Source File
appthemes_after_blog_respond()
is located in comments-blog.php
.
This function executes in the comments-blog.php file and loads before the blog comments respond form.
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_before_blog_comments_form', 'your_function' ); |
Example: Legal Disclaimers
You can use this hook to add things like legal disclaimers or other information your readers should know before commenting.
<?php
function insert_comments_disclaimer() {
echo '<div class="disclaimer">' . __( 'Comments will be moderated and approved upon author\'s discretion.', 'appthemes' ) . '</div>';
}
add_action( 'appthemes_before_blog_comments_form', 'insert_comments_disclaimer' );
?> |
Changelog
Source File
appthemes_before_blog_comments_form()
is located in comments-blog.php
.
This function executes in the comments-page.php file and loads before the page comments respond form.
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_before_page_comments_form', 'your_function' ); |
Example: Legal Disclaimers
You can use this hook to add things like legal disclaimers or other information your readers should know after commenting.
<?php
function insert_comments_disclaimer() {
echo '<div class="disclaimer">' . __( 'Comments will be moderated and approved upon author\'s discretion.', 'appthemes' ) . '</div>';
}
add_action( 'appthemes_before_page_comments_form', 'insert_comments_disclaimer' );
?> |
Changelog
Source File
appthemes_before_page_comments_form()
is located in comments-page.php
.
This function executes in the comments-page.php file and loads after the comments respond form.
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_after_page_respond', 'your_function' ); |
Example: Legal Disclaimers
You can use this hook to add things like legal disclaimers or other information your readers should know after commenting.
<?php
function insert_comments_disclaimer() {
echo '<div class="disclaimer">' . __( 'Comments will be moderated and approved upon author\'s discretion.' ) . '</div>';
}
add_action( 'appthemes_after_page_respond', 'insert_comments_disclaimer' );
?> |
Changelog
Source File
appthemes_after_page_respond()
is located in comments-page.php
.
This function executes in the comments-page.php file and loads before the comments respond form.
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_before_page_respond', 'your_function' ); |
Example: Legal Disclaimers
You can use this hook to add things like legal disclaimers or other information your readers should know before commenting.
<?php
function insert_comments_disclaimer() {
echo '<div class="disclaimer">' . __( 'Comments will be moderated and approved upon author\'s discretion.', 'appthemes' ) . '</div>';
}
add_action( 'appthemes_before_page_respond', 'insert_comments_disclaimer' );
?> |
Changelog
Source File
appthemes_before_page_respond()
is located in comments-page.php
.
This function executes in the comments-page.php file and loads after the trackback/pingback section.
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_after_page_pings', 'your_function' ); |
Example: Share Link
You can use this hook to add meta data to a page, like a share link for social media sites.
<?php
function insert_share_link() {
echo '<div class="share-link">' . __( 'Share this link with your friends!', 'appthemes' ) . '<input type="text" value="' . esc_attr( get_permalink() ) . '">';
}
add_action( 'appthemes_after_page_pings', 'insert_share_link' );
?> |
Changelog
Source File
appthemes_after_page_pings()
is located in comments-page.php
.
This function executes in the comments-page.php file and loads the pingback/trackback function call. You can remove this action and replace it with your own.
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_pings', 'your_function' ); |
Example
<?php
// remove the default ClassiPress pingback/trackback code
remove_action( 'appthemes_list_page_pings', 'cp_list_pings' );
// now load your own pingback/trackback code
function insert_your_code_block() {
global $post;
wp_list_comments( array(
'callback' => 'my_custom_comment_callback',
'type' => 'pings'
) );
}
add_action( 'appthemes_list_page_pings', 'insert_your_code_block' );
?> |
Changelog
Source File
appthemes_list_page_pings()
is located in comments-page.php
.
This function executes in the comments-page.php file and loads before the trackback and pingback section.
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_before_page_pings', 'your_function' ); |
Example: Share Link
You can use this hook to add meta data to a post, like a share link for social media sites.
<?php
function insert_share_link() {
echo '<div class="share-link">' . __( 'Share this link with your friends!', 'appthemes' ) . '<input type="text" value="' . esc_attr( get_permalink() ) . '">';
}
add_action( 'appthemes_before_page_pings', 'insert_share_link' );
?> |
Changelog
Source File
appthemes_before_page_pings()
is located in comments-page.php
.