Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alamgircsebd/258fcc79ee75710eb729deb82c4a1d94 to your computer and use it in GitHub Desktop.
Save alamgircsebd/258fcc79ee75710eb729deb82c4a1d94 to your computer and use it in GitHub Desktop.
Dokan product description media buttons added
/**
* Dokan product description media buttons added
*
* @param array $args
*
* @return array $args
*/
function dokan_product_description_media_button_added( $args ) {
$args['media_buttons'] = true;
return $args;
}
add_filter( 'dokan_product_short_description', 'dokan_product_description_media_button_added' );
add_filter( 'dokan_product_description', 'dokan_product_description_media_button_added' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment