7. Beehive API Docs
7.1 Filter: beehive_admin_body_classes_is_plugin_admin
Copy chapter anchor to clipboardDescription
Filter to include the current page for the Beehive admin class.
Usage
add_filter( ‘beehive_admin_body_classes_is_plugin_admin’, ‘custom_beehive_filter’ );
Parameters
$is_plugin_admin
Return
boolean
Example
7.2 Filter: beehive_assets_scripts_localize_vars_{$script}
Copy chapter anchor to clipboardDescription
Filter to add/remove vars in common script
Usage
add_filter( ‘beehive_assets_scripts_localize_vars_MY_SCRIPT_NAME’, ‘custom_beehive_filter’ );
Parameters
$vars
Return
array
Example
7.3 Filter: beehive_assets_scripts_common_localize_vars
Copy chapter anchor to clipboardDescription
Filter to add/remove vars in all scripts.
Usage
add_filter( ‘beehive_assets_scripts_common_localize_vars’, ‘custom_beehive_filter’ );
Parameters
$vars
Return
array
Example
7.4 Filter: beehive_assets_get_scripts
Copy chapter anchor to clipboardDescription
Filter to include/exclude new script to the list of scripts to register.
Usage
add_filter( ‘beehive_assets_get_scripts’, ‘custom_beehive_filter’ );
Parameters
$scripts
Return
array
Example
7.5 Filter: beehive_assets_get_styles
Copy chapter anchor to clipboardDescription
Filter to include/exclude a new style to the list of styles to register.
Usage
add_filter( ‘beehive_assets_get_styles’, ‘custom_beehive_filter’ );
Parameters
$styles
Return
array
Example
7.6 Filter: beehive_privacy_content
Copy chapter anchor to clipboardDescription
Filter to modify privacy policy content for Beehive.
Usage
add_filter( ‘beehive_privacy_content’, ‘custom_beehive_filter’ );
Parameters
$content
Return
string
Example
7.7 Filter: beehive_i18n_get_locale_scripts
Copy chapter anchor to clipboardDescription
Filter to add more strings to the script specific locale vars.
Usage
add_filter( ‘beehive_i18n_get_locale_scripts’, ‘custom_beehive_filter’ );
Parameters
$strings
Return
array
Example
7.9 Action: beehive_after_activate
Copy chapter anchor to clipboardDescription
Action hook to execute after activation.
Usage
add_action( ‘beehive_after_activate’, ‘custom_beehive_action’ );
Parameters
$version
Return
int
Example
7.10 Action: beehive_after_upgrade
Copy chapter anchor to clipboardDescription
Action hook to execute after an upgrade.
Usage
add_action( ‘beehive_after_upgrade’, ‘custom_beehive_action’ );
Parameters
$version
Return
int
Example
7.11 Action: beehive_settings_init
Copy chapter anchor to clipboardDescription
Action hook to execute after initializing settings.
Usage
add_action( ‘beehive_settings_init’, ‘custom_beehive_action’ );
Parameters
$options
Return
array
Example
7.12 Get Support
Copy chapter anchor to clipboardIf you still have questions or need assistance after reading this document, please don’t hesitate to contact our support superheroes using the available options under the Support tab in your Hub or via the Support tab in your WPMU DEV Dashboard.