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


PHP GoogleSitemapGeneratorLoader::CallCheckForManualBuild方法代码示例

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


在下文中一共展示了GoogleSitemapGeneratorLoader::CallCheckForManualBuild方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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()
 {
     //Register the sitemap creator to wordpress...
     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);
     //WP 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::CallShowPingResult();
     }
 }
开发者ID:sjcockell,项目名称:fuzzierlogic.blog,代码行数:36,代码来源:sitemap.php

示例2: Enable

 function Enable()
 {
     //Register the sitemap creator to wordpress...
     add_action('admin_menu', array('GoogleSitemapGeneratorLoader', 'RegisterAdminPage'));
     //Existing posts gets deleted
     add_action('delete_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //Existing post gets published
     add_action('publish_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //WP Cron hook
     add_action('sm_build_cron', array('GoogleSitemapGeneratorLoader', 'CallBuildSitemap'), 1, 0);
     if (!empty($_GET["sm_command"]) && !empty($_GET["sm_key"])) {
         GoogleSitemapGeneratorLoader::CallCheckForManualBuild();
     }
 }
开发者ID:alx,项目名称:alexgirard.com-blog,代码行数:14,代码来源:sitemap.php

示例3: 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.
  */
 static function Enable()
 {
     //Check for 3.0 multisite, NOT supported yet!
     if (defined('WP_ALLOW_MULTISITE') && WP_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 wordpress...
     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);
     //WP 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::CallShowPingResult();
     }
     //If somebody had v4 installed and downgraded, delete rewrite rules and rename backup sitemaps back if available.
     if (get_option("sm_rewrite_done", false)) {
         add_action('wp_loaded', array(__CLASS__, 'DeleteV4Rewrite'), 9999, 1);
     }
 }
开发者ID:selectSIFISO,项目名称:.comsite,代码行数:47,代码来源:sitemap.php

示例4: 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()
 {
     //Register the sitemap creator to wordpress...
     add_action('admin_menu', array('GoogleSitemapGeneratorLoader', 'RegisterAdminPage'));
     //Existing posts gets deleted
     add_action('delete_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //Existing post gets published
     add_action('publish_post', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //Existing page gets published
     add_action('publish_page', array('GoogleSitemapGeneratorLoader', 'CallCheckForAutoBuild'), 9999, 1);
     //WP Cron hook
     add_action('sm_build_cron', array('GoogleSitemapGeneratorLoader', 'CallBuildSitemap'), 1, 0);
     //WP Cron hook
     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);
     //Register javascripts if needed
     add_filter('load-settings_page_sitemap', array('GoogleSitemapGeneratorLoader', 'CallHtmlRegScripts'), 1, 0);
     //Check if this is a BUILD-NOW request (key will be checked later)
     if (!empty($_GET["sm_command"]) && !empty($_GET["sm_key"])) {
         GoogleSitemapGeneratorLoader::CallCheckForManualBuild();
     }
 }
开发者ID:enlamp,项目名称:enlamp.cn,代码行数:28,代码来源:sitemap.php


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