register( new AllpayBlocksIntegration() ); } ); } } // Add custom action links add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'allpay_action_links' ); function allpay_action_links( $links ) { $plugin_links = array( '' . __( 'Settings', 'allpay-payment-gateway' ) . '', ); // Merge our new link with the default ones return array_merge( $plugin_links, $links ); } // HPOS support add_action( 'before_woocommerce_init', function() { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); //__FILE__ should direct to your plagin main file } } );