Note: This filter is included in GP Premium.
The generate_sections_post_types filter allows you to use the Sections add-on in a custom post type.
Example:
add_filter( 'generate_sections_post_types','generate_add_section_post_types' );
function generate_add_section_post_types() {
return array( 'page','post','yourposttype' );
}
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_blog_columns
Note: This filter is included in GP Premium.
The generate_blog_columns filter allows you to apply columns to a custom post type.
See example here.
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_sections_sidebars
Note: This filter is included in GP Premium.
The generate_sections_sidebars filter allows you to use sidebars with Sections add-on.
Learn how to use this filter here.
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_premium_beta_tester
Note: This filter is included in GP Premium.
The generate_premium_beta_tester filter allows you to become a beta tester.
Learn how to use this filter here.
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_blog_image_attributes
Note: This filter is included in GP Premium.
The generate_blog_image_attributes filter allows you to adjust the featured image sizes based on different conditions.
See example here.
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_back_to_top_start_scroll
The generate_back_to_top_start_scroll filter allows you to choose how far from the top of the screen the button appears.
Default (integer): 300
Usage
Please refer to the Using Filters article to learn how to use this filter.
generate_mobile_cart_items
Note: This hook is included in GP Premium.
The generate_mobile_cart_items hook appears inside the .wc-mobile-cart-items element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_inside_secondary_mobile_menu
Note: This hook is included in GP Premium.
The generate_inside_secondary_mobile_menu hook appears inside the .secondary-menu-toggle element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_inside_mobile_header_menu
Note: This hook is included in GP Premium.
The generate_inside_mobile_header_menu hook appears inside the .menu-toggle element within the mobile header.
Usage
Please refer to the Using Hooks article to learn how to use this hook.
generate_inside_comments
The generate_inside_comments hook appears inside the #comments element.
Usage
Please refer to the Using Hooks article to learn how to use this hook.