{"id":16245,"date":"2012-04-28T22:19:48","date_gmt":"2012-04-28T22:19:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gravity-forms-update-post\/"},"modified":"2012-05-28T07:15:45","modified_gmt":"2012-05-28T07:15:45","slug":"gravity-forms-update-post","status":"publish","type":"plugin","link":"https:\/\/et.wordpress.org\/plugins\/gravity-forms-update-post\/","author":6793215,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.5.3","stable_tag":"0.5.3","tested":"3.3.2","requires":"2.9","requires_php":"","requires_plugins":"","header_name":"Gravity Forms - Update Post","header_author":"Kevin Miller","header_description":"","assets_banners_color":"68a432","last_updated":"2012-05-28 07:15:45","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/p51labs.com\/","header_plugin_uri":"http:\/\/p51labs.com","header_author_uri":"http:\/\/p51labs.com","rating":0,"author_block_rating":0,"active_installs":70,"downloads":7690,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"537833","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.5","0.5.1","0.5.2","0.5.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2239,601,9775,2552],"plugin_category":[42],"plugin_contributors":[79672],"plugin_business_model":[],"class_list":["post-16245","plugin","type-plugin","status-publish","hentry","plugin_tags-edit","plugin_tags-forms","plugin_tags-gravityforms","plugin_tags-update","plugin_category-contact-forms","plugin_contributors-p51labs","plugin_committers-p51labs"],"banners":{"banner":"https:\/\/ps.w.org\/gravity-forms-update-post\/assets\/banner-772x250.png?rev=537833","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gravity-forms-update-post_68a432.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Update or Delete Posts, Pages or Custom Post Types with Gravity Forms.   Through a variety of filters the form can be restricted to the author, use custom permissions, take advantage of conditional fields, disable entries, override post status and more!<\/p>\n\n<p><strong>NOTE: This is the first official release, test with your own data and if something doesn't work as expected send bugs to support@p51labs.com<\/strong><\/p>\n\n<p>[vimeo http:\/\/vimeo.com\/41818285]<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I use it?<\/dt>\n<dd><p>Simply embed a post form into a page with Gravity Forms and them pass a post id to the page via 'gform_post_id'.<\/p><\/dd>\n<dt>Does it respect Capabilities<\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt>Will it save custom fields as unique<\/dt>\n<dd><p>Yes, there is a checkbox you can check on each custom field you add to the form to have the field saved as unique.<\/p><\/dd>\n<dt>Are there any filters\/options?<\/dt>\n<dd><p>Yes, see the readme.txt file for example of hooks and filters that can be used<\/p>\n\n<p>Use the default status of the post being edited\n    function gform_update_post_status($status, $form)\n    {\n      return 'inherit';\n    }\n    add_filter('gform_update_post_status', 'gform_update_post_status', 10, 2);<\/p>\n\n<p>Disable Entries\n    function gform_update_post_entries($status, $form)\n    {\n      return false;\n    }\n    add_filter('gform_update_post_entries', 'gform_update_post_entries', 10, 2);<\/p>\n\n<p>Change the options for the plugin\n    function gform_update_post_id($id)\n    {\n      $options['request_id'] = 'gform_post_id_special';<\/p>\n\n<pre><code>  return $options;\n}\nadd_filter('gform_update_post_id', 'gform_update_post_id');\n<\/code><\/pre>\n\n<p>Update Delete Button\n    function gform_update_post_delete_button($button, $form)\n    {\n      return '<\/p>\n\n' . $button . '\n\n<p>';\n    }\n    add_filter('gform_update_post_delete_button', 'gform_update_post_delete_button', 10, 2);<\/p>\n\n<p>Change the delete confirmation\n    function gform_update_post_confirmation_delete($confirmation)\n    {\n      return __('Ack, you deleted it... haha!');\n    }\n    add_filter('gform_update_post_confirmation_delete', 'gform_update_post_confirmation_delete', 10, 2);<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.5.3<\/h4>\n\n<ul>\n<li>Custom Meta Fix<\/li>\n<\/ul>\n\n<h4>0.5.2<\/h4>\n\n<ul>\n<li>Added banner-772x250.png<\/li>\n<\/ul>\n\n<h4>0.5.1<\/h4>\n\n<ul>\n<li>Updated the FAQ on the readme.txt<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Initial Build<\/li>\n<\/ul>","raw_excerpt":"Update or Delete Posts, Pages or Custom Post Types with Gravity Forms","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16245"}],"author":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/p51labs"}],"wp:attachment":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16245"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16245"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16245"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16245"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16245"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}