当前位置: 首页>>代码示例>>PHP>>正文


PHP Jetpack::clean_nonces方法代码示例

本文整理汇总了PHP中Jetpack::clean_nonces方法的典型用法代码示例。如果您正苦于以下问题:PHP Jetpack::clean_nonces方法的具体用法?PHP Jetpack::clean_nonces怎么用?PHP Jetpack::clean_nonces使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Jetpack的用法示例。


在下文中一共展示了Jetpack::clean_nonces方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: disconnect

 /**
  * Disconnects from the Jetpack servers.
  * Forgets all connection details and tells the Jetpack servers to do the same.
  * @static
  */
 public static function disconnect($update_activated_state = true)
 {
     wp_clear_scheduled_hook('jetpack_clean_nonces');
     Jetpack::clean_nonces(true);
     Jetpack::load_xml_rpc_client();
     $xml = new Jetpack_IXR_Client();
     $xml->query('jetpack.deregister');
     Jetpack_Options::delete_option(array('register', 'blog_token', 'user_token', 'user_tokens', 'master_user', 'time_diff', 'fallback_no_verify_ssl_certs'));
     if ($update_activated_state) {
         Jetpack_Options::update_option('activated', 4);
     }
     // Disable the Heartbeat cron
     Jetpack_Heartbeat::init()->deactivate();
 }
开发者ID:lokenxo,项目名称:familygenerator,代码行数:19,代码来源:class.jetpack.php

示例2: disconnect

 /**
  * Disconnects from the Jetpack servers.
  * Forgets all connection details and tells the Jetpack servers to do the same.
  * @static
  */
 function disconnect($update_activated_state = true)
 {
     wp_clear_scheduled_hook('jetpack_clean_nonces');
     Jetpack::clean_nonces(true);
     Jetpack::load_xml_rpc_client();
     $xml =& new Jetpack_IXR_Client();
     $xml->query('jetpack.deregister');
     Jetpack::delete_option(array('register', 'blog_token', 'user_token', 'time_diff', 'fallback_no_verify_ssl_certs'));
     if ($update_activated_state) {
         Jetpack::update_option('activated', 4);
     }
 }
开发者ID:Bencheci,项目名称:blueRavenStudiosProject,代码行数:17,代码来源:jetpack.php

示例3: disconnect

 /**
  * Disconnects from the Jetpack servers.
  * Forgets all connection details and tells the Jetpack servers to do the same.
  * @static
  */
 public static function disconnect($update_activated_state = true)
 {
     wp_clear_scheduled_hook('jetpack_clean_nonces');
     Jetpack::clean_nonces(true);
     Jetpack::load_xml_rpc_client();
     $xml = new Jetpack_IXR_Client();
     $xml->query('jetpack.deregister');
     Jetpack_Options::delete_option(array('register', 'blog_token', 'user_token', 'user_tokens', 'master_user', 'time_diff', 'fallback_no_verify_ssl_certs'));
     if ($update_activated_state) {
         Jetpack_Options::update_option('activated', 4);
     }
     $jetpack_unique_connection = Jetpack_Options::get_option('unique_connection');
     // Check then record unique disconnection if site has never been disconnected previously
     if (-1 == $jetpack_unique_connection['disconnected']) {
         $jetpack_unique_connection['disconnected'] = 1;
     } else {
         if (0 == $jetpack_unique_connection['disconnected']) {
             //track unique disconnect
             $jetpack = Jetpack::init();
             $jetpack->stat('connections', 'unique-disconnect');
             $jetpack->do_stats('server_side');
         }
         // increment number of times disconnected
         $jetpack_unique_connection['disconnected'] += 1;
     }
     Jetpack_Options::update_option('unique_connection', $jetpack_unique_connection);
     // Disable the Heartbeat cron
     Jetpack_Heartbeat::init()->deactivate();
 }
开发者ID:jordankoschei,项目名称:jordankoschei-dot-com,代码行数:34,代码来源:class.jetpack.php

示例4: disconnect

 /**
  * Disconnects from the Jetpack servers.
  * Forgets all connection details and tells the Jetpack servers to do the same.
  * @static
  */
 public static function disconnect($update_activated_state = true)
 {
     wp_clear_scheduled_hook('jetpack_clean_nonces');
     Jetpack::clean_nonces(true);
     // If the site is in an IDC because sync is not allowed,
     // let's make sure to not disconnect the production site.
     if (!self::validate_sync_error_idc_option()) {
         Jetpack::load_xml_rpc_client();
         $xml = new Jetpack_IXR_Client();
         $xml->query('jetpack.deregister');
     }
     Jetpack_Options::delete_option(array('register', 'blog_token', 'user_token', 'user_tokens', 'master_user', 'time_diff', 'fallback_no_verify_ssl_certs'));
     Jetpack_IDC::clear_all_idc_options();
     if ($update_activated_state) {
         Jetpack_Options::update_option('activated', 4);
     }
     if ($jetpack_unique_connection = Jetpack_Options::get_option('unique_connection')) {
         // Check then record unique disconnection if site has never been disconnected previously
         if (-1 == $jetpack_unique_connection['disconnected']) {
             $jetpack_unique_connection['disconnected'] = 1;
         } else {
             if (0 == $jetpack_unique_connection['disconnected']) {
                 //track unique disconnect
                 $jetpack = Jetpack::init();
                 $jetpack->stat('connections', 'unique-disconnect');
                 $jetpack->do_stats('server_side');
             }
             // increment number of times disconnected
             $jetpack_unique_connection['disconnected'] += 1;
         }
         Jetpack_Options::update_option('unique_connection', $jetpack_unique_connection);
     }
     // Delete all the sync related data. Since it could be taking up space.
     require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-sender.php';
     Jetpack_Sync_Sender::get_instance()->uninstall();
     // Disable the Heartbeat cron
     Jetpack_Heartbeat::init()->deactivate();
 }
开发者ID:automattic,项目名称:jetpack,代码行数:43,代码来源:class.jetpack.php


注:本文中的Jetpack::clean_nonces方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。