White Label CMS icon
Admin & Maintenance

White Label CMS hooks reference

  • By Video User Manuals
  • v2.7.14
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/Functions.php line 140
    /**
     * Allow overriding the "primary" role used by WLCMS when user has multiple
     * roles.
     */
    apply_filters( 'wlcms_primary_role', $role, $roles, $user );
  • view/admin/settings.php line 13 · used in 2 places
    do_action( 'wlcms_messages' );
  • view/admin/settings.php line 49
    do_action( 'wlcms_after_body' );
  • view/admin/settings.php line 32
    do_action( 'wlcms_after_menu_tab' );
  • includes/classes/Settings.php line 146
    do_action( 'wlcms_after_saving', $this );
  • view/admin/settings.php line 41
    do_action( 'wlcms_before_body' );
  • includes/classes/Previewable.php line 53
    do_action( 'wlcms_before_save_preview', $settings, $this->preview_setting_key_placeholder );
  • includes/classes/Settings.php line 129
    do_action( 'wlcms_before_saving', $this );
  • includes/classes/Admin_Dashboard.php line 269
    apply_filters( 'wlcms_exclude_dashboard_metaboxes', array('wlcms_rss_box') );
  • includes/classes/Admin_Core.php line 48
    do_action( 'wlcms_load-page' );
  • includes/classes/Messages.php line 8
    apply_filters( 'wlcms_messages_allowed_classes', $default_allowed_classes );
  • includes/classes/Messages.php line 9
    apply_filters( 'wlcms_messages_default_class', 'success' );
  • includes/classes/Settings.php line 142
    do_action( 'wlcms_save_addtional_settings', $this, $placeholder );
  • includes/classes/Admin_Core.php line 141
    do_action( 'wlcms_save_before_validation' );
  • includes/classes/Settings.php line 386
    apply_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: