Example #1
0
 /**
  * Initializes WordPress hooks
  */
 private static function init_hooks()
 {
     self::$initiated = true;
     /*
     		add_action( 'wp_insert_comment', array( 'Akismet', 'auto_check_update_meta' ), 10, 2 );
     		add_filter( 'preprocess_comment', array( 'Akismet', 'auto_check_comment' ), 1 );
     		add_action( 'akismet_scheduled_delete', array( 'Akismet', 'delete_old_comments' ) );
     */
 }
 private static function shopify_multipass_url($user_login, $user)
 {
     $customer_data = array('email' => $user->user_email, 'tag_string' => 'blog_member', 'return_to' => get_site_url());
     $multipass = new ShopifyMultipass(KeyshotShopifyMultipass::get_api_secret());
     $token = $multipass->generate_token($customer_data);
     return 'https://' . KeyshotShopifyMultipass::get_api_domain() . '/account/login/multipass/' . $token;
 }
Example #3
0
      <p>
        <label for="shopify_api_domain">
          Shopify store domain
          <br />
          <input name="shopify_api_domain" type="text" size="50" value="<?php 
echo esc_attr(KeyshotShopifyMultipass::get_api_domain());
?>
" class="regular-text" />
        </label>
      </p>

      <div>
        <label for="recaptcha_client_key">
          Recaptcha client side validation pass
          <br />
        </label>
        
        <input name="recaptcha_client_key" type="text" size="50" value="<?php 
echo KeyshotShopifyMultipass::get_recaptcha_client_key();
?>
" class="regular-text" />
      </div>

      <br />

      <input type="submit" class="button button-primary" value="Update options"/>
    </form>
  </div>
</div>
Example #4
0
 public static function display_page()
 {
     KeyshotShopifyMultipass::view('admin_page', array('arg1' => 'key1'));
 }