add_filter( ‘aioseo_sitemap_indexes’, ‘aioseo_add_sitemap_index’ ); function aioseo_add_sitemap_index( $indexes ) { $indexes[] = [ ‘loc’ => ‘https://somedomain.com/custom-sitemap.xml’, ‘lastmod’ => aioseo()->helpers->dateTimeToIso8601( ‘2021-09-08 12:02’ ), ‘count’ => 1000 ]; return $indexes; }Continue reading
add_filter( ‘aioseo_sitemap_images’, ‘aioseo_filter_sitemap_images’, 10, 2 ); function aioseo_filter_sitemap_images( $images, $post ) { if ( ! function_exists( ‘get_field’ ) ) { return $images; } $customImage = get_field( ‘custom_image’, $post->ID ); if ( ! empty( $customImage ) ) { $images[] = wp_get_attachment_image_url(…Continue reading
add_filter( ‘get_avatar’, function( $avatar, $id_or_email, $size, $default, $alt ) { return ”; // Return an empty string to disable the gravatar }, 10, 5 );Continue reading
add_action( ‘after_setup_theme’, function() { remove_theme_support( ‘post-formats’ ); }, 11 );Continue reading
add_action(‘init’, function() { unregister_taxonomy_for_object_type(‘category’, ‘post’); unregister_taxonomy_for_object_type(‘post_tag’, ‘post’); });Continue reading
add_action( ‘customize_register’, ‘__return_true’ );Continue reading
add_filter( ‘big_image_size_threshold’, ‘__return_false’ );Continue reading
/* * Process non-critical tasks after an order has been completed. * * This runs ~30 seconds after a purchase is completed via WP_Cron. * * @param int $order_id The Order ID that was marked as completed. * @param \EDD\Orders\Order…Continue reading