Created
April 27, 2022 10:34
-
-
Save hivepress/80fa5789fd066865b7561ac05ce9a371 to your computer and use it in GitHub Desktop.
Enable rich text (HTML) editor for the vendor description #hivepress #vendors
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 | |
add_filter( | |
'hivepress/v1/models/vendor', | |
function( $model ) { | |
$model['fields']['description']['editor'] = true; | |
return $model; | |
}, | |
1000 | |
); |
Please make sure that you added it correctly (e.g. via the Code Snippets plugin). Also, note that it's a snippet for the vendor (not listing) description, please check it in Account/Settings section.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
didn't work for me / taskhive