Automattic\WooCommerce\Internal\TransientFiles
TransientFilesEngine::register()
Register hooks.
Method of the class: TransientFilesEngine{}
No Hooks.
Return
null
. Nothing (null).
Usage
$TransientFilesEngine = new TransientFilesEngine(); $TransientFilesEngine->register();
TransientFilesEngine::register() TransientFilesEngine::register code WC 9.5.1
public function register() { self::add_action( self::CLEANUP_ACTION_NAME, array( $this, 'handle_expired_files_cleanup_action' ) ); self::add_filter( 'woocommerce_debug_tools', array( $this, 'add_debug_tools_entries' ), 999, 1 ); self::add_action( 'init', array( $this, 'add_endpoint' ), 0 ); self::add_filter( 'query_vars', array( $this, 'handle_query_vars' ), 0 ); self::add_action( 'parse_request', array( $this, 'handle_parse_request' ), 0 ); }