Access `add_service_point_to_checkout()` from outside the plugin
-
Hi,
I want to change the position of the service point button on the checkout page. I could use this code snippet to change the position but since
$sendcloud->service_point_checkout_handler
is a private method I cant access it outside the class.$plugins_dir = WP_PLUGIN_DIR . 'sendcloud-shipping/sendcloud-shipping.php'; $sendcloud = Sendcloud\Shipping\Sendcloud::init( $plugins_dir ); add_action( 'woocommerce_checkout_order_review', array( $sendcloud->service_point_checkout_handler, 'add_service_point_to_checkout' ), 11 );
Would you be able to make it public or provide any other API function to call the add_service_point_to_checkout function from outside the plugin?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Access `add_service_point_to_checkout()` from outside the plugin’ is closed to new replies.