示例#1
0
/**
 * Hook the plugin function on 'init' event.
 */
function the_champ_init()
{
    add_action('wp_enqueue_scripts', 'the_champ_load_event');
    add_action('wp_enqueue_scripts', 'the_champ_frontend_scripts');
    add_action('wp_enqueue_scripts', 'the_champ_frontend_styles');
    add_action('login_head', 'wp_enqueue_scripts', 1);
    add_action('parse_request', 'the_champ_connect');
    load_plugin_textdomain('Super-Socializer', false, dirname(plugin_basename(__FILE__)) . '/languages/');
    if (the_champ_ss_woocom_is_active()) {
        add_action('the_champ_user_successfully_created', 'the_champ_sync_woocom_profile', 10, 3);
    }
}
示例#2
0
/**
 * Hook the plugin function on 'init' event.
 */
function the_champ_init()
{
    if (get_option('the_champ_ss_version') != THE_CHAMP_SS_VERSION) {
        global $theChampFacebookOptions;
        $theChampFacebookOptions['enable_post'] = '1';
        $theChampFacebookOptions['enable_page'] = '1';
        update_option('the_champ_facebook', $theChampFacebookOptions);
        update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
    }
    add_action('wp_enqueue_scripts', 'the_champ_load_event');
    add_action('wp_enqueue_scripts', 'the_champ_frontend_scripts');
    add_action('wp_enqueue_scripts', 'the_champ_frontend_styles');
    add_action('login_head', 'wp_enqueue_scripts', 1);
    add_action('parse_request', 'the_champ_connect');
    load_plugin_textdomain('Super-Socializer', false, dirname(plugin_basename(__FILE__)) . '/languages/');
    if (the_champ_ss_woocom_is_active()) {
        add_action('the_champ_user_successfully_created', 'the_champ_sync_woocom_profile', 10, 3);
    }
}
							<?php 
_e('Social Login interface will get enabled at your Wordpress Comment form', 'Super-Socializer');
?>

							</div>
							<img src="<?php 
echo plugins_url('../images/snaps/sl_wpcomment.png', __FILE__);
?>
" />
							</td>
						</tr>
						<?php 
/**
 * Check if WooCommerce is active
 **/
if (the_champ_ss_woocom_is_active()) {
    ?>

						    <tr>
								<th>
								<img id="the_champ_sl_wc_before_form_help" class="the_champ_help_bubble" src="<?php 
    echo plugins_url('../images/info.png', __FILE__);
    ?>
" />
								<label for="the_champ_sl_wc_before_form"><?php 
    _e("Enable before WooCommerce Customer Login Form", 'Super-Socializer');
    ?>
</label>
								</th>
								<td>
								<input id="the_champ_sl_wc_before_form" name="the_champ_login[enable_before_wc]" type="checkbox" <?php