Last active
May 10, 2017 22:26
-
-
Save digitalchild/6f9cb555373d8cd4ad07 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Replace product descriptions with wordpress editor
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
<?php | |
// This code goes in the product-edit.php override template for wc-vendors pro | |
// Replace WCVendors_Pro_Product_Form::description( $object_id, $product_description ); | |
// with | |
$product_description_args = array( | |
'editor_height' => 200, | |
'media_buttons' => true, | |
'teeny' => true, | |
); | |
wp_editor( $product_description , 'post_content', $product_description_args ); | |
// Replace WCVendors_Pro_Product_Form::short_description( $object_id, $product_short_description ); | |
// With | |
$product_short_description_args = array( | |
'editor_height' => 200, | |
'media_buttons' => true, | |
'teeny' => true, | |
); | |
wp_editor( $product_short_description , 'post_excerpt', $product_short_description_args ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment