breadcrumbspress_theme_action_name_{$theme}

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Definition
apply_filters( "breadcrumbspress_theme_action_name_{$theme}", $name );
Arguments
Name
Type
Description
$name
string
Configured theme action name.
Returns
Return a supported action name.

Filters the action name used by a theme integration.

Replace {$theme} with the integration identifier and register the filter before that integration is constructed. If the integration has an allowed-action list and the result is not in it, the first allowed action is used. The current Blocksy class uses blocky as its internal identifier.

Example

This example registers a callback for the concrete hook name shown; replace the suffix for your own context.

add_filter( 'breadcrumbspress_theme_action_name_generatepress', function( $name ) {
    return 'generate_before_footer';
}, 10, 1 );
Rate this reference
0
0
2

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0