My courses as default page
Hi, is there any way to have the “my courses “ as default page when users goes inside the course spaces, instead of “all courses”?
I have wrote this code only for the first login to a specific post, maybe you can edit that:
add_action('fluent_community/portal_head', function() {
// Stelle sicher, dass der Benutzer eingeloggt ist
if ( is_user_logged_in() ) {
$user = wp_get_current_user();
// Überprüfen, ob es der erste Login des Benutzers ist
$last_login = get_user_meta( $user->ID, 'last_login', true );
if ( empty( $last_login ) ) {
// Setze das Datum des ersten Logins
update_user_meta( $user->ID, 'last_login', current_time( 'mysql' ) );
// Weiterleitung zur gewünschten Seite nach dem ersten Login
wp_redirect( 'https://XXXXXXXX.com/community/space/willkommen/home' );
exit;
}
}
});
You can change the link in the menu to do that.
J V how?
J V just got it. But how can I retrieve the current course icon? I didn't find the proper icon
Tindaro Battaglia Copy/paste?
J V No way to copy paste this
Tindaro Battaglia Of course you can. ;)
J V how
Tindaro Battaglia just click on the thing and it will show itself. Can't paste it here.
J V what must be shown? I don’t find a way to choose standard fc icons
Tindaro Battaglia the code to copy and paste. It's right there.