image_upload_iframe_src

image_upload_iframe_src

Hook Type: filter

See hook in core

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

apply_filters('image_upload_iframe_src') is found 2 times:

  • /custom-field-template.php line 2370
    2366
    2367
    2368
    2369
    2370
    2371
    2372
    2373
    2374
    2375
    2376
    $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 2533
    2530
    2531
    2532
    2533
    2534
    2535
    2536
    2537
    2538
    2539
    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>';