Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_upload_iframe_src [ WordPress Function ]

get_upload_iframe_src ( $type = null, $post_id = null, $tab = null )
Defined at:



No description yet.

Source


<?php
function get_upload_iframe_src$type null$post_id null$tab null ) {
    global 
$post_ID;

    if ( empty( 
$post_id ) )
        
$post_id $post_ID;

    
$upload_iframe_src add_query_arg'post_id', (int) $post_idadmin_url('media-upload.php') );

    if ( 
$type && 'media' != $type )
        
$upload_iframe_src add_query_arg('type'$type$upload_iframe_src);

    if ( ! empty( 
$tab ) )
        
$upload_iframe_src add_query_arg('tab'$tab$upload_iframe_src);

    
$upload_iframe_src apply_filters($type '_upload_iframe_src'$upload_iframe_src);

    return 
add_query_arg('TB_iframe'true$upload_iframe_src);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics