• Beehive - Google Analytics
  • Branda
  • Defender
  • Forminator
  • Hummingbird
  • Hustle
  • Shipper
  • SmartCrawl SEO
  • Smush
  • Snapshot
  • WPMU DEV Dashboard

WPMU DEV Dashboard Hooks Documentation

Total hooks: 39
Undocumented hooks: 17

1. wpmudev_dashboard_ui_init

Type: action

Run custom initialization code for the UI module.

Arguments: $this

2. wpmudev_project_upgrade_url

Type: filter

No description

Arguments: $this->page_urls->remote_site . 'wp-login.php?redirect_to=' . rawurlencode($plugin_url) . '#signup', $project_id

3. wpmudev_dashboard_setup_menu

Type: action

Use this action to register custom sub-menu items.

<p>The action is called before each of the default submenu items is registered, so other plugins can hook into any position they like by checking the action parameter.</p>

Arguments: $this, 'plugins'

4. wpmudev_dashboard_setup_menu

Type: action

No description

Arguments: 'support'

5. wpmudev_dashboard_setup_menu

Type: action

No description

Arguments: 'tools'

6. wpmudev_dashboard_setup_menu

Type: action

No description

Arguments: 'settings'

7. wpmudev_dashboard_setup_menu

Type: action

No description

Arguments: 'end'

8. wpmudev_dashboard_notice-dashboard

Type: action

Custom hook to display own notifications inside Dashboard.

Arguments: none

9. wpmudev_dashboard_before-{$name}

Type: filter

Output some content before the template is loaded, or modify the variables passed to the template.

Arguments: $data

10. wpmudev_dashboard_after-{$name}

Type: action

Output code or do stuff after the template was loaded.

Arguments: none

11. wpmudev_dashboard_notice

Type: action

Custom hook to display own notifications inside Dashboard.

Arguments: none

12. wpmudev_dashboard_notice-plugins

Type: action

Custom hook to display own notifications inside Dashboard.

Arguments: none

13. wpmudev_dashboard_notice-support

Type: action

Custom hook to display own notifications inside Dashboard.

Arguments: none

14. wpmudev_dashboard_notice-tools

Type: action

Custom hook to display own notifications inside Dashboard.

Arguments: none

15. wpmudev_dashboard_notice-settings

Type: action

Custom hook to display own notifications inside Dashboard.

Arguments: none

16. wdp_register_hub_action

Type: filter

Registers a Hub api action and callback for it

Arguments: array()

Arguments:

  • $action -

  • $callback - callable
    The name of the function you wish to be called.

17. wpmudev_whitelabel_sui_plugins_branding

Type: filter

Filter output SUI whitelabel-ing

Arguments: $output

18. wpmudev_whitelabel_sui_plugins_footer

Type: filter

Filter output SUI whitelabel-ing

Arguments: $output

19. wpmudev_whitelabel_sui_plugins_doc_links

Type: filter

Filter output SUI whitelabel-ing

Arguments: $output

20. wpmudev_dashboard_site_init

Type: action

Run custom initialization code for the Site module.

Arguments: $this

21. wpmudev_dashboard_action-{$action}

Type: action

No description

Arguments: none

22. wpmudev_override_notice

Type: action

No description

Arguments: 'The Upfront parent theme is missing!
Please install it to use your Upfront child themes', 'Install Upfront'

23. wpmudev_override_notice

Type: action

No description

Arguments: $message, $cta

24. wpmudev_whitelabel_plugin_pages

Type: filter

Filter Plugin Pages Map to be whitelabel-ed

<p>This should return array, with <code>key</code> WP_Screen.base, and <code>value</code> is array with <code>callable</code>, it's queue, first registered, first executed</p> <p>Callable function should accept array as parameter, Within this array there will be <code>page_base</code>, <code>settings</code>.</p> <p>Callable is executed within <code>admin_head-$hook_suffix</code> with <code>999</code> as priority, which expected to be last-executed</p> <p>If callable are multiple then it works as queue, First registered, First executed, means <code>$callabels[0]</code> will called first</p> <p>If need to attach into another hook example <code>admin_print_footer_scripts</code> then attach it inside its callable function</p> <p>Using this filter encouraged, to avoid race condition, in case plugin hooks is loaded first before Dash plugin initiated, which will be needed as <code>WPMUDEV_Dashboard::$site-&gt;get_whitelabel_settings();</code> must be initiated</p>

Arguments: $plugin_pages

Arguments:

  • $plugin_pages - array

25. wpmudev_hide_sso_on_screens

Type: filter

No description

Arguments: array('dashboard', 'dashboard-network')

26. wpmudev_dashboard_api_init

Type: action

Run custom initialization code for the API module.

Arguments: $this

27. secure_auth_cookie

Type: filter

No description

Arguments: $secure, $user_id

28. wpmudev_dashboard_get_projects_data

Type: filter

No description

Arguments: $res

29. wpmudev_dashboard_get_membership_data

Type: filter

No description

Arguments: $res

30. wpmudev_api_project_extra_data-{$pid}

Type: filter

Collect extra data from individual plugins.

Arguments: $extra

Arguments:

  • $extra - string
    Default extra data is an empty string.

31. wpmudev_api_project_extra_data

Type: filter

No description

Arguments: $extra, $pid

32. wpmudev_api_project_data

Type: filter

Allows modification of the plugin data that is sent to the server.

Arguments: $projects

Arguments:

  • $projects - array
    The whole array of project details.

33. wpmudev_project_ignore_updates

Type: filter

Allows excluding certain projects from update notifications.

<p>Basically just check the ID and return true if you want to silence updates.</p> <p>Filter result is only used if the remote-project <code>autoupdate</code> attribute does not have value 2.</p>

Arguments: false, $pid

Arguments:

  • $flag - bool
    Defaults to false, return true to silence.

  • $pid - int
    The WDP ID of the plugin/theme

34. wpmudev_dashboard_notice_init

Type: action

Run custom initialization code for the Notice module.

Arguments: $this

35. wpmudev_show_notice

Type: filter

No description

Arguments: true, $msg

36. wpmudev_notice_template

Type: filter

No description

Arguments: true, $msg

37. wpmudev_default_notice_type

Type: filter

No description

Arguments: 'info', $msg

38. wpmudev_project_auto_update_projects

Type: filter

No description

Arguments: array(119)

39. wpmudev_dashboard_init

Type: action

Custom code can be executed after Dashboard is initialized with the default settings.

Arguments: $this