7. Beehive API Docs
WPMU DEV is dedicated to supporting advanced users in every possible way. Our Beehive API Documentation is an ongoing project. Information about new commands will be added here as it becomes available.
7.1 Filters & Actions
Copy chapter anchor to clipboard7.1.1 Filter: beehive_admin_body_classes_is_plugin_admin
Link to chapter 1Description
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.1.2 Filter: beehive_assets_scripts_localize_vars_{$script}
Link to chapter 1Description
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.1.3 Filter: beehive_assets_scripts_common_localize_vars
Link to chapter 1Description
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.1.4 Filter: beehive_assets_get_scripts
Link to chapter 1Description
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.1.5 Filter: beehive_assets_get_styles
Link to chapter 1Description
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.1.6 Filter: beehive_privacy_content
Link to chapter 1Description
Filter to modify privacy policy content for Beehive.
Usage
add_filter( ‘beehive_privacy_content’, ‘custom_beehive_filter’ );
Parameters
$content
Return
string
Example
7.1.7 Filter: beehive_i18n_get_locale_scripts
Link to chapter 1Description
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.1.9 Action: beehive_after_activate
Link to chapter 1Description
Action hook to execute after activation.
Usage
add_action( ‘beehive_after_activate’, ‘custom_beehive_action’ );
Parameters
$version
Return
int
Example
7.1.10 Action: beehive_after_upgrade
Link to chapter 1Description
Action hook to execute after an upgrade.
Usage
add_action( ‘beehive_after_upgrade’, ‘custom_beehive_action’ );
Parameters
$version
Return
int
Example
7.1.11 Action: beehive_settings_init
Link to chapter 1Description
Action hook to execute after initializing settings.
Usage
add_action( ‘beehive_settings_init’, ‘custom_beehive_action’ );
Parameters
$options
Return
array
Example
7.2 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.