appthemes_before_comments

This function executes in the comments-[post_type].php file and runs before the comments template is loaded.

appthemes_before_comments();

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_comments', 'insert_comments_disclaimer' ); 
?>

Changelog

  • since 1.1

Source File

appthemes_before_comments() is located in comments-[post_type].php.

Your rating: none
Rating: 5 - 1 vote

Popular Add-ons

BetterMobile

Enhance the mobile experience of your ClassiPress website!


(3)
$10

Daleel for Vantage

Daleel is a fresh and clean Child theme for Vantage 4.x.


(6)
$49

GeoReg

Captures detailed geographic info with new user registrations.


(10)
$29