The generate_after_main_content hook appears before the closing .site-main element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
Author 詩語
Menu Plus Overview
The Menu Plus add-on in GP Premium adds various menu related options in the Customizer.
To use this add-on, first make sure GP Premium is installed, and that the add-on is activated.
All of the Menu Plus options are added in Customize > Layout inside their respective Sections.
Please refer to the related articles below for information on specific options.
Video Overview
generate_footer_widget_4_width
The generate_footer_widget_4_width filter allows you to choose the widget of your Footer Widget 4 area.
Default (integer): 100 / your chosen number of widgets
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_after_archive_title
The generate_after_archive_title hook appears after the archive title on archive pages.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_before_header
Note: This hook is included in the GP Hooks add-on inside GP Premium.
The generate_before_header hook appears before the opening
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_after_left_sidebar_content
Note: This hook is included in the GP Hooks add-on inside GP Premium.
The generate_after_left_sidebar_content hook appears before the closing .inside-left-sidebar element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_before_main_content
The generate_before_main_content hook appears inside the .site-main element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
Using Hooks
GeneratePress uses the WordPress Hooks API to insert various hooks throughout the theme.
These hooks allow you to insert functions into various areas inside the theme.
To view the available hooks, please refer to the Hooks category.
Usage
add_action( 'your_hook_name','example_function_name' );
function example_function_name() { ?>
Insert your hook contents in here.
<?php }
In the example above, replace your_hook_name with the name of the hook you』re wanting to use, like wp_head or generate_before_header.
Then replace example_function_name with a unique function name, something specific to you. My name is Tom Usborne, so I would prefix my function like this for example: tu_insert_into_wp_head
Learn how to add PHP here.
generate_footer_widget_3_tablet_width
The generate_footer_widget_3_tablet_width filter allows you to choose the width of your Footer Widget 3 area as seen on tablets.
Default (integer): 50
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_before_archive_title
The generate_before_archive_title hook appears before the archive title on archive pages.
Usage
Please refer to the Using Hooks article to learn how to use this hook.