Plugin Directory

Changeset 3011172


Ignore:
Timestamp:
12/18/2023 07:01:45 AM (2 years ago)
Author:
hfdepost
Message:

Performance improvement

Location:
hfd-epost-integration/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hfd-epost-integration/trunk/class/Admin.php

    r2768357 r3011172  
    2424//        add_filter('woocommerce_admin_order_actions', array($this, 'registerHfdButton'), 10, 2);
    2525
    26         add_filter('manage_edit-shop_order_columns', array($this, 'registerHfdColumn'));
    27         add_action( 'manage_shop_order_posts_custom_column', array($this, 'renderHfdActions'), 10, 2);
     26        add_filter( 'manage_edit-shop_order_columns', array( $this, 'registerHfdColumn' ) );
     27        add_action( 'manage_shop_order_posts_custom_column', array( $this, 'renderHfdActions' ), 10, 2 );
     28        add_filter( 'manage_woocommerce_page_wc-orders_columns', array( $this, 'registerHfdColumn' ) );
     29        add_action( 'manage_woocommerce_page_wc-orders_custom_column', array( $this, 'renderHfdActions' ), 10, 2 );
     30       
    2831        add_action('admin_menu', array($this, 'registerSettingMenu'));
    2932        add_action('admin_post_save_epost_setting', array($this, 'saveSetting'));
     
    363366    public function registerHfdColumn($columns)
    364367    {
    365         if (is_array($columns)) {
     368        if( is_array( $columns ) && !isset( $columns['hfd_actions'] ) ){
    366369            $columns['hfd_actions'] = esc_html( __( 'HFD Actions', 'hfd-integration' ) );
    367370        }
     
    370373    }
    371374
    372     public function renderHfdActions($column, $orderId)
    373     {
    374         if ($column !== 'hfd_actions') {
     375    public function renderHfdActions( $column, $orderId )
     376    {
     377        if( $column !== 'hfd_actions' ){
    375378            return;
    376379        }
  • hfd-epost-integration/trunk/hfd-woocommerce-epost.php

    r3004105 r3011172  
    44Plugin URI:
    55Description: Add shipping method of ePost, allowing the user on the checkout, to select the pickup location point from a google map popup. Also allows to synch the order to HFD API after the order is created.
    6 Version: 1.5.2
     6Version: 1.5.3
    77Author: HFD
    88Author URI: https://www.hfd.co.il
  • hfd-epost-integration/trunk/readme.txt

    r3004105 r3011172  
    55Requires at least: 4.0
    66Tested up to: 6.4
    7 Stable tag: 1.5.2
     7Stable tag: 1.5.3
    88Requires PHP: 5.4
    99License: GPLv2 or later
  • hfd-epost-integration/trunk/templates/admin/setting.php

    r2768357 r3011172  
    8181                    <th scope="row"><?php esc_html_e( 'Company name', 'hfd-integration' ); ?></th>
    8282                    <td>
    83                         <input type="text" name="betanet_epost_hfd_sender_name" class="regular-text"
    84                                maxlength="8"
    85                                value="<?php echo esc_html( $setting->get( 'betanet_epost_hfd_sender_name' ) ); ?>"/>
     83                        <input type="text" name="betanet_epost_hfd_sender_name" class="regular-text" value="<?php echo esc_html( $setting->get( 'betanet_epost_hfd_sender_name' ) ); ?>" />
    8684                    </td>
    8785                </tr>
Note: See TracChangeset for help on using the changeset viewer.