コード例 #1
0
 function peg_img_caption_shortcode_filter_p_callback($matches)
 {
     // this function gets called for every match found in the function
     // 2 above.  Simply configure the function 1 above to do the other
     // option setting
     return Google_Photo_Access::peg_img_caption_shortcode_filter_container_callback($matches, 'peg_caption_p');
 }
コード例 #2
0
<?php

namespace photo_express;

// Make sure that we are uninstalling
if (!defined('WP_UNINSTALL_PLUGIN')) {
    exit;
}
require_once plugin_dir_path(__FILE__) . 'class-google-photo-access.php';
require_once plugin_dir_path(__FILE__) . 'class-simple-cache.php';
require_once plugin_dir_path(__FILE__) . 'class-settings-storage.php';
//uninstalls the plugin and delete all options / revoking oauth access
$configuration = new Settings_Storage();
$photo_access = new Google_Photo_Access($configuration);
$photo_access->uninstall();
$cache = new Simple_Cache($configuration, $photo_access);
$cache->clear_cache();
if (is_multisite()) {
    $configuration->delete_site_options();
} else {
    $configuration->delete_options();
}