Return to Snippet

Revision: 47341
at June 6, 2011 01:00 by alp


Initial Code
/**
 * Enable Threaded Comments
 * http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/
 *
 **/
function myfunction_enable_threaded_comments(){
	if (!is_admin()) {
		if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
			wp_enqueue_script('comment-reply');
		}
}
add_action('get_header', 'myfunction_enable_threaded_comments');

Initial URL
http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/

Initial Description


Initial Title
Wordpress: Enable Threaded Comments

Initial Tags
wordpress

Initial Language
PHP