WordPress: Nānā inā hoʻokomo ʻia ka mea hoʻohana

ʻO John Chow he kihi maikaʻi loa ma kāna pūnaewele i kēia lā ma ke kau ʻana i kahi loulou hoʻolaha ma kāu pūnaewele a me ka hōʻoia ʻana ʻaʻole kuhikuhi ʻia me ka nofollow. Hiki iā ʻoe ke hana i kēia me kahi ʻaoʻao hoʻohuli maʻalahi a John i kau ai i ke code.

Makemake wau e hana iki i kēia. I kaʻu papa kuhikuhi ma luna, he kumu kūʻai ka waiwai. He loulou lawelawe kaʻu ma laila inā ʻeʻe wau i loko ... akā no ka poʻe ʻē aʻe, he wahi hakahaka kēlā. Ua hoʻoholo wau, no ke aha e hoʻololi ʻole ai i ka ʻike o kēlā pā i ka hanana he kipa kēia a ʻaʻole iaʻu. Me WordPress, maʻalahi kēia.


get_currentuserinfo ();
global $ user_level;
inā ($ user_level> 0) {
wp_register ('> li class = "menuitem">', '> / li>');
} ka mea'ē aʻe {
echo "> li class = 'menuitem' >> a href = '/ go / tla.html' title = 'Hoʻolaha ma kēia Pūnaewele'> Hoʻolaha> / a >> / li>";
}
?>

ʻAʻole wau i hana i kahi dime me Nā Pepa Hoʻohui Text akā makemake wau e hāʻawi i kahi pana maikaʻi. He kumu kūʻai ʻole kaʻu no kaʻu pūnaewele ... $ 35 no ka mahina a loaʻa iaʻu ma kahi o 500 mau malihini kipa i ka lā. Makemake wau e lawelawe i kekahi o kēia mau mea!

5 Comments

  1. 1

    Manaʻo maikaʻi!

    ʻOiai makemake wau e hoʻoponopono hou i ka loulou i kuhikuhi ʻia - i kēia manawa ke noi nei iā ʻoe no kāu kikoʻī log-on. ʻAʻole ke ʻano o ka ʻaoʻao aʻu i makemake ai e hoʻokipa ʻia, inā wau he mea hoʻolaha hoʻolaha 😉

  2. 3

    ʻOiaʻiʻo e ʻoi aku ka maikaʻi o kēia ʻāpana o ke code a loaʻa ka hopena like?

    /* 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

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.