workmanagmenttools
Forum Replies Created
-
Forum: Plugins
In reply to: [IdeaPush] Customize where ‘Login’ button links toAh, no, think I got it:
//Change IdeaPush Login Links
add_filter(‘the_content’, ‘specific_login_redirect’, 9);
function specific_login_redirect($content) {
if (is_page(‘Power User Voting’)) {
add_filter( “idea_push_change_login_link”, “idea_push_change_login_link_callback”, 10, 1 );
function idea_push_change_login_link_callback( $link ) { return “https://workmanagement.tools/power-user-login/”;
}
return $content;
} else {
return $content;
}
}add_filter(‘the_content’, ‘courses_login_redirect’, 9);
function courses_login_redirect($content) {
if (is_page(‘Next Courses’)) {
add_filter( “idea_push_change_login_link”, “idea_push_change_login_link_callback”, 10, 1 );
function idea_push_change_login_link_callback( $link ) { return “https://workmanagement.tools/login/”;
}
return $content;
} else {
return $content;
}
}`Forum: Plugins
In reply to: [IdeaPush] Customize where ‘Login’ button links toCheers for the quick reply, much appreciated! And yes, got the pro version now, needed it for multiple boards anyway.
I followed just enough to think I might be able to google it, but no, I’m pretty lost.
I understand that I’d need to add something to functions.php that only applies to 1 page based on checking the ID, and then uses the filter you provide, which I found and was able to use generally.If you could share how to couch it so it only applies to 1 page, that would be much appreciated!