register_main_integration(); } /** * Registers the main JS file required to add filters and Slot/Fills. */ public function register_main_integration() { wp_enqueue_script( 'sdevs_subscrpt_cart_block' ); } /** * Returns an array of script handles to enqueue in the frontend context. * * @return string[] */ public function get_script_handles() { return array( 'sdevs_subscrpt_cart_block' ); } /** * Returns an array of script handles to enqueue in the editor context. * * @return string[] */ public function get_editor_script_handles() { return array( 'sdevs_subscrpt_cart_block' ); } /** * An array of key, value pairs of data made available to the block on the client side. * * @return array */ public function get_script_data() { return array(); } }