LegacyProxy

Proxy class to access legacy WooCommerce functionality.


Description Description

This class should be used to interact with code outside the src directory, especially functions and classes in the includes directory, unless a more specific proxy exists for the functionality at hand (e.g. ActionsProxy). Idempotent functions can be executed directly.


Source Source

File: src/Proxies/LegacyProxy.php


			

Top ↑

Methods Methods

  • call_function — Call a user function. This should be used to execute any non-idempotent function, especially those in the `includes` directory or provided by WordPress.
  • call_static — Call a static method in a class. This should be used to execute any non-idempotent method in classes from the `includes` directory.
  • get_instance_of — Gets an instance of a given legacy class.
  • get_instance_of_wc_queue_interface — Get an instance of a class implementing WC_Queue_Interface.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.