Design System is here - Read the release post

Learn GeneratePress

Header hooks

These hooks fire around and inside the GeneratePress header, in header.php and inc/structure/header.php. For the settings that control what’s in the header, see the Header guide; for changing header values in code, see Logo and site title filters. Hooks in firing order Around the header generate_before_header GP Free The generate_before_header hook fires right before the … Read more

Excerpts and featured images filters

Filters for what shows on the blog and archive pages — excerpt length, the read more link, and featured images. Most of these are set in Blog; see the Blog Content and Featured images sections. Jump to Excerpts and read more excerpt_length GP Premium — Blog module. The excerpt_length filter (a WordPress core filter) sets … Read more

Navigation and mobile menu hooks

These hooks fire in and around the primary navigation, its mobile menu, and — with GP Premium’s Menu Plus — the secondary and slide-out navigation. For the settings that control what’s in the navigation, see Navigation; for changing navigation values in code, see Navigation and search filters. Hooks in firing order Primary navigation generate_before_navigation GP … Read more

Legacy: Page Header and Sections filters

Filters for the legacy Page Header and Sections modules — both replaced by GP Premium’s Elements module (Block and Hero elements); see Legacy Features. Jump to Page Header (legacy) generate_page_header_default_size GP Free The generate_page_header_default_size filter allows you to change the default size of your featured images. Parameters: $value (string). Default: full. Guide: Legacy Features generate_page_header_id … Read more

Scroll and back to top filters

Filters for the back-to-top button and, with GP Premium’s General module, smooth scroll. Jump to Back to top generate_back_to_top_icon GP Free The generate_back_to_top_icon filter allows you to change the icon in the back to top button. Parameters: $value (string). Default: fa-angle-up. Guide: General & Performance generate_back_to_top_output GP Free The generate_back_to_top_output filter allows you to change … Read more

Settings defaults filters

The option_generate_* family: WordPress core option filters that let you change a module’s whole Customizer settings array under conditions you choose. Jump to Option filters option_generate_settings GP Free The option_generate_settings filter lets you change the free theme’s Customizer settings under conditions you choose — it receives the whole settings array, keyed by option name. Parameters: … Read more

Logo and site title filters

Filters for the logo and site title, including the GP Premium mobile header and navigation logo. Jump to Logo generate_logo GP Free The generate_logo filter allows you to change your logo. Parameters: $value (URL). Default: Your logo set in Customize > Site Identity. Related: generate_logo_output Guide: Site Identity & Logo generate_logo_href GP Free The generate_logo_href … Read more

Elements and Page Hero filters

Filters for GP Premium’s Elements module (Hook, Block and Display elements) and Page Hero. Jump to Elements generate_element_display GP Premium — Elements module. The generate_element_display allows us to bypass the Display Rules, so we can enable or disable an Element under our own conditions. Parameters: $value. Default: the result of this element’s own Display Rules. … Read more

Admin and capabilities filters

Filters and actions for the WordPress admin — dashboard screens, user capabilities, the Customizer, and loading/updates. Jump to Actions (admin screens) generate_dashboard_after_header GP Free The generate_dashboard_after_header hook appears directly after the header in the Appearance > GeneratePress dashboard page. Parameters: none. Default: —. Guide: Developers generate_dashboard_inside_container GP Free The generate_dashboard_inside_container hook appears inside the main … Read more

WooCommerce filters

Filters for GP Premium’s WooCommerce module. Jump to WooCommerce (GP Premium) generate_woocommerce_menu_cart_icon GP Premium — WooCommerce module. The generate_woocommerce_menu_cart_icon filter allows you to change the icon HTML that builds the WooCommerce cart icon in the primary navigation. Parameters: $value. Default: ” (empty string). Guide: WooCommerce generate_woocommerce_menu_item_location GP Premium — WooCommerce module. The generate_woocommerce_menu_item_location allows you … Read more