wp_register [ WordPress Function ]
wp_register ( $before = '', $after = ' ', $echo = true )
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Benzer Fonksiyonlar: wp_register_style, wp_register_script, wp_deregister_style, wp_reset_query, wp_deregister_script
Display the Registration or Admin link.
Display a link which allows the user to navigate to the registration page if not logged in and registration is enabled or to the dashboard if logged in.
Source
<?php
function wp_register( $before = '<li>', $after = '</li>', $echo = true ) {
if ( ! is_user_logged_in() ) {
if ( get_option('users_can_register') )
$link = $before . '<a href="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register') . '</a>' . $after;
else
$link = '';
} else {
$link = $before . '<a href="' . admin_url() . '">' . __('Site Admin') . '</a>' . $after;
}
if ( $echo )
echo apply_filters('register', $link);
else
return apply_filters('register', $link);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp register « WordPress Codex
Description. This tag displays either the "Site Admin" link if the user is logged in or "Register" link if the user is not logged in. The "Register" link is not offered if ...
codex.wordpress.org - WordPress › Support » wp_register
I'm having some issues with a blog I'm currently styling. I moved the wp_loginout and wp_register statements into the footer, where each little bit of text is ...
wordpress.org - WordPress › Support » wp_register, how do I change the Text Link
I'm using the template tag <?php wp_register(); ?> to generate a link to register as a member however I want to change the before text "Register" and the after ...
wordpress.org - Changing anchor text of wp_register()
Don't really think that title makes sense, but i couldn't think of a better way to word it! Sorry Basically we're using Code:
www.wptavern.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- Jeff Farthing on "wp_loginout() not showing as logged in with Theme My Login"
- dangrgal on "wp_loginout() not showing as logged in with Theme My Login"
- dangrgal on "wp_loginout() not showing as logged in with Theme My Login"
- dangrgal on "wp_loginout() not showing as logged in with Theme My Login"
- doodlebee on "Using template tags in the new menu manager"
- Rev. Voodoo on "wp_register() prints li !?"
- darkhorn on "wp_register() prints li !?"
- darkhorn on "wp_register() prints !?"
- Rev. Voodoo on "wp_register() prints !?"
- darkhorn on "wp_register() prints li !?"