Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Set Content for Sale by Author
- * @mycred
- * @version 1.0
- */
- add_filter( 'mycred_post_is_for_sale', 'mycredpro_set_for_sale_by_author', 10, 2 );
- function mycredpro_set_for_sale_by_author( $result, $post ) {
- if ( $post->post_author == 123 )
- return true;
- return $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement