1

Тема: Убрать should not be called statically in варнинги

Всем привет,

Понадобилось поковырять чужой вордпрессовсий плагин WOOEXIM - WooCommerce Export Import Plugin, Version 1.0.0  в WordPress 4.6.1 под PHP Version 7.0.8-0ubuntu0.16.04.2
И в режиме отладки полезли варнинги:

Deprecated: Non-static method WOOEXIM_Import::translations() should not be called statically in ...
Deprecated: Non-static method WOOEXIM_Import::admin_menu() should not be called statically in... 

При определении в классе:

class WOOEXIM_Import {
    
    public function __construct() {
        add_action( 'init', array( 'WOOEXIM_Import', 'translations' ), 1 );
        add_action('admin_menu', array('WOOEXIM_Import', 'admin_menu'));
        add_action('wp_ajax_wooexim-import-ajax', array('WOOEXIM_Import', 'render_ajax_action'));
    }

    public function translations() {
        load_plugin_textdomain( 'wooexim-import', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    }Deprecated: Non-static method WOOEXIM_Import::translations() should not be called statically in 
Deprecated: Non-static method WOOEXIM_Import::admin_menu() should not be called statically in 


    public function admin_menu() {
        add_menu_page( 'WOOEXIM', 'WOOEXIM', 'manage_options', 'wooexim-import', '', '', 56 );
        add_submenu_page( 'wooexim-import', 'Import Product', 'Import Products', 'manage_options', 'wooexim-import', array('WOOEXIM_Import', 'render_admin_action'));
    }

Можно ли как-то подправить чтобы убрать эти варнинги?

  Спасибо !