WooCommerce' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ); ?>

register(new TWENTYBYTES_Payment_Gateway_Blocks()); } ); } add_action('woocommerce_blocks_loaded', 'twentybytes_register_payment_method_block'); /** * Add action links to the plugins page * * @param array $links Plugin action links. * @return array */ function twentybytes_plugin_action_links($links) { $plugin_links = array( '' . esc_html__('Settings', '20bytes-payment') . '' ); return array_merge($plugin_links, $links); } add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'twentybytes_plugin_action_links'); /** * Initialize the plugin */ function twentybytes_plugin_init() { // Verify WooCommerce is active and at the required version if (!class_exists('WooCommerce') || version_compare(WC_VERSION, '6.0', '<')) { add_action('admin_notices', function() { echo '

' . esc_html__('20bytes Payment Gateway requires WooCommerce 6.0 or greater.', '20bytes-payment') . '

'; }); return; } // Additional initialization if needed } add_action('init', 'twentybytes_plugin_init');