Skip to content

Instantly share code, notes, and snippets.

@max-kk
Created July 6, 2019 13:03
Show Gist options
  • Save max-kk/9a340026356afa43389e2011b84a75e5 to your computer and use it in GitHub Desktop.
Save max-kk/9a340026356afa43389e2011b84a75e5 to your computer and use it in GitHub Desktop.
add_filter( 'lrm/um/default_register_form_ID', function($default_register_form_ID) {
if (is_singular('teacher') ) {
return 5; 'YOUR CUSTOM FORM ID'
}
return $default_register_form_ID;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment