mycred_give_run

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.8

Parameters

Param Type Required Description
$run bool Yes

If the shortcode is set to run (TRUE) or not (FALSE).

$atts array No

The shortcode attributes that are being used.

Used By

Package Prio. Description
Not used by any built-in package.

Examples

Example 1: Disable usage of this shortcode.

add_filter( 'mycred_give_run', '__return_false' );