mctp_show_bar
The MailChimp for WordPress - Top Bar mctp show bar hook.
Description
Parameters (1)
- 0. $true (bool) =>
true
- The true.
Usage
- To run the hook, copy the example below.
- $true = apply_filters( 'mctp_show_bar', $true );
- if ( !empty( $true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the mctp_show_bar callback
- function filter_mctp_show_bar( $true ) {
- // make filter magic happen here...
- return $true;
- };
- // add the filter
- add_filter( 'mctp_show_bar', 'filter_mctp_show_bar', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'mctp_show_bar', 'filter_mctp_show_bar', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /src/Bar.php
- $return = apply_filters( 'mctp_show_bar', true );