The class WC_Checkout is assigned to a member of the class Woocommerce. So maybe something like this could work:
add_action( "plugins_loaded", "wpse_91273_custom_checkout", 999 );
function wpse_91273_custom_checkout()
{
$GLOBALS['woocommerce']->checkout = new Custom_Checkout;
}
Related Posts:
- Difference Between Filter and Action Hooks?
- How to create an API for my plugin?
- Which action for triggering cron “wp”or “init”?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- add_filter OO with parameters
- How do I print a notice only on certain admin pages?
- Do I need to call do_action in my plugin?
- How Do I Load My Action Earlier Enough?
- Does WP fire delete_post when trashed posts are automatically deleted?
- How can I limit functionality in one version of a plugin?
- Actions or filters fired when data is saved in a custom table
- In a plugin, why is add_action(‘init’) not executed before the plugin is activated?
- What’s the difference between hooks, filters and actions? [duplicate]
- Shortcode display outside the div
- What action is called when drafts are saved?
- Adding callback function for wp_ajax_ has no effect
- How can I hook into existing WordPress Bulk actions?
- How to add custom content under plugin row in WordPress admin plugin list?
- Can a plugin add to header/footer/body content?
- Define a function outside a class and call the function using action or filter hook
- Create a plugin to change the action to which a function is hooked
- How to add inline css/js inside a shortcode
- In woocommerce who is responsible for sending the receipt email?
- Modifying values with add_action to be sent to db
- template_redirect not being called when using ajax
- How to redirect to action on custom page within admin section
- add action wp_head not working
- admin_notices not displaying in plugin
- Hook to get image filename when it is uploaded
- What are the benefit in adding hook in the init() hook?
- How to run an add_action hook for specific page
- add_action in functions.php, do_action in plugin?
- Which action is triggered when a theme was modified?
- wp_transition_post_status does not change the status of the post
- Getting admin notices working for plugin errors
- add action for displaying posts using a shortcode
- Which are the hooks run before/after when a category’s deletion?
- Should action callbacks start with a verb?
- Execute Hook on the footer or header after activating a plugin
- An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
- Issue plugin commands in admin settings page
- Woocommerce custom emails without header and footer
- My plugin class doesn’t work! [closed]
- add_action not calling back to function
- Tried in different ways but sidebar not working?
- conditionally load javascript & CSS for do_action() calls from plugin
- How to get all of the activate_plugin action parameters?
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- Adding rewrite rule dynamically
- How to hook a custom user function to a wordpress core ajax action?
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- How to check current user before all actions and filters?
- Unable to change footer using wp_footer action hook
- Custom plugin init action causing general slowness
- How to filter content for specific content variable
- I have 2 plugins using the same wp_login action hook and one is not working
- Valid filenames for add_action’s first parameter
- Inject HTML meta tag inside wordpress tag using add_shortcode
- WordPress class, using add_action to call member function does not work
- Where do I put my add_action(… and add_filter(… and do I need to remove them?
- How dynamic action login_form_{action} is working
- Add action to fire when a published post is updated
- How to pass variables to a function argument using add_action [duplicate]
- Bug: Post needs to be updated twice when adding action for save_post hook
- Delete data from database using row action
- When does save_post hook fire on post save/update
- change add to cart button link [closed]
- Hook for page Request?
- Call to undefined function is_home() or any conditional tags
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- wordpress automatic update does not run
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Custom CSS not being added by plugin
- How to use add_action for multiple instances of the same class
- WooCommerce currency converter support [closed]
- Woocommerce – looping product images
- How Can I Add Code To A Preexisting Function Without Editing it
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Adding tables to dashboard pages programmatically?
- Setting post_id for single.php based on URL without a redirect
- I cannot include a file in my plugin settings page
- Action / Hook when a new plugin is added
- apply_filters() and call_user_func() to define and call a function outside a class
- Why do actions with class and public method don’t fire __construct()
- Where do I hook to have the server do something in PHP on block attribute change?
- The function called on the wp head hook becomes null
- Post is uncatagorized in publish_post action
- Nested Actions and Filters
- Passing function into add_action always returns the first argument
- Get post content inside plugin class method
- wp_ajax add_action fuction won’t fire on custom jQuery action
- remove different admin menu for specific users
- WordPress Reset password Strength set to medium
- echo plugin results on pages
- Does WordPress have something like timer hook?
- WooCommerce custom payment gateway
- How wordpress plugin hooks works? [duplicate]
- woocommerce features to add product along with link
- Apply function on all action hooks?
- add_action() not working for admin