Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_premium_shortcodes(); // Fires early in my php file
- function my_premium_shortcodes(){
- $status = get_option( 'key_status' );
- if( $status !== false && $status == 'valid' ) {
- add_shortcode('shortcode_handle_1','shortcode_function_1');
- add_shortcode('shortcode_handle_2','shortcode_function_2');
- } else {
- remove_shortcode('shortcode_handle_1','shortcode_function_1');
- remove_shortcode('shortcode_handle_2','shortcode_function_2');
- }
- }
Add Comment
Please, Sign In to add comment