media_upload_form_url

media_upload_form_url

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('media_upload_form_url') is found 4 times:

  • /wp-admin/includes/media.php line 2342
    	 *
    	 * @param string $form_action_url The media upload form action URL.
    	 * @param string $type            The type of media. Default 'file'.
    	 */
    	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
    	$form_class      = 'media-upload-form type-form validate';
    
    	if ( get_user_setting( 'uploader' ) ) {
    		$form_class .= ' html-uploader';
    	}
    
    
  • /wp-admin/includes/media.php line 2411
    	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;
    
    	$form_action_url = admin_url( "media-upload.php?type=$type&tab=type&post_id=$post_id" );
    	/** This filter is documented in wp-admin/includes/media.php */
    	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
    	$form_class      = 'media-upload-form type-form validate';
    
    	if ( get_user_setting( 'uploader' ) ) {
    		$form_class .= ' html-uploader';
    	}
    
    
  • /wp-admin/includes/media.php line 2558
     
    	$post_id         = (int) $_REQUEST['post_id'];
    	$form_action_url = admin_url( "media-upload.php?type=$type&tab=gallery&post_id=$post_id" );
    	/** This filter is documented in wp-admin/includes/media.php */
    	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
    	$form_class      = 'media-upload-form validate';
    
    	if ( get_user_setting( 'uploader' ) ) {
    		$form_class .= ' html-uploader';
    	}
    
    
  • /wp-admin/includes/media.php line 2721
    	$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;
    
    	$form_action_url = admin_url( "media-upload.php?type=$type&tab=library&post_id=$post_id" );
    	/** This filter is documented in wp-admin/includes/media.php */
    	$form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
    	$form_class      = 'media-upload-form validate';
    
    	if ( get_user_setting( 'uploader' ) ) {
    		$form_class .= ' html-uploader';
    	}