Jump to content
Sign in to follow this  
dmillbank

List of hooks

Recommended Posts

dmillbank

When I go to Dashboard > Platform Pro > Settings > Template Setup > Site Header Template Sections and click on the down arrow for Advanced Setup a list of hooks are presented and at the bottom of the list it says (View template for additional hooks & filters). Could somebody please direct me to what template that last sentence is referring to? It would be great to have a reference sheet for all the hooks that are available.

Share this post


Link to post
Share on other sites
dmillbank

Simon, you're the man. ;) Thanks!

Share this post


Link to post
Share on other sites
jane_l

Is there a hook to place something inside the comment loop? I'm trying to add this php code:

<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Edit'); } ?>
	
	<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::delete('Delete'); } ?>
	
but using the following results in the Edit comments function showing up after the comment input box, not inside the comment. Thanks.
add_action('pagelines_inside_bottom_pl_comments','edit_comments');
	
	function edit_comments() {
	
		?>
	
	<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Edit'); } ?>
	
	<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::delete('Delete'); } ?>
	
		<?php }
	

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×