register_post_type function." />register_post_type function." />

mycred_register_ranks

Codex / mycred/rank / Filters / mycred_register_ranks

Navigation:

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

Description

This filter lets you make adjustments to the Ranks post type setings before it is handed over to the register_post_type function.

Available since myCRED version 1.1.1

 

Used By

  • Class: myCRED_Settings Method: allowed_tags()
  • Class: myCRED_Ranks Method: register_post_type()

 

Parameters

  • args (array)
    The post type arguments for ‘mycred_rank’.

 

Example

Change the post type capability setting from the default ‘page’ to ‘post’.

<?php
add_filter( 'mycred_register_ranks', 'customize_mycred_ranks' );
function customize_mycred_ranks( $args )
{
	$args['capability_type'] = 'post';
	return $args;
}
?>

Last edited June 26, 2016