I-WordPress: Bheka ukuthi umsebenzisi ungene ngemvume yini

UJohn Chow ubenethiphu enhle kusayithi lakhe namhlanje ngokuthumela isixhumanisi sokukhangisa kusayithi lakho nokuqinisekisa ukuthi alikhonjiswanga kusetshenziswa okungaqondile. Ungakwenza lokhu ngekhasi elilula lokuqondisa kabusha uJohn athumela ikhodi kulo.

Bengifuna ukukwenza lokhu kwehluke kancane. Kumenyu yami enezingqimba ngenhla, ingcebo iyakhokhwa. Nginaso isixhumanisi somlawuli lapho uma ngingene ngemvume… kodwa kuwo wonke umuntu, leyo yindawo engenalutho. Nginqume ukuthi, kungani ungashintshi okuqukethwe kwaleyo bha uma kwenzeka kuba isivakashi hhayi mina? Nge-WordPress, lokhu kulula kakhulu:


thola_currentuserinfo ();
i- $ user_level yomhlaba wonke;
uma ($ user_level> 0) {
wp_register ('> li class = "menuitem">', '> / li>');
} enye {
echo "> li class = 'menuitem' >> a href = '/ go / tla.html' title = 'Khangisa kule Webhusayithi'> Khangisa> / a >> / li>";
}
?>

Angikaze ngenze lutho nge Izikhangiso Zesixhumanisi Sombhalo nokho kodwa ngifuna ukukushaya kahle. Ibiza kabi isiza sami… $ 35 ngenyanga futhi ngithola izivakashi ezingaphezu kuka-500 ngosuku. Ngibheke phambili ekukhonzeni okunye kwalokhu!

5 Amazwana

  1. 1

    Umbono opholile!

    Yize bengingathanda ukuthi ngingabuyekeza isixhumanisi esikhomba kuso - manje sikucela ngemininingwane yakho yokungena. Hhayi uhlobo lwekhasi ebengifuna ukubingelelwa ngalo, ukube bengingaba ngumkhangisi ive

  2. 3

    Impela le ngxenye yekhodi izosebenza kahle futhi ibe nomphumela ofanayo?

    /* If a browser has a user ID they must be logged in */
    if ( $user_ID ) :
    echo "I am logged in";
    /* For everybody that doesn't have one */
    else :
    echo "I am logged out / not logged in";
    endif;

  3. 4
  4. 5

UCABANGANI?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda ukuthi idatha yakho yokuphawula isetshenziswa kanjani.