Tinye Ntọala mmekọrịta na WordPress Okwu gị

wordpress na -elekọta mmadụ akara ngosi

WordPress na-enye profaịlụ onye ọrụ na ntọala maka njikọ mmekọrịta; agbanyeghị, ọtụtụ saịtị mmekọrịta dịka Facebook na Google+ na-enye ohere maka saịtị ma ọ bụ blọọgụ gị niile iji nwee ọnụnọ na netwọkụ ndị ahụ. Anyị na-arụ ọrụ na saịtị ndị ahịa n'izu a ebe anyị chọrọ ime ka ọ dịrị ha mfe ịtọ ma tinye njikọ mmekọrịta nke saịtị ha, yabụ anyị gbakwunyere nhọrọ ndị ọzọ na ha Ntọala Nzuzo General WordPress page.

Nzọụkwụ mbụ anyị bụ imelite Ọrụ Ha (dịka functions.php) ma debanye aha ntọala niile anyị chọrọ itinye:

 // ————— Tinye Ntọala na Ntọala Izugbe —————— ọrụ social_settings_api_init () {// Tinye ngalaba na ntọala izugbe ka anyị nwee ike itinye mpaghara // anyị tinye ya tinye_settings_section ('social_setting_section', 'Social saịtị na weebụ ',' social_setting_section_callback_function ',' general '); // Tinye ubi na aha na ọrụ iji mee ihe maka nhazi ọhụrụ // anyị, tinye ya na ngalaba ọhụrụ anyị add_settings_field ('general_setting_facebook', 'Facebook Page', 'general_setting_facebook_callback_function', 'general', 'social_setting_section'); // Debanye aha anyị ka $ _POST njikwa emere anyị na // ọrụ anyị na-akpọghachi ga-ekwughachi registration_setting ('izugbe', 'general_setting_facebook'); add_settings_field ('general_setting_twitter', 'Twitter Account', 'general_setting_twitter_callback_function', 'general', 'social_setting_section'); registration_setting ('izugbe', 'general_setting_twitter'); add_settings_field ('general_setting_googleplus', 'Google Plus Page', 'general_setting_googleplus_callback_function', 'general', 'social_setting_section'); register_setting ('general', 'general_setting_googleplus'); add_settings_field ('general_setting_youtube', 'Youtube Page', 'general_setting_youtube_callback_function', 'general', 'social_setting_section'); registration_setting ('izugbe', 'general_setting_youtube'); add_settings_field ('general_setting_linkedin', 'LinkedIn Page', 'general_setting_linkedin_callback_function', 'general', 'social_setting_section'); register_setting ('general', 'general_setting_linkedin'); } add_action ('admin_init', 'social_settings_api_init');

Nzọụkwụ anyị ọzọ bụ ịgbakwunye ogige ndị dị n'ime peeji nke Ntọala General nke ga-echekwa ozi ahụ n'ime ha:

 // —————- Ntọala ngalaba ọrụ oku - ——————- function social_setting_section_callback_function () {echo ' Akụkụ a bụ ebe ị nwere ike ịchekwa saịtị mmekọrịta ebe ndị na-agụ nwere ike ịchọta gị na ịntanetị. '; } function general_setting_facebook_callback_function () {ikwughachi '  '; } function general_setting_twitter_callback_function () {ikwughachi '  '; } function general_setting_googleplus_callback_function () {ikwughachi '  '; } function general_setting_youtube_callback_function () {ikwughachi '  '; } function general_setting_linkedin_callback_function () {ikwughachi '  '; }

Ugbu a, oge ọ bụla onye ahịa ahụ chọrọ imelite ntọala ntọala ibe ha, ha nwere ike imelite ntọala ntọala ahụ na WordPress General Settings. N'ime isiokwu ahụ, anyị na-echeta ntọala niile ebe ọ bụla achọrọ (n'ọnọdụ onye ahịa a, ọ bụ ebe igodo mgbasa ozi mmekọrịta na isi okwu nke saịtị ha):


		

2 Comments

  1. 1
    • 2

      Ee, enwere ike. M na-eche na ọ chọrọ ụfọdụ mgbịrịgba na whistles mbụ… dị ka na-akpaghị aka na-ebipụta G + nkwusa njikọ na nkụnye eji isi mee, oghe eserese meta data maka Facebook, wdg Naanị ime nke a adịghị ka ọ dị mma!

Kedu ihe ị chere?

Ebe a na-eji Akismet iji belata spam. Mụta otu esi etinye usoro data gị.