protected function locateSelfMedia() {

		$url  = esc_url( wp_get_attachment_url( $this->post_id ) );
		$mime = get_post_mime_type( $this->post_id );

		list( $type, $subtype ) = false !== strpos( $mime, '/' ) ? explode( '/', $mime ) : [ $mime, '' ];

		return in_array( $type, [ 'audio', 'video' ] )
		       ? call_user_func( "wp_{$type}_shortcode", [ 'src' => $url ] )
		       : '';
	}
protected function locateSelfMedia() {

		$url  = esc_url( wp_get_attachment_url( $this->post_id ) );
		$mime = get_post_mime_type( $this->post_id );

		list( $type, $subtype ) = false !== strpos( $mime, '/' ) ? explode( '/', $mime ) : [ $mime, '' ];

		return in_array( $type, [ 'audio', 'video' ] )
		       ? call_user_func( "wp_{$type}_shortcode", [ 'src' => $url ] )
		       : '';
	}
protected function locateSelfMedia ( ) { $ url = esc_url ( wp_get_attachment_url ( $ this -> post_id ) ) ; $ mime = get_post_mime_type ( $ this -> post_id ) ; list ( $ type , $ subtype ) = false !== strpos ( $ mime , '/' ) ? explode ( '/' , $ mime ) : [ $ mime , '' ] ; return in_array ( $ type , [ 'audio' , 'video' ] ) ? call_user_func ( "wp_{$type}_shortcode" , [ 'src' => $ url ] ) : '' ; }
If the post type itself is an attachment, call the shortcode wrapper
function for handling the media.

@since  5.0.0
@access protected
@return string
If the post type itself is an attachment call the shortcode wrapper function for handling the media .