function gglstmp_update_sitemap($post_id) { if (!wp_is_post_revision($post_id)) { if ('publish' == get_post_status($post_id) || 'trash' == get_post_status($post_id) || 'future' == get_post_status($post_id)) { gglstmp_register_settings(); gglstmp_sitemapcreate(); } } }
function gglstmp_update_sitemap($post_id) { if (!wp_is_post_revision($post_id)) { global $gglstmp_update_sitemap; if (true === $gglstmp_update_sitemap) { gglstmp_register_settings(); gglstmp_sitemapcreate(); } } }
function gglstmp_plugin_banner() { global $hook_suffix; if ('plugins.php' == $hook_suffix) { global $gglstmp_plugin_info; if (!($gglstmp_settings = get_option('gglstmp_settings'))) { gglstmp_register_settings(); $gglstmp_settings = get_option('gglstmp_settings'); } if (isset($gglstmp_settings['first_install']) && strtotime('-1 week') > $gglstmp_settings['first_install']) { bws_plugin_banner($gglstmp_plugin_info, 'gglstmp', 'google-sitemap', '8fbb5d23fd00bdcb213d6c0985d16ec5', '83', '//ps.w.org/google-sitemap-plugin/assets/icon-128x128.png'); } bws_plugin_banner_to_settings($gglstmp_plugin_info, 'gglstmp_setting', 'google-sitemap-plugin', 'admin.php?page=google-sitemap-plugin.php'); } }