brizy wordpress shit. had to google my own article

This commit is contained in:
Wouter Groeneveld 2022-08-31 17:14:42 +02:00
parent fd19aae00f
commit 802057e81c
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ Actually, injecting post content using that shortcode comes with a big shortcomi
```php
function su_post_content_filter($value) {
return apply_shortcodes($value);
// add your dirty hacks using preg_replace BEFORE apply_shortcodes that hijacks your embeds!
// remember: these won't work for RSS feeds. Better to use add_shortcode().
$value = apply_shortcodes($value);
return $value;
}
```