Kenya Litlhophiso tsa Sechaba ho Sehlooho sa Hau sa WordPress

li-icon tsa sechaba tsa wordpress

WordPress e fana ka lifaele tsa mosebelisi ka li-setting tsa lihokela tsa sechaba; leha ho le joalo, libaka tse ngata tsa sechaba li rata Facebook 'me Google+ fana ka menyetla bakeng sa sebaka sa hau sa marang-rang kapa blog ho ba le boteng ka har'a marang-rang ao. Re ne re sebetsa sebakeng sa bareki bekeng ena moo re neng re batla ho ba nolofalletsa ho beha le ho eketsa lihokela tsa marang-rang tsa bona, ka hona re kentse likhetho tse ling ho bona Lisebelisoa tsa Kakaretso tsa WordPress page.

Mohato oa rona oa pele e ne e le ho ntlafatsa Mesebetsi ea Sehlooho (hangata fonts.php) le ho ngolisa e 'ngoe le e' ngoe ea li-setting tseo re lakatsang ho li eketsa:

 // ————-- Kenya Litlhophiso ho Litlhophiso tse Akaretsang —————– sebetsa social_settings_api_init () {// Eketsa karolo ho li-setting tse akaretsang hore re tle re kenye masimo a rona a // ho eona add_settings_section ('social_setting_section', 'Social sites ho web ',' social_setting_section_callback_function ',' general '); // Eketsa tšimo ka mabitso le ts'ebetso eo u ka e sebelisang bakeng sa li-setting tsa rona tse ncha tsa //, e kenye karolong ea rona e ncha add_settings_field ('general_setting_facebook', 'Facebook Page', 'general_setting_facebook_callback_function', 'general', 'social_setting_section'); // Ngodisa maemo a rona e le hore $ _POST e re etsetse ts'ebetso mme // mosebetsi oa rona oa ho khutlisa o tlameha feela ho pheta ngoliso_setting ('kakaretso', 'kakaretso_setting_facebook'); add_settings_field ('general_setting_twitter', 'Account ea Twitter', 'general_setting_twitter_callback_function', 'general', 'social_setting_section'); ngodisa_setting ('kakaretso', 'general_setting_twitter'); add_settings_field ('general_setting_googleplus', 'Google Plus Page', 'general_setting_googleplus_callback_function', 'general', 'social_setting_section'); ngodiso_setting ('kakaretso', 'general_setting_googleplus'); add_settings_field ('general_setting_youtube', 'Leqephe la Youtube', 'general_setting_youtube_callback_function', 'general', 'social_setting_section'); ngodiso_setting ('kakaretso', 'general_setting_youtube'); add_settings_field ('general_setting_linkedin', 'LinkedIn Page', 'general_setting_linkedin_callback_function', 'kakaretso', 'social_setting_section'); ngodisa_setting ('kakaretso', 'general_setting_linkedin'); } add_action ('admin_init', 'social_settings_api_init');

Mohato oa rona o latelang e ne e le ho eketsa masimo kahare ho leqephe la li-General Settings le ka bolokang tlhaiso-leseling kahare ho bona

 // —————- Lisebelisoa tsa karolo ea ts'ebetso ea ho khutla ———————-- function social_setting_section_callback_function () {echo ' Karolo ena ke moo o ka bolokang libaka tsa marang-rang moo babali ba ka u fumanang inthaneteng. '; } mosebetsi general_setting_facebook_callback_function () {echo '  '; } mosebetsi general_setting_twitter_callback_function () {echo '  '; } mosebetsi general_setting_googleplus_callback_function () {echo '  '; } mosebetsi general_setting_youtube_callback_function () {echo '  '; } mosebetsi general_setting_linkedin_callback_function () {echo '  '; }

Hona joale, neng kapa neng ha moreki a batla ho ntlafatsa maemo a bona a leqephe la sechaba, ba ka ntlafatsa masimo a li-setting ka har'a li-WordPress General Settings tsa bona. Ka har'a sehlooho, re hopola feela maemo moo ho hlokahalang (maemong ana a moreki, e ne e le sebaka sa ho tsamaisa litaba tsa sechaba sechabeng sa sebaka sa bona sa marang-rang):


		

2 Comments

  1. 1
    • 2

      Ho joalo. Ke nahana feela hore e hloka litloloko tse ling tse eketsehileng le liloli pele… joalo ka ha e le hore e phatlalatsa ka bo eona khokahano ea baphatlalatsi ea G + hloohong, data e bulehileng ea meta ea Facebook, jj. Ho etsa sena feela ho ne ho sa bonahale ho pholile ka ho lekana!

U nahana eng?

Sebaka sena se sebelisa Akismet ho fokotsa spam. Ithute kamoo litlhaloso tsa hau li hlahang kateng.