Created
May 16, 2017 04:16
-
-
Save fastlinemedia/e018309618b15bae39382b699fc11bf5 to your computer and use it in GitHub Desktop.
Adding custom hooks for parts to Beaver Themer.
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
function my_theme_register_part_hooks( $parts ) { | |
$parts[] = array( | |
'label' => 'Custom Hooks', | |
'hooks' => array( | |
'genesis_after_before-footer_widget_area' => 'Before Footer Widgets', | |
) | |
); | |
return $parts; | |
} | |
add_filter( 'fl_theme_builder_part_hooks', 'my_theme_register_part_hooks', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is fantastic. Works perfectly. Thank you, Justin.