{$type}_send_to_editor_url

{$type}_send_to_editor_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('{$type}_send_to_editor_url') is found 2 times:

  • /wp-admin/includes/ajax-actions.php line 3442
    		}
    	}
    
    	/** This filter is documented in wp-admin/includes/media.php */
    	$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );
    
    	wp_send_json_success( $html );
    }
    
    /**
     * Handles the Heartbeat API via AJAX.
    
  • /wp-admin/includes/media.php line 934
    			 * @param string $html  HTML markup sent to the editor.
    			 * @param string $src   Media source URL.
    			 * @param string $title Media title.
    			 */
    			$html = apply_filters( "{$type}_send_to_editor_url", $html, sanitize_url( $src ), $title );
    		} else {
    			$align = '';
    			$alt   = esc_attr( wp_unslash( $_POST['alt'] ) );
    
    			if ( isset( $_POST['align'] ) ) {
    				$align = esc_attr( wp_unslash( $_POST['align'] ) );