I believe you could use template_redirect to handle the redirect step:
function my_page_template_redirect() {
if ( !is_page( 'overview' ) && is_user_logged_in() ) {
wp_redirect( home_url( '/thinkingmachines/overview/' ) );
die;
}
}
add_action( 'template_redirect', 'my_page_template_redirect' );
Related Posts:
- Login form from shortcode doesn’t redirect after successful login
- Use another action instead of the shortcode API to display the last time a user logged in
- Modifying the wordpress login page and then referencing it with a shortcode problem
- Processing a login/register form before shortcodes are rendered?
- How to create a custom shortcode for custom login form?
- Set redirect for need login
- i want to show a modal when user lands on home page very first time
- Custom Login in Shortcode got error
- shortcodes output before content [duplicate]
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- WordPress adds br in between my shortcode
- Shortcodes, HTML tables, and multiple rows
- Shortcode to Gutenberg-block: additional text on front-end and conditional display
- How navigation works in custom loop within shortcode?
- Use [shortcode=”value”] instead of [shortcode att=”value”]?
- I dont want to show shortcode in tag
- Login with email (WP Modal Login)
- Post loop created via shortcode not displaying shortcode in content
- Shortcodes: Pros and Cons
- WordPress shortcode doesn’t working on HomePage
- Can’t understand $atts in functions?
- Are .MP3 files with capital letter extensions allowed in [audio] shortcode?
- How to parse this shortcode?
- Get Posts shortcode plugin and meta_query?
- Shortcode parsed incorrectly because of heredoc
- Shortcode is running in page editor
- Creating shortcode with parameter
- Video Shortcodes not working in WordPress
- Create shortcode in Child Theme?
- Get post object in shortcode function
- How to insert image and text from admin panel throughout my theme
- How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?
- Use shortcodes in terms description? [closed]
- How to add shortcode to HTML file (not showing on website)
- Custom Shortcode: define cursor position/insertion point?
- show shortcodes in editor
- Image Shortcode from ACF ID
- Page code showing in WP Dashboard
- echo do_shortcode just prints the shortcode name and not its content
- How to create a shortcode with html and php code
- Insert shortcode between ”
- Create a shortcode to use in visual editor
- do_shortcode doesn’t work on some pages
- Custom youtube shortcode that uses $content
- How to build dynamic pages?
- Shortcode not showing $content in correct place
- How to reload the shortcode content when the database is changing
- Best way to include reusable sections in page content
- Regenerating WordPress shortcodes based on value with AJAX
- Custom shortcode to display posts, first post is full
- Form shortcode with multiple options as attributes
- How to add data attributes to the wordpress audio shortcode
- wordpress login without password just email address (NO 2 factor authentication with email)
- Beginner’s question about shortcodes
- How to execute a shortcode outside the post content/entry in a theme?
- Multiple instances of the shortcode on the same page
- Shortcode from admin textarea to page
- Form processing: How to process form before output and access data from shortcode
- get data with shortcode
- Replace shortcode with output in database?
- Wrap php in shortcode
- Adding my own custom woocommerce shortcode to child theme, how?
- contact form 7 :create shortcode usable in email message [closed]
- Iteratively add sub shortcodes to php array
- Shortcode, Concatenating & Parse error: syntax error, unexpected T_FOREACH
- Better way to display multiple plugin output on the same page?
- Getting Shortcode Attributes befor content is displayed by the template
- Shortcode to appear and show the date not code in Title and description of my website
- Colon is Missing In My Website Url in WordPress Shortcode
- Shortcode not working inside div html
- How to utilise multiple values from a single shortcode attribute?
- JavaScript missing from shortcode content
- Multiple shortcodes with embedded JavaScript code in same page, how?
- How to insert a short code into Contact Form 7 in WordPress that will call a function once the submit button is pressed
- How to Call Related Post based on Categories Inside Post Content with Shortcode?
- Multiple shortcodes only use attributes from one of the shortcodes on custom plugin
- Cannot modify class property from shortcode handler function
- How do i remove Business feeds Shortcode fatal error
- Redirect after login to current URL
- Can’t place endwhile in the loop properly in a shortcode
- How to reduce the image size inside an icon? [closed]
- How to insert visual compser post grid shortcode in a custom page template? [closed]
- Push Shortcode parameter to template
- latest posts shortcode with image
- Shortcode tags appear on mobile themes
- Video shortcode inside tabs shorcode NOT working
- Manipulated shortcode output
- Where is escaped the shortcode?
- How to add meta slider lite or other slider to main page header in pinboard theme
- Str_replace using shortcode with multiple changes
- Changing layout of defaul gallery output to masonry
- WordPress do_shortcode first iteration
- Add a short code to a plugin
- Add widget/shortcode to sidebar OUTSIDE of the theme
- I can’t login to wordpress dashboard without SSH
- How to remove https:// from shortcode generated url
- How to enable on custom shortcodes
- Nested ShortCode works inside the_content, but not outside of it
- I have the query code but not the shortcode
- wordpress how to sort posts on custom data with plug-in “Search & Filter”