Visualizzazione 5 filoni di risposte
Visualizzazione 5 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Richiesta Stringa php
Buongiorno a tutti sono nuovo su questo blog, avrei un quesito da porvi,
io sto effettuando un sito in wp ma avrei bisogno che un determinato plugin che sto utilizzando per l’upload dei file non venga visualizzato solo dai sottoscrittori, mi spiego meglio quando vado nella sezione download del sito vorrei che il sottoscrittore effettui il download ma non abbia la possibilita di up.
Vorrei sapere la stringa di codice da eguagliare al ruolo
ES.
if(roles==subscriber){
<div>Vuoto</div>
}else{
il codice già presente
}
Ringrazio tutti in anticipo
Hai perfettamente ragione… ma a me serve che in una pagina alcuni elementi non vengano visualizzati dal current_user_can( ‘subscriber’ ) , è da oggi pom che mi sbatto ma non ci sto riuscendo…help me please!!!
if ( ! current_user_can(quello che vuoi tu) )
PS: è prima controllerei se è loggato.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0