For anyone wanting to do this outside of the plugin, to future proof this from updates, you can use the global var in place of the $this
add_action( 'woocommerce_after_add_to_cart_button', array( $GLOBALS['Product_Addon_Display'], 'display' ), 10 );
add_action( 'woocommerce_before_add_to_cart_button', array( $GLOBALS['Product_Addon_Display'], 'totals' ), 20 );
Related Posts:
- I need a way to filter the titles in the page parent dropdown on the editor page
- Setting a default parent page
- remove attribute page from woocommerce
- WordPress Page Attributes: Stop users changing the default parent
- Adding Page Attributes Metabox and Page Templates to the Posts Edit Page?
- WordPress admin screen very slow / timing out when editing or adding a new page/custom post
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Increment Page Order As Pages Are Created
- Custom page type – template under page attributes?
- Put an extra check box on “Page Attributes” widget
- How to add data- attribute to tag
- How to disable Page Attributes dropdown in wp-admin
- Removing or Restricting Access to Page Templates for Editor Role
- Created custom post type but selected template not staying selected
- How to get a list of post types that “support” various things such as page-attributes?
- Parent page using wp_dropdown_pages and multiple post types
- Change Order of Admin Posts Depending on Meta
- How to get the order attribute of a page
- Programatically added attribute, set to ‘show on product page’ automatically. Woocommerce [closed]
- Remove meta box for specific page
- Can Page Templates be Applied to Archive and Post Templates?
- Why is the Page Template dropdown menu using the wrong file name?
- How to remove the Template drop down, but keep Parent and Order
- Add Standard Page Attributes Metabox for Page Parent
- Sort CPT archive by order prevents sorting in admin
- How can I set different html lang attribute for different countries?
- How to convert the WordPress meta box Page Attributes->Page Template dropdown to radio buttons?
- How to list all WC products by their attributes values?
- How to use Custom Page Templates for hierarchical Custom Post Type
- Page attributes missing
- Edit Parent page drop menu when creating a page
- Set template for custom post type?
- Add a custom meta box for client to order CPT posts how they want
- How can I limit page parent dropdown to show only author’s own pages?
- WordPress 3.2 – removed ability to select a page template in the page attributes when adding a new page?
- Why is a renamed custom template file still showing up in the template dropdown menu?
- Change the default blog post post attribute template name from “default template” to something else
- Force a specific template as default
- How to enable parent-child relationships and post attribute admin widget for posts
- Can You Build Page Templates Without Extra Files
- How to use the full page
- How to return a specific attribute
- Displaying Woocommerce Product Attributes on single product page
- Submitting product attributes via Ninja Forms wordpress?
- Automatic duplicate/copy of post to a related page in WordPress
- An excluded ‘ghost’ page is crashing my permalink
- Remove Header and style.css from Specific Post template
- Custom post-type working except for Selecting page-parent
- get_the_post_thumbnail() title and alt attributes not displaying
- How to enable post types on Page Attributes?
- WordPress function with attribute pass to template
- WordPress Custom Post Type – Post Attribute: Template. Template shows up and saves on the back end, but the default theme file is being rendered
- Templates list in “Page Attributes” metabox is inaccurate
- create template for one page
- JQuery multiple toggle values
- WooCommerce Layered Nav Widget [closed]
- Custom template not working for existing pages [closed]
- Page-parent field not appearing in editor [closed]
- Can this react script be optimized? How to make it faster