This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $list_of_values = get_post_meta($post->ID, $this->meta . 'custom_field', true ); | |
| if (! empty ( $list_of_values )) { | |
| unset($list_of_values[1]); | |
| } | |
| var_dump(array_combine(range(1, count($list_of_values)), array_values($list_of_values))); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | html { | |
| sx-font-smoothing: grayscale; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| -webkit-tap-highlight-color: rgba(0,0,0,0); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -webkit-transition: all 0.3s ease-in-out; | |
| -moz-transition: all 0.3s ease-in-out; | |
| -o-transition: all 0.3s ease-in-out; | |
| -ms-transition: all 0.3s ease-in-out; | |
| transition: all 0.3s ease-in-out; | |
| -webkit-transform-style: preserve-3d; | |
| -webkit-backface-visibility: hidden; | |
| -moz-backface-visibility: hidden; | |
| -ms-backface-visibility: hidden; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if ( ! function_exists( 'create_gift_variation' ) ) { | |
| function create_gift_variation( $product_id, $price ) { | |
| $product_variation = get_posts( | |
| array( | |
| 'post_parent' => $product_id, | |
| 'post_title' => 'wfg_gift_product', | |
| 'post_type' => 'product_variation', | |
| 'posts_per_page' => 1 | |
| ) | |
| ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function gift_register_meta_box() { | |
| add_meta_box( | |
| 'mdf_gift_meta_box', | |
| __( 'Цена', 'tochkawp' ), | |
| 'mdf_gift_meta_box_handler', | |
| 'gift', | |
| 'normal', | |
| 'high' | |
| ); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function acf_add_button( $field ) { | |
| $screen = get_current_screen(); | |
| if( $screen->post_type === 'product' ) { | |
| echo '<div class="acf-relationship-header"><a href="#" id="acf-add-all" class="button" title="">Добавить все</a></div>'; | |
| } | |
| } | |
| add_action('acf/render_field/type=relationship', 'acf_add_button', 10, 1); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if ( ! function_exists( 'add_cf7_shortcode' ) ) { | |
| add_filter('wpcf7_special_mail_tags', 'add_cf7_shortcode', 20, 3); | |
| function add_cf7_shortcode($output, $name, $html) { | |
| $name = preg_replace('/^wpcf7\./', '_', $name); | |
| if ('_admin_mail' == $name) { | |
| if ( function_exists('get_option_tree') ) { | |
| $email = ot_get_option('email'); // get OT value | |
| $output = $email; | 
NewerOlder