[php]/*
* Profile Builder Pro: Current User link shortcode
* Use like so: [current_user_link] This is displayed only if current user is logged in.
*/
add_shortcode( ‚current_user_link‘, ‚wppbc_current_user_link‘ );
function wppbc_current_user_link( $atts, $content ) {
if ( is_user_logged_in() ) {
$id = get_current_user_id();
if ( ICL_LANGUAGE_CODE == ‚de‘ ){
$ausstellerprofiltext = ‚Online-Ausstellerprofil‘;
} else {
$ausstellerprofiltext = ‚online exhibitor profile‘;
}
// make sure to change the URL to represent your setup.
return „“ . $ausstellerprofiltext . „„;
}
return ;
}[/php]
Related Articles
- Fix Elementor fixed Background sizing
- Cronjob Überlappung verhindern – flock()
- WordPress Update Hinweise deaktivieren
- WP Download Manager "attached file is missing/deleted" Fehler
- WordPress Staging: Uploads Ordner von Production Seite einlesen (per htaccess)
- WC Attribute Komma durch Linebreak ersetzen
- Profile Builder Pro add multiple user roles on register form
- Profile Builder Pro User Listing Filter by multiple meta key values
- Resize anstatt Crop von Avatar Bildern in Profile Builder Pro
- Profile Builder Felder Übersetzung mit WPML