Back to Question Center
0

I-Semalt Expert: Isikhokelo se-Plugin ye-WordPress

1 answers:

Iiplagi zezi zifowuni zekhowudi ze-PHP ezongeza ukusebenza kwiwebhusayithi yakho. Kwiikhowudi ze-amateur, abantu basebenzisa le khowudi ukufaka iimpawu t yabo yangoku kodwa ngaphandle kokuguqula ikhowudi yomxholo womxholo. Iiplagi zinceda ekwakheni izithuba zenkcubeko, ukulawula okungeniswa kwedatha, ukulandelela amanqaku akho kunye nokongeza ii-folders kwi-"CDN" iseva. Ngokomzekelo, abantu abaqhuba iiwebhusayithi ze-Amazon Affiliate eCommerce banako ukuzuza kwezi zinto. Kwezinye iimeko, unokufuna i-plugin yakho ukwenza ukuba uyisombulule imfuno ethile yendawo yakho.

Njengoko umxholo uguqula indlela kunye nokubonakala kwendawo, iifowuni ziphucula ukusebenza kwazo - ubiquiti airfiber 5 price. Izihloko ziqhuba imisebenzi yazo kwifolda yefayile yefayile. Ngeefowuni, unako ukubeka enye kwifolda yakho yeefowuni. Umntu onolwazi olusisiseko lwefayile yefayile ye-WordPress kunye nekhowudi ye-PHP unokukwazi ukwenza i-plugin yangokwezifiso. Kule nqaku ye-SEO, ungafunda indlela yokwenza i-plugin yakho.

U-Andrew Dyhan, oyingcali ehamba phambili ye-12 (Semalt , uqinisekisa ukuba usebenzisa iplagin, kufuneka uyilayishe kwaye uyisebenze kuqala.

njani iiplagizi ze-WordPress zisebenza

Iiplagizi zilula ze-PHP. Kanye njengee-themes, ezi zifayile ze-PHP zikhoyo kwindawo ethile kwi-website yakho yerekhodi. Ukwenza i-plugin, kufuneka uhambe kwiifolda yakho ye-wp-content / plugins. Ukusuka apha, yakha igama lefolda uze ufake ifayile ye-PHP kuyo. Zonke ezi zinto kufuneka zibe negama elifanayo. Ukusuka apha, unako ukwenza i-plugin yakho yokuqala ye-WordPress.

I-plugin idinga intloko. Inhloko iyinxalenye yokuqala ye-plugin. Iqulethe iinkcukacha ezizodwa ezifana negama lomlobi, inguqulo, igama, kunye nenkcazo ye-plugin. Ukusebenzisa umhleli wesicatshulwa, unokukwazi ukongeza iikhowudi kunye neemazwi kwiwebhusayithi yakho ye-WordPress. Ngokomzekelo, sicinga ukuba iplagin yethu igama elithi 'I-Plugin yethu yesampula,' ungasebenzisa ikhowudi:

Igama le-Plugin: I-Plugin yethu yesampula

Iplagi ye-URI: http: // yethu-Isibonelo-Plugin.com

Inkcazo: i-plugin ukuvavanya indlela eyenziwe ngayo

Iinguqulelo: 1..2

Umbhali: Mnu Plugin

Umbhali URI: https://oursampleplugin.com

Ilayisenisi: GPL2

Le plugin ipheleleyo. Ukuyisebenzisela kwiziko lewebhu lewebhu lingafumaneka. Nangona kunjalo, ayiqukethe nayiphi na umsebenzi kuyo. Ngenxa yoko, ayikwazi ukuphumeza nayiphi na into. Udinga ukongeza imigca yomsebenzi wale iplagin ukuze usebenze. Kwiprogram yakho ye-backend, unokongeza iifowuni zemiyalezo kumzimba wayo kwaye wenze le plugin yenze indima ethile kwiwebhusayithi yakho. Umzekelo, unokufuna ukuba le plugin ibe nakho ukufumana iimbono. Kule meko, i-plugin yakho ibonakala ngathi:

/ *

Igama le-Plugin: I-Plugin yethu yesampula

Iplagi ye-URI: http: // yethu-Isibonelo-Plugin.com

Inkcazo: i-plugin ukuvavanya indlela eyenziwe ngayo

Inkcazelo: 1.2

Umbhali: Mnu Plugin

Umbhali URI: https://oursampleplugin.com

Ilayisenisi: GPL2

* / umsebenzi awepop_get_view_count {

i-post yelizwe jikelele;

$ current_views = get_post_meta (i-post post-> ID, "fearpop_views", yinyaniso);

ukuba (! I-aseset (i-current_views) i-OR engenanto (i-current_views) i-OR okanye i-i-merika (i-current_views)) {{8)

$ current_views = 0;

}

ubuyele i $ current_views;

}>

Le iplagi epheleleyo ye-WordPress enokukwazi ukuyibuyisela kwaye ibonise ukubukwa kwephepha. Akukho mithetho imida kwimisebenzi ongayongeza kwi-plugin. Ekugqibeleni, kufuneka ulayishe kwaye ufake ifowuni yakho kwi-WordPress. Ukusuka apha, ungasebenzisa i-plugin yakho ye-WordPress.

November 29, 2017