Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Short Description Shortcode
- This topic has 11 replies, 4 voices, and was last updated 6 years, 11 months ago by WCFM Forum.
- AuthorPosts
- January 14, 2018 at 6:58 pm #17855agoenuiParticipant
Hello, May I ask a help? About possibility Vendor Short Description area can parsing shortcode?
Thank you
- January 15, 2018 at 6:03 am #17887WCFM ForumMember
Hi,
Are you looking for executable short code within short description editor box?
I am not very clear with your query, can you please give us a bit more details on the same!Thank You
- January 15, 2018 at 4:25 pm #17927agoenuiParticipant
Yes. That is right
I wanna put executable shortcode in short description
Thank you
- January 15, 2018 at 5:18 pm #17936WCFM ForumMember
Hi,
We have to check if this possible to achieve or not!
Please give us a bit time, I will know you soon.
Thank You
- January 18, 2018 at 3:00 pm #18067agoenuiParticipant
Sure. Thank you very much
- January 20, 2018 at 6:06 pm #18158oanhtran1804Participant
Hi. I used “the_content” filter keyword to search about disabled shortcode submited by user in frontend (not disabled admin in backend)
I found this post maybe usefull, but as none developer, i can’t find my own right coded
@wclover, if you find the discussion bellow is right solution, can you please create a spinned code, which is correct use for your plugin for us.
https://github.com/Automattic/WP-Job-Manager/issues/1146#issuecomment-327852192Best regrads,
- January 20, 2018 at 6:28 pm #18159SimhaGuest
Hi,
So you want to stripout added shortcodes by the vendors,please rectify me if I am wrong!
It’s possible, I will send you best possible solution for this in very soon.
Thank You
- January 21, 2018 at 2:39 pm #18172
- January 21, 2018 at 4:31 pm #18181oanhtran1804Participant
Yes. I wanted the same agoenui, but “text editor” of web, not only short description, description and profile feilds. To secure i want: stripout added shortcodes for all editor in frontend which created by all roles (vendor, staff….etc.) except admin who allowed to add shortcode in backend (only) and shortcode can be live.
- January 23, 2018 at 8:44 pm #18282WCFM ForumMember
Hi,
Here is the code for strip short codes from vendor’s content –
function wcfm_editor_content_strip_shortcodes( $content ) { if ( wcfm_is_vendor() ) { $content = strip_shortcodes( $content ); } return $content; } add_filter( 'wcfm_editor_content_before_save', 'wcfm_editor_content_strip_shortcodes' );
Please know me is this works for you or not!
Thank You
- January 24, 2018 at 12:44 am #18299agoenuiParticipant
Hello, That code is not works for me. Just for clarify
What I ask for help is in Vendor Settings – Store – Short Description. The text area can parsing shortcode (Which is now disable by default, shortcode will not appear as a result in the vendor page/short description)
So when Vendor put shortcode in that text area, the result will appear. I use WC marketplace. So I need that my vendor can put shortcode, and can have the shortcode result
😀
Many thanks
- January 24, 2018 at 7:13 am #18305WCFM ForumMember
Hi @agoenui,
This code is not definitely for you, in fact your requirement is opposite to this.
I am really sorry for the miss-communication, two users talking in same thread but their requirement totally opposite creates this mess.
We are still looking for the most suitable solution for your request, please don’t use this code at all.
I am really apologize again for the misunderstanding.
Thanks for your patience.
Shhiv
- AuthorPosts
- The topic ‘Short Description Shortcode’ is closed to new replies.