Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1 vote

Redirect to File attached to a Post using ACF

The action redirect_to_acf_file_url doesn't exist, at least not in stock WordPress. You'll need to supply a proper action hook, and it'll need to be one that happens before any output is sent to the ...
Pat J's user avatar
  • 11.9k
1 vote

PHP If user is logged in & on home page redirect

Here is the full code, tested and working fine (to be added in functions.php) : add_action ( 'template_redirect', 'redirect_my_homepage' ); function redirect_my_homepage(){ if ( is_user_logged_in() &...
user2696419's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible