Created
July 10, 2016 15:45
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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