Last active
April 28, 2023 08:32
-
-
Save mattiasghodsian/64ae22ac59d2629a59c9ca0a0d51a686 to your computer and use it in GitHub Desktop.
[Woocommece] Add Author to WooCommerce Products
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add Author to WooCommerce Products | |
* Author: Mattias Ghodsian | |
* Donate a cup of coffee: https://www.buymeacoffee.com/mattiasghodsian | |
* Donate Eth: 0xBBB96204E45D11C9799c6B12E6eE6F0d4A071Ef5 | |
*/ | |
add_action('init', 'add_author_support_woocommerce', 999 ); | |
function add_author_support_woocommerce() { | |
add_post_type_support( 'product', 'author' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment