I’m attempting to examine if there’s a shortcode contact kind 7 inside a web page however that isn’t working as normal because the web page is constructed with elementor

Operate has_shortcode

I’ve tried this answer however It doesn’t work additionally

if ( outlined( 'ELEMENTOR_PRO_VERSION' ) || outlined( 'ELEMENTOR_VERSION' ) ) {
            $knowledge = get_post_meta( $post->ID, '_elementor_data', true );
            if ( !empty( $knowledge ) && has_shortcode( $knowledge, $shortcode ) ) {
                return true;
            }
        }

Thanks upfront

2