Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('avf_add_elements_wpseo_sitemap', function($elements, $postid) {
- $image = array(
- 'image' => array(
- 'pattern' => '/\[av_image [^]]*]/',
- 'source' => 'src'
- ),
- 'image' => array(
- 'pattern' => '/\[av_image [^]]*]/',
- 'source' => 'attachment'
- ),
- 'accordion' => array(
- 'pattern' => '/\[av_slideshow_accordion(.+?)?\](?:(.+?)?\[\/av_slideshow_accordion\])?/sim',
- 'source' => 'sid'
- ),
- 'gallery' => array(
- 'pattern' => '/\[av_gallery(.+?)?\](?:(.+?)?\[\/av_gallery\])?/sim',
- 'source' => 'sid'
- ),
- 'slideshow' => array(
- 'pattern' => '/\[av_slideshow(.+?)?\](?:(.+?)?\[\/av_slideshow\])?/sim',
- 'source' => 'sid'
- ),
- 'slideshow_full' => array(
- 'pattern' => '/\[av_slideshow_full(.+?)?\](?:(.+?)?\[\/av_slideshow_full\])?/sim',
- 'source' => 'sid'
- ),
- 'slideshow_fullscreen' => array(
- 'pattern' => '/\[av_fullscreen(.+?)?\](?:(.+?)?\[\/av_fullscreen\])?/sim',
- 'source' => 'sid'
- ),
- 'gallery' => array(
- 'pattern' => '/\[av_gallery [^]]*]/',
- 'source' => 'ids'
- ),
- 'horizontal' => array(
- 'pattern' => '/\[av_horizontal_gallery [^]]*]/',
- 'source' => 'ids'
- )
- );
- return array_merge($image, $elements);
- }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment