Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Add custom Post Form on the My Account Page (https://prnt.sc/1faf4zy) */
- // filter/hook to modify WPUF Account page's tab/section
- add_filter('wpuf_account_sections',function ($sections){
- $sections['event-form'] = 'Event Form'; // add new tab Event FOrm on the Account page
- return $sections;
- },999);
- // add custom form on the WPUF Account page's tab/section
- add_action( 'wpuf_account_content_event-form', 'wpuf_my_event_form_section', 10, 3 );
- function wpuf_my_event_form_section( $sections, $current_section ) {
- echo do_shortcode('[wpuf_form id="814"]'); //insert your post form shortcode here
- }
Add Comment
Please, Sign In to add comment