add_filter( ‘aioseo_description’, ‘aioseo_filter_description’ ); function aioseo_filter_description( $description ) { $exclude = [15,223]; if ( false !== in_array( get_the_ID(), $exclude ) ) { return ”; } return $description; }Continue reading
/** * Add the unfiltered_html capability to the editor role. * Be careful which users you grant this capability to. */ add_filter( ‘map_meta_cap’, function ( $caps, $cap, $user_id ) { // Change editor with the user role you want to…Continue reading
/** * Send a server-side event to the FB Conversions API when a Gravity Forms form is submitted using the Conversion Pixels addon. * * @param array $entry The entry data. * @param array $form The form data. */ add_action(…Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_schema_change_urls’ ); function aioseo_schema_change_urls( $graphs ) { if ( false === strpos( $_SERVER[‘REQUEST_URI’], ‘home-search/listing/’ ) ) { return $graphs; } $request_uri = explode( ‘?’, $_SERVER[‘REQUEST_URI’] ); $uri = trim( ( $request_uri[0] ?? ” ), ‘/’ ); $old_url =…Continue reading
// Load the Frontend customizer “Additonal CSS” in the block editor. add_action( ‘enqueue_block_editor_assets’, ‘wp_custom_css_cb’ ); // Uncomment below if you need to manually manipulate the CSS for the block editor. // add_action( ‘enqueue_block_editor_assets’, function() { // ob_start(); // wp_custom_css_cb(); //…Continue reading
add_filter( ‘aioseo_sitemap_images’, /** * Find new images inside the post content which has Elementor galleries. * It only works for self-hosted attachments. * * @param array $images The images already found. * @param object $post The post object * @return…Continue reading