aioseo_conflicting_shortcodes

aioseo_conflicting_shortcodes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.8.1.1

apply_filters('aioseo_conflicting_shortcodes') is found 1 times:

  • /app/Common/Traits/Helpers/Shortcodes.php line 114
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    */
    private function doShortcodesHelper( $content, $tagsToRemove = [], $postId = 0 ) {
        global $shortcode_tags; // phpcs:ignore Squiz.NamingConventions.ValidVariableName
        $conflictingShortcodes = array_merge( $tagsToRemove, $this->conflictingShortcodes );
        $conflictingShortcodes = apply_filters( 'aioseo_conflicting_shortcodes', $conflictingShortcodes );
     
        $tagsToRemove = [];
        foreach ( $conflictingShortcodes as $shortcode ) {
            $shortcodeTag = str_replace( [ '[', ']' ], '', $shortcode );
            if ( array_key_exists( $shortcodeTag, $shortcode_tags ) ) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName
                $tagsToRemove[ $shortcodeTag ] = $shortcode_tags[ $shortcodeTag ]; // phpcs:ignore Squiz.NamingConventions.ValidVariableName