GeneratePress AI is here - Read the release post

Learn GeneratePress

Titles and content display filters

Filters for whether titles and entry headers show, and for the main loop and 404 page. Jump to Titles and entry header generate_show_title GP Free The generate_show_title filter allows you to choose whether to display your page titles or not. Parameters: $value (boolean). Default: true. Guide: Content generate_show_entry_header GP Free The generate_show_entry_header filter allows you … Read more

Comments filters

Filters for comment-related text and behaviour. Jump to Comments title and form text generate_comments_title_output GP Free The generate_comments_title_output filter allows you to change the output of the comment title element. Parameters: $value. Default: shown right, computed at render time: Guide: Blog generate_comment_form_title GP Free The generate_comment_form_title filter allows you to change the default # thoughts … Read more

Article hooks

These hooks fire around a single article’s content — the post, page, or archive entry. Hooks in firing order Around the article generate_before_do_template_part GP Free The generate_before_do_template_part hook appears at the start of generate_do_template_part() function. Parameters: $template. Default: —. Related: generate_after_do_template_part Guide: Content generate_before_content GP Free The generate_before_content hook appears inside the .inside-article element. Parameters: … 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

Comments hooks

These hooks fire around the comments area and each individual comment. Hooks in firing order Comments area generate_before_comments_container GP Free The generate_before_comments_container hook appears before the .comments-area element. Parameters: none. Default: —. Guide: Blog generate_before_comments GP Free The generate_before_comments hook appears inside the .comments-area element. Parameters: none. Default: —. Guide: Blog generate_inside_comments GP Free The … Read more

Sidebar hooks

These hooks fire around the left and right sidebars. Hooks in firing order Sidebar wrapper (legacy) generate_sidebars GP Free The generate_sidebars hook was removed from the main templates in GeneratePress 2.0, but is kept for backward compatibility and still fires from GP Premium’s legacy Sections template. Parameters: none. Default: —. Related: generate_after_primary_content_area Guide: Sidebars Back … Read more

Footer hooks

These hooks fire around the footer, footer widgets and copyright bar. generate_after_footer_widgets, generate_before_copyright and generate_credits all fire nested inside the generate_footer action, between generate_before_footer_content and generate_after_footer_content. Hooks in firing order Around the footer generate_before_footer GP Free The generate_before_footer hook appears before the .site-footer element. Parameters: none. Default: —. Related: generate_after_footer Guide: Footer generate_before_footer_content GP Free … Read more

Post meta and dates filters

Filters for the post meta shown with each entry — dates, author, categories, tags and comment count — and which post types show it. Jump to Dates generate_post_date GP Free The generate_post_date filter allows you to choose whether to display your post dates or not. Parameters: $value (boolean). Default: true. Related: generate_post_date_output Guide: Blog generate_post_date_output … Read more

Layout, sidebars, footer and widgets filters

Filters for sidebar layout and width, widget titles, and the footer widget areas. Jump to Sidebars generate_sidebar_layout GP Free The generate_sidebar_layout filter allows you to set your sidebar layout. Parameters: $value (string). Default: Your sidebar layout set in the Customizer or meta box. Guide: Sidebars generate_left_sidebar_width GP Free The generate_left_sidebar_width filter allows you to set … Read more

CSS classes and markup filters

Filters for the CSS classes GeneratePress adds to its structural elements, and for schema/markup output. Jump to CSS classes generate_header_class GP Free The generate_header_class allows you to add to the classes in the #site-header element. Parameters: $value. Default: an array of the theme’s own CSS classes for this element. Guide: Developers generate_inside_header_class GP Free The … Read more