C:\xampp\htdocs\landing\wp-content\plugins\js_composer\include\autoload\vendors\rankmath-seo.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}
function 
vc_rank_math_seo_image_filter$images$id ) {
    if ( empty( 
$images ) ) {
        
$post get_post$id );
        if ( 
$post && strpos$post->post_content'[vc_row' ) !== false ) {
            
preg_match_all'/(?:image|images|ids|include)\=\"([^\"]+)\"/'$post->post_content$matches );
            foreach ( 
$matches[1] as $m ) {
                
$ids explode','$m );
                foreach ( 
$ids as $id ) {
                    if ( (int) 
$id ) {
                        
$images[] = array(
                            
'src' => wp_get_attachment_url$id ),
                            
'title' => get_the_title$id ),
                        );
                    }
                }
            }
        }
    }

    return 
$images;
}

add_filter'rank_math/sitemap/urlimages''vc_rank_math_seo_image_filter'10);
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586