Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/8835ceb0c1b18806d720e226d5d21e40 to your computer and use it in GitHub Desktop.
Save hellofromtonya/8835ceb0c1b18806d720e226d5d21e40 to your computer and use it in GitHub Desktop.
Reordering Author Box & After Entry Widgetized Area + Exploring the callbacks in the Event Registry Table in WordPress Plugin API
//remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
//add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 7 );
add_action( 'genesis_after_entry', 'genesis_do_author_box_single', 11 );
remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
add_action( 'genesis_after_entry', 'ktc_show_event_table', 1 );
/**
* Let's look inside of the event registry table for the event name
* 'genesis_after_entry'. `$wp_filter` is the global variable for
* the event registry within the WordPress Plugin API.
*
* @since 1.0.0
*
* @return void
*/
function ktc_show_event_table() {
global $wp_filter;
d( $wp_filter['genesis_after_entry'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment