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
function mepr_custom_pdf_invoice_fonts( $fonts ) { return array( ‘roboto’ => array( ‘R’ => ‘Roboto-Regular.ttf’, ‘B’ => ‘Roboto-Bold.ttf’, ‘I’ => ‘Roboto-Italic.ttf’, ‘BI’ => ‘Roboto-Bold.ttf’, //’useOTL’ => 0xFF, ‘useKashida’ => 75, ), ); } add_filter( ‘mepr-pdf-invoice-fonts’, ‘mepr_custom_pdf_invoice_fonts’ ); function mepr_custom_options_dynamic_attrs( $attrs ) {…Continue reading
add_filter( “aioseo_save_term”, “aioseo_filter_term_data” ); function aioseo_filter_term_data( $term ) { if ( 12 === (int) $term->term_id ) { $term->title = ‘Some new title here’; } return $term; }Continue reading
add_filter( “aioseo_save_post”, “aioseo_filter_post_data” ); function aioseo_filter_post_data( $post ) { if ( 10 === (int) $post->post_id ) { $post->title = ‘Some new title here’; } return $post; }Continue reading
add_filter( ‘aioseo_get_post_id’, ‘aioseo_change_post_id’ ); function aioseo_change_post_id( $postId ) { if( is_post_type_archive( ‘product’ ) ) { $postId = 123; } return $postId; }Continue reading
add_filter( ‘aioseo_flush_output_buffer’, ‘__return_false’ );Continue reading