當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GoogleSitemapGeneratorLoader::CallShonxtingResult方法代碼示例

本文整理匯總了PHP中GoogleSitemapGeneratorLoader::CallShonxtingResult方法的典型用法代碼示例。如果您正苦於以下問題:PHP GoogleSitemapGeneratorLoader::CallShonxtingResult方法的具體用法?PHP GoogleSitemapGeneratorLoader::CallShonxtingResult怎麽用?PHP GoogleSitemapGeneratorLoader::CallShonxtingResult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GoogleSitemapGeneratorLoader的用法示例。


在下文中一共展示了GoogleSitemapGeneratorLoader::CallShonxtingResult方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Enable

 /**
  * Enabled the sitemap plugin with registering all required hooks
  *
  * If the sm_command and sm_key GET params are given, the function will init the generator to rebuild the sitemap.
  */
 function Enable()
 {
     //Check for 3.0 multisite, NOT supported yet!
     if (defined('nxt_ALLOW_MULTISITE') && nxt_ALLOW_MULTISITE || function_exists('is_multisite') && is_multisite()) {
         if (function_exists('is_super_admin') && is_super_admin()) {
             add_action('admin_notices', array('GoogleSitemapGeneratorLoader', 'AddMultisiteWarning'));
         }
         return;
     }
     //Register the sitemap creator to nxtclass...
     add_action('admin_menu', array('GoogleSitemapGeneratorLoader', 'RegisterAdminPage'));
     //Nice icon for Admin Menu (requires Ozh Admin Drop Down Plugin)
     add_filter('ozh_adminmenu_icon', array('GoogleSitemapGeneratorLoader', 'RegisterAdminIcon'));
     //Additional links on the plugin page
     add_filter('plugin_row_meta', array('GoogleSitemapGeneratorLoader', 'RegisterPluginLinks'), 10, 2);
     //Existing posts was deleted
     add_action('delete_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //Existing post was published
     add_action('publish_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //Existing page was published
     add_action('publish_page', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //nxt Cron hook
     add_action('sm_build_cron', array('GoogleSitemapGeneratorLoader', 'CallBuildSitemap'), 1, 0);
     //External build hook
     add_action('sm_rebuild', array('GoogleSitemapGeneratorLoader', 'CallBuildNowRequest'), 1, 0);
     //Robots.txt request
     add_action('do_robots', array('GoogleSitemapGeneratorLoader', 'CallDoRobots'), 100, 0);
     //Help topics for context sensitive help
     add_filter('contextual_help_list', array('GoogleSitemapGeneratorLoader', 'CallHtmlShowHelpList'), 9999, 2);
     //Check if this is a BUILD-NOW request (key will be checked later)
     if (!empty($_GET["sm_command"]) && !empty($_GET["sm_key"])) {
         GoogleSitemapGeneratorLoader::CallCheckForManualBuild();
     }
     //Check if the result of a ping request should be shown
     if (!empty($_GET["sm_ping_service"])) {
         GoogleSitemapGeneratorLoader::CallShonxtingResult();
     }
 }
開發者ID:nxtclass,項目名稱:NXTClass,代碼行數:43,代碼來源:sitemap.php


注:本文中的GoogleSitemapGeneratorLoader::CallShonxtingResult方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。