White Label CMS 2.7.14 has 11 actions and 5 filters, read directly from its source code on Nov 17, 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 White Label CMS fires an action
add_action( 'wlcms_messages', function() {
// Your code runs here.
}, 10, 1 );
// Change a value White Label CMS is about to use
add_filter( 'wlcms_primary_role', function( $role, $roles, $user ) {
// Change $role here.
return $role;
}, 10, 3 );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
-
wlcms_primary_role
filter/** * Allow overriding the "primary" role used by WLCMS when user has multiple * roles. */ apply_filters( 'wlcms_primary_role', $role, $roles, $user ); -
wlcms_messages
actiondo_action( 'wlcms_messages' ); -
wlcms_after_body
actiondo_action( 'wlcms_after_body' ); -
wlcms_after_saving
actiondo_action( 'wlcms_after_saving', $this ); -
wlcms_before_body
actiondo_action( 'wlcms_before_body' ); -
wlcms_before_save_preview
actiondo_action( 'wlcms_before_save_preview', $settings, $this->preview_setting_key_placeholder ); -
wlcms_before_saving
actiondo_action( 'wlcms_before_saving', $this ); -
apply_filters( 'wlcms_exclude_dashboard_metaboxes', array('wlcms_rss_box') ); -
wlcms_load-page
actiondo_action( 'wlcms_load-page' ); -
apply_filters( 'wlcms_messages_allowed_classes', $default_allowed_classes ); -
wlcms_messages_default_class
filterapply_filters( 'wlcms_messages_default_class', 'success' ); -
do_action( 'wlcms_save_addtional_settings', $this, $placeholder ); -
wlcms_save_before_validation
actiondo_action( 'wlcms_save_before_validation' ); -
wlcms_setting_fields
filterapply_filters( 'wlcms_setting_fields', $settings );
Generated from White Label CMS's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: