• Resolved nachokaiser

    (@nachokaiser)


    Hi, I’d like to know if it’s posible to add a hook in the Products class that returns a instance of the class so I can make some modifications to the logic of the class itself.

    What we want to achieve is to reorder hooks priority on new-product-single.php in order to change the items order in product upload (inventory, shipping, attributes, etc) and acording to this article (https://www.sitepoint.com/digging-deeper-wordpress-hooks-filters/ search for ” Example 1: Hook Inside WooCommerce Class
    “) we need an instance of Products class. If there is a way to get that instance from other place I’d be pleased to know where.

Viewing 1 replies (of 1 total)
  • Hello @nachokaiser ,

    I understand your expectation. However, Dokan’s structure to include each of this section is different than what the article is suggesting and it does not allow for modification of the hooks to change the orders.

    You are unable to access the function or hook directly. If you want changes that need to be done in core plugin files.

    Thank you ??

Viewing 1 replies (of 1 total)
  • The topic ‘Reordering blocks (inventory, shipping, etc) in product edit page’ is closed to new replies.