mycred_sell_exp_title

Codex / mycred/content / Filters / mycred_sell_exp_title

Navigation:

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

Description

This filter lets your change the title used to mark the expiration length measurement. Defaults to “Hours”.

If you are looking to change hours to any other time measurement, consult the mycred_sell_expire_calc filter.

Requires the Sell Content Add-on to be enabled.

 

Used By

  • Class: myCRED_Sell_Content Method: module_init()

 

Parameters

  • title (string)
    Title of time measurement. Defaults to “Hours”.

 

Example

Instead of Hours, use Days.

// Update title
add_filter( 'mycred_sell_exp_title', 'adjust_expiration_length_title' );
function adjust_expiration_length_title() { return 'Days'; }

Add this code to your themes functions.php file or in your plugin.

Last edited June 26, 2016