wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
is_user_option_local is deprecated since version 4.9.0!
is_user_option_local › WordPress Function
Od
Przestarzały4.9.0
› is_user_option_local ( $key, $user_id = 0, $blog_id = 0 )
Parametry: (3) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: | |
Dziennik zmian: |
|
Check whether a usermeta key has to do with the current blog.
Powiązane Funkcje: get_user_option, wp_set_option_autoload, wp_set_options_autoload, get_user_locale, update_user_option
Źródło
function is_user_option_local( $key, $user_id = 0, $blog_id = 0 ) { global $wpdb; _deprecated_function( __FUNCTION__, '4.9.0' ); $current_user = wp_get_current_user(); if ( $blog_id == 0 ) { $blog_id = get_current_blog_id(); } $local_key = $wpdb->get_blog_prefix( $blog_id ) . $key; return isset( $current_user->$local_key ); }