Switch language

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




network_admin_url [ WordPress Function ]

network_admin_url ( $path = '', $scheme = 'admin' )
Parameters:
  • (string) $path Optional path relative to the admin url.
  • (string) $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes.
Returns:
  • (string) Admin url link with optional path appended.
Defined at:



Retrieve the url to the admin area for the network.

Source


<?php
function network_admin_url$path ''$scheme 'admin' ) {
    if ( ! 
is_multisite() )
        return 
admin_url$path$scheme );

    
$url network_site_url('wp-admin/network/'$scheme);

    if ( !empty(
$path) && is_string($path) && strpos($path'..') === false )
        
$url .= ltrim($path'/');

    return 
apply_filters('network_admin_url'$url$path);
}
?>

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