mycred_sell_this_label

Codex / mycred/content / Filters / mycred_sell_this_label

Navigation:

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

Description

This filter allows you to rename the “myCRED Sell This” metabox that the Sell Content add-on provides for your posts and pages.

Requires myCRED 1.5.3 or higher.

Used By

  • Class: myCRED_Sell_Content_Module Method: add_metabox()

Parameters

  • title (string)
    The metabox title.
  • sell_content_module (object)
    The sell content add-on module object.

Example

Example: Rename the box to “Sell Access”.

add_filter( 'mycred_sell_this_label', 'mycred_rename_sell_this_metabox' );
function mycred_rename_sell_this_metabox( $title ) {

	return 'Sell Access';

}

Last edited June 26, 2016