Exemplo n.º 1
0
<div class="no-key config-wrap">
  <!--
  <div class="wrapper">
    <h3> short instruction </h3>
    <h4> enable shopify multipass here </h4>
    <img src="https://docs.shopify.com/assets/images/api/tutorials/multipass-login-1.jpg" />
    <br />
    <h4> take the key </h4>
    <img src="https://docs.shopify.com/assets/images/api/tutorials/multipass-login-2.jpg" />
  </div>
  -->

  <div class="wrapper">
    <h3> Options </h3>
    <form name="" action="<?php 
echo esc_url(KeyshotShopifyMultipassAdmin::get_page_url());
?>
" method="post"> 
      <p>
        <label for="shopify_api_secret">
          Shopify Multipass api secret
          <br />
          <input name="shopify_api_secret" type="text" size="50" value="<?php 
echo esc_attr(KeyshotShopifyMultipass::get_api_secret());
?>
" class="regular-text" />
        </label>
      </p>

      <p>
        <label for="shopify_api_domain">
Exemplo n.º 2
0
 private static function init_hooks()
 {
     self::$initiated = true;
     add_action('admin_menu', array('KeyshotShopifyMultipassAdmin', 'admin_menu'), 0);
 }