开发者 | p51labs |
---|---|
更新时间 | 2012年5月28日 15:15 |
捐献地址: | 去捐款 |
PHP版本: | 2.9 及以上 |
WordPress版本: | 3.3.2 |
版权: | GPLv2 |
/wp-content/plugins/
directorySimply embed a post form into a page with Gravity Forms and them pass a post id to the page via 'gform_post_id'.
Yes.
Yes, there is a checkbox you can check on each custom field you add to the form to have the field saved as unique.
Yes, see the readme.txt file for example of hooks and filters that can be used
Use the default status of the post being edited
function gform_update_post_status($status, $form) { return 'inherit'; } add_filter('gform_update_post_status', 'gform_update_post_status', 10, 2);
Disable Entries
function gform_update_post_entries($status, $form) { return false; } add_filter('gform_update_post_entries', 'gform_update_post_entries', 10, 2);
Change the options for the plugin
`function gform_update_post_id($id)
{
$options['request_id'] = 'gform_post_id_special';
return $options;
}
add_filter('gform_update_post_id', 'gform_update_post_id');`
Update Delete Button
function gform_update_post_delete_button($button, $form) { return '<div class="some-container">' . $button . '</div>'; } add_filter('gform_update_post_delete_button', 'gform_update_post_delete_button', 10, 2);
Change the delete confirmation
function gform_update_post_confirmation_delete($confirmation) { return __('Ack, you deleted it... haha!'); } add_filter('gform_update_post_confirmation_delete', 'gform_update_post_confirmation_delete', 10, 2);