shortcodes[] = 'cincopa'; /* Full Oembed url as specified in plugin => VideoSEO service name */ $this->video_oembeds = array( '//www.cincopa.com/media-platform/oembed.aspx' => 'cincopa', ); } } /** * Analyse a video shortcode from the plugin for usable video information * * @param string $full_shortcode Full shortcode as found in the post content. * @param string $sc Shortcode found. * @param array $atts Shortcode attributes - already decoded if needed. * @param string $content The shortcode content, i.e. the bit between [sc]content[/sc]. * * @return array An array with the usable information found or else an empty array. */ public function get_info_from_shortcode( $full_shortcode, $sc, $atts = array(), $content = '' ) { $vid = array(); if ( isset( $content ) && ( is_string( $content ) && $content !== '' ) ) { $vid['type'] = 'cincopa'; $vid['id'] = $content; } return $vid; } } }