Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add a new post type (Event) on the WPUF Account page start
- add_filter( 'wpuf_account_sections', 'wpuf_my_event_page' );
- function wpuf_my_event_page( $sections ) {
- $sections = array_merge( $sections, array( array( 'slug' => 'event', 'label' => 'Events' ) ) );
- return $sections;
- }
- //Add a new post type (Event) on the WPUF Account page start code
- add_action( 'wpuf_account_content_event', 'wpuf_my_event_page_section', 10, 2 );
- function wpuf_my_event_page_section( $sections, $current_section ) {
- echo do_shortcode('[wpuf_dashboard post_type="tribe_events"]');
- }
- //Add a new post type (Event) on the WPUF Account page End code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement