Hoʻohui i nā hoʻonohonoho kaiaulu i kāu Kumuhana WordPress

kiʻiona pili kai huaʻōlelo

Hāʻawi ʻo WordPress i nā ʻikepili hoʻohana me nā hoʻonohonoho no nā loulou kaiaulu; eia naʻe, makemake nui nā pūnaewele kaiaulu Facebook a Google+ hāʻawi i nā manawa kūpono no kāu pūnaewele āpau a i ʻole blog e loaʻa i kahi alo i loko o kēlā mau pūnaewele. Ke hana nei mākou ma kahi pūnaewele mea kūʻai aku i kēia pule kahi makemake mākou e maʻalahi iā lākou e hoʻonohonoho a hoʻohui i nā loulou pili kaiapili o kā lākou pūnaewele, no laila ua hoʻohui mākou i nā koho hou aʻe i kā lākou Nā kaʻolālā kūlana'ōnaewele palapala.

ʻO kā mākou hana mua e hoʻomaikaʻi i kā lākou mau hana kumuhana (maʻamau functions.php) a hoʻopaʻa inoa i kēlā me kēia hoʻonohonoho i makemake mākou e hoʻohui:

 // ————— Hoʻohui i nā koho i nā koho laulā —————– hana social_settings_api_init () {// Hoʻohui i ka ʻāpana i nā hoʻonohonoho maʻamau i hiki ai iā mākou ke hoʻohui i kā mākou // kahua iā ia add_settings_section ('social_setting_section', 'Social sites ma ka pūnaewele ',' social_setting_section_callback_unction ',' general '); // Add the field with the names and function to use for our new // setting, hoʻokomo i loko o kā mākou ʻāpana hou add_settings_field ('general_setting_facebook', 'Facebook Page', 'general_setting_facebook_callback_unction', 'general', 'social_setting_section'); // E hoʻopaʻa inoa i kā mākou hoʻonohonoho ʻana i hana ʻia $ _POST lawelawe no mākou a // e hana hou kā mākou hana callback i ka register_setting ('general', 'general_setting_facebook'); add_settings_field ('general_setting_twitter', 'Twitter Account', 'general_setting_twitter_callback_unction', 'general', 'social_setting_section'); register_setting ('general', 'general_setting_twitter'); add_settings_field ('general_setting_googleplus', 'Google Plus ʻAoʻao', 'general_setting_googleplus_callback_unction', 'general', 'social_setting_section'); register_setting ('general', 'general_setting_googleplus'); add_settings_field ('general_setting_youtube', 'Youtube Page', 'general_setting_youtube_callback_unction', 'general', 'social_setting_section'); register_setting ('general', 'general_setting_youtube'); add_settings_field ('general_setting_linkedin', 'ʻAoʻao LinkedIn', 'general_setting_linkedin_callback_unction', 'general', 'social_setting_section'); register_setting ('general', 'general_setting_linkedin'); } add_action ('admin_init', 'social_settings_api_init');

ʻO kā mākou hana hou e hoʻohui i nā kahua maoli i loko o ka ʻAoʻao hoʻonohonoho palapala e mālama ai i ka ʻike i loko o lākou:

 // —————- pauku hoʻonohonoho hoʻonohonoho callback function ———————- hana social_setting_section_callback_unction () {echo ' ʻO kēia ʻāpana kahi e hiki ai iā ʻoe ke mālama i nā pūnaewele kaiapuni kahi e ʻike ai nā mea heluhelu iā ʻoe ma ka Pūnaewele. '; } hana general_setting_facebook_callback_unction () {echo '  '; } hana general_setting_twitter_callback_unction () {echo '  '; } hana general_setting_googleplus_callback_unction () {echo '  '; } hana general_setting_youtube_callback_unction () {echo '  '; } hana general_setting_linkedin_callback_unction () {echo '  '; }

I kēia manawa, i kēlā me kēia manawa makemake ka mea kūʻai aku e hoʻohou i kā lākou ʻaoʻao ʻaoʻao kaiaulu, hiki iā lākou ke hoʻololi i nā kahua hoʻonohonoho i loko o kā lākou WordPress General Setting. Ma loko o ke kumuhana, hoʻomanaʻo wale mākou i kahi hoʻonohonoho i nā wahi a pau e pono ai (i ka hihia o kēia mea kūʻai, he pā hoʻokele pāpili kaiapili i ke poʻo o kā lākou pūnaewele):


		

2 Comments

  1. 1
    • 2

      ʻAe, hiki nō. Manaʻo wale wau he pono i nā bele a me nā ʻāwī hou aʻe ... e like me ka paʻi ʻana i ka loulou hoʻopuka G + ma ke poʻo, ka ʻikepili meta graph ākea no Facebook, a pēlā wale aku.

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.