WPIntell

Source evidence

Not acting on shortcode generated content

JSM Non-Breaking Space (nbsp) for French Content · support · 2020-05-30T15:03:00+00:00

neutralsentiment
lowseverity
0.26relevance
1replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
designcmk resolved
Hi, thank you you for giving existence to this plugin. I would like to point out that the content generated through shortcodes, does not get affected. For instance, this code returns the exact same text: add_shortcode( 'shortcode_name', function () { $out = '<p>Combien vaut le kilo de pommes ? 25 €</p>'; return $out; } ); Any ideas on why is this happening ? Thank you and good day. Yes, that’s correct, WordPress does re-apply ‘the_content’ filter to shortcode output. You would have to fix the text in your shortcode function, either by applying the WordPress ‘the_content’ filter to your text, or calling the NbspFrench::filter( $text ) method. js.

Comments

1 shown
JS Morisset 2020-08-31T14:51:00+00:00

Yes, that’s correct, WordPress does re-apply ‘the_content’ filter to shortcode output. You would have to fix the text in your shortcode function, either by applying the WordPress ‘the_content’ filter to your text, or calling the NbspFrench::filter( $text ) method. js.