Design System is here - Read the release post

Learn GeneratePress

Pagination and post navigation filters

Filters for post navigation (previous/next links) and pagination. Jump to Post navigation generate_show_post_navigation GP Free The generate_show_post_navigation allows you to remove the individual post navigation shown at the bottom of your single posts. Parameters: $value (bool). Default: true. Guide: Blog generate_post_navigation_args GP Free The generate_post_navigation_args filter allows you to modify the markup of post navigation. … 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

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