Add support to Video Sitemap for additional video embed shortcodes (Pro Feature)

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The All in One SEO Pack aioseop_video_shortcodes filter hook.

Description

$supported_shortcodes = apply_filters( 'aioseop_video_shortcodes', array( 'video' ) );

This filter can be used to add support for additional video embed shortcodes.


Parameters (1)

0. (array)
contains the shortcode tags that are supported for the video sitemap.

Usage

The code example below can be used to add support for the Embed Plus for YouTube* plugin.

add_filter( 'aioseop_video_shortcodes', 'add_embed_plus_shortcode' );

function add_embed_plus_shortcode( $shortcodes ) {
        array_push( $shortcodes, 'embedyt' );
        return $shortcodes;
}

*For this particular plugin the “Don’t run shortcodes in admin” setting (located under YouTube Free > Compatibility) has to be disabled.


Defined (1)

The filter is defined in the following location(s).

/pro/video_sitemap.php

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar