Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Add Price to Insufficient Template
- * @version 1.0
- */
- function mycred_pro_add_price_to_insufficient_template( $template, $post, $type ) {
- $user_id = get_current_user_id();
- $price = mycred_get_content_price( $post->ID, $type, $user_id );
- $template = str_replace( '%price%', $price, $template );
- return $template;
- }
- add_filter( 'mycred_sell_content_template', 'mycred_pro_add_price_to_insufficient_template', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement