You can wrap the entire return
output in a do_shortcode()
. That will render the shortcode as well as output the regular content.
function bp_contenido_privado( $atts, $content = null ) {
if ( is_user_logged_in() ) {
return do_shortcode( $content );
}
return '<p style="font-weight:bold;padding-top:10px;">Este contenido esta reservado para los usuarios registrados. Registrate <a href="'.wp_registration_url().'">aquí</a> o <a href="'.wp_login_url(get_permalink()).'">inicia la sesión</a> para poder verlo..</p>';
}