generate_search_label

generate_search_label

The generate_search_label filter allows you to change the default Search for: text.
Default (string): Search for:
Usage
Please refer to the Using Filters article to learn how to use this filter.

Changelogs

Changelogs

Changelogs are logs what what changes took place is certain updates.
In most cases, you can find .txt files in your updates named changelog.txt which has all of the changes.
You can also check out our development blog here.

generate_inside_mobile_menu_bar

generate_inside_mobile_menu_bar

The generate_inside_mobile_menu_bar hook appears inside the .mobile-bar-items element which exists if your navigation search is enabled. This element only displays on mobile.
Usage
Please refer to the Using Hooks article to learn how to use this hook.

generate_post_comment

generate_post_comment

The generate_post_comment filter allows you to change the default Post Comment text.
Default (string): Post Comment
Usage
Please refer to the Using Filters article to learn how to use this filter.

generate_premium_url_args

generate_premium_url_args

This filter allows you to add certain arguments to the premium URLs in the free theme Dashboard.
For example, you can add your affiliate ID and campaign to all URLs in the Dashboard and Customizer that point to GeneratePress.
So if my affiliate ID is 1, and my campaign name (optional) is test, I would do this:
add_filter( 'generate_premium_url_args', 'tu_affiliate_id' );
function tu_affiliate_id( $args )
{
$args = array(
'ref' => 1,
'campaign' => 'test'
);
return $args;
}
Now all of the URLs pointing to generatepress.com in the Dashboard will have my affiliate ID and campaign added to them.

generate_page_header_video_loop

generate_page_header_video_loop

The generate_page_header_video_loop filter allows you to choose whether the background video in the page header loops or not.
Default (boolean): true
Usage
Please refer to the Using Filters article to learn how to use this filter.

generate_404_text

generate_404_text

The generate_404_text filter allows you to change the default 404 text.
Default (string): It looks like nothing was found at this location. Maybe try one of the links below or a search?
Usage
Please refer to the Using Filters article to learn how to use this filter.

generate_default_color_palettes

generate_default_color_palettes

This filter allows you to set the default color palettes inside your color pickers in the Customizer.
This filter requires an array in the return.
You should return 8 colors.
add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
function tu_custom_color_palettes( $palettes ) {
$palettes = array(
'#000000',
'#FFFFFF',
'#F1C40F',
'#E74C3C',
'#1ABC9C',
'#1e72bd',
'#8E44AD',
'#00CC77',
);

return $palettes;
}

Allow Sidebars with Sections

Allow Sidebars with Sections

By default, Sections are meant to be the full width or your content.
In some cases, you may want to use Sections along with your sidebar.
In that case, you need to add this function:
add_filter( 'generate_sections_sidebars','__return_true' );
Learn how to add PHP here.

generate_404_title

generate_404_title

The generate_404_title filter allows you to change the default 404 title.
Default (string): Oops! That page can』t be found.
Usage
Please refer to the Using Filters article to learn how to use this filter.