function mpcs_author_custom_bio_shortcode( $atts ) { if( !isset( $atts[‘slug’] ) || empty( $atts[‘slug’] ) ) { return; } global $post; $field = get_user_meta( $post->post_author, $atts[‘slug’], true ); if( empty( $field ) ) { return; } return ‘ ‘ . sanitize_text_field( $field…Continue reading
function mpcs_author_bio_shortcode() { return nl2br( get_the_author_meta( ‘description’ ) ); }; add_shortcode( ‘mpcs-author-bio’, ‘mpcs_author_bio_shortcode’ );Continue reading
function mepr_days_until( $date ){ return ( isset( $date ) ) ? floor( ( strtotime( $date ) – time() )/60/60/24 ) : false; } function mepr_update_mepr_trial_period() { $prd = new MeprProduct( 4480 ); //CHANGE 123 to the ID of your Membership…Continue reading
function disable_all_admin_notices() { remove_all_actions(‘admin_notices’); } add_action(‘admin_init’, ‘disable_all_admin_notices’);Continue reading
$review_content = ”; $review_content = preg_replace(‘/]*>[\s| ]*/’, ”, $review_content ); // Remove empty paragraphs.Continue reading
$review_content = ”; $review_content = preg_replace(‘/]*>[\s| ]*/’, ”, $review_content ); // Remove empty paragraphs.Continue reading
# BEGIN WordPress RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPressContinue reading
add_filter( ‘edd_after_payment_actions_delay’, function( $delay ) { // Change this to the number of seconds you want to delay by. Suggested values are 60 or 90. $delay = 60; return $delay; } );Continue reading
add_filter( ‘edd_use_after_payment_actions’, ‘__return_false’ );Continue reading
function show_loggedin_function( $atts ) { global $current_user, $user_login; get_currentuserinfo(); add_filter(‘widget_text’, ‘do_shortcode’); if ($user_login) return ‘Welcome ‘ . $current_user->display_name . ‘!’; else return ‘Login‘; } add_shortcode( ‘show_loggedin_as’, ‘show_loggedin_function’ );Continue reading