WPIntell

Source evidence

Disable the_content hook

Structured Content (JSON-LD) #wpsc · support · 2023-04-14T13:52:00+00:00

complaintsentiment
mediumseverity
0.69relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

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

6 / 31 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Yurets unresolved
Hello. Please tell me how to turn off the filter ‘the_content’ via theme’s functions.php? class StructuredContent_Shortcodes { ... private function __construct() { $this->_version = STRUCTURED_CONTENT_VERSION; $this->_slug = 'structured-content'; $this->_url = untrailingslashit( plugins_url( '/', dirname( __FILE__ ) ) ); add_shortcode( 'sc_fs_faq', array( $this, 'faq' ) ); add_shortcode( 'sc_fs_multi_faq', array( $this, 'multi_faq' ) ); add_shortcode( 'sc_fs_job', array( $this, 'job' ) ); add_shortcode( 'sc_fs_event', array( $this, 'event' ) ); add_shortcode( 'sc_fs_person', array( $this, 'person' ) ); add_shortcode( 'sc_fs_course', array( $this, 'course' ) ); add_shortcode( 'sc_fs_local_business', array( $this, 'local_business' ) ); add_filter( 'the_content', array( $this, 'fix_shortcodes' ) ); add_filter( 'category_description', array( $this, 'fix_shortcodes' ) ); } ... public static function register() { if ( null === self::$instance ) { self::$instance = new StructuredContent_Shortcodes(); } } ... public function fix_shortcodes( $content ) { $array = array( '<p>[' => '[', ']</p>' => ']', ']<br />' => ']', ); $content = strtr( $content, $array ); return $content; } ... } StructuredContent_Shortcodes::register(); Sometimes my content starts with <p>[my_custom_shortcode] … and the plugin cuts out the paragraph tag etc.

Comments

0 shown

No comments were stored for this source.