ホーム > 関数 > 関数 get_current_user_id() 2014/12/12 2014/12/17 目次1 関数 get_current_user_id()2 定義ファイル :/blog/wp-includes/user.php 1関数 get_current_user_id()定義ファイル :/blog/wp-includes/user.php 1PHP function get_current_user_id() { if ( ! function_exists( 'wp_get_current_user' ) ) return 0; $user = wp_get_current_user(); return ( isset( $user->ID ) ? (int) $user->ID : 0 ); }123456function get_current_user_id() { if ( ! function_exists( 'wp_get_current_user' ) ) return 0; $user = wp_get_current_user(); return ( isset( $user->ID ) ? (int) $user->ID : 0 );} - 関数