wc_germanized_show_settings_<current_section>
The WooCommerce Germanized wc germanized show settings current section hook.
Description
Parameters (1)
- 0. $true (bool) =>
true
- The true.
Usage
- To run the hook, copy the example below.
- $true = apply_filters( 'wc_germanized_show_settings_{$current_section}', $true );
- if ( !empty( $true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wc_germanized_show_settings_<current_section> callback
- function filter_wc_germanized_show_settings_current_section( $true ) {
- // make filter magic happen here...
- return $true;
- };
- // add the filter
- add_filter( "wc_germanized_show_settings_{$current_section}", 'filter_wc_germanized_show_settings_current_section', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( "wc_germanized_show_settings_{$current_section}", 'filter_wc_germanized_show_settings_current_section', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /includes/admin/views/html-settings-section.php
- <?php if ( apply_filters( 'wc_germanized_show_settings_' . sanitize_title( $current_section ), true ) ) : ?>
- /includes/admin/settings/class-wc-gzd-settings-germanized.php
- if ( apply_filters( 'wc_germanized_show_settings_' . $current_section, true ) )