Exemple #1
0
function A2A_SHARE_SAVE_init()
{
    global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_plugin_basename, $A2A_SHARE_SAVE_options;
    if (get_option('A2A_SHARE_SAVE_button')) {
        A2A_SHARE_SAVE_migrate_options();
        $A2A_SHARE_SAVE_options = get_option('addtoany_options');
    }
    load_plugin_textdomain('add-to-any', false, $A2A_SHARE_SAVE_plugin_basename . '/languages/');
}
Exemple #2
0
function A2A_SHARE_SAVE_init()
{
    global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_plugin_basename, $A2A_SHARE_SAVE_options;
    if (get_option('A2A_SHARE_SAVE_button')) {
        A2A_SHARE_SAVE_migrate_options();
        $A2A_SHARE_SAVE_options = get_option('addtoany_options');
    }
    load_plugin_textdomain('add-to-any', $A2A_SHARE_SAVE_plugin_url_path . '/languages', $A2A_SHARE_SAVE_plugin_basename . '/languages');
    if (!isset($A2A_SHARE_SAVE_options['display_in_excerpts']) || $A2A_SHARE_SAVE_options['display_in_excerpts'] != '-1') {
        // Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
        add_filter('get_the_excerpt', 'A2A_SHARE_SAVE_remove_from_content', 9);
        add_filter('the_excerpt', 'A2A_SHARE_SAVE_add_to_content', 98);
    }
}