{$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.2

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

  • /wp-admin/includes/ajax-actions.php line 3442
    3438
    3439
    3440
    3441
    3442
    3443
    3444
    3445
    3446
    3447
    3448
            }
        }
     
        /** 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
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
         * @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'] ) );