wpsl_strip_content_shortcode

  1. Description
  2. Usage
  3. Changelog
  4. Source File

Description

When the post content data is included in the search results the shortcodes in the content are always removed. With this filter you can change that, so the shortcode output will show up in the returned data.

Usage

You can prevent the shortcodes from being removed from the post content by using the code below.

Changelog

Since 2.2.18

Source File

This filter is located in /frontend/class-frontend.php

Placement

The code needs to be placed in the functions.php file inside your active theme folder.