function mepr_change_role_canceled_subscription( $event ) { $subscription = $event->get_data(); if( 123 != ( int ) $subscription->product_id ) { return; } $user = $subscription->user(); $wp_user = get_user_by( ‘id’, $user->ID ); if( !$wp_user ) { return; } // Remove role $wp_user->remove_role( ‘subscriber’ );…Continue reading
function sbi_img_alt( $img_alt, $post ) { $alt_text = __( ‘Instagram Image’, ‘instagram-feed’ ); return $alt_text; } add_filter( ‘sbi_img_alt’, ‘sbi_img_alt’, 10, 2 );Continue reading
$attributes = [ ‘twitter:card’ => ”, ‘twitter:site’ => ”, ‘twitter:domain’ => ”, ‘twitter:title’ => ”, ‘twitter:description’ => ”, ‘twitter:image’ => ” ];Continue reading
$attributes = [ ‘noindex’ => ”, ‘nofollow’ => ”, ‘noarchive’ => ”, ‘nosnippet’ => ”, ‘noimageindex’ => ”, ‘noodp’ => ”, ‘notranslate’ => ”, ‘max-snippet’ => ”, ‘max-image-preview’ => ”, ‘max-video-preview’ => ” ];Continue reading
add_action( ‘admin_init’, function() { if ( isset( $_GET[‘export_members_extended’] ) ) { $all = MeprUser::list_table( /* $order_by */ ‘user_login’, /* $order */ ‘ASC’, /* $paged */ ”, /* $search */ ”, /* $search_field */ ‘any’, /* $perpage */ ”, /* $params…Continue reading
// Return a 404 page for author pages if accessed directly. add_action( ‘template_redirect’, function () { if ( is_author() ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } ); // Remove the author links. add_filter( ‘author_link’, ‘__return_empty_string’, 1000…Continue reading
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
add_filter( ‘aioseo_classic_editor_disable_emoji_script’, ‘__return_true’ );Continue reading
$attributes = [ ‘og:site_name’ => ”, ‘og:type’ => ”, ‘og:title’ => ”, ‘og:description’ => ”, ‘og:url’ => ”, ‘fb:app_id’ => ”, ‘fb_admins’ => ”, ‘og:image’ => ”, ];Continue reading