buddyforms_update_post_args

You can manipulate the post arguments with the filter `buddyforms_update_post_args`

Description

<?php add_filter( 'buddyforms_update_post_args', 'filter_function_name' ) ?>

filter_function_name should be unique function name. It cannot match any other function name already declared.

Parameters

$args
 (array) ( required) The arguments array
Array (
     [post_id] => The post id. 0 == new post
     [action] =>  The form action
     [form_slug] => The form slug
     [post_type] => The post type
     [post_excerpt] => The post excerpt
     [post_author] => The author id of the post
     [post_status] => The post status
     [post_parent] => The Post parent
     [comment_status] => Comment status (open or close)
 )

Examples

add_filter('buddyforms_update_post_args', 'bf_my_custom_post_status', 10, 1);

Still need help? Contact Us Contact Us