Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save svenl77/9409887 to your computer and use it in GitHub Desktop.
Save svenl77/9409887 to your computer and use it in GitHub Desktop.
BuddyForms WP-Posts-to-Posts --> Add Connection ParameterExample function
add_filter('connection_types_args', 'add_connection_parameter', 99, 2);
function add_connection_parameter($args, $form_slug){
if($form_slug != 'Your BuddyForms Form Slug')
return $args;
$args = array_merge($args, array( 'title' => 'Your Title' ));
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment