embed_handler_html

  • apply_filters( 'embed_handler_html', $return, $url, $attr )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-classes.php :: Trac Source Line: 1174
      		// See http://core.trac.wordpress.org/ticket/11311
      		$url = str_replace( '&', '&', $url );
      
      		// Look for known internal handlers
      		ksort( $this->handlers );
      		foreach ( $this->handlers as $priority => $handlers ) {
      			foreach ( $handlers as $hid => $handler ) {
      				if ( preg_match( $handler['regex'], $url, $matches ) && is_callable( $handler['callback'] ) ) {
      					if ( false !== $return = call_user_func( $handler['callback'], $matches, $attr, $url, $rawattr ) )
      						return apply_filters( 'embed_handler_html', $return, $url, $attr );
      				}
      			}
      		}
      
      		// Get object ID
      		$id = apply_filters( 'embed_post_id', 0 );
      
      		// Is oEmbed discovery on?
      		$attr['discover'] = ( apply_filters( 'bp_embed_oembed_discover', false ) && current_user_can( 'unfiltered_html' ) );
      

Comments are closed.