Nciphisa Okuthunyelwe Okuhlobene noJetpack Osukwini Olucacisiwe

usuku lokukhawulela

Namuhla, bengibheka kabili i-athikili ebengiyibhalile futhi ngabona ukuthi okuthunyelwe okuhlobene okuqhamukile bekuvela eminyakeni eyi-9 eyedlule endaweni yesikhulumi engasekho. Ngakho-ke, nginqume ukubhekisisa imininingwane ye- Jetpack izinketho zokuthunyelwe okuhlobene kusayithi lami bese ubona ukuthi ngingakhawulela yini ibanga ledethi.

UJetpack wenza umsebenzi omuhle wokukhetha izikhala ezifanele ezifanayo, kodwa ngeshwa, akanalo nhlobo ulwazi lokuthi izindatshana eziningi zingase ziphelelwe yisikhathi. Imvamisa ngisusa okuthunyelwe kwakudala okungenangqondo, kepha anginaso isikhathi sokubuyekeza zonke izindatshana ze-5,000 engizibhale isikhathi esingaphezu kweminyaka eyishumi!

Ngeshwa, asikho isilungiselelo esivuliwe Jetpack ukufeza lokhu, ungasetha kuphela ukuthi ufisa ukuba nesihloko esikhulu, ukuthi siyini isihloko, nezinketho zesakhiwo, noma ngabe ukukhombisa izithonjana, noma ukukhombisa usuku, noma ukukhombisa noma yikuphi okuqukethwe.

okuthunyelwe okuhlobene i-plugin jetpack

Njengakho konke okuku- WordPress, noma kunjalo, kune-API eqinile lapho ungenza khona ngokwezifiso itimu yakho yengane (noma yetimu's) imisebenzi.php futhi uguqule ukuthi isebenza kanjani. Kulokhu, ngifuna ukukhawulela ububanzi bokunye okuthunyelwe okuhlobene kube yiminyaka emi-2… ngakho-ke nayi ikhodi:

function dk_related_posts_limit( $date_range ) {
    $date_range = array(
        'from' => strtotime( '-2 years' ),
        'to' => time(),
    );
    return $date_range;
}
add_filter( 'jetpack_relatedposts_filter_date_range', 'dk_related_posts_limit' );

Lokhu kungeza isihlungi embuzweni osetshenziswa ama-plugin wokuthunyelwe ahlobene. Ngilayishe ukuvuselelwa kusayithi lami futhi manje okuthunyelwe okuhlobene kukhawulelwe kunoma yini ebhalwe eminyakeni emibili edlule!

Kunezindlela ezingeziwe ze- ukwenza ngezifiso okuthunyelwe kwakho okuhlobene futhi, hlola ikhasi lokuxhaswa kweJetpack esihlokweni.

Ukudalula: Ngisebenzisa eyami WordPress futhi Jetpack izixhumanisi ezihambisanayo kulokhu okuthunyelwe.

UCABANGANI?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda ukuthi idatha yakho yokuphawula isetshenziswa kanjani.