Paste2
Create Paste
Followup Paste
QR
<?php
function
has_gform
()
{
$id
=
get_the_id
();
$post
=
get_post
(
$id
);
$all_content
=
apply_filters
(
'the_content'
,
$post
->
post_content
);
if
(
strpos
(
$all_content
,
'[gravityform'
)
!==
false
)
{
return
true
;
}
else
{
return
false
;
}
}