public function registerEmbedHandlerForWeb() {
		wp_embed_register_handler(
			self::EMBED_ID,
			self::EMBED_URL_REGEX,
			function ( $matches, $attr, $url, $rawattr ) {
				$embed = sprintf(
					'<iframe src="https://phet.colorado.edu/sims/html/%1$s" width="800" height="600" scrolling="no" allowfullscreen></iframe>',
					esc_attr( $matches[1] )
				);
				return apply_filters( 'embed_' . self::EMBED_ID, $embed, $matches, $attr, $url, $rawattr );
			}
		);
	}
public function registerEmbedHandlerForWeb() {
		wp_embed_register_handler(
			self::EMBED_ID,
			self::EMBED_URL_REGEX,
			function ( $matches, $attr, $url, $rawattr ) {
				$embed = sprintf(
					'<iframe src="https://phet.colorado.edu/sims/html/%1$s" width="800" height="600" scrolling="no" allowfullscreen></iframe>',
					esc_attr( $matches[1] )
				);
				return apply_filters( 'embed_' . self::EMBED_ID, $embed, $matches, $attr, $url, $rawattr );
			}
		);
	}
public function registerEmbedHandlerForWeb ( ) { wp_embed_register_handler ( self :: EMBED_ID , self :: EMBED_URL_REGEX , function ( $ matches , $ attr , $ url , $ rawattr ) { $ embed = sprintf ( '<iframe src="https://phet.colorado.edu/sims/html/%1$s" width="800" height="600" scrolling="no" allowfullscreen></iframe>' , esc_attr ( $ matches [ 1 ] ) ) ; return apply_filters ( 'embed_' . self :: EMBED_ID , $ embed , $ matches , $ attr , $ url , $ rawattr ) ; } ) ; }
Register embed handler for web
Register embed handler for web