A free points management plugin for WordPress.
myCRED Logo
myCRED Logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download
    Navigation
    • Loading navigation ...
    All Actions
    myCRED actions
    1. mycred_add_menu
    2. mycred_admin_enqueue
    3. mycred_admin_init
    4. mycred_after_deletion
    5. mycred_after_notifications
    6. mycred_banking_compound_interest
    7. mycred_banking_recurring_payouts
    8. mycred_before_deletion
    9. mycred_before_notifications
    10. mycred_deactivation
    11. mycred_email_sent
    12. mycred_front_enqueue
    13. mycred_init
    14. mycred_pre_init
    15. mycred_set_user_balance
    16. mycred_tool_bar
    17. mycred_transfer_completed
    18. mycred_transfer_ready
    19. mycred_twilio_action_$action
    20. mycred_twilio_after_prefs
    21. mycred_twilio_incoming_sms
    22. mycred_twilio_transfer_cancelled
    23. mycred_twilio_transfer_finished
    24. mycred_update_user_balance
    25. mycred_user_got_demoted
    26. mycred_user_got_promoted
    27. mycred_widgets_init
    Categories
    Filter by category
    1. Actions
    2. Classes
    3. Filters
    4. Functions
    5. Hooks
    6. Objects
    7. Shortcodes
    8. Template Tags
    Chapters
    Documentation
    1. Chapter I - Introduction
    2. Chapter II - Getting Started
    3. Chapter III - Add-ons
    4. Chapter IV - Premium Add-ons
    5. Chapter V - For Developers
    6. Chapter VI - Reference Guides
mycred_add_menu

Codex / mycred/core / Actions / 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.

0

About myCred

myCred is a free, open-source and developer friendly points management tool for WordPress powered websites.

Download Rate Plugin

Documentation

  • Add-ons
  • Core Shortcodes
  • F.A.Q.
  • Tutorials
  • Third Party Plugins
  • Code Snippets

Support

  • Product Licenses
  • Customization
  • Support Forums
  • Plugin Changelog
  • Contact

Copyright 2013 - 2021 by WPExperts; All rights reserved. myCred is licensed under GPL 2.0

Terms & Conditions • Use of Cookies • Store Policy • Community Rules

Suggest Codex Example

You can submit suggestions for codex examples that you have available as a public gist. If you are a member on the mycred.me website, you can earn Tokens for each submission. To claim these Tokens, make sure you provide your mycred.me username.

Please make sure the example you submit is relevant and if you include documentation, it's provided in English.

logo
  • Membership New
  • Chapters
    • Chapter I – Introduction
    • Chapter II – Getting Started
    • Chapter III – Add-ons
    • Chapter IV – Premium Add-ons
    • Chapter V – For Developers
    • Chapter VI – Reference Guides
  • Categories
    • Actions
    • Classes
    • Constants
    • Filters
    • Functions
    • Objects
    • Shortcodes
    • Hooks
    • Template Tags
  • Packages
    • mycred/api
    • mycred/badge
    • mycred/balance
    • mycred/banking
    • mycred/content
    • mycred/core
    • mycred/coupon
    • mycred/email
    • mycred/game
    • mycred/log
    • mycred/notice
    • mycred/payment
    • mycred/purchase
    • mycred/rank
    • mycred/transfer
  • Store
  • Download