public function registerEmbedHandlerForExport() {
		wp_embed_register_handler(
			self::EMBED_ID,
			self::EMBED_URL_REGEX,
			function ( $matches, $attr, $url, $rawattr ) {
				global $id; // This is the Post ID, [@see WP_Query::setup_postdata, ...]
				$embed = $this->blade->render(
					'interactive.shared', [
						'title' => get_the_title( $id ),
						'url' => wp_get_shortlink( $id ),
					]
				);
				return apply_filters( 'embed_' . self::EMBED_ID, $embed, $matches, $attr, $url, $rawattr );
			}
		);
	}
public function registerEmbedHandlerForExport() {
		wp_embed_register_handler(
			self::EMBED_ID,
			self::EMBED_URL_REGEX,
			function ( $matches, $attr, $url, $rawattr ) {
				global $id; // This is the Post ID, [@see WP_Query::setup_postdata, ...]
				$embed = $this->blade->render(
					'interactive.shared', [
						'title' => get_the_title( $id ),
						'url' => wp_get_shortlink( $id ),
					]
				);
				return apply_filters( 'embed_' . self::EMBED_ID, $embed, $matches, $attr, $url, $rawattr );
			}
		);
	}
public function registerEmbedHandlerForExport ( ) { wp_embed_register_handler ( self :: EMBED_ID , self :: EMBED_URL_REGEX , function ( $ matches , $ attr , $ url , $ rawattr ) { global $ id ; // This is the Post ID, [@see WP_Query::setup_postdata, ...] $ embed = $ this -> blade -> render ( 'interactive.shared' , [ 'title' => get_the_title ( $ id ) , 'url' => wp_get_shortlink ( $ id ) , ] ) ; return apply_filters ( 'embed_' . self :: EMBED_ID , $ embed , $ matches , $ attr , $ url , $ rawattr ) ; } ) ; }
Register embed handler for exports
Register embed handler for exports