MemberPress: Free-Views-Used Counter

function mepr_display_cookie() { $free_views = isset( $_COOKIE[‘mp3pi141592pw’]) ? base64_decode( $_COOKIE[‘mp3pi141592pw’] ) : false; if( $free_views !== false ) { echo ‘You used ‘ . $free_views . ‘ free views!’; } } add_action( ‘init’, ‘mepr_display_cookie’ );Continue reading

MemberPress: Disable the Default WordPress Password Reset Link E-Mail

function mepr_disable_password_reset_email( $recipients, $subject, $message, $headers ) { $set_password_notification_subject = MeprHooks::apply_filters( ‘mepr_set_new_password_title’, sprintf( __( “[%s] Set Your New Password”, ‘memberpress’ ), MeprUtils::blogname() ) ); if ( $subject == $set_password_notification_subject ) { $recipients = array(); } return $recipients; } add_filter( ‘mepr-wp-mail-recipients’,…Continue reading

Remove the author of an article

add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { if ( is_singular( ‘post’ ) ) { foreach ( $graphs as $index => $graph ) { if ( ‘Article’ === $graph[‘@type’] ) { unset( $graphs[ $index ][‘author’] ); } if (…Continue reading

Remove the Article schema from Posts

add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { if ( is_singular( ‘post’ ) ) { foreach ( $graphs as $index => $graph ) { if ( ‘Article’ === $graph[‘@type’] ) { unset( $graphs[ $index ] ); } } }…Continue reading

Remove BreadcrumbList Schema

add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { foreach ( $graphs as $index => $graph ) { if ( ‘BreadcrumbList’ === $graph[‘@type’] ) { unset( $graphs[ $index ] ); } foreach ( $graph as $key => $value ) {…Continue reading