image_upload_iframe_src

image_upload_iframe_src

Hook Type: filter

See hook in core

Displaying hooks found in version: custom-field-template.2.6.1

apply_filters('image_upload_iframe_src') is found 2 times:

  • /custom-field-template.php line 2350
    				$media_upload_iframe_src = "media-upload.php";
    
    				if ( substr($wp_version, 0, 3) < '3.3' ) :
    					if ( !$mediaOffImage ) :
    						$image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src?type=image");
    						$image_title = __('Add an Image');
    						$media .= "<a href=\"{$image_upload_iframe_src}&TB_iframe=true\" id=\"add_image{$rand}\" title='$image_title' onclick=\"focusTextArea('".$textarea_id."'); jQuery(this).attr('href',jQuery(this).attr('href').replace('\?','?post_id='+jQuery('#post_ID').val())); return thickbox(this);\"><img src='images/media-button-image.gif' alt='$image_title' /></a> ";
    					endif;
    					if ( !$mediaOffVideo ) :
    						$video_upload_iframe_src = apply_filters('video_upload_iframe_src', "$media_upload_iframe_src?type=video");
    						$video_title = __('Add Video');
    
  • /custom-field-template.php line 2513
     
    		if ( $relation == true ) $tab = 'gallery';
    		else $tab = 'library';
    		$media_upload_iframe_src = "media-upload.php";
    		$image_upload_iframe_src = apply_filters('image_upload_iframe_src', "$media_upload_iframe_src?type=image&tab=library");
    
    		if ( $mediaPicker == true ) :
    			$picker = __(' OR ', 'custom-field-template');
    			$picker .= '<a href="'.$image_upload_iframe_src.'&post_id='.$post_id.'&TB_iframe=1&tab='.$tab.'" class="thickbox" onclick="jQuery('."'#cft_current_template'".').val(jQuery(this).parent().parent().parent().';
    			if ( $inside_fieldset ) $picker .= 'parent().';
    			$picker .= 'parent().attr(\'id\').replace(\'cft_\',\'\'));jQuery('."'#cft_clicked_id'".').val(jQuery(this).parent().find(\'input\').attr(\'id\'));">'.__('Select by Media Picker', 'custom-field-template').'</a>';