mycred_add_menu

Codex / mycred/core / Actions / mycred_add_menu

Navigation:

  1. Description
  2. Used By
  3. Parameters
  4. Example

Description

This action fires once myCRED has created the admin menu. Used by any module that requires an admin menu link.

 

Used By

 

Parameters

 

Example

Example: Add a sub menu item called “Custom”.

<?php
add_action( 'mycred_add_menu', 'my_custom_sub_menu' );
function my_custom_sub_menu( $mycred )
{
	add_submenu_page(
		'myCRED',
		__( 'Custom' ),
		__( 'Custom' ),
		$mycred->edit_plugin_cap(),
		'my_custom_page_slug',
		'my_custom_page'
	);
}
?>

Last edited March 5, 2016