elle id girmek yerine ;

has_shortcode( $content, 'contact-form') ile detect edip daha dinamik bir if clouses kullanabilirsiniz.