mycred_add_menu

Description

This action indicates the instance where myCRED has finished registering all the wp-admin screens. When you want to add a sub menu page for myCRED, it is recommended that you use this action hook to register your screen. This way, your screen will only be added if myCRED is enabled.

Available since version 1.0

Parameters

Param Type Required Description
$mycred obj No

The myCRED object.

Used By

Package Prio. Description
mycred/log 10 The myCRED_Log_Module uses this to add the Log page to each installed point types menu.
mycred/core 20 The myCRED_Hooks_Module uses this to add the Hooks page to each installed point types menu.
mycred/core 30 The myCRED_Addons_Module uses this to add the Add-ons page to the main point types menu.
mycred/badge 50 The myCRED_Badge_Module uses this to add the Badges page to the main point types menu.
mycred/banking 60 The myCRED_Banking_Module uses this to add the Banking page to the main point types menu.
mycred/purchase 70 The myCRED_buyCRED_Module uses this to add the Payment Gateways page to the main point types menu.
mycred/purchase 71 The myCRED_buyCRED_Module uses this to add the Purchase Log page to the main point types menu, if enabled.
mycred/purchase 75 The buyCRED_Pending_Payments uses this to add the Pending Payments page to the main point types menu.
mycred/coupon 80 The myCRED_Coupons_Module uses this to add the Coupons page to the main point types menu.
mycred/email 90 The myCRED_Email_Notice_Module uses this to add the Email Notifications page to the main point types menu.
mycred/rank 100 The myCRED_Ranks_Module uses this to add the Ranks page to each installed point types menu.
mycred/core 998 The myCRED_Settings_Module uses this to add the Settings page to each installed point types menu.

Examples

Example 1: Add a custom submenu page to the main point type menu.

Example 2: Add a custom submenu page for each point type menu in the admin area.