Commons In A Box 1.8.1 has 18 actions and 31 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Commons In A Box fires an action
add_action( 'cbox_plugins_loaded', function( $plugins ) {
// Your code runs here.
}, 10, 1 );
// Change a value Commons In A Box is about to use
add_filter( 'bp_email_post_type', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This hook is documented in admin/plugins-loader.php */ do_action( 'cbox_plugins_loaded', cbox()->plugins ); -
/** * This filter is documented in /plugins/buddypress/class-buddypress.php */ apply_filters( 'bp_email_post_type', 'bp-email' ); -
/** * This filter is documented in /plugins/buddypress/class-buddypress.php */ apply_filters( 'bp_email_tax_type', 'bp-email-type' ); -
/** * Filters email message for moderation email. */ apply_filters( 'bbp_forum_moderation_mail_message', $message, $post_id, $forum_id ); -
/** * Filters email subject for moderation email. */ apply_filters( 'bbp_forum_moderation_mail_subject', $subject, $post_id, $forum_id ); -
/** * User IDs filter to send moderation emails to. */ apply_filters( 'bbp_forum_moderation_user_ids', $user_ids, $forum_id ); -
/** * Filters mail headers for the email sent to moderators. */ apply_filters( 'bbp_moderation_mail_headers', $headers ); -
/** * Filters "To" email address for the email sent to moderators. */ apply_filters( 'bbp_moderation_to_email', $no_reply ); -
/** * Hook to do something after email is sent to moderators. */ do_action( 'bbp_post_notify_forum_moderators', $post_id, $forum_id, $user_ids ); -
/** * Hook to do something before email is sent to moderators. */ do_action( 'bbp_pre_notify_forum_moderators', $post_id, $forum_id, $user_ids ); -
/** * This filter is documented in * /wp-content/plugins/buddypress/bp-core/bp-core-functions.php */ apply_filters( 'bp_get_root_blog_id', constant( 'BP_ROOT_BLOG' ) ); -
/** * Do something just after a theme is activated on the next page load. */ do_action( "cbox_{cbox_get_current_package_id()}_theme_activated" ); -
/** * Hook to declare when the CBOX admin area is loaded at its earliest. */ do_action( 'cbox_admin_loaded', $this ); -
/** * Fires after the specified template part file is loaded. */ do_action( 'cbox_after_get_template_part', $slug, $package_id ); -
/** * Add filter to enable or disable inline CSS for unread posts. */ apply_filters( 'cbox_bbp_unread_inline_css', true ); -
/** * Hook to do something before the CBOX updater fires. */ do_action( 'cbox_before_updater' ); -
/** * Hook to include various files on the frontend. */ do_action( 'cbox_frontend_includes' ); -
/** * Fires before the specified template part file is loaded. */ do_action( 'cbox_get_template_part', $slug, $package_id ); -
/** * Hook to load components. */ do_action( 'cbox_load_components', $this ); -
/** * Hook to do something when a package is about to be deactivated. */ do_action( "cbox_package_{$current}_deactivation" ); -
/** * Filter to register a custom package. */ apply_filters( 'cbox_register_packages', array() ); -
/** * This filter is documented in /wp-includes/i10n.php */ apply_filters( 'plugin_locale', get_locale(), 'commons-in-a-box' ); -
apply_filters( 'bbp_get_topic_archive_slug', get_blog_option( cbox_get_main_site_id(), '_bbp_topic_archive_slug', 'topics' ) ); -
do_action( 'cbox_after_updater' ); -
apply_filters( 'bbp_get_user_engagements_slug', get_blog_option( cbox_get_main_site_id(), '_bbp_user_engagements_slug', 'engagements' ) ); -
apply_filters( 'bbp_get_user_favorites_slug', get_blog_option( cbox_get_main_site_id(), '_bbp_user_favs_slug', 'favorites' ) ); -
apply_filters( 'bbp_get_user_subscriptions_slug', get_blog_option( cbox_get_main_site_id(), '_bbp_user_subs_slug', 'subscriptions' ) ); -
apply_filters( 'bbp_is_engagements_active', (bool) get_blog_option( cbox_get_main_site_id(), '_bbp_enable_engagements', 1 ) ); -
apply_filters( 'bbp_is_favorites_active', (bool) get_blog_option( cbox_get_main_site_id(), '_bbp_enable_favorites', 1 ) ); -
apply_filters( 'bbp_is_subscriptions_active', (bool) get_blog_option( cbox_get_main_site_id(), '_bbp_enable_subscriptions', 1 ) ); -
apply_filters( 'bbp_moderation_from_email', $no_reply ); -
apply_filters( 'bp_docs_get_archive_link', trailingslashit( get_home_url( bp_get_root_blog_id(), $slug ) ) ); -
apply_filters( 'bp_docs_get_create_link', trailingslashit( $archive_link . $create_slug ) ); -
apply_filters( 'bp_docs_get_docs_slug', $slug ); -
apply_filters( 'bp_docs_get_mydocs_edited_link', $edited_link ); -
apply_filters( 'bp_docs_get_mydocs_link', $docs_link ); -
apply_filters( 'bp_docs_get_mydocs_started_link', $started_link ); -
apply_filters( 'bp_docs_get_user_tab_name', $name ); -
do_action( 'cbox_activation' ); -
apply_filters( 'cbox_create_uploads_htaccess', true ); -
do_action( 'cbox_deactivation' ); -
do_action( 'cboxol_register_upgrader' ); -
do_action( 'infinity_dashboard_activated' ); -
apply_filters( 'pd_show_preactivation_warnings', true ); -
apply_filters( 'scr_plugin_dependency_before_parse', self::$all_plugins ); -
apply_filters( 'scr_plugin_dependency_dependencies', self::$dependencies ); -
apply_filters( 'scr_plugin_dependency_requirements', self::$requirements );
Generated from Commons In A Box's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: