Advertisement
fauzanjeg

Fix WPBakery Shortcode issue with Autoload Posts

Sep 24th, 2021
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. /* Fix WPBakery Shortcode issue with Autoload Posts */
  2. function fix_wpbakery_shortcode_in_autoload( $content ) {
  3.     WPBMap::addAllMappedShortcodes();
  4.     return $content;
  5. }
  6. add_filter( 'the_content', 'fix_wpbakery_shortcode_in_autoload', 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement