← Knowledge Base / For Developers / Agencies

Hooks & Filters for Developers

Available Hooks

Pro Menu Editor provides several hooks for developers who want to extend functionality:

Actions

  • pme_before_apply_menu — Fires before the custom menu is applied
  • pme_after_apply_menu — Fires after the custom menu is applied

Checking PME Status in Your Code

// Check if PME is active and licensed
if (class_exists('Pro_Menu_Editor')) {
    $pme = Pro_Menu_Editor::get_instance();
    
    // Check if premium features are available
    if ($pme->is_license_valid()) {
        // Premium features active
    }
    
    // Get current license info
    $info = $pme->get_license_info();
    // $info['status'] = active|trial|expired|inactive
    // $info['plan'] = free|basic|pro|agency
}

Option Names

PME stores configurations in WordPress options. For security (anti-tampering), option names are intentionally generic:

  • pme_component_data — License data
  • pme_render_token — License verification token
  • pme_white_label_config — White Label configuration
  • pme_white_label_dashboard — Dashboard widget config

Do not modify these options directly — use the plugin interface or contact support.

Related Articles