Filters
Admin page
core/controllers/class-admin.php
Common script vars
core/controllers/class-assets.php
All script vars
core/controllers/class-assets.php
Scripts list
core/controllers/class-assets.php
Styles list
core/controllers/class-assets.php
Privacy content
core/controllers/class-gdpr.php
Locale vars
core/controllers/class-i18n.php
Sub-menu items
core/controllers/class-menu.php
Actions
After activate
core/controllers/class-installer.php
After upgrade
core/controllers/class-installer.php
After settings
core/controllers/class-settings.php

7.1 Filter: beehive_admin_body_classes_is_plugin_admin

Copy chapter anchor to clipboard

Description

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 clipboard

Description

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 clipboard

Description

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 clipboard

Description

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 clipboard

Description

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 clipboard

Description

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 clipboard

Description

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.8 Filter: beehive_main_menu_items

Copy chapter anchor to clipboard

Description

Filter to add new items to the Beehive admin menu.

Usage

add_filter( ‘beehive_main_menu_items’, ‘custom_beehive_filter’ );

Parameters

$submenus

Return

array

Example

7.9 Action: beehive_after_activate

Copy chapter anchor to clipboard

Description

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 clipboard

Description

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 clipboard

Description

Action hook to execute after initializing settings.

Usage

add_action( ‘beehive_settings_init’, ‘custom_beehive_action’ );

Parameters

$options

Return

array

Example