projects
/
WP-Themes
/
shipwreckmuseum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d905456
)
Adding filter to keep gravity forms from creating post entries
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 9 Jun 2016 15:40:54 +0000
(11:40 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 9 Jun 2016 15:40:54 +0000
(11:40 -0400)
If we we custom fields they will create a post entry.
This will keep any form from adding one.
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
1a24888
..
88636b1
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-388,5
+388,8
@@
function glm_per_product_rates_only( $rates, $package ) {
return $rates;
}
-
+add_filter( 'gform_disable_post_creation', 'disable_post_creation', 10, 3 );
+function disable_post_creation( $is_disabled, $form, $entry ) {
+ return true;
+}
?>