Kudar Dejin Bulsheedkaaga Mawduuca WordPress

ereyada bulshada ee wordpress

WordPress waxay bixisaa astaamaha isticmaalaha oo leh dejimaha isku xirnaanta bulshada; si kastaba ha noqotee, baraha bulshada badan ayaa jecel Facebook iyo Google+ fursado u soo bandhig boggaaga oo dhan ama bartaada si aad ugu dhex yeelato shabakadahaas. Waxaan ka shaqeyneynay goob macaamiil usbuucaan halkaasoo aan rabnay inaan ugu fududeyno iyaga inay dejiyaan oo ay ku daraan xiriiriyeyaasha bulshada ee boggooda, sidaas darteed waxaan ku darnay xulashooyin dheeri ah WordPress Guud Guud .

Tallaabadayada ugu horreysay waxay ahayd inaan cusbooneysiinno Hawlahooda Mawduuca (sida caadiga ah functions.php) oo diiwaangeli mid kasta oo ka mid ah goobaha aan jeclaan lahayn inaan ku darno:

 // ————— Kudar Dejinada Goobaha Guud —————– function social_settings_api_init () {// Kudar qaybta goobaha guud si aan ugu dari karno // beeraheena add_settings_section ('social_setting_section', 'Baraha bulshada shabakadda ',' social_setting_section_callback_function ',' general '); // Kudar beerta oo leh magacyada iyo shaqada aad u adeegsaneyso nidaamkeena cusub //, ku dheji qeybta cusub add_settings_field ('general_setting_facebook', 'Facebook Page', 'general_setting_facebook_callback_function', 'general', 'social_setting_section'); // Diiwaangeli goobteenna si $ _POST wax loogu qabto annaga iyo // shaqadeena dib-u-soo-wicitaan ee kaliya waa inay ku dhawaaqdo diiwaanka_setting ('guud', ​​'general_setting_facebook'); add_settings_field ('general_setting_twitter', 'Twitter Account', 'general_setting_twitter_callback_function', 'general', 'social_setting_section'); diiwaanka_setting ('guud', ​​'general_setting_twitter'); add_settings_field ('general_setting_googleplus', 'Google Plus Page', 'general_setting_googleplus_callback_function', 'guud', ​​'social_setting_section'); diiwaanka_setting ('guud', ​​'general_setting_googleplus'); add_settings_field ('general_setting_youtube', 'Youtube Page', 'general_setting_youtube_callback_function', 'general', 'social_setting_section'); diiwaanka_setting ('guud', ​​'general_setting_youtube'); add_settings_field ('general_setting_linkedin', 'LinkedIn Page', 'general_setting_linkedin_callback_function', 'general', 'social_setting_section'); diiwaanka_setting ('guud', ​​'general_setting_linkedin'); } add_action ('admin_init', 'social_settings_api_init');

Tallaabadayada xigta waxay ahayd inaan ku darno meelaha dhabta ah ee ku jira bogga Guud ee Guud ee keydinaya macluumaadka ku dhex jira:

 // —————- Shaqada qaybta dib u soo celinta wicitaanka ————————- function social_setting_section_callback_function () {echo ' Qaybtani waa halka aad ku keydin karto baraha bulshada ee ay akhristayaashu kaaga heli karaan internetka. '; } shaqeynaya general_setting_facebook_callback_function () {echo '  '; } shaqeynaya general_setting_twitter_callback_function () {echo '  '; } shaqeynaya general_setting_googleplus_callback_function () {echo '  '; } shaqeynaya general_setting_youtube_callback_function () {echo '  '; } shaqeynaya general_setting_linkedin_callback_function () {echo '  '; }

Hadda, wakhti kasta oo macmiilku rabo inuu cusbooneysiiyo bogaggooda bulshada, waxay cusbooneysiin karaan goobaha dejimaha ku dhex jira WordPress-ka Guud. Mawduuca dhexdiisa, waxaan si fudud u xasuusannaa dejinta meel kasta oo loo baahdo (kiiskan macmiilkiisa, waxay ahayd bar bar baraha bulshada ee cinwaanka boggooda):


		

2 Comments

  1. 1
    • 2

      Haa, hubaal wuu kari karaa. Waxaan u maleynayaa inay u baahan tahay xoogaa dawanno ah iyo fooriyo dheeraad ah marka hore automatically sida si toos ah u daabacida isku xirka daabacaadaha G + ee cinwaanka, xogta garaafka furan ee Facebook, iwm. Kaliya sameynta tan uma muuqan wax qabow!

Maxay idinla tahay?

Boggani wuxuu isticmaalaa Akismet si loo yareeyo spam. Baro sida xogtaada faallooyinkaaga looga shaqeeyo.