id
stringlengths
40
40
text
stringlengths
29
2.03k
original_text
stringlengths
3
154k
subdomain
stringclasses
20 values
metadata
dict
emb
listlengths
1.02k
1.02k
4c4a96e00a369008c609f51fb1bcd3095a017928
Wordpress Stackexchange Q: Disable WordPress cache programmatically on a request How do I turn off the WP Super Cache & W3 Total Cache functionality programmatically? For instance, I neither want to make it use the cache on some requests nor cache the output of the request, do they support that using filters? I couldn't find anything useful in their documentation. A: Easiest way to do this was to define a constant programmatically: // Tell WP Super Cache & W3 Total Cache to not cache WPReadable requests define( 'DONOTCACHEPAGE', true );
Q: Disable WordPress cache programmatically on a request How do I turn off the WP Super Cache & W3 Total Cache functionality programmatically? For instance, I neither want to make it use the cache on some requests nor cache the output of the request, do they support that using filters? I couldn't find anything useful in their documentation. A: Easiest way to do this was to define a constant programmatically: // Tell WP Super Cache & W3 Total Cache to not cache WPReadable requests define( 'DONOTCACHEPAGE', true ); A: Both plugins you mention have settings pages that allow you to add directories or specific files to not cache. These setting files are saved as text files in the relevant directory. You should be able to programatically 'append' your /mobile-theme/ directory to these settings files. A: As per this question, you can use fragment caching to exclude specific things from being cached: Edit your templates to with the following syntax to ensure that dynamic features remain so: Example 1: <!-- mfunc any PHP code --><!-- /mfunc --> Example 2: <!-- mfunc -->any PHP code<!-- /mfunc --> Example 3: <!--MFUNC --> echo rand(); <!--/mfunc --> Example 4: <!-- mclude path/to/file.php --><!-- /mclude --> Example 5: <!-- mclude -->path/to/file.php<!-- /mclude -->
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:424483", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67127" }
[ 0.0858154296875, 0.0038280487060546875, 0.009674072265625, -0.03607177734375, 0.01374053955078125, -0.031585693359375, 0.040771484375, -0.0261383056640625, 0.045654296875, 0.0026397705078125, -0.026214599609375, -0.06103515625, 0.0203094482421875, -0.035400390625, -0.01232147216796875, -0.032012939453125, 0.06744384765625, -0.0238037109375, 0.044036865234375, -0.0037517547607421875, 0.007541656494140625, 0.03289794921875, 0.04132080078125, 0.0810546875, 0.03204345703125, -0.02777099609375, 0.0143890380859375, -0.029388427734375, 0.0159454345703125, -0.026519775390625, 0.0129241943359375, 0.022186279296875, -0.0043792724609375, 0.060546875, -0.0665283203125, -0.04669189453125, -0.0364990234375, 0.0538330078125, -0.004413604736328125, 0.00502777099609375, 0.0216827392578125, -0.00214385986328125, -0.026092529296875, 0.00007915496826171875, -0.039642333984375, -0.032745361328125, 0.00878143310546875, -0.0306396484375, 0.037078857421875, 0.03607177734375, -0.020965576171875, 0.0206451416015625, -0.0029144287109375, -0.03973388671875, -0.018402099609375, -0.04107666015625, 0.00579071044921875, 0.001007080078125, 0.01849365234375, -0.0280609130859375, -0.00881195068359375, 0.01532745361328125, 0.0190887451171875, 0.0223541259765625, 0.004222869873046875, -0.02105712890625, 0.014984130859375, 0.022674560546875, -0.0653076171875, 0.0182952880859375, 0.06719970703125, -0.0239105224609375, 0.01702880859375, 0.01117706298828125, 0.0137176513671875, -0.042510986328125, 0.017791748046875, -0.01146697998046875, 0.0192108154296875, 0.0169525146484375, 0.026123046875, 0.0097503662109375, -0.017181396484375, -0.01525115966796875, 0.01337432861328125, 0.01177215576171875, -0.00533294677734375, -0.035369873046875, -0.022125244140625, -0.036651611328125, -0.0211944580078125, 0.00553131103515625, -0.0156707763671875, -0.03192138671875, -0.031646728515625, -0.0288543701171875, 0.031707763671875, 0.0625, -0.00881195068359375, -0.0236968994140625, 0.007171630859375, -0.02117919921875, -0.0310211181640625, -0.01812744140625, 0.0027790069580078125, 0.024505615234375, -0.065673828125, 0.0030307769775390625, 0.0625, 0.06781005859375, 0.03759765625, -0.033905029296875, -0.005641937255859375, 0.006031036376953125, -0.0166168212890625, 0.006256103515625, -0.040679931640625, 0.004917144775390625, -0.02325439453125, 0.0092620849609375, 0.005802154541015625, 0.0100555419921875, 0.005870819091796875, 0.0186767578125, -0.00650787353515625, -0.0184478759765625, -0.0202484130859375, -0.0119171142578125, -0.015594482421875, 0.018890380859375, -0.051025390625, 0.00460052490234375, 0.08258056640625, 0.043701171875, 0.0286102294921875, -0.01580810546875, 0.045989990234375, -0.0164794921875, -0.0066070556640625, 0.029632568359375, 0.0001742839813232422, -0.0157318115234375, 0.00015914440155029297, -0.0156402587890625, 0.008056640625, 0.0166473388671875, 0.031951904296875, 0.0347900390625, -0.00537872314453125, -0.0474853515625, 0.01434326171875, 0.0062713623046875, -0.0018749237060546875, 0.0303955078125, -0.00867462158203125, 0.02044677734375, 0.007320404052734375, -0.01629638671875, 0.004558563232421875, -0.0163726806640625, -0.019683837890625, -0.03228759765625, -0.0152130126953125, 0.01308441162109375, -0.00036215782165527344, 0.0283050537109375, 0.04437255859375, 0.0160980224609375, 0.0286712646484375, 0.0184783935546875, 0.01250457763671875, -0.011383056640625, 0.0478515625, -0.0196533203125, -0.0238037109375, -0.0194091796875, 0.001392364501953125, 0.013671875, 0.0126800537109375, 0.00530242919921875, -0.02679443359375, -0.032958984375, 0.040008544921875, -0.0086517333984375, -0.06231689453125, 0.0168914794921875, 0.0234375, 0.036865234375, -0.020538330078125, 0.002666473388671875, 0.09368896484375, 0.025604248046875, 0.0092315673828125, 0.0197906494140625, 0.060150146484375, -0.04443359375, -0.03271484375, -0.026275634765625, 0.017059326171875, -0.060882568359375, 0.052703857421875, -0.0193939208984375, 0.0123443603515625, -0.021026611328125, -0.08758544921875, 0.00899505615234375, -0.039703369140625, 0.016021728515625, 0.0080718994140625, 0.040557861328125, 0.01471710205078125, 0.00586700439453125, -0.02294921875, -0.0116424560546875, -0.0279541015625, -0.0305633544921875, 0.01241302490234375, 0.038482666015625, 0.0195770263671875, 0.0225677490234375, 0.0149383544921875, 0.01171875, 0.01377105712890625, -0.0024547576904296875, 0.035919189453125, -0.00563812255859375, -0.004638671875, -0.01523590087890625, 0.0570068359375, -0.01505279541015625, 0.03277587890625, 0.02703857421875, 0.0355224609375, 0.037017822265625, -0.0076446533203125, -0.005168914794921875, -0.02508544921875, -0.092529296875, -0.0081024169921875, 0.06561279296875, 0.046600341796875, 0.029205322265625, -0.0030345916748046875, 0.019683837890625, 0.07025146484375, -0.0225677490234375, -0.00296783447265625, 0.0173187255859375, 0.039031982421875, 0.030426025390625, -0.01447296142578125, -0.03424072265625, 0.032196044921875, -0.048492431640625, 0.036834716796875, 0.0121917724609375, -0.0019330978393554688, 0.02166748046875, 0.0211029052734375, -0.00739288330078125, -0.002475738525390625, 0.0186920166015625, 0.0010099411010742188, -0.00010722875595092773, 0.0195159912109375, -0.0040283203125, 0.027313232421875, 0.0235137939453125, 0.015838623046875, -0.001972198486328125, 0.01001739501953125, -0.045806884765625, 0.0092315673828125, -0.003978729248046875, 0.0267181396484375, -0.0292510986328125, -0.06646728515625, 0.0232391357421875, 0.03289794921875, -0.0264129638671875, -0.004520416259765625, 0.00400543212890625, -0.0296783447265625, -0.009246826171875, 0.0203094482421875, -0.034454345703125, -0.008880615234375, 0.0119171142578125, -0.016998291015625, 0.0206298828125, 0.04119873046875, 0.015899658203125, -0.0242919921875, 0.01499176025390625, -0.0220947265625, -0.00037670135498046875, 0.055755615234375, -0.041046142578125, 0.029510498046875, -0.00930023193359375, 0.021484375, 0.05859375, 0.005519866943359375, 0.0190582275390625, 0.01345062255859375, -0.0171356201171875, 0.01236724853515625, 0.0269012451171875, 0.00830841064453125, 0.038421630859375, -0.08819580078125, 0.00617218017578125, 0.0225830078125, 0.051177978515625, 0.002628326416015625, -0.033203125, 0.003826141357421875, 0.03961181640625, -0.0570068359375, -0.0928955078125, -0.01068878173828125, -0.007526397705078125, 0.01232147216796875, 0.0016069412231445312, 0.01189422607421875, -0.014068603515625, 0.0156707763671875, 0.01068878173828125, 0.0254058837890625, -0.026153564453125, -0.029388427734375, -0.030975341796875, -0.03863525390625, -0.00980377197265625, 0.0021991729736328125, -0.0150146484375, -0.0048675537109375, 0.0908203125, -0.011444091796875, -0.08392333984375, -0.050201416015625, -0.00940704345703125, -0.01523590087890625, 0.015472412109375, -0.01666259765625, -0.0231170654296875, 0.055267333984375, -0.007534027099609375, -0.0034122467041015625, 0.04046630859375, 0.0136260986328125, 0.0029506683349609375, -0.00394439697265625, -0.0254669189453125, 0.02557373046875, -0.0110321044921875, -0.01087188720703125, -0.00008565187454223633, 0.016815185546875, -0.0537109375, -0.05303955078125, 0.0115203857421875, -0.06817626953125, 0.004383087158203125, 0.05126953125, -0.01433563232421875, 0.004352569580078125, -0.00441741943359375, 0.007297515869140625, 0.004489898681640625, 0.00861358642578125, -0.020660400390625, 0.0121307373046875, -0.01284027099609375, 0.00501251220703125, -0.006824493408203125, 0.0703125, -0.0158538818359375, 0.01837158203125, 0.03692626953125, 0.0052032470703125, -0.00015020370483398438, -0.0213623046875, -0.03143310546875, -0.0185699462890625, -0.00019311904907226562, -0.05865478515625, -0.0190582275390625, 0.005687713623046875, 0.022705078125, 0.0228118896484375, 0.0212249755859375, 0.0261993408203125, -0.0147705078125, -0.042144775390625, -0.018707275390625, -0.0084075927734375, -0.020843505859375, -0.013427734375, 0.0022678375244140625, -0.04583740234375, 0.0195159912109375, 0.005435943603515625, -0.03448486328125, -0.00957489013671875, -0.02606201171875, -0.04437255859375, -0.034820556640625, 0.025115966796875, -0.0692138671875, -0.014892578125, -0.0265655517578125, -0.0192718505859375, -0.07366943359375, -0.00897979736328125, -0.0313720703125, -0.057525634765625, 0.01384735107421875, -0.03814697265625, 0.007701873779296875, 0.0216827392578125, -0.014129638671875, -0.020294189453125, 0.0090484619140625, 0.0159912109375, 0.01433563232421875, 0.0293731689453125, -0.0007791519165039062, -0.011505126953125, 0.0166473388671875, 0.04339599609375, -0.0230560302734375, -0.044708251953125, -0.00899505615234375, 0.0250244140625, -0.01806640625, -0.0002789497375488281, -0.07330322265625, 0.0435791015625, -0.009552001953125, -0.010833740234375, -0.043212890625, -0.07269287109375, -0.00547027587890625, -0.055999755859375, 0.0118255615234375, -0.0289154052734375, -0.026824951171875, 0.05072021484375, 0.0167999267578125, -0.005397796630859375, -0.00572967529296875, 0.070068359375, 0.0201873779296875, -0.034027099609375, -0.04376220703125, 0.0286102294921875, 0.0137786865234375, -0.0057830810546875, 0.01160430908203125, -0.052734375, -0.017120361328125, 0.07366943359375, -0.048492431640625, 0.01552581787109375, -0.02105712890625, 0.057403564453125, -0.0167236328125, -0.045654296875, 0.043609619140625, -0.01163482666015625, -0.0172576904296875, 0.0018243789672851562, 0.00818634033203125, -0.0024089813232421875, 0.027313232421875, 0.03131103515625, 0.01422119140625, -0.04876708984375, -0.042877197265625, -0.03173828125, 0.0185089111328125, 0.0210723876953125, 0.0285491943359375, 0.04302978515625, -0.013092041015625, 0.029571533203125, -0.0022220611572265625, 0.01114654541015625, 0.000060677528381347656, -0.0005545616149902344, -0.018707275390625, 0.048065185546875, -0.042236328125, -0.013458251953125, -0.00782012939453125, 0.00006908178329467773, -0.023895263671875, -0.014923095703125, -0.057769775390625, -0.00830841064453125, 0.0238189697265625, 0.0343017578125, 0.02752685546875, -0.026611328125, 0.0731201171875, -0.0079345703125, -0.013153076171875, -0.00003981590270996094, -0.056365966796875, -0.042205810546875, -0.0662841796875, 0.03436279296875, -0.01094818115234375, 0.01343536376953125, 0.003520965576171875, 0.07305908203125, -0.00015354156494140625, 0.0330810546875, -0.0176239013671875, 0.050506591796875, 0.029083251953125, 0.01203155517578125, 0.00439453125, 0.0204315185546875, 0.0158843994140625, -0.036102294921875, 0.003986358642578125, -0.01947021484375, -0.03179931640625, 0.04083251953125, 0.040557861328125, 0.017181396484375, 0.00988006591796875, -0.0232391357421875, -0.0046844482421875, 0.0034770965576171875, 0.027099609375, -0.00545501708984375, -0.0296173095703125, -0.037872314453125, -0.0428466796875, 0.0259552001953125, -0.01003265380859375, 0.002269744873046875, 0.0190277099609375, -0.0292510986328125, 0.0008177757263183594, 0.02935791015625, -0.017486572265625, -0.0357666015625, -0.0223846435546875, -0.043731689453125, -0.01221466064453125, -0.006549835205078125, -0.0221710205078125, -0.0225677490234375, -0.007537841796875, -0.02801513671875, 0.048187255859375, -0.042877197265625, 0.01494598388671875, -0.0262298583984375, 0.0214691162109375, 0.055908203125, 0.01385498046875, 0.045867919921875, 0.01287841796875, -0.0271759033203125, -0.01511383056640625, -0.045806884765625, -0.042510986328125, -0.036956787109375, -0.034423828125, -0.046844482421875, 0.01806640625, 0.023712158203125, 0.0235443115234375, -0.0104827880859375, -0.046356201171875, 0.0024890899658203125, 0.01317596435546875, 0.0248870849609375, 0.047149658203125, -0.03131103515625, 0.058349609375, -0.0074920654296875, 0.0215911865234375, -0.0006833076477050781, 0.044769287109375, 0.035858154296875, -0.019256591796875, 0.001491546630859375, -0.07440185546875, -0.050537109375, 0.0228424072265625, -0.07916259765625, 0.0440673828125, 0.03125, -0.014404296875, 0.016571044921875, -0.0186920166015625, 0.0008282661437988281, -0.039794921875, -0.005344390869140625, -0.042877197265625, 0.007167816162109375, -0.035430908203125, 0.01763916015625, 0.045196533203125, 0.01348114013671875, -0.06500244140625, 0.035400390625, 0.0272979736328125, 0.051727294921875, -0.0411376953125, -0.0202484130859375, 0.01053619384765625, 0.0753173828125, 0.0303497314453125, 0.06927490234375, 0.0187530517578125, 0.03704833984375, 0.037872314453125, 0.01551055908203125, -0.028472900390625, -0.0002052783966064453, 0.019287109375, 0.0030670166015625, -0.0084991455078125, 0.00557708740234375, -0.01763916015625, 0.033416748046875, 0.0765380859375, 0.07763671875, -0.0947265625, -0.0028591156005859375, 0.019866943359375, -0.0302734375, 0.024322509765625, -0.010986328125, -0.0180816650390625, -0.04876708984375, 0.03399658203125, -0.00867462158203125, -0.0302581787109375, -0.00481414794921875, 0.0021572113037109375, -0.0024814605712890625, 0.0206756591796875, 0.015869140625, 0.005847930908203125, -0.033355712890625, -0.00911712646484375, 0.0338134765625, 0.0035495758056640625, -0.00261688232421875, 0.040679931640625, -0.01071929931640625, -0.0014057159423828125, -0.0299072265625, 0.0098876953125, -0.006771087646484375, -0.036590576171875, 0.0204315185546875, -0.0063629150390625, -0.011260986328125, 0.06488037109375, -0.04248046875, 0.051910400390625, 0.019744873046875, 0.0003523826599121094, 0.0026302337646484375, -0.055389404296875, 0.012359619140625, 0.022064208984375, -0.0679931640625, 0.020904541015625, -0.01454925537109375, -0.0258026123046875, -0.0020084381103515625, 0.050933837890625, 0.06842041015625, 0.00594329833984375, -0.0330810546875, 0.048187255859375, 0.00860595703125, -0.032440185546875, -0.0305023193359375, 0.03485107421875, -0.0185089111328125, 0.039825439453125, -0.0206756591796875, 0.035186767578125, -0.01428985595703125, -0.0367431640625, -0.0313720703125, 0.09881591796875, -0.0140533447265625, 0.019134521484375, 0.0264129638671875, 0.034332275390625, -0.035369873046875, 0.0209808349609375, -0.031707763671875, 0.061126708984375, -0.025390625, 0.072265625, -0.042083740234375, 0.0006036758422851562, 0.0213775634765625, 0.0128173828125, 0.0162811279296875, -0.0007867813110351562, 0.0016012191772460938, -0.01384735107421875, 0.0017118453979492188, 0.0271453857421875, -0.01458740234375, 0.01523590087890625, -0.0239410400390625, 0.012420654296875, -0.0203704833984375, -0.07818603515625, -0.001270294189453125, -0.051971435546875, -0.028778076171875, -0.00620269775390625, 0.01922607421875, 0.024200439453125, -0.016998291015625, 0.053741455078125, -0.041290283203125, -0.002750396728515625, 0.04119873046875, 0.0242462158203125, -0.0074462890625, -0.004001617431640625, -0.00461578369140625, -0.0283050537109375, -0.0013217926025390625, -0.01485443115234375, 0.0294036865234375, 0.01505279541015625, 0.0027179718017578125, 0.0168914794921875, 0.016143798828125, -0.027099609375, -0.0173187255859375, 0.0031681060791015625, 0.0011415481567382812, -0.023681640625, 0.023956298828125, -0.0182952880859375, 0.03192138671875, -0.024383544921875, 0.019378662109375, -0.01560211181640625, -0.0060272216796875, -0.01123046875, -0.017181396484375, 0.004375457763671875, -0.0026874542236328125, 0.01319122314453125, -0.059417724609375, 0.01065826416015625, -0.054534912109375, -0.033966064453125, 0.0166168212890625, 0.0126190185546875, 0.0177764892578125, -0.001964569091796875, 0.0264434814453125, 0.0711669921875, -0.0504150390625, 0.007564544677734375, 0.009796142578125, -0.05230712890625, -0.016326904296875, 0.039794921875, 0.039306640625, 0.0254364013671875, -0.0303192138671875, -0.031707763671875, -0.038787841796875, 0.025634765625, 0.035430908203125, 0.031036376953125, -0.06591796875, -0.01389312744140625, 0.04522705078125, 0.0369873046875, 0.007595062255859375, 0.0099334716796875, 0.06402587890625, 0.021575927734375, -0.058197021484375, -0.01345062255859375, 0.064453125, -0.02203369140625, 0.0295562744140625, -0.03399658203125, 0.000492095947265625, 0.01343536376953125, -0.018768310546875, -0.002239227294921875, -0.0235137939453125, 0.0631103515625, -0.0191802978515625, 0.01189422607421875, -0.0112152099609375, -0.0008955001831054688, 0.04754638671875, -0.011505126953125, 0.0017871856689453125, 0.0018682479858398438, -0.06964111328125, -0.01873779296875, -0.00522613525390625, -0.0264739990234375, 0.025177001953125, 0.030792236328125, -0.0293426513671875, 0.035003662109375, 0.0089569091796875, 0.01233673095703125, 0.03515625, -0.042236328125, -0.0086669921875, -0.0281829833984375, 0.0167236328125, -0.018585205078125, -0.07891845703125, -0.034454345703125, -0.0194091796875, 0.03497314453125, 0.0169677734375, 0.0194091796875, 0.033477783203125, 0.0163116455078125, 0.04583740234375, -0.009796142578125, 0.033477783203125, 0.053436279296875, -0.024749755859375, 0.00007826089859008789, 0.0120391845703125, -0.020172119140625, -0.053558349609375, 0.0589599609375, 0.0144195556640625, 0.0279388427734375, 0.053375244140625, -0.0278778076171875, 0.007801055908203125, -0.0137176513671875, -0.040191650390625, -0.050506591796875, -0.0263671875, -0.006923675537109375, -0.005146026611328125, -0.01776123046875, -0.05706787109375, -0.0223541259765625, 0.0223388671875, 0.027374267578125, -0.0162811279296875, 0.021392822265625, -0.005161285400390625, 0.05157470703125, 0.0439453125, -0.013916015625, -0.0389404296875, -0.0298919677734375, -0.0206451416015625, -0.0083465576171875, -0.0034503936767578125, 0.0028400421142578125, -0.01226806640625, -0.06640625, -0.0382080078125, 0.004730224609375, 0.0145416259765625, -0.00982666015625, -0.00548553466796875, -0.01544189453125, -0.0131072998046875, 0.006072998046875, 0.01555633544921875, -0.008697509765625, -0.0226287841796875, -0.00727081298828125, 0.0120849609375, -0.0064239501953125, -0.0183258056640625, -0.029052734375, 0.00905609130859375, 0.026763916015625, 0.01128387451171875, -0.07196044921875, 0.041534423828125, -0.0391845703125, 0.05218505859375, -0.03277587890625, 0.001155853271484375, -0.02508544921875, -0.021759033203125, -0.0277557373046875, -0.045562744140625, -0.047210693359375, 0.045623779296875, -0.0302581787109375, 0.0117950439453125, 0.0638427734375, -0.004669189453125, 0.0008192062377929688, 0.0033702850341796875, -0.0049591064453125, 0.06298828125, -0.07977294921875, 0.01209259033203125, 0.024444580078125, 0.01197052001953125, -0.05255126953125, -0.05206298828125, 0.02880859375, -0.042236328125, -0.0017452239990234375, 0.0284881591796875, -0.005809783935546875, 0.033203125, -0.01666259765625, -0.061767578125, -0.0047454833984375, 0.0208740234375, -0.045440673828125, -0.0186767578125, -0.01593017578125, -0.00555419921875, -0.0181884765625, -0.010406494140625, -0.021209716796875, -0.02874755859375, 0.01372528076171875, 0.047332763671875, 0.0162353515625, 0.040283203125, 0.06524658203125, -0.0255584716796875, 0.0472412109375, 0.007175445556640625, 0.0274505615234375, -0.0224609375, 0.03228759765625, 0.0004940032958984375, 0.0155181884765625, -0.01898193359375, 0.035369873046875, 0.02899169921875, 0.0159759521484375, -0.01351165771484375, 0.006122589111328125, -0.0182647705078125, 0.0380859375, 0.061553955078125, 0.0692138671875, 0.024871826171875, -0.05255126953125, -0.001949310302734375, 0.0024166107177734375, -0.04486083984375, -0.0141143798828125, 0.0281982421875, -0.063232421875, -0.01361846923828125, 0.006816864013671875, -0.0030002593994140625, 0.0007448196411132812, -0.0268707275390625, -0.025360107421875, -0.009979248046875, -0.007572174072265625, -0.0111541748046875, -0.0218963623046875, 0.016571044921875, -0.01155853271484375, -0.0225677490234375, -0.0278167724609375, -0.0251312255859375, 0.01177978515625, -0.039581298828125, -0.053466796875, -0.02667236328125, 0.0009813308715820312, -0.00720977783203125, 0.0294189453125, -0.01666259765625, 0.003696441650390625, -0.029541015625, 0.026336669921875, -0.0152740478515625, 0.001354217529296875, 0.0123443603515625, 0.00176239013671875, -0.01308441162109375, -0.0282745361328125, 0.0038356781005859375, -0.01467132568359375, -0.003204345703125, 0.005462646484375, -0.0176849365234375, 0.033905029296875, -0.01079559326171875, -0.006824493408203125, 0.0096282958984375, -0.0111541748046875, 0.005619049072265625, 0.00301361083984375, 0.0062103271484375, -0.033966064453125, 0.0278472900390625, -0.056304931640625, -0.0026226043701171875, 0.0157012939453125 ]
ff3e3a004c65118865ffc78fc120f2849681dc97
Wordpress Stackexchange Q: Check if any users are logged in before running update Before I update a Wordpress install (including the theme and various plugins) I wanted to ensure no one is logged in and editing the site. Is there a way to do this? Thanks! A: WordPress doesn't provide a built-in way to see a currently logged in user, but this plugin may help: WP Last Login. Using this plugin you'll log the datetime of your users' login. The plugin appears to provide a column with the last login date... But you'll be wanting to see the actual time I imagine. If there's no way to format that, you can just inspect the database (before you update) and see if anyone's "last login datetime" is within the last few minutes or so.
Q: Check if any users are logged in before running update Before I update a Wordpress install (including the theme and various plugins) I wanted to ensure no one is logged in and editing the site. Is there a way to do this? Thanks! A: WordPress doesn't provide a built-in way to see a currently logged in user, but this plugin may help: WP Last Login. Using this plugin you'll log the datetime of your users' login. The plugin appears to provide a column with the last login date... But you'll be wanting to see the actual time I imagine. If there's no way to format that, you can just inspect the database (before you update) and see if anyone's "last login datetime" is within the last few minutes or so. A: Because of the stateless nature of webpages, you can't do this without a high margin of error. You can install a plugin to log last visits for logged in users, but that will not tell you if they're editing posts or if they loaded a page then went to lunch or shut down their computer. Instead, use maintenance mode and arrange beforehand when to update the site. Anybody who wants to make edits or modifications at those times knows theres a chance it will be lost and they do so at their own risk. A: you could also intall a session timeout plugin. Then you can 100% know if all users are logged out or not... any user that has not logged out either manually or with the session timeout will be too much of a risk, so just don't update then. When all users are logged out you will know... A: Maybe the conditional functions help you if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; };
wordpress
{ "language": "en", "length": 306, "provenance": "stackexchange_00019.jsonl.gz:424507", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67200" }
[ 0.04693603515625, 0.01140594482421875, 0.005451202392578125, -0.0307769775390625, 0.0213775634765625, -0.0265960693359375, 0.029266357421875, -0.0310516357421875, -0.040679931640625, 0.01172637939453125, 0.0027446746826171875, 0.00362396240234375, -0.0447998046875, -0.017425537109375, 0.005168914794921875, -0.053802490234375, 0.003520965576171875, 0.01256561279296875, 0.0159912109375, -0.0233001708984375, -0.00873565673828125, -0.0116424560546875, 0.0211181640625, 0.033660888671875, -0.0167236328125, 0.0192718505859375, 0.1156005859375, -0.01374053955078125, 0.043365478515625, 0.00484466552734375, 0.0177001953125, -0.0804443359375, -0.0113983154296875, 0.050750732421875, -0.00508880615234375, -0.00446319580078125, -0.00797271728515625, 0.041259765625, 0.0498046875, -0.01476287841796875, 0.0179443359375, -0.0013761520385742188, -0.00853729248046875, 0.0132598876953125, -0.03179931640625, -0.02166748046875, 0.019195556640625, -0.00539398193359375, 0.04766845703125, 0.00472259521484375, 0.00983428955078125, 0.01800537109375, 0.0274200439453125, -0.0034942626953125, -0.02880859375, -0.0115509033203125, 0.0087738037109375, 0.034637451171875, 0.050811767578125, -0.049713134765625, -0.046142578125, -0.026153564453125, 0.038848876953125, -0.01538848876953125, -0.0179443359375, 0.00980377197265625, -0.025360107421875, 0.007080078125, -0.020965576171875, -0.033843994140625, 0.0017757415771484375, -0.014129638671875, -0.0183563232421875, 0.0276336669921875, 0.0007467269897460938, -0.039276123046875, 0.02020263671875, -0.0177764892578125, 0.0016269683837890625, 0.05078125, -0.0511474609375, -0.0170135498046875, -0.043731689453125, -0.019439697265625, 0.01276397705078125, 0.028564453125, -0.0262908935546875, -0.00612640380859375, -0.0238800048828125, -0.007640838623046875, -0.0220794677734375, 0.0408935546875, -0.0259857177734375, -0.0036182403564453125, -0.038665771484375, -0.016510009765625, 0.02935791015625, 0.0648193359375, -0.029815673828125, -0.039031982421875, -0.032440185546875, -0.00353240966796875, -0.09613037109375, 0.00022423267364501953, -0.01219940185546875, 0.0538330078125, 0.0377197265625, 0.047332763671875, -0.0007777214050292969, 0.00196075439453125, 0.006137847900390625, -0.005680084228515625, -0.0211334228515625, -0.045745849609375, 0.0026645660400390625, 0.057586669921875, -0.0125579833984375, 0.00927734375, 0.00589752197265625, 0.0276336669921875, -0.0191192626953125, -0.001529693603515625, -0.0235443115234375, -0.0236053466796875, -0.00626373291015625, -0.03692626953125, -0.0086517333984375, 0.0235748291015625, -0.0202178955078125, 0.040924072265625, -0.03350830078125, 0.01788330078125, 0.037628173828125, -0.0035915374755859375, -0.02484130859375, -0.01467132568359375, -0.0045928955078125, -0.0037403106689453125, -0.011077880859375, 0.029541015625, -0.02783203125, -0.04278564453125, 0.01006317138671875, -0.046661376953125, 0.015472412109375, 0.0105133056640625, 0.013671875, 0.0163116455078125, 0.0036029815673828125, -0.0248565673828125, 0.0030498504638671875, -0.006256103515625, -0.02154541015625, 0.003509521484375, 0.07098388671875, 0.00432586669921875, 0.01526641845703125, -0.011260986328125, 0.0187530517578125, 0.031951904296875, 0.01345062255859375, 0.0017576217651367188, 0.0135345458984375, -0.00341033935546875, -0.0256805419921875, -0.00994110107421875, -0.02685546875, -0.007049560546875, 0.03375244140625, -0.00879669189453125, 0.03302001953125, -0.01495361328125, 0.09161376953125, 0.040374755859375, 0.005950927734375, 0.0219879150390625, -0.021820068359375, 0.04290771484375, 0.038787841796875, -0.01140594482421875, -0.00415802001953125, -0.019287109375, 0.0775146484375, -0.01305389404296875, -0.00537872314453125, -0.0192108154296875, 0.005870819091796875, 0.0035400390625, 0.0149993896484375, 0.004810333251953125, 0.00852203369140625, 0.0172271728515625, -0.01422119140625, 0.02490234375, 0.0009937286376953125, -0.0028839111328125, 0.005512237548828125, 0.0279693603515625, -0.0064544677734375, -0.052978515625, 0.046722412109375, 0.00838470458984375, -0.0187835693359375, -0.045013427734375, -0.11309814453125, -0.00533294677734375, -0.0224151611328125, 0.033843994140625, 0.03265380859375, 0.0301513671875, -0.00010687112808227539, 0.0100555419921875, -0.0032901763916015625, -0.0295562744140625, -0.04461669921875, -0.0195465087890625, -0.038665771484375, 0.043701171875, 0.006366729736328125, 0.057464599609375, -0.00955963134765625, -0.0188446044921875, -0.003387451171875, -0.0633544921875, -0.01480865478515625, -0.005397796630859375, -0.00682830810546875, -0.0006837844848632812, 0.005512237548828125, 0.004878997802734375, 0.0504150390625, -0.002971649169921875, -0.0169525146484375, 0.01195526123046875, -0.0306396484375, -0.0162811279296875, -0.03704833984375, -0.055938720703125, 0.024444580078125, 0.04925537109375, 0.03369140625, 0.0213775634765625, -0.01232147216796875, -0.00939178466796875, 0.049468994140625, -0.040283203125, 0.00707244873046875, 0.002651214599609375, 0.028717041015625, 0.08343505859375, -0.00687408447265625, -0.0052337646484375, 0.0030231475830078125, -0.021148681640625, 0.0161895751953125, 0.034515380859375, -0.006076812744140625, -0.00186920166015625, -0.0194549560546875, 0.0019664764404296875, -0.01189422607421875, -0.055694580078125, -0.001132965087890625, -0.03411865234375, 0.0112457275390625, -0.0252532958984375, 0.015228271484375, -0.000946044921875, 0.00981903076171875, -0.033172607421875, 0.0183563232421875, -0.0194091796875, 0.006992340087890625, 0.04034423828125, -0.0034389495849609375, 0.04144287109375, -0.01032257080078125, -0.0155029296875, 0.0066986083984375, 0.02044677734375, -0.044158935546875, -0.062469482421875, -0.0008349418640136719, -0.005977630615234375, 0.023895263671875, -0.0032215118408203125, 0.0487060546875, -0.024322509765625, 0.0022258758544921875, -0.026031494140625, 0.0311431884765625, -0.03228759765625, -0.0516357421875, 0.053466796875, -0.032928466796875, -0.0576171875, -0.02215576171875, -0.047149658203125, 0.034454345703125, -0.0191497802734375, 0.0225677490234375, 0.066162109375, 0.019989013671875, -0.0008974075317382812, -0.0194549560546875, -0.0023040771484375, -0.018218994140625, 0.0228424072265625, 0.0010347366333007812, -0.038665771484375, -0.003925323486328125, 0.044097900390625, 0.00852203369140625, 0.03204345703125, -0.0254364013671875, -0.046661376953125, -0.0243072509765625, -0.0033702850341796875, -0.061248779296875, -0.054351806640625, -0.09185791015625, -0.09637451171875, 0.0012292861938476562, -0.022796630859375, -0.0299072265625, 0.0467529296875, 0.01042938232421875, 0.031005859375, -0.03826904296875, -0.01284027099609375, -0.0196533203125, -0.07073974609375, -0.046051025390625, 0.005657196044921875, -0.00669097900390625, 0.01922607421875, -0.00545501708984375, 0.052703857421875, -0.0117950439453125, -0.0682373046875, -0.053802490234375, 0.00013756752014160156, -0.020416259765625, -0.01039886474609375, -0.026458740234375, 0.017822265625, 0.0045623779296875, 0.01044464111328125, -0.0165557861328125, -0.00835418701171875, 0.007110595703125, -0.02239990234375, 0.0129852294921875, -0.056610107421875, 0.01922607421875, -0.006725311279296875, -0.05291748046875, -0.00672149658203125, 0.02325439453125, -0.05426025390625, 0.020599365234375, 0.0037860870361328125, -0.0219879150390625, 0.01554107666015625, 0.015625, -0.02996826171875, 0.007686614990234375, -0.0382080078125, 0.00649261474609375, 0.03668212890625, -0.035369873046875, 0.017425537109375, 0.0064849853515625, -0.0037860870361328125, -0.002227783203125, 0.0199432373046875, 0.00835418701171875, -0.033599853515625, 0.00438690185546875, -0.0197601318359375, -0.0171356201171875, -0.03546142578125, 0.0123748779296875, -0.0249176025390625, -0.01505279541015625, 0.04156494140625, -0.0018672943115234375, 0.052703857421875, -0.05145263671875, -0.031890869140625, -0.0276336669921875, 0.10076904296875, -0.006587982177734375, -0.014801025390625, 0.0291748046875, -0.00499725341796875, -0.036102294921875, 0.0262908935546875, -0.09368896484375, -0.0087432861328125, -0.060760498046875, 0.007175445556640625, 0.009918212890625, -0.025360107421875, -0.02752685546875, -0.005420684814453125, -0.056640625, -0.02923583984375, -0.0046844482421875, 0.03076171875, 0.020782470703125, -0.050750732421875, -0.010589599609375, -0.0295562744140625, 0.032989501953125, -0.0258941650390625, -0.05377197265625, 0.00909423828125, -0.06396484375, 0.046539306640625, 0.0299072265625, 0.0218505859375, -0.025146484375, 0.0205078125, -0.0260009765625, 0.0014514923095703125, -0.007747650146484375, 0.01476287841796875, 0.0159149169921875, 0.03204345703125, -0.0127105712890625, 0.0048370361328125, 0.01031494140625, -0.0251312255859375, -0.0262298583984375, -0.03753662109375, -0.05322265625, -0.0181884765625, -0.02203369140625, -0.0177154541015625, 0.002223968505859375, -0.017425537109375, -0.0016031265258789062, 0.033966064453125, -0.00531768798828125, 0.0170135498046875, -0.022186279296875, -0.015960693359375, 0.0439453125, 0.0238494873046875, -0.0190887451171875, 0.007415771484375, 0.07965087890625, 0.0159759521484375, -0.023651123046875, -0.06378173828125, 0.01375579833984375, 0.03692626953125, 0.01515960693359375, 0.0294647216796875, 0.01555633544921875, -0.042388916015625, 0.036346435546875, 0.03192138671875, -0.01861572265625, 0.00847625732421875, 0.03155517578125, -0.006927490234375, -0.042572021484375, 0.0155181884765625, -0.0276947021484375, 0.01239776611328125, -0.006748199462890625, 0.005512237548828125, -0.01131439208984375, 0.00878143310546875, -0.004016876220703125, -0.01087188720703125, 0.0252685546875, 0.0275726318359375, -0.0538330078125, 0.0171356201171875, 0.00478363037109375, 0.01259613037109375, 0.044189453125, -0.019256591796875, 0.036712646484375, 0.005710601806640625, -0.046295166015625, -0.024993896484375, -0.0236358642578125, 0.00809478759765625, -0.0020618438720703125, -0.026519775390625, -0.0357666015625, -0.025848388671875, -0.03118896484375, 0.11773681640625, -0.0037860870361328125, -0.0787353515625, 0.06890869140625, -0.040679931640625, 0.0264129638671875, 0.075439453125, 0.0174407958984375, 0.057403564453125, -0.038970947265625, -0.032867431640625, -0.033782958984375, -0.0303497314453125, -0.058197021484375, -0.060028076171875, -0.01654052734375, -0.028961181640625, -0.00911712646484375, 0.0235595703125, -0.0035858154296875, -0.00875091552734375, -0.00606536865234375, -0.00916290283203125, 0.0343017578125, 0.0330810546875, 0.00945281982421875, 0.023223876953125, 0.0148773193359375, -0.0228424072265625, -0.005096435546875, -0.00719451904296875, -0.038421630859375, -0.00992584228515625, 0.01309967041015625, 0.0310516357421875, -0.0012636184692382812, -0.0077667236328125, 0.026031494140625, 0.00018537044525146484, 0.002002716064453125, 0.053680419921875, 0.014129638671875, -0.063720703125, -0.0246429443359375, 0.0027828216552734375, 0.016326904296875, -0.04095458984375, 0.00171661376953125, -0.0479736328125, -0.024627685546875, -0.0193023681640625, 0.0306396484375, -0.042327880859375, -0.0009732246398925781, -0.0083465576171875, -0.05865478515625, -0.038665771484375, 0.00847625732421875, 0.032928466796875, 0.0188140869140625, -0.020172119140625, -0.048980712890625, 0.02685546875, -0.0017824172973632812, 0.01263427734375, -0.0181427001953125, -0.0211181640625, 0.005832672119140625, -0.0028743743896484375, 0.042877197265625, -0.00555419921875, -0.04827880859375, 0.0007700920104980469, -0.0278472900390625, -0.007160186767578125, -0.01788330078125, -0.03289794921875, -0.037017822265625, -0.0165252685546875, 0.03167724609375, 0.0328369140625, -0.0034847259521484375, -0.028778076171875, -0.006893157958984375, -0.00034928321838378906, 0.019775390625, 0.061126708984375, 0.006839752197265625, 0.059356689453125, 0.00970458984375, 0.046051025390625, 0.0200958251953125, 0.044464111328125, -0.030792236328125, -0.0209197998046875, 0.03912353515625, 0.046356201171875, -0.0255889892578125, -0.04736328125, 0.0264129638671875, -0.0877685546875, 0.010345458984375, -0.025665283203125, -0.022613525390625, -0.00199127197265625, 0.0087432861328125, -0.00957489013671875, 0.033843994140625, 0.04229736328125, -0.03399658203125, 0.058807373046875, -0.004047393798828125, -0.0127105712890625, -0.00424957275390625, -0.01360321044921875, -0.0025157928466796875, 0.031890869140625, -0.01477813720703125, -0.0160675048828125, -0.0210418701171875, 0.036590576171875, 0.044219970703125, -0.024871826171875, 0.024017333984375, 0.03546142578125, 0.017852783203125, 0.01898193359375, -0.052581787109375, -0.00411224365234375, 0.05322265625, 0.04583740234375, -0.013946533203125, -0.0200653076171875, 0.0271453857421875, -0.0243377685546875, 0.0322265625, 0.06988525390625, 0.0777587890625, -0.10931396484375, 0.029327392578125, 0.0097503662109375, 0.00499725341796875, 0.057952880859375, -0.0135650634765625, -0.018646240234375, -0.043121337890625, 0.07763671875, -0.044097900390625, -0.0091705322265625, 0.022491455078125, -0.0256195068359375, -0.026824951171875, -0.05340576171875, 0.0457763671875, 0.0178375244140625, 0.0006823539733886719, 0.00894927978515625, 0.002552032470703125, -0.005954742431640625, -0.019927978515625, 0.001617431640625, 0.0266571044921875, -0.018707275390625, -0.07342529296875, 0.013946533203125, -0.0188446044921875, -0.0085601806640625, 0.01507568359375, 0.0247344970703125, 0.080810546875, 0.04803466796875, 0.0272674560546875, -0.0107269287109375, 0.0187225341796875, 0.01507568359375, -0.0160675048828125, -0.021148681640625, 0.000732421875, 0.052215576171875, -0.0325927734375, 0.027801513671875, -0.003963470458984375, -0.0100555419921875, -0.0066070556640625, -0.04388427734375, 0.032562255859375, -0.0164642333984375, -0.0086212158203125, 0.01108551025390625, 0.035919189453125, 0.0047149658203125, -0.001789093017578125, 0.004444122314453125, -0.033447265625, -0.006534576416015625, -0.0006842613220214844, -0.0261688232421875, 0.00982666015625, 0.016754150390625, -0.05615234375, 0.06951904296875, 0.0078582763671875, 0.0256195068359375, -0.01558685302734375, 0.022064208984375, 0.0036563873291015625, 0.015716552734375, -0.04949951171875, 0.07940673828125, -0.003948211669921875, 0.06817626953125, -0.053955078125, -0.004512786865234375, 0.0236663818359375, 0.00591278076171875, 0.0207977294921875, 0.0186309814453125, -0.03759765625, -0.032135009765625, -0.048736572265625, 0.009552001953125, -0.00782012939453125, 0.056793212890625, -0.005481719970703125, 0.0165863037109375, 0.023223876953125, -0.012542724609375, 0.038055419921875, -0.02679443359375, -0.048736572265625, 0.0002918243408203125, -0.00879669189453125, -0.0273284912109375, -0.0279693603515625, 0.05657958984375, -0.032470703125, -0.01253509521484375, 0.0018625259399414062, 0.0294952392578125, 0.0294647216796875, 0.023345947265625, 0.0195159912109375, -0.0278167724609375, -0.006031036376953125, -0.0126800537109375, 0.034942626953125, -0.031158447265625, -0.0167999267578125, 0.027984619140625, 0.0196533203125, -0.03485107421875, -0.001285552978515625, -0.0091705322265625, 0.0220184326171875, -0.0226593017578125, 0.03680419921875, 0.039398193359375, 0.0273590087890625, -0.0203399658203125, -0.016357421875, 0.039886474609375, 0.059051513671875, -0.0233306884765625, -0.01183319091796875, 0.0088043212890625, 0.01155853271484375, 0.0215606689453125, 0.00357818603515625, 0.05694580078125, 0.015960693359375, 0.0068817138671875, -0.011688232421875, -0.0152130126953125, -0.0008945465087890625, 0.0177764892578125, 0.0108795166015625, 0.0271148681640625, -0.01349639892578125, -0.0113525390625, 0.020965576171875, -0.00928497314453125, 0.0005469322204589844, -0.029449462890625, -0.003391265869140625, -0.00418853759765625, 0.026123046875, 0.0289459228515625, -0.0145721435546875, 0.0004892349243164062, -0.0195465087890625, 0.032379150390625, -0.01116180419921875, -0.00675201416015625, -0.0176849365234375, 0.0322265625, 0.041900634765625, -0.0296173095703125, 0.021148681640625, 0.033538818359375, 0.000043511390686035156, 0.002239227294921875, 0.0174713134765625, 0.0084686279296875, -0.0167083740234375, 0.0015783309936523438, 0.040679931640625, 0.033538818359375, 0.0224761962890625, -0.027740478515625, 0.07366943359375, 0.03753662109375, -0.0230865478515625, 0.053558349609375, 0.007488250732421875, -0.005889892578125, 0.0279998779296875, 0.0209197998046875, 0.058624267578125, 0.0250091552734375, -0.02362060546875, -0.0010480880737304688, -0.0232391357421875, -0.020782470703125, 0.00827789306640625, 0.0216827392578125, -0.00972747802734375, 0.0240631103515625, 0.02618408203125, -0.0022983551025390625, -0.007488250732421875, -0.01245880126953125, 0.02642822265625, -0.01444244384765625, 0.007511138916015625, 0.005435943603515625, -0.03436279296875, -0.027313232421875, -0.02398681640625, 0.038909912109375, 0.036163330078125, 0.02294921875, 0.006420135498046875, 0.038970947265625, 0.0018320083618164062, 0.0182342529296875, -0.034576416015625, -0.008880615234375, 0.01163482666015625, -0.0282745361328125, -0.0050506591796875, 0.005168914794921875, -0.07952880859375, 0.049072265625, -0.008697509765625, 0.042388916015625, 0.046173095703125, -0.029449462890625, 0.00624847412109375, 0.0166778564453125, -0.01551055908203125, -0.0284271240234375, -0.042327880859375, 0.0171966552734375, 0.040740966796875, -0.018218994140625, -0.02679443359375, -0.034332275390625, 0.0234375, -0.0261077880859375, -0.013336181640625, -0.01824951171875, 0.0025653839111328125, -0.0535888671875, 0.019561767578125, 0.004100799560546875, 0.05828857421875, -0.00949859619140625, -0.028076171875, 0.0157623291015625, 0.0160369873046875, -0.018402099609375, -0.0162506103515625, 0.03631591796875, 0.029022216796875, 0.05780029296875, 0.06744384765625, -0.00662994384765625, 0.0269927978515625, 0.011993408203125, -0.0013990402221679688, 0.018280029296875, -0.06591796875, -0.050872802734375, -0.0648193359375, 0.003448486328125, 0.0165557861328125, -0.03228759765625, -0.051727294921875, -0.056488037109375, 0.0138092041015625, 0.0072479248046875, -0.0296173095703125, -0.036590576171875, 0.02459716796875, -0.035400390625, 0.035552978515625, -0.060943603515625, -0.03369140625, 0.0194091796875, 0.04583740234375, 0.004146575927734375, 0.0024662017822265625, -0.006015777587890625, 0.0038471221923828125, 0.0172271728515625, -0.01113128662109375, 0.0212249755859375, -0.0033550262451171875, -0.0116729736328125, -0.036468505859375, -0.0176849365234375, 0.00905609130859375, -0.006778717041015625, -0.0013713836669921875, 0.036834716796875, -0.0299224853515625, -0.0019989013671875, -0.01763916015625, -0.0102691650390625, -0.01253509521484375, -0.031280517578125, -0.00499725341796875, -0.0145416259765625, 0.008056640625, -0.04931640625, -0.1070556640625, 0.0589599609375, -0.02044677734375, -0.043365478515625, -0.065673828125, 0.040069580078125, 0.0028896331787109375, -0.024566650390625, -0.0382080078125, 0.0036563873291015625, 0.0052337646484375, 0.039031982421875, 0.0112152099609375, -0.0272064208984375, 0.02532958984375, -0.006038665771484375, -0.0738525390625, -0.0134124755859375, -0.01222991943359375, -0.01055908203125, 0.003936767578125, 0.004169464111328125, 0.04034423828125, 0.05328369140625, -0.0108795166015625, 0.051513671875, 0.0038280487060546875, -0.014404296875, -0.007625579833984375, -0.01265716552734375, -0.01355743408203125, -0.0007653236389160156, 0.04986572265625, 0.04449462890625, 0.0127410888671875, -0.02490234375, -0.051605224609375, -0.06597900390625, -0.008880615234375, -0.0017023086547851562, 0.020477294921875, -0.070068359375, 0.035003662109375, 0.01139068603515625, -0.0404052734375, -0.01540374755859375, 0.02398681640625, -0.04705810546875, 0.00861358642578125, 0.03704833984375, 0.00467681884765625, -0.032501220703125, 0.021942138671875, 0.03411865234375, -0.0238189697265625, 0.0022068023681640625, 0.0007157325744628906, -0.0147247314453125, 0.021820068359375, 0.0078125, 0.032745361328125, 0.016754150390625, -0.050048828125, 0.01445770263671875, 0.0164031982421875, 0.0384521484375, -0.0322265625, -0.035980224609375, -0.0172576904296875, 0.0003407001495361328, -0.013214111328125, -0.0028324127197265625, 0.005748748779296875, 0.01251983642578125, 0.019744873046875, 0.03759765625, -0.004924774169921875, -0.04107666015625, -0.0328369140625, 0.03564453125, 0.0175933837890625, -0.0281829833984375, 0.0313720703125, -0.03521728515625, -0.0092620849609375, -0.03662109375, 0.0059967041015625, -0.06353759765625, 0.019256591796875, -0.0361328125, -0.0018072128295898438, 0.0298004150390625 ]
008733977c453324c16fbda6fb817bdfe4f0b309
Wordpress Stackexchange Q: Is it wise to delete post revisions and autosaves from database? I'm just wondering is it wise to delete all post revisions and autosaves from database every once in a while? I mean they take a lot of database space and apparently have no use after the post has been published. A: It all depends on your workflow. If you have no use for the post revisions and autosaves then disable them in wp-config and WordPress will clean them up on its own. You may also prefer to limit how many you keep at once. Also the space they take up is unlikely to be of a great impact itself unless you're running on a tiny tiny server Don't go deleting them manually through the database.
Q: Is it wise to delete post revisions and autosaves from database? I'm just wondering is it wise to delete all post revisions and autosaves from database every once in a while? I mean they take a lot of database space and apparently have no use after the post has been published. A: It all depends on your workflow. If you have no use for the post revisions and autosaves then disable them in wp-config and WordPress will clean them up on its own. You may also prefer to limit how many you keep at once. Also the space they take up is unlikely to be of a great impact itself unless you're running on a tiny tiny server Don't go deleting them manually through the database.
wordpress
{ "language": "en", "length": 127, "provenance": "stackexchange_00019.jsonl.gz:424512", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67219" }
[ 0.00514984130859375, -0.0120391845703125, -0.0220184326171875, -0.006359100341796875, 0.000054776668548583984, -0.0222320556640625, 0.02777099609375, -0.0023059844970703125, 0.0206451416015625, 0.03857421875, -0.031219482421875, -0.0266876220703125, 0.034027099609375, -0.0172271728515625, -0.0408935546875, -0.0211029052734375, 0.039306640625, -0.032470703125, 0.0200042724609375, 0.0018739700317382812, -0.005207061767578125, 0.026885986328125, 0.03228759765625, 0.019439697265625, 0.0302276611328125, 0.012908935546875, 0.02288818359375, -0.01462554931640625, 0.00624847412109375, -0.0179290771484375, 0.0167083740234375, -0.00032901763916015625, 0.01036834716796875, -0.01983642578125, 0.0645751953125, 0.0206298828125, 0.0145416259765625, 0.007396697998046875, 0.04241943359375, -0.029571533203125, 0.0147552490234375, -0.00594329833984375, 0.015838623046875, -0.032684326171875, -0.0238800048828125, 0.0304107666015625, -0.0196990966796875, -0.028594970703125, 0.01346588134765625, -0.0239105224609375, 0.0259246826171875, -0.01488494873046875, 0.050750732421875, -0.022216796875, -0.028472900390625, -0.037689208984375, -0.0183258056640625, 0.0372314453125, 0.059539794921875, -0.01247406005859375, -0.048553466796875, -0.036346435546875, 0.0203704833984375, -0.044464111328125, -0.032928466796875, -0.0015401840209960938, 0.031585693359375, 0.01412200927734375, -0.07135009765625, -0.06964111328125, 0.0253143310546875, -0.0221099853515625, -0.00162506103515625, -0.0266571044921875, 0.00975799560546875, 0.01335906982421875, 0.0017652511596679688, 0.01256561279296875, -0.00832366943359375, 0.00940704345703125, -0.0159454345703125, 0.03271484375, 0.0102691650390625, -0.031768798828125, -0.004123687744140625, -0.00971221923828125, -0.0311431884765625, -0.0022029876708984375, -0.032135009765625, -0.05267333984375, -0.0204925537109375, -0.0714111328125, -0.049774169921875, 0.01019287109375, -0.01381683349609375, -0.03009033203125, 0.040557861328125, 0.058319091796875, -0.0008549690246582031, -0.03192138671875, -0.0006670951843261719, -0.0323486328125, -0.05145263671875, -0.015716552734375, -0.0050506591796875, 0.055450439453125, -0.042266845703125, -0.028564453125, 0.0181732177734375, 0.03729248046875, 0.0280303955078125, -0.07647705078125, 0.00946807861328125, -0.032958984375, -0.02618408203125, 0.0221405029296875, 0.00372314453125, 0.0195770263671875, 0.006134033203125, 0.01983642578125, -0.02642822265625, 0.00771331787109375, -0.049041748046875, -0.014617919921875, 0.006931304931640625, -0.03216552734375, -0.0095367431640625, 0.040435791015625, -0.019256591796875, 0.050140380859375, -0.0185546875, -0.000308990478515625, 0.023101806640625, 0.00870513916015625, -0.015533447265625, -0.033905029296875, 0.007022857666015625, -0.022247314453125, 0.00717926025390625, 0.003528594970703125, -0.01348114013671875, -0.0220184326171875, 0.0216217041015625, -0.0109405517578125, -0.0150909423828125, 0.0129852294921875, 0.0178680419921875, 0.01016998291015625, 0.0074615478515625, -0.0009760856628417969, -0.06903076171875, 0.03778076171875, 0.01727294921875, -0.0200958251953125, 0.052398681640625, -0.0587158203125, 0.0308990478515625, -0.050445556640625, 0.037506103515625, -0.0303802490234375, 0.010711669921875, -0.01282501220703125, 0.016448974609375, -0.03814697265625, -0.06671142578125, 0.0217742919921875, -0.06304931640625, -0.0183563232421875, 0.0277557373046875, -0.042266845703125, 0.02191162109375, -0.03460693359375, 0.0272369384765625, -0.00879669189453125, 0.00022399425506591797, 0.036712646484375, 0.0244903564453125, -0.0584716796875, 0.0269622802734375, 0.0328369140625, -0.0328369140625, -0.0167999267578125, 0.004215240478515625, -0.00537109375, -0.04833984375, 0.0263824462890625, 0.003162384033203125, 0.0777587890625, 0.035552978515625, 0.026214599609375, 0.0005478858947753906, -0.03533935546875, -0.005397796630859375, 0.01544189453125, 0.0261383056640625, -0.037567138671875, -0.00951385498046875, -0.0147552490234375, 0.00579071044921875, -0.0160980224609375, 0.00818634033203125, 0.0058135986328125, -0.02752685546875, -0.0158233642578125, -0.10784912109375, -0.00627899169921875, -0.02978515625, 0.035003662109375, -0.0260467529296875, 0.033843994140625, 0.02886962890625, 0.01546478271484375, -0.042572021484375, 0.028472900390625, 0.01250457763671875, -0.0012464523315429688, -0.0026187896728515625, -0.0241546630859375, -0.01110076904296875, -0.010284423828125, -0.0265655517578125, 0.0036602020263671875, -0.048309326171875, 0.004833221435546875, 0.019317626953125, -0.039337158203125, -0.00911712646484375, -0.04144287109375, -0.01338958740234375, -0.026641845703125, -0.01038360595703125, 0.07366943359375, -0.01087188720703125, -0.0050201416015625, -0.0186920166015625, -0.0235137939453125, -0.0439453125, -0.1201171875, 0.018280029296875, 0.08197021484375, 0.01055145263671875, 0.019378662109375, -0.0216827392578125, 0.0218353271484375, -0.04864501953125, -0.06268310546875, 0.01546478271484375, 0.00800323486328125, -0.00502777099609375, 0.050933837890625, -0.01305389404296875, 0.0253143310546875, 0.0126800537109375, -0.02166748046875, 0.0002512931823730469, 0.041107177734375, -0.019866943359375, 0.0293121337890625, 0.01318359375, -0.0234375, 0.001659393310546875, -0.047515869140625, -0.01177978515625, -0.0364990234375, 0.05621337890625, -0.038848876953125, 0.042633056640625, 0.02655029296875, -0.011566162109375, -0.00824737548828125, 0.0085601806640625, -0.00849151611328125, 0.004302978515625, 0.04510498046875, 0.019683837890625, -0.020965576171875, -0.041900634765625, -0.00974273681640625, 0.018463134765625, 0.0250091552734375, -0.025665283203125, 0.0197906494140625, 0.0294036865234375, -0.0162811279296875, -0.006031036376953125, -0.0217437744140625, 0.0296173095703125, -0.027618408203125, -0.01485443115234375, -0.0224151611328125, 0.0252227783203125, -0.0013647079467773438, -0.036376953125, 0.0298614501953125, 0.0007047653198242188, -0.03057861328125, -0.01018524169921875, -0.0296783447265625, 0.0241546630859375, -0.002925872802734375, 0.048583984375, 0.0755615234375, 0.019683837890625, 0.0034999847412109375, -0.0002510547637939453, 0.044189453125, 0.0189666748046875, -0.0233001708984375, -0.019805908203125, -0.0052337646484375, -0.07025146484375, -0.042236328125, 0.0237274169921875, 0.04119873046875, 0.006206512451171875, -0.00904083251953125, 0.0020122528076171875, 0.036773681640625, -0.020263671875, -0.0272369384765625, -0.0295562744140625, -0.023284912109375, -0.02777099609375, 0.0003933906555175781, -0.005680084228515625, 0.00608062744140625, -0.00202178955078125, 0.004398345947265625, 0.0106353759765625, -0.011962890625, -0.0196990966796875, -0.0261077880859375, -0.04779052734375, -0.035797119140625, 0.0012483596801757812, -0.007137298583984375, 0.0007224082946777344, 0.0977783203125, 0.00836944580078125, -0.056182861328125, -0.025482177734375, -0.0732421875, -0.0416259765625, -0.006671905517578125, 0.0189971923828125, 0.019195556640625, -0.0347900390625, 0.044830322265625, -0.0033702850341796875, -0.0018138885498046875, -0.0300140380859375, -0.0469970703125, 0.002178192138671875, -0.00493621826171875, 0.034454345703125, -0.0313720703125, -0.0276336669921875, 0.06170654296875, 0.0302581787109375, -0.01332855224609375, -0.0257720947265625, -0.004852294921875, -0.041168212890625, -0.0341796875, 0.027130126953125, -0.0076751708984375, -0.0191192626953125, -0.003238677978515625, 0.037628173828125, 0.039459228515625, 0.005062103271484375, 0.03363037109375, -0.0264129638671875, -0.006366729736328125, 0.0110015869140625, -0.019378662109375, 0.028778076171875, -0.0201263427734375, 0.055389404296875, 0.0246429443359375, 0.00783538818359375, 0.0228271484375, -0.0360107421875, -0.00392913818359375, -0.0175628662109375, 0.00780487060546875, -0.041412353515625, 0.031646728515625, -0.0167083740234375, -0.00616455078125, -0.01262664794921875, 0.06005859375, -0.0028076171875, -0.01461029052734375, -0.0197906494140625, 0.02215576171875, -0.042083740234375, -0.056915283203125, -0.0171661376953125, 0.0049896240234375, -0.0440673828125, 0.031036376953125, 0.00736236572265625, -0.01068878173828125, -0.046905517578125, 0.028717041015625, -0.04559326171875, -0.007717132568359375, 0.0197601318359375, -0.08343505859375, 0.0546875, -0.0046844482421875, 0.054656982421875, -0.041595458984375, 0.005397796630859375, -0.0836181640625, -0.06341552734375, -0.0074310302734375, -0.03662109375, 0.0518798828125, 0.0345458984375, -0.012603759765625, -0.00986480712890625, 0.03173828125, 0.01299285888671875, -0.0072479248046875, 0.022186279296875, 0.0206756591796875, -0.053924560546875, 0.0013294219970703125, 0.0260162353515625, -0.04351806640625, -0.006847381591796875, -0.04876708984375, -0.01273345947265625, -0.0123443603515625, -0.0565185546875, 0.029571533203125, -0.0660400390625, 0.003993988037109375, -0.03631591796875, -0.0141754150390625, -0.0236358642578125, 0.0138397216796875, -0.04095458984375, 0.016937255859375, -0.0190277099609375, -0.04852294921875, 0.0301361083984375, 0.050689697265625, 0.0110321044921875, 0.00870513916015625, 0.0562744140625, 0.01091766357421875, -0.0343017578125, -0.0430908203125, 0.0249786376953125, 0.01387786865234375, -0.024749755859375, 0.050689697265625, -0.0011034011840820312, -0.01210784912109375, 0.06982421875, -0.017333984375, -0.01271820068359375, -0.0615234375, 0.058502197265625, -0.0193023681640625, 0.0030193328857421875, -0.01114654541015625, -0.058746337890625, 0.09771728515625, 0.04107666015625, 0.01523590087890625, -0.01274871826171875, 0.041046142578125, 0.0232391357421875, -0.022430419921875, -0.01274871826171875, -0.004169464111328125, -0.01611328125, 0.0038280487060546875, 0.039337158203125, 0.03497314453125, 0.037109375, 0.002796173095703125, 0.0264739990234375, 0.01407623291015625, 0.013763427734375, -0.048370361328125, 0.0017271041870117188, -0.025115966796875, 0.028167724609375, 0.003406524658203125, 0.01123809814453125, -0.043060302734375, -0.01251983642578125, 0.0211944580078125, -0.0192108154296875, -0.061279296875, -0.00998687744140625, -0.012298583984375, 0.059906005859375, 0.0179443359375, -0.006011962890625, 0.004505157470703125, 0.0191650390625, -0.005970001220703125, -0.00836181640625, 0.0029468536376953125, 0.02557373046875, -0.02496337890625, 0.0178985595703125, 0.00003933906555175781, -0.019073486328125, 0.030792236328125, -0.0244293212890625, 0.052520751953125, -0.0273284912109375, -0.02410888671875, 0.06524658203125, 0.0267333984375, -0.002197265625, -0.0094757080078125, 0.04205322265625, 0.01334381103515625, -0.039947509765625, 0.00286865234375, -0.0262908935546875, -0.0540771484375, 0.019256591796875, 0.0284881591796875, -0.034149169921875, 0.013214111328125, 0.0210418701171875, 0.026153564453125, -0.01251983642578125, 0.034942626953125, 0.0305938720703125, -0.04510498046875, -0.0143280029296875, 0.0169525146484375, 0.006977081298828125, 0.0032329559326171875, 0.0123443603515625, -0.049407958984375, 0.0032901763916015625, 0.005847930908203125, -0.027679443359375, -0.0112152099609375, -0.0158233642578125, -0.00615692138671875, -0.049163818359375, -0.07684326171875, -0.0176849365234375, 0.03338623046875, 0.042999267578125, -0.018768310546875, -0.037689208984375, 0.0000011920928955078125, 0.0120391845703125, -0.000629425048828125, -0.004608154296875, -0.0161590576171875, 0.04412841796875, -0.0011701583862304688, 0.01010894775390625, -0.0413818359375, -0.0254058837890625, -0.01338958740234375, -0.04437255859375, -0.01837158203125, -0.03717041015625, -0.0290985107421875, -0.0269622802734375, 0.01006317138671875, 0.00177001953125, 0.009765625, 0.01363372802734375, 0.00701141357421875, 0.00823974609375, 0.005130767822265625, -0.017486572265625, -0.015716552734375, -0.03558349609375, 0.02691650390625, 0.01442718505859375, 0.01678466796875, 0.005950927734375, 0.0295867919921875, 0.03125, -0.0259552001953125, 0.01971435546875, -0.0267181396484375, -0.03411865234375, -0.039306640625, -0.0028285980224609375, 0.0122833251953125, 0.042999267578125, -0.002605438232421875, 0.029876708984375, -0.046844482421875, 0.0108642578125, -0.01529693603515625, 0.03314208984375, -0.06298828125, -0.0182342529296875, 0.035400390625, -0.00133514404296875, 0.01505279541015625, -0.004863739013671875, -0.03741455078125, 0.02276611328125, 0.01161956787109375, 0.014617919921875, 0.0108642578125, 0.01165008544921875, 0.0003840923309326172, 0.03173828125, -0.021148681640625, 0.024627685546875, 0.037872314453125, 0.0146942138671875, 0.0249481201171875, -0.004119873046875, -0.046966552734375, -0.01959228515625, 0.0240325927734375, 0.0031719207763671875, -0.0186614990234375, 0.022674560546875, -0.01544189453125, 0.02178955078125, 0.0208892822265625, 0.062744140625, -0.0758056640625, 0.036224365234375, 0.039154052734375, -0.0012559890747070312, 0.0233306884765625, 0.01169586181640625, 0.007320404052734375, -0.00055694580078125, -0.022979736328125, -0.05145263671875, -0.03594970703125, -0.03497314453125, -0.026214599609375, 0.006683349609375, 0.0128936767578125, 0.0482177734375, 0.005115509033203125, -0.071044921875, 0.0007376670837402344, 0.049102783203125, 0.00559234619140625, -0.0256805419921875, -0.0021114349365234375, 0.0165557861328125, -0.04156494140625, -0.0877685546875, -0.018707275390625, 0.0073699951171875, -0.034149169921875, 0.00780487060546875, 0.009307861328125, 0.01403045654296875, 0.06207275390625, -0.03515625, 0.03192138671875, 0.0264739990234375, -0.01192474365234375, -0.06927490234375, -0.02935791015625, 0.00931549072265625, 0.0128326416015625, -0.06646728515625, 0.035125732421875, -0.05242919921875, -0.008758544921875, -0.01983642578125, -0.044158935546875, 0.04962158203125, -0.0002799034118652344, -0.0242919921875, 0.034423828125, 0.0241241455078125, -0.03399658203125, -0.02032470703125, -0.0008225440979003906, -0.0677490234375, -0.028594970703125, -0.0273590087890625, -0.039031982421875, 0.00901031494140625, -0.052490234375, -0.03863525390625, 0.0794677734375, -0.002651214599609375, -0.001720428466796875, -0.0205230712890625, 0.044769287109375, 0.0036773681640625, 0.046112060546875, -0.019744873046875, 0.053863525390625, 0.029815673828125, -0.0279998779296875, -0.0177001953125, 0.0157928466796875, -0.0279388427734375, -0.0017881393432617188, 0.03765869140625, 0.00769805908203125, -0.0081634521484375, 0.00208282470703125, 0.038482666015625, -0.0051727294921875, -0.0263671875, 0.040252685546875, 0.0033473968505859375, 0.028167724609375, 0.0251312255859375, -0.051666259765625, 0.0237884521484375, -0.0157318115234375, 0.00557708740234375, 0.0124664306640625, -0.01416778564453125, -0.01009368896484375, 0.0007405281066894531, -0.003002166748046875, 0.004337310791015625, -0.01145172119140625, -0.0108184814453125, -0.0125732421875, 0.04608154296875, -0.01904296875, 0.039154052734375, -0.0701904296875, -0.036102294921875, -0.0013952255249023438, 0.035858154296875, 0.02191162109375, -0.034149169921875, 0.0714111328125, 0.0035114288330078125, -0.0312042236328125, 0.032745361328125, -0.001079559326171875, -0.00162506103515625, 0.052734375, 0.063232421875, 0.05426025390625, 0.03826904296875, -0.0019378662109375, -0.0026874542236328125, 0.015655517578125, 0.0596923828125, -0.0286407470703125, -0.041961669921875, 0.0040130615234375, -0.006694793701171875, 0.005252838134765625, -0.006961822509765625, -0.01103973388671875, -0.013397216796875, 0.0157318115234375, 0.0202178955078125, -0.007266998291015625, -0.0078887939453125, -0.02874755859375, 0.02447509765625, 0.0628662109375, 0.010467529296875, 0.0274658203125, -0.012176513671875, -0.038970947265625, 0.00794219970703125, 0.0203704833984375, 0.05145263671875, -0.0130615234375, 0.037628173828125, -0.0025787353515625, -0.001499176025390625, 0.04925537109375, 0.0089263916015625, -0.0117340087890625, -0.04150390625, -0.07867431640625, 0.0237274169921875, 0.04437255859375, 0.0386962890625, -0.041778564453125, 0.057464599609375, 0.04315185546875, -0.051666259765625, -0.031951904296875, -0.019256591796875, -0.0164947509765625, 0.0296173095703125, -0.002288818359375, -0.0021209716796875, 0.0185394287109375, -0.0165557861328125, -0.0347900390625, 0.03790283203125, 0.0201263427734375, -0.0029163360595703125, 0.00504302978515625, 0.006641387939453125, -0.0161285400390625, 0.0341796875, -0.031036376953125, -0.0027618408203125, -0.005176544189453125, 0.00396728515625, 0.0218048095703125, -0.0295257568359375, 0.002132415771484375, -0.055267333984375, -0.019683837890625, -0.0203857421875, 0.07867431640625, -0.0004143714904785156, -0.00412750244140625, 0.0050506591796875, 0.0164947509765625, -0.0262908935546875, -0.0301666259765625, 0.043853759765625, -0.024688720703125, -0.027801513671875, -0.0212249755859375, -0.031982421875, 0.036651611328125, 0.021087646484375, 0.07415771484375, -0.02813720703125, 0.0271759033203125, -0.004558563232421875, 0.0057830810546875, -0.031402587890625, 0.007534027099609375, -0.02142333984375, -0.0227203369140625, -0.021087646484375, -0.0006122589111328125, -0.0273590087890625, 0.0308685302734375, 0.0247650146484375, -0.018646240234375, 0.03619384765625, -0.0216827392578125, -0.003021240234375, -0.0294036865234375, -0.03424072265625, -0.041595458984375, -0.0028591156005859375, 0.006900787353515625, -0.005710601806640625, 0.003467559814453125, -0.0272979736328125, -0.01117706298828125, 0.015472412109375, 0.01456451416015625, -0.022857666015625, 0.0219268798828125, -0.0210418701171875, 0.00028777122497558594, 0.01348114013671875, 0.01971435546875, 0.023406982421875, 0.01132965087890625, -0.0142822265625, -0.0080413818359375, 0.027252197265625, -0.039031982421875, 0.032806396484375, -0.037994384765625, -0.053741455078125, -0.0018625259399414062, 0.024566650390625, -0.00255584716796875, 0.02362060546875, -0.056182861328125, 0.01511383056640625, -0.00347900390625, 0.06585693359375, -0.009185791015625, 0.0235595703125, -0.057525634765625, -0.01262664794921875, -0.037109375, -0.08099365234375, -0.09405517578125, 0.01396942138671875, 0.023681640625, 0.026153564453125, -0.06512451171875, 0.0806884765625, -0.0311279296875, -0.02581787109375, 0.02716064453125, -0.0140838623046875, -0.0177459716796875, 0.005901336669921875, 0.0175323486328125, -0.05303955078125, -0.031219482421875, 0.0902099609375, -0.0087127685546875, -0.00568389892578125, -0.001735687255859375, -0.0202178955078125, -0.0418701171875, -0.0029850006103515625, 0.0167236328125, 0.01837158203125, 0.03173828125, -0.0197601318359375, 0.0303802490234375, 0.024688720703125, 0.0077056884765625, -0.0518798828125, -0.035888671875, 0.01371002197265625, 0.032806396484375, -0.046966552734375, 0.051727294921875, 0.051177978515625, -0.007770538330078125, -0.0276336669921875, 0.060699462890625, -0.0197906494140625, -0.0174560546875, -0.013214111328125, 0.0218353271484375, -0.0189361572265625, 0.0401611328125, 0.01519775390625, -0.01042938232421875, 0.005084991455078125, -0.0003616809844970703, -0.0095062255859375, 0.057159423828125, -0.0090179443359375, 0.00537109375, -0.0185546875, 0.01096343994140625, -0.00795745849609375, -0.00974273681640625, 0.003875732421875, 0.00937652587890625, 0.01403045654296875, 0.08123779296875, -0.01183319091796875, -0.002880096435546875, -0.0298614501953125, -0.04779052734375, -0.0267791748046875, 0.00594329833984375, -0.01369476318359375, -0.020751953125, 0.0836181640625, 0.05841064453125, 0.0294952392578125, -0.0294952392578125, 0.0499267578125, 0.008636474609375, -0.0112457275390625, -0.01248931884765625, -0.0014657974243164062, -0.01020050048828125, -0.00691986083984375, -0.00031876564025878906, -0.0023555755615234375, -0.01019287109375, -0.042938232421875, -0.01358795166015625, -0.014129638671875, -0.0421142578125, -0.007610321044921875, 0.0013914108276367188, 0.050323486328125, -0.0413818359375, 0.00830078125, -0.0024738311767578125, -0.00024437904357910156, -0.0276031494140625, -0.0256500244140625, 0.07122802734375, 0.0252685546875, 0.0016641616821289062, -0.049652099609375, 0.02264404296875, 0.0033702850341796875, 0.0300140380859375, -0.0606689453125, -0.044647216796875, -0.005786895751953125, 0.00130462646484375, 0.01396942138671875, -0.0033721923828125, -0.0080108642578125, -0.01873779296875, -0.01082611083984375, 0.0167083740234375, -0.014312744140625, 0.05084228515625, 0.006076812744140625, 0.035552978515625, -0.047088623046875, -0.00267791748046875, -0.0167083740234375, -0.0261993408203125, 0.004886627197265625, -0.0008463859558105469, -0.01271820068359375, -0.039398193359375, 0.02789306640625, 0.044677734375, -0.01190948486328125, 0.0234527587890625 ]
6fe2f40b7922446d48600554da7a0151fb694173
Wordpress Stackexchange Q: Allow all file types for upload I'm using Wordpress 3.4.2 for a private blog, i.e. one on which only I can post. Now, Wordpress prevents me from uploading certain file types (like C# source files). As far as I understand it, there's a white-list that defines what can be uploaded. Is there a plugin that can extend - or better, even disable - this white-list? All other answers tell me I should edit my theme but I'd rather have a plugin for that (so that I don't need to edit all my themes). Also, I found this plugin but, again, it requires me to edit some file on my server (that's probably overwritten when the plugin is updated). So, is there anything else? A: Filter 'user_has_cap' and set 'unfiltered_upload' to 1. Sample code not tested: /* Plugin Name: Remove Uploads Filter Plugin URI: http://wordpress.stackexchange.com/questions/67225/allow-all-file-types-for-upload Description: Disables white-list filter for uploads Version: 1.0 Author: WPSE - @toscho */ add_filter( 'user_has_cap', 'wpse_67225_unfiltered_upload' ); function wpse_67225_unfiltered_upload( $caps ) { $caps['unfiltered_upload'] = 1; return $caps; }
Q: Allow all file types for upload I'm using Wordpress 3.4.2 for a private blog, i.e. one on which only I can post. Now, Wordpress prevents me from uploading certain file types (like C# source files). As far as I understand it, there's a white-list that defines what can be uploaded. Is there a plugin that can extend - or better, even disable - this white-list? All other answers tell me I should edit my theme but I'd rather have a plugin for that (so that I don't need to edit all my themes). Also, I found this plugin but, again, it requires me to edit some file on my server (that's probably overwritten when the plugin is updated). So, is there anything else? A: Filter 'user_has_cap' and set 'unfiltered_upload' to 1. Sample code not tested: /* Plugin Name: Remove Uploads Filter Plugin URI: http://wordpress.stackexchange.com/questions/67225/allow-all-file-types-for-upload Description: Disables white-list filter for uploads Version: 1.0 Author: WPSE - @toscho */ add_filter( 'user_has_cap', 'wpse_67225_unfiltered_upload' ); function wpse_67225_unfiltered_upload( $caps ) { $caps['unfiltered_upload'] = 1; return $caps; } A: Unfortunately, toscho's answer doesn't work - at least not in Wordpress 3.4 and above. The correct solution is the following: # # For this, see: wp-includes/capabilities.php > map_meta_cap() # function wpse_6533_map_unrestricted_upload_filter($caps, $cap) { if ($cap == 'unfiltered_upload') { $caps = array(); $caps[] = $cap; } return $caps; } add_filter('map_meta_cap', 'wpse_6533_map_unrestricted_upload_filter', 0, 2); A: You can create a plugin or add this to the config file, but for 3.9.2 this worked for me. define('ALLOW_UNFILTERED_UPLOADS', true);
wordpress
{ "language": "en", "length": 248, "provenance": "stackexchange_00019.jsonl.gz:424514", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67225" }
[ 0.054931640625, 0.0138702392578125, -0.015625, -0.033294677734375, 0.035675048828125, -0.04302978515625, 0.031646728515625, -0.014678955078125, 0.0201263427734375, -0.005374908447265625, -0.0290374755859375, -0.01153564453125, -0.00434112548828125, -0.03631591796875, 0.01108551025390625, -0.040435791015625, 0.00811767578125, 0.0137176513671875, 0.024932861328125, -0.00984954833984375, 0.0121002197265625, 0.011016845703125, 0.005329132080078125, -0.043182373046875, 0.0002522468566894531, -0.0072021484375, 0.057464599609375, -0.0030155181884765625, -0.016754150390625, -0.0284423828125, 0.0083770751953125, 0.0215301513671875, 0.01552581787109375, 0.0298919677734375, -0.047821044921875, -0.01087188720703125, -0.0125274658203125, 0.02264404296875, 0.0040130615234375, 0.0116119384765625, 0.04766845703125, -0.0240936279296875, -0.0227508544921875, 0.01373291015625, -0.006927490234375, -0.056610107421875, 0.0787353515625, -0.015655517578125, 0.0054168701171875, 0.0204925537109375, -0.0188446044921875, 0.007625579833984375, -0.005451202392578125, -0.0198211669921875, 0.0053558349609375, 0.0017328262329101562, -0.00897216796875, 0.0087127685546875, 0.00905609130859375, 0.0494384765625, 0.0018396377563476562, 0.032196044921875, -0.02093505859375, -0.0312347412109375, -0.01355743408203125, 0.01983642578125, 0.052032470703125, -0.002105712890625, -0.029510498046875, -0.00044655799865722656, 0.01314544677734375, -0.01165771484375, 0.04827880859375, -0.0276947021484375, 0.020111083984375, -0.0081329345703125, -0.0028934478759765625, 0.01409149169921875, 0.047271728515625, -0.03424072265625, 0.04144287109375, -0.04852294921875, -0.0026416778564453125, 0.00839996337890625, -0.0008034706115722656, 0.0170135498046875, 0.0191497802734375, -0.01031494140625, -0.0277252197265625, 0.05194091796875, -0.026123046875, 0.0163726806640625, 0.0030727386474609375, 0.05419921875, 0.00875091552734375, 0.01317596435546875, -0.00795745849609375, 0.033599853515625, -0.0141143798828125, 0.005290985107421875, 0.02984619140625, -0.047882080078125, 0.039520263671875, -0.04339599609375, 0.034332275390625, 0.03302001953125, -0.049591064453125, -0.035430908203125, 0.049591064453125, 0.027679443359375, 0.0021457672119140625, 0.01401519775390625, -0.0278167724609375, -0.0179901123046875, -0.017913818359375, 0.01108551025390625, -0.05169677734375, 0.0086669921875, -0.006687164306640625, 0.01306915283203125, 0.0029296875, -0.00211334228515625, 0.0305328369140625, -0.057952880859375, 0.0302581787109375, -0.0162200927734375, -0.05926513671875, -0.00223541259765625, -0.013702392578125, 0.038848876953125, -0.01751708984375, -0.0065155029296875, 0.006011962890625, 0.02557373046875, -0.0035800933837890625, -0.0090179443359375, 0.0260009765625, -0.03472900390625, -0.0154571533203125, 0.0458984375, -0.0281829833984375, -0.04998779296875, -0.0106353759765625, -0.00778961181640625, -0.0193328857421875, 0.032501220703125, 0.01407623291015625, 0.010406494140625, 0.0028095245361328125, -0.037078857421875, -0.032867431640625, -0.01396942138671875, 0.06842041015625, -0.031097412109375, -0.06201171875, -0.0855712890625, 0.006092071533203125, -0.061798095703125, -0.00452423095703125, -0.0775146484375, -0.0019083023071289062, -0.0207366943359375, -0.0022869110107421875, -0.007152557373046875, -0.0285186767578125, 0.022247314453125, 0.0059967041015625, -0.01000213623046875, 0.02154541015625, -0.01454925537109375, 0.0019025802612304688, -0.006687164306640625, 0.06842041015625, -0.0047149658203125, -0.0050506591796875, 0.0176849365234375, 0.00585174560546875, 0.061126708984375, -0.0045928955078125, 0.0638427734375, 0.037078857421875, -0.039794921875, 0.0775146484375, -0.01007080078125, -0.0628662109375, 0.003993988037109375, 0.038330078125, 0.053131103515625, -0.0005555152893066406, -0.002361297607421875, 0.0906982421875, 0.0290374755859375, -0.0029087066650390625, -0.0212554931640625, -0.00537872314453125, -0.033905029296875, -0.052886962890625, -0.032135009765625, -0.03125, 0.07330322265625, 0.0023403167724609375, -0.0253448486328125, 0.03314208984375, 0.003337860107421875, 0.022430419921875, -0.0152130126953125, 0.00461578369140625, -0.00004488229751586914, -0.006168365478515625, -0.003963470458984375, 0.0269927978515625, 0.006198883056640625, -0.04754638671875, 0.02276611328125, 0.0102691650390625, 0.042572021484375, 0.020751953125, 0.039642333984375, 0.01690673828125, 0.03314208984375, 0.0145263671875, -0.0135345458984375, 0.01354217529296875, 0.0037384033203125, 0.01186370849609375, 0.0209197998046875, -0.01873779296875, 0.0219879150390625, 0.047821044921875, 0.005176544189453125, 0.0413818359375, 0.0165252685546875, 0.001621246337890625, -0.00991058349609375, -0.0203857421875, -0.01119232177734375, -0.0384521484375, -0.11737060546875, 0.004486083984375, 0.07611083984375, 0.0261383056640625, 0.0205078125, 0.01003265380859375, 0.018768310546875, 0.05084228515625, 0.0034198760986328125, 0.0389404296875, -0.01216888427734375, 0.010833740234375, 0.0164794921875, 0.004505157470703125, -0.004791259765625, 0.036865234375, -0.015289306640625, 0.0006775856018066406, 0.040191650390625, -0.01629638671875, 0.03521728515625, -0.027069091796875, -0.01432037353515625, 0.006420135498046875, 0.0171661376953125, 0.0025844573974609375, -0.0030879974365234375, 0.042388916015625, 0.0025539398193359375, 0.040374755859375, 0.02984619140625, -0.030242919921875, 0.0113067626953125, 0.0232696533203125, 0.0085296630859375, 0.0012483596801757812, 0.059326171875, 0.07183837890625, 0.02386474609375, -0.039520263671875, -0.0285186767578125, 0.045501708984375, 0.057037353515625, -0.00540924072265625, 0.006046295166015625, -0.03314208984375, -0.0133056640625, 0.0130462646484375, -0.0161590576171875, 0.00009256601333618164, -0.019561767578125, 0.0036907196044921875, -0.0185394287109375, 0.0290985107421875, -0.0004558563232421875, -0.0027790069580078125, 0.005062103271484375, 0.01093292236328125, -0.02813720703125, -0.0258331298828125, -0.03973388671875, 0.01462554931640625, -0.0478515625, 0.034149169921875, 0.06695556640625, -0.03253173828125, 0.004985809326171875, 0.01012420654296875, -0.01605224609375, 0.00292205810546875, 0.049591064453125, 0.01467132568359375, -0.034423828125, -0.020050048828125, -0.006587982177734375, 0.0004734992980957031, -0.0156402587890625, 0.007755279541015625, -0.0167083740234375, -0.01425933837890625, -0.0014133453369140625, -0.0261993408203125, 0.007602691650390625, 0.01898193359375, -0.06768798828125, -0.01361083984375, -0.005859375, -0.047698974609375, -0.00238800048828125, 0.025360107421875, 0.00395965576171875, 0.0191192626953125, 0.03985595703125, -0.005023956298828125, 0.049407958984375, -0.0013065338134765625, -0.0211334228515625, -0.024658203125, -0.01399993896484375, 0.006683349609375, 0.08502197265625, 0.0196990966796875, -0.05169677734375, 0.0030651092529296875, -0.007320404052734375, -0.030487060546875, 0.00653076171875, 0.044586181640625, -0.02349853515625, 0.0171966552734375, -0.0019817352294921875, -0.03350830078125, 0.04498291015625, -0.034027099609375, -0.00750732421875, -0.006420135498046875, -0.0305023193359375, -0.00653076171875, -0.004352569580078125, 0.00812530517578125, -0.0498046875, -0.035369873046875, -0.082275390625, 0.006458282470703125, -0.0117034912109375, -0.0198974609375, 0.014373779296875, 0.01195526123046875, -0.02496337890625, -0.018035888671875, 0.01508331298828125, 0.01708984375, 0.0295562744140625, -0.033966064453125, -0.0239105224609375, 0.043701171875, 0.005283355712890625, 0.042236328125, 0.00322723388671875, -0.002819061279296875, -0.027862548828125, 0.0222320556640625, 0.0020503997802734375, 0.004680633544921875, -0.0250091552734375, 0.042877197265625, -0.020233154296875, -0.01337432861328125, 0.049652099609375, -0.056976318359375, -0.0003025531768798828, -0.0518798828125, -0.013427734375, -0.037933349609375, 0.0606689453125, -0.06451416015625, -0.0029315948486328125, -0.0238494873046875, 0.019775390625, -0.032989501953125, -0.046630859375, -0.05596923828125, 0.0210723876953125, -0.018585205078125, -0.0134429931640625, -0.0266876220703125, -0.015045166015625, 0.018463134765625, -0.10955810546875, 0.0215911865234375, -0.044525146484375, 0.045684814453125, -0.04425048828125, 0.0154571533203125, 0.00994110107421875, 0.004535675048828125, -0.043670654296875, -0.02862548828125, -0.024261474609375, -0.1273193359375, -0.018402099609375, -0.00461578369140625, 0.062744140625, -0.024444580078125, 0.0271453857421875, -0.02557373046875, 0.060455322265625, 0.045440673828125, -0.01910400390625, 0.0161590576171875, -0.029876708984375, 0.0292816162109375, -0.0213165283203125, -0.006687164306640625, -0.0222625732421875, -0.014556884765625, -0.036376953125, -0.0458984375, -0.04144287109375, -0.026519775390625, -0.0269012451171875, 0.010467529296875, -0.03314208984375, 0.005405426025390625, -0.032135009765625, -0.039154052734375, 0.004695892333984375, -0.0064239501953125, -0.01523590087890625, -0.040924072265625, -0.02349853515625, 0.07733154296875, -0.00585174560546875, 0.005157470703125, -0.0034942626953125, 0.0946044921875, -0.0010423660278320312, -0.0289764404296875, -0.05157470703125, -0.0094146728515625, 0.01305389404296875, -0.020843505859375, 0.06561279296875, 0.036651611328125, -0.00008064508438110352, 0.0537109375, -0.0200347900390625, -0.00809478759765625, -0.0219573974609375, 0.0494384765625, 0.00188446044921875, -0.0014324188232421875, -0.0122222900390625, -0.0017557144165039062, 0.037689208984375, -0.005401611328125, 0.0032138824462890625, -0.0399169921875, 0.002971649169921875, 0.05548095703125, 0.00550079345703125, 0.01003265380859375, -0.0279083251953125, -0.07122802734375, 0.03155517578125, -0.048614501953125, -0.0090484619140625, -0.019317626953125, 0.007236480712890625, 0.00341796875, 0.0017919540405273438, -0.0175323486328125, 0.00836181640625, 0.03045654296875, 0.0123443603515625, 0.050445556640625, -0.0111541748046875, -0.004482269287109375, -0.03875732421875, 0.0005288124084472656, -0.035858154296875, -0.04266357421875, -0.056884765625, 0.0011043548583984375, -0.00681304931640625, -0.00421905517578125, 0.058807373046875, -0.021820068359375, -0.0002313852310180664, 0.053375244140625, -0.01148223876953125, 0.01161956787109375, 0.043426513671875, 0.019805908203125, -0.0325927734375, 0.059173583984375, 0.0220184326171875, -0.024322509765625, 0.01788330078125, -0.0254364013671875, 0.020172119140625, -0.024200439453125, 0.006313323974609375, 0.007633209228515625, 0.057159423828125, -0.0150604248046875, 0.03167724609375, -0.00920867919921875, -0.017852783203125, -0.0253753662109375, 0.0254364013671875, -0.048187255859375, -0.0017309188842773438, 0.02764892578125, 0.013916015625, 0.0003368854522705078, -0.0239715576171875, 0.025360107421875, 0.0008287429809570312, 0.003047943115234375, -0.0178375244140625, -0.003795623779296875, 0.0177459716796875, -0.030853271484375, -0.042449951171875, 0.021148681640625, 0.01690673828125, 0.003635406494140625, 0.0003790855407714844, 0.00814056396484375, -0.0294036865234375, 0.047271728515625, -0.0772705078125, 0.012298583984375, 0.043914794921875, 0.0284881591796875, 0.0025730133056640625, -0.0191802978515625, -0.06292724609375, -0.0239410400390625, -0.01491546630859375, -0.005939483642578125, 0.047271728515625, -0.0159149169921875, 0.031982421875, -0.01093292236328125, -0.004039764404296875, 0.0034656524658203125, 0.0242462158203125, 0.0008759498596191406, -0.00635528564453125, -0.038970947265625, -0.046478271484375, -0.0263214111328125, -0.0262603759765625, 0.0036182403564453125, 0.02154541015625, -0.0185394287109375, 0.01174163818359375, -0.0166473388671875, 0.0341796875, -0.0167388916015625, -0.005588531494140625, 0.0187835693359375, 0.008758544921875, -0.0179901123046875, 0.03350830078125, -0.04949951171875, 0.05517578125, 0.0160064697265625, 0.039642333984375, -0.020416259765625, 0.01200103759765625, 0.006435394287109375, 0.0007543563842773438, -0.0440673828125, -0.040496826171875, -0.0043487548828125, 0.02874755859375, -0.01318359375, 0.07086181640625, 0.07647705078125, 0.0163116455078125, 0.0269927978515625, -0.017242431640625, 0.00978851318359375, -0.0299835205078125, 0.0160980224609375, -0.0447998046875, 0.00005650520324707031, -0.002246856689453125, 0.018218994140625, 0.042144775390625, -0.0276031494140625, -0.0263824462890625, -0.0020046234130859375, 0.00485992431640625, 0.004306793212890625, -0.010833740234375, 0.021636962890625, 0.023406982421875, 0.01091766357421875, -0.0107421875, 0.0019445419311523438, -0.0006589889526367188, 0.018310546875, -0.01219940185546875, -0.01425933837890625, 0.0192413330078125, -0.0213165283203125, -0.01189422607421875, -0.0185394287109375, 0.00513458251953125, -0.004405975341796875, -0.01486968994140625, 0.0151824951171875, 0.04705810546875, 0.0634765625, -0.0472412109375, -0.0139923095703125, 0.002353668212890625, -0.03936767578125, 0.0201416015625, -0.01953125, 0.0017652511596679688, -0.031280517578125, 0.06793212890625, 0.006866455078125, -0.00778961181640625, 0.031280517578125, -0.0027942657470703125, -0.0071258544921875, 0.00426483154296875, 0.03399658203125, 0.0182952880859375, 0.0010290145874023438, -0.026824951171875, 0.00302886962890625, 0.0036640167236328125, 0.038482666015625, 0.04571533203125, -0.0460205078125, -0.00988006591796875, -0.018310546875, -0.028411865234375, -0.01097869873046875, -0.05987548828125, 0.04681396484375, -0.0002428293228149414, 0.037689208984375, 0.055023193359375, 0.00720977783203125, 0.003765106201171875, 0.045623779296875, -0.01284027099609375, -0.0107421875, -0.048675537109375, -0.017547607421875, 0.0239105224609375, -0.01084136962890625, 0.0281219482421875, 0.0251617431640625, -0.0411376953125, 0.007335662841796875, 0.02008056640625, 0.0450439453125, -0.01453399658203125, -0.0245361328125, 0.04931640625, 0.0016994476318359375, -0.031646728515625, 0.0096282958984375, -0.028656005859375, -0.047454833984375, -0.03155517578125, -0.02001953125, -0.049041748046875, 0.020599365234375, 0.018798828125, -0.029144287109375, 0.064697265625, -0.006710052490234375, 0.018890380859375, 0.04290771484375, 0.0184326171875, -0.0302734375, -0.005260467529296875, -0.04833984375, 0.033233642578125, -0.0035800933837890625, 0.038299560546875, -0.07159423828125, -0.00677490234375, -0.017852783203125, 0.038238525390625, 0.032958984375, 0.003627777099609375, -0.031829833984375, 0.0028514862060546875, 0.07342529296875, 0.044921875, 0.025665283203125, 0.0211944580078125, 0.00431060791015625, -0.0173797607421875, -0.00891876220703125, 0.0020503997802734375, 0.03619384765625, -0.0535888671875, -0.0246429443359375, 0.0035228729248046875, 0.021331787109375, 0.02679443359375, -0.045318603515625, -0.0014638900756835938, -0.01953125, -0.036285400390625, -0.00396728515625, 0.039581298828125, -0.00670623779296875, 0.034637451171875, 0.00844573974609375, -0.035430908203125, 0.0299530029296875, -0.0361328125, 0.054046630859375, -0.005405426025390625, -0.00391387939453125, 0.04266357421875, 0.0134124755859375, -0.002227783203125, -0.01318359375, -0.008636474609375, -0.001773834228515625, 0.006561279296875, 0.035186767578125, 0.039520263671875, 0.0220947265625, 0.0285797119140625, 0.0712890625, 0.01386260986328125, 0.012542724609375, -0.047027587890625, -0.058837890625, -0.00630950927734375, 0.0048370361328125, 0.0135955810546875, 0.0216064453125, 0.033721923828125, -0.037689208984375, 0.00565338134765625, -0.07025146484375, 0.044647216796875, 0.052764892578125, 0.011962890625, -0.005199432373046875, 0.0132904052734375, -0.06427001953125, 0.052093505859375, -0.0572509765625, 0.0279693603515625, 0.016632080078125, 0.0618896484375, 0.0070953369140625, 0.051971435546875, -0.029022216796875, -0.028411865234375, -0.0252532958984375, 0.05438232421875, 0.0052947998046875, 0.0252838134765625, -0.057525634765625, -0.05859375, 0.038543701171875, 0.056976318359375, 0.018463134765625, 0.021514892578125, 0.041717529296875, 0.00982666015625, -0.05218505859375, 0.007541656494140625, 0.042327880859375, -0.024658203125, -0.04522705078125, -0.035125732421875, -0.00982666015625, 0.017486572265625, -0.00630950927734375, 0.048858642578125, -0.0021839141845703125, 0.0267333984375, 0.020751953125, -0.003597259521484375, 0.0027866363525390625, -0.051116943359375, -0.0151214599609375, -0.000667572021484375, 0.0183563232421875, 0.0252532958984375, -0.0626220703125, -0.0092315673828125, -0.02386474609375, 0.0066986083984375, 0.00569915771484375, 0.0090179443359375, -0.035888671875, 0.062408447265625, 0.0270233154296875, -0.07281494140625, 0.0115814208984375, 0.056488037109375, 0.00995635986328125, -0.0014562606811523438, -0.00045871734619140625, -0.0277862548828125, -0.0438232421875, -0.001575469970703125, -0.04949951171875, 0.0256500244140625, 0.044677734375, 0.07305908203125, -0.01371002197265625, 0.0281219482421875, -0.01617431640625, 0.0167083740234375, -0.026611328125, -0.00563812255859375, -0.01360321044921875, 0.0189208984375, 0.00963592529296875, -0.009063720703125, -0.01381683349609375, 0.0217742919921875, 0.0176849365234375, -0.00414276123046875, 0.0192413330078125, -0.027374267578125, 0.026885986328125, 0.003078460693359375, 0.0269012451171875, -0.046112060546875, -0.00345611572265625, -0.04583740234375, -0.043426513671875, 0.02716064453125, -0.0340576171875, -0.01085662841796875, 0.04669189453125, -0.021240234375, 0.004913330078125, 0.017120361328125, -0.0284423828125, -0.00037360191345214844, 0.01039886474609375, -0.031768798828125, -0.0222930908203125, 0.029266357421875, -0.006671905517578125, -0.01300811767578125, 0.0035381317138671875, 0.03582763671875, -0.00015079975128173828, -0.03564453125, 0.014068603515625, 0.0084381103515625, 0.0156402587890625, -0.033599853515625, -0.00972747802734375, 0.03533935546875, -0.0117645263671875, -0.0185394287109375, -0.032623291015625, -0.04217529296875, -0.01331329345703125, -0.0103302001953125, 0.003101348876953125, 0.01812744140625, -0.0894775390625, -0.007076263427734375, -0.0295562744140625, 0.040618896484375, 0.0016775131225585938, -0.0313720703125, 0.004787445068359375, -0.027313232421875, 0.0277862548828125, 0.0037441253662109375, 0.1112060546875, -0.0274505615234375, -0.0173187255859375, -0.08746337890625, -0.037017822265625, 0.0034694671630859375, 0.07769775390625, 0.00012862682342529297, -0.0063323974609375, 0.005046844482421875, -0.01910400390625, -0.00909423828125, 0.0352783203125, 0.00795745849609375, 0.0692138671875, 0.00542449951171875, -0.037872314453125, 0.0090789794921875, -0.0235748291015625, 0.00405120849609375, -0.036285400390625, -0.0181884765625, -0.050201416015625, 0.003643035888671875, 0.0170745849609375, -0.035003662109375, -0.0218658447265625, -0.04718017578125, -0.0946044921875, 0.046539306640625, -0.0005440711975097656, -0.049713134765625, -0.0064544677734375, 0.003814697265625, -0.01050567626953125, -0.0032596588134765625, 0.007171630859375, -0.04925537109375, -0.006412506103515625, 0.0224456787109375, -0.017486572265625, 0.005413055419921875, 0.01216888427734375, -0.034759521484375, -0.00939178466796875, 0.007602691650390625, 0.030548095703125, -0.03875732421875, 0.014678955078125, -0.00579833984375, 0.0592041015625, 0.0426025390625, -0.010223388671875, 0.10076904296875, -0.003993988037109375, -0.0254669189453125, -0.01145172119140625, -0.00940704345703125, -0.0458984375, -0.039764404296875, 0.062042236328125, 0.057464599609375, 0.0204315185546875, 0.01280975341796875, -0.0036792755126953125, -0.03857421875, -0.041961669921875, -0.0134429931640625, 0.01233673095703125, -0.031707763671875, 0.01092529296875, -0.01320648193359375, 0.01165008544921875, 0.004772186279296875, 0.00010192394256591797, -0.00020372867584228516, -0.03326416015625, -0.004535675048828125, -0.0211029052734375, -0.02838134765625, 0.00983428955078125, 0.0228271484375, -0.02752685546875, -0.002655029296875, -0.00438690185546875, 0.0074005126953125, 0.0002999305725097656, 0.01206207275390625, -0.046173095703125, 0.01195526123046875, 0.00251007080078125, 0.039154052734375, -0.003559112548828125, 0.018829345703125, -0.020660400390625, 0.041473388671875, 0.0018768310546875, -0.0007691383361816406, 0.005558013916015625, 0.01334381103515625, -0.0287017822265625, 0.0287017822265625, -0.0052947998046875, 0.0143585205078125, -0.0239410400390625, -0.0765380859375, -0.032623291015625, 0.0200653076171875, -0.006011962890625, -0.0019121170043945312, 0.0452880859375, -0.036285400390625, 0.0219268798828125, 0.0343017578125, -0.003398895263671875, 0.01348876953125, 0.0004062652587890625, -0.0028533935546875, -0.007427215576171875, -0.013702392578125 ]
167ef7ed0c5cf71f42b1374b49531eb9f66fb9ab
Wordpress Stackexchange Q: How to Display Product specific to a category with WooCommerce Plugin? I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the sample page, but I only want show the products of a specific category in my index.php. A: You need to create a new loop for that. Here's the code I use for displaying products from a specific category on the home page: <ul class="products"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 1, 'product_cat' => 'shoes', 'orderby' => 'rand' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <h2>Shoes</h2> <li class="product"> <a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"> <?php woocommerce_show_product_sale_flash( $post, $product ); ?> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_src().'" alt="Placeholder" width="300px" height="300px" />'; ?> <h3><?php the_title(); ?></h3> <span class="price"><?php echo $product->get_price_html(); ?></span> </a> <?php woocommerce_template_loop_add_to_cart( $loop->post, $product ); ?> </li> <?php endwhile; ?> <?php wp_reset_query(); ?> </ul><!--/.products-->
Q: How to Display Product specific to a category with WooCommerce Plugin? I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the sample page, but I only want show the products of a specific category in my index.php. A: You need to create a new loop for that. Here's the code I use for displaying products from a specific category on the home page: <ul class="products"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 1, 'product_cat' => 'shoes', 'orderby' => 'rand' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <h2>Shoes</h2> <li class="product"> <a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>"> <?php woocommerce_show_product_sale_flash( $post, $product ); ?> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_src().'" alt="Placeholder" width="300px" height="300px" />'; ?> <h3><?php the_title(); ?></h3> <span class="price"><?php echo $product->get_price_html(); ?></span> </a> <?php woocommerce_template_loop_add_to_cart( $loop->post, $product ); ?> </li> <?php endwhile; ?> <?php wp_reset_query(); ?> </ul><!--/.products--> A: Try this <?php echo $product->get_categories( ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', sizeof( get_the_terms( $post->ID, 'product_cat' ) ), 'woocommerce' ) . ' ', '.</span>' ); ?> A: There is another way: You can assign the "Shop" page as default home page. Now all the products will displayed to the home page. I mean index.php.
wordpress
{ "language": "en", "length": 244, "provenance": "stackexchange_00019.jsonl.gz:424522", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67247" }
[ 0.0061798095703125, 0.00017535686492919922, -0.020233154296875, -0.003574371337890625, 0.015167236328125, -0.027008056640625, 0.0306243896484375, -0.021942138671875, -0.0007009506225585938, 0.01155853271484375, -0.0880126953125, 0.007442474365234375, -0.042877197265625, 0.002742767333984375, 0.0027561187744140625, -0.058837890625, 0.038604736328125, -0.01064300537109375, 0.052490234375, 0.0251922607421875, -0.003025054931640625, 0.05975341796875, 0.02545166015625, 0.01904296875, 0.01413726806640625, -0.0526123046875, 0.1064453125, -0.04656982421875, 0.0291900634765625, -0.04168701171875, 0.01488494873046875, -0.005218505859375, 0.03350830078125, -0.0236968994140625, 0.0258941650390625, 0.050048828125, 0.053741455078125, -0.018402099609375, 0.01093292236328125, 0.0445556640625, 0.052825927734375, -0.0251007080078125, 0.01056671142578125, 0.022308349609375, 0.0007448196411132812, -0.0226898193359375, 0.0309906005859375, -0.0335693359375, 0.01140594482421875, -0.04071044921875, 0.00724029541015625, 0.03875732421875, 0.01812744140625, -0.0308837890625, -0.0204925537109375, 0.01030731201171875, -0.042999267578125, 0.0098419189453125, 0.037841796875, 0.01215362548828125, -0.0238800048828125, -0.0294647216796875, 0.0129852294921875, -0.0350341796875, 0.0049896240234375, 0.005847930908203125, 0.0228424072265625, 0.0227813720703125, -0.01507568359375, -0.0048675537109375, 0.0218353271484375, -0.0012979507446289062, -0.003910064697265625, 0.0066680908203125, -0.0430908203125, -0.023040771484375, 0.01300048828125, -0.0318603515625, 0.0137481689453125, 0.001232147216796875, -0.0140533447265625, -0.0159149169921875, 0.008331298828125, -0.0214996337890625, 0.0108184814453125, 0.00704193115234375, -0.0185699462890625, -0.003757476806640625, -0.03021240234375, -0.06561279296875, -0.0284423828125, -0.01149749755859375, -0.048126220703125, -0.0208892822265625, -0.032257080078125, -0.0330810546875, -0.0052947998046875, 0.02032470703125, -0.0020294189453125, 0.007572174072265625, 0.02130126953125, -0.04248046875, 0.011962890625, -0.032012939453125, 0.01605224609375, 0.03411865234375, 0.00408935546875, 0.01459503173828125, 0.0362548828125, 0.0185699462890625, 0.0075225830078125, 0.040069580078125, -0.0308074951171875, -0.036407470703125, -0.01287078857421875, 0.048828125, -0.051055908203125, 0.00440216064453125, 0.0006322860717773438, 0.01454925537109375, -0.00141143798828125, 0.044525146484375, 0.048553466796875, -0.0325927734375, -0.003200531005859375, 0.0249481201171875, 0.00487518310546875, -0.10595703125, 0.01404571533203125, -0.0169525146484375, -0.04364013671875, 0.0140533447265625, 0.05987548828125, 0.0474853515625, 0.0343017578125, 0.0129241943359375, -0.005718231201171875, 0.0122528076171875, -0.0183258056640625, 0.0034942626953125, 0.003452301025390625, 0.01093292236328125, 0.031341552734375, -0.018524169921875, 0.0380859375, 0.024566650390625, -0.004962921142578125, -0.000598907470703125, 0.032958984375, -0.0113372802734375, 0.01654052734375, -0.0215606689453125, -0.0023441314697265625, 0.0232086181640625, 0.0599365234375, 0.0213470458984375, 0.08349609375, -0.0180511474609375, -0.026275634765625, -0.019439697265625, 0.01255035400390625, -0.015625, 0.014862060546875, -0.03985595703125, -0.047760009765625, 0.01081085205078125, -0.06964111328125, -0.01517486572265625, 0.0184478759765625, 0.0303192138671875, 0.021331787109375, 0.0025691986083984375, 0.0221405029296875, 0.00452423095703125, -0.00696563720703125, -0.002109527587890625, -0.036102294921875, -0.0057220458984375, 0.07489013671875, -0.0175933837890625, -0.0452880859375, -0.035919189453125, 0.06787109375, -0.0149688720703125, -0.034088134765625, 0.0009450912475585938, 0.020843505859375, 0.01116943359375, -0.0035552978515625, 0.01186370849609375, 0.06683349609375, 0.022216796875, -0.056365966796875, 0.03155517578125, -0.013397216796875, -0.0250244140625, 0.0017347335815429688, -0.0081329345703125, -0.0139312744140625, 0.00984954833984375, 0.00325775146484375, 0.0193634033203125, 0.0032176971435546875, 0.00016748905181884766, -0.004344940185546875, 0.0194854736328125, -0.0018863677978515625, 0.040191650390625, -0.0087738037109375, 0.0172271728515625, 0.0182647705078125, -0.0027141571044921875, -0.0224456787109375, -0.04913330078125, -0.0276336669921875, -0.0036220550537109375, -0.03900146484375, 0.0305938720703125, 0.00258636474609375, 0.01580810546875, 0.00799560546875, -0.01499176025390625, 0.0257568359375, 0.0260467529296875, 0.063720703125, 0.0288238525390625, -0.0084381103515625, -0.00542449951171875, 0.050018310546875, 0.053924560546875, -0.07550048828125, -0.0273284912109375, 0.0229644775390625, 0.0191192626953125, -0.0509033203125, -0.005130767822265625, -0.0021877288818359375, -0.0254669189453125, 0.0026760101318359375, 0.049041748046875, 0.01702880859375, 0.0274658203125, -0.030181884765625, -0.0089111328125, 0.0775146484375, -0.00957489013671875, -0.00774383544921875, -0.006591796875, -0.0034732818603515625, 0.0231170654296875, -0.0074920654296875, 0.0251922607421875, 0.0269775390625, 0.004322052001953125, -0.01343536376953125, 0.059539794921875, 0.0035152435302734375, 0.00672149658203125, -0.039642333984375, 0.0301055908203125, -0.0223846435546875, 0.0142364501953125, 0.01763916015625, -0.01303863525390625, 0.04559326171875, 0.01171112060546875, 0.0197906494140625, 0.00623321533203125, -0.044219970703125, 0.02044677734375, 0.01178741455078125, -0.0168609619140625, -0.003917694091796875, 0.004039764404296875, -0.047943115234375, -0.03057861328125, -0.046722412109375, 0.01483154296875, 0.029876708984375, -0.0280914306640625, 0.01245880126953125, 0.041412353515625, 0.0237884521484375, -0.000885009765625, -0.050750732421875, -0.0733642578125, 0.033447265625, 0.06158447265625, -0.01079559326171875, -0.0235443115234375, 0.006587982177734375, 0.040740966796875, -0.040679931640625, 0.05078125, -0.05108642578125, -0.01102447509765625, 0.00836181640625, -0.0474853515625, 0.047698974609375, -0.04681396484375, 0.0227508544921875, 0.050506591796875, -0.026275634765625, 0.0190277099609375, 0.01152801513671875, -0.015777587890625, 0.004364013671875, 0.0138397216796875, -0.01444244384765625, 0.00643157958984375, -0.06646728515625, 0.025543212890625, 0.0193023681640625, 0.08819580078125, 0.004878997802734375, -0.054107666015625, 0.04541015625, 0.05029296875, -0.054351806640625, -0.1058349609375, 0.046630859375, -0.052459716796875, 0.032135009765625, -0.0031566619873046875, -0.0197601318359375, -0.047821044921875, 0.031219482421875, 0.005886077880859375, -0.00681304931640625, -0.001148223876953125, -0.042236328125, -0.059722900390625, -0.06646728515625, -0.02984619140625, -0.0157623291015625, -0.00498199462890625, -0.0006279945373535156, 0.0199737548828125, 0.0114288330078125, -0.0241851806640625, 0.0217132568359375, 0.06121826171875, -0.006008148193359375, -0.00629425048828125, -0.00362396240234375, -0.035430908203125, -0.043212890625, 0.013671875, 0.01323699951171875, -0.0165863037109375, 0.01308441162109375, -0.0036411285400390625, 0.00042557716369628906, 0.0145111083984375, 0.006443023681640625, 0.0211029052734375, 0.01541900634765625, 0.032989501953125, -0.0038661956787109375, -0.030731201171875, -0.0499267578125, -0.0224151611328125, -0.0675048828125, 0.003421783447265625, 0.049774169921875, 0.0142974853515625, -0.0235595703125, 0.00031948089599609375, 0.00449371337890625, 0.0012960433959960938, -0.00787353515625, -0.03961181640625, 0.0294036865234375, 0.01438140869140625, 0.04693603515625, -0.0020160675048828125, 0.00681304931640625, -0.0214691162109375, 0.0355224609375, 0.00890350341796875, 0.0230560302734375, -0.003818511962890625, 0.0201416015625, -0.01404571533203125, -0.028900146484375, 0.034393310546875, 0.004596710205078125, 0.018646240234375, -0.0259857177734375, -0.038909912109375, -0.0031261444091796875, 0.0897216796875, -0.0167388916015625, -0.0285186767578125, -0.038360595703125, -0.0107269287109375, 0.00982666015625, 0.0023822784423828125, -0.0215301513671875, -0.0003521442413330078, -0.08795166015625, -0.004116058349609375, -0.01215362548828125, -0.021881103515625, 0.006214141845703125, 0.0251007080078125, -0.03802490234375, -0.037872314453125, 0.034423828125, -0.018035888671875, 0.01140594482421875, 0.004817962646484375, 0.00634765625, -0.00348663330078125, -0.0192413330078125, -0.0133819580078125, -0.03485107421875, -0.027130126953125, 0.053863525390625, 0.029144287109375, -0.0004837512969970703, -0.03143310546875, -0.0175628662109375, 0.039093017578125, -0.0028362274169921875, 0.0452880859375, 0.007724761962890625, 0.0157012939453125, -0.01064300537109375, -0.0295257568359375, 0.0115966796875, -0.04180908203125, -0.0162811279296875, -0.0299530029296875, -0.0189666748046875, 0.0199432373046875, -0.0177154541015625, 0.0128936767578125, -0.00479888916015625, -0.008697509765625, -0.0721435546875, -0.007297515869140625, 0.034027099609375, 0.0040283203125, -0.0122222900390625, 0.022186279296875, -0.0032558441162109375, -0.0394287109375, 0.03204345703125, 0.006420135498046875, -0.0153045654296875, 0.0191802978515625, 0.056365966796875, 0.005199432373046875, -0.0270233154296875, -0.050567626953125, 0.043365478515625, 0.039764404296875, 0.0102081298828125, 0.043670654296875, -0.0106048583984375, -0.0242767333984375, 0.072998046875, 0.01088714599609375, 0.01074981689453125, 0.0184783935546875, 0.025909423828125, -0.027435302734375, -0.053680419921875, 0.047393798828125, -0.024078369140625, -0.0066680908203125, 0.0408935546875, -0.0172119140625, 0.003925323486328125, -0.014739990234375, 0.019317626953125, -0.00528717041015625, -0.002635955810546875, -0.028594970703125, -0.01033782958984375, -0.00617218017578125, 0.038543701171875, 0.034912109375, 0.056854248046875, -0.016265869140625, 0.021514892578125, 0.0268096923828125, -0.0136260986328125, -0.00701904296875, -0.00916290283203125, 0.014404296875, 0.00396728515625, 0.0159454345703125, -0.0162353515625, -0.0231475830078125, -0.006378173828125, -0.01263427734375, -0.01910400390625, -0.0248260498046875, -0.04974365234375, -0.0160980224609375, 0.041961669921875, 0.018096923828125, -0.00896453857421875, 0.0235748291015625, 0.00009894371032714844, -0.01435089111328125, 0.0034198760986328125, -0.0518798828125, -0.0037899017333984375, -0.0289154052734375, 0.0178680419921875, 0.0015583038330078125, 0.0022869110107421875, -0.0021419525146484375, 0.0770263671875, 0.0036334991455078125, 0.043243408203125, -0.006450653076171875, 0.0557861328125, 0.045318603515625, 0.023345947265625, 0.017303466796875, -0.0198974609375, -0.0283355712890625, 0.003475189208984375, -0.01108551025390625, -0.0333251953125, 0.0122833251953125, -0.006977081298828125, 0.031402587890625, -0.028594970703125, -0.039093017578125, 0.04736328125, -0.038116455078125, -0.025665283203125, 0.020172119140625, -0.005218505859375, -0.0214996337890625, -0.026641845703125, -0.004787445068359375, 0.018768310546875, 0.01303863525390625, 0.005939483642578125, -0.03155517578125, -0.001071929931640625, -0.00788116455078125, -0.0033168792724609375, -0.0261077880859375, 0.0163421630859375, 0.0257720947265625, -0.013427734375, -0.021484375, 0.01464080810546875, -0.031494140625, 0.0089263916015625, -0.0272674560546875, -0.0246429443359375, 0.01030731201171875, 0.0202178955078125, 0.09271240234375, -0.033355712890625, -0.09820556640625, -0.0155181884765625, -0.0105438232421875, 0.06719970703125, 0.041534423828125, -0.048065185546875, 0.0180816650390625, -0.0266571044921875, -0.006031036376953125, 0.007045745849609375, -0.032562255859375, -0.047698974609375, -0.051055908203125, 0.005970001220703125, 0.0203399658203125, -0.006557464599609375, -0.03076171875, -0.032440185546875, -0.0006256103515625, 0.01898193359375, 0.014862060546875, -0.018035888671875, 0.00896453857421875, 0.0157012939453125, 0.036529541015625, -0.0037841796875, -0.034881591796875, -0.0177459716796875, -0.0144500732421875, -0.0112457275390625, -0.0222930908203125, -0.0256500244140625, 0.022064208984375, -0.02386474609375, 0.01177978515625, 0.047088623046875, 0.004497528076171875, -0.00757598876953125, -0.0015516281127929688, -0.0025501251220703125, -0.01383209228515625, 0.0021457672119140625, 0.01309967041015625, -0.039459228515625, 0.042724609375, -0.0406494140625, -0.0292816162109375, 0.002063751220703125, -0.00363922119140625, 0.0210723876953125, -0.033203125, 0.001262664794921875, 0.0283050537109375, -0.0298614501953125, 0.041717529296875, 0.0692138671875, 0.01043701171875, 0.045745849609375, 0.0217742919921875, 0.0281524658203125, 0.02996826171875, 0.0174713134765625, 0.03619384765625, -0.00325775146484375, 0.06231689453125, -0.011383056640625, -0.02606201171875, 0.0238800048828125, -0.03887939453125, -0.00748443603515625, 0.028594970703125, 0.04058837890625, -0.050689697265625, 0.00202178955078125, 0.023590087890625, 0.0018358230590820312, -0.0150146484375, 0.0186767578125, -0.01300048828125, 0.0036525726318359375, -0.0061187744140625, -0.023895263671875, -0.0268096923828125, -0.0041046142578125, 0.005443572998046875, 0.03271484375, 0.01522064208984375, 0.0318603515625, 0.0008740425109863281, -0.10369873046875, -0.03570556640625, 0.0643310546875, -0.036529541015625, -0.05340576171875, -0.028076171875, 0.0145721435546875, -0.00870513916015625, -0.06695556640625, 0.031585693359375, -0.020660400390625, 0.05511474609375, 0.041717529296875, 0.033782958984375, 0.0159912109375, 0.05694580078125, 0.024749755859375, 0.005214691162109375, 0.01715087890625, -0.0260162353515625, 0.0106353759765625, -0.005680084228515625, 0.0006046295166015625, 0.0574951171875, -0.10260009765625, -0.002811431884765625, -0.043548583984375, 0.0736083984375, -0.0148468017578125, 0.01264190673828125, 0.048583984375, -0.011505126953125, -0.03363037109375, 0.015594482421875, 0.062408447265625, 0.0016164779663085938, -0.0179595947265625, 0.035308837890625, -0.048828125, 0.01108551025390625, 0.01184844970703125, 0.0264892578125, -0.0249481201171875, -0.007564544677734375, -0.05059814453125, 0.007568359375, -0.036285400390625, 0.0296173095703125, 0.0130157470703125, -0.00524139404296875, 0.04156494140625, -0.0112152099609375, -0.035064697265625, 0.02880859375, 0.0190887451171875, 0.03271484375, -0.0296478271484375, -0.0034198760986328125, 0.005260467529296875, 0.015899658203125, 0.03021240234375, 0.0038814544677734375, -0.03167724609375, 0.006664276123046875, 0.056182861328125, 0.0411376953125, 0.00443267822265625, 0.029022216796875, -0.00412750244140625, -0.0159454345703125, 0.05224609375, -0.0178375244140625, 0.034423828125, 0.0024700164794921875, 0.01512908935546875, 0.0266571044921875, 0.024627685546875, 0.02001953125, 0.01458740234375, 0.0218353271484375, -0.033721923828125, 0.00598907470703125, 0.0345458984375, -0.02386474609375, 0.0323486328125, 0.040802001953125, 0.0183258056640625, -0.00914764404296875, 0.004974365234375, -0.01407623291015625, 0.044708251953125, -0.015045166015625, 0.039215087890625, 0.019256591796875, 0.003528594970703125, 0.0755615234375, 0.01473236083984375, 0.0180511474609375, 0.02288818359375, -0.00943756103515625, 0.032440185546875, 0.039459228515625, 0.01031494140625, -0.00908660888671875, 0.040283203125, 0.031494140625, 0.03289794921875, -0.055328369140625, -0.053955078125, 0.0103759765625, -0.0005908012390136719, 0.038726806640625, -0.006988525390625, 0.01070404052734375, -0.041717529296875, 0.01580810546875, -0.07110595703125, 0.01508331298828125, 0.0533447265625, 0.03460693359375, 0.0130615234375, -0.007320404052734375, -0.09088134765625, -0.019134521484375, -0.0474853515625, 0.041290283203125, 0.020416259765625, 0.078125, -0.00853729248046875, 0.09161376953125, -0.052215576171875, -0.046051025390625, 0.017120361328125, 0.009521484375, -0.0309600830078125, -0.004886627197265625, -0.0469970703125, -0.0546875, 0.001922607421875, 0.058990478515625, 0.0033817291259765625, -0.00899505615234375, 0.0318603515625, 0.05255126953125, -0.0047760009765625, -0.0247344970703125, 0.0156707763671875, -0.01140594482421875, -0.005558013916015625, -0.005008697509765625, 0.0141448974609375, 0.0023784637451171875, -0.00250244140625, -0.0156707763671875, 0.047027587890625, 0.0021190643310546875, -0.036834716796875, 0.05938720703125, -0.0164337158203125, -0.047607421875, 0.032196044921875, -0.032958984375, 0.12158203125, -0.013763427734375, -0.08612060546875, -0.01424407958984375, -0.00843048095703125, -0.051666259765625, -0.00783538818359375, 0.0203857421875, -0.023956298828125, 0.049957275390625, -0.004009246826171875, -0.0001704692840576172, 0.017608642578125, -0.0182342529296875, 0.018951416015625, -0.0093841552734375, -0.0011157989501953125, 0.0104827880859375, -0.022308349609375, -0.01282501220703125, -0.0097503662109375, 0.0167694091796875, 0.030517578125, 0.0083465576171875, 0.0189208984375, 0.03021240234375, -0.02069091796875, 0.02801513671875, -0.0301971435546875, -0.0306396484375, 0.07623291015625, 0.01180267333984375, -0.01496124267578125, -0.023101806640625, 0.0224609375, 0.0016880035400390625, 0.050567626953125, -0.01047515869140625, -0.02392578125, -0.01216888427734375, 0.04119873046875, -0.0030689239501953125, 0.03179931640625, -0.01129150390625, -0.03179931640625, -0.044921875, -0.0027217864990234375, 0.03961181640625, 0.055633544921875, 0.0008893013000488281, -0.0118865966796875, 0.0170745849609375, -0.01155853271484375, 0.0180816650390625, 0.022491455078125, 0.0226593017578125, 0.031890869140625, 0.00499725341796875, 0.002353668212890625, -0.0003693103790283203, -0.01457977294921875, 0.018463134765625, 0.010223388671875, 0.004039764404296875, 0.00670623779296875, -0.0159149169921875, 0.0198211669921875, 0.052642822265625, 0.0124664306640625, -0.022613525390625, -0.00621795654296875, 0.05853271484375, -0.051971435546875, -0.0084686279296875, -0.01332855224609375, -0.033447265625, -0.039215087890625, 0.007411956787109375, -0.00182342529296875, -0.019287109375, -0.01971435546875, -0.0361328125, -0.023651123046875, 0.00855255126953125, 0.007534027099609375, -0.0179595947265625, 0.003414154052734375, 0.004741668701171875, 0.019195556640625, -0.03204345703125, -0.018218994140625, 0.0012378692626953125, 0.0276641845703125, -0.0270538330078125, -0.0008878707885742188, -0.04901123046875, -0.0308380126953125, -0.04656982421875, -0.006317138671875, 0.010162353515625, -0.034149169921875, -0.048248291015625, -0.0034618377685546875, 0.005596160888671875, 0.0443115234375, 0.057220458984375, -0.03546142578125, 0.0030803680419921875, 0.01529693603515625, -0.011627197265625, -0.040924072265625, 0.0163726806640625, -0.0484619140625, -0.020751953125, 0.0250244140625, -0.019775390625, 0.019134521484375, -0.028594970703125, -0.032989501953125, 0.06353759765625, -0.0027828216552734375, -0.03692626953125, -0.0238037109375, 0.0177001953125, -0.0256500244140625, 0.032318115234375, 0.00946044921875, -0.036102294921875, -0.005584716796875, 0.015960693359375, 0.005462646484375, -0.030303955078125, 0.037841796875, -0.017822265625, -0.0297698974609375, 0.015625, 0.02508544921875, -0.0112457275390625, 0.0139312744140625, -0.0240631103515625, 0.0169525146484375, 0.0226593017578125, -0.03594970703125, -0.008880615234375, -0.0102996826171875, 0.0089111328125, 0.035858154296875, -0.0274810791015625, -0.06982421875, -0.06292724609375, 0.0209808349609375, 0.015472412109375, 0.0181732177734375, 0.033538818359375, 0.001216888427734375, -0.0268096923828125, -0.024261474609375, 0.01192474365234375, 0.016357421875, -0.0428466796875, 0.0089874267578125, 0.01739501953125, -0.0190887451171875, 0.0086517333984375, 0.041961669921875, -0.053131103515625, -0.01198577880859375, -0.0108489990234375, -0.010284423828125, -0.10870361328125, 0.01247406005859375, -0.01161956787109375, -0.0085906982421875, -0.01971435546875, -0.0190887451171875, 0.0016889572143554688, -0.035888671875, -0.042633056640625, -0.025634765625, 0.0008392333984375, -0.01528167724609375, 0.007411956787109375, -0.01331329345703125, 0.044464111328125, -0.01468658447265625, 0.006317138671875, -0.0474853515625, 0.0225982666015625, 0.02484130859375, 0.01326751708984375, -0.024658203125, 0.021636962890625, 0.051544189453125, 0.06683349609375, 0.0271453857421875, 0.050811767578125, 0.0133056640625, 0.048187255859375, -0.001850128173828125, -0.0279998779296875, 0.01322174072265625, -0.07177734375, -0.005748748779296875, -0.018646240234375, -0.0290679931640625, -0.0213623046875, 0.01088714599609375, -0.008941650390625, -0.03997802734375, 0.00921630859375 ]
934672a213ed32b690b419f07e44efe30bee133c
Wordpress Stackexchange Q: Permalink Issues by Installing WordPress in Subdirectory / Subfolder I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php define('WP_SITEURL', 'http://www.sitename.de/cms'); define('WP_HOME', 'http://www.sitename.de'); root 1) .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /cms/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /cms/index.php [L] </IfModule> 2) index.php <?php define('WP_USE_THEMES', true); require('./cms/wp-blog-header.php'); ?> /cms 1) .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 2) index.php <?php define('WP_USE_THEMES', true); require('./wp-blog-header.php'); ?> Thanks for your help Ogni A: What I generally do * *Install WP in sub directory. *Open permalink set required permalink. *Open settings->general link *Remove the sub directory name from 'Site Address (URL)' *Cut the index.php and .htaccess files from sub directory and paste them to root *change code in index.php as you did. *Again access settings->permalink save the form Done. You dont need index.php and .htaccess file in sub directory.
Q: Permalink Issues by Installing WordPress in Subdirectory / Subfolder I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php define('WP_SITEURL', 'http://www.sitename.de/cms'); define('WP_HOME', 'http://www.sitename.de'); root 1) .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /cms/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /cms/index.php [L] </IfModule> 2) index.php <?php define('WP_USE_THEMES', true); require('./cms/wp-blog-header.php'); ?> /cms 1) .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 2) index.php <?php define('WP_USE_THEMES', true); require('./wp-blog-header.php'); ?> Thanks for your help Ogni A: What I generally do * *Install WP in sub directory. *Open permalink set required permalink. *Open settings->general link *Remove the sub directory name from 'Site Address (URL)' *Cut the index.php and .htaccess files from sub directory and paste them to root *change code in index.php as you did. *Again access settings->permalink save the form Done. You dont need index.php and .htaccess file in sub directory. A: I had similar issue and issue was not in code but was in httpd file * *Open the Apache configuration file located at/etc/httpd/conf/httpd.conf (or apache.conf for ubuntu) *Change AllowOverride None to AllowOverride All inside the DocumentRoot Directory Directive, normally A: my solution to this problem, wich always works in my case; create a .htaccess file in the subdirectory and add the code wich is generated when you change the permalinks on the bottom of the page. example of the generated code; <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /kimco/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /kimco/index.php [L] </IfModule> A: Get rid of the .htaccess file under /cms and then visit Settings -> Permalinks to flush your rewrite rules. Also make sure the site URL and home URL are set up in the database correctly (like you have in the wp-config).
wordpress
{ "language": "en", "length": 324, "provenance": "stackexchange_00019.jsonl.gz:424547", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67332" }
[ 0.0189666748046875, 0.00037789344787597656, -0.0006508827209472656, 0.00792694091796875, -0.01006317138671875, -0.0112152099609375, 0.026519775390625, -0.0625, -0.0092620849609375, 0.0093994140625, -0.0308380126953125, 0.01373291015625, 0.01023101806640625, -0.0308380126953125, 0.048492431640625, -0.00455474853515625, 0.0161285400390625, -0.0194854736328125, 0.0228118896484375, -0.0030059814453125, 0.0076751708984375, 0.0188446044921875, 0.020477294921875, 0.0002727508544921875, -0.0025234222412109375, -0.0197296142578125, 0.058837890625, -0.0228118896484375, -0.039337158203125, -0.057281494140625, -0.0094451904296875, 0.053619384765625, 0.0209808349609375, 0.015838623046875, 0.004608154296875, -0.0128936767578125, 0.008270263671875, 0.0091094970703125, 0.009246826171875, 0.0163421630859375, 0.0167236328125, -0.01520538330078125, 0.050537109375, 0.043975830078125, 0.0238800048828125, -0.03509521484375, 0.02490234375, -0.08868408203125, -0.0024929046630859375, -0.01120758056640625, -0.00225067138671875, 0.0604248046875, 0.006927490234375, -0.014129638671875, -0.00873565673828125, -0.004695892333984375, 0.030487060546875, 0.006450653076171875, 0.01593017578125, -0.037567138671875, -0.0345458984375, 0.020751953125, 0.028167724609375, 0.0270233154296875, -0.007366180419921875, -0.0292510986328125, -0.017578125, 0.017822265625, -0.051849365234375, 0.007633209228515625, 0.044921875, -0.0345458984375, -0.0014200210571289062, -0.038482666015625, 0.005184173583984375, -0.0010175704956054688, -0.018096923828125, -0.0278778076171875, 0.018890380859375, -0.002643585205078125, 0.01517486572265625, -0.00341033935546875, -0.0166015625, -0.045013427734375, 0.048583984375, 0.005184173583984375, 0.0086212158203125, -0.0176849365234375, -0.029815673828125, -0.034210205078125, -0.0199432373046875, -0.0274505615234375, -0.0343017578125, 0.007213592529296875, -0.0015649795532226562, -0.0167083740234375, 0.041748046875, 0.056121826171875, 0.0017137527465820312, 0.005741119384765625, 0.036651611328125, -0.050537109375, 0.042999267578125, -0.0545654296875, 0.007534027099609375, 0.03656005859375, 0.00632476806640625, 0.043121337890625, 0.049774169921875, 0.0244293212890625, 0.0027332305908203125, 0.031829833984375, -0.0026111602783203125, -0.02764892578125, -0.034271240234375, 0.024871826171875, -0.019927978515625, -0.023040771484375, 0.0182037353515625, 0.007709503173828125, -0.0049896240234375, 0.033294677734375, -0.03155517578125, 0.0115966796875, -0.01537322998046875, -0.00841522216796875, 0.0204010009765625, -0.04315185546875, 0.033203125, 0.036224365234375, -0.03253173828125, -0.00499725341796875, 0.03167724609375, 0.00870513916015625, 0.0016269683837890625, -0.02838134765625, 0.055389404296875, 0.00542449951171875, 0.01546478271484375, 0.0194091796875, 0.00836944580078125, -0.024017333984375, -0.00994110107421875, 0.00971221923828125, -0.0106048583984375, 0.0222625732421875, 0.0151214599609375, 0.01172637939453125, -0.01340484619140625, -0.05126953125, 0.0037384033203125, -0.056732177734375, 0.041534423828125, 0.01473236083984375, -0.027618408203125, -0.04266357421875, -0.0011835098266601562, -0.04034423828125, 0.01357269287109375, -0.0478515625, 0.013153076171875, -0.01525115966796875, 0.0182342529296875, -0.034454345703125, -0.06634521484375, 0.0197906494140625, -0.05645751953125, -0.01456451416015625, 0.0214996337890625, -0.0227508544921875, 0.01265716552734375, -0.01114654541015625, 0.005420684814453125, 0.00852203369140625, 0.0204010009765625, 0.02001953125, 0.004451751708984375, -0.008392333984375, 0.0007877349853515625, 0.098876953125, 0.063232421875, 0.007259368896484375, 0.002597808837890625, 0.0322265625, -0.06744384765625, 0.04931640625, 0.022918701171875, 0.052337646484375, -0.01438140869140625, 0.01202392578125, 0.087158203125, 0.0343017578125, -0.0242919921875, 0.040802001953125, -0.02093505859375, -0.052093505859375, 0.010650634765625, 0.0024814605712890625, -0.0191802978515625, 0.0082550048828125, -0.0235748291015625, 0.0082244873046875, 0.01959228515625, 0.03192138671875, -0.007541656494140625, 0.045257568359375, -0.020111083984375, 0.0224761962890625, 0.00189208984375, 0.04339599609375, 0.016204833984375, 0.03302001953125, -0.0243682861328125, -0.0650634765625, -0.0248870849609375, 0.032196044921875, -0.033782958984375, 0.041259765625, -0.0120849609375, 0.06005859375, 0.0013132095336914062, -0.05792236328125, 0.01375579833984375, -0.0180511474609375, 0.017547607421875, -0.0237274169921875, -0.01739501953125, -0.02099609375, -0.02215576171875, 0.01091766357421875, -0.055755615234375, 0.0311431884765625, 0.00853729248046875, 0.0163421630859375, -0.0377197265625, -0.0010728836059570312, -0.0102386474609375, -0.024627685546875, -0.0032863616943359375, 0.0396728515625, 0.0213470458984375, 0.0210418701171875, -0.01186370849609375, -0.007720947265625, 0.0335693359375, -0.0323486328125, 0.001953125, -0.022979736328125, -0.0226898193359375, -0.0037975311279296875, 0.01116180419921875, 0.0247955322265625, 0.01861572265625, -0.031951904296875, 0.0079345703125, 0.0291748046875, -0.036773681640625, -0.00691986083984375, -0.0156402587890625, 0.002986907958984375, 0.02484130859375, -0.004734039306640625, -0.0202178955078125, -0.00736236572265625, 0.032257080078125, 0.018585205078125, 0.01500701904296875, 0.0208587646484375, -0.0274505615234375, 0.0224151611328125, 0.0024280548095703125, -0.031280517578125, -0.012115478515625, 0.0174713134765625, 0.060028076171875, -0.001438140869140625, -0.03662109375, -0.00897979736328125, 0.019744873046875, 0.017608642578125, 0.005397796630859375, 0.039031982421875, 0.018402099609375, 0.001781463623046875, -0.0175628662109375, -0.063232421875, 0.01514434814453125, 0.038177490234375, 0.031036376953125, 0.01300811767578125, 0.034698486328125, -0.00934600830078125, -0.0308990478515625, 0.0258636474609375, 0.015716552734375, -0.0301666259765625, 0.007640838623046875, -0.0389404296875, 0.048828125, -0.039459228515625, 0.01514434814453125, 0.048675537109375, -0.018310546875, 0.0169677734375, 0.01071929931640625, -0.029632568359375, 0.0236663818359375, 0.0118865966796875, -0.01092529296875, -0.0172882080078125, -0.052154541015625, -0.00882720947265625, 0.01953125, 0.02691650390625, -0.0029659271240234375, -0.0201873779296875, -0.00971221923828125, 0.036346435546875, -0.046783447265625, -0.07037353515625, -0.050048828125, -0.038665771484375, 0.0221710205078125, 0.01358795166015625, -0.00865936279296875, -0.0108795166015625, 0.025848388671875, 0.0177459716796875, 0.00853729248046875, -0.0467529296875, -0.051513671875, -0.079345703125, -0.07220458984375, -0.052093505859375, 0.005466461181640625, -0.01042938232421875, -0.0095672607421875, 0.0004210472106933594, -0.004993438720703125, -0.017852783203125, 0.0092315673828125, 0.028594970703125, 0.00502777099609375, -0.0369873046875, -0.01377105712890625, -0.00812530517578125, 0.005329132080078125, -0.001018524169921875, 0.04534912109375, 0.02850341796875, -0.0251922607421875, -0.00505828857421875, -0.00264739990234375, -0.0341796875, -0.0116119384765625, 0.0025119781494140625, 0.019500732421875, -0.07147216796875, -0.0173492431640625, -0.09564208984375, -0.0577392578125, -0.016937255859375, -0.0771484375, -0.00537109375, 0.0706787109375, 0.0027866363525390625, -0.0144195556640625, -0.007045745849609375, 0.023529052734375, 0.0250396728515625, 0.01232147216796875, -0.0318603515625, 0.0438232421875, 0.005504608154296875, 0.031890869140625, -0.0416259765625, 0.054473876953125, -0.0099029541015625, 0.0014390945434570312, 0.0275421142578125, -0.035064697265625, -0.03875732421875, -0.00298309326171875, -0.052398681640625, -0.01284027099609375, 0.044525146484375, -0.05865478515625, -0.0101470947265625, -0.043792724609375, -0.00861358642578125, -0.0307769775390625, 0.043243408203125, -0.0008678436279296875, -0.027099609375, -0.0125274658203125, 0.0016155242919921875, -0.009246826171875, -0.025054931640625, 0.00848388671875, 0.0009393692016601562, -0.07275390625, -0.024139404296875, -0.04669189453125, -0.0231475830078125, 0.03631591796875, -0.0362548828125, 0.0021457672119140625, -0.06817626953125, 0.02923583984375, -0.006381988525390625, -0.01435089111328125, 0.025909423828125, -0.0189666748046875, 0.0059814453125, -0.025482177734375, -0.020782470703125, -0.08587646484375, -0.034759521484375, 0.0183563232421875, 0.059814453125, -0.004993438720703125, -0.0179595947265625, -0.0146484375, 0.06011962890625, -0.003932952880859375, 0.025543212890625, 0.00823211669921875, 0.0034999847412109375, -0.0111846923828125, 0.00885772705078125, 0.0227203369140625, -0.01221466064453125, 0.038116455078125, 0.02044677734375, -0.022216796875, 0.0192108154296875, -0.04669189453125, 0.0198974609375, 0.00586700439453125, -0.04803466796875, -0.04083251953125, -0.00835418701171875, -0.037353515625, -0.0031585693359375, -0.00826263427734375, -0.0251922607421875, -0.002941131591796875, -0.05242919921875, 0.050689697265625, -0.019866943359375, 0.01544952392578125, -0.01323699951171875, 0.07000732421875, 0.0114288330078125, -0.02935791015625, 0.02392578125, 0.038116455078125, 0.039306640625, -0.021881103515625, 0.058868408203125, 0.018310546875, -0.00447845458984375, 0.055572509765625, -0.01012420654296875, -0.01512908935546875, 0.01145172119140625, 0.01004791259765625, 0.00283050537109375, -0.03814697265625, 0.0164031982421875, 0.0003154277801513672, 0.0230712890625, 0.0142364501953125, -0.010467529296875, -0.0020580291748046875, -0.0281524658203125, 0.0200042724609375, -0.01328277587890625, 0.024932861328125, -0.0178985595703125, -0.036285400390625, 0.016143798828125, -0.0228729248046875, 0.048065185546875, -0.00765228271484375, 0.00768280029296875, 0.032379150390625, 0.0352783203125, -0.00981903076171875, 0.021453857421875, 0.03759765625, 0.031524658203125, 0.01708984375, 0.0406494140625, -0.006679534912109375, -0.022216796875, -0.006702423095703125, 0.072509765625, 0.0262451171875, -0.0139923095703125, -0.00566864013671875, 0.004276275634765625, -0.005626678466796875, -0.0058746337890625, -0.00007522106170654297, 0.033843994140625, 0.0099029541015625, -0.011871337890625, -0.01505279541015625, 0.005771636962890625, -0.0297393798828125, -0.0303497314453125, 0.032989501953125, 0.009307861328125, -0.0021648406982421875, 0.01776123046875, 0.061248779296875, 0.01165771484375, 0.0308990478515625, -0.007328033447265625, 0.005496978759765625, 0.02178955078125, 0.0240020751953125, 0.00917816162109375, -0.02337646484375, 0.0225067138671875, -0.013458251953125, 0.036895751953125, -0.06451416015625, -0.0254669189453125, 0.027862548828125, 0.0924072265625, -0.01947021484375, -0.04376220703125, 0.01654052734375, -0.02593994140625, -0.01239776611328125, -0.0010251998901367188, -0.0484619140625, -0.043548583984375, -0.024017333984375, -0.00151824951171875, 0.027557373046875, -0.0191802978515625, -0.0263519287109375, 0.0281219482421875, -0.0238800048828125, 0.01514434814453125, 0.028564453125, -0.017913818359375, -0.0030269622802734375, -0.009490966796875, 0.045379638671875, 0.0152130126953125, -0.004673004150390625, -0.034881591796875, -0.03399658203125, -0.026275634765625, -0.01000213623046875, 0.054779052734375, 0.0081939697265625, 0.039794921875, -0.015411376953125, -0.029693603515625, 0.039703369140625, -0.008819580078125, 0.03643798828125, 0.0018596649169921875, -0.071533203125, 0.019012451171875, -0.0206451416015625, 0.0181884765625, 0.0010156631469726562, -0.0279541015625, -0.0374755859375, -0.0284423828125, 0.0028705596923828125, -0.006511688232421875, 0.0034809112548828125, -0.01092529296875, 0.00829315185546875, 0.033111572265625, 0.0025272369384765625, 0.008941650390625, -0.048431396484375, 0.07958984375, 0.0212249755859375, 0.005741119384765625, -0.0004248619079589844, 0.0516357421875, 0.028717041015625, -0.013824462890625, 0.0165252685546875, -0.0155792236328125, -0.03912353515625, -0.01110076904296875, -0.0059814453125, 0.02667236328125, 0.07098388671875, -0.006298065185546875, 0.004638671875, -0.006488800048828125, -0.003093719482421875, -0.037445068359375, -0.0012273788452148438, -0.042144775390625, 0.0029010772705078125, -0.039459228515625, 0.012847900390625, 0.05804443359375, -0.036102294921875, -0.0007548332214355469, -0.0212249755859375, -0.0167999267578125, -0.01511383056640625, 0.030914306640625, -0.04315185546875, 0.043212890625, 0.130615234375, 0.035491943359375, 0.0841064453125, 0.0294952392578125, 0.025787353515625, 0.0341796875, 0.040069580078125, 0.01338958740234375, 0.0085601806640625, 0.048004150390625, 0.01474761962890625, -0.003215789794921875, 0.032257080078125, -0.0175323486328125, -0.007472991943359375, 0.0870361328125, 0.06707763671875, -0.0965576171875, -0.007335662841796875, 0.00978851318359375, 0.00396728515625, 0.029571533203125, -0.00843048095703125, 0.002178192138671875, -0.019989013671875, 0.0081024169921875, 0.0103912353515625, -0.02587890625, -0.02197265625, 0.01078033447265625, -0.0165557861328125, 0.01012420654296875, 0.060516357421875, 0.01483154296875, -0.005199432373046875, -0.0119476318359375, 0.01081085205078125, 0.01727294921875, 0.0095062255859375, 0.00960540771484375, -0.007740020751953125, -0.028350830078125, -0.0119781494140625, 0.014984130859375, -0.030731201171875, -0.0078125, 0.013885498046875, -0.007244110107421875, -0.025299072265625, 0.01108551025390625, -0.0290679931640625, 0.0011777877807617188, -0.0029392242431640625, -0.0305328369140625, 0.0205078125, -0.004627227783203125, -0.0016260147094726562, -0.0261383056640625, -0.01308441162109375, -0.005863189697265625, -0.023468017578125, -0.015960693359375, -0.00676727294921875, -0.0212249755859375, 0.0653076171875, -0.060791015625, -0.003997802734375, 0.024444580078125, 0.035125732421875, -0.001636505126953125, -0.01059722900390625, 0.01151275634765625, -0.04876708984375, -0.0262451171875, 0.00627899169921875, -0.0018367767333984375, -0.0116729736328125, -0.0255126953125, -0.0416259765625, 0.086669921875, -0.0283660888671875, 0.0201568603515625, 0.0438232421875, 0.0286102294921875, -0.0247955322265625, 0.016876220703125, -0.0288238525390625, 0.046905517578125, 0.005268096923828125, 0.0231170654296875, -0.036529541015625, 0.00283050537109375, 0.00954437255859375, 0.0213165283203125, 0.09075927734375, 0.03411865234375, -0.07965087890625, -0.018035888671875, 0.0377197265625, 0.058380126953125, 0.01461029052734375, 0.043731689453125, -0.03741455078125, 0.02374267578125, -0.0068817138671875, -0.0440673828125, 0.0186004638671875, -0.0261383056640625, -0.07708740234375, -0.016693115234375, 0.0007228851318359375, -0.007476806640625, -0.0010900497436523438, -0.0156402587890625, -0.033782958984375, 0.0033016204833984375, 0.032684326171875, -0.0088958740234375, 0.00489044189453125, 0.01081085205078125, 0.019927978515625, -0.017852783203125, -0.010101318359375, -0.01678466796875, 0.04132080078125, 0.018096923828125, 0.0119781494140625, -0.0160369873046875, 0.00865936279296875, 0.05584716796875, -0.00485992431640625, -0.01473236083984375, 0.0587158203125, -0.006671905517578125, 0.025146484375, 0.06494140625, 0.03912353515625, 0.01519775390625, -0.01044464111328125, 0.04156494140625, 0.0439453125, -0.0308837890625, -0.0406494140625, 0.0005407333374023438, -0.0067291259765625, 0.017547607421875, -0.01076507568359375, 0.0215606689453125, 0.00876617431640625, 0.01025390625, -0.0032253265380859375, -0.005523681640625, 0.01100921630859375, -0.00478363037109375, -0.005260467529296875, -0.0222625732421875, 0.022979736328125, 0.0501708984375, -0.0056915283203125, 0.007137298583984375, 0.00788116455078125, 0.031402587890625, -0.0012378692626953125, 0.0565185546875, -0.04083251953125, -0.0103607177734375, 0.022979736328125, 0.0172119140625, -0.00882720947265625, -0.019073486328125, -0.062255859375, -0.09576416015625, 0.045623779296875, 0.051361083984375, 0.0014047622680664062, 0.01824951171875, -0.0036411285400390625, -0.005893707275390625, 0.0121307373046875, -0.007293701171875, 0.034271240234375, -0.0216827392578125, 0.032958984375, -0.0019216537475585938, 0.00936126708984375, -0.01184844970703125, -0.023193359375, -0.049560546875, 0.047149658203125, 0.00470733642578125, -0.00554656982421875, 0.01143646240234375, -0.0028743743896484375, -0.011688232421875, 0.015594482421875, 0.003543853759765625, 0.03662109375, 0.018829345703125, 0.000797271728515625, 0.0069427490234375, 0.0024890899658203125, -0.058441162109375, 0.01120758056640625, 0.039306640625, -0.004550933837890625, 0.0004763603210449219, -0.0136566162109375, 0.011688232421875, -0.00499725341796875, -0.01111602783203125, 0.01226043701171875, 0.0021572113037109375, 0.0218658447265625, 0.01490020751953125, -0.0374755859375, -0.038665771484375, -0.0266265869140625, 0.05731201171875, -0.0006146430969238281, 0.1380615234375, -0.07830810546875, 0.017120361328125, -0.038421630859375, -0.0138702392578125, -0.004192352294921875, -0.01302337646484375, -0.00527191162109375, 0.0072021484375, -0.006183624267578125, 0.0044708251953125, -0.03167724609375, 0.035919189453125, 0.005706787109375, -0.041259765625, 0.03076171875, -0.0291595458984375, 0.01360321044921875, -0.0192108154296875, 0.0040283203125, -0.04241943359375, -0.0986328125, -0.0711669921875, 0.036895751953125, -0.0175323486328125, 0.0151824951171875, -0.023681640625, 0.0233001708984375, 0.01068878173828125, -0.01081085205078125, 0.0141448974609375, -0.00550079345703125, 0.038360595703125, 0.030517578125, -0.01263427734375, -0.043487548828125, -0.00630950927734375, -0.004245758056640625, -0.006877899169921875, 0.01265716552734375, 0.0335693359375, -0.01397705078125, -0.048187255859375, -0.00409698486328125, 0.0086822509765625, 0.034423828125, 0.0125732421875, -0.00469207763671875, -0.00281524658203125, -0.0207061767578125, -0.01010894775390625, -0.043701171875, -0.01143646240234375, -0.0033359527587890625, -0.0219879150390625, 0.037567138671875, -0.0248870849609375, -0.02239990234375, -0.0767822265625, 0.0299072265625, 0.030059814453125, -0.005298614501953125, -0.053375244140625, 0.0305633544921875, -0.03863525390625, 0.0853271484375, -0.04266357421875, -0.0159149169921875, -0.016021728515625, 0.0184173583984375, -0.01678466796875, -0.0047149658203125, -0.0504150390625, -0.00042319297790527344, -0.03656005859375, 0.012939453125, 0.046875, -0.0185089111328125, -0.00611114501953125, -0.0198974609375, -0.0027313232421875, 0.0305328369140625, -0.0384521484375, -0.008270263671875, 0.0132293701171875, 0.0009570121765136719, -0.033477783203125, -0.08148193359375, -0.006862640380859375, -0.07415771484375, 0.0133209228515625, -0.0241241455078125, -0.00476837158203125, 0.0096893310546875, -0.041046142578125, -0.06146240234375, 0.03680419921875, -0.002788543701171875, -0.0218353271484375, -0.044647216796875, -0.04705810546875, -0.024383544921875, 0.062347412109375, -0.006500244140625, -0.034820556640625, -0.048248291015625, 0.05810546875, 0.02056884765625, 0.031158447265625, 0.0012683868408203125, 0.048248291015625, 0.01520538330078125, 0.053253173828125, 0.026611328125, -0.0129547119140625, 0.02215576171875, -0.003536224365234375, 0.044219970703125, 0.0643310546875, -0.0025310516357421875, 0.0279693603515625, -0.004638671875, -0.07611083984375, 0.007312774658203125, -0.06793212890625, -0.0200958251953125, -0.03143310546875, 0.070556640625, -0.043548583984375, 0.01788330078125, -0.0004930496215820312, -0.0191192626953125, -0.043121337890625, -0.0246124267578125, -0.025909423828125, 0.0263214111328125, -0.06951904296875, -0.0016717910766601562, 0.0002777576446533203, -0.002941131591796875, -0.0255584716796875, -0.01483154296875, -0.037841796875, -0.00963592529296875, -0.0246734619140625, -0.0255584716796875, 0.0165557861328125, -0.0176544189453125, 0.06280517578125, -0.0374755859375, -0.0014581680297851562, 0.00119781494140625, 0.0271148681640625, 0.0188751220703125, -0.0232086181640625, 0.0258941650390625, 0.01023101806640625, -0.013763427734375, -0.00135040283203125, 0.027862548828125, 0.0426025390625, -0.0171051025390625, -0.0457763671875, 0.00921630859375, -0.0005793571472167969, -0.00634765625, -0.0123138427734375, -0.00830078125, 0.02252197265625, -0.0280303955078125, 0.08349609375, 0.0014057159423828125, 0.01947021484375, -0.00518798828125, 0.060150146484375, -0.014007568359375, -0.00846099853515625, 0.004619598388671875, -0.031219482421875, -0.022369384765625, 0.0053863525390625, -0.03875732421875, -0.05596923828125, 0.01593017578125, 0.004241943359375, 0.00013935565948486328, 0.0203704833984375 ]
5c5bcdab598b42ecdfd82c6c3b236a87f07673f2
Wordpress Stackexchange Q: How to log out without confirmation 'Do you really want to log out?"? Right now when I log out via: <a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a> it redirects me to the page where I need to confirm the log out. How to eliminate the confirmation and redirect to the homepage after logout? A: This happens because you are missing the neccessary nonce in the URL, which is being checked in wp-login.php case 'logout' : check_admin_referer('log-out'); ... Use wp_logout_url in order to retreive the URL including the nonce. If you want to redirect to a custom URL, simply pass it as an argument. <a href="<?php echo wp_logout_url('/redirect/url/goes/here') ?>">Log out</a> You could also use wp_loginout which generates the link for you including translation: echo wp_loginout('/redirect/url/goes/here')
Q: How to log out without confirmation 'Do you really want to log out?"? Right now when I log out via: <a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a> it redirects me to the page where I need to confirm the log out. How to eliminate the confirmation and redirect to the homepage after logout? A: This happens because you are missing the neccessary nonce in the URL, which is being checked in wp-login.php case 'logout' : check_admin_referer('log-out'); ... Use wp_logout_url in order to retreive the URL including the nonce. If you want to redirect to a custom URL, simply pass it as an argument. <a href="<?php echo wp_logout_url('/redirect/url/goes/here') ?>">Log out</a> You could also use wp_loginout which generates the link for you including translation: echo wp_loginout('/redirect/url/goes/here') A: If you're using roots/sage wordpress starter theme, or any other theme using Laravel's Blade templating engine, make sure not to escape the url: // don't do <a href="{{ wp_logout_url(get_permalink()) }}">log out</a> // but instead <a href="{!! wp_logout_url(get_permalink()) !!}">log out</a> First example escapes all html characters, while the latter does not. A: If you can't use wp_logout_url() function, You can turn off this validation using this code: add_action('check_admin_referer', 'logout_without_confirm', 10, 2); function logout_without_confirm($action, $result) { /** * Allow logout without confirmation */ if ($action == "log-out" && !isset($_GET['_wpnonce'])) { $redirect_to = isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : 'url-you-want-to-redirect'; $location = str_replace('&amp;', '&', wp_logout_url($redirect_to)); header("Location: $location"); die; } } Replace 'url-you-want-to-redirect' with the URL you want to redirect after logout. Add it in your functions.php A: This worked for me by adding /?customer-logout=true at the end. http://www.website.com/?customer-logout=true A: If you create a custom link in your menu, set the label to “Logout”, and set the URL to http://yourdomain.com/wp-login.php?action=logout. Then add this function to your functions.php file: function change_menu($items){ foreach($items as $item){ if( $item->title == "Logout"){ $item->url = $item->url . "&_wpnonce=" . wp_create_nonce( 'log-out' ); } } return $items; } add_filter('wp_nav_menu_objects', 'change_menu'); If you want to redirect to the login page after logout then you should append login URL as: $item->url = $item->url . "&_wpnonce=" . wp_create_nonce( 'log-out' ).'&redirect_to='.wp_login_url(); Reference link ** tried that did not work. Really want to log out page then 4 something went wrong when clicking the button. A: To bypass logout confirmation prompt define _wpnonce for log-out action in the URL like this: $log_out_url = add_query_arg('_wpnonce', wp_create_nonce('log-out'), wp_logout_url()); wp_safe_redirect($log_out_url); exit;
wordpress
{ "language": "en", "length": 384, "provenance": "stackexchange_00019.jsonl.gz:424549", "question_score": "27", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67336" }
[ 0.0819091796875, 0.0184173583984375, 0.0194091796875, -0.0241241455078125, 0.036346435546875, -0.03668212890625, 0.07122802734375, -0.03350830078125, 0.006122589111328125, 0.022918701171875, 0.0196533203125, -0.02288818359375, -0.0036106109619140625, -0.053131103515625, 0.01324462890625, -0.0165863037109375, 0.03350830078125, -0.010711669921875, 0.028106689453125, 0.0007343292236328125, 0.0175018310546875, 0.02044677734375, 0.00888824462890625, 0.0230560302734375, 0.00016057491302490234, -0.0052337646484375, 0.09124755859375, -0.042572021484375, 0.02972412109375, -0.0188446044921875, 0.029205322265625, -0.03717041015625, 0.007049560546875, 0.0645751953125, -0.042144775390625, -0.002025604248046875, -0.0081939697265625, 0.03485107421875, 0.0224151611328125, 0.030364990234375, 0.003326416015625, -0.01200103759765625, 0.006526947021484375, 0.016265869140625, -0.0276641845703125, 0.002719879150390625, -0.0263214111328125, -0.020477294921875, 0.02911376953125, 0.01087188720703125, 0.01474761962890625, 0.01132965087890625, 0.022857666015625, -0.01178741455078125, -0.03289794921875, -0.01224517822265625, -0.002857208251953125, -0.01678466796875, 0.0204925537109375, 0.00959014892578125, -0.00609588623046875, -0.003185272216796875, 0.01375579833984375, -0.0201568603515625, -0.0240478515625, 0.02166748046875, -0.0328369140625, -0.003246307373046875, -0.0196380615234375, -0.037506103515625, -0.00049591064453125, -0.0252685546875, -0.021697998046875, -0.00506591796875, -0.0096588134765625, 0.02044677734375, 0.0030879974365234375, 0.0012359619140625, 0.0067138671875, 0.0399169921875, 0.00914764404296875, -0.00528717041015625, -0.0202178955078125, -0.0014047622680664062, -0.00852203369140625, 0.004550933837890625, -0.0163726806640625, -0.019805908203125, -0.0007486343383789062, -0.034515380859375, -0.025054931640625, -0.0168914794921875, -0.01448822021484375, -0.006595611572265625, -0.031707763671875, -0.0095672607421875, -0.01061248779296875, 0.0079193115234375, -0.0113067626953125, -0.02069091796875, -0.033447265625, -0.0029468536376953125, -0.03997802734375, -0.00656890869140625, -0.0024318695068359375, 0.06365966796875, 0.026611328125, 0.01873779296875, 0.0011854171752929688, -0.01517486572265625, 0.0209808349609375, -0.0231475830078125, -0.05072021484375, -0.04443359375, 0.0090484619140625, 0.07330322265625, -0.0196685791015625, -0.0008764266967773438, -0.0133056640625, 0.02886962890625, -0.04437255859375, -0.0242462158203125, 0.0190277099609375, 0.0216522216796875, 0.001140594482421875, -0.015411376953125, 0.0029964447021484375, -0.008270263671875, -0.02569580078125, 0.036163330078125, -0.0307464599609375, 0.04254150390625, 0.056610107421875, -0.03790283203125, -0.032928466796875, -0.033905029296875, 0.0516357421875, 0.019317626953125, 0.0017251968383789062, 0.01416015625, 0.0095367431640625, -0.045196533203125, -0.0243072509765625, 0.003810882568359375, 0.022369384765625, 0.0269622802734375, 0.0206298828125, 0.01812744140625, -0.00994110107421875, -0.035247802734375, 0.01480865478515625, -0.005580902099609375, 0.01959228515625, -0.00746917724609375, 0.004405975341796875, -0.043182373046875, 0.01546478271484375, -0.024932861328125, 0.02178955078125, -0.0226593017578125, 0.0007467269897460938, 0.0011272430419921875, -0.0077056884765625, -0.018341064453125, -0.044189453125, -0.00795745849609375, -0.00616455078125, -0.01262664794921875, 0.026947021484375, -0.01222991943359375, 0.06512451171875, -0.06536865234375, -0.0199737548828125, 0.006866455078125, 0.00667572021484375, 0.032928466796875, -0.006748199462890625, 0.0416259765625, 0.0083465576171875, 0.0382080078125, 0.04302978515625, -0.0078582763671875, 0.053375244140625, 0.0133056640625, -0.037200927734375, 0.02935791015625, 0.0002734661102294922, 0.052825927734375, 0.004207611083984375, 0.0196533203125, 0.002231597900390625, 0.0179443359375, -0.043304443359375, 0.048126220703125, -0.0252532958984375, -0.0257110595703125, 0.0080718994140625, 0.005558013916015625, -0.0170745849609375, 0.0013666152954101562, 0.055999755859375, 0.024749755859375, -0.0274200439453125, -0.0205535888671875, -0.08514404296875, 0.0183563232421875, -0.0216522216796875, 0.03729248046875, 0.001556396484375, 0.042022705078125, 0.017852783203125, 0.04119873046875, -0.021148681640625, -0.06597900390625, -0.02960205078125, -0.0002892017364501953, -0.0265045166015625, 0.043304443359375, 0.0015716552734375, 0.0308837890625, 0.0189208984375, -0.035675048828125, 0.0197906494140625, -0.00411224365234375, 0.039459228515625, -0.054931640625, 0.010986328125, -0.046112060546875, 0.005535125732421875, -0.017425537109375, -0.042205810546875, 0.041351318359375, 0.005664825439453125, -0.032196044921875, -0.043792724609375, 0.0104827880859375, 0.00563812255859375, -0.042266845703125, -0.0115509033203125, 0.031890869140625, 0.032318115234375, 0.015655517578125, -0.032257080078125, 0.01537322998046875, -0.0060577392578125, -0.07037353515625, -0.00388336181640625, 0.01422119140625, 0.0252532958984375, 0.01494598388671875, -0.043487548828125, -0.0186309814453125, 0.06329345703125, 0.0014514923095703125, -0.00482940673828125, 0.048004150390625, -0.006931304931640625, -0.04266357421875, -0.0089569091796875, 0.007129669189453125, 0.0161590576171875, -0.0109405517578125, -0.04376220703125, 0.0230865478515625, -0.02874755859375, -0.032806396484375, -0.0447998046875, -0.039459228515625, -0.023834228515625, -0.00977325439453125, 0.041107177734375, -0.01476287841796875, 0.00261688232421875, 0.0335693359375, 0.0496826171875, -0.06683349609375, -0.0013723373413085938, -0.01776123046875, -0.007213592529296875, -0.0175933837890625, -0.0147552490234375, 0.0230712890625, -0.004741668701171875, -0.0258026123046875, 0.020111083984375, -0.0084686279296875, -0.008575439453125, -0.03369140625, 0.01849365234375, 0.0263671875, 0.05792236328125, -0.0005750656127929688, -0.018157958984375, 0.020721435546875, 0.0217437744140625, -0.038665771484375, -0.00661468505859375, -0.0477294921875, 0.0212554931640625, -0.005706787109375, 0.046142578125, 0.08697509765625, 0.01654052734375, 0.02886962890625, 0.0177764892578125, -0.00852203369140625, 0.031829833984375, -0.006954193115234375, -0.0110321044921875, -0.00295257568359375, -0.042327880859375, 0.0171661376953125, 0.0291595458984375, 0.02972412109375, -0.01027679443359375, -0.04473876953125, -0.00380706787109375, 0.01175689697265625, -0.057373046875, -0.032440185546875, -0.0274200439453125, -0.0635986328125, 0.03228759765625, 0.007404327392578125, -0.020538330078125, -0.014190673828125, 0.042938232421875, 0.03204345703125, -0.003108978271484375, -0.01174163818359375, -0.006168365478515625, -0.045166015625, -0.054595947265625, -0.0038661956787109375, 0.0110015869140625, 0.01309967041015625, -0.0020771026611328125, 0.0008602142333984375, -0.01142120361328125, -0.0215606689453125, -0.0111846923828125, 0.030792236328125, 0.0159912109375, -0.039306640625, -0.06494140625, 0.01544189453125, 0.0272979736328125, -0.0106658935546875, 0.0157623291015625, -0.001552581787109375, 0.0176849365234375, 0.002002716064453125, -0.009521484375, -0.045989990234375, 0.00916290283203125, -0.0386962890625, -0.01285552978515625, -0.02386474609375, -0.01166534423828125, -0.051483154296875, 0.006793975830078125, 0.0003743171691894531, -0.03338623046875, 0.0038204193115234375, 0.0474853515625, -0.0302886962890625, 0.01300811767578125, -0.046295166015625, 0.006404876708984375, 0.0126190185546875, 0.00569915771484375, 0.0203857421875, -0.031036376953125, -0.02166748046875, -0.0174407958984375, -0.007785797119140625, 0.038787841796875, -0.01399993896484375, 0.01323699951171875, 0.00589752197265625, 0.01029205322265625, -0.002986907958984375, -0.0299530029296875, -0.04254150390625, -0.0511474609375, 0.0394287109375, -0.035614013671875, -0.0096893310546875, -0.0167388916015625, -0.0078887939453125, 0.00939178466796875, 0.08062744140625, -0.033538818359375, -0.0186309814453125, 0.01532745361328125, 0.0267181396484375, -0.00811767578125, -0.02716064453125, -0.0162811279296875, -0.037078857421875, -0.09051513671875, 0.0244903564453125, -0.0006704330444335938, -0.02423095703125, 0.01113128662109375, -0.046142578125, -0.011810302734375, -0.047882080078125, 0.0150909423828125, 0.024139404296875, 0.042144775390625, 0.006134033203125, 0.01239776611328125, 0.016632080078125, 0.00492095947265625, -0.0419921875, -0.042205810546875, 0.003116607666015625, -0.01282501220703125, 0.00396728515625, 0.0167083740234375, -0.022552490234375, -0.0087127685546875, 0.031494140625, -0.0005507469177246094, 0.01151275634765625, 0.007236480712890625, -0.01153564453125, 0.0206298828125, 0.0227813720703125, -0.01233673095703125, -0.005706787109375, 0.01120758056640625, -0.01061248779296875, -0.033050537109375, -0.0164642333984375, -0.037689208984375, -0.02099609375, 0.0120086669921875, -0.04052734375, -0.052459716796875, -0.03076171875, -0.00658416748046875, 0.0018796920776367188, 0.015777587890625, -0.022918701171875, -0.0157928466796875, -0.04156494140625, -0.0024852752685546875, 0.0092620849609375, -0.01300048828125, 0.01617431640625, 0.044647216796875, 0.0278167724609375, -0.01434326171875, 0.0047454833984375, -0.004001617431640625, -0.004596710205078125, 0.0005121231079101562, 0.059722900390625, -0.006809234619140625, 0.0169677734375, 0.06402587890625, -0.043670654296875, 0.0160675048828125, -0.035614013671875, 0.046417236328125, -0.0300140380859375, -0.04949951171875, 0.05670166015625, -0.05670166015625, -0.01016998291015625, 0.0419921875, 0.029022216796875, -0.0230865478515625, 0.0506591796875, 0.0041046142578125, -0.0216064453125, -0.0204010009765625, 0.01236724853515625, -0.039703369140625, 0.0103759765625, 0.030792236328125, 0.004154205322265625, 0.052001953125, -0.0227203369140625, 0.01168060302734375, 0.00591278076171875, -0.00323486328125, -0.0088043212890625, -0.02008056640625, -0.0224151611328125, 0.0233306884765625, -0.047393798828125, -0.0303955078125, 0.01727294921875, -0.0128173828125, 0.0728759765625, 0.01505279541015625, -0.02520751953125, 0.0016107559204101562, -0.024322509765625, 0.01056671142578125, 0.01488494873046875, 0.0106048583984375, 0.058380126953125, -0.01453399658203125, -0.0258636474609375, -0.002895355224609375, -0.007965087890625, -0.04681396484375, -0.06207275390625, 0.021148681640625, -0.043182373046875, 0.0157470703125, 0.025054931640625, 0.06634521484375, -0.0191497802734375, 0.06365966796875, -0.0266571044921875, -0.001972198486328125, 0.02069091796875, 0.0159759521484375, 0.01611328125, 0.0149383544921875, -0.01299285888671875, 0.0115966796875, 0.0184173583984375, -0.0404052734375, -0.039703369140625, 0.050323486328125, 0.06396484375, -0.0208282470703125, -0.00809478759765625, -0.00759124755859375, -0.00409698486328125, 0.00539398193359375, 0.048583984375, 0.014984130859375, -0.08477783203125, -0.01139068603515625, 0.024749755859375, 0.00974273681640625, -0.047393798828125, -0.004241943359375, -0.0118865966796875, -0.0155487060546875, -0.0012445449829101562, 0.0216827392578125, -0.01788330078125, -0.0015773773193359375, -0.006160736083984375, -0.03033447265625, -0.01322174072265625, -0.002567291259765625, 0.007366180419921875, 0.0054931640625, -0.02459716796875, -0.0494384765625, 0.03460693359375, -0.035888671875, 0.0227508544921875, 0.010345458984375, -0.025634765625, 0.0235748291015625, 0.0088043212890625, 0.07135009765625, 0.0295562744140625, -0.041748046875, -0.00411224365234375, -0.0288238525390625, -0.0121917724609375, 0.01849365234375, -0.0081939697265625, -0.02520751953125, -0.026214599609375, 0.0247802734375, 0.02587890625, -0.0004916191101074219, -0.036712646484375, -0.06134033203125, 0.012054443359375, 0.04327392578125, 0.03857421875, 0.0015821456909179688, 0.0465087890625, -0.02294921875, 0.0030879974365234375, 0.0120697021484375, 0.026458740234375, -0.0012054443359375, -0.00937652587890625, 0.0279388427734375, 0.010650634765625, -0.036376953125, -0.0430908203125, 0.00591278076171875, -0.0181884765625, 0.038421630859375, -0.020294189453125, -0.051605224609375, 0.00917816162109375, -0.007732391357421875, -0.012451171875, 0.04071044921875, 0.081298828125, 0.0006022453308105469, -0.01629638671875, 0.0001627206802368164, 0.01529693603515625, -0.004932403564453125, 0.018951416015625, -0.0196075439453125, 0.00429534912109375, -0.0062103271484375, -0.0085906982421875, -0.039520263671875, 0.0301971435546875, 0.0863037109375, 0.035400390625, 0.055694580078125, 0.015228271484375, 0.017974853515625, 0.01116180419921875, -0.0094757080078125, -0.0067901611328125, -0.011749267578125, 0.053253173828125, -0.0115966796875, -0.0260467529296875, 0.032928466796875, -0.0183563232421875, 0.03424072265625, 0.08673095703125, 0.086181640625, -0.1512451171875, 0.052734375, 0.0120697021484375, 0.0277252197265625, 0.07464599609375, 0.0009412765502929688, 0.007320404052734375, 0.005947113037109375, -0.0031719207763671875, -0.01593017578125, -0.038360595703125, -0.0171051025390625, 0.001659393310546875, 0.002712249755859375, -0.035400390625, 0.02337646484375, -0.00019478797912597656, -0.1033935546875, 0.04632568359375, 0.053924560546875, -0.0169525146484375, -0.0260772705078125, -0.0027217864990234375, 0.0199127197265625, -0.0089111328125, -0.042327880859375, 0.045501708984375, -0.010498046875, 0.0026397705078125, -0.0033512115478515625, -0.0289459228515625, 0.046142578125, 0.056396484375, -0.02545166015625, 0.0067291259765625, 0.0026683807373046875, -0.01404571533203125, 0.046539306640625, -0.0013341903686523438, -0.01154327392578125, -0.017913818359375, -0.041778564453125, -0.01152801513671875, -0.0355224609375, 0.0163421630859375, 0.0046539306640625, -0.02093505859375, 0.04925537109375, -0.0556640625, 0.0225677490234375, 0.052459716796875, -0.001636505126953125, -0.024505615234375, -0.019561767578125, 0.0124359130859375, -0.09320068359375, -0.052886962890625, 0.0037670135498046875, -0.0394287109375, 0.0005803108215332031, -0.021728515625, -0.042327880859375, 0.0997314453125, -0.01068878173828125, 0.00548553466796875, 0.0032215118408203125, 0.056640625, -0.00695037841796875, 0.058380126953125, -0.04248046875, 0.070068359375, 0.0013780593872070312, 0.042449951171875, -0.0584716796875, -0.00646209716796875, 0.018951416015625, 0.0264739990234375, 0.05035400390625, 0.0286102294921875, -0.0282135009765625, -0.02703857421875, -0.0165863037109375, 0.022003173828125, -0.01502227783203125, 0.04168701171875, -0.005084991455078125, 0.0192413330078125, 0.043975830078125, -0.06072998046875, 0.006671905517578125, 0.0269317626953125, -0.01470947265625, 0.0184326171875, 0.005428314208984375, -0.047119140625, -0.0084075927734375, 0.029022216796875, -0.08306884765625, 0.0268707275390625, 0.0333251953125, 0.04620361328125, 0.015350341796875, 0.016326904296875, 0.03131103515625, -0.052490234375, 0.038177490234375, -0.0491943359375, 0.053131103515625, -0.023529052734375, 0.007122039794921875, 0.024566650390625, 0.017425537109375, 0.01419830322265625, -0.0406494140625, -0.007526397705078125, 0.004390716552734375, -0.021881103515625, 0.07073974609375, 0.0251922607421875, 0.0390625, -0.0254974365234375, 0.02215576171875, -0.00057220458984375, 0.06024169921875, -0.04241943359375, -0.01488494873046875, -0.0096893310546875, 0.00033855438232421875, 0.067138671875, -0.0283355712890625, 0.0849609375, -0.037628173828125, -0.058929443359375, -0.01904296875, 0.018890380859375, 0.058807373046875, -0.01220703125, 0.017608642578125, 0.0289459228515625, -0.056610107421875, 0.04913330078125, -0.0091400146484375, 0.00507354736328125, 0.0007915496826171875, 0.014129638671875, 0.015106201171875, 0.0029354095458984375, 0.027923583984375, 0.002132415771484375, -0.01273345947265625, 0.03680419921875, -0.0017871856689453125, -0.01256561279296875, -0.04046630859375, -0.062744140625, 0.037933349609375, 0.04217529296875, 0.01763916015625, -0.0242462158203125, 0.0243988037109375, 0.0229644775390625, -0.0243377685546875, -0.0070343017578125, 0.02655029296875, -0.0185394287109375, 0.027618408203125, -0.0220184326171875, 0.0203857421875, 0.0178985595703125, -0.00640106201171875, -0.01110076904296875, 0.0088958740234375, 0.04730224609375, -0.042755126953125, 0.057464599609375, -0.0022068023681640625, -0.022674560546875, 0.00972747802734375, 0.004486083984375, 0.07684326171875, -0.0010137557983398438, -0.017425537109375, -0.015411376953125, 0.00988006591796875, 0.012939453125, 0.004245758056640625, 0.034393310546875, -0.0028514862060546875, 0.0238189697265625, 0.004825592041015625, 0.0263214111328125, -0.004383087158203125, -0.0254974365234375, 0.00978851318359375, -0.02813720703125, 0.0224456787109375, -0.0095367431640625, -0.0899658203125, -0.039306640625, -0.0245361328125, 0.003261566162109375, 0.0284881591796875, 0.047454833984375, 0.01331329345703125, 0.0193023681640625, -0.0189971923828125, 0.04193115234375, -0.033935546875, 0.0135040283203125, -0.0258636474609375, 0.01116180419921875, 0.01416778564453125, -0.01367950439453125, -0.08837890625, 0.0631103515625, -0.028228759765625, 0.0029964447021484375, 0.08636474609375, -0.03375244140625, -0.026458740234375, -0.0252838134765625, -0.0269775390625, -0.045440673828125, -0.0609130859375, -0.00984954833984375, 0.01503753662109375, -0.0167236328125, 0.006778717041015625, -0.010009765625, 0.061859130859375, -0.02569580078125, 0.005039215087890625, 0.0069122314453125, -0.0611572265625, -0.01149749755859375, 0.024078369140625, 0.0018815994262695312, 0.0298004150390625, -0.017791748046875, -0.020416259765625, 0.01360321044921875, 0.0071258544921875, -0.032684326171875, -0.0029506683349609375, 0.006511688232421875, 0.00739288330078125, -0.022216796875, 0.029876708984375, -0.0178985595703125, 0.00722503662109375, -0.0299072265625, 0.03125, -0.0030002593994140625, -0.07513427734375, -0.030364990234375, -0.08984375, 0.003749847412109375, 0.0109100341796875, -0.041229248046875, -0.0263214111328125, 0.00936126708984375, 0.0018863677978515625, 0.00888824462890625, -0.018035888671875, -0.01425933837890625, 0.006931304931640625, -0.03326416015625, 0.0258026123046875, -0.044097900390625, 0.034454345703125, -0.0067901611328125, 0.0034313201904296875, -0.0304107666015625, -0.00860595703125, -0.0089263916015625, 0.033538818359375, 0.0054931640625, -0.043548583984375, 0.005176544189453125, 0.0005636215209960938, -0.038116455078125, -0.0755615234375, -0.0229034423828125, -0.025787353515625, -0.009979248046875, -0.04193115234375, -0.0091705322265625, -0.0118408203125, 0.030731201171875, 0.03033447265625, -0.009490966796875, 0.0095672607421875, -0.0418701171875, 0.0093994140625, -0.04864501953125, -0.029754638671875, -0.054901123046875, -0.069091796875, 0.035980224609375, 0.01558685302734375, -0.0274505615234375, -0.0276641845703125, 0.0205230712890625, 0.00464630126953125, -0.00995635986328125, -0.003696441650390625, -0.0165863037109375, -0.01397705078125, 0.0015897750854492188, 0.01177978515625, 0.0135345458984375, -0.001163482666015625, 0.059478759765625, -0.0224456787109375, 0.0399169921875, 0.022247314453125, -0.0227813720703125, -0.01473236083984375, 0.0131988525390625, 0.021484375, 0.039886474609375, -0.01247406005859375, 0.038726806640625, 0.00775909423828125, -0.017425537109375, -0.0029621124267578125, -0.0213775634765625, 0.032684326171875, 0.0206756591796875, -0.0071563720703125, 0.0103607177734375, -0.01953125, -0.034881591796875, -0.057769775390625, -0.0239715576171875, -0.0200958251953125, -0.026214599609375, 0.02447509765625, -0.09661865234375, -0.0187835693359375, 0.0009870529174804688, -0.004543304443359375, -0.0589599609375, 0.0304412841796875, -0.02960205078125, -0.017303466796875, 0.0292510986328125, -0.0011768341064453125, 0.0082855224609375, 0.0040435791015625, 0.04833984375, -0.035400390625, 0.006107330322265625, -0.0174560546875, 0.0191802978515625, 0.015533447265625, -0.035736083984375, 0.0382080078125, 0.00952911376953125, -0.006580352783203125, 0.01428985595703125, 0.026824951171875, 0.01222991943359375, -0.01849365234375, -0.051910400390625, -0.00930023193359375, 0.005496978759765625, 0.0118560791015625, -0.00873565673828125, -0.050048828125, 0.0032787322998046875, 0.00420379638671875, 0.0153656005859375, -0.0159912109375, -0.0108184814453125, -0.03973388671875, 0.053253173828125, 0.0087127685546875, -0.0169830322265625, 0.05206298828125, -0.035369873046875, 0.0282745361328125, -0.04864501953125, 0.042572021484375, -0.050323486328125, 0.0252532958984375, 0.030242919921875, -0.007549285888671875, 0.03424072265625 ]
9a0b37d1151403f9a9af9f83a4f33e8405b2f97b
Wordpress Stackexchange Q: Get page content using slug I'm trying to get page content when I only know the slug string. Is there a function for this, or an easy way to do this or is this a case of doing it via SQL? Thanks very much A: If on the page with the slug in question Read up on conditional tags:is_page() also takes the slug as an argument. Hence, if( is_page( 'your-slug' ) ) { // fetch content } will do what you want. If on another page Should you be interested on how to fetch post/page content based on a slug when not on said page, you can feed get_posts a slug as well. This is not documented in the codex. The following will fetch the id from a slug: $args = array( 'name' => 'your-slug' ); $posts_from_slug = get_posts( $args ); // echo fetched content echo $posts_from_slug[0]->post_content;
Q: Get page content using slug I'm trying to get page content when I only know the slug string. Is there a function for this, or an easy way to do this or is this a case of doing it via SQL? Thanks very much A: If on the page with the slug in question Read up on conditional tags:is_page() also takes the slug as an argument. Hence, if( is_page( 'your-slug' ) ) { // fetch content } will do what you want. If on another page Should you be interested on how to fetch post/page content based on a slug when not on said page, you can feed get_posts a slug as well. This is not documented in the codex. The following will fetch the id from a slug: $args = array( 'name' => 'your-slug' ); $posts_from_slug = get_posts( $args ); // echo fetched content echo $posts_from_slug[0]->post_content; A: You can get a page by its title using get_page_by_title() function. You can use it like this (assuming you want to show the content): $page = get_page_by_title('Your Title'); $content = apply_filters('the_content', $page->post_content); echo $content; BTW, to Get page using slug: function get_page_id_by_slug($slug){ global $wpdb; $id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '".$slug."'AND post_type = 'page'"); return $id; } $page = get_post(get_page_id_by_slug('my-slug')); A: Use get_posts() and the parameter name which is the slug: $page = get_posts([ 'name' => 'your-slug' ]); if ( $page ) { echo $page[0]->post_content; } Be aware that the post type in get_posts() defaults to 'post'. If you want a page use … $page = get_posts([ 'name' => 'your-slug', 'post_type' => 'page' ]); If you want all public post types (except attachments) set the post type argument to 'any'. Then you could get more than one result because slugs are not unique across different post types. A: Use get_page_by_path to retrieve the WP_Post object, then you can extract the post content and filter for HTML output if necessary. Syntax get_page_by_path( string $page_path, string $output = OBJECT, string|array $post_type = 'page' ) Example: I use this code when populating a theme template from a page, to ensure the content is rendered as HTML: <?php $about = get_page_by_path('about'); $content = apply_filters( 'the_content', $about->post_content ); echo $content; ?> To get a post of a different type, pass in the other two parameters: get_page_by_path('cat', OBJECT, 'animal'); for more reference see WordPress Function Reference
wordpress
{ "language": "en", "length": 392, "provenance": "stackexchange_00019.jsonl.gz:424559", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67372" }
[ 0.041595458984375, -0.0178375244140625, 0.00933074951171875, -0.01259613037109375, 0.008880615234375, -0.026947021484375, 0.043548583984375, -0.0204010009765625, -0.0269927978515625, 0.015716552734375, -0.048370361328125, 0.0164794921875, -0.031524658203125, -0.002857208251953125, 0.00858306884765625, -0.05291748046875, 0.034637451171875, -0.012939453125, 0.0254974365234375, -0.0193939208984375, 0.0191802978515625, -0.00020062923431396484, 0.027191162109375, 0.0516357421875, 0.05352783203125, -0.032470703125, 0.023468017578125, -0.006885528564453125, 0.0262451171875, -0.0181884765625, 0.031951904296875, -0.00832366943359375, 0.0307464599609375, -0.02557373046875, 0.02313232421875, -0.0048675537109375, -0.00722503662109375, -0.016387939453125, 0.0004107952117919922, 0.0171661376953125, 0.01032257080078125, 0.00209808349609375, 0.005336761474609375, 0.051727294921875, -0.00527191162109375, -0.0157012939453125, -0.0301055908203125, -0.072265625, 0.0015201568603515625, 0.029815673828125, 0.005687713623046875, 0.00948333740234375, 0.00498199462890625, 0.00453948974609375, 0.0002371072769165039, 0.00009584426879882812, 0.0002884864807128906, 0.0093536376953125, 0.03900146484375, -0.06390380859375, -0.052398681640625, -0.0178985595703125, 0.03729248046875, 0.014739990234375, -0.0088653564453125, 0.01161956787109375, -0.004055023193359375, 0.007228851318359375, -0.047698974609375, -0.0150909423828125, 0.027618408203125, -0.043914794921875, 0.015960693359375, -0.009613037109375, -0.0179901123046875, -0.032684326171875, 0.006748199462890625, -0.0305633544921875, 0.0022792816162109375, 0.0146026611328125, -0.00818634033203125, 0.00531768798828125, -0.047515869140625, 0.0013227462768554688, -0.002643585205078125, 0.01163482666015625, -0.016510009765625, -0.0148468017578125, -0.004425048828125, -0.0025691986083984375, -0.010009765625, 0.04754638671875, 0.030975341796875, -0.0184783935546875, -0.059661865234375, -0.00560760498046875, 0.0098114013671875, 0.01023101806640625, -0.0087127685546875, 0.01593017578125, 0.0168609619140625, -0.059326171875, 0.07080078125, -0.03363037109375, 0.0135955810546875, 0.034332275390625, 0.0132904052734375, -0.0016260147094726562, 0.040008544921875, 0.00597381591796875, 0.0039825439453125, 0.035003662109375, -0.029266357421875, -0.0169830322265625, -0.029296875, 0.06085205078125, -0.0228424072265625, -0.045074462890625, -0.00971221923828125, -0.00469970703125, 0.01519775390625, 0.0214691162109375, 0.02117919921875, -0.0304718017578125, 0.0267333984375, 0.032196044921875, -0.0229949951171875, -0.051055908203125, 0.0228729248046875, 0.019561767578125, -0.0260162353515625, -0.0121002197265625, 0.054168701171875, 0.0343017578125, 0.006664276123046875, -0.018798828125, -0.030853271484375, -0.0290069580078125, 0.00022912025451660156, 0.0018625259399414062, -0.007232666015625, -0.00792694091796875, 0.0443115234375, -0.0243072509765625, 0.018096923828125, -0.005611419677734375, 0.0009832382202148438, 0.030120849609375, 0.016754150390625, 0.00643157958984375, 0.0007748603820800781, -0.00713348388671875, 0.01216888427734375, 0.01708984375, -0.023895263671875, -0.0295562744140625, -0.00890350341796875, -0.0218353271484375, 0.01751708984375, -0.041229248046875, 0.0163726806640625, 0.0012941360473632812, -0.007373809814453125, -0.0024662017822265625, -0.033447265625, 0.0022525787353515625, -0.0224151611328125, -0.01335906982421875, 0.01038360595703125, -0.00609588623046875, 0.004505157470703125, -0.0226593017578125, -0.042755126953125, 0.0130462646484375, 0.00484466552734375, 0.01910400390625, 0.009307861328125, 0.02667236328125, 0.007415771484375, 0.049224853515625, 0.0015993118286132812, -0.03253173828125, 0.056671142578125, -0.0161590576171875, -0.06915283203125, 0.06927490234375, 0.0012140274047851562, 0.06378173828125, 0.019073486328125, -0.005733489990234375, 0.028778076171875, 0.0176849365234375, -0.050811767578125, 0.044342041015625, -0.00542449951171875, -0.02490234375, 0.00893402099609375, 0.007305145263671875, -0.0110321044921875, -0.0263519287109375, 0.00286865234375, -0.004199981689453125, -0.004642486572265625, 0.049713134765625, -0.0030155181884765625, -0.01184844970703125, 0.012054443359375, 0.00109100341796875, 0.0399169921875, 0.04388427734375, -0.01335906982421875, -0.0099945068359375, -0.005565643310546875, -0.01122283935546875, -0.049713134765625, 0.0033397674560546875, -0.00652313232421875, -0.04052734375, -0.046112060546875, 0.0172576904296875, -0.057403564453125, 0.00518798828125, -0.0836181640625, 0.0250701904296875, 0.060943603515625, -0.0273284912109375, -0.007778167724609375, -0.0369873046875, 0.025970458984375, 0.002368927001953125, -0.0521240234375, 0.03521728515625, 0.051788330078125, 0.056915283203125, -0.018218994140625, 0.023040771484375, 0.033294677734375, 0.015594482421875, -0.007080078125, 0.01222991943359375, 0.035064697265625, 0.01123809814453125, -0.023162841796875, -0.033935546875, 0.038726806640625, -0.060272216796875, -0.00936126708984375, -0.0199737548828125, 0.0250701904296875, 0.0626220703125, 0.01090240478515625, 0.03448486328125, 0.0177764892578125, 0.036407470703125, 0.016021728515625, 0.0233154296875, -0.015045166015625, 0.023223876953125, -0.045562744140625, 0.0291900634765625, -0.01561737060546875, 0.01213836669921875, 0.0172882080078125, -0.0173187255859375, -0.04327392578125, 0.03436279296875, -0.0007066726684570312, 0.01617431640625, -0.00084686279296875, -0.0122222900390625, 0.0017004013061523438, 0.0197601318359375, 0.0013637542724609375, 0.060943603515625, 0.022552490234375, -0.037872314453125, 0.00030732154846191406, -0.038330078125, 0.0033626556396484375, 0.01605224609375, -0.0140228271484375, 0.018798828125, 0.017120361328125, -0.004528045654296875, -0.0014705657958984375, -0.025482177734375, 0.0155181884765625, 0.00457000732421875, 0.019866943359375, 0.01233673095703125, 0.01026153564453125, 0.067138671875, -0.008392333984375, 0.055755615234375, -0.00616455078125, 0.0138397216796875, 0.0804443359375, -0.0308990478515625, 0.021820068359375, -0.0097808837890625, 0.065673828125, 0.04925537109375, 0.0008730888366699219, -0.0160064697265625, 0.0146026611328125, -0.0439453125, -0.007354736328125, -0.00223541259765625, -0.00972747802734375, 0.002979278564453125, -0.05340576171875, 0.0460205078125, 0.01554107666015625, 0.025054931640625, -0.00988006591796875, -0.0445556640625, 0.0024662017822265625, -0.002681732177734375, -0.135009765625, -0.10552978515625, 0.0158233642578125, -0.06134033203125, -0.045135498046875, 0.0033111572265625, -0.049957275390625, 0.0133056640625, 0.0211944580078125, -0.016143798828125, 0.029693603515625, -0.0255279541015625, -0.09588623046875, -0.0248565673828125, -0.09149169921875, 0.0631103515625, -0.01007843017578125, 0.0396728515625, 0.00443267822265625, 0.0131683349609375, 0.002147674560546875, -0.04486083984375, 0.0220489501953125, 0.07464599609375, -0.0178680419921875, -0.01202392578125, -0.04522705078125, -0.00977325439453125, 0.004474639892578125, -0.004611968994140625, 0.0435791015625, -0.006465911865234375, 0.018585205078125, -0.004840850830078125, -0.0318603515625, 0.0180206298828125, 0.0174407958984375, 0.00832366943359375, 0.033355712890625, 0.038421630859375, 0.0238494873046875, -0.01450347900390625, -0.0496826171875, -0.027923583984375, -0.08349609375, 0.0192413330078125, 0.0614013671875, 0.012298583984375, -0.022216796875, 0.00799560546875, 0.01163482666015625, -0.0024967193603515625, 0.0233306884765625, 0.005184173583984375, 0.0141754150390625, -0.0239715576171875, -0.003177642822265625, -0.0162200927734375, 0.003238677978515625, -0.0006661415100097656, 0.0104827880859375, -0.0023441314697265625, 0.041046142578125, 0.00313568115234375, 0.020843505859375, -0.0467529296875, -0.051422119140625, 0.03753662109375, 0.01029205322265625, 0.0323486328125, -0.0286712646484375, -0.032562255859375, -0.00852203369140625, 0.0870361328125, -0.01326751708984375, -0.034393310546875, -0.032745361328125, -0.004802703857421875, -0.002620697021484375, -0.015899658203125, 0.009124755859375, -0.01023101806640625, -0.003803253173828125, -0.008056640625, 0.0003294944763183594, -0.0295562744140625, -0.01397705078125, 0.0098419189453125, -0.00150299072265625, 0.0022182464599609375, 0.03057861328125, -0.046142578125, 0.00046324729919433594, 0.057464599609375, -0.01331329345703125, 0.0316162109375, -0.041900634765625, -0.0188751220703125, -0.04571533203125, -0.016143798828125, 0.0347900390625, 0.0218658447265625, 0.0004930496215820312, -0.036407470703125, -0.0097808837890625, 0.034210205078125, 0.0091552734375, 0.0445556640625, 0.004955291748046875, -0.0011796951293945312, 0.005985260009765625, 0.0006957054138183594, 0.0252227783203125, -0.0164337158203125, -0.0096588134765625, -0.0300750732421875, -0.0085601806640625, 0.014862060546875, -0.039947509765625, 0.0234527587890625, -0.0286102294921875, -0.01715087890625, -0.04095458984375, 0.00443267822265625, 0.0063629150390625, -0.019500732421875, -0.015716552734375, 0.002887725830078125, 0.0189971923828125, -0.0196075439453125, 0.062255859375, 0.0440673828125, -0.039031982421875, -0.01548004150390625, 0.02593994140625, 0.0262451171875, -0.06365966796875, -0.0477294921875, 0.01201629638671875, 0.0291595458984375, -0.0264434814453125, 0.06494140625, 0.018218994140625, -0.020050048828125, 0.0753173828125, -0.01036834716796875, -0.0271759033203125, -0.0173187255859375, 0.04962158203125, -0.0016813278198242188, -0.002315521240234375, -0.010467529296875, -0.047271728515625, 0.062042236328125, 0.0521240234375, -0.031768798828125, 0.006038665771484375, -0.01366424560546875, 0.043243408203125, -0.020263671875, 0.0226593017578125, -0.060546875, -0.038726806640625, 0.00267791748046875, 0.0168914794921875, 0.0321044921875, 0.0287017822265625, -0.014801025390625, 0.044586181640625, 0.043182373046875, -0.0134124755859375, 0.0187225341796875, 0.0113067626953125, 0.0007615089416503906, 0.01373291015625, 0.005039215087890625, -0.02105712890625, -0.0017442703247070312, 0.001201629638671875, 0.0266265869140625, -0.009796142578125, -0.047576904296875, -0.0097503662109375, -0.0101165771484375, 0.00616455078125, 0.029876708984375, 0.028564453125, 0.021820068359375, 0.037750244140625, -0.007640838623046875, -0.0110931396484375, 0.01263427734375, 0.0274200439453125, -0.03369140625, -0.0108795166015625, -0.017791748046875, -0.0126495361328125, -0.0083160400390625, 0.06732177734375, -0.04669189453125, 0.043212890625, -0.01123046875, -0.0143890380859375, 0.003665924072265625, 0.02386474609375, 0.0296630859375, -0.0234527587890625, -0.005229949951171875, -0.012237548828125, 0.02484130859375, -0.028717041015625, 0.00939178466796875, 0.0206756591796875, 0.0258636474609375, -0.022918701171875, -0.03460693359375, 0.0215301513671875, -0.0261688232421875, -0.0178680419921875, 0.02099609375, 0.01157379150390625, -0.01277923583984375, -0.03753662109375, -0.01971435546875, 0.017333984375, 0.0263824462890625, -0.0197601318359375, 0.045623779296875, 0.002628326416015625, 0.021575927734375, 0.0180816650390625, -0.0296478271484375, 0.0164031982421875, 0.0266265869140625, 0.021636962890625, -0.03900146484375, -0.0146636962890625, -0.00914764404296875, 0.038299560546875, -0.036529541015625, -0.019134521484375, 0.039581298828125, -0.0013647079467773438, 0.04937744140625, -0.042144775390625, -0.0271453857421875, -0.0171966552734375, -0.01381683349609375, 0.0478515625, 0.019317626953125, -0.0430908203125, 0.031707763671875, -0.0531005859375, 0.0093231201171875, 0.0198974609375, -0.0633544921875, -0.0203399658203125, -0.0570068359375, 0.00487518310546875, 0.032073974609375, -0.003971099853515625, -0.0033435821533203125, 0.0006046295166015625, 0.0218048095703125, -0.002593994140625, 0.054534912109375, 0.00167083740234375, 0.047698974609375, -0.00250244140625, 0.01262664794921875, 0.01044464111328125, 0.0198822021484375, -0.01528167724609375, -0.026947021484375, -0.01052093505859375, -0.057952880859375, 0.001476287841796875, 0.00992584228515625, 0.0003724098205566406, 0.0272369384765625, 0.0268096923828125, 0.0196380615234375, 0.00864410400390625, -0.031951904296875, -0.007110595703125, -0.0128021240234375, 0.04327392578125, -0.0330810546875, -0.019683837890625, 0.037811279296875, -0.017333984375, -0.021240234375, -0.02069091796875, 0.00685882568359375, -0.00495147705078125, -0.00475311279296875, -0.00476837158203125, 0.0012922286987304688, -0.0198974609375, 0.04571533203125, 0.09332275390625, 0.00832366943359375, 0.051483154296875, 0.0216064453125, 0.00507354736328125, 0.031524658203125, 0.00820159912109375, -0.0128936767578125, -0.023956298828125, 0.042022705078125, 0.004802703857421875, -0.00003606081008911133, 0.022613525390625, -0.0274505615234375, 0.012298583984375, 0.04266357421875, 0.054473876953125, -0.042938232421875, 0.00304412841796875, 0.0235748291015625, -0.041748046875, -0.00945281982421875, -0.0027332305908203125, -0.003559112548828125, 0.000896453857421875, 0.042877197265625, -0.0258941650390625, -0.02020263671875, 0.02392578125, -0.007965087890625, -0.0244903564453125, -0.0254669189453125, 0.0391845703125, 0.024566650390625, 0.0009713172912597656, 0.02374267578125, -0.003459930419921875, 0.00577545166015625, -0.03369140625, 0.00350189208984375, -0.006519317626953125, 0.00141143798828125, -0.013702392578125, 0.05731201171875, -0.020904541015625, 0.038360595703125, 0.027069091796875, 0.025543212890625, -0.037017822265625, 0.054290771484375, -0.026885986328125, 0.0075531005859375, 0.034698486328125, -0.045745849609375, -0.00266265869140625, 0.00698089599609375, 0.019805908203125, 0.023223876953125, -0.03179931640625, 0.0129547119140625, -0.031341552734375, 0.0013170242309570312, -0.0181121826171875, -0.0704345703125, 0.0718994140625, -0.0357666015625, 0.0020389556884765625, 0.019134521484375, 0.03863525390625, -0.022125244140625, -0.0118560791015625, 0.039825439453125, -0.01403045654296875, 0.0272064208984375, 0.0117645263671875, 0.04644775390625, -0.03851318359375, -0.0177154541015625, -0.10498046875, 0.1085205078125, 0.043426513671875, 0.056610107421875, -0.0206146240234375, 0.034637451171875, -0.04736328125, -0.002361297607421875, -0.07269287109375, 0.0750732421875, 0.041656494140625, 0.089111328125, -0.076904296875, -0.021697998046875, 0.0308990478515625, 0.035125732421875, 0.05157470703125, 0.0036334991455078125, -0.0297393798828125, -0.0003705024719238281, 0.04876708984375, 0.04461669921875, 0.01236724853515625, 0.038421630859375, 0.0035114288330078125, 0.048614501953125, 0.09075927734375, -0.090087890625, 0.0276641845703125, -0.00605010986328125, 0.0408935546875, 0.002170562744140625, 0.0152587890625, -0.0069122314453125, 0.03692626953125, -0.0262908935546875, -0.06268310546875, 0.017364501953125, 0.032745361328125, -0.0228729248046875, -0.0016012191772460938, 0.05499267578125, 0.057281494140625, -0.06103515625, -0.039794921875, -0.033050537109375, 0.054656982421875, 0.01210784912109375, 0.0247650146484375, 0.00402069091796875, 0.0246124267578125, 0.046142578125, -0.022552490234375, 0.0146942138671875, 0.0162506103515625, -0.02850341796875, 0.08935546875, 0.0282135009765625, 0.0088043212890625, -0.06781005859375, -0.00687408447265625, 0.0350341796875, 0.1004638671875, -0.06463623046875, -0.0290679931640625, 0.0232696533203125, -0.00848388671875, -0.0169677734375, 0.0022678375244140625, -0.0164337158203125, 0.021453857421875, 0.037628173828125, -0.032318115234375, -0.0118560791015625, 0.0089569091796875, 0.0220947265625, -0.018890380859375, -0.051788330078125, -0.000652313232421875, -0.0068817138671875, -0.032196044921875, 0.012542724609375, 0.0126800537109375, 0.024658203125, 0.00479888916015625, 0.044219970703125, -0.0003819465637207031, -0.0038127899169921875, 0.0172271728515625, -0.0037708282470703125, -0.02569580078125, -0.00868988037109375, 0.00988006591796875, -0.030364990234375, -0.009765625, 0.0153350830078125, 0.02362060546875, -0.042205810546875, 0.008514404296875, 0.0161285400390625, -0.0188140869140625, -0.0196380615234375, 0.0165557861328125, -0.00853729248046875, 0.047515869140625, -0.039031982421875, 0.0302276611328125, 0.0118865966796875, -0.015716552734375, -0.035247802734375, -0.02349853515625, 0.07037353515625, 0.00804901123046875, 0.047943115234375, 0.01226806640625, 0.0247039794921875, 0.047027587890625, -0.0006556510925292969, 0.0009694099426269531, 0.02825927734375, -0.07916259765625, -0.0012903213500976562, -0.031890869140625, -0.0635986328125, 0.0253753662109375, 0.05535888671875, -0.00293731689453125, -0.016876220703125, 0.006885528564453125, 0.0121002197265625, 0.0071258544921875, -0.01085662841796875, -0.006458282470703125, -0.0012292861938476562, 0.0321044921875, 0.0003628730773925781, -0.01056671142578125, -0.0161285400390625, 0.021759033203125, 0.0225830078125, -0.017059326171875, 0.0784912109375, -0.0233612060546875, 0.0010633468627929688, -0.0025787353515625, 0.01024627685546875, -0.0170745849609375, -0.0270538330078125, 0.047454833984375, 0.0023708343505859375, -0.00225830078125, -0.0238494873046875, -0.01357269287109375, 0.03033447265625, 0.041290283203125, 0.0012149810791015625, -0.005046844482421875, -0.0084075927734375, 0.0088348388671875, 0.005725860595703125, -0.03460693359375, -0.029998779296875, -0.0067138671875, 0.01076507568359375, -0.0115203857421875, 0.0202789306640625, 0.0183868408203125, 0.00746917724609375, 0.035491943359375, -0.0255889892578125, -0.033599853515625, -0.0034580230712890625, -0.031341552734375, -0.028045654296875, 0.0186614990234375, 0.01129913330078125, -0.0203094482421875, 0.0316162109375, -0.005462646484375, 0.0233306884765625, 0.0174713134765625, 0.018707275390625, 0.017791748046875, 0.0265960693359375, -0.00490570068359375, -0.045867919921875, 0.004253387451171875, -0.011627197265625, -0.019012451171875, -0.0270843505859375, 0.0194244384765625, -0.0212554931640625, -0.06451416015625, -0.0282745361328125, -0.050506591796875, 0.01314544677734375, 0.033203125, -0.01568603515625, -0.005580902099609375, -0.024810791015625, 0.0034389495849609375, 0.021331787109375, 0.0008182525634765625, -0.0274810791015625, 0.0209197998046875, -0.030487060546875, 0.029296875, -0.025360107421875, 0.00824737548828125, 0.004016876220703125, -0.006809234619140625, -0.06646728515625, 0.05267333984375, -0.0251312255859375, -0.056488037109375, 0.0119781494140625, 0.0391845703125, 0.060516357421875, -0.045135498046875, -0.034881591796875, 0.0165557861328125, 0.021453857421875, 0.07000732421875, 0.0016126632690429688, -0.00907135009765625, 0.05108642578125, 0.0028514862060546875, -0.023406982421875, -0.046295166015625, -0.0071868896484375, 0.00020456314086914062, 0.026275634765625, 0.004547119140625, 0.00670623779296875, 0.0260162353515625, -0.0157928466796875, -0.011138916015625, 0.051788330078125, 0.002902984619140625, -0.0136871337890625, -0.0245361328125, 0.036163330078125, 0.030914306640625, -0.09112548828125, -0.0240478515625, -0.006549835205078125, -0.010894775390625, 0.0028076171875, 0.006992340087890625, 0.03265380859375, 0.0014009475708007812, 0.038909912109375, -0.042388916015625, 0.0222930908203125, -0.0195465087890625, -0.01141357421875, 0.0217437744140625, -0.021636962890625, 0.00815582275390625, 0.0286407470703125, -0.0587158203125, -0.05072021484375, -0.02392578125, 0.00989532470703125, -0.0213623046875, -0.0114593505859375, -0.021453857421875, 0.01389312744140625, 0.07501220703125, 0.07489013671875, 0.02374267578125, -0.052520751953125, -0.040008544921875, -0.00452423095703125, -0.06475830078125, 0.011627197265625, 0.06036376953125, -0.0889892578125, 0.02288818359375, 0.0157928466796875, -0.0114288330078125, 0.037353515625, -0.032928466796875, -0.0284881591796875, 0.00241851806640625, -0.03338623046875, -0.006031036376953125, -0.029296875, -0.005584716796875, 0.042388916015625, -0.0213775634765625, 0.02886962890625, -0.009307861328125, 0.02215576171875, 0.026702880859375, 0.006473541259765625, 0.00380706787109375, 0.0020809173583984375, -0.026275634765625, -0.0009031295776367188, 0.006671905517578125, 0.03363037109375, 0.004169464111328125, -0.013671875, -0.0022029876708984375, 0.03497314453125, -0.004302978515625, 0.038116455078125, 0.018096923828125, -0.0014257431030273438, 0.0017766952514648438, 0.0005526542663574219, -0.006145477294921875, 0.01995849609375, 0.006298065185546875, 0.03692626953125, -0.0028438568115234375, -0.0187530517578125, 0.0233612060546875, -0.06329345703125, -0.001155853271484375, -0.0159759521484375, -0.0009613037109375, -0.0518798828125, 0.031402587890625, -0.01184844970703125, -0.0081787109375, 0.0219268798828125 ]
9e609a13e19a85ec61c93326be4fd76e77aa22b9
Wordpress Stackexchange Q: Get custom post type slug for an archive page How do I discover the custom post type slug when I'm on an archive page? For instance if /products/ fires the archive-products.php template, how (pragmatically) do I get the post type slug? Thanks A: I'm using this outside of the loop on the archive.php template to get which custom post archive I'm on. It's a combo of the methods that both @toscho and @Rarst recommended: $post_type = get_queried_object(); echo $post_type->rewrite['slug']; Update: @majick pointed out that this only works if you've set the rewrite slug for your CPT. Rewrite slug is optional when registering a CPT and defaults to post_type if not set.
Q: Get custom post type slug for an archive page How do I discover the custom post type slug when I'm on an archive page? For instance if /products/ fires the archive-products.php template, how (pragmatically) do I get the post type slug? Thanks A: I'm using this outside of the loop on the archive.php template to get which custom post archive I'm on. It's a combo of the methods that both @toscho and @Rarst recommended: $post_type = get_queried_object(); echo $post_type->rewrite['slug']; Update: @majick pointed out that this only works if you've set the rewrite slug for your CPT. Rewrite slug is optional when registering a CPT and defaults to post_type if not set. A: The answers get confusing. And maybe Im as well but the headline question is: Get custom post type slug for an archive page If you mean post type archive landing-page, and when is_post_type_archive() returns true, you want the slug that responing to current viewing archive: /* returns /products/ */ $responding_name = str_replace(get_home_url(), '', get_post_type_archive_link(get_query_var('post_type'))); /* continue to get 'products' without slug slashes */ $responding_name = str_replace('/', '', $responding_name); -- END OF ANSWERING THE QUESTION -- Explanation: You cant rely on the registered slug. Wordpress is not either. For example, when calling get_post_type_archive_link() Wordpress is checking the current rewrite rules for your install . Wherever you are, inside or outside loop, current archive or single post, reverse the get_post_type_archive_link() mechanism. (Permalinks enabled.) Considerations: As mentioned here, the post type(s) in current query can be an array. You can go futher with your intensions with filter out the post type you look for, example: $post_type = get_query_var('post_type'); if(is_array($post_type)) $post_type = reset($post_type); or if(isset($post_types[0])) $post_type = $post_types[0]; Another point of view: Woocommerce example, is registered with 'products' post type object but in reality uses rewritten rule name (shop): /* returns shop */ $responding_name = str_replace('/', '', str_replace(get_home_url(), '', get_post_type_archive_link('product'))); Mark, Im using $responding_name, because the objectives might vary. A post archive does not exists, its just a url. A: You can use this code and this code is working for me, $t_slug = get_query_var('term'); A: To get the current post type use get_post_type(). Then ask get_post_type_object() for all the data you need, for example the slug: $post_type = get_post_type(); if ( $post_type ) { $post_type_data = get_post_type_object( $post_type ); $post_type_slug = $post_type_data->rewrite['slug']; echo $post_type_slug; } A: t should be noted that if has_archive is set to true while registering the Custom Post Type, the post type archive /cptslug/ will be internally rewritten to ?post_type=cptslug. So this would also mean is_post_type_archive() will return true. Unfortunately, where the registered rewrite slug is different to the post type, you are not actually reliably getting the post_type. eg. if your post type was myplugin_cars and your rewrite slug was cars and you need to be getting myplugin_cars then even this (to prevent errors if the current queried object is not a custom post type) will still fail: $queryobject = get_queried_object(); if (has_property('rewrite',$queryobject)) { if (isset($queryobject->rewrite['slug'])) { $posttype = $queryobject->rewrite['slug']; } } But because is_post_type_archive is true this is more reliable: if (is_post_type_archive()) { $posttype = get_query_var('post_type'); // which is basically the same as: // global $wp_query; // $posttype = $wp_query->query_vars['post_type']; } else ($posttype = 'post';} But hang on, there's more... turns out with a little testing it really isn't that simple either... what if you are on a taxonomy archive page with multiple post types in the taxonomy..? Or assign post tags to a custom post type other than post? Or are on an author archive page? Date archive page? ...or even have a complex tax_query or meta_query for WP_Query? The only reliable answer (without testing for every possible archive case) is to loop the actual posts in the query... Here is the full function I came up with to work on both singular and archive pages, and allowing you to optionally pass a custom query object (or post object/post ID for singular posts): function get_current_post_types($object=null) { // if a numeric value passed, assume it is a post ID if ( ($object) && (is_numeric($object)) ) {$object = get_post($object);} // if an object is passed, assume to be a post object if ( ($object) && (is_object($object)) ) {return get_post_type($object);} // standard single post type checks if (is_404()) {return '';} // update: removed this check, handled by is_singular // if (is_single()) {return 'post';} if (is_page()) {return 'page';} if (is_attachment()) {return 'attachment';} if (is_singular()) {return get_post_type();} // if a custom query object was not passed, use $wp_query global if ( (!$object) || (!is_object($object)) ) { global $wp_query; $object = $wp_query; } if (!is_object($object)) {return '';} // should not fail // if the post_type query var has been explicitly set // (or implicitly set on the cpt via a has_archive redirect) // ie. this is true for is_post_type_archive at least // $vqueriedposttype = get_query_var('post_type'); // $wp_query only if (property_exists($object,'query_vars')) { $posttype = $object->query_vars['post_type']; if ($posttype) {return $posttype;} } // handle all other cases by looping posts in query object $posttypes = array(); if (method_exists($object,'found_posts')) { if ($object->found_posts > 0) { $queriedposts = $object->posts; foreach ($queriedposts as $queriedpost) { $posttype = $queriedpost->post_type; if (!in_array($posttype,$posttypes)) {$posttypes[] = $posttype;} } if (count($posttypes == 1)) {return $posttypes[0];} else {return $posttypes;} } } return ''; // nothin to see here } This will reliably (did I say that?) return an array of post types if more than one is present, or a string with the single post type if there is only one type. All you need to do is: $posttypes = get_current_post_types(); // or pass a post ID $posttypes = get_current_post_types($postid); // or pass a post object $posttypes = get_current_post_types($post); // or pass a custom query - that has been run $posttypes = get_current_post_types($query); Example Usage (just for fun): add_filter('the_posts','myplugin_fading_thumbnails',10,2); function myplugin_fading_thumbnails($posts,$query) { if (!is_archive()) {return $posts;} $cptslug = 'myplugin_slug'; $dosomethingcool = false; $posttypes = get_current_post_types($query); if ( (is_array($posttypes)) && (in_array($cptslug,$posttypes)) ) {$dosomethingcool = true;} elseif ($cptslug == $posttypes) {$dosomethingcool = true;} if ($dosomethingcool) { global $fadingthumbnails; $fadingthumbnails = $cptslug; if (!has_action('wp_footer','myplugin_cpt_script')) { add_action('wp_footer','myplugin_cpt_script'); } } function myplugin_cpt_script() { global $fadingthumbnails; echo "<script>var thumbnailclass = 'img.thumbtype-".$fadingthumbnails."'; function fadeoutthumbnails() {jQuery(thumbnailclass).fadeOut(3000,fadeinthumbnails);} function fadeinthumbnails() {jQuery(thumbnailclass).fadeIn(3000,fadeoutthumbnails);} jQuery(document).ready(function() {fadeoutthumbnails();}); </script>"; } return $posts; } To see the effect, change the custom post type in the code to post, and add a thumbtype-post class attribute to your post thumbnail images... A: You can use this code: $queried_object = get_queried_object(); $posttype_slug = $queried_object->query_var; echo $posttype_slug; use $posttype_slug var whatever you need A: if( get_post_type( get_the_ID() ) == 'projects' ) { //enter code for this post type }
wordpress
{ "language": "en", "length": 1078, "provenance": "stackexchange_00019.jsonl.gz:424571", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67408" }
[ 0.029571533203125, 0.01549530029296875, -0.005748748779296875, -0.0164794921875, 0.0179901123046875, -0.0179443359375, 0.050506591796875, -0.013092041015625, -0.0308837890625, 0.012786865234375, 0.032135009765625, -0.0117034912109375, -0.0168304443359375, -0.055938720703125, 0.0275726318359375, -0.01190948486328125, 0.0323486328125, -0.0165557861328125, 0.0191497802734375, -0.029571533203125, 0.013427734375, 0.005321502685546875, 0.00972747802734375, 0.07476806640625, 0.0234222412109375, 0.00714874267578125, 0.0811767578125, -0.0176239013671875, 0.025238037109375, -0.007579803466796875, 0.0281219482421875, -0.0458984375, 0.01399993896484375, -0.0264434814453125, 0.041229248046875, 0.04595947265625, -0.004650115966796875, 0.0069427490234375, 0.0230560302734375, -0.005283355712890625, 0.0071563720703125, -0.005290985107421875, 0.0214080810546875, -0.0158538818359375, 0.003871917724609375, -0.00847625732421875, -0.01959228515625, -0.049224853515625, 0.0164642333984375, 0.002185821533203125, -0.0037384033203125, 0.0205078125, 0.00913238525390625, -0.02020263671875, -0.00077056884765625, 0.005725860595703125, 0.0262451171875, 0.01043701171875, 0.0278167724609375, -0.0667724609375, -0.04534912109375, 0.0170440673828125, 0.043792724609375, 0.0202178955078125, 0.0001252889633178711, 0.022308349609375, 0.0269927978515625, 0.02313232421875, -0.054107666015625, -0.0224151611328125, 0.01479339599609375, -0.02996826171875, 0.047515869140625, 0.006793975830078125, -0.0130462646484375, -0.067138671875, 0.03167724609375, -0.0269012451171875, 0.0032958984375, 0.002880096435546875, 0.006500244140625, -0.0164337158203125, -0.015411376953125, -0.006008148193359375, -0.0143280029296875, -0.005970001220703125, -0.00894927978515625, -0.0154571533203125, -0.0034046173095703125, -0.0181427001953125, -0.0161590576171875, -0.0108184814453125, 0.006916046142578125, 0.0194244384765625, -0.0193023681640625, -0.0293426513671875, 0.03900146484375, 0.0158233642578125, -0.00021469593048095703, -0.00376129150390625, 0.037506103515625, -0.07366943359375, 0.05340576171875, -0.034149169921875, 0.01861572265625, -0.005397796630859375, 0.004055023193359375, 0.0312042236328125, 0.05615234375, 0.0178070068359375, -0.01297760009765625, 0.0421142578125, -0.0269012451171875, -0.007965087890625, -0.02740478515625, 0.041778564453125, -0.0307769775390625, -0.0226898193359375, -0.015899658203125, 0.01413726806640625, 0.00778961181640625, 0.045135498046875, 0.0867919921875, -0.0284881591796875, -0.0202178955078125, 0.009124755859375, -0.019439697265625, -0.1060791015625, 0.033477783203125, 0.041961669921875, -0.0274505615234375, -0.004730224609375, 0.0088653564453125, -0.0007395744323730469, -0.0077056884765625, -0.023529052734375, 0.0153656005859375, 0.00795745849609375, -0.002010345458984375, 0.01438140869140625, 0.03436279296875, -0.0079498291015625, -0.010650634765625, 0.0094757080078125, 0.005084991455078125, 0.0144805908203125, 0.0020732879638671875, 0.0224456787109375, -0.005374908447265625, -0.0190887451171875, -0.01100921630859375, -0.01291656494140625, 0.033111572265625, 0.0148162841796875, -0.0166015625, -0.03997802734375, 0.00983428955078125, -0.028472900390625, 0.01503753662109375, -0.04620361328125, -0.01263427734375, -0.008941650390625, -0.0038604736328125, -0.016998291015625, -0.031524658203125, 0.031585693359375, -0.01235198974609375, -0.0050506591796875, 0.0174560546875, 0.0219268798828125, 0.01464080810546875, -0.019683837890625, 0.0108795166015625, 0.0068359375, -0.0157623291015625, 0.010040283203125, -0.004253387451171875, 0.01053619384765625, 0.0206298828125, 0.051849365234375, 0.0179290771484375, -0.02313232421875, 0.0273590087890625, -0.00562286376953125, -0.042144775390625, 0.04962158203125, 0.021484375, 0.0645751953125, -0.01519775390625, 0.00852203369140625, 0.0225982666015625, 0.039794921875, -0.043853759765625, 0.0286407470703125, -0.01528167724609375, -0.01296234130859375, -0.021514892578125, -0.0000209808349609375, -0.03399658203125, 0.00580596923828125, -0.041748046875, 0.0242919921875, -0.0328369140625, 0.03533935546875, -0.0595703125, 0.0301971435546875, -0.026458740234375, 0.044769287109375, 0.02459716796875, 0.01494598388671875, 0.0002532005310058594, -0.0019178390502929688, -0.0259246826171875, -0.00643157958984375, -0.02349853515625, 0.0245361328125, 0.00890350341796875, -0.029541015625, -0.042205810546875, -0.00428009033203125, -0.03704833984375, 0.00499725341796875, -0.061370849609375, 0.03857421875, 0.05096435546875, 0.023101806640625, -0.01959228515625, -0.00705718994140625, 0.01291656494140625, 0.058502197265625, -0.1043701171875, -0.01044464111328125, 0.015838623046875, 0.0009093284606933594, -0.034271240234375, -0.0019121170043945312, 0.006366729736328125, -0.0439453125, 0.00826263427734375, 0.04931640625, 0.0234222412109375, 0.03363037109375, -0.00272369384765625, 0.00582122802734375, 0.0528564453125, 0.0009822845458984375, 0.0223236083984375, -0.0018739700317382812, 0.030853271484375, 0.08087158203125, -0.00554656982421875, 0.031585693359375, 0.00957489013671875, 0.03143310546875, 0.00899505615234375, 0.0367431640625, 0.004154205322265625, 0.0032196044921875, 0.0101165771484375, 0.0239105224609375, -0.01384735107421875, 0.020965576171875, 0.0084991455078125, -0.003757476806640625, 0.03033447265625, 0.0278472900390625, 0.03570556640625, 0.037445068359375, -0.0391845703125, 0.012176513671875, 0.00536346435546875, 0.029815673828125, -0.0012788772583007812, 0.034271240234375, 0.043853759765625, -0.0021953582763671875, -0.02740478515625, -0.0144805908203125, 0.0298614501953125, 0.0214691162109375, -0.0193328857421875, 0.016510009765625, 0.020477294921875, -0.0017986297607421875, -0.0270843505859375, -0.0911865234375, 0.033294677734375, 0.02606201171875, -0.01276397705078125, -0.004791259765625, 0.01580810546875, 0.049072265625, -0.01025390625, 0.024017333984375, -0.006908416748046875, -0.0035610198974609375, 0.01328277587890625, -0.06256103515625, 0.05364990234375, -0.036163330078125, 0.0654296875, 0.076416015625, -0.0203704833984375, 0.036468505859375, 0.01294708251953125, -0.0248870849609375, -0.01097869873046875, 0.01406097412109375, -0.010284423828125, -0.0175018310546875, -0.053436279296875, 0.01171112060546875, 0.0163116455078125, 0.0150146484375, 0.0172882080078125, -0.0225372314453125, 0.01355743408203125, 0.0242462158203125, -0.06390380859375, -0.056427001953125, 0.0303802490234375, -0.094482421875, 0.0135040283203125, -0.02838134765625, -0.054962158203125, -0.0201568603515625, 0.0202789306640625, 0.0113067626953125, 0.020111083984375, -0.0233306884765625, -0.051177978515625, -0.049041748046875, -0.0699462890625, -0.0469970703125, -0.0030879974365234375, 0.0018415451049804688, 0.016815185546875, 0.035247802734375, 0.01068878173828125, -0.04705810546875, 0.02557373046875, 0.01483154296875, -0.028289794921875, 0.0185546875, -0.0004787445068359375, -0.03814697265625, 0.0255889892578125, -0.0025119781494140625, 0.01739501953125, 0.025054931640625, -0.005340576171875, -0.00981903076171875, -0.002185821533203125, -0.013427734375, 0.011474609375, 0.067626953125, 0.01311492919921875, -0.0028076171875, 0.04229736328125, -0.03680419921875, -0.06585693359375, -0.0017938613891601562, -0.04461669921875, 0.0198822021484375, 0.01113128662109375, 0.005565643310546875, -0.0268096923828125, 0.0579833984375, 0.0101318359375, 0.00008654594421386719, 0.040374755859375, -0.0386962890625, 0.04315185546875, 0.005237579345703125, 0.016326904296875, -0.0350341796875, 0.047821044921875, -0.0156707763671875, 0.03875732421875, 0.03094482421875, 0.007495880126953125, 0.0168914794921875, -0.027923583984375, -0.03192138671875, -0.0997314453125, 0.059326171875, -0.0426025390625, -0.006916046142578125, -0.03662109375, -0.02325439453125, 0.01861572265625, 0.11541748046875, -0.018280029296875, -0.013916015625, -0.035919189453125, -0.019073486328125, 0.057708740234375, -0.01226043701171875, -0.01448822021484375, -0.0298004150390625, -0.07421875, -0.00319671630859375, -0.0171051025390625, -0.041107177734375, -0.00835418701171875, -0.00019693374633789062, -0.052093505859375, -0.0439453125, 0.045196533203125, -0.0401611328125, 0.0232086181640625, 0.00836181640625, 0.00782012939453125, -0.01490020751953125, -0.047088623046875, -0.0189056396484375, -0.0667724609375, -0.01519775390625, 0.0161590576171875, 0.04461669921875, 0.000904083251953125, -0.045684814453125, -0.004566192626953125, 0.0504150390625, 0.03863525390625, 0.0146636962890625, 0.0031604766845703125, -0.0283050537109375, -0.002902984619140625, -0.01534271240234375, -0.00502777099609375, -0.0265045166015625, 0.01312255859375, -0.0124664306640625, -0.06683349609375, 0.0222930908203125, -0.02337646484375, 0.016204833984375, 0.0132293701171875, -0.046661376953125, -0.04681396484375, -0.00632476806640625, 0.020050048828125, 0.0260467529296875, 0.027496337890625, -0.0082550048828125, -0.01800537109375, -0.045013427734375, 0.0300750732421875, 0.033447265625, -0.031280517578125, 0.0014286041259765625, 0.033782958984375, 0.01131439208984375, -0.039794921875, -0.023223876953125, -0.0037384033203125, 0.0201873779296875, 0.005542755126953125, 0.02716064453125, 0.0081787109375, 0.0080413818359375, -0.0041656494140625, -0.01129913330078125, -0.0357666015625, -0.030853271484375, 0.058502197265625, 0.00261688232421875, 0.001781463623046875, -0.00675201416015625, -0.056884765625, 0.081298828125, 0.0140838623046875, -0.02081298828125, -0.017486572265625, 0.00200653076171875, 0.07421875, -0.029205322265625, 0.0279998779296875, -0.07183837890625, -0.0677490234375, 0.0380859375, -0.007843017578125, 0.051177978515625, 0.01119232177734375, -0.0028705596923828125, 0.06689453125, -0.004596710205078125, 0.0096435546875, -0.030792236328125, 0.000774383544921875, 0.01424407958984375, 0.04046630859375, -0.0107879638671875, 0.025482177734375, -0.0460205078125, 0.01198577880859375, -0.01534271240234375, -0.01959228515625, -0.0374755859375, -0.0374755859375, 0.002227783203125, -0.0030689239501953125, 0.034210205078125, -0.052734375, 0.04119873046875, 0.0711669921875, -0.03411865234375, 0.00904083251953125, -0.054229736328125, 0.032318115234375, -0.06353759765625, 0.031890869140625, 0.0167083740234375, -0.00844573974609375, -0.0226593017578125, 0.07342529296875, 0.00882720947265625, 0.0148773193359375, -0.0028209686279296875, -0.01458740234375, 0.004398345947265625, 0.043548583984375, 0.0322265625, -0.05340576171875, -0.008392333984375, 0.0212860107421875, 0.01375579833984375, -0.01739501953125, 0.0028591156005859375, 0.01389312744140625, 0.0521240234375, -0.043853759765625, -0.031646728515625, 0.0166015625, -0.05218505859375, 0.004047393798828125, -0.004787445068359375, -0.007205963134765625, -0.018524169921875, -0.0076751708984375, -0.00806427001953125, 0.005222320556640625, -0.007442474365234375, -0.052642822265625, 0.041229248046875, -0.039581298828125, 0.0235137939453125, 0.0229034423828125, -0.047393798828125, 0.042633056640625, 0.048065185546875, -0.0162200927734375, -0.0296630859375, -0.0019474029541015625, 0.00904083251953125, 0.0191650390625, -0.021026611328125, -0.023223876953125, 0.0281524658203125, -0.0189208984375, 0.0247039794921875, -0.015655517578125, -0.018341064453125, 0.02728271484375, 0.00048160552978515625, 0.07550048828125, 0.0262908935546875, -0.0277862548828125, 0.006763458251953125, -0.043121337890625, -0.0032482147216796875, 0.0247039794921875, -0.03448486328125, -0.01215362548828125, -0.0278167724609375, -0.006229400634765625, 0.0243377685546875, -0.009307861328125, 0.0011005401611328125, 0.0006256103515625, 0.0211944580078125, 0.001743316650390625, 0.055450439453125, -0.0208282470703125, 0.048583984375, -0.0161590576171875, 0.033782958984375, -0.0219573974609375, 0.00653839111328125, -0.006778717041015625, -0.0022945404052734375, -0.0240478515625, -0.032012939453125, 0.006465911865234375, 0.01337432861328125, 0.00396728515625, 0.031402587890625, 0.05621337890625, 0.01358795166015625, -0.0307464599609375, -0.01230621337890625, 0.00010979175567626953, -0.027984619140625, 0.07537841796875, -0.0017690658569335938, -0.0157012939453125, 0.0019664764404296875, -0.0261688232421875, 0.0268096923828125, 0.021942138671875, 0.0024623870849609375, 0.0247955322265625, -0.021453857421875, 0.038330078125, 0.018096923828125, -0.05987548828125, 0.0623779296875, 0.070556640625, 0.02008056640625, 0.047515869140625, -0.003387451171875, 0.017852783203125, 0.01178741455078125, -0.0109710693359375, 0.004039764404296875, 0.005992889404296875, 0.036773681640625, -0.004253387451171875, 0.0011386871337890625, 0.0257110595703125, -0.0107421875, -0.00004589557647705078, 0.0288848876953125, 0.043212890625, -0.05096435546875, -0.006465911865234375, 0.018829345703125, -0.014984130859375, -0.006988525390625, 0.0172882080078125, -0.01532745361328125, 0.019012451171875, 0.006175994873046875, -0.041290283203125, -0.031280517578125, 0.0012531280517578125, 0.0106201171875, 0.0011501312255859375, 0.01136016845703125, 0.04888916015625, 0.01242828369140625, 0.002109527587890625, -0.00238800048828125, -0.0204315185546875, 0.035797119140625, -0.02301025390625, 0.006511688232421875, -0.01496124267578125, 0.00010478496551513672, -0.0113677978515625, 0.049468994140625, -0.04986572265625, 0.03546142578125, 0.040374755859375, 0.005077362060546875, 0.04034423828125, 0.023345947265625, 0.01117706298828125, -0.0066375732421875, -0.01120758056640625, -0.054412841796875, -0.033660888671875, -0.0300140380859375, -0.003543853759765625, 0.043182373046875, -0.0148468017578125, 0.0203704833984375, -0.01081085205078125, -0.0111083984375, -0.023345947265625, -0.040924072265625, 0.08099365234375, -0.037200927734375, -0.01050567626953125, 0.035888671875, 0.0411376953125, -0.021484375, 0.01959228515625, 0.0083770751953125, -0.028594970703125, -0.0019197463989257812, 0.01528167724609375, -0.017974853515625, -0.017486572265625, 0.0161285400390625, -0.04376220703125, 0.057220458984375, 0.01898193359375, 0.015533447265625, 0.0321044921875, 0.0158538818359375, -0.019500732421875, 0.003063201904296875, -0.03131103515625, 0.04559326171875, -0.00946807861328125, 0.04681396484375, -0.06353759765625, -0.016387939453125, 0.0036468505859375, 0.032806396484375, 0.0604248046875, 0.01192474365234375, -0.034271240234375, 0.01177978515625, 0.072509765625, 0.0283203125, -0.007701873779296875, 0.0435791015625, 0.01181793212890625, 0.0301666259765625, 0.08099365234375, -0.04107666015625, 0.0312347412109375, 0.0245513916015625, 0.0189056396484375, 0.0294036865234375, 0.018463134765625, 0.02032470703125, -0.0186004638671875, -0.040374755859375, -0.01222991943359375, -0.01149749755859375, 0.00847625732421875, -0.01084136962890625, -0.0012340545654296875, 0.049957275390625, 0.062347412109375, -0.06427001953125, -0.01641845703125, -0.036407470703125, 0.058197021484375, 0.006011962890625, -0.00798797607421875, 0.005718231201171875, -0.00015819072723388672, 0.008209228515625, -0.024261474609375, -0.024200439453125, 0.01088714599609375, -0.00684356689453125, 0.053924560546875, 0.0204620361328125, 0.01390838623046875, -0.0300445556640625, 0.03814697265625, 0.033233642578125, 0.049072265625, -0.0611572265625, -0.06622314453125, 0.031463623046875, 0.0120086669921875, -0.0182342529296875, 0.027374267578125, -0.0031795501708984375, -0.0306549072265625, 0.033599853515625, -0.027618408203125, -0.021392822265625, -0.0016498565673828125, 0.054901123046875, -0.018402099609375, -0.061737060546875, -0.00901031494140625, -0.038909912109375, -0.053802490234375, 0.0016727447509765625, 0.0210418701171875, 0.077880859375, 0.041961669921875, 0.04193115234375, 0.0013437271118164062, -0.040771484375, -0.0106964111328125, 0.0226898193359375, -0.0282745361328125, 0.0228271484375, -0.025054931640625, -0.0249176025390625, -0.0130462646484375, 0.0347900390625, 0.0469970703125, -0.0265045166015625, 0.0167388916015625, 0.001850128173828125, -0.006591796875, -0.00021708011627197266, 0.04022216796875, -0.007045745849609375, 0.052215576171875, -0.05682373046875, 0.05462646484375, 0.005237579345703125, -0.005207061767578125, -0.0316162109375, -0.0236053466796875, 0.060302734375, -0.009185791015625, 0.04486083984375, 0.0014276504516601562, 0.007572174072265625, 0.0419921875, 0.0083160400390625, 0.034515380859375, 0.03564453125, -0.03411865234375, 0.01044464111328125, -0.031768798828125, -0.07568359375, 0.01392364501953125, 0.039459228515625, -0.009185791015625, 0.0038051605224609375, 0.036529541015625, -0.0116424560546875, -0.0087432861328125, 0.009002685546875, 0.023956298828125, 0.01329803466796875, 0.01290130615234375, 0.031494140625, -0.045013427734375, -0.034820556640625, -0.0155792236328125, 0.0162506103515625, 0.001178741455078125, 0.04974365234375, 0.00826263427734375, 0.014434814453125, -0.0038280487060546875, 0.030670166015625, -0.031524658203125, -0.01094818115234375, 0.023162841796875, -0.00787353515625, 0.00858306884765625, -0.00998687744140625, -0.025482177734375, -0.0301513671875, 0.0689697265625, -0.043182373046875, -0.01084136962890625, -0.01131439208984375, 0.0312347412109375, -0.0548095703125, 0.00612640380859375, -0.041259765625, -0.040191650390625, -0.02825927734375, -0.0189361572265625, 0.0103607177734375, -0.0119476318359375, -0.00817108154296875, 0.0305328369140625, -0.020538330078125, -0.054443359375, 0.0125885009765625, -0.05078125, 0.0138092041015625, 0.0391845703125, 0.0158843994140625, -0.0084686279296875, 0.034149169921875, -0.01226806640625, 0.0350341796875, 0.003238677978515625, 0.077880859375, 0.00643157958984375, 0.03497314453125, -0.0267333984375, -0.0614013671875, -0.006427764892578125, 0.00001055002212524414, -0.0194244384765625, -0.05670166015625, 0.0029926300048828125, -0.0232696533203125, -0.041168212890625, -0.03277587890625, -0.03094482421875, 0.020965576171875, 0.034942626953125, -0.004047393798828125, 0.020660400390625, -0.042724609375, -0.0266876220703125, 0.044647216796875, -0.0072174072265625, -0.0258331298828125, -0.0026264190673828125, -0.0159912109375, 0.0140380859375, -0.0065765380859375, -0.029052734375, 0.0190582275390625, 0.01207733154296875, -0.034881591796875, 0.0252227783203125, -0.0242156982421875, -0.03717041015625, -0.0013132095336914062, 0.025238037109375, 0.05322265625, -0.03570556640625, -0.0253143310546875, 0.007717132568359375, 0.0164794921875, 0.05975341796875, -0.02520751953125, -0.011962890625, 0.027435302734375, 0.00246429443359375, -0.0322265625, -0.04541015625, 0.0173797607421875, -0.04876708984375, -0.00247955322265625, -0.006473541259765625, -0.00284576416015625, 0.0259246826171875, -0.015289306640625, -0.0396728515625, 0.07794189453125, -0.0170135498046875, -0.0176239013671875, -0.09100341796875, 0.036407470703125, 0.036376953125, -0.0231170654296875, -0.0382080078125, -0.00835418701171875, -0.0457763671875, 0.01267242431640625, -0.00351715087890625, 0.04742431640625, -0.0105438232421875, 0.00699615478515625, -0.019805908203125, 0.0063018798828125, 0.002948760986328125, -0.0022430419921875, 0.0169830322265625, -0.006252288818359375, 0.009613037109375, 0.0280609130859375, -0.050689697265625, -0.0137939453125, -0.0230712890625, 0.0411376953125, 0.0166473388671875, -0.0235748291015625, -0.0540771484375, -0.01398468017578125, 0.046295166015625, 0.0513916015625, 0.02587890625, -0.0307464599609375, 0.00624847412109375, -0.0001380443572998047, -0.077880859375, -0.024261474609375, 0.055938720703125, -0.08038330078125, -0.0186767578125, 0.00830078125, 0.0015306472778320312, 0.00696563720703125, -0.0185546875, -0.00717926025390625, 0.00119781494140625, -0.0028247833251953125, -0.0269012451171875, 0.007030487060546875, 0.03448486328125, 0.006511688232421875, -0.002262115478515625, 0.026763916015625, -0.032257080078125, 0.01032257080078125, 0.0186920166015625, -0.049896240234375, -0.0394287109375, 0.01444244384765625, -0.0061187744140625, 0.00901031494140625, -0.009490966796875, 0.0119781494140625, -0.01250457763671875, 0.03228759765625, 0.016357421875, -0.005069732666015625, -0.0251312255859375, -0.03167724609375, -0.0097198486328125, 0.04510498046875, -0.0126800537109375, 0.056854248046875, 0.01508331298828125, -0.0118560791015625, 0.004337310791015625, 0.040313720703125, -0.0261993408203125, -0.01470947265625, -0.009490966796875, -0.04827880859375, 0.0020732879638671875, -0.0203399658203125, -0.034576416015625, -0.032379150390625, -0.002674102783203125, 0.0219573974609375, -0.0226898193359375, 0.0216064453125 ]
2063cfe76bcbd1511970b06c7870da82b41c5789
Wordpress Stackexchange Q: Nonce best practices: hidden input vs. wp_localize_script? I noticed while looking at the HTML of an edit page that WordPress uses a lot of hidden input elements for storing nonces. Is there a significant advantage to using either this style of storing nonces for AJAX use or using those stored via the wp_localize_script style? A: Depends, will the form work with AJAX turned off? If so use an input and degrade gracefully. Otherwise, define nonces used by JS using JS for consistency, and to prevent grabbing stuff from the DOM
Q: Nonce best practices: hidden input vs. wp_localize_script? I noticed while looking at the HTML of an edit page that WordPress uses a lot of hidden input elements for storing nonces. Is there a significant advantage to using either this style of storing nonces for AJAX use or using those stored via the wp_localize_script style? A: Depends, will the form work with AJAX turned off? If so use an input and degrade gracefully. Otherwise, define nonces used by JS using JS for consistency, and to prevent grabbing stuff from the DOM A: Input fields are sent automatically, even when JavaScript is turned off. You can easily grab their values per JavaScript for AJAX requests, so there is no benefit coding them as JS object.
wordpress
{ "language": "en", "length": 124, "provenance": "stackexchange_00019.jsonl.gz:424577", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67428" }
[ 0.05950927734375, -0.02191162109375, -0.0014963150024414062, -0.0033588409423828125, -0.00003135204315185547, -0.050811767578125, 0.052337646484375, -0.01383209228515625, 0.025543212890625, 0.001552581787109375, -0.01678466796875, -0.019989013671875, -0.013427734375, -0.030059814453125, -0.0011682510375976562, -0.028472900390625, 0.00811004638671875, -0.01053619384765625, 0.02008056640625, 0.003993988037109375, 0.0012483596801757812, -0.0069732666015625, 0.0219879150390625, -0.0692138671875, 0.07220458984375, -0.08392333984375, 0.017578125, 0.01116943359375, 0.04608154296875, -0.0076446533203125, 0.0384521484375, -0.0237884521484375, 0.0247344970703125, 0.011932373046875, -0.0170440673828125, 0.048095703125, -0.01285552978515625, 0.0215911865234375, 0.0114898681640625, 0.011444091796875, 0.001491546630859375, 0.01314544677734375, 0.0004787445068359375, -0.0269927978515625, -0.0360107421875, -0.00948333740234375, -0.0042266845703125, 0.010009765625, -0.00392913818359375, 0.029571533203125, 0.03662109375, 0.01262664794921875, 0.036712646484375, 0.01009368896484375, 0.0024394989013671875, 0.01070404052734375, -0.06121826171875, 0.007228851318359375, 0.0341796875, 0.09283447265625, 0.0141754150390625, -0.0256500244140625, -0.0108642578125, -0.0748291015625, -0.006610870361328125, 0.010772705078125, -0.004451751708984375, 0.0341796875, -0.08209228515625, -0.018707275390625, 0.031524658203125, -0.05853271484375, 0.00787353515625, -0.036041259765625, -0.01428985595703125, 0.0489501953125, 0.0114898681640625, 0.0019044876098632812, 0.01290130615234375, -0.018585205078125, -0.057098388671875, 0.0078125, -0.057769775390625, -0.050933837890625, 0.008514404296875, -0.0171051025390625, -0.0286102294921875, 0.00684356689453125, -0.043914794921875, -0.011932373046875, -0.0205535888671875, -0.045166015625, -0.0609130859375, 0.0194091796875, 0.017578125, -0.029388427734375, -0.01349639892578125, -0.037261962890625, -0.0199432373046875, -0.034027099609375, 0.044952392578125, -0.0244903564453125, -0.0006990432739257812, 0.017242431640625, 0.0251922607421875, 0.06024169921875, 0.03363037109375, -0.0191497802734375, 0.0112762451171875, -0.0386962890625, -0.0224609375, 0.062286376953125, 0.046844482421875, -0.0236663818359375, 0.0240631103515625, -0.0226287841796875, -0.0023860931396484375, 0.07305908203125, 0.0208282470703125, -0.0293426513671875, -0.017242431640625, -0.01239776611328125, -0.0001850128173828125, -0.03155517578125, 0.0169830322265625, -0.02789306640625, -0.05072021484375, 0.044525146484375, 0.01461029052734375, 0.060546875, -0.042572021484375, 0.00690460205078125, 0.07318115234375, 0.0012836456298828125, -0.01369476318359375, -0.042816162109375, 0.0290069580078125, -0.00725555419921875, 0.0139923095703125, 0.032501220703125, -0.0224609375, -0.035430908203125, 0.01351165771484375, 0.01448822021484375, 0.0104217529296875, 0.029815673828125, 0.007450103759765625, 0.00521087646484375, 0.007808685302734375, -0.0267181396484375, 0.00785064697265625, -0.024749755859375, 0.041168212890625, 0.005725860595703125, -0.027069091796875, 0.001422882080078125, 0.030517578125, -0.01526641845703125, -0.05230712890625, -0.047119140625, 0.00852203369140625, -0.0010671615600585938, -0.00817108154296875, -0.055816650390625, -0.042572021484375, -0.01312255859375, -0.0171356201171875, 0.0016574859619140625, 0.007015228271484375, -0.0291900634765625, 0.033172607421875, -0.0220184326171875, -0.0281524658203125, -0.024261474609375, 0.002132415771484375, 0.01959228515625, -0.02655029296875, 0.049041748046875, 0.0305633544921875, 0.00785064697265625, 0.0103759765625, -0.042572021484375, 0.08782958984375, -0.0004405975341796875, -0.05108642578125, -0.006160736083984375, 0.0247802734375, 0.056884765625, 0.0212860107421875, 0.0160675048828125, 0.036224365234375, -0.0014486312866210938, -0.05780029296875, 0.03472900390625, 0.01409149169921875, -0.02685546875, -0.0258331298828125, -0.0208892822265625, -0.0026836395263671875, -0.015716552734375, 0.0195465087890625, -0.024444580078125, 0.0426025390625, 0.004852294921875, -0.024322509765625, 0.0159759521484375, -0.0270233154296875, 0.014923095703125, -0.031890869140625, 0.0102081298828125, 0.0233917236328125, 0.0184326171875, -0.032470703125, 0.0012559890747070312, 0.00746917724609375, 0.0203857421875, -0.0277252197265625, 0.06512451171875, 0.01214599609375, 0.0162811279296875, 0.05718994140625, -0.0445556640625, 0.056121826171875, 0.0213775634765625, -0.0113067626953125, 0.032745361328125, -0.02069091796875, 0.0243988037109375, 0.0295257568359375, 0.00879669189453125, 0.06500244140625, 0.0146942138671875, 0.039703369140625, 0.06378173828125, -0.0164337158203125, -0.022552490234375, -0.024139404296875, -0.06536865234375, 0.01263427734375, 0.044036865234375, 0.047454833984375, 0.0176849365234375, 0.005462646484375, 0.002696990966796875, 0.046356201171875, -0.0538330078125, 0.0236053466796875, -0.01200103759765625, -0.01568603515625, -0.0247955322265625, -0.00202178955078125, -0.015411376953125, 0.04150390625, -0.0301055908203125, -0.029815673828125, 0.05023193359375, -0.0709228515625, -0.03729248046875, 0.036590576171875, -0.01081085205078125, 0.0121002197265625, -0.01605224609375, 0.0239715576171875, -0.0138702392578125, 0.05914306640625, -0.034423828125, 0.0023899078369140625, -0.009185791015625, -0.0209197998046875, 0.02313232421875, 0.030853271484375, -0.06292724609375, 0.0145111083984375, 0.01568603515625, 0.0190582275390625, 0.03802490234375, -0.01800537109375, -0.025970458984375, 0.0179290771484375, 0.019744873046875, -0.0235595703125, 0.0195770263671875, 0.034423828125, -0.01554107666015625, 0.004215240478515625, -0.0036067962646484375, 0.0275726318359375, -0.013946533203125, 0.037109375, 0.01294708251953125, 0.0227203369140625, 0.0274505615234375, -0.003307342529296875, 0.030426025390625, 0.034149169921875, -0.025787353515625, -0.041107177734375, -0.0258941650390625, 0.0114898681640625, -0.022308349609375, -0.0065765380859375, 0.0673828125, 0.039093017578125, -0.03216552734375, 0.03759765625, -0.0209197998046875, 0.0809326171875, -0.0171356201171875, -0.0121002197265625, 0.0263824462890625, -0.100830078125, -0.05963134765625, 0.009918212890625, 0.005435943603515625, -0.00940704345703125, -0.040985107421875, -0.0224151611328125, 0.01702880859375, -0.0657958984375, -0.02423095703125, -0.059600830078125, -0.055328369140625, -0.005710601806640625, -0.01270294189453125, -0.0213623046875, 0.0155181884765625, 0.00917816162109375, 0.01459503173828125, -0.0186767578125, 0.004730224609375, 0.007122039794921875, -0.0083770751953125, -0.0007495880126953125, 0.0109100341796875, -0.003871917724609375, -0.004261016845703125, -0.0010166168212890625, 0.0157928466796875, -0.0006656646728515625, -0.0211029052734375, 0.01284027099609375, 0.0062713623046875, 0.001903533935546875, 0.01477813720703125, -0.004604339599609375, 0.01433563232421875, 0.02569580078125, 0.0127716064453125, -0.05517578125, 0.01099395751953125, 0.001338958740234375, -0.0265960693359375, 0.03253173828125, -0.00832366943359375, 0.038970947265625, 0.058868408203125, -0.04425048828125, -0.0116729736328125, 0.049652099609375, -0.04229736328125, 0.011505126953125, 0.01702880859375, 0.0005440711975097656, -0.0153350830078125, -0.04302978515625, -0.0162506103515625, 0.025665283203125, 0.01450347900390625, 0.023590087890625, 0.005229949951171875, 0.006893157958984375, 0.00440216064453125, -0.0189971923828125, -0.0034027099609375, 0.0185546875, -0.01396942138671875, 0.031646728515625, -0.0294952392578125, -0.004291534423828125, -0.00453948974609375, -0.0123443603515625, 0.0072479248046875, -0.04595947265625, -0.010711669921875, 0.005908966064453125, 0.0465087890625, 0.032501220703125, 0.0226898193359375, 0.0022525787353515625, -0.033050537109375, -0.00986480712890625, 0.04705810546875, -0.053924560546875, -0.0237579345703125, 0.01047515869140625, 0.06317138671875, -0.07928466796875, -0.0784912109375, 0.005161285400390625, -0.00980377197265625, -0.0124053955078125, 0.006587982177734375, -0.01233673095703125, -0.0026397705078125, -0.0003771781921386719, 0.04193115234375, 0.01160430908203125, -0.042144775390625, 0.0213165283203125, -0.017913818359375, 0.028411865234375, -0.027099609375, 0.039031982421875, -0.051055908203125, -0.003467559814453125, -0.035064697265625, -0.0179443359375, -0.0162200927734375, 0.01483154296875, 0.00916290283203125, 0.010894775390625, -0.037933349609375, -0.006786346435546875, 0.017608642578125, -0.052703857421875, 0.00251007080078125, -0.0270538330078125, 0.041412353515625, -0.058929443359375, -0.0177764892578125, -0.0283660888671875, -0.0323486328125, 0.0058746337890625, -0.01210784912109375, -0.049224853515625, -0.0323486328125, -0.027496337890625, -0.027923583984375, -0.0006480216979980469, -0.030792236328125, -0.0540771484375, -0.0205841064453125, -0.0267486572265625, 0.0175628662109375, -0.040374755859375, 0.037078857421875, -0.02130126953125, -0.06329345703125, 0.062408447265625, 0.03546142578125, 0.03228759765625, -0.0233917236328125, 0.06842041015625, 0.006526947021484375, -0.028106689453125, -0.008026123046875, 0.00408172607421875, -0.01380157470703125, -0.00675201416015625, 0.041839599609375, -0.0038089752197265625, 0.01416778564453125, 0.02288818359375, -0.040069580078125, -0.0245513916015625, 0.053741455078125, -0.004795074462890625, 0.019287109375, -0.03289794921875, 0.0133209228515625, 0.004291534423828125, -0.0186309814453125, 0.05560302734375, 0.033966064453125, -0.0203857421875, 0.037933349609375, -0.0159454345703125, -0.0284423828125, -0.012664794921875, 0.01541900634765625, -0.040924072265625, 0.003414154052734375, -0.0193939208984375, 0.0178375244140625, 0.032196044921875, -0.0180206298828125, 0.0044097900390625, -0.003047943115234375, 0.01143646240234375, -0.007671356201171875, -0.0276031494140625, -0.0207061767578125, 0.0285186767578125, -0.01183319091796875, 0.011199951171875, 0.0205230712890625, 0.0103302001953125, 0.00925445556640625, -0.0672607421875, -0.056549072265625, -0.087158203125, -0.0018482208251953125, 0.0196533203125, 0.077392578125, 0.0172271728515625, -0.007419586181640625, -0.048919677734375, 0.0309906005859375, 0.0193634033203125, -0.0005826950073242188, -0.0215606689453125, -0.0008168220520019531, -0.0184478759765625, 0.0167236328125, -0.01425933837890625, -0.036376953125, 0.08807373046875, -0.01739501953125, 0.028167724609375, -0.01471710205078125, 0.0012407302856445312, 0.030303955078125, 0.0019311904907226562, 0.03253173828125, -0.0088348388671875, -0.01824951171875, 0.01288604736328125, 0.014617919921875, 0.00582122802734375, -0.023651123046875, 0.03033447265625, 0.00598907470703125, -0.005153656005859375, 0.040557861328125, -0.0124664306640625, 0.01861572265625, -0.0151214599609375, 0.01611328125, 0.013916015625, -0.041748046875, -0.0014705657958984375, 0.0137786865234375, 0.006725311279296875, 0.01242828369140625, 0.00946807861328125, -0.0059661865234375, -0.0299835205078125, -0.023712158203125, 0.049530029296875, -0.05242919921875, 0.0014238357543945312, 0.0014677047729492188, -0.0009198188781738281, 0.0052337646484375, -0.00864410400390625, -0.0469970703125, -0.0126800537109375, -0.01280975341796875, 0.001708984375, 0.040985107421875, 0.035186767578125, 0.0026721954345703125, -0.04010009765625, 0.01375579833984375, 0.0026988983154296875, -0.0012426376342773438, 0.01535797119140625, -0.04742431640625, 0.00624847412109375, -0.0137786865234375, -0.03509521484375, -0.031982421875, -0.0377197265625, -0.0189666748046875, -0.031402587890625, 0.0125274658203125, -0.032135009765625, 0.03375244140625, -0.031494140625, -0.0010728836059570312, 0.02508544921875, 0.0024013519287109375, -0.047576904296875, 0.03326416015625, -0.03131103515625, 0.034698486328125, -0.016754150390625, 0.000507354736328125, -0.03912353515625, -0.005306243896484375, -0.007434844970703125, 0.0213775634765625, 0.0035228729248046875, -0.0361328125, -0.0082550048828125, -0.0196380615234375, 0.033660888671875, 0.01245880126953125, -0.0014600753784179688, 0.00476837158203125, 0.041778564453125, 0.01177978515625, 0.00962066650390625, -0.0022602081298828125, -0.0177459716796875, -0.0103759765625, -0.00787353515625, 0.055694580078125, 0.00595855712890625, 0.0128173828125, -0.00852203369140625, -0.033966064453125, -0.004245758056640625, 0.0264739990234375, -0.0010318756103515625, 0.010650634765625, 0.015960693359375, 0.0008840560913085938, 0.010955810546875, 0.003997802734375, 0.0207061767578125, 0.031280517578125, 0.01141357421875, -0.00742340087890625, -0.0014476776123046875, -0.0592041015625, -0.0174560546875, 0.0180816650390625, 0.00753021240234375, -0.012847900390625, 0.016021728515625, -0.0016613006591796875, 0.036102294921875, 0.058868408203125, 0.09747314453125, -0.094970703125, 0.0235443115234375, 0.031494140625, -0.0343017578125, -0.0087738037109375, 0.003093719482421875, -0.0013885498046875, -0.031036376953125, 0.036865234375, -0.01128387451171875, -0.017120361328125, 0.01290130615234375, -0.01009368896484375, -0.016204833984375, -0.038604736328125, -0.001491546630859375, 0.0098876953125, -0.004993438720703125, 0.0218658447265625, 0.0006728172302246094, 0.004276275634765625, -0.0251312255859375, -0.01537322998046875, 0.0037479400634765625, -0.0626220703125, -0.07281494140625, -0.027679443359375, -0.0037593841552734375, -0.0250091552734375, -0.0020275115966796875, -0.0164642333984375, 0.0804443359375, 0.050048828125, 0.00323486328125, -0.03155517578125, 0.0174102783203125, 0.05230712890625, -0.017333984375, -0.035308837890625, -0.0001913309097290039, 0.047027587890625, -0.0247039794921875, 0.02398681640625, -0.00432586669921875, -0.016357421875, 0.004077911376953125, 0.019134521484375, 0.039306640625, -0.01398468017578125, -0.017303466796875, 0.04547119140625, 0.0176849365234375, -0.02398681640625, -0.0269775390625, -0.006313323974609375, -0.042236328125, -0.02935791015625, -0.0345458984375, -0.06671142578125, 0.0292816162109375, -0.058685302734375, -0.075439453125, 0.08221435546875, 0.03338623046875, 0.03399658203125, 0.0009784698486328125, 0.030670166015625, -0.04046630859375, -0.01230621337890625, -0.004108428955078125, 0.0213470458984375, -0.0648193359375, 0.0164794921875, -0.002056121826171875, 0.0249786376953125, 0.01454925537109375, -0.0138092041015625, 0.00847625732421875, 0.0124969482421875, 0.00518798828125, 0.007122039794921875, 0.0355224609375, 0.01154327392578125, -0.025787353515625, 0.017578125, 0.023040771484375, 0.01641845703125, 0.041015625, -0.026580810546875, 0.0033130645751953125, 0.014251708984375, 0.0180511474609375, 0.06793212890625, 0.0153045654296875, 0.0088043212890625, 0.0309600830078125, 0.061309814453125, -0.060760498046875, 0.020751953125, 0.053985595703125, -0.0108795166015625, -0.0216522216796875, 0.035675048828125, 0.021759033203125, -0.045562744140625, -0.0377197265625, -0.026336669921875, 0.034149169921875, 0.01467132568359375, 0.041259765625, 0.04827880859375, 0.0086822509765625, 0.08941650390625, 0.042877197265625, 0.028076171875, 0.016021728515625, 0.0132293701171875, 0.004535675048828125, 0.02862548828125, 0.0292205810546875, -0.00008362531661987305, 0.00018405914306640625, 0.055816650390625, 0.0306396484375, -0.01983642578125, -0.022735595703125, -0.0006613731384277344, 0.03985595703125, 0.01216888427734375, -0.0234527587890625, 0.020843505859375, 0.00778961181640625, 0.051605224609375, 0.03155517578125, -0.0297088623046875, 0.016845703125, 0.00801849365234375, 0.031402587890625, 0.049530029296875, 0.0030384063720703125, -0.006984710693359375, -0.04547119140625, -0.02374267578125, 0.00032138824462890625, 0.0311279296875, 0.0390625, 0.03289794921875, 0.0533447265625, -0.01849365234375, -0.0195465087890625, 0.0006952285766601562, 0.0276031494140625, -0.0066070556640625, -0.01486968994140625, 0.01763916015625, 0.0311737060546875, 0.018280029296875, 0.041900634765625, 0.05059814453125, 0.068359375, 0.06549072265625, -0.0063934326171875, 0.00811004638671875, 0.056884765625, -0.0088958740234375, 0.0219573974609375, -0.010894775390625, 0.01236724853515625, 0.0298309326171875, -0.0228271484375, -0.0038433074951171875, 0.0085906982421875, 0.048736572265625, -0.0041656494140625, 0.014617919921875, 0.007175445556640625, -0.03631591796875, 0.0589599609375, 0.01611328125, 0.0906982421875, 0.03314208984375, -0.0139007568359375, -0.0221710205078125, -0.006572723388671875, -0.0003941059112548828, 0.0271148681640625, 0.037261962890625, 0.00855255126953125, 0.0028324127197265625, 0.05419921875, -0.0322265625, -0.00760650634765625, 0.03277587890625, 0.0292205810546875, -0.005008697509765625, 0.008636474609375, 0.00943756103515625, -0.04217529296875, -0.0177154541015625, -0.0222625732421875, 0.0285491943359375, 0.00293731689453125, 0.01198577880859375, 0.00762176513671875, 0.03399658203125, 0.0014286041259765625, 0.024810791015625, -0.027374267578125, 0.01062774658203125, 0.00733184814453125, 0.00955963134765625, 0.0037631988525390625, -0.01092529296875, -0.0034923553466796875, 0.0106353759765625, -0.006877899169921875, -0.06494140625, 0.0010824203491210938, -0.023651123046875, 0.01053619384765625, 0.00884246826171875, 0.00540924072265625, -0.046539306640625, -0.047393798828125, -0.03192138671875, 0.001316070556640625, -0.018585205078125, -0.0213775634765625, -0.013916015625, 0.028045654296875, -0.049346923828125, -0.01131439208984375, 0.0064697265625, -0.04058837890625, -0.015167236328125, 0.00920867919921875, -0.03216552734375, 0.04925537109375, 0.012786865234375, -0.016082763671875, 0.01020050048828125, 0.0433349609375, -0.050262451171875, 0.0246124267578125, 0.0180511474609375, -0.03509521484375, -0.005523681640625, 0.04119873046875, 0.03472900390625, 0.023773193359375, -0.055419921875, -0.002895355224609375, -0.035308837890625, 0.034423828125, -0.0129547119140625, -0.038421630859375, 0.0147705078125, 0.019927978515625, -0.004055023193359375, 0.0120849609375, -0.037078857421875, -0.01183319091796875, 0.0283355712890625, -0.00879669189453125, -0.0291595458984375, -0.011383056640625, -0.0316162109375, 0.048980712890625, -0.00501251220703125, 0.046173095703125, -0.028778076171875, -0.02734375, -0.05438232421875, -0.0251922607421875, -0.023681640625, 0.03839111328125, 0.00658416748046875, 0.034332275390625, 0.006008148193359375, -0.0236968994140625, 0.0096893310546875, 0.0740966796875, 0.045684814453125, 0.1121826171875, 0.037872314453125, -0.023590087890625, -0.0018453598022460938, 0.0037288665771484375, 0.005489349365234375, -0.0131072998046875, 0.004489898681640625, -0.029052734375, -0.0101776123046875, -0.035400390625, 0.00281524658203125, -0.0013856887817382812, -0.058624267578125, -0.1136474609375, 0.07879638671875, -0.034088134765625, -0.0377197265625, 0.015472412109375, 0.00955963134765625, 0.0252227783203125, -0.044219970703125, 0.005603790283203125, -0.039306640625, -0.03338623046875, -0.031951904296875, -0.00894927978515625, -0.014801025390625, 0.025665283203125, -0.006610870361328125, -0.0321044921875, -0.01056671142578125, 0.001293182373046875, -0.03631591796875, 0.010528564453125, 0.01190948486328125, 0.0094757080078125, 0.044891357421875, -0.03485107421875, -0.00711822509765625, -0.0228729248046875, 0.01288604736328125, -0.0005316734313964844, 0.049072265625, -0.023101806640625, 0.02618408203125, 0.0762939453125, 0.042816162109375, 0.0245819091796875, -0.041259765625, 0.0145263671875, -0.0004024505615234375, -0.02252197265625, -0.021514892578125, 0.025177001953125, -0.051422119140625, -0.0268707275390625, -0.00777435302734375, -0.017059326171875, -0.0034694671630859375, 0.007781982421875, -0.0131378173828125, 0.007701873779296875, 0.038330078125, -0.03656005859375, 0.0176849365234375, -0.051239013671875, 0.0386962890625, -0.01593017578125, -0.0008420944213867188, 0.036376953125, 0.021820068359375, 0.0290374755859375, 0.06982421875, -0.01947021484375, 0.01519775390625, -0.01227569580078125, 0.033966064453125, 0.003238677978515625, 0.0214080810546875, -0.044891357421875, 0.0135345458984375, -0.0022029876708984375, 0.04119873046875, -0.0014295578002929688, 0.0706787109375, 0.0239105224609375, 0.0301513671875, 0.03326416015625, -0.040374755859375, -0.041900634765625, -0.03363037109375, -0.0516357421875, 0.0145721435546875, 0.01983642578125, 0.017486572265625, 0.0872802734375, -0.00333404541015625, 0.03155517578125, -0.01029205322265625, 0.00994110107421875, 0.003353118896484375, -0.0017518997192382812, -0.023529052734375, -0.01043701171875, -0.001766204833984375 ]
219cd061dd6fd0a62fa236c62b238c17c33db7ed
Wordpress Stackexchange Q: Force display name as full name Is there a way I can force all users display names to be Firstname Lastname or alternatively change this to be the default? A: This is set during user registration. You can change the value per filter 'user_register'. Sample code, not tested: /* Plugin Name: First name plus last name as default display name. */ add_action( 'user_register', 'wpse_67444_first_last_display_name' ); function wpse_67444_first_last_display_name( $user_id ) { $data = get_userdata( $user_id ); // check if these data are available in your real code! wp_update_user( array ( 'ID' => $user_id, 'display_name' => "$data->first_name $data->last_name" ) ); }
Q: Force display name as full name Is there a way I can force all users display names to be Firstname Lastname or alternatively change this to be the default? A: This is set during user registration. You can change the value per filter 'user_register'. Sample code, not tested: /* Plugin Name: First name plus last name as default display name. */ add_action( 'user_register', 'wpse_67444_first_last_display_name' ); function wpse_67444_first_last_display_name( $user_id ) { $data = get_userdata( $user_id ); // check if these data are available in your real code! wp_update_user( array ( 'ID' => $user_id, 'display_name' => "$data->first_name $data->last_name" ) ); } A: A better solution is to update the display name every time the user is updated. I'm resorting this old thread because I cannot find this solution anywhere. /* First name as default display name. */ add_action( 'profile_update', 'set_display_name', 10 ); function set_display_name( $user_id ) { $data = get_userdata( $user_id ); if($data->first_name) { remove_action( 'profile_update', 'set_display_name', 10 ); // profile_update is called by wp_update_user, so we need to remove it before call, to avoid infinite recursion wp_update_user( array ( 'ID' => $user_id, 'display_name' => "$data->first_name" ) ); add_action( 'profile_update', 'set_display_name', 10 ); } }
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:424583", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67444" }
[ 0.0233917236328125, -0.0012178421020507812, -0.040008544921875, -0.030548095703125, 0.0223846435546875, -0.0247039794921875, 0.01849365234375, 0.00666046142578125, 0.03985595703125, -0.00943756103515625, 0.012481689453125, -0.0302886962890625, 0.00188446044921875, -0.0501708984375, -0.0072784423828125, -0.0307159423828125, 0.01434326171875, 0.01422882080078125, 0.0157623291015625, -0.0127105712890625, 0.028900146484375, -0.003978729248046875, -0.01392364501953125, 0.04058837890625, -0.00939178466796875, -0.01026153564453125, 0.0745849609375, -0.0179290771484375, -0.0024204254150390625, -0.0277862548828125, 0.01282501220703125, 0.0026569366455078125, 0.005855560302734375, 0.0162200927734375, -0.016082763671875, 0.0089111328125, 0.00540924072265625, 0.01398468017578125, 0.012939453125, 0.0182342529296875, 0.0222625732421875, -0.007598876953125, -0.07452392578125, 0.050018310546875, -0.0489501953125, -0.07275390625, 0.058929443359375, 0.00298309326171875, 0.034759521484375, 0.04443359375, 0.018341064453125, 0.03851318359375, 0.014892578125, -0.0052337646484375, 0.001010894775390625, 0.005413055419921875, -0.03228759765625, 0.01299285888671875, 0.034271240234375, 0.03912353515625, -0.0054473876953125, -0.019622802734375, 0.008880615234375, -0.045257568359375, 0.0267181396484375, -0.021209716796875, -0.0118408203125, 0.0238800048828125, -0.0223541259765625, 0.051605224609375, 0.042083740234375, -0.033966064453125, -0.0124053955078125, 0.0163116455078125, -0.044677734375, -0.0008068084716796875, 0.014434814453125, 0.01151275634765625, 0.033111572265625, -0.00876617431640625, -0.0103759765625, -0.024169921875, -0.044281005859375, -0.00958251953125, -0.005336761474609375, 0.0086212158203125, -0.016998291015625, -0.0008177757263183594, -0.0104827880859375, -0.022308349609375, -0.00460052490234375, -0.01390838623046875, -0.060211181640625, 0.0263671875, -0.001026153564453125, -0.0167999267578125, 0.0498046875, 0.06878662109375, -0.03973388671875, -0.0283966064453125, -0.0235748291015625, -0.01483917236328125, -0.041717529296875, -0.0080108642578125, -0.0024738311767578125, 0.072265625, 0.054962158203125, 0.045196533203125, 0.005947113037109375, -0.006679534912109375, 0.0112762451171875, 0.006610870361328125, -0.033599853515625, 0.004856109619140625, -0.005878448486328125, 0.027252197265625, -0.06414794921875, 0.0287628173828125, -0.033203125, 0.05413818359375, 0.006725311279296875, 0.015533447265625, -0.0123748779296875, -0.0117340087890625, 0.014862060546875, -0.0003726482391357422, -0.028289794921875, -0.0081787109375, -0.051422119140625, 0.0019893646240234375, -0.02227783203125, 0.0240936279296875, 0.090576171875, 0.05450439453125, 0.009765625, -0.0204315185546875, -0.01303863525390625, -0.00592041015625, -0.0189971923828125, 0.0633544921875, -0.07330322265625, -0.03912353515625, 0.0408935546875, -0.04937744140625, 0.0302886962890625, 0.0284423828125, 0.0172271728515625, 0.006534576416015625, 0.00799560546875, -0.0416259765625, 0.025909423828125, -0.031982421875, 0.0023822784423828125, 0.0270233154296875, -0.00405120849609375, 0.032958984375, -0.005950927734375, 0.012054443359375, -0.03924560546875, 0.01035308837890625, -0.004215240478515625, -0.00664520263671875, -0.0012407302856445312, -0.0296630859375, -0.03582763671875, -0.00551605224609375, -0.0171051025390625, -0.0032291412353515625, 0.0242767333984375, 0.022735595703125, -0.01123809814453125, 0.05157470703125, 0.0194244384765625, 0.0226898193359375, 0.001926422119140625, 0.0006985664367675781, -0.0007700920104980469, 0.0060882568359375, 0.0105743408203125, 0.0014677047729492188, -0.041717529296875, -0.04437255859375, 0.0311279296875, -0.01861572265625, -0.029296875, 0.01097869873046875, 0.01076507568359375, 0.037384033203125, 0.002170562744140625, 0.00792694091796875, 0.018951416015625, 0.0193328857421875, -0.0036067962646484375, -0.005157470703125, -0.003894805908203125, -0.03594970703125, 0.0183868408203125, 0.00441741943359375, -0.000995635986328125, -0.00012314319610595703, 0.052490234375, -0.0190887451171875, 0.021942138671875, -0.053436279296875, -0.051239013671875, -0.0188140869140625, -0.01207733154296875, 0.0249481201171875, 0.005443572998046875, -0.001537322998046875, 0.01416015625, -0.01116943359375, -0.0086212158203125, -0.0295257568359375, -0.038787841796875, 0.00586700439453125, -0.00885772705078125, 0.0282135009765625, 0.01001739501953125, 0.017242431640625, 0.0265350341796875, -0.039459228515625, 0.02557373046875, 0.0006346702575683594, -0.01177215576171875, -0.0232086181640625, -0.01302337646484375, -0.02655029296875, 0.005096435546875, -0.0278778076171875, 0.06182861328125, 0.039093017578125, -0.0106353759765625, 0.0120849609375, -0.02880859375, -0.01151275634765625, -0.02166748046875, -0.0693359375, 0.02001953125, 0.044342041015625, 0.01373291015625, -0.0171051025390625, -0.0021209716796875, 0.0390625, 0.0537109375, 0.041290283203125, 0.044677734375, -0.001129150390625, 0.044769287109375, 0.048187255859375, -0.07421875, 0.0141448974609375, 0.04827880859375, -0.043212890625, 0.036529541015625, 0.064453125, -0.023284912109375, -0.0202484130859375, 0.031036376953125, -0.03680419921875, 0.0030689239501953125, -0.050262451171875, -0.0014743804931640625, -0.0265350341796875, -0.03326416015625, 0.0078125, -0.031890869140625, -0.028076171875, -0.0234375, 0.024017333984375, 0.041046142578125, -0.043701171875, -0.0159454345703125, -0.0019445419311523438, 0.0290679931640625, -0.04022216796875, -0.042510986328125, 0.0280303955078125, -0.0225677490234375, -0.028839111328125, 0.00786590576171875, -0.029754638671875, 0.00426483154296875, 0.01206207275390625, 0.0484619140625, -0.0347900390625, 0.031829833984375, 0.03173828125, -0.046112060546875, -0.04913330078125, -0.0159912109375, 0.050445556640625, -0.0309906005859375, 0.048553466796875, -0.03424072265625, -0.01268768310546875, -0.038818359375, -0.0183563232421875, 0.02703857421875, -0.04376220703125, 0.01029205322265625, 0.055389404296875, -0.00984954833984375, -0.00861358642578125, -0.0037384033203125, -0.014190673828125, 0.0060577392578125, -0.01062774658203125, -0.0191192626953125, -0.022705078125, -0.03070068359375, 0.0303802490234375, -0.00013113021850585938, 0.08782958984375, -0.03289794921875, -0.05517578125, 0.0009303092956542969, 0.0238494873046875, -0.02325439453125, -0.024383544921875, -0.055755615234375, 0.00037097930908203125, -0.0108642578125, 0.0174713134765625, 0.0139617919921875, 0.0218353271484375, 0.0047149658203125, 0.002613067626953125, 0.03192138671875, -0.035064697265625, -0.04547119140625, -0.032989501953125, -0.036285400390625, 0.0043182373046875, 0.01189422607421875, -0.0207672119140625, 0.00696563720703125, 0.0069122314453125, 0.00754547119140625, -0.0308990478515625, 0.007015228271484375, 0.012237548828125, -0.0164947509765625, -0.025146484375, -0.0018224716186523438, -0.072509765625, 0.004856109619140625, -0.003620147705078125, -0.0186767578125, -0.0166778564453125, 0.043670654296875, -0.003879547119140625, -0.0118865966796875, -0.04754638671875, -0.00119781494140625, 0.049224853515625, 0.00209808349609375, -0.02203369140625, 0.048583984375, -0.04791259765625, 0.005115509033203125, 0.0291290283203125, -0.005390167236328125, -0.01462554931640625, -0.03582763671875, -0.0175628662109375, 0.0234527587890625, 0.00882720947265625, -0.0186614990234375, 0.0104522705078125, 0.01299285888671875, -0.01158905029296875, -0.05517578125, -0.01393890380859375, -0.00814056396484375, 0.01088714599609375, 0.0027523040771484375, -0.0352783203125, 0.0006337165832519531, -0.0167236328125, -0.00959014892578125, -0.0016984939575195312, 0.00567626953125, 0.00725555419921875, -0.106201171875, 0.0452880859375, -0.08697509765625, -0.052276611328125, -0.044036865234375, -0.00911712646484375, 0.03436279296875, 0.11480712890625, -0.02783203125, -0.010986328125, 0.016448974609375, 0.0091094970703125, -0.050384521484375, 0.0011777877807617188, -0.067626953125, -0.00860595703125, -0.035797119140625, -0.0018100738525390625, -0.02630615234375, -0.01494598388671875, 0.0229644775390625, -0.07867431640625, 0.0233612060546875, -0.0504150390625, 0.0307159423828125, -0.0213470458984375, 0.0021038055419921875, 0.007686614990234375, -0.0178375244140625, -0.01168060302734375, -0.00811004638671875, -0.0305938720703125, -0.07525634765625, -0.0147247314453125, -0.003955841064453125, 0.05474853515625, 0.00963592529296875, -0.037628173828125, -0.02264404296875, 0.045654296875, 0.0230255126953125, 0.043609619140625, 0.022705078125, -0.0202789306640625, 0.05072021484375, 0.00982666015625, 0.042083740234375, -0.005489349365234375, -0.017364501953125, -0.0267791748046875, -0.0399169921875, 0.0213623046875, 0.0003638267517089844, 0.0653076171875, 0.01287078857421875, -0.010345458984375, -0.0224456787109375, -0.0282440185546875, -0.009002685546875, 0.0270538330078125, -0.001232147216796875, 0.0027294158935546875, -0.048370361328125, -0.034576416015625, 0.0290374755859375, -0.056640625, -0.00921630859375, 0.0218048095703125, 0.07598876953125, 0.01410675048828125, 0.01007080078125, -0.031646728515625, -0.01287841796875, 0.055694580078125, 0.0224609375, 0.024566650390625, 0.03521728515625, -0.0257415771484375, 0.0399169921875, 0.0312042236328125, 0.0016431808471679688, 0.0207977294921875, 0.03546142578125, 0.005950927734375, -0.0462646484375, 0.038482666015625, 0.020660400390625, -0.06451416015625, -0.0144195556640625, 0.0017404556274414062, -0.009918212890625, -0.0010156631469726562, 0.016143798828125, 0.02996826171875, -0.01529693603515625, -0.0328369140625, -0.014495849609375, 0.006992340087890625, 0.0139923095703125, -0.017913818359375, -0.006244659423828125, 0.0197906494140625, -0.05438232421875, -0.03997802734375, -0.03265380859375, -0.016998291015625, -0.078369140625, 0.035736083984375, 0.006824493408203125, -0.02349853515625, 0.00670623779296875, 0.007411956787109375, -0.0145416259765625, 0.083740234375, -0.015838623046875, -0.02459716796875, -0.033599853515625, -0.0234375, 0.0421142578125, 0.0255126953125, 0.037689208984375, 0.04205322265625, 0.03680419921875, -0.0173492431640625, -0.007678985595703125, 0.027374267578125, 0.01119232177734375, -0.040679931640625, 0.037628173828125, 0.025909423828125, -0.0020542144775390625, -0.0195465087890625, 0.0714111328125, 0.052093505859375, 0.003360748291015625, -0.033599853515625, 0.03802490234375, 0.02630615234375, 0.01312255859375, 0.0031681060791015625, 0.0168609619140625, -0.01273345947265625, -0.015838623046875, 0.0024662017822265625, -0.0223388671875, 0.0162353515625, -0.0068359375, 0.026824951171875, 0.027313232421875, 0.00406646728515625, 0.0190277099609375, -0.0266571044921875, 0.0133819580078125, 0.031341552734375, -0.034820556640625, -0.053192138671875, -0.03643798828125, 0.0019073486328125, 0.05718994140625, -0.04473876953125, 0.0023174285888671875, -0.0016765594482421875, 0.006153106689453125, 0.0111236572265625, 0.00001138448715209961, -0.0231475830078125, -0.022247314453125, -0.0117034912109375, -0.019378662109375, 0.0032558441162109375, 0.01187896728515625, -0.01203155517578125, -0.01232147216796875, -0.0263824462890625, -0.0205535888671875, 0.06268310546875, -0.0438232421875, 0.03179931640625, -0.023345947265625, 0.0172882080078125, -0.06097412109375, 0.0160980224609375, 0.048614501953125, 0.061279296875, -0.0850830078125, 0.0216522216796875, -0.018768310546875, 0.0030689239501953125, 0.0169830322265625, -0.02166748046875, -0.053497314453125, -0.040740966796875, 0.01424407958984375, 0.0263824462890625, -0.026092529296875, -0.0369873046875, -0.017852783203125, 0.00846099853515625, 0.0196533203125, 0.048187255859375, -0.01229095458984375, 0.0225677490234375, 0.00238800048828125, 0.0235443115234375, -0.0030994415283203125, -0.0289154052734375, -0.04461669921875, 0.007717132568359375, 0.01451873779296875, 0.01390838623046875, -0.03704833984375, -0.0173187255859375, -0.028839111328125, -0.028717041015625, 0.05291748046875, -0.0283050537109375, 0.0187225341796875, 0.007259368896484375, 0.0196533203125, -0.0121612548828125, -0.0341796875, -0.008453369140625, -0.007904052734375, 0.0241546630859375, -0.030731201171875, -0.0340576171875, -0.01149749755859375, -0.03997802734375, 0.0478515625, 0.01055908203125, 0.0168914794921875, -0.00420379638671875, -0.07379150390625, 0.042388916015625, -0.02593994140625, 0.0077972412109375, 0.023651123046875, -0.0252685546875, 0.03729248046875, 0.0018587112426757812, -0.01247406005859375, -0.06378173828125, 0.0033969879150390625, 0.0254669189453125, 0.0039215087890625, -0.0125579833984375, 0.03057861328125, -0.0015592575073242188, 0.035797119140625, 0.062103271484375, 0.07440185546875, -0.08953857421875, 0.037139892578125, 0.0088653564453125, -0.0161590576171875, 0.04901123046875, 0.0085906982421875, -0.01215362548828125, 0.0165557861328125, 0.01971435546875, -0.052642822265625, -0.0269317626953125, 0.01558685302734375, 0.0036373138427734375, -0.0159912109375, -0.0118865966796875, 0.053497314453125, 0.01248931884765625, 0.01666259765625, -0.03692626953125, -0.03436279296875, -0.0188446044921875, -0.0194854736328125, 0.03265380859375, 0.0116424560546875, -0.022674560546875, -0.069091796875, -0.0023555755615234375, 0.0188140869140625, -0.033966064453125, 0.08648681640625, -0.01551055908203125, 0.0292205810546875, 0.01409149169921875, -0.005954742431640625, 0.032257080078125, -0.035369873046875, -0.00514984130859375, 0.0036907196044921875, -0.03082275390625, -0.01171875, 0.015625, -0.021209716796875, 0.021026611328125, -0.00640869140625, -0.0166473388671875, -0.03179931640625, -0.07647705078125, 0.085205078125, -0.00128173828125, -0.0222625732421875, -0.016754150390625, 0.044891357421875, -0.006626129150390625, -0.020660400390625, 0.024658203125, -0.0201263427734375, -0.01146697998046875, -0.0145263671875, -0.06591796875, -0.04974365234375, -0.06329345703125, -0.06964111328125, 0.047760009765625, -0.0186920166015625, 0.062469482421875, 0.00934600830078125, -0.00699615478515625, 0.023162841796875, -0.01497650146484375, -0.0194244384765625, 0.04022216796875, -0.0298309326171875, 0.05413818359375, -0.02667236328125, 0.002803802490234375, 0.0124969482421875, 0.032958984375, 0.002140045166015625, 0.017059326171875, -0.0216827392578125, 0.0147857666015625, 0.0206146240234375, 0.0013980865478515625, -0.01226043701171875, 0.04498291015625, -0.0196075439453125, -0.0008063316345214844, 0.0190277099609375, 0.01508331298828125, 0.036865234375, -0.012939453125, -0.049224853515625, 0.001705169677734375, 0.02386474609375, 0.0341796875, -0.015869140625, 0.0248565673828125, -0.0207061767578125, -0.0181121826171875, 0.0234527587890625, -0.016143798828125, -0.0032405853271484375, 0.0423583984375, 0.02593994140625, 0.0027561187744140625, -0.0107574462890625, -0.0101318359375, 0.0428466796875, 0.0232086181640625, -0.016998291015625, 0.042724609375, 0.004535675048828125, -0.0206298828125, 0.0343017578125, 0.0016384124755859375, 0.0079803466796875, 0.0218353271484375, 0.0235748291015625, 0.0457763671875, 0.01015472412109375, -0.032257080078125, -0.0196533203125, 0.0753173828125, 0.053375244140625, -0.034332275390625, -0.056915283203125, 0.0099029541015625, -0.0007610321044921875, 0.0081024169921875, 0.01715087890625, 0.01369476318359375, -0.035125732421875, 0.0109405517578125, -0.049957275390625, 0.046356201171875, 0.03662109375, 0.007076263427734375, -0.02191162109375, -0.0073699951171875, -0.0428466796875, 0.05023193359375, -0.016082763671875, 0.0171051025390625, 0.029296875, 0.0026187896728515625, -0.032745361328125, 0.052703857421875, 0.018829345703125, 0.0194549560546875, -0.0308990478515625, 0.040313720703125, 0.0178070068359375, 0.0202178955078125, -0.021331787109375, 0.000827789306640625, 0.0034656524658203125, 0.0289764404296875, -0.00263214111328125, -0.0033550262451171875, 0.02398681640625, 0.018463134765625, -0.014801025390625, -0.01177215576171875, 0.0103912353515625, -0.0241241455078125, 0.01116180419921875, -0.01690673828125, -0.0078887939453125, -0.019195556640625, -0.01171875, -0.033782958984375, 0.0279541015625, -0.00693511962890625, -0.01499176025390625, 0.00916290283203125, -0.005950927734375, -0.04461669921875, 0.057769775390625, 0.0013132095336914062, 0.08984375, 0.00585174560546875, -0.08099365234375, -0.006427764892578125, -0.063720703125, -0.0011425018310546875, 0.0230560302734375, 0.033233642578125, -0.005603790283203125, 0.035064697265625, -0.02569580078125, -0.041748046875, 0.023468017578125, 0.0016632080078125, 0.0209503173828125, 0.0491943359375, -0.0289459228515625, -0.018524169921875, -0.04595947265625, 0.0112152099609375, -0.02728271484375, -0.019012451171875, -0.0010156631469726562, 0.06732177734375, 0.0031337738037109375, 0.00492095947265625, -0.07073974609375, -0.047027587890625, 0.00606536865234375, -0.054412841796875, -0.00501251220703125, 0.021026611328125, -0.037689208984375, 0.00925445556640625, -0.06854248046875, 0.00968170166015625, 0.0222930908203125, -0.01351165771484375, 0.023956298828125, -0.0215301513671875, 0.007297515869140625, -0.0255126953125, 0.0477294921875, -0.01490020751953125, -0.062347412109375, -0.036865234375, 0.047760009765625, 0.01064300537109375, 0.035919189453125, -0.043548583984375, -0.0089569091796875, 0.0138702392578125, -0.0731201171875, 0.040924072265625, -0.04449462890625, 0.05352783203125, 0.0205078125, 0.0357666015625, -0.0014200210571289062, -0.032196044921875, -0.030731201171875, -0.033782958984375, 0.0063934326171875, -0.02679443359375, -0.0239410400390625, -0.0244903564453125, 0.0310211181640625, 0.007724761962890625, 0.05133056640625, -0.001049041748046875, 0.0138702392578125, 0.0012979507446289062, 0.01079559326171875, -0.01434326171875, -0.0804443359375, -0.027557373046875, -0.01528167724609375, -0.0087127685546875, 0.03173828125, -0.00891876220703125, -0.0625, -0.068359375, -0.0122833251953125, 0.019317626953125, -0.01259613037109375, -0.028076171875, -0.0102081298828125, -0.024566650390625, 0.0189361572265625, -0.031280517578125, -0.057525634765625, 0.028839111328125, 0.038543701171875, -0.0112457275390625, 0.0128326416015625, -0.01500701904296875, -0.0188446044921875, 0.01309967041015625, -0.0119171142578125, 0.011962890625, 0.016845703125, -0.0171966552734375, -0.0171661376953125, -0.052764892578125, 0.0235748291015625, -0.0229644775390625, -0.0224761962890625, -0.00293731689453125, 0.004901885986328125, 0.015655517578125, -0.055267333984375, -0.0104522705078125, -0.041015625, -0.0057830810546875, -0.00798797607421875, 0.01471710205078125, 0.04632568359375, -0.0193023681640625, -0.03985595703125, 0.05096435546875, -0.0090179443359375, -0.0309295654296875, -0.005062103271484375, -0.005687713623046875, -0.0181121826171875, 0.04827880859375, 0.0195159912109375, -0.02783203125, -0.006195068359375, 0.030364990234375, -0.0056304931640625, 0.0204010009765625, -0.00855255126953125, 0.007663726806640625, 0.008392333984375, 0.03167724609375, 0.0294189453125, -0.03173828125, 0.0113372802734375, 0.01226806640625, 0.005504608154296875, 0.0303497314453125, -0.0293731689453125, -0.0097808837890625, -0.01171112060546875, -0.01904296875, -0.005802154541015625, -0.07086181640625, -0.0028324127197265625, -0.004283905029296875, 0.040130615234375, 0.00862884521484375, 0.007801055908203125, -0.0489501953125, -0.0455322265625, -0.047393798828125, -0.006069183349609375, -0.00408172607421875, 0.01024627685546875, -0.05877685546875, 0.00274658203125, 0.005573272705078125, -0.05133056640625, 0.0006365776062011719, 0.007053375244140625, -0.0643310546875, 0.0250701904296875, 0.00220489501953125, -0.02691650390625, -0.01367950439453125, 0.01140594482421875, 0.0216827392578125, -0.037353515625, -0.0693359375, -0.01084136962890625, 0.008514404296875, -0.058135986328125, -0.08941650390625, 0.0034275054931640625, 0.0135345458984375, -0.01141357421875, -0.01293182373046875, 0.026611328125, -0.0003113746643066406, 0.00765228271484375, -0.0195465087890625, -0.0031890869140625, 0.0289459228515625, -0.0166168212890625, 0.034820556640625, 0.0182342529296875, 0.0235443115234375, 0.006519317626953125, 0.01806640625, -0.05615234375, -0.0215911865234375, -0.012542724609375, -0.0272216796875, -0.0030956268310546875, 0.041229248046875, 0.06884765625, -0.0203399658203125, 0.017791748046875, 0.015228271484375, -0.00344085693359375, 0.0252532958984375, -0.007495880126953125, -0.0265960693359375, -0.0280303955078125, -0.0197906494140625 ]
aa866e7fe9cb2826c34e4cc85f960ddde78eb50c
Wordpress Stackexchange Q: Define Wordpress image size in img tag Is there a way to output a image in a pre-determined size (Ie; using add_image_size) using just the img tag? For example, how can I make sure that the image that is echoed using this tag is the exact size I determined in functions.php under 'slider' <img src="<?php echo of_get_option('slideshow_1');?>" alt="#"/> I hope that made some sort of sense. A: How about PHP Function getimagesize() <? $sImageurl = of_get_option('slideshow_1'); list($iWidthinpx, $iHeightinpx) = getimagesize($sImageurl); echo '<img src="' . $sImageurl . '" width="' . $iWidthinpx. '" height="' . $iHeightinpx. '" alt="#"/>'; ?> or if you know the attachment id instead of the attachment url you could use <? $aImagedata = wp_get_attachment_image_src($iAttachmentid, 'my-image-size', false); list($sImageurl, $iWidthinpx, $iHeightinpx) = $aImagedata; echo '<img src="' . $sImageurl . '" width="' . $iWidthinpx. '" height="' . $iHeightinpx. '" alt="#"/>'; ?> and if you don't know the $iAttachmentid you could use the following to get it (taken from http://wordpress.org/support/topic/need-to-get-attachment-id-by-image-url): global $wpdb; $sImageurl = of_get_option('slideshow_1'); $sQuery = "SELECT ID FROM {$wpdb->posts} WHERE guid='$sImageurl'"; $iAttachmentid = $wpdb->get_var($sQuery );
Q: Define Wordpress image size in img tag Is there a way to output a image in a pre-determined size (Ie; using add_image_size) using just the img tag? For example, how can I make sure that the image that is echoed using this tag is the exact size I determined in functions.php under 'slider' <img src="<?php echo of_get_option('slideshow_1');?>" alt="#"/> I hope that made some sort of sense. A: How about PHP Function getimagesize() <? $sImageurl = of_get_option('slideshow_1'); list($iWidthinpx, $iHeightinpx) = getimagesize($sImageurl); echo '<img src="' . $sImageurl . '" width="' . $iWidthinpx. '" height="' . $iHeightinpx. '" alt="#"/>'; ?> or if you know the attachment id instead of the attachment url you could use <? $aImagedata = wp_get_attachment_image_src($iAttachmentid, 'my-image-size', false); list($sImageurl, $iWidthinpx, $iHeightinpx) = $aImagedata; echo '<img src="' . $sImageurl . '" width="' . $iWidthinpx. '" height="' . $iHeightinpx. '" alt="#"/>'; ?> and if you don't know the $iAttachmentid you could use the following to get it (taken from http://wordpress.org/support/topic/need-to-get-attachment-id-by-image-url): global $wpdb; $sImageurl = of_get_option('slideshow_1'); $sQuery = "SELECT ID FROM {$wpdb->posts} WHERE guid='$sImageurl'"; $iAttachmentid = $wpdb->get_var($sQuery );
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:424606", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67520" }
[ 0.050384521484375, -0.0030879974365234375, -0.0262908935546875, -0.013397216796875, 0.02850341796875, -0.042388916015625, 0.048248291015625, -0.01366424560546875, 0.01336669921875, 0.0098419189453125, -0.07708740234375, 0.02001953125, -0.041778564453125, 0.0211181640625, -0.0357666015625, -0.03741455078125, 0.047332763671875, -0.0287628173828125, 0.0303955078125, 0.01458740234375, 0.004669189453125, 0.046875, 0.0214080810546875, 0.044769287109375, 0.0084228515625, -0.0224609375, 0.05938720703125, -0.01776123046875, 0.013671875, -0.020843505859375, 0.0081939697265625, -0.006229400634765625, 0.0289154052734375, -0.00962066650390625, 0.0261383056640625, 0.0114898681640625, 0.0322265625, -0.01035308837890625, 0.0008473396301269531, 0.01611328125, 0.0203704833984375, -0.005039215087890625, 0.0230560302734375, -0.039581298828125, -0.0025463104248046875, -0.0202789306640625, 0.027587890625, -0.034271240234375, -0.010650634765625, 0.01548004150390625, 0.0188751220703125, 0.040069580078125, 0.036712646484375, 0.0043792724609375, -0.01050567626953125, 0.0275726318359375, -0.0275115966796875, 0.0283966064453125, 0.036651611328125, -0.025543212890625, -0.03704833984375, -0.024749755859375, 0.01111602783203125, -0.0042877197265625, 0.0172576904296875, -0.0026531219482421875, 0.035369873046875, 0.032135009765625, -0.0253143310546875, -0.016754150390625, -0.0036487579345703125, -0.013275146484375, -0.009307861328125, -0.0201416015625, 0.00902557373046875, 0.0233154296875, 0.023834228515625, 0.0316162109375, -0.004364013671875, -0.00586700439453125, 0.03814697265625, -0.0068511962890625, -0.04693603515625, 0.040618896484375, 0.033843994140625, 0.06756591796875, 0.005340576171875, -0.039276123046875, 0.003910064697265625, -0.0296173095703125, -0.012420654296875, -0.0263214111328125, -0.0041656494140625, 0.0148773193359375, -0.039703369140625, -0.021575927734375, -0.0217132568359375, -0.0020313262939453125, -0.026153564453125, 0.02386474609375, 0.01421356201171875, -0.0272064208984375, 0.038726806640625, -0.045501708984375, 0.0014019012451171875, 0.0280914306640625, -0.033203125, 0.035980224609375, 0.043548583984375, 0.036590576171875, 0.02105712890625, -0.0261688232421875, -0.05255126953125, -0.0201416015625, -0.030120849609375, 0.023193359375, -0.062225341796875, -0.01023101806640625, -0.002513885498046875, -0.008941650390625, -0.005184173583984375, 0.00952911376953125, 0.03057861328125, 0.011810302734375, 0.032073974609375, 0.03704833984375, 0.007495880126953125, -0.053863525390625, 0.0029964447021484375, -0.002033233642578125, -0.045166015625, 0.05035400390625, 0.114013671875, -0.020172119140625, -0.007312774658203125, -0.0033435821533203125, -0.0186920166015625, -0.032684326171875, -0.01947021484375, 0.039825439453125, -0.037750244140625, -0.0377197265625, 0.0283203125, -0.03070068359375, -0.020172119140625, 0.013336181640625, 0.00617218017578125, 0.0268096923828125, -0.01107025146484375, -0.0914306640625, 0.06378173828125, -0.0323486328125, 0.01453399658203125, 0.0287933349609375, -0.044525146484375, 0.00565338134765625, 0.0252838134765625, -0.023162841796875, -0.0189056396484375, -0.04901123046875, 0.01323699951171875, 0.005695343017578125, 0.0379638671875, -0.01064300537109375, -0.022308349609375, 0.00759124755859375, -0.0498046875, -0.012786865234375, 0.0269317626953125, 0.0711669921875, -0.0016508102416992188, -0.0108795166015625, 0.0192413330078125, 0.0118408203125, -0.023590087890625, 0.00913238525390625, -0.0292510986328125, -0.023040771484375, 0.032073974609375, 0.0257110595703125, -0.00604248046875, -0.01275634765625, 0.035888671875, -0.0190277099609375, -0.03424072265625, -0.030792236328125, -0.0008859634399414062, -0.0181732177734375, 0.036407470703125, 0.00830841064453125, 0.022308349609375, 0.0059814453125, -0.031829833984375, 0.061553955078125, -0.0252532958984375, -0.0269927978515625, -0.0014314651489257812, 0.01131439208984375, -0.033966064453125, -0.0064697265625, 0.05078125, 0.01113128662109375, 0.0192718505859375, -0.0220947265625, -0.0017719268798828125, 0.01479339599609375, -0.006046295166015625, 0.025909423828125, -0.028900146484375, 0.034423828125, 0.00977325439453125, -0.0103912353515625, -0.00618743896484375, -0.01474761962890625, 0.0146636962890625, -0.00847625732421875, 0.042999267578125, 0.024078369140625, -0.0231781005859375, 0.06317138671875, -0.065673828125, 0.006458282470703125, -0.06390380859375, 0.020294189453125, 0.04901123046875, 0.004375457763671875, -0.012481689453125, -0.0185699462890625, 0.034759521484375, 0.0162353515625, -0.045745849609375, 0.031005859375, -0.01009368896484375, 0.0330810546875, -0.0121612548828125, -0.0254974365234375, -0.0194244384765625, -0.06256103515625, 0.024627685546875, 0.04888916015625, 0.03863525390625, -0.0212249755859375, -0.0196990966796875, -0.01311492919921875, 0.06927490234375, 0.04736328125, 0.03271484375, -0.029937744140625, -0.023468017578125, -0.03118896484375, 0.032989501953125, -0.0134735107421875, 0.031341552734375, -0.032073974609375, 0.0237884521484375, 0.02459716796875, -0.032623291015625, 0.019561767578125, -0.0265655517578125, 0.039520263671875, -0.03271484375, 0.031982421875, 0.04351806640625, -0.0263214111328125, 0.02734375, 0.024444580078125, 0.0259552001953125, 0.011077880859375, -0.054107666015625, 0.033447265625, 0.0355224609375, -0.002376556396484375, -0.006763458251953125, 0.0002570152282714844, 0.006816864013671875, -0.0091094970703125, -0.0288543701171875, 0.0251007080078125, -0.0084686279296875, -0.0229949951171875, -0.0185394287109375, 0.016326904296875, -0.053009033203125, -0.011260986328125, -0.04425048828125, -0.06640625, 0.0002970695495605469, 0.029083251953125, -0.02752685546875, -0.0105133056640625, 0.0016918182373046875, 0.052734375, 0.00020194053649902344, 0.0274505615234375, -0.0008363723754882812, 0.0010166168212890625, 0.02130126953125, -0.044708251953125, 0.06072998046875, -0.037933349609375, 0.0758056640625, 0.08892822265625, -0.039093017578125, 0.056915283203125, -0.0234375, 0.00547027587890625, -0.033905029296875, -0.0029582977294921875, -0.0293121337890625, -0.045257568359375, -0.0034694671630859375, 0.038330078125, 0.0107574462890625, 0.001491546630859375, -0.0037860870361328125, -0.0418701171875, -0.004547119140625, -0.004093170166015625, -0.07196044921875, -0.057037353515625, 0.033294677734375, -0.099609375, 0.00479888916015625, -0.0265960693359375, -0.0621337890625, -0.00917816162109375, 0.0196990966796875, 0.003650665283203125, -0.026153564453125, -0.039825439453125, -0.027313232421875, -0.05694580078125, -0.0687255859375, 0.011993408203125, 0.01364898681640625, 0.037384033203125, -0.0050506591796875, -0.0020751953125, 0.004974365234375, -0.0183868408203125, 0.0231781005859375, 0.053497314453125, 0.0192108154296875, -0.0077056884765625, 0.007198333740234375, -0.033721923828125, -0.0173797607421875, -0.00003921985626220703, 0.0183258056640625, 0.0083465576171875, -0.0219573974609375, 0.0167999267578125, 0.00310516357421875, -0.007457733154296875, 0.0108489990234375, 0.047698974609375, 0.0110321044921875, -0.00980377197265625, 0.031707763671875, -0.05426025390625, -0.0022907257080078125, -0.037078857421875, -0.048797607421875, 0.0254364013671875, 0.0204315185546875, 0.004894256591796875, -0.005268096923828125, -0.00691986083984375, -0.0215301513671875, -0.0265350341796875, 0.0174713134765625, -0.05181884765625, 0.0450439453125, 0.0023097991943359375, 0.003948211669921875, -0.007114410400390625, 0.01247406005859375, -0.0293121337890625, -0.000015437602996826172, -0.003993988037109375, 0.005107879638671875, 0.008636474609375, -0.0306549072265625, 0.0188140869140625, -0.0125885009765625, 0.04339599609375, 0.000011563301086425781, -0.00409698486328125, -0.0246734619140625, -0.029693603515625, -0.022369384765625, 0.0275726318359375, -0.040191650390625, -0.0253753662109375, -0.0252685546875, 0.00965118408203125, -0.0059814453125, -0.041778564453125, -0.0172271728515625, -0.00494384765625, -0.07965087890625, -0.0135650634765625, 0.00968170166015625, -0.054107666015625, -0.0084381103515625, 0.041717529296875, -0.06475830078125, -0.0255889892578125, 0.004489898681640625, 0.037994384765625, -0.0177001953125, 0.0112457275390625, -0.0093231201171875, 0.036865234375, 0.0082550048828125, -0.0223846435546875, -0.10052490234375, -0.012359619140625, -0.0192413330078125, 0.0699462890625, -0.02685546875, 0.0255584716796875, -0.05438232421875, 0.041107177734375, -0.0037097930908203125, 0.005077362060546875, 0.00498199462890625, 0.032073974609375, -0.036865234375, -0.0221710205078125, 0.00008529424667358398, -0.038970947265625, -0.0242462158203125, -0.0239410400390625, -0.036956787109375, -0.0185699462890625, -0.016845703125, -0.0252838134765625, 0.0230255126953125, -0.024200439453125, -0.0736083984375, -0.0209503173828125, 0.0195770263671875, 0.016876220703125, -0.0019702911376953125, -0.0012178421020507812, -0.025665283203125, -0.05010986328125, 0.0190277099609375, 0.0413818359375, -0.007053375244140625, 0.01392364501953125, 0.052703857421875, -0.0032634735107421875, -0.01885986328125, -0.0821533203125, -0.01239776611328125, 0.0672607421875, 0.01261138916015625, 0.026947021484375, 0.04278564453125, -0.049102783203125, 0.044952392578125, 0.06451416015625, 0.0233001708984375, -0.00951385498046875, 0.043243408203125, -0.001224517822265625, -0.00817108154296875, 0.0201568603515625, 0.0174102783203125, -0.033721923828125, 0.002986907958984375, -0.0168304443359375, 0.004486083984375, -0.006622314453125, 0.037841796875, -0.006832122802734375, 0.00423431396484375, -0.02056884765625, -0.0301971435546875, 0.0082244873046875, 0.025848388671875, 0.009429931640625, -0.0070648193359375, 0.0186920166015625, -0.0108489990234375, 0.012054443359375, 0.0218505859375, 0.0419921875, 0.031585693359375, 0.00007778406143188477, 0.055206298828125, 0.0011615753173828125, 0.0114288330078125, 0.01084136962890625, 0.007312774658203125, -0.031402587890625, 0.01605224609375, 0.01454925537109375, -0.06378173828125, -0.0068359375, 0.006244659423828125, -0.032196044921875, -0.0285491943359375, 0.0474853515625, 0.014892578125, -0.027099609375, -0.016021728515625, -0.034637451171875, -0.045166015625, -0.06976318359375, -0.011749267578125, 0.0143890380859375, -0.0190277099609375, 0.0152587890625, 0.018524169921875, 0.005840301513671875, -0.00687408447265625, 0.0013751983642578125, -0.0006709098815917969, 0.00007134675979614258, 0.01250457763671875, 0.0250701904296875, 0.0169219970703125, -0.0295562744140625, 0.014801025390625, 0.006595611572265625, -0.02825927734375, 0.01023101806640625, 0.0245819091796875, 0.0562744140625, -0.0372314453125, -0.0491943359375, 0.030914306640625, -0.05511474609375, -0.0294189453125, 0.04541015625, 0.0198211669921875, -0.04876708984375, -0.02410888671875, 0.01123046875, 0.0308380126953125, -0.0260162353515625, -0.0318603515625, -0.020050048828125, -0.039031982421875, -0.007450103759765625, 0.00530242919921875, -0.047332763671875, 0.04888916015625, 0.042510986328125, -0.031402587890625, -0.0227813720703125, -0.03729248046875, 0.0253448486328125, 0.0133514404296875, -0.0229949951171875, -0.02947998046875, 0.04974365234375, -0.0204925537109375, 0.008056640625, -0.019256591796875, -0.0133819580078125, -0.0814208984375, -0.005443572998046875, 0.0697021484375, 0.053741455078125, 0.01113128662109375, -0.0008215904235839844, -0.034942626953125, -0.0013141632080078125, 0.09783935546875, 0.00554656982421875, 0.013519287109375, -0.05517578125, -0.0074005126953125, 0.0005488395690917969, 0.005855560302734375, 0.00737762451171875, -0.00013148784637451172, 0.031158447265625, -0.0029926300048828125, 0.01280975341796875, 0.00904083251953125, -0.0185699462890625, 0.016876220703125, 0.012451171875, 0.006931304931640625, -0.01611328125, 0.002819061279296875, -0.0227508544921875, -0.0069122314453125, -0.001373291015625, 0.02069091796875, -0.0139312744140625, 0.05548095703125, -0.0251007080078125, -0.0015878677368164062, 0.0193634033203125, -0.0192718505859375, -0.0131988525390625, -0.006282806396484375, -0.0263214111328125, 0.09149169921875, -0.01399993896484375, -0.01062774658203125, 0.0240325927734375, -0.030670166015625, -0.01450347900390625, -0.0030651092529296875, 0.0247344970703125, -0.003215789794921875, -0.02545166015625, -0.01123809814453125, 0.0269927978515625, 0.0133056640625, 0.01885986328125, 0.09918212890625, 0.005138397216796875, 0.06500244140625, 0.006992340087890625, 0.004024505615234375, 0.060455322265625, 0.023284912109375, -0.0170745849609375, -0.0305938720703125, 0.0158843994140625, 0.0026187896728515625, 0.00638580322265625, 0.0182342529296875, -0.004486083984375, 0.0178680419921875, -0.0217742919921875, 0.045654296875, -0.0006375312805175781, 0.031829833984375, 0.024505615234375, 0.001316070556640625, 0.0293731689453125, -0.022552490234375, -0.0166473388671875, -0.0203704833984375, 0.046539306640625, 0.0036468505859375, -0.033416748046875, -0.006763458251953125, 0.0210418701171875, 0.0162811279296875, -0.0088958740234375, 0.055328369140625, 0.01380157470703125, -0.0628662109375, -0.007175445556640625, 0.05059814453125, 0.00799560546875, -0.0197601318359375, 0.022857666015625, -0.01248931884765625, 0.0026798248291015625, -0.046295166015625, 0.00914764404296875, -0.01447296142578125, 0.00951385498046875, 0.005710601806640625, 0.0171966552734375, 0.0168914794921875, 0.0158538818359375, -0.00295257568359375, 0.00756072998046875, -0.005931854248046875, -0.0167388916015625, 0.06341552734375, -0.0051116943359375, 0.02716064453125, 0.0160064697265625, -0.041259765625, -0.00972747802734375, -0.020416259765625, 0.022003173828125, -0.00850677490234375, 0.0052032470703125, 0.059844970703125, -0.037384033203125, -0.0017328262329101562, 0.042205810546875, 0.06500244140625, -0.015533447265625, -0.007694244384765625, 0.021484375, -0.0701904296875, -0.0506591796875, 0.0013065338134765625, -0.052886962890625, -0.0124969482421875, -0.045318603515625, -0.07342529296875, 0.07855224609375, -0.01104736328125, 0.0256805419921875, -0.00783538818359375, 0.020538330078125, 0.00411224365234375, 0.00835418701171875, -0.005840301513671875, 0.026336669921875, -0.03204345703125, -0.0005488395690917969, -0.01137542724609375, 0.0166015625, -0.00394439697265625, 0.010528564453125, 0.03204345703125, -0.0016918182373046875, -0.057464599609375, -0.0164794921875, 0.0653076171875, 0.062255859375, 0.042724609375, 0.036865234375, -0.00087738037109375, -0.0312042236328125, 0.036346435546875, -0.04443359375, 0.00994873046875, -0.0382080078125, 0.03582763671875, 0.0136871337890625, 0.01111602783203125, -0.005817413330078125, -0.0042572021484375, 0.046478271484375, -0.0682373046875, 0.004169464111328125, 0.049224853515625, -0.0303192138671875, 0.023193359375, 0.0166168212890625, 0.05084228515625, -0.00331878662109375, -0.0184783935546875, 0.0136871337890625, 0.044342041015625, 0.0172576904296875, 0.022613525390625, 0.03253173828125, 0.0019464492797851562, 0.0482177734375, 0.01146697998046875, -0.008880615234375, 0.0198516845703125, 0.0301666259765625, 0.00439453125, 0.0109405517578125, 0.0168609619140625, -0.025360107421875, -0.0046539306640625, 0.051788330078125, 0.0251007080078125, -0.0275726318359375, 0.00707244873046875, 0.004596710205078125, -0.006145477294921875, -0.010009765625, -0.0035572052001953125, 0.0271759033203125, 0.01090240478515625, 0.009033203125, -0.01059722900390625, 0.022064208984375, 0.032501220703125, 0.043853759765625, 0.0171051025390625, 0.0239105224609375, -0.08990478515625, -0.0007071495056152344, -0.028289794921875, -0.0292205810546875, 0.03546142578125, 0.05340576171875, 0.0078582763671875, 0.031463623046875, -0.005702972412109375, -0.01557159423828125, -0.033935546875, 0.041778564453125, -0.0030059814453125, 0.05792236328125, -0.03326416015625, -0.01470947265625, 0.0077667236328125, 0.04034423828125, 0.0118865966796875, -0.02606201171875, 0.03668212890625, 0.00046896934509277344, -0.100341796875, -0.006687164306640625, 0.032318115234375, -0.033355712890625, 0.0143280029296875, -0.015380859375, 0.07012939453125, 0.05963134765625, 0.0197296142578125, -0.01568603515625, 0.0230865478515625, 0.08599853515625, -0.04840087890625, 0.03594970703125, -0.0258636474609375, -0.016937255859375, 0.010040283203125, -0.034454345703125, 0.039947509765625, -0.031524658203125, -0.045501708984375, -0.002033233642578125, -0.04119873046875, -0.032196044921875, 0.0246429443359375, 0.023651123046875, -0.036834716796875, 0.051910400390625, 0.0097198486328125, -0.01336669921875, 0.033233642578125, -0.003925323486328125, -0.0253448486328125, -0.024688720703125, 0.029022216796875, -0.0262298583984375, -0.03472900390625, -0.0293731689453125, -0.038604736328125, 0.022216796875, 0.0321044921875, 0.055877685546875, 0.005115509033203125, 0.041229248046875, -0.00690460205078125, 0.002292633056640625, -0.01470947265625, -0.03717041015625, 0.04278564453125, -0.034149169921875, -0.0090179443359375, -0.0007634162902832031, -0.021484375, 0.0077972412109375, 0.0219879150390625, -0.042236328125, -0.01027679443359375, -0.01186370849609375, 0.0208892822265625, 0.0087432861328125, 0.04156494140625, -0.00714874267578125, -0.020660400390625, -0.024688720703125, 0.007175445556640625, 0.03973388671875, 0.047027587890625, -0.004329681396484375, 0.0538330078125, 0.0088958740234375, 0.03521728515625, 0.039764404296875, -0.0246734619140625, 0.05242919921875, 0.03302001953125, -0.054656982421875, -0.041351318359375, -0.0228729248046875, -0.0140838623046875, -0.0179901123046875, 0.0154876708984375, 0.022064208984375, -0.0128021240234375, 0.0032176971435546875, 0.01073455810546875, 0.0013484954833984375, 0.01427459716796875, -0.049224853515625, -0.0006847381591796875, 0.023040771484375, 0.003505706787109375, 0.0128021240234375, 0.0096282958984375, -0.005367279052734375, -0.026519775390625, -0.008331298828125, 0.01349639892578125, -0.0056915283203125, 0.0193939208984375, 0.00437164306640625, -0.01290130615234375, 0.0248260498046875, 0.03314208984375, -0.04290771484375, 0.01331329345703125, 0.0028285980224609375, -0.01058197021484375, 0.0139923095703125, -0.0276947021484375, 0.00679779052734375, 0.00846099853515625, -0.00788116455078125, -0.06646728515625, -0.041473388671875, 0.05987548828125, -0.0304718017578125, 0.040924072265625, 0.033477783203125, -0.033203125, -0.01239013671875, 0.0260009765625, 0.051849365234375, 0.0738525390625, -0.002086639404296875, -0.035888671875, 0.019012451171875, 0.005496978759765625, 0.004695892333984375, -0.040771484375, -0.01009368896484375, -0.04681396484375, 0.025634765625, -0.02191162109375, 0.040924072265625, 0.049591064453125, -0.0179901123046875, -0.06646728515625, 0.039794921875, -0.0265350341796875, -0.0209808349609375, 0.006072998046875, 0.0216064453125, 0.0129241943359375, 0.0039825439453125, 0.019317626953125, -0.00705718994140625, -0.01047515869140625, -0.0333251953125, -0.0157470703125, -0.046722412109375, 0.04583740234375, -0.06414794921875, -0.03729248046875, -0.004852294921875, 0.04052734375, -0.01194000244140625, 0.0110931396484375, -0.046295166015625, 0.03277587890625, -0.00439453125, -0.0277099609375, -0.0294952392578125, 0.01265716552734375, -0.01552581787109375, -0.0285186767578125, -0.01580810546875, 0.0004239082336425781, 0.017578125, 0.05450439453125, 0.05023193359375, 0.00789642333984375, -0.050506591796875, 0.01335906982421875, 0.0170135498046875, -0.01189422607421875, -0.00843048095703125, -0.0007548332214355469, -0.039581298828125, -0.023529052734375, -0.0270843505859375, -0.0248565673828125, -0.0151824951171875, -0.01268768310546875, -0.065185546875, -0.000823974609375, -0.0467529296875, -0.000025928020477294922, -0.07061767578125, 0.043731689453125, 0.05377197265625, -0.059906005859375, -0.0191192626953125, -0.018798828125, -0.007476806640625, 0.0114898681640625, -0.07275390625, -0.027740478515625, 0.0423583984375, 0.003047943115234375, 0.0071258544921875, 0.01236724853515625, 0.01025390625, -0.0142974853515625, 0.0256805419921875, -0.0212860107421875, 0.0023746490478515625, -0.00969696044921875, 0.00763702392578125, 0.050262451171875, -0.0169677734375, 0.0245819091796875, -0.03533935546875, 0.0200042724609375, 0.021087646484375, -0.0033206939697265625, 0.041290283203125, 0.0301055908203125, -0.0268402099609375, 0.042694091796875, -0.033843994140625, 0.0028533935546875, -0.035430908203125, -0.03436279296875, -0.03167724609375, -0.0200958251953125, -0.0178680419921875, -0.040435791015625, 0.005916595458984375 ]
d1c2be411d6b6b8ad895bf665397893bcc42fdbc
Wordpress Stackexchange Q: Remove some pages from search On my site, I want some pages to not be queriable by the search form (so they don't appear when I've got something like www.ex.com/?s=banana) Is there a way to "Remove" pages from the search results page (without just blindly do a condition of if is_page(id), display:none) A: In WP_Query() there is a 'post__not_in' argument where you can exclude specific post ID's. You would create a new WP_Query inside of your search.php and use the current $query_args, then add on your 'post__not_in'. If you wanted to make it more dynamic, you could also build in some post meta where you could do a meta query and exclude all that have "exclude" checked. (look up 'register_meta_box_cb' in register_post_type ). For example, add_action('pre_get_posts','wpse67626_exclude_posts_from_search'); function wpse67626_exclude_posts_from_search( $query ){ if( $query->is_main_query() && is_search() ){ //Exclude posts by ID $post_ids = array(7,19,21); $query->set('post__not_in', $post_ids); } }
Q: Remove some pages from search On my site, I want some pages to not be queriable by the search form (so they don't appear when I've got something like www.ex.com/?s=banana) Is there a way to "Remove" pages from the search results page (without just blindly do a condition of if is_page(id), display:none) A: In WP_Query() there is a 'post__not_in' argument where you can exclude specific post ID's. You would create a new WP_Query inside of your search.php and use the current $query_args, then add on your 'post__not_in'. If you wanted to make it more dynamic, you could also build in some post meta where you could do a meta query and exclude all that have "exclude" checked. (look up 'register_meta_box_cb' in register_post_type ). For example, add_action('pre_get_posts','wpse67626_exclude_posts_from_search'); function wpse67626_exclude_posts_from_search( $query ){ if( $query->is_main_query() && is_search() ){ //Exclude posts by ID $post_ids = array(7,19,21); $query->set('post__not_in', $post_ids); } } A: To exclude all pages from search results (i.e. without having to manually supply page IDs), here's an improved version of @EricHolmes's function: add_action( 'pre_get_posts', 'wpse67626_exclude_pages_from_search' ); function wpse67626_exclude_pages_from_search( $query ) { // Manually supply Post/Page IDs to exclude from search results // $exclude_page_ids = array( 7, 19, 21 ); // Or just get all page IDs $exclude_page_ids = get_all_page_ids(); if ( !$query->is_admin && $query->is_search && $query->is_main_query() && !empty( $exclude_page_ids ) ) { $query->set( 'post__not_in', $exclude_page_ids ); } } More info: * *https://developer.wordpress.org/reference/hooks/pre_get_posts/ *https://developer.wordpress.org/reference/functions/get_all_page_ids/ *https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters (ALTERNATIVE) Although, given what you are doing, you could just set exclude_from_search for the page post type to true, which to me seems to be the best way to exclude a post type from search. See @prettyboymp's answer for that. More info: * *https://developer.wordpress.org/reference/functions/register_post_type/ *https://codex.wordpress.org/Function_Reference/register_post_type
wordpress
{ "language": "en", "length": 277, "provenance": "stackexchange_00019.jsonl.gz:424625", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67626" }
[ 0.061981201171875, 0.0193328857421875, 0.02581787109375, 0.041900634765625, 0.045806884765625, -0.05767822265625, 0.12261962890625, -0.050994873046875, 0.037384033203125, -0.00440216064453125, -0.048919677734375, -0.015777587890625, -0.051483154296875, -0.02020263671875, -0.0220794677734375, -0.050018310546875, -0.01068878173828125, -0.021697998046875, -0.00049591064453125, -0.036376953125, 0.0213165283203125, -0.053466796875, 0.03741455078125, 0.00754547119140625, 0.038421630859375, -0.04473876953125, 0.045257568359375, -0.005405426025390625, 0.01450347900390625, -0.03533935546875, 0.01561737060546875, 0.01470947265625, 0.005283355712890625, -0.0009665489196777344, 0.031402587890625, -0.0006871223449707031, -0.00782012939453125, 0.01203155517578125, 0.034027099609375, -0.0024623870849609375, 0.00547027587890625, 0.00479888916015625, -0.025482177734375, 0.00469970703125, -0.0300140380859375, -0.041748046875, 0.0299072265625, -0.0234527587890625, 0.03631591796875, -0.01067352294921875, 0.00850677490234375, 0.0513916015625, 0.0144805908203125, 0.0001633167266845703, -0.0181732177734375, 0.00864410400390625, -0.00034356117248535156, 0.012603759765625, 0.041961669921875, -0.0285491943359375, -0.037872314453125, -0.003925323486328125, 0.0227508544921875, -0.0158233642578125, -0.0276336669921875, -0.010101318359375, -0.0210418701171875, -0.0019292831420898438, -0.04510498046875, -0.019866943359375, 0.051910400390625, -0.019622802734375, -0.0166473388671875, -0.00905609130859375, -0.042144775390625, 0.004894256591796875, 0.05096435546875, -0.0052490234375, -0.028778076171875, 0.01409149169921875, -0.026031494140625, -0.0178070068359375, -0.07745361328125, -0.019317626953125, 0.01468658447265625, 0.026580810546875, -0.004932403564453125, 0.003986358642578125, -0.04156494140625, 0.0067596435546875, -0.026702880859375, -0.0301971435546875, -0.02423095703125, 0.0009741783142089844, -0.01299285888671875, 0.002582550048828125, 0.0379638671875, 0.07012939453125, 0.0052490234375, 0.007221221923828125, -0.0115203857421875, -0.041290283203125, -0.00017714500427246094, -0.034820556640625, 0.027801513671875, 0.040252685546875, -0.0136871337890625, 0.026336669921875, 0.06134033203125, 0.0222625732421875, 0.030975341796875, -0.0023555755615234375, -0.0145111083984375, 0.0028133392333984375, -0.0599365234375, 0.04052734375, -0.00039386749267578125, -0.048614501953125, -0.02978515625, -0.0018453598022460938, -0.0033321380615234375, 0.0086669921875, 0.010986328125, -0.037353515625, 0.016845703125, -0.005336761474609375, -0.0333251953125, 0.0008873939514160156, 0.0200042724609375, -0.00412750244140625, -0.055572509765625, 0.012359619140625, 0.08599853515625, 0.016754150390625, 0.01428985595703125, -0.031341552734375, 0.019744873046875, -0.025177001953125, -0.00421905517578125, 0.0182647705078125, 0.0247344970703125, -0.050201416015625, 0.00588226318359375, 0.017974853515625, 0.0223541259765625, -0.0034732818603515625, 0.0204315185546875, 0.047088623046875, 0.019439697265625, -0.04132080078125, 0.020660400390625, 0.01873779296875, 0.05657958984375, 0.0004181861877441406, -0.07745361328125, -0.02618408203125, 0.035614013671875, -0.045745849609375, -0.041351318359375, -0.07757568359375, 0.0281524658203125, 0.02655029296875, 0.022613525390625, 0.01035308837890625, 0.0068359375, -0.050262451171875, -0.0309295654296875, -0.00649261474609375, 0.00970458984375, 0.0086669921875, 0.0253143310546875, -0.030792236328125, 0.0246124267578125, -0.01116180419921875, -0.02044677734375, 0.0162811279296875, 0.01806640625, 0.0117340087890625, -0.016632080078125, 0.060211181640625, 0.0019254684448242188, -0.035675048828125, 0.0161895751953125, -0.01446533203125, -0.0765380859375, 0.07965087890625, 0.01617431640625, 0.04266357421875, -0.040191650390625, -0.004642486572265625, 0.09429931640625, 0.059967041015625, -0.022979736328125, -0.010955810546875, 0.028533935546875, -0.046539306640625, 0.0293731689453125, -0.03466796875, 0.0216217041015625, 0.0127105712890625, 0.001453399658203125, 0.0117950439453125, -0.0032501220703125, 0.041473388671875, -0.067138671875, 0.0277252197265625, -0.03631591796875, 0.0294036865234375, -0.036163330078125, 0.0151519775390625, 0.044769287109375, 0.01337432861328125, -0.05224609375, 0.0307159423828125, -0.0203399658203125, -0.011688232421875, 0.02142333984375, -0.002498626708984375, 0.0093994140625, -0.00627899169921875, 0.00527191162109375, -0.01430511474609375, -0.0013952255249023438, 0.0176239013671875, 0.0794677734375, -0.00649261474609375, -0.0122528076171875, -0.034210205078125, 0.04620361328125, -0.00798797607421875, -0.054595947265625, 0.0517578125, 0.0677490234375, 0.08917236328125, 0.002349853515625, 0.0056610107421875, 0.0201416015625, -0.0477294921875, 0.01096343994140625, 0.02691650390625, 0.039276123046875, 0.0235443115234375, -0.0219879150390625, -0.041107177734375, 0.03924560546875, -0.05029296875, -0.004138946533203125, -0.0167694091796875, 0.0008420944213867188, 0.04266357421875, -0.0009160041809082031, 0.007541656494140625, 0.01763916015625, 0.01001739501953125, 0.00905609130859375, 0.0282745361328125, -0.00749969482421875, 0.0340576171875, 0.0093536376953125, -0.0379638671875, -0.005199432373046875, -0.0012197494506835938, -0.006259918212890625, 0.00946807861328125, 0.037353515625, -0.01739501953125, 0.0162811279296875, 0.018890380859375, -0.00817108154296875, -0.0141143798828125, 0.00921630859375, -0.034271240234375, -0.0027923583984375, 0.0254669189453125, 0.0251007080078125, -0.01251983642578125, -0.01605224609375, -0.001041412353515625, 0.0138092041015625, 0.00220489501953125, -0.01088714599609375, 0.0188140869140625, 0.02008056640625, -0.0123138427734375, -0.0189208984375, -0.053131103515625, 0.034271240234375, 0.01418304443359375, -0.0180206298828125, -0.0151519775390625, 0.0023822784423828125, 0.045684814453125, -0.00901031494140625, 0.0291595458984375, 0.0014257431030273438, 0.0076751708984375, 0.006195068359375, -0.033050537109375, 0.0416259765625, -0.03753662109375, 0.0261383056640625, 0.060089111328125, -0.0120849609375, -0.0006036758422851562, 0.0023517608642578125, 0.0202789306640625, 0.0255126953125, -0.016845703125, -0.00732421875, 0.0146484375, -0.054473876953125, 0.00620269775390625, 0.0102996826171875, 0.020660400390625, 0.005031585693359375, -0.031280517578125, 0.017181396484375, 0.00287628173828125, -0.0655517578125, -0.0762939453125, 0.0287933349609375, 0.005588531494140625, -0.0673828125, 0.035675048828125, -0.00803375244140625, 0.0216217041015625, 0.0268707275390625, -0.022003173828125, -0.00041365623474121094, -0.02789306640625, -0.0745849609375, -0.0179443359375, -0.037567138671875, 0.051116943359375, -0.0178680419921875, -0.0017070770263671875, 0.004535675048828125, 0.08111572265625, 0.0333251953125, -0.05645751953125, 0.025909423828125, 0.06878662109375, -0.027069091796875, 0.00536346435546875, -0.020416259765625, -0.0063629150390625, -0.02392578125, 0.0163726806640625, 0.05633544921875, -0.0090789794921875, 0.02032470703125, 0.0069122314453125, -0.0178985595703125, 0.0595703125, 0.0310516357421875, -0.05499267578125, 0.0095672607421875, 0.04083251953125, -0.014251708984375, -0.020721435546875, -0.0239410400390625, -0.0248260498046875, -0.0494384765625, 0.017181396484375, 0.02923583984375, 0.00615692138671875, -0.00433349609375, -0.0018520355224609375, 0.06939697265625, 0.0015821456909179688, -0.016143798828125, 0.01100921630859375, 0.0155487060546875, 0.02191162109375, 0.06927490234375, -0.036407470703125, 0.0367431640625, -0.0271453857421875, -0.01329803466796875, 0.005123138427734375, -0.001644134521484375, 0.033538818359375, -0.03839111328125, 0.00986480712890625, -0.02459716796875, 0.038421630859375, 0.01367950439453125, 0.01300811767578125, -0.0037059783935546875, -0.0292510986328125, -0.007015228271484375, 0.0787353515625, -0.07598876953125, -0.051849365234375, -0.048126220703125, 0.0306854248046875, 0.0193023681640625, -0.07208251953125, 0.067626953125, -0.04205322265625, -0.08441162109375, -0.01212310791015625, -0.0313720703125, -0.0269927978515625, -0.007595062255859375, 0.0102691650390625, -0.0099945068359375, -0.042083740234375, 0.0269012451171875, 0.0408935546875, 0.00740814208984375, -0.0131988525390625, 0.004436492919921875, -0.0182647705078125, -0.0010242462158203125, -0.0011491775512695312, -0.07177734375, -0.00615692138671875, -0.0029544830322265625, 0.01371002197265625, -0.030364990234375, 0.0174713134765625, -0.05438232421875, 0.0106201171875, 0.02001953125, 0.004058837890625, 0.00667572021484375, -0.010772705078125, -0.0160064697265625, 0.038330078125, 0.00792694091796875, -0.01410675048828125, 0.00798797607421875, 0.018280029296875, 0.01244354248046875, 0.020294189453125, -0.0411376953125, -0.038726806640625, 0.003490447998046875, -0.03326416015625, -0.044189453125, -0.032989501953125, 0.018218994140625, 0.02044677734375, -0.0257110595703125, 0.0198822021484375, -0.03271484375, -0.026763916015625, 0.05511474609375, 0.05145263671875, -0.02191162109375, -0.004852294921875, 0.0286712646484375, 0.007038116455078125, -0.06243896484375, -0.03936767578125, -0.0006337165832519531, 0.0201416015625, -0.0014972686767578125, 0.03179931640625, -0.00757598876953125, -0.016448974609375, 0.047515869140625, -0.0128936767578125, -0.039703369140625, -0.0026378631591796875, 0.0289459228515625, -0.0249481201171875, -0.0560302734375, 0.0233001708984375, -0.0830078125, 0.061279296875, 0.037506103515625, -0.00949859619140625, -0.047088623046875, 0.0209503173828125, 0.047821044921875, -0.03125, 0.043914794921875, -0.0155792236328125, -0.0057373046875, -0.0023822784423828125, 0.017608642578125, 0.042449951171875, 0.0380859375, -0.00983428955078125, 0.01129913330078125, 0.00909423828125, 0.01389312744140625, 0.0149993896484375, 0.027069091796875, -0.032470703125, 0.03546142578125, 0.0166473388671875, -0.01033782958984375, 0.0028934478759765625, 0.001476287841796875, 0.0400390625, -0.0194244384765625, -0.02996826171875, -0.0099639892578125, -0.010101318359375, 0.01285552978515625, 0.023040771484375, 0.0260162353515625, 0.036102294921875, 0.014373779296875, 0.00970458984375, -0.016143798828125, 0.0055084228515625, -0.0160675048828125, -0.032257080078125, -0.0274200439453125, 0.0109710693359375, -0.01218414306640625, 0.0134124755859375, 0.0653076171875, -0.0124664306640625, 0.047943115234375, -0.0291595458984375, -0.0110321044921875, -0.0110626220703125, 0.0217132568359375, -0.0160064697265625, 0.01050567626953125, 0.0183258056640625, 0.0185546875, 0.0635986328125, -0.0146484375, -0.03363037109375, 0.01142120361328125, -0.005176544189453125, -0.024810791015625, 0.016693115234375, 0.021087646484375, 0.0355224609375, -0.002838134765625, 0.038726806640625, 0.032928466796875, -0.0219573974609375, -0.04705810546875, -0.0199432373046875, 0.034210205078125, 0.0012531280517578125, 0.00984954833984375, -0.01678466796875, -0.01512908935546875, -0.0237274169921875, 0.02203369140625, -0.039886474609375, -0.02252197265625, -0.00928497314453125, -0.0306243896484375, -0.033935546875, 0.0015764236450195312, -0.0123748779296875, -0.017303466796875, -0.003246307373046875, 0.00786590576171875, 0.0036907196044921875, -0.0189361572265625, 0.044830322265625, 0.003326416015625, -0.039581298828125, 0.03851318359375, 0.0177764892578125, 0.0079345703125, -0.01079559326171875, -0.0255126953125, -0.01346588134765625, -0.05712890625, -0.0158233642578125, 0.0037479400634765625, -0.0275726318359375, -0.02093505859375, -0.0010328292846679688, 0.006282806396484375, 0.0174560546875, -0.025421142578125, -0.043365478515625, 0.018157958984375, 0.0013761520385742188, -0.0028076171875, -0.00634765625, -0.01284027099609375, 0.0697021484375, -0.03399658203125, 0.01654052734375, 0.0139007568359375, 0.056396484375, 0.00943756103515625, -0.0220184326171875, -0.01361846923828125, -0.07464599609375, -0.0003185272216796875, 0.034698486328125, -0.068603515625, 0.036285400390625, 0.039794921875, 0.013458251953125, -0.0127105712890625, -0.007740020751953125, -0.003086090087890625, -0.04168701171875, 0.04241943359375, -0.0005388259887695312, 0.005481719970703125, -0.0209197998046875, -0.0218048095703125, -0.016998291015625, 0.004360198974609375, 0.02264404296875, -0.007755279541015625, -0.006061553955078125, -0.002838134765625, -0.016448974609375, -0.0195159912109375, 0.03179931640625, 0.04888916015625, 0.0005245208740234375, 0.042266845703125, 0.0137176513671875, 0.00658416748046875, 0.00806427001953125, -0.01531982421875, -0.025299072265625, 0.006317138671875, 0.06488037109375, 0.00406646728515625, -0.019256591796875, 0.056976318359375, -0.037994384765625, -0.003719329833984375, 0.0254364013671875, -0.01424407958984375, -0.07293701171875, 0.00907135009765625, -0.01751708984375, 0.01995849609375, 0.02386474609375, -0.006256103515625, 0.01430511474609375, 0.007476806640625, -0.0011157989501953125, 0.038116455078125, -0.02789306640625, -0.003692626953125, 0.0238189697265625, -0.033233642578125, -0.0220184326171875, -0.004009246826171875, 0.0172271728515625, -0.01239013671875, 0.0303955078125, 0.01471710205078125, -0.0006961822509765625, -0.006748199462890625, 0.0202178955078125, 0.0287933349609375, -0.0252227783203125, -0.0770263671875, 0.0091552734375, -0.0007548332214355469, -0.01532745361328125, 0.049407958984375, -0.016815185546875, 0.0472412109375, 0.035308837890625, 0.016510009765625, -0.01280975341796875, -0.00446319580078125, -0.01678466796875, 0.0012264251708984375, -0.00609588623046875, 0.016571044921875, 0.01023101806640625, -0.042205810546875, 0.01470947265625, -0.036773681640625, -0.0141143798828125, -0.00719451904296875, -0.0220794677734375, 0.1053466796875, -0.05743408203125, -0.013397216796875, 0.0016832351684570312, 0.007312774658203125, 0.0028400421142578125, -0.00003272294998168945, 0.0033664703369140625, -0.0152740478515625, 0.00235748291015625, -0.004711151123046875, -0.0006437301635742188, 0.01389312744140625, -0.00955963134765625, -0.08197021484375, 0.045562744140625, -0.0115203857421875, 0.056182861328125, 0.0066986083984375, 0.00872802734375, 0.001373291015625, -0.003322601318359375, -0.0428466796875, 0.041656494140625, 0.0196685791015625, 0.051605224609375, -0.01004791259765625, -0.00014710426330566406, 0.0169677734375, 0.01332855224609375, 0.070556640625, 0.0030231475830078125, 0.004520416259765625, -0.0218963623046875, 0.0273895263671875, 0.066650390625, 0.00891876220703125, -0.001270294189453125, -0.004119873046875, 0.042205810546875, 0.0287017822265625, -0.08184814453125, 0.01538848876953125, -0.05108642578125, 0.01702880859375, 0.01332855224609375, 0.01416015625, 0.0278778076171875, 0.01525115966796875, 0.00801849365234375, 0.0017786026000976562, -0.0016813278198242188, 0.00971221923828125, -0.001377105712890625, 0.036773681640625, 0.002620697021484375, 0.041778564453125, -0.10321044921875, -0.063232421875, -0.01171112060546875, 0.0289764404296875, 0.0109100341796875, 0.048797607421875, 0.0288543701171875, 0.017822265625, 0.07952880859375, 0.0006008148193359375, 0.037078857421875, 0.0217437744140625, -0.0211029052734375, 0.05047607421875, 0.03875732421875, 0.0256500244140625, -0.037322998046875, 0.033782958984375, 0.0408935546875, 0.0615234375, -0.04962158203125, -0.042236328125, -0.001983642578125, -0.0190582275390625, 0.017333984375, 0.0016202926635742188, 0.00965118408203125, 0.002758026123046875, 0.0175018310546875, -0.0185089111328125, -0.0054931640625, 0.005924224853515625, 0.0154266357421875, -0.0271148681640625, -0.03594970703125, 0.0013217926025390625, -0.01265716552734375, -0.0282745361328125, -0.0122528076171875, 0.00705718994140625, 0.044036865234375, 0.048828125, 0.005237579345703125, 0.00013744831085205078, -0.0225372314453125, -0.0108642578125, 0.021484375, -0.0411376953125, 0.03680419921875, -0.047882080078125, -0.045806884765625, -0.021728515625, 0.042144775390625, -0.00397491455078125, 0.0077972412109375, 0.026336669921875, 0.040130615234375, -0.005420684814453125, -0.019378662109375, 0.0298614501953125, -0.01282501220703125, -0.01105499267578125, -0.0126800537109375, 0.01261138916015625, 0.043487548828125, 0.0026111602783203125, -0.0003993511199951172, 0.037200927734375, 0.023956298828125, 0.01497650146484375, 0.00528717041015625, 0.0102996826171875, -0.03094482421875, 0.039886474609375, 0.01033782958984375, 0.03717041015625, 0.0408935546875, -0.08123779296875, -0.01305389404296875, -0.0179595947265625, -0.0209808349609375, 0.01384735107421875, 0.01229095458984375, -0.0416259765625, 0.047607421875, 0.0806884765625, -0.023345947265625, -0.003421783447265625, 0.00429534912109375, 0.0311279296875, -0.00972747802734375, 0.01020050048828125, 0.0191650390625, -0.0225830078125, 0.00021731853485107422, 0.0248870849609375, -0.0098419189453125, -0.03118896484375, 0.045654296875, 0.002910614013671875, -0.016693115234375, -0.011505126953125, 0.0308685302734375, -0.0244903564453125, -0.021209716796875, 0.04473876953125, 0.0025424957275390625, 0.0050811767578125, -0.0077972412109375, 0.02484130859375, 0.0225830078125, 0.0216522216796875, -0.034027099609375, 0.029754638671875, -0.0655517578125, 0.003932952880859375, -0.026580810546875, -0.01033782958984375, -0.01247406005859375, 0.0152740478515625, -0.01354217529296875, -0.024017333984375, 0.054229736328125, 0.0206756591796875, -0.0369873046875, 0.0389404296875, 0.007343292236328125, -0.022918701171875, 0.041778564453125, -0.03448486328125, 0.0625, 0.038360595703125, 0.0033893585205078125, 0.02642822265625, -0.0066986083984375, -0.02362060546875, -0.0006732940673828125, 0.018096923828125, -0.042144775390625, 0.0012788772583007812, -0.02398681640625, -0.061676025390625, -0.0267181396484375, 0.010528564453125, -0.00807952880859375, 0.004024505615234375, -0.052703857421875, 0.004184722900390625, -0.0263214111328125, 0.0305633544921875, -0.0226593017578125, 0.0027313232421875, -0.0210418701171875, -0.01415252685546875, 0.01079559326171875, -0.0538330078125, -0.0121307373046875, 0.003932952880859375, 0.0133514404296875, 0.038818359375, -0.0982666015625, 0.06597900390625, 0.006622314453125, 0.0162353515625, -0.0174407958984375, 0.0550537109375, -0.037353515625, -0.007434844970703125, -0.06219482421875, 0.00267791748046875, -0.047149658203125, 0.0093536376953125, -0.00727081298828125, -0.0171051025390625, 0.0211029052734375, 0.0025272369384765625, -0.0218353271484375, -0.032745361328125, -0.0271453857421875, 0.004608154296875, -0.0099945068359375, -0.002338409423828125, 0.03741455078125, -0.01432037353515625, -0.03131103515625, -0.0263671875, 0.0015411376953125, -0.0258331298828125, -0.0182647705078125, 0.04730224609375, 0.0011720657348632812, 0.028045654296875, -0.00984954833984375, -0.08489990234375, 0.0650634765625, -0.00925445556640625, -0.039581298828125, -0.0212249755859375, 0.00902557373046875, 0.00827789306640625, -0.0198822021484375, 0.004428863525390625, -0.03607177734375, -0.0338134765625, -0.005420684814453125, 0.042327880859375, 0.0230255126953125, 0.0207672119140625, 0.038177490234375, -0.03179931640625, 0.047607421875, 0.01108551025390625, 0.040679931640625, 0.01323699951171875, 0.00884246826171875, 0.0258331298828125, 0.039520263671875, -0.0357666015625, 0.044952392578125, -0.0204620361328125, -0.01617431640625, -0.00710296630859375, -0.005039215087890625, -0.06597900390625, -0.0177001953125, 0.0772705078125, 0.0833740234375, 0.041778564453125, -0.0281829833984375, -0.01120758056640625, -0.02593994140625, 0.00018978118896484375, -0.0006666183471679688, 0.0082244873046875, -0.036590576171875, -0.0015172958374023438, 0.004974365234375, -0.0175628662109375, 0.0224761962890625, -0.0170440673828125, -0.027313232421875, -0.0028133392333984375, 0.018096923828125, 0.0266265869140625, -0.06024169921875, 0.049041748046875, -0.021240234375, -0.015655517578125, -0.0288543701171875, -0.040252685546875, 0.00893402099609375, -0.038787841796875, -0.046051025390625, -0.01080322265625, 0.0077972412109375, -0.0164642333984375, 0.0264739990234375, 0.00240325927734375, 0.004550933837890625, -0.0205230712890625, 0.0037822723388671875, -0.032379150390625, 0.036285400390625, 0.034454345703125, 0.036651611328125, -0.056640625, 0.0017862319946289062, 0.01117706298828125, -0.0005679130554199219, 0.0035610198974609375, 0.049285888671875, 0.0011997222900390625, 0.034210205078125, 0.0107574462890625, -0.03582763671875, 0.044891357421875, -0.03466796875, -0.008758544921875, -0.0196075439453125, -0.02178955078125, -0.044403076171875, 0.0247039794921875, -0.00653076171875, -0.0117645263671875, 0.023223876953125 ]
a7d310796664502064135e77268d1dc6c519c127
Wordpress Stackexchange Q: register_post_status and show_in_admin_all_list I have a custom post status which should be public visible but not displayed in the "all" list of the edit screen. This is how I register the post status: register_post_status('my_custom_post_status', array( 'label' => __('The Label', 'domain'), 'public' => true, 'exclude_from_search' => true, 'show_in_admin_all_list' => false, 'label_count' => //blablabla )); The show_in_admin_all_list = false should hide the status in the all-list but it doesn't. Only if I set the public to false it is not visible. But I need public = true! Any ideas Codex: http://codex.wordpress.org/Function_Reference/register_post_status A: This solves my problem: register_post_status('my_custom_post_status', array( 'label' => __('The Label', 'domain'), 'public' => !is_admin(), 'exclude_from_search' => true, 'show_in_admin_all_list' => false, 'label_count' => //blablabla )); !is_admin() makes the status only public on the frontpage. If you find a better solution please post it here!
Q: register_post_status and show_in_admin_all_list I have a custom post status which should be public visible but not displayed in the "all" list of the edit screen. This is how I register the post status: register_post_status('my_custom_post_status', array( 'label' => __('The Label', 'domain'), 'public' => true, 'exclude_from_search' => true, 'show_in_admin_all_list' => false, 'label_count' => //blablabla )); The show_in_admin_all_list = false should hide the status in the all-list but it doesn't. Only if I set the public to false it is not visible. But I need public = true! Any ideas Codex: http://codex.wordpress.org/Function_Reference/register_post_status A: This solves my problem: register_post_status('my_custom_post_status', array( 'label' => __('The Label', 'domain'), 'public' => !is_admin(), 'exclude_from_search' => true, 'show_in_admin_all_list' => false, 'label_count' => //blablabla )); !is_admin() makes the status only public on the frontpage. If you find a better solution please post it here! A: My approach, inspired by @revaxarts, is this: if (is_admin() && $_GET['post_type'] == 'post') { $makepublic = true; } else { $makepublic = false; } register_post_status( 'suspended', array( 'label' => _x( 'suspended', 'Status General Name', 'myadvert' ), 'public' => $makepublic, 'exclude_from_search' => true, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Suspended <span class="count">(%s)</span>', 'Suspended <span class="count">(%s)</span>' ) ) ); Because I do not want it to see those post on the frontend while I am logged in as admin. A: If you don't want to change the public parameter, because you want to have more control over your posts, you should also hook the pre_get_posts action to change the main query: /** * Display all posts on edit.php * Bug fix: the 'show_in_admin_all_list' argument for the 'register_post_status' function is ignored when the argument 'public' is set to 'false' * @link https://core.trac.wordpress.org/ticket/24415 */ add_action('pre_get_posts', function($query) { global $pagenow; if (!is_admin() || $query->query['post_type'] != 'YOUR_CPT' || $pagenow != 'edit.php') { return; } if (!isset($_GET['post_status']) || empty($_GET['post_status']) || (isset($_GET['post_status']) && $_GET['post_status'] == 'all')) { $query->set( 'post_status', array('publish', 'draft', 'foo', 'bar')); } }); A: i am using publish press plugin to create a custom post status i changed the all post status into public, using this register_post_status( $status->slug, [ 'label' => $status->name, 'public' => true, 'exclude_from_search' => true, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, '_builtin' => false, 'label_count' => _n_noop("{$status->name} <span class='count'>(%s)</span>","{$status->name} <span class='count'>(%s)</span>"), ] ); all post shown at front end but edit.php all post page not working it not showing the all the post which is relevant to custom post type and it also affected the woocommerce
wordpress
{ "language": "en", "length": 401, "provenance": "stackexchange_00019.jsonl.gz:424633", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67655" }
[ 0.1011962890625, -0.00443267822265625, 0.034759521484375, -0.037322998046875, 0.022674560546875, -0.036773681640625, 0.046142578125, -0.034332275390625, -0.0008978843688964844, 0.01123046875, -0.03033447265625, -0.00433349609375, -0.0533447265625, -0.0211181640625, -0.01568603515625, -0.04754638671875, 0.0201568603515625, 0.0108795166015625, 0.0489501953125, -0.00827789306640625, 0.01544189453125, -0.01067352294921875, 0.04168701171875, -0.038909912109375, 0.045135498046875, -0.07061767578125, 0.03961181640625, -0.03765869140625, 0.03369140625, -0.023712158203125, 0.027984619140625, 0.017333984375, 0.01384735107421875, 0.031707763671875, -0.01264190673828125, -0.0231781005859375, -0.0017948150634765625, 0.01120758056640625, 0.0213775634765625, 0.00792694091796875, 0.03155517578125, -0.01456451416015625, 0.0067596435546875, -0.001697540283203125, -0.0194549560546875, -0.0208892822265625, 0.0186767578125, -0.0141448974609375, 0.02593994140625, -0.019622802734375, 0.01515960693359375, 0.0122833251953125, 0.029815673828125, -0.023773193359375, -0.026947021484375, -0.0023288726806640625, -0.0075531005859375, 0.00968170166015625, 0.04974365234375, 0.013153076171875, -0.033355712890625, -0.028411865234375, 0.0254364013671875, -0.07000732421875, -0.007640838623046875, -0.01415252685546875, -0.045379638671875, 0.0287628173828125, -0.06854248046875, -0.0316162109375, 0.031951904296875, -0.054107666015625, 0.032867431640625, 0.006740570068359375, -0.0601806640625, -0.044189453125, 0.03656005859375, -0.0287628173828125, 0.02239990234375, -0.035491943359375, 0.00508880615234375, 0.006683349609375, -0.04705810546875, 0.0124359130859375, -0.0230255126953125, 0.031463623046875, -0.022369384765625, -0.0202789306640625, -0.001537322998046875, 0.0098876953125, -0.0177001953125, 0.00894927978515625, 0.009185791015625, 0.0141143798828125, -0.0135955810546875, -0.00925445556640625, 0.0810546875, 0.09246826171875, -0.03424072265625, -0.0364990234375, -0.01108551025390625, -0.02935791015625, -0.01459503173828125, -0.0217742919921875, 0.02142333984375, 0.0579833984375, -0.0216827392578125, 0.0102386474609375, 0.04107666015625, 0.00920867919921875, 0.030487060546875, -0.0240020751953125, -0.018463134765625, -0.004856109619140625, -0.02484130859375, -0.0173187255859375, -0.056884765625, -0.006237030029296875, -0.0177764892578125, -0.00905609130859375, 0.046722412109375, 0.0660400390625, 0.000010967254638671875, -0.003993988037109375, -0.02105712890625, 0.0124664306640625, -0.00893402099609375, -0.06793212890625, 0.0030975341796875, 0.0162200927734375, -0.0203399658203125, 0.0205535888671875, 0.05694580078125, -0.0154571533203125, -0.0279388427734375, -0.0017614364624023438, 0.007038116455078125, -0.00603485107421875, -0.014801025390625, 0.024871826171875, -0.01529693603515625, -0.036956787109375, 0.0230560302734375, -0.0269775390625, -0.0245819091796875, 0.036041259765625, 0.01415252685546875, -0.014984130859375, -0.0137481689453125, -0.0574951171875, -0.0251617431640625, -0.030792236328125, 0.0228729248046875, 0.022064208984375, -0.01525115966796875, 0.018157958984375, 0.0172271728515625, 0.0149383544921875, -0.038665771484375, -0.006328582763671875, 0.07952880859375, 0.004276275634765625, -0.01507568359375, 0.0223541259765625, -0.0220794677734375, -0.0015773773193359375, -0.05584716796875, -0.005878448486328125, 0.01556396484375, -0.0113525390625, 0.0364990234375, 0.00379180908203125, 0.00414276123046875, -0.025604248046875, -0.0140380859375, -0.0274810791015625, 0.0190582275390625, 0.00933837890625, 0.0164794921875, 0.040618896484375, -0.0186920166015625, -0.026123046875, 0.039794921875, -0.023681640625, -0.047027587890625, 0.0214080810546875, 0.01202392578125, 0.03753662109375, -0.007099151611328125, 0.003124237060546875, 0.04443359375, 0.032257080078125, -0.00803375244140625, 0.0020427703857421875, -0.006443023681640625, -0.031280517578125, 0.012115478515625, -0.010498046875, -0.0036678314208984375, 0.01296234130859375, -0.05780029296875, -0.0042724609375, -0.00749969482421875, 0.038726806640625, -0.0082244873046875, -0.0025615692138671875, -0.01103973388671875, 0.032073974609375, 0.0174713134765625, 0.0325927734375, 0.00518798828125, -0.0033111572265625, -0.0153350830078125, 0.020599365234375, -0.0063629150390625, -0.014739990234375, -0.02166748046875, 0.0266876220703125, -0.03173828125, 0.038360595703125, -0.0157318115234375, -0.040313720703125, -0.0250396728515625, 0.01666259765625, 0.055908203125, -0.01268768310546875, 0.0010957717895507812, -0.025115966796875, 0.05535888671875, 0.0012712478637695312, 0.0003998279571533203, 0.0256500244140625, 0.036407470703125, -0.0106201171875, -0.051666259765625, -0.0282440185546875, -0.01165771484375, -0.092529296875, 0.0210113525390625, 0.08197021484375, 0.017822265625, 0.01554107666015625, -0.01666259765625, 0.03717041015625, 0.059173583984375, 0.004589080810546875, 0.0026874542236328125, 0.0247955322265625, -0.0124664306640625, 0.01006317138671875, -0.034576416015625, 0.03564453125, 0.033599853515625, -0.0271453857421875, 0.0168304443359375, 0.06298828125, 0.0015459060668945312, 0.0006356239318847656, -0.006847381591796875, -0.01270294189453125, 0.0255126953125, -0.00194549560546875, -0.044891357421875, 0.0179443359375, -0.040191650390625, 0.034454345703125, 0.01371002197265625, 0.0214385986328125, -0.0231781005859375, 0.00902557373046875, 0.0182037353515625, 0.0305023193359375, 0.00957489013671875, 0.01020050048828125, -0.0010709762573242188, -0.0283050537109375, -0.032867431640625, 0.0049285888671875, 0.02490234375, -0.0208892822265625, -0.023193359375, -0.032073974609375, -0.047576904296875, 0.00012063980102539062, 0.020233154296875, -0.0791015625, 0.023773193359375, 0.042755126953125, -0.0200653076171875, -0.036376953125, -0.021026611328125, 0.051177978515625, 0.0073394775390625, 0.038665771484375, 0.0228424072265625, -0.005947113037109375, -0.016448974609375, -0.064453125, 0.05377197265625, -0.044708251953125, 0.059661865234375, 0.08746337890625, 0.0231781005859375, 0.0060272216796875, 0.007221221923828125, -0.021514892578125, -0.01434326171875, 0.0171051025390625, -0.005462646484375, -0.026214599609375, -0.013031005859375, 0.04443359375, 0.01983642578125, 0.02325439453125, -0.0086669921875, -0.04510498046875, 0.0028553009033203125, 0.018096923828125, -0.037841796875, -0.01300048828125, -0.048583984375, -0.04791259765625, -0.01078033447265625, -0.0026912689208984375, -0.02325439453125, 0.032440185546875, -0.00861358642578125, 0.00881195068359375, -0.0016431808471679688, -0.00289154052734375, -0.03009033203125, -0.0158233642578125, -0.033355712890625, 0.01117706298828125, -0.0033092498779296875, -0.01343536376953125, 0.00788116455078125, 0.1329345703125, 0.025848388671875, -0.08489990234375, 0.0205230712890625, -0.01331329345703125, -0.0284881591796875, 0.07769775390625, -0.0057373046875, 0.00588226318359375, -0.003253936767578125, 0.023223876953125, -0.0265655517578125, 0.0071563720703125, -0.00960540771484375, -0.0278778076171875, -0.0191192626953125, -0.048614501953125, 0.025146484375, -0.0321044921875, -0.007236480712890625, 0.0023193359375, 0.00909423828125, -0.036285400390625, -0.006069183349609375, -0.012969970703125, -0.0285491943359375, -0.0091094970703125, 0.002574920654296875, -0.011505126953125, -0.0018367767333984375, -0.0034961700439453125, 0.01165008544921875, 0.01267242431640625, 0.0133209228515625, -0.023040771484375, -0.019989013671875, 0.01125335693359375, 0.0235595703125, 0.0036640167236328125, -0.0137176513671875, -0.018585205078125, 0.00629425048828125, -0.0206146240234375, 0.0131072998046875, 0.00670623779296875, -0.002750396728515625, -0.020965576171875, -0.04412841796875, 0.038543701171875, -0.0263214111328125, 0.00020051002502441406, -0.04376220703125, -0.0227813720703125, -0.01605224609375, 0.068359375, -0.043060302734375, 0.0009412765502929688, 0.00933837890625, 0.0227203369140625, -0.03662109375, -0.0626220703125, -0.050537109375, 0.0038776397705078125, -0.04937744140625, 0.024444580078125, -0.0004119873046875, -0.0247039794921875, -0.0233612060546875, 0.00655364990234375, -0.044525146484375, -0.0214996337890625, 0.02813720703125, -0.0176544189453125, 0.0257415771484375, 0.0035648345947265625, 0.02239990234375, -0.0345458984375, 0.00028324127197265625, -0.028656005859375, -0.0701904296875, -0.00628662109375, -0.0212860107421875, 0.043548583984375, 0.01611328125, 0.0213470458984375, -0.01557159423828125, 0.0313720703125, 0.040557861328125, 0.033935546875, -0.0281219482421875, -0.05059814453125, -0.0014886856079101562, 0.0173187255859375, -0.0076904296875, 0.0121307373046875, -0.01031494140625, -0.0121917724609375, -0.054412841796875, -0.025726318359375, -0.0194091796875, -0.0196685791015625, 0.040679931640625, -0.048187255859375, -0.0311737060546875, -0.006927490234375, -0.0181732177734375, -0.005802154541015625, -0.028961181640625, 0.0012645721435546875, 0.007320404052734375, -0.04522705078125, 0.0017957687377929688, -0.04193115234375, -0.06427001953125, 0.043426513671875, 0.0364990234375, 0.025726318359375, 0.0223846435546875, -0.08294677734375, -0.01512908935546875, 0.03515625, -0.024505615234375, 0.03485107421875, 0.07037353515625, -0.0157623291015625, 0.0041351318359375, 0.0266571044921875, -0.048980712890625, 0.0662841796875, 0.00745391845703125, 0.00911712646484375, -0.048492431640625, -0.0139007568359375, -0.0222930908203125, 0.014251708984375, 0.0194854736328125, 0.0015630722045898438, -0.01155853271484375, 0.0036754608154296875, 0.027801513671875, -0.020782470703125, 0.00788116455078125, -0.0264129638671875, 0.0029296875, 0.01485443115234375, 0.0029277801513671875, -0.0005354881286621094, -0.01451873779296875, 0.02178955078125, -0.04351806640625, -0.00449371337890625, -0.01015472412109375, -0.0013723373413085938, 0.0012063980102539062, -0.018157958984375, -0.00725555419921875, 0.0300750732421875, -0.0219573974609375, 0.0176849365234375, -0.00998687744140625, 0.0478515625, -0.0235137939453125, -0.07489013671875, 0.01113128662109375, -0.004276275634765625, 0.0399169921875, 0.053619384765625, 0.0187835693359375, 0.04541015625, 0.058807373046875, 0.004150390625, -0.0119476318359375, 0.03692626953125, 0.011932373046875, -0.0238189697265625, 0.06890869140625, 0.014892578125, 0.01788330078125, -0.00988006591796875, 0.08203125, 0.02947998046875, 0.0306243896484375, -0.0266265869140625, 0.04705810546875, 0.0291748046875, 0.02105712890625, 0.0012903213500976562, -0.007160186767578125, 0.027435302734375, -0.0243682861328125, -0.00537872314453125, -0.010345458984375, 0.033721923828125, 0.00986480712890625, -0.0023097991943359375, 0.051513671875, -0.0028438568115234375, 0.0106964111328125, -0.0194244384765625, -0.035400390625, 0.07696533203125, 0.043548583984375, -0.054168701171875, -0.050750732421875, -0.023223876953125, 0.042388916015625, -0.009765625, 0.0025634765625, -0.005489349365234375, -0.00131988525390625, 0.01480865478515625, -0.0264129638671875, -0.0209197998046875, -0.00446319580078125, 0.00930023193359375, 0.004314422607421875, -0.0036411285400390625, -0.0196685791015625, 0.005970001220703125, -0.0146942138671875, -0.01263427734375, 0.0028324127197265625, 0.0138702392578125, -0.0230712890625, 0.008270263671875, -0.0041046142578125, -0.01251220703125, -0.013824462890625, -0.0022182464599609375, 0.088134765625, 0.04351806640625, -0.0293426513671875, 0.00799560546875, -0.052978515625, -0.0182342529296875, 0.0027751922607421875, -0.032440185546875, -0.0151519775390625, -0.02520751953125, 0.0560302734375, 0.0175933837890625, -0.003299713134765625, -0.0833740234375, -0.039398193359375, 0.024139404296875, 0.0784912109375, 0.06622314453125, 0.00782012939453125, 0.07196044921875, -0.01812744140625, 0.10101318359375, 0.01349639892578125, 0.029327392578125, -0.03961181640625, -0.03875732421875, -0.008148193359375, -0.0462646484375, -0.02294921875, 0.013885498046875, -0.0161590576171875, 0.027130126953125, 0.0192108154296875, 0.009857177734375, 0.0028057098388671875, 0.037200927734375, 0.00812530517578125, -0.01004791259765625, -0.028228759765625, 0.032257080078125, 0.0236663818359375, 0.003910064697265625, 0.007671356201171875, 0.00920867919921875, -0.00795745849609375, 0.0021610260009765625, -0.01104736328125, 0.014739990234375, 0.00341033935546875, -0.023529052734375, -0.05999755859375, 0.047119140625, 0.041412353515625, 0.029083251953125, 0.041900634765625, -0.035919189453125, 0.0258636474609375, 0.01290130615234375, -0.000980377197265625, -0.04156494140625, -0.02459716796875, 0.0166015625, 0.0010509490966796875, 0.00426483154296875, 0.0298919677734375, 0.0040740966796875, 0.0262451171875, 0.045654296875, 0.05242919921875, -0.093505859375, 0.028564453125, 0.044219970703125, 0.00406646728515625, 0.0345458984375, 0.0012998580932617188, -0.01496124267578125, -0.03582763671875, 0.0174560546875, -0.050262451171875, -0.0230865478515625, -0.011962890625, -0.0196685791015625, -0.0165557861328125, 0.0033702850341796875, 0.02557373046875, 0.007343292236328125, -0.02069091796875, -0.01690673828125, 0.0128326416015625, -0.02105712890625, 0.004730224609375, 0.01123046875, -0.021759033203125, -0.0191802978515625, -0.06561279296875, -0.02557373046875, -0.0290679931640625, -0.0286712646484375, 0.060028076171875, 0.01230621337890625, -0.0013418197631835938, 0.05755615234375, -0.0201263427734375, 0.036468505859375, 0.0240936279296875, -0.020538330078125, -0.01084136962890625, -0.00527191162109375, 0.0150604248046875, 0.046783447265625, -0.00009757280349731445, 0.01110076904296875, 0.00832366943359375, -0.015655517578125, -0.01800537109375, -0.04132080078125, 0.12109375, -0.056427001953125, -0.01971435546875, -0.01235198974609375, 0.0034332275390625, -0.0003254413604736328, -0.0297698974609375, 0.0202789306640625, -0.054840087890625, -0.01030731201171875, -0.020477294921875, -0.04083251953125, -0.029541015625, -0.063720703125, -0.0195159912109375, 0.12103271484375, -0.0220184326171875, 0.01358795166015625, 0.00383758544921875, 0.051300048828125, -0.00475311279296875, 0.06329345703125, -0.042449951171875, 0.025299072265625, 0.0299072265625, 0.0390625, -0.038421630859375, -0.005237579345703125, 0.010772705078125, 0.0207366943359375, 0.06988525390625, 0.025726318359375, -0.0421142578125, -0.0056304931640625, 0.025421142578125, 0.045623779296875, 0.0103302001953125, 0.034332275390625, -0.015350341796875, 0.0280914306640625, 0.02783203125, -0.032257080078125, 0.04791259765625, -0.043609619140625, -0.0186920166015625, 0.0013217926025390625, 0.026092529296875, 0.05328369140625, 0.00262451171875, -0.012969970703125, -0.047088623046875, 0.00487518310546875, 0.04913330078125, -0.04901123046875, -0.03045654296875, -0.00908660888671875, -0.01593017578125, -0.03594970703125, 0.0034008026123046875, -0.017242431640625, 0.0228424072265625, 0.00800323486328125, 0.02783203125, -0.0002498626708984375, 0.0106353759765625, 0.03619384765625, -0.0112152099609375, 0.0013856887817382812, 0.0217132568359375, -0.010223388671875, -0.0011425018310546875, 0.0103607177734375, 0.0160369873046875, -0.018585205078125, 0.03900146484375, 0.020050048828125, 0.01324462890625, -0.029205322265625, -0.04376220703125, 0.01299285888671875, 0.0163116455078125, -0.0253143310546875, 0.03045654296875, -0.01611328125, -0.0008029937744140625, 0.071044921875, -0.044464111328125, -0.00592041015625, 0.01009368896484375, 0.041839599609375, -0.01369476318359375, -0.05609130859375, -0.0157623291015625, -0.039154052734375, -0.03839111328125, -0.04345703125, 0.0250091552734375, 0.06329345703125, 0.0501708984375, 0.037811279296875, 0.0263671875, -0.0280303955078125, -0.0191192626953125, -0.0014314651489257812, -0.00521087646484375, 0.0217437744140625, -0.062408447265625, -0.0185546875, 0.044036865234375, 0.043975830078125, 0.0098724365234375, -0.00850677490234375, 0.0419921875, 0.052337646484375, -0.014404296875, -0.0125579833984375, 0.03778076171875, -0.0015888214111328125, -0.02520751953125, -0.0270843505859375, -0.0014886856079101562, 0.01490020751953125, -0.0005130767822265625, 0.00676727294921875, 0.01293182373046875, 0.03399658203125, 0.005382537841796875, 0.01126861572265625, 0.01052093505859375, -0.022552490234375, 0.0306854248046875, -0.0015249252319335938, 0.055206298828125, 0.0217742919921875, -0.04046630859375, -0.02978515625, 0.00678253173828125, -0.0200042724609375, -0.002716064453125, 0.0232086181640625, -0.0078125, 0.023040771484375, 0.015411376953125, 0.0252227783203125, 0.0081329345703125, -0.034637451171875, 0.0200958251953125, 0.0047760009765625, 0.0159912109375, 0.0274505615234375, -0.003971099853515625, 0.007572174072265625, -0.0050506591796875, 0.0020275115966796875, 0.017578125, 0.0694580078125, -0.0118408203125, 0.01125335693359375, -0.021331787109375, 0.038482666015625, -0.0704345703125, -0.02783203125, -0.01117706298828125, -0.03485107421875, 0.0197296142578125, 0.02508544921875, -0.0119171142578125, 0.015045166015625, 0.04583740234375, -0.07623291015625, 0.036224365234375, -0.01181793212890625, -0.01197052001953125, -0.0712890625, -0.0037670135498046875, -0.02154541015625, -0.026123046875, -0.019622802734375, 0.020599365234375, 0.00725555419921875, -0.0189208984375, -0.0445556640625, 0.035919189453125, -0.0306549072265625, -0.051727294921875, 0.03741455078125, -0.06585693359375, 0.045654296875, 0.0252685546875, -0.013275146484375, -0.0017995834350585938, -0.023223876953125, -0.01284027099609375, 0.0323486328125, 0.01165771484375, -0.007843017578125, 0.006687164306640625, 0.006389617919921875, -0.039031982421875, 0.0187225341796875, 0.019744873046875, -0.032440185546875, 0.0187225341796875, 0.0222930908203125, -0.010986328125, 0.0126800537109375, 0.016387939453125, -0.0251007080078125, -0.0119781494140625, -0.020660400390625, 0.0038852691650390625, -0.00586700439453125, -0.082763671875, -0.061676025390625, 0.0015459060668945312, 0.02880859375, -0.016326904296875, -0.00804901123046875, -0.03570556640625, -0.01526641845703125, 0.049041748046875, -0.000415802001953125, 0.0396728515625, 0.0111236572265625, 0.050811767578125, -0.034515380859375, 0.0298004150390625, 0.0182647705078125, -0.004543304443359375, 0.0401611328125, -0.0068359375, 0.00945281982421875, -0.007358551025390625, -0.043426513671875, -0.0305633544921875, -0.036041259765625, 0.0079193115234375, 0.03466796875, -0.02142333984375, -0.019927978515625, 0.0196990966796875, -0.0146484375, -0.06414794921875, 0.0137481689453125, -0.068359375, -0.015869140625, -0.036529541015625, 0.037200927734375, 0.038543701171875, -0.0178680419921875, -0.055755615234375, 0.036529541015625, -0.0198211669921875, -0.0211181640625, -0.0260162353515625, 0.00984954833984375, -0.004215240478515625, 0.02276611328125, -0.0009489059448242188, -0.04864501953125, -0.031707763671875, 0.01482391357421875, 0.010772705078125, 0.047943115234375, 0.0189208984375, 0.0257720947265625, -0.0178985595703125, -0.006595611572265625, -0.0280303955078125, -0.01410675048828125, -0.002532958984375, -0.012420654296875, 0.02813720703125, 0.0225830078125, -0.02734375, -0.01031494140625, 0.0096435546875, 0.00678253173828125, 0.032562255859375, -0.051788330078125, -0.030120849609375, -0.0546875, 0.0191802978515625, -0.03326416015625, 0.0084228515625, 0.02117919921875, -0.03619384765625, -0.05645751953125, -0.007740020751953125, -0.0240936279296875, 0.0157928466796875, -0.08203125, -0.0037937164306640625, 0.0212860107421875, 0.00760650634765625, -0.005161285400390625, -0.00930023193359375, -0.0186767578125, -0.00879669189453125, 0.019744873046875, 0.0137939453125, -0.0399169921875, 0.002910614013671875, -0.0007843971252441406, -0.0167999267578125, -0.05523681640625, 0.0145416259765625, -0.003124237060546875, -0.04217529296875, 0.026458740234375, -0.0063018798828125, -0.039154052734375, -0.006137847900390625, 0.0269927978515625, -0.001865386962890625, 0.03179931640625, -0.007068634033203125, -0.0184173583984375, -0.00782012939453125, 0.005908966064453125, -0.01081085205078125, 0.006622314453125, 0.0020046234130859375, 0.033905029296875, 0.00689697265625, 0.0438232421875, -0.0301055908203125, 0.07769775390625, 0.0028667449951171875, 0.02508544921875, -0.01190948486328125, 0.0079345703125, 0.020355224609375, -0.0007839202880859375, 0.00592041015625, -0.01528167724609375, 0.0208740234375, -0.03460693359375, 0.0046844482421875, -0.08355712890625, 0.0105438232421875, 0.0129852294921875 ]
06b376a97d6fc067dbb3956eb658d517d6468962
Wordpress Stackexchange Q: Disable edit media attachments? Looking for a way to disable the "Edit Image" option. I would still like to be able to edit the description, alt, etc. But remove the Edit image button or disable that image editor. Thanks, A: I figured it out. Just put this in your functions.php file add_action('admin_head-media-upload-popup', 'remove_edit_image_button'); // for the pop up media box add_action('admin_head', 'remove_edit_image_button'); // for the media page function remove_edit_image_button() { ?> <style> .A1B1 p .button { display:none; } </style> <?php }
Q: Disable edit media attachments? Looking for a way to disable the "Edit Image" option. I would still like to be able to edit the description, alt, etc. But remove the Edit image button or disable that image editor. Thanks, A: I figured it out. Just put this in your functions.php file add_action('admin_head-media-upload-popup', 'remove_edit_image_button'); // for the pop up media box add_action('admin_head', 'remove_edit_image_button'); // for the media page function remove_edit_image_button() { ?> <style> .A1B1 p .button { display:none; } </style> <?php } A: The CSS selectors above didn't work for me; however, after inspecting the page I came up with this, which did work: function remove_edit_image_button() { ?> <style> .wp_attachment_image p .button { display:none; } </style> <?php } Could be due to another plugin I'm using, or a different WP version, I don't know. Just posting in case someone else encounters this. A: From Disable edit option in Media library: Add some CSS to admin_head to hide the image actions bar, and hide the edit button once clicking into the image: This should do the trick: function hide_image_edit_link() { echo '<style> table.media .row-actions {display:none;} .wp_attachment_image input[id^="imgedit-open-btn"] {display:none;} </style>'; } add_action('admin_head', 'hide_image_edit_link');
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:424646", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67693" }
[ 0.06610107421875, -0.00623321533203125, 0.032623291015625, 0.032135009765625, 0.00335693359375, -0.04168701171875, 0.0909423828125, -0.047332763671875, 0.0194244384765625, 0.0294647216796875, 0.0035266876220703125, -0.034820556640625, 0.0214691162109375, -0.045806884765625, -0.0304718017578125, -0.0245208740234375, 0.0164337158203125, 0.00030159950256347656, 0.0175323486328125, -0.006038665771484375, 0.013671875, 0.0094146728515625, 0.017486572265625, -0.01580810546875, -0.046173095703125, 0.0506591796875, 0.07720947265625, -0.0181427001953125, -0.0283050537109375, -0.01305389404296875, -0.0013103485107421875, 0.004150390625, 0.00550079345703125, 0.042449951171875, -0.056915283203125, -0.0075836181640625, -0.0032367706298828125, 0.00888824462890625, 0.0026340484619140625, 0.013092041015625, 0.030487060546875, -0.0162811279296875, -0.00921630859375, 0.00970458984375, -0.018707275390625, 0.00501251220703125, -0.0018672943115234375, -0.032684326171875, 0.0440673828125, 0.0078582763671875, -0.01016998291015625, 0.00893402099609375, 0.0100555419921875, -0.03167724609375, -0.03546142578125, -0.047821044921875, -0.00946807861328125, 0.040924072265625, 0.0115814208984375, 0.005950927734375, -0.0216827392578125, 0.0286407470703125, -0.00628662109375, -0.0141448974609375, 0.0149688720703125, -0.009002685546875, -0.0022144317626953125, 0.0194091796875, -0.08599853515625, 0.0015878677368164062, 0.061492919921875, -0.0687255859375, 0.0293731689453125, -0.04296875, 0.016143798828125, 0.03802490234375, -0.03717041015625, -0.00843048095703125, 0.047760009765625, -0.039459228515625, 0.05096435546875, 0.001941680908203125, 0.0157318115234375, -0.009613037109375, 0.0362548828125, 0.02685546875, 0.0125274658203125, -0.038177490234375, 0.0008597373962402344, 0.0208282470703125, -0.008209228515625, -0.0195465087890625, 0.0230560302734375, 0.03350830078125, -0.00839996337890625, 0.005939483642578125, 0.025054931640625, -0.013641357421875, 0.00955963134765625, -0.0201873779296875, 0.01035308837890625, -0.044677734375, 0.00310516357421875, -0.01091766357421875, 0.00860595703125, -0.0182037353515625, -0.0036716461181640625, -0.0218353271484375, 0.032440185546875, 0.0299072265625, -0.0233306884765625, 0.038299560546875, -0.01323699951171875, -0.0003495216369628906, 0.002262115478515625, 0.01190185546875, -0.05084228515625, 0.0660400390625, -0.006267547607421875, 0.05841064453125, -0.0157928466796875, -0.0069427490234375, 0.0049896240234375, 0.019561767578125, 0.005809783935546875, 0.0023326873779296875, -0.00946044921875, 0.014923095703125, 0.03228759765625, -0.00833892822265625, -0.06634521484375, 0.00881195068359375, 0.12237548828125, 0.054107666015625, 0.06268310546875, -0.014739990234375, -0.0301513671875, -0.0095367431640625, 0.0159149169921875, -0.0103912353515625, 0.027252197265625, -0.0198822021484375, 0.0264434814453125, 0.02752685546875, -0.0295562744140625, 0.033721923828125, 0.0138092041015625, 0.005359649658203125, -0.00897979736328125, -0.060333251953125, -0.01531982421875, -0.028411865234375, 0.02191162109375, 0.0236968994140625, 0.0236663818359375, -0.0008778572082519531, 0.0809326171875, -0.04339599609375, -0.0181121826171875, -0.06524658203125, 0.00888824462890625, 0.011138916015625, 0.05120849609375, -0.001140594482421875, -0.0097808837890625, -0.0193328857421875, -0.04290771484375, -0.01056671142578125, 0.0192718505859375, 0.0086517333984375, 0.021820068359375, -0.054412841796875, -0.01904296875, 0.0142059326171875, -0.00017344951629638672, 0.029083251953125, 0.0163421630859375, -0.0132904052734375, -0.0016107559204101562, 0.044342041015625, 0.00496673583984375, -0.026611328125, 0.022369384765625, -0.00965118408203125, -0.059906005859375, 0.0408935546875, 0.00826263427734375, 0.055755615234375, 0.0136260986328125, 0.0240936279296875, 0.057220458984375, 0.0390625, -0.0038013458251953125, 0.0117950439453125, 0.0227813720703125, -0.02911376953125, -0.051239013671875, -0.0230712890625, -0.021209716796875, 0.007472991943359375, 0.033935546875, -0.01080322265625, -0.005313873291015625, -0.00510406494140625, -0.082763671875, -0.01305389404296875, -0.032012939453125, 0.0159759521484375, -0.023284912109375, 0.025634765625, 0.0285797119140625, -0.0191650390625, -0.041046142578125, 0.040374755859375, 0.01263427734375, -0.00911712646484375, -0.043609619140625, 0.0293121337890625, 0.0031280517578125, 0.053253173828125, -0.007061004638671875, -0.0247039794921875, 0.011077880859375, 0.006801605224609375, 0.0301513671875, -0.006107330322265625, -0.0111846923828125, -0.0083465576171875, 0.039764404296875, 0.0027313232421875, -0.0008435249328613281, 0.025726318359375, -0.004344940185546875, -0.0031757354736328125, -0.0299072265625, -0.014617919921875, -0.0275115966796875, -0.0836181640625, 0.0022983551025390625, 0.06658935546875, 0.0338134765625, -0.0015363693237304688, -0.00458526611328125, 0.038787841796875, 0.064697265625, 0.0316162109375, 0.019744873046875, 0.006908416748046875, 0.0243988037109375, 0.007904052734375, -0.0211944580078125, -0.01187896728515625, 0.041290283203125, -0.0275726318359375, 0.03424072265625, 0.03302001953125, -0.044891357421875, -0.00550079345703125, 0.0193939208984375, 0.002849578857421875, -0.00030422210693359375, 0.0088348388671875, 0.031341552734375, -0.0220184326171875, 0.0281219482421875, 0.034332275390625, 0.0243072509765625, 0.0200042724609375, -0.06365966796875, 0.027069091796875, 0.033721923828125, -0.00803375244140625, -0.005008697509765625, 0.03338623046875, 0.039764404296875, -0.0265960693359375, -0.032318115234375, -0.0037479400634765625, -0.00749969482421875, 0.0128631591796875, -0.02587890625, -0.03265380859375, -0.0198822021484375, -0.0106964111328125, 0.007511138916015625, -0.08740234375, 0.0278167724609375, 0.0004558563232421875, -0.01184844970703125, -0.0179595947265625, 0.0104522705078125, 0.020782470703125, -0.00711822509765625, 0.00439453125, 0.002666473388671875, -0.014373779296875, -0.0172271728515625, -0.04412841796875, 0.0462646484375, -0.03546142578125, 0.0831298828125, 0.0751953125, -0.042877197265625, 0.047637939453125, 0.00783538818359375, -0.048980712890625, -0.0009570121765136719, 0.040740966796875, 0.0175933837890625, 0.00936126708984375, -0.060821533203125, 0.00833892822265625, 0.0021266937255859375, -0.01132965087890625, -0.0259552001953125, -0.034576416015625, -0.020660400390625, -0.0249176025390625, -0.073486328125, -0.0106353759765625, 0.004238128662109375, -0.054931640625, -0.005706787109375, 0.0286102294921875, -0.0269775390625, -0.031829833984375, 0.07647705078125, 0.005420684814453125, -0.0267791748046875, 0.006465911865234375, 0.040069580078125, 0.0170745849609375, 0.009674072265625, -0.032012939453125, 0.0017309188842773438, 0.0003352165222167969, -0.00409698486328125, 0.0782470703125, 0.0005121231079101562, -0.0322265625, 0.031707763671875, -0.04302978515625, 0.01271820068359375, 0.044586181640625, 0.0245361328125, -0.0413818359375, -0.006427764892578125, -0.00368499755859375, 0.017578125, 0.01776123046875, -0.0187835693359375, -0.005466461181640625, -0.016265869140625, -0.01287841796875, -0.002315521240234375, 0.0246734619140625, 0.02630615234375, -0.01513671875, 0.003376007080078125, -0.042816162109375, 0.00141143798828125, -0.049102783203125, -0.03515625, 0.0306854248046875, 0.0169677734375, 0.00731658935546875, -0.009368896484375, 0.0197906494140625, 0.0286407470703125, 0.01654052734375, -0.01959228515625, -0.0203399658203125, 0.0494384765625, 0.01812744140625, 0.051361083984375, -0.0167388916015625, 0.026397705078125, -0.0037708282470703125, 0.01438140869140625, 0.00775909423828125, 0.00970458984375, -0.028411865234375, 0.036590576171875, -0.037628173828125, -0.009124755859375, 0.036163330078125, -0.042266845703125, -0.003986358642578125, -0.042022705078125, -0.004680633544921875, -0.0216827392578125, 0.046112060546875, -0.010284423828125, -0.03118896484375, -0.03253173828125, 0.00147247314453125, -0.00885772705078125, -0.039154052734375, 0.03314208984375, -0.00795745849609375, -0.0711669921875, 0.02630615234375, -0.004207611083984375, -0.0253753662109375, -0.028228759765625, -0.0140838623046875, -0.05517578125, -0.03485107421875, 0.04229736328125, -0.003002166748046875, -0.01450347900390625, 0.0418701171875, -0.035797119140625, 0.01251220703125, -0.042449951171875, -0.0008249282836914062, -0.09619140625, -0.006786346435546875, -0.00360870361328125, 0.03326416015625, -0.037109375, 0.040802001953125, -0.05206298828125, 0.03192138671875, 0.01036834716796875, -0.029296875, 0.0238189697265625, 0.00237274169921875, 0.025634765625, 0.0018768310546875, 0.005352020263671875, -0.0200042724609375, -0.0147705078125, -0.0258026123046875, -0.0261993408203125, -0.01116180419921875, -0.022247314453125, -0.0153961181640625, 0.01055145263671875, -0.031402587890625, -0.055816650390625, -0.03363037109375, -0.03125, 0.026031494140625, -0.015625, -0.00013709068298339844, -0.058563232421875, -0.0751953125, 0.0238494873046875, -0.013458251953125, -0.009765625, 0.0135498046875, 0.04779052734375, 0.01436614990234375, -0.01300811767578125, -0.0545654296875, 0.0352783203125, 0.02947998046875, -0.01214599609375, 0.0111846923828125, 0.007781982421875, -0.0146636962890625, -0.0038166046142578125, 0.0005364418029785156, -0.005474090576171875, -0.04443359375, 0.0936279296875, -0.010284423828125, -0.0108795166015625, 0.01549530029296875, -0.039825439453125, 0.021820068359375, -0.01206207275390625, -0.01195526123046875, -0.0036106109619140625, -2.384185791015625e-7, 0.02947998046875, -0.01096343994140625, 0.019439697265625, -0.01593017578125, -0.044281005859375, 0.00811767578125, -0.011322021484375, 0.034332275390625, 0.007625579833984375, 0.0026397705078125, 0.0131072998046875, 0.0258331298828125, 0.01531982421875, -0.007427215576171875, 0.04656982421875, -0.055633544921875, 0.06610107421875, -0.037139892578125, -0.017333984375, -0.01763916015625, 0.005573272705078125, -0.006862640380859375, -0.007480621337890625, -0.0296783447265625, -0.02496337890625, 0.0070648193359375, 0.04754638671875, 0.01800537109375, 0.00981903076171875, 0.018463134765625, -0.0006432533264160156, 0.0240936279296875, 0.0141448974609375, -0.00795745849609375, 0.018798828125, -0.0188751220703125, 0.00933074951171875, 0.024078369140625, -0.0267791748046875, 0.07879638671875, -0.0222320556640625, -0.016510009765625, 0.0110626220703125, 0.00003898143768310547, 0.034423828125, 0.03961181640625, 0.0008759498596191406, 0.016632080078125, 0.0325927734375, 0.0009031295776367188, -0.0283050537109375, 0.01412200927734375, -0.0380859375, 0.00388336181640625, 0.01558685302734375, 0.042449951171875, -0.0022640228271484375, -0.0341796875, 0.0083465576171875, -0.04541015625, -0.036102294921875, 0.041900634765625, 0.0145416259765625, -0.06707763671875, -0.00463104248046875, 0.034942626953125, 0.005283355712890625, -0.018890380859375, -0.004497528076171875, -0.00818634033203125, -0.00797271728515625, -0.01494598388671875, 0.016448974609375, -0.055389404296875, 0.01049041748046875, 0.0335693359375, -0.00659942626953125, -0.0122833251953125, -0.0208740234375, -0.0467529296875, -0.05108642578125, 0.00209808349609375, 0.01934814453125, 0.06341552734375, -0.035552978515625, -0.0252227783203125, -0.0031108856201171875, 0.03619384765625, -0.00885009765625, 0.0222015380859375, 0.035003662109375, 0.007720947265625, -0.0208740234375, -0.017059326171875, -0.0611572265625, -0.020172119140625, -0.040740966796875, -0.03466796875, -0.0236663818359375, 0.00750732421875, -0.0160980224609375, 0.003143310546875, -0.00119781494140625, 0.006988525390625, -0.01000213623046875, 0.05096435546875, 0.0163726806640625, 0.08294677734375, 0.0131683349609375, 0.00403594970703125, 0.013702392578125, 0.0145416259765625, 0.01490020751953125, 0.00225067138671875, -0.0270538330078125, -0.0282440185546875, 0.005962371826171875, -0.052398681640625, -0.0194854736328125, 0.005550384521484375, -0.0211029052734375, 0.01291656494140625, 0.01161956787109375, -0.0044708251953125, -0.007305145263671875, -0.038421630859375, -0.006023406982421875, -0.04071044921875, 0.026580810546875, -0.060882568359375, -0.0026187896728515625, -0.0504150390625, -0.05340576171875, 0.0248260498046875, -0.0013675689697265625, -0.01537322998046875, 0.035491943359375, -0.045379638671875, 0.0209503173828125, 0.044921875, -0.003704071044921875, 0.0011730194091796875, 0.053436279296875, -0.013519287109375, 0.036041259765625, 0.0301055908203125, 0.01045989990234375, 0.040252685546875, 0.03729248046875, -0.01085662841796875, -0.0579833984375, 0.04229736328125, 0.0235748291015625, 0.00933074951171875, 0.06396484375, -0.007232666015625, 0.05535888671875, 0.056884765625, 0.084716796875, -0.0738525390625, 0.017974853515625, 0.018890380859375, -0.00867462158203125, 0.06854248046875, -0.02423095703125, -0.0059661865234375, -0.040924072265625, 0.0325927734375, -0.03961181640625, -0.041717529296875, -0.020843505859375, -0.0284271240234375, -0.01313018798828125, 0.0156402587890625, 0.01314544677734375, 0.01727294921875, -0.04541015625, -0.014190673828125, 0.04119873046875, -0.0267333984375, -0.0090484619140625, 0.0136260986328125, -0.01239013671875, -0.023895263671875, -0.08416748046875, -0.019134521484375, -0.0015850067138671875, -0.0264129638671875, 0.033660888671875, 0.004669189453125, 0.006038665771484375, 0.04827880859375, -0.023834228515625, 0.040191650390625, 0.00345611572265625, -0.053497314453125, -0.004405975341796875, -0.0200653076171875, 0.017822265625, 0.0023555755615234375, -0.03271484375, 0.019439697265625, -0.0147857666015625, -0.0168304443359375, -0.00461578369140625, 0.0175018310546875, 0.06231689453125, -0.01181793212890625, -0.0350341796875, 0.04632568359375, -0.01488494873046875, -0.042724609375, -0.0285186767578125, 0.0010595321655273438, -0.032958984375, -0.0026378631591796875, -0.035919189453125, -0.04107666015625, 0.0033626556396484375, -0.049407958984375, -0.06658935546875, 0.10003662109375, -0.044708251953125, 0.059112548828125, 0.0171051025390625, 0.019134521484375, -0.004375457763671875, 0.00235748291015625, -0.004238128662109375, 0.0157928466796875, -0.036407470703125, 0.0275421142578125, -0.02508544921875, 0.0034580230712890625, 0.0051116943359375, 0.0307464599609375, 0.078125, 0.02655029296875, -0.02764892578125, -0.023162841796875, 0.044647216796875, 0.05084228515625, -0.0008044242858886719, 0.0262451171875, 0.005336761474609375, 0.0078277587890625, 0.0187835693359375, -0.0204315185546875, 0.034088134765625, -0.0380859375, -0.0278167724609375, 0.029205322265625, 0.004886627197265625, 0.0289459228515625, 0.0206756591796875, 0.0265045166015625, 0.0184783935546875, -0.0067291259765625, 0.0175018310546875, -0.061920166015625, -0.002780914306640625, 0.052459716796875, 0.007312774658203125, -0.0098114013671875, 0.01535797119140625, -0.03125, 0.047760009765625, -0.003139495849609375, 0.006046295166015625, 0.006435394287109375, 0.01213836669921875, -0.03155517578125, 0.00592041015625, 0.003162384033203125, 0.0284271240234375, -0.01226043701171875, -0.0142364501953125, -0.0130615234375, 0.01351165771484375, -0.070556640625, -0.0231781005859375, 0.0540771484375, 0.0172576904296875, -0.00366973876953125, 0.00484466552734375, 0.01148223876953125, 0.0026531219482421875, -0.0124969482421875, -0.04400634765625, -0.0018253326416015625, -0.0262298583984375, -0.0116119384765625, -0.0092926025390625, 0.01375579833984375, 0.035675048828125, 0.034088134765625, 0.0166015625, 0.03704833984375, -0.06329345703125, -0.005733489990234375, -0.00853729248046875, -0.02044677734375, -0.0227508544921875, -0.0087432861328125, 0.041534423828125, -0.01454925537109375, 0.025146484375, 0.0008463859558105469, -0.05133056640625, 0.05413818359375, -0.0144500732421875, 0.06787109375, -0.07318115234375, -0.031768798828125, -0.01486968994140625, 0.03680419921875, 0.0203399658203125, 0.0292816162109375, 0.052093505859375, 0.051177978515625, -0.0146636962890625, 0.006732940673828125, 0.03155517578125, -0.02423095703125, 0.0019073486328125, -0.01236724853515625, 0.0401611328125, 0.047149658203125, 0.01236724853515625, -0.0176239013671875, 0.032318115234375, 0.064208984375, -0.04498291015625, 0.016326904296875, -0.0008897781372070312, -0.02362060546875, 0.00678253173828125, 0.0124359130859375, 0.0043182373046875, -0.005413055419921875, -0.0526123046875, -0.014617919921875, -0.00975799560546875, -0.05126953125, 0.01708984375, 0.030792236328125, -0.0498046875, 0.05279541015625, -0.051025390625, 0.01459503173828125, -0.0054168701171875, -0.04571533203125, 0.006732940673828125, -0.01373291015625, -0.0016736984252929688, -0.00911712646484375, -0.005035400390625, 0.005771636962890625, -0.018646240234375, 0.040771484375, 0.032196044921875, 0.08587646484375, -0.041412353515625, 0.036163330078125, -0.013275146484375, 0.0033016204833984375, -0.0160369873046875, -0.002986907958984375, -0.031829833984375, 0.00708770751953125, 0.01617431640625, -0.00021016597747802734, 0.0301666259765625, 0.083251953125, 0.003795623779296875, -0.00939178466796875, 0.04364013671875, -0.01251983642578125, -0.0190277099609375, -0.0011129379272460938, 0.0090484619140625, -0.01401519775390625, -0.017669677734375, -0.02081298828125, -0.0009250640869140625, 0.020751953125, 0.026153564453125, -0.0191192626953125, -0.00860595703125, 0.0194091796875, 0.0007481575012207031, 0.00705718994140625, 0.03131103515625, 0.01091766357421875, 0.03741455078125, -0.035919189453125, -0.04266357421875, -0.01055145263671875, -0.0134429931640625, -0.0279541015625, 0.0210113525390625, 0.007137298583984375, 0.0019016265869140625, -0.0499267578125, -0.006450653076171875, -0.01556396484375, -0.0016279220581054688, -0.0292510986328125, -0.02825927734375, 0.0210723876953125, -0.0168304443359375, -0.03900146484375, -0.01204681396484375, -0.005184173583984375, -0.047119140625, -0.0247039794921875, 0.035125732421875, -0.041900634765625, 0.000583648681640625, -0.040557861328125, 0.00018799304962158203, 0.033966064453125, 0.007755279541015625, -0.06463623046875, 0.034332275390625, -0.032318115234375, 0.0474853515625, -0.018280029296875, -0.0193023681640625, -0.019775390625, 0.03533935546875, -0.00826263427734375, -0.07232666015625, -0.04241943359375, 0.06463623046875, -0.0458984375, 0.04071044921875, 0.042388916015625, -0.0286102294921875, 0.0325927734375, 0.045501708984375, 0.035675048828125, 0.10101318359375, -0.0309906005859375, -0.0372314453125, -0.0257568359375, 0.01898193359375, 0.0185089111328125, -0.00812530517578125, -0.0056915283203125, -0.01120758056640625, -0.0196380615234375, -0.017669677734375, 0.0142364501953125, 0.029571533203125, -0.035736083984375, -0.08209228515625, -0.02081298828125, 0.002391815185546875, -0.048065185546875, -0.0171051025390625, 0.0246734619140625, -0.0178070068359375, 0.0195770263671875, 0.01308441162109375, -0.039031982421875, 0.022186279296875, 0.01248931884765625, 0.01395416259765625, 0.02349853515625, 0.0079345703125, 0.0131988525390625, -0.0196685791015625, 0.0266571044921875, -0.0000030994415283203125, -0.0031490325927734375, -0.00336456298828125, -0.0127716064453125, 0.033447265625, 0.024261474609375, -0.03399658203125, -0.0018396377563476562, -0.00019669532775878906, 0.01201629638671875, -0.03424072265625, -0.02520751953125, -0.050384521484375, -0.00213623046875, 0.09576416015625, 0.1060791015625, 0.0296173095703125, -0.05218505859375, 0.047027587890625, 0.004100799560546875, -0.0303955078125, 0.0009679794311523438, 0.0090179443359375, -0.033172607421875, -0.00991058349609375, 0.017730712890625, 0.0010423660278320312, -0.0208282470703125, 0.004665374755859375, -0.0280303955078125, -0.0208740234375, 0.005855560302734375, -0.0011148452758789062, -0.0118865966796875, 0.0295562744140625, 0.04180908203125, -0.03497314453125, 0.047821044921875, -0.0299835205078125, 0.00011628866195678711, 0.049774169921875, -0.0235443115234375, -0.036590576171875, -0.00008744001388549805, 0.0016765594482421875, 0.046356201171875, -0.0228118896484375, 0.005916595458984375, -0.03680419921875, 0.030731201171875, 0.0000692605972290039, 0.01239013671875, 0.0088043212890625, 0.01448822021484375, -0.0438232421875, 0.037445068359375, -0.00508880615234375, 0.0175933837890625, -0.01873779296875, 0.0163116455078125, -0.0196533203125, 0.006977081298828125, -0.001300811767578125, 0.01264190673828125, 0.035369873046875, -0.01058197021484375, 0.01605224609375, 0.016754150390625, 0.0036468505859375, -0.044158935546875, 0.0178985595703125, -0.017913818359375, -0.0029811859130859375, 0.023193359375 ]
45b34919b130c3a0ab0b7eba7512c784f3d9297b
Wordpress Stackexchange Q: Shortcode output always showing at top of page my shortcode output won't appear where I put it, but rather at the top of the content (top of the post/page content). And here is my code function service_shortcode_index() { global $content; $output = include ( TEMPLATEPATH . '/service.php' ); return $output; } add_shortcode('service_mid', 'service_shortcode_index'); there are some regular HTML lists with widget in "service.php" The content displays correctly, just in the wrong position. A: I think your problem is with the $output = include .... statement. include() returns true or false based whether it was successful - not the content of the file being included. Use output buffering to get the content. function service_shortcode_index() { global $content; ob_start(); include ( TEMPLATEPATH . '/service.php' ); $output = ob_get_clean(); return $output; } add_shortcode('service_mid', 'service_shortcode_index');
Q: Shortcode output always showing at top of page my shortcode output won't appear where I put it, but rather at the top of the content (top of the post/page content). And here is my code function service_shortcode_index() { global $content; $output = include ( TEMPLATEPATH . '/service.php' ); return $output; } add_shortcode('service_mid', 'service_shortcode_index'); there are some regular HTML lists with widget in "service.php" The content displays correctly, just in the wrong position. A: I think your problem is with the $output = include .... statement. include() returns true or false based whether it was successful - not the content of the file being included. Use output buffering to get the content. function service_shortcode_index() { global $content; ob_start(); include ( TEMPLATEPATH . '/service.php' ); $output = ob_get_clean(); return $output; } add_shortcode('service_mid', 'service_shortcode_index'); A: The problem is that the PHP function include (roughly speaking) echoes the content and then returns a boolean value. If you switch the include for file_get_contents then your $output will be a string of the file content rather than the boolean value indicating the success of the inclusion. Works for me with Wordpress5.2 & PHP7.
wordpress
{ "language": "en", "length": 188, "provenance": "stackexchange_00019.jsonl.gz:424667", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67771" }
[ 0.05206298828125, -0.0153045654296875, 0.02520751953125, -0.002655029296875, -0.01513671875, -0.024932861328125, 0.039215087890625, -0.036651611328125, 0.0203094482421875, 0.018035888671875, -0.006275177001953125, -0.01381683349609375, -0.048858642578125, -0.0211944580078125, -0.049224853515625, -0.036376953125, 0.039947509765625, -0.01291656494140625, 0.01470184326171875, 0.0010585784912109375, -0.0153961181640625, 0.026763916015625, -0.013336181640625, 0.04254150390625, -0.004848480224609375, -0.033294677734375, 0.09417724609375, 0.00992584228515625, -0.035797119140625, -0.0279693603515625, 0.004955291748046875, 0.0230255126953125, 0.032318115234375, 0.01551055908203125, -0.0498046875, 0.0295562744140625, -0.0364990234375, -0.0008673667907714844, -0.020172119140625, 0.0321044921875, 0.01202392578125, -0.0007505416870117188, 0.066650390625, -0.0265350341796875, 0.025726318359375, -0.00460052490234375, -0.00284576416015625, -0.057708740234375, -0.01338958740234375, 0.0170440673828125, 0.0333251953125, 0.0268096923828125, 0.035980224609375, -0.006191253662109375, 0.0043487548828125, 0.028228759765625, -0.0316162109375, -0.0030193328857421875, 0.0177764892578125, -0.003772735595703125, 0.00292205810546875, -0.00899505615234375, 0.0205078125, -0.0030002593994140625, 0.02593994140625, -0.01076507568359375, 0.01091766357421875, 0.0162200927734375, -0.0150146484375, 0.022186279296875, 0.04376220703125, -0.026580810546875, -0.0016832351684570312, 0.0002796649932861328, -0.01435089111328125, 0.01261138916015625, -0.00504302978515625, 0.0024356842041015625, 0.01528167724609375, 0.00458526611328125, -0.01025390625, 0.0205535888671875, -0.0400390625, -0.019500732421875, -0.0007786750793457031, -0.0032138824462890625, -0.017730712890625, -0.007740020751953125, 0.0035228729248046875, 0.0185699462890625, -0.006473541259765625, 0.053436279296875, 0.017791748046875, -0.006313323974609375, -0.0251312255859375, 0.004520416259765625, -0.004474639892578125, 0.06439208984375, -0.05322265625, 0.037841796875, -0.069580078125, 0.01534271240234375, 0.00917816162109375, -0.04833984375, -0.0159149169921875, 0.0161590576171875, 0.0022678375244140625, -0.036468505859375, 0.0189971923828125, 0.0400390625, -0.00860595703125, 0.0061492919921875, -0.041656494140625, -0.040252685546875, -0.0166168212890625, 0.0104522705078125, -0.0706787109375, -0.00473785400390625, 0.0165252685546875, -0.0435791015625, 0.03314208984375, 0.05316162109375, 0.03070068359375, -0.07501220703125, -0.01519012451171875, -0.015350341796875, -0.0262298583984375, -0.067138671875, 0.04083251953125, -0.0164642333984375, -0.0247344970703125, -0.006885528564453125, 0.0228729248046875, 0.040069580078125, 0.0239410400390625, -0.00312042236328125, -0.01751708984375, -0.06317138671875, 0.0015048980712890625, 0.01274871826171875, -0.006031036376953125, -0.0298614501953125, 0.01922607421875, -0.0064239501953125, -0.03509521484375, 0.01554107666015625, 0.028839111328125, 0.0299530029296875, -0.03363037109375, -0.10247802734375, 0.033111572265625, 0.0087432861328125, 0.010345458984375, 0.0112457275390625, 0.0048675537109375, -0.020660400390625, 0.01239013671875, -0.030487060546875, 0.0191497802734375, -0.030120849609375, 0.0271148681640625, 0.0017538070678710938, 0.0195465087890625, -0.0367431640625, -0.039794921875, -0.014739990234375, -0.08026123046875, 0.001705169677734375, 0.00522613525390625, 0.0474853515625, -0.0021495819091796875, 0.027679443359375, -0.0562744140625, -0.0147247314453125, -0.0148468017578125, -0.0372314453125, -0.00940704345703125, -0.0098724365234375, 0.04736328125, -0.01114654541015625, -0.041717529296875, -0.0297088623046875, 0.04888916015625, 0.001430511474609375, -0.043731689453125, 0.0160675048828125, 0.0202178955078125, 0.07940673828125, -0.003757476806640625, 0.0220489501953125, 0.0283203125, 0.01406097412109375, -0.0167236328125, 0.0286865234375, 0.02923583984375, -0.020843505859375, -0.07769775390625, -0.03656005859375, -0.00904083251953125, -0.007709503173828125, -0.048797607421875, 0.00652313232421875, 0.01110076904296875, 0.007732391357421875, 0.01425933837890625, -0.00708770751953125, -0.0034084320068359375, 0.038970947265625, 0.038665771484375, -0.031768798828125, -0.0193634033203125, -0.04736328125, 0.0102996826171875, 0.01406097412109375, -0.035552978515625, 0.06390380859375, -0.0254364013671875, 0.06854248046875, 0.009735107421875, 0.08685302734375, 0.003986358642578125, -0.0222015380859375, 0.0001017451286315918, -0.0198822021484375, 0.034210205078125, -0.0017442703247070312, -0.0253448486328125, -0.01430511474609375, 0.00994110107421875, -0.004810333251953125, -0.02838134765625, 0.036773681640625, 0.0018072128295898438, 0.035003662109375, -0.072509765625, -0.041168212890625, -0.07196044921875, 0.01401519775390625, 0.010467529296875, 0.04962158203125, 0.0238494873046875, 0.06634521484375, 0.0098724365234375, 0.03515625, 0.06463623046875, -0.0019512176513671875, 0.0268707275390625, -0.0113677978515625, 0.051544189453125, 0.03826904296875, -0.007411956787109375, -0.038848876953125, 0.01461029052734375, -0.10479736328125, 0.01885986328125, 0.032196044921875, -0.01540374755859375, 0.03271484375, 0.00447845458984375, -0.016632080078125, 0.005496978759765625, -0.02398681640625, 0.0009326934814453125, -0.03564453125, 0.0008993148803710938, 0.048553466796875, 0.016571044921875, 0.02740478515625, -0.0675048828125, 0.039398193359375, 0.0223236083984375, 0.0236358642578125, 0.0007848739624023438, 0.0340576171875, 0.0214080810546875, -0.03497314453125, -0.02362060546875, -0.020721435546875, 0.0207977294921875, 0.01541900634765625, 0.0044708251953125, 0.0343017578125, -0.0077972412109375, -0.0123291015625, -0.004230499267578125, -0.00566864013671875, 0.00829315185546875, 0.023895263671875, 0.0228729248046875, 0.0027217864990234375, 0.00943756103515625, 0.0660400390625, -0.004192352294921875, 0.045654296875, -0.0033111572265625, 0.01038360595703125, 0.051666259765625, -0.024017333984375, 0.032073974609375, -0.02044677734375, 0.05767822265625, 0.06317138671875, -0.0251312255859375, 0.019744873046875, -0.01107025146484375, 0.033203125, -0.03631591796875, -0.0167236328125, -0.018096923828125, 0.0159759521484375, -0.0635986328125, 0.034637451171875, 0.044830322265625, 0.05792236328125, 0.0172119140625, -0.0240325927734375, 0.01482391357421875, 0.033111572265625, -0.0703125, -0.10211181640625, -0.0265350341796875, -0.0078125, 0.00292205810546875, 0.01385498046875, -0.00757598876953125, -0.0205535888671875, 0.025909423828125, 0.002262115478515625, -0.012481689453125, 0.0022182464599609375, -0.0267181396484375, -0.021728515625, -0.051025390625, -0.00019049644470214844, -0.008026123046875, 0.0087432861328125, -0.006626129150390625, 0.05084228515625, 0.01062774658203125, -0.0268707275390625, 0.0019626617431640625, 0.0504150390625, -0.0228424072265625, -0.0184783935546875, 0.0252685546875, -0.02838134765625, -0.032501220703125, 0.0087127685546875, -0.0283203125, -0.018341064453125, 0.0192718505859375, -0.02459716796875, -0.024200439453125, -0.0504150390625, -0.0063934326171875, 0.035736083984375, 0.01494598388671875, -0.03460693359375, 0.0499267578125, -0.04241943359375, -0.0020771026611328125, -0.0132293701171875, -0.042510986328125, -0.0247344970703125, 0.034820556640625, -0.00905609130859375, -0.03607177734375, -0.006877899169921875, 0.0010004043579101562, 0.000017940998077392578, 0.06103515625, -0.022308349609375, 0.0089569091796875, -0.01204681396484375, -0.006710052490234375, -0.04296875, 0.0216522216796875, 0.0118560791015625, -0.0015392303466796875, 0.01311492919921875, 0.0474853515625, -0.0139923095703125, 0.0279998779296875, -0.064208984375, -0.0177154541015625, 0.056304931640625, 0.01485443115234375, 0.027130126953125, -0.0312347412109375, -0.03997802734375, -0.01187896728515625, 0.06610107421875, -0.06787109375, 0.00522613525390625, 0.00836181640625, -0.0163726806640625, 0.013031005859375, -0.0164794921875, -0.0826416015625, -0.0269012451171875, -0.08526611328125, 0.04132080078125, 0.0027141571044921875, -0.004039764404296875, -0.048248291015625, 0.00627899169921875, -0.07818603515625, -0.0279541015625, 0.03729248046875, -0.004085540771484375, 0.044769287109375, 0.0158538818359375, 0.0008535385131835938, 0.00601959228515625, -0.036895751953125, -0.026519775390625, -0.03717041015625, -0.005168914794921875, -0.005962371826171875, 0.0050048828125, 0.0154266357421875, -0.059234619140625, -0.0220184326171875, 0.010467529296875, -0.043243408203125, 0.006595611572265625, 0.0177001953125, 0.058807373046875, 0.0033321380615234375, -0.00666046142578125, 0.00731658935546875, -0.033172607421875, -0.00177764892578125, 0.04278564453125, 0.012786865234375, 0.05487060546875, -0.0303497314453125, -0.048858642578125, 0.0284576416015625, -0.05914306640625, -0.029205322265625, -0.038330078125, -0.0171356201171875, 0.03436279296875, -0.0292816162109375, 0.0184326171875, -0.07568359375, -0.041534423828125, -0.00954437255859375, -0.036468505859375, -0.045257568359375, 0.037567138671875, 0.01116943359375, 0.0263519287109375, 0.01342010498046875, -0.0350341796875, 0.01381683349609375, 0.05352783203125, 0.01513671875, 0.022369384765625, 0.0282745361328125, -0.038055419921875, 0.031402587890625, 0.0330810546875, 0.038848876953125, -0.0253753662109375, 0.04638671875, -0.00919342041015625, 0.002613067626953125, 0.01479339599609375, 0.0005903244018554688, -0.036529541015625, -0.0012865066528320312, -0.0181732177734375, 0.0229034423828125, -0.036895751953125, -0.00848388671875, 0.01934814453125, -0.0030689239501953125, -0.00836181640625, -0.0133514404296875, -0.0175018310546875, 0.050384521484375, 0.043792724609375, 0.0212249755859375, 0.0155792236328125, 0.01715087890625, 0.061767578125, 0.002010345458984375, 0.0521240234375, 0.00656890869140625, 0.020111083984375, 0.0239105224609375, 0.0256195068359375, -0.0014142990112304688, 0.0201873779296875, -0.0035858154296875, 0.06683349609375, 0.0113983154296875, -0.039276123046875, 0.01329803466796875, -0.03564453125, -0.01140594482421875, -0.0145263671875, 0.01190185546875, 0.01214599609375, 0.0234832763671875, 0.017120361328125, 0.016265869140625, -0.0165252685546875, 0.0228271484375, -0.0248565673828125, -0.01488494873046875, -0.00024366378784179688, -0.015472412109375, -0.004974365234375, 0.0467529296875, -0.06268310546875, 0.0380859375, 0.00946807861328125, -0.045928955078125, -0.00394439697265625, 0.004817962646484375, 0.04327392578125, 0.01313018798828125, -0.0175628662109375, -0.003902435302734375, 0.047332763671875, -0.0313720703125, -0.005802154541015625, -0.003993988037109375, 0.032745361328125, -0.0234832763671875, -0.02508544921875, 0.04840087890625, -0.01934814453125, -0.0198822021484375, 0.0238800048828125, 0.01331329345703125, -0.024017333984375, -0.0186920166015625, 0.002197265625, 0.0103302001953125, 0.0298614501953125, -0.0002562999725341797, -0.005664825439453125, -0.01898193359375, 0.0237274169921875, -0.025390625, 0.00804901123046875, 0.005924224853515625, -0.0211181640625, -0.0112152099609375, -0.005023956298828125, -0.002353668212890625, -0.052886962890625, -0.05047607421875, 0.0003631114959716797, -0.01142120361328125, 0.054473876953125, -0.0413818359375, 0.018157958984375, -0.03021240234375, 0.01291656494140625, -0.043975830078125, 0.008758544921875, 0.058013916015625, 0.05078125, -0.097900390625, 0.04730224609375, -0.06329345703125, 0.020416259765625, 0.0304412841796875, -0.01739501953125, -0.04351806640625, -0.038299560546875, 0.03253173828125, 0.0194549560546875, -0.002300262451171875, -0.0623779296875, -0.038665771484375, 0.004711151123046875, 0.03765869140625, 0.0509033203125, 0.00565338134765625, 0.064208984375, -0.0206298828125, 0.07354736328125, 0.01497650146484375, 0.04705810546875, -0.005985260009765625, -0.0401611328125, 0.03826904296875, -0.00015532970428466797, -0.030181884765625, -0.00843048095703125, -0.032257080078125, -0.04290771484375, 0.0105133056640625, -0.029937744140625, 0.01103973388671875, 0.0206146240234375, 0.01355743408203125, -0.01172637939453125, 0.01186370849609375, 0.021728515625, -0.0013036727905273438, 0.00714111328125, -0.0034427642822265625, 0.01654052734375, -0.00762176513671875, 0.01326751708984375, -0.0031909942626953125, -0.00829315185546875, 0.019805908203125, -0.0254364013671875, -0.0028228759765625, 0.065673828125, 0.055633544921875, -0.041107177734375, 0.0248565673828125, 0.056793212890625, -0.0240020751953125, 0.01540374755859375, 0.051116943359375, 0.047515869140625, -0.029144287109375, 0.05731201171875, -0.0074462890625, -0.0189208984375, -0.0019893646240234375, -0.040802001953125, 0.0272979736328125, 0.026092529296875, 0.04339599609375, -0.05316162109375, 0.0151214599609375, 0.024444580078125, -0.0399169921875, 0.00052642822265625, -0.0245361328125, 0.0050048828125, -0.037353515625, 0.07757568359375, 0.0311737060546875, -0.00997161865234375, 0.04376220703125, -0.0007333755493164062, -0.005462646484375, -0.010711669921875, 0.044921875, 0.01082611083984375, -0.04656982421875, -0.014923095703125, 0.030792236328125, 0.0023403167724609375, -0.0105438232421875, -0.0159454345703125, -0.005580902099609375, -0.00968170166015625, -0.03948974609375, 0.031463623046875, -0.03778076171875, 0.0204620361328125, 0.041961669921875, -0.045166015625, -0.0260162353515625, 0.02557373046875, -0.049896240234375, 0.05816650390625, -0.015716552734375, -0.01507568359375, 0.08441162109375, -0.00894927978515625, 0.015350341796875, 0.0251617431640625, -0.06781005859375, -0.0102081298828125, 0.007568359375, 0.01088714599609375, -0.0204315185546875, -0.024871826171875, 0.09332275390625, -0.06341552734375, -0.0006895065307617188, -0.0016040802001953125, 0.01508331298828125, 0.004451751708984375, -0.01352691650390625, 0.05426025390625, -0.040069580078125, 0.00244140625, 0.01470184326171875, 0.0283355712890625, -0.044036865234375, -0.0205841064453125, -0.07110595703125, 0.06585693359375, -0.01004791259765625, 0.01271820068359375, -0.0040740966796875, 0.0161895751953125, -0.00925445556640625, -0.0081634521484375, -0.02960205078125, 0.045928955078125, 0.0235137939453125, 0.060272216796875, -0.0345458984375, -0.027191162109375, 0.0379638671875, 0.050811767578125, 0.000041604042053222656, 0.0106048583984375, -0.0177459716796875, 0.01139068603515625, 0.0273590087890625, -0.01983642578125, -0.0304107666015625, 0.04736328125, 0.0005955696105957031, 0.01297760009765625, 0.02105712890625, -0.01549530029296875, 0.0272979736328125, -0.00708770751953125, -0.044036865234375, 0.029083251953125, 0.00824737548828125, -0.01467132568359375, 0.01873779296875, -0.006832122802734375, -0.04168701171875, 0.0228729248046875, 0.0231475830078125, -0.000133514404296875, -0.0271148681640625, 0.06573486328125, 0.06231689453125, -0.11016845703125, -0.039886474609375, -0.041351318359375, 0.060333251953125, 0.0265045166015625, 0.061737060546875, -0.013092041015625, 0.0226898193359375, 0.048583984375, -0.021728515625, 0.0277557373046875, 0.039398193359375, -0.04913330078125, -0.000698089599609375, 0.0309600830078125, 0.03863525390625, -0.00687408447265625, -0.020172119140625, 0.0367431640625, 0.01849365234375, -0.004627227783203125, -0.01122283935546875, 0.01873779296875, 0.01401519775390625, -0.018646240234375, -0.03240966796875, -0.031463623046875, -0.03021240234375, 0.0258026123046875, -0.003757476806640625, -0.0185394287109375, 0.006969451904296875, 0.055816650390625, -0.00799560546875, -0.005741119384765625, -0.031982421875, -0.0243988037109375, -0.03900146484375, 0.0364990234375, 0.0016527175903320312, 0.035400390625, -0.018707275390625, 0.06146240234375, -0.044158935546875, -0.005428314208984375, -0.0199737548828125, 0.0135345458984375, -0.0316162109375, 0.03228759765625, -0.052642822265625, -0.02142333984375, -0.0242156982421875, 0.049102783203125, 0.0014629364013671875, 0.022857666015625, 0.0177764892578125, 0.021209716796875, 0.0017271041870117188, -0.01241302490234375, 0.052825927734375, -0.01207733154296875, -0.0204315185546875, -0.016510009765625, -0.0011720657348632812, 0.0285491943359375, -0.006198883056640625, -0.0011119842529296875, 0.0322265625, 0.01531219482421875, -0.0302581787109375, 0.01110076904296875, -0.008056640625, -0.0271148681640625, 0.0256500244140625, -0.01806640625, 0.051025390625, -0.0123138427734375, -0.0036067962646484375, 0.00334930419921875, -0.0301513671875, -0.063232421875, 0.0168914794921875, 0.047515869140625, 0.0251007080078125, -0.0250701904296875, 0.01506805419921875, 0.004749298095703125, -0.0182037353515625, -0.007305145263671875, 0.03765869140625, 0.00701141357421875, 0.013275146484375, 0.030487060546875, -0.03424072265625, -0.0176849365234375, 0.00037026405334472656, 0.02911376953125, -0.0006070137023925781, 0.038543701171875, 0.00644683837890625, 0.0198822021484375, -0.004947662353515625, -0.0011692047119140625, -0.00545501708984375, -0.03271484375, 0.060760498046875, -0.004779815673828125, -0.020477294921875, -0.0298309326171875, -0.03692626953125, -0.01016998291015625, 0.056060791015625, -0.037567138671875, 0.0134735107421875, 0.004791259765625, 0.01071929931640625, -0.042236328125, 0.004039764404296875, -0.00661468505859375, 0.0247039794921875, 0.016510009765625, -0.0110626220703125, 0.02838134765625, 0.009979248046875, -0.0118255615234375, 0.0254974365234375, 0.05621337890625, -0.031463623046875, 0.04791259765625, -0.04022216796875, 0.085693359375, 0.03497314453125, 0.0296630859375, -0.00878143310546875, -0.0267486572265625, -0.024139404296875, 0.00910186767578125, -0.0049285888671875, 0.0036468505859375, -0.01432037353515625, -0.003910064697265625, 0.0252227783203125, 0.0011043548583984375, 0.0183563232421875, -0.01488494873046875, -0.01360321044921875, 0.01256561279296875, -0.01202392578125, -0.03533935546875, 0.039886474609375, -0.01399993896484375, 0.005725860595703125, 0.018035888671875, 0.0147552490234375, 0.036041259765625, 0.005741119384765625, -0.0318603515625, -0.00286865234375, 0.0224151611328125, -0.00115203857421875, -0.0222625732421875, -0.0206298828125, -0.0018892288208007812, 0.02838134765625, 0.00028967857360839844, 0.0232391357421875, -0.006046295166015625, -0.00778961181640625, -0.05474853515625, 0.0144805908203125, -0.015899658203125, 0.01035308837890625, 0.00431060791015625, -0.000988006591796875, 0.033447265625, 0.0221099853515625, 0.01336669921875, -0.0138397216796875, -0.0257110595703125, 0.044677734375, -0.0850830078125, -0.03460693359375, 0.0036773681640625, 0.007350921630859375, 0.0128021240234375, -0.0118408203125, -0.0015621185302734375, -0.00853729248046875, 0.0243682861328125, 0.01177215576171875, -0.00937652587890625, 0.01064300537109375, -0.027557373046875, -0.0276336669921875, 0.0263671875, 0.02642822265625, -0.025726318359375, -0.0201568603515625, -0.035400390625, -0.004985809326171875, 0.024749755859375, -0.011505126953125, -0.0250091552734375, -0.0273590087890625, 0.0297698974609375, 0.012939453125, 0.018280029296875, 0.023712158203125, 0.01216888427734375, -0.0155029296875, 0.0013208389282226562, -0.007289886474609375, -0.0174102783203125, -0.003276824951171875, -0.023712158203125, 0.051025390625, 0.027618408203125, -0.0279541015625, 0.0010671615600585938, 0.036651611328125, -0.004150390625, -0.003276824951171875, -0.0452880859375, -0.00968170166015625, -0.01654052734375, 0.05865478515625, -0.0013751983642578125, 0.002819061279296875, -0.01751708984375, -0.0109100341796875, 0.01459503173828125, 0.0081329345703125, -0.010894775390625, 0.0015125274658203125, -0.044219970703125, -0.0171356201171875, -0.01971435546875, -0.014495849609375, -0.016021728515625, -0.05364990234375, -0.045745849609375, -0.0042266845703125, -0.02899169921875, 0.0294189453125, -0.011962890625, -0.04022216796875, 0.0098419189453125, 0.0016279220581054688, 0.0186004638671875, -0.0134429931640625, 0.029327392578125, 0.017974853515625, 0.020721435546875, 0.006816864013671875, 0.0095367431640625, -0.01470184326171875, -0.0159454345703125, 0.023681640625, 0.01239013671875, 0.0158843994140625, -0.008331298828125, 0.010009765625, 0.0160980224609375, -0.002349853515625, 0.0019588470458984375, -0.0247802734375, 0.06988525390625, 0.004489898681640625, 0.03485107421875, -0.03936767578125, 0.08544921875, -0.011322021484375, 0.03851318359375, -0.0198516845703125, 0.016571044921875, 0.027740478515625, -0.0235137939453125, 0.0227508544921875, 0.051239013671875, 0.017242431640625, 0.0404052734375, -0.039947509765625, -0.033599853515625, 0.015533447265625, -0.032562255859375 ]
682e5c0b9d2ba1e4b151943657303c46421bc001
Wordpress Stackexchange Q: Restrict url to one segment, even when page or post is nested I use nested/hierarchic pages purely for organizational purposes in the admin but on the main site I don't want a nested url structure. So if the page structure is /page/another-page/and-another-page, the url should only read http://domain.com/and-another-page. Is this possible? And if so, how? Should this be solved with a url rewrite? Thanks in advance! PS: this is not used for funny SEO business or anything. I just want to read the url like Wikipedia which always has a single url segment. I'm building a wiki like site but want to be able to nest pages so I can group them together more easily in the admin.
Q: Restrict url to one segment, even when page or post is nested I use nested/hierarchic pages purely for organizational purposes in the admin but on the main site I don't want a nested url structure. So if the page structure is /page/another-page/and-another-page, the url should only read http://domain.com/and-another-page. Is this possible? And if so, how? Should this be solved with a url rewrite? Thanks in advance! PS: this is not used for funny SEO business or anything. I just want to read the url like Wikipedia which always has a single url segment. I'm building a wiki like site but want to be able to nest pages so I can group them together more easily in the admin.
wordpress
{ "language": "en", "length": 119, "provenance": "stackexchange_00019.jsonl.gz:424671", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67780" }
[ 0.033203125, -0.026275634765625, 0.0275115966796875, -0.026275634765625, -0.03460693359375, 0.0015926361083984375, -0.00626373291015625, -0.00981903076171875, -0.01078033447265625, 0.0084686279296875, 0.0017910003662109375, -0.0004837512969970703, -0.0013141632080078125, -0.047882080078125, 0.027740478515625, -0.011260986328125, 0.002544403076171875, 0.0168914794921875, -0.01482391357421875, -0.019500732421875, 0.00267791748046875, -0.02691650390625, -0.00946044921875, 0.0167388916015625, 0.030181884765625, 0.01114654541015625, 0.02667236328125, -0.0236358642578125, 0.01018524169921875, -0.0150299072265625, 0.0263824462890625, -0.025634765625, -0.0001512765884399414, -0.0020694732666015625, 0.03399658203125, -0.02032470703125, -0.0201263427734375, 0.0157623291015625, 0.028167724609375, -0.0004749298095703125, 0.0029392242431640625, 0.0005979537963867188, 0.032684326171875, 0.033660888671875, 0.00612640380859375, -0.050445556640625, 0.00568389892578125, -0.06976318359375, 0.0276947021484375, -0.031982421875, -0.0001728534698486328, 0.03216552734375, -0.00041747093200683594, 0.01361846923828125, -0.0212554931640625, 0.0037670135498046875, 0.074462890625, -0.06890869140625, 0.0304107666015625, -0.05419921875, -0.038604736328125, -0.0037994384765625, 0.040802001953125, 0.01312255859375, 0.012603759765625, -0.021484375, -0.01348876953125, 0.0266571044921875, -0.05340576171875, 0.0059051513671875, 0.04620361328125, -0.035400390625, -0.007625579833984375, -0.018890380859375, 0.00069427490234375, 0.01183319091796875, -0.0180816650390625, -0.004383087158203125, 0.0235137939453125, 0.0174560546875, -0.0271148681640625, -0.00785064697265625, -0.0158538818359375, -0.03179931640625, -0.004421234130859375, -0.021484375, -0.0165252685546875, 0.01541900634765625, -0.03326416015625, 0.0190582275390625, -0.036163330078125, 0.02154541015625, -0.00440216064453125, 0.01446533203125, -0.033203125, 0.03765869140625, 0.039093017578125, 0.0265960693359375, 0.006122589111328125, -0.0011959075927734375, 0.0017671585083007812, -0.0484619140625, 0.0242156982421875, -0.029388427734375, 0.04644775390625, 0.041473388671875, -0.00887298583984375, 0.034332275390625, 0.08734130859375, 0.001834869384765625, 0.0187225341796875, 0.07489013671875, -0.0242462158203125, -0.0516357421875, -0.0055694580078125, 0.029296875, -0.0531005859375, 0.00661468505859375, 0.01531982421875, 0.0007796287536621094, -0.002490997314453125, 0.03875732421875, 0.0191192626953125, -0.00865936279296875, 0.0006914138793945312, 0.0170440673828125, 0.002521514892578125, -0.0587158203125, 0.0269927978515625, 0.009979248046875, -0.03704833984375, 0.0029163360595703125, 0.03533935546875, 0.02099609375, 0.00937652587890625, -0.016357421875, 0.0301971435546875, 0.0030269622802734375, 0.0006537437438964844, -0.002166748046875, 0.0098419189453125, -0.00580596923828125, 0.0306396484375, -0.01540374755859375, -0.06500244140625, 0.0242462158203125, 0.02423095703125, 0.01068878173828125, -0.039886474609375, -0.0673828125, -0.04071044921875, 0.0023345947265625, 0.0601806640625, -0.01241302490234375, -0.055694580078125, -0.0736083984375, 0.0042877197265625, -0.05682373046875, 0.0133819580078125, -0.08404541015625, -0.01361083984375, 0.005985260009765625, 0.0426025390625, -0.039093017578125, -0.042144775390625, -0.0246429443359375, -0.056671142578125, -0.01381683349609375, 0.006633758544921875, -0.02105712890625, -0.0014772415161132812, -0.037445068359375, -0.040679931640625, 0.006809234619140625, 0.018096923828125, 0.033782958984375, 0.0154571533203125, -0.0276947021484375, -0.00977325439453125, 0.1134033203125, 0.04742431640625, -0.0130767822265625, -0.00807952880859375, 0.03582763671875, -0.062225341796875, 0.0570068359375, -0.0015211105346679688, 0.057281494140625, 0.00885009765625, 0.005428314208984375, 0.0267333984375, 0.023040771484375, -0.038909912109375, 0.010009765625, -0.0110931396484375, -0.0252838134765625, 0.0029144287109375, 0.0177459716796875, -0.0172271728515625, -0.0124664306640625, -0.0310516357421875, 0.0229644775390625, -0.016357421875, 0.06719970703125, 0.05474853515625, -0.0063018798828125, 0.021484375, -0.005962371826171875, -0.006683349609375, 0.02447509765625, 0.015869140625, 0.000720977783203125, -0.01056671142578125, -0.03485107421875, -0.018951416015625, -0.008453369140625, 0.017608642578125, -0.05694580078125, -0.0010499954223632812, -0.04718017578125, 0.01125335693359375, 0.047515869140625, -0.033416748046875, 0.011505126953125, 0.08349609375, -0.0200347900390625, 0.0051727294921875, -0.0293426513671875, 0.038238525390625, 0.0276336669921875, -0.10931396484375, 0.0161285400390625, 0.09576416015625, 0.0244293212890625, -0.046966552734375, 0.0146636962890625, -0.005741119384765625, -0.0484619140625, -0.039031982421875, 0.057952880859375, 0.0364990234375, 0.0213623046875, -0.0182647705078125, -0.024322509765625, 0.0006494522094726562, -0.09912109375, -0.0260467529296875, 0.0007739067077636719, -0.049835205078125, 0.006900787353515625, 0.061492919921875, 0.030181884765625, -0.0017061233520507812, -0.005290985107421875, -0.024993896484375, 0.026153564453125, 0.0183258056640625, 0.0019140243530273438, -0.0215301513671875, 0.02362060546875, -0.00214385986328125, 0.0555419921875, -0.016357421875, 0.02484130859375, -0.022369384765625, -0.0009465217590332031, 0.036376953125, 0.044830322265625, 0.02630615234375, -0.054779052734375, 0.01398468017578125, 0.0269927978515625, -0.003475189208984375, 0.0189056396484375, 0.03839111328125, -0.061248779296875, -0.0128936767578125, -0.0013408660888671875, -0.01366424560546875, -0.0175628662109375, -0.0029888153076171875, 0.0312042236328125, -0.0236053466796875, -0.004119873046875, -0.0057220458984375, -0.0110931396484375, -0.006504058837890625, 0.01953125, 0.053741455078125, -0.00998687744140625, 0.027374267578125, -0.002300262451171875, -0.01885986328125, 0.05615234375, 0.0009217262268066406, -0.04913330078125, -0.01352691650390625, -0.028778076171875, 0.037017822265625, -0.031982421875, 0.0287628173828125, 0.03955078125, -0.01401519775390625, 0.01375579833984375, -0.0020084381103515625, -0.0007505416870117188, 0.00298309326171875, 0.006134033203125, 0.004589080810546875, 0.0199127197265625, -0.08099365234375, 0.0025691986083984375, 0.03009033203125, 0.0032405853271484375, 0.055389404296875, -0.006946563720703125, 0.01343536376953125, 0.039581298828125, -0.031951904296875, -0.04241943359375, -0.0219573974609375, -0.0322265625, -0.01067352294921875, 0.0517578125, -0.0279541015625, 0.00263214111328125, 0.08514404296875, 0.00977325439453125, -0.01279449462890625, -0.0204925537109375, -0.09576416015625, -0.048553466796875, -0.069580078125, 0.0352783203125, -0.035797119140625, 0.00400543212890625, 0.004161834716796875, 0.0013408660888671875, -0.00266265869140625, -0.07666015625, -0.0024585723876953125, 0.0321044921875, 0.001125335693359375, 0.0140380859375, -0.036529541015625, -0.0276336669921875, -0.0106048583984375, -0.0008759498596191406, 0.019775390625, -0.015167236328125, 0.035003662109375, 0.005706787109375, 0.0032825469970703125, 0.0105133056640625, 0.03466796875, -0.048431396484375, -0.0198822021484375, 0.05499267578125, 0.028411865234375, -0.015350341796875, -0.059326171875, -0.01715087890625, -0.09197998046875, -0.0186004638671875, 0.08001708984375, 0.0016832351684570312, -0.047821044921875, -0.0201873779296875, 0.041412353515625, 0.00966644287109375, -0.009429931640625, 0.007659912109375, 0.021270751953125, -0.0023784637451171875, 0.0184478759765625, -0.03668212890625, 0.051910400390625, -0.011810302734375, -0.004108428955078125, 0.00872802734375, -0.0029315948486328125, 0.0030918121337890625, -0.01108551025390625, -0.01050567626953125, -0.023529052734375, 0.0206146240234375, -0.01922607421875, 0.02410888671875, -0.0189361572265625, -0.014556884765625, -0.0185546875, 0.066162109375, -0.059600830078125, -0.0186309814453125, 0.004581451416015625, 0.0217437744140625, -0.029083251953125, -0.0631103515625, -0.045379638671875, -0.0242919921875, 0.002498626708984375, -0.0235443115234375, -0.043701171875, 0.0016241073608398438, -0.01898193359375, 0.006076812744140625, 0.007678985595703125, -0.0275115966796875, 0.0102996826171875, 0.018524169921875, -0.02020263671875, 0.0225830078125, -0.01209259033203125, -0.00696563720703125, -0.00004285573959350586, -0.0087127685546875, -0.0709228515625, -0.0256805419921875, 0.051177978515625, 0.033782958984375, -0.01104736328125, -0.060760498046875, 0.0049591064453125, 0.0667724609375, -0.018218994140625, 0.0287933349609375, -0.002422332763671875, 0.00160980224609375, 0.04742431640625, 0.048370361328125, 0.003726959228515625, 0.0027828216552734375, -0.034271240234375, -0.027740478515625, -0.0044097900390625, 0.010955810546875, -0.0153350830078125, -0.009765625, -0.0019683837890625, -0.00089263916015625, -0.0911865234375, -0.034027099609375, 0.0103607177734375, -0.00994873046875, 0.0302276611328125, -0.032135009765625, -0.01715087890625, -0.07183837890625, 0.0146484375, 0.04803466796875, -0.0283203125, -0.0007529258728027344, -0.005954742431640625, 0.01085662841796875, -0.034515380859375, -0.0269775390625, 0.0011138916015625, 0.0264892578125, -0.0147552490234375, 0.06463623046875, 0.005306243896484375, -0.0047454833984375, 0.072265625, -0.0239715576171875, 0.0190277099609375, 0.033477783203125, 0.00957489013671875, 0.0040740966796875, -0.00952911376953125, 0.005939483642578125, 0.010467529296875, -0.04217529296875, 0.033782958984375, -0.04022216796875, 0.0201568603515625, -0.05584716796875, 0.0311737060546875, -0.01161956787109375, 0.007537841796875, -0.06683349609375, -0.045379638671875, 0.01158905029296875, 0.051513671875, 0.024627685546875, 0.005146026611328125, 0.0021266937255859375, 0.038818359375, 0.030487060546875, -0.0007691383361816406, 0.0227813720703125, 0.039947509765625, 0.00678253173828125, 0.05389404296875, -0.032196044921875, 0.00394439697265625, -0.006832122802734375, -0.004119873046875, 0.0689697265625, 0.0247650146484375, -0.026397705078125, 0.01384735107421875, -0.0108489990234375, -0.0208740234375, 0.0038814544677734375, 0.0288238525390625, 0.003910064697265625, -0.016845703125, 0.01873779296875, 0.00244903564453125, 0.028564453125, -0.0206146240234375, -0.006900787353515625, 0.022430419921875, 0.01001739501953125, -0.002330780029296875, -0.006866455078125, 0.054534912109375, -0.0143585205078125, 0.022918701171875, -0.0036830902099609375, 0.0200042724609375, 0.0195465087890625, 0.004993438720703125, 0.004886627197265625, 0.05816650390625, -0.022735595703125, -0.01050567626953125, 0.0244903564453125, -0.041259765625, -0.031585693359375, 0.03759765625, 0.041656494140625, 0.00965118408203125, 0.0117340087890625, -0.020751953125, 0.0166015625, 0.0026874542236328125, 0.019866943359375, 0.0038051605224609375, -0.02239990234375, -0.01097869873046875, 0.02703857421875, 0.038360595703125, -0.0083465576171875, -0.025299072265625, -0.02001953125, -0.0386962890625, -0.00994873046875, 0.002193450927734375, -0.050537109375, 0.0202484130859375, 0.01068115234375, 0.0227203369140625, -0.01593017578125, -0.004009246826171875, -0.05889892578125, -0.005157470703125, -0.025146484375, 0.0175323486328125, 0.049072265625, 0.0008568763732910156, 0.0615234375, -0.032073974609375, -0.034942626953125, 0.005680084228515625, 0.007350921630859375, 0.04339599609375, 0.012481689453125, -0.08514404296875, 0.009765625, -0.05767822265625, -0.007122039794921875, -0.017120361328125, -0.040008544921875, -0.05047607421875, -0.0133209228515625, 0.0247955322265625, 0.0311737060546875, 0.027099609375, 0.017242431640625, 0.00382232666015625, 0.00598907470703125, -0.006565093994140625, 0.045989990234375, -0.052581787109375, 0.08233642578125, 0.005664825439453125, 0.044097900390625, -0.0129547119140625, 0.02606201171875, 0.0016021728515625, 0.0009660720825195312, 0.0219573974609375, -0.0635986328125, -0.050537109375, -0.0154876708984375, -0.06536865234375, 0.035797119140625, 0.023284912109375, -0.00945281982421875, 0.00730133056640625, -0.025177001953125, -0.0034694671630859375, -0.036468505859375, -0.01125335693359375, -0.049041748046875, -0.01525115966796875, -0.0224761962890625, 0.044525146484375, 0.0701904296875, -0.02264404296875, -0.05181884765625, 0.00025343894958496094, 0.03955078125, 0.0308380126953125, -0.019744873046875, -0.01306915283203125, 0.01065826416015625, 0.0684814453125, 0.007556915283203125, 0.0701904296875, 0.027252197265625, 0.0289154052734375, 0.049407958984375, -0.004238128662109375, -0.0013189315795898438, -0.002056121826171875, 0.01181793212890625, -0.01049041748046875, 0.003936767578125, 0.0190887451171875, -0.0156707763671875, -0.012359619140625, 0.044403076171875, 0.028472900390625, -0.07586669921875, 0.00894927978515625, 0.009490966796875, -0.008209228515625, -0.0032825469970703125, 0.007518768310546875, 0.023223876953125, 0.03448486328125, -0.0199432373046875, 0.01605224609375, -0.01568603515625, -0.0006375312805175781, 0.01322174072265625, -0.017120361328125, -0.0016622543334960938, 0.062255859375, 0.0025959014892578125, 0.0254364013671875, -0.050994873046875, -0.036529541015625, 0.0162506103515625, -0.035430908203125, 0.03485107421875, -0.00014317035675048828, -0.00487518310546875, -0.0262908935546875, 0.0550537109375, 0.015716552734375, 0.02008056640625, 0.045867919921875, 0.0183258056640625, 0.0106048583984375, 0.04296875, -0.0032253265380859375, 0.0224456787109375, 0.0012254714965820312, 0.0008268356323242188, 0.055938720703125, -0.01314544677734375, -0.0234375, -0.0294036865234375, -0.0031280517578125, -0.0257110595703125, -0.0242156982421875, -0.0161285400390625, -0.00507354736328125, 0.005344390869140625, 0.06268310546875, -0.034759521484375, -0.0229339599609375, 0.0243377685546875, -0.0138092041015625, -0.004375457763671875, 0.009796142578125, -0.0101318359375, -0.0003921985626220703, 0.01262664794921875, -0.0139923095703125, -0.01006317138671875, 0.0101776123046875, -0.01531982421875, -0.0640869140625, 0.0732421875, -0.0213470458984375, 0.040496826171875, 0.01265716552734375, 0.0254669189453125, -0.01323699951171875, 0.0032329559326171875, -0.03509521484375, 0.015899658203125, 0.0218048095703125, 0.034820556640625, -0.00970458984375, 0.0016374588012695312, 0.0038471221923828125, 0.010101318359375, 0.0280303955078125, 0.02880859375, -0.049285888671875, -0.021881103515625, -0.0209197998046875, 0.021331787109375, 0.001979827880859375, 0.05303955078125, -0.00811767578125, 0.037872314453125, 0.045257568359375, -0.048187255859375, 0.0065155029296875, 0.0134429931640625, -0.01123809814453125, 0.018218994140625, -0.0149688720703125, -0.032867431640625, 0.0204010009765625, -0.0252532958984375, -0.078857421875, 0.0309906005859375, 0.04620361328125, -0.00157928466796875, -0.01203155517578125, 0.041290283203125, 0.0196533203125, -0.0229644775390625, -0.0012598037719726562, -0.03692626953125, 0.05181884765625, -0.0007653236389160156, 0.025146484375, 0.03277587890625, 0.02490234375, -0.020965576171875, 0.004390716552734375, 0.01904296875, 0.0165252685546875, -0.04339599609375, 0.035675048828125, 0.0123748779296875, 0.0270538330078125, -0.03955078125, -0.01058197021484375, 0.0298004150390625, 0.046417236328125, -0.027984619140625, -0.02886962890625, 0.00507354736328125, 0.00232696533203125, 0.019500732421875, 0.003704071044921875, 0.02008056640625, 0.0548095703125, 0.052703857421875, -0.01187896728515625, -0.01251220703125, 0.0104827880859375, 0.0267333984375, 0.00487518310546875, 0.0248260498046875, -0.031951904296875, -0.0041656494140625, -0.0014505386352539062, -0.0294647216796875, -0.00804901123046875, 0.037109375, 0.0311279296875, 0.00835418701171875, -0.04534912109375, -0.0236968994140625, 0.03240966796875, 0.0198211669921875, -0.032073974609375, -0.03179931640625, -0.0304412841796875, -0.1192626953125, 0.021392822265625, 0.041107177734375, 0.011383056640625, 0.0185546875, 0.0242156982421875, 0.041046142578125, 0.014862060546875, 0.005252838134765625, 0.0460205078125, -0.006420135498046875, 0.046630859375, -0.040771484375, -0.006473541259765625, -0.021575927734375, -0.01068878173828125, -0.0369873046875, -0.0193939208984375, 0.0236663818359375, 0.0257568359375, -0.0181121826171875, 0.0159912109375, -0.0062255859375, 0.00714111328125, -0.032073974609375, -0.020233154296875, 0.022247314453125, -0.041290283203125, -0.004810333251953125, 0.01422882080078125, -0.0802001953125, 0.017974853515625, 0.052886962890625, -0.0208282470703125, -0.01123046875, 0.0439453125, 0.027191162109375, -0.02288818359375, -0.022705078125, -0.0022430419921875, -0.018768310546875, 0.041534423828125, 0.024932861328125, -0.0181427001953125, -0.01441192626953125, 0.005245208740234375, 0.0193634033203125, 0.0081329345703125, 0.0947265625, -0.0239715576171875, 0.00995635986328125, 0.01593017578125, 0.002777099609375, 0.01009368896484375, -0.006046295166015625, -0.0139007568359375, -0.0120391845703125, 0.0243377685546875, -0.0022258758544921875, -0.05438232421875, 0.0238037109375, 0.004611968994140625, -0.0266876220703125, 0.04156494140625, -0.04388427734375, 0.00444793701171875, -0.0292205810546875, 0.04345703125, -0.016876220703125, -0.0231781005859375, -0.038421630859375, -0.0154266357421875, 0.04254150390625, 0.040435791015625, -0.0150909423828125, 0.059722900390625, -0.0238037109375, 0.007129669189453125, 0.0089111328125, -0.0531005859375, -0.01299285888671875, 0.0145721435546875, -0.0007762908935546875, -0.0013055801391601562, 0.010772705078125, -0.0185699462890625, 0.0247344970703125, 0.0031299591064453125, -0.0038967132568359375, 0.01116943359375, -0.01141357421875, -0.00775146484375, 0.0007863044738769531, 0.0192108154296875, -0.0195465087890625, -0.01136016845703125, 0.0142059326171875, -0.01873779296875, -0.0156707763671875, 0.00139617919921875, -0.02337646484375, -0.004150390625, -0.01543426513671875, 0.00455474853515625, 0.00292205810546875, -0.04400634765625, -0.035675048828125, 0.00855255126953125, 0.0254669189453125, 0.01470184326171875, -0.0565185546875, 0.025848388671875, 0.0019369125366210938, 0.038665771484375, -0.0091552734375, 0.041046142578125, -0.00531005859375, 0.01230621337890625, -0.070556640625, -0.0008358955383300781, -0.012237548828125, 0.0091400146484375, -0.007904052734375, 0.00684356689453125, 0.04449462890625, -0.031005859375, 0.0033588409423828125, -0.0025539398193359375, 0.026611328125, 0.0374755859375, -0.00820159912109375, -0.0214996337890625, -0.040313720703125, 0.0301361083984375, -0.01160430908203125, 0.0143585205078125, 0.0249481201171875, 0.038909912109375, -0.036407470703125, -0.029083251953125, 0.0024166107177734375, 0.005176544189453125, -0.03265380859375, -0.0254669189453125, 0.062744140625, -0.0029754638671875, -0.01236724853515625, -0.046966552734375, -0.01032257080078125, -0.0172576904296875, 0.04742431640625, -0.01206207275390625, -0.018310546875, -0.0244903564453125, 0.0389404296875, 0.04376220703125, 0.0394287109375, 0.003925323486328125, 0.05718994140625, 0.024444580078125, 0.0831298828125, 0.0655517578125, 0.0179901123046875, 0.00110626220703125, 0.012481689453125, 0.0258636474609375, 0.04901123046875, -0.0135345458984375, 0.037841796875, -0.00994110107421875, -0.0189056396484375, 0.000024080276489257812, -0.034576416015625, -0.036468505859375, -0.0455322265625, 0.0238037109375, 0.034423828125, 0.01192474365234375, 0.004268646240234375, -0.0248260498046875, -0.04296875, -0.047607421875, -0.01348876953125, 0.0357666015625, -0.073486328125, 0.02264404296875, 0.01971435546875, -0.005970001220703125, 0.0191497802734375, -0.00719451904296875, -0.02362060546875, 0.0005340576171875, 0.0139923095703125, 0.0018243789672851562, -0.05767822265625, -0.00798797607421875, -0.0003616809844970703, -0.0279388427734375, -0.036651611328125, -0.005756378173828125, 0.023773193359375, -0.05816650390625, -0.0282745361328125, -0.033050537109375, 0.050140380859375, -0.047821044921875, 0.0011386871337890625, -0.00713348388671875, 0.021331787109375, -0.01800537109375, 0.0283203125, -0.0222015380859375, 0.033477783203125, 0.02301025390625, 0.0478515625, -0.040618896484375, 0.01277923583984375, 0.0293731689453125, -0.0450439453125, 0.0005445480346679688, 0.050384521484375, -0.0144805908203125, 0.041412353515625, -0.0157012939453125, -0.01403045654296875, 0.005077362060546875, -0.0195159912109375, -0.00519561767578125, 0.0115509033203125, -0.043182373046875, -0.037841796875, -0.01009368896484375, -0.020965576171875, 0.00020778179168701172, 0.0016756057739257812 ]
bae0c95d1b8da9384cbb3abe9ad5ad64ecef442e
Wordpress Stackexchange Q: How may I filter get_users() similarly to pre_get_posts? I have filtered posts, pages and custom_post_types based on $current_user custom usermeta field values using pre_get_posts(). Is there a similar method/function to alter get_users() based on $current_user custom field values? I've searched quite a bit but came up empty handed. For example, let's assume I want to filter the results of get_users() for an editor with the "town" custom meta of "Paris" to only return the list of users with the same value in "town" field. Similarly, an editor with "Rome" in "town" should get only users from "Rome", and so on... Ideally, I'd like this parameter to append itself to all get_users() done by the website's functions in both back and front end as long as the user is logged in. Is this possible in WordPress? Thank you. A: There's the pre_user_query action called in the prepare_query() method of the WP_User_Query class defined in wp-includes/user.php: do_action_ref_array( 'pre_user_query', array( &$this ) );
Q: How may I filter get_users() similarly to pre_get_posts? I have filtered posts, pages and custom_post_types based on $current_user custom usermeta field values using pre_get_posts(). Is there a similar method/function to alter get_users() based on $current_user custom field values? I've searched quite a bit but came up empty handed. For example, let's assume I want to filter the results of get_users() for an editor with the "town" custom meta of "Paris" to only return the list of users with the same value in "town" field. Similarly, an editor with "Rome" in "town" should get only users from "Rome", and so on... Ideally, I'd like this parameter to append itself to all get_users() done by the website's functions in both back and front end as long as the user is logged in. Is this possible in WordPress? Thank you. A: There's the pre_user_query action called in the prepare_query() method of the WP_User_Query class defined in wp-includes/user.php: do_action_ref_array( 'pre_user_query', array( &$this ) ); A: Suppose you have the $current_user town saved in a variable $town. The meta key is town. You can use get_users like following: get_users( 'meta_key' => 'town', 'meta_value' => $town, 'meta_compare' => '=' );
wordpress
{ "language": "en", "length": 195, "provenance": "stackexchange_00019.jsonl.gz:424677", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67792" }
[ 0.07958984375, 0.0160064697265625, 0.0125274658203125, -0.0235137939453125, 0.0266876220703125, -0.041412353515625, 0.078369140625, -0.0254364013671875, 0.0211639404296875, 0.0474853515625, -0.01100921630859375, -0.006694793701171875, 0.0164031982421875, -0.0068817138671875, -0.031646728515625, -0.00955963134765625, 0.00948333740234375, 0.0086517333984375, 0.0204620361328125, -0.026092529296875, 0.00368499755859375, -0.02947998046875, 0.0121612548828125, 0.021697998046875, 0.007244110107421875, -0.01303863525390625, 0.0701904296875, 0.004413604736328125, 0.020233154296875, -0.00298309326171875, 0.0065460205078125, -0.030364990234375, 0.0016813278198242188, 0.031829833984375, -0.01515960693359375, 0.00496673583984375, 0.005397796630859375, 0.01116943359375, 0.0185089111328125, -0.00011390447616577148, 0.034393310546875, -0.0128021240234375, -0.0946044921875, 0.0152587890625, -0.055267333984375, -0.074462890625, 0.0731201171875, 0.024688720703125, 0.017242431640625, 0.0296173095703125, 0.00720977783203125, 0.01812744140625, 0.0279541015625, -0.03887939453125, 0.005657196044921875, 0.01232147216796875, -0.0247344970703125, -0.0038089752197265625, 0.05242919921875, -0.0272674560546875, -0.02606201171875, -0.051544189453125, 0.04718017578125, -0.00937652587890625, -0.005584716796875, -0.0240325927734375, 0.01030731201171875, 0.0162353515625, -0.019866943359375, -0.023834228515625, 0.017242431640625, 0.0138397216796875, -0.0076141357421875, 0.0239410400390625, -0.037139892578125, -0.00937652587890625, 0.0202178955078125, -0.011077880859375, 0.0111083984375, 0.0243072509765625, -0.01508331298828125, -0.01953125, -0.09423828125, 0.0440673828125, -0.03814697265625, 0.0311431884765625, -0.0196533203125, -0.007556915283203125, -0.01271820068359375, -0.0411376953125, -0.00494384765625, -0.031585693359375, -0.039886474609375, 0.0241546630859375, -0.01421356201171875, -0.0316162109375, 0.026611328125, 0.0360107421875, -0.0056610107421875, -0.0205078125, 0.01058197021484375, -0.033660888671875, -0.01435089111328125, -0.0115966796875, -0.00354766845703125, 0.034637451171875, 0.0059356689453125, 0.0882568359375, 0.034942626953125, 0.028472900390625, 0.023681640625, -0.014495849609375, 0.00528717041015625, -0.027069091796875, -0.0308990478515625, 0.028350830078125, -0.01093292236328125, -0.04248046875, -0.0024871826171875, -0.0270843505859375, 0.01123809814453125, 0.0173187255859375, 0.0499267578125, -0.0229339599609375, 0.0213470458984375, 0.01629638671875, -0.034454345703125, -0.047515869140625, 0.0198974609375, 0.06329345703125, -0.03277587890625, -0.0201568603515625, 0.040191650390625, 0.0167694091796875, 0.0077056884765625, -0.03759765625, -0.00012981891632080078, -0.049652099609375, -0.017608642578125, 0.0377197265625, 0.00984954833984375, -0.06292724609375, -0.027587890625, 0.005054473876953125, -0.002208709716796875, 0.038848876953125, 0.0243377685546875, -0.00588226318359375, -0.0210723876953125, -0.040618896484375, -0.057373046875, 0.029052734375, -0.00009101629257202148, 0.0027179718017578125, 0.035308837890625, 0.031829833984375, 0.0196685791015625, -0.00858306884765625, -0.01212310791015625, 0.007709503173828125, 0.05218505859375, -0.004169464111328125, -0.032745361328125, 0.0009050369262695312, -0.04754638671875, 0.006256103515625, -0.01239013671875, -0.00945281982421875, 0.025054931640625, 0.00768280029296875, 0.04925537109375, 0.0290985107421875, 0.0278472900390625, 0.02569580078125, 0.017913818359375, -0.01309967041015625, -0.025299072265625, 0.039520263671875, 0.037841796875, -0.002841949462890625, -0.03436279296875, -0.03863525390625, 0.048004150390625, -0.010955810546875, -0.0770263671875, 0.042144775390625, -0.01390838623046875, 0.045623779296875, 0.0447998046875, 0.0012636184692382812, 0.03192138671875, 0.0239715576171875, -0.017730712890625, 0.01090240478515625, -0.00010287761688232422, -0.05670166015625, 0.0482177734375, -0.0206298828125, 0.01751708984375, 0.0299835205078125, 0.060394287109375, -0.027374267578125, 0.044586181640625, -0.030242919921875, -0.07745361328125, 0.01374053955078125, -0.0300140380859375, 0.01849365234375, -0.0026702880859375, 0.0078887939453125, 0.0030422210693359375, 0.0036029815673828125, -0.03204345703125, 0.026336669921875, -0.0138092041015625, -0.0019969940185546875, -0.004581451416015625, 0.0216827392578125, 0.01080322265625, 0.0251312255859375, 0.020721435546875, -0.010284423828125, 0.0018835067749023438, -0.01251220703125, 0.0248260498046875, -0.0221710205078125, -0.01068878173828125, -0.009429931640625, 0.0220947265625, -0.01183319091796875, 0.0265350341796875, 0.0284576416015625, 0.043182373046875, 0.05902099609375, -0.028564453125, 0.00643157958984375, -0.00487518310546875, 0.016998291015625, -0.0018634796142578125, 0.020294189453125, 0.0333251953125, 0.01751708984375, 0.0031280517578125, 0.0007791519165039062, 0.05126953125, -0.00399017333984375, 0.0249176025390625, -0.0173492431640625, 0.01239013671875, 0.062408447265625, -0.0181732177734375, -0.011810302734375, 0.00013554096221923828, -0.05908203125, 0.009368896484375, 0.0265350341796875, -0.002086639404296875, 0.055938720703125, -0.0080108642578125, -0.0400390625, -0.0252532958984375, -0.038116455078125, 0.0016498565673828125, -0.020416259765625, -0.01471710205078125, 0.01227569580078125, -0.00024819374084472656, -0.00014770030975341797, -0.007965087890625, -0.013519287109375, 0.01788330078125, -0.0179290771484375, 0.0022430419921875, -0.00911712646484375, -0.032073974609375, 0.034637451171875, -0.033416748046875, 0.01922607421875, 0.00910186767578125, -0.026123046875, 0.006778717041015625, -0.0034580230712890625, -0.005706787109375, 0.0018129348754882812, 0.040496826171875, -0.0253143310546875, 0.0230560302734375, 0.02813720703125, 0.00658416748046875, -0.01348876953125, 0.0231170654296875, -0.0111236572265625, -0.03778076171875, 0.05377197265625, -0.0182037353515625, -0.0205841064453125, 0.0224456787109375, -0.0225372314453125, 0.014801025390625, -0.007511138916015625, 0.04534912109375, 0.057525634765625, 0.00876617431640625, -0.005504608154296875, 0.0018892288208007812, 0.005680084228515625, -0.01593017578125, 0.020050048828125, 0.0016355514526367188, -0.0307159423828125, 0.0008549690246582031, 0.03497314453125, 0.03497314453125, 0.0259857177734375, 0.016571044921875, -0.00376129150390625, -0.023223876953125, 0.0411376953125, 0.005008697509765625, 0.0243682861328125, -0.0118865966796875, -0.053955078125, 0.02386474609375, -0.0330810546875, -0.0016803741455078125, 0.0030460357666015625, -0.0225372314453125, 0.02496337890625, 0.040252685546875, -0.007564544677734375, -0.04144287109375, -0.0011110305786132812, -0.05572509765625, 0.0218505859375, -0.004161834716796875, -0.0027294158935546875, 0.004062652587890625, 0.0198974609375, -0.00330352783203125, -0.04949951171875, 0.0024051666259765625, 0.042327880859375, -0.01251983642578125, 0.00489044189453125, -0.0081329345703125, -0.021026611328125, 0.046722412109375, -0.00911712646484375, 0.041290283203125, 0.035614013671875, -0.027923583984375, -0.0046539306640625, 0.02947998046875, 0.0027828216552734375, 0.04876708984375, -0.00464630126953125, -0.053131103515625, 0.073974609375, 0.07659912109375, -0.00568389892578125, 0.010162353515625, -0.017486572265625, -0.028717041015625, 0.041595458984375, -0.01406097412109375, 0.00839996337890625, 0.016693115234375, 0.03216552734375, 0.04888916015625, 0.013916015625, -0.0200347900390625, -0.0028629302978515625, 0.0098724365234375, 0.039764404296875, 0.07611083984375, 0.00345611572265625, -0.0003380775451660156, -0.031158447265625, 0.0230712890625, -0.004337310791015625, 0.00835418701171875, 0.0032749176025390625, -0.013336181640625, -0.012420654296875, -0.07025146484375, 0.081298828125, 0.023040771484375, -0.0005764961242675781, -0.04315185546875, -0.046417236328125, -0.020111083984375, 0.1126708984375, -0.033447265625, -0.01739501953125, 0.0202178955078125, 0.007152557373046875, -0.021697998046875, 0.01064300537109375, -0.0750732421875, -0.0141754150390625, -0.07476806640625, -0.011932373046875, -0.0174713134765625, -0.0193939208984375, -0.03741455078125, 0.005580902099609375, -0.0760498046875, -0.025970458984375, 0.038299560546875, -0.03411865234375, 0.04193115234375, -0.0157623291015625, 0.035369873046875, -0.0518798828125, 0.0188140869140625, -0.0303497314453125, -0.05670166015625, -0.0199127197265625, 0.00395965576171875, 0.047576904296875, 0.0176849365234375, -0.01158905029296875, -0.0162506103515625, 0.049652099609375, 0.0235748291015625, 0.02862548828125, -0.0101165771484375, -0.02471923828125, 0.0528564453125, 0.0012426376342773438, -0.0032329559326171875, 0.0009765625, -0.0094757080078125, -0.033477783203125, -0.019775390625, -0.033111572265625, -0.05120849609375, 0.0108489990234375, -0.0399169921875, -0.02142333984375, -0.06658935546875, -0.037139892578125, 0.0008330345153808594, 0.003795623779296875, -0.00673675537109375, -0.01082611083984375, -0.0133209228515625, -0.0684814453125, 0.023162841796875, 0.0299835205078125, -0.006450653076171875, 0.00485992431640625, 0.044158935546875, 0.0167083740234375, -0.0234222412109375, 0.01419830322265625, -0.0209503173828125, 0.00891876220703125, -0.0251007080078125, 0.05059814453125, 0.01285552978515625, -0.01395416259765625, 0.0640869140625, -0.02117919921875, 0.00726318359375, -0.0051727294921875, 0.044891357421875, 0.00948333740234375, 0.0067901611328125, -0.00489044189453125, 0.0218048095703125, -0.01483917236328125, 0.033935546875, -0.01183319091796875, -0.033477783203125, 0.00406646728515625, 0.050933837890625, -0.005580902099609375, -0.01110076904296875, -0.051788330078125, -0.041046142578125, 0.0129547119140625, -0.016571044921875, 0.01519012451171875, -0.0218658447265625, 0.0204315185546875, 0.00019311904907226562, 0.00997161865234375, 0.006206512451171875, 0.005584716796875, 0.0467529296875, -0.003948211669921875, 0.074951171875, -0.027801513671875, 0.00821685791015625, -0.0283203125, -0.01184844970703125, 0.056640625, -0.0124664306640625, -0.040802001953125, 0.02288818359375, -0.02490234375, -0.0032863616943359375, 0.048126220703125, 0.0016736984252929688, 0.039398193359375, 0.034820556640625, 0.0123291015625, 0.003936767578125, -0.0224761962890625, 0.03314208984375, -0.032440185546875, 0.0181884765625, -0.007564544677734375, 0.01110076904296875, 0.022491455078125, 0.059814453125, -0.01343536376953125, 0.063720703125, -0.032379150390625, 0.048553466796875, 0.05255126953125, 0.000011146068572998047, 0.007297515869140625, 0.03216552734375, -0.01800537109375, 0.002593994140625, 0.0056304931640625, -0.02301025390625, 0.0013322830200195312, 0.007541656494140625, 0.0023136138916015625, 0.046600341796875, 0.031463623046875, 0.0011434555053710938, 0.005641937255859375, -0.022064208984375, 0.04302978515625, 0.035400390625, -0.042633056640625, -0.035491943359375, -0.00426483154296875, 0.0055389404296875, -0.0012407302856445312, -0.01070404052734375, 0.002559661865234375, -0.02239990234375, -0.0025730133056640625, -0.00917816162109375, -0.006855010986328125, -0.0266265869140625, -0.023712158203125, -0.023834228515625, -0.01885986328125, 0.0260772705078125, -0.058319091796875, -0.01549530029296875, -0.008544921875, -0.016510009765625, 0.033905029296875, 0.00556182861328125, 0.00689697265625, -0.06170654296875, 0.0121612548828125, -0.09295654296875, -0.00033545494079589844, 0.042022705078125, 0.0212249755859375, -0.0482177734375, 0.006008148193359375, -0.0540771484375, -0.02398681640625, -0.0494384765625, -0.018280029296875, -0.044525146484375, 0.0178680419921875, 0.004108428955078125, 0.0318603515625, -0.0065155029296875, -0.040008544921875, -0.035858154296875, -0.00664520263671875, 0.0299530029296875, 0.047332763671875, -0.0030193328857421875, 0.052520751953125, -0.01435089111328125, 0.056365966796875, 0.00832366943359375, 0.032928466796875, -0.0085296630859375, -0.033416748046875, -0.00934600830078125, -0.06488037109375, -0.02911376953125, -0.0128936767578125, -0.0192718505859375, 0.04754638671875, 0.047943115234375, 0.006885528564453125, 0.01325225830078125, -0.006103515625, 0.00043463706970214844, -0.01085662841796875, -0.0239410400390625, -0.005207061767578125, -0.005451202392578125, 0.013275146484375, -0.004688262939453125, 0.00400543212890625, -0.0091094970703125, -0.0159759521484375, -0.00359344482421875, 0.005222320556640625, -0.0113983154296875, 0.01374053955078125, -0.0201873779296875, 0.0272369384765625, 0.0227508544921875, -0.0081634521484375, 0.0207366943359375, 0.00835418701171875, 0.015533447265625, 0.0242462158203125, -0.0235748291015625, 0.00257110595703125, 0.03350830078125, 0.045196533203125, -0.0079803466796875, -0.003215789794921875, 0.0419921875, -0.017333984375, 0.00830078125, 0.029388427734375, 0.046234130859375, -0.0609130859375, 0.0189971923828125, 0.0110015869140625, 0.0053863525390625, 0.005657196044921875, 0.0091552734375, 0.0006618499755859375, -0.040374755859375, 0.035858154296875, -0.0027618408203125, 0.00843048095703125, 0.0206756591796875, -0.018585205078125, -0.0221405029296875, -0.04736328125, -0.0037517547607421875, -0.0160064697265625, 0.0579833984375, -0.0179443359375, -0.04827880859375, 0.0023822784423828125, -0.003108978271484375, 0.0247344970703125, -0.01360321044921875, -0.0189361572265625, -0.07537841796875, -0.03314208984375, -0.004802703857421875, -0.049346923828125, 0.005863189697265625, 0.02728271484375, 0.076416015625, 0.0160064697265625, 0.034088134765625, -0.04327392578125, 0.0114288330078125, -0.037017822265625, -0.01175689697265625, -0.026824951171875, -0.01837158203125, 0.03631591796875, -0.033477783203125, 0.00951385498046875, -0.0148162841796875, 0.00696563720703125, -0.01007843017578125, -0.056365966796875, 0.0738525390625, -0.0283966064453125, -0.01491546630859375, 0.00812530517578125, 0.017486572265625, -0.009796142578125, 0.0161590576171875, -0.0106048583984375, -0.0372314453125, -0.03173828125, -0.0009288787841796875, -0.06378173828125, 0.01094818115234375, 0.0022735595703125, -0.04205322265625, 0.0132904052734375, -0.0011644363403320312, 0.0308685302734375, 0.0129852294921875, -0.0028781890869140625, 0.0028133392333984375, -0.0036067962646484375, -0.06011962890625, 0.060760498046875, -0.006633758544921875, 0.09625244140625, -0.092041015625, -0.0265655517578125, 0.028106689453125, 0.044403076171875, 0.0582275390625, 0.031341552734375, -0.052825927734375, -0.044708251953125, -0.01141357421875, 0.03594970703125, -0.007274627685546875, 0.0584716796875, 0.00809478759765625, 0.0770263671875, 0.0850830078125, -0.046295166015625, 0.03662109375, 0.007495880126953125, -0.01324462890625, 0.029083251953125, -0.0054168701171875, -0.0183868408203125, -0.0214080810546875, 0.0433349609375, -0.03961181640625, -0.030303955078125, 0.0311126708984375, -0.03741455078125, 0.005970001220703125, 0.06292724609375, 0.054107666015625, -0.0075531005859375, -0.0244293212890625, -0.0294647216796875, 0.039703369140625, 0.017120361328125, 0.01374053955078125, 0.06890869140625, 0.0191802978515625, 0.0175933837890625, 0.0230865478515625, 0.0222320556640625, 0.01367950439453125, -0.00039839744567871094, 0.06060791015625, 0.0244140625, 0.01146697998046875, -0.04510498046875, 0.000766754150390625, 0.060882568359375, 0.08441162109375, -0.053497314453125, -0.040863037109375, 0.01251220703125, -0.0200653076171875, 0.0107269287109375, 0.024444580078125, 0.0006155967712402344, -0.020721435546875, 0.007480621337890625, -0.06500244140625, 0.00982666015625, 0.00949859619140625, 0.0006089210510253906, -0.0276641845703125, -0.0235137939453125, 0.00604248046875, 0.01393890380859375, -0.0213623046875, -0.0167388916015625, 0.00934600830078125, -0.0023632049560546875, 0.031158447265625, 0.0016345977783203125, 0.0587158203125, 0.003635406494140625, 0.004383087158203125, -0.0249176025390625, -0.035736083984375, 0.002681732177734375, -0.0120697021484375, -0.0086212158203125, -0.0167388916015625, 0.0297698974609375, 0.029296875, -0.01155853271484375, 0.022186279296875, -0.00554656982421875, -0.03253173828125, 0.00159454345703125, 0.019805908203125, -0.0177459716796875, -0.002063751220703125, -0.01513671875, -0.01355743408203125, 0.01151275634765625, -0.002532958984375, -0.035064697265625, 0.0005660057067871094, 0.033172607421875, -0.004558563232421875, 0.04986572265625, -0.006977081298828125, -0.00539398193359375, 0.0124664306640625, -0.0152435302734375, 0.054046630859375, 0.01532745361328125, -0.060882568359375, 0.01409149169921875, -0.068359375, -0.045318603515625, 0.01380157470703125, 0.03387451171875, 0.0102691650390625, -0.0034236907958984375, 0.01290130615234375, -0.050323486328125, 0.0184478759765625, 0.0218048095703125, 0.0217437744140625, 0.01515960693359375, -0.0078277587890625, -0.0105133056640625, -0.007320404052734375, 0.0187835693359375, 0.0011692047119140625, -0.01200103759765625, 0.01552581787109375, 0.03656005859375, 0.00537109375, 0.0037899017333984375, -0.03167724609375, 0.04522705078125, -0.03497314453125, -0.042999267578125, 0.07696533203125, -0.004306793212890625, -0.00695037841796875, -0.0119476318359375, 0.005611419677734375, -0.00463104248046875, 0.048309326171875, -0.043609619140625, -0.006076812744140625, 0.007904052734375, 0.00949859619140625, -0.0310211181640625, -0.006031036376953125, -0.03607177734375, -0.012542724609375, -0.038818359375, -0.0235748291015625, 0.035736083984375, -0.0005178451538085938, -0.01053619384765625, 0.01172637939453125, 0.00807952880859375, -0.016143798828125, -0.0019159317016601562, 0.013916015625, 0.0092926025390625, 0.032440185546875, -0.020721435546875, 0.047332763671875, -0.0009465217590332031, -0.0196075439453125, 0.0309600830078125, 0.01541900634765625, -0.035980224609375, 0.0170135498046875, -0.01058197021484375, -0.0004184246063232422, -0.025482177734375, 0.0499267578125, 0.01113128662109375, -0.0016088485717773438, -0.035064697265625, 0.017181396484375, -0.030426025390625, -0.058013916015625, -0.038665771484375, -0.020263671875, -0.00726318359375, 0.011871337890625, 0.006343841552734375, -0.05908203125, -0.0496826171875, -0.00356292724609375, 0.0149993896484375, 0.0133056640625, -0.0745849609375, 0.04058837890625, -0.002376556396484375, 0.0308685302734375, -0.02606201171875, -0.0626220703125, 0.0170440673828125, 0.0176849365234375, 0.005130767822265625, 0.0020732879638671875, -0.01306915283203125, -0.0145263671875, 0.020477294921875, -0.00788116455078125, 0.0335693359375, 0.0214691162109375, -0.069091796875, 0.045745849609375, -0.040740966796875, 0.06500244140625, -0.0819091796875, -0.02069091796875, 0.016265869140625, 0.0019369125366210938, -0.0181732177734375, -0.04791259765625, 0.020233154296875, -0.038909912109375, 0.0040435791015625, 0.051910400390625, -0.0162200927734375, 0.03466796875, -0.0283203125, -0.10693359375, 0.045623779296875, 0.002445220947265625, -0.060394287109375, -0.0496826171875, 0.048583984375, 0.01058197021484375, -0.0258636474609375, -0.00516510009765625, -0.025390625, -0.019989013671875, 0.002750396728515625, 0.01036834716796875, 0.01334381103515625, 0.023956298828125, 0.0177001953125, -0.08197021484375, -0.008270263671875, -0.0215301513671875, 0.024566650390625, -0.0169830322265625, 0.012847900390625, 0.01015472412109375, 0.04095458984375, 0.01092529296875, 0.05340576171875, 0.00943756103515625, -0.04693603515625, -0.0263519287109375, -0.031585693359375, -0.05291748046875, -0.05108642578125, 0.0982666015625, 0.054534912109375, 0.0287933349609375, -0.0016088485717773438, -0.023712158203125, 0.005992889404296875, -0.0117034912109375, -0.0294647216796875, 0.0272064208984375, -0.07354736328125, -0.030029296875, -0.01300811767578125, -0.028472900390625, -0.01534271240234375, -0.01169586181640625, -0.04571533203125, 0.000186920166015625, -0.0009465217590332031, 0.0131072998046875, -0.047332763671875, 0.0037326812744140625, 0.004459381103515625, -0.043243408203125, -0.08551025390625, 0.0042877197265625, 0.005096435546875, -0.07586669921875, -0.030303955078125, -0.0220947265625, -0.01074981689453125, -0.0193328857421875, 0.01001739501953125, 0.002773284912109375, 0.01418304443359375, 0.005847930908203125, -0.00334930419921875, -0.0127105712890625, 0.0177154541015625, 0.0012388229370117188, 0.007740020751953125, 0.00844573974609375, 0.035003662109375, 0.0209503173828125, 0.03131103515625, -0.00727081298828125, 0.0303497314453125, -0.0252227783203125, 0.0209503173828125, 0.009002685546875, -0.013397216796875, 0.03350830078125, -0.019134521484375, -0.020416259765625, 0.022857666015625, -0.0426025390625, -0.054595947265625, 0.0192413330078125, 0.0174560546875, -0.0035305023193359375, 0.00931549072265625 ]
8ce33a8dc0d6c5db4f1b3572ea2227dc353eac49
Wordpress Stackexchange Q: Add action hook conditionally - only when home.php in use I am trying to add action hook in functions.php only if the page is home.php but the following does not work if ( is_page_template("home.php") ) { // do stuff } To make sure that file being used is home.php I do this global $template; echo $template; A: Use is_home instead, as is_page_template will not work for home.php as its technically not a page template in the traditional sense. add_action('template_redirect', 'are_we_home_yet', 10); function are_we_home_yet(){ if ( is_home() ) { //your logic here } } Revised: add_action('template_redirect', 'are_we_home_yet', 10); function are_we_home_yet(){ global $template; $template_file = basename((__FILE__).$template); if ( is_home() && $template_file = 'home.php' ) { //do your logic here } } The revised answer is actually what you really need, it will check if you are on the home page, in addition to getting the template file being included and check to see if that file is in fact your home.php file and if so, you can go about your logic...
Q: Add action hook conditionally - only when home.php in use I am trying to add action hook in functions.php only if the page is home.php but the following does not work if ( is_page_template("home.php") ) { // do stuff } To make sure that file being used is home.php I do this global $template; echo $template; A: Use is_home instead, as is_page_template will not work for home.php as its technically not a page template in the traditional sense. add_action('template_redirect', 'are_we_home_yet', 10); function are_we_home_yet(){ if ( is_home() ) { //your logic here } } Revised: add_action('template_redirect', 'are_we_home_yet', 10); function are_we_home_yet(){ global $template; $template_file = basename((__FILE__).$template); if ( is_home() && $template_file = 'home.php' ) { //do your logic here } } The revised answer is actually what you really need, it will check if you are on the home page, in addition to getting the template file being included and check to see if that file is in fact your home.php file and if so, you can go about your logic... A: I've had this problem. I wanted to include Jssor Slider scripts only when loading the home page. I was using a home.php too, and I've solved it this way: * *Renamed my home.php file to something else, like home_mysite.php setting a name for this page template at the file's top comment header, like: /** * Template Name: Home */ *Then I created a new empty page setting Home as page template. *Configured Wordpress to show my brand new page as front page (Settings > Reading > A static page > Front page: Home) *Then, finally I figured out that it was necessary to put the conditional code inside my function for is_page('home') to work. ('home' is my empty new home page slug). That is, when I was trying to conditionally add the action, I wasn't able to verify if my home page was loading, is_page('home') always returned false. It worked when I changed the logic for always adding the action but conditionally enqueuing the scripts. The code that worked out on functions.php: function mysite_jssor() { //conditionally enqueue the script if ( is_page('home') ) { wp_enqueue_script( 'jssor', get_stylesheet_directory_uri() . '/js/jssor.js', array( 'jquery' ), false, false ); } } //always adds the action add_action( 'wp_enqueue_scripts', 'mysite_jssor' ); This way my Jssor scripts are loaded only when acessing the home page, not when acessing other pages or posts. A: The function you are looking for is is_front_page() add_action('template_redirect', 'work_only_on_front_page', 10); function work_only_on_front_page(){ if ( is_front_page() ) { // Your code } }
wordpress
{ "language": "en", "length": 420, "provenance": "stackexchange_00019.jsonl.gz:424679", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67794" }
[ 0.03790283203125, 0.042205810546875, -0.01024627685546875, -0.032318115234375, 0.026885986328125, -0.0154266357421875, 0.01001739501953125, -0.047119140625, 0.0028171539306640625, 0.0019664764404296875, -0.046417236328125, 0.0211944580078125, -0.0157318115234375, -0.007568359375, 0.0303802490234375, -0.0221405029296875, 0.049835205078125, -0.0538330078125, 0.0150299072265625, -0.0008611679077148438, -0.0017099380493164062, 0.031646728515625, 0.0180816650390625, 0.039398193359375, 0.0175628662109375, -0.0718994140625, 0.0516357421875, -0.0004019737243652344, 0.024505615234375, 0.0050811767578125, 0.01430511474609375, 0.004913330078125, 0.0233306884765625, 0.018585205078125, -0.0217132568359375, -0.01068115234375, -0.01197052001953125, 0.0160369873046875, -0.0006337165832519531, 0.036895751953125, 0.04461669921875, -0.0169830322265625, -0.040618896484375, 0.03863525390625, -0.037811279296875, -0.0413818359375, 0.02886962890625, -0.00927734375, 0.007160186767578125, 0.0443115234375, 0.00823974609375, -0.033477783203125, -0.005565643310546875, 0.0208282470703125, 0.015960693359375, 0.0233306884765625, -0.053192138671875, 0.044097900390625, 0.0450439453125, -0.0011224746704101562, -0.0361328125, -0.03887939453125, 0.0146942138671875, -0.035675048828125, 0.0021686553955078125, -0.0117950439453125, -0.0292205810546875, 0.0276947021484375, -0.061126708984375, -0.01702880859375, 0.02423095703125, -0.049835205078125, -0.004924774169921875, -0.01009368896484375, -0.02313232421875, -0.016021728515625, -0.0035552978515625, -0.033935546875, 0.02056884765625, 0.0071868896484375, -0.02130126953125, -0.012481689453125, -0.01073455810546875, -0.026611328125, 0.0007624626159667969, 0.01282501220703125, -0.0271148681640625, -0.007106781005859375, -0.033355712890625, 0.0028705596923828125, -0.028045654296875, 0.018829345703125, 0.0127105712890625, -0.0284576416015625, -0.0191192626953125, -0.01213836669921875, -0.0105438232421875, 0.030029296875, -0.0197906494140625, 0.0275115966796875, -0.0170135498046875, -0.0126495361328125, 0.030181884765625, -0.048553466796875, 0.01263427734375, 0.052947998046875, 0.016204833984375, 0.01404571533203125, 0.010955810546875, 0.0120391845703125, 0.018280029296875, -0.01557159423828125, -0.0382080078125, -0.0194091796875, -0.0286407470703125, 0.01165771484375, -0.060760498046875, -0.0208892822265625, -0.00963592529296875, -0.013031005859375, -0.0139007568359375, 0.01282501220703125, 0.056365966796875, -0.048004150390625, 0.0002040863037109375, -0.0028476715087890625, -0.0240631103515625, -0.058502197265625, 0.0124053955078125, 0.03131103515625, 0.002811431884765625, 0.0162506103515625, -0.0054779052734375, -0.04901123046875, -0.06854248046875, -0.01157379150390625, 0.02191162109375, 0.00804901123046875, -0.0103759765625, -0.0033817291259765625, 0.0117034912109375, -0.033721923828125, -0.0203704833984375, 0.005756378173828125, 0.01446533203125, 0.012451171875, 0.01250457763671875, 0.0137786865234375, 0.00902557373046875, -0.0369873046875, 0.04986572265625, -0.065673828125, 0.0208282470703125, 0.0298004150390625, -0.0145721435546875, 0.0015268325805664062, -0.0001621246337890625, -0.0069732666015625, -0.001659393310546875, -0.019439697265625, -0.0208282470703125, -0.027313232421875, -0.0164642333984375, -0.08172607421875, -0.08026123046875, 0.018035888671875, -0.00902557373046875, -0.0074920654296875, 0.0190887451171875, 0.051513671875, 0.0308685302734375, 0.0084075927734375, 0.038360595703125, 0.0157012939453125, -0.0168914794921875, -0.01496124267578125, -0.0119781494140625, 0.04119873046875, 0.01666259765625, 0.033447265625, 0.006511688232421875, -0.034088134765625, 0.0540771484375, -0.012420654296875, -0.0802001953125, 0.05621337890625, 0.009918212890625, 0.07366943359375, -0.0023670196533203125, -0.0005726814270019531, 0.05828857421875, 0.03338623046875, -0.025390625, 0.0173492431640625, -0.028106689453125, -0.0197601318359375, -0.007190704345703125, 0.005619049072265625, -0.0294647216796875, 0.02166748046875, 0.038299560546875, 0.0003304481506347656, 0.005828857421875, -0.0236358642578125, -0.04571533203125, -0.0202178955078125, -0.02410888671875, 0.0207366943359375, -0.00612640380859375, 0.0263214111328125, 0.0142822265625, -0.001617431640625, -0.025360107421875, -0.002468109130859375, -0.013763427734375, 0.0165252685546875, -0.0099334716796875, 0.0275421142578125, 0.009552001953125, 0.0304718017578125, 0.0146331787109375, -0.0054931640625, 0.0033016204833984375, 0.01073455810546875, 0.0193328857421875, -0.006866455078125, -0.042083740234375, -0.0096893310546875, -0.0843505859375, 0.037841796875, -0.11328125, 0.072998046875, -0.01174163818359375, 0.01020050048828125, -0.043487548828125, -0.01488494873046875, -0.0313720703125, -0.027984619140625, 0.0068206787109375, 0.0338134765625, 0.0263824462890625, 0.00748443603515625, -0.01216888427734375, 0.018157958984375, 0.0028705596923828125, -0.051483154296875, 0.00380706787109375, 0.0016193389892578125, -0.01401519775390625, 0.018280029296875, -0.04742431640625, 0.03717041015625, 0.01491546630859375, -0.060546875, -0.036590576171875, 0.05084228515625, -0.032623291015625, 0.0000400543212890625, -0.034210205078125, -0.009246826171875, 0.0244293212890625, -0.0303955078125, -0.019744873046875, -0.003971099853515625, 0.0201263427734375, -0.0380859375, 0.013427734375, -0.0006923675537109375, 0.0131683349609375, -0.03857421875, 0.00632476806640625, -0.00405120849609375, 0.00017523765563964844, 0.044281005859375, 0.01397705078125, 0.005672454833984375, -0.04156494140625, -0.006927490234375, 0.0014743804931640625, 0.0298309326171875, -0.03662109375, 0.0225830078125, -0.0002353191375732422, -0.013397216796875, -0.0272674560546875, -0.0484619140625, 0.035980224609375, -0.0133819580078125, 0.06927490234375, 0.031646728515625, 0.050323486328125, 0.000028967857360839844, -0.01702880859375, 0.05364990234375, 0.0009403228759765625, -0.039306640625, 0.00957489013671875, -0.006824493408203125, 0.0198822021484375, -0.0004367828369140625, 0.01213836669921875, 0.054901123046875, -0.01297760009765625, 0.0248870849609375, -0.0031185150146484375, -0.0026950836181640625, 0.03228759765625, -0.039581298828125, -0.0241546630859375, -0.006519317626953125, -0.006927490234375, 0.0269317626953125, 0.007610321044921875, 0.034942626953125, 0.003452301025390625, -0.05316162109375, 0.01678466796875, -0.00827789306640625, -0.05438232421875, -0.07806396484375, -0.00360107421875, -0.0169219970703125, 0.0469970703125, -0.00933074951171875, 0.00933837890625, -0.0433349609375, 0.004482269287109375, 0.023956298828125, -0.05633544921875, -0.0161590576171875, 0.00965118408203125, -0.045257568359375, -0.02825927734375, -0.0027065277099609375, 0.0172271728515625, 0.00684356689453125, -0.005199432373046875, 0.09930419921875, 0.01016998291015625, -0.055633544921875, -0.002201080322265625, 0.0101165771484375, -0.0110321044921875, 0.0254364013671875, -0.0247344970703125, 0.0029125213623046875, 0.0080413818359375, 0.0164031982421875, -0.0202789306640625, -0.0108184814453125, 0.01189422607421875, -0.035125732421875, -0.01332855224609375, -0.023040771484375, 0.004596710205078125, 0.0435791015625, 0.01519012451171875, -0.039398193359375, 0.0195159912109375, -0.043212890625, -0.028350830078125, 0.01556396484375, -0.04461669921875, 0.05419921875, 0.053741455078125, -0.039581298828125, 0.032073974609375, -0.0205230712890625, 0.023223876953125, 0.02960205078125, 0.0263519287109375, 0.05059814453125, 0.00231170654296875, -0.028106689453125, -0.028167724609375, -0.03631591796875, 0.0209808349609375, -0.0062408447265625, -0.0028209686279296875, -0.007671356201171875, 0.01372528076171875, -0.0152435302734375, 0.0263214111328125, -0.060943603515625, -0.03717041015625, 0.0223236083984375, -0.023040771484375, 0.0246429443359375, -0.045928955078125, -0.002475738525390625, -0.00421142578125, 0.061859130859375, -0.03643798828125, -0.0102386474609375, 0.006725311279296875, 0.0112457275390625, -0.014373779296875, -0.01280975341796875, -0.016693115234375, -0.013427734375, -0.04119873046875, 0.027557373046875, -0.004375457763671875, 0.00337982177734375, -0.03350830078125, 0.0122222900390625, -0.0299072265625, -0.032470703125, 0.01544189453125, -0.0008482933044433594, 0.0165252685546875, 0.05511474609375, -0.016326904296875, 0.051910400390625, -0.005802154541015625, -0.05084228515625, -0.062255859375, -0.004764556884765625, -0.0340576171875, 0.0301666259765625, 0.046417236328125, -0.051971435546875, -0.004116058349609375, 0.01561737060546875, 0.015777587890625, -0.00725555419921875, 0.03253173828125, 0.0101165771484375, 0.041656494140625, -0.0254974365234375, 0.00014722347259521484, -0.028961181640625, 0.0163726806640625, 0.0206756591796875, -0.04754638671875, 0.0153045654296875, -0.0294952392578125, -0.013031005859375, 0.042816162109375, -0.04278564453125, -0.032867431640625, -0.037506103515625, 0.00946807861328125, 0.0119476318359375, 0.00637054443359375, -0.0166168212890625, -0.054718017578125, -0.05023193359375, 0.01143646240234375, -0.016876220703125, -0.043121337890625, 0.01084136962890625, 0.052825927734375, 0.03765869140625, -0.0207977294921875, 0.0010232925415039062, 0.0328369140625, 0.0279693603515625, 0.00238800048828125, 0.0310516357421875, -0.01015472412109375, -0.024322509765625, 0.03985595703125, 0.010162353515625, 0.0222015380859375, -0.0396728515625, 0.0792236328125, -0.006168365478515625, -0.014312744140625, 0.0195465087890625, 0.007450103759765625, -0.007038116455078125, 0.03729248046875, 0.023712158203125, -0.060150146484375, 0.02496337890625, 0.04815673828125, -0.03228759765625, 0.05419921875, -0.0137481689453125, 0.0291900634765625, -0.042694091796875, 0.032501220703125, 0.040252685546875, 0.0394287109375, 0.012939453125, -0.0202178955078125, 0.03875732421875, -0.004138946533203125, 0.0112457275390625, 0.0166168212890625, -0.0355224609375, 0.0148162841796875, -0.0118408203125, -0.036834716796875, 0.004852294921875, 0.007427215576171875, 0.00319671630859375, -0.013336181640625, -0.04644775390625, -0.05157470703125, -0.0179901123046875, 0.0438232421875, -0.007427215576171875, 0.0272216796875, 0.044677734375, 0.0154571533203125, -0.0213775634765625, -0.022552490234375, 0.0007829666137695312, 0.004291534423828125, -0.0452880859375, -0.02996826171875, 0.00936126708984375, -0.031494140625, 0.039337158203125, -0.022491455078125, 0.0477294921875, -0.01444244384765625, -0.0445556640625, -0.007595062255859375, 0.0142974853515625, -0.0088043212890625, 0.01404571533203125, 0.0283355712890625, -0.002704620361328125, -0.01934814453125, 0.0498046875, -0.0187530517578125, 0.0047454833984375, 0.032745361328125, 0.054412841796875, -0.01374053955078125, -0.034088134765625, -0.00444793701171875, -0.042449951171875, 0.0007414817810058594, 0.055755615234375, 0.0228424072265625, -0.05523681640625, -0.00962066650390625, 0.01287078857421875, 0.018829345703125, -0.0209197998046875, -0.02069091796875, 0.0168609619140625, -0.016632080078125, 0.044036865234375, 0.049468994140625, -0.02606201171875, 0.0263671875, 0.006633758544921875, -0.0355224609375, -0.0186309814453125, 0.0168304443359375, -0.0122222900390625, -0.0240936279296875, -0.028594970703125, -0.0310211181640625, 0.0192108154296875, -0.0190582275390625, 0.0261993408203125, -0.01473236083984375, -0.0223846435546875, 0.01251983642578125, 0.01459503173828125, 0.064697265625, 0.034393310546875, -0.06884765625, -0.0023937225341796875, -0.044586181640625, -0.006626129150390625, -0.0304412841796875, -0.056396484375, -0.0390625, -0.01139068603515625, 0.0075225830078125, 0.0263824462890625, 0.00156402587890625, 0.0083770751953125, 0.0001550912857055664, 0.0036411285400390625, -0.00405120849609375, 0.036468505859375, -0.0272979736328125, 0.07818603515625, -0.0290069580078125, 0.03924560546875, -0.005626678466796875, 0.041259765625, 0.0206756591796875, -0.0194549560546875, 0.01508331298828125, -0.01324462890625, 0.006404876708984375, -0.037200927734375, 0.004886627197265625, 0.003997802734375, 0.06304931640625, -0.0010089874267578125, -0.01995849609375, 0.00592041015625, -0.00039267539978027344, -0.0216827392578125, 0.0242462158203125, 0.030181884765625, -0.022613525390625, 0.01541900634765625, -0.0277862548828125, -0.036285400390625, 0.006008148193359375, -0.0267486572265625, 0.0462646484375, 0.00634765625, 0.02398681640625, 0.0005407333374023438, -0.0672607421875, 0.0810546875, 0.058563232421875, 0.01678466796875, 0.056793212890625, -0.0021800994873046875, 0.039642333984375, 0.03399658203125, 0.045501708984375, -0.0440673828125, -0.039581298828125, 0.052337646484375, 0.0021038055419921875, -0.039154052734375, 0.017059326171875, -0.0288848876953125, 0.00707244873046875, 0.07220458984375, 0.041534423828125, -0.08087158203125, -0.0247802734375, 0.0009741783142089844, 0.00565338134765625, 0.0299835205078125, -0.0345458984375, 0.0254669189453125, -0.0005898475646972656, 0.06170654296875, 0.0498046875, -0.007015228271484375, 0.037628173828125, 0.0030803680419921875, -0.0196380615234375, -0.0250091552734375, 0.016265869140625, 0.0107574462890625, -0.0103302001953125, 0.0152740478515625, 0.01076507568359375, 0.0078582763671875, -0.016632080078125, 0.00531005859375, 0.000972747802734375, -0.01470184326171875, -0.027313232421875, 0.0203399658203125, -0.0205078125, 0.0016279220581054688, 0.0063934326171875, 0.0156402587890625, 0.0205078125, 0.006320953369140625, -0.007781982421875, 0.0021228790283203125, -0.006107330322265625, -0.019989013671875, -0.04510498046875, -0.0061798095703125, 0.005001068115234375, -0.0240325927734375, -0.01201629638671875, 0.01496124267578125, -0.049560546875, -0.0164337158203125, 0.007080078125, 0.0024776458740234375, 0.019317626953125, -0.017913818359375, -0.025054931640625, -0.002246856689453125, -0.02252197265625, 0.022003173828125, -0.003986358642578125, 0.053070068359375, -0.053192138671875, -0.047119140625, 0.04010009765625, -0.050048828125, -0.06414794921875, -0.01218414306640625, -0.03717041015625, 0.09564208984375, -0.03399658203125, 0.0297393798828125, 0.01465606689453125, 0.039093017578125, -0.0167694091796875, 0.035430908203125, -0.0228729248046875, 0.0736083984375, 0.0460205078125, 0.05023193359375, 0.029815673828125, 0.013031005859375, 0.050384521484375, 0.00998687744140625, 0.015716552734375, 0.00897216796875, 0.0034008026123046875, 0.00868988037109375, 0.024078369140625, 0.0032806396484375, -0.02606201171875, 0.023712158203125, -0.058441162109375, -0.0504150390625, -0.034698486328125, -0.028350830078125, 0.01207733154296875, -0.026092529296875, -0.04107666015625, -0.0389404296875, 0.00439453125, -0.0014209747314453125, -0.0224609375, -0.002315521240234375, -0.020172119140625, -0.016387939453125, 0.002574920654296875, 0.01177215576171875, -0.017608642578125, 0.0243682861328125, -0.004360198974609375, 0.01654052734375, 0.00246429443359375, -0.022064208984375, 0.036376953125, 0.007251739501953125, -0.00243377685546875, -0.0083770751953125, 0.0149688720703125, -0.0081787109375, 0.0189361572265625, 0.0010976791381835938, 0.05535888671875, -0.0236053466796875, 0.0743408203125, 0.06243896484375, 0.0389404296875, 0.0220184326171875, 0.0301513671875, 0.00852203369140625, 0.072998046875, -0.04779052734375, 0.0012359619140625, -0.01181793212890625, -0.0130462646484375, -0.00789642333984375, -0.007564544677734375, 0.0179901123046875, 0.046478271484375, 0.0304718017578125, -0.029876708984375, -0.001708984375, 0.0122528076171875, -0.0034084320068359375, -0.01348876953125, -0.0160064697265625, 0.00952911376953125, 0.0257415771484375, -0.048736572265625, 0.0111541748046875, 0.02093505859375, 0.082275390625, 0.00606536865234375, 0.050933837890625, -0.01325225830078125, -0.028717041015625, -0.0211029052734375, 0.0290374755859375, -0.03802490234375, 0.0289154052734375, -0.079345703125, -0.04345703125, -0.00028395652770996094, 0.060333251953125, 0.03399658203125, 0.04925537109375, 0.0006399154663085938, 0.0012884140014648438, 0.0430908203125, 0.0194244384765625, 0.039947509765625, -0.023284912109375, 0.038848876953125, -0.028961181640625, 0.037994384765625, 0.0011472702026367188, -0.0217437744140625, -0.026458740234375, 0.0218963623046875, 0.051971435546875, -0.038726806640625, 0.0338134765625, -0.00600433349609375, -0.0190582275390625, 0.050994873046875, 0.022125244140625, 0.06939697265625, 0.0087127685546875, -0.001708984375, -0.005626678466796875, -0.005069732666015625, -0.032012939453125, 0.01396942138671875, 0.0518798828125, -0.018707275390625, 0.0289764404296875, 0.053253173828125, -0.0003414154052734375, 0.0165863037109375, -0.004856109619140625, -0.0006861686706542969, -0.026885986328125, 0.039520263671875, 0.01007080078125, -0.006504058837890625, 0.007144927978515625, -0.0108184814453125, 0.04437255859375, 0.02349853515625, 0.096923828125, -0.052642822265625, 0.0357666015625, 0.0256195068359375, 0.041107177734375, -0.024810791015625, -0.017578125, 0.0728759765625, -0.0045166015625, 0.00592803955078125, -0.0252532958984375, -0.0721435546875, 0.0147857666015625, 0.029205322265625, -0.004299163818359375, 0.04010009765625, -0.01035308837890625, -0.0034961700439453125, -0.03271484375, 0.035247802734375, -0.016693115234375, -0.0288238525390625, -0.034820556640625, -0.002719879150390625, 0.0291900634765625, 0.039093017578125, 0.0123748779296875, 0.071044921875, -0.08056640625, -0.0350341796875, -0.00450897216796875, -0.064453125, -0.051788330078125, 0.00395965576171875, -0.01541900634765625, -0.01152801513671875, 0.031707763671875, 0.009521484375, 0.042205810546875, 0.0164947509765625, 0.01519012451171875, 0.036834716796875, -0.0187530517578125, -0.004917144775390625, -0.0108642578125, 0.01015472412109375, -0.0325927734375, -0.00644683837890625, 0.0234832763671875, 0.0016660690307617188, -0.0132598876953125, -0.047332763671875, -0.0259246826171875, -0.041290283203125, -0.002857208251953125, 0.0360107421875, -0.0152587890625, -0.0157623291015625, -0.00284576416015625, 0.0006933212280273438, 0.011383056640625, -0.02105712890625, 0.0160675048828125, -0.0142974853515625, -0.056884765625, 0.02496337890625, -0.00916290283203125, 0.01383209228515625, -0.011962890625, 0.004119873046875, -0.0496826171875, 0.03533935546875, -0.02606201171875, -0.01477813720703125, 0.03314208984375, 0.01495361328125, 0.0540771484375, -0.015106201171875, -0.029388427734375, -0.019622802734375, 0.00409698486328125, 0.03375244140625, -0.02166748046875, -0.03411865234375, 0.032562255859375, -0.046417236328125, 0.004108428955078125, 0.0310516357421875, 0.00848388671875, -0.0380859375, -0.033599853515625, 0.0052642822265625, 0.00865936279296875, 0.0214996337890625, -0.035858154296875, -0.08642578125, 0.034881591796875, -0.0146331787109375, -0.037384033203125, -0.040802001953125, 0.04876708984375, 0.0149688720703125, -0.04376220703125, -0.02685546875, 0.0016880035400390625, 0.01346588134765625, 0.03094482421875, 0.020111083984375, -0.0005145072937011719, 0.05853271484375, 0.0122833251953125, -0.01580810546875, 0.00714111328125, -0.007366180419921875, -0.0281524658203125, 0.0027599334716796875, -0.05242919921875, 0.0670166015625, 0.03302001953125, -0.03302001953125, -0.00060272216796875, 0.041900634765625, -0.006450653076171875, 0.01824951171875, -0.026397705078125, -0.035430908203125, -0.0160369873046875, 0.0469970703125, -0.0029354095458984375, 0.02923583984375, -0.02532958984375, -0.02593994140625, -0.0426025390625, -0.033050537109375, 0.00832366943359375, 0.01611328125, -0.0305633544921875, 0.041107177734375, -0.009063720703125, -0.035614013671875, -0.050384521484375, 0.02362060546875, -0.08599853515625, 0.02490234375, 0.0072021484375, 0.007511138916015625, -0.0011272430419921875, -0.03564453125, 0.056182861328125, -0.025726318359375, 0.013336181640625, 0.0035762786865234375, 0.027801513671875, 0.02313232421875, 0.038177490234375, 0.06121826171875, 0.06536865234375, -0.0506591796875, -0.032684326171875, 0.048553466796875, 0.014495849609375, 0.004940032958984375, -0.058746337890625, 0.02532958984375, 0.0052032470703125, -0.00576019287109375, -0.0098876953125, -0.0199127197265625, 0.0274200439453125, -0.059051513671875, 0.06439208984375, -0.038421630859375, 0.04254150390625, -0.0032634735107421875, 0.02020263671875, -0.0017156600952148438, 0.0230865478515625, 0.0418701171875, -0.0135955810546875, -0.0152587890625, 0.0235595703125, -0.0201568603515625, -0.05401611328125, 0.037078857421875, -0.03533935546875, 0.0208740234375, 0.0167694091796875 ]
c18377df6077603af72e6f6f62566b3d003b356c
Wordpress Stackexchange Q: API integration with WordPress I'm trying to integrate a 3rd party API with WordPress. I fear this is above my head. I was this code but I'm not exactly sure how to make is work in WordPress. Is it possible? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://xxx'); curl_setopt($ch, CURLOPT_POST, 7); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array( 'auth_token' => 'xxxxxx', 'list_id' => 'xxxxx, 'name' => 'Office', 'campaign_id' => 'xxxxx', ))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); A: Something like this works: $url = 'https://xxx'; $body = array( 'auth_token' => 'xxxxxx', 'list_id' => 'xxxxx, 'name' => 'Office', 'campaign_id' => 'xxxxx', ); $response = wp_remote_post($url, array( 'body'=>$body, 'sslverify' => false // this is needed if your server doesn't have the latest CA certificate lists ) ); if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) { // error handling goes here } $results = wp_remote_retrieve_body( $response ); // $results has the actual results in it
Q: API integration with WordPress I'm trying to integrate a 3rd party API with WordPress. I fear this is above my head. I was this code but I'm not exactly sure how to make is work in WordPress. Is it possible? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://xxx'); curl_setopt($ch, CURLOPT_POST, 7); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array( 'auth_token' => 'xxxxxx', 'list_id' => 'xxxxx, 'name' => 'Office', 'campaign_id' => 'xxxxx', ))); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); A: Something like this works: $url = 'https://xxx'; $body = array( 'auth_token' => 'xxxxxx', 'list_id' => 'xxxxx, 'name' => 'Office', 'campaign_id' => 'xxxxx', ); $response = wp_remote_post($url, array( 'body'=>$body, 'sslverify' => false // this is needed if your server doesn't have the latest CA certificate lists ) ); if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) { // error handling goes here } $results = wp_remote_retrieve_body( $response ); // $results has the actual results in it
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:424706", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67897" }
[ 0.0531005859375, 0.006458282470703125, -0.019927978515625, -0.046051025390625, 0.0146026611328125, -0.0345458984375, 0.03692626953125, -0.01082611083984375, 0.023590087890625, 0.0113677978515625, -0.01513671875, 0.0017566680908203125, -0.036102294921875, -0.01131439208984375, -0.0140380859375, -0.032073974609375, 0.039337158203125, -0.01432037353515625, 0.0316162109375, -0.00017213821411132812, -0.001338958740234375, 0.01727294921875, 0.0203857421875, 0.0011196136474609375, 0.0287628173828125, 0.01291656494140625, -0.017669677734375, -0.0186309814453125, 0.01021575927734375, -0.00040435791015625, 0.00846099853515625, -0.0259857177734375, 0.04229736328125, 0.039154052734375, -0.08111572265625, -0.01320648193359375, 0.0209503173828125, -0.0005106925964355469, -0.032257080078125, 0.045806884765625, -0.004131317138671875, 0.00914764404296875, 0.021575927734375, -0.0025272369384765625, -0.01560211181640625, -0.0259552001953125, 0.01035308837890625, -0.0305938720703125, -0.0163116455078125, 0.0750732421875, 0.0282745361328125, -0.00927734375, 0.0162353515625, 0.052001953125, 0.00371551513671875, -0.00911712646484375, 0.00836944580078125, 0.025421142578125, 0.0268402099609375, -0.035614013671875, -0.0433349609375, -0.0040283203125, 0.0305023193359375, 0.0186614990234375, -0.006702423095703125, -0.003620147705078125, 0.0097808837890625, 0.0113525390625, -0.01042938232421875, -0.017425537109375, 0.00830841064453125, -0.0015201568603515625, -0.0223236083984375, -0.003467559814453125, -0.0219268798828125, -0.0007491111755371094, -0.00859832763671875, -0.0236663818359375, 0.00806427001953125, 0.0235595703125, 0.04150390625, 0.0216827392578125, -0.04180908203125, -0.04095458984375, 0.0267486572265625, -0.002941131591796875, 0.005443572998046875, -0.021759033203125, -0.04754638671875, -0.001018524169921875, -0.035247802734375, -0.0286407470703125, 0.0006403923034667969, -0.0123443603515625, -0.03338623046875, -0.007312774658203125, -0.00038170814514160156, -0.00875091552734375, 0.00018489360809326172, 0.0157623291015625, 0.0325927734375, -0.0487060546875, 0.05303955078125, -0.03192138671875, -0.00007611513137817383, 0.03717041015625, 0.027740478515625, -0.0101776123046875, 0.00991058349609375, -0.00910186767578125, -0.00838470458984375, 0.055084228515625, 0.01065826416015625, -0.01288604736328125, -0.01293182373046875, -0.02801513671875, -0.0391845703125, 0.0113677978515625, 0.00360107421875, -0.02984619140625, -0.01099395751953125, 0.012847900390625, -0.022186279296875, 0.01812744140625, 0.004390716552734375, 0.016632080078125, 0.005161285400390625, -0.0165557861328125, 0.007167816162109375, 0.017333984375, -0.01312255859375, 0.031585693359375, 0.060791015625, -0.0018157958984375, -0.0190582275390625, -0.00594329833984375, 0.043121337890625, 0.026580810546875, 0.00942230224609375, 0.002529144287109375, 0.031494140625, -0.0467529296875, -0.04052734375, 0.02008056640625, 0.01445770263671875, 0.019500732421875, 0.03240966796875, 0.0217132568359375, 0.007671356201171875, -0.00460052490234375, -0.0143585205078125, 0.00858306884765625, -0.00272369384765625, 0.0238037109375, 0.021087646484375, -0.001667022705078125, 0.05267333984375, -0.043365478515625, 0.023712158203125, -0.041290283203125, -0.00478363037109375, -0.0084381103515625, 0.0289459228515625, -0.005847930908203125, -0.0031070709228515625, 0.0059356689453125, -0.0225830078125, 0.00002205371856689453, 0.02471923828125, 0.051361083984375, 0.00475311279296875, -0.044952392578125, 0.0002722740173339844, -0.007030487060546875, -0.021240234375, 0.0168304443359375, 0.002056121826171875, 0.06683349609375, 0.031646728515625, -0.02801513671875, -0.0201873779296875, -0.042083740234375, 0.10418701171875, -0.037139892578125, -0.03948974609375, 0.07098388671875, 0.0161895751953125, 0.06707763671875, -0.03741455078125, 0.0227203369140625, 0.0164337158203125, 0.07049560546875, 0.0335693359375, -0.006702423095703125, -0.02679443359375, -0.055999755859375, 0.01244354248046875, -0.0078125, -0.036468505859375, 0.048614501953125, -0.011871337890625, 0.0222015380859375, 0.005031585693359375, 0.0155181884765625, -0.001873016357421875, 0.0184783935546875, -0.0189361572265625, 0.0211181640625, -0.0047149658203125, -0.002574920654296875, 0.00296783447265625, -0.018035888671875, -0.006458282470703125, -0.00860595703125, -0.017333984375, 0.05517578125, -0.01194000244140625, 0.036651611328125, -0.0311279296875, 0.037200927734375, -0.046142578125, -0.049285888671875, -0.0175933837890625, 0.01512908935546875, 0.031768798828125, -0.04595947265625, 0.015716552734375, -0.029205322265625, 0.061279296875, -0.0164031982421875, 0.048553466796875, 0.01442718505859375, 0.0269317626953125, 0.06298828125, 0.009246826171875, -0.004817962646484375, 0.03472900390625, -0.0228118896484375, 0.0204620361328125, 0.03082275390625, 0.05560302734375, 0.01149749755859375, -0.0210723876953125, -0.0743408203125, 0.03387451171875, -0.052642822265625, 0.021087646484375, -0.07305908203125, 0.0151519775390625, -0.0200347900390625, -0.01068878173828125, -0.040863037109375, 0.036376953125, -0.09503173828125, 0.01512908935546875, 0.02557373046875, -0.03448486328125, -0.0268707275390625, -0.01480865478515625, -0.03448486328125, 0.0291900634765625, -0.08056640625, -0.050384521484375, -0.0201416015625, 0.004032135009765625, -0.0226898193359375, 0.0262298583984375, 0.0014257431030273438, -0.0248260498046875, -0.037322998046875, 0.0290679931640625, 0.049896240234375, -0.006557464599609375, 0.024871826171875, 0.050201416015625, -0.0059661865234375, -0.031280517578125, -0.00893402099609375, 0.007282257080078125, 0.0166473388671875, -0.007076263427734375, 0.030242919921875, -0.016326904296875, -0.001461029052734375, -0.0296630859375, 0.00872802734375, 0.0264434814453125, 0.042144775390625, 0.0218048095703125, 0.0276947021484375, 0.041168212890625, 0.0501708984375, -0.0049285888671875, 0.04345703125, -0.0272674560546875, 0.0005483627319335938, 0.055023193359375, -0.0225830078125, 0.023345947265625, -0.03533935546875, 0.0049896240234375, 0.022705078125, -0.01113128662109375, -0.0191497802734375, -0.01580810546875, -0.00664520263671875, -0.0196380615234375, 0.0191650390625, -0.0130615234375, -0.06756591796875, -0.0123443603515625, -0.031341552734375, 0.006988525390625, -0.01157379150390625, 0.0026798248291015625, -0.042877197265625, -0.004619598388671875, 0.00598907470703125, -0.1314697265625, -0.1453857421875, 0.054290771484375, -0.05743408203125, -0.01800537109375, -0.031280517578125, -0.04754638671875, 0.00028395652770996094, -0.00881195068359375, -0.0110321044921875, 0.02215576171875, -0.0297393798828125, -0.0634765625, -0.0531005859375, -0.0885009765625, -0.0032863616943359375, -0.006275177001953125, -0.00982666015625, 0.004779815673828125, 0.039642333984375, 0.0144195556640625, -0.0088043212890625, 0.01232147216796875, 0.04486083984375, -0.0170745849609375, -0.028350830078125, -0.0211944580078125, 0.00766754150390625, -0.020721435546875, -0.0029773712158203125, 0.034454345703125, 0.0151519775390625, -0.023101806640625, -0.01285552978515625, -0.012054443359375, -0.0167083740234375, -0.0179443359375, 0.0029850006103515625, 0.0164337158203125, -0.036102294921875, -0.0180511474609375, -0.06903076171875, -0.00933837890625, -0.005184173583984375, -0.04486083984375, -0.0247650146484375, 0.01971435546875, -0.0032501220703125, -0.003070831298828125, -0.014251708984375, -0.01287841796875, -0.00824737548828125, 0.01047515869140625, -0.0291290283203125, 0.040618896484375, -0.00568389892578125, -0.01947021484375, 0.007511138916015625, 0.035919189453125, 0.0002639293670654297, -0.0312042236328125, 0.00457763671875, -0.01406097412109375, -0.045501708984375, 0.00811004638671875, -0.0916748046875, -0.031524658203125, 0.053466796875, -0.015625, 0.021697998046875, -0.038604736328125, -0.022613525390625, -0.0216064453125, 0.0675048828125, -0.00027179718017578125, -0.0295562744140625, -0.0015106201171875, 0.01483154296875, -0.0239715576171875, -0.028900146484375, 0.0003299713134765625, 0.0007843971252441406, -0.0003535747528076172, 0.00403594970703125, -0.006816864013671875, 0.0003361701965332031, 0.004558563232421875, -0.0166473388671875, 0.0185394287109375, -0.0310211181640625, 0.0117340087890625, -0.01568603515625, -0.016754150390625, 0.0184783935546875, 0.00128173828125, -0.0163726806640625, 0.00580596923828125, -0.020355224609375, -0.043914794921875, 0.0029735565185546875, -0.024200439453125, 0.016082763671875, 0.016204833984375, -0.007328033447265625, -0.0264892578125, 0.01055145263671875, 0.042449951171875, -0.005092620849609375, 0.01275634765625, -0.0372314453125, -0.0033588409423828125, 0.0224456787109375, 0.010223388671875, 0.001789093017578125, 0.00652313232421875, -0.0054168701171875, -0.045623779296875, -0.01512908935546875, -0.031707763671875, 0.00913238525390625, 0.00783538818359375, -0.043426513671875, -0.0139007568359375, -0.001728057861328125, -0.0027103424072265625, 0.0215301513671875, -0.0240020751953125, 0.002696990966796875, -0.0003685951232910156, -0.0267181396484375, 0.0377197265625, -0.004566192626953125, -0.0162811279296875, -0.00396728515625, 0.0302581787109375, 0.014373779296875, -0.0229034423828125, -0.0360107421875, 0.01024627685546875, 0.01390838623046875, -0.0207672119140625, 0.02679443359375, -0.0071868896484375, -0.01483917236328125, 0.06695556640625, -0.021697998046875, 0.047882080078125, 0.0283355712890625, -0.003963470458984375, 0.037933349609375, 0.0231781005859375, -0.0034961700439453125, 0.0855712890625, -0.0946044921875, 0.00795745849609375, -0.0078277587890625, -0.005428314208984375, 0.02252197265625, 0.0175933837890625, -0.050811767578125, 0.047088623046875, 0.0020427703857421875, -0.0217437744140625, 0.01319122314453125, -0.059600830078125, 0.02435302734375, -0.00658416748046875, 0.0175933837890625, -0.0288238525390625, -0.031982421875, -0.002655029296875, 0.00049591064453125, 0.0037517547607421875, -0.01837158203125, 0.0185546875, -0.020843505859375, -0.034454345703125, -0.006664276123046875, -0.022552490234375, 0.08013916015625, 0.0105743408203125, -0.04827880859375, -0.00273895263671875, -0.007808685302734375, 0.009185791015625, 0.009613037109375, -0.05303955078125, 0.0335693359375, 0.0462646484375, -0.01483154296875, -0.0024318695068359375, -0.037811279296875, -0.01187896728515625, -0.041290283203125, 0.002277374267578125, -0.01401519775390625, 0.002223968505859375, -0.0005421638488769531, 0.083740234375, -0.01383209228515625, 0.060760498046875, -0.0251922607421875, 0.033111572265625, 0.055877685546875, -0.0006117820739746094, 0.01119232177734375, 0.01824951171875, -0.0131988525390625, -0.01197052001953125, 0.019256591796875, -0.030853271484375, -0.0267791748046875, 0.030914306640625, 0.036956787109375, 0.0177459716796875, -0.0013332366943359375, 0.001476287841796875, -0.00641632080078125, -0.0295257568359375, 0.0133819580078125, 0.01207733154296875, -0.00156402587890625, -0.036163330078125, -0.006805419921875, 0.0236053466796875, 0.035125732421875, -0.005893707275390625, 0.029022216796875, 0.018157958984375, 0.0128936767578125, 0.032867431640625, -0.02667236328125, -0.0072784423828125, 0.0018014907836914062, 0.01194000244140625, -0.043426513671875, -0.032318115234375, -0.0015716552734375, 0.032745361328125, -0.025177001953125, -0.01145172119140625, 0.037139892578125, -0.04840087890625, -0.033538818359375, -0.026153564453125, 0.05157470703125, -0.0399169921875, 0.003536224365234375, 0.065673828125, 0.036895751953125, 0.01751708984375, -0.039764404296875, -0.0046844482421875, -0.030303955078125, 0.0841064453125, 0.03179931640625, -0.0026531219482421875, -0.0229034423828125, 0.016693115234375, 0.03179931640625, 0.01043701171875, -0.0032520294189453125, -0.029876708984375, 0.00879669189453125, 0.010406494140625, 0.053680419921875, -0.0021152496337890625, 0.083984375, -0.0226593017578125, 0.07977294921875, 0.025787353515625, 0.03204345703125, -0.05548095703125, -0.0084686279296875, -0.02386474609375, -0.0780029296875, -0.0183868408203125, 0.01262664794921875, -0.02606201171875, 0.08953857421875, 0.059173583984375, 0.01024627685546875, -0.024322509765625, -0.01386260986328125, 0.00554656982421875, 0.0037021636962890625, 0.061920166015625, 0.007175445556640625, -0.0682373046875, 0.0718994140625, 0.003917694091796875, -0.028411865234375, -0.035125732421875, -0.0125579833984375, -0.0149993896484375, 0.032989501953125, -0.03558349609375, -0.00616455078125, -0.0251312255859375, 0.037567138671875, 0.07427978515625, 0.032684326171875, 0.059906005859375, 0.03253173828125, 0.027130126953125, 0.0053863525390625, 0.04461669921875, -0.00885772705078125, -0.01959228515625, -0.035247802734375, -0.032318115234375, -0.0183258056640625, -0.08612060546875, -0.00942230224609375, 0.020751953125, 0.04144287109375, 0.07818603515625, -0.049591064453125, 0.0027523040771484375, 0.01152801513671875, -0.054901123046875, 0.003009796142578125, 0.014801025390625, -0.037078857421875, -0.08343505859375, 0.027679443359375, -0.01514434814453125, -0.011383056640625, -0.0024356842041015625, -0.0018367767333984375, -0.01451873779296875, -0.0174713134765625, 0.040802001953125, 0.028076171875, -0.0013093948364257812, 0.01904296875, -0.00945281982421875, 0.030914306640625, -0.006481170654296875, 0.0247344970703125, 0.002880096435546875, -0.0128936767578125, -0.059478759765625, 0.0014657974243164062, -0.0224456787109375, -0.024322509765625, -0.019256591796875, -0.002887725830078125, 0.006809234619140625, 0.048614501953125, -0.0305328369140625, 0.0028896331787109375, 0.03662109375, -0.013153076171875, -0.00579833984375, -0.0565185546875, -0.0113677978515625, 0.0501708984375, -0.040618896484375, 0.0237274169921875, 0.01580810546875, -0.0243682861328125, -0.005649566650390625, 0.043670654296875, 0.049224853515625, -0.0006742477416992188, -0.0247802734375, 0.0462646484375, 0.0160675048828125, -0.0231475830078125, -0.01168060302734375, 0.06414794921875, -0.08160400390625, -0.040863037109375, 0.036376953125, -0.017913818359375, -0.03729248046875, -0.004055023193359375, -0.038330078125, 0.11480712890625, 0.00905609130859375, 0.006816864013671875, 0.007007598876953125, 0.05078125, -0.02947998046875, 0.037261962890625, -0.0170440673828125, 0.038330078125, 0.0259246826171875, -0.0285491943359375, -0.0221099853515625, -0.00539398193359375, -0.010711669921875, 0.031951904296875, 0.0221710205078125, 0.007526397705078125, -0.005382537841796875, -0.017852783203125, -0.0134124755859375, 0.013519287109375, -0.02227783203125, 0.0173797607421875, 0.005619049072265625, 0.0189971923828125, 0.03057861328125, -0.0307769775390625, 0.0237274169921875, -0.034149169921875, -0.004119873046875, 0.020782470703125, 0.01348876953125, 0.0248870849609375, 0.0122833251953125, 0.055145263671875, -0.052032470703125, 0.007511138916015625, 0.0501708984375, -0.042877197265625, 0.0390625, -0.0033321380615234375, -0.0129241943359375, 0.0227203369140625, 0.021087646484375, -0.012420654296875, 0.0260162353515625, -0.0181427001953125, -0.0013132095336914062, 0.01020050048828125, 0.0223236083984375, 0.0513916015625, -0.0299072265625, -0.016693115234375, 0.0231170654296875, -0.007671356201171875, 0.01462554931640625, 0.0275726318359375, 0.011962890625, -0.0197906494140625, 0.0113372802734375, 0.03826904296875, 0.029998779296875, -0.04534912109375, -0.040313720703125, -0.00499725341796875, 0.0180206298828125, 0.0628662109375, 0.015960693359375, 0.0826416015625, -0.005992889404296875, 0.02130126953125, -0.0006785392761230469, 0.0029468536376953125, 0.013519287109375, 0.016265869140625, 0.0191192626953125, 0.027008056640625, -0.055084228515625, -0.0007996559143066406, -0.0328369140625, 0.012786865234375, 0.00814056396484375, 0.055389404296875, 0.01010894775390625, 0.040130615234375, -0.0517578125, -0.0167236328125, 0.007221221923828125, 0.011505126953125, 0.054595947265625, -0.033447265625, 0.018829345703125, -0.0033817291259765625, 0.030731201171875, -0.0022792816162109375, -0.0037670135498046875, 0.0579833984375, 0.0667724609375, 0.032958984375, -0.04437255859375, -0.0098419189453125, 0.075439453125, -0.039642333984375, -0.030364990234375, -0.032073974609375, -0.037841796875, 0.0151214599609375, 0.0003619194030761719, 0.031646728515625, -0.005771636962890625, 0.00780487060546875, -0.0301666259765625, 0.0233917236328125, -0.012939453125, -0.02301025390625, 0.040313720703125, 0.0220947265625, 0.045013427734375, 0.0103912353515625, -0.0882568359375, -0.0130157470703125, -0.021209716796875, -0.054046630859375, 0.0250396728515625, 0.04425048828125, -0.026214599609375, 0.0241546630859375, 0.0125274658203125, -0.037017822265625, 0.01568603515625, 0.0498046875, -0.037353515625, -0.02490234375, 0.026397705078125, -0.046844482421875, -0.00447845458984375, 0.0019178390502929688, -0.0028228759765625, 0.027618408203125, -0.0164947509765625, 0.07415771484375, -0.0361328125, -0.0017385482788085938, -0.0199737548828125, -0.006805419921875, -0.01153564453125, -0.0104522705078125, -0.0176849365234375, -0.003505706787109375, 0.004245758056640625, 0.01419830322265625, -0.032470703125, 0.02618408203125, -0.0227203369140625, 0.01099395751953125, 0.022125244140625, -0.0526123046875, 0.0252227783203125, 0.03900146484375, 0.0276947021484375, -0.0167388916015625, -0.0137786865234375, -0.034454345703125, 0.019378662109375, 0.0399169921875, 0.03887939453125, -0.039031982421875, 0.0455322265625, -0.00804901123046875, 0.00144195556640625, 0.009674072265625, -0.029937744140625, -0.0029544830322265625, 0.00731658935546875, -0.0127716064453125, 0.01654052734375, -0.027801513671875, -0.0226898193359375, 0.0015859603881835938, 0.006435394287109375, -0.0177764892578125, -0.0099334716796875, 0.01404571533203125, -0.0298004150390625, 0.015716552734375, 0.009765625, 0.0088958740234375, 0.002239227294921875, -0.0011358261108398438, -0.04071044921875, -0.01235198974609375, -0.0108642578125, -0.007205963134765625, -0.03460693359375, 0.015716552734375, 0.01335906982421875, 0.01971435546875, 0.012664794921875, 0.013427734375, -0.00782012939453125, 0.0010652542114257812, -0.01285552978515625, -0.004787445068359375, -0.0038547515869140625, -0.01751708984375, 0.0032711029052734375, -0.0020809173583984375, 0.0711669921875, -0.0061187744140625, 0.0321044921875, -0.0595703125, -0.0080413818359375, 0.00971221923828125, 0.02911376953125, 0.01511383056640625, -0.02880859375, 0.042388916015625, -0.01401519775390625, -0.047119140625, -0.031890869140625, 0.00537109375, -0.0002498626708984375, 0.0008578300476074219, -0.007129669189453125, 0.0101165771484375, 0.006633758544921875, -0.03515625, -0.07781982421875, 0.00803375244140625, -0.07427978515625, 0.003055572509765625, -0.02203369140625, 0.0401611328125, 0.0501708984375, -0.036376953125, -0.0821533203125, 0.01166534423828125, -0.0171356201171875, -0.034332275390625, -0.08197021484375, -0.037689208984375, 0.03302001953125, -0.0253753662109375, -0.051605224609375, 0.0125885009765625, -0.09344482421875, 0.031494140625, 0.0073089599609375, 0.0394287109375, 0.0029697418212890625, -0.007564544677734375, -0.03173828125, 0.01031494140625, 0.003978729248046875, -0.00421142578125, -0.0132598876953125, -0.0091552734375, 0.019805908203125, 0.006496429443359375, -0.032867431640625, 0.02703857421875, 0.0264892578125, -0.0018053054809570312, -0.004116058349609375, -0.0208892822265625, -0.0024967193603515625, 0.0189056396484375, 0.0311431884765625, 0.053558349609375, -0.003253936767578125, -0.0440673828125, -0.0146484375, -0.007598876953125, -0.02923583984375, -0.0294036865234375, 0.022369384765625, -0.055389404296875, -0.0034656524658203125, -0.042694091796875, 0.0157623291015625, 0.01384735107421875, -0.06365966796875, 0.010101318359375, -0.02362060546875, -0.00135040283203125, -0.00862884521484375, 0.0399169921875, -0.021881103515625, 0.0731201171875, -0.035797119140625, -0.0249481201171875, -0.0110015869140625, 0.0278167724609375, -0.00655364990234375, -0.0396728515625, -0.00968170166015625, 0.04150390625, -0.00896453857421875, -0.0011310577392578125, 0.0228118896484375, 0.023651123046875, -0.00855255126953125, 0.0157012939453125, -0.008148193359375, -0.007244110107421875, -0.004383087158203125, -0.0311431884765625, -0.000385284423828125, 0.0080413818359375, -0.0021419525146484375, 0.034637451171875, -0.01751708984375, -0.01490020751953125, -0.0214996337890625, 0.008941650390625, -0.007526397705078125, 0.0054931640625, 0.03594970703125, -0.026275634765625, 0.007640838623046875, -0.00579071044921875, 0.0128021240234375, -0.032867431640625, 0.03826904296875, 0.011016845703125, -0.010833740234375, 0.0274200439453125 ]
eeb0365f15c0d070e0c68e82b3342d6fb509ffc4
Wordpress Stackexchange Q: Multisite, turn off "create new site" If someone enters the wrong URL to my wordpress multisite, they get the option to create another site in the network. Why does this happen, and how do I turn it off? A: This setting is controlled under: Network Admin > Settings > "Allow new registrations." You may want "Registration is disabled."
Q: Multisite, turn off "create new site" If someone enters the wrong URL to my wordpress multisite, they get the option to create another site in the network. Why does this happen, and how do I turn it off? A: This setting is controlled under: Network Admin > Settings > "Allow new registrations." You may want "Registration is disabled."
wordpress
{ "language": "en", "length": 59, "provenance": "stackexchange_00019.jsonl.gz:424707", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67898" }
[ 0.0677490234375, -0.0063018798828125, 0.0287628173828125, 0.0231170654296875, -0.006443023681640625, -0.0509033203125, 0.05859375, -0.0531005859375, -0.008392333984375, -0.0078582763671875, -0.02178955078125, -0.01245880126953125, -0.0367431640625, -0.032196044921875, 0.01806640625, -0.05523681640625, 0.004650115966796875, -0.0025806427001953125, -0.0286865234375, -0.0267486572265625, -0.016632080078125, -0.028350830078125, -0.008331298828125, 0.0258636474609375, -0.0146331787109375, 0.0020503997802734375, 0.019439697265625, -0.008514404296875, -0.018798828125, -0.022308349609375, 0.0046234130859375, 0.031646728515625, 0.036529541015625, -0.004978179931640625, -0.037139892578125, -0.0396728515625, 0.00238800048828125, -0.01216888427734375, -0.0347900390625, 0.050537109375, 0.0238037109375, -0.0206756591796875, 0.03253173828125, -0.01873779296875, 0.026153564453125, -0.04632568359375, 0.06524658203125, -0.0548095703125, 0.040374755859375, -0.0316162109375, -0.00927734375, -0.0282440185546875, 0.001972198486328125, -0.008636474609375, -0.058380126953125, -0.07037353515625, 0.0238037109375, -0.00848388671875, 0.01377105712890625, -0.0005965232849121094, -0.0423583984375, 0.042327880859375, 0.0137939453125, -0.0170135498046875, -0.01007080078125, -0.022430419921875, -0.059417724609375, 0.029541015625, -0.0310211181640625, -0.0038623809814453125, 0.041534423828125, -0.048126220703125, 0.032440185546875, 0.0085601806640625, -0.026153564453125, -0.010162353515625, -0.02154541015625, -0.0069122314453125, 0.056671142578125, -0.02716064453125, 0.016815185546875, -0.039520263671875, 0.0000743865966796875, -0.0400390625, 0.025604248046875, -0.00037479400634765625, 0.005573272705078125, 0.00020611286163330078, -0.035369873046875, -0.0030670166015625, -0.0340576171875, -0.0087890625, -0.0338134765625, 0.0185394287109375, -0.005680084228515625, -0.00021851062774658203, 0.0279083251953125, 0.0399169921875, 0.01702880859375, -0.026214599609375, -0.016693115234375, -0.030792236328125, -0.039825439453125, -0.0061187744140625, 0.0224151611328125, 0.043731689453125, 0.0061492919921875, -0.037109375, 0.032501220703125, -0.005863189697265625, -0.00836181640625, 0.06463623046875, 0.0023250579833984375, 0.00917816162109375, -0.046295166015625, -0.0200653076171875, -0.036224365234375, -0.004413604736328125, -0.00638580322265625, -0.01210784912109375, -0.018280029296875, 0.015472412109375, 0.004611968994140625, 0.0011348724365234375, -0.0040283203125, -0.007720947265625, -0.00864410400390625, -0.0226898193359375, -0.06243896484375, -0.0245361328125, -0.030364990234375, 0.031829833984375, 0.072509765625, 0.06353759765625, 0.0133514404296875, -0.0008034706115722656, 0.0226287841796875, 0.053466796875, -0.016876220703125, 0.028167724609375, 0.0012006759643554688, -0.050384521484375, -0.036651611328125, 0.001384735107421875, 0.017730712890625, 0.024566650390625, 0.0287322998046875, 0.01061248779296875, 0.01126861572265625, -0.004589080810546875, -0.038543701171875, -0.01457977294921875, 0.01126861572265625, 0.00830078125, 0.0367431640625, -0.033050537109375, 0.0230255126953125, -0.0198822021484375, 0.015777587890625, -0.01023101806640625, 0.0037822723388671875, 0.00421142578125, 0.04486083984375, -0.01497650146484375, -0.02777099609375, -0.01016998291015625, -0.06243896484375, -0.014007568359375, 0.0233917236328125, -0.00833892822265625, -0.0011653900146484375, -0.042877197265625, 0.01096343994140625, -0.0045928955078125, -0.0129852294921875, 0.0304718017578125, 0.03765869140625, -0.0136871337890625, -0.00431060791015625, 0.094482421875, 0.034820556640625, -0.01345062255859375, 0.0268707275390625, -0.0063934326171875, -0.06976318359375, 0.06158447265625, -0.02587890625, 0.0523681640625, 0.033782958984375, -0.0033054351806640625, 0.035919189453125, 0.00955963134765625, 0.0171966552734375, 0.001903533935546875, 0.006397247314453125, -0.0218963623046875, -0.02667236328125, 0.005466461181640625, -0.020172119140625, -0.042388916015625, -0.0121917724609375, 0.01097869873046875, 0.002986907958984375, 0.0088348388671875, -0.0173492431640625, 0.025177001953125, -0.01861572265625, 0.026336669921875, 0.038055419921875, 0.01495361328125, -0.016510009765625, -0.0208282470703125, 0.00533294677734375, -0.0201416015625, -0.046356201171875, -0.0178375244140625, -0.044403076171875, 0.040679931640625, 0.0046539306640625, 0.0036029815673828125, 0.005096435546875, -0.01229095458984375, 0.007221221923828125, -0.0250396728515625, 0.049835205078125, -0.0295257568359375, -0.0249481201171875, -0.0357666015625, 0.009002685546875, -0.003627777099609375, -0.04248046875, 0.06732177734375, -0.013336181640625, -0.01497650146484375, -0.0247955322265625, 0.00568389892578125, 0.00897216796875, -0.0236358642578125, -0.009063720703125, 0.035552978515625, 0.03265380859375, 0.00014925003051757812, 0.00415802001953125, 0.0142669677734375, 0.009796142578125, -0.037750244140625, 0.01239776611328125, -0.0001518726348876953, 0.0255279541015625, 0.04443359375, 0.0157012939453125, -0.02978515625, 0.023773193359375, -0.039794921875, 0.020721435546875, 0.0217132568359375, -0.0479736328125, -0.04541015625, 0.051300048828125, -0.030059814453125, 0.029296875, 0.00604248046875, -0.0006685256958007812, 0.0157318115234375, 0.00258636474609375, 0.0026874542236328125, 0.01064300537109375, -0.0009593963623046875, -0.005954742431640625, 0.01947021484375, -0.005123138427734375, -0.084228515625, -0.005420684814453125, -0.01120758056640625, 0.07025146484375, -0.0081634521484375, -0.03839111328125, 0.007778167724609375, 0.01099395751953125, -0.007457733154296875, -0.051025390625, -0.0118408203125, -0.08013916015625, -0.01242828369140625, -0.00603485107421875, -0.083984375, -0.01190948486328125, -0.01435089111328125, -0.0199432373046875, -0.047637939453125, -0.00814056396484375, 0.0058746337890625, -0.02630615234375, -0.0027828216552734375, 0.0526123046875, -0.0479736328125, 0.00021278858184814453, -0.05377197265625, 0.0245361328125, -0.044708251953125, 0.03448486328125, 0.0687255859375, 0.007625579833984375, 0.0007863044738769531, -0.001956939697265625, -0.005954742431640625, 0.015167236328125, -0.01203155517578125, -0.020965576171875, 0.0233612060546875, -0.0963134765625, -0.0220184326171875, 0.01290130615234375, -0.031219482421875, 0.0006518363952636719, -0.00518035888671875, -0.01255035400390625, -0.024017333984375, -0.034088134765625, 0.0007963180541992188, -0.0767822265625, -0.0046844482421875, 0.008697509765625, 0.0027713775634765625, 0.0182342529296875, -0.002239227294921875, 0.007343292236328125, 0.029815673828125, 0.014984130859375, -0.0736083984375, -0.049285888671875, -0.07562255859375, -0.054656982421875, -0.0019474029541015625, 0.02386474609375, 0.0015993118286132812, -0.0002040863037109375, 0.035614013671875, 0.016632080078125, 0.001064300537109375, 0.0232391357421875, -0.0220184326171875, -0.02764892578125, -0.047271728515625, -0.03204345703125, -0.01953125, 0.01201629638671875, 0.00994873046875, 0.043243408203125, 0.01500701904296875, 0.004703521728515625, -0.01213836669921875, 0.01509857177734375, 0.0021381378173828125, 0.0146026611328125, -0.01611328125, -0.0179290771484375, -0.0020694732666015625, -0.02099609375, -0.044830322265625, -0.032958984375, -0.004009246826171875, -0.052825927734375, 0.00937652587890625, 0.0291290283203125, -0.01303863525390625, 0.0224151611328125, -0.007354736328125, 0.01351165771484375, -0.034271240234375, 0.044525146484375, -0.056243896484375, 0.04241943359375, -0.00943756103515625, 0.004497528076171875, -0.057159423828125, 0.0310211181640625, -0.01788330078125, 0.0030040740966796875, -0.000339508056640625, -0.002826690673828125, -0.004421234130859375, 0.00992584228515625, -0.026824951171875, -0.0247039794921875, 0.0068817138671875, -0.08819580078125, 0.0123748779296875, -0.051300048828125, 0.0112152099609375, -0.0229034423828125, 0.06451416015625, -0.02362060546875, 0.004856109619140625, 0.0008745193481445312, 0.00679779052734375, -0.00325775146484375, -0.027496337890625, -0.040008544921875, -0.00862884521484375, -0.01016998291015625, 0.01335906982421875, -0.0033054351806640625, -0.009429931640625, -0.0287933349609375, -0.01849365234375, -0.021087646484375, -0.0223388671875, 0.024078369140625, 0.00017261505126953125, 0.001987457275390625, -0.01910400390625, 0.00858306884765625, -0.05755615234375, -0.0027713775634765625, -0.018402099609375, -0.06365966796875, -0.0094757080078125, 0.0036678314208984375, 0.0267791748046875, -0.0157928466796875, 0.0070953369140625, -0.0195159912109375, 0.0345458984375, -0.00022304058074951172, -0.0177001953125, -0.00873565673828125, -0.017303466796875, 0.025421142578125, 0.0212249755859375, -0.0268096923828125, -0.00547027587890625, 0.00620269775390625, -0.005283355712890625, -0.04254150390625, -0.0032215118408203125, -0.01629638671875, 0.00042510032653808594, 0.0390625, -0.03826904296875, -0.06170654296875, -0.0360107421875, -0.00826263427734375, -0.023468017578125, -0.01708984375, -0.01369476318359375, -0.001773834228515625, -0.036376953125, 0.018402099609375, -0.053741455078125, -0.028961181640625, 0.00881195068359375, 0.07073974609375, 0.0267333984375, 0.01132965087890625, 0.028472900390625, 0.03643798828125, 0.0211334228515625, -0.0004825592041015625, 0.04315185546875, 0.0239715576171875, 0.01678466796875, -0.0009632110595703125, -0.0075531005859375, -0.03912353515625, 0.01502227783203125, 0.0186614990234375, 0.006595611572265625, -0.0230560302734375, -0.015045166015625, -0.0386962890625, 0.028839111328125, -0.0111083984375, 0.001163482666015625, 0.032562255859375, 0.0232696533203125, -0.0156402587890625, 0.02386474609375, -0.045318603515625, -0.01360321044921875, -0.0227508544921875, 0.026641845703125, 0.009307861328125, 0.0025653839111328125, 0.013275146484375, 0.0125579833984375, -0.0169830322265625, -0.038848876953125, 0.0056915283203125, -0.027374267578125, -0.01495361328125, -0.049102783203125, 0.0184783935546875, -0.042449951171875, -0.04473876953125, 0.0161895751953125, -0.01183319091796875, 0.06634521484375, -0.0038738250732421875, -0.040283203125, 0.01175689697265625, -0.0145111083984375, -0.007228851318359375, 0.044921875, 0.000797271728515625, 0.0093231201171875, -0.003452301025390625, -0.019500732421875, 0.0008602142333984375, 0.01177978515625, -0.011566162109375, -0.02581787109375, -0.032135009765625, 0.007312774658203125, -0.018646240234375, 0.01412200927734375, 0.045013427734375, 0.0038127899169921875, 0.032501220703125, -0.03216552734375, 0.0242156982421875, 0.05615234375, -0.0296173095703125, 0.0074920654296875, 0.052703857421875, -0.005008697509765625, -0.0357666015625, 0.03228759765625, -0.02923583984375, -0.0250091552734375, 0.042205810546875, 0.06329345703125, 0.0328369140625, 0.00824737548828125, -0.0298614501953125, -0.021026611328125, -0.0094757080078125, 0.05419921875, -0.0282135009765625, -0.09283447265625, -0.0194244384765625, -0.00986480712890625, 0.000461578369140625, -0.06866455078125, 0.00730133056640625, -0.02203369140625, -0.0208740234375, -0.00783538818359375, -0.0227813720703125, -0.0258941650390625, -0.0198974609375, -0.010986328125, -0.0293426513671875, -0.033660888671875, 0.00843048095703125, -0.011688232421875, 0.01442718505859375, -0.0262451171875, -0.0416259765625, 0.0321044921875, -0.032958984375, -0.01410675048828125, -0.031280517578125, 0.024566650390625, -0.05010986328125, 0.0325927734375, 0.006153106689453125, -0.004547119140625, -0.0169219970703125, 0.0027065277099609375, -0.0234527587890625, -0.024627685546875, -0.0032520294189453125, -0.0243072509765625, -0.007656097412109375, -0.0287933349609375, 0.035675048828125, 0.021209716796875, -0.028472900390625, -0.06689453125, -0.01024627685546875, 0.00562286376953125, 0.027099609375, -0.00273895263671875, -0.045684814453125, -0.0057373046875, 0.046417236328125, 0.0195159912109375, 0.006992340087890625, 0.000316619873046875, 0.050537109375, -0.0390625, 0.007190704345703125, -0.04302978515625, -0.05328369140625, 0.00008320808410644531, -0.026123046875, 0.051422119140625, 0.050689697265625, -0.017364501953125, 0.00495147705078125, -0.01464080810546875, 0.007312774658203125, -0.0255126953125, 0.004131317138671875, -0.03399658203125, 0.025970458984375, -0.0293426513671875, -0.01514434814453125, 0.040771484375, 0.0028247833251953125, 0.0012331008911132812, -0.0027370452880859375, -0.0273284912109375, 0.01163482666015625, 0.0250244140625, -0.023193359375, 0.0270843505859375, 0.01983642578125, -0.02471923828125, 0.013702392578125, -0.00032019615173339844, 0.00817108154296875, 0.0112762451171875, -0.004650115966796875, -0.0787353515625, -0.0316162109375, -0.0013513565063476562, -0.006130218505859375, -0.00847625732421875, 0.01340484619140625, -0.002689361572265625, 0.01129150390625, 0.084716796875, 0.08990478515625, -0.1318359375, 0.027496337890625, 0.011749267578125, 0.02947998046875, 0.012176513671875, -0.01303863525390625, -0.01010894775390625, -0.0282440185546875, 0.034515380859375, -0.01084136962890625, -0.030975341796875, -0.020477294921875, -0.007080078125, -0.031158447265625, 0.0027027130126953125, 0.045989990234375, 0.033843994140625, -0.007625579833984375, 0.026580810546875, -0.01338958740234375, 0.0355224609375, -0.0419921875, -0.021270751953125, 0.0016241073608398438, -0.01441192626953125, -0.045806884765625, 0.010650634765625, -0.0162200927734375, 0.056884765625, -0.0029659271240234375, -0.0234375, 0.00909423828125, 0.046295166015625, -0.03790283203125, 0.027679443359375, 0.027587890625, -0.01421356201171875, 0.015106201171875, -0.0033702850341796875, 0.00901031494140625, -0.0062408447265625, -0.00914764404296875, 0.0004086494445800781, -0.015716552734375, -0.0416259765625, 0.0088958740234375, 0.0301361083984375, 0.01425933837890625, -0.01678466796875, -0.014739990234375, 0.06744384765625, -0.00574493408203125, -0.035736083984375, -0.02374267578125, -0.0396728515625, -0.0567626953125, -0.02044677734375, -0.03033447265625, -0.024688720703125, 0.048797607421875, -0.0066375732421875, -0.05926513671875, 0.0865478515625, 0.00555419921875, 0.01065826416015625, 0.005352020263671875, 0.0447998046875, -0.041412353515625, 0.013336181640625, -0.038909912109375, 0.02630615234375, 0.0101470947265625, 0.061553955078125, -0.06573486328125, -0.03277587890625, 0.013885498046875, 0.0672607421875, 0.026458740234375, 0.0064544677734375, -0.00142669677734375, 0.01367950439453125, 0.0283050537109375, 0.0005745887756347656, -0.0233001708984375, 0.039459228515625, -0.00899505615234375, 0.05926513671875, 0.05157470703125, -0.07354736328125, 0.0115966796875, 0.0206451416015625, -0.00795745849609375, 0.0171051025390625, -0.0010194778442382812, -0.01904296875, 0.00547027587890625, -0.037841796875, -0.05291748046875, 0.032257080078125, 0.01018524169921875, 0.06536865234375, -0.037109375, 0.0312042236328125, -0.004100799560546875, -0.015777587890625, 0.09033203125, -0.059326171875, 0.05462646484375, -0.00966644287109375, -0.0244140625, 0.028961181640625, 0.022186279296875, 0.0133209228515625, -0.0005283355712890625, -0.0161895751953125, 0.0229034423828125, -0.007564544677734375, 0.00031280517578125, 0.005084991455078125, 0.03424072265625, -0.05621337890625, -0.04364013671875, 0.042755126953125, 0.041839599609375, 0.007511138916015625, 0.0008225440979003906, 0.0269012451171875, 0.0159759521484375, 0.0013837814331054688, 0.004711151123046875, 0.0634765625, -0.0002199411392211914, 0.02215576171875, -0.040069580078125, -0.0141143798828125, 0.03375244140625, 0.0166778564453125, -0.005100250244140625, 0.002170562744140625, -0.006885528564453125, -0.0238494873046875, -0.01209259033203125, -0.0222320556640625, -0.012969970703125, 0.053466796875, 0.046112060546875, 0.04779052734375, -0.05303955078125, -0.0278472900390625, -0.0430908203125, 0.07470703125, 0.00469970703125, 0.0517578125, -0.0863037109375, -0.06988525390625, 0.04248046875, 0.0457763671875, -0.01111602783203125, 0.063232421875, 0.0645751953125, 0.0628662109375, -0.0113372802734375, -0.00597381591796875, 0.07275390625, -0.0205841064453125, 0.036163330078125, -0.058837890625, -0.00440216064453125, -0.01213836669921875, -0.023651123046875, -0.0032024383544921875, -0.021209716796875, 0.036407470703125, -0.0188751220703125, 0.022735595703125, -0.01153564453125, -0.036224365234375, -0.00629425048828125, -0.006679534912109375, 0.02862548828125, -0.0016717910766601562, -0.0947265625, -0.01318359375, -0.044158935546875, -0.0241241455078125, 0.0157012939453125, 0.04266357421875, 0.00421905517578125, -0.009185791015625, -0.019989013671875, 0.00440216064453125, 0.0049285888671875, -0.001407623291015625, -0.0229644775390625, -0.003299713134765625, 0.03802490234375, -0.0218505859375, -0.063720703125, -0.018890380859375, 0.004962921142578125, 0.0189666748046875, -0.0193634033203125, 0.10028076171875, -0.01324462890625, -0.0008778572082519531, 0.034698486328125, -0.03192138671875, 0.02789306640625, -0.00606536865234375, 0.002475738525390625, -0.020904541015625, 0.0080108642578125, -0.006866455078125, -0.02874755859375, 0.05792236328125, -0.0008831024169921875, 0.00025963783264160156, 0.06402587890625, -0.047119140625, -0.01251983642578125, -0.005863189697265625, 0.022064208984375, -0.030548095703125, -0.053375244140625, -0.061004638671875, 0.01432037353515625, 0.01267242431640625, 0.007007598876953125, -0.056732177734375, 0.03179931640625, -0.037384033203125, -0.0300140380859375, 0.009979248046875, -0.033599853515625, 0.004825592041015625, 0.035186767578125, -0.0244140625, -0.02606201171875, 0.0025844573974609375, -0.005619049072265625, -0.02386474609375, 0.0195465087890625, -0.0009908676147460938, 0.01023101806640625, -0.0411376953125, 0.00420379638671875, -0.02020263671875, -0.015777587890625, -0.0450439453125, -0.021697998046875, 0.01445770263671875, -0.0055694580078125, -0.01065826416015625, -0.008544921875, -0.01297760009765625, -0.058013916015625, -0.007663726806640625, 0.00565338134765625, -0.0312042236328125, -0.00159454345703125, 0.0198974609375, 0.0090484619140625, 0.076171875, 0.00798797607421875, -0.0718994140625, 0.049957275390625, -0.0628662109375, 0.0562744140625, 0.00006699562072753906, -0.028289794921875, -0.015655517578125, 0.00357818603515625, -0.00798797607421875, -0.024566650390625, -0.048675537109375, 0.033050537109375, -0.0228424072265625, 0.006206512451171875, 0.0450439453125, -0.007175445556640625, -0.031494140625, -0.0182037353515625, -0.02130126953125, 0.01959228515625, -0.034576416015625, -0.0204925537109375, 0.015777587890625, -0.0281524658203125, -0.02862548828125, -0.01061248779296875, 0.00189208984375, -0.0244903564453125, -0.043212890625, -0.0302734375, -0.016357421875, -0.0125579833984375, -0.0489501953125, -0.07421875, 0.01100921630859375, 0.00009250640869140625, -0.037078857421875, -0.038604736328125, -0.026275634765625, -0.0033168792724609375, -0.006076812744140625, -0.0309906005859375, -0.00308990478515625, -0.0257110595703125, 0.045440673828125, 0.0227813720703125, 0.032684326171875, -0.01148223876953125, 0.0214385986328125, -0.01535797119140625, 0.03326416015625, 0.0260009765625, 0.008453369140625, 0.033172607421875, -0.00678253173828125, 0.02447509765625, 0.048187255859375, -0.03363037109375, -0.01300811767578125, -0.01123046875, -0.0225067138671875, -0.024505615234375, -0.01136016845703125, -0.02581787109375, -0.0251617431640625, 0.08514404296875, 0.051483154296875, 0.024078369140625, -0.019439697265625, -0.0222320556640625, -0.021728515625, -0.03265380859375, -0.025787353515625, 0.0252685546875, -0.079833984375, -0.018402099609375, 0.006198883056640625, -0.0249176025390625, 0.01387786865234375, 0.037353515625, -0.0369873046875, 0.0090484619140625, 0.0029735565185546875, -0.0391845703125, -0.0792236328125, -0.0105133056640625, 0.031402587890625, -0.03631591796875, -0.00778961181640625, -0.0265045166015625, 0.01922607421875, -0.0245513916015625, -0.0435791015625, -0.017669677734375, -0.0080108642578125, -0.04254150390625, 0.0237884521484375, -0.020721435546875, 0.031768798828125, -0.054229736328125, -0.00557708740234375, 0.00041675567626953125, 0.046417236328125, 0.0009965896606445312, 0.053375244140625, 0.0266571044921875, 0.017547607421875, -0.0027446746826171875, 0.01335906982421875, 0.01468658447265625, 0.01132965087890625, -0.02740478515625, 0.059173583984375, -0.0285797119140625, -0.00862884521484375, -0.02081298828125, -0.01409149169921875, 0.006977081298828125, 0.0264129638671875, 0.0259857177734375, -0.0171051025390625, 0.041015625, 0.01090240478515625, 0.017578125, 0.01265716552734375 ]
f18946579418c039f361d36f6a432db3fd6e0d85
Wordpress Stackexchange Q: Can I call a custom plugin with a direct URL Suppose I have written a hello world plugin, the main function is just print out a sting hello world. I want to print out hello world when I access the URL likes http://example.com?plugin=helloworld Is it possible to make the hello world plugin functional when I access a specific URL? A: The Simplest way is to add a Query var to the list of query var that WordPress recognizes and check for that newly added query var on template redirect hook ex: add_filter( 'query_vars', 'se67095_add_query_vars'); /** * Add the 'my_plugin' query variable so WordPress * won't remove it. */ function se67095_add_query_vars($vars){ $vars[] = "my_plugin"; return $vars; } /** * check for 'my_plugin' query variable and do what you want if its there */ add_action('template_redirect', 'se67905_my_template'); function se67905_my_template($template) { global $wp_query; // If the 'my_plugin' query var isn't appended to the URL, // don't do anything and return default if(!isset( $wp_query->query['my_plugin'] )) return $template; // .. otherwise, if($wp_query->query['my_plugin'] == 'helloworld'){ echo "hello world"; exit; } return $template; }
Q: Can I call a custom plugin with a direct URL Suppose I have written a hello world plugin, the main function is just print out a sting hello world. I want to print out hello world when I access the URL likes http://example.com?plugin=helloworld Is it possible to make the hello world plugin functional when I access a specific URL? A: The Simplest way is to add a Query var to the list of query var that WordPress recognizes and check for that newly added query var on template redirect hook ex: add_filter( 'query_vars', 'se67095_add_query_vars'); /** * Add the 'my_plugin' query variable so WordPress * won't remove it. */ function se67095_add_query_vars($vars){ $vars[] = "my_plugin"; return $vars; } /** * check for 'my_plugin' query variable and do what you want if its there */ add_action('template_redirect', 'se67905_my_template'); function se67905_my_template($template) { global $wp_query; // If the 'my_plugin' query var isn't appended to the URL, // don't do anything and return default if(!isset( $wp_query->query['my_plugin'] )) return $template; // .. otherwise, if($wp_query->query['my_plugin'] == 'helloworld'){ echo "hello world"; exit; } return $template; }
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:424711", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/67905" }
[ 0.0714111328125, 0.0212860107421875, 0.00518798828125, -0.0521240234375, 0.020751953125, -0.01064300537109375, 0.01207733154296875, -0.029144287109375, -0.017333984375, 0.005435943603515625, -0.01390838623046875, 0.0176239013671875, -0.01523590087890625, -0.031036376953125, 0.01959228515625, -0.0308685302734375, 0.050048828125, -0.0269622802734375, 0.0054779052734375, -0.01290130615234375, 0.0233306884765625, 0.01190948486328125, 0.01140594482421875, 0.09771728515625, 0.026336669921875, -0.0156402587890625, 0.11676025390625, -0.016998291015625, 0.017608642578125, -0.005451202392578125, 0.0244140625, -0.03607177734375, 0.031341552734375, 0.0396728515625, -0.053253173828125, -0.01407623291015625, 0.0126190185546875, 0.005138397216796875, -0.021087646484375, 0.0322265625, 0.04913330078125, -0.032196044921875, -0.00986480712890625, 0.01812744140625, -0.007724761962890625, -0.03839111328125, 0.06463623046875, -0.0219879150390625, 0.01265716552734375, 0.037994384765625, -0.00424957275390625, -0.00701141357421875, -0.0168914794921875, -0.005687713623046875, -0.001850128173828125, -0.005619049072265625, -0.0252838134765625, -0.0185699462890625, 0.007701873779296875, 0.0158843994140625, 0.020721435546875, -0.0037136077880859375, 0.00838470458984375, 0.0270538330078125, 0.01045989990234375, -0.017608642578125, -0.0033702850341796875, 0.0105133056640625, -0.006267547607421875, 0.00797271728515625, 0.0260162353515625, -0.0093994140625, -0.0015592575073242188, 0.0291900634765625, -0.060699462890625, -0.041412353515625, 0.0361328125, -0.0227508544921875, 0.007244110107421875, 0.00447845458984375, 0.00922393798828125, -0.001934051513671875, -0.0255279541015625, -0.00555419921875, 0.0178375244140625, 0.03973388671875, -0.01042938232421875, -0.0276947021484375, -0.0307769775390625, -0.028564453125, -0.0299072265625, 0.004169464111328125, -0.023040771484375, -0.0172882080078125, -0.036529541015625, -0.01153564453125, 0.01197052001953125, 0.038726806640625, 0.0201416015625, 0.03668212890625, -0.0343017578125, -0.0202789306640625, 0.004459381103515625, -0.03436279296875, 0.00458526611328125, 0.0462646484375, 0.006103515625, 0.0328369140625, 0.049407958984375, 0.0278167724609375, 0.0283050537109375, 0.0201263427734375, -0.0226287841796875, 0.01528167724609375, -0.009185791015625, 0.0206298828125, -0.037841796875, -0.0282440185546875, -0.0341796875, 0.01119232177734375, 0.011688232421875, 0.01166534423828125, 0.0217437744140625, -0.0269775390625, -0.01384735107421875, -0.0272979736328125, -0.0161895751953125, -0.0295562744140625, -0.035125732421875, -0.0024738311767578125, -0.0040283203125, 0.041290283203125, 0.0216827392578125, 0.01776123046875, -0.0191497802734375, -0.00684356689453125, 0.056488037109375, -0.0226593017578125, -0.004283905029296875, -0.02716064453125, 0.020538330078125, 0.0135498046875, -0.00946044921875, -0.0234832763671875, 0.00698089599609375, 0.0107879638671875, 0.0128021240234375, 0.02642822265625, -0.011260986328125, -0.004730224609375, 0.0197906494140625, -0.0294036865234375, 0.037689208984375, -0.02313232421875, -0.0012540817260742188, 0.0081787109375, 0.0138397216796875, 0.006061553955078125, -0.0238037109375, 0.00695037841796875, -0.049774169921875, -0.01258087158203125, 0.034576416015625, -0.06744384765625, -0.034149169921875, -0.01540374755859375, -0.026824951171875, 0.00774383544921875, 0.0187530517578125, 0.05145263671875, 0.020263671875, -0.0191192626953125, -0.001094818115234375, 0.0285797119140625, -0.0018796920776367188, 0.003185272216796875, -0.0249176025390625, 0.059173583984375, 0.02691650390625, 0.0269775390625, 0.009429931640625, -0.03680419921875, 0.1051025390625, -0.0275115966796875, -0.08013916015625, 0.07666015625, -0.0199432373046875, 0.027313232421875, 0.02313232421875, -0.027587890625, 0.06011962890625, 0.04156494140625, -0.04901123046875, 0.04107666015625, -0.030120849609375, -0.0226898193359375, 0.0201263427734375, 0.0223236083984375, -0.0103607177734375, -0.01100921630859375, 0.0106964111328125, -0.0023784637451171875, 0.0020961761474609375, 0.007904052734375, -0.0653076171875, 0.0208892822265625, -0.036163330078125, 0.0279998779296875, 0.00981903076171875, 0.052093505859375, 0.0021038055419921875, 0.0253448486328125, -0.0189208984375, -0.035186767578125, -0.00797271728515625, 0.0019931793212890625, -0.01255035400390625, 0.057464599609375, -0.0005602836608886719, 0.0063323974609375, 0.0263214111328125, -0.037017822265625, 0.0196075439453125, 0.0301666259765625, 0.0209808349609375, -0.00905609130859375, -0.0171661376953125, -0.0078125, -0.0197601318359375, 0.0165557861328125, -0.0533447265625, 0.034515380859375, 0.0258941650390625, 0.057159423828125, -0.0127410888671875, -0.01519775390625, 0.005340576171875, -0.049468994140625, 0.0151824951171875, 0.039520263671875, 0.02899169921875, 0.007350921630859375, -0.042449951171875, -0.053680419921875, 0.0164031982421875, -0.05706787109375, -0.006206512451171875, -0.01042938232421875, 0.02557373046875, 0.03472900390625, -0.02178955078125, -0.0254364013671875, 0.016510009765625, -0.032196044921875, 0.0024547576904296875, 0.024566650390625, 0.007350921630859375, -0.02032470703125, -0.021026611328125, 0.0165863037109375, 0.0037746429443359375, 0.032073974609375, -0.01055145263671875, 0.0289459228515625, -0.0033855438232421875, -0.0189666748046875, 0.01026153564453125, 0.0009870529174804688, -0.007259368896484375, -0.01422119140625, 0.015960693359375, -0.0137481689453125, -0.0220489501953125, 0.0031299591064453125, 0.042022705078125, -0.0223236083984375, -0.041412353515625, 0.01499176025390625, -0.007167816162109375, -0.005802154541015625, 0.00005608797073364258, 0.040985107421875, -0.06781005859375, -0.0220947265625, -0.035797119140625, -0.051605224609375, -0.01491546630859375, 0.026123046875, 0.057220458984375, 0.040313720703125, 0.06787109375, 0.0017271041870117188, -0.024627685546875, 0.07525634765625, -0.031494140625, -0.042388916015625, 0.0189208984375, -0.055511474609375, 0.04437255859375, -0.0284881591796875, 0.04150390625, 0.0748291015625, 0.004482269287109375, 0.0137481689453125, -0.0103302001953125, -0.0047760009765625, -0.004543304443359375, -0.002170562744140625, -0.0166168212890625, 0.000850677490234375, -0.07281494140625, -0.0065460205078125, 0.0208587646484375, 0.04376220703125, -0.0024871826171875, -0.0540771484375, -0.01140594482421875, 0.025390625, -0.0687255859375, -0.042144775390625, 0.034759521484375, -0.01169586181640625, 0.015777587890625, -0.0113525390625, -0.00022661685943603516, -0.0193634033203125, -0.01505279541015625, -0.005046844482421875, -0.01557159423828125, -0.04345703125, -0.08233642578125, -0.09698486328125, -0.08892822265625, 0.004619598388671875, 0.0032329559326171875, 0.0068817138671875, 0.00818634033203125, 0.047698974609375, 0.0213775634765625, -0.0301055908203125, 0.0252227783203125, 0.00897979736328125, -0.007709503173828125, 0.006450653076171875, 0.00821685791015625, -0.036163330078125, 0.035003662109375, -0.00891876220703125, 0.043914794921875, 0.039794921875, -0.023162841796875, 0.006473541259765625, 0.0082244873046875, -0.0142364501953125, 0.031524658203125, -0.031036376953125, -0.0213775634765625, 0.01242828369140625, 0.030975341796875, -0.0266571044921875, -0.0104217529296875, -0.014190673828125, -0.036956787109375, 0.01953125, 0.019500732421875, -0.007144927978515625, -0.005725860595703125, 0.004901885986328125, -0.00939178466796875, 0.01934814453125, 0.0013494491577148438, -0.019134521484375, 0.0197296142578125, -0.0174713134765625, -0.01441192626953125, -0.01024627685546875, 0.066650390625, -0.0077972412109375, -0.0253448486328125, 0.0235137939453125, 0.004486083984375, 0.028656005859375, -0.0355224609375, 0.006183624267578125, 0.03082275390625, 0.00594329833984375, -0.0014619827270507812, 0.024688720703125, 0.005340576171875, -0.004268646240234375, -0.0020847320556640625, 0.023529052734375, -0.047149658203125, -0.005336761474609375, 0.0250091552734375, 0.01971435546875, -0.0162506103515625, -0.046142578125, -0.059295654296875, -0.0226287841796875, -0.10040283203125, -0.01259613037109375, -0.016845703125, -0.03680419921875, -0.0290679931640625, 0.034393310546875, -0.07733154296875, -0.034423828125, 0.018890380859375, -0.0105133056640625, 0.0267333984375, -0.022613525390625, -0.013275146484375, -0.00829315185546875, -0.00901031494140625, -0.0301055908203125, -0.0665283203125, -0.01947021484375, 0.038726806640625, 0.041107177734375, -0.01947021484375, -0.0181732177734375, -0.046722412109375, 0.0361328125, -0.0102691650390625, 0.031707763671875, -0.0100250244140625, -0.0017194747924804688, 0.01168060302734375, 0.022552490234375, 0.022186279296875, -0.006450653076171875, 0.0145111083984375, 0.0240325927734375, -0.013885498046875, -0.0005159378051757812, -0.039337158203125, -0.0455322265625, 0.01312255859375, -0.04534912109375, -0.0316162109375, -0.0278472900390625, 0.007137298583984375, -0.0030117034912109375, 0.0192718505859375, -0.037078857421875, -0.00678253173828125, -0.0199432373046875, 0.007366180419921875, -0.0038738250732421875, -0.03662109375, 0.015716552734375, 0.0256195068359375, 0.035797119140625, -0.0025081634521484375, -0.01094818115234375, 0.0010099411010742188, 0.0273590087890625, 0.041961669921875, 0.01032257080078125, 0.00254058837890625, -0.0237274169921875, 0.00814056396484375, 0.011199951171875, 0.009796142578125, -0.0092010498046875, 0.049407958984375, -0.0102691650390625, -0.03875732421875, 0.034912109375, -0.004810333251953125, -0.03302001953125, 0.0765380859375, 0.0085296630859375, -0.0711669921875, -0.0183868408203125, 0.02935791015625, -0.03759765625, 0.0484619140625, -0.0031833648681640625, -0.054840087890625, 0.030670166015625, -0.005084991455078125, -0.012237548828125, 0.0115509033203125, -0.020599365234375, 0.0084381103515625, -0.048248291015625, -0.01502227783203125, 0.07696533203125, 0.07220458984375, 0.0012836456298828125, 0.036376953125, 0.0430908203125, -0.034881591796875, 0.0097198486328125, 0.005329132080078125, 0.040740966796875, -0.0208282470703125, -0.038055419921875, -0.0216827392578125, -0.02239990234375, -0.037689208984375, 0.013092041015625, 0.0035037994384765625, 0.0262908935546875, 0.0355224609375, -0.0174102783203125, -0.002460479736328125, 0.01514434814453125, 0.01580810546875, -0.035125732421875, 0.032958984375, -0.0099334716796875, 0.0107269287109375, -0.034332275390625, 0.07049560546875, -0.0234222412109375, 0.01226043701171875, 0.0096435546875, -0.008880615234375, -0.0185546875, 0.009979248046875, 0.049774169921875, 0.006717681884765625, 0.0018491744995117188, -0.0191802978515625, 0.0070037841796875, 0.008331298828125, 0.0259246826171875, 0.0176544189453125, -0.007419586181640625, 0.004283905029296875, -0.005496978759765625, -0.0013589859008789062, -0.010101318359375, -0.01554107666015625, 0.012908935546875, 0.0165252685546875, 0.0185546875, -0.0374755859375, -0.0421142578125, 0.033966064453125, 0.0222015380859375, -0.01470947265625, -0.00824737548828125, -0.0215301513671875, 0.049041748046875, -0.019744873046875, -0.0013704299926757812, 0.0307464599609375, -0.00653076171875, 0.052154541015625, -0.0009565353393554688, -0.01800537109375, -0.033477783203125, 0.015960693359375, -0.049163818359375, -0.0218505859375, 0.056610107421875, -0.04241943359375, 0.044677734375, -0.06396484375, -0.0027027130126953125, -0.0187530517578125, 0.013824462890625, 0.062744140625, 0.055816650390625, -0.08935546875, -0.00429534912109375, -0.00010514259338378906, -0.00997161865234375, -0.00029587745666503906, -0.01139068603515625, -0.050384521484375, -0.0128021240234375, 0.002437591552734375, 0.060821533203125, -0.017425537109375, 0.00208282470703125, -0.0171356201171875, -0.0220184326171875, 0.0031986236572265625, 0.084716796875, -0.00650787353515625, 0.0487060546875, 0.006275177001953125, 0.04168701171875, 0.020050048828125, 0.0247039794921875, 0.01049041748046875, -0.032958984375, -0.0160369873046875, -0.0175018310546875, 0.0140533447265625, 0.006374359130859375, 0.00983428955078125, 0.00913238525390625, 0.0279541015625, 0.01244354248046875, -0.0009183883666992188, 0.02056884765625, 0.006153106689453125, -0.0140838623046875, 0.0016736984252929688, 0.03973388671875, 0.01378631591796875, 0.008026123046875, -0.0279693603515625, -0.042022705078125, 0.0248870849609375, 0.00975799560546875, 0.0301055908203125, -0.01308441162109375, 0.00336456298828125, -0.0295562744140625, -0.05010986328125, 0.06689453125, 0.06463623046875, -0.00708770751953125, 0.036773681640625, 0.0033416748046875, 0.0066986083984375, 0.01702880859375, 0.0172882080078125, 0.0301055908203125, -0.01088714599609375, 0.07843017578125, 0.0002586841583251953, -0.019622802734375, 0.05926513671875, -0.036865234375, 0.0311279296875, 0.03656005859375, 0.04351806640625, -0.055999755859375, 0.0101165771484375, 0.01087188720703125, -0.0117034912109375, 0.018890380859375, 0.01163482666015625, 0.0255126953125, 0.020355224609375, -0.003795623779296875, 0.0198822021484375, 0.00803375244140625, 0.0250244140625, 0.00917816162109375, -0.01165008544921875, 0.0027942657470703125, 0.033416748046875, -0.0012159347534179688, -0.0182342529296875, -0.017425537109375, 0.0135650634765625, -0.00923919677734375, 0.0177001953125, 0.0209503173828125, 0.025543212890625, 0.003269195556640625, -0.029510498046875, 0.03289794921875, -0.031280517578125, -0.0361328125, 0.0298919677734375, 0.03936767578125, 0.0384521484375, 0.06280517578125, 0.0013294219970703125, 0.0193634033203125, 0.053924560546875, -0.01715087890625, 0.054473876953125, -0.0281829833984375, -0.004047393798828125, 0.0272979736328125, -0.045806884765625, -0.01445770263671875, 0.0009851455688476562, 0.00021517276763916016, -0.0135650634765625, 0.033660888671875, 0.0863037109375, -0.00826263427734375, -0.032562255859375, 0.0289764404296875, -0.0167236328125, -0.0307159423828125, -0.029296875, 0.00652313232421875, -0.06640625, -0.004337310791015625, -0.0154571533203125, -0.015899658203125, -0.01099395751953125, -0.036376953125, -0.0687255859375, 0.115478515625, 0.009552001953125, 0.046051025390625, 0.0321044921875, 0.03851318359375, -0.047088623046875, 0.01000213623046875, -0.01812744140625, 0.045623779296875, 0.0005936622619628906, 0.0201568603515625, -0.04949951171875, -0.00768280029296875, -0.006183624267578125, 0.046478271484375, 0.060028076171875, 0.0050201416015625, -0.01390838623046875, -0.021026611328125, 0.01702880859375, -0.007678985595703125, -0.03857421875, 0.03662109375, 0.0206756591796875, 0.056121826171875, 0.060943603515625, -0.024627685546875, 0.0435791015625, -0.030181884765625, -0.0175323486328125, 0.0423583984375, -0.003810882568359375, -0.006488800048828125, -0.045318603515625, 0.0265655517578125, -0.01654052734375, -0.0257720947265625, 0.004489898681640625, 0.023162841796875, -0.0013437271118164062, 0.0350341796875, 0.04931640625, -0.0330810546875, -0.041473388671875, -0.0230255126953125, 0.031524658203125, 0.00591278076171875, 0.00672149658203125, 0.01166534423828125, 0.0211029052734375, 0.023193359375, -0.07666015625, -0.005527496337890625, -0.004055023193359375, -0.036041259765625, 0.0950927734375, 0.0170440673828125, 0.032684326171875, -0.0311126708984375, 0.020599365234375, 0.006565093994140625, 0.08343505859375, -0.058441162109375, -0.0550537109375, -0.0097808837890625, -0.0037708282470703125, 0.0156402587890625, 0.0202484130859375, 0.00806427001953125, 0.0433349609375, 0.065673828125, -0.05328369140625, 0.01192474365234375, 0.04864501953125, -0.0142974853515625, -0.0130462646484375, 0.0015659332275390625, -0.015960693359375, 0.022064208984375, -0.0203399658203125, -0.031951904296875, -0.006717681884765625, 0.055084228515625, 0.0179595947265625, 0.024383544921875, -0.0278778076171875, -0.0260162353515625, -0.031585693359375, 0.056304931640625, -0.0269927978515625, 0.04638671875, -0.046295166015625, -0.031707763671875, -0.01001739501953125, 0.038970947265625, 0.026519775390625, 0.023773193359375, 0.0177154541015625, -0.0086669921875, -0.00858306884765625, 0.0153350830078125, 0.0202789306640625, -0.0167694091796875, 0.021026611328125, -0.039093017578125, -0.0214691162109375, -0.0205535888671875, -0.034942626953125, 0.0139007568359375, -0.035308837890625, 0.0160369873046875, -0.038543701171875, 0.00905609130859375, -0.0025196075439453125, -0.033294677734375, 0.08404541015625, -0.0297393798828125, 0.0821533203125, -0.023529052734375, -0.030853271484375, -0.01114654541015625, -0.00601959228515625, -0.0615234375, 0.009613037109375, 0.044403076171875, -0.00966644287109375, 0.007114410400390625, 0.0059661865234375, 0.02294921875, 0.016204833984375, -0.038299560546875, 0.0001811981201171875, -0.0267791748046875, 0.0276947021484375, -0.009552001953125, -0.00777435302734375, -0.0022983551025390625, -0.0218963623046875, 0.0142822265625, 0.0177001953125, 0.054412841796875, -0.0254669189453125, 0.02362060546875, 0.01372528076171875, -0.00284576416015625, -0.00911712646484375, 0.01448822021484375, -0.0020999908447265625, -0.03436279296875, -0.01282501220703125, 0.002773284912109375, -0.0426025390625, 0.0157623291015625, 0.0207977294921875, 0.01108551025390625, 0.0260009765625, -0.0211639404296875, 0.0178070068359375, 0.0014352798461914062, 0.050140380859375, -0.02191162109375, -0.019775390625, -0.05523681640625, -0.0158538818359375, 0.039459228515625, 0.007236480712890625, -0.043212890625, 0.060546875, -0.0248870849609375, -0.0112152099609375, 0.0143585205078125, -0.07562255859375, 0.004802703857421875, 0.0419921875, -0.02410888671875, 0.0024013519287109375, 0.0011768341064453125, -0.022796630859375, -0.0014209747314453125, 0.01282501220703125, 0.0135040283203125, -0.0010385513305664062, -0.0054779052734375, 0.0008063316345214844, -0.0892333984375, -0.02252197265625, -0.049957275390625, -0.019775390625, -0.027069091796875, 0.043243408203125, -0.0005850791931152344, -0.0625, -0.0399169921875, -0.0517578125, -0.0216522216796875, 0.0111541748046875, -0.044677734375, -0.0782470703125, -0.02752685546875, 0.00920867919921875, 0.0030117034912109375, -0.0157012939453125, -0.05096435546875, 0.0218963623046875, -0.0282135009765625, 0.032501220703125, -0.037445068359375, -0.017974853515625, 0.0160675048828125, 0.018585205078125, -0.0195159912109375, -0.00139617919921875, -0.02099609375, 0.0015687942504882812, 0.0269317626953125, 0.0279541015625, 0.061004638671875, -0.01430511474609375, -0.044677734375, 0.0246734619140625, -0.0009660720825195312, 0.08856201171875, -0.053863525390625, 0.007671356201171875, 0.032562255859375, -0.0251617431640625, -0.044403076171875, -0.0153656005859375, 0.03424072265625, -0.03411865234375, -0.03900146484375, 0.00971221923828125, -0.0215606689453125, -0.00612640380859375, -0.05291748046875, -0.08123779296875, 0.05126953125, -0.00014150142669677734, -0.04351806640625, -0.0316162109375, 0.00862884521484375, 0.01322174072265625, 0.01224517822265625, -0.01320648193359375, -0.0001589059829711914, -0.06951904296875, -0.01215362548828125, 0.0215911865234375, -0.00435638427734375, 0.0227508544921875, 0.037567138671875, -0.0697021484375, 0.0053253173828125, -0.03497314453125, -0.0202178955078125, 0.004947662353515625, -0.01287078857421875, 0.01381683349609375, -0.0026092529296875, -0.0291290283203125, 0.004543304443359375, 0.0224761962890625, -0.0033664703369140625, -0.017303466796875, -0.00820159912109375, 0.01763916015625, 0.0158538818359375, 0.056854248046875, 0.01727294921875, -0.00208282470703125, -0.041473388671875, -0.037567138671875, -0.0164947509765625, -0.0287017822265625, -0.032073974609375, 0.03326416015625, -0.09844970703125, -0.0182647705078125, 0.010833740234375, -0.00142669677734375, -0.0170135498046875, -0.01348114013671875, -0.0298004150390625, -0.002399444580078125, 0.01273345947265625, 0.01073455810546875, -0.007904052734375, -0.0183563232421875, 0.0697021484375, -0.03057861328125, -0.01052093505859375, 0.004241943359375, 0.02801513671875, 0.0178680419921875, -0.0244903564453125, -0.003887176513671875, 0.0284423828125, -0.009979248046875, -0.00007301568984985352, 0.01332855224609375, -0.037384033203125, 0.01305389404296875, 0.0006923675537109375, -0.035919189453125, 0.027984619140625, 0.002727508544921875, 0.0215301513671875, -0.0133209228515625, 0.050537109375, 0.033721923828125, 0.034515380859375, 0.0239105224609375, -0.004322052001953125, 0.006458282470703125, 0.0157318115234375, 0.026123046875, -0.033721923828125, 0.0255126953125, -0.03521728515625, 0.004047393798828125, 0.01091766357421875, -0.0165557861328125, -0.0262451171875, 0.01000213623046875, -0.01085662841796875, -0.0088043212890625, 0.01174163818359375 ]
6236308d29fecf8c7b48bfd9622b5239f82b4710
Wordpress Stackexchange Q: Custom ID for certain menu item? I'm displaying Wordpress menu using this function: wp_nav_menu( $args ); Menu is set in wp-admin/nav-menus.php. Can I somehow attach ID of my choice to one of the items? I want the menu to look like: [ Link 1 ] [ Link 2] [ LOGO (that is Link 3 also ] [ Link 4 ] [ Link 5] I know I could style ID of the logo link such as "menu-item-123", but I'd love to change it to "logo" or something that has a meaning :) Thanks. A: Simply use the "Class"-field for styling. Give it a unique class, target it in your CSS file. Done.
Q: Custom ID for certain menu item? I'm displaying Wordpress menu using this function: wp_nav_menu( $args ); Menu is set in wp-admin/nav-menus.php. Can I somehow attach ID of my choice to one of the items? I want the menu to look like: [ Link 1 ] [ Link 2] [ LOGO (that is Link 3 also ] [ Link 4 ] [ Link 5] I know I could style ID of the logo link such as "menu-item-123", but I'd love to change it to "logo" or something that has a meaning :) Thanks. A: Simply use the "Class"-field for styling. Give it a unique class, target it in your CSS file. Done.
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:424749", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/68062" }
[ 0.0645751953125, 0.0055694580078125, 0.02801513671875, 0.037750244140625, 0.0130157470703125, -0.035369873046875, 0.1021728515625, -0.06756591796875, -0.050994873046875, -0.0100860595703125, -0.024993896484375, 0.00913238525390625, -0.0667724609375, -0.0281524658203125, 0.0183868408203125, -0.085693359375, 0.0251312255859375, 0.0165252685546875, 0.034332275390625, -0.00992584228515625, 0.013824462890625, 0.002590179443359375, 0.0303955078125, 0.03192138671875, 0.0445556640625, -0.06903076171875, 0.020355224609375, -0.0067901611328125, 0.038848876953125, 0.006591796875, 0.0231475830078125, -0.0180511474609375, -0.0002522468566894531, 0.005329132080078125, 0.0419921875, 0.0036468505859375, 0.046142578125, -0.0000985860824584961, 0.040313720703125, 0.0146484375, 0.0438232421875, -0.0289306640625, 0.01270294189453125, -0.0016965866088867188, 0.00907135009765625, -0.0283050537109375, 0.0135040283203125, -0.056793212890625, 0.005603790283203125, -0.03619384765625, 0.00732421875, 0.027557373046875, 0.0164794921875, 0.00772857666015625, -0.00428009033203125, 0.01983642578125, 0.001922607421875, -0.037841796875, 0.018096923828125, 0.018585205078125, 0.0010166168212890625, -0.0223846435546875, 0.024200439453125, -0.01494598388671875, 0.01189422607421875, 0.0080718994140625, 0.0487060546875, 0.013427734375, -0.03973388671875, -0.00830841064453125, 0.022369384765625, -0.006290435791015625, -0.009552001953125, -0.0164337158203125, -0.03668212890625, -0.0247955322265625, 0.033203125, -0.050201416015625, -0.0044403076171875, 0.01264190673828125, 0.03424072265625, -0.017822265625, -0.0231170654296875, 0.03118896484375, -0.0022602081298828125, 0.048828125, -0.01129913330078125, -0.032684326171875, 0.020233154296875, -0.0345458984375, 0.001255035400390625, -0.016632080078125, 0.02020263671875, -0.000031948089599609375, -0.039031982421875, -0.019683837890625, 0.017120361328125, 0.06298828125, -0.01204681396484375, 0.0428466796875, -0.0158233642578125, -0.02545166015625, 0.0677490234375, -0.060333251953125, -0.0239715576171875, 0.04644775390625, 0.04498291015625, 0.047027587890625, 0.01092529296875, -0.00203704833984375, -0.001495361328125, 0.02630615234375, -0.01114654541015625, -0.016357421875, -0.027618408203125, 0.007228851318359375, -0.030487060546875, -0.00830841064453125, -0.0104827880859375, -0.01151275634765625, 0.00029206275939941406, 0.0268402099609375, 0.0295867919921875, 0.0176849365234375, -0.00209808349609375, 0.018341064453125, 0.012725830078125, -0.06396484375, -0.027496337890625, -0.0103912353515625, -0.0302886962890625, 0.01422882080078125, 0.10211181640625, 0.08929443359375, 0.0418701171875, -0.0130615234375, 0.0248870849609375, -0.0114898681640625, 0.0027256011962890625, -0.006134033203125, 0.024627685546875, 0.00466156005859375, 0.01197052001953125, -0.004245758056640625, -0.0063323974609375, 0.0215301513671875, 0.00853729248046875, 0.024261474609375, 0.003238677978515625, -0.060516357421875, 0.0254364013671875, -0.052947998046875, 0.02337646484375, 0.0141143798828125, -0.005779266357421875, 0.0103607177734375, 0.03472900390625, -0.015838623046875, -0.041168212890625, -0.0118865966796875, -0.03375244140625, -0.0017490386962890625, 0.02740478515625, -0.0240478515625, -0.019317626953125, 0.0241546630859375, -0.01296234130859375, 0.00279998779296875, 0.01739501953125, 0.031463623046875, -0.0036334991455078125, -0.008331298828125, 0.0031490325927734375, 0.022430419921875, -0.0029926300048828125, 0.0132904052734375, -0.0017156600952148438, 0.0306549072265625, 0.01666259765625, 0.05975341796875, 0.0165557861328125, -0.03759765625, 0.04034423828125, 0.005092620849609375, -0.05975341796875, 0.03253173828125, 0.004730224609375, 0.10302734375, 0.042266845703125, 0.0341796875, 0.0059356689453125, -0.043670654296875, -0.048980712890625, -0.01081085205078125, -0.016845703125, -0.00768280029296875, -0.01261138916015625, 0.000518798828125, -0.01253509521484375, 0.02423095703125, -0.01294708251953125, 0.00971221923828125, -0.025787353515625, 0.018646240234375, -0.0634765625, -0.005771636962890625, -0.020294189453125, 0.03826904296875, 0.005626678466796875, 0.00377655029296875, -0.0003376007080078125, -0.01177215576171875, 0.028167724609375, -0.07037353515625, -0.041900634765625, 0.0095672607421875, -0.0042724609375, -0.0010013580322265625, -0.035675048828125, -0.0030269622802734375, -0.0565185546875, -0.0036373138427734375, -0.052642822265625, 0.022216796875, 0.0225372314453125, -0.0222320556640625, -0.0200653076171875, -0.0296783447265625, 0.01038360595703125, 0.0037631988525390625, -0.02587890625, 0.020538330078125, 0.06170654296875, 0.020599365234375, -0.0193023681640625, 0.00013840198516845703, 0.0011568069458007812, -0.08843994140625, 0.0030231475830078125, 0.05401611328125, 0.04254150390625, -0.007099151611328125, -0.0080108642578125, -0.010986328125, 0.0496826171875, -0.0011835098266601562, 0.03643798828125, -0.036529541015625, -0.01313018798828125, -0.010101318359375, 0.038543701171875, -0.00460052490234375, 0.041900634765625, -0.0129547119140625, 0.035858154296875, 0.0270538330078125, -0.0228118896484375, -0.0128021240234375, 0.009429931640625, 0.007015228271484375, -0.009124755859375, 0.027252197265625, 0.026611328125, -0.0003809928894042969, 0.0013751983642578125, 0.032501220703125, 0.024383544921875, 0.0229644775390625, -0.0540771484375, 0.0138702392578125, 0.03314208984375, 0.0626220703125, -0.0091400146484375, 0.00939178466796875, 0.0426025390625, -0.0182037353515625, -0.0238037109375, -0.0038700103759765625, 0.0196533203125, -0.0115966796875, -0.019927978515625, 0.027008056640625, 0.018463134765625, -0.02008056640625, -0.01287841796875, -0.05889892578125, 0.019989013671875, -0.020843505859375, -0.0282135009765625, -0.01343536376953125, 0.0197601318359375, 0.0272979736328125, -0.01849365234375, 0.0077667236328125, -0.0013647079467773438, -0.0077972412109375, 0.04803466796875, -0.00214385986328125, 0.0188751220703125, -0.026885986328125, 0.0223388671875, 0.04095458984375, -0.025634765625, -0.0011463165283203125, 0.003726959228515625, 0.00753021240234375, 0.0024623870849609375, 0.0201568603515625, 0.010772705078125, -0.0228424072265625, -0.0105133056640625, 0.0200347900390625, 0.01424407958984375, 0.039794921875, -0.02862548828125, -0.05255126953125, -0.02362060546875, -0.005535125732421875, -0.08795166015625, -0.08355712890625, 0.0274505615234375, 0.0013875961303710938, 0.0186004638671875, 0.00882720947265625, 0.007205963134765625, -0.027069091796875, 0.0213775634765625, 0.0032329559326171875, 0.013397216796875, -0.042236328125, -0.024444580078125, -0.0364990234375, -0.06060791015625, -0.0040283203125, 0.0066375732421875, 0.01219940185546875, 0.0002970695495605469, 0.0081634521484375, -0.002246856689453125, -0.0125579833984375, 0.03302001953125, 0.0312042236328125, 0.0162200927734375, -0.00757598876953125, 0.0239410400390625, -0.0662841796875, -0.0180511474609375, 0.0000374913215637207, 0.042755126953125, 0.00980377197265625, 0.00461578369140625, 0.008270263671875, -0.0288848876953125, 0.0201873779296875, 0.008544921875, -0.00640869140625, 0.041046142578125, 0.070556640625, 0.040924072265625, 0.0013704299926757812, -0.03094482421875, -0.026641845703125, -0.040130615234375, 0.041107177734375, 0.01424407958984375, 0.004360198974609375, -0.03326416015625, 0.053436279296875, 0.0247802734375, -0.0073394775390625, -0.0004901885986328125, -0.0182647705078125, 0.034210205078125, 0.008056640625, 0.036163330078125, -0.0205535888671875, 0.033294677734375, -0.01041412353515625, 0.00031566619873046875, 0.0030078887939453125, 0.00495147705078125, -0.01290130615234375, -0.0088653564453125, -0.05859375, -0.06512451171875, 0.045013427734375, -0.0233306884765625, 0.0217437744140625, -0.02862548828125, -0.036102294921875, 0.0097198486328125, 0.10040283203125, -0.03680419921875, -0.033355712890625, -0.0005774497985839844, 0.01493072509765625, 0.010345458984375, -0.0009169578552246094, -0.016693115234375, -0.043670654296875, -0.09515380859375, 0.047454833984375, 0.01514434814453125, -0.0190277099609375, -0.041595458984375, 0.051788330078125, -0.0762939453125, -0.0271453857421875, 0.04425048828125, -0.0274810791015625, -0.0016336441040039062, 0.044525146484375, 0.0005054473876953125, -0.006229400634765625, -0.051513671875, 0.00196075439453125, -0.05816650390625, -0.0093231201171875, -0.0513916015625, 0.06781005859375, 0.044525146484375, -0.0321044921875, 0.024200439453125, 0.057159423828125, 0.0306396484375, 0.0250091552734375, 0.011993408203125, 0.0017976760864257812, -0.01015472412109375, -0.02227783203125, 0.0018663406372070312, -0.0399169921875, -0.0157470703125, -0.0357666015625, -0.06951904296875, 0.006317138671875, 0.00568389892578125, 0.0428466796875, 0.041473388671875, -0.0217132568359375, -0.053466796875, -0.040985107421875, 0.0014047622680664062, 0.033416748046875, 0.0173187255859375, -0.00043320655822753906, -0.055511474609375, -0.06048583984375, 0.0237274169921875, -0.017425537109375, -0.01236724853515625, 0.006809234619140625, 0.048126220703125, 0.0321044921875, -0.01473236083984375, 0.0084381103515625, 0.0053558349609375, 0.032440185546875, -0.0161285400390625, 0.03594970703125, 0.005748748779296875, -0.0221405029296875, 0.059234619140625, 0.004150390625, -0.0007052421569824219, 0.00679779052734375, 0.0631103515625, 0.00933074951171875, -0.014862060546875, 0.0305938720703125, -0.0103912353515625, -0.045196533203125, 0.03167724609375, 0.004314422607421875, -0.053955078125, -0.026885986328125, 0.051177978515625, -0.00249481201171875, 0.020263671875, -0.04229736328125, -0.0020236968994140625, 0.006145477294921875, 0.005382537841796875, 0.037139892578125, 0.040252685546875, -0.0104217529296875, 0.007465362548828125, 0.0205078125, -0.0072479248046875, -0.005157470703125, -0.0016307830810546875, -0.0114593505859375, 0.01506805419921875, -0.00841522216796875, -0.018157958984375, -0.01329803466796875, -0.00971221923828125, 0.0943603515625, 0.045318603515625, -0.0157012939453125, -0.0162353515625, -0.0021228790283203125, -0.006313323974609375, -0.024017333984375, 0.0172576904296875, 0.0267791748046875, -0.01354217529296875, 0.0030422210693359375, -0.014617919921875, -0.038970947265625, -0.005161285400390625, -0.025390625, 0.0026092529296875, 0.019195556640625, -0.0228424072265625, 0.036529541015625, 0.019012451171875, 0.04168701171875, 0.00012493133544921875, -0.034576416015625, 0.01934814453125, 0.01155853271484375, 0.03668212890625, 0.0155181884765625, 0.00960540771484375, -0.00884246826171875, 0.000194549560546875, 0.0014944076538085938, -0.0263214111328125, -0.0009617805480957031, -0.0009212493896484375, 0.032806396484375, -0.00171661376953125, 0.000873565673828125, 0.0120086669921875, -0.040496826171875, 0.0004220008850097656, 0.0482177734375, -0.05877685546875, -0.0787353515625, -0.033355712890625, 0.006343841552734375, 0.0506591796875, -0.055999755859375, -0.004375457763671875, -0.01947021484375, -0.015472412109375, 0.00853729248046875, -0.0377197265625, -0.02081298828125, 0.0089111328125, 0.0179290771484375, -0.0104522705078125, 0.0158233642578125, 0.0086822509765625, -0.0831298828125, -0.047943115234375, -0.001926422119140625, 0.00832366943359375, 0.035125732421875, -0.055938720703125, 0.059783935546875, -0.0164337158203125, -0.025299072265625, 0.0077972412109375, 0.037261962890625, 0.0225677490234375, 0.0285797119140625, -0.035675048828125, 0.0026950836181640625, -0.00925445556640625, 0.019927978515625, 0.025146484375, -0.052978515625, -0.00605010986328125, -0.052001953125, -0.01332855224609375, 0.0204315185546875, 0.0088043212890625, 0.0212554931640625, -0.0193939208984375, 0.0292205810546875, -0.0014429092407226562, 0.021331787109375, -0.0103759765625, 0.0133209228515625, 0.0178375244140625, 0.01079559326171875, 0.00449371337890625, -0.01485443115234375, -0.0158843994140625, -0.0137481689453125, -0.006397247314453125, -0.01025390625, -0.0031642913818359375, -0.02392578125, 0.00864410400390625, 0.0294647216796875, 0.0731201171875, 0.0012569427490234375, 0.06427001953125, -0.032623291015625, 0.00415802001953125, -0.020538330078125, -0.006977081298828125, -0.08135986328125, 0.0163726806640625, 0.030242919921875, -0.0308837890625, 0.0143585205078125, 0.03436279296875, 0.03680419921875, -0.013519287109375, -0.0186004638671875, 0.00977325439453125, 0.018280029296875, -0.0701904296875, 0.05072021484375, 0.05218505859375, 0.018707275390625, 0.035125732421875, -0.00284576416015625, 0.006259918212890625, 0.008697509765625, -0.0018863677978515625, 0.01528167724609375, 0.0069122314453125, 0.0184173583984375, -0.01837158203125, 0.0016698837280273438, -0.00701141357421875, -0.019073486328125, 0.006053924560546875, 0.0191192626953125, 0.047088623046875, -0.051849365234375, 0.0192413330078125, -0.0144195556640625, -0.0016756057739257812, 0.07916259765625, 0.01050567626953125, -0.00485992431640625, -0.0003650188446044922, 0.011505126953125, -0.02301025390625, -0.02850341796875, 0.00199127197265625, 0.00525665283203125, 0.013427734375, -0.016448974609375, 0.011993408203125, -0.0130462646484375, -0.0229339599609375, -0.036407470703125, 0.0230255126953125, -0.01132965087890625, -0.032196044921875, -0.0139312744140625, 0.0283966064453125, -0.02239990234375, -0.043914794921875, 0.0682373046875, -0.0273895263671875, 0.034088134765625, 0.037384033203125, 0.0175933837890625, 0.014801025390625, 0.0355224609375, -0.004428863525390625, 0.02703857421875, -0.0158233642578125, -0.00012171268463134766, 0.0218658447265625, -0.0289154052734375, 0.00923919677734375, 0.0018205642700195312, -0.028564453125, 0.004405975341796875, -0.004222869873046875, -0.03106689453125, 0.005016326904296875, 0.033721923828125, 0.10418701171875, -0.0770263671875, -0.00528717041015625, 0.0276947021484375, 0.0205841064453125, -0.0097198486328125, -0.014984130859375, 0.01104736328125, -0.05328369140625, -0.01654052734375, -0.0031108856201171875, -0.0205078125, -0.01412200927734375, -0.0260009765625, -0.00971221923828125, 0.05718994140625, -0.022216796875, -0.022064208984375, 0.01398468017578125, 0.0302734375, 0.015106201171875, 0.040374755859375, -0.026580810546875, 0.03759765625, -0.0097503662109375, 0.026123046875, -0.00507354736328125, 0.0026302337646484375, 0.0272216796875, 0.00817108154296875, 0.026824951171875, 0.009918212890625, -0.040252685546875, 0.024261474609375, 0.0653076171875, 0.06341552734375, 0.038665771484375, 0.016998291015625, -0.039337158203125, -0.0096893310546875, -0.014129638671875, -0.01293182373046875, 0.023468017578125, -0.0228424072265625, -0.055267333984375, -0.022216796875, 0.0170135498046875, 0.0249176025390625, -0.0157623291015625, 0.03277587890625, -0.0423583984375, -0.004894256591796875, 0.0184783935546875, 0.008514404296875, -0.007602691650390625, 0.038726806640625, 0.0278778076171875, -0.05755615234375, -0.033905029296875, -0.038848876953125, 0.042755126953125, -0.0037994384765625, -0.017608642578125, 0.019287109375, 0.006664276123046875, -0.0134429931640625, 0.0162200927734375, -0.00650787353515625, 0.032806396484375, -0.00601959228515625, 0.03753662109375, 0.016326904296875, 0.0169677734375, -0.062744140625, -0.06927490234375, 0.045074462890625, 0.06964111328125, -0.022674560546875, -0.02178955078125, 0.0207061767578125, 0.01525115966796875, 0.0211944580078125, -0.007740020751953125, 0.04095458984375, -0.03778076171875, -0.0325927734375, -0.002532958984375, 0.04254150390625, 0.0565185546875, 0.0217742919921875, 0.024871826171875, 0.054656982421875, -0.098876953125, 0.027923583984375, -0.061798095703125, 0.056671142578125, 0.0160369873046875, 0.045989990234375, 0.01136016845703125, 0.04107666015625, 0.006999969482421875, -0.014190673828125, 0.0034999847412109375, 0.053924560546875, 0.008514404296875, -0.0086517333984375, 0.017059326171875, -0.035797119140625, -0.019927978515625, -0.003299713134765625, 0.01016998291015625, 0.0245819091796875, 0.043792724609375, -0.00439453125, -0.05230712890625, -0.0080718994140625, 0.017822265625, -0.04534912109375, -0.004150390625, -0.01335906982421875, 0.016571044921875, 0.051849365234375, 0.00580596923828125, -0.01354217529296875, 0.010498046875, 0.074951171875, -0.0115509033203125, 0.0223236083984375, 0.002483367919921875, -0.026031494140625, -0.019195556640625, -0.0127716064453125, 0.0183563232421875, 0.0123748779296875, -0.09002685546875, -0.0345458984375, -0.0082550048828125, -0.050506591796875, 0.058197021484375, 0.057952880859375, -0.016815185546875, 0.004909515380859375, -0.0030078887939453125, 0.00826263427734375, 0.0006103515625, -0.022705078125, 0.01348114013671875, 0.016143798828125, 0.0207977294921875, 0.033843994140625, -0.08526611328125, -0.0302276611328125, -0.020965576171875, 0.00153350830078125, 0.02783203125, -0.0107269287109375, 0.045806884765625, 0.0291290283203125, -0.059326171875, 0.0187225341796875, -0.047393798828125, -0.04644775390625, 0.036712646484375, 0.0242919921875, 0.000026106834411621094, 0.0003383159637451172, -0.06793212890625, 0.0256805419921875, 0.017364501953125, -0.016845703125, 0.026611328125, -0.00473785400390625, 0.00939178466796875, -0.01708984375, 0.0245208740234375, 0.0026912689208984375, -0.01190185546875, -0.01453399658203125, -0.01629638671875, 0.03717041015625, 0.032257080078125, -0.006282806396484375, 0.029571533203125, 0.01003265380859375, -0.011016845703125, -0.0012531280517578125, -0.0231781005859375, 0.0237884521484375, 0.04107666015625, -0.01288604736328125, -0.03009033203125, -0.025299072265625, -0.025360107421875, -0.011505126953125, -0.005062103271484375, -0.0057373046875, -0.014801025390625, -0.018035888671875, 0.064453125, 0.052978515625, 0.060333251953125, -0.0282745361328125, 0.02783203125, 0.04156494140625, 0.0031070709228515625, 0.0299072265625, -0.059326171875, -0.0484619140625, -0.0433349609375, 0.030487060546875, 0.04669189453125, 0.00632476806640625, -0.002742767333984375, -0.0921630859375, -0.006931304931640625, 0.024566650390625, 0.01505279541015625, -0.054595947265625, 0.0450439453125, -0.01213836669921875, 0.008575439453125, -0.0148468017578125, 0.004489898681640625, -0.00890350341796875, 0.00836181640625, -0.02337646484375, -0.043487548828125, -0.0306243896484375, 0.06884765625, -0.0276947021484375, 0.009185791015625, 0.016632080078125, -0.0280609130859375, 0.003971099853515625, 0.021728515625, 0.03460693359375, 0.07342529296875, 0.03314208984375, -0.031951904296875, -0.01491546630859375, 0.00891876220703125, 0.003810882568359375, -0.01081085205078125, 0.0246734619140625, -0.049163818359375, -0.029754638671875, 0.00879669189453125, -0.01369476318359375, -0.000052988529205322266, -0.049224853515625, -0.0753173828125, 0.03485107421875, 0.000023603439331054688, -0.045745849609375, -0.0280914306640625, 0.0279083251953125, -0.0166778564453125, -0.0186920166015625, -0.016998291015625, 0.0008516311645507812, 0.020416259765625, 0.02276611328125, 0.00004380941390991211, 0.04608154296875, -0.011932373046875, 0.022857666015625, -0.0207366943359375, 0.0287017822265625, 0.020416259765625, 0.0093231201171875, 0.0026721954345703125, -0.019989013671875, 0.0093231201171875, 0.00750732421875, -0.061248779296875, -0.05157470703125, -0.0158233642578125, 0.03521728515625, -0.006927490234375, -0.0284881591796875, -0.031524658203125, -0.0062408447265625, 0.031341552734375, 0.04876708984375, 0.005901336669921875, -0.019989013671875, 0.01203155517578125, -0.01239013671875, -0.01593017578125, -0.0207977294921875, 0.0015954971313476562, -0.049774169921875, -0.02423095703125, 0.0018768310546875, -0.036407470703125, 0.004180908203125, 0.035003662109375, -0.039398193359375, 0.0165557861328125, 0.037567138671875, -0.00382232666015625, -0.053436279296875, -0.006130218505859375, 0.06890869140625, -0.052947998046875, -0.00974273681640625, -0.00021219253540039062, 0.017913818359375, 0.023406982421875, -0.040435791015625, -0.02056884765625, -0.013671875, -0.031585693359375, 0.0274505615234375, -0.0241851806640625, 0.02142333984375, -0.0587158203125, -0.004886627197265625, -0.0311431884765625, 0.027191162109375, 0.0155792236328125, 0.0462646484375, -0.0206146240234375, 0.0008134841918945312, 0.019317626953125, 0.028961181640625, -0.00211334228515625, -0.018218994140625, -0.0087738037109375, 0.036895751953125, -0.0225830078125, -0.00955963134765625, -0.0156707763671875, -0.031219482421875, 0.00421905517578125, -0.01163482666015625, 0.0157012939453125, -0.0423583984375, 0.031646728515625, 0.005237579345703125, -0.002819061279296875, 0.036285400390625 ]
486086fd47657540e1b15fe532407cc085dde319
Wordpress Stackexchange Q: How to get the unfiltered excerpt, without [...] or auto-excerpting The standard way of getting an excerpt is to use the_excerpt() or get_the_excerpt() template tags. I am trying to get just the actual content of the Excerpt field. If there is an excerpt, I want to display it in full (without being abridged or appending [...]). If there is no excerpt, I don't want anything to be displayed. Is there a straightforward way to do this in Wordpress? Something like this: $real_excerpt = ??? if ( $real_excerpt ) { echo $real_excerpt; } // shouldn't show anything if there isn't a custom excerpt A: Why don't you use the global $post variable? It contains an object with the content as it is on the db row corresponding to that post. Here's how to use it: global $post; // If for some reason it's readily accessible, invoke it if($post->post_excerpt != '') { echo($post->post_excerpt); } Or: $my_post = get_post($post_id); if($my_post->post_excerpt != '') { echo($my_post->post_excerpt); } Very simple, but let us know if you're having trouble getting it working.
Q: How to get the unfiltered excerpt, without [...] or auto-excerpting The standard way of getting an excerpt is to use the_excerpt() or get_the_excerpt() template tags. I am trying to get just the actual content of the Excerpt field. If there is an excerpt, I want to display it in full (without being abridged or appending [...]). If there is no excerpt, I don't want anything to be displayed. Is there a straightforward way to do this in Wordpress? Something like this: $real_excerpt = ??? if ( $real_excerpt ) { echo $real_excerpt; } // shouldn't show anything if there isn't a custom excerpt A: Why don't you use the global $post variable? It contains an object with the content as it is on the db row corresponding to that post. Here's how to use it: global $post; // If for some reason it's readily accessible, invoke it if($post->post_excerpt != '') { echo($post->post_excerpt); } Or: $my_post = get_post($post_id); if($my_post->post_excerpt != '') { echo($my_post->post_excerpt); } Very simple, but let us know if you're having trouble getting it working. A: Tracing back: the_excerpt() When you look at the source of the_excerpt(), then you'll find the following function definition: function the_excerpt() { echo apply_filters('the_excerpt', get_the_excerpt()); } This means, that get_the_excerpt() holds the plain, unfiltered content. get_the_excerpt() When you then look at the source of get_the_excerpt(), you'll find the following: function get_the_excerpt( $deprecated = '' ) { if ( !empty( $deprecated ) ) _deprecated_argument( __FUNCTION__, '2.3' ); global $post; $output = $post->post_excerpt; if ( post_password_required($post) ) { $output = __('There is no excerpt because this is a protected post.'); return $output; } return apply_filters('get_the_excerpt', $output); } So there're again filters added to get_the_excerpt(). Default filters & wp_trim_excerpt() All the core filters, that are attached to something, can be found inside ~/wp-includes/default-filters.php. There you'll find (with WP version 3.4), the following filter: wp_trim_excerpt() on Line #147. The wp_trim_excerpt() function looks like the following from its inside: function wp_trim_excerpt($text = '') { $raw_excerpt = $text; if ( '' == $text ) { $text = get_the_content(''); $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]&gt;', $text); $excerpt_length = apply_filters('excerpt_length', 55); $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); } return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); } What are our options? You could use each of those functions with all their unwanted filters, by simply removing the filters. But this also means, that you'd be removing them from everything else as well. Calling the plain ->excerpt, gives you an excerpt in every case - except if there is none. Which means, that you can insert scripts and CDATA tags as explained in this answer, but will also have to deal with the post password check, as well as moving back in all the filters that you need.
wordpress
{ "language": "en", "length": 466, "provenance": "stackexchange_00019.jsonl.gz:424761", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/68092" }
[ 0.038482666015625, -0.0110626220703125, -0.00018548965454101562, 0.0110015869140625, -0.01107025146484375, -0.0313720703125, 0.0303192138671875, -0.0255889892578125, 0.006984710693359375, 0.015289306640625, -0.0310821533203125, 0.00921630859375, -0.01751708984375, -0.0151824951171875, -0.01462554931640625, -0.0279083251953125, 0.035980224609375, -0.026580810546875, 0.0250396728515625, -0.0035877227783203125, 0.033660888671875, 0.0004489421844482422, 0.0303192138671875, 0.0286865234375, 0.029571533203125, -0.01898193359375, 0.09442138671875, -0.0013380050659179688, -0.0004684925079345703, -0.016082763671875, 0.0289306640625, -0.027496337890625, 0.02264404296875, 0.0287017822265625, -0.05743408203125, -0.01397705078125, -0.043304443359375, 0.0245361328125, -0.007434844970703125, 0.01531219482421875, 0.00354766845703125, 0.0110321044921875, -0.06964111328125, -0.004680633544921875, -0.038604736328125, -0.048095703125, 0.01158905029296875, -0.0268096923828125, -0.0241546630859375, 0.011566162109375, 0.02880859375, 0.03326416015625, 0.032928466796875, 0.0120086669921875, 0.01538848876953125, 0.039642333984375, -0.00106048583984375, 0.01181793212890625, 0.041748046875, -0.0576171875, -0.0350341796875, -0.0126953125, 0.038421630859375, 0.0178680419921875, 0.016143798828125, -0.0091400146484375, 0.027557373046875, 0.0299224853515625, -0.05914306640625, 0.0014791488647460938, 0.040069580078125, -0.028167724609375, -0.01399993896484375, -0.049652099609375, -0.0013904571533203125, 0.05865478515625, -0.037567138671875, -0.0333251953125, -0.00690460205078125, 0.00751495361328125, -0.0208892822265625, 0.0051116943359375, -0.068359375, -0.02581787109375, 0.00315093994140625, -0.0024662017822265625, -0.01861572265625, -0.0015287399291992188, -0.01174163818359375, -0.018951416015625, -0.01282501220703125, -0.00630950927734375, -0.0028324127197265625, 0.00644683837890625, -0.026214599609375, -0.027435302734375, 0.0306549072265625, 0.05657958984375, -0.038787841796875, -0.01229095458984375, -0.005817413330078125, -0.0246429443359375, 0.062744140625, -0.062103271484375, 0.0160064697265625, 0.041748046875, -0.0037746429443359375, -0.0115203857421875, 0.0347900390625, 0.01287078857421875, 0.00333404541015625, 0.005146026611328125, -0.037353515625, -0.056182861328125, -0.02899169921875, 0.0594482421875, -0.03350830078125, -0.04803466796875, 0.0234527587890625, -0.0193328857421875, 0.0230865478515625, 0.0216217041015625, -0.002696990966796875, -0.0163421630859375, -0.00998687744140625, -0.0172882080078125, -0.014190673828125, -0.018218994140625, 0.027862548828125, 0.01763916015625, 0.00751495361328125, 0.00736236572265625, -0.0034084320068359375, -0.002994537353515625, -0.0124969482421875, -0.01451873779296875, 0.0028591156005859375, -0.00873565673828125, 0.01519775390625, 0.0064544677734375, -0.00954437255859375, -0.01751708984375, 0.0143585205078125, -0.00015914440155029297, -0.042694091796875, 0.03717041015625, 0.0198974609375, -0.021331787109375, -0.02880859375, 0.0013647079467773438, -0.10162353515625, 0.01282501220703125, 0.04339599609375, 0.00010472536087036133, -0.0517578125, -0.05975341796875, 0.025299072265625, -0.054229736328125, -0.00089263916015625, -0.0870361328125, 0.06768798828125, -0.0045318603515625, -0.039306640625, 0.0156097412109375, -0.0206756591796875, -0.0036182403564453125, -0.021240234375, -0.0017642974853515625, 0.020782470703125, 0.0404052734375, 0.0131378173828125, -0.0027256011962890625, 0.01432037353515625, 0.0093994140625, -0.006961822509765625, -0.00649261474609375, -0.014862060546875, -0.019073486328125, 0.01316070556640625, 0.0301055908203125, 0.0003821849822998047, -0.0062713623046875, 0.00936126708984375, 0.002155303955078125, -0.03680419921875, 0.02423095703125, 0.01557159423828125, 0.07244873046875, 0.0178070068359375, 0.023651123046875, -0.04193115234375, -0.015228271484375, -0.0296173095703125, 0.001430511474609375, -0.01549530029296875, -0.039031982421875, 0.0103759765625, -0.0259246826171875, -0.010528564453125, 0.0523681640625, 0.0570068359375, -0.03076171875, 0.0268707275390625, -0.001621246337890625, -0.054718017578125, -0.0001373291015625, -0.01519012451171875, 0.0114593505859375, -0.039398193359375, 0.02032470703125, 0.04632568359375, 0.01419830322265625, -0.0287017822265625, -0.0265350341796875, 0.005962371826171875, 0.021270751953125, -0.019561767578125, 0.03118896484375, -0.002712249755859375, 0.0272979736328125, 0.0264739990234375, -0.0170135498046875, 0.023468017578125, 0.01358795166015625, 0.09014892578125, -0.041351318359375, 0.0167236328125, -0.0423583984375, 0.07635498046875, -0.0112762451171875, -0.0228424072265625, 0.023834228515625, 0.019378662109375, 0.0140380859375, -0.025909423828125, 0.0104827880859375, -0.005840301513671875, -0.032257080078125, -0.0080413818359375, 0.045440673828125, 0.05584716796875, 0.041046142578125, 0.01273345947265625, -0.0396728515625, 0.08319091796875, -0.047943115234375, 0.007801055908203125, -0.03643798828125, 0.00669097900390625, 0.024627685546875, 0.0062255859375, -0.019775390625, 0.0288848876953125, 0.0026035308837890625, -0.010650634765625, 0.03570556640625, 0.00969696044921875, 0.04644775390625, -0.03656005859375, 0.0194091796875, -0.01531219482421875, 0.022308349609375, 0.012115478515625, -0.015899658203125, 0.00905609130859375, 0.042236328125, 0.03369140625, 0.034912109375, -0.049224853515625, 0.00958251953125, 0.022430419921875, 0.07464599609375, 0.0163421630859375, -0.00362396240234375, -0.0281829833984375, 0.0021762847900390625, -0.009552001953125, -0.0038661956787109375, 0.0265045166015625, -0.0162353515625, 0.0021762847900390625, 0.017791748046875, 0.01020050048828125, -0.01309967041015625, 0.030975341796875, -0.04107666015625, -0.0056304931640625, -0.0179443359375, 0.00972747802734375, -0.00179290771484375, 0.0248260498046875, 0.032928466796875, -0.01227569580078125, 0.023162841796875, -0.01111602783203125, -0.0122833251953125, 0.010833740234375, -0.0672607421875, 0.068603515625, -0.063232421875, 0.05712890625, 0.0634765625, -0.0234832763671875, 0.03076171875, 0.0064697265625, -0.01849365234375, 0.011749267578125, -0.0021076202392578125, -0.0175323486328125, 0.00843048095703125, -0.0654296875, 0.031585693359375, 0.020355224609375, 0.0689697265625, -0.029541015625, -0.0592041015625, -0.00957489013671875, 0.0259857177734375, -0.082275390625, -0.03961181640625, 0.003810882568359375, -0.068359375, -0.027618408203125, -0.0087738037109375, -0.049163818359375, 0.00931549072265625, 0.018798828125, -0.0004124641418457031, 0.06610107421875, -0.036834716796875, -0.0784912109375, -0.0122833251953125, -0.1163330078125, -0.00284576416015625, 0.00910186767578125, 0.02801513671875, -0.00286865234375, 0.0478515625, 0.00608062744140625, -0.03564453125, -0.00815582275390625, 0.00787353515625, -0.0274810791015625, -0.0181427001953125, 0.018768310546875, 0.0183258056640625, 0.01361846923828125, 0.0193328857421875, -0.01067352294921875, 0.0173797607421875, -0.0265960693359375, -0.0491943359375, -0.006195068359375, 0.00649261474609375, 0.026275634765625, -0.000644683837890625, -0.0010280609130859375, 0.03936767578125, 0.040771484375, -0.014129638671875, -0.048370361328125, -0.0311126708984375, -0.0771484375, -0.001689910888671875, 0.07427978515625, 0.0190887451171875, -0.052520751953125, 0.0162506103515625, -0.019317626953125, 0.0023136138916015625, 0.0220794677734375, -0.024444580078125, 0.033416748046875, -0.012603759765625, -0.0265350341796875, 0.00598907470703125, 0.00232696533203125, -0.00616455078125, 0.0119476318359375, -0.001544952392578125, 0.041595458984375, 0.00045037269592285156, -0.00360870361328125, -0.031494140625, -0.052001953125, 0.0364990234375, -0.01447296142578125, -0.00508880615234375, -0.01152801513671875, -0.0355224609375, -0.0016393661499023438, 0.060455322265625, -0.037506103515625, -0.031646728515625, 0.0190277099609375, 0.0149688720703125, 0.0109405517578125, -0.042510986328125, -0.01128387451171875, -0.020172119140625, -0.049774169921875, -0.0014982223510742188, -0.0274505615234375, -0.0227508544921875, -0.02630615234375, -0.0004096031188964844, -0.035308837890625, -0.0218505859375, 0.045501708984375, -0.0229034423828125, 0.004573822021484375, 0.0198516845703125, -0.01535797119140625, -0.0031948089599609375, -0.040435791015625, -0.0097503662109375, -0.05023193359375, 0.002231597900390625, -0.0007328987121582031, 0.037109375, -0.0039520263671875, 0.019012451171875, -0.00982666015625, 0.027618408203125, 0.0200653076171875, -0.0169219970703125, -0.0038909912109375, -0.0116424560546875, -0.009979248046875, -0.007110595703125, -0.0024967193603515625, -0.04290771484375, -0.00655364990234375, -0.034637451171875, -0.00888824462890625, -0.01557159423828125, -0.043609619140625, 0.0240631103515625, -0.01483154296875, -0.0019464492797851562, -0.0161895751953125, -0.006683349609375, -0.00775909423828125, 0.004730224609375, -0.0135040283203125, -0.01215362548828125, 0.02545166015625, -0.033447265625, 0.04669189453125, 0.0679931640625, -0.0382080078125, -0.0096588134765625, 0.0350341796875, 0.033050537109375, -0.04229736328125, -0.033050537109375, 0.034576416015625, 0.045166015625, 0.00569915771484375, 0.05523681640625, 0.035125732421875, -0.020660400390625, 0.0704345703125, 0.03240966796875, -0.0111236572265625, -0.00936126708984375, 0.028717041015625, 0.005512237548828125, -0.010040283203125, 0.01247406005859375, -0.013916015625, 0.035186767578125, 0.005615234375, -0.00814056396484375, 0.00885772705078125, 0.028350830078125, 0.0447998046875, -0.034759521484375, 0.0286407470703125, -0.0256805419921875, 0.005245208740234375, -0.01490020751953125, 0.047637939453125, 0.015380859375, 0.034454345703125, 0.00970458984375, -0.01427459716796875, 0.0173797607421875, 0.0233612060546875, -0.003391265869140625, 0.002132415771484375, -0.0013589859008789062, 0.027313232421875, 0.0207672119140625, -0.004383087158203125, 0.0010118484497070312, -0.0073089599609375, -0.000774383544921875, -0.043670654296875, -0.066162109375, -0.028106689453125, -0.009124755859375, 0.038482666015625, 0.06573486328125, -0.0132293701171875, 0.011932373046875, 0.0516357421875, -0.00716400146484375, 0.002208709716796875, 0.035003662109375, 0.033416748046875, -0.021575927734375, 0.0176849365234375, -0.0008673667907714844, 0.00017368793487548828, 0.0104217529296875, 0.10028076171875, -0.064453125, 0.05584716796875, -0.003955841064453125, 0.032318115234375, -0.001377105712890625, 0.048583984375, 0.0218963623046875, -0.00897979736328125, -0.007297515869140625, 0.0258636474609375, -0.0229644775390625, -0.005062103271484375, -0.0235748291015625, 0.042938232421875, 0.0216827392578125, -0.0509033203125, -0.003452301025390625, -0.0029144287109375, -0.01158905029296875, -0.0239715576171875, 0.056732177734375, 0.01047515869140625, -0.0236968994140625, -0.061370849609375, -0.0240020751953125, 0.053131103515625, 0.01143646240234375, -0.026824951171875, 0.037384033203125, -0.019683837890625, -0.005100250244140625, 0.021087646484375, -0.05419921875, 0.0147857666015625, 0.0280914306640625, 0.0285491943359375, -0.031005859375, -0.0289154052734375, 0.046356201171875, 0.026885986328125, -0.01039886474609375, -0.00864410400390625, 0.062408447265625, -0.0190887451171875, 0.0196990966796875, -0.0305633544921875, 0.0179443359375, -0.06622314453125, -0.005153656005859375, 0.0692138671875, 0.055938720703125, -0.057647705078125, 0.0030765533447265625, -0.044036865234375, -0.01384735107421875, -0.0086669921875, -0.031280517578125, -0.044342041015625, -0.00482940673828125, -0.0272369384765625, -0.006076812744140625, 0.0014209747314453125, 0.01171875, -0.0006346702575683594, 0.041473388671875, 0.002338409423828125, 0.0247650146484375, 0.019287109375, 0.0196380615234375, -0.0012922286987304688, 0.065185546875, 0.02496337890625, 0.00617218017578125, -0.0301971435546875, -0.037445068359375, -0.01947021484375, -0.041107177734375, 0.0291290283203125, -0.0071563720703125, 0.0228729248046875, 0.0164947509765625, 0.0147552490234375, 0.0287017822265625, -0.056243896484375, -0.00154876708984375, -0.004100799560546875, -0.01947021484375, 0.03619384765625, 0.044097900390625, -0.038543701171875, 0.004878997802734375, -0.0170135498046875, 0.00916290283203125, 0.003543853759765625, 0.040863037109375, 0.00699615478515625, -0.024749755859375, 0.00537872314453125, -0.0126953125, 0.009124755859375, 0.01568603515625, 0.056304931640625, 0.00798797607421875, 0.053192138671875, 0.031341552734375, 0.019866943359375, 0.0165252685546875, 0.018280029296875, -0.034088134765625, -0.03631591796875, 0.0273895263671875, 0.0011491775512695312, -0.01922607421875, 0.0207061767578125, -0.0283355712890625, 0.0093231201171875, 0.048980712890625, 0.06048583984375, -0.047576904296875, 0.009002685546875, 0.0181121826171875, -0.042022705078125, -0.023651123046875, 0.0212554931640625, -0.0155181884765625, -0.022247314453125, 0.050994873046875, -0.019256591796875, 0.01465606689453125, 0.0335693359375, -0.00931549072265625, -0.0133819580078125, -0.047332763671875, 0.060821533203125, 0.005702972412109375, -0.0677490234375, 0.03692626953125, 0.045257568359375, 0.00867462158203125, -0.032958984375, 0.017120361328125, -0.0208587646484375, 0.006168365478515625, -0.03826904296875, 0.022552490234375, -0.0204620361328125, 0.024627685546875, 0.0295257568359375, 0.01214599609375, 0.0102081298828125, 0.0628662109375, -0.0170745849609375, 0.0279388427734375, 0.04083251953125, -0.049652099609375, -0.03961181640625, -0.01873779296875, 0.0068359375, 0.062408447265625, 0.0147247314453125, 0.028533935546875, 0.018951416015625, -0.037628173828125, -0.00005751848220825195, 0.00412750244140625, 0.04522705078125, -0.01739501953125, -0.02520751953125, 0.0298309326171875, 0.0216217041015625, -0.009002685546875, -0.0159912109375, 0.0276641845703125, -0.057464599609375, 0.02703857421875, 0.0003955364227294922, 0.048492431640625, -0.0321044921875, -0.01328277587890625, -0.07696533203125, 0.06927490234375, 0.042999267578125, 0.000484466552734375, -0.0058441162109375, 0.0255889892578125, -0.043701171875, -0.00304412841796875, -0.053314208984375, 0.065673828125, 0.0193023681640625, 0.0562744140625, -0.07330322265625, -0.0235748291015625, 0.0157928466796875, 0.047943115234375, 0.056732177734375, 0.004077911376953125, 0.0072021484375, 0.002628326416015625, 0.0355224609375, 0.007656097412109375, -0.0227813720703125, 0.02581787109375, 0.049285888671875, 0.0760498046875, 0.06500244140625, -0.03564453125, 0.028289794921875, -0.038665771484375, 0.005496978759765625, 0.07464599609375, 0.01337432861328125, 0.00901031494140625, 0.0281219482421875, -0.005069732666015625, -0.0305633544921875, 0.0057373046875, 0.027069091796875, -0.055633544921875, -0.01421356201171875, 0.04559326171875, 0.049591064453125, -0.06781005859375, -0.035308837890625, -0.029876708984375, 0.047515869140625, 0.0232086181640625, 0.04132080078125, 0.024444580078125, 0.006496429443359375, 0.07806396484375, 0.0007681846618652344, 0.0081024169921875, 0.01169586181640625, 0.01262664794921875, 0.005641937255859375, 0.00881195068359375, -0.00397491455078125, -0.0164642333984375, 0.01184844970703125, 0.05572509765625, 0.01082611083984375, -0.0228729248046875, -0.01593017578125, 0.0196685791015625, -0.01081085205078125, -0.032806396484375, -0.006786346435546875, -0.041778564453125, 0.025665283203125, 0.030914306640625, -0.01143646240234375, -0.007587432861328125, 0.0147247314453125, 0.015869140625, 0.0005192756652832031, 0.0100860595703125, 0.0014867782592773438, -0.00012052059173583984, -0.056549072265625, 0.024627685546875, 0.031463623046875, 0.02880859375, 0.01183319091796875, 0.04864501953125, 0.0309295654296875, 0.001678466796875, 0.006786346435546875, 0.0570068359375, 0.0048828125, 0.007232666015625, 0.001728057861328125, -0.038482666015625, 0.0032405853271484375, 0.007480621337890625, 0.0024566650390625, -0.056640625, 0.0217437744140625, 0.0193939208984375, -0.07757568359375, -0.023406982421875, -0.0031280517578125, -0.0180511474609375, 0.01953125, -0.05029296875, 0.005870819091796875, 0.005573272705078125, -0.008758544921875, 0.01441192626953125, -0.0222930908203125, 0.03857421875, 0.0023326873779296875, 0.0260467529296875, 0.004261016845703125, -0.004703521728515625, -0.0148773193359375, -0.025177001953125, 0.0128021240234375, 0.00688934326171875, -0.047088623046875, 0.01041412353515625, -0.040618896484375, -0.0762939453125, 0.03924560546875, 0.05706787109375, -0.01245880126953125, -0.00994873046875, -0.031280517578125, 0.044158935546875, -0.00943756103515625, -0.039794921875, -0.0128936767578125, 0.02154541015625, 0.038848876953125, 0.02117919921875, -0.0113067626953125, -0.0323486328125, 0.00402069091796875, 0.0423583984375, 0.0028018951416015625, 0.0258331298828125, -0.003658294677734375, 0.03240966796875, -0.0132293701171875, 0.047637939453125, -0.055877685546875, -0.017486572265625, -0.020050048828125, -0.0080718994140625, 0.046142578125, 0.0008187294006347656, -0.03857421875, 0.04376220703125, 0.037109375, 0.006671905517578125, 0.05523681640625, -0.00014829635620117188, -0.0002276897430419922, -0.05328369140625, 0.034210205078125, -0.00960540771484375, -0.0288238525390625, -0.007610321044921875, 0.011077880859375, 0.00955963134765625, 0.040863037109375, 0.029510498046875, 0.0127716064453125, 0.0452880859375, -0.019134521484375, 0.031585693359375, -0.0032672882080078125, 0.042938232421875, 0.0379638671875, 0.01058197021484375, 0.00501251220703125, 0.029266357421875, -0.0201416015625, 0.0225982666015625, 0.00717926025390625, 0.018768310546875, 0.01678466796875, -0.0271148681640625, -0.01430511474609375, -0.0345458984375, 0.039520263671875, -0.023040771484375, 0.00302886962890625, -0.0125732421875, 0.01230621337890625, 0.0225830078125, 0.00455474853515625, -0.02276611328125, -0.029937744140625, -0.0274505615234375, -0.0158538818359375, -0.020233154296875, -0.0799560546875, -0.0257568359375, -0.0190887451171875, 0.00264739990234375, -0.0140838623046875, -0.0118865966796875, -0.041778564453125, 0.011199951171875, 0.064453125, -0.05206298828125, 0.034698486328125, 0.002704620361328125, 0.0557861328125, -0.03399658203125, 0.002895355224609375, -0.023468017578125, 0.00640869140625, -0.0202789306640625, 0.024139404296875, 0.0521240234375, -0.0254058837890625, -0.0005936622619628906, 0.044097900390625, 0.020477294921875, 0.07879638671875, -0.011383056640625, -0.017974853515625, 0.01154327392578125, 0.005588531494140625, -0.0012350082397460938, -0.0364990234375, 0.007659912109375, -0.03369140625, 0.0192413330078125, 0.00853729248046875, -0.0107269287109375, 0.006015777587890625, -0.028564453125, -0.035369873046875, 0.0172882080078125, 0.004390716552734375, -0.02801513671875, -0.01776123046875, -0.0035953521728515625, 0.00791168212890625, -0.0185546875, 0.0026702880859375, -0.060699462890625, -0.0379638671875, -0.0092315673828125, 0.01904296875, 0.0210418701171875, 0.04119873046875, -0.00469970703125, -0.05853271484375, -0.00769805908203125, -0.0179443359375, 0.0293731689453125, -0.031982421875, -0.0017824172973632812, 0.002269744873046875, 0.0122833251953125, -0.0301971435546875, -0.023590087890625, 0.0273895263671875, 0.0037403106689453125, -0.0033245086669921875, -0.0034885406494140625, -0.014129638671875, -0.0116424560546875, 0.0247650146484375, 0.04156494140625, 0.002666473388671875, -0.02691650390625, 0.0189208984375, 0.0081939697265625, -0.0987548828125, -0.0144500732421875, 0.04931640625, -0.05621337890625, -0.00675201416015625, -0.0225372314453125, 0.010162353515625, 0.0068359375, -0.048309326171875, -0.043975830078125, -0.031005859375, -0.06591796875, 0.032501220703125, -0.07550048828125, -0.0611572265625, 0.050323486328125, -0.0523681640625, -0.037353515625, 0.0310821533203125, 0.0103607177734375, -0.01617431640625, 0.0071868896484375, -0.0232391357421875, 0.01346588134765625, -0.038330078125, -0.0136260986328125, 0.005237579345703125, 0.00445556640625, -0.004962921142578125, 0.0035266876220703125, -0.0253143310546875, 0.01410675048828125, -0.00447845458984375, 0.00439453125, 0.008880615234375, -0.00859832763671875, 0.005924224853515625, 0.015625, -0.027191162109375, 0.0170440673828125, -0.017364501953125, 0.040435791015625, 0.025482177734375, -0.0085296630859375, 0.043365478515625, -0.020233154296875, 0.00383758544921875, 0.024139404296875, -0.0246124267578125, 0.00007385015487670898, -0.01190948486328125, -0.041412353515625, -0.00708770751953125, 0.0030422210693359375 ]
ad3e810b70f786cee70933995324bff86c6baa38
Wordpress Stackexchange Q: How to load WordPress on non WP page? I want to use the get_option() function of wordpress in one of my theme's files, which is not related to WP, it is just located in the same directory of the other theme files. I need this file because of some extra IPN paypal related actions, but I need some values from the options table that exists in WP to be called in this page in order for it to work. I know I can't just use get_option() as this file is overlooked by wordpress. Is there any approach by including some parts of wordpress in my theme to make this functionality only work? A: The simplest way is include wp-load.php file. This file will loads all WP core, so you can use WP functions such as get_option in your PHP file: include 'path/to/wp-load.php'; echo get_option( 'option_name' );
Q: How to load WordPress on non WP page? I want to use the get_option() function of wordpress in one of my theme's files, which is not related to WP, it is just located in the same directory of the other theme files. I need this file because of some extra IPN paypal related actions, but I need some values from the options table that exists in WP to be called in this page in order for it to work. I know I can't just use get_option() as this file is overlooked by wordpress. Is there any approach by including some parts of wordpress in my theme to make this functionality only work? A: The simplest way is include wp-load.php file. This file will loads all WP core, so you can use WP functions such as get_option in your PHP file: include 'path/to/wp-load.php'; echo get_option( 'option_name' ); A: Turn your external file into a WordPress plugin. That way you'll have full access to WP core functions. A: The shortest way is to load wp-load.php and abort the loading of the template engine (Note: You couldn't do that, if you'd be loading the header file, like you see it on many sites in the interweb). # No need for the template engine define( 'WP_USE_THEMES', false ); # Load WordPress Core // Assuming we're in a subdir: "~/wp-content/plugins/current_dir" require_once( '../../../wp-load.php' ); A: This should work on any WordPress installation: <?php function load_wp_load() { $wp_did_header = true; require_once($_SERVER['DOCUMENT_ROOT'] . '/index.php'); $matches = preg_grep('/wp-blog-header.php/', get_included_files()); if (!empty($matches)) { $abspath = dirname(reset($matches)) . '/'; define('ABSPATH', $abspath); require_once(ABSPATH . 'wp-load.php'); } } ?>
wordpress
{ "language": "en", "length": 267, "provenance": "stackexchange_00019.jsonl.gz:424785", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69184" }
[ 0.043304443359375, -0.001239776611328125, 0.0090179443359375, -0.019989013671875, 0.00433349609375, -0.038543701171875, 0.0626220703125, -0.00933074951171875, -0.0007171630859375, -0.0343017578125, -0.10223388671875, 0.0158233642578125, -0.0650634765625, 0.02099609375, 0.0069732666015625, -0.09466552734375, 0.03460693359375, -0.024871826171875, 0.037841796875, 0.00487518310546875, 0.006717681884765625, 0.0191497802734375, 0.0205230712890625, 0.01262664794921875, 0.037750244140625, -0.0487060546875, 0.040313720703125, -0.00007426738739013672, 0.03375244140625, -0.0031585693359375, 0.0304718017578125, -0.00992584228515625, 0.0198822021484375, 0.005352020263671875, -0.00757598876953125, 0.0005030632019042969, 0.0034236907958984375, -0.0030422210693359375, -0.005359649658203125, 0.05010986328125, 0.0210418701171875, -0.0083465576171875, 0.004619598388671875, 0.016845703125, -0.0215606689453125, -0.03424072265625, 0.020294189453125, -0.0278778076171875, -0.0316162109375, 0.02532958984375, 0.033294677734375, -0.0019350051879882812, 0.0565185546875, 0.01397705078125, -0.008270263671875, -0.006103515625, -0.0150909423828125, 0.0557861328125, 0.0164642333984375, -0.04144287109375, -0.039947509765625, 0.01654052734375, 0.0198822021484375, 0.018646240234375, 0.0255279541015625, 0.0010023117065429688, -0.0190887451171875, 0.0318603515625, -0.04803466796875, 0.0106353759765625, 0.0145263671875, -0.04718017578125, 0.0196075439453125, -0.0194244384765625, -0.01145172119140625, -0.00641632080078125, 0.01316070556640625, -0.00447845458984375, 0.006237030029296875, -0.004871368408203125, -0.023590087890625, -0.01001739501953125, -0.054656982421875, -0.00917816162109375, 0.0091400146484375, 0.019805908203125, -0.0123138427734375, -0.005352020263671875, -0.039093017578125, 0.00615692138671875, -0.04315185546875, -0.004955291748046875, -0.0236358642578125, 0.01153564453125, -0.0190582275390625, 0.016754150390625, -0.042633056640625, -0.003582000732421875, 0.007080078125, 0.055633544921875, 0.0025653839111328125, -0.046539306640625, 0.08746337890625, -0.048492431640625, 0.0094757080078125, 0.09332275390625, 0.015625, 0.025665283203125, 0.0140838623046875, -0.01079559326171875, 0.020538330078125, 0.0029449462890625, -0.007305145263671875, -0.00821685791015625, -0.02587890625, -0.0026702880859375, -0.04351806640625, -0.0047607421875, -0.0131988525390625, -0.01220703125, 0.01190948486328125, 0.0279998779296875, 0.0004930496215820312, -0.0304718017578125, -0.0182647705078125, -0.01904296875, -0.0252685546875, -0.035736083984375, -0.0221405029296875, 0.02532958984375, -0.0244903564453125, 0.00469970703125, 0.038360595703125, 0.006526947021484375, -0.0191650390625, -0.024749755859375, -0.0132598876953125, 0.00034499168395996094, 0.006755828857421875, -0.02557373046875, 0.07049560546875, -0.044830322265625, -0.03411865234375, 0.052734375, 0.041961669921875, 0.004322052001953125, 0.0310211181640625, 0.02783203125, 0.00238800048828125, -0.00603485107421875, 0.0175323486328125, 0.03741455078125, 0.0045623779296875, 0.014373779296875, 0.038238525390625, -0.0009670257568359375, 0.055908203125, -0.0287628173828125, -0.00418853759765625, -0.0191802978515625, -0.03515625, -0.01507568359375, 0.0006432533264160156, -0.03570556640625, -0.042816162109375, -0.0013675689697265625, 0.0100250244140625, 0.001007080078125, 0.01561737060546875, 0.008148193359375, 0.005664825439453125, -0.0288543701171875, 0.024017333984375, 0.0166473388671875, -0.0013685226440429688, 0.0273284912109375, -0.006748199462890625, 0.040740966796875, 0.017364501953125, 0.0167236328125, -0.00423431396484375, -0.045257568359375, 0.04962158203125, -0.01216888427734375, -0.06317138671875, 0.0396728515625, 0.005191802978515625, 0.0780029296875, 0.015960693359375, 0.0218048095703125, 0.0029754638671875, 0.009368896484375, 0.00270843505859375, -0.0130462646484375, -0.0011653900146484375, -0.0281219482421875, -0.0024089813232421875, 0.00919342041015625, -0.009307861328125, 0.006771087646484375, -0.002155303955078125, 0.00449371337890625, -0.00601959228515625, -0.01360321044921875, -0.031524658203125, -0.039093017578125, -0.003704071044921875, 0.0165252685546875, 0.01806640625, 0.01192474365234375, 0.005779266357421875, 0.01293182373046875, -0.016937255859375, -0.0165252685546875, -0.050323486328125, 0.00688934326171875, -0.00823211669921875, 0.07415771484375, 0.017242431640625, 0.05499267578125, 0.025970458984375, -0.05230712890625, 0.0115966796875, 0.01009368896484375, 0.006275177001953125, 0.001190185546875, -0.02911376953125, -0.02252197265625, -0.0199127197265625, -0.0066070556640625, 0.01462554931640625, 0.0379638671875, 0.005748748779296875, 0.0247344970703125, -0.0180816650390625, -0.03155517578125, -0.0197296142578125, -0.0479736328125, 0.0234527587890625, 0.041717529296875, 0.0396728515625, 0.033721923828125, 0.006038665771484375, 0.006710052490234375, 0.0367431640625, -0.049591064453125, 0.0133514404296875, -0.01543426513671875, -0.0157623291015625, -0.006591796875, 0.01227569580078125, -0.006824493408203125, 0.01294708251953125, -0.0111541748046875, -0.0297698974609375, 0.038299560546875, -0.0128936767578125, 0.020233154296875, 0.0246734619140625, -0.0157318115234375, -0.01543426513671875, -0.0274505615234375, -0.0014581680297851562, -0.007965087890625, -0.00852203369140625, -0.020477294921875, -0.01511383056640625, -0.0274200439453125, 0.00649261474609375, -0.0233917236328125, 0.0272674560546875, -0.04803466796875, -0.007434844970703125, 0.0234375, 0.0065460205078125, -0.0230865478515625, -0.020660400390625, 0.0033359527587890625, -0.0081024169921875, 0.0037555694580078125, -0.01064300537109375, 0.0176544189453125, -0.013397216796875, -0.00513458251953125, 0.0136566162109375, -0.045318603515625, 0.01282501220703125, 0.00879669189453125, -0.0016326904296875, 0.0117645263671875, 0.0396728515625, 0.036224365234375, 0.006969451904296875, 0.01387786865234375, 0.0129547119140625, -0.0021800994873046875, 0.042205810546875, -0.028533935546875, 0.0001957416534423828, -0.004673004150390625, 0.02960205078125, 0.04736328125, 0.02825927734375, -0.03533935546875, 0.005611419677734375, -0.01702880859375, 0.0157470703125, -0.01477813720703125, -0.0158233642578125, 0.019561767578125, -0.063720703125, 0.01526641845703125, 0.0006551742553710938, -0.01629638671875, -0.004016876220703125, -0.045166015625, -0.028472900390625, -0.013519287109375, -0.09271240234375, -0.0244140625, 0.0299835205078125, -0.08203125, 0.00885772705078125, -0.0362548828125, -0.043243408203125, -0.014434814453125, -0.003337860107421875, -0.004474639892578125, 0.00278472900390625, -0.037109375, -0.0438232421875, -0.08367919921875, -0.08221435546875, -0.0645751953125, 0.0009169578552246094, 0.0083160400390625, -0.01386260986328125, 0.051971435546875, 0.010223388671875, -0.040863037109375, -0.006526947021484375, 0.0760498046875, -0.01544189453125, -0.0233001708984375, 0.0213165283203125, -0.0307159423828125, 0.0233917236328125, -0.002796173095703125, 0.019500732421875, 0.01277923583984375, -0.01383209228515625, -0.014068603515625, 0.0008311271667480469, 0.00835418701171875, 0.00803375244140625, 0.03607177734375, -0.00689697265625, -0.0269012451171875, -0.006328582763671875, -0.062286376953125, -0.006275177001953125, 0.00804901123046875, -0.0185394287109375, 0.0106658935546875, 0.0132293701171875, -0.042694091796875, -0.0165252685546875, 0.01201629638671875, 0.00839996337890625, -0.0043182373046875, 0.0206298828125, -0.0054473876953125, 0.01085662841796875, -0.0178680419921875, -0.01274871826171875, -0.01317596435546875, 0.01629638671875, -0.0273284912109375, 0.016510009765625, -0.003864288330078125, -0.00904083251953125, -0.0192718505859375, -0.0056915283203125, -0.060272216796875, -0.0616455078125, 0.04693603515625, -0.040374755859375, -0.0184478759765625, -0.0309600830078125, -0.0106658935546875, 0.023834228515625, 0.10150146484375, 0.0081787109375, -0.005168914794921875, 0.00499725341796875, 0.018402099609375, -0.051605224609375, -0.05633544921875, -0.0257568359375, -0.0013608932495117188, -0.07061767578125, -0.020751953125, -0.00928497314453125, -0.0229339599609375, -0.006866455078125, 0.039398193359375, -0.04339599609375, -0.04266357421875, 0.009521484375, -0.0352783203125, 0.016815185546875, 0.0169525146484375, -0.0308990478515625, -0.0018444061279296875, -0.00910186767578125, -0.031280517578125, -0.06622314453125, -0.0010547637939453125, -0.023834228515625, 0.050628662109375, 0.019622802734375, 0.01006317138671875, -0.004241943359375, 0.044586181640625, -0.021270751953125, 0.042633056640625, -0.00243377685546875, 0.034454345703125, -0.0009784698486328125, -0.0172271728515625, 0.0213165283203125, -0.03326416015625, -0.0158843994140625, -0.030120849609375, -0.027008056640625, 0.0098724365234375, -0.0189208984375, 0.0098114013671875, -0.021026611328125, -0.01097869873046875, -0.0212249755859375, 0.01506805419921875, 0.006946563720703125, 0.017486572265625, -0.001285552978515625, -0.007564544677734375, -0.0006699562072753906, -0.0254669189453125, 0.06475830078125, -0.006565093994140625, 0.01186370849609375, 0.00930023193359375, 0.07135009765625, -0.005947113037109375, -0.03033447265625, -0.0726318359375, -0.0225372314453125, 0.008819580078125, -0.005168914794921875, 0.048248291015625, -0.00632476806640625, -0.0087127685546875, 0.069580078125, -0.0110015869140625, 0.006114959716796875, -0.01369476318359375, 0.025421142578125, 0.0164794921875, -0.02313232421875, 0.0236358642578125, 0.0169830322265625, -0.005825042724609375, 0.048614501953125, -0.0030040740966796875, -0.0098419189453125, 0.03521728515625, 0.01146697998046875, -0.049713134765625, 0.022186279296875, -0.003154754638671875, 0.01055145263671875, -0.02166748046875, -0.042755126953125, 0.0911865234375, 0.049468994140625, 0.0010499954223632812, 0.042236328125, 0.052337646484375, 0.0064544677734375, 0.050628662109375, 0.06982421875, 0.00909423828125, 0.0341796875, 0.04852294921875, 0.0031585693359375, -0.01397705078125, -0.0173492431640625, 0.041778564453125, -0.0293731689453125, -0.051025390625, -0.01241302490234375, -0.0205230712890625, 0.00865936279296875, 0.03765869140625, -0.032867431640625, 0.0149383544921875, 0.0118255615234375, -0.0274658203125, 0.005889892578125, 0.0100250244140625, -0.0276641845703125, -0.035919189453125, 0.041778564453125, -0.0019178390502929688, 0.0245208740234375, -0.003559112548828125, 0.11749267578125, -0.0180816650390625, 0.07745361328125, -0.0201263427734375, 0.032867431640625, 0.0289306640625, 0.033111572265625, 0.0155487060546875, -0.03619384765625, 0.03216552734375, -0.02520751953125, 0.0014123916625976562, -0.049468994140625, 0.0084686279296875, -0.005084991455078125, 0.062103271484375, -0.01055908203125, -0.0221710205078125, 0.036651611328125, -0.023681640625, -0.0106048583984375, 0.037445068359375, 0.0330810546875, -0.032196044921875, -0.0146026611328125, 0.024169921875, 0.0266571044921875, 0.00685882568359375, -0.0026760101318359375, 0.0321044921875, 0.01490020751953125, 0.0025787353515625, 0.026123046875, -0.057586669921875, 0.00223541259765625, 0.024383544921875, 0.01293182373046875, -0.02386474609375, -0.0180511474609375, -0.03173828125, 0.006122589111328125, -0.0301361083984375, -0.01422882080078125, 0.0650634765625, -0.0278778076171875, 0.00008410215377807617, -0.029571533203125, 0.01004791259765625, -0.0419921875, -0.0010967254638671875, 0.07000732421875, 0.043975830078125, -0.031829833984375, -0.0020122528076171875, -0.04107666015625, -0.0325927734375, -0.022674560546875, -0.020263671875, -0.065673828125, 0.004573822021484375, -0.0116424560546875, 0.00943756103515625, -0.0347900390625, -0.024688720703125, -0.00632476806640625, 0.0250701904296875, 0.01078033447265625, 0.0234375, -0.01128387451171875, 0.1063232421875, -0.010467529296875, 0.0340576171875, 0.0404052734375, 0.07073974609375, -0.01297760009765625, -0.01526641845703125, -0.0232696533203125, -0.07342529296875, -0.00873565673828125, 0.0131072998046875, -0.0159454345703125, 0.0592041015625, 0.04351806640625, 0.0162811279296875, 0.0131072998046875, -0.0472412109375, -0.0196380615234375, -0.01788330078125, 0.0238037109375, -0.0281219482421875, 0.002315521240234375, -0.007335662841796875, -0.04638671875, -0.06439208984375, 0.00011742115020751953, 0.00969696044921875, 0.0231781005859375, -0.023406982421875, -0.0034389495849609375, 0.0257720947265625, -0.07342529296875, 0.10888671875, 0.1141357421875, -0.0102081298828125, 0.04595947265625, 0.0202484130859375, -0.0227508544921875, 0.01216888427734375, 0.0802001953125, -0.05035400390625, -0.05352783203125, 0.048126220703125, 0.0299072265625, -0.031646728515625, -0.0025615692138671875, -0.024139404296875, 0.02716064453125, 0.06243896484375, 0.0992431640625, -0.07318115234375, 0.009918212890625, 0.0212249755859375, -0.051239013671875, 0.01172637939453125, 0.004962921142578125, -0.01837158203125, -0.04840087890625, 0.06292724609375, 0.01505279541015625, 0.01053619384765625, 0.037811279296875, 0.01055908203125, -0.03131103515625, -0.026275634765625, 0.0477294921875, 0.034027099609375, -0.01849365234375, 0.040679931640625, 0.020172119140625, 0.030670166015625, -0.01812744140625, 0.01073455810546875, -0.0037670135498046875, -0.0211029052734375, -0.059112548828125, -0.013336181640625, -0.023345947265625, -0.00769805908203125, -0.01293182373046875, 0.011016845703125, 0.0021820068359375, 0.037567138671875, -0.007122039794921875, -0.0035839080810546875, 0.00899505615234375, 0.00011467933654785156, 0.013275146484375, -0.0242156982421875, -0.0038127899169921875, 0.0073089599609375, -0.00824737548828125, 0.003047943115234375, -0.01157379150390625, -0.0241241455078125, -0.00824737548828125, -0.025726318359375, 0.08404541015625, -0.0306549072265625, -0.010955810546875, 0.037872314453125, -0.01641845703125, -0.025177001953125, 0.014434814453125, 0.0226593017578125, -0.006664276123046875, -0.001750946044921875, 0.01282501220703125, -0.0270538330078125, -0.0257568359375, 0.0017881393432617188, -0.052215576171875, 0.10595703125, -0.040130615234375, 0.0144500732421875, 0.02783203125, 0.058349609375, -0.028900146484375, 0.02716064453125, -0.050689697265625, 0.05303955078125, 0.04400634765625, 0.0467529296875, -0.06903076171875, -0.0205078125, -0.006847381591796875, 0.02593994140625, -0.00812530517578125, 0.004177093505859375, -0.0251617431640625, 0.00858306884765625, 0.0732421875, 0.0740966796875, 0.038238525390625, 0.00931549072265625, 0.0313720703125, 0.023345947265625, 0.03857421875, -0.028076171875, 0.0215606689453125, -0.0269317626953125, 0.03240966796875, 0.05096435546875, 0.010162353515625, 0.0081024169921875, -0.006931304931640625, -0.0162200927734375, -0.049652099609375, 0.00658416748046875, 0.0253143310546875, 0.01506805419921875, 0.005428314208984375, 0.033233642578125, 0.0177154541015625, -0.006099700927734375, -0.0272064208984375, -0.0147705078125, 0.02490234375, -0.015716552734375, -0.008026123046875, 0.01399993896484375, 0.001499176025390625, 0.0340576171875, -0.02313232421875, -0.0229949951171875, -0.01401519775390625, 0.0178985595703125, 0.055389404296875, 0.032318115234375, 0.031951904296875, -0.0166473388671875, 0.042205810546875, -0.0005006790161132812, 0.042144775390625, -0.03887939453125, -0.025238037109375, 0.0006475448608398438, -0.0079193115234375, 0.00051116943359375, -0.01580810546875, 0.012542724609375, -0.008514404296875, 0.01020050048828125, -0.02203369140625, -0.01232147216796875, 0.0142974853515625, 0.01332855224609375, -0.0076904296875, 0.0228118896484375, -0.0192108154296875, -0.01439666748046875, 0.007404327392578125, 0.0088043212890625, 0.0137786865234375, 0.0087890625, -0.0244598388671875, 0.04339599609375, -0.0221710205078125, 0.018463134765625, -0.00307464599609375, 0.0357666015625, -0.0204010009765625, 0.0174407958984375, -0.031982421875, -0.045379638671875, -0.01390838623046875, 0.03472900390625, 0.015838623046875, 0.02752685546875, 0.041656494140625, 0.05743408203125, -0.01495361328125, -0.0019006729125976562, 0.0999755859375, 0.0106658935546875, -0.0015726089477539062, -0.00458526611328125, -0.0229949951171875, 0.01385498046875, -0.0264434814453125, -0.0289459228515625, 0.0257568359375, 0.021148681640625, -0.03515625, 0.03594970703125, -0.003021240234375, -0.00843048095703125, 0.022796630859375, -0.0227813720703125, 0.0296783447265625, -0.0017156600952148438, -0.036224365234375, -0.00019299983978271484, -0.03192138671875, 0.01318359375, -0.0171356201171875, 0.0253448486328125, 0.0004620552062988281, 0.021575927734375, 0.0180206298828125, 0.026947021484375, -0.0031757354736328125, 0.002010345458984375, 0.00782012939453125, 0.006656646728515625, 0.047515869140625, 0.025299072265625, -0.059844970703125, -0.041473388671875, -0.033477783203125, 0.041046142578125, 0.01317596435546875, 0.042083740234375, -0.0077972412109375, 0.0254974365234375, 0.0227203369140625, 0.0270843505859375, 0.0037689208984375, 0.0111541748046875, 0.0198974609375, 0.004108428955078125, 0.003978729248046875, -0.03594970703125, 0.00383758544921875, 0.0250701904296875, 0.0283050537109375, -0.0290679931640625, 0.01369476318359375, -0.020416259765625, 0.0245819091796875, -0.00386810302734375, 0.00399017333984375, -0.01116180419921875, -0.0003795623779296875, 0.02154541015625, -0.0029296875, 0.0277099609375, 0.0193939208984375, 0.0006785392761230469, 0.0218505859375, 0.0287933349609375, 0.021575927734375, 0.022247314453125, 0.02435302734375, -0.0095977783203125, 0.00870513916015625, -0.006256103515625, -0.03021240234375, 0.0015001296997070312, -0.0203704833984375, 0.0228729248046875, -0.0088348388671875, 0.04583740234375, -0.002056121826171875, -0.00551605224609375, -0.0025920867919921875, 0.003063201904296875, 0.02935791015625, -0.016265869140625, 0.02117919921875, 0.0027256011962890625, 0.006290435791015625, 0.010223388671875, -0.0185546875, -0.0169677734375, -0.0276947021484375, -0.0098114013671875, 0.004383087158203125, -0.0088043212890625, -0.023468017578125, 0.00884246826171875, 0.0151519775390625, 0.0008454322814941406, 0.020538330078125, -0.07293701171875, 0.049957275390625, 0.00185394287109375, 0.013824462890625, -0.019500732421875, 0.0086212158203125, 0.00547027587890625, 0.0379638671875, -0.034515380859375, -0.00966644287109375, -0.0030975341796875, -0.01277923583984375, -0.005107879638671875, 0.04315185546875, 0.062744140625, -0.026092529296875, -0.032379150390625, 0.09112548828125, 0.01349639892578125, 0.12384033203125, -0.047821044921875, -0.0026416778564453125, 0.01885986328125, 0.018890380859375, -0.049713134765625, -0.07568359375, 0.022979736328125, -0.029083251953125, 0.01300048828125, -0.0296173095703125, 0.005069732666015625, 0.0002644062042236328, -0.058197021484375, -0.0914306640625, 0.045166015625, -0.01354217529296875, -0.051116943359375, -0.0562744140625, -0.0173187255859375, -0.01235198974609375, 0.00762939453125, -0.01262664794921875, -0.030548095703125, -0.02850341796875, 0.06719970703125, 0.023956298828125, 0.025482177734375, 0.003772735595703125, 0.036834716796875, -0.06689453125, 0.018280029296875, -0.00783538818359375, 0.0078582763671875, -0.01495361328125, -0.00881195068359375, 0.025115966796875, 0.05535888671875, -0.0230255126953125, -0.0247344970703125, -0.0014142990112304688, -0.0148773193359375, 0.0032444000244140625, -0.056365966796875, -0.0281524658203125, -0.03265380859375, 0.05316162109375, 0.0185699462890625, 0.01187896728515625, -0.01202392578125, -0.0290679931640625, -0.000118255615234375, -0.0341796875, -0.004150390625, 0.0421142578125, -0.07177734375, -0.0016307830810546875, 0.0165557861328125, -0.048095703125, 0.032135009765625, -0.0152587890625, -0.06243896484375, 0.0299224853515625, -0.0455322265625, -0.028839111328125, -0.050140380859375, -0.0221099853515625, 0.057098388671875, -0.02862548828125, -0.005397796630859375, 0.00847625732421875, 0.0150146484375, 0.0221099853515625, 0.0171661376953125, -0.0024738311767578125, 0.0264739990234375, -0.036956787109375, 0.0079498291015625, 0.002254486083984375, 0.045501708984375, -0.019073486328125, 0.00293731689453125, -0.007602691650390625, 0.030029296875, -0.0155792236328125, 0.01485443115234375, 0.00460052490234375, 0.0447998046875, -0.0029754638671875, 0.055145263671875, -0.0028228759765625, 0.053131103515625, -0.0022716522216796875, 0.031585693359375, -0.007015228271484375, -0.0091552734375, 0.0224456787109375, -0.034942626953125, 0.01049041748046875, -0.0286712646484375, -0.0179901123046875, -0.0181427001953125, -0.006092071533203125, 0.0180206298828125, -0.026031494140625, 0.0103912353515625 ]
a8a9a99ecd04bbc8720b0d59bff374ca32550ea2
Wordpress Stackexchange Q: Setting different width and height for gravatar I've been trying to set a different width and height using the get_avatar function. I need to set the author's avatar in single.php to 60x40 size. So let's say the gravatar looks like this: when set to 60x40, it would look like this (resized and cropped): However, the default get_avatar does not seem to allow different values for width and height, since <?php echo get_avatar( $comment, '60' ); ?> would simply result in 60x60-sized gravatar. I'm not sure if this is a nice way for doing this, but I tried adding this to functions.php, by facilitating the TimThumb image resizer (I renamed the timthumb.php to display.php): add_filter('get_avatar','change_avatar_url'); function change_avatar_url($urel) { $urel = str_replace("src='", "src='". bloginfo( 'template_directory' ) ."/script/display.php?src=", $urel); $urel = str_replace("' class", "&w=60&h=40&zc=1' class", $urel); return $urel; } but it (seem obviously) does not work. Is there any way to achieve this? A: Unfortunately at moment Gravatar service itself only accepts single number for size and only serves square images. So you have to achieve it with CSS or download, modify and cache images.
Q: Setting different width and height for gravatar I've been trying to set a different width and height using the get_avatar function. I need to set the author's avatar in single.php to 60x40 size. So let's say the gravatar looks like this: when set to 60x40, it would look like this (resized and cropped): However, the default get_avatar does not seem to allow different values for width and height, since <?php echo get_avatar( $comment, '60' ); ?> would simply result in 60x60-sized gravatar. I'm not sure if this is a nice way for doing this, but I tried adding this to functions.php, by facilitating the TimThumb image resizer (I renamed the timthumb.php to display.php): add_filter('get_avatar','change_avatar_url'); function change_avatar_url($urel) { $urel = str_replace("src='", "src='". bloginfo( 'template_directory' ) ."/script/display.php?src=", $urel); $urel = str_replace("' class", "&w=60&h=40&zc=1' class", $urel); return $urel; } but it (seem obviously) does not work. Is there any way to achieve this? A: Unfortunately at moment Gravatar service itself only accepts single number for size and only serves square images. So you have to achieve it with CSS or download, modify and cache images. A: As informed by @Rarst, apparently currently Gravatar only accepts one value for size. It is really unfortunate. However I managed to work-around this by facilitating timthumb.php and a function I found from here: How to get gravatar url alone I'm not sure if this is the best way to do this (it looks messy), however this works for me for creating 60x40 px size. It doesn't seem to work well when I tried with other sizes, though. Not sure why. Well, here goes. First I add gravatar.com into the list of allowed sites in timthumb.php (I renamed the file to display.php). The list is under the $ALLOWED_SITES. Then in functions.php I put this (notice that I rename the timthumb.php to display.php): // Get the gravatar URL // source: https://wordpress.stackexchange.com/questions/46904/how-to-get-gravatar-url-alone function get_gravatar_url( $email ) { $hash = md5( strtolower( trim ( $email ) ) ); return 'http://gravatar.com/avatar/' . $hash; } // Function to display the custom-sized gravatar function custom_gravatar_timthumb($width, $height, $class) { $custom = get_template_directory_uri() . "/script/display.php?src=". get_gravatar_url(get_the_author_meta('email')) ."w=". $width ."&h=". $height ."&zc=1&a=c"; echo "<img src='" . $custom . "' class='". $class ."' alt='avatar' />"; } Then in single.php (where I display the gravatar) I put this: <?php custom_gravatar_timthumb(60, 40, "author-avatar avatar photo"); ?> A: apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt); So you can filter the output: function wpse69318_avatar_sizes( $avatar, $id_or_email, $size, $default, $alt ) { if ( is_single() ) return preg_replace( '/width\=\"[0-9]{1,3}\"/i', 'width="40px"', $avatar ); // return default for other pages return $avatar } add_filter( 'get_avatar', 'wpse69318_avatar_sizes', 10, 5 );
wordpress
{ "language": "en", "length": 434, "provenance": "stackexchange_00019.jsonl.gz:424823", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69318" }
[ 0.0272979736328125, -0.00603485107421875, -0.00325775146484375, -0.0262908935546875, -0.00492095947265625, -0.0191497802734375, -0.01042938232421875, -0.0306549072265625, 0.0191192626953125, 0.0148162841796875, -0.03271484375, 0.0277099609375, -0.015869140625, -0.011383056640625, 0.00691986083984375, -0.00934600830078125, 0.055908203125, -0.0102081298828125, 0.021453857421875, -0.0150146484375, 0.0033931732177734375, 0.0225372314453125, 0.001407623291015625, 0.103759765625, -0.006679534912109375, -0.01861572265625, 0.10906982421875, 0.0127716064453125, -0.03485107421875, -0.0181884765625, 0.016082763671875, 0.0062103271484375, 0.0227508544921875, 0.0379638671875, -0.0289459228515625, -0.0020294189453125, -0.01325225830078125, 0.01049041748046875, -0.026123046875, 0.045318603515625, 0.041168212890625, -0.0223236083984375, -0.0149078369140625, 0.0142059326171875, -0.039398193359375, -0.0264739990234375, 0.042022705078125, 0.0023937225341796875, 0.020111083984375, 0.0171661376953125, 0.00379180908203125, 0.031005859375, 0.00634765625, 0.02264404296875, -0.02410888671875, -0.0178985595703125, 0.006771087646484375, 0.00725555419921875, 0.0154266357421875, -0.0077362060546875, -0.0081787109375, 0.0250091552734375, 0.0146942138671875, 0.006427764892578125, -0.01134490966796875, -0.009674072265625, 0.0694580078125, 0.03277587890625, -0.016937255859375, -0.052001953125, -0.01476287841796875, 0.03656005859375, 0.0017757415771484375, -0.06396484375, -0.041229248046875, 0.0660400390625, -0.01233673095703125, -0.00875091552734375, 0.0129852294921875, -0.043060302734375, 0.038787841796875, -0.024627685546875, 0.0086822509765625, -0.0021686553955078125, 0.021484375, 0.01428985595703125, 0.007152557373046875, -0.0206451416015625, -0.0085906982421875, 0.02423095703125, -0.00901031494140625, -0.034637451171875, 0.0056304931640625, 0.0306243896484375, -0.00415802001953125, -0.02532958984375, -0.01496124267578125, -0.0343017578125, -0.0088958740234375, 0.03033447265625, 0.038238525390625, -0.047210693359375, 0.09832763671875, -0.03460693359375, 0.01507568359375, 0.04254150390625, 0.0141143798828125, 0.037994384765625, 0.043701171875, -0.0010471343994140625, 0.01763916015625, 0.0325927734375, -0.0438232421875, 0.0262603759765625, -0.03692626953125, -0.01239776611328125, -0.06732177734375, -0.007541656494140625, -0.029998779296875, -0.0031833648681640625, -0.014190673828125, 0.01097869873046875, 0.061065673828125, -0.0171051025390625, 0.0006165504455566406, 0.005352020263671875, -0.0007338523864746094, -0.07318115234375, -0.00063323974609375, 0.048431396484375, -0.003490447998046875, -0.032501220703125, -0.01261138916015625, 0.028839111328125, 0.00013446807861328125, -0.0296630859375, 0.02276611328125, -0.0047454833984375, 0.0008168220520019531, 0.01898193359375, -0.01218414306640625, 0.0173492431640625, 0.06304931640625, -0.0238037109375, -0.014129638671875, 0.022125244140625, 0.01160430908203125, 0.007457733154296875, -0.0177001953125, -0.0694580078125, 0.0234527587890625, -0.01050567626953125, -0.002895355224609375, 0.0159759521484375, 0.04364013671875, 0.0186920166015625, 0.05523681640625, -0.006809234619140625, -0.02520751953125, 0.0102386474609375, 0.0205535888671875, 0.0137939453125, 0.0204315185546875, -0.009124755859375, -0.0308990478515625, -0.017852783203125, -0.034027099609375, -0.006053924560546875, 0.018096923828125, -0.01129150390625, 0.01422119140625, 0.038543701171875, 0.0382080078125, 0.023345947265625, 0.007732391357421875, -0.00409698486328125, -0.014373779296875, -0.0084381103515625, 0.036895751953125, 0.0019159317016601562, -0.031951904296875, -0.04339599609375, 0.04132080078125, -0.0206146240234375, 0.005588531494140625, -0.0208587646484375, -0.0118865966796875, -0.032806396484375, 0.035614013671875, 0.01023101806640625, -0.0384521484375, 0.0247650146484375, -0.02825927734375, -0.004116058349609375, 0.0018215179443359375, 0.02423095703125, -0.009033203125, 0.025238037109375, -0.003955841064453125, -0.0208282470703125, 0.041595458984375, 0.0009431838989257812, -0.0047149658203125, -0.01529693603515625, -0.09332275390625, 0.0268707275390625, -0.035247802734375, 0.0419921875, -0.048919677734375, 0.04473876953125, 0.018768310546875, -0.0036182403564453125, -0.032196044921875, 0.0472412109375, 0.0340576171875, -0.0290985107421875, 0.01387786865234375, 0.0250091552734375, -0.0021800994873046875, 0.006961822509765625, -0.0251312255859375, -0.03564453125, -0.0255279541015625, 0.060394287109375, 0.0215911865234375, -0.032440185546875, -0.01203155517578125, -0.029632568359375, 0.007549285888671875, -0.0167083740234375, -0.0051422119140625, 0.05584716796875, 0.0208282470703125, 0.02850341796875, -0.0199737548828125, -0.0194854736328125, -0.0212554931640625, -0.064208984375, 0.01314544677734375, 0.050750732421875, 0.0279541015625, -0.04327392578125, -0.02801513671875, -0.0027370452880859375, -0.0069580078125, 0.02703857421875, 0.031524658203125, -0.0256195068359375, -0.0272674560546875, -0.0169525146484375, 0.0260162353515625, -0.0227203369140625, 0.0193328857421875, -0.04931640625, -0.005207061767578125, 0.036285400390625, -0.0236663818359375, -0.000560760498046875, -0.00017273426055908203, 0.00885772705078125, 0.00067901611328125, 0.05755615234375, 0.0188446044921875, 0.021881103515625, -0.0200653076171875, -0.00021839141845703125, 0.002506256103515625, -0.003753662109375, -0.006732940673828125, 0.0089111328125, 0.01861572265625, -0.0183563232421875, -0.0007448196411132812, 0.01169586181640625, -0.0001437664031982422, -0.0247344970703125, -0.037994384765625, 0.0185546875, 0.007579803466796875, -0.014312744140625, 0.00106048583984375, 0.060791015625, -0.03948974609375, -0.0235137939453125, -0.00591278076171875, -0.01056671142578125, -0.03302001953125, -0.02227783203125, 0.00531005859375, 0.0012874603271484375, 0.0265350341796875, 0.042633056640625, -0.0020542144775390625, 0.029266357421875, -0.0404052734375, -0.00820159912109375, 0.0220794677734375, -0.01010894775390625, 0.0197601318359375, -0.033843994140625, 0.0748291015625, 0.058929443359375, -0.0494384765625, 0.034637451171875, -0.021148681640625, -0.0151519775390625, -0.07159423828125, 0.0268096923828125, 0.006580352783203125, -0.0584716796875, 0.0640869140625, 0.11358642578125, 0.01335906982421875, -0.028533935546875, 0.0007071495056152344, -0.034454345703125, -0.0225372314453125, 0.00862884521484375, -0.02740478515625, 0.035888671875, 0.0079498291015625, -0.0838623046875, -0.0161590576171875, -0.00787353515625, -0.058197021484375, 0.00257110595703125, 0.0192413330078125, 0.004093170166015625, 0.0244903564453125, 0.0143890380859375, -0.03436279296875, 0.006038665771484375, -0.031982421875, -0.0093231201171875, -0.00927734375, -0.0095062255859375, -0.00862884521484375, 0.04132080078125, 0.019195556640625, -0.015594482421875, 0.01611328125, 0.056304931640625, -0.009765625, -0.0265045166015625, 0.02984619140625, -0.0167083740234375, -0.0167083740234375, -0.007549285888671875, 0.0556640625, 0.07281494140625, -0.07977294921875, 0.027862548828125, 0.007549285888671875, -0.0232086181640625, 0.0211639404296875, 0.0207366943359375, -0.0076141357421875, -0.016082763671875, 0.0264434814453125, -0.04345703125, -0.009124755859375, -0.030364990234375, -0.04888916015625, 0.06536865234375, 0.03790283203125, -0.032196044921875, 0.0292816162109375, 0.0028095245361328125, -0.022674560546875, 0.0168914794921875, 0.0576171875, -0.047943115234375, -0.0243072509765625, -0.013031005859375, -0.0280914306640625, -0.0286407470703125, -0.0357666015625, -0.050872802734375, 0.004547119140625, -0.0301971435546875, -0.00457763671875, 0.01125335693359375, 0.0126953125, 0.043121337890625, -0.004924774169921875, 0.04541015625, 0.01374053955078125, 0.00472259521484375, -0.007358551025390625, -0.0248260498046875, -0.0008053779602050781, 0.04608154296875, -0.0261383056640625, -0.008941650390625, 0.0234527587890625, 0.0260467529296875, -0.0712890625, -0.032318115234375, -0.051544189453125, 0.0219879150390625, -0.060028076171875, -0.035247802734375, -0.00022733211517333984, -0.062286376953125, 0.0037708282470703125, 0.0172576904296875, -0.05389404296875, -0.0064697265625, 0.0283050537109375, 0.06317138671875, -0.03857421875, 0.048065185546875, -0.0208587646484375, 0.0302581787109375, -0.01947021484375, 0.01617431640625, -0.1292724609375, -0.02496337890625, 0.00428009033203125, 0.099609375, -0.0286865234375, 0.01300048828125, -0.07122802734375, 0.046112060546875, -0.008026123046875, -0.026763916015625, 0.00844573974609375, 0.007843017578125, -0.01386260986328125, 0.01320648193359375, -0.0158538818359375, -0.01520538330078125, -0.002529144287109375, -0.01544189453125, -0.044647216796875, 0.0076751708984375, -0.021270751953125, 0.023834228515625, -0.005218505859375, -0.02081298828125, -0.052947998046875, -0.035491943359375, -0.01352691650390625, 0.04449462890625, -0.01611328125, -0.001495361328125, -0.05804443359375, -0.064453125, 0.013092041015625, 0.037628173828125, -0.024444580078125, 0.00914764404296875, 0.04522705078125, 0.0218658447265625, -0.0197601318359375, -0.031036376953125, -0.0020732879638671875, 0.07025146484375, 0.023162841796875, 0.005634307861328125, 0.04296875, -0.06610107421875, 0.03070068359375, 0.066650390625, 0.0253448486328125, 0.00970458984375, 0.04583740234375, -0.0121917724609375, -0.0484619140625, 0.058837890625, -0.0018167495727539062, -0.051910400390625, -0.007442474365234375, -0.008636474609375, 0.01934814453125, -0.005222320556640625, -0.0267486572265625, 0.0169525146484375, -0.0174102783203125, 0.0105438232421875, -0.01314544677734375, 0.01372528076171875, -0.031463623046875, 0.05718994140625, -0.0254974365234375, 0.00763702392578125, 0.0011110305786132812, -0.0057220458984375, -0.001953125, -0.0010318756103515625, 0.0088043212890625, 0.0277099609375, 0.047607421875, -0.0025043487548828125, 0.041412353515625, -0.040374755859375, 0.02142333984375, -0.03363037109375, 0.037506103515625, -0.008331298828125, -0.033782958984375, 0.0249481201171875, -0.025909423828125, -0.056549072265625, -0.0086822509765625, 0.01751708984375, -0.0004413127899169922, 0.0303955078125, 0.032501220703125, -0.0279693603515625, -0.0030364990234375, -0.00370025634765625, 0.039306640625, 0.0207061767578125, -0.007076263427734375, 0.037567138671875, 0.01204681396484375, 0.0426025390625, 0.0160369873046875, -0.0173492431640625, 0.0165557861328125, 0.048980712890625, -0.0212860107421875, 0.0142822265625, 0.034027099609375, -0.03179931640625, 0.00308990478515625, 0.018310546875, -0.01535797119140625, 0.0142059326171875, 0.039031982421875, 0.0016460418701171875, 0.01448822021484375, -0.006832122802734375, 0.005008697509765625, 0.0154571533203125, -0.00336456298828125, 0.014923095703125, -0.0087890625, -0.04803466796875, -0.00632476806640625, 0.0276641845703125, 0.033477783203125, -0.011383056640625, -0.035064697265625, -0.01995849609375, -0.0382080078125, -0.0200958251953125, 0.0277862548828125, -0.07684326171875, 0.0318603515625, 0.0443115234375, -0.0335693359375, -0.0166168212890625, -0.02459716796875, 0.00937652587890625, -0.01251220703125, -0.0182647705078125, -0.031890869140625, 0.04254150390625, -0.0243988037109375, -0.007770538330078125, -0.025634765625, 0.0233154296875, -0.059722900390625, 0.006259918212890625, 0.055511474609375, 0.02044677734375, 0.0177001953125, -0.0278167724609375, -0.031463623046875, -0.035400390625, 0.01666259765625, -0.0304107666015625, 0.005767822265625, -0.0211639404296875, 0.004024505615234375, 0.0250091552734375, 0.039306640625, 0.05206298828125, -0.0155792236328125, 0.00807952880859375, -0.0192413330078125, 0.0228271484375, -0.036102294921875, -0.012237548828125, -0.0008816719055175781, -0.023193359375, -0.034088134765625, -0.00789642333984375, 0.065185546875, -0.012451171875, 0.0002428293228149414, -0.0236053466796875, 0.005626678466796875, -0.0181427001953125, 0.00954437255859375, 0.0005273818969726562, 0.02899169921875, 0.01206207275390625, -0.00641632080078125, -0.023468017578125, -0.00658416748046875, -0.039520263671875, 0.05926513671875, -0.04010009765625, 0.003917694091796875, -0.0289154052734375, 0.0106353759765625, 0.05487060546875, -0.006114959716796875, -0.031768798828125, -0.00870513916015625, 0.000021398067474365234, -0.0095977783203125, 0.040771484375, -0.01358795166015625, 0.00508880615234375, 0.0546875, 0.037109375, 0.042877197265625, 0.0170135498046875, 0.035797119140625, 0.006381988525390625, -0.0098724365234375, -0.044525146484375, 0.0307769775390625, 0.0082855224609375, -0.0189208984375, -0.0032062530517578125, -0.01418304443359375, 0.0034637451171875, 0.00664520263671875, -0.01001739501953125, 0.032073974609375, -0.0096588134765625, 0.01184844970703125, 0.0123748779296875, 0.005344390869140625, 0.036529541015625, 0.007068634033203125, -0.0026607513427734375, -0.04547119140625, 0.04296875, -0.0258026123046875, -0.005710601806640625, 0.0064239501953125, -0.005931854248046875, 0.01537322998046875, -0.006927490234375, 0.030670166015625, 0.006626129150390625, -0.053680419921875, 0.01500701904296875, 0.0406494140625, 0.0181732177734375, -0.053924560546875, 0.034515380859375, -0.006946563720703125, 0.009674072265625, -0.03985595703125, 0.04034423828125, 0.00664520263671875, 0.029296875, -0.0083770751953125, 0.0283660888671875, 0.041595458984375, 0.0325927734375, 0.0037899017333984375, -0.0181732177734375, 0.04327392578125, -0.050048828125, 0.049560546875, -0.034271240234375, -0.00829315185546875, 0.00922393798828125, -0.033935546875, 0.0005612373352050781, -0.003360748291015625, -0.004100799560546875, -0.0128173828125, 0.0011081695556640625, 0.072998046875, -0.0259552001953125, -0.0251617431640625, 0.031341552734375, 0.00801849365234375, -0.0194854736328125, 0.0310211181640625, 0.048583984375, -0.06732177734375, -0.08148193359375, 0.036529541015625, -0.10223388671875, -0.038360595703125, -0.0176544189453125, -0.06695556640625, 0.0635986328125, 0.0097198486328125, 0.029083251953125, -0.00817108154296875, 0.0196380615234375, 0.0009279251098632812, -0.00212860107421875, 0.0140380859375, -0.0221405029296875, -0.0269317626953125, -0.040985107421875, -0.0005402565002441406, 0.0183563232421875, -0.02532958984375, 0.0025043487548828125, 0.040740966796875, 0.0128021240234375, -0.05267333984375, 0.0010271072387695312, 0.05401611328125, 0.0266265869140625, 0.019561767578125, 0.043060302734375, -0.01044464111328125, 0.010162353515625, -0.012786865234375, -0.046661376953125, 0.01491546630859375, -0.0330810546875, -0.0167694091796875, 0.0233306884765625, 0.00016736984252929688, -0.003215789794921875, -0.0061798095703125, 0.07147216796875, -0.04052734375, -0.01038360595703125, 0.03759765625, -0.049591064453125, 0.0259857177734375, 0.03472900390625, 0.057342529296875, -0.02386474609375, -0.0169830322265625, -0.016754150390625, 0.0455322265625, 0.02197265625, -0.040771484375, -0.007274627685546875, -0.01264190673828125, -0.003345489501953125, -0.007476806640625, -0.0372314453125, 0.0200958251953125, 0.0307769775390625, 0.014068603515625, 0.005077362060546875, 0.026031494140625, -0.02484130859375, -0.0015172958374023438, 0.0213623046875, 0.037933349609375, -0.016204833984375, -0.01360321044921875, 0.00368499755859375, -0.0003933906555175781, 0.0155181884765625, 0.00939178466796875, 0.0562744140625, -0.060394287109375, -0.038055419921875, -0.048309326171875, 0.0263519287109375, 0.05133056640625, 0.007724761962890625, -0.003803253173828125, 0.02044677734375, -0.06817626953125, 0.01161956787109375, -0.0321044921875, -0.0011682510375976562, -0.0146636962890625, 0.04736328125, 0.03125, 0.054931640625, -0.0137939453125, -0.01593017578125, -0.034393310546875, 0.0212249755859375, -0.0037784576416015625, 0.0279541015625, -0.021453857421875, 0.00705718994140625, 0.0246429443359375, 0.017547607421875, 0.0218353271484375, -0.04583740234375, 0.018035888671875, -0.011932373046875, -0.051055908203125, 0.0001780986785888672, 0.032440185546875, -0.0263824462890625, 0.0154571533203125, -0.0195770263671875, 0.0078125, 0.01297760009765625, -0.0074615478515625, -0.03125, -0.0007863044738769531, 0.06158447265625, -0.044921875, 0.03497314453125, -0.00052642822265625, -0.027069091796875, 0.019500732421875, 0.0269012451171875, 0.046478271484375, 0.01666259765625, -0.0367431640625, 0.00920867919921875, -0.01334381103515625, -0.06280517578125, 0.00998687744140625, 0.035064697265625, -0.0467529296875, 0.041900634765625, -0.0308837890625, -0.0203399658203125, -0.01352691650390625, 0.002666473388671875, 0.0232391357421875, 0.038482666015625, -0.01395416259765625, 0.0018444061279296875, -0.07000732421875, -0.05609130859375, -0.0247039794921875, 0.044708251953125, -0.0096282958984375, 0.091552734375, -0.03216552734375, 0.01108551025390625, 0.01442718505859375, -0.00681304931640625, 0.0219879150390625, -0.002437591552734375, 0.05767822265625, 0.00705718994140625, -0.016510009765625, -0.03326416015625, 0.005443572998046875, 0.0005183219909667969, 0.036529541015625, -0.035858154296875, -0.00669097900390625, -0.0009183883666992188, 0.0118408203125, -0.00759124755859375, -0.0109100341796875, -0.03753662109375, -0.06939697265625, -0.0643310546875, 0.00780487060546875, -0.01107025146484375, 0.007526397705078125, -0.00553131103515625, 0.03955078125, 0.06549072265625, -0.00266265869140625, 0.042938232421875, -0.0255279541015625, 0.09515380859375, 0.047576904296875, 0.0089569091796875, -0.034332275390625, -0.005542755126953125, -0.004360198974609375, -0.01247406005859375, 0.0203857421875, 0.0198974609375, 0.01064300537109375, 0.0325927734375, 0.092529296875, 0.00643157958984375, 0.0213775634765625, -0.0648193359375, -0.019989013671875, 0.08734130859375, 0.01306915283203125, -0.01910400390625, 0.0469970703125, -0.01142120361328125, -0.00891876220703125, -0.0024013519287109375, -0.0019083023071289062, 0.02618408203125, -0.0185089111328125, -0.01038360595703125, 0.003753662109375, 0.047943115234375, 0.032135009765625, -0.052398681640625, 0.032928466796875, -0.0140380859375, 0.0216522216796875, 0.037139892578125, -0.05615234375, 0.0112152099609375, 0.029205322265625, -0.016082763671875, -0.005306243896484375, -0.0250091552734375, -0.017425537109375, -0.0158538818359375, 0.0140380859375, 0.055023193359375, -0.01323699951171875, -0.00304412841796875, -0.0259552001953125, -0.00638580322265625, 0.0265960693359375, -0.11724853515625, -0.021270751953125, 0.002105712890625, 0.00909423828125, -0.0179595947265625, -0.019287109375, 0.01519775390625, -0.023773193359375, -0.0083465576171875, 0.0121307373046875, 0.00469970703125, 0.0240936279296875, -0.02374267578125, -0.0594482421875, 0.0220947265625, 0.00884246826171875, -0.035980224609375, 0.03009033203125, -0.009857177734375, -0.00838470458984375, 0.036376953125, 0.006031036376953125, 0.0244598388671875, 0.0113983154296875, -0.004425048828125, -0.0007467269897460938, 0.036956787109375, 0.01299285888671875, -0.017822265625, -0.0181732177734375, 0.020416259765625, 0.01464080810546875, -0.0017900466918945312, -0.03680419921875, 0.0247344970703125, 0.0179901123046875, 0.04412841796875, -0.0015163421630859375, 0.0196685791015625, 0.0205078125, 0.0084991455078125, -0.02435302734375, -0.0139923095703125, 0.0111846923828125, 0.0308074951171875, 0.06591796875, 0.032867431640625, -0.0013341903686523438, -0.058563232421875, -0.015411376953125, 0.060638427734375, -0.0099334716796875, -0.00719451904296875, 0.0269927978515625, -0.078857421875, -0.061981201171875, -0.0110321044921875, 0.0013761520385742188, 0.03631591796875, -0.02886962890625, -0.007801055908203125, -0.002727508544921875, -0.01513671875, -0.0141448974609375, -0.03369140625, 0.040771484375, 0.0120391845703125, -0.016265869140625, 0.01428985595703125, -0.0278778076171875, -0.0159759521484375, 0.023193359375, -0.0147705078125, -0.04071044921875, -0.0030536651611328125, 0.0041961669921875, 0.0182037353515625, -0.01016998291015625, 0.02386474609375, -0.01849365234375, 0.0159454345703125, 0.006954193115234375, 0.01055908203125, 0.0003998279571533203, 0.0179443359375, 0.022979736328125, -0.0251007080078125, -0.0192108154296875, -0.0177001953125, -0.002811431884765625, 0.000942230224609375, -0.00934600830078125, 0.0205230712890625, -0.0116424560546875, -0.00971221923828125, 0.0250244140625, -0.025360107421875, 0.0202789306640625, -0.0031070709228515625, 0.0188751220703125, -0.0267486572265625, 0.039642333984375, 0.042938232421875, -0.00707244873046875, 0.02667236328125 ]
30dc550dfe4c28bdb82d0a4f001e218a3bfc3329
Wordpress Stackexchange Q: How to delete post revisions? I haven't set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions? By the way, I am using WPMU and have many blogs, so how to delete WordPress revisions for all my blogs? A: There is also a plugin, WP Optimize that can help you do this From the website: WP-Optimize is a WordPress 2.9++ database cleanup and optimization tool. It doesn't require PhpMyAdmin to optimize your database tables. It allows you to remove post revisions, comments in the spam queue, un-approved comments within few clicks.
Q: How to delete post revisions? I haven't set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions? By the way, I am using WPMU and have many blogs, so how to delete WordPress revisions for all my blogs? A: There is also a plugin, WP Optimize that can help you do this From the website: WP-Optimize is a WordPress 2.9++ database cleanup and optimization tool. It doesn't require PhpMyAdmin to optimize your database tables. It allows you to remove post revisions, comments in the spam queue, un-approved comments within few clicks. A: This is a much safer query to use and will remove related entries from the postmeta and term_relationship, unlike deathlocks query in his answer. Change the {id} to the id of each blog posts table. You can combine this query to run all the post tables at once, but try this on one table first. I've used it many times on single WP installs. DELETE a,b,c FROM wp_{id}_posts a LEFT JOIN wp_{id}_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_{id}_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision' After you run it, optimize the database in phpmyadmin. And add this line near the top of wp-config.php to prevent future revisions: define('WP_POST_REVISIONS', 0); or save one revision: define('WP_POST_REVISIONS', 1); A: To delete all of your Wordpress revisions, you could use this query: DELETE FROM wp_posts WHERE post_type = "revision"; A: You could also add this code to your theme's functions.php file: if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', 3); if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', false); This code checks if WP_POST_REVISIONS limit has been set in wp-config.php, If it hasn’t then it passes a parameter to the function that limits post revisions. In the example above, posts are limited to 3 revisions. This is a good solution when building themes for people who dont know how to (or dont want to) add code. Taken from wp-functions.com A: You can use the WP Sweep plugin to clean post revisions. After activating the plugin, go to Tools » Sweep to clean up your WordPress database. A: Thanks for the answer, markratledge. Something in the syntax regarding the {id} did not work for me. I changed {id} to 4009, one of my post ids, but no success. I found a solution on https://dev-notes.eu/2017/11/manage-and-safely-delete-revisions-in-wordpress/ DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision'; That worked fine.
wordpress
{ "language": "en", "length": 419, "provenance": "stackexchange_00019.jsonl.gz:424833", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69358" }
[ 0.011810302734375, 0.0125732421875, -0.029144287109375, -0.00273895263671875, 0.0155181884765625, -0.03485107421875, 0.031646728515625, -0.02679443359375, -0.0187530517578125, 0.018218994140625, -0.0226593017578125, -0.018585205078125, -0.01055908203125, -0.021209716796875, -0.01279449462890625, -0.053466796875, 0.037872314453125, -0.0204925537109375, 0.0222930908203125, -0.00980377197265625, -0.004680633544921875, 0.01073455810546875, 0.039886474609375, 0.07037353515625, -0.0068206787109375, 0.01085662841796875, 0.07080078125, -0.01372528076171875, -0.040283203125, -0.0628662109375, 0.01187896728515625, 0.05389404296875, 0.0097808837890625, 0.01213836669921875, 0.0140228271484375, 0.0189208984375, -0.0137176513671875, 0.0202484130859375, 0.02642822265625, -0.0166168212890625, 0.024078369140625, -0.00677490234375, -0.00307464599609375, -0.0030670166015625, -0.0268096923828125, -0.0133819580078125, 0.0235595703125, -0.00994873046875, 0.0027313232421875, 0.00585174560546875, 0.01160430908203125, 0.002532958984375, 0.032135009765625, -0.050811767578125, -0.025482177734375, -0.042083740234375, 0.0255126953125, 0.0233154296875, 0.041717529296875, -0.02850341796875, -0.054473876953125, 0.0184783935546875, 0.0195465087890625, -0.0182952880859375, -0.0362548828125, 0.019866943359375, 0.04718017578125, 0.007541656494140625, -0.0635986328125, -0.06329345703125, 0.008544921875, -0.01934814453125, 0.0171051025390625, -0.00913238525390625, -0.00139617919921875, 0.0005421638488769531, -0.00018596649169921875, 0.02880859375, 0.0227508544921875, 0.007671356201171875, 0.04296875, -0.043548583984375, 0.00850677490234375, 0.00597381591796875, 0.01197052001953125, 0.0195465087890625, 0.01137542724609375, -0.0213165283203125, -0.0445556640625, -0.0285491943359375, -0.0322265625, -0.047454833984375, -0.08026123046875, 0.038330078125, 0.01371002197265625, -0.01174163818359375, 0.031646728515625, 0.041107177734375, 0.01165008544921875, 0.00843048095703125, -0.0250091552734375, -0.032257080078125, -0.0214691162109375, -0.01385498046875, 0.00115203857421875, 0.0181121826171875, -0.019561767578125, -0.006195068359375, 0.0288848876953125, 0.042205810546875, 0.004261016845703125, -0.0007205009460449219, -0.0172882080078125, -0.061126708984375, 0.006076812744140625, 0.0134124755859375, -0.0338134765625, 0.032012939453125, 0.0302734375, -0.029022216796875, -0.0191650390625, -0.01120758056640625, -0.0205078125, -0.0075531005859375, -0.0195159912109375, -0.04559326171875, -0.007511138916015625, 0.01265716552734375, 0.013916015625, 0.0211181640625, -0.038970947265625, 0.0460205078125, 0.052276611328125, -0.042022705078125, -0.03924560546875, -0.02178955078125, 0.021514892578125, 0.007656097412109375, -0.00743865966796875, 0.0225982666015625, -0.042388916015625, -0.000035881996154785156, 0.038238525390625, -0.04132080078125, 0.04290771484375, 0.043060302734375, 0.0300750732421875, -0.01451873779296875, 0.021087646484375, -0.01401519775390625, -0.06878662109375, 0.051788330078125, 0.040313720703125, -0.025115966796875, 0.006317138671875, -0.0888671875, 0.017974853515625, -0.06890869140625, 0.04559326171875, -0.0697021484375, 0.013580322265625, 0.0068817138671875, 0.057830810546875, -0.00423431396484375, -0.02630615234375, 0.0130615234375, -0.066650390625, -0.021331787109375, 0.041778564453125, -0.037841796875, 0.0170440673828125, -0.06683349609375, 0.036163330078125, 0.00858306884765625, -0.0107269287109375, 0.059906005859375, -0.015411376953125, -0.01216888427734375, 0.0014410018920898438, 0.03997802734375, 0.033477783203125, -0.0152130126953125, -0.01247406005859375, 0.04193115234375, -0.042144775390625, -0.0267486572265625, 0.0281219482421875, 0.057952880859375, 0.034088134765625, 0.035858154296875, 0.0222320556640625, -0.03326416015625, 0.006290435791015625, -0.00008410215377807617, -0.01146697998046875, -0.037384033203125, 0.02099609375, 0.006694793701171875, -0.01056671142578125, 0.01290130615234375, -0.018157958984375, 0.00890350341796875, 0.006069183349609375, -0.0285491943359375, -0.08837890625, 0.024658203125, -0.036895751953125, 0.06414794921875, -0.02972412109375, 0.00814056396484375, 0.037017822265625, -0.005229949951171875, -0.0276641845703125, -0.0078277587890625, -0.013580322265625, 0.0167694091796875, -0.00220489501953125, 0.019927978515625, -0.01303863525390625, -0.009124755859375, -0.0262451171875, -0.0267791748046875, -0.032073974609375, 0.0021877288818359375, 0.0511474609375, -0.047393798828125, 0.00010085105895996094, -0.061187744140625, 0.041778564453125, -0.017303466796875, -0.044158935546875, 0.0531005859375, 0.028350830078125, 0.0306854248046875, 0.0096588134765625, -0.0128173828125, 0.0196533203125, -0.095947265625, 0.022705078125, 0.056182861328125, 0.01499176025390625, 0.040771484375, -0.0259246826171875, 0.003936767578125, 0.01325225830078125, -0.035430908203125, -0.0004830360412597656, 0.0027523040771484375, 0.0160675048828125, 0.035888671875, -0.00730133056640625, -0.017608642578125, 0.00792694091796875, -0.0286407470703125, 0.0192413330078125, 0.0145111083984375, -0.01253509521484375, 0.01352691650390625, -0.00914764404296875, -0.00482940673828125, 0.00972747802734375, -0.043487548828125, -0.036346435546875, -0.0288543701171875, 0.06793212890625, -0.0015611648559570312, 0.0631103515625, 0.050628662109375, -0.0230255126953125, 0.01190948486328125, 0.0040130615234375, -0.01438140869140625, 0.0142364501953125, -0.0205230712890625, -0.037841796875, -0.01406097412109375, -0.0281982421875, 0.03424072265625, 0.0284271240234375, -0.021575927734375, -0.020660400390625, 0.01483154296875, 0.018585205078125, -0.01316070556640625, -5.960464477539062e-7, -0.045684814453125, 0.00981903076171875, -0.0177459716796875, -0.0113067626953125, -0.031280517578125, 0.0280303955078125, -0.0081939697265625, -0.01062774658203125, -0.004199981689453125, -0.008087158203125, -0.02532958984375, 0.0271453857421875, -0.058319091796875, 0.05841064453125, -0.01007843017578125, 0.056793212890625, 0.0865478515625, -0.0007443428039550781, 0.033355712890625, 0.00394439697265625, 0.029541015625, 0.02960205078125, -0.001201629638671875, -0.01329803466796875, -0.009307861328125, -0.06024169921875, -0.03436279296875, 0.00949859619140625, -0.024566650390625, 0.0101165771484375, -0.00937652587890625, -0.0261993408203125, -0.00701904296875, -0.0836181640625, -0.0306396484375, -0.0219879150390625, -0.02374267578125, -0.01416015625, -0.0103912353515625, 0.003704071044921875, -0.00807952880859375, -0.004383087158203125, 0.00711822509765625, 0.04095458984375, -0.01216888427734375, -0.028045654296875, -0.0286102294921875, -0.078857421875, -0.052459716796875, 0.002567291259765625, 0.0117645263671875, 0.0003216266632080078, 0.0804443359375, 0.006031036376953125, -0.05682373046875, -0.00937652587890625, -0.0249176025390625, -0.0183563232421875, 0.0008897781372070312, 0.0268707275390625, 0.0009775161743164062, -0.03045654296875, 0.021453857421875, 0.023468017578125, 0.026153564453125, -0.042724609375, -0.0251312255859375, -0.012054443359375, -0.006290435791015625, 0.02178955078125, -0.01284027099609375, -0.0176544189453125, -0.0054931640625, -0.007236480712890625, -0.045257568359375, 0.018951416015625, -0.0085601806640625, -0.01904296875, -0.032196044921875, 0.001163482666015625, -0.01255035400390625, -0.011810302734375, -0.00833892822265625, 0.044677734375, 0.03302001953125, 0.042144775390625, 0.0187225341796875, -0.0298004150390625, -0.0015277862548828125, 0.0232086181640625, -0.06109619140625, 0.040496826171875, -0.0172119140625, 0.020111083984375, 0.01506805419921875, -0.0007810592651367188, -0.004032135009765625, -0.0284423828125, -0.039459228515625, 0.0012454986572265625, 0.0109405517578125, -0.020599365234375, 0.058074951171875, -0.037994384765625, -0.015350341796875, -0.02972412109375, 0.07489013671875, -0.00910186767578125, -0.023468017578125, -0.031646728515625, 0.00579833984375, -0.00445556640625, -0.0231781005859375, 0.013214111328125, -0.0164947509765625, -0.09002685546875, 0.0162811279296875, -0.0007748603820800781, -0.031524658203125, -0.048095703125, 0.038787841796875, -0.07208251953125, -0.03948974609375, 0.0309295654296875, -0.037506103515625, 0.0182037353515625, -0.01470184326171875, 0.017303466796875, -0.0394287109375, -0.017791748046875, -0.028961181640625, -0.02606201171875, 0.0030059814453125, -0.02972412109375, 0.0188446044921875, 0.0220184326171875, 0.00424957275390625, 0.00829315185546875, 0.0325927734375, -0.0019102096557617188, 0.0088043212890625, -0.01273345947265625, 0.0251922607421875, -0.06390380859375, -0.0116729736328125, -0.015380859375, -0.041748046875, -0.0236663818359375, -0.034027099609375, 0.00737762451171875, -0.005405426025390625, -0.035003662109375, -0.00618743896484375, -0.038970947265625, 0.0073089599609375, -0.033721923828125, -0.027313232421875, -0.038787841796875, 0.0133514404296875, -0.046722412109375, 0.0269012451171875, -0.026702880859375, -0.058197021484375, 0.04736328125, 0.01221466064453125, 0.00632476806640625, 0.005352020263671875, 0.072509765625, 0.002780914306640625, -0.0209197998046875, -0.06890869140625, -0.0389404296875, -0.00626373291015625, 0.01436614990234375, 0.078857421875, 0.0201263427734375, 0.01861572265625, 0.0506591796875, -0.0249481201171875, -0.00872802734375, -0.004730224609375, 0.003635406494140625, -0.00699615478515625, 0.00042748451232910156, 0.00428009033203125, -0.0164947509765625, 0.0462646484375, 0.045989990234375, 0.0211029052734375, -0.0199737548828125, 0.03778076171875, 0.0386962890625, -0.0157012939453125, -0.0308074951171875, -0.0210723876953125, -0.01053619384765625, 0.004459381103515625, -0.054901123046875, 0.042449951171875, 0.0295562744140625, -0.007587432861328125, 0.015716552734375, 0.00839996337890625, 0.006534576416015625, -0.0284423828125, 0.0330810546875, -0.034423828125, 0.0248870849609375, -0.003963470458984375, -0.01248931884765625, -0.0389404296875, -0.01093292236328125, 0.02947998046875, -0.00690460205078125, -0.06390380859375, 0.01432037353515625, 0.0158538818359375, 0.00946044921875, 0.007198333740234375, -0.0013904571533203125, 0.006587982177734375, 0.0085601806640625, 0.0019550323486328125, -0.0199127197265625, -0.0251007080078125, 0.0075836181640625, -0.034393310546875, 0.049896240234375, -0.00827789306640625, 0.00023615360260009766, 0.0616455078125, 0.00019121170043945312, 0.0203399658203125, 0.0142364501953125, -0.018463134765625, 0.0599365234375, 0.0266265869140625, 0.002231597900390625, 0.0187835693359375, 0.011138916015625, 0.005298614501953125, -0.04541015625, -0.031463623046875, -0.0193328857421875, -0.036712646484375, 0.0211334228515625, 0.01251983642578125, 0.011505126953125, 0.02459716796875, 0.0067291259765625, 0.0216217041015625, -0.01136016845703125, 0.0028400421142578125, 0.0037994384765625, -0.042755126953125, 0.01690673828125, 0.0516357421875, 0.00519561767578125, -0.004474639892578125, 0.017059326171875, -0.04010009765625, -0.008758544921875, -0.01348876953125, 0.01105499267578125, -0.02325439453125, -0.02435302734375, -0.01490020751953125, -0.043060302734375, -0.037139892578125, -0.010498046875, -0.0022335052490234375, -0.0235595703125, -0.0001633167266845703, -0.01457977294921875, 0.030792236328125, 0.013641357421875, 0.0026607513427734375, -0.005886077880859375, -0.01934814453125, 0.035308837890625, 0.005809783935546875, 0.022064208984375, -0.0355224609375, -0.007083892822265625, -0.032257080078125, -0.04656982421875, -0.018280029296875, -0.01268768310546875, -0.0277557373046875, -0.0208282470703125, 0.004528045654296875, 0.0078887939453125, 0.017486572265625, -0.0009264945983886719, -0.01079559326171875, -0.01611328125, 0.01099395751953125, 0.01287841796875, 0.0208740234375, -0.0075836181640625, 0.01438140869140625, 0.005512237548828125, -0.0125732421875, -0.00032448768615722656, 0.0284271240234375, 0.03436279296875, -0.027374267578125, 0.0423583984375, -0.037322998046875, -0.056793212890625, -0.0244598388671875, -0.046051025390625, -0.016021728515625, 0.01505279541015625, -0.0226898193359375, 0.01104736328125, -0.03912353515625, 0.0021381378173828125, -0.0209808349609375, 0.062744140625, -0.04498291015625, 0.019866943359375, 0.018035888671875, -0.009979248046875, 0.00905609130859375, -0.022857666015625, -0.0030460357666015625, 0.00676727294921875, -0.0015878677368164062, -0.0011091232299804688, -0.001251220703125, 0.0272979736328125, -0.0021209716796875, 0.01448822021484375, -0.0268096923828125, 0.003204345703125, 0.0235748291015625, 0.000060439109802246094, 0.006801605224609375, 0.00151824951171875, -0.049774169921875, 0.037994384765625, 0.031005859375, -0.0023059844970703125, -0.0240325927734375, 0.0009026527404785156, -0.01415252685546875, 0.0093841552734375, 0.05047607421875, 0.043670654296875, -0.099365234375, 0.03216552734375, 0.006378173828125, 0.0215606689453125, 0.07342529296875, 0.0103607177734375, 0.0159454345703125, -0.0194091796875, 0.004444122314453125, -0.047149658203125, -0.016937255859375, -0.01380157470703125, -0.03704833984375, -0.00931549072265625, -0.01036834716796875, 0.031494140625, 0.031829833984375, -0.0350341796875, 0.04071044921875, 0.031463623046875, 0.00916290283203125, -0.036773681640625, 0.0113983154296875, 0.041717529296875, -0.0264739990234375, -0.0740966796875, 0.046112060546875, 0.006511688232421875, -0.018707275390625, 0.0299072265625, -0.0217742919921875, -0.01384735107421875, 0.056427001953125, -0.046295166015625, 0.058563232421875, 0.0030612945556640625, -0.013916015625, -0.06671142578125, -0.047760009765625, 0.0188140869140625, -0.0179290771484375, -0.020355224609375, 0.046661376953125, -0.0234527587890625, -0.069580078125, -0.01398468017578125, -0.00284576416015625, 0.11419677734375, -0.03857421875, -0.0162353515625, 0.0234527587890625, 0.0213470458984375, -0.0245208740234375, -0.035736083984375, -0.0288238525390625, -0.04779052734375, -0.008544921875, -0.050262451171875, -0.0438232421875, 0.03253173828125, -0.04638671875, -0.07928466796875, 0.11846923828125, -0.0073089599609375, 0.049713134765625, -0.0036716461181640625, 0.041595458984375, 0.0010881423950195312, 0.0293426513671875, 0.0004086494445800781, 0.07568359375, -0.004253387451171875, -0.0166168212890625, -0.0579833984375, -0.0036754608154296875, -0.016448974609375, 0.038360595703125, 0.0615234375, 0.0235443115234375, -0.012847900390625, -0.0211944580078125, 0.01885986328125, 0.03314208984375, -0.002788543701171875, 0.0286407470703125, 0.014739990234375, 0.00040149688720703125, 0.042724609375, -0.031005859375, 0.027191162109375, -0.00632476806640625, 0.0247650146484375, 0.0231475830078125, 0.021331787109375, 0.032257080078125, 0.0013942718505859375, 0.0386962890625, -0.0091705322265625, -0.006561279296875, 0.01110076904296875, 0.018890380859375, 0.0202484130859375, 0.01342010498046875, 0.043731689453125, -0.053131103515625, -0.0147857666015625, -0.0034637451171875, 0.042755126953125, 0.015228271484375, 0.00977325439453125, 0.06396484375, 0.0215606689453125, 0.00763702392578125, -0.005519866943359375, 0.01003265380859375, -0.00931549072265625, -0.002826690673828125, 0.03594970703125, 0.03973388671875, 0.02117919921875, -0.00890350341796875, -0.0246429443359375, 0.044158935546875, 0.046142578125, -0.028411865234375, -0.037994384765625, 0.0230865478515625, 0.0178070068359375, 0.0018129348754882812, -0.00843048095703125, 0.01113128662109375, -0.06591796875, -0.002353668212890625, 0.001617431640625, -0.0017843246459960938, 0.0009646415710449219, -0.0093994140625, 0.01012420654296875, 0.0252838134765625, 0.008087158203125, 0.02447509765625, -0.007293701171875, -0.0118560791015625, -0.004909515380859375, 0.0005021095275878906, 0.00875091552734375, 0.01003265380859375, 0.0203094482421875, 0.01013946533203125, 0.0178375244140625, 0.0379638671875, 0.01551055908203125, -0.04034423828125, -0.0394287109375, -0.0792236328125, 0.04461669921875, 0.043426513671875, 0.047943115234375, -0.05596923828125, 0.038055419921875, 0.01611328125, -0.056396484375, -0.0154571533203125, -0.0007419586181640625, -0.00457000732421875, 0.023590087890625, -0.0038852691650390625, -0.0269622802734375, -0.0276336669921875, -0.04119873046875, -0.01049041748046875, 0.03668212890625, -0.00975799560546875, 0.0239715576171875, -0.00304412841796875, 0.0252838134765625, -0.002681732177734375, 0.0267791748046875, 0.01068878173828125, -0.0504150390625, 0.032135009765625, -0.048431396484375, -0.006031036376953125, -0.02752685546875, -0.01837158203125, -0.0013713836669921875, 0.01059722900390625, -0.03265380859375, 0.04595947265625, -0.0241241455078125, -0.03790283203125, 0.0166473388671875, 0.0285186767578125, -0.0120391845703125, 0.0008053779602050781, 0.0101470947265625, -0.027587890625, -0.033599853515625, -0.0262451171875, -0.0154266357421875, 0.028076171875, 0.0168304443359375, 0.0489501953125, -0.01555633544921875, 0.017181396484375, -0.016937255859375, 0.019805908203125, -0.0266265869140625, 0.01031494140625, -0.021209716796875, 0.0170440673828125, 0.018035888671875, -0.0082550048828125, -0.02557373046875, 0.01238250732421875, 0.0262451171875, -0.0232696533203125, 0.04644775390625, -0.05279541015625, 0.007122039794921875, -0.03546142578125, -0.0126953125, -0.030792236328125, -0.00939178466796875, -0.0041656494140625, -0.0027179718017578125, 0.0203094482421875, -0.00736236572265625, -0.013092041015625, 0.00937652587890625, 0.017974853515625, -0.036773681640625, 0.01065826416015625, -0.017730712890625, 0.007781982421875, 0.031982421875, 0.0266265869140625, 0.01177215576171875, 0.00811767578125, -0.01136016845703125, -0.00884246826171875, 0.0294647216796875, -0.053497314453125, 0.03778076171875, -0.039154052734375, -0.039581298828125, -0.00502777099609375, 0.0121612548828125, 0.0005106925964355469, 0.003856658935546875, -0.0298919677734375, -0.00864410400390625, -0.0025348663330078125, 0.034576416015625, -0.0163421630859375, -0.01395416259765625, -0.045379638671875, -0.027923583984375, -0.0293121337890625, -0.086181640625, -0.024017333984375, 0.0019855499267578125, 0.0279083251953125, 0.005924224853515625, -0.05487060546875, 0.04974365234375, -0.035797119140625, -0.0008320808410644531, -0.00238037109375, -0.00791168212890625, -0.0251922607421875, -0.002689361572265625, -0.016571044921875, -0.05242919921875, -0.053253173828125, 0.0692138671875, -0.041229248046875, 0.0103759765625, 0.034454345703125, -0.0237274169921875, -0.0272369384765625, -0.014312744140625, 0.017852783203125, 0.019622802734375, -0.0052032470703125, -0.0200347900390625, 0.052001953125, 0.007045745849609375, -0.004146575927734375, -0.10693359375, -0.032958984375, -0.0421142578125, 0.05718994140625, -0.016998291015625, -0.0008587837219238281, 0.00958251953125, -0.038543701171875, -0.0819091796875, 0.06378173828125, -0.02777099609375, -0.032073974609375, -0.058441162109375, 0.0035037994384765625, 0.007091522216796875, 0.030364990234375, -0.0037994384765625, -0.01236724853515625, -0.04254150390625, 0.0212249755859375, -0.0048675537109375, 0.06414794921875, -0.031585693359375, 0.01337432861328125, 0.0279541015625, 0.0537109375, 0.046539306640625, -0.0118255615234375, 0.009002685546875, 0.00027370452880859375, 0.0227508544921875, 0.07470703125, -0.00991058349609375, -0.03070068359375, -0.0189361572265625, -0.061126708984375, -0.007015228271484375, 0.0113983154296875, -0.0679931640625, -0.042144775390625, 0.080078125, 0.06610107421875, 0.037353515625, -0.0178680419921875, 0.036224365234375, 0.00983428955078125, -0.0477294921875, -0.0173187255859375, 0.031463623046875, -0.040771484375, -0.0201263427734375, 0.000782012939453125, 0.002552032470703125, -0.0177001953125, -0.060546875, -0.036102294921875, -0.0269012451171875, -0.052642822265625, 0.0338134765625, -0.022491455078125, 0.02496337890625, -0.0216064453125, 0.00299835205078125, 0.0229339599609375, -0.02410888671875, 0.0005850791931152344, -0.004627227783203125, 0.00800323486328125, -0.0050048828125, -0.0469970703125, -0.007358551025390625, 0.04718017578125, -0.01061248779296875, 0.01114654541015625, -0.061279296875, -0.037017822265625, -0.005435943603515625, 0.004550933837890625, 0.0032253265380859375, -0.0084381103515625, 0.02410888671875, -0.005870819091796875, -0.024078369140625, 0.046173095703125, -0.01482391357421875, 0.060821533203125, 0.0067901611328125, 0.0241851806640625, -0.0382080078125, -0.0024089813232421875, 0.01210784912109375, -0.042938232421875, 0.0037250518798828125, 0.016326904296875, 0.014434814453125, -0.038818359375, 0.060638427734375, 0.0227203369140625, 0.0211334228515625, 0.0252838134765625 ]
8870bd4aa4087bc81d8515712bf61fe660b5214d
Wordpress Stackexchange Q: Hook for post and page load I need to run a function when a particular post or page is loaded. Is there any hook that lets me check whether a post is being displayed during page load ? A: You can use the wp hook and check the global $wp_query object or any conditional. add_action( 'wp', 'wpse69369_special_thingy' ); function wpse69369_special_thingy() { if ( 'special_cpt' === get_post_type() AND is_singular() ) return print "Yo World!"; return printf( '<p>Nothing to see here! Check the object!<br /></p><pre>%s</pre>', var_export( $GLOBALS['wp_query'], true ) ); } See: wp in codex.wordpress.org and wp in developer.wordpress.org
Q: Hook for post and page load I need to run a function when a particular post or page is loaded. Is there any hook that lets me check whether a post is being displayed during page load ? A: You can use the wp hook and check the global $wp_query object or any conditional. add_action( 'wp', 'wpse69369_special_thingy' ); function wpse69369_special_thingy() { if ( 'special_cpt' === get_post_type() AND is_singular() ) return print "Yo World!"; return printf( '<p>Nothing to see here! Check the object!<br /></p><pre>%s</pre>', var_export( $GLOBALS['wp_query'], true ) ); } See: wp in codex.wordpress.org and wp in developer.wordpress.org A: Use template_redirect which is the action hook that fires before rendering the template; add_action('template_redirect', 'hooker'); function hooker(){ //I load just before selecting and rendering the template to screen } A: I've quite often used the following to load in custom meta boxes on pages (rather than custom posts). add_action('admin_init','how_we_do_it_meta'); function how_we_do_it_meta() { if ( $_SERVER['SCRIPT_NAME'] == '/wp-admin/post.php' ) { $post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID']; $template_file = get_post_meta($post_id,'_wp_page_template',TRUE); if ($template_file == 'page-how-we-do-it.php') { add_meta_box('how_we_do_it_who-meta', 'Who we work with...', 'how_we_do_it_who', 'page', 'normal', 'high'); add_action('save_post', 'save_how_we_do_it_meta'); } } }
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:424836", "question_score": "28", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69369" }
[ 0.034698486328125, 0.0191802978515625, -0.038787841796875, -0.032257080078125, 0.0316162109375, -0.034271240234375, 0.0352783203125, -0.01483154296875, -0.0032825469970703125, 0.0010576248168945312, -0.0784912109375, 0.0169677734375, -0.0244140625, -0.004253387451171875, 0.01232147216796875, -0.047271728515625, 0.044525146484375, -0.0313720703125, 0.033447265625, -0.01029205322265625, 0.01104736328125, 0.0141448974609375, 0.05072021484375, 0.044891357421875, 0.03741455078125, -0.038299560546875, 0.0777587890625, 0.00606536865234375, 0.036407470703125, -0.00672149658203125, 0.037109375, -0.042572021484375, 0.0183868408203125, 0.035186767578125, -0.033050537109375, 0.018707275390625, 0.016693115234375, 0.0170745849609375, 0.0055389404296875, 0.04876708984375, 0.0193023681640625, -0.0095062255859375, -0.0199737548828125, -0.00801849365234375, -0.0028972625732421875, -0.03717041015625, 0.0164642333984375, -0.052337646484375, 0.0251922607421875, 0.0022830963134765625, 0.0248870849609375, 0.020294189453125, 0.0203094482421875, -0.00396728515625, -0.0016679763793945312, 0.036773681640625, -0.04608154296875, 0.0238800048828125, 0.03448486328125, 0.0131378173828125, -0.01371002197265625, -0.035552978515625, 0.007640838623046875, -0.0263671875, -0.001285552978515625, 0.00046896934509277344, 0.0024394989013671875, 0.021270751953125, -0.047149658203125, -0.01528167724609375, 0.033050537109375, -0.029876708984375, -0.044708251953125, 0.007198333740234375, -0.00917816162109375, -0.02972412109375, 0.0274658203125, -0.0259857177734375, -0.0111541748046875, 0.060302734375, -0.00197601318359375, -0.009979248046875, -0.039031982421875, -0.0005555152893066406, 0.0258331298828125, 0.031402587890625, -0.0174713134765625, -0.015960693359375, -0.020355224609375, -0.048919677734375, -0.02374267578125, 0.043731689453125, -0.031768798828125, -0.0552978515625, -0.0557861328125, -0.02545166015625, -0.0108489990234375, 0.036407470703125, -0.037139892578125, 0.0047454833984375, -0.0267181396484375, -0.01175689697265625, 0.0131072998046875, -0.03582763671875, 0.0167694091796875, 0.0430908203125, 0.0185546875, -0.010009765625, 0.009307861328125, -0.0018978118896484375, -0.01023101806640625, 0.0218963623046875, 0.00812530517578125, 0.0257568359375, -0.051666259765625, 0.01001739501953125, -0.01490020751953125, -0.0284423828125, -0.0244140625, 0.016693115234375, 0.02288818359375, 0.00852203369140625, 0.04937744140625, -0.0239715576171875, 0.0322265625, 0.0218353271484375, -0.052978515625, -0.0478515625, 0.006649017333984375, 0.0116729736328125, 0.0035762786865234375, 0.00274658203125, 0.0177764892578125, 0.01959228515625, -0.007904052734375, -0.0015687942504882812, 0.01340484619140625, 0.005184173583984375, -0.0132904052734375, 0.0175628662109375, -0.033477783203125, -0.0455322265625, -0.01149749755859375, -0.0200042724609375, 0.009185791015625, 0.01361846923828125, 0.019378662109375, 0.00884246826171875, -0.0002682209014892578, -0.02532958984375, 0.0000514984130859375, 0.0018739700317382812, 0.02215576171875, 0.00894927978515625, 0.0355224609375, -0.00571441650390625, 0.0555419921875, -0.03143310546875, -0.0214996337890625, -0.019866943359375, 0.0013179779052734375, -0.01230621337890625, -0.0086212158203125, -0.035552978515625, -0.0477294921875, 0.0086517333984375, -0.02783203125, 0.00917816162109375, 0.01122283935546875, -0.0122833251953125, 0.010406494140625, 0.010223388671875, 0.0155487060546875, 0.00765228271484375, 0.00433349609375, 0.0084228515625, 0.00634765625, 0.0266571044921875, 0.031982421875, 0.000012278556823730469, -0.024627685546875, -0.022552490234375, 0.09503173828125, -0.033477783203125, -0.072509765625, 0.0693359375, 0.0144805908203125, 0.059173583984375, 0.0001863241195678711, 0.0020751953125, 0.049652099609375, 0.046539306640625, 0.00009119510650634766, 0.018341064453125, -0.0014524459838867188, -0.0283203125, -0.020660400390625, -0.001804351806640625, -0.00513458251953125, -0.01561737060546875, 0.026031494140625, 0.0184326171875, -0.0179901123046875, -0.0063323974609375, -0.08660888671875, -0.002056121826171875, -0.0217437744140625, 0.035919189453125, 0.0340576171875, 0.034515380859375, -0.0062103271484375, 0.01369476318359375, -0.023468017578125, -0.0224761962890625, -0.0301666259765625, 0.02215576171875, -0.0287628173828125, 0.0186309814453125, -0.0065460205078125, 0.0232391357421875, -0.017333984375, -0.01849365234375, -0.03302001953125, -0.017242431640625, 0.0304412841796875, 0.01421356201171875, -0.00901031494140625, -0.003810882568359375, 0.0310516357421875, 0.0294952392578125, -0.0182037353515625, -0.0088653564453125, 0.0253448486328125, 0.0411376953125, -0.026275634765625, -0.0150299072265625, -0.0087738037109375, -0.058868408203125, 0.00711822509765625, 0.06646728515625, 0.023193359375, 0.039337158203125, -0.0230560302734375, -0.0035839080810546875, 0.043426513671875, -0.024749755859375, 0.014862060546875, -0.01094818115234375, 0.004642486572265625, 0.05108642578125, 0.010009765625, 0.0330810546875, -0.001354217529296875, -0.024200439453125, 0.0081024169921875, 0.0274200439453125, 0.0183258056640625, 0.050140380859375, -0.0017414093017578125, -0.0010395050048828125, -0.018096923828125, 0.032501220703125, 0.01485443115234375, -0.0008168220520019531, 0.0176849365234375, -0.0382080078125, 0.0126495361328125, -0.0033321380615234375, 0.006832122802734375, -0.0196685791015625, 0.0109405517578125, -0.0443115234375, -0.01561737060546875, -0.0006728172302246094, 0.039794921875, 0.0013685226440429688, -0.05908203125, 0.0155181884765625, 0.01983642578125, -0.006984710693359375, -0.0279083251953125, 0.024078369140625, -0.0218353271484375, -0.007534027099609375, -0.0172576904296875, -0.0479736328125, 0.00591278076171875, -0.005039215087890625, 0.0257415771484375, 0.017974853515625, 0.020233154296875, 0.048370361328125, -0.005950927734375, 0.05792236328125, -0.00827789306640625, -0.004314422607421875, -0.01319122314453125, -0.058563232421875, 0.061248779296875, -0.045928955078125, -0.00310516357421875, 0.0703125, -0.0088958740234375, 0.028076171875, 0.004550933837890625, 0.0016527175903320312, 0.0147705078125, 0.0164031982421875, 0.0078887939453125, -0.02001953125, -0.01546478271484375, 0.04266357421875, 0.01372528076171875, 0.047637939453125, -0.0185699462890625, -0.041961669921875, -0.011627197265625, 0.00015795230865478516, -0.10614013671875, -0.1068115234375, -0.050262451171875, -0.07379150390625, 0.01270294189453125, -0.0073089599609375, -0.020263671875, 0.0001590251922607422, -0.004489898681640625, 0.02081298828125, -0.079833984375, -0.01534271240234375, -0.051361083984375, -0.07550048828125, -0.043304443359375, 0.0299224853515625, -0.00943756103515625, 0.024200439453125, 0.00753021240234375, 0.05914306640625, 0.0191192626953125, -0.061798095703125, 0.01470184326171875, 0.03607177734375, -0.0237274169921875, 0.01641845703125, -0.02349853515625, -0.0207061767578125, 0.03387451171875, -0.0051422119140625, -0.0190277099609375, 0.01471710205078125, 0.02008056640625, -0.0181884765625, 0.004261016845703125, -0.021392822265625, 0.0146026611328125, 0.05902099609375, -0.0009555816650390625, -0.03204345703125, 0.03692626953125, -0.055328369140625, -0.0092620849609375, -0.0159759521484375, -0.0504150390625, -0.03924560546875, 0.0289459228515625, 0.00250244140625, -0.0272064208984375, -0.020355224609375, -0.0006661415100097656, 0.0015058517456054688, 0.03692626953125, -0.01088714599609375, 0.004009246826171875, -0.021240234375, -0.0150146484375, -0.0231781005859375, 0.0035533905029296875, -0.00940704345703125, -0.01232147216796875, -0.02069091796875, -0.0050811767578125, -0.0384521484375, 0.0214080810546875, -0.033966064453125, -0.024017333984375, 0.0323486328125, 0.016357421875, 0.0236053466796875, -0.0183868408203125, -0.0294952392578125, -0.004131317138671875, 0.07037353515625, -0.002758026123046875, -0.00441741943359375, -0.0137786865234375, -0.001255035400390625, -0.0251312255859375, -0.038482666015625, -0.046417236328125, 0.007579803466796875, -0.065185546875, 0.01708984375, 0.001277923583984375, -0.00572967529296875, -0.056640625, 0.05279541015625, -0.0762939453125, -0.01549530029296875, 0.01177215576171875, -0.0361328125, 0.005550384521484375, -0.002071380615234375, -0.04168701171875, 0.0230712890625, -0.0106353759765625, -0.057281494140625, -0.08746337890625, -0.0164337158203125, -0.0113983154296875, 0.034912109375, 0.031707763671875, -0.08282470703125, 0.004192352294921875, 0.0318603515625, 0.032989501953125, 0.011016845703125, 0.0192413330078125, -0.0129852294921875, 0.027008056640625, -0.03546142578125, 0.01050567626953125, -0.0258941650390625, -0.0022029876708984375, -0.00682830810546875, 0.00304412841796875, 0.007740020751953125, -0.0467529296875, 0.0003750324249267578, -0.030792236328125, -0.0121307373046875, -0.007755279541015625, -0.0034351348876953125, -0.00931549072265625, 0.0347900390625, -0.0008072853088378906, 0.002712249755859375, -0.0245208740234375, -0.02789306640625, -0.0089874267578125, 0.01263427734375, -0.038848876953125, 0.0117950439453125, 0.0239105224609375, 0.035797119140625, -0.006587982177734375, -0.02667236328125, -0.031280517578125, 0.01290130615234375, 0.0094451904296875, 0.06884765625, 0.016326904296875, -0.00030112266540527344, 0.03173828125, 0.0005955696105957031, -0.008544921875, -0.020904541015625, 0.0479736328125, 0.00995635986328125, 0.002475738525390625, 0.00841522216796875, 0.00162506103515625, 0.02203369140625, 0.007610321044921875, -0.0241241455078125, -0.0209503173828125, 0.035614013671875, 0.03668212890625, -0.08087158203125, 0.08734130859375, 0.00628662109375, 0.00704193115234375, -0.0137939453125, 0.05206298828125, 0.0299530029296875, 0.01031494140625, 0.0204925537109375, -0.0094451904296875, 0.03704833984375, -0.010406494140625, 0.0293426513671875, 0.02984619140625, 0.00876617431640625, 0.0276336669921875, 0.036651611328125, -0.004512786865234375, -0.007053375244140625, -0.01413726806640625, 0.0277557373046875, -0.0229644775390625, -0.07354736328125, 0.01953125, -0.0145111083984375, 0.0256500244140625, 0.049774169921875, -0.009979248046875, 0.03271484375, 0.0462646484375, -0.0333251953125, -0.02032470703125, 0.0288848876953125, -0.018157958984375, -0.048248291015625, 0.01338958740234375, 0.002777099609375, -0.002712249755859375, 0.0303497314453125, 0.0254364013671875, -0.0142364501953125, 0.0284576416015625, -0.00911712646484375, 0.02838134765625, 0.0289154052734375, 0.031890869140625, 0.027374267578125, -0.002666473388671875, -0.020355224609375, 0.029266357421875, -0.01039886474609375, -0.019195556640625, -0.020233154296875, 0.015716552734375, 0.0168609619140625, -0.05902099609375, -0.01389312744140625, 0.041229248046875, 0.00556182861328125, -0.034088134765625, 0.05755615234375, 0.046356201171875, -0.04052734375, -0.04583740234375, 0.0035572052001953125, 0.04559326171875, 0.0086822509765625, 0.00025844573974609375, 0.004016876220703125, 0.0007901191711425781, 0.038970947265625, -0.0265960693359375, -0.0014295578002929688, 0.03497314453125, 0.0149078369140625, -0.021484375, -0.01074981689453125, 0.02239990234375, 0.00571441650390625, 0.01274871826171875, -0.0228424072265625, -0.0240936279296875, 0.0134735107421875, -0.0261383056640625, 0.045257568359375, -0.0269317626953125, -0.00897979736328125, -0.01430511474609375, 0.02386474609375, 0.027557373046875, 0.01319122314453125, -0.09039306640625, 0.0185699462890625, -0.04248046875, 0.00849151611328125, -0.0019626617431640625, -0.037353515625, -0.0682373046875, -0.029052734375, 0.0234527587890625, 0.0252685546875, 0.005687713623046875, -0.048553466796875, -0.0010528564453125, -0.005161285400390625, 0.0246429443359375, 0.01369476318359375, -0.02166748046875, 0.0738525390625, -0.0204315185546875, 0.04266357421875, 0.00968170166015625, 0.02105712890625, -0.00043463706970214844, -0.017913818359375, -0.0101165771484375, -0.04974365234375, -0.01026153564453125, 0.03369140625, -0.0191802978515625, 0.024932861328125, 0.019744873046875, 0.0115814208984375, 0.00010466575622558594, -0.0017242431640625, 0.005741119384765625, 0.0016908645629882812, 0.006221771240234375, 0.0064239501953125, -0.02093505859375, 0.033843994140625, -0.0024814605712890625, -0.00911712646484375, 0.0107879638671875, -0.0178985595703125, 0.035491943359375, 0.005985260009765625, 0.0266876220703125, -0.0293121337890625, -0.044769287109375, 0.06768798828125, 0.07037353515625, 0.021148681640625, 0.062286376953125, 0.00047850608825683594, 0.0235595703125, 0.030059814453125, 0.01296234130859375, -0.01538848876953125, -0.031646728515625, 0.036224365234375, 0.0070953369140625, -0.014404296875, 0.0275421142578125, -0.0146942138671875, -0.0021572113037109375, 0.017974853515625, 0.052459716796875, -0.034332275390625, 0.0148773193359375, 0.036468505859375, -0.0137786865234375, -0.02117919921875, -0.0245361328125, -0.016876220703125, -0.0164947509765625, 0.0694580078125, 0.01352691650390625, -0.00897979736328125, 0.0416259765625, 0.01151275634765625, -0.00746917724609375, -0.0253753662109375, 0.06793212890625, 0.0306396484375, -0.04669189453125, 0.0311279296875, 0.0265350341796875, 0.006877899169921875, -0.02978515625, 0.0074310302734375, 0.006679534912109375, -0.01113128662109375, -0.0609130859375, 0.0112457275390625, -0.0123748779296875, -0.005645751953125, 0.0124969482421875, 0.0254058837890625, -0.01114654541015625, 0.046234130859375, 0.0058441162109375, -0.0036754608154296875, 0.021331787109375, -0.032623291015625, -0.04876708984375, -0.0180206298828125, 0.0268096923828125, 0.052581787109375, -0.03411865234375, 0.038726806640625, -0.0160980224609375, -0.0135955810546875, 0.0076446533203125, -0.0229339599609375, 0.0562744140625, -0.0396728515625, -0.01739501953125, 0.0102386474609375, -0.0023403167724609375, 0.007537841796875, -0.021087646484375, 0.0288238525390625, -0.01502227783203125, 0.01546478271484375, -0.01349639892578125, -0.0255889892578125, -0.054534912109375, -0.06866455078125, -0.08135986328125, 0.08587646484375, 0.00513458251953125, 0.04290771484375, -0.0140380859375, 0.0196990966796875, -0.0038604736328125, 0.006999969482421875, -0.0701904296875, 0.1124267578125, 0.05413818359375, 0.0970458984375, -0.06622314453125, -0.016357421875, 0.04815673828125, 0.032867431640625, -0.00873565673828125, -0.01548004150390625, 0.0179595947265625, -0.0169525146484375, 0.0221099853515625, 0.052215576171875, 0.0166168212890625, -0.01593017578125, -0.0254974365234375, 0.05029296875, 0.0006461143493652344, -0.04412841796875, 0.03436279296875, -0.048248291015625, -0.07183837890625, 0.0038814544677734375, 0.027496337890625, 0.02020263671875, 0.0195159912109375, 0.0142669677734375, -0.050537109375, 0.01461029052734375, 0.04095458984375, 0.0265045166015625, -0.00769805908203125, 0.0340576171875, 0.029693603515625, -0.04815673828125, -0.045501708984375, -0.02520751953125, 0.032745361328125, 0.01253509521484375, 0.00994110107421875, 0.0111541748046875, 0.01206207275390625, 0.022796630859375, 0.001949310302734375, -0.004283905029296875, 0.044769287109375, -0.0304412841796875, 0.05975341796875, 0.0316162109375, 0.01390838623046875, -0.046142578125, -0.02252197265625, 0.0400390625, 0.07904052734375, -0.042022705078125, -0.03631591796875, 0.0160369873046875, 0.0013484954833984375, -0.03948974609375, -0.0037555694580078125, -0.027557373046875, -0.0022563934326171875, 0.05120849609375, 0.0008597373962402344, -0.0413818359375, 0.008148193359375, 0.0482177734375, 0.0078277587890625, -0.00444793701171875, -0.0189361572265625, -0.053619384765625, -0.01314544677734375, -0.010345458984375, 0.028289794921875, 0.046417236328125, -0.01276397705078125, 0.034393310546875, -0.0250091552734375, -0.002536773681640625, -0.0038509368896484375, 0.00910186767578125, 0.006526947021484375, 0.0223388671875, -0.056396484375, -0.02557373046875, 0.0185394287109375, 0.05364990234375, 0.051910400390625, 0.031646728515625, 0.055389404296875, 0.047698974609375, -0.0162811279296875, 0.0070648193359375, 0.0631103515625, -0.00225067138671875, -0.04351806640625, -0.0191802978515625, -0.011810302734375, 0.016143798828125, -0.00152587890625, 0.0096588134765625, 0.04168701171875, 0.002689361572265625, -0.03277587890625, -0.004787445068359375, -0.002292633056640625, -0.043609619140625, 0.07525634765625, 0.0188140869140625, 0.091796875, 0.00640106201171875, -0.0894775390625, -0.0152587890625, -0.024627685546875, -0.06683349609375, 0.03729248046875, 0.0548095703125, -0.01062774658203125, -0.00777435302734375, 0.06378173828125, 0.00858306884765625, 0.0082550048828125, -0.01442718505859375, 0.022064208984375, -0.041748046875, 0.0221099853515625, 0.0147705078125, -0.03839111328125, -0.02508544921875, -0.0204315185546875, 0.0340576171875, -0.0201873779296875, 0.038360595703125, -0.003662109375, 0.00791168212890625, 0.017486572265625, 0.0008392333984375, -0.00823974609375, -0.0018110275268554688, 0.015106201171875, -0.0177001953125, -0.0027866363525390625, -0.00799560546875, -0.0479736328125, 0.034423828125, 0.009552001953125, 0.0182952880859375, 0.035308837890625, -0.0472412109375, 0.0278167724609375, 0.004459381103515625, -0.004940032958984375, -0.0286712646484375, -0.01251220703125, 0.00527191162109375, 0.0118408203125, 0.0030803680419921875, -0.0031032562255859375, -0.001972198486328125, 0.00608062744140625, -0.033660888671875, -0.057525634765625, 0.0123291015625, -0.0283050537109375, -0.0225830078125, 0.0211944580078125, 0.005504608154296875, 0.007534027099609375, -0.004261016845703125, -0.0154876708984375, 0.0226593017578125, 0.0155181884765625, -0.0155487060546875, 0.0156707763671875, -0.00238037109375, -0.006252288818359375, -0.0096588134765625, 0.0205535888671875, -0.037109375, 0.00257110595703125, 0.00801849365234375, 0.0090484619140625, -0.0036067962646484375, -0.021636962890625, -0.02508544921875, -0.00231170654296875, -0.0184173583984375, 0.0051116943359375, -0.01251983642578125, -0.059295654296875, -0.02984619140625, -0.013824462890625, 0.0277252197265625, -0.01177978515625, -0.01439666748046875, -0.026336669921875, -0.0295867919921875, 0.05035400390625, -0.024200439453125, 0.0340576171875, 0.0144805908203125, 0.03729248046875, -0.0295257568359375, 0.04241943359375, 0.006717681884765625, -0.02581787109375, 0.048675537109375, 0.02423095703125, 0.0458984375, -0.049102783203125, -0.055084228515625, 0.021636962890625, 0.023651123046875, 0.063232421875, 0.039306640625, -0.004009246826171875, 0.021759033203125, 0.037200927734375, -0.02203369140625, -0.07135009765625, -0.00138092041015625, 0.0009965896606445312, 0.0223388671875, -0.009857177734375, 0.020721435546875, 0.04541015625, -0.0225677490234375, -0.06982421875, 0.0985107421875, -0.0255279541015625, -0.0155487060546875, -0.05572509765625, 0.01959228515625, 0.00501251220703125, -0.001491546630859375, -0.00785064697265625, -0.01953125, -0.039215087890625, 0.01605224609375, -0.0018758773803710938, -0.0087738037109375, 0.0390625, -0.011199951171875, -0.060791015625, -0.01111602783203125, -0.0220184326171875, -0.01593017578125, 0.0268402099609375, -0.00836181640625, 0.029541015625, 0.0521240234375, -0.039825439453125, 0.0287017822265625, -0.02374267578125, -0.0122833251953125, -0.0143585205078125, -0.0401611328125, 0.01352691650390625, 0.0179901123046875, 0.07232666015625, 0.0034923553466796875, 0.0026340484619140625, -0.043304443359375, -0.006237030029296875, -0.036041259765625, -0.05364990234375, -0.00004857778549194336, 0.0345458984375, -0.062255859375, 0.0161590576171875, 0.0193939208984375, -0.01161956787109375, -0.0013589859008789062, -0.01041412353515625, -0.042633056640625, -0.012237548828125, -0.0271453857421875, 0.005153656005859375, -0.04815673828125, -0.04425048828125, 0.063232421875, -0.033050537109375, 0.0015535354614257812, 0.0263671875, 0.0266876220703125, 0.0296173095703125, 0.049468994140625, 0.0271759033203125, 0.046295166015625, -0.041107177734375, -0.00994110107421875, 0.024566650390625, -0.027740478515625, -0.01512908935546875, -0.01104736328125, -0.007022857666015625, 0.01073455810546875, -0.0072784423828125, 0.005535125732421875, 0.02880859375, -0.007537841796875, -0.025665283203125, 0.062347412109375, -0.027099609375, 0.0794677734375, 0.0102081298828125, 0.0028476715087890625, -0.025299072265625, 0.0287322998046875, 0.01641845703125, -0.0254364013671875, 0.005275726318359375, 0.0260009765625, -0.0012216567993164062, -0.00734710693359375, 0.02166748046875, -0.00824737548828125, 0.006671905517578125, -0.0007457733154296875 ]
e648b837dc704a772fdd831c1fa5ebf9f3ad9e8e
Wordpress Stackexchange Q: shortcodes output before content Possible Duplicate: problem with short code Shortcodes are broken. For those of you playing at home, heres an easy step by step to replicate my problem. 1) Open a fresh Wordpress install (3.4.2). 2) Go into twentyeleven/functions.php and add the following: function test() { echo '-TEST-'; } add_shortcode('testshortcode', 'test'); 3) Edit the 'hello world' post to say: Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! [testshortcode] foobar 4) Save and view, my results look like the following: -TEST- Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! foobar when it should look like this: Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! -TEST- foobar What on earth is going on here? A: Shortcode callbacks have to return, not output. So use the following: function test() { return '-TEST-'; } add_shortcode( 'testshortcode', 'test' ); More info: http://codex.wordpress.org/Shortcode_API If you have to use echo you can also do it this way(useful if there's a lot of markup & it's difficult working with strings)- function test() { ob_start(); echo '-TEST-'; return ob_get_contents(); } add_shortcode( 'testshortcode', 'test' );
Q: shortcodes output before content Possible Duplicate: problem with short code Shortcodes are broken. For those of you playing at home, heres an easy step by step to replicate my problem. 1) Open a fresh Wordpress install (3.4.2). 2) Go into twentyeleven/functions.php and add the following: function test() { echo '-TEST-'; } add_shortcode('testshortcode', 'test'); 3) Edit the 'hello world' post to say: Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! [testshortcode] foobar 4) Save and view, my results look like the following: -TEST- Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! foobar when it should look like this: Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! -TEST- foobar What on earth is going on here? A: Shortcode callbacks have to return, not output. So use the following: function test() { return '-TEST-'; } add_shortcode( 'testshortcode', 'test' ); More info: http://codex.wordpress.org/Shortcode_API If you have to use echo you can also do it this way(useful if there's a lot of markup & it's difficult working with strings)- function test() { ob_start(); echo '-TEST-'; return ob_get_contents(); } add_shortcode( 'testshortcode', 'test' );
wordpress
{ "language": "en", "length": 199, "provenance": "stackexchange_00019.jsonl.gz:424841", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69386" }
[ 0.035614013671875, -0.0295867919921875, -0.00933074951171875, -0.0233306884765625, -0.0311279296875, -0.0183868408203125, 0.0011110305786132812, -0.02001953125, -0.040557861328125, 0.0107879638671875, -0.0283355712890625, 0.036895751953125, -0.04119873046875, -0.00823211669921875, -0.0031719207763671875, -0.03533935546875, 0.043853759765625, -0.019012451171875, 0.0236968994140625, -0.01213836669921875, -0.025909423828125, 0.025115966796875, 0.0238494873046875, 0.07958984375, 0.009307861328125, -0.0228118896484375, 0.0948486328125, -0.0114898681640625, -0.0104522705078125, -0.03271484375, 0.016876220703125, -0.00048160552978515625, 0.0181427001953125, 0.065673828125, -0.08404541015625, 0.0523681640625, -0.03173828125, 0.03997802734375, -0.0144805908203125, 0.050140380859375, 0.005619049072265625, -0.004421234130859375, 0.0227813720703125, -0.01171875, 0.009674072265625, -0.0288238525390625, 0.0248870849609375, -0.0321044921875, -0.0038013458251953125, 0.0372314453125, 0.034881591796875, 0.0204315185546875, 0.03125, 0.010833740234375, -0.0106658935546875, -0.00565338134765625, -0.03155517578125, 0.00768280029296875, 0.033782958984375, 0.0154266357421875, -0.01103973388671875, -0.015289306640625, 0.0166015625, -0.027557373046875, -0.004100799560546875, 0.018280029296875, 0.015869140625, 0.01198577880859375, -0.033294677734375, 0.0091552734375, 0.0142364501953125, -0.037811279296875, 0.0272369384765625, -0.030609130859375, 0.00302886962890625, 0.039642333984375, -0.047698974609375, 0.016571044921875, 0.03485107421875, -0.0177154541015625, 0.0579833984375, -0.0167236328125, 0.00423431396484375, -0.000705718994140625, 0.0167999267578125, 0.01226806640625, 0.01222991943359375, -0.0158843994140625, -0.031524658203125, -0.02239990234375, -0.0232696533203125, 0.002094268798828125, -0.0267181396484375, -0.016143798828125, -0.0158233642578125, -0.0171966552734375, -0.004161834716796875, 0.0201568603515625, 0.01007080078125, 0.0019054412841796875, -0.019927978515625, -0.0173187255859375, -0.01506805419921875, -0.01274871826171875, -0.006130218505859375, 0.009521484375, -0.020660400390625, -0.01324462890625, 0.0489501953125, 0.04681396484375, -0.0149383544921875, 0.023834228515625, -0.0245819091796875, -0.0206298828125, 0.006649017333984375, 0.04571533203125, -0.042816162109375, 0.030364990234375, 0.00775909423828125, 0.0255126953125, 0.0221099853515625, 0.029998779296875, 0.0178680419921875, -0.038818359375, 0.0109100341796875, 0.008819580078125, -0.021240234375, -0.049224853515625, 0.050018310546875, 0.0013027191162109375, -0.01030731201171875, -0.0011205673217773438, 0.00508880615234375, -0.0011577606201171875, 0.0021305084228515625, 0.0023365020751953125, 0.0221405029296875, -0.040618896484375, -0.000804901123046875, 0.0399169921875, -0.0269775390625, -0.034942626953125, 0.0031566619873046875, -0.018951416015625, 0.009857177734375, 0.035430908203125, 0.026641845703125, -0.0093536376953125, -0.034423828125, -0.0811767578125, 0.0232696533203125, -0.005779266357421875, 0.034759521484375, -0.0052490234375, -0.0391845703125, -0.009796142578125, -0.035980224609375, -0.009521484375, -0.0014972686767578125, -0.01255035400390625, -0.0001189112663269043, -0.0191497802734375, -0.0074615478515625, -0.035064697265625, -0.04901123046875, 0.030181884765625, -0.026611328125, 0.0016832351684570312, 0.0178985595703125, 0.03778076171875, -0.01291656494140625, 0.008209228515625, -0.027374267578125, -0.00695037841796875, -0.01103973388671875, -0.00830841064453125, -0.0169830322265625, 0.01425933837890625, 0.0236358642578125, 0.00691986083984375, 0.01165008544921875, -0.009002685546875, 0.039398193359375, 0.00394439697265625, -0.055694580078125, 0.037872314453125, 0.033050537109375, 0.0953369140625, -0.0115203857421875, 0.032470703125, 0.0253448486328125, 0.033843994140625, -0.05322265625, -0.005680084228515625, 0.0118560791015625, -0.003124237060546875, -0.04052734375, -0.03314208984375, -0.006916046142578125, 0.01392364501953125, 0.04327392578125, -0.007007598876953125, 0.00991058349609375, 0.0188751220703125, -0.043853759765625, 0.0209503173828125, -0.0338134765625, 0.0159454345703125, 0.0247039794921875, -0.0113372802734375, -0.00936126708984375, -0.019927978515625, 0.0091094970703125, -0.0019702911376953125, -0.03961181640625, 0.030120849609375, -0.01482391357421875, 0.0911865234375, 0.0010576248168945312, 0.06787109375, 0.0220184326171875, -0.0604248046875, 0.0207366943359375, -0.0113525390625, 0.043670654296875, -0.012939453125, -0.0211944580078125, -0.03558349609375, -0.0005860328674316406, -0.01457977294921875, -0.033111572265625, 0.0687255859375, 0.0235595703125, -0.006114959716796875, -0.047210693359375, -0.0077362060546875, -0.038116455078125, -0.0266265869140625, 0.0018367767333984375, 0.0533447265625, 0.04718017578125, 0.0298004150390625, 0.0034637451171875, -0.033477783203125, 0.08721923828125, 0.04730224609375, 0.047210693359375, -0.06915283203125, 0.01020050048828125, 0.056549072265625, -0.023223876953125, 0.00988006591796875, 0.0105743408203125, -0.0406494140625, 0.0052337646484375, 0.045501708984375, -0.0305633544921875, -0.005695343017578125, -0.0079345703125, -0.0169677734375, 0.00908660888671875, -0.07659912109375, -0.0269317626953125, -0.04437255859375, 0.042083740234375, 0.01023101806640625, 0.02471923828125, 0.003513336181640625, -0.04486083984375, 0.02203369140625, 0.02606201171875, -0.00860595703125, -0.0112152099609375, 0.034820556640625, 0.077392578125, -0.03729248046875, -0.046722412109375, -0.00017559528350830078, 0.0104827880859375, 0.007480621337890625, -0.0070953369140625, 0.04638671875, -0.01317596435546875, -0.029083251953125, 0.01537322998046875, 0.00890350341796875, -0.0272064208984375, -0.03509521484375, 0.0017757415771484375, -0.01422882080078125, -0.0277862548828125, 0.0960693359375, -0.02392578125, 0.086181640625, -0.0008306503295898438, 0.013153076171875, 0.03759765625, -0.037109375, 0.0309295654296875, -0.035614013671875, 0.025543212890625, 0.048095703125, -0.032135009765625, 0.0287322998046875, 0.0047607421875, 0.00876617431640625, -0.00199127197265625, -0.004596710205078125, -0.01158905029296875, -0.031341552734375, -0.0054168701171875, 0.0260162353515625, 0.043426513671875, 0.052398681640625, 0.017669677734375, -0.0282135009765625, 0.008209228515625, 0.050567626953125, -0.0592041015625, -0.08502197265625, 0.028076171875, -0.01326751708984375, -0.020904541015625, 0.002811431884765625, -0.01303863525390625, -0.0031223297119140625, 0.00791168212890625, -0.020538330078125, 0.035064697265625, -0.02203369140625, -0.0045166015625, -0.0146026611328125, -0.05511474609375, -0.042205810546875, 0.0104522705078125, 0.0031280517578125, 0.01367950439453125, -0.002819061279296875, -0.005802154541015625, -0.03912353515625, 0.0085601806640625, 0.033172607421875, -0.018890380859375, -0.00753021240234375, 0.0042724609375, -0.0252685546875, -0.05499267578125, -0.0067901611328125, 0.0109710693359375, -0.01447296142578125, 0.0090179443359375, -0.0012054443359375, -0.0123291015625, -0.00836944580078125, 0.008331298828125, 0.0031719207763671875, 0.00708770751953125, 0.0213775634765625, 0.0247802734375, -0.035888671875, 0.0285797119140625, 0.017669677734375, -0.01197052001953125, -0.031768798828125, -0.0181427001953125, -0.017578125, 0.0004949569702148438, 0.001430511474609375, 0.003337860107421875, 0.0244903564453125, 0.035491943359375, 0.00868988037109375, 0.0141143798828125, -0.036163330078125, -0.0390625, -0.04327392578125, 0.003612518310546875, -0.0128021240234375, -0.003833770751953125, -0.0008292198181152344, 0.027069091796875, 0.00135040283203125, 0.01371002197265625, -0.00457000732421875, -0.036102294921875, 0.05743408203125, -0.009765625, 0.04498291015625, -0.0618896484375, -0.042083740234375, -0.052703857421875, 0.0784912109375, -0.056884765625, 0.01483917236328125, 0.025665283203125, 0.0029888153076171875, -0.0165863037109375, 0.0035419464111328125, -0.114990234375, -0.00740814208984375, -0.044525146484375, 0.033660888671875, -0.0054168701171875, -0.0007710456848144531, -0.052886962890625, -0.0136260986328125, -0.051910400390625, -0.0291595458984375, 0.0223541259765625, 0.004589080810546875, 0.037078857421875, -0.051849365234375, -0.00787353515625, -0.031341552734375, -0.01308441162109375, -0.01374053955078125, -0.09130859375, -0.022186279296875, 0.00542449951171875, 0.0634765625, -0.000640869140625, -0.0284881591796875, -0.0386962890625, 0.031524658203125, -0.0015125274658203125, 0.0111083984375, 0.03125, 0.026031494140625, -0.00971221923828125, 0.00860595703125, 0.0316162109375, -0.0299530029296875, -0.0101470947265625, -0.00225830078125, 0.0241241455078125, 0.041961669921875, -0.0267791748046875, 0.0093994140625, -0.01296234130859375, -0.01514434814453125, -0.03857421875, -0.03411865234375, -0.005458831787109375, 0.01059722900390625, -0.01146697998046875, 0.0110931396484375, -0.04364013671875, -0.019805908203125, -0.0221710205078125, -0.015899658203125, -0.03387451171875, 0.01331329345703125, -0.01401519775390625, 0.0267333984375, 0.01129913330078125, 0.023834228515625, 0.027984619140625, 0.058074951171875, 0.01151275634765625, 0.0243682861328125, 0.00302886962890625, -0.0648193359375, 0.1004638671875, 0.020721435546875, 0.00823211669921875, -0.04229736328125, 0.05615234375, -0.01229095458984375, 0.01465606689453125, 0.0036449432373046875, -0.0159912109375, 0.022613525390625, -0.0167083740234375, -0.0196533203125, 0.023712158203125, 0.01380157470703125, -0.007171630859375, -0.0269012451171875, 0.0283050537109375, 0.0019330978393554688, -0.006198883056640625, -0.004871368408203125, 0.0092620849609375, 0.01302337646484375, 0.019317626953125, 0.00022327899932861328, -0.01873779296875, 0.02301025390625, 0.005126953125, 0.017364501953125, -0.01003265380859375, -0.017364501953125, 0.0218658447265625, 0.0078125, -0.020355224609375, 0.01800537109375, -0.0052032470703125, 0.051361083984375, -0.0011739730834960938, -0.038543701171875, -0.034576416015625, -0.01242828369140625, 0.041717529296875, 0.0036487579345703125, 0.0115203857421875, 0.046356201171875, 0.00970458984375, -0.0016717910766601562, -0.021728515625, -0.05145263671875, 0.0225830078125, -0.04266357421875, -0.01125335693359375, -0.042022705078125, -0.001537322998046875, 0.024139404296875, -0.01148223876953125, -0.064697265625, 0.0164642333984375, 0.0060577392578125, 0.02142333984375, -0.005947113037109375, 0.040863037109375, 0.025482177734375, -0.0189666748046875, -0.00717926025390625, 0.0223236083984375, -0.01486968994140625, -0.0443115234375, -0.02001953125, 0.048980712890625, 0.044952392578125, -0.0653076171875, -0.03448486328125, 0.02923583984375, 0.006298065185546875, -0.01218414306640625, 0.0226898193359375, 0.0253448486328125, 0.00319671630859375, -0.008026123046875, 0.01284027099609375, 0.034881591796875, 0.0172576904296875, 0.014923095703125, 0.0184326171875, 0.0015821456909179688, 0.03350830078125, -0.069580078125, 0.033477783203125, -0.04156494140625, -0.040252685546875, 0.01444244384765625, -0.0184326171875, 0.00946807861328125, 0.0195465087890625, 0.0159912109375, -0.033050537109375, -0.0282440185546875, 0.073486328125, -0.0233917236328125, -0.012237548828125, -0.04296875, 0.033355712890625, -0.0711669921875, -0.0186309814453125, 0.078369140625, 0.047607421875, -0.05010986328125, 0.01213836669921875, -0.022705078125, 0.0022125244140625, -0.003559112548828125, -0.049072265625, -0.01239776611328125, -0.022125244140625, 0.0005311965942382812, 0.0012140274047851562, -0.01010894775390625, -0.0062713623046875, 0.0009627342224121094, 0.0250396728515625, 0.006809234619140625, 0.035247802734375, 0.0025920867919921875, 0.01450347900390625, -0.004734039306640625, 0.059295654296875, 0.0174560546875, 0.038360595703125, 0.035614013671875, -0.06097412109375, 0.0299835205078125, -0.00021469593048095703, -0.0304107666015625, -0.04132080078125, -0.01291656494140625, -0.0286407470703125, 0.054840087890625, -0.01812744140625, -0.0154571533203125, 0.01194000244140625, 0.00263214111328125, -0.00457000732421875, 0.0231170654296875, 0.0251007080078125, -0.0273895263671875, 0.00659942626953125, -0.01300811767578125, -0.0042266845703125, -0.006195068359375, 0.0034732818603515625, 0.003101348876953125, -0.0036830902099609375, -0.000732421875, -0.0008192062377929688, -0.02203369140625, 0.0496826171875, 0.06304931640625, -0.03924560546875, 0.0207366943359375, 0.03033447265625, -0.03350830078125, 0.0196990966796875, -0.004352569580078125, 0.0088348388671875, 0.0037441253662109375, 0.035369873046875, -0.00879669189453125, 0.002407073974609375, 0.023101806640625, -0.02093505859375, 0.025177001953125, 0.059112548828125, 0.068359375, -0.060211181640625, -0.005878448486328125, -0.00902557373046875, -0.059783935546875, 0.017364501953125, -0.022430419921875, -0.0005340576171875, -0.0277252197265625, 0.060302734375, 0.0007228851318359375, -0.01154327392578125, 0.02276611328125, 0.00839996337890625, 0.0016460418701171875, -0.026031494140625, 0.057464599609375, 0.0228729248046875, -0.049896240234375, 0.046478271484375, 0.04248046875, 0.040130615234375, -0.0283203125, 0.037628173828125, -0.01456451416015625, -0.037445068359375, -0.0202789306640625, 0.03179931640625, 0.043212890625, -0.0205078125, 0.01117706298828125, -0.01174163818359375, -0.02490234375, 0.042938232421875, -0.05706787109375, 0.050262451171875, -0.00473785400390625, 0.007259368896484375, 0.00189971923828125, -0.0192718505859375, 0.02972412109375, 0.039093017578125, -0.0491943359375, 0.0269775390625, -0.00872802734375, -0.013671875, 0.0086212158203125, 0.022796630859375, 0.08465576171875, -0.06768798828125, -0.010101318359375, 0.0008974075317382812, -0.01190948486328125, 0.004184722900390625, -0.0145263671875, 0.00357818603515625, -0.043212890625, 0.0042724609375, -0.02642822265625, -0.0382080078125, -0.0139007568359375, -0.044525146484375, -0.078125, 0.128662109375, -0.033721923828125, 0.04888916015625, -0.01438140869140625, 0.047210693359375, 0.00951385498046875, 0.0286712646484375, -0.054595947265625, 0.05084228515625, 0.056182861328125, 0.049896240234375, -0.07037353515625, -0.03277587890625, 0.01085662841796875, 0.05914306640625, -0.0024127960205078125, -0.003383636474609375, 0.035247802734375, 0.0019388198852539062, 0.0268707275390625, -0.011383056640625, -0.04296875, 0.01264190673828125, 0.0051116943359375, -0.005420684814453125, 0.040252685546875, -0.029876708984375, 0.043060302734375, -0.0230255126953125, -0.006500244140625, 0.017791748046875, 0.00965118408203125, 0.0023288726806640625, 0.0145416259765625, -0.004940032958984375, -0.0262908935546875, 0.0182342529296875, 0.0089569091796875, 0.0341796875, -0.031158447265625, 0.0538330078125, 0.0290374755859375, -0.0273590087890625, -0.03997802734375, -0.020782470703125, 0.0411376953125, 0.01546478271484375, 0.06561279296875, 0.040679931640625, 0.0249786376953125, 0.028961181640625, -0.00782012939453125, 0.0394287109375, 0.00330352783203125, -0.020233154296875, 0.0273590087890625, 0.033660888671875, 0.0198822021484375, -0.039520263671875, -0.032196044921875, 0.056610107421875, 0.05682373046875, -0.0188140869140625, 0.006931304931640625, -0.01445770263671875, -0.00696563720703125, 0.01076507568359375, -0.037872314453125, 0.00466156005859375, 0.00640106201171875, -0.0064849853515625, -0.00763702392578125, -0.00957489013671875, -0.0076141357421875, 0.0299530029296875, 0.00876617431640625, 0.0300140380859375, -0.0202484130859375, -0.002651214599609375, -0.0003650188446044922, 0.0164337158203125, -0.0187835693359375, 0.03167724609375, 0.0045623779296875, 0.05908203125, -0.07623291015625, -0.011962890625, -0.0010528564453125, -0.02874755859375, 0.001827239990234375, -0.00841522216796875, -0.006603240966796875, 0.01216888427734375, 0.0272369384765625, 0.024017333984375, -0.0173187255859375, 0.0157470703125, 0.0224761962890625, 0.02557373046875, -0.042236328125, -0.00804901123046875, 0.06427001953125, -0.03924560546875, -0.0265350341796875, -0.0111846923828125, -0.00769805908203125, -0.003631591796875, 0.0038814544677734375, -0.0234527587890625, 0.068603515625, -0.0224456787109375, -0.044952392578125, 0.027923583984375, -0.005672454833984375, -0.041595458984375, 0.01531982421875, -0.004596710205078125, 0.059783935546875, -0.0189361572265625, -0.04388427734375, 0.023651123046875, -0.029022216796875, -0.09808349609375, 0.0184783935546875, 0.03515625, 0.011627197265625, -0.01334381103515625, 0.0040130615234375, -0.052520751953125, 0.0137176513671875, 0.049163818359375, 0.01145172119140625, -0.0019855499267578125, 0.0036983489990234375, -0.01485443115234375, -0.0281829833984375, -0.00005888938903808594, -0.02508544921875, 0.046356201171875, 0.00839996337890625, 0.044769287109375, -0.023773193359375, 0.0261383056640625, -0.04217529296875, -0.00395965576171875, -0.0242156982421875, -0.01534271240234375, -0.0240631103515625, -0.004367828369140625, -0.0048370361328125, 0.0016498565673828125, 0.047210693359375, 0.049224853515625, 0.01410675048828125, -0.00955963134765625, 0.043701171875, -0.05291748046875, 0.002986907958984375, -0.006839752197265625, 0.0209503173828125, -0.005306243896484375, -0.0308685302734375, -0.03778076171875, 0.01522064208984375, 0.0220489501953125, 0.0307769775390625, -0.0184783935546875, -0.00641632080078125, 0.0706787109375, -0.040618896484375, 0.0204620361328125, -0.0007100105285644531, 0.036224365234375, 0.02813720703125, 0.0418701171875, 0.01004791259765625, 0.0066070556640625, -0.0233917236328125, 0.0231170654296875, 0.02569580078125, 0.0027675628662109375, 0.010162353515625, -0.01404571533203125, 0.0245819091796875, 0.0355224609375, 0.0251007080078125, -0.057708740234375, 0.00815582275390625, 0.0521240234375, -0.010772705078125, 0.030426025390625, 0.0026397705078125, -0.0272979736328125, -0.004581451416015625, 0.01242828369140625, 0.0163116455078125, 0.0413818359375, 0.0091552734375, 0.01485443115234375, -0.015716552734375, 0.0411376953125, -0.0029125213623046875, -0.01055908203125, -0.0171966552734375, -0.01218414306640625, 0.0281982421875, 0.0245361328125, 0.0240936279296875, -0.0433349609375, -0.041351318359375, -0.0670166015625, -0.053985595703125, -0.06683349609375, 0.046844482421875, -0.057891845703125, -0.0029582977294921875, 0.0269927978515625, -0.01511383056640625, 0.0016574859619140625, -0.00783538818359375, 0.0185699462890625, 0.0226898193359375, -0.006488800048828125, -0.021026611328125, 0.0265655517578125, -0.0168304443359375, -0.04632568359375, -0.05218505859375, 0.023468017578125, -0.0850830078125, -0.006923675537109375, -0.009185791015625, 0.013458251953125, 0.021087646484375, -0.034637451171875, -0.08636474609375, 0.006984710693359375, -0.0050201416015625, -0.044647216796875, -0.034820556640625, -0.0146636962890625, -0.00870513916015625, 0.002323150634765625, -0.0227813720703125, -0.0033416748046875, -0.036712646484375, 0.02606201171875, 0.00428009033203125, 0.036041259765625, 0.0105743408203125, 0.005279541015625, 0.01045989990234375, 0.032135009765625, 0.0128631591796875, -0.023162841796875, 0.0018758773803710938, -0.0295867919921875, 0.049468994140625, 0.03515625, -0.018707275390625, -0.035736083984375, 0.00858306884765625, -0.0223846435546875, -0.0189666748046875, -0.0355224609375, 0.002407073974609375, 0.005767822265625, 0.06640625, 0.02410888671875, 0.0087890625, -0.036773681640625, -0.006488800048828125, 0.0238037109375, -0.042022705078125, -0.0257568359375, 0.037811279296875, -0.06573486328125, -0.032196044921875, -0.038299560546875, 0.005290985107421875, -0.01568603515625, -0.048004150390625, -0.025421142578125, -0.0167999267578125, -0.003879547119140625, 0.026947021484375, -0.017547607421875, -0.06597900390625, 0.073486328125, -0.02392578125, 0.0282745361328125, -0.01043701171875, 0.052398681640625, 0.034027099609375, -0.003383636474609375, 0.007106781005859375, -0.00980377197265625, 0.0196533203125, 0.0192718505859375, 0.023284912109375, -0.0022068023681640625, 0.01267242431640625, -0.0206298828125, -0.00096893310546875, -0.0034389495849609375, -0.0231475830078125, -0.029022216796875, 0.0138397216796875, 0.0185089111328125, -0.0028743743896484375, 0.054412841796875, -0.0256500244140625, 0.02325439453125, -0.003406524658203125, 0.0198822021484375, -0.0006694793701171875, -0.001285552978515625, 0.0498046875, -0.05694580078125, -0.0113067626953125, 0.010498046875, 0.019775390625, -0.043548583984375, 0.03485107421875, 0.005794525146484375, 0.0296173095703125, 0.021728515625 ]
968a00af727b7d510a54a73650b71445e7de6228
Wordpress Stackexchange Q: excerpt in characters I have code in functions.php: function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); } but i need to limit excerpt in number of characters, could you help me with that? A: I used this code in one of my last projects: function ng_get_excerpt( $count ){ $permalink = get_permalink( $post->ID ); $excerpt = get_the_content(); $excerpt = strip_tags( $excerpt ); $excerpt = mb_substr( $excerpt, 0, $count ); $excerpt = mb_substr( $excerpt, 0, strripos( $excerpt, " " ) ); $excerpt = rtrim( $excerpt, ",.;:- _!$&#" ); $excerpt = $excerpt . '<a href="'.$permalink.'" style="text-decoration: none;">&nbsp;(...)</a>'; return $excerpt; } I got it from here: http://wordpress.org/support/topic/limit-excerpt-length-by-characters https://stackoverflow.com/questions/10923955/make-function-that-limits-text-not-show-last-punctuation-mark It has the advantage of not allowing punctuation on the end and ending with the last complete word Using the filters as suggested by @medhamza7 or @bainternet or @fuxia is preferable.
Q: excerpt in characters I have code in functions.php: function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); } but i need to limit excerpt in number of characters, could you help me with that? A: I used this code in one of my last projects: function ng_get_excerpt( $count ){ $permalink = get_permalink( $post->ID ); $excerpt = get_the_content(); $excerpt = strip_tags( $excerpt ); $excerpt = mb_substr( $excerpt, 0, $count ); $excerpt = mb_substr( $excerpt, 0, strripos( $excerpt, " " ) ); $excerpt = rtrim( $excerpt, ",.;:- _!$&#" ); $excerpt = $excerpt . '<a href="'.$permalink.'" style="text-decoration: none;">&nbsp;(...)</a>'; return $excerpt; } I got it from here: http://wordpress.org/support/topic/limit-excerpt-length-by-characters https://stackoverflow.com/questions/10923955/make-function-that-limits-text-not-show-last-punctuation-mark It has the advantage of not allowing punctuation on the end and ending with the last complete word Using the filters as suggested by @medhamza7 or @bainternet or @fuxia is preferable. A: Use the function utf8_truncate() from this answer and fight your way through wp_trim_excerpt(). Sample code, not tested: add_filter( 'excerpt_more', 'wpse_69436_excerpt_more' ); function wpse_69436_excerpt_more( $more ) { add_filter( 'wp_trim_excerpt', 'wpse_69436_trim_excerpt' ); // we remove the more text here return ''; } function wpse_69436_trim_excerpt( $excerpt ) { return utf8_truncate( $excerpt, 300 ); } A: WordPress has a filter for that which is conveniently named excerpt_length and it accepts a number of chars so: function custom_excerpt_length( $length ) { return 50; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); change 50 to whatever limit you want. Update per @toscho comment: that is the solution above is for words as well and not for chars so here is a quick one: add_filter('the_excerpt','excerpt_char_limit'); function excerpt_char_limit($e){ return substr($e,0,50); } A: For a better way, you can use the get_the_excerpt filter: function get_excerpt($excerpt="",$limit=140){ $excerpt = preg_replace(" (\[.*?\])",'',$excerpt); $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); $excerpt = mb_substr($excerpt, 0, $limit); $excerpt = mb_substr($excerpt, 0, strripos($excerpt, " ")); $excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt)); $excerpt = $excerpt.'...'; return $excerpt; } add_filter('get_the_excerpt',"get_excerpt"); Change the $limit=140 to the number of characters you want. Also if you want in different way: add_filter('get_the_excerpt',function ($excerpt="",$limit=140){ $excerpt = preg_replace(" (\[.*?\])",'',$excerpt); $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); $excerpt = mb_substr($excerpt, 0, $limit); $excerpt = mb_substr($excerpt, 0, strripos($excerpt, " ")); $excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt)); $excerpt = $excerpt.'...'; return $excerpt; }); That will make avoid any conflict like existing name of function get_excerpt.
wordpress
{ "language": "en", "length": 385, "provenance": "stackexchange_00019.jsonl.gz:424857", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69436" }
[ 0.007541656494140625, -0.025665283203125, 0.03106689453125, 0.020233154296875, -0.05157470703125, 0.00047779083251953125, 0.01251220703125, -0.02435302734375, -0.021331787109375, 0.0258026123046875, -0.0199432373046875, -0.01360321044921875, -0.0178680419921875, -0.030487060546875, -0.01328277587890625, -0.045867919921875, 0.0109100341796875, -0.0053863525390625, 0.014801025390625, -0.00537872314453125, 0.0025482177734375, 0.0091552734375, 0.0125885009765625, 0.0154571533203125, -0.0006151199340820312, -0.03179931640625, 0.1220703125, -0.0626220703125, 0.00015866756439208984, -0.050048828125, 0.0014009475708007812, 0.00794219970703125, -0.0052337646484375, 0.068359375, -0.06689453125, 0.0308685302734375, 0.015594482421875, 0.0213623046875, 0.0180206298828125, 0.037384033203125, 0.031494140625, -0.005039215087890625, -0.020416259765625, 0.0300445556640625, -0.0273590087890625, -0.030914306640625, 0.028076171875, -0.0218048095703125, 0.0176849365234375, -0.036285400390625, 0.0280609130859375, 0.0173187255859375, 0.05615234375, -0.0284271240234375, -0.0202178955078125, 0.009307861328125, 0.015289306640625, -0.0223846435546875, 0.038330078125, -0.035247802734375, -0.0362548828125, -0.0161590576171875, 0.0239410400390625, -0.0146636962890625, -0.0035495758056640625, -0.02447509765625, 0.00848388671875, 0.04058837890625, -0.032501220703125, -0.036651611328125, 0.016448974609375, 0.0034637451171875, -0.0211334228515625, -0.0592041015625, 0.007701873779296875, 0.06640625, -0.046051025390625, -0.031402587890625, 0.01702880859375, 0.004329681396484375, -0.0214996337890625, -0.03668212890625, -0.021514892578125, -0.0252838134765625, 0.0028858184814453125, -0.013824462890625, -0.02154541015625, 0.020233154296875, -0.0102996826171875, -0.023529052734375, -0.0125732421875, 0.02178955078125, 0.0026397705078125, -0.00283050537109375, -0.01294708251953125, -0.04364013671875, -0.00962066650390625, -0.039703369140625, 0.0005822181701660156, -0.0230255126953125, 0.04541015625, -0.059326171875, 0.046051025390625, -0.00528717041015625, 0.0213165283203125, 0.033416748046875, -0.034210205078125, -0.01335906982421875, 0.03558349609375, 0.0282745361328125, 0.0203094482421875, -0.031494140625, -0.01849365234375, -0.10101318359375, -0.0012531280517578125, 0.019378662109375, -0.0284881591796875, 0.0088348388671875, 0.056671142578125, -0.05548095703125, -0.0028820037841796875, 0.0184173583984375, -0.00377655029296875, -0.0225830078125, -0.01361846923828125, -0.0230255126953125, -0.019378662109375, -0.0035457611083984375, 0.03271484375, 0.05474853515625, -0.0201263427734375, -0.00800323486328125, -0.0182647705078125, -0.0209503173828125, -0.0270843505859375, -0.017425537109375, 0.0131378173828125, -0.00933837890625, -0.0204315185546875, 0.0210418701171875, 0.0024051666259765625, 0.0008940696716308594, 0.02032470703125, -0.008636474609375, -0.0091552734375, 0.02587890625, 0.017913818359375, -0.01837158203125, -0.0148468017578125, -0.037078857421875, -0.02447509765625, -0.017669677734375, 0.09515380859375, -0.044158935546875, -0.11181640625, -0.06695556640625, -0.035125732421875, -0.028900146484375, -0.04644775390625, -0.06719970703125, 0.009765625, -0.0116424560546875, -0.006694793701171875, -0.0517578125, -0.0751953125, 0.000004291534423828125, -0.031524658203125, -0.01155853271484375, 0.0203399658203125, 0.05157470703125, 0.022735595703125, -0.0017194747924804688, 0.0234375, 0.01959228515625, -0.00618743896484375, 0.0003895759582519531, -0.01006317138671875, -0.016632080078125, 0.002819061279296875, 0.059478759765625, 0.00801849365234375, -0.030181884765625, -0.006855010986328125, 0.005901336669921875, -0.033172607421875, 0.0311431884765625, 0.0068817138671875, 0.04058837890625, 0.00707244873046875, 0.00598907470703125, 0.02001953125, 0.0036163330078125, 0.0135955810546875, -0.024444580078125, -0.055877685546875, -0.044158935546875, 0.04034423828125, 0.0056610107421875, -0.04071044921875, 0.06915283203125, 0.043914794921875, -0.0188140869140625, 0.0200653076171875, -0.01103973388671875, -0.061309814453125, -0.001956939697265625, -0.0238189697265625, 0.01329803466796875, 0.0015897750854492188, 0.0263519287109375, 0.005779266357421875, -0.0253448486328125, -0.01010894775390625, 0.01318359375, 0.014373779296875, 0.010406494140625, 0.00939178466796875, 0.03289794921875, 0.01453399658203125, 0.01123809814453125, 0.045257568359375, -0.00360107421875, 0.040191650390625, 0.0175018310546875, 0.052764892578125, -0.06231689453125, -0.00904083251953125, -0.05584716796875, 0.004711151123046875, -0.01279449462890625, -0.050079345703125, 0.0672607421875, 0.076904296875, 0.049407958984375, -0.02557373046875, 0.0009555816650390625, -0.0107269287109375, -0.053314208984375, -0.01003265380859375, 0.05206298828125, 0.041778564453125, 0.0330810546875, -0.0198516845703125, -0.06451416015625, 0.026641845703125, -0.04364013671875, 0.0148773193359375, -0.0511474609375, -0.0182952880859375, -0.00775146484375, 0.00786590576171875, -0.01438140869140625, 0.03411865234375, -0.021087646484375, 0.0065765380859375, 0.0290679931640625, 0.021759033203125, 0.0093841552734375, -0.017364501953125, 0.0216522216796875, -0.0027332305908203125, -0.0259857177734375, -0.00817108154296875, -0.0228118896484375, -0.056365966796875, 0.035369873046875, 0.022125244140625, 0.03521728515625, -0.00843048095703125, -0.0186614990234375, 0.016021728515625, 0.080322265625, -0.000514984130859375, -0.0243377685546875, -0.0260162353515625, -0.04498291015625, -0.01187896728515625, 0.042205810546875, -0.0015306472778320312, -0.046630859375, 0.0087127685546875, 0.054901123046875, 0.0210113525390625, -0.01462554931640625, -0.0021877288818359375, -0.037200927734375, -0.0094451904296875, 0.00878143310546875, -0.0037593841552734375, -0.0145416259765625, 0.0297698974609375, 0.0190887451171875, -0.033660888671875, 0.0223236083984375, -0.009613037109375, -0.0112457275390625, 0.0150909423828125, -0.051788330078125, 0.056365966796875, -0.05291748046875, 0.06304931640625, 0.06103515625, -0.04766845703125, 0.0221710205078125, 0.00873565673828125, -0.0015659332275390625, 0.0003609657287597656, 0.016082763671875, -0.0212860107421875, 0.00353240966796875, -0.060394287109375, 0.00403594970703125, 0.0204315185546875, 0.0087738037109375, 0.01100921630859375, -0.02276611328125, -0.007671356201171875, 0.0179595947265625, -0.053497314453125, -0.039581298828125, 0.035919189453125, -0.0258331298828125, -0.03802490234375, 0.052978515625, -0.0271453857421875, -0.01203155517578125, 0.06768798828125, -0.0301971435546875, -0.0156707763671875, -0.041168212890625, -0.02337646484375, -0.05499267578125, -0.049957275390625, 0.0078582763671875, 0.012725830078125, -0.0015087127685546875, -0.001026153564453125, 0.0677490234375, -0.00377655029296875, -0.08526611328125, -0.058013916015625, -0.01239776611328125, -0.0274658203125, -0.0177459716796875, 0.00411224365234375, 0.0150909423828125, -0.04473876953125, 0.01122283935546875, 0.033172607421875, 0.0256805419921875, -0.03118896484375, 0.00878143310546875, -0.016082763671875, 0.004283905029296875, 0.04241943359375, 0.028106689453125, 0.007602691650390625, 0.04437255859375, 0.06719970703125, -0.00921630859375, -0.055877685546875, 0.0177764892578125, -0.057403564453125, 0.0015287399291992188, 0.0426025390625, -0.0198974609375, -0.01529693603515625, 0.0119171142578125, 0.0152130126953125, -0.002269744873046875, -0.00528717041015625, -0.02276611328125, 0.039154052734375, 0.007625579833984375, 0.0229949951171875, -0.00677490234375, 0.0173187255859375, -0.0021114349365234375, 0.00922393798828125, -0.00009799003601074219, 0.04833984375, 0.00445556640625, -0.003955841064453125, -0.03668212890625, -0.05780029296875, 0.03936767578125, -0.0252685546875, 0.0122833251953125, -0.03460693359375, -0.044586181640625, -0.0213623046875, 0.08502197265625, -0.0211181640625, -0.058685302734375, -0.0004987716674804688, 0.0192108154296875, 0.00884246826171875, -0.023712158203125, 0.03375244140625, -0.0285491943359375, -0.0247344970703125, 0.00023686885833740234, -0.0098114013671875, -0.00927734375, -0.0284271240234375, 0.005767822265625, -0.035491943359375, -0.002532958984375, 0.0191650390625, -0.01284027099609375, -0.0002529621124267578, -0.0180511474609375, -0.007320404052734375, -0.0299072265625, 0.01055908203125, -0.028778076171875, -0.052093505859375, -0.0288848876953125, 0.0161285400390625, 0.042083740234375, -0.01024627685546875, -0.006923675537109375, -0.00994110107421875, 0.05877685546875, 0.0423583984375, -0.017333984375, 0.037841796875, -0.01568603515625, 0.0030498504638671875, 0.01279449462890625, 0.045379638671875, -0.04119873046875, -0.0092010498046875, -0.02777099609375, 0.02740478515625, 0.0012340545654296875, -0.03857421875, -0.017852783203125, -0.0206146240234375, -0.0003342628479003906, -0.056671142578125, -0.0284881591796875, 0.011749267578125, 0.02618408203125, -0.01800537109375, 0.0189208984375, -0.012786865234375, -0.060272216796875, 0.0374755859375, 0.0537109375, -0.0384521484375, -0.0020122528076171875, 0.06390380859375, 0.0347900390625, -0.030853271484375, -0.06689453125, 0.0167388916015625, 0.046630859375, -0.00853729248046875, 0.01435089111328125, -0.03753662109375, -0.0552978515625, 0.10931396484375, -0.005893707275390625, 0.00778961181640625, -0.0175323486328125, 0.0012798309326171875, 0.007965087890625, -0.0148773193359375, 0.00911712646484375, 0.007015228271484375, 0.056640625, -0.01678466796875, -0.0247039794921875, -0.002017974853515625, 0.005008697509765625, 0.03985595703125, -0.00887298583984375, 0.055389404296875, -0.01439666748046875, -0.04327392578125, 0.0234222412109375, 0.031097412109375, -0.006031036376953125, -0.004001617431640625, 0.02410888671875, 0.00860595703125, 0.00772857666015625, 0.01024627685546875, -0.020751953125, -0.008087158203125, -0.00490570068359375, 0.05133056640625, -0.04254150390625, 0.004901885986328125, 0.0122222900390625, 0.006031036376953125, 0.007476806640625, -0.00984954833984375, -0.03033447265625, -0.0418701171875, -0.0010786056518554688, 0.0178070068359375, 0.00689697265625, 0.0220184326171875, 0.007801055908203125, -0.0002830028533935547, 0.01238250732421875, 0.01194000244140625, 0.00951385498046875, 0.00829315185546875, -0.0175628662109375, 0.0204925537109375, -0.00902557373046875, 0.0078582763671875, 0.02276611328125, 0.08843994140625, -0.039581298828125, 0.058074951171875, -0.020965576171875, 0.0350341796875, 0.055938720703125, 0.037017822265625, 0.0323486328125, -0.0283660888671875, -0.032989501953125, 0.0221710205078125, -0.0255279541015625, -0.00896453857421875, -0.05419921875, 0.031982421875, 0.0213165283203125, -0.047576904296875, 0.01280975341796875, -0.00463104248046875, -0.007221221923828125, -0.02490234375, 0.045074462890625, 0.0355224609375, -0.03662109375, -0.0162200927734375, -0.011962890625, 0.00904083251953125, -0.0188751220703125, -0.00661468505859375, -0.0094451904296875, -0.040374755859375, -0.024200439453125, 0.01001739501953125, -0.0193939208984375, -0.0226287841796875, -0.0211181640625, -0.0419921875, -0.0037822723388671875, -0.006519317626953125, 0.014373779296875, -0.038604736328125, 0.003017425537109375, -0.021087646484375, 0.025726318359375, -0.036529541015625, 0.052001953125, -0.040252685546875, 0.0011806488037109375, -0.029754638671875, 0.0169677734375, 0.033294677734375, 0.03533935546875, -0.060821533203125, 0.00003260374069213867, -0.029937744140625, 0.019561767578125, 0.01019287109375, -0.057647705078125, -0.0256805419921875, -0.0284423828125, -0.0159912109375, 0.005809783935546875, 0.020751953125, 0.01396942138671875, -0.0244598388671875, 0.02862548828125, 0.0174407958984375, 0.005298614501953125, -0.0196533203125, 0.029266357421875, 0.0330810546875, 0.005397796630859375, 0.0155029296875, 0.043914794921875, 0.035247802734375, -0.039886474609375, 0.027679443359375, -0.0098114013671875, -0.01189422607421875, -0.019500732421875, 0.0107421875, -0.0357666015625, 0.006988525390625, 0.00691986083984375, -0.00833892822265625, -0.02899169921875, -0.01136016845703125, -0.0225677490234375, 0.05511474609375, -0.004276275634765625, -0.01055908203125, 0.016571044921875, -0.00676727294921875, 0.040252685546875, -0.0262451171875, -0.0127105712890625, 0.043365478515625, -0.004192352294921875, 0.042510986328125, 0.007171630859375, 0.01349639892578125, -0.00927734375, 0.01461029052734375, -0.00873565673828125, 0.037139892578125, 0.006557464599609375, 0.0256500244140625, 0.0295867919921875, 0.01020050048828125, -0.01654052734375, -0.00519561767578125, 0.0262603759765625, 0.0040435791015625, 0.00792694091796875, 0.0259552001953125, -0.01837158203125, -0.00864410400390625, 0.037261962890625, 0.0408935546875, -0.0479736328125, 0.00052642822265625, 0.0196685791015625, 0.02178955078125, 0.01343536376953125, -0.019500732421875, 0.01219940185546875, -0.010009765625, 0.04302978515625, -0.030426025390625, -0.004913330078125, 0.00395965576171875, -0.0311279296875, 0.024749755859375, -0.040802001953125, 0.043853759765625, 0.0094451904296875, -0.050872802734375, 0.00943756103515625, 0.0308685302734375, 0.004436492919921875, -0.05377197265625, 0.0243072509765625, -0.00914764404296875, 0.0268707275390625, -0.035430908203125, 0.044586181640625, -0.03369140625, 0.03485107421875, -0.0006361007690429688, 0.009857177734375, 0.006671905517578125, 0.04400634765625, -0.01556396484375, -0.0034046173095703125, 0.0484619140625, -0.05755615234375, -0.00927734375, -0.0230865478515625, 0.006946563720703125, 0.045013427734375, 0.0223236083984375, 0.0278472900390625, 0.0240020751953125, -0.048797607421875, 0.0153961181640625, 0.024169921875, 0.049072265625, -0.022491455078125, -0.037841796875, 0.040985107421875, -0.0294036865234375, -0.0236663818359375, -0.0217742919921875, 0.00409698486328125, -0.059539794921875, -0.01134490966796875, -0.0111236572265625, -0.028350830078125, 0.0030651092529296875, -0.039825439453125, -0.059478759765625, 0.08319091796875, 0.0141448974609375, 0.01499176025390625, 0.0230712890625, 0.031951904296875, -0.057891845703125, 0.01141357421875, -0.037567138671875, 0.057037353515625, 0.0011615753173828125, 0.003082275390625, -0.06536865234375, -0.00577545166015625, -0.023040771484375, 0.00971221923828125, 0.0175933837890625, -0.0005445480346679688, 0.020599365234375, 0.007480621337890625, 0.0237579345703125, 0.0120391845703125, -0.0222015380859375, 0.0056915283203125, 0.0133209228515625, 0.01001739501953125, 0.04541015625, -0.01215362548828125, 0.0264892578125, -0.03265380859375, 0.00859832763671875, 0.035064697265625, 0.00018990039825439453, -0.015869140625, -0.0032520294189453125, -0.0038700103759765625, -0.0179595947265625, -0.01102447509765625, 0.0101165771484375, -0.031646728515625, -0.00489044189453125, 0.06988525390625, 0.07061767578125, -0.1051025390625, -0.046051025390625, -0.0360107421875, 0.041839599609375, 0.01165771484375, 0.056732177734375, 0.07244873046875, 0.0165557861328125, 0.0748291015625, 0.01081085205078125, 0.0521240234375, 0.00360870361328125, -0.0157012939453125, 0.005634307861328125, 0.028076171875, 0.0174102783203125, -0.03125, -0.0297698974609375, 0.08892822265625, 0.05169677734375, -0.00934600830078125, 0.01181793212890625, 0.003284454345703125, -0.00026345252990722656, -0.004886627197265625, -0.044036865234375, -0.003505706787109375, 0.04168701171875, 0.01500701904296875, 0.0078277587890625, -0.0153961181640625, 0.0299835205078125, 0.03924560546875, 0.01947021484375, 0.0308685302734375, -0.045135498046875, -0.0290374755859375, -0.021942138671875, 0.000537872314453125, 0.006744384765625, 0.01788330078125, 0.004741668701171875, 0.0281524658203125, 0.0011720657348632812, 0.00745391845703125, 0.0257568359375, 0.0193939208984375, 0.014373779296875, -0.043426513671875, 0.02197265625, -0.003814697265625, -0.006763458251953125, -0.00982666015625, 0.0004470348358154297, -0.035491943359375, 0.003627777099609375, 0.005596160888671875, -0.037933349609375, -0.01215362548828125, 0.036407470703125, -0.0170135498046875, 0.01092529296875, -0.030517578125, 0.005451202392578125, -0.00640106201171875, -0.0202178955078125, 0.016571044921875, 0.0263824462890625, 0.01342010498046875, 0.0175933837890625, 0.00501251220703125, 0.015899658203125, 0.01258087158203125, -0.01444244384765625, 0.0002560615539550781, -0.048736572265625, 0.04412841796875, -0.06536865234375, 0.01001739501953125, -0.0270538330078125, -0.048309326171875, 0.011322021484375, 0.04498291015625, -0.01471710205078125, 0.01204681396484375, -0.0224456787109375, -0.0216217041015625, 0.04620361328125, -0.0059661865234375, -0.0268402099609375, 0.0162353515625, 0.0253753662109375, -0.0372314453125, -0.0187225341796875, -0.005023956298828125, 0.0039520263671875, 0.03277587890625, 0.04071044921875, 0.01116943359375, 0.005924224853515625, 0.023590087890625, -0.01641845703125, -0.01010894775390625, 0.0167083740234375, -0.0037441253662109375, -0.0025539398193359375, 0.054351806640625, 0.0292816162109375, -0.043792724609375, -0.041961669921875, 0.045867919921875, 0.019927978515625, -0.01654052734375, 0.045196533203125, -0.00041103363037109375, -0.00803375244140625, -0.027191162109375, 0.051910400390625, -0.0179443359375, -0.0347900390625, -0.04254150390625, -0.049560546875, 0.034423828125, 0.02984619140625, 0.037017822265625, 0.043212890625, 0.005458831787109375, -0.01763916015625, 0.0250091552734375, -0.038482666015625, 0.034271240234375, 0.0233154296875, -0.0013933181762695312, -0.0286712646484375, -0.006183624267578125, -0.03179931640625, 0.0180511474609375, -0.013458251953125, 0.051910400390625, 0.00182342529296875, -0.058929443359375, 0.0073089599609375, 0.00963592529296875, 0.057464599609375, -0.006534576416015625, 0.0157012939453125, -0.01490020751953125, 0.02264404296875, 0.01282501220703125, 0.013275146484375, -0.030853271484375, -0.055419921875, 0.01093292236328125, 0.00644683837890625, -0.024505615234375, -0.0305938720703125, -0.051025390625, 0.00909423828125, 0.01103973388671875, -0.00510406494140625, -0.035003662109375, 0.00954437255859375, -0.020904541015625, 0.06121826171875, -0.0308685302734375, -0.0265960693359375, -0.006103515625, 0.01224517822265625, -0.01776123046875, -0.061767578125, -0.049560546875, 0.0718994140625, -0.04022216796875, 0.0152435302734375, 0.06561279296875, -0.033111572265625, -0.01934814453125, 0.016265869140625, 0.014007568359375, 0.052886962890625, -0.0127105712890625, 0.01496124267578125, 0.045623779296875, -0.0014238357543945312, -0.0248565673828125, -0.10467529296875, -0.0237579345703125, -0.032989501953125, 0.0169830322265625, 0.01016998291015625, -0.0105743408203125, 0.00939178466796875, -0.037811279296875, -0.0552978515625, 0.00463104248046875, 0.0084381103515625, -0.0328369140625, -0.0145721435546875, -0.0433349609375, -0.01337432861328125, 0.0307769775390625, 0.003322601318359375, -0.0040283203125, -0.052947998046875, 0.0062713623046875, 0.011566162109375, 0.030517578125, 0.018951416015625, 0.0254364013671875, 0.031646728515625, 0.07037353515625, 0.073974609375, -0.007518768310546875, 0.00891876220703125, -0.01137542724609375, 0.0249176025390625, 0.0469970703125, -0.0084686279296875, -0.01441192626953125, -0.006816864013671875, -0.0307769775390625, -0.016021728515625, -0.08465576171875, -0.020843505859375, -0.0136871337890625, 0.07806396484375, 0.033416748046875, 0.01593017578125, -0.041168212890625, 0.033660888671875, 0.0025653839111328125, -0.0005774497985839844, -0.00763702392578125, 0.0028667449951171875, -0.032989501953125, -0.037322998046875, -0.0047149658203125, -0.006103515625, 0.030853271484375, -0.034698486328125, -0.035125732421875, -0.0014123916625976562, -0.006198883056640625, 0.03228759765625, -0.0738525390625, -0.049957275390625, 0.033447265625, -0.04852294921875, -0.0325927734375, -0.01153564453125, 0.031585693359375, -0.0276336669921875, -0.053070068359375, -0.055877685546875, -0.013702392578125, 0.017791748046875, 0.02069091796875, -0.011810302734375, 0.018768310546875, 0.00994110107421875, 0.0231170654296875, -0.00609588623046875, -0.003742218017578125, 0.00812530517578125, 0.0004646778106689453, -0.02301025390625, -0.001605987548828125, -0.0033435821533203125, -0.00841522216796875, -0.012237548828125, 0.019989013671875, -0.0063323974609375, 0.01094818115234375, -0.014984130859375, 0.01861572265625, -0.015350341796875, -0.0021457672119140625, 0.020355224609375, -0.0034847259521484375, 0.018463134765625, -0.0245208740234375, 0.01300048828125, 0.0181121826171875, 0.0205535888671875, 0.029876708984375 ]
6c726bd1a702aee631c0f590f6d9219c49486239
Wordpress Stackexchange Q: How to obtain the user ID of the current profile being edited in WP-Admin? Is there a way of obtaining the user ID of the profile being edited in wp-admin? I know it's in the URL if you are editing a user, EX: ./wp-admin/user-edit.php?user_id=427. Could always $_GET['user_id'] to retrieve the user's ID, but what about when you're editing your own profile in wp-admin? The user ID wouldn't be in the URL. EX ./wp-admin/profile.php Is there an easy or broad way of retrieving the user ID of the current user profile being edited in wp-admin? A: There is a global variable called … $user_id available on that page. Always. From user-edit.php: $user_id = (int) $user_id; $current_user = wp_get_current_user(); if ( ! defined( 'IS_PROFILE_PAGE' ) ) define( 'IS_PROFILE_PAGE', ( $user_id == $current_user->ID ) ); if ( ! $user_id && IS_PROFILE_PAGE ) $user_id = $current_user->ID; elseif ( ! $user_id && ! IS_PROFILE_PAGE ) wp_die(__( 'Invalid user ID.' ) ); elseif ( ! get_userdata( $user_id ) ) wp_die( __('Invalid user ID.') );
Q: How to obtain the user ID of the current profile being edited in WP-Admin? Is there a way of obtaining the user ID of the profile being edited in wp-admin? I know it's in the URL if you are editing a user, EX: ./wp-admin/user-edit.php?user_id=427. Could always $_GET['user_id'] to retrieve the user's ID, but what about when you're editing your own profile in wp-admin? The user ID wouldn't be in the URL. EX ./wp-admin/profile.php Is there an easy or broad way of retrieving the user ID of the current user profile being edited in wp-admin? A: There is a global variable called … $user_id available on that page. Always. From user-edit.php: $user_id = (int) $user_id; $current_user = wp_get_current_user(); if ( ! defined( 'IS_PROFILE_PAGE' ) ) define( 'IS_PROFILE_PAGE', ( $user_id == $current_user->ID ) ); if ( ! $user_id && IS_PROFILE_PAGE ) $user_id = $current_user->ID; elseif ( ! $user_id && ! IS_PROFILE_PAGE ) wp_die(__( 'Invalid user ID.' ) ); elseif ( ! get_userdata( $user_id ) ) wp_die( __('Invalid user ID.') ); A: A little simplified. I didn't have access to a $user_id variable. // If is current user's profile (profile.php) if ( defined('IS_PROFILE_PAGE') && IS_PROFILE_PAGE ) { $user_id = get_current_user_id(); // If is another user's profile page } elseif (! empty($_GET['user_id']) && is_numeric($_GET['user_id']) ) { $user_id = $_GET['user_id']; // Otherwise something is wrong. } else { die( 'No user id defined.' ); }
wordpress
{ "language": "en", "length": 231, "provenance": "stackexchange_00019.jsonl.gz:424864", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69461" }
[ 0.08734130859375, -0.00897216796875, 0.00785064697265625, -0.04205322265625, 0.0219879150390625, -0.03057861328125, 0.017547607421875, -0.0261383056640625, 0.007106781005859375, 0.01361846923828125, -0.0112457275390625, -0.0107879638671875, 0.0020732879638671875, -0.032989501953125, -0.01476287841796875, -0.0231475830078125, 0.0006709098815917969, 0.003055572509765625, -0.00484466552734375, -0.006130218505859375, -0.0281219482421875, -0.0146942138671875, 0.0015392303466796875, -0.035186767578125, 0.019683837890625, -0.0369873046875, 0.038330078125, -0.0145721435546875, 0.0144805908203125, -0.0233306884765625, 0.01059722900390625, 0.0285491943359375, -0.01338958740234375, -0.0008211135864257812, 0.0246429443359375, -0.0256195068359375, 0.03570556640625, -0.007183074951171875, 0.03875732421875, 0.0016431808471679688, 0.038116455078125, -0.008331298828125, -0.0159149169921875, 0.0265960693359375, -0.0328369140625, -0.055267333984375, 0.035858154296875, -0.0033702850341796875, 0.025115966796875, 0.06585693359375, 0.0126190185546875, 0.0297698974609375, 0.005390167236328125, 0.02728271484375, -0.0008039474487304688, -0.004795074462890625, 0.0028972625732421875, -0.034912109375, 0.051177978515625, -0.0201416015625, -0.034210205078125, -0.0550537109375, 0.04498291015625, -0.049835205078125, 0.007213592529296875, -0.0168304443359375, 0.00714874267578125, 0.03118896484375, -0.0328369140625, -0.00800323486328125, 0.0113372802734375, -0.00012600421905517578, -0.0069732666015625, 0.01447296142578125, -0.0380859375, -0.027435302734375, 0.026275634765625, -0.027587890625, -0.004119873046875, 0.032012939453125, -0.0150604248046875, -0.01806640625, -0.09033203125, 0.040435791015625, -0.031402587890625, 0.048919677734375, -0.0117340087890625, -0.0189971923828125, -0.0233612060546875, 0.0133514404296875, -0.023956298828125, -0.0506591796875, 0.0165557861328125, 0.006526947021484375, -0.0167999267578125, -0.00914764404296875, 0.03436279296875, 0.0789794921875, -0.016632080078125, -0.000021636486053466797, -0.0002741813659667969, -0.035888671875, 0.022216796875, -0.0428466796875, -0.01081085205078125, 0.033721923828125, 0.01806640625, 0.0294189453125, 0.0074920654296875, 0.01163482666015625, -0.00711822509765625, -0.040924072265625, -0.021392822265625, -0.025115966796875, -0.0250396728515625, 0.07049560546875, -0.0020008087158203125, -0.003665924072265625, -0.0146942138671875, 0.03582763671875, -0.011627197265625, -0.0167999267578125, 0.0118408203125, 0.005786895751953125, 0.005313873291015625, -0.01277923583984375, -0.04132080078125, 0.0206756591796875, 0.0083465576171875, 0.003849029541015625, -0.044677734375, 0.02008056640625, 0.10552978515625, 0.033477783203125, 0.01149749755859375, -0.0169219970703125, 0.004161834716796875, -0.03253173828125, -0.017425537109375, 0.0242462158203125, -0.02923583984375, -0.0303955078125, 0.005237579345703125, -0.04425048828125, -0.01861572265625, 0.041351318359375, 0.03424072265625, -0.003917694091796875, -0.013153076171875, -0.047821044921875, -0.0269622802734375, -0.0202789306640625, -0.006732940673828125, 0.036224365234375, 0.050079345703125, 0.0064239501953125, 0.0736083984375, -0.0364990234375, 0.01065826416015625, -0.0298309326171875, 0.037841796875, 0.0030612945556640625, 0.038299560546875, -0.0038890838623046875, -0.048919677734375, 0.0023937225341796875, -0.056182861328125, -0.025360107421875, 0.0289459228515625, 0.03173828125, 0.044525146484375, -0.00991058349609375, 0.023529052734375, 0.0308380126953125, 0.0006189346313476562, -0.012176513671875, -0.00672149658203125, 0.000050067901611328125, 0.01153564453125, 0.050933837890625, -0.004863739013671875, -0.03326416015625, 0.004016876220703125, 0.0113983154296875, -0.0269317626953125, 0.0391845703125, 0.00426483154296875, 0.0435791015625, 0.033447265625, 0.0124053955078125, 0.00830078125, 0.0092315673828125, -0.042083740234375, 0.0289154052734375, -0.01227569580078125, -0.01512908935546875, -0.02569580078125, -0.003814697265625, -0.0345458984375, 0.0164794921875, 0.006160736083984375, -0.01953125, 0.00466156005859375, -0.0069122314453125, -0.11578369140625, -0.00818634033203125, -0.0482177734375, 0.0396728515625, 0.0268402099609375, 0.005771636962890625, 0.0018930435180664062, -0.0156707763671875, -0.0037384033203125, -0.009063720703125, -0.048736572265625, -0.007671356201171875, -0.040313720703125, 0.0108642578125, -0.0090789794921875, 0.04998779296875, -0.045135498046875, 0.01313018798828125, -0.041015625, -0.03802490234375, 0.019012451171875, -0.01629638671875, -0.0002338886260986328, -0.02862548828125, 0.01100921630859375, -0.006687164306640625, 0.004001617431640625, 0.0145111083984375, 0.00290679931640625, 0.023468017578125, -0.03076171875, -0.0293121337890625, -0.0289306640625, -0.055511474609375, 0.0255584716796875, 0.050537109375, 0.0543212890625, 0.0171051025390625, 0.0189971923828125, -0.00241851806640625, 0.0672607421875, -0.00899505615234375, 0.032501220703125, -0.033599853515625, 0.033843994140625, 0.08013916015625, 0.0089111328125, 0.0015239715576171875, -0.002460479736328125, -0.046539306640625, -0.0016813278198242188, 0.037689208984375, -0.037200927734375, 0.0156402587890625, -0.0006728172302246094, -0.0050506591796875, -0.036956787109375, -0.03955078125, 0.036956787109375, -0.03436279296875, 0.02984619140625, 0.0007085800170898438, 0.04730224609375, 0.0306243896484375, 0.01122283935546875, -0.0310211181640625, 0.0017995834350585938, 0.0131378173828125, 0.0191497802734375, 0.0153656005859375, -0.0285186767578125, 0.0097198486328125, -0.0079193115234375, -0.0016002655029296875, 0.0106201171875, -0.01140594482421875, 0.0026950836181640625, 0.0037174224853515625, 0.0019969940185546875, -0.004657745361328125, 0.016143798828125, -0.04400634765625, 0.0200347900390625, 0.026336669921875, 0.0083160400390625, -0.0218353271484375, 0.0262908935546875, -0.005374908447265625, -0.05902099609375, 0.07513427734375, -0.037353515625, -0.0316162109375, 0.0279998779296875, -0.01544952392578125, 0.0164031982421875, -0.024658203125, 0.0266571044921875, 0.046905517578125, -0.01468658447265625, 0.009429931640625, -0.00010657310485839844, -0.002964019775390625, -0.0250244140625, 0.01235198974609375, 0.009246826171875, -0.01220703125, -0.002716064453125, 0.08013916015625, 0.017120361328125, 0.048736572265625, -0.012176513671875, -0.05010986328125, -0.0018510818481445312, 0.00380706787109375, -0.0831298828125, -0.066162109375, -0.0234527587890625, -0.08416748046875, 0.000017642974853515625, -0.0012006759643554688, -0.0369873046875, 0.019683837890625, 0.022613525390625, 0.02276611328125, 0.0178375244140625, -0.03265380859375, -0.052947998046875, -0.053253173828125, -0.083251953125, -0.020355224609375, 0.00011140108108520508, 0.005924224853515625, -0.006687164306640625, -0.006214141845703125, -0.00341796875, -0.0179595947265625, -0.006103515625, -0.00722503662109375, -0.016937255859375, -0.032562255859375, -0.02703857421875, -0.0011539459228515625, 0.018585205078125, 0.00403594970703125, 0.0207061767578125, -0.0005097389221191406, -0.0005121231079101562, -0.0034084320068359375, -0.01275634765625, -0.03704833984375, 0.0204010009765625, -0.01328277587890625, -0.01007080078125, 0.0176544189453125, 0.044189453125, -0.037109375, -0.03192138671875, 0.006336212158203125, -0.04461669921875, 0.07781982421875, 0.0164642333984375, -0.01898193359375, 0.053863525390625, -0.004974365234375, 0.0001386404037475586, 0.004730224609375, -0.0300445556640625, 0.0024871826171875, 0.0266876220703125, 0.004802703857421875, 0.018463134765625, 0.0113677978515625, -0.0019407272338867188, -0.0190582275390625, 0.018280029296875, -0.0030670166015625, 0.0098724365234375, 0.01464080810546875, -0.022979736328125, 0.0016460418701171875, -0.06256103515625, 0.029693603515625, -0.0177154541015625, 0.0072479248046875, -0.0297698974609375, -0.0245361328125, 0.0006504058837890625, 0.09228515625, -0.0116424560546875, -0.0268096923828125, -0.0189208984375, 0.00582122802734375, -0.05450439453125, -0.018310546875, -0.0219879150390625, 0.005001068115234375, -0.0557861328125, 0.01129913330078125, 0.006267547607421875, -0.0198974609375, -0.00713348388671875, 0.04901123046875, -0.03369140625, -0.0302886962890625, 0.025390625, -0.03814697265625, 0.0066375732421875, 0.05731201171875, -0.01239776611328125, 0.0279388427734375, -0.020721435546875, -0.03460693359375, -0.036865234375, -0.006481170654296875, -0.027618408203125, 0.0438232421875, 0.029083251953125, -0.005767822265625, -0.007488250732421875, 0.01380157470703125, 0.021575927734375, 0.00698089599609375, -0.0012025833129882812, -0.01329803466796875, -0.0111846923828125, 0.0041961669921875, 0.00930023193359375, -0.0191192626953125, -0.0307464599609375, -0.047515869140625, -0.02386474609375, -0.006832122802734375, -0.0212249755859375, 0.0093536376953125, 0.0032939910888671875, 0.0013027191162109375, -0.0810546875, -0.0352783203125, -0.01274871826171875, 0.031829833984375, -0.02294921875, 0.0129852294921875, -0.0343017578125, -0.113525390625, 0.0755615234375, -0.01044464111328125, 0.0020923614501953125, -0.0009908676147460938, 0.07452392578125, 0.01294708251953125, -0.0283203125, -0.00667572021484375, -0.00667572021484375, 0.06256103515625, -0.031768798828125, 0.060150146484375, 0.064453125, -0.036773681640625, 0.06427001953125, 0.035003662109375, -0.016998291015625, -0.006626129150390625, 0.0268402099609375, -0.0032291412353515625, -0.0253448486328125, 0.00308990478515625, -0.01096343994140625, 0.0191192626953125, 0.00489044189453125, -0.02386474609375, -0.0162200927734375, -0.007049560546875, 0.043060302734375, -0.0309906005859375, 0.04632568359375, -0.032745361328125, -0.054290771484375, 0.01537322998046875, -0.0750732421875, 0.0101776123046875, 0.00020051002502441406, -0.0054473876953125, 0.00970458984375, 0.0295562744140625, -0.00687408447265625, -0.016387939453125, -0.01763916015625, 0.0228118896484375, 0.016082763671875, -0.023345947265625, 0.00933837890625, -0.01387786865234375, -0.01000213623046875, 0.0992431640625, -0.0157928466796875, -0.041351318359375, 0.01108551025390625, -0.0265960693359375, -0.0016689300537109375, 0.02984619140625, -0.0005650520324707031, 0.01490020751953125, -0.00302886962890625, 0.0031261444091796875, -0.01354217529296875, -0.023468017578125, -0.0114288330078125, -0.0297088623046875, 0.0270538330078125, 0.0019626617431640625, -0.0007557868957519531, 0.0270843505859375, 0.06878662109375, -0.0092010498046875, 0.048004150390625, -0.026031494140625, 0.0484619140625, 0.06463623046875, 0.0035190582275390625, 0.002960205078125, 0.0394287109375, -0.024078369140625, -0.002716064453125, -0.0022430419921875, -0.018829345703125, 0.007801055908203125, 0.010162353515625, 0.037841796875, 0.009368896484375, -0.00614166259765625, -0.00626373291015625, -0.038360595703125, -0.0160980224609375, 0.03466796875, -0.00640869140625, -0.08428955078125, 0.0005578994750976562, 0.025787353515625, -0.01091766357421875, -0.045379638671875, 0.0138702392578125, -0.032073974609375, -0.046844482421875, -0.037078857421875, 0.0001175999641418457, -0.03961181640625, -0.0298004150390625, -0.020294189453125, 0.01519012451171875, -0.00856781005859375, -0.0070343017578125, -0.01336669921875, 0.014801025390625, -0.0300140380859375, -0.0173187255859375, 0.047119140625, 0.00927734375, 0.020050048828125, -0.051422119140625, -0.0045623779296875, -0.02850341796875, -0.0205841064453125, 0.06353759765625, 0.0214996337890625, -0.03839111328125, 0.00615692138671875, -0.041900634765625, -0.0018453598022460938, 0.04412841796875, -0.033966064453125, -0.0255279541015625, -0.0253753662109375, -0.01258087158203125, 0.01509857177734375, -0.005451202392578125, 0.0255584716796875, -0.01971435546875, 0.037811279296875, 0.0058135986328125, 0.081298828125, 0.009246826171875, 0.067138671875, -0.0010213851928710938, 0.057098388671875, 0.0166015625, 0.03656005859375, -0.0294952392578125, -0.031707763671875, -0.014495849609375, 0.03717041015625, 0.025238037109375, -0.036865234375, 0.0401611328125, -0.042144775390625, 0.05267333984375, 0.0035266876220703125, 0.0121307373046875, 0.00936126708984375, 0.0024356842041015625, -0.031494140625, -0.018402099609375, 0.0176544189453125, -0.011810302734375, 0.01496124267578125, -0.043853759765625, -0.0667724609375, 0.0157623291015625, 0.032012939453125, -0.0172576904296875, -0.01165771484375, -0.037445068359375, 0.005847930908203125, -0.0399169921875, 0.03778076171875, 0.076171875, 0.0029811859130859375, 0.03338623046875, 0.017791748046875, 0.0102691650390625, 0.00954437255859375, 0.0186767578125, -0.052642822265625, -0.0025463104248046875, 0.03582763671875, 0.0169525146484375, 0.006534576416015625, 0.037200927734375, -0.0031833648681640625, 0.0233154296875, 0.062469482421875, 0.0682373046875, -0.067626953125, 0.004512786865234375, 0.0103302001953125, -0.03546142578125, 0.0286712646484375, -0.01123809814453125, -0.01168060302734375, -0.048919677734375, 0.058502197265625, -0.043243408203125, -0.0265045166015625, 0.01183319091796875, -0.0309906005859375, -0.006786346435546875, -0.017364501953125, 0.04718017578125, 0.00788116455078125, 0.0265960693359375, -0.0205230712890625, -0.0294952392578125, 0.0030574798583984375, -0.035400390625, 0.0083465576171875, 0.0016107559204101562, -0.0126800537109375, -0.06219482421875, 0.023101806640625, 0.005130767822265625, -0.006160736083984375, 0.038970947265625, 0.0251617431640625, 0.045745849609375, 0.022430419921875, 0.0287933349609375, -0.0246429443359375, -0.0086669921875, 0.0194549560546875, -0.01129150390625, -0.0379638671875, -0.0227813720703125, 0.047119140625, -0.028839111328125, 0.024993896484375, 0.0023975372314453125, -0.01177215576171875, 0.00670623779296875, -0.023345947265625, 0.08251953125, -0.043212890625, -0.0064697265625, 0.01100921630859375, 0.0225982666015625, -0.0008420944213867188, 0.01605224609375, -0.025146484375, -0.01551055908203125, -0.019561767578125, -0.00035691261291503906, -0.04522705078125, 0.0253448486328125, 0.0147247314453125, -0.061553955078125, 0.05706787109375, -0.0287628173828125, 0.04022216796875, 0.016876220703125, 0.0017070770263671875, 0.0064849853515625, -0.00946807861328125, -0.041015625, 0.02899169921875, -0.01401519775390625, 0.047576904296875, -0.053253173828125, -0.005123138427734375, 0.0013303756713867188, 0.0296630859375, 0.07086181640625, 0.0401611328125, -0.0687255859375, -0.021270751953125, -0.0054931640625, 0.00634765625, -0.0117340087890625, 0.07489013671875, 0.014801025390625, 0.005794525146484375, 0.032623291015625, -0.019012451171875, 0.03704833984375, -0.04132080078125, -0.003116607666015625, 0.0295562744140625, 0.018768310546875, 0.0218658447265625, -0.020050048828125, -0.0088958740234375, -0.04193115234375, -0.00263214111328125, 0.0355224609375, -0.0170745849609375, -0.0167388916015625, 0.0462646484375, 0.0338134765625, -0.0251922607421875, 0.0021266937255859375, -0.042236328125, 0.056060791015625, 0.019744873046875, -0.0157318115234375, 0.039581298828125, 0.0211181640625, -0.00003504753112792969, 0.016571044921875, 0.0009627342224121094, 0.0146942138671875, 0.0291900634765625, 0.061614990234375, 0.04937744140625, 0.020111083984375, -0.038848876953125, 0.0162353515625, 0.056182861328125, 0.08428955078125, -0.0479736328125, -0.047637939453125, 0.009307861328125, 0.0223846435546875, 0.03375244140625, 0.059539794921875, 0.08355712890625, -0.01023101806640625, 0.018707275390625, -0.044952392578125, 0.01197052001953125, 0.034210205078125, 0.02044677734375, -0.0034313201904296875, -0.0269775390625, -0.0277557373046875, 0.01068115234375, -0.050323486328125, -0.0098876953125, 0.0231781005859375, 0.0154571533203125, 0.01953125, 0.016815185546875, 0.05023193359375, 0.005504608154296875, -0.001636505126953125, -0.0006985664367675781, -0.004337310791015625, -0.000020802021026611328, -0.03509521484375, -0.03131103515625, -0.01305389404296875, 0.0460205078125, -0.00798797607421875, -0.007259368896484375, -0.00888824462890625, 0.004474639892578125, -0.0297088623046875, -0.0236053466796875, -0.01033782958984375, -0.0309600830078125, 0.01526641845703125, -0.013946533203125, 0.043365478515625, 0.0172882080078125, 0.0003578662872314453, -0.0286712646484375, 0.0239410400390625, 0.0452880859375, -0.025390625, 0.03436279296875, 0.004119873046875, -0.0107269287109375, 0.008331298828125, -0.0015478134155273438, -0.0004544258117675781, -0.00447845458984375, -0.11102294921875, -0.023651123046875, -0.07305908203125, 0.0144195556640625, 0.0263671875, 0.0179290771484375, -0.0104522705078125, 0.027679443359375, -0.016571044921875, 0.002178192138671875, -0.00482177734375, 0.0194244384765625, 0.01153564453125, 0.00595855712890625, 0.0289306640625, -0.0028629302978515625, -0.01177978515625, 0.002658843994140625, 0.003742218017578125, -0.0054473876953125, 0.0228271484375, 0.02667236328125, 0.0005002021789550781, 0.0195159912109375, -0.01236724853515625, 0.046234130859375, -0.07177734375, -0.033355712890625, 0.034423828125, -0.036468505859375, -0.002285003662109375, 0.018035888671875, -0.049957275390625, 0.08599853515625, -0.0166778564453125, 0.0494384765625, 0.062744140625, -0.039703369140625, 0.0010900497436523438, 0.0272979736328125, -0.0014085769653320312, -0.0123291015625, -0.0281829833984375, 0.00939178466796875, 0.02166748046875, 0.0210723876953125, 0.0271148681640625, -0.0187530517578125, -0.001819610595703125, -0.0036411285400390625, -0.03240966796875, 0.0022907257080078125, 0.0150909423828125, 0.01036834716796875, 0.0222015380859375, -0.0281524658203125, 0.0198974609375, -0.01465606689453125, -0.0153045654296875, 0.015899658203125, 0.0009760856628417969, -0.00749969482421875, 0.01690673828125, 0.010498046875, 0.0572509765625, 0.00516510009765625, 0.06243896484375, 0.004528045654296875, -0.00011068582534790039, 0.002040863037109375, 0.0169219970703125, -0.0077362060546875, -0.047882080078125, -0.0244903564453125, -0.031768798828125, -0.00726318359375, 0.027099609375, -0.0189666748046875, -0.00087738037109375, -0.0286102294921875, -0.02557373046875, 0.01119232177734375, -0.01001739501953125, -0.022705078125, 0.008209228515625, 0.004192352294921875, 0.01947021484375, -0.0379638671875, -0.0141754150390625, 0.00888824462890625, 0.0242156982421875, -0.032257080078125, 0.0236053466796875, -0.0162353515625, -0.032257080078125, 0.0167083740234375, 0.00839996337890625, 0.041839599609375, 0.01535797119140625, -0.045989990234375, 0.00494384765625, -0.043975830078125, 0.050994873046875, -0.08465576171875, -0.0279693603515625, -0.007678985595703125, 0.0291290283203125, 0.001953125, -0.0528564453125, -0.0298614501953125, -0.00013303756713867188, 0.0190582275390625, -0.0010814666748046875, 0.0205841064453125, 0.05615234375, -0.0239410400390625, -0.0611572265625, 0.0440673828125, -0.025970458984375, -0.049163818359375, 0.0233306884765625, -0.0206451416015625, -0.003215789794921875, -0.048309326171875, -0.005992889404296875, -0.052978515625, -0.0157928466796875, 0.036529541015625, 0.032440185546875, 0.0020771026611328125, 0.031982421875, 0.0278167724609375, -0.06854248046875, 0.00994110107421875, -0.0265960693359375, 0.022918701171875, 0.00872039794921875, 0.0016088485717773438, 0.012847900390625, 0.0273895263671875, -0.0277862548828125, -0.0170440673828125, -0.0211334228515625, -0.0022907257080078125, -0.031768798828125, -0.0298004150390625, -0.03350830078125, -0.0139007568359375, 0.07867431640625, 0.065673828125, 0.01166534423828125, -0.029022216796875, 0.0014581680297851562, -0.006984710693359375, -0.074951171875, 0.0180816650390625, 0.0361328125, -0.0496826171875, 0.01397705078125, 0.0287322998046875, -0.04400634765625, -0.00966644287109375, -0.0014276504516601562, -0.0731201171875, 0.0256195068359375, -0.004039764404296875, -0.01605224609375, -0.0004322528839111328, 0.01039886474609375, 0.0169677734375, -0.038421630859375, -0.033660888671875, 0.005859375, -0.0060272216796875, -0.017608642578125, -0.02020263671875, 0.01522064208984375, 0.0271453857421875, -0.059661865234375, 0.0135345458984375, 0.005321502685546875, 0.04327392578125, -0.038330078125, -0.0237274169921875, 0.007312774658203125, 0.02423095703125, -0.019927978515625, 0.0213470458984375, 0.0228424072265625, 0.020660400390625, -0.0182952880859375, 0.054962158203125, -0.022003173828125, 0.07061767578125, -0.01155853271484375, 0.051513671875, -0.0186920166015625, -0.004108428955078125, 0.018707275390625, -0.024658203125, -0.0170745849609375, 0.0203399658203125, 0.006092071533203125, -0.05291748046875, 0.01337432861328125, 0.03369140625, 0.0355224609375, 0.02001953125 ]
a9b06211cdabcdec7e45a4e9ffe8b96aaf9ba322
Wordpress Stackexchange Q: How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only Is there a way to limit the creation of pages (custom post type) to a specific depth - e.g. level 1 (where 0 = parent, 1 = child, 2 = grand-child, etc.)? For example, let's create a 'Summer' recipe page (custom post type: Recipe) with a slug '/summer'. Let's now create a 'Pie' page (a child of 'Summer') with a slug '/summer/pie'. I want to prevent the user from creating a page which is a child of 'Pie' or of any other sub-page. * *example.com/summer -> GOOD *example.com/summer/pie -> GOOD *example.com/summer/pie/apple -> BAD *example.com/summer/pie/blackberry -> BAD Thanks. A: function my_test($a) { $a['depth'] = 1; return $a; } add_action('page_attributes_dropdown_pages_args','my_test'); Put that in a theme's function.php or in a plugin.
Q: How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only Is there a way to limit the creation of pages (custom post type) to a specific depth - e.g. level 1 (where 0 = parent, 1 = child, 2 = grand-child, etc.)? For example, let's create a 'Summer' recipe page (custom post type: Recipe) with a slug '/summer'. Let's now create a 'Pie' page (a child of 'Summer') with a slug '/summer/pie'. I want to prevent the user from creating a page which is a child of 'Pie' or of any other sub-page. * *example.com/summer -> GOOD *example.com/summer/pie -> GOOD *example.com/summer/pie/apple -> BAD *example.com/summer/pie/blackberry -> BAD Thanks. A: function my_test($a) { $a['depth'] = 1; return $a; } add_action('page_attributes_dropdown_pages_args','my_test'); Put that in a theme's function.php or in a plugin. A: The following filter shows only the top-level custom post type items in page attribute dropdowns (in main edit screen and in quick edit). Replace the 'my_custom_post_type' with your custom post type name. function my_test($args) { global $post_type_object; if ( $post_type_object->name == 'my_custom_post_type') { $args['depth'] = 1; } return $args; } add_filter('page_attributes_dropdown_pages_args','my_test'); add_filter('quick_edit_dropdown_pages_args', 'my_test');
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:424890", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69535" }
[ 0.0301361083984375, 0.01013946533203125, -0.022735595703125, -0.042327880859375, 0.00861358642578125, -0.0168914794921875, -0.0020503997802734375, -0.015869140625, -0.041839599609375, -0.01166534423828125, 0.0180816650390625, -0.0104827880859375, -0.005825042724609375, -0.0673828125, 0.034698486328125, -0.036102294921875, 0.0259552001953125, -0.01113128662109375, 0.020843505859375, -0.0257568359375, 0.021392822265625, -0.017730712890625, 0.038909912109375, 0.0609130859375, 0.0246429443359375, -0.0189971923828125, -0.003509521484375, -0.01413726806640625, -0.00884246826171875, -0.039825439453125, 0.014862060546875, 0.0290069580078125, 0.0044403076171875, -0.012542724609375, 0.041473388671875, 0.01038360595703125, -0.030517578125, 0.01042938232421875, 0.0185546875, 0.00287628173828125, 0.0078125, 0.01093292236328125, 0.007049560546875, 0.0170440673828125, -0.033447265625, -0.047210693359375, 0.01336669921875, -0.01007080078125, 0.029571533203125, -0.0245819091796875, -0.0009551048278808594, 0.01763916015625, 0.0135345458984375, -0.01039886474609375, -0.0197906494140625, -0.026336669921875, 0.050628662109375, -0.043243408203125, 0.02960205078125, -0.055938720703125, -0.043212890625, 0.0025157928466796875, 0.04736328125, 0.0306396484375, 0.0306396484375, 0.0057525634765625, -0.01959228515625, 0.040069580078125, -0.01035308837890625, 0.0190277099609375, -0.0009317398071289062, -0.03814697265625, 0.0186767578125, -0.01540374755859375, -0.00954437255859375, -0.030487060546875, -0.00913238525390625, -0.0289764404296875, 0.029144287109375, 0.003574371337890625, -0.038421630859375, -0.037567138671875, -0.034576416015625, -0.039398193359375, 0.00141143798828125, -0.0032958984375, -0.025726318359375, 0.025146484375, -0.01210784912109375, 0.0163726806640625, -0.0198211669921875, 0.0015964508056640625, 0.01397705078125, 0.01568603515625, -0.0207366943359375, 0.00714111328125, 0.051727294921875, 0.0158233642578125, -0.00806427001953125, 0.0217132568359375, 0.01230621337890625, -0.053253173828125, 0.076416015625, -0.038848876953125, 0.03375244140625, 0.03741455078125, -0.03857421875, -0.0225372314453125, 0.0709228515625, 0.034332275390625, 0.02166748046875, 0.06298828125, -0.0163116455078125, -0.02825927734375, -0.0078277587890625, 0.024658203125, -0.042266845703125, 0.020172119140625, 0.01496124267578125, 0.01456451416015625, -0.0208587646484375, -0.01454925537109375, 0.042877197265625, -0.031829833984375, 0.04766845703125, 0.0208282470703125, -0.04840087890625, -0.0177764892578125, 0.034027099609375, 0.0264434814453125, -0.037261962890625, 0.0147552490234375, 0.064453125, 0.0082550048828125, -0.00036787986755371094, -0.017791748046875, 0.0019445419311523438, -0.034637451171875, -0.022735595703125, 0.0240631103515625, -0.0055694580078125, -0.040191650390625, 0.0031909942626953125, -0.01374053955078125, -0.018280029296875, 0.037139892578125, 0.0248870849609375, 0.00389862060546875, -0.01160430908203125, -0.06378173828125, 0.0092620849609375, -0.04376220703125, 0.0792236328125, -0.0296478271484375, -0.08172607421875, -0.05450439453125, -0.00655364990234375, -0.02984619140625, -0.037567138671875, -0.06280517578125, -0.027252197265625, -0.0016689300537109375, 0.033050537109375, -0.060821533203125, -0.06365966796875, -0.005725860595703125, -0.043731689453125, -0.00925445556640625, 0.0250701904296875, -0.01067352294921875, 0.035400390625, -0.0163726806640625, -0.0262451171875, 0.0159912109375, 0.021087646484375, 0.0265350341796875, -0.011322021484375, 0.0231781005859375, 0.00798797607421875, 0.042510986328125, 0.01467132568359375, -0.0308685302734375, 0.0477294921875, 0.0153045654296875, -0.0294647216796875, 0.01861572265625, -0.008941650390625, 0.00269317626953125, 0.008636474609375, -0.0025844573974609375, 0.0235443115234375, 0.0389404296875, -0.046966552734375, 0.02960205078125, -0.0278167724609375, -0.0460205078125, -0.0198974609375, -0.00868988037109375, -0.037353515625, 0.05511474609375, -0.04571533203125, -0.00043392181396484375, -0.0024356842041015625, 0.031524658203125, 0.00927734375, 0.004619598388671875, -0.0111236572265625, 0.0143280029296875, 0.035003662109375, 0.034515380859375, -0.00659942626953125, -0.005168914794921875, 0.006328582763671875, -0.043212890625, -0.022979736328125, 0.006526947021484375, 0.015777587890625, 0.011444091796875, -0.006870269775390625, 0.007720947265625, -0.002750396728515625, -0.016082763671875, -0.02490234375, 0.01047515869140625, 0.075439453125, 0.023956298828125, 0.004245758056640625, 0.007686614990234375, 0.07110595703125, 0.039642333984375, -0.05413818359375, -0.00609588623046875, 0.08746337890625, -0.00431060791015625, -0.047943115234375, 0.003154754638671875, -0.0113067626953125, -0.08294677734375, -0.032562255859375, 0.06982421875, 0.01959228515625, 0.050445556640625, -0.0211639404296875, 0.01070404052734375, 0.03314208984375, -0.09271240234375, -0.0302886962890625, 0.020263671875, -0.0235748291015625, 0.053955078125, 0.00234222412109375, 0.0382080078125, -0.00787353515625, -0.006473541259765625, -0.00670623779296875, 0.026824951171875, -0.00690460205078125, -0.04351806640625, 0.048797607421875, -0.0268096923828125, 0.03887939453125, 0.00003546476364135742, -0.043853759765625, 0.0204620361328125, 0.0032749176025390625, 0.0026073455810546875, 0.043365478515625, 0.0288848876953125, -0.0020198822021484375, -0.0283966064453125, 0.019378662109375, 0.032958984375, -0.005084991455078125, -0.027008056640625, 0.060943603515625, -0.02978515625, -0.0291595458984375, -0.0009250640869140625, 0.029083251953125, -0.0185546875, -0.00504302978515625, 0.05133056640625, 0.010589599609375, -0.004299163818359375, -0.0231170654296875, -0.05426025390625, 0.01409149169921875, 0.016845703125, -0.008331298828125, -0.004085540771484375, 0.0013523101806640625, 0.046234130859375, -0.00897216796875, 0.032257080078125, 0.03643798828125, -0.009796142578125, 0.02838134765625, -0.0274810791015625, 0.0335693359375, -0.0198822021484375, 0.0232696533203125, 0.055938720703125, 0.01161956787109375, -0.01029205322265625, -0.01418304443359375, 0.0151519775390625, -0.032196044921875, 0.018035888671875, 0.0008878707885742188, -0.0292205810546875, -0.003337860107421875, 0.0129241943359375, 0.036712646484375, 0.0181732177734375, 0.07183837890625, 0.01355743408203125, 0.0430908203125, 0.07086181640625, 0.04150390625, -0.01374053955078125, 0.042083740234375, -0.040313720703125, 0.0013456344604492188, -0.007389068603515625, -0.0191802978515625, -0.024658203125, 0.00249481201171875, -0.007694244384765625, -0.068603515625, -0.01219940185546875, -0.007663726806640625, -0.055633544921875, -0.01071929931640625, -0.00501251220703125, -0.01058197021484375, 0.0024776458740234375, -0.002414703369140625, 0.09564208984375, 0.0002567768096923828, -0.08782958984375, -0.030517578125, 0.040313720703125, -0.0171356201171875, 0.01073455810546875, -0.010009765625, -0.0215606689453125, 0.052581787109375, 0.005016326904296875, -0.046356201171875, -0.00670623779296875, 0.0269775390625, -0.035614013671875, -0.01666259765625, 0.0007219314575195312, -0.004657745361328125, 0.0170745849609375, 0.0218048095703125, 0.0201568603515625, 0.0219879150390625, -0.0278778076171875, -0.09332275390625, 0.00010532140731811523, -0.0865478515625, 0.0017375946044921875, 0.07550048828125, -0.0010929107666015625, -0.031951904296875, 0.0184326171875, 0.047119140625, 0.019805908203125, 0.034912109375, -0.008697509765625, 0.0276336669921875, -0.0026378631591796875, 0.00733184814453125, -0.058013916015625, 0.0794677734375, -0.0053558349609375, 0.01715087890625, 0.04107666015625, 0.0127410888671875, 0.03436279296875, -0.04290771484375, -0.009521484375, -0.0140533447265625, -0.0006146430969238281, -0.054412841796875, 0.043609619140625, -0.0477294921875, 0.01194000244140625, -0.03607177734375, 0.028594970703125, -0.0894775390625, 0.0024700164794921875, -0.0174102783203125, -0.00287628173828125, 0.0438232421875, -0.044189453125, -0.054840087890625, -0.033599853515625, -0.0144195556640625, 0.005100250244140625, 0.0171966552734375, -0.0157928466796875, -0.0175628662109375, -0.002002716064453125, -0.0181884765625, -0.0193939208984375, 0.0306549072265625, -0.033111572265625, -0.029449462890625, 0.034088134765625, -0.0311431884765625, 0.001209259033203125, -0.010162353515625, -0.00988006591796875, -0.0826416015625, -0.036102294921875, 0.049591064453125, 0.035125732421875, -0.028961181640625, -0.032318115234375, -0.0119476318359375, 0.0560302734375, 0.0035457611083984375, 0.035491943359375, -0.020416259765625, -0.00848388671875, -0.016265869140625, 0.009124755859375, 0.0205841064453125, -0.021575927734375, -0.0192718505859375, -0.03582763671875, -0.018035888671875, 0.0198211669921875, -0.01593017578125, 0.002918243408203125, -0.0080413818359375, -0.0021610260009765625, -0.0771484375, -0.06939697265625, -0.072265625, -0.01617431640625, -0.0194854736328125, -0.00927734375, -0.07257080078125, -0.090087890625, 0.0296173095703125, 0.021484375, -0.024688720703125, -0.010406494140625, 0.04522705078125, 0.0200347900390625, -0.047332763671875, -0.0201416015625, -0.0009784698486328125, 0.0012187957763671875, -0.028717041015625, 0.072509765625, -0.0081787109375, 0.0160064697265625, 0.0665283203125, -0.046173095703125, -0.0009503364562988281, -0.01947021484375, 0.07098388671875, -0.0060272216796875, -0.009765625, 0.00922393798828125, -0.027923583984375, -0.005908966064453125, 0.030792236328125, -0.03485107421875, -0.00809478759765625, -0.06488037109375, 0.06695556640625, -0.00238037109375, 0.0181884765625, -0.07501220703125, -0.034637451171875, 0.0217132568359375, -0.01445770263671875, 0.014495849609375, 0.0053253173828125, 0.005584716796875, 0.00824737548828125, -0.0187835693359375, 0.022552490234375, 0.018890380859375, 0.06280517578125, -0.024261474609375, 0.07757568359375, -0.01806640625, 0.012725830078125, -0.01023101806640625, 0.000043332576751708984, 0.044281005859375, 0.014801025390625, -0.0286407470703125, -0.005352020263671875, -0.00550079345703125, -0.01364898681640625, -0.007663726806640625, 0.0190582275390625, 0.0127105712890625, 0.01007843017578125, -0.003604888916015625, 0.0034465789794921875, 0.01268768310546875, 0.01105499267578125, -0.0226287841796875, -0.0038852691650390625, 0.0142364501953125, -0.034027099609375, -0.0322265625, 0.019775390625, 0.027069091796875, -0.033233642578125, -0.01534271240234375, 0.012298583984375, 0.041259765625, 0.00821685791015625, 0.028472900390625, 0.013824462890625, 0.0050201416015625, -0.019012451171875, 0.041259765625, -0.0158843994140625, -0.06298828125, 0.04705810546875, 0.039764404296875, -0.008056640625, 0.02239990234375, -0.0107269287109375, 0.0242462158203125, -0.003986358642578125, 0.00904083251953125, 0.0176239013671875, 0.0068206787109375, 0.00399017333984375, 0.006336212158203125, 0.0180206298828125, 0.015045166015625, -0.0303955078125, -0.007602691650390625, -0.0399169921875, 0.012176513671875, -0.012939453125, -0.0252838134765625, 0.0268707275390625, 0.0203094482421875, -0.0728759765625, -0.01025390625, 0.00884246826171875, -0.03765869140625, -0.03802490234375, 0.00521087646484375, -0.020172119140625, -0.0201416015625, -0.01274871826171875, 0.05010986328125, -0.028076171875, -0.0220184326171875, -0.01383209228515625, 0.01751708984375, 0.014251708984375, 0.00492095947265625, -0.0296783447265625, -0.0114898681640625, -0.043487548828125, -0.00432586669921875, -0.0347900390625, -0.043609619140625, -0.0206146240234375, 0.004207611083984375, -0.0147857666015625, 0.00641632080078125, -0.0055999755859375, 0.02392578125, -0.006622314453125, 0.031890869140625, -0.005519866943359375, 0.012451171875, -0.028167724609375, 0.05609130859375, -0.013458251953125, 0.03179931640625, 0.00914764404296875, 0.02789306640625, 0.02703857421875, -0.01617431640625, 0.024078369140625, -0.042999267578125, -0.0234375, -0.0182952880859375, -0.03814697265625, 0.006572723388671875, 0.040771484375, -0.009490966796875, 0.0374755859375, -0.00839996337890625, 0.01548004150390625, -0.0186920166015625, -0.03253173828125, -0.0445556640625, 0.00272369384765625, 0.036346435546875, -0.017669677734375, 0.0628662109375, 0.0032901763916015625, -0.0174407958984375, 0.0214691162109375, -0.0207672119140625, 0.049285888671875, 0.0143280029296875, -0.0118865966796875, 0.0256500244140625, 0.051300048828125, 0.0248565673828125, 0.04937744140625, 0.0080413818359375, 0.02984619140625, 0.0222015380859375, 0.018890380859375, 0.0143585205078125, -0.046295166015625, 0.05364990234375, 0.0209503173828125, -0.0011796951293945312, 0.0526123046875, -0.020751953125, -0.0265350341796875, 0.059051513671875, 0.0191192626953125, -0.06317138671875, -0.01374053955078125, 0.0011796951293945312, 0.007381439208984375, 0.0032444000244140625, -0.004550933837890625, 0.038604736328125, 0.053192138671875, -0.030792236328125, 0.029388427734375, -0.035919189453125, -0.01580810546875, 0.0017147064208984375, -0.00696563720703125, -0.01052093505859375, 0.046478271484375, 0.0232696533203125, 0.05120849609375, -0.01068878173828125, -0.042144775390625, 0.031463623046875, -0.036529541015625, -0.0004987716674804688, -0.025909423828125, -0.0158538818359375, -0.040496826171875, 0.00124359130859375, -0.0308685302734375, 0.042205810546875, 0.050384521484375, -0.0208587646484375, 0.01290130615234375, 0.053131103515625, -0.037445068359375, 0.04058837890625, 0.0170440673828125, -0.0277862548828125, 0.00351715087890625, -0.0213470458984375, -0.0005593299865722656, -0.02557373046875, -0.05657958984375, 0.0028591156005859375, -0.06561279296875, 0.0006804466247558594, -0.005321502685546875, -0.022003173828125, 0.0748291015625, 0.005077362060546875, -0.042633056640625, 0.024017333984375, -0.03961181640625, -0.01464080810546875, -0.004367828369140625, 0.017547607421875, -0.007572174072265625, -0.00012171268463134766, -0.0018091201782226562, -0.00876617431640625, -0.01122283935546875, -0.0165863037109375, -0.0623779296875, 0.055419921875, -0.03985595703125, 0.0222930908203125, 0.01161956787109375, 0.028228759765625, -0.021026611328125, -0.0025787353515625, -0.04656982421875, 0.044769287109375, 0.06756591796875, 0.049957275390625, -0.0430908203125, -0.03155517578125, 0.0176849365234375, 0.044097900390625, 0.0214996337890625, 0.010711669921875, -0.01322174072265625, -0.0104217529296875, 0.028106689453125, -0.004108428955078125, -0.01482391357421875, 0.05401611328125, -0.01061248779296875, 0.004962921142578125, 0.03631591796875, -0.00540924072265625, 0.0271148681640625, -0.018829345703125, -0.01708984375, 0.006855010986328125, -0.0020198822021484375, -0.00531005859375, -0.0177001953125, -0.013092041015625, -0.03204345703125, -0.008636474609375, 0.0202178955078125, -0.010894775390625, -0.00022017955780029297, 0.057373046875, 0.054168701171875, -0.042388916015625, -0.03350830078125, -0.0296783447265625, 0.055908203125, 0.0209197998046875, 0.0285186767578125, 0.01351165771484375, 0.0185089111328125, -0.0193023681640625, 0.0180206298828125, 0.01458740234375, 0.03314208984375, -0.044921875, -0.0032501220703125, 0.03216552734375, 0.026763916015625, -0.01296234130859375, 0.00565338134765625, 0.047943115234375, 0.0147552490234375, -0.0247955322265625, -0.03778076171875, 0.00977325439453125, 0.020782470703125, 0.0058135986328125, 0.0162811279296875, 0.0304412841796875, 0.0212554931640625, 0.06805419921875, -0.0579833984375, -0.00811004638671875, 0.033416748046875, 0.0294647216796875, -0.0175933837890625, -0.031890869140625, -0.01372528076171875, -0.015380859375, -0.01371002197265625, -0.037567138671875, -0.00637054443359375, 0.0242156982421875, 0.035552978515625, 0.0267486572265625, 0.00765228271484375, -0.00830078125, 0.0226287841796875, -0.0204620361328125, -0.0218658447265625, -0.018463134765625, -0.006519317626953125, -0.0272064208984375, 0.01523590087890625, 0.026885986328125, 0.004314422607421875, 0.0307464599609375, 0.0262603759765625, 0.0189666748046875, -0.00965118408203125, -0.00806427001953125, 0.004985809326171875, -0.029693603515625, -0.001495361328125, -0.0140533447265625, -0.025177001953125, -0.01247406005859375, -0.0281982421875, -0.00035500526428222656, 0.01445770263671875, 0.0007753372192382812, 0.019683837890625, 0.01214599609375, 0.0171356201171875, -0.00785064697265625, -0.01025390625, 0.00778961181640625, 0.0084381103515625, 0.027740478515625, -0.059814453125, -0.01715087890625, -0.005504608154296875, -0.0450439453125, 0.056793212890625, 0.055511474609375, -0.01360321044921875, -0.01334381103515625, 0.044097900390625, -0.034942626953125, 0.007480621337890625, 0.0202484130859375, 0.0072479248046875, 0.01934814453125, 0.00923919677734375, 0.0145263671875, -0.005725860595703125, 0.0183563232421875, 0.01242828369140625, 0.0009083747863769531, -0.005481719970703125, 0.09844970703125, -0.03802490234375, -0.00009417533874511719, -0.00043129920959472656, 0.036376953125, -0.024993896484375, -0.0273590087890625, 0.06793212890625, -0.00391387939453125, 0.0186309814453125, -0.0197906494140625, -0.046356201171875, -0.010894775390625, 0.0102386474609375, -0.031646728515625, -0.0186920166015625, -0.014312744140625, 0.025787353515625, 0.0107421875, -0.01934814453125, -0.035888671875, -0.01061248779296875, -0.035064697265625, -0.031524658203125, 0.0291748046875, 0.0007548332214355469, -0.00847625732421875, 0.06964111328125, -0.024017333984375, -0.0143890380859375, 0.0170135498046875, -0.0673828125, -0.0047607421875, 0.02008056640625, -0.00841522216796875, -0.011260986328125, 0.07403564453125, -0.002490997314453125, 0.0325927734375, 0.025054931640625, 0.0207672119140625, 0.07415771484375, -0.04718017578125, 0.019287109375, 0.0037841796875, 0.0014390945434570312, -0.0482177734375, -0.03076171875, 0.0216522216796875, -0.0173492431640625, -0.002899169921875, -0.005519866943359375, -0.0199737548828125, -0.021209716796875, -0.002117156982421875, 0.01491546630859375, -0.0022125244140625, -0.0166015625, -0.03106689453125, 0.045684814453125, 0.058807373046875, 0.035369873046875, -0.10321044921875, 0.0850830078125, -0.0301513671875, 0.07275390625, 0.028533935546875, 0.0250701904296875, -0.0065460205078125, -0.0207366943359375, -0.040069580078125, 0.02911376953125, -0.02178955078125, -0.0004172325134277344, 0.0234375, 0.01446533203125, 0.0289459228515625, -0.022216796875, -0.005168914794921875, 0.0297393798828125, 0.01708984375, 0.06884765625, -0.004894256591796875, -0.00679779052734375, 0.027099609375, -0.0197906494140625, -0.0293731689453125, -0.035247802734375, 0.02301025390625, -0.059326171875, -0.0341796875, -0.01033782958984375, -0.0024051666259765625, 0.03076171875, -0.01812744140625, -0.06048583984375, 0.0782470703125, -0.01456451416015625, -0.023284912109375, -0.0050811767578125, 0.02490234375, -0.029266357421875, 0.0523681640625, 0.02154541015625, -0.0209503173828125, 0.023101806640625, 0.0172576904296875, 0.013885498046875, -0.00011658668518066406, 0.0180511474609375, 0.035980224609375, -0.00439453125, 0.03912353515625, 0.041748046875, -0.0084075927734375, 0.01094818115234375, 0.024444580078125, 0.00806427001953125, 0.04901123046875, -0.03326416015625, 0.03326416015625, -0.02642822265625, -0.007419586181640625, 0.01366424560546875, -0.017120361328125, -0.05584716796875, -0.048675537109375, 0.07208251953125, 0.038421630859375, 0.0239105224609375, 0.00954437255859375, -0.0291900634765625, -0.034027099609375, -0.006732940673828125, 0.0018310546875, 0.00923919677734375, -0.038299560546875, 0.0176849365234375, 0.0091400146484375, -0.0016021728515625, -0.0012598037719726562, -0.0167999267578125, -0.004589080810546875, -0.004638671875, 0.037841796875, 0.005878448486328125, -0.023895263671875, 0.0439453125, 0.0007376670837402344, -0.02850341796875, -0.0160675048828125, -0.007526397705078125, -0.0189971923828125, -0.0111083984375, -0.00084686279296875, -0.037994384765625, 0.01406097412109375, -0.028167724609375, 0.02178955078125, -0.02069091796875, 0.06182861328125, -0.05194091796875, 0.0175018310546875, -0.0280303955078125, 0.00811004638671875, 0.02520751953125, 0.0122528076171875, -0.034088134765625, 0.0181121826171875, 0.0177764892578125, 0.019256591796875, 0.01849365234375, 0.021697998046875, -0.006744384765625, 0.0227813720703125, -0.002773284912109375, -0.0133819580078125, -0.0013742446899414062, -0.0023784637451171875, 0.006542205810546875, -0.01412200927734375, 0.000804901123046875, -0.0411376953125, 0.0020313262939453125, 0.041961669921875, -0.0172119140625, 0.02081298828125 ]
9e665d71f6419a8c0681ac9396906bea86b5d38b
Wordpress Stackexchange Q: How to sort terms with diacritical signs? I have list of terms which happens to be the Polish Alphabet. Here's how I list these terms: <ul> <?php $terms = get_terms("taxonomy", array('orderby' => 'title', 'hide_empty' => 0)); foreach ( $terms as $term ) { echo "<li><a href='". get_term_link( $term->slug, $term->taxonomy ) ."'>" . $term->name . "</a></li>"; } ?> Everything works like a charm excepting one thing - the letter that is supposed to be after "L" ("Ł") is always the last element o that list (so it's after "Ż", not "L"). Is there any way to fix it? I've been trying multiple WP versions including Polish builds. Any ideas? I can always do two foreach loops for A-L and M-Ż and add that one between them, but would love to do that with more class. A: You need to set the database collation to utf8_polish_ci in your wp-config.php to get correct sorting.
Q: How to sort terms with diacritical signs? I have list of terms which happens to be the Polish Alphabet. Here's how I list these terms: <ul> <?php $terms = get_terms("taxonomy", array('orderby' => 'title', 'hide_empty' => 0)); foreach ( $terms as $term ) { echo "<li><a href='". get_term_link( $term->slug, $term->taxonomy ) ."'>" . $term->name . "</a></li>"; } ?> Everything works like a charm excepting one thing - the letter that is supposed to be after "L" ("Ł") is always the last element o that list (so it's after "Ż", not "L"). Is there any way to fix it? I've been trying multiple WP versions including Polish builds. Any ideas? I can always do two foreach loops for A-L and M-Ż and add that one between them, but would love to do that with more class. A: You need to set the database collation to utf8_polish_ci in your wp-config.php to get correct sorting.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:424910", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69587" }
[ -0.00876617431640625, -0.0008006095886230469, -0.0204315185546875, 0.022918701171875, 0.00460052490234375, -0.0309295654296875, 0.0521240234375, -0.0050811767578125, 0.054046630859375, 0.0545654296875, -0.004436492919921875, -0.04730224609375, 0.006435394287109375, -0.019805908203125, -0.081787109375, -0.0207977294921875, 0.007251739501953125, -0.01032257080078125, 0.015838623046875, -0.00739288330078125, 0.01074981689453125, -0.01395416259765625, 0.031707763671875, -0.038818359375, -0.0165252685546875, -0.034759521484375, 0.1016845703125, -0.054534912109375, 0.00528717041015625, -0.044921875, -0.000029146671295166016, 0.0225982666015625, 0.035552978515625, -0.0205230712890625, -0.0112152099609375, 0.0213165283203125, 0.0286865234375, -0.0199737548828125, -0.0123138427734375, 0.039337158203125, 0.0296478271484375, -0.010498046875, -0.00952911376953125, 0.021026611328125, -0.037139892578125, -0.0340576171875, 0.033416748046875, -0.00677490234375, 0.01873779296875, -0.0255279541015625, 0.00543212890625, 0.0210723876953125, 0.015838623046875, -0.0328369140625, 0.0007185935974121094, 0.0208587646484375, 0.00019931793212890625, 0.01061248779296875, -0.00412750244140625, 0.01457977294921875, 0.0006442070007324219, 0.0462646484375, -0.0036182403564453125, 0.0032978057861328125, -0.008819580078125, 0.034912109375, 0.033782958984375, -0.0014705657958984375, -0.0174407958984375, -0.02655029296875, -0.012542724609375, -0.02056884765625, 0.00933837890625, -0.0235137939453125, 0.052490234375, -0.0122222900390625, -0.015655517578125, -0.00830841064453125, 0.0146484375, 0.014678955078125, 0.0408935546875, 0.01364898681640625, -0.0265655517578125, 0.005146026611328125, 0.0169525146484375, 0.0389404296875, 0.0008296966552734375, -0.04339599609375, -0.01294708251953125, -0.048858642578125, -0.0186004638671875, 0.0286712646484375, -0.049072265625, 0.01184844970703125, -0.032318115234375, -0.0160675048828125, 0.0301055908203125, 0.0526123046875, -0.027252197265625, -0.014678955078125, -0.0164642333984375, -0.023651123046875, 0.01016998291015625, -0.032012939453125, 0.018463134765625, -0.0080718994140625, -0.0185089111328125, 0.0285491943359375, 0.05047607421875, 0.038848876953125, -0.0154266357421875, 0.0079193115234375, -0.00804901123046875, -0.095703125, 0.05389404296875, 0.0286407470703125, -0.014617919921875, 0.09088134765625, 0.052001953125, -0.01120758056640625, 0.0169677734375, 0.0579833984375, 0.0081787109375, -0.032867431640625, -0.0006880760192871094, 0.0281219482421875, 0.000028192996978759766, -0.07733154296875, -0.033355712890625, 0.02978515625, -0.0122833251953125, 0.0011415481567382812, 0.0144500732421875, 0.04425048828125, -0.004730224609375, -0.005584716796875, -0.04681396484375, -0.01500701904296875, -0.0060577392578125, -0.006679534912109375, 0.01122283935546875, 0.002300262451171875, 0.03399658203125, 0.002346038818359375, 0.0117340087890625, -0.0029926300048828125, -0.008575439453125, 0.0300750732421875, 0.000370025634765625, -0.018157958984375, 0.05780029296875, -0.053924560546875, 0.0843505859375, -0.00501251220703125, -0.10308837890625, -0.01123809814453125, 0.00762939453125, -0.018890380859375, -0.07562255859375, -0.0748291015625, -0.048095703125, -0.039794921875, 0.00179290771484375, -0.0477294921875, -0.038726806640625, 0.0626220703125, 0.0007271766662597656, 0.0060272216796875, 0.00867462158203125, -0.04296875, 0.0239410400390625, 0.0011510848999023438, -0.0054931640625, -0.0228729248046875, -0.00139617919921875, -0.01049041748046875, -0.0216522216796875, -0.0139617919921875, 0.00926971435546875, 0.043426513671875, 0.0135040283203125, -0.011810302734375, -0.0166168212890625, 0.0290374755859375, -0.0117950439453125, 0.031524658203125, 0.0026721954345703125, 0.04083251953125, 0.012542724609375, 0.006008148193359375, -0.00441741943359375, 0.0194854736328125, -0.063232421875, 0.040802001953125, 0.0124664306640625, -0.02593994140625, -0.0086669921875, 0.0025005340576171875, 0.004215240478515625, -0.025054931640625, -0.01200103759765625, 0.0198516845703125, -0.03948974609375, 0.0034122467041015625, -0.059967041015625, 0.0081634521484375, -0.0175018310546875, 0.03277587890625, -0.0111846923828125, 0.0179901123046875, 0.0204315185546875, 0.01471710205078125, -0.047271728515625, 0.00948333740234375, -0.0193634033203125, 0.01174163818359375, -0.00909423828125, 0.01448822021484375, -0.01084136962890625, 0.016265869140625, 0.0138092041015625, -0.0467529296875, 0.0151824951171875, 0.028228759765625, 0.00397491455078125, 0.004852294921875, -0.04010009765625, 0.0022830963134765625, -0.025482177734375, -0.007110595703125, 0.00457763671875, 0.0745849609375, 0.041259765625, 0.03936767578125, -0.0036754608154296875, -0.003917694091796875, 0.0267333984375, -0.08441162109375, 0.01024627685546875, 0.03973388671875, 0.0231170654296875, 0.01013946533203125, -0.016693115234375, -0.0033588409423828125, 0.032928466796875, -0.031982421875, 0.003498077392578125, -0.017791748046875, 0.0426025390625, 0.08001708984375, -0.02532958984375, 0.0242919921875, -0.007171630859375, 0.004817962646484375, 0.019927978515625, 0.02398681640625, -0.0031871795654296875, -0.00046181678771972656, 0.022064208984375, -0.0034999847412109375, 0.01345062255859375, 0.01285552978515625, -0.02032470703125, 0.01529693603515625, -0.0003352165222167969, 0.0022792816162109375, -0.0005960464477539062, -0.0007829666137695312, -0.041534423828125, -0.0005965232849121094, 0.035552978515625, 0.01422882080078125, 0.0125579833984375, 0.0224151611328125, -0.0290679931640625, -0.00994110107421875, -0.01032257080078125, 0.0120849609375, -0.01169586181640625, 0.01251220703125, 0.01410675048828125, 0.059539794921875, 0.03515625, -0.00399017333984375, -0.01556396484375, -0.04498291015625, 0.0075225830078125, 0.0203094482421875, -0.10650634765625, -0.04779052734375, -0.0133514404296875, 0.05438232421875, -0.035186767578125, 0.0160980224609375, -0.043243408203125, 0.005001068115234375, 0.035125732421875, 0.01105499267578125, -0.0092010498046875, -0.017333984375, 0.04052734375, 0.0211334228515625, -0.0038967132568359375, -0.01410675048828125, 0.026702880859375, -0.0202178955078125, 0.0243072509765625, 0.005290985107421875, -0.008056640625, 0.00870513916015625, -0.06121826171875, 0.003963470458984375, 0.0254669189453125, 0.0271453857421875, 0.010711669921875, -0.025726318359375, 0.01001739501953125, 0.0286865234375, -0.044647216796875, -0.041290283203125, -0.022735595703125, -0.055816650390625, -0.0052032470703125, 0.0210723876953125, -0.041839599609375, 0.00728607177734375, 0.03778076171875, 0.01349639892578125, 0.00530242919921875, -0.03802490234375, -0.02606201171875, -0.05419921875, -0.034820556640625, 0.017181396484375, 0.019195556640625, -0.00867462158203125, 0.0213775634765625, 0.0219573974609375, 0.0172119140625, -0.0095062255859375, 0.040863037109375, 0.05731201171875, -0.018585205078125, 0.006618499755859375, -0.01220703125, -0.006923675537109375, -0.0159912109375, -0.0069122314453125, 0.03826904296875, 0.0288848876953125, -0.04168701171875, 0.01351165771484375, -0.0015974044799804688, 0.0156707763671875, 0.041748046875, -0.054901123046875, -0.0193939208984375, 0.018890380859375, 0.00966644287109375, -0.031646728515625, -0.003322601318359375, 0.0122833251953125, 0.0231781005859375, 0.0423583984375, -0.060760498046875, -0.006542205810546875, 0.0012445449829101562, 0.0628662109375, -0.019805908203125, -0.003910064697265625, -0.02471923828125, -0.027191162109375, 0.01158905029296875, 0.0084075927734375, 0.0015535354614257812, 0.03887939453125, 0.047332763671875, -0.0114288330078125, 0.0158538818359375, 0.03076171875, 0.023284912109375, 0.0179901123046875, -0.0288238525390625, -0.04278564453125, -0.0286102294921875, 0.0306549072265625, -0.056884765625, -0.0156707763671875, -0.00749969482421875, -0.006114959716796875, 0.0217742919921875, 0.0657958984375, 0.00015175342559814453, -0.0177459716796875, -0.0169525146484375, 0.0093994140625, -0.042633056640625, -0.0210418701171875, -0.0224609375, -0.0156402587890625, -0.0892333984375, 0.0190277099609375, 0.0238189697265625, -0.042877197265625, -0.03302001953125, -0.007595062255859375, -0.0823974609375, -0.0218658447265625, 0.039215087890625, -0.0433349609375, -0.01050567626953125, 0.03369140625, -0.040130615234375, 0.01337432861328125, -0.037353515625, -0.0020122528076171875, -0.07635498046875, -0.021697998046875, -0.0086212158203125, 0.050262451171875, 0.006290435791015625, -0.032379150390625, -0.01442718505859375, 0.06640625, -0.0100555419921875, -0.01116943359375, 0.03631591796875, 0.0263519287109375, 0.0266571044921875, 0.04022216796875, 0.022003173828125, -0.017333984375, 0.01438140869140625, 0.002918243408203125, -0.06341552734375, -0.0107421875, -0.020172119140625, 0.0159149169921875, 0.023681640625, -0.048614501953125, -0.030853271484375, -0.013946533203125, -0.0017795562744140625, 0.035919189453125, -0.00868988037109375, 0.0027904510498046875, -0.025360107421875, -0.055816650390625, 0.012359619140625, 0.03472900390625, -0.0267486572265625, -0.00305938720703125, 0.03350830078125, 0.0252838134765625, -0.03607177734375, -0.00920867919921875, 0.02947998046875, 0.03131103515625, -0.004817962646484375, 0.032562255859375, 0.0055389404296875, -0.01055908203125, 0.0548095703125, -0.01165771484375, -0.0193634033203125, 0.034454345703125, -0.00333404541015625, 0.03759765625, -0.0311737060546875, 0.0123138427734375, 0.039459228515625, -0.004009246826171875, 0.039794921875, 0.0189361572265625, -0.051788330078125, 0.0205535888671875, 0.0295257568359375, -0.03741455078125, 0.03363037109375, -0.0078887939453125, -0.09771728515625, 0.0460205078125, -0.04425048828125, -0.0160675048828125, -0.0494384765625, 0.01560211181640625, 0.0213623046875, -0.01436614990234375, 0.0005016326904296875, 0.00984954833984375, -0.010467529296875, -0.0011510848999023438, 0.02130126953125, 0.004535675048828125, -0.0092620849609375, 0.00786590576171875, -0.0229644775390625, 0.071044921875, 0.01025390625, -0.03924560546875, 0.015869140625, -0.0119171142578125, -0.0042877197265625, 0.0191192626953125, -0.0185394287109375, -0.04754638671875, -0.030609130859375, 0.0020198822021484375, 0.043304443359375, -0.0178985595703125, -0.00027632713317871094, 0.0145721435546875, -0.0008549690246582031, -0.01004791259765625, 0.0062255859375, -0.02606201171875, 0.09539794921875, -0.0108184814453125, 0.031036376953125, -0.0216217041015625, -0.03839111328125, -0.01458740234375, 0.045501708984375, 0.05419921875, -0.052459716796875, -0.0377197265625, 0.044403076171875, 0.00982666015625, -0.005443572998046875, -0.0284576416015625, -0.01207733154296875, -0.0011796951293945312, -0.0191497802734375, 0.0273895263671875, 0.023895263671875, 0.0174560546875, -0.038238525390625, 0.03448486328125, 0.00701141357421875, -0.032318115234375, -0.041107177734375, -0.0179290771484375, 0.0242919921875, -0.0013103485107421875, 0.009246826171875, 0.03546142578125, 0.02294921875, 0.0184326171875, 0.01165771484375, -0.01275634765625, -0.0260009765625, -0.0246124267578125, -0.0285797119140625, 0.010162353515625, 0.01922607421875, -0.0357666015625, -0.05255126953125, -0.00252532958984375, -0.02642822265625, 0.07025146484375, 0.0107421875, 0.0345458984375, -0.0157318115234375, -0.024627685546875, 0.018890380859375, 0.019317626953125, 0.019256591796875, -0.01358795166015625, -0.0236663818359375, 0.01097869873046875, -0.031982421875, -0.007160186767578125, -0.0249176025390625, -0.0318603515625, -0.0218353271484375, -0.01535797119140625, 0.0137786865234375, -0.0016040802001953125, 0.00010663270950317383, -0.044342041015625, -0.0064849853515625, 0.0133056640625, 0.0252685546875, -0.0360107421875, 0.003513336181640625, 0.01375579833984375, -0.01904296875, 0.01007080078125, -0.01197052001953125, 0.002872467041015625, -0.005115509033203125, -0.008056640625, 0.0031890869140625, -0.11004638671875, -0.022247314453125, 0.006435394287109375, -0.054656982421875, 0.04559326171875, 0.001560211181640625, 0.01151275634765625, 0.04754638671875, -0.0017642974853515625, 0.0196075439453125, 0.0019741058349609375, -0.0333251953125, -0.019622802734375, -0.00652313232421875, 0.085205078125, -0.0187225341796875, 0.03350830078125, -0.004711151123046875, -0.021148681640625, 0.037445068359375, -0.03167724609375, 0.023681640625, 0.029571533203125, 0.03509521484375, -0.0322265625, -0.01324462890625, 0.0465087890625, 0.017852783203125, 0.0035858154296875, 0.04150390625, -0.04046630859375, 0.0109100341796875, 0.046234130859375, -0.02252197265625, 0.0202789306640625, -0.017181396484375, -0.002437591552734375, -0.0104522705078125, -0.039703369140625, -0.0230255126953125, 0.051483154296875, 0.03509521484375, -0.047943115234375, -0.02191162109375, 0.0002808570861816406, -0.0310516357421875, -0.016998291015625, 0.035675048828125, -0.0281219482421875, -0.053131103515625, 0.0231170654296875, -0.07696533203125, -0.007656097412109375, 0.003116607666015625, -0.0384521484375, -0.0026092529296875, -0.004589080810546875, 0.03558349609375, -0.0013780593872070312, -0.01529693603515625, -0.0282745361328125, -0.01004791259765625, -0.002864837646484375, -0.032684326171875, 0.0107879638671875, -0.01213836669921875, -0.006977081298828125, -0.039947509765625, 0.010650634765625, -0.01038360595703125, 0.0018186569213867188, 0.006744384765625, -0.0245513916015625, 0.0019683837890625, 0.013519287109375, -0.0214080810546875, -0.02569580078125, -0.0096282958984375, -0.07861328125, 0.0419921875, -0.0106201171875, -0.0252685546875, 0.002498626708984375, -0.022216796875, -0.01197052001953125, -0.0171661376953125, 0.0172576904296875, -0.0399169921875, -0.0810546875, 0.0706787109375, -0.0257720947265625, -0.0006747245788574219, -0.015655517578125, 0.0882568359375, 0.0303802490234375, -0.0015954971313476562, -0.0264129638671875, -0.08734130859375, -0.07293701171875, 0.0010004043579101562, -0.08355712890625, 0.0242462158203125, 0.002986907958984375, -0.04327392578125, 0.06549072265625, -0.01178741455078125, 0.014404296875, 0.00820159912109375, 0.02044677734375, -0.01065826416015625, 0.01434326171875, -0.062164306640625, 0.0280914306640625, 0.01291656494140625, 0.035491943359375, -0.0885009765625, 0.005046844482421875, -0.03289794921875, -0.0011577606201171875, -0.003429412841796875, -0.022064208984375, -0.0307464599609375, 0.0238494873046875, 0.09521484375, 0.041961669921875, 0.036712646484375, 0.027130126953125, -0.0038394927978515625, 0.02001953125, 0.033416748046875, 0.01042938232421875, 0.035003662109375, 0.0162811279296875, -0.048614501953125, 0.027923583984375, 0.01464080810546875, 0.003997802734375, -0.035430908203125, -0.01294708251953125, -0.04022216796875, -0.022552490234375, 0.031524658203125, -0.00457763671875, 0.053741455078125, -0.017059326171875, 0.043487548828125, -0.06903076171875, 0.0015935897827148438, -0.019073486328125, 0.0406494140625, 0.002532958984375, 0.056427001953125, 0.05810546875, 0.0254058837890625, 0.058013916015625, -0.032012939453125, 0.03900146484375, -0.0245361328125, -0.0192413330078125, 0.027587890625, 0.005031585693359375, 0.01352691650390625, -0.0262908935546875, 0.059661865234375, 0.033111572265625, 0.034820556640625, -0.054595947265625, -0.0301971435546875, 0.00142669677734375, -0.01300811767578125, 0.012176513671875, 0.005695343017578125, 0.02081298828125, 0.0101318359375, 0.01389312744140625, -0.047698974609375, -0.0183258056640625, -0.0019130706787109375, 0.061859130859375, -0.0236053466796875, -0.014404296875, -0.033355712890625, -0.062164306640625, -0.041168212890625, 0.020233154296875, 0.01323699951171875, 0.0284576416015625, -0.00925445556640625, 0.043426513671875, 0.00019288063049316406, 0.005222320556640625, 0.0197296142578125, 0.0213470458984375, 0.0008144378662109375, -0.028717041015625, 0.01128387451171875, -0.01287078857421875, -0.044281005859375, 0.007198333740234375, -0.0011205673217773438, -0.00719451904296875, 0.017974853515625, 0.04180908203125, 0.015777587890625, -0.0201873779296875, 0.039642333984375, -0.01013946533203125, -0.02716064453125, -0.0313720703125, 0.0797119140625, 0.06658935546875, 0.036773681640625, -0.0169219970703125, 0.07611083984375, 0.04833984375, -0.021484375, 0.059326171875, -0.0005350112915039062, 0.004161834716796875, 0.0283355712890625, -0.010040283203125, 0.049530029296875, 0.0197906494140625, -0.0758056640625, -0.004093170166015625, -0.0276641845703125, -0.0173797607421875, 0.006320953369140625, 0.0294189453125, 0.033477783203125, -0.004642486572265625, 0.024871826171875, -0.052459716796875, 0.0281982421875, 0.0186004638671875, 0.0130767822265625, -0.0171356201171875, -0.00777435302734375, -0.037994384765625, 0.005466461181640625, 0.0009331703186035156, 0.03460693359375, 0.0238494873046875, -0.0307159423828125, 0.048736572265625, -0.0195159912109375, 0.017669677734375, -0.046112060546875, -0.0289306640625, -0.022430419921875, -0.031646728515625, 0.0240325927734375, 0.002155303955078125, -0.019195556640625, 0.0011281967163085938, -0.003620147705078125, 0.0034027099609375, 0.01507568359375, -0.042144775390625, -0.006793975830078125, -0.0413818359375, 0.0330810546875, 0.0002846717834472656, 0.0653076171875, -0.0152740478515625, -0.030426025390625, -0.0535888671875, -0.01213836669921875, 0.034881591796875, 0.031585693359375, -0.0261077880859375, 0.03485107421875, -0.011932373046875, -0.032440185546875, 0.04132080078125, -0.0709228515625, 0.056488037109375, 0.0360107421875, -0.024322509765625, 0.0143890380859375, -0.03314208984375, -0.03839111328125, 0.01690673828125, -0.01001739501953125, -0.01165771484375, -0.0191192626953125, -0.00305938720703125, 0.0005931854248046875, 0.038238525390625, 0.031646728515625, -0.01183319091796875, 0.005218505859375, 0.0374755859375, -0.0067596435546875, -0.016326904296875, -0.00209808349609375, -0.0289306640625, -0.0239105224609375, 0.0196075439453125, 0.0133514404296875, 0.036956787109375, 0.0016231536865234375, -0.00966644287109375, -0.035491943359375, 0.0155792236328125, -0.018890380859375, 0.0278472900390625, -0.044769287109375, 0.0012693405151367188, -0.00789642333984375, 0.0031223297119140625, -0.0009775161743164062, -0.004062652587890625, 0.0134124755859375, -0.05767822265625, -0.0509033203125, -0.0228729248046875, 0.021636962890625, -0.043792724609375, -0.00605010986328125, -0.01218414306640625, -0.0179595947265625, -0.0222320556640625, -0.01088714599609375, 0.033416748046875, 0.00902557373046875, 0.0782470703125, -0.038787841796875, 0.0284881591796875, -0.020782470703125, -0.0181427001953125, -0.05120849609375, 0.019378662109375, -0.0823974609375, -0.00905609130859375, 0.03045654296875, -0.021697998046875, 0.005401611328125, -0.045166015625, -0.08599853515625, 0.03533935546875, 0.00476837158203125, -0.04168701171875, -0.00797271728515625, -0.004436492919921875, -0.00576019287109375, 0.0265045166015625, 0.007965087890625, -0.002490997314453125, -0.01873779296875, 0.005451202392578125, 0.01192474365234375, 0.03448486328125, 0.01045989990234375, 0.0246124267578125, -0.058502197265625, 0.034576416015625, 0.004253387451171875, 0.0142822265625, -0.00940704345703125, -0.007080078125, 0.01512908935546875, 0.01172637939453125, -0.02252197265625, -0.04608154296875, 0.0169525146484375, -0.01479339599609375, -0.0029811859130859375, -0.07684326171875, -0.0308837890625, -0.054779052734375, 0.0188446044921875, 0.0007963180541992188, -0.005176544189453125, 0.005390167236328125, 0.048095703125, -0.01490020751953125, -0.00586700439453125, 0.0018949508666992188, -0.0009698867797851562, -0.030181884765625, -0.01499176025390625, 0.022186279296875, 0.0255126953125, 0.00501251220703125, -0.032562255859375, -0.0027561187744140625, -0.033172607421875, -0.00832366943359375, -0.0099639892578125, -0.006008148193359375, 0.049072265625, 0.02154541015625, -0.04443359375, -0.03009033203125, -0.0214691162109375, -0.0129852294921875, -0.01474761962890625, -0.05438232421875, -0.049346923828125, -0.032958984375, 0.04229736328125, 0.031097412109375, 0.00788116455078125, -0.00658416748046875, 0.0212554931640625, 0.03118896484375, -0.0274810791015625, 0.006015777587890625, 0.019287109375, -0.01519775390625, -0.038482666015625, 0.022857666015625, 0.01354217529296875, 0.03155517578125, -0.0010347366333007812, 0.022613525390625, -0.0032100677490234375, 0.03558349609375, -0.026214599609375, -0.0204315185546875, -0.0089569091796875, -0.0280609130859375, 0.0174560546875, -0.00859832763671875, 0.0217132568359375, -0.0011816024780273438, -0.0309600830078125, 0.0083770751953125, -0.018096923828125, 0.005237579345703125 ]
6399da3f7e488f4dec223387bc7b29dfc9c9d94b
Wordpress Stackexchange Q: Translate widget titles using qTranslate plugin I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to put tags like this: <!--:en-->My English Title<!--:--><!--:fr-->My French Title<!--:--> When I use this in the content of my widget it works well. But in the title when I save the widget. It actually remove my tags and just displays: My English TitleMy French Title Anyone know how to fix this? A: I just found the answer and instead of putting this in the Title: <!--:en-->My English Title<!--:--><!--:fr-->My French Title<!--:--> We need to put this code: [:en]My English Title[:fr]My French Title and qTranslate does the rest :)
Q: Translate widget titles using qTranslate plugin I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to put tags like this: <!--:en-->My English Title<!--:--><!--:fr-->My French Title<!--:--> When I use this in the content of my widget it works well. But in the title when I save the widget. It actually remove my tags and just displays: My English TitleMy French Title Anyone know how to fix this? A: I just found the answer and instead of putting this in the Title: <!--:en-->My English Title<!--:--><!--:fr-->My French Title<!--:--> We need to put this code: [:en]My English Title[:fr]My French Title and qTranslate does the rest :)
wordpress
{ "language": "en", "length": 126, "provenance": "stackexchange_00019.jsonl.gz:424925", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69630" }
[ -0.03466796875, -0.002841949462890625, 0.0219268798828125, 0.11187744140625, -0.022979736328125, -0.035064697265625, 0.06561279296875, -0.0701904296875, 0.029815673828125, 0.07037353515625, 0.0411376953125, -0.0242462158203125, 0.033233642578125, -0.0265960693359375, -0.06549072265625, 0.00595855712890625, 0.0186767578125, 0.0031280517578125, 0.027069091796875, -0.01611328125, -0.0153961181640625, 0.006237030029296875, 0.035614013671875, -0.018402099609375, -0.016510009765625, -0.035858154296875, 0.143798828125, -0.048095703125, -0.0109100341796875, -0.060089111328125, 0.024078369140625, 0.023162841796875, 0.037353515625, 0.0004925727844238281, -0.0205078125, -0.03125, -0.016510009765625, -0.0193634033203125, -0.04669189453125, 0.0283355712890625, 0.020721435546875, -0.0170135498046875, -0.01556396484375, 0.019744873046875, -0.00699615478515625, -0.0469970703125, 0.058319091796875, -0.01280975341796875, -0.0015344619750976562, 0.04925537109375, 0.031982421875, -0.022857666015625, 0.037200927734375, 0.00789642333984375, -0.00212860107421875, -0.01343536376953125, -0.00530242919921875, 0.0148162841796875, 0.031097412109375, 0.01221466064453125, -0.01861572265625, 0.005168914794921875, 0.014007568359375, -0.01181793212890625, -0.0192718505859375, -0.0255889892578125, -0.0017642974853515625, 0.00534820556640625, -0.001956939697265625, -0.027069091796875, 0.017913818359375, -0.0002505779266357422, 0.0284881591796875, -0.022705078125, -0.025299072265625, 0.000949859619140625, -0.0308074951171875, -0.0234527587890625, 0.033477783203125, -0.03240966796875, 0.0687255859375, 0.0209503173828125, 0.0160675048828125, 0.0106048583984375, 0.036865234375, 0.033111572265625, -0.00922393798828125, -0.0311737060546875, -0.037841796875, -0.008514404296875, -0.008514404296875, -0.047271728515625, -0.053497314453125, 0.0289764404296875, 0.0303802490234375, -0.04583740234375, -0.001800537109375, 0.025604248046875, -0.02117919921875, 0.05487060546875, -0.0117950439453125, -0.0207366943359375, 0.053955078125, -0.037506103515625, 0.0369873046875, -0.01629638671875, -0.0321044921875, -0.01479339599609375, 0.05889892578125, 0.04473876953125, -0.01219940185546875, 0.043060302734375, -0.002223968505859375, -0.0161590576171875, 0.0021724700927734375, 0.0455322265625, -0.0012807846069335938, 0.02166748046875, -0.0030975341796875, 0.047821044921875, -0.0197296142578125, -0.00913238525390625, 0.0264434814453125, -0.00513458251953125, 0.032928466796875, 0.01134490966796875, -0.014434814453125, -0.00437164306640625, -0.01763916015625, -0.0142822265625, -0.00893402099609375, 0.01383209228515625, 0.0238800048828125, 0.027557373046875, -0.007701873779296875, -0.0108642578125, 0.0374755859375, 0.01357269287109375, 0.015777587890625, -0.0204620361328125, 0.0229034423828125, -0.00945281982421875, 0.01137542724609375, 0.005001068115234375, -0.02337646484375, 0.0012264251708984375, -0.003204345703125, 0.024658203125, 0.01151275634765625, -0.037139892578125, 0.02935791015625, -0.0712890625, 0.0311737060546875, 0.0130767822265625, -0.0439453125, -0.00782012939453125, 0.010009765625, -0.0248870849609375, -0.00064849853515625, -0.0465087890625, -0.034454345703125, -0.0443115234375, -0.0241241455078125, -0.0303192138671875, -0.048980712890625, 0.0538330078125, 0.04156494140625, 0.0128021240234375, 0.006771087646484375, -0.01641845703125, -0.02471923828125, -0.0005664825439453125, -0.0250244140625, 0.01540374755859375, 0.01461029052734375, 0.03936767578125, -0.060028076171875, 0.0171051025390625, 0.0244293212890625, 0.00521087646484375, -0.00458526611328125, -0.041717529296875, 0.00716400146484375, 0.03338623046875, -0.0148773193359375, -0.0457763671875, 0.006412506103515625, 0.0191497802734375, 0.06292724609375, 0.032684326171875, -0.0301971435546875, -0.05194091796875, -0.050750732421875, 0.01629638671875, -0.005008697509765625, 0.00992584228515625, -0.00818634033203125, 0.03253173828125, 0.004825592041015625, -0.0352783203125, 0.00783538818359375, -0.0335693359375, 0.01189422607421875, 0.0284881591796875, -0.0498046875, -0.01171112060546875, -0.0224609375, 0.0094757080078125, 0.0263214111328125, 0.0271453857421875, 0.0038127899169921875, 0.0447998046875, -0.04083251953125, -0.0081787109375, -0.035858154296875, -0.003192901611328125, 0.012420654296875, 0.0318603515625, 0.01329803466796875, -0.01476287841796875, 0.0404052734375, -0.0177154541015625, 0.056182861328125, 0.08148193359375, 0.0276031494140625, 0.01297760009765625, 0.001312255859375, -0.0013990402221679688, 0.047393798828125, 0.0059661865234375, 0.01404571533203125, 0.00437164306640625, 0.01473236083984375, -0.0099029541015625, -0.05560302734375, 0.005626678466796875, -0.036041259765625, 0.0022125244140625, -0.01959228515625, 0.039947509765625, 0.034149169921875, -0.01194000244140625, 0.0017499923706054688, 0.0089874267578125, 0.007266998291015625, -0.03485107421875, 0.01210784912109375, -0.0026187896728515625, 0.02630615234375, 0.05084228515625, -0.01314544677734375, -0.027435302734375, 0.0071563720703125, -0.081787109375, 0.0229339599609375, 0.0240631103515625, -0.0343017578125, -0.02923583984375, 0.0290985107421875, -0.03912353515625, 0.00959014892578125, -0.054962158203125, -0.024200439453125, -0.00933837890625, 0.0219573974609375, 0.004734039306640625, 0.02374267578125, 0.0254058837890625, -0.0179595947265625, -0.00305938720703125, 0.01812744140625, 0.0106658935546875, 0.0236968994140625, 0.01221466064453125, 0.02178955078125, -0.008880615234375, -0.01251220703125, -0.0251922607421875, 0.0281219482421875, -0.00439453125, 0.034088134765625, 0.052734375, -0.00507354736328125, -0.01904296875, 0.01448822021484375, -0.0073699951171875, -0.0231475830078125, 0.0263671875, 0.00978851318359375, -0.041015625, -0.0156707763671875, 0.0068817138671875, -0.0350341796875, 0.051788330078125, 0.02117919921875, -0.04302978515625, 0.08160400390625, -0.037689208984375, 0.02294921875, -0.0186004638671875, 0.079345703125, 0.053955078125, 0.00492095947265625, -0.016815185546875, 0.0111541748046875, 0.0130157470703125, 0.0498046875, -0.03448486328125, -0.00910186767578125, 0.05804443359375, -0.09136962890625, -0.01039886474609375, -0.0025005340576171875, 0.06744384765625, -0.0479736328125, -0.0789794921875, -0.0034084320068359375, -0.005168914794921875, -0.06634521484375, -0.055938720703125, 0.0017042160034179688, 0.0178680419921875, -0.006504058837890625, 0.035125732421875, 0.0085906982421875, -0.0013093948364257812, 0.049072265625, -0.01343536376953125, 0.0009245872497558594, -0.006092071533203125, 0.006748199462890625, -0.01496124267578125, -0.031646728515625, -0.027313232421875, 0.00823211669921875, -0.0015611648559570312, 0.00673675537109375, -0.05029296875, -0.006587982177734375, -0.002651214599609375, 0.05255126953125, 0.049896240234375, 0.006275177001953125, 0.00843048095703125, 0.0294342041015625, -0.02825927734375, -0.0013208389282226562, 0.01065826416015625, -0.0213165283203125, 0.0230255126953125, -0.0249786376953125, -0.01309967041015625, 0.0297698974609375, 0.03302001953125, 0.039459228515625, -0.0831298828125, -0.04925537109375, 0.061767578125, -0.0216217041015625, -0.0220184326171875, -0.016265869140625, -0.00525665283203125, -0.03436279296875, 0.033203125, -0.0013523101806640625, -0.005603790283203125, -0.001705169677734375, 0.046142578125, 0.021820068359375, 0.02471923828125, 0.0201568603515625, 0.01485443115234375, 0.00739288330078125, -0.005207061767578125, 0.01007080078125, -0.0248260498046875, 0.00794219970703125, -0.0228424072265625, 0.00846099853515625, -0.0171661376953125, 0.0125885009765625, -0.0110626220703125, 0.042144775390625, 0.006755828857421875, -0.024688720703125, 0.043182373046875, -0.0175933837890625, 0.015777587890625, 0.01146697998046875, -0.036956787109375, 0.0079803466796875, 0.072265625, -0.02996826171875, -0.0238494873046875, 0.00261688232421875, 0.01071929931640625, -0.04193115234375, 0.004177093505859375, -0.0221099853515625, -0.0023860931396484375, -0.047088623046875, 0.0160675048828125, -0.01357269287109375, -0.0050506591796875, 0.001773834228515625, 0.0134429931640625, -0.0020236968994140625, -0.035064697265625, 0.04913330078125, -0.019775390625, 0.03515625, -0.03643798828125, -0.01091766357421875, -0.0411376953125, -0.031341552734375, -0.01041412353515625, -0.07177734375, -0.002162933349609375, -0.0423583984375, 0.0430908203125, 0.0031337738037109375, 0.01580810546875, -0.04241943359375, 0.0233154296875, 0.0198974609375, 0.03045654296875, -0.0175933837890625, -0.022979736328125, 0.040252685546875, 0.0299835205078125, 0.0021419525146484375, 0.00975799560546875, -0.0010900497436523438, 0.046966552734375, -0.041473388671875, 0.047882080078125, -0.0021991729736328125, -0.01190948486328125, 0.0596923828125, -0.07489013671875, -0.054595947265625, -0.01544189453125, -0.00717926025390625, 0.0283203125, 0.0087432861328125, -0.005413055419921875, -0.041839599609375, -0.0665283203125, 0.02960205078125, 0.01128387451171875, 0.004451751708984375, 0.02398681640625, 0.028900146484375, -0.00202178955078125, -0.037567138671875, -0.021270751953125, -0.004436492919921875, 0.044219970703125, 0.0091400146484375, 0.0313720703125, 0.0280609130859375, -0.0709228515625, 0.12548828125, 0.0248870849609375, -0.01029205322265625, 0.036651611328125, 0.032196044921875, 0.004108428955078125, -0.045684814453125, 0.02935791015625, -0.0196075439453125, -0.05108642578125, 0.0155792236328125, -0.0144195556640625, 0.0291748046875, 0.01165771484375, -0.01397705078125, -0.033721923828125, 0.01300811767578125, 0.027191162109375, -0.032562255859375, 0.018096923828125, 0.048858642578125, -0.0655517578125, -0.01035308837890625, 0.0156707763671875, -0.06964111328125, -0.043426513671875, -0.00457000732421875, 0.008026123046875, -0.04351806640625, 0.0157470703125, 0.0081634521484375, 0.00543212890625, -0.0040740966796875, 0.033782958984375, -0.0001558065414428711, 0.047027587890625, -0.01061248779296875, -0.0175628662109375, -0.0139007568359375, -0.027435302734375, -0.01093292236328125, 0.02197265625, 0.09356689453125, -0.01393890380859375, 0.0048065185546875, -0.00455474853515625, 0.00719451904296875, 0.05169677734375, 0.04931640625, -0.00969696044921875, -0.012298583984375, 0.002483367919921875, -0.012298583984375, -0.0714111328125, 0.09320068359375, -0.07867431640625, 0.017303466796875, 0.0163726806640625, 0.00655364990234375, 0.0293426513671875, 0.04248046875, 0.02178955078125, -0.0396728515625, 0.0001684427261352539, 0.0217132568359375, 0.0161895751953125, -0.018798828125, 0.03192138671875, 0.01091766357421875, 0.0209503173828125, -0.00864410400390625, -0.043609619140625, 0.0223236083984375, -0.04730224609375, -0.01137542724609375, 0.042694091796875, -0.00058746337890625, -0.054656982421875, -0.0253753662109375, -0.018402099609375, 0.0298614501953125, -0.03857421875, 0.01258087158203125, 0.00917816162109375, -0.0272979736328125, 0.003650665283203125, 0.0160980224609375, 0.002899169921875, -0.01096343994140625, -0.0140380859375, 0.01558685302734375, -0.00020647048950195312, -0.01358795166015625, -0.020843505859375, -0.0274810791015625, 0.0151519775390625, 0.01125335693359375, -0.01340484619140625, -0.020904541015625, 0.0016260147094726562, -0.006504058837890625, 0.01861572265625, -0.0080413818359375, 0.0251922607421875, -0.0098724365234375, -0.0269927978515625, 0.005794525146484375, -0.0299835205078125, -0.01654052734375, -0.0137939453125, -0.04217529296875, -0.042755126953125, -0.0133514404296875, -0.0095062255859375, 0.0343017578125, 0.031982421875, 0.0199127197265625, -0.0037555694580078125, -0.0066375732421875, 0.019134521484375, 0.02325439453125, 0.056365966796875, -0.03741455078125, 0.02679443359375, 0.038665771484375, 0.017120361328125, -0.0122528076171875, 0.0194091796875, 0.01238250732421875, -0.0158843994140625, 0.02764892578125, -0.00926971435546875, -0.03509521484375, -0.020416259765625, -0.017822265625, -0.024627685546875, 0.01541900634765625, -0.0132904052734375, 0.0386962890625, -0.0122528076171875, 0.000059604644775390625, 0.01430511474609375, 0.036895751953125, -0.0013399124145507812, 0.007904052734375, 0.0836181640625, -0.054412841796875, -0.0128021240234375, -0.01085662841796875, -0.0097808837890625, 0.025115966796875, -0.032928466796875, -0.00507354736328125, 0.045013427734375, -0.0013275146484375, -0.00011622905731201172, 0.0248565673828125, 0.0294189453125, 0.051910400390625, 0.001003265380859375, 0.0400390625, 0.01837158203125, -0.0298004150390625, 0.02227783203125, 0.056365966796875, 0.012237548828125, -0.047698974609375, 0.01312255859375, -0.03436279296875, -0.0115203857421875, 0.0022945404052734375, 0.06787109375, 0.049713134765625, -0.07281494140625, -0.0092926025390625, 0.006893157958984375, -0.008148193359375, -0.0085601806640625, 0.0020618438720703125, -0.01464080810546875, -0.045562744140625, 0.0745849609375, 0.01837158203125, -0.00034928321838378906, 0.02679443359375, 0.00885009765625, 0.0206146240234375, -0.012847900390625, 0.07330322265625, -0.01070404052734375, -0.048980712890625, -0.040374755859375, 0.021942138671875, -0.0157623291015625, -0.0174560546875, -0.01348114013671875, 0.0309906005859375, -0.033050537109375, -0.05706787109375, 0.0257110595703125, -0.01629638671875, -0.00969696044921875, 0.004787445068359375, -0.00870513916015625, 0.0418701171875, 0.04986572265625, -0.0260009765625, 0.01407623291015625, 0.01012420654296875, 0.0141754150390625, 0.0094451904296875, 0.0079498291015625, -0.01265716552734375, 0.0029144287109375, 0.0208892822265625, -0.0010213851928710938, -0.0297393798828125, -0.001918792724609375, -0.0076904296875, -0.0345458984375, 0.047760009765625, 0.00446319580078125, -0.0369873046875, -0.0015048980712890625, 0.0013065338134765625, 0.0161285400390625, 0.004032135009765625, 0.0225372314453125, -0.07086181640625, -0.034881591796875, 0.00978851318359375, -0.065673828125, -0.012237548828125, 0.00273895263671875, -0.06756591796875, 0.0836181640625, 0.03350830078125, 0.0200042724609375, -0.01085662841796875, 0.033905029296875, -0.0238800048828125, 0.00707244873046875, -0.039886474609375, 0.00655364990234375, -0.0196533203125, 0.0196990966796875, -0.02813720703125, 0.0009589195251464844, -0.0034961700439453125, 0.0321044921875, 0.01922607421875, -0.0006299018859863281, 0.0118408203125, -0.019378662109375, 0.0253448486328125, 0.057403564453125, 0.0212554931640625, -0.005596160888671875, 0.004749298095703125, 0.0027408599853515625, -0.0255584716796875, 0.006320953369140625, 0.052001953125, -0.053680419921875, -0.046630859375, 0.0284881591796875, 0.0244293212890625, 0.0243072509765625, -0.00939178466796875, 0.032867431640625, 0.00006335973739624023, -0.01971435546875, 0.007518768310546875, 0.00038170814514160156, 0.036163330078125, -0.0029544830322265625, 0.045654296875, -0.043701171875, -0.01242828369140625, -0.0372314453125, 0.05255126953125, 0.0158233642578125, 0.031494140625, 0.009796142578125, 0.0201873779296875, 0.037841796875, -0.026214599609375, 0.021575927734375, 0.0250244140625, -0.025299072265625, 0.02667236328125, 0.00975799560546875, 0.043975830078125, -0.01468658447265625, 0.0213623046875, 0.0179290771484375, 0.034423828125, -0.0325927734375, -0.037872314453125, 0.005359649658203125, -0.005084991455078125, 0.002155303955078125, 0.01465606689453125, -0.0018939971923828125, -0.0462646484375, 0.0166168212890625, 0.033721923828125, -0.0014629364013671875, -0.005184173583984375, 0.031829833984375, 0.00756072998046875, 0.01180267333984375, -0.0229034423828125, 0.009521484375, -0.05438232421875, 0.042205810546875, 0.039520263671875, 0.07891845703125, -0.004306793212890625, 0.078369140625, -0.042022705078125, -0.0494384765625, 0.0229644775390625, -0.00576019287109375, -0.0123748779296875, -0.0220794677734375, -0.03466796875, -0.0679931640625, 0.040191650390625, 0.0228271484375, 0.00768280029296875, -0.0146331787109375, 0.014068603515625, 0.02105712890625, -0.01593017578125, -0.0026702880859375, 0.01174163818359375, -0.0081939697265625, 0.02069091796875, -0.025604248046875, 0.03277587890625, 0.0038547515869140625, -0.01168060302734375, -0.0165863037109375, 0.0562744140625, 0.001796722412109375, -0.00533294677734375, 0.056610107421875, -0.0017852783203125, 0.0019779205322265625, 0.04510498046875, -0.048797607421875, 0.06500244140625, 0.0056610107421875, -0.056732177734375, -0.007213592529296875, -0.004123687744140625, -0.0440673828125, -0.001239776611328125, 0.02996826171875, -0.0203399658203125, 0.0127716064453125, 0.0168914794921875, -0.0270843505859375, 0.014801025390625, -0.0316162109375, 0.0614013671875, 0.0670166015625, -0.0219879150390625, 0.039520263671875, -0.0146636962890625, -0.037322998046875, 0.0189361572265625, 0.061798095703125, 0.0214080810546875, 0.0064697265625, 0.004955291748046875, 0.037628173828125, -0.03851318359375, -0.0162200927734375, -0.0158233642578125, -0.037078857421875, 0.03271484375, 0.023895263671875, -0.020721435546875, -0.0260162353515625, -0.026702880859375, 0.0039043426513671875, 0.0184783935546875, -0.00725555419921875, -0.01194000244140625, -0.0291748046875, 0.0130767822265625, 0.0218048095703125, 0.031036376953125, -0.031219482421875, -0.0208587646484375, -0.0173187255859375, -0.01358795166015625, 0.023162841796875, -0.00860595703125, -0.01175689697265625, 0.0306854248046875, -0.02276611328125, -0.007671356201171875, 0.011932373046875, -0.04315185546875, 0.004871368408203125, 0.037689208984375, -0.0274658203125, -0.026153564453125, 0.0175018310546875, -0.0100250244140625, -0.00783538818359375, 0.031463623046875, 0.0301971435546875, 0.01461029052734375, -0.006744384765625, -0.03460693359375, -0.041107177734375, 0.0016269683837890625, -0.0293426513671875, 0.0013132095336914062, -0.03814697265625, 0.01221466064453125, -0.0243988037109375, 0.02691650390625, -0.0204620361328125, -0.01126861572265625, -0.016510009765625, 0.0126495361328125, -0.01214599609375, -0.033660888671875, -0.0819091796875, -0.020172119140625, 0.004913330078125, -0.0043792724609375, -0.00821685791015625, -0.00958251953125, 0.00740814208984375, -0.0198822021484375, -0.0189666748046875, 0.006450653076171875, 0.01331329345703125, 0.021820068359375, -0.04486083984375, -0.0017118453979492188, -0.0268707275390625, -0.0169525146484375, -0.0141448974609375, 0.0225830078125, 0.0408935546875, -0.0165252685546875, -0.01983642578125, 0.0157928466796875, 0.01006317138671875, 0.0693359375, 0.0477294921875, -0.00473785400390625, 0.01387786865234375, 0.004924774169921875, -0.048431396484375, -0.0618896484375, 0.033111572265625, -0.08251953125, -0.0203704833984375, -0.00417327880859375, -0.0265350341796875, -0.038787841796875, -0.0498046875, -0.064208984375, 0.0841064453125, -0.004756927490234375, -0.026153564453125, -0.01812744140625, 0.015838623046875, -0.025726318359375, 0.0287017822265625, 0.006069183349609375, -0.055389404296875, 0.0176239013671875, 0.0307464599609375, 0.0227203369140625, 0.0474853515625, 0.0213775634765625, 0.0273895263671875, 0.0015573501586914062, 0.005992889404296875, -0.004276275634765625, -0.004116058349609375, 0.0003457069396972656, -0.0130615234375, -0.026947021484375, -0.011016845703125, -0.07208251953125, -0.08123779296875, -0.0235748291015625, 0.055755615234375, 0.00811767578125, -0.047332763671875, -0.023284912109375, -0.008636474609375, 0.0355224609375, 0.03369140625, 0.00856781005859375, -0.033355712890625, 0.0264129638671875, 0.030731201171875, -0.01407623291015625, 0.0210723876953125, -0.004238128662109375, 0.0036716461181640625, -0.016998291015625, -0.007045745849609375, 0.0011777877807617188, 0.01039886474609375, -0.01036834716796875, -0.0179595947265625, -0.0130615234375, -0.0130615234375, -0.017181396484375, -0.0296478271484375, 0.0021820068359375, 0.10302734375, -0.0501708984375, 0.00728607177734375, 0.01959228515625, -0.00024080276489257812, 0.06256103515625, 0.00505828857421875, -0.028289794921875, 0.0158843994140625, 0.00955963134765625, -0.0064544677734375, 0.0201263427734375, -0.0186614990234375, 0.04193115234375, 0.0176849365234375, -0.031341552734375, 0.030029296875, 0.012176513671875, 0.04638671875, -0.021697998046875, 0.044036865234375, 0.04266357421875, 0.0097503662109375, -0.0298614501953125, 0.00794219970703125, -0.011322021484375, 0.016998291015625, -0.04254150390625, 0.004199981689453125, -0.01239776611328125, -0.01395416259765625, 0.017608642578125, -0.0077667236328125, -0.0035839080810546875, -0.020050048828125, -0.0002551078796386719, -0.06475830078125, -0.01432037353515625, 0.002552032470703125 ]
73d535b55ac81284fb66326341949a31e0736fd4
Wordpress Stackexchange Q: Custom registration form page/template I am trying to create a registration page on my site to allow visitors to register on the site and have access to special contents. * *I installed Cimy User Extra Fields to add extra fields to wp-signup.php *In my registration page I make an Ajax call to wp-signup.php to grab the form and style it. The problem is that if registration fails (e.g. use an existing email in database), you are redirected to the default WordPress registration page, with the WordPress template... Is there a way to create a page for registration with extra-fields with a custom template? I've also tried using the Simplr User Registration Form plugin but is not working... A: You can also take a look on Profile Builder Plugin, that allows you to customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user profile or register new users (front-end user registration). You can add custom fields to your registration form and customize the redirect page.
Q: Custom registration form page/template I am trying to create a registration page on my site to allow visitors to register on the site and have access to special contents. * *I installed Cimy User Extra Fields to add extra fields to wp-signup.php *In my registration page I make an Ajax call to wp-signup.php to grab the form and style it. The problem is that if registration fails (e.g. use an existing email in database), you are redirected to the default WordPress registration page, with the WordPress template... Is there a way to create a page for registration with extra-fields with a custom template? I've also tried using the Simplr User Registration Form plugin but is not working... A: You can also take a look on Profile Builder Plugin, that allows you to customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user profile or register new users (front-end user registration). You can add custom fields to your registration form and customize the redirect page. A: Have a look at pie-register http://wordpress.org/extend/plugins/pie-register/ It allows adding custom fields to the registration form. A great tool for frontend log-in and registration is theme-my-login http://wordpress.org/extend/plugins/theme-my-login/ A: I've had a similar issue on an un-released site and used a combination of 2 plugins. I used the user meta pro plugin for front end registration and login. It's a cheap plugin for a premium ($19 I think). The free version might even handle it. Then the redirection plugin to handle exceptions. A: I've posted the long article about how to create Sign Up page on WordPress site (basically on Multisite but similar methods can be used on default WP install). Right now article on russian language: How to replace default wp-signup.php But I also publish my source code and few screenshots. My article allows you create custom register page without any plugins and using only clean WordPress techniques. No hacky or dirty solutions like change wp-signup.php directly in WordPress root folder, JS code not worked with disabled Java Script in browsers or Apache redirects and more. Also similar question and long discussion available at bbpress support forum and we talked there on english.
wordpress
{ "language": "en", "length": 370, "provenance": "stackexchange_00019.jsonl.gz:424930", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69654" }
[ 0.05029296875, 0.01348114013671875, -0.004657745361328125, -0.0667724609375, 0.0172576904296875, -0.008453369140625, -0.0175018310546875, -0.0270538330078125, -0.0343017578125, 0.0000826716423034668, -0.015838623046875, 0.02203369140625, -0.049224853515625, -0.026123046875, 0.00513458251953125, -0.057342529296875, -0.01065826416015625, 0.0374755859375, 0.0203704833984375, -0.03387451171875, 0.034637451171875, -0.042999267578125, -0.0006570816040039062, 0.019775390625, 0.020721435546875, -0.01404571533203125, 0.0517578125, -0.0030727386474609375, 0.01021575927734375, -0.0091552734375, 0.022216796875, 0.00646209716796875, 0.0180206298828125, 0.0299224853515625, -0.0284423828125, -0.01152801513671875, 0.013824462890625, 0.00933074951171875, -0.00666046142578125, 0.03253173828125, 0.03265380859375, -0.02520751953125, 0.01030731201171875, -0.019775390625, 0.01068878173828125, -0.0494384765625, 0.0657958984375, -0.034515380859375, -0.0018405914306640625, 0.00917816162109375, 0.0013828277587890625, -0.0299224853515625, 0.0246734619140625, -0.043304443359375, -0.01256561279296875, -0.046173095703125, -0.05499267578125, 0.001010894775390625, 0.033477783203125, 0.053863525390625, 0.0179595947265625, -0.0307464599609375, 0.00490570068359375, -0.0438232421875, 0.0008797645568847656, -0.00283050537109375, -0.037353515625, 0.034698486328125, -0.033721923828125, -0.02520751953125, 0.012969970703125, -0.03839111328125, -0.00450897216796875, -0.020965576171875, -0.021392822265625, 0.02093505859375, 0.006824493408203125, -0.000004708766937255859, 0.0120391845703125, 0.0147247314453125, -0.055389404296875, -0.02337646484375, -0.0157470703125, -0.028533935546875, -0.0016117095947265625, 0.01413726806640625, -0.0362548828125, 0.001972198486328125, -0.04315185546875, -0.0007381439208984375, -0.0258941650390625, -0.058624267578125, -0.044464111328125, 0.034210205078125, 0.0144195556640625, 0.007434844970703125, 0.019012451171875, 0.015655517578125, 0.0242462158203125, 0.0230865478515625, 0.006763458251953125, -0.0501708984375, 0.0640869140625, -0.031524658203125, 0.0152435302734375, 0.07196044921875, 0.0014858245849609375, 0.0090789794921875, 0.0225067138671875, 0.0008115768432617188, 0.02825927734375, -0.01190948486328125, -0.0011529922485351562, -0.00278472900390625, -0.020660400390625, 0.01352691650390625, -0.0008330345153808594, -0.01395416259765625, -0.0124969482421875, -0.0151824951171875, -0.0105133056640625, 0.00384521484375, 0.0621337890625, -0.0537109375, 0.004695892333984375, -0.01143646240234375, -0.03204345703125, -0.053497314453125, 0.0098419189453125, 0.01381683349609375, -0.034210205078125, 0.016876220703125, 0.0146636962890625, 0.033660888671875, -0.0003132820129394531, -0.0131072998046875, 0.025421142578125, -0.020111083984375, -0.016387939453125, 0.0283050537109375, -0.0205535888671875, -0.037017822265625, -0.0194244384765625, -0.01934814453125, 0.0120849609375, 0.028564453125, 0.0193328857421875, 0.016998291015625, -0.00273895263671875, -0.047149658203125, 0.01479339599609375, -0.032989501953125, -0.00276947021484375, 0.0210723876953125, 0.0204315185546875, 0.0203704833984375, -0.01122283935546875, 0.0131683349609375, -0.0004949569702148438, 0.0279388427734375, 0.044189453125, 0.005977630615234375, -0.0010595321655273438, -0.04217529296875, -0.0233154296875, -0.0276947021484375, -0.067138671875, -0.0018644332885742188, 0.039459228515625, 0.005527496337890625, 0.068115234375, -0.004154205322265625, 0.00453948974609375, 0.0254974365234375, 0.0261383056640625, 0.0090789794921875, 0.0099945068359375, 0.04693603515625, 0.01395416259765625, 0.0234527587890625, -0.004718780517578125, -0.036224365234375, 0.073974609375, -0.03076171875, -0.06549072265625, 0.035308837890625, 0.0045623779296875, 0.06744384765625, 0.0304412841796875, 0.01235198974609375, 0.037567138671875, -0.00302886962890625, -0.017364501953125, 0.0234527587890625, -0.01605224609375, -0.0243072509765625, 0.00921630859375, 0.020263671875, -0.0169525146484375, -0.0045318603515625, -0.0234832763671875, -0.021881103515625, 0.024169921875, 0.01483154296875, 0.010009765625, -0.007221221923828125, -0.0173797607421875, 0.0158843994140625, -0.0213623046875, 0.0103607177734375, 0.0301513671875, 0.020263671875, -0.05322265625, 0.005950927734375, -0.0231781005859375, 0.0029087066650390625, 0.00862884521484375, 0.062164306640625, 0.00495147705078125, 0.03173828125, -0.0003478527069091797, -0.030792236328125, 0.02239990234375, 0.0254058837890625, 0.0013513565063476562, -0.033721923828125, -0.019073486328125, -0.032379150390625, -0.024322509765625, -0.00788116455078125, -0.0121917724609375, 0.06005859375, -0.042877197265625, -0.021148681640625, -0.054962158203125, -0.01248931884765625, -0.041900634765625, -0.00299072265625, 0.008392333984375, 0.033294677734375, 0.00913238525390625, 0.0565185546875, 0.0034542083740234375, 0.0224609375, 0.042572021484375, 0.0021495819091796875, 0.0221405029296875, 0.005741119384765625, 0.0243988037109375, 0.0439453125, 0.019683837890625, -0.017791748046875, 0.0070953369140625, -0.0239410400390625, 0.00452423095703125, 0.0136260986328125, -0.0472412109375, -0.0164947509765625, 0.0076141357421875, -0.0150604248046875, 0.0011663436889648438, -0.0721435546875, -0.01343536376953125, -0.0369873046875, 0.004535675048828125, -0.01259613037109375, 0.0117645263671875, -0.004917144775390625, -0.027435302734375, -0.0096282958984375, 0.01837158203125, -0.01549530029296875, 0.00588226318359375, -0.039825439453125, 0.00009769201278686523, 0.022857666015625, -0.03619384765625, 0.0140533447265625, 0.0255889892578125, -0.023284912109375, -0.020172119140625, 0.0279541015625, -0.04840087890625, -0.0079803466796875, -0.0308380126953125, -0.0946044921875, -0.0037746429443359375, 0.060455322265625, -0.0152587890625, -0.0226593017578125, 0.0211639404296875, -0.0087890625, -0.046417236328125, 0.0242767333984375, 0.0070343017578125, -0.03466796875, 0.007076263427734375, -0.033538818359375, 0.0311279296875, -0.050750732421875, 0.010894775390625, 0.05279541015625, -0.028564453125, 0.0079498291015625, 0.01149749755859375, -0.0235443115234375, -0.005970001220703125, 0.04156494140625, 0.021209716796875, -0.052642822265625, 0.002777099609375, 0.006877899169921875, 0.0270233154296875, 0.034820556640625, 0.0258636474609375, -0.0216217041015625, 0.00919342041015625, 0.037200927734375, -0.00492095947265625, -0.0270843505859375, -0.088134765625, -0.034881591796875, 0.02984619140625, 0.001987457275390625, 0.00738525390625, 0.02069091796875, 0.01084136962890625, 0.033203125, -0.0254058837890625, -0.050506591796875, -0.050689697265625, -0.10992431640625, -0.08160400390625, -0.0260009765625, 0.01155853271484375, 0.015869140625, -0.0074462890625, 0.0093536376953125, -0.0212554931640625, -0.032623291015625, -0.0253448486328125, -0.01556396484375, 0.007602691650390625, -0.03204345703125, -0.005970001220703125, -0.036773681640625, 0.03466796875, -0.005382537841796875, 0.0297088623046875, 0.0145263671875, 0.00975799560546875, -0.009124755859375, -0.0182952880859375, -0.0355224609375, -0.0177001953125, 0.00439453125, 0.0181732177734375, -0.0236663818359375, 0.0017414093017578125, -0.0574951171875, 0.0038738250732421875, 0.02777099609375, -0.00727081298828125, -0.009979248046875, -0.0028896331787109375, -0.044891357421875, 0.0016489028930664062, -0.006320953369140625, 0.0160980224609375, 0.0132904052734375, 0.005950927734375, -0.0008544921875, 0.0112152099609375, 0.0017490386962890625, 0.01004791259765625, -0.019866943359375, 0.01479339599609375, -0.0272216796875, 0.017822265625, 0.00563812255859375, -0.01497650146484375, -0.01485443115234375, 0.0238037109375, -0.022491455078125, -0.1083984375, 0.048614501953125, -0.03564453125, 0.018218994140625, -0.05303955078125, -0.03204345703125, 0.02154541015625, 0.1505126953125, -0.0322265625, -0.00821685791015625, 0.01222991943359375, -0.0035915374755859375, -0.0125274658203125, 0.01073455810546875, -0.05462646484375, -0.01439666748046875, -0.0208282470703125, -0.007904052734375, -0.01026153564453125, -0.0034332275390625, 0.0096435546875, 0.0008697509765625, -0.003780364990234375, -0.033111572265625, 0.007190704345703125, 0.0269012451171875, -0.004184722900390625, 0.01313018798828125, -0.00016105175018310547, -0.031280517578125, 0.0465087890625, -0.016571044921875, -0.06268310546875, -0.023101806640625, -0.00009745359420776367, 0.05645751953125, 0.008148193359375, -0.005428314208984375, -0.00152587890625, 0.05572509765625, 0.0169525146484375, 0.0242156982421875, 0.0203094482421875, 0.00972747802734375, 0.04052734375, -0.05279541015625, -0.0028820037841796875, -0.042083740234375, 0.01513671875, -0.0007171630859375, -0.041595458984375, 0.004032135009765625, -0.04290771484375, 0.0121917724609375, -0.0045013427734375, -0.030426025390625, -0.0027637481689453125, -0.00016880035400390625, 0.015045166015625, 0.0190887451171875, 0.00850677490234375, -0.01251983642578125, 0.0032482147216796875, 0.0017299652099609375, 0.01464080810546875, -0.0060882568359375, -0.0133056640625, 0.005184173583984375, 0.029388427734375, 0.01094818115234375, -0.01451873779296875, -0.01271820068359375, 0.0130615234375, 0.0333251953125, -0.0003006458282470703, -0.00257110595703125, -0.02508544921875, -0.03778076171875, 0.059600830078125, -0.004772186279296875, -0.01433563232421875, 0.00601959228515625, 0.010498046875, -0.0005941390991210938, -0.03961181640625, 0.01025390625, -0.00911712646484375, 0.0205078125, 0.013153076171875, 0.00806427001953125, -0.0192718505859375, 0.0306854248046875, 0.0207977294921875, -0.01073455810546875, 0.003444671630859375, -0.00713348388671875, -0.01558685302734375, 0.00447845458984375, -0.025787353515625, 0.019866943359375, -0.011016845703125, 0.0018672943115234375, -0.019256591796875, 0.005245208740234375, -0.0268096923828125, -0.0160064697265625, -0.047027587890625, 0.01255035400390625, -0.016265869140625, 0.0276336669921875, -0.001636505126953125, -0.004047393798828125, -0.0101318359375, 0.059600830078125, 0.0215606689453125, -0.0323486328125, -0.0143890380859375, -0.0164031982421875, 0.0194244384765625, -0.017059326171875, 0.007633209228515625, 0.046173095703125, 0.048370361328125, 0.00711822509765625, -0.0082244873046875, 0.039794921875, -0.0016145706176757812, -0.03125, -0.03143310546875, 0.01953125, -0.038665771484375, -0.037445068359375, 0.05438232421875, 0.0206451416015625, -0.02587890625, -0.0018301010131835938, 0.06695556640625, 0.04864501953125, 0.0164642333984375, 0.00749969482421875, -0.00351715087890625, 0.00560760498046875, -0.0275115966796875, -0.027679443359375, 0.00787353515625, 0.025146484375, -0.00995635986328125, 0.0104827880859375, 0.0219268798828125, 0.0040283203125, 0.00543975830078125, -0.051025390625, -0.01444244384765625, -0.002323150634765625, -0.050384521484375, -0.053009033203125, -0.024200439453125, -0.0003998279571533203, 0.0257720947265625, -0.0140228271484375, -0.00875091552734375, -0.00830841064453125, -0.048065185546875, 0.001285552978515625, 0.031524658203125, -0.02685546875, -0.00881195068359375, -0.01776123046875, 0.0185546875, 0.01690673828125, 0.006435394287109375, -0.05194091796875, -0.017730712890625, -0.027191162109375, 0.0002446174621582031, 0.0474853515625, -0.053863525390625, 0.00708770751953125, -0.037384033203125, 0.0513916015625, -0.035797119140625, 0.035186767578125, 0.01123809814453125, 0.01123046875, 0.0096588134765625, -0.00893402099609375, -0.0162811279296875, -0.031524658203125, -0.005680084228515625, -0.0085296630859375, -0.01305389404296875, 0.00730133056640625, 0.041259765625, 0.01097869873046875, 0.012908935546875, -0.035858154296875, -0.02703857421875, 0.0287017822265625, 0.05450439453125, 0.04296875, 0.00786590576171875, 0.00986480712890625, -0.0249786376953125, 0.03277587890625, 0.0011615753173828125, 0.0048980712890625, -0.0116729736328125, -0.0306396484375, -0.0049896240234375, -0.037384033203125, -0.0347900390625, -0.01496124267578125, -0.01125335693359375, 0.06719970703125, 0.07183837890625, -0.00839996337890625, -0.007251739501953125, -0.01500701904296875, 0.0029144287109375, -0.023223876953125, 0.05181884765625, 0.00980377197265625, -0.0191802978515625, 0.0256195068359375, -0.0313720703125, 0.007808685302734375, 0.0281829833984375, 0.0166473388671875, 0.0039043426513671875, -0.021820068359375, 0.023468017578125, -0.0077972412109375, -0.04705810546875, 0.0222625732421875, -0.005176544189453125, -0.0020809173583984375, 0.00921630859375, -0.027618408203125, 0.0200347900390625, -0.00652313232421875, 0.024139404296875, -0.042022705078125, -0.004184722900390625, 0.06390380859375, 0.0179901123046875, -0.035797119140625, 0.03448486328125, -0.01153564453125, 0.018646240234375, 0.09307861328125, 0.061767578125, -0.147705078125, 0.02020263671875, -0.006439208984375, 0.022918701171875, 0.06500244140625, 0.017242431640625, 0.01007080078125, 0.0193634033203125, 0.001995086669921875, -0.005680084228515625, -0.0091552734375, 0.014068603515625, 0.0005502700805664062, -0.00785064697265625, -0.01178741455078125, 0.08099365234375, 0.0193328857421875, 0.03680419921875, -0.0129852294921875, -0.031402587890625, 0.03765869140625, -0.020843505859375, -0.0035800933837890625, -0.00004750490188598633, -0.0141143798828125, -0.037933349609375, 0.014923095703125, -0.038299560546875, 0.00846099853515625, 0.03094482421875, 0.00926971435546875, 0.050018310546875, 0.0024967193603515625, 0.02362060546875, -0.017852783203125, -0.038970947265625, 0.018768310546875, -0.007114410400390625, -0.0294189453125, -0.02191162109375, -0.035125732421875, -0.01044464111328125, 0.0163726806640625, -0.01360321044921875, -0.04461669921875, -0.0174560546875, 0.01473236083984375, 0.1055908203125, -0.0081024169921875, -0.035125732421875, 0.0277557373046875, 0.0199127197265625, -0.0266876220703125, -0.02166748046875, -0.006320953369140625, -0.048187255859375, -0.035614013671875, -0.0190582275390625, -0.06634521484375, 0.024658203125, -0.01396942138671875, -0.04925537109375, 0.115966796875, 0.0192718505859375, 0.0209197998046875, -0.0029735565185546875, 0.055755615234375, -0.02606201171875, 0.048431396484375, -0.0081634521484375, 0.031036376953125, 0.0177764892578125, 0.0204925537109375, -0.0171051025390625, -0.0110626220703125, 0.011016845703125, 0.052642822265625, 0.05413818359375, 0.015716552734375, -0.003345489501953125, -0.004772186279296875, 0.040435791015625, 0.0103759765625, -0.0296478271484375, 0.0238800048828125, 0.0057373046875, 0.0025768280029296875, 0.00695037841796875, -0.019256591796875, 0.031036376953125, -0.02618408203125, -0.0199127197265625, 0.017059326171875, 0.0025348663330078125, -0.002880096435546875, 0.02008056640625, 0.0560302734375, -0.072265625, 0.0188140869140625, 0.051177978515625, 0.00406646728515625, -0.023712158203125, 0.0187225341796875, -0.0186920166015625, 0.0119171142578125, 0.0789794921875, -0.040557861328125, 0.0438232421875, -0.0080718994140625, 0.030731201171875, -0.01534271240234375, -0.0009908676147460938, 0.063720703125, -0.022613525390625, 0.0036525726318359375, 0.043426513671875, -0.01105499267578125, 0.0496826171875, -0.01507568359375, -0.002216339111328125, -0.0794677734375, -0.0114898681640625, 0.03912353515625, 0.0634765625, -0.0565185546875, -0.0418701171875, 0.00962066650390625, 0.01145172119140625, 0.0232391357421875, 0.01861572265625, 0.047607421875, -0.035736083984375, 0.01227569580078125, -0.049468994140625, -0.00113677978515625, 0.016021728515625, 0.009613037109375, -0.03521728515625, -0.045562744140625, 0.0164794921875, 0.0148468017578125, -0.03802490234375, -0.0041961669921875, 0.016693115234375, 0.0185546875, 0.029510498046875, 0.00975799560546875, 0.044036865234375, 0.001373291015625, -0.003765106201171875, 0.01038360595703125, 0.007450103759765625, -0.006122589111328125, -0.0168914794921875, -0.0085906982421875, -0.0005817413330078125, 0.0249176025390625, -0.039947509765625, -0.025543212890625, 0.01540374755859375, 0.042449951171875, -0.007251739501953125, -0.0496826171875, -0.0002701282501220703, -0.01727294921875, -0.0029754638671875, -0.039703369140625, -0.0174407958984375, 0.00312042236328125, -0.0265655517578125, 0.0198516845703125, -0.044830322265625, 0.04254150390625, -0.032379150390625, 0.050537109375, -0.00238037109375, -0.021575927734375, 0.06793212890625, -0.03680419921875, 0.10491943359375, -0.0023708343505859375, -0.1385498046875, -0.018798828125, -0.045379638671875, -0.052825927734375, 0.05364990234375, 0.04278564453125, -0.050445556640625, 0.02740478515625, 0.0035915374755859375, -0.0228271484375, 0.0127105712890625, -0.02728271484375, 0.04937744140625, -0.006805419921875, -0.0282745361328125, -0.0037841796875, -0.0673828125, -0.0109710693359375, 0.005893707275390625, -0.0036678314208984375, -0.038665771484375, 0.08306884765625, -0.0083160400390625, -0.01300048828125, -0.0157623291015625, 0.01343536376953125, 0.010986328125, -0.0205841064453125, 0.037445068359375, 0.0300445556640625, 0.007171630859375, -0.02044677734375, -0.07196044921875, 0.05224609375, 0.0010251998901367188, -0.0004591941833496094, 0.045196533203125, -0.004730224609375, -0.00995635986328125, -0.0006222724914550781, -0.004817962646484375, -0.034637451171875, -0.06951904296875, -0.054412841796875, 0.011810302734375, -0.01284027099609375, 0.01390838623046875, -0.021942138671875, 0.05548095703125, -0.031524658203125, -0.031402587890625, 0.0302581787109375, -0.08306884765625, 0.042938232421875, 0.03155517578125, -0.00905609130859375, -0.0300140380859375, 0.023406982421875, -0.006809234619140625, -0.007335662841796875, 0.017333984375, 0.0241851806640625, 0.0172576904296875, -0.007030487060546875, 0.0017852783203125, 0.0139923095703125, 0.0227813720703125, -0.010284423828125, -0.00609588623046875, 0.0211639404296875, -0.023651123046875, 0.0091094970703125, -0.07275390625, -0.0467529296875, -0.03668212890625, 0.006439208984375, 0.0394287109375, -0.0037841796875, -0.01666259765625, -0.06011962890625, -0.0222930908203125, 0.026458740234375, -0.0130157470703125, -0.0316162109375, -0.018798828125, -0.01508331298828125, 0.045196533203125, -0.028594970703125, -0.0214385986328125, 0.029022216796875, 0.059722900390625, -0.026336669921875, 0.00995635986328125, 0.002285003662109375, -0.02239990234375, -0.00128173828125, -0.0102996826171875, 0.044708251953125, 0.0052032470703125, -0.0350341796875, -0.0202178955078125, -0.02655029296875, 0.031707763671875, -0.0323486328125, -0.0181884765625, 0.0170440673828125, 0.003997802734375, -0.00463104248046875, -0.052490234375, -0.006687164306640625, -0.01515960693359375, 0.01322174072265625, -0.022247314453125, 0.00949859619140625, 0.01430511474609375, -0.03863525390625, -0.08038330078125, 0.05902099609375, -0.031402587890625, -0.02978515625, -0.039215087890625, 0.03399658203125, -0.0015668869018554688, -0.0261383056640625, -0.0150604248046875, -0.007221221923828125, 0.0032958984375, 0.0265655517578125, 0.02978515625, -0.031494140625, 0.0679931640625, 0.0227508544921875, -0.07110595703125, -0.0051422119140625, -0.03497314453125, 0.01152801513671875, 0.0131683349609375, -0.014068603515625, 0.0125885009765625, 0.054718017578125, -0.0222015380859375, -0.08074951171875, -0.0169219970703125, -0.027801513671875, -0.01230621337890625, -0.0239410400390625, 0.003200531005859375, -0.01276397705078125, 0.022430419921875, 0.0147552490234375, -0.002849578857421875, -0.00627899169921875, 0.0006794929504394531, -0.03131103515625, -0.03826904296875, -0.0224609375, 0.0241241455078125, -0.07647705078125, -0.0122222900390625, 0.007160186767578125, -0.0298309326171875, -0.01678466796875, 0.0198974609375, -0.04296875, 0.00760650634765625, 0.01385498046875, -0.00514984130859375, -0.039794921875, -0.004718780517578125, 0.05621337890625, -0.041656494140625, -0.0355224609375, 0.0059356689453125, 0.020477294921875, -0.005245208740234375, -0.026275634765625, 0.0152130126953125, 0.007190704345703125, -0.056671142578125, 0.02252197265625, -0.01473236083984375, 0.045745849609375, -0.0726318359375, -0.032135009765625, 0.00681304931640625, 0.050262451171875, -0.014495849609375, 0.06207275390625, -0.02154541015625, 0.07275390625, 0.00588226318359375, 0.0667724609375, 0.0113067626953125, -0.048614501953125, -0.0233612060546875, 0.01800537109375, 0.0196380615234375, -0.0155792236328125, 0.030059814453125, 0.00457763671875, -0.003704071044921875, 0.004123687744140625, -0.034088134765625, -0.0005254745483398438, 0.0013761520385742188, -0.018402099609375, -0.022674560546875, -0.002071380615234375 ]
b6223089fde6f2725e8288125d3b9d8f86cf74f2
Wordpress Stackexchange Q: How to Rewrite Wordpress URL for a Plugin I am trying to build a Wordpress plugin here with a custom user admin area. What I would like to do is when the user adds /edit at the end of the page, it should open a page from my plugin. So for example example.com/page-1/edit should load example.com/wp-content/plugins/custom-user-admin-area/index.php?u=page-1 I am trying to make use of WP_Rewrite but in vain. class MyPlugin { function create_rewrite_rules($rules) { global $wp_rewrite; $newRule = array('([A-Za-z0-9-].+)/edit/' => 'wp-content/plugins/custom-user-admin-area/index.php?u=' . $wp_rewrite->preg_index(1)); $newRules = $newRule + $rules; return $newRules; } function flush_rewrite_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } } $MyPluginCode = new MyPlugin(); add_filter('rewrite_rules_array', array($MyPluginCode, 'create_rewrite_rules')); add_filter('init', array($MyPluginCode, 'flush_rewrite_rules')); A: Create an endpoint. In the callback function for the endpoint call your plugin functions internally, so the whole WordPress environment is available and you are still on the same domain, no matter where the plugin URL is. Plus, make sure not to flush the rewrite rules on every page load, use the (de)activation hook for that.
Q: How to Rewrite Wordpress URL for a Plugin I am trying to build a Wordpress plugin here with a custom user admin area. What I would like to do is when the user adds /edit at the end of the page, it should open a page from my plugin. So for example example.com/page-1/edit should load example.com/wp-content/plugins/custom-user-admin-area/index.php?u=page-1 I am trying to make use of WP_Rewrite but in vain. class MyPlugin { function create_rewrite_rules($rules) { global $wp_rewrite; $newRule = array('([A-Za-z0-9-].+)/edit/' => 'wp-content/plugins/custom-user-admin-area/index.php?u=' . $wp_rewrite->preg_index(1)); $newRules = $newRule + $rules; return $newRules; } function flush_rewrite_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } } $MyPluginCode = new MyPlugin(); add_filter('rewrite_rules_array', array($MyPluginCode, 'create_rewrite_rules')); add_filter('init', array($MyPluginCode, 'flush_rewrite_rules')); A: Create an endpoint. In the callback function for the endpoint call your plugin functions internally, so the whole WordPress environment is available and you are still on the same domain, no matter where the plugin URL is. Plus, make sure not to flush the rewrite rules on every page load, use the (de)activation hook for that.
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:424964", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69768" }
[ 0.05035400390625, -0.012847900390625, -0.0005254745483398438, -0.07049560546875, -0.0018138885498046875, -0.00533294677734375, -0.0206756591796875, -0.0078887939453125, -0.048248291015625, -0.0004687309265136719, 0.031494140625, -0.0030803680419921875, -0.006000518798828125, -0.061431884765625, 0.0394287109375, -0.0252532958984375, 0.005870819091796875, 0.024658203125, -0.00174713134765625, -0.021881103515625, 0.0099334716796875, -0.00959014892578125, -0.0229339599609375, 0.058197021484375, -0.0019893646240234375, -0.01013946533203125, 0.08209228515625, -0.004520416259765625, -0.009033203125, -0.015869140625, 0.00920867919921875, -0.0167388916015625, 0.020172119140625, 0.027587890625, -0.032135009765625, -0.0161895751953125, 0.0005388259887695312, -0.0006580352783203125, -0.0030384063720703125, 0.026031494140625, 0.07965087890625, -0.05487060546875, -0.01355743408203125, 0.04388427734375, -0.0038852691650390625, -0.052825927734375, 0.1009521484375, -0.0229339599609375, 0.0207061767578125, 0.035064697265625, 0.0006079673767089844, 0.0141448974609375, -0.0038509368896484375, 0.032501220703125, 0.01360321044921875, 0.03509521484375, 0.0004534721374511719, -0.0277099609375, 0.02044677734375, 0.01190185546875, -0.01378631591796875, -0.02325439453125, 0.0198822021484375, 0.00440216064453125, 0.00421905517578125, -0.013397216796875, -0.01495361328125, 0.032379150390625, -0.03582763671875, 0.002780914306640625, 0.02825927734375, -0.017242431640625, -0.01245880126953125, 0.0115966796875, -0.0185089111328125, -0.0142974853515625, 0.0244140625, 0.0089111328125, 0.002735137939453125, 0.0262451171875, 0.02655029296875, -0.038604736328125, 0.02081298828125, -0.00923919677734375, 0.00878143310546875, 0.00753021240234375, -0.00812530517578125, -0.00695037841796875, -0.041595458984375, 0.00438690185546875, -0.032806396484375, 0.0086517333984375, -0.0190582275390625, -0.01788330078125, -0.01245880126953125, -0.0016984939575195312, 0.00008684396743774414, -0.00510406494140625, 0.016143798828125, 0.03839111328125, 0.0308380126953125, -0.061676025390625, 0.0859375, -0.0389404296875, 0.01534271240234375, 0.0445556640625, 0.0023326873779296875, 0.007366180419921875, 0.02911376953125, 0.005588531494140625, 0.002521514892578125, 0.01348114013671875, -0.029510498046875, 0.0016298294067382812, -0.01546478271484375, -0.0139923095703125, -0.07135009765625, 0.0007710456848144531, -0.0159149169921875, -0.01335906982421875, -0.0189056396484375, -0.0121917724609375, -0.0213775634765625, 0.018218994140625, 0.0106353759765625, -0.0074462890625, 0.0018138885498046875, 0.0124969482421875, -0.00020754337310791016, -0.00017702579498291016, -0.005889892578125, 0.0330810546875, 0.042266845703125, 0.01837158203125, -0.0122222900390625, -0.0032196044921875, 0.036346435546875, 0.005645751953125, -0.014617919921875, 0.01459503173828125, -0.024169921875, -0.0294952392578125, -0.01934814453125, -0.0301055908203125, 0.01291656494140625, 0.02117919921875, 0.01043701171875, 0.00362396240234375, -0.0004787445068359375, -0.025299072265625, -0.0002028942108154297, -0.049835205078125, 0.052520751953125, -0.01401519775390625, 0.018402099609375, -0.03387451171875, 0.054779052734375, -0.0304718017578125, -0.02447509765625, -0.03033447265625, 0.026031494140625, -0.0015287399291992188, -0.00107574462890625, -0.00875091552734375, -0.04705810546875, -0.02020263671875, -0.03131103515625, -0.0157318115234375, 0.0207061767578125, -0.003818511962890625, 0.03619384765625, 0.0035552978515625, -0.002880096435546875, 0.0305023193359375, 0.0226287841796875, 0.014739990234375, -0.0029163360595703125, 0.0189666748046875, -0.00734710693359375, 0.07757568359375, 0.00762176513671875, -0.0296783447265625, 0.0306854248046875, -0.005779266357421875, -0.0687255859375, 0.05328369140625, -0.01178741455078125, 0.065185546875, 0.03424072265625, -0.0150909423828125, 0.029266357421875, 0.0157928466796875, 0.00881195068359375, 0.0007190704345703125, -0.019134521484375, -0.0204315185546875, 0.019195556640625, 0.020233154296875, -0.02130126953125, -0.001811981201171875, -0.032440185546875, 0.00926971435546875, 0.0069732666015625, -0.003734588623046875, -0.060943603515625, 0.02362060546875, -0.036041259765625, 0.05126953125, 0.043914794921875, 0.0294647216796875, -0.006694793701171875, 0.0308837890625, -0.0228729248046875, -0.036956787109375, -0.026031494140625, 0.06866455078125, 0.01006317138671875, 0.042022705078125, 0.0210723876953125, 0.049774169921875, 0.04327392578125, -0.0158843994140625, 0.02215576171875, -0.010772705078125, 0.00594329833984375, -0.0209503173828125, -0.01337432861328125, -0.0161590576171875, -0.03619384765625, -0.00873565673828125, -0.036224365234375, 0.065673828125, 0.038909912109375, 0.060516357421875, -0.036834716796875, -0.02777099609375, -0.029571533203125, -0.039825439453125, 0.005100250244140625, 0.05474853515625, 0.038177490234375, 0.0008473396301269531, -0.021026611328125, -0.022979736328125, -0.0008020401000976562, -0.08502197265625, 0.00418853759765625, -0.005519866943359375, 0.01242828369140625, 0.058074951171875, -0.0028228759765625, 0.00406646728515625, 0.006046295166015625, -0.045196533203125, -0.0001506805419921875, 0.044342041015625, -0.0085296630859375, -0.0189056396484375, -0.0270538330078125, -0.016815185546875, 0.02471923828125, -0.039398193359375, -0.04541015625, -0.01198577880859375, 0.0183868408203125, -0.01227569580078125, 0.025390625, 0.0245361328125, -0.0181884765625, -0.017242431640625, 0.01531982421875, 0.035552978515625, -0.0011758804321289062, 0.0222320556640625, 0.0601806640625, -0.0616455078125, -0.0318603515625, -0.0025653839111328125, 0.04681396484375, -0.00487518310546875, -0.010345458984375, -0.0029144287109375, -0.03228759765625, -0.0034809112548828125, -0.01329803466796875, -0.030059814453125, 0.0214385986328125, 0.024322509765625, 0.06890869140625, 0.02691650390625, 0.045379638671875, -0.0084381103515625, -0.042938232421875, 0.06964111328125, 0.0022735595703125, -0.053314208984375, 0.01494598388671875, -0.0533447265625, 0.038787841796875, -0.0301513671875, 0.045745849609375, 0.07177734375, 0.0014448165893554688, -0.0197296142578125, 0.023773193359375, -0.00811004638671875, 0.00035119056701660156, 0.0239715576171875, -0.0013580322265625, 0.0042266845703125, -0.0791015625, -0.01247406005859375, 0.03143310546875, 0.0191802978515625, 0.0235443115234375, -0.01280975341796875, -0.00827789306640625, 0.04522705078125, -0.02935791015625, -0.0120086669921875, -0.01386260986328125, -0.05157470703125, 0.0263519287109375, 0.0004241466522216797, -0.006732940673828125, -0.0174102783203125, 0.0290069580078125, 0.0094146728515625, -0.0276336669921875, -0.0155029296875, -0.075439453125, -0.0789794921875, -0.0672607421875, -0.0157928466796875, -0.018890380859375, 0.00795745849609375, 0.00820159912109375, 0.005504608154296875, -0.0081634521484375, -0.049530029296875, 0.01175689697265625, 0.004611968994140625, -0.02392578125, -0.0265350341796875, -0.054901123046875, 0.00469970703125, 0.01117706298828125, -0.007083892822265625, 0.0701904296875, 0.01493072509765625, -0.0252685546875, 0.029815673828125, -0.00634002685546875, -0.02679443359375, -0.013275146484375, -0.019866943359375, 0.0235595703125, -0.0261383056640625, -0.00659942626953125, -0.0528564453125, 0.01316070556640625, 0.0081787109375, -0.01519012451171875, 0.00963592529296875, 0.0214996337890625, -0.043365478515625, 0.032684326171875, -0.0218353271484375, -0.0097808837890625, -0.000858306884765625, 0.0209503173828125, -0.042999267578125, 0.044403076171875, -0.020050048828125, -0.00652313232421875, -0.0256195068359375, 0.06292724609375, 0.0103607177734375, -0.034820556640625, 0.0132293701171875, -0.0035343170166015625, -0.004241943359375, -0.022491455078125, -0.059661865234375, -0.050506591796875, 0.0223236083984375, -0.04681396484375, 0.0036754608154296875, -0.04718017578125, -0.0014667510986328125, -0.0305633544921875, 0.05987548828125, -0.02197265625, -0.00746917724609375, 0.000926971435546875, 0.002239227294921875, -0.019927978515625, -0.0165557861328125, -0.048675537109375, -0.004581451416015625, -0.10247802734375, -0.0049896240234375, -0.0016021728515625, -0.041595458984375, 0.01702880859375, -0.0258331298828125, -0.0234222412109375, -0.047576904296875, 0.034149169921875, -0.051025390625, 0.0307769775390625, 0.010894775390625, 0.0038700103759765625, -0.0164337158203125, -0.0168304443359375, -0.0261077880859375, -0.0679931640625, -0.005474090576171875, -0.02435302734375, 0.0538330078125, 0.040313720703125, -0.056304931640625, -0.024993896484375, 0.0283050537109375, -0.00760650634765625, 0.020355224609375, -0.004245758056640625, 0.00443267822265625, -0.0118865966796875, 0.009368896484375, 0.0028629302978515625, -0.01358795166015625, 0.0164947509765625, 0.011993408203125, -0.032073974609375, 0.0170135498046875, -0.041259765625, -0.02398681640625, -0.0034809112548828125, -0.052154541015625, -0.04266357421875, -0.03302001953125, -0.058319091796875, -0.0090484619140625, -0.009002685546875, -0.036376953125, -0.016998291015625, -0.0557861328125, 0.0186614990234375, -0.04180908203125, -0.01543426513671875, 0.0228729248046875, 0.035614013671875, 0.005924224853515625, -0.00324249267578125, -0.002285003662109375, 0.0208892822265625, 0.0390625, 0.0091094970703125, 0.032806396484375, 0.017059326171875, -0.0109100341796875, 0.026885986328125, 0.005580902099609375, 0.037261962890625, -0.006710052490234375, 0.0037631988525390625, -0.01611328125, -0.0472412109375, 0.036712646484375, 0.01313018798828125, -0.023468017578125, 0.0223541259765625, -0.0291748046875, -0.0008683204650878906, -0.0246734619140625, 0.0230865478515625, -0.01263427734375, 0.023223876953125, -0.0254058837890625, -0.06622314453125, 0.03826904296875, -0.005001068115234375, 0.0323486328125, 0.019439697265625, -0.00920867919921875, 0.06085205078125, 0.01105499267578125, -0.0084686279296875, 0.033233642578125, 0.039337158203125, 0.00212860107421875, 0.0252532958984375, 0.032958984375, -0.0081939697265625, -0.0199127197265625, 0.00168609619140625, 0.057281494140625, 0.01812744140625, -0.031280517578125, -0.0017299652099609375, -0.01168060302734375, -0.0184783935546875, 0.0096893310546875, -0.0172882080078125, 0.008087158203125, 0.03448486328125, -0.00665283203125, 0.0039825439453125, -0.003536224365234375, 0.0114898681640625, -0.039642333984375, -0.01039886474609375, -0.0262603759765625, -0.015960693359375, -0.036773681640625, 0.0833740234375, -0.021331787109375, 0.02703857421875, 0.005176544189453125, 0.039520263671875, 0.035064697265625, 0.030120849609375, 0.01690673828125, 0.00013935565948486328, -0.004199981689453125, 0.0008120536804199219, -0.029083251953125, -0.0078125, -0.0002332925796508789, 0.0477294921875, 0.01947021484375, -0.00664520263671875, -0.0034656524658203125, -0.007648468017578125, -0.0111236572265625, -0.01273345947265625, 0.02630615234375, -0.0081939697265625, -0.023529052734375, -0.034454345703125, 0.000965118408203125, 0.0496826171875, -0.006763458251953125, -0.000038743019104003906, -0.006824493408203125, -0.00318145751953125, 0.01148223876953125, -0.0039215087890625, -0.020355224609375, 0.01041412353515625, 0.006420135498046875, 0.009185791015625, -0.021209716796875, 0.0078887939453125, -0.0181121826171875, 0.014312744140625, -0.04327392578125, -0.012542724609375, 0.058563232421875, -0.0166015625, 0.032806396484375, -0.013397216796875, -0.01049041748046875, 0.0009016990661621094, 0.01085662841796875, 0.0194549560546875, 0.0022754669189453125, -0.051605224609375, -0.016082763671875, -0.0290679931640625, 0.00913238525390625, 0.0006136894226074219, -0.03253173828125, -0.004878997802734375, 0.00130462646484375, 0.00893402099609375, 0.03594970703125, -0.029815673828125, -0.0177764892578125, -0.00276947021484375, 0.007061004638671875, 0.006526947021484375, 0.0478515625, 0.00859832763671875, 0.04937744140625, -0.005588531494140625, 0.047943115234375, 0.0291290283203125, 0.0152130126953125, -0.0275115966796875, -0.0203399658203125, 0.00537109375, -0.0122222900390625, -0.01390838623046875, -0.013671875, -0.0158538818359375, 0.0243377685546875, 0.08123779296875, -0.00638580322265625, 0.01354217529296875, -0.0125885009765625, -0.0010766983032226562, -0.0281829833984375, 0.0289306640625, -0.0033283233642578125, 0.0399169921875, -0.0023345947265625, -0.005374908447265625, 0.047454833984375, -0.00984954833984375, 0.0015745162963867188, 0.00482940673828125, -0.01262664794921875, 0.016510009765625, -0.00615692138671875, -0.0533447265625, 0.040771484375, 0.049896240234375, 0.0091094970703125, 0.044219970703125, 0.0147705078125, 0.037628173828125, 0.048126220703125, -0.031280517578125, 0.062286376953125, 0.0291900634765625, 0.07183837890625, -0.006488800048828125, 0.002025604248046875, 0.0697021484375, -0.0181732177734375, 0.0249176025390625, 0.05859375, 0.035980224609375, -0.1138916015625, 0.01763916015625, -0.02691650390625, 0.00018894672393798828, 0.052703857421875, 0.027252197265625, 0.00029349327087402344, 0.043487548828125, -0.010772705078125, -0.04010009765625, -0.01506805419921875, 0.02227783203125, 0.0167694091796875, -0.02496337890625, 0.0007848739624023438, 0.052978515625, 0.0113525390625, 0.000652313232421875, 0.0013170242309570312, -0.030120849609375, 0.00542449951171875, -0.006275177001953125, 0.00041747093200683594, 0.0251312255859375, -0.005268096923828125, 0.0003535747528076172, 0.065185546875, -0.0361328125, 0.0165863037109375, 0.057952880859375, -0.01189422607421875, 0.006771087646484375, 0.03753662109375, -0.0098724365234375, 0.003704071044921875, 0.01502227783203125, -0.038055419921875, 0.00701904296875, -0.0245361328125, -0.035003662109375, 0.0016832351684570312, -0.0183258056640625, -0.0056610107421875, -0.01357269287109375, -0.0131378173828125, -0.021392822265625, -0.057464599609375, 0.05938720703125, -0.0266265869140625, -0.01155853271484375, 0.00881195068359375, 0.01366424560546875, 0.006763458251953125, -0.014923095703125, -0.022125244140625, -0.047088623046875, -0.0223388671875, -0.04107666015625, -0.05950927734375, 0.02264404296875, -0.0295562744140625, -0.093994140625, 0.0943603515625, 0.00896453857421875, 0.07769775390625, -0.000530242919921875, 0.0210723876953125, -0.0079193115234375, -0.014312744140625, -0.0099945068359375, 0.035400390625, -0.007312774658203125, 0.0212860107421875, -0.049346923828125, -0.0074920654296875, 0.0057373046875, 0.062469482421875, 0.06829833984375, 0.03570556640625, -0.070556640625, -0.0100555419921875, -0.003498077392578125, -0.0305328369140625, -0.0210113525390625, 0.07867431640625, 0.01425933837890625, 0.0124053955078125, 0.0235137939453125, -0.0279998779296875, 0.030914306640625, -0.045684814453125, -0.003875732421875, 0.02532958984375, -0.00940704345703125, -0.00875091552734375, -0.0266571044921875, 0.038421630859375, -0.0290679931640625, -0.00035500526428222656, 0.015869140625, -0.017059326171875, -0.004253387451171875, -0.012908935546875, 0.01654052734375, -0.022064208984375, -0.0149383544921875, -0.010528564453125, 0.030120849609375, 0.0246429443359375, 0.03302001953125, 0.030487060546875, 0.036956787109375, -0.01343536376953125, -0.0147705078125, 0.0136260986328125, 0.01316070556640625, -0.049713134765625, 0.037353515625, 0.0293426513671875, 0.047576904296875, 0.00444793701171875, 0.006916046142578125, -0.0089111328125, 0.038177490234375, -0.0246734619140625, -0.040313720703125, -0.001739501953125, 0.00897979736328125, 0.010223388671875, 0.022186279296875, 0.047821044921875, -0.036895751953125, -0.006290435791015625, -0.00176239013671875, -0.002254486083984375, 0.01477813720703125, 0.01043701171875, 0.00629425048828125, 0.007556915283203125, -0.016815185546875, 0.0254669189453125, -0.012603759765625, -0.006351470947265625, -0.004497528076171875, 0.0299530029296875, 0.029144287109375, 0.0083465576171875, -0.028289794921875, -0.013336181640625, -0.0123748779296875, 0.041595458984375, 0.006134033203125, 0.00897979736328125, -0.04156494140625, -0.046356201171875, 0.0090484619140625, 0.050506591796875, 0.0032806396484375, 0.006961822509765625, 0.03887939453125, 0.02630615234375, -0.03851318359375, -0.00970458984375, 0.0180206298828125, -0.0296478271484375, 0.056304931640625, -0.031341552734375, 0.04058837890625, -0.03936767578125, -0.0034580230712890625, -0.031402587890625, 0.042205810546875, -0.0155792236328125, -0.000030994415283203125, 0.025238037109375, -0.00348663330078125, -0.0108642578125, 0.040618896484375, -0.039215087890625, 0.044830322265625, 0.000018835067749023438, -0.0262908935546875, -0.002582550048828125, -0.04229736328125, -0.037841796875, 0.0179595947265625, 0.043365478515625, 0.002895355224609375, 0.01788330078125, 0.01302337646484375, 0.0169219970703125, 0.0086517333984375, -0.02398681640625, -0.005107879638671875, -0.00916290283203125, 0.02691650390625, -0.00008475780487060547, -0.03485107421875, -0.0143890380859375, -0.0423583984375, 0.044708251953125, 0.01849365234375, 0.135009765625, -0.06195068359375, 0.03265380859375, -0.003322601318359375, -0.033203125, 0.0035228729248046875, 0.003147125244140625, -0.029296875, -0.031463623046875, -0.01241302490234375, 0.0191192626953125, -0.018157958984375, -0.006938934326171875, 0.029388427734375, -0.046417236328125, -0.01425933837890625, -0.006008148193359375, 0.0287933349609375, -0.00983428955078125, 0.06005859375, -0.0322265625, -0.06243896484375, -0.047332763671875, 0.022491455078125, -0.003170013427734375, -0.00809478759765625, -0.02166748046875, 0.0574951171875, 0.01427459716796875, 0.00800323486328125, -0.012603759765625, -0.03887939453125, -0.0192413330078125, 0.036468505859375, -0.02301025390625, -0.009429931640625, 0.0201416015625, -0.0308380126953125, 0.0166473388671875, -0.0032901763916015625, 0.045501708984375, -0.0005102157592773438, -0.02288818359375, -0.0262451171875, -0.03277587890625, -0.007171630859375, -0.031524658203125, -0.0020599365234375, -0.0238037109375, 0.0117645263671875, -0.03057861328125, -0.016632080078125, -0.033660888671875, -0.058258056640625, 0.003070831298828125, 0.00418853759765625, -0.01505279541015625, -0.03656005859375, -0.0158843994140625, 0.0340576171875, 0.0246734619140625, -0.005359649658203125, -0.09527587890625, 0.04376220703125, -0.028594970703125, 0.1094970703125, -0.036285400390625, -0.01125335693359375, -0.0139923095703125, -0.01050567626953125, -0.042755126953125, -0.053924560546875, -0.0435791015625, 0.04339599609375, -0.05169677734375, -0.01062774658203125, 0.038360595703125, -0.01016998291015625, -0.047271728515625, -0.0231475830078125, -0.0254364013671875, 0.037445068359375, -0.0439453125, -0.0005655288696289062, 0.0169219970703125, 0.01200103759765625, -0.03314208984375, -0.049346923828125, -0.002750396728515625, -0.0259246826171875, -0.001941680908203125, 0.0261077880859375, -0.0377197265625, -0.0227508544921875, -0.04608154296875, -0.048614501953125, 0.005413055419921875, 0.0259857177734375, -0.033233642578125, -0.07635498046875, -0.006450653076171875, 0.0103607177734375, 0.028106689453125, -0.019561767578125, -0.0303955078125, -0.08026123046875, 0.0169830322265625, 0.0103607177734375, 0.02447509765625, -0.0103912353515625, 0.016326904296875, -0.0129547119140625, 0.0237884521484375, 0.0179901123046875, -0.003910064697265625, 0.014495849609375, -0.02423095703125, 0.06524658203125, 0.0682373046875, 0.0198822021484375, 0.0352783203125, 0.027923583984375, -0.1014404296875, -0.010101318359375, -0.075439453125, -0.0096435546875, -0.016021728515625, 0.09735107421875, -0.004039764404296875, 0.01690673828125, -0.033599853515625, 0.00821685791015625, -0.0249176025390625, -0.02581787109375, -0.016021728515625, 0.02801513671875, -0.050994873046875, -0.00928497314453125, 0.0145111083984375, 0.007549285888671875, -0.01052093505859375, -0.0026302337646484375, -0.0007929801940917969, -0.01129150390625, 0.0189208984375, -0.01045989990234375, 0.01311492919921875, -0.024688720703125, 0.08111572265625, -0.048095703125, -0.0280914306640625, 0.00215911865234375, 0.0309906005859375, 0.01279449462890625, -0.028564453125, 0.00017595291137695312, 0.07244873046875, -0.040374755859375, 0.0169525146484375, 0.0205535888671875, 0.01284027099609375, -0.057464599609375, 0.019134521484375, -0.00341796875, 0.0270843505859375, -0.014007568359375, 0.00884246826171875, -0.023345947265625, 0.07562255859375, 0.002819061279296875, 0.0859375, -0.02642822265625, -0.036346435546875, 0.0004703998565673828, 0.0017995834350585938, -0.0274810791015625, 0.0255889892578125, 0.0206451416015625, -0.037811279296875, -0.0037822723388671875, 0.0259552001953125, -0.00045800209045410156, -0.043975830078125, 0.0007033348083496094, -0.06304931640625, 0.031402587890625, 0.0031147003173828125 ]
c4f8ac8d47a50bc7a89db78b74e006d1365fbfec
Wordpress Stackexchange Q: Automatically Facebook Debug Posts on Publish I am looking to do something similar to this plugin which adds an "FB-Debugger" link on the admin of pages/posts: http://xlino.com/projects/facebook-debug-link-wordpress-plugin/ However, I'd like to make this even more automated by sending the post url directly to the Facebook Debugger on publish or re-publish by opening the debugger in a new browser tab with the results for the url. This seems pretty possible because the url that would be passed to the debugger looks like http://developers.facebook.com/tools/debug/og/object?q=mysite.com/my-post I guess my question is how can I automatically open up a new tab with: http://developers.facebook.com/tools/debug/og/object?q=[post-url] a second or two after the post is published or changed (there would need to be time delay for FB to find the post) ? I know a little PHP and it seems like a pretty simple command, but what core WP file would I edit? Im using WP 3.3.1 . I've done some frontend template tweaking but nothing that changes or adds on to the admin. Thanks!
Q: Automatically Facebook Debug Posts on Publish I am looking to do something similar to this plugin which adds an "FB-Debugger" link on the admin of pages/posts: http://xlino.com/projects/facebook-debug-link-wordpress-plugin/ However, I'd like to make this even more automated by sending the post url directly to the Facebook Debugger on publish or re-publish by opening the debugger in a new browser tab with the results for the url. This seems pretty possible because the url that would be passed to the debugger looks like http://developers.facebook.com/tools/debug/og/object?q=mysite.com/my-post I guess my question is how can I automatically open up a new tab with: http://developers.facebook.com/tools/debug/og/object?q=[post-url] a second or two after the post is published or changed (there would need to be time delay for FB to find the post) ? I know a little PHP and it seems like a pretty simple command, but what core WP file would I edit? Im using WP 3.3.1 . I've done some frontend template tweaking but nothing that changes or adds on to the admin. Thanks!
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:424965", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69770" }
[ 0.053985595703125, 0.0212554931640625, 0.0271148681640625, -0.026123046875, -0.002101898193359375, -0.0153045654296875, -0.0095367431640625, -0.058197021484375, 0.0010919570922851562, -0.00024139881134033203, 0.0078277587890625, -0.01519012451171875, -0.0223236083984375, -0.033447265625, 0.004840850830078125, -0.025299072265625, 0.05206298828125, -0.048797607421875, 0.0438232421875, 0.01763916015625, -0.002185821533203125, 0.0294342041015625, 0.066162109375, -0.0020771026611328125, 0.0240631103515625, 0.0265045166015625, 0.058074951171875, -0.01335906982421875, 0.049102783203125, 0.0194091796875, 0.03375244140625, -0.07501220703125, 0.01372528076171875, 0.058685302734375, -0.077880859375, -0.01091766357421875, -0.0003457069396972656, 0.0007033348083496094, -0.0179901123046875, 0.02850341796875, 0.034698486328125, -0.00753021240234375, 0.0177154541015625, 0.0218048095703125, 0.016082763671875, -0.042236328125, 0.04278564453125, -0.04534912109375, 0.028167724609375, 0.0021915435791015625, -0.01038360595703125, 0.01097869873046875, -0.0088348388671875, -0.02374267578125, -0.0135345458984375, -0.0025920867919921875, -0.02984619140625, 0.0191802978515625, 0.0166473388671875, 0.035369873046875, -0.00449371337890625, -0.005550384521484375, -0.00823974609375, -0.0369873046875, 0.00847625732421875, 0.018798828125, 0.00687408447265625, -0.0056304931640625, -0.0082550048828125, 0.01166534423828125, 0.0231781005859375, -0.0277862548828125, -0.00746917724609375, 0.0035839080810546875, 0.01617431640625, -0.047698974609375, 0.046844482421875, 0.0013942718505859375, -0.031280517578125, 0.05755615234375, 0.00047397613525390625, -0.04443359375, 0.04156494140625, 0.0194091796875, -0.0267486572265625, 0.0128021240234375, -0.00392913818359375, 0.0012226104736328125, -0.007354736328125, -0.0246429443359375, -0.015899658203125, 0.00893402099609375, -0.039764404296875, 0.005611419677734375, -0.0182037353515625, -0.03326416015625, 0.017578125, 0.0170745849609375, 0.038665771484375, 0.01065826416015625, 0.006610870361328125, -0.04443359375, -0.00917816162109375, -0.00750732421875, -0.0254669189453125, 0.04974365234375, 0.028900146484375, -0.03118896484375, -0.0025424957275390625, 0.006656646728515625, 0.004917144775390625, -0.00662994384765625, 0.0170135498046875, -0.0011272430419921875, -0.0236053466796875, -0.012603759765625, -0.00934600830078125, -0.004795074462890625, 0.005954742431640625, -0.01123046875, -0.0145263671875, 0.024322509765625, -0.04058837890625, 0.0277099609375, -0.003551483154296875, -0.005435943603515625, 0.018829345703125, -0.0006556510925292969, 0.007480621337890625, -0.01338958740234375, -0.01513671875, 0.034820556640625, 0.05877685546875, 0.0163726806640625, 0.0019483566284179688, -0.01313018798828125, -0.00388336181640625, -0.027496337890625, 0.004085540771484375, 0.012298583984375, -0.0234222412109375, -0.04443359375, 0.004581451416015625, 0.0022220611572265625, -0.018310546875, 0.035186767578125, 0.0220947265625, -0.021453857421875, -0.016448974609375, -0.00921630859375, -0.06671142578125, 0.037445068359375, 0.01300048828125, 0.0174102783203125, 0.05706787109375, -0.05810546875, 0.07977294921875, -0.0645751953125, 0.06439208984375, -0.060272216796875, -0.033935546875, 0.01412200927734375, 0.04583740234375, -0.078369140625, -0.048736572265625, -0.0261688232421875, -0.037139892578125, -0.0012197494506835938, 0.022613525390625, 0.010223388671875, 0.0191802978515625, -0.0007786750793457031, -0.0047607421875, -0.02447509765625, -0.011810302734375, -0.00788116455078125, -0.0011730194091796875, 0.011566162109375, 0.060638427734375, -0.01335906982421875, 0.0014562606811523438, 0.0001475811004638672, 0.11297607421875, -0.0218658447265625, -0.032196044921875, 0.0484619140625, -0.0190582275390625, 0.043731689453125, 0.032989501953125, 0.0004546642303466797, -0.0301513671875, 0.0158233642578125, -0.032928466796875, 0.047943115234375, -0.0009541511535644531, -0.029388427734375, 0.00909423828125, 0.0153961181640625, -0.01125335693359375, -0.029083251953125, -0.031036376953125, 0.045806884765625, -0.043182373046875, 0.034759521484375, -0.042877197265625, -0.0022563934326171875, -0.0060577392578125, 0.022674560546875, 0.05181884765625, -0.004085540771484375, -0.0175933837890625, 0.0012331008911132812, 0.0275726318359375, -0.0770263671875, -0.062408447265625, 0.038055419921875, -0.048187255859375, -0.0197296142578125, -0.0025272369384765625, -0.0092315673828125, 0.0028209686279296875, 0.00891876220703125, 0.0014476776123046875, -0.0124664306640625, 0.053924560546875, -0.00853729248046875, 0.001468658447265625, -0.03387451171875, 0.058197021484375, 0.005474090576171875, -0.0357666015625, 0.028045654296875, -0.0009908676147460938, -0.0265960693359375, -0.0268707275390625, -0.0012874603271484375, 0.00823974609375, -0.048126220703125, 0.01470184326171875, 0.048675537109375, 0.018402099609375, -0.005828857421875, 0.01103973388671875, 0.0200347900390625, 0.00933837890625, -0.00019311904907226562, 0.041351318359375, -0.008819580078125, 0.00487518310546875, 0.078857421875, -0.0745849609375, 0.0118408203125, 0.0203399658203125, -0.0877685546875, -0.01074981689453125, 0.06512451171875, -0.009796142578125, -0.0159912109375, -0.04681396484375, 0.01128387451171875, 0.0035190582275390625, -0.036651611328125, -0.01355743408203125, -0.0250701904296875, 0.032958984375, -0.04693603515625, 0.01666259765625, 0.01413726806640625, -0.006103515625, -0.04754638671875, 0.0226593017578125, 0.0157470703125, -0.00861358642578125, 0.0309600830078125, -0.01690673828125, -0.020355224609375, -0.0011491775512695312, 0.002655029296875, -0.026275634765625, -0.01031494140625, -0.018280029296875, 0.057586669921875, 0.017333984375, -0.022430419921875, -0.031707763671875, -0.031097412109375, -0.0006279945373535156, -0.04827880859375, 0.0628662109375, -0.0194091796875, 0.023162841796875, -0.0037326812744140625, -0.041656494140625, 0.0767822265625, 0.01180267333984375, -0.0594482421875, 0.0274810791015625, -0.06805419921875, 0.0533447265625, -0.02630615234375, 0.07818603515625, 0.0816650390625, -0.0239105224609375, 0.06378173828125, -0.00507354736328125, 0.037872314453125, -0.0350341796875, 0.0012969970703125, -0.0178375244140625, -0.00021064281463623047, -0.037445068359375, 0.02105712890625, 0.0104217529296875, 0.03985595703125, -0.03375244140625, -0.03875732421875, -0.0146484375, -0.00909423828125, -0.102783203125, -0.10882568359375, -0.0182342529296875, -0.079833984375, 0.0091552734375, 0.004863739013671875, -0.0389404296875, -0.0192108154296875, 0.054443359375, 0.00006771087646484375, 0.0177764892578125, -0.0011339187622070312, 0.00897216796875, 0.004848480224609375, -0.041015625, -0.01500701904296875, 0.019378662109375, 0.000843048095703125, 0.0094757080078125, -0.057403564453125, -0.01276397705078125, 0.007320404052734375, 0.0394287109375, -0.0129241943359375, 0.007781982421875, -0.03277587890625, 0.002040863037109375, -0.005893707275390625, -0.003116607666015625, 0.00916290283203125, -0.0100555419921875, 0.01491546630859375, -0.0165252685546875, -0.01715087890625, -0.0156707763671875, -0.01366424560546875, 0.01094818115234375, -0.057220458984375, 0.01519012451171875, 0.031402587890625, -0.01274871826171875, -0.0281524658203125, 0.02447509765625, 0.0045318603515625, -0.0212249755859375, -0.04449462890625, -0.00719451904296875, -0.024932861328125, -0.03277587890625, -0.00823974609375, 0.04132080078125, 0.00905609130859375, 0.059844970703125, -0.002979278564453125, -0.007083892822265625, -0.016632080078125, -0.0159912109375, -0.07342529296875, 0.0255889892578125, -0.0245819091796875, -0.021209716796875, 0.0027713775634765625, -0.006557464599609375, 0.018096923828125, -0.0188751220703125, 0.0299530029296875, 0.0209808349609375, 0.0007452964782714844, -0.035675048828125, 0.0186920166015625, -0.0230255126953125, 0.0017766952514648438, -0.0308837890625, -0.0014190673828125, -0.0310516357421875, -0.0008196830749511719, -0.039794921875, 0.0017423629760742188, -0.021575927734375, -0.05755615234375, -0.02978515625, 0.00991058349609375, 0.00389862060546875, -0.0141754150390625, -0.0321044921875, -0.01039886474609375, -0.03631591796875, 0.03216552734375, -0.017486572265625, -0.0085296630859375, 0.0191497802734375, 0.0003273487091064453, -0.0012865066528320312, 0.0252227783203125, 0.006443023681640625, -0.00567626953125, -0.006847381591796875, -0.029144287109375, -0.04736328125, -0.0016508102416992188, 0.008270263671875, 0.0276641845703125, 0.0127105712890625, -0.0225830078125, -0.01102447509765625, 0.0305328369140625, 0.0088958740234375, 0.0264739990234375, 0.0136871337890625, -0.01345062255859375, 0.0016069412231445312, 0.035858154296875, 0.042572021484375, -0.017120361328125, -0.0078887939453125, 0.003261566162109375, -0.053009033203125, 0.0278472900390625, -0.0019550323486328125, 0.0209197998046875, 0.0185699462890625, -0.0244598388671875, -0.0311126708984375, -0.0220947265625, -0.01071929931640625, 0.016265869140625, -0.0243377685546875, -0.0152740478515625, -0.02691650390625, -0.0268096923828125, 0.0181732177734375, -0.009735107421875, -0.00603485107421875, 0.0113525390625, 0.028076171875, 0.0240325927734375, -0.010650634765625, 0.004154205322265625, 0.0187835693359375, 0.04913330078125, 0.017913818359375, 0.01206207275390625, 0.026763916015625, -0.034332275390625, -0.0106353759765625, 0.0254669189453125, 0.01849365234375, -0.0158233642578125, 0.050018310546875, -0.024261474609375, -0.0362548828125, 0.041961669921875, -0.0208282470703125, -0.01268768310546875, 0.0130462646484375, -0.01910400390625, -0.00391387939453125, -0.006420135498046875, 0.0107574462890625, -0.01458740234375, 0.0199432373046875, -0.00965118408203125, -0.039154052734375, 0.01181793212890625, 0.07342529296875, -0.0031986236572265625, 0.016510009765625, -0.004817962646484375, 0.01035308837890625, 0.007511138916015625, -0.0269775390625, 0.039093017578125, 0.04937744140625, 0.034637451171875, 0.038970947265625, 0.001621246337890625, -0.0132293701171875, -0.049468994140625, -0.00946807861328125, 0.034210205078125, -0.01702880859375, -0.063720703125, -0.0129852294921875, -0.0060272216796875, 0.00994873046875, 0.025787353515625, -0.005950927734375, 0.04010009765625, 0.0248870849609375, 0.0166168212890625, 0.01080322265625, -0.0001201629638671875, -0.01445770263671875, -0.0252227783203125, -0.0276641845703125, -0.0274658203125, 0.002178192138671875, 0.056365966796875, 0.045806884765625, -0.045013427734375, 0.08062744140625, -0.018585205078125, 0.018035888671875, 0.036224365234375, -0.0288848876953125, 0.025634765625, 0.0162506103515625, 0.01462554931640625, -0.07818603515625, 0.01806640625, -0.0040435791015625, 0.005886077880859375, -0.0030651092529296875, -0.003780364990234375, 0.0073089599609375, -0.00905609130859375, 0.025970458984375, -0.01383209228515625, -0.0157012939453125, 0.003887176513671875, 0.04656982421875, 0.019775390625, -0.00482940673828125, 0.0003972053527832031, -0.008544921875, 0.030853271484375, 0.0005779266357421875, -0.015716552734375, -0.01026153564453125, 0.007335662841796875, -0.0306854248046875, -0.0190582275390625, 0.0033473968505859375, -0.003894805908203125, 0.021453857421875, -0.03515625, 0.0017194747924804688, -0.0233154296875, 0.0341796875, -0.04010009765625, -0.01461029052734375, 0.07177734375, -0.01511383056640625, 0.0226898193359375, -0.0160675048828125, -0.01029205322265625, -0.00618743896484375, -0.0008077621459960938, 0.0684814453125, 0.02337646484375, 0.00678253173828125, -0.0138702392578125, -0.04730224609375, -0.06134033203125, 0.003734588623046875, 0.0229949951171875, -0.03826904296875, -0.0020771026611328125, 0.0296783447265625, 0.0321044921875, 0.00695037841796875, -0.028106689453125, -0.03521728515625, 0.0221405029296875, 0.02154541015625, 0.08612060546875, 0.04119873046875, 0.043792724609375, -0.0712890625, 0.08868408203125, 0.0018510818481445312, -0.0240478515625, -0.07135009765625, -0.0157623291015625, -0.01508331298828125, -0.0086517333984375, -0.01120758056640625, 0.0210113525390625, -0.006748199462890625, 0.01136016845703125, 0.035675048828125, 0.0054168701171875, -0.024505615234375, 0.0095367431640625, 0.01739501953125, -0.024505615234375, 0.0198516845703125, 0.032867431640625, 0.00963592529296875, -0.0205230712890625, -0.00737762451171875, -0.03314208984375, -0.0261077880859375, -0.0025787353515625, -0.0080108642578125, 0.03192138671875, -0.04541015625, -0.006183624267578125, -0.031402587890625, 0.05694580078125, 0.12841796875, 0.00704193115234375, 0.07080078125, 0.0562744140625, 0.00476837158203125, 0.02813720703125, 0.00237274169921875, 0.029388427734375, -0.0192108154296875, 0.0177459716796875, -0.00922393798828125, -0.01125335693359375, 0.00836181640625, -0.0291290283203125, 0.0190277099609375, 0.0135345458984375, 0.034912109375, -0.03961181640625, 0.0097503662109375, 0.0008254051208496094, -0.00146484375, 0.055755615234375, -0.021148681640625, 0.0165252685546875, -0.0042266845703125, 0.040771484375, -0.01490020751953125, -0.0155792236328125, 0.020660400390625, -0.026641845703125, 0.007724761962890625, 0.005207061767578125, 0.06829833984375, 0.019866943359375, -0.061798095703125, -0.00226593017578125, 0.02581787109375, -0.00853729248046875, -0.04498291015625, -0.0020046234130859375, -0.0033359527587890625, -0.033935546875, -0.06097412109375, 0.01111602783203125, -0.0091094970703125, 0.003753662109375, 0.01126861572265625, -0.003887176513671875, 0.0276641845703125, 0.0253143310546875, -0.0009646415710449219, -0.007411956787109375, -0.0012359619140625, -0.00405120849609375, -0.004566192626953125, -0.01247406005859375, 0.0201568603515625, 0.0154571533203125, -0.03057861328125, 0.006175994873046875, -0.023712158203125, -0.0126800537109375, -0.0013866424560546875, 0.0269012451171875, 0.09320068359375, -0.03497314453125, -0.034881591796875, 0.0307159423828125, -0.0282135009765625, -0.01515960693359375, -0.014801025390625, -0.0174407958984375, -0.033447265625, 0.003467559814453125, -0.02423095703125, -0.0264434814453125, 0.00988006591796875, -0.02386474609375, -0.041168212890625, 0.0946044921875, -0.001918792724609375, -0.02386474609375, -0.0010786056518554688, 0.047882080078125, -0.048675537109375, 0.0178375244140625, -0.023681640625, 0.10357666015625, 0.04937744140625, 0.03961181640625, -0.0751953125, -0.0286712646484375, 0.0186004638671875, 0.0592041015625, 0.0576171875, 0.003009796142578125, -0.01544952392578125, -0.01561737060546875, 0.0192413330078125, -0.005878448486328125, -0.03753662109375, 0.037994384765625, -0.0005726814270019531, 0.018768310546875, 0.00775146484375, -0.0523681640625, 0.0211639404296875, -0.02716064453125, -0.0009937286376953125, 0.031402587890625, 0.00920867919921875, 0.018890380859375, -0.006023406982421875, 0.00954437255859375, 0.0322265625, -0.01363372802734375, -0.00807952880859375, -0.0200958251953125, 0.043731689453125, 0.0306243896484375, 0.062469482421875, -0.0167236328125, -0.03765869140625, -0.01265716552734375, 0.055877685546875, 0.0174713134765625, -0.04205322265625, 0.0176239013671875, 0.01898193359375, -0.0289306640625, -0.0438232421875, -0.0228118896484375, 0.0068206787109375, -0.020904541015625, 0.0499267578125, 0.041595458984375, 0.036712646484375, -0.028411865234375, -0.061614990234375, 0.02020263671875, 0.06451416015625, -0.0142059326171875, -0.064697265625, 0.0019197463989257812, 0.002323150634765625, 0.0301361083984375, 0.04229736328125, 0.0452880859375, -0.038726806640625, 0.01264190673828125, -0.01023101806640625, -0.002964019775390625, 0.006183624267578125, -0.0002970695495605469, -0.001445770263671875, 0.00933074951171875, -0.005908966064453125, 0.00860595703125, -0.0182952880859375, -0.007518768310546875, 0.002460479736328125, 0.0011720657348632812, 0.0294952392578125, 0.004543304443359375, -0.001556396484375, 0.0084075927734375, -0.037109375, 0.009765625, -0.00676727294921875, 0.051513671875, -0.0428466796875, -0.002208709716796875, -0.004306793212890625, 0.04736328125, -0.014251708984375, 0.033172607421875, 0.071533203125, 0.04217529296875, -0.0753173828125, -0.0235137939453125, 0.0205078125, -0.04498291015625, -0.0247802734375, -0.04034423828125, -0.01200103759765625, 0.0088348388671875, -0.008453369140625, 0.033843994140625, 0.014678955078125, -0.01450347900390625, -0.0144195556640625, 0.01015472412109375, 0.0028839111328125, -0.0286712646484375, 0.02703857421875, -0.00403594970703125, 0.03338623046875, 0.00980377197265625, -0.05487060546875, 0.00731658935546875, -0.01092529296875, -0.073486328125, -0.0027408599853515625, 0.0294342041015625, -0.0299530029296875, 0.01044464111328125, -0.004100799560546875, 0.0303497314453125, -0.026031494140625, -0.0279388427734375, 0.0176239013671875, -0.002559661865234375, 0.018463134765625, 0.004596710205078125, -0.032867431640625, -0.03704833984375, -0.036224365234375, 0.061737060546875, -0.008270263671875, 0.06982421875, -0.0248260498046875, 0.0282135009765625, -0.051605224609375, -0.0214080810546875, -0.025360107421875, -0.031585693359375, 0.008056640625, 0.0092620849609375, -0.029754638671875, -0.00003331899642944336, -0.01361846923828125, 0.042938232421875, 0.01806640625, -0.0130157470703125, 0.044464111328125, -0.030548095703125, -0.006053924560546875, -0.03900146484375, 0.004581451416015625, -0.034515380859375, -0.050048828125, -0.034088134765625, 0.015045166015625, -0.01128387451171875, -0.00457000732421875, -0.021240234375, 0.04339599609375, 0.027435302734375, 0.0071868896484375, 0.007160186767578125, -0.00914764404296875, 0.0298309326171875, 0.036956787109375, -0.0183563232421875, 0.01983642578125, 0.037322998046875, -0.00794219970703125, 0.03472900390625, 0.00843048095703125, 0.04376220703125, 0.031890869140625, 0.0172271728515625, -0.0217437744140625, 0.040130615234375, 0.03155517578125, -0.0113372802734375, 0.0305633544921875, 0.003047943115234375, -0.0285491943359375, -0.00007832050323486328, 0.0330810546875, 0.0011501312255859375, -0.0008373260498046875, -0.0289306640625, 0.007328033447265625, -0.02081298828125, -0.048095703125, -0.049163818359375, 0.0028171539306640625, 0.049652099609375, -0.00884246826171875, -0.05816650390625, 0.0145416259765625, -0.0234375, 0.066162109375, -0.001491546630859375, 0.020477294921875, -0.0028820037841796875, 0.0243072509765625, -0.03985595703125, -0.0000641942024230957, -0.0150146484375, -0.0012273788452148438, -0.0079498291015625, 0.0264739990234375, 0.04833984375, -0.0343017578125, -0.0386962890625, -0.0025787353515625, 0.0286102294921875, 0.042999267578125, -0.0025081634521484375, -0.0181427001953125, 0.007244110107421875, 0.0009465217590332031, -0.01242828369140625, -0.06298828125, 0.010498046875, -0.0601806640625, -0.01409149169921875, 0.03399658203125, -0.022796630859375, 0.014495849609375, -0.037017822265625, -0.079833984375, -0.0083160400390625, 0.0212249755859375, -0.047943115234375, -0.051025390625, 0.0178680419921875, 0.0246429443359375, -0.006320953369140625, -0.00783538818359375, -0.0303497314453125, -0.054443359375, 0.0020580291748046875, -0.01094818115234375, 0.041961669921875, 0.0136566162109375, 0.025115966796875, 0.01641845703125, -0.0007166862487792969, -0.007259368896484375, -0.04132080078125, 0.0206756591796875, -0.01403045654296875, 0.0322265625, 0.01255035400390625, -0.049346923828125, -0.0036716461181640625, -0.005748748779296875, 0.006259918212890625, -0.00811004638671875, 0.002895355224609375, -0.015716552734375, 0.0008597373962402344, 0.0753173828125, 0.044586181640625, 0.0173797607421875, -0.044647216796875, 0.0073394775390625, -0.00778961181640625, -0.0377197265625, 0.0014638900756835938, 0.03363037109375, -0.06427001953125, -0.004283905029296875, 0.0150146484375, 0.0087432861328125, -0.00424957275390625, -0.024261474609375, -0.0063934326171875, -0.01116943359375, 0.038482666015625, 0.0283050537109375, 0.011688232421875, -0.0166168212890625, 0.0797119140625, -0.04852294921875, 0.0177764892578125, 0.0211639404296875, 0.01482391357421875, 0.044586181640625, 0.022613525390625, 0.0248260498046875, 0.00844573974609375, -0.0692138671875, 0.0155029296875, 0.0130767822265625, 0.00623321533203125, -0.05548095703125, -0.02679443359375, 0.022491455078125, -0.002193450927734375, -0.0244598388671875, -0.0230255126953125, 0.0091705322265625, 0.032684326171875, -0.041961669921875, 0.114013671875, -0.019012451171875, -0.046112060546875, -0.037628173828125, 0.020233154296875, -0.0255584716796875, -0.01293182373046875, -0.006103515625, -0.0242462158203125, 0.015625, 0.017547607421875, 0.045562744140625, -0.0175933837890625, 0.016326904296875, 0.009033203125, 0.01546478271484375, 0.00662994384765625 ]
cfd15c5c0df6a8e0c5391139c05ff214551b74d3
Wordpress Stackexchange Q: Check if user is logged in using JQuery I want to execute custom jquery code which shows login dialog to user if he clicks a button and he is not logged in. How could I do that? A: Please note that none of the above examples are reliable in case you use a page cacheing plugin, then the code in body tag will be static. Also there is a simple way to do this (with no extra query to ajax which is not optimal) If you want to test user logged in state with javascript, you can use this code to set cookie when user logged in and delete cookie when user logged out. Add this eg. to your theme functions.php function login_function() { setcookie('wp_user_logged_in', 1, time() + 31556926, '/'); $_COOKIE['wp_user_logged_in'] = 1; } add_action('wp_login', 'login_function'); function logout_function() { unset($_COOKIE['wp_user_logged_in']); setcookie('wp_user_logged_in', null, -1, '/'); } add_action('wp_logout', 'logout_function'); Then its a simple test of cookie in javascript. if (document.cookie.indexOf('wp_user_logged_in') !== -1) { //do something when user logged in } else { //do something when user logged out }
Q: Check if user is logged in using JQuery I want to execute custom jquery code which shows login dialog to user if he clicks a button and he is not logged in. How could I do that? A: Please note that none of the above examples are reliable in case you use a page cacheing plugin, then the code in body tag will be static. Also there is a simple way to do this (with no extra query to ajax which is not optimal) If you want to test user logged in state with javascript, you can use this code to set cookie when user logged in and delete cookie when user logged out. Add this eg. to your theme functions.php function login_function() { setcookie('wp_user_logged_in', 1, time() + 31556926, '/'); $_COOKIE['wp_user_logged_in'] = 1; } add_action('wp_login', 'login_function'); function logout_function() { unset($_COOKIE['wp_user_logged_in']); setcookie('wp_user_logged_in', null, -1, '/'); } add_action('wp_logout', 'logout_function'); Then its a simple test of cookie in javascript. if (document.cookie.indexOf('wp_user_logged_in') !== -1) { //do something when user logged in } else { //do something when user logged out } A: Another example, in case you want to use it for AJAX calls. // Simplified... please note, that all names/vars/etc. in my class got unique names. // ...the same goes for the script handler. class wpse69814_example { public $response; public function __construct() { add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'localize' ), 20 ); } public function enqueue() { wp_enqueue_script( 'wpse69814_handler', plugins_url( 'url/to/file.js', __FILE__ ), array( 'jquery' ), filemtime( plugins_dir_path( __FILE__ ).'/path/to/file.js' ), true ); } public function localize() { wp_localize_script( 'wpse69814_handler, 'wpse69814_object', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'ajax_nonce' => wp_create_nonce( 'wpse69814_nonce' ), 'action' => 'wpse69814-handler-action', 'data' => array( 'is_user_logged_in' => is_user_logged_in(), ) ) } } A: Check the class attribute for body: If the theme is using body_class() the body has a class named logged-in for users that are logged in. Be aware the function can be used on the element html too. Example with jQuery: if(jQuery('body').hasClass('logged-in')){ // Do something } Example with pure JavaScript: if (document.body.classList.contains('logged-in')) { // do something } You can also just use is_user_logged_in() as a condition to enqueue or print the script. A: In case you want to know if the user is logged in at the current moment, try this. The other answers check if the user is logged in or not when the page loaded, not the time when you're running the javascript. The user could have logged in in a separate tab, for instance. Put this in your javascript var data = { action: 'is_user_logged_in' }; jQuery.post(ajaxurl, data, function(response) { if(response == 'yes') { // user is logged in, do your stuff here } else { // user is not logged in, show login form here } }); Put this in your functions.php function ajax_check_user_logged_in() { echo is_user_logged_in()?'yes':'no'; die(); } add_action('wp_ajax_is_user_logged_in', 'ajax_check_user_logged_in'); add_action('wp_ajax_nopriv_is_user_logged_in', 'ajax_check_user_logged_in'); A: Please add body_class() to your html body <body <?php body_class(); ?>> //your html code </body> This will add logged-in for logged user then you can use following jquery code to execute your custom juqery code only for logged user. if ($('body').hasClass('logged-in')) { //execute your jquery code. } A: Thanks to this post and another post, I found a solution to my issue. I'm just posting in case anyone might find it useful. Works on current WordPress sites This code checks if user is logged or not using jquery. If the user is NOT logged in, it prevents the user from right clicking content and copying images and text. $(document).ready(function(){ // if user is not logged in... if (!document.querySelector('body.logged-in')){ //lock all content disableSelection(document.body); // disable image click $('img').bind('contextmenu', function(e){return false;}); console.log('hello'); } // function to lock all content function disableSelection(target){ $(function() { $(this).bind("contextmenu", function(e) { e.preventDefault(); }); }); if (typeof target.onselectstart!="undefined") //For IE target.onselectstart=function(){return false} else if (typeof target.style.MozUserSelect!="undefined") //For Firefox target.style.MozUserSelect="none" else //All other route (For Opera) target.onmousedown=function(){return false} target.style.cursor = "default"; } }) A: Here is the WordPress script that will add class into the Body tag if the user is login or not login https://gist.github.com/raftaar1191/55fe297db0724e62883846b3ed31b543 A: I appreciated all the answers but localize script or checking the css class would be, in my opinion, not the best practice as the css class checking is not 100% reliable and the localize script function is, as the name suggests, localising. After Wordpress 4.5 the best solution would be adding an inline script as follows: <?php function detect_login() { $isLoggedIn = is_user_logged_in(); wp_register_script( 'detect_login', '' ); wp_enqueue_script( 'detect_login'); wp_add_inline_script( 'detect_login', "var isLoggedIn = $isLoggedIn" ); } add_action( 'wp_enqueue_scripts', 'detect_login' ); And then obviously check the global scope which is now sadly polluted by our global var isLoggedIn as follows: window.isLoggedIn
wordpress
{ "language": "en", "length": 776, "provenance": "stackexchange_00019.jsonl.gz:424981", "question_score": "23", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69814" }
[ 0.0657958984375, 0.04901123046875, -0.01751708984375, -0.03375244140625, 0.057098388671875, -0.0389404296875, 0.0304107666015625, -0.04425048828125, -0.031951904296875, 0.0174407958984375, -0.024871826171875, 0.0306854248046875, -0.036895751953125, -0.0198211669921875, 0.0178985595703125, -0.04595947265625, 0.03765869140625, -0.0243988037109375, 0.01485443115234375, -0.029388427734375, 0.0207977294921875, -0.006771087646484375, 0.0136260986328125, 0.0430908203125, 0.031036376953125, -0.03692626953125, 0.113525390625, -0.015289306640625, 0.039398193359375, -0.002155303955078125, 0.03826904296875, -0.041015625, -0.007289886474609375, 0.0682373046875, -0.037139892578125, 0.00946044921875, -0.035003662109375, 0.06268310546875, 0.035247802734375, -0.006984710693359375, 0.03631591796875, -0.02056884765625, -0.02569580078125, 0.016387939453125, -0.0148773193359375, -0.035064697265625, 0.03143310546875, -0.03411865234375, 0.054412841796875, 0.0207977294921875, 0.02520751953125, -0.0013103485107421875, 0.023468017578125, -0.0238800048828125, -0.0207366943359375, 0.0301666259765625, -0.003910064697265625, -0.0012750625610351562, 0.03924560546875, 0.028717041015625, -0.0175018310546875, -0.016510009765625, -0.00403594970703125, -0.048980712890625, -0.016632080078125, -0.00677490234375, -0.046539306640625, 0.0263671875, -0.028839111328125, -0.0318603515625, 0.0027523040771484375, -0.016998291015625, -0.01453399658203125, 0.041534423828125, -0.028228759765625, -0.04345703125, 0.0229949951171875, -0.0151519775390625, 0.0069580078125, 0.045684814453125, -0.02001953125, 0.0145263671875, -0.059326171875, 0.00434112548828125, -0.0004584789276123047, 0.022796630859375, -0.0208892822265625, -0.0257110595703125, -0.0180206298828125, -0.022613525390625, -0.01499176025390625, 0.0274658203125, -0.038665771484375, -0.0169219970703125, -0.031982421875, -0.01419830322265625, 0.0115966796875, 0.056243896484375, 0.0003294944763183594, -0.0166473388671875, -0.006103515625, -0.01169586181640625, -0.023651123046875, -0.030731201171875, 0.0020847320556640625, 0.07574462890625, 0.055633544921875, 0.0105438232421875, -0.01568603515625, -0.0271759033203125, -0.0010967254638671875, -0.021881103515625, -0.0141143798828125, -0.039642333984375, 0.014434814453125, 0.0308380126953125, -0.040435791015625, 0.02783203125, -0.01102447509765625, 0.01245880126953125, -0.034027099609375, -0.0225067138671875, -0.00078582763671875, 0.00750732421875, 0.012115478515625, -0.005619049072265625, 0.005260467529296875, 0.002643585205078125, -0.019378662109375, 0.0372314453125, -0.03704833984375, 0.01336669921875, 0.0435791015625, 0.00933837890625, -0.005462646484375, -0.0298004150390625, 0.06695556640625, -0.0007004737854003906, 0.007480621337890625, 0.0135955810546875, 0.00095367431640625, -0.037628173828125, -0.0166473388671875, -0.00714111328125, 0.0066986083984375, 0.00777435302734375, 0.0318603515625, 0.0201568603515625, -0.018951416015625, -0.059295654296875, 0.0232391357421875, 0.0165252685546875, -0.00696563720703125, 0.0222625732421875, 0.0259552001953125, 0.001018524169921875, 0.01168060302734375, -0.0180816650390625, 0.0178070068359375, -0.0025691986083984375, 0.0214385986328125, 0.00853729248046875, 0.005809783935546875, -0.0035381317138671875, -0.0145111083984375, -0.0212249755859375, -0.04058837890625, -0.0037250518798828125, 0.035858154296875, 0.04437255859375, 0.01456451416015625, -0.044219970703125, 0.05133056640625, 0.03082275390625, -0.01390838623046875, 0.01512908935546875, -0.01320648193359375, 0.064208984375, 0.0246429443359375, -0.0072174072265625, 0.00951385498046875, -0.02874755859375, 0.097412109375, -0.00782012939453125, -0.00634002685546875, 0.027191162109375, 0.0189056396484375, 0.04156494140625, -0.019805908203125, 0.0248260498046875, 0.00079345703125, 0.048248291015625, -0.030792236328125, 0.024261474609375, 0.0132293701171875, -0.033233642578125, -0.0287017822265625, -0.0266265869140625, -0.015625, 0.0202178955078125, 0.059783935546875, 0.00803375244140625, -0.0214996337890625, -0.039337158203125, -0.10009765625, -0.007282257080078125, -0.0263671875, 0.04217529296875, 0.010345458984375, 0.03265380859375, 0.0023174285888671875, 0.0357666015625, -0.0162506103515625, -0.0369873046875, -0.0308685302734375, -0.006946563720703125, -0.02197265625, 0.049957275390625, -0.0101776123046875, 0.057708740234375, -0.0158843994140625, -0.0196075439453125, -0.008209228515625, -0.023895263671875, 0.0305023193359375, -0.03863525390625, -0.006072998046875, -0.03375244140625, 0.00934600830078125, -0.0053253173828125, -0.01111602783203125, 0.02496337890625, 0.041259765625, 0.0228424072265625, -0.036468505859375, -0.00553131103515625, -0.015655517578125, -0.042022705078125, -0.00954437255859375, 0.055755615234375, 0.03839111328125, 0.03668212890625, -0.002292633056640625, 0.004581451416015625, 0.038970947265625, -0.01690673828125, 0.018890380859375, -0.007190704345703125, 0.00972747802734375, 0.056915283203125, -0.041168212890625, 0.004268646240234375, 0.02459716796875, -0.0167388916015625, -0.004611968994140625, 0.041412353515625, -0.0116119384765625, 0.0287933349609375, -0.0167999267578125, 0.01015472412109375, -0.0223388671875, -0.0167388916015625, 0.021392822265625, -0.02532958984375, 0.0230255126953125, -0.049530029296875, -0.01020050048828125, -0.028839111328125, -0.01224517822265625, -0.020751953125, 0.02294921875, -0.07000732421875, -0.00029468536376953125, 0.0272064208984375, 0.0653076171875, 0.0251312255859375, -0.06866455078125, -0.01456451416015625, 0.05438232421875, 0.03350830078125, -0.01617431640625, 0.0125732421875, -0.01531219482421875, -0.0131378173828125, 0.0237579345703125, -0.00007349252700805664, -0.003910064697265625, -0.0131378173828125, 0.05194091796875, 0.00783538818359375, 0.050994873046875, -0.01291656494140625, -0.0277252197265625, 0.0552978515625, -0.0098724365234375, -0.05279541015625, 0.001621246337890625, -0.040771484375, 0.036834716796875, -0.03955078125, 0.03485107421875, 0.054229736328125, 0.006519317626953125, 0.01007843017578125, -0.006805419921875, -0.0015287399291992188, -0.0180816650390625, 0.0151519775390625, -0.000713348388671875, -0.03082275390625, 0.004688262939453125, 0.070068359375, 0.031524658203125, 0.0137939453125, 0.02197265625, -0.01849365234375, 0.004543304443359375, 0.006397247314453125, -0.06719970703125, -0.11810302734375, -0.01535797119140625, -0.09442138671875, 0.042877197265625, -0.021453857421875, -0.034515380859375, -0.00801849365234375, 0.028076171875, 0.0188446044921875, -0.048614501953125, -0.0189361572265625, 0.00859832763671875, -0.041656494140625, -0.01073455810546875, 0.0291900634765625, 0.00992584228515625, -0.00009483098983764648, -0.01131439208984375, 0.0291595458984375, -0.0038967132568359375, -0.03900146484375, -0.02642822265625, 0.060302734375, -0.006130218505859375, -0.031494140625, -0.0199432373046875, 0.00958251953125, 0.034820556640625, -0.00167083740234375, -0.0167388916015625, -0.006649017333984375, 0.027679443359375, -0.03033447265625, 0.00376129150390625, -0.048614501953125, 0.007572174072265625, 0.0009069442749023438, -0.0209503173828125, -0.0135040283203125, 0.0281829833984375, -0.05145263671875, 0.02947998046875, 0.00591278076171875, -0.0091705322265625, 0.01143646240234375, 0.0208740234375, -0.04254150390625, 0.00852203369140625, -0.0286865234375, 0.03497314453125, 0.0298919677734375, -0.024078369140625, 0.0240020751953125, 0.020782470703125, -0.00888824462890625, 0.0019388198852539062, -0.0234832763671875, 0.04107666015625, -0.0217437744140625, -0.037353515625, -0.00873565673828125, 0.01015472412109375, 0.002536773681640625, -0.03607177734375, -0.06048583984375, 0.0038776397705078125, 0.01983642578125, -0.00469207763671875, 0.0178375244140625, -0.0120086669921875, -0.01303863525390625, -0.0103302001953125, 0.041015625, -0.0006198883056640625, -0.016815185546875, 0.006427764892578125, -0.007534027099609375, -0.0256805419921875, 0.0124053955078125, -0.0667724609375, -0.001453399658203125, -0.0823974609375, 0.049346923828125, 0.00868988037109375, -0.0009145736694335938, -0.03057861328125, 0.0033321380615234375, -0.05340576171875, -0.041778564453125, 0.0214691162109375, 0.01153564453125, 0.031646728515625, -0.0063934326171875, 0.00038552284240722656, -0.002044677734375, 0.011505126953125, -0.029205322265625, -0.0273284912109375, 0.0013637542724609375, -0.0421142578125, 0.032257080078125, 0.045166015625, -0.043060302734375, -0.0022716522216796875, 0.020782470703125, 0.0019741058349609375, 0.0029239654541015625, 0.0220489501953125, 0.01390838623046875, 0.035247802734375, -0.01216888427734375, -0.0128936767578125, -0.0240478515625, 0.027740478515625, 0.0024471282958984375, -0.0382080078125, -0.0066680908203125, -0.053375244140625, -0.022613525390625, -0.0039520263671875, -0.03558349609375, -0.03912353515625, -0.0304412841796875, -0.0124359130859375, -0.00588226318359375, -0.0034313201904296875, -0.0098876953125, -0.0232696533203125, -0.0243682861328125, 0.029296875, 0.01104736328125, -0.037567138671875, -0.0141143798828125, 0.045684814453125, 0.03131103515625, -0.0262908935546875, 0.041961669921875, -0.0016193389892578125, 0.0218048095703125, -0.0145263671875, 0.041717529296875, -0.0188751220703125, -0.037933349609375, 0.09954833984375, -0.0135040283203125, 0.01019287109375, -0.03570556640625, 0.08880615234375, -0.0164031982421875, -0.012451171875, 0.0265350341796875, -0.0291595458984375, -0.0171661376953125, 0.006317138671875, 0.01416015625, 0.00865936279296875, 0.06817626953125, 0.005962371826171875, -0.040069580078125, -0.01226043701171875, 0.01480865478515625, -0.036468505859375, -0.0029964447021484375, -0.0251922607421875, 0.052337646484375, 0.03521728515625, -0.00827789306640625, 0.0462646484375, 0.036102294921875, -0.0014591217041015625, 0.01308441162109375, 0.00677490234375, 0.004177093505859375, 0.0391845703125, 0.01038360595703125, 0.0002703666687011719, -0.009552001953125, -0.01800537109375, 0.0806884765625, 0.02783203125, -0.045867919921875, 0.0260772705078125, -0.018585205078125, 0.001010894775390625, 0.00247955322265625, -0.01328277587890625, 0.0298309326171875, -0.0256195068359375, -0.0213623046875, -0.005542755126953125, -0.028289794921875, -0.0360107421875, -0.03759765625, -0.004276275634765625, -0.006572723388671875, -0.003574371337890625, 0.00447845458984375, 0.048004150390625, 0.00505828857421875, 0.0240478515625, -0.0183258056640625, 0.055084228515625, 0.02618408203125, 0.06817626953125, 0.022796630859375, -0.029571533203125, -0.03564453125, 0.059112548828125, -0.060150146484375, -0.00965118408203125, -0.0582275390625, 0.037567138671875, 0.007022857666015625, -0.032806396484375, 0.033447265625, 0.00426483154296875, 0.0322265625, -0.00421142578125, 0.02838134765625, 0.00003224611282348633, -0.031707763671875, -0.035858154296875, -0.0080413818359375, 0.0222930908203125, -0.00850677490234375, 0.002605438232421875, -0.013885498046875, -0.0160064697265625, -0.0109710693359375, 0.0257720947265625, -0.02447509765625, -0.0101165771484375, -0.0256500244140625, -0.0682373046875, -0.02203369140625, 0.0267181396484375, -0.03289794921875, -0.017822265625, -0.0147247314453125, -0.03521728515625, 0.01558685302734375, -0.0291748046875, -0.033111572265625, -0.0100555419921875, 0.01983642578125, 0.0154571533203125, 0.009063720703125, 0.043975830078125, -0.004486083984375, -0.05450439453125, 0.01097869873046875, -0.034423828125, 0.0008053779602050781, -0.0290985107421875, -0.042236328125, -0.028533935546875, -0.00652313232421875, 0.01824951171875, 0.0263671875, 0.000431060791015625, -0.0021915435791015625, -0.01346588134765625, 0.0119476318359375, 0.029541015625, 0.050445556640625, -0.00897979736328125, 0.059417724609375, 0.002696990966796875, 0.011688232421875, 0.01898193359375, 0.037200927734375, -0.016357421875, -0.020111083984375, 0.022979736328125, 0.0189361572265625, -0.01605224609375, -0.06378173828125, 0.033782958984375, -0.0194549560546875, 0.05859375, -0.0207977294921875, -0.0092315673828125, 0.0084686279296875, 0.0007314682006835938, -0.0218505859375, 0.0093231201171875, 0.0677490234375, 0.0221405029296875, -0.00807952880859375, 0.0021495819091796875, 0.01226043701171875, 0.006000518798828125, -0.020263671875, 0.0209503173828125, 0.003421783447265625, 0.019439697265625, -0.02508544921875, -0.043060302734375, 0.0194091796875, 0.05340576171875, 0.0015659332275390625, 0.042816162109375, 0.007518768310546875, 0.022552490234375, 0.038848876953125, -0.0220947265625, -0.009765625, -0.0164031982421875, 0.03509521484375, -0.0160064697265625, -0.0272979736328125, 0.0240936279296875, -0.0310211181640625, -0.00024068355560302734, 0.07794189453125, 0.0736083984375, -0.1202392578125, 0.0263214111328125, 0.01548004150390625, 0.0218048095703125, 0.04541015625, -0.0222625732421875, 0.033111572265625, 0.01558685302734375, 0.024322509765625, 0.01922607421875, -0.023590087890625, 0.00251007080078125, -0.01102447509765625, -0.023162841796875, -0.0266876220703125, 0.01157379150390625, 0.0186920166015625, -0.066650390625, 0.0521240234375, 0.046661376953125, -0.002010345458984375, -0.00769805908203125, -0.004856109619140625, 0.0269775390625, -0.020782470703125, -0.068359375, 0.01320648193359375, -0.03216552734375, -0.029541015625, 0.01806640625, -0.0231475830078125, 0.06011962890625, 0.048614501953125, -0.01025390625, 0.00846099853515625, 0.0007047653198242188, 0.014434814453125, -0.0037441253662109375, -0.0028514862060546875, 0.0275726318359375, -0.011016845703125, -0.069580078125, 0.01546478271484375, -0.049163818359375, -0.0178070068359375, -0.027008056640625, -0.05780029296875, 0.06549072265625, -0.0311431884765625, -0.003292083740234375, 0.0199432373046875, 0.044647216796875, -0.0207672119140625, -0.005687713623046875, 0.032806396484375, -0.07928466796875, -0.031585693359375, 0.00942230224609375, -0.038177490234375, -0.021148681640625, -0.0026149749755859375, -0.0587158203125, 0.09393310546875, -0.007289886474609375, 0.01206207275390625, -0.03759765625, 0.05352783203125, 0.0127410888671875, 0.04644775390625, -0.05035400390625, 0.048828125, -0.0137786865234375, 0.037139892578125, -0.0302886962890625, 0.01477813720703125, 0.01114654541015625, -0.02752685546875, 0.0160064697265625, 0.01143646240234375, -0.0137481689453125, -0.04339599609375, -0.050994873046875, 0.0294952392578125, -0.0201416015625, 0.011871337890625, -0.01474761962890625, 0.032379150390625, 0.009857177734375, -0.04339599609375, 0.005687713623046875, 0.01197052001953125, -0.04852294921875, 0.0171356201171875, 0.01390838623046875, 0.0034961700439453125, -0.000453948974609375, 0.049957275390625, -0.073486328125, 0.0222320556640625, 0.034637451171875, 0.055145263671875, -0.018310546875, 0.06719970703125, 0.0093536376953125, -0.01122283935546875, -0.0177459716796875, -0.038299560546875, 0.0263214111328125, -0.0281219482421875, 0.00518035888671875, 0.013702392578125, 0.022735595703125, -0.06085205078125, -0.0017004013061523438, -0.0018186569213867188, 0.0271148681640625, -0.041534423828125, 0.03564453125, 0.03546142578125, 0.025787353515625, -0.01189422607421875, 0.0186309814453125, 0.04180908203125, 0.051727294921875, -0.034576416015625, -0.02398681640625, -0.003429412841796875, 0.0016946792602539062, 0.0462646484375, 0.004543304443359375, 0.075927734375, 0.005565643310546875, -0.006847381591796875, -0.01605224609375, 0.016510009765625, 0.035858154296875, -0.01064300537109375, 0.01708984375, 0.054931640625, -0.05853271484375, 0.029815673828125, -0.003971099853515625, -0.00281524658203125, 0.00421142578125, -0.0110015869140625, 0.00919342041015625, -0.01311492919921875, 0.0254669189453125, 0.007312774658203125, 0.0110321044921875, -0.01053619384765625, 0.00531005859375, -0.016082763671875, 0.01102447509765625, -0.02032470703125, 0.02593994140625, 0.0182952880859375, 0.007801055908203125, -0.01383209228515625, -0.0020389556884765625, -0.0011730194091796875, -0.01087188720703125, -0.0036182403564453125, 0.047027587890625, -0.009918212890625, 0.0028533935546875, 0.01148223876953125, 0.0260772705078125, 0.036285400390625, 0.01251983642578125, -0.03448486328125, 0.08258056640625, 0.016021728515625, -0.044830322265625, 0.03271484375, -0.006374359130859375, -0.01132965087890625, 0.048797607421875, 0.016448974609375, 0.07989501953125, -0.0012979507446289062, -0.01505279541015625, -0.004734039306640625, -0.00490570068359375, -0.039642333984375, 0.019134521484375, 0.034027099609375, -0.00510406494140625, 0.0103759765625, 0.043121337890625, -0.01074981689453125, 0.01175689697265625, -0.0016794204711914062, 0.019317626953125, -0.0249481201171875, 0.0190277099609375, 0.00626373291015625, -0.0203399658203125, 0.001953125, -0.00461578369140625, -0.00905609130859375, 0.014617919921875, -0.00754547119140625, 0.0277862548828125, 0.018402099609375, 0.022918701171875, 0.01277923583984375, 0.00229644775390625, 0.0025482177734375, 0.01482391357421875, -0.030303955078125, -0.0005974769592285156, -0.0073089599609375, -0.039825439453125, 0.0843505859375, -0.0259857177734375, 0.043853759765625, 0.0682373046875, -0.0362548828125, 0.0008444786071777344, 0.0216217041015625, -0.0186614990234375, -0.038177490234375, -0.05078125, -0.02935791015625, 0.0137939453125, -0.00010907649993896484, -0.00217437744140625, -0.0222625732421875, 0.031951904296875, -0.053985595703125, -0.04180908203125, -0.0233001708984375, -0.043243408203125, -0.047210693359375, 0.0204620361328125, -0.00673675537109375, 0.0267333984375, -0.036346435546875, -0.0166168212890625, -0.001064300537109375, 0.0098114013671875, -0.06298828125, 0.001567840576171875, 0.01788330078125, 0.0328369140625, 0.03948974609375, 0.050872802734375, -0.02764892578125, 0.004375457763671875, 0.029022216796875, -0.005626678466796875, 0.01526641845703125, -0.04522705078125, -0.05511474609375, -0.0377197265625, 0.03564453125, 0.034942626953125, 0.0092315673828125, -0.026031494140625, -0.054931640625, 0.017333984375, 0.0006470680236816406, -0.0233154296875, -0.01934814453125, 0.00860595703125, -0.02880859375, 0.04571533203125, -0.04302978515625, 0.0172882080078125, -0.01146697998046875, 0.0086669921875, -0.022216796875, 0.0175933837890625, -0.0267333984375, 0.0011434555053710938, 0.005245208740234375, 0.0021915435791015625, 0.04132080078125, -0.00662994384765625, -0.022796630859375, -0.01263427734375, -0.01348876953125, 0.02490234375, -0.013427734375, 0.00308990478515625, 0.029876708984375, 0.007476806640625, -0.022247314453125, -0.0254669189453125, -0.01207733154296875, 0.0242156982421875, 0.00246429443359375, -0.0177764892578125, -0.002239227294921875, 0.01605224609375, -0.040771484375, -0.09130859375, 0.0469970703125, -0.0139007568359375, -0.033721923828125, -0.0567626953125, 0.0440673828125, 0.00962066650390625, -0.052276611328125, -0.036773681640625, -0.0112152099609375, -0.0037822723388671875, 0.018890380859375, 0.02130126953125, -0.029815673828125, 0.0340576171875, 0.050872802734375, -0.06597900390625, 0.025238037109375, -0.00875091552734375, -0.01849365234375, -0.00855255126953125, 0.0211181640625, 0.0047454833984375, 0.033416748046875, -0.0181427001953125, 0.0242156982421875, -0.01513671875, -0.00675201416015625, -0.005146026611328125, -0.0278472900390625, 0.01776123046875, -0.00026297569274902344, 0.04010009765625, -0.01263427734375, -0.00441741943359375, -0.0254974365234375, -0.041168212890625, -0.05126953125, -0.00626373291015625, -0.015655517578125, 0.00551605224609375, -0.049346923828125, 0.013031005859375, -0.005359649658203125, -0.0297088623046875, -0.03594970703125, 0.034027099609375, -0.0546875, 0.0037593841552734375, 0.0292816162109375, 0.0031566619873046875, -0.04217529296875, 0.0212554931640625, 0.07421875, -0.03912353515625, 0.00904083251953125, 0.01471710205078125, -0.0022029876708984375, 0.056182861328125, 0.009429931640625, 0.041656494140625, 0.04229736328125, -0.0645751953125, -0.0253143310546875, 0.0214385986328125, 0.03582763671875, -0.007389068603515625, -0.04949951171875, -0.0172576904296875, -0.01016998291015625, -0.0009870529174804688, -0.02374267578125, -0.005489349365234375, -0.009613037109375, -0.003448486328125, 0.005413055419921875, -0.029876708984375, 0.0140838623046875, -0.0270843505859375, 0.0298309326171875, 0.037353515625, -0.0185546875, 0.0784912109375, -0.020294189453125, -0.003429412841796875, -0.04986572265625, 0.01218414306640625, -0.07757568359375, 0.04534912109375, -0.02862548828125, -0.01030731201171875, 0.046539306640625 ]
2d689ebc333fc910228953fea1e1d63a9b12f961
Wordpress Stackexchange Q: Htaccess redirect from '/%postname%.html' to '/%postname%' I have a Drupal 5.x based travel review site which I'm moving over to Wordpress 3.x (same domain name). The Drupal site is structured like this: * *www.example.com/travel-guides (these are top-level pages) - these are only a handful. *www.example.com/<filename>.html (filename is the name of a place / attraction etc). - makes up for bulk of the content in the site. In WordPress the setup is fairly straightforward. All content follows a simple permalink: www.example.com/postname How do I set a rule in .htaccess to bulk redirect all the pages? There are over 600 pages and I don't want to manually set redirect rules for all of them. A: Above the WordPress rewrite rules add: RedirectMatch permanent ^/([^/]+)\.html$ /$1 That will catch example.com/foo.html but not example.com/travel-guides/foo.html. To catch all URLs ending with .html remove the first ^ from the pattern. To redirect all URLs ending with .html except those in travel-guides you need mod_rewrite: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/travel-guides/ RewriteRule ([^/]+)\.html$ /$1 [L,R=301]
Q: Htaccess redirect from '/%postname%.html' to '/%postname%' I have a Drupal 5.x based travel review site which I'm moving over to Wordpress 3.x (same domain name). The Drupal site is structured like this: * *www.example.com/travel-guides (these are top-level pages) - these are only a handful. *www.example.com/<filename>.html (filename is the name of a place / attraction etc). - makes up for bulk of the content in the site. In WordPress the setup is fairly straightforward. All content follows a simple permalink: www.example.com/postname How do I set a rule in .htaccess to bulk redirect all the pages? There are over 600 pages and I don't want to manually set redirect rules for all of them. A: Above the WordPress rewrite rules add: RedirectMatch permanent ^/([^/]+)\.html$ /$1 That will catch example.com/foo.html but not example.com/travel-guides/foo.html. To catch all URLs ending with .html remove the first ^ from the pattern. To redirect all URLs ending with .html except those in travel-guides you need mod_rewrite: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/travel-guides/ RewriteRule ([^/]+)\.html$ /$1 [L,R=301]
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:424997", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69885" }
[ 0.0404052734375, 0.01343536376953125, 0.0009717941284179688, -0.00533294677734375, -0.006267547607421875, -0.0078887939453125, 0.029571533203125, -0.047607421875, -0.030548095703125, 0.030975341796875, -0.0157318115234375, 0.01471710205078125, 0.006175994873046875, -0.03265380859375, 0.027679443359375, -0.019256591796875, 0.04022216796875, -0.0615234375, 0.0021724700927734375, -0.01776123046875, 0.033721923828125, 0.0027408599853515625, 0.029937744140625, 0.0064239501953125, -0.0019025802612304688, 0.00434112548828125, 0.055999755859375, -0.024932861328125, -0.005275726318359375, -0.035064697265625, 0.004734039306640625, 0.005664825439453125, 0.0282745361328125, 0.03741455078125, -0.0506591796875, -0.01465606689453125, -0.005496978759765625, 0.0129852294921875, 0.003505706787109375, 0.020965576171875, 0.010162353515625, -0.0151519775390625, 0.024017333984375, 0.001293182373046875, -0.0034427642822265625, -0.039520263671875, 0.029205322265625, -0.039581298828125, 0.0101318359375, -0.0251007080078125, -0.006610870361328125, 0.053619384765625, -0.01560211181640625, 0.00951385498046875, 0.006778717041015625, 0.01605224609375, 0.034027099609375, -0.0307464599609375, 0.01311492919921875, -0.0478515625, -0.007965087890625, 0.02520751953125, 0.018310546875, 0.060211181640625, -0.0310516357421875, -0.0200347900390625, -0.0103759765625, 0.015960693359375, 0.0004730224609375, -0.01480865478515625, 0.0161590576171875, 0.0143280029296875, -0.00376129150390625, -0.016815185546875, -0.01473236083984375, -0.01093292236328125, 0.0218048095703125, -0.0305023193359375, -0.01494598388671875, 0.02874755859375, -0.0177154541015625, -0.0261077880859375, -0.0190277099609375, -0.071533203125, 0.037139892578125, -0.0168914794921875, -0.019622802734375, 0.004283905029296875, -0.0088348388671875, -0.025482177734375, -0.0121917724609375, 0.01331329345703125, -0.0254058837890625, -0.0185546875, -0.0132598876953125, -0.0172119140625, 0.03643798828125, 0.0247650146484375, 0.0174713134765625, -0.0179290771484375, 0.031585693359375, -0.054229736328125, 0.0283355712890625, -0.043853759765625, -0.00673675537109375, 0.036041259765625, 0.044403076171875, 0.01708984375, 0.03570556640625, -0.0168304443359375, -0.0084686279296875, 0.062103271484375, -0.005435943603515625, 0.039764404296875, -0.02667236328125, -0.026824951171875, -0.07489013671875, 0.01525115966796875, -0.0206756591796875, 0.034912109375, -0.004680633544921875, 0.0258331298828125, -0.00391387939453125, -0.01690673828125, -0.0269317626953125, -0.0333251953125, -0.0110626220703125, -0.028961181640625, -0.017059326171875, 0.0251922607421875, -0.00885009765625, 0.015716552734375, -0.04541015625, 0.004962921142578125, -0.01560211181640625, -0.0014963150024414062, 0.0443115234375, -0.04803466796875, -0.041778564453125, 0.0245361328125, -0.01317596435546875, -0.018524169921875, -0.019073486328125, -0.036407470703125, -0.0220489501953125, 0.0399169921875, 0.018463134765625, 0.0120849609375, -0.01517486572265625, -0.0594482421875, -0.0062713623046875, -0.047576904296875, 0.06268310546875, -0.007747650146484375, -0.018280029296875, -0.08294677734375, 0.0225830078125, -0.04644775390625, 0.022918701171875, -0.064697265625, -0.01531982421875, -0.00421142578125, 0.054351806640625, -0.05511474609375, -0.073974609375, -0.008819580078125, -0.0634765625, -0.026885986328125, 0.01268768310546875, -0.042877197265625, 0.0082550048828125, -0.004405975341796875, -0.01013946533203125, 0.01322174072265625, 0.029876708984375, 0.036956787109375, 0.005035400390625, -0.03076171875, -0.01270294189453125, 0.07501220703125, 0.04364013671875, -0.00667572021484375, -0.01995849609375, 0.0218353271484375, -0.08087158203125, 0.06365966796875, 0.005695343017578125, 0.05419921875, 0.00494384765625, -0.020416259765625, 0.09466552734375, 0.037322998046875, -0.01111602783203125, 0.007259368896484375, 0.006072998046875, -0.035614013671875, -0.0054168701171875, -0.00323486328125, -0.01161956787109375, -0.0044708251953125, 0.005157470703125, 0.00720977783203125, 0.003025054931640625, 0.00872802734375, 0.0024261474609375, 0.00830841064453125, -0.01168060302734375, 0.0350341796875, 0.020172119140625, 0.033477783203125, 0.0073089599609375, 0.039154052734375, -0.033050537109375, -0.016082763671875, 0.018890380859375, 0.053131103515625, -0.0013952255249023438, 0.0626220703125, 0.0010852813720703125, 0.044219970703125, 0.02288818359375, -0.08148193359375, 0.03485107421875, 0.006618499755859375, 0.0311279296875, 0.0004506111145019531, -0.033355712890625, -0.01506805419921875, -0.019317626953125, -0.0023403167724609375, -0.07440185546875, 0.055023193359375, 0.008148193359375, 0.021453857421875, -0.05615234375, -0.0172271728515625, -0.05938720703125, -0.017852783203125, 0.0071868896484375, 0.0626220703125, 0.040435791015625, 0.050384521484375, -0.025848388671875, -0.0411376953125, 0.003086090087890625, -0.09796142578125, -0.00861358642578125, -0.01690673828125, 0.011627197265625, 0.0267333984375, 0.044036865234375, -0.018402099609375, 0.020477294921875, -0.05267333984375, -0.0011854171752929688, 0.039031982421875, -0.01934814453125, 0.004146575927734375, -0.04656982421875, 0.0224456787109375, 0.01001739501953125, -0.0091400146484375, -0.0129547119140625, -0.0251312255859375, -0.02001953125, 0.0177764892578125, -0.004604339599609375, 0.005962371826171875, -0.0026397705078125, -0.00199127197265625, 0.005588531494140625, -0.031158447265625, 0.00377655029296875, 0.04827880859375, 0.05767822265625, -0.038055419921875, -0.01316070556640625, -0.0163116455078125, 0.0217132568359375, 0.0174713134765625, -0.02679443359375, -0.014007568359375, -0.0124664306640625, -0.00852203369140625, 0.0020503997802734375, -0.076904296875, 0.013824462890625, -0.01800537109375, 0.02484130859375, 0.007175445556640625, 0.023468017578125, 0.0001327991485595703, -0.01427459716796875, 0.020416259765625, 0.0438232421875, -0.039398193359375, -0.0113372802734375, -0.031036376953125, 0.0244903564453125, -0.03790283203125, 0.0254058837890625, 0.0640869140625, -0.012054443359375, 0.0117950439453125, -0.003063201904296875, 0.025604248046875, 0.01366424560546875, -0.0149993896484375, -0.0275421142578125, -0.04022216796875, -0.0158843994140625, -0.0156707763671875, 0.0312042236328125, -0.0236358642578125, 0.034393310546875, -0.0026683807373046875, -0.005832672119140625, 0.01187896728515625, -0.058441162109375, -0.04559326171875, 0.01397705078125, -0.0246734619140625, 0.002166748046875, 0.0246429443359375, -0.0033416748046875, -0.027557373046875, 0.037628173828125, -0.006908416748046875, 0.032684326171875, -0.0150909423828125, -0.09381103515625, -0.052001953125, -0.1048583984375, -0.005039215087890625, -0.0072784423828125, 0.0235595703125, 0.01042938232421875, -0.037384033203125, -0.0038204193115234375, -0.008148193359375, 0.01052093505859375, 0.0167388916015625, -0.01104736328125, -0.03057861328125, -0.033538818359375, -0.0008130073547363281, 0.0107574462890625, -0.0023212432861328125, 0.043426513671875, 0.014556884765625, -0.0054473876953125, -0.003917694091796875, 0.036102294921875, 0.00604248046875, 0.01500701904296875, -0.04107666015625, -0.033233642578125, -0.0280609130859375, -0.0299224853515625, -0.07147216796875, -0.04254150390625, -0.010589599609375, -0.05828857421875, -0.005126953125, 0.05767822265625, -0.001720428466796875, 0.017547607421875, -0.0428466796875, 0.036895751953125, 0.021270751953125, 0.04168701171875, -0.005954742431640625, -0.00400543212890625, -0.024322509765625, 0.0003592967987060547, -0.048095703125, 0.07110595703125, -0.0034942626953125, -0.0024204254150390625, 0.025787353515625, -0.0018177032470703125, -0.0031147003173828125, -0.03302001953125, -0.053253173828125, -0.0254974365234375, 0.0271148681640625, -0.054046630859375, -0.01026153564453125, -0.029876708984375, -0.00946044921875, -0.029693603515625, 0.05072021484375, -0.029632568359375, -0.0094451904296875, -0.01416778564453125, -0.00888824462890625, 0.028564453125, 0.01404571533203125, -0.02069091796875, -0.0238037109375, -0.09027099609375, 0.0028553009033203125, -0.0164031982421875, -0.035400390625, 0.032562255859375, -0.07171630859375, -0.0015163421630859375, -0.05926513671875, 0.0223236083984375, 0.00450897216796875, -0.00038743019104003906, 0.017486572265625, -0.0007052421569824219, -0.01143646240234375, -0.01337432861328125, -0.0034503936767578125, -0.036590576171875, -0.017303466796875, 0.037811279296875, 0.0164337158203125, 0.0001474618911743164, -0.01318359375, 0.018218994140625, 0.05780029296875, 0.037353515625, -0.0247039794921875, 0.0528564453125, -0.020751953125, 0.034698486328125, 0.04150390625, 0.054473876953125, -0.0229034423828125, -0.01180267333984375, 0.0165557861328125, -0.018035888671875, 0.0257415771484375, -0.00864410400390625, -0.03131103515625, 0.037445068359375, -0.033416748046875, -0.0997314453125, -0.0310516357421875, -0.00955963134765625, -0.021484375, 0.0013322830200195312, -0.034332275390625, -0.0114288330078125, -0.068603515625, 0.06878662109375, 0.005435943603515625, -0.0297088623046875, -0.0149993896484375, 0.00858306884765625, -0.00415802001953125, -0.04742431640625, -0.0144500732421875, 0.05194091796875, 0.028564453125, 0.0140380859375, 0.031219482421875, -0.00661468505859375, -0.0151824951171875, 0.0535888671875, -0.017822265625, -0.003021240234375, -0.01751708984375, 0.00833892822265625, -0.0208282470703125, -0.0313720703125, 0.007259368896484375, -0.042327880859375, 0.041900634765625, 0.0635986328125, 0.033782958984375, -0.0200347900390625, -0.00982666015625, 0.01169586181640625, 0.031280517578125, -0.061981201171875, -0.0260467529296875, -0.01123809814453125, -0.0015535354614257812, 0.0797119140625, 0.0323486328125, 0.02838134765625, 0.0015106201171875, 0.01334381103515625, 0.044189453125, -0.018341064453125, 0.05096435546875, 0.01861572265625, 0.00878143310546875, -0.0007162094116210938, 0.036712646484375, -0.032196044921875, 0.006160736083984375, -0.00811004638671875, 0.05267333984375, 0.0268402099609375, -0.0179901123046875, -0.0157623291015625, 0.002864837646484375, -0.0308074951171875, -0.0238494873046875, -0.0165863037109375, 0.01007080078125, 0.0187835693359375, 0.0032749176025390625, 0.00873565673828125, -0.0229034423828125, 0.010009765625, -0.033355712890625, 0.0208892822265625, 0.0172119140625, -0.0172882080078125, 0.022125244140625, 0.037872314453125, 0.0157318115234375, 0.02734375, -0.01300811767578125, 0.0007300376892089844, 0.0179443359375, 0.034423828125, 0.0121917724609375, 0.018157958984375, -0.0211639404296875, 0.0252838134765625, 0.0034656524658203125, -0.053131103515625, -0.03564453125, 0.0323486328125, 0.09539794921875, -0.0251922607421875, -0.032379150390625, -0.0126190185546875, -0.035614013671875, 0.0009255409240722656, -0.024078369140625, -0.041412353515625, -0.0092010498046875, -0.01227569580078125, -0.0079498291015625, -0.005092620849609375, -0.0167999267578125, 0.012847900390625, -0.0144805908203125, -0.02410888671875, -0.0237579345703125, 0.033477783203125, -0.00933074951171875, -0.0174407958984375, -0.0303192138671875, -0.045806884765625, -0.0140533447265625, 0.0154266357421875, -0.02203369140625, -0.026123046875, -0.0146331787109375, -0.0243988037109375, 0.035736083984375, -0.020538330078125, -0.0209503173828125, 0.0113372802734375, 0.0062713623046875, 0.043670654296875, -0.0004572868347167969, 0.04705810546875, -0.003101348876953125, -0.037689208984375, 0.0080718994140625, -0.027557373046875, -0.0015287399291992188, 0.0196990966796875, -0.008544921875, -0.0226593017578125, -0.0276947021484375, -0.0005702972412109375, 0.01366424560546875, 0.01026153564453125, 0.0231781005859375, -0.0306396484375, 0.0180816650390625, 0.0199127197265625, 0.039276123046875, -0.0496826171875, 0.0362548828125, -0.00348663330078125, 0.0149688720703125, -0.045257568359375, -0.01241302490234375, 0.020294189453125, -0.00022661685943603516, 0.0157470703125, -0.039794921875, -0.036376953125, -0.00894927978515625, -0.050689697265625, 0.025177001953125, 0.061279296875, -0.00027942657470703125, 0.00853729248046875, -0.018524169921875, -0.0010271072387695312, -0.02777099609375, -0.004169464111328125, -0.0484619140625, 0.01424407958984375, -0.005283355712890625, 0.0435791015625, 0.05224609375, -0.055633544921875, 0.006305694580078125, -0.044921875, 0.0214691162109375, -0.023834228515625, -0.0196685791015625, -0.04534912109375, 0.0135498046875, 0.0643310546875, 0.033416748046875, 0.053924560546875, 0.0102996826171875, 0.0176544189453125, 0.0264129638671875, -0.032989501953125, 0.054168701171875, 0.027587890625, 0.0562744140625, -0.0131378173828125, 0.00975799560546875, 0.042572021484375, -0.0189056396484375, 0.00261688232421875, 0.043701171875, 0.04888916015625, -0.06207275390625, -0.004726409912109375, -0.0024089813232421875, -0.016937255859375, 0.03436279296875, 0.007720947265625, -0.0210113525390625, -0.005245208740234375, -0.04266357421875, 0.01163482666015625, -0.029052734375, -0.0176544189453125, 0.03759765625, 0.0141754150390625, 0.0139617919921875, 0.0673828125, -0.0143585205078125, -0.06658935546875, -0.084716796875, 0.041656494140625, -0.0650634765625, -0.020111083984375, 0.01393890380859375, -0.0020465850830078125, -0.0279998779296875, -0.019744873046875, 0.022430419921875, -0.01580810546875, -0.01519775390625, 0.039642333984375, -0.039398193359375, 0.005970001220703125, 0.035858154296875, -0.033233642578125, 0.025787353515625, -0.0037822723388671875, -0.0197906494140625, 0.0185394287109375, -0.00609588623046875, -0.0350341796875, -0.048126220703125, 0.008270263671875, -0.007488250732421875, -0.032562255859375, -0.00617218017578125, -0.00970458984375, 0.0031490325927734375, 0.053466796875, -0.00841522216796875, -0.043548583984375, -0.0094146728515625, -0.01464080810546875, -0.00013196468353271484, 0.009063720703125, 0.040863037109375, -0.01849365234375, -0.00390625, 0.007328033447265625, -0.045684814453125, -0.0193939208984375, -0.049896240234375, -0.07879638671875, 0.06781005859375, 0.00402069091796875, 0.05377197265625, 0.01617431640625, 0.02203369140625, -0.0187225341796875, -0.0073699951171875, -0.01342010498046875, 0.053680419921875, 0.041656494140625, 0.031097412109375, -0.0262603759765625, -0.007488250732421875, 0.0161285400390625, 0.053253173828125, -0.0148468017578125, 0.007030487060546875, -0.0355224609375, 0.0093841552734375, 0.039093017578125, 0.01435089111328125, 0.01041412353515625, 0.0283050537109375, -0.017608642578125, 0.006591796875, 0.0144500732421875, -0.0419921875, 0.0283203125, -0.07562255859375, -0.022308349609375, -0.0283203125, 0.0022563934326171875, -0.0293121337890625, -0.039154052734375, 0.013641357421875, -0.07489013671875, -0.00186920166015625, 0.0229034423828125, 0.04638671875, 0.046905517578125, -0.0187530517578125, 0.053863525390625, -0.108154296875, -0.050689697265625, -0.019073486328125, 0.048736572265625, 0.015838623046875, 0.01238250732421875, 0.0129547119140625, 0.01078033447265625, 0.0513916015625, 0.01148223876953125, 0.0024471282958984375, 0.0223541259765625, 0.0187530517578125, 0.0246124267578125, 0.0149993896484375, 0.033782958984375, -0.01020050048828125, -0.0304718017578125, 0.01013946533203125, 0.042572021484375, -0.0102996826171875, 0.0196685791015625, -0.0008058547973632812, -0.00518035888671875, 0.01378631591796875, -0.0513916015625, 0.046478271484375, -0.01422119140625, -0.06329345703125, 0.00830078125, -0.0005249977111816406, -0.0024433135986328125, 0.0174407958984375, -0.005428314208984375, -0.00246429443359375, -0.025482177734375, 0.016845703125, -0.0146331787109375, -0.01274871826171875, 0.02227783203125, 0.01140594482421875, 0.01062774658203125, 0.0391845703125, 0.0256805419921875, -0.00919342041015625, 0.0010728836059570312, 0.01284027099609375, -0.0305938720703125, -0.00876617431640625, -0.037506103515625, -0.0538330078125, 0.038909912109375, 0.04736328125, 0.0296478271484375, -0.0007338523864746094, 0.024078369140625, 0.0218048095703125, -0.0178375244140625, -0.003021240234375, 0.06268310546875, -0.01149749755859375, 0.055084228515625, -0.0154571533203125, 0.01116943359375, -0.027099609375, -0.0175018310546875, -0.031097412109375, 0.032470703125, -0.0005559921264648438, -0.0004684925079345703, 0.050018310546875, 0.0006728172302246094, -0.0082550048828125, 0.01200103759765625, -0.0155181884765625, 0.0684814453125, 0.02642822265625, -0.001636505126953125, 0.00733184814453125, 0.00945281982421875, -0.074462890625, 0.01470184326171875, 0.04010009765625, -0.016357421875, 0.0231781005859375, -0.004848480224609375, 0.0304107666015625, -0.0096435546875, -0.032012939453125, 0.023101806640625, -0.002471923828125, 0.0103302001953125, 0.03302001953125, -0.0178985595703125, -0.004138946533203125, -0.0020656585693359375, 0.024871826171875, 0.0243682861328125, 0.1104736328125, -0.05010986328125, 0.011199951171875, -0.0266876220703125, 0.017242431640625, -0.019744873046875, -0.030059814453125, 0.03387451171875, 0.0032444000244140625, -0.01386260986328125, -0.00904083251953125, -0.03118896484375, -0.01336669921875, 0.005840301513671875, -0.0321044921875, -0.01263427734375, -0.031768798828125, 0.031463623046875, 0.01751708984375, 0.00927734375, -0.024871826171875, -0.07659912109375, -0.006763458251953125, 0.04705810546875, -0.0178375244140625, 0.026275634765625, -0.01526641845703125, 0.052337646484375, 0.007232666015625, 0.0023937225341796875, 0.0084686279296875, -0.03765869140625, 0.0209808349609375, 0.0462646484375, -0.0292816162109375, -0.01367950439453125, 0.04119873046875, -0.01256561279296875, 0.032135009765625, 0.00212860107421875, 0.043548583984375, 0.015716552734375, -0.03875732421875, -0.03570556640625, -0.053985595703125, -0.0021514892578125, -0.01061248779296875, -0.0009899139404296875, -0.07275390625, 0.0072174072265625, 0.022247314453125, -0.04339599609375, -0.0207366943359375, -0.0152435302734375, -0.0191802978515625, 0.0233612060546875, -0.027435302734375, -0.050933837890625, -0.062164306640625, 0.013458251953125, -0.01806640625, -0.0164947509765625, -0.028167724609375, 0.000476837158203125, -0.0003268718719482422, 0.06475830078125, -0.05694580078125, 0.01461029052734375, 0.0019016265869140625, -0.0121612548828125, -0.050018310546875, -0.015869140625, -0.027740478515625, 0.0115966796875, -0.0333251953125, -0.0267181396484375, 0.022918701171875, -0.0003859996795654297, -0.0269775390625, -0.057220458984375, -0.0307159423828125, -0.0024127960205078125, -0.048370361328125, -0.00962066650390625, 0.038787841796875, 0.0012617111206054688, -0.0253448486328125, -0.052825927734375, -0.0270538330078125, -0.01141357421875, 0.0024089813232421875, 0.0295867919921875, -0.02490234375, -0.0026760101318359375, -0.036590576171875, -0.0672607421875, 0.052337646484375, 0.01474761962890625, -0.0247955322265625, -0.0160369873046875, -0.0217132568359375, -0.027618408203125, 0.05908203125, 0.00746917724609375, -0.02154541015625, -0.0268096923828125, 0.02532958984375, 0.0216827392578125, 0.052642822265625, -0.0157318115234375, 0.03240966796875, 0.0045166015625, 0.040557861328125, 0.01174163818359375, 0.016204833984375, 0.00913238525390625, 0.0001672506332397461, 0.041595458984375, 0.057830810546875, -0.013946533203125, 0.0224609375, -0.01055145263671875, -0.04248046875, 0.005977630615234375, -0.032928466796875, -0.06488037109375, -0.0416259765625, 0.073486328125, 0.034942626953125, 0.025421142578125, -0.0188751220703125, 0.015777587890625, -0.0250244140625, -0.0159912109375, 0.00743865966796875, 0.01384735107421875, -0.026275634765625, -0.006420135498046875, 0.0157012939453125, 0.0054168701171875, 0.003814697265625, 0.01369476318359375, -0.019805908203125, 0.0014810562133789062, 0.036163330078125, -0.0273895263671875, 0.0220947265625, 0.01788330078125, 0.0589599609375, -0.040496826171875, -0.01025390625, -0.0016431808471679688, 0.0161895751953125, 0.00775909423828125, -0.038177490234375, -0.01032257080078125, -0.0034351348876953125, 0.0301055908203125, 0.01035308837890625, 0.0257568359375, -0.0008597373962402344, 0.01010894775390625, 0.007480621337890625, -0.006866455078125, 0.0211029052734375, 0.0044708251953125, 0.00946044921875, -0.0279693603515625, 0.03179931640625, 0.005817413330078125, 0.05609130859375, -0.01503753662109375, -0.0213470458984375, -0.0023136138916015625, 0.0200347900390625, -0.0233306884765625, -0.0023975372314453125, 0.0255279541015625, -0.036224365234375, -0.01476287841796875, 0.048553466796875, -0.0211029052734375, -0.047271728515625, 0.04327392578125, 0.0120849609375, 0.03466796875, 0.00470733642578125 ]
974090897130b107251b92a15671175aaef37502
Wordpress Stackexchange Q: Why isn't WordPress part of Framework Interop Group? Are there any technical reasons that prevent WP to be part of Framework Interop Group? A: Yes, WordPress's maintains backward compatibility (spaghetti), it would not be feasible to adhere to PSR-0 and rename everything, which is somewhat unfortunate for the long-term, with regards to FIG. That being said it's possible to adopt it for plugins and themes, there is a trac about it here: https://core.trac.wordpress.org/ticket/21300
Q: Why isn't WordPress part of Framework Interop Group? Are there any technical reasons that prevent WP to be part of Framework Interop Group? A: Yes, WordPress's maintains backward compatibility (spaghetti), it would not be feasible to adhere to PSR-0 and rename everything, which is somewhat unfortunate for the long-term, with regards to FIG. That being said it's possible to adopt it for plugins and themes, there is a trac about it here: https://core.trac.wordpress.org/ticket/21300
wordpress
{ "language": "en", "length": 74, "provenance": "stackexchange_00019.jsonl.gz:425002", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69914" }
[ -0.005588531494140625, 0.006732940673828125, -0.06048583984375, -0.00678253173828125, 0.016387939453125, -0.0362548828125, 0.0168609619140625, 0.0106353759765625, -0.0225067138671875, 0.02655029296875, -0.0244598388671875, 0.005657196044921875, 0.0238494873046875, -0.0125274658203125, 0.021881103515625, -0.0287322998046875, 0.0152740478515625, -0.037567138671875, -0.0140838623046875, -0.0046844482421875, 0.02752685546875, 0.00919342041015625, -0.049163818359375, -0.033538818359375, 0.052398681640625, -0.043060302734375, 0.0126495361328125, 0.03729248046875, 0.00325775146484375, -0.00067138671875, 0.0278167724609375, 0.010406494140625, 0.0166778564453125, 0.0384521484375, -0.03338623046875, -0.031494140625, -0.01236724853515625, 0.01483154296875, 0.001674652099609375, 0.006832122802734375, -0.0076446533203125, 0.005126953125, 0.045867919921875, -0.0176239013671875, -0.019287109375, -0.0113677978515625, 0.002712249755859375, -0.01067352294921875, 0.01332855224609375, -0.037841796875, -0.0087127685546875, -0.0244598388671875, 0.0183563232421875, -0.03448486328125, -0.03631591796875, -0.03851318359375, -0.0024471282958984375, 0.0286712646484375, 0.0180816650390625, -0.01374053955078125, -0.0218353271484375, 0.02239990234375, 0.00518035888671875, 0.01038360595703125, 0.032684326171875, -0.003162384033203125, 0.02655029296875, 0.03314208984375, -0.04083251953125, 0.0174407958984375, 0.00860595703125, -0.03985595703125, -0.0260009765625, -0.0167999267578125, 0.053192138671875, -0.00090789794921875, 0.003940582275390625, -0.01082611083984375, -0.00954437255859375, 0.0687255859375, -0.01064300537109375, 0.0013580322265625, -0.0223388671875, -0.001495361328125, 0.006488800048828125, 0.04296875, -0.01003265380859375, -0.0238189697265625, -0.0236968994140625, -0.047332763671875, -0.0321044921875, -0.0010957717895507812, -0.04632568359375, 0.0008935928344726562, -0.033935546875, 0.0173492431640625, -0.0151519775390625, -0.0171051025390625, 0.006900787353515625, 0.029266357421875, 0.0278778076171875, -0.045166015625, 0.08221435546875, -0.035614013671875, -0.0162811279296875, 0.04180908203125, 0.019256591796875, 0.0185089111328125, -0.003936767578125, 0.0273590087890625, 0.0002435445785522461, -0.048126220703125, 0.025421142578125, -0.04534912109375, -0.03143310546875, 0.0129547119140625, 0.01186370849609375, -0.01099395751953125, 0.0285491943359375, -0.038726806640625, -0.008575439453125, -0.021270751953125, 0.00809478759765625, 0.026031494140625, 0.0203857421875, -0.0027332305908203125, -0.035552978515625, 0.0229949951171875, -0.0269775390625, 0.0177459716796875, 0.03955078125, 0.0195770263671875, -0.055267333984375, 0.0182647705078125, -0.039337158203125, 0.00328826904296875, 0.0294189453125, 0.0308990478515625, -0.0030517578125, 0.0232086181640625, -0.01024627685546875, -0.047271728515625, -0.0200653076171875, 0.006504058837890625, 0.045318603515625, 0.0153045654296875, 0.035186767578125, 0.019805908203125, 0.007205963134765625, -0.0114288330078125, 0.0096893310546875, 0.03271484375, 0.0160064697265625, -0.0194854736328125, 0.04400634765625, -0.02899169921875, 0.035919189453125, -0.036590576171875, 0.01715087890625, -0.004764556884765625, -0.00997161865234375, -0.0186309814453125, 0.018310546875, 0.029754638671875, 0.007381439208984375, 0.0206146240234375, 0.00278472900390625, -0.0005578994750976562, 0.024505615234375, 0.0689697265625, -0.014892578125, -0.032318115234375, 0.04510498046875, 0.009429931640625, -0.0313720703125, 0.01120758056640625, 0.03448486328125, 0.01018524169921875, 0.01555633544921875, 0.059478759765625, 0.00994873046875, -0.0217742919921875, 0.0863037109375, -0.039215087890625, -0.032501220703125, -0.004962921142578125, 0.006805419921875, 0.01861572265625, 0.0283355712890625, 0.0102386474609375, 0.0252227783203125, 0.018524169921875, 0.023345947265625, 0.04022216796875, -0.020965576171875, -0.063720703125, 0.0531005859375, 0.018035888671875, -0.0096282958984375, -0.0295867919921875, -0.01372528076171875, 0.01953125, -0.01317596435546875, -0.00910186767578125, -0.033843994140625, -0.02203369140625, -0.0106201171875, 0.025299072265625, 0.011505126953125, 0.0152587890625, 0.0123291015625, 0.016845703125, -0.03924560546875, 0.017425537109375, -0.0252227783203125, 0.0180816650390625, 0.006229400634765625, 0.012420654296875, 0.023468017578125, -0.019134521484375, 0.01345062255859375, 0.0199432373046875, 0.01009368896484375, 0.053436279296875, 0.00698089599609375, -0.0269775390625, -0.0014324188232421875, -0.014678955078125, 0.043487548828125, -0.0026531219482421875, 0.05853271484375, -0.01140594482421875, -0.0296783447265625, -0.001979827880859375, -0.03662109375, -0.01708984375, -0.031524658203125, -0.046417236328125, 0.020263671875, 0.05621337890625, 0.018707275390625, 0.0222320556640625, -0.040252685546875, -0.00791168212890625, 0.005886077880859375, -0.027252197265625, 0.01331329345703125, 0.007495880126953125, -0.022705078125, 0.0205078125, -0.0004336833953857422, 0.01081085205078125, 0.0121002197265625, 0.01110076904296875, -0.035491943359375, 0.04046630859375, -0.00484466552734375, 0.0018596649169921875, -0.0528564453125, 0.0191497802734375, 0.01824951171875, -0.07635498046875, -0.0526123046875, -0.02301025390625, 0.000865936279296875, -0.02484130859375, 0.020904541015625, 0.018280029296875, 0.017791748046875, -0.042938232421875, 0.0179595947265625, 0.0205078125, 0.001056671142578125, 0.0439453125, 0.047119140625, 0.0330810546875, -0.037445068359375, -0.029052734375, 0.0238189697265625, 0.045806884765625, 0.00409698486328125, 0.06060791015625, -0.015167236328125, -0.026458740234375, -0.004314422607421875, -0.04644775390625, -0.029632568359375, -0.01434326171875, 0.0037784576416015625, -0.016265869140625, 0.0273284912109375, -0.0182952880859375, -0.0452880859375, 0.0149078369140625, 0.00814056396484375, -0.05059814453125, 0.0286712646484375, -0.04168701171875, 0.03240966796875, -0.0262298583984375, 0.037506103515625, 0.05126953125, 0.0113983154296875, -0.01153564453125, -0.0091094970703125, -0.00701141357421875, -0.009613037109375, -0.007488250732421875, -0.0119781494140625, -0.00516510009765625, -0.059906005859375, 0.0274810791015625, 0.01666259765625, -0.014434814453125, 0.0109405517578125, -0.01934814453125, -0.0139312744140625, 0.004398345947265625, -0.058258056640625, -0.03802490234375, 0.00453948974609375, -0.016448974609375, 0.0290679931640625, 0.0029621124267578125, -0.0005402565002441406, -0.0277862548828125, 0.0361328125, 0.0016345977783203125, -0.0499267578125, -0.036285400390625, -0.04266357421875, -0.08697509765625, -0.053680419921875, 0.01053619384765625, 0.00012058019638061523, 0.00951385498046875, -0.0026035308837890625, 0.047393798828125, 0.0132293701171875, -0.0151214599609375, 0.01824951171875, 0.0189666748046875, -0.007602691650390625, -0.0017986297607421875, 0.0005712509155273438, -0.03277587890625, 0.0287017822265625, -0.003078460693359375, 0.037506103515625, 0.005771636962890625, 0.00379180908203125, -0.00397491455078125, -0.0183563232421875, -0.0174102783203125, -0.01136016845703125, -0.0013580322265625, 0.01207733154296875, -0.042999267578125, -0.0256195068359375, -0.07269287109375, -0.01288604736328125, 0.037994384765625, -0.0178985595703125, -0.00864410400390625, -0.0200653076171875, -0.033111572265625, 0.01806640625, -0.002017974853515625, -0.0225372314453125, -0.01800537109375, -0.0218505859375, -0.01404571533203125, 0.0303192138671875, -0.004322052001953125, -0.006603240966796875, 0.0304412841796875, 0.02996826171875, -0.012359619140625, 0.0003638267517089844, 0.00785064697265625, -0.005092620849609375, -0.026336669921875, 0.0108489990234375, -0.044830322265625, 0.0130462646484375, 0.018096923828125, -0.042938232421875, 0.0235443115234375, -0.0233001708984375, 0.00806427001953125, -0.0262908935546875, 0.044342041015625, 0.01271820068359375, -0.012298583984375, -0.0243072509765625, 0.006317138671875, -0.033294677734375, -0.056549072265625, -0.004795074462890625, 0.002838134765625, 0.04364013671875, -0.0305938720703125, -0.0003273487091064453, -0.01125335693359375, 0.02215576171875, 0.01218414306640625, 0.050811767578125, 0.0078887939453125, 0.0325927734375, -0.040130615234375, -0.0103302001953125, 0.0083160400390625, 0.0030193328857421875, -0.047271728515625, -0.005634307861328125, -0.033172607421875, -0.139892578125, -0.01523590087890625, -0.039337158203125, 0.07769775390625, -0.01068878173828125, -0.0033473968505859375, -0.02880859375, 0.0482177734375, -0.0193328857421875, 0.01206207275390625, -0.01287078857421875, -0.0068511962890625, 0.023162841796875, 0.0222930908203125, -0.0052032470703125, 0.0035076141357421875, 0.006206512451171875, -0.01318359375, -0.05035400390625, -0.0582275390625, -0.02581787109375, -0.06292724609375, 0.0119476318359375, -0.045074462890625, 0.04315185546875, -0.036285400390625, -0.0235748291015625, 0.026947021484375, -0.03692626953125, 0.034576416015625, -0.051422119140625, 0.0364990234375, 0.0423583984375, 0.04052734375, -0.01357269287109375, 0.0177459716796875, 0.061767578125, 0.0096435546875, -0.03485107421875, -0.11517333984375, 0.004474639892578125, 0.0352783203125, -0.029052734375, 0.01543426513671875, -0.00295257568359375, -0.0176239013671875, 0.03265380859375, -0.00984954833984375, -0.03717041015625, 0.00949859619140625, 0.007415771484375, 0.01824951171875, -0.0166015625, 0.0062103271484375, 0.0036678314208984375, 0.028564453125, 0.01306915283203125, 0.034271240234375, -0.04449462890625, 0.0032482147216796875, 0.024749755859375, 0.014892578125, -0.003162384033203125, -0.00891876220703125, -0.069091796875, 0.037689208984375, -0.01715087890625, 0.0184478759765625, 0.00798797607421875, 0.0002684593200683594, 0.0316162109375, -0.0093536376953125, 0.007450103759765625, 0.053802490234375, 0.0158843994140625, 0.019378662109375, 0.043121337890625, 0.037353515625, 0.0177001953125, 0.0253753662109375, -0.0220184326171875, 0.11090087890625, 0.0274810791015625, -0.0328369140625, 0.03448486328125, -0.0517578125, -0.009033203125, 0.00754547119140625, -0.0355224609375, 0.0234222412109375, 0.031768798828125, -0.0312042236328125, -0.006443023681640625, -0.045440673828125, 0.003570556640625, -0.058349609375, -0.0149383544921875, -0.0272674560546875, -0.0001462697982788086, 0.033447265625, -0.0016937255859375, 0.007266998291015625, 0.0140228271484375, -0.0105438232421875, -0.008392333984375, -0.0275421142578125, 0.047088623046875, 0.01039886474609375, -0.0283660888671875, 0.052001953125, 0.0017576217651367188, 0.03411865234375, -0.05584716796875, -0.016693115234375, 0.03924560546875, 0.04730224609375, 0.0175628662109375, -0.0185394287109375, 0.0040130615234375, 0.00930023193359375, -0.018280029296875, 0.00258636474609375, -0.00811004638671875, 0.00994873046875, -0.0235443115234375, 0.004589080810546875, 0.0341796875, 0.03131103515625, -0.0011310577392578125, -0.03466796875, 0.011962890625, -0.0143890380859375, -0.0214080810546875, -0.0867919921875, 0.027252197265625, 0.050506591796875, -0.0021610260009765625, 0.01552581787109375, -0.00013053417205810547, 0.007732391357421875, -0.014556884765625, -0.039154052734375, -0.057525634765625, 0.09600830078125, -0.04058837890625, 0.03656005859375, -0.02825927734375, -0.0126800537109375, -0.0296630859375, 0.00995635986328125, 0.08721923828125, 0.07293701171875, -0.017578125, -0.01800537109375, -0.041229248046875, -0.0308837890625, -0.06182861328125, -0.02825927734375, -0.0380859375, 0.023162841796875, 0.0023288726806640625, 0.005344390869140625, -0.0193939208984375, -0.04376220703125, -0.0303497314453125, 0.043670654296875, 0.0531005859375, 0.039459228515625, 0.0015201568603515625, 0.053436279296875, -0.0316162109375, 0.050628662109375, 0.0029735565185546875, 0.0243072509765625, -0.021697998046875, -0.02020263671875, 0.0177764892578125, -0.09857177734375, -0.0311431884765625, -0.0256195068359375, 0.0133056640625, 0.057647705078125, -0.0022411346435546875, 0.006725311279296875, 0.025177001953125, -0.03167724609375, 0.0161590576171875, -0.036956787109375, 0.01849365234375, -0.0888671875, -0.0092926025390625, -0.03436279296875, -0.018402099609375, -0.01090240478515625, -0.035552978515625, -0.017730712890625, 0.00815582275390625, 0.011749267578125, -0.020263671875, 0.034149169921875, -0.00433349609375, -0.0011587142944335938, 0.0016040802001953125, 0.023681640625, 0.02655029296875, -0.0080413818359375, 0.03521728515625, -0.01061248779296875, 0.0081939697265625, -0.038482666015625, -0.031951904296875, 0.00756072998046875, 0.0026378631591796875, -0.01284027099609375, 0.01971435546875, -0.010986328125, 0.03399658203125, 0.049591064453125, 0.0849609375, -0.0479736328125, 0.00640869140625, 0.022216796875, -0.03076171875, 0.01459503173828125, -0.008056640625, -0.0019683837890625, 0.023681640625, 0.05950927734375, -0.021331787109375, -0.0062255859375, 0.050811767578125, -0.0079345703125, -0.021087646484375, -0.01580810546875, 0.0518798828125, 0.040771484375, -0.01666259765625, 0.016204833984375, 0.02655029296875, 0.006359100341796875, 0.01861572265625, 0.02325439453125, -0.02276611328125, -0.041717529296875, -0.0177764892578125, -0.017730712890625, 0.01438140869140625, -0.04388427734375, 0.023193359375, -0.01023101806640625, 0.0142364501953125, 0.058441162109375, -0.031524658203125, 0.028778076171875, 0.02117919921875, 0.0008220672607421875, -0.040435791015625, -0.0221099853515625, 0.022735595703125, 0.0258331298828125, -0.0282440185546875, 0.0196990966796875, -0.045623779296875, -0.00843048095703125, 0.0008511543273925781, 0.03643798828125, 0.07171630859375, -0.01467132568359375, -0.0239715576171875, 0.0712890625, 0.00267791748046875, -0.061187744140625, 0.01110076904296875, -0.0184326171875, -0.08258056640625, -0.07818603515625, 0.0003440380096435547, -0.0794677734375, 0.036285400390625, 0.021820068359375, -0.04339599609375, 0.03924560546875, -0.00998687744140625, 0.0195770263671875, 0.020233154296875, 0.0151214599609375, -0.01473236083984375, -0.0020294189453125, 0.00543975830078125, 0.0205078125, -0.0264434814453125, 0.04345703125, -0.029998779296875, -0.0159149169921875, 0.00963592529296875, 0.053192138671875, -0.0162811279296875, -0.006565093994140625, -0.0135955810546875, -0.02728271484375, 0.026580810546875, 0.02545166015625, 0.0297698974609375, 0.02099609375, -0.018890380859375, -0.035858154296875, -0.028564453125, 0.0090179443359375, 0.01446533203125, -0.032257080078125, -0.047393798828125, -0.005359649658203125, -0.0182952880859375, -0.0159149169921875, -0.01445770263671875, 0.0166778564453125, 0.006389617919921875, -0.017669677734375, -0.021820068359375, 0.01253509521484375, 0.0169525146484375, -0.0158538818359375, -0.01560211181640625, 0.05078125, 0.045318603515625, -0.0008111000061035156, 0.0268096923828125, 0.005229949951171875, 0.0168914794921875, 0.00908660888671875, 0.01241302490234375, 0.0197906494140625, -0.041412353515625, -0.007480621337890625, 0.004192352294921875, -0.039886474609375, 0.0204925537109375, -0.0013713836669921875, 0.0251007080078125, -0.027130126953125, 0.0394287109375, 0.0246124267578125, 0.0194091796875, -0.03302001953125, -0.017791748046875, 0.00507354736328125, -0.0200958251953125, 0.0030498504638671875, -0.0347900390625, -0.0128936767578125, -0.023193359375, -0.0226287841796875, 0.0060577392578125, -0.00698089599609375, 0.03692626953125, 0.0511474609375, 0.033233642578125, 0.052764892578125, -0.05438232421875, -0.043853759765625, 0.037445068359375, -0.01178741455078125, 0.0097198486328125, 0.004810333251953125, -0.04974365234375, 0.03936767578125, -0.079833984375, 0.02740478515625, 0.011077880859375, 0.0012865066528320312, -0.00904083251953125, -0.018707275390625, -0.0297088623046875, -0.02740478515625, -0.00006085634231567383, 0.048919677734375, 0.007144927978515625, 0.04266357421875, 0.03466796875, 0.0288543701171875, 0.0038890838623046875, 0.0019989013671875, 0.028350830078125, -0.0061187744140625, 0.00019800662994384766, -0.0269622802734375, 0.01104736328125, 0.01305389404296875, -0.0021381378173828125, -0.0125274658203125, 0.0171661376953125, 0.0286712646484375, 0.036651611328125, 0.01276397705078125, 0.01493072509765625, -0.0222625732421875, 0.0208740234375, 0.0050811767578125, 0.06561279296875, 0.0565185546875, -0.0013151168823242188, -0.005954742431640625, -0.03173828125, 0.0241241455078125, -0.019866943359375, 0.0283966064453125, 0.02740478515625, 0.0100250244140625, 0.0679931640625, -0.0089569091796875, -0.029022216796875, -0.0017652511596679688, 0.048858642578125, -0.035308837890625, -0.006542205810546875, 0.0145721435546875, -0.042449951171875, -0.02874755859375, -0.0296173095703125, 0.04656982421875, -0.00789642333984375, 0.11151123046875, -0.056427001953125, 0.024200439453125, -0.0579833984375, -0.032257080078125, 0.0016050338745117188, -0.052001953125, 0.025665283203125, 0.047149658203125, -0.0202484130859375, -0.01123046875, -0.060943603515625, -0.04315185546875, 0.05401611328125, -0.06964111328125, 0.01500701904296875, -0.0155029296875, 0.0191650390625, -0.081298828125, 0.034149169921875, -0.005397796630859375, 0.00550079345703125, 0.03204345703125, 0.0031642913818359375, 0.0253143310546875, 0.019622802734375, -0.002658843994140625, 0.01239013671875, 0.035919189453125, -0.0399169921875, 0.0235748291015625, -0.0142669677734375, 0.0128173828125, 0.01004791259765625, 0.06903076171875, -0.0244140625, 0.005275726318359375, -0.008758544921875, -0.00417327880859375, 0.00569915771484375, 0.041107177734375, -0.0091552734375, -0.00008553266525268555, 0.021820068359375, 0.0438232421875, 0.043975830078125, -0.0157318115234375, 0.01201629638671875, 0.0272216796875, -0.017181396484375, 0.0386962890625, 0.01641845703125, -0.0156707763671875, 0.00455474853515625, -0.0215911865234375, 0.014739990234375, -0.032257080078125, -0.0121307373046875, -0.08087158203125, -0.0008754730224609375, 0.0253448486328125, 0.0175018310546875, -0.0401611328125, 0.0386962890625, 0.006744384765625, -0.0389404296875, 0.04095458984375, -0.003391265869140625, -0.018035888671875, -0.0167236328125, -0.0233612060546875, -0.051605224609375, -0.03509521484375, 0.06634521484375, -0.026641845703125, 0.04498291015625, 0.04144287109375, -0.035552978515625, 0.030029296875, 0.061248779296875, 0.037567138671875, 0.121337890625, 0.00018799304962158203, -0.0276641845703125, -0.0357666015625, 0.027587890625, -0.0021648406982421875, -0.021148681640625, 0.034576416015625, -0.03240966796875, -0.04107666015625, -0.0294952392578125, -0.0251312255859375, -0.03546142578125, -0.0692138671875, -0.052093505859375, 0.024566650390625, 0.006404876708984375, -0.040374755859375, -0.0914306640625, -0.0087738037109375, -0.0042724609375, 0.03656005859375, -0.0311279296875, -0.004116058349609375, -0.03997802734375, 0.061370849609375, 0.022613525390625, 0.01488494873046875, 0.0037364959716796875, 0.02886962890625, -0.010772705078125, 0.049407958984375, 0.04107666015625, -0.0097503662109375, -0.006427764892578125, 0.0021915435791015625, 0.002777099609375, 0.0163421630859375, -0.04705810546875, 0.001895904541015625, -0.0027599334716796875, 0.0382080078125, 0.0127105712890625, -0.051971435546875, -0.0002524852752685547, -0.0355224609375, 0.0234832763671875, -0.0224609375, -0.00408935546875, -0.005779266357421875, -0.0693359375, -0.02557373046875, 0.004215240478515625, 0.00089263916015625, 0.005138397216796875, -0.06005859375, 0.0236053466796875, -0.01042938232421875, 0.003940582275390625, 0.04248046875, -0.046722412109375, -0.0164031982421875, -0.0012149810791015625, -0.0305328369140625, -0.0283355712890625, -0.007488250732421875, -0.00769805908203125, 0.033416748046875, -0.0229949951171875, 0.0054931640625, -0.0274658203125, 0.034881591796875, 0.0191650390625, -0.028961181640625, 0.027130126953125, 0.039215087890625, -0.017181396484375, -0.016510009765625, 0.04083251953125, -0.04693603515625, 0.0297088623046875, -0.0235748291015625, 0.004459381103515625, 0.02545166015625, 0.0110626220703125, 0.0262451171875, -0.0262298583984375, 0.055908203125, 0.0033016204833984375, 0.04766845703125, -0.004558563232421875, 0.009613037109375, -0.01036834716796875, 0.01454925537109375, -0.0285797119140625, -0.00749969482421875, 0.005039215087890625, -0.033966064453125, 0.0130767822265625, 0.005298614501953125, -0.028839111328125, 0.0077056884765625, -0.044342041015625, -0.022308349609375, -0.019317626953125, -0.011383056640625 ]
570d0e5b3d3e2746f5d2a9e534b339943f0839e7
Wordpress Stackexchange Q: Posts in multiple Categories different single.php I am smashing my head against some code. Here is the situation: I have one post in 3 different categories, this post has to be visible in "category 1" with the single1.php, in "category 2" with single2.php and in "category 3" with single3.php. Obviously the 3 single.php pages have a different template inside. For example the single1.php shows pictures and the_content(); single2.php shows pictures and comments; single3.php shows the reviews. I know that in single.php I can use the if/else but I cannot figure out if the same post is in 3 different categories. Any help please? A: You can use the filter hook for 'single_template'. Create single-cat1.php, single-cat2.php and single-cat3.php (cat1, cat2 and cat3 are the category names should be replaced by your category names) function template_change( $template ){ if( is_single() && in_category('cat1') ){ $templates = array("single-cat1.php"); } elseif( is_single() && in_category('cat2') ){ $templates = array("single-cat2.php"); } elseif( is_single() && in_category('cat3') ){ $templates = array("single-cat3.php"); } $template = locate_template( $templates ); return $template; } add_filter( 'single_template', 'template_change' ); //'template_include'/'single_template'
Q: Posts in multiple Categories different single.php I am smashing my head against some code. Here is the situation: I have one post in 3 different categories, this post has to be visible in "category 1" with the single1.php, in "category 2" with single2.php and in "category 3" with single3.php. Obviously the 3 single.php pages have a different template inside. For example the single1.php shows pictures and the_content(); single2.php shows pictures and comments; single3.php shows the reviews. I know that in single.php I can use the if/else but I cannot figure out if the same post is in 3 different categories. Any help please? A: You can use the filter hook for 'single_template'. Create single-cat1.php, single-cat2.php and single-cat3.php (cat1, cat2 and cat3 are the category names should be replaced by your category names) function template_change( $template ){ if( is_single() && in_category('cat1') ){ $templates = array("single-cat1.php"); } elseif( is_single() && in_category('cat2') ){ $templates = array("single-cat2.php"); } elseif( is_single() && in_category('cat3') ){ $templates = array("single-cat3.php"); } $template = locate_template( $templates ); return $template; } add_filter( 'single_template', 'template_change' ); //'template_include'/'single_template' A: Instead of making it category specific you could use post formats and use different content-templates. In single.php you can write <?php get_template_part( 'content', get_post_format() ); ?> Then create different post formats add_theme_support( 'post-formats', array( 'withpictures', 'withcomments' ) ); Then create different post templates content-withpictures.php, content-withcomments.php When creating content the chosen post format will determine the template. A: You can change it on header.php if template using single-cat1.php, header.php must change style sheet Ex: <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ca1.css">
wordpress
{ "language": "en", "length": 257, "provenance": "stackexchange_00019.jsonl.gz:425006", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69928" }
[ 0.0384521484375, 0.006305694580078125, 0.0023708343505859375, -0.053955078125, 0.036651611328125, -0.01439666748046875, 0.039031982421875, -0.0243377685546875, 0.007671356201171875, 0.0238037109375, -0.04119873046875, 0.007205963134765625, -0.0289459228515625, -0.01332855224609375, -0.0227813720703125, -0.0307159423828125, 0.019683837890625, -0.01494598388671875, 0.0254669189453125, -0.0061187744140625, 0.004680633544921875, 0.0118560791015625, 0.0094451904296875, 0.0465087890625, 0.0140228271484375, -0.036468505859375, 0.05303955078125, -0.049530029296875, 0.00569915771484375, -0.0302581787109375, 0.0022754669189453125, 0.037200927734375, 0.0233917236328125, 0.0148468017578125, -0.021728515625, 0.019683837890625, -0.01100921630859375, -0.0002040863037109375, 0.00302886962890625, 0.0228271484375, 0.01467132568359375, -0.00919342041015625, 0.06793212890625, 0.0173492431640625, 0.033905029296875, -0.0211181640625, 0.02557373046875, -0.07568359375, 0.037078857421875, -0.0205535888671875, 0.0216522216796875, -0.040740966796875, 0.0240325927734375, -0.0318603515625, -0.0237884521484375, 0.01953125, -0.02740478515625, 0.0081634521484375, 0.03729248046875, 0.0110931396484375, -0.03704833984375, -0.027130126953125, 0.01009368896484375, -0.045989990234375, -0.0302734375, 0.0030364990234375, 0.0002815723419189453, 0.0063323974609375, -0.02197265625, -0.04449462890625, 0.0258026123046875, 0.0033855438232421875, 0.00371551513671875, -0.02081298828125, -0.027984619140625, 0.01535797119140625, -0.00188446044921875, -0.017181396484375, 0.0149993896484375, -0.01513671875, -0.01026153564453125, 0.0165863037109375, -0.0243072509765625, -0.055511474609375, 0.0196380615234375, -0.01093292236328125, -0.014892578125, 0.0009813308715820312, -0.03045654296875, -0.0172119140625, -0.0244903564453125, -0.04205322265625, -0.036529541015625, 0.00791168212890625, 0.003955841064453125, -0.0166015625, 0.0208282470703125, 0.08148193359375, -0.0215911865234375, -0.0015897750854492188, -0.01387786865234375, -0.02911376953125, -0.0177154541015625, -0.033416748046875, 0.01361083984375, 0.033050537109375, -0.00186920166015625, 0.01259613037109375, 0.056396484375, 0.029571533203125, 0.00843048095703125, 0.05731201171875, -0.016845703125, 0.01183319091796875, -0.04425048828125, 0.0008902549743652344, -0.044769287109375, -0.0018444061279296875, -0.021728515625, 0.02490234375, 0.01241302490234375, 0.03125, 0.0455322265625, -0.04852294921875, -0.002727508544921875, -0.001033782958984375, -0.0255889892578125, -0.07073974609375, 0.00028443336486816406, 0.000005602836608886719, -0.00920867919921875, 0.02099609375, 0.0259552001953125, 0.023834228515625, -0.0151824951171875, -0.0019512176513671875, 0.01477813720703125, 0.0211334228515625, -0.0028858184814453125, -0.003604888916015625, 0.0105133056640625, -0.01526641845703125, 0.0009918212890625, -0.01183319091796875, 0.007354736328125, 0.016204833984375, 0.03106689453125, 0.00936126708984375, 0.004032135009765625, -0.032958984375, 0.00782012939453125, 0.007472991943359375, 0.032440185546875, -0.0027942657470703125, -0.0238189697265625, -0.0195159912109375, -0.0345458984375, -0.006641387939453125, -0.0016031265258789062, -0.0310516357421875, 0.03314208984375, 0.00476837158203125, 0.0288238525390625, -0.04718017578125, -0.0645751953125, 0.0034770965576171875, -0.0819091796875, -0.019927978515625, 0.00628662109375, -0.040130615234375, -0.0472412109375, 0.01873779296875, 0.0171356201171875, -0.015533447265625, -0.005855560302734375, 0.02862548828125, -0.033447265625, 0.00978851318359375, 0.028167724609375, 0.0307769775390625, 0.0012884140014648438, -0.0273284912109375, 0.00708770751953125, 0.024261474609375, -0.08489990234375, 0.047882080078125, -0.0028438568115234375, 0.034332275390625, 0.0184326171875, 0.0004394054412841797, 0.0712890625, 0.016693115234375, -0.0013427734375, 0.004116058349609375, -0.0118560791015625, -0.0219573974609375, 0.003772735595703125, 0.0083770751953125, -0.00994110107421875, -0.01311492919921875, 0.0063323974609375, 0.01409149169921875, -0.00542449951171875, 0.019622802734375, -0.01178741455078125, 0.0004107952117919922, -0.01153564453125, 0.0201263427734375, -0.07012939453125, 0.021392822265625, 0.030059814453125, -0.025421142578125, -0.01180267333984375, -0.002552032470703125, 0.04632568359375, -0.0001125335693359375, 0.007232666015625, 0.009765625, -0.0110626220703125, -0.00433349609375, -0.004756927490234375, -0.00501251220703125, -0.019927978515625, 0.03912353515625, 0.06329345703125, 0.01548004150390625, -0.03173828125, -0.0125579833984375, -0.0208587646484375, 0.052398681640625, -0.14013671875, 0.0296173095703125, 0.0199127197265625, 0.039215087890625, -0.0299835205078125, 0.025909423828125, 0.044403076171875, 0.03338623046875, -0.005794525146484375, 0.01477813720703125, 0.021759033203125, 0.01276397705078125, -0.0183258056640625, 0.007045745849609375, 0.0411376953125, -0.046600341796875, -0.00922393798828125, -0.00821685791015625, 0.00264739990234375, 0.0249481201171875, -0.006664276123046875, 0.01535797119140625, 0.0181732177734375, -0.055328369140625, 0.01904296875, 0.02874755859375, -0.0099029541015625, -0.0032405853271484375, 0.01380157470703125, 0.00154876708984375, -0.00785064697265625, 0.0084381103515625, 0.0027217864990234375, -0.00804901123046875, 0.065185546875, -0.0250701904296875, 0.034515380859375, 0.005725860595703125, -0.0232086181640625, -0.0005574226379394531, 0.01032257080078125, -0.0199127197265625, 0.01104736328125, 0.00897216796875, -0.055938720703125, 0.07342529296875, -0.0217132568359375, 0.006519317626953125, 0.0177459716796875, 0.00920867919921875, -0.01427459716796875, 0.081787109375, -0.0219879150390625, -0.030059814453125, -0.052764892578125, -0.052978515625, -0.0281219482421875, -0.033294677734375, 0.02252197265625, 0.01548004150390625, 0.02972412109375, 0.054779052734375, 0.0096282958984375, 0.035186767578125, -0.0050811767578125, 0.0080413818359375, 0.040557861328125, -0.0219573974609375, 0.036834716796875, -0.03265380859375, 0.01995849609375, 0.04071044921875, -0.0239410400390625, 0.00946807861328125, 0.00634002685546875, 0.0218505859375, 0.04180908203125, -0.00862884521484375, -0.021636962890625, -0.00824737548828125, -0.004543304443359375, -0.0085906982421875, 0.00043654441833496094, 0.0283203125, 0.00623321533203125, -0.03912353515625, 0.018463134765625, 0.0110321044921875, -0.01280975341796875, -0.020599365234375, 0.01511383056640625, -0.034881591796875, 0.046051025390625, -0.005100250244140625, -0.0027599334716796875, -0.04840087890625, 0.0027923583984375, 0.0083160400390625, 0.03997802734375, -0.007595062255859375, -0.07666015625, -0.0250091552734375, -0.072509765625, -0.0023822784423828125, -0.0117034912109375, 0.0029888153076171875, 0.0020084381103515625, 0.0865478515625, 0.012359619140625, -0.084228515625, -0.007152557373046875, 0.0438232421875, -0.033203125, 0.01409912109375, -0.0017633438110351562, -0.018096923828125, 0.0124664306640625, 0.00994873046875, -0.0308837890625, 0.009918212890625, -0.00539398193359375, -0.024078369140625, -0.00882720947265625, 0.01303863525390625, 0.037078857421875, -0.0462646484375, -0.005340576171875, 0.037628173828125, 0.0208740234375, -0.01348114013671875, -0.03717041015625, -0.0268707275390625, -0.059112548828125, 0.03521728515625, 0.059478759765625, 0.004833221435546875, -0.01800537109375, 0.002330780029296875, -0.0303497314453125, -0.0158233642578125, -0.0439453125, -0.040802001953125, 0.052276611328125, 0.0108489990234375, 0.01517486572265625, 0.0215301513671875, -0.07568359375, -0.052764892578125, 0.001987457275390625, -0.062103271484375, -0.0214080810546875, -0.039794921875, 0.0200347900390625, -0.0249176025390625, -0.0289764404296875, 0.04315185546875, -0.01165771484375, -0.0014677047729492188, -0.0287017822265625, -0.0236358642578125, -0.00713348388671875, 0.054595947265625, -0.09490966796875, -0.0167083740234375, -0.0012187957763671875, 0.005329132080078125, 0.0176239013671875, -0.018768310546875, -0.032806396484375, -0.0155029296875, -0.032989501953125, 0.01342010498046875, -0.0121307373046875, -0.01262664794921875, -0.0279083251953125, -0.0008172988891601562, -0.033966064453125, -0.01136016845703125, 0.021331787109375, -0.0135955810546875, 0.032073974609375, -0.01363372802734375, 0.008544921875, -0.026092529296875, 0.005413055419921875, -0.044677734375, -0.0120697021484375, -0.006443023681640625, -0.01043701171875, 0.01378631591796875, 0.0198822021484375, -0.016357421875, -0.0040130615234375, 0.032623291015625, -0.0044708251953125, 0.0173492431640625, -0.0091400146484375, 0.0146026611328125, 0.0214996337890625, -0.0341796875, -0.021514892578125, -0.0182647705078125, -0.031463623046875, -0.032928466796875, -0.01519775390625, -0.003185272216796875, -0.0239410400390625, -0.013092041015625, -0.0061798095703125, -0.005184173583984375, -0.04608154296875, -0.0147857666015625, 0.0399169921875, 0.02215576171875, -0.0112762451171875, 0.0250701904296875, -0.00496673583984375, -0.036529541015625, 0.0289306640625, -0.005382537841796875, -0.0233306884765625, 0.0247039794921875, 0.05828857421875, 0.0199127197265625, -0.0243377685546875, -0.077392578125, 0.0063934326171875, 0.051361083984375, 0.0257568359375, 0.02496337890625, 0.026611328125, -0.03472900390625, 0.04986572265625, 0.034271240234375, 0.001934051513671875, -0.018157958984375, 0.0655517578125, -0.005092620849609375, -0.011566162109375, 0.0162811279296875, -0.01555633544921875, 0.019989013671875, 0.0167388916015625, -0.00864410400390625, -0.0252685546875, -0.0012035369873046875, 0.052093505859375, 0.01131439208984375, -0.013092041015625, -0.05279541015625, -0.01800537109375, -0.00742340087890625, 0.0445556640625, 0.06317138671875, 0.053741455078125, 0.00542449951171875, 0.056427001953125, 0.042755126953125, -0.004428863525390625, -0.0154571533203125, 0.0310211181640625, -0.0222015380859375, 0.0305023193359375, -0.01256561279296875, -0.0221710205078125, -0.03271484375, -0.00009930133819580078, -0.0141448974609375, -0.00555419921875, -0.0384521484375, -0.01837158203125, 0.01129913330078125, 0.03167724609375, 0.011474609375, -0.038330078125, 0.032135009765625, -0.00572967529296875, -0.01490020751953125, 0.018890380859375, -0.05682373046875, -0.030853271484375, -0.032623291015625, -0.02606201171875, 0.00330352783203125, -0.0280609130859375, 0.06427001953125, -0.029510498046875, 0.00481414794921875, 0.01412200927734375, -0.01435089111328125, 0.01389312744140625, 0.007350921630859375, -0.0029163360595703125, 0.02960205078125, 0.006786346435546875, -0.0140380859375, -0.016571044921875, 0.02581787109375, -0.03564453125, -0.02398681640625, 0.0155029296875, 0.0311279296875, -0.00919342041015625, -0.0016765594482421875, 0.0206146240234375, 0.0350341796875, -0.011962890625, 0.01300811767578125, 0.02105712890625, -0.0175323486328125, -0.01174163818359375, 0.0201568603515625, 0.01381683349609375, 0.01093292236328125, -0.024383544921875, -0.0474853515625, -0.05889892578125, -0.01629638671875, 0.007526397705078125, -0.031219482421875, 0.0025730133056640625, -0.0104827880859375, -0.058837890625, -0.03253173828125, 0.004302978515625, -0.028717041015625, -0.019805908203125, 0.006130218505859375, -0.0122833251953125, -0.0111083984375, -0.0175933837890625, 0.033599853515625, -0.0002224445343017578, -0.039947509765625, 0.04522705078125, -0.00176239013671875, 0.059478759765625, 0.0247955322265625, -0.052703857421875, 0.00806427001953125, -0.06488037109375, -0.0258941650390625, -0.0214385986328125, -0.055633544921875, -0.0416259765625, -0.0092926025390625, -0.007373809814453125, 0.0120849609375, 0.007389068603515625, 0.01396942138671875, -0.0040435791015625, 0.00958251953125, -0.0226593017578125, 0.031890869140625, -0.01082611083984375, 0.053924560546875, 0.02685546875, 0.050811767578125, 0.0204315185546875, -0.0000997781753540039, -0.049041748046875, -0.0080718994140625, -0.01300048828125, -0.055572509765625, 0.018768310546875, 0.02001953125, -0.028900146484375, 0.0202484130859375, 0.050445556640625, 0.0140228271484375, -0.031829833984375, -0.0089263916015625, 0.0034961700439453125, -0.012603759765625, 0.01654052734375, 0.020660400390625, -0.05328369140625, 0.02313232421875, 0.004425048828125, 0.01425933837890625, -0.01148223876953125, -0.038482666015625, 0.014190673828125, 0.01331329345703125, 0.001308441162109375, 0.0206756591796875, -0.038330078125, 0.042236328125, 0.03314208984375, 0.022308349609375, 0.0258026123046875, 0.01183319091796875, 0.013427734375, -0.032684326171875, -0.054107666015625, 0.050079345703125, 0.06201171875, 0.0430908203125, -0.040740966796875, 0.00724029541015625, 0.023193359375, -0.034423828125, 0.0167388916015625, 0.040740966796875, 0.0284576416015625, -0.056884765625, -0.0053558349609375, -0.0035305023193359375, -0.0118865966796875, 0.0249786376953125, 0.006855010986328125, -0.0143585205078125, -0.0103759765625, 0.0044708251953125, 0.01380157470703125, -0.0225067138671875, 0.0038509368896484375, 0.0141754150390625, 0.0011196136474609375, 0.0065765380859375, 0.034423828125, 0.0018033981323242188, -0.062164306640625, -0.007717132568359375, 0.03131103515625, -0.0056915283203125, -0.0259246826171875, -0.005115509033203125, 0.035980224609375, -0.030120849609375, -0.055084228515625, 0.038055419921875, -0.01511383056640625, 0.0015249252319335938, 0.00504302978515625, -0.024871826171875, 0.021026611328125, 0.035186767578125, -0.023773193359375, 0.01380157470703125, 0.0150604248046875, -0.04815673828125, -0.033172607421875, -0.004550933837890625, 0.02777099609375, 0.04693603515625, -0.0716552734375, 0.0202484130859375, -0.037384033203125, 0.01153564453125, -0.0167236328125, -0.020050048828125, 0.04168701171875, 0.0249786376953125, -0.043121337890625, 0.03192138671875, 0.0177001953125, -0.0229644775390625, 0.03228759765625, 0.0260162353515625, -0.06671142578125, -0.0848388671875, 0.0482177734375, -0.0875244140625, -0.01434326171875, 0.024017333984375, -0.11505126953125, 0.0948486328125, 0.0081939697265625, 0.091064453125, 0.01163482666015625, 0.0020389556884765625, -0.0300140380859375, -0.032867431640625, -0.0177001953125, 0.0396728515625, 0.0022068023681640625, 0.05743408203125, -0.027557373046875, -0.00804901123046875, 0.038421630859375, 0.06402587890625, 0.05218505859375, 0.00884246826171875, -0.0006814002990722656, 0.0007767677307128906, 0.047027587890625, 0.04296875, -0.01456451416015625, 0.0030422210693359375, -0.0235443115234375, -0.005939483642578125, -0.0065155029296875, 0.00978851318359375, 0.0428466796875, -0.0180511474609375, -0.056182861328125, 0.0161285400390625, 0.03125, 0.05438232421875, -0.0093536376953125, 0.0307464599609375, -0.05438232421875, -0.0029506683349609375, 0.05389404296875, -0.01268768310546875, -0.01171112060546875, 0.01739501953125, -0.015228271484375, -0.03607177734375, 0.03436279296875, -0.03204345703125, 0.0298919677734375, -0.01175689697265625, 0.01374053955078125, 0.043731689453125, 0.01529693603515625, 0.05645751953125, -0.00725555419921875, 0.00315093994140625, -0.0048370361328125, 0.01067352294921875, 0.047637939453125, 0.04693603515625, 0.039093017578125, 0.0128021240234375, 0.043426513671875, 0.00262451171875, 0.034820556640625, -0.047821044921875, -0.035064697265625, 0.0094146728515625, 0.026031494140625, -0.007564544677734375, 0.0267181396484375, 0.0250396728515625, 0.027191162109375, 0.077392578125, -0.068359375, -0.0208587646484375, 0.042633056640625, -0.00606536865234375, -0.00780487060546875, -0.0219573974609375, 0.015625, -0.01342010498046875, -0.06573486328125, 0.029327392578125, 0.033782958984375, 0.08746337890625, 0.01154327392578125, 0.05682373046875, -0.0294647216796875, -0.0377197265625, -0.00536346435546875, 0.01052093505859375, -0.0138397216796875, -0.0011720657348632812, -0.0458984375, -0.053985595703125, 0.01551055908203125, 0.044281005859375, 0.0103912353515625, 0.0283203125, 0.0401611328125, 0.046173095703125, 0.004505157470703125, -0.018096923828125, 0.03692626953125, -0.0093994140625, 0.001041412353515625, -0.01409912109375, -0.04150390625, -0.0127716064453125, -0.0284271240234375, 0.007564544677734375, 0.00972747802734375, 0.003765106201171875, -0.0328369140625, 0.01154327392578125, -0.00060272216796875, -0.03350830078125, 0.05047607421875, 0.01377105712890625, 0.0670166015625, 0.01080322265625, -0.07537841796875, -0.02288818359375, -0.004337310791015625, -0.048736572265625, 0.033660888671875, 0.04791259765625, -0.036468505859375, 0.0294647216796875, 0.019927978515625, -0.0291900634765625, 0.004169464111328125, 0.0038547515869140625, 0.024322509765625, -0.0237274169921875, -0.0026264190673828125, -0.0017099380493164062, -0.0196990966796875, -0.005657196044921875, 0.00081634521484375, 0.0450439453125, 0.00844573974609375, 0.05902099609375, -0.02716064453125, 0.019256591796875, -0.020538330078125, 0.052825927734375, -0.07598876953125, -0.044769287109375, 0.07135009765625, -0.040924072265625, -0.0155792236328125, 0.0143280029296875, 0.0281524658203125, -0.0017919540405273438, 0.07073974609375, -0.040496826171875, -0.003627777099609375, -0.01267242431640625, 0.00748443603515625, -0.03802490234375, 0.06842041015625, -0.0037364959716796875, -0.005146026611328125, -0.06536865234375, -0.031402587890625, 0.073486328125, 0.05755615234375, -0.000988006591796875, 0.0281219482421875, -0.003437042236328125, -0.01554107666015625, 0.0022869110107421875, 0.0028934478759765625, -0.01433563232421875, 0.03375244140625, -0.0043182373046875, -0.01190185546875, 0.00914764404296875, -0.01519012451171875, -0.008026123046875, 0.0174102783203125, 0.013702392578125, -0.0036468505859375, -0.0232086181640625, 0.03253173828125, 0.006740570068359375, -0.00679779052734375, -0.061767578125, -0.02154541015625, 0.083740234375, -0.0186767578125, -0.009765625, 0.038848876953125, -0.034332275390625, -0.0124359130859375, -0.00409698486328125, -0.01197052001953125, -0.00766754150390625, -0.046295166015625, -0.060699462890625, -0.0221405029296875, 0.02899169921875, -0.0256805419921875, 0.02105712890625, -0.036651611328125, -0.049102783203125, 0.02105712890625, -0.019683837890625, -0.01800537109375, 0.0281982421875, 0.0186920166015625, -0.033721923828125, 0.04449462890625, -0.0161285400390625, -0.054931640625, 0.0233001708984375, 0.005847930908203125, 0.037841796875, -0.0127410888671875, -0.043670654296875, -0.0059356689453125, 0.00862884521484375, 0.03387451171875, -0.0170440673828125, -0.002033233642578125, 0.03082275390625, -0.0030727386474609375, -0.043853759765625, -0.0218353271484375, 0.0297393798828125, -0.01151275634765625, -0.03857421875, 0.010009765625, 0.002613067626953125, 0.0244293212890625, -0.049163818359375, -0.09454345703125, 0.05548095703125, -0.0219573974609375, -0.03314208984375, -0.04248046875, -0.0035190582275390625, -0.0203704833984375, 0.034698486328125, -0.0105743408203125, -0.0237579345703125, -0.0143890380859375, 0.048126220703125, 0.01317596435546875, 0.0215606689453125, 0.0240478515625, -0.004863739013671875, -0.029266357421875, 0.008453369140625, -0.00592041015625, -0.007099151611328125, -0.01525115966796875, -0.01023101806640625, 0.0098724365234375, 0.01568603515625, -0.040283203125, -0.0343017578125, 0.0197601318359375, 0.0258026123046875, 0.0196380615234375, -0.033782958984375, -0.0675048828125, -0.033721923828125, 0.067138671875, 0.04840087890625, 0.030120849609375, -0.03216552734375, 0.02935791015625, -0.04437255859375, -0.08319091796875, 0.00804901123046875, 0.0306854248046875, -0.053558349609375, 0.004543304443359375, 0.03411865234375, -0.0234832763671875, -0.024627685546875, 0.0205230712890625, -0.055450439453125, 0.0010080337524414062, -0.006725311279296875, -0.004634857177734375, -0.03271484375, 0.016693115234375, 0.017486572265625, -0.024444580078125, -0.038787841796875, -0.032806396484375, 0.002620697021484375, -0.035400390625, -0.05029296875, 0.00853729248046875, 0.0231475830078125, -0.03778076171875, -0.02667236328125, 0.04388427734375, 0.0272369384765625, 0.0169677734375, -0.0093536376953125, -0.0154571533203125, 0.001186370849609375, 0.0182647705078125, -0.01303863525390625, -0.037750244140625, 0.01068115234375, -0.004726409912109375, 0.0531005859375, 0.017608642578125, 0.044891357421875, 0.0007634162902832031, 0.0328369140625, -0.01477813720703125, -0.0197601318359375, -0.0291748046875, -0.004322052001953125, -0.0143280029296875, 0.001949310302734375, -0.0147705078125, -0.0467529296875, 0.027496337890625, -0.0006799697875976562, 0.008514404296875, 0.024688720703125 ]
df5fed31e6f0c2e565902e838632273c8347b57e
Wordpress Stackexchange Q: Get rid of Wordpress category, tag and author archives? I have searched the net with no success on what should be an easy thing. I have a highly customized blog with pages, sub pages and posts. While I rely heavily on the use of categories and tags I don't want them to be viewable in a url. The same goes for authors and date categories. Basically I wan't to throw a 404 error if someone tries to access these pages. Can someone point me in the right direction? Thanks! The following should not be accessible: * *example.com/category/books/ *example.com/tag/ebooks/ *example.com/author/dickens/ *example.com/2012/10/ A: building on chrisguitarguy's answer here is a quick snippet you can drop in your theme's functions.php file to do job add_action('template_redirect', 'wpse69948_archive_disabler'); function wpse69948_archive_disabler() { if(is_tag() || is_category() || is_date() || is_author()) { global $wp_query; $wp_query->set_404(); } }
Q: Get rid of Wordpress category, tag and author archives? I have searched the net with no success on what should be an easy thing. I have a highly customized blog with pages, sub pages and posts. While I rely heavily on the use of categories and tags I don't want them to be viewable in a url. The same goes for authors and date categories. Basically I wan't to throw a 404 error if someone tries to access these pages. Can someone point me in the right direction? Thanks! The following should not be accessible: * *example.com/category/books/ *example.com/tag/ebooks/ *example.com/author/dickens/ *example.com/2012/10/ A: building on chrisguitarguy's answer here is a quick snippet you can drop in your theme's functions.php file to do job add_action('template_redirect', 'wpse69948_archive_disabler'); function wpse69948_archive_disabler() { if(is_tag() || is_category() || is_date() || is_author()) { global $wp_query; $wp_query->set_404(); } } A: I wrote a plugin for this -- that needs some updating, but it should still work fine. Essentially you hook in some place late after WordPress knows what page is requested (like template_redirect), use one of the conditional functions and either use $wp_query->set_404() or just redirect the user to a page of your choice. To disable categories, tags, author and date archives: <?php add_action('template_redirect', 'wpse69948_tag_disabler'); function wpse69948_tag_disabler() { if(is_tag() || is_category() || is_date() || is_author()) { global $wp_query; $wp_query->set_404(); } }
wordpress
{ "language": "en", "length": 222, "provenance": "stackexchange_00019.jsonl.gz:425010", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69948" }
[ 0.0806884765625, 0.033966064453125, -0.01288604736328125, -0.0439453125, 0.055389404296875, -0.05718994140625, 0.054931640625, -0.03228759765625, 0.0281982421875, 0.025115966796875, 0.02288818359375, -0.044097900390625, 0.052032470703125, -0.0545654296875, -0.01495361328125, -0.00939178466796875, 0.01552581787109375, -0.0097808837890625, 0.03607177734375, 0.0031185150146484375, 0.0203857421875, 0.005115509033203125, 0.032806396484375, -0.01251983642578125, 0.02264404296875, -0.0197601318359375, 0.09307861328125, -0.0268402099609375, 0.017822265625, -0.047119140625, 0.015228271484375, -0.01861572265625, -0.005809783935546875, 0.032135009765625, 0.002025604248046875, 0.0184326171875, -0.0150909423828125, 0.035980224609375, 0.0229034423828125, -0.002166748046875, 0.01543426513671875, -0.013397216796875, -0.03009033203125, -0.031829833984375, -0.00736236572265625, -0.04888916015625, 0.043365478515625, -0.0261993408203125, -0.013946533203125, -0.00698089599609375, -0.01001739501953125, 0.043426513671875, 0.00951385498046875, -0.044769287109375, -0.0205841064453125, -0.0159759521484375, 0.02752685546875, -0.023773193359375, 0.0224761962890625, -0.02642822265625, -0.028594970703125, 0.020477294921875, 0.0208740234375, 0.009033203125, 0.019683837890625, -0.01065826416015625, 0.05731201171875, 0.0283966064453125, -0.03564453125, 0.0308685302734375, 0.033416748046875, -0.015777587890625, -0.0419921875, -0.027191162109375, -0.0247344970703125, 0.029205322265625, -0.014678955078125, -0.05145263671875, -0.002941131591796875, 0.037445068359375, 0.014434814453125, -0.0190582275390625, -0.00911712646484375, -0.00963592529296875, 0.036224365234375, 0.025970458984375, -0.01171112060546875, -0.018341064453125, -0.056396484375, -0.001041412353515625, -0.034942626953125, -0.056640625, -0.036651611328125, 0.007781982421875, 0.0054931640625, -0.0162200927734375, 0.042938232421875, 0.06878662109375, -0.0244598388671875, 0.0088958740234375, -0.00853729248046875, -0.0220794677734375, -0.0249786376953125, -0.026885986328125, 0.017242431640625, 0.06732177734375, -0.007511138916015625, 0.033447265625, 0.06109619140625, 0.007747650146484375, 0.0266571044921875, 0.00545501708984375, -0.020599365234375, -0.0145721435546875, -0.00872802734375, 0.0311126708984375, -0.029205322265625, 0.0189361572265625, -0.0047760009765625, 0.01522064208984375, 0.00949859619140625, 0.0197906494140625, -0.02117919921875, -0.0169830322265625, 0.011505126953125, -0.0030002593994140625, -0.023284912109375, 0.003505706787109375, 0.06292724609375, -0.0012121200561523438, -0.020660400390625, 0.00844573974609375, -0.01110076904296875, -0.019134521484375, -0.0005884170532226562, -0.0054931640625, 0.03851318359375, -0.032196044921875, 0.003337860107421875, 0.0155181884765625, 0.0182952880859375, -0.01351165771484375, -0.0024929046630859375, -0.0035495758056640625, 0.0159912109375, 0.01006317138671875, 0.0012998580932617188, 0.0243072509765625, 0.023834228515625, -0.03546142578125, 0.01412200927734375, -0.01514434814453125, 0.07562255859375, -0.01425933837890625, -0.02691650390625, -0.043426513671875, 0.0692138671875, -0.040374755859375, -0.048431396484375, -0.08074951171875, 0.023651123046875, 0.01605224609375, 0.0208587646484375, 0.0012493133544921875, -0.006725311279296875, -0.033233642578125, -0.044677734375, -0.0102386474609375, 0.02520751953125, -0.0018186569213867188, 0.0022487640380859375, -0.04998779296875, -0.00156402587890625, 0.039276123046875, 0.0099945068359375, 0.0655517578125, -0.007457733154296875, 0.00997161865234375, -0.0113067626953125, 0.087890625, 0.034210205078125, -0.0240631103515625, 0.00611114501953125, -0.0014801025390625, -0.0849609375, 0.053466796875, 0.0146484375, 0.06915283203125, 0.008758544921875, -0.01593017578125, 0.09783935546875, 0.0250091552734375, -0.02020263671875, 0.0005373954772949219, 0.01244354248046875, -0.01324462890625, -0.0157928466796875, -0.002101898193359375, 0.0162506103515625, -0.0239105224609375, 0.01035308837890625, 0.06634521484375, -0.0273284912109375, 0.0086822509765625, -0.04266357421875, 0.053466796875, -0.0163726806640625, 0.050994873046875, -0.0022602081298828125, 0.0484619140625, 0.0285797119140625, 0.0234222412109375, -0.0596923828125, 0.02679443359375, 0.0197601318359375, 0.01013946533203125, 0.0113983154296875, 0.0062408447265625, -0.0065765380859375, -0.00006949901580810547, 0.0027942657470703125, 0.0007233619689941406, 0.006175994873046875, 0.032470703125, 0.035980224609375, -0.012786865234375, -0.0257110595703125, -0.026275634765625, 0.01125335693359375, 0.0188446044921875, -0.0660400390625, 0.031707763671875, 0.07470703125, 0.023345947265625, -0.042205810546875, 0.005954742431640625, 0.007007598876953125, -0.044036865234375, -0.0165557861328125, 0.05902099609375, 0.0273590087890625, -0.035552978515625, -0.052581787109375, -0.04815673828125, 0.01171112060546875, -0.084228515625, -0.0243377685546875, -0.004131317138671875, 0.0228729248046875, 0.0290679931640625, -0.0203857421875, -0.00807952880859375, 0.0294952392578125, -0.01020050048828125, 0.029998779296875, 0.037109375, -0.00325775146484375, -0.0031261444091796875, 0.01100921630859375, -0.02020263671875, 0.02691650390625, 0.00397491455078125, -0.04473876953125, 0.00812530517578125, 0.053924560546875, 0.00310516357421875, 0.031402587890625, 0.030731201171875, -0.030181884765625, 0.011474609375, -0.0008168220520019531, -0.00319671630859375, 0.01198577880859375, 0.0236053466796875, 0.006214141845703125, -0.03057861328125, 0.00922393798828125, -0.007663726806640625, -0.00931549072265625, -0.00872039794921875, -0.0137481689453125, 0.04229736328125, -0.00450897216796875, -0.0080413818359375, -0.0606689453125, -0.04559326171875, 0.025360107421875, 0.0204925537109375, -0.048919677734375, -0.02838134765625, -0.0010099411010742188, 0.0217132568359375, 0.0009984970092773438, 0.003871917724609375, 0.02838134765625, -0.01258087158203125, -0.01934814453125, -0.05877685546875, 0.0609130859375, -0.02947998046875, 0.07275390625, 0.09625244140625, -0.004638671875, 0.044219970703125, 0.02008056640625, -0.0350341796875, 0.0131072998046875, 0.0282745361328125, 0.01178741455078125, 0.021484375, -0.069091796875, 0.013519287109375, 0.031402587890625, 0.0038433074951171875, 0.04229736328125, -0.0226287841796875, 0.00856781005859375, 0.0389404296875, -0.0809326171875, -0.084716796875, 0.0419921875, -0.0379638671875, 0.01123809814453125, 0.03826904296875, -0.034423828125, -0.04351806640625, 0.0755615234375, -0.00031876564025878906, 0.038238525390625, -0.044403076171875, -0.08709716796875, -0.04888916015625, -0.08648681640625, -0.0232086181640625, 0.0064849853515625, 0.006587982177734375, 0.007049560546875, 0.09112548828125, 0.00531005859375, -0.088134765625, -0.017730712890625, -0.016845703125, -0.009979248046875, 0.0311126708984375, -0.00431060791015625, 0.0229949951171875, 0.005767822265625, 0.022918701171875, 0.0231781005859375, 0.0244903564453125, -0.024505615234375, -0.0273284912109375, 0.0139923095703125, 0.01202392578125, 0.01861572265625, 0.010345458984375, -0.0110626220703125, -0.00859832763671875, 0.005558013916015625, -0.0494384765625, -0.0212860107421875, -0.01062774658203125, -0.0283355712890625, 0.01401519775390625, -0.0088043212890625, 0.0072021484375, 0.01039886474609375, 0.004558563232421875, 0.027313232421875, 0.0288238525390625, -0.01087188720703125, -0.00553131103515625, 0.04132080078125, 0.0028209686279296875, 0.0218048095703125, -0.0236968994140625, 0.031219482421875, -0.0278472900390625, -0.005161285400390625, 0.0016021728515625, -0.03240966796875, -0.0083465576171875, -0.0277862548828125, -0.0015287399291992188, -0.045928955078125, 0.03369140625, -0.056060791015625, -0.038482666015625, -0.01247406005859375, -0.002941131591796875, 0.00801849365234375, 0.0264434814453125, -0.0304718017578125, -0.0007233619689941406, -0.004940032958984375, 0.0011272430419921875, -0.00786590576171875, -0.03082275390625, -0.03375244140625, -0.01007080078125, -0.0716552734375, 0.03155517578125, -0.00994110107421875, -0.007312774658203125, -0.0230560302734375, -0.007232666015625, -0.0242462158203125, -0.035491943359375, 0.019439697265625, 0.0034027099609375, 0.01116180419921875, -0.0386962890625, 0.005367279052734375, -0.037506103515625, -0.01983642578125, -0.0139007568359375, -0.0946044921875, -0.01348114013671875, -0.0016012191772460938, 0.05401611328125, -0.0310821533203125, 0.0233306884765625, -0.03631591796875, 0.052978515625, 0.007427215576171875, 0.0031070709228515625, 0.012237548828125, -0.0082244873046875, 0.00023543834686279297, 0.0117645263671875, 0.007038116455078125, -0.01390838623046875, 0.00440216064453125, -0.020477294921875, -0.0252532958984375, -0.01406097412109375, -0.02886962890625, 0.0122833251953125, -0.005764007568359375, -0.00959014892578125, -0.0523681640625, -0.061614990234375, -0.04302978515625, 0.01145172119140625, -0.0303497314453125, 0.006591796875, -0.04248046875, -0.07281494140625, 0.041717529296875, 0.0097503662109375, -0.0245819091796875, 0.007183074951171875, 0.04534912109375, 0.014007568359375, -0.02734375, -0.0130615234375, 0.0218505859375, 0.0235748291015625, -0.023101806640625, 0.057861328125, 0.0103607177734375, -0.011993408203125, 0.04290771484375, -0.0288543701171875, -0.0150604248046875, -0.05462646484375, 0.0870361328125, -0.01959228515625, -0.0033550262451171875, -0.00342559814453125, -0.06573486328125, 0.076416015625, 0.0222015380859375, 0.007740020751953125, -0.0122833251953125, 0.0246734619140625, 0.0204010009765625, -0.0218963623046875, -0.003246307373046875, -0.013946533203125, 0.0014657974243164062, -0.00801849365234375, 0.05902099609375, 0.0213470458984375, 0.022186279296875, -0.0026378631591796875, -0.019073486328125, 0.00424957275390625, -0.0117645263671875, -0.062744140625, -0.057403564453125, -0.03497314453125, 0.009674072265625, -0.05572509765625, -0.017181396484375, -0.006732940673828125, -0.0032958984375, 0.015869140625, -0.004161834716796875, -0.039337158203125, 0.003875732421875, -0.0038738250732421875, 0.021453857421875, 0.036712646484375, -0.059478759765625, 0.04498291015625, 0.02337646484375, -0.0186309814453125, 0.01849365234375, -0.07073974609375, -0.0235137939453125, -0.05230712890625, 0.0130157470703125, 0.004657745361328125, 0.0057525634765625, 0.004901885986328125, 0.06591796875, -0.001163482666015625, 0.03070068359375, -0.032501220703125, 0.006511688232421875, -0.0059814453125, 0.048126220703125, 0.0268707275390625, -0.042999267578125, 0.0037822723388671875, 0.0222015380859375, 0.00010401010513305664, -0.04248046875, 0.013519287109375, 0.04718017578125, 0.034912109375, -0.0093231201171875, -0.055877685546875, 0.01534271240234375, -0.009735107421875, -0.003337860107421875, -0.00006240606307983398, -0.0181427001953125, -0.00982666015625, -0.022735595703125, -0.01568603515625, 0.01947021484375, -0.00630950927734375, -0.01568603515625, 0.0173797607421875, -0.018768310546875, 0.0142059326171875, 0.08465576171875, -0.01873779296875, -0.004913330078125, 0.0002377033233642578, -0.0066375732421875, -0.020172119140625, 0.019805908203125, -0.0030879974365234375, 0.020050048828125, -0.042388916015625, -0.016937255859375, 0.0295562744140625, -0.03765869140625, 0.00972747802734375, -0.020538330078125, 0.0130462646484375, 0.052734375, -0.002956390380859375, 0.09320068359375, 0.046173095703125, -0.0980224609375, 0.00505828857421875, -0.054595947265625, 0.003620147705078125, -0.01480865478515625, -0.0294189453125, -0.0445556640625, -0.0009007453918457031, 0.0173797607421875, 0.0188446044921875, 0.006114959716796875, -0.037567138671875, -0.00691986083984375, 0.00017213821411132812, 0.010406494140625, 0.0026950836181640625, -0.01251220703125, 0.055999755859375, 0.00011968612670898438, 0.0350341796875, 0.00701904296875, 0.02032470703125, -0.00531005859375, -0.018951416015625, -0.00698089599609375, -0.07232666015625, -0.0159759521484375, -0.0005736351013183594, -0.040496826171875, 0.047515869140625, 0.0311126708984375, 0.0181121826171875, -0.026153564453125, -0.0189056396484375, -0.011383056640625, -0.0238800048828125, 0.06500244140625, 0.0034465789794921875, 0.0028247833251953125, -0.02056884765625, 0.01497650146484375, 0.06683349609375, -0.0239715576171875, -0.0098419189453125, -0.0007729530334472656, -0.0037479400634765625, 0.01313018798828125, 0.0258941650390625, -0.00403594970703125, 0.0155487060546875, 0.0278778076171875, 0.01453399658203125, 0.043182373046875, 0.0014352798461914062, 0.029083251953125, -0.01202392578125, 0.00568389892578125, -0.01580810546875, 0.0013685226440429688, 0.0300140380859375, 0.001148223876953125, 0.01160430908203125, 0.02703857421875, -0.01250457763671875, -0.049530029296875, 0.0254974365234375, 0.022430419921875, -0.0389404296875, -0.01374053955078125, 0.03179931640625, 0.0362548828125, -0.022491455078125, 0.0236968994140625, -0.021026611328125, -0.01329803466796875, 0.010589599609375, -0.005794525146484375, -0.0001308917999267578, 0.0025615692138671875, 0.03924560546875, 0.0006608963012695312, -0.0015087127685546875, 0.03216552734375, -0.00054168701171875, -0.05987548828125, 0.0025615692138671875, 0.033905029296875, -0.006229400634765625, -0.0119171142578125, 0.0033931732177734375, 0.0201873779296875, -0.0235443115234375, -0.03851318359375, 0.0234527587890625, 0.01273345947265625, 0.0006732940673828125, -0.007389068603515625, -0.01165771484375, 0.0022430419921875, 0.0014524459838867188, -0.019378662109375, 0.00289154052734375, -0.0275726318359375, -0.04559326171875, -0.0081939697265625, -0.037384033203125, 0.004703521728515625, 0.004669189453125, -0.01074981689453125, 0.0159912109375, -0.00914764404296875, -0.0389404296875, -0.0071868896484375, 0.005001068115234375, 0.08709716796875, -0.0225372314453125, -0.02978515625, 0.0191802978515625, 0.0038547515869140625, -0.0144805908203125, -0.00494384765625, 0.039520263671875, -0.04180908203125, -0.0122528076171875, 0.0281829833984375, -0.00506591796875, 0.01947021484375, 0.006191253662109375, -0.06951904296875, 0.0601806640625, -0.0274505615234375, 0.03546142578125, 0.0209808349609375, 0.01763916015625, -0.007106781005859375, -0.006755828857421875, -0.018463134765625, 0.04669189453125, 0.053070068359375, 0.0157318115234375, 0.01263427734375, -0.01352691650390625, 0.031829833984375, 0.0229949951171875, 0.08514404296875, 0.002834320068359375, 0.007442474365234375, 0.00324249267578125, 0.0272369384765625, 0.009765625, -0.0634765625, 0.0283203125, -0.0261077880859375, -0.0266265869140625, -0.005565643310546875, -0.02276611328125, 0.032012939453125, -0.03955078125, -0.0355224609375, -0.0172271728515625, 0.0178375244140625, 0.0382080078125, -0.024017333984375, -0.01050567626953125, 0.00461578369140625, -0.02374267578125, 0.00809478759765625, -0.01036834716796875, 0.0126953125, 0.0279541015625, 0.057373046875, -0.11566162109375, -0.0192718505859375, -0.03179931640625, 0.060272216796875, 0.0194091796875, 0.032562255859375, 0.0124969482421875, 0.01514434814453125, 0.027587890625, -0.005779266357421875, 0.0161285400390625, 0.01155853271484375, -0.030059814453125, 0.06640625, 0.00946807861328125, 0.031646728515625, -0.03411865234375, 0.00475311279296875, 0.041015625, 0.07513427734375, -0.036224365234375, -0.060791015625, 0.003993988037109375, -0.00841522216796875, 0.0154266357421875, -0.00362396240234375, -0.00384521484375, -0.012359619140625, 0.0277099609375, -0.0218658447265625, 0.002010345458984375, 0.005710601806640625, 0.0163421630859375, -0.006931304931640625, 0.0189666748046875, -0.0168609619140625, -0.004241943359375, -0.0236663818359375, -0.04095458984375, -0.016693115234375, 0.040008544921875, 0.0660400390625, 0.0233612060546875, 0.031982421875, -0.027862548828125, -0.02374267578125, 0.044830322265625, -0.002483367919921875, 0.0164947509765625, -0.06829833984375, -0.038848876953125, 0.0015201568603515625, 0.04986572265625, 0.0124969482421875, 0.0014791488647460938, 0.03753662109375, 0.03997802734375, -0.02496337890625, -0.011871337890625, 0.032562255859375, -0.00811767578125, -0.0066070556640625, -0.03057861328125, 0.006412506103515625, -0.003875732421875, -0.007770538330078125, -0.007320404052734375, 0.01038360595703125, 0.01557159423828125, -0.0239715576171875, -0.0322265625, 0.009307861328125, -0.04962158203125, 0.0108795166015625, -0.0220184326171875, -0.0193023681640625, -0.0147857666015625, -0.06890869140625, -0.01171112060546875, -0.0355224609375, -0.018341064453125, 0.02032470703125, 0.032989501953125, -0.03466796875, 0.033447265625, 0.0012998580932617188, 0.00006282329559326172, -0.00339508056640625, -0.0186920166015625, 0.0109405517578125, 0.0244598388671875, 0.01079559326171875, 0.006988525390625, -0.04705810546875, -0.02447509765625, -0.00290679931640625, 0.033905029296875, -0.0201873779296875, 0.07257080078125, -0.0150146484375, 0.0021228790283203125, -0.01788330078125, 0.0228424072265625, -0.059295654296875, -0.02142333984375, 0.028594970703125, -0.0294647216796875, -0.0005612373352050781, -0.0009465217590332031, -0.031494140625, -0.0057525634765625, 0.044708251953125, -0.03961181640625, 0.030517578125, -0.01447296142578125, 0.0152130126953125, -0.0408935546875, -0.00994110107421875, -0.04071044921875, -0.04486083984375, -0.026824951171875, 0.0006046295166015625, -0.0006289482116699219, 0.004055023193359375, -0.026611328125, 0.00943756103515625, 0.022003173828125, 0.007686614990234375, 0.024505615234375, 0.019073486328125, -0.00585174560546875, 0.0162353515625, 0.0084075927734375, 0.00350189208984375, 0.049774169921875, -0.01383209228515625, 0.0323486328125, 0.01044464111328125, 0.0201263427734375, 0.0228271484375, 0.00333404541015625, -0.038421630859375, -0.0261383056640625, 0.031402587890625, 0.0274505615234375, 0.01505279541015625, -0.0792236328125, 0.023834228515625, -0.0304412841796875, 0.004222869873046875, -0.0165557861328125, 0.023956298828125, -0.013671875, 0.023406982421875, 0.0168914794921875, -0.044891357421875, -0.09552001953125, 0.01213836669921875, 0.0289154052734375, 0.0051422119140625, -0.03851318359375, 0.031707763671875, -0.035400390625, 0.022491455078125, -0.018310546875, 0.024200439453125, -0.0218353271484375, -0.0010633468627929688, -0.06365966796875, -0.030242919921875, -0.053070068359375, 0.0194854736328125, -0.057708740234375, 0.0008001327514648438, 0.01702880859375, -0.01180267333984375, -0.00788116455078125, -0.01390838623046875, 0.0035495758056640625, 0.05419921875, -0.015838623046875, -0.00199127197265625, 0.00830078125, 0.018157958984375, -0.044281005859375, -0.059295654296875, 0.01555633544921875, -0.0175933837890625, -0.001354217529296875, -0.0206451416015625, -0.0186767578125, -0.0228424072265625, -0.05206298828125, -0.06884765625, 0.06829833984375, -0.00893402099609375, -0.0274505615234375, -0.01320648193359375, 0.0394287109375, 0.004238128662109375, 0.00843048095703125, 0.0094757080078125, 0.01068878173828125, 0.0188751220703125, -0.009246826171875, 0.03314208984375, 0.03363037109375, 0.00908660888671875, 0.016693115234375, -0.02081298828125, 0.003753662109375, -0.01558685302734375, 0.00394439697265625, 0.0016927719116210938, -0.005489349365234375, 0.0289459228515625, 0.027679443359375, -0.03289794921875, 0.08544921875, 0.005504608154296875, 0.01320648193359375, -0.0034313201904296875, 0.0037384033203125, -0.03546142578125, -0.0133514404296875, 0.025238037109375, 0.04998779296875, 0.0228271484375, -0.0127410888671875, -0.061676025390625, -0.00849151611328125, 0.0197296142578125, -0.012847900390625, 0.0176849365234375, -0.07537841796875, -0.0017061233520507812, 0.0018291473388671875, -0.0088043212890625, 0.01059722900390625, -0.024658203125, -0.034332275390625, -0.0002636909484863281, -0.016815185546875, 0.01068878173828125, -0.0482177734375, 0.029541015625, -0.03741455078125, 0.004131317138671875, -0.003917694091796875, -0.034759521484375, 0.004852294921875, -0.045745849609375, -0.031036376953125, -0.054412841796875, -0.017364501953125, 0.005523681640625, 0.035400390625, -0.0214996337890625, 0.0194549560546875, -0.03533935546875, 0.046844482421875, -0.0048980712890625, 0.0198211669921875, 0.0192413330078125, -0.005970001220703125, -0.008392333984375, 0.004306793212890625, -0.0027008056640625, 0.0098876953125, -0.0239410400390625, -0.0025081634521484375, -0.02484130859375, 0.040130615234375, -0.02117919921875, -0.0018100738525390625, 0.027801513671875, -0.022857666015625, 0.004177093505859375, 0.001399993896484375, -0.0154266357421875, -0.042388916015625, 0.01114654541015625, -0.04412841796875, 0.007648468017578125, 0.02471923828125 ]
6e9c0da88501c3fdf67636cb7441a0a14caf069b
Wordpress Stackexchange Q: Stop wordpress from creating multiple size images I want wordpress to stop making multiple size images cause it's going to eat up my storage space. So I went Settings > Media and then set all the sizes to 0. When I uploaded a new image it still is making 2 copies for example: achannel.jpg achannel-346x288.jpg although they are both full size images so why does it need to create another full size image? A: add_filter('intermediate_image_sizes_advanced', 'filter_image_sizes'); function filter_image_sizes( $sizes) { unset( $sizes['thumbnail']); unset( $sizes['medium']); unset( $sizes['large']); return $sizes; }
Q: Stop wordpress from creating multiple size images I want wordpress to stop making multiple size images cause it's going to eat up my storage space. So I went Settings > Media and then set all the sizes to 0. When I uploaded a new image it still is making 2 copies for example: achannel.jpg achannel-346x288.jpg although they are both full size images so why does it need to create another full size image? A: add_filter('intermediate_image_sizes_advanced', 'filter_image_sizes'); function filter_image_sizes( $sizes) { unset( $sizes['thumbnail']); unset( $sizes['medium']); unset( $sizes['large']); return $sizes; } A: Built in Just set the sizes you don't need to 0. This skips the process of creating them. I know, it's not documented, but it works.
wordpress
{ "language": "en", "length": 117, "provenance": "stackexchange_00019.jsonl.gz:425016", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/69987" }
[ 0.01424407958984375, -0.0295562744140625, 0.01274871826171875, 0.005062103271484375, -0.0266876220703125, -0.032196044921875, 0.03997802734375, -0.0281829833984375, -0.00472259521484375, 0.015625, -0.01190948486328125, 0.01256561279296875, 0.0015411376953125, -0.0157470703125, 0.006168365478515625, -0.01763916015625, 0.054656982421875, -0.03717041015625, 0.0214996337890625, 0.00537872314453125, 0.015625, 0.0302886962890625, 0.0203857421875, 0.11505126953125, -0.045257568359375, 0.0030345916748046875, 0.062744140625, -0.043182373046875, -0.046417236328125, -0.0631103515625, -0.01468658447265625, 0.08477783203125, 0.01334381103515625, 0.0196685791015625, -0.025726318359375, -0.00836181640625, -0.01849365234375, 0.011138916015625, 0.00714111328125, -0.00528717041015625, 0.0174713134765625, -0.01396942138671875, 0.07318115234375, -0.0199737548828125, 0.02197265625, -0.012786865234375, 0.0183258056640625, -0.06787109375, 0.0287017822265625, -0.0225372314453125, 0.004161834716796875, 0.019683837890625, 0.0251007080078125, 0.0210418701171875, -0.036163330078125, -0.00824737548828125, -0.01238250732421875, 0.046722412109375, 0.0309600830078125, -0.032012939453125, -0.048431396484375, 0.002197265625, 0.03240966796875, 0.006275177001953125, -0.004253387451171875, -0.0166473388671875, -0.06256103515625, 0.02099609375, -0.0335693359375, -0.00853729248046875, 0.0305938720703125, -0.044891357421875, -0.0003829002380371094, -0.042816162109375, -0.0261993408203125, 0.033050537109375, -0.00894927978515625, -0.02801513671875, 0.0176239013671875, -0.03485107421875, 0.0236968994140625, -0.0236053466796875, -0.0302886962890625, 0.0091705322265625, 0.018829345703125, 0.0440673828125, 0.004241943359375, -0.0240325927734375, -0.0012111663818359375, 0.0082550048828125, -0.0164642333984375, -0.0595703125, -0.0002636909484863281, 0.045867919921875, -0.01522064208984375, -0.0062255859375, 0.037139892578125, 0.01366424560546875, -0.00670623779296875, -0.006683349609375, 0.005542755126953125, -0.039398193359375, 0.025115966796875, -0.0205078125, 0.031707763671875, 0.0203704833984375, -0.0277099609375, -0.0108795166015625, 0.057373046875, 0.0273284912109375, 0.01129913330078125, 0.0491943359375, -0.034027099609375, -0.060943603515625, 0.034912109375, 0.0364990234375, -0.0296630859375, 0.044830322265625, 0.025970458984375, 0.0024814605712890625, -0.008270263671875, 0.00536346435546875, 0.00920867919921875, -0.0007333755493164062, 0.0114898681640625, -0.004802703857421875, -0.02734375, -0.009613037109375, -0.0182037353515625, 0.01708984375, -0.0289306640625, 0.01145172119140625, 0.037567138671875, 0.007068634033203125, -0.00394439697265625, -0.0157623291015625, -0.002178192138671875, -0.026153564453125, -0.03472900390625, 0.0347900390625, -0.0293426513671875, -0.024383544921875, 0.010528564453125, -0.05450439453125, -0.0183258056640625, 0.00804901123046875, -0.0037326812744140625, 0.0280303955078125, -0.005558013916015625, -0.046600341796875, -0.00431060791015625, -0.0304107666015625, 0.04241943359375, 0.00408172607421875, -0.0088653564453125, -0.01275634765625, 0.043853759765625, -0.01092529296875, -0.033599853515625, -0.038787841796875, -0.0189666748046875, 0.00823974609375, 0.0287322998046875, -0.0195770263671875, -0.031951904296875, 0.00028204917907714844, -0.03436279296875, -0.0138397216796875, 0.0310211181640625, -0.029388427734375, 0.01093292236328125, -0.029937744140625, 0.0271148681640625, 0.033538818359375, 0.021453857421875, 0.0443115234375, 0.03717041015625, -0.01136016845703125, 0.0018587112426757812, 0.078369140625, -0.0008077621459960938, -0.0215911865234375, 0.033599853515625, -0.02685546875, -0.033782958984375, -0.0207061767578125, 0.00428009033203125, 0.018890380859375, 0.0194244384765625, 0.011199951171875, 0.01372528076171875, 0.00015497207641601562, -0.0239410400390625, 0.01456451416015625, -0.0034046173095703125, -0.0258636474609375, -0.004398345947265625, 0.00009363889694213867, -0.00809478759765625, -0.020263671875, 0.053253173828125, 0.00347900390625, -0.020355224609375, -0.0301513671875, -0.11279296875, -0.0069122314453125, -0.032806396484375, 0.034271240234375, -0.045745849609375, 0.00778961181640625, 0.01396942138671875, -0.0205841064453125, -0.010498046875, 0.01285552978515625, 0.0095367431640625, 0.000015437602996826172, -0.015838623046875, 0.0078277587890625, -0.0150299072265625, 0.037994384765625, -0.050689697265625, -0.0118408203125, -0.052154541015625, -0.01107025146484375, 0.05548095703125, -0.0170440673828125, -0.01549530029296875, -0.040283203125, -0.0017871856689453125, -0.0169830322265625, -0.05938720703125, 0.0872802734375, -0.017669677734375, 0.0160675048828125, -0.003269195556640625, -0.0149383544921875, -0.0229034423828125, -0.0966796875, 0.0272674560546875, 0.05743408203125, 0.032806396484375, 0.037689208984375, 0.03076171875, 0.03466796875, 0.04522705078125, -0.0218353271484375, 0.0234832763671875, -0.00604248046875, 0.0073699951171875, -0.03955078125, -0.003692626953125, -0.05596923828125, 0.06158447265625, -0.08636474609375, 0.027740478515625, 0.038818359375, -0.04229736328125, -0.04534912109375, 0.008331298828125, 0.0211029052734375, 0.01126861572265625, 0.01480865478515625, 0.0046234130859375, 0.004177093505859375, -0.04296875, -0.005039215087890625, -0.010498046875, -0.0072784423828125, 0.0021648406982421875, 0.01120758056640625, 0.0238189697265625, -0.054168701171875, 0.00530242919921875, -0.0562744140625, -0.00556182861328125, 0.006984710693359375, -0.0487060546875, 0.0487060546875, 0.020751953125, -0.031341552734375, -0.042510986328125, -0.02545166015625, -0.0777587890625, -0.02752685546875, 0.0104217529296875, -0.049713134765625, -0.0085601806640625, -0.024658203125, -0.0234832763671875, -0.0180816650390625, -0.00672149658203125, 0.044647216796875, 0.00510406494140625, 0.01441192626953125, 0.01971435546875, -0.01038360595703125, 0.00598907470703125, -0.038330078125, 0.03973388671875, -0.03375244140625, 0.0927734375, 0.08111572265625, -0.0213775634765625, 0.04119873046875, -0.02667236328125, 0.023223876953125, -0.01407623291015625, -0.03204345703125, -0.044891357421875, 0.02484130859375, -0.10107421875, -0.02569580078125, 0.0108795166015625, 0.01428985595703125, -0.005828857421875, -0.005161285400390625, 0.0084686279296875, 0.005962371826171875, 0.0009002685546875, 0.0238494873046875, -0.038848876953125, -0.02606201171875, -0.0259246826171875, 0.01947021484375, -0.0103759765625, 0.011260986328125, 0.0211639404296875, 0.00748443603515625, -0.00211334228515625, -0.0044403076171875, -0.006992340087890625, 0.00415802001953125, -0.0127716064453125, 0.007266998291015625, 0.0022220611572265625, -0.00194549560546875, 0.0032253265380859375, 0.042388916015625, 0.00252532958984375, -0.022552490234375, 0.031890869140625, -0.011627197265625, 0.004955291748046875, 0.003582000732421875, -0.003589630126953125, -0.035308837890625, 0.0018758773803710938, -0.01145172119140625, 0.04132080078125, 0.03436279296875, -0.01087188720703125, 0.0131988525390625, -0.031707763671875, -0.03668212890625, -0.0132293701171875, 0.10498046875, 0.030914306640625, -0.025115966796875, 0.0614013671875, -0.03515625, -0.007495880126953125, -0.038848876953125, -0.050079345703125, 0.036102294921875, 0.05548095703125, -0.021514892578125, -0.0021343231201171875, -0.01422119140625, 0.041961669921875, 0.0160980224609375, -0.0233917236328125, -0.0226593017578125, 0.05584716796875, 0.020843505859375, 0.031036376953125, -0.020782470703125, 0.0129241943359375, -0.026885986328125, 0.01364898681640625, -0.01473236083984375, 0.00843048095703125, 0.0033473968505859375, -0.035919189453125, -0.038360595703125, -0.023712158203125, 0.037353515625, -0.01220703125, 0.038665771484375, -0.0399169921875, -0.01739501953125, -0.0256805419921875, 0.046417236328125, -0.036102294921875, -0.0106201171875, -0.0262451171875, 0.007534027099609375, -0.0260772705078125, -0.045989990234375, -0.02398681640625, -0.010009765625, -0.0263519287109375, 0.019866943359375, 0.0158843994140625, -0.0281829833984375, -0.00386810302734375, -0.0026607513427734375, -0.01535797119140625, -0.01806640625, 0.02972412109375, -0.0186614990234375, -0.00007992982864379883, -0.03277587890625, -0.0030384063720703125, -0.045501708984375, 0.0050811767578125, -0.01715087890625, -0.1048583984375, -0.011810302734375, -0.02490234375, 0.06732177734375, -0.036834716796875, 0.0872802734375, -0.032989501953125, 0.05816650390625, -0.0163421630859375, 0.0292205810546875, -0.0140838623046875, 0.01090240478515625, 0.0037479400634765625, 0.0188140869140625, 0.014556884765625, -0.0194091796875, -0.013397216796875, -0.056182861328125, -0.007129669189453125, -0.0129241943359375, -0.037750244140625, -0.017547607421875, -0.046539306640625, 0.0262298583984375, -0.051483154296875, -0.03936767578125, 0.01082611083984375, 0.006763458251953125, 0.0212860107421875, -0.0012655258178710938, -0.050872802734375, -0.04351806640625, -0.0010662078857421875, 0.0212249755859375, 0.01050567626953125, 0.021331787109375, 0.07147216796875, 0.01500701904296875, -0.0013332366943359375, -0.10565185546875, -0.01439666748046875, 0.0179443359375, 0.034637451171875, 0.05322265625, 0.00717926025390625, 0.01032257080078125, -0.0009064674377441406, 0.001220703125, -0.01517486572265625, -0.0268707275390625, 0.09344482421875, -0.0306243896484375, -0.03955078125, 0.021240234375, -0.070068359375, 0.033111572265625, 0.01148223876953125, 0.0111541748046875, -0.0086669921875, 0.0031280517578125, 0.025238037109375, 0.0311431884765625, -0.048248291015625, -0.030426025390625, -0.01523590087890625, 0.01617431640625, 0.010986328125, 0.04400634765625, 0.016876220703125, -0.0008444786071777344, 0.0215301513671875, 0.031219482421875, 0.006336212158203125, -0.02093505859375, 0.0241241455078125, -0.0258026123046875, 0.045867919921875, -0.01103973388671875, -0.011016845703125, -0.0110015869140625, 0.01415252685546875, -0.044464111328125, 0.002368927001953125, -0.01004791259765625, -0.03717041015625, 0.007518768310546875, -0.03924560546875, -0.015960693359375, -0.003742218017578125, 0.03594970703125, -0.00008857250213623047, 0.004302978515625, -0.000820159912109375, -0.03167724609375, -0.0157318115234375, -0.0304107666015625, -0.004360198974609375, 0.01092529296875, -0.0272216796875, 0.05780029296875, -0.0362548828125, -0.0008587837219238281, -0.00812530517578125, 0.0069427490234375, 0.01065826416015625, 0.0197906494140625, 0.00945281982421875, 0.028533935546875, 0.00243377685546875, 0.0025615692138671875, -0.01308441162109375, 0.033935546875, -0.050323486328125, -0.01264190673828125, 0.040802001953125, 0.032501220703125, 0.00916290283203125, -0.0113372802734375, 0.004192352294921875, 0.018524169921875, 0.0092010498046875, 0.00731658935546875, -0.041473388671875, -0.07366943359375, 0.0054779052734375, 0.024383544921875, 0.021575927734375, -0.044708251953125, -0.029815673828125, -0.0155181884765625, -0.019317626953125, -0.023834228515625, 0.00284576416015625, -0.07281494140625, 0.026336669921875, 0.0416259765625, -0.0675048828125, -0.0517578125, -0.00323486328125, -0.032989501953125, 0.0215911865234375, -0.007061004638671875, -0.0173797607421875, -0.0119171142578125, -0.032562255859375, 0.0034465789794921875, 0.0089263916015625, -0.0095062255859375, 0.01113128662109375, 0.0291748046875, 0.01503753662109375, -0.0048980712890625, 0.017974853515625, -0.051361083984375, -0.045013427734375, -0.041107177734375, 0.029144287109375, 0.021942138671875, 0.0165252685546875, 0.01360321044921875, 0.0175018310546875, 0.0111236572265625, 0.004940032958984375, -0.0209197998046875, -0.00982666015625, 0.00103759765625, 0.0014476776123046875, -0.007526397705078125, -0.043792724609375, 0.01090240478515625, 0.03326416015625, -0.01007843017578125, -0.0244293212890625, 0.0013647079467773438, 0.033355712890625, 0.00333404541015625, -0.00312042236328125, -0.0178985595703125, -0.0139923095703125, 0.045196533203125, -0.03826904296875, -0.0164947509765625, 0.025238037109375, 0.0024929046630859375, -0.0032176971435546875, -0.0215301513671875, 0.006099700927734375, -0.030792236328125, 0.05145263671875, -0.03485107421875, -0.0018138885498046875, -0.00689697265625, -0.036346435546875, 0.050506591796875, 0.0017995834350585938, -0.01291656494140625, 0.035186767578125, -0.036346435546875, 0.023162841796875, 0.055511474609375, 0.0267486572265625, -0.01366424560546875, 0.02142333984375, -0.0233306884765625, 0.0253753662109375, 0.0182952880859375, 0.01678466796875, 0.027191162109375, -0.0162506103515625, -0.0161895751953125, -0.001636505126953125, 0.0452880859375, 0.0004627704620361328, 0.005344390869140625, 0.049407958984375, -0.0004420280456542969, 0.0195770263671875, 0.033935546875, 0.06536865234375, -0.03564453125, 0.00604248046875, -0.01226806640625, -0.02923583984375, 0.0570068359375, -0.0303192138671875, 0.01026153564453125, -0.01528167724609375, 0.03411865234375, 0.033294677734375, -0.03240966796875, -0.0134429931640625, 0.00971221923828125, -0.0112457275390625, 0.00009244680404663086, 0.0252838134765625, 0.008514404296875, -0.09002685546875, -0.0049896240234375, 0.08380126953125, -0.045501708984375, -0.0268402099609375, 0.0280609130859375, -0.021453857421875, -0.0055389404296875, -0.05462646484375, -0.0237579345703125, 0.0081024169921875, -0.006122589111328125, 0.010986328125, 0.01690673828125, 0.0195465087890625, 0.0552978515625, -0.01514434814453125, 0.023040771484375, 0.031005859375, -0.054046630859375, -0.044952392578125, -0.0165863037109375, 0.0211181640625, 0.0208282470703125, -0.0556640625, 0.019683837890625, -0.05389404296875, 0.0245819091796875, 0.00368499755859375, 0.00727081298828125, 0.029998779296875, -0.022491455078125, -0.010009765625, 0.05584716796875, 0.0241241455078125, -0.02752685546875, 0.003299713134765625, 0.0078277587890625, -0.06439208984375, -0.03692626953125, 0.01092529296875, -0.03558349609375, 0.02130126953125, 0.01160430908203125, -0.061004638671875, 0.07769775390625, -0.032379150390625, 0.0626220703125, 0.0261077880859375, 0.0178680419921875, 0.0161895751953125, 0.0219573974609375, -0.0116424560546875, 0.0067596435546875, -0.0235748291015625, -0.01837158203125, -0.030914306640625, 0.026214599609375, -0.035614013671875, -0.0010309219360351562, 0.05328369140625, 0.0074462890625, -0.040435791015625, -0.0211334228515625, 0.044342041015625, 0.055419921875, 0.0215606689453125, 0.039031982421875, -0.010040283203125, -0.043701171875, 0.001781463623046875, -0.0017299652099609375, 0.005458831787109375, -0.00977325439453125, -0.017547607421875, 0.0200042724609375, -0.00215911865234375, -0.0007405281066894531, -0.00579071044921875, 0.00501251220703125, -0.053619384765625, 0.01160430908203125, 0.04022216796875, -0.01537322998046875, 0.0215301513671875, 0.040496826171875, 0.03948974609375, 0.00412750244140625, 0.023101806640625, -0.01873779296875, 0.061309814453125, -0.006404876708984375, 0.0034084320068359375, 0.0487060546875, 0.0108795166015625, 0.020416259765625, 0.005340576171875, 0.0018634796142578125, 0.01422119140625, 0.0127716064453125, -0.0244140625, 0.0109710693359375, 0.0202484130859375, -0.0452880859375, -0.029937744140625, 0.043792724609375, 0.0174102783203125, -0.00850677490234375, -0.01837158203125, 0.006534576416015625, 0.01275634765625, -0.00765228271484375, -0.027069091796875, -0.007610321044921875, -0.023162841796875, 0.00921630859375, 0.00370025634765625, 0.01250457763671875, 0.035308837890625, 0.03253173828125, 0.005382537841796875, 0.0218048095703125, -0.048553466796875, 0.018798828125, -0.02313232421875, -0.023193359375, 0.006923675537109375, 0.052520751953125, 0.0258941650390625, 0.06011962890625, -0.004421234130859375, -0.0258941650390625, -0.03955078125, 0.07330322265625, -0.0094757080078125, 0.041900634765625, -0.061309814453125, -0.0518798828125, 0.012481689453125, 0.04168701171875, 0.0207366943359375, 0.0187835693359375, 0.07550048828125, 0.053497314453125, -0.0611572265625, 0.003192901611328125, 0.034912109375, -0.0189666748046875, 0.01666259765625, -0.048583984375, -0.01544189453125, 0.008270263671875, -0.0335693359375, 0.001117706298828125, -0.06353759765625, 0.059783935546875, -0.025238037109375, -0.0270538330078125, -0.002826690673828125, -0.050262451171875, 0.007015228271484375, -0.0205078125, -0.0005674362182617188, -0.035614013671875, -0.08673095703125, -0.007427215576171875, -0.0234527587890625, -0.0246429443359375, 0.0266571044921875, 0.029815673828125, -0.050384521484375, 0.037200927734375, 0.0430908203125, -0.01378631591796875, -0.00431060791015625, -0.00963592529296875, 0.0184326171875, -0.032745361328125, 0.0177154541015625, -0.00995635986328125, -0.07659912109375, -0.0287933349609375, -0.0216217041015625, 0.016754150390625, 0.007274627685546875, 0.059814453125, 0.00647735595703125, 0.0098876953125, 0.0318603515625, 0.00286865234375, 0.0195770263671875, 0.003871917724609375, 0.018768310546875, -0.01322174072265625, -0.004268646240234375, -0.03173828125, 0.020111083984375, 0.00327301025390625, 0.032196044921875, -0.042510986328125, -0.0335693359375, -0.0013494491577148438, 0.016937255859375, 0.017822265625, 0.01611328125, -0.0367431640625, -0.035614013671875, -0.043701171875, 0.002315521240234375, 0.001331329345703125, -0.032318115234375, -0.033447265625, 0.0214996337890625, 0.0207977294921875, -0.0231781005859375, 0.048828125, -0.04388427734375, 0.0546875, 0.042816162109375, 0.0168609619140625, -0.0531005859375, -0.006702423095703125, -0.0230255126953125, -0.019500732421875, 0.0146331787109375, 0.032257080078125, -0.006855010986328125, -0.048980712890625, 0.01334381103515625, 0.034881591796875, 0.022735595703125, -0.042266845703125, -0.00209808349609375, 0.044403076171875, -0.017974853515625, -0.0070953369140625, -0.01551055908203125, -0.0036640167236328125, -0.037384033203125, -0.0318603515625, 0.0034351348876953125, -0.0254974365234375, -0.0113525390625, 0.0253143310546875, 0.013275146484375, 0.050445556640625, 0.02374267578125, -0.072509765625, 0.043487548828125, -0.03607177734375, 0.03765869140625, 0.026214599609375, -0.03704833984375, -0.00453948974609375, 0.024871826171875, -0.01123046875, -0.07501220703125, -0.034576416015625, 0.06878662109375, -0.0338134765625, 0.01800537109375, 0.01207733154296875, -0.025177001953125, 0.0254974365234375, -0.0014209747314453125, 0.0303192138671875, 0.057952880859375, 0.0074462890625, -0.03173828125, -0.01303863525390625, 0.025970458984375, 0.003326416015625, -0.03265380859375, 0.00634002685546875, -0.01568603515625, 0.0098419189453125, -0.036285400390625, 0.01025390625, 0.01198577880859375, -0.029815673828125, -0.067138671875, 0.0142364501953125, -0.019317626953125, -0.031646728515625, -0.04412841796875, -0.0244598388671875, -0.0225372314453125, 0.033782958984375, -0.0068817138671875, -0.01641845703125, -0.0019292831420898438, 0.0806884765625, -0.0179443359375, -0.0287933349609375, 0.028472900390625, -0.033966064453125, 0.012786865234375, 0.0184326171875, 0.055267333984375, -0.0335693359375, 0.01346588134765625, -0.00579833984375, 0.03472900390625, 0.03851318359375, -0.00547027587890625, 0.01047515869140625, 0.016326904296875, -0.042022705078125, -0.0300750732421875, -0.0181884765625, 0.007503509521484375, 0.0015764236450195312, 0.07916259765625, 0.045562744140625, 0.01270294189453125, -0.041259765625, 0.03857421875, 0.0003330707550048828, 0.0145721435546875, -0.0008611679077148438, -0.0138702392578125, -0.0221099853515625, -0.01934814453125, 0.01140594482421875, -0.0169219970703125, 0.0036602020263671875, -0.017608642578125, -0.04351806640625, -0.00039386749267578125, -0.01346588134765625, 0.0291900634765625, -0.08233642578125, 0.07696533203125, -0.02130126953125, -0.0041351318359375, 0.0169830322265625, -0.043548583984375, -0.0109710693359375, -0.002834320068359375, -0.036529541015625, -0.0260467529296875, 0.007015228271484375, 0.005290985107421875, 0.050689697265625, 0.0009021759033203125, -0.019256591796875, -0.033721923828125, 0.032012939453125, -0.0287322998046875, 0.004512786865234375, 0.021728515625, 0.00792694091796875, -0.00931549072265625, 0.00025272369384765625, 0.0272369384765625, -0.03155517578125, -0.021636962890625, -0.004001617431640625, -0.012359619140625, 0.00807952880859375, -0.007843017578125, 0.005687713623046875, 0.023834228515625, -0.01503753662109375, 0.00568389892578125, 0.00783538818359375, -0.03485107421875, -0.007266998291015625, -0.01059722900390625, 0.0203704833984375, -0.0119171142578125, -0.0009279251098632812 ]
b39c5c0c76714d0d5bc62c8d74900575cc2a3d79
Wordpress Stackexchange Q: How to add "supports" parameter for a Custom Post Type? Is there a way to add support for a custom feature for a custom post type, after it has been created? I know how to create a custom post type using register_post_type(), and how to use the supports parameter to specify what the CPT should support; 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ,'headway-seo') But for the situations when the CPT is being registered by a plugin or theme, is there a way to 'inject' support elements (manipulate the support array) of the CPT after it has been registered, using a WP hook/filter? A: An alternative approach is to hook into register_post_type_args and update the supports array. This is particularly useful if you have third-party plugins that hook into the CPT arguments to display content. function wpse70000_add_author_metabox_to_cpt_book( $args, $post_type ) { if ($post_type != 'POST_TYPE_NAME') // set post type return $args; $args['supports'] = array( 'author' ); // set the 'supports' array return $args; } add_filter( 'register_post_type_args', 'wpse70000_add_author_metabox_to_cpt_book', 10, 2 );
Q: How to add "supports" parameter for a Custom Post Type? Is there a way to add support for a custom feature for a custom post type, after it has been created? I know how to create a custom post type using register_post_type(), and how to use the supports parameter to specify what the CPT should support; 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ,'headway-seo') But for the situations when the CPT is being registered by a plugin or theme, is there a way to 'inject' support elements (manipulate the support array) of the CPT after it has been registered, using a WP hook/filter? A: An alternative approach is to hook into register_post_type_args and update the supports array. This is particularly useful if you have third-party plugins that hook into the CPT arguments to display content. function wpse70000_add_author_metabox_to_cpt_book( $args, $post_type ) { if ($post_type != 'POST_TYPE_NAME') // set post type return $args; $args['supports'] = array( 'author' ); // set the 'supports' array return $args; } add_filter( 'register_post_type_args', 'wpse70000_add_author_metabox_to_cpt_book', 10, 2 ); A: Yes, there's a function called add_post_type_support Hook into init -- late, after the post types have been created -- and add support. Adding support for excerpts to pages for instance: <?php add_action('init', 'wpse70000_add_excerpt', 100); function wpse70000_add_excerpt() { add_post_type_support('page', 'excerpt'); }
wordpress
{ "language": "en", "length": 213, "provenance": "stackexchange_00019.jsonl.gz:425020", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70000" }
[ 0.046722412109375, 0.00240325927734375, -0.00275421142578125, -0.0494384765625, 0.0175628662109375, -0.0180206298828125, 0.009063720703125, -0.02435302734375, -0.03839111328125, 0.01264190673828125, 0.0010738372802734375, 0.02215576171875, -0.041595458984375, -0.0260467529296875, 0.01007843017578125, -0.0276031494140625, 0.018951416015625, -0.018951416015625, 0.01288604736328125, -0.0268707275390625, 0.00878143310546875, -0.0166473388671875, 0.0262908935546875, 0.0162353515625, 0.014495849609375, -0.0587158203125, 0.054412841796875, -0.0208587646484375, 0.02459716796875, -0.0003490447998046875, 0.0178070068359375, -0.0161285400390625, 0.006137847900390625, 0.042724609375, -0.04034423828125, 0.041107177734375, -0.008636474609375, 0.026519775390625, 0.0052337646484375, 0.01338958740234375, -0.00689697265625, 0.0121612548828125, -0.02777099609375, 0.0141448974609375, -0.045074462890625, -0.039398193359375, 0.0021495819091796875, -0.0067138671875, -0.00496673583984375, -0.01305389404296875, 0.00701904296875, -0.01406097412109375, 0.0287322998046875, -0.044281005859375, -0.016143798828125, -0.006732940673828125, -0.0032062530517578125, -0.037811279296875, 0.0233306884765625, 0.022216796875, 0.00392913818359375, 0.00061798095703125, 0.018646240234375, -0.006755828857421875, -0.0067596435546875, 0.03314208984375, 0.00534820556640625, -0.003910064697265625, 0.0010318756103515625, -0.000751495361328125, -0.0074310302734375, -0.035400390625, -0.0276641845703125, -0.004695892333984375, -0.03338623046875, -0.0273590087890625, 0.01248931884765625, -0.062744140625, 0.00908660888671875, 0.03131103515625, 0.01904296875, 0.0089569091796875, 0.022552490234375, -0.0271148681640625, 0.0211639404296875, 0.0084075927734375, -0.018585205078125, -0.0093536376953125, -0.01016998291015625, -0.0169677734375, -0.006633758544921875, -0.062744140625, -0.01038360595703125, 0.0257720947265625, 0.0259246826171875, -0.048736572265625, 0.029327392578125, 0.0181732177734375, -0.0136260986328125, -0.0003452301025390625, 0.026702880859375, -0.055908203125, 0.06927490234375, -0.040069580078125, 0.0261993408203125, 0.052520751953125, -0.0219268798828125, -0.0247344970703125, 0.041229248046875, 0.0170135498046875, 0.0207672119140625, -0.01531219482421875, 0.01593017578125, -0.01045989990234375, -0.025634765625, 0.002593994140625, -0.0011510848999023438, -0.006359100341796875, -0.00284576416015625, -0.0016241073608398438, 0.0192718505859375, 0.01439666748046875, 0.0421142578125, -0.08135986328125, 0.029296875, -0.01366424560546875, -0.05548095703125, -0.039581298828125, -0.0232391357421875, 0.0170440673828125, -0.0310211181640625, 0.006587982177734375, 0.06390380859375, 0.04241943359375, 0.0291748046875, -0.0204010009765625, 0.051788330078125, -0.018585205078125, 0.006862640380859375, 0.0030517578125, 0.035400390625, -0.0266876220703125, -0.045623779296875, 0.0252227783203125, 0.028778076171875, 0.004863739013671875, -0.0002956390380859375, 0.0105133056640625, 0.01050567626953125, -0.022186279296875, 0.02947998046875, -0.047515869140625, 0.039337158203125, 0.00766754150390625, -0.01210784912109375, -0.0171356201171875, 0.0176849365234375, -0.020782470703125, -0.02227783203125, -0.046478271484375, -0.01220703125, -0.0138702392578125, -0.0126190185546875, -0.06829833984375, -0.0701904296875, 0.0174407958984375, -0.01515960693359375, -0.007843017578125, 0.0198974609375, 0.0290679931640625, -0.0231781005859375, -0.027313232421875, -0.007598876953125, 0.0182647705078125, -0.0244903564453125, 0.04461669921875, 0.006679534912109375, 0.07275390625, -0.008026123046875, 0.0248870849609375, 0.0069427490234375, -0.044189453125, 0.1021728515625, -0.049560546875, -0.04107666015625, 0.030548095703125, 0.01303863525390625, 0.05364990234375, 0.0006866455078125, 0.0158538818359375, 0.01245880126953125, 0.0195770263671875, -0.042236328125, -0.0197601318359375, 0.0023860931396484375, -0.0294342041015625, 0.023406982421875, -0.045928955078125, 0.01617431640625, 0.054168701171875, -0.0294036865234375, 0.00684356689453125, -0.00029277801513671875, 0.040069580078125, -0.03582763671875, 0.0341796875, -0.028167724609375, 0.03125, 0.0160064697265625, -0.00494384765625, 0.006664276123046875, -0.021697998046875, -0.00794219970703125, -0.0005044937133789062, -0.031402587890625, 0.032806396484375, 0.02593994140625, 0.039093017578125, -0.000858306884765625, 0.0136566162109375, -0.00519561767578125, -0.054107666015625, 0.009429931640625, 0.047119140625, 0.06439208984375, -0.0019474029541015625, 0.0018167495727539062, -0.018829345703125, 0.044952392578125, 0.0243072509765625, -0.051849365234375, 0.019683837890625, 0.051513671875, -0.0004761219024658203, -0.0203094482421875, 0.004840850830078125, 0.0097808837890625, -0.07623291015625, -0.005817413330078125, 0.060546875, 0.0225982666015625, 0.0086212158203125, 0.0155029296875, 0.03765869140625, 0.0301361083984375, -0.00946807861328125, 0.01861572265625, -0.00021326541900634766, -0.0019893646240234375, 0.055511474609375, -0.0015087127685546875, 0.0245208740234375, 0.003185272216796875, -0.044952392578125, 0.00665283203125, 0.032562255859375, -0.0305023193359375, 0.0023555755615234375, -0.01218414306640625, -0.0293121337890625, 0.01139068603515625, -0.0562744140625, -0.039398193359375, -0.0170440673828125, 0.0609130859375, 0.0274810791015625, 0.05755615234375, 0.03717041015625, -0.0556640625, 0.0254364013671875, 0.0178985595703125, 0.028839111328125, 0.001102447509765625, -0.01800537109375, 0.0205535888671875, 0.031707763671875, -0.04400634765625, 0.0169830322265625, 0.0211334228515625, -0.00907135009765625, -0.022186279296875, -0.0188751220703125, -0.03118896484375, 0.01093292236328125, -0.007610321044921875, -0.04046630859375, 0.032867431640625, 0.040069580078125, 0.015533447265625, -0.049468994140625, -0.005199432373046875, -0.0058441162109375, -0.00238037109375, 0.0078277587890625, 0.04876708984375, -0.0546875, 0.005970001220703125, -0.041229248046875, 0.05224609375, -0.050079345703125, 0.04962158203125, 0.0552978515625, -0.0273284912109375, 0.0186004638671875, -0.00881195068359375, -0.016021728515625, -0.046478271484375, 0.07421875, 0.02264404296875, -0.084716796875, 0.037750244140625, 0.0305328369140625, 0.021331787109375, 0.03240966796875, 0.0133514404296875, -0.01482391357421875, -0.0118560791015625, 0.05047607421875, -0.017120361328125, -0.001926422119140625, 0.040313720703125, -0.0732421875, -0.019256591796875, -0.01824951171875, -0.063720703125, -0.004119873046875, 0.0220947265625, -0.0038547515869140625, -0.01383209228515625, -0.036895751953125, -0.047271728515625, -0.0697021484375, -0.057952880859375, -0.046234130859375, -0.0008139610290527344, 0.0004935264587402344, 0.0097198486328125, 0.033172607421875, 0.0193939208984375, -0.027374267578125, 0.02587890625, 0.044525146484375, -0.00023567676544189453, -0.00711822509765625, 0.017364501953125, -0.0465087890625, 0.032379150390625, -0.0187835693359375, 0.01543426513671875, 0.046722412109375, -0.0218963623046875, 0.0019550323486328125, -0.00860595703125, 0.006778717041015625, 0.0100555419921875, 0.036895751953125, 0.0132293701171875, 0.004673004150390625, 0.0301055908203125, -0.04681396484375, -0.004596710205078125, 0.0161285400390625, -0.005634307861328125, -0.0260772705078125, -0.035552978515625, 0.0008058547973632812, -0.0103912353515625, 0.034454345703125, 0.0209503173828125, 0.036041259765625, 0.0400390625, 0.008209228515625, 0.0036182403564453125, -0.00887298583984375, -0.0147705078125, -0.046630859375, -0.00002372264862060547, -0.01535797119140625, 0.0021228790283203125, 0.004665374755859375, 0.010040283203125, -0.006618499755859375, 0.00005745887756347656, -0.0430908203125, -0.07269287109375, 0.0638427734375, 0.00021469593048095703, 0.004787445068359375, -0.01361083984375, -0.035736083984375, 0.0278167724609375, 0.09893798828125, -0.03350830078125, -0.022735595703125, 0.01190185546875, 0.0117950439453125, -0.0159454345703125, -0.0222015380859375, -0.016510009765625, -0.02734375, -0.01032257080078125, 0.00756072998046875, 0.005706787109375, -0.00997161865234375, -0.00726318359375, 0.001056671142578125, 0.007160186767578125, -0.013763427734375, 0.03424072265625, -0.044647216796875, 0.0165252685546875, 0.0260772705078125, 0.004505157470703125, -0.00015556812286376953, -0.0177764892578125, -0.0246124267578125, -0.1241455078125, -0.0273895263671875, -0.005268096923828125, 0.08538818359375, -0.019683837890625, -0.00518798828125, -0.042694091796875, 0.047637939453125, 0.044525146484375, 0.0005197525024414062, 0.023193359375, -0.021087646484375, -0.01056671142578125, 0.0045928955078125, 0.0201873779296875, -0.0131683349609375, 0.0034160614013671875, 0.0261993408203125, -0.031982421875, 0.050994873046875, -0.00897216796875, 0.0007786750793457031, 0.037261962890625, -0.045623779296875, -0.005199432373046875, -0.044189453125, -0.0283966064453125, 0.0287933349609375, -0.01378631591796875, 0.01468658447265625, -0.063720703125, -0.049346923828125, 0.02984619140625, -0.024688720703125, 0.00830078125, 0.00791168212890625, 0.09344482421875, 0.02288818359375, -0.013031005859375, -0.01207733154296875, -0.04931640625, 0.0275726318359375, -0.01496124267578125, 0.042999267578125, 0.06463623046875, -0.005924224853515625, -0.01171875, -0.0018777847290039062, -0.006778717041015625, -0.01552581787109375, 0.055450439453125, 0.01183319091796875, -0.0034389495849609375, -0.006153106689453125, -0.034027099609375, 0.0340576171875, -0.02874755859375, -0.006622314453125, -0.003322601318359375, 0.037628173828125, 0.02508544921875, -0.0276336669921875, 0.0297393798828125, -0.007099151611328125, 0.007793426513671875, -0.0014495849609375, -0.004669189453125, 0.0302734375, 0.004974365234375, 0.00678253173828125, -0.03924560546875, -0.02801513671875, -0.0025920867919921875, -0.0171966552734375, -0.0310211181640625, 0.0210418701171875, 0.0163726806640625, 0.02886962890625, 0.0244140625, -0.0157318115234375, -0.00469970703125, 0.023345947265625, -0.0155487060546875, -0.049957275390625, -0.006343841552734375, -0.004436492919921875, 0.01532745361328125, 0.038116455078125, 0.02252197265625, 0.05926513671875, 0.065673828125, 0.006298065185546875, -0.0232391357421875, -0.004573822021484375, 0.0594482421875, -0.05413818359375, -0.0227508544921875, 0.010284423828125, 0.0019664764404296875, -0.024383544921875, 0.10418701171875, 0.01031494140625, 0.030303955078125, -0.029205322265625, 0.059295654296875, 0.042633056640625, 0.022857666015625, 0.0250701904296875, -0.0272216796875, -0.003387451171875, -0.003917694091796875, -0.0298309326171875, -0.01373291015625, -0.01025390625, 0.01312255859375, 0.0206146240234375, -0.01169586181640625, 0.0037517547607421875, 0.0283660888671875, 0.0023937225341796875, -0.01018524169921875, -0.036376953125, -0.023345947265625, -0.028350830078125, 0.0054931640625, 0.017181396484375, 0.00788116455078125, -0.0081939697265625, -0.033966064453125, 0.01172637939453125, -0.05657958984375, 0.00942230224609375, -0.018310546875, -0.004070281982421875, 0.00356292724609375, 0.01309967041015625, -0.0269927978515625, -0.0306854248046875, -0.0151214599609375, -0.0254974365234375, -0.0106964111328125, -0.019287109375, -0.0053558349609375, 0.02716064453125, -0.043609619140625, 0.0267486572265625, -0.0260162353515625, 0.0220947265625, 0.0167999267578125, 0.01554107666015625, 0.0260467529296875, 0.019012451171875, -0.0199432373046875, 0.0214691162109375, 0.0033054351806640625, -0.01136016845703125, -0.0207366943359375, -0.029266357421875, -0.05426025390625, -0.023101806640625, 0.0124969482421875, 0.0190887451171875, -0.027008056640625, -0.03485107421875, 0.01007843017578125, 0.024993896484375, 0.008941650390625, 0.049407958984375, -0.0028743743896484375, 0.053680419921875, -0.0192718505859375, 0.054473876953125, 0.0036830902099609375, -0.0005655288696289062, -0.044097900390625, -0.005474090576171875, -0.0380859375, -0.063232421875, 0.0195159912109375, -0.004852294921875, -0.003139495849609375, 0.061614990234375, 0.0714111328125, 0.027557373046875, -0.0289459228515625, -0.003345489501953125, -0.01462554931640625, -0.027069091796875, 0.027923583984375, 0.02874755859375, 0.016632080078125, -0.003704071044921875, -0.0097503662109375, 0.0178375244140625, -0.01325225830078125, 0.0176544189453125, -0.01154327392578125, -0.005672454833984375, -0.0020122528076171875, 0.0246734619140625, -0.0447998046875, 0.042816162109375, 0.04864501953125, 0.0268096923828125, 0.03948974609375, 0.0029163360595703125, 0.02252197265625, 0.0018787384033203125, 0.0086822509765625, -0.051513671875, 0.00878143310546875, 0.040618896484375, 0.0249481201171875, -0.0014963150024414062, 0.04925537109375, -0.003093719482421875, -0.0152740478515625, 0.0111846923828125, 0.0197296142578125, -0.0489501953125, 0.00677490234375, 0.0047149658203125, 0.01983642578125, 0.029876708984375, 0.0081634521484375, -0.0164947509765625, -0.0004906654357910156, -0.00147247314453125, -0.0154266357421875, -0.0238800048828125, 0.0048065185546875, 0.0264129638671875, -0.003986358642578125, -0.039093017578125, 0.00853729248046875, -0.0014629364013671875, -0.018096923828125, 0.0419921875, -0.0146942138671875, 0.005016326904296875, 0.01465606689453125, 0.02276611328125, 0.0149078369140625, -0.0224151611328125, -0.04443359375, 0.016021728515625, -0.0416259765625, -0.0270843505859375, 0.038604736328125, 0.0088043212890625, 0.029205322265625, 0.038970947265625, 0.005443572998046875, 0.0127716064453125, -0.01042938232421875, 0.0268096923828125, -0.079833984375, -0.034820556640625, -0.0174560546875, 0.071533203125, -0.00812530517578125, 0.055572509765625, -0.00576019287109375, -0.00765228271484375, -0.003681182861328125, -0.02099609375, 0.04229736328125, 0.013641357421875, -0.028533935546875, 0.0192718505859375, -0.00023651123046875, -0.0192413330078125, 0.0191192626953125, -0.01265716552734375, -0.053863525390625, -0.08026123046875, 0.00885772705078125, -0.1138916015625, 0.0166168212890625, 0.00127410888671875, -0.0272064208984375, 0.07403564453125, -0.01502227783203125, -0.0220947265625, 0.0169219970703125, 0.0401611328125, -0.039276123046875, 0.012542724609375, -0.027679443359375, 0.042999267578125, -0.020599365234375, 0.0279388427734375, -0.044158935546875, -0.0093841552734375, -0.0003268718719482422, 0.0196380615234375, 0.0361328125, 0.0106353759765625, -0.036102294921875, 0.01380157470703125, 0.044891357421875, 0.01428985595703125, -0.01654052734375, 0.045654296875, -0.0014934539794921875, 0.0024089813232421875, 0.0312347412109375, -0.0120086669921875, 0.042694091796875, -0.0181121826171875, -0.028564453125, 0.0026607513427734375, 0.01092529296875, 0.01509857177734375, -0.0400390625, -0.0323486328125, -0.007537841796875, -0.034027099609375, -0.00913238525390625, 0.0141143798828125, 0.0203399658203125, 0.0318603515625, 0.0204925537109375, 0.01125335693359375, 0.01421356201171875, -0.017303466796875, 0.047637939453125, -0.01348876953125, 0.039398193359375, 0.0302276611328125, 0.02642822265625, 0.014434814453125, -0.01296234130859375, 0.0178070068359375, 0.006526947021484375, -0.0294647216796875, 0.00635528564453125, -0.020782470703125, -0.0173797607421875, -0.049468994140625, 0.093994140625, 0.023040771484375, -0.0087890625, -0.06207275390625, -0.048065185546875, 0.00949859619140625, 0.0208892822265625, 0.004909515380859375, -0.0036678314208984375, 0.0007505416870117188, 0.0020198822021484375, 0.05206298828125, -0.06695556640625, -0.0225372314453125, 0.006855010986328125, 0.0438232421875, -0.0309906005859375, -0.044219970703125, 0.009521484375, -0.03399658203125, -0.04290771484375, 0.00788116455078125, 0.0035858154296875, 0.066650390625, 0.039154052734375, 0.040740966796875, 0.008453369140625, -0.0275726318359375, 0.0037670135498046875, 0.0011796951293945312, 0.01442718505859375, -0.0178375244140625, 0.014892578125, -0.0006613731384277344, 0.0012102127075195312, 0.0153961181640625, 0.038299560546875, 0.034942626953125, 0.02679443359375, -0.00661468505859375, 0.0037708282470703125, 0.0135345458984375, 0.046905517578125, -0.0129547119140625, -0.02392578125, -0.07012939453125, 0.04449462890625, 0.02984619140625, 0.01497650146484375, 0.035064697265625, -0.01104736328125, 0.039886474609375, 0.0107269287109375, -0.00412750244140625, 0.0094757080078125, -0.044891357421875, 0.049560546875, 0.01053619384765625, 0.07427978515625, 0.03326416015625, -0.0687255859375, -0.0131378173828125, -0.039276123046875, -0.034759521484375, 0.0312347412109375, 0.041656494140625, -0.0223541259765625, 0.01513671875, 0.008331298828125, 0.018402099609375, -0.01372528076171875, -0.0141448974609375, -0.0022182464599609375, 0.0133056640625, 0.036590576171875, 0.01898193359375, -0.0654296875, -0.0213623046875, -0.01367950439453125, 0.01392364501953125, -0.021575927734375, 0.08111572265625, -0.0170440673828125, 0.0014009475708007812, -0.0112152099609375, 0.036773681640625, -0.042816162109375, -0.0133819580078125, 0.023895263671875, 0.00007355213165283203, -0.00498199462890625, 0.0012569427490234375, 0.0013895034790039062, 0.0142364501953125, 0.0413818359375, -0.0067901611328125, -0.005710601806640625, 0.0012617111206054688, 0.0156707763671875, -0.00923919677734375, 0.01145172119140625, -0.048126220703125, -0.032196044921875, -0.07379150390625, -0.0408935546875, 0.03192138671875, -0.000919342041015625, 0.0094451904296875, 0.0231781005859375, 0.024444580078125, -0.01276397705078125, 0.03363037109375, -0.021575927734375, 0.0282440185546875, 0.0223388671875, 0.01384735107421875, -0.0455322265625, 0.0269775390625, -0.00899505615234375, 0.01538848876953125, 0.0007257461547851562, 0.06689453125, -0.00032019615173339844, -0.039764404296875, 0.004764556884765625, 0.0094146728515625, 0.0265350341796875, -0.0171661376953125, -0.00986480712890625, 0.00969696044921875, -0.0250091552734375, -0.0034503936767578125, -0.01123046875, -0.04302978515625, -0.0147857666015625, 0.003124237060546875, 0.022369384765625, 0.0169525146484375, -0.0423583984375, -0.0799560546875, 0.0002734661102294922, 0.041748046875, 0.00911712646484375, -0.031951904296875, 0.0136566162109375, -0.035675048828125, 0.01410675048828125, 0.01690673828125, -0.046722412109375, 0.0284576416015625, 0.059814453125, -0.0158233642578125, 0.0216064453125, -0.0293731689453125, -0.048797607421875, -0.03643798828125, 0.0169830322265625, 0.03643798828125, -0.0251922607421875, -0.0257720947265625, 0.04736328125, 0.0159912109375, 0.0972900390625, -0.012176513671875, -0.0189971923828125, 0.0165557861328125, 0.03173828125, -0.028778076171875, -0.1046142578125, -0.001804351806640625, -0.060302734375, 0.03009033203125, -0.02838134765625, 0.0238800048828125, 0.0280609130859375, -0.01116943359375, -0.0360107421875, 0.059417724609375, -0.01050567626953125, -0.01169586181640625, -0.07275390625, 0.0294189453125, -0.00899505615234375, 0.0506591796875, 0.0017137527465820312, -0.03472900390625, 0.002410888671875, 0.039459228515625, -0.03607177734375, 0.0257568359375, 0.0272216796875, -0.038543701171875, 0.0075836181640625, -0.0411376953125, -0.010833740234375, -0.06414794921875, 0.05615234375, -0.031890869140625, 0.0277252197265625, 0.01474761962890625, -0.06414794921875, -0.056854248046875, -0.0447998046875, 0.004791259765625, -0.00476837158203125, -0.07977294921875, -0.0165863037109375, -0.0178070068359375, 0.06561279296875, -0.00572967529296875, 0.01015472412109375, -0.0279998779296875, 0.0335693359375, -0.045989990234375, -0.02349853515625, -0.0208282470703125, -0.00751495361328125, -0.055145263671875, -0.026947021484375, 0.03399658203125, -0.0030994415283203125, -0.004085540771484375, 0.0206146240234375, -0.0010328292846679688, 0.00012093782424926758, 0.056640625, -0.01708984375, -0.0138397216796875, 0.03363037109375, 0.01059722900390625, -0.018951416015625, 0.008270263671875, 0.01184844970703125, -0.017364501953125, 0.0172271728515625, 0.05072021484375, -0.065185546875, 0.009918212890625, 0.0255889892578125, 0.0243377685546875, -0.0116119384765625, 0.01242828369140625, -0.00391387939453125, 0.06353759765625, -0.0077362060546875, 0.0234375, -0.0075225830078125, 0.01593017578125, -0.0118408203125, 0.054779052734375, -0.00212860107421875, 0.061676025390625, -0.021026611328125, -0.059906005859375, -0.0229644775390625, 0.00684356689453125, -0.012115478515625, -0.0002269744873046875, 0.04730224609375, -0.02825927734375, 0.020660400390625, -0.026824951171875, 0.01166534423828125, -0.0001914501190185547, 0.0011692047119140625, 0.03887939453125, -0.0192108154296875, 0.01284027099609375 ]
aae2858780cbb1c453e3273ad1af1aec337d456c
Wordpress Stackexchange Q: Excerpt Word Count The code below from WPSnipps provides an excerpt character counter, but I'd like to count words instead. Does anybody have an idea of how to do this? // Excerpt character count function excerpt_count_js(){ echo '<script>jQuery(document).ready(function(){ jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:0px;right:5px;color:#666;\"><small>Excerpt length: </small><input type=\"text\" value=\"0\" maxlength=\"3\" size=\"3\" id=\"excerpt_counter\" readonly=\"\" style=\"background:#fff;\"> <small>character(s).</small></div>"); jQuery("#excerpt_counter").val(jQuery("#excerpt").val().length); jQuery("#excerpt").keyup( function() { jQuery("#excerpt_counter").val(jQuery("#excerpt").val().length); }); });</script>'; } add_action( 'admin_head-post.php', 'excerpt_count_js'); add_action( 'admin_head-post-new.php', 'excerpt_count_js'); A: Sorry for reading wrong your question @siouxfan45! here is the right answer: just a little improvement in your code and you can count words! just change these two lines: jQuery("#excerpt_counter").val(jQuery("#excerpt").val().length); to this: jQuery("#excerpt_counter").val(jQuery("#excerpt").val().split(/\S\b[\s,\.\'-:;]*/).length - 1); Words with single quote like "don't", "it's", "I'd", "won't"...will count as two! If you want them to count as a single word, then you will want to change the .split() to this: .split(/\S+\b[\s,\.\'-:;]*/) Hope I'm right this time!
Q: Excerpt Word Count The code below from WPSnipps provides an excerpt character counter, but I'd like to count words instead. Does anybody have an idea of how to do this? // Excerpt character count function excerpt_count_js(){ echo '<script>jQuery(document).ready(function(){ jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:0px;right:5px;color:#666;\"><small>Excerpt length: </small><input type=\"text\" value=\"0\" maxlength=\"3\" size=\"3\" id=\"excerpt_counter\" readonly=\"\" style=\"background:#fff;\"> <small>character(s).</small></div>"); jQuery("#excerpt_counter").val(jQuery("#excerpt").val().length); jQuery("#excerpt").keyup( function() { jQuery("#excerpt_counter").val(jQuery("#excerpt").val().length); }); });</script>'; } add_action( 'admin_head-post.php', 'excerpt_count_js'); add_action( 'admin_head-post-new.php', 'excerpt_count_js'); A: Sorry for reading wrong your question @siouxfan45! here is the right answer: just a little improvement in your code and you can count words! just change these two lines: jQuery("#excerpt_counter").val(jQuery("#excerpt").val().length); to this: jQuery("#excerpt_counter").val(jQuery("#excerpt").val().split(/\S\b[\s,\.\'-:;]*/).length - 1); Words with single quote like "don't", "it's", "I'd", "won't"...will count as two! If you want them to count as a single word, then you will want to change the .split() to this: .split(/\S+\b[\s,\.\'-:;]*/) Hope I'm right this time! A: While implementing this great answer (thanks!) I worked out what I think is a nicer way of displaying the number than the weird inactive field used by the original code. This shows just "Word count: $word_count" right below the textarea. The code below also incorporates KBRckr's code to count contractions (don't) as one word. <?php /** * Use jQuery to add a word counter to the excerpt box * * Should attach to all post screens and indicate the number of words just below the #excerpt textarea */ function gv_excerpt_word_count_js() { echo ' <script>jQuery(document).ready(function(){ jQuery("#postexcerpt #excerpt").after("Word Count: <strong><span id=\'excerpt-word-count\'></span></strong>"); jQuery("#excerpt-word-count").html(jQuery("#excerpt").val().split(/\S+\b[\s,\.\'-:;]*/).length - 1); jQuery("#excerpt").keyup( function() { jQuery("#excerpt-word-count").html(jQuery("#excerpt").val().split(/\S+\b[\s,\.\'-:;]*/).length - 1); }); });</script> '; } add_action( 'admin_head-post.php', 'gv_excerpt_word_count_js'); add_action( 'admin_head-post-new.php', 'gv_excerpt_word_count_js'); ?>
wordpress
{ "language": "en", "length": 260, "provenance": "stackexchange_00019.jsonl.gz:425034", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70033" }
[ 0.03546142578125, -0.0121917724609375, -0.00955963134765625, -0.00850677490234375, -0.00966644287109375, -0.037506103515625, 0.0201873779296875, -0.02191162109375, -0.026397705078125, 0.03753662109375, -0.043487548828125, -0.01204681396484375, -0.002613067626953125, -0.01192474365234375, -0.0364990234375, -0.0322265625, 0.032318115234375, -0.01361083984375, 0.0223541259765625, 0.004001617431640625, 0.0115203857421875, 0.042572021484375, -0.00982666015625, 0.021148681640625, 0.018096923828125, -0.03436279296875, 0.11541748046875, -0.04132080078125, 0.0303192138671875, -0.0267333984375, 0.018951416015625, -0.003192901611328125, 0.025634765625, 0.00878143310546875, -0.047119140625, 0.029052734375, 0.0273284912109375, -0.005443572998046875, -0.00485992431640625, 0.033599853515625, 0.023345947265625, -0.024139404296875, -0.001117706298828125, 0.004070281982421875, -0.0005369186401367188, -0.03570556640625, 0.040985107421875, -0.035736083984375, 0.0328369140625, -0.03765869140625, -0.004337310791015625, 0.01303863525390625, 0.01465606689453125, -0.07666015625, -0.01224517822265625, 0.0228729248046875, 0.02716064453125, -0.031951904296875, 0.0183563232421875, 0.0017261505126953125, -0.0095062255859375, 0.0174713134765625, 0.0224761962890625, -0.028717041015625, -0.0238189697265625, -0.004367828369140625, 0.005580902099609375, 0.004596710205078125, -0.0093231201171875, -0.0297698974609375, 0.00553131103515625, 0.004222869873046875, -0.01483917236328125, -0.03472900390625, 0.007228851318359375, 0.0103607177734375, -0.04498291015625, -0.039886474609375, 0.01276397705078125, 0.03253173828125, -0.007049560546875, 0.0142974853515625, -0.004116058349609375, -0.0020694732666015625, -0.02337646484375, -0.003917694091796875, -0.0170440673828125, -0.01471710205078125, -0.03497314453125, -0.0264129638671875, -0.013702392578125, 0.0001493692398071289, -0.00835418701171875, -0.0164794921875, -0.01074981689453125, -0.02716064453125, 0.01529693603515625, 0.0280609130859375, -0.042327880859375, -0.060272216796875, 0.031982421875, -0.0322265625, -0.0301666259765625, -0.0018377304077148438, 0.036468505859375, 0.034454345703125, -0.023834228515625, 0.01166534423828125, 0.05706787109375, 0.015625, -0.0007605552673339844, 0.005889892578125, -0.0178375244140625, -0.039031982421875, -0.0232696533203125, 0.01023101806640625, -0.040679931640625, -0.0195465087890625, 0.0274810791015625, -0.041656494140625, -0.0081329345703125, -0.01428985595703125, 0.0015201568603515625, 0.0191802978515625, 0.01324462890625, -0.0013418197631835938, -0.02105712890625, -0.0006108283996582031, 0.0311126708984375, 0.007640838623046875, -0.0168609619140625, 0.01788330078125, 0.004703521728515625, 0.004825592041015625, -0.011688232421875, -0.0010557174682617188, 0.07891845703125, 0.007122039794921875, -0.0207977294921875, 0.01355743408203125, -0.01059722900390625, -0.006317138671875, -0.0281982421875, -0.031524658203125, -0.0182342529296875, 0.01617431640625, -0.006809234619140625, 0.00833892822265625, -0.00003504753112792969, -0.04705810546875, 0.01324462890625, -0.07708740234375, 0.06201171875, -0.01424407958984375, -0.07562255859375, -0.0380859375, -0.042633056640625, -0.0193328857421875, -0.0165863037109375, -0.04339599609375, 0.052703857421875, -0.007404327392578125, -0.0321044921875, -0.03399658203125, -0.046661376953125, -0.00848388671875, -0.03564453125, 0.004833221435546875, 0.0257568359375, 0.032379150390625, 0.02191162109375, -0.00969696044921875, 0.031036376953125, -0.005062103271484375, -0.0206756591796875, -0.0035533905029296875, -0.0374755859375, -0.0233612060546875, 0.03546142578125, 0.0230560302734375, 0.0129547119140625, -0.01126861572265625, 0.025665283203125, 0.0198822021484375, -0.0189361572265625, 0.0418701171875, 0.00592041015625, 0.0265350341796875, 0.006561279296875, -0.017425537109375, -0.0113983154296875, 0.0175018310546875, 0.0234222412109375, -0.01320648193359375, -0.01457977294921875, -0.031829833984375, -0.0226593017578125, -0.01404571533203125, -0.02484130859375, 0.045654296875, 0.044586181640625, -0.007511138916015625, 0.0182952880859375, -0.0204925537109375, -0.01248931884765625, -0.010223388671875, -0.0004565715789794922, 0.0127105712890625, 0.00592803955078125, 0.0347900390625, 0.0225830078125, 0.021453857421875, -0.03082275390625, -0.03369140625, -0.0293121337890625, 0.006679534912109375, -0.0126190185546875, 0.02069091796875, -0.00496673583984375, 0.03973388671875, 0.0266876220703125, -0.0017309188842773438, 0.026824951171875, 0.0272979736328125, 0.046966552734375, -0.0455322265625, -0.0145111083984375, -0.037322998046875, 0.004364013671875, -0.0186309814453125, -0.051239013671875, 0.08819580078125, 0.07122802734375, 0.04095458984375, -0.047698974609375, -0.0279541015625, -0.0164337158203125, -0.049285888671875, -0.01458740234375, 0.0687255859375, 0.0369873046875, 0.036773681640625, -0.006740570068359375, -0.054351806640625, 0.06268310546875, -0.0288543701171875, 0.0080413818359375, -0.0517578125, -0.0228118896484375, -0.0024662017822265625, 0.005878448486328125, 0.0024013519287109375, 0.034149169921875, -0.03192138671875, -0.023834228515625, 0.06219482421875, -0.011474609375, 0.00035071372985839844, -0.054718017578125, 0.034942626953125, 0.007526397705078125, -0.02728271484375, -0.007415771484375, -0.0212249755859375, 0.00557708740234375, -0.0025920867919921875, 0.03387451171875, 0.033538818359375, -0.0172119140625, -0.013641357421875, 0.00885772705078125, 0.0562744140625, -0.01038360595703125, -0.00870513916015625, -0.0116119384765625, -0.04119873046875, -0.046875, 0.040679931640625, 0.00927734375, -0.0318603515625, -0.0208587646484375, 0.02154541015625, -0.02972412109375, -0.0196990966796875, -0.018707275390625, -0.06787109375, -0.00977325439453125, -0.00704193115234375, 0.0347900390625, -0.006805419921875, 0.0212249755859375, 0.00537109375, -0.0107421875, 0.0205841064453125, 0.0374755859375, -0.0263519287109375, 0.055206298828125, -0.06280517578125, 0.04534912109375, -0.043701171875, 0.11895751953125, 0.057403564453125, -0.033172607421875, 0.027557373046875, 0.0113677978515625, -0.037445068359375, -0.009490966796875, 0.036529541015625, 0.0065460205078125, -0.0170135498046875, -0.054779052734375, 0.0305633544921875, 0.0207672119140625, 0.028564453125, 0.00682830810546875, -0.029937744140625, 0.0107269287109375, -0.004489898681640625, -0.102294921875, -0.10736083984375, 0.0011548995971679688, -0.11114501953125, 0.007720947265625, 0.0184783935546875, -0.0670166015625, -0.01092529296875, 0.0697021484375, 0.0012264251708984375, -0.0214385986328125, -0.02862548828125, -0.0173492431640625, -0.06658935546875, -0.07916259765625, -0.042633056640625, 0.0216217041015625, 0.00970458984375, 0.006931304931640625, 0.03997802734375, 0.0035114288330078125, -0.057098388671875, 0.0016965866088867188, 0.0238494873046875, -0.0057525634765625, 0.0234375, 0.0089874267578125, -0.03485107421875, -0.03619384765625, 0.006313323974609375, 0.019561767578125, -0.003147125244140625, 0.0019989013671875, -0.0165252685546875, -0.0019025802612304688, 0.004360198974609375, 0.04925537109375, 0.05047607421875, -0.0021152496337890625, 0.028106689453125, 0.0733642578125, -0.0128326416015625, -0.02813720703125, 0.01442718505859375, -0.0328369140625, -0.023590087890625, 0.021575927734375, -0.0155792236328125, -0.022308349609375, 0.015594482421875, 0.026031494140625, -0.004070281982421875, 0.0244903564453125, -0.0338134765625, 0.038665771484375, 0.0008816719055175781, 0.00870513916015625, -0.03167724609375, 0.0014123916625976562, 0.0013837814331054688, -0.01070404052734375, -0.0179901123046875, 0.038116455078125, -0.007293701171875, 0.02337646484375, -0.0283966064453125, -0.06097412109375, 0.0595703125, 0.0261993408203125, -0.028900146484375, 0.00888824462890625, -0.03363037109375, 0.017913818359375, 0.047821044921875, -0.0546875, -0.0443115234375, -0.0143890380859375, 0.039337158203125, -0.01461029052734375, -0.051910400390625, 0.048126220703125, -0.029510498046875, -0.05242919921875, 0.0011167526245117188, -0.0156097412109375, -0.0044708251953125, -0.048065185546875, 0.04071044921875, -0.037811279296875, -0.025115966796875, 0.033203125, -0.0673828125, -0.0018568038940429688, 0.0014247894287109375, -0.00789642333984375, -0.038787841796875, -0.015838623046875, -0.0513916015625, -0.05511474609375, -0.0252532958984375, -0.016693115234375, 0.062164306640625, 0.00205230712890625, -0.0275115966796875, -0.018035888671875, 0.0305328369140625, 0.0117950439453125, -0.03466796875, 0.00860595703125, -0.004825592041015625, -0.0214996337890625, -0.004955291748046875, -0.008575439453125, -0.0391845703125, -0.007442474365234375, -0.0260467529296875, -0.0202178955078125, -0.003688812255859375, -0.0245208740234375, -0.0068511962890625, -0.004016876220703125, -0.0106964111328125, -0.021484375, -0.02581787109375, -0.0146942138671875, 0.0026149749755859375, -0.0284423828125, 0.0023899078369140625, 0.00446319580078125, -0.017791748046875, 0.0200653076171875, 0.00322723388671875, 0.005374908447265625, 0.00423431396484375, 0.0482177734375, 0.01534271240234375, -0.0173797607421875, 0.006870269775390625, 0.0152435302734375, 0.048919677734375, -0.0184478759765625, 0.01800537109375, -0.00734710693359375, -0.047210693359375, 0.08807373046875, -0.009765625, -0.009307861328125, -0.0303192138671875, 0.01407623291015625, 0.0182037353515625, 0.0012874603271484375, -0.00444793701171875, 0.0165252685546875, 0.0513916015625, -0.01043701171875, -0.0218048095703125, 0.0010528564453125, 0.027557373046875, 0.0250701904296875, -0.0206451416015625, 0.0399169921875, 0.00896453857421875, -0.02423095703125, 0.0015573501586914062, 0.01617431640625, 0.037750244140625, 0.0032978057861328125, 0.0182037353515625, 0.0236663818359375, 0.044769287109375, 0.0008139610290527344, -0.005908966064453125, 0.0224151611328125, 0.002593994140625, 0.039459228515625, -0.022918701171875, -0.026031494140625, -0.0017633438110351562, -0.00490570068359375, 0.0019893646240234375, -0.0046844482421875, -0.06005859375, 0.0245361328125, -0.0115203857421875, 0.01126861572265625, 0.00897979736328125, 0.0250396728515625, 0.01485443115234375, 0.0234832763671875, 0.004955291748046875, 0.0111541748046875, 0.03607177734375, 0.002086639404296875, -0.0176849365234375, 0.00844573974609375, 0.004703521728515625, -0.00036263465881347656, 0.06744384765625, 0.04229736328125, 0.004261016845703125, 0.059112548828125, -0.0198822021484375, 0.0455322265625, 0.037750244140625, 0.047760009765625, 0.0166015625, -0.0411376953125, -0.03289794921875, 0.04803466796875, -0.03448486328125, -0.0014085769653320312, -0.025543212890625, 0.0117034912109375, -0.0028057098388671875, -0.0026988983154296875, 0.02166748046875, -0.0079803466796875, 0.0195159912109375, -0.042877197265625, -0.006748199462890625, 0.01018524169921875, -0.003986358642578125, -0.0184478759765625, 0.03314208984375, 0.03741455078125, 0.04461669921875, -0.006763458251953125, -0.0251312255859375, -0.01248931884765625, -0.01366424560546875, -0.0149078369140625, -0.0117340087890625, -0.02545166015625, -0.01189422607421875, -0.0006132125854492188, 0.005401611328125, 0.005496978759765625, -0.02825927734375, -0.044647216796875, 0.00809478759765625, 0.0015935897827148438, 0.0250396728515625, -0.0162506103515625, 0.01529693603515625, -0.031951904296875, 0.01953125, 0.004673004150390625, -0.01509857177734375, 0.07806396484375, 0.037567138671875, -0.01096343994140625, -0.0086822509765625, -0.041595458984375, -0.034088134765625, 0.01629638671875, 0.0321044921875, -0.04779052734375, -0.0014095306396484375, -0.0322265625, -0.0175018310546875, 0.0174102783203125, 0.0192718505859375, -0.0007452964782714844, 0.037017822265625, 0.0109710693359375, -0.0254364013671875, -0.02386474609375, 0.0253143310546875, 0.032135009765625, 0.0018711090087890625, 0.00461578369140625, 0.03662109375, 0.043975830078125, -0.0404052734375, 0.029815673828125, -0.005741119384765625, 0.0002751350402832031, -0.03656005859375, 0.043975830078125, -0.04058837890625, -0.00748443603515625, -0.013092041015625, -0.0173187255859375, 0.005413055419921875, 0.016082763671875, -0.022491455078125, -0.032867431640625, 0.03656005859375, -0.045867919921875, 0.0163421630859375, 0.0130462646484375, 0.039031982421875, -0.026214599609375, -0.004825592041015625, 0.0280914306640625, -0.02667236328125, 0.0225982666015625, 0.02587890625, -0.001010894775390625, 0.0274658203125, 0.057342529296875, -0.01959228515625, 0.0262603759765625, 0.0218658447265625, -0.0006937980651855469, 0.01555633544921875, -0.00046563148498535156, 0.00550079345703125, -0.0014410018920898438, 0.061187744140625, 0.005889892578125, 0.0079193115234375, 0.057159423828125, -0.0253448486328125, 0.003406524658203125, 0.035186767578125, 0.02239990234375, -0.04364013671875, -0.01375579833984375, -0.01511383056640625, -0.009796142578125, 0.04296875, -0.0170135498046875, -0.0019435882568359375, -0.02398681640625, 0.07073974609375, 0.0203399658203125, 0.0020046234130859375, 0.0295867919921875, -0.0044097900390625, -0.0062103271484375, -0.0138702392578125, -0.0130462646484375, 0.00879669189453125, -0.0352783203125, 0.0219573974609375, 0.035919189453125, 0.0026454925537109375, -0.04931640625, 0.00865936279296875, 0.0019245147705078125, 0.007015228271484375, -0.04107666015625, 0.045928955078125, -0.0234527587890625, 0.034759521484375, 0.0117950439453125, 0.032928466796875, 0.0163421630859375, 0.0643310546875, -0.009307861328125, -0.018524169921875, 0.052337646484375, -0.01512908935546875, -0.03839111328125, -0.020477294921875, 0.00662994384765625, 0.031402587890625, -0.006031036376953125, 0.034393310546875, -0.01438140869140625, -0.0299072265625, -0.0037841796875, 0.042510986328125, 0.0675048828125, 0.00513458251953125, -0.04046630859375, 0.062744140625, 0.045166015625, -0.040283203125, -0.0213470458984375, 0.039886474609375, -0.073486328125, -0.0228424072265625, 0.01267242431640625, -0.0236053466796875, -0.002498626708984375, -0.0242767333984375, -0.026824951171875, 0.10333251953125, -0.006328582763671875, 0.0003387928009033203, 0.0374755859375, 0.058197021484375, -0.05023193359375, 0.038970947265625, -0.04608154296875, 0.032440185546875, -0.044036865234375, 0.034393310546875, -0.0511474609375, 0.01328277587890625, -0.004547119140625, 0.0070953369140625, 0.0182342529296875, -0.00757598876953125, 0.044647216796875, -0.0038051605224609375, 0.053924560546875, 0.033660888671875, -0.007415771484375, -0.01800537109375, 0.03082275390625, 0.0242767333984375, 0.058013916015625, -0.017242431640625, 0.0465087890625, -0.033905029296875, 0.00006633996963500977, 0.038116455078125, 0.00476837158203125, 0.007415771484375, 0.0136566162109375, -0.01505279541015625, -0.043731689453125, 0.01380157470703125, 0.027587890625, -0.005161285400390625, -0.03399658203125, 0.1099853515625, 0.0172271728515625, -0.03558349609375, -0.036590576171875, -0.045989990234375, 0.045684814453125, -0.0189666748046875, 0.052642822265625, 0.042633056640625, 0.0224609375, 0.0438232421875, 0.0152130126953125, 0.03887939453125, 0.024444580078125, -0.0401611328125, 0.0167236328125, 0.0018520355224609375, 0.0256500244140625, -0.034271240234375, -0.026214599609375, 0.01325225830078125, 0.01715087890625, -0.015716552734375, -0.0083160400390625, 0.006099700927734375, 0.00229644775390625, -0.016021728515625, -0.01407623291015625, -0.01493072509765625, 0.048065185546875, 0.03948974609375, 0.0218658447265625, -0.06549072265625, 0.0193939208984375, 0.01042938232421875, 0.033477783203125, 0.04766845703125, 0.02008056640625, -0.056610107421875, -0.039825439453125, 0.0177764892578125, -0.007747650146484375, 0.034942626953125, 0.0169677734375, 0.033050537109375, -0.0102691650390625, -0.01151275634765625, 0.0169219970703125, 0.0194854736328125, 0.0240478515625, -0.0296783447265625, 0.015960693359375, 0.010528564453125, -0.0019197463989257812, 0.00879669189453125, -0.0161895751953125, -0.0126190185546875, 0.001247406005859375, 0.0045928955078125, -0.0228118896484375, -0.01983642578125, 0.02789306640625, -0.029327392578125, -0.041717529296875, -0.0115814208984375, 0.01450347900390625, 0.040863037109375, 0.0236968994140625, -0.0016698837280273438, 0.06732177734375, 0.01125335693359375, -0.0079345703125, -0.0311737060546875, 0.0162200927734375, -0.03265380859375, 0.0135345458984375, 0.035614013671875, 0.00328826904296875, 0.040283203125, -0.08837890625, -0.020599365234375, 0.042938232421875, -0.09381103515625, 0.04302978515625, 0.050689697265625, -0.0892333984375, 0.05194091796875, -0.01457977294921875, -0.038970947265625, 0.0279693603515625, -0.0033969879150390625, -0.00408172607421875, 0.0195770263671875, 0.00096893310546875, -0.0234375, 0.0135040283203125, -0.00749969482421875, 0.0303497314453125, 0.031646728515625, 0.046844482421875, -0.0038909912109375, 0.007198333740234375, 0.03253173828125, -0.0030517578125, 0.0022830963134765625, 0.01556396484375, -0.0154266357421875, 0.0015840530395507812, 0.0160980224609375, 0.0338134765625, -0.0229644775390625, -0.0850830078125, 0.0401611328125, 0.005168914794921875, 0.0214996337890625, 0.0384521484375, -0.007659912109375, 0.0008869171142578125, 0.00144195556640625, -0.004657745361328125, -0.0335693359375, -0.0244140625, -0.0104522705078125, -0.03021240234375, 0.01348114013671875, 0.0028972625732421875, 0.0191497802734375, 0.0628662109375, 0.003917694091796875, -0.0007715225219726562, 0.0218963623046875, -0.040985107421875, 0.0299835205078125, 0.0304412841796875, 0.01215362548828125, -0.01256561279296875, 0.020416259765625, -0.019195556640625, 0.01055908203125, 0.00411224365234375, 0.026947021484375, 0.005054473876953125, -0.057769775390625, -0.0282135009765625, 0.03228759765625, 0.06304931640625, 0.004741668701171875, 0.0273590087890625, -0.0196075439453125, -0.007129669189453125, 0.0198516845703125, 0.025787353515625, -0.0235443115234375, -0.0283050537109375, 0.0137939453125, 0.020111083984375, 0.0020847320556640625, 0.0216217041015625, -0.0313720703125, 0.01947021484375, -0.027984619140625, -0.0157318115234375, -0.025115966796875, 0.04254150390625, -0.01477813720703125, 0.013519287109375, -0.0604248046875, 0.0142059326171875, -0.0017042160034179688, 0.042388916015625, -0.0270843505859375, -0.04510498046875, -0.06500244140625, 0.03759765625, -0.07354736328125, 0.040313720703125, 0.0667724609375, -0.053009033203125, 0.006870269775390625, 0.003299713134765625, 0.049102783203125, 0.034027099609375, 0.033447265625, 0.006195068359375, 0.02459716796875, 0.0247802734375, -0.0211639404296875, -0.129150390625, -0.0374755859375, -0.04229736328125, 0.03619384765625, -0.0311279296875, 0.0288543701171875, 0.036956787109375, -0.0233306884765625, -0.07122802734375, -0.005718231201171875, -0.0198211669921875, -0.0244903564453125, -0.0587158203125, -0.0147247314453125, 0.0177154541015625, -0.043487548828125, -0.04656982421875, 0.00812530517578125, -0.042205810546875, 0.033721923828125, 0.0182952880859375, 0.0384521484375, 0.035369873046875, 0.0121917724609375, -0.01396942138671875, 0.0102386474609375, 0.0066680908203125, -0.0023288726806640625, 0.01007080078125, 0.0016012191772460938, 0.011810302734375, 0.057281494140625, -0.0251007080078125, -0.05645751953125, -0.028472900390625, -0.04315185546875, -0.0194549560546875, -0.06427001953125, -0.033172607421875, -0.00896453857421875, 0.035675048828125, 0.05517578125, -0.004405975341796875, -0.04638671875, 0.00524139404296875, -0.00945281982421875, 0.005756378173828125, 0.01073455810546875, -0.0231170654296875, -0.0139312744140625, -0.004058837890625, -0.01337432861328125, -0.0090789794921875, -0.01232147216796875, -0.00551605224609375, -0.0215606689453125, -0.008880615234375, 0.010009765625, 0.00411224365234375, -0.038970947265625, -0.0533447265625, 0.04833984375, -0.0374755859375, -0.032958984375, 0.00527191162109375, 0.0308685302734375, -0.0243988037109375, -0.0280914306640625, -0.041168212890625, -0.0163726806640625, 0.01071929931640625, 0.0287017822265625, -0.00970458984375, 0.047149658203125, -0.0301971435546875, 0.015350341796875, 0.0111236572265625, 0.00390625, 0.0086212158203125, 0.01194000244140625, -0.052276611328125, 0.012298583984375, -0.0235137939453125, -0.0546875, -0.03216552734375, -0.0201416015625, -0.01386260986328125, 0.003482818603515625, 0.0080718994140625, 0.0206298828125, 0.0269927978515625, 0.023162841796875, 0.0210418701171875, -0.006702423095703125, -0.031524658203125, -0.023193359375, -0.01543426513671875, 0.02398681640625, -0.0062713623046875, 0.00809478759765625 ]
4ce644bf5631c039824dc5f53674524a6509cc44
Wordpress Stackexchange Q: How to reply to Buddypress notifications? Currently, when I receive notifications from Buddypress, I have to log in the site to post a comment on an event, or a reply to a message. Is there a way to reply directly in the MUA ? My idea was to generate a UUID that would be used as a reply-to field ,e.g. [email protected] , find the related event when the message is received using postfix content filter, parse the email body to extract the reply, and to insert the comment into the database. Is this secure? Can it be done without having high privileges on the server ? A: Check out this plugin. Maybe it does what you need, maybe you can dive in the code to adapt it to your needs. http://commonsinabox.org/documentation/plugins/buddypress-reply-by-email https://github.com/r-a-y/bp-reply-by-email
Q: How to reply to Buddypress notifications? Currently, when I receive notifications from Buddypress, I have to log in the site to post a comment on an event, or a reply to a message. Is there a way to reply directly in the MUA ? My idea was to generate a UUID that would be used as a reply-to field ,e.g. [email protected] , find the related event when the message is received using postfix content filter, parse the email body to extract the reply, and to insert the comment into the database. Is this secure? Can it be done without having high privileges on the server ? A: Check out this plugin. Maybe it does what you need, maybe you can dive in the code to adapt it to your needs. http://commonsinabox.org/documentation/plugins/buddypress-reply-by-email https://github.com/r-a-y/bp-reply-by-email
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:425037", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70041" }
[ 0.0090179443359375, -0.0274505615234375, -0.0106201171875, -0.0243682861328125, -0.01041412353515625, -0.010650634765625, 0.007167816162109375, 0.00347137451171875, 0.0023593902587890625, 0.05108642578125, 0.02947998046875, -0.021331787109375, 0.03424072265625, -0.0292510986328125, -0.040924072265625, 0.0016345977783203125, 0.0183258056640625, 0.0084686279296875, 0.0171661376953125, -0.02056884765625, 0.018035888671875, -0.0051422119140625, -0.008514404296875, 0.0262298583984375, 0.0345458984375, 0.038299560546875, 0.08642578125, -0.01800537109375, 0.05426025390625, 0.00533294677734375, 0.041351318359375, -0.08880615234375, 0.0227203369140625, 0.04119873046875, -0.061279296875, -0.024261474609375, 0.035858154296875, -0.00835418701171875, -0.0069580078125, 0.040771484375, 0.01122283935546875, -0.0096282958984375, 0.04296875, 0.0200958251953125, 0.038726806640625, -0.04034423828125, 0.0280303955078125, -0.08587646484375, 0.0210418701171875, -0.0012531280517578125, 0.0168914794921875, 0.0127716064453125, 0.026458740234375, -0.00217437744140625, -0.01007080078125, 0.031768798828125, -0.0745849609375, 0.0175933837890625, -0.00031948089599609375, 0.040771484375, 0.04229736328125, 0.0192108154296875, -0.0102386474609375, 0.00865936279296875, 0.019287109375, -0.0129241943359375, 0.00293731689453125, 0.0269012451171875, 0.050994873046875, -0.01535797119140625, -0.029541015625, 0.0333251953125, -0.01641845703125, -0.04522705078125, 0.0007543563842773438, 0.004852294921875, -0.01064300537109375, -0.055023193359375, 0.005878448486328125, 0.01450347900390625, -0.002155303955078125, -0.010223388671875, 0.0065155029296875, -0.007732391357421875, -0.007495880126953125, 0.010528564453125, -0.01446533203125, -0.00804901123046875, -0.03387451171875, 0.01055908203125, -0.01470184326171875, -0.061309814453125, -0.0008859634399414062, 0.04345703125, 0.0113677978515625, -0.0023670196533203125, -0.022735595703125, 0.02935791015625, -0.0242919921875, 0.00304412841796875, -0.039947509765625, 0.00861358642578125, -0.024261474609375, -0.01824951171875, -0.01953125, 0.0259552001953125, -0.002044677734375, -0.06964111328125, -0.004444122314453125, 0.024932861328125, 0.0003638267517089844, -0.040374755859375, -0.01276397705078125, -0.014556884765625, -0.0006656646728515625, 0.01107025146484375, -0.045745849609375, 0.0276031494140625, -0.010711669921875, 0.004016876220703125, 0.00992584228515625, 0.01018524169921875, 0.02044677734375, -0.011688232421875, 0.01068115234375, 0.004909515380859375, -0.02099609375, -0.0294342041015625, 0.0028896331787109375, -0.041107177734375, -0.0161590576171875, 0.042694091796875, 0.042144775390625, 0.03668212890625, 0.01375579833984375, 0.00849151611328125, 0.02850341796875, -0.0017557144165039062, 0.0174560546875, -0.01042938232421875, 0.037109375, -0.0151214599609375, 0.004489898681640625, 0.022705078125, -0.017181396484375, 0.01045989990234375, 0.00933074951171875, 0.03057861328125, -0.01262664794921875, -0.03155517578125, 0.00786590576171875, -0.0202789306640625, -0.01087188720703125, 0.031524658203125, 0.0251922607421875, -0.0280914306640625, 0.04400634765625, -0.0467529296875, 0.041046142578125, -0.034698486328125, -0.0114288330078125, -0.01508331298828125, 0.030487060546875, -0.019439697265625, -0.00487518310546875, 0.0217742919921875, -0.05133056640625, 0.00439453125, 0.0162506103515625, -0.0201416015625, -0.01202392578125, 0.031951904296875, 0.0183258056640625, -0.01010894775390625, 0.004322052001953125, -0.01523590087890625, -0.0118408203125, 0.004344940185546875, 0.032318115234375, 0.0013866424560546875, 0.00724029541015625, -0.023468017578125, 0.04736328125, -0.0013484954833984375, -0.01024627685546875, 0.05712890625, 0.0164947509765625, 0.06561279296875, -0.017669677734375, 0.0196075439453125, -0.01218414306640625, 0.0245361328125, -0.0206298828125, 0.022308349609375, -0.03424072265625, -0.0390625, 0.045654296875, 0.00751495361328125, -0.007091522216796875, 0.007556915283203125, -0.04327392578125, 0.0199127197265625, -0.005229949951171875, 0.018768310546875, -0.0426025390625, 0.052276611328125, -0.0389404296875, 0.05145263671875, -0.00754547119140625, 0.017730712890625, -0.0006885528564453125, -0.0101470947265625, -0.00707244873046875, -0.04864501953125, -0.0160980224609375, 0.001636505126953125, -0.0310516357421875, -0.0082550048828125, -0.0250244140625, 0.0182952880859375, -0.049591064453125, -0.00783538818359375, -0.041412353515625, -0.0121612548828125, 0.021942138671875, -0.016632080078125, -0.022735595703125, -0.0136260986328125, -0.01056671142578125, 0.0216064453125, -0.06622314453125, 0.031402587890625, -0.016876220703125, -0.041534423828125, -0.004261016845703125, 0.0125732421875, 0.0154266357421875, -0.0689697265625, 0.013885498046875, 0.0479736328125, 0.033477783203125, -0.045989990234375, 0.0273895263671875, 0.039276123046875, 0.000507354736328125, -0.01006317138671875, 0.03753662109375, -0.031585693359375, 0.0423583984375, 0.053192138671875, -0.01995849609375, -0.056549072265625, 0.01580810546875, -0.0288543701171875, -0.0031890869140625, 0.00435638427734375, 0.034088134765625, 0.0264892578125, -0.02960205078125, 0.021697998046875, -0.0045166015625, -0.01971435546875, -0.039825439453125, -0.0004177093505859375, -0.0592041015625, -0.0170135498046875, -0.0024852752685546875, -0.002269744873046875, 0.04864501953125, -0.0411376953125, 0.0007648468017578125, -0.0450439453125, 0.0007195472717285156, 0.003643035888671875, 0.005573272705078125, 0.036590576171875, 0.0016202926635742188, -0.0137939453125, -0.0025196075439453125, 0.0139617919921875, -0.033447265625, 0.00516510009765625, -0.03106689453125, -0.027679443359375, -0.007904052734375, -0.00423431396484375, -0.0164794921875, -0.04632568359375, -0.046112060546875, -0.01157379150390625, -0.0129547119140625, 0.08538818359375, 0.0025043487548828125, 0.0465087890625, -0.002666473388671875, 0.0255279541015625, -0.03143310546875, -0.052490234375, 0.05084228515625, -0.06463623046875, 0.0289459228515625, 0.07550048828125, -0.002071380615234375, -0.00009560585021972656, 0.0071258544921875, -0.0270233154296875, 0.0019140243530273438, 0.0276336669921875, 0.00771331787109375, -0.017547607421875, -0.007335662841796875, 0.064208984375, -0.003570556640625, 0.01197052001953125, -0.01297760009765625, -0.05474853515625, -0.003574371337890625, 0.01055908203125, -0.046875, -0.018096923828125, 0.0038585662841796875, -0.0662841796875, 0.0084381103515625, -0.037078857421875, -0.0295257568359375, -0.00817108154296875, -0.005481719970703125, 0.01007843017578125, -0.041961669921875, -0.038726806640625, -0.048828125, -0.0738525390625, -0.032958984375, 0.04132080078125, -0.0089569091796875, 0.00481414794921875, 0.0215911865234375, 0.0167083740234375, 0.0119476318359375, -0.0220184326171875, 0.0123443603515625, 0.0003867149353027344, -0.018890380859375, -0.031585693359375, -0.02392578125, -0.00954437255859375, 0.0142059326171875, 0.005481719970703125, 0.0198516845703125, 0.002834320068359375, -0.006008148193359375, -0.022125244140625, -0.01534271240234375, 0.0013942718505859375, 0.007904052734375, -0.022003173828125, 0.007259368896484375, 0.00568389892578125, -0.0090179443359375, -0.050506591796875, 0.006992340087890625, 0.0109710693359375, -0.0162506103515625, -0.0577392578125, 0.0037403106689453125, -0.01898193359375, -0.042144775390625, 0.0011577606201171875, -0.0197296142578125, 0.0025653839111328125, 0.0391845703125, -0.04339599609375, 0.030914306640625, -0.00788116455078125, -0.0206146240234375, -0.044769287109375, -0.04241943359375, -0.05108642578125, 0.03509521484375, -0.038116455078125, -0.0170745849609375, -0.0440673828125, 0.0306243896484375, -0.05865478515625, -0.033660888671875, 0.029998779296875, -0.032928466796875, 0.003971099853515625, -0.00861358642578125, -0.00485992431640625, 0.005702972412109375, 0.05621337890625, -0.040435791015625, -0.0236358642578125, 0.0217437744140625, 0.015716552734375, -0.026947021484375, -0.0261383056640625, -0.01678466796875, -0.023681640625, -0.042816162109375, -0.008331298828125, -0.0153350830078125, -0.0205841064453125, -0.01190948486328125, -0.0054779052734375, -0.01953125, -0.03289794921875, 0.01157379150390625, -0.035430908203125, 0.01934814453125, 0.04022216796875, 0.00565338134765625, 0.0066986083984375, -0.01038360595703125, -0.056671142578125, -0.042877197265625, -0.0182647705078125, 0.004230499267578125, 0.03533935546875, -0.01016998291015625, 0.01837158203125, -0.01128387451171875, 0.046142578125, -0.00494384765625, 0.035430908203125, -0.003143310546875, 0.0035858154296875, 0.034423828125, 0.01432037353515625, 0.003681182861328125, -0.016021728515625, 0.0182342529296875, 0.0128326416015625, 0.0016355514526367188, -0.0035552978515625, -0.0460205078125, -0.056304931640625, 0.011138916015625, -0.044036865234375, -0.005977630615234375, 0.01220703125, -0.01593017578125, 0.01541900634765625, -0.03778076171875, -0.013397216796875, 0.033935546875, -0.01477813720703125, -0.0117950439453125, -0.01222991943359375, -0.023040771484375, 0.0120086669921875, 0.0177764892578125, 0.029266357421875, -0.0063018798828125, 0.02203369140625, 0.0099639892578125, 0.059906005859375, 0.03887939453125, -0.0153045654296875, -0.0040740966796875, -0.060302734375, 0.061859130859375, 0.06658935546875, 0.01666259765625, -0.0182037353515625, 0.08917236328125, -0.01194000244140625, -0.0142364501953125, 0.04632568359375, -0.0167236328125, -0.039093017578125, 0.00846099853515625, -0.00433349609375, -0.0157318115234375, -0.023651123046875, 0.036285400390625, -0.0011262893676757812, 0.028472900390625, -0.0260772705078125, -0.07220458984375, 0.046356201171875, -0.047821044921875, -0.0307769775390625, -0.023834228515625, 0.0029392242431640625, -0.0038242340087890625, -0.03948974609375, -0.01123046875, 0.0139923095703125, -0.040924072265625, 0.01331329345703125, 0.01641845703125, 0.00888824462890625, -0.01280975341796875, 0.025238037109375, -0.0031280517578125, 0.0281982421875, 0.00696563720703125, -0.0267181396484375, -0.029022216796875, -0.006694793701171875, -0.01081085205078125, -0.0029964447021484375, -0.0178375244140625, 0.025115966796875, 0.06927490234375, -0.03558349609375, -0.00894927978515625, -0.0004448890686035156, 0.01082611083984375, -0.056243896484375, -0.003681182861328125, 0.00832366943359375, -0.015777587890625, 0.008575439453125, 0.02923583984375, -0.07562255859375, 0.03216552734375, 0.02545166015625, 0.0292510986328125, 0.050750732421875, -0.0027313232421875, 0.036651611328125, -0.01486968994140625, -0.00907135009765625, -0.0160369873046875, -0.0075225830078125, 0.0005712509155273438, 0.005828857421875, 0.013458251953125, -0.017242431640625, 0.037750244140625, 0.0193634033203125, 0.01369476318359375, 0.023956298828125, -0.028900146484375, 0.0185699462890625, 0.0625, 0.0012454986572265625, -0.01544189453125, -0.004917144775390625, 0.018280029296875, 0.053558349609375, 0.005672454833984375, 0.049591064453125, -0.0012273788452148438, 0.025177001953125, -0.026123046875, 0.0305938720703125, -0.028656005859375, -0.03216552734375, 0.0213165283203125, -0.008636474609375, -0.01129150390625, -0.01554107666015625, 0.01300811767578125, -0.0085906982421875, -0.0171356201171875, 0.045928955078125, 0.0154571533203125, -0.031158447265625, -0.027618408203125, 0.01450347900390625, -0.0302734375, -0.01261138916015625, 0.06280517578125, -0.0039520263671875, -0.00933837890625, -0.00798797607421875, -0.0037555694580078125, -0.0263214111328125, 0.0021514892578125, -0.0298004150390625, -0.01204681396484375, -0.01340484619140625, 0.0187225341796875, 0.039215087890625, -0.058746337890625, -0.1033935546875, 0.00479888916015625, 0.01480865478515625, 0.0279388427734375, 0.050262451171875, 0.0119171142578125, 0.004344940185546875, 0.00811767578125, 0.01416778564453125, 0.0178680419921875, 0.0159759521484375, 0.01041412353515625, -0.0380859375, -0.02783203125, -0.02587890625, 0.03173828125, -0.01007080078125, 0.0665283203125, 0.00653839111328125, 0.005039215087890625, 0.01194000244140625, 0.01995849609375, -0.001987457275390625, -0.0009632110595703125, -0.0171051025390625, 0.0233306884765625, -0.0137176513671875, 0.0310516357421875, 0.010284423828125, -0.0126800537109375, 0.0243988037109375, -0.0226593017578125, 0.00986480712890625, -0.03082275390625, -0.0010900497436523438, -0.0210113525390625, 0.037384033203125, 0.002346038818359375, 0.0396728515625, 0.08026123046875, 0.0310821533203125, 0.03857421875, 0.043243408203125, 0.0033206939697265625, -0.05889892578125, 0.05035400390625, -0.0113067626953125, -0.09967041015625, 0.05596923828125, 0.026611328125, -0.04315185546875, 0.034393310546875, -0.045928955078125, 0.0201416015625, 0.01155853271484375, 0.048675537109375, -0.0599365234375, 0.0243377685546875, 0.0001036524772644043, -0.0099945068359375, 0.054901123046875, -0.032440185546875, -0.051727294921875, -0.1031494140625, 0.0906982421875, 0.0081024169921875, -0.028656005859375, 0.0146942138671875, -0.005786895751953125, -0.01201629638671875, 0.035308837890625, 0.0128936767578125, 0.01763916015625, -0.0024776458740234375, -0.04193115234375, 0.0167083740234375, -0.0091705322265625, -0.0029449462890625, 0.0008401870727539062, 0.042572021484375, -0.060699462890625, -0.060089111328125, 0.0280303955078125, -0.01290130615234375, -0.0312042236328125, -0.032196044921875, -0.025543212890625, -0.013092041015625, 0.0282745361328125, -0.031585693359375, -0.01444244384765625, 0.0192718505859375, -0.07122802734375, 0.019927978515625, -0.00724029541015625, 0.002223968505859375, 0.04949951171875, -0.0419921875, 0.01174163818359375, -0.0267486572265625, 0.020416259765625, -0.000736236572265625, -0.006191253662109375, 0.06451416015625, -0.07342529296875, 0.006023406982421875, 0.0214996337890625, 0.0180206298828125, -0.008575439453125, -0.01267242431640625, 0.04205322265625, -0.036346435546875, 0.0246734619140625, 0.0134735107421875, 0.034271240234375, -0.032073974609375, -0.0149383544921875, -0.06365966796875, 0.06622314453125, 0.0030975341796875, 0.00870513916015625, 0.0024471282958984375, 0.0250091552734375, -0.0249176025390625, -0.003772735595703125, -0.02996826171875, 0.061370849609375, -0.02984619140625, 0.07086181640625, -0.05078125, -0.0222320556640625, 0.0272979736328125, 0.041717529296875, 0.0516357421875, 0.0224609375, -0.035736083984375, 0.01116943359375, 0.02392578125, -0.01922607421875, -0.0287628173828125, 0.0703125, -0.02276611328125, 0.0206451416015625, 0.051177978515625, -0.0596923828125, 0.0217437744140625, -0.0093536376953125, 0.0003020763397216797, -0.022308349609375, -0.005649566650390625, -0.00959014892578125, -0.011932373046875, 0.032196044921875, 0.0184326171875, -0.021209716796875, -0.0165863037109375, -0.07342529296875, 0.022918701171875, 0.02008056640625, 0.0265350341796875, -0.013031005859375, 0.0250091552734375, -0.025543212890625, 0.04547119140625, -0.0197296142578125, 0.0192718505859375, 0.0269927978515625, 0.0225830078125, 0.07208251953125, -0.037384033203125, -0.006198883056640625, 0.005260467529296875, -0.0157012939453125, 0.02899169921875, -0.0251312255859375, 0.02032470703125, -0.0816650390625, -0.04180908203125, 0.04510498046875, 0.047607421875, -0.027801513671875, -0.01316070556640625, 0.02325439453125, 0.0202178955078125, 0.029449462890625, -0.02716064453125, 0.03887939453125, -0.05517578125, -0.01430511474609375, -0.0219573974609375, -0.004222869873046875, 0.03778076171875, -0.002899169921875, 0.0191497802734375, 0.039306640625, -0.0244293212890625, -0.0150909423828125, -0.0090484619140625, 0.037109375, 0.018341064453125, -0.0233306884765625, -0.040191650390625, 0.0261383056640625, 0.042877197265625, 0.058990478515625, 0.0307464599609375, -0.042327880859375, 0.06390380859375, -0.07196044921875, 0.0706787109375, 0.054779052734375, 0.042938232421875, -0.01154327392578125, 0.01446533203125, 0.0186004638671875, 0.02587890625, -0.006786346435546875, -0.041229248046875, -0.009979248046875, 0.007282257080078125, -0.03289794921875, -0.00861358642578125, -0.0322265625, -0.02386474609375, 0.012298583984375, -0.0222930908203125, 0.007480621337890625, -0.035858154296875, 0.052093505859375, -0.0169830322265625, 0.0176849365234375, -0.004314422607421875, 0.00588226318359375, 0.07672119140625, -0.0218505859375, 0.00669097900390625, 0.0009183883666992188, -0.059661865234375, -0.0258941650390625, 0.01430511474609375, 0.0156402587890625, -0.0022373199462890625, 0.0229034423828125, -0.01346588134765625, 0.0232696533203125, -0.006229400634765625, 0.035186767578125, 0.0233612060546875, -0.0826416015625, 0.02294921875, 0.026153564453125, 0.00957489013671875, 0.0274200439453125, -0.0416259765625, -0.026123046875, -0.0306396484375, 0.039825439453125, 0.024627685546875, 0.0562744140625, 0.002452850341796875, 0.0335693359375, -0.04229736328125, 0.046142578125, -0.049713134765625, -0.038330078125, 0.058563232421875, 0.03076171875, -0.0014619827270507812, -0.0110931396484375, -0.085693359375, 0.028533935546875, 0.01145172119140625, 0.0197296142578125, 0.035675048828125, -0.0113372802734375, -0.001697540283203125, 0.01262664794921875, -0.0268096923828125, -0.0307769775390625, -0.01047515869140625, -0.01020050048828125, -0.007801055908203125, 0.0148773193359375, 0.0178985595703125, 0.0196075439453125, 0.0455322265625, 0.00321197509765625, 0.041900634765625, -0.027587890625, -0.0185089111328125, -0.038482666015625, 0.0298614501953125, -0.052734375, 0.00801849365234375, 0.01326751708984375, -0.0226593017578125, 0.023223876953125, -0.01482391357421875, 0.0301055908203125, 0.0179290771484375, -0.00839996337890625, 0.016632080078125, -0.0308837890625, 0.029052734375, -0.0105438232421875, -0.0162506103515625, -0.0176849365234375, 0.0220794677734375, -0.009185791015625, -0.0501708984375, -0.0264739990234375, -0.1068115234375, 0.01381683349609375, 0.01259613037109375, -0.049346923828125, -0.01284027099609375, 0.0034618377685546875, -0.016387939453125, -0.01136016845703125, -0.019866943359375, -0.01357269287109375, -0.0147552490234375, 0.02587890625, 0.048980712890625, -0.049560546875, 0.0287017822265625, -0.002933502197265625, -0.0078582763671875, -0.0114593505859375, -0.033294677734375, -0.0306549072265625, 0.053070068359375, -0.0191650390625, 0.00582122802734375, 0.0251617431640625, -0.0249786376953125, -0.0055084228515625, -0.0202484130859375, 0.0240478515625, 0.018951416015625, 0.027923583984375, -0.023406982421875, 0.00608062744140625, -0.0063323974609375, -0.0252838134765625, -0.0213470458984375, 0.034576416015625, -0.0943603515625, -0.014678955078125, -0.0296783447265625, 0.022308349609375, 0.0274505615234375, -0.04156494140625, -0.0660400390625, 0.093017578125, -0.02508544921875, -0.0146026611328125, -0.06396484375, 0.0105133056640625, 0.0204010009765625, -0.030609130859375, -0.0279083251953125, 0.01849365234375, -0.0345458984375, 0.028411865234375, 0.0262603759765625, 0.0139007568359375, 0.0291900634765625, 0.0079803466796875, -0.0267333984375, 0.0025196075439453125, -0.0203094482421875, 0.0118408203125, -0.032928466796875, 0.0139007568359375, 0.007236480712890625, 0.0283660888671875, -0.0224151611328125, 0.024932861328125, 0.0201873779296875, 0.0006995201110839844, -0.0014638900756835938, -0.0238189697265625, -0.0284423828125, 0.00455474853515625, 0.001560211181640625, 0.06585693359375, -0.0006265640258789062, -0.047210693359375, 0.01873779296875, -0.0260162353515625, -0.021209716796875, -0.038970947265625, -0.006046295166015625, -0.035614013671875, -0.0223236083984375, -0.029083251953125, 0.006137847900390625, 0.007213592529296875, -0.052215576171875, -0.01407623291015625, -0.0069427490234375, -0.0172576904296875, -0.00782012939453125, 0.005126953125, -0.057647705078125, 0.0267333984375, -0.007320404052734375, 0.016510009765625, 0.01189422607421875, 0.034271240234375, 0.01043701171875, 0.0635986328125, 0.003101348876953125, -0.028350830078125, 0.02655029296875, 0.030181884765625, 0.0194244384765625, 0.005126953125, -0.01149749755859375, -0.021270751953125, 0.0173187255859375, 0.020660400390625, -0.013824462890625, 0.027679443359375, -0.004116058349609375, 0.001373291015625, -0.023345947265625, 0.0252532958984375, -0.00301361083984375, -0.09674072265625, -0.0270538330078125, 0.009979248046875, 0.0197296142578125, -0.0277557373046875, 0.0665283203125, -0.05438232421875, 0.0234222412109375, 0.01320648193359375, 0.05548095703125, -0.0287628173828125, 0.038330078125, 0.08038330078125, 0.0304718017578125, 0.0225830078125 ]
60997d8017494a54ca6eb602ab1c3d3a3dbeb8db
Wordpress Stackexchange Q: Removing default image size list in Media Box I trying to remove unused image size (Thumbnail, Medium, Large) in MediaBox Any function can i use in functions.php ? or some trick ? PS : I know i can use jQuery trick but any better function to use ? A: Exactly the same code as Mridul, but different filter: function wp_70048_remove_image_sizes($sizes) { unset($sizes['thumbnail']); unset($sizes['medium']); unset($sizes['large']); return $sizes; } add_filter('image_size_names_choose', 'wp_70048_remove_image_sizes'); Tested with WP 3.4.2
Q: Removing default image size list in Media Box I trying to remove unused image size (Thumbnail, Medium, Large) in MediaBox Any function can i use in functions.php ? or some trick ? PS : I know i can use jQuery trick but any better function to use ? A: Exactly the same code as Mridul, but different filter: function wp_70048_remove_image_sizes($sizes) { unset($sizes['thumbnail']); unset($sizes['medium']); unset($sizes['large']); return $sizes; } add_filter('image_size_names_choose', 'wp_70048_remove_image_sizes'); Tested with WP 3.4.2 A: function remove_default_image_sizes($sizes) { unset($sizes['thumbnail']); unset($sizes['medium']); unset($sizes['large']); return $sizes; } add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes');
wordpress
{ "language": "en", "length": 86, "provenance": "stackexchange_00019.jsonl.gz:425038", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70048" }
[ 0.0039043426513671875, -0.010162353515625, -0.0051116943359375, 0.01374053955078125, 0.00775909423828125, -0.03570556640625, 0.083251953125, -0.0200042724609375, 0.0102691650390625, 0.043243408203125, 0.0010528564453125, 0.0063323974609375, -0.0203399658203125, -0.01126861572265625, -0.0399169921875, -0.01123046875, 0.05108642578125, -0.0005555152893066406, 0.052276611328125, 0.0108642578125, 0.0158538818359375, 0.041046142578125, 0.0168914794921875, 0.0941162109375, -0.0202178955078125, -0.0006270408630371094, 0.046295166015625, -0.0284576416015625, -0.03424072265625, -0.04376220703125, -0.01157379150390625, 0.0562744140625, 0.00017631053924560547, 0.0238189697265625, 0.0219573974609375, 0.034332275390625, 0.00930023193359375, 0.011138916015625, 0.032806396484375, -0.0012426376342773438, 0.007320404052734375, 0.0124664306640625, 0.0180816650390625, -0.0302581787109375, -0.01250457763671875, -0.0207061767578125, -0.00927734375, -0.037445068359375, 0.003910064697265625, -0.0032196044921875, 0.03619384765625, 0.005496978759765625, 0.05731201171875, -0.03253173828125, -0.0108642578125, 0.00484466552734375, -0.022796630859375, 0.0738525390625, 0.03704833984375, 0.0299530029296875, -0.043487548828125, 0.01873779296875, -0.0071868896484375, -0.061248779296875, -0.02032470703125, -0.00881195068359375, -0.0283355712890625, 0.00774383544921875, -0.053375244140625, -0.0296478271484375, 0.04254150390625, -0.028411865234375, -0.0108642578125, -0.031341552734375, -0.0252838134765625, 0.047576904296875, 0.005947113037109375, 0.006694793701171875, 0.0101165771484375, -0.0278167724609375, 0.0154266357421875, 0.01261138916015625, -0.03973388671875, 0.0145416259765625, 0.03515625, 0.05859375, -0.0030536651611328125, -0.0496826171875, -0.0255279541015625, -0.0021572113037109375, -0.01268768310546875, -0.08331298828125, -0.01100921630859375, 0.02996826171875, 0.002471923828125, -0.02020263671875, 0.04376220703125, 0.041717529296875, -0.00803375244140625, -0.017059326171875, 0.0240020751953125, -0.05401611328125, -0.012969970703125, -0.03265380859375, 0.01485443115234375, 0.003021240234375, -0.069580078125, -0.0360107421875, 0.0396728515625, 0.0633544921875, -0.0024585723876953125, -0.0274200439453125, -0.0159149169921875, -0.01351165771484375, -0.0023040771484375, 0.00714111328125, -0.0382080078125, 0.033721923828125, -0.01629638671875, 0.0141754150390625, -0.005157470703125, 0.01277923583984375, 0.01611328125, -0.045989990234375, 0.034912109375, -0.002285003662109375, -0.041595458984375, -0.0087738037109375, -0.01114654541015625, 0.0276641845703125, -0.0271148681640625, 0.00762939453125, 0.03814697265625, 0.00919342041015625, 0.0020275115966796875, -0.0140380859375, 0.01512908935546875, -0.0162353515625, 0.016815185546875, 0.01316070556640625, 0.004425048828125, -0.03570556640625, 0.0006113052368164062, 0.0064697265625, 0.0155487060546875, 0.030364990234375, -0.006256103515625, -0.00469207763671875, 0.026519775390625, -0.042510986328125, 0.01666259765625, -0.05859375, 0.0220794677734375, 0.044189453125, 0.00476837158203125, 0.017822265625, 0.11083984375, -0.0509033203125, -0.05657958984375, -0.07012939453125, 0.019683837890625, -0.0232696533203125, -0.0301971435546875, -0.0134429931640625, -0.033447265625, 0.0269622802734375, -0.0213775634765625, 0.004627227783203125, 0.01947021484375, 0.006229400634765625, -0.0047454833984375, -0.0239410400390625, -0.01885986328125, 0.0205078125, 0.0113677978515625, 0.042755126953125, 0.025115966796875, 0.016876220703125, -0.0029754638671875, 0.0733642578125, 0.00228118896484375, -0.034759521484375, 0.046783447265625, -0.03662109375, -0.032958984375, -0.0556640625, 0.022430419921875, 0.0135498046875, 0.0243072509765625, 0.0255584716796875, 0.049530029296875, -0.0217132568359375, -0.03900146484375, 0.002819061279296875, 0.0081634521484375, 0.007038116455078125, -0.037261962890625, -0.007160186767578125, -0.010528564453125, -0.007720947265625, 0.0767822265625, 0.01690673828125, 0.01605224609375, -0.034149169921875, -0.09405517578125, 0.03997802734375, -0.043670654296875, 0.048675537109375, -0.05401611328125, 0.0098724365234375, 0.0240631103515625, -0.0400390625, -0.023529052734375, 0.051055908203125, 0.028961181640625, -0.01702880859375, 0.0081939697265625, 0.030029296875, -0.00333404541015625, 0.025848388671875, -0.0262603759765625, -0.026947021484375, -0.030303955078125, 0.003070831298828125, 0.045745849609375, 0.01031494140625, -0.0400390625, -0.0186920166015625, 0.0291900634765625, -0.012420654296875, -0.0167388916015625, 0.06878662109375, -0.008697509765625, 0.017425537109375, -0.01358795166015625, -0.0289459228515625, 0.007030487060546875, -0.0745849609375, 0.03509521484375, 0.05267333984375, 0.0423583984375, 0.041595458984375, 0.01403045654296875, 0.03515625, 0.0909423828125, 0.01212310791015625, 0.021942138671875, -0.004791259765625, 0.0136260986328125, -0.0030155181884765625, -0.027252197265625, -0.032379150390625, 0.027984619140625, -0.0157318115234375, 0.046875, 0.00785064697265625, -0.01314544677734375, -0.0279388427734375, 0.007534027099609375, 0.0438232421875, -0.00775909423828125, -0.0035877227783203125, 0.0036716461181640625, -0.014373779296875, -0.011962890625, 0.024627685546875, -0.0014190673828125, -0.00008374452590942383, -0.033782958984375, 0.0430908203125, 0.02630615234375, -0.04620361328125, -0.0122528076171875, 0.0282135009765625, 0.0201263427734375, 0.0014848709106445312, -0.036102294921875, -0.0070343017578125, -0.002254486083984375, 0.011993408203125, -0.01454925537109375, 0.01541900634765625, -0.06805419921875, -0.019012451171875, -0.0113372802734375, -0.034515380859375, -0.015167236328125, -0.00015866756439208984, -0.0093536376953125, -0.005435943603515625, -0.0065460205078125, 0.0682373046875, -0.00774383544921875, 0.053802490234375, 0.01436614990234375, 0.00728607177734375, 0.0146026611328125, -0.037994384765625, 0.054168701171875, -0.047698974609375, 0.055572509765625, 0.058868408203125, -0.0533447265625, 0.04412841796875, -0.0085601806640625, -0.00582122802734375, 0.005008697509765625, -0.0008449554443359375, -0.01213836669921875, 0.02105712890625, -0.055328369140625, -0.015380859375, -0.00531768798828125, -0.019256591796875, -0.0216827392578125, -0.0247650146484375, 0.005077362060546875, -0.0130767822265625, -0.041107177734375, -0.01470947265625, -0.00640869140625, -0.04302978515625, -0.06524658203125, 0.01116943359375, -0.04486083984375, 0.0318603515625, 0.031768798828125, -0.0188140869140625, 0.021331787109375, -0.0017032623291015625, -0.0040435791015625, -0.00011909008026123047, -0.036651611328125, -0.0194244384765625, 0.0003790855407714844, -0.00862884521484375, -0.00933837890625, 0.047943115234375, -0.0012197494506835938, -0.035125732421875, -0.006107330322265625, 0.00261688232421875, 0.0115966796875, -0.003856658935546875, 0.027801513671875, -0.0193634033203125, -0.039794921875, 0.0066375732421875, 0.0272369384765625, 0.039764404296875, -0.044647216796875, 0.01532745361328125, -0.026763916015625, -0.03424072265625, -0.02252197265625, 0.0732421875, 0.049468994140625, -0.051483154296875, 0.019195556640625, -0.0517578125, -0.017791748046875, -0.0131988525390625, -0.02752685546875, 0.03948974609375, -0.001102447509765625, -0.01090240478515625, 0.0046844482421875, 0.031036376953125, 0.033843994140625, 0.024505615234375, -0.008636474609375, 0.006175994873046875, 0.042449951171875, 0.00972747802734375, 0.0191497802734375, -0.0204925537109375, 0.022216796875, -0.019805908203125, 0.019134521484375, 0.0078277587890625, 0.00347900390625, 0.025390625, -0.049102783203125, 0.01198577880859375, -0.0063323974609375, 0.0287017822265625, 0.0206298828125, 0.01325225830078125, -0.00556182861328125, -0.0284881591796875, 0.003574371337890625, 0.0465087890625, -0.055145263671875, -0.0325927734375, -0.0242462158203125, 0.01522064208984375, 0.004894256591796875, -0.051025390625, 0.028717041015625, -0.0341796875, -0.0753173828125, 0.005859375, 0.0262908935546875, -0.0384521484375, -0.023681640625, 0.028167724609375, -0.0726318359375, -0.0175018310546875, 0.03643798828125, -0.00389862060546875, 0.00021064281463623047, 0.005916595458984375, -0.0062103271484375, -0.006565093994140625, -0.0121002197265625, -0.01476287841796875, -0.07611083984375, -0.020660400390625, -0.0260162353515625, 0.088134765625, -0.005199432373046875, 0.0264892578125, -0.048187255859375, 0.05194091796875, 0.0086212158203125, -0.0008993148803710938, -0.01096343994140625, 0.0016145706176757812, -0.0030345916748046875, -0.012664794921875, -0.00717926025390625, -0.0164337158203125, -0.01296234130859375, -0.057830810546875, -0.040008544921875, -0.00897216796875, -0.004230499267578125, 0.039886474609375, -0.0069427490234375, 0.01197052001953125, -0.038482666015625, -0.028411865234375, 0.004070281982421875, 0.0025615692138671875, 0.002498626708984375, 0.0087738037109375, -0.0401611328125, -0.034423828125, 0.01253509521484375, 0.040863037109375, -0.03314208984375, 0.027130126953125, 0.0364990234375, 0.0189666748046875, -0.023406982421875, -0.104248046875, -0.0204620361328125, 0.0263824462890625, 0.0009965896606445312, 0.009033203125, -0.007587432861328125, -0.0176544189453125, 0.018768310546875, 0.007610321044921875, 0.01617431640625, -0.0511474609375, 0.07421875, -0.0005893707275390625, -0.006927490234375, 0.0217437744140625, -0.012786865234375, 0.004550933837890625, -0.006671905517578125, 0.01666259765625, 0.01317596435546875, 0.0303955078125, -0.005680084228515625, 0.0238189697265625, -0.0458984375, -0.00873565673828125, -0.02178955078125, 0.01050567626953125, -0.0217742919921875, 0.03289794921875, 0.01349639892578125, 0.0002734661102294922, 0.0008640289306640625, 0.0325927734375, 0.01486968994140625, -0.0057830810546875, 0.021697998046875, -0.051544189453125, 0.058807373046875, -0.034423828125, -0.0149993896484375, 0.004878997802734375, 0.0100250244140625, -0.04693603515625, 0.0038967132568359375, -0.035858154296875, -0.033721923828125, 0.038482666015625, 0.043212890625, -0.0017614364624023438, -0.01255035400390625, 0.043121337890625, 0.0249176025390625, -0.002582550048828125, -0.029876708984375, -0.044403076171875, 0.007358551025390625, -0.05963134765625, -0.006862640380859375, 0.01226806640625, -0.01340484619140625, 0.05682373046875, -0.0023860931396484375, -0.0259552001953125, 0.0201263427734375, 0.0007481575012207031, 0.01197052001953125, -0.01812744140625, 0.04632568359375, 0.0095977783203125, 0.0105743408203125, -0.0022182464599609375, 0.0176239013671875, 0.010162353515625, -0.0285491943359375, -0.046295166015625, 0.024993896484375, 0.0164794921875, -0.0197296142578125, 0.02276611328125, 0.004138946533203125, 0.0252685546875, -0.001495361328125, 0.037994384765625, -0.036376953125, -0.08807373046875, -0.0035037994384765625, 0.028076171875, 0.042388916015625, -0.06787109375, -0.054229736328125, -0.002040863037109375, -0.04693603515625, -0.0222930908203125, 0.0350341796875, -0.0799560546875, 0.055755615234375, 0.055023193359375, -0.060791015625, -0.030364990234375, -0.0184173583984375, -0.04595947265625, -0.0216217041015625, 0.0030307769775390625, -0.006610870361328125, 0.0023593902587890625, -0.034088134765625, -0.00856781005859375, 0.01532745361328125, -0.0020656585693359375, -0.01160430908203125, 0.024566650390625, 0.0372314453125, 0.01525115966796875, 0.036834716796875, -0.036651611328125, -0.0296783447265625, -0.0298919677734375, 0.037689208984375, -0.007495880126953125, 0.016265869140625, -0.01235198974609375, -0.00937652587890625, -0.0032329559326171875, -0.0079193115234375, -0.0101318359375, -0.004329681396484375, 0.017913818359375, -0.00334930419921875, -0.01421356201171875, -0.0032138824462890625, -0.021942138671875, 0.037506103515625, 0.018890380859375, 0.013397216796875, -0.0093231201171875, -0.00737762451171875, -0.0369873046875, -0.005718231201171875, -0.0009899139404296875, -0.0195159912109375, 0.009674072265625, -0.0472412109375, -0.01751708984375, 0.05859375, 0.00005608797073364258, -0.024688720703125, -0.0164031982421875, -0.01390838623046875, -0.0465087890625, 0.0704345703125, -0.0294036865234375, 0.033172607421875, -0.0843505859375, -0.046417236328125, 0.0279998779296875, -0.0173797607421875, 0.0265350341796875, 0.0149688720703125, -0.06341552734375, 0.00628662109375, 0.0750732421875, -0.00952911376953125, 0.02349853515625, 0.047637939453125, -0.0219573974609375, 0.030914306640625, 0.01389312744140625, -0.003814697265625, 0.0538330078125, -0.039337158203125, 0.00328826904296875, 0.0250091552734375, 0.047119140625, 0.0091400146484375, 0.034820556640625, 0.05999755859375, 0.0089569091796875, 0.0250091552734375, -0.0121002197265625, 0.05084228515625, -0.01244354248046875, 0.0231781005859375, 0.0193634033203125, -0.0168914794921875, 0.0301055908203125, -0.041046142578125, -0.004169464111328125, -0.0255126953125, 0.044525146484375, 0.01140594482421875, -0.045166015625, -0.01776123046875, -0.007328033447265625, -0.01264190673828125, -0.01181793212890625, -0.00617218017578125, 0.003948211669921875, -0.0411376953125, 0.00807952880859375, 0.03857421875, -0.021209716796875, -0.029266357421875, 0.030731201171875, -0.012237548828125, -0.02105712890625, -0.0968017578125, -0.0303955078125, 0.0494384765625, -0.03118896484375, -0.01015472412109375, -0.01526641845703125, -0.0230712890625, 0.019989013671875, -0.040252685546875, 0.0150146484375, 0.0015249252319335938, -0.0947265625, -0.01021575927734375, -0.016632080078125, 0.05859375, -0.0186767578125, -0.064697265625, 0.0233001708984375, -0.041748046875, -0.0241546630859375, 0.002338409423828125, -0.0187835693359375, 0.044403076171875, -0.033172607421875, -0.0022411346435546875, 0.0278167724609375, 0.039215087890625, 0.00421142578125, -0.000037670135498046875, 0.0245819091796875, -0.0634765625, -0.038299560546875, 0.0021648406982421875, -0.041900634765625, 0.007640838623046875, -0.018218994140625, -0.0775146484375, 0.07415771484375, -0.03326416015625, 0.0706787109375, 0.01214599609375, 0.002872467041015625, 0.0157623291015625, 0.01107025146484375, -0.002777099609375, 0.00027370452880859375, -0.0019016265869140625, -0.03265380859375, 0.0034236907958984375, 0.025848388671875, -0.0257568359375, -0.0145111083984375, 0.04388427734375, 0.0026645660400390625, -0.005992889404296875, -0.031097412109375, 0.048797607421875, 0.07147216796875, 0.036529541015625, 0.0030422210693359375, -0.02801513671875, -0.0257568359375, 0.0222015380859375, -0.01739501953125, 0.0308837890625, -0.0180816650390625, -0.02410888671875, -0.007289886474609375, 0.01142120361328125, 0.01224517822265625, 0.00374603271484375, 0.07745361328125, -0.01108551025390625, -0.016387939453125, 0.03173828125, -0.048828125, 0.0207977294921875, 0.046356201171875, 0.042694091796875, -0.00787353515625, -0.035980224609375, 0.004459381103515625, 0.044647216796875, -0.003726959228515625, 0.0245208740234375, 0.050689697265625, 0.02154541015625, 0.0831298828125, -0.023712158203125, -0.00328826904296875, -0.01439666748046875, 0.02178955078125, -0.0081939697265625, 0.003925323486328125, -0.00797271728515625, -0.040252685546875, 0.016204833984375, 0.049224853515625, 0.01012420654296875, -0.0274810791015625, -0.0562744140625, 0.01065826416015625, 0.01007843017578125, 0.0211639404296875, -0.005115509033203125, 0.025421142578125, -0.0792236328125, -0.00534820556640625, -0.0255584716796875, 0.00972747802734375, 0.024383544921875, 0.015960693359375, -0.01507568359375, 0.00908660888671875, -0.017578125, 0.00007098913192749023, -0.010040283203125, -0.03594970703125, 0.006618499755859375, 0.0230560302734375, 0.015625, 0.00716400146484375, -0.00191497802734375, 0.003421783447265625, -0.0263214111328125, 0.037994384765625, -0.016265869140625, 0.041107177734375, -0.038360595703125, -0.004398345947265625, -0.017578125, 0.024505615234375, 0.0218963623046875, 0.028564453125, 0.06805419921875, 0.0176544189453125, -0.05938720703125, -0.005695343017578125, -0.016754150390625, -0.032745361328125, 0.004547119140625, -0.032012939453125, 0.027130126953125, 0.0298614501953125, -0.0016326904296875, 0.00673675537109375, -0.005458831787109375, 0.0614013671875, -0.04425048828125, 0.058502197265625, -0.00901031494140625, -0.02667236328125, 0.0223846435546875, -0.0174713134765625, 0.072998046875, -0.0181884765625, -0.034393310546875, -0.006610870361328125, 0.015899658203125, 0.0195770263671875, -0.01806640625, 0.01458740234375, -0.02618408203125, 0.05755615234375, 0.0229339599609375, -0.014984130859375, 0.002880096435546875, -0.01385498046875, 0.0160675048828125, -0.023712158203125, 0.016357421875, 0.002166748046875, -0.046783447265625, -0.0237274169921875, 0.0022678375244140625, 0.01377105712890625, 0.00959014892578125, 0.052764892578125, 0.00543975830078125, 0.021484375, -0.00878143310546875, -0.008026123046875, 0.0097503662109375, -0.007068634033203125, -0.0030269622802734375, 0.0148162841796875, 0.005588531494140625, -0.01275634765625, 0.0230712890625, 0.0283355712890625, 0.0240936279296875, -0.033447265625, -0.01006317138671875, -0.01947021484375, 0.0029582977294921875, 0.0266571044921875, 0.0302886962890625, -0.0182342529296875, -0.0282745361328125, -0.0153045654296875, -0.0113525390625, 0.0162353515625, 0.017578125, 0.00396728515625, -0.006320953369140625, 0.00547027587890625, -0.02490234375, 0.0340576171875, 0.0008482933044433594, 0.03839111328125, 0.025634765625, -0.0308380126953125, -0.054718017578125, 0.0011625289916992188, -0.006175994873046875, -0.032501220703125, 0.02740478515625, 0.0308837890625, -0.00400543212890625, -0.00971221923828125, 0.004344940185546875, -0.004085540771484375, -0.01081085205078125, -0.057464599609375, -0.0245819091796875, 0.0462646484375, -0.0019044876098632812, -0.026824951171875, 0.0306396484375, -0.0155792236328125, -0.0255279541015625, -0.0185699462890625, 0.01446533203125, -0.013031005859375, -0.03759765625, -0.06365966796875, 0.006404876708984375, 0.0028171539306640625, 0.0248870849609375, -0.061553955078125, 0.055419921875, -0.00998687744140625, -0.0253448486328125, 0.0008258819580078125, -0.015716552734375, -0.01320648193359375, 0.0020923614501953125, -0.01529693603515625, -0.06793212890625, -0.0386962890625, 0.0667724609375, -0.0240478515625, 0.0445556640625, 0.04302978515625, -0.042388916015625, 0.027801513671875, 0.0255279541015625, 0.041412353515625, 0.0885009765625, -0.0093994140625, -0.0355224609375, -0.004085540771484375, 0.003635406494140625, 0.00582122802734375, -0.03765869140625, -0.006988525390625, -0.04754638671875, 0.0206756591796875, 0.00033164024353027344, -0.0004878044128417969, 0.011383056640625, -0.03143310546875, -0.044342041015625, 0.0194244384765625, 0.0006632804870605469, -0.0230865478515625, -0.0301971435546875, 0.0242462158203125, -0.0024433135986328125, 0.035369873046875, -0.0007081031799316406, 0.0073394775390625, -0.0111236572265625, 0.005565643310546875, 0.0036182403564453125, -0.0268096923828125, 0.040740966796875, -0.0163421630859375, -0.040985107421875, -0.005344390869140625, 0.003093719482421875, -0.00823974609375, 0.004253387451171875, 0.010986328125, 0.0196990966796875, 0.042236328125, -0.01029205322265625, 0.005035400390625, -0.00399017333984375, -0.0465087890625, -0.00888824462890625, -0.0132904052734375, -0.02301025390625, -0.0000553131103515625, 0.086669921875, 0.06744384765625, 0.02618408203125, -0.0335693359375, 0.0097503662109375, 0.0118255615234375, 0.01021575927734375, -0.016998291015625, 0.0030040740966796875, -0.0531005859375, -0.034576416015625, -0.0053863525390625, -0.01023101806640625, -0.01056671142578125, -0.0254058837890625, -0.04779052734375, -0.0021419525146484375, -0.0162506103515625, 0.0176239013671875, -0.054718017578125, 0.055145263671875, -0.01290130615234375, -0.01363372802734375, 0.0038166046142578125, -0.04278564453125, -0.009521484375, -0.005645751953125, -0.049224853515625, -0.032135009765625, 0.007720947265625, -0.01861572265625, 0.0208282470703125, -0.01148223876953125, -0.007617950439453125, -0.03631591796875, 0.016326904296875, -0.01898193359375, -0.0044403076171875, 0.0169677734375, 0.017059326171875, 0.00690460205078125, -0.0198516845703125, 0.016998291015625, -0.0595703125, -0.0261688232421875, -0.011688232421875, -0.02587890625, -0.00782012939453125, 0.0386962890625, -0.0004973411560058594, 0.10009765625, -0.01189422607421875, -0.00516510009765625, -0.024505615234375, -0.06591796875, -0.05340576171875, -0.01451873779296875, 0.01422882080078125, -0.0310211181640625, 0.0203094482421875 ]
30c88fe71e4ea6e74cc1a16813887d82a7661189
Wordpress Stackexchange Q: Gravity form to submit to third party application I would like to know what the cleanest way to use gravity forms to submit data from my form to another page outside of WordPress is. Our website is 100% WordPress and I need to use data of my gravity form somewhere else. I found this blog article, that seems to provide a solution, but I really would like to avoid modifying/wp-content/themes/*your-theme*/functions.php I am worried about losing the changes at a WordPress / gravity forms update. A: Editing the functions.php file of your theme is not as bad as it sounds. The article I had found detailed the right solution. The functions.php file is not a WP core file, but part of your theme.So when WordPress updates itself, it does not touch those files. When the plugin is updated, it doesn't affect these either.
Q: Gravity form to submit to third party application I would like to know what the cleanest way to use gravity forms to submit data from my form to another page outside of WordPress is. Our website is 100% WordPress and I need to use data of my gravity form somewhere else. I found this blog article, that seems to provide a solution, but I really would like to avoid modifying/wp-content/themes/*your-theme*/functions.php I am worried about losing the changes at a WordPress / gravity forms update. A: Editing the functions.php file of your theme is not as bad as it sounds. The article I had found detailed the right solution. The functions.php file is not a WP core file, but part of your theme.So when WordPress updates itself, it does not touch those files. When the plugin is updated, it doesn't affect these either. A: You can do it as a functions plugin: http://www.doitwithwp.com/create-functions-plugin/ http://justintadlock.com/archives/2011/02/02/creating-a-custom-functions-plugin-for-end-users A: You can create a WordPress child theme. It's easy to do with the One-click Child Theme plugin. That way, even when you update your theme, you don't overwrite the changes you've made in functions.php
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:425052", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70088" }
[ 0.0592041015625, 0.005084991455078125, 0.01305389404296875, -0.00998687744140625, 0.01476287841796875, -0.0287017822265625, 0.0438232421875, -0.03472900390625, 0.049774169921875, 0.004791259765625, -0.030914306640625, -0.0284881591796875, -0.0104522705078125, -0.0206451416015625, -0.04315185546875, -0.0207366943359375, 0.0159454345703125, -0.00838470458984375, 0.019683837890625, -0.0187835693359375, 0.02813720703125, -0.024078369140625, 0.009521484375, 0.0626220703125, 0.0146026611328125, -0.01197052001953125, 0.0008726119995117188, 0.017425537109375, -0.0149078369140625, -0.0186767578125, 0.008544921875, 0.00787353515625, 0.01397705078125, 0.006072998046875, 0.00501251220703125, 0.015045166015625, 0.03253173828125, -0.00567626953125, 0.0250396728515625, 0.0179443359375, 0.048675537109375, -0.030853271484375, -0.021331787109375, 0.0478515625, -0.0159759521484375, -0.0701904296875, 0.0625, -0.030517578125, -0.01983642578125, 0.0435791015625, 0.0215606689453125, 0.036285400390625, 0.0452880859375, 0.07275390625, 0.00013959407806396484, -0.014190673828125, -0.006900787353515625, 0.0265045166015625, 0.050567626953125, -0.006008148193359375, -0.04144287109375, -0.0273284912109375, 0.0220184326171875, -0.0220947265625, 0.01751708984375, 0.0052947998046875, -0.041778564453125, 0.0124664306640625, -0.0138092041015625, 0.0158538818359375, 0.0189666748046875, -0.05523681640625, 0.0034770965576171875, 0.0016765594482421875, 0.0156707763671875, -0.020782470703125, 0.01358795166015625, 0.00997161865234375, 0.0016946792602539062, 0.029205322265625, -0.05230712890625, -0.00370025634765625, -0.0440673828125, -0.037445068359375, -0.01428985595703125, -0.01186370849609375, -0.0222015380859375, 0.01557159423828125, -0.023956298828125, -0.0245819091796875, -0.005664825439453125, -0.054412841796875, -0.039764404296875, 0.0478515625, 0.020782470703125, -0.0281982421875, -0.016387939453125, -0.06085205078125, 0.039031982421875, 0.034271240234375, 0.06707763671875, -0.0806884765625, 0.10870361328125, -0.031707763671875, -0.0014562606811523438, 0.06024169921875, -0.005645751953125, -0.06689453125, -0.0128631591796875, -0.0003726482391357422, -0.0059967041015625, -0.01335906982421875, 0.006046295166015625, -0.0249481201171875, -0.00638580322265625, 0.032867431640625, -0.0022220611572265625, 0.0027923583984375, 0.0038013458251953125, -0.0024280548095703125, -0.0171966552734375, -0.0142059326171875, 0.0213775634765625, -0.037322998046875, -0.0079803466796875, -0.0308685302734375, -0.031280517578125, 0.0016155242919921875, 0.0340576171875, 0.01183319091796875, -0.036102294921875, 0.0168609619140625, 0.0662841796875, 0.004184722900390625, -0.002628326416015625, -0.01465606689453125, -0.01088714599609375, -0.0233917236328125, 0.0207061767578125, 0.02935791015625, -0.004390716552734375, -0.07110595703125, 0.0008339881896972656, 0.030731201171875, -0.033050537109375, 0.05865478515625, 0.00891876220703125, -0.01861572265625, -0.00855255126953125, -0.054046630859375, -0.03338623046875, -0.033050537109375, 0.03759765625, -0.0023212432861328125, 0.01448822021484375, -0.0168609619140625, 0.037567138671875, -0.0284271240234375, -0.033477783203125, -0.02691650390625, -0.051116943359375, -0.020599365234375, 0.04486083984375, -0.051849365234375, -0.05316162109375, 0.0227203369140625, -0.0223388671875, 0.0023651123046875, 0.01751708984375, -0.0014944076538085938, 0.01023101806640625, 0.0098114013671875, -0.0008130073547363281, 0.01190948486328125, 0.01113128662109375, 0.01473236083984375, 0.0036907196044921875, 0.022857666015625, 0.01161956787109375, 0.023895263671875, 0.01348876953125, -0.0207366943359375, 0.06927490234375, -0.0176239013671875, -0.01239013671875, 0.01056671142578125, 0.039825439453125, 0.04669189453125, -0.03887939453125, 0.0261077880859375, 0.037139892578125, 0.039794921875, 0.0032253265380859375, -0.009033203125, -0.00434112548828125, -0.009002685546875, -0.01238250732421875, 0.01383209228515625, -0.01473236083984375, 0.0124053955078125, -0.030853271484375, 0.01390838623046875, 0.01995849609375, 0.0304718017578125, 0.021087646484375, 0.023651123046875, -0.00801849365234375, 0.012420654296875, -0.012237548828125, 0.0261077880859375, 0.02471923828125, 0.02423095703125, -0.04541015625, 0.0122222900390625, 0.02435302734375, 0.039276123046875, -0.0219573974609375, 0.053497314453125, 0.01039886474609375, 0.072021484375, -0.015716552734375, -0.0108642578125, -0.02398681640625, -0.06103515625, 0.01172637939453125, 0.0072784423828125, -0.0316162109375, -0.015716552734375, -0.00962066650390625, -0.021636962890625, 0.03118896484375, 0.05322265625, 0.0188140869140625, 0.037139892578125, -0.0186614990234375, -0.0082855224609375, -0.016693115234375, -0.016448974609375, -0.007343292236328125, 0.034210205078125, 0.0169677734375, -0.01454925537109375, 0.001644134521484375, 0.060394287109375, 0.0168609619140625, -0.046417236328125, -0.007282257080078125, 0.031707763671875, 0.05279541015625, 0.0301971435546875, -0.03875732421875, -0.05059814453125, 0.03912353515625, -0.043701171875, 0.03277587890625, 0.01247406005859375, -0.017791748046875, -0.018798828125, 0.0013017654418945312, -0.0187835693359375, 0.0170440673828125, -0.059234619140625, -0.050048828125, -0.0113525390625, 0.018829345703125, -0.002716064453125, 0.0186920166015625, -0.00004482269287109375, -0.0220947265625, 0.00971221923828125, 0.0248565673828125, -0.028839111328125, -0.0143585205078125, -0.01244354248046875, -0.001007080078125, 0.0009350776672363281, -0.00009369850158691406, 0.01861572265625, -0.038726806640625, -0.0090179443359375, -0.054351806640625, -0.0196990966796875, -0.0089874267578125, -0.028717041015625, 0.006412506103515625, 0.002002716064453125, 0.0175018310546875, -0.07867431640625, 0.0430908203125, 0.007137298583984375, 0.0516357421875, -0.0289764404296875, -0.04150390625, 0.043701171875, 0.0018634796142578125, -0.050018310546875, -0.0211334228515625, -0.00501251220703125, -0.005779266357421875, -0.004932403564453125, 0.0230255126953125, 0.051971435546875, 0.015380859375, -0.0160675048828125, 0.00934600830078125, -0.0081939697265625, 0.041748046875, -0.0081634521484375, -0.003326416015625, 0.01342010498046875, -0.0809326171875, -0.0308380126953125, 0.005878448486328125, -0.0234832763671875, -0.0176849365234375, -0.0498046875, -0.044525146484375, -0.01131439208984375, -0.1138916015625, -0.043792724609375, -0.016387939453125, -0.0435791015625, -0.0033435821533203125, -0.0211029052734375, -0.0218353271484375, 0.0041046142578125, -0.01123809814453125, 0.01045989990234375, 0.0472412109375, -0.01751708984375, -0.049468994140625, -0.0126953125, -0.0811767578125, -0.03033447265625, 0.0014667510986328125, 0.0104827880859375, 0.005542755126953125, 0.019775390625, -0.006565093994140625, -0.04144287109375, -0.013275146484375, 0.0364990234375, -0.013946533203125, -0.0120697021484375, -0.01401519775390625, -0.03790283203125, 0.01287078857421875, -0.00580596923828125, -0.020751953125, -0.00795745849609375, 0.0266265869140625, -0.0137939453125, 0.002765655517578125, -0.037109375, 0.00794219970703125, -0.01349639892578125, -0.0163421630859375, -0.01517486572265625, 0.0020313262939453125, -0.041412353515625, -0.0487060546875, 0.023162841796875, -0.044189453125, -0.009429931640625, 0.0157318115234375, -0.0228118896484375, 0.02081298828125, -0.00597381591796875, 0.02459716796875, 0.0183563232421875, 0.0083770751953125, 0.004611968994140625, -0.01181793212890625, 0.00614166259765625, 0.01099395751953125, -0.00737762451171875, -0.048126220703125, -0.057769775390625, 0.03741455078125, -0.0294189453125, -0.01169586181640625, 0.007415771484375, 0.044403076171875, 0.041900634765625, -0.02618408203125, 0.01421356201171875, -0.0211181640625, 0.0250244140625, -0.0199432373046875, -0.004230499267578125, 0.0014028549194335938, 0.062347412109375, 0.01296234130859375, -0.0130615234375, 0.023681640625, 0.01146697998046875, -0.04345703125, -0.0032196044921875, -0.0400390625, -0.01410675048828125, 0.0096435546875, -0.0309906005859375, -0.004802703857421875, -0.03399658203125, -0.0004127025604248047, 0.036376953125, -0.0038127899169921875, -0.00933074951171875, 0.028839111328125, -0.0291900634765625, -0.00742340087890625, 0.0036258697509765625, -0.0164337158203125, -0.03662109375, -0.01157379150390625, -0.013031005859375, -0.0176544189453125, -0.007122039794921875, 0.0024700164794921875, 0.0220947265625, 0.0176849365234375, -0.036285400390625, 0.0084381103515625, 0.0372314453125, 0.023162841796875, 0.065185546875, 0.0010347366333007812, -0.014251708984375, 0.0174102783203125, 0.005397796630859375, 0.0301055908203125, -0.01611328125, 0.0001767873764038086, -0.0125579833984375, -0.042816162109375, -0.0226287841796875, -0.025177001953125, -0.033172607421875, 0.01439666748046875, -0.027923583984375, -0.032684326171875, -0.018829345703125, -0.040435791015625, 0.0183868408203125, -0.02069091796875, -0.005123138427734375, -0.0298614501953125, -0.0574951171875, 0.034027099609375, -0.00809478759765625, -0.01641845703125, 0.0257415771484375, 0.0626220703125, 0.006908416748046875, -0.01168060302734375, -0.1258544921875, -0.01496124267578125, 0.042022705078125, -0.031494140625, 0.0275115966796875, 0.007152557373046875, -0.044769287109375, 0.0821533203125, 0.01317596435546875, 0.007595062255859375, -0.0340576171875, 0.030670166015625, 0.017547607421875, 0.0212554931640625, -0.01502227783203125, 0.0144805908203125, 0.03436279296875, 0.00222015380859375, -0.029754638671875, 0.0247650146484375, -0.016998291015625, -0.00368499755859375, -0.01178741455078125, 0.0212554931640625, -0.00748443603515625, -0.05303955078125, 0.023895263671875, -0.0007028579711914062, 0.03692626953125, 0.0205230712890625, 0.01220703125, 0.038665771484375, 0.01129150390625, 0.004909515380859375, -0.00286865234375, -0.00357818603515625, -0.01216888427734375, 0.032073974609375, 0.003116607666015625, 0.00882720947265625, -0.0050811767578125, -0.01473236083984375, 0.04937744140625, -0.00018715858459472656, -0.03973388671875, -0.0164337158203125, -0.01290130615234375, -0.003841400146484375, 0.0037403106689453125, -0.003208160400390625, 0.0050506591796875, 0.00853729248046875, -0.0015039443969726562, 0.0172882080078125, 0.05279541015625, -0.021240234375, -0.012115478515625, -0.0030879974365234375, 0.0131988525390625, -0.02105712890625, 0.01219940185546875, 0.01352691650390625, -0.00891876220703125, 0.0046844482421875, -0.0036792755126953125, 0.049163818359375, 0.01959228515625, -0.0360107421875, 0.005199432373046875, 0.061981201171875, 0.039794921875, -0.10064697265625, 0.0198516845703125, -0.0203857421875, -0.0277557373046875, -0.0207366943359375, 0.0147857666015625, -0.022674560546875, 0.0166015625, 0.03875732421875, 0.0162811279296875, 0.004322052001953125, 0.00658416748046875, 0.047027587890625, -0.0017719268798828125, 0.014739990234375, 0.057861328125, 0.010894775390625, 0.01216888427734375, 0.000797271728515625, -0.005924224853515625, -0.0222930908203125, -0.0191497802734375, 0.0099334716796875, -0.0303802490234375, -0.007602691650390625, -0.00019669532775878906, 0.01122283935546875, 0.006404876708984375, -0.0171356201171875, -0.1002197265625, -0.062164306640625, 0.005001068115234375, 0.033447265625, 0.036163330078125, -0.0311737060546875, -0.030242919921875, -0.01302337646484375, 0.0214080810546875, -0.0198516845703125, -0.001811981201171875, 0.0653076171875, 0.036102294921875, -0.0161895751953125, -0.049774169921875, -0.0206146240234375, -0.029541015625, -0.02911376953125, -0.01776123046875, -0.004772186279296875, 0.034393310546875, 0.01209259033203125, 0.040130615234375, -0.039703369140625, -0.06988525390625, 0.024261474609375, -0.0280914306640625, -0.0161895751953125, 0.024871826171875, -0.019500732421875, 0.04638671875, -0.0179901123046875, 0.058380126953125, -0.015167236328125, -0.005950927734375, -0.0250091552734375, -0.007724761962890625, -0.012847900390625, -0.074951171875, -0.00203704833984375, -0.0197906494140625, 0.000858306884765625, 0.0806884765625, 0.06317138671875, 0.0241851806640625, 0.01206207275390625, -0.047454833984375, 0.00984954833984375, -0.0231475830078125, 0.05474853515625, -0.079345703125, -0.050262451171875, 0.0294342041015625, 0.00978851318359375, -0.02783203125, 0.00341033935546875, 0.003292083740234375, -0.033935546875, 0.045135498046875, -0.0259552001953125, -0.06805419921875, -0.046112060546875, 0.03814697265625, 0.04443359375, 0.0015544891357421875, 0.01392364501953125, -0.003086090087890625, 0.00460052490234375, -0.008270263671875, 0.0323486328125, -0.0259857177734375, -0.0108795166015625, 0.0396728515625, 0.01169586181640625, -0.00921630859375, 0.0069427490234375, -0.00782012939453125, 0.023590087890625, 0.06964111328125, 0.07318115234375, -0.0977783203125, 0.01474761962890625, 0.0218048095703125, -0.0285186767578125, 0.0025920867919921875, -0.0240631103515625, -0.01270294189453125, -0.046142578125, 0.005123138427734375, 0.01016998291015625, -0.0341796875, -0.017242431640625, 0.0036067962646484375, 0.00412750244140625, -0.01410675048828125, 0.0931396484375, 0.00289154052734375, -0.006591796875, -0.018829345703125, -0.006855010986328125, -0.0080108642578125, -0.0117340087890625, -0.0118255615234375, 0.0223541259765625, -0.044036865234375, -0.087646484375, -0.036834716796875, -0.02142333984375, -0.0318603515625, -0.0538330078125, 0.03594970703125, 0.0655517578125, 0.05535888671875, 0.004486083984375, -0.04583740234375, 0.0281829833984375, 0.07403564453125, -0.01016998291015625, -0.02410888671875, 0.039764404296875, 0.02081298828125, -0.059295654296875, 0.016937255859375, -0.029541015625, -0.0146484375, -0.022125244140625, -0.0122528076171875, 0.07952880859375, -0.00605010986328125, -0.030792236328125, 0.0116424560546875, -0.005401611328125, -0.01024627685546875, -0.024749755859375, 0.048004150390625, -0.0614013671875, -0.035797119140625, 0.01271820068359375, -0.022918701171875, -0.024688720703125, -0.02630615234375, -0.09954833984375, 0.10516357421875, 0.034423828125, 0.0262908935546875, -0.050323486328125, 0.0577392578125, -0.01383209228515625, 0.021636962890625, -0.032958984375, 0.0103302001953125, 0.0143585205078125, 0.041595458984375, -0.0148162841796875, -0.014190673828125, 0.00853729248046875, 0.0304107666015625, 0.004146575927734375, -0.00746917724609375, -0.01177215576171875, 0.00018846988677978516, 0.07049560546875, 0.06512451171875, 0.038970947265625, 0.0169219970703125, 0.0115966796875, -0.0056915283203125, 0.058319091796875, -0.0015954971313476562, 0.0496826171875, -0.014801025390625, 0.0188751220703125, 0.02618408203125, -0.002231597900390625, -0.0333251953125, -0.028350830078125, -0.0252685546875, -0.005786895751953125, -0.0145416259765625, -0.0190277099609375, 0.0213470458984375, -0.006465911865234375, -0.003208160400390625, 0.00229644775390625, -0.0297698974609375, 0.0296478271484375, -0.0273590087890625, 0.0322265625, -0.0008444786071777344, 0.033935546875, 0.05291748046875, 0.013885498046875, 0.05975341796875, -0.0160064697265625, 0.0184783935546875, -0.02313232421875, 0.0165252685546875, 0.041839599609375, 0.01702880859375, 0.02691650390625, -0.03936767578125, -0.007137298583984375, 0.04791259765625, 0.055328369140625, -0.04498291015625, -0.007358551025390625, 0.0004801750183105469, -0.00664520263671875, 0.0273895263671875, -0.03704833984375, 0.04583740234375, -0.033966064453125, -0.05218505859375, -0.0018510818481445312, -0.0106658935546875, -0.0167388916015625, 0.0196075439453125, -0.01226806640625, -0.01059722900390625, 0.00323486328125, -0.00638580322265625, -0.035919189453125, 0.00527191162109375, 0.0170135498046875, 0.04974365234375, 0.00423431396484375, 0.043853759765625, -0.012451171875, -0.0164947509765625, -0.01221466064453125, 0.0136566162109375, 0.041168212890625, 0.0048675537109375, -0.0252532958984375, 0.01043701171875, 0.03302001953125, 0.0186920166015625, 0.0372314453125, 0.0462646484375, 0.0849609375, 0.035491943359375, -0.02178955078125, -0.00007808208465576172, 0.037353515625, -0.0228271484375, -0.0186767578125, -0.025848388671875, -0.03314208984375, 0.00597381591796875, -0.0173187255859375, 0.00972747802734375, -0.00737762451171875, 0.0141143798828125, -0.02789306640625, 0.0223236083984375, -0.0084381103515625, -0.045318603515625, 0.062103271484375, -0.02130126953125, 0.11248779296875, 0.0054168701171875, -0.054962158203125, -0.0220947265625, 0.033233642578125, 0.0191802978515625, -0.0200958251953125, 0.016204833984375, -0.0306243896484375, 0.044677734375, 0.02105712890625, -0.01910400390625, 0.0243682861328125, 0.00855255126953125, 0.00231170654296875, -0.008392333984375, 0.0099334716796875, -0.00963592529296875, -0.0238189697265625, -0.0133209228515625, 0.0248260498046875, 0.0089111328125, 0.01074981689453125, 0.022430419921875, 0.004291534423828125, 0.005390167236328125, 0.0014181137084960938, 0.007495880126953125, -0.00039505958557128906, 0.002429962158203125, 0.01006317138671875, 0.0155029296875, 0.0118408203125, -0.0124053955078125, -0.01448822021484375, 0.023651123046875, 0.01433563232421875, -0.0341796875, -0.0120086669921875, 0.023834228515625, 0.0117340087890625, 0.0181732177734375, -0.030792236328125, -0.02685546875, -0.0204620361328125, 0.032989501953125, 0.0282745361328125, -0.012542724609375, -0.018585205078125, -0.032379150390625, 0.05328369140625, -0.0138092041015625, 0.0338134765625, 0.00226593017578125, -0.0290374755859375, -0.016998291015625, 0.0160980224609375, -0.0202789306640625, -0.0134124755859375, 0.028228759765625, -0.0164947509765625, 0.039581298828125, -0.01222991943359375, 0.07122802734375, 0.005615234375, -0.0194244384765625, -0.0126953125, -0.015045166015625, 0.0011358261108398438, 0.0024547576904296875, -0.01024627685546875, -0.00763702392578125, -0.0225982666015625, -0.0274200439453125, -0.023529052734375, 0.0017271041870117188, -0.021728515625, -0.0036716461181640625, 0.02496337890625, 0.00830841064453125, 0.01175689697265625, -0.024749755859375, -0.0169677734375, 0.060455322265625, 0.0244903564453125, -0.06195068359375, -0.0024929046630859375, -0.01111602783203125, 0.055694580078125, 0.021484375, 0.07012939453125, -0.02490234375, -0.010040283203125, -0.04071044921875, 0.0013866424560546875, -0.0184173583984375, 0.040435791015625, 0.0238494873046875, 0.0133209228515625, 0.023345947265625, -0.005596160888671875, 0.0226287841796875, 0.0289154052734375, 0.024566650390625, 0.07513427734375, -0.018157958984375, -0.0211181640625, 0.0252532958984375, -0.041046142578125, 0.0110626220703125, 0.001964569091796875, -0.006206512451171875, -0.0458984375, -0.006679534912109375, -0.03179931640625, -0.0035762786865234375, -0.020660400390625, -0.060150146484375, -0.0985107421875, -0.0004992485046386719, 0.0033130645751953125, -0.04278564453125, -0.01715087890625, 0.0220947265625, 0.0171356201171875, -0.052947998046875, -0.02642822265625, 0.0262451171875, -0.0153961181640625, 0.00022935867309570312, 0.0294647216796875, 0.048431396484375, 0.004314422607421875, 0.038482666015625, -0.0367431640625, 0.0341796875, -0.005924224853515625, 0.032196044921875, 0.0029296875, 0.00750732421875, 0.01425933837890625, 0.0298919677734375, -0.035186767578125, -0.00382232666015625, 0.0008478164672851562, -0.00940704345703125, -0.00563812255859375, -0.01137542724609375, -0.019500732421875, -0.006587982177734375, 0.06231689453125, 0.02655029296875, 0.0135345458984375, -0.00926971435546875, -0.016357421875, -0.015655517578125, 0.0134429931640625, 0.00901031494140625, -0.0078887939453125, -0.0306549072265625, 0.0194244384765625, -0.01265716552734375, -0.0207977294921875, -0.023223876953125, 0.01165771484375, -0.036865234375, -0.006298065185546875, -0.0009326934814453125, -0.015106201171875, -0.0006184577941894531, -0.072509765625, 0.040283203125, -0.01473236083984375, 0.002376556396484375, 0.0020294189453125, 0.038177490234375, 0.0177001953125, 0.04156494140625, 0.046875, 0.054443359375, -0.09503173828125, 0.004364013671875, 0.007579803466796875, 0.054718017578125, -0.06298828125, -0.050323486328125, -0.001407623291015625, 0.04058837890625, -0.01157379150390625, 0.047698974609375, -0.002353668212890625, 0.043304443359375, 0.005336761474609375, 0.04730224609375, -0.012908935546875, -0.0296478271484375, -0.037200927734375, 0.05670166015625, -0.01666259765625, -0.0157623291015625, 0.0238037109375, -0.044219970703125, 0.014892578125, 0.0010042190551757812, 0.01163482666015625, -0.0181884765625, 0.00902557373046875, -0.0017499923706054688, 0.005168914794921875, 0.01145172119140625 ]
a828e02b0524148b8cb56c61461fa15c0ed47d43
Wordpress Stackexchange Q: Given the ID of a product in woocommerce, how can I get its URL? Say I have the ID of a product in wooCommerce; can I generate its URL somehow? (example /shop/fresh-apples) A: Products in WooCommerce are a custom post type, so this should work: $url = get_permalink( $product_id ); You can treat that $product_id as a postID (that's what it is), so you can use it with other normal WP functions, like: echo '<a href="'.get_permalink($product_id).'">'.get_the_title($product_id).'</a>';
Q: Given the ID of a product in woocommerce, how can I get its URL? Say I have the ID of a product in wooCommerce; can I generate its URL somehow? (example /shop/fresh-apples) A: Products in WooCommerce are a custom post type, so this should work: $url = get_permalink( $product_id ); You can treat that $product_id as a postID (that's what it is), so you can use it with other normal WP functions, like: echo '<a href="'.get_permalink($product_id).'">'.get_the_title($product_id).'</a>';
wordpress
{ "language": "en", "length": 77, "provenance": "stackexchange_00019.jsonl.gz:425076", "question_score": "28", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70171" }
[ 0.0238800048828125, -0.00984954833984375, 0.00579833984375, -0.0251312255859375, -0.0005564689636230469, -0.00743865966796875, 0.021484375, -0.0208740234375, -0.0289764404296875, 0.02667236328125, -0.01654052734375, -0.0123748779296875, -0.04901123046875, -0.02490234375, -0.017822265625, -0.055450439453125, 0.028961181640625, 0.0229949951171875, 0.0313720703125, 0.005443572998046875, -0.01763916015625, 0.029693603515625, 0.0048065185546875, 0.03387451171875, 0.051727294921875, -0.017181396484375, 0.0791015625, -0.0236663818359375, 0.0391845703125, -0.0182952880859375, 0.04229736328125, -0.049041748046875, -0.000016808509826660156, -0.03387451171875, 0.07928466796875, -0.00269317626953125, 0.037017822265625, -0.00785064697265625, 0.040435791015625, -0.001842498779296875, 0.041259765625, -0.0228424072265625, 0.00493621826171875, -0.0003635883331298828, -0.0008893013000488281, -0.0305328369140625, 0.021728515625, -0.05426025390625, 0.0118255615234375, 0.0297088623046875, 0.0012979507446289062, 0.058135986328125, -0.0079345703125, 0.0248565673828125, -0.013427734375, -0.0160369873046875, -0.016845703125, -0.01708984375, 0.043914794921875, -0.02764892578125, -0.0291290283203125, -0.03955078125, 0.042938232421875, 0.0092315673828125, -0.005512237548828125, 0.00856781005859375, 0.00991058349609375, 0.03643798828125, -0.026397705078125, -0.0172119140625, 0.0045318603515625, -0.01428985595703125, -0.0088043212890625, -0.0029010772705078125, -0.0193939208984375, -0.04193115234375, 0.01605224609375, -0.057342529296875, -0.0024547576904296875, 0.043548583984375, -0.0122528076171875, -0.035125732421875, -0.01268768310546875, -0.0292816162109375, 0.007411956787109375, -0.006168365478515625, -0.02117919921875, 0.00457763671875, -0.0203399658203125, -0.047088623046875, -0.0289459228515625, -0.0068206787109375, -0.048187255859375, -0.0027446746826171875, -0.035491943359375, -0.01352691650390625, 0.007781982421875, 0.0034503936767578125, 0.0011386871337890625, 0.013031005859375, 0.0379638671875, -0.0714111328125, 0.07415771484375, -0.038177490234375, -0.0200958251953125, 0.0163726806640625, 0.045379638671875, 0.06268310546875, 0.01102447509765625, 0.0019483566284179688, -0.01776123046875, 0.0207672119140625, 0.006870269775390625, -0.0176849365234375, -0.018798828125, 0.0165557861328125, -0.0305328369140625, 0.003765106201171875, -0.0066070556640625, -0.00021147727966308594, -0.006031036376953125, 0.0257415771484375, 0.04327392578125, 0.0189208984375, -0.005954742431640625, 0.0225372314453125, 0.01166534423828125, -0.08355712890625, -0.010498046875, 0.0079193115234375, -0.052886962890625, 0.01212310791015625, 0.08367919921875, 0.044647216796875, 0.029998779296875, -0.01519775390625, 0.0215301513671875, 0.022552490234375, 0.0050201416015625, -0.0011615753173828125, 0.01042938232421875, 0.015838623046875, 0.0182037353515625, -0.0190582275390625, 0.007648468017578125, 0.0167083740234375, -0.0190887451171875, 0.0111846923828125, 0.026885986328125, -0.0032024383544921875, -0.018798828125, -0.0118255615234375, -0.006053924560546875, 0.0299530029296875, 0.0738525390625, 0.00013065338134765625, 0.0762939453125, -0.034149169921875, 0.0100250244140625, -0.0208587646484375, 0.0209503173828125, -0.00540924072265625, 0.019683837890625, 0.0020847320556640625, -0.032196044921875, 0.010772705078125, -0.052001953125, -0.02239990234375, 0.0223541259765625, 0.10479736328125, -0.00888824462890625, -0.00991058349609375, 0.005336761474609375, 0.0107269287109375, -0.0283660888671875, -0.01739501953125, 0.00316619873046875, 0.006622314453125, 0.017120361328125, 0.035675048828125, -0.0069427490234375, -0.037078857421875, 0.034088134765625, -0.016510009765625, -0.035400390625, 0.0621337890625, 0.017486572265625, 0.06982421875, -0.02801513671875, 0.0147552490234375, 0.0204010009765625, 0.039520263671875, -0.07403564453125, 0.025421142578125, -0.01522064208984375, -0.0167083740234375, 0.00946044921875, 0.00809478759765625, -0.022979736328125, 0.01210784912109375, 0.0170135498046875, 0.01486968994140625, 0.0232086181640625, 0.037567138671875, -0.01146697998046875, 0.046112060546875, -0.020355224609375, 0.0308685302734375, -0.007549285888671875, 0.03399658203125, 0.0194854736328125, 0.0231781005859375, -0.0227203369140625, -0.06011962890625, -0.003971099853515625, -0.0091400146484375, -0.0055999755859375, 0.029144287109375, -0.031524658203125, 0.0201416015625, -0.0308074951171875, -0.026031494140625, -0.019989013671875, 0.033447265625, 0.021240234375, 0.02984619140625, -0.02398681640625, 0.00673675537109375, 0.042327880859375, 0.041107177734375, -0.032196044921875, -0.0311279296875, 0.04107666015625, 0.0146331787109375, -0.0269622802734375, 0.01039886474609375, 0.01474761962890625, -0.0726318359375, -0.004405975341796875, 0.055511474609375, 0.0343017578125, 0.0186920166015625, 0.00914764404296875, 0.01548004150390625, 0.03302001953125, 0.00457763671875, 0.0271453857421875, -0.0206756591796875, -0.0121612548828125, 0.03765869140625, 0.00885009765625, 0.033233642578125, 0.0016689300537109375, 0.00457000732421875, -0.0166473388671875, 0.04632568359375, -0.028167724609375, 0.026611328125, -0.016143798828125, 0.00632476806640625, -0.0173797607421875, 0.0224456787109375, 0.0245208740234375, -0.02276611328125, -0.02655029296875, 0.05621337890625, 0.01727294921875, 0.04034423828125, -0.02978515625, 0.0133514404296875, 0.01319122314453125, 0.02239990234375, -0.0196685791015625, 0.027191162109375, 0.050628662109375, -0.055206298828125, -0.024444580078125, -0.0014638900756835938, 0.002948760986328125, -0.00569915771484375, 0.004302978515625, 0.0328369140625, -0.00037384033203125, -0.00801849365234375, -0.040618896484375, -0.07073974609375, 0.0128326416015625, 0.05596923828125, 0.01490020751953125, 0.0055999755859375, 0.0360107421875, 0.031982421875, -0.0272674560546875, 0.052947998046875, -0.0215911865234375, -0.004993438720703125, 0.040679931640625, -0.0280609130859375, 0.04766845703125, -0.0350341796875, 0.038360595703125, 0.0516357421875, -0.032135009765625, 0.033050537109375, 0.00518798828125, -0.006561279296875, 0.0228729248046875, -0.004673004150390625, -0.020477294921875, 0.03509521484375, -0.11260986328125, -0.01543426513671875, 0.01088714599609375, 0.0787353515625, -0.01140594482421875, -0.0465087890625, 0.023895263671875, 0.0219879150390625, -0.08953857421875, -0.11834716796875, -0.014617919921875, -0.03643798828125, -0.00864410400390625, -0.01505279541015625, -0.010894775390625, 0.0131072998046875, -0.0123748779296875, 0.004627227783203125, -0.0169830322265625, -0.0117034912109375, -0.0692138671875, -0.055419921875, -0.07427978515625, 0.0269775390625, -0.0194854736328125, 0.01428985595703125, 0.00904083251953125, -0.07598876953125, -0.024322509765625, -0.0181732177734375, 0.0225982666015625, 0.057769775390625, 0.0005574226379394531, -0.040802001953125, -0.027496337890625, -0.0169830322265625, -0.029541015625, -0.004917144775390625, 0.050140380859375, 0.01024627685546875, -0.0018939971923828125, 0.017578125, -0.0034503936767578125, 0.007904052734375, 0.03717041015625, -0.0197601318359375, -0.004180908203125, 0.021759033203125, 0.0247650146484375, -0.04345703125, -0.0269622802734375, -0.037109375, -0.043792724609375, 0.0504150390625, 0.0233306884765625, 0.0080718994140625, -0.0004379749298095703, 0.01195526123046875, 0.0130462646484375, -0.0220794677734375, 0.0205535888671875, -0.041473388671875, 0.027801513671875, 0.007762908935546875, 0.0266876220703125, -0.0178985595703125, 0.049652099609375, -0.002162933349609375, 0.00527191162109375, 0.024261474609375, 0.032073974609375, 0.021575927734375, -0.0289764404296875, -0.041961669921875, -0.0238494873046875, 0.061004638671875, -0.0093841552734375, 0.015594482421875, -0.0142059326171875, -0.041778564453125, 0.01488494873046875, 0.10455322265625, 0.03179931640625, -0.025299072265625, -0.0184783935546875, 0.00583648681640625, -0.04132080078125, -0.045135498046875, -0.037200927734375, 0.00096893310546875, -0.0333251953125, -0.0233917236328125, -0.021240234375, -0.02972412109375, 0.01300811767578125, 0.0258026123046875, -0.00345611572265625, -0.0218048095703125, 0.0250701904296875, 0.01071929931640625, -0.006816864013671875, 0.053466796875, -0.01995849609375, 0.04315185546875, -0.0286407470703125, 0.001903533935546875, -0.0030975341796875, -0.017913818359375, 0.052337646484375, 0.00554656982421875, -0.02032470703125, -0.00870513916015625, -0.006313323974609375, 0.0408935546875, -0.0248260498046875, 0.046844482421875, -0.0237884521484375, 0.032562255859375, -0.026336669921875, -0.030914306640625, -0.014068603515625, -0.0404052734375, -0.0036907196044921875, -0.0303955078125, -0.03399658203125, -0.0058746337890625, -0.01483917236328125, 0.039337158203125, 0.000579833984375, -0.014801025390625, -0.095458984375, -0.019012451171875, 0.0299530029296875, 0.01654052734375, 0.00978851318359375, 0.006389617919921875, -0.0146026611328125, -0.080078125, 0.0367431640625, -0.0140380859375, -0.01751708984375, -0.00264739990234375, 0.047271728515625, 0.01531219482421875, -0.01384735107421875, 0.0179595947265625, 0.004150390625, 0.04345703125, 0.013763427734375, 0.0055389404296875, 0.0032024383544921875, -0.021270751953125, 0.0070953369140625, 0.00910186767578125, -0.0183563232421875, 0.045562744140625, 0.013946533203125, -0.012054443359375, -0.0234375, 0.00799560546875, -0.04132080078125, 0.0038356781005859375, 0.0374755859375, -0.032806396484375, -0.0019817352294921875, -0.036773681640625, 0.041839599609375, -0.0282440185546875, 0.0295562744140625, -0.04034423828125, -0.03460693359375, 0.034454345703125, -0.051513671875, 0.022430419921875, 0.01068115234375, -0.00762176513671875, 0.01248931884765625, -0.0249481201171875, 0.01922607421875, -0.00725555419921875, -0.0173492431640625, -0.0106658935546875, 0.016876220703125, -0.003147125244140625, -0.00494384765625, 0.0137786865234375, -0.009735107421875, 0.048736572265625, 0.0160675048828125, -0.005901336669921875, -0.0068511962890625, -0.0232391357421875, -0.0299835205078125, 0.005046844482421875, -0.03216552734375, 0.0224609375, 0.03558349609375, -0.0189056396484375, -0.00469970703125, -0.052825927734375, 0.0149383544921875, -0.045074462890625, 0.0209808349609375, 0.0028133392333984375, 0.00705718994140625, -0.00356292724609375, 0.070068359375, 0.0240478515625, 0.0269927978515625, -0.0160064697265625, 0.02545166015625, 0.034210205078125, 0.041595458984375, 0.0182037353515625, -0.04010009765625, -0.01383209228515625, 0.002513885498046875, 0.004810333251953125, -0.0295257568359375, -0.004703521728515625, 0.0176544189453125, 0.04681396484375, -0.0194854736328125, -0.02978515625, 0.011383056640625, -0.038604736328125, -0.0224761962890625, 0.00189971923828125, -0.0230560302734375, -0.015899658203125, -0.0230560302734375, -0.0005702972412109375, 0.005645751953125, 0.0224761962890625, -0.01995849609375, 0.01142120361328125, -0.037139892578125, -0.00786590576171875, -0.006801605224609375, -0.022857666015625, 0.0134429931640625, 0.01219940185546875, -0.0015039443969726562, -0.035797119140625, 0.00359344482421875, -0.00342559814453125, 0.034942626953125, -0.04266357421875, -0.031463623046875, 0.046051025390625, 0.0164947509765625, 0.06103515625, -0.026641845703125, -0.06634521484375, -0.0253753662109375, -0.011627197265625, 0.071533203125, 0.041595458984375, -0.028717041015625, -0.004032135009765625, -0.01446533203125, 0.0006999969482421875, 0.04901123046875, -0.007259368896484375, -0.001239776611328125, -0.0196075439453125, -0.021270751953125, 0.036651611328125, -0.0226593017578125, -0.007007598876953125, 0.01494598388671875, -0.00554656982421875, -0.0400390625, 0.0094451904296875, 0.01398468017578125, 0.0202789306640625, 0.010711669921875, 0.03240966796875, 0.01605224609375, -0.01229095458984375, -0.048614501953125, -0.02099609375, -0.0162506103515625, 0.0044403076171875, 0.01183319091796875, -0.01506805419921875, 0.0271759033203125, -0.000029802322387695312, 0.057769775390625, 0.01146697998046875, -0.0016632080078125, -0.030426025390625, -0.0015363693237304688, -0.035186767578125, 0.0305328369140625, -0.049041748046875, -0.0273590087890625, -0.00408935546875, -0.0589599609375, -0.0247650146484375, 0.0364990234375, 0.048797607421875, -0.006023406982421875, -0.0328369140625, -0.0096282958984375, 0.0360107421875, -0.0266571044921875, 0.055938720703125, 0.0908203125, 0.0022754669189453125, 0.04547119140625, 0.01806640625, 0.00023317337036132812, 0.029327392578125, 0.066650390625, 0.0029354095458984375, -0.047088623046875, 0.051727294921875, 0.0168914794921875, -0.0187530517578125, 0.043365478515625, -0.02655029296875, 0.00910186767578125, 0.03558349609375, 0.06463623046875, -0.0650634765625, 0.005950927734375, 0.00772857666015625, -0.0245819091796875, 0.00676727294921875, 0.016998291015625, -0.012115478515625, -0.0282745361328125, 0.00586700439453125, -0.036895751953125, -0.002033233642578125, -0.00165557861328125, -0.0202484130859375, 0.04107666015625, 0.0035400390625, 0.06817626953125, -0.01354217529296875, -0.0745849609375, -0.06353759765625, 0.05810546875, -0.04241943359375, -0.04644775390625, 0.000020444393157958984, 0.036895751953125, 0.0278778076171875, -0.020416259765625, 0.09722900390625, -0.0281829833984375, 0.057159423828125, 0.0244903564453125, -0.0013475418090820312, 0.033966064453125, 0.054779052734375, 0.0018482208251953125, -0.0018138885498046875, 0.01544952392578125, -0.020111083984375, 0.0226593017578125, 0.005237579345703125, 0.0017642974853515625, 0.029144287109375, -0.060394287109375, -0.007595062255859375, -0.0411376953125, 0.042205810546875, -0.0009160041809082031, 0.030517578125, 0.0843505859375, -0.0328369140625, -0.02642822265625, 0.0372314453125, 0.0222015380859375, -0.01416015625, -0.019012451171875, 0.0038204193115234375, -0.0243988037109375, 0.040557861328125, -0.01143646240234375, 0.0311126708984375, 0.0229339599609375, -0.0199737548828125, -0.06378173828125, 0.0312347412109375, -0.0173492431640625, 0.0276947021484375, 0.014801025390625, 0.00311279296875, 0.01611328125, -0.01202392578125, -0.0309906005859375, 0.022186279296875, 0.005092620849609375, 0.025970458984375, -0.036163330078125, -0.02703857421875, -0.00009381771087646484, 0.040374755859375, 0.049163818359375, 0.0045166015625, -0.016937255859375, 0.00803375244140625, 0.061187744140625, 0.0145111083984375, -0.0217742919921875, 0.034820556640625, 0.023101806640625, 0.026580810546875, 0.11322021484375, -0.041839599609375, 0.0445556640625, -0.01242828369140625, 0.051666259765625, 0.0167236328125, 0.020233154296875, 0.0113372802734375, 0.0227508544921875, 0.00533294677734375, -0.01690673828125, 0.002429962158203125, 0.0163116455078125, -0.0416259765625, 0.0105133056640625, 0.00917816162109375, 0.033050537109375, -0.0430908203125, 0.01032257080078125, -0.0253753662109375, 0.056121826171875, 0.0182342529296875, 0.013641357421875, 0.0253448486328125, 0.007518768310546875, 0.06500244140625, 0.0018529891967773438, 0.004299163818359375, 0.005474090576171875, 0.01471710205078125, 0.048614501953125, 0.036163330078125, 0.028228759765625, -0.0203094482421875, 0.01204681396484375, 0.04986572265625, 0.05609130859375, -0.04217529296875, -0.0208892822265625, 0.0142059326171875, -0.004032135009765625, 0.02349853515625, -0.0151519775390625, 0.0297393798828125, -0.0233612060546875, -0.024261474609375, -0.033111572265625, 0.0145721435546875, 0.062042236328125, 0.047515869140625, 0.017730712890625, -0.0024127960205078125, -0.10223388671875, -0.0079193115234375, -0.04803466796875, 0.00995635986328125, -0.00030803680419921875, 0.06781005859375, 0.043060302734375, 0.058013916015625, -0.046356201171875, -0.048736572265625, 0.018829345703125, 0.033294677734375, -0.0051116943359375, -0.0269622802734375, -0.0114593505859375, -0.055999755859375, 0.00739288330078125, 0.033233642578125, 0.0139923095703125, 0.0228729248046875, 0.01910400390625, 0.0074005126953125, 0.01303863525390625, -0.005283355712890625, 0.01543426513671875, -0.0192413330078125, 0.057861328125, -0.02606201171875, 0.06195068359375, -0.0240631103515625, -0.002773284912109375, -0.04754638671875, 0.04241943359375, 0.016632080078125, -0.045166015625, 0.07666015625, -0.01538848876953125, -0.00922393798828125, 0.038238525390625, -0.016357421875, 0.06744384765625, -0.030426025390625, -0.0767822265625, 0.0014047622680664062, -0.011474609375, -0.030303955078125, -0.0097808837890625, 0.0221710205078125, -0.037353515625, 0.0565185546875, -0.007350921630859375, 0.0220947265625, 0.019805908203125, -0.02032470703125, -0.023590087890625, -0.009674072265625, 0.048065185546875, -0.00408172607421875, -0.036224365234375, -0.01873779296875, -0.0167999267578125, 0.00135040283203125, 0.032073974609375, 0.0284881591796875, 0.00974273681640625, 0.02410888671875, -0.016845703125, 0.025970458984375, -0.038055419921875, -0.031768798828125, 0.05389404296875, -0.02581787109375, -0.004741668701171875, 0.0006165504455566406, -0.0140838623046875, 0.0172882080078125, 0.04400634765625, -0.008941650390625, 0.02069091796875, -0.0491943359375, 0.032318115234375, -0.0107574462890625, 0.032379150390625, -0.0230560302734375, -0.055328369140625, -0.064208984375, -0.0015649795532226562, 0.022125244140625, 0.026214599609375, -0.018829345703125, 0.02783203125, -0.01001739501953125, -0.0240631103515625, 0.0233917236328125, -0.043701171875, 0.03936767578125, 0.041046142578125, -0.006824493408203125, -0.014404296875, 0.0031757354736328125, -0.0160675048828125, 0.0021381378173828125, -0.005397796630859375, 0.03643798828125, 0.00223541259765625, -0.043121337890625, 0.0238800048828125, 0.0017595291137695312, 0.0179443359375, -0.016448974609375, 0.00615692138671875, 0.031494140625, -0.00017583370208740234, -0.01605224609375, -0.0308380126953125, -0.022186279296875, -0.03326416015625, 0.010101318359375, 0.0096588134765625, 0.003063201904296875, 0.0007128715515136719, 0.0055999755859375, -0.01360321044921875, 0.00399017333984375, -0.0005702972412109375, -0.050384521484375, 0.01390838623046875, 0.00540924072265625, 0.032562255859375, -0.042572021484375, -0.002353668212890625, -0.00855255126953125, 0.0029735565185546875, -0.03216552734375, -0.01373291015625, -0.05023193359375, 0.006900787353515625, -0.04364013671875, 0.024169921875, 0.032562255859375, -0.037750244140625, -0.03717041015625, 0.0174560546875, 0.0205535888671875, 0.06195068359375, 0.0156402587890625, -0.046722412109375, 0.01078033447265625, -0.0007371902465820312, -0.0019207000732421875, -0.05377197265625, 0.002956390380859375, -0.06854248046875, 0.005584716796875, 0.0009760856628417969, 0.00818634033203125, 0.032745361328125, -0.0209808349609375, -0.029937744140625, 0.057281494140625, 0.0003795623779296875, -0.0289154052734375, -0.010650634765625, -0.0180206298828125, -0.0135040283203125, 0.03564453125, -0.0153656005859375, -0.003627777099609375, -0.03668212890625, 0.0191650390625, 0.0093536376953125, 0.006664276123046875, 0.025390625, -0.009368896484375, -0.00970458984375, 0.0230255126953125, 0.023895263671875, 0.0102386474609375, 0.02001953125, -0.0165557861328125, 0.0263824462890625, 0.0172882080078125, -0.044342041015625, -0.0191650390625, -0.006557464599609375, 0.0194549560546875, -0.01308441162109375, -0.037200927734375, 0.00018787384033203125, -0.0187835693359375, 0.0386962890625, 0.0323486328125, -0.0005216598510742188, -0.015411376953125, 0.006771087646484375, 0.0101165771484375, -0.045135498046875, -0.002475738525390625, 0.0202178955078125, -0.040435791015625, 0.0010509490966796875, -0.01557159423828125, -0.0237274169921875, -0.0135345458984375, 0.01029205322265625, -0.056915283203125, 0.0017032623291015625, -0.01363372802734375, 0.005641937255859375, -0.057342529296875, 0.0128631591796875, 0.038177490234375, -0.033294677734375, -0.007251739501953125, -0.010345458984375, 0.017608642578125, 0.0131072998046875, -0.0638427734375, 0.0086212158203125, 0.0222625732421875, -0.0083465576171875, -0.0027904510498046875, 0.0282440185546875, 0.034423828125, 0.0003063678741455078, -0.01146697998046875, -0.0300750732421875, 0.042938232421875, -0.0027713775634765625, 0.03515625, 0.014251708984375, 0.024200439453125, 0.036102294921875, 0.07037353515625, -0.0006990432739257812, 0.037445068359375, 0.004581451416015625, 0.036163330078125, -0.032501220703125, -0.001438140869140625, 0.00036215782165527344, -0.0506591796875, -0.000499725341796875, -0.0002084970474243164, -0.0389404296875, -0.0240325927734375, -0.027862548828125, 0.004779815673828125, -0.0238037109375, -0.004528045654296875 ]
f4c4912fb425f8070956fe1ce9a23c306402ec22
Wordpress Stackexchange Q: Change admin startpage to Pages-page? When you login to the admin you see the Welcome page by default. A client of mine requested to see the "Pages" page by default, he had seen it somewhere else. Is this possible, and if so, how? Tried searching but found nothing relevant, didn't find it in the settings either. A: This should work for you if you put it in your themes functions.php file, but you may want to modify the conditions, and the url to redirect to depending on your set up. function loginRedirect( $redirect_to, $request, $user ){ if( is_array( $user->roles ) ) { // check if user has a role return "/wp-admin/edit.php?post_type=page"; } } add_filter("login_redirect", "loginRedirect", 10, 3); Here's a link containing more info about using the login_redirect filter: http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect There's also a few login redirect plugins floating around if you do a google search.
Q: Change admin startpage to Pages-page? When you login to the admin you see the Welcome page by default. A client of mine requested to see the "Pages" page by default, he had seen it somewhere else. Is this possible, and if so, how? Tried searching but found nothing relevant, didn't find it in the settings either. A: This should work for you if you put it in your themes functions.php file, but you may want to modify the conditions, and the url to redirect to depending on your set up. function loginRedirect( $redirect_to, $request, $user ){ if( is_array( $user->roles ) ) { // check if user has a role return "/wp-admin/edit.php?post_type=page"; } } add_filter("login_redirect", "loginRedirect", 10, 3); Here's a link containing more info about using the login_redirect filter: http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect There's also a few login redirect plugins floating around if you do a google search. A: Great answer from Ben to improve on it add home_url() to allow this to work on localhost or server. if( is_array( $user->roles ) ) { return home_url() . "/wp-admin/edit.php?post_type=page"; }
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:425086", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70201" }
[ 0.030303955078125, -0.007015228271484375, 0.026824951171875, -0.01116180419921875, -0.00615692138671875, -0.0198211669921875, 0.0232086181640625, -0.03900146484375, -0.0252532958984375, -0.0200958251953125, 0.0234832763671875, -0.004978179931640625, -0.06494140625, -0.057098388671875, 0.0254669189453125, -0.044219970703125, 0.0120849609375, 0.005558013916015625, 0.03643798828125, -0.01103973388671875, 0.033966064453125, 0.0103759765625, 0.00844573974609375, 0.02081298828125, 0.0065460205078125, -0.0230712890625, 0.061492919921875, -0.01039886474609375, 0.01271820068359375, -0.0179595947265625, 0.0193634033203125, -0.0187225341796875, 0.0150909423828125, 0.020416259765625, -0.00909423828125, -0.043426513671875, -0.032318115234375, 0.021728515625, 0.0162353515625, -0.00959014892578125, 0.027252197265625, 0.00528717041015625, 0.009552001953125, 0.03253173828125, -0.0242462158203125, -0.038482666015625, 0.007297515869140625, -0.03326416015625, 0.0214996337890625, -0.0234527587890625, -0.006229400634765625, 0.00970458984375, 0.00437164306640625, -0.00792694091796875, -0.0267333984375, -0.005035400390625, -0.002025604248046875, -0.018585205078125, 0.0262451171875, -0.008331298828125, -0.0018606185913085938, -0.017913818359375, 0.0208587646484375, -0.0012407302856445312, -0.005207061767578125, -0.0111846923828125, -0.038848876953125, 0.038818359375, -0.0167694091796875, -0.01605224609375, -0.0143585205078125, -0.00972747802734375, -0.0205230712890625, -0.0200042724609375, -0.0079193115234375, 0.030792236328125, -0.01416015625, 0.013092041015625, 0.01343536376953125, 0.0171051025390625, -0.009765625, -0.0192108154296875, 0.019378662109375, -0.036651611328125, 0.01256561279296875, 0.00354766845703125, -0.03253173828125, -0.00644683837890625, -0.01474761962890625, 0.0023593902587890625, -0.016845703125, 0.041412353515625, 0.0009016990661621094, -0.005161285400390625, -0.038421630859375, 0.01300811767578125, 0.03924560546875, 0.0299224853515625, 0.0394287109375, 0.005626678466796875, -0.0257568359375, -0.03509521484375, -0.010955810546875, -0.0198516845703125, -0.00927734375, 0.03521728515625, 0.02386474609375, 0.033660888671875, 0.02313232421875, 0.015625, 0.020843505859375, -0.004398345947265625, -0.032440185546875, -0.0235748291015625, -0.016998291015625, 0.032867431640625, -0.0380859375, 0.001293182373046875, -0.0106048583984375, 0.0310516357421875, -0.00785064697265625, 0.012481689453125, 0.0171356201171875, -0.0198211669921875, 0.0202484130859375, -0.001983642578125, -0.025299072265625, -0.0220184326171875, 0.0009946823120117188, 0.0017633438110351562, -0.0238189697265625, 0.005016326904296875, 0.06329345703125, 0.03607177734375, 0.02362060546875, -0.01248931884765625, 0.033447265625, -0.01230621337890625, 0.006420135498046875, 0.023101806640625, -0.02044677734375, -0.041839599609375, -0.005252838134765625, -0.0325927734375, -0.007007598876953125, 0.006061553955078125, 0.0125885009765625, 0.02667236328125, -0.0100250244140625, -0.035614013671875, -0.0093841552734375, -0.0007891654968261719, -0.03173828125, 0.026031494140625, 0.07464599609375, 0.03472900390625, 0.0224609375, 0.028900146484375, -0.00206756591796875, 0.0556640625, 0.05206298828125, 0.01776123046875, 0.0244140625, -0.005481719970703125, -0.034149169921875, -0.0100250244140625, -0.06451416015625, -0.0223236083984375, 0.0223541259765625, -0.025665283203125, 0.05621337890625, -0.0006351470947265625, -0.0299530029296875, -0.00484466552734375, 0.01026153564453125, -0.01175689697265625, 0.0086822509765625, 0.00379180908203125, 0.0123291015625, 0.0416259765625, 0.00710296630859375, -0.00998687744140625, 0.01255035400390625, 0.0103912353515625, -0.030059814453125, 0.021759033203125, -0.001373291015625, -0.0034542083740234375, -0.00279998779296875, 0.0030078887939453125, 0.0238800048828125, 0.05621337890625, -0.03582763671875, 0.0048828125, 0.003631591796875, -0.03277587890625, 0.00911712646484375, -0.0207672119140625, 0.0032501220703125, 0.0007071495056152344, 0.00867462158203125, 0.006282806396484375, -0.01039886474609375, 0.006786346435546875, -0.0036373138427734375, -0.002773284912109375, 0.0030689239501953125, 0.01202392578125, 0.06689453125, 0.013153076171875, -0.03240966796875, 0.00030231475830078125, 0.01424407958984375, -0.0665283203125, -0.07135009765625, 0.03289794921875, 0.005489349365234375, 0.033111572265625, 0.0023517608642578125, 0.0260467529296875, 0.01556396484375, -0.034759521484375, 0.007755279541015625, -0.016815185546875, 0.050201416015625, -0.01525115966796875, -0.03045654296875, -0.043792724609375, 0.0167999267578125, -0.035430908203125, -0.0078277587890625, 0.09027099609375, 0.007007598876953125, 0.0251617431640625, -0.0207977294921875, -0.00025463104248046875, 0.006778717041015625, -0.034912109375, 0.01433563232421875, 0.0264129638671875, 0.02734375, 0.02655029296875, -0.032196044921875, -0.01236724853515625, 0.0157318115234375, -0.07733154296875, -0.0013608932495117188, 0.006954193115234375, 0.02056884765625, 0.045379638671875, -0.0037517547607421875, -0.01479339599609375, 0.01099395751953125, -0.03131103515625, 0.015625, 0.0174713134765625, 0.00315093994140625, -0.01287841796875, -0.0286865234375, 0.0105438232421875, 0.0062103271484375, -0.04229736328125, -0.035186767578125, -0.0125885009765625, -0.005645751953125, -0.0079803466796875, 0.0028934478759765625, -0.0092315673828125, -0.027191162109375, -0.03369140625, 0.033233642578125, 0.0195159912109375, -0.0220794677734375, 0.00044536590576171875, 0.0684814453125, -0.05950927734375, -0.0587158203125, 0.0009565353393554688, 0.00775146484375, -0.0218353271484375, -0.0250091552734375, -0.0112762451171875, -0.0703125, -0.01910400390625, -0.0025844573974609375, -0.027618408203125, 0.00238800048828125, 0.0242919921875, 0.0335693359375, -0.01934814453125, 0.02734375, -0.036651611328125, -0.041229248046875, 0.042877197265625, -0.0162506103515625, -0.0679931640625, 0.01430511474609375, -0.061920166015625, 0.052276611328125, -0.04302978515625, 0.048431396484375, 0.07586669921875, 0.0136260986328125, 0.012481689453125, 0.00971221923828125, 0.047454833984375, 0.005626678466796875, 0.0135345458984375, 0.0150909423828125, -0.0002148151397705078, -0.0197296142578125, 0.0134124755859375, 0.01983642578125, -0.0044708251953125, 0.021270751953125, -0.0261077880859375, -0.033233642578125, 0.004726409912109375, -0.08831787109375, -0.065673828125, -0.096435546875, -0.08056640625, -0.00539398193359375, 0.01520538330078125, -0.031097412109375, 0.038787841796875, 0.04913330078125, 0.03857421875, 0.0124969482421875, -0.00749969482421875, -0.04150390625, -0.02447509765625, -0.047576904296875, -0.003948211669921875, -0.00890350341796875, -0.0010547637939453125, 0.007381439208984375, 0.043487548828125, 0.00087738037109375, -0.051055908203125, -0.005321502685546875, 0.0673828125, -0.00969696044921875, -0.0249786376953125, -0.01187896728515625, -0.051177978515625, 0.043487548828125, -0.016754150390625, 0.03375244140625, 0.0130462646484375, 0.031341552734375, 0.00395965576171875, -0.03814697265625, -0.042388916015625, -0.031036376953125, -0.020477294921875, 0.033477783203125, -0.03350830078125, -0.035736083984375, -0.055816650390625, -0.00567626953125, -0.0010061264038085938, -0.0537109375, -0.0119171142578125, 0.01434326171875, -0.01242828369140625, 0.028594970703125, -0.039306640625, -0.0181427001953125, -0.02947998046875, 0.000873565673828125, -0.02655029296875, 0.0259246826171875, -0.026214599609375, -0.023834228515625, -0.000042438507080078125, 0.0195465087890625, -0.005519866943359375, -0.02618408203125, -0.0020847320556640625, 0.0347900390625, 0.0163116455078125, 0.0015172958374023438, -0.021148681640625, -0.095947265625, 0.047943115234375, -0.0589599609375, -0.00496673583984375, -0.049072265625, -0.0006318092346191406, 0.007022857666015625, 0.11962890625, -0.02740478515625, -0.0061187744140625, -0.01031494140625, 0.0170135498046875, -0.04205322265625, -0.03521728515625, -0.032623291015625, 0.0057830810546875, -0.0782470703125, -0.00830078125, -0.005672454833984375, -0.0302581787109375, -0.0131683349609375, 0.0269012451171875, -0.03253173828125, -0.0433349609375, 0.024658203125, 0.021942138671875, -0.00865936279296875, 0.0225982666015625, -0.0248565673828125, 0.0015811920166015625, -0.000751495361328125, -0.0012655258178710938, -0.07391357421875, -0.030120849609375, 0.0062255859375, 0.08984375, 0.0421142578125, -0.05487060546875, -0.020782470703125, 0.0333251953125, 0.0279693603515625, 0.000179290771484375, 0.01557159423828125, -0.00679779052734375, -0.0098724365234375, -0.0212860107421875, 0.00612640380859375, -0.041015625, 0.0121307373046875, -0.00881195068359375, -0.026702880859375, -0.0256805419921875, -0.037933349609375, -0.022979736328125, 0.0054931640625, -0.025634765625, -0.05059814453125, -0.0582275390625, -0.0222930908203125, 0.00963592529296875, -0.0184326171875, 0.01153564453125, -0.052764892578125, -0.050384521484375, 0.004917144775390625, 0.004039764404296875, -0.046630859375, 0.0177154541015625, 0.01922607421875, 0.027557373046875, -0.017364501953125, -0.0224609375, 0.022369384765625, 0.026336669921875, -0.038421630859375, 0.08367919921875, 0.02703857421875, -0.0037441253662109375, 0.09295654296875, -0.02557373046875, -0.0150604248046875, -0.0341796875, 0.0517578125, -0.01258087158203125, -0.0291748046875, 0.0189666748046875, -0.057586669921875, 0.038330078125, 0.031463623046875, 0.00571441650390625, -0.034881591796875, -0.01497650146484375, 0.04730224609375, -0.0037250518798828125, 0.00444793701171875, -0.038726806640625, -0.006359100341796875, -0.00981903076171875, 0.0743408203125, -0.01141357421875, 0.0184478759765625, 0.004589080810546875, -0.004352569580078125, 0.032501220703125, 0.022003173828125, 0.0244903564453125, 0.0088958740234375, -0.01303863525390625, 0.030120849609375, 0.0214080810546875, 0.003803253173828125, 0.021270751953125, -0.01183319091796875, 0.062744140625, 0.005474090576171875, -0.04705810546875, 0.00632476806640625, -0.0206756591796875, 0.02685546875, 0.03240966796875, -0.0023212432861328125, 0.035430908203125, -0.0031490325927734375, -0.0297088623046875, -0.0189056396484375, -0.0007710456848144531, -0.0511474609375, -0.0565185546875, 0.02154541015625, -0.0292510986328125, 0.0182952880859375, 0.0350341796875, 0.06268310546875, -0.0153045654296875, 0.06390380859375, -0.020416259765625, 0.0006475448608398438, -0.007495880126953125, 0.0229034423828125, -0.004302978515625, 0.06488037109375, -0.0152130126953125, 0.0014276504516601562, 0.0313720703125, -0.0175628662109375, -0.024322509765625, 0.0188751220703125, 0.0219879150390625, -0.007781982421875, -0.0023784637451171875, 0.023345947265625, -0.0018768310546875, -0.013031005859375, 0.049713134765625, -0.036224365234375, -0.08502197265625, -0.03765869140625, 0.0184783935546875, 0.041046142578125, -0.03955078125, -0.024658203125, 0.0333251953125, -0.026641845703125, 0.01448822021484375, -0.01322174072265625, -0.03363037109375, 0.004199981689453125, 0.01280975341796875, -0.025146484375, -0.05426025390625, 0.005237579345703125, -0.0533447265625, 0.017242431640625, -0.01495361328125, 0.00466156005859375, 0.0002646446228027344, -0.00199127197265625, 0.032012939453125, 0.00475311279296875, -0.037017822265625, 0.0160675048828125, 0.006381988525390625, 0.035797119140625, -0.011474609375, -0.05938720703125, 0.004123687744140625, -0.06365966796875, -0.0142059326171875, -0.039642333984375, -0.0158843994140625, -0.0509033203125, 0.01279449462890625, 0.028594970703125, -0.0018062591552734375, 0.016265869140625, -0.017974853515625, -0.036163330078125, 0.01910400390625, 0.026123046875, 0.0185699462890625, -0.022918701171875, 0.08819580078125, -0.0211334228515625, 0.0384521484375, -0.00537872314453125, 0.0287933349609375, -0.027008056640625, -0.0021915435791015625, 0.0225982666015625, -0.0137481689453125, -0.02435302734375, -0.017974853515625, -0.040802001953125, -0.006710052490234375, 0.04083251953125, -0.0052947998046875, -0.01678466796875, -0.01241302490234375, -0.0011701583862304688, -0.032257080078125, 0.025115966796875, -0.00492095947265625, -0.0105743408203125, -0.01898193359375, 0.017974853515625, 0.035552978515625, 0.00720977783203125, -0.042449951171875, -0.01387786865234375, 0.03216552734375, 0.00403594970703125, -0.0020694732666015625, -0.07373046875, 0.057586669921875, 0.08221435546875, 0.0021266937255859375, 0.042694091796875, 0.025543212890625, 0.006992340087890625, 0.0474853515625, -0.0206298828125, 0.0204315185546875, 0.009765625, 0.038970947265625, -0.01404571533203125, 0.0027103424072265625, 0.04058837890625, -0.0236968994140625, 0.01152801513671875, 0.10198974609375, 0.06903076171875, -0.1593017578125, 0.01153564453125, -0.005489349365234375, 0.022308349609375, 0.050994873046875, 0.0018558502197265625, -0.01531982421875, -0.0213470458984375, 0.0173797607421875, -0.019317626953125, -0.0195770263671875, -0.003330230712890625, 0.0149993896484375, -0.031341552734375, -0.02581787109375, 0.023651123046875, 0.019744873046875, 0.0238494873046875, 0.0103912353515625, -0.0291290283203125, 0.01036834716796875, -0.005710601806640625, 0.01068878173828125, 0.0003974437713623047, -0.0296173095703125, -0.0689697265625, -0.00027179718017578125, -0.00658416748046875, -0.016448974609375, 0.07598876953125, 0.0177154541015625, 0.01751708984375, 0.07696533203125, -0.01702880859375, 0.0435791015625, 0.0176849365234375, -0.00919342041015625, 0.002887725830078125, -0.0004143714904785156, 0.0202178955078125, -0.00969696044921875, -0.0499267578125, 0.008087158203125, -0.05133056640625, -0.0158233642578125, -0.0191192626953125, -0.0740966796875, 0.0765380859375, -0.004314422607421875, -0.0232696533203125, -0.0037326812744140625, 0.00782012939453125, -0.002994537353515625, -0.0030612945556640625, -0.006351470947265625, -0.0251922607421875, 0.0016641616821289062, -0.0202178955078125, -0.0283966064453125, 0.007778167724609375, -0.017364501953125, -0.0638427734375, 0.07012939453125, 0.004619598388671875, 0.03192138671875, 0.0177001953125, 0.020294189453125, -0.039703369140625, -0.00843048095703125, -0.0215911865234375, 0.0290069580078125, 0.055084228515625, 0.0305633544921875, 0.0239105224609375, -0.0005922317504882812, 0.0281219482421875, 0.0150146484375, 0.027099609375, 0.0170440673828125, -0.0284271240234375, 0.0009455680847167969, 0.0277862548828125, 0.011566162109375, 0.002750396728515625, 0.040557861328125, -0.0141448974609375, 0.0176849365234375, 0.024078369140625, -0.07000732421875, 0.017059326171875, -0.027130126953125, -0.01270294189453125, -0.00998687744140625, 0.0226898193359375, 0.02154541015625, -0.004207611083984375, -0.0156402587890625, -0.08184814453125, 0.01517486572265625, 0.053619384765625, -0.01532745361328125, -0.005252838134765625, 0.0275115966796875, 0.033233642578125, -0.029388427734375, 0.01543426513671875, -0.032745361328125, 0.04248046875, 0.02996826171875, -0.003070831298828125, 0.004932403564453125, 0.01497650146484375, -0.010833740234375, -0.046356201171875, -0.0149993896484375, 0.01263427734375, -0.044586181640625, 0.060791015625, 0.001861572265625, 0.0193939208984375, -0.0673828125, 0.009246826171875, 0.0134124755859375, 0.06427001953125, -0.057220458984375, -0.034912109375, 0.007663726806640625, 0.00319671630859375, 0.029510498046875, 0.0014934539794921875, 0.0249786376953125, -0.009002685546875, 0.01934814453125, -0.00170135498046875, -0.012298583984375, 0.0175018310546875, -0.0364990234375, -0.01380157470703125, -0.0025424957275390625, 0.039093017578125, 0.03411865234375, -0.003330230712890625, 0.0128173828125, -0.00452423095703125, -0.01323699951171875, -0.01522064208984375, 0.01525115966796875, 0.0034008026123046875, 0.0198211669921875, -0.00267791748046875, -0.0004792213439941406, -0.0301971435546875, 0.01080322265625, -0.029541015625, -0.0221099853515625, -0.012939453125, 0.041412353515625, 0.007045745849609375, -0.01078033447265625, -0.0019474029541015625, -0.0076904296875, -0.01375579833984375, -0.0070953369140625, 0.0054931640625, -0.0262908935546875, 0.01253509521484375, -0.02142333984375, 0.019683837890625, 0.0016431808471679688, -0.00783538818359375, -0.01276397705078125, 0.02874755859375, 0.0141143798828125, -0.00279998779296875, 0.00450897216796875, 0.014495849609375, -0.0723876953125, 0.0212860107421875, -0.01261138916015625, 0.09991455078125, 0.0149383544921875, -0.110107421875, -0.032440185546875, -0.031707763671875, -0.055694580078125, 0.04901123046875, 0.05133056640625, -0.01021575927734375, -0.01702880859375, 0.0187225341796875, 0.042694091796875, 0.0027523040771484375, -0.0355224609375, -0.00897979736328125, -0.02703857421875, 0.0482177734375, 0.0173797607421875, -0.0325927734375, -0.01410675048828125, -0.019622802734375, 0.0277862548828125, -0.003314971923828125, 0.0931396484375, -0.046630859375, 0.0133514404296875, -0.03887939453125, 0.021026611328125, -0.053558349609375, -0.040802001953125, 0.050933837890625, -0.012664794921875, -0.03253173828125, 0.01059722900390625, -0.0489501953125, 0.07586669921875, -0.0034046173095703125, -0.010345458984375, 0.046783447265625, 0.0096588134765625, -0.011962890625, -0.00963592529296875, -0.0014219284057617188, -0.0224761962890625, -0.040924072265625, -0.049407958984375, 0.014556884765625, 0.00930023193359375, -0.0029468536376953125, -0.052520751953125, 0.04827880859375, -0.0386962890625, -0.03106689453125, -0.0001016855239868164, -0.06463623046875, -0.0115814208984375, 0.03265380859375, -0.01148223876953125, -0.01090240478515625, 0.03094482421875, -0.00315093994140625, 0.0222625732421875, 0.0186004638671875, 0.01012420654296875, 0.032623291015625, 0.034088134765625, -0.0186309814453125, -0.01041412353515625, -0.0086822509765625, -0.0269927978515625, -0.0211334228515625, -0.004886627197265625, -0.0134429931640625, -0.011871337890625, -0.042022705078125, -0.032501220703125, -0.021209716796875, -0.0018596649169921875, 0.0216522216796875, 0.007335662841796875, -0.03778076171875, -0.065185546875, 0.051727294921875, 0.02349853515625, -0.00870513916015625, -0.070068359375, 0.061431884765625, -0.041595458984375, 0.063232421875, -0.0109710693359375, 0.01358795166015625, 0.007183074951171875, -0.0181884765625, -0.062744140625, 0.042449951171875, -0.04833984375, -0.05474853515625, -0.0198516845703125, -0.0176544189453125, 0.050262451171875, 0.0097503662109375, 0.023468017578125, -0.058502197265625, -0.0599365234375, 0.0312347412109375, -0.058502197265625, -0.00630950927734375, -0.009796142578125, 0.0263519287109375, 0.0042724609375, -0.042083740234375, -0.0124969482421875, 0.001949310302734375, 0.00959014892578125, 0.0312347412109375, -0.03509521484375, 0.003536224365234375, -0.038482666015625, -0.072021484375, 0.036163330078125, 0.0168914794921875, -0.037750244140625, -0.009033203125, 0.00922393798828125, -0.0166473388671875, -0.01023101806640625, 0.0035076141357421875, -0.024261474609375, -0.00479888916015625, 0.01055145263671875, 0.012481689453125, 0.01959228515625, 0.01384735107421875, 0.009674072265625, -0.024200439453125, 0.0167236328125, 0.011077880859375, 0.0030803680419921875, 0.01190948486328125, -0.001739501953125, 0.0238494873046875, 0.06085205078125, -0.02105712890625, -0.040130615234375, -0.0236968994140625, -0.03668212890625, -0.0105743408203125, -0.01396942138671875, 0.00983428955078125, -0.0225830078125, 0.0217742919921875, 0.0207061767578125, -0.0018463134765625, 0.005771636962890625, -0.032623291015625, -0.047760009765625, 0.0124664306640625, -0.0245819091796875, 0.01044464111328125, -0.09124755859375, -0.026519775390625, 0.0269622802734375, -0.0140533447265625, -0.010986328125, 0.01131439208984375, -0.028656005859375, -0.00823974609375, 0.0147552490234375, 0.0006222724914550781, -0.0211944580078125, -0.00992584228515625, 0.049591064453125, -0.032745361328125, -0.0255584716796875, -0.004436492919921875, 0.0261688232421875, -0.0157012939453125, -0.0277862548828125, -0.0120391845703125, 0.020843505859375, -0.01271820068359375, -0.0019273757934570312, 0.006587982177734375, -0.0236358642578125, -0.01322174072265625, 0.0194854736328125, 0.0022335052490234375, 0.036407470703125, -0.015960693359375, 0.051055908203125, 0.0093231201171875, 0.018157958984375, 0.00003272294998168945, 0.034881591796875, -0.006572723388671875, -0.00801849365234375, -0.0146942138671875, 0.037994384765625, -0.0219879150390625, -0.0209808349609375, 0.0110626220703125, -0.05462646484375, 0.0027027130126953125, 0.02532958984375, 0.01226043701171875, -0.023712158203125, 0.010040283203125, -0.0177764892578125, 0.026519775390625, 0.0045013427734375 ]
6076e8c7a09e977fedb80c341ddb17865508ee08
Wordpress Stackexchange Q: Is there any sort of theme dependency management? I'm developing a Wordpress theme with a few other individuals and am running into a problem where I add a plugin and then I have tell the other developers about the plugin I installed and the settings I set for the plugin so that the theme works. I was wondering if there's a way to associate plugins with a theme, so that when an individual receives the theme, the theme knows which plugins it needs and can automagically install them and their correct versions. I suppose I'm looking for some sort of dependency management for Wordpress themes. Is there something like that out there? A: There isn't any such feature directly in wordpress but there is a php library that do allow this kind of behaviour. Can't comment on how/if it works as I haven't tried it yet but it looks like it does the job. You might find it useful http://tgmpluginactivation.com/
Q: Is there any sort of theme dependency management? I'm developing a Wordpress theme with a few other individuals and am running into a problem where I add a plugin and then I have tell the other developers about the plugin I installed and the settings I set for the plugin so that the theme works. I was wondering if there's a way to associate plugins with a theme, so that when an individual receives the theme, the theme knows which plugins it needs and can automagically install them and their correct versions. I suppose I'm looking for some sort of dependency management for Wordpress themes. Is there something like that out there? A: There isn't any such feature directly in wordpress but there is a php library that do allow this kind of behaviour. Can't comment on how/if it works as I haven't tried it yet but it looks like it does the job. You might find it useful http://tgmpluginactivation.com/ A: In addition with Mridul Aggarwal's answer, this is a list of services and open sources that might be useful: * *WP Package Editor WP2E is a service allowing developers to create and manage installation packages to deliver and maintain sets of interdependent themes and plugins. * *TGM Plugin Activation TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). * *WPFavs It is a Free WordPress plugin manager and bulk installation tool * *WordPress Packagist This site mirrors the WordPress plugin and theme directories as a Composer repository. * *WP Plugin Dependencies This meta-plugin allows regular plugins to specify other plugins that they depend upon. * *WP Dependency Installer A lightweight class to add to WordPress plugins/themes to automatically install plugin dependencies.
wordpress
{ "language": "en", "length": 296, "provenance": "stackexchange_00019.jsonl.gz:425098", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70235" }
[ 0.0195770263671875, -0.01137542724609375, 0.00746917724609375, -0.045562744140625, -0.010650634765625, 0.006252288818359375, -0.00951385498046875, 0.00222015380859375, -0.0206756591796875, 0.0105743408203125, 0.0254364013671875, 0.0043792724609375, -0.047027587890625, -0.052001953125, -0.0077667236328125, -0.04095458984375, 0.026824951171875, -0.0166168212890625, 0.0212554931640625, -0.009613037109375, 0.003772735595703125, 0.0172576904296875, 0.0292510986328125, 0.045654296875, 0.048004150390625, 0.006809234619140625, 0.0706787109375, -0.032379150390625, 0.0565185546875, -0.00949859619140625, 0.04632568359375, -0.054962158203125, 0.00922393798828125, -0.0161895751953125, 0.041229248046875, -0.0193939208984375, 0.01166534423828125, -0.01168060302734375, -0.00258636474609375, 0.011260986328125, 0.0009617805480957031, 0.006313323974609375, 0.055633544921875, 0.03582763671875, 0.01187896728515625, -0.060089111328125, 0.009735107421875, -0.080078125, 0.01010894775390625, -0.05841064453125, 0.0238037109375, 0.0017995834350585938, 0.0606689453125, -0.04522705078125, -0.0258331298828125, 0.0007424354553222656, -0.050933837890625, 0.06829833984375, 0.0235748291015625, 0.0029697418212890625, -0.0256195068359375, 0.0087432861328125, -0.00125885009765625, -0.00799560546875, -0.0006532669067382812, -0.017425537109375, -0.0311126708984375, 0.0162353515625, -0.0233917236328125, 0.032958984375, 0.04705810546875, -0.0240936279296875, -0.004547119140625, 0.002170562744140625, 0.0386962890625, -0.055145263671875, 0.021636962890625, -0.03857421875, 0.006805419921875, 0.051300048828125, 0.0168609619140625, -0.02703857421875, 0.0233001708984375, -0.0269317626953125, 0.01457977294921875, 0.00461578369140625, -0.0022487640380859375, 0.00557708740234375, -0.039794921875, 0.0013914108276367188, -0.028289794921875, -0.0034046173095703125, -0.0594482421875, 0.0266265869140625, -0.004558563232421875, 0.03253173828125, 0.0538330078125, 0.055755615234375, -0.0008254051208496094, 0.0002827644348144531, 0.0017032623291015625, -0.0677490234375, 0.058990478515625, -0.035888671875, -0.00968170166015625, 0.01404571533203125, -0.025970458984375, -0.021881103515625, 0.01006317138671875, 0.046295166015625, -0.00583648681640625, -0.04339599609375, 0.05322265625, -0.006587982177734375, -0.0050048828125, -0.033660888671875, 0.004913330078125, 0.03765869140625, 0.0004734992980957031, 0.00634002685546875, -0.0084075927734375, 0.0164337158203125, -0.0238800048828125, -0.0166778564453125, -0.015228271484375, -0.03594970703125, -0.0154266357421875, 0.004730224609375, 0.00927734375, -0.0140380859375, -0.04254150390625, 0.017120361328125, 0.053131103515625, 0.005870819091796875, 0.006694793701171875, -0.006072998046875, 0.013641357421875, 0.01119232177734375, 0.0293121337890625, -0.012115478515625, 0.05224609375, -0.0279998779296875, -0.0024967193603515625, 0.0276031494140625, 0.0093231201171875, -0.01552581787109375, 0.015594482421875, 0.046875, -0.01287841796875, -0.0223388671875, 0.046112060546875, 0.0009679794311523438, 0.03143310546875, -0.0029659271240234375, 0.0367431640625, -0.0216827392578125, 0.03271484375, -0.0209503173828125, 0.0006051063537597656, -0.007720947265625, -0.028533935546875, -0.03582763671875, -0.025299072265625, -0.0249176025390625, -0.03497314453125, 0.04443359375, 0.0188140869140625, 0.0226593017578125, 0.019012451171875, -0.016357421875, -0.019622802734375, -0.032958984375, 0.028961181640625, 0.005535125732421875, -0.00830841064453125, 0.04779052734375, -0.01506805419921875, 0.024139404296875, 0.021087646484375, -0.0240020751953125, -0.00809478759765625, -0.033203125, 0.07379150390625, -0.021331787109375, -0.0173187255859375, 0.003353118896484375, 0.0077972412109375, 0.01039886474609375, 0.00292205810546875, 0.0208587646484375, 0.010833740234375, 0.0036773681640625, -0.0157470703125, 0.00463104248046875, -0.052978515625, -0.0225067138671875, 0.05303955078125, 0.056060791015625, -0.0286102294921875, -0.0002658367156982422, 0.018280029296875, 0.01410675048828125, -0.0234375, -0.04266357421875, -0.060699462890625, -0.0357666015625, -0.01210784912109375, 0.032501220703125, -0.0184783935546875, 0.0098724365234375, 0.009429931640625, -0.01453399658203125, 0.01418304443359375, -0.0276031494140625, -0.0186920166015625, 0.0036640167236328125, -0.009613037109375, 0.005046844482421875, 0.01325225830078125, 0.02362060546875, 0.017181396484375, 0.02447509765625, 0.00026297569274902344, 0.0026340484619140625, -0.023773193359375, 0.0302276611328125, -0.02667236328125, 0.02447509765625, -0.048431396484375, 0.030792236328125, -0.00878143310546875, 0.0020923614501953125, -0.0169830322265625, -0.00855255126953125, -0.006862640380859375, -0.0038890838623046875, 0.0025539398193359375, -0.0703125, 0.0103912353515625, 0.03912353515625, 0.019866943359375, 0.056427001953125, -0.0145721435546875, -0.0018358230590820312, 0.05218505859375, -0.03289794921875, 0.00569915771484375, 0.012298583984375, 0.0098724365234375, 0.0275421142578125, 0.02978515625, 0.0082550048828125, 0.0023899078369140625, -0.0279083251953125, 0.03558349609375, 0.01303863525390625, 0.00806427001953125, 0.00710296630859375, -0.0301971435546875, 0.00479888916015625, 0.006923675537109375, 0.0030345916748046875, -0.0176544189453125, 0.002262115478515625, 0.047149658203125, -0.0295562744140625, 0.027740478515625, 0.00867462158203125, -0.0005273818969726562, -0.0203704833984375, 0.0176849365234375, -0.00786590576171875, 0.0016069412231445312, -0.0024566650390625, -0.00475311279296875, 0.01007080078125, -0.0227203369140625, 0.009490966796875, 0.00013637542724609375, -0.00774383544921875, -0.040313720703125, -0.02557373046875, -0.011566162109375, -0.00789642333984375, -0.019500732421875, -0.058197021484375, 0.045654296875, 0.0187835693359375, -0.01479339599609375, 0.01824951171875, 0.0178375244140625, 0.01448822021484375, -0.029205322265625, 0.0225372314453125, 0.00860595703125, -0.0013608932495117188, -0.015289306640625, -0.0638427734375, 0.0384521484375, -0.0237579345703125, 0.01436614990234375, 0.061126708984375, 0.0246734619140625, -0.00762176513671875, 0.0112457275390625, 0.024169921875, 0.0389404296875, -0.007198333740234375, -0.00516510009765625, 0.02618408203125, -0.068603515625, -0.03094482421875, 0.01258087158203125, 0.0204315185546875, 0.0158233642578125, -0.040130615234375, 0.000025987625122070312, 0.0093536376953125, -0.0272979736328125, -0.004131317138671875, -0.0010538101196289062, -0.0166778564453125, 0.0283203125, -0.001667022705078125, 0.002864837646484375, -0.01959228515625, 0.01629638671875, -0.0002624988555908203, -0.050018310546875, -0.046295166015625, -0.052734375, -0.0999755859375, -0.072998046875, 0.0168304443359375, 0.0028896331787109375, 0.016693115234375, 0.002285003662109375, 0.0775146484375, 0.00782012939453125, -0.07952880859375, -0.031280517578125, 0.005794525146484375, -0.00556182861328125, 0.011688232421875, 0.04010009765625, -0.0310516357421875, -0.03607177734375, 0.021453857421875, 0.01294708251953125, 0.00479888916015625, -0.03375244140625, -0.0183258056640625, -0.0071868896484375, -0.032379150390625, 0.00833892822265625, 0.0166778564453125, 0.0036563873291015625, 0.0035400390625, 0.022247314453125, -0.048736572265625, -0.0147552490234375, 0.0188140869140625, -0.040252685546875, 0.029022216796875, 0.006244659423828125, -0.022064208984375, 0.04058837890625, -0.02764892578125, 0.01165008544921875, 0.0068511962890625, -0.00661468505859375, -0.014801025390625, 0.0304107666015625, 0.004398345947265625, 0.021087646484375, -0.01407623291015625, 0.0020236968994140625, -0.02996826171875, 0.0279998779296875, -0.0062408447265625, 0.01119232177734375, -0.035614013671875, 0.054473876953125, -0.03948974609375, -0.03173828125, 0.037750244140625, 0.029052734375, 0.04144287109375, -0.019378662109375, -0.036102294921875, -0.00206756591796875, 0.09918212890625, -0.04034423828125, 0.005062103271484375, 0.0218963623046875, 0.01439666748046875, -0.01125335693359375, 0.0038299560546875, -0.0906982421875, -0.0208892822265625, -0.039703369140625, 0.0057830810546875, 0.0032291412353515625, -0.043975830078125, -0.006397247314453125, 0.01165008544921875, -0.024261474609375, -0.01139068603515625, 0.0261383056640625, -0.050933837890625, -0.0124359130859375, -0.00655364990234375, -0.032073974609375, -0.040069580078125, -0.005401611328125, -0.0308837890625, -0.0784912109375, -0.021484375, -0.04595947265625, 0.0867919921875, 0.0305938720703125, -0.01551055908203125, -0.019866943359375, 0.034576416015625, 0.007602691650390625, 0.081787109375, 0.00653076171875, 0.01163482666015625, 0.0167236328125, -0.0196075439453125, 0.03094482421875, -0.0277099609375, 0.021575927734375, -0.0054931640625, -0.07672119140625, 0.0169830322265625, 0.01568603515625, 0.052490234375, 0.0535888671875, -0.040313720703125, -0.0149383544921875, 0.002231597900390625, -0.003917694091796875, 0.008697509765625, -0.0013484954833984375, -0.0130615234375, 0.0010776519775390625, -0.00372314453125, 0.004131317138671875, -0.015869140625, 0.0051422119140625, 0.02691650390625, 0.08251953125, 0.022186279296875, -0.0002008676528930664, -0.041534423828125, 0.0284576416015625, 0.0259857177734375, 0.032318115234375, -0.022308349609375, -0.0195159912109375, -0.011322021484375, -0.03350830078125, -0.00412750244140625, -0.01459503173828125, -0.0007467269897460938, -0.0020236968994140625, 0.0182952880859375, -0.031585693359375, 0.006130218505859375, 0.0021953582763671875, 0.04034423828125, 0.0137481689453125, -0.0194854736328125, -0.02008056640625, -0.00745391845703125, 0.039581298828125, -0.042633056640625, 0.06158447265625, -0.023651123046875, -0.0270843505859375, 0.0161590576171875, -0.03948974609375, -0.00333404541015625, 0.0024318695068359375, -0.0011653900146484375, -0.01316070556640625, -0.0080718994140625, -0.0005183219909667969, 0.00262451171875, 0.027099609375, -0.0012912750244140625, 0.036773681640625, 0.0160064697265625, 0.00614166259765625, -0.0292816162109375, -0.0225067138671875, 0.09912109375, 0.0251922607421875, -0.040191650390625, 0.020263671875, -0.017486572265625, 0.016632080078125, 0.0224151611328125, -0.0189666748046875, 0.05487060546875, 0.0301055908203125, -0.0296478271484375, -0.0094146728515625, -0.040863037109375, -0.0230865478515625, -0.062286376953125, -0.019134521484375, -0.0256500244140625, -0.00897216796875, 0.004230499267578125, 0.0097808837890625, -0.025421142578125, 0.01163482666015625, 0.00018298625946044922, 0.03656005859375, 0.043914794921875, 0.0023555755615234375, 0.0019893646240234375, -0.0089569091796875, 0.008209228515625, -0.016815185546875, 0.021820068359375, -0.003162384033203125, 0.024871826171875, -0.0185546875, 0.01171875, -0.038421630859375, -0.0298919677734375, 0.041290283203125, -0.03875732421875, -0.0073089599609375, 0.0306396484375, -0.0288238525390625, -0.045623779296875, -0.0242156982421875, 0.0006279945373535156, 0.038848876953125, -0.0266265869140625, -0.019134521484375, -0.003971099853515625, -0.033294677734375, -0.04571533203125, 0.0282745361328125, -0.0699462890625, 0.01537322998046875, 0.02679443359375, -0.05487060546875, 0.0014362335205078125, 0.033355712890625, -0.08367919921875, -0.06158447265625, 0.0014972686767578125, -0.019317626953125, 0.048828125, -0.02142333984375, 0.01430511474609375, -0.033172607421875, 0.0235137939453125, -0.0767822265625, 0.0005197525024414062, 0.044189453125, 0.03948974609375, -0.051025390625, 0.006511688232421875, -0.07196044921875, -0.022308349609375, -0.078125, -0.07049560546875, -0.061309814453125, 0.0045013427734375, -0.01373291015625, 0.013427734375, -0.008514404296875, 0.010894775390625, -0.01032257080078125, 0.042877197265625, -0.00826263427734375, 0.032073974609375, 0.0032958984375, 0.055572509765625, 0.0172119140625, 0.055419921875, 0.045806884765625, 0.022979736328125, -0.0413818359375, -0.034271240234375, -0.019073486328125, -0.0259552001953125, -0.01502227783203125, 0.037139892578125, -0.0192718505859375, 0.0155487060546875, 0.0430908203125, -0.004001617431640625, 0.00856781005859375, -0.03582763671875, 0.0081024169921875, -0.01690673828125, 0.039337158203125, -0.047760009765625, -0.05126953125, 0.0340576171875, -0.0626220703125, -0.040252685546875, -0.0026988983154296875, -0.0018281936645507812, 0.046356201171875, -0.038970947265625, 0.005580902099609375, 0.04547119140625, -0.038818359375, 0.038299560546875, 0.026824951171875, 0.01485443115234375, 0.0274810791015625, 0.00494384765625, 0.019287109375, -0.025177001953125, 0.03851318359375, -0.0017576217651367188, -0.035919189453125, 0.00959014892578125, 0.015838623046875, 0.00826263427734375, -0.001209259033203125, -0.026092529296875, -0.0184783935546875, 0.006626129150390625, 0.0242919921875, -0.007648468017578125, -0.0003261566162109375, -0.0016870498657226562, -0.0185699462890625, -0.0169219970703125, -0.01364898681640625, -0.004852294921875, -0.027099609375, 0.04437255859375, -0.0046234130859375, 0.0021953582763671875, 0.016448974609375, -0.0193328857421875, -0.013153076171875, -0.003192901611328125, 0.04217529296875, 0.0091705322265625, 0.01708984375, -0.039642333984375, -0.0299072265625, -0.0018177032470703125, -0.0024280548095703125, 0.01018524169921875, 0.006008148193359375, -0.034698486328125, -0.037506103515625, 0.0005121231079101562, -0.005878448486328125, -0.0178680419921875, 0.00042939186096191406, 0.005397796630859375, 0.006206512451171875, 0.03338623046875, -0.0244598388671875, -0.00014078617095947266, 0.0212554931640625, -0.00551605224609375, 0.020416259765625, -0.018463134765625, 0.01285552978515625, -0.0234832763671875, -0.0175018310546875, -0.005550384521484375, -0.019866943359375, -0.046630859375, -0.0132598876953125, -0.001216888427734375, 0.0792236328125, -0.0150299072265625, -0.018524169921875, 0.0310821533203125, 0.02215576171875, -0.0202178955078125, -0.01275634765625, 0.036346435546875, -0.035186767578125, -0.01001739501953125, 0.007053375244140625, 0.004673004150390625, -0.00030612945556640625, 0.00130462646484375, -0.0601806640625, 0.1265869140625, -0.02923583984375, 0.0262603759765625, 0.0051422119140625, 0.049835205078125, -0.01201629638671875, 0.0283203125, -0.05218505859375, 0.06866455078125, -0.023681640625, 0.052947998046875, -0.0550537109375, -0.0006856918334960938, 0.0005803108215332031, 0.01226806640625, 0.046661376953125, 0.001453399658203125, -0.020233154296875, -0.0125885009765625, 0.047119140625, 0.000980377197265625, -0.01194000244140625, 0.053131103515625, 0.005809783935546875, -0.00916290283203125, 0.0292205810546875, 0.0031414031982421875, 0.045196533203125, -0.0328369140625, -0.0014772415161132812, 0.01092529296875, -0.0023860931396484375, -0.01495361328125, -0.01812744140625, 0.060302734375, -0.035919189453125, -0.030181884765625, 0.0219268798828125, -0.0098876953125, 0.04010009765625, -0.016357421875, 0.0230255126953125, -0.0032367706298828125, 0.0189361572265625, -0.01038360595703125, 0.0367431640625, -0.0105438232421875, -0.0233306884765625, -0.0222015380859375, 0.010894775390625, -0.033355712890625, -0.0465087890625, -0.0269927978515625, 0.0362548828125, -0.052093505859375, 0.00011789798736572266, -0.01788330078125, 0.033538818359375, -0.046966552734375, -0.032440185546875, 0.0211944580078125, 0.021240234375, 0.00365447998046875, -0.0650634765625, 0.01309967041015625, 0.0005779266357421875, 0.004566192626953125, 0.01947021484375, -0.01094818115234375, -0.041717529296875, -0.00023615360260009766, 0.0266571044921875, -0.023529052734375, 0.00708770751953125, 0.01494598388671875, 0.004985809326171875, 0.02410888671875, 0.003200531005859375, -0.0142669677734375, 0.006488800048828125, 0.0183563232421875, -0.01320648193359375, 0.002155303955078125, -0.038909912109375, 0.05865478515625, -0.0242919921875, 0.0153961181640625, 0.003997802734375, 0.0416259765625, 0.0225372314453125, -0.01300048828125, -0.006771087646484375, -0.031829833984375, 0.015960693359375, 0.016143798828125, -0.0239410400390625, 0.0139312744140625, 0.054443359375, 0.0885009765625, -0.00937652587890625, -0.02301025390625, 0.0303955078125, -0.0008296966552734375, 0.0087890625, -0.0294036865234375, 0.043243408203125, 0.0160064697265625, 0.0072021484375, -0.0249786376953125, 0.0587158203125, 0.017059326171875, -0.0282440185546875, 0.0256195068359375, -0.004291534423828125, -0.0098114013671875, -0.0011434555053710938, -0.048736572265625, 0.007617950439453125, -0.0228729248046875, -0.0162506103515625, -0.01235198974609375, -0.03558349609375, 0.01812744140625, -0.0009746551513671875, 0.0245819091796875, 0.006427764892578125, 0.021514892578125, 0.029296875, 0.0037593841552734375, 0.001739501953125, 0.0038280487060546875, -0.0044097900390625, -0.01412200927734375, 0.0269012451171875, 0.0032367706298828125, 0.00711822509765625, 0.0099029541015625, 0.01119232177734375, 0.0308074951171875, 0.01328277587890625, 0.01177215576171875, -0.0007243156433105469, 0.01203155517578125, -0.029327392578125, -0.01385498046875, -0.0037250518798828125, -0.0171356201171875, -0.004058837890625, 0.023895263671875, -0.004852294921875, -0.02117919921875, -0.01224517822265625, 0.00433349609375, 0.013885498046875, -0.045501708984375, -0.021575927734375, -0.018829345703125, 0.03363037109375, 0.0170440673828125, -0.0022106170654296875, -0.027191162109375, -0.0650634765625, -0.0399169921875, 0.0073089599609375, 0.0028896331787109375, 0.0206146240234375, -0.0003895759582519531, 0.0006537437438964844, 0.01073455810546875, 0.0133514404296875, -0.004180908203125, 0.058868408203125, -0.05401611328125, -0.0013523101806640625, 0.010894775390625, -0.0948486328125, 0.044952392578125, 0.00476837158203125, -0.007781982421875, 0.01531982421875, 0.1279296875, 0.0166473388671875, -0.022125244140625, 0.035125732421875, 0.0745849609375, 0.09857177734375, 0.01470947265625, 0.051177978515625, 0.011505126953125, 0.005054473876953125, 0.0186920166015625, -0.05712890625, -0.04046630859375, -0.046661376953125, -0.006999969482421875, 0.033935546875, -0.04266357421875, -0.0233306884765625, -0.0794677734375, 0.0269622802734375, 0.04339599609375, 0.0169219970703125, -0.06103515625, 0.0345458984375, -0.0101776123046875, 0.03363037109375, 0.01448822021484375, -0.03619384765625, -0.00014865398406982422, 0.004627227783203125, -0.01018524169921875, -0.033447265625, -0.055633544921875, 0.00965118408203125, -0.03472900390625, 0.040740966796875, 0.0535888671875, -0.0306243896484375, 0.0012617111206054688, 0.044525146484375, 0.016387939453125, 0.09228515625, -0.0139007568359375, -0.007354736328125, 0.00994110107421875, 0.0005559921264648438, -0.00545501708984375, -0.04205322265625, 0.007495880126953125, -0.048919677734375, -0.022796630859375, -0.03424072265625, -0.007293701171875, -0.01375579833984375, -0.06317138671875, -0.09234619140625, 0.0672607421875, -0.0214385986328125, -0.03326416015625, -0.056610107421875, -0.03192138671875, -0.0121917724609375, 0.0106201171875, -0.0251007080078125, 0.0010461807250976562, -0.04168701171875, 0.06024169921875, -0.003925323486328125, 0.0192108154296875, -0.00833892822265625, 0.023162841796875, -0.0073089599609375, 0.028778076171875, 0.028961181640625, -0.039703369140625, 0.05609130859375, -0.0357666015625, 0.0423583984375, 0.0640869140625, -0.05059814453125, -0.0170440673828125, -0.049774169921875, -0.0187530517578125, -0.027862548828125, -0.058135986328125, 0.01186370849609375, -0.0118408203125, 0.0675048828125, 0.035797119140625, 0.0012674331665039062, -0.03375244140625, -0.0100555419921875, -0.01308441162109375, -0.044403076171875, -0.005756378173828125, 0.02508544921875, -0.0472412109375, 0.004306793212890625, -0.01107025146484375, -0.0159912109375, 0.018646240234375, -0.031402587890625, -0.02423095703125, 0.01335906982421875, -0.00128173828125, -0.006748199462890625, -0.0216827392578125, -0.02960205078125, 0.0242156982421875, -0.003002166748046875, 0.038421630859375, 0.0199127197265625, 0.0146484375, 0.035003662109375, 0.1044921875, 0.0303497314453125, 0.0243072509765625, -0.055633544921875, 0.01549530029296875, 0.001739501953125, 0.04791259765625, -0.0311431884765625, -0.0306396484375, -0.007556915283203125, 0.00506591796875, 0.0030651092529296875, 0.0232086181640625, -0.035858154296875, 0.0263671875, 0.01132965087890625, 0.02239990234375, -0.00623321533203125, -0.1002197265625, -0.04071044921875, 0.045684814453125, -0.0228118896484375, -0.0242156982421875, 0.00576019287109375, -0.06072998046875, 0.0193939208984375, 0.01549530029296875, 0.039459228515625, -0.01201629638671875, 0.016143798828125, 0.0386962890625, 0.0173187255859375, 0.0099945068359375 ]
8d4f5ba724e74578c74c74397abd450ccea8d8f9
Wordpress Stackexchange Q: Redirect after User Activation I am using BuddyPress 2 registration and activation for three different sites with my own registration form. To know where the user has registered, I add the user meta key registered_from at registration. Is there a way to redirect the user after activation to the site where he registered? A: Paste this code in your bp-custom.php file or, if you prefer, your active theme's functions.php file: add_action( 'bp_core_activated_user', 'wpse_70289_activated_user_redirect' ); function wpse_70289_activated_user_redirect( $user_id ) { $registered_from = get_user_meta( $user_id, 'registered_from', true ); wp_redirect( $registered_from ); } I haven't tested this code myself yet, but it should work just fine. References: * *http://codex.wordpress.org/Function_Reference/get_user_meta *http://codex.wordpress.org/Function_Reference/wp_redirect
Q: Redirect after User Activation I am using BuddyPress 2 registration and activation for three different sites with my own registration form. To know where the user has registered, I add the user meta key registered_from at registration. Is there a way to redirect the user after activation to the site where he registered? A: Paste this code in your bp-custom.php file or, if you prefer, your active theme's functions.php file: add_action( 'bp_core_activated_user', 'wpse_70289_activated_user_redirect' ); function wpse_70289_activated_user_redirect( $user_id ) { $registered_from = get_user_meta( $user_id, 'registered_from', true ); wp_redirect( $registered_from ); } I haven't tested this code myself yet, but it should work just fine. References: * *http://codex.wordpress.org/Function_Reference/get_user_meta *http://codex.wordpress.org/Function_Reference/wp_redirect
wordpress
{ "language": "en", "length": 108, "provenance": "stackexchange_00019.jsonl.gz:425118", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70289" }
[ 0.06109619140625, 0.018310546875, -0.01441192626953125, -0.033905029296875, 0.041748046875, -0.0291748046875, 0.0380859375, -0.03564453125, 0.016082763671875, 0.03485107421875, 0.007381439208984375, -0.0041351318359375, 0.006679534912109375, -0.03607177734375, -0.0226898193359375, 0.0006856918334960938, -0.00228118896484375, 0.00661468505859375, -0.0005922317504882812, -0.0195465087890625, 0.011505126953125, -0.014984130859375, 0.0014629364013671875, -0.0089874267578125, -0.0014944076538085938, -0.0372314453125, 0.094482421875, -0.0119476318359375, -0.0019626617431640625, -0.025146484375, 0.020294189453125, 0.00022840499877929688, -0.0128326416015625, 0.02734375, -0.0045318603515625, -0.060394287109375, 0.040618896484375, -0.0016574859619140625, -0.00452423095703125, 0.030914306640625, 0.02252197265625, -0.0164031982421875, -0.017578125, 0.00644683837890625, 0.004596710205078125, -0.05792236328125, 0.052581787109375, -0.037384033203125, 0.01134490966796875, 0.03662109375, 0.01474761962890625, 0.0227813720703125, 0.023834228515625, -0.0140533447265625, 0.000042378902435302734, 0.0134124755859375, -0.056060791015625, 0.01276397705078125, 0.01070404052734375, 0.069091796875, 0.036224365234375, 0.0171661376953125, -0.02301025390625, -0.032012939453125, -0.0174713134765625, 0.00455474853515625, -0.042938232421875, 0.022674560546875, -0.0251617431640625, -0.03192138671875, 0.00025081634521484375, -0.02001953125, -0.01328277587890625, 0.01580810546875, -0.040802001953125, 0.00356292724609375, 0.021087646484375, 0.007190704345703125, 0.02252197265625, 0.022491455078125, -0.015838623046875, -0.020538330078125, 0.006969451904296875, 0.009613037109375, -0.0113983154296875, 0.0293426513671875, -0.03228759765625, -0.007450103759765625, -0.0284881591796875, -0.019866943359375, -0.025115966796875, -0.016265869140625, 0.00902557373046875, -0.01549530029296875, -0.041168212890625, -0.0143890380859375, 0.06268310546875, 0.07080078125, 0.005977630615234375, -0.006072998046875, -0.001399993896484375, -0.056121826171875, 0.0024433135986328125, -0.0212860107421875, -0.006237030029296875, 0.06085205078125, 0.0094757080078125, -0.0262451171875, -0.0164947509765625, 0.0140533447265625, 0.0169677734375, -0.05511474609375, -0.018341064453125, -0.0193328857421875, 0.001880645751953125, 0.00820159912109375, -0.052032470703125, 0.01525115966796875, 0.0015249252319335938, -0.0008478164672851562, -0.0037899017333984375, -0.0034732818603515625, 0.054840087890625, -0.0268402099609375, -0.0061798095703125, -0.0333251953125, -0.034027099609375, -0.0280609130859375, 0.00788116455078125, -0.01251983642578125, -0.016326904296875, 0.0311737060546875, 0.0108642578125, 0.0011701583862304688, -0.01708984375, -0.0011835098266601562, 0.067138671875, 0.01229095458984375, 0.0169525146484375, 0.0216064453125, -0.015625, -0.0684814453125, -0.0406494140625, 0.0090789794921875, 0.0455322265625, 0.071044921875, 0.0108795166015625, -0.03167724609375, 0.0015153884887695312, -0.057769775390625, 0.0044708251953125, -0.056060791015625, 0.00521087646484375, 0.00745391845703125, 0.0374755859375, 0.004238128662109375, 0.03106689453125, -0.01068878173828125, -0.0006785392761230469, 0.0032901763916015625, 0.035125732421875, 0.00559234619140625, 0.005657196044921875, -0.02789306640625, -0.034881591796875, -0.0200958251953125, -0.046356201171875, -0.00527191162109375, 0.03704833984375, 0.015533447265625, 0.0236968994140625, -0.0191192626953125, -0.00843048095703125, -0.004467010498046875, -0.000850677490234375, 0.00737762451171875, 0.0196990966796875, 0.0233917236328125, 0.01390838623046875, 0.01092529296875, -0.005237579345703125, -0.02178955078125, 0.0938720703125, -0.0290985107421875, -0.0579833984375, 0.07000732421875, -0.0028228759765625, 0.04901123046875, 0.0227508544921875, -0.006496429443359375, 0.0316162109375, 0.0247344970703125, -0.0239105224609375, 0.0286865234375, -0.0083160400390625, -0.024993896484375, 0.04632568359375, 0.0021991729736328125, 0.005443572998046875, -0.01395416259765625, 0.019134521484375, 0.003978729248046875, 0.0085601806640625, -0.0115814208984375, -0.018035888671875, 0.012176513671875, -0.008453369140625, 0.0214080810546875, 0.0321044921875, 0.0230712890625, -0.01360321044921875, -0.01922607421875, 0.0031147003173828125, -0.0283966064453125, -0.01514434814453125, 0.0361328125, -0.0125732421875, 0.046875, 0.035491943359375, 0.01251220703125, 0.033111572265625, -0.0146484375, 0.0259552001953125, -0.056396484375, 0.0163421630859375, -0.0226287841796875, -0.020751953125, -0.01971435546875, -0.0181884765625, -0.0016937255859375, -0.033050537109375, 0.05517578125, -0.0124359130859375, -0.032623291015625, -0.042999267578125, 0.02734375, 0.003734588623046875, -0.0250244140625, -0.0017986297607421875, 0.0300750732421875, -0.0012464523315429688, 0.038299560546875, 0.0093231201171875, 0.06781005859375, 0.0107879638671875, -0.005023956298828125, 0.0304107666015625, 0.0290374755859375, 0.0280609130859375, 0.061859130859375, -0.0244140625, -0.01042938232421875, 0.01488494873046875, -0.007480621337890625, -0.0132598876953125, 0.0372314453125, -0.019073486328125, -0.0479736328125, 0.043731689453125, -0.041046142578125, 0.0223388671875, -0.08489990234375, -0.06011962890625, -0.03082275390625, -0.045074462890625, -0.002109527587890625, -0.017425537109375, -0.007686614990234375, 0.00730133056640625, -0.0286102294921875, 0.029266357421875, -0.024688720703125, -0.007808685302734375, -0.01971435546875, 0.01467132568359375, -0.026458740234375, -0.035430908203125, 0.017974853515625, 0.0162811279296875, -0.0233612060546875, -0.0283355712890625, -0.0377197265625, -0.0269012451171875, -0.0185394287109375, 0.02734375, -0.044677734375, 0.00690460205078125, -0.01329803466796875, -0.020477294921875, -0.0277862548828125, 0.02197265625, 0.00997161865234375, -0.01213836669921875, 0.0185546875, -0.015777587890625, -0.0297393798828125, 0.0276336669921875, -0.0239715576171875, 0.033538818359375, -0.034698486328125, 0.05010986328125, 0.0648193359375, -0.031707763671875, 0.0272674560546875, -0.01031494140625, 0.004772186279296875, -0.015106201171875, -0.01026153564453125, -0.01331329345703125, -0.0467529296875, -0.005046844482421875, 0.02691650390625, 0.01514434814453125, 0.02130126953125, -0.005016326904296875, -0.038818359375, -0.00431060791015625, -0.005096435546875, -0.06134033203125, -0.038543701171875, -0.095947265625, -0.07781982421875, 0.038909912109375, 0.0137481689453125, -0.01343536376953125, -0.0047607421875, 0.034423828125, 0.04791259765625, -0.01971435546875, -0.00925445556640625, -0.04296875, -0.04888916015625, -0.039459228515625, -0.010223388671875, -0.0225067138671875, -0.01708984375, 0.01116180419921875, -0.035919189453125, -0.0013914108276367188, -0.004222869873046875, 0.0206756591796875, 0.029998779296875, 0.00495147705078125, -0.041839599609375, -0.07049560546875, 0.003864288330078125, -0.01412200927734375, 0.00431060791015625, 0.06646728515625, -0.0367431640625, 0.04119873046875, -0.0018863677978515625, 0.02886962890625, -0.030609130859375, 0.0236968994140625, -0.032562255859375, -0.05999755859375, -0.0203704833984375, -0.01165771484375, -0.0635986328125, 0.0255584716796875, -0.003589630126953125, -0.049468994140625, -0.0848388671875, 0.04669189453125, -0.01751708984375, -0.018157958984375, -0.0914306640625, 0.03961181640625, 0.01102447509765625, -0.010528564453125, 0.00913238525390625, 0.0222320556640625, 0.0005831718444824219, 0.0311737060546875, -0.036651611328125, 0.0145263671875, -0.01025390625, -0.023345947265625, -0.020233154296875, 0.00931549072265625, -0.0298919677734375, 0.0262908935546875, -0.0654296875, -0.0753173828125, 0.04296875, -0.0222625732421875, -0.037261962890625, -0.0113983154296875, -0.019561767578125, 0.0181884765625, 0.084716796875, -0.0234527587890625, 0.001285552978515625, 0.0184173583984375, 0.007251739501953125, -0.049713134765625, -0.00891876220703125, -0.08026123046875, -0.0032024383544921875, -0.09954833984375, 0.004852294921875, 0.0007729530334472656, -0.0296630859375, -0.0238800048828125, -0.01348114013671875, -0.06561279296875, -0.039398193359375, 0.0307769775390625, -0.0139923095703125, 0.00452423095703125, 0.00337982177734375, -0.018768310546875, -0.0335693359375, -0.00705718994140625, -0.021453857421875, -0.032501220703125, -0.010223388671875, -0.0005221366882324219, 0.0279083251953125, 0.01629638671875, -0.00246429443359375, 0.01526641845703125, 0.049041748046875, 0.0273284912109375, 0.0287017822265625, 0.00705718994140625, 0.006275177001953125, 0.043060302734375, -0.041656494140625, -0.0136260986328125, -0.020965576171875, 0.01143646240234375, -0.01091766357421875, -0.0093231201171875, 0.007167816162109375, -0.0546875, 0.00482940673828125, -0.00983428955078125, -0.0264129638671875, -0.0423583984375, -0.0004050731658935547, 0.00518035888671875, 0.057159423828125, -0.020111083984375, -0.0006055831909179688, -0.0289154052734375, -0.058685302734375, 0.012603759765625, -0.042083740234375, -0.003749847412109375, -0.0013360977172851562, 0.0281829833984375, 0.023223876953125, 0.0011768341064453125, 0.06671142578125, 0.0222625732421875, 0.032806396484375, 0.03167724609375, 0.014068603515625, -0.01458740234375, -0.02130126953125, 0.0335693359375, 0.0011091232299804688, 0.0113372802734375, -0.00557708740234375, 0.05206298828125, -0.00995635986328125, -0.0254974365234375, 0.027191162109375, -0.0269775390625, -0.00335693359375, 0.0328369140625, 0.00765228271484375, -0.02081298828125, -0.003971099853515625, 0.03875732421875, 0.00357818603515625, -0.007274627685546875, -0.031494140625, -0.01029205322265625, 0.00936126708984375, -0.01351165771484375, -0.004711151123046875, -0.0042572021484375, 0.004947662353515625, -0.0316162109375, -0.0036106109619140625, 0.00033855438232421875, -0.01486968994140625, -0.06121826171875, 0.006923675537109375, 0.03375244140625, -0.0350341796875, -0.00035452842712402344, 0.017822265625, 0.0025787353515625, 0.0278778076171875, 0.0129852294921875, -0.049560546875, 0.016693115234375, -0.016876220703125, -0.02056884765625, 0.00249481201171875, 0.0132598876953125, 0.05645751953125, 0.036529541015625, -0.0072784423828125, -0.01325225830078125, 0.008819580078125, -0.0005102157592773438, -0.05743408203125, 0.0203094482421875, 0.00897216796875, -0.007389068603515625, 0.0120086669921875, 0.08697509765625, 0.0301971435546875, 0.03863525390625, -0.0271759033203125, 0.0285186767578125, 0.04534912109375, -0.0126190185546875, 0.0153961181640625, 0.009674072265625, -0.01140594482421875, -0.0299072265625, 0.0192718505859375, -0.03387451171875, 0.0433349609375, 0.0305023193359375, 0.0196380615234375, 0.06829833984375, -0.0147857666015625, 0.00260162353515625, -0.00673675537109375, -0.0106201171875, 0.0273590087890625, -0.020751953125, -0.046142578125, -0.028961181640625, -0.0033206939697265625, 0.0162353515625, -0.0175933837890625, -0.006092071533203125, -0.0176544189453125, -0.004039764404296875, 0.0177001953125, -0.00310516357421875, -0.025054931640625, 0.02227783203125, 0.0186920166015625, -0.035247802734375, -0.0174713134765625, 0.0052490234375, 0.04205322265625, 0.0364990234375, -0.0262451171875, -0.06536865234375, 0.07415771484375, -0.0223388671875, -0.00754547119140625, -0.06097412109375, 0.0511474609375, -0.074951171875, -0.0098876953125, 0.06494140625, 0.01953125, -0.0469970703125, 0.010711669921875, -0.034912109375, -0.0063018798828125, 0.0221710205078125, -0.0408935546875, -0.0007886886596679688, -0.017852783203125, 0.026580810546875, 0.0244598388671875, -0.015228271484375, -0.05938720703125, 0.0005521774291992188, 0.0084991455078125, 0.03271484375, 0.028778076171875, 0.0186767578125, 0.0242767333984375, -0.0271148681640625, 0.03277587890625, 0.0302581787109375, 0.021240234375, -0.00849151611328125, -0.036529541015625, 0.002109527587890625, -0.01061248779296875, -0.023834228515625, -0.0196990966796875, -0.01552581787109375, 0.01428985595703125, 0.061920166015625, -0.009521484375, -0.01383209228515625, 0.03717041015625, 0.01033782958984375, -0.023284912109375, -0.033355712890625, 0.05963134765625, 0.038177490234375, -0.0297393798828125, -0.031707763671875, -0.0154266357421875, -0.0019216537475585938, 0.0343017578125, -0.02593994140625, -0.0293121337890625, -0.0322265625, 0.029510498046875, -0.04351806640625, 0.016082763671875, 0.031463623046875, 0.01197052001953125, 0.0209808349609375, 0.00014579296112060547, 0.00405120849609375, -0.002193450927734375, -0.00791168212890625, -0.017791748046875, 0.0255279541015625, 0.0272369384765625, -0.0084686279296875, -0.00023925304412841797, 0.0115203857421875, -0.0096435546875, -0.016082763671875, 0.040191650390625, 0.0258636474609375, -0.08123779296875, 0.002971649169921875, -0.017303466796875, 0.00740814208984375, 0.0221099853515625, -0.0011796951293945312, -0.00992584228515625, -0.0020771026611328125, 0.0305938720703125, -0.0166168212890625, -0.012939453125, 0.0247344970703125, 0.018402099609375, -0.01611328125, -0.0135498046875, 0.0294647216796875, 0.016815185546875, -0.0249176025390625, 0.022186279296875, -0.005657196044921875, 0.0197906494140625, -0.045196533203125, -0.004756927490234375, 0.0242919921875, -0.004276275634765625, -0.04901123046875, 0.039459228515625, -0.02105712890625, 0.0284423828125, -0.00015223026275634766, -0.01549530029296875, 0.06695556640625, 0.036712646484375, 0.01181793212890625, -0.02630615234375, 0.006072998046875, -0.0133209228515625, -0.018218994140625, -0.029266357421875, -0.01355743408203125, -0.0419921875, -0.0211334228515625, 0.015625, -0.031707763671875, -0.040863037109375, -0.01157379150390625, -0.0301666259765625, 0.06170654296875, -0.02716064453125, -0.0158843994140625, 0.01094818115234375, 0.0030918121337890625, 0.0057373046875, -0.01473236083984375, 0.03155517578125, -0.0389404296875, -0.029022216796875, -0.0047454833984375, -0.01157379150390625, 0.0083770751953125, -0.021453857421875, -0.0210723876953125, 0.057281494140625, -0.0288543701171875, -0.0073699951171875, 0.0220947265625, 0.029571533203125, -0.00034999847412109375, 0.0245513916015625, -0.042724609375, 0.0899658203125, 0.0100860595703125, 0.06494140625, -0.052215576171875, 0.0008549690246582031, 0.02130126953125, 0.01221466064453125, 0.086669921875, 0.0316162109375, -0.041412353515625, -0.00360870361328125, 0.022979736328125, -0.00763702392578125, -0.04229736328125, 0.06060791015625, -0.0167999267578125, 0.00800323486328125, 0.024200439453125, -0.06024169921875, 0.02032470703125, -0.045501708984375, 0.0014657974243164062, -0.029754638671875, -0.01012420654296875, -0.01629638671875, -0.026275634765625, 0.023468017578125, -0.01641845703125, -0.0187225341796875, 0.0081787109375, -0.015594482421875, -0.00811767578125, 0.025909423828125, -0.01025390625, 0.0194091796875, 0.053802490234375, -0.030242919921875, 0.0430908203125, -0.0172119140625, 0.006992340087890625, 0.03955078125, 0.010284423828125, 0.0467529296875, 0.0213775634765625, 0.01371002197265625, 0.03082275390625, 0.006473541259765625, 0.0797119140625, 0.032684326171875, 0.01117706298828125, -0.04864501953125, -0.0095672607421875, 0.025115966796875, 0.095458984375, -0.0565185546875, -0.00970458984375, 0.01233673095703125, 0.040435791015625, 0.03668212890625, 0.0106201171875, 0.0909423828125, -0.054931640625, -0.038848876953125, -0.01421356201171875, 0.0034542083740234375, 0.034576416015625, -0.00027561187744140625, 0.0008006095886230469, -0.0226287841796875, -0.017486572265625, 0.0197601318359375, -0.0248565673828125, -0.0008258819580078125, 0.0239105224609375, -0.019927978515625, -0.01084136962890625, 0.0252227783203125, 0.107666015625, 0.0243988037109375, -0.002567291259765625, 0.058319091796875, 0.04498291015625, -0.01263427734375, -0.03558349609375, -0.05487060546875, 0.053497314453125, 0.0298614501953125, 0.01123809814453125, -0.0200958251953125, 0.033233642578125, 0.03759765625, -0.0237274169921875, -0.0216522216796875, 0.0201873779296875, -0.01123809814453125, 0.04443359375, -0.04840087890625, 0.02008056640625, -0.01318359375, -0.0158233642578125, -0.012786865234375, -0.035125732421875, 0.040985107421875, 0.017059326171875, 0.0458984375, 0.007747650146484375, 0.0017881393432617188, -0.00931549072265625, 0.0037097930908203125, 0.01338958740234375, 0.039794921875, -0.08892822265625, -0.030120849609375, -0.043914794921875, -0.031585693359375, 0.0404052734375, 0.04522705078125, -0.010833740234375, 0.00983428955078125, -0.016082763671875, 0.01010894775390625, 0.054595947265625, -0.04217529296875, -0.0168914794921875, 0.0343017578125, 0.0272064208984375, 0.01202392578125, -0.00644683837890625, 0.025054931640625, 0.026153564453125, -0.0197906494140625, -0.00992584228515625, 0.0276031494140625, 0.00933074951171875, 0.002246856689453125, -0.06048583984375, 0.00893402099609375, -0.0130615234375, -0.0301055908203125, 0.00217437744140625, 0.04925537109375, 0.0106048583984375, -0.0093841552734375, -0.0799560546875, 0.058837890625, 0.0114593505859375, 0.0411376953125, 0.062286376953125, 0.0143585205078125, -0.0015869140625, 0.0002906322479248047, -0.01323699951171875, -0.039764404296875, -0.07861328125, -0.06683349609375, 0.0174102783203125, 0.0090789794921875, 0.035308837890625, -0.040740966796875, 0.006191253662109375, 0.0015106201171875, -0.0257415771484375, 0.0006804466247558594, -0.011016845703125, -0.0248565673828125, 0.0210113525390625, -0.00469970703125, 0.01568603515625, 0.003925323486328125, -0.0181121826171875, 0.0169219970703125, 0.0003769397735595703, -0.0225830078125, 0.026702880859375, -0.0245361328125, -0.02081298828125, -0.031463623046875, -0.01114654541015625, 0.0027637481689453125, -0.0245819091796875, 0.0000362396240234375, -0.0255126953125, -0.04132080078125, -0.087890625, -0.042999267578125, -0.055389404296875, 0.021759033203125, 0.044219970703125, -0.006565093994140625, 0.0229339599609375, -0.033599853515625, -0.0035915374755859375, 0.03240966796875, -0.0014667510986328125, -0.03271484375, -0.0008502006530761719, -0.002857208251953125, 0.04278564453125, -0.0091705322265625, -0.0201416015625, 0.0126495361328125, 0.002376556396484375, -0.03997802734375, 0.0124359130859375, -0.0252685546875, -0.006359100341796875, -0.0125885009765625, -0.03033447265625, 0.026763916015625, 0.00423431396484375, -0.05865478515625, -0.05145263671875, -0.05194091796875, -0.0029296875, -0.0179901123046875, -0.032928466796875, -0.00884246826171875, -0.00389862060546875, 0.0251617431640625, -0.006938934326171875, -0.0027446746826171875, -0.0030803680419921875, -0.02935791015625, -0.027374267578125, 0.006687164306640625, 0.002902984619140625, -0.047637939453125, -0.07159423828125, 0.08935546875, -0.02862548828125, -0.0232391357421875, -0.0484619140625, 0.03778076171875, 0.0254058837890625, -0.05322265625, -0.00897979736328125, -0.0038967132568359375, -0.004405975341796875, 0.012939453125, 0.0163116455078125, 0.050811767578125, -0.01263427734375, 0.058502197265625, -0.0009965896606445312, 0.0290679931640625, -0.01084136962890625, -0.018829345703125, -0.018402099609375, 0.0151214599609375, 0.012359619140625, 0.046417236328125, -0.01113128662109375, -0.0015306472778320312, 0.0028820037841796875, -0.0079498291015625, -0.02203369140625, -0.08184814453125, 0.0153961181640625, -0.034942626953125, 0.0178985595703125, 0.0020008087158203125, -0.0094451904296875, -0.0165557861328125, -0.053466796875, -0.01335906982421875, 0.052001953125, -0.01393890380859375, -0.01194000244140625, -0.0679931640625, -0.032470703125, 0.0037021636962890625, -0.02996826171875, 0.01378631591796875, -0.0123291015625, -0.049896240234375, 0.0196685791015625, -0.0110931396484375, -0.0017480850219726562, -0.04559326171875, -0.052093505859375, -0.00580596923828125, -0.002170562744140625, -0.026702880859375, -0.0096435546875, 0.04193115234375, -0.05145263671875, 1.1920928955078125e-7, 0.044189453125, 0.04730224609375, -0.0243988037109375, -0.0189361572265625, 0.03216552734375, 0.0094757080078125, -0.01457977294921875, -0.023956298828125, -0.0012502670288085938, 0.05487060546875, -0.004589080810546875, 0.06207275390625, 0.01155853271484375, 0.032958984375, 0.023712158203125, 0.0035915374755859375, 0.0173492431640625, 0.01080322265625, 0.00257110595703125, 0.043548583984375, -0.023681640625, -0.02734375, 0.00998687744140625, -0.051971435546875, -0.003726959228515625, 0.014373779296875, 0.054107666015625, -0.037445068359375, 0.0399169921875, -0.0071563720703125, 0.044158935546875, 0.01080322265625 ]
849bfe637c7c584fd96e5bd0ccc674ca2fd36d99
Wordpress Stackexchange Q: Count user posts by type and date I use the following code to count user posts by specific post type: function count_user_posts_by_type( $userid, $post_type ) { global $wpdb; $where = get_posts_by_author_sql( $post_type, TRUE, $userid ); $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); return apply_filters( 'get_usernumposts', $count, $userid ); } // Echo Count echo count_user_posts_by_type( $user_ID, 'reports' ); Looking for an elegant solution to limit posts by dates. For example, last week\month posts. A: The elegant way to get posts out of the database is to use wp_query. It has all the filters you need: function wpse70323_count_user_posts_by_type( $userid, $post_type, $year, $month, $day ) { $query = new WP_Query( array( 'author' => $userid, 'post_type' => $post_type, 'date_query' => array( array( 'year' => $year, 'month' => $month, 'day' => $day, ), ), 'posts_per_page' => -1, )); $count = $query->post_count; return $count; } It's also possible to return ranges of dates, depending on your needs. Read the documentation on wp_query for that.
Q: Count user posts by type and date I use the following code to count user posts by specific post type: function count_user_posts_by_type( $userid, $post_type ) { global $wpdb; $where = get_posts_by_author_sql( $post_type, TRUE, $userid ); $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); return apply_filters( 'get_usernumposts', $count, $userid ); } // Echo Count echo count_user_posts_by_type( $user_ID, 'reports' ); Looking for an elegant solution to limit posts by dates. For example, last week\month posts. A: The elegant way to get posts out of the database is to use wp_query. It has all the filters you need: function wpse70323_count_user_posts_by_type( $userid, $post_type, $year, $month, $day ) { $query = new WP_Query( array( 'author' => $userid, 'post_type' => $post_type, 'date_query' => array( array( 'year' => $year, 'month' => $month, 'day' => $day, ), ), 'posts_per_page' => -1, )); $count = $query->post_count; return $count; } It's also possible to return ranges of dates, depending on your needs. Read the documentation on wp_query for that.
wordpress
{ "language": "en", "length": 161, "provenance": "stackexchange_00019.jsonl.gz:425133", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70323" }
[ 0.105224609375, -0.004123687744140625, -0.00823211669921875, -0.051849365234375, 0.0286712646484375, -0.06085205078125, 0.06878662109375, -0.00724029541015625, 0.01520538330078125, 0.01556396484375, -0.0158843994140625, -0.0120391845703125, -0.02130126953125, -0.0293731689453125, -0.032196044921875, -0.026580810546875, 0.034423828125, -0.038848876953125, 0.0031681060791015625, -0.02569580078125, 0.01058197021484375, 0.0136871337890625, 0.0154571533203125, 0.04248046875, 0.002590179443359375, 0.002872467041015625, 0.0645751953125, -0.0277557373046875, 0.02935791015625, -0.007785797119140625, 0.016326904296875, -0.0204010009765625, -0.00855255126953125, 0.010711669921875, 0.022796630859375, 0.05145263671875, -0.00836181640625, 0.0185089111328125, 0.0343017578125, 0.01004791259765625, -0.00006628036499023438, 0.00839996337890625, -0.01058197021484375, -0.014251708984375, -0.0133209228515625, -0.05242919921875, 0.04473876953125, -0.0225677490234375, 0.0267333984375, -0.0260772705078125, -0.004291534423828125, 0.0247802734375, 0.024261474609375, -0.0203094482421875, -0.0202178955078125, 0.01406097412109375, 0.025054931640625, -0.0377197265625, 0.06805419921875, -0.0552978515625, -0.05804443359375, -0.06585693359375, 0.0631103515625, -0.0184326171875, -0.00341796875, -0.005626678466796875, 0.01080322265625, 0.0203704833984375, -0.00731658935546875, -0.0159149169921875, 0.0020751953125, 0.0100555419921875, -0.0197296142578125, -0.007732391357421875, 0.017181396484375, -0.027587890625, -0.01294708251953125, -0.0231781005859375, 0.024017333984375, 0.0533447265625, -0.01537322998046875, 0.015533447265625, -0.05596923828125, 0.0275115966796875, -0.040863037109375, 0.01373291015625, -0.0271148681640625, -0.01389312744140625, -0.041534423828125, -0.031463623046875, -0.0127105712890625, -0.01287078857421875, -0.05242919921875, -0.0083770751953125, 0.01287078857421875, -0.03582763671875, 0.0174102783203125, 0.047821044921875, -0.043792724609375, -0.05859375, 0.0028743743896484375, -0.00344085693359375, -0.09149169921875, 0.01447296142578125, 0.04022216796875, 0.06964111328125, 0.0014667510986328125, 0.04052734375, 0.0797119140625, 0.01235198974609375, 0.03759765625, 0.056304931640625, -0.04595947265625, -0.012969970703125, -0.040496826171875, 0.034271240234375, -0.055755615234375, -0.0240020751953125, -0.00821685791015625, -0.003208160400390625, -0.005218505859375, -0.0019464492797851562, -0.013458251953125, -0.00872039794921875, 0.029296875, -0.0172882080078125, -0.03216552734375, 0.0172882080078125, 0.0131378173828125, 0.06219482421875, -0.0244293212890625, -0.018280029296875, 0.0113983154296875, 0.005245208740234375, -0.01100921630859375, -0.035614013671875, 0.037994384765625, -0.055999755859375, -0.03717041015625, 0.027679443359375, -0.000873565673828125, -0.06109619140625, -0.036865234375, -0.01751708984375, 0.0196533203125, 0.0177001953125, 0.02496337890625, 0.01103973388671875, 0.01087188720703125, -0.0309295654296875, -0.00701141357421875, -0.002353668212890625, 0.006214141845703125, 0.014129638671875, -0.01397705078125, 0.007297515869140625, -0.021759033203125, -0.006404876708984375, -0.00951385498046875, -0.004642486572265625, 0.06365966796875, -0.0050048828125, -0.06292724609375, 0.0096588134765625, -0.048309326171875, 0.018890380859375, -0.0007834434509277344, -0.0036563873291015625, 0.020660400390625, -0.019989013671875, 0.0205841064453125, -0.027313232421875, 0.027618408203125, -0.0106048583984375, -0.0182647705078125, 0.03265380859375, -0.0230560302734375, -0.002468109130859375, 0.0161285400390625, 0.0250091552734375, -0.014251708984375, -0.03656005859375, 0.0220794677734375, 0.011077880859375, -0.025634765625, 0.00279998779296875, 0.017120361328125, -0.011749267578125, 0.003757476806640625, -0.003978729248046875, 0.042999267578125, 0.058074951171875, -0.005260467529296875, -0.01316070556640625, -0.0080108642578125, -0.03363037109375, -0.0205230712890625, -0.017730712890625, -0.0198974609375, 0.045196533203125, 0.039398193359375, 0.01435089111328125, -0.004436492919921875, -0.01389312744140625, -0.058135986328125, 0.0020294189453125, -0.0146331787109375, 0.0243377685546875, 0.005100250244140625, 0.055908203125, 0.040435791015625, 0.054107666015625, -0.06842041015625, -0.0068817138671875, -0.00783538818359375, 0.022369384765625, 0.0286712646484375, 0.006988525390625, -0.010772705078125, 0.0067901611328125, -0.0186767578125, -0.012847900390625, -0.0205535888671875, 0.056365966796875, 0.0513916015625, -0.03271484375, 0.00243377685546875, -0.0301513671875, 0.027984619140625, 0.01433563232421875, -0.04486083984375, 0.027069091796875, 0.0286102294921875, 0.0283050537109375, -0.037445068359375, -0.009735107421875, -0.02374267578125, -0.0269927978515625, -0.00010734796524047852, 0.047576904296875, 0.03216552734375, 0.00417327880859375, 0.028778076171875, 0.005481719970703125, 0.04217529296875, -0.0078125, 0.03985595703125, -0.0202484130859375, -0.0045318603515625, 0.0178985595703125, 0.04205322265625, 0.01678466796875, 0.0206756591796875, -0.002452850341796875, 0.0245361328125, 0.04461669921875, 0.00357818603515625, 0.0197906494140625, -0.0194549560546875, 0.004337310791015625, 0.004306793212890625, -0.0197296142578125, -0.03118896484375, -0.0084075927734375, 0.00984954833984375, -0.040557861328125, 0.0345458984375, 0.02008056640625, -0.0009112358093261719, -0.044464111328125, 0.01212310791015625, 0.0035152435302734375, 0.00786590576171875, -0.0188751220703125, -0.046875, 0.033355712890625, -0.048126220703125, 0.0335693359375, 0.027587890625, -0.0145263671875, -0.0167083740234375, 0.0106658935546875, 0.01168060302734375, -0.00661468505859375, 0.01552581787109375, -0.035675048828125, 0.0231781005859375, 0.003307342529296875, -0.0211639404296875, -0.0137786865234375, 0.0216064453125, 0.023040771484375, -0.0308685302734375, 0.03253173828125, -0.0050811767578125, -0.0166473388671875, 0.00360870361328125, -0.06866455078125, 0.04840087890625, -0.07183837890625, 0.033782958984375, 0.046234130859375, -0.03643798828125, 0.0143585205078125, 0.0070648193359375, -0.0138397216796875, 0.0125579833984375, 0.0177001953125, -0.0019378662109375, -0.036834716796875, -0.03564453125, 0.0175018310546875, 0.01849365234375, 0.045379638671875, -0.013824462890625, -0.0298004150390625, -0.00809478759765625, 0.0014867782592773438, -0.053253173828125, -0.0740966796875, -0.0171356201171875, -0.07891845703125, 0.003986358642578125, -0.02996826171875, -0.040313720703125, 0.01053619384765625, -0.01488494873046875, 0.0078887939453125, -0.046234130859375, -0.011566162109375, -0.027587890625, -0.060211181640625, -0.036163330078125, 0.0198516845703125, 0.001689910888671875, 0.0215301513671875, -0.0053558349609375, 0.0745849609375, -0.002422332763671875, -0.0814208984375, -0.047332763671875, 0.036529541015625, -0.03094482421875, -0.0229339599609375, 0.021728515625, 0.00617218017578125, -0.0007348060607910156, 0.003444671630859375, -0.0138397216796875, 0.0223388671875, -0.02532958984375, -0.01247406005859375, 0.0261993408203125, -0.0160369873046875, 0.033233642578125, 0.021087646484375, -0.035888671875, 0.022918701171875, 0.03204345703125, -0.037750244140625, -0.016693115234375, -0.009185791015625, -0.061676025390625, -0.01427459716796875, 0.008453369140625, 0.015350341796875, 0.00799560546875, -0.0252532958984375, 0.05322265625, 0.0204925537109375, -0.0031604766845703125, -0.022979736328125, 0.054595947265625, 0.04241943359375, 0.057098388671875, -0.0330810546875, -0.0382080078125, -0.034393310546875, 0.03997802734375, -0.023162841796875, 0.01702880859375, -0.003673553466796875, 0.031585693359375, -0.0246734619140625, -0.07086181640625, 0.055877685546875, 0.01212310791015625, -0.017730712890625, -0.035675048828125, -0.03375244140625, 0.0027332305908203125, 0.0689697265625, -0.005489349365234375, -0.02691650390625, -0.0244598388671875, 0.0028209686279296875, 0.0011568069458007812, -0.0216827392578125, -0.005252838134765625, -0.005847930908203125, -0.047088623046875, -0.018035888671875, -0.00991058349609375, -0.0178680419921875, -0.02239990234375, 0.00458526611328125, -0.033172607421875, -0.022796630859375, 0.0380859375, -0.01131439208984375, 0.00789642333984375, 0.0196533203125, -0.01201629638671875, 0.002567291259765625, -0.032928466796875, -0.020538330078125, -0.044036865234375, -0.0282135009765625, 0.0224151611328125, 0.032073974609375, -0.00579071044921875, -0.024261474609375, -0.01300811767578125, 0.0296478271484375, 0.024261474609375, 0.00475311279296875, 0.01971435546875, -0.0016384124755859375, 0.006732940673828125, 0.007625579833984375, 0.013946533203125, -0.0133514404296875, -0.0201568603515625, -0.0382080078125, 0.0207061767578125, 0.034210205078125, -0.0298614501953125, 0.032318115234375, -0.044708251953125, 0.0162506103515625, 0.0271453857421875, 0.0005216598510742188, -0.032196044921875, 0.02825927734375, -0.038665771484375, 0.0031337738037109375, -0.01885986328125, -0.0292816162109375, 0.044586181640625, 0.0294189453125, -0.01483917236328125, -0.0032405853271484375, 0.08258056640625, 0.015106201171875, -0.031585693359375, -0.046112060546875, 0.0032711029052734375, 0.03887939453125, -0.006256103515625, 0.039031982421875, 0.0158843994140625, -0.0355224609375, 0.0615234375, 0.005458831787109375, -0.0225830078125, -0.055084228515625, 0.060821533203125, -0.00009804964065551758, -0.00728607177734375, 0.0098724365234375, -0.043670654296875, 0.0518798828125, 0.0194854736328125, -0.01230621337890625, -0.0276641845703125, 0.002044677734375, 0.063232421875, -0.00926971435546875, 0.01024627685546875, -0.03753662109375, -0.026763916015625, 0.0181427001953125, -0.0233917236328125, 0.0006670951843261719, -0.0092620849609375, 0.0021648406982421875, -0.01580810546875, 0.00006663799285888672, 0.02020263671875, 0.0212554931640625, 0.021636962890625, 0.0021343231201171875, 0.057586669921875, 0.01751708984375, 0.0276031494140625, -0.0013303756713867188, -0.002277374267578125, 0.0308990478515625, 0.01483917236328125, -0.0269622802734375, 0.02288818359375, -0.023590087890625, -0.01271820068359375, 0.00356292724609375, -0.036834716796875, 0.0357666015625, 0.0223541259765625, -0.017791748046875, 0.00370025634765625, -0.038818359375, -0.0270843505859375, -0.047882080078125, 0.0256195068359375, -0.004718780517578125, 0.006214141845703125, 0.045623779296875, 0.04083251953125, 0.0008187294006347656, 0.049285888671875, -0.0162506103515625, 0.06719970703125, 0.04754638671875, 0.043975830078125, 0.03192138671875, -0.0251922607421875, -0.058929443359375, 0.047637939453125, -0.06854248046875, -0.0215301513671875, -0.0237884521484375, 0.0186614990234375, -0.006656646728515625, 0.0189208984375, 0.0274810791015625, 0.004177093505859375, 0.030609130859375, -0.01543426513671875, -0.01519012451171875, 0.00876617431640625, 0.0159912109375, -0.0010776519775390625, 0.0094451904296875, 0.01033782958984375, 0.025177001953125, 0.003963470458984375, -0.006908416748046875, -0.0124664306640625, 0.031585693359375, -0.00797271728515625, 0.0161590576171875, -0.019439697265625, -0.021209716796875, -0.037017822265625, -0.009033203125, 0.012420654296875, 0.003780364990234375, -0.01103973388671875, -0.01226043701171875, -0.019775390625, 0.032745361328125, -0.0284576416015625, 0.06805419921875, -0.0562744140625, 0.0009336471557617188, -0.03363037109375, -0.01031494140625, 0.0673828125, 0.06463623046875, -0.0108184814453125, -0.01514434814453125, -0.03997802734375, -0.0252532958984375, -0.010650634765625, 0.005126953125, -0.050384521484375, 0.01071929931640625, 0.0174713134765625, 0.0163726806640625, -0.01824951171875, -0.0540771484375, -0.0109710693359375, -0.003383636474609375, 0.0214691162109375, -0.004131317138671875, -0.003143310546875, 0.0848388671875, -0.006671905517578125, 0.065673828125, 0.0259246826171875, 0.043182373046875, -0.01959228515625, -0.03240966796875, 0.02117919921875, -0.0118255615234375, -0.0338134765625, -0.0203704833984375, -0.020263671875, -0.057708740234375, -0.01000213623046875, -0.0242156982421875, 0.0034694671630859375, -0.01264190673828125, -0.01080322265625, -0.01959228515625, 0.0030517578125, 0.007434844970703125, 0.037017822265625, -0.0165252685546875, 0.0171051025390625, 0.00809478759765625, -0.026611328125, 0.00667572021484375, -0.0275421142578125, 0.005893707275390625, -0.01120758056640625, -0.0237274169921875, -0.0124359130859375, 0.0614013671875, 0.057647705078125, -0.0014295578002929688, 0.0406494140625, 0.014190673828125, 0.0193939208984375, 0.01161956787109375, -0.01385498046875, -0.023406982421875, 0.01561737060546875, 0.062744140625, -0.0005898475646972656, -0.0112457275390625, 0.052490234375, -0.023773193359375, 0.00980377197265625, 0.041351318359375, 0.042510986328125, -0.0526123046875, 0.0008401870727539062, -0.0008034706115722656, -0.01517486572265625, 0.0256805419921875, -0.030609130859375, 0.00415802001953125, -0.0133209228515625, 0.08734130859375, -0.00901031494140625, -0.0207061767578125, 0.0294342041015625, -0.02325439453125, 0.005096435546875, 0.00682830810546875, 0.059906005859375, 0.00563812255859375, -0.0058746337890625, -0.0240325927734375, -0.0010442733764648438, 0.01264190673828125, -0.04638671875, 0.01203155517578125, -0.0285491943359375, 0.0406494140625, -0.07122802734375, -0.001377105712890625, -0.050323486328125, 0.0292510986328125, -0.0099945068359375, -0.00478363037109375, 0.0733642578125, 0.057891845703125, -0.002216339111328125, -0.034088134765625, 0.0496826171875, 0.0006246566772460938, -0.060699462890625, -0.00572967529296875, 0.004154205322265625, 0.01666259765625, -0.00829315185546875, 0.0304107666015625, -0.032867431640625, -0.03594970703125, -0.0120086669921875, -0.028472900390625, 0.07781982421875, -0.04296875, -0.01114654541015625, 0.017486572265625, 0.031585693359375, -0.0032958984375, -0.0023956298828125, 0.02264404296875, -0.034149169921875, -0.007244110107421875, 0.006626129150390625, -0.0118255615234375, 0.0010118484497070312, 0.0158843994140625, -0.0592041015625, 0.0753173828125, -0.0433349609375, 0.044403076171875, -0.001071929931640625, 0.0250091552734375, 0.00997161865234375, 0.00337982177734375, -0.062225341796875, 0.06689453125, 0.0236053466796875, 0.0439453125, -0.043914794921875, -0.01099395751953125, 0.00740814208984375, 0.021087646484375, 0.0721435546875, 0.01212310791015625, -0.051971435546875, -0.01495361328125, 0.064453125, 0.055389404296875, 0.0262603759765625, 0.034088134765625, -0.0013837814331054688, 0.04034423828125, 0.05584716796875, -0.037811279296875, 0.04705810546875, -0.00460052490234375, -0.031951904296875, 0.00244140625, 0.00533294677734375, -0.00531768798828125, -0.0228424072265625, -0.01320648193359375, -0.037078857421875, -0.001903533935546875, 0.0018587112426757812, 0.053924560546875, 0.0027370452880859375, 0.06793212890625, 0.06622314453125, -0.077392578125, -0.04901123046875, -0.04315185546875, 0.055816650390625, 0.01151275634765625, 0.01010894775390625, 0.030548095703125, 0.015533447265625, 0.04791259765625, -0.0281524658203125, -0.006500244140625, -0.006439208984375, -0.007080078125, 0.05548095703125, 0.025390625, 0.0285491943359375, -0.058502197265625, -0.05303955078125, 0.03753662109375, 0.083251953125, -0.031158447265625, -0.03094482421875, 0.0195159912109375, 0.00891876220703125, -0.0156707763671875, 0.018463134765625, 0.0309295654296875, 0.0128631591796875, 0.05133056640625, -0.03631591796875, -0.005970001220703125, 0.006855010986328125, 0.0244598388671875, -0.005214691162109375, 0.0215606689453125, -0.0140533447265625, -0.00441741943359375, -0.045806884765625, -0.00319671630859375, 0.01873779296875, 0.0272064208984375, 0.0162353515625, 0.0290679931640625, 0.0079345703125, -0.01548004150390625, 0.016204833984375, -0.0276031494140625, 0.0188446044921875, -0.019378662109375, 0.00853729248046875, -0.00498199462890625, -0.003692626953125, 0.0287933349609375, -0.0170135498046875, -0.03192138671875, -0.023651123046875, 0.004848480224609375, 0.0112457275390625, -0.02838134765625, 0.01290130615234375, -0.015289306640625, -0.0494384765625, -0.0029239654541015625, -0.04510498046875, -0.00467681884765625, -0.0231170654296875, 0.041351318359375, 0.033782958984375, -0.0010547637939453125, -0.0269927978515625, 0.042205810546875, -0.012847900390625, -0.0026702880859375, 0.03564453125, 0.0072784423828125, 0.0396728515625, -0.002231597900390625, -0.0723876953125, 0.0012998580932617188, -0.0015697479248046875, -0.07305908203125, 0.03564453125, 0.036712646484375, -0.048919677734375, 0.035186767578125, 0.02130126953125, -0.0264434814453125, 0.032867431640625, 0.011871337890625, 0.002841949462890625, 0.0184326171875, 0.035186767578125, -0.0095062255859375, -0.063232421875, -0.025604248046875, -0.0102996826171875, 0.029815673828125, -0.00850677490234375, 0.0160064697265625, 0.00861358642578125, 0.01253509521484375, -0.0455322265625, 0.0293731689453125, -0.047698974609375, -0.03857421875, 0.06097412109375, 0.00568389892578125, 0.00385284423828125, 0.00235748291015625, -0.042999267578125, -0.0088958740234375, 0.044830322265625, -0.0094757080078125, 0.00988006591796875, -0.023162841796875, 0.0360107421875, -0.01413726806640625, 0.010345458984375, -0.027587890625, 0.040618896484375, 0.029052734375, -0.03948974609375, 0.042388916015625, -0.01149749755859375, 0.022979736328125, 0.0494384765625, -0.028656005859375, -0.0138092041015625, 0.01297760009765625, -0.037078857421875, -0.0031719207763671875, 0.01192474365234375, -0.0212860107421875, 0.01763916015625, 0.015411376953125, -0.014007568359375, 0.0062255859375, 0.0313720703125, -0.014129638671875, 0.024078369140625, 0.005207061767578125, 0.000009953975677490234, 0.0166015625, 0.0406494140625, 0.0003123283386230469, 0.0001614093780517578, 0.00247955322265625, -0.020843505859375, -0.017578125, -0.01326751708984375, -0.0234375, -0.00897216796875, 0.007534027099609375, 0.016326904296875, 0.0248260498046875, 0.01003265380859375, 0.0074310302734375, -0.0135955810546875, 0.0018777847290039062, -0.008270263671875, -0.046905517578125, 0.04449462890625, -0.018157958984375, 0.00024235248565673828, -0.0455322265625, -0.04974365234375, 0.017425537109375, 0.01216888427734375, -0.019683837890625, 0.0234527587890625, -0.048675537109375, -0.033111572265625, -0.00893402099609375, 0.0224609375, 0.04302978515625, -0.020233154296875, -0.01617431640625, 0.02825927734375, -0.01458740234375, 0.058929443359375, -0.01454925537109375, 0.00951385498046875, 0.035675048828125, 0.0149993896484375, -0.040496826171875, -0.09515380859375, -0.00024199485778808594, -0.06207275390625, -0.0133819580078125, -0.00673675537109375, -0.00815582275390625, 0.02215576171875, -0.024383544921875, -0.07318115234375, 0.0908203125, -0.03582763671875, -0.0303955078125, -0.075439453125, 0.019622802734375, 0.020111083984375, -0.03399658203125, -0.0244140625, -0.0284576416015625, -0.0362548828125, 0.0154876708984375, 0.01522064208984375, -0.024505615234375, 0.048004150390625, 0.003910064697265625, -0.07672119140625, 0.0013980865478515625, -0.00560760498046875, 0.01377105712890625, 0.0276641845703125, -0.0060882568359375, 0.051788330078125, 0.05889892578125, -0.0281219482421875, 0.050323486328125, -0.0187530517578125, -0.0020198822021484375, -0.0234832763671875, -0.06268310546875, -0.034210205078125, -0.006763458251953125, 0.07781982421875, 0.0841064453125, 0.02490234375, -0.055084228515625, -0.03253173828125, -0.04150390625, -0.00286865234375, -0.016571044921875, 0.00604248046875, -0.03668212890625, 0.006427764892578125, -0.020599365234375, -0.0308837890625, -0.0038204193115234375, 0.01201629638671875, -0.03131103515625, 0.00914764404296875, 0.0161590576171875, 0.0009412765502929688, -0.045074462890625, 0.029052734375, -0.032501220703125, -0.00913238525390625, -0.020782470703125, -0.0193634033203125, 0.0010128021240234375, -0.043426513671875, 0.004825592041015625, -0.012939453125, 0.01442718505859375, 0.0238800048828125, 0.0133056640625, 0.023193359375, -0.025482177734375, -0.0005021095275878906, 0.036590576171875, -0.0087127685546875, -0.01507568359375, 0.019195556640625, -0.020965576171875, -0.0252227783203125, 0.0230865478515625, 0.00453948974609375, 0.00955963134765625, -0.0032405853271484375, 0.02490234375, 0.0037441253662109375, 0.0199432373046875, -0.00821685791015625, -0.01529693603515625, 0.01079559326171875, -0.020416259765625, -0.00400543212890625, -0.0097198486328125, -0.07928466796875, -0.04986572265625, 0.002246856689453125, 0.02294921875, -0.02362060546875, 0.006031036376953125 ]
fbaf999a3c1554b9107ea0c6289a40310918043a
Wordpress Stackexchange Q: How to customize the symbols that appear in the Visual Editor insert custom character The TinyMCE Editor has a great button in the kitchen sink to insert custom characters / symbols. Is there a way to control what symbols show up in this pop-up? (Specifically I need some unique Hawaiian language characters 'okina and macrons). Code Character &#256; Ā &#257; ā &#274; Ē &#275; ē &#298; Ī &#299; ī &#332; Ō &#333; ō &#362; Ū &#363; ū &#699; ʻ Hawaiian Diacritical mark reference: http://manoa.hawaii.edu/site/hawaiian_language.html A: This has to do with your character map for tinyMCE it's located inside: wp-includes/js/tinymce/themes/advanced/js/charmap.js Although I wouldn't recommend editing the WP-Core you could theoretically just add new characters there like so: ['&#298;', '&#298;', true,'I kahako'], ['&#332;', '&#332;', true,'O kahako'], and so on... However when you update Wordpress this will overwrite those changes. So it's not the best solution but it would work.
Q: How to customize the symbols that appear in the Visual Editor insert custom character The TinyMCE Editor has a great button in the kitchen sink to insert custom characters / symbols. Is there a way to control what symbols show up in this pop-up? (Specifically I need some unique Hawaiian language characters 'okina and macrons). Code Character &#256; Ā &#257; ā &#274; Ē &#275; ē &#298; Ī &#299; ī &#332; Ō &#333; ō &#362; Ū &#363; ū &#699; ʻ Hawaiian Diacritical mark reference: http://manoa.hawaii.edu/site/hawaiian_language.html A: This has to do with your character map for tinyMCE it's located inside: wp-includes/js/tinymce/themes/advanced/js/charmap.js Although I wouldn't recommend editing the WP-Core you could theoretically just add new characters there like so: ['&#298;', '&#298;', true,'I kahako'], ['&#332;', '&#332;', true,'O kahako'], and so on... However when you update Wordpress this will overwrite those changes. So it's not the best solution but it would work. A: WordPress and TinyMCE both recently have been updated to allow you to modify the special characters (charmap) without having to hack the core. You can lookup the symbols you want from https://dev.w3.org/html5/html-author/charref and then either add the following code to your theme's functions.php or make a plugin: add_filter( 'tiny_mce_before_init', 'tinymce_add_chars' ); function tinymce_add_chars( $settings ) { $new_chars = json_encode( array( array( '8224', 'Dagger' ), array( '8230', 'Horizontal ellipsis' ), array( '8539', '1/8 Fraction' ), array( '8730', 'Square Root' ), array( '8818', 'Less than or equivalent to' ), array( '8819', 'Greater than or equivalent to' ), array( '0963', 'Sigma' ), array( '0956', 'Mu' ), ) ); $settings['charmap_append'] = $new_chars; return $settings; } This modification relies on the tiny_mce_before_init hook in WordPress and TinyMCE's charmap_append settings. When adding elements you add each symbol as an array where the first item is the HTML entity code and the second is the description. You can see in the screenshot below that my symbols have been appended to the existing list of symbols. It looks like it's possible to also override the default list of symbols by using TinyMCE's charmap setting and listing the symbols you want. A: Its not that hard to write a plugin to replace something like !U !u !' with the Hawaiian characters. That way you can just type a bang in front of the letter while typing your post to get the character you want. I did this for suit symbols for card playing sites and it works beautifully and was very easy to do. See http://bridgeteaching.com/2011/09/we-have-created-a-suit-symbol-plugin-for-wordpress/
wordpress
{ "language": "en", "length": 406, "provenance": "stackexchange_00019.jsonl.gz:425148", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70364" }
[ 0.007564544677734375, -0.0095672607421875, 0.0141448974609375, 0.0299835205078125, -0.022613525390625, -0.00931549072265625, 0.051239013671875, -0.0352783203125, 0.0070953369140625, 0.0589599609375, 0.0086212158203125, 0.003185272216796875, 0.037872314453125, -0.035247802734375, -0.01337432861328125, 0.0140838623046875, 0.046295166015625, -0.01139068603515625, 0.057891845703125, 0.006591796875, 0.00411224365234375, 0.028839111328125, 0.0867919921875, -0.01303863525390625, 0.0285797119140625, -0.0145111083984375, 0.047882080078125, -0.04376220703125, 0.0013322830200195312, -0.0380859375, 0.0197296142578125, 0.0251617431640625, 0.014251708984375, 0.06146240234375, -0.058441162109375, 0.05401611328125, 0.018035888671875, 0.029052734375, 0.01488494873046875, 0.013763427734375, 0.0293731689453125, -0.0243072509765625, 0.0113067626953125, 0.015777587890625, -0.01470947265625, -0.01995849609375, 0.022857666015625, -0.02813720703125, -0.0084991455078125, -0.02264404296875, 0.0084381103515625, 0.022125244140625, 0.018310546875, -0.0303955078125, -0.0037593841552734375, -0.00897216796875, -0.06475830078125, 0.031158447265625, -0.0014753341674804688, 0.06182861328125, 0.04437255859375, 0.0245819091796875, -0.01461029052734375, 0.0165557861328125, 0.002399444580078125, -0.004543304443359375, -0.0294189453125, 0.01012420654296875, 0.006511688232421875, 0.0035839080810546875, -0.0025348663330078125, -0.0008034706115722656, 0.0178985595703125, -0.042388916015625, -0.0219573974609375, 0.042755126953125, -0.0183868408203125, 0.001537322998046875, 0.023956298828125, -0.044921875, 0.038482666015625, 0.019317626953125, 0.017425537109375, -0.00861358642578125, -0.0103302001953125, -0.004436492919921875, -0.0022869110107421875, -0.025146484375, -0.0267791748046875, 0.008087158203125, -0.018218994140625, -0.030517578125, -0.0289459228515625, 0.044281005859375, 0.0085296630859375, -0.00534820556640625, -0.005706787109375, -0.003269195556640625, 0.00540924072265625, 0.05889892578125, -0.014129638671875, -0.03887939453125, 0.08892822265625, -0.059051513671875, 0.015533447265625, 0.0223541259765625, -0.023162841796875, 0.039154052734375, 0.051910400390625, 0.029296875, 0.0053558349609375, -0.0023288726806640625, -0.020233154296875, -0.04736328125, 0.02789306640625, 0.041290283203125, -0.0224761962890625, 0.04254150390625, 0.01294708251953125, 0.0241241455078125, 0.048004150390625, 0.0552978515625, -0.00838470458984375, -0.03851318359375, -0.02520751953125, -0.030517578125, -0.03326416015625, -0.01751708984375, -0.053955078125, 0.04541015625, -0.0274810791015625, 0.00036144256591796875, 0.040374755859375, 0.05938720703125, 0.005359649658203125, -0.036346435546875, 0.0218963623046875, 0.0128936767578125, 0.017181396484375, 0.0012865066528320312, -0.0086212158203125, -0.0009832382202148438, 0.034912109375, -0.014739990234375, -0.032012939453125, 0.0112457275390625, 0.00662994384765625, 0.02838134765625, -0.0145111083984375, -0.06365966796875, 0.03582763671875, -0.041534423828125, 0.038421630859375, -0.005771636962890625, -0.03515625, -0.0195159912109375, 0.026153564453125, -0.035675048828125, -0.007205963134765625, -0.0491943359375, -0.0355224609375, -0.01308441162109375, 0.030609130859375, -0.0322265625, -0.005687713623046875, 0.0007691383361816406, -0.01032257080078125, 0.0224609375, 0.0215911865234375, 0.0243072509765625, -0.0267181396484375, 0.0265960693359375, 0.0325927734375, 0.0179595947265625, 0.00270843505859375, 0.0032672882080078125, -0.01233673095703125, 0.015777587890625, 0.0136260986328125, 0.040374755859375, 0.02142333984375, -0.033416748046875, 0.054840087890625, 0.008636474609375, -0.03948974609375, 0.043670654296875, 0.004009246826171875, 0.086669921875, 0.0070648193359375, 0.022552490234375, -0.0165252685546875, 0.0186767578125, -0.0261688232421875, 0.03692626953125, -0.0150299072265625, -0.006893157958984375, -0.0357666015625, 0.017913818359375, -0.02752685546875, -0.0197601318359375, 0.016937255859375, 0.00510406494140625, 0.014068603515625, -0.0151214599609375, -0.0399169921875, 0.0245208740234375, -0.028076171875, 0.039031982421875, 0.037628173828125, -0.01255035400390625, -0.009063720703125, -0.044158935546875, 0.004253387451171875, 0.034027099609375, -0.0286102294921875, 0.036865234375, 0.007740020751953125, 0.0299530029296875, 0.0254974365234375, 0.0017004013061523438, 0.06597900390625, -0.0111083984375, 0.062347412109375, 0.0308837890625, -0.00307464599609375, -0.03350830078125, 0.0049285888671875, -0.0076904296875, 0.00858306884765625, 0.00846099853515625, 0.0156402587890625, 0.0009217262268066406, 0.0275726318359375, 0.007709503173828125, -0.040802001953125, -0.00981903076171875, -0.0163116455078125, -0.0653076171875, 0.01654052734375, 0.0552978515625, 0.049072265625, 0.0006761550903320312, 0.00836181640625, -0.0146331787109375, 0.04669189453125, 0.002025604248046875, 0.041351318359375, -0.0516357421875, 0.051513671875, 0.09295654296875, 0.010589599609375, -0.032135009765625, -0.0034637451171875, -0.056549072265625, 0.038299560546875, -0.00098419189453125, -0.0032672882080078125, 0.0185699462890625, -0.00899505615234375, 0.0103759765625, -0.00469207763671875, 0.039764404296875, 0.01361846923828125, -0.002140045166015625, 0.024200439453125, -0.01280975341796875, 0.015777587890625, 0.0133514404296875, -0.018524169921875, 0.0008139610290527344, 0.0211181640625, 0.01262664794921875, -0.0027904510498046875, 0.004817962646484375, -0.01523590087890625, 0.01690673828125, -0.0167694091796875, 0.01708984375, -0.00823974609375, -0.004528045654296875, -0.0139007568359375, 0.0220947265625, -0.0017032623291015625, -0.0121307373046875, 0.01861572265625, 0.01458740234375, 0.0009083747863769531, -0.040740966796875, -0.0131683349609375, -0.0250091552734375, -0.0006489753723144531, 0.04937744140625, -0.0096282958984375, -0.0003037452697753906, 0.00820159912109375, -0.00514984130859375, 0.0138702392578125, -0.0020008087158203125, 0.02410888671875, -0.011688232421875, 0.04736328125, 0.054779052734375, -0.0157623291015625, 0.008697509765625, 0.0289306640625, -0.052459716796875, 0.002040863037109375, 0.0814208984375, 0.040130615234375, -0.05291748046875, 0.035888671875, 0.04718017578125, 0.0174560546875, 0.0005130767822265625, 0.0017986297607421875, -0.012298583984375, -0.0211944580078125, 0.01580810546875, -0.0053863525390625, 0.00281524658203125, 0.0197906494140625, 0.0189056396484375, -0.01195526123046875, 0.0197601318359375, -0.0026073455810546875, -0.00809478759765625, 0.01099395751953125, -0.00734710693359375, -0.04754638671875, -0.0093841552734375, 0.03314208984375, -0.03302001953125, -0.0198211669921875, -0.04412841796875, 0.0065765380859375, -0.0113372802734375, 0.004863739013671875, 0.0157012939453125, -0.00168609619140625, -0.0036716461181640625, 0.007808685302734375, -0.01953125, -0.0201263427734375, -0.0281982421875, 0.002719879150390625, -0.04205322265625, 0.028656005859375, -0.0091094970703125, 0.00350189208984375, 0.03216552734375, -0.0015821456909179688, 0.00417327880859375, 0.01195526123046875, 0.01226043701171875, 0.04290771484375, -0.00124359130859375, -0.024261474609375, 0.0655517578125, 0.05755615234375, 0.0019464492797851562, -0.042572021484375, 0.04937744140625, -0.01050567626953125, 0.037445068359375, -0.017181396484375, -0.03466796875, -0.023345947265625, 0.0721435546875, -0.0168609619140625, 0.01538848876953125, -0.007080078125, -0.028533935546875, -0.00205230712890625, 0.0004115104675292969, 0.01568603515625, 0.026702880859375, 0.0263214111328125, -0.01297760009765625, 0.047576904296875, 0.01540374755859375, 0.006938934326171875, -0.01015472412109375, 0.0239105224609375, -0.0307159423828125, 0.0196075439453125, -0.0009775161743164062, -0.0643310546875, 0.034942626953125, -0.0221710205078125, 0.0014562606811523438, -0.021942138671875, 0.03192138671875, -0.0009479522705078125, 0.001567840576171875, 0.0153656005859375, 0.0289154052734375, -0.09332275390625, -0.0419921875, -0.0849609375, 0.011077880859375, -0.1043701171875, 0.01556396484375, 0.0038776397705078125, -0.045166015625, -0.046783447265625, 0.022308349609375, -0.09051513671875, -0.0158538818359375, 0.0357666015625, -0.0144805908203125, -0.01483917236328125, 0.0187225341796875, -0.0245819091796875, 0.0014333724975585938, -0.0216522216796875, -0.005176544189453125, -0.0767822265625, -0.0214996337890625, -0.0537109375, 0.093994140625, 0.07220458984375, -0.085205078125, 0.00229644775390625, 0.056976318359375, -0.051025390625, -0.00732421875, -0.0004425048828125, 0.06396484375, -0.0119476318359375, -0.0184173583984375, -0.01763916015625, -0.03302001953125, -0.0157928466796875, 0.0111541748046875, -0.0262908935546875, 0.0171051025390625, 0.005886077880859375, -0.0285186767578125, 0.0577392578125, -0.05303955078125, -0.037841796875, -0.02899169921875, -0.0167083740234375, 0.0156707763671875, 0.00308990478515625, -0.01128387451171875, -0.015960693359375, -0.0265655517578125, 0.040496826171875, 0.0191192626953125, 0.0189666748046875, -0.00928497314453125, 0.036651611328125, -0.0007476806640625, -0.043426513671875, -0.0165252685546875, 0.0130462646484375, -0.0021686553955078125, -0.00511932373046875, 0.027557373046875, -0.01151275634765625, 0.007556915283203125, 0.01555633544921875, -0.0264434814453125, 0.02008056640625, -0.0263671875, 0.039154052734375, -0.00024068355560302734, 0.01116180419921875, 0.004657745361328125, 0.0219573974609375, -0.00008535385131835938, -0.008697509765625, 0.004901885986328125, 0.00804901123046875, 0.041534423828125, 0.0007882118225097656, -0.003520965576171875, -0.0173492431640625, -0.000804901123046875, -0.039794921875, 0.0179595947265625, 0.066650390625, -0.0205841064453125, -0.0110626220703125, 0.016082763671875, -0.0248260498046875, -0.01715087890625, -0.01160430908203125, 0.0288848876953125, 0.011383056640625, 0.0169830322265625, 0.0169677734375, 0.01007080078125, -0.0160369873046875, -0.0013790130615234375, -0.0130462646484375, 0.02197265625, 0.0111236572265625, -0.031280517578125, -0.0225067138671875, -0.007793426513671875, 0.0037746429443359375, 0.0005993843078613281, -0.003948211669921875, -0.038787841796875, 0.0011377334594726562, -0.0195770263671875, 0.03399658203125, 0.03192138671875, -0.0203094482421875, 0.00392913818359375, -0.0283050537109375, -0.00792694091796875, -0.03009033203125, -0.01430511474609375, 0.044281005859375, -0.04644775390625, 0.03582763671875, 0.01529693603515625, -0.0222320556640625, 0.008270263671875, 0.031585693359375, 0.0263519287109375, -0.0265045166015625, -0.0296783447265625, 0.028533935546875, 0.0059356689453125, -0.01055145263671875, -0.02093505859375, 0.0094146728515625, 0.0161285400390625, -0.01328277587890625, -0.0128936767578125, -0.0009455680847167969, -0.0269317626953125, -0.0271148681640625, 0.0209197998046875, -0.00872039794921875, -0.04290771484375, 0.0030231475830078125, 0.032012939453125, 0.006786346435546875, 0.007297515869140625, -0.0014495849609375, -0.0265655517578125, -0.049285888671875, -0.0254364013671875, 0.021484375, -0.005889892578125, -0.036773681640625, -0.057098388671875, -0.0014190673828125, 0.0024280548095703125, 0.0008726119995117188, -0.08685302734375, -0.047332763671875, -0.003108978271484375, 0.017791748046875, 0.02069091796875, -0.0430908203125, 0.02471923828125, 0.030487060546875, -0.0250396728515625, 0.0025577545166015625, 0.049560546875, -0.0048980712890625, -0.009490966796875, 0.0185546875, -0.0144805908203125, -0.05474853515625, -0.035003662109375, 0.018157958984375, -0.00855255126953125, -0.0192413330078125, -0.0251312255859375, 0.031585693359375, 0.0280303955078125, 0.021209716796875, -0.0196990966796875, -0.0270843505859375, 0.030914306640625, 0.03448486328125, 0.07470703125, -0.029266357421875, 0.02484130859375, -0.01055908203125, 0.048828125, -0.019927978515625, 0.01522064208984375, 0.047515869140625, -0.029449462890625, 0.034454345703125, -0.0243988037109375, -0.0328369140625, -0.023223876953125, 0.0189361572265625, -0.01776123046875, -0.01666259765625, -0.014404296875, 0.040374755859375, -0.006633758544921875, 0.0098724365234375, -0.00505828857421875, 0.00035119056701660156, -0.0287628173828125, 0.01309967041015625, 0.05682373046875, -0.062225341796875, 0.019683837890625, -0.0019588470458984375, 0.006763458251953125, 0.039154052734375, -0.0582275390625, 0.0214996337890625, 0.080322265625, -0.0255279541015625, 0.003475189208984375, 0.044189453125, 0.0498046875, 0.03509521484375, 0.01605224609375, 0.028228759765625, -0.026153564453125, -0.03631591796875, -0.0022411346435546875, 0.03167724609375, -0.00815582275390625, -0.04119873046875, -0.0063629150390625, -0.0276641845703125, -0.0007023811340332031, 0.0195465087890625, 0.058380126953125, 0.0631103515625, -0.0849609375, 0.00211334228515625, 0.01165008544921875, -0.0145111083984375, 0.0406494140625, 0.03338623046875, -0.0304718017578125, -0.00745391845703125, 0.043914794921875, -0.07464599609375, -0.01271820068359375, 0.0460205078125, 0.0037689208984375, -0.0103607177734375, -0.0098724365234375, 0.00679779052734375, 0.0135345458984375, 0.040435791015625, -0.025970458984375, -0.0181884765625, 0.0018177032470703125, 0.01261138916015625, 0.02734375, -0.0262298583984375, -0.0182037353515625, -0.0302886962890625, -0.003742218017578125, -0.02374267578125, -0.039794921875, 0.023345947265625, -0.00811004638671875, 0.01406097412109375, 0.055328369140625, -0.04290771484375, 0.0142059326171875, 0.0311431884765625, -0.024505615234375, 0.0831298828125, -0.004669189453125, 0.0016918182373046875, 0.06658935546875, -0.0272064208984375, -0.005382537841796875, 0.02008056640625, 0.032562255859375, 0.010955810546875, 0.07293701171875, 0.034820556640625, -0.00705718994140625, -0.0406494140625, 0.056427001953125, -0.026397705078125, -0.0265350341796875, -0.060516357421875, -0.013763427734375, -0.087890625, -0.06256103515625, -0.045379638671875, -0.06854248046875, 0.0059814453125, -0.07635498046875, -0.07159423828125, 0.05902099609375, 0.0112762451171875, 0.0273590087890625, 0.004589080810546875, 0.01299285888671875, -0.054473876953125, -0.0277252197265625, -0.040496826171875, 0.052703857421875, -0.0150299072265625, 0.0295257568359375, -0.0726318359375, 0.00487518310546875, 0.0078125, 0.032928466796875, -0.006992340087890625, -0.0085296630859375, 0.0261993408203125, 0.0211181640625, 0.030364990234375, 0.03509521484375, -0.0027923583984375, -0.010162353515625, -0.0022144317626953125, -0.0297698974609375, -0.01151275634765625, 0.0211944580078125, 0.01068115234375, -0.0081939697265625, -0.03607177734375, 0.0286865234375, -0.0016565322875976562, -0.0136566162109375, 0.014404296875, -0.0144805908203125, -0.022613525390625, 0.006031036376953125, 0.0030803680419921875, -0.0421142578125, 0.024200439453125, 0.033843994140625, 0.0153656005859375, -0.044891357421875, -0.07672119140625, -0.007843017578125, 0.016510009765625, -0.0154571533203125, 0.00389862060546875, 0.0111846923828125, 0.002628326416015625, -0.0254669189453125, -0.0292205810546875, -0.0037384033203125, 0.00897216796875, -0.0145416259765625, 0.000728607177734375, 0.01340484619140625, 0.013214111328125, -0.01367950439453125, 0.0131988525390625, 0.06573486328125, 0.0230560302734375, -0.023956298828125, -0.0275421142578125, 0.02630615234375, 0.02557373046875, 0.0004000663757324219, 0.005130767822265625, 0.034332275390625, -0.0255126953125, 0.005615234375, 0.038482666015625, -0.01032257080078125, -0.003917694091796875, -0.00917816162109375, 0.0190887451171875, 0.0298309326171875, 0.00121307373046875, 0.0171051025390625, -0.0452880859375, 0.0159912109375, 0.006439208984375, 0.01910400390625, 0.008819580078125, 0.0270233154296875, 0.040679931640625, 0.0006809234619140625, -0.016204833984375, 0.0190582275390625, 0.0283966064453125, 0.00844573974609375, 0.0022983551025390625, 0.01407623291015625, 0.004467010498046875, 0.011199951171875, 0.0135650634765625, 0.006282806396484375, 0.0311431884765625, 0.02618408203125, -0.0220794677734375, -0.0165557861328125, 0.004474639892578125, -0.0172119140625, 0.0159912109375, -0.036773681640625, -0.0000464320182800293, -0.001068115234375, -0.0115509033203125, -0.02301025390625, -0.0164031982421875, 0.05059814453125, -0.008392333984375, 0.056427001953125, -0.01033782958984375, -0.0159149169921875, 0.01454925537109375, -0.044830322265625, 0.0828857421875, 0.0072479248046875, -0.0421142578125, 0.0152587890625, -0.045654296875, -0.0650634765625, 0.0379638671875, 0.04608154296875, 0.0105133056640625, 0.0022335052490234375, -0.013519287109375, -0.03204345703125, 0.01305389404296875, 0.0147857666015625, 0.01033782958984375, -0.0114898681640625, -0.00839996337890625, -0.017364501953125, -0.0273895263671875, 0.00531768798828125, 0.0193939208984375, -0.003376007080078125, -0.016357421875, 0.01102447509765625, 0.01511383056640625, 0.0011396408081054688, -0.0294036865234375, -0.009796142578125, -0.0178680419921875, -0.0265350341796875, 0.0170745849609375, 0.0196380615234375, 0.008544921875, -0.0191192626953125, -0.078369140625, 0.041656494140625, -0.0182342529296875, 0.00958251953125, 0.03826904296875, -0.0240325927734375, 0.0098876953125, 0.003570556640625, 0.0295257568359375, -0.0036258697509765625, -0.034332275390625, -0.03814697265625, -0.0205230712890625, 0.04010009765625, 0.0335693359375, -0.0020923614501953125, 0.0307464599609375, -0.0088348388671875, -0.0214691162109375, 0.036163330078125, -0.0406494140625, 0.0194244384765625, 0.0307769775390625, 0.01288604736328125, -0.0038604736328125, -0.030792236328125, -0.0250396728515625, -0.01073455810546875, 0.01499176025390625, -0.04248046875, 0.01381683349609375, -0.064453125, 0.073486328125, 0.05633544921875, 0.061676025390625, -0.024383544921875, 0.00969696044921875, 0.055572509765625, 0.01068878173828125, 0.041290283203125, 0.01245880126953125, -0.01422882080078125, 0.0101318359375, 0.0104522705078125, 0.021240234375, 0.026336669921875, 0.036865234375, -0.047821044921875, -0.049713134765625, 0.044036865234375, 0.0260009765625, -0.03961181640625, 0.007110595703125, 0.00412750244140625, 0.00321197509765625, 0.0245513916015625, 0.0308837890625, -0.0171661376953125, 0.02423095703125, -0.0428466796875, -0.05426025390625, -0.0205535888671875, 0.058197021484375, -0.02789306640625, -0.01360321044921875, 0.00591278076171875, -0.0023860931396484375, -0.038604736328125, 0.0068817138671875, 0.00104522705078125, 0.019805908203125, 0.00847625732421875, -0.00579071044921875, 0.047760009765625, -0.0303802490234375, -0.039581298828125, -0.05487060546875, 0.021697998046875, -0.08343505859375, -0.0199432373046875, 0.0056610107421875, -0.016204833984375, -0.0107574462890625, -0.06787109375, -0.09814453125, -0.050811767578125, 0.020782470703125, -0.0567626953125, 0.043609619140625, -0.010101318359375, -0.0212860107421875, 0.001239776611328125, 0.0134429931640625, 0.0114288330078125, -0.0018987655639648438, -0.0010099411010742188, 0.0096588134765625, 0.0657958984375, -0.006961822509765625, 0.0162353515625, 0.0022983551025390625, 0.021820068359375, 0.0096893310546875, 0.0241851806640625, 0.05615234375, -0.033203125, 0.033660888671875, 0.04046630859375, -0.0386962890625, -0.08868408203125, -0.051513671875, -0.07879638671875, -0.0196990966796875, -0.080322265625, -0.0396728515625, -0.045318603515625, 0.08111572265625, 0.025726318359375, 0.01580810546875, -0.021392822265625, -0.01331329345703125, -0.0274810791015625, -0.013885498046875, -0.012908935546875, -0.00016736984252929688, -0.032989501953125, 0.01222991943359375, -0.027374267578125, 0.0300140380859375, 0.02630615234375, -0.01157379150390625, 0.02044677734375, -0.0247650146484375, 0.0229949951171875, -0.01190948486328125, -0.035980224609375, -0.00836181640625, 0.07257080078125, -0.0450439453125, -0.01593017578125, 0.0036106109619140625, 0.00940704345703125, 0.0196075439453125, 0.0158538818359375, -0.030548095703125, -0.09295654296875, 0.0212249755859375, 0.04571533203125, -0.022613525390625, -0.002933502197265625, -0.0224609375, -0.0232086181640625, -0.02142333984375, 0.00008165836334228516, 0.01763916015625, -0.0132904052734375, -0.02789306640625, -0.01058197021484375, 0.0094451904296875, 0.006145477294921875, -0.04949951171875, -0.04412841796875, -0.048126220703125, -0.0106658935546875, -0.03887939453125, 0.043609619140625, -0.013519287109375, 0.024017333984375, 0.0269012451171875, -0.0007495880126953125, 0.0311279296875, 0.046356201171875, -0.02392578125, 0.041595458984375, -0.0265960693359375, -0.007564544677734375 ]
c8879fb9a0cc3b1477d913898eb6a6da29fd5194
Wordpress Stackexchange Q: Find out if there is a available core update? I want to set up a function that notifies me when a core update is available. But i can't find any functions that check for updates. I have looked at list_core_updates() and it may be possible to check if it returns anything, but i don't know if that is smart. A: There is get_core_updates(). Note that you might need to manually include admin file that declares it, if running in front end and such. Example use: require_once ABSPATH . '/wp-admin/includes/update.php'; print_r( get_core_updates() ); Example return: Array ( [0] => stdClass Object ( [response] => latest [download] => http://wordpress.org/wordpress-3.4.2.zip [locale] => en_US [packages] => stdClass Object ( [full] => http://wordpress.org/wordpress-3.4.2.zip [no_content] => http://wordpress.org/wordpress-3.4.2-no-content.zip [new_bundled] => http://wordpress.org/wordpress-3.4.2-new-bundled.zip [partial] => ) [current] => 3.4.2 [php_version] => 5.2.4 [mysql_version] => 5.0 [new_bundled] => 3.2 [partial_version] => [dismissed] => ) )
Q: Find out if there is a available core update? I want to set up a function that notifies me when a core update is available. But i can't find any functions that check for updates. I have looked at list_core_updates() and it may be possible to check if it returns anything, but i don't know if that is smart. A: There is get_core_updates(). Note that you might need to manually include admin file that declares it, if running in front end and such. Example use: require_once ABSPATH . '/wp-admin/includes/update.php'; print_r( get_core_updates() ); Example return: Array ( [0] => stdClass Object ( [response] => latest [download] => http://wordpress.org/wordpress-3.4.2.zip [locale] => en_US [packages] => stdClass Object ( [full] => http://wordpress.org/wordpress-3.4.2.zip [no_content] => http://wordpress.org/wordpress-3.4.2-no-content.zip [new_bundled] => http://wordpress.org/wordpress-3.4.2-new-bundled.zip [partial] => ) [current] => 3.4.2 [php_version] => 5.2.4 [mysql_version] => 5.0 [new_bundled] => 3.2 [partial_version] => [dismissed] => ) ) A: An alternative way is to query the API directly via http://api.wordpress.org/core/version-check/1.6/ You can see it buried in there as "current";s:5:"3.4.2"
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:425152", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70383" }
[ 0.027801513671875, -0.0158233642578125, 0.0007510185241699219, -0.056640625, 0.0081329345703125, 0.003955841064453125, 0.003398895263671875, -0.00409698486328125, 0.037017822265625, 0.0230712890625, -0.048095703125, -0.0019779205322265625, -0.0212554931640625, -0.011322021484375, -0.0545654296875, -0.034576416015625, 0.08135986328125, -0.041259765625, 0.036773681640625, 0.01476287841796875, -0.0157928466796875, 0.083740234375, 0.0032405853271484375, 0.08148193359375, -0.002666473388671875, -0.0209808349609375, 0.071533203125, -0.00018215179443359375, -0.0087127685546875, -0.0157012939453125, 0.01397705078125, 0.004329681396484375, 0.00936126708984375, 0.0496826171875, -0.047027587890625, -0.040435791015625, 0.00960540771484375, 0.0253448486328125, 0.0103759765625, 0.019195556640625, 0.0032672882080078125, -0.00580596923828125, 0.0230712890625, 0.004093170166015625, -0.01335906982421875, 0.0034027099609375, -0.0012798309326171875, -0.0295867919921875, 0.01152801513671875, 0.0288848876953125, -0.00693511962890625, 0.032379150390625, -0.0128021240234375, -0.0031890869140625, 0.0160369873046875, 0.0251312255859375, -0.01084136962890625, 0.05731201171875, 0.0291748046875, -0.013153076171875, -0.0426025390625, 0.0294036865234375, 0.004001617431640625, -0.013671875, -0.0262603759765625, -0.00728607177734375, 0.052581787109375, -0.003780364990234375, -0.035552978515625, -0.041259765625, 0.011688232421875, 0.0224456787109375, 0.00543212890625, -0.021453857421875, -0.00023412704467773438, -0.01422882080078125, 0.01552581787109375, -0.03594970703125, 0.0090179443359375, 0.012969970703125, 0.018585205078125, 0.0262298583984375, -0.02960205078125, -0.023162841796875, 0.037872314453125, 0.04046630859375, 0.005069732666015625, -0.041168212890625, -0.0217742919921875, 0.013519287109375, -0.0215301513671875, -0.036224365234375, 0.0207672119140625, 0.0180816650390625, -0.0017595291137695312, -0.02587890625, 0.0172576904296875, 0.097412109375, -0.04119873046875, -0.0024871826171875, -0.007335662841796875, -0.028533935546875, 0.01506805419921875, -0.0537109375, -0.004306793212890625, 0.031524658203125, 0.03582763671875, -0.00267791748046875, 0.00872039794921875, 0.0014934539794921875, -0.0152587890625, 0.04302978515625, -0.00769805908203125, -0.01055145263671875, -0.00177001953125, -0.003017425537109375, -0.05572509765625, 0.0260467529296875, -0.01456451416015625, 0.003963470458984375, 0.022796630859375, 0.053955078125, -0.016571044921875, -0.01100921630859375, 0.034423828125, 0.0279998779296875, -0.0152435302734375, -0.031707763671875, -0.037750244140625, 0.042694091796875, -0.01018524169921875, 0.003780364990234375, -0.0003440380096435547, -0.00754547119140625, -0.03460693359375, -0.00859832763671875, -0.0010709762573242188, 0.006412506103515625, -0.0036716461181640625, 0.0214080810546875, -0.00481414794921875, -0.014007568359375, 0.0225067138671875, -0.0252838134765625, 0.0095062255859375, -0.021270751953125, 0.0022411346435546875, 0.045013427734375, 0.018310546875, -0.00559234619140625, 0.02294921875, 0.004077911376953125, 0.031890869140625, -0.0094146728515625, -0.0256195068359375, -0.0267791748046875, 0.03375244140625, -0.040130615234375, -0.0396728515625, -0.04876708984375, 0.002716064453125, -0.041534423828125, -0.025970458984375, -0.023040771484375, -0.048492431640625, 0.0618896484375, -0.0104522705078125, 0.01114654541015625, 0.02099609375, 0.023529052734375, -0.0025730133056640625, -0.0276336669921875, 0.05670166015625, 0.0152740478515625, -0.0240631103515625, 0.0240936279296875, 0.01169586181640625, 0.00031447410583496094, 0.0457763671875, -0.0087890625, -0.043182373046875, -0.0245513916015625, 0.07318115234375, -0.045989990234375, -0.0201263427734375, -0.026611328125, 0.0206298828125, 0.036163330078125, 0.03509521484375, 0.0166473388671875, 0.035491943359375, -0.040130615234375, 0.0120849609375, 0.03070068359375, -0.029022216796875, 0.0110626220703125, -0.033477783203125, 0.057342529296875, -0.03216552734375, -0.055389404296875, 0.0006694793701171875, 0.05084228515625, -0.0272064208984375, 0.0017499923706054688, -0.071044921875, 0.0302581787109375, -0.041259765625, 0.06231689453125, 0.036102294921875, 0.0165252685546875, 0.01386260986328125, 0.033111572265625, -0.031890869140625, -0.0178985595703125, -0.05474853515625, 0.01085662841796875, -0.01496124267578125, 0.0119781494140625, -0.01549530029296875, 0.046966552734375, -0.0187835693359375, -0.0428466796875, -0.03607177734375, -0.0216217041015625, 0.03350830078125, -0.0074920654296875, 0.015960693359375, -0.002227783203125, 0.075439453125, 0.0401611328125, 0.0187530517578125, -0.04241943359375, 0.00681304931640625, 0.01220703125, -0.0008716583251953125, 0.004199981689453125, 0.01056671142578125, -0.0455322265625, 0.01145172119140625, 0.0265045166015625, 0.049560546875, 0.016082763671875, 0.003376007080078125, -0.020965576171875, 0.05621337890625, -0.01068878173828125, 0.018157958984375, -0.0247955322265625, -0.017364501953125, 0.032867431640625, -0.0189666748046875, 0.01004791259765625, 0.02178955078125, 0.01456451416015625, -0.040191650390625, 0.04876708984375, -0.006259918212890625, -0.00806427001953125, -0.061248779296875, 0.020294189453125, 0.010162353515625, -0.064697265625, -0.054779052734375, -0.021392822265625, 0.024383544921875, 0.038604736328125, 0.0638427734375, 0.0657958984375, -0.0100555419921875, -0.005878448486328125, -0.015106201171875, 0.021881103515625, 0.0124664306640625, 0.06451416015625, -0.05316162109375, 0.031982421875, 0.0128936767578125, -0.0007753372192382812, -0.01081085205078125, 0.0234527587890625, -0.0103607177734375, -0.0106353759765625, -0.046295166015625, -0.004482269287109375, 0.03302001953125, 0.006244659423828125, -0.0086669921875, -0.0013828277587890625, 0.004756927490234375, 0.03338623046875, 0.051361083984375, 0.012481689453125, -0.0160369873046875, 0.005237579345703125, 0.03594970703125, -0.00384521484375, 0.0029201507568359375, -0.0128021240234375, 0.0284881591796875, -0.003955841064453125, -0.024993896484375, 0.043609619140625, 0.00467681884765625, 0.007080078125, -0.0022754669189453125, -0.0207366943359375, -0.00359344482421875, 0.009857177734375, -0.0122528076171875, 0.0303497314453125, -0.08612060546875, -0.0087738037109375, 0.017242431640625, 0.03778076171875, -0.0271453857421875, -0.0823974609375, -0.0219879150390625, 0.0054168701171875, -0.10748291015625, -0.07122802734375, -0.04339599609375, -0.0236968994140625, -0.0118408203125, 0.0095672607421875, -0.00597381591796875, 0.0080413818359375, 0.0179901123046875, 0.008270263671875, -0.034027099609375, -0.0004849433898925781, -0.058929443359375, -0.04376220703125, -0.0888671875, 0.03314208984375, -0.01007080078125, 0.04400634765625, -0.002532958984375, 0.070068359375, -0.00609588623046875, -0.0906982421875, -0.037353515625, 0.01515960693359375, -0.035125732421875, 0.003505706787109375, 0.00923919677734375, 0.01351165771484375, -0.0168609619140625, 0.00983428955078125, -0.01041412353515625, 0.02001953125, -0.03363037109375, -0.0196533203125, -0.01041412353515625, -0.0248870849609375, 0.0107574462890625, 0.0357666015625, -0.002056121826171875, 0.006702423095703125, 0.04296875, -0.0261077880859375, -0.053131103515625, 0.0533447265625, -0.0248260498046875, 0.00884246826171875, 0.007625579833984375, -0.035858154296875, 0.039093017578125, 0.0107269287109375, -0.01021575927734375, -0.004207611083984375, 0.039154052734375, -0.02508544921875, 0.01227569580078125, -0.015594482421875, -0.03753662109375, -0.0297698974609375, 0.05145263671875, 0.0176544189453125, -0.00029730796813964844, 0.0252532958984375, 0.033050537109375, -0.03204345703125, 0.0406494140625, -0.0777587890625, -0.00576019287109375, 0.038238525390625, -0.004241943359375, 0.02557373046875, -0.00917816162109375, -0.025665283203125, 0.007114410400390625, 0.06634521484375, -0.017425537109375, -0.021392822265625, -0.0220794677734375, 0.0177001953125, -0.035736083984375, -0.0275115966796875, -0.01097869873046875, -0.0012960433959960938, -0.0122222900390625, -0.01702880859375, -0.025909423828125, -0.00711822509765625, -0.0012874603271484375, -0.01189422607421875, 0.01763916015625, -0.0184478759765625, 0.030364990234375, -0.016082763671875, -0.0266876220703125, 0.02203369140625, -0.032073974609375, -0.00493621826171875, -0.018798828125, -0.002105712890625, -0.0887451171875, 0.00951385498046875, -0.03375244140625, 0.0254974365234375, 0.01512908935546875, -0.0115203857421875, -0.026824951171875, 0.0184326171875, 0.0217742919921875, 0.01678466796875, -0.0306396484375, -0.019378662109375, 0.0102081298828125, -0.00994110107421875, -0.009246826171875, -0.00997161865234375, -0.013916015625, -0.0266876220703125, -0.029541015625, 0.0038051605224609375, -0.0160064697265625, 0.003406524658203125, -0.0015096664428710938, -0.0160064697265625, 0.009613037109375, -0.017791748046875, -0.016448974609375, 0.007068634033203125, -0.0212860107421875, 0.0120086669921875, 0.00971221923828125, -0.03338623046875, 0.052459716796875, -0.006206512451171875, -0.04425048828125, -0.0053253173828125, 0.05474853515625, 0.031768798828125, -0.017486572265625, -0.0259246826171875, -0.042510986328125, 0.022247314453125, 0.02618408203125, 0.041229248046875, 0.04364013671875, -0.02703857421875, 0.0226898193359375, 0.037322998046875, 0.0023860931396484375, 0.0188751220703125, -0.029388427734375, 0.02301025390625, -0.0129547119140625, -0.0115814208984375, 0.0153350830078125, 0.01654052734375, -0.0013132095336914062, -0.0271759033203125, 0.00762939453125, -0.01312255859375, 0.0251922607421875, -0.00008374452590942383, 0.0085601806640625, -0.04779052734375, -0.07904052734375, 0.031219482421875, -0.0036220550537109375, 0.027252197265625, -0.004016876220703125, -0.004718780517578125, 0.03387451171875, -0.007022857666015625, -0.005741119384765625, -0.03045654296875, 0.0038738250732421875, -0.000942230224609375, 0.053070068359375, -0.03741455078125, 0.0030059814453125, -0.0214385986328125, -0.0187530517578125, 0.060882568359375, -0.01375579833984375, -0.09429931640625, 0.06591796875, 0.0040130615234375, 0.05511474609375, 0.058624267578125, -0.0135040283203125, 0.0235443115234375, 0.043792724609375, -0.032196044921875, -0.035369873046875, -0.04229736328125, 0.032684326171875, -0.057830810546875, -0.0136260986328125, -0.0281982421875, 0.002704620361328125, 0.042083740234375, 0.00542449951171875, 0.0012292861938476562, 0.02691650390625, -0.02081298828125, 0.042938232421875, 0.04071044921875, -0.01904296875, 0.002925872802734375, 0.0233001708984375, 0.034698486328125, -0.07000732421875, 0.01444244384765625, -0.045989990234375, -0.0270538330078125, -0.020660400390625, 0.0268096923828125, 0.01763916015625, 0.00325775146484375, 0.03497314453125, 0.0277557373046875, -0.00762939453125, 0.02313232421875, 0.0399169921875, 0.0169219970703125, -0.0263671875, 0.0216217041015625, 0.059661865234375, 0.019989013671875, -0.0123291015625, 0.01309967041015625, -0.021697998046875, -0.031768798828125, -0.0205078125, -0.0595703125, -0.0011644363403320312, 0.0295257568359375, -0.0022907257080078125, -0.034210205078125, 0.00878143310546875, -0.004917144775390625, 0.0193328857421875, -0.044097900390625, -0.031646728515625, 0.04327392578125, -0.015838623046875, -0.004695892333984375, -0.023651123046875, 0.01221466064453125, -0.017608642578125, -0.01065826416015625, 0.07891845703125, 0.0401611328125, -0.006366729736328125, -0.025634765625, -0.06439208984375, -0.039794921875, -0.012451171875, -0.02459716796875, -0.0284271240234375, 0.0062713623046875, 0.003704071044921875, 0.017242431640625, -0.021331787109375, -0.05511474609375, -0.01080322265625, 0.0187530517578125, 0.0240936279296875, 0.0267181396484375, 0.0026702880859375, 0.061614990234375, -0.0128173828125, 0.0537109375, 0.0227508544921875, 0.0252838134765625, -0.039794921875, -0.0219879150390625, -0.00037407875061035156, -0.0178985595703125, -0.0023860931396484375, 0.00861358642578125, 0.00783538818359375, -0.042510986328125, -0.0113372802734375, -0.00809478759765625, -0.03546142578125, -0.020294189453125, -0.003627777099609375, -0.01047515869140625, 0.07012939453125, 0.033233642578125, -0.0435791015625, 0.053619384765625, -0.056976318359375, -0.0701904296875, 0.007747650146484375, 0.020294189453125, 0.025970458984375, -0.01010894775390625, -0.0156402587890625, 0.021270751953125, -0.041046142578125, 0.08544921875, 0.07537841796875, -0.0192413330078125, 0.0465087890625, 0.013946533203125, -0.0190277099609375, 0.0004780292510986328, -0.0294952392578125, -0.00548553466796875, -0.0126800537109375, 0.046875, 0.008697509765625, 0.0041046142578125, 0.0537109375, -0.01328277587890625, 0.0160064697265625, -0.002285003662109375, 0.037994384765625, 0.00844573974609375, 0.00199127197265625, 0.012969970703125, -0.044158935546875, 0.008636474609375, -0.004154205322265625, -0.044097900390625, -0.09661865234375, 0.05706787109375, -0.0194854736328125, -0.01297760009765625, 0.00452423095703125, -0.001270294189453125, -0.004970550537109375, -0.043487548828125, 0.039398193359375, 0.0248260498046875, 0.02166748046875, 0.034881591796875, -0.01971435546875, 0.038787841796875, 0.01531982421875, 0.0174102783203125, -0.030029296875, -0.0235443115234375, -0.052886962890625, -0.029083251953125, -0.0204620361328125, -0.03265380859375, 0.0215911865234375, 0.01148223876953125, -0.016693115234375, 0.06591796875, -0.0286865234375, 0.032257080078125, 0.06072998046875, -0.048980712890625, -0.033538818359375, 0.0088958740234375, 0.0325927734375, 0.0120086669921875, 0.005001068115234375, 0.0279693603515625, -0.0295867919921875, -0.02008056640625, 0.01555633544921875, 0.01071929931640625, 0.061614990234375, -0.01122283935546875, -0.0238037109375, 0.0341796875, -0.04779052734375, -0.01088714599609375, 0.048553466796875, 0.019195556640625, -0.044677734375, -0.033447265625, 0.0341796875, -0.04107666015625, -0.03875732421875, 0.04541015625, -0.01119232177734375, 0.08111572265625, -0.0080413818359375, -0.007137298583984375, 0.0207366943359375, 0.044281005859375, -0.0263671875, 0.031951904296875, -0.04083251953125, 0.04156494140625, -0.01274871826171875, 0.0689697265625, -0.07208251953125, 0.0017175674438476562, 0.00656890869140625, 0.035400390625, -0.0285797119140625, 0.00177001953125, 0.000698089599609375, -0.01678466796875, -0.0360107421875, 0.0034503936767578125, -0.00449371337890625, 0.0292510986328125, 0.012542724609375, -0.0147857666015625, 0.0380859375, -0.0206756591796875, 0.03875732421875, -0.043853759765625, 0.0209197998046875, 0.01165008544921875, 0.025360107421875, 0.03753662109375, 0.02166748046875, 0.0159759521484375, 0.0204925537109375, -0.004512786865234375, 0.0195159912109375, -0.03546142578125, -0.01345062255859375, 0.0029582977294921875, -0.02947998046875, 0.0133819580078125, 0.049896240234375, -0.0219879150390625, 0.0292510986328125, -0.002979278564453125, -0.0289306640625, 0.01110076904296875, 0.002574920654296875, 0.02783203125, 0.018463134765625, -0.033660888671875, 0.028594970703125, 0.0300445556640625, 0.042388916015625, 0.0202484130859375, 0.0247039794921875, -0.0093536376953125, 0.03277587890625, 0.023040771484375, 0.04443359375, -0.04443359375, -0.0243072509765625, -0.0026454925537109375, -0.01611328125, 0.0074615478515625, -0.0098114013671875, 0.006256103515625, 0.0199737548828125, -0.005924224853515625, -0.02423095703125, -0.0364990234375, 0.0037860870361328125, 0.014892578125, 0.01837158203125, 0.0079498291015625, 0.0203094482421875, -0.037750244140625, -0.0161895751953125, 0.0153045654296875, 0.00745391845703125, 0.017913818359375, -0.00972747802734375, 0.03619384765625, -0.006694793701171875, 0.01125335693359375, -0.0028095245361328125, 0.02081298828125, -0.01554107666015625, 0.0006155967712402344, -0.018157958984375, -0.053558349609375, -0.004047393798828125, 0.0560302734375, 0.005687713623046875, -0.01404571533203125, 0.015869140625, 0.0675048828125, -0.006778717041015625, -0.0012807846069335938, 0.0950927734375, 0.0100250244140625, -0.01369476318359375, -0.047271728515625, 0.01079559326171875, 0.01629638671875, 0.01495361328125, 0.017974853515625, -0.016815185546875, 0.045989990234375, -0.0011720657348632812, 0.0091552734375, 0.0167083740234375, 0.0093994140625, 0.026580810546875, 0.02581787109375, 0.0187530517578125, 0.038543701171875, 0.005725860595703125, 0.0191650390625, 0.01544189453125, -0.006847381591796875, -0.042144775390625, -0.006244659423828125, -0.0157928466796875, 0.04486083984375, -0.0120849609375, -0.0175933837890625, -0.001422882080078125, 0.0030345916748046875, -0.002044677734375, 0.01812744140625, 0.0180816650390625, 0.007671356201171875, -0.01800537109375, -0.006038665771484375, 0.00789642333984375, 0.0074920654296875, 0.0018320083618164062, 0.081298828125, -0.0212860107421875, -0.0011577606201171875, 0.00033164024353027344, -0.01654052734375, -0.0254364013671875, -0.006961822509765625, 0.01123809814453125, -0.0186767578125, -0.01459503173828125, 0.01441192626953125, -0.060028076171875, -0.01265716552734375, 0.043792724609375, -0.01461029052734375, -0.00588226318359375, -0.0124359130859375, 0.0340576171875, -0.012176513671875, -0.0292510986328125, -0.032684326171875, -0.04351806640625, 0.0122833251953125, 0.02587890625, -0.0311431884765625, -0.01953125, -0.01343536376953125, 0.0176849365234375, 0.0576171875, 0.0140228271484375, 0.03436279296875, 0.0259552001953125, 0.0555419921875, 0.0298919677734375, -0.0083770751953125, 0.00792694091796875, -0.013031005859375, -0.0287933349609375, 0.0296173095703125, -0.0170440673828125, 0.040985107421875, -0.0205841064453125, 0.050628662109375, 0.047698974609375, 0.007720947265625, 0.03118896484375, -0.0509033203125, -0.0075531005859375, 0.0350341796875, 0.008209228515625, 0.033416748046875, -0.0264129638671875, -0.013397216796875, -0.033935546875, -0.0286712646484375, -0.01580810546875, -0.0088958740234375, -0.046539306640625, 0.0279083251953125, -0.01371002197265625, 0.0242462158203125, 0.00011837482452392578, -0.035980224609375, 0.006229400634765625, -0.001522064208984375, 0.037872314453125, -0.01384735107421875, 0.047271728515625, -0.00678253173828125, 0.029022216796875, -0.034332275390625, 0.01259613037109375, -0.01299285888671875, 0.00804901123046875, 0.0186920166015625, 0.01549530029296875, 0.03741455078125, -0.02783203125, -0.052825927734375, -0.027313232421875, -0.0006465911865234375, 0.004749298095703125, 0.017578125, -0.0179290771484375, 0.03472900390625, -0.07464599609375, -0.043914794921875, 0.0013675689697265625, 0.037811279296875, -0.10809326171875, -0.068359375, -0.042388916015625, 0.038421630859375, 0.0229644775390625, -0.037689208984375, -0.11328125, 0.037017822265625, -0.04364013671875, -0.036224365234375, -0.044586181640625, 0.008941650390625, 0.0030765533447265625, -0.006435394287109375, -0.016357421875, -0.0267486572265625, -0.0112152099609375, 0.0275726318359375, 0.0229034423828125, -0.0023345947265625, 0.035247802734375, 0.0141754150390625, -0.0677490234375, 0.0195770263671875, -0.004215240478515625, -0.00846099853515625, 0.003742218017578125, 0.0086517333984375, 0.0196533203125, 0.054962158203125, -0.017303466796875, -0.006069183349609375, -0.0146636962890625, -0.014129638671875, -0.0088653564453125, -0.033538818359375, -0.05145263671875, -0.03033447265625, 0.0904541015625, 0.0426025390625, 0.028900146484375, -0.0215911865234375, 0.0050201416015625, -0.0377197265625, -0.08062744140625, 0.0163116455078125, 0.041839599609375, -0.03948974609375, 0.028594970703125, 0.0107879638671875, -0.0207672119140625, -0.0217742919921875, 0.0177459716796875, -0.03277587890625, 0.00007444620132446289, -0.0033168792724609375, -0.0201263427734375, -0.016448974609375, -0.0191650390625, 0.004154205322265625, 0.0109405517578125, 0.03607177734375, -0.023284912109375, 0.0150299072265625, 0.00852203369140625, 0.04266357421875, 0.004302978515625, 0.031890869140625, -0.00750732421875, -0.01465606689453125, 0.035186767578125, -0.0489501953125, 0.039581298828125, 0.00748443603515625, 0.03643798828125, 0.002521514892578125, -0.009246826171875, 0.0008702278137207031, -0.021942138671875, 0.053985595703125, -0.04412841796875, 0.049346923828125, 0.0176849365234375, 0.04754638671875, -0.023590087890625, 0.05706787109375, 0.04229736328125, -0.049407958984375, 0.042999267578125, 0.0001291036605834961, 0.0161590576171875, 0.02130126953125, 0.0217132568359375, -0.010986328125, 0.00266265869140625, 0.0264739990234375, 0.007965087890625, 0.0027446746826171875 ]
3a0aa462ccc72b7c4ca52a3abeb7b87e892f4513
Wordpress Stackexchange Q: How Do I Programmatically Better Organize Custom Post Type Menus? A project I inherited had a dozen custom post types. Trouble is, they all come off the admin menu sidebar separately. It's not very tidy. Is there a plugin where I can make these subitems of a parent menu, or is there a way, programmatically, I can edit my theme's functions.php to make it make these as submenus? A: On the function to register a new custom post type can you set this CPT as Submenu to a exist menu item. Use the param show_in_menu A example: register_post_type( 'issue', apply_filters( 'wpit_register_issue_post_type', array( 'labels' => $issue_labels, 'rewrite' => $issue_rewrite, 'supports' => $issue_supports, 'taxonomies' => $issue_taxonomies, 'menu_position' => 5, 'public' => TRUE, 'show_ui' => TRUE, 'show_in_menu' => 'edit.php', 'can_export' => TRUE, 'capability_type' => 'post', 'query_var' => TRUE ) ) ); You find the string for the items on mouse over, like upload.phpon the item Media.
Q: How Do I Programmatically Better Organize Custom Post Type Menus? A project I inherited had a dozen custom post types. Trouble is, they all come off the admin menu sidebar separately. It's not very tidy. Is there a plugin where I can make these subitems of a parent menu, or is there a way, programmatically, I can edit my theme's functions.php to make it make these as submenus? A: On the function to register a new custom post type can you set this CPT as Submenu to a exist menu item. Use the param show_in_menu A example: register_post_type( 'issue', apply_filters( 'wpit_register_issue_post_type', array( 'labels' => $issue_labels, 'rewrite' => $issue_rewrite, 'supports' => $issue_supports, 'taxonomies' => $issue_taxonomies, 'menu_position' => 5, 'public' => TRUE, 'show_ui' => TRUE, 'show_in_menu' => 'edit.php', 'can_export' => TRUE, 'capability_type' => 'post', 'query_var' => TRUE ) ) ); You find the string for the items on mouse over, like upload.phpon the item Media.
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:425188", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70505" }
[ 0.05059814453125, 0.01461029052734375, 0.018341064453125, 0.0005297660827636719, 0.0199432373046875, -0.0306549072265625, 0.05853271484375, -0.054412841796875, -0.01165771484375, -0.0146636962890625, -0.00899505615234375, -0.0312042236328125, -0.0494384765625, -0.037384033203125, 0.0032291412353515625, -0.06170654296875, 0.0194244384765625, -0.03594970703125, 0.0009160041809082031, -0.0225067138671875, -0.004291534423828125, -0.003787994384765625, 0.03668212890625, 0.00943756103515625, 0.00954437255859375, -0.01174163818359375, 0.028472900390625, -0.009002685546875, 0.00147247314453125, -0.02001953125, 0.017913818359375, 0.020904541015625, 0.01399993896484375, -0.008758544921875, 0.039215087890625, 0.0311126708984375, 0.03717041015625, -0.0005674362182617188, 0.0256805419921875, 0.0221710205078125, 0.00299072265625, 0.019989013671875, 0.0264739990234375, 0.0213623046875, -0.006305694580078125, -0.03790283203125, 0.00244140625, -0.0328369140625, -0.016937255859375, -0.0294342041015625, 0.03289794921875, -0.0263824462890625, 0.0599365234375, -0.061187744140625, -0.0243682861328125, -0.0230865478515625, 0.00762176513671875, -0.056182861328125, 0.0257568359375, 0.019775390625, -0.00959014892578125, -0.025238037109375, 0.0272369384765625, -0.021514892578125, 0.0059814453125, 0.0016841888427734375, 0.006298065185546875, 0.0089111328125, -0.05279541015625, -0.004604339599609375, 0.040679931640625, -0.025421142578125, 0.0256500244140625, 0.004642486572265625, -0.005107879638671875, -0.050445556640625, 0.0200347900390625, -0.0306396484375, 0.018798828125, -0.0009708404541015625, 0.0304718017578125, 0.0003654956817626953, 0.00788116455078125, -0.000507354736328125, -0.000044405460357666016, 0.01224517822265625, 0.009002685546875, -0.01953125, -0.01788330078125, -0.01100921630859375, -0.01259613037109375, -0.046142578125, 0.01078033447265625, 0.04632568359375, 0.01097869873046875, -0.023956298828125, 0.030609130859375, 0.06768798828125, -0.006587982177734375, 0.0237884521484375, 0.0231781005859375, -0.051788330078125, 0.09149169921875, -0.05950927734375, 0.0284423828125, 0.021942138671875, -0.01392364501953125, -0.0166778564453125, 0.05517578125, 0.0194244384765625, 0.0003840923309326172, 0.056182861328125, -0.007080078125, -0.04449462890625, -0.01372528076171875, 0.034820556640625, 0.003582000732421875, -0.0066986083984375, 0.0136566162109375, 0.002910614013671875, -0.0012693405151367188, 0.0216827392578125, 0.00830078125, 0.01049041748046875, -0.0009379386901855469, 0.0127410888671875, 0.00788116455078125, -0.04754638671875, -0.031097412109375, 0.03363037109375, -0.041412353515625, 0.00731658935546875, 0.076171875, 0.0213165283203125, 0.0126495361328125, -0.0176239013671875, 0.01094818115234375, -0.043792724609375, 0.00293731689453125, -0.01488494873046875, 0.033294677734375, 0.012969970703125, 0.003749847412109375, 0.00848388671875, 0.0210723876953125, 0.037078857421875, 0.0209808349609375, -0.00652313232421875, -0.017181396484375, -0.03399658203125, 0.01151275634765625, -0.0309600830078125, 0.050506591796875, -0.01158905029296875, -0.0439453125, -0.04901123046875, 0.01654052734375, -0.034454345703125, -0.0036640167236328125, -0.065185546875, -0.01488494873046875, -0.0166778564453125, 0.0173492431640625, -0.073486328125, -0.051788330078125, 0.0333251953125, -0.0394287109375, -0.001781463623046875, 0.0269012451171875, 0.0026187896728515625, 0.038665771484375, -0.02313232421875, 0.016326904296875, 0.01313018798828125, 0.00005340576171875, 0.01800537109375, -0.010498046875, -0.0283660888671875, 0.04376220703125, 0.029083251953125, -0.00711822509765625, -0.02215576171875, 0.038360595703125, -0.0193634033203125, -0.0858154296875, 0.0672607421875, -0.01453399658203125, 0.0626220703125, 0.050933837890625, -0.002941131591796875, 0.005401611328125, -0.0013341903686523438, -0.01580810546875, -0.030364990234375, 0.0007982254028320312, 0.00646209716796875, 0.0100555419921875, 0.009124755859375, -0.010284423828125, 0.01039886474609375, -0.06988525390625, 0.03656005859375, -0.016326904296875, 0.0257110595703125, -0.0160675048828125, 0.029510498046875, -0.01044464111328125, 0.046722412109375, 0.00048065185546875, -0.00769805908203125, -0.0027942657470703125, -0.01413726806640625, 0.0158843994140625, -0.0889892578125, -0.0242156982421875, 0.02813720703125, 0.0210418701171875, 0.00409698486328125, -0.01473236083984375, -0.0093994140625, -0.004375457763671875, -0.00414276123046875, -0.0169677734375, 0.0765380859375, 0.051544189453125, 0.01480865478515625, -0.00930023193359375, -0.0028705596923828125, 0.0462646484375, 0.04083251953125, -0.046539306640625, -0.006725311279296875, 0.054229736328125, 0.01029205322265625, -0.0303802490234375, -0.012939453125, 0.0091094970703125, -0.068603515625, -0.0213470458984375, 0.052490234375, 0.03387451171875, 0.0290679931640625, -0.01245880126953125, -0.003986358642578125, 0.07672119140625, -0.016937255859375, 0.00676727294921875, -0.0004723072052001953, -0.0279541015625, 0.01837158203125, -0.00812530517578125, 0.031951904296875, 0.026702880859375, 0.004177093505859375, 0.0237884521484375, 0.03704833984375, -0.0078277587890625, -0.01708984375, 0.0267486572265625, -0.0182647705078125, 0.0098419189453125, -0.037445068359375, -0.038299560546875, -0.0037746429443359375, 0.057464599609375, 0.0113677978515625, 0.061798095703125, 0.033905029296875, -0.025299072265625, 0.00463104248046875, 0.0015201568603515625, -0.00832366943359375, 0.0106201171875, -0.01233673095703125, 0.0017557144165039062, -0.02557373046875, -0.0181732177734375, 0.0003170967102050781, 0.0216522216796875, -0.0249786376953125, -0.0212249755859375, 0.013580322265625, -0.0259552001953125, -0.005435943603515625, -0.0152740478515625, -0.0787353515625, 0.00872039794921875, 0.029052734375, -0.01849365234375, 0.0037631988525390625, 0.033843994140625, 0.004913330078125, -0.0219268798828125, -0.00443267822265625, 0.003017425537109375, -0.0016727447509765625, 0.04345703125, -0.0007457733154296875, 0.0193939208984375, -0.0028839111328125, 0.0416259765625, 0.043731689453125, -0.029632568359375, 0.01323699951171875, 0.0117645263671875, -0.01038360595703125, -0.030853271484375, 0.04638671875, 0.01291656494140625, -0.026519775390625, -0.027191162109375, 0.032470703125, 0.010772705078125, 0.037353515625, -0.01094818115234375, -0.044464111328125, -0.0037078857421875, 0.00936126708984375, -0.011688232421875, -0.02392578125, 0.0059814453125, -0.07586669921875, 0.0260162353515625, -0.0123443603515625, -0.02734375, -0.024322509765625, 0.022369384765625, 0.01068115234375, 0.021942138671875, -0.040740966796875, -0.01184844970703125, -0.018280029296875, -0.0401611328125, 0.004360198974609375, 0.00518035888671875, -0.003734588623046875, -0.000850677490234375, 0.05902099609375, 0.0124053955078125, -0.0677490234375, 0.0135498046875, 0.0231475830078125, -0.00867462158203125, 0.03887939453125, 0.057403564453125, -0.046051025390625, 0.04217529296875, 0.0143585205078125, 0.0028095245361328125, 0.049041748046875, -0.0418701171875, -0.0290985107421875, -0.03759765625, 0.00827789306640625, -0.0006303787231445312, 0.0196685791015625, 0.04669189453125, 0.031402587890625, 0.0156707763671875, -0.025726318359375, -0.00936126708984375, -0.019378662109375, -0.02838134765625, 0.000972747802734375, -0.0188751220703125, 0.00879669189453125, -0.029693603515625, 0.048980712890625, 0.0055999755859375, 0.017578125, 0.038787841796875, -0.0145111083984375, -0.024261474609375, -0.0127105712890625, -0.01189422607421875, -0.0229034423828125, 0.00870513916015625, -0.01800537109375, -0.01406097412109375, -0.0013456344604492188, 0.005275726318359375, -0.0136566162109375, 0.006839752197265625, -0.0180511474609375, -0.0721435546875, 0.036590576171875, -0.05474853515625, 0.0097198486328125, -0.05560302734375, -0.027313232421875, -0.0033321380615234375, 0.1046142578125, -0.04290771484375, 0.01006317138671875, -0.0243377685546875, 0.00360107421875, -0.0038509368896484375, -0.06427001953125, -0.044219970703125, 0.00010460615158081055, -0.046478271484375, 0.00565338134765625, 0.0012264251708984375, -0.020538330078125, -0.020477294921875, 0.0114593505859375, -0.05596923828125, -0.032562255859375, 0.050140380859375, -0.0240936279296875, -0.00017535686492919922, 0.0231475830078125, 0.004589080810546875, -0.04931640625, -0.04791259765625, 0.006252288818359375, -0.11431884765625, -0.02886962890625, -0.00940704345703125, 0.083251953125, 0.0166015625, -0.04046630859375, -0.03570556640625, 0.060699462890625, 0.001544952392578125, 0.006099700927734375, 0.027191162109375, 0.013275146484375, 0.01212310791015625, -0.022705078125, 0.0010957717895507812, -0.029022216796875, -0.0310211181640625, -0.029388427734375, -0.0273895263671875, 0.031829833984375, 0.01873779296875, 0.00286102294921875, 0.0252532958984375, -0.01334381103515625, -0.045379638671875, -0.025421142578125, -0.0733642578125, 0.0034961700439453125, -0.005237579345703125, -0.03204345703125, -0.041290283203125, -0.078369140625, -0.035491943359375, -0.039093017578125, -0.01250457763671875, 0.036041259765625, 0.03704833984375, 0.02935791015625, 0.016754150390625, -0.058837890625, -0.021209716796875, 0.012298583984375, -0.00005549192428588867, 0.024810791015625, -0.003993988037109375, -0.01070404052734375, 0.0455322265625, -0.0140380859375, -0.0034027099609375, 0.0131988525390625, 0.0084991455078125, 0.0267333984375, -0.0157318115234375, 0.0185546875, 0.0169525146484375, 0.0031833648681640625, -0.041961669921875, -0.0198974609375, -0.053558349609375, -0.030059814453125, 0.07928466796875, 0.01824951171875, 0.0653076171875, -0.048614501953125, -0.0224151611328125, 0.01364898681640625, -0.017333984375, 0.00859832763671875, 0.0033054351806640625, -0.004241943359375, -0.0220947265625, -0.02862548828125, 0.007122039794921875, 0.00812530517578125, 0.01151275634765625, 0.01250457763671875, 0.035003662109375, 0.0108795166015625, 0.019287109375, -0.01513671875, 0.00018537044525146484, 0.01419830322265625, 0.007457733154296875, -0.0021610260009765625, -0.06439208984375, 0.02032470703125, 0.04852294921875, -0.00887298583984375, -0.016754150390625, 0.04168701171875, 0.042724609375, 0.005359649658203125, 0.0044097900390625, -0.025543212890625, 0.01357269287109375, -0.0292816162109375, -0.01806640625, 0.00897216796875, -0.0108184814453125, -0.021728515625, 0.056365966796875, 0.01036834716796875, 0.002513885498046875, -0.004116058349609375, 0.037353515625, 0.039886474609375, 0.0272064208984375, 0.016082763671875, -0.01708984375, 0.00901031494140625, 0.002048492431640625, 0.01300811767578125, -0.0095367431640625, -0.002689361572265625, 0.0118560791015625, 0.0286407470703125, 0.004825592041015625, 0.002696990966796875, 0.0026397705078125, -0.0276031494140625, -0.0008845329284667969, 0.004566192626953125, -0.0262451171875, -0.053741455078125, -0.00826263427734375, 0.01800537109375, 0.0124969482421875, -0.04376220703125, -0.032501220703125, 0.007183074951171875, -0.06182861328125, -0.01016998291015625, 0.005786895751953125, -0.0677490234375, 0.033966064453125, 0.040496826171875, -0.051025390625, 0.0210113525390625, 0.045562744140625, -0.06939697265625, -0.0693359375, 0.005413055419921875, -0.0214691162109375, 0.048095703125, -0.03570556640625, -0.0159759521484375, -0.0019702911376953125, 0.0194244384765625, -0.025421142578125, 0.01126861572265625, 0.0579833984375, 0.0179290771484375, -0.026214599609375, 0.0265960693359375, -0.03668212890625, -0.022125244140625, -0.036712646484375, -0.038970947265625, -0.0648193359375, -0.0198974609375, 0.00125885009765625, -0.00235748291015625, -0.0013418197631835938, -0.02264404296875, -0.0274200439453125, 0.031005859375, 0.036865234375, 0.01039886474609375, -0.004146575927734375, 0.08172607421875, -0.03387451171875, 0.01479339599609375, 0.00485992431640625, 0.029632568359375, -0.0235595703125, 0.0155181884765625, -0.0260009765625, -0.072265625, -0.0157470703125, 0.0234527587890625, -0.0076141357421875, 0.0721435546875, 0.03204345703125, 0.019561767578125, 0.04315185546875, -0.017822265625, -0.007358551025390625, -0.01470947265625, 0.00539398193359375, -0.0517578125, 0.0295257568359375, -0.00007200241088867188, -0.03662109375, -0.01055908203125, 0.036529541015625, 0.01139068603515625, 0.01131439208984375, -0.025787353515625, 0.0043487548828125, 0.017486572265625, -0.0771484375, 0.05401611328125, 0.043731689453125, 0.01499176025390625, 0.03790283203125, -0.0223541259765625, 0.01200103759765625, 0.00926971435546875, -0.01306915283203125, 0.04052734375, 0.0401611328125, 0.06500244140625, -0.006191253662109375, -0.00446319580078125, 0.0271453857421875, -0.0372314453125, -0.01222991943359375, 0.041717529296875, 0.037353515625, -0.05828857421875, 0.00731658935546875, 0.00836944580078125, 0.0032634735107421875, 0.01033782958984375, 0.003200531005859375, -0.01215362548828125, 0.00605010986328125, -0.003910064697265625, -0.035736083984375, -0.031646728515625, -0.01910400390625, -0.0034122467041015625, -0.016082763671875, 0.0082550048828125, 0.035614013671875, 0.0133514404296875, 0.029449462890625, -0.0290374755859375, -0.0272369384765625, 0.0250244140625, -0.003887176513671875, 0.026947021484375, -0.043365478515625, -0.00568389892578125, -0.015380859375, -0.0014400482177734375, -0.023834228515625, -0.006072998046875, 0.02069091796875, 0.003910064697265625, 0.0095367431640625, 0.0443115234375, -0.01258087158203125, 0.0019550323486328125, 0.00862884521484375, -0.01116180419921875, -0.022735595703125, -0.01087188720703125, 0.0225830078125, 0.004459381103515625, -0.01824951171875, 0.0171356201171875, -0.031829833984375, -0.032318115234375, -0.0126800537109375, 0.0124359130859375, 0.11370849609375, -0.054901123046875, -0.0181732177734375, 0.038116455078125, 0.0167694091796875, -0.0307769775390625, -0.01006317138671875, 0.015167236328125, -0.06964111328125, -0.062286376953125, -0.00015723705291748047, -0.0650634765625, -0.0010404586791992188, -0.00984954833984375, -0.0182952880859375, 0.100341796875, -0.06463623046875, -0.00975799560546875, 0.035003662109375, 0.04986572265625, -0.003215789794921875, 0.0374755859375, -0.0200042724609375, 0.016326904296875, -0.02691650390625, 0.017608642578125, -0.027679443359375, 0.007053375244140625, -0.004756927490234375, 0.01363372802734375, 0.049407958984375, 0.01953125, -0.0543212890625, 0.007556915283203125, 0.06878662109375, 0.0242919921875, 0.0157470703125, 0.057342529296875, 0.0018033981323242188, -0.0089569091796875, 0.01396942138671875, -0.00048279762268066406, 0.042877197265625, -0.0184478759765625, -0.0288238525390625, 0.017913818359375, 0.031402587890625, 0.04229736328125, -0.026641845703125, -0.0537109375, -0.01593017578125, -0.00882720947265625, 0.0210418701171875, 0.01113128662109375, 0.02374267578125, -0.010711669921875, -0.0082244873046875, -0.01776123046875, 0.002719879150390625, -0.0162811279296875, 0.0276947021484375, -0.02008056640625, 0.049896240234375, -0.0087432861328125, 0.016265869140625, 0.0207061767578125, -0.03375244140625, 0.01433563232421875, 0.02703857421875, -0.06060791015625, 0.025634765625, -0.0189361572265625, 0.022216796875, -0.05682373046875, 0.00963592529296875, 0.04718017578125, 0.035919189453125, -0.03192138671875, -0.07159423828125, 0.015869140625, 0.0206298828125, 0.005847930908203125, 0.036590576171875, 0.0200042724609375, -0.017547607421875, 0.0316162109375, -0.0113677978515625, -0.00746917724609375, 0.011993408203125, 0.00881195068359375, 0.0005779266357421875, 0.00015306472778320312, -0.015380859375, 0.006313323974609375, -0.039215087890625, 0.01348876953125, 0.0210723876953125, 0.0655517578125, 0.01055908203125, 0.10650634765625, -0.0237884521484375, -0.03179931640625, 0.0031909942626953125, -0.0233001708984375, -0.0011749267578125, 0.00641632080078125, -0.026123046875, -0.0208282470703125, 0.0197601318359375, 0.029083251953125, 0.00579071044921875, 0.0107269287109375, 0.03326416015625, 0.023956298828125, -0.023284912109375, -0.01303863525390625, 0.033294677734375, -0.0087127685546875, -0.05096435546875, -0.0308074951171875, -0.0037364959716796875, 0.0182037353515625, 0.0115203857421875, 0.01983642578125, 0.0189666748046875, 0.0207977294921875, -0.002719879150390625, 0.0286865234375, -0.01511383056640625, -0.00910186767578125, 0.041351318359375, -0.0200958251953125, 0.0633544921875, 0.00978851318359375, -0.1265869140625, -0.0286712646484375, -0.0215911865234375, -0.04498291015625, 0.043701171875, 0.040863037109375, -0.0188751220703125, 0.009429931640625, 0.0201568603515625, 0.003879547119140625, -0.0038738250732421875, -0.01117706298828125, 0.02093505859375, 0.0386962890625, 0.028106689453125, 0.04150390625, -0.0697021484375, -0.03277587890625, -0.05413818359375, 0.023223876953125, 0.03582763671875, 0.0792236328125, 0.00666046142578125, 0.036895751953125, -0.049407958984375, -0.0009703636169433594, -0.061248779296875, -0.037200927734375, 0.024322509765625, -0.019989013671875, -0.0183563232421875, 0.01220703125, 0.005634307861328125, -0.009552001953125, 0.06292724609375, -0.06231689453125, -0.01629638671875, -0.00945281982421875, 0.0261993408203125, -0.04681396484375, 0.0247344970703125, -0.00873565673828125, 0.022796630859375, 0.00666046142578125, -0.03289794921875, 0.0298919677734375, 0.027099609375, 0.033447265625, 0.0089569091796875, 0.00537872314453125, -0.038299560546875, 0.0309906005859375, -0.0084991455078125, 0.051788330078125, 0.04681396484375, -0.0182952880859375, -0.0223846435546875, 0.0217437744140625, -0.02008056640625, 0.0236053466796875, 0.01154327392578125, 0.0640869140625, 0.019195556640625, -0.051177978515625, 0.0498046875, 0.0170440673828125, 0.0286865234375, -0.034210205078125, 0.0036602020263671875, 0.049957275390625, -0.0037097930908203125, 0.0157012939453125, -0.03497314453125, -0.02349853515625, -0.037628173828125, 0.0096588134765625, 0.0079803466796875, 0.01849365234375, -0.0299224853515625, -0.0275421142578125, -0.0345458984375, 0.0633544921875, 0.0328369140625, -0.054107666015625, 0.0018205642700195312, 0.00548553466796875, 0.01253509521484375, 0.0316162109375, 0.0020751953125, -0.00601959228515625, 0.0145416259765625, -0.0234832763671875, -0.0164031982421875, -0.051177978515625, 0.006633758544921875, -0.02142333984375, 0.03277587890625, 0.036102294921875, -0.042694091796875, -0.0165863037109375, 0.0139923095703125, 0.01922607421875, 0.0528564453125, 0.061126708984375, -0.031768798828125, -0.0195465087890625, 0.0030841827392578125, -0.00855255126953125, -0.01465606689453125, 0.0269622802734375, -0.072998046875, -0.0294952392578125, -0.010772705078125, 0.01345062255859375, 0.0308837890625, -0.0235137939453125, -0.044403076171875, 0.055145263671875, -0.00852203369140625, -0.025115966796875, -0.053131103515625, 0.05419921875, -0.0222625732421875, 0.02520751953125, -0.0018892288208007812, -0.006481170654296875, 0.033111572265625, 0.034759521484375, -0.01383209228515625, 0.03985595703125, -0.003948211669921875, -0.0020961761474609375, -0.04388427734375, -0.0176239013671875, -0.00478363037109375, -0.0107574462890625, 0.035125732421875, -0.011322021484375, 0.02978515625, 0.03607177734375, -0.044525146484375, -0.0206146240234375, -0.015625, 0.006908416748046875, -0.0123291015625, 0.00084686279296875, -0.0189208984375, -0.0019102096557617188, 0.0521240234375, 0.04010009765625, 0.0200958251953125, -0.0184173583984375, 0.01361083984375, -0.0472412109375, -0.03167724609375, -0.019439697265625, 0.0178680419921875, -0.051239013671875, -0.010772705078125, 0.015106201171875, 0.00783538818359375, -0.03692626953125, 0.0302886962890625, -0.006381988525390625, -0.0147552490234375, 0.03204345703125, -0.00994110107421875, -0.0264739990234375, -0.003025054931640625, 0.022705078125, -0.025482177734375, -0.0330810546875, 0.005435943603515625, 0.0008673667907714844, -0.020599365234375, -0.009521484375, -0.041656494140625, -0.00482940673828125, -0.04400634765625, 0.02728271484375, -0.0362548828125, 0.05877685546875, -0.06256103515625, 0.01189422607421875, -0.0167388916015625, -0.0018053054809570312, -0.005680084228515625, -0.0060272216796875, -0.023681640625, 0.042510986328125, 0.016815185546875, 0.0389404296875, 0.00374603271484375, 0.0302581787109375, -0.0177459716796875, 0.043304443359375, -0.006298065185546875, -0.0196685791015625, 0.01216888427734375, -0.0238494873046875, 0.0029087066650390625, -0.0154266357421875, -0.0092926025390625, -0.060089111328125, 0.0211639404296875, 0.02178955078125, -0.00514984130859375, 0.016021728515625 ]
3166c4b2a671ea896cc4fd2c35f329ac1e31a461
Wordpress Stackexchange Q: Replacing the Wordpress password validation I have a custom application with thousands of users who already have a password stored. I would like to set up a self hosted wordpress site to accompany that application and to use the usernames and encrypted passwords that already exist in that database. Is there a way to configure Wordpress to not use the normal list of users, but instead to validate usernames and passwords against another database on another server? We have a team of developers so if there was a way to write code to hook into the login process this would be acceptable. Does anyone have experience with this, or have any suggestions of where to look? A: Actually you can bypass login mechanism of wordpress by login user automatically (after they succesfuly passed with credentials from another website for example) with this function: wp_set_auth_cookie($user_id); for example with this you do login admin (user with id = 1) wp_set_auth_cookie(1); //after this admin is logged in so you can create user in wordpress with specified user privileges and then as user log with another credentials you can log him as this "placeholder" user.
Q: Replacing the Wordpress password validation I have a custom application with thousands of users who already have a password stored. I would like to set up a self hosted wordpress site to accompany that application and to use the usernames and encrypted passwords that already exist in that database. Is there a way to configure Wordpress to not use the normal list of users, but instead to validate usernames and passwords against another database on another server? We have a team of developers so if there was a way to write code to hook into the login process this would be acceptable. Does anyone have experience with this, or have any suggestions of where to look? A: Actually you can bypass login mechanism of wordpress by login user automatically (after they succesfuly passed with credentials from another website for example) with this function: wp_set_auth_cookie($user_id); for example with this you do login admin (user with id = 1) wp_set_auth_cookie(1); //after this admin is logged in so you can create user in wordpress with specified user privileges and then as user log with another credentials you can log him as this "placeholder" user. A: Investigating the filter authenticate, we can find that it is called inside the function wp_authenticate, which is a pluggable function. That means that it can be replaced by one of our own making. This is the original function, plus a marked entry point: function wp_authenticate($username, $password) { $username = sanitize_user($username); $password = trim($password); $user = apply_filters('authenticate', null, $username, $password); /* ENTRY POINT */ if ( $user == null ) { // TODO what should the error message be? (Or would these even happen?) // Only needed if all authentication handlers fail to return anything. $user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.')); } $ignore_codes = array('empty_username', 'empty_password'); if (is_wp_error($user) && !in_array($user->get_error_code(), $ignore_codes) ) { do_action('wp_login_failed', $username); } return $user; } The test was done creating a wp_authenticate function inside a Must Use plugin. On that entry point, I put the following: global $wpdb; $table = $wpdb->prefix . 'my_users'; $parent = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $table WHERE name='$username'" ) ); if( $username == $parent->name && $password == $parent->password ) $user = get_user_by( 'id', $parent->id ); The table wp_my_users is a simple test table, password is even plain text. The matter is how build the $user object completely based on a custom table. Or if it is feasible or advisable... Because in this test the ID of the users is the same, so we are giving back (get_user_by) to WordPress a user from its own table wp_users, but with credentials checked in a custom table wp_my_users. Notes: This answer doesn't goes beyond the analysis and hacking of the function wp_authenticate. No consideration is done about security, password management nor the wp_usermeta table. For reference, this is the content of $user: user | WP_User Object ( [data] => stdClass Object ( [ID] => 1 [user_login] => rod [user_pass] => $P$BQ8qnb3iYPRzisxYHUKq5X/GCQqhoz1 [user_nicename] => rod [user_email] => [email protected] [user_url] => [user_registered] => 2012-09-21 14:39:01 [user_activation_key] => [user_status] => 0 [display_name] => rod ) [ID] => 1 [caps] => Array ( [administrator] => 1 ) [cap_key] => wp_capabilities [roles] => Array ( [0] => administrator ) [allcaps] => Array ( [switch_themes] => 1 [edit_themes] => 1 [activate_plugins] => 1 [edit_plugins] => 1 [edit_users] => 1 [edit_files] => 1 [manage_options] => 1 [moderate_comments] => 1 [manage_categories] => 1 [manage_links] => 1 [upload_files] => 1 [import] => 1 [unfiltered_html] => 1 [edit_posts] => 1 [edit_others_posts] => 1 [edit_published_posts] => 1 [publish_posts] => 1 [edit_pages] => 1 [read] => 1 [level_10] => 1 [level_9] => 1 [level_8] => 1 [level_7] => 1 [level_6] => 1 [level_5] => 1 [level_4] => 1 [level_3] => 1 [level_2] => 1 [level_1] => 1 [level_0] => 1 [edit_others_pages] => 1 [edit_published_pages] => 1 [publish_pages] => 1 [delete_pages] => 1 [delete_others_pages] => 1 [delete_published_pages] => 1 [delete_posts] => 1 [delete_others_posts] => 1 [delete_published_posts] => 1 [delete_private_posts] => 1 [edit_private_posts] => 1 [read_private_posts] => 1 [delete_private_pages] => 1 [edit_private_pages] => 1 [read_private_pages] => 1 [delete_users] => 1 [create_users] => 1 [unfiltered_upload] => 1 [edit_dashboard] => 1 [update_plugins] => 1 [delete_plugins] => 1 [install_plugins] => 1 [update_themes] => 1 [install_themes] => 1 [update_core] => 1 [list_users] => 1 [remove_users] => 1 [add_users] => 1 [promote_users] => 1 [edit_theme_options] => 1 [delete_themes] => 1 [export] => 1 [administrator] => 1 ) [filter] => ) A: Simplest method add_filter( 'authenticate', 'my_auth', 10, 3 ); function my_auth( $user, $username, $password ){ // your validation here. return $user; } A: I think this plugin External Database Authentication fits your needs. From there you might enable already logged-in users setting the cookie when they login just using wp_set_auth_cookie as @Roman says.
wordpress
{ "language": "en", "length": 786, "provenance": "stackexchange_00019.jsonl.gz:425190", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70509" }
[ 0.078369140625, 0.007785797119140625, 0.005199432373046875, -0.0171051025390625, 0.0226898193359375, -0.05029296875, 0.0712890625, -0.0295867919921875, -0.056304931640625, -0.0016107559204101562, 0.005313873291015625, 0.014923095703125, -0.052886962890625, -0.03662109375, 0.01206207275390625, -0.055389404296875, 0.0008015632629394531, 0.02056884765625, 0.0205230712890625, -0.024688720703125, 0.019683837890625, -0.0232696533203125, 0.0175018310546875, 0.01184844970703125, 0.0200347900390625, -0.0116424560546875, 0.0791015625, -0.0179443359375, 0.036834716796875, 0.005832672119140625, 0.0308380126953125, -0.0697021484375, -0.0025539398193359375, 0.0635986328125, -0.0682373046875, -0.0305938720703125, -0.0017337799072265625, 0.030731201171875, -0.00121307373046875, 0.031829833984375, 0.0517578125, -0.0227203369140625, 0.0458984375, 0.03875732421875, 0.0026950836181640625, -0.04730224609375, 0.0782470703125, -0.032806396484375, 0.018035888671875, 0.0190887451171875, 0.016204833984375, 0.018585205078125, 0.0214691162109375, 0.006683349609375, -0.005290985107421875, 0.017364501953125, 0.00919342041015625, -0.0010881423950195312, 0.0477294921875, -0.003780364990234375, -0.042205810546875, -0.0280914306640625, 0.00902557373046875, -0.047119140625, 0.0010766983032226562, 0.007007598876953125, -0.01560211181640625, 0.01849365234375, -0.00444793701171875, -0.007572174072265625, -0.005756378173828125, -0.0189056396484375, -0.0267333984375, 0.006931304931640625, -0.02764892578125, 0.022064208984375, 0.003971099853515625, -0.0100860595703125, 0.0188446044921875, 0.0223846435546875, -0.0234222412109375, -0.0218505859375, -0.0251007080078125, -0.02789306640625, -0.00533294677734375, 0.0019159317016601562, -0.0222015380859375, 0.01216888427734375, 0.006557464599609375, -0.021820068359375, -0.003021240234375, -0.03790283203125, -0.0100555419921875, 0.033294677734375, -0.005519866943359375, -0.004947662353515625, 0.037384033203125, 0.039093017578125, 0.0037078857421875, 0.01268768310546875, -0.01119232177734375, -0.03759765625, 0.0079498291015625, -0.011627197265625, -0.0247955322265625, 0.033966064453125, 0.017059326171875, -0.015960693359375, -0.029632568359375, -0.0015916824340820312, -0.0207672119140625, -0.06329345703125, -0.03326416015625, -0.06781005859375, 0.0012884140014648438, 0.05230712890625, -0.01026153564453125, -0.004756927490234375, 0.0027790069580078125, -0.01515960693359375, -0.0260009765625, -0.014190673828125, -0.0298309326171875, -0.0119171142578125, 0.01409912109375, -0.03564453125, -0.00449371337890625, 0.0386962890625, -0.02197265625, 0.0244293212890625, -0.03759765625, -0.0006914138793945312, 0.0714111328125, 0.03631591796875, 0.014068603515625, -0.02703857421875, 0.052978515625, 0.01288604736328125, -0.0092010498046875, 0.02044677734375, 0.0107879638671875, -0.052642822265625, -0.05303955078125, -0.0031642913818359375, 0.0193023681640625, 0.00937652587890625, 0.0216522216796875, 0.0114593505859375, 0.013946533203125, -0.0013399124145507812, -0.006931304931640625, -0.004711151123046875, -0.0257568359375, 0.0198211669921875, 0.0826416015625, 0.0266571044921875, 0.0246124267578125, -0.00733184814453125, 0.00864410400390625, 0.030792236328125, -0.0145416259765625, -0.03900146484375, -0.0021381378173828125, -0.021728515625, -0.043365478515625, 0.0303955078125, -0.006771087646484375, -0.002742767333984375, 0.0295562744140625, -0.022247314453125, 0.0226287841796875, -0.0156402587890625, 0.058380126953125, 0.0189971923828125, 0.011444091796875, 0.0328369140625, -0.0292510986328125, 0.0574951171875, 0.01605224609375, 0.037628173828125, 0.0236968994140625, -0.031646728515625, 0.09002685546875, -0.00922393798828125, -0.0218353271484375, -0.0004336833953857422, 0.0122222900390625, 0.05615234375, 0.00617218017578125, 0.03631591796875, -0.0195465087890625, -0.0019683837890625, -0.0236358642578125, 0.035125732421875, -0.0287628173828125, -0.048370361328125, 0.031463623046875, 0.00537872314453125, -0.007625579833984375, 0.0211334228515625, 0.037109375, -0.00801849365234375, -0.011566162109375, -0.042724609375, -0.057830810546875, -0.0289764404296875, -0.00927734375, 0.025970458984375, -0.032958984375, 0.01971435546875, 0.02587890625, -0.00324249267578125, -0.004955291748046875, -0.03582763671875, -0.02313232421875, -0.0462646484375, -0.045684814453125, 0.048614501953125, 0.006999969482421875, 0.04840087890625, 0.008331298828125, -0.018402099609375, 0.00928497314453125, -0.0304412841796875, 0.01006317138671875, -0.044525146484375, 0.004241943359375, -0.0227203369140625, -0.00896453857421875, -0.01038360595703125, 0.00882720947265625, 0.04083251953125, 0.0218963623046875, 0.0277099609375, -0.0341796875, -0.022857666015625, -0.044952392578125, -0.0579833984375, -0.0032024383544921875, 0.062042236328125, 0.03857421875, 0.02996826171875, -0.0260467529296875, -0.02490234375, 0.039031982421875, -0.05999755859375, 0.0018939971923828125, -0.0142822265625, -0.0014934539794921875, 0.033843994140625, -0.0274505615234375, -0.00319671630859375, 0.00876617431640625, -0.056365966796875, -0.01273345947265625, 0.046234130859375, -0.007781982421875, 0.01453399658203125, -0.002437591552734375, -0.0135650634765625, -0.0162353515625, -0.043212890625, -0.002384185791015625, -0.0280609130859375, 0.00940704345703125, -0.0235443115234375, -0.00649261474609375, -0.0229034423828125, -0.0029354095458984375, -0.03125, 0.021392822265625, -0.054534912109375, 0.000621795654296875, -0.0032176971435546875, 0.037933349609375, -0.0006699562072753906, -0.016143798828125, -0.00875091552734375, 0.007358551025390625, -0.004840850830078125, -0.003139495849609375, -0.007205963134765625, -0.04144287109375, 0.00605010986328125, 0.00539398193359375, -0.044464111328125, 0.0175933837890625, 0.06280517578125, -0.0133209228515625, -0.03643798828125, 0.0245208740234375, -0.0081787109375, -0.039337158203125, 0.0306243896484375, -0.034332275390625, -0.039581298828125, -0.040252685546875, -0.04705810546875, 0.038909912109375, -0.05194091796875, -0.00563812255859375, 0.06829833984375, 0.026947021484375, -0.01528167724609375, -0.02264404296875, 0.03125, -0.005237579345703125, -0.0196533203125, -0.0206756591796875, -0.0160064697265625, -0.029449462890625, 0.0036144256591796875, 0.025421142578125, 0.046966552734375, 0.00946807861328125, -0.030487060546875, 0.0108184814453125, 0.039886474609375, 0.0095367431640625, 0.0092315673828125, -0.06512451171875, -0.05059814453125, 0.001987457275390625, -0.01007080078125, -0.00521087646484375, 0.0255584716796875, -0.0031833648681640625, 0.0262603759765625, 0.02471923828125, -0.0311737060546875, -0.0046539306640625, -0.046630859375, -0.05352783203125, -0.024505615234375, 0.01303863525390625, -0.0124969482421875, 0.0022563934326171875, 0.0335693359375, -0.0017681121826171875, -0.0249786376953125, -0.0274200439453125, 0.04541015625, 0.007904052734375, -0.041961669921875, -0.027618408203125, -0.026458740234375, 0.0196990966796875, -0.006214141845703125, -0.0019350051879882812, -0.009490966796875, 0.0216827392578125, -0.01160430908203125, 0.0283660888671875, 0.00705718994140625, 0.018768310546875, -0.00980377197265625, -0.0204010009765625, 0.0208282470703125, -0.0010213851928710938, -0.044464111328125, 0.01203155517578125, 0.0247344970703125, -0.0212860107421875, 0.00296783447265625, -0.005435943603515625, -0.05169677734375, 0.0308074951171875, -0.0239715576171875, 0.02874755859375, 0.02020263671875, -0.007476806640625, -0.006702423095703125, 0.0009579658508300781, 0.0156707763671875, 0.038421630859375, -0.003139495849609375, 0.01263427734375, -0.042572021484375, -0.006221771240234375, -0.0102081298828125, -0.0041351318359375, 0.011871337890625, -0.0237884521484375, 0.0099334716796875, -0.08148193359375, 0.0733642578125, -0.007038116455078125, -0.004001617431640625, -0.060638427734375, -0.044342041015625, -0.00826263427734375, 0.12164306640625, -0.0283355712890625, -0.01467132568359375, 0.047698974609375, 0.0216217041015625, -0.050140380859375, -0.0014657974243164062, -0.06268310546875, -0.0197601318359375, -0.041961669921875, -0.03302001953125, -0.037322998046875, -0.0250396728515625, 0.041534423828125, -0.06781005859375, 0.021209716796875, -0.05560302734375, 0.0140380859375, -0.0299835205078125, 0.03570556640625, -0.0435791015625, 0.033172607421875, -0.06060791015625, 0.037811279296875, -0.041595458984375, -0.07696533203125, -0.01200103759765625, -0.0147552490234375, 0.056884765625, 0.0164337158203125, -0.0198211669921875, -0.0207061767578125, 0.02886962890625, 0.0094146728515625, -0.0128021240234375, 0.01206207275390625, -0.00836944580078125, 0.027069091796875, -0.026458740234375, -0.011871337890625, -0.0246429443359375, -0.00774383544921875, -0.044036865234375, -0.042755126953125, -0.0364990234375, -0.032562255859375, -0.00849151611328125, 0.00390625, 0.002758026123046875, -0.043182373046875, -0.021820068359375, -0.00884246826171875, 0.031402587890625, -0.01355743408203125, 0.0079193115234375, -0.0265350341796875, -0.04058837890625, 0.059234619140625, 0.0196380615234375, -0.0289154052734375, -0.0009107589721679688, 0.043212890625, 0.01513671875, -0.03253173828125, -0.03533935546875, -0.00824737548828125, 0.0204620361328125, -0.00360107421875, 0.01617431640625, -0.01812744140625, -0.00958251953125, 0.042022705078125, -0.0175018310546875, -0.010833740234375, -0.001323699951171875, -0.0038394927978515625, -0.0021190643310546875, -0.044281005859375, 0.0205230712890625, -0.0078277587890625, 0.025787353515625, 0.0202178955078125, 0.022613525390625, 0.01019287109375, 0.030975341796875, -0.039154052734375, 0.026336669921875, -0.05657958984375, 0.0163116455078125, -0.054046630859375, 0.02496337890625, -0.0357666015625, -0.046142578125, -0.036865234375, 0.02001953125, -0.018157958984375, -0.01136016845703125, -0.008056640625, -0.0131988525390625, -0.02130126953125, 0.01352691650390625, 0.0240631103515625, -0.00518035888671875, 0.0172882080078125, -0.01332855224609375, -0.03594970703125, 0.12408447265625, 0.0113677978515625, -0.062744140625, 0.050140380859375, -0.03228759765625, 0.036376953125, 0.036407470703125, -0.0269012451171875, 0.034027099609375, -0.03179931640625, -0.0144195556640625, 0.0029697418212890625, -0.053375244140625, -0.053192138671875, -0.044708251953125, -0.0268096923828125, -0.00466156005859375, -0.016510009765625, 0.033416748046875, 0.0266571044921875, -0.004364013671875, 0.027801513671875, -0.0133819580078125, 0.041656494140625, 0.06719970703125, -0.0113677978515625, 0.01088714599609375, 0.043365478515625, -0.0270233154296875, -0.01232147216796875, 0.0135498046875, -0.04608154296875, -0.05181884765625, -0.00251007080078125, 0.0443115234375, 0.0230560302734375, 0.031646728515625, -0.0118408203125, 0.00807952880859375, 0.0008358955383300781, 0.0175933837890625, -0.05377197265625, -0.052947998046875, -0.0206146240234375, 0.005847930908203125, 0.026458740234375, -0.04443359375, 0.00415802001953125, -0.0246734619140625, -0.01267242431640625, -0.01849365234375, 0.0298614501953125, -0.014434814453125, -0.0312042236328125, -0.034576416015625, 0.0154876708984375, -0.0131072998046875, -0.0343017578125, 0.0124969482421875, -0.0036067962646484375, 0.0024394989013671875, 0.0079193115234375, 0.01372528076171875, -0.01392364501953125, -0.00585174560546875, -0.0205535888671875, 0.0154266357421875, -0.012481689453125, 0.0198822021484375, 0.01104736328125, -0.01239776611328125, -0.0533447265625, -0.0034389495849609375, -0.0347900390625, -0.01059722900390625, 0.01059722900390625, 0.019805908203125, -0.03948974609375, -0.0006570816040039062, 0.021148681640625, -0.002979278564453125, 0.01371002197265625, -0.01549530029296875, -0.040313720703125, 0.0032501220703125, 0.0264892578125, -0.018707275390625, -0.019989013671875, 0.048736572265625, 0.019195556640625, 0.029815673828125, 0.0225982666015625, 0.0208282470703125, -0.01311492919921875, -0.0156707763671875, -0.0008864402770996094, -0.0199737548828125, -0.0306549072265625, -0.032379150390625, 0.0284423828125, 0.0295257568359375, 0.0380859375, -0.0027008056640625, 0.017364501953125, -0.034088134765625, -0.0033416748046875, -0.02435302734375, 0.04437255859375, -0.029083251953125, -0.0131072998046875, 0.00725555419921875, 0.0006303787231445312, 0.038848876953125, -0.01226043701171875, -0.0046539306640625, 0.015289306640625, -0.00815582275390625, 0.01502227783203125, 0.00279998779296875, -0.02069091796875, 0.0335693359375, 0.047393798828125, -0.010772705078125, 0.027618408203125, 0.0280609130859375, 0.0080108642578125, -0.0027294158935546875, -0.0219879150390625, -0.0411376953125, -0.0113525390625, 0.03009033203125, 0.008056640625, -0.00804901123046875, 0.048675537109375, -0.017242431640625, 0.005115509033203125, 0.085693359375, 0.057403564453125, -0.10614013671875, 0.00272369384765625, -0.0031795501708984375, -0.0015583038330078125, 0.014007568359375, 0.01067352294921875, -0.0330810546875, -0.031982421875, 0.03131103515625, -0.0165557861328125, -0.017059326171875, 0.00923919677734375, 0.009765625, 0.007080078125, -0.01151275634765625, 0.044097900390625, 0.0021991729736328125, 0.0020160675048828125, -0.003570556640625, -0.0106201171875, 0.03546142578125, -0.01323699951171875, -0.0013866424560546875, 0.01432037353515625, -0.034423828125, -0.0635986328125, -0.010406494140625, -0.0180206298828125, -0.026611328125, 0.01337432861328125, 0.0111541748046875, 0.0626220703125, 0.0260467529296875, 0.0243988037109375, -0.02911376953125, -0.006351470947265625, 0.036468505859375, 0.0218658447265625, -0.027313232421875, -0.01220703125, 0.015380859375, -0.0364990234375, 0.005329132080078125, -0.01092529296875, -0.0167083740234375, -0.00608062744140625, -0.00789642333984375, 0.06378173828125, 0.00972747802734375, -0.0222320556640625, 0.032196044921875, 0.01351165771484375, -0.0021381378173828125, -0.00629425048828125, 0.01367950439453125, -0.0665283203125, -0.049530029296875, -0.003143310546875, -0.06756591796875, -0.0180206298828125, -0.0156097412109375, -0.0888671875, 0.12890625, 0.00428009033203125, 0.035980224609375, -0.00574493408203125, 0.040985107421875, -0.0343017578125, 0.02587890625, -0.045806884765625, 0.0633544921875, 0.003570556640625, 0.0450439453125, -0.04034423828125, -0.006134033203125, 0.00765228271484375, 0.008514404296875, 0.04364013671875, 0.0194549560546875, -0.056427001953125, -0.027313232421875, -0.0278472900390625, 0.00836181640625, -0.01314544677734375, 0.04583740234375, 0.0005831718444824219, 0.03668212890625, 0.0352783203125, -0.055694580078125, 0.0213623046875, -0.02435302734375, -0.007442474365234375, 0.0163421630859375, 0.0057830810546875, -0.0034389495849609375, 0.033538818359375, 0.017303466796875, -0.07769775390625, 0.0290069580078125, 0.047698974609375, -0.003803253173828125, 0.043121337890625, 0.0243072509765625, 0.055999755859375, -0.0238037109375, 0.004428863525390625, -0.0276641845703125, 0.050323486328125, -0.01087188720703125, -0.0008602142333984375, 0.048919677734375, 0.02752685546875, -0.0006279945373535156, 0.01458740234375, 0.005863189697265625, 0.0205078125, -0.004772186279296875, 0.05047607421875, 0.0163726806640625, 0.0230255126953125, -0.031829833984375, 0.0180511474609375, 0.0184478759765625, 0.055511474609375, -0.046630859375, -0.0204620361328125, 0.0087432861328125, 0.0110931396484375, 0.044586181640625, -0.0007977485656738281, 0.0701904296875, 0.01416015625, 0.005771636962890625, -0.02728271484375, -0.000058710575103759766, 0.0214996337890625, -0.025054931640625, -0.007904052734375, 0.043914794921875, 0.022216796875, 0.0171051025390625, -0.004856109619140625, -0.0272064208984375, 0.011932373046875, 0.025848388671875, 0.01187896728515625, 0.023681640625, 0.0022449493408203125, 0.001720428466796875, -0.008575439453125, 0.0136871337890625, 0.0019245147705078125, 0.0271453857421875, -0.040557861328125, -0.0098876953125, 0.010986328125, 0.038604736328125, -0.0196990966796875, -0.017333984375, 0.039459228515625, 0.050506591796875, -0.04534912109375, -0.038360595703125, 0.0088958740234375, -0.01434326171875, 0.012939453125, -0.00616455078125, 0.0008625984191894531, 0.0008592605590820312, -0.020965576171875, -0.033966064453125, 0.0318603515625, 0.0247039794921875, 0.0212249755859375, 0.055572509765625, -0.00024437904357910156, -0.0032749176025390625, -0.0191802978515625, -0.01580810546875, 0.0269317626953125, 0.0408935546875, -0.07452392578125, -0.0178375244140625, -0.0055389404296875, -0.0309600830078125, 0.0197601318359375, 0.0345458984375, -0.0222625732421875, 0.0216217041015625, 0.029266357421875, -0.0223541259765625, 0.0205535888671875, 0.01451873779296875, 0.0053558349609375, -0.0472412109375, -0.0029449462890625, -0.0250396728515625, -0.050048828125, -0.021453857421875, -0.0072784423828125, 0.015625, -0.014923095703125, 0.08306884765625, -0.0215911865234375, -0.005168914794921875, -0.027191162109375, 0.0161285400390625, -0.03131103515625, -0.005084991455078125, -0.025482177734375, 0.007198333740234375, 0.0213165283203125, 0.007381439208984375, -0.0184478759765625, 0.0634765625, -0.013946533203125, 0.0125579833984375, 0.049530029296875, -0.06683349609375, 0.00213623046875, 0.0181121826171875, 0.0082855224609375, -0.038360595703125, -0.08697509765625, -0.031982421875, 0.06170654296875, -0.0205841064453125, 0.0275421142578125, -0.032440185546875, 0.029876708984375, -0.0240020751953125, -0.0159759521484375, -0.0105133056640625, -0.032501220703125, -0.01739501953125, 0.023773193359375, -0.0155181884765625, -0.0008883476257324219, -0.0162811279296875, -0.0278778076171875, -0.012298583984375, 0.016632080078125, -0.026641845703125, 0.0083465576171875, -0.057769775390625, 0.022552490234375, 0.0723876953125, 0.08270263671875, 0.041107177734375, 0.0287017822265625, 0.0213775634765625, -0.03424072265625, 0.0168304443359375, -0.03363037109375, -0.033721923828125, -0.039520263671875, 0.0025348663330078125, 0.0188751220703125, -0.024688720703125, -0.03302001953125, -0.06982421875, 0.0159454345703125, 0.004146575927734375, -0.00555419921875, -0.07269287109375, 0.049591064453125, -0.018798828125, 0.055938720703125, -0.054534912109375, -0.035491943359375, 0.0177459716796875, 0.0170440673828125, -0.01090240478515625, -0.03131103515625, -0.031982421875, 0.016876220703125, -0.039398193359375, 0.0041046142578125, 0.03656005859375, -0.0013628005981445312, -0.033447265625, -0.0041656494140625, -0.020263671875, 0.044281005859375, -0.051483154296875, -0.01080322265625, -0.0055084228515625, 0.0088958740234375, -0.0188751220703125, -0.07318115234375, 0.00890350341796875, -0.06494140625, -0.0084381103515625, 0.004398345947265625, -0.01081085205078125, 0.017303466796875, -0.048614501953125, -0.08740234375, 0.045684814453125, -0.004489898681640625, -0.030853271484375, -0.056793212890625, 0.02392578125, -0.0230255126953125, 0.00539398193359375, -0.0120391845703125, -0.0153961181640625, 0.01025390625, 0.03900146484375, 0.0032672882080078125, -0.020172119140625, 0.0128936767578125, 0.0259246826171875, -0.036956787109375, 0.033447265625, 0.0384521484375, -0.0211334228515625, 0.00661468505859375, -0.0005626678466796875, 0.03497314453125, 0.054443359375, -0.00991058349609375, -0.0005998611450195312, 0.0010976791381835938, -0.054718017578125, -0.020172119140625, 0.0008940696716308594, 0.0110321044921875, -0.01142120361328125, 0.042633056640625, 0.033233642578125, -0.00024116039276123047, -0.0059051513671875, -0.04193115234375, -0.041900634765625, 0.0270538330078125, -0.027099609375, -0.006282806396484375, -0.06512451171875, -0.004703521728515625, 0.001880645751953125, 0.0004127025604248047, -0.0289306640625, 0.001438140869140625, -0.029327392578125, -0.0191802978515625, 0.0131378173828125, -0.0154876708984375, 0.00441741943359375, -0.01123809814453125, 0.0816650390625, -0.050872802734375, -0.0105743408203125, 0.0192718505859375, 0.007129669189453125, 0.033599853515625, 0.0081787109375, 0.013671875, 0.0103759765625, -0.04803466796875, 0.01556396484375, 0.00048828125, 0.04351806640625, -0.05059814453125, -0.0301971435546875, -0.01525115966796875, 0.014556884765625, 0.0014219284057617188, 0.0209503173828125, 0.0008902549743652344, 0.0192718505859375, 0.0264129638671875, 0.004489898681640625, -0.00438690185546875, -0.111572265625, -0.03863525390625, 0.0168609619140625, 0.0246124267578125, -0.036224365234375, 0.043670654296875, -0.021453857421875, -0.001712799072265625, -0.0004856586456298828, 0.01549530029296875, -0.04449462890625, 0.0406494140625, 0.0279083251953125, 0.005664825439453125, 0.0318603515625 ]
275be42787b6130f667b9de314486c9785e46db2
Wordpress Stackexchange Q: How to Limit Bandwidth for Multisite? I know this has been discussed all over the net throughout the years, but I can't find a recent article. Is there any way to limit bandwidth on a per-site basis for multi-site? I'd like to limit data per site per month, much like a hosting platform does. A: Bandwidth limiting is sometimes done in an application but it depends on what you're trying to accomplish by the limiting and what protocols and resource types are served. If you want to keep track of how many bytes have been transferred for each site you serve, and then stop serving a site after it reaches a monthly quota, you are better off doing that in a load balancer or reverse proxy. A comparable WordPress plugin would be overly complex to produce and costly to use due to added inefficiencies.
Q: How to Limit Bandwidth for Multisite? I know this has been discussed all over the net throughout the years, but I can't find a recent article. Is there any way to limit bandwidth on a per-site basis for multi-site? I'd like to limit data per site per month, much like a hosting platform does. A: Bandwidth limiting is sometimes done in an application but it depends on what you're trying to accomplish by the limiting and what protocols and resource types are served. If you want to keep track of how many bytes have been transferred for each site you serve, and then stop serving a site after it reaches a monthly quota, you are better off doing that in a load balancer or reverse proxy. A comparable WordPress plugin would be overly complex to produce and costly to use due to added inefficiencies.
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:425217", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70632" }
[ 0.0193023681640625, -0.0223236083984375, 0.0011768341064453125, -0.01268768310546875, -0.0287017822265625, -0.013916015625, -0.01181793212890625, -0.007289886474609375, 0.0428466796875, 0.017425537109375, -0.03765869140625, 0.0135040283203125, -0.02117919921875, -0.0248565673828125, -0.04071044921875, -0.004364013671875, 0.041748046875, 0.0185546875, 0.038848876953125, 0.004146575927734375, 0.00505828857421875, 0.050933837890625, -0.0205841064453125, 0.08526611328125, -0.0137939453125, 0.03558349609375, 0.0426025390625, -0.01285552978515625, -0.01009368896484375, -0.029266357421875, 0.007354736328125, 0.01399993896484375, 0.0164031982421875, 0.00876617431640625, -0.0257110595703125, -0.041900634765625, -0.03961181640625, 0.01506805419921875, -0.01551055908203125, 0.0416259765625, 0.0159149169921875, -0.00594329833984375, 0.025299072265625, 0.03289794921875, 0.005336761474609375, -0.052490234375, 0.0296630859375, -0.0684814453125, 0.0116729736328125, -0.04290771484375, -0.0055084228515625, -0.00818634033203125, 0.021331787109375, -0.0004763603210449219, -0.037872314453125, -0.0200653076171875, 0.039306640625, 0.0202484130859375, 0.03607177734375, -0.076171875, -0.05865478515625, 0.0035152435302734375, 0.03448486328125, 0.014801025390625, -0.0003802776336669922, -0.0154266357421875, -0.010223388671875, 0.017120361328125, -0.0220184326171875, 0.004352569580078125, 0.0301361083984375, -0.01546478271484375, 0.00835418701171875, 0.01226043701171875, -0.0174560546875, -0.0251312255859375, -0.01311492919921875, -0.0162506103515625, 0.0419921875, 0.002254486083984375, -0.0197906494140625, -0.031005859375, -0.0088653564453125, -0.01538848876953125, -0.017852783203125, -0.0035552978515625, -0.0218353271484375, 0.01508331298828125, -0.00952911376953125, 0.02618408203125, -0.02764892578125, 0.04266357421875, -0.0034275054931640625, 0.0178070068359375, -0.0294952392578125, 0.01461029052734375, 0.044403076171875, 0.0171966552734375, 0.0119781494140625, -0.0204925537109375, -0.0213623046875, -0.0239715576171875, -0.0302581787109375, 0.0113983154296875, 0.0287628173828125, 0.00852203369140625, -0.034332275390625, -0.02313232421875, 0.055572509765625, 0.03326416015625, -0.0002968311309814453, 0.034637451171875, -0.0016679763793945312, -0.00830078125, -0.042449951171875, -0.0190582275390625, -0.036376953125, -0.004169464111328125, -0.0121307373046875, -0.03277587890625, -0.005035400390625, 0.0155792236328125, -0.0031070709228515625, -0.01308441162109375, -0.0144500732421875, -0.0262451171875, -0.0063018798828125, -0.0291290283203125, -0.055572509765625, 0.048980712890625, -0.02398681640625, 0.002391815185546875, 0.01216888427734375, 0.027557373046875, -0.003662109375, -0.0270233154296875, 0.0672607421875, 0.00829315185546875, -0.0108489990234375, 0.0180206298828125, -0.0026493072509765625, -0.02056884765625, -0.0281219482421875, -0.0283966064453125, 0.0192718505859375, 0.02191162109375, 0.0283050537109375, 0.0202484130859375, 0.0099334716796875, -0.0215911865234375, -0.0020751953125, 0.002758026123046875, 0.0467529296875, -0.01340484619140625, -0.0295562744140625, -0.044219970703125, 0.013519287109375, -0.032745361328125, -0.023529052734375, -0.04632568359375, -0.0142974853515625, -0.0118865966796875, 0.035003662109375, -0.007015228271484375, -0.00572967529296875, 0.00004214048385620117, -0.0122528076171875, 0.01062774658203125, 0.0271453857421875, -0.051422119140625, 0.0106658935546875, -0.0167999267578125, 0.06451416015625, 0.0010557174682617188, -0.01058197021484375, 0.037750244140625, 0.020477294921875, 0.0016279220581054688, 0.0203857421875, 0.01168060302734375, -0.01555633544921875, -0.024017333984375, 0.05419921875, -0.0292205810546875, -0.01461029052734375, -0.031768798828125, 0.01541900634765625, 0.0199737548828125, 0.01554107666015625, 0.032867431640625, 0.01302337646484375, -0.01139068603515625, -0.003448486328125, -0.036590576171875, 0.0004570484161376953, -0.02069091796875, -0.01154327392578125, 0.0028476715087890625, -0.01067352294921875, 0.0079498291015625, 0.005352020263671875, -0.01026153564453125, 0.0202789306640625, 0.0058746337890625, 0.0233917236328125, -0.0011281967163085938, -0.005626678466796875, 0.01129913330078125, 0.00623321533203125, 0.006816864013671875, -0.004344940185546875, 0.0022716522216796875, 0.00782012939453125, -0.06512451171875, -0.03204345703125, 0.01849365234375, 0.006015777587890625, -0.003765106201171875, 0.01097869873046875, -0.00441741943359375, 0.00653076171875, 0.017791748046875, -0.017181396484375, -0.004573822021484375, 0.025604248046875, -0.022369384765625, -0.0151214599609375, -0.0170745849609375, 0.0167388916015625, -0.00824737548828125, 0.0011968612670898438, 0.034088134765625, 0.031646728515625, 0.08697509765625, 0.025054931640625, 0.0005421638488769531, 0.0241241455078125, -0.07281494140625, 0.00881195068359375, 0.0274810791015625, 0.0302581787109375, 0.036224365234375, 0.0024929046630859375, 0.0268707275390625, 0.005207061767578125, -0.08282470703125, 0.00047850608825683594, 0.0177459716796875, 0.032958984375, 0.0218658447265625, -0.00693511962890625, -0.044952392578125, 0.032440185546875, -0.047149658203125, 0.0204010009765625, 0.0195465087890625, 0.00689697265625, -0.01146697998046875, -0.0062713623046875, 0.00839996337890625, 0.0262908935546875, 0.06634521484375, -0.02496337890625, 0.05096435546875, -0.0020351409912109375, 0.0108795166015625, 0.022552490234375, 0.0200042724609375, 0.0200958251953125, -0.0015354156494140625, 0.005405426025390625, -0.07855224609375, 0.0066070556640625, -0.0102691650390625, 0.0413818359375, -0.0247039794921875, -0.0286865234375, -0.00927734375, 0.02899169921875, -0.00457000732421875, -0.0110015869140625, 0.0189971923828125, -0.0285491943359375, -0.0242919921875, 0.01067352294921875, -0.008880615234375, -0.01297760009765625, -0.020416259765625, -0.00872802734375, -0.03692626953125, -0.00026535987854003906, 0.006404876708984375, -0.036407470703125, 0.025054931640625, 0.034912109375, -0.037689208984375, -0.00787353515625, -0.053619384765625, 0.045928955078125, -0.06048583984375, 0.0419921875, 0.058929443359375, -0.02557373046875, 0.025665283203125, -0.013580322265625, 0.01953125, -0.00971221923828125, 0.0013532638549804688, -0.0283355712890625, 0.005954742431640625, -0.0958251953125, -0.0205535888671875, -0.0052642822265625, -0.09771728515625, 0.0107574462890625, 0.0030670166015625, -0.035888671875, -0.045135498046875, -0.0268402099609375, 0.042236328125, -0.005039215087890625, -0.034912109375, 0.00321197509765625, -0.00913238525390625, -0.004627227783203125, -0.0132293701171875, 0.006866455078125, 0.0022945404052734375, -0.0142669677734375, -0.04022216796875, -0.039398193359375, -0.0662841796875, -0.0625, 0.002696990966796875, 0.0099639892578125, 0.00818634033203125, -0.0127105712890625, 0.068359375, -0.00576019287109375, -0.09381103515625, -0.06402587890625, 0.005584716796875, -0.021148681640625, -0.01549530029296875, 0.002178192138671875, -0.028961181640625, -0.016021728515625, -0.0111541748046875, -0.0124359130859375, 0.040313720703125, -0.031982421875, 0.0211029052734375, -0.01052093505859375, -0.0214691162109375, 0.004974365234375, -0.00897979736328125, 0.00019216537475585938, -0.0245361328125, -0.02142333984375, -0.055511474609375, -0.0230865478515625, 0.00543212890625, -0.04632568359375, -0.0194854736328125, 0.023773193359375, -0.0172576904296875, -0.01136016845703125, -0.005199432373046875, 0.025970458984375, -0.02301025390625, -0.00977325439453125, -0.04168701171875, 0.05584716796875, 0.0200042724609375, 0.02923583984375, -0.0202484130859375, 0.032958984375, -0.0179443359375, 0.046905517578125, 0.022186279296875, 0.0018739700317382812, -0.0074310302734375, 0.030029296875, -0.0257415771484375, -0.0018033981323242188, 0.012786865234375, -0.005878448486328125, 0.063232421875, -0.039703369140625, -0.02398681640625, -0.0218658447265625, 0.08154296875, 0.0012760162353515625, -0.0129241943359375, -0.00717926025390625, 0.01465606689453125, -0.0153961181640625, -0.057647705078125, 0.00380706787109375, -0.00457763671875, 0.004608154296875, -0.0099639892578125, -0.03619384765625, 0.00876617431640625, -0.01074981689453125, -0.0060882568359375, 0.03302001953125, -0.036407470703125, 0.00893402099609375, -0.0596923828125, -0.0191192626953125, -0.0230865478515625, -0.01546478271484375, -0.0648193359375, 0.016021728515625, -0.06475830078125, -0.0014944076538085938, -0.01386260986328125, -0.0186767578125, 0.0299835205078125, 0.038604736328125, -0.03326416015625, 0.004055023193359375, 0.02459716796875, 0.01160430908203125, 0.023681640625, -0.009185791015625, -0.0197601318359375, 0.0072021484375, 0.0013065338134765625, -0.00022327899932861328, -0.017669677734375, -0.032196044921875, -0.061004638671875, -0.002620697021484375, 0.004016876220703125, -0.01629638671875, 0.005435943603515625, -0.031829833984375, 0.0207672119140625, -0.09002685546875, -0.05572509765625, 0.007843017578125, 0.002613067626953125, -0.005207061767578125, -0.00882720947265625, -0.05670166015625, -0.06298828125, 0.033294677734375, 0.033905029296875, 0.0003173351287841797, 0.0177764892578125, 0.07568359375, 0.002658843994140625, -0.029327392578125, -0.0916748046875, 0.027069091796875, 0.037872314453125, -0.00878143310546875, 0.049957275390625, 0.01143646240234375, -0.034698486328125, 0.099365234375, 0.00789642333984375, 0.019927978515625, 0.0164642333984375, 0.0155029296875, 0.0269317626953125, 0.0017442703247070312, 0.013763427734375, 0.041046142578125, -0.0384521484375, -0.0032806396484375, -0.004032135009765625, 0.00007295608520507812, -0.0181884765625, 0.0207977294921875, 0.0294189453125, -0.0246429443359375, -0.039947509765625, -0.006755828857421875, 0.01363372802734375, -0.006420135498046875, 0.0333251953125, 0.039581298828125, -0.01331329345703125, 0.017364501953125, 0.027862548828125, 0.0008721351623535156, -0.022705078125, 0.001934051513671875, -0.033966064453125, 0.01485443115234375, -0.0095062255859375, -0.00937652587890625, -0.007297515869140625, -0.01739501953125, 0.06195068359375, 0.01230621337890625, -0.043731689453125, 0.01300048828125, -0.0101165771484375, 0.018707275390625, -0.00386810302734375, 0.0049896240234375, 0.01543426513671875, 0.02276611328125, -0.017852783203125, 0.0062103271484375, 0.0204010009765625, -0.0166473388671875, -0.027740478515625, 0.029266357421875, -0.0196533203125, 0.0101470947265625, 0.0310516357421875, 0.0325927734375, -0.0270538330078125, 0.035675048828125, 0.00013530254364013672, 0.070068359375, 0.1182861328125, -0.0218048095703125, 0.00679779052734375, 0.0343017578125, -0.053802490234375, 0.0014705657958984375, 0.00012373924255371094, -0.01230621337890625, -0.007434844970703125, 0.01103973388671875, 0.0255889892578125, 0.0177459716796875, 0.0233917236328125, -0.006656646728515625, -0.00788116455078125, -0.03753662109375, 0.05615234375, 0.02374267578125, -0.04925537109375, -0.0218963623046875, 0.016998291015625, 0.0208282470703125, 0.00518798828125, 0.0119476318359375, -0.00540924072265625, 0.02197265625, 0.025909423828125, -0.02325439453125, -0.01346588134765625, 0.010589599609375, 0.025054931640625, -0.01374053955078125, -0.01104736328125, -0.01812744140625, -0.041900634765625, -0.016448974609375, -0.01165008544921875, -0.01708984375, 0.03741455078125, -0.024383544921875, 0.006191253662109375, -0.060638427734375, 0.033233642578125, -0.06268310546875, 0.0034503936767578125, 0.043975830078125, 0.029205322265625, -0.037384033203125, -0.0006022453308105469, -0.0565185546875, -0.025482177734375, -0.08258056640625, -0.02716064453125, -0.05560302734375, 0.004993438720703125, 0.01346588134765625, 0.0015096664428710938, 0.0038852691650390625, -0.0281219482421875, 0.0107879638671875, 0.0037517547607421875, 0.005146026611328125, -0.05194091796875, -0.01480865478515625, -0.01526641845703125, 0.046142578125, 0.01209259033203125, 0.0283355712890625, 0.0164947509765625, 0.06585693359375, -0.06353759765625, 0.0389404296875, -0.036529541015625, -0.06671142578125, -0.01560211181640625, -0.04608154296875, -0.0014047622680664062, 0.0192108154296875, -0.02496337890625, 0.0261077880859375, -0.047637939453125, -0.00571441650390625, -0.04522705078125, 0.01375579833984375, -0.0814208984375, 0.036956787109375, -0.06298828125, 0.00907135009765625, 0.0267791748046875, -0.034149169921875, -0.050750732421875, 0.04632568359375, 0.00213623046875, 0.035369873046875, -0.0008254051208496094, 0.01438140869140625, 0.0157012939453125, 0.061004638671875, -0.0167999267578125, 0.032958984375, 0.0419921875, -0.0071563720703125, 0.0215911865234375, -0.0169219970703125, -0.033843994140625, -0.03216552734375, 0.0004935264587402344, -0.0025424957275390625, -0.0012416839599609375, 0.01372528076171875, -0.005382537841796875, 0.00799560546875, 0.01033782958984375, 0.046478271484375, -0.04693603515625, 0.0029010772705078125, 0.0228424072265625, 0.005401611328125, -0.00508880615234375, -0.033416748046875, 0.01274871826171875, -0.0170745849609375, 0.06671142578125, 0.023895263671875, -0.0142364501953125, 0.026641845703125, -0.023681640625, -0.0036525726318359375, 0.00536346435546875, 0.0399169921875, 0.0076446533203125, -0.037689208984375, -0.046783447265625, 0.029937744140625, -0.0256805419921875, -0.0244598388671875, -0.01403045654296875, -0.01354217529296875, -0.0264129638671875, -0.06298828125, -0.0145111083984375, -0.02008056640625, 0.0124969482421875, 0.002902984619140625, -0.0022907257080078125, 0.01174163818359375, 0.05938720703125, -0.0220947265625, -0.006031036376953125, 0.04107666015625, -0.028472900390625, 0.0033130645751953125, -0.005401611328125, 0.01629638671875, -0.0301055908203125, -0.044097900390625, 0.006649017333984375, -0.051055908203125, -0.01505279541015625, 0.002262115478515625, 0.02471923828125, 0.0289764404296875, -0.026763916015625, -0.004009246826171875, 0.045867919921875, 0.051239013671875, -0.0082244873046875, -0.007537841796875, -0.009552001953125, -0.041412353515625, -0.0023097991943359375, -0.0196685791015625, -0.01323699951171875, 0.0179290771484375, -0.0148773193359375, -0.036285400390625, 0.07598876953125, 0.01739501953125, -0.01325225830078125, -0.0179290771484375, 0.05126953125, -0.018157958984375, 0.04608154296875, -0.01641845703125, 0.03857421875, 0.021331787109375, -0.025787353515625, -0.0386962890625, -0.00896453857421875, -0.031951904296875, 0.02569580078125, 0.046783447265625, 0.01340484619140625, -0.05816650390625, -0.0291595458984375, 0.0290679931640625, 0.0250091552734375, 0.023101806640625, 0.061431884765625, 0.00787353515625, 0.047119140625, 0.022796630859375, -0.0570068359375, 0.02117919921875, -0.0245208740234375, -0.0007681846618652344, 0.0166473388671875, 0.0028362274169921875, -0.00920867919921875, 0.0018129348754882812, -0.00652313232421875, -0.045654296875, 0.018218994140625, 0.015228271484375, 0.039764404296875, 0.0249481201171875, 0.04437255859375, 0.038116455078125, -0.00945281982421875, 0.005756378173828125, -0.03143310546875, 0.06011962890625, -0.00998687744140625, -0.007465362548828125, 0.07330322265625, 0.0261383056640625, 0.0232696533203125, 0.0198211669921875, 0.0130462646484375, 0.002040863037109375, 0.00429534912109375, -0.0269012451171875, 0.0019207000732421875, 0.0168304443359375, -0.056732177734375, -0.051849365234375, 0.0711669921875, 0.0287628173828125, 0.009246826171875, -0.036407470703125, 0.01209259033203125, -0.005512237548828125, 0.0175628662109375, 0.0247650146484375, 0.0478515625, 0.0026531219482421875, -0.0082550048828125, 0.00878143310546875, 0.0167083740234375, 0.0115966796875, 0.032318115234375, 0.0165557861328125, 0.032440185546875, -0.06719970703125, -0.001422882080078125, -0.00457763671875, -0.011383056640625, -0.0297088623046875, 0.01025390625, 0.0173187255859375, 0.0192413330078125, -0.0275421142578125, 0.0023975372314453125, 0.0146484375, 0.039306640625, -0.033660888671875, -0.01261138916015625, -0.0308837890625, -0.08184814453125, -0.015167236328125, 0.037384033203125, 0.0240936279296875, 0.01242828369140625, 0.023834228515625, 0.0165557861328125, 0.003997802734375, -0.00496673583984375, 0.004970550537109375, -0.011566162109375, 0.039031982421875, -0.0623779296875, -0.01514434814453125, -0.037994384765625, -0.0457763671875, 0.0011987686157226562, -0.0192108154296875, 0.0145416259765625, -0.0254058837890625, -0.000396728515625, -0.007450103759765625, -0.0183868408203125, -0.015625, -0.0114898681640625, -0.03375244140625, -0.016937255859375, -0.043609619140625, -0.007717132568359375, -0.017547607421875, 0.0040740966796875, -0.0162506103515625, 0.02276611328125, 0.00528717041015625, 0.0084075927734375, 0.003963470458984375, -0.034393310546875, 0.055938720703125, -0.006000518798828125, -0.016143798828125, 0.0007719993591308594, 0.011871337890625, -0.0208282470703125, -0.0465087890625, -0.032928466796875, -0.0233612060546875, 0.0369873046875, 0.013519287109375, 0.05743408203125, -0.003753662109375, 0.032684326171875, 0.05377197265625, -0.03778076171875, 0.06829833984375, 0.049591064453125, -0.01317596435546875, 0.0303192138671875, 0.01294708251953125, -0.04901123046875, -0.0252838134765625, 0.007801055908203125, 0.0192413330078125, -0.04754638671875, 0.00278472900390625, 0.0005159378051757812, 0.003143310546875, 0.00368499755859375, 0.0391845703125, -0.01543426513671875, -0.033111572265625, -0.0391845703125, -0.0114288330078125, 0.02435302734375, 0.041351318359375, 0.005706787109375, 0.0380859375, -0.0322265625, 0.006816864013671875, -0.0228118896484375, -0.01210784912109375, -0.038909912109375, 0.01361083984375, -0.05120849609375, -0.095703125, 0.02069091796875, 0.007190704345703125, -0.031890869140625, 0.004001617431640625, 0.06903076171875, 0.0308380126953125, -0.052825927734375, 0.039276123046875, 0.037139892578125, 0.0284423828125, -0.0299072265625, -0.00461578369140625, 0.046630859375, -0.0186767578125, 0.0002589225769042969, 0.009307861328125, -0.02618408203125, -0.027984619140625, -0.01776123046875, -0.004055023193359375, -0.028472900390625, -0.0460205078125, -0.051177978515625, 0.006725311279296875, 0.0465087890625, 0.0097808837890625, -0.04571533203125, 0.028564453125, -0.040679931640625, 0.027374267578125, 0.0210113525390625, -0.021026611328125, -0.0044097900390625, -0.00890350341796875, -0.00034999847412109375, -0.0421142578125, -0.042633056640625, 0.044464111328125, -0.0252227783203125, 0.0189666748046875, 0.0262908935546875, -0.01206207275390625, 0.0140838623046875, 0.01482391357421875, -0.007904052734375, 0.08404541015625, -0.052154541015625, -0.02001953125, 0.03253173828125, -0.0009617805480957031, -0.005054473876953125, -0.07763671875, -0.0213470458984375, -0.050079345703125, 0.03094482421875, -0.02728271484375, -0.03375244140625, -0.045440673828125, -0.060394287109375, -0.031585693359375, 0.048583984375, 0.01134490966796875, -0.0149078369140625, -0.06817626953125, 0.01418304443359375, 0.004039764404296875, 0.0106048583984375, -0.02362060546875, 0.0009131431579589844, -0.0212860107421875, 0.032012939453125, 0.027801513671875, -0.0272979736328125, 0.01171112060546875, 0.012115478515625, -0.01284027099609375, 0.06689453125, 0.084716796875, 0.00251007080078125, -0.0263824462890625, 0.00852203369140625, 0.033721923828125, 0.0538330078125, 0.016204833984375, 0.007678985595703125, 0.0389404296875, -0.041778564453125, -0.0238189697265625, -0.007312774658203125, -0.058563232421875, -0.0289764404296875, 0.08343505859375, 0.11395263671875, 0.0210723876953125, -0.034271240234375, 0.0301971435546875, 0.01517486572265625, -0.023529052734375, -0.0222930908203125, 0.00919342041015625, -0.053466796875, -0.039581298828125, -0.006694793701171875, -0.045654296875, 0.0217132568359375, -0.019805908203125, -0.07989501953125, 0.037994384765625, -0.01308441162109375, 0.01055145263671875, -0.07293701171875, 0.039398193359375, 0.041229248046875, -0.0379638671875, -0.01092529296875, 0.01163482666015625, -0.0132293701171875, 0.0057830810546875, -0.005970001220703125, -0.02392578125, -0.0208282470703125, -0.03045654296875, 0.0192413330078125, -0.0211334228515625, 0.07720947265625, -0.0274200439453125, -0.0211181640625, -0.03826904296875, 0.0111541748046875, 0.016326904296875, 0.041717529296875, 0.015045166015625, -0.042510986328125, 0.0197296142578125, -0.035797119140625, -0.038330078125, 0.050079345703125, -0.0190582275390625, 0.0032291412353515625, -0.055206298828125, 0.041229248046875, 0.0008177757263183594, -0.0168304443359375, 0.0186004638671875, 0.03472900390625, 0.01552581787109375, -0.0265655517578125, 0.035491943359375, -0.08612060546875, 0.0218658447265625, 0.00704193115234375 ]
a73b32196bc0457974c6a5b7abb6c4b94793219d
Wordpress Stackexchange Q: How to map a specific multi-site blog to a folder? I have a multi-site set up in a sub folder called sites, like: domain/sites/blog1 domain/sites/blog2 I would like a specific blog called mag to be accessible at domain/mag without revealing the real structure. Can it be done with URL rewrites? A: in the domain/ .htaccess file, add this line at the beginning. RewriteEngine On RewriteBase / RewriteRule ^mag/([_0-9a-zA-Z-]+/)?$ /sites/mag/$2 [L]
Q: How to map a specific multi-site blog to a folder? I have a multi-site set up in a sub folder called sites, like: domain/sites/blog1 domain/sites/blog2 I would like a specific blog called mag to be accessible at domain/mag without revealing the real structure. Can it be done with URL rewrites? A: in the domain/ .htaccess file, add this line at the beginning. RewriteEngine On RewriteBase / RewriteRule ^mag/([_0-9a-zA-Z-]+/)?$ /sites/mag/$2 [L]
wordpress
{ "language": "en", "length": 71, "provenance": "stackexchange_00019.jsonl.gz:425224", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70655" }
[ 0.00875091552734375, -0.0171356201171875, 0.0189056396484375, 0.006229400634765625, -0.039398193359375, -0.01087188720703125, 0.006038665771484375, -0.045501708984375, 0.0086517333984375, 0.017120361328125, 0.00223541259765625, 0.0097198486328125, 0.01358795166015625, -0.050201416015625, 0.034423828125, 0.0028629302978515625, 0.01558685302734375, -0.01374053955078125, 0.022491455078125, -0.01690673828125, 0.0248870849609375, 0.01195526123046875, 0.015655517578125, 0.037353515625, 0.00992584228515625, 0.0311126708984375, 0.0011835098266601562, 0.011444091796875, -0.007965087890625, -0.0230712890625, 0.018798828125, -0.0008683204650878906, 0.048614501953125, -0.0302581787109375, 0.0272979736328125, 0.020477294921875, 0.051025390625, -0.02587890625, 0.00833892822265625, 0.026763916015625, -0.00504302978515625, -0.0010128021240234375, 0.0206298828125, 0.03717041015625, 0.0003535747528076172, -0.061279296875, 0.0216522216796875, -0.04937744140625, 0.016571044921875, -0.029144287109375, -0.0017900466918945312, 0.0302581787109375, 0.0100250244140625, -0.0105438232421875, -0.0313720703125, -0.027618408203125, 0.041290283203125, -0.0265655517578125, 0.0230560302734375, -0.04632568359375, -0.034423828125, 0.0182647705078125, 0.032684326171875, 0.040771484375, -0.015960693359375, 0.0121917724609375, -0.028228759765625, 0.014556884765625, -0.046142578125, -0.013458251953125, 0.0307159423828125, -0.0576171875, 0.0185699462890625, -0.056549072265625, -0.01451873779296875, 0.06768798828125, -0.05462646484375, -0.01605224609375, 0.04278564453125, -0.0438232421875, -0.00406646728515625, 0.0028076171875, -0.0274505615234375, -0.04443359375, 0.014251708984375, -0.0229949951171875, -0.01947021484375, -0.0018901824951171875, -0.03253173828125, 0.004108428955078125, -0.0257415771484375, 0.01366424560546875, -0.039886474609375, 0.00870513916015625, -0.02215576171875, 0.00745391845703125, 0.06561279296875, 0.09466552734375, -0.005672454833984375, -0.0085296630859375, -0.019744873046875, -0.0246429443359375, -0.0458984375, -0.026702880859375, 0.0233917236328125, 0.05841064453125, 0.0149078369140625, 0.04315185546875, 0.05682373046875, 0.0015659332275390625, 0.01513671875, 0.043487548828125, -0.0180816650390625, -0.024200439453125, -0.01486968994140625, 0.01155853271484375, -0.03057861328125, 0.00726318359375, 0.01084136962890625, -0.0232391357421875, 0.0072174072265625, 0.045654296875, -0.0257720947265625, -0.00391387939453125, -0.0272216796875, -0.033660888671875, -0.01873779296875, -0.016845703125, -0.0179595947265625, 0.0162506103515625, -0.026824951171875, 0.0162506103515625, 0.0123291015625, -0.004283905029296875, -0.034149169921875, -0.0218048095703125, 0.001445770263671875, 0.029693603515625, -0.011505126953125, -0.01410675048828125, 0.029815673828125, -0.0254364013671875, -0.0222015380859375, -0.01293182373046875, -0.035797119140625, 0.0178680419921875, 0.0226593017578125, 0.03192138671875, -0.03369140625, -0.032470703125, -0.01189422607421875, -0.01407623291015625, 0.036651611328125, -0.0004897117614746094, 0.012359619140625, -0.03564453125, 0.0340576171875, -0.044952392578125, -0.004909515380859375, -0.0433349609375, 0.015716552734375, 0.01502227783203125, 0.051177978515625, -0.026702880859375, -0.02825927734375, -0.03192138671875, -0.0504150390625, -0.0185546875, 0.006378173828125, -0.04376220703125, 0.0020084381103515625, -0.0011920928955078125, 0.0157318115234375, 0.01171875, 0.0178070068359375, 0.0282440185546875, 0.0038127899169921875, -0.01290130615234375, -0.0019588470458984375, 0.07061767578125, 0.0250244140625, -0.0011472702026367188, -0.0225982666015625, 0.0323486328125, -0.0528564453125, 0.011962890625, 0.004486083984375, 0.052093505859375, 0.0179595947265625, 0.0183868408203125, 0.032073974609375, 0.004047393798828125, -0.0159454345703125, -0.0277099609375, -0.04461669921875, 0.0017442703247070312, 0.039337158203125, 0.028656005859375, -0.0127410888671875, 0.0012531280517578125, -0.0095977783203125, -0.015655517578125, 0.01519012451171875, 0.06390380859375, 0.06988525390625, -0.00957489013671875, 0.021942138671875, -0.01479339599609375, 0.0149383544921875, 0.00814056396484375, -0.0009860992431640625, -0.00337982177734375, 0.01007080078125, -0.06005859375, -0.0283203125, 0.01995849609375, -0.0026378631591796875, 0.015167236328125, -0.01161956787109375, 0.03302001953125, -0.00814056396484375, -0.012603759765625, -0.03228759765625, 0.01084136962890625, 0.04486083984375, -0.009613037109375, -0.034149169921875, -0.03411865234375, -0.00804901123046875, 0.038665771484375, -0.12744140625, 0.0183258056640625, -0.0179901123046875, 0.0240478515625, -0.0167388916015625, -0.0028553009033203125, -0.0023517608642578125, -0.011383056640625, 0.02069091796875, 0.031951904296875, 0.01294708251953125, 0.013397216796875, -0.00621795654296875, 0.0254669189453125, 0.0274505615234375, -0.017913818359375, 0.010345458984375, 0.01053619384765625, -0.0091094970703125, 0.058624267578125, -0.042938232421875, 0.0228729248046875, 0.0036754608154296875, -0.0335693359375, -0.0223846435546875, 0.044647216796875, -0.00931549072265625, -0.037841796875, -0.0305023193359375, 0.01084136962890625, 0.030426025390625, 0.012664794921875, -0.044464111328125, 0.028778076171875, 0.01580810546875, 0.07098388671875, 0.04656982421875, 0.054168701171875, -0.0341796875, 0.03985595703125, -0.010345458984375, 0.00905609130859375, 0.009429931640625, 0.0438232421875, 0.06781005859375, -0.00855255126953125, -0.01013946533203125, -0.038238525390625, 0.00579833984375, 0.0210723876953125, -0.03240966796875, 0.01198577880859375, -0.04754638671875, -0.01413726806640625, -0.0088043212890625, -0.0165557861328125, 0.00045990943908691406, -0.00936126708984375, -0.020416259765625, 0.00848388671875, 0.01271820068359375, 0.03131103515625, -0.002899169921875, 0.005126953125, 0.0216064453125, -0.02001953125, 0.026885986328125, -0.050628662109375, 0.055877685546875, -0.0465087890625, 0.01522064208984375, 0.06103515625, -0.0052642822265625, 0.00634765625, 0.00348663330078125, 0.001834869384765625, 0.0016927719116210938, 0.0092315673828125, 0.003604888916015625, -0.0033054351806640625, -0.049713134765625, 0.0019092559814453125, 0.027740478515625, -0.0247650146484375, 0.0145416259765625, -0.01366424560546875, -0.00946044921875, -0.007755279541015625, -0.1021728515625, -0.0616455078125, 0.020477294921875, -0.050079345703125, 0.005023956298828125, 0.0147705078125, -0.03277587890625, -0.030853271484375, 0.06500244140625, 0.00047898292541503906, -0.0132293701171875, -0.003131866455078125, -0.0931396484375, -0.062744140625, -0.08880615234375, 0.0178375244140625, -0.01934814453125, 0.020904541015625, 0.0013513565063476562, 0.0110931396484375, -0.006015777587890625, -0.016815185546875, 0.01708984375, 0.021636962890625, 0.0147705078125, -0.0158233642578125, -0.0270843505859375, -0.033233642578125, -0.0309600830078125, -0.0195465087890625, 0.09088134765625, 0.0195465087890625, -0.006816864013671875, 0.0302276611328125, 0.01152801513671875, 0.00830078125, 0.0133514404296875, -0.0312347412109375, -0.0083770751953125, 0.0288543701171875, -0.02337646484375, -0.03863525390625, -0.0201263427734375, -0.03277587890625, -0.0574951171875, -0.03387451171875, 0.07110595703125, -0.00817108154296875, -0.0528564453125, -0.01525115966796875, 0.03753662109375, 0.01849365234375, 0.0211029052734375, -0.001003265380859375, -0.0098114013671875, -0.0034580230712890625, 0.0162811279296875, -0.03778076171875, 0.032806396484375, -0.0179290771484375, 0.006771087646484375, -0.00870513916015625, 0.0133514404296875, -0.042388916015625, 0.03240966796875, -0.0902099609375, 0.0110321044921875, -0.0010824203491210938, -0.044403076171875, 0.048980712890625, -0.0430908203125, 0.0003943443298339844, -0.04791259765625, 0.049560546875, -0.0258636474609375, -0.0215301513671875, -0.0235443115234375, 0.005382537841796875, -0.01012420654296875, -0.022674560546875, 0.0004086494445800781, -0.00838470458984375, -0.0823974609375, -0.015655517578125, -0.0352783203125, -0.025115966796875, -0.00412750244140625, -0.049652099609375, -0.023162841796875, -0.0657958984375, 0.0389404296875, 0.0036907196044921875, 0.044708251953125, -0.037109375, 0.0394287109375, -0.03790283203125, -0.015594482421875, -0.003437042236328125, -0.04547119140625, -0.0184783935546875, 0.00827789306640625, 0.0294189453125, 0.029693603515625, -0.050750732421875, 0.039276123046875, 0.06036376953125, -0.016815185546875, 0.01605224609375, -0.030975341796875, -0.006175994873046875, -0.0178985595703125, 0.016876220703125, -0.0212249755859375, -0.0108642578125, 0.002727508544921875, -0.00848388671875, -0.028167724609375, -0.0013294219970703125, -0.019287109375, -0.006755828857421875, 0.01242828369140625, -0.030487060546875, -0.0408935546875, -0.02838134765625, -0.0233612060546875, 0.01031494140625, -0.0252838134765625, -0.0077056884765625, -0.01505279541015625, -0.03192138671875, 0.022857666015625, -0.006988525390625, -0.0221405029296875, 0.018890380859375, 0.048828125, -0.00006902217864990234, -0.018646240234375, -0.06793212890625, 0.0303497314453125, 0.043304443359375, 0.0218048095703125, 0.038482666015625, 0.0297698974609375, 0.0025768280029296875, -0.0016164779663085938, 0.0167388916015625, 0.021881103515625, 0.0006933212280273438, -0.01666259765625, 0.0219879150390625, 0.01270294189453125, -0.0087890625, 0.032623291015625, 0.02325439453125, 0.02069091796875, -0.00659942626953125, -0.0206756591796875, -0.04144287109375, 0.045166015625, 0.021026611328125, 0.0009503364562988281, -0.05841064453125, -0.021087646484375, 0.01971435546875, -0.01232147216796875, 0.0273590087890625, 0.0135498046875, 0.00232696533203125, 0.02130126953125, 0.025787353515625, -0.01654052734375, 0.041168212890625, 0.017059326171875, 0.0181427001953125, 0.001895904541015625, 0.02288818359375, -0.0308990478515625, 0.01218414306640625, -0.023040771484375, 0.0767822265625, 0.00872039794921875, -0.027313232421875, 0.0017719268798828125, -0.01265716552734375, 0.004268646240234375, 0.01514434814453125, -0.054229736328125, 0.0202178955078125, -0.015045166015625, -0.043853759765625, 0.0288848876953125, -0.03173828125, -0.0762939453125, -0.034515380859375, -0.01454925537109375, -0.0224761962890625, -0.011749267578125, 0.01187896728515625, 0.066650390625, -0.0645751953125, 0.0582275390625, 0.0016889572143554688, -0.0182647705078125, 0.01465606689453125, 0.01861572265625, 0.022125244140625, 0.0179595947265625, -0.037567138671875, 0.038360595703125, 0.0212554931640625, -0.0242767333984375, 0.0306396484375, 0.0190887451171875, 0.03509521484375, 0.0709228515625, -0.011749267578125, -0.0130767822265625, -0.038360595703125, -0.00843048095703125, -0.007236480712890625, -0.04449462890625, -0.052581787109375, 0.00034546852111816406, -0.007144927978515625, -0.0195770263671875, -0.033355712890625, 0.021942138671875, -0.0247802734375, 0.0132598876953125, 0.0189208984375, -0.011505126953125, 0.0055999755859375, -0.01751708984375, -0.00763702392578125, 0.0079193115234375, 0.0251312255859375, 0.042938232421875, -0.034423828125, -0.040252685546875, -0.0239715576171875, -0.0175933837890625, 0.056427001953125, -0.01378631591796875, 0.020904541015625, -0.038116455078125, 0.0034809112548828125, 0.0002658367156982422, 0.00048041343688964844, 0.031463623046875, -0.00010383129119873047, -0.03936767578125, 0.03924560546875, -0.034088134765625, -0.001346588134765625, 0.003936767578125, -0.03076171875, -0.0310211181640625, -0.049591064453125, -0.0043792724609375, 0.0255889892578125, 0.0095977783203125, 0.0158538818359375, 0.0266876220703125, -0.0191497802734375, -0.038482666015625, -0.023468017578125, -0.031951904296875, 0.0433349609375, 0.0184478759765625, 0.0241851806640625, 0.013702392578125, 0.04443359375, 0.0203399658203125, -0.0276336669921875, 0.00514984130859375, -0.0860595703125, -0.00812530517578125, 0.01580810546875, -0.024627685546875, 0.03997802734375, 0.019073486328125, 0.0198822021484375, 0.002185821533203125, -0.0026264190673828125, 0.006839752197265625, -0.0227203369140625, -0.02508544921875, -0.02691650390625, 0.019439697265625, -0.029937744140625, 0.012359619140625, 0.09368896484375, -0.01357269287109375, -0.01258087158203125, -0.036102294921875, 0.0013828277587890625, 0.01123046875, 0.0097503662109375, -0.0188140869140625, 0.01392364501953125, 0.05987548828125, -0.01171112060546875, 0.0274200439453125, 0.0146331787109375, 0.0017461776733398438, 0.0170135498046875, -0.01165771484375, 0.055999755859375, 0.01366424560546875, 0.037933349609375, -0.01538848876953125, -0.004611968994140625, 0.015411376953125, -0.022674560546875, -0.00464630126953125, 0.03192138671875, 0.01546478271484375, -0.05633544921875, 0.004734039306640625, -0.01873779296875, 0.0228424072265625, 0.053802490234375, -0.00978851318359375, 0.00110626220703125, 0.0197601318359375, -0.01473236083984375, 0.03594970703125, -0.0389404296875, -0.01500701904296875, 0.031707763671875, -0.0074615478515625, 0.0011701583862304688, 0.013702392578125, 0.01605224609375, -0.00360107421875, -0.01617431640625, 0.014312744140625, 0.00489044189453125, 0.00867462158203125, -0.031402587890625, 0.0255584716796875, -0.04754638671875, -0.041168212890625, 0.0186309814453125, -0.023101806640625, -0.00299072265625, -0.05462646484375, 0.0083160400390625, 0.01280975341796875, 0.032806396484375, -0.023956298828125, -0.01380157470703125, 0.0187835693359375, -0.00792694091796875, 0.0194244384765625, 0.025115966796875, 0.0090484619140625, -0.0007262229919433594, 0.0166168212890625, -0.0041046142578125, -0.029754638671875, -0.006610870361328125, -0.01678466796875, -0.0283660888671875, 0.033538818359375, -0.0169830322265625, -0.01030731201171875, 0.050689697265625, 0.0303955078125, -0.0367431640625, 0.016204833984375, -0.004459381103515625, -0.0243988037109375, -0.005512237548828125, -0.007007598876953125, -0.028656005859375, 0.002620697021484375, -0.0115966796875, -0.042724609375, 0.031890869140625, -0.04534912109375, 0.032928466796875, 0.0321044921875, 0.002140045166015625, 0.0114288330078125, -0.002838134765625, -0.0243682861328125, 0.028717041015625, 0.0254669189453125, 0.010986328125, -0.02899169921875, -0.00952911376953125, 0.006626129150390625, 0.0494384765625, 0.0198211669921875, 0.0238800048828125, -0.0869140625, -0.0303802490234375, 0.0029048919677734375, 0.0350341796875, 0.040130615234375, 0.0723876953125, -0.02862548828125, 0.0200042724609375, 0.03466796875, -0.0218505859375, 0.010009765625, 0.04815673828125, -0.0390625, 0.01953125, -0.01236724853515625, -0.022308349609375, -0.000640869140625, -0.00005257129669189453, -0.006069183349609375, -0.0022525787353515625, -0.00400543212890625, -0.01479339599609375, 0.035003662109375, -0.01029205322265625, 0.04827880859375, -0.03436279296875, 0.032440185546875, -0.00689697265625, 0.05810546875, 0.0025615692138671875, 0.00547027587890625, 0.039031982421875, 0.023193359375, 0.025360107421875, -0.0008935928344726562, -0.00475311279296875, 0.00728607177734375, 0.0023517608642578125, 0.0196990966796875, 0.0082855224609375, 0.0214080810546875, -0.04132080078125, -0.030181884765625, 0.033050537109375, 0.030853271484375, -0.01030731201171875, -0.0086822509765625, 0.0127410888671875, -0.00873565673828125, -0.0079498291015625, -0.0299072265625, -0.01233673095703125, -0.00699615478515625, -0.013580322265625, -0.002132415771484375, -0.0009851455688476562, 0.01485443115234375, 0.0196075439453125, -0.01092529296875, -0.050567626953125, -0.000003516674041748047, 0.0133209228515625, -0.028045654296875, 0.0258026123046875, 0.007526397705078125, 0.04376220703125, -0.00453948974609375, 0.0714111328125, -0.043182373046875, -0.021575927734375, 0.0033054351806640625, 0.01190185546875, -0.019439697265625, -0.00792694091796875, -0.07049560546875, -0.08984375, 0.054443359375, 0.06689453125, 0.0248870849609375, 0.07037353515625, 0.04266357421875, 0.0154876708984375, 0.0033512115478515625, 0.016448974609375, 0.041778564453125, -0.018310546875, 0.088134765625, -0.010650634765625, 0.0245208740234375, 0.004550933837890625, -0.039703369140625, -0.06109619140625, 0.0024585723876953125, 0.068115234375, -0.01074981689453125, 0.04510498046875, -0.008392333984375, -0.00957489013671875, 0.0206756591796875, -0.008697509765625, 0.06268310546875, 0.013397216796875, -0.012237548828125, 0.000011146068572998047, -0.0284576416015625, -0.054718017578125, 0.0086212158203125, 0.052154541015625, 0.0236358642578125, -0.0273895263671875, 0.0095062255859375, 0.007305145263671875, 0.003360748291015625, 0.0036144256591796875, -0.00746917724609375, 0.050048828125, 0.036102294921875, 0.0297088623046875, -0.061309814453125, -0.052581787109375, -0.03033447265625, 0.0516357421875, -0.0012445449829101562, 0.1256103515625, -0.0408935546875, 0.0271148681640625, -0.0078125, 0.00484466552734375, -0.00472259521484375, 0.0011548995971679688, -0.032501220703125, -0.007022857666015625, 0.008941650390625, 0.0120849609375, 0.0005626678466796875, -0.0006270408630371094, 0.0164337158203125, -0.054351806640625, -0.01546478271484375, -0.0239105224609375, 0.0189056396484375, 0.0178680419921875, -0.00821685791015625, -0.040496826171875, -0.08734130859375, -0.08673095703125, -0.00685882568359375, 0.0245361328125, 0.038330078125, -0.0386962890625, 0.0478515625, 0.00373077392578125, -0.02294921875, 0.0167388916015625, -0.059539794921875, 0.0145263671875, 0.034637451171875, 0.0138702392578125, -0.036773681640625, 0.01715087890625, -0.00753021240234375, 0.01041412353515625, 0.00836181640625, 0.03411865234375, 0.018524169921875, -0.0237274169921875, -0.01245880126953125, 0.01061248779296875, 0.02435302734375, -0.0089569091796875, 0.00914764404296875, -0.0019006729125976562, 0.0008258819580078125, -0.019256591796875, 0.0005846023559570312, -0.0257720947265625, -0.035797119140625, 0.0034961700439453125, 0.024322509765625, -0.023590087890625, 0.00121307373046875, -0.0595703125, -0.02557373046875, 0.0667724609375, 0.0066375732421875, -0.03857421875, -0.0020198822021484375, -0.028717041015625, 0.0142974853515625, 0.036224365234375, -0.0295867919921875, 0.022613525390625, 0.032806396484375, -0.037841796875, -0.0147247314453125, -0.008087158203125, -0.009124755859375, -0.016387939453125, 0.029266357421875, 0.041656494140625, -0.026336669921875, 0.0271453857421875, 0.02178955078125, 0.0050048828125, 0.0849609375, -0.0300140380859375, -0.00974273681640625, 0.0264129638671875, 0.0001919269561767578, -0.037322998046875, -0.0419921875, 0.006175994873046875, -0.015777587890625, -0.0133514404296875, 0.0036468505859375, -0.06195068359375, -0.05682373046875, -0.05987548828125, -0.050201416015625, 0.040679931640625, 0.0196685791015625, -0.033111572265625, -0.10174560546875, 0.0031528472900390625, -0.0011949539184570312, 0.06634521484375, -0.03497314453125, 0.006191253662109375, -0.0433349609375, 0.046783447265625, 0.038421630859375, 0.0020084381103515625, -0.01232147216796875, 0.032196044921875, -0.0017862319946289062, 0.07421875, 0.05047607421875, -0.0129241943359375, 0.004146575927734375, -0.01165771484375, 0.055450439453125, 0.075927734375, 0.0128326416015625, 0.035888671875, 0.0278167724609375, -0.06719970703125, 0.005092620849609375, -0.0163726806640625, -0.06915283203125, -0.04779052734375, 0.052459716796875, 0.07177734375, 0.03167724609375, -0.0157318115234375, -0.01471710205078125, -0.033416748046875, -0.04766845703125, -0.017608642578125, 0.041595458984375, -0.0771484375, 0.0052337646484375, 0.0099029541015625, -0.00212860107421875, -0.007335662841796875, 0.0034942626953125, -0.01947021484375, 0.00577545166015625, 0.0343017578125, -0.01273345947265625, -0.0015363693237304688, 0.021392822265625, 0.062103271484375, -0.027069091796875, 0.033721923828125, -0.01454925537109375, 0.0093536376953125, 0.046478271484375, -0.025390625, -0.01125335693359375, 0.005626678466796875, -0.0216064453125, 0.0183563232421875, 0.004375457763671875, 0.006404876708984375, -0.00891876220703125, -0.0172882080078125, -0.00835418701171875, 0.01313018798828125, 0.0291748046875, 0.00441741943359375, -0.0248260498046875, 0.027801513671875, 0.011566162109375, 0.04296875, -0.0015840530395507812, 0.0303802490234375, -0.0288848876953125, 0.042633056640625, -0.036468505859375, 0.00482177734375, -0.0301666259765625, -0.0048370361328125, -0.01267242431640625, 0.04229736328125, -0.001422882080078125, -0.05859375, 0.051300048828125, -0.040008544921875, 0.0367431640625, 0.0206451416015625 ]
380989cd7726601a90679abd9c3719ab1b03ed3c
Wordpress Stackexchange Q: How to check if I am in admin-ajax.php? Right now for my plugin, I am using in_admin() to determine if the user is in the frontend of the site or in the admin area. However, the problem occurs when plugins use admin-ajax.php to process ajax requests. I need a way to register hooks and plugins only when processing admin-ajax.php file or in the frontend of the site. What is the best way to go about doing that? A: Check the constant DOING_AJAX. Its definition is the first working code in wp-admin/admin-ajax.php. Some very weird plugins, like Jetpack, are defining that constant in unexpected places, so you might include a check for is_admin() as well. Example: if ( is_admin() && defined( 'DOING_AJAX' ) && DOING_AJAX ) { // do something } I have asked for a simpler way to check this a long time ago, and this was finally implemented in 4.7.0. So for WP 4.7 and higher you can use: if ( wp_doing_ajax() ) { // do something }
Q: How to check if I am in admin-ajax.php? Right now for my plugin, I am using in_admin() to determine if the user is in the frontend of the site or in the admin area. However, the problem occurs when plugins use admin-ajax.php to process ajax requests. I need a way to register hooks and plugins only when processing admin-ajax.php file or in the frontend of the site. What is the best way to go about doing that? A: Check the constant DOING_AJAX. Its definition is the first working code in wp-admin/admin-ajax.php. Some very weird plugins, like Jetpack, are defining that constant in unexpected places, so you might include a check for is_admin() as well. Example: if ( is_admin() && defined( 'DOING_AJAX' ) && DOING_AJAX ) { // do something } I have asked for a simpler way to check this a long time ago, and this was finally implemented in 4.7.0. So for WP 4.7 and higher you can use: if ( wp_doing_ajax() ) { // do something } A: Good news, the function is there now. File: /wp-includes/load.php 1037: /** 1038: * Determines whether the current request is a WordPress Ajax request. 1039: * 1040: * @since 4.7.0 1041: * 1042: * @return bool True if it's a WordPress Ajax request, false otherwise. 1043: */ 1044: function wp_doing_ajax() { 1045: /** 1046: * Filters whether the current request is a WordPress Ajax request. 1047: * 1048: * @since 4.7.0 1049: * 1050: * @param bool $wp_doing_ajax Whether the current request is a WordPress Ajax request. 1051: */ 1052: return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX ); 1053: } Just to recap, the admin-ajax.php defines something like this. File: /wp-admin/admin-ajax.php 11: /** 12: * Executing Ajax process. 13: * 14: * @since 2.1.0 15: */ 16: define( 'DOING_AJAX', true ); 17: if ( ! defined( 'WP_ADMIN' ) ) { 18: define( 'WP_ADMIN', true ); 19: } A: Fuxias solution returns false also for ajax request made from the admin panel. But these requests should return true, because the data you are requesting is provided for an admin view. To solve this issue you can use the following function: function saveIsAdmin() { //Ajax request are always identified as administrative interface page //so let's check if we are calling the data for the frontend or backend if (wp_doing_ajax()) { $adminUrl = get_admin_url(); //If the referer is an admin url we are requesting the data for the backend return (substr($_SERVER['HTTP_REFERER'], 0, strlen($adminUrl)) === $adminUrl); } //No ajax request just use the normal function return is_admin(); } A: DOING_AJAX constant checks if you are in admin-ajax.php if ( is_admin() && defined( 'DOING_AJAX' ) && DOING_AJAX ) { // do something }
wordpress
{ "language": "en", "length": 449, "provenance": "stackexchange_00019.jsonl.gz:425230", "question_score": "35", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70676" }
[ 0.0692138671875, 0.0203704833984375, -0.027862548828125, -0.061279296875, 0.052886962890625, -0.0321044921875, 0.01468658447265625, -0.0223236083984375, -0.005344390869140625, 0.01507568359375, -0.028167724609375, 0.03216552734375, -0.032958984375, -0.0012578964233398438, -0.0189971923828125, -0.03607177734375, 0.0197906494140625, 0.00385284423828125, 0.00714874267578125, -0.0273284912109375, 0.00675201416015625, -0.00759124755859375, -0.003025054931640625, 0.033172607421875, -0.014312744140625, -0.025543212890625, 0.0848388671875, -0.007381439208984375, 0.0024585723876953125, -0.017059326171875, 0.006404876708984375, -0.00823974609375, 0.0022563934326171875, 0.031341552734375, -0.0085906982421875, -0.0175018310546875, -0.0225677490234375, 0.03497314453125, 0.01444244384765625, 0.000022172927856445312, 0.057830810546875, -0.04156494140625, -0.00734710693359375, 0.03973388671875, -0.006938934326171875, -0.023040771484375, 0.04815673828125, -0.039764404296875, 0.0111541748046875, -0.01007080078125, 0.007320404052734375, -0.03387451171875, 0.019744873046875, 0.0084228515625, -0.0224456787109375, -0.0022296905517578125, -0.0176239013671875, -0.01087188720703125, 0.055511474609375, 0.02239990234375, -0.042022705078125, -0.0555419921875, 0.0217132568359375, -0.07318115234375, -0.0006160736083984375, -0.020599365234375, -0.0269775390625, 0.0164947509765625, -0.017242431640625, -0.01122283935546875, 0.0157470703125, -0.00199127197265625, -0.005657196044921875, 0.037017822265625, -0.0364990234375, -0.05010986328125, 0.04278564453125, -0.0229949951171875, -0.016326904296875, 0.0379638671875, 0.01285552978515625, 0.017791748046875, -0.0305023193359375, 0.0219573974609375, 0.0006051063537597656, 0.0478515625, -0.00946807861328125, -0.03302001953125, -0.0364990234375, -0.016815185546875, -0.0360107421875, -0.054718017578125, -0.010284423828125, 0.00634765625, -0.00858306884765625, -0.0157012939453125, 0.0293121337890625, 0.03466796875, -0.01256561279296875, -0.008819580078125, -0.0130462646484375, -0.0247344970703125, -0.0192413330078125, -0.0134124755859375, 0.035919189453125, 0.06707763671875, -0.0175628662109375, -0.0250091552734375, 0.04547119140625, 0.0031490325927734375, 0.0205535888671875, 0.038970947265625, -0.0037517547607421875, 0.005939483642578125, -0.03729248046875, 0.0006036758422851562, -0.0210418701171875, -0.017242431640625, -0.0277099609375, 0.0232086181640625, -0.0214385986328125, -0.0072784423828125, 0.0208587646484375, -0.00888824462890625, -0.0002543926239013672, -0.015625, -0.0137786865234375, -0.0175018310546875, -0.034576416015625, 0.0190277099609375, -0.01605224609375, 0.0226898193359375, 0.019256591796875, 0.00731658935546875, -0.01393890380859375, -0.0086669921875, 0.0584716796875, 0.048858642578125, 0.00165557861328125, -0.0162811279296875, 0.0382080078125, -0.0408935546875, -0.056549072265625, 0.00457763671875, -0.0224151611328125, 0.01953125, 0.005035400390625, -0.007511138916015625, -0.01322174072265625, -0.066162109375, 0.01532745361328125, -0.06298828125, 0.0167236328125, 0.024200439453125, 0.03839111328125, 0.0528564453125, 0.059539794921875, 0.004337310791015625, -0.060333251953125, -0.0006351470947265625, 0.0005846023559570312, -0.00782012939453125, 0.00672149658203125, -0.002166748046875, -0.00539398193359375, 0.02178955078125, -0.0299835205078125, 0.0028934478759765625, 0.0211181640625, 0.004207611083984375, 0.0196990966796875, 0.03497314453125, 0.00507354736328125, -0.002960205078125, 0.004497528076171875, -0.016632080078125, 0.005466461181640625, 0.01171112060546875, 0.04510498046875, -0.015350341796875, -0.049224853515625, -0.029632568359375, 0.08740234375, -0.046478271484375, -0.036285400390625, 0.0200958251953125, 0.0164794921875, 0.0266571044921875, -0.0018253326416015625, -0.001476287841796875, 0.0300445556640625, 0.047515869140625, 0.050048828125, 0.029052734375, -0.01256561279296875, -0.0712890625, -0.01314544677734375, -0.00046515464782714844, -0.03668212890625, 0.00873565673828125, 0.0391845703125, -0.00208282470703125, 0.0017642974853515625, -0.0302734375, -0.09149169921875, 0.0017795562744140625, -0.019805908203125, 0.033233642578125, 0.034210205078125, 0.036041259765625, -0.018402099609375, 0.021820068359375, 0.0062255859375, -0.0701904296875, -0.026641845703125, 0.00859832763671875, -0.047210693359375, 0.0538330078125, -0.0176544189453125, 0.04949951171875, -0.032989501953125, -0.05029296875, -0.0077667236328125, -0.0280609130859375, 0.006793975830078125, 0.01953125, -0.0143585205078125, 0.01108551025390625, 0.0293121337890625, 0.0272216796875, 0.02996826171875, -0.00946807861328125, 0.0443115234375, 0.051544189453125, -0.01088714599609375, -0.037261962890625, -0.0250244140625, -0.140869140625, 0.0206451416015625, 0.07904052734375, 0.03717041015625, 0.030548095703125, -0.006504058837890625, 0.0181884765625, 0.006744384765625, -0.1141357421875, -0.0150299072265625, 0.020843505859375, -0.0014200210571289062, 0.027130126953125, -0.0465087890625, -0.005039215087890625, 0.0277252197265625, 0.0187225341796875, -0.028045654296875, 0.041015625, -0.00994110107421875, -0.036712646484375, 0.01556396484375, 0.0016164779663085938, 0.01983642578125, -0.0017719268798828125, -0.03961181640625, 0.007411956787109375, 0.03594970703125, -0.03399658203125, 0.0386962890625, 0.031768798828125, -0.000530242919921875, -0.052276611328125, 0.009521484375, 0.0215911865234375, -0.0025005340576171875, 0.037567138671875, 0.07135009765625, 0.0145263671875, -0.061981201171875, -0.0211029052734375, 0.059326171875, 0.039031982421875, -0.05078125, -0.015869140625, -0.02520751953125, -0.01161956787109375, -0.0298004150390625, -0.0504150390625, 0.033782958984375, -0.01274871826171875, 0.037506103515625, -0.00004190206527709961, 0.03509521484375, 0.0017766952514648438, -0.034637451171875, 0.07110595703125, -0.033355712890625, -0.03717041015625, -0.002727508544921875, 0.0035247802734375, 0.0226287841796875, -0.0157012939453125, 0.017059326171875, 0.043060302734375, 0.0177001953125, -0.0183868408203125, 0.00006252527236938477, -0.025390625, -0.0111236572265625, 0.00997161865234375, -0.0175628662109375, -0.0011005401611328125, -0.06341552734375, 0.020477294921875, 0.0241546630859375, 0.03668212890625, 0.01128387451171875, -0.04150390625, -0.00007587671279907227, 0.02227783203125, -0.06414794921875, -0.069580078125, -0.062225341796875, -0.049468994140625, 0.035888671875, -0.025543212890625, 0.01324462890625, 0.002506256103515625, -0.0113525390625, 0.023406982421875, -0.04351806640625, 0.007694244384765625, -0.0206146240234375, -0.030059814453125, -0.03546142578125, 0.0147552490234375, -0.01345062255859375, 0.01561737060546875, -0.007717132568359375, 0.0406494140625, -0.00441741943359375, -0.06524658203125, -0.020233154296875, 0.03485107421875, -0.0006899833679199219, 0.005523681640625, 0.0044708251953125, -0.0469970703125, -0.02587890625, 0.01058197021484375, 0.005031585693359375, -0.017364501953125, 0.01526641845703125, -0.0208892822265625, 0.0034389495849609375, -0.0307159423828125, 0.046478271484375, 0.0235595703125, -0.03448486328125, 0.0156707763671875, 0.07000732421875, -0.018463134765625, -0.006160736083984375, 0.0474853515625, -0.01410675048828125, 0.0119781494140625, -0.0096435546875, -0.05255126953125, 0.073486328125, -0.033355712890625, 0.0408935546875, 0.0174102783203125, -0.0071563720703125, 0.00506591796875, 0.023162841796875, 0.007022857666015625, 0.032012939453125, -0.020477294921875, 0.00551605224609375, -0.0364990234375, -0.012847900390625, -0.0234832763671875, -0.0139007568359375, -0.004058837890625, 0.006290435791015625, 0.0229644775390625, -0.029632568359375, 0.03277587890625, -0.03826904296875, -0.0129852294921875, -0.0157928466796875, -0.00962066650390625, 0.01495361328125, 0.0714111328125, -0.00044083595275878906, -0.0085906982421875, -0.0234375, -0.0081024169921875, -0.039306640625, -0.0216064453125, -0.0574951171875, 0.019561767578125, -0.0751953125, 0.0247955322265625, 0.01306915283203125, -0.02105712890625, -0.03656005859375, 0.0596923828125, -0.06610107421875, -0.01253509521484375, 0.026885986328125, -0.10028076171875, 0.0284423828125, -0.00213623046875, 0.00778961181640625, -0.04779052734375, -0.00919342041015625, -0.05889892578125, -0.08660888671875, 0.003505706787109375, -0.08599853515625, 0.069580078125, 0.038818359375, -0.00592803955078125, -0.0188446044921875, 0.0204925537109375, -0.003444671630859375, -0.01081085205078125, -0.0025691986083984375, 0.01265716552734375, -0.0110321044921875, 0.0182952880859375, -0.01157379150390625, -0.00809478759765625, -0.0087890625, 0.01302337646484375, -0.033416748046875, -0.01277923583984375, -0.033172607421875, -0.054473876953125, 0.0230255126953125, -0.043365478515625, -0.03326416015625, -0.0233306884765625, -0.03961181640625, -0.015716552734375, -0.0194091796875, -0.00452423095703125, -0.006275177001953125, -0.0528564453125, 0.04486083984375, -0.030303955078125, -0.0288848876953125, 0.007106781005859375, 0.058502197265625, 0.01263427734375, -0.0123138427734375, -0.044586181640625, -0.027862548828125, 0.026336669921875, -0.0384521484375, 0.031890869140625, 0.0296783447265625, -0.0234832763671875, 0.046630859375, 0.0013427734375, 0.0192108154296875, -0.00383758544921875, 0.0231475830078125, 0.00441741943359375, -0.005184173583984375, 0.004085540771484375, 0.0212554931640625, -0.0193023681640625, 0.008758544921875, -0.0011453628540039062, -0.01309967041015625, 0.0213623046875, 0.025543212890625, -0.04931640625, 0.043182373046875, -0.00650787353515625, -0.045684814453125, 0.01910400390625, -0.046051025390625, 0.040771484375, 0.01480865478515625, -0.00836944580078125, 0.035980224609375, 0.0225067138671875, -0.007167816162109375, 0.02911376953125, 0.06683349609375, -0.0172882080078125, 0.0258331298828125, 0.032318115234375, -0.034576416015625, -0.021697998046875, -0.002361297607421875, 0.02032470703125, -0.0210418701171875, -0.0723876953125, -0.03369140625, 0.004589080810546875, 0.0227508544921875, 0.035491943359375, 0.0256195068359375, 0.034942626953125, -0.0104827880859375, -0.0225067138671875, -0.01468658447265625, 0.027587890625, -0.04156494140625, -0.035491943359375, 0.01447296142578125, -0.00824737548828125, 0.006664276123046875, 0.0011529922485351562, 0.0638427734375, 0.057861328125, 0.020416259765625, -0.0394287109375, 0.03857421875, 0.028594970703125, 0.044830322265625, 0.016754150390625, -0.037811279296875, 0.01593017578125, -0.011260986328125, 0.00463104248046875, -0.022857666015625, -0.01300811767578125, 0.0199432373046875, 0.0183258056640625, 0.0109710693359375, -0.0008511543273925781, 0.008026123046875, 0.0013837814331054688, -0.035980224609375, 0.08172607421875, 0.03289794921875, -0.055633544921875, -0.0689697265625, -0.0177001953125, 0.061981201171875, -0.0005183219909667969, -0.016357421875, 0.01131439208984375, -0.0235137939453125, 0.0125885009765625, -0.0217437744140625, -0.022735595703125, 0.023193359375, 0.0266876220703125, -0.0570068359375, -0.021820068359375, -0.0007419586181640625, -0.04095458984375, -0.0369873046875, -0.0074310302734375, -0.0211181640625, 0.0252685546875, -0.01922607421875, 0.00885772705078125, -0.01519775390625, -0.00012022256851196289, -0.02008056640625, 0.01556396484375, 0.046600341796875, 0.020843505859375, -0.06304931640625, -0.00878143310546875, -0.07440185546875, -0.01837158203125, -0.037261962890625, -0.03753662109375, -0.0197601318359375, 0.0277557373046875, 0.01812744140625, 0.02911376953125, -0.00989532470703125, -0.023590087890625, 0.0024356842041015625, 0.00679779052734375, 0.0055389404296875, 0.0496826171875, -0.0084991455078125, 0.061798095703125, -0.012603759765625, 0.0289764404296875, 0.004405975341796875, 0.01708984375, -0.0210418701171875, -0.003620147705078125, 0.00305938720703125, -0.0179443359375, -0.00519561767578125, -0.007049560546875, 0.044769287109375, -0.0220489501953125, 0.006305694580078125, -0.01433563232421875, -0.01149749755859375, 0.0162200927734375, 0.0068817138671875, -0.0172271728515625, 0.001331329345703125, 0.046844482421875, 0.0140838623046875, -0.018524169921875, -0.02191162109375, 0.005435943603515625, -0.024871826171875, -0.04840087890625, 0.03564453125, -0.004550933837890625, 0.008392333984375, 0.046600341796875, -0.02947998046875, 0.04473876953125, 0.07415771484375, 0.030303955078125, 0.0667724609375, 0.031524658203125, 0.04132080078125, 0.014617919921875, 0.0274658203125, 0.019866943359375, -0.017486572265625, 0.05206298828125, 0.003849029541015625, -0.007656097412109375, 0.033905029296875, -0.01934814453125, 0.00901031494140625, 0.049346923828125, 0.049041748046875, -0.092041015625, 0.014892578125, 0.01122283935546875, 0.01861572265625, 0.0166168212890625, -0.0302886962890625, -0.0011548995971679688, -0.04998779296875, 0.06695556640625, 0.0086822509765625, -0.01113128662109375, 0.02044677734375, -0.0243072509765625, -0.0042877197265625, -0.0335693359375, 0.064208984375, 0.0240936279296875, 0.0009083747863769531, -0.01319122314453125, -0.00527191162109375, -0.00632476806640625, -0.00255584716796875, 0.0270233154296875, -0.0018529891967773438, 0.0007691383361816406, -0.0036525726318359375, 0.031494140625, -0.00019741058349609375, -0.02520751953125, 0.01727294921875, 0.01165008544921875, 0.06890869140625, 0.05596923828125, 0.01531219482421875, -0.0300750732421875, 0.02764892578125, 0.003566741943359375, -0.057647705078125, 0.004337310791015625, 0.0099639892578125, 0.0228424072265625, -0.0595703125, 0.0244903564453125, -0.0625, 0.0199737548828125, -0.0013227462768554688, -0.0002512931823730469, 0.06280517578125, -0.00249481201171875, -0.03167724609375, 0.02545166015625, -0.006801605224609375, -0.02294921875, -0.0107421875, 0.05316162109375, -0.0198211669921875, 0.01042938232421875, 0.0179595947265625, -0.0176544189453125, -0.032196044921875, -0.0162506103515625, -0.0312347412109375, 0.07098388671875, -0.00902557373046875, -0.0166168212890625, -0.0171661376953125, 0.03753662109375, 0.00919342041015625, 0.037200927734375, -0.0251312255859375, 0.0195465087890625, 0.0030612945556640625, 0.0232086181640625, -0.040008544921875, -0.003879547119140625, -0.00992584228515625, 0.035797119140625, 0.00762939453125, 0.0110015869140625, 0.006534576416015625, -0.0078277587890625, 0.0012836456298828125, 0.0111236572265625, -0.01258087158203125, 0.0195159912109375, 0.006710052490234375, 0.0094757080078125, 0.0440673828125, 0.0008120536804199219, 0.05126953125, -0.032958984375, 0.005809783935546875, 0.034088134765625, 0.022247314453125, 0.02276611328125, -0.00670623779296875, 0.01393890380859375, -0.03021240234375, -0.0004246234893798828, 0.03765869140625, -0.0521240234375, -0.010955810546875, 0.00836944580078125, -0.022857666015625, -0.005817413330078125, 0.038970947265625, -0.0307769775390625, 0.0285186767578125, -0.015716552734375, 0.0160369873046875, 0.0014104843139648438, 0.018890380859375, 0.0080108642578125, -0.00988006591796875, 0.0082244873046875, 0.0533447265625, -0.061492919921875, 0.034942626953125, 0.053466796875, 0.0413818359375, 0.005306243896484375, -0.0472412109375, 0.00787353515625, 0.051910400390625, -0.0113067626953125, -0.0731201171875, -0.0010538101196289062, 0.0008974075317382812, 0.0179443359375, 0.043243408203125, 0.03192138671875, 0.034088134765625, 0.052764892578125, -0.0142059326171875, -0.036529541015625, -0.01459503173828125, 0.01953125, 0.002498626708984375, 0.01446533203125, 0.0265655517578125, -0.0537109375, -0.044036865234375, -0.004974365234375, 0.026519775390625, 0.051361083984375, 0.0116119384765625, 0.025970458984375, 0.002471923828125, -0.0234222412109375, 0.00446319580078125, 0.0204315185546875, -0.026123046875, -0.006198883056640625, -0.0254058837890625, -0.0308380126953125, 0.00618743896484375, 0.031707763671875, -0.0110931396484375, 0.0002510547637939453, -0.0189056396484375, 0.0212249755859375, 0.05462646484375, -0.00623321533203125, 0.0037822723388671875, 0.00445556640625, -0.028839111328125, -0.0306243896484375, 0.0115203857421875, 0.01702880859375, 0.0183563232421875, 0.0170745849609375, 0.037811279296875, 0.0162506103515625, -0.050811767578125, 0.042022705078125, -0.01476287841796875, -0.039031982421875, 0.034027099609375, -0.00469970703125, 0.09661865234375, -0.01087188720703125, -0.059326171875, -0.01824951171875, 0.0174713134765625, -0.034515380859375, 0.002178192138671875, 0.033050537109375, -0.033538818359375, 0.028076171875, 0.001682281494140625, -0.0090179443359375, 0.019073486328125, -0.01372528076171875, 0.0078887939453125, -0.0253753662109375, 0.00853729248046875, -0.0084991455078125, 0.05474853515625, 0.0300750732421875, 0.044952392578125, 0.027496337890625, 0.006687164306640625, 0.0090484619140625, -0.02392578125, 0.00438690185546875, -0.01267242431640625, -0.0135040283203125, -0.030609130859375, -0.0251312255859375, 0.0171966552734375, -0.05450439453125, -0.0350341796875, 0.0121307373046875, -0.054046630859375, 0.03424072265625, 0.033538818359375, 0.00150299072265625, 0.02685546875, 0.005466461181640625, 0.00481414794921875, -0.02301025390625, 0.052215576171875, -0.018310546875, -0.05743408203125, -0.0394287109375, 0.0306243896484375, 0.019805908203125, 0.03033447265625, -0.047607421875, 0.003261566162109375, -0.046844482421875, -0.0467529296875, 0.004730224609375, -0.01404571533203125, -0.0225830078125, 0.0240936279296875, -0.0205841064453125, -0.02264404296875, -0.0161590576171875, -0.01161956787109375, 0.0225372314453125, 0.00738525390625, 0.0230865478515625, 0.0064544677734375, -0.021697998046875, -0.01313018798828125, 0.0038051605224609375, 0.025787353515625, -0.033966064453125, 0.01366424560546875, 0.00604248046875, 0.0039215087890625, 0.0010290145874023438, -0.01332855224609375, -0.02923583984375, -0.0430908203125, 0.00598907470703125, 0.0151824951171875, -0.006084442138671875, -0.0202789306640625, -0.048431396484375, 0.01456451416015625, 0.04052734375, -0.0024433135986328125, -0.0196990966796875, -0.0089874267578125, -0.04742431640625, 0.05523681640625, 0.00501251220703125, 0.04290771484375, -0.01123809814453125, 0.0238494873046875, -0.0191192626953125, 0.008544921875, -0.0210113525390625, 0.023712158203125, 0.0108184814453125, 0.00505828857421875, 0.03875732421875, -0.019775390625, -0.056549072265625, -0.030792236328125, -0.01410675048828125, 0.00501251220703125, -0.0021152496337890625, -0.01641845703125, -0.003757476806640625, 0.0311126708984375, -0.0248870849609375, -0.03668212890625, 0.0060272216796875, -0.021270751953125, -0.0214080810546875, -0.00977325439453125, 0.0282440185546875, 0.041595458984375, -0.01502227783203125, -0.0869140625, 0.046783447265625, -0.017181396484375, -0.032501220703125, -0.0360107421875, 0.01209259033203125, 0.026275634765625, -0.0181427001953125, -0.026519775390625, -0.01152801513671875, -0.0450439453125, 0.00003516674041748047, 0.00270843505859375, -0.052581787109375, 0.052093505859375, -0.0012216567993164062, -0.0758056640625, -0.01360321044921875, -0.01058197021484375, -0.0188446044921875, -0.0073394775390625, 0.01479339599609375, 0.0310211181640625, 0.0560302734375, 0.007293701171875, 0.02130126953125, 0.0115814208984375, -0.03302001953125, -0.006534576416015625, -0.05126953125, 0.0200653076171875, 0.0214691162109375, 0.03466796875, 0.01549530029296875, -0.00962066650390625, -0.053619384765625, -0.019805908203125, -0.045928955078125, 0.024749755859375, 0.006366729736328125, -0.025543212890625, -0.02313232421875, 0.01153564453125, 0.00733184814453125, 0.00455474853515625, -0.04901123046875, 0.04437255859375, -0.031890869140625, -0.030853271484375, 0.023529052734375, 0.00174713134765625, -0.01174163818359375, -0.026153564453125, 0.018218994140625, -0.0158233642578125, -0.017181396484375, 0.01529693603515625, 0.01702880859375, -0.0068817138671875, 0.043365478515625, 0.06884765625, 0.0516357421875, -0.059478759765625, -0.0162506103515625, 0.0391845703125, 0.0261383056640625, -0.021148681640625, -0.049163818359375, -0.0006127357482910156, 0.0053863525390625, -0.01505279541015625, -0.0017538070678710938, 0.0264892578125, -0.004772186279296875, -0.00882720947265625, -0.0031986236572265625, 0.0020294189453125, 0.032867431640625, -0.006038665771484375, 0.0287628173828125, 0.03399658203125, -0.026275634765625, 0.057525634765625, -0.02069091796875, -0.0079193115234375, 0.043121337890625, 0.0006146430969238281, -0.044158935546875, 0.00678253173828125, -0.02520751953125, 0.0435791015625, 0.0028896331787109375 ]
c5bec560ec1317430b875e0ef1b424afcde20fb2
Wordpress Stackexchange Q: Can I have Post Types under other Post Types in Admin menu? Lets say I have created two custom post types A and B. Those post types are displayed in the Admin menu one after another. (After Posts for example) Is there a way to display B under A? The only similar behavior I am aware of is to assign Taxonomies to Post Types. This forces the first to be displayed under the second. I am looking for a way to do this using custom post types. It's like having relationships across post types. I am managing post types and taxonomies using the excellent GD CPT Tools plugin. Wordpress 3.4.2 A: Yes, this capability is available with register_post_type, via the show_in_menu argument, but whether or not the particular plugin you are using supports this I don't know. add_action( 'init', 'wpa70679_custom_types' ); function wpa70679_custom_types() { register_post_type( 'parent_type', array( 'public' => true, 'labels' => array( 'name' => 'Parent post type' ) ) ); register_post_type( 'child_type', array( 'public' => true, 'show_in_menu' => 'edit.php?post_type=parent_type', 'labels' => array( 'name' => 'Child post type' ) ) ); }
Q: Can I have Post Types under other Post Types in Admin menu? Lets say I have created two custom post types A and B. Those post types are displayed in the Admin menu one after another. (After Posts for example) Is there a way to display B under A? The only similar behavior I am aware of is to assign Taxonomies to Post Types. This forces the first to be displayed under the second. I am looking for a way to do this using custom post types. It's like having relationships across post types. I am managing post types and taxonomies using the excellent GD CPT Tools plugin. Wordpress 3.4.2 A: Yes, this capability is available with register_post_type, via the show_in_menu argument, but whether or not the particular plugin you are using supports this I don't know. add_action( 'init', 'wpa70679_custom_types' ); function wpa70679_custom_types() { register_post_type( 'parent_type', array( 'public' => true, 'labels' => array( 'name' => 'Parent post type' ) ) ); register_post_type( 'child_type', array( 'public' => true, 'show_in_menu' => 'edit.php?post_type=parent_type', 'labels' => array( 'name' => 'Child post type' ) ) ); }
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:425231", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70679" }
[ 0.060699462890625, 0.0131072998046875, 0.0012674331665039062, 0.0009670257568359375, 0.01317596435546875, -0.03466796875, 0.06121826171875, -0.03765869140625, -0.026031494140625, 0.004306793212890625, -0.01430511474609375, -0.01280975341796875, -0.056182861328125, -0.03607177734375, -0.003047943115234375, -0.04168701171875, 0.02587890625, -0.017242431640625, 0.0325927734375, -0.01861572265625, 0.0006642341613769531, -0.0155487060546875, 0.0509033203125, -0.0216064453125, 0.046722412109375, -0.01282501220703125, 0.042510986328125, -0.0143280029296875, 0.015899658203125, -0.004215240478515625, 0.029754638671875, -0.0118560791015625, 0.0006222724914550781, -0.0124969482421875, 0.051971435546875, 0.01558685302734375, 0.011749267578125, 0.0120849609375, 0.041595458984375, 0.007083892822265625, -0.00806427001953125, 0.01204681396484375, 0.052398681640625, 0.02032470703125, -0.007293701171875, -0.02825927734375, -0.002094268798828125, -0.0275421142578125, 0.021453857421875, -0.037353515625, 0.0178070068359375, -0.0302886962890625, 0.03570556640625, -0.02508544921875, -0.033416748046875, -0.00878143310546875, -0.014892578125, -0.01416015625, 0.0357666015625, 0.006557464599609375, -0.022308349609375, -0.019317626953125, 0.0231475830078125, -0.0300750732421875, 0.016326904296875, 0.0152587890625, 0.00040984153747558594, 0.0017108917236328125, -0.039520263671875, 0.015594482421875, 0.041748046875, -0.046783447265625, 0.0246734619140625, -0.01151275634765625, 0.024993896484375, -0.0286102294921875, 0.002307891845703125, -0.002017974853515625, 0.01410675048828125, 0.0161285400390625, 0.0021495819091796875, 0.007144927978515625, -0.0014505386352539062, 0.010345458984375, -0.0115966796875, 0.01953125, -0.0184173583984375, -0.022308349609375, -0.01629638671875, -0.005321502685546875, -0.020904541015625, -0.048004150390625, -0.004772186279296875, 0.05462646484375, 0.00881195068359375, -0.0095672607421875, 0.056915283203125, 0.06378173828125, -0.0211029052734375, 0.01511383056640625, -0.021148681640625, -0.03955078125, 0.03863525390625, -0.04815673828125, 0.04296875, 0.01221466064453125, -0.040191650390625, -0.01543426513671875, 0.0816650390625, 0.042510986328125, 0.01268768310546875, 0.05596923828125, -0.017425537109375, -0.022918701171875, -0.0169219970703125, 0.0203094482421875, -0.0277252197265625, -0.007633209228515625, 0.006275177001953125, 0.005584716796875, -0.004657745361328125, 0.03271484375, 0.017822265625, -0.0041046142578125, 0.0102996826171875, 0.0292510986328125, 0.0120849609375, -0.0743408203125, -0.01447296142578125, 0.0283203125, -0.0233154296875, -0.00681304931640625, 0.045013427734375, 0.0307159423828125, -0.0014619827270507812, -0.0225830078125, 0.01407623291015625, -0.0294647216796875, -0.01183319091796875, -0.0128021240234375, 0.0285186767578125, -0.021514892578125, -0.0251007080078125, 0.012725830078125, 0.002105712890625, 0.040924072265625, 0.002765655517578125, -0.0100250244140625, -0.006683349609375, -0.0291748046875, 0.0086212158203125, -0.06634521484375, 0.06671142578125, 0.00777435302734375, -0.040313720703125, -0.02813720703125, 0.03277587890625, -0.034820556640625, -0.041015625, -0.06689453125, 0.0036029815673828125, -0.00218963623046875, 0.040985107421875, -0.055023193359375, -0.06427001953125, 0.022369384765625, -0.0772705078125, -0.0208892822265625, 0.0216064453125, -0.05419921875, 0.072021484375, -0.0185546875, -0.0083770751953125, 0.0005030632019042969, 0.01424407958984375, -0.002101898193359375, -0.002933502197265625, -0.00983428955078125, 0.0307464599609375, 0.01300811767578125, -0.020172119140625, -0.029541015625, 0.02520751953125, -0.0115814208984375, -0.03887939453125, -0.00289154052734375, 0.030670166015625, 0.0268096923828125, -0.012115478515625, 0.03582763671875, 0.029205322265625, 0.02996826171875, -0.030975341796875, 0.01153564453125, -0.00978851318359375, -0.0172882080078125, -0.01207733154296875, 0.01221466064453125, -0.0204925537109375, 0.00743865966796875, -0.07330322265625, 0.002887725830078125, -0.01209259033203125, 0.0167694091796875, -0.0166168212890625, 0.01145172119140625, -0.01447296142578125, 0.0455322265625, 0.0167999267578125, 0.00417327880859375, 0.006072998046875, -0.0034809112548828125, -0.015045166015625, -0.055816650390625, -0.033782958984375, 0.049774169921875, -0.01102447509765625, 0.037994384765625, -0.0098724365234375, 0.0236663818359375, -0.018798828125, -0.024627685546875, -0.017333984375, 0.0199432373046875, 0.04302978515625, 0.0027065277099609375, -0.008880615234375, -0.005123138427734375, 0.0284576416015625, 0.05743408203125, -0.08038330078125, -0.0228729248046875, 0.0052032470703125, -0.037139892578125, -0.05096435546875, -0.0016012191772460938, 0.007755279541015625, -0.045989990234375, 0.004077911376953125, 0.0579833984375, 0.006275177001953125, 0.036590576171875, -0.0180511474609375, 0.03692626953125, 0.0233001708984375, 0.005096435546875, 0.0176544189453125, 0.0032501220703125, -0.003986358642578125, 0.03582763671875, -0.001377105712890625, 0.017547607421875, 0.01543426513671875, -0.0006456375122070312, 0.0316162109375, 0.02392578125, -0.000048220157623291016, -0.0284271240234375, 0.03497314453125, -0.011566162109375, 0.020416259765625, -0.007144927978515625, -0.044464111328125, 0.0159454345703125, 0.029022216796875, 0.0184478759765625, 0.051055908203125, 0.029754638671875, -0.0300445556640625, -0.0067596435546875, 0.016448974609375, 0.0287628173828125, 0.005016326904296875, 0.009521484375, 0.0250701904296875, -0.00775909423828125, -0.0275421142578125, -0.004375457763671875, 0.025726318359375, -0.006900787353515625, -0.003314971923828125, -0.00978851318359375, -0.055450439453125, 0.000705718994140625, -0.004486083984375, -0.058563232421875, 0.002716064453125, 0.0701904296875, -0.0416259765625, -0.031585693359375, -0.0031108856201171875, 0.0278472900390625, -0.018890380859375, 0.01000213623046875, 0.004840850830078125, 0.0005917549133300781, 0.00490570068359375, -0.0279541015625, 0.037200927734375, -0.034637451171875, 0.04388427734375, 0.049346923828125, -0.015838623046875, 0.005237579345703125, -0.0006570816040039062, -0.014678955078125, -0.0110321044921875, 0.044891357421875, 0.004093170166015625, -0.073974609375, 0.03179931640625, 0.039398193359375, 0.01971435546875, 0.0163421630859375, -0.0020046234130859375, -0.0211334228515625, -0.002105712890625, 0.0287933349609375, -0.011260986328125, 0.00778961181640625, 0.01087188720703125, -0.0638427734375, -0.00937652587890625, -0.0172576904296875, -0.0280914306640625, -0.0083770751953125, 0.0035190582275390625, 0.0021228790283203125, 0.0153350830078125, -0.0184326171875, -0.04327392578125, -0.03790283203125, -0.04742431640625, -0.0165863037109375, -0.005176544189453125, -0.01221466064453125, 0.01262664794921875, 0.03619384765625, 0.023284912109375, -0.07891845703125, 0.023101806640625, 0.0758056640625, -0.02294921875, 0.046356201171875, 0.0479736328125, -0.0516357421875, 0.057525634765625, 0.01259613037109375, -0.05828857421875, 0.0309295654296875, -0.0008082389831542969, -0.049407958984375, -0.00873565673828125, 0.023284912109375, 0.037078857421875, -0.02880859375, -0.0026073455810546875, 0.0728759765625, 0.0239410400390625, -0.0034236907958984375, -0.015380859375, -0.02117919921875, -0.0538330078125, -0.01495361328125, 0.033721923828125, 0.00647735595703125, -0.0445556640625, 0.01172637939453125, -0.0029754638671875, 0.00960540771484375, 0.015655517578125, -0.0172119140625, 0.0340576171875, -0.01055145263671875, -0.01013946533203125, -0.02154541015625, -0.032318115234375, -0.0174407958984375, 0.037445068359375, -0.00995635986328125, 0.035858154296875, -0.00399017333984375, 0.055023193359375, -0.018829345703125, -0.0869140625, 0.032562255859375, -0.057342529296875, -0.0004241466522216797, -0.051177978515625, -0.01393890380859375, 0.00199127197265625, 0.1064453125, -0.050933837890625, 0.0084381103515625, -0.03125, -0.0008387565612792969, -0.0103302001953125, -0.06268310546875, -0.059478759765625, -0.01255035400390625, -0.044097900390625, 0.00815582275390625, -0.021240234375, 0.0012149810791015625, -0.0311279296875, 0.0628662109375, -0.0306854248046875, -0.031280517578125, 0.044647216796875, -0.0195770263671875, -0.0174102783203125, 0.031707763671875, -0.0267486572265625, -0.00806427001953125, -0.053192138671875, 0.007701873779296875, -0.08123779296875, -0.0212249755859375, -0.0114593505859375, 0.07275390625, 0.0234832763671875, -0.03961181640625, -0.0140228271484375, 0.055206298828125, 0.033935546875, 0.0236053466796875, -0.0014314651489257812, -0.004444122314453125, -0.01922607421875, -0.036163330078125, -0.00045752525329589844, -0.0269012451171875, -0.0318603515625, -0.015716552734375, -0.0189056396484375, 0.009002685546875, 0.005146026611328125, -0.01392364501953125, 0.05322265625, -0.0256195068359375, -0.0254669189453125, -0.02850341796875, -0.07122802734375, 0.0008425712585449219, -0.002124786376953125, -0.042694091796875, -0.055938720703125, -0.06903076171875, -0.0007586479187011719, -0.006053924560546875, -0.0213775634765625, 0.0168304443359375, 0.04107666015625, 0.016387939453125, -0.0021266937255859375, -0.01454925537109375, -0.0272979736328125, 0.00762939453125, -0.023712158203125, 0.060882568359375, 0.0226593017578125, 0.0027217864990234375, 0.038543701171875, -0.01190948486328125, -0.036956787109375, 0.0006866455078125, 0.0703125, 0.018829345703125, -0.0191497802734375, 0.0159454345703125, -0.0200958251953125, 0.01708984375, 0.0244598388671875, -0.017303466796875, -0.043975830078125, -0.012359619140625, 0.08331298828125, -0.032440185546875, 0.050048828125, -0.07708740234375, -0.00868988037109375, 0.022979736328125, -0.00676727294921875, -0.01068115234375, 0.0143280029296875, -0.00878143310546875, -0.024810791015625, -0.055206298828125, -0.0006890296936035156, 0.0194854736328125, 0.020965576171875, 0.0287933349609375, 0.02947998046875, 0.0235748291015625, 0.004833221435546875, -0.01763916015625, -0.00424957275390625, 0.0357666015625, -0.0073394775390625, -0.04541015625, 0.007335662841796875, -0.00812530517578125, 0.0183563232421875, 0.01482391357421875, 0.006710052490234375, 0.02178955078125, 0.036956787109375, 0.0164642333984375, 0.00653076171875, -0.0032634735107421875, 0.03277587890625, -0.019317626953125, 0.004634857177734375, -0.00244140625, 0.0008702278137207031, -0.01551055908203125, 0.057098388671875, 0.01268768310546875, 0.0136566162109375, -0.01447296142578125, 0.03363037109375, 0.043243408203125, 0.021728515625, 0.0239715576171875, -0.0197601318359375, 0.007152557373046875, -0.01110076904296875, 0.0005297660827636719, -0.0234222412109375, -0.01386260986328125, 0.0018863677978515625, 0.02508544921875, 0.02362060546875, 0.010406494140625, 0.018341064453125, 0.0020351409912109375, -0.0294952392578125, 0.01544189453125, 0.0162811279296875, -0.0252685546875, -0.017547607421875, 0.01093292236328125, 0.0290069580078125, 0.00939178466796875, -0.045867919921875, 0.039337158203125, -0.049163818359375, 0.0225067138671875, -0.023284912109375, -0.04620361328125, 0.037689208984375, 0.047760009765625, -0.0455322265625, -0.0108642578125, 0.007244110107421875, -0.029205322265625, -0.0333251953125, 0.0119476318359375, -0.00861358642578125, -0.00772857666015625, -0.02142333984375, 0.00726318359375, -0.015655517578125, 0.005359649658203125, -0.032379150390625, 0.00176239013671875, 0.08538818359375, 0.044952392578125, -0.0155029296875, 0.0109100341796875, -0.047027587890625, -0.03472900390625, -0.0406494140625, -0.039947509765625, -0.062286376953125, 0.0072784423828125, -0.01438140869140625, 0.008056640625, -0.03533935546875, -0.006603240966796875, -0.0038433074951171875, 0.0440673828125, 0.00966644287109375, 0.03253173828125, 0.005889892578125, 0.072998046875, -0.029998779296875, 0.0528564453125, 0.005138397216796875, 0.01540374755859375, -0.0430908203125, 0.002567291259765625, 0.00435638427734375, -0.040740966796875, -0.0265045166015625, -0.004360198974609375, -0.0262908935546875, 0.033905029296875, 0.056182861328125, 0.0003972053527832031, 0.0382080078125, 0.006443023681640625, 0.0123748779296875, -0.0157928466796875, -0.02880859375, -0.0080718994140625, 0.0369873046875, 0.0230255126953125, -0.007724761962890625, -0.004150390625, 0.0015401840209960938, -0.0229644775390625, 0.0216522216796875, -0.00004953145980834961, 0.0225067138671875, 0.0007271766662597656, -0.06170654296875, 0.055328369140625, 0.0457763671875, 0.036773681640625, 0.050567626953125, -0.01462554931640625, 0.024566650390625, -0.00992584228515625, -0.043914794921875, -0.0013494491577148438, 0.017486572265625, 0.02362060546875, -0.00959014892578125, 0.0156097412109375, 0.034576416015625, -0.0159759521484375, -0.0263519287109375, 0.022247314453125, 0.00951385498046875, -0.045928955078125, -0.00814056396484375, 0.00984954833984375, 0.0150299072265625, -0.0089111328125, 0.01367950439453125, -0.0103759765625, 0.01476287841796875, -0.015472412109375, -0.024749755859375, -0.0306243896484375, -0.0014667510986328125, 0.00783538818359375, -0.017913818359375, -0.0149383544921875, 0.0278472900390625, 0.0134429931640625, 0.033416748046875, -0.0152740478515625, -0.0350341796875, 0.0049285888671875, 0.001667022705078125, 0.0306549072265625, -0.0316162109375, -0.0165557861328125, -0.0286865234375, 0.0034122467041015625, -0.0284423828125, -0.01093292236328125, 0.01016998291015625, -0.006313323974609375, 0.0011110305786132812, 0.03411865234375, -0.018890380859375, 0.015960693359375, 0.00322723388671875, -0.0255279541015625, -0.025634765625, -0.03680419921875, 0.0000597834587097168, 0.024261474609375, -0.037933349609375, 0.0162353515625, -0.026092529296875, -0.0133209228515625, -0.009124755859375, -0.006267547607421875, 0.0526123046875, -0.021942138671875, -0.00891876220703125, 0.045257568359375, 0.01062774658203125, -0.0262908935546875, 0.01352691650390625, 0.01108551025390625, -0.02423095703125, -0.03509521484375, 0.01171112060546875, -0.05035400390625, -0.01702880859375, -0.0009765625, -0.04632568359375, 0.10272216796875, -0.05108642578125, 0.04595947265625, 0.0433349609375, 0.0248565673828125, -0.01265716552734375, 0.01236724853515625, -0.023834228515625, 0.0271759033203125, 0.00966644287109375, 0.0269012451171875, -0.054718017578125, -0.024139404296875, -0.0084381103515625, 0.056732177734375, 0.0367431640625, 0.0014715194702148438, -0.03900146484375, 0.0189666748046875, 0.08251953125, 0.01300811767578125, 0.004669189453125, 0.052947998046875, 0.025146484375, -0.0194549560546875, 0.045928955078125, 0.031402587890625, 0.06365966796875, -0.0295562744140625, -0.0043182373046875, 0.0234222412109375, 0.02105712890625, 0.036773681640625, -0.0106201171875, -0.011810302734375, 0.00814056396484375, -0.00894927978515625, 0.00772857666015625, -0.03955078125, 0.0216217041015625, 0.0051727294921875, 0.0152587890625, -0.037078857421875, 0.01016998291015625, -0.026092529296875, 0.040557861328125, -0.00830078125, 0.003627777099609375, -0.0007548332214355469, 0.01702880859375, -0.0122833251953125, -0.01605224609375, -0.002044677734375, 0.044219970703125, -0.049102783203125, 0.01104736328125, 0.004711151123046875, 0.0296478271484375, -0.02197265625, 0.01479339599609375, 0.0278778076171875, 0.013671875, -0.0250091552734375, -0.08953857421875, 0.017425537109375, 0.0164794921875, 0.00007039308547973633, 0.0567626953125, 0.0246429443359375, -0.0019073486328125, 0.06292724609375, -0.0205078125, -0.01617431640625, 0.0022945404052734375, 0.0452880859375, 0.0032958984375, -0.00827789306640625, -0.041259765625, -0.0308685302734375, -0.06414794921875, 0.0108642578125, 0.031341552734375, 0.08441162109375, 0.0229339599609375, 0.06793212890625, -0.01432037353515625, -0.04052734375, -0.0038890838623046875, -0.030426025390625, -0.01471710205078125, -0.0009760856628417969, -0.024322509765625, -0.00616455078125, 0.0249176025390625, 0.03399658203125, 0.0200042724609375, 0.00872802734375, 0.042999267578125, 0.03375244140625, -0.0066680908203125, -0.007442474365234375, 0.0555419921875, -0.0014638900756835938, -0.0218658447265625, -0.019378662109375, -0.0104217529296875, 0.0217437744140625, -0.01024627685546875, 0.0261688232421875, 0.0151824951171875, 0.0159149169921875, 0.0100555419921875, 0.02008056640625, 0.001018524169921875, -0.0165557861328125, 0.03900146484375, 0.0007405281066894531, 0.053985595703125, 0.0309295654296875, -0.124267578125, -0.051055908203125, -0.0243377685546875, -0.0335693359375, 0.050689697265625, 0.044342041015625, 0.00035500526428222656, -0.007289886474609375, 0.046295166015625, -0.0199432373046875, -0.0220947265625, 0.00739288330078125, 0.03558349609375, 0.005977630615234375, -0.00026226043701171875, 0.0269317626953125, -0.0311279296875, -0.01158905029296875, -0.0023479461669921875, 0.0012187957763671875, 0.005767822265625, 0.0628662109375, 0.0009288787841796875, 0.0116119384765625, -0.0333251953125, 0.043060302734375, -0.06842041015625, -0.041839599609375, 0.042755126953125, -0.01045989990234375, -0.00720977783203125, 0.006023406982421875, -0.026763916015625, 0.02130126953125, 0.0458984375, -0.050628662109375, 0.01403045654296875, 0.006534576416015625, 0.002803802490234375, -0.042755126953125, 0.0142974853515625, -0.016387939453125, -0.0008311271667480469, -0.0302276611328125, -0.020599365234375, 0.034088134765625, 0.0193634033203125, -0.0172119140625, 0.0207366943359375, 0.032958984375, -0.029144287109375, 0.048431396484375, -0.0189666748046875, 0.052276611328125, 0.02490234375, 0.01378631591796875, -0.05462646484375, 0.030364990234375, -0.0023403167724609375, 0.01142120361328125, 0.0165863037109375, 0.0758056640625, 0.01029205322265625, -0.0281524658203125, 0.01971435546875, 0.03271484375, 0.0157012939453125, -0.0465087890625, -0.0100250244140625, 0.061981201171875, -0.0288848876953125, 0.004520416259765625, -0.03460693359375, -0.04302978515625, -0.047027587890625, 0.0163116455078125, 0.0177001953125, 0.008270263671875, -0.0377197265625, -0.062744140625, 0.0162353515625, 0.07568359375, 0.0209197998046875, -0.05572509765625, 0.037567138671875, -0.0494384765625, 0.026763916015625, 0.04852294921875, -0.039794921875, 0.0186920166015625, 0.0290374755859375, 0.00539398193359375, 0.0030956268310546875, -0.028289794921875, -0.0097198486328125, -0.007537841796875, 0.040740966796875, 0.0237274169921875, -0.04437255859375, -0.00010889768600463867, 0.0241241455078125, 0.036865234375, 0.06689453125, 0.0714111328125, -0.026641845703125, -0.0293426513671875, 0.0198211669921875, -0.019561767578125, -0.021148681640625, 0.03741455078125, -0.05206298828125, -0.04376220703125, -0.01311492919921875, 0.0345458984375, 0.052886962890625, -0.0155487060546875, -0.06866455078125, 0.09051513671875, -0.023345947265625, -0.023681640625, -0.0305633544921875, 0.0115203857421875, -0.024627685546875, 0.046600341796875, 0.018035888671875, -0.0271148681640625, 0.0015707015991210938, 0.0269012451171875, -0.01111602783203125, 0.047607421875, -0.004009246826171875, -0.028411865234375, -0.019500732421875, -0.00870513916015625, 0.01187896728515625, -0.0093231201171875, 0.032318115234375, 0.0006208419799804688, 0.01148223876953125, 0.0221405029296875, -0.05645751953125, 0.02105712890625, -0.0306549072265625, 0.0269317626953125, 0.01666259765625, -0.044921875, -0.0244293212890625, -0.0225677490234375, 0.03515625, 0.01157379150390625, 0.01374053955078125, -0.00736236572265625, -0.037261962890625, -0.05804443359375, -0.0372314453125, -0.016510009765625, 0.0196685791015625, -0.07232666015625, 0.018096923828125, 0.015960693359375, 0.01404571533203125, -0.035064697265625, 0.035858154296875, -0.004245758056640625, -0.038604736328125, 0.03717041015625, -0.013641357421875, -0.03485107421875, 0.059051513671875, -0.03631591796875, 0.0035266876220703125, -0.017913818359375, -0.0116119384765625, -0.0160064697265625, -0.035064697265625, 0.0228424072265625, -0.02838134765625, 0.0033130645751953125, -0.025054931640625, 0.0244140625, -0.0181884765625, 0.030242919921875, -0.040130615234375, 0.0236053466796875, -0.056243896484375, 0.0028591156005859375, 0.0202178955078125, -0.00844573974609375, -0.04388427734375, 0.055419921875, 0.04693603515625, 0.059356689453125, 0.0306396484375, 0.053314208984375, -0.00273895263671875, 0.042144775390625, -0.0185546875, -0.01534271240234375, -0.0169525146484375, -0.0135955810546875, 0.0023288726806640625, -0.0168304443359375, -0.004970550537109375, -0.052093505859375, 0.01690673828125, 0.03619384765625, -0.00274658203125, 0.0279693603515625 ]
cbf2bf6be656a3e9754f2b6621f654ce61299e53
Wordpress Stackexchange Q: Decrease file size upload in Media By default, I have a 2m limit of uploads. I want to decrease this number. I found out that this code: function custom_file_max_upload_size( $file ) { $size = $file['size']; if ( $size > 1000 * 1024 ) { $file['error'] = __( 'ERROR: you cannot upload files larger than 1M', 'textdomain' ); } return $file; } add_filter ( 'wp_handle_upload_prefilter', 'custom_file_max_upload_size', 10, 1 ); works by adding to functions. However, it does not update the upload size information when the user is on upload screen. It still displays Maximum upload file size: 2MB. How can I change that text to 1mb? Or alternatively, a different approach to decrease the file size (that does not include editing php.ini or htaccess...) A: That number is taken from wp_max_upload_size(), and there is a filter: 'upload_size_limit'. See wp-admin/includes/template.php. So this should work (not tested): add_filter( 'upload_size_limit', 'wpse_70754_change_upload_size' ); function wpse_70754_change_upload_size() { return 1000 * 1024; }
Q: Decrease file size upload in Media By default, I have a 2m limit of uploads. I want to decrease this number. I found out that this code: function custom_file_max_upload_size( $file ) { $size = $file['size']; if ( $size > 1000 * 1024 ) { $file['error'] = __( 'ERROR: you cannot upload files larger than 1M', 'textdomain' ); } return $file; } add_filter ( 'wp_handle_upload_prefilter', 'custom_file_max_upload_size', 10, 1 ); works by adding to functions. However, it does not update the upload size information when the user is on upload screen. It still displays Maximum upload file size: 2MB. How can I change that text to 1mb? Or alternatively, a different approach to decrease the file size (that does not include editing php.ini or htaccess...) A: That number is taken from wp_max_upload_size(), and there is a filter: 'upload_size_limit'. See wp-admin/includes/template.php. So this should work (not tested): add_filter( 'upload_size_limit', 'wpse_70754_change_upload_size' ); function wpse_70754_change_upload_size() { return 1000 * 1024; }
wordpress
{ "language": "en", "length": 157, "provenance": "stackexchange_00019.jsonl.gz:425253", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70754" }
[ -0.0271453857421875, -0.0218353271484375, -0.0253753662109375, 0.022064208984375, -0.02447509765625, -0.0164031982421875, 0.0173187255859375, -0.00609588623046875, -0.0012426376342773438, -0.0012960433959960938, -0.03369140625, -0.005130767822265625, -0.006744384765625, -0.02593994140625, 0.0239105224609375, -0.03973388671875, 0.034515380859375, 0.022674560546875, 0.056610107421875, 0.0007152557373046875, -0.0015811920166015625, 0.044158935546875, 0.015045166015625, 0.056243896484375, -0.050811767578125, -0.0023746490478515625, 0.08209228515625, -0.0242767333984375, -0.058990478515625, -0.06707763671875, -0.01983642578125, 0.08709716796875, 0.007129669189453125, 0.038970947265625, -0.0310211181640625, 0.00949859619140625, 0.0121612548828125, 0.004619598388671875, -0.0029506683349609375, 0.043060302734375, 0.049896240234375, -0.02740478515625, 0.023284912109375, -0.0306549072265625, 0.00439453125, -0.01163482666015625, 0.04486083984375, -0.0361328125, 0.0084075927734375, 0.00327301025390625, 0.00783538818359375, 0.023101806640625, 0.0257110595703125, -0.031280517578125, 0.00698089599609375, 0.038055419921875, -0.01233673095703125, 0.040191650390625, 0.02130126953125, -0.004154205322265625, -0.0229949951171875, 0.0198516845703125, -0.0021610260009765625, -0.009033203125, -0.008880615234375, 0.0188140869140625, 0.00844573974609375, 0.019683837890625, -0.00311279296875, -0.01390838623046875, -0.0298004150390625, -0.0183258056640625, -0.006244659423828125, 0.0175628662109375, -0.016510009765625, -0.01126861572265625, 0.00881195068359375, -0.01190185546875, 0.041290283203125, 0.0010204315185546875, 0.0218505859375, -0.037353515625, -0.0157470703125, -0.00485992431640625, 0.0352783203125, 0.04241943359375, 0.0002110004425048828, -0.032470703125, 0.010894775390625, 0.03240966796875, -0.0050048828125, 0.023468017578125, 0.0222625732421875, 0.0183563232421875, -0.025360107421875, -0.018157958984375, -0.004512786865234375, 0.0039215087890625, -0.0040283203125, -0.0097808837890625, 0.038909912109375, -0.0347900390625, 0.003597259521484375, -0.01515960693359375, 0.021209716796875, 0.0281982421875, -0.0408935546875, -0.053863525390625, 0.0313720703125, 0.01532745361328125, 0.0033359527587890625, 0.021270751953125, -0.00876617431640625, -0.0242767333984375, 0.00762939453125, -0.01076507568359375, -0.04095458984375, 0.037200927734375, -0.0019550323486328125, -0.006511688232421875, -0.0108795166015625, -0.0016231536865234375, 0.00838470458984375, -0.05133056640625, 0.0194549560546875, -0.0267486572265625, -0.03887939453125, 0.00839996337890625, 0.01319122314453125, 0.061981201171875, -0.0369873046875, -0.0013828277587890625, 0.0338134765625, -0.0053863525390625, 0.0031566619873046875, -0.0306854248046875, 0.037567138671875, -0.03521728515625, -0.01497650146484375, 0.065673828125, -0.035675048828125, -0.040496826171875, 0.004360198974609375, -0.007686614990234375, 0.0191497802734375, 0.03857421875, 0.0264739990234375, 0.006702423095703125, -0.0200347900390625, -0.084716796875, 0.04766845703125, -0.0264739990234375, 0.072509765625, -0.01554107666015625, -0.04754638671875, -0.025634765625, 0.01229095458984375, -0.017059326171875, -0.060577392578125, -0.0584716796875, 0.01293182373046875, -0.03656005859375, 0.00904083251953125, -0.034820556640625, -0.056182861328125, 0.037750244140625, -0.06915283203125, -0.01041412353515625, 0.0258026123046875, 0.00492095947265625, 0.024932861328125, -0.0153961181640625, -0.005657196044921875, -0.0051116943359375, -0.0057220458984375, 0.00852203369140625, -0.007274627685546875, 0.0308990478515625, 0.01204681396484375, 0.06756591796875, 0.0287017822265625, -0.0345458984375, 0.070556640625, -0.012908935546875, -0.0137176513671875, 0.00687408447265625, 0.006572723388671875, -0.009979248046875, -0.0091552734375, -0.003688812255859375, 0.03289794921875, 0.046173095703125, -0.00942230224609375, -0.05316162109375, -0.02410888671875, -0.01219940185546875, -0.01239776611328125, -0.0167999267578125, -0.02130126953125, 0.06866455078125, 0.0096588134765625, -0.01416778564453125, 0.0012712478637695312, 0.0081787109375, -0.04937744140625, 0.007965087890625, -0.0318603515625, 0.0139007568359375, -0.0002796649932861328, 0.00872039794921875, 0.01125335693359375, -0.0034637451171875, -0.0276947021484375, 0.00757598876953125, -0.0067291259765625, 0.002681732177734375, -0.00611114501953125, 0.03106689453125, -0.018035888671875, 0.07684326171875, -0.04998779296875, -0.039642333984375, -0.046600341796875, -0.012786865234375, 0.01016998291015625, 0.0150909423828125, -0.0164794921875, 0.01678466796875, 0.035064697265625, -0.0012769699096679688, 0.037994384765625, 0.01983642578125, 0.0220489501953125, 0.025665283203125, -0.00556182861328125, -0.0408935546875, -0.05023193359375, -0.1634521484375, 0.019927978515625, 0.09197998046875, 0.0323486328125, 0.0180206298828125, 0.0254669189453125, 0.06817626953125, 0.072021484375, 0.009368896484375, 0.022979736328125, 0.0060882568359375, 0.0031185150146484375, -0.0083770751953125, -0.016815185546875, -0.017242431640625, 0.04217529296875, -0.07220458984375, 0.0298309326171875, 0.03692626953125, -0.016143798828125, -0.021209716796875, -0.01910400390625, 0.038665771484375, -0.006412506103515625, -0.00791168212890625, -0.00214385986328125, -0.01050567626953125, -0.010345458984375, 0.0260009765625, 0.01288604736328125, 0.01983642578125, -0.01849365234375, 0.0224761962890625, 0.0186767578125, -0.030364990234375, -0.01445770263671875, -0.0190887451171875, -0.0203857421875, -0.0204010009765625, -0.033935546875, 0.037811279296875, -0.0113525390625, -0.034698486328125, -0.0191802978515625, 0.037353515625, -0.05633544921875, -0.01442718505859375, -0.01541900634765625, -0.062164306640625, -0.0164337158203125, -0.004131317138671875, 0.00823211669921875, -0.01120758056640625, 0.01497650146484375, 0.020050048828125, -0.01021575927734375, 0.03094482421875, 0.0281982421875, -0.00896453857421875, 0.02276611328125, -0.05181884765625, 0.047271728515625, -0.045745849609375, 0.06298828125, 0.07110595703125, -0.054412841796875, 0.058990478515625, 0.0047760009765625, 0.0099639892578125, -0.0217132568359375, 0.03662109375, -0.005695343017578125, 0.01050567626953125, -0.0755615234375, -0.020782470703125, -0.0162353515625, -0.039581298828125, -0.0103912353515625, -0.0176849365234375, -0.01092529296875, -0.019073486328125, -0.0238037109375, 0.03338623046875, -0.013763427734375, -0.09515380859375, -0.017425537109375, 0.0014934539794921875, -0.052581787109375, 0.007762908935546875, 0.027374267578125, 0.0015344619750976562, -0.009063720703125, -0.0300445556640625, 0.0040130615234375, -0.0206756591796875, -0.0255889892578125, -0.00638580322265625, 0.0183868408203125, -0.00555419921875, -0.0010061264038085938, 0.07696533203125, 0.002288818359375, -0.07672119140625, -0.03375244140625, -0.006511688232421875, -0.0201568603515625, 0.0009450912475585938, 0.03668212890625, -0.02801513671875, 0.0249176025390625, -0.0013494491577148438, 0.03021240234375, 0.061431884765625, -0.060577392578125, -0.00505828857421875, -0.03460693359375, -0.031829833984375, -0.0139617919921875, 0.0867919921875, 0.0335693359375, -0.07476806640625, 0.0078582763671875, -0.08349609375, -0.0178985595703125, -0.0019550323486328125, -0.033477783203125, 0.012603759765625, 0.0106353759765625, -0.006000518798828125, -0.0113677978515625, 0.033935546875, 0.009674072265625, 0.01568603515625, -0.04351806640625, -0.033203125, 0.0628662109375, 0.0210723876953125, 0.049285888671875, 0.0126495361328125, 0.037567138671875, 0.0036411285400390625, 0.0200347900390625, 0.03375244140625, 0.033050537109375, 0.03424072265625, -0.01364898681640625, -0.023345947265625, -0.06866455078125, 0.0557861328125, -0.035491943359375, 0.01248931884765625, -0.07012939453125, -0.032196044921875, -0.0280914306640625, 0.09515380859375, -0.0164031982421875, -0.0037250518798828125, -0.03192138671875, 0.00785064697265625, -0.0188446044921875, -0.04541015625, -0.00579071044921875, 0.00395965576171875, -0.0247650146484375, 0.00847625732421875, -0.016143798828125, -0.004909515380859375, -0.01061248779296875, -0.01385498046875, -0.01336669921875, -0.02862548828125, 0.0296630859375, -0.04559326171875, 0.0200042724609375, -0.0137176513671875, 0.0021381378173828125, -0.03717041015625, 0.004337310791015625, -0.038604736328125, -0.08642578125, -0.0179443359375, -0.00891876220703125, 0.0399169921875, -0.0240631103515625, 0.04412841796875, -0.044464111328125, 0.0450439453125, 0.0374755859375, -0.0205841064453125, -0.0012054443359375, -0.0341796875, -0.00409698486328125, 0.0051422119140625, -0.0016241073608398438, -0.0153961181640625, -0.0286102294921875, -0.08349609375, -0.04888916015625, -0.0013513565063476562, -0.0016765594482421875, 0.03765869140625, -0.0033016204833984375, 0.01525115966796875, -0.07342529296875, -0.06195068359375, -0.05303955078125, 0.0154571533203125, -0.035186767578125, 0.01438140869140625, -0.0736083984375, -0.082275390625, 0.0504150390625, 0.007366180419921875, -0.006099700927734375, 0.0146026611328125, 0.0823974609375, 0.00847625732421875, -0.0179595947265625, -0.1162109375, -0.029541015625, -0.002201080322265625, -0.0011730194091796875, 0.021636962890625, -0.0258636474609375, -0.005859375, 0.048919677734375, -0.0379638671875, 0.01290130615234375, -0.027191162109375, 0.04864501953125, -0.005901336669921875, -0.00847625732421875, 0.0115203857421875, -0.01372528076171875, 0.01511383056640625, -0.035247802734375, -0.0164031982421875, -0.0003631114959716797, 0.0031890869140625, 0.045013427734375, 0.007373809814453125, 0.015594482421875, -0.0312347412109375, -0.066650390625, 0.029815673828125, -0.047149658203125, -0.0016126632690429688, -0.0297088623046875, 0.011962890625, -0.00270843505859375, 0.0183868408203125, 0.0245513916015625, -0.0002684593200683594, 0.0195770263671875, -0.0377197265625, 0.04998779296875, 0.01280975341796875, 0.0079498291015625, -0.0091400146484375, 0.022705078125, -0.08062744140625, 0.01097869873046875, -0.0018930435180664062, -0.06097412109375, 0.0225982666015625, 0.004238128662109375, -0.03948974609375, -0.01515960693359375, 0.03704833984375, 0.03814697265625, -0.006198883056640625, -0.00653076171875, -0.0286865234375, 0.034515380859375, -0.04718017578125, 0.018707275390625, 0.01451873779296875, -0.0279693603515625, -0.0016460418701171875, 0.0099029541015625, 0.024200439453125, -0.0209197998046875, 0.0004410743713378906, 0.04833984375, 0.054046630859375, 0.0134429931640625, 0.01580810546875, 0.0025310516357421875, 0.003753662109375, -0.0265350341796875, -0.0033359527587890625, -0.009124755859375, -0.01253509521484375, 0.01299285888671875, -0.000583648681640625, -0.0132293701171875, 0.021148681640625, 0.0137176513671875, 0.000988006591796875, 0.01366424560546875, 0.0044403076171875, -0.02154541015625, -0.057586669921875, 0.01131439208984375, 0.0297393798828125, 0.0217437744140625, -0.05059814453125, -0.007221221923828125, -0.0087890625, -0.041229248046875, -0.01558685302734375, 0.0223541259765625, -0.0309906005859375, -0.009033203125, -0.0119476318359375, -0.00867462158203125, 0.005245208740234375, -0.01116180419921875, -0.06036376953125, -0.048797607421875, 0.0007195472717285156, -0.00775146484375, 0.0421142578125, -0.013946533203125, 0.003856658935546875, -0.01849365234375, 0.01184844970703125, -0.03076171875, 0.023681640625, 0.005451202392578125, -0.0088653564453125, -0.01442718505859375, -0.031707763671875, -0.031494140625, -0.0237884521484375, 0.040069580078125, 0.01428985595703125, -0.0134124755859375, -0.016265869140625, -0.0028705596923828125, 0.00873565673828125, 0.0279388427734375, 0.0117645263671875, 0.0000813603401184082, 0.00719451904296875, -0.010894775390625, 0.004547119140625, -0.039703369140625, 0.031951904296875, 0.028564453125, -0.0145111083984375, 0.0012102127075195312, 0.0236968994140625, 0.033355712890625, -0.0171661376953125, -0.007244110107421875, -0.009613037109375, -0.017974853515625, 0.019500732421875, -0.0240631103515625, -0.00933074951171875, 0.03582763671875, 0.00026297569274902344, 0.00965118408203125, -0.037872314453125, 0.0035800933837890625, -0.03424072265625, 0.027557373046875, -0.03924560546875, -0.00702667236328125, -0.0235748291015625, -0.0031795501708984375, 0.0257568359375, -0.00875091552734375, -0.0205535888671875, 0.0321044921875, -0.0142669677734375, 0.0257720947265625, 0.01378631591796875, 0.0190277099609375, 0.023406982421875, 0.050567626953125, -0.01415252685546875, 0.0439453125, 0.015350341796875, 0.0258026123046875, 0.02392578125, -0.01544189453125, 0.004161834716796875, -0.0049285888671875, 0.035400390625, 0.0142364501953125, 0.019775390625, 0.05316162109375, 0.00323486328125, 0.035858154296875, -0.005367279052734375, 0.051361083984375, -0.010284423828125, 0.0175628662109375, -0.004856109619140625, -0.0264739990234375, 0.0775146484375, -0.01009368896484375, -0.0140228271484375, -0.052032470703125, 0.043304443359375, -0.0037441253662109375, -0.004150390625, 0.01366424560546875, 0.0010499954223632812, -0.01174163818359375, -0.0095062255859375, 0.009674072265625, 0.0182647705078125, -0.0311279296875, 0.00787353515625, 0.007595062255859375, 0.01226043701171875, 0.025482177734375, 0.051544189453125, -0.04608154296875, -0.00502777099609375, -0.0220489501953125, -0.0143280029296875, 0.007122039794921875, -0.0357666015625, 0.01403045654296875, -0.012420654296875, 0.04302978515625, 0.0533447265625, -0.008880615234375, 0.01264190673828125, 0.033599853515625, -0.0108795166015625, 0.01242828369140625, -0.027313232421875, -0.0015668869018554688, 0.01284027099609375, -0.0201416015625, 0.0190277099609375, -0.0131683349609375, -0.02862548828125, 0.028533935546875, 0.01323699951171875, 0.0560302734375, -0.0616455078125, -0.0135040283203125, 0.01102447509765625, -0.03802490234375, 0.0216522216796875, -0.005580902099609375, 0.0264129638671875, -0.046295166015625, -0.03271484375, -0.000024378299713134766, -0.054443359375, 0.012908935546875, 0.0038433074951171875, -0.020233154296875, 0.11370849609375, -0.00977325439453125, 0.022705078125, 0.04248046875, 0.044342041015625, -0.02569580078125, 0.046722412109375, -0.03961181640625, 0.0249176025390625, 0.0040283203125, 0.0075225830078125, -0.037200927734375, 0.007274627685546875, -0.0253753662109375, 0.01059722900390625, 0.0245361328125, 0.011138916015625, -0.024749755859375, -0.014251708984375, 0.033843994140625, 0.048126220703125, 0.01654052734375, 0.0175018310546875, -0.00830078125, -0.00295257568359375, 0.0105743408203125, -0.0134124755859375, 0.022186279296875, -0.024200439453125, -0.040802001953125, 0.006561279296875, 0.0186614990234375, 0.017730712890625, -0.031829833984375, -0.0008778572082519531, -0.0068511962890625, -0.028076171875, 0.00539398193359375, -0.0065765380859375, -0.021087646484375, 0.083251953125, 0.050384521484375, -0.0236053466796875, -0.0131072998046875, -0.03875732421875, 0.057037353515625, 0.00197601318359375, -0.005809783935546875, 0.03375244140625, 0.0157012939453125, 0.044403076171875, -0.0078582763671875, -0.0084381103515625, 0.003971099853515625, 0.0251617431640625, 0.01959228515625, 0.002422332763671875, -0.0021038055419921875, -0.0174560546875, 0.043731689453125, 0.032928466796875, 0.0171966552734375, -0.03692626953125, -0.016815185546875, 0.0070037841796875, 0.007511138916015625, -0.007183074951171875, -0.0162353515625, 0.0049896240234375, -0.0094757080078125, -0.0018415451049804688, -0.01316070556640625, 0.01377105712890625, 0.03631591796875, -0.0028362274169921875, 0.01250457763671875, 0.032806396484375, -0.040435791015625, 0.024566650390625, -0.03936767578125, 0.0090484619140625, -0.0023860931396484375, 0.01629638671875, 0.0183563232421875, 0.01983642578125, 0.0128021240234375, 0.0059967041015625, -0.006916046142578125, 0.0819091796875, -0.0029811859130859375, 0.006320953369140625, -0.02117919921875, -0.05706787109375, -0.00469207763671875, 0.0384521484375, 0.018463134765625, 0.036346435546875, 0.05621337890625, 0.01363372802734375, -0.0489501953125, -0.000911712646484375, 0.017547607421875, -0.035491943359375, 0.0009608268737792969, -0.050018310546875, 0.0009026527404785156, -0.005786895751953125, -0.01421356201171875, 0.007904052734375, -0.025421142578125, 0.039947509765625, 0.0060882568359375, -0.006412506103515625, 0.00982666015625, -0.052398681640625, 0.01314544677734375, -0.0034275054931640625, 0.045928955078125, 0.02032470703125, -0.056976318359375, -0.0037403106689453125, -0.045684814453125, 0.0019683837890625, 0.03155517578125, 0.031646728515625, -0.0145263671875, 0.045318603515625, -0.0141754150390625, -0.029052734375, 0.02105712890625, 0.0164947509765625, -0.01288604736328125, -0.00972747802734375, 0.0281829833984375, -0.022369384765625, -0.07257080078125, -0.043792724609375, -0.03314208984375, 0.029388427734375, 0.0306549072265625, 0.06842041015625, -0.005413055419921875, 0.0287628173828125, 0.0012454986572265625, -0.0143890380859375, 0.01326751708984375, -0.00852203369140625, 0.037353515625, 0.026824951171875, -0.0005373954772949219, -0.040313720703125, 0.0030117034912109375, 0.0202178955078125, 0.03009033203125, -0.03570556640625, 0.01482391357421875, -0.01369476318359375, 0.01213836669921875, -0.0239715576171875, -0.0198974609375, -0.031005859375, -0.032073974609375, -0.012939453125, 0.020599365234375, -0.0012273788452148438, -0.0130615234375, -0.04339599609375, 0.00980377197265625, -0.0275421142578125, -0.0182647705078125, 0.0299224853515625, -0.0131683349609375, 0.046875, 0.035919189453125, -0.0762939453125, -0.0227813720703125, 0.00799560546875, -0.0140533447265625, -0.007091522216796875, 0.0146942138671875, 0.01299285888671875, 0.0094146728515625, -0.0277862548828125, 0.0228729248046875, -0.0215911865234375, -0.0103759765625, -0.057891845703125, -0.03857421875, 0.04168701171875, 0.0036945343017578125, -0.031097412109375, -0.01105499267578125, -0.00849151611328125, -0.0103302001953125, -0.01617431640625, 0.0145416259765625, 0.00885009765625, -0.00876617431640625, 0.01031494140625, 0.0243072509765625, 0.041717529296875, 0.0034847259521484375, -0.03765869140625, 0.0300750732421875, -0.04913330078125, 0.050323486328125, 0.0176239013671875, 0.0010023117065429688, -0.0264129638671875, 0.004795074462890625, -0.0379638671875, -0.078125, -0.06842041015625, 0.05584716796875, -0.06512451171875, 0.0088043212890625, 0.019561767578125, -0.0140533447265625, 0.0005068778991699219, 0.05462646484375, 0.0037288665771484375, 0.1002197265625, -0.0290374755859375, -0.036895751953125, 0.01739501953125, 0.007843017578125, 0.01279449462890625, -0.04443359375, -0.026519775390625, -0.0190277099609375, 0.0271148681640625, 0.0038814544677734375, -0.0164794921875, 0.0018167495727539062, -0.035247802734375, -0.06732177734375, -0.002017974853515625, -0.0040435791015625, -0.042449951171875, -0.00867462158203125, -0.01299285888671875, -0.04046630859375, 0.061309814453125, 0.029449462890625, -0.045074462890625, 0.0110626220703125, 0.034637451171875, -0.006778717041015625, -0.00750732421875, 0.036956787109375, 0.004467010498046875, -0.041595458984375, -0.00682830810546875, 0.0016202926635742188, -0.037445068359375, 0.037322998046875, -0.010772705078125, 0.068603515625, 0.0518798828125, -0.0065765380859375, 0.05352783203125, -0.007274627685546875, -0.0831298828125, -0.004856109619140625, -0.007289886474609375, -0.0369873046875, -0.01166534423828125, 0.0665283203125, 0.0604248046875, 0.011962890625, -0.0228118896484375, -0.006679534912109375, -0.003490447998046875, 0.048614501953125, 0.001178741455078125, -0.021087646484375, -0.031890869140625, -0.02490234375, -0.0015735626220703125, 0.0009775161743164062, -0.00804901123046875, -0.0164337158203125, -0.027862548828125, -0.010009765625, 0.0000941157341003418, 0.01543426513671875, -0.06011962890625, 0.051177978515625, 0.03466796875, -0.033721923828125, 0.0155792236328125, -0.020538330078125, -0.0075225830078125, 0.019012451171875, -0.027984619140625, -0.033172607421875, 0.03656005859375, -0.024383544921875, -0.01432037353515625, 0.01861572265625, 0.0223388671875, 0.01050567626953125, 0.0283203125, -0.0016536712646484375, -0.01495361328125, -0.002445220947265625, -0.0182647705078125, 0.01355743408203125, -0.007808685302734375, -0.0223846435546875, 0.002437591552734375, -0.03466796875, -0.027191162109375, -0.021453857421875, -0.0015363693237304688, -0.0281524658203125, 0.0185699462890625, 0.020416259765625, -0.01715087890625, 0.00495147705078125, 0.03790283203125, -0.019989013671875, -0.0112152099609375, 0.0260772705078125, -0.0215606689453125, 0.01544189453125, 0.0054931640625 ]
ad416e26447619fc496ecdff50c7a24e66b33144
Wordpress Stackexchange Q: How to Translate Contact Form 7 using qTranslate? I'm using Contact Form 7 for my forms and also qTranslate to translate my website. I would like to translate all my fields and for that I used: <!--:en-->First Name (required)<!--:--><!--:ru-->Фамилия (обязательно)<!--:--> But it display this: First Name (required)Фамилия (обязательно) What should I use to make it work? A: What I normally do when using this combination of plugins is to create one form per language. Easy and effective. You could also try qTranslate quicktags: [:en]English text[:ru]Фамилия. But much probably this will lead to some issues down the road.
Q: How to Translate Contact Form 7 using qTranslate? I'm using Contact Form 7 for my forms and also qTranslate to translate my website. I would like to translate all my fields and for that I used: <!--:en-->First Name (required)<!--:--><!--:ru-->Фамилия (обязательно)<!--:--> But it display this: First Name (required)Фамилия (обязательно) What should I use to make it work? A: What I normally do when using this combination of plugins is to create one form per language. Easy and effective. You could also try qTranslate quicktags: [:en]English text[:ru]Фамилия. But much probably this will lead to some issues down the road.
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:425262", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70779" }
[ -0.0140380859375, -0.013763427734375, -0.019622802734375, 0.0145721435546875, -0.027496337890625, -0.0178070068359375, -0.005184173583984375, -0.0113983154296875, 0.035675048828125, 0.0198516845703125, 0.00800323486328125, -0.022430419921875, 0.02398681640625, -0.03466796875, -0.0169219970703125, 0.00039124488830566406, 0.0005674362182617188, 0.019287109375, 0.00469207763671875, -0.017913818359375, 0.004367828369140625, -0.01555633544921875, -0.023529052734375, -0.007083892822265625, -0.0206756591796875, -0.040924072265625, 0.05364990234375, -0.0426025390625, -0.033050537109375, -0.048736572265625, 0.002628326416015625, 0.046295166015625, 0.0196990966796875, 0.0310516357421875, -0.05291748046875, -0.0294952392578125, -0.0017185211181640625, -0.009490966796875, -0.048309326171875, 0.0560302734375, 0.013397216796875, -0.01544952392578125, -0.0352783203125, 0.0191802978515625, -0.00952911376953125, -0.0792236328125, 0.0496826171875, -0.04248046875, 0.01605224609375, 0.074951171875, 0.0223541259765625, 0.019683837890625, 0.022186279296875, 0.01495361328125, 0.004192352294921875, -0.018585205078125, -0.0151519775390625, 0.023101806640625, 0.03448486328125, 0.047760009765625, 0.0012750625610351562, 0.025909423828125, -0.010467529296875, -0.039825439453125, 0.0005955696105957031, -0.015655517578125, -0.074951171875, 0.0168609619140625, 0.004810333251953125, 0.00009691715240478516, 0.016937255859375, -0.0198974609375, 0.0484619140625, -0.0226593017578125, 0.00771331787109375, -0.0173187255859375, -0.01016998291015625, 0.01019287109375, 0.0210418701171875, -0.01519775390625, 0.0161590576171875, -0.024017333984375, 0.00833892822265625, -0.01244354248046875, 0.0192108154296875, 0.0308990478515625, -0.00473785400390625, -0.011749267578125, -0.04638671875, -0.044158935546875, -0.0218505859375, -0.07403564453125, -0.10418701171875, 0.03955078125, 0.0308380126953125, -0.049407958984375, 0.00849151611328125, -0.0191802978515625, 0.0025615692138671875, 0.00015091896057128906, -0.019439697265625, -0.016143798828125, 0.0090484619140625, 0.0111083984375, 0.0312042236328125, 0.04638671875, 0.0025787353515625, 0.040313720703125, 0.06298828125, 0.00104522705078125, 0.0189971923828125, 0.0762939453125, -0.0260162353515625, 0.0012693405151367188, -0.004253387451171875, 0.04498291015625, -0.0273895263671875, 0.0309295654296875, -0.0248260498046875, 0.06842041015625, -0.0272674560546875, -0.0080413818359375, 0.05633544921875, -0.045867919921875, 0.01093292236328125, -0.0287017822265625, -0.0245513916015625, -0.01152801513671875, 0.0198974609375, -0.0026264190673828125, -0.01557159423828125, 0.0057830810546875, 0.034271240234375, 0.03643798828125, 0.009918212890625, -0.00957489013671875, -0.01082611083984375, 0.036590576171875, 0.045318603515625, -0.016082763671875, 0.045379638671875, -0.040679931640625, 0.0002415180206298828, 0.083251953125, -0.0298004150390625, 0.036407470703125, 0.03179931640625, -0.007228851318359375, -0.041015625, -0.043487548828125, -0.0081939697265625, -0.0236053466796875, 0.0278167724609375, 0.030181884765625, -0.046051025390625, 0.04974365234375, 0.026519775390625, -0.007476806640625, -0.05218505859375, -0.02716064453125, -0.0252227783203125, -0.0174407958984375, 0.036468505859375, -0.0253143310546875, -0.0286102294921875, 0.0109100341796875, -0.0163116455078125, -0.00331878662109375, 0.00335693359375, -0.01493072509765625, -0.03057861328125, 0.03485107421875, 0.00027942657470703125, 0.0025615692138671875, 0.01525115966796875, 0.015869140625, -0.037628173828125, 0.0219268798828125, 0.0201416015625, 0.006134033203125, 0.0019474029541015625, -0.045135498046875, 0.012603759765625, 0.01296234130859375, -0.0180511474609375, 0.0205841064453125, -0.0013761520385742188, -0.01276397705078125, 0.031280517578125, -0.00928497314453125, -0.00605010986328125, 0.03692626953125, -0.02532958984375, 0.05755615234375, -0.03497314453125, 0.00742340087890625, -0.02294921875, 0.07269287109375, -0.0266876220703125, -0.059112548828125, 0.037506103515625, -0.043914794921875, 0.03314208984375, -0.011688232421875, -0.026641845703125, -0.0181732177734375, -0.0199432373046875, -0.00588226318359375, -0.0323486328125, 0.00835418701171875, 0.04791259765625, 0.03839111328125, -0.05804443359375, -0.0016269683837890625, -0.007266998291015625, -0.0202178955078125, 0.006801605224609375, 0.0251922607421875, 0.0139923095703125, 0.0120391845703125, 0.0181884765625, -0.0142364501953125, 0.0079498291015625, 0.022552490234375, -0.038970947265625, 0.004657745361328125, -0.0278167724609375, -0.0008263587951660156, -0.0208587646484375, -0.033233642578125, 0.0711669921875, 0.048095703125, -0.008819580078125, -0.018768310546875, -0.05462646484375, 0.0246429443359375, 0.001918792724609375, 0.023590087890625, -0.0289459228515625, 0.01983642578125, 0.0269775390625, -0.021209716796875, 0.004070281982421875, 0.045257568359375, 0.0282135009765625, 0.00531005859375, 0.01715087890625, 0.0284423828125, 0.03839111328125, 0.06268310546875, -0.0399169921875, -0.0252685546875, 0.009002685546875, -0.06915283203125, 0.0223236083984375, 0.0195159912109375, -0.046600341796875, -0.07086181640625, 0.0182647705078125, -0.016815185546875, 0.0223541259765625, -0.055633544921875, -0.0531005859375, 0.0025539398193359375, 0.00806427001953125, -0.0113983154296875, 0.00536346435546875, -0.0024585723876953125, -0.020904541015625, -0.01161956787109375, 0.040069580078125, 0.004947662353515625, 0.007114410400390625, -0.0033893585205078125, -0.0007457733154296875, 0.02923583984375, -0.00494384765625, -0.0225830078125, 0.0250701904296875, -0.002346038818359375, 0.035858154296875, 0.0765380859375, 0.02325439453125, -0.0117034912109375, 0.011993408203125, -0.01348114013671875, -0.0209197998046875, 0.01041412353515625, 0.007495880126953125, -0.03240966796875, 0.0108642578125, -0.0181884765625, -0.03253173828125, 0.04840087890625, -0.0119781494140625, -0.05279541015625, -0.008392333984375, -0.02569580078125, 0.040924072265625, -0.0506591796875, 0.0114288330078125, 0.045867919921875, -0.04327392578125, 0.0308074951171875, -0.0047760009765625, -0.0271453857421875, 0.00756072998046875, 0.01386260986328125, 0.0164337158203125, -0.00144195556640625, -0.00890350341796875, 0.040435791015625, 0.0087432861328125, 0.02459716796875, -0.032318115234375, -0.050537109375, -0.037139892578125, -0.01837158203125, -0.079345703125, -0.0377197265625, -0.0604248046875, -0.024200439453125, -0.03839111328125, 0.02569580078125, -0.02178955078125, 0.030487060546875, 0.034423828125, 0.0066375732421875, -0.00554656982421875, -0.0018529891967773438, -0.045989990234375, -0.04327392578125, -0.048736572265625, -0.0243988037109375, -0.01200103759765625, -0.007297515869140625, 0.01324462890625, -0.036285400390625, -0.00647735595703125, -0.0293731689453125, 0.0250701904296875, 0.0308837890625, 0.0005106925964355469, 0.00652313232421875, -0.0251617431640625, -0.002490997314453125, 0.0007843971252441406, 0.0197906494140625, -0.022003173828125, -0.0169525146484375, 0.00919342041015625, -0.021820068359375, -0.013092041015625, -0.03472900390625, 0.0270233154296875, -0.034210205078125, -0.0093841552734375, -0.004619598388671875, 0.02911376953125, -0.03924560546875, 0.00989532470703125, -0.0031452178955078125, -0.00823974609375, -0.0345458984375, -0.047027587890625, 0.01523590087890625, -0.006481170654296875, 0.0377197265625, 0.0054931640625, 0.025482177734375, 0.0027618408203125, -0.004932403564453125, 0.02825927734375, -0.01045989990234375, -0.0026912689208984375, -0.020477294921875, 0.035980224609375, -0.02435302734375, 0.0462646484375, 0.0188751220703125, -0.005115509033203125, 0.01171875, 0.0175323486328125, 0.05157470703125, -0.07037353515625, 0.053558349609375, -0.05914306640625, -0.030517578125, 0.00710296630859375, -0.0102691650390625, 0.032318115234375, 0.0892333984375, 0.0031890869140625, -0.0340576171875, 0.0117950439453125, 0.004764556884765625, -0.0232391357421875, 0.015228271484375, 0.0052032470703125, -0.003650665283203125, -0.032196044921875, 0.01995849609375, -0.00926971435546875, 0.0045623779296875, 0.005290985107421875, -0.0360107421875, 0.02020263671875, -0.05682373046875, 0.0081024169921875, -0.0028629302978515625, -0.02728271484375, 0.00945281982421875, -0.03204345703125, -0.0218048095703125, 0.0021724700927734375, -0.0100555419921875, -0.084228515625, -0.00885009765625, -0.033905029296875, 0.05999755859375, 0.01032257080078125, -0.01143646240234375, -0.039642333984375, 0.0272216796875, 0.0079193115234375, 0.0302581787109375, -0.0157318115234375, -0.0028228759765625, 0.0115509033203125, 0.01024627685546875, 0.004917144775390625, 0.0043182373046875, 0.0102691650390625, -0.0037403106689453125, -0.044891357421875, 0.017059326171875, -0.0203704833984375, -0.003814697265625, 0.005245208740234375, -0.048065185546875, -0.0289306640625, -0.031036376953125, -0.031707763671875, 0.005359649658203125, 0.0162811279296875, -0.039031982421875, -0.03680419921875, -0.039398193359375, 0.005352020263671875, -0.0113067626953125, -0.0179290771484375, 0.031646728515625, 0.01129913330078125, -0.0018281936645507812, -0.0139617919921875, -0.05914306640625, -0.01192474365234375, 0.0682373046875, 0.0309906005859375, 0.0008902549743652344, 0.033416748046875, -0.07427978515625, 0.0794677734375, 0.06146240234375, 0.0133056640625, 0.00820159912109375, 0.02423095703125, 0.000728607177734375, -0.0290679931640625, 0.016571044921875, -0.00258636474609375, -0.046417236328125, -0.0005788803100585938, -0.00034928321838378906, 0.0160064697265625, -0.00010335445404052734, 0.0065765380859375, -0.008087158203125, 0.0164337158203125, 0.01910400390625, -0.060638427734375, 0.0246734619140625, 0.01557159423828125, -0.040557861328125, -0.0310516357421875, 0.0166015625, -0.010223388671875, -0.02288818359375, 0.0029010772705078125, 0.00823211669921875, -0.05584716796875, 0.030181884765625, 0.0020046234130859375, 0.04779052734375, 0.0290374755859375, 0.026397705078125, -0.01316070556640625, 0.0145416259765625, -0.0029773712158203125, -0.05670166015625, 0.02386474609375, -0.00643157958984375, -0.060760498046875, 0.00873565673828125, 0.0526123046875, -0.03680419921875, 0.00390625, 0.037994384765625, 0.0362548828125, 0.06365966796875, 0.043304443359375, 0.023895263671875, -0.0177154541015625, 0.004245758056640625, -0.0223388671875, -0.0645751953125, 0.11651611328125, -0.06280517578125, 0.0233154296875, 0.0195159912109375, 0.004650115966796875, 0.042205810546875, 0.0161895751953125, 0.0150146484375, 0.003627777099609375, -0.01320648193359375, 0.0029163360595703125, 0.04010009765625, -0.033355712890625, 0.039886474609375, 0.0147552490234375, 0.03173828125, 0.0087127685546875, -0.04327392578125, 0.0015506744384765625, -0.032684326171875, 0.013824462890625, 0.0238189697265625, 0.055816650390625, -0.0211944580078125, 0.0196075439453125, 0.005733489990234375, -0.020111083984375, -0.020111083984375, 0.0029354095458984375, 0.030792236328125, -0.0194854736328125, 0.01305389404296875, 0.032562255859375, 0.01165008544921875, -0.025665283203125, -0.0277557373046875, 0.0999755859375, 0.00616455078125, -0.04107666015625, -0.0215911865234375, -0.020965576171875, -0.001461029052734375, 0.0472412109375, 0.03729248046875, -0.0361328125, -0.051513671875, 0.022918701171875, 0.03778076171875, 0.003265380859375, 0.0229034423828125, 0.0234527587890625, -0.01195526123046875, 0.059356689453125, -0.040985107421875, -0.0298919677734375, -0.051727294921875, -0.039398193359375, -0.014373779296875, 0.007038116455078125, 0.0194091796875, 0.0107879638671875, -0.00254058837890625, 0.013275146484375, 0.0085906982421875, 0.00621795654296875, 0.04632568359375, 0.0028934478759765625, 0.01052093505859375, -0.021942138671875, 0.032318115234375, 0.00027108192443847656, -0.0283203125, -0.0023097991943359375, 0.0239410400390625, -0.007434844970703125, 0.0116424560546875, 0.00531005859375, -0.042266845703125, -0.033203125, -0.005924224853515625, -0.02130126953125, 0.01358795166015625, 0.02239990234375, -0.0012187957763671875, 0.01192474365234375, -0.0159454345703125, 0.00379180908203125, 0.003875732421875, 0.0215911865234375, -0.02685546875, -0.0161590576171875, 0.053955078125, -0.0188751220703125, 0.0297088623046875, -0.019775390625, -0.034576416015625, 0.046295166015625, -0.005306243896484375, 0.04791259765625, 0.00353240966796875, 0.044525146484375, -0.0033206939697265625, 0.00074005126953125, -0.0204315185546875, 0.0225372314453125, 0.04644775390625, 0.023590087890625, 0.00972747802734375, 0.02667236328125, 0.00313568115234375, 0.0120697021484375, -0.0007195472717285156, -0.0181121826171875, -0.0028228759765625, -0.047119140625, -0.00029206275939941406, 0.039337158203125, 0.08221435546875, 0.08026123046875, -0.1334228515625, 0.03192138671875, 0.041839599609375, -0.0006113052368164062, -0.006893157958984375, -0.00875091552734375, -0.021575927734375, -0.01329803466796875, 0.06231689453125, -0.012664794921875, -0.0216217041015625, 0.017364501953125, 0.0110931396484375, 0.01367950439453125, -0.01922607421875, 0.07958984375, 0.0091552734375, 0.05267333984375, -0.0753173828125, -0.042816162109375, 0.001575469970703125, -0.034393310546875, 0.02960205078125, -0.0404052734375, -0.005580902099609375, -0.03179931640625, 0.0012655258178710938, 0.007598876953125, -0.0006909370422363281, -0.037994384765625, 0.00228118896484375, 0.0230560302734375, 0.032318115234375, -0.0251007080078125, -0.031646728515625, 0.0059814453125, 0.032501220703125, 0.00713348388671875, -0.0225067138671875, 0.00009065866470336914, 0.0131988525390625, -0.0335693359375, 0.00460052490234375, -0.016845703125, -0.01255035400390625, -0.00685882568359375, -0.044921875, 0.045928955078125, -0.0028972625732421875, -0.0312347412109375, -0.01166534423828125, -0.002796173095703125, 0.0121917724609375, 0.01361846923828125, -0.01265716552734375, -0.0250244140625, -0.03411865234375, 0.004360198974609375, -0.0718994140625, 0.00685882568359375, -0.006916046142578125, -0.0577392578125, 0.023406982421875, 0.0330810546875, 0.0206451416015625, -0.0168304443359375, 0.00577545166015625, 0.0212554931640625, -0.0010366439819335938, -0.0088043212890625, -0.00273895263671875, -0.0005898475646972656, -0.00725555419921875, -0.011077880859375, -0.0182342529296875, -0.014892578125, 0.05120849609375, -0.005931854248046875, -0.004856109619140625, -0.0037059783935546875, 0.033966064453125, 0.08294677734375, 0.048797607421875, 0.02606201171875, 0.006679534912109375, -0.033233642578125, 0.0009984970092773438, 0.00969696044921875, -0.01271820068359375, 0.02276611328125, 0.017791748046875, -0.060791015625, 0.0014171600341796875, 0.01155853271484375, 0.0177154541015625, 0.0031948089599609375, 0.017669677734375, -0.01433563232421875, 0.004398345947265625, 0.0107574462890625, 0.01261138916015625, 0.003665924072265625, -0.0078125, 0.01251983642578125, -0.03826904296875, 0.01154327392578125, -0.031585693359375, 0.037567138671875, 0.02349853515625, 0.049346923828125, 0.039794921875, 0.037933349609375, 0.1007080078125, -0.061920166015625, 0.0240478515625, -0.001697540283203125, -0.0377197265625, 0.049041748046875, -0.0063323974609375, 0.0406494140625, -0.0286865234375, 0.0361328125, -0.0172576904296875, 0.0311279296875, -0.041778564453125, -0.047698974609375, 0.01267242431640625, 0.01593017578125, 0.0181121826171875, 0.034698486328125, 0.044189453125, -0.034820556640625, 0.0171661376953125, -0.007762908935546875, 0.004108428955078125, -0.017181396484375, 0.00743865966796875, -0.011962890625, 0.0138397216796875, 0.006023406982421875, 0.0394287109375, -0.0408935546875, 0.0304412841796875, 0.03936767578125, 0.0511474609375, -0.0167999267578125, 0.0733642578125, -0.0191802978515625, -0.0139007568359375, 0.037750244140625, -0.031494140625, 0.01140594482421875, -0.05059814453125, 0.032684326171875, 0.01364898681640625, 0.00640106201171875, -0.00978851318359375, -0.0318603515625, 0.0232391357421875, 0.0203399658203125, 0.0228118896484375, 0.006984710693359375, -0.02142333984375, -0.01326751708984375, -0.03509521484375, -0.0081329345703125, -0.0300445556640625, -0.0279388427734375, 0.0195159912109375, -0.012603759765625, 0.00940704345703125, -0.00659942626953125, 0.0275115966796875, -0.00830078125, 0.04669189453125, 0.00666046142578125, -0.0325927734375, 0.01715087890625, -0.033538818359375, 0.10888671875, 0.0191802978515625, -0.035552978515625, 0.003757476806640625, -0.0096282958984375, -0.04364013671875, 0.01346588134765625, 0.029144287109375, -0.0251617431640625, 0.0294036865234375, 0.0277099609375, -0.03216552734375, 0.0307464599609375, -0.0019197463989257812, 0.013336181640625, 0.030059814453125, 0.0264129638671875, -0.0043182373046875, -0.0217437744140625, -0.0389404296875, 0.047027587890625, 0.033447265625, -0.0118865966796875, 0.0309295654296875, -0.00336456298828125, 0.001232147216796875, -0.09320068359375, -0.007152557373046875, -0.0229949951171875, -0.07073974609375, 0.0377197265625, 0.044036865234375, -0.039306640625, -0.0112762451171875, -0.006443023681640625, 0.0213470458984375, -0.0027370452880859375, -0.02532958984375, 0.004749298095703125, -0.01302337646484375, 0.00954437255859375, 0.0157318115234375, 0.0050048828125, -0.03143310546875, -0.039764404296875, -0.00862884521484375, -0.00989532470703125, 0.0006957054138183594, 0.01020050048828125, 0.00899505615234375, 0.0609130859375, -0.0306396484375, -0.0235595703125, 0.0169525146484375, -0.0751953125, 0.0193634033203125, 0.029388427734375, -0.006427764892578125, -0.01556396484375, -0.02886962890625, -0.0267181396484375, 0.0213470458984375, -0.00531005859375, 0.039154052734375, -0.008697509765625, 0.03173828125, 0.0159912109375, -0.01500701904296875, 0.0305633544921875, -0.01338958740234375, 0.0107574462890625, -0.020721435546875, 0.01163482666015625, -0.011993408203125, -0.046295166015625, -0.00444793701171875, -0.0088043212890625, -0.01174163818359375, 0.0063323974609375, -0.004428863525390625, -0.02056884765625, -0.00447845458984375, -0.0233154296875, -0.00875091552734375, -0.0225372314453125, -0.00323486328125, -0.0258026123046875, 0.0024013519287109375, 0.01174163818359375, -0.061798095703125, 0.015625, 0.00014698505401611328, -0.0024967193603515625, -0.0284576416015625, -0.0002925395965576172, -0.027740478515625, 0.0087432861328125, 0.003963470458984375, 0.023651123046875, 0.04913330078125, -0.002643585205078125, -0.049072265625, 0.0099029541015625, -0.0080718994140625, 0.0667724609375, -0.033660888671875, -0.04071044921875, 0.018402099609375, -0.03118896484375, 0.00960540771484375, -0.05877685546875, 0.0008344650268554688, -0.1104736328125, -0.01459503173828125, -0.045989990234375, -0.0070953369140625, -0.025054931640625, -0.052154541015625, -0.0765380859375, 0.08111572265625, -0.0195159912109375, -0.02587890625, -0.018035888671875, 0.0162811279296875, 0.002582550048828125, 0.01317596435546875, -0.00370025634765625, -0.023712158203125, -0.0222015380859375, -0.009857177734375, -0.0021076202392578125, 0.071044921875, 0.0233612060546875, 0.0018186569213867188, 0.031494140625, -0.020843505859375, -0.002498626708984375, -0.0255279541015625, 0.01519775390625, -0.002407073974609375, -0.0095062255859375, 0.026611328125, -0.053741455078125, -0.08953857421875, -0.03033447265625, 0.0054168701171875, -0.01506805419921875, -0.07720947265625, -0.01751708984375, -0.0234375, 0.051116943359375, 0.0203704833984375, 0.00049591064453125, -0.0252685546875, 0.056793212890625, 0.043487548828125, -0.002086639404296875, 0.00829315185546875, -0.01580810546875, 0.004364013671875, -0.0203704833984375, -0.01532745361328125, -0.0167999267578125, 0.011871337890625, -0.0236358642578125, -0.026885986328125, 0.01055145263671875, -0.02117919921875, -0.037872314453125, 0.01142120361328125, 0.01280975341796875, 0.08551025390625, -0.046356201171875, -0.0064239501953125, 0.0183868408203125, -0.007282257080078125, 0.0282440185546875, -0.00672149658203125, -0.04241943359375, 0.00988006591796875, 0.0200347900390625, 0.0181884765625, 0.015716552734375, -0.016021728515625, 0.0236663818359375, 0.03436279296875, -0.00577545166015625, 0.05157470703125, 0.00841522216796875, 0.06854248046875, -0.04638671875, 0.06884765625, 0.0321044921875, 0.00876617431640625, -0.0214080810546875, -0.0433349609375, -0.014739990234375, 0.00432586669921875, -0.0316162109375, 0.02239990234375, 0.015625, -0.0302886962890625, 0.00878143310546875, 0.0173492431640625, -0.03759765625, -0.01551055908203125, 0.0025119781494140625, -0.00955963134765625, -0.0159149169921875, -0.0006122589111328125 ]
0166193458509edc34bc4cc0b0129eff755d0f4a
Wordpress Stackexchange Q: Scheduled posts: set default time? I want to be able to set the default time in the options for a Scheduled Post to be a specific time of the day, as opposed to it defaulting to the current time. Is there a plugin or some code I can add/tweak to accomplish this? I was unable to find anything here or on Google to do this. A: The plugin Automatic Post Date Filler suggested in the comments is a perfect solution. Even better than imagined with all the various preferences to how it dynamically sets up the defaults when you edit the scheduled time.
Q: Scheduled posts: set default time? I want to be able to set the default time in the options for a Scheduled Post to be a specific time of the day, as opposed to it defaulting to the current time. Is there a plugin or some code I can add/tweak to accomplish this? I was unable to find anything here or on Google to do this. A: The plugin Automatic Post Date Filler suggested in the comments is a perfect solution. Even better than imagined with all the various preferences to how it dynamically sets up the defaults when you edit the scheduled time.
wordpress
{ "language": "en", "length": 104, "provenance": "stackexchange_00019.jsonl.gz:425263", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70784" }
[ 0.02099609375, -0.01319122314453125, -0.018951416015625, 0.0251007080078125, 0.0011968612670898438, -0.041900634765625, 0.0560302734375, -0.03070068359375, -0.0186309814453125, -0.033477783203125, -0.04425048828125, 0.00811004638671875, -0.070556640625, -0.0233154296875, 0.01143646240234375, -0.06903076171875, 0.03729248046875, -0.00893402099609375, 0.0003209114074707031, -0.043182373046875, 0.023162841796875, -0.0232391357421875, 0.01219940185546875, 0.1317138671875, 0.041168212890625, 0.045745849609375, 0.0146636962890625, -0.02154541015625, 0.03594970703125, 0.0174560546875, 0.033935546875, -0.07745361328125, -0.00244140625, 0.01123046875, 0.036407470703125, -0.0013532638549804688, -0.00370025634765625, 0.0243682861328125, 0.0248565673828125, 0.000949859619140625, 0.024993896484375, -0.009307861328125, -0.01496124267578125, 0.039276123046875, -0.0364990234375, -0.034454345703125, 0.03326416015625, -0.0204620361328125, 0.0487060546875, -0.0207977294921875, -0.02435302734375, 0.0182342529296875, -0.0110626220703125, -0.048492431640625, -0.036376953125, -0.0556640625, 0.00391387939453125, 0.036224365234375, 0.054595947265625, -0.07135009765625, -0.06719970703125, -0.0364990234375, 0.04541015625, 0.0266876220703125, 0.0111541748046875, -0.0037097930908203125, 0.0196380615234375, 0.0296478271484375, -0.056732177734375, 0.0167999267578125, 0.059051513671875, -0.035430908203125, 0.0240936279296875, -0.017059326171875, -0.042633056640625, -0.0180816650390625, 0.01081085205078125, -0.0202178955078125, 0.04461669921875, -0.042694091796875, 0.030426025390625, 0.0269317626953125, 0.0528564453125, -0.046905517578125, 0.0032958984375, -0.05389404296875, -0.01042938232421875, 0.0014944076538085938, -0.061279296875, -0.036163330078125, -0.033203125, 0.0228424072265625, -0.0859375, -0.018310546875, -0.038543701171875, 0.0199432373046875, 0.0067291259765625, 0.0423583984375, -0.031494140625, -0.005405426025390625, -0.0283660888671875, -0.00018799304962158203, -0.0297698974609375, -0.0208587646484375, -0.01204681396484375, 0.028533935546875, 0.014862060546875, 0.0119171142578125, 0.0019283294677734375, 0.02557373046875, 0.00014662742614746094, -0.01898193359375, 0.003444671630859375, 0.0020313262939453125, -0.026947021484375, -0.0222320556640625, -0.0191497802734375, 0.00843048095703125, -0.0014591217041015625, -0.008697509765625, -0.01251983642578125, 0.024261474609375, -0.0201873779296875, -0.06719970703125, 0.00839996337890625, -0.034912109375, -0.036041259765625, 0.01316070556640625, -0.01788330078125, 0.018096923828125, -0.026702880859375, 0.0089111328125, 0.09503173828125, 0.03009033203125, 0.0020751953125, -0.0180816650390625, 0.026397705078125, -0.03387451171875, -0.00930023193359375, -0.006893157958984375, -0.0053253173828125, -0.0195770263671875, -0.004787445068359375, -0.035675048828125, -0.004062652587890625, 0.02874755859375, 0.01459503173828125, 0.002532958984375, -0.00344085693359375, -0.04852294921875, 0.0165557861328125, -0.0289764404296875, 0.020965576171875, 0.0018262863159179688, 0.0236358642578125, -0.016143798828125, 0.03338623046875, -0.0160064697265625, -0.0028667449951171875, -0.0105438232421875, -0.0171051025390625, -0.0015077590942382812, 0.017242431640625, -0.01447296142578125, -0.048980712890625, 0.0166778564453125, -0.0006871223449707031, -0.0001283884048461914, 0.0199432373046875, -0.040740966796875, 0.0174102783203125, 0.0023441314697265625, -0.0017004013061523438, -0.0251312255859375, -0.018035888671875, 0.015350341796875, 0.0019664764404296875, -0.025909423828125, 0.01551055908203125, 0.015228271484375, -0.035003662109375, -0.036102294921875, 0.00988006591796875, -0.005741119384765625, -0.00495147705078125, -0.034881591796875, 0.0034656524658203125, 0.01910400390625, 0.0307464599609375, 0.0292816162109375, -0.02471923828125, -0.0316162109375, -0.0684814453125, 0.0226287841796875, 0.017791748046875, 0.006622314453125, -0.04937744140625, -0.0099334716796875, 0.00988006591796875, -0.038055419921875, -0.0157623291015625, 0.0024471282958984375, -0.043914794921875, 0.0187225341796875, -0.053680419921875, -0.02752685546875, -0.01430511474609375, 0.023193359375, 0.02862548828125, -0.0239105224609375, -0.0298614501953125, -0.04962158203125, 0.0687255859375, -0.1356201171875, -0.070556640625, 0.047698974609375, -0.0279693603515625, 0.0089263916015625, -0.01204681396484375, 0.01226806640625, 0.0022220611572265625, -0.0263671875, -0.00391387939453125, -0.0004603862762451172, 0.032379150390625, -0.01345062255859375, 0.0055694580078125, -0.01129150390625, 0.0311737060546875, 0.01806640625, -0.02789306640625, -0.00894927978515625, -0.0207977294921875, -0.0032863616943359375, -0.0372314453125, -0.022064208984375, 0.0028285980224609375, -0.0121307373046875, 0.0285797119140625, 0.04034423828125, 0.005207061767578125, 0.0177459716796875, 0.0266876220703125, 0.0753173828125, 0.04449462890625, 0.00829315185546875, 0.03326416015625, 0.0226593017578125, 0.007232666015625, 0.024993896484375, -0.0247650146484375, -0.00421905517578125, 0.0194549560546875, -0.07244873046875, 0.0075836181640625, 0.034149169921875, 0.007289886474609375, -0.0229644775390625, -0.0002789497375488281, 0.006259918212890625, 0.01849365234375, -0.0289764404296875, -0.041839599609375, 0.00873565673828125, 0.06329345703125, -0.03338623046875, 0.040802001953125, 0.0130157470703125, -0.02154541015625, 0.0118255615234375, 0.011962890625, -0.0450439453125, -0.0120849609375, 0.01213836669921875, 0.005840301513671875, 0.0005626678466796875, -0.031890869140625, 0.005832672119140625, -0.0030231475830078125, -0.0030841827392578125, -0.022003173828125, 0.0278472900390625, -0.0164031982421875, -0.01654052734375, -0.02301025390625, -0.0631103515625, 0.0028858184814453125, 0.00048661231994628906, 0.0122833251953125, -0.040924072265625, 0.0218048095703125, -0.0223236083984375, -0.044586181640625, 0.051910400390625, -0.0272979736328125, -0.06842041015625, -0.0288848876953125, -0.06134033203125, 0.050445556640625, -0.082275390625, 0.00687408447265625, 0.0517578125, -0.0149078369140625, 0.0008225440979003906, 0.00079345703125, 0.046234130859375, 0.0369873046875, -0.007579803466796875, -0.0156707763671875, 0.0089111328125, -0.0494384765625, -0.03240966796875, -0.006011962890625, 0.0784912109375, -0.08599853515625, -0.08648681640625, -0.043975830078125, 0.0026607513427734375, -0.0762939453125, -0.033203125, -0.01030731201171875, -0.06658935546875, 0.001178741455078125, -0.0310516357421875, -0.01666259765625, 0.006969451904296875, -0.0186920166015625, 0.0006914138793945312, -0.032012939453125, 0.018463134765625, -0.0023097991943359375, -0.0252838134765625, -0.032562255859375, -0.0290069580078125, -0.0021343231201171875, -0.0017900466918945312, -0.006732940673828125, 0.107177734375, 0.027801513671875, -0.08563232421875, -0.03448486328125, -0.009735107421875, -0.0243072509765625, 0.0247955322265625, 0.0144805908203125, -0.0168609619140625, 0.0081787109375, 0.00146484375, 0.0265655517578125, 0.055999755859375, -0.060272216796875, 0.004154205322265625, -0.0313720703125, -0.0175628662109375, -0.02825927734375, 0.0248565673828125, 0.038604736328125, 0.018157958984375, 0.0126190185546875, -0.0263824462890625, 0.0207366943359375, -0.0183868408203125, -0.02166748046875, -0.01212310791015625, -0.007236480712890625, -0.0030879974365234375, -0.02716064453125, 0.001983642578125, -0.029144287109375, -0.0302581787109375, 0.058990478515625, -0.042327880859375, -0.0031909942626953125, -0.0175628662109375, -0.033721923828125, -0.0108184814453125, -0.003627777099609375, -0.0203857421875, 0.00777435302734375, -0.016632080078125, 0.0160675048828125, 0.005504608154296875, 0.00911712646484375, -0.02545166015625, -0.07415771484375, 0.034881591796875, -0.039764404296875, 0.003406524658203125, -0.0240325927734375, -0.00730133056640625, 0.008209228515625, 0.09906005859375, -0.02215576171875, -0.0245208740234375, 0.0121612548828125, 0.0162353515625, -0.033935546875, -0.016937255859375, -0.04425048828125, -0.0258026123046875, -0.05963134765625, 0.0277252197265625, -0.001556396484375, -0.00811004638671875, -0.05645751953125, 0.0518798828125, -0.0716552734375, -0.015167236328125, 0.0151824951171875, -0.019805908203125, -0.01395416259765625, -0.00014388561248779297, 0.00264739990234375, -0.023529052734375, -0.0011663436889648438, -0.023834228515625, -0.054534912109375, -0.0240631103515625, -0.0186614990234375, 0.0498046875, 0.046356201171875, -0.05230712890625, 0.0099334716796875, 0.03314208984375, 0.0341796875, 0.05401611328125, -0.001514434814453125, -0.033599853515625, 0.04669189453125, -0.004642486572265625, 0.0219573974609375, -0.004940032958984375, 0.0069122314453125, -0.00749969482421875, -0.049102783203125, 0.0191650390625, -0.006439208984375, 0.048095703125, 0.01788330078125, -0.031036376953125, -0.0197906494140625, -0.022857666015625, -0.004299163818359375, 0.01373291015625, -0.020355224609375, 0.006927490234375, -0.034942626953125, -0.0266571044921875, 0.07666015625, -0.00003141164779663086, 0.01042938232421875, -0.0208892822265625, 0.06951904296875, 0.0025482177734375, -0.03173828125, -0.01528167724609375, -0.0008983612060546875, 0.04266357421875, 0.0108795166015625, 0.0034122467041015625, -0.00769805908203125, -0.0333251953125, 0.06439208984375, 0.0134124755859375, -0.001834869384765625, -0.05194091796875, 0.07879638671875, -0.02044677734375, -0.005863189697265625, 0.01983642578125, -0.04473876953125, 0.04229736328125, 0.006160736083984375, 0.00978851318359375, 0.014923095703125, 0.005916595458984375, 0.0144805908203125, 0.01238250732421875, -0.0285186767578125, -0.034027099609375, 0.00487518310546875, 0.01076507568359375, 0.07550048828125, -0.02630615234375, 0.018341064453125, -0.0011892318725585938, -0.0305938720703125, -0.02447509765625, -0.0012903213500976562, -0.039031982421875, 0.00004935264587402344, 0.0050048828125, 0.016632080078125, 0.034210205078125, 0.02960205078125, -0.045654296875, -0.0184326171875, 0.055816650390625, 0.027618408203125, -0.0275115966796875, 0.0139007568359375, -0.004070281982421875, 0.017974853515625, -0.00583648681640625, 0.005062103271484375, 0.036407470703125, 0.04449462890625, 0.00868988037109375, -0.0040435791015625, -0.01549530029296875, 0.056915283203125, -0.036468505859375, 0.018157958984375, 0.024139404296875, -0.00647735595703125, 0.044525146484375, 0.0430908203125, 0.04315185546875, 0.019012451171875, -0.043060302734375, 0.033447265625, 0.03411865234375, 0.0164947509765625, -0.008514404296875, 0.0057830810546875, -0.0158233642578125, -0.00150299072265625, 0.00609588623046875, 0.00452423095703125, -0.0305938720703125, -0.019927978515625, 0.0094146728515625, -0.016387939453125, 0.0241851806640625, 0.031280517578125, 0.0035686492919921875, -0.0269012451171875, -0.0185546875, 0.0016813278198242188, 0.0185546875, -0.01470947265625, 0.006229400634765625, 0.016448974609375, 0.053375244140625, -0.0089874267578125, 0.0005483627319335938, -0.0121307373046875, 0.0303192138671875, -0.029083251953125, 0.02349853515625, -0.0149383544921875, -0.0245208740234375, -0.038604736328125, -0.008148193359375, 0.004241943359375, -0.04913330078125, -0.019439697265625, -0.0237884521484375, -0.02545166015625, 0.0443115234375, -0.01519775390625, 0.04852294921875, -0.031524658203125, -0.018585205078125, -0.032470703125, 0.01904296875, 0.0207977294921875, 0.00629425048828125, -0.04345703125, -0.0252227783203125, -0.04901123046875, -0.043304443359375, -0.09979248046875, -0.020050048828125, -0.070556640625, 0.041107177734375, 0.053009033203125, 0.05889892578125, -0.004344940185546875, -0.066650390625, -0.019317626953125, -0.0241546630859375, 0.0294647216796875, 0.08013916015625, -0.005107879638671875, 0.0361328125, 0.02545166015625, 0.0153045654296875, 0.01141357421875, 0.00035381317138671875, -0.015838623046875, -0.022430419921875, 0.0182647705078125, -0.0167694091796875, -0.03363037109375, 0.01264190673828125, -0.02801513671875, -0.00434112548828125, 0.00847625732421875, -0.0008912086486816406, -0.009979248046875, -0.0154266357421875, -0.007625579833984375, -0.03399658203125, 0.047637939453125, -0.025390625, 0.031890869140625, -0.03857421875, -0.01486968994140625, 0.037841796875, -0.0163726806640625, 0.027374267578125, 0.0014276504516601562, -0.0303497314453125, 0.0178680419921875, -0.01148223876953125, -0.0303497314453125, 0.03790283203125, 0.06817626953125, -0.007762908935546875, 0.0176239013671875, 0.0171051025390625, 0.004425048828125, 0.01378631591796875, -0.0025005340576171875, -0.042938232421875, -0.03253173828125, 0.00720977783203125, -0.002788543701171875, -0.021942138671875, 0.01495361328125, -0.0017871856689453125, 0.0225677490234375, 0.040985107421875, 0.0281524658203125, -0.10394287109375, 0.02764892578125, 0.0032024383544921875, 0.00830078125, 0.03717041015625, 0.0030994415283203125, 0.02130126953125, 0.051483154296875, 0.0113525390625, -0.02532958984375, -0.02197265625, 0.03192138671875, 0.01157379150390625, -0.00469970703125, -0.0292816162109375, 0.034881591796875, 0.00966644287109375, -0.033966064453125, 0.0258941650390625, 0.01293182373046875, -0.007122039794921875, -0.03021240234375, 0.0229034423828125, 0.0078582763671875, -0.0004317760467529297, -0.0718994140625, 0.02581787109375, -0.0195465087890625, -0.006862640380859375, 0.0287322998046875, -0.0016231536865234375, 0.0284271240234375, 0.04229736328125, -0.0064544677734375, 0.0268707275390625, 0.0018568038940429688, 0.02679443359375, -0.0268707275390625, -0.042327880859375, 0.030426025390625, 0.045654296875, -0.025177001953125, 0.032562255859375, 0.0226898193359375, -0.06024169921875, 0.01036834716796875, -0.0290374755859375, 0.0303802490234375, -0.0286407470703125, -0.006656646728515625, 0.00585174560546875, -0.0204620361328125, 0.01084136962890625, -0.00691986083984375, -0.0276336669921875, -0.0150909423828125, 0.01168060302734375, -0.032196044921875, -0.0010995864868164062, 0.015777587890625, -0.0192718505859375, -0.0161285400390625, 0.06939697265625, 0.0223846435546875, -0.0167236328125, -0.0210113525390625, 0.0443115234375, -0.001674652099609375, 0.05419921875, -0.01363372802734375, 0.03472900390625, -0.0494384765625, 0.0006375312805175781, -0.025604248046875, 0.01904296875, -0.0137939453125, -0.0018243789672851562, 0.0201873779296875, 0.0019683837890625, 0.00006115436553955078, 0.007656097412109375, 0.045654296875, 0.033233642578125, 0.0208282470703125, 0.01398468017578125, 0.00962066650390625, 0.03173828125, 0.0195465087890625, -0.02349853515625, 0.013031005859375, -0.007572174072265625, -0.01427459716796875, 0.0328369140625, -0.01122283935546875, -0.00921630859375, 0.0340576171875, -0.015777587890625, 0.0173797607421875, 0.00737762451171875, -0.0243377685546875, -0.03692626953125, 0.030609130859375, 0.047607421875, 0.10809326171875, -0.08929443359375, -0.044952392578125, -0.0243377685546875, 0.06829833984375, 0.0175323486328125, -0.048736572265625, 0.03240966796875, 0.0096435546875, -0.02130126953125, -0.049346923828125, -0.034393310546875, -0.019866943359375, 0.009063720703125, -0.0021991729736328125, 0.0030002593994140625, 0.015380859375, -0.0274658203125, 0.0153045654296875, 0.03131103515625, 0.006740570068359375, -0.008148193359375, 0.01091766357421875, 0.027130126953125, 0.006439208984375, -0.0087890625, -0.0750732421875, -0.0374755859375, -0.110107421875, -0.04559326171875, -0.0026950836181640625, -0.008087158203125, 0.02490234375, 0.01629638671875, 0.006565093994140625, -0.00827789306640625, -0.022125244140625, -0.0024261474609375, -0.0126800537109375, -0.01447296142578125, -0.0053253173828125, 0.0265045166015625, 0.0168304443359375, 0.008636474609375, -0.03375244140625, -0.00115966796875, 0.0369873046875, 0.0153961181640625, 0.0254974365234375, -0.06549072265625, 0.04461669921875, -0.022918701171875, -0.0216827392578125, -0.0088043212890625, 0.0374755859375, 0.01256561279296875, 0.0731201171875, 0.038055419921875, -0.029815673828125, -0.008209228515625, -0.032257080078125, -0.036346435546875, -0.0278778076171875, -0.00748443603515625, 0.005950927734375, 0.00846099853515625, -0.006122589111328125, 0.0177459716796875, 0.059967041015625, 0.00027108192443847656, -0.032562255859375, 0.01459503173828125, 0.007373809814453125, -0.00830841064453125, 0.011932373046875, -0.0019292831420898438, 0.006622314453125, -0.0179443359375, -0.0184478759765625, -0.0013942718505859375, -0.00991058349609375, -0.059173583984375, 0.008026123046875, 0.03778076171875, -0.01142120361328125, 0.01080322265625, 0.004047393798828125, 0.002666473388671875, 0.028106689453125, -0.0372314453125, 0.01093292236328125, -0.0246429443359375, 0.0007987022399902344, -0.01129913330078125, -0.0736083984375, -0.0491943359375, -0.052093505859375, 0.04119873046875, 0.02471923828125, 0.03179931640625, 0.0091094970703125, 0.04193115234375, -0.0230865478515625, -0.011016845703125, -0.0234527587890625, -0.00440216064453125, -0.0079498291015625, -0.01953125, 0.0030727386474609375, 0.0126800537109375, -0.0435791015625, -0.006031036376953125, 0.04974365234375, -0.00577545166015625, 0.002773284912109375, -0.0303497314453125, 0.0299530029296875, -0.021148681640625, 0.0316162109375, -0.009979248046875, -0.0054168701171875, 0.0078125, -0.0028858184814453125, 0.0143585205078125, 0.03350830078125, 0.01511383056640625, 0.04351806640625, -0.0101165771484375, 0.016265869140625, 0.01439666748046875, -0.038055419921875, 0.005138397216796875, 0.020263671875, -0.04833984375, -0.0205535888671875, -0.00576019287109375, -0.0143890380859375, -0.0190277099609375, 0.02862548828125, -0.0009860992431640625, 0.007297515869140625, -0.006183624267578125, -0.005313873291015625, 0.0005369186401367188, 0.020904541015625, -0.0343017578125, 0.0108642578125, -0.0212860107421875, 0.00665283203125, 0.004428863525390625, 0.0036945343017578125, -0.0197296142578125, -0.044769287109375, -0.003398895263671875, -0.00885009765625, -0.0235595703125, -0.038543701171875, -0.0093841552734375, 0.00955963134765625, -0.02197265625, -0.0117340087890625, -0.0124053955078125, 0.02569580078125, -0.0188751220703125, -0.005733489990234375, -0.03643798828125, -0.056915283203125, 0.0003352165222167969, 0.00399017333984375, -0.01139068603515625, -0.0021877288818359375, -0.0645751953125, -0.003070831298828125, -0.047271728515625, -0.002460479736328125, 0.0253448486328125, 0.00510406494140625, -0.04156494140625, -0.0014257431030273438, -0.0252227783203125, 0.044281005859375, -0.048828125, -0.0298309326171875, -0.0015172958374023438, 0.0007157325744628906, -0.00848388671875, -0.02294921875, 0.0219879150390625, -0.05682373046875, -0.026947021484375, 0.0003638267517089844, -0.026611328125, -0.0116729736328125, -0.0400390625, -0.0276641845703125, 0.07275390625, -0.002414703369140625, -0.01776123046875, -0.0217437744140625, 0.0251617431640625, -0.0038700103759765625, 0.02020263671875, 0.0085906982421875, -0.022491455078125, -0.01546478271484375, -0.01129913330078125, -0.00177764892578125, 0.01067352294921875, 0.024200439453125, -0.0019626617431640625, -0.006671905517578125, -0.0023555755615234375, -0.0000795125961303711, -0.02978515625, 0.0509033203125, -0.0224151611328125, 0.025665283203125, 0.04339599609375, -0.04510498046875, -0.056549072265625, -0.03778076171875, -0.024688720703125, -0.011627197265625, -0.0164947509765625, -0.034637451171875, 0.005435943603515625, 0.059600830078125, 0.10272216796875, 0.0196380615234375, -0.06494140625, -0.0121612548828125, -0.058868408203125, -0.02374267578125, -0.00543212890625, -0.003082275390625, -0.0212554931640625, 0.033721923828125, -0.004730224609375, -0.010284423828125, -0.0206451416015625, -0.0029735565185546875, -0.039154052734375, -0.0164031982421875, -0.02099609375, -0.0128173828125, -0.041473388671875, 0.033843994140625, -0.0260772705078125, 0.01093292236328125, 0.025238037109375, 0.0028057098388671875, -0.01328277587890625, -0.00991058349609375, 0.06829833984375, 0.018951416015625, 0.0297088623046875, -0.026031494140625, -0.01540374755859375, 0.0261077880859375, -0.00466156005859375, -0.01471710205078125, -0.016143798828125, 0.0002589225769042969, 0.00821685791015625, -0.004329681396484375, 0.0253753662109375, 0.034942626953125, -0.0196380615234375, -0.0060577392578125, -0.01047515869140625, 0.01374053955078125, -0.0184326171875, -0.006977081298828125, 0.0227203369140625, -0.02178955078125, -0.00933837890625, -0.014617919921875, -0.049468994140625, 0.015655517578125, 0.01678466796875, 0.0255279541015625, -0.00238800048828125, 0.0069122314453125, -0.049072265625, 0.0089874267578125, 0.0002224445343017578 ]
550b10652ce7f2cd0f1fb737b04e409d4baaceb8
Wordpress Stackexchange Q: remove user_meta data from database for all users I'd like to create a button for admins to be able to delete from table wp_usermeta -> key: 'ref_credit' for all users. Is there simple resource friendly way to do this? does wp have built in function for this? I found this: http://codex.wordpress.org/Function_Reference/delete_user_meta But this is only for single user. A: This is a super old post, for all you future readers, you can use the delete_metadata() function to achieve this with a lot less DB overhead: delete_metadata( 'user', // the meta type 0, // this doesn't actually matter in this call 'my_meta_key', // the meta key to be removed everywhere '', // this also doesn't actually matter in this call true // tells the function "yes, please remove them all" );
Q: remove user_meta data from database for all users I'd like to create a button for admins to be able to delete from table wp_usermeta -> key: 'ref_credit' for all users. Is there simple resource friendly way to do this? does wp have built in function for this? I found this: http://codex.wordpress.org/Function_Reference/delete_user_meta But this is only for single user. A: This is a super old post, for all you future readers, you can use the delete_metadata() function to achieve this with a lot less DB overhead: delete_metadata( 'user', // the meta type 0, // this doesn't actually matter in this call 'my_meta_key', // the meta key to be removed everywhere '', // this also doesn't actually matter in this call true // tells the function "yes, please remove them all" ); A: A simple example would be to get all users for a specific role, iterate over the returned results and apply the delete_user_meta function for the given meta_key. Stir and let simmer for a fraction of a second and all user meta for that key shall be gone. function say_goodby_to_the_meta(){ $role = 'subscriber'; $users = get_users('role='.$role); foreach ($users as $user) { delete_user_meta($user->ID, 'ref_credit'); } } This example is void of any error checking or return response but at its core this will do what you what you need. Associate the function with the click of a button or conditionally call and run this function in plugin or theme files based upon your use-case. Taking the above function one step further and associating it with the click of a button within the dashboard you can add this function to admin_init hook. add_action('admin_init', 'say_goodby_to_the_meta'); function say_goodby_to_the_meta(){ //check if admin, if not, lets get out of here - don't run remainder of function if ( !current_user_can('activate_plugins') ) return; //check that $_POST is not empty & that correct wp_nonce is supplied //checl that $_POST['delete_credit'] is also set and passed with $_POST variables if ( !empty($_POST) && check_admin_referer('delete_key','nonce_name') && isset( $_POST['delete_credit'] ) ) { //set your role to apply this action to $role = 'subscriber'; //get all users of this role (i.e. Subcribers) $users = get_users('role='.$role); //iterate of each user returned applying our delete_user_meta function foreach ($users as $user) { delete_user_meta($user->ID, 'ref_credit'); } } else { //return your error conditions here if you like or do further processing echo "I say I don't even know you, I say that you're not authorized,\n I don't understand you, so why do I judge your vars?\n Armand Van Administrator"; } } This assume you are using a wp_nonce_field in your form and that your form also contains $_POST['delete_key'] as one of the submitted $_POST vars, whether thats a hidden input or not. Calling check_admin_referrer is a convenient way to check whether your request has originated from an administrative page in the dashboard.
wordpress
{ "language": "en", "length": 465, "provenance": "stackexchange_00019.jsonl.gz:425277", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70833" }
[ 0.033294677734375, 0.0043182373046875, -0.02093505859375, -0.00440216064453125, 0.0155487060546875, -0.046295166015625, 0.044921875, -0.0222930908203125, 0.0654296875, 0.04345703125, -0.01384735107421875, -0.070068359375, 0.05780029296875, -0.0201416015625, -0.0621337890625, -0.006061553955078125, 0.01261138916015625, 0.040802001953125, 0.050933837890625, 0.00028824806213378906, 0.004062652587890625, 0.0133819580078125, 0.0001800060272216797, -0.04974365234375, -0.0018463134765625, -0.01357269287109375, 0.0281829833984375, -0.0399169921875, 0.01116180419921875, -0.0341796875, 0.006805419921875, 0.044708251953125, -0.0244140625, 0.01256561279296875, 0.01300048828125, -0.01488494873046875, -0.003734588623046875, 0.0224456787109375, 0.04083251953125, -0.037139892578125, 0.0310516357421875, -0.01194000244140625, -0.0751953125, 0.049896240234375, -0.057373046875, -0.076904296875, 0.05474853515625, 0.0010862350463867188, 0.01861572265625, 0.0185394287109375, 0.0187530517578125, 0.017303466796875, 0.0345458984375, -0.01526641845703125, 0.0008478164672851562, 0.00995635986328125, -0.019012451171875, -0.03704833984375, 0.0231170654296875, 0.06378173828125, 0.022491455078125, 0.0029773712158203125, -0.005523681640625, -0.0634765625, -0.014434814453125, -0.0093536376953125, -0.0216522216796875, 0.0054779052734375, -0.00792694091796875, 0.0095062255859375, 0.0220947265625, -0.01136016845703125, -0.00702667236328125, 0.0014047622680664062, -0.00823974609375, 0.0006570816040039062, 0.0142822265625, -0.003448486328125, 0.0026569366455078125, 0.01837158203125, 0.00008213520050048828, -0.02459716796875, -0.04156494140625, 0.0187225341796875, -0.029022216796875, 0.0092926025390625, -0.0100250244140625, -0.0081939697265625, -0.018768310546875, -0.032684326171875, -0.017242431640625, -0.0469970703125, -0.0265655517578125, 0.003509521484375, -0.01580810546875, -0.01837158203125, 0.0325927734375, 0.0704345703125, -0.0179595947265625, -0.0290374755859375, 0.022186279296875, -0.0352783203125, -0.03759765625, -0.027862548828125, 0.0174102783203125, 0.0338134765625, -0.039154052734375, -0.023529052734375, 0.006702423095703125, 0.037384033203125, 0.01031494140625, -0.05023193359375, -0.036865234375, -0.01058197021484375, -0.0297393798828125, 0.0108184814453125, -0.05426025390625, 0.00260162353515625, -0.01264190673828125, 0.0176239013671875, -0.00861358642578125, 0.005733489990234375, -0.0196075439453125, -0.0307159423828125, 0.00606536865234375, -0.026092529296875, -0.038238525390625, 0.014312744140625, -0.0692138671875, 0.0201568603515625, -0.0291290283203125, 0.024810791015625, 0.0743408203125, 0.040008544921875, -0.0031719207763671875, -0.01849365234375, -0.01384735107421875, -0.017425537109375, -0.0003635883331298828, 0.0220489501953125, 0.003490447998046875, -0.05914306640625, -0.0017919540405273438, 0.0162506103515625, -0.0080108642578125, 0.0386962890625, 0.03033447265625, -0.0212554931640625, -0.01399993896484375, -0.027435302734375, -0.0880126953125, 0.0321044921875, 0.0222320556640625, 0.01197052001953125, 0.035125732421875, -0.00299072265625, 0.07366943359375, -0.03997802734375, -0.038482666015625, -0.02728271484375, 0.02001953125, -0.036651611328125, -0.037261962890625, 0.0264739990234375, -0.042816162109375, 0.03607177734375, 0.0183258056640625, -0.01113128662109375, 0.037078857421875, 0.0245819091796875, 0.00455474853515625, -0.021331787109375, 0.039886474609375, 0.024078369140625, -0.0036773681640625, 0.0270538330078125, 0.0116119384765625, 0.01134490966796875, 0.0037059783935546875, 0.038726806640625, -0.0167388916015625, -0.03985595703125, 0.032806396484375, -0.019500732421875, -0.055450439453125, -0.005161285400390625, 0.0189971923828125, 0.045562744140625, 0.0249481201171875, 0.0140533447265625, 0.0614013671875, 0.00653839111328125, 0.042327880859375, -0.00867462158203125, 0.006076812744140625, -0.051544189453125, -0.0277099609375, -0.0283203125, -0.0229644775390625, 0.01678466796875, 0.0416259765625, 0.014739990234375, 0.019378662109375, -0.047393798828125, -0.09844970703125, 0.023651123046875, -0.032073974609375, 0.04986572265625, -0.05224609375, 0.0190887451171875, 0.028045654296875, -0.0311279296875, -0.057403564453125, 0.06549072265625, 0.036224365234375, -0.042144775390625, -0.0025634765625, 0.0312042236328125, 0.009735107421875, 0.05584716796875, -0.00689697265625, -0.0236663818359375, -0.019805908203125, -0.0166778564453125, 0.01322174072265625, -0.007160186767578125, -0.01114654541015625, -0.006328582763671875, 0.0307769775390625, -0.01218414306640625, 0.02264404296875, 0.034881591796875, 0.010589599609375, 0.00409698486328125, -0.032196044921875, 0.00934600830078125, -0.0213470458984375, -0.07403564453125, -0.0084075927734375, 0.044830322265625, 0.02728271484375, 0.004787445068359375, -0.023223876953125, 0.024444580078125, 0.00749969482421875, -0.01045989990234375, 0.0160980224609375, 0.0289764404296875, -0.0014734268188476562, 0.0197296142578125, -0.026458740234375, 0.00888824462890625, 0.0244598388671875, -0.039154052734375, 0.01343536376953125, 0.0518798828125, -0.031646728515625, -0.0176849365234375, 0.0030231475830078125, -0.019134521484375, 0.0024623870849609375, -0.022705078125, -0.0033321380615234375, -0.01568603515625, 0.040740966796875, -0.005950927734375, 0.054718017578125, 0.040863037109375, -0.0078277587890625, -0.017181396484375, 0.00775909423828125, 0.02685546875, -0.00521087646484375, 0.00952911376953125, 0.05072021484375, 0.054473876953125, -0.058135986328125, -0.0020961761474609375, 0.0208282470703125, 0.0330810546875, -0.00951385498046875, 0.024871826171875, 0.0024261474609375, -0.00600433349609375, -0.004913330078125, 0.003509521484375, 0.015716552734375, -0.0021076202392578125, -0.00817108154296875, -0.0194549560546875, 0.010772705078125, 0.015594482421875, -0.00890350341796875, 0.0247650146484375, 0.0069580078125, -0.01442718505859375, -0.0013866424560546875, -0.031951904296875, 0.0203094482421875, -0.0261077880859375, 0.0130462646484375, 0.0601806640625, 0.0052337646484375, -0.0236358642578125, -0.0131988525390625, -0.01337432861328125, -0.0278778076171875, 0.00872039794921875, 0.002460479736328125, -0.047027587890625, 0.0232696533203125, 0.0516357421875, 0.01215362548828125, 0.0269622802734375, 0.0011196136474609375, -0.0259857177734375, 0.004062652587890625, 0.01236724853515625, -0.053009033203125, -0.0517578125, 0.01611328125, -0.01053619384765625, 0.0024738311767578125, -0.0218353271484375, -0.006725311279296875, 0.0015125274658203125, 0.0014162063598632812, -0.0003018379211425781, 0.0396728515625, -0.0024394989013671875, -0.0211334228515625, 0.02947998046875, -0.02484130859375, 0.004917144775390625, -0.007354736328125, -0.0185394287109375, -0.0017290115356445312, 0.040802001953125, -0.0136871337890625, -0.051239013671875, -0.01861572265625, 0.00005328655242919922, -0.01184844970703125, -0.0189361572265625, 0.01338958740234375, -0.01580810546875, -0.0007309913635253906, 0.004009246826171875, 0.004550933837890625, 0.01776123046875, -0.024871826171875, -0.01468658447265625, 0.03265380859375, -0.022186279296875, 0.034454345703125, -0.01053619384765625, -0.05535888671875, 0.017852783203125, 0.0216522216796875, -0.03631591796875, -0.0022830963134765625, 0.009979248046875, -0.0188140869140625, 0.02886962890625, 0.0057525634765625, -0.01251220703125, 0.02191162109375, 0.00567626953125, 0.039337158203125, 0.02838134765625, -0.0013494491577148438, 0.0352783203125, -0.03765869140625, -0.01091766357421875, 0.0106353759765625, -0.0009298324584960938, 0.00664520263671875, -0.0267181396484375, -0.0033893585205078125, -0.016143798828125, -0.00518035888671875, 0.0129852294921875, -0.0115814208984375, 0.0118255615234375, -0.055450439453125, 0.060821533203125, 0.012969970703125, 0.02655029296875, -0.052978515625, -0.032928466796875, -0.031494140625, 0.10076904296875, 0.01611328125, -0.030029296875, -0.0022182464599609375, -0.0222930908203125, 0.01219940185546875, 0.0621337890625, -0.0263671875, 0.0020084381103515625, -0.0916748046875, -0.0191497802734375, 0.00736236572265625, -0.053070068359375, -0.0277862548828125, 0.00342559814453125, -0.08148193359375, -0.0263519287109375, 0.0244140625, -0.052764892578125, 0.028411865234375, -0.002216339111328125, 0.0228729248046875, -0.0479736328125, 0.017913818359375, -0.059173583984375, -0.0479736328125, -0.008392333984375, -0.04315185546875, 0.042694091796875, 0.034912109375, -0.0159149169921875, 0.0034809112548828125, 0.021484375, 0.0056915283203125, 0.0443115234375, -0.0423583984375, -0.02789306640625, 0.01255035400390625, 0.002460479736328125, -0.0189666748046875, -0.0065155029296875, -0.0212554931640625, -0.0458984375, 0.012359619140625, 0.000438690185546875, -0.057861328125, 0.01468658447265625, -0.0626220703125, 0.006885528564453125, -0.02923583984375, -0.03887939453125, -0.052490234375, -0.0009236335754394531, -0.037628173828125, -0.01165771484375, -0.043487548828125, -0.06610107421875, 0.022979736328125, 0.015899658203125, -0.01276397705078125, 0.0178985595703125, 0.027435302734375, 0.00836944580078125, -0.03717041015625, -0.049041748046875, 0.037078857421875, 0.03558349609375, -0.036773681640625, 0.06683349609375, 0.0158233642578125, -0.01436614990234375, 0.0667724609375, -0.00566864013671875, 0.023834228515625, -0.0697021484375, 0.071533203125, -0.024505615234375, -0.017364501953125, 0.023040771484375, -0.031402587890625, 0.0313720703125, 0.00791168212890625, 0.0186309814453125, -0.01526641845703125, -0.003223419189453125, 0.023040771484375, 0.050323486328125, -0.048980712890625, -0.044586181640625, -0.0284271240234375, 0.0232696533203125, -0.060394287109375, -0.0012445449829101562, -0.01467132568359375, 0.0005240440368652344, -0.025390625, -0.0196990966796875, 0.01910400390625, -0.029632568359375, 0.012176513671875, -0.058441162109375, 0.034912109375, -0.017852783203125, -0.01163482666015625, -0.026580810546875, -0.019287109375, 0.074462890625, 0.00433349609375, -0.0643310546875, 0.039459228515625, -0.023406982421875, 0.04296875, 0.0253143310546875, 0.022247314453125, 0.053009033203125, 0.028961181640625, 0.0028400421142578125, -0.011962890625, -0.0138092041015625, 0.0166168212890625, -0.043670654296875, 0.053070068359375, 0.0001958608627319336, -0.0016717910766601562, -0.00777435302734375, 0.062744140625, -0.043609619140625, 0.032806396484375, 0.0088653564453125, 0.052215576171875, 0.01580810546875, 0.049102783203125, 0.00974273681640625, -0.00876617431640625, -0.0182037353515625, 0.0312347412109375, -0.03656005859375, -0.03106689453125, -0.0019016265869140625, 0.036590576171875, 0.038818359375, 0.033172607421875, -0.0007638931274414062, -0.0294952392578125, -0.0285491943359375, 0.004817962646484375, 0.034149169921875, -0.0233154296875, -0.055755615234375, -0.0206451416015625, 0.016571044921875, 0.01235198974609375, -0.042572021484375, 0.025390625, -0.004894256591796875, -0.0006017684936523438, 0.0270843505859375, -0.0237884521484375, 0.020538330078125, -0.04400634765625, -0.03228759765625, -0.0114898681640625, -0.01092529296875, -0.0224761962890625, -0.028350830078125, -0.006195068359375, -0.006359100341796875, -0.0222625732421875, 0.06298828125, 0.0159912109375, -0.01532745361328125, -0.01806640625, 0.00414276123046875, -0.036956787109375, -0.01174163818359375, 0.049468994140625, -0.007175445556640625, -0.0228424072265625, -0.014862060546875, -0.0289459228515625, -0.01346588134765625, -0.0194244384765625, -0.0274505615234375, -0.0223541259765625, -0.00103759765625, -0.0083770751953125, 0.0302734375, -0.0004134178161621094, -0.002101898193359375, 0.0235748291015625, -0.0002465248107910156, 0.00251007080078125, 0.0283355712890625, -0.010955810546875, 0.06707763671875, -0.0013132095336914062, 0.049835205078125, 0.0282745361328125, 0.06610107421875, 0.00832366943359375, -0.042510986328125, 0.0272216796875, -0.0226898193359375, -0.053619384765625, -0.029693603515625, -0.016937255859375, -0.0172271728515625, 0.0223236083984375, -0.020904541015625, 0.017822265625, -0.0164794921875, 0.004627227783203125, -0.023712158203125, 0.04150390625, -0.0211639404296875, 0.0293731689453125, -0.005573272705078125, -0.0031032562255859375, 0.02490234375, -0.0274505615234375, -0.0173187255859375, 0.01326751708984375, 0.0014657974243164062, 0.011138916015625, 0.007366180419921875, -0.03863525390625, 0.054718017578125, 0.0772705078125, -0.014923095703125, 0.0255889892578125, 0.0214996337890625, -0.01273345947265625, 0.0253143310546875, -0.019744873046875, 0.02264404296875, 0.0059356689453125, 0.04718017578125, -0.01155853271484375, 0.004993438720703125, 0.0288848876953125, -0.0224151611328125, 0.01126861572265625, 0.06036376953125, 0.055450439453125, -0.09588623046875, 0.0220184326171875, 0.0069122314453125, 0.0087432861328125, 0.025665283203125, -0.01198577880859375, -0.0284576416015625, -0.047821044921875, 0.0016193389892578125, 0.00894927978515625, -0.035736083984375, -0.01323699951171875, 0.0308074951171875, -0.007648468017578125, -0.01386260986328125, -0.019287109375, -0.005462646484375, 0.06561279296875, -0.051788330078125, -0.0276336669921875, -0.0113067626953125, -0.008026123046875, 0.0178070068359375, 0.02227783203125, -0.0148468017578125, -0.05828857421875, 0.006927490234375, -0.006732940673828125, -0.037750244140625, 0.00847625732421875, 0.00893402099609375, 0.043304443359375, 0.0197906494140625, 0.0024929046630859375, -0.0169525146484375, -0.0021610260009765625, 0.0026645660400390625, -0.0931396484375, -0.052734375, -0.020416259765625, 0.01079559326171875, -0.01171112060546875, 0.044158935546875, -0.0193328857421875, -0.03619384765625, -0.010284423828125, -0.0299072265625, 0.07757568359375, -0.0443115234375, -0.0157470703125, 0.016204833984375, 0.01242828369140625, -0.007282257080078125, 0.01000213623046875, 0.03692626953125, -0.03375244140625, 0.0029277801513671875, 0.0263214111328125, -0.004863739013671875, -0.0307769775390625, 0.05047607421875, -0.06488037109375, 0.034576416015625, 0.0079193115234375, 0.0276031494140625, -0.01708984375, 0.013946533203125, -0.001537322998046875, -0.0015192031860351562, -0.0404052734375, 0.07757568359375, 0.01462554931640625, 0.038421630859375, -0.02362060546875, 0.00011831521987915039, 0.0198822021484375, 0.003238677978515625, 0.0789794921875, 0.031280517578125, -0.042205810546875, -0.0290679931640625, -0.0047760009765625, 0.00653076171875, -0.028167724609375, 0.05511474609375, 0.0002384185791015625, 0.020111083984375, 0.04168701171875, -0.03265380859375, 0.017608642578125, 0.00873565673828125, -0.0242462158203125, 0.0123138427734375, 0.011199951171875, 0.016571044921875, -0.0008101463317871094, 0.040313720703125, -0.0185394287109375, -0.001983642578125, 0.01369476318359375, -0.007167816162109375, 0.00032210350036621094, 0.0234222412109375, 0.00832366943359375, -0.0133819580078125, -0.028533935546875, -0.01337432861328125, 0.0335693359375, 0.01287078857421875, 0.01019287109375, 0.036224365234375, 0.025115966796875, 0.003971099853515625, 0.00022137165069580078, 0.0087890625, 0.0169219970703125, -0.0151824951171875, 0.07696533203125, 0.03924560546875, 0.01019287109375, -0.039764404296875, 0.00818634033203125, 0.06640625, 0.09051513671875, -0.053131103515625, -0.048431396484375, 0.006504058837890625, -0.004772186279296875, 0.01483154296875, 0.033538818359375, 0.03814697265625, -0.03314208984375, 0.007106781005859375, -0.0396728515625, 0.017181396484375, 0.0171661376953125, 0.0268402099609375, -0.0003879070281982422, 0.004444122314453125, -0.043792724609375, 0.002986907958984375, -0.0265655517578125, -0.00762176513671875, 0.0225067138671875, -0.01413726806640625, 0.00787353515625, 0.0028972625732421875, 0.08514404296875, 0.01593017578125, 0.004669189453125, -0.003055572509765625, -0.0146636962890625, -0.014984130859375, -0.06671142578125, -0.06597900390625, 0.0247802734375, 0.050933837890625, 0.0201263427734375, -0.0025463104248046875, 0.04034423828125, 0.009979248046875, -0.040252685546875, -0.0127716064453125, 0.0024662017822265625, -0.039154052734375, -0.003215789794921875, -0.0239715576171875, 0.0028285980224609375, -0.0093231201171875, 0.0044403076171875, -0.03155517578125, 0.0533447265625, -0.020355224609375, 0.01251983642578125, 0.0077972412109375, 0.0099334716796875, -0.015899658203125, 0.03753662109375, 0.025421142578125, 0.0180511474609375, 0.041107177734375, -0.031585693359375, 0.0037078857421875, -0.0316162109375, 0.0171356201171875, -0.0119171142578125, 0.007114410400390625, -0.017791748046875, 0.05322265625, -0.0094146728515625, -0.022308349609375, 0.043609619140625, 0.0047149658203125, -0.0276336669921875, 0.0484619140625, 0.036529541015625, -0.019866943359375, -0.01070404052734375, 0.016357421875, 0.029510498046875, -0.0214691162109375, -0.0244293212890625, 0.07916259765625, -0.01334381103515625, -0.020751953125, -0.031524658203125, 0.00125885009765625, -0.0008940696716308594, -0.016754150390625, 0.0185546875, 0.043670654296875, -0.005168914794921875, -0.027099609375, -0.020263671875, 0.0280609130859375, 0.048919677734375, -0.0234222412109375, 0.02923583984375, 0.018310546875, -0.006282806396484375, -0.050506591796875, -0.0108489990234375, -0.021514892578125, -0.01354217529296875, -0.0215606689453125, -0.01375579833984375, 0.044158935546875, 0.049835205078125, 0.0064544677734375, 0.004566192626953125, 0.01378631591796875, -0.01244354248046875, 0.0027217864990234375, 0.032073974609375, -0.0010175704956054688, 0.01216888427734375, -0.00843048095703125, 0.00853729248046875, 0.0301055908203125, -0.0034770965576171875, 0.026580810546875, 0.014739990234375, 0.0162200927734375, 0.042633056640625, -0.01099395751953125, 0.011993408203125, 0.037200927734375, 0.0516357421875, 0.0256500244140625, 0.01141357421875, -0.0017786026000976562, -0.012542724609375, -0.023468017578125, -0.005702972412109375, -0.0208892822265625, -0.02618408203125, -0.0204620361328125, 0.0173797607421875, -0.0289459228515625, -0.053436279296875, -0.08709716796875, 0.0284271240234375, 0.0401611328125, 0.0227203369140625, -0.09619140625, 0.082275390625, -0.034454345703125, 0.0284271240234375, 0.006916046142578125, -0.045562744140625, -0.01062774658203125, 0.0206298828125, -0.0035724639892578125, -0.05126953125, -0.04779052734375, 0.04693603515625, -0.03619384765625, 0.0208740234375, 0.011260986328125, -0.0046539306640625, 0.00177764892578125, 0.03466796875, 0.0096893310546875, 0.0780029296875, 0.020355224609375, -0.04156494140625, -0.0188446044921875, -0.007625579833984375, 0.04754638671875, -0.049774169921875, -0.0304107666015625, -0.05316162109375, 0.008544921875, -0.00519561767578125, 0.0155792236328125, 0.040435791015625, -0.0328369140625, -0.06756591796875, 0.06976318359375, -0.01739501953125, -0.032867431640625, 0.022430419921875, -0.011260986328125, -0.0020656585693359375, 0.02099609375, 0.01971435546875, -0.031402587890625, -0.0273895263671875, 0.006160736083984375, 0.02862548828125, -0.031463623046875, 0.01433563232421875, 0.022796630859375, -0.040985107421875, 0.048095703125, 0.038726806640625, 0.004253387451171875, -0.00550079345703125, -0.006435394287109375, 0.044708251953125, 0.04156494140625, -0.0196075439453125, 0.0340576171875, 0.0249176025390625, -0.01654052734375, -0.031982421875, -0.016937255859375, -0.0194244384765625, 0.0006313323974609375, 0.10089111328125, 0.029510498046875, 0.033111572265625, -0.03228759765625, -0.015380859375, -0.015625, 0.022979736328125, -0.06378173828125, -0.0025005340576171875, -0.06640625, -0.044708251953125, -0.0205078125, -0.02239990234375, 0.01422119140625, 0.003398895263671875, -0.02069091796875, 0.0164031982421875, 0.0692138671875, 0.008819580078125, -0.03936767578125, 0.01062774658203125, -0.00485992431640625, -0.0245513916015625, -0.040618896484375, -0.0232086181640625, 0.00786590576171875, -0.049102783203125, -0.04547119140625, -0.016754150390625, -0.039703369140625, 0.01137542724609375, 0.059173583984375, -0.01488494873046875, 0.01381683349609375, -0.0394287109375, -0.017425537109375, -0.0038280487060546875, 0.0249481201171875, 0.003589630126953125, 0.040130615234375, 0.006832122802734375, 0.0203094482421875, 0.0205230712890625, -0.031036376953125, -0.00957489013671875, 0.03179931640625, -0.023895263671875, 0.040283203125, -0.01068878173828125, -0.0184326171875, 0.0221099853515625, -0.023590087890625, -0.006763458251953125, 0.01016998291015625, 0.0235748291015625, -0.056488037109375, 0.0136260986328125, 0.0078582763671875, 0.031890869140625, 0.025146484375 ]
c1fc047e3d67bb34aa2a3300149f8591c6034347
Wordpress Stackexchange Q: What is the correct way to check if WP_Filesystem can write to a directory without aking for username / password? I'm trying to implement caching using the filesystem so i need to check if i can write in a directory. I've read Otto's article, but i've failed to understand how should i implement a check where the user doesn't input any kind of password. So basically i need to use the direct method, what's the correct way to do it? A: This is what i ended up using /** * check if the path is writable. To make the check . * * @param string $path * @return boolean */ public static function is_writable( $path ) { global $wp_filesystem; include_once ABSPATH . 'wp-admin/includes/file.php'; // If for some reason the include doesn't work as expected just return false. if( ! function_exists( 'WP_Filesystem' ) ) { return false; } $writable = WP_Filesystem( false, $path ); // We consider the directory as writable if it uses the direct transport, // otherwise credentials would be needed return $writable && $wp_filesystem->method === 'direct'; }
Q: What is the correct way to check if WP_Filesystem can write to a directory without aking for username / password? I'm trying to implement caching using the filesystem so i need to check if i can write in a directory. I've read Otto's article, but i've failed to understand how should i implement a check where the user doesn't input any kind of password. So basically i need to use the direct method, what's the correct way to do it? A: This is what i ended up using /** * check if the path is writable. To make the check . * * @param string $path * @return boolean */ public static function is_writable( $path ) { global $wp_filesystem; include_once ABSPATH . 'wp-admin/includes/file.php'; // If for some reason the include doesn't work as expected just return false. if( ! function_exists( 'WP_Filesystem' ) ) { return false; } $writable = WP_Filesystem( false, $path ); // We consider the directory as writable if it uses the direct transport, // otherwise credentials would be needed return $writable && $wp_filesystem->method === 'direct'; }
wordpress
{ "language": "en", "length": 180, "provenance": "stackexchange_00019.jsonl.gz:425279", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70838" }
[ 0.024566650390625, 0.00858306884765625, -0.01320648193359375, -0.006717681884765625, 0.01424407958984375, -0.036376953125, 0.02252197265625, -0.0254974365234375, 0.0032939910888671875, 0.0132598876953125, -0.0096282958984375, -0.0219879150390625, -0.01450347900390625, -0.0028057098388671875, -0.0400390625, -0.0308685302734375, 0.0389404296875, -0.0013360977172851562, 0.061920166015625, 0.00832366943359375, 0.0217742919921875, 0.03167724609375, 0.03759765625, 0.0034503936767578125, 0.01229095458984375, -0.0061798095703125, 0.049835205078125, -0.01096343994140625, 0.01505279541015625, -0.014984130859375, 0.0104217529296875, -0.01531219482421875, 0.0311737060546875, 0.006740570068359375, -0.0246429443359375, -0.00981903076171875, -0.033538818359375, 0.0191802978515625, -0.00384521484375, -0.0032958984375, 0.00933074951171875, -0.0162200927734375, -0.0223388671875, 0.0223236083984375, -0.0233306884765625, -0.03143310546875, 0.00939178466796875, -0.016998291015625, 0.03887939453125, 0.069580078125, -0.0233306884765625, 0.044952392578125, -0.035308837890625, 0.0252838134765625, 0.00504302978515625, -0.0021076202392578125, 0.01056671142578125, -0.01519775390625, 0.020782470703125, -0.04168701171875, -0.0254974365234375, -0.01580810546875, 0.0345458984375, 0.0206298828125, -0.014068603515625, -0.002285003662109375, 0.017242431640625, 0.0261077880859375, -0.034820556640625, -0.048980712890625, 0.00848388671875, -0.01242828369140625, 0.02215576171875, -0.0188446044921875, 0.025115966796875, -0.0024242401123046875, -0.0270538330078125, 0.0018301010131835938, 0.032806396484375, 0.006816864013671875, -0.0181427001953125, 0.01126861572265625, -0.035919189453125, -0.0210418701171875, 0.01538848876953125, 0.032501220703125, -0.0187225341796875, -0.0257568359375, -0.0017213821411132812, 0.002223968505859375, -0.0167083740234375, 0.0226593017578125, 0.0294647216796875, 0.005123138427734375, -0.0467529296875, 0.001209259033203125, 0.0207977294921875, 0.04931640625, -0.01425933837890625, 0.019317626953125, -0.004669189453125, -0.022125244140625, -0.007122039794921875, -0.0258331298828125, 0.0280609130859375, 0.037200927734375, -0.050811767578125, -0.06005859375, 0.0289459228515625, 0.03363037109375, 0.00524139404296875, -0.002376556396484375, -0.0267333984375, -0.05938720703125, -0.01122283935546875, 0.074462890625, -0.01111602783203125, -0.0018329620361328125, 0.0124053955078125, 0.0286407470703125, -0.00446319580078125, -0.01334381103515625, -0.0076446533203125, 0.00037384033203125, 0.00283050537109375, -0.012176513671875, -0.02532958984375, 0.03326416015625, 0.0274200439453125, 0.051727294921875, -0.0241851806640625, -0.0233917236328125, 0.008819580078125, 0.00922393798828125, -0.006072998046875, -0.043060302734375, -0.0015468597412109375, 0.0253753662109375, -0.00473785400390625, -0.0008397102355957031, 0.01019287109375, -0.03125, 0.0201416015625, 0.004695892333984375, -0.0007977485656738281, 0.035369873046875, 0.0166473388671875, 0.0095062255859375, 0.002544403076171875, -0.08819580078125, 0.043121337890625, -0.05059814453125, -0.0020313262939453125, -0.010711669921875, -0.011871337890625, -0.0041961669921875, -0.0623779296875, 0.01033782958984375, 0.0132904052734375, 0.02301025390625, 0.0411376953125, -0.007144927978515625, -0.0208892822265625, 0.0196075439453125, -0.0015287399291992188, -0.0010995864868164062, -0.01320648193359375, 0.005462646484375, 0.0231475830078125, 0.0016412734985351562, 0.030914306640625, -0.0189208984375, -0.0231781005859375, 0.01471710205078125, 0.0038585662841796875, 0.021759033203125, 0.018829345703125, 0.02056884765625, 0.002803802490234375, 0.06903076171875, -0.0017213821411132812, -0.04400634765625, 0.07147216796875, -0.0400390625, -0.0360107421875, -0.04205322265625, 0.026763916015625, 0.0047454833984375, 0.0257110595703125, 0.0110931396484375, 0.048614501953125, 0.0103759765625, 0.00628662109375, 0.022247314453125, -0.0311279296875, -0.034942626953125, 0.01580810546875, 0.0207977294921875, -0.0239715576171875, 0.0029277801513671875, 0.071533203125, -0.032257080078125, 0.023468017578125, -0.0538330078125, -0.0892333984375, -0.003299713134765625, -0.03253173828125, 0.014495849609375, -0.0002689361572265625, 0.024566650390625, 0.0083160400390625, -0.0034046173095703125, -0.006366729736328125, -0.034454345703125, -0.0178070068359375, 0.00582122802734375, -0.02099609375, 0.060943603515625, -0.003570556640625, 0.0460205078125, 0.0159912109375, -0.0570068359375, 0.0264434814453125, -0.0167694091796875, 0.0015192031860351562, -0.007328033447265625, -0.00463104248046875, -0.005207061767578125, 0.033966064453125, 0.0088348388671875, 0.0518798828125, -0.01085662841796875, 0.0167694091796875, 0.030242919921875, -0.00896453857421875, -0.02337646484375, -0.01435089111328125, -0.113525390625, 0.0238800048828125, 0.0701904296875, 0.05853271484375, 0.011993408203125, 0.01465606689453125, 0.0168914794921875, 0.023406982421875, -0.06292724609375, 0.009979248046875, -0.0241546630859375, 0.0002636909484863281, 0.052001953125, -0.003932952880859375, 0.003299713134765625, -0.005718231201171875, -0.06683349609375, -0.034576416015625, 0.035552978515625, 0.022613525390625, 0.018585205078125, -0.005779266357421875, 0.0132598876953125, -0.0023593902587890625, 0.04022216796875, -0.0034923553466796875, 0.0335693359375, 0.006923675537109375, 0.01136016845703125, -0.010772705078125, -0.0192108154296875, -0.025909423828125, 0.032989501953125, 0.0273590087890625, -0.062103271484375, -0.0008606910705566406, 0.06292724609375, 0.087158203125, -0.0008091926574707031, -0.04974365234375, -0.04071044921875, 0.0249481201171875, 0.043609619140625, -0.02886962890625, -0.00862884521484375, -0.004932403564453125, -0.0038318634033203125, 0.00894927978515625, 0.01039886474609375, 0.0224761962890625, -0.017974853515625, 0.019866943359375, 0.0152130126953125, 0.05572509765625, -0.0039520263671875, 0.0054473876953125, 0.0250701904296875, -0.03143310546875, -0.032012939453125, 0.0184783935546875, 0.006954193115234375, 0.0103607177734375, -0.00704193115234375, 0.0022182464599609375, 0.042816162109375, 0.005634307861328125, -0.0191802978515625, -0.015167236328125, 0.02691650390625, -0.005786895751953125, -0.00545501708984375, -0.024169921875, -0.0249176025390625, -0.06927490234375, -0.029815673828125, 0.0262908935546875, -0.0009665489196777344, 0.02984619140625, -0.019012451171875, -0.0064239501953125, 0.022705078125, -0.0758056640625, -0.0733642578125, 0.0026683807373046875, -0.046722412109375, 0.0134735107421875, 0.0254974365234375, -0.0228118896484375, -0.0270538330078125, 0.060089111328125, 0.00274658203125, -0.05047607421875, -0.0213470458984375, -0.01160430908203125, -0.05340576171875, -0.04071044921875, -0.043701171875, 0.005035400390625, -0.00040030479431152344, 0.0009288787841796875, 0.09051513671875, 0.0169525146484375, -0.0543212890625, -0.0069580078125, 0.038665771484375, -0.019073486328125, 0.00942230224609375, -0.024566650390625, -0.003292083740234375, 0.01494598388671875, -0.00001728534698486328, -0.005123138427734375, -0.0163116455078125, 0.026214599609375, -0.02301025390625, 0.018524169921875, -0.016082763671875, 0.01300811767578125, 0.027587890625, -0.0235748291015625, -0.0182647705078125, 0.013275146484375, -0.052215576171875, -0.01271820068359375, 0.0269775390625, -0.01204681396484375, 0.0430908203125, -0.0165557861328125, -0.034576416015625, 0.04962158203125, 0.0037841796875, 0.011871337890625, 0.02996826171875, -0.018798828125, -0.0217437744140625, -0.004367828369140625, 0.01271820068359375, 0.025115966796875, 0.0189208984375, 0.07635498046875, -0.0003876686096191406, -0.025177001953125, 0.0312347412109375, 0.0019989013671875, 0.0023975372314453125, -0.0255126953125, -0.0266876220703125, -0.05615234375, 0.0221710205078125, -0.06634521484375, 0.003704071044921875, -0.0516357421875, 0.0037479400634765625, -0.0193634033203125, 0.068603515625, -0.0052337646484375, -0.04248046875, -0.0093536376953125, 0.03515625, -0.067626953125, -0.053680419921875, 0.018890380859375, 0.007740020751953125, 0.00640106201171875, -0.0243377685546875, -0.01102447509765625, -0.0306549072265625, 0.0213165283203125, -0.1375732421875, 0.0247955322265625, -0.022430419921875, 0.008026123046875, -0.054718017578125, 0.021087646484375, -0.006038665771484375, 0.028839111328125, -0.030731201171875, 0.0255126953125, -0.07403564453125, -0.10540771484375, -0.0022945404052734375, -0.0526123046875, 0.05633544921875, 0.0018167495727539062, -0.016387939453125, -0.03985595703125, 0.033172607421875, 0.0007605552673339844, -0.0022602081298828125, 0.0222930908203125, 0.01165008544921875, -0.0000209808349609375, -0.00002288818359375, 0.010284423828125, -0.019989013671875, -0.0041656494140625, -0.0018320083618164062, -0.032958984375, -0.0088043212890625, -0.035858154296875, -0.0273895263671875, 0.026458740234375, -0.03466796875, -0.03692626953125, -0.0311126708984375, -0.0240631103515625, -0.0088348388671875, -0.0169219970703125, -0.00916290283203125, -0.025299072265625, -0.01092529296875, 0.074951171875, 0.0028934478759765625, 0.0216217041015625, -0.0085906982421875, 0.10906982421875, -0.00490570068359375, -0.034576416015625, -0.04705810546875, 0.006439208984375, 0.031341552734375, 0.024200439453125, 0.004299163818359375, 0.0108489990234375, -0.019287109375, 0.004352569580078125, 0.0184783935546875, -0.006397247314453125, 0.005462646484375, 0.01171112060546875, 0.000274658203125, -0.0266265869140625, 0.00543975830078125, -0.01035308837890625, 0.0213623046875, 0.0386962890625, 0.026947021484375, -0.0236663818359375, 0.017181396484375, 0.0283050537109375, 0.0107269287109375, -0.0426025390625, -0.0311737060546875, -0.0428466796875, 0.0036830902099609375, -0.047515869140625, 0.050628662109375, 0.00998687744140625, 0.005687713623046875, 0.04095458984375, 0.03131103515625, -0.00701904296875, 0.0298614501953125, 0.0023326873779296875, 0.0178375244140625, 0.0272369384765625, 0.033966064453125, 0.00170135498046875, 0.0067138671875, -0.00032830238342285156, -0.0024280548095703125, -0.0041961669921875, -0.04791259765625, -0.01812744140625, 0.0241241455078125, -0.002208709716796875, 0.0123748779296875, 0.0044708251953125, 0.044525146484375, -0.0479736328125, -0.05169677734375, -0.006175994873046875, -0.05010986328125, -0.060455322265625, -0.061126708984375, 0.0299835205078125, 0.0124053955078125, -0.0230712890625, 0.0287322998046875, 0.007537841796875, -0.0218963623046875, 0.006290435791015625, 0.005176544189453125, 0.0078125, 0.046112060546875, -0.00946044921875, 0.016357421875, 0.0237884521484375, -0.0208740234375, -0.01482391357421875, 0.035003662109375, -0.03973388671875, -0.039306640625, 0.0504150390625, 0.0295867919921875, -0.015228271484375, -0.004520416259765625, 0.00937652587890625, 0.0246124267578125, -0.002132415771484375, 0.004131317138671875, -0.015960693359375, -0.05059814453125, -0.0167388916015625, 0.0010051727294921875, 0.0125732421875, -0.021087646484375, -0.0012121200561523438, -0.035980224609375, -0.052001953125, -0.037933349609375, 0.043548583984375, -0.035888671875, -0.02813720703125, -0.029327392578125, -0.040802001953125, -0.006427764892578125, 0.037506103515625, -0.02471923828125, -0.01470184326171875, -0.0241851806640625, -0.035675048828125, 0.0435791015625, -0.0162506103515625, 0.011566162109375, -0.0194091796875, 0.005535125732421875, 0.019561767578125, 0.006221771240234375, 0.061737060546875, 0.0285797119140625, -0.05670166015625, 0.002986907958984375, -0.057342529296875, -0.004913330078125, -0.02740478515625, -0.0535888671875, -0.03570556640625, -0.00464630126953125, -0.0014142990112304688, -0.0012540817260742188, 0.0191802978515625, -0.005069732666015625, -0.0173187255859375, 0.03167724609375, 0.01885986328125, -0.0007719993591308594, -0.0210723876953125, 0.06671142578125, -0.0087432861328125, 0.02691650390625, -0.00634002685546875, 0.0182647705078125, 0.003589630126953125, -0.004367828369140625, 0.00472259521484375, -0.0205535888671875, -0.006988525390625, -0.0208740234375, 0.054656982421875, 0.0015277862548828125, 0.01971435546875, -0.00296783447265625, -0.034637451171875, 0.01471710205078125, 0.005199432373046875, -0.0192718505859375, 0.0235748291015625, 0.041351318359375, -0.0270538330078125, -0.0231781005859375, -0.0015535354614257812, 0.053741455078125, -0.020751953125, -0.0621337890625, 0.040557861328125, 0.00542449951171875, 0.0263824462890625, 0.03765869140625, -0.06402587890625, 0.07965087890625, 0.051361083984375, 0.0219879150390625, 0.05316162109375, -0.007160186767578125, 0.03387451171875, 0.020599365234375, -0.02655029296875, 0.02593994140625, 0.00951385498046875, 0.0287628173828125, 0.0010929107666015625, 0.0291595458984375, 0.03448486328125, -0.004009246826171875, 0.0271453857421875, 0.04345703125, 0.03717041015625, -0.034271240234375, -0.01160430908203125, -0.0258331298828125, -0.048553466796875, 0.037841796875, -0.003833770751953125, 0.00014960765838623047, -0.003101348876953125, 0.051910400390625, -0.003757476806640625, -0.020660400390625, 0.02679443359375, 0.00995635986328125, 0.018218994140625, 0.01096343994140625, 0.0261993408203125, 0.01311492919921875, -0.020172119140625, -0.0248565673828125, 0.036590576171875, 0.0013895034790039062, 0.01763916015625, 0.0084075927734375, -0.026580810546875, -0.0093994140625, -0.033721923828125, -0.03375244140625, -0.05438232421875, -0.0238037109375, 0.034454345703125, -0.0089111328125, 0.0638427734375, 0.01305389404296875, 0.01183319091796875, 0.0103302001953125, -0.033538818359375, 0.031036376953125, -0.046905517578125, -0.01496124267578125, 0.02349853515625, 0.023956298828125, -0.03472900390625, 0.0191192626953125, -0.045654296875, -0.00495147705078125, -0.00850677490234375, -0.0038089752197265625, 0.0616455078125, -0.03106689453125, 0.00189208984375, 0.032379150390625, 0.0241851806640625, -0.006572723388671875, 0.02099609375, 0.05841064453125, -0.059539794921875, -0.043304443359375, 0.051116943359375, -0.04150390625, -0.044921875, 0.03546142578125, -0.00597381591796875, 0.083740234375, -0.020751953125, 0.0012569427490234375, 0.04107666015625, 0.01261138916015625, -0.01898193359375, 0.03466796875, -0.0771484375, 0.0601806640625, 0.01013946533203125, 0.04595947265625, -0.06915283203125, -0.004619598388671875, -0.006031036376953125, -0.006160736083984375, -0.01467132568359375, 0.01519775390625, -0.0287933349609375, -0.01812744140625, -0.0286712646484375, 0.0014476776123046875, -0.002613067626953125, 0.054443359375, -0.00457763671875, 0.0019283294677734375, 0.019683837890625, -0.0115203857421875, 0.0235595703125, -0.017547607421875, -0.0241851806640625, 0.0272979736328125, 0.007568359375, -0.003894805908203125, -0.0230560302734375, 0.018341064453125, -0.07794189453125, 0.0099029541015625, 0.03948974609375, 0.02642822265625, 0.0226287841796875, 0.01407623291015625, 0.0537109375, -0.05609130859375, -0.004436492919921875, -0.013427734375, 0.04779052734375, 0.0121917724609375, -0.0207366943359375, 0.01312255859375, 0.021697998046875, -0.060089111328125, -0.006099700927734375, -0.01399993896484375, 0.02081298828125, -0.0263519287109375, 0.018280029296875, 0.0679931640625, 0.0219268798828125, 0.034820556640625, 0.064453125, 0.04949951171875, 0.01335906982421875, -0.040802001953125, -0.025909423828125, -0.0016937255859375, -0.008819580078125, 0.0157318115234375, 0.0178070068359375, 0.04168701171875, 0.02862548828125, 0.0083770751953125, -0.03326416015625, 0.0048370361328125, 0.0230255126953125, -0.0228424072265625, 0.004665374755859375, 0.00750732421875, 0.02911376953125, 0.033111572265625, 0.0032196044921875, -0.007175445556640625, 0.01397705078125, -0.01538848876953125, -0.032806396484375, 0.0149688720703125, 0.022735595703125, 0.0169219970703125, -0.01366424560546875, 0.032928466796875, -0.00013208389282226562, 0.0221099853515625, -0.0611572265625, -0.0601806640625, 0.0452880859375, 0.04571533203125, 0.045379638671875, 0.033599853515625, 0.0260772705078125, -0.002368927001953125, 0.025634765625, 0.0190277099609375, 0.030181884765625, -0.0101470947265625, -0.00655364990234375, -0.01258087158203125, -0.01271820068359375, 0.01497650146484375, -0.0032138824462890625, -0.0118255615234375, 0.022216796875, 0.0311737060546875, -0.00225067138671875, 0.02294921875, -0.0015735626220703125, -0.008514404296875, 0.02825927734375, -0.02044677734375, 0.00728607177734375, 0.0264129638671875, -0.0169677734375, -0.004451751708984375, 0.035003662109375, 0.01404571533203125, -0.034271240234375, 0.0177459716796875, 0.004596710205078125, 0.0233001708984375, 0.0322265625, 0.0247344970703125, 0.026611328125, -0.0129241943359375, -0.036529541015625, -0.029266357421875, 0.06304931640625, -0.014495849609375, -0.0012578964233398438, -0.0005450248718261719, -0.008056640625, 0.052734375, -0.0137481689453125, 0.12030029296875, -0.0687255859375, 0.0114593505859375, -0.003940582275390625, 0.009979248046875, -0.04327392578125, -0.02239990234375, 0.032562255859375, -0.017364501953125, -0.00995635986328125, 0.01251220703125, -0.026214599609375, 0.02001953125, -0.00801849365234375, 0.001888275146484375, 0.019744873046875, -0.05517578125, 0.0299530029296875, 0.0250091552734375, 0.01126861572265625, -0.044677734375, -0.040283203125, -0.005191802978515625, 0.014617919921875, -0.0174560546875, -0.040191650390625, -0.032867431640625, 0.0537109375, -0.02655029296875, -0.054595947265625, 0.01406097412109375, -0.0947265625, 0.0186004638671875, 0.00876617431640625, 0.0238037109375, -0.00559234619140625, -0.056396484375, -0.03851318359375, -0.02801513671875, -0.007740020751953125, -0.0142822265625, -0.043060302734375, -0.004520416259765625, -0.0142822265625, 0.03265380859375, 0.04522705078125, -0.007080078125, 0.02294921875, -0.0163421630859375, 0.006175994873046875, 0.0447998046875, -0.055999755859375, -0.0163421630859375, -0.027008056640625, -0.004146575927734375, 0.0303802490234375, -0.0004620552062988281, -0.0232696533203125, -0.0189666748046875, 0.0208740234375, 0.02874755859375, -0.0163421630859375, -0.05328369140625, 0.027252197265625, -0.048431396484375, 0.06695556640625, -0.02178955078125, 0.071533203125, -0.0303497314453125, -0.01111602783203125, -0.05950927734375, -0.0020809173583984375, -0.0265960693359375, 0.0528564453125, 0.00386810302734375, 0.0234832763671875, 0.035614013671875, -0.01035308837890625, 0.02880859375, 0.0210723876953125, 0.013580322265625, 0.062103271484375, -0.042205810546875, -0.00904083251953125, 0.0239715576171875, -0.01560211181640625, -0.034515380859375, -0.03662109375, 0.0106201171875, -0.04083251953125, -0.034881591796875, -0.0089263916015625, 0.006839752197265625, 0.012481689453125, -0.0227508544921875, -0.05841064453125, -0.012725830078125, 0.02130126953125, -0.032623291015625, -0.0426025390625, -0.024169921875, -0.021820068359375, 0.0521240234375, -0.0174560546875, 0.0004684925079345703, 0.0045013427734375, 0.07452392578125, 0.0419921875, -0.0157318115234375, 0.062042236328125, 0.0196685791015625, -0.03082275390625, 0.0169830322265625, -0.00171661376953125, 0.0198974609375, 0.011962890625, 0.0120697021484375, 0.019561767578125, 0.05181884765625, -0.00010162591934204102, 0.04278564453125, 0.005298614501953125, -0.054779052734375, -0.00641632080078125, 0.0018243789672851562, -0.0031261444091796875, 0.047027587890625, 0.051727294921875, 0.04559326171875, 0.0107879638671875, -0.07012939453125, -0.050445556640625, -0.07708740234375, -0.0546875, 0.004543304443359375, 0.018890380859375, -0.0498046875, 0.0665283203125, -0.0036678314208984375, 0.0185394287109375, -0.04132080078125, -0.01534271240234375, -0.023651123046875, -0.0264129638671875, 0.016143798828125, 0.005764007568359375, 0.0269927978515625, -0.0005445480346679688, 0.059326171875, -0.037628173828125, -0.01139068603515625, 0.01465606689453125, 0.009552001953125, 0.0180206298828125, 0.0003960132598876953, 0.0032501220703125, 0.0243072509765625, -0.0394287109375, -0.001922607421875, 0.0050201416015625, 0.00589752197265625, -0.02691650390625, -0.01348114013671875, 0.03814697265625, -0.0019969940185546875, -0.031890869140625, -0.0309295654296875, 0.04034423828125, 0.02984619140625, -0.05267333984375, 0.041290283203125, 0.002471923828125, 0.005352020263671875, -0.01351165771484375, 0.007511138916015625, -0.005374908447265625, -0.01123809814453125, 0.018341064453125, -0.00730133056640625, -0.00727081298828125, 0.0020751953125, -0.0195770263671875, -0.05108642578125, 0.023284912109375, -0.05328369140625, 0.000064849853515625, 0.016387939453125 ]
c992e63c7bb105393913055df9e2d1397c822e13
Wordpress Stackexchange Q: WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of the website. Any ideas? A: Try pasting this in a plugin or theme functions.php file, as per the WordPress SEO plugin (API Docs), by Yoast. if(function_exists('wpseo_use_page_analysis') && !current_user_can('administrator')){ add_filter('wpseo_use_page_analysis', '__return_false'); } To avoid any errors... This checks to make sure the function exists, before attempting to hide stuff, allowing you to deactivate the plugin, and not throw errors. You may need to hook into init for this to properly work, which could be done so like this: function wpse_init(){ if(function_exists('wpseo_use_page_analysis') && !current_user_can('administrator')){ add_filter('wpseo_use_page_analysis', '__return_false'); } } add_action('init', 'wpse_init');
Q: WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of the website. Any ideas? A: Try pasting this in a plugin or theme functions.php file, as per the WordPress SEO plugin (API Docs), by Yoast. if(function_exists('wpseo_use_page_analysis') && !current_user_can('administrator')){ add_filter('wpseo_use_page_analysis', '__return_false'); } To avoid any errors... This checks to make sure the function exists, before attempting to hide stuff, allowing you to deactivate the plugin, and not throw errors. You may need to hook into init for this to properly work, which could be done so like this: function wpse_init(){ if(function_exists('wpseo_use_page_analysis') && !current_user_can('administrator')){ add_filter('wpseo_use_page_analysis', '__return_false'); } } add_action('init', 'wpse_init'); A: You can remove it using the remove_meta_box function. if ( ! current_user_can( 'edit_pages' ) ) { add_action( 'add_meta_boxes', 'my_remove_wp_seo_meta_box', 100000 ); } function my_remove_wp_seo_meta_box() { remove_meta_box( 'wpseo_meta', 'post', 'normal' ); } Notice the 100000 in the add_action, this makes sure that this is done after the WP SEO metabox has been hooked in. A: You can use the Adminimize plugin to hide items from users depending on their roles. Have used this myself to hide some Yoast SEO stuff from clients and simplifying the back end. http://wordpress.org/extend/plugins/adminimize/ Pretty straight forward to use by adding the css selectors for the items you want to hide. Have used it to hide the SEO Page Analysis tabs (#linkdex) A: It didn't say in the API docs on the Yoast SEO plugin site what the ID was and I don't have a copy of Yoast at installed at disposal, but according to yoas-plugin-dir/admin/class-metabox.php line 144, the meta_box registered is; add_meta_box( 'wpseo_meta', ...etc ); ... Which is hooked onto add_meta_boxes hook on line 32 of the same file, add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) ); Of course you could get the ID from the meta box itself on the post edit screen... Anyway. You can do the following, add_action('add_meta_boxes', 'yoast_is_toast', 99); function yoast_is_toast(){ //capability of 'manage_plugins' equals admin, therefore if NOT administrator //hide the meta box from all other roles on the following 'post_type' //such as post, page, custom_post_type, etc if (!current_user_can('activate_plugins')) { remove_meta_box('wpseo_meta', 'post_type', 'normal'); } } ...where post type is the post type you wish to apply this restriction too, such as post or a custom post type one or more! Should do the trick. update: manage_plugins should have been activate_plugins - ammended. A: Well there is a setting option on the WordPress SEO by Yoast for disabling the advanced part of WordPress SEO settings for non admins. If you want to completely disable the box then you can use other plugins to remove post editor page elements for non admins, e.g. removing the WordPress SEO box from the post editor for non admins.
wordpress
{ "language": "en", "length": 477, "provenance": "stackexchange_00019.jsonl.gz:425294", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70879" }
[ 0.05609130859375, 0.004436492919921875, 0.0272674560546875, 0.029083251953125, 0.0007834434509277344, -0.03936767578125, 0.0599365234375, -0.078369140625, 0.00833892822265625, 0.01415252685546875, -0.01446533203125, -0.027130126953125, -0.01279449462890625, -0.02374267578125, -0.0281829833984375, -0.041778564453125, 0.00926971435546875, 0.03582763671875, 0.043182373046875, -0.00722503662109375, 0.004669189453125, 0.0013952255249023438, 0.018310546875, -0.02593994140625, -0.00594329833984375, -0.05218505859375, 0.08697509765625, -0.01419830322265625, 0.00762176513671875, -0.0159454345703125, 0.027587890625, -0.01751708984375, -0.0060882568359375, 0.00787353515625, 0.030487060546875, 0.0394287109375, -0.03839111328125, 0.038360595703125, 0.043243408203125, -0.032928466796875, -0.00502777099609375, 0.01605224609375, 0.00714111328125, 0.008026123046875, -0.0010738372802734375, -0.052093505859375, -0.000591278076171875, -0.0533447265625, 0.01413726806640625, 0.0022373199462890625, 0.0220947265625, 0.030181884765625, 0.0298919677734375, -0.031219482421875, -0.0014390945434570312, 0.01508331298828125, -0.006877899169921875, 0.010406494140625, 0.0258941650390625, 0.011077880859375, -0.01461029052734375, 0.0008921623229980469, 0.0082550048828125, -0.02227783203125, -0.01197052001953125, 0.0120086669921875, -0.0269927978515625, 0.011627197265625, -0.05902099609375, -0.0121612548828125, 0.024627685546875, -0.0509033203125, -0.00879669189453125, -0.0010004043579101562, -0.0460205078125, -0.038818359375, 0.0240936279296875, -0.03643798828125, 0.004726409912109375, 0.0098876953125, 0.048004150390625, -0.018768310546875, -0.037567138671875, 0.005748748779296875, 0.019378662109375, 0.0304412841796875, 0.004161834716796875, -0.0252532958984375, -0.038970947265625, -0.00666046142578125, -0.0162200927734375, -0.0391845703125, -0.047821044921875, -0.0009145736694335938, 0.0198822021484375, -0.03375244140625, 0.039794921875, 0.0765380859375, -0.006580352783203125, -0.00223541259765625, -0.005084991455078125, -0.032958984375, 0.0038623809814453125, -0.0179595947265625, 0.009796142578125, 0.048431396484375, -0.01374053955078125, -0.0034332275390625, 0.02825927734375, 0.0205230712890625, 0.006908416748046875, 0.00018286705017089844, -0.00606536865234375, -0.020751953125, -0.037994384765625, 0.016815185546875, -0.01042938232421875, -0.0207672119140625, 0.0097198486328125, -0.007965087890625, -0.01104736328125, -0.00269317626953125, 0.037261962890625, -0.040130615234375, 0.01082611083984375, -0.0106048583984375, -0.055389404296875, -0.001903533935546875, 0.037445068359375, 0.00908660888671875, -0.04461669921875, -0.0025119781494140625, 0.04730224609375, 0.034698486328125, 0.0232391357421875, -0.01459503173828125, 0.0264434814453125, -0.005237579345703125, 0.006893157958984375, 0.01349639892578125, -0.020355224609375, -0.050933837890625, -0.00667572021484375, -0.0181427001953125, -0.0221405029296875, 0.0198211669921875, 0.0135955810546875, 0.0156097412109375, 0.005786895751953125, -0.047027587890625, -0.040069580078125, 0.0009031295776367188, 0.061431884765625, -0.00835418701171875, -0.03759765625, 0.007259368896484375, 0.0185546875, 0.00150299072265625, -0.05120849609375, -0.0308837890625, -0.0012569427490234375, -0.00930023193359375, 0.0291290283203125, 0.0200653076171875, -0.0016841888427734375, 0.006275177001953125, 0.002765655517578125, -0.001129150390625, 0.0198211669921875, 0.005931854248046875, 0.0155029296875, -0.004047393798828125, 0.015899658203125, -0.004772186279296875, -0.00916290283203125, 0.0094146728515625, 0.0090179443359375, 0.078125, 0.001918792724609375, 0.006443023681640625, 0.01727294921875, -0.0440673828125, 0.08782958984375, -0.0120849609375, -0.0496826171875, 0.052093505859375, -0.0117340087890625, 0.015380859375, 0.00028395652770996094, -0.006359100341796875, 0.045623779296875, 0.05059814453125, 0.0203094482421875, -0.0265350341796875, 0.019378662109375, -0.047760009765625, 0.01125335693359375, -0.027587890625, 0.002651214599609375, 0.015655517578125, 0.0221405029296875, -0.01200103759765625, 0.01015472412109375, 0.0211029052734375, -0.031951904296875, 0.00809478759765625, -0.02423095703125, 0.0019063949584960938, -0.0237579345703125, 0.01496124267578125, 0.0249786376953125, -0.01229095458984375, -0.00989532470703125, -0.0149383544921875, -0.02154541015625, -0.0286712646484375, -0.0006337165832519531, 0.041168212890625, 0.027923583984375, 0.0183868408203125, 0.03680419921875, -0.03631591796875, 0.02301025390625, -0.01403045654296875, 0.037750244140625, 0.037109375, -0.026092529296875, 0.0069732666015625, 0.0540771484375, 0.015716552734375, 0.0198516845703125, 0.015716552734375, 0.057769775390625, 0.0372314453125, -0.013427734375, -0.006290435791015625, 0.01331329345703125, -0.0859375, -0.004329681396484375, 0.05755615234375, 0.0272979736328125, 0.030242919921875, -0.029937744140625, -0.02020263671875, 0.083740234375, -0.050994873046875, -0.033966064453125, 0.01265716552734375, -0.0034637451171875, -0.01568603515625, -0.0296630859375, -0.0147705078125, 0.03363037109375, -0.0175018310546875, -0.0029964447021484375, 0.0340576171875, -0.02496337890625, -0.020477294921875, 0.023956298828125, -0.033416748046875, 0.020538330078125, -0.027862548828125, -0.02581787109375, -0.01224517822265625, 0.06048583984375, -0.00812530517578125, 0.05926513671875, 0.04180908203125, -0.043182373046875, -0.0022716522216796875, 0.02850341796875, 0.058837890625, -0.002948760986328125, 0.0228424072265625, 0.02685546875, 0.0029315948486328125, -0.07818603515625, 0.0189208984375, 0.020233154296875, 0.0322265625, 0.015777587890625, -0.005672454833984375, -0.026611328125, 0.006481170654296875, 0.0199432373046875, -0.007602691650390625, 0.015533447265625, 0.04180908203125, 0.04949951171875, -0.006103515625, 0.017608642578125, 0.0043487548828125, -0.02484130859375, 0.06231689453125, -0.01091766357421875, -0.040374755859375, -0.026123046875, -0.049041748046875, 0.05218505859375, -0.052337646484375, 0.03765869140625, 0.06689453125, -0.0311279296875, 0.0341796875, -0.004695892333984375, -0.03271484375, -0.035308837890625, 0.0267486572265625, 0.0026111602783203125, -0.032684326171875, -0.022613525390625, 0.0396728515625, 0.00850677490234375, -0.034912109375, 0.0158843994140625, -0.0244140625, -0.0284881591796875, -0.0037593841552734375, -0.08624267578125, -0.0183563232421875, 0.0305938720703125, -0.0843505859375, -0.03863525390625, -0.01629638671875, -0.0738525390625, 0.004024505615234375, 0.0251007080078125, -0.00872039794921875, -0.03082275390625, -0.033966064453125, -0.055267333984375, -0.08660888671875, -0.06329345703125, -0.0234832763671875, -0.00366973876953125, -0.0021419525146484375, -0.0009469985961914062, 0.0286102294921875, 0.01000213623046875, -0.0160369873046875, 0.008453369140625, 0.0186004638671875, -0.0024890899658203125, -0.00508880615234375, -0.053009033203125, 0.01317596435546875, 0.03326416015625, 0.000006854534149169922, 0.0288848876953125, 0.002376556396484375, 0.01044464111328125, -0.007778167724609375, 0.01464080810546875, -0.000052034854888916016, 0.03515625, -0.0246124267578125, -0.037200927734375, 0.00534820556640625, 0.013519287109375, -0.0287628173828125, 0.0056610107421875, -0.0207977294921875, -0.035064697265625, -0.031280517578125, 0.001964569091796875, 0.0014019012451171875, -0.0160980224609375, -0.0038623809814453125, 0.049530029296875, 0.029144287109375, 0.0601806640625, 0.0024204254150390625, -0.0067901611328125, -0.004032135009765625, 0.0021762847900390625, -0.0670166015625, -0.0016231536865234375, -0.020599365234375, -0.0092010498046875, -0.02838134765625, -0.00872039794921875, -0.028656005859375, 0.031341552734375, -0.0122528076171875, -0.004573822021484375, 0.024871826171875, -0.0238800048828125, -0.002010345458984375, -0.03607177734375, -0.0015764236450195312, -0.031768798828125, 0.0283966064453125, -0.04632568359375, -0.00518798828125, 0.016845703125, 0.01262664794921875, -0.0169830322265625, -0.0243682861328125, -0.05169677734375, -0.017822265625, -0.111572265625, 0.0288848876953125, 0.011077880859375, -0.0305328369140625, -0.0036754608154296875, -0.01100921630859375, -0.047637939453125, -0.049346923828125, 0.0198974609375, 0.007328033447265625, 0.0037517547607421875, 0.0005426406860351562, -0.0182647705078125, -0.01251220703125, -0.0225067138671875, -0.00618743896484375, -0.036895751953125, -0.01337432861328125, -0.0174713134765625, 0.04803466796875, 0.00485992431640625, 0.02337646484375, -0.019256591796875, 0.0213623046875, -0.00963592529296875, 0.01280975341796875, -0.0201263427734375, 0.0250244140625, 0.00868988037109375, -0.01222991943359375, -0.0159454345703125, -0.016998291015625, 0.0169219970703125, 0.0239105224609375, -0.06072998046875, 0.0137176513671875, -0.03216552734375, -0.01263427734375, 0.0236663818359375, -0.0548095703125, -0.024200439453125, -0.0533447265625, -0.034210205078125, 0.032257080078125, -0.0281524658203125, 0.027191162109375, -0.06988525390625, -0.04345703125, -0.0098724365234375, -0.029052734375, -0.0175628662109375, 0.0227508544921875, 0.00370025634765625, 0.0217132568359375, -0.00312042236328125, -0.0184326171875, -0.01021575927734375, 0.0069580078125, 0.023712158203125, 0.053741455078125, 0.02532958984375, 0.00202178955078125, 0.031158447265625, -0.005199432373046875, -0.0298309326171875, -0.0003840923309326172, 0.042694091796875, 0.003376007080078125, -0.04632568359375, 0.0203399658203125, -0.0308074951171875, 0.0335693359375, 0.006893157958984375, -0.009857177734375, -0.0236358642578125, -0.00936126708984375, 0.052886962890625, -0.00844573974609375, 0.016693115234375, -0.03033447265625, -0.031036376953125, -0.005382537841796875, 0.022735595703125, 0.032958984375, 0.0283355712890625, -0.0005135536193847656, 0.029571533203125, 0.0199127197265625, -0.0245361328125, 0.0035762786865234375, 0.023834228515625, -0.04034423828125, 0.01513671875, -0.017303466796875, -0.056365966796875, -0.01467132568359375, -0.01312255859375, 0.042816162109375, -0.024139404296875, -0.057098388671875, -0.0158233642578125, -0.0173187255859375, 0.05657958984375, 0.047027587890625, -0.0205535888671875, 0.046234130859375, 0.036376953125, -0.052459716796875, -0.04779052734375, -0.0244140625, -0.01020050048828125, -0.078369140625, -0.0138092041015625, 0.0026912689208984375, 0.0014562606811523438, 0.0159454345703125, 0.06353759765625, -0.0221405029296875, 0.04254150390625, -0.013671875, 0.0030059814453125, -0.0012483596801757812, 0.01328277587890625, 0.01947021484375, -0.0018014907836914062, 0.0006542205810546875, -0.0112457275390625, 0.034637451171875, -0.030426025390625, -0.0136871337890625, 0.06634521484375, 0.0092010498046875, 0.0128173828125, 0.0017786026000976562, -0.0213623046875, 0.02288818359375, -0.0236663818359375, 0.011260986328125, 0.02392578125, -0.0269927978515625, -0.0120086669921875, 0.02789306640625, 0.016876220703125, 0.0012521743774414062, -0.00251007080078125, -0.00429534912109375, 0.004962921142578125, 0.01068878173828125, 0.005313873291015625, -0.0640869140625, 0.034942626953125, 0.055511474609375, -0.0042724609375, 0.0019006729125976562, -0.0088958740234375, -0.044586181640625, -0.0117950439453125, -0.0216217041015625, -0.0199432373046875, 0.0274810791015625, -0.035858154296875, 0.023834228515625, -0.0260772705078125, 0.0170135498046875, 0.0144500732421875, 0.0218353271484375, 0.025115966796875, 0.01074981689453125, -0.047088623046875, 0.02191162109375, -0.0634765625, -0.01116180419921875, -0.007354736328125, -0.032012939453125, -0.042449951171875, -0.015899658203125, -0.0019664764404296875, 0.0098419189453125, -0.013275146484375, 0.00461578369140625, 0.00778961181640625, 0.00913238525390625, 0.00228118896484375, 0.0163726806640625, -0.038818359375, 0.1009521484375, 0.0008058547973632812, 0.028411865234375, 0.0204010009765625, 0.054046630859375, -0.002048492431640625, 0.00420379638671875, 0.019439697265625, -0.064697265625, -0.067138671875, -0.010101318359375, -0.08477783203125, 0.053680419921875, 0.0435791015625, -0.0158843994140625, 0.03594970703125, 0.01070404052734375, 0.007843017578125, -0.018218994140625, -0.02252197265625, -0.01934814453125, 0.032745361328125, 0.00707244873046875, -0.0121917724609375, 0.0187530517578125, -0.0286712646484375, -0.040496826171875, 0.05352783203125, -0.007770538330078125, 0.03900146484375, -0.000010669231414794922, -0.05523681640625, 0.059844970703125, 0.0732421875, 0.0270233154296875, 0.0623779296875, -0.01129150390625, 0.01708984375, 0.0284423828125, -0.042633056640625, -0.0249786376953125, 0.00762939453125, 0.041778564453125, 0.0029888153076171875, 0.0143585205078125, 0.081298828125, -0.010284423828125, 0.01230621337890625, 0.0565185546875, 0.040771484375, -0.103271484375, 0.01009368896484375, -0.0036144256591796875, 0.01290130615234375, 0.0191802978515625, -0.01212310791015625, -0.0134124755859375, -0.0360107421875, 0.0139007568359375, -0.00872802734375, -0.02117919921875, 0.0058135986328125, -0.0081329345703125, -0.030242919921875, -0.024688720703125, -0.002201080322265625, 0.0239715576171875, -0.012237548828125, 0.037750244140625, 0.01131439208984375, 0.0228271484375, 0.0181732177734375, 0.0208282470703125, 0.0159912109375, -0.0338134765625, -0.039581298828125, 0.018585205078125, 0.0033435821533203125, -0.040496826171875, 0.033905029296875, 0.021209716796875, 0.020965576171875, 0.0421142578125, -0.00013136863708496094, -0.00867462158203125, 0.01116943359375, 0.00566864013671875, -0.0157928466796875, -0.062408447265625, -0.0231170654296875, 0.06756591796875, -0.00743865966796875, 0.036773681640625, 0.05474853515625, -0.042938232421875, -0.01568603515625, -0.0238037109375, 0.08563232421875, -0.03253173828125, -0.01251983642578125, 0.028961181640625, 0.0075531005859375, -0.0243682861328125, 0.01255035400390625, 0.0270843505859375, -0.0280609130859375, -0.0173492431640625, 0.0222625732421875, -0.032623291015625, -0.0193939208984375, 0.019378662109375, -0.07745361328125, 0.08270263671875, -0.022369384765625, 0.05072021484375, 0.00804901123046875, 0.0246429443359375, -0.006908416748046875, 0.0030612945556640625, -0.034576416015625, 0.06536865234375, -0.0171661376953125, 0.056884765625, -0.04986572265625, -0.005565643310546875, 0.0042724609375, 0.045440673828125, 0.0162200927734375, 0.0247039794921875, -0.02032470703125, -0.0015773773193359375, -0.00661468505859375, 0.0038967132568359375, -0.0377197265625, 0.05767822265625, 0.0179443359375, 0.01380157470703125, 0.0227813720703125, -0.03912353515625, 0.0308990478515625, -0.04833984375, 0.00365447998046875, 0.026763916015625, 0.01438140869140625, 0.001682281494140625, -0.017730712890625, 0.033935546875, -0.0587158203125, -0.003337860107421875, 0.033905029296875, 0.006404876708984375, -0.0243988037109375, 0.038787841796875, 0.00469970703125, -0.0151824951171875, -0.0261993408203125, -0.0222015380859375, 0.0311431884765625, -0.0015239715576171875, 0.05279541015625, 0.042694091796875, 0.03558349609375, 0.026336669921875, -0.0242156982421875, 0.03955078125, 0.00785064697265625, -0.0557861328125, -0.01548004150390625, -0.0007033348083496094, 0.00022125244140625, -0.0261077880859375, 0.0268707275390625, 0.0167694091796875, -0.00641632080078125, -0.0196990966796875, -0.0026340484619140625, 0.00829315185546875, 0.022705078125, 0.0009140968322753906, -0.0034351348876953125, 0.02203369140625, 0.07635498046875, 0.0780029296875, 0.0037689208984375, -0.035247802734375, -0.017181396484375, 0.0369873046875, -0.01010894775390625, -0.003875732421875, 0.0260009765625, -0.053955078125, -0.0286712646484375, -0.03631591796875, 0.0323486328125, 0.058563232421875, 0.0215606689453125, 0.0264129638671875, 0.0121307373046875, -0.0227508544921875, -0.0281524658203125, 0.032135009765625, 0.0185546875, 0.01284027099609375, -0.0699462890625, -0.052093505859375, 0.051055908203125, 0.050689697265625, 0.03570556640625, 0.03216552734375, 0.0294647216796875, 0.04388427734375, 0.0088348388671875, 0.002262115478515625, 0.07720947265625, 0.004673004150390625, -0.002506256103515625, -0.026397705078125, 0.05859375, 0.0227508544921875, 0.021881103515625, -0.0225067138671875, 0.08892822265625, -0.01016998291015625, -0.0162811279296875, 0.01531219482421875, 0.0014400482177734375, -0.034027099609375, 0.03814697265625, -0.0038471221923828125, 0.03851318359375, 0.006175994873046875, -0.06494140625, -0.0262298583984375, -0.00408172607421875, -0.0273895263671875, 0.0205230712890625, 0.032073974609375, -0.0399169921875, 0.0300750732421875, 0.0278167724609375, 0.00814056396484375, -0.017333984375, -0.018524169921875, 0.0301666259765625, 0.00876617431640625, 0.0137939453125, 0.02239990234375, 0.0030498504638671875, 0.01078033447265625, 0.005985260009765625, 0.01251220703125, 0.0113372802734375, 0.0792236328125, -0.025634765625, -0.0050048828125, -0.01837158203125, -0.00925445556640625, -0.02496337890625, -0.0263214111328125, -0.00018036365509033203, -0.00911712646484375, -0.01171112060546875, 0.01055145263671875, -0.021240234375, 0.01153564453125, 0.03619384765625, 0.00283050537109375, 0.0231781005859375, -0.006526947021484375, 0.0102996826171875, -0.0294189453125, 0.03424072265625, -0.026580810546875, -0.0382080078125, -0.07330322265625, -0.013214111328125, 0.05108642578125, 0.043426513671875, -0.03857421875, 0.05047607421875, 0.00048828125, 0.01294708251953125, -0.013427734375, -0.01158905029296875, -0.0296630859375, 0.0160675048828125, 0.016021728515625, 0.0216217041015625, 0.00557708740234375, -0.01708984375, -0.01898193359375, 0.03594970703125, -0.05218505859375, 0.0191497802734375, -0.02288818359375, -0.025115966796875, 0.0157623291015625, -0.0002524852752685547, -0.034423828125, -0.0015544891357421875, 0.0245513916015625, -0.034912109375, -0.0309295654296875, -0.0180816650390625, -0.034393310546875, -0.0151824951171875, -0.005207061767578125, 0.0116729736328125, -0.007282257080078125, -0.0556640625, -0.046600341796875, 0.027923583984375, 0.037506103515625, 0.0033473968505859375, -0.07464599609375, 0.036773681640625, -0.035614013671875, 0.084228515625, -0.0013284683227539062, 0.0233001708984375, -0.00823974609375, 0.07147216796875, -0.006374359130859375, -0.0179901123046875, -0.01354217529296875, 0.01451873779296875, -0.0272979736328125, -0.00962066650390625, 0.0075531005859375, 0.01094818115234375, -0.005992889404296875, 0.00998687744140625, -0.028961181640625, 0.055084228515625, -0.0182647705078125, -0.021026611328125, -0.01580810546875, 0.00832366943359375, 0.0031795501708984375, -0.0458984375, 0.007114410400390625, -0.031951904296875, -0.02154541015625, 0.01253509521484375, -0.026947021484375, -0.01517486572265625, -0.04229736328125, -0.0560302734375, 0.07855224609375, -0.0013027191162109375, -0.0229644775390625, -0.0092926025390625, -0.023040771484375, 0.002681732177734375, 0.005847930908203125, 0.007190704345703125, -0.0239715576171875, -0.043304443359375, 0.0028781890869140625, -0.007038116455078125, 0.00036144256591796875, 0.0120086669921875, 0.00695037841796875, -0.052215576171875, 0.01058197021484375, 0.0148162841796875, -0.0462646484375, 0.004489898681640625, 0.022857666015625, 0.0022983551025390625, 0.049041748046875, -0.0281219482421875, -0.0022907257080078125, -0.0224609375, -0.0163116455078125, 0.01328277587890625, -0.01323699951171875, -0.038116455078125, 0.006000518798828125, 0.06842041015625, 0.057159423828125, 0.0235748291015625, -0.048248291015625, -0.043701171875, -0.043670654296875, -0.020416259765625, -0.021331787109375, 0.0308990478515625, -0.0987548828125, -0.007568359375, 0.03485107421875, 0.0112457275390625, 0.00269317626953125, -0.0011262893676757812, -0.0265655517578125, -0.03961181640625, -0.004047393798828125, 0.0175323486328125, -0.082763671875, -0.0012722015380859375, 0.035675048828125, -0.035797119140625, -0.01442718505859375, 0.0006213188171386719, 0.005130767822265625, -0.00550079345703125, -0.0013141632080078125, -0.0205230712890625, 0.00009125471115112305, -0.0156707763671875, 0.02557373046875, -0.0017032623291015625, 0.031524658203125, -0.0374755859375, -0.0011796951293945312, -0.02276611328125, 0.038482666015625, 0.0112762451171875, 0.046478271484375, -0.0283660888671875, 0.0263671875, 0.0186614990234375, 0.0181121826171875, -0.04779052734375, 0.064453125, -0.0191192626953125, 0.038330078125, 0.01006317138671875, 0.01177978515625, 0.081787109375, -0.013641357421875, -0.0018873214721679688, 0.0123138427734375, -0.0172271728515625, -0.023956298828125, -0.001918792724609375, -0.0501708984375, 0.0102996826171875, -0.006305694580078125 ]
3a780e5ab6e2b7387c8e1340f30e0c1e249f7339
Wordpress Stackexchange Q: WP_Query ignores post_type in category view I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the post_type attribute is ignored and posts of the type "post" are returned. I guess this has to do with multiple loops but I have also tried to call wp_reset_postdata(); and wp_reset_query(); before and after. $customPosts = new WP_Query( array( 'post_type' => 'mycustomtype', 'posts_per_page' => 12, 'orderby' => 'date', 'order' => 'DESC', 'post_status' => 'publish' )); while ( $customPosts->have_posts() ) : $customPosts->the_post(); $thumbnailUrl = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), "thumbnail"); if ( !empty($thumbnailUrl)) { /* echo result */ } endwhile; A: Have you tried using get_posts() instead? //#get access to post settings global $post; //#set parameters for extra loop $args = array( 'post_type' => 'mycustomtype', 'posts_per_page' => 12, 'orderby' => 'date', 'order' => 'DESC', 'post_status' => 'publish' ); //#get posts $customPosts = get_posts($args); //#loop through them foreach($customPosts as $post) { //#set all the loop functions to use data from this post setup_postdata($post); //#do what you want with the post }
Q: WP_Query ignores post_type in category view I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the post_type attribute is ignored and posts of the type "post" are returned. I guess this has to do with multiple loops but I have also tried to call wp_reset_postdata(); and wp_reset_query(); before and after. $customPosts = new WP_Query( array( 'post_type' => 'mycustomtype', 'posts_per_page' => 12, 'orderby' => 'date', 'order' => 'DESC', 'post_status' => 'publish' )); while ( $customPosts->have_posts() ) : $customPosts->the_post(); $thumbnailUrl = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), "thumbnail"); if ( !empty($thumbnailUrl)) { /* echo result */ } endwhile; A: Have you tried using get_posts() instead? //#get access to post settings global $post; //#set parameters for extra loop $args = array( 'post_type' => 'mycustomtype', 'posts_per_page' => 12, 'orderby' => 'date', 'order' => 'DESC', 'post_status' => 'publish' ); //#get posts $customPosts = get_posts($args); //#loop through them foreach($customPosts as $post) { //#set all the loop functions to use data from this post setup_postdata($post); //#do what you want with the post } A: This will resolve your issue, I was having the same problem, when I put this it worked perfectly. $args = array( 'post_type' => 'mycustomtype', 'posts_per_page' => 12, 'orderby' => 'date', 'order' => 'DESC', 'post_status' => 'publish', 'tag' => 'mycustomtag', 'cat' => 'mycustomcategory' ); $the_query = new WP_Query( $args ); if($the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
wordpress
{ "language": "en", "length": 248, "provenance": "stackexchange_00019.jsonl.gz:425296", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70887" }
[ 0.08453369140625, 0.01549530029296875, -0.0146026611328125, -0.04986572265625, 0.051849365234375, -0.0467529296875, 0.060272216796875, -0.01001739501953125, -0.00047135353088378906, -0.01003265380859375, -0.021728515625, -0.038909912109375, -0.031280517578125, -0.0474853515625, 0.01031494140625, -0.03729248046875, 0.046875, 0.0003676414489746094, 0.04473876953125, -0.00634765625, 0.01483917236328125, 0.0089111328125, 0.035400390625, 0.0169219970703125, 0.00047850608825683594, 0.01776123046875, 0.03173828125, -0.0266571044921875, 0.00505828857421875, -0.0015850067138671875, 0.01100921630859375, -0.01377105712890625, 0.007568359375, 0.0182342529296875, 0.01065826416015625, 0.034271240234375, 0.05615234375, -0.010162353515625, 0.02593994140625, 0.0249176025390625, -0.0142669677734375, 0.00765228271484375, 0.0303802490234375, -0.0024127960205078125, -0.01474761962890625, -0.031219482421875, 0.01788330078125, -0.0252685546875, 0.01300048828125, -0.01009368896484375, -0.0005311965942382812, -0.0188751220703125, 0.026580810546875, -0.0447998046875, -0.02947998046875, -0.0083770751953125, 0.00453948974609375, -0.015625, 0.02996826171875, -0.00045609474182128906, -0.045257568359375, -0.01334381103515625, 0.0205841064453125, -0.0340576171875, 0.0103759765625, 0.00292205810546875, 0.057342529296875, 0.014617919921875, -0.053924560546875, -0.0033111572265625, 0.047027587890625, -0.019012451171875, -0.01248931884765625, -0.006084442138671875, -0.01751708984375, -0.00640106201171875, -0.008026123046875, -0.041534423828125, 0.00893402099609375, 0.0289154052734375, -0.005306243896484375, -0.01617431640625, -0.069091796875, 0.006412506103515625, -0.0012998580932617188, 0.00514984130859375, -0.01132965087890625, -0.005962371826171875, -0.006366729736328125, -0.01361846923828125, -0.006439208984375, -0.01074981689453125, -0.00946807861328125, 0.015777587890625, 0.0052337646484375, -0.033935546875, 0.0223541259765625, 0.04833984375, -0.00531005859375, 0.0006852149963378906, -0.01287841796875, -0.026580810546875, 0.0166168212890625, -0.04620361328125, 0.053924560546875, 0.019561767578125, -0.0308380126953125, -0.00618743896484375, 0.07672119140625, 0.0296783447265625, 0.0096588134765625, 0.06329345703125, -0.008819580078125, 0.0037479400634765625, -0.0364990234375, 0.00042700767517089844, -0.04718017578125, 0.00038552284240722656, -0.01087188720703125, 0.0121307373046875, 0.03521728515625, 0.061279296875, 0.0041351318359375, -0.0350341796875, 0.01145172119140625, 0.0167999267578125, -0.01116180419921875, -0.05841064453125, -0.00470733642578125, 0.052337646484375, -0.048431396484375, -0.01143646240234375, 0.047393798828125, 0.0073089599609375, 0.0012159347534179688, -0.0302734375, 0.0076904296875, -0.0689697265625, -0.01837158203125, 0.0292205810546875, 0.0301971435546875, -0.045074462890625, 0.0028667449951171875, 0.0104827880859375, 0.01535797119140625, 0.02825927734375, 0.01505279541015625, 0.0013360977172851562, 0.00030803680419921875, -0.0161590576171875, 0.00205230712890625, -0.02728271484375, 0.0204315185546875, -0.0005321502685546875, -0.0233001708984375, -0.0123443603515625, 0.0260467529296875, -0.027496337890625, -0.0138702392578125, -0.03955078125, 0.0260009765625, -0.005847930908203125, -0.01483154296875, -0.039703369140625, -0.062042236328125, 0.01373291015625, -0.0216522216796875, -0.003597259521484375, 0.0194854736328125, 0.0187530517578125, -0.01166534423828125, -0.0159912109375, 0.03466796875, 0.023590087890625, -0.01025390625, 0.0263519287109375, -0.0113372802734375, -0.0411376953125, 0.040435791015625, 0.0011625289916992188, -0.044830322265625, -0.026336669921875, 0.00867462158203125, -0.0047760009765625, -0.0762939453125, 0.038604736328125, 0.02484130859375, 0.06219482421875, -0.0020923614501953125, 0.01435089111328125, 0.08270263671875, 0.030914306640625, -0.072998046875, 0.0797119140625, -0.0023250579833984375, -0.01285552978515625, -0.037078857421875, -0.0013017654418945312, -0.0159759521484375, -0.0242767333984375, 0.0120086669921875, -0.00035190582275390625, -0.00554656982421875, -0.005523681640625, -0.06884765625, -0.0007519721984863281, -0.0105133056640625, 0.038482666015625, 0.0019054412841796875, 0.032745361328125, 0.04058837890625, 0.034393310546875, -0.06927490234375, 0.03411865234375, -0.016082763671875, 0.0010309219360351562, 0.0128173828125, 0.026824951171875, -0.0350341796875, 0.0246124267578125, -0.043975830078125, -0.048828125, -0.05084228515625, 0.0526123046875, 0.0692138671875, -0.0172576904296875, 0.007373809814453125, -0.0241851806640625, 0.0574951171875, 0.022674560546875, -0.055267333984375, 0.0030879974365234375, 0.0102081298828125, 0.01146697998046875, -0.031005859375, 0.006900787353515625, 0.0238189697265625, -0.02630615234375, 0.01776123046875, 0.041229248046875, 0.050811767578125, 0.006435394287109375, 0.005542755126953125, 0.0127716064453125, 0.0550537109375, -0.024505615234375, 0.01360321044921875, -0.021942138671875, 0.0279083251953125, 0.036285400390625, 0.0211639404296875, -0.0169830322265625, 0.033050537109375, -0.012176513671875, 0.048370361328125, 0.01541900634765625, 0.01105499267578125, 0.009429931640625, -0.0264892578125, 0.019012451171875, -0.008270263671875, -0.01316070556640625, -0.02789306640625, -0.0033855438232421875, 0.04290771484375, 0.01971435546875, 0.049163818359375, 0.02276611328125, -0.0284881591796875, 0.01482391357421875, -0.0015993118286132812, -0.01264190673828125, -0.00914764404296875, -0.004909515380859375, 0.032318115234375, -0.0120086669921875, -0.0285797119140625, 0.01413726806640625, 0.0082855224609375, -0.0105438232421875, -0.003368377685546875, 0.0260162353515625, -0.00948333740234375, 0.01074981689453125, -0.015899658203125, -0.0408935546875, 0.01387786865234375, 0.049346923828125, -0.0122222900390625, -0.0094146728515625, 0.034210205078125, 0.00592041015625, -0.0276031494140625, 0.017669677734375, -0.01558685302734375, -0.025726318359375, -0.0035762786865234375, -0.061767578125, 0.043426513671875, -0.061431884765625, 0.048736572265625, 0.07171630859375, -0.0172576904296875, 0.0075836181640625, -0.003475189208984375, -0.038360595703125, -0.0199432373046875, 0.050506591796875, 0.005870819091796875, -0.04400634765625, -0.0261993408203125, 0.020477294921875, 0.026519775390625, 0.082275390625, -0.0111236572265625, -0.044708251953125, 0.033477783203125, 0.045257568359375, -0.060791015625, -0.10223388671875, 0.050628662109375, -0.04608154296875, 0.0167694091796875, -0.045318603515625, -0.0172271728515625, -0.0165252685546875, -0.05120849609375, -0.004001617431640625, -0.006683349609375, -0.0036106109619140625, -0.050689697265625, -0.04144287109375, -0.07080078125, -0.02557373046875, -0.0091705322265625, 0.0277252197265625, 0.0148773193359375, 0.08099365234375, 0.032073974609375, -0.040740966796875, 0.0272064208984375, 0.034454345703125, -0.032135009765625, 0.0151824951171875, 0.0008559226989746094, 0.01483917236328125, 0.01056671142578125, 0.0082855224609375, 0.06024169921875, 0.03839111328125, -0.05328369140625, -0.0207672119140625, 0.0087432861328125, 0.0186004638671875, 0.0200042724609375, 0.0135040283203125, -0.0005106925964355469, 0.047088623046875, 0.0333251953125, -0.0128631591796875, -0.044677734375, -0.0045166015625, -0.058349609375, 0.0103759765625, 0.02911376953125, 0.003749847412109375, -0.0188446044921875, 0.0308380126953125, 0.0130157470703125, 0.0207061767578125, 0.010040283203125, -0.0293731689453125, 0.03631591796875, 0.0200653076171875, 0.034454345703125, -0.0153656005859375, -0.0091400146484375, -0.0306854248046875, 0.0207672119140625, -0.00811004638671875, 0.003757476806640625, -0.0024623870849609375, -0.01383209228515625, -0.0209197998046875, -0.0616455078125, 0.05181884765625, -0.0195159912109375, -0.02191162109375, -0.0121917724609375, -0.03173828125, 0.004932403564453125, 0.06646728515625, -0.03485107421875, 0.007472991943359375, -0.040802001953125, -0.01004791259765625, -0.034088134765625, -0.05035400390625, -0.041778564453125, 0.0190582275390625, -0.044647216796875, 0.004253387451171875, 0.007610321044921875, -0.0263671875, -0.0126953125, 0.006389617919921875, -0.06170654296875, -0.025634765625, 0.03375244140625, -0.013641357421875, 0.0194549560546875, 0.0058746337890625, -0.0162353515625, 0.004566192626953125, -0.034820556640625, -0.00926971435546875, -0.07891845703125, -0.00888824462890625, 0.0341796875, 0.024810791015625, -0.0462646484375, 0.021148681640625, -0.038116455078125, 0.03826904296875, 0.0256195068359375, 0.004955291748046875, -0.01438140869140625, -0.0299072265625, -0.0290069580078125, 0.0226593017578125, -0.0109100341796875, 0.004253387451171875, -0.0231475830078125, -0.019195556640625, 0.00511932373046875, 0.0201416015625, -0.00884246826171875, -0.00720977783203125, 0.005954742431640625, -0.0158233642578125, -0.03497314453125, 0.00829315185546875, 0.0081329345703125, 0.0288848876953125, -0.007602691650390625, -0.00258636474609375, -0.0099945068359375, -0.032073974609375, 0.07049560546875, -0.002277374267578125, -0.01482391357421875, 0.0008635520935058594, 0.10626220703125, 0.0086822509765625, -0.0228118896484375, -0.06939697265625, -0.0209503173828125, 0.0290679931640625, -0.020599365234375, 0.054962158203125, 0.0234375, -0.0142059326171875, 0.07696533203125, -0.007511138916015625, 0.0111083984375, -0.0286865234375, 0.04449462890625, -0.00730133056640625, -0.008331298828125, 0.01468658447265625, -0.03424072265625, 0.0160064697265625, 0.047210693359375, -0.0005507469177246094, -0.025421142578125, 0.033599853515625, 0.047210693359375, -0.053924560546875, 0.0239105224609375, -0.02227783203125, -0.0247802734375, 0.0131988525390625, 0.031402587890625, 0.0180206298828125, 0.021240234375, -0.0010852813720703125, 0.0094146728515625, -0.0169830322265625, 0.0230255126953125, 0.0230865478515625, 0.054931640625, -0.0006046295166015625, 0.05010986328125, 0.03369140625, 0.0184478759765625, -0.024139404296875, 0.00634765625, -0.03179931640625, -0.0187225341796875, -0.0239410400390625, -0.0350341796875, -0.014129638671875, 0.0023651123046875, -0.0076446533203125, 0.0023555755615234375, 0.04205322265625, 0.031158447265625, 0.01299285888671875, 0.0003273487091064453, -0.0261993408203125, 0.029022216796875, -0.0283966064453125, 0.01134490966796875, 0.01465606689453125, -0.01020050048828125, 0.0032863616943359375, 0.04949951171875, 0.024169921875, 0.0170135498046875, -0.03472900390625, 0.0275726318359375, 0.001644134521484375, 0.023468017578125, 0.00724029541015625, 0.0310516357421875, -0.005054473876953125, 0.0150146484375, 0.0241546630859375, -0.0297088623046875, -0.0297698974609375, 0.004558563232421875, 0.049560546875, 0.00258636474609375, 0.0129547119140625, 0.015625, -0.0007214546203613281, -0.032684326171875, 0.023406982421875, 0.02490234375, -0.007171630859375, -0.031585693359375, -0.042236328125, 0.0108184814453125, 0.0220947265625, -0.03192138671875, 0.024078369140625, -0.020263671875, 0.035430908203125, -0.025726318359375, -0.0082855224609375, 0.0277099609375, 0.0240325927734375, -0.02557373046875, -0.047760009765625, -0.041473388671875, 0.0112457275390625, 0.020172119140625, 0.00811004638671875, -0.01161956787109375, -0.01528167724609375, -0.022705078125, 0.06744384765625, -0.046173095703125, -0.0184783935546875, -0.0246429443359375, -0.0027141571044921875, 0.074951171875, 0.060089111328125, -0.0242919921875, -0.0019550323486328125, -0.032073974609375, -0.0186004638671875, -0.01366424560546875, -0.039520263671875, -0.0262298583984375, -0.0139923095703125, 0.0226898193359375, 0.033966064453125, 0.00756072998046875, -0.035125732421875, -0.04022216796875, -0.01456451416015625, 0.0194091796875, 0.040863037109375, -0.027587890625, 0.06024169921875, -0.0247650146484375, 0.05322265625, -0.0142669677734375, -0.01007843017578125, -0.03662109375, 0.0049896240234375, -0.0154876708984375, -0.0948486328125, 0.00595855712890625, 0.0097503662109375, -0.03515625, 0.0384521484375, 0.025177001953125, 0.01519775390625, 0.0175628662109375, -0.0177459716796875, -0.0128021240234375, -0.02069091796875, 0.02001953125, -0.019622802734375, 0.0295867919921875, 0.01461029052734375, -0.00904083251953125, -0.01161956787109375, 0.00022411346435546875, -0.03009033203125, 0.007244110107421875, 0.00809478759765625, -0.002101898193359375, 0.00876617431640625, -0.025604248046875, 0.022125244140625, 0.08050537109375, 0.01332855224609375, 0.05755615234375, 0.01061248779296875, 0.0232696533203125, 0.042327880859375, 0.011016845703125, 0.01360321044921875, -0.0008172988891601562, 0.07733154296875, -0.0031299591064453125, -0.039642333984375, 0.0435791015625, -0.0450439453125, -0.0036563873291015625, 0.036590576171875, 0.045928955078125, -0.046478271484375, -0.0011930465698242188, 0.0240631103515625, -0.01474761962890625, 0.00594329833984375, -0.003826141357421875, -0.0146636962890625, 0.003734588623046875, 0.012847900390625, -0.0181884765625, -0.049957275390625, -0.0055694580078125, 0.0008449554443359375, 0.00635528564453125, -0.009002685546875, 0.03424072265625, -0.004817962646484375, -0.0355224609375, -0.0254974365234375, 0.0173797607421875, -0.036041259765625, -0.0104827880859375, 0.0197906494140625, -0.0277252197265625, -0.00940704345703125, -0.07373046875, -0.01788330078125, -0.005840301513671875, -0.029632568359375, 0.027191162109375, 0.0100860595703125, -0.00731658935546875, 0.030731201171875, -0.01476287841796875, 0.0261077880859375, -0.0035533905029296875, -0.0302581787109375, -0.0523681640625, -0.041595458984375, -0.0154571533203125, 0.07861328125, -0.0161285400390625, 0.047210693359375, 0.009490966796875, -0.0185699462890625, -0.02398681640625, -0.0260009765625, 0.05389404296875, -0.03802490234375, 0.003997802734375, 0.045196533203125, 0.057098388671875, -0.026580810546875, -0.00572967529296875, 0.004467010498046875, -0.046356201171875, 0.0009503364562988281, -0.0017023086547851562, 0.006885528564453125, -0.0435791015625, -0.007457733154296875, -0.072509765625, 0.08282470703125, -0.025909423828125, 0.0576171875, 0.0157623291015625, 0.01641845703125, -0.0163116455078125, -0.0090484619140625, -0.05242919921875, 0.05474853515625, 0.0018033981323242188, 0.042755126953125, -0.08526611328125, -0.01529693603515625, -0.0003478527069091797, 0.036224365234375, 0.0645751953125, 0.01003265380859375, -0.052398681640625, 0.0001023411750793457, 0.0731201171875, 0.0648193359375, 0.0156707763671875, 0.024383544921875, -0.00027871131896972656, 0.055877685546875, 0.057525634765625, -0.017303466796875, 0.058837890625, -0.011688232421875, -0.037506103515625, 0.00997161865234375, 0.0211639404296875, 0.01062774658203125, -0.01218414306640625, 0.0133209228515625, -0.034423828125, -0.007389068603515625, 0.0232391357421875, 0.0018568038940429688, 0.002651214599609375, 0.03717041015625, 0.057830810546875, -0.07464599609375, -0.045013427734375, -0.026763916015625, 0.05560302734375, 0.01506805419921875, 0.00972747802734375, 0.0116729736328125, 0.0174560546875, 0.08184814453125, -0.034332275390625, -0.0080718994140625, 0.0274505615234375, -0.0089111328125, 0.05462646484375, 0.0169219970703125, 0.038116455078125, -0.037384033203125, 0.01358795166015625, 0.023162841796875, 0.049591064453125, -0.04669189453125, -0.0460205078125, 0.0269012451171875, 0.0246124267578125, -0.00868988037109375, 0.0107879638671875, 0.0026683807373046875, -0.0016012191772460938, 0.053070068359375, -0.062164306640625, 0.019256591796875, 0.01776123046875, 0.02081298828125, -0.03204345703125, -0.041046142578125, -0.0297088623046875, -0.0080718994140625, -0.03082275390625, -0.0012273788452148438, 0.0271148681640625, 0.08160400390625, 0.0244903564453125, 0.058685302734375, -0.06158447265625, -0.036376953125, -0.01395416259765625, 0.002140045166015625, -0.0360107421875, 0.045196533203125, -0.0380859375, -0.03472900390625, -0.02386474609375, 0.045074462890625, 0.02862548828125, -0.0178070068359375, 0.0178070068359375, 0.018310546875, -0.01410675048828125, -0.0009260177612304688, 0.023345947265625, -0.0023040771484375, -0.048858642578125, -0.005290985107421875, -0.0256500244140625, 0.0198211669921875, 0.0010271072387695312, 0.0010890960693359375, 0.020599365234375, 0.00012290477752685547, 0.000537872314453125, 0.050628662109375, 0.00009375810623168945, -0.01299285888671875, 0.045654296875, -0.0110626220703125, 0.09161376953125, 0.019989013671875, -0.050445556640625, -0.0187835693359375, -0.038665771484375, -0.037689208984375, 0.039306640625, 0.0455322265625, -0.007740020751953125, 0.0142669677734375, 0.0127716064453125, -0.0302581787109375, 0.0068817138671875, 0.00981903076171875, 0.012725830078125, -0.00377655029296875, 0.0070648193359375, 0.004459381103515625, -0.044281005859375, -0.0210113525390625, 0.00481414794921875, 0.007415771484375, 0.01322174072265625, 0.0506591796875, 0.01800537109375, 0.011016845703125, 0.015594482421875, 0.044921875, -0.03228759765625, -0.007366180419921875, 0.0250396728515625, -0.03070068359375, 0.0254058837890625, -0.0061798095703125, 0.044647216796875, 0.0003693103790283203, 0.068603515625, -0.032989501953125, -0.047576904296875, 0.008514404296875, 0.03741455078125, -0.006488800048828125, 0.0156402587890625, -0.026519775390625, 0.029632568359375, -0.00264739990234375, -0.049163818359375, 0.05047607421875, 0.006439208984375, 0.032135009765625, 0.0261688232421875, 0.01605224609375, -0.02862548828125, 0.04339599609375, -0.0273590087890625, 0.071044921875, 0.04388427734375, -0.00945281982421875, 0.0184173583984375, -0.005191802978515625, -0.0169525146484375, -0.01076507568359375, 0.04205322265625, -0.0372314453125, 0.00928497314453125, 0.005573272705078125, -0.01275634765625, 0.01436614990234375, 0.038482666015625, -0.00916290283203125, 0.0046844482421875, 0.0019855499267578125, -0.0153045654296875, -0.00582122802734375, 0.008453369140625, -0.031341552734375, -0.0242919921875, 0.00968170166015625, 0.00994110107421875, 0.006847381591796875, -0.012542724609375, -0.036773681640625, -0.0306549072265625, 0.042724609375, 0.0128021240234375, -0.0372314453125, 0.0102996826171875, -0.01026153564453125, 0.00305938720703125, 0.004528045654296875, -0.042999267578125, 0.004772186279296875, 0.0185394287109375, 0.007686614990234375, 0.002315521240234375, -0.0305938720703125, -0.00891876220703125, -0.0019702911376953125, 0.0201263427734375, 0.039703369140625, -0.028778076171875, -0.0673828125, 0.027740478515625, -0.00908660888671875, 0.050628662109375, 0.0160675048828125, -0.0030269622802734375, -0.0034694671630859375, 0.0487060546875, -0.07183837890625, -0.07177734375, 0.042694091796875, -0.031982421875, -0.012451171875, -0.00717926025390625, 0.007358551025390625, 0.03631591796875, -0.00794219970703125, -0.0186767578125, 0.0330810546875, -0.0020427703857421875, -0.0208740234375, -0.051544189453125, 0.0256195068359375, 0.00255584716796875, 0.00029850006103515625, -0.0007686614990234375, -0.04644775390625, -0.0228729248046875, 0.01171875, 0.006130218505859375, -0.00496673583984375, 0.0357666015625, 0.0023212432861328125, -0.07366943359375, -0.01055145263671875, -0.031494140625, 0.006908416748046875, -0.00441741943359375, 0.0017976760864257812, 0.0214691162109375, 0.0213775634765625, -0.02294921875, -0.0018224716186523438, 0.0120391845703125, -0.00370025634765625, 0.0128021240234375, -0.01385498046875, -0.06103515625, -0.01300811767578125, 0.05328369140625, 0.062164306640625, 0.0214385986328125, -0.0277862548828125, -0.0013904571533203125, 0.00576019287109375, -0.06646728515625, -0.0335693359375, 0.038909912109375, -0.066650390625, -0.021453857421875, -0.0142822265625, -0.01104736328125, 0.01593017578125, 0.007289886474609375, -0.016998291015625, 0.002895355224609375, 0.0033931732177734375, -0.033203125, -0.02978515625, 0.034149169921875, -0.016754150390625, -0.004901885986328125, -0.008697509765625, -0.030426025390625, -0.0082855224609375, -0.010223388671875, -0.0235137939453125, -0.042510986328125, 0.0275115966796875, 0.00629425048828125, 0.0003871917724609375, 0.013397216796875, -0.0169525146484375, 0.01380157470703125, 0.03814697265625, -0.003253936767578125, -0.00960540771484375, -0.00844573974609375, -0.04071044921875, -0.0004177093505859375, 0.0203094482421875, 0.0024871826171875, 0.039581298828125, 0.00995635986328125, 0.013702392578125, 0.0166015625, 0.005832672119140625, 0.023529052734375, -0.0265350341796875, 0.055694580078125, -0.0455322265625, -0.00397491455078125, -0.019775390625, -0.06781005859375, -0.027862548828125, -0.0172882080078125, 0.01093292236328125, -0.041229248046875, 0.00008130073547363281 ]
8603d6282dcde849a8e56ede440de5cf12e13035
Wordpress Stackexchange Q: Switch from Beta Version to Stable Version I am currently running a WordPress Beta Version on a new site I'm testing. Now, it's about time to go live and I was wondering what should I do in order to get back to the stable version of WordPress? I'm trying to avoid the re-installation process all over again if possible. If I stick to this beta release for now and delete the Beta Tester Plugin, can I upgrade to the most stable version of WordPress when it hits the release? Is anything else I should worry about? A: Depending on your environment, you could backup all your core files (given you haven't hacked them) and the DB. It's also a good idea to backup your beta. Next, switch over - if it's production to live for client / public, do it during a time that traffic is lowest, assuming you track your traffic. Release the beta site at the domain (depending on your environment you might need to sterilize the DB and change URL paths) - if it fails, revert using your backup. If all goes well, the transition should be without issue upon upgrade.
Q: Switch from Beta Version to Stable Version I am currently running a WordPress Beta Version on a new site I'm testing. Now, it's about time to go live and I was wondering what should I do in order to get back to the stable version of WordPress? I'm trying to avoid the re-installation process all over again if possible. If I stick to this beta release for now and delete the Beta Tester Plugin, can I upgrade to the most stable version of WordPress when it hits the release? Is anything else I should worry about? A: Depending on your environment, you could backup all your core files (given you haven't hacked them) and the DB. It's also a good idea to backup your beta. Next, switch over - if it's production to live for client / public, do it during a time that traffic is lowest, assuming you track your traffic. Release the beta site at the domain (depending on your environment you might need to sterilize the DB and change URL paths) - if it fails, revert using your backup. If all goes well, the transition should be without issue upon upgrade.
wordpress
{ "language": "en", "length": 195, "provenance": "stackexchange_00019.jsonl.gz:425308", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70921" }
[ 0.032135009765625, -0.00972747802734375, -0.00492095947265625, -0.0248870849609375, -0.0063934326171875, -0.028411865234375, 0.020263671875, -0.03448486328125, 0.00830841064453125, 0.0196380615234375, -0.0157623291015625, -0.0255279541015625, -0.02398681640625, -0.0178070068359375, -0.020416259765625, -0.037750244140625, 0.049591064453125, -0.0186614990234375, 0.0264892578125, -0.006267547607421875, -0.00536346435546875, 0.01885986328125, 0.043182373046875, 0.06451416015625, 0.00653839111328125, -0.00453948974609375, 0.051605224609375, -0.042236328125, 0.006130218505859375, -0.036712646484375, 0.0280303955078125, 0.01371002197265625, 0.002197265625, 0.01215362548828125, 0.0036029815673828125, 0.0570068359375, 0.0450439453125, 0.0008006095886230469, 0.030059814453125, 0.03741455078125, 0.0294036865234375, -0.0251922607421875, 0.05218505859375, -0.014678955078125, 0.0213165283203125, -0.01715087890625, 0.0208892822265625, -0.06640625, 0.0207366943359375, -0.0292205810546875, 0.01203155517578125, -0.020599365234375, 0.0154571533203125, -0.01690673828125, -0.0277862548828125, -0.0281982421875, 0.0168304443359375, -0.0077362060546875, 0.03369140625, 0.04632568359375, -0.0242462158203125, 0.0074462890625, 0.0051727294921875, -0.059417724609375, -0.006458282470703125, 0.0177764892578125, -0.011993408203125, 0.004718780517578125, -0.0192718505859375, 0.00357818603515625, 0.034027099609375, -0.04461669921875, -0.01175689697265625, -0.052947998046875, 0.0169830322265625, 0.060455322265625, -0.019744873046875, -0.0055389404296875, 0.007724761962890625, 0.005809783935546875, 0.049407958984375, 0.0246429443359375, 0.0024013519287109375, -0.0195770263671875, 0.0253753662109375, -0.01099395751953125, 0.0000362396240234375, -0.0236053466796875, -0.006076812744140625, -0.035369873046875, -0.0123443603515625, 0.019866943359375, -0.058563232421875, 0.02099609375, -0.01100921630859375, -0.007167816162109375, -0.007293701171875, 0.018218994140625, -0.0005717277526855469, 0.0194091796875, -0.043243408203125, -0.0179595947265625, 0.004886627197265625, -0.026336669921875, -0.006710052490234375, 0.01806640625, -0.01523590087890625, -0.032073974609375, 0.00699615478515625, 0.037384033203125, -0.00490570068359375, -0.0186920166015625, -0.028961181640625, -0.063232421875, -0.010284423828125, 0.057464599609375, -0.019927978515625, 0.0140228271484375, 0.018890380859375, 0.0025768280029296875, 0.0196533203125, 0.051116943359375, -0.01194000244140625, -0.033111572265625, -0.0032825469970703125, -0.01251983642578125, -0.016448974609375, -0.03839111328125, -0.050628662109375, -0.007167816162109375, -0.0255584716796875, 0.034759521484375, 0.06964111328125, 0.051727294921875, -0.0007681846618652344, 0.0030384063720703125, 0.0184326171875, 0.013336181640625, 0.01416778564453125, 0.0279541015625, -0.0208282470703125, -0.0721435546875, -0.0186309814453125, -0.004741668701171875, 0.0181884765625, 0.024261474609375, 0.0243988037109375, -0.0025539398193359375, -0.021484375, -0.0167388916015625, 0.0000941157341003418, -0.0052642822265625, 0.02215576171875, -0.0023040771484375, 0.055206298828125, -0.0694580078125, 0.058563232421875, -0.06884765625, 0.0357666015625, -0.040252685546875, 0.0080718994140625, 0.028106689453125, 0.039703369140625, 0.0250244140625, 0.021209716796875, -0.036376953125, -0.039581298828125, 0.0128326416015625, 0.0189971923828125, -0.018829345703125, 0.0107879638671875, -0.004253387451171875, 0.032989501953125, -0.01806640625, -0.0033321380615234375, 0.021209716796875, -0.044342041015625, 0.021636962890625, 0.027496337890625, -0.0081024169921875, -0.00629425048828125, -0.0299835205078125, 0.039154052734375, 0.0211944580078125, -0.0217437744140625, -0.0413818359375, -0.00400543212890625, 0.0181121826171875, 0.0288238525390625, 0.0272979736328125, -0.029052734375, -0.0210418701171875, -0.0185699462890625, 0.00839996337890625, 0.00572967529296875, -0.0267486572265625, -0.0038299560546875, -0.006038665771484375, 0.01507568359375, -0.0218658447265625, 0.0299835205078125, 0.0496826171875, -0.05364990234375, -0.0267486572265625, -0.07275390625, -0.0253143310546875, -0.0014505386352539062, 0.0364990234375, -0.0013132095336914062, 0.04620361328125, 0.00450897216796875, -0.021759033203125, -0.0024871826171875, -0.0118865966796875, 0.0018491744995117188, -0.0246124267578125, -0.02752685546875, -0.0244903564453125, -0.0214080810546875, -0.0214080810546875, 0.007381439208984375, -0.0023174285888671875, -0.01055908203125, 0.01322174072265625, 0.0276031494140625, -0.00823211669921875, -0.0203399658203125, -0.023681640625, 0.020111083984375, 0.00495147705078125, -0.030029296875, 0.0189971923828125, -0.0281219482421875, -0.022064208984375, -0.01032257080078125, -0.00385284423828125, 0.00826263427734375, -0.10784912109375, 0.029449462890625, 0.05560302734375, 0.0273284912109375, -0.0050506591796875, -0.024078369140625, -0.0171661376953125, 0.024871826171875, -0.031890869140625, 0.01158905029296875, -0.00283050537109375, 0.03289794921875, 0.079833984375, -0.01145172119140625, 0.0024318695068359375, -0.0162506103515625, -0.0290069580078125, -0.0056304931640625, 0.040313720703125, -0.01171112060546875, -0.0217132568359375, -0.00933837890625, -0.001251220703125, -0.00893402099609375, -0.062164306640625, -0.03179931640625, -0.022735595703125, 0.00418853759765625, -0.0286865234375, 0.02203369140625, 0.0113677978515625, -0.0008320808410644531, -0.01849365234375, 0.010284423828125, -0.01312255859375, 0.008331298828125, 0.039825439453125, 0.00936126708984375, 0.00827789306640625, -0.01172637939453125, -0.042388916015625, 0.026519775390625, 0.018890380859375, -0.01904296875, 0.0284271240234375, 0.042633056640625, -0.015655517578125, -0.014312744140625, 0.01473236083984375, 0.03729248046875, -0.017059326171875, -0.03936767578125, -0.01861572265625, 0.0288848876953125, -0.0262908935546875, -0.0374755859375, 0.0084686279296875, -0.005359649658203125, -0.0306396484375, 0.07794189453125, -0.0325927734375, 0.006988525390625, -0.003673553466796875, 0.0574951171875, 0.05267333984375, 0.015350341796875, -0.0352783203125, 0.0100250244140625, -0.023651123046875, 0.06280517578125, -0.0239715576171875, -0.0231170654296875, 0.045654296875, -0.09356689453125, -0.0135650634765625, 0.025604248046875, 0.041229248046875, -0.0008978843688964844, -0.00984954833984375, -0.01904296875, 0.033966064453125, -0.00952911376953125, 0.017974853515625, -0.0950927734375, -0.044677734375, -0.02569580078125, 0.027923583984375, -0.012603759765625, 0.02838134765625, 0.047027587890625, 0.028289794921875, 0.01389312744140625, -0.0015611648559570312, -0.053619384765625, -0.045257568359375, -0.0745849609375, -0.032501220703125, -0.0191802978515625, 0.0156707763671875, 0.0155792236328125, 0.0027103424072265625, -0.00023615360260009766, -0.0653076171875, -0.00385284423828125, 0.050018310546875, -0.01220703125, 0.001125335693359375, 0.00862884521484375, -0.0181732177734375, -0.03887939453125, -0.01678466796875, 0.027740478515625, 0.007465362548828125, -0.01404571533203125, 0.01128387451171875, -0.0190582275390625, 0.017547607421875, -0.00872039794921875, -0.007354736328125, 0.0168609619140625, 0.0101776123046875, -0.04345703125, -0.031463623046875, 0.033843994140625, 0.0279388427734375, 0.01470947265625, -0.0445556640625, -0.02899169921875, -0.03997802734375, 0.011627197265625, -0.0259857177734375, -0.032135009765625, -0.0240936279296875, 0.0738525390625, -0.03179931640625, 0.0030059814453125, -0.03851318359375, -0.05682373046875, -0.033416748046875, -0.00489044189453125, -0.047607421875, 0.04705810546875, -0.01355743408203125, -0.02166748046875, -0.011505126953125, -0.015869140625, -0.00499725341796875, -0.036468505859375, 0.031524658203125, -0.04803466796875, 0.006000518798828125, -0.01447296142578125, -0.00957489013671875, 0.033355712890625, 0.09613037109375, -0.0214996337890625, 0.005786895751953125, 0.0236968994140625, -0.0027008056640625, -0.01506805419921875, 0.00963592529296875, -0.08953857421875, -0.013092041015625, -0.03155517578125, -0.025299072265625, -0.0283966064453125, -0.0199432373046875, 0.00015354156494140625, -0.012054443359375, 0.0028743743896484375, -0.03924560546875, -0.0032501220703125, -0.044769287109375, 0.00634765625, -0.023040771484375, -0.0005679130554199219, -0.049224853515625, 0.034332275390625, -0.0333251953125, -0.0272216796875, -0.015228271484375, 0.01358795166015625, 0.0128936767578125, 0.01103973388671875, -0.0156707763671875, 0.02960205078125, 0.049530029296875, -0.002712249755859375, 0.038848876953125, -0.0256805419921875, -0.00492095947265625, 0.0164337158203125, -0.001087188720703125, -0.007244110107421875, 0.00023829936981201172, -0.00150299072265625, -0.07904052734375, -0.052642822265625, -0.05426025390625, -0.031097412109375, 0.0592041015625, -0.028594970703125, -0.0026836395263671875, 0.00994873046875, -0.01126861572265625, -0.0217437744140625, 0.007144927978515625, -0.0167388916015625, 0.00804901123046875, -0.00897979736328125, -0.0155029296875, 0.038543701171875, -0.01152801513671875, -0.0274505615234375, -0.0005664825439453125, 0.040130615234375, 0.01255035400390625, -0.029541015625, 0.0023956298828125, 0.0034770965576171875, 0.0350341796875, -0.004306793212890625, 0.051666259765625, 0.0206298828125, -0.0203857421875, 0.07611083984375, 0.01282501220703125, -0.0079193115234375, -0.0178680419921875, -0.004039764404296875, 0.0093994140625, 0.00027942657470703125, -0.0108795166015625, 0.0118408203125, 0.037933349609375, 0.01357269287109375, -0.02105712890625, 0.0150146484375, -0.0129547119140625, 0.009735107421875, 0.010589599609375, -0.0235595703125, -0.032257080078125, -0.01091766357421875, 0.018463134765625, -0.00838470458984375, 0.022003173828125, 0.0162353515625, -0.00751495361328125, 0.020751953125, -0.003704071044921875, -0.005649566650390625, 0.000027298927307128906, 0.017303466796875, -0.026702880859375, 0.0240631103515625, -0.005077362060546875, -0.015716552734375, -0.0275421142578125, -0.01473236083984375, 0.08880615234375, 0.01959228515625, -0.033477783203125, 0.0190582275390625, -0.032257080078125, -0.0059356689453125, 0.010040283203125, -0.00390625, 0.03851318359375, 0.01337432861328125, -0.011138916015625, -0.022186279296875, -0.06243896484375, 0.0100860595703125, -0.044769287109375, -0.03509521484375, -0.0278778076171875, -0.0208587646484375, 0.0253753662109375, 0.000009715557098388672, -0.050750732421875, 0.0239410400390625, 0.0029850006103515625, 0.0587158203125, 0.046722412109375, -0.0249481201171875, 0.0048828125, 0.031494140625, 0.030670166015625, -0.08746337890625, 0.016693115234375, -0.0274658203125, -0.01092529296875, -0.03436279296875, 0.0283660888671875, -0.032440185546875, -0.040557861328125, 0.08416748046875, -0.011505126953125, -0.00447845458984375, 0.033966064453125, -0.02618408203125, -0.0621337890625, -0.02215576171875, 0.00991058349609375, 0.018585205078125, -0.03741455078125, 0.0042266845703125, -0.0240478515625, -0.01195526123046875, 0.00698089599609375, -0.0060577392578125, -0.0187530517578125, 0.0012111663818359375, 0.0010309219360351562, 0.014801025390625, -0.049163818359375, -0.0231781005859375, 0.006999969482421875, 0.04522705078125, -0.0528564453125, -0.035369873046875, 0.05419921875, -0.0343017578125, 0.04034423828125, -0.035736083984375, -0.00910186767578125, -0.070068359375, 0.0254058837890625, 0.0234222412109375, 0.0245513916015625, -0.033050537109375, -0.03607177734375, -0.06256103515625, -0.038604736328125, -0.047576904296875, -0.0267486572265625, -0.07122802734375, 0.0347900390625, 0.02508544921875, 0.00909423828125, -0.016082763671875, -0.0452880859375, -0.030303955078125, 0.019683837890625, 0.039642333984375, 0.0027790069580078125, 0.0083465576171875, 0.01470947265625, -0.0036907196044921875, 0.0635986328125, 0.01629638671875, 0.00787353515625, -0.018890380859375, -0.043121337890625, 0.03314208984375, 0.02093505859375, -0.01983642578125, -0.01898193359375, -0.0191497802734375, -0.055755615234375, 0.045623779296875, -0.0257415771484375, -0.00795745849609375, -0.02880859375, 0.004772186279296875, -0.0294189453125, 0.0361328125, -0.04931640625, -0.01436614990234375, -0.0160675048828125, -0.048736572265625, -0.018707275390625, 0.01255035400390625, 0.05560302734375, -0.046722412109375, -0.021820068359375, -0.050323486328125, 0.018585205078125, -0.035980224609375, 0.03839111328125, 0.07611083984375, -0.0250396728515625, 0.033050537109375, 0.044708251953125, -0.0003695487976074219, 0.0584716796875, 0.0020694732666015625, -0.007335662841796875, -0.0199432373046875, 0.0386962890625, 0.0193023681640625, 0.0034770965576171875, 0.02008056640625, -0.0173187255859375, -0.0016613006591796875, 0.041351318359375, 0.055419921875, -0.03924560546875, -0.0043182373046875, 0.033599853515625, -0.047088623046875, -0.022735595703125, 0.00681304931640625, -0.0262451171875, -0.053558349609375, 0.0462646484375, -0.06915283203125, -0.01263427734375, -0.0005068778991699219, -0.0205078125, -0.0183258056640625, -0.0185089111328125, 0.031463623046875, 0.0277557373046875, -0.0016489028930664062, -0.0055999755859375, 0.01226806640625, 0.007205963134765625, 0.004802703857421875, 0.0018701553344726562, 0.00603485107421875, -0.0259552001953125, -0.060333251953125, -0.020599365234375, -0.02642822265625, -0.039337158203125, -0.00884246826171875, -0.0144500732421875, 0.049468994140625, 0.0253448486328125, 0.0066680908203125, -0.01434326171875, -0.0124053955078125, 0.031951904296875, -0.0032749176025390625, 0.0022220611572265625, 0.00506591796875, -0.00830078125, -0.037933349609375, 0.0092010498046875, -0.052764892578125, 0.00559234619140625, -0.0268402099609375, -0.018310546875, 0.08062744140625, 0.02142333984375, -0.0426025390625, 0.03240966796875, 0.0154571533203125, -0.055328369140625, -0.007694244384765625, 0.0005350112915039062, -0.0379638671875, 0.00974273681640625, -0.005672454833984375, -0.0019969940185546875, -0.00028133392333984375, -0.0033397674560546875, -0.0084228515625, 0.049163818359375, -0.0224151611328125, -0.0186309814453125, 0.037994384765625, 0.0282135009765625, -0.047607421875, 0.00421905517578125, 0.00341796875, 0.03887939453125, -0.04443359375, 0.044769287109375, -0.03668212890625, -0.0017080307006835938, 0.0214996337890625, 0.0469970703125, 0.04559326171875, -0.00966644287109375, -0.046661376953125, 0.0243072509765625, 0.1258544921875, 0.11297607421875, 0.08917236328125, 0.0223388671875, -0.03662109375, 0.015777587890625, -0.00806427001953125, -0.0716552734375, 0.01215362548828125, -0.03289794921875, -0.0310516357421875, -0.0017042160034179688, 0.041748046875, 0.042999267578125, 0.00617218017578125, 0.047393798828125, -0.0243988037109375, 0.00806427001953125, 0.03411865234375, 0.01056671142578125, 0.026947021484375, -0.02490234375, -0.023406982421875, 0.034942626953125, 0.06103515625, -0.005046844482421875, 0.032196044921875, -0.01253509521484375, -0.0276031494140625, 0.048614501953125, 0.02001953125, -0.01430511474609375, 0.006557464599609375, -0.01084136962890625, 0.001224517822265625, 0.005458831787109375, 0.042724609375, 0.0229034423828125, 0.030609130859375, -0.01247406005859375, 0.0147247314453125, 0.0005202293395996094, 0.0382080078125, -0.030670166015625, -0.030792236328125, -0.0040130615234375, -0.034637451171875, 0.0029144287109375, -0.045318603515625, -0.0157470703125, 0.036163330078125, 0.03765869140625, -0.025482177734375, 0.00426483154296875, 0.01085662841796875, 0.0010271072387695312, 0.017974853515625, 0.044708251953125, -0.03704833984375, 0.01189422607421875, -0.0228729248046875, 0.0289154052734375, 0.0196533203125, 0.001087188720703125, -0.027374267578125, 0.048675537109375, 0.028778076171875, 0.01441192626953125, 0.03497314453125, 0.04290771484375, -0.020294189453125, -0.032989501953125, -0.0018644332885742188, -0.07708740234375, -0.018157958984375, 0.033966064453125, -0.0113677978515625, -0.004215240478515625, 0.038055419921875, 0.06353759765625, -0.025299072265625, -0.0244293212890625, 0.0819091796875, -0.002689361572265625, 0.0267333984375, -0.01861572265625, -0.0008282661437988281, 0.0052032470703125, -0.033416748046875, -0.00036787986755371094, 0.0168609619140625, 0.035003662109375, 0.035186767578125, 0.0266265869140625, 0.021636962890625, 0.0008411407470703125, 0.0256195068359375, -0.008392333984375, 0.03839111328125, 0.044403076171875, -0.0299835205078125, -0.0273284912109375, -0.00014078617095947266, 0.04449462890625, -0.005832672119140625, 0.0139312744140625, 0.0166015625, 0.0163116455078125, -0.0222930908203125, 0.004055023193359375, 0.0231781005859375, 0.00865936279296875, -0.0272369384765625, 0.009857177734375, 0.03857421875, -0.006988525390625, -0.048126220703125, -0.0504150390625, -0.03460693359375, 0.05731201171875, 0.001605987548828125, 0.0728759765625, -0.04193115234375, 0.032928466796875, -0.028533935546875, 0.005863189697265625, -0.0156097412109375, -0.022125244140625, 0.025726318359375, 0.032684326171875, 0.00563812255859375, -0.02496337890625, -0.05816650390625, 0.037750244140625, 0.009857177734375, -0.0079345703125, 0.045654296875, -0.04193115234375, 0.00948333740234375, -0.018280029296875, -0.01751708984375, -0.047576904296875, -0.05694580078125, -0.037017822265625, 0.0169677734375, -0.018341064453125, -0.004261016845703125, -0.03668212890625, 0.01422119140625, 0.016693115234375, 0.006008148193359375, -0.0200653076171875, 0.029327392578125, -0.04962158203125, 0.02972412109375, 0.0034923553466796875, -0.0260772705078125, 0.03680419921875, -0.01042938232421875, 0.0019483566284179688, 0.0209808349609375, 0.027923583984375, 0.013427734375, -0.052520751953125, -0.0117034912109375, 0.019683837890625, -0.00815582275390625, -0.06353759765625, -0.0057525634765625, 0.05633544921875, -0.01090240478515625, -0.006175994873046875, -0.0005459785461425781, -0.0204620361328125, -0.0026645660400390625, -0.0210723876953125, 0.0017948150634765625, 0.009765625, -0.0540771484375, -0.01314544677734375, -0.002330780029296875, 0.03314208984375, 0.015716552734375, -0.05706787109375, 0.0364990234375, -0.017822265625, 0.0114898681640625, -0.019805908203125, -0.0223236083984375, -0.012115478515625, 0.0017976760864257812, -0.0535888671875, -0.06494140625, -0.0567626953125, 0.03924560546875, -0.070556640625, -0.004322052001953125, 0.01116943359375, -0.0009698867797851562, 0.0220489501953125, -0.024658203125, -0.0084075927734375, 0.017608642578125, -0.0156707763671875, -0.01338958740234375, 0.0162506103515625, 0.00392913818359375, -0.0438232421875, -0.0236968994140625, 0.034820556640625, -0.025909423828125, -0.031829833984375, -0.0411376953125, 0.027191162109375, 0.030242919921875, -0.031494140625, -0.05316162109375, 0.01450347900390625, -0.0157470703125, -0.02239990234375, -0.055908203125, 0.0024089813232421875, -0.00801849365234375, -0.01216888427734375, -0.0066070556640625, -0.05096435546875, -0.0284576416015625, 0.04595947265625, 0.009002685546875, 0.068359375, -0.0034027099609375, 0.00531768798828125, 0.050201416015625, 0.032012939453125, 0.035675048828125, 0.032989501953125, -0.039398193359375, 0.0133819580078125, 0.0143890380859375, 0.059112548828125, 0.01317596435546875, -0.015869140625, 0.024932861328125, -0.051116943359375, 0.0032806396484375, -0.00946807861328125, -0.01479339599609375, -0.023956298828125, 0.03814697265625, 0.018890380859375, 0.01473236083984375, -0.006069183349609375, -0.03839111328125, -0.0179443359375, -0.0125274658203125, -0.0270843505859375, 0.00955963134765625, -0.07586669921875, -0.0173797607421875, -0.012420654296875, 0.00870513916015625, 0.029541015625, -0.018890380859375, 0.003749847412109375, -0.01338958740234375, 0.0269317626953125, 0.0018482208251953125, -0.045166015625, -0.033203125, 0.08502197265625, -0.03570556640625, -0.006988525390625, 0.0299530029296875, 0.01255035400390625, 0.039337158203125, 0.06817626953125, 0.046661376953125, 0.008819580078125, -0.030853271484375, 0.0134124755859375, 0.021820068359375, -0.032928466796875, 0.005092620849609375, -0.042266845703125, -0.01041412353515625, 0.0119476318359375, 0.01296234130859375, 0.032989501953125, -0.00469207763671875, -0.016845703125, 0.0184478759765625, -0.01372528076171875, 0.01003265380859375, 0.040283203125, -0.00595855712890625, 0.050079345703125, -0.0592041015625, -0.0235748291015625, -0.0290374755859375, -0.058746337890625, 0.016815185546875, 0.0217742919921875, 0.03802490234375, -0.01104736328125, -0.001941680908203125, 0.0238494873046875, 0.01824951171875, -0.0020656585693359375 ]
3a67c76d464c52821f24f32d66dabef26feb29fa
Wordpress Stackexchange Q: Organize uploads by year, month and day As of now my uploaded files are organized by year and month. But I would like to organize them by year, month and day. I mean like this 2012/10/30/image goes here PS: There is a plugin available to do this. But I don't want to use a plugin for this simple task. Thanks A: As far as I can tell, the filter 'upload_dir' is only called once in wp-includes\functions.php I find this solution to be much simpler. It will place all uploads into the year/month/day directory for the date it is uploaded. function upload_dir_filter($uploads){ $day = date('d'); $uploads['path'] .= '/' . $day; $uploads['url'] .= '/' . $day; return $uploads; } add_filter('upload_dir', 'upload_dir_filter');
Q: Organize uploads by year, month and day As of now my uploaded files are organized by year and month. But I would like to organize them by year, month and day. I mean like this 2012/10/30/image goes here PS: There is a plugin available to do this. But I don't want to use a plugin for this simple task. Thanks A: As far as I can tell, the filter 'upload_dir' is only called once in wp-includes\functions.php I find this solution to be much simpler. It will place all uploads into the year/month/day directory for the date it is uploaded. function upload_dir_filter($uploads){ $day = date('d'); $uploads['path'] .= '/' . $day; $uploads['url'] .= '/' . $day; return $uploads; } add_filter('upload_dir', 'upload_dir_filter'); A: Code based in other Answer of mine and this SO Answer. It uses the post/page/cpt publish date to build the paths. Note that $the_post->post_date_gmt is also available. add_filter('wp_handle_upload_prefilter', 'wpse_70946_handle_upload_prefilter'); add_filter('wp_handle_upload', 'wpse_70946_handle_upload'); function wpse_70946_handle_upload_prefilter( $file ) { add_filter('upload_dir', 'wpse_70946_custom_upload_dir'); return $file; } function wpse_70946_handle_upload( $fileinfo ) { remove_filter('upload_dir', 'wpse_70946_custom_upload_dir'); return $fileinfo; } function wpse_70946_custom_upload_dir($path) { /* * Determines if uploading from inside a post/page/cpt - if not, default Upload folder is used */ $use_default_dir = ( isset($_REQUEST['post_id'] ) && $_REQUEST['post_id'] == 0 ) ? true : false; if( !empty( $path['error'] ) || $use_default_dir ) return $path; // Error: not uploading from a post/page/cpt $the_post = get_post( $_REQUEST['post_id'] ); $y = date( 'Y', strtotime( $the_post->post_date ) ); $m = date( 'm', strtotime( $the_post->post_date ) ); $d = date( 'd', strtotime( $the_post->post_date ) ); $customdir = '/' . $y . '/' . $m . '/' . $d; $path['path'] = str_replace($path['subdir'], '', $path['path']); //remove default subdir (year/month) $path['url'] = str_replace($path['subdir'], '', $path['url']); $path['subdir'] = $customdir; $path['path'] .= $customdir; $path['url'] .= $customdir; return $path; } A: I have made a new code out of these 2 code. The images will be uploaded to the post date folder not the uploaded date folder: function upload_dir_filter($uploads){ $the_post = get_post( $_REQUEST['post_id'] ); $y = date( 'Y', strtotime( $the_post->post_date ) ); $m = date( 'm', strtotime( $the_post->post_date ) ); $day = date( 'd', strtotime( $the_post->post_date ) ); $uploads['path'] .= '/' . $day; $uploads['url'] .= '/' . $day; return $uploads; } add_filter('upload_dir', 'upload_dir_filter');
wordpress
{ "language": "en", "length": 364, "provenance": "stackexchange_00019.jsonl.gz:425317", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70946" }
[ 0.035400390625, -0.0032138824462890625, -0.076416015625, -0.0706787109375, 0.036041259765625, -0.0457763671875, 0.034881591796875, 0.050079345703125, 0.06695556640625, 0.026885986328125, -0.004550933837890625, -0.0160675048828125, -0.0091552734375, -0.0228424072265625, -0.060455322265625, -0.006961822509765625, 0.018157958984375, -0.01389312744140625, 0.0094146728515625, -0.003429412841796875, -0.00836944580078125, 0.00905609130859375, 0.03167724609375, -0.0097198486328125, 0.0209808349609375, -0.0031414031982421875, 0.02606201171875, -0.0144195556640625, 0.01029205322265625, -0.0290069580078125, 0.007526397705078125, -0.0150909423828125, 0.00749969482421875, -0.0131988525390625, 0.0550537109375, 0.0955810546875, 0.0231475830078125, 0.0007491111755371094, 0.057952880859375, 0.0006079673767089844, 0.012908935546875, 0.00038743019104003906, 0.045257568359375, -0.0171966552734375, 0.01052093505859375, -0.0288543701171875, 0.03143310546875, -0.007556915283203125, 0.0202484130859375, -0.00749969482421875, 0.0031833648681640625, 0.00505828857421875, 0.0182342529296875, -0.005496978759765625, -0.0186614990234375, -0.01177215576171875, -0.0082855224609375, 0.00860595703125, 0.0305328369140625, -0.011566162109375, -0.0254974365234375, -0.006763458251953125, 0.0111541748046875, -0.00676727294921875, -0.029388427734375, -0.0008373260498046875, -0.01129913330078125, 0.005035400390625, -0.06854248046875, -0.050628662109375, 0.039337158203125, -0.033843994140625, 0.0014734268188476562, -0.042388916015625, 0.020477294921875, 0.02557373046875, -0.026641845703125, -0.0313720703125, 0.040618896484375, -0.0247344970703125, 0.01309967041015625, -0.0028820037841796875, -0.0164337158203125, -0.022552490234375, 0.014312744140625, -0.007770538330078125, 0.0033283233642578125, -0.00688934326171875, -0.0217437744140625, -0.00044035911560058594, -0.03436279296875, 0.0218505859375, -0.01470184326171875, -0.0239105224609375, -0.033935546875, -0.01390838623046875, 0.035491943359375, 0.05133056640625, -0.0257568359375, -0.014129638671875, -0.040008544921875, -0.01206207275390625, -0.0289459228515625, -0.01007843017578125, 0.023681640625, 0.032867431640625, 0.01079559326171875, -0.027618408203125, 0.032318115234375, 0.0006508827209472656, -0.0055999755859375, 0.06591796875, -0.0105743408203125, -0.03790283203125, 0.01885986328125, 0.0335693359375, -0.004878997802734375, 0.01374053955078125, 0.0080413818359375, -0.00037407875061035156, 0.0132904052734375, 0.035980224609375, -0.0333251953125, -0.060699462890625, 0.033782958984375, -0.0128021240234375, -0.04345703125, 0.00141143798828125, 0.038665771484375, 0.01593017578125, -0.0179595947265625, 0.0330810546875, 0.01214599609375, -0.059844970703125, -0.03143310546875, 0.0009241104125976562, 0.029205322265625, -0.0291595458984375, -0.0259857177734375, 0.0256805419921875, 0.01055145263671875, -0.02398681640625, -0.0282440185546875, -0.014678955078125, -0.036346435546875, 0.03466796875, 0.0175933837890625, 0.00499725341796875, -0.017486572265625, -0.056976318359375, -0.0236053466796875, -0.0168609619140625, 0.02349853515625, 0.0009007453918457031, -0.033599853515625, -0.0198211669921875, -0.01318359375, -0.0165863037109375, 0.001750946044921875, -0.038360595703125, 0.03411865234375, 0.0056915283203125, -0.016357421875, -0.044952392578125, -0.039703369140625, -0.0216217041015625, -0.051544189453125, 0.006198883056640625, 0.0230560302734375, -0.033355712890625, 0.0316162109375, 0.002658843994140625, 0.046356201171875, -0.015899658203125, -0.02362060546875, 0.003810882568359375, 0.02947998046875, -0.025299072265625, -0.004421234130859375, 0.058197021484375, -0.00170135498046875, -0.01395416259765625, 0.00390625, 0.0007104873657226562, -0.047393798828125, -0.006290435791015625, 0.004436492919921875, -0.018524169921875, 0.0114593505859375, -0.00789642333984375, 0.07623291015625, 0.03436279296875, -0.0679931640625, -0.0007486343383789062, -0.00772857666015625, 0.03961181640625, 0.00479888916015625, 0.0450439453125, 0.0025768280029296875, -0.0352783203125, -0.00665283203125, 0.004283905029296875, -0.0079498291015625, 0.044342041015625, -0.0182037353515625, 0.0004372596740722656, -0.0146636962890625, 0.00408172607421875, -0.0313720703125, -0.02069091796875, 0.041717529296875, 0.0085601806640625, -0.0445556640625, -0.0196533203125, -0.0010576248168945312, 0.06475830078125, -0.0035037994384765625, 0.005138397216796875, -0.019256591796875, 0.018707275390625, -0.0142364501953125, -0.0173187255859375, -0.0160369873046875, 0.03167724609375, 0.036651611328125, -0.0028705596923828125, -0.018829345703125, -0.0133819580078125, 0.017578125, 0.0160980224609375, -0.0404052734375, 0.0295562744140625, -0.0087432861328125, 0.04095458984375, -0.009674072265625, -0.0199127197265625, -0.0282440185546875, -0.07427978515625, 0.025146484375, 0.040771484375, 0.037628173828125, 0.047607421875, 0.07177734375, 0.09295654296875, 0.054962158203125, -0.072998046875, 0.0118408203125, 0.01064300537109375, -0.00891876220703125, 0.06671142578125, 0.0095672607421875, 0.02569580078125, -0.003658294677734375, -0.040618896484375, -0.0305938720703125, 0.04730224609375, -0.031158447265625, -0.05267333984375, 0.0210418701171875, -0.0052947998046875, 0.0182037353515625, -0.042694091796875, -0.0296478271484375, -0.01458740234375, 0.0119476318359375, 0.00785064697265625, 0.03997802734375, 0.039703369140625, -0.010162353515625, 0.00957489013671875, 0.00399017333984375, -0.037750244140625, 0.00807952880859375, 0.01338958740234375, 0.003658294677734375, -0.027313232421875, -0.030029296875, -0.005558013916015625, 0.00925445556640625, -0.003082275390625, -0.0102386474609375, -0.005035400390625, 0.015655517578125, 0.00525665283203125, -0.0037631988525390625, -0.02020263671875, 0.05401611328125, 0.03192138671875, -0.01087188720703125, -0.00007104873657226562, 0.0330810546875, 0.033599853515625, -0.0045928955078125, 0.01116180419921875, 0.0027008056640625, -0.000060617923736572266, -0.00502777099609375, 0.01488494873046875, -0.0091552734375, -0.0090484619140625, 0.0102386474609375, 0.033294677734375, -0.0008149147033691406, -0.010009765625, -0.005596160888671875, 0.0082550048828125, 0.006641387939453125, 0.00982666015625, -0.0181732177734375, 0.0009012222290039062, -0.07177734375, -0.0262908935546875, 0.01342010498046875, -0.0026035308837890625, -0.003856658935546875, -0.03533935546875, -0.021728515625, -0.006908416748046875, -0.08111572265625, -0.062469482421875, -0.044952392578125, -0.0843505859375, 0.059539794921875, 0.0194244384765625, -0.0284271240234375, -0.037750244140625, 0.07763671875, 0.036346435546875, -0.015869140625, -0.001995086669921875, 0.0090179443359375, 0.01036834716796875, -0.010528564453125, 0.032073974609375, 0.00530242919921875, 0.008819580078125, -0.01556396484375, 0.07098388671875, -0.0035152435302734375, -0.07086181640625, -0.03265380859375, 0.0226898193359375, 0.0034618377685546875, 0.01450347900390625, 0.0263519287109375, -0.031463623046875, 0.0294952392578125, -0.005573272705078125, 0.0504150390625, 0.0712890625, -0.0594482421875, 0.00980377197265625, -0.0338134765625, -0.045440673828125, -0.0270538330078125, 0.03875732421875, 0.0406494140625, -0.021636962890625, -0.0017099380493164062, -0.062744140625, 0.04345703125, -0.0306396484375, -0.01422119140625, -0.011260986328125, -0.01375579833984375, -0.016693115234375, -0.0296173095703125, 0.0027408599853515625, -0.0023326873779296875, -0.00016951560974121094, -0.033935546875, -0.0261688232421875, 0.004241943359375, 0.0169525146484375, 0.0151824951171875, 0.0285491943359375, 0.01221466064453125, -0.0206298828125, 0.0114288330078125, -0.005748748779296875, -0.014923095703125, -0.031280517578125, 0.0024700164794921875, -0.06658935546875, -0.062469482421875, 0.06414794921875, -0.0267791748046875, -0.0361328125, -0.06243896484375, -0.038177490234375, -0.01555633544921875, 0.078857421875, -0.057037353515625, -0.0123748779296875, 0.01261138916015625, 0.0203857421875, -0.041107177734375, -0.0268402099609375, -0.045013427734375, -0.0035762786865234375, -0.038665771484375, 0.0192718505859375, -0.0171051025390625, 0.0037021636962890625, 0.00287628173828125, -0.06341552734375, -0.0092315673828125, -0.036712646484375, 0.04180908203125, 0.0172271728515625, 0.0030727386474609375, 0.0225982666015625, 0.0114593505859375, 0.00588226318359375, -0.0250091552734375, 0.010162353515625, -0.0926513671875, -0.02130126953125, 0.0078277587890625, 0.06341552734375, -0.0155792236328125, 0.022857666015625, -0.050140380859375, 0.048980712890625, -0.00400543212890625, 0.0068817138671875, 0.02166748046875, 0.007465362548828125, 0.0202484130859375, -0.00400543212890625, 0.020782470703125, -0.0256195068359375, 0.00684356689453125, -0.07916259765625, -0.058349609375, -0.040679931640625, -0.035400390625, 0.073486328125, -0.035797119140625, 0.0143585205078125, -0.00487518310546875, -0.006877899169921875, -0.07342529296875, 0.0140228271484375, -0.042938232421875, -0.00952911376953125, -0.0167236328125, -0.033477783203125, 0.06146240234375, 0.0200042724609375, 0.0113372802734375, 0.0041961669921875, 0.070556640625, 0.0015211105346679688, -0.04486083984375, -0.0928955078125, -0.002452850341796875, 0.0333251953125, -0.0289306640625, 0.039337158203125, 0.0130157470703125, -0.029327392578125, 0.054840087890625, -0.0295257568359375, -0.00536346435546875, -0.028594970703125, 0.046600341796875, -0.0008120536804199219, -0.0196075439453125, 0.00833892822265625, -0.023773193359375, 0.03900146484375, 0.008209228515625, -0.0389404296875, 0.01837158203125, 0.0015344619750976562, 0.052459716796875, -0.0155181884765625, 0.0074005126953125, -0.050445556640625, -0.07037353515625, 0.035125732421875, -0.07080078125, 0.01451873779296875, -0.0028553009033203125, -0.01273345947265625, 0.021484375, 0.0156402587890625, 0.014892578125, 0.00771331787109375, 0.035675048828125, -0.025665283203125, 0.034942626953125, 0.026275634765625, 0.004425048828125, -0.00914764404296875, 0.00879669189453125, -0.0037631988525390625, 0.030029296875, 0.0026874542236328125, -0.0009822845458984375, -0.004413604736328125, -0.0143280029296875, -0.0305633544921875, -0.07891845703125, 0.0341796875, 0.059722900390625, 0.0170135498046875, 0.028350830078125, -0.0535888671875, 0.039947509765625, -0.026458740234375, 0.016876220703125, 0.01837158203125, -0.034942626953125, -0.004573822021484375, -0.027862548828125, -0.0040435791015625, -0.041961669921875, 0.0114593505859375, 0.01369476318359375, 0.0192413330078125, 0.033447265625, 0.034698486328125, -0.059173583984375, -0.01214599609375, 0.028045654296875, 0.0033054351806640625, -0.01360321044921875, 0.0231781005859375, 0.0188446044921875, -0.00971221923828125, -0.01163482666015625, -0.01250457763671875, 0.038970947265625, 0.02410888671875, -0.0149383544921875, -0.01532745361328125, 0.004787445068359375, 0.005657196044921875, -0.0249481201171875, -0.039642333984375, 0.0126800537109375, 0.0211029052734375, -0.025146484375, 0.0003132820129394531, -0.060028076171875, -0.023345947265625, 0.0280303955078125, -0.044830322265625, -0.01157379150390625, -0.0018625259399414062, -0.01407623291015625, -0.0219268798828125, 0.013671875, -0.060546875, -0.0221710205078125, -0.0289306640625, -0.009979248046875, 0.0863037109375, -0.0447998046875, 0.0176849365234375, -0.0167999267578125, 0.01450347900390625, 0.014495849609375, 0.0226593017578125, 0.0183258056640625, 0.0031185150146484375, -0.06768798828125, -0.01561737060546875, -0.0501708984375, -0.03179931640625, -0.02667236328125, -0.000579833984375, -0.050384521484375, -0.0015354156494140625, -0.02032470703125, 0.016510009765625, -0.01806640625, 0.0268707275390625, 0.0185089111328125, 0.021331787109375, -0.0283203125, 0.0227813720703125, -0.005779266357421875, 0.05975341796875, -0.0008034706115722656, 0.0169219970703125, 0.01381683349609375, 0.0212554931640625, -0.0301361083984375, -0.0046234130859375, -0.0003459453582763672, -0.053070068359375, -0.048095703125, -0.002452850341796875, -0.0416259765625, 0.0418701171875, 0.033905029296875, -0.00146484375, 0.018310546875, -0.03271484375, -0.0022335052490234375, -0.034271240234375, 0.031219482421875, -0.055389404296875, 0.0302734375, -0.0399169921875, 0.00792694091796875, 0.0399169921875, -0.012725830078125, 0.01276397705078125, 0.02142333984375, -0.0147247314453125, 0.05401611328125, -0.0265045166015625, 0.0002048015594482422, 0.024322509765625, 0.011627197265625, 0.014556884765625, 0.032257080078125, 0.00688934326171875, 0.039459228515625, -0.0033855438232421875, -0.0302581787109375, 0.0638427734375, 0.037750244140625, 0.09027099609375, -0.0128021240234375, -0.01358795166015625, 0.0572509765625, -0.04168701171875, -0.0013580322265625, 0.0040130615234375, 0.01026153564453125, -0.01351165771484375, -0.0011758804321289062, -0.01451873779296875, -0.0134429931640625, 0.0267791748046875, -0.00774383544921875, 0.01861572265625, 0.02618408203125, 0.035980224609375, -0.01445770263671875, -0.01715087890625, 0.00926971435546875, 0.0003459453582763672, -0.005855560302734375, 0.01515960693359375, 0.046051025390625, -0.00350189208984375, -0.0294952392578125, -0.0743408203125, 0.01255035400390625, -0.0517578125, 0.0111083984375, 0.0263519287109375, -0.038055419921875, 0.01068115234375, -0.039093017578125, -0.014678955078125, -0.0152740478515625, -0.0086212158203125, -0.007541656494140625, -0.033843994140625, 0.0548095703125, 0.037322998046875, -0.0049285888671875, -0.034515380859375, 0.0263214111328125, 0.0163116455078125, 0.0074005126953125, -0.0269775390625, 0.002925872802734375, -0.0188751220703125, -0.007305145263671875, 0.0008196830749511719, -0.0232391357421875, -0.0283660888671875, 0.0169219970703125, -0.010650634765625, 0.010345458984375, -0.030364990234375, -0.021728515625, 0.0227813720703125, -0.02020263671875, 0.010284423828125, -0.005176544189453125, 0.019012451171875, -0.0706787109375, -0.043182373046875, 0.004741668701171875, -0.034271240234375, 0.0177001953125, 0.0015306472778320312, -0.046539306640625, 0.0869140625, -0.01171875, 0.02484130859375, 0.0065155029296875, 0.033782958984375, -0.015594482421875, 0.0220489501953125, -0.04888916015625, 0.0265655517578125, -0.01303863525390625, 0.0038909912109375, -0.078369140625, 0.00861358642578125, -0.0419921875, 0.01050567626953125, 0.0853271484375, -0.0006556510925292969, -0.033660888671875, -0.006603240966796875, 0.10150146484375, 0.0621337890625, 0.01026153564453125, 0.0302276611328125, -0.006778717041015625, -0.02301025390625, -0.00982666015625, 0.0176544189453125, 0.0322265625, -0.021759033203125, -0.05279541015625, 0.0229949951171875, 0.016265869140625, 0.01358795166015625, -0.03973388671875, -0.0013484954833984375, -0.0162506103515625, -0.012298583984375, 0.0219573974609375, 0.022979736328125, 0.01232147216796875, 0.0203704833984375, 0.02593994140625, -0.08526611328125, -0.05828857421875, -0.01345062255859375, 0.03192138671875, -0.0066680908203125, 0.017181396484375, 0.0250701904296875, 0.022552490234375, -0.0262908935546875, -0.00786590576171875, 0.004512786865234375, 0.00652313232421875, -0.0211944580078125, 0.03759765625, 0.004451751708984375, 0.0162353515625, -0.044281005859375, -0.04290771484375, 0.040985107421875, 0.05511474609375, -0.019805908203125, -0.052886962890625, 0.021240234375, -0.006725311279296875, -0.003509521484375, 0.00034046173095703125, -0.033233642578125, -0.056549072265625, 0.0101165771484375, -0.01214599609375, -0.01551055908203125, 0.0038909912109375, 0.023223876953125, 0.018524169921875, 0.03173828125, -0.0246734619140625, 0.005031585693359375, -0.052764892578125, 0.0389404296875, 0.0291290283203125, 0.0170440673828125, -0.024505615234375, 0.07977294921875, 0.0287017822265625, 0.00203704833984375, 0.0178680419921875, 0.0008363723754882812, -0.0189056396484375, -0.0235595703125, -0.007572174072265625, -0.05169677734375, -0.012664794921875, 0.03009033203125, 0.01126861572265625, 0.0283966064453125, 0.0298614501953125, -0.01537322998046875, -0.04742431640625, 0.006500244140625, 0.024810791015625, -0.039154052734375, -0.031585693359375, -0.0362548828125, 0.00974273681640625, 0.0452880859375, 0.01502227783203125, 0.01154327392578125, -0.0136260986328125, 0.06585693359375, -0.04620361328125, 0.01425933837890625, -0.0232086181640625, -0.040863037109375, 0.015289306640625, -0.041259765625, 0.05615234375, -0.05120849609375, -0.0254974365234375, -0.002979278564453125, -0.052215576171875, -0.04107666015625, 0.0285186767578125, 0.04803466796875, 0.012725830078125, -0.00823211669921875, 0.031707763671875, -0.024932861328125, 0.0016994476318359375, 0.00846099853515625, 0.018798828125, 0.0286102294921875, 0.019073486328125, 0.01922607421875, -0.043182373046875, -0.0178680419921875, -0.041961669921875, 0.0234375, 0.04248046875, 0.043609619140625, 0.01264190673828125, 0.045379638671875, 0.03570556640625, -0.02496337890625, 0.003459930419921875, 0.0301361083984375, 0.043212890625, -0.0233917236328125, -0.0216217041015625, -0.0267791748046875, 0.030029296875, -0.050201416015625, 0.0478515625, -0.06658935546875, -0.06646728515625, -0.01050567626953125, 0.035400390625, 0.0306243896484375, 0.02398681640625, -0.01038360595703125, 0.007686614990234375, 0.0088958740234375, -0.006656646728515625, 0.0243072509765625, 0.0226287841796875, 0.0016374588012695312, 0.009674072265625, 0.004669189453125, -0.016998291015625, 0.03009033203125, -0.0019283294677734375, 0.026947021484375, 0.017822265625, -0.0045623779296875, -0.039947509765625, -0.01111602783203125, -0.018951416015625, -0.007434844970703125, -0.000614166259765625, 0.04278564453125, -0.0117034912109375, 0.00882720947265625, -0.0305633544921875, 0.021087646484375, 0.04046630859375, -0.006076812744140625, 0.024749755859375, -0.0008640289306640625, -0.0181732177734375, -0.003345489501953125, -0.0162353515625, -0.0189056396484375, -0.0310211181640625, 0.01152801513671875, 0.0081939697265625, 0.0239410400390625, -0.027252197265625, -0.01137542724609375, -0.00634765625, 0.00905609130859375, 0.00615692138671875, -0.0312042236328125, 0.006244659423828125, -0.020416259765625, 0.0219573974609375, -0.017730712890625, 0.0016040802001953125, -0.026214599609375, -0.019378662109375, -0.0124359130859375, -0.01534271240234375, -0.055267333984375, 0.043914794921875, 0.0029296875, 0.006908416748046875, -0.007610321044921875, -0.004314422607421875, 0.0192413330078125, 0.020111083984375, 0.0019168853759765625, 0.058380126953125, -0.014068603515625, -0.027923583984375, -0.00386810302734375, 0.01000213623046875, 0.007373809814453125, -0.01346588134765625, 0.0093231201171875, -0.01160430908203125, -0.014862060546875, 0.01078033447265625, -0.05047607421875, -0.031768798828125, -0.057525634765625, -0.09674072265625, 0.07989501953125, -0.00934600830078125, -0.04547119140625, -0.041046142578125, 0.061065673828125, -0.00994110107421875, 0.03265380859375, 0.00331878662109375, -0.012786865234375, 0.031951904296875, 0.0162353515625, 0.0103759765625, -0.0134429931640625, 0.01094818115234375, 0.017120361328125, -0.05316162109375, 0.0139923095703125, -0.00330352783203125, -0.02740478515625, 0.045166015625, -0.00868988037109375, 0.049346923828125, 0.04547119140625, -0.01953125, 0.04302978515625, -0.007701873779296875, -0.05902099609375, -0.006061553955078125, -0.01111602783203125, -0.053802490234375, -0.01751708984375, 0.049591064453125, 0.089111328125, 0.022430419921875, -0.032501220703125, -0.0231475830078125, -0.0068206787109375, 0.0273895263671875, -0.0097198486328125, -0.0029087066650390625, -0.0439453125, -0.0160369873046875, -0.0196990966796875, -0.0008816719055175781, -0.01389312744140625, 0.0374755859375, -0.0109710693359375, -0.0156402587890625, 0.0246124267578125, -0.0011606216430664062, -0.062744140625, 0.03466796875, 0.015350341796875, -0.0285186767578125, -0.0020465850830078125, -0.016265869140625, -0.0077056884765625, -0.0166168212890625, -0.006595611572265625, -0.031341552734375, 0.015655517578125, -0.046142578125, -0.00750732421875, 0.00027680397033691406, 0.006717681884765625, -0.0115509033203125, 0.029296875, -0.005825042724609375, -0.036529541015625, -0.008026123046875, -0.051025390625, 0.0153961181640625, -0.006877899169921875, -0.03546142578125, 0.04632568359375, 0.0221405029296875, -0.0169525146484375, -0.019561767578125, 0.0241546630859375, -0.0377197265625, -0.02020263671875, -0.0092620849609375, -0.0526123046875, 0.011627197265625, 0.0004246234893798828, 0.01189422607421875, -0.035980224609375, 0.0097198486328125, -0.063720703125, -0.0007214546203613281, 0.0022258758544921875 ]
ceeb9c4e883a43740947987be312437290ae8c97
Wordpress Stackexchange Q: How do I save data from submitted form from widget I'm looking over internet for some simple solution of email subscription widget but no luck. Or they are too complicated and paid, or they are relaying on some external email functions. I'm not a WordPress expert but know few things about WordPress. I would like to make form in widget where user enter their email address and address is written in wp database, and in back-end admin just list all emails and can select to delete email from subscribed list. When making my own widget I know how to create widget and form, I know how to add admin page and list files from database. What I don't know is where and how to save data from submitted form from widget. If anyone have any suggestion or widget that can do this please share it. In mean time I will search for solution. A: This is what you're looking for: http://codex.wordpress.org/Plugin_API/Action_Reference/init Example from Codex: add_action('init', 'process_post'); function process_post(){ if(isset($_POST['unique_hidden_field'])) { // process $_POST data here } }
Q: How do I save data from submitted form from widget I'm looking over internet for some simple solution of email subscription widget but no luck. Or they are too complicated and paid, or they are relaying on some external email functions. I'm not a WordPress expert but know few things about WordPress. I would like to make form in widget where user enter their email address and address is written in wp database, and in back-end admin just list all emails and can select to delete email from subscribed list. When making my own widget I know how to create widget and form, I know how to add admin page and list files from database. What I don't know is where and how to save data from submitted form from widget. If anyone have any suggestion or widget that can do this please share it. In mean time I will search for solution. A: This is what you're looking for: http://codex.wordpress.org/Plugin_API/Action_Reference/init Example from Codex: add_action('init', 'process_post'); function process_post(){ if(isset($_POST['unique_hidden_field'])) { // process $_POST data here } } A: Try this pluginBy using this plugin users can subscribe from anywhere in your site. http://wordpress.org/extend/plugins/newsletter/ A: Try this one, it will store data automatically, and you can export it as well http://wordpress.org/plugins/simple-subscribe/
wordpress
{ "language": "en", "length": 211, "provenance": "stackexchange_00019.jsonl.gz:425320", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/70959" }
[ 0.0305328369140625, -0.0309906005859375, -0.01042938232421875, -0.017913818359375, -0.00766754150390625, -0.037872314453125, 0.048980712890625, -0.005916595458984375, 0.053802490234375, 0.0192108154296875, -0.01302337646484375, -0.04718017578125, 0.0284423828125, -0.03631591796875, -0.0300445556640625, -0.016082763671875, 0.01690673828125, 0.0161895751953125, 0.0226287841796875, 0.00043702125549316406, 0.00792694091796875, 0.0103759765625, -0.0225372314453125, 0.013092041015625, -0.0158233642578125, 0.0478515625, 0.0113372802734375, 0.0059814453125, -0.0193634033203125, -0.00901031494140625, 0.0019311904907226562, -0.00807952880859375, 0.028839111328125, 0.00669097900390625, -0.0284881591796875, 0.02764892578125, 0.0126800537109375, -0.0035762786865234375, 0.009002685546875, 0.017913818359375, 0.036956787109375, -0.03509521484375, -0.01026153564453125, -0.0285186767578125, -0.01049041748046875, -0.033477783203125, 0.05133056640625, -0.0216827392578125, -0.0015764236450195312, 0.044769287109375, 0.006061553955078125, -0.00420379638671875, 0.00830078125, -0.0182952880859375, 0.0012044906616210938, -0.023345947265625, -0.006969451904296875, -0.0289154052734375, 0.04931640625, -0.01212310791015625, -0.042816162109375, -0.05828857421875, 0.03759765625, -0.030059814453125, -0.0002377033233642578, -0.01407623291015625, 0.007335662841796875, 0.016448974609375, 0.0015201568603515625, -0.00475311279296875, 0.01534271240234375, -0.01251983642578125, -0.00946044921875, -0.017913818359375, 0.018035888671875, 0.01064300537109375, 0.01427459716796875, 0.0252532958984375, -0.01385498046875, 0.0335693359375, 0.0219268798828125, 0.00815582275390625, -0.0205535888671875, 0.0098876953125, 0.0018939971923828125, 0.0278778076171875, -0.016937255859375, -0.02239990234375, -0.006572723388671875, -0.0222625732421875, -0.0115814208984375, -0.044281005859375, 0.0035686492919921875, -0.00823974609375, -0.01329803466796875, -0.0484619140625, -0.017425537109375, 0.0003490447998046875, 0.0009255409240722656, 0.0107269287109375, -0.00154876708984375, -0.018524169921875, 0.0006394386291503906, -0.0263519287109375, 0.0015134811401367188, 0.045379638671875, -0.0183868408203125, -0.055877685546875, -0.00608062744140625, 0.01213836669921875, -0.0123291015625, -0.0421142578125, 0.005645751953125, -0.043304443359375, -0.003902435302734375, 0.023193359375, 0.0113677978515625, 0.0176849365234375, 0.03546142578125, -0.0210113525390625, -0.00839996337890625, 0.0164642333984375, -0.0210418701171875, -0.032012939453125, 0.0253143310546875, 0.004352569580078125, -0.01251220703125, 0.0005650520324707031, 0.005527496337890625, -0.0167694091796875, -0.0517578125, 0.031005859375, 0.08544921875, 0.031402587890625, 0.03045654296875, -0.004467010498046875, 0.01531219482421875, -0.00994873046875, 0.01007080078125, 0.033355712890625, -0.00957489013671875, -0.05810546875, -0.0168914794921875, 0.009033203125, 0.02423095703125, 0.0438232421875, 0.019683837890625, -0.029327392578125, 0.00595855712890625, 0.001064300537109375, -0.0491943359375, -0.0184326171875, 0.02783203125, 0.01373291015625, 0.004192352294921875, 0.01441192626953125, 0.031280517578125, -0.01153564453125, -0.0276031494140625, -0.0168304443359375, 0.007122039794921875, -0.0282440185546875, 0.0037689208984375, -0.03631591796875, -0.0543212890625, 0.015960693359375, -0.06195068359375, -0.01122283935546875, 0.0206451416015625, -0.0238189697265625, 0.024017333984375, 0.028350830078125, -0.0042572021484375, -0.009735107421875, 0.004100799560546875, -0.0029048919677734375, -0.01496124267578125, 0.01457977294921875, 0.0183258056640625, 0.0025615692138671875, -0.0107269287109375, -0.03271484375, 0.028228759765625, 0.006130218505859375, -0.0234375, 0.0209503173828125, 0.0248260498046875, 0.07135009765625, -0.01351165771484375, 0.026031494140625, -0.006099700927734375, 0.01497650146484375, 0.002044677734375, -0.0189666748046875, 0.011444091796875, -0.03106689453125, -0.0010881423950195312, -0.011932373046875, -0.01181793212890625, 0.0037479400634765625, -0.00791168212890625, -0.0188140869140625, 0.020751953125, -0.010833740234375, -0.0289154052734375, -0.002216339111328125, -0.021514892578125, 0.0274658203125, -0.08197021484375, 0.00861358642578125, 0.05657958984375, 0.00533294677734375, -0.04296875, -0.0065765380859375, 0.021575927734375, -0.02008056640625, -0.004596710205078125, 0.05328369140625, 0.006290435791015625, 0.0628662109375, -0.0292816162109375, -0.0255126953125, -0.022216796875, -0.0182342529296875, 0.027313232421875, -0.006805419921875, -0.01374053955078125, -0.0305633544921875, 0.018798828125, -0.020416259765625, 0.0004429817199707031, 0.05084228515625, 0.007904052734375, 0.0059967041015625, -0.05609130859375, -0.010223388671875, -0.0670166015625, -0.0222015380859375, -0.0157012939453125, 0.054840087890625, 0.01013946533203125, 0.03143310546875, -0.00572967529296875, 0.0682373046875, 0.012237548828125, -0.06134033203125, -0.01157379150390625, 0.061279296875, 0.028564453125, 0.0709228515625, -0.0149993896484375, -0.0031337738037109375, 0.0058746337890625, -0.053863525390625, -0.00577545166015625, 0.034912109375, -0.002826690673828125, -0.00939178466796875, -0.0096435546875, 0.00445556640625, 0.0004673004150390625, -0.01337432861328125, -0.0172119140625, -0.00682830810546875, 0.0166015625, 0.032623291015625, 0.05364990234375, 0.049072265625, -0.0117950439453125, 0.0008845329284667969, 0.00336456298828125, -0.00690460205078125, -0.004642486572265625, 0.0011348724365234375, 0.04986572265625, 0.0196685791015625, -0.036224365234375, -0.01340484619140625, 0.0237579345703125, 0.01383209228515625, -0.00543212890625, 0.049163818359375, 0.0250091552734375, -0.021942138671875, -0.006198883056640625, -0.0019407272338867188, 0.00753021240234375, -0.034423828125, 0.039459228515625, 0.01171875, 0.03125, 0.00846099853515625, -0.02484130859375, 0.051055908203125, -0.00975799560546875, -0.035858154296875, 0.01380157470703125, 0.045074462890625, -0.01322174072265625, 0.0158538818359375, 0.05084228515625, 0.04815673828125, 0.0024204254150390625, -0.01126861572265625, -0.00951385498046875, -0.039215087890625, -0.024169921875, 0.01468658447265625, -0.0003998279571533203, -0.025665283203125, -0.0423583984375, 0.0357666015625, 0.0077056884765625, 0.052703857421875, -0.0172119140625, -0.049774169921875, -0.004085540771484375, 0.02020263671875, -0.029388427734375, -0.0244903564453125, -0.01177978515625, -0.05615234375, -0.0390625, 0.0070648193359375, -0.0367431640625, 0.0229644775390625, 0.03289794921875, 0.004039764404296875, -0.0287933349609375, 0.001049041748046875, -0.046905517578125, -0.03009033203125, -0.03558349609375, 0.0014171600341796875, -0.0241851806640625, 0.0170135498046875, 0.0036640167236328125, 0.020263671875, -0.00586700439453125, -0.060943603515625, -0.0029735565185546875, -0.0188140869140625, 0.00017452239990234375, 0.00933837890625, -0.03143310546875, -0.023162841796875, -0.0024242401123046875, 0.000339508056640625, 0.01375579833984375, -0.0205230712890625, 0.03070068359375, -0.006580352783203125, 0.010162353515625, -0.01532745361328125, 0.02777099609375, 0.0079803466796875, -0.03778076171875, -0.0177764892578125, 0.0310516357421875, -0.06060791015625, 0.03436279296875, 0.01806640625, 0.0038585662841796875, -0.040740966796875, -0.0214080810546875, -0.03619384765625, 0.0067291259765625, 0.0034427642822265625, -0.0005216598510742188, 0.0058441162109375, 0.0254058837890625, -0.00766754150390625, 0.00670623779296875, -0.0142364501953125, -0.0279083251953125, -0.0023670196533203125, 0.0650634765625, 0.0011625289916992188, -0.000514984130859375, 0.023193359375, 0.0125579833984375, 0.0036067962646484375, 0.00933837890625, -0.0232391357421875, -0.10528564453125, 0.043212890625, -0.04962158203125, -0.006328582763671875, -0.047821044921875, -0.013397216796875, 0.01117706298828125, 0.11993408203125, -0.0054931640625, -0.01611328125, -0.0048675537109375, 0.028411865234375, -0.0418701171875, -0.056976318359375, -0.01107025146484375, -0.01445770263671875, -0.040435791015625, 0.0197906494140625, -0.0165557861328125, 0.004596710205078125, -0.00646209716796875, -0.054473876953125, 0.0171661376953125, -0.047088623046875, 0.0252532958984375, -0.057708740234375, 0.04901123046875, 0.003818511962890625, 0.0268402099609375, -0.01227569580078125, 0.010040283203125, -0.06805419921875, -0.0279693603515625, 0.0067901611328125, -0.034088134765625, 0.006557464599609375, 0.007137298583984375, -0.00405120849609375, -0.01015472412109375, 0.0069580078125, -0.01177978515625, 0.036773681640625, 0.00311279296875, 0.041778564453125, -0.01270294189453125, -0.044952392578125, 0.0018291473388671875, -0.050018310546875, -0.00945281982421875, -0.0179901123046875, -0.0091400146484375, 0.0268402099609375, -0.03338623046875, 0.0008249282836914062, -0.01419830322265625, -0.01091766357421875, -0.0311126708984375, -0.02716064453125, -0.058990478515625, 0.00951385498046875, -0.05450439453125, 0.02386474609375, -0.0280914306640625, -0.0587158203125, 0.0164337158203125, -0.0111846923828125, -0.003997802734375, 0.024078369140625, 0.07061767578125, 0.015625, -0.005313873291015625, -0.072998046875, -0.03167724609375, 0.059600830078125, 0.009429931640625, -0.00772857666015625, 0.022979736328125, -0.048309326171875, 0.017822265625, 0.0478515625, 0.0109405517578125, -0.037811279296875, 0.09295654296875, 0.0255889892578125, 0.028167724609375, -0.01255035400390625, 0.01187896728515625, -0.0016574859619140625, 0.036712646484375, -0.022003173828125, 0.01558685302734375, 0.02630615234375, 0.01406097412109375, -0.05792236328125, 0.0309295654296875, -0.007110595703125, -0.017578125, -0.0013523101806640625, -0.06884765625, 0.03485107421875, 0.0220947265625, -0.00807952880859375, -0.00452423095703125, 0.0179901123046875, -0.025787353515625, -0.0012540817260742188, -0.01186370849609375, 0.0074310302734375, 0.004482269287109375, -0.0018854141235351562, -0.0285797119140625, -0.0024566650390625, -0.00799560546875, 0.00933837890625, 0.006832122802734375, -0.03131103515625, 0.0029010772705078125, -0.0166473388671875, 0.00469970703125, 0.00865936279296875, 0.0013151168823242188, 0.01103973388671875, 0.07330322265625, -0.0027599334716796875, 0.01015472412109375, 0.04248046875, 0.038299560546875, -0.0188446044921875, -0.0279541015625, -0.0037517547607421875, -0.0134429931640625, 0.0170745849609375, 0.024993896484375, -0.024871826171875, 0.0260009765625, -0.00939178466796875, 0.0859375, 0.08935546875, 0.002300262451171875, 0.010711669921875, 0.0122528076171875, -0.00501251220703125, -0.03411865234375, -0.0229644775390625, -0.0217437744140625, 0.0210418701171875, 0.01421356201171875, 0.0006699562072753906, -0.0027866363525390625, -0.01192474365234375, 0.02935791015625, -0.0255126953125, -0.0007386207580566406, -0.00945281982421875, -0.0041351318359375, -0.00882720947265625, 0.00875091552734375, 0.0123138427734375, 0.002349853515625, -0.01320648193359375, 0.01129913330078125, -0.0399169921875, -0.041259765625, -0.01910400390625, 0.036407470703125, 0.007770538330078125, -0.027679443359375, -0.044830322265625, 0.019622802734375, -0.01300811767578125, 0.0020465850830078125, -0.05059814453125, -0.0124359130859375, -0.002105712890625, 0.0191802978515625, 0.0189056396484375, -0.006557464599609375, 0.033538818359375, -0.04095458984375, 0.006175994873046875, -0.055267333984375, 0.00616455078125, 0.0096435546875, -0.01277923583984375, -0.021636962890625, -0.03857421875, -0.039886474609375, -0.009674072265625, -0.038665771484375, -0.0179290771484375, -0.0010881423950195312, 0.013031005859375, 0.018310546875, 0.03265380859375, -0.0033588409423828125, -0.045196533203125, 0.005523681640625, -0.03363037109375, 0.0010118484497070312, -0.01387786865234375, 0.006870269775390625, 0.101318359375, -0.06817626953125, 0.082763671875, -0.0139007568359375, 0.002552032470703125, -0.08575439453125, 0.0184173583984375, 0.0158843994140625, -0.03375244140625, -0.0423583984375, -0.0218505859375, -0.054290771484375, 0.0233001708984375, 0.055511474609375, -0.01403045654296875, 0.012481689453125, -0.0255584716796875, -0.006427764892578125, -0.0157623291015625, 0.050750732421875, -0.0167236328125, 0.02392578125, 0.00299835205078125, -0.0312347412109375, -0.043121337890625, -0.0056915283203125, 0.01776123046875, 0.03228759765625, -0.0170135498046875, -0.004222869873046875, -0.01349639892578125, -0.03643798828125, 0.05169677734375, 0.0232696533203125, 0.00789642333984375, 0.046295166015625, 0.00433349609375, 0.0247039794921875, 0.0175323486328125, 0.021026611328125, -0.0433349609375, -0.032806396484375, 0.0675048828125, 0.014068603515625, -0.042266845703125, 0.033233642578125, -0.036834716796875, 0.0243682861328125, 0.0445556640625, 0.0728759765625, -0.099853515625, 0.036224365234375, 0.01053619384765625, -0.004360198974609375, 0.01549530029296875, 0.00403594970703125, -0.01093292236328125, -0.0496826171875, 0.0184478759765625, 0.05389404296875, -0.004581451416015625, 0.00968170166015625, 0.0222625732421875, 0.0005888938903808594, -0.00537109375, 0.03973388671875, -0.004505157470703125, -0.026580810546875, -0.050445556640625, 0.0227203369140625, -0.037017822265625, -0.0191802978515625, 0.0011196136474609375, 0.04425048828125, -0.0223388671875, -0.09930419921875, -0.020721435546875, -0.0168609619140625, -0.0233306884765625, -0.03466796875, -0.0042572021484375, 0.10296630859375, 0.057861328125, 0.0091094970703125, -0.0146026611328125, 0.031524658203125, 0.084228515625, -0.0220489501953125, -0.006587982177734375, 0.01419830322265625, 0.0231475830078125, -0.07916259765625, 0.01512908935546875, -0.055023193359375, 0.030609130859375, -0.0122833251953125, 0.008270263671875, 0.08245849609375, -0.0194854736328125, -0.0377197265625, 0.0281524658203125, -0.01529693603515625, -0.0185546875, -0.045196533203125, -0.00707244873046875, -0.040496826171875, 0.0164031982421875, -0.054046630859375, -0.0226287841796875, 0.0078582763671875, -0.080322265625, -0.088623046875, 0.11279296875, 0.038604736328125, 0.040252685546875, -0.023345947265625, 0.03704833984375, -0.032257080078125, 0.0157470703125, -0.034271240234375, -0.000060439109802246094, -0.00980377197265625, 0.025238037109375, -0.0162353515625, 0.0164337158203125, -0.006587982177734375, -0.0008215904235839844, 0.090576171875, 0.0216217041015625, -0.01215362548828125, -0.0159454345703125, 0.0262908935546875, 0.0173797607421875, -0.04241943359375, 0.03948974609375, 0.02838134765625, 0.0161285400390625, 0.06488037109375, -0.0287322998046875, 0.023345947265625, 0.0005297660827636719, 0.021026611328125, 0.0516357421875, -0.023162841796875, -0.03369140625, -0.043548583984375, 0.038421630859375, 0.0166778564453125, -0.057861328125, -0.0171966552734375, -0.047088623046875, -0.01446533203125, 0.04193115234375, 0.0379638671875, -0.04541015625, 0.0280914306640625, -0.047119140625, 0.053558349609375, -0.004444122314453125, 0.0263671875, 0.0274200439453125, 0.019500732421875, 0.056884765625, 0.00716400146484375, 0.0110321044921875, 0.0188140869140625, 0.00435638427734375, 0.05975341796875, 0.003765106201171875, 0.0234832763671875, -0.05413818359375, -0.00897979736328125, 0.012786865234375, 0.060821533203125, -0.039794921875, -0.041046142578125, 0.0016078948974609375, 0.0191192626953125, 0.024383544921875, 0.046539306640625, 0.0836181640625, 0.00800323486328125, 0.040863037109375, -0.027374267578125, -0.034423828125, -0.00777435302734375, 0.0299835205078125, -0.0247955322265625, -0.0112152099609375, 0.0299224853515625, -0.0408935546875, -0.0109405517578125, 0.0015125274658203125, 0.005382537841796875, 0.0053863525390625, -0.0025234222412109375, 0.0213165283203125, 0.0155181884765625, 0.006092071533203125, -0.006927490234375, 0.0122528076171875, 0.03173828125, -0.0123138427734375, -0.0108489990234375, -0.00927734375, 0.0394287109375, 0.006572723388671875, -0.000732421875, 0.0545654296875, 0.06976318359375, 0.0181121826171875, -0.056976318359375, -0.0068359375, 0.0217132568359375, -0.047821044921875, 0.03765869140625, -0.0419921875, 0.00208282470703125, -0.00794219970703125, -0.01229095458984375, -0.0550537109375, 0.00511932373046875, 0.0280914306640625, -0.0247802734375, 0.0516357421875, -0.018707275390625, 0.01390838623046875, 0.079345703125, -0.03521728515625, 0.058563232421875, -0.0034503936767578125, -0.093994140625, -0.01294708251953125, -0.002262115478515625, -0.027252197265625, 0.012115478515625, 0.0347900390625, -0.04278564453125, 0.032073974609375, -0.0123748779296875, -0.0008482933044433594, 0.03057861328125, -0.02301025390625, -0.01000213623046875, 0.0200958251953125, 0.0276641845703125, -0.004718780517578125, -0.0345458984375, -0.005664825439453125, -0.0010528564453125, 0.01261138916015625, -0.023590087890625, 0.0889892578125, -0.006500244140625, -0.0023784637451171875, -0.031158447265625, 0.031524658203125, -0.041046142578125, -0.0518798828125, 0.07037353515625, -0.0031681060791015625, -0.0253143310546875, 0.0027370452880859375, -0.0040435791015625, -0.009552001953125, 0.024932861328125, -0.06475830078125, -0.0290069580078125, -0.013427734375, 0.02471923828125, 0.0054779052734375, 0.013580322265625, -0.00881195068359375, 0.0308380126953125, 0.0299072265625, -0.021453857421875, 0.054229736328125, 0.0202178955078125, 0.00620269775390625, 0.04388427734375, -0.01087188720703125, 0.0182037353515625, 0.00841522216796875, -0.02996826171875, 0.003143310546875, 0.0242767333984375, -0.05438232421875, -0.0035572052001953125, 0.0231781005859375, -0.021087646484375, 0.027618408203125, -0.00408935546875, 0.05889892578125, 0.01119232177734375, 0.0008020401000976562, -0.004955291748046875, 0.0214996337890625, 0.020233154296875, -0.024658203125, 0.0171661376953125, 0.00989532470703125, -0.00672149658203125, 0.0024166107177734375, -0.0294647216796875, -0.031341552734375, -0.056549072265625, 0.004180908203125, 0.021820068359375, -0.03277587890625, -0.040618896484375, -0.07904052734375, 0.0218353271484375, 0.0243072509765625, 0.0006709098815917969, -0.04150390625, 0.0236358642578125, -0.038482666015625, 0.027801513671875, -0.01412200927734375, 0.04827880859375, -0.0185699462890625, 0.0261688232421875, -0.0239410400390625, -0.039764404296875, -0.0321044921875, 0.05999755859375, -0.0266571044921875, 0.00655364990234375, 0.03704833984375, -0.0127716064453125, -0.0274505615234375, -0.005504608154296875, 0.014801025390625, 0.029083251953125, 0.001979827880859375, -0.0146026611328125, 0.01374053955078125, 0.01287078857421875, 0.006397247314453125, -0.04278564453125, -0.0152587890625, 0.0034236907958984375, 0.02423095703125, -0.03790283203125, 0.00505828857421875, -0.0029087066650390625, -0.04437255859375, -0.053558349609375, 0.0330810546875, 0.0038394927978515625, -0.010467529296875, -0.0268402099609375, 0.01348876953125, 0.01001739501953125, -0.001758575439453125, -0.0034694671630859375, -0.01336669921875, -0.039703369140625, -0.003936767578125, -0.007144927978515625, 0.006580352783203125, 0.029876708984375, -0.032623291015625, -0.082275390625, -0.024505615234375, -0.036468505859375, 0.02386474609375, 0.0221710205078125, -0.0258331298828125, 0.0389404296875, 0.032989501953125, -0.03839111328125, -0.024749755859375, 0.00909423828125, -0.0134735107421875, -0.0296630859375, -0.0096893310546875, -0.0140228271484375, 0.0209808349609375, 0.0657958984375, 0.09466552734375, 0.0177154541015625, -0.054351806640625, 0.015167236328125, 0.04205322265625, -0.031280517578125, -0.008819580078125, 0.01715087890625, -0.048126220703125, -0.034454345703125, -0.0175323486328125, -0.0023021697998046875, -0.0092315673828125, 0.01142120361328125, -0.004955291748046875, -0.0125885009765625, 0.048828125, -0.00628662109375, -0.0043487548828125, -0.0096893310546875, 0.0228118896484375, -0.021575927734375, 0.004261016845703125, 0.0024242401123046875, 0.0125579833984375, 0.0131378173828125, 0.050262451171875, 0.0007176399230957031, -0.00447845458984375, -0.05950927734375, 0.0175933837890625, -0.0165252685546875, 0.032989501953125, -0.048828125, -0.02001953125, -0.029144287109375, 0.0020771026611328125, 0.002239227294921875, -0.0189361572265625, -0.007495880126953125, -0.00493621826171875, -0.005161285400390625, 0.0689697265625, -0.0201416015625, -0.050689697265625, -0.0361328125, 0.03692626953125, 0.0218505859375, -0.0142974853515625, 0.061920166015625, -0.0221405029296875, 0.0022430419921875, 0.00865936279296875, 0.020599365234375, -0.04119873046875, 0.009368896484375, -0.042083740234375, 0.034637451171875, 0.0120697021484375 ]
87af191654a7dbc4580d3616f9082f04236c847b
Wordpress Stackexchange Q: Change success message in plugin Theme my login I am using theme my login plugin and want to replace message when people registered and it's redirect back to login page with displaying message at the top of the form. Message: Your registration was successful but you must now confirm your email address before you can log in. Please check your email and click on the link provided. I want to replace this message. A: The below should work as is (with your strings for the new message and the theme's text domain), when inserted in your theme's functions.php: function wpse71032_change_tml_registration_message( $translated_text, $text, $domain ) { if( $domain === 'theme-my-login' && $text === 'Your registration was successful but you must now confirm your email address before you can log in. Please check your email and click on the link provided.' ) { /* in the below, change the first argument to the message you want and the second argument to your theme's textdomain */ $translated_text = __( '%Registration Message%', 'theme_text_domain' ); } return $translated_text; } add_filter( 'gettext', 'wpse71032_change_tml_registration_message', 20, 3 ); See the article on the gettext filter in the Filter Reference.
Q: Change success message in plugin Theme my login I am using theme my login plugin and want to replace message when people registered and it's redirect back to login page with displaying message at the top of the form. Message: Your registration was successful but you must now confirm your email address before you can log in. Please check your email and click on the link provided. I want to replace this message. A: The below should work as is (with your strings for the new message and the theme's text domain), when inserted in your theme's functions.php: function wpse71032_change_tml_registration_message( $translated_text, $text, $domain ) { if( $domain === 'theme-my-login' && $text === 'Your registration was successful but you must now confirm your email address before you can log in. Please check your email and click on the link provided.' ) { /* in the below, change the first argument to the message you want and the second argument to your theme's textdomain */ $translated_text = __( '%Registration Message%', 'theme_text_domain' ); } return $translated_text; } add_filter( 'gettext', 'wpse71032_change_tml_registration_message', 20, 3 ); See the article on the gettext filter in the Filter Reference.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:425340", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71032" }
[ 0.018585205078125, 0.004428863525390625, -0.01322174072265625, -0.01338958740234375, 0.013671875, -0.036773681640625, 0.038177490234375, -0.005527496337890625, -0.00891876220703125, 0.0389404296875, 0.044097900390625, 0.002346038818359375, 0.004734039306640625, -0.038330078125, -0.006885528564453125, -0.0034580230712890625, -0.0029964447021484375, 0.0133514404296875, -0.0034847259521484375, -0.033447265625, 0.0276947021484375, -0.0276031494140625, -0.01297760009765625, 0.0260772705078125, -0.0167236328125, -0.049957275390625, 0.154541015625, -0.0162506103515625, -0.011993408203125, -0.036468505859375, 0.0164642333984375, -0.0012617111206054688, 0.0247802734375, 0.0281829833984375, -0.0443115234375, -0.037384033203125, 0.041229248046875, -0.01378631591796875, -0.028717041015625, 0.05023193359375, 0.025482177734375, -0.003810882568359375, -0.009735107421875, -0.00782012939453125, -0.01474761962890625, -0.041229248046875, 0.0611572265625, -0.0186004638671875, 0.022918701171875, 0.0122222900390625, 0.0028533935546875, 0.01239776611328125, -0.00043892860412597656, -0.0134124755859375, -0.0115966796875, 0.01255035400390625, -0.10870361328125, 0.08331298828125, 0.007022857666015625, 0.0960693359375, 0.037384033203125, 0.020599365234375, -0.041168212890625, -0.03802490234375, -0.006832122802734375, -0.000446319580078125, -0.036712646484375, 0.019744873046875, 0.0016546249389648438, -0.029876708984375, -0.00789642333984375, -0.025543212890625, -0.01177978515625, -0.0107574462890625, -0.034332275390625, 0.020751953125, -0.0017414093017578125, -0.00824737548828125, 0.0269012451171875, -0.0003287792205810547, 0.01328277587890625, -0.04132080078125, 0.01071929931640625, 0.022613525390625, -0.022735595703125, 0.0234222412109375, -0.007965087890625, 0.0030841827392578125, -0.049224853515625, -0.01293182373046875, -0.037322998046875, -0.003566741943359375, -0.005870819091796875, -0.01523590087890625, -0.032867431640625, -0.00244903564453125, 0.0235137939453125, 0.06964111328125, -0.041595458984375, -0.00493621826171875, -0.035980224609375, -0.0057373046875, -0.01520538330078125, -0.02459716796875, -0.016937255859375, 0.07867431640625, 0.01001739501953125, 0.0257568359375, 0.01540374755859375, 0.0231781005859375, 0.033416748046875, -0.00897979736328125, -0.0335693359375, -0.020538330078125, -0.0107574462890625, 0.03216552734375, -0.033416748046875, -0.0026493072509765625, -0.01190948486328125, 0.025177001953125, -0.01050567626953125, -0.00710296630859375, 0.03582763671875, -0.01049041748046875, -0.0153045654296875, -0.0297088623046875, -0.0283050537109375, -0.017608642578125, -0.0018815994262695312, 0.0005702972412109375, -0.0019388198852539062, 0.04278564453125, 0.00780487060546875, -0.00896453857421875, -0.021575927734375, 0.00058746337890625, -0.003269195556640625, 0.0011043548583984375, 0.006526947021484375, 0.0132904052734375, 0.0011653900146484375, -0.0352783203125, -0.0031108856201171875, -0.0083770751953125, -0.0294647216796875, 0.0115966796875, 0.01430511474609375, 0.0238189697265625, -0.023651123046875, -0.04205322265625, 0.0023136138916015625, -0.035186767578125, 0.00650787353515625, 0.00913238525390625, -0.00849151611328125, 0.04083251953125, -0.0189666748046875, 0.0191192626953125, -0.0191192626953125, 0.0120697021484375, 0.05224609375, -0.0123291015625, -0.0213775634765625, -0.005329132080078125, -0.0309600830078125, -0.008697509765625, -0.03900146484375, 0.0034885406494140625, 0.032257080078125, 0.00940704345703125, 0.049896240234375, 0.033233642578125, 0.025970458984375, 0.0065765380859375, 0.007244110107421875, -0.01213836669921875, 0.00890350341796875, 0.0694580078125, 0.0101165771484375, -0.0204010009765625, -0.0177764892578125, -0.0491943359375, 0.0670166015625, -0.0176544189453125, -0.0260772705078125, 0.01085662841796875, 0.0200042724609375, 0.043670654296875, -0.0262603759765625, 0.032318115234375, -0.0247039794921875, 0.03302001953125, -0.038970947265625, -0.00835418701171875, -0.021026611328125, -0.0200347900390625, 0.0211181640625, 0.0027523040771484375, 0.0005068778991699219, 0.037109375, 0.01442718505859375, 0.005664825439453125, 0.00811767578125, -0.0136566162109375, -0.034454345703125, -0.011871337890625, -0.0016765594482421875, 0.0181884765625, -0.01021575927734375, 0.00965118408203125, 0.01175689697265625, 0.0175628662109375, -0.01010894775390625, -0.0474853515625, -0.018524169921875, 0.0255126953125, -0.03082275390625, 0.04095458984375, -0.024658203125, 0.054473876953125, -0.02020263671875, -0.05181884765625, -0.01136016845703125, -0.01136016845703125, -0.0155029296875, 0.012847900390625, -0.0274200439453125, 0.01172637939453125, -0.01377105712890625, -0.003643035888671875, 0.043487548828125, 0.0236358642578125, -0.019134521484375, -0.01187896728515625, -0.035552978515625, -0.0109405517578125, -0.0200042724609375, -0.06585693359375, 0.02215576171875, 0.05291748046875, 0.020751953125, 0.04571533203125, -0.02117919921875, -0.0006279945373535156, 0.0266876220703125, -0.031341552734375, 0.019744873046875, 0.01097869873046875, 0.046051025390625, 0.0264739990234375, 0.003604888916015625, -0.04071044921875, 0.04266357421875, -0.01546478271484375, 0.039794921875, 0.01476287841796875, 0.01293182373046875, -0.021484375, -0.032928466796875, 0.016937255859375, 0.0169830322265625, -0.018157958984375, -0.041778564453125, 0.0040130615234375, -0.0197906494140625, -0.020904541015625, -0.023773193359375, -0.036163330078125, -0.051788330078125, 0.0016012191772460938, 0.054840087890625, -0.0022220611572265625, 0.005340576171875, -0.00012803077697753906, -0.03765869140625, 0.020965576171875, -0.0188446044921875, 0.01416015625, -0.0034008026123046875, -0.016937255859375, -0.040496826171875, -0.031341552734375, -0.03607177734375, -0.0152740478515625, 0.003665924072265625, -0.031890869140625, 0.0208740234375, -0.00878143310546875, 0.025604248046875, -0.0266265869140625, 0.01247406005859375, 0.0023517608642578125, -0.042022705078125, 0.067626953125, -0.020965576171875, -0.056549072265625, -0.001773834228515625, -0.049072265625, 0.038330078125, -0.0570068359375, 0.02081298828125, 0.058563232421875, 0.00273895263671875, -0.00598907470703125, -0.0147247314453125, -0.0018978118896484375, -0.028717041015625, 0.00823211669921875, -0.0104217529296875, -0.043548583984375, -0.007801055908203125, 0.04571533203125, 0.0198974609375, -0.0023956298828125, -0.0007052421569824219, -0.039520263671875, -0.017547607421875, -0.0107421875, -0.045867919921875, -0.032379150390625, -0.040130615234375, -0.0489501953125, -0.007450103759765625, -0.002872467041015625, -0.019927978515625, 0.0204315185546875, 0.0036754608154296875, 0.01107025146484375, 0.01497650146484375, -0.020751953125, -0.062469482421875, -0.02362060546875, -0.04833984375, 0.0193328857421875, -0.0011997222900390625, 0.0101470947265625, -0.003692626953125, 0.05084228515625, 0.0299072265625, -0.019317626953125, 0.034942626953125, 0.06500244140625, 0.00673675537109375, 0.007045745849609375, -0.023773193359375, -0.005603790283203125, 0.0343017578125, 0.0006504058837890625, 0.0153045654296875, 0.0142669677734375, -0.01421356201171875, -0.00478363037109375, -0.01018524169921875, -0.02191162109375, 0.018341064453125, -0.050689697265625, -0.0173797607421875, 0.0171661376953125, -0.00281524658203125, -0.04779052734375, 0.0010766983032226562, -0.01080322265625, -0.039825439453125, -0.0027065277099609375, 0.0273284912109375, -0.028656005859375, 0.009613037109375, -0.04266357421875, -0.00823974609375, -0.0210113525390625, 0.045440673828125, -0.055999755859375, 0.0303192138671875, -0.004016876220703125, -0.021697998046875, -0.030029296875, 0.040374755859375, -0.011932373046875, -0.026214599609375, -0.0008764266967773438, 0.01380157470703125, -0.0016107559204101562, 0.004909515380859375, -0.02337646484375, -0.07720947265625, 0.043365478515625, -0.05010986328125, -0.04339599609375, -0.0210418701171875, -0.0211639404296875, 0.0214385986328125, 0.08843994140625, 0.00711822509765625, -0.0122528076171875, 0.043548583984375, 0.006160736083984375, 0.002071380615234375, -0.000457763671875, -0.0418701171875, -0.02105712890625, -0.05743408203125, 0.018524169921875, -0.013702392578125, -0.006351470947265625, -0.0032806396484375, -0.0202484130859375, -0.009490966796875, -0.0419921875, 0.039947509765625, 0.031494140625, 0.01617431640625, 0.000026464462280273438, -0.004375457763671875, -0.0025272369384765625, -0.0182342529296875, 0.0002567768096923828, -0.030517578125, -0.0003299713134765625, -0.0413818359375, 0.05621337890625, 0.0418701171875, -0.01088714599609375, 0.0081329345703125, 0.04766845703125, 0.0443115234375, 0.03277587890625, 0.01303863525390625, -0.016693115234375, 0.0293731689453125, -0.038909912109375, 0.00653076171875, -0.04290771484375, 0.0297088623046875, 0.036163330078125, -0.06439208984375, 0.038177490234375, 0.006103515625, 0.013641357421875, 0.07659912109375, -0.0689697265625, -0.044219970703125, -0.02532958984375, -0.022247314453125, -0.033660888671875, 0.0162353515625, -0.0423583984375, -0.007503509521484375, -0.023193359375, 0.040985107421875, 0.0016040802001953125, -0.01421356201171875, 0.00821685791015625, 0.039215087890625, 0.006198883056640625, -0.0135955810546875, -0.01873779296875, -0.0223236083984375, 0.0308990478515625, 0.021453857421875, 0.018280029296875, 0.0183868408203125, -0.039337158203125, 0.066162109375, 0.0287322998046875, -0.006649017333984375, -0.00894927978515625, 0.057830810546875, 0.0278167724609375, -0.009918212890625, 0.00887298583984375, 0.0115509033203125, -0.024139404296875, 0.0171356201171875, 0.00598907470703125, -0.017059326171875, 0.006069183349609375, 0.010528564453125, -0.005107879638671875, 0.01258087158203125, -0.001560211181640625, -0.033355712890625, 0.03302001953125, 0.02593994140625, -0.0506591796875, -0.00864410400390625, 0.006683349609375, -0.04931640625, -0.0457763671875, -0.031341552734375, -0.01519012451171875, -0.046478271484375, 0.013519287109375, 0.0022487640380859375, 0.002262115478515625, -0.0200347900390625, -0.005855560302734375, -0.003810882568359375, 0.0280914306640625, 0.00994873046875, -0.035919189453125, -0.0011091232299804688, 0.0078125, 0.0110321044921875, 0.02239990234375, -0.0008215904235839844, 0.06597900390625, 0.03167724609375, -0.02972412109375, 0.00055694580078125, 0.019927978515625, -0.0357666015625, -0.05169677734375, -0.01123809814453125, 0.00896453857421875, -0.0210113525390625, -0.0208282470703125, 0.0450439453125, 0.0006847381591796875, -0.007785797119140625, 0.0012607574462890625, 0.01552581787109375, 0.048583984375, 0.01105499267578125, 0.0191650390625, 0.006195068359375, -0.0028057098388671875, -0.0193328857421875, 0.03631591796875, -0.002685546875, 0.026824951171875, -0.0091400146484375, 0.0117340087890625, 0.0119476318359375, 0.01178741455078125, 0.017852783203125, -0.0246734619140625, 0.004985809326171875, 0.0462646484375, -0.0224456787109375, -0.05450439453125, -0.043792724609375, -0.0011005401611328125, 0.04498291015625, -0.03704833984375, 0.01076507568359375, -0.0222320556640625, -0.019683837890625, -0.007610321044921875, 0.0278472900390625, -0.0237579345703125, -0.025726318359375, -0.016082763671875, 0.01666259765625, 0.0026645660400390625, -0.01169586181640625, -0.027008056640625, -0.0125885009765625, -0.01194000244140625, 0.0033245086669921875, 0.05023193359375, -0.0092010498046875, 0.01360321044921875, -0.0171661376953125, 0.0036945343017578125, -0.0183563232421875, 0.000032007694244384766, 0.0227813720703125, -0.0188140869140625, -0.04217529296875, -0.0180206298828125, -0.017791748046875, -0.0242156982421875, -0.049560546875, -0.028594970703125, -0.0321044921875, 0.0158538818359375, 0.040130615234375, 0.02490234375, -0.005397796630859375, -0.0606689453125, -0.01461029052734375, -0.0175628662109375, 0.043304443359375, 0.04461669921875, -0.008819580078125, 0.04644775390625, 0.0126800537109375, 0.0034160614013671875, 0.0098876953125, 0.01439666748046875, 0.0011148452758789062, -0.0000013709068298339844, -0.01078033447265625, -0.007419586181640625, 0.0251007080078125, -0.013946533203125, 0.00983428955078125, -0.00971221923828125, 0.03546142578125, 0.004261016845703125, -0.01092529296875, -0.008087158203125, -0.0067901611328125, -0.005413055419921875, 0.06536865234375, 0.0173797607421875, -0.006496429443359375, 0.046356201171875, -0.047760009765625, -0.042388916015625, 0.025299072265625, 0.050537109375, -0.0084686279296875, -0.01421356201171875, -0.03167724609375, 0.0328369140625, -0.0113525390625, 0.0115203857421875, 0.0154571533203125, 0.0176544189453125, 0.0394287109375, -0.0079345703125, 0.0460205078125, 0.01395416259765625, -0.012908935546875, -0.005573272705078125, 0.0210113525390625, 0.048583984375, -0.01100921630859375, -0.0248260498046875, 0.0100860595703125, -0.0236663818359375, 0.0020618438720703125, 0.06646728515625, 0.0711669921875, -0.11285400390625, 0.02105712890625, 0.007472991943359375, 0.0202178955078125, 0.020050048828125, 0.04046630859375, -0.006195068359375, 0.0117950439453125, -0.032196044921875, -0.0307464599609375, 0.0002225637435913086, 0.0033130645751953125, 0.01116943359375, -0.04412841796875, -0.0017728805541992188, 0.0109710693359375, 0.019866943359375, -0.01776123046875, -0.001800537109375, -0.00479888916015625, -0.00609588623046875, -0.0225372314453125, 0.035675048828125, 0.0117034912109375, 0.014801025390625, -0.0640869140625, 0.0128326416015625, 0.0037212371826171875, -0.0236663818359375, -0.043914794921875, -0.004619598388671875, 0.0303955078125, 0.0438232421875, -0.0208892822265625, -0.01190948486328125, 0.0157623291015625, -0.018341064453125, 0.002841949462890625, -0.0116424560546875, -0.0022830963134765625, 0.058685302734375, -0.04046630859375, 0.01544189453125, -0.00551605224609375, 0.01464080810546875, -0.01174163818359375, -0.07275390625, 0.053619384765625, -0.0199737548828125, -0.00240325927734375, 0.02435302734375, -0.01702880859375, -0.029144287109375, -0.01418304443359375, 0.0357666015625, -0.034698486328125, -0.0109100341796875, -0.0040435791015625, -0.034637451171875, -0.0290679931640625, -0.029052734375, -0.10247802734375, 0.16064453125, 0.00923919677734375, 0.054229736328125, -0.0165863037109375, 0.06597900390625, -0.025665283203125, 0.033966064453125, -0.022796630859375, 0.0292510986328125, -0.0129547119140625, 0.0283966064453125, 0.0017337799072265625, 0.00916290283203125, 0.0178985595703125, 0.00414276123046875, 0.0491943359375, 0.0121917724609375, -0.0238494873046875, -0.0130462646484375, 0.00641632080078125, -0.0007977485656738281, -0.0254669189453125, 0.0367431640625, -0.01654052734375, 0.0736083984375, 0.0182952880859375, -0.08624267578125, 0.02191162109375, -0.05029296875, -0.040802001953125, 0.0035037994384765625, -0.00909423828125, -0.0250091552734375, -0.00417327880859375, 0.00444793701171875, -0.056640625, 0.0086669921875, 0.0250396728515625, 0.022216796875, 0.00672149658203125, 0.0132293701171875, 0.0205078125, -0.0106353759765625, 0.0509033203125, -0.033538818359375, 0.044677734375, -0.0105133056640625, 0.035186767578125, 0.026336669921875, 0.006710052490234375, 0.08221435546875, -0.0170745849609375, 0.0010862350463867188, 0.007171630859375, 0.0113372802734375, 0.0258636474609375, -0.002239227294921875, 0.00855255126953125, -0.029876708984375, 0.043548583984375, 0.039642333984375, 0.0302886962890625, -0.0306549072265625, -0.0191650390625, 0.00873565673828125, 0.01214599609375, 0.0171661376953125, 0.0006513595581054688, 0.039703369140625, -0.0203704833984375, 0.004673004150390625, 0.0016021728515625, -0.01219940185546875, -0.00202178955078125, -0.008209228515625, -0.019378662109375, -0.02679443359375, 0.049652099609375, 0.035247802734375, -0.055023193359375, 0.05352783203125, 0.0313720703125, 0.0225677490234375, -0.02978515625, 0.0654296875, 0.05035400390625, 0.0016345977783203125, -0.01995849609375, 0.00154876708984375, 0.0281524658203125, 0.0023956298828125, -0.0264129638671875, 0.003978729248046875, 0.00673675537109375, 0.035308837890625, -0.014862060546875, -0.0247802734375, 0.0117645263671875, 0.0452880859375, -0.0122222900390625, -0.02020263671875, 0.03448486328125, -0.002216339111328125, 0.0255889892578125, -0.0430908203125, -0.00267791748046875, -0.0117645263671875, -0.01378631591796875, -0.0081329345703125, -0.019989013671875, 0.019744873046875, 0.00531005859375, 0.0173797607421875, -0.005157470703125, -0.04742431640625, -0.015625, -0.02203369140625, 0.076416015625, 0.0179595947265625, -0.1109619140625, -0.05450439453125, -0.0070953369140625, -0.01605224609375, 0.03265380859375, 0.057861328125, -0.0024967193603515625, -0.00743865966796875, 0.01479339599609375, 0.00482940673828125, 0.018524169921875, -0.04949951171875, 0.0207366943359375, -0.037261962890625, -0.0017948150634765625, -0.01399993896484375, -0.0204010009765625, -0.0012903213500976562, 0.01389312744140625, 0.00689697265625, -0.033203125, 0.0322265625, 0.006267547607421875, -0.010650634765625, -0.054595947265625, 0.0045013427734375, -0.04046630859375, -0.061492919921875, 0.030792236328125, -0.0218353271484375, -0.015350341796875, 0.01342010498046875, -0.06451416015625, 0.0570068359375, 0.01364898681640625, 0.022918701171875, 0.08990478515625, -0.01493072509765625, -0.01068878173828125, -0.04766845703125, 0.0287628173828125, -0.0198822021484375, -0.06591796875, -0.00818634033203125, 0.07403564453125, -0.025665283203125, 0.00331878662109375, -0.06787109375, 0.04888916015625, -0.04266357421875, -0.007625579833984375, 0.0259552001953125, -0.04766845703125, 0.0106353759765625, 0.0207977294921875, -0.03411865234375, 0.0091705322265625, 0.01428985595703125, -0.0181732177734375, 0.0223541259765625, -0.002628326416015625, 0.03924560546875, 0.00171661376953125, -0.00724029541015625, -0.006694793701171875, -0.00848388671875, -0.0013561248779296875, -0.02838134765625, 0.0106048583984375, 0.006465911865234375, -0.009857177734375, -0.0113372802734375, -0.0306549072265625, -0.0338134765625, -0.032440185546875, 0.004093170166015625, 0.0014715194702148438, 0.0081329345703125, -0.036468505859375, -0.01108551025390625, 0.01023101806640625, 0.005146026611328125, -0.00943756103515625, -0.048187255859375, -0.020782470703125, 0.0105133056640625, 0.049407958984375, -0.027374267578125, -0.02874755859375, 0.0133819580078125, 0.0187835693359375, -0.0189208984375, -0.044403076171875, -0.046875, 0.0262908935546875, -0.04595947265625, -0.06494140625, 0.021881103515625, 0.0222930908203125, -0.052825927734375, -0.0948486328125, -0.086669921875, -0.0341796875, -0.06756591796875, -0.0188446044921875, 0.023773193359375, -0.0103607177734375, 0.0006327629089355469, -0.042266845703125, -0.00812530517578125, -0.045074462890625, 0.01067352294921875, -0.019256591796875, -0.0135955810546875, 0.0019588470458984375, -0.051910400390625, -0.080322265625, 0.05218505859375, -0.02032470703125, -0.0261383056640625, -0.079345703125, -0.0009217262268066406, 0.0013532638549804688, 0.05413818359375, -0.011199951171875, -0.053466796875, -0.068359375, 0.021728515625, 0.00955963134765625, 0.045379638671875, 0.0005865097045898438, 0.03997802734375, -0.062286376953125, -0.0180206298828125, -0.03656005859375, -0.0018520355224609375, -0.011932373046875, 0.005313873291015625, 0.00324249267578125, 0.0197296142578125, -0.037994384765625, -0.048980712890625, -0.0210113525390625, -0.010406494140625, -0.0169830322265625, -0.06591796875, 0.05291748046875, -0.0005030632019042969, 0.0299835205078125, -0.025634765625, -0.0142669677734375, -0.0285186767578125, -0.050750732421875, -0.02276611328125, 0.0335693359375, -0.0135498046875, 0.0271759033203125, -0.107666015625, -0.0222015380859375, 0.031646728515625, -0.010528564453125, -0.01215362548828125, -0.00862884521484375, -0.033782958984375, -0.01380157470703125, 0.007305145263671875, 0.005191802978515625, -0.037017822265625, -0.057708740234375, 0.08868408203125, -0.0419921875, 0.000011026859283447266, 0.0179901123046875, 0.033111572265625, 0.031646728515625, 0.019439697265625, 0.0226287841796875, -0.010345458984375, -0.03460693359375, -0.01073455810546875, 0.0160980224609375, 0.037872314453125, -0.01073455810546875, -0.042510986328125, -0.017913818359375, 0.0128936767578125, -0.014434814453125, 0.032073974609375, -0.00438690185546875, -0.0113067626953125, -0.005573272705078125, 0.045196533203125, -0.0282745361328125, -0.03912353515625, -0.03265380859375, 0.005718231201171875, 0.0095062255859375, -0.0015726089477539062, 0.034515380859375, -0.00797271728515625, 0.02490234375, 0.032806396484375, 0.06787109375, -0.004566192626953125, 0.044677734375, 0.0010061264038085938, 0.05078125, 0.005405426025390625 ]
d3c79aeea1b7668b1923ba8b053eecee235c1b61
Wordpress Stackexchange Q: Removing custom post type from link search results I have created a custom post type and disabled it from appearing in search results. However when I add a link from a normal post, I still get these entries from my custom post type available to link to in the internal linking box (at the bottom when of the popup when you click the link button in the editor). How can I disable the custom post type from displaying entries there as well? A: I suggest making it private ('public' => false when registering the post type). You could club it with 'show_ui' => true to still display the admin interface. See the codex for register_post_type for full reference http://codex.wordpress.org/Function_Reference/register_post_type
Q: Removing custom post type from link search results I have created a custom post type and disabled it from appearing in search results. However when I add a link from a normal post, I still get these entries from my custom post type available to link to in the internal linking box (at the bottom when of the popup when you click the link button in the editor). How can I disable the custom post type from displaying entries there as well? A: I suggest making it private ('public' => false when registering the post type). You could club it with 'show_ui' => true to still display the admin interface. See the codex for register_post_type for full reference http://codex.wordpress.org/Function_Reference/register_post_type
wordpress
{ "language": "en", "length": 120, "provenance": "stackexchange_00019.jsonl.gz:425341", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71033" }
[ 0.1009521484375, 0.004856109619140625, 0.035430908203125, 0.0205078125, 0.032196044921875, -0.05401611328125, 0.12310791015625, -0.049407958984375, -0.0226287841796875, 0.0188446044921875, 0.0245819091796875, -0.021514892578125, -0.0193328857421875, -0.048797607421875, 0.0185546875, -0.0304107666015625, 0.01226043701171875, 0.0177154541015625, 0.03875732421875, -0.0246429443359375, 0.035980224609375, -0.03533935546875, 0.04376220703125, 0.0053863525390625, 0.0260467529296875, -0.0088348388671875, 0.06787109375, -0.00995635986328125, 0.020355224609375, -0.0007619857788085938, 0.0240631103515625, -0.0316162109375, -0.004138946533203125, 0.043487548828125, -0.00876617431640625, 0.00608062744140625, 0.00989532470703125, 0.035003662109375, 0.0245819091796875, 0.01507568359375, 0.0009775161743164062, -0.002483367919921875, -0.01617431640625, -0.022857666015625, -0.0267181396484375, -0.033355712890625, 0.02001953125, -0.01522064208984375, 0.016937255859375, -0.0206756591796875, 0.01055908203125, 0.01427459716796875, 0.045501708984375, -0.053436279296875, -0.037933349609375, -0.0298309326171875, 0.0038776397705078125, -0.02069091796875, 0.0206298828125, -0.004638671875, -0.0062713623046875, -0.003437042236328125, 0.016510009765625, 0.0036945343017578125, -0.00244140625, -0.008270263671875, -0.00942230224609375, 0.01290130615234375, -0.05810546875, -0.007686614990234375, 0.055572509765625, -0.0299072265625, 0.0183868408203125, 0.01114654541015625, -0.010406494140625, -0.050994873046875, 0.01126861572265625, -0.033905029296875, 0.0113525390625, 0.0167236328125, 0.0032138824462890625, 0.0168304443359375, -0.0246124267578125, -0.013275146484375, -0.005313873291015625, -0.01222991943359375, -0.0139312744140625, -0.00612640380859375, 0.005954742431640625, -0.004180908203125, -0.0005207061767578125, -0.038421630859375, 0.01456451416015625, 0.033233642578125, -0.0138092041015625, -0.01532745361328125, 0.055938720703125, 0.03387451171875, 0.01497650146484375, 0.003482818603515625, 0.01200103759765625, -0.0626220703125, 0.0413818359375, -0.03460693359375, 0.01375579833984375, 0.0217437744140625, -0.0211029052734375, 0.002391815185546875, 0.056243896484375, 0.0323486328125, 0.00943756103515625, 0.015777587890625, -0.0203399658203125, -0.006031036376953125, -0.03564453125, 0.039154052734375, -0.022979736328125, -0.0128021240234375, -0.02215576171875, 0.0298004150390625, 0.022491455078125, 0.0341796875, 0.03314208984375, -0.01556396484375, 0.0004086494445800781, 0.002864837646484375, -0.0252685546875, -0.0419921875, 0.026153564453125, -0.00550079345703125, -0.048736572265625, -0.0155792236328125, 0.06280517578125, 0.0682373046875, 0.049346923828125, -0.0236053466796875, -0.00809478759765625, -0.01206207275390625, -0.01363372802734375, 0.0201568603515625, 0.02349853515625, -0.053009033203125, -0.0100860595703125, 0.0231781005859375, 0.0251312255859375, 0.034149169921875, 0.0078582763671875, 0.015350341796875, 0.01468658447265625, -0.027740478515625, -0.0021820068359375, -0.031280517578125, 0.0662841796875, -0.0009098052978515625, -0.0589599609375, -0.04730224609375, 0.048553466796875, -0.0478515625, -0.0236968994140625, -0.07647705078125, 0.036651611328125, 0.00576019287109375, -0.0146636962890625, 0.01168060302734375, -0.0177154541015625, -0.005702972412109375, -0.00791168212890625, -0.0012912750244140625, 0.0083770751953125, -0.00913238525390625, 0.015655517578125, -0.0296173095703125, -0.018524169921875, -0.0266571044921875, -0.005344390869140625, -0.005382537841796875, 0.03424072265625, 0.0231781005859375, 0.005451202392578125, 0.042755126953125, 0.0012903213500976562, -0.03741455078125, 0.0626220703125, -0.047882080078125, -0.0772705078125, 0.0797119140625, 0.0111083984375, 0.0579833984375, -0.0088043212890625, -0.0017652511596679688, 0.077880859375, 0.05419921875, -0.0177001953125, 0.00479888916015625, 0.01373291015625, -0.011688232421875, -0.0247344970703125, -0.024505615234375, -0.0171966552734375, 0.02252197265625, -0.03936767578125, 0.0301666259765625, -0.02301025390625, 0.01512908935546875, -0.050689697265625, 0.03179931640625, -0.02484130859375, 0.05548095703125, -0.0284576416015625, 0.0246734619140625, 0.04193115234375, -0.00020682811737060547, -0.036468505859375, 0.01152801513671875, 0.013153076171875, -0.00447845458984375, 0.005710601806640625, 0.0228271484375, -0.0037689208984375, 0.004482269287109375, -0.01056671142578125, -0.0246124267578125, -0.0137939453125, 0.029571533203125, 0.055908203125, -0.005664825439453125, -0.0128173828125, -0.0172576904296875, 0.037109375, 0.017578125, -0.044403076171875, 0.0290374755859375, 0.03729248046875, 0.005825042724609375, -0.01898193359375, 0.0142822265625, 0.0103912353515625, -0.077880859375, -0.00730133056640625, 0.06475830078125, 0.015350341796875, 0.027618408203125, -0.0162353515625, 0.01812744140625, 0.025970458984375, 0.0225830078125, 0.035400390625, -0.00775909423828125, 0.017181396484375, 0.036346435546875, -0.0037899017333984375, -0.005939483642578125, 0.031768798828125, 0.01171875, 0.032989501953125, 0.020050048828125, 0.0245819091796875, 0.005626678466796875, 0.031982421875, -0.01358795166015625, 0.0002655982971191406, 0.0099334716796875, -0.028533935546875, 0.0005288124084472656, 0.0276031494140625, 0.002956390380859375, 0.052490234375, 0.046783447265625, -0.035430908203125, -0.0144195556640625, 0.0237884521484375, 0.04718017578125, -0.0112152099609375, 0.006877899169921875, 0.09161376953125, -0.0340576171875, -0.059661865234375, 0.00951385498046875, 0.0180206298828125, 0.00482940673828125, -0.01128387451171875, -0.0065155029296875, -0.0267791748046875, 0.00054931640625, -0.0082244873046875, -0.0694580078125, 0.036376953125, 0.04742431640625, 0.00527191162109375, -0.0043487548828125, 0.014312744140625, 0.004642486572265625, -0.0186004638671875, 0.0287017822265625, 0.0108795166015625, -0.030364990234375, -0.00852203369140625, -0.085693359375, 0.054534912109375, -0.054901123046875, 0.06494140625, 0.0838623046875, -0.012664794921875, 0.029754638671875, 0.00418853759765625, 0.00579071044921875, -0.0011873245239257812, 0.023193359375, -0.00933837890625, -0.0233917236328125, -0.042877197265625, -0.006381988525390625, 0.007007598876953125, -0.00560760498046875, 0.007427215576171875, -0.036102294921875, 0.01617431640625, 0.01198577880859375, -0.050048828125, -0.031646728515625, 0.0152130126953125, -0.00678253173828125, -0.015899658203125, 0.0227813720703125, -0.014007568359375, -0.00565338134765625, 0.01666259765625, -0.00592803955078125, 0.031646728515625, -0.039520263671875, -0.039398193359375, -0.032073974609375, -0.04718017578125, 0.005893707275390625, 0.01192474365234375, -0.0054168701171875, 0.00524139404296875, 0.09228515625, 0.0435791015625, -0.04156494140625, 0.061279296875, 0.05999755859375, -0.03057861328125, 0.043365478515625, 0.01465606689453125, -0.033538818359375, 0.046539306640625, 0.00624847412109375, 0.0278778076171875, 0.0238494873046875, -0.001033782958984375, -0.0273284912109375, 0.0198974609375, 0.031463623046875, 0.050689697265625, 0.007068634033203125, -0.031402587890625, 0.0242767333984375, 0.025909423828125, -0.037841796875, -0.0293121337890625, 0.00302886962890625, -0.0273590087890625, -0.01436614990234375, -0.01163482666015625, -0.0108642578125, -0.050323486328125, 0.0654296875, 0.0467529296875, 0.030670166015625, 0.01812744140625, -0.031494140625, 0.034027099609375, 0.03106689453125, 0.043975830078125, -0.037933349609375, 0.061920166015625, -0.006717681884765625, 0.031982421875, 0.040618896484375, 0.00838470458984375, 0.0111236572265625, -0.01861572265625, -0.02618408203125, -0.051422119140625, 0.057891845703125, -0.028594970703125, 0.00832366943359375, -0.028961181640625, -0.03192138671875, 0.01142120361328125, 0.1016845703125, -0.044769287109375, 0.0011701583862304688, -0.0225830078125, 0.002483367919921875, 0.024383544921875, -0.07598876953125, -0.0268707275390625, -0.0214080810546875, -0.055450439453125, 0.013580322265625, -0.0033054351806640625, -0.005077362060546875, -0.041107177734375, 0.03839111328125, -0.0557861328125, -0.0264892578125, 0.04632568359375, -0.00524139404296875, -0.00153350830078125, 0.0005893707275390625, -0.0169525146484375, -0.01482391357421875, -0.050079345703125, 0.00868988037109375, -0.071533203125, -0.003688812255859375, -0.0164947509765625, 0.0301971435546875, -0.01084136962890625, 0.016571044921875, -0.039215087890625, 0.00798797607421875, 0.05133056640625, -0.0244903564453125, 0.022430419921875, -0.05328369140625, 0.01546478271484375, 0.049285888671875, 0.0079803466796875, -0.0013132095336914062, 0.0167388916015625, 0.007488250732421875, -0.03271484375, 0.02984619140625, -0.0123138427734375, 0.0025539398193359375, 0.0340576171875, -0.03839111328125, 0.0027332305908203125, -0.030975341796875, -0.031463623046875, 0.031585693359375, -0.010040283203125, -0.00872039794921875, -0.04595947265625, -0.0145721435546875, 0.0260162353515625, 0.0214385986328125, -0.0219879150390625, 0.002285003662109375, 0.025970458984375, 0.023895263671875, -0.0198822021484375, -0.0094146728515625, 0.0172882080078125, 0.027191162109375, -0.0036468505859375, 0.035675048828125, 0.01788330078125, 0.00006306171417236328, 0.01285552978515625, -0.0138092041015625, -0.01995849609375, -0.000008702278137207031, 0.049041748046875, 0.01235198974609375, -0.00983428955078125, 0.01068115234375, -0.0305938720703125, 0.03363037109375, 0.0192718505859375, 0.007236480712890625, -0.0452880859375, 0.03155517578125, 0.05511474609375, -0.0372314453125, 0.0309600830078125, -0.01910400390625, 0.0207672119140625, 0.014617919921875, -0.0153656005859375, 0.03216552734375, 0.03472900390625, -0.003940582275390625, -0.018585205078125, -0.037506103515625, -0.004871368408203125, 0.007717132568359375, 0.00959014892578125, -0.01580810546875, 0.0241546630859375, -0.0056304931640625, -0.0186767578125, -0.0052490234375, 0.003215789794921875, 0.00921630859375, -0.011993408203125, -0.034576416015625, -0.0330810546875, -0.003261566162109375, 0.00925445556640625, 0.0157623291015625, 0.0307464599609375, 0.016754150390625, 0.038665771484375, 0.02313232421875, 0.0106201171875, 0.033538818359375, 0.024261474609375, -0.019775390625, -0.01033782958984375, -0.0015993118286132812, -0.009674072265625, 0.0029735565185546875, 0.043212890625, -0.00539398193359375, 0.024017333984375, -0.0108642578125, 0.01462554931640625, -0.027618408203125, 0.0224456787109375, 0.00995635986328125, 0.01248931884765625, 0.0154876708984375, -0.00864410400390625, 0.0131072998046875, -0.0096282958984375, -0.034088134765625, -0.01241302490234375, 0.0207672119140625, -0.004283905029296875, 0.013671875, 0.037750244140625, -0.007038116455078125, -0.0238494873046875, 0.0316162109375, 0.034515380859375, -0.045989990234375, -0.021148681640625, -0.01360321044921875, 0.00432586669921875, -0.00452423095703125, -0.0229339599609375, -0.013763427734375, -0.037567138671875, -0.00528717041015625, -0.01385498046875, -0.027862548828125, 0.01044464111328125, 0.025726318359375, -0.0283050537109375, -0.0460205078125, -0.012298583984375, -0.04034423828125, 0.004962921142578125, 0.00704193115234375, -0.00888824462890625, -0.0212860107421875, -0.0307769775390625, 0.03558349609375, -0.0093841552734375, 0.0006928443908691406, 0.019012451171875, 0.0399169921875, 0.0275726318359375, -0.0006089210510253906, -0.044921875, 0.00127410888671875, -0.04248046875, -0.00696563720703125, -0.021881103515625, -0.05078125, -0.0178375244140625, -0.0161590576171875, 0.032928466796875, 0.0193939208984375, 0.0030364990234375, -0.04779052734375, -0.0259857177734375, -0.007080078125, 0.031158447265625, -0.00555419921875, -0.0193328857421875, 0.06427001953125, -0.006885528564453125, 0.080810546875, 0.0147247314453125, 0.0258636474609375, -0.0016870498657226562, -0.025604248046875, 0.012542724609375, -0.0859375, -0.0577392578125, 0.00457000732421875, -0.034210205078125, 0.074462890625, 0.0162353515625, -0.0109405517578125, -0.0186614990234375, -0.00876617431640625, 0.0005412101745605469, -0.0284881591796875, 0.06982421875, 0.00567626953125, 0.0254974365234375, -0.0126190185546875, -0.00722503662109375, 0.0233001708984375, 0.022796630859375, 0.01241302490234375, -0.0257568359375, -0.005023956298828125, -0.006946563720703125, -0.018280029296875, -0.00850677490234375, 0.01131439208984375, 0.054931640625, 0.016845703125, 0.0584716796875, 0.002193450927734375, 0.018585205078125, 0.03533935546875, 0.0138702392578125, -0.006427764892578125, -0.0208892822265625, 0.028045654296875, 0.0008597373962402344, -0.0181121826171875, 0.019989013671875, -0.02197265625, -0.0084075927734375, 0.06768798828125, 0.050689697265625, -0.11865234375, 0.0006160736083984375, 0.00531768798828125, 0.03155517578125, 0.0298309326171875, 0.005401611328125, -0.0094146728515625, -0.00753021240234375, -0.035858154296875, 0.00882720947265625, -0.042083740234375, -0.036102294921875, 0.015625, -0.00211334228515625, 0.017578125, 0.062103271484375, 0.005123138427734375, -0.0225830078125, -0.0198974609375, 0.0036296844482421875, 0.01023101806640625, 0.0024929046630859375, 0.01296234130859375, 0.01500701904296875, -0.01558685302734375, -0.0684814453125, 0.0009412765502929688, -0.046661376953125, -0.0181884765625, 0.045166015625, 0.01045989990234375, 0.046142578125, 0.0478515625, -0.009063720703125, 0.0097808837890625, -0.0012187957763671875, 0.02496337890625, 0.007640838623046875, -0.05108642578125, -0.009185791015625, 0.04278564453125, -0.034454345703125, 0.0186920166015625, 0.0019388198852539062, -0.037139892578125, -0.0139312744140625, 0.013641357421875, 0.10211181640625, -0.025634765625, -0.02044677734375, 0.03741455078125, 0.007843017578125, -0.0224151611328125, -0.01422882080078125, -0.00005692243576049805, -0.03106689453125, 0.0128173828125, -0.0265960693359375, -0.0157623291015625, -0.0217742919921875, -0.03936767578125, -0.03704833984375, 0.07061767578125, -0.054931640625, 0.0220947265625, 0.0135040283203125, 0.022003173828125, 0.02435302734375, 0.03985595703125, -0.01515960693359375, 0.0458984375, -0.0111846923828125, 0.049713134765625, -0.0311431884765625, -0.0212249755859375, 0.0117340087890625, 0.046783447265625, 0.0616455078125, 0.006862640380859375, 0.011505126953125, -0.000957489013671875, 0.038055419921875, 0.041290283203125, -0.022186279296875, 0.0010776519775390625, -0.003814697265625, 0.05560302734375, 0.0290985107421875, -0.047149658203125, 0.0295562744140625, -0.0020313262939453125, -0.030181884765625, 0.034088134765625, 0.0206756591796875, 0.0406494140625, 0.01158905029296875, -0.0253448486328125, -0.0006480216979980469, 0.002422332763671875, 0.0075531005859375, 0.0095367431640625, -0.00716400146484375, 0.037261962890625, 0.033660888671875, -0.05731201171875, -0.03277587890625, -0.039581298828125, 0.046630859375, 0.0257415771484375, 0.05401611328125, 0.002803802490234375, 0.018524169921875, 0.038116455078125, -0.05126953125, 0.022430419921875, 0.019622802734375, -0.053985595703125, 0.0133209228515625, 0.00014770030975341797, 0.0235137939453125, -0.051177978515625, -0.009796142578125, 0.039520263671875, 0.040069580078125, -0.03466796875, -0.06707763671875, 0.0012025833129882812, 0.00572967529296875, 0.004718780517578125, -0.00006222724914550781, -0.0234832763671875, 0.00580596923828125, 0.051971435546875, -0.046966552734375, 0.0084228515625, 0.01412200927734375, 0.031829833984375, -0.033447265625, -0.02191162109375, -0.0205078125, -0.01078033447265625, -0.030975341796875, -0.02117919921875, 0.0225982666015625, 0.056060791015625, 0.035247802734375, 0.0255279541015625, -0.00835418701171875, -0.019134521484375, -0.03045654296875, 0.01287841796875, -0.04339599609375, 0.05767822265625, -0.06536865234375, -0.04052734375, -0.00856781005859375, 0.049835205078125, 0.0280303955078125, 0.0217437744140625, 0.04144287109375, 0.026123046875, -0.0110321044921875, -0.003826141357421875, 0.022491455078125, -0.004425048828125, -0.0226593017578125, -0.045013427734375, 0.0272369384765625, 0.04986572265625, 0.016357421875, 0.00478363037109375, -0.029052734375, 0.07342529296875, 0.01971435546875, 0.0186767578125, 0.0131378173828125, -0.039703369140625, 0.06427001953125, 0.02008056640625, 0.09576416015625, 0.04473876953125, -0.0841064453125, -0.02203369140625, 0.005710601806640625, -0.058441162109375, 0.028228759765625, 0.043701171875, -0.025482177734375, 0.0024871826171875, 0.03759765625, 0.0028228759765625, -0.00701904296875, -0.024658203125, 0.037384033203125, -0.021026611328125, -0.00473785400390625, 0.0189666748046875, -0.06805419921875, -0.025421142578125, 0.0114288330078125, 0.00921630859375, -0.0258636474609375, 0.06622314453125, 0.00960540771484375, -0.00629425048828125, -0.0264129638671875, 0.03326416015625, -0.037628173828125, -0.0254364013671875, 0.01354217529296875, 0.0115509033203125, 0.0157318115234375, 0.001056671142578125, -0.02850341796875, 0.018707275390625, 0.023895263671875, -0.0264739990234375, 0.0021457672119140625, 0.0087738037109375, 0.0167083740234375, -0.0114593505859375, -0.00994110107421875, -0.03076171875, 0.02655029296875, 0.01078033447265625, -0.040374755859375, 0.03192138671875, -0.005157470703125, 0.0186309814453125, 0.03424072265625, 0.0162200927734375, -0.026092529296875, 0.0273284912109375, -0.0521240234375, 0.055511474609375, 0.038604736328125, 0.0193328857421875, -0.0019083023071289062, 0.017486572265625, -0.018707275390625, 0.0012388229370117188, 0.0243072509765625, -0.0100555419921875, 0.0221405029296875, -0.061553955078125, -0.037353515625, -0.036224365234375, 0.00714111328125, -0.017059326171875, -0.015899658203125, -0.0237884521484375, -0.00634002685546875, -0.037750244140625, 0.0294189453125, -0.0172576904296875, 0.01861572265625, -0.007709503173828125, 0.01457977294921875, 0.0175323486328125, -0.0301361083984375, -0.037841796875, 0.0033702850341796875, 0.072509765625, 0.0245513916015625, -0.1038818359375, 0.02862548828125, -0.03656005859375, 0.06982421875, 0.025421142578125, -0.0139312744140625, -0.004791259765625, 0.06414794921875, 0.005138397216796875, -0.00640106201171875, -0.01702880859375, 0.01229095458984375, -0.008880615234375, 0.02044677734375, 0.043670654296875, -0.023590087890625, -0.0163421630859375, 0.0133209228515625, 0.00934600830078125, 0.061614990234375, 0.0095062255859375, -0.0277252197265625, -0.006237030029296875, 0.00904083251953125, -0.01355743408203125, -0.0386962890625, 0.01410675048828125, -0.046966552734375, -0.02838134765625, 0.00899505615234375, 0.0202484130859375, 0.037139892578125, -0.0020618438720703125, -0.0404052734375, 0.044769287109375, -0.0007891654968261719, -0.0272369384765625, -0.05206298828125, 0.0167388916015625, 0.001300811767578125, -0.003482818603515625, -0.0094757080078125, -0.026824951171875, -0.03387451171875, 0.01019287109375, -0.002498626708984375, 0.035614013671875, 0.01187896728515625, 0.021270751953125, -0.0181884765625, 0.0220794677734375, 0.004119873046875, -0.007228851318359375, 0.0006823539733886719, -0.01145172119140625, 0.0250701904296875, 0.0113983154296875, -0.053619384765625, 0.05279541015625, 0.0123443603515625, 0.051788330078125, -0.01324462890625, -0.06365966796875, -0.01430511474609375, -0.04931640625, 0.019561767578125, 0.0250244140625, 0.0058746337890625, 0.005100250244140625, -0.002521514892578125, -0.036956787109375, -0.01528167724609375, -0.02520751953125, 0.006565093994140625, -0.04144287109375, 0.00835418701171875, 0.0095672607421875, 0.007656097412109375, 0.0078887939453125, -0.02490234375, -0.0206756591796875, -0.014739990234375, 0.0123748779296875, 0.02349853515625, -0.08074951171875, 0.11279296875, -0.0296783447265625, -0.01462554931640625, 0.0032863616943359375, -0.031005859375, -0.04351806640625, -0.0160064697265625, -0.035125732421875, -0.0013723373413085938, -0.01070404052734375, -0.00716400146484375, 0.017242431640625, 0.00820159912109375, -0.005290985107421875, -0.01125335693359375, -0.003208160400390625, -0.013702392578125, 0.031829833984375, 0.002346038818359375, 0.026885986328125, -0.04071044921875, 0.0634765625, 0.0267181396484375, 0.043487548828125, 0.009063720703125, 0.01861572265625, -0.00914764404296875, 0.0309295654296875, -0.00498199462890625, -0.0131378173828125, 0.0121917724609375, 0.0023555755615234375, 0.01123809814453125, -0.0273895263671875, -0.01174163818359375, -0.0208587646484375, 0.01495361328125, -0.01508331298828125, -0.0310211181640625, 0.0195465087890625 ]
7eea49fce6a8bca927f0ad07a507ab5a61575649
Wordpress Stackexchange Q: get a specific taxonomy term name I need to print a specific term with its id. I get that for categories with this code: <a href="<?php echo get_category_link(1); ?>" title="<?php echo get_cat_name(1);?>"><?php echo get_cat_name(1);?></a> … where 1 is the id I have to print. Is there something like the following? <?php echo get_term_link(1); ?> or <?php echo get_term_name(1); ?> A: Since WP 2.3.0, there is an API to get term's fields : get_term_field(). So, I would rather use <?php get_term_field( 'key', $term ); ?> which is pretty handy : * *key : could be multiple : link, name, etc. *$term : can either be the term_id or the \WP_Term object.
Q: get a specific taxonomy term name I need to print a specific term with its id. I get that for categories with this code: <a href="<?php echo get_category_link(1); ?>" title="<?php echo get_cat_name(1);?>"><?php echo get_cat_name(1);?></a> … where 1 is the id I have to print. Is there something like the following? <?php echo get_term_link(1); ?> or <?php echo get_term_name(1); ?> A: Since WP 2.3.0, there is an API to get term's fields : get_term_field(). So, I would rather use <?php get_term_field( 'key', $term ); ?> which is pretty handy : * *key : could be multiple : link, name, etc. *$term : can either be the term_id or the \WP_Term object. A: Use get_term() to get the name, slug, or description: $term = get_term( 1, 'taxonomy_slug' ); // Name echo $term->name; // Link echo get_term_link(1, 'taxonomy_slug'); // OR echo get_term_link( $term );
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:425359", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71089" }
[ 0.006931304931640625, 0.00318145751953125, -0.031463623046875, -0.00196075439453125, 0.0141754150390625, -0.029022216796875, 0.03668212890625, 0.0112762451171875, 0.0022029876708984375, 0.007404327392578125, -0.032470703125, -0.005649566650390625, -0.01168060302734375, -0.034423828125, 0.00801849365234375, -0.0474853515625, 0.0309295654296875, -0.027618408203125, 0.0034389495849609375, 0.0020885467529296875, 0.012603759765625, 0.0226287841796875, 0.02001953125, -0.00196075439453125, 0.03668212890625, -0.05889892578125, 0.069580078125, -0.0303497314453125, 0.032440185546875, -0.0291748046875, 0.0291595458984375, -0.00879669189453125, 0.0111236572265625, 0.0038509368896484375, 0.007007598876953125, -0.0037899017333984375, 0.033050537109375, -0.014495849609375, 0.011383056640625, 0.024139404296875, 0.0286865234375, -0.01224517822265625, -0.0117645263671875, 0.00803375244140625, -0.029632568359375, -0.01244354248046875, 0.01457977294921875, -0.0139923095703125, 0.008087158203125, 0.0046844482421875, 0.021942138671875, 0.027801513671875, 0.00746917724609375, 0.00830841064453125, 0.00002759695053100586, 0.0158233642578125, 0.02935791015625, -0.057342529296875, 0.02978515625, -0.04290771484375, -0.033721923828125, -0.03424072265625, 0.054046630859375, 0.004436492919921875, -0.006336212158203125, 0.03155517578125, 0.039886474609375, 0.00750732421875, -0.0005841255187988281, -0.0254058837890625, -0.00617218017578125, -0.01654052734375, 0.0152435302734375, 0.00901031494140625, -0.040771484375, -0.063232421875, 0.0380859375, -0.051300048828125, 0.01030731201171875, -0.0057373046875, -0.003734588623046875, -0.03338623046875, -0.050048828125, 0.0305328369140625, 0.01007843017578125, 0.057281494140625, -0.0101165771484375, -0.030120849609375, -0.0246124267578125, -0.054229736328125, -0.009063720703125, -0.038238525390625, -0.0377197265625, -0.024261474609375, -0.007114410400390625, -0.03973388671875, -0.0093841552734375, 0.06292724609375, -0.01092529296875, 0.028564453125, -0.0360107421875, -0.006465911865234375, 0.0262603759765625, -0.035980224609375, -0.00982666015625, 0.04327392578125, 0.034423828125, 0.044097900390625, 0.018798828125, -0.0010833740234375, 0.0017852783203125, 0.0048065185546875, -0.0090789794921875, 0.0107421875, -0.0232696533203125, 0.0278472900390625, -0.0230712890625, -0.006671905517578125, -0.0195159912109375, 0.0256805419921875, 0.005741119384765625, 0.0276641845703125, 0.01259613037109375, 0.01496124267578125, -0.0193328857421875, -0.00612640380859375, -0.005863189697265625, -0.04840087890625, 0.0002453327178955078, -0.0145416259765625, -0.049072265625, 0.014862060546875, 0.09326171875, 0.0416259765625, 0.034912109375, -0.00818634033203125, -0.0181732177734375, 0.004138946533203125, -0.00799560546875, 0.00882720947265625, -0.02874755859375, 0.005596160888671875, 0.06329345703125, -0.033477783203125, -0.01007080078125, 0.008514404296875, 0.018402099609375, 0.0229949951171875, -0.0222930908203125, -0.024322509765625, 0.002246856689453125, -0.004566192626953125, 0.044342041015625, -0.0079193115234375, -0.0240020751953125, -0.03759765625, 0.033355712890625, -0.043914794921875, -0.031585693359375, -0.04833984375, 0.0494384765625, -0.00829315185546875, -0.02142333984375, 0.0006804466247558594, -0.02081298828125, -0.00579071044921875, -0.040985107421875, -0.00821685791015625, 0.0098114013671875, -0.012054443359375, 0.0200042724609375, -0.01446533203125, -0.01485443115234375, -0.0140380859375, -0.00572967529296875, 0.0015716552734375, -0.040496826171875, 0.00353240966796875, 0.0382080078125, -0.0304412841796875, -0.0233612060546875, -0.0246124267578125, 0.004596710205078125, 0.0017223358154296875, -0.041107177734375, 0.026885986328125, 0.0213623046875, 0.0732421875, 0.00901031494140625, 0.022918701171875, 0.032806396484375, 0.00441741943359375, -0.04791259765625, 0.00913238525390625, 0.00899505615234375, 0.0082550048828125, -0.04229736328125, -0.0016374588012695312, -0.0208587646484375, -0.014404296875, -0.0008411407470703125, -0.01030731201171875, -0.0016298294067382812, 0.0005736351013183594, -0.031646728515625, -0.005245208740234375, -0.01453399658203125, 0.0271453857421875, -0.015289306640625, -0.006565093994140625, 0.0192108154296875, -0.0284423828125, -0.007450103759765625, -0.025390625, -0.0491943359375, -0.0008358955383300781, -0.041290283203125, -0.023773193359375, -0.01314544677734375, -0.026611328125, 0.00255584716796875, 0.0146942138671875, -0.007228851318359375, 0.013885498046875, 0.0250701904296875, 0.0291290283203125, -0.0343017578125, 0.0037212371826171875, 0.01226806640625, 0.03765869140625, -0.030181884765625, -0.0017871856689453125, 0.02581787109375, 0.09747314453125, 0.032257080078125, -0.0010166168212890625, 0.05364990234375, -0.059356689453125, 0.031707763671875, 0.0168304443359375, 0.02197265625, -0.019073486328125, -0.039459228515625, -0.0421142578125, 0.043853759765625, -0.00922393798828125, -0.0038738250732421875, -0.03009033203125, 0.01141357421875, 0.054962158203125, -0.0138092041015625, 0.0178375244140625, -0.004756927490234375, -0.0202484130859375, -0.00969696044921875, 0.0396728515625, -0.03839111328125, -0.008819580078125, -0.00876617431640625, 0.01259613037109375, -0.009185791015625, -0.0256805419921875, 0.0166168212890625, -0.0253143310546875, 0.00591278076171875, 0.032073974609375, 0.0277557373046875, 0.0307464599609375, -0.044281005859375, 0.013519287109375, 0.0146484375, 0.02850341796875, -0.0014934539794921875, 0.0382080078125, -0.00788116455078125, -0.0245361328125, -0.0098724365234375, -0.0024662017822265625, -0.007694244384765625, 0.00460052490234375, 0.01337432861328125, 0.065185546875, 0.01189422607421875, -0.01434326171875, -0.016998291015625, -0.072998046875, -0.003139495849609375, 0.0137786865234375, -0.0657958984375, 0.01410675048828125, 0.016815185546875, 0.0794677734375, -0.0032901763916015625, 0.0036945343017578125, -0.051025390625, 0.0621337890625, -0.00457000732421875, -0.0258941650390625, 0.017578125, -0.0204010009765625, 0.004108428955078125, 0.0450439453125, 0.0016984939575195312, 0.0131072998046875, -0.001880645751953125, -0.01067352294921875, 0.01047515869140625, -0.0258636474609375, -0.0255584716796875, 0.01247406005859375, -0.079833984375, 0.01531982421875, 0.00791168212890625, 0.09478759765625, -0.03973388671875, -0.06805419921875, -0.0205078125, 0.004436492919921875, -0.10595703125, -0.06695556640625, -0.02410888671875, -0.03857421875, 0.00040268898010253906, 0.0169525146484375, -0.0171661376953125, -0.0007443428039550781, 0.033294677734375, 0.0027675628662109375, 0.05401611328125, -0.0462646484375, -0.064453125, -0.04266357421875, -0.08380126953125, -0.00750732421875, -0.0065460205078125, -0.0006189346313476562, 0.01352691650390625, 0.033416748046875, 0.004680633544921875, -0.047943115234375, 0.02178955078125, 0.0364990234375, -0.01383209228515625, 0.006988525390625, -0.041229248046875, -0.006244659423828125, -0.02081298828125, -0.00032210350036621094, 0.0160980224609375, 0.0015716552734375, 0.0131378173828125, -0.0008993148803710938, -0.0030307769775390625, 0.02752685546875, 0.0390625, 0.005794525146484375, -0.01190948486328125, 0.0390625, 0.03656005859375, -0.0202178955078125, 0.028350830078125, -0.0260772705078125, -0.006473541259765625, 0.00521087646484375, -0.0171356201171875, -0.002288818359375, -0.0204925537109375, 0.0135650634765625, -0.04400634765625, -0.0117645263671875, -0.050628662109375, -0.01224517822265625, 0.0275115966796875, -0.0124664306640625, -0.00992584228515625, 0.049163818359375, -0.0258636474609375, -0.032684326171875, -0.0013055801391601562, -0.0238037109375, 0.01158905029296875, -0.0252227783203125, 0.008209228515625, -0.033447265625, -0.07781982421875, 0.038970947265625, -0.0684814453125, 0.007770538330078125, -0.051666259765625, -0.0157928466796875, -0.0015716552734375, 0.0965576171875, -0.004856109619140625, -0.0279541015625, -0.036102294921875, -0.00678253173828125, -0.02325439453125, -0.036224365234375, -0.013916015625, 0.00644683837890625, -0.087646484375, -0.00617218017578125, -0.01139068603515625, -0.037506103515625, -0.032501220703125, 0.03326416015625, -0.0704345703125, -0.0292510986328125, 0.042572021484375, -0.055023193359375, 0.0026721954345703125, 0.02294921875, -0.00783538818359375, 0.0036525726318359375, -0.035614013671875, -0.0203399658203125, -0.038787841796875, -0.0169677734375, -0.00275421142578125, 0.00818634033203125, 0.01488494873046875, -0.035003662109375, 0.0233154296875, 0.053466796875, 0.006572723388671875, 0.00936126708984375, 0.012603759765625, 0.0106658935546875, -0.0243072509765625, 0.007488250732421875, 0.0021648406982421875, -0.04052734375, -0.016265869140625, -0.0220947265625, -0.0213623046875, 0.03460693359375, -0.01116943359375, 0.0308074951171875, -0.01303863525390625, -0.010650634765625, -0.052032470703125, -0.0257110595703125, 0.02484130859375, 0.0063934326171875, 0.0034503936767578125, 0.01444244384765625, -0.025115966796875, -0.050750732421875, 0.0501708984375, 0.0286865234375, -0.035247802734375, -0.00479888916015625, 0.0670166015625, 0.01529693603515625, -0.0380859375, -0.0753173828125, 0.02764892578125, 0.035400390625, -0.012847900390625, 0.032012939453125, 0.006671905517578125, -0.034271240234375, 0.07489013671875, -0.0095672607421875, 0.022247314453125, -0.02227783203125, 0.037353515625, -0.036376953125, -0.05462646484375, 0.04473876953125, -0.03387451171875, 0.00655364990234375, 0.040008544921875, -0.033355712890625, -0.030181884765625, -0.01062774658203125, 0.07861328125, -0.05023193359375, 0.06494140625, -0.04058837890625, -0.026153564453125, 0.01232147216796875, 0.0035686492919921875, 0.0025005340576171875, 0.0213470458984375, -0.01036834716796875, -0.006298065185546875, -0.00795745849609375, 0.0014476776123046875, 0.004100799560546875, -0.00742340087890625, 0.01288604736328125, 0.00867462158203125, 0.002437591552734375, -0.0212860107421875, -0.01149749755859375, -0.00262451171875, 0.024169921875, -0.00342559814453125, -0.046875, 0.033416748046875, -0.01445770263671875, -0.0205078125, 0.03173828125, 0.006893157958984375, 0.011566162109375, 0.00684356689453125, -0.005855560302734375, 0.00800323486328125, -0.00624847412109375, -0.00019490718841552734, -0.0025177001953125, 0.016510009765625, -0.017822265625, 0.010772705078125, 0.02264404296875, 0.06707763671875, -0.0396728515625, 0.06134033203125, -0.01557159423828125, 0.007732391357421875, -0.01020050048828125, 0.031890869140625, 0.024749755859375, -0.032867431640625, 0.004222869873046875, -0.0015821456909179688, 0.0005054473876953125, -0.03277587890625, 0.002918243408203125, -0.0167388916015625, 0.03167724609375, 0.006641387939453125, -0.012542724609375, 0.03826904296875, -0.0262298583984375, -0.00922393798828125, -0.001865386962890625, -0.0251312255859375, -0.021484375, -0.02099609375, 0.01058197021484375, 0.02838134765625, 0.0009207725524902344, -0.006195068359375, 0.0212249755859375, -0.0076751708984375, 0.038299560546875, -0.014617919921875, 0.006183624267578125, 0.00907135009765625, 0.01265716552734375, -0.044158935546875, -0.0135955810546875, 0.0033817291259765625, -0.02545166015625, -0.031341552734375, -0.00920867919921875, -0.045166015625, 0.044647216796875, 0.000820159912109375, 0.0777587890625, -0.0521240234375, -0.0362548828125, -0.002452850341796875, -0.0019073486328125, 0.044525146484375, 0.038482666015625, -0.0469970703125, 0.00208282470703125, -0.0743408203125, -0.01027679443359375, 0.01401519775390625, -0.03314208984375, -0.01055145263671875, -0.0105743408203125, -0.0228271484375, 0.005397796630859375, -0.0059051513671875, 0.0112457275390625, 0.0100250244140625, 0.03533935546875, -0.00732421875, 0.00775146484375, 0.00864410400390625, 0.007381439208984375, -0.01532745361328125, 0.017730712890625, -0.007282257080078125, -0.01995849609375, -0.0167083740234375, -0.01505279541015625, -0.005184173583984375, -0.049957275390625, -0.017791748046875, -0.0018167495727539062, -0.0095977783203125, 0.004276275634765625, 0.0099639892578125, 0.007171630859375, -0.0090484619140625, 0.0037288665771484375, 0.006420135498046875, -0.01242828369140625, -0.000048995018005371094, 0.0172576904296875, -0.0253448486328125, 0.026123046875, -0.051361083984375, -0.02197265625, 0.0200347900390625, 0.038604736328125, 0.015899658203125, -0.053192138671875, -0.001987457275390625, 0.03643798828125, 0.0235443115234375, 0.00036835670471191406, 0.037261962890625, 0.0216064453125, 0.0443115234375, 0.01378631591796875, 0.0369873046875, 0.01080322265625, 0.06005859375, 0.006305694580078125, -0.06781005859375, 0.06805419921875, 0.029693603515625, -0.031402587890625, 0.042327880859375, -0.052520751953125, -0.0073089599609375, -0.015838623046875, 0.03375244140625, 0.007415771484375, 0.0198822021484375, 0.033935546875, -0.020172119140625, -0.004711151123046875, 0.0355224609375, -0.028839111328125, -0.0323486328125, -0.01204681396484375, -0.006160736083984375, -0.0074310302734375, 0.006412506103515625, 0.01503753662109375, 0.00972747802734375, -0.01448822021484375, 0.059906005859375, 0.014556884765625, -0.0089263916015625, -0.0135040283203125, -0.0003399848937988281, 0.021942138671875, -0.042236328125, -0.0127410888671875, 0.01178741455078125, -0.0010652542114257812, -0.04473876953125, 0.062255859375, -0.015960693359375, 0.0286102294921875, 0.0015859603881835938, 0.002490997314453125, 0.015777587890625, 0.048431396484375, 0.00511932373046875, -0.006305694580078125, 0.0269775390625, -0.00786590576171875, 0.01435089111328125, -0.01007080078125, -0.004486083984375, 0.0276641845703125, -0.059967041015625, 0.01264190673828125, -0.0247039794921875, 0.019012451171875, -0.0254364013671875, -0.037078857421875, 0.0970458984375, -0.027374267578125, -0.010955810546875, 0.0033416748046875, 0.0455322265625, 0.011810302734375, -0.0035114288330078125, 0.00531768798828125, -0.037322998046875, 0.0130767822265625, -0.00567626953125, 0.00905609130859375, 0.023223876953125, -0.005741119384765625, -0.06256103515625, 0.059478759765625, 0.039703369140625, -0.00357818603515625, -0.01123046875, 0.0167694091796875, -0.033050537109375, -0.0009236335754394531, -0.0501708984375, 0.0697021484375, 0.038909912109375, 0.03564453125, -0.04241943359375, -0.0142822265625, 0.00868988037109375, 0.022216796875, 0.033660888671875, 0.015960693359375, -0.0222015380859375, -0.0251007080078125, 0.01141357421875, 0.039642333984375, -0.01534271240234375, 0.0240631103515625, 0.034332275390625, 0.01373291015625, 0.08148193359375, -0.0216064453125, 0.034149169921875, 0.00867462158203125, 0.042083740234375, 0.06256103515625, 0.00887298583984375, 0.02252197265625, -0.009063720703125, 0.0089569091796875, -0.0406494140625, -0.00440216064453125, 0.041748046875, -0.0232086181640625, -0.0007524490356445312, 0.051177978515625, 0.038909912109375, -0.0355224609375, 0.032318115234375, -0.04132080078125, 0.06573486328125, -0.00177001953125, 0.027374267578125, 0.07037353515625, 0.02532958984375, 0.054779052734375, -0.008392333984375, 0.0279388427734375, -0.0114288330078125, -0.0064544677734375, 0.050567626953125, -0.004390716552734375, 0.00949859619140625, -0.0628662109375, -0.0028667449951171875, 0.0310516357421875, 0.0653076171875, -0.051605224609375, -0.07183837890625, 0.002704620361328125, -0.00836944580078125, 0.023529052734375, 0.0638427734375, 0.04217529296875, 0.0645751953125, 0.08758544921875, -0.06939697265625, 0.017181396484375, 0.047760009765625, 0.043365478515625, -0.004077911376953125, -0.0251312255859375, -0.08935546875, -0.0235443115234375, -0.069091796875, 0.04071044921875, 0.0277862548828125, 0.04705810546875, -0.0081787109375, 0.06585693359375, 0.000896453857421875, -0.0111236572265625, 0.01434326171875, 0.018707275390625, 0.0298309326171875, -0.035675048828125, 0.017822265625, -0.006954193115234375, -0.0011053085327148438, 0.00566864013671875, 0.0135650634765625, -0.0134124755859375, 0.0150299072265625, 0.00907135009765625, -0.0261383056640625, 0.0007596015930175781, 0.01374053955078125, -0.022216796875, -0.0168914794921875, -0.03765869140625, 0.01526641845703125, 0.035491943359375, 0.0010852813720703125, 0.0268707275390625, 0.00185394287109375, 0.046234130859375, -0.046142578125, 0.0489501953125, -0.0018024444580078125, -0.03131103515625, 0.0506591796875, -0.017120361328125, 0.06829833984375, -0.01398468017578125, -0.108154296875, 0.0013294219970703125, -0.033447265625, -0.05950927734375, 0.036590576171875, 0.042449951171875, -0.0125732421875, -0.006122589111328125, -0.0260772705078125, -0.02215576171875, 0.013824462890625, 0.007785797119140625, 0.00702667236328125, 0.026519775390625, -0.006000518798828125, -0.00902557373046875, -0.0215301513671875, 0.00980377197265625, 0.0104522705078125, -0.01500701904296875, 0.040283203125, 0.022552490234375, 0.0229949951171875, 0.01483154296875, -0.03192138671875, 0.03741455078125, -0.072021484375, -0.044952392578125, 0.054962158203125, -0.01214599609375, -0.005615234375, 0.0020389556884765625, -0.0592041015625, 0.047454833984375, 0.0177459716796875, 0.0032176971435546875, 0.043426513671875, -0.014892578125, 0.0119781494140625, -0.0215301513671875, 0.0482177734375, -0.00485992431640625, -0.042572021484375, -0.0341796875, -0.00936126708984375, 0.0265655517578125, 0.095703125, 0.039337158203125, -0.0278778076171875, 0.03564453125, -0.032012939453125, 0.03240966796875, 0.010345458984375, 0.07464599609375, 0.035552978515625, 0.014739990234375, 0.002635955810546875, -0.0218505859375, -0.022186279296875, 0.0072479248046875, -0.004337310791015625, 0.002635955810546875, -0.0269622802734375, 0.0037746429443359375, 0.003032684326171875, -0.0257110595703125, 0.023651123046875, -0.040496826171875, -0.004734039306640625, 0.0217437744140625, 0.0305023193359375, -0.029510498046875, -0.06732177734375, -0.0306243896484375, -0.0416259765625, 0.00933074951171875, 0.03106689453125, 0.0052032470703125, -0.003143310546875, -0.01055908203125, -0.04132080078125, 0.0261688232421875, -0.0229644775390625, 0.0296630859375, -0.023773193359375, -0.0171661376953125, -0.01430511474609375, -0.0079193115234375, -0.0168304443359375, 0.01488494873046875, 0.0523681640625, -0.0193939208984375, -0.000766754150390625, -0.021209716796875, -0.01010894775390625, -0.02435302734375, 0.020294189453125, 0.0154266357421875, -0.0206298828125, -0.006389617919921875, 0.05218505859375, 0.02374267578125, 0.083740234375, 0.05059814453125, -0.036376953125, 0.00109100341796875, -0.0013170242309570312, -0.026123046875, -0.0212860107421875, 0.03863525390625, -0.037017822265625, -0.052886962890625, 0.025177001953125, -0.0200653076171875, 0.0176239013671875, -0.028564453125, -0.05755615234375, 0.034149169921875, -0.00542449951171875, -0.043792724609375, -0.01140594482421875, -0.0245208740234375, -0.004047393798828125, 0.0139007568359375, 0.0078887939453125, -0.00960540771484375, -0.03515625, 0.01715087890625, 0.0236053466796875, 0.0003657341003417969, 0.0261688232421875, 0.033935546875, -0.068359375, 0.027557373046875, -0.003955841064453125, 0.01351165771484375, -0.00046563148498535156, -0.0005121231079101562, 0.01526641845703125, 0.01285552978515625, -0.049957275390625, 0.004180908203125, -0.0057830810546875, 0.047332763671875, -0.0186004638671875, -0.0338134765625, -0.0308990478515625, 0.0018835067749023438, 0.03411865234375, 0.06658935546875, 0.00759124755859375, -0.052764892578125, -0.054229736328125, -0.0243072509765625, -0.0251617431640625, -0.0295867919921875, 0.03875732421875, -0.10540771484375, -0.0128631591796875, 0.025390625, -0.034637451171875, -0.011077880859375, 0.0123291015625, -0.0501708984375, 0.01654052734375, 0.01551055908203125, 0.0014553070068359375, -0.03289794921875, 0.0252227783203125, 0.03460693359375, -0.040191650390625, -0.0249786376953125, -0.03472900390625, 0.0210418701171875, -0.013031005859375, -0.08154296875, -0.000055849552154541016, 0.0002104043960571289, -0.01439666748046875, -0.007144927978515625, 0.01136016845703125, 0.006298065185546875, 0.017242431640625, -0.0036640167236328125, -0.0236968994140625, 0.0274505615234375, 0.012359619140625, 0.01349639892578125, -0.04022216796875, 0.045501708984375, 0.0203704833984375, 0.053985595703125, 0.0180816650390625, 0.0288543701171875, -0.00489044189453125, 0.06658935546875, -0.00812530517578125, -0.04058837890625, -0.01189422607421875, -0.037353515625, 0.0167388916015625, -0.00750732421875, 0.00911712646484375, 0.00611114501953125, -0.0098724365234375, -0.01183319091796875, -0.027587890625, 0.0028095245361328125 ]
87cac6ed0b5f792cab28f57138bd1fdcb8162075
Wordpress Stackexchange Q: permalinks with get variables I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { global $wp_query; array_push($vars, 'cat_name'); array_push($vars, 'group'); return $vars; } and making my own rule as it follows function drivers_rewrite_rules( $rules ) { global $wp_rewrite; $newrules = array( 'drivers/([^/]+)/([^/]+)/([^/]+)/?$' => 'index.php?pagename=drivers&cat_name=$matches[1]&group=$matches[2]&product=$matches[3]' ); $finalrules = $newrules + $rules; return $finalrules; } my rewrite rule is not getting executed on the second and third variable when I var_dump($wp_query->query_vars) I see just my cat_name variable. if I access with the following url structure than it's okay ?pagename=drivers&cat_name=Desktops&group=Alienware
Q: permalinks with get variables I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { global $wp_query; array_push($vars, 'cat_name'); array_push($vars, 'group'); return $vars; } and making my own rule as it follows function drivers_rewrite_rules( $rules ) { global $wp_rewrite; $newrules = array( 'drivers/([^/]+)/([^/]+)/([^/]+)/?$' => 'index.php?pagename=drivers&cat_name=$matches[1]&group=$matches[2]&product=$matches[3]' ); $finalrules = $newrules + $rules; return $finalrules; } my rewrite rule is not getting executed on the second and third variable when I var_dump($wp_query->query_vars) I see just my cat_name variable. if I access with the following url structure than it's okay ?pagename=drivers&cat_name=Desktops&group=Alienware
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:425378", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71156" }
[ -0.0011653900146484375, -0.044158935546875, 0.00714111328125, -0.01318359375, -0.043243408203125, 0.004093170166015625, 0.012481689453125, 0.006778717041015625, -0.032470703125, 0.0012712478637695312, -0.0279998779296875, 0.043121337890625, -0.045654296875, -0.009063720703125, 0.01995849609375, -0.0181427001953125, 0.021697998046875, -0.0168304443359375, 0.011383056640625, -0.0099945068359375, 0.0263824462890625, -0.01552581787109375, 0.01241302490234375, 0.031646728515625, 0.019622802734375, -0.0298309326171875, 0.042236328125, -0.01067352294921875, 0.003307342529296875, -0.03411865234375, -0.0016422271728515625, 0.020538330078125, 0.00518035888671875, -0.0036754608154296875, 0.04827880859375, 0.051361083984375, 0.07672119140625, -0.01201629638671875, 0.050994873046875, 0.0190887451171875, 0.023590087890625, -0.014190673828125, 0.0169677734375, 0.0207672119140625, -0.0027294158935546875, -0.030303955078125, 0.031280517578125, -0.057769775390625, 0.01122283935546875, 0.022857666015625, 0.00850677490234375, 0.041412353515625, -0.00043487548828125, 0.037078857421875, 0.0017032623291015625, 0.0035247802734375, -0.01018524169921875, -0.0203857421875, 0.038421630859375, -0.005970001220703125, -0.016754150390625, -0.0279083251953125, 0.024169921875, -0.0208892822265625, -0.016510009765625, 0.006683349609375, 0.0234222412109375, 0.0259552001953125, -0.0239105224609375, -0.03729248046875, -0.0008368492126464844, -0.001323699951171875, -0.00701904296875, 0.0041961669921875, -0.0240020751953125, -0.05609130859375, 0.040069580078125, -0.03839111328125, -0.0248260498046875, 0.030731201171875, 0.045562744140625, -0.040313720703125, 0.016571044921875, 0.038909912109375, -0.0079345703125, 0.053924560546875, 0.0103607177734375, -0.03125, -0.0077972412109375, -0.052764892578125, -0.00882720947265625, -0.0457763671875, -0.0382080078125, 0.010650634765625, 0.00457000732421875, -0.034149169921875, 0.0316162109375, 0.0182037353515625, 0.0283203125, 0.0198974609375, 0.0043487548828125, -0.058837890625, 0.041168212890625, -0.036865234375, 0.005306243896484375, 0.028778076171875, 0.045989990234375, 0.0601806640625, 0.050201416015625, -0.01131439208984375, -0.004791259765625, 0.08294677734375, 0.0005006790161132812, 0.05621337890625, -0.072998046875, -0.037628173828125, -0.058685302734375, -0.0325927734375, -0.0308685302734375, 0.003032684326171875, -0.015594482421875, 0.0104522705078125, -0.000023066997528076172, 0.03179931640625, 0.0181427001953125, 0.0311126708984375, 0.0111236572265625, -0.039703369140625, 0.00017571449279785156, 0.06396484375, -0.0274505615234375, -0.011138916015625, 0.021728515625, 0.0272369384765625, 0.00699615478515625, -0.0426025390625, 0.0556640625, -0.0020008087158203125, 0.00994873046875, 0.020416259765625, 0.0124359130859375, -0.054229736328125, -0.0400390625, 0.0176849365234375, 0.005634307861328125, 0.00933074951171875, 0.0220794677734375, 0.019256591796875, -0.01044464111328125, -0.0024890899658203125, -0.01045989990234375, -0.0229644775390625, 0.02728271484375, -0.0012845993041992188, -0.042572021484375, -0.01056671142578125, -0.001605987548828125, -0.0032291412353515625, -0.0238494873046875, -0.0151824951171875, 0.038055419921875, 0.01291656494140625, 0.022552490234375, -0.00962066650390625, -0.0157318115234375, -0.0447998046875, -0.051483154296875, -0.00771331787109375, 0.01096343994140625, 0.0010156631469726562, -0.00616455078125, -0.0292510986328125, -0.021270751953125, 0.008026123046875, 0.0130767822265625, 0.0183563232421875, -0.0228729248046875, -0.004894256591796875, 0.028961181640625, -0.01306915283203125, -0.0276641845703125, -0.04833984375, 0.01404571533203125, -0.002353668212890625, -0.06964111328125, 0.0633544921875, 0.00875091552734375, 0.08062744140625, -0.0227508544921875, -0.0015869140625, 0.05419921875, 0.031219482421875, -0.03057861328125, 0.0517578125, -0.01519775390625, -0.037689208984375, 0.034088134765625, 0.021270751953125, -0.0065155029296875, -0.0183563232421875, -0.003017425537109375, 0.0188446044921875, 0.00783538818359375, 0.0007042884826660156, -0.016998291015625, 0.03302001953125, -0.0180206298828125, 0.0227813720703125, -0.0117645263671875, 0.0180511474609375, 0.0222930908203125, 0.00997161865234375, -0.03125, -0.01172637939453125, -0.00298309326171875, 0.04083251953125, 0.034454345703125, 0.05023193359375, -0.005367279052734375, -0.00048232078552246094, 0.0294036865234375, -0.04302978515625, 0.051025390625, 0.08270263671875, -0.01611328125, 0.004901885986328125, -0.0228118896484375, 0.015869140625, -0.025543212890625, 0.00969696044921875, 0.012359619140625, 0.0179443359375, 0.0211181640625, 0.0667724609375, -0.018707275390625, -0.0159149169921875, -0.024932861328125, -0.02459716796875, 0.00691986083984375, 0.03851318359375, 0.03790283203125, 0.055145263671875, -0.01038360595703125, -0.0225067138671875, -0.005802154541015625, -0.08221435546875, 0.007904052734375, -0.037872314453125, -0.024566650390625, 0.0256500244140625, 0.01505279541015625, 0.01483154296875, -0.0219268798828125, -0.032958984375, -0.01108551025390625, 0.02435302734375, -0.05810546875, -0.01038360595703125, -0.0219573974609375, 0.0006461143493652344, 0.0057373046875, -0.0345458984375, 0.00832366943359375, -0.037200927734375, 0.020355224609375, -0.0205078125, 0.0094757080078125, 0.008270263671875, -0.01215362548828125, -0.0170745849609375, 0.0206146240234375, 0.0171051025390625, -0.0117950439453125, -0.042205810546875, 0.01302337646484375, -0.0204620361328125, -0.04730224609375, 0.032135009765625, 0.03765869140625, -0.036346435546875, -0.0377197265625, 0.016998291015625, -0.00878143310546875, -0.01406097412109375, -0.03521728515625, -0.00911712646484375, 0.0228271484375, -0.0306549072265625, 0.037994384765625, 0.026824951171875, 0.044189453125, 0.01166534423828125, -0.01194000244140625, 0.018768310546875, 0.0147247314453125, -0.012847900390625, 0.0374755859375, -0.018096923828125, 0.036712646484375, -0.0302734375, 0.0290374755859375, 0.059814453125, -0.020660400390625, 0.01202392578125, 0.0025959014892578125, -0.001117706298828125, 0.0247955322265625, -0.004566192626953125, -0.0243988037109375, 0.00008416175842285156, -0.08935546875, -0.040435791015625, 0.0277557373046875, 0.038665771484375, 0.0006055831909179688, -0.033599853515625, -0.0004940032958984375, 0.020721435546875, -0.04388427734375, -0.03985595703125, 0.0615234375, -0.0157318115234375, 0.0207061767578125, -0.002437591552734375, -0.00818634033203125, -0.04241943359375, 0.006511688232421875, -0.011932373046875, -0.0082550048828125, 0.00159454345703125, -0.0733642578125, -0.0562744140625, -0.08477783203125, 0.0175628662109375, -0.004924774169921875, 0.0281219482421875, -0.003437042236328125, 0.034576416015625, 0.004619598388671875, -0.007328033447265625, 0.0293731689453125, -0.0189361572265625, -0.0022029876708984375, -0.0119171142578125, -0.0004265308380126953, -0.00788116455078125, -0.02777099609375, -0.01120758056640625, 0.0269012451171875, 0.039581298828125, -0.039642333984375, 0.02099609375, 0.0032196044921875, 0.03460693359375, 0.034515380859375, -0.0322265625, -0.01971435546875, 0.04217529296875, 0.018646240234375, -0.0266571044921875, -0.053985595703125, 0.0211181640625, -0.0247802734375, -0.00930023193359375, -0.013153076171875, 0.002483367919921875, 0.00720977783203125, 0.042388916015625, 0.0156707763671875, -0.0128936767578125, -0.0180206298828125, -0.03289794921875, 0.023681640625, 0.0157318115234375, 0.054412841796875, 0.0128631591796875, 0.057525634765625, -0.0163726806640625, -0.00981903076171875, 0.011749267578125, -0.056182861328125, -0.026275634765625, -0.0306243896484375, -0.0156402587890625, -0.039093017578125, 0.037811279296875, -0.059814453125, -0.00766754150390625, -0.050689697265625, -0.0126495361328125, -0.037811279296875, 0.0697021484375, 0.01593017578125, -0.033233642578125, -0.00640869140625, 0.0203399658203125, -0.057708740234375, -0.0814208984375, 0.018402099609375, -0.008758544921875, -0.0703125, -0.01177978515625, -0.019500732421875, -0.029876708984375, -0.00727081298828125, -0.03521728515625, -0.031494140625, -0.047637939453125, 0.0357666015625, -0.0011854171752929688, -0.0357666015625, -0.00020956993103027344, -0.0199737548828125, -0.039642333984375, -0.044677734375, 0.0253448486328125, -0.07037353515625, -0.0199737548828125, 0.0241851806640625, 0.05230712890625, -0.006412506103515625, -0.03448486328125, -0.01105499267578125, 0.060821533203125, -0.00971221923828125, -0.01136016845703125, 0.0007414817810058594, 0.0165557861328125, -0.0238494873046875, 0.030426025390625, 0.005218505859375, -0.00897216796875, -0.0001252889633178711, -0.0196685791015625, -0.0258636474609375, -0.004009246826171875, -0.02435302734375, -0.0024776458740234375, -0.0124664306640625, -0.0166473388671875, -0.02874755859375, -0.003971099853515625, 0.00009709596633911133, 0.05426025390625, -0.002513885498046875, 0.0010061264038085938, -0.0260467529296875, -0.053863525390625, 0.048492431640625, -0.00469207763671875, 0.00725555419921875, -0.014068603515625, 0.0552978515625, 0.00862884521484375, -0.03338623046875, 0.0362548828125, 0.0157623291015625, 0.050994873046875, -0.02935791015625, 0.0186614990234375, 0.0179901123046875, -0.036895751953125, 0.0252838134765625, 0.0001245737075805664, 0.002559661865234375, -0.0178680419921875, 0.0034580230712890625, -0.01007843017578125, -0.0232696533203125, 0.0119171142578125, -0.0142974853515625, 0.04119873046875, 0.02471923828125, -0.0215301513671875, -0.0294647216796875, -0.01080322265625, 0.07159423828125, -0.028778076171875, 0.035125732421875, -0.0455322265625, -0.006046295166015625, 0.01361083984375, 0.00732421875, 0.057708740234375, 0.02178955078125, 0.0055694580078125, 0.0161895751953125, -0.0222625732421875, 0.0005636215209960938, 0.02734375, 0.021270751953125, 0.0006361007690429688, 0.015594482421875, 0.038299560546875, -0.011016845703125, 0.005702972412109375, 0.00725555419921875, 0.01470947265625, 0.01141357421875, -0.0296478271484375, 0.01444244384765625, -0.021728515625, 0.0180206298828125, -0.002254486083984375, -0.0243988037109375, -0.00557708740234375, 0.042999267578125, -0.0078887939453125, 0.028717041015625, 0.0335693359375, -0.0140533447265625, -0.0167999267578125, -0.003696441650390625, -0.0236663818359375, -0.005245208740234375, -0.0180206298828125, 0.050537109375, -0.032135009765625, 0.023284912109375, 0.0207061767578125, -0.0052490234375, 0.005115509033203125, 0.01629638671875, 0.0221710205078125, -0.0100860595703125, -0.0010404586791992188, -0.01044464111328125, 0.0174407958984375, -0.00628662109375, -0.004985809326171875, 0.06597900390625, 0.059234619140625, 0.027984619140625, 0.00231170654296875, -0.05902099609375, -0.04888916015625, -0.0194091796875, -0.00921630859375, -0.0252532958984375, -0.00159454345703125, -0.045501708984375, -0.0086212158203125, 0.03216552734375, 0.023162841796875, -0.01763916015625, 0.01433563232421875, -0.0238037109375, 0.018829345703125, -0.0026683807373046875, 0.0023174285888671875, -0.0009264945983886719, -0.004604339599609375, 0.034088134765625, -0.0006051063537597656, -0.00860595703125, -0.0322265625, 0.00757598876953125, -0.038177490234375, -0.01230621337890625, 0.07586669921875, -0.0011539459228515625, 0.055450439453125, -0.0303955078125, -0.0264129638671875, 0.033935546875, -0.018890380859375, 0.06427001953125, 0.0262298583984375, -0.0159454345703125, -0.01153564453125, -0.01383209228515625, -0.0191192626953125, 0.020233154296875, 0.005649566650390625, -0.014251708984375, 0.003875732421875, -0.034759521484375, 0.004528045654296875, -0.0170135498046875, 0.02520751953125, -0.0025959014892578125, 0.06671142578125, 0.01126861572265625, 0.05902099609375, 0.0230255126953125, 0.0086212158203125, -0.023956298828125, 0.03564453125, 0.00689697265625, -0.00917816162109375, -0.025238037109375, -0.0273590087890625, -0.007266998291015625, -0.07891845703125, -0.0283050537109375, -0.00628662109375, -0.0177764892578125, 0.057891845703125, 0.04364013671875, 0.01180267333984375, 0.007411956787109375, -0.007640838623046875, 0.0156097412109375, -0.0302581787109375, -0.0015649795532226562, -0.054779052734375, -0.007083892822265625, -0.00699615478515625, 0.01953125, 0.0209503173828125, -0.03277587890625, -0.04400634765625, 0.0118560791015625, 0.0284576416015625, 0.005985260009765625, 0.004825592041015625, -0.04437255859375, 0.021759033203125, 0.1058349609375, 0.048797607421875, 0.09539794921875, 0.02294921875, 0.047576904296875, 0.07421875, 0.00646209716796875, 0.040374755859375, 0.012451171875, 0.06048583984375, 0.004535675048828125, 0.0198974609375, 0.060791015625, -0.0184783935546875, -0.020263671875, 0.022369384765625, 0.0063629150390625, -0.052581787109375, -0.01273345947265625, -0.035369873046875, 0.0057830810546875, 0.029876708984375, 0.05645751953125, -0.029296875, -0.00395965576171875, -0.0220947265625, -0.050994873046875, 0.00835418701171875, 0.016876220703125, 0.0240325927734375, 0.0019474029541015625, 0.0037517547607421875, 0.025665283203125, -0.0214691162109375, 0.01213836669921875, -0.07330322265625, 0.005207061767578125, -0.0250244140625, -0.00920867919921875, 0.0275421142578125, 0.025360107421875, -0.00957489013671875, -0.020477294921875, 0.041015625, -0.01404571533203125, -0.0251312255859375, -0.037445068359375, -0.0037059783935546875, 0.05609130859375, 0.00015103816986083984, 0.0222320556640625, -0.057098388671875, -0.00521087646484375, -0.006885528564453125, 0.0292510986328125, -0.0238494873046875, 0.00699615478515625, -0.018890380859375, -0.000782012939453125, -0.00032401084899902344, 0.0013780593872070312, -0.042633056640625, -0.0025844573974609375, -0.0237274169921875, 0.046112060546875, -0.024017333984375, -0.0215606689453125, 0.0211181640625, 0.00788116455078125, 0.007572174072265625, 0.0162811279296875, -0.01456451416015625, -0.0423583984375, -0.06536865234375, 0.003910064697265625, -0.081298828125, 0.0219879150390625, -0.005207061767578125, -0.08306884765625, 0.058380126953125, -0.00885009765625, 0.0909423828125, 0.02978515625, 0.0094146728515625, -0.0146331787109375, -0.0211944580078125, -0.0443115234375, 0.056396484375, 0.047607421875, 0.069580078125, -0.05615234375, -0.041534423828125, 0.025665283203125, 0.0860595703125, 0.01345062255859375, 0.01045989990234375, -0.06390380859375, -0.0450439453125, -0.0010061264038085938, 0.004245758056640625, 0.00937652587890625, 0.055389404296875, 0.022735595703125, 0.03466796875, 0.06072998046875, -0.032745361328125, 0.0199127197265625, -0.029510498046875, 0.006793975830078125, 0.039337158203125, 0.01038360595703125, 0.023956298828125, 0.01049041748046875, 0.007904052734375, -0.044464111328125, 0.00035881996154785156, 0.046142578125, -0.0284881591796875, 0.03302001953125, -0.00354766845703125, 0.032958984375, -0.053466796875, -0.008209228515625, -0.0151519775390625, 0.051422119140625, 0.0014286041259765625, 0.0012311935424804688, 0.03271484375, 0.01009368896484375, 0.0072021484375, 0.020782470703125, 0.0006074905395507812, 0.0159759521484375, 0.035858154296875, 0.08380126953125, 0.041107177734375, 0.060028076171875, -0.00128936767578125, -0.00798797607421875, 0.01490020751953125, 0.09222412109375, -0.039459228515625, -0.032470703125, 0.003253936767578125, 0.0100250244140625, 0.02508544921875, 0.00266265869140625, 0.048492431640625, 0.0217742919921875, 0.028228759765625, -0.03155517578125, 0.00821685791015625, 0.04522705078125, -0.01168060302734375, -0.0011625289916992188, -0.0200958251953125, -0.01029205322265625, 0.052398681640625, -0.034942626953125, -0.01885986328125, 0.0197296142578125, 0.06231689453125, 0.029632568359375, 0.03887939453125, -0.030975341796875, -0.025360107421875, 0.004123687744140625, 0.0258331298828125, -0.0208587646484375, -0.0016374588012695312, -0.00762176513671875, -0.0221405029296875, -0.01067352294921875, 0.025115966796875, 0.02020263671875, 0.005283355712890625, 0.033050537109375, 0.006427764892578125, -0.034027099609375, -0.00574493408203125, 0.01342010498046875, -0.035369873046875, 0.01568603515625, -0.00911712646484375, 0.00769805908203125, 0.0034503936767578125, -0.015350341796875, -0.01540374755859375, 0.03839111328125, 0.003055572509765625, 0.0098876953125, 0.00843048095703125, 0.01015472412109375, -0.0423583984375, -0.00348663330078125, -0.01177215576171875, 0.049072265625, 0.0203399658203125, -0.028594970703125, -0.00373077392578125, -0.02288818359375, -0.04791259765625, 0.01898193359375, 0.0455322265625, 0.01355743408203125, -0.0227203369140625, 0.01421356201171875, 0.0108642578125, -0.00914764404296875, 0.0179595947265625, -0.016876220703125, 0.00838470458984375, 0.052581787109375, 0.01145172119140625, -0.0305328369140625, -0.024810791015625, 0.0025119781494140625, 0.0216827392578125, -0.006130218505859375, 0.11328125, -0.029388427734375, -0.019195556640625, -0.024932861328125, -0.006084442138671875, -0.00621795654296875, -0.0230255126953125, 0.0235748291015625, -0.001888275146484375, -0.02984619140625, -0.00963592529296875, 0.0142669677734375, 0.044525146484375, 0.006053924560546875, -0.0460205078125, 0.039794921875, -0.038421630859375, -0.003841400146484375, -0.00446319580078125, 0.038909912109375, -0.0219879150390625, -0.0699462890625, -0.055755615234375, 0.0022487640380859375, -0.0014133453369140625, 0.028533935546875, -0.028228759765625, 0.057525634765625, 0.06072998046875, 0.0303802490234375, 0.01270294189453125, -0.0018825531005859375, 0.05560302734375, 0.040679931640625, -0.0297393798828125, -0.0137176513671875, -0.043792724609375, -0.031280517578125, -0.0215606689453125, -0.00954437255859375, 0.004119873046875, -0.0207061767578125, -0.0001575946807861328, -0.0114288330078125, -0.007419586181640625, 0.0007963180541992188, -0.0261993408203125, -0.00010085105895996094, 0.00540924072265625, 0.0008478164672851562, 0.003467559814453125, -0.01739501953125, -0.0254364013671875, -0.026123046875, 0.0031452178955078125, 0.01007843017578125, -0.0045013427734375, -0.0160369873046875, -0.017669677734375, 0.045684814453125, 0.0005917549133300781, -0.009765625, -0.056915283203125, 0.052581787109375, -0.041229248046875, 0.07464599609375, -0.049224853515625, -0.01277923583984375, -0.0117950439453125, -0.00884246826171875, -0.026947021484375, -0.0216064453125, -0.046539306640625, 0.01081085205078125, -0.043609619140625, -0.0018854141235351562, 0.01113128662109375, -0.006694793701171875, -0.0273284912109375, -0.00228118896484375, 0.01629638671875, 0.039215087890625, -0.00823974609375, -0.019195556640625, 0.01397705078125, 0.01568603515625, -0.017669677734375, -0.0697021484375, -0.0112457275390625, -0.022186279296875, 0.040283203125, 0.038330078125, -0.033203125, -0.00438690185546875, -0.030853271484375, 0.004039764404296875, 0.0199737548828125, 0.042938232421875, -0.0213623046875, -0.02154541015625, -0.062103271484375, -0.0015974044799804688, 0.047027587890625, 0.00653076171875, -0.039276123046875, -0.07537841796875, 0.0221405029296875, 0.03228759765625, 0.032745361328125, -0.0022792816162109375, 0.0214996337890625, -0.006191253662109375, 0.0413818359375, 0.031951904296875, 0.033172607421875, -0.00392913818359375, 0.01062774658203125, 0.0286712646484375, 0.051605224609375, 0.01503753662109375, 0.0158538818359375, 0.00984954833984375, -0.0576171875, 0.01383209228515625, -0.05853271484375, -0.026397705078125, -0.045379638671875, 0.044189453125, -0.01580810546875, 0.0003497600555419922, -0.00009429454803466797, -0.03363037109375, -0.03729248046875, -0.0289459228515625, -0.0276336669921875, 0.0310516357421875, -0.09185791015625, -0.01477813720703125, 0.01270294189453125, 0.0247802734375, -0.0063323974609375, -0.0219879150390625, -0.005535125732421875, -0.01346588134765625, 0.0181732177734375, 0.005615234375, -0.01187896728515625, -0.002960205078125, 0.07733154296875, -0.057861328125, -0.057403564453125, 0.006481170654296875, 0.0194549560546875, -0.005916595458984375, -0.054412841796875, 0.0086669921875, 0.0171051025390625, -0.0380859375, -0.0008454322814941406, 0.01788330078125, 0.026458740234375, -0.018280029296875, -0.024139404296875, -0.023406982421875, 0.0227508544921875, -0.0067901611328125, 0.022735595703125, -0.035858154296875, 0.04931640625, 0.020721435546875, 0.06463623046875, -0.0311126708984375, -0.040283203125, -0.0073394775390625, 0.0092010498046875, -0.007114410400390625, 0.0255126953125, 0.052276611328125, -0.056610107421875, -0.01030731201171875, 0.0099945068359375, -0.060455322265625, -0.06353759765625, 0.018280029296875, -0.00934600830078125, 0.0038433074951171875, 0.024078369140625 ]
db69e5c7438a70f1cd9127e4b5d5f0231ce20de6
Wordpress Stackexchange Q: How to bind data-src attribute for the image in the post using jquery? I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag. Or I have to get the url from the image in the post and need to bind my new tag near the old <img> tag and wrap that old <img> tag in <noscript> tag. I don't have any idea how to do it. Basically it must looks like this: <img data-src="http://foresightjs.appspot.com/dynamic-images/px-wright-flyer.jpg" data-aspect-ratio="auto" class="fs-img"> <noscript> <img src="http://foresightjs.appspot.com/dynamic-images/1024px-wright-flyer.jpg"> </noscript>
Q: How to bind data-src attribute for the image in the post using jquery? I'm trying to use foresight.js for responsive image in the wordpress blog. For that I have to add the data-src attribute in the place of src in the <img> tag. Or I have to get the url from the image in the post and need to bind my new tag near the old <img> tag and wrap that old <img> tag in <noscript> tag. I don't have any idea how to do it. Basically it must looks like this: <img data-src="http://foresightjs.appspot.com/dynamic-images/px-wright-flyer.jpg" data-aspect-ratio="auto" class="fs-img"> <noscript> <img src="http://foresightjs.appspot.com/dynamic-images/1024px-wright-flyer.jpg"> </noscript>
wordpress
{ "language": "en", "length": 101, "provenance": "stackexchange_00019.jsonl.gz:425381", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71164" }
[ 0.070068359375, -0.0218505859375, 0.004306793212890625, -0.040283203125, 0.0115509033203125, -0.040924072265625, 0.08453369140625, 0.01123046875, 0.0350341796875, 0.027862548828125, -0.032989501953125, -0.004024505615234375, -0.0029773712158203125, 0.0008444786071777344, -0.0386962890625, -0.0232391357421875, 0.06451416015625, -0.045623779296875, 0.059661865234375, 0.01222991943359375, -0.00679779052734375, 0.03851318359375, 0.08392333984375, 0.04510498046875, 0.02386474609375, 0.031005859375, 0.051605224609375, -0.039215087890625, 0.00424957275390625, -0.02716064453125, 0.0242767333984375, 0.0166473388671875, 0.0533447265625, 0.0185699462890625, -0.061553955078125, 0.04522705078125, -0.0014085769653320312, -0.00960540771484375, -0.025177001953125, 0.027374267578125, 0.0024814605712890625, -0.0156402587890625, 0.0243988037109375, 0.0114593505859375, 0.0053253173828125, -0.03759765625, 0.0263214111328125, -0.06585693359375, -0.023193359375, -0.00786590576171875, 0.044952392578125, -0.002338409423828125, 0.056304931640625, -0.00548553466796875, -0.0198211669921875, 0.007411956787109375, -0.07415771484375, 0.01287841796875, -0.0005397796630859375, 0.0706787109375, 0.036865234375, 0.00960540771484375, -0.0184326171875, -0.01248931884765625, -0.00885009765625, -0.02471923828125, -0.0177459716796875, -0.0026531219482421875, 0.00830841064453125, -0.0087890625, 0.023284912109375, 0.0089263916015625, -0.00821685791015625, -0.0362548828125, 0.001781463623046875, 0.03057861328125, -0.006282806396484375, -0.01043701171875, -0.0006895065307617188, 0.0033321380615234375, 0.0278472900390625, 0.020843505859375, 0.035369873046875, -0.0090179443359375, -0.0030670166015625, -0.01129913330078125, -0.0006380081176757812, -0.0196990966796875, -0.0124359130859375, -0.00901031494140625, -0.04315185546875, 0.0232086181640625, 0.0128326416015625, -0.0003151893615722656, -0.07421875, 0.029876708984375, -0.0245208740234375, 0.00788116455078125, 0.01470184326171875, 0.024261474609375, 0.005603790283203125, -0.03802490234375, 0.02734375, -0.0254058837890625, 0.0011510848999023438, 0.0033588409423828125, -0.01537322998046875, 0.070068359375, 0.064208984375, 0.04119873046875, 0.00249481201171875, 0.0250244140625, -0.0213165283203125, 0.04608154296875, -0.05999755859375, -0.001918792724609375, -0.04736328125, -0.0187835693359375, -0.050079345703125, 0.00494384765625, 0.0144500732421875, 0.016357421875, 0.00412750244140625, -0.01092529296875, 0.03131103515625, 0.025665283203125, -0.023529052734375, -0.0305023193359375, -0.05145263671875, -0.010650634765625, -0.016326904296875, 0.056732177734375, 0.01554107666015625, -0.004055023193359375, -0.033538818359375, 0.01293182373046875, 0.03375244140625, -0.032318115234375, -0.0272979736328125, 0.02520751953125, -0.00786590576171875, -0.01078033447265625, 0.0028839111328125, -0.0213775634765625, 0.0155029296875, 0.0193023681640625, -0.003265380859375, -0.0016298294067382812, 0.0168609619140625, -0.03338623046875, 0.01447296142578125, -0.02862548828125, 0.018890380859375, 0.00855255126953125, 0.0193634033203125, -0.0067138671875, 0.0694580078125, -0.04107666015625, -0.0262298583984375, -0.047698974609375, 0.024871826171875, 0.040374755859375, 0.053253173828125, 0.0211029052734375, 0.02783203125, -0.0546875, -0.0369873046875, 0.003772735595703125, 0.0221099853515625, 0.09088134765625, -0.0196990966796875, -0.007526397705078125, -0.035919189453125, 0.0296630859375, -0.006549835205078125, 0.0008306503295898438, -0.0037059783935546875, -0.005275726318359375, 0.0321044921875, -0.04150390625, -0.023468017578125, -0.031829833984375, 0.06121826171875, -0.0086517333984375, -0.00945281982421875, -0.01409149169921875, -0.00042057037353515625, -0.0179443359375, 0.0168914794921875, -0.002475738525390625, 0.01313018798828125, 0.030242919921875, 0.0008778572082519531, 0.003688812255859375, -0.031646728515625, -0.021240234375, 0.014190673828125, 0.0248260498046875, -0.030792236328125, 0.0138702392578125, 0.056854248046875, 0.0002627372741699219, -0.006168365478515625, 0.0008087158203125, -0.046112060546875, -0.001438140869140625, -0.020660400390625, 0.0133819580078125, -0.03765869140625, 0.02825927734375, 0.02081298828125, -0.0038051605224609375, -0.03009033203125, 0.0134735107421875, 0.038055419921875, 0.009796142578125, -0.0202789306640625, -0.0172119140625, -0.0003528594970703125, 0.03839111328125, -0.01152801513671875, 0.00909423828125, -0.035003662109375, 0.01213836669921875, 0.001873016357421875, -0.01403045654296875, -0.014007568359375, -0.029632568359375, -0.00469970703125, -0.0211181640625, 0.028472900390625, 0.040496826171875, -0.031982421875, -0.0229034423828125, -0.039276123046875, -0.026397705078125, -0.0203704833984375, -0.041229248046875, 0.0203704833984375, 0.04693603515625, 0.035369873046875, 0.026519775390625, 0.00865936279296875, 0.043975830078125, 0.01152801513671875, -0.004547119140625, 0.036956787109375, -0.0139312744140625, 0.0452880859375, 0.0266876220703125, 0.00872802734375, -0.04638671875, 0.0379638671875, -0.0604248046875, 0.039215087890625, 0.02960205078125, 0.0236053466796875, 0.01446533203125, -0.0175933837890625, 0.031982421875, -0.0095672607421875, 0.040008544921875, -0.01959228515625, 0.01126861572265625, 0.064208984375, -0.01445770263671875, 0.02294921875, 0.0028896331787109375, -0.06280517578125, 0.0222625732421875, 0.033843994140625, -0.01508331298828125, -0.0099029541015625, 0.021026611328125, 0.0251617431640625, 0.0223236083984375, -0.0209503173828125, -0.01363372802734375, 0.01317596435546875, 0.01247406005859375, 0.01934814453125, 0.0214691162109375, -0.00014638900756835938, 0.000843048095703125, 0.003040313720703125, -0.041168212890625, 0.0186004638671875, 0.04888916015625, 0.021026611328125, -0.01206207275390625, 0.003505706787109375, 0.0230255126953125, 0.0103607177734375, 0.039642333984375, 0.02362060546875, -0.0274505615234375, 0.0215301513671875, -0.046722412109375, 0.038726806640625, -0.0115203857421875, 0.08514404296875, 0.091796875, -0.007106781005859375, 0.0386962890625, -0.021575927734375, -0.0194244384765625, -0.036956787109375, 0.01568603515625, -0.0086822509765625, -0.0224609375, -0.026885986328125, 0.031829833984375, 0.02960205078125, 0.0244293212890625, -0.01380157470703125, -0.017303466796875, -0.0265655517578125, 0.018218994140625, -0.05340576171875, -0.02276611328125, 0.0176544189453125, -0.047393798828125, 0.0167236328125, 0.0080718994140625, -0.0184173583984375, -0.035430908203125, 0.046600341796875, -0.001995086669921875, -0.0177459716796875, 0.002140045166015625, -0.051513671875, -0.0447998046875, -0.08197021484375, 0.002079010009765625, -0.01343536376953125, 0.056671142578125, -0.0023174285888671875, -0.01739501953125, -0.007114410400390625, 0.0006589889526367188, 0.007289886474609375, 0.053466796875, 0.0202484130859375, -0.010986328125, 0.00606536865234375, -0.03515625, -0.0108184814453125, -0.0025310516357421875, 0.030853271484375, 0.006717681884765625, -0.0169830322265625, 0.0173797607421875, -0.00534820556640625, 0.01259613037109375, -0.002079010009765625, 0.057037353515625, 0.019561767578125, 0.01412200927734375, 0.0282440185546875, -0.037994384765625, -0.00658416748046875, -0.057586669921875, -0.05999755859375, -0.0435791015625, 0.038238525390625, 0.03924560546875, -0.066650390625, 0.00666046142578125, 0.0285186767578125, 0.0197906494140625, 0.053802490234375, -0.0011692047119140625, -0.0092620849609375, -0.018829345703125, 0.0007319450378417969, -0.058013916015625, 0.003063201904296875, -0.0302276611328125, 0.049407958984375, 0.00730133056640625, -0.005035400390625, 0.004741668701171875, -0.0244903564453125, -0.007556915283203125, -0.026702880859375, 0.040771484375, 0.0185394287109375, 0.0025157928466796875, -0.004871368408203125, -0.01184844970703125, -0.0038318634033203125, 0.0250244140625, -0.032073974609375, -0.0101776123046875, 0.031707763671875, 0.0039825439453125, -0.007259368896484375, 0.01543426513671875, -0.07696533203125, -0.0201873779296875, -0.037200927734375, -0.0032672882080078125, 0.0081787109375, -0.0118865966796875, -0.0222930908203125, 0.007442474365234375, -0.015716552734375, -0.033599853515625, 0.044158935546875, -0.0298614501953125, -0.0011758804321289062, 0.042938232421875, -0.01361846923828125, 0.01245880126953125, -0.0251312255859375, -0.01131439208984375, -0.0771484375, -0.0208587646484375, -0.0028934478759765625, 0.07745361328125, 0.0083770751953125, -0.029296875, -0.0305023193359375, 0.03070068359375, -0.02685546875, 0.0225677490234375, 0.0182952880859375, 0.043182373046875, 0.0226593017578125, -0.0318603515625, 0.00921630859375, -0.04364013671875, -0.004161834716796875, -0.01873779296875, -0.0382080078125, -0.04931640625, -0.033477783203125, -0.054656982421875, 0.00412750244140625, -0.0228729248046875, -0.0267486572265625, -0.0150604248046875, 0.0202178955078125, 0.040496826171875, 0.00798797607421875, -0.00555419921875, -0.0305633544921875, -0.022186279296875, 0.0218658447265625, -0.0194549560546875, 0.0164337158203125, 0.0012388229370117188, 0.0256195068359375, -0.0013103485107421875, -0.01213836669921875, 0.002899169921875, 0.0171051025390625, 0.033843994140625, 0.050048828125, 0.04339599609375, 0.02532958984375, -0.00534820556640625, 0.01580810546875, 0.044097900390625, 0.0031070709228515625, -0.0126800537109375, 0.03472900390625, 0.017913818359375, -0.016357421875, 0.0340576171875, 0.0335693359375, -0.0255126953125, 0.042266845703125, -0.01641845703125, 0.006404876708984375, 0.0110321044921875, 0.016845703125, -0.049072265625, 0.01149749755859375, -0.00567626953125, -0.0027713775634765625, -0.00846099853515625, 0.0192108154296875, 0.053436279296875, 0.04534912109375, -0.01134490966796875, 0.00667572021484375, 0.0209503173828125, 0.019012451171875, -0.0162200927734375, -0.03564453125, -0.0179290771484375, 0.013275146484375, 0.021728515625, -0.004184722900390625, 0.0239105224609375, 0.00647735595703125, -0.0013723373413085938, 0.0215301513671875, -0.007049560546875, -0.06427001953125, 0.01393890380859375, 0.0034809112548828125, -0.0380859375, 0.014404296875, 0.0406494140625, 0.034912109375, 0.004528045654296875, -0.00002872943878173828, 0.00505828857421875, 0.01062774658203125, -0.038238525390625, 0.0172271728515625, -0.004169464111328125, 0.00069427490234375, 0.0285491943359375, -0.01444244384765625, 0.0714111328125, -0.0212554931640625, -0.03448486328125, 0.0180816650390625, -0.00989532470703125, 0.0477294921875, 0.038787841796875, -0.01488494873046875, -0.0290374755859375, 0.05633544921875, -0.04705810546875, -0.052703857421875, 0.021697998046875, 0.012176513671875, 0.064697265625, -0.00007647275924682617, -0.0478515625, 0.031463623046875, -0.052734375, 0.0111236572265625, 0.0143280029296875, -0.004421234130859375, -0.0293121337890625, -0.013824462890625, -0.000013172626495361328, 0.01678466796875, -0.01425933837890625, -0.0038585662841796875, 0.00989532470703125, 0.0208282470703125, 0.033355712890625, -0.01256561279296875, -0.0020732879638671875, 0.0183868408203125, 0.015869140625, -0.03863525390625, -0.029449462890625, -0.03057861328125, 0.041656494140625, 0.0224609375, -0.00782012939453125, -0.034210205078125, 0.03204345703125, -0.042236328125, 0.01436614990234375, -0.00687408447265625, 0.01398468017578125, -0.0638427734375, 0.03717041015625, 0.01019287109375, 0.0160064697265625, 0.00951385498046875, -0.0284881591796875, -0.04736328125, -0.041748046875, -0.00567626953125, 0.0019817352294921875, -0.018035888671875, 0.005550384521484375, 0.004947662353515625, 0.036956787109375, -0.014739990234375, -0.024322509765625, 0.04095458984375, -0.006008148193359375, -0.008941650390625, 0.046722412109375, -0.0085601806640625, 0.0404052734375, -0.035003662109375, 0.03179931640625, -0.01019287109375, 0.00882720947265625, -0.0260162353515625, -0.0135345458984375, -0.012359619140625, -0.0848388671875, 0.00794219970703125, 0.01303863525390625, 0.0007719993591308594, 0.03753662109375, -0.0259857177734375, 0.025390625, 0.03497314453125, -0.0003185272216796875, 0.0196380615234375, -0.01461029052734375, -0.04290771484375, -0.03466796875, -0.0084381103515625, 0.05828857421875, 0.00036525726318359375, 0.05743408203125, -0.029449462890625, -0.03411865234375, 0.017333984375, -0.0127716064453125, 0.0253143310546875, 0.0193939208984375, 0.021575927734375, -0.01544952392578125, 0.0704345703125, -0.0163116455078125, 0.039642333984375, 0.03399658203125, -0.004199981689453125, 0.057586669921875, 0.066650390625, -0.0408935546875, -0.035247802734375, 0.0413818359375, 0.01177215576171875, -0.057769775390625, -0.0086517333984375, -0.03924560546875, 0.0009450912475585938, -0.040924072265625, 0.037109375, 0.03009033203125, 0.003688812255859375, -0.0198974609375, -0.053375244140625, 0.04095458984375, 0.007671356201171875, 0.02325439453125, 0.03472900390625, -0.0176849365234375, -0.05645751953125, -0.030487060546875, -0.0263519287109375, -0.0209197998046875, 0.007415771484375, 0.004543304443359375, -0.0184783935546875, -0.024200439453125, -0.07513427734375, -0.0267791748046875, 0.0657958984375, -0.034881591796875, -0.0157928466796875, 0.024322509765625, -0.0208587646484375, -0.036041259765625, -0.08673095703125, -0.049346923828125, 0.0206451416015625, -0.048553466796875, -0.01387786865234375, 0.01458740234375, 0.032196044921875, 0.021636962890625, 0.0118865966796875, -0.016510009765625, -0.013214111328125, -0.01324462890625, -0.00817108154296875, -0.019134521484375, -0.0144195556640625, 0.02264404296875, -0.0222320556640625, 0.0159912109375, -0.0269775390625, 0.0352783203125, 0.004535675048828125, 0.0012226104736328125, 0.0224151611328125, -0.01155853271484375, -0.0248260498046875, 0.052825927734375, 0.01488494873046875, -0.04693603515625, 0.0004665851593017578, 0.039154052734375, -0.024505615234375, -0.025482177734375, -0.0006952285766601562, -0.054290771484375, -0.0190887451171875, -0.055206298828125, -0.043548583984375, 0.05059814453125, 0.022796630859375, -0.0081787109375, -0.01306915283203125, 0.03741455078125, 0.0020961761474609375, 0.031890869140625, -0.0122528076171875, 0.0105438232421875, -0.09136962890625, 0.00778961181640625, -0.032562255859375, 0.02984619140625, -0.016265869140625, -0.02044677734375, 0.06280517578125, 0.01110076904296875, -0.017852783203125, -0.041015625, 0.0182342529296875, 0.038909912109375, -0.0172882080078125, 0.024688720703125, 0.007465362548828125, 0.002002716064453125, -0.0149993896484375, -0.015594482421875, 0.0195770263671875, -0.05938720703125, -0.01861572265625, 0.031524658203125, 0.01499176025390625, 0.0079193115234375, 0.0242462158203125, 0.079833984375, -0.029632568359375, -0.0008711814880371094, 0.03900146484375, -0.045806884765625, 0.032867431640625, 0.0205230712890625, 0.03790283203125, -0.019775390625, -0.0792236328125, 0.012847900390625, 0.017059326171875, 0.0262603759765625, 0.01934814453125, 0.033233642578125, 0.0167236328125, 0.00434112548828125, 0.052886962890625, 0.020355224609375, 0.0418701171875, 0.00649261474609375, 0.03271484375, 0.03204345703125, 0.01416015625, -0.052703857421875, -0.029022216796875, 0.09423828125, 0.06671142578125, -0.023468017578125, 0.0095062255859375, 0.01120758056640625, 0.0254058837890625, 0.025421142578125, -0.040069580078125, 0.055389404296875, -0.06207275390625, -0.046844482421875, -0.004486083984375, 0.00969696044921875, 0.006866455078125, 0.04388427734375, 0.01009368896484375, 0.052825927734375, -0.08221435546875, -0.029632568359375, -0.0208282470703125, -0.0264129638671875, -0.0023326873779296875, 0.040924072265625, 0.033477783203125, 0.01168060302734375, 0.0079803466796875, -0.0133056640625, 0.0190277099609375, -0.00567626953125, -0.00792694091796875, -0.002758026123046875, -0.0017499923706054688, -0.01934814453125, -0.00665283203125, 0.029541015625, -0.0281982421875, 0.04022216796875, 0.0316162109375, 0.01513671875, -0.0518798828125, -0.005558013916015625, 0.033599853515625, -0.051055908203125, 0.03021240234375, -0.0193634033203125, 0.0139007568359375, 0.00926971435546875, -0.00814056396484375, -0.0294647216796875, 0.031768798828125, 0.01169586181640625, -0.0394287109375, 0.095458984375, -0.02984619140625, 0.0007910728454589844, 0.04132080078125, -0.04058837890625, 0.10186767578125, -0.0218658447265625, 0.0115814208984375, 0.028839111328125, -0.0178985595703125, -0.08367919921875, -0.0002925395965576172, 0.027191162109375, -0.0296478271484375, 0.029205322265625, 0.01163482666015625, -0.02862548828125, -0.0023345947265625, 0.004436492919921875, 0.029266357421875, 0.017730712890625, -0.01203155517578125, 0.00905609130859375, 0.0152740478515625, -0.0010890960693359375, 0.033721923828125, 0.0186004638671875, 0.005382537841796875, 0.062042236328125, -0.0196533203125, 0.00914764404296875, 0.00771331787109375, 0.0162353515625, -0.00337982177734375, -0.004604339599609375, -0.0126190185546875, 0.0017337799072265625, -0.0028591156005859375, -0.0212249755859375, 0.02716064453125, 0.019775390625, 0.0086212158203125, -0.023712158203125, -0.00933074951171875, -0.007266998291015625, 0.003261566162109375, 0.0182037353515625, 0.0096893310546875, -0.036285400390625, -0.06060791015625, -0.0223388671875, 0.023345947265625, -0.0135650634765625, -0.01055145263671875, -0.017578125, -0.006099700927734375, 0.01280975341796875, -0.0014142990112304688, 0.033843994140625, -0.01019287109375, 0.08544921875, 0.05377197265625, -0.06072998046875, -0.0277252197265625, 0.01222991943359375, 0.0020694732666015625, 0.002796173095703125, 0.005126953125, 0.03656005859375, -0.003665924072265625, 0.0158538818359375, 0.0182647705078125, 0.060882568359375, 0.0279388427734375, -0.0269927978515625, 0.0080108642578125, 0.029632568359375, -0.03265380859375, 0.045257568359375, 0.064697265625, -0.00988006591796875, -0.007686614990234375, -0.013397216796875, -0.00464630126953125, 0.00078582763671875, -0.0126800537109375, -0.033447265625, -0.032928466796875, 0.031768798828125, 0.02703857421875, -0.0260772705078125, -0.0296630859375, 0.0175628662109375, 0.0195465087890625, 0.0274810791015625, -0.0219573974609375, -0.0014905929565429688, 0.0224609375, -0.012481689453125, -0.060516357421875, -0.0362548828125, 0.040985107421875, -0.0494384765625, 0.057891845703125, 0.05194091796875, -0.050079345703125, 0.0041046142578125, 0.055816650390625, 0.06390380859375, 0.12164306640625, 0.00409698486328125, -0.0236358642578125, -0.00720977783203125, 0.0189971923828125, 0.0126495361328125, -0.035552978515625, -0.01100921630859375, -0.00461578369140625, 0.016998291015625, -0.037933349609375, 0.0071868896484375, -0.007167816162109375, -0.03680419921875, -0.0504150390625, 0.05224609375, -0.00634765625, -0.0092010498046875, 0.01052093505859375, -0.022674560546875, -0.006542205810546875, -0.0010709762573242188, -0.0135345458984375, -0.005340576171875, -0.0187225341796875, 0.0236358642578125, 0.0300445556640625, -0.04315185546875, 0.043792724609375, -0.004787445068359375, -0.026275634765625, 0.0577392578125, 0.07525634765625, 0.017913818359375, -0.0291290283203125, -0.01206207275390625, 0.01446533203125, 0.012847900390625, -0.01776123046875, -0.0478515625, 0.0343017578125, 0.0081939697265625, -0.0274658203125, -0.0272369384765625, -0.0124664306640625, -0.003948211669921875, 0.0199737548828125, 0.072021484375, -0.00185394287109375, -0.040863037109375, 0.0216827392578125, 0.0175628662109375, -0.033477783203125, 0.0023822784423828125, 0.0097198486328125, -0.033966064453125, -0.0100555419921875, -0.0287017822265625, -0.035186767578125, 0.004184722900390625, -0.002513885498046875, -0.056304931640625, 0.013153076171875, -0.0112152099609375, -0.0093994140625, -0.0596923828125, 0.04327392578125, 0.06378173828125, -0.03662109375, 0.04638671875, -0.0214385986328125, 0.0017824172973632812, 0.06988525390625, -0.0281524658203125, 0.01433563232421875, 0.028045654296875, -0.01425933837890625, 0.01302337646484375, 0.01061248779296875, 0.005939483642578125, -0.030120849609375, -0.018798828125, -0.034515380859375, 0.0029773712158203125, 0.00921630859375, 0.0038394927978515625, 0.0098876953125, -0.0187530517578125, 0.009063720703125, -0.0008759498596191406, -0.05462646484375, 0.01323699951171875, -0.01497650146484375, -0.0253143310546875, -0.018402099609375, 0.04290771484375, 0.060638427734375, -0.007190704345703125, 0.00760650634765625, 0.0108489990234375, -0.0323486328125, -0.0305633544921875, -0.01042938232421875, -0.04547119140625, -0.011444091796875, -0.0091552734375 ]
4a05e186096acfa5027214f2a24ddbfc6ea5e1e6
Wordpress Stackexchange Q: Upload Image Not accessible I'm getting a 500 error when trying to access the full version of any image. As soon as it's uploaded to the server, it becomes 'unavailable', and each file cannot be accessed/deleted/anything - like Wordpress is holding on to the file somehow. However, any thumbnails work fine. We have tried: * *Changing permissions on the server *Allowing media to be put into date and month folders, and to not be. *Changing the folder that images get put into. We're running a Windows 2008 install. Everything else seems to work but this. As I mentioned, the thumbnails are all fine. Any ideas?
Q: Upload Image Not accessible I'm getting a 500 error when trying to access the full version of any image. As soon as it's uploaded to the server, it becomes 'unavailable', and each file cannot be accessed/deleted/anything - like Wordpress is holding on to the file somehow. However, any thumbnails work fine. We have tried: * *Changing permissions on the server *Allowing media to be put into date and month folders, and to not be. *Changing the folder that images get put into. We're running a Windows 2008 install. Everything else seems to work but this. As I mentioned, the thumbnails are all fine. Any ideas?
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:425388", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71197" }
[ 0.06768798828125, -0.01800537109375, 0.038421630859375, 0.002079010009765625, -0.01554107666015625, -0.0306243896484375, 0.06658935546875, -0.042205810546875, 0.0867919921875, 0.0252685546875, -0.04425048828125, -0.01335906982421875, 0.040924072265625, -0.0041046142578125, -0.037628173828125, -0.0006985664367675781, 0.0224609375, 0.0219268798828125, 0.06707763671875, 0.004241943359375, -0.0157318115234375, 0.028472900390625, 0.0594482421875, 0.02545166015625, 0.01285552978515625, 0.042022705078125, 0.0084075927734375, -0.0294189453125, -0.00933074951171875, -0.0271759033203125, 0.01389312744140625, 0.04010009765625, 0.01837158203125, 0.0036220550537109375, 0.0003371238708496094, -0.000014722347259521484, 0.0070953369140625, -0.0009150505065917969, 0.00092315673828125, 0.00705718994140625, -0.0034027099609375, -0.0019741058349609375, 0.0474853515625, -0.00981903076171875, 0.003459930419921875, -0.0148773193359375, 0.01305389404296875, -0.045684814453125, -0.0097808837890625, 0.04248046875, 0.0269012451171875, 0.0239410400390625, 0.02862548828125, -0.0185089111328125, -0.00919342041015625, -0.054351806640625, -0.0003857612609863281, 0.08209228515625, 0.039642333984375, -0.02838134765625, -0.0660400390625, -0.0021915435791015625, 0.0223236083984375, -0.02313232421875, -0.0029811859130859375, -0.01238250732421875, 0.00872802734375, 0.00513458251953125, -0.018890380859375, 0.0034351348876953125, 0.03948974609375, -0.002162933349609375, 0.01284027099609375, -0.03216552734375, 0.001880645751953125, 0.0024662017822265625, 0.010528564453125, -0.0244293212890625, 0.007381439208984375, -0.0084991455078125, 0.0289154052734375, -0.0224456787109375, -0.022552490234375, 0.06536865234375, -0.04052734375, 0.05224609375, 0.0037288665771484375, -0.021881103515625, -0.02685546875, -0.00585174560546875, -0.03143310546875, -0.010955810546875, -0.023590087890625, 0.011505126953125, -0.02142333984375, 0.0017576217651367188, 0.0116119384765625, 0.0138092041015625, -0.0258026123046875, -0.00970458984375, -0.00807952880859375, -0.024444580078125, 0.0234527587890625, -0.0162353515625, -0.004093170166015625, -0.039215087890625, -0.00374603271484375, -0.020294189453125, 0.013671875, 0.041412353515625, -0.0361328125, 0.03460693359375, -0.00368499755859375, -0.01678466796875, 0.013336181640625, 0.01285552978515625, -0.02264404296875, 0.05242919921875, -0.01219940185546875, 0.036163330078125, -0.0233612060546875, 0.01226806640625, -0.06109619140625, -0.041168212890625, 0.031707763671875, -0.019622802734375, -0.007587432861328125, 0.061065673828125, 0.00740814208984375, 0.0201568603515625, -0.034271240234375, 0.0472412109375, 0.005390167236328125, -0.05230712890625, -0.047515869140625, -0.017669677734375, 0.00652313232421875, 0.0032596588134765625, -0.0009145736694335938, 0.02642822265625, -0.01204681396484375, -0.01751708984375, 0.043975830078125, 0.0062103271484375, -0.018096923828125, 0.0175018310546875, 0.01360321044921875, 0.0176544189453125, -0.0070037841796875, -0.05303955078125, -0.00646209716796875, 0.00620269775390625, 0.0382080078125, 0.0139923095703125, -0.01702880859375, -0.0484619140625, 0.04736328125, -0.0576171875, 0.00614166259765625, -0.06353759765625, 0.06353759765625, 0.00348663330078125, 0.01751708984375, 0.021942138671875, 0.01416015625, -0.041229248046875, -0.07855224609375, -0.002948760986328125, 0.034149169921875, 0.0274505615234375, -0.01236724853515625, -0.0177764892578125, 0.0364990234375, 0.03924560546875, 0.000014066696166992188, 0.031005859375, 0.03448486328125, 0.0022907257080078125, -0.01702880859375, 0.052276611328125, 0.00824737548828125, -0.03228759765625, 0.012298583984375, -0.006793975830078125, -0.007061004638671875, -0.0224761962890625, 0.0200042724609375, 0.017974853515625, -0.01495361328125, 0.01654052734375, 0.03594970703125, 0.0196075439453125, -0.035858154296875, 0.0162200927734375, 0.01279449462890625, -0.002552032470703125, -0.068603515625, -0.01065826416015625, -0.00714111328125, -0.01806640625, 0.057952880859375, 0.0455322265625, -0.0262298583984375, -0.0178985595703125, -0.0278472900390625, -0.0204010009765625, 0.0290985107421875, 0.014801025390625, -0.01412200927734375, 0.00909423828125, 0.02764892578125, 0.024932861328125, -0.03546142578125, -0.01097869873046875, -0.00013887882232666016, 0.041351318359375, -0.042144775390625, 0.021453857421875, -0.0005640983581542969, 0.04803466796875, -0.026641845703125, -0.038238525390625, -0.037017822265625, -0.0215911865234375, 0.0110321044921875, 0.038970947265625, -0.0340576171875, 0.0287933349609375, 0.037506103515625, 0.043487548828125, 0.0006771087646484375, -0.042083740234375, -0.041412353515625, -0.042205810546875, -0.0258636474609375, -0.0225830078125, -0.02496337890625, -0.067626953125, 0.0275421142578125, 0.052032470703125, 0.0284881591796875, -0.0187225341796875, -0.010650634765625, 0.032989501953125, 0.007762908935546875, -0.007415771484375, 0.0266265869140625, 0.00946044921875, 0.005100250244140625, -0.0038814544677734375, 0.01335906982421875, -0.0281524658203125, 0.035614013671875, 0.01319122314453125, -0.007663726806640625, 0.0377197265625, -0.0033893585205078125, 0.01520538330078125, -0.04425048828125, 0.02386474609375, 0.0094451904296875, 0.002536773681640625, -0.025665283203125, -0.0035610198974609375, 0.00589752197265625, 0.024749755859375, 0.02728271484375, 0.02880859375, -0.033721923828125, 0.01384735107421875, 0.0335693359375, -0.007556915283203125, 0.0092620849609375, 0.04315185546875, 0.040863037109375, -0.0038318634033203125, 0.002452850341796875, -0.027557373046875, 0.01055145263671875, 0.0219879150390625, -0.0237274169921875, -0.041900634765625, -0.022216796875, -0.0018711090087890625, 0.041839599609375, -0.0044708251953125, 0.02825927734375, -0.007495880126953125, -0.0172576904296875, -0.0088348388671875, 0.00951385498046875, 0.0191192626953125, 0.0036106109619140625, 0.004413604736328125, -0.004962921142578125, -0.00786590576171875, 0.0305023193359375, -0.057525634765625, 0.05181884765625, -0.03253173828125, 0.044921875, 0.0626220703125, -0.02093505859375, 0.00557708740234375, -0.011077880859375, -0.0540771484375, -0.0137176513671875, -0.0009603500366210938, -0.020416259765625, -0.020782470703125, -0.0643310546875, 0.0198822021484375, 0.0234375, 0.013702392578125, -0.006305694580078125, -0.021270751953125, -0.006359100341796875, 0.0159912109375, -0.09332275390625, -0.10296630859375, -0.06182861328125, -0.056549072265625, 0.038970947265625, -0.0055999755859375, -0.01186370849609375, -0.00019419193267822266, 0.0288238525390625, 0.016632080078125, 0.01107025146484375, -0.0330810546875, -0.021728515625, -0.03936767578125, -0.051300048828125, -0.031646728515625, 0.0111846923828125, 0.01151275634765625, 0.00505828857421875, 0.060272216796875, -0.00490570068359375, -0.0643310546875, -0.01983642578125, 0.038116455078125, -0.034210205078125, -0.026458740234375, -0.0390625, 0.03564453125, 0.0174713134765625, 0.0077056884765625, 0.0091552734375, 0.00942230224609375, -0.01251983642578125, -0.030731201171875, -0.02569580078125, -0.0264892578125, -0.0254974365234375, 0.0802001953125, 0.048187255859375, -0.04803466796875, 0.0184783935546875, -0.06640625, -0.0005621910095214844, -0.02581787109375, -0.053985595703125, -0.015472412109375, 0.03729248046875, -0.0099334716796875, -0.01232147216796875, -0.0185394287109375, -0.01080322265625, 0.022674560546875, 0.0142822265625, -0.034210205078125, 0.036773681640625, -0.019500732421875, -0.0135345458984375, -0.028900146484375, 0.0297088623046875, -0.0157012939453125, -0.0267486572265625, -0.010284423828125, -0.0009541511535644531, -0.0309295654296875, -0.01212310791015625, -0.07977294921875, -0.034515380859375, 0.045654296875, -0.0267791748046875, 0.014739990234375, -0.056365966796875, -0.013336181640625, -0.041656494140625, 0.052093505859375, 0.016845703125, -0.005298614501953125, -0.0204010009765625, -0.01284027099609375, -0.034423828125, -0.01904296875, -0.02960205078125, 0.02703857421875, -0.00997161865234375, 0.0100860595703125, -0.01270294189453125, 0.0016193389892578125, 0.0035495758056640625, -0.08270263671875, 0.01146697998046875, -0.04248046875, 0.0269622802734375, -0.030181884765625, 0.02203369140625, 0.00965118408203125, 0.007099151611328125, -0.02294921875, -0.029388427734375, -0.02099609375, -0.08203125, -0.0236358642578125, -0.005924224853515625, 0.0848388671875, -0.025787353515625, 0.06494140625, -0.07403564453125, 0.04144287109375, 0.01384735107421875, 0.0030727386474609375, 0.004573822021484375, -0.00884246826171875, 0.00949859619140625, -0.00576019287109375, 0.0074462890625, -0.024688720703125, 0.0112457275390625, -0.0625, -0.083984375, -0.1290283203125, -0.06378173828125, -0.042083740234375, -0.020263671875, -0.037506103515625, 0.0093994140625, 0.003078460693359375, -0.02386474609375, 0.01442718505859375, 0.01222991943359375, -0.032379150390625, -0.0022411346435546875, -0.0163726806640625, 0.04180908203125, 0.0210418701171875, 0.0010423660278320312, 0.006622314453125, 0.0692138671875, 0.015899658203125, -0.031341552734375, -0.038726806640625, -0.01525115966796875, 0.024322509765625, 0.0098876953125, 0.031585693359375, 0.026763916015625, -0.005222320556640625, 0.0250244140625, 0.007781982421875, -0.014495849609375, 0.0174407958984375, 0.014404296875, 0.021575927734375, -0.0309295654296875, 0.002193450927734375, 0.018524169921875, -0.0074310302734375, -0.032928466796875, -0.0275421142578125, 0.018585205078125, -0.020111083984375, -0.00550079345703125, 0.018829345703125, 0.021331787109375, -0.0126953125, -0.0330810546875, 0.01556396484375, -0.0357666015625, 0.026336669921875, 0.0182647705078125, 0.006961822509765625, 0.017852783203125, 0.0184783935546875, 0.00811004638671875, -0.0279541015625, 0.004791259765625, -0.0225830078125, 0.04339599609375, -0.019927978515625, 0.00881195068359375, -0.036224365234375, -0.01763916015625, 0.01715087890625, 0.00872802734375, -0.04327392578125, 0.036865234375, 0.0178680419921875, 0.0066070556640625, 0.030609130859375, -0.0010242462158203125, -0.0019359588623046875, 0.0207977294921875, 0.02215576171875, 0.028594970703125, 0.0208282470703125, 0.0178985595703125, -0.01062774658203125, 0.0084991455078125, 0.0252532958984375, -0.0322265625, 0.019073486328125, -0.0104217529296875, 0.0191192626953125, -0.0347900390625, 0.0037174224853515625, -0.0267181396484375, -0.019561767578125, 0.04266357421875, 0.0082244873046875, -0.00928497314453125, 0.026763916015625, 0.0146331787109375, 0.0648193359375, -0.05023193359375, -0.001468658447265625, 0.031341552734375, 0.03704833984375, -0.0022640228271484375, -0.0335693359375, 0.03240966796875, -0.01114654541015625, -0.0001533031463623047, 0.0228271484375, -0.0163726806640625, -0.055389404296875, -0.005390167236328125, 0.00013530254364013672, 0.0301361083984375, -0.032318115234375, -0.01220703125, 0.01409912109375, 0.0014190673828125, 0.010345458984375, 0.0130615234375, -0.043853759765625, -0.00844573974609375, 0.007610321044921875, 0.05401611328125, -0.0121307373046875, -0.0243377685546875, 0.0006723403930664062, 0.015289306640625, -0.029937744140625, -0.00800323486328125, 0.06622314453125, -0.020721435546875, -0.006366729736328125, -0.0243988037109375, 0.021942138671875, -0.03753662109375, 0.0280914306640625, 0.007564544677734375, 0.001613616943359375, -0.0178680419921875, 0.0287933349609375, -0.052337646484375, -0.02337646484375, 0.02764892578125, -0.03485107421875, -0.0265045166015625, -0.061248779296875, 0.0021076202392578125, 0.022979736328125, 0.0021419525146484375, 0.024627685546875, 0.010833740234375, 0.0292510986328125, -0.00247955322265625, 0.060089111328125, -0.033203125, -0.0233306884765625, 0.059722900390625, 0.01471710205078125, -0.0150909423828125, -0.041778564453125, 0.0016040802001953125, -0.00901031494140625, -0.0202484130859375, -0.058624267578125, 0.032958984375, -0.02587890625, 0.050140380859375, 0.038055419921875, 0.05926513671875, 0.03228759765625, -0.0005831718444824219, -0.03778076171875, -0.004634857177734375, -0.027862548828125, 0.0941162109375, -0.054290771484375, 0.002765655517578125, 0.002899169921875, -0.034881591796875, 0.05859375, 0.038604736328125, 0.00722503662109375, 0.0113067626953125, -0.032012939453125, 0.031494140625, 0.035430908203125, 0.0555419921875, -0.01068878173828125, 0.044158935546875, -0.031707763671875, 0.0051116943359375, 0.05224609375, -0.00632476806640625, -0.0021343231201171875, 0.03424072265625, -0.060699462890625, -0.0290069580078125, -0.01540374755859375, -0.0006461143493652344, -0.013214111328125, -0.0296478271484375, 0.00428009033203125, 0.0145263671875, 0.002422332763671875, 0.059112548828125, -0.001560211181640625, -0.016143798828125, 0.00937652587890625, -0.044158935546875, 0.016204833984375, 0.00551605224609375, 0.01593017578125, 0.01049041748046875, 0.0272369384765625, -0.04437255859375, -0.0038433074951171875, 0.024261474609375, -0.00989532470703125, -0.01317596435546875, 0.005767822265625, 0.04656982421875, 0.0213623046875, -0.033721923828125, 0.00824737548828125, 0.03302001953125, 0.0240631103515625, 0.02410888671875, 0.0010595321655273438, -0.054534912109375, -0.037353515625, -0.0255584716796875, -0.05535888671875, -0.041290283203125, -0.0123443603515625, 0.0733642578125, 0.0218048095703125, -0.01203155517578125, 0.03216552734375, -0.00789642333984375, 0.043670654296875, -0.007598876953125, -0.0125579833984375, 0.08251953125, -0.0045623779296875, -0.0161895751953125, 0.02166748046875, -0.02947998046875, -0.00872802734375, -0.0183563232421875, 0.0301361083984375, 0.007358551025390625, -0.0238494873046875, 0.059295654296875, -0.046051025390625, -0.00212860107421875, 0.03741455078125, -0.0194549560546875, -0.041961669921875, 0.003536224365234375, 0.0126800537109375, 0.00701904296875, 0.0269927978515625, -0.0157012939453125, -0.0113677978515625, -0.0030193328857421875, -0.01107025146484375, -0.01107025146484375, 0.0205230712890625, -0.055145263671875, 0.032806396484375, 0.07513427734375, -0.00908660888671875, -0.0036754608154296875, -0.0219573974609375, -0.0185546875, 0.0208282470703125, -0.08319091796875, 0.0450439453125, -0.055267333984375, 0.00576019287109375, -0.0005631446838378906, 0.0261383056640625, 0.084228515625, 0.01053619384765625, -0.053253173828125, -0.0321044921875, 0.053497314453125, 0.07305908203125, 0.0169525146484375, 0.03582763671875, 0.009552001953125, -0.03564453125, 0.0099639892578125, 0.01458740234375, 0.019805908203125, -0.0114898681640625, 0.0018901824951171875, 0.037994384765625, -0.0140838623046875, -0.03375244140625, 0.0284423828125, 0.0097198486328125, -0.055938720703125, 0.018341064453125, 0.041107177734375, -0.08099365234375, 0.03045654296875, 0.020538330078125, 0.0146636962890625, -0.0208892822265625, -0.04351806640625, -0.003681182861328125, 0.03326416015625, -0.006244659423828125, -0.00016379356384277344, 0.034088134765625, 0.0263824462890625, 0.0222320556640625, -0.018646240234375, -0.0058441162109375, 0.01824951171875, -0.0156707763671875, 0.04071044921875, -0.009918212890625, 0.007518768310546875, -0.051544189453125, 0.01251220703125, 0.040985107421875, 0.05474853515625, -0.04815673828125, -0.0281524658203125, -0.00011211633682250977, 0.0175933837890625, 0.0183258056640625, -0.021270751953125, 0.0044708251953125, 0.0167999267578125, 0.05633544921875, 0.01029205322265625, 0.0227813720703125, 0.036865234375, 0.0213165283203125, 0.007534027099609375, -0.004314422607421875, -0.049560546875, 0.01409149169921875, 0.007251739501953125, -0.022491455078125, -0.0079193115234375, -0.0179595947265625, 0.005950927734375, 0.004749298095703125, 0.0158538818359375, 0.022552490234375, -0.0089263916015625, 0.05657958984375, -0.0404052734375, 0.032135009765625, -0.0614013671875, -0.08935546875, 0.01548004150390625, 0.036651611328125, -0.040618896484375, 0.003833770751953125, 0.0193023681640625, 0.03973388671875, -0.0543212890625, -0.040557861328125, 0.00930023193359375, -0.0250244140625, 0.0112457275390625, 0.00855255126953125, -0.0187835693359375, 0.005474090576171875, -0.046539306640625, -0.042938232421875, 0.0009036064147949219, 0.04071044921875, 0.028289794921875, 0.0499267578125, 0.00018990039825439453, -0.0165252685546875, -0.004974365234375, -0.0380859375, 0.0765380859375, 0.0235595703125, -0.05902099609375, 0.00307464599609375, -0.0162353515625, -0.0057830810546875, -0.0245208740234375, 0.0081634521484375, -0.011077880859375, 0.0203399658203125, 0.0029296875, -0.0016794204711914062, -0.016632080078125, -0.0186767578125, 0.033203125, -0.0240325927734375, 0.0025730133056640625, -0.00110626220703125, -0.0181121826171875, -0.0046844482421875, -0.00637054443359375, 0.041900634765625, 0.0360107421875, 0.0777587890625, -0.0229339599609375, 0.0251007080078125, 0.024200439453125, -0.007305145263671875, 0.005710601806640625, 0.0242767333984375, -0.0150604248046875, -0.00959014892578125, -0.01556396484375, -0.016204833984375, 0.0040740966796875, 0.023223876953125, -0.0008549690246582031, -0.021697998046875, -0.0178375244140625, -0.039947509765625, 0.02099609375, 0.059906005859375, -0.02960205078125, -0.041748046875, -0.03936767578125, -0.042572021484375, 0.00011277198791503906, -0.0013332366943359375, 0.0185546875, 0.006153106689453125, 0.00693511962890625, 0.008575439453125, -0.060302734375, 0.04461669921875, -0.054412841796875, 0.061004638671875, 0.03997802734375, 0.002613067626953125, -0.010528564453125, -0.0221405029296875, -0.020294189453125, -0.018524169921875, 0.006748199462890625, 0.01190185546875, -0.025238037109375, 0.01409149169921875, 0.004932403564453125, -0.021575927734375, -0.00379180908203125, -0.045257568359375, -0.017181396484375, 0.006954193115234375, 0.003536224365234375, -0.0018415451049804688, -0.01180267333984375, 0.023284912109375, -0.00479888916015625, -0.0479736328125, -0.0107879638671875, 0.006381988525390625, -0.042205810546875, 0.042236328125, -0.01055145263671875, -0.0112762451171875, 0.012054443359375, -0.062255859375, 0.01824951171875, 0.025115966796875, 0.0296173095703125, -0.016845703125, -0.06451416015625, 0.0103912353515625, 0.01122283935546875, -0.035552978515625, -0.037109375, -0.0382080078125, -0.00556182861328125, -0.03106689453125, 0.0391845703125, 0.030853271484375, -0.04248046875, 0.091064453125, 0.06353759765625, 0.056915283203125, 0.1053466796875, -0.027496337890625, -0.0282440185546875, -0.00344085693359375, 0.0179595947265625, -0.016845703125, -0.00849151611328125, 0.012481689453125, -0.0092315673828125, -0.027587890625, -0.0196685791015625, 0.00884246826171875, -0.0024852752685546875, -0.048309326171875, -0.08233642578125, 0.0131683349609375, 0.01369476318359375, -0.04766845703125, -0.02362060546875, -0.00927734375, -0.01229095458984375, 0.050750732421875, -0.001346588134765625, 0.0171051025390625, -0.0191650390625, 0.013031005859375, 0.0279998779296875, -0.01505279541015625, 0.0218658447265625, 0.0078887939453125, -0.04779052734375, 0.0206756591796875, 0.0022678375244140625, 0.0102081298828125, 0.0273284912109375, -0.01131439208984375, 0.037384033203125, 0.05706787109375, -0.01299285888671875, -0.01715087890625, -0.009735107421875, -0.07379150390625, 0.01525115966796875, 0.0263671875, -0.05889892578125, -0.04656982421875, 0.013214111328125, 0.0307769775390625, 0.0200042724609375, 0.0330810546875, -0.01407623291015625, -0.021453857421875, -0.0232696533203125, -0.007083892822265625, 0.022186279296875, -0.07073974609375, 0.0013017654418945312, 0.013092041015625, -0.016357421875, -0.01221466064453125, 0.01496124267578125, -0.048736572265625, 0.00972747802734375, 0.0014925003051757812, -0.0021114349365234375, -0.071044921875, -0.041168212890625, 0.06427001953125, -0.0295867919921875, -0.008392333984375, 0.007480621337890625, 0.019927978515625, 0.0126953125, -0.00263214111328125, -0.0086212158203125, -0.00634002685546875, -0.025360107421875, 0.0226593017578125, 0.0089569091796875, 0.032257080078125, -0.0157928466796875, -0.00879669189453125, 0.02386474609375, 0.004528045654296875, -0.0186614990234375, 0.012939453125, 0.01544189453125, 0.0171966552734375, -0.0283203125, 0.03521728515625, -0.0286865234375, 0.0027599334716796875, 0.00469970703125, -0.01259613037109375, -0.018157958984375, 0.03485107421875, 0.0210723876953125, -0.004192352294921875, 0.01338958740234375, 0.02984619140625, -0.025848388671875, -0.011627197265625, 0.0185699462890625, -0.043792724609375, -0.0053863525390625, 0.01108551025390625 ]
4b7ea7e0faf686c76c3a153df8d78d4181e6f712
Wordpress Stackexchange Q: Does WordPress Change the .htaccess File When Updating? I've just implemented a new WP website, replacing an older hardcoded HTML site. I will be adding 301 redirects in the .htaccess file to point the old URIs to the new WP Permalinks. My questions is, as WP generates the .htaccess file initially (at least on my install it did) will WP overrite the .htaccess file when I update WP in the future? Further to the above, is there any time, including the update as mentioned above, that WP may overwrite this file and if so is there a way to prevent that? I've searched high and low and can't seem to find a straight answer. Any help would be appreciated. Thanks! A: No, normally only if you change the permalink structure. Often a plugin is the problem. But you can use an FTP tool, or SSH, to change the access rights of the .htaccess file to something like 644, so that scripts don't change the data.
Q: Does WordPress Change the .htaccess File When Updating? I've just implemented a new WP website, replacing an older hardcoded HTML site. I will be adding 301 redirects in the .htaccess file to point the old URIs to the new WP Permalinks. My questions is, as WP generates the .htaccess file initially (at least on my install it did) will WP overrite the .htaccess file when I update WP in the future? Further to the above, is there any time, including the update as mentioned above, that WP may overwrite this file and if so is there a way to prevent that? I've searched high and low and can't seem to find a straight answer. Any help would be appreciated. Thanks! A: No, normally only if you change the permalink structure. Often a plugin is the problem. But you can use an FTP tool, or SSH, to change the access rights of the .htaccess file to something like 644, so that scripts don't change the data. A: Generally speaking WordPress will update the .htaccess file any time you change the permalink structure. Many plugins will also update/modify the file as needed. But the default structure of the .htaccess file allows you to lay it out in such a way that WordPress will not overwrite your custom entries. WordPress will overwrite the entries between '# BEGIN WordPress' and '# END WordPress'. While most plugins will create their own begin and end tags and only update within those tags. Simply put your custom entries outside of any custom tags/comments and they SHOULD be preserved when WP updates the file.
wordpress
{ "language": "en", "length": 267, "provenance": "stackexchange_00019.jsonl.gz:425394", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71213" }
[ 0.049591064453125, 0.0017995834350585938, -0.0086517333984375, -0.00980377197265625, 0.0045623779296875, -0.03656005859375, 0.04547119140625, -0.0305633544921875, -0.041961669921875, 0.02691650390625, -0.0165252685546875, 0.005279541015625, 0.006984710693359375, -0.027069091796875, 0.0273590087890625, -0.034149169921875, 0.034515380859375, -0.0278778076171875, 0.03265380859375, -0.00872039794921875, 0.01169586181640625, 0.01338958740234375, 0.03814697265625, 0.044464111328125, 0.006561279296875, -0.0288238525390625, 0.08612060546875, -0.032196044921875, 0.0030307769775390625, -0.0240325927734375, 0.0116424560546875, 0.006805419921875, 0.037139892578125, 0.045928955078125, -0.075927734375, 0.0061798095703125, -0.0185699462890625, 0.017974853515625, -0.01105499267578125, 0.0288543701171875, 0.037445068359375, -0.0181732177734375, 0.053436279296875, 0.00821685791015625, 0.0166168212890625, -0.028289794921875, 0.0226593017578125, -0.0673828125, 0.0186004638671875, -0.0312347412109375, 0.0086669921875, 0.0163726806640625, 0.01387786865234375, -0.010345458984375, -0.0263519287109375, -0.01145172119140625, -0.0032901763916015625, 0.033905029296875, 0.023834228515625, -0.04608154296875, -0.037933349609375, 0.01543426513671875, 0.0284881591796875, 0.0181732177734375, -0.047515869140625, -0.01025390625, -0.0142059326171875, -0.00594329833984375, -0.04107666015625, -0.02178955078125, 0.057830810546875, -0.0189208984375, -0.0014486312866210938, -0.043731689453125, 0.01250457763671875, 0.01029205322265625, 0.003078460693359375, -0.0037212371826171875, -0.00594329833984375, 0.010833740234375, 0.042327880859375, -0.0135650634765625, 0.0277099609375, -0.04937744140625, 0.044708251953125, -0.0067291259765625, 0.004276275634765625, -0.013580322265625, 0.004608154296875, -0.0278778076171875, -0.01418304443359375, 0.01253509521484375, -0.0176239013671875, 0.0206451416015625, -0.027069091796875, -0.006198883056640625, 0.0217132568359375, 0.044403076171875, -0.002468109130859375, 0.026458740234375, 0.00009119510650634766, -0.0301055908203125, 0.0229034423828125, -0.042694091796875, -0.0183868408203125, 0.0024700164794921875, 0.0335693359375, 0.054473876953125, 0.0230865478515625, 0.023773193359375, -0.01824951171875, 0.042144775390625, -0.0037975311279296875, -0.024932861328125, -0.025909423828125, 0.048187255859375, -0.0165557861328125, -0.0088043212890625, -0.00519561767578125, 0.01123809814453125, -0.001659393310546875, 0.023529052734375, -0.002605438232421875, -0.012481689453125, 0.00030493736267089844, -0.0004887580871582031, 0.003307342529296875, -0.042572021484375, -0.035552978515625, 0.02801513671875, -0.035491943359375, -0.00827789306640625, 0.03314208984375, 0.06268310546875, 0.022552490234375, -0.026092529296875, 0.046051025390625, -0.0293426513671875, -0.01366424560546875, 0.049652099609375, -0.03961181640625, -0.034332275390625, 0.005619049072265625, -0.037353515625, 0.0087890625, 0.0369873046875, 0.01020050048828125, 0.0177154541015625, -0.0006556510925292969, -0.0416259765625, 0.022674560546875, -0.0518798828125, 0.0670166015625, 0.0025959014892578125, 0.0199432373046875, -0.0533447265625, 0.0679931640625, -0.048553466796875, -0.0223236083984375, -0.06292724609375, 0.0012989044189453125, -0.01422882080078125, 0.003383636474609375, -0.00847625732421875, -0.0288238525390625, 0.023284912109375, -0.03863525390625, -0.0181427001953125, 0.03741455078125, 0.0007948875427246094, 0.026702880859375, -0.04351806640625, -0.016937255859375, -0.004878997802734375, -0.0003383159637451172, 0.0250091552734375, 0.000027179718017578125, 0.00031113624572753906, 0.0220794677734375, 0.0673828125, 0.0396728515625, -0.00786590576171875, 0.0426025390625, 0.014312744140625, -0.062164306640625, 0.05902099609375, -0.0196380615234375, 0.04473876953125, 0.02825927734375, -0.007381439208984375, 0.032562255859375, 0.0201568603515625, -0.056304931640625, 0.06597900390625, -0.0178680419921875, -0.0187225341796875, 0.01287078857421875, 0.0275726318359375, -0.015899658203125, -0.0404052734375, -0.0151214599609375, 0.026458740234375, -0.036651611328125, 0.0200958251953125, -0.0299072265625, 0.004199981689453125, -0.01511383056640625, 0.020355224609375, 0.03851318359375, 0.059356689453125, -0.013519287109375, 0.0168609619140625, -0.02642822265625, -0.003582000732421875, 0.0008544921875, 0.024932861328125, -0.0191650390625, 0.060150146484375, 0.0246429443359375, 0.040374755859375, 0.01016998291015625, -0.0098876953125, 0.020660400390625, -0.0325927734375, -0.00652313232421875, -0.04754638671875, -0.01044464111328125, -0.031280517578125, -0.03753662109375, -0.0160369873046875, -0.030853271484375, 0.05126953125, 0.043304443359375, 0.049652099609375, -0.041473388671875, -0.0312042236328125, -0.06005859375, -0.080078125, 0.00557708740234375, 0.07989501953125, 0.044036865234375, 0.00812530517578125, -0.015869140625, -0.0286102294921875, 0.0161285400390625, -0.0265960693359375, 0.037384033203125, -0.039093017578125, 0.03662109375, 0.04022216796875, -0.0028533935546875, -0.01259613037109375, 0.015869140625, -0.056396484375, -0.0023250579833984375, 0.04388427734375, -0.02154541015625, -0.007610321044921875, -0.0290374755859375, 0.0238800048828125, 0.0005679130554199219, -0.0201873779296875, -0.01165008544921875, -0.015777587890625, 0.04736328125, 0.00318145751953125, 0.015777587890625, 0.01422882080078125, -0.0176239013671875, 0.005340576171875, 0.0137786865234375, -0.0350341796875, 0.01105499267578125, 0.05059814453125, 0.009429931640625, 0.007694244384765625, -0.017303466796875, -0.00986480712890625, -0.0036029815673828125, 0.0276336669921875, -0.05035400390625, -0.0274200439453125, -0.05206298828125, -0.015838623046875, -0.0028095245361328125, -0.024749755859375, 0.004436492919921875, -0.024017333984375, 0.0228424072265625, 0.01165771484375, 0.04217529296875, -0.0278472900390625, -0.0223541259765625, -0.00020992755889892578, -0.010498046875, -0.039276123046875, -0.0017223358154296875, -0.01552581787109375, 0.032623291015625, -0.03167724609375, 0.0340576171875, 0.067626953125, -0.0234832763671875, 0.03411865234375, 0.00179290771484375, 0.022308349609375, -0.0029773712158203125, 0.0016412734985351562, -0.0139312744140625, 0.0176849365234375, -0.08953857421875, -0.017242431640625, 0.0193023681640625, 0.009735107421875, 0.002834320068359375, -0.02044677734375, -0.0138397216796875, 0.01611328125, -0.0650634765625, -0.046356201171875, -0.0462646484375, -0.0122222900390625, 0.00823211669921875, 0.0137176513671875, 0.0103607177734375, -0.0111236572265625, 0.0182952880859375, 0.01287841796875, 0.01486968994140625, -0.029296875, -0.06048583984375, -0.057098388671875, -0.0745849609375, -0.039459228515625, -0.0014390945434570312, 0.0039825439453125, -0.0017948150634765625, -0.0010385513305664062, -0.01837158203125, -0.06317138671875, -0.04876708984375, 0.00496673583984375, 0.01229095458984375, -0.02642822265625, 0.009185791015625, -0.036102294921875, 0.018585205078125, -0.0057525634765625, 0.06427001953125, 0.033294677734375, -0.0207672119140625, 0.007598876953125, -0.007709503173828125, -0.037109375, -0.0017032623291015625, -0.0036869049072265625, -0.003597259521484375, -0.041717529296875, -0.0109710693359375, -0.06915283203125, 0.0041046142578125, -0.01146697998046875, -0.0191497802734375, -0.0009813308715820312, -0.0079803466796875, 0.0008044242858886719, -0.005092620849609375, 0.0007123947143554688, 0.03265380859375, 0.0189056396484375, 0.0185546875, -0.0281524658203125, 0.04656982421875, 0.006732940673828125, 0.025360107421875, -0.06439208984375, 0.0207977294921875, -0.025604248046875, 0.00899505615234375, -0.00426483154296875, -0.01381683349609375, -0.0222930908203125, 0.020477294921875, -0.04913330078125, -0.053863525390625, 0.0303802490234375, -0.09173583984375, 0.01287841796875, -0.0814208984375, -0.0163116455078125, -0.03466796875, 0.1087646484375, 0.0411376953125, -0.026947021484375, -0.0272979736328125, 0.01483917236328125, -0.0592041015625, -0.042388916015625, 0.0005431175231933594, -0.0035648345947265625, -0.059234619140625, -0.0074615478515625, -0.0192413330078125, -0.01557159423828125, -0.031768798828125, -0.0089111328125, -0.0264434814453125, -0.035125732421875, 0.0133819580078125, -0.025665283203125, -0.005992889404296875, 0.03839111328125, -0.0212860107421875, 0.0170135498046875, -0.0114898681640625, -0.050628662109375, -0.060394287109375, -0.01502227783203125, -0.018646240234375, 0.055572509765625, 0.0145263671875, -0.004947662353515625, 0.0019464492797851562, 0.05877685546875, -0.003368377685546875, 0.043670654296875, 0.007427215576171875, -0.0029773712158203125, -0.0021762847900390625, 0.0221405029296875, 0.0364990234375, -0.01361083984375, -0.00406646728515625, -0.0299530029296875, -0.0239715576171875, 0.0013208389282226562, -0.0369873046875, -0.002918243408203125, -0.0016069412231445312, -0.018280029296875, -0.04571533203125, -0.01168060302734375, -0.05975341796875, 0.00832366943359375, -0.04254150390625, -0.0027027130126953125, -0.012176513671875, -0.08074951171875, 0.057464599609375, -0.034820556640625, -0.007343292236328125, -0.0121917724609375, 0.051055908203125, 0.006771087646484375, -0.02685546875, 0.0022029876708984375, 0.02435302734375, 0.0289764404296875, 0.0010929107666015625, 0.04180908203125, -0.006420135498046875, -0.003322601318359375, 0.053192138671875, -0.004795074462890625, -0.0382080078125, 0.022705078125, 0.0159912109375, 0.036773681640625, 0.01271820068359375, -0.0195159912109375, 0.001621246337890625, 0.00821685791015625, 0.044403076171875, 0.0171051025390625, -0.005596160888671875, -0.0133514404296875, 0.01343536376953125, 0.0200958251953125, -0.031982421875, -0.028961181640625, -0.05615234375, 0.02490234375, 0.00566864013671875, 0.0095977783203125, -0.0087432861328125, 0.000045299530029296875, 0.021728515625, 0.0042877197265625, 0.0020503997802734375, -0.037689208984375, -0.001247406005859375, -0.01412200927734375, 0.03350830078125, -0.012542724609375, -0.004711151123046875, -0.03704833984375, -0.01486968994140625, 0.05621337890625, -0.0021457672119140625, -0.034576416015625, 0.0307464599609375, -0.032318115234375, -0.0626220703125, 0.046142578125, -0.0252838134765625, 0.019744873046875, -0.01568603515625, -0.0321044921875, 0.0037784576416015625, -0.02716064453125, -0.05126953125, -0.053253173828125, 0.036346435546875, 0.0234222412109375, -0.0125274658203125, 0.031005859375, 0.0229644775390625, 0.0548095703125, -0.0029544830322265625, -0.01763916015625, 0.01470184326171875, 0.0309600830078125, -0.005435943603515625, 0.0059051513671875, 0.03814697265625, 0.0164337158203125, -0.047821044921875, 0.03326416015625, -0.044708251953125, -0.0157012939453125, 0.033721923828125, 0.06817626953125, -0.0110626220703125, -0.0235748291015625, 0.0022144317626953125, -0.040374755859375, -0.01099395751953125, 0.026031494140625, -0.0389404296875, -0.0614013671875, -0.0208740234375, 0.00159454345703125, 0.0265045166015625, -0.0264892578125, -0.0193023681640625, 0.0196990966796875, -0.037445068359375, -0.00005251169204711914, -0.00923919677734375, -0.004940032958984375, -0.020477294921875, -0.0142822265625, 0.0185546875, 0.01036834716796875, -0.011993408203125, -0.034332275390625, -0.0186920166015625, -0.04376220703125, -0.00542449951171875, 0.07647705078125, 0.01143646240234375, 0.053924560546875, -0.006916046142578125, -0.064453125, 0.0555419921875, 0.000576019287109375, 0.048583984375, -0.003261566162109375, -0.0275421142578125, -0.0224609375, -0.038330078125, -0.00873565673828125, -0.01293182373046875, -0.038665771484375, -0.0211181640625, 0.00490570068359375, 0.0156707763671875, -0.0003483295440673828, -0.0135650634765625, -0.02032470703125, -0.0254058837890625, 0.029754638671875, 0.03472900390625, -0.00011754035949707031, -0.031524658203125, 0.05291748046875, 0.0011892318725585938, 0.018646240234375, -0.01837158203125, 0.00024020671844482422, 0.0027027130126953125, -0.0075531005859375, 0.013153076171875, -0.011932373046875, -0.0030422210693359375, -0.01172637939453125, -0.0067291259765625, -0.034698486328125, 0.0221710205078125, -0.005588531494140625, 0.0277557373046875, -0.033294677734375, 0.004734039306640625, -0.0254058837890625, -0.00457000732421875, -0.091552734375, -0.0174102783203125, -0.005767822265625, 0.0057525634765625, 0.048736572265625, -0.041839599609375, -0.052337646484375, 0.0190582275390625, -0.005443572998046875, 0.0141448974609375, 0.03265380859375, -0.03985595703125, 0.0401611328125, 0.0843505859375, -0.00089263916015625, 0.055328369140625, 0.032928466796875, 0.01751708984375, 0.0682373046875, -0.0306243896484375, -0.0017957687377929688, 0.033447265625, 0.04351806640625, -0.00434112548828125, 0.0021839141845703125, 0.043487548828125, -0.019775390625, 0.0193939208984375, 0.058197021484375, 0.06549072265625, -0.07818603515625, -0.0022983551025390625, 0.0083160400390625, -0.0158538818359375, 0.035552978515625, 0.02972412109375, -0.052978515625, -0.027618408203125, 0.0084381103515625, -0.08282470703125, -0.031494140625, 0.00262451171875, 0.0266876220703125, -0.0077362060546875, 0.005970001220703125, 0.03765869140625, 0.0175628662109375, -0.007579803466796875, -0.0212249755859375, 0.008697509765625, 0.024017333984375, 0.0169830322265625, 0.000888824462890625, 0.0191650390625, -0.04022216796875, -0.0057830810546875, 0.02923583984375, -0.0069427490234375, -0.024810791015625, 0.016143798828125, 0.0009908676147460938, 0.037628173828125, 0.052276611328125, -0.00896453857421875, 0.0064849853515625, 0.01491546630859375, 0.0030994415283203125, 0.025360107421875, -0.0386962890625, 0.00569915771484375, 0.0058441162109375, -0.004329681396484375, 0.005771636962890625, 0.0112457275390625, -0.038116455078125, -0.0036602020263671875, -0.021148681640625, 0.060211181640625, -0.0712890625, -0.0030364990234375, -0.0003914833068847656, 0.011993408203125, 0.0205841064453125, 0.0001926422119140625, 0.01448822021484375, -0.029937744140625, -0.01432037353515625, 0.006763458251953125, -0.012237548828125, 0.0106201171875, 0.0038776397705078125, -0.046142578125, 0.08270263671875, 0.0190887451171875, 0.020263671875, 0.03961181640625, 0.02593994140625, -0.048431396484375, -0.00266265869140625, -0.0097808837890625, 0.048309326171875, 0.0017213821411132812, 0.02618408203125, -0.01468658447265625, -0.00928497314453125, 0.01456451416015625, 0.050140380859375, 0.03460693359375, 0.01116180419921875, -0.037841796875, 0.007137298583984375, 0.042266845703125, 0.0282135009765625, 0.00257110595703125, 0.038787841796875, -0.0257110595703125, 0.0166473388671875, 0.00933074951171875, -0.0283966064453125, 0.016845703125, -0.0276031494140625, -0.054931640625, -0.0052642822265625, 0.00821685791015625, -0.0048675537109375, 0.0102081298828125, -0.0006995201110839844, -0.056976318359375, 0.014434814453125, 0.044036865234375, -0.01549530029296875, -0.01092529296875, 0.0333251953125, 0.00039887428283691406, -0.007549285888671875, 0.033050537109375, -0.03662109375, 0.051666259765625, -0.01251983642578125, 0.001224517822265625, 0.004421234130859375, 0.004634857177734375, 0.033050537109375, -0.01435089111328125, -0.01345062255859375, 0.047760009765625, -0.038604736328125, 0.05743408203125, 0.05596923828125, 0.041900634765625, 0.0232391357421875, -0.0126190185546875, 0.0124359130859375, 0.062469482421875, -0.027679443359375, 0.005390167236328125, 0.0167083740234375, -0.007572174072265625, 0.0166778564453125, -0.0292205810546875, 0.0250701904296875, -0.0052032470703125, -0.030029296875, 0.02874755859375, -0.01004791259765625, 0.0221099853515625, 0.0037250518798828125, 0.0151214599609375, 0.016815185546875, -0.01511383056640625, 0.027862548828125, -0.0421142578125, -0.007183074951171875, 0.03936767578125, 0.047210693359375, 0.007381439208984375, 0.040313720703125, 0.0439453125, -0.01934814453125, 0.0117034912109375, 0.006252288818359375, -0.04083251953125, -0.002105712890625, -0.0272369384765625, -0.051116943359375, 0.0209808349609375, 0.048004150390625, 0.0408935546875, 0.02264404296875, 0.04052734375, 0.0106658935546875, -0.00152587890625, 0.00901031494140625, 0.0220794677734375, -0.0263824462890625, 0.050201416015625, -0.0347900390625, 0.07061767578125, 0.0152740478515625, -0.0102081298828125, -0.040069580078125, 0.022064208984375, 0.05255126953125, -0.01442718505859375, 0.03814697265625, -0.0043182373046875, -0.0246429443359375, 0.06243896484375, -0.004566192626953125, 0.0838623046875, 0.0220794677734375, 0.0179290771484375, 0.008148193359375, -0.01279449462890625, -0.0260009765625, -0.000797271728515625, 0.0140838623046875, 0.0008440017700195312, 0.01983642578125, -0.032928466796875, -0.00698089599609375, 0.0288238525390625, -0.01751708984375, -0.0103759765625, 0.002727508544921875, 0.0221099853515625, -0.01506805419921875, -0.05828857421875, -0.041534423828125, -0.0026798248291015625, 0.051361083984375, -0.00812530517578125, 0.073974609375, -0.03363037109375, 0.0015201568603515625, 0.01169586181640625, 0.0048980712890625, -0.004009246826171875, -0.01062774658203125, 0.0478515625, -0.0116119384765625, -0.007030487060546875, -0.0107879638671875, -0.06304931640625, 0.022613525390625, 0.0199432373046875, -0.0284423828125, 0.0411376953125, -0.0228118896484375, 0.010101318359375, -0.0254669189453125, 0.00628662109375, -0.054168701171875, -0.0906982421875, -0.0367431640625, 0.041229248046875, -0.0406494140625, -0.042694091796875, -0.036041259765625, 0.03411865234375, -0.0133209228515625, -0.0144805908203125, 0.004299163818359375, -0.038726806640625, 0.0104217529296875, 0.038299560546875, -0.0303802490234375, -0.01690673828125, -0.00714111328125, -0.0209808349609375, -0.006946563720703125, 0.0023975372314453125, -0.00928497314453125, -0.0036449432373046875, -0.046600341796875, -0.0245361328125, -0.0287933349609375, 0.0064697265625, -0.0118560791015625, 0.0029754638671875, -0.0440673828125, 0.01209259033203125, 0.016510009765625, 0.00023925304412841797, -0.0197296142578125, -0.017059326171875, -0.0200653076171875, 0.0251007080078125, -0.0213470458984375, -0.01910400390625, -0.05487060546875, 0.020050048828125, 0.034210205078125, 0.0099029541015625, -0.07684326171875, 0.04913330078125, -0.0263824462890625, 0.0743408203125, -0.031463623046875, -0.01171112060546875, -0.01355743408203125, 0.0186309814453125, -0.050628662109375, -0.05279541015625, -0.05877685546875, 0.02337646484375, -0.0841064453125, 0.00286102294921875, 0.031768798828125, -0.0204010009765625, 0.0022182464599609375, -0.01580810546875, -0.00047326087951660156, 0.035736083984375, -0.03369140625, -0.00809478759765625, 0.0260467529296875, 0.0182647705078125, -0.00759124755859375, -0.057403564453125, -0.0150909423828125, 0.005889892578125, 0.0159759521484375, -0.007564544677734375, -0.01092529296875, -0.0062103271484375, -0.04901123046875, -0.06768798828125, 0.0595703125, -0.00782012939453125, -0.023406982421875, -0.02496337890625, -0.0153961181640625, -0.0328369140625, 0.039154052734375, 0.00231170654296875, -0.007213592529296875, 0.005615234375, 0.046844482421875, 0.0183258056640625, 0.06304931640625, -0.03265380859375, 0.056915283203125, 0.03216552734375, 0.0731201171875, 0.04888916015625, 0.0265960693359375, 0.004390716552734375, -0.002101898193359375, 0.037445068359375, 0.06634521484375, -0.008148193359375, -0.004276275634765625, -0.0013208389282226562, -0.034454345703125, 0.0171051025390625, -0.00861358642578125, -0.046112060546875, -0.032928466796875, 0.04010009765625, 0.0157623291015625, 0.011260986328125, 0.01517486572265625, -0.034942626953125, -0.0108642578125, 0.024383544921875, 0.007068634033203125, 0.007965087890625, -0.0306243896484375, 0.01165771484375, 0.006443023681640625, -0.030487060546875, -0.0029430389404296875, -0.004261016845703125, -0.05303955078125, 0.029541015625, -0.01123046875, -0.0204620361328125, -0.00015974044799804688, 0.0091094970703125, 0.0712890625, -0.0450439453125, 0.0084228515625, -0.006526947021484375, 0.024322509765625, 0.0350341796875, -0.03302001953125, 0.0279693603515625, 0.0616455078125, -0.0167694091796875, -0.0079498291015625, 0.0450439453125, 0.0230712890625, -0.003719329833984375, -0.015655517578125, 0.0011844635009765625, 0.039703369140625, 0.00789642333984375, 0.03887939453125, -0.0343017578125, 0.066162109375, -0.00171661376953125, 0.03302001953125, -0.004978179931640625, -0.00930023193359375, -0.0150909423828125, 0.046173095703125, -0.01849365234375, 0.004596710205078125, 0.0103912353515625, -0.033935546875, 0.004413604736328125, 0.005893707275390625, 0.040496826171875, -0.0210113525390625, -0.00681304931640625, -0.042083740234375, 0.01149749755859375, 0.016448974609375 ]
fe01f4d3fdee1402239af79fd7c9d972ae9a681e
Wordpress Stackexchange Q: Different templates for parent and children categories/taxonomies I would like to know what is the best way to create a different template for parent and children categories and/or taxonomies. Example: I have a taxonomy called region, which I want to divide in countries, and cities inside countries. So, I will have a parent taxonomy term called Italy, and it's children taxonomy terms, Rome, Milan, Napoli, whatever. Is it possible to have different templates for country and city? How can I achieve this? Thanks in advance. A: I suggest creating 3 files 1) regiontemplate-country.php 2) regiontemplate-city.php These 2 will contain the templates for country & city, then 3) taxonomy-region.php In this file, add the code to load the appropriate template <?php $term = get_term_by('slug', get_query_var('term'), 'region'); if((int)$term->parent) get_template_part('regiontemplate', 'city'); else get_template_part('regiontemplate', 'country');
Q: Different templates for parent and children categories/taxonomies I would like to know what is the best way to create a different template for parent and children categories and/or taxonomies. Example: I have a taxonomy called region, which I want to divide in countries, and cities inside countries. So, I will have a parent taxonomy term called Italy, and it's children taxonomy terms, Rome, Milan, Napoli, whatever. Is it possible to have different templates for country and city? How can I achieve this? Thanks in advance. A: I suggest creating 3 files 1) regiontemplate-country.php 2) regiontemplate-city.php These 2 will contain the templates for country & city, then 3) taxonomy-region.php In this file, add the code to load the appropriate template <?php $term = get_term_by('slug', get_query_var('term'), 'region'); if((int)$term->parent) get_template_part('regiontemplate', 'city'); else get_template_part('regiontemplate', 'country'); A: WordPress has a template hierarchy which will look for particular template files in a specific order. If it exists, WordPress will use that template file to render your output. For taxonomies, the specific hierarchy is as follows; 1. taxonomy-{taxonomy}-{slug}.php //e.g. taxonomy-region-milan.php 2. taxonomy-{taxonomy}.php //e.g. taxonomy-region.php 3. taxonomy.php 4. archive.php 5. index.php So taking the above into account you can create one template file for your region, taxonomy-region.php //e.g. http://www.example.com/region/ ...and a slug specific template file for each region, taxonomy-region-milan.php //e.g. http://www.example.com/region/milan/ taxonomy-region-roma.php //e.g. http://www.example.com/region/roma/ etc... What happens is this... If a user navigates to, http://www.example.com/region/milan/ WordPress will first attempt to locate taxonomy-region-milan.php, if found, it shall return this file as the template file for that taxonomy term. If not found, it shall move onto the next logical choice taxonomy-region.php as a fallback and so on working its way through the hierarchy list above until it arrives at index.php which you will most definitely have because without it, your theme wouldn't function anyway. Now overall this concept might be suitable if you are working with only a few cities or regions within Italy or any country. But the moment you start to work with multiple cities/regions/country and find that you are constantly repeating the same code in different template files then its time to utilize a more efficient approach. So my question to you is, will the template for all of the cities/regions as mentioned in your OP be the same? Or will each one vary differently? If so - how much? Because wherever possible you want to reduce repetitious code which makes your life easier if you ever need to adjust/edit/tweak something and have that change reflect itself through-out your site. Manually doing this over multiple files can be tedious and leave you prone to more errors. Resource: http://codex.wordpress.org/Template_Hierarchy
wordpress
{ "language": "en", "length": 432, "provenance": "stackexchange_00019.jsonl.gz:425413", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71283" }
[ 0.01059722900390625, -0.00164794921875, -0.01187896728515625, -0.047088623046875, -0.004619598388671875, 0.0000712275505065918, -0.03076171875, -0.0227813720703125, -0.0259552001953125, 0.01158905029296875, -0.044097900390625, 0.0143280029296875, -0.0389404296875, 0.0012187957763671875, -0.02685546875, -0.059295654296875, 0.0223236083984375, -0.047454833984375, -0.0108489990234375, -0.0256195068359375, 0.0101776123046875, -0.01303863525390625, 0.007511138916015625, 0.041229248046875, 0.0298309326171875, -0.08917236328125, 0.0214996337890625, -0.01537322998046875, -0.002285003662109375, -0.03363037109375, 0.01763916015625, 0.0533447265625, 0.02001953125, -0.0102691650390625, 0.01313018798828125, -0.01348114013671875, 0.032257080078125, -0.01043701171875, 0.009429931640625, 0.024383544921875, 0.0079498291015625, -0.002658843994140625, 0.034393310546875, 0.058135986328125, 0.00439453125, -0.0276947021484375, 0.00312042236328125, -0.058868408203125, -0.0032253265380859375, -0.016815185546875, 0.04388427734375, -0.0230560302734375, 0.053497314453125, 0.010589599609375, -0.0164337158203125, 0.020263671875, -0.0170745849609375, 0.0172119140625, 0.029632568359375, -0.0176849365234375, -0.0389404296875, 0.0062408447265625, 0.0231475830078125, 0.0034084320068359375, -0.004489898681640625, -0.0110321044921875, 0.034454345703125, 0.028350830078125, -0.026214599609375, -0.0082550048828125, 0.01294708251953125, -0.01247406005859375, -0.00905609130859375, -0.0255126953125, -0.0372314453125, -0.00847625732421875, 0.03363037109375, -0.045166015625, -0.002346038818359375, -0.00998687744140625, -0.01232147216796875, -0.01177978515625, -0.0297393798828125, -0.04461669921875, 0.046966552734375, 0.0005764961242675781, -0.00868988037109375, -0.013214111328125, -0.0740966796875, -0.02960205078125, -0.0404052734375, -0.077392578125, -0.09564208984375, 0.0361328125, 0.019989013671875, -0.004180908203125, 0.00372314453125, 0.048797607421875, -0.030364990234375, 0.007495880126953125, -0.03009033203125, -0.0100250244140625, 0.0012226104736328125, -0.0282745361328125, 0.0124359130859375, 0.039215087890625, 0.019775390625, -0.01264190673828125, 0.032958984375, 0.0188446044921875, 0.0015115737915039062, 0.06463623046875, -0.00439453125, -0.059051513671875, 0.0036373138427734375, 0.0223846435546875, -0.00518798828125, 0.00787353515625, 0.0301361083984375, -0.0274810791015625, -0.0120849609375, 0.00472259521484375, 0.0584716796875, 0.0145263671875, 0.0228118896484375, 0.031585693359375, -0.00872039794921875, -0.073486328125, 0.01145172119140625, -0.00833892822265625, -0.037200927734375, -0.0144500732421875, 0.035125732421875, 0.061553955078125, 0.033233642578125, -0.01526641845703125, 0.0107421875, -0.0114288330078125, 0.01296234130859375, -0.0207977294921875, 0.0240478515625, -0.01398468017578125, -0.011322021484375, 0.0165557861328125, 0.0038890838623046875, 0.00412750244140625, 0.0254974365234375, 0.020782470703125, 0.00675201416015625, -0.0049285888671875, -0.018707275390625, -0.00777435302734375, 0.0684814453125, -0.00809478759765625, -0.052154541015625, -0.03875732421875, 0.01145172119140625, -0.04364013671875, -0.0357666015625, -0.06439208984375, -0.006641387939453125, 0.01073455810546875, 0.034912109375, -0.030120849609375, -0.0270538330078125, -0.005046844482421875, -0.03863525390625, -0.005115509033203125, 0.03338623046875, -0.044677734375, 0.06890869140625, -0.0445556640625, -0.032440185546875, 0.01480865478515625, 0.032073974609375, 0.03680419921875, -0.036102294921875, -0.0234527587890625, 0.0321044921875, 0.0245513916015625, 0.005584716796875, -0.020538330078125, -0.005863189697265625, 0.026397705078125, -0.049407958984375, -0.01081085205078125, 0.01180267333984375, 0.01171875, 0.0224761962890625, 0.0161895751953125, 0.0243072509765625, 0.013397216796875, -0.07757568359375, 0.0570068359375, 0.0142364501953125, -0.0006046295166015625, -0.035247802734375, 0.01074981689453125, 0.013763427734375, -0.03564453125, -0.01160430908203125, -0.01087188720703125, -0.00017547607421875, 0.01275634765625, 0.028289794921875, -0.0216217041015625, 0.004192352294921875, 0.0198516845703125, -0.0428466796875, 0.015655517578125, 0.0236663818359375, -0.0181121826171875, -0.00994110107421875, -0.04693603515625, -0.00435638427734375, 0.021453857421875, 0.005191802978515625, 0.0026264190673828125, -0.005016326904296875, -0.0293731689453125, -0.006397247314453125, 0.003314971923828125, -0.00214385986328125, 0.03228759765625, 0.0231170654296875, 0.003490447998046875, -0.035675048828125, 0.0001437664031982422, -0.03936767578125, 0.05889892578125, -0.11358642578125, 0.0257568359375, 0.0186614990234375, 0.0292816162109375, -0.022705078125, 0.021087646484375, 0.0233917236328125, 0.018707275390625, -0.0233612060546875, 0.00905609130859375, 0.0235748291015625, 0.0023441314697265625, -0.01441192626953125, 0.00145721435546875, 0.038970947265625, -0.0201416015625, -0.0076446533203125, -0.0032024383544921875, -0.01425933837890625, -0.00971221923828125, -0.005939483642578125, -0.0116729736328125, 0.0279693603515625, -0.05230712890625, 0.0167694091796875, 0.02947998046875, -0.045623779296875, -0.04510498046875, 0.008270263671875, 0.01045989990234375, 0.016937255859375, -0.00502777099609375, -0.0086669921875, 0.0011968612670898438, 0.00749969482421875, 0.013427734375, -0.0029010772705078125, 0.00498199462890625, -0.0195465087890625, 0.007404327392578125, 0.01222991943359375, -0.0364990234375, 0.021942138671875, 0.030181884765625, -0.043182373046875, 0.03961181640625, -0.0021915435791015625, -0.020843505859375, 0.01261138916015625, 0.01153564453125, -0.0158843994140625, 0.0335693359375, -0.042999267578125, -0.0029449462890625, -0.039276123046875, -0.055084228515625, 0.0028209686279296875, 0.044769287109375, -0.014984130859375, 0.009552001953125, 0.037109375, 0.033477783203125, -0.00042724609375, 0.0149383544921875, -0.0220184326171875, 0.0008683204650878906, 0.0296173095703125, 0.0034770965576171875, 0.015716552734375, -0.004730224609375, 0.016326904296875, 0.0384521484375, 0.0166473388671875, -0.01148223876953125, 0.00045609474182128906, 0.00152587890625, 0.0243988037109375, -0.01277923583984375, -0.0141448974609375, -0.033447265625, 0.0126953125, 0.0152740478515625, 0.0198822021484375, 0.012725830078125, 0.00620269775390625, -0.0081939697265625, -0.00545501708984375, 0.0086822509765625, 0.0247955322265625, 0.039947509765625, -0.007404327392578125, 0.0156707763671875, 0.01277923583984375, 0.004596710205078125, 0.0105743408203125, -0.045562744140625, -0.01300048828125, 0.0144805908203125, 0.059112548828125, -0.05743408203125, -0.08294677734375, -0.043548583984375, -0.08465576171875, -0.017730712890625, -0.00322723388671875, -0.0096435546875, -0.0161285400390625, 0.0693359375, 0.00004190206527709961, -0.045257568359375, -0.0029754638671875, 0.024627685546875, 0.00417327880859375, 0.0223236083984375, 0.007282257080078125, -0.004688262939453125, 0.00881195068359375, 0.00481414794921875, -0.01256561279296875, 0.027862548828125, -0.0167999267578125, -0.0145263671875, 0.007228851318359375, 0.0183563232421875, 0.01059722900390625, 0.004764556884765625, -0.007656097412109375, 0.004108428955078125, -0.0040130615234375, -0.04034423828125, -0.05877685546875, 0.003681182861328125, -0.052947998046875, 0.06549072265625, 0.0367431640625, -0.00789642333984375, -0.0008478164672851562, 0.03125, 0.01329803466796875, -0.012176513671875, 0.0006737709045410156, -0.005573272705078125, 0.040374755859375, 0.003376007080078125, 0.009185791015625, -0.0276641845703125, 0.014129638671875, -0.0219268798828125, -0.0264739990234375, -0.015594482421875, -0.0023651123046875, -0.01824951171875, 0.01070404052734375, -0.0200958251953125, -0.0728759765625, 0.0565185546875, -0.027069091796875, -0.049102783203125, -0.012451171875, -0.008056640625, 0.014617919921875, 0.058441162109375, -0.05218505859375, -0.0093841552734375, -0.0112152099609375, 0.0081329345703125, -0.03033447265625, -0.0140228271484375, -0.06787109375, -0.00823211669921875, -0.026580810546875, 0.0213775634765625, 0.0029754638671875, -0.004413604736328125, -0.032012939453125, 0.0195159912109375, -0.019683837890625, -0.01214599609375, 0.031280517578125, -0.00740814208984375, -0.0228424072265625, 0.005435943603515625, -0.01499176025390625, -0.0202789306640625, -0.0130462646484375, -0.006175994873046875, -0.0175323486328125, -0.0191497802734375, 0.0031280517578125, 0.028839111328125, 0.0264129638671875, -0.06451416015625, 0.0241241455078125, 0.054534912109375, 0.00933837890625, 0.027587890625, 0.004383087158203125, 0.01540374755859375, -0.003925323486328125, 0.006305694580078125, 0.0149688720703125, -0.01486968994140625, -0.041229248046875, -0.0465087890625, -0.0411376953125, 0.0188140869140625, -0.00036525726318359375, 0.0205230712890625, 0.018829345703125, -0.004222869873046875, -0.08575439453125, -0.051177978515625, -0.042144775390625, -0.0394287109375, -0.016815185546875, -0.00799560546875, -0.01227569580078125, -0.07611083984375, 0.04925537109375, 0.0439453125, -0.0216522216796875, 0.01416015625, 0.061248779296875, -0.006214141845703125, -0.041290283203125, -0.104736328125, -0.0020465850830078125, 0.0131988525390625, -0.0145721435546875, 0.01177215576171875, -0.0233612060546875, -0.0229644775390625, 0.058197021484375, -0.032196044921875, -0.0015277862548828125, 0.0005502700805664062, 0.06475830078125, -0.01117706298828125, -0.036773681640625, 0.044403076171875, 0.0005612373352050781, -0.0305938720703125, 0.025665283203125, -0.01416778564453125, -0.03765869140625, -0.06298828125, 0.079345703125, 0.0299530029296875, 0.01447296142578125, -0.092529296875, -0.020050048828125, 0.0167999267578125, -0.00904083251953125, -0.038360595703125, 0.0158538818359375, -0.01384735107421875, -0.052215576171875, -0.05780029296875, -0.017486572265625, 0.029327392578125, 0.022552490234375, 0.0180206298828125, 0.01343536376953125, 0.037322998046875, -0.0153961181640625, -0.0134124755859375, 0.013671875, 0.042724609375, -0.00847625732421875, -0.029693603515625, -0.0574951171875, 0.0000890493392944336, 0.010498046875, 0.0111083984375, -0.0005626678466796875, 0.0158843994140625, 0.01345062255859375, 0.00865936279296875, 0.0011529922485351562, -0.0248565673828125, 0.0144500732421875, -0.03302001953125, -0.047607421875, -0.00679779052734375, -0.031951904296875, 0.0030727386474609375, -0.0003943443298339844, -0.020050048828125, -0.01448822021484375, -0.005550384521484375, 0.00022935867309570312, -0.0092010498046875, 0.0196685791015625, 0.019866943359375, -0.01227569580078125, 0.033721923828125, -0.018585205078125, 0.04925537109375, -0.026031494140625, 0.0020618438720703125, 0.0120849609375, 0.036376953125, -0.02569580078125, -0.038360595703125, 0.0207061767578125, -0.04180908203125, -0.00954437255859375, -0.032684326171875, -0.05023193359375, -0.0006346702575683594, -0.02825927734375, 0.006298065185546875, 0.0290985107421875, 0.0254364013671875, -0.0199127197265625, 0.0009984970092773438, -0.058135986328125, -0.00617218017578125, 0.03582763671875, -0.047821044921875, 0.016754150390625, 0.00437164306640625, -0.0628662109375, 0.00615692138671875, 0.04180908203125, -0.06640625, -0.05474853515625, -0.003757476806640625, -0.008209228515625, 0.0042266845703125, -0.02008056640625, 0.0181121826171875, -0.01129913330078125, -0.0071258544921875, 0.0218963623046875, 0.01776123046875, 0.0141754150390625, 0.0072174072265625, -0.05548095703125, 0.0194091796875, -0.08038330078125, -0.0191650390625, -0.0850830078125, -0.07049560546875, -0.0458984375, 0.02850341796875, 0.0004949569702148438, 0.01073455810546875, 0.00865936279296875, 0.00887298583984375, -0.0104827880859375, 0.01873779296875, 0.0055084228515625, 0.0155487060546875, -0.0204620361328125, 0.056640625, 0.009674072265625, 0.0237579345703125, 0.00371551513671875, 0.00044655799865722656, -0.052154541015625, 0.0018138885498046875, -0.00655364990234375, -0.06500244140625, -0.02191162109375, -0.00772857666015625, -0.0279541015625, 0.048919677734375, 0.0615234375, -0.003040313720703125, 0.0648193359375, -0.0321044921875, 0.007419586181640625, -0.00325775146484375, -0.01502227783203125, -0.06549072265625, 0.00818634033203125, 0.03607177734375, -0.0195465087890625, 0.014495849609375, 0.0167236328125, -0.0059661865234375, 0.028594970703125, -0.02435302734375, 0.0311431884765625, 0.0152435302734375, -0.01551055908203125, 0.025665283203125, -0.005157470703125, -0.033660888671875, 0.0212554931640625, -0.00386810302734375, 0.023651123046875, 0.02947998046875, 0.004383087158203125, -0.0034885406494140625, -0.0108184814453125, 0.0184478759765625, -0.003170013427734375, 0.004283905029296875, 0.00762939453125, -0.0157470703125, -0.03125, 0.0170440673828125, -0.01303863525390625, -0.035369873046875, -0.0054779052734375, -0.002857208251953125, 0.008148193359375, -0.0205535888671875, 0.010772705078125, 0.001392364501953125, -0.01241302490234375, 0.02001953125, 0.005184173583984375, -0.01175689697265625, 0.02569580078125, -0.006717681884765625, -0.0271453857421875, -0.018218994140625, -0.018951416015625, 0.0162353515625, 0.01708984375, 0.00634765625, -0.01132965087890625, 0.029205322265625, 0.0107269287109375, 0.0316162109375, -0.04547119140625, 0.006786346435546875, 0.0077362060546875, 0.017547607421875, -0.043060302734375, -0.0012922286987304688, 0.0098724365234375, -0.0222015380859375, 0.00080108642578125, 0.016265869140625, -0.027008056640625, 0.007781982421875, -0.023468017578125, -0.03619384765625, 0.00803375244140625, 0.021514892578125, -0.005886077880859375, -0.0218048095703125, -0.037384033203125, -0.00799560546875, -0.08258056640625, 0.040435791015625, 0.0018644332885742188, -0.00479888916015625, -0.00010251998901367188, -0.0005817413330078125, -0.0152130126953125, 0.036041259765625, 0.02325439453125, -0.0040130615234375, 0.01885986328125, 0.01461029052734375, -0.05316162109375, -0.048614501953125, 0.023773193359375, -0.057342529296875, -0.006473541259765625, 0.01111602783203125, -0.1025390625, 0.09185791015625, 0.01044464111328125, 0.06756591796875, -0.0157928466796875, 0.0186767578125, 0.0022182464599609375, 0.0008406639099121094, -0.0203399658203125, 0.0428466796875, 0.04693603515625, -0.0023059844970703125, 0.005535125732421875, 0.01102447509765625, -0.01218414306640625, 0.00916290283203125, 0.06134033203125, 0.0026226043701171875, 0.0004868507385253906, 0.01422882080078125, 0.06903076171875, -0.002300262451171875, -0.050018310546875, 0.04364013671875, -0.003879547119140625, -0.005519866943359375, 0.00445556640625, -0.02471923828125, 0.0202789306640625, -0.021881103515625, -0.01506805419921875, 0.01873779296875, 0.0245513916015625, 0.028228759765625, -0.01465606689453125, 0.0421142578125, -0.01345062255859375, -0.0087890625, 0.0164642333984375, -0.01934814453125, 0.0286407470703125, 0.015350341796875, 0.03857421875, -0.0294036865234375, 0.01110076904296875, -0.018646240234375, 0.060211181640625, 0.01593017578125, 0.0219268798828125, 0.00839996337890625, 0.00437164306640625, 0.035003662109375, 0.00801849365234375, 0.0228729248046875, 0.054595947265625, -0.0261993408203125, 0.0286102294921875, 0.004528045654296875, 0.0184478759765625, -0.03363037109375, 0.04180908203125, 0.029052734375, 0.051605224609375, -0.04571533203125, -0.026397705078125, 0.00785064697265625, 0.0078887939453125, -0.002597808837890625, 0.00902557373046875, 0.03680419921875, 0.053985595703125, 0.07061767578125, -0.03125, -0.0240325927734375, 0.006137847900390625, 0.0232696533203125, -0.0013570785522460938, 0.0233306884765625, -0.00324249267578125, -0.0252685546875, -0.03546142578125, 0.01064300537109375, 0.0452880859375, 0.0609130859375, -0.01385498046875, 0.0606689453125, -0.04376220703125, -0.0299530029296875, 0.0157928466796875, -0.020111083984375, 0.0265045166015625, -0.04461669921875, 0.04248046875, 0.034698486328125, 0.004650115966796875, -0.005748748779296875, 0.0102081298828125, 0.008636474609375, 0.040008544921875, 0.040374755859375, -0.01256561279296875, -0.01087188720703125, 0.03106689453125, -0.0142669677734375, 0.045501708984375, -0.056121826171875, 0.00021898746490478516, -0.0205841064453125, -0.02642822265625, -0.01220703125, -0.0285186767578125, 0.048614501953125, -0.031585693359375, 0.045501708984375, -0.00983428955078125, -0.003787994384765625, 0.0286865234375, -0.024322509765625, 0.0494384765625, 0.0007152557373046875, -0.111572265625, -0.020172119140625, -0.0289154052734375, -0.06939697265625, 0.069091796875, 0.06072998046875, -0.0233154296875, -0.00266265869140625, 0.03753662109375, -0.0086669921875, -0.03790283203125, 0.01556396484375, 0.04766845703125, -0.04156494140625, -0.014892578125, 0.01788330078125, -0.01074981689453125, -0.006145477294921875, -0.030181884765625, 0.049102783203125, 0.0149688720703125, 0.123046875, -0.052276611328125, 0.035400390625, -0.015869140625, 0.034027099609375, -0.0357666015625, -0.0479736328125, 0.0810546875, -0.007457733154296875, -0.006786346435546875, -0.02099609375, -0.026947021484375, 0.0039215087890625, 0.05499267578125, -0.0193634033203125, -0.0006923675537109375, 0.0012083053588867188, 0.007556915283203125, -0.02398681640625, 0.055999755859375, 0.0029125213623046875, -0.0325927734375, -0.05657958984375, -0.008941650390625, 0.064453125, 0.12255859375, -0.007030487060546875, 0.045196533203125, -0.01056671142578125, -0.00881195068359375, 0.021087646484375, -0.02081298828125, 0.01094818115234375, 0.024688720703125, -0.052581787109375, -0.07489013671875, 0.0264434814453125, -0.00273895263671875, 0.01959228515625, -0.01074981689453125, 0.062744140625, 0.0233154296875, -0.0726318359375, 0.032928466796875, -0.04156494140625, 0.00662994384765625, -0.055908203125, -0.0222015380859375, 0.0218505859375, 0.0286102294921875, -0.007213592529296875, -0.056976318359375, -0.039642333984375, -0.026275634765625, 0.021575927734375, 0.036376953125, 0.0225372314453125, -0.0199737548828125, -0.0330810546875, -0.01354217529296875, 0.039947509765625, 0.007137298583984375, -0.0311279296875, 0.0047760009765625, -0.0205078125, 0.03643798828125, 0.011077880859375, -0.012481689453125, -0.0023403167724609375, 0.0096588134765625, -0.005550384521484375, 0.01617431640625, -0.03515625, -0.01319122314453125, -0.0191802978515625, 0.04083251953125, 0.0311279296875, -0.0204315185546875, 0.006931304931640625, 0.03277587890625, 0.043853759765625, 0.08074951171875, -0.0029125213623046875, -0.037872314453125, 0.0129547119140625, -0.032928466796875, -0.016754150390625, 0.0219879150390625, 0.031280517578125, -0.032012939453125, -0.055023193359375, 0.002918243408203125, 0.004718780517578125, 0.033050537109375, -0.036895751953125, -0.08038330078125, 0.07440185546875, -0.023956298828125, -0.040130615234375, -0.0181121826171875, 0.006618499755859375, -0.01580810546875, -0.0051422119140625, -0.004840850830078125, 0.01062774658203125, 0.01251220703125, 0.03509521484375, 0.00344085693359375, 0.02069091796875, 0.01041412353515625, -0.0290679931640625, -0.013671875, 0.010650634765625, 0.02386474609375, -0.004856109619140625, -0.022735595703125, 0.0172882080078125, -0.01210784912109375, 0.02655029296875, -0.024993896484375, -0.025634765625, 0.002521514892578125, 0.0172271728515625, 0.0013952255249023438, 0.0030612945556640625, -0.0174102783203125, -0.01230621337890625, 0.053863525390625, 0.004528045654296875, 0.007312774658203125, -0.0126953125, -0.03314208984375, -0.0227508544921875, -0.040557861328125, -0.010345458984375, 0.0394287109375, -0.09375, 0.0006976127624511719, 0.031219482421875, -0.0045166015625, 0.02020263671875, 0.019378662109375, -0.013214111328125, 0.005146026611328125, 0.0340576171875, -0.0028896331787109375, -0.061859130859375, 0.03955078125, 0.0031147003173828125, -0.0313720703125, -0.03509521484375, -0.020111083984375, 0.001384735107421875, -0.03839111328125, -0.03387451171875, -0.0273895263671875, 0.033172607421875, -0.0272216796875, 0.01197052001953125, 0.008697509765625, -0.01023101806640625, -0.01715087890625, 0.03497314453125, -0.024169921875, 0.0014219284057617188, 0.0101165771484375, -0.00954437255859375, -0.034820556640625, 0.06634521484375, 0.0167083740234375, 0.048858642578125, -0.004932403564453125, 0.0501708984375, -0.0160064697265625, 0.040283203125, -0.05084228515625, 0.01258087158203125, -0.0654296875, 0.0183258056640625, -0.002513885498046875, 0.01702880859375, -0.0019140243530273438, -0.036590576171875, 0.0185394287109375, -0.0081024169921875, 0.0050201416015625, 0.01531219482421875 ]
290f5182982a7b193d7220e46c98ee3af2a4b471
Wordpress Stackexchange Q: Action hook for custom tax edit So, i have a function in my template file functions.php which cache a search form that contain a custom taxonomie terms. I want to flush cache (or delete one cache group) when I add/delete/edit terms of a specific taxonomie. Is it possible? maybe with do_action, but for which hook? thx A: You are looking for created_term, edited_term and delete_term. Each callback accepts 3 parameters: function wpse_created_term( $term_id, $tt_id, $taxonomy ) { } function wpse_edited_term( $term_id, $tt_id, $taxonomy ) { } function wpse_delete_term( $term_id, $tt_id, $taxonomy ) { } add_action( 'created_term', 'wpse_created_term', 10, 3 ); add_action( 'edited_term', 'wpse_edited_term', 10, 3 ); add_action( 'delete_term', 'wpse_delete_term', 10, 3 );
Q: Action hook for custom tax edit So, i have a function in my template file functions.php which cache a search form that contain a custom taxonomie terms. I want to flush cache (or delete one cache group) when I add/delete/edit terms of a specific taxonomie. Is it possible? maybe with do_action, but for which hook? thx A: You are looking for created_term, edited_term and delete_term. Each callback accepts 3 parameters: function wpse_created_term( $term_id, $tt_id, $taxonomy ) { } function wpse_edited_term( $term_id, $tt_id, $taxonomy ) { } function wpse_delete_term( $term_id, $tt_id, $taxonomy ) { } add_action( 'created_term', 'wpse_created_term', 10, 3 ); add_action( 'edited_term', 'wpse_edited_term', 10, 3 ); add_action( 'delete_term', 'wpse_delete_term', 10, 3 ); A: Look at wp-includes/taxonomy.php. The actions are: do_action( "create_term", $term_id, $tt_id, $taxonomy ); do_action( "created_term", $term_id, $tt_id, $taxonomy ); do_action( "edited_term", $term_id, $tt_id, $taxonomy ); do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term ); do_action( "create_$taxonomy", $term_id, $tt_id ); do_action( "created_$taxonomy", $term_id, $tt_id ); do_action( "edited_$taxonomy", $term_id, $tt_id ); do_action( "delete_$taxonomy", $term, $tt_id, $deleted_term );
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:425419", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71304" }
[ 0.0209197998046875, 0.0264434814453125, -0.0799560546875, -0.0298004150390625, 0.0406494140625, -0.0648193359375, 0.03515625, 0.01502227783203125, 0.033203125, 0.01629638671875, -0.01432037353515625, -0.07525634765625, 0.0293426513671875, -0.0396728515625, -0.026580810546875, -0.0335693359375, 0.031463623046875, -0.029754638671875, 0.03741455078125, -0.00234222412109375, 0.0253753662109375, 0.0134735107421875, 0.0217742919921875, -0.0127105712890625, 0.018524169921875, -0.01456451416015625, 0.04510498046875, -0.0175933837890625, 0.003021240234375, -0.029083251953125, 0.0191650390625, 0.0015668869018554688, 0.016021728515625, 0.03497314453125, -0.0386962890625, 0.0146026611328125, -0.006969451904296875, 0.0266571044921875, -0.0072479248046875, 0.036956787109375, 0.055816650390625, -0.037750244140625, -0.07196044921875, -0.0018072128295898438, -0.05291748046875, -0.022186279296875, 0.0343017578125, 0.0153656005859375, 0.020599365234375, 0.0501708984375, 0.041046142578125, 0.00408172607421875, 0.036285400390625, 0.01459503173828125, -0.00673675537109375, 0.002468109130859375, -0.0279693603515625, 0.00727081298828125, 0.01242828369140625, 0.0266265869140625, -0.0012350082397460938, 0.005496978759765625, -0.0010042190551757812, -0.028350830078125, 0.0136566162109375, 0.02618408203125, 0.07421875, 0.0022830963134765625, -0.0254058837890625, -0.00319671630859375, -0.0165252685546875, -0.015655517578125, -0.004138946533203125, 0.01175689697265625, 0.00926971435546875, -0.052703857421875, 0.026397705078125, 0.00028014183044433594, 0.0000015497207641601562, 0.04644775390625, 0.0194091796875, -0.0474853515625, 0.00955963134765625, 0.00231170654296875, -0.0053253173828125, 0.0220794677734375, -0.0014295578002929688, -0.0116424560546875, -0.027557373046875, -0.02191162109375, -0.01406097412109375, -0.0880126953125, -0.0096588134765625, 0.016143798828125, 0.0042724609375, -0.03326416015625, -0.018218994140625, 0.0504150390625, -0.04107666015625, 0.004917144775390625, 0.007282257080078125, -0.0173797607421875, 0.00730133056640625, -0.03741455078125, 0.0057830810546875, -0.004444122314453125, -0.002124786376953125, -0.0173492431640625, 0.0132904052734375, 0.0160980224609375, -0.020538330078125, -0.040496826171875, -0.0169677734375, -0.03753662109375, 0.00608062744140625, -0.0190277099609375, -0.0343017578125, 0.0146636962890625, -0.00020492076873779297, -0.04071044921875, 0.00046944618225097656, 0.00628662109375, 0.0292510986328125, -0.0196685791015625, -0.0172119140625, -0.033843994140625, -0.038299560546875, -0.0259552001953125, 0.031524658203125, 0.0120086669921875, -0.06707763671875, 0.0244903564453125, 0.10333251953125, -0.0079193115234375, 0.0270233154296875, -0.0322265625, 0.030059814453125, 0.0029125213623046875, -0.01904296875, 0.0238037109375, -0.019744873046875, -0.009735107421875, -0.0008077621459960938, -0.0186767578125, 0.041107177734375, 0.0103607177734375, 0.01171875, -0.0030498504638671875, 0.04296875, 0.0120391845703125, -0.0236663818359375, -0.0174407958984375, 0.087158203125, -0.01457977294921875, -0.12017822265625, -0.01220703125, 0.006053924560546875, -0.0200042724609375, -0.078369140625, -0.08734130859375, 0.010162353515625, -0.03424072265625, -0.0166473388671875, -0.037994384765625, -0.06976318359375, 0.045379638671875, -0.042449951171875, -0.01280975341796875, 0.0251312255859375, -0.01068878173828125, 0.034637451171875, -0.00916290283203125, 0.004489898681640625, 0.0096893310546875, -0.00984954833984375, 0.0109100341796875, -0.0186309814453125, 0.0298309326171875, 0.0165557861328125, -0.00902557373046875, -0.021087646484375, -0.057464599609375, 0.034027099609375, -0.00945281982421875, -0.035125732421875, 0.0254058837890625, 0.0217437744140625, 0.0540771484375, -0.0031223297119140625, 0.01490020751953125, 0.026885986328125, 0.034027099609375, -0.0268707275390625, -0.003879547119140625, 0.041595458984375, -0.0255126953125, -0.01995849609375, -0.052520751953125, 0.021392822265625, 0.01491546630859375, 0.0192108154296875, 0.0352783203125, -0.0201568603515625, -0.0225830078125, -0.1246337890625, 0.044830322265625, -0.050689697265625, 0.0654296875, -0.055694580078125, 0.006282806396484375, 0.0450439453125, 0.00632476806640625, -0.036041259765625, -0.0242919921875, -0.011077880859375, -0.00997161865234375, -0.004146575927734375, 0.047637939453125, 0.03375244140625, 0.03704833984375, 0.049530029296875, -0.038330078125, 0.04779052734375, -0.0131683349609375, 0.01629638671875, -0.003326416015625, -0.024322509765625, -0.01181793212890625, -0.012603759765625, -0.00632476806640625, -0.01224517822265625, 0.051361083984375, 0.07080078125, 0.0594482421875, -0.0011720657348632812, -0.0214385986328125, 0.004184722900390625, -0.1280517578125, 0.002017974853515625, 0.07293701171875, 0.017120361328125, -0.003177642822265625, -0.029296875, 0.0127716064453125, 0.056671142578125, 0.033111572265625, 0.020294189453125, -0.00965118408203125, 0.021148681640625, 0.0531005859375, -0.0240478515625, 0.0236053466796875, 0.0007429122924804688, -0.0130767822265625, 0.0279693603515625, 0.0241546630859375, -0.0211181640625, -0.005214691162109375, 0.00897216796875, -0.046142578125, 0.0323486328125, -0.08392333984375, -0.05377197265625, -0.0162506103515625, 0.037322998046875, -0.01305389404296875, 0.0153656005859375, 0.006877899169921875, -0.036468505859375, 0.004390716552734375, 0.031402587890625, -0.014404296875, -0.01050567626953125, -0.004245758056640625, 0.00023806095123291016, -0.03778076171875, -0.0241241455078125, 0.01306915283203125, -0.0190887451171875, -0.0264739990234375, 0.00302886962890625, 0.052276611328125, -0.0260162353515625, -0.0088043212890625, -0.0055999755859375, -0.006549835205078125, -0.01508331298828125, -0.01468658447265625, -0.003810882568359375, -0.042694091796875, 0.00502777099609375, 0.01036834716796875, -0.041168212890625, 0.049835205078125, -0.001689910888671875, -0.033172607421875, -0.005619049072265625, 0.007160186767578125, 0.0152740478515625, 0.003490447998046875, 0.02703857421875, 0.0595703125, 0.00872802734375, 0.002155303955078125, 0.003978729248046875, -0.0189056396484375, -0.00821685791015625, 0.0161895751953125, 0.006893157958984375, -0.034210205078125, -0.007709503173828125, 0.038726806640625, 0.0268096923828125, 0.03704833984375, 0.0033416748046875, -0.0306549072265625, -0.0167236328125, 0.0352783203125, -0.03778076171875, -0.023223876953125, 0.0145263671875, -0.0156097412109375, 0.0038318634033203125, 0.0003247261047363281, -0.01305389404296875, -0.0218963623046875, 0.009918212890625, 0.003475189208984375, -0.0029296875, -0.021514892578125, 0.030364990234375, -0.031494140625, -0.0299530029296875, -0.06475830078125, 0.032623291015625, 0.006847381591796875, 0.006847381591796875, 0.08184814453125, 0.0025196075439453125, -0.07275390625, 0.00438690185546875, -0.030670166015625, -0.0379638671875, 0.0272979736328125, 0.0121307373046875, -0.0265045166015625, 0.045806884765625, -0.00547027587890625, 0.00963592529296875, 0.053619384765625, -0.0272979736328125, -0.01136016845703125, -0.004791259765625, -0.0137481689453125, 0.020965576171875, 0.019287109375, -0.001888275146484375, 0.0009331703186035156, 0.061492919921875, -0.02960205078125, -0.01251220703125, 0.0090484619140625, -0.01207733154296875, -0.007598876953125, 0.003173828125, -0.04132080078125, -0.0017576217651367188, 0.0094757080078125, -0.0092315673828125, 0.0175933837890625, 0.00794219970703125, -0.0007119178771972656, -0.0172576904296875, -0.0228118896484375, -0.0257720947265625, 0.0004334449768066406, 0.039215087890625, -0.0019969940185546875, 0.036865234375, 0.031585693359375, 0.019989013671875, 0.0016450881958007812, -0.00920867919921875, -0.041717529296875, -0.054443359375, 0.019989013671875, -0.054595947265625, 0.0119476318359375, -0.061126708984375, 0.0007281303405761719, -0.02081298828125, 0.06365966796875, 0.00653076171875, -0.02459716796875, 0.00569915771484375, 0.00939178466796875, -0.022857666015625, 0.002796173095703125, -0.0024013519287109375, -0.0103759765625, -0.09783935546875, 0.042510986328125, 0.0249176025390625, -0.012054443359375, -0.027069091796875, 0.0216064453125, -0.0794677734375, -0.035736083984375, 0.057098388671875, -0.10845947265625, 0.0268707275390625, 0.00859832763671875, 0.003879547119140625, -0.035614013671875, -0.038604736328125, -0.042449951171875, -0.0323486328125, 0.0095672607421875, -0.05975341796875, 0.0198974609375, 0.06195068359375, -0.051055908203125, 0.022735595703125, 0.02496337890625, 0.020751953125, 0.02685546875, -0.01416778564453125, 0.01245880126953125, -0.038482666015625, -0.032684326171875, -0.00115203857421875, -0.035369873046875, -0.027252197265625, 0.01181793212890625, 0.00347137451171875, 0.0217132568359375, -0.016937255859375, -0.03466796875, 0.007904052734375, -0.0244903564453125, -0.053802490234375, -0.03704833984375, -0.051025390625, -0.016021728515625, -0.045135498046875, 0.011383056640625, -0.0145263671875, -0.059051513671875, 0.037261962890625, -0.00298309326171875, 0.02093505859375, 0.0130615234375, 0.06292724609375, 0.00478363037109375, -0.01389312744140625, -0.0523681640625, 0.0062408447265625, 0.0029430389404296875, -0.00492095947265625, -0.0049591064453125, -0.04058837890625, -0.01303863525390625, 0.003704071044921875, -0.0465087890625, 0.0111083984375, -0.049835205078125, 0.06494140625, 0.01080322265625, -0.0009260177612304688, 0.002864837646484375, 0.004230499267578125, 0.0164031982421875, 0.0164794921875, -0.004543304443359375, -0.0301361083984375, 0.023773193359375, 0.065185546875, -0.0294647216796875, 0.027984619140625, -0.0306549072265625, -0.035736083984375, 0.01358795166015625, -0.0219879150390625, 0.0380859375, 0.0325927734375, -0.01043701171875, 0.024169921875, -0.01313018798828125, 0.0179443359375, 0.0006742477416992188, -0.0284423828125, -0.01203155517578125, 0.030426025390625, 0.0214080810546875, 0.01508331298828125, 0.0135345458984375, 0.01038360595703125, -0.0247039794921875, -0.0247955322265625, -0.06475830078125, -0.0116729736328125, 0.032501220703125, 0.044403076171875, 0.046661376953125, -0.00629425048828125, 0.0177154541015625, 0.041778564453125, 0.0007081031799316406, 0.01372528076171875, -0.016326904296875, 0.049163818359375, -0.0288848876953125, -0.006870269775390625, 0.0205841064453125, -0.0272369384765625, 0.02703857421875, -0.01277923583984375, 0.0106201171875, -0.01074981689453125, -0.021697998046875, 0.0400390625, 0.036712646484375, 0.029571533203125, 0.01316070556640625, -0.01258087158203125, -0.004962921142578125, 0.0167083740234375, -0.0128173828125, -0.02618408203125, 0.0019664764404296875, 0.0216522216796875, 0.0057373046875, -0.0201263427734375, -0.0279693603515625, 0.0240020751953125, 0.0006017684936523438, -0.0161590576171875, 0.01212310791015625, -0.0126800537109375, -0.062103271484375, -0.0164794921875, 0.037109375, 0.01004791259765625, -0.022003173828125, -0.0010213851928710938, 0.00751495361328125, -0.0333251953125, 0.00885009765625, 0.0032978057861328125, 0.003871917724609375, -0.0273895263671875, -0.03546142578125, -0.0277557373046875, 0.01311492919921875, 0.054046630859375, -0.00933074951171875, -0.0267181396484375, -0.01397705078125, -0.048004150390625, 0.05316162109375, -0.01314544677734375, -0.01080322265625, -0.02410888671875, 0.01499176025390625, 0.0173492431640625, 0.007965087890625, 0.0478515625, 0.01062774658203125, -0.0242767333984375, -0.01033782958984375, -0.03924560546875, 0.00004786252975463867, -0.057891845703125, -0.06719970703125, -0.01824951171875, 0.0282745361328125, 0.01117706298828125, 0.02001953125, 0.0077056884765625, -0.02685546875, -0.01934814453125, -0.0012407302856445312, 0.0234375, 0.0223541259765625, 0.00441741943359375, 0.034698486328125, -0.01026153564453125, 0.0352783203125, 0.0197906494140625, 0.00336456298828125, -0.022125244140625, -0.01593017578125, -0.022857666015625, -0.10430908203125, -0.0030307769775390625, 0.006351470947265625, -0.03143310546875, 0.09490966796875, 0.042694091796875, 0.01406097412109375, -0.0025177001953125, 0.004451751708984375, 0.01202392578125, -0.0282745361328125, -0.006168365478515625, 0.0239105224609375, -0.0020923614501953125, 0.01342010498046875, -0.03228759765625, 0.03192138671875, 0.01084136962890625, -0.00847625732421875, 0.04742431640625, -0.04766845703125, 0.054962158203125, 0.013946533203125, -0.035308837890625, 0.01007080078125, 0.0296783447265625, 0.03466796875, 0.059906005859375, -0.034393310546875, 0.046295166015625, 0.040863037109375, -0.006916046142578125, 0.007251739501953125, 0.0220794677734375, 0.0164642333984375, -0.030548095703125, 0.0005135536193847656, -0.00753021240234375, -0.006023406982421875, -0.01280975341796875, 0.054351806640625, 0.03387451171875, -0.06793212890625, -0.01277923583984375, -0.0096588134765625, 0.003505706787109375, 0.04620361328125, 0.0311737060546875, -0.00484466552734375, -0.0069427490234375, -0.03875732421875, 0.0005855560302734375, -0.03143310546875, 0.00351715087890625, 0.02874755859375, -0.00734710693359375, -0.00191497802734375, -0.0172271728515625, -0.01055145263671875, 0.0187225341796875, -0.0017976760864257812, -0.0206451416015625, 0.011077880859375, -0.01206207275390625, 0.027618408203125, 0.01132965087890625, 0.007640838623046875, -0.041595458984375, 0.03436279296875, -0.00897979736328125, -0.022216796875, 0.031219482421875, -0.014617919921875, 0.00659942626953125, 0.0287933349609375, -0.028961181640625, 0.0241546630859375, -0.0150604248046875, -0.03350830078125, -0.05615234375, -0.045440673828125, -0.007091522216796875, 0.01010894775390625, -0.0433349609375, 0.0411376953125, -0.0283660888671875, -0.02178955078125, -0.00708770751953125, -0.0136566162109375, 0.0264892578125, -0.033966064453125, 0.001422882080078125, 0.021881103515625, 0.037109375, 0.01308441162109375, -0.0119171142578125, 0.0242767333984375, -0.047119140625, -0.036224365234375, -0.004146575927734375, -0.0469970703125, -0.003559112548828125, -0.03314208984375, -0.06353759765625, 0.11895751953125, 0.027740478515625, 0.0281524658203125, -0.01153564453125, 0.044952392578125, -0.0261077880859375, 0.04022216796875, -0.0189056396484375, 0.072998046875, 0.00806427001953125, -0.00524139404296875, 0.00733184814453125, 0.0214691162109375, 0.01641845703125, -0.0240020751953125, 0.037017822265625, 0.0142822265625, -0.0182647705078125, -0.0147552490234375, 0.016143798828125, -0.0131378173828125, -0.034088134765625, 0.042236328125, 0.024444580078125, -0.0035400390625, -0.003147125244140625, 0.01117706298828125, 0.039794921875, -0.048797607421875, -0.0218963623046875, 0.05767822265625, 0.004638671875, 0.022308349609375, -0.0303802490234375, 0.06756591796875, -0.033935546875, -0.0164947509765625, 0.035125732421875, -0.0184478759765625, -0.026763916015625, -0.00044918060302734375, -0.0129852294921875, -0.0138702392578125, 0.006031036376953125, -0.018463134765625, 0.0240478515625, 0.0191650390625, 0.0401611328125, 0.044708251953125, 0.031036376953125, 0.006290435791015625, -0.049102783203125, 0.027984619140625, -0.0215606689453125, -0.042388916015625, 0.01220703125, 0.01390838623046875, 0.00972747802734375, -0.0224609375, 0.052215576171875, 0.04156494140625, 0.032501220703125, -0.038055419921875, -0.05035400390625, -0.0011568069458007812, 0.0227203369140625, 0.019866943359375, 0.0247650146484375, 0.040985107421875, -0.0031375885009765625, 0.056884765625, -0.00982666015625, -0.008209228515625, 0.0007281303405761719, 0.0116424560546875, -0.00426483154296875, 0.014739990234375, -0.0128021240234375, -0.003299713134765625, -0.039764404296875, 0.015716552734375, -0.002716064453125, 0.043609619140625, 0.005687713623046875, 0.057037353515625, 0.007106781005859375, -0.0005512237548828125, -0.0190887451171875, 0.048309326171875, 0.02288818359375, -0.0147857666015625, -0.0284271240234375, -0.030487060546875, -0.015533447265625, 0.0305328369140625, 0.0033626556396484375, 0.0618896484375, 0.043304443359375, 0.013641357421875, -0.0190582275390625, -0.00012481212615966797, 0.02984619140625, -0.040130615234375, 0.0162353515625, -0.0236663818359375, 0.00855255126953125, -0.000007152557373046875, -0.015045166015625, -0.0113067626953125, -0.0005421638488769531, 0.038360595703125, -0.0609130859375, 0.015838623046875, -0.0133514404296875, -0.041229248046875, 0.06976318359375, -0.035308837890625, 0.052764892578125, -0.0301361083984375, -0.043365478515625, -0.00864410400390625, -0.0380859375, -0.0221710205078125, 0.0209503173828125, 0.037017822265625, 0.0092926025390625, 0.01290130615234375, 0.0116729736328125, -0.01129913330078125, -0.0168304443359375, 0.012786865234375, 0.005756378173828125, -0.006572723388671875, 0.0247650146484375, -0.00652313232421875, 0.01328277587890625, 0.0140228271484375, 0.0166778564453125, 0.0253753662109375, -0.0211334228515625, 0.0850830078125, -0.053924560546875, 0.01025390625, 0.0238800048828125, 0.0233612060546875, 0.00146484375, 0.0183563232421875, 0.0130157470703125, -0.00919342041015625, 0.01403045654296875, -0.0174102783203125, -0.01456451416015625, -0.00748443603515625, 0.0262451171875, -0.042816162109375, -0.01508331298828125, -0.007617950439453125, 0.0262451171875, -0.01476287841796875, 0.06719970703125, -0.0117034912109375, -0.0153656005859375, -0.010833740234375, -0.01525115966796875, 0.0254669189453125, 0.0241241455078125, -0.0019426345825195312, 0.042205810546875, 0.0135498046875, 0.0012607574462890625, 0.0221405029296875, -0.0419921875, 0.057403564453125, 0.04034423828125, -0.0517578125, 0.0070343017578125, -0.01166534423828125, -0.0230560302734375, -0.00652313232421875, 0.007472991943359375, -0.0286102294921875, 0.00027942657470703125, -0.0191192626953125, 0.006671905517578125, -0.045562744140625, 0.0181427001953125, -0.0106353759765625, 0.0007004737854003906, -0.033203125, 0.0236968994140625, -0.01552581787109375, 0.0219879150390625, -0.0250244140625, -0.0078277587890625, -0.01502227783203125, -0.005451202392578125, -0.00870513916015625, -0.072021484375, -0.057769775390625, 0.0178985595703125, 0.060089111328125, 0.023712158203125, -0.057464599609375, 0.054931640625, -0.040863037109375, 0.0215911865234375, 0.053863525390625, -0.050537109375, 0.0013751983642578125, 0.01189422607421875, -0.0193939208984375, -0.042083740234375, -0.040435791015625, 0.0183563232421875, -0.03448486328125, -0.0178985595703125, -0.006557464599609375, 0.00484466552734375, -0.006557464599609375, 0.00038313865661621094, -0.0015516281127929688, 0.044647216796875, 0.00909423828125, -0.021575927734375, 0.0258636474609375, -0.01104736328125, -0.03204345703125, -0.022308349609375, 0.00988006591796875, -0.01294708251953125, -0.01081085205078125, 0.005889892578125, -0.01019287109375, 0.01690673828125, -0.045074462890625, -0.09197998046875, 0.0247955322265625, -0.00632476806640625, -0.038116455078125, -0.052764892578125, 0.005901336669921875, 0.0180816650390625, -0.0158233642578125, -0.0216064453125, 0.0032958984375, -0.0263214111328125, 0.033538818359375, -0.013671875, 0.041748046875, -0.00569915771484375, 0.00728607177734375, -0.0439453125, 0.0011138916015625, -0.0245513916015625, -0.0187530517578125, 0.043701171875, -0.035491943359375, 0.04815673828125, 0.0400390625, -0.037933349609375, -0.034454345703125, -0.01422119140625, -0.059722900390625, -0.0276947021484375, -0.0369873046875, 0.0087738037109375, 0.00872039794921875, 0.0711669921875, 0.006488800048828125, 0.00510406494140625, -0.043212890625, -0.00811767578125, -0.0005331039428710938, -0.0611572265625, -0.00832366943359375, 0.033721923828125, -0.058380126953125, -0.00252532958984375, 0.00836944580078125, 0.00688934326171875, 0.0216064453125, -0.0179290771484375, -0.010009765625, -0.01422119140625, 0.0027904510498046875, -0.0177001953125, -0.044036865234375, 0.0285186767578125, 0.01580810546875, -0.041046142578125, -0.048309326171875, 0.0010175704956054688, -0.0027751922607421875, -0.032470703125, -0.025726318359375, -0.0186614990234375, 0.00879669189453125, -0.007663726806640625, 0.003643035888671875, 0.0024013519287109375, 0.004886627197265625, -0.01045989990234375, 0.007526397705078125, 0.0018053054809570312, 0.0068206787109375, -0.00556182861328125, -0.0069580078125, -0.0166778564453125, 0.052886962890625, -0.0286712646484375, 0.06640625, -0.050689697265625, 0.07940673828125, -0.005184173583984375, 0.0186614990234375, -0.034759521484375, 0.034942626953125, 0.022308349609375, -0.015777587890625, 0.0052490234375, 0.01165771484375, 0.0006718635559082031, -0.0350341796875, 0.0218658447265625, -0.058807373046875, 0.01288604736328125, 0.0239715576171875 ]
07617783159bb67d972d8cafffd982a96a83277c
Wordpress Stackexchange Q: How to disable `SQL_CALC_FOUND_ROWS` Possible Duplicate: wordpress query causing load In the site I'm trying to optimize, I noticed several queries that are rather slow and start with SELECT SQL_CALC_FOUND_ROWS Searching this site, the relevant question wordpress query causing load has no adequate answer, in my opinion. Can I somehow disable SQL_CALC_FOUND_ROWS without breaking too many things - if possible breaking nothing? It seems that pagination relies on this. @Wyck advised me to read this core ticket: #10964. After reading it, I can't really understand if the ticket been completely resolved, it seems not. In any case, is there a way to disable SQL_CALC_FOUND_ROWS? A: First should only disable SQL_CALC_FOUND_ROWS if you aren't using pagination, to do so set parameter no_found_rows to true in WP_Query. WP_Query( array( 'no_found_rows' => true ) ); Note get_posts() does that by default.
Q: How to disable `SQL_CALC_FOUND_ROWS` Possible Duplicate: wordpress query causing load In the site I'm trying to optimize, I noticed several queries that are rather slow and start with SELECT SQL_CALC_FOUND_ROWS Searching this site, the relevant question wordpress query causing load has no adequate answer, in my opinion. Can I somehow disable SQL_CALC_FOUND_ROWS without breaking too many things - if possible breaking nothing? It seems that pagination relies on this. @Wyck advised me to read this core ticket: #10964. After reading it, I can't really understand if the ticket been completely resolved, it seems not. In any case, is there a way to disable SQL_CALC_FOUND_ROWS? A: First should only disable SQL_CALC_FOUND_ROWS if you aren't using pagination, to do so set parameter no_found_rows to true in WP_Query. WP_Query( array( 'no_found_rows' => true ) ); Note get_posts() does that by default.
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:425442", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71381" }
[ 0.07952880859375, -0.00850677490234375, 0.004695892333984375, 0.01056671142578125, 0.019012451171875, -0.0655517578125, 0.096435546875, -0.01496124267578125, 0.0225372314453125, 0.03387451171875, -0.054168701171875, -0.0063934326171875, -0.007175445556640625, 0.006702423095703125, -0.031768798828125, -0.053192138671875, 0.0299835205078125, 0.0012426376342773438, 0.000377655029296875, -0.0264892578125, 0.00481414794921875, -0.01385498046875, 0.00559234619140625, 0.0872802734375, -0.007038116455078125, -0.006134033203125, 0.06964111328125, -0.023834228515625, 0.01216888427734375, -0.0250244140625, 0.01500701904296875, -0.010498046875, -0.006855010986328125, 0.0214691162109375, 0.0044708251953125, -0.024993896484375, -0.0157470703125, 0.019927978515625, 0.006378173828125, 0.00702667236328125, 0.033721923828125, -0.02203369140625, -0.035491943359375, -0.0287322998046875, -0.03302001953125, -0.01593017578125, 0.033416748046875, -0.007274627685546875, 0.033447265625, 0.006999969482421875, -0.0031223297119140625, 0.0526123046875, 0.003856658935546875, -0.0223541259765625, -0.009857177734375, -0.0161590576171875, 0.01361846923828125, 0.0253448486328125, 0.006866455078125, -0.03533935546875, -0.0232391357421875, 0.03643798828125, 0.0081634521484375, 0.0229339599609375, -0.03350830078125, -0.00475311279296875, 0.00339508056640625, 0.004543304443359375, -0.0245208740234375, -0.045135498046875, 0.0310516357421875, -0.0194091796875, 0.00594329833984375, 0.04339599609375, -0.0059051513671875, -0.034912109375, 0.0330810546875, 0.00604248046875, 0.0215301513671875, 0.0308990478515625, -0.005092620849609375, -0.01177978515625, -0.059326171875, 0.031646728515625, -0.00347900390625, 0.050811767578125, -0.0059661865234375, -0.0215606689453125, -0.004047393798828125, -0.040863037109375, -0.0249481201171875, -0.0025386810302734375, -0.02703857421875, -0.0107421875, -0.036346435546875, -0.027923583984375, 0.0238800048828125, 0.012664794921875, -0.021881103515625, -0.016357421875, 0.00925445556640625, -0.046142578125, 0.0156402587890625, -0.00455474853515625, 0.01198577880859375, 0.06170654296875, -0.00662994384765625, -0.027374267578125, 0.023406982421875, 0.0149688720703125, 0.02056884765625, -0.0015974044799804688, -0.0266265869140625, 0.021759033203125, -0.04498291015625, 0.00836181640625, -0.04669189453125, -0.007144927978515625, -0.027191162109375, 0.017120361328125, -0.00644683837890625, 0.019744873046875, -0.046142578125, -0.016387939453125, 0.0018606185913085938, -0.03558349609375, -0.0100555419921875, 0.042236328125, -0.0531005859375, 0.04144287109375, -0.0224609375, -0.007274627685546875, 0.06744384765625, 0.06494140625, 0.018524169921875, -0.01715087890625, -0.00424957275390625, -0.01042938232421875, -0.0078887939453125, 0.03173828125, -0.010894775390625, -0.054962158203125, -0.006427764892578125, 0.008941650390625, -0.0120849609375, 0.01143646240234375, 0.0185699462890625, 0.0080718994140625, 0.0037250518798828125, -0.0189666748046875, -0.047760009765625, 0.041412353515625, 0.032470703125, 0.0017595291137695312, -0.031768798828125, 0.0157623291015625, 0.01629638671875, 0.0042877197265625, -0.06524658203125, -0.03192138671875, -0.00855255126953125, 0.003299713134765625, 0.034210205078125, 0.0102081298828125, -0.055267333984375, 0.009063720703125, 0.01441192626953125, -0.0119781494140625, 0.02764892578125, 0.020172119140625, -0.0017004013061523438, -0.0153961181640625, 0.015899658203125, 0.0017137527465820312, -0.01617431640625, 0.00937652587890625, -0.01415252685546875, 0.01568603515625, 0.029144287109375, -0.0211181640625, -0.027618408203125, -0.044097900390625, 0.045318603515625, 0.0019063949584960938, -0.0780029296875, 0.08428955078125, -0.02386474609375, 0.0227508544921875, 0.007381439208984375, -0.0091094970703125, 0.08026123046875, 0.06341552734375, -0.00214385986328125, 0.0014543533325195312, 0.023040771484375, -0.04669189453125, -0.06982421875, -0.04754638671875, -0.01462554931640625, 0.0223388671875, 0.0167388916015625, 0.01207733154296875, -0.0423583984375, -0.006603240966796875, -0.094970703125, -0.0099029541015625, -0.016815185546875, 0.0231475830078125, -0.00412750244140625, 0.03375244140625, 0.0126495361328125, 0.032745361328125, -0.048858642578125, 0.033843994140625, -0.002857208251953125, -0.01983642578125, -0.031585693359375, 0.03387451171875, 0.006622314453125, 0.0217132568359375, 0.01436614990234375, -0.0249481201171875, 0.0192718505859375, 0.0021915435791015625, -0.0184326171875, -0.016082763671875, -0.001079559326171875, -0.00833892822265625, 0.0279083251953125, -0.0298004150390625, 0.077880859375, 0.015869140625, 0.054962158203125, 0.053497314453125, -0.0186309814453125, 0.018463134765625, 0.011871337890625, -0.036712646484375, -0.02423095703125, 0.03131103515625, 0.041412353515625, 0.024017333984375, -0.029693603515625, -0.0484619140625, 0.032440185546875, -0.07470703125, -0.00693511962890625, -0.0050048828125, 0.00835418701171875, 0.023712158203125, -0.02142333984375, -0.021697998046875, 0.03375244140625, 0.004638671875, -0.015167236328125, 0.045501708984375, 0.0170135498046875, 0.01198577880859375, 0.00691986083984375, 0.003215789794921875, -0.0016326904296875, 0.035675048828125, -0.007526397705078125, 0.0108642578125, 0.0165557861328125, 0.01178741455078125, 0.01514434814453125, 0.0146026611328125, -0.01549530029296875, 0.044647216796875, 0.01247406005859375, -0.07183837890625, -0.010955810546875, -0.026611328125, -0.028594970703125, 0.011932373046875, -0.06561279296875, 0.052978515625, 0.0032367706298828125, -0.0265655517578125, -0.0186767578125, -0.0200653076171875, -0.02203369140625, -0.0003032684326171875, -0.0163726806640625, -0.060302734375, 0.03466796875, 0.031829833984375, -0.034149169921875, -0.006198883056640625, 0.0036144256591796875, 0.0523681640625, 0.0090179443359375, 0.013092041015625, -0.0080413818359375, 0.021331787109375, 0.011322021484375, -0.0009732246398925781, 0.0006990432739257812, 0.01239013671875, 0.071044921875, 0.0670166015625, 0.01259613037109375, 0.0006070137023925781, -0.006931304931640625, -0.00714111328125, 0.023895263671875, -0.0033931732177734375, -0.0201263427734375, 0.00698089599609375, -0.08062744140625, -0.00516510009765625, 0.03485107421875, 0.0765380859375, 0.01288604736328125, -0.033538818359375, 0.0323486328125, 0.0440673828125, -0.036468505859375, -0.09649658203125, -0.004673004150390625, 0.0107574462890625, -0.0266876220703125, 0.0221405029296875, 0.01522064208984375, -0.006633758544921875, 0.01934814453125, -0.01027679443359375, 0.052398681640625, -0.00811004638671875, -0.08172607421875, -0.0022563934326171875, -0.0787353515625, 0.032012939453125, -0.00252532958984375, 0.0188446044921875, 0.0052032470703125, 0.0709228515625, 0.00531005859375, -0.065185546875, -0.022552490234375, -0.04107666015625, -0.03082275390625, 0.00152587890625, -0.0127410888671875, -0.0232391357421875, 0.002498626708984375, 0.00934600830078125, -0.0181121826171875, -0.002750396728515625, 0.0197601318359375, -0.030975341796875, 0.0289306640625, 0.028167724609375, 0.0279083251953125, 0.00988006591796875, -0.032989501953125, 0.02264404296875, 0.0064239501953125, -0.0310821533203125, -0.0633544921875, -0.01454925537109375, -0.06439208984375, -0.018707275390625, 0.032928466796875, 0.023895263671875, -0.0192108154296875, 0.00041294097900390625, 0.06402587890625, 0.01511383056640625, 0.00658416748046875, -0.0087890625, 0.035308837890625, 0.0251617431640625, 0.0496826171875, -0.040374755859375, 0.058074951171875, -0.020233154296875, 0.01346588134765625, 0.0293121337890625, -0.016845703125, -0.0235137939453125, -0.018280029296875, -0.046142578125, 0.01409912109375, 0.02740478515625, 0.0108642578125, 0.0245208740234375, -0.006137847900390625, -0.009002685546875, -0.02825927734375, 0.033477783203125, 0.004344940185546875, -0.0266265869140625, -0.0224609375, 0.01548004150390625, -0.036346435546875, -0.03656005859375, -0.00604248046875, -0.012237548828125, -0.007568359375, -0.01364898681640625, -0.02557373046875, -0.0029010772705078125, -0.0235137939453125, -0.004070281982421875, -0.0090484619140625, -0.03814697265625, 0.0298309326171875, -0.030609130859375, -0.01190185546875, 0.036712646484375, -0.02508544921875, 0.006381988525390625, -0.031402587890625, -0.02130126953125, -0.0870361328125, -0.024871826171875, 0.0046234130859375, 0.06488037109375, -0.0032863616943359375, -0.0134429931640625, -0.03955078125, 0.0281982421875, 0.0325927734375, -0.01537322998046875, 0.04083251953125, -0.00421142578125, 0.0215606689453125, 0.037078857421875, 0.0306243896484375, -0.0236663818359375, -0.02001953125, -0.0181732177734375, 0.0081787109375, 0.023834228515625, -0.028076171875, -0.0036182403564453125, -0.016845703125, -0.01055908203125, -0.0235443115234375, -0.0279541015625, -0.0167083740234375, 0.033782958984375, -0.0301513671875, 0.0198974609375, -0.04461669921875, -0.0181427001953125, 0.05865478515625, -0.01068878173828125, 0.00292205810546875, -0.00743865966796875, 0.07275390625, 0.004215240478515625, -0.02349853515625, 0.0003371238708496094, -0.01549530029296875, 0.0190277099609375, 0.0139617919921875, 0.02215576171875, -0.00267791748046875, -0.01485443115234375, 0.03509521484375, -0.01036834716796875, -0.0224456787109375, -0.0171051025390625, 0.025665283203125, -0.005229949951171875, -0.02532958984375, -0.01001739501953125, -0.03619384765625, 0.050048828125, 0.06103515625, 0.0177154541015625, -0.00478363037109375, 0.05865478515625, 0.019805908203125, -0.034149169921875, -0.03912353515625, -0.007110595703125, -0.010955810546875, 0.01153564453125, 0.0188140869140625, 0.01209259033203125, 0.0258941650390625, 0.001857757568359375, -0.00731658935546875, -0.004718780517578125, 0.006809234619140625, 0.0186614990234375, 0.005672454833984375, -0.04742431640625, 0.02374267578125, 0.0211639404296875, -0.0227813720703125, 0.0213470458984375, -0.0017747879028320312, 0.02801513671875, -0.028045654296875, -0.0732421875, 0.0018863677978515625, 0.00244140625, 0.03778076171875, 0.032562255859375, 0.0013036727905273438, 0.0380859375, 0.027587890625, 0.0012159347534179688, -0.01995849609375, -0.0078277587890625, -0.00858306884765625, -0.0265350341796875, 0.0268402099609375, 0.00560760498046875, 0.006755828857421875, 0.04705810546875, 0.0275421142578125, -0.0067901611328125, 0.048919677734375, -0.0088653564453125, 0.0032711029052734375, -0.017608642578125, 0.041290283203125, -0.006023406982421875, 0.004730224609375, 0.0207366943359375, 0.030059814453125, 0.05377197265625, -0.0248565673828125, 0.00958251953125, 0.01203155517578125, 0.00868988037109375, -0.00745391845703125, -0.040557861328125, 0.0367431640625, -0.022705078125, -0.025177001953125, 0.03363037109375, 0.005855560302734375, 0.00872039794921875, -0.06573486328125, -0.06768798828125, 0.035186767578125, 0.0242919921875, -0.00018644332885742188, 0.0134735107421875, -0.033447265625, 0.0224761962890625, 0.0131378173828125, 0.0202484130859375, -0.046173095703125, -0.03802490234375, 0.00046062469482421875, -0.052520751953125, -0.034027099609375, 0.043426513671875, 0.037261962890625, -0.0144805908203125, -0.0238037109375, 0.0028514862060546875, -0.01558685302734375, 0.03350830078125, -0.009368896484375, -0.034210205078125, 0.00946807861328125, 0.0262603759765625, 0.01056671142578125, 0.003261566162109375, -0.0285491943359375, -0.0293426513671875, -0.07012939453125, -0.03839111328125, -0.0228729248046875, -0.0245361328125, -0.0244598388671875, 0.0232391357421875, 0.01018524169921875, 0.023895263671875, -0.0300445556640625, -0.0777587890625, -0.036285400390625, -0.022216796875, 0.039703369140625, -0.031097412109375, -0.03582763671875, 0.05474853515625, 0.0018138885498046875, 0.0178985595703125, -0.004261016845703125, 0.045166015625, 0.0245361328125, -0.0213165283203125, 0.022216796875, -0.06451416015625, -0.045318603515625, 0.002529144287109375, -0.0294189453125, 0.012542724609375, -0.009490966796875, -0.0164947509765625, 0.0313720703125, -0.0205230712890625, 0.0088043212890625, -0.03643798828125, 0.0025768280029296875, -0.05792236328125, 0.03045654296875, -0.022674560546875, -0.005733489990234375, -0.03350830078125, -0.018524169921875, -0.01554107666015625, 0.013519287109375, 0.0241546630859375, -0.008544921875, -0.045806884765625, 0.0005078315734863281, 0.03424072265625, 0.06719970703125, 0.0055389404296875, 0.065673828125, 0.03515625, 0.025909423828125, 0.0279541015625, 0.005084991455078125, -0.0246429443359375, 0.00336456298828125, 0.037628173828125, -0.0031909942626953125, -0.031829833984375, 0.00618743896484375, -0.0311126708984375, -0.0146026611328125, 0.06817626953125, 0.02740478515625, -0.09326171875, -0.005462646484375, -0.0231170654296875, 0.019439697265625, -0.00450897216796875, -0.01593017578125, 0.0014333724975585938, -0.0355224609375, 0.022125244140625, 0.021514892578125, -0.0162200927734375, -0.00811004638671875, -0.0007815361022949219, -0.01258087158203125, -0.00962066650390625, -0.0367431640625, -0.0009603500366210938, -0.0189056396484375, 0.014129638671875, 0.0158843994140625, 0.004360198974609375, -0.005329132080078125, -0.00414276123046875, -0.007144927978515625, -0.0180816650390625, -0.07794189453125, -0.01204681396484375, -0.003265380859375, -0.0261993408203125, 0.01654052734375, -0.005970001220703125, 0.0019702911376953125, 0.049346923828125, -0.021026611328125, 0.0251617431640625, 0.0079498291015625, -0.01107025146484375, -0.0134735107421875, -0.02386474609375, 0.00795745849609375, 0.02545166015625, -0.048004150390625, 0.01525115966796875, -0.01026153564453125, -0.01073455810546875, -0.0048980712890625, -0.035186767578125, 0.0233306884765625, -0.001903533935546875, -0.00911712646484375, 0.0168914794921875, 0.027313232421875, 0.00237274169921875, -0.037689208984375, 0.016998291015625, -0.006618499755859375, 0.029052734375, -0.038970947265625, -0.0225067138671875, -0.0016002655029296875, -0.061431884765625, -0.01094818115234375, 0.034576416015625, -0.047882080078125, -0.0089874267578125, 0.0460205078125, 0.017333984375, 0.0049591064453125, 0.0253753662109375, -0.0264434814453125, 0.05316162109375, -0.005283355712890625, 0.076416015625, -0.022979736328125, -0.0205841064453125, 0.04736328125, 0.04949951171875, -0.010498046875, -0.01410675048828125, -0.0196685791015625, -0.029205322265625, 0.030059814453125, 0.04925537109375, 0.042205810546875, 0.01446533203125, -0.030609130859375, 0.026031494140625, 0.051116943359375, -0.0672607421875, 0.00010991096496582031, 0.039886474609375, -0.0142364501953125, 0.01418304443359375, 0.0256805419921875, 0.04815673828125, -0.027069091796875, 0.050140380859375, 0.00846099853515625, -0.021087646484375, 0.0167999267578125, -0.01904296875, 0.0238037109375, 0.0218505859375, 0.0616455078125, -0.1126708984375, -0.0853271484375, -0.01418304443359375, 0.027557373046875, 0.020660400390625, -0.007038116455078125, -0.0031261444091796875, -0.007656097412109375, 0.06695556640625, -0.01206207275390625, -0.0290985107421875, 0.0170440673828125, 0.0030269622802734375, 0.00896453857421875, 0.0220794677734375, 0.0440673828125, -0.026763916015625, -0.021148681640625, 0.029327392578125, 0.02972412109375, -0.003833770751953125, -0.0335693359375, 0.0308990478515625, 0.01222991943359375, -0.031402587890625, -0.0191192626953125, -0.043212890625, 0.0036220550537109375, 0.06915283203125, 0.0254364013671875, -0.02679443359375, -0.0256195068359375, -0.004119873046875, -0.01102447509765625, -0.005466461181640625, 0.054962158203125, 0.000919342041015625, -0.00901031494140625, -0.019256591796875, -0.005802154541015625, 0.04443359375, 0.0229034423828125, 0.003238677978515625, -0.041595458984375, -0.018798828125, -0.04718017578125, 0.041748046875, -0.05352783203125, 0.07025146484375, -0.09173583984375, -0.0675048828125, 0.0035839080810546875, 0.08380126953125, 0.025421142578125, 0.009063720703125, 0.055572509765625, 0.0310516357421875, -0.042327880859375, -0.00032329559326171875, 0.0648193359375, -0.01995849609375, -0.020843505859375, -0.00913238525390625, -0.0247955322265625, 0.02880859375, -0.01221466064453125, -0.0094757080078125, 0.05517578125, 0.0013942718505859375, 0.0008955001831054688, 0.0301055908203125, -0.007091522216796875, 0.006626129150390625, 0.0231475830078125, 0.019683837890625, 0.005947113037109375, 0.031951904296875, -0.048065185546875, -0.0201416015625, -0.03399658203125, -0.0007681846618652344, 0.009429931640625, 0.0280914306640625, -0.0121917724609375, 0.022796630859375, 0.054473876953125, -0.0216064453125, 0.010711669921875, -0.004451751708984375, 0.0350341796875, 0.0011243820190429688, 0.0092315673828125, 0.01373291015625, -0.01335906982421875, -0.007205963134765625, 0.017822265625, 0.0263824462890625, -0.01464080810546875, 0.059906005859375, -0.01493072509765625, -0.007328033447265625, 0.03802490234375, -0.03729248046875, 0.059417724609375, 0.033447265625, -0.0107269287109375, -0.007144927978515625, -0.01702880859375, -0.0218505859375, -0.058258056640625, 0.040191650390625, 0.006435394287109375, 0.00556182861328125, 0.033660888671875, -0.02423095703125, 0.0089874267578125, 0.009552001953125, -0.03955078125, -0.055328369140625, 0.0007390975952148438, 0.0288238525390625, -0.0032958984375, -0.016754150390625, -0.045867919921875, 0.0234222412109375, 0.011749267578125, -0.0053558349609375, -0.0186004638671875, 0.030548095703125, -0.020904541015625, 0.0545654296875, 0.0307769775390625, -0.0467529296875, 0.037689208984375, -0.005168914794921875, -0.01502227783203125, 0.032684326171875, 0.01158905029296875, -0.046295166015625, 0.03948974609375, -0.006641387939453125, -0.0216827392578125, 0.0286407470703125, 0.040069580078125, 0.00334930419921875, 0.0214080810546875, -0.00632476806640625, -0.01169586181640625, -0.00589752197265625, 0.031646728515625, -0.0006799697875976562, 0.01132965087890625, -0.052734375, -0.0272979736328125, -0.006267547607421875, -0.0474853515625, 0.03271484375, -0.02099609375, 0.0340576171875, 0.026214599609375, -0.06744384765625, 0.03070068359375, -0.0167694091796875, 0.0234222412109375, 0.00832366943359375, -0.015167236328125, 0.01255035400390625, 0.0232696533203125, -0.0078277587890625, -0.031036376953125, -0.0043182373046875, 0.028717041015625, 0.003055572509765625, 0.01377105712890625, 0.034759521484375, -0.018646240234375, -0.0260009765625, 0.01308441162109375, 0.0229644775390625, 0.04754638671875, -0.044281005859375, 0.0038776397705078125, 0.043060302734375, -0.002044677734375, -0.025848388671875, -0.0638427734375, -0.024444580078125, -0.023712158203125, 0.032440185546875, -0.037628173828125, 0.006195068359375, -0.0038318634033203125, -0.051422119140625, -0.08575439453125, 0.037200927734375, -0.01824951171875, -0.026153564453125, -0.037322998046875, -0.022491455078125, -0.01155853271484375, 0.01474761962890625, -0.003360748291015625, -0.03369140625, -0.037261962890625, 0.035675048828125, 0.023040771484375, -0.00579071044921875, 0.06658935546875, -0.0299530029296875, -0.073974609375, -0.0281524658203125, -0.04034423828125, 0.040130615234375, -0.012054443359375, 0.0262603759765625, 0.00923919677734375, 0.0277099609375, -0.01345062255859375, 0.025421142578125, -0.0028820037841796875, -0.011077880859375, -0.00848388671875, -0.0174713134765625, 0.00821685791015625, 0.019866943359375, 0.037139892578125, 0.05841064453125, 0.0070343017578125, -0.047882080078125, -0.032928466796875, -0.032379150390625, -0.0237884521484375, -0.0193939208984375, 0.021240234375, -0.05047607421875, 0.01381683349609375, 0.004680633544921875, -0.016845703125, -0.000047266483306884766, -0.011199951171875, -0.0576171875, -0.0014982223510742188, -0.042236328125, 0.003681182861328125, -0.0638427734375, 0.031585693359375, -0.064208984375, -0.010162353515625, -0.05841064453125, -0.00684356689453125, -0.005924224853515625, -0.0821533203125, -0.033966064453125, -0.03790283203125, 0.01090240478515625, 0.0013866424560546875, 0.0404052734375, -0.0174560546875, 0.006763458251953125, -0.0258941650390625, 0.03857421875, -0.0021877288818359375, 0.021575927734375, -0.00397491455078125, 0.0213623046875, -0.004207611083984375, 0.0241851806640625, 0.0010290145874023438, 0.0814208984375, 0.0323486328125, 0.0621337890625, -0.00925445556640625, 0.059173583984375, 0.0043792724609375, -0.037017822265625, -0.00021636486053466797, 0.004016876220703125, 0.000232696533203125, 0.0140228271484375, -0.0157623291015625, -0.017974853515625, 0.01207733154296875, -0.04669189453125, -0.0213775634765625, 0.002414703369140625 ]
81f10d8791f6ca12f23d742714898799a1cdba1f
Wordpress Stackexchange Q: Setting 404 page in Nginx I am using this page (http://wiki.nginx.org/WordPress) to setup my WordPress on a nginx/php-fpm server. Everything is okay, except the 404 page * *When I request www.example.com/foo, it send me the default nginx 404 not found page *I have already set the following, but no luck.. Config: fastcgi_intercept_errors on; error_page 404 /index.php?error=404; I have tried to add some code (e.g. die("wordpress");) in a plugin when I request this page, and clearly that the request is handled by wordpress already, but it just can't use the 404.php in the default template. Anyone can help? A: Remove the 'fastcgi_intercept_errors' argument from you configuration. It's unnecessary since 'error_page' declares 404 errors, which should be handled by index.php, which will trigger PHP-FPM to handle it, and WordPress to present your theme's 404 page. It seems counter-intuitive, but 'fastcgi_intercept_errors' is actually causing PHP not to handle the error page.
Q: Setting 404 page in Nginx I am using this page (http://wiki.nginx.org/WordPress) to setup my WordPress on a nginx/php-fpm server. Everything is okay, except the 404 page * *When I request www.example.com/foo, it send me the default nginx 404 not found page *I have already set the following, but no luck.. Config: fastcgi_intercept_errors on; error_page 404 /index.php?error=404; I have tried to add some code (e.g. die("wordpress");) in a plugin when I request this page, and clearly that the request is handled by wordpress already, but it just can't use the 404.php in the default template. Anyone can help? A: Remove the 'fastcgi_intercept_errors' argument from you configuration. It's unnecessary since 'error_page' declares 404 errors, which should be handled by index.php, which will trigger PHP-FPM to handle it, and WordPress to present your theme's 404 page. It seems counter-intuitive, but 'fastcgi_intercept_errors' is actually causing PHP not to handle the error page.
wordpress
{ "language": "en", "length": 149, "provenance": "stackexchange_00019.jsonl.gz:425445", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71388" }
[ 0.02313232421875, -0.00852203369140625, 0.0006461143493652344, -0.0011911392211914062, -0.006927490234375, -0.0104522705078125, 0.037139892578125, -0.02459716796875, 0.022857666015625, -0.0192413330078125, -0.06341552734375, -0.003940582275390625, 0.003719329833984375, -0.0245208740234375, 0.002315521240234375, -0.0291900634765625, -0.01146697998046875, 0.0162506103515625, 0.02789306640625, -0.020843505859375, -0.015838623046875, -0.0147247314453125, 0.048828125, -0.048797607421875, 0.01145172119140625, -0.0362548828125, 0.047332763671875, -0.00649261474609375, -0.01473236083984375, -0.02545166015625, -0.00057220458984375, 0.0224761962890625, 0.048553466796875, 0.011383056640625, -0.033355712890625, 0.01343536376953125, -0.023956298828125, -0.002643585205078125, -0.024078369140625, 0.04425048828125, 0.0333251953125, -0.022003173828125, 0.097900390625, 0.030242919921875, 0.030029296875, -0.017425537109375, 0.03863525390625, -0.06475830078125, 0.03936767578125, -0.00566864013671875, -0.003192901611328125, 0.01381683349609375, 0.00421905517578125, -0.0338134765625, -0.00958251953125, -0.01294708251953125, 0.01419830322265625, 0.02423095703125, -0.0143280029296875, -0.02191162109375, -0.01690673828125, 0.05718994140625, 0.004772186279296875, 0.032562255859375, -0.0006699562072753906, -0.01261138916015625, -0.02801513671875, 0.01739501953125, -0.08087158203125, -0.0026454925537109375, 0.060394287109375, -0.055145263671875, -0.01343536376953125, 0.0291748046875, -0.0012140274047851562, -0.0312042236328125, 0.01352691650390625, 0.009735107421875, 0.008087158203125, 0.0274658203125, 0.037628173828125, -0.015716552734375, 0.0010433197021484375, -0.030426025390625, 0.01395416259765625, 0.0006461143493652344, -0.0004496574401855469, -0.019256591796875, -0.0279388427734375, -0.014923095703125, -0.03314208984375, -0.01137542724609375, 0.0006365776062011719, -0.038970947265625, -0.02801513671875, -0.0234527587890625, -0.03350830078125, -0.00844573974609375, -0.0005354881286621094, 0.047149658203125, -0.0017633438110351562, -0.022125244140625, 0.061431884765625, -0.044677734375, 0.0027408599853515625, 0.0460205078125, -0.0037097930908203125, 0.00983428955078125, 0.036834716796875, 0.023162841796875, 0.01509857177734375, -0.001407623291015625, 0.0080718994140625, -0.025360107421875, -0.034271240234375, 0.015869140625, 0.005023956298828125, -0.03973388671875, -0.004749298095703125, -0.042572021484375, -0.011138916015625, 0.0207366943359375, -0.0085906982421875, -0.017333984375, 0.017364501953125, 0.001819610595703125, 0.0006132125854492188, -0.0197906494140625, 0.05035400390625, -0.0013875961303710938, -0.02215576171875, 0.03863525390625, -0.00384521484375, -0.047393798828125, -0.0282440185546875, 0.00376129150390625, 0.01438140869140625, 0.0027942657470703125, 0.00731658935546875, 0.005451202392578125, 0.01128387451171875, -0.040863037109375, -0.0265045166015625, 0.01361083984375, 0.000637054443359375, 0.0029048919677734375, 0.028656005859375, 0.033721923828125, -0.009918212890625, -0.04791259765625, 0.012451171875, 0.0164642333984375, 0.025390625, 0.0258636474609375, 0.011138916015625, 0.0257110595703125, 0.03839111328125, -0.028350830078125, -0.0428466796875, -0.01800537109375, 0.007152557373046875, 0.00507354736328125, 0.046966552734375, -0.0372314453125, -0.06201171875, -0.0169677734375, -0.051788330078125, -0.01922607421875, 0.00714111328125, 0.01519775390625, -0.024566650390625, 0.022125244140625, -0.02392578125, -0.0195465087890625, -0.0165252685546875, -0.0224456787109375, 0.0134124755859375, 0.003986358642578125, -0.00988006591796875, 0.07684326171875, 0.0301666259765625, -0.01471710205078125, 0.01013946533203125, 0.015594482421875, -0.0533447265625, 0.01230621337890625, -0.018524169921875, 0.01515960693359375, 0.03509521484375, -0.0040740966796875, 0.0335693359375, -0.013092041015625, -0.0219268798828125, 0.052886962890625, -0.01348876953125, -0.0245819091796875, -0.01309967041015625, 0.022735595703125, -0.022308349609375, -0.04736328125, -0.038787841796875, 0.003421783447265625, 0.004688262939453125, 0.0240020751953125, -0.0005145072937011719, 0.00882720947265625, -0.0141448974609375, 0.0167388916015625, 0.0218963623046875, -0.0135498046875, -0.003204345703125, -0.0235137939453125, -0.005252838134765625, 0.0006947517395019531, -0.047943115234375, 0.0343017578125, -0.016265869140625, 0.03851318359375, -0.0046844482421875, 0.052001953125, -0.0280609130859375, -0.022796630859375, -0.0312347412109375, -0.03204345703125, 0.036102294921875, -0.01343536376953125, -0.0028972625732421875, -0.0142059326171875, 0.0562744140625, -0.0170440673828125, 0.0294952392578125, 0.0175018310546875, -0.0283660888671875, 0.0113983154296875, -0.0298309326171875, -0.020233154296875, -0.048858642578125, -0.041473388671875, 0.02227783203125, 0.03338623046875, 0.04168701171875, 0.041473388671875, 0.0016908645629882812, -0.0134735107421875, 0.0257415771484375, -0.0543212890625, 0.016693115234375, -0.01459503173828125, 0.002689361572265625, -0.01393890380859375, 0.00786590576171875, -0.040496826171875, 0.040618896484375, -0.0625, -0.00325775146484375, 0.034881591796875, -0.00020825862884521484, -0.002223968505859375, -0.01078033447265625, -0.0009202957153320312, 0.01284027099609375, 0.0114898681640625, -0.0180511474609375, 0.011322021484375, 0.03558349609375, -0.0280609130859375, 0.007274627685546875, 0.003467559814453125, -0.00023317337036132812, -0.0173187255859375, 0.0003838539123535156, -0.062286376953125, 0.021087646484375, 0.016082763671875, -0.039703369140625, 0.03839111328125, -0.026092529296875, -0.0016965866088867188, 0.03564453125, 0.0106353759765625, -0.0065155029296875, 0.0386962890625, -0.03369140625, -0.01253509521484375, -0.0160369873046875, -0.041046142578125, -0.0018787384033203125, 0.01441192626953125, 0.0244903564453125, -0.00339508056640625, 0.01316070556640625, 0.0083160400390625, -0.04376220703125, 0.0704345703125, 0.004085540771484375, -0.039642333984375, -0.0212249755859375, -0.0762939453125, 0.069580078125, -0.044342041015625, 0.0013494491577148438, 0.06402587890625, 0.00505828857421875, -0.00911712646484375, 0.01092529296875, -0.017425537109375, 0.00867462158203125, 0.0221405029296875, -0.01258087158203125, -0.005916595458984375, -0.06585693359375, -0.0010890960693359375, 0.016754150390625, 0.0008263587951660156, 0.0183868408203125, -0.0200347900390625, 0.00681304931640625, 0.0242156982421875, -0.04937744140625, -0.0751953125, 0.0032672882080078125, -0.0223388671875, 0.01351165771484375, -0.0043487548828125, 0.0129852294921875, -0.0253448486328125, -0.010406494140625, 0.00702667236328125, 0.00611114501953125, -0.031890869140625, -0.0606689453125, -0.06768798828125, -0.0916748046875, -0.0235595703125, -0.0035915374755859375, 0.033355712890625, 0.006511688232421875, 0.04266357421875, -0.01522064208984375, -0.07196044921875, -0.05657958984375, -0.015411376953125, -0.0308685302734375, -0.03448486328125, 0.0197906494140625, -0.007190704345703125, -0.003429412841796875, 0.011688232421875, 0.0246429443359375, 0.01372528076171875, -0.024810791015625, -0.0285491943359375, -0.05120849609375, -0.0386962890625, -0.04949951171875, -0.012054443359375, 0.06829833984375, -0.07342529296875, -0.034088134765625, -0.071044921875, -0.0352783203125, -0.01641845703125, -0.0665283203125, -0.008392333984375, 0.038177490234375, 0.01073455810546875, -0.0189208984375, -0.0015268325805664062, 0.004459381103515625, -0.006885528564453125, 0.0286407470703125, -0.025299072265625, 0.04229736328125, -0.003387451171875, 0.0004825592041015625, -0.03076171875, 0.042083740234375, -0.006031036376953125, -0.0013360977172851562, 0.0092620849609375, 0.00928497314453125, -0.0174407958984375, -0.00011670589447021484, -0.06634521484375, -0.05615234375, 0.0321044921875, -0.0300750732421875, -0.003467559814453125, -0.0191650390625, 0.00302886962890625, 0.0103912353515625, 0.054962158203125, -0.05609130859375, -0.032958984375, 0.0022640228271484375, 0.042022705078125, 0.01155853271484375, -0.07257080078125, 0.0235595703125, -0.04461669921875, -0.0178070068359375, -0.00543212890625, 0.0104827880859375, -0.033843994140625, 0.0170135498046875, -0.05419921875, -0.0120391845703125, -0.03125, 0.0251007080078125, -0.05401611328125, 0.01035308837890625, 0.0301361083984375, 0.00688934326171875, -0.024688720703125, -0.0015535354614257812, -0.03839111328125, -0.064697265625, -0.0202789306640625, -0.021820068359375, 0.06982421875, 0.0194854736328125, -0.0036754608154296875, -0.0018262863159179688, 0.04986572265625, 0.0276641845703125, -0.00443267822265625, 0.0184478759765625, -0.026947021484375, 0.0110626220703125, 0.0195159912109375, 0.0299835205078125, -0.01494598388671875, 0.0300750732421875, 0.017425537109375, -0.049774169921875, -0.007450103759765625, -0.01396942138671875, -0.0301666259765625, 0.058624267578125, -0.08026123046875, -0.061676025390625, -0.04730224609375, -0.016082763671875, -0.00839996337890625, 0.0064697265625, -0.011077880859375, -0.039276123046875, -0.0540771484375, 0.039398193359375, -0.01983642578125, -0.01416015625, -0.00009274482727050781, 0.01068115234375, 0.01442718505859375, -0.028350830078125, 0.035430908203125, -0.01629638671875, 0.00605010986328125, -0.016265869140625, 0.044708251953125, 0.01294708251953125, 0.0113067626953125, 0.035736083984375, -0.036651611328125, 0.0010509490966796875, 0.0010671615600585938, -0.016021728515625, -0.017181396484375, -0.050567626953125, 0.007904052734375, -0.03326416015625, 0.0250091552734375, 0.046600341796875, 0.00005930662155151367, -0.0145111083984375, 0.0125579833984375, 0.01422882080078125, -0.0570068359375, 0.04742431640625, 0.0026531219482421875, -0.039031982421875, 0.00966644287109375, -0.0265655517578125, 0.025848388671875, 0.02740478515625, -0.01358795166015625, 0.05145263671875, 0.0279083251953125, -0.03704833984375, 0.034393310546875, 0.0207061767578125, 0.0202178955078125, 0.01458740234375, 0.00637054443359375, -0.0380859375, 0.01026153564453125, -0.005496978759765625, 0.02716064453125, -0.006137847900390625, -0.06109619140625, 0.0023956298828125, -0.004604339599609375, -0.0084991455078125, 0.01427459716796875, 0.00806427001953125, 0.0311431884765625, -0.0018377304077148438, -0.03399658203125, -0.002506256103515625, 0.003437042236328125, -0.03173828125, -0.049774169921875, -0.01507568359375, 0.01087188720703125, -0.01221466064453125, 0.0156707763671875, 0.047515869140625, 0.03741455078125, -0.001155853271484375, -0.03765869140625, -0.034515380859375, 0.00661468505859375, 0.061767578125, 0.0195770263671875, -0.030670166015625, -0.01519012451171875, 0.06658935546875, 0.03271484375, -0.04083251953125, -0.02252197265625, -0.0018491744995117188, 0.047821044921875, -0.046783447265625, -0.035247802734375, 0.061004638671875, 0.005283355712890625, 0.00787353515625, -0.0220184326171875, -0.060760498046875, -0.01220703125, -0.0233917236328125, -0.00763702392578125, 0.046539306640625, -0.01357269287109375, -0.0230712890625, 0.0232696533203125, -0.007045745849609375, 0.0146484375, 0.0239715576171875, -0.05767822265625, 0.0062255859375, 0.0272979736328125, 0.0511474609375, -0.036834716796875, -0.01143646240234375, -0.06231689453125, 0.0457763671875, -0.0499267578125, 0.0024433135986328125, 0.07061767578125, -0.024749755859375, 0.0285186767578125, -0.0258026123046875, -0.0027217864990234375, -0.01136016845703125, -0.001995086669921875, 0.0204925537109375, 0.01123809814453125, -0.0002651214599609375, 0.01456451416015625, -0.054534912109375, -0.023712158203125, 0.0189666748046875, -0.01239776611328125, -0.039794921875, -0.03167724609375, 0.0001537799835205078, 0.00995635986328125, -0.021453857421875, -0.016815185546875, -0.033966064453125, 0.01342010498046875, 0.0239105224609375, 0.00693511962890625, -0.00984954833984375, 0.0272064208984375, -0.009796142578125, -0.0006661415100097656, -0.0017986297607421875, 0.0227813720703125, 0.0111541748046875, -0.0233001708984375, 0.0213775634765625, -0.03509521484375, -0.0199127197265625, -0.03631591796875, -0.0020465850830078125, 0.026336669921875, 0.053619384765625, 0.003505706787109375, -0.0184173583984375, -0.012969970703125, -0.0029754638671875, -0.0313720703125, 0.034027099609375, 0.0162200927734375, -0.0249481201171875, 0.0229034423828125, 0.0163116455078125, 0.014678955078125, -0.020751953125, -0.00905609130859375, -0.01531219482421875, 0.01800537109375, -0.0072021484375, -0.034698486328125, -0.041015625, 0.05523681640625, 0.11627197265625, 0.01036834716796875, 0.054168701171875, 0.00823211669921875, -0.0137939453125, 0.01425933837890625, 0.045989990234375, -0.058319091796875, -0.08209228515625, -0.00249481201171875, 0.0057220458984375, -0.0284576416015625, -0.0177154541015625, -0.0205535888671875, 0.022857666015625, 0.0875244140625, 0.06402587890625, -0.1297607421875, 0.004642486572265625, -0.0029621124267578125, -0.0005230903625488281, 0.013458251953125, -0.007663726806640625, -0.003582000732421875, -0.03466796875, 0.01445770263671875, 0.00643157958984375, -0.017242431640625, -0.004734039306640625, 0.01068878173828125, -0.01036834716796875, -0.006420135498046875, 0.044921875, 0.01338958740234375, -0.0190582275390625, 0.031402587890625, -0.005619049072265625, 0.049591064453125, 0.0142822265625, 0.01192474365234375, -0.00591278076171875, -0.001445770263671875, -0.029052734375, 0.00835418701171875, -0.06024169921875, 0.00574493408203125, 0.0330810546875, -0.0018396377563476562, -0.00616455078125, 0.039398193359375, -0.0161895751953125, 0.02484130859375, 0.006900787353515625, -0.0400390625, 0.0318603515625, 0.00603485107421875, -0.0078887939453125, 0.00374603271484375, -0.0025119781494140625, -0.00969696044921875, -0.0105438232421875, -0.00862884521484375, -0.0029163360595703125, 0.008544921875, 0.09765625, -0.0631103515625, -0.016448974609375, 0.026397705078125, 0.03717041015625, -0.0020294189453125, -0.0106658935546875, 0.0090179443359375, -0.0345458984375, -0.00186920166015625, -0.01226806640625, -0.0054931640625, 0.0247955322265625, 0.0007939338684082031, -0.01849365234375, 0.059661865234375, -0.03143310546875, 0.00757598876953125, 0.0247344970703125, 0.02783203125, -0.0029621124267578125, 0.033599853515625, -0.0258026123046875, 0.04156494140625, 0.00572967529296875, 0.0634765625, -0.01418304443359375, -0.01313018798828125, 0.0523681640625, 0.035186767578125, 0.08740234375, 0.0255279541015625, -0.036590576171875, -0.0116119384765625, 0.030853271484375, 0.01468658447265625, -0.01348876953125, 0.043365478515625, -0.0074615478515625, -0.005817413330078125, -0.00608062744140625, -0.0030117034912109375, 0.02099609375, -0.0216522216796875, -0.034027099609375, 0.009429931640625, 0.0221099853515625, 0.00933837890625, 0.0179290771484375, -0.01224517822265625, -0.035614013671875, 0.007289886474609375, 0.029937744140625, -0.0284271240234375, 0.00612640380859375, 0.032928466796875, 0.057373046875, -0.053741455078125, -0.035125732421875, -0.0306396484375, 0.05078125, 0.0191497802734375, -0.0161285400390625, -0.0010166168212890625, -0.0007119178771972656, -0.034820556640625, -0.00439453125, -0.017242431640625, 0.037139892578125, -0.02410888671875, 0.034454345703125, 0.03240966796875, 0.0179901123046875, -0.0261077880859375, -0.0098114013671875, 0.041534423828125, 0.050872802734375, -0.017486572265625, -0.0999755859375, 0.0005807876586914062, -0.0019178390502929688, 0.0296173095703125, 0.04010009765625, 0.0245513916015625, -0.06927490234375, 0.00909423828125, -0.0116119384765625, 0.00559234619140625, 0.010711669921875, -0.009796142578125, -0.0134735107421875, 0.01009368896484375, 0.0167236328125, 0.01361846923828125, -0.02044677734375, 0.0009551048278808594, 0.018218994140625, 0.033355712890625, -0.00457763671875, 0.029754638671875, -0.0128173828125, -0.006931304931640625, -0.006443023681640625, 0.076904296875, -0.0086517333984375, 0.0010833740234375, -0.0215606689453125, -0.06646728515625, -0.0175628662109375, 0.034332275390625, -0.004886627197265625, 0.0225982666015625, -0.004001617431640625, 0.0038280487060546875, -0.003444671630859375, -0.0005130767822265625, 0.032440185546875, -0.0246734619140625, 0.0034999847412109375, -0.00798797607421875, -0.0213165283203125, -0.0186309814453125, -0.0259857177734375, -0.0185546875, 0.0193328857421875, -0.021453857421875, 0.01073455810546875, 0.0322265625, 0.003574371337890625, -0.0093994140625, 0.03607177734375, -0.0160980224609375, 0.053192138671875, 0.0248260498046875, -0.035491943359375, -0.0181732177734375, -0.007171630859375, -0.03131103515625, 0.0184173583984375, 0.036834716796875, 0.01995849609375, -0.00600433349609375, 0.035308837890625, -0.023406982421875, 0.01363372802734375, -0.007061004638671875, 0.0298919677734375, -0.009002685546875, 0.006580352783203125, 0.00931549072265625, 0.004703521728515625, -0.0177764892578125, -0.01434326171875, 0.056854248046875, 0.02978515625, 0.09027099609375, -0.055633544921875, 0.02313232421875, -0.0203399658203125, -0.03485107421875, 0.01178741455078125, -0.004795074462890625, -0.03729248046875, 0.0180206298828125, 0.0027446746826171875, -0.01445770263671875, -0.063232421875, 0.04974365234375, 0.021209716796875, -0.02081298828125, 0.035003662109375, 0.0179443359375, 0.0026531219482421875, -0.023284912109375, -0.0214080810546875, -0.037506103515625, -0.081298828125, -0.056488037109375, 0.037017822265625, -0.0020599365234375, 0.0225982666015625, -0.032073974609375, 0.0298004150390625, -0.01047515869140625, -0.0174713134765625, 0.0218963623046875, -0.032318115234375, 0.03118896484375, 0.0225982666015625, -0.03607177734375, -0.0162506103515625, -0.0200347900390625, -0.0248565673828125, 0.0041961669921875, -0.0021076202392578125, 0.0275115966796875, -0.024505615234375, 0.0241851806640625, -0.037689208984375, -0.0638427734375, -0.0157928466796875, -0.028533935546875, -0.0294342041015625, -0.050445556640625, 0.00894927978515625, 0.014678955078125, -0.006618499755859375, -0.005443572998046875, 0.0008916854858398438, -0.0216064453125, 0.0057220458984375, 0.006542205810546875, -0.033782958984375, -0.0217132568359375, 0.0146942138671875, 0.006023406982421875, -0.0123748779296875, -0.0289459228515625, 0.00673675537109375, -0.0247955322265625, 0.04638671875, -0.0335693359375, 0.0005779266357421875, 0.00341033935546875, 0.0014867782592773438, -0.060943603515625, 0.00722503662109375, -0.042572021484375, -0.0396728515625, -0.04156494140625, -0.005283355712890625, 0.05157470703125, 0.00852203369140625, -0.041046142578125, -0.032684326171875, -0.042083740234375, 0.03369140625, -0.07086181640625, -0.01531982421875, -0.0031948089599609375, -0.0172576904296875, -0.01488494873046875, -0.0300140380859375, 0.0167999267578125, -0.0855712890625, -0.041473388671875, 0.00023496150970458984, -0.00872039794921875, 0.003162384033203125, -0.049285888671875, -0.098876953125, 0.040985107421875, -0.00553131103515625, -0.03399658203125, -0.045440673828125, -0.01837158203125, -0.021484375, 0.04620361328125, -0.0225982666015625, 0.01288604736328125, -0.016571044921875, 0.045623779296875, 0.011444091796875, 0.0151824951171875, -0.00257110595703125, 0.0218505859375, -0.0014200210571289062, 0.049713134765625, 0.05072021484375, -0.0116424560546875, 0.0057525634765625, -0.004405975341796875, 0.034454345703125, 0.05987548828125, -0.0180511474609375, 0.024505615234375, 0.0005707740783691406, -0.03887939453125, -0.01297760009765625, 0.0156402587890625, -0.016082763671875, -0.01380157470703125, 0.0555419921875, 0.06805419921875, 0.0146942138671875, -0.008880615234375, -0.077392578125, -0.06414794921875, -0.01210784912109375, -0.04437255859375, 0.02581787109375, -0.0986328125, -0.002933502197265625, 0.01837158203125, -0.0159912109375, 0.04559326171875, 0.0035076141357421875, -0.0167999267578125, 0.014862060546875, 0.0213775634765625, -0.047607421875, -0.056060791015625, -0.054229736328125, 0.10125732421875, -0.044677734375, 0.025970458984375, -0.0052642822265625, 0.041595458984375, 0.0479736328125, -0.002338409423828125, -0.0193023681640625, 0.042083740234375, -0.032745361328125, 0.0130615234375, -0.00504302978515625, -0.0310821533203125, -0.0164337158203125, 0.0217437744140625, 0.01067352294921875, 0.0250091552734375, 0.003261566162109375, 0.0238800048828125, -0.020843505859375, 0.02178955078125, -0.0195465087890625, 0.041473388671875, 0.003856658935546875, 0.039031982421875, -0.00908660888671875, 0.07501220703125, -0.0219268798828125, -0.0272064208984375, -0.00907135009765625, -0.01538848876953125, 0.01007843017578125, 0.0227508544921875, 0.0107879638671875, -0.033905029296875, 0.032135009765625, -0.040985107421875, 0.01837158203125, 0.0178375244140625 ]
7a62e84f4438051e053f3011643ceb4be43c11b2
Wordpress Stackexchange Q: Is there a flowchart for WordPress loading sequence? So like WP must load series of files from, index.php -> ... -> wp-header.php -> ... ->functions.php ...and so on upon execution. Also there must be a similar flowchart for functions callings, conditionals and such during the execution. Is such a flowchart(s) available anywhere? A: Not exactly the diagrammatic view but I can provide you the description view like this. Try out. This might be helpful for your question.
Q: Is there a flowchart for WordPress loading sequence? So like WP must load series of files from, index.php -> ... -> wp-header.php -> ... ->functions.php ...and so on upon execution. Also there must be a similar flowchart for functions callings, conditionals and such during the execution. Is such a flowchart(s) available anywhere? A: Not exactly the diagrammatic view but I can provide you the description view like this. Try out. This might be helpful for your question. A: this article by "Mihai" is really helpful too, especially the chart. A: I've always found this template hierarchy pretty handy: A: There is this rather in-depth explanation found at, Part 1 http://theme.fm/2011/09/wordpress-internals-how-wordpress-boots-up-2315/ Part 2 http://theme.fm/2011/09/wordpress-internals-how-wordpress-boots-up-part-2-2437/ Which also includes some diagrams/flowcharts. and... This is also just the start of understanding the WordPress initialization process to which also should include information about the template hierarchy, as well as inspecting which hooks are fired on which pages and when. Combined together you can develop a pretty deep understanding of what's going on and where! Or this flow chart from Rarst as seen in this question Run your own backtraces.... How...? * *http://www.php.net/manual/en/function.debug-backtrace.php *http://queryposts.com/function/wp_debug_backtrace_summary/ ...in their most basic form. More... * *completely-wordpress-initialization-flow-chart-1 *completely-wordpress-initialization-flow-chart-6-template-loader-php *completely-wordpress-initialization-flow-chart-5-wp-function *completely-wordpress-initialization-flow-chart-2-4-wp-settings-php I can not vouch for the above four links specifically, however they are additional material which supports this question that you or others may find useful. Even more... Want to see what actions get fired during a request? Take a look at this plugin by Toscho, Want to see what's hooked and where with what priority? Take a look at this plugin by Rarst, Very handy for when wanting to know where internal and custom hooks are within the priority chain. And there's also this plugin by Kaiser, Only one screenshot of several, rest can be found on GitHub Repo link There's also this flow chart explaining the query process and what to use when which will help compliment this question, Original source question and answer here, flow chart by Rarst. This flowchart and Q&A I can vouch for. (clicking the image will take you directly to that Q&A thread for more information). NOTE Its one thing to look at a flow chart, which is very useful with regards to the visualizing the initialization process and the above links to that topic do some justice but as a WordPress developer, once you're in the thick of things "developing", you want to make use of other debugging tools that help you visualize and understand whats happening during some of these requests. I believe all that's mentioned above go hand in hand. These are not the ONLY tools that are available, nor the only methods for getting valuable data during initialization/request processes but they are a selection of what I use. Feel free to add more! TEMPLATE HIERARCHY You can also interact with this diagram. Clicking the image will take you directly the Theme Handbook by WordPress for more information. #changelog: 04/10/12 added flow chart from Rarst / "Make sense of WP core load" A: I suppose that the service Recognizer help you. It builds a sequence diagram of the Xdebug debugger trace log, which displays the order of calls, arguments, the line where the call came ...
wordpress
{ "language": "en", "length": 536, "provenance": "stackexchange_00019.jsonl.gz:425449", "question_score": "69", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71406" }
[ 0.05499267578125, 0.013336181640625, -0.0271759033203125, -0.07928466796875, 0.0282745361328125, -0.016571044921875, -0.013763427734375, 0.00821685791015625, -0.0219268798828125, 0.00983428955078125, -0.05133056640625, 0.01540374755859375, -0.04107666015625, -0.00234222412109375, -0.002471923828125, -0.073974609375, 0.046112060546875, -0.018646240234375, 0.041229248046875, 0.00733184814453125, 0.00002205371856689453, 0.0279998779296875, 0.038360595703125, 0.06695556640625, -0.018096923828125, 0.034942626953125, 0.05474853515625, -0.0274810791015625, -0.01837158203125, -0.0237884521484375, 0.01137542724609375, 0.01177215576171875, -0.004199981689453125, 0.037628173828125, -0.015472412109375, 0.0102386474609375, -0.034637451171875, 0.041534423828125, 0.01212310791015625, 0.03277587890625, 0.00673675537109375, 0.0061798095703125, 0.051849365234375, 0.0109405517578125, 0.007755279541015625, -0.021820068359375, 0.00769805908203125, -0.05267333984375, 0.026214599609375, 0.0211181640625, 0.0074310302734375, 0.024627685546875, 0.0118865966796875, 0.031646728515625, -0.0007872581481933594, -0.0156707763671875, -0.023712158203125, -0.00949859619140625, 0.01152801513671875, 0.01568603515625, 0.003543853759765625, 0.006656646728515625, 0.00127410888671875, 0.001598358154296875, -0.00923919677734375, 0.00989532470703125, -0.0728759765625, 0.0102386474609375, -0.0136260986328125, -0.00982666015625, 0.007511138916015625, -0.0396728515625, -0.024261474609375, -0.0187225341796875, 0.01523590087890625, 0.02520751953125, -0.0015048980712890625, -0.0097808837890625, 0.0146026611328125, 0.046600341796875, 0.0102996826171875, -0.042633056640625, 0.007183074951171875, -0.0011491775512695312, 0.004329681396484375, 0.0174407958984375, -0.0028820037841796875, -0.0029735565185546875, -0.0270843505859375, -0.037506103515625, -0.033203125, 0.01751708984375, -0.0271148681640625, -0.0254058837890625, -0.05499267578125, -0.007663726806640625, -0.0172576904296875, -0.04449462890625, -0.0198211669921875, -0.02264404296875, -0.0025005340576171875, -0.01012420654296875, 0.0034046173095703125, 0.0187530517578125, -0.00836944580078125, 0.0226593017578125, -0.0024547576904296875, 0.04534912109375, 0.032196044921875, 0.034698486328125, -0.006092071533203125, -0.012054443359375, 0.0258941650390625, -0.038543701171875, -0.01247406005859375, 0.00560760498046875, 0.004047393798828125, 0.024200439453125, 0.0121307373046875, 0.006011962890625, -0.0081329345703125, 0.00567626953125, 0.0447998046875, 0.0235443115234375, 0.00846099853515625, 0.0017461776733398438, -0.00978851318359375, -0.0556640625, -0.0006966590881347656, -0.032470703125, -0.00606536865234375, 0.04766845703125, 0.052520751953125, -0.005031585693359375, -0.037078857421875, 0.006900787353515625, 0.0341796875, 0.024810791015625, 0.002002716064453125, -0.0008249282836914062, 0.008514404296875, -0.04803466796875, -0.043182373046875, 0.018768310546875, 0.06689453125, 0.02410888671875, 0.01445770263671875, 0.0057220458984375, 0.0261383056640625, -0.0120697021484375, 0.0248870849609375, -0.03717041015625, 0.007129669189453125, 0.01189422607421875, 0.00284576416015625, 0.0238494873046875, -0.0308990478515625, 0.018035888671875, -0.01523590087890625, 0.03533935546875, -0.0261993408203125, -0.0025043487548828125, 0.020050048828125, -0.032928466796875, -0.027557373046875, -0.004962921142578125, 0.007556915283203125, 0.006366729736328125, 0.034881591796875, 0.023162841796875, 0.001644134521484375, -0.037750244140625, 0.047515869140625, 0.0147705078125, -0.0168609619140625, 0.0296783447265625, 0.0026683807373046875, -0.05950927734375, 0.0008673667907714844, 0.094970703125, 0.01519012451171875, -0.021209716796875, -0.03228759765625, 0.0286102294921875, -0.047576904296875, 0.025909423828125, -0.0024204254150390625, 0.0291595458984375, 0.014190673828125, 0.016571044921875, 0.0175323486328125, 0.02435302734375, -0.00372314453125, 0.0305328369140625, -0.031646728515625, -0.019561767578125, -0.007160186767578125, 0.0263824462890625, -0.030670166015625, -0.0279388427734375, 0.009765625, 0.022796630859375, -0.0250091552734375, 0.0028514862060546875, -0.01375579833984375, -0.0297698974609375, 0.005542755126953125, 0.0230560302734375, 0.030609130859375, 0.0303497314453125, 0.0074005126953125, 0.0323486328125, -0.0195159912109375, -0.0399169921875, -0.035186767578125, 0.031036376953125, -0.0242462158203125, 0.0228729248046875, -0.01373291015625, 0.007472991943359375, -0.01508331298828125, -0.0196685791015625, -0.016571044921875, 0.00848388671875, 0.016571044921875, -0.0079193115234375, -0.028900146484375, -0.01611328125, 0.0292205810546875, -0.0226287841796875, 0.03076171875, 0.0362548828125, 0.036590576171875, 0.04486083984375, -0.0278167724609375, -0.00438690185546875, 0.0091400146484375, -0.01219940185546875, -0.01317596435546875, 0.0275115966796875, 0.01100921630859375, 0.006805419921875, -0.0256805419921875, 0.052276611328125, 0.045196533203125, -0.017578125, -0.014923095703125, 0.047149658203125, -0.02850341796875, 0.0206146240234375, -0.0203704833984375, 0.01004791259765625, 0.01177215576171875, -0.04901123046875, -0.0467529296875, 0.05548095703125, 0.0034961700439453125, -0.0181732177734375, 0.01203155517578125, -0.0015897750854492188, 0.01480865478515625, -0.01348114013671875, -0.0318603515625, 0.004150390625, 0.0214691162109375, -0.04742431640625, -0.00799560546875, -0.0141143798828125, -0.03558349609375, -0.021636962890625, 0.04876708984375, 0.00855255126953125, 0.0000889897346496582, -0.00682830810546875, 0.017578125, 0.031829833984375, 0.01538848876953125, -0.0029163360595703125, -0.01474761962890625, -0.0004906654357910156, -0.0019931793212890625, -0.011749267578125, 0.0018529891967773438, 0.007678985595703125, 0.00775146484375, -0.029815673828125, 0.04327392578125, 0.05279541015625, 0.005542755126953125, 0.033966064453125, 0.03515625, 0.039520263671875, -0.013214111328125, 0.0297088623046875, 0.0045166015625, 0.00366973876953125, 0.0643310546875, -0.0252532958984375, 0.023162841796875, -0.0129852294921875, 0.00894927978515625, 0.05450439453125, 0.013580322265625, -0.003192901611328125, 0.0011386871337890625, 0.022491455078125, 0.033905029296875, -0.023468017578125, -0.0228424072265625, 0.0074920654296875, -0.04071044921875, -0.0140228271484375, 0.032867431640625, 0.0433349609375, 0.0231475830078125, -0.02740478515625, 0.0139617919921875, 0.050140380859375, -0.055084228515625, -0.0863037109375, -0.0225372314453125, -0.032196044921875, 0.033721923828125, -0.02313232421875, 0.0006518363952636719, -0.02972412109375, -0.01139068603515625, 0.01529693603515625, -0.0703125, -0.0292205810546875, -0.058502197265625, -0.10882568359375, -0.05615234375, 0.01313018798828125, -0.0015382766723632812, 0.0193939208984375, -0.0212554931640625, 0.0736083984375, -0.01236724853515625, -0.0673828125, -0.07086181640625, 0.020721435546875, 0.0074920654296875, -0.027435302734375, -0.0194549560546875, -0.021697998046875, 0.01291656494140625, -0.003520965576171875, 0.03167724609375, 0.01328277587890625, -0.0004336833953857422, -0.003009796142578125, -0.00540924072265625, 0.0020084381103515625, -0.0193939208984375, 0.056060791015625, 0.017486572265625, -0.0458984375, -0.0382080078125, -0.07696533203125, 0.000675201416015625, 0.0222930908203125, -0.028961181640625, -0.03900146484375, 0.0125732421875, -0.034210205078125, -0.0206298828125, -0.0054168701171875, 0.00864410400390625, 0.014739990234375, -0.06463623046875, -0.004985809326171875, 0.03814697265625, 0.00787353515625, 0.03173828125, 0.026702880859375, 0.0889892578125, 0.01015472412109375, 0.006511688232421875, 0.047698974609375, -0.004100799560546875, -0.0118560791015625, -0.0036067962646484375, -0.0716552734375, -0.0168609619140625, 0.033355712890625, 0.00939178466796875, 0.041351318359375, -0.013458251953125, -0.023834228515625, 0.005573272705078125, 0.07147216796875, 0.0098876953125, 0.0076141357421875, 0.04205322265625, 0.020660400390625, -0.084228515625, -0.036224365234375, -0.09307861328125, 0.019683837890625, -0.001567840576171875, 0.01221466064453125, -0.0006690025329589844, -0.01528167724609375, 0.0036907196044921875, -0.0323486328125, 0.00864410400390625, -0.00872802734375, 0.029296875, 0.006378173828125, 0.0140838623046875, 0.0007028579711914062, 0.00992584228515625, -0.0126953125, 0.001613616943359375, -0.0252532958984375, -0.09735107421875, -0.034149169921875, -0.0623779296875, 0.1060791015625, 0.06793212890625, -0.09368896484375, 0.01922607421875, 0.07421875, 0.0099029541015625, 0.01277923583984375, 0.02838134765625, -0.0003559589385986328, 0.01024627685546875, -0.00878143310546875, 0.0179443359375, -0.027252197265625, -0.0335693359375, -0.0465087890625, -0.004924774169921875, 0.037109375, -0.0238494873046875, 0.0305023193359375, -0.04986572265625, 0.02337646484375, -0.0295867919921875, -0.038299560546875, -0.034637451171875, -0.0023708343505859375, -0.0032806396484375, -0.01499176025390625, -0.045379638671875, -0.03289794921875, 0.00844573974609375, -0.0037403106689453125, 0.00492095947265625, 0.01354217529296875, 0.036865234375, 0.01549530029296875, -0.01141357421875, -0.05474853515625, -0.021728515625, 0.0462646484375, 0.016754150390625, 0.033660888671875, 0.0158538818359375, -0.01197052001953125, 0.046630859375, 0.0175628662109375, -0.01041412353515625, 0.0152435302734375, 0.038970947265625, 0.02777099609375, -0.006877899169921875, 0.007480621337890625, 0.025787353515625, -0.017730712890625, 0.05364990234375, -0.0025272369384765625, -0.0210418701171875, 0.0248870849609375, 0.04632568359375, -0.048004150390625, 0.0009002685546875, -0.05609130859375, 0.01427459716796875, -0.0154571533203125, 0.0268096923828125, 0.056610107421875, 0.037567138671875, 0.0035381317138671875, -0.0010118484497070312, 0.0286865234375, -0.0194549560546875, 0.0311279296875, -0.03363037109375, 0.0301666259765625, 0.01273345947265625, 0.0289306640625, 0.0006628036499023438, 0.0229339599609375, -0.01568603515625, 0.08135986328125, 0.0179901123046875, -0.07391357421875, 0.03656005859375, 0.00835418701171875, 0.0166778564453125, 0.01544189453125, -0.0135040283203125, 0.04095458984375, 0.035858154296875, -0.02557373046875, -0.01104736328125, -0.0175628662109375, -0.0017461776733398438, -0.052642822265625, -0.01471710205078125, -0.00012683868408203125, -0.01727294921875, 0.0252227783203125, 0.0301513671875, -0.06640625, 0.0413818359375, 0.007518768310546875, 0.016143798828125, 0.028656005859375, -0.005970001220703125, 0.005218505859375, 0.0555419921875, -0.00794219970703125, -0.00806427001953125, 0.034820556640625, -0.06036376953125, -0.020751953125, -0.0013017654418945312, 0.0286712646484375, -0.040283203125, -0.045989990234375, 0.059478759765625, -0.011444091796875, -0.003932952880859375, 0.028106689453125, 0.027557373046875, -0.00897979736328125, -0.0210418701171875, -0.0426025390625, 0.0167999267578125, -0.006282806396484375, 0.006809234619140625, 0.0167694091796875, 0.042266845703125, 0.049468994140625, 0.00028014183044433594, -0.01517486572265625, 0.0018482208251953125, 0.007114410400390625, 0.012176513671875, 0.0014181137084960938, -0.017303466796875, -0.004302978515625, -0.0168304443359375, -0.0095977783203125, -0.02435302734375, 0.031341552734375, -0.0286712646484375, 0.0222015380859375, -0.0494384765625, 0.024688720703125, -0.05694580078125, 0.0168914794921875, 0.031341552734375, 0.0198211669921875, -0.0401611328125, -0.00917816162109375, -0.0178375244140625, -0.00838470458984375, -0.07012939453125, -0.0770263671875, -0.034912109375, 0.0170440673828125, 0.0024929046630859375, 0.005336761474609375, 0.00910186767578125, 0.0238494873046875, 0.031829833984375, 0.03216552734375, -0.02734375, 0.0160980224609375, -0.023406982421875, 0.08905029296875, 0.005977630615234375, 0.0535888671875, 0.030792236328125, 0.04217529296875, -0.0156707763671875, -0.0262603759765625, 0.0168609619140625, -0.030059814453125, -0.02166748046875, -0.025665283203125, -0.021759033203125, 0.020843505859375, 0.046844482421875, -0.0169830322265625, 0.00036835670471191406, -0.02166748046875, 0.00431060791015625, 0.001766204833984375, 0.05145263671875, 0.011505126953125, -0.024383544921875, 0.03106689453125, 0.002742767333984375, 0.0254669189453125, -0.029388427734375, -0.0262908935546875, 0.01389312744140625, -0.01393890380859375, 0.0002949237823486328, 0.01454925537109375, -0.027618408203125, 0.04632568359375, 0.045806884765625, -0.0026874542236328125, 0.036895751953125, 0.018798828125, 0.0192718505859375, 0.0165863037109375, 0.039947509765625, -0.002101898193359375, -0.040802001953125, 0.035400390625, 0.01100921630859375, -0.02703857421875, 0.0170745849609375, -0.03729248046875, -0.000023603439331054688, 0.02239990234375, 0.041473388671875, -0.025299072265625, 0.0005631446838378906, 0.002475738525390625, -0.00197601318359375, 0.01186370849609375, -0.018280029296875, 0.0015401840209960938, -0.049652099609375, 0.0263671875, 0.0321044921875, -0.0226898193359375, -0.01351165771484375, 0.0040283203125, 0.0227813720703125, 0.0028934478759765625, 0.08319091796875, 0.0035343170166015625, -0.08203125, 0.0022602081298828125, 0.041534423828125, 0.004383087158203125, -0.02154541015625, 0.00542449951171875, 0.036895751953125, 0.0302886962890625, 0.01132965087890625, 0.09881591796875, -0.04058837890625, 0.045745849609375, 0.011138916015625, 0.016693115234375, 0.0168914794921875, 0.028533935546875, -0.00574493408203125, 0.01461029052734375, -0.0017900466918945312, 0.02392578125, 0.045562744140625, -0.0104827880859375, 0.030426025390625, 0.038848876953125, -0.059356689453125, 0.00859832763671875, -0.01126861572265625, 0.006092071533203125, -0.003204345703125, -0.04400634765625, 0.04071044921875, -0.0355224609375, -0.0023555755615234375, 0.0112457275390625, -0.0124664306640625, 0.005748748779296875, 0.01177978515625, 0.03271484375, -0.0216217041015625, -0.01239013671875, 0.02239990234375, -0.00760650634765625, -0.0280303955078125, -0.0087738037109375, -0.03955078125, 0.06982421875, -0.00402069091796875, 0.006450653076171875, -0.00014984607696533203, 0.0229339599609375, 0.0008287429809570312, 0.0303802490234375, -0.047271728515625, 0.0428466796875, 0.030120849609375, 0.0635986328125, -0.06298828125, -0.0238800048828125, 0.01343536376953125, 0.0482177734375, -0.0227203369140625, -0.017242431640625, -0.005901336669921875, 0.041778564453125, 0.10418701171875, 0.061553955078125, 0.04412841796875, -0.0001703500747680664, -0.0014896392822265625, -0.018890380859375, -0.0249481201171875, 0.004497528076171875, 0.022918701171875, -0.04241943359375, -0.03802490234375, 0.0207672119140625, 0.0225677490234375, 0.0027523040771484375, 0.007537841796875, -0.0174560546875, -0.01776123046875, 0.0017728805541992188, 0.003696441650390625, 0.049346923828125, 0.00937652587890625, 0.01338958740234375, 0.0106658935546875, -0.003650665283203125, -0.005279541015625, -0.0080108642578125, 0.032470703125, -0.00021970272064208984, -0.00997161865234375, -0.005001068115234375, 0.00232696533203125, -0.0004987716674804688, -0.0396728515625, -0.0299224853515625, 0.00725555419921875, -0.01447296142578125, 0.032073974609375, 0.021148681640625, 0.02294921875, -0.038360595703125, -0.004962921142578125, 0.0294647216796875, 0.05133056640625, -0.03387451171875, -0.0226593017578125, -0.007843017578125, -0.0201568603515625, 0.0304718017578125, -0.01023101806640625, 0.05548095703125, -0.061309814453125, -0.046478271484375, -0.0025653839111328125, -0.0166168212890625, -0.021484375, 0.008087158203125, 0.00038313865661621094, 0.022308349609375, -0.0018968582153320312, -0.0121307373046875, 0.006595611572265625, 0.0628662109375, 0.0030078887939453125, -0.013336181640625, -0.0791015625, 0.0582275390625, -0.0396728515625, 0.043212890625, 0.0123138427734375, 0.0341796875, -0.051513671875, 0.00799560546875, -0.044525146484375, -0.0657958984375, -0.0284881591796875, 0.057098388671875, 0.01340484619140625, 0.006256103515625, 0.0298309326171875, 0.0272216796875, -0.01122283935546875, -0.003650665283203125, 0.06585693359375, 0.00237274169921875, -0.02142333984375, -0.005710601806640625, -0.0191497802734375, 0.0323486328125, -0.01171112060546875, -0.0013866424560546875, 0.0159912109375, 0.03857421875, -0.0450439453125, 0.035400390625, -0.0166473388671875, -0.0208587646484375, 0.042877197265625, -0.0411376953125, 0.0323486328125, -0.0325927734375, -0.0247344970703125, -0.0099639892578125, -0.020782470703125, -0.007656097412109375, -0.004634857177734375, 0.033050537109375, 0.02752685546875, 0.01239013671875, 0.03253173828125, -0.01110076904296875, -0.0012693405151367188, 0.0006804466247558594, 0.00835418701171875, 0.01343536376953125, 0.03485107421875, 0.0206146240234375, -0.1036376953125, -0.03729248046875, -0.045501708984375, 0.0025386810302734375, 0.040283203125, 0.06976318359375, 0.0245361328125, 0.0254058837890625, 0.04010009765625, -0.033050537109375, 0.0537109375, 0.0263671875, 0.0225982666015625, 0.00732421875, 0.0051422119140625, -0.037628173828125, -0.03729248046875, 0.0108489990234375, 0.038330078125, -0.03045654296875, 0.0188140869140625, -0.0179290771484375, 0.01332855224609375, -0.05413818359375, 0.0251617431640625, -0.026123046875, -0.052154541015625, -0.039520263671875, -0.0207366943359375, 0.02447509765625, 0.039947509765625, 0.020599365234375, -0.0232391357421875, 0.0064239501953125, -0.041351318359375, 0.031707763671875, 0.005321502685546875, 0.03466796875, 0.025726318359375, 0.0014190673828125, -0.07525634765625, 0.0013990402221679688, -0.007511138916015625, -0.0128021240234375, 0.000518798828125, 0.050567626953125, 0.007213592529296875, -0.0765380859375, 0.0262298583984375, 0.035491943359375, 0.05523681640625, -0.027862548828125, 0.0140838623046875, 0.032806396484375, -0.00495147705078125, 0.0195465087890625, -0.0081787109375, -0.0074462890625, 0.00984954833984375, -0.03546142578125, 0.005573272705078125, -0.017791748046875, -0.0296478271484375, -0.01474761962890625, -0.03387451171875, 0.0178070068359375, 0.0006814002990722656, 0.00846099853515625, -0.0110015869140625, -0.0196075439453125, -0.0125274658203125, 0.00891876220703125, 0.0131683349609375, -0.001659393310546875, -0.0251312255859375, -0.022613525390625, -0.00928497314453125, -0.0054168701171875, 0.05255126953125, 0.0153656005859375, 0.0080108642578125, 0.0223846435546875, -0.023040771484375, -0.013458251953125, 0.031646728515625, 0.01399993896484375, 0.0828857421875, 0.0152130126953125, 0.01561737060546875, 0.031219482421875, 0.0211334228515625, -0.05157470703125, -0.06414794921875, -0.00289154052734375, 0.02581787109375, -0.018707275390625, -0.040557861328125, -0.0078125, -0.006114959716796875, -0.07275390625, -0.1456298828125, 0.0540771484375, -0.049163818359375, -0.0614013671875, -0.061767578125, 0.0224761962890625, -0.0109405517578125, -0.0013837814331054688, -0.024993896484375, -0.00922393798828125, -0.00644683837890625, 0.045318603515625, 0.01202392578125, 0.0106658935546875, 0.0297698974609375, -0.0233001708984375, 0.01259613037109375, 0.0206451416015625, 0.037261962890625, -0.00876617431640625, 0.0059661865234375, -0.005859375, 0.032012939453125, 0.07147216796875, -0.0008587837219238281, -0.0135955810546875, -0.0076141357421875, -0.04852294921875, -0.00923919677734375, -0.0286865234375, 0.0107574462890625, 0.00452423095703125, 0.0246734619140625, 0.015777587890625, -0.007965087890625, -0.0307769775390625, 0.0245513916015625, 0.024658203125, -0.01007843017578125, -0.00939178466796875, 0.009857177734375, -0.053253173828125, -0.0439453125, -0.0015659332275390625, -0.02783203125, 0.017578125, -0.0214996337890625, -0.048675537109375, 0.0173187255859375, -0.00896453857421875, -0.006988525390625, -0.0280609130859375, -0.0312347412109375, 0.05047607421875, -0.022125244140625, 0.015045166015625, -0.0025634765625, 0.023101806640625, 0.0194091796875, 0.03277587890625, 0.00128936767578125, 0.046875, -0.021270751953125, -0.027740478515625, 0.0228729248046875, 0.0177764892578125, 0.02734375, -0.0113067626953125, -0.01611328125, 0.026519775390625, 0.00249481201171875, 0.034637451171875, 0.01073455810546875, 0.04443359375, 0.0032329559326171875, 0.058349609375, 0.0038547515869140625, 0.0258026123046875, -0.028564453125, 0.05950927734375, -0.031951904296875, -0.020660400390625, -0.01053619384765625, -0.02471923828125, 0.007965087890625, 0.03302001953125, 0.0121612548828125, -0.017120361328125, 0.0002219676971435547, 0.01580810546875, 0.004932403564453125, 0.00205230712890625 ]
1e6bed90cef5402f24c35619c52118007c96926c
Wordpress Stackexchange Q: Plugin or mod for wordpress to make content publication SUPER easy Well, im making a wordpress web page for my dad, a psychiatrist, who barely knows how to check his email. He wants to put content regulary but the actual admin interface of wordpress is way to complex for him (i mean he does not care about comments, statistics, plugins, updates, and all the bunch of stuff wordpress comes with). Im a senior PHP developer and I can make a super easy interface but I wonder if there is not something already made?... It will be ideal something like: Login page -> Title -> Content -> send button -> done. If the solution is too technical dont worry, i can handle, I just dont want to make everything from 0. Thanks! A: You can also redirect him to post-new.php on login, and remove all unnecessary metaboxes from the Screen Options, and choose one column for the Screen Layout. add_filter('login_redirect', 'redirect_to_post_new', 10, 1); function redirect_to_post_new($redirect) { return admin_url('post-new.php'); }
Q: Plugin or mod for wordpress to make content publication SUPER easy Well, im making a wordpress web page for my dad, a psychiatrist, who barely knows how to check his email. He wants to put content regulary but the actual admin interface of wordpress is way to complex for him (i mean he does not care about comments, statistics, plugins, updates, and all the bunch of stuff wordpress comes with). Im a senior PHP developer and I can make a super easy interface but I wonder if there is not something already made?... It will be ideal something like: Login page -> Title -> Content -> send button -> done. If the solution is too technical dont worry, i can handle, I just dont want to make everything from 0. Thanks! A: You can also redirect him to post-new.php on login, and remove all unnecessary metaboxes from the Screen Options, and choose one column for the Screen Layout. add_filter('login_redirect', 'redirect_to_post_new', 10, 1); function redirect_to_post_new($redirect) { return admin_url('post-new.php'); } A: Adding to Milo's answer regarding the user role: The plugin Adminimize is really handy for hiding WordPress backend interface elements. Works at user role level and fits the exact scenario described in the Question. Its author is a WP heavy-weight and a regular fellow here in WPSE. At some moment, I should do a review using the new feature from the Repository, summing up all I've written about it here in this Stack. A: If you don't want him to see the admin stuff, don't make him an admin, create an author account for him. He can use the quickpress dashboard widget to add posts from the dashboard. You can remove the other dashboard widgets so it's the only one there. You can also use remove_menu_page() to remove any unnecessary admin menu items. A: Try the Svbtle theme https://github.com/gravityonmars/wp-svbtle Content is either an idea ( draft ) or public ( published ) Or http://p2theme.com/ Once he's logged in he should never have to visit the admin area. A: There are also simple desktop applications that allow publishing to WordPress. You'd have to do a google search and a bit of research on your own; I've never used them so can't suggest one. If he's familiar and comfortable with MS Office he could even write and publish his posts from within Word. I've used this successfully for clients who were terrified of the WordPress admin panel but had no problem writing an 'article' in MS Word. If you do not have MS Office, you can use their free tool Windows Live Writer which makes it very easy to publish content. A: easy way? No - not out of the box. However, you could create an easy way. Can he use Excel? One way I used recently was to allow a client to publish content by putting an XLS file in a folder - which a script turns into posts inside WordPress (which means they never have to login). You can see that in action here (script is at bottom of the page): http://www.wphub.com/tutorials/wordpress-import-export-tricks-xls-csv-and-plugins/ I made it even easier for the same client, just today gave them the ability to "email it to the website". I setup an email account, and wrote a script with php imap to check the box for messages, save the XLS files (to the folder for the last script) and then auto-publish. That's about as easy as it gets! There's also a plugin called "Post via dropbox" that does something similar with a text file: http://wordpress.org/extend/plugins/post-via-dropbox/ A: I know it is a premium plugin, but you could very easily create a 'Create Post' form with Gravityforms. That should do it. And, of course, a Frontend-Login with a redirect to this Frontend-Page.
wordpress
{ "language": "en", "length": 624, "provenance": "stackexchange_00019.jsonl.gz:425492", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71553" }
[ 0.034515380859375, 0.0047454833984375, 0.01262664794921875, 0.00435638427734375, -0.0012369155883789062, -0.0228424072265625, 0.038116455078125, -0.0618896484375, -0.00263214111328125, 0.003215789794921875, 0.0411376953125, -0.02410888671875, -0.0230865478515625, -0.0709228515625, 0.0024967193603515625, -0.0254058837890625, 0.015380859375, -0.0214691162109375, 0.005809783935546875, -0.0177154541015625, 0.00897979736328125, -0.008331298828125, 0.05084228515625, 0.0160369873046875, 0.0232086181640625, 0.022186279296875, 0.06134033203125, -0.0212249755859375, 0.015869140625, -0.0011568069458007812, 0.01361846923828125, -0.041046142578125, 0.0301055908203125, 0.0098114013671875, -0.0272369384765625, 0.019287109375, -0.008514404296875, 0.0129852294921875, -0.00164794921875, 0.0289764404296875, 0.04718017578125, -0.03070068359375, 0.00434112548828125, 0.021728515625, -0.0181121826171875, -0.01364898681640625, 0.02642822265625, -0.020355224609375, 0.021270751953125, -0.032562255859375, -0.014923095703125, 0.0092315673828125, -0.0006251335144042969, -0.0478515625, -0.0035190582275390625, 0.020965576171875, -0.00431060791015625, 0.00742340087890625, 0.030059814453125, -0.019500732421875, -0.00832366943359375, -0.01155853271484375, 0.0177154541015625, 0.01021575927734375, -0.0037708282470703125, -0.020599365234375, -0.06597900390625, 0.032745361328125, -0.05218505859375, -0.0165557861328125, 0.0408935546875, -0.039703369140625, 0.0005655288696289062, -0.0218353271484375, -0.00537109375, 0.016571044921875, -0.02001953125, -0.0016632080078125, 0.0200958251953125, 0.0207672119140625, -0.01178741455078125, 0.03436279296875, -0.01910400390625, -0.084228515625, 0.047515869140625, -0.0458984375, -0.0294952392578125, -0.005428314208984375, -0.016632080078125, -0.0008058547973632812, -0.011322021484375, -0.01983642578125, -0.00984954833984375, 0.007450103759765625, -0.00678253173828125, -0.03497314453125, 0.01090240478515625, 0.016448974609375, 0.017059326171875, 0.04254150390625, 0.00261688232421875, -0.048492431640625, 0.08428955078125, -0.038299560546875, 0.01800537109375, 0.04144287109375, -0.0181427001953125, 0.0071868896484375, 0.045318603515625, 0.0216827392578125, 0.0210418701171875, 0.0107879638671875, -0.02630615234375, 0.01236724853515625, -0.041534423828125, 0.04119873046875, -0.024658203125, -0.0125732421875, -0.024078369140625, 0.049774169921875, -0.035552978515625, -0.0160675048828125, -0.0087432861328125, -0.039825439453125, 0.0193023681640625, -0.0104522705078125, -0.0213470458984375, 0.018829345703125, -0.0008234977722167969, -0.046051025390625, -0.0161285400390625, 0.042877197265625, 0.09619140625, 0.0640869140625, 0.0260009765625, 0.0087890625, -0.00447845458984375, -0.0164642333984375, -0.018035888671875, 0.005283355712890625, -0.03790283203125, -0.013214111328125, 0.0212249755859375, -0.055908203125, 0.042572021484375, 0.05291748046875, 0.04010009765625, -0.010009765625, -0.0155181884765625, -0.0230255126953125, 0.0063934326171875, 0.00750732421875, 0.02435302734375, -0.029052734375, 0.0225677490234375, -0.026031494140625, -0.00286865234375, 0.001789093017578125, -0.01245880126953125, 0.0045013427734375, 0.048492431640625, 0.03277587890625, 0.0247344970703125, -0.0269927978515625, -0.0082244873046875, -0.06427001953125, -0.07464599609375, -0.005397796630859375, 0.02264404296875, -0.02264404296875, 0.07293701171875, -0.0129241943359375, -0.0029964447021484375, -0.020477294921875, -0.005458831787109375, -0.017425537109375, -0.0196685791015625, -0.0003693103790283203, 0.023590087890625, 0.041534423828125, 0.029632568359375, -0.0025310516357421875, 0.032135009765625, 0.019927978515625, -0.0577392578125, 0.040496826171875, 0.00757598876953125, 0.03875732421875, 0.006069183349609375, -0.004817962646484375, 0.055450439453125, 0.0240936279296875, 0.0145111083984375, -0.0123748779296875, -0.005405426025390625, -0.017547607421875, -0.0152740478515625, 0.0021572113037109375, -0.016876220703125, 0.00951385498046875, -0.0186920166015625, 0.0161285400390625, -0.0061187744140625, 0.025543212890625, -0.01033782958984375, 0.0034236907958984375, -0.01812744140625, 0.0218963623046875, 0.0211029052734375, 0.029876708984375, -0.0008435249328613281, 0.0166473388671875, 0.000377655029296875, -0.0692138671875, -0.032562255859375, 0.013702392578125, -0.02789306640625, 0.0384521484375, -0.018035888671875, 0.0308074951171875, -0.002895355224609375, -0.050811767578125, 0.00634765625, 0.00460052490234375, 0.053955078125, -0.01235198974609375, -0.0259246826171875, -0.038787841796875, 0.0113067626953125, -0.006031036376953125, -0.060150146484375, 0.07806396484375, 0.0167083740234375, 0.00511932373046875, -0.036590576171875, 0.0236663818359375, -0.027740478515625, -0.002254486083984375, -0.01430511474609375, 0.03656005859375, 0.036712646484375, 0.03826904296875, -0.007022857666015625, 0.013214111328125, 0.0294647216796875, -0.07568359375, 0.00983428955078125, 0.005664825439453125, 0.05316162109375, 0.05670166015625, -0.057342529296875, -0.0609130859375, 0.04901123046875, -0.097412109375, -0.002239227294921875, 0.042449951171875, -0.0024509429931640625, 0.0021076202392578125, -0.0263671875, 0.0205535888671875, 0.00133514404296875, -0.017333984375, -0.02252197265625, -0.00666046142578125, -0.0311431884765625, 0.0278778076171875, 0.03118896484375, 0.036865234375, -0.0085601806640625, -0.007709503173828125, 0.00844573974609375, 0.0126495361328125, -0.01523590087890625, -0.00308990478515625, 0.00983428955078125, -0.028106689453125, -0.022186279296875, 0.0190887451171875, -0.004611968994140625, -0.01493072509765625, -0.02197265625, 0.00653839111328125, 0.0214996337890625, -0.0272064208984375, 0.010467529296875, -0.01763916015625, 0.00762176513671875, -0.04522705078125, 0.03955078125, -0.006465911865234375, 0.0125579833984375, 0.01025390625, -0.03564453125, 0.060943603515625, 0.03192138671875, -0.043212890625, 0.0259552001953125, -0.051849365234375, 0.04791259765625, -0.032928466796875, 0.05682373046875, 0.06634521484375, -0.01013946533203125, 0.0151214599609375, -0.00199127197265625, 0.03399658203125, -0.01043701171875, 0.00931549072265625, -0.0159149169921875, -0.0118408203125, -0.0247039794921875, -0.0164337158203125, 0.01247406005859375, 0.0118560791015625, -0.01004791259765625, -0.034698486328125, -0.0217132568359375, -0.01258087158203125, -0.092041015625, -0.0665283203125, -0.08782958984375, -0.062744140625, 0.0169219970703125, 0.024139404296875, -0.0009145736694335938, 0.0058441162109375, 0.050201416015625, 0.01012420654296875, 0.0367431640625, -0.0300750732421875, -0.061126708984375, -0.0184326171875, -0.06365966796875, 0.0328369140625, -0.0028400421142578125, 0.01367950439453125, 0.00004649162292480469, 0.031646728515625, -0.0006437301635742188, -0.086181640625, -0.016326904296875, 0.06256103515625, -0.03118896484375, 0.01137542724609375, -0.032684326171875, 0.023468017578125, 0.00542449951171875, 0.0013055801391601562, 0.0045013427734375, 0.0159912109375, -0.01427459716796875, -0.019012451171875, -0.01456451416015625, -0.0227813720703125, -0.016204833984375, -0.0330810546875, 0.005062103271484375, -0.00568389892578125, -0.0355224609375, -0.05364990234375, 0.0408935546875, 0.0193634033203125, 0.0031604766845703125, -0.06329345703125, -0.03411865234375, -0.01038360595703125, -0.0005254745483398438, -0.0294952392578125, -0.00400543212890625, -0.007350921630859375, 0.038848876953125, -0.0224609375, -0.0264434814453125, -0.0217437744140625, -0.0231170654296875, -0.0283050537109375, 0.0018014907836914062, -0.01715087890625, -0.0310211181640625, -0.0225830078125, -0.0046234130859375, -0.021087646484375, 0.041595458984375, -0.0065460205078125, -0.09698486328125, 0.028106689453125, -0.052886962890625, 0.0081787109375, -0.041900634765625, -0.00150299072265625, 0.0130462646484375, 0.10882568359375, -0.050872802734375, 0.04217529296875, -0.00015938282012939453, -0.00769805908203125, -0.0007915496826171875, -0.040863037109375, -0.11737060546875, -0.00794219970703125, -0.052001953125, -0.00580596923828125, -0.0110626220703125, -0.033355712890625, -0.018798828125, 0.00298309326171875, -0.051849365234375, -0.038238525390625, 0.051544189453125, 0.001354217529296875, 0.004634857177734375, 0.01319122314453125, -0.033660888671875, 0.00007051229476928711, -0.04266357421875, 0.014495849609375, -0.03863525390625, -0.013763427734375, -0.0099334716796875, 0.056640625, 0.0234375, 0.0035552978515625, -0.0235443115234375, 0.029571533203125, -0.0309600830078125, 0.020538330078125, -0.0294189453125, 0.0191497802734375, -0.0033740997314453125, -0.0213165283203125, -0.031280517578125, -0.00823211669921875, -0.0031948089599609375, -0.0185089111328125, 0.005222320556640625, 0.01172637939453125, -0.04217529296875, -0.0016326904296875, -0.0111541748046875, -0.010101318359375, -0.04388427734375, -0.059967041015625, -0.060699462890625, -0.01552581787109375, -0.042938232421875, -0.0171356201171875, -0.043365478515625, -0.0452880859375, 0.023468017578125, -0.024688720703125, -0.05047607421875, 0.020111083984375, 0.0594482421875, 0.03192138671875, 0.0150909423828125, -0.0438232421875, 0.020294189453125, 0.0294342041015625, 0.020782470703125, 0.0360107421875, 0.003391265869140625, -0.018218994140625, 0.07672119140625, -0.002750396728515625, 0.0002677440643310547, -0.0245361328125, 0.046966552734375, -0.01062774658203125, -0.0272369384765625, 0.04229736328125, -0.0269775390625, 0.0194091796875, 0.0286865234375, 0.00974273681640625, -0.0018892288208007812, -0.017333984375, 0.0176239013671875, 0.0187225341796875, -0.016693115234375, -0.0256195068359375, -0.03326416015625, 0.0169677734375, 0.060943603515625, -0.0079803466796875, -0.004589080810546875, 0.0040130615234375, -0.01030731201171875, -0.02069091796875, -0.005069732666015625, 0.0027904510498046875, -0.0169830322265625, -0.004764556884765625, 0.01507568359375, 0.005290985107421875, -0.0162506103515625, 0.00743865966796875, -0.0156707763671875, 0.04766845703125, -0.0005030632019042969, -0.063720703125, 0.0217742919921875, -0.0195770263671875, -0.0046539306640625, 0.023712158203125, -0.0234832763671875, 0.013580322265625, 0.0423583984375, -0.023223876953125, -0.0152435302734375, -0.0004858970642089844, 0.0015048980712890625, -0.043426513671875, -0.004550933837890625, -0.02215576171875, -0.0027370452880859375, 0.0484619140625, 0.01528167724609375, 0.0191497802734375, 0.035736083984375, -0.046905517578125, 0.057586669921875, 0.03228759765625, 0.024169921875, 0.0150299072265625, 0.0018768310546875, -0.006877899169921875, -0.024078369140625, -0.0234375, -0.04840087890625, -0.01221466064453125, 0.032745361328125, 0.043914794921875, 0.0016384124755859375, -0.0238494873046875, 0.0296478271484375, 0.01055908203125, 0.00823211669921875, -0.006885528564453125, -0.01131439208984375, -0.01010894775390625, 0.0006241798400878906, -0.0025882720947265625, 0.019622802734375, -0.00930023193359375, -0.0199737548828125, -0.0245208740234375, -0.043853759765625, 0.0036716461181640625, 0.004932403564453125, -0.003765106201171875, 0.005931854248046875, -0.018157958984375, 0.006999969482421875, -0.0189971923828125, -0.0071563720703125, -0.0338134765625, -0.0019969940185546875, -0.031402587890625, 0.004650115966796875, 0.0753173828125, -0.0245361328125, 0.01959228515625, -0.01064300537109375, 0.00749969482421875, 0.02569580078125, 0.0107269287109375, 0.03411865234375, 0.0006251335144042969, -0.0007410049438476562, -0.0084228515625, -0.04595947265625, -0.038330078125, -0.03350830078125, -0.0055084228515625, -0.0142822265625, -0.002895355224609375, 0.0042266845703125, 0.00304412841796875, -0.0223388671875, -0.044677734375, -0.030731201171875, 0.00885772705078125, 0.0309600830078125, -0.0244140625, 0.01898193359375, 0.035125732421875, -0.031707763671875, 0.031463623046875, -0.012908935546875, 0.017486572265625, -0.04205322265625, -0.01534271240234375, 0.0176239013671875, -0.0399169921875, -0.03179931640625, -0.0097808837890625, -0.0213165283203125, 0.0026073455810546875, -0.0005903244018554688, -0.0158538818359375, 0.00191497802734375, 0.0144195556640625, -0.0011510848999023438, -0.021240234375, 0.0111236572265625, 0.0210113525390625, 0.04547119140625, 0.004695892333984375, -0.033477783203125, -0.01143646240234375, 0.021270751953125, 0.017578125, 0.0067596435546875, -0.007045745849609375, 0.006862640380859375, 0.01247406005859375, -0.06781005859375, 0.0626220703125, 0.0621337890625, 0.001071929931640625, 0.06488037109375, 0.01071929931640625, 0.012298583984375, 0.047576904296875, -0.03558349609375, 0.035858154296875, 0.045379638671875, 0.056549072265625, -0.0236663818359375, -0.03387451171875, 0.009429931640625, -0.044342041015625, 0.0107574462890625, 0.036865234375, 0.03173828125, -0.0838623046875, 0.04888916015625, 0.002227783203125, -0.0023975372314453125, 0.020355224609375, 0.0024509429931640625, -0.007526397705078125, 0.0270233154296875, 0.02001953125, -0.00832366943359375, -0.01415252685546875, 0.01177215576171875, 0.0198516845703125, -0.008819580078125, -0.00543212890625, 0.038848876953125, 0.01293182373046875, -0.03765869140625, 0.003742218017578125, 0.0253753662109375, -0.0107879638671875, -0.032806396484375, 0.0013055801391601562, -0.026336669921875, -0.00800323486328125, -0.03265380859375, 0.01751708984375, -0.0236968994140625, 0.042755126953125, 0.051849365234375, -0.032562255859375, 0.01560211181640625, 0.040924072265625, -0.0263824462890625, 0.0273590087890625, 0.0023193359375, -0.00939178466796875, 0.006664276123046875, -0.0196990966796875, 0.020233154296875, -0.0025157928466796875, -0.012725830078125, 0.00861358642578125, -0.01441192626953125, -0.05743408203125, -0.00876617431640625, -0.03631591796875, 0.07598876953125, -0.022369384765625, -0.020538330078125, -0.004413604736328125, -0.0009632110595703125, -0.00568389892578125, -0.0038604736328125, 0.010589599609375, -0.055633544921875, -0.004116058349609375, -0.0010852813720703125, -0.0230712890625, 0.00787353515625, 0.0008540153503417969, -0.083984375, 0.11700439453125, -0.0089874267578125, 0.02508544921875, -0.010345458984375, 0.04150390625, -0.04119873046875, -0.00965118408203125, -0.02935791015625, 0.061492919921875, 0.0003101825714111328, 0.0238494873046875, -0.045440673828125, -0.00778961181640625, 0.00562286376953125, 0.0261383056640625, 0.08197021484375, 0.0296630859375, -0.08251953125, -0.010223388671875, 0.02984619140625, -0.01641845703125, -0.0159759521484375, 0.09881591796875, 0.00902557373046875, 0.0189971923828125, 0.03802490234375, -0.043792724609375, 0.031585693359375, -0.03033447265625, 0.00441741943359375, -0.006664276123046875, -0.007808685302734375, -0.038818359375, -0.0011844635009765625, 0.034332275390625, -0.06390380859375, -0.0028667449951171875, 0.0214691162109375, 0.020477294921875, 0.028717041015625, -0.00823211669921875, 0.037200927734375, -0.04010009765625, 0.0158233642578125, -0.01117706298828125, 0.043487548828125, 0.020111083984375, 0.0013551712036132812, -0.01032257080078125, 0.0181884765625, 0.03985595703125, -0.0499267578125, -0.00792694091796875, 0.02276611328125, -0.033233642578125, 0.0268707275390625, -0.04205322265625, 0.0186767578125, -0.09637451171875, -0.05426025390625, 0.039093017578125, 0.06304931640625, -0.003978729248046875, -0.02520751953125, 0.00109100341796875, 0.017333984375, 0.0235595703125, 0.005802154541015625, 0.0335693359375, -0.006145477294921875, 0.017425537109375, -0.0010242462158203125, 0.01026153564453125, 0.02862548828125, -0.0175933837890625, -0.0027141571044921875, -0.00012493133544921875, -0.015533447265625, 0.054931640625, -0.01073455810546875, -0.0288848876953125, 0.004863739013671875, 0.0233612060546875, 0.0186767578125, 0.0290374755859375, 0.028778076171875, -0.00020205974578857422, -0.01360321044921875, -0.035003662109375, -0.00579833984375, 0.020751953125, -0.05010986328125, -0.0025196075439453125, 0.03082275390625, 0.05340576171875, 0.0174713134765625, 0.0162506103515625, 0.01540374755859375, 0.025665283203125, 0.004444122314453125, 0.001007080078125, 0.051055908203125, -0.0197906494140625, 0.01959228515625, -0.0153656005859375, -0.00400543212890625, -0.004711151123046875, -0.01251220703125, -0.0200958251953125, 0.03759765625, 0.01088714599609375, -0.0325927734375, 0.01364898681640625, -0.00678253173828125, -0.025970458984375, 0.038787841796875, -0.03125, 0.06915283203125, -0.0167388916015625, -0.06573486328125, -0.0037994384765625, -0.0156402587890625, -0.03778076171875, 0.021270751953125, 0.040374755859375, -0.0273284912109375, 0.01494598388671875, -0.0364990234375, 0.016998291015625, -0.0108795166015625, -0.04449462890625, 0.01320648193359375, -0.005001068115234375, 0.0006837844848632812, 0.007144927978515625, -0.055389404296875, -0.0243988037109375, -0.038299560546875, 0.05255126953125, 0.00989532470703125, 0.09869384765625, -0.032867431640625, 0.04376220703125, -0.04608154296875, -0.03814697265625, -0.022003173828125, -0.052642822265625, 0.008636474609375, -0.0036983489990234375, -0.0308990478515625, 0.0189971923828125, -0.01230621337890625, 0.02032470703125, 0.0170440673828125, -0.02117919921875, 0.01824951171875, -0.03009033203125, 0.016448974609375, -0.00388336181640625, 0.0180511474609375, -0.0191650390625, -0.0197601318359375, -0.024139404296875, 0.0003108978271484375, 0.0140228271484375, -0.00739288330078125, -0.02923583984375, 0.05926513671875, 0.0209197998046875, -0.036346435546875, 0.004825592041015625, -0.08026123046875, 0.01462554931640625, 0.045928955078125, 0.037933349609375, -0.03717041015625, 0.055267333984375, 0.0044403076171875, -0.01544189453125, 0.039794921875, 0.05596923828125, 0.032318115234375, -0.033355712890625, -0.00394439697265625, 0.03363037109375, 0.0286407470703125, 0.00955963134765625, 0.00820159912109375, -0.0017518997192382812, -0.0239410400390625, -0.022064208984375, -0.004375457763671875, 0.0009336471557617188, -0.009674072265625, -0.0494384765625, -0.0321044921875, -0.0160369873046875, -0.09600830078125, -0.00894927978515625, 0.0186004638671875, 0.0215606689453125, -0.002109527587890625, -0.04864501953125, 0.0157470703125, -0.012451171875, 0.06353759765625, -0.0247039794921875, 0.0156402587890625, 0.0006480216979980469, 0.0460205078125, -0.053466796875, -0.022247314453125, -0.031280517578125, 0.0044708251953125, -0.0557861328125, 0.034149169921875, 0.05548095703125, -0.021331787109375, -0.03826904296875, -0.0072784423828125, -0.004138946533203125, 0.04180908203125, -0.004642486572265625, -0.01471710205078125, -0.011260986328125, -0.006378173828125, -0.01100921630859375, -0.01035308837890625, 0.0193328857421875, -0.004955291748046875, -0.058319091796875, 0.0026454925537109375, -0.01166534423828125, -0.0177459716796875, -0.044464111328125, -0.0504150390625, 0.035400390625, 0.01003265380859375, -0.0279541015625, -0.03350830078125, 0.03741455078125, 0.0108642578125, -0.0215301513671875, -0.006130218505859375, -0.0382080078125, -0.00934600830078125, 0.0018014907836914062, 0.0150146484375, -0.0217132568359375, 0.033843994140625, 0.0015344619750976562, -0.042724609375, -0.00041484832763671875, 0.0169830322265625, -0.01177215576171875, -0.00824737548828125, 0.0164794921875, 0.01222991943359375, 0.01377105712890625, -0.02593994140625, 0.009674072265625, 0.019287109375, 0.0005421638488769531, -0.0271453857421875, -0.0677490234375, 0.006561279296875, 0.00036025047302246094, 0.06146240234375, 0.031707763671875, 0.0023193359375, -0.04705810546875, 0.041168212890625, -0.021209716796875, -0.064697265625, -0.024688720703125, 0.016510009765625, -0.050445556640625, -0.02587890625, -0.0016374588012695312, -0.00251007080078125, -0.0243988037109375, 0.0107879638671875, -0.02020263671875, -0.020263671875, 0.036163330078125, 0.004230499267578125, 0.02081298828125, -0.02142333984375, 0.07928466796875, -0.035125732421875, 0.0257568359375, 0.01294708251953125, 0.015899658203125, 0.044464111328125, 0.035614013671875, 0.022216796875, 0.011627197265625, -0.046966552734375, 0.01348876953125, 0.006908416748046875, 0.0035190582275390625, -0.045318603515625, -0.0194244384765625, -0.022125244140625, 0.0189361572265625, -0.00251007080078125, 0.020416259765625, -0.01029205322265625, 0.031341552734375, 0.0171356201171875, 0.0968017578125, -0.029144287109375, -0.046112060546875, -0.04547119140625, 0.022308349609375, 0.0131988525390625, -0.01300811767578125, 0.06646728515625, -0.032379150390625, 0.025146484375, 0.018035888671875, 0.03289794921875, 0.0026493072509765625, 0.007671356201171875, -0.01316070556640625, 0.00180816650390625, 0.00807952880859375 ]
339da84c76cac090f1ede23526d87a6bb1204bf7
Wordpress Stackexchange Q: How do I know if a user has a blog in Wordpress Multisite? I have a Wordpress Multisite installation with Buddypress. I would want to restrict people from creating another blog so that they have only one blog. How do I achieve this? A: Check the user meta key primary_blog: $user_has_blog = get_user_meta( $user_id, 'primary_blog', TRUE ); For users without a blog $user_has_blog will be false now. For other users $user_has_blog is the blog ID.
Q: How do I know if a user has a blog in Wordpress Multisite? I have a Wordpress Multisite installation with Buddypress. I would want to restrict people from creating another blog so that they have only one blog. How do I achieve this? A: Check the user meta key primary_blog: $user_has_blog = get_user_meta( $user_id, 'primary_blog', TRUE ); For users without a blog $user_has_blog will be false now. For other users $user_has_blog is the blog ID.
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:425497", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71571" }
[ 0.0186920166015625, -0.01113128662109375, 0.021575927734375, 0.0307159423828125, -0.0207366943359375, -0.0166015625, 0.0254669189453125, -0.0550537109375, -0.00592041015625, 0.0396728515625, -0.034576416015625, 0.035614013671875, -0.018035888671875, 0.0011644363403320312, -0.0231781005859375, -0.0263214111328125, 0.041046142578125, -0.0137481689453125, 0.0096588134765625, -0.0038280487060546875, 0.0015468597412109375, 0.0282135009765625, -0.00475311279296875, 0.0157012939453125, 0.01019287109375, -0.021392822265625, 0.0538330078125, -0.0006628036499023438, 0.011932373046875, -0.0141448974609375, 0.0216827392578125, -0.0038204193115234375, 0.0181884765625, 0.01812744140625, -0.039398193359375, -0.0399169921875, -0.01053619384765625, 0.019805908203125, -0.001720428466796875, 0.0210113525390625, -0.004367828369140625, 0.01358795166015625, -0.0263671875, -0.00553131103515625, -0.01282501220703125, -0.07220458984375, 0.0255279541015625, -0.02886962890625, 0.0299530029296875, -0.01214599609375, 0.00955963134765625, 0.0167999267578125, 0.0168609619140625, -0.038116455078125, -0.0153045654296875, 0.01084136962890625, 0.05609130859375, -0.06390380859375, 0.037506103515625, -0.016693115234375, -0.022003173828125, 0.007068634033203125, 0.022552490234375, -0.01424407958984375, -0.01971435546875, 0.007495880126953125, -0.0560302734375, 0.026824951171875, -0.01331329345703125, -0.04803466796875, -0.0183868408203125, -0.0206451416015625, 0.01416778564453125, 0.00420379638671875, -0.02410888671875, -0.0269317626953125, 0.002437591552734375, -0.03515625, 0.0274505615234375, -0.0001271963119506836, -0.046661376953125, -0.042572021484375, -0.022064208984375, 0.0008392333984375, -0.0253143310546875, 0.042938232421875, -0.018035888671875, 0.00824737548828125, -0.0272674560546875, 0.0218963623046875, -0.0182952880859375, -0.03497314453125, -0.00778961181640625, 0.0182647705078125, 0.0009756088256835938, -0.0187530517578125, 0.055694580078125, 0.1234130859375, -0.040374755859375, -0.031707763671875, -0.021728515625, -0.0082855224609375, -0.07647705078125, -0.024810791015625, 0.003940582275390625, 0.02960205078125, 0.0099029541015625, 0.0019311904907226562, 0.0238189697265625, 0.023468017578125, 0.0094757080078125, 0.00502777099609375, -0.04461669921875, -0.0290985107421875, -0.02337646484375, 0.01030731201171875, -0.055999755859375, -0.01338958740234375, -0.00669097900390625, -0.020751953125, 0.00528717041015625, 0.030181884765625, -0.01367950439453125, -0.0290069580078125, -0.00580596923828125, -0.0163726806640625, -0.0174713134765625, -0.00746917724609375, -0.0457763671875, 0.036865234375, -0.0313720703125, 0.002010345458984375, 0.0229644775390625, 0.004680633544921875, -0.0221710205078125, -0.0310211181640625, 0.024993896484375, 0.0155792236328125, -0.018157958984375, 0.01255035400390625, -0.0238800048828125, -0.046417236328125, -0.0167083740234375, -0.04998779296875, -0.0114593505859375, 0.04669189453125, 0.0250701904296875, -0.0010318756103515625, -0.0271453857421875, -0.051666259765625, -0.007129669189453125, -0.0258026123046875, 0.001712799072265625, 0.0171051025390625, 0.037322998046875, -0.009735107421875, 0.0245513916015625, -0.03277587890625, 0.009246826171875, -0.005901336669921875, 0.0216217041015625, -0.00896453857421875, -0.0010309219360351562, -0.01346588134765625, -0.030487060546875, -0.0008153915405273438, -0.0185546875, -0.00528717041015625, 0.0296783447265625, -0.038238525390625, 0.01776123046875, 0.0080108642578125, 0.06573486328125, 0.0197601318359375, 0.01398468017578125, 0.0117645263671875, 0.016357421875, 0.0177459716796875, 0.00583648681640625, 0.042572021484375, 0.0016679763793945312, -0.0206451416015625, 0.0679931640625, -0.00904083251953125, -0.0565185546875, 0.0400390625, 0.01178741455078125, 0.0701904296875, 0.0193328857421875, 0.0128936767578125, 0.043304443359375, 0.00457763671875, 0.018096923828125, 0.0031185150146484375, 0.01508331298828125, -0.031890869140625, 0.013275146484375, 0.00353240966796875, -0.0018596649169921875, -0.027862548828125, 0.038604736328125, -0.012359619140625, 0.037322998046875, -0.048187255859375, -0.072265625, 0.004558563232421875, -0.0269622802734375, 0.041961669921875, 0.001056671142578125, 0.024932861328125, -0.000050902366638183594, -0.0005397796630859375, -0.0005826950073242188, -0.0231781005859375, 0.00494384765625, 0.0022525787353515625, -0.0261688232421875, 0.03814697265625, 0.000507354736328125, 0.0076904296875, -0.048797607421875, 0.006359100341796875, -0.0313720703125, -0.036773681640625, 0.0321044921875, -0.0235443115234375, -0.023834228515625, -0.01454925537109375, -0.02117919921875, 0.037078857421875, -0.09454345703125, 0.021453857421875, 0.0242767333984375, 0.0006918907165527344, -0.0176849365234375, 0.013458251953125, 0.01175689697265625, -0.062286376953125, -0.0033321380615234375, 0.042633056640625, 0.029998779296875, 0.0094451904296875, 0.014617919921875, 0.021484375, 0.0154876708984375, -0.02801513671875, 0.023773193359375, -0.00567626953125, 0.01328277587890625, 0.1031494140625, -0.01441192626953125, 0.028045654296875, -0.0129852294921875, 0.00797271728515625, -0.02728271484375, 0.039154052734375, -0.01108551025390625, -0.0023326873779296875, 0.0192108154296875, 0.003238677978515625, -0.001194000244140625, 0.04052734375, 0.007457733154296875, 0.0142822265625, 0.048675537109375, 0.0231475830078125, 0.0606689453125, 0.0576171875, -0.007053375244140625, 0.006534576416015625, -0.0168304443359375, -0.027130126953125, -0.005008697509765625, 0.019805908203125, 0.05255126953125, 0.0938720703125, -0.0499267578125, -0.0186767578125, 0.0216217041015625, 0.041168212890625, -0.03643798828125, -0.003894805908203125, -0.017669677734375, -0.016326904296875, 0.004367828369140625, -0.019012451171875, 0.008636474609375, -0.0276641845703125, -0.014556884765625, -0.0545654296875, -0.021026611328125, 0.019866943359375, -0.044036865234375, 0.058319091796875, 0.0272674560546875, -0.04608154296875, -0.0384521484375, -0.0858154296875, 0.08355712890625, -0.06756591796875, 0.0202484130859375, 0.08917236328125, -0.0113067626953125, 0.035430908203125, 0.0025482177734375, 0.0111846923828125, -0.019683837890625, 0.033843994140625, 0.02264404296875, -0.002704620361328125, -0.0360107421875, 0.0521240234375, 0.00804901123046875, -0.00530242919921875, -0.006359100341796875, -0.018768310546875, -0.01209259033203125, -0.017333984375, -0.036590576171875, -0.00797271728515625, -0.052581787109375, -0.07086181640625, 0.0191802978515625, -0.040069580078125, -0.01291656494140625, -0.01020050048828125, -0.00482177734375, 0.0306854248046875, -0.0447998046875, -0.038970947265625, -0.06622314453125, -0.0806884765625, -0.05340576171875, 0.0302886962890625, -0.01043701171875, -0.0013780593872070312, 0.0022411346435546875, 0.044036865234375, 0.01332855224609375, -0.029754638671875, 0.009033203125, 0.0038700103759765625, -0.017791748046875, -0.0234375, -0.04461669921875, 0.007129669189453125, -0.032989501953125, 0.01309967041015625, 0.044921875, -0.01520538330078125, 0.00357818603515625, -0.002567291259765625, 0.0162353515625, -0.041900634765625, 0.047332763671875, -0.053497314453125, -0.0457763671875, 0.00959014892578125, 0.0263824462890625, -0.038177490234375, -0.00156402587890625, -0.0299224853515625, -0.048797607421875, 0.00836181640625, 0.039581298828125, -0.00800323486328125, -0.01183319091796875, -0.0141143798828125, 0.034271240234375, 0.025634765625, -0.037750244140625, -0.00592041015625, 0.035125732421875, 0.017974853515625, 0.060882568359375, -0.0006399154663085938, 0.0103607177734375, -0.045166015625, -0.0189971923828125, -0.033843994140625, -0.03253173828125, -0.047393798828125, 0.021575927734375, -0.03253173828125, 0.0009150505065917969, 0.0267181396484375, 0.0009236335754394531, 0.049102783203125, -0.040252685546875, -0.0311279296875, -0.030181884765625, 0.0745849609375, -0.028289794921875, -0.0128021240234375, 0.0341796875, 0.01279449462890625, -0.033355712890625, 0.01081085205078125, -0.071533203125, -0.0126190185546875, -0.0251007080078125, -0.0283355712890625, -0.01934814453125, -0.022857666015625, -0.0241241455078125, -0.01227569580078125, -0.03289794921875, -0.01715087890625, 0.01348876953125, -0.0220489501953125, 0.0220794677734375, 0.00264739990234375, 0.0012083053588867188, -0.023223876953125, 0.0036754608154296875, -0.041351318359375, -0.0274810791015625, 0.003612518310546875, -0.0350341796875, 0.006988525390625, -0.00457000732421875, 0.0364990234375, 0.0008249282836914062, 0.0238189697265625, -0.0015039443969726562, 0.0129852294921875, -0.0097503662109375, -0.0103302001953125, 0.037261962890625, 0.01186370849609375, -0.030517578125, -0.0004520416259765625, 0.00345611572265625, -0.0199737548828125, -0.02557373046875, -0.0215911865234375, -0.043975830078125, -0.03350830078125, 0.00299835205078125, -0.021026611328125, -0.053131103515625, -0.033294677734375, 0.00711822509765625, 0.0153961181640625, -0.027252197265625, 0.00807952880859375, -0.0255889892578125, -0.035247802734375, 0.028228759765625, -0.027099609375, -0.00984954833984375, 0.00701141357421875, 0.084716796875, 0.018341064453125, 0.0004329681396484375, -0.0250396728515625, 0.04302978515625, 0.03192138671875, 0.02130126953125, 0.0528564453125, 0.041168212890625, -0.0028228759765625, -0.010467529296875, 0.028228759765625, -0.00428009033203125, -0.004634857177734375, 0.043914794921875, -0.0050811767578125, -0.011993408203125, 0.0180816650390625, -0.021087646484375, 0.00455474853515625, 0.0020503997802734375, -0.001483917236328125, -0.01227569580078125, 0.0005140304565429688, 0.03558349609375, 0.0024204254150390625, -0.006404876708984375, -0.033599853515625, -0.049041748046875, 0.025543212890625, -0.059600830078125, -0.0147705078125, -0.006427764892578125, -0.003803253173828125, -0.01190185546875, -0.011383056640625, 0.0004143714904785156, -0.00579071044921875, -0.0201416015625, -0.0003199577331542969, 0.029327392578125, -0.0233001708984375, -0.0099639892578125, 0.00899505615234375, -0.006504058837890625, 0.043609619140625, -0.01222991943359375, -0.059051513671875, 0.00934600830078125, 0.0012836456298828125, 0.035797119140625, 0.03594970703125, -0.0146026611328125, 0.06011962890625, -0.0112152099609375, -0.09027099609375, -0.0269622802734375, -0.04144287109375, -0.062042236328125, -0.095947265625, -0.0021266937255859375, -0.039031982421875, 0.00455474853515625, 0.04339599609375, 0.04345703125, -0.056060791015625, 0.06707763671875, -0.01198577880859375, 0.045013427734375, 0.06304931640625, -0.006656646728515625, 0.0284881591796875, 0.0027256011962890625, -0.03338623046875, 0.0034923553466796875, -0.005466461181640625, -0.00750732421875, 0.0183563232421875, 0.025787353515625, 0.01293182373046875, 0.048797607421875, -0.0028934478759765625, -0.009613037109375, -0.019439697265625, -0.0234375, 0.0130615234375, -0.0124053955078125, -0.036712646484375, -0.0066680908203125, 0.0264129638671875, 0.00948333740234375, -0.00716400146484375, -0.0034542083740234375, -0.032928466796875, -0.022857666015625, -0.004840850830078125, -0.041168212890625, -0.01134490966796875, 0.00966644287109375, 0.007671356201171875, -0.0300445556640625, 0.0013217926025390625, 0.006938934326171875, -0.0147247314453125, -0.0267333984375, -0.00963592529296875, -0.035614013671875, 0.044036865234375, -0.0087738037109375, 0.01424407958984375, -0.0589599609375, 0.0291290283203125, -0.04913330078125, -0.0013456344604492188, 0.051666259765625, 0.02593994140625, -0.032623291015625, 0.024505615234375, -0.037689208984375, -0.0089263916015625, 0.00516510009765625, -0.0286865234375, -0.0207366943359375, -0.0162506103515625, -0.01189422607421875, 0.01439666748046875, -0.026214599609375, -0.015655517578125, -0.005107879638671875, 0.005855560302734375, -0.0010814666748046875, 0.0139007568359375, -0.027862548828125, 0.0341796875, 0.021881103515625, 0.038055419921875, 0.02752685546875, 0.041412353515625, 0.01238250732421875, -0.043182373046875, 0.004245758056640625, -0.038909912109375, -0.01032257080078125, 0.00045108795166015625, -0.004131317138671875, -0.0020694732666015625, 0.0086822509765625, -0.002132415771484375, 0.0203704833984375, 0.00870513916015625, 0.00975799560546875, 0.0004563331604003906, -0.058929443359375, 0.0232391357421875, 0.0120697021484375, 0.01751708984375, -0.018798828125, 0.045440673828125, -0.01654052734375, -0.0134735107421875, 0.0017910003662109375, -0.0149078369140625, 0.001377105712890625, 0.036102294921875, -0.0274810791015625, 0.06341552734375, 0.055450439453125, -0.00760650634765625, 0.0290679931640625, 0.03131103515625, 0.0019683837890625, -0.00852203369140625, -0.033538818359375, -0.043609619140625, -0.005889892578125, 0.0186004638671875, -0.0014066696166992188, -0.0033321380615234375, 0.04388427734375, -0.01345062255859375, -0.00821685791015625, 0.0245513916015625, 0.054901123046875, -0.04986572265625, 0.012298583984375, 0.027862548828125, 0.0216064453125, 0.005859375, -0.020904541015625, -0.014251708984375, -0.0302276611328125, 0.06610107421875, -0.043365478515625, -0.042938232421875, 0.0012769699096679688, -0.0272064208984375, -0.014129638671875, -0.0197906494140625, 0.0253143310546875, 0.029693603515625, 0.0096893310546875, 0.0277099609375, 0.0010519027709960938, 0.035003662109375, -0.01325225830078125, 0.016937255859375, -0.033416748046875, -0.01059722900390625, -0.038604736328125, -0.01885986328125, 0.00091552734375, -0.0161895751953125, -0.0268402099609375, 0.00003838539123535156, 0.0134735107421875, 0.053924560546875, -0.01491546630859375, -0.0207977294921875, 0.045989990234375, -0.0458984375, -0.053466796875, -0.0188140869140625, 0.0258331298828125, 0.028717041015625, -0.014068603515625, 0.047515869140625, -0.005706787109375, -0.03753662109375, -0.01496124267578125, -0.032501220703125, 0.0638427734375, -0.059661865234375, 0.0170745849609375, 0.0163116455078125, 0.0709228515625, 0.006702423095703125, -0.0038242340087890625, 0.0203704833984375, -0.06005859375, -0.047027587890625, 0.0088653564453125, -0.036468505859375, -0.007213592529296875, 0.00421142578125, -0.07513427734375, 0.04156494140625, -0.000759124755859375, 0.04119873046875, -0.023284912109375, 0.002483367919921875, 0.022216796875, -0.01184844970703125, -0.045074462890625, 0.03778076171875, 0.0100555419921875, 0.07733154296875, -0.0831298828125, -0.037017822265625, 0.016632080078125, 0.081787109375, 0.0738525390625, 0.02398681640625, -0.03759765625, -0.0369873046875, -0.013671875, 0.01181793212890625, -0.0265655517578125, 0.042755126953125, -0.0096588134765625, 0.04327392578125, 0.031463623046875, -0.0699462890625, 0.0316162109375, -0.0244293212890625, -0.0178375244140625, -0.00322723388671875, -0.00122833251953125, -0.0179595947265625, -0.0078887939453125, 0.002605438232421875, -0.00859832763671875, 0.00046062469482421875, -0.00316619873046875, -0.006381988525390625, 0.0149383544921875, 0.042510986328125, 0.044189453125, -0.003086090087890625, 0.048065185546875, -0.02691650390625, 0.055084228515625, -0.004001617431640625, -0.01395416259765625, 0.03375244140625, 0.01462554931640625, -0.01522064208984375, 0.036376953125, -0.0011358261108398438, 0.0369873046875, 0.004634857177734375, 0.0249176025390625, 0.038909912109375, 0.029205322265625, -0.0268707275390625, -0.022064208984375, 0.043792724609375, 0.03973388671875, -0.016021728515625, -0.01419830322265625, 0.01441192626953125, 0.006622314453125, -0.0121612548828125, -0.01551055908203125, -0.0167236328125, 0.0119171142578125, 0.0447998046875, -0.0771484375, 0.0140228271484375, 0.056854248046875, 0.01425933837890625, 0.00015115737915039062, -0.0074310302734375, -0.034576416015625, 0.0005974769592285156, -0.01849365234375, -0.01168060302734375, -0.005519866943359375, 0.021270751953125, 0.022003173828125, 0.031829833984375, 0.006099700927734375, -0.0106048583984375, -0.0159759521484375, 0.05035400390625, 0.01947021484375, 0.0025424957275390625, -0.04315185546875, -0.04754638671875, 0.039794921875, 0.0291748046875, 0.0338134765625, 0.01366424560546875, 0.0377197265625, 0.027587890625, -0.0303192138671875, 0.0093536376953125, 0.05975341796875, -0.01099395751953125, 0.03277587890625, -0.044219970703125, 0.00897216796875, -0.0280914306640625, -0.0296173095703125, -0.017974853515625, 0.010223388671875, 0.025421142578125, -0.010894775390625, 0.040557861328125, 0.00502777099609375, 0.01534271240234375, 0.0217132568359375, 0.0263824462890625, 0.01065826416015625, 0.02874755859375, -0.07623291015625, -0.0035343170166015625, -0.034881591796875, -0.039947509765625, 0.00824737548828125, 0.03509521484375, -0.039031982421875, 0.02288818359375, -0.005748748779296875, 0.00485992431640625, 0.0390625, -0.0210723876953125, -0.013946533203125, 0.0228271484375, 0.03955078125, -0.0032939910888671875, -0.0770263671875, -0.03240966796875, 0.00003266334533691406, 0.004207611083984375, -0.021820068359375, 0.01258087158203125, 0.0296630859375, -0.00093841552734375, -0.0300140380859375, 0.00276947021484375, -0.0023403167724609375, -0.042572021484375, 0.0196380615234375, 0.0268707275390625, 0.01358795166015625, -0.00942230224609375, -0.048004150390625, 0.0213165283203125, 0.058685302734375, 0.010894775390625, 0.036468505859375, -0.003116607666015625, 0.0106201171875, -0.02996826171875, -0.006641387939453125, -0.04931640625, -0.06036376953125, -0.0716552734375, -0.0010585784912109375, 0.0243072509765625, 0.00643157958984375, -0.021881103515625, 0.033843994140625, -0.023651123046875, -0.05523681640625, -0.0087738037109375, -0.032470703125, -0.03814697265625, 0.0171051025390625, 0.0304718017578125, -0.00652313232421875, -0.01470184326171875, -0.01087188720703125, 0.0038547515869140625, 0.006160736083984375, -0.02252197265625, 0.022247314453125, -0.06036376953125, 0.0740966796875, 0.02960205078125, 0.040435791015625, -0.0258026123046875, -0.0009093284606933594, 0.058929443359375, -0.01102447509765625, 0.024444580078125, -0.01442718505859375, -0.03326416015625, -0.0406494140625, 0.0172882080078125, 0.001659393310546875, -0.00458526611328125, -0.02252197265625, -0.025665283203125, -0.02850341796875, 0.026824951171875, -0.029998779296875, 0.00159454345703125, -0.01229095458984375, -0.041717529296875, 0.0094451904296875, -0.024078369140625, 0.0025634765625, -0.0007476806640625, 0.008575439453125, -0.01421356201171875, 0.0288238525390625, -0.00629425048828125, -0.0007753372192382812, 0.0350341796875, 0.028106689453125, 0.018890380859375, -0.032806396484375, 0.005008697509765625, 0.015228271484375, 0.022308349609375, 0.04150390625, 0.028778076171875, -0.0242462158203125, -0.0182037353515625, -0.0090484619140625, -0.002227783203125, -0.037994384765625, 0.01617431640625, -0.095458984375, -0.03485107421875, -0.0293121337890625, -0.01788330078125, -0.01043701171875, -0.053619384765625, -0.08697509765625, 0.129150390625, -0.032012939453125, -0.025390625, -0.050445556640625, -0.0236358642578125, 0.0009527206420898438, 0.0095367431640625, -0.0169677734375, 0.006481170654296875, -0.041778564453125, 0.040740966796875, 0.03289794921875, -0.01251220703125, 0.0207977294921875, 0.00829315185546875, -0.0360107421875, 0.02996826171875, 0.0153961181640625, -0.01065826416015625, 0.03564453125, -0.0228118896484375, 0.03924560546875, 0.05645751953125, -0.01488494873046875, -0.003910064697265625, 0.00858306884765625, -0.029144287109375, -0.00516510009765625, -0.052886962890625, -0.047821044921875, -0.034271240234375, 0.08428955078125, 0.052032470703125, 0.03363037109375, -0.038604736328125, -0.0192108154296875, -0.05242919921875, -0.040008544921875, 0.006252288818359375, 0.018524169921875, -0.058074951171875, 0.025787353515625, 0.0243682861328125, -0.045623779296875, 0.0092620849609375, 0.0167083740234375, -0.077880859375, 0.0171356201171875, -0.006336212158203125, -0.00846099853515625, -0.061737060546875, -0.02435302734375, 0.0362548828125, -0.0290985107421875, 0.002689361572265625, -0.0047607421875, 0.0158538818359375, -0.0055999755859375, 0.00780487060546875, 0.01331329345703125, 0.00940704345703125, -0.03216552734375, 0.0254669189453125, 0.00839996337890625, -0.006107330322265625, -0.0242156982421875, -0.0137939453125, 0.0032176971435546875, 0.0024318695068359375, 0.006633758544921875, -0.004581451416015625, 0.0322265625, -0.02960205078125, -0.01102447509765625, -0.0188446044921875, -0.0015735626220703125, 0.001766204833984375, -0.00379180908203125, 0.0199432373046875, -0.0201873779296875, -0.007656097412109375, 0.014495849609375, -0.0308074951171875, -0.017852783203125, -0.00762176513671875, -0.0145263671875, -0.10406494140625, 0.0506591796875, 0.02203369140625, 0.03521728515625, 0.03961181640625 ]
6e939a5a68d63cfdd6a53f79483fa2fa6a458d04
Wordpress Stackexchange Q: Is there a way to delete images from the Media Library programatically? I did a custom user profile page for wordpress that lets you update your profile including uploading your custom avatar and save that photo to the Media Library. Is there a way for the a specific avatar to be deleted using it's attachment ID? A: Use wp_delete_attachment <?php wp_delete_attachment( $attachment_id ); ?>
Q: Is there a way to delete images from the Media Library programatically? I did a custom user profile page for wordpress that lets you update your profile including uploading your custom avatar and save that photo to the Media Library. Is there a way for the a specific avatar to be deleted using it's attachment ID? A: Use wp_delete_attachment <?php wp_delete_attachment( $attachment_id ); ?>
wordpress
{ "language": "en", "length": 65, "provenance": "stackexchange_00019.jsonl.gz:425498", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71574" }
[ 0.06689453125, 0.01250457763671875, 0.0325927734375, 0.00563812255859375, 0.01522064208984375, -0.0268096923828125, 0.0760498046875, -0.060760498046875, 0.033538818359375, 0.03460693359375, 0.0386962890625, -0.02734375, 0.03155517578125, -0.039794921875, -0.03961181640625, -0.002960205078125, 0.027587890625, 0.003772735595703125, 0.04107666015625, 0.001739501953125, -0.0007829666137695312, 0.021148681640625, 0.0276947021484375, 0.0025005340576171875, -0.03167724609375, 0.01812744140625, 0.03558349609375, 0.0011138916015625, -0.038238525390625, -0.040008544921875, -0.0023956298828125, 0.06109619140625, -0.022186279296875, 0.030487060546875, 0.01000213623046875, -0.0017595291137695312, 0.0035266876220703125, 0.0238037109375, 0.039520263671875, -0.0224609375, 0.0146942138671875, 0.0124053955078125, -0.0156402587890625, 0.0161590576171875, -0.029052734375, -0.03790283203125, 0.0108184814453125, -0.0310821533203125, 0.0105133056640625, 0.048126220703125, 0.0214996337890625, -0.0182952880859375, 0.029296875, -0.0288543701171875, -0.0077056884765625, -0.034820556640625, 0.021881103515625, 0.015167236328125, 0.042083740234375, -0.021484375, -0.051910400390625, 0.00887298583984375, 0.022216796875, -0.036163330078125, 0.0190887451171875, -0.0190582275390625, 0.007732391357421875, 0.0311431884765625, -0.05596923828125, -0.01540374755859375, 0.03399658203125, -0.0198974609375, -0.00786590576171875, -0.054534912109375, 0.01410675048828125, 0.0545654296875, -0.0151519775390625, -0.0104522705078125, 0.00803375244140625, 0.0003814697265625, 0.009552001953125, -0.0062255859375, -0.052886962890625, 0.0279388427734375, 0.0031909942626953125, 0.0633544921875, -0.006809234619140625, -0.0249786376953125, 0.00908660888671875, 0.030029296875, -0.0184783935546875, -0.037841796875, 0.062744140625, 0.0413818359375, -0.0299072265625, 0.0259246826171875, 0.033447265625, 0.03662109375, 0.00928497314453125, 0.00734710693359375, 0.03875732421875, -0.057281494140625, 0.037384033203125, -0.03167724609375, 0.0012578964233398438, -0.002468109130859375, -0.019775390625, -0.046600341796875, 0.01174163818359375, 0.0347900390625, -0.0201568603515625, -0.00843048095703125, -0.0010061264038085938, -0.028778076171875, 0.01043701171875, 0.02978515625, -0.027313232421875, 0.03289794921875, -0.0030689239501953125, 0.01548004150390625, -0.0228118896484375, -0.0138702392578125, -0.0153961181640625, 0.0029010772705078125, 0.0171661376953125, -0.0106201171875, -0.023956298828125, 0.0260009765625, 0.00185394287109375, 0.00539398193359375, -0.05218505859375, 0.03082275390625, 0.0615234375, 0.014404296875, 0.00463104248046875, -0.0137786865234375, -0.0081939697265625, -0.04046630859375, -0.0001455545425415039, 0.005840301513671875, 0.06732177734375, -0.0243377685546875, -0.01268768310546875, 0.042083740234375, 0.0228118896484375, 0.033203125, 0.006145477294921875, -0.00018966197967529297, 0.026458740234375, -0.054779052734375, 0.004283905029296875, -0.03546142578125, -0.017333984375, 0.0318603515625, 0.11175537109375, -0.01537322998046875, 0.1060791015625, -0.0479736328125, 0.041778564453125, -0.0278472900390625, 0.038177490234375, -0.01136016845703125, -0.017730712890625, 0.011871337890625, -0.0136260986328125, 0.0125885009765625, -0.0244293212890625, 0.00238800048828125, 0.020050048828125, -0.0080413818359375, 0.00495147705078125, -0.033477783203125, 0.017578125, 0.0216522216796875, 0.002674102783203125, 0.040069580078125, -0.004596710205078125, 0.007061004638671875, -0.0018243789672851562, 0.046966552734375, 0.012451171875, -0.0293121337890625, 0.03875732421875, -0.01175689697265625, -0.04974365234375, -0.02838134765625, 0.031341552734375, 0.0570068359375, 0.03009033203125, 0.038482666015625, 0.05419921875, -0.00638580322265625, -0.00887298583984375, -0.0038738250732421875, 0.0011577606201171875, -0.037933349609375, -0.0136260986328125, -0.030792236328125, -0.00891876220703125, 0.0238800048828125, 0.0232696533203125, 0.027862548828125, -0.01080322265625, 0.0028285980224609375, -0.07769775390625, 0.031646728515625, -0.035186767578125, 0.046417236328125, -0.051605224609375, 0.02325439453125, 0.0322265625, -0.00339508056640625, -0.0341796875, 0.01050567626953125, 0.005359649658203125, -0.0308074951171875, 0.004848480224609375, -0.01221466064453125, 0.007694244384765625, 0.0223846435546875, -0.0257415771484375, 0.00650787353515625, -0.045196533203125, 0.00972747802734375, 0.021820068359375, -0.01255035400390625, -0.0185546875, -0.01922607421875, 0.0127410888671875, -0.0025463104248046875, -0.034027099609375, 0.02899169921875, -0.02044677734375, -0.033294677734375, -0.0303802490234375, -0.02227783203125, -0.037872314453125, -0.10650634765625, 0.01454925537109375, 0.07257080078125, 0.0106048583984375, 0.0220794677734375, -0.01267242431640625, 0.0439453125, 0.0633544921875, 0.041412353515625, 0.032440185546875, 0.0163421630859375, 0.0086669921875, 0.006053924560546875, -0.041961669921875, -0.0289764404296875, 0.032470703125, -0.08978271484375, 0.016357421875, 0.03521728515625, -0.00205230712890625, -0.0006079673767089844, -0.0004093647003173828, 0.017913818359375, 0.00013637542724609375, 0.03179931640625, -0.00591278076171875, 0.0170745849609375, 0.04461669921875, -0.0005388259887695312, 0.04669189453125, 0.0323486328125, -0.0043182373046875, 0.0054473876953125, 0.0023822784423828125, -0.05242919921875, 0.00789642333984375, 0.0399169921875, 0.006290435791015625, 0.021026611328125, -0.0379638671875, -0.00786590576171875, 0.01125335693359375, 0.01800537109375, 0.0037689208984375, 0.032806396484375, -0.007778167724609375, -0.0118255615234375, -0.003971099853515625, -0.0296173095703125, 0.007904052734375, 0.01076507568359375, -0.041717529296875, -0.0203857421875, 0.010406494140625, 0.0443115234375, -0.003070831298828125, -0.0026378631591796875, 0.002445220947265625, 0.0018634796142578125, -0.0004429817199707031, -0.051300048828125, 0.040985107421875, -0.04632568359375, 0.034210205078125, 0.07928466796875, -0.01654052734375, 0.02203369140625, 0.007389068603515625, -0.0017385482788085938, 0.0179290771484375, 0.0181732177734375, 0.0233917236328125, -0.044677734375, 0.043914794921875, 0.046234130859375, 0.0045928955078125, -0.02978515625, -0.007537841796875, -0.0229339599609375, -0.010009765625, -0.0218048095703125, -0.059539794921875, -0.03131103515625, 0.0120086669921875, -0.0245361328125, 0.0201873779296875, -0.00994110107421875, -0.00612640380859375, -0.02093505859375, 0.0207366943359375, 0.004222869873046875, -0.0236663818359375, -0.0013427734375, 0.03326416015625, -0.01776123046875, -0.014312744140625, -0.032501220703125, 0.01256561279296875, 0.00908660888671875, 0.0006279945373535156, 0.06744384765625, 0.006267547607421875, -0.055572509765625, 0.01959228515625, -0.011444091796875, 0.00034880638122558594, 0.0458984375, 0.041748046875, -0.002147674560546875, -0.00614166259765625, 0.007720947265625, 0.044921875, 0.06610107421875, -0.080810546875, 0.00762939453125, -0.0096282958984375, -0.0404052734375, 0.01026153564453125, -0.017181396484375, -0.0070037841796875, -0.032379150390625, -0.0047607421875, -0.058349609375, -0.023712158203125, -0.0162811279296875, -0.02618408203125, 0.058868408203125, 0.0017194747924804688, -0.002872467041015625, -0.0029163360595703125, 0.053863525390625, 0.0013055801391601562, 0.032135009765625, -0.0308990478515625, -0.00949859619140625, 0.01702880859375, -0.013885498046875, 0.002529144287109375, 0.017120361328125, 0.036529541015625, -0.0211334228515625, -0.01910400390625, 0.007633209228515625, 0.009307861328125, -0.0028285980224609375, -0.0225067138671875, -0.01015472412109375, -0.0186767578125, 0.04156494140625, -0.00849151611328125, 0.0173797607421875, -0.0214996337890625, -0.02911376953125, 0.0011453628540039062, 0.07574462890625, -0.01861572265625, -0.0299530029296875, -0.01325225830078125, 0.0126953125, -0.022308349609375, -0.002994537353515625, -0.018096923828125, -0.01107025146484375, -0.043304443359375, -0.012603759765625, 0.022979736328125, -0.03521728515625, -0.01016998291015625, 0.0279388427734375, -0.0308685302734375, -0.0189208984375, 0.0276031494140625, -0.035919189453125, 0.02081298828125, 0.0028743743896484375, 0.00939178466796875, -0.01788330078125, 0.001895904541015625, -0.04571533203125, -0.0810546875, -0.0167999267578125, -0.0289306640625, 0.06878662109375, -0.0008535385131835938, 0.04412841796875, -0.04461669921875, 0.03814697265625, 0.029998779296875, 0.017333984375, -0.0201416015625, -0.02252197265625, -0.0191650390625, -0.0208892822265625, -0.019012451171875, -0.0216827392578125, -0.02886962890625, -0.07373046875, -0.0163421630859375, -0.01332855224609375, -0.00727081298828125, 0.0460205078125, -0.0189971923828125, 0.00830078125, -0.0308685302734375, -0.00455474853515625, -0.0190582275390625, 0.033050537109375, -0.0147552490234375, 0.006191253662109375, -0.0272979736328125, -0.0450439453125, 0.0280303955078125, 0.0036163330078125, -0.0031299591064453125, 0.02142333984375, 0.0701904296875, 0.004688262939453125, 0.0029048919677734375, -0.0927734375, 0.025665283203125, 0.039764404296875, -0.01319122314453125, 0.0699462890625, 0.0531005859375, -0.003688812255859375, 0.044036865234375, 0.01186370849609375, 0.0050506591796875, -0.0355224609375, 0.054962158203125, -0.0108184814453125, -0.018280029296875, 0.0224609375, -0.0082550048828125, 0.003025054931640625, 0.01342010498046875, 0.00521087646484375, -0.000583648681640625, -0.006439208984375, 0.00356292724609375, -0.0001780986785888672, -0.00457763671875, -0.006793975830078125, -0.068115234375, 0.02655029296875, -0.0802001953125, 0.0212860107421875, -0.0230712890625, 0.01050567626953125, 0.00675201416015625, 0.00571441650390625, 0.0028743743896484375, -0.0301055908203125, -0.0245361328125, -0.023284912109375, 0.028045654296875, -0.02349853515625, 0.00275421142578125, -0.00814056396484375, -0.0007996559143066406, 0.0213623046875, 0.005802154541015625, -0.03857421875, -0.033966064453125, 0.01023101806640625, 0.0292816162109375, 0.0020236968994140625, -0.00942230224609375, 0.038604736328125, 0.016082763671875, -0.0019588470458984375, -0.0089263916015625, -0.053619384765625, 0.00959014892578125, -0.049560546875, 0.0184326171875, 0.0085296630859375, -0.01032257080078125, 0.046905517578125, 0.0369873046875, -0.039520263671875, 0.05242919921875, -0.00290679931640625, 0.05853271484375, 0.051788330078125, -0.007419586181640625, -0.00640869140625, 0.0535888671875, -0.01044464111328125, -0.0287017822265625, -0.0190887451171875, -0.0270233154296875, -0.0035648345947265625, 0.03369140625, 0.04022216796875, -0.012115478515625, -0.0249176025390625, -0.004291534423828125, -0.035308837890625, -0.0166778564453125, 0.0230255126953125, -0.05584716796875, -0.08087158203125, -0.0175018310546875, 0.0203857421875, 0.035614013671875, -0.03509521484375, -0.003353118896484375, -0.06512451171875, -0.019500732421875, -0.041717529296875, 0.0275726318359375, -0.0528564453125, 0.0082855224609375, 0.016448974609375, -0.010162353515625, -0.015655517578125, -0.01007080078125, 0.005435943603515625, 0.005519866943359375, -0.0297088623046875, -0.0257110595703125, 0.07171630859375, -0.0079345703125, 0.01544189453125, -0.03070068359375, -0.005401611328125, -0.024261474609375, 0.0017681121826171875, 0.0509033203125, 0.01334381103515625, 0.005580902099609375, -0.006931304931640625, -0.0260162353515625, -0.004680633544921875, 0.0208282470703125, -0.04425048828125, 0.0004620552062988281, -0.03387451171875, -0.0005369186401367188, 0.021575927734375, 0.0014963150024414062, 0.0233612060546875, 0.023406982421875, 0.038665771484375, -0.01309967041015625, 0.06475830078125, -0.005084991455078125, 0.006183624267578125, 0.025787353515625, 0.0247650146484375, 0.024139404296875, 0.008148193359375, -0.00736236572265625, -0.035614013671875, -0.007434844970703125, -0.0276336669921875, -0.00016546249389648438, -0.006649017333984375, 0.002635955810546875, 0.01056671142578125, 0.0262603759765625, 0.01296234130859375, 0.00025653839111328125, -0.048797607421875, -0.01242828369140625, -0.0467529296875, 0.0791015625, -0.049560546875, 0.00435638427734375, -0.027740478515625, -0.0291900634765625, 0.0224151611328125, 0.020294189453125, 0.015777587890625, 0.00476837158203125, -0.0261077880859375, 0.006832122802734375, 0.01525115966796875, -0.01201629638671875, 0.022796630859375, 0.0208740234375, -0.0306396484375, -0.002239227294921875, 0.01180267333984375, -0.01493072509765625, 0.0061187744140625, 0.0260467529296875, 0.00022208690643310547, -0.035491943359375, 0.01678466796875, -0.01256561279296875, -0.0265960693359375, 0.007965087890625, -0.029571533203125, 0.03057861328125, 0.025299072265625, 0.06805419921875, -0.036346435546875, 0.0120391845703125, -0.004180908203125, -0.01525115966796875, 0.059906005859375, -0.0193023681640625, 0.00978851318359375, -0.0260009765625, 0.036376953125, -0.007312774658203125, -0.03125, -0.02093505859375, -0.0217132568359375, 0.025054931640625, 0.019439697265625, 0.039886474609375, -0.00911712646484375, -0.038848876953125, -0.05584716796875, 0.034576416015625, 0.000759124755859375, -0.01488494873046875, 0.01119232177734375, 0.006504058837890625, 0.014190673828125, -0.02618408203125, 0.048187255859375, -0.016082763671875, 0.008575439453125, 0.034820556640625, -0.01062774658203125, 0.0203704833984375, 0.0173797607421875, -0.0020771026611328125, 0.00046443939208984375, -0.0016193389892578125, -0.058563232421875, -0.023406982421875, -0.041839599609375, 0.02215576171875, 0.0226593017578125, -0.083740234375, 0.0250701904296875, -0.03369140625, -0.019256591796875, -0.017120361328125, -0.023895263671875, 0.09808349609375, -0.066162109375, 0.01482391357421875, 0.030487060546875, 0.068115234375, -0.02685546875, 0.006504058837890625, 0.006023406982421875, -0.0546875, -0.05010986328125, -0.01087188720703125, -0.07220458984375, 0.000576019287109375, -0.0183563232421875, -0.08477783203125, 0.03570556640625, -0.000048160552978515625, 0.057861328125, -0.026153564453125, 0.0005383491516113281, 0.02801513671875, -0.00565338134765625, -0.0185699462890625, 0.03387451171875, 0.0172882080078125, -0.01082611083984375, -0.01873779296875, -0.003795623779296875, -0.0067596435546875, 0.033599853515625, 0.08880615234375, 0.0281524658203125, -0.039031982421875, -0.0474853515625, 0.0014820098876953125, 0.037872314453125, -0.0008363723754882812, 0.031829833984375, -0.0026531219482421875, -0.01001739501953125, -0.00301361083984375, -0.036224365234375, 0.0231475830078125, -0.03765869140625, -0.0182647705078125, 0.0014171600341796875, 0.0167388916015625, 0.0237274169921875, 0.00531005859375, 0.0506591796875, -0.02667236328125, -0.00273895263671875, 0.031951904296875, -0.0267791748046875, 0.0209808349609375, 0.0010900497436523438, 0.0162200927734375, 0.00025916099548339844, -0.0006008148193359375, -0.0018339157104492188, 0.023101806640625, 0.004852294921875, 0.02008056640625, 0.037811279296875, 0.018890380859375, -0.0233612060546875, -0.002780914306640625, 0.00943756103515625, 0.0017061233520507812, -0.006710052490234375, 0.0394287109375, -0.01435089111328125, 0.0093994140625, -0.0882568359375, -0.007778167724609375, 0.04156494140625, 0.06689453125, -0.04156494140625, -0.02886962890625, 0.01207733154296875, 0.016082763671875, 0.0148773193359375, 0.0093536376953125, 0.04010009765625, -0.07928466796875, -0.0361328125, -0.063720703125, 0.0372314453125, 0.0269012451171875, 0.04205322265625, -0.01110076904296875, 0.0151214599609375, -0.06658935546875, -0.007091522216796875, -0.01059722900390625, 0.0011539459228515625, -0.0113067626953125, -0.01910400390625, -0.0030040740966796875, 0.0100250244140625, 0.0279693603515625, 0.0088653564453125, -0.023162841796875, 0.04583740234375, -0.00771331787109375, 0.0239105224609375, -0.0546875, -0.06365966796875, 0.029876708984375, 0.036346435546875, 0.0230255126953125, -0.0183563232421875, 0.0301055908203125, 0.0230560302734375, -0.0447998046875, -0.0184783935546875, 0.01546478271484375, -0.01519775390625, 0.035552978515625, -0.0286407470703125, 0.036346435546875, 0.016754150390625, -0.0148773193359375, -0.0158538818359375, -0.01019287109375, 0.06787109375, -0.0252685546875, 0.019195556640625, -0.00510406494140625, -0.0372314453125, 0.043487548828125, 0.0064849853515625, 0.056060791015625, 0.005916595458984375, -0.09466552734375, -0.00788116455078125, -0.032867431640625, -0.02801513671875, 0.0003616809844970703, 0.0230712890625, -0.0533447265625, 0.053375244140625, -0.03765869140625, -0.025848388671875, 0.0163421630859375, -0.0083465576171875, 0.0026988983154296875, -0.0224151611328125, -0.00878143310546875, -0.0256195068359375, -0.042144775390625, -0.01061248779296875, -0.024017333984375, 0.0184783935546875, 0.025360107421875, 0.042388916015625, 0.0007414817810058594, 0.03680419921875, -0.033721923828125, 0.02154541015625, -0.00910186767578125, 0.00760650634765625, -0.0279083251953125, 0.0452880859375, 0.0131683349609375, -0.023284912109375, 0.001739501953125, 0.0745849609375, -0.0144805908203125, -0.01465606689453125, 0.034088134765625, -0.0175933837890625, -0.0045928955078125, 0.029083251953125, 0.01983642578125, -0.01959228515625, -0.00684356689453125, -0.0130767822265625, -0.006458282470703125, 0.0256805419921875, 0.005279541015625, -0.01458740234375, 0.007503509521484375, 0.047454833984375, -0.023956298828125, 0.028106689453125, -0.00971221923828125, 0.044036865234375, 0.0297698974609375, 0.0188751220703125, -0.043548583984375, -0.01267242431640625, -0.00787353515625, -0.041015625, 0.0210418701171875, 0.0240478515625, 0.00290679931640625, -0.00737762451171875, 0.0219268798828125, -0.009979248046875, 0.0219879150390625, -0.01297760009765625, -0.00867462158203125, -0.00835418701171875, 0.0027294158935546875, 0.01010894775390625, -0.0060272216796875, -0.01103973388671875, -0.041259765625, -0.0173492431640625, 0.016998291015625, -0.03143310546875, -0.007526397705078125, -0.047119140625, -0.0174560546875, 0.029052734375, 0.04638671875, -0.09246826171875, 0.050628662109375, 0.03326416015625, -0.022247314453125, 0.0279693603515625, -0.03668212890625, 0.0043792724609375, 0.0279541015625, -0.014739990234375, -0.07183837890625, -0.039337158203125, 0.045806884765625, -0.047088623046875, 0.02215576171875, 0.03076171875, -0.0310821533203125, 0.01334381103515625, 0.0254364013671875, 0.046661376953125, 0.07244873046875, -0.016448974609375, -0.052490234375, -0.013336181640625, -0.0018444061279296875, 0.036285400390625, 0.023406982421875, -0.0107879638671875, -0.007289886474609375, -0.00966644287109375, 0.0216217041015625, -0.0087738037109375, 0.01971435546875, -0.03704833984375, -0.1064453125, 0.0183563232421875, -0.00795745849609375, -0.056060791015625, 0.0009355545043945312, 0.053802490234375, 0.0014429092407226562, -0.042388916015625, -0.00603485107421875, -0.0144805908203125, 0.0179290771484375, -0.01580810546875, 0.002437591552734375, 0.037384033203125, -0.0209503173828125, 0.0091552734375, -0.031646728515625, 0.0257568359375, 0.008087158203125, 0.007587432861328125, 0.027496337890625, -0.022918701171875, 0.041107177734375, 0.01971435546875, -0.038604736328125, 0.00617218017578125, -0.01407623291015625, -0.00785064697265625, -0.059417724609375, -0.01248931884765625, -0.011627197265625, 0.022918701171875, 0.103271484375, 0.10968017578125, 0.018890380859375, -0.05841064453125, 0.016204833984375, 0.0266571044921875, -0.006954193115234375, -0.0211944580078125, 0.0238189697265625, -0.07513427734375, -0.053985595703125, 0.01271820068359375, -0.010650634765625, -0.020050048828125, -0.034820556640625, -0.0340576171875, -0.0033359527587890625, -0.0174713134765625, 0.00018584728240966797, 0.02410888671875, 0.047088623046875, 0.0260467529296875, -0.0272064208984375, 0.0245208740234375, -0.029632568359375, -0.01174163818359375, 0.037872314453125, -0.0153656005859375, 0.022216796875, -0.034637451171875, 0.0197601318359375, 0.041412353515625, 0.0160064697265625, -0.0024356842041015625, -0.00978851318359375, -0.0394287109375, -0.0142059326171875, 0.0158538818359375, 0.01045989990234375, 0.019134521484375, -0.0196075439453125, 0.038055419921875, 0.01568603515625, 0.002902984619140625, -0.0240478515625, 0.002628326416015625, -0.00606536865234375, -0.0043487548828125, -0.025665283203125, 0.01401519775390625, 0.0290985107421875, -0.050933837890625, -0.0040435791015625, -0.01470947265625, -0.024658203125, -0.074951171875, 0.0287628173828125, 0.0030002593994140625, 0.009307861328125, 0.037628173828125 ]
dceb588765b9e3d1e12cd9496b656ba9eafa3bc3
Wordpress Stackexchange Q: If two users attempt to modify a page, does Wordpress still work correctly? I am worried about allowing more than one user of my Wordpress installation use Wordpress at the same time. What if one user updates a page or deletes a page while the other user is editing it? How robust is Wordpress under this multi-user case? I am talking about users who are logged into Wordpress as editors. A: As far as writing/editing pages and posts WordPress is pretty darn good at handling multiple users and conflicts. There are clear warnings and error messages to the user that someone else is actively editing the post/page. And it will prevent you from saving changes if another user opened the post/page before you did. Also, when a user opens a document for editing you can take over editing. This helps when for example the user runs out to lunch or home for the day, the document is not blocked for editing. To see it in action simply attempt to edit a post/page from two different user accounts and browsers. Note: Edits reflect improvements in WordPress since the original answer was posted.
Q: If two users attempt to modify a page, does Wordpress still work correctly? I am worried about allowing more than one user of my Wordpress installation use Wordpress at the same time. What if one user updates a page or deletes a page while the other user is editing it? How robust is Wordpress under this multi-user case? I am talking about users who are logged into Wordpress as editors. A: As far as writing/editing pages and posts WordPress is pretty darn good at handling multiple users and conflicts. There are clear warnings and error messages to the user that someone else is actively editing the post/page. And it will prevent you from saving changes if another user opened the post/page before you did. Also, when a user opens a document for editing you can take over editing. This helps when for example the user runs out to lunch or home for the day, the document is not blocked for editing. To see it in action simply attempt to edit a post/page from two different user accounts and browsers. Note: Edits reflect improvements in WordPress since the original answer was posted.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:425504", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71603" }
[ 0.0304107666015625, -0.018280029296875, -0.01541900634765625, 0.01506805419921875, -0.006591796875, -0.036041259765625, 0.0282745361328125, -0.0364990234375, -0.01374053955078125, 0.00936126708984375, 0.0038700103759765625, -0.026519775390625, -0.0230865478515625, -0.0274658203125, -0.0243682861328125, -0.046356201171875, 0.004665374755859375, 0.0005674362182617188, 0.004150390625, -0.0199432373046875, -0.018157958984375, -0.020965576171875, 0.02069091796875, 0.0029354095458984375, 0.0182037353515625, 0.0008711814880371094, 0.00450897216796875, -0.0131378173828125, 0.01690673828125, -0.00928497314453125, 0.0175628662109375, 0.0038127899169921875, 0.0265960693359375, 0.0169219970703125, -0.045684814453125, -0.03033447265625, -0.0236358642578125, 0.00470733642578125, -0.01409912109375, 0.01132965087890625, 0.022003173828125, -0.0039520263671875, 0.040496826171875, 0.036285400390625, 0.0064697265625, -0.0628662109375, 0.0518798828125, -0.0460205078125, 0.018463134765625, -0.0032482147216796875, 0.0037288665771484375, 0.02386474609375, 0.0204315185546875, 0.017547607421875, -0.01448822021484375, -0.01044464111328125, 0.032440185546875, -0.005893707275390625, 0.036590576171875, -0.05145263671875, -0.061004638671875, -0.02301025390625, 0.034027099609375, -0.00852203369140625, -0.00458526611328125, -0.0284576416015625, -0.046630859375, 0.01540374755859375, -0.0635986328125, -0.02166748046875, 0.049468994140625, -0.037445068359375, -0.00653839111328125, -0.0021381378173828125, 0.032745361328125, -0.0221099853515625, -0.034149169921875, -0.03350830078125, 0.0272674560546875, 0.05712890625, -0.00457000732421875, 0.0029354095458984375, -0.06585693359375, -0.03662109375, 0.01052093505859375, -0.0006976127624511719, -0.0048980712890625, -0.005474090576171875, -0.0200042724609375, -0.0138397216796875, -0.0173797607421875, -0.0474853515625, -0.01561737060546875, 0.0281524658203125, -0.0199432373046875, 0.0024852752685546875, 0.0185699462890625, 0.044708251953125, -0.01206207275390625, -0.01125335693359375, 0.0303955078125, -0.050018310546875, 0.01010894775390625, -0.0269775390625, 0.000019788742065429688, -0.00850677490234375, 0.03375244140625, 0.0233154296875, 0.0184783935546875, 0.01262664794921875, -0.0406494140625, 0.0462646484375, 0.014068603515625, -0.0545654296875, 0.021026611328125, 0.0247802734375, -0.0003781318664550781, 0.033203125, 0.019866943359375, -0.00914764404296875, -0.01096343994140625, 0.0045928955078125, -0.0093231201171875, -0.035858154296875, -0.00986480712890625, -0.033538818359375, -0.027587890625, 0.016815185546875, 0.0159759521484375, -0.01300048828125, -0.04095458984375, 0.0175323486328125, 0.08740234375, 0.034393310546875, 0.00738525390625, -0.01329803466796875, -0.035400390625, 0.00879669189453125, 0.00534820556640625, 0.005344390869140625, -0.01044464111328125, -0.0267333984375, 0.0193023681640625, -0.0179901123046875, -0.025848388671875, 0.0178985595703125, 0.0259246826171875, 0.029083251953125, -0.0028514862060546875, -0.047271728515625, -0.00435638427734375, -0.00933837890625, 0.0031223297119140625, -0.0232696533203125, 0.06878662109375, -0.08819580078125, 0.01131439208984375, -0.05059814453125, 0.076171875, -0.0158843994140625, 0.00830078125, -0.0084991455078125, 0.063232421875, -0.005229949951171875, -0.022979736328125, 0.0115509033203125, -0.09063720703125, -0.025665283203125, 0.0166015625, -0.040313720703125, 0.0127716064453125, -0.0220184326171875, 0.03509521484375, 0.011688232421875, 0.01141357421875, 0.033905029296875, 0.01244354248046875, 0.018707275390625, 0.0020809173583984375, 0.0689697265625, 0.02392578125, -0.01306915283203125, 0.06414794921875, -0.0181121826171875, -0.02435302734375, 0.005535125732421875, -0.00830841064453125, 0.027740478515625, 0.02752685546875, 0.01537322998046875, 0.007404327392578125, 0.01141357421875, -0.00768280029296875, 0.044891357421875, -0.0017385482788085938, -0.030029296875, -0.00823974609375, 0.0125579833984375, -0.02471923828125, -0.036468505859375, 0.052581787109375, -0.007030487060546875, -0.007007598876953125, -0.0369873046875, -0.12188720703125, -0.0079345703125, -0.032745361328125, 0.0189361572265625, -0.0027980804443359375, 0.01175689697265625, 0.0178070068359375, -0.0025482177734375, -0.021392822265625, -0.006866455078125, -0.0294189453125, 0.00047016143798828125, -0.02960205078125, 0.07244873046875, -0.005245208740234375, 0.0433349609375, -0.0081329345703125, -0.04547119140625, 0.0212860107421875, -0.01102447509765625, 0.00939178466796875, -0.0308990478515625, -0.0146636962890625, -0.0181732177734375, -0.035125732421875, 0.0031757354736328125, -0.022613525390625, 0.0465087890625, 0.04547119140625, 0.033843994140625, -0.021697998046875, -0.0293731689453125, -0.043487548828125, -0.09893798828125, 0.004734039306640625, 0.07061767578125, 0.016387939453125, 0.0165557861328125, -0.00786590576171875, 0.0286407470703125, 0.042327880859375, -0.046630859375, -0.01483917236328125, 0.0174102783203125, 0.016937255859375, 0.053863525390625, 0.0267791748046875, -0.00507354736328125, -0.00994873046875, -0.042388916015625, -0.004344940185546875, 0.016326904296875, -0.0244140625, 0.0136260986328125, 0.03173828125, -0.0263671875, -0.0180206298828125, -0.0657958984375, 0.006561279296875, -0.04827880859375, 0.0225067138671875, -0.03070068359375, 0.018951416015625, 0.002685546875, 0.019378662109375, -0.029449462890625, 0.0101470947265625, -0.04150390625, 0.0103607177734375, 0.015380859375, 0.0028781890869140625, 0.0247802734375, -0.0212860107421875, 0.00861358642578125, 0.006946563720703125, 0.004550933837890625, -0.02691650390625, -0.0269317626953125, -0.004108428955078125, -0.0093994140625, 0.0157470703125, 0.00878143310546875, 0.032928466796875, -0.01568603515625, 0.01546478271484375, -0.0121917724609375, 0.01129150390625, 0.005718231201171875, -0.0192413330078125, 0.039459228515625, 0.0204620361328125, -0.032379150390625, 0.035430908203125, -0.040008544921875, 0.0361328125, -0.0205535888671875, 0.054046630859375, 0.0732421875, -0.01398468017578125, 0.0207366943359375, 0.0013103485107421875, 0.06512451171875, 0.033172607421875, -0.01035308837890625, 0.00991058349609375, 0.0179290771484375, -0.042724609375, 0.01412200927734375, 0.0190887451171875, 0.02325439453125, -0.0128326416015625, -0.0218963623046875, -0.008941650390625, 0.016998291015625, -0.041839599609375, -0.02557373046875, -0.0723876953125, -0.0628662109375, 0.00827789306640625, 0.006191253662109375, -0.01446533203125, 0.0201263427734375, 0.029144287109375, 0.02459716796875, -0.003398895263671875, -0.03802490234375, -0.02490234375, -0.0404052734375, -0.047393798828125, -0.004119873046875, 0.00566864013671875, 0.0229949951171875, -0.0019283294677734375, 0.042236328125, -0.01500701904296875, -0.080078125, -0.052276611328125, -0.0204620361328125, -0.0299530029296875, -0.03704833984375, -0.004734039306640625, 0.01629638671875, -0.005462646484375, -0.0006732940673828125, 0.031036376953125, 0.00836944580078125, -0.024017333984375, -0.016143798828125, 0.0269622802734375, 0.0194091796875, 0.047943115234375, -0.03741455078125, -0.04412841796875, 0.0806884765625, 0.016448974609375, -0.0084381103515625, 0.01373291015625, -0.00887298583984375, -0.03741455078125, -0.03582763671875, 0.030670166015625, -0.018829345703125, -0.026458740234375, -0.019561767578125, 0.03173828125, 0.0200042724609375, -0.01206207275390625, 0.0012369155883789062, 0.0089263916015625, 0.0027256011962890625, 0.0235748291015625, -0.0139007568359375, -0.0159149169921875, -0.044525146484375, 0.0258636474609375, -0.032135009765625, -0.020965576171875, -0.04168701171875, 0.030914306640625, -0.0380859375, -0.0030803680419921875, 0.0171661376953125, -0.0130767822265625, 0.03045654296875, -0.022064208984375, -0.0108489990234375, -0.029205322265625, 0.039520263671875, -0.04888916015625, -0.0123138427734375, 0.00678253173828125, 0.021484375, -0.040130615234375, -0.048553466796875, -0.0487060546875, -0.0176849365234375, 0.0282440185546875, -0.006908416748046875, 0.001155853271484375, 0.0008549690246582031, -0.054840087890625, 0.049224853515625, 0.0039215087890625, 0.01800537109375, 0.0191650390625, -0.03472900390625, 0.01329803466796875, -0.009735107421875, -0.017425537109375, -0.02569580078125, -0.00589752197265625, -0.0389404296875, -0.06683349609375, -0.01094818115234375, -0.0185546875, 0.06256103515625, 0.0013408660888671875, 0.003692626953125, -0.02313232421875, 0.04022216796875, -0.00928497314453125, 0.057464599609375, -0.024322509765625, -0.01544189453125, 0.022430419921875, 0.0261383056640625, 0.0005865097045898438, 0.006595611572265625, 0.0218963623046875, -0.0159454345703125, -0.043060302734375, -0.08209228515625, -0.07427978515625, -0.047637939453125, -0.0141143798828125, -0.031707763671875, -0.054656982421875, -0.03009033203125, -0.04986572265625, -0.006839752197265625, 0.0022106170654296875, -0.023529052734375, -0.03228759765625, -0.0706787109375, 0.0203399658203125, -0.0170135498046875, -0.00431060791015625, 0.01104736328125, 0.053436279296875, 0.011871337890625, -0.007755279541015625, -0.018524169921875, -0.0287933349609375, 0.013885498046875, 0.0394287109375, 0.04058837890625, 0.0255889892578125, 0.005352020263671875, -0.0206451416015625, 0.015899658203125, -0.0305328369140625, -0.01467132568359375, 0.033782958984375, 0.0003352165222167969, -0.018280029296875, -0.0093841552734375, -0.0361328125, 0.050933837890625, -0.007427215576171875, -0.035369873046875, 0.024810791015625, -0.01678466796875, -0.0066986083984375, -0.017242431640625, 0.0289459228515625, -0.00775909423828125, -0.0264434814453125, 0.00142669677734375, -0.053466796875, 0.060882568359375, 0.0216522216796875, -0.0014553070068359375, 0.028778076171875, 0.026641845703125, -0.0189361572265625, -0.00936126708984375, -0.00933074951171875, -0.0206756591796875, 0.01065826416015625, -0.0160064697265625, -0.03155517578125, 0.0021877288818359375, -0.0225982666015625, 0.076904296875, 0.0158233642578125, -0.032958984375, 0.01287078857421875, -0.02056884765625, 0.008392333984375, 0.005550384521484375, 0.0260009765625, 0.004032135009765625, -0.01088714599609375, 0.0014429092407226562, 0.01044464111328125, 0.01407623291015625, -0.01342010498046875, -0.0218658447265625, -0.035614013671875, -0.01219940185546875, -0.0184326171875, 0.0025177001953125, 0.00644683837890625, -0.03265380859375, -0.0010671615600585938, 0.0037403106689453125, 0.0587158203125, 0.06036376953125, -0.0152740478515625, 0.00847625732421875, 0.056610107421875, -0.031494140625, -0.01479339599609375, -0.0107269287109375, -0.03662109375, -0.040252685546875, 0.0283966064453125, 0.04949951171875, 0.0396728515625, 0.0249786376953125, -0.02691650390625, -0.0001341104507446289, -0.005924224853515625, -0.00357818603515625, -0.004215240478515625, -0.054840087890625, 0.025054931640625, 0.0418701171875, -0.0212554931640625, -0.0312042236328125, -0.000865936279296875, 0.0024814605712890625, -0.0183868408203125, 0.0128173828125, -0.03326416015625, 0.0038166046142578125, -0.0228729248046875, -0.0165557861328125, 0.04034423828125, -0.002471923828125, -0.0055999755859375, -0.04241943359375, -0.0025997161865234375, -0.030487060546875, -0.0124664306640625, 0.07684326171875, -0.016510009765625, -0.0286407470703125, -0.024871826171875, 0.031585693359375, -0.0274658203125, -0.0097198486328125, 0.08270263671875, 0.045074462890625, -0.050384521484375, -0.01336669921875, -0.0606689453125, -0.0209808349609375, -0.043701171875, -0.0285491943359375, -0.0587158203125, 0.01371002197265625, 0.01065826416015625, 0.019134521484375, -0.031341552734375, -0.049041748046875, -0.034820556640625, 0.033966064453125, 0.043182373046875, 0.057098388671875, -0.026397705078125, 0.04595947265625, 0.006534576416015625, 0.045379638671875, 0.01319122314453125, 0.0408935546875, 0.0173492431640625, -0.037261962890625, 0.01393890380859375, -0.0010623931884765625, -0.01160430908203125, -0.0195159912109375, -0.0128936767578125, -0.019561767578125, 0.03228759765625, -0.005092620849609375, -0.005584716796875, -0.0518798828125, -0.001216888427734375, -0.0279998779296875, 0.053131103515625, -0.0665283203125, -0.061187744140625, 0.01380157470703125, -0.040679931640625, 0.0137939453125, 0.006649017333984375, -0.0211944580078125, 0.038299560546875, -0.01496124267578125, 0.0263824462890625, 0.029998779296875, 0.00936126708984375, -0.013031005859375, 0.01050567626953125, -0.029632568359375, 0.022430419921875, 0.0178680419921875, 0.0218353271484375, 0.043548583984375, -0.0017547607421875, -0.035614013671875, 0.037445068359375, -0.018341064453125, -0.0295257568359375, 0.0180816650390625, -0.041595458984375, 0.005157470703125, 0.032928466796875, 0.08624267578125, 0.0908203125, -0.10382080078125, -0.0016183853149414062, 0.01277923583984375, -0.03564453125, 0.0019502639770507812, -0.010040283203125, -0.00336456298828125, -0.035186767578125, 0.047821044921875, -0.0291290283203125, -0.0099334716796875, 0.02618408203125, -0.028778076171875, -0.0005135536193847656, -0.040771484375, 0.0579833984375, 0.01299285888671875, 0.00127410888671875, 0.0394287109375, 0.0007929801940917969, 0.06585693359375, -0.0161590576171875, -0.01488494873046875, 0.046173095703125, -0.04180908203125, -0.07464599609375, 0.00804901123046875, 0.0023288726806640625, -0.005695343017578125, -0.00943756103515625, 0.0161895751953125, 0.0077056884765625, 0.048309326171875, -0.011444091796875, -0.0010976791381835938, 0.0382080078125, -0.0116424560546875, -0.04742431640625, -0.021942138671875, 0.0218658447265625, 0.039581298828125, -0.030487060546875, 0.03192138671875, -0.0196533203125, -0.02203369140625, -0.003406524658203125, 0.00920867919921875, 0.060943603515625, -0.027557373046875, -0.0162506103515625, 0.0251007080078125, -0.009979248046875, -0.0014238357543945312, 0.0123291015625, -0.07891845703125, -0.052490234375, -0.061798095703125, -0.031585693359375, -0.11505126953125, 0.043487548828125, 0.01116943359375, -0.10003662109375, 0.06292724609375, 0.0146484375, 0.06317138671875, -0.0051422119140625, 0.0076141357421875, -0.02362060546875, -0.03033447265625, -0.05072021484375, 0.050567626953125, -0.0228118896484375, 0.09051513671875, -0.059051513671875, -0.00811767578125, 0.0193634033203125, 0.036895751953125, 0.011199951171875, 0.01320648193359375, -0.0302886962890625, -0.0195159912109375, -0.013885498046875, 0.0055389404296875, -0.0077056884765625, 0.053619384765625, 0.0159454345703125, -0.031280517578125, -0.011871337890625, 0.036041259765625, 0.045623779296875, -0.044403076171875, -0.032196044921875, 0.025726318359375, -0.0017375946044921875, -0.0225830078125, -0.02960205078125, 0.0323486328125, -0.0194091796875, -0.0024013519287109375, -0.00433349609375, 0.030242919921875, -0.02362060546875, 0.027313232421875, 0.0023059844970703125, -0.007007598876953125, 0.01812744140625, -0.0396728515625, 0.041778564453125, 0.00762939453125, -0.0036029815673828125, 0.0183868408203125, 0.01445770263671875, -0.03973388671875, 0.02337646484375, -0.004428863525390625, 0.035675048828125, -0.01305389404296875, 0.016632080078125, 0.0273895263671875, 0.0235595703125, -0.052734375, -0.042083740234375, 0.0496826171875, 0.054473876953125, -0.01296234130859375, 0.0210723876953125, 0.0125885009765625, 0.01751708984375, -0.00556182861328125, -0.047027587890625, -0.01251220703125, 0.03851318359375, 0.065673828125, -0.01922607421875, 0.007495880126953125, 0.00470733642578125, 0.0008525848388671875, -0.0118560791015625, -0.003261566162109375, 0.0144500732421875, 0.02435302734375, -0.0208282470703125, 0.020538330078125, 0.0019626617431640625, -0.01462554931640625, -0.01151275634765625, 0.0374755859375, 0.037353515625, 0.0191192626953125, -0.01116943359375, 0.046722412109375, -0.00814056396484375, 0.00850677490234375, -0.0560302734375, -0.103515625, 0.0249176025390625, 0.036956787109375, 0.042724609375, 0.0207977294921875, 0.04901123046875, 0.01751708984375, -0.025177001953125, -0.0012302398681640625, 0.007320404052734375, -0.0174560546875, -0.01404571533203125, -0.024383544921875, -0.02392578125, -0.0136566162109375, -0.0244598388671875, -0.0189666748046875, 0.03515625, -0.0175323486328125, 0.01180267333984375, -0.0095672607421875, 0.02203369140625, -0.02313232421875, 0.0110626220703125, -0.0008525848388671875, -0.0204010009765625, 0.0209808349609375, -0.06927490234375, -0.0175323486328125, -0.035003662109375, -0.024566650390625, 0.027587890625, 0.047332763671875, -0.0052642822265625, -0.006237030029296875, -0.006824493408203125, -0.0264434814453125, 0.024932861328125, -0.0028400421142578125, 0.01432037353515625, 0.0221710205078125, -0.0031299591064453125, -0.0052642822265625, -0.015411376953125, -0.007213592529296875, 0.0282135009765625, 0.031219482421875, -0.0153350830078125, 0.07696533203125, -0.0338134765625, 0.007160186767578125, 0.01288604736328125, 0.0213165283203125, -0.0246429443359375, -0.028106689453125, 0.055328369140625, -0.026824951171875, -0.01174163818359375, 0.00855255126953125, 0.00925445556640625, 0.06170654296875, 0.032379150390625, -0.002239227294921875, 0.0286865234375, 0.0063323974609375, -0.00347137451171875, -0.01029205322265625, -0.007694244384765625, -0.0282135009765625, -0.0207366943359375, 0.00473785400390625, 0.017425537109375, 0.005107879638671875, -0.007659912109375, -0.01467132568359375, 0.020294189453125, -0.0292205810546875, -0.01132965087890625, -0.024200439453125, 0.006305694580078125, -0.059478759765625, 0.006072998046875, -0.005207061767578125, -0.01477813720703125, -0.0106048583984375, -0.0114288330078125, -0.0438232421875, 0.03143310546875, -0.0243072509765625, 0.0121002197265625, -0.02001953125, 0.0262298583984375, -0.002803802490234375, 0.033905029296875, 0.007724761962890625, -0.0060577392578125, -0.016021728515625, -0.01174163818359375, 0.007122039794921875, 0.034210205078125, -0.0218353271484375, -0.009307861328125, -0.0203704833984375, -0.003307342529296875, -0.01192474365234375, -0.021728515625, -0.050689697265625, 0.0074310302734375, -0.004863739013671875, -0.0253143310546875, -0.01366424560546875, 0.032623291015625, -0.04180908203125, 0.00818634033203125, -0.04803466796875, -0.0364990234375, 0.0103607177734375, 0.0160675048828125, -0.027069091796875, -0.0084991455078125, -0.026214599609375, -0.0014553070068359375, -0.0190887451171875, 0.0236968994140625, 0.0308837890625, -0.01132965087890625, -0.01517486572265625, 0.028839111328125, 0.01349639892578125, 0.060394287109375, 0.0018243789672851562, -0.03631591796875, -0.0322265625, 0.02044677734375, 0.038604736328125, -0.0046539306640625, -0.0257568359375, 0.029571533203125, 0.0003237724304199219, 0.006328582763671875, 0.020843505859375, 0.05078125, -0.025604248046875, -0.09466552734375, 0.06268310546875, -0.02685546875, -0.046539306640625, -0.033599853515625, -0.03802490234375, -0.0216064453125, 0.0031299591064453125, -0.017547607421875, -0.00774383544921875, -0.0157318115234375, 0.057220458984375, -0.0012607574462890625, 0.018035888671875, 0.001094818115234375, 0.004901885986328125, -0.034698486328125, 0.0020503997802734375, -0.02569580078125, -0.0289764404296875, 0.00943756103515625, -0.0030231475830078125, 0.041229248046875, 0.04656982421875, -0.006381988525390625, 0.034637451171875, 0.01666259765625, -0.0283660888671875, -0.005496978759765625, 0.010772705078125, -0.02984619140625, -0.0248260498046875, 0.046051025390625, 0.06280517578125, 0.01439666748046875, -0.007328033447265625, 0.0189056396484375, -0.041900634765625, -0.038909912109375, 0.033599853515625, 0.0148468017578125, -0.033660888671875, 0.04217529296875, 0.047119140625, -0.034149169921875, -0.004932403564453125, 0.031494140625, -0.052642822265625, 0.0108642578125, 0.00577545166015625, -0.0260009765625, -0.05267333984375, -0.0240478515625, 0.045318603515625, -0.040985107421875, -0.0283355712890625, -0.0018968582153320312, 0.007770538330078125, -0.01181793212890625, 0.00994110107421875, 0.038177490234375, 0.019989013671875, -0.0726318359375, 0.00501251220703125, 0.00832366943359375, 0.05047607421875, -0.060150146484375, -0.046783447265625, 0.018310546875, 0.03521728515625, -0.0257568359375, 0.04022216796875, 0.044189453125, 0.04376220703125, 0.0019216537475585938, 0.0120391845703125, -0.03143310546875, 0.0037326812744140625, -0.043853759765625, 0.041229248046875, 0.00824737548828125, 0.0110321044921875, 0.056304931640625, -0.00806427001953125, -0.00902557373046875, 0.00862884521484375, 0.01125335693359375, -0.055633544921875, 0.016632080078125, 0.022125244140625, 0.032073974609375, 0.01505279541015625 ]
79d53e8c93d5bfa046a1b8a40bd456753cc24c02
Wordpress Stackexchange Q: How to add/assign or change featured image in post programmatically? I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = wp_insert_post( $my_post ); wp_set_object_terms( $id, $cat_ids, 'category' ); and I would like my next step to be inserting $image (file path or URI) as featured image. How? Thanks in advance. A: Try using set_post_thumbnail(). Assuming you already know how to determine the $post (ID or object) for which to set the featured image, and the $thumbnail_id (ID) of the image that you want to set as the featured image: set_post_thumbnail( $post, $thumbnail_id );
Q: How to add/assign or change featured image in post programmatically? I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = wp_insert_post( $my_post ); wp_set_object_terms( $id, $cat_ids, 'category' ); and I would like my next step to be inserting $image (file path or URI) as featured image. How? Thanks in advance. A: Try using set_post_thumbnail(). Assuming you already know how to determine the $post (ID or object) for which to set the featured image, and the $thumbnail_id (ID) of the image that you want to set as the featured image: set_post_thumbnail( $post, $thumbnail_id ); A: set_post_thumbnail will allow to set 1 attachment from id to a post of provided id. If you don't have the attachment id or want to do it directly from url, you will have to create the attachment first, see wp_insert_attachment you may also upload the image using media_sideload_image A: You can use wp_insert_attachment() and wp_generate_attachment_metadata() to make the image an attachment to the post. And you make it a featured image by using set_post_thumbnail(). (it's really just a custom field _thumbnail_id. Something like: $attach_id = wp_insert_attachment( $attachment, $filename, $post_id ); $attach_data = wp_generate_attachment_metadata( $attach_id, $filename ); wp_update_attachment_metadata( $attach_id, $attach_data ); set_post_thumbnail( $post_id, $attach_id ); A: Set Featured images programmatically . function setFeaturedImages() { $base = dirname(__FILE__); $imgfile= $base.DS.'images'.DS.'14'.DS.'Ascot_Anthracite-Grey-1.jpg'; $filename = basename($imgfile); $upload_file = wp_upload_bits($filename, null, file_get_contents($imgfile)); if (!$upload_file['error']) { $wp_filetype = wp_check_filetype($filename, null ); $attachment = array( 'post_mime_type' => $wp_filetype['type'], 'post_parent' => 0, 'post_title' => preg_replace('/\.[^.]+$/', '', $filename), 'post_content' => '', 'post_status' => 'inherit' ); $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], 209 ); if (!is_wp_error($attachment_id)) { require_once(ABSPATH . "wp-admin" . '/includes/image.php'); $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] ); wp_update_attachment_metadata( $attachment_id, $attachment_data ); } set_post_thumbnail( 209, $attachment_id ); } } Please refer the tutorial for detailed explanation. http://www.pearlbells.co.uk/insert-udpate-wordpress-post-programmatically/
wordpress
{ "language": "en", "length": 313, "provenance": "stackexchange_00019.jsonl.gz:425509", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71615" }
[ 0.0679931640625, -0.0136566162109375, 0.039154052734375, -0.0032901763916015625, 0.01715087890625, -0.033935546875, 0.09796142578125, -0.041748046875, 0.0217132568359375, 0.0058441162109375, -0.02032470703125, -0.01461029052734375, -0.018463134765625, -0.02227783203125, -0.006107330322265625, -0.027801513671875, 0.033599853515625, -0.007183074951171875, 0.03265380859375, 0.004383087158203125, 0.00916290283203125, 0.0250701904296875, 0.019012451171875, 0.030426025390625, 0.0167083740234375, 0.0226898193359375, 0.029815673828125, -0.034423828125, -0.0006351470947265625, -0.01544952392578125, 0.01507568359375, 0.018890380859375, 0.0247802734375, 0.0070953369140625, -0.012725830078125, 0.01457977294921875, 0.0141143798828125, -0.0117034912109375, -0.014617919921875, 0.041107177734375, 0.005191802978515625, 0.017181396484375, 0.0111083984375, 0.01227569580078125, -0.01556396484375, -0.019622802734375, -0.024658203125, -0.04595947265625, 0.00847625732421875, -0.026214599609375, 0.001667022705078125, 0.0274810791015625, 0.023773193359375, -0.06781005859375, -0.00504302978515625, 0.00579071044921875, -0.039398193359375, 0.03277587890625, 0.05438232421875, -0.0040435791015625, -0.047637939453125, -0.039398193359375, 0.029052734375, -0.039215087890625, 0.042755126953125, -0.006847381591796875, 0.01160430908203125, 0.0237274169921875, -0.050140380859375, 0.02484130859375, 0.041259765625, -0.045806884765625, -0.011962890625, -0.0258941650390625, -0.0082550048828125, 0.0238189697265625, 0.0015687942504882812, -0.0092620849609375, 0.003307342529296875, 0.004058837890625, 0.056060791015625, -0.004253387451171875, 0.051544189453125, -0.00537109375, 0.0100860595703125, 0.00688934326171875, 0.005054473876953125, -0.017578125, -0.033538818359375, -0.0199432373046875, -0.01416778564453125, -0.01338958740234375, -0.0579833984375, 0.03277587890625, 0.0031280517578125, -0.004817962646484375, 0.0303192138671875, 0.036529541015625, 0.0017719268798828125, 0.0235443115234375, 0.004974365234375, -0.053680419921875, 0.0546875, -0.04327392578125, 0.006450653076171875, 0.00865936279296875, -0.0139923095703125, -0.05609130859375, 0.003795623779296875, 0.02276611328125, -0.02001953125, 0.00739288330078125, 0.0325927734375, 0.01194000244140625, -0.050537109375, -0.0017032623291015625, 0.0049591064453125, -0.01122283935546875, -0.004116058349609375, 0.0033111572265625, 0.0171051025390625, 0.020721435546875, 0.007045745849609375, -0.0111083984375, -0.003086090087890625, -0.00455474853515625, -0.035003662109375, -0.0242919921875, -0.035614013671875, 0.034759521484375, -0.05181884765625, 0.0176849365234375, 0.11859130859375, 0.033782958984375, 0.020263671875, -0.01934814453125, -0.0000597834587097168, -0.050506591796875, -0.0128326416015625, 0.0166168212890625, -0.006931304931640625, -0.0180816650390625, 0.043731689453125, -0.01052093505859375, 0.02288818359375, 0.028839111328125, 0.006221771240234375, 0.015228271484375, 0.013641357421875, -0.06463623046875, 0.0543212890625, -0.04083251953125, -0.03759765625, 0.04693603515625, 0.06549072265625, 0.00710296630859375, 0.07806396484375, -0.033294677734375, 0.047882080078125, -0.026824951171875, 0.03485107421875, 0.005924224853515625, 0.01800537109375, 0.02667236328125, 0.0202178955078125, -0.0117950439453125, -0.043701171875, 0.005298614501953125, 0.02081298828125, 0.01885986328125, -0.017181396484375, 0.002269744873046875, -0.0061798095703125, -0.0149078369140625, -0.0128631591796875, 0.005615234375, -0.0250091552734375, -0.00669097900390625, 0.0433349609375, 0.0531005859375, 0.01264190673828125, -0.0118408203125, 0.06695556640625, -0.00839996337890625, -0.0282135009765625, 0.023773193359375, 0.00377655029296875, 0.037994384765625, 0.005008697509765625, 0.0093994140625, 0.0217437744140625, 0.012847900390625, -0.022735595703125, -0.01165771484375, 0.03369140625, -0.0174560546875, -0.0279693603515625, -0.036285400390625, 0.003978729248046875, -0.00241851806640625, -0.00032830238342285156, -0.00921630859375, 0.015838623046875, 0.01824951171875, -0.01393890380859375, 0.0045318603515625, -0.0138702392578125, 0.01055145263671875, -0.01910400390625, 0.013153076171875, 0.015106201171875, 0.0036067962646484375, 0.0130462646484375, -0.05792236328125, -0.01245880126953125, 0.028076171875, -0.006107330322265625, -0.0180511474609375, 0.0047149658203125, 0.0460205078125, -0.013519287109375, 0.01776123046875, -0.0352783203125, 0.0042724609375, 0.06378173828125, 0.007289886474609375, -0.024383544921875, -0.025787353515625, 0.0175933837890625, 0.0096588134765625, -0.08197021484375, 0.034423828125, -0.017608642578125, -0.0267333984375, -0.0284271240234375, -0.0137786865234375, 0.00208282470703125, -0.0750732421875, 0.01593017578125, 0.05859375, 0.038330078125, 0.0175628662109375, 0.01306915283203125, 0.0239715576171875, 0.0753173828125, 0.042938232421875, 0.04595947265625, -0.0207061767578125, 0.014129638671875, 0.0204010009765625, -0.0131988525390625, -0.0017871856689453125, 0.032440185546875, -0.088134765625, 0.03314208984375, 0.045379638671875, -0.003665924072265625, 0.010589599609375, -0.0302276611328125, 0.020538330078125, 0.008209228515625, 0.0164947509765625, -0.0051727294921875, -0.005916595458984375, 0.0350341796875, 0.022247314453125, 0.03350830078125, 0.0227508544921875, -0.0206451416015625, 0.020782470703125, 0.0068206787109375, -0.023040771484375, 0.01200103759765625, 0.0150299072265625, -0.0301361083984375, -0.0192413330078125, -0.024993896484375, 0.0079193115234375, 0.0192413330078125, -0.01153564453125, -0.00682830810546875, -0.018463134765625, 0.0099639892578125, 0.00028204917907714844, 0.005931854248046875, -0.057281494140625, 0.0273590087890625, 0.0178070068359375, -0.023956298828125, -0.0167388916015625, 0.019073486328125, 0.0307769775390625, -0.0179443359375, 0.0171356201171875, -0.01325225830078125, 0.00507354736328125, 0.00371551513671875, -0.037628173828125, 0.03411865234375, -0.038238525390625, 0.0136260986328125, 0.05072021484375, -0.0225067138671875, 0.01558685302734375, 0.00656890869140625, 0.00010687112808227539, -0.0123291015625, 0.026031494140625, 0.004718780517578125, -0.0171966552734375, -0.032379150390625, 0.0261077880859375, 0.039520263671875, 0.07525634765625, -0.014404296875, -0.03656005859375, 0.00925445556640625, 0.05511474609375, -0.07232666015625, -0.10015869140625, -0.020111083984375, -0.03778076171875, -0.01016998291015625, 0.0188140869140625, -0.02032470703125, -0.003322601318359375, 0.033172607421875, -0.0017118453979492188, -0.0212249755859375, 0.0008153915405273438, -0.005435943603515625, -0.025543212890625, -0.0273590087890625, -0.0287322998046875, -0.00909423828125, -0.002246856689453125, 0.0008101463317871094, 0.05694580078125, 0.012298583984375, -0.0197601318359375, 0.00045180320739746094, 0.040618896484375, -0.01812744140625, -0.01171112060546875, 0.0308074951171875, -0.022613525390625, 0.0003566741943359375, 0.0037059783935546875, -0.0027008056640625, 0.05047607421875, -0.03955078125, 0.0082244873046875, -0.04290771484375, 0.0017404556274414062, -0.023468017578125, 0.01424407958984375, 0.05548095703125, 0.0139312744140625, 0.013946533203125, -0.0283050537109375, -0.00823211669921875, -0.0186767578125, -0.04168701171875, -0.038177490234375, -0.0021915435791015625, 0.025604248046875, -0.0296478271484375, 0.018096923828125, -0.01125335693359375, -0.015777587890625, 0.013458251953125, -0.043182373046875, 0.045379638671875, -0.00572967529296875, -0.0220489501953125, -0.021240234375, -0.00177001953125, -0.006092071533203125, 0.0179443359375, 0.0009660720825195312, 0.05419921875, -0.0171661376953125, 0.05419921875, -0.052520751953125, -0.03466796875, 0.0168304443359375, -0.0311279296875, 0.01363372802734375, -0.0013828277587890625, -0.0179595947265625, 0.023834228515625, 0.07342529296875, -0.0242156982421875, -0.018951416015625, -0.0267181396484375, -0.0171051025390625, -0.004791259765625, 0.0025634765625, -0.03582763671875, 0.00029015541076660156, -0.04998779296875, -0.00917816162109375, -0.0005159378051757812, -0.03955078125, -0.01324462890625, 0.0011987686157226562, -0.062286376953125, -0.01480865478515625, 0.039398193359375, -0.041259765625, 0.0029201507568359375, 0.03790283203125, -0.023162841796875, 0.0219879150390625, -0.0396728515625, -0.0206298828125, -0.10589599609375, 0.0006475448608398438, -0.01192474365234375, 0.050506591796875, -0.010986328125, -0.0009908676147460938, -0.053253173828125, 0.034088134765625, -0.0031795501708984375, 0.015960693359375, 0.01259613037109375, 0.0277862548828125, 0.0010747909545898438, -0.0026187896728515625, 0.0202789306640625, -0.0301513671875, -0.034210205078125, -0.040435791015625, -0.022186279296875, 0.01108551025390625, 0.0026264190673828125, 0.025787353515625, 0.019500732421875, 0.0026607513427734375, -0.0030727386474609375, 0.002819061279296875, 0.029754638671875, 0.06964111328125, 0.0144500732421875, -0.0177001953125, -0.046905517578125, -0.0169830322265625, 0.045745849609375, -0.030609130859375, 0.01178741455078125, 0.014556884765625, 0.106689453125, 0.00627899169921875, -0.0081787109375, -0.09930419921875, 0.0224151611328125, 0.028564453125, 0.043548583984375, 0.010650634765625, -0.01148223876953125, -0.0136871337890625, 0.0196533203125, 0.0269775390625, -0.0048065185546875, -0.01108551025390625, 0.044952392578125, 0.0187225341796875, 0.0023040771484375, -0.0010404586791992188, 0.018218994140625, 0.0008840560913085938, -0.01934814453125, -0.039947509765625, 0.0022335052490234375, -0.032135009765625, 0.03009033203125, -0.004642486572265625, 0.028839111328125, -0.042999267578125, -0.0113677978515625, -0.0034618377685546875, 0.0216064453125, 0.0290069580078125, 0.023406982421875, 0.002384185791015625, -0.00916290283203125, 0.002384185791015625, -0.00836181640625, 0.0293426513671875, -0.039337158203125, 0.0672607421875, 0.0237579345703125, 0.004138946533203125, 0.0270233154296875, 0.008087158203125, 0.0003445148468017578, 0.0163726806640625, -0.00992584228515625, -0.033660888671875, -0.06634521484375, -0.007389068603515625, 0.0297088623046875, -0.0035266876220703125, -0.020660400390625, 0.05169677734375, 0.0274810791015625, -0.0014715194702148438, -0.0000635981559753418, -0.052764892578125, -0.00536346435546875, -0.047119140625, 0.0012521743774414062, 0.0165557861328125, -0.0201568603515625, 0.01861572265625, 0.04229736328125, 0.0138397216796875, 0.01824951171875, -0.0184478759765625, 0.054168701171875, 0.05194091796875, 0.0264434814453125, -0.0096588134765625, 0.028717041015625, -0.0234375, 0.01349639892578125, 0.0011243820190429688, -0.00334930419921875, 0.0263824462890625, -0.0086212158203125, 0.033935546875, -0.0567626953125, -0.04229736328125, 0.045013427734375, -0.05242919921875, -0.018096923828125, -0.016326904296875, -0.04803466796875, -0.0300140380859375, -0.00846099853515625, 0.018463134765625, 0.0286712646484375, 0.0051422119140625, -0.01526641845703125, -0.0194549560546875, -0.020965576171875, 0.0012369155883789062, -0.001064300537109375, -0.01702880859375, 0.0066070556640625, -0.007213592529296875, -0.036712646484375, -0.026092529296875, -0.0238800048828125, 0.018218994140625, 0.00982666015625, -0.03131103515625, -0.040069580078125, 0.05206298828125, -0.0340576171875, 0.040008544921875, -0.006298065185546875, -0.0182037353515625, 0.01290130615234375, 0.01476287841796875, 0.0213623046875, 0.0016908645629882812, -0.033966064453125, 0.005558013916015625, -0.045654296875, 0.0019083023071289062, 0.059326171875, -0.007598876953125, -0.0303497314453125, -0.0440673828125, 0.0249786376953125, 0.033599853515625, -0.01020050048828125, -0.026885986328125, 0.01511383056640625, 0.01093292236328125, 0.006359100341796875, 0.067626953125, 0.0177459716796875, -0.017974853515625, -0.00887298583984375, 0.043670654296875, 0.002872467041015625, -0.03887939453125, -0.01103973388671875, -0.036407470703125, -0.059173583984375, -0.05963134765625, 0.05078125, 0.06256103515625, 0.006610870361328125, 0.028778076171875, 0.036529541015625, 0.043853759765625, 0.021942138671875, -0.0281219482421875, 0.0028400421142578125, -0.038421630859375, -0.0037631988525390625, -0.048187255859375, -0.010650634765625, -0.004314422607421875, -0.04534912109375, 0.011260986328125, 0.0160064697265625, 0.0248870849609375, 0.01129913330078125, -0.043121337890625, -0.0020351409912109375, 0.04248046875, -0.011932373046875, 0.00017714500427246094, 0.049072265625, 0.0212249755859375, 0.048614501953125, 0.00984954833984375, 0.02593994140625, -0.0016040802001953125, 0.0195770263671875, -0.0217742919921875, -0.006305694580078125, 0.041595458984375, 0.01081085205078125, -0.00537109375, 0.027587890625, -0.02337646484375, 0.01314544677734375, -0.004299163818359375, 0.039886474609375, 0.0023860931396484375, 0.0159759521484375, -0.00365447998046875, -0.0482177734375, 0.048828125, 0.024658203125, 0.01265716552734375, 0.02685546875, -0.0007977485656738281, -0.0195770263671875, -0.006622314453125, 0.0010137557983398438, 0.0005207061767578125, -0.021942138671875, 0.01126861572265625, -0.008209228515625, 0.01444244384765625, -0.0623779296875, -0.00860595703125, 0.045562744140625, -0.03143310546875, -0.0194244384765625, 0.01181793212890625, -0.0132598876953125, -0.00263214111328125, -0.02386474609375, 0.04144287109375, -0.020416259765625, 0.017669677734375, 0.04901123046875, 0.02484130859375, 0.0257415771484375, 0.04107666015625, 0.0290679931640625, 0.00777435302734375, 0.01343536376953125, -0.01441192626953125, 0.0171966552734375, 0.002475738525390625, 0.0099639892578125, 0.0262603759765625, -0.05908203125, 0.00850677490234375, -0.053131103515625, 0.05078125, -0.01442718505859375, -0.024169921875, 0.07379150390625, -0.03472900390625, -0.019989013671875, -0.004428863525390625, 0.039154052734375, 0.0104827880859375, -0.033355712890625, 0.0228424072265625, -0.0679931640625, -0.0269012451171875, -0.0013628005981445312, -0.01812744140625, -0.00687408447265625, -0.04443359375, -0.061676025390625, 0.1090087890625, -0.03265380859375, 0.0196075439453125, -0.01316070556640625, 0.055389404296875, 0.00699615478515625, 0.0156402587890625, -0.0241546630859375, 0.03173828125, -0.05975341796875, 0.051666259765625, -0.024261474609375, 0.025909423828125, 0.01436614990234375, -0.00606536865234375, 0.07928466796875, 0.0159149169921875, -0.0301971435546875, -0.01120758056640625, 0.054595947265625, 0.03631591796875, -0.005283355712890625, 0.0302886962890625, -0.031524658203125, 0.0009965896606445312, 0.0007719993591308594, -0.040679931640625, 0.00628662109375, -0.0088958740234375, -0.033203125, -0.006877899169921875, 0.0300750732421875, 0.050628662109375, 0.027313232421875, 0.008514404296875, -0.0374755859375, 0.02239990234375, 0.059967041015625, -0.029449462890625, 0.016204833984375, 0.040496826171875, 0.017425537109375, 0.015655517578125, 0.005413055419921875, -0.015655517578125, 0.047821044921875, -0.003643035888671875, 0.054351806640625, 0.00034618377685546875, 0.01523590087890625, 0.0279388427734375, 0.01129150390625, 0.0236663818359375, 0.04461669921875, -0.04010009765625, 0.056488037109375, 0.0280914306640625, 0.0202484130859375, -0.029876708984375, 0.006855010986328125, 0.0269317626953125, 0.061065673828125, -0.056610107421875, -0.0099029541015625, 0.0184478759765625, 0.02960205078125, 0.01468658447265625, -0.033843994140625, 0.01204681396484375, -0.0635986328125, -0.00514984130859375, -0.019683837890625, -0.0054779052734375, 0.03936767578125, 0.0212554931640625, 0.00815582275390625, -0.004329681396484375, -0.04388427734375, -0.0105438232421875, -0.00988006591796875, 0.01032257080078125, -0.0005044937133789062, 0.0106964111328125, -0.01039886474609375, 0.05474853515625, 0.006267547607421875, 0.0117950439453125, -0.01122283935546875, 0.0256195068359375, 0.030029296875, 0.015472412109375, -0.0120849609375, -0.0200042724609375, 0.0264129638671875, 0.0187835693359375, -0.00588226318359375, -0.004451751708984375, 0.041595458984375, 0.0174407958984375, -0.07708740234375, -0.026947021484375, 0.03680419921875, -0.03582763671875, -0.0218963623046875, -0.038726806640625, 0.00914764404296875, 0.017303466796875, -0.002971649169921875, 0.0175628662109375, 0.01479339599609375, 0.021484375, -0.020172119140625, 0.036773681640625, -0.01544952392578125, -0.0189056396484375, 0.02996826171875, -0.0269927978515625, 0.0833740234375, -0.0081939697265625, -0.11322021484375, -0.01019287109375, -0.037322998046875, -0.0802001953125, 0.0443115234375, 0.04229736328125, -0.0550537109375, 0.03436279296875, 0.00046825408935546875, 0.01479339599609375, 0.044281005859375, -0.056610107421875, -0.004314422607421875, -0.011383056640625, 0.0360107421875, -0.0094757080078125, -0.045257568359375, -0.02728271484375, -0.031982421875, 0.04315185546875, 0.036041259765625, 0.0230560302734375, 0.002574920654296875, 0.045166015625, -0.03485107421875, 0.022705078125, -0.06561279296875, -0.0250396728515625, 0.0289764404296875, -0.014312744140625, -0.0156402587890625, -0.00287628173828125, -0.0076446533203125, -0.003509521484375, 0.0364990234375, -0.00946044921875, -0.0122528076171875, -0.0284576416015625, 0.03448486328125, 0.0152740478515625, 0.03875732421875, -0.0367431640625, -0.01336669921875, -0.08111572265625, -0.051666259765625, 0.03302001953125, -0.0084991455078125, 0.0236358642578125, 0.03631591796875, 0.022735595703125, 0.0017681121826171875, 0.0369873046875, -0.021087646484375, 0.0552978515625, 0.052337646484375, -0.034942626953125, -0.036773681640625, -0.0166473388671875, -0.015899658203125, -0.0208892822265625, -0.00499725341796875, 0.050811767578125, -0.018402099609375, -0.031341552734375, -0.00331878662109375, 0.0169219970703125, 0.0261993408203125, -0.0198974609375, 0.0160064697265625, 0.00788116455078125, -0.0204925537109375, -0.0198516845703125, -0.0009708404541015625, -0.001621246337890625, -0.055084228515625, -0.0048370361328125, 0.01220703125, -0.0246429443359375, -0.00787353515625, -0.0127716064453125, 0.00426483154296875, 0.0182647705078125, 0.01451873779296875, -0.055694580078125, 0.0238800048828125, 0.0006055831909179688, 0.03814697265625, -0.006534576416015625, -0.045166015625, 0.018280029296875, 0.0601806640625, -0.05548095703125, -0.04547119140625, -0.0416259765625, -0.0217742919921875, -0.0704345703125, 0.04046630859375, 0.061065673828125, -0.036590576171875, -0.0089569091796875, 0.040863037109375, 0.0227508544921875, 0.095458984375, -0.055999755859375, -0.0298004150390625, -0.01041412353515625, -0.00019681453704833984, -0.018463134765625, -0.03338623046875, 0.045166015625, -0.08551025390625, -0.03912353515625, -0.0250701904296875, 0.026763916015625, 0.030487060546875, -0.02862548828125, -0.09039306640625, 0.01433563232421875, -0.021087646484375, -0.044525146484375, -0.02783203125, -0.0033817291259765625, -0.0223541259765625, 0.026153564453125, 0.01171112060546875, -0.0235443115234375, 0.00194549560546875, 0.03363037109375, -0.002437591552734375, 0.009857177734375, 0.05322265625, -0.0208892822265625, -0.00736236572265625, -0.0086669921875, 0.00909423828125, -0.0050506591796875, 0.0377197265625, -0.023040771484375, 0.0521240234375, 0.0279388427734375, -0.043670654296875, 0.00437164306640625, -0.00799560546875, -0.018402099609375, -0.05364990234375, -0.03955078125, -0.0198516845703125, 0.00666046142578125, 0.1309814453125, 0.028839111328125, 0.037261962890625, -0.044036865234375, 0.0028400421142578125, -0.052978515625, -0.0019369125366210938, 0.006378173828125, 0.00591278076171875, -0.053314208984375, 0.0015592575073242188, 0.0501708984375, -0.02777099609375, -0.006557464599609375, -0.0198211669921875, -0.0614013671875, 0.0020542144775390625, -0.031982421875, 0.01311492919921875, -0.049407958984375, 0.03717041015625, 0.036895751953125, -0.033966064453125, 0.00696563720703125, -0.01009368896484375, -0.0134124755859375, 0.024810791015625, -0.0127105712890625, 0.0116729736328125, 0.03277587890625, -0.02825927734375, 0.01386260986328125, 0.005168914794921875, -0.0140838623046875, -0.0204315185546875, 0.0162506103515625, -0.01192474365234375, 0.0224609375, -0.0007677078247070312, 0.0246429443359375, 0.0072784423828125, 0.0230560302734375, 0.007381439208984375, 0.0201416015625, -0.01461029052734375, -0.02587890625, -0.0263519287109375, 0.01885986328125, -0.04339599609375, 0.007656097412109375, -0.0138702392578125, -0.01355743408203125, 0.0109405517578125, 0.0243682861328125, -0.0129241943359375, 0.006580352783203125, -0.0032825469970703125, -0.018157958984375, -0.0159912109375, 0.0032329559326171875 ]
02e18af63fc89e013f425b1ec52aefeb04019fda
Wordpress Stackexchange Q: Add forward slash on categories url (serve one version of a url) How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove the category base using the "WP No Category Base" plugin but I need to add a forward slash on the category URL. Examples: www.example.com/es <- this is a category (needs a forward-slash '/') www.example.com/es/hola.html <- this is a post so, it's ok, no changes needed. The plugin Permalink Trailing Slash Fixer doesn't solve the problem here. A: Filter category_link so WordPress creates slashed URLs for categories, and redirect_canonical so it accepts those URLs: add_filter( 'category_link', 'wpse_71666_trailingslash_cat_url' ); add_filter( 'redirect_canonical', 'wpse_71666_trailingslash_cat_url', 20, 2 ); function wpse_71666_trailingslash_cat_url( $url, $request = '' ) { if ( 'category_link' === current_filter() ) return rtrim( $url, '/' ) . '/'; if ( "$url/" === $request and is_category() ) return $request; return $url; }
Q: Add forward slash on categories url (serve one version of a url) How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove the category base using the "WP No Category Base" plugin but I need to add a forward slash on the category URL. Examples: www.example.com/es <- this is a category (needs a forward-slash '/') www.example.com/es/hola.html <- this is a post so, it's ok, no changes needed. The plugin Permalink Trailing Slash Fixer doesn't solve the problem here. A: Filter category_link so WordPress creates slashed URLs for categories, and redirect_canonical so it accepts those URLs: add_filter( 'category_link', 'wpse_71666_trailingslash_cat_url' ); add_filter( 'redirect_canonical', 'wpse_71666_trailingslash_cat_url', 20, 2 ); function wpse_71666_trailingslash_cat_url( $url, $request = '' ) { if ( 'category_link' === current_filter() ) return rtrim( $url, '/' ) . '/'; if ( "$url/" === $request and is_category() ) return $request; return $url; } A: It's more convenient to use a wordpress plugin, a plugin called "Permalink Trailing Slash Fixer" can do the job, its main function is: Quickly add a trailing slash in the URLs if it's missing in the permalink structure. Single posts permalink are skipped .
wordpress
{ "language": "en", "length": 211, "provenance": "stackexchange_00019.jsonl.gz:425523", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71666" }
[ 0.07470703125, 0.031494140625, -0.03076171875, -0.0970458984375, 0.047698974609375, -0.026947021484375, 0.005413055419921875, -0.002349853515625, 0.00730133056640625, 0.00577545166015625, 0.034027099609375, -0.03125, 0.0018739700317382812, -0.079833984375, 0.020416259765625, -0.00310516357421875, 0.00832366943359375, 0.011077880859375, 0.022125244140625, -0.00936126708984375, 0.00826263427734375, -0.00991058349609375, 0.0135650634765625, 0.019195556640625, -0.015167236328125, -0.03179931640625, 0.07037353515625, -0.04730224609375, -0.01776123046875, -0.0596923828125, -0.005828857421875, 0.045989990234375, 0.018035888671875, 0.012969970703125, -0.007762908935546875, -0.004962921142578125, 0.021820068359375, -0.00049591064453125, -0.0037517547607421875, 0.0233917236328125, 0.031982421875, -0.0304107666015625, 0.001056671142578125, -0.00812530517578125, -0.004131317138671875, -0.0328369140625, 0.049591064453125, -0.037322998046875, -0.006603240966796875, 0.03485107421875, 0.0167388916015625, -0.005168914794921875, 0.01001739501953125, 0.007114410400390625, -0.010009765625, -0.0220947265625, -0.0021610260009765625, -0.01349639892578125, 0.0229339599609375, 0.018218994140625, -0.011474609375, 0.0015277862548828125, 0.00223541259765625, -0.03289794921875, -0.0189056396484375, -0.005352020263671875, 0.0293731689453125, 0.0156707763671875, -0.017242431640625, -0.02630615234375, 0.0111846923828125, -0.001739501953125, -0.02154541015625, 0.01067352294921875, -0.04339599609375, -0.009429931640625, 0.006290435791015625, -0.0203094482421875, 0.0229034423828125, 0.0161895751953125, -0.0147705078125, -0.005817413330078125, -0.0005865097045898438, -0.0290985107421875, 0.01454925537109375, 0.01177215576171875, -0.0162353515625, -0.0175018310546875, -0.053466796875, 0.005222320556640625, -0.0238189697265625, -0.047821044921875, -0.01468658447265625, -0.034515380859375, 0.003177642822265625, -0.032806396484375, 0.04156494140625, 0.034332275390625, -0.0008063316345214844, -0.0016002655029296875, 0.0155029296875, -0.042327880859375, 0.01033782958984375, -0.0285797119140625, 0.0164794921875, 0.0300750732421875, -0.0031375885009765625, 0.018646240234375, 0.0556640625, 0.01544952392578125, -0.0016078948974609375, 0.064453125, 0.014129638671875, 0.036712646484375, -0.04071044921875, -0.001445770263671875, -0.01459503173828125, -0.019012451171875, -0.051483154296875, 0.0167236328125, -0.040435791015625, 0.005512237548828125, 0.036376953125, -0.039398193359375, 0.01708984375, 0.01015472412109375, 0.01422119140625, -0.054962158203125, 0.023681640625, 0.0294647216796875, -0.02825927734375, 0.0165863037109375, 0.033111572265625, -0.01003265380859375, -0.01323699951171875, -0.0190582275390625, 0.0274505615234375, -0.04632568359375, -0.0238189697265625, 0.03729248046875, -0.0255126953125, -0.032318115234375, 0.0077667236328125, -0.011749267578125, 0.0772705078125, 0.0055999755859375, 0.0023212432861328125, 0.0308990478515625, 0.043212890625, 0.01061248779296875, 0.051910400390625, -0.043701171875, 0.08917236328125, -0.0205078125, -0.10089111328125, -0.036468505859375, 0.00910186767578125, -0.042327880859375, -0.06732177734375, -0.082763671875, -0.0089263916015625, -0.00566864013671875, 0.03375244140625, -0.0870361328125, -0.0841064453125, -0.00344085693359375, -0.07049560546875, -0.02880859375, 0.01318359375, 0.0218353271484375, -0.0205230712890625, 0.0266876220703125, -0.01073455810546875, 0.0101776123046875, 0.002315521240234375, -0.003490447998046875, -0.03533935546875, 0.00212860107421875, 0.0250244140625, 0.067626953125, 0.0152740478515625, -0.038665771484375, 0.00870513916015625, 0.013580322265625, -0.05322265625, 0.07427978515625, -0.0041961669921875, 0.0902099609375, -0.0009450912475585938, 0.0092620849609375, -0.00411224365234375, 0.0289306640625, -0.016754150390625, -0.0443115234375, -0.019317626953125, -0.0014810562133789062, 0.025177001953125, 0.01123809814453125, -0.01194000244140625, 0.036834716796875, 0.015228271484375, 0.038360595703125, -0.0182647705078125, 0.0197296142578125, -0.0111846923828125, 0.0155181884765625, 0.002105712890625, 0.025421142578125, 0.01280975341796875, 0.049468994140625, 0.007373809814453125, 0.0212860107421875, -0.0198516845703125, -0.0294952392578125, -0.01119232177734375, 0.026763916015625, 0.041656494140625, -0.0021877288818359375, 0.0087432861328125, -0.01505279541015625, 0.0108642578125, 0.01239013671875, -0.0095367431640625, 0.018280029296875, 0.0291290283203125, -0.0222930908203125, -0.001071929931640625, -0.0259552001953125, -0.01186370849609375, 0.0054779052734375, -0.062255859375, 0.045379638671875, 0.06390380859375, 0.02423095703125, -0.03448486328125, 0.022613525390625, 0.0188446044921875, -0.04913330078125, -0.02593994140625, 0.049713134765625, 0.034881591796875, 0.00244140625, -0.041259765625, -0.05450439453125, -0.01554107666015625, -0.09686279296875, -0.00905609130859375, -0.015655517578125, 0.003551483154296875, -0.005161285400390625, 0.03314208984375, -0.020263671875, 0.03350830078125, -0.024078369140625, 0.029083251953125, 0.004093170166015625, -0.00811004638671875, -0.031707763671875, 0.01476287841796875, -0.021484375, 0.040618896484375, -0.034271240234375, -0.06988525390625, 0.014556884765625, -0.003658294677734375, -0.017120361328125, -0.00666046142578125, -0.0030879974365234375, -0.006252288818359375, -0.0151214599609375, 0.028076171875, -0.00342559814453125, -0.0215606689453125, 0.0064697265625, 0.058868408203125, -0.0280303955078125, -0.027923583984375, 0.00618743896484375, 0.0043792724609375, -0.00293731689453125, -0.006107330322265625, 0.070556640625, 0.04315185546875, -0.01042938232421875, -0.060760498046875, -0.033447265625, 0.0235137939453125, -0.0086212158203125, 0.0107269287109375, 0.0006623268127441406, 0.036163330078125, 0.006671905517578125, -0.01204681396484375, 0.01287841796875, -0.0022258758544921875, -0.0278167724609375, 0.0194244384765625, -0.01488494873046875, 0.0294342041015625, -0.034332275390625, 0.008270263671875, 0.038177490234375, -0.0196990966796875, -0.006587982177734375, 0.00841522216796875, -0.0034580230712890625, 0.01226806640625, 0.008514404296875, -0.0227203369140625, -0.0220947265625, -0.06103515625, -0.040985107421875, 0.0167083740234375, -0.0078277587890625, 0.0188446044921875, -0.028564453125, 0.0198822021484375, -0.0006184577941894531, -0.0396728515625, -0.0450439453125, 0.0261077880859375, -0.03314208984375, 0.006778717041015625, 0.031982421875, -0.009429931640625, -0.0333251953125, 0.05743408203125, -0.0008463859558105469, 0.0240020751953125, -0.0264129638671875, -0.052978515625, -0.039520263671875, -0.06988525390625, -0.034393310546875, -0.00978851318359375, -0.005748748779296875, 0.00811767578125, -0.004581451416015625, 0.014312744140625, -0.0258331298828125, 0.025665283203125, 0.016632080078125, 0.006023406982421875, -0.01104736328125, -0.0264892578125, 0.0174713134765625, -0.004360198974609375, 0.004657745361328125, 0.049072265625, 0.03643798828125, -0.0295562744140625, 0.0219573974609375, -0.0176239013671875, 0.0292816162109375, 0.0014896392822265625, 0.000415802001953125, 0.035491943359375, 0.01503753662109375, 0.006011962890625, -0.0268402099609375, -0.0099029541015625, 0.00226593017578125, -0.0228729248046875, 0.017364501953125, 0.0312042236328125, -0.0214080810546875, 0.016845703125, -0.0152130126953125, 0.043182373046875, 0.0248870849609375, 0.04638671875, -0.01666259765625, -0.0098724365234375, -0.00666046142578125, 0.020233154296875, -0.061553955078125, 0.04888916015625, -0.01313018798828125, 0.00884246826171875, 0.01326751708984375, 0.01001739501953125, 0.019439697265625, -0.020111083984375, -0.01027679443359375, -0.04473876953125, 0.025146484375, -0.0499267578125, -0.0160980224609375, -0.04443359375, -0.004550933837890625, -0.02069091796875, 0.055755615234375, -0.05718994140625, -0.0179443359375, -0.025360107421875, 0.0250244140625, -0.00931549072265625, -0.0703125, 0.0022678375244140625, -0.0202789306640625, -0.083984375, 0.00713348388671875, -0.00966644287109375, -0.0256805419921875, 0.00899505615234375, -0.023101806640625, -0.02685546875, -0.04632568359375, 0.020751953125, -0.0377197265625, 0.005157470703125, 0.00678253173828125, -0.01529693603515625, -0.0061492919921875, -0.0078887939453125, -0.0396728515625, -0.040374755859375, -0.01435089111328125, 0.036773681640625, 0.022796630859375, -0.0000985264778137207, -0.031097412109375, 0.01277923583984375, 0.055755615234375, 0.0181732177734375, -0.0230255126953125, 0.016876220703125, -0.015899658203125, 0.00371551513671875, 0.034393310546875, 0.00592041015625, 0.0012044906616210938, 0.00286865234375, -0.00926971435546875, -0.040435791015625, 0.007793426513671875, -0.009521484375, 0.0175628662109375, 0.030731201171875, -0.03411865234375, -0.04852294921875, -0.02618408203125, 0.00043487548828125, 0.0206451416015625, -0.00666046142578125, 0.008148193359375, -0.022918701171875, -0.0625, 0.038055419921875, -0.0218505859375, 0.003887176513671875, -0.0017499923706054688, 0.0294036865234375, 0.0121612548828125, -0.021270751953125, 0.058746337890625, 0.0132598876953125, 0.0283660888671875, -0.0208587646484375, 0.053619384765625, 0.0164794921875, -0.01837158203125, 0.07562255859375, -0.009124755859375, 0.0007567405700683594, -0.0213775634765625, 0.039642333984375, 0.0079803466796875, -0.0227203369140625, 0.0136566162109375, 0.003692626953125, 0.0185089111328125, 0.01390838623046875, -0.0045928955078125, 0.01473236083984375, -0.0202789306640625, -0.0098114013671875, 0.037567138671875, -0.0233306884765625, -0.01441192626953125, -0.0166015625, -0.005649566650390625, -0.003650665283203125, 0.0662841796875, 0.037261962890625, -0.01001739501953125, 0.01983642578125, 0.0241546630859375, -0.0208892822265625, -0.01373291015625, -0.02197265625, -0.0230255126953125, 0.0266265869140625, -0.054443359375, -0.0277557373046875, 0.00069427490234375, 0.018524169921875, 0.00597381591796875, -0.01490020751953125, -0.0070037841796875, -0.07080078125, -0.004695892333984375, -0.029327392578125, 0.004486083984375, -0.0011987686157226562, 0.02978515625, 0.01300048828125, -0.03399658203125, -0.01045989990234375, -0.0240631103515625, -0.0204620361328125, -0.05084228515625, 0.0016946792602539062, -0.0015230178833007812, -0.005939483642578125, 0.0204010009765625, 0.03912353515625, 0.0237274169921875, 0.0273895263671875, -0.02130126953125, 0.0038547515869140625, 0.018951416015625, 0.0174560546875, 0.0300445556640625, -0.0250396728515625, 0.00848388671875, 0.001617431640625, 0.03326416015625, -0.027923583984375, 0.01149749755859375, 0.0222015380859375, 0.0242156982421875, -0.011383056640625, -0.024200439453125, -0.00356292724609375, -0.0234527587890625, -0.0285491943359375, 0.026214599609375, 0.0018186569213867188, -0.0006308555603027344, -0.047607421875, -0.0343017578125, 0.025726318359375, 0.019378662109375, -0.03167724609375, 0.006168365478515625, -0.0269622802734375, 0.0193939208984375, 0.04742431640625, -0.0299072265625, 0.01922607421875, 0.0012960433959960938, -0.00804901123046875, -0.0259857177734375, -0.007381439208984375, 0.03515625, 0.03753662109375, -0.0445556640625, -0.047332763671875, 0.0310211181640625, -0.006282806396484375, 0.03668212890625, -0.01035308837890625, -0.040679931640625, 0.04803466796875, -0.004604339599609375, 0.06561279296875, 0.0254669189453125, -0.0703125, 0.00726318359375, -0.041412353515625, -0.0038299560546875, 0.026641845703125, -0.01018524169921875, -0.0281524658203125, -0.014129638671875, 0.03277587890625, 0.0025119781494140625, 0.0143585205078125, -0.0225067138671875, -0.029205322265625, 0.01493072509765625, 0.044158935546875, -0.00411224365234375, -0.0205535888671875, 0.0168304443359375, 0.006824493408203125, 0.0063323974609375, 0.0002899169921875, 0.00958251953125, 0.0179290771484375, -0.01983642578125, -0.0098114013671875, -0.055816650390625, 0.0035858154296875, -0.0035572052001953125, -0.00490570068359375, 0.037200927734375, 0.054931640625, 0.0164947509765625, -0.007114410400390625, 0.015411376953125, 0.0012731552124023438, -0.027862548828125, -0.031280517578125, 0.017303466796875, 0.0225067138671875, -0.0157318115234375, 0.0172119140625, 0.05859375, -0.037689208984375, -0.0235748291015625, 0.0135498046875, -0.0142974853515625, 0.034423828125, 0.0208740234375, -0.0736083984375, 0.06097412109375, 0.08367919921875, 0.062042236328125, 0.07086181640625, 0.005062103271484375, 0.04278564453125, 0.005817413330078125, -0.03070068359375, 0.0201873779296875, 0.04986572265625, 0.036102294921875, -0.006500244140625, 0.004688262939453125, 0.0284881591796875, -0.01593017578125, 0.011627197265625, 0.06146240234375, 0.06671142578125, -0.06451416015625, -0.003620147705078125, 0.0142669677734375, -0.007793426513671875, 0.0310516357421875, 0.0328369140625, 0.0032367706298828125, 0.039093017578125, -0.041107177734375, -0.035797119140625, -0.0309600830078125, -0.0028228759765625, 0.0282745361328125, 0.0079193115234375, -0.004749298095703125, 0.01505279541015625, -0.01419830322265625, -0.0301666259765625, -0.05511474609375, 0.0184783935546875, -0.035614013671875, -0.0100250244140625, -0.016265869140625, 0.03466796875, -0.04107666015625, -0.0413818359375, 0.03692626953125, -0.015228271484375, -0.004322052001953125, 0.06298828125, -0.0301971435546875, 0.00279998779296875, 0.0114288330078125, -0.00982666015625, 0.02227783203125, -0.0297393798828125, -0.054901123046875, 0.08831787109375, -0.01088714599609375, -0.00737762451171875, -0.019134521484375, 0.0019378662109375, -0.020111083984375, 0.01302337646484375, -0.0140380859375, -0.02777099609375, -0.035980224609375, 0.09027099609375, -0.05474853515625, -0.01021575927734375, 0.0036411285400390625, 0.04315185546875, 0.00286865234375, -0.0207672119140625, 0.037689208984375, -0.041259765625, -0.0260772705078125, -0.005550384521484375, -0.0279693603515625, 0.024017333984375, -0.0364990234375, -0.05401611328125, 0.04522705078125, -0.0296173095703125, 0.059326171875, 0.022552490234375, -0.0039825439453125, 0.006824493408203125, -0.00736236572265625, -0.0171356201171875, 0.03570556640625, 0.012542724609375, 0.01419830322265625, -0.0369873046875, -0.0231781005859375, -0.004810333251953125, 0.05255126953125, 0.07421875, 0.019775390625, -0.027313232421875, 0.0186614990234375, 0.06011962890625, 0.013580322265625, -0.024505615234375, 0.04638671875, -0.017425537109375, -0.004856109619140625, 0.0161285400390625, 0.0025310516357421875, 0.033447265625, -0.0254974365234375, -0.03662109375, -0.004863739013671875, 0.03271484375, 0.0594482421875, -0.00555419921875, 0.022003173828125, -0.0112457275390625, -0.014373779296875, 0.0325927734375, -0.0467529296875, -0.01039886474609375, 0.031341552734375, 0.0062713623046875, -0.03411865234375, -0.013092041015625, -0.0287628173828125, 0.043487548828125, -0.0024318695068359375, 0.00395965576171875, 0.035614013671875, 0.025543212890625, 0.02386474609375, -0.0206756591796875, 0.005954742431640625, -0.0053558349609375, -0.0079498291015625, 0.078369140625, 0.055633544921875, 0.037017822265625, 0.0023784637451171875, 0.0268402099609375, 0.033233642578125, 0.0721435546875, -0.06085205078125, -0.06427001953125, 0.0011529922485351562, -0.0192413330078125, 0.0235595703125, 0.0239105224609375, 0.0279541015625, -0.01861572265625, 0.00991058349609375, -0.05438232421875, 0.014678955078125, 0.03717041015625, 0.04949951171875, -0.01202392578125, -0.0196533203125, -0.06494140625, -0.0008611679077148438, -0.048065185546875, -0.003017425537109375, 0.0004241466522216797, 0.0638427734375, 0.035552978515625, 0.03887939453125, 0.0009622573852539062, -0.03729248046875, -0.00762176513671875, 0.0672607421875, 0.0009007453918457031, -0.01262664794921875, 0.002895355224609375, -0.047576904296875, -0.0005860328674316406, 0.0182037353515625, -0.0016202926635742188, 0.004543304443359375, 0.00577545166015625, 0.003803253173828125, -0.01154327392578125, -0.01319122314453125, 0.00539398193359375, -0.02362060546875, 0.0250396728515625, -0.060516357421875, 0.06634521484375, 0.0226593017578125, 0.0106658935546875, 0.0212860107421875, -0.005107879638671875, 0.033660888671875, -0.0167236328125, 0.023681640625, -0.00563812255859375, -0.02618408203125, 0.044586181640625, 0.0130767822265625, 0.08123779296875, 0.02630615234375, -0.055145263671875, -0.024993896484375, -0.003589630126953125, -0.018310546875, 0.0300445556640625, 0.04925537109375, -0.0164031982421875, 0.0257568359375, -0.0150146484375, -0.01214599609375, 0.0257720947265625, -0.0260162353515625, -0.001708984375, -0.007373809814453125, -0.0040740966796875, -0.024810791015625, 0.0103607177734375, 0.006988525390625, 0.01233673095703125, 0.0231781005859375, 0.0372314453125, 0.08709716796875, -0.040863037109375, 0.00797271728515625, 0.006717681884765625, 0.0235443115234375, -0.037628173828125, -0.0170745849609375, 0.016204833984375, -0.026031494140625, 0.00885772705078125, 0.0008020401000976562, -0.0311126708984375, -0.057830810546875, 0.0667724609375, -0.06378173828125, -0.014495849609375, -0.0225830078125, 0.03338623046875, -0.051544189453125, 0.0360107421875, -0.0303802490234375, -0.07049560546875, -0.08013916015625, -0.01062774658203125, 0.02044677734375, 0.0421142578125, -0.014495849609375, 0.0164947509765625, -0.00870513916015625, -0.0004935264587402344, 0.0087738037109375, -0.00936126708984375, 0.027923583984375, 0.039093017578125, -0.0648193359375, 0.0235443115234375, 0.034271240234375, -0.0011653900146484375, 0.0099334716796875, 0.0272064208984375, -0.006488800048828125, 0.02593994140625, -0.0281524658203125, -0.0244140625, -0.020263671875, 0.0166778564453125, -0.024017333984375, 0.0181884765625, -0.0494384765625, 0.0102386474609375, 0.0235137939453125, -0.017791748046875, -0.02459716796875, -0.0086822509765625, -0.02978515625, 0.00634765625, -0.02508544921875, -0.07537841796875, -0.038482666015625, 0.0138702392578125, 0.03271484375, 0.007770538330078125, -0.052947998046875, 0.033416748046875, -0.026702880859375, 0.05694580078125, -0.0255889892578125, 0.0555419921875, -0.0355224609375, -0.034515380859375, -0.0645751953125, -0.0048828125, -0.045440673828125, 0.033233642578125, -0.0181732177734375, -0.0087127685546875, 0.0163726806640625, -0.01403045654296875, -0.0236663818359375, -0.0281829833984375, -0.0115509033203125, 0.02105712890625, -0.0034503936767578125, -0.01111602783203125, -0.001163482666015625, 0.0170135498046875, -0.05450439453125, 0.0037364959716796875, 0.0210723876953125, 0.0171356201171875, -0.05633544921875, -0.00566864013671875, -0.012786865234375, 0.0000750422477722168, -0.030914306640625, -0.05426025390625, 0.0550537109375, -0.006397247314453125, -0.01953125, -0.008880615234375, -0.003997802734375, -0.0249786376953125, 0.070556640625, 0.01403045654296875, -0.0096893310546875, -0.0226898193359375, 0.015625, 0.04290771484375, 0.03155517578125, -0.0168609619140625, 0.045318603515625, -0.0248870849609375, 0.051666259765625, 0.0308380126953125, 0.04827880859375, -0.0179595947265625, 0.021392822265625, 0.00798797607421875, 0.04913330078125, -0.00635528564453125, 0.0654296875, 0.0037975311279296875, -0.0157623291015625, 0.0023708343505859375, -0.069580078125, -0.043731689453125, -0.04248046875, 0.07000732421875, 0.010345458984375, 0.019775390625, 0.00421142578125, -0.07916259765625, -0.042633056640625, 0.032257080078125, -0.0149078369140625, 0.006061553955078125, -0.05963134765625, 0.00946807861328125, -0.002452850341796875, -0.0045623779296875, -0.01126861572265625, -0.027679443359375, -0.0302276611328125, 0.007053375244140625, 0.00984954833984375, 0.0212249755859375, -0.022308349609375, 0.0511474609375, 0.04718017578125, -0.045318603515625, -0.0272674560546875, -0.01019287109375, -0.006519317626953125, -0.0034275054931640625, -0.059173583984375, -0.01409912109375, 0.0184173583984375, 0.0028533935546875, 0.0007190704345703125, 0.0229034423828125, 0.021728515625, 0.0112457275390625, 0.0038127899169921875, -0.013397216796875, 0.0196533203125, -0.0033168792724609375, 0.00211334228515625, -0.01355743408203125, 0.04974365234375, -0.0011148452758789062, 0.0859375, -0.016021728515625, -0.007564544677734375, -0.0176544189453125, 0.019927978515625, -0.032928466796875, 0.0184478759765625, 0.005298614501953125, -0.02349853515625, -0.008331298828125, 0.0181121826171875, -0.0294342041015625, -0.04010009765625, 0.0093536376953125, -0.03692626953125, 0.013763427734375, 0.0201873779296875 ]
4302407c0541f55e071ee6bffed4513ebb21b27a
Wordpress Stackexchange Q: Slow Query for the wp_options table I have been tracking the slow queries log of the WP based site (with the default value of the a long_query_time set to 10), and I have noticed that the following query is often getting logged - # User@Host: root[root] @ localhost [] # Query_time: 0 Lock_time: 0 Rows_sent: 394 Rows_examined: 458 SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; I do not understand how such a small table can take so much time to execute. Is this just a symptom of some other problem? (Currently running Moodle, phpbb and WP on a dedicated VM). A: I stumbled across the query mentioned in mytop running on my server a few days ago - and it actually took quite some time (about 10 seconds) for each query! So there are real-world situations where wp_options might grow to problematic size. In my case I suspect the caching plugin Cachify to be responsible for bloating wp_options. Data of this particular wp_options: 5,309 rows 130MB of data As a solution, I added the index similar to the solution posted by Vinay Pai, which solved the problem flawlessly.
Q: Slow Query for the wp_options table I have been tracking the slow queries log of the WP based site (with the default value of the a long_query_time set to 10), and I have noticed that the following query is often getting logged - # User@Host: root[root] @ localhost [] # Query_time: 0 Lock_time: 0 Rows_sent: 394 Rows_examined: 458 SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; I do not understand how such a small table can take so much time to execute. Is this just a symptom of some other problem? (Currently running Moodle, phpbb and WP on a dedicated VM). A: I stumbled across the query mentioned in mytop running on my server a few days ago - and it actually took quite some time (about 10 seconds) for each query! So there are real-world situations where wp_options might grow to problematic size. In my case I suspect the caching plugin Cachify to be responsible for bloating wp_options. Data of this particular wp_options: 5,309 rows 130MB of data As a solution, I added the index similar to the solution posted by Vinay Pai, which solved the problem flawlessly. A: My wp_options table only had about 235 rows of data. I tried indexing the table, but it didn't help. Turns out that about 150 transient options had been inserted into the table, but hadn't been automatically deleted. I don't know if it is related or not, but I'd been looking through my /var/log/apache2/access.log files and noticed that multiple (presumably compromised) Amazon Web Services servers (IP addresses beginning with 54.X.X.X and 32.X.X.X) had been attempting to exploit /~web-root-dir/xmlrpc.php. After some troubleshooting, I queried the wp_options table for option names that contained "transient" select * from wp_options where option_name like '%transient%'; One of the fields returned from this query is 'option_value' which has a datatype of LONGTEXT. According to the mySQL docs, a LONGTEXT field (for each row) can hold up to 4-Gigabytes of data. When I executed the query, some of the rows (remember were working with those containing "transient") had massive amounts of data in the option_value field. Looking through the results, I also saw what looked like attempts to inject commands into the wp-cron process with the hopes they would be executed during the cron cycle(s). My solution was to delete all of the "transient" rows. This will not hurt the server since "transient" rows will automatically repopulate (if they are supposed to be there). After doing this, the server was once again responsive. Query to delete these rows: DELETE from wp_options where option_name like '%transient%'; I've added the AWS IP address /8 superblocks to my firewall, too (-: A: Update: The reason the query is being logged is it doesn't use an index. The query time is 0, i.e. it actually executes fast. You can unset the "log-queries-not-using-indexes" option if you don't want these to be logged. The wp_options table has no index on autoload (it now should, it was added to WP core schema Aug 15, 2019), so the query ends up doing a full table scan. In general that table shouldn't get too large, so it's not a problem, but I'm guessing that's somehow happened in your case. Adding an index might solve the problem, but as TheDeadMedic pointed out in the comments, it might not if the values of autoload are either majority yes, or evenly distributed between yes and no: First, do this query to see what the distribution looks like: SELECT COUNT(*), autoload FROM wp_options GROUP BY autoload; if a large majority of them are set to 'no', you can solve the problem for now by adding an index on autoload. ALTER TABLE wp_options ADD INDEX (`autoload`); However, you might want to get to the bottom of why that table has gotten too large. Possibly some badly written plugin doing something fishy. A: Update related to Index for autoload field in wp_options table: An index has been added to wp_options.autoload in WordPress 5.3. See WordPress 5.3 Changelog Even you can see that Index is available for other columns in wp_options table also: SHOW INDEX from wp_options
wordpress
{ "language": "en", "length": 685, "provenance": "stackexchange_00019.jsonl.gz:425530", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71691" }
[ 0.022003173828125, -0.0038318634033203125, -0.001880645751953125, 0.00968170166015625, 0.00936126708984375, -0.03173828125, 0.0733642578125, -0.017913818359375, 0.01317596435546875, 0.003192901611328125, -0.035430908203125, 0.0006537437438964844, -0.02398681640625, -0.0189056396484375, -0.01812744140625, -0.05535888671875, 0.041015625, -0.006439208984375, 0.027496337890625, 0.00046539306640625, 0.0017576217651367188, 0.0258636474609375, 0.0262908935546875, 0.053436279296875, 0.0265045166015625, -0.0487060546875, 0.04571533203125, -0.00862884521484375, 0.047119140625, 0.02264404296875, 0.02874755859375, -0.04742431640625, -0.001216888427734375, -0.0013713836669921875, 0.03887939453125, 0.03448486328125, 0.0174407958984375, 0.00428009033203125, 0.032501220703125, 0.0002524852752685547, 0.03753662109375, -0.0321044921875, 0.0215911865234375, -0.00501251220703125, -0.006626129150390625, 0.00514984130859375, 0.04022216796875, -0.020477294921875, 0.014190673828125, -0.041015625, 0.022308349609375, 0.03076171875, 0.04095458984375, -0.026275634765625, -0.0124664306640625, 0.017303466796875, 0.0245819091796875, 0.05096435546875, 0.0197296142578125, -0.0701904296875, -0.048858642578125, 0.039459228515625, 0.0301971435546875, 0.04693603515625, 0.018798828125, -0.007671356201171875, 0.049102783203125, 0.03814697265625, 0.031463623046875, 0.0047149658203125, -0.02166748046875, 0.01467132568359375, 0.031524658203125, -0.00044655799865722656, -0.01201629638671875, -0.050811767578125, 0.03619384765625, -0.0015497207641601562, 0.0223541259765625, -0.005489349365234375, -0.042205810546875, -0.039642333984375, -0.056915283203125, -0.018768310546875, 0.01549530029296875, 0.01023101806640625, -0.0230712890625, 0.0028533935546875, 0.004291534423828125, -0.018157958984375, -0.00853729248046875, -0.06756591796875, 0.0140228271484375, 0.0105743408203125, -0.00707244873046875, -0.044708251953125, -0.01349639892578125, -0.034149169921875, 0.01189422607421875, -0.00936126708984375, 0.01169586181640625, -0.031494140625, -0.0025959014892578125, 0.0100860595703125, 0.0191192626953125, 0.01145172119140625, -0.0016908645629882812, 0.03765869140625, 0.06671142578125, 0.0309906005859375, 0.01248931884765625, 0.0484619140625, -0.004100799560546875, -0.0004093647003173828, -0.031768798828125, -0.02490234375, -0.04620361328125, 0.01177978515625, -0.0096435546875, -0.0009627342224121094, -0.023651123046875, 0.0011644363403320312, -0.033966064453125, -0.014892578125, 0.01519775390625, -0.034759521484375, -0.018218994140625, 0.04296875, -0.0350341796875, 0.029144287109375, -0.0136566162109375, 0.01470947265625, 0.0217437744140625, 0.03350830078125, -0.00943756103515625, -0.01313018798828125, 0.02825927734375, -0.05804443359375, 0.0028095245361328125, 0.0275421142578125, 0.01375579833984375, -0.0687255859375, -0.04974365234375, 0.0204925537109375, 0.042572021484375, 0.007526397705078125, 0.0204010009765625, 0.0164947509765625, -0.004730224609375, -0.033660888671875, 0.0236053466796875, 0.0179290771484375, 0.060211181640625, -0.0269775390625, -0.05975341796875, -0.034393310546875, 0.005641937255859375, -0.0355224609375, -0.04620361328125, -0.05609130859375, -0.045989990234375, -0.0111236572265625, 0.03564453125, -0.0124359130859375, -0.00908660888671875, 0.004299163818359375, -0.0019702911376953125, 0.01194000244140625, 0.0259552001953125, 0.0036602020263671875, -0.00104522705078125, -0.052978515625, 0.03411865234375, 0.00011289119720458984, -0.0088958740234375, 0.0416259765625, -0.00623321533203125, -0.01444244384765625, 0.0335693359375, -0.02923583984375, -0.036468505859375, -0.029205322265625, 0.045196533203125, -0.007419586181640625, -0.0214080810546875, 0.050628662109375, 0.00968170166015625, 0.04998779296875, -0.0216827392578125, 0.018310546875, 0.0008211135864257812, 0.051910400390625, -0.0273284912109375, 0.076904296875, -0.0038166046142578125, -0.0447998046875, -0.031707763671875, -0.004375457763671875, -0.01068115234375, -0.05078125, 0.033782958984375, 0.00742340087890625, -0.01189422607421875, -0.050445556640625, -0.1192626953125, -0.0140228271484375, -0.03369140625, 0.048004150390625, 0.0007648468017578125, 0.01453399658203125, 0.01502227783203125, 0.00437164306640625, -0.0345458984375, -0.001094818115234375, -0.01104736328125, 0.016815185546875, -0.0175628662109375, 0.03045654296875, -0.002742767333984375, -0.0013589859008789062, -0.01073455810546875, -0.024627685546875, -0.0119476318359375, 0.0189971923828125, -0.00302886962890625, 0.0256500244140625, -0.0213623046875, 0.03363037109375, 0.0321044921875, 0.0260009765625, 0.051727294921875, -0.003780364990234375, 0.056396484375, 0.05584716796875, -0.0029964447021484375, -0.003997802734375, 0.0004191398620605469, -0.08721923828125, 0.0007071495056152344, 0.042724609375, 0.022735595703125, 0.034454345703125, 0.0033168792724609375, 0.01128387451171875, -0.00464630126953125, -0.08062744140625, 0.01078033447265625, 0.00041484832763671875, -0.009857177734375, -0.0217742919921875, -0.0024547576904296875, -0.025360107421875, 0.032501220703125, -0.0223236083984375, 0.00962066650390625, 0.012908935546875, -0.029541015625, 0.0192413330078125, 0.0064239501953125, -0.0062103271484375, -0.0181732177734375, -0.007648468017578125, 0.0316162109375, -0.0226593017578125, 0.0017948150634765625, -0.007266998291015625, 0.00513458251953125, -0.0086822509765625, -0.007366180419921875, 0.0340576171875, 0.0232696533203125, -0.07171630859375, 0.00545501708984375, -0.03216552734375, -0.027740478515625, -0.03515625, -0.0113677978515625, 0.025421142578125, 0.01457977294921875, -0.038330078125, -0.01149749755859375, 0.013916015625, -0.0252838134765625, -0.00368499755859375, -0.02764892578125, -0.05230712890625, 0.017730712890625, 0.016937255859375, -0.0176239013671875, 0.00887298583984375, 0.036468505859375, 0.0105743408203125, -0.02740478515625, 0.011688232421875, -0.0013628005981445312, -0.0234832763671875, 0.0838623046875, -0.0380859375, 0.02960205078125, -0.0019378662109375, 0.08319091796875, 0.079833984375, -0.01349639892578125, 0.01751708984375, 0.007511138916015625, -0.033966064453125, 0.01776123046875, 0.007007598876953125, -0.01258087158203125, 0.003662109375, -0.06640625, 0.022308349609375, 0.0160369873046875, 0.08819580078125, -0.046630859375, -0.06097412109375, -0.007503509521484375, 0.03948974609375, -0.05413818359375, -0.08062744140625, -0.0263671875, -0.0692138671875, -0.02618408203125, -0.03533935546875, -0.0323486328125, 0.033111572265625, -0.035675048828125, 0.0085296630859375, 0.00778961181640625, -0.04595947265625, -0.0843505859375, -0.0650634765625, -0.08258056640625, -0.0193634033203125, 0.00009804964065551758, 0.0116424560546875, 0.01186370849609375, 0.06317138671875, -0.0038356781005859375, -0.051239013671875, -0.016448974609375, -0.11016845703125, -0.006847381591796875, 0.0186004638671875, 0.026397705078125, -0.049285888671875, 0.002407073974609375, 0.004077911376953125, -0.0284423828125, 0.00838470458984375, 0.005931854248046875, -0.0236663818359375, 0.023223876953125, 0.01416015625, 0.040985107421875, 0.000047087669372558594, -0.05389404296875, 0.006439208984375, 0.0200958251953125, -0.040374755859375, -0.014862060546875, -0.00357818603515625, -0.01483917236328125, -0.006580352783203125, -0.016387939453125, -0.00027298927307128906, 0.0007128715515136719, 0.0233612060546875, 0.0155181884765625, -0.01049041748046875, 0.00664520263671875, -0.038299560546875, 0.0328369140625, 0.01580810546875, 0.016845703125, -0.010101318359375, 0.01419830322265625, -0.052154541015625, 0.036407470703125, 0.0153350830078125, -0.03521728515625, 0.005527496337890625, -0.03887939453125, 0.010833740234375, -0.040130615234375, 0.04608154296875, -0.026336669921875, 0.0172119140625, -0.0179443359375, -0.0240631103515625, 0.0028076171875, 0.0772705078125, -0.017425537109375, -0.0199432373046875, -0.018829345703125, 0.03680419921875, -0.062744140625, -0.053466796875, 0.0146331787109375, 0.00897979736328125, -0.07415771484375, -0.0072479248046875, -0.0019817352294921875, -0.056121826171875, -0.0023021697998046875, -0.0278472900390625, -0.0455322265625, -0.04901123046875, 0.035430908203125, -0.0293121337890625, 0.00171661376953125, -0.01296234130859375, -0.0077362060546875, -0.0298614501953125, -0.01399993896484375, -0.0184326171875, -0.09344482421875, -0.020843505859375, 0.01180267333984375, 0.042572021484375, -0.00846099853515625, -0.036834716796875, -0.00951385498046875, 0.042755126953125, 0.006290435791015625, 0.0200042724609375, 0.0123443603515625, 0.0021076202392578125, -0.018218994140625, -0.00531768798828125, 0.0286407470703125, -0.03912353515625, 0.01513671875, -0.03570556640625, -0.0090484619140625, -0.01177215576171875, -0.04071044921875, 0.0255279541015625, -0.047515869140625, 0.0065155029296875, -0.024688720703125, -0.0160675048828125, -0.050628662109375, 0.0220794677734375, -0.04083251953125, 0.006435394287109375, -0.038970947265625, -0.05499267578125, 0.07891845703125, -0.0015535354614257812, 0.037750244140625, -0.01407623291015625, 0.0887451171875, 0.0088958740234375, -0.042510986328125, 0.00164794921875, -0.051055908203125, -0.0100250244140625, 0.0219268798828125, 0.04388427734375, -0.005443572998046875, 0.019744873046875, 0.0264129638671875, -0.0316162109375, 0.007205963134765625, -0.02496337890625, 0.0123138427734375, 0.0022735595703125, 0.0037975311279296875, 0.0006132125854492188, 0.0093536376953125, 0.00843048095703125, 0.05987548828125, -0.020599365234375, -0.014129638671875, -0.037506103515625, 0.051361083984375, -0.0173797607421875, 0.0018053054809570312, -0.06903076171875, -0.06561279296875, 0.01488494873046875, -0.03460693359375, 0.03912353515625, 0.032257080078125, -0.00969696044921875, 0.06866455078125, 0.03668212890625, -0.01377105712890625, 0.007061004638671875, 0.0258331298828125, -0.0262603759765625, 0.0164947509765625, 0.0158233642578125, -0.0229034423828125, -0.007709503173828125, -0.01371002197265625, 0.056121826171875, -0.00946044921875, -0.06707763671875, 0.0295867919921875, -0.00662994384765625, 0.032440185546875, 0.032806396484375, -0.0246734619140625, -0.00013720989227294922, 0.058258056640625, -0.006023406982421875, 0.0111083984375, -0.00225067138671875, 0.008758544921875, -0.0249786376953125, 0.01335906982421875, 0.00469970703125, -0.012542724609375, 0.060638427734375, 0.01364898681640625, -0.06781005859375, 0.060882568359375, 0.006793975830078125, 0.0016946792602539062, -0.0013513565063476562, 0.0430908203125, 0.029754638671875, -0.040496826171875, 0.009979248046875, 0.0151519775390625, 0.00255584716796875, -0.01258087158203125, 0.01378631591796875, 0.0191650390625, -0.00739288330078125, 0.0029048919677734375, -0.0166473388671875, 0.0262603759765625, 0.00677490234375, -0.006504058837890625, 0.035552978515625, 0.013946533203125, -0.00662994384765625, -0.0233612060546875, -0.0142059326171875, 0.040130615234375, 0.0007152557373046875, -0.003688812255859375, 0.01044464111328125, -0.022491455078125, 0.0411376953125, 0.0019388198852539062, 0.035675048828125, -0.028045654296875, -0.048583984375, -0.00572967529296875, -0.009490966796875, -0.040435791015625, -0.0031147003173828125, -0.032470703125, 0.0112152099609375, 0.01898193359375, 0.01255035400390625, 0.024688720703125, 0.0312347412109375, -0.039215087890625, -0.0272674560546875, -0.031829833984375, -0.007595062255859375, 0.0242919921875, -0.0220489501953125, -0.0034885406494140625, -0.016021728515625, -0.0279083251953125, -0.0125579833984375, 0.02362060546875, -0.0158843994140625, -0.02532958984375, -0.031829833984375, -0.0173492431640625, -0.0018148422241210938, 0.005176544189453125, -0.0194549560546875, -0.04083251953125, -0.0099639892578125, 0.017333984375, -0.09246826171875, -0.0479736328125, 0.041168212890625, -0.014617919921875, -0.006092071533203125, -0.02508544921875, 0.0020294189453125, -0.005504608154296875, 0.02197265625, 0.0245361328125, 0.0189971923828125, -0.042266845703125, -0.044158935546875, -0.01397705078125, -0.0115509033203125, 0.05767822265625, -0.0235443115234375, 0.0606689453125, -0.0296478271484375, 0.0011529922485351562, -0.0127105712890625, -0.00717926025390625, -0.0399169921875, 0.041229248046875, 0.0203704833984375, -0.006122589111328125, 0.0046539306640625, -0.0379638671875, 0.01739501953125, -0.00284576416015625, -0.03204345703125, -0.0251922607421875, 0.01099395751953125, -0.024871826171875, 0.03155517578125, 0.06951904296875, 0.0058441162109375, 0.040496826171875, 0.00879669189453125, 0.00939178466796875, 0.0311737060546875, 0.0582275390625, -0.019927978515625, -0.029144287109375, 0.046661376953125, 0.013458251953125, -0.03460693359375, 0.004848480224609375, -0.0271453857421875, 0.02734375, 0.0258941650390625, 0.068359375, -0.058502197265625, 0.032440185546875, 0.0296630859375, -0.00463104248046875, 0.02044677734375, -0.0225372314453125, -0.024749755859375, -0.0672607421875, 0.05029296875, -0.00450897216796875, -0.026123046875, -0.0118865966796875, -0.0182037353515625, -0.00485992431640625, -0.0179290771484375, 0.0012464523315429688, 0.01236724853515625, -0.023162841796875, 0.0286865234375, 0.0266265869140625, 0.0165863037109375, -0.022857666015625, 0.01508331298828125, 0.00347137451171875, -0.0105438232421875, -0.0533447265625, 0.00690460205078125, -0.0157318115234375, 0.0009393692016601562, 0.037445068359375, -0.0025348663330078125, 0.0205535888671875, 0.037933349609375, -0.006103515625, 0.0093536376953125, 0.0035190582275390625, -0.0176239013671875, 0.020538330078125, -0.0206451416015625, 0.00525665283203125, 0.01342010498046875, -0.05145263671875, 0.00307464599609375, -0.021728515625, 0.0024967193603515625, -0.01043701171875, -0.004177093505859375, 0.07867431640625, -0.038177490234375, 0.004425048828125, 0.051361083984375, 0.01549530029296875, -0.0274200439453125, -0.0139923095703125, 0.01294708251953125, -0.019775390625, -0.0026092529296875, -0.0021457672119140625, -0.01047515869140625, -0.00505828857421875, 0.012908935546875, -0.0279693603515625, 0.0599365234375, -0.01280975341796875, -0.009765625, 0.0093841552734375, 0.040191650390625, -0.0221405029296875, 0.0305633544921875, -0.0443115234375, 0.055084228515625, 0.026611328125, 0.035247802734375, -0.0176849365234375, 0.01470947265625, 0.015869140625, -0.0107269287109375, 0.0015926361083984375, -0.0142822265625, -0.0281524658203125, -0.007080078125, 0.041473388671875, 0.029022216796875, 0.029632568359375, 0.0219268798828125, -0.0191497802734375, 0.058074951171875, 0.07012939453125, -0.045623779296875, 0.0177154541015625, 0.049285888671875, -0.04547119140625, 0.0078582763671875, 0.01081085205078125, 0.0333251953125, -0.0084075927734375, 0.018951416015625, 0.00909423828125, -0.00971221923828125, 0.0067291259765625, -0.04095458984375, -0.01276397705078125, 0.033721923828125, 0.0352783203125, -0.051361083984375, 0.00864410400390625, -0.043060302734375, 0.04461669921875, 0.020050048828125, 0.0012540817260742188, 0.01142120361328125, 0.0037593841552734375, 0.042510986328125, -0.040252685546875, -0.01126861572265625, 0.0198822021484375, -0.0202789306640625, 0.038848876953125, 0.00693511962890625, 0.039642333984375, -0.03668212890625, -0.043487548828125, -0.01224517822265625, 0.056854248046875, -0.01885986328125, -0.0472412109375, 0.00013387203216552734, -0.0244293212890625, -0.0120086669921875, -0.00017082691192626953, -0.019622802734375, 0.0280303955078125, 0.042724609375, -0.0129547119140625, -0.003894805908203125, -0.01264190673828125, -0.00347900390625, -0.002109527587890625, 0.042694091796875, 0.0159912109375, 0.0146942138671875, 0.03216552734375, -0.0228271484375, 0.0171356201171875, -0.0030002593994140625, -0.01178741455078125, -0.0036830902099609375, -0.0122222900390625, 0.0280609130859375, -0.024078369140625, 0.0272064208984375, -0.0059814453125, 0.014373779296875, -0.040191650390625, -0.0318603515625, 0.01027679443359375, 0.039794921875, 0.032196044921875, 0.0185699462890625, 0.052093505859375, 0.05084228515625, 0.0062255859375, 0.0012292861938476562, 0.03955078125, -0.00214385986328125, -0.038360595703125, -0.019073486328125, 0.0166473388671875, 0.05340576171875, 0.0178070068359375, 0.004344940185546875, 0.05352783203125, 0.004039764404296875, 0.007205963134765625, -0.01277923583984375, 0.021148681640625, -0.0172271728515625, 0.04302978515625, 0.006511688232421875, -0.0158233642578125, 0.02960205078125, -0.024627685546875, 0.00466156005859375, -0.006801605224609375, -0.01104736328125, -0.025909423828125, 0.0289764404296875, 0.01119232177734375, 0.0095062255859375, -0.0219879150390625, -0.0189666748046875, -0.0139312744140625, 0.0235595703125, 0.0050201416015625, 0.0338134765625, 0.0160980224609375, 0.0054931640625, -0.07879638671875, -0.0216064453125, -0.032806396484375, 0.01470184326171875, 0.011383056640625, 0.04876708984375, 0.006992340087890625, 0.01267242431640625, 0.050872802734375, -0.0640869140625, 0.0740966796875, 0.04302978515625, 0.0215301513671875, -0.01537322998046875, -0.0300750732421875, -0.035919189453125, -0.0286712646484375, -0.01250457763671875, 0.039337158203125, -0.025054931640625, -0.01277923583984375, -0.039825439453125, 0.04541015625, 0.00518798828125, -0.003997802734375, -0.0265350341796875, 0.01422882080078125, 0.0234832763671875, -0.034423828125, 0.0245361328125, -0.0179443359375, 0.0292816162109375, 0.016326904296875, 0.0022830963134765625, 0.0160980224609375, 0.018218994140625, 0.01428985595703125, 0.022613525390625, 0.0272216796875, -0.038482666015625, 0.06988525390625, -0.004962921142578125, -0.0222015380859375, 0.0477294921875, 0.006427764892578125, -0.033477783203125, 0.021087646484375, 0.07366943359375, -0.025634765625, 0.0136871337890625, 0.0195465087890625, -0.0007419586181640625, 0.00400543212890625, 0.006328582763671875, -0.0255889892578125, -0.0312042236328125, 0.03277587890625, -0.019622802734375, 0.0033130645751953125, -0.02752685546875, 0.0003497600555419922, -0.00720977783203125, -0.056549072265625, -0.04779052734375, -0.024932861328125, 0.0097808837890625, -0.003795623779296875, -0.01369476318359375, -0.001689910888671875, -0.00850677490234375, -0.0214691162109375, 0.000762939453125, -0.01422882080078125, 0.0035152435302734375, 0.02789306640625, -0.01375579833984375, -0.0239105224609375, -0.011749267578125, 0.01947021484375, 0.00876617431640625, 0.006443023681640625, 0.0255889892578125, 0.00604248046875, -0.00827789306640625, 0.017974853515625, -0.0120391845703125, 0.06475830078125, -0.04400634765625, -0.0013074874877929688, 0.04925537109375, -0.009979248046875, -0.0204010009765625, -0.075927734375, -0.01953125, -0.03607177734375, 0.0256500244140625, -0.03131103515625, 0.051361083984375, 0.048004150390625, -0.017822265625, -0.06097412109375, 0.022369384765625, -0.02630615234375, -0.020660400390625, -0.055145263671875, -0.011077880859375, -0.00933837890625, 0.0131072998046875, -0.023345947265625, -0.0190582275390625, -0.036102294921875, 0.032623291015625, 0.00928497314453125, 0.01087188720703125, 0.018096923828125, -0.0019779205322265625, -0.094482421875, -0.01122283935546875, -0.0273895263671875, 0.032073974609375, 0.020172119140625, 0.0159912109375, 0.044036865234375, 0.0789794921875, 0.0123291015625, 0.052459716796875, -0.01094818115234375, -0.09796142578125, 0.0006589889526367188, 0.0194549560546875, -0.03143310546875, 0.004405975341796875, 0.04547119140625, 0.0675048828125, 0.0216064453125, -0.0311737060546875, 0.017059326171875, -0.02386474609375, 0.00403594970703125, -0.022735595703125, 0.01200103759765625, -0.057159423828125, -0.014251708984375, 0.00859832763671875, -0.01392364501953125, 0.013763427734375, 0.0230560302734375, -0.0017843246459960938, 0.028350830078125, 0.0831298828125, -0.0194091796875, -0.040924072265625, 0.014007568359375, -0.0362548828125, 0.00010436773300170898, -0.0418701171875, -0.0330810546875, 0.0189056396484375, -0.06292724609375, -0.0283966064453125, -0.04010009765625, -0.00722503662109375, 0.00855255126953125, 0.037017822265625, -0.01082611083984375, -0.012542724609375, -0.00415802001953125, 0.0202789306640625, -0.004993438720703125, -0.00835418701171875, -0.014801025390625, -0.026947021484375, -0.01519012451171875, 0.00998687744140625, -0.010009765625, 0.0853271484375, -0.0108489990234375, 0.01959228515625, -0.0156707763671875, 0.03094482421875, -0.0022449493408203125, -0.01328277587890625, 0.038726806640625, -0.0238494873046875, 0.0013408660888671875, -0.041229248046875, -0.035064697265625, -0.0274505615234375, -0.01416015625, -0.001338958740234375, -0.03985595703125, 0.0249786376953125 ]
055c15f412295d884e4204ff37672cea39b8ca35
Wordpress Stackexchange Q: Individual rss feed entry length for categories? I know how to retrieve the rss2 feed from a category in wp, namely adding /feed behind the category name. However when I do this, not all entries from that feed are included in the rss, this is because I set the feed restriction to be 50 at the admin backend. I would like to know if a feed length could be set indiviually for each category/feed programatically. I could not find any api settings for the size of the feeds ... any help is welcome here. Thanks for your help. A: You should be able to use pre_get_posts and set the posts_per_page to 50 conditionally (on being feed for categories). Unfortunately there is this unresolved trac ticket. The only work-around is to do hook into post_limits and replace the LIMIT part of the SQL query directly. add_action('post_limits','wpse71759_category_rss_limit',10,2); function wpse71759_category_rss_limit($limit, $query){ if( $query->is_feed() && $query->is_category() ){ $paged = $query->get('paged') ? (int) $query->get('paged') : 1; $per_page = 50; $page_start = ($paged-1)*$per_page; return "LIMIT $page_start, $per_page"; } return $limit; }
Q: Individual rss feed entry length for categories? I know how to retrieve the rss2 feed from a category in wp, namely adding /feed behind the category name. However when I do this, not all entries from that feed are included in the rss, this is because I set the feed restriction to be 50 at the admin backend. I would like to know if a feed length could be set indiviually for each category/feed programatically. I could not find any api settings for the size of the feeds ... any help is welcome here. Thanks for your help. A: You should be able to use pre_get_posts and set the posts_per_page to 50 conditionally (on being feed for categories). Unfortunately there is this unresolved trac ticket. The only work-around is to do hook into post_limits and replace the LIMIT part of the SQL query directly. add_action('post_limits','wpse71759_category_rss_limit',10,2); function wpse71759_category_rss_limit($limit, $query){ if( $query->is_feed() && $query->is_category() ){ $paged = $query->get('paged') ? (int) $query->get('paged') : 1; $per_page = 50; $page_start = ($paged-1)*$per_page; return "LIMIT $page_start, $per_page"; } return $limit; } A: add_filter('query', 'sql_query_feed_filter'); function sql_query_feed_filter($sql){ global $wp_query; if ($wp_query->is_feed == true && isset($wp_query->query_vars['custom_taxonomy']) && in_array($wp_query->query_vars['custom_taxonomy'], array('slug1','slug2')) ){ if (strpos($sql, 'SELECT SQL_CALC_FOUND_ROWS') !== false){ list($sql,) = explode('LIMIT', $sql); } } return $sql; } all you need to do is just edit this function and repalce taxonomy by your category taxonomy and edit slug to much your category...
wordpress
{ "language": "en", "length": 232, "provenance": "stackexchange_00019.jsonl.gz:425547", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71759" }
[ 0.0291290283203125, -0.01357269287109375, -0.0143280029296875, 0.003772735595703125, -0.00489044189453125, -0.033538818359375, 0.022308349609375, -0.03436279296875, -0.02740478515625, -0.0175323486328125, -0.04595947265625, 0.00269317626953125, -0.0256805419921875, -0.0266876220703125, 0.027923583984375, -0.054779052734375, 0.05291748046875, 0.006008148193359375, 0.0640869140625, 0.0174713134765625, 0.00101470947265625, 0.05218505859375, 0.032379150390625, 0.08416748046875, 0.0035762786865234375, -0.019378662109375, 0.06585693359375, -0.037506103515625, 0.005405426025390625, -0.0251617431640625, 0.0005869865417480469, -0.0010576248168945312, -0.005252838134765625, 0.031005859375, -0.01079559326171875, -0.05218505859375, 0.00830078125, 0.0006375312805175781, -0.020904541015625, 0.048309326171875, 0.0279541015625, -0.0246734619140625, 0.040069580078125, 0.0086669921875, 0.016876220703125, -0.0271453857421875, 0.042327880859375, -0.0601806640625, -0.00848388671875, -0.01453399658203125, 0.01433563232421875, 0.037750244140625, 0.022705078125, -0.01861572265625, -0.00696563720703125, 0.005023956298828125, 0.0158538818359375, -0.01233673095703125, 0.029449462890625, -0.042694091796875, -0.0399169921875, -0.006443023681640625, 0.0303802490234375, 0.0008053779602050781, -0.0141143798828125, -0.0010995864868164062, 0.03619384765625, 0.0186614990234375, -0.00298309326171875, -0.02618408203125, 0.00506591796875, 0.006893157958984375, -0.0150604248046875, 0.00531768798828125, -0.0114898681640625, -0.0033893585205078125, 0.018890380859375, 0.00153350830078125, 0.006305694580078125, 0.01885986328125, -0.0092315673828125, -0.002994537353515625, -0.07958984375, 0.02532958984375, -0.00689697265625, 0.0301513671875, -0.0253753662109375, -0.0197601318359375, -0.011322021484375, -0.0004382133483886719, -0.01873779296875, 0.00047969818115234375, 0.006561279296875, -0.0034770965576171875, -0.01229095458984375, -0.01342010498046875, 0.0026073455810546875, 0.020904541015625, -0.006519317626953125, 0.0011453628540039062, -0.032562255859375, -0.003787994384765625, -0.0162200927734375, -0.0189666748046875, 0.03826904296875, 0.0152130126953125, -0.0264434814453125, 0.01226043701171875, 0.08087158203125, 0.023834228515625, 0.005970001220703125, 0.08453369140625, 0.001495361328125, 0.0011796951293945312, -0.0224609375, -0.0157928466796875, -0.052825927734375, 0.026153564453125, -0.007068634033203125, -0.01006317138671875, -0.00994110107421875, 0.0182647705078125, -0.032684326171875, 0.01470184326171875, -0.0093994140625, -0.0053253173828125, 0.0175933837890625, -0.01352691650390625, 0.01323699951171875, 0.045135498046875, -0.0198974609375, 0.00015854835510253906, 0.01384735107421875, 0.0210723876953125, -0.007396697998046875, -0.0245819091796875, 0.036773681640625, -0.03271484375, -0.0260009765625, 0.049896240234375, -0.05084228515625, -0.009979248046875, 0.043548583984375, -0.058807373046875, 0.00766754150390625, -0.0017213821411132812, 0.00717926025390625, 0.022216796875, 0.028045654296875, -0.007625579833984375, -0.00437164306640625, -0.01099395751953125, 0.057281494140625, -0.0013704299926757812, -0.07928466796875, -0.0145111083984375, 0.0010223388671875, -0.022491455078125, -0.04278564453125, -0.06561279296875, -0.0038394927978515625, 0.0060272216796875, 0.048980712890625, -0.0977783203125, -0.09222412109375, -0.01316070556640625, -0.07958984375, -0.016571044921875, 0.0199432373046875, 0.042144775390625, -0.0157012939453125, 0.00592803955078125, -0.01529693603515625, 0.006389617919921875, -0.01141357421875, -0.0014848709106445312, 0.007549285888671875, 0.002407073974609375, 0.0279693603515625, -0.00649261474609375, -0.030670166015625, -0.03692626953125, 0.056243896484375, -0.023162841796875, -0.0267333984375, 0.024078369140625, 0.0303497314453125, 0.03753662109375, -0.0265350341796875, 0.0198822021484375, 0.03973388671875, 0.055999755859375, -0.01497650146484375, -0.040771484375, 0.0190887451171875, -0.0162811279296875, -0.01056671142578125, -0.023651123046875, -0.004413604736328125, 0.056060791015625, 0.0252685546875, -0.0162353515625, 0.01263427734375, -0.006069183349609375, -0.0306243896484375, 0.0086669921875, -0.0106353759765625, 0.0143280029296875, -0.0016002655029296875, 0.02081298828125, -0.001308441162109375, -0.036224365234375, 0.026275634765625, -0.07269287109375, -0.0181121826171875, 0.0189208984375, -0.01540374755859375, 0.0166015625, -0.00931549072265625, 0.0372314453125, -0.0221710205078125, -0.040252685546875, -0.0261993408203125, 0.033447265625, 0.0831298828125, -0.01119232177734375, -0.0076141357421875, -0.036590576171875, 0.05364990234375, 0.00909423828125, -0.04656982421875, 0.034454345703125, 0.035186767578125, 0.054718017578125, 0.002292633056640625, 0.0028514862060546875, 0.04095458984375, -0.050994873046875, 0.02001953125, 0.01430511474609375, 0.0184326171875, -0.017303466796875, -0.0310211181640625, -0.0256195068359375, 0.03125, -0.019439697265625, 0.009796142578125, -0.00652313232421875, 0.0140228271484375, 0.0572509765625, 0.0272216796875, 0.00690460205078125, 0.0138092041015625, 0.0029144287109375, -0.0172271728515625, 0.0440673828125, 0.047698974609375, 0.01253509521484375, -0.00429534912109375, 0.02581787109375, 0.0041961669921875, 0.0599365234375, -0.0286407470703125, 0.040374755859375, 0.0266876220703125, 0.03411865234375, 0.063232421875, 0.058624267578125, -0.011871337890625, -0.00010347366333007812, 0.002056121826171875, 0.0168609619140625, 0.00621795654296875, 0.00848388671875, -0.041015625, -0.04412841796875, -0.033233642578125, 0.02423095703125, -0.00362396240234375, -0.037994384765625, -0.00011110305786132812, 0.0867919921875, -0.033233642578125, -0.0178375244140625, -0.057769775390625, -0.08184814453125, -0.03790283203125, 0.01210784912109375, 0.040740966796875, 0.0264739990234375, 0.027374267578125, 0.0288543701171875, 0.00037670135498046875, 0.04290771484375, 0.0209808349609375, -0.01019287109375, 0.0589599609375, -0.048614501953125, 0.0560302734375, -0.041168212890625, 0.0760498046875, 0.050384521484375, -0.049591064453125, 0.03118896484375, -0.004070281982421875, -0.02081298828125, -0.024566650390625, 0.01129913330078125, -0.032501220703125, -0.0238189697265625, -0.04998779296875, 0.0262908935546875, 0.0074310302734375, -0.0103302001953125, 0.021453857421875, -0.01800537109375, 0.00281524658203125, 0.018524169921875, -0.0280914306640625, -0.00882720947265625, 0.043670654296875, -0.06585693359375, -0.03607177734375, 0.0145416259765625, -0.049072265625, -0.01457977294921875, 0.027862548828125, -0.01666259765625, -0.034027099609375, -0.03326416015625, -0.06732177734375, -0.0745849609375, -0.059051513671875, 0.0170135498046875, -0.009735107421875, 0.023712158203125, -0.007350921630859375, 0.061248779296875, 0.01041412353515625, -0.034759521484375, -0.02972412109375, 0.040985107421875, -0.0284576416015625, -0.0579833984375, -0.021728515625, 0.0296783447265625, 0.047027587890625, -0.003017425537109375, 0.03314208984375, 0.0546875, -0.0377197265625, 0.005535125732421875, -0.02880859375, -0.0237579345703125, 0.0136566162109375, 0.030731201171875, 0.024078369140625, -0.0020618438720703125, 0.031463623046875, -0.038238525390625, -0.037322998046875, -0.03045654296875, -0.0892333984375, -0.01222991943359375, 0.0692138671875, 0.0099945068359375, -0.01029205322265625, -0.046112060546875, -0.06097412109375, -0.0179443359375, 0.016632080078125, -0.06024169921875, 0.0018339157104492188, -0.0255126953125, -0.04974365234375, 0.0247650146484375, 0.005252838134765625, -0.005001068115234375, 0.0167694091796875, -0.007549285888671875, 0.01351165771484375, -0.028472900390625, 0.048675537109375, -0.041534423828125, -0.0455322265625, 0.034576416015625, -0.021942138671875, -0.0150604248046875, -0.0274810791015625, -0.017730712890625, -0.0099334716796875, 0.046722412109375, 0.0155487060546875, -0.04534912109375, -0.055938720703125, 0.028350830078125, -0.0307159423828125, -0.09771728515625, 0.058135986328125, -0.0025482177734375, -0.037353515625, 0.0189971923828125, -0.01849365234375, -0.0027313232421875, 0.003631591796875, -0.0325927734375, 0.01152801513671875, -0.035888671875, 0.021453857421875, -0.029327392578125, -0.0104522705078125, -0.0018520355224609375, -0.0226287841796875, -0.033599853515625, -0.017578125, -0.01255035400390625, -0.06768798828125, -0.0220184326171875, -0.00560760498046875, 0.032012939453125, 0.0182647705078125, -0.034698486328125, -0.0099945068359375, 0.03875732421875, 0.0206756591796875, -0.01403045654296875, 0.03179931640625, -0.006122589111328125, -0.006511688232421875, 0.01253509521484375, 0.0233917236328125, -0.017059326171875, -0.004108428955078125, -0.0217437744140625, 0.00009489059448242188, 0.0286102294921875, -0.041107177734375, 0.0007300376892089844, -0.053558349609375, -0.0071868896484375, -0.1253662109375, -0.08551025390625, -0.009124755859375, -0.0210723876953125, 0.005931854248046875, 0.002674102783203125, -0.08905029296875, -0.09075927734375, 0.037384033203125, 0.029083251953125, -0.0032825469970703125, -0.00832366943359375, 0.03887939453125, 0.007091522216796875, -0.053955078125, -0.053863525390625, 0.00785064697265625, 0.026092529296875, -0.0207977294921875, 0.0614013671875, 0.01180267333984375, -0.0220947265625, 0.07904052734375, -0.02630615234375, -0.0186767578125, -0.01087188720703125, 0.039093017578125, -0.01509857177734375, -0.01983642578125, 0.007266998291015625, -0.047576904296875, 0.046112060546875, 0.00867462158203125, -0.0293121337890625, 0.01236724853515625, -0.0183258056640625, 0.023223876953125, -0.0150604248046875, 0.0255584716796875, -0.0132598876953125, 0.0288848876953125, -0.0004127025604248047, 0.037017822265625, 0.007678985595703125, 0.0183868408203125, -0.0011835098266601562, -0.044189453125, -0.00814056396484375, 0.004261016845703125, 0.01299285888671875, 0.027557373046875, 0.005245208740234375, 0.0273284912109375, 0.01419830322265625, 0.005695343017578125, -0.0090789794921875, 0.01220703125, -0.0928955078125, -0.0113983154296875, -0.0292205810546875, -0.050201416015625, 0.0222930908203125, 0.031158447265625, 0.003955841064453125, 0.0160369873046875, 0.03302001953125, -0.00021767616271972656, -0.01174163818359375, -0.016143798828125, -0.0207061767578125, -0.0175628662109375, -0.04949951171875, 0.00970458984375, 0.00705718994140625, -0.0036182403564453125, 0.0189056396484375, 0.06341552734375, 0.0038852691650390625, 0.04034423828125, -0.0233917236328125, 0.0212554931640625, 0.0256805419921875, 0.003192901611328125, 0.0233306884765625, 0.027130126953125, -0.040313720703125, -0.005908966064453125, -0.012359619140625, -0.025726318359375, -0.0197906494140625, 0.00379180908203125, 0.013824462890625, 0.0031185150146484375, 0.0122833251953125, 0.00901031494140625, 0.0067901611328125, -0.021148681640625, 0.023956298828125, 0.022552490234375, -0.01163482666015625, -0.04705810546875, -0.0285186767578125, 0.0217132568359375, 0.01396942138671875, -0.00030541419982910156, 0.0021038055419921875, -0.00484466552734375, 0.0208282470703125, 0.0248870849609375, 0.005397796630859375, -0.004039764404296875, -0.0148468017578125, -0.08282470703125, -0.02874755859375, 0.00907135009765625, -0.00963592529296875, -0.006305694580078125, 0.018280029296875, -0.052520751953125, -0.00855255126953125, -0.01445770263671875, 0.042572021484375, -0.044952392578125, -0.005329132080078125, -0.01209259033203125, -0.006732940673828125, 0.053436279296875, 0.037567138671875, -0.02587890625, -0.0001537799835205078, -0.05609130859375, -0.023284912109375, 0.0260772705078125, 0.002826690673828125, -0.043426513671875, -0.026336669921875, 0.019287109375, -0.009429931640625, 0.037994384765625, 0.006740570068359375, -0.0311126708984375, 0.01529693603515625, 0.0301666259765625, -0.01666259765625, -0.0221099853515625, 0.03857421875, 0.022857666015625, 0.0305328369140625, 0.017913818359375, 0.013824462890625, -0.0014133453369140625, -0.034271240234375, 0.0181884765625, -0.049102783203125, -0.025177001953125, -0.00795745849609375, -0.04229736328125, 0.008270263671875, 0.022216796875, 0.0007605552673339844, 0.010772705078125, -0.0318603515625, 0.0023651123046875, -0.01788330078125, 0.0241546630859375, -0.0296478271484375, -0.03143310546875, 0.056182861328125, -0.019561767578125, -0.05035400390625, -0.017913818359375, -0.01525115966796875, 0.0240478515625, 0.0125885009765625, -0.01015472412109375, -0.01255035400390625, -0.0330810546875, 0.045166015625, 0.059539794921875, 0.032012939453125, 0.035888671875, 0.005035400390625, 0.011077880859375, -0.0189208984375, 0.017913818359375, 0.0203857421875, 0.0001614093780517578, 0.0162353515625, -0.009613037109375, 0.010650634765625, -0.0107269287109375, -0.015289306640625, -0.0222930908203125, -0.0135040283203125, 0.0163421630859375, 0.00321197509765625, -0.00922393798828125, -0.0004401206970214844, -0.02398681640625, -0.01322174072265625, -0.01001739501953125, -0.0009150505065917969, 0.0042877197265625, 0.041168212890625, -0.01361083984375, -0.031951904296875, 0.01201629638671875, -0.00830841064453125, 0.0023059844970703125, -0.0205078125, 0.06884765625, 0.0168304443359375, -0.0233306884765625, -0.0108184814453125, -0.0181884765625, 0.0257415771484375, -0.0177459716796875, -0.018585205078125, 0.016082763671875, -0.0301666259765625, -0.057891845703125, 0.0218505859375, -0.03936767578125, 0.0217132568359375, 0.036376953125, -0.022796630859375, 0.0070953369140625, 0.0219573974609375, -0.00724029541015625, -0.007335662841796875, -0.01454925537109375, -0.0148468017578125, -0.018829345703125, -0.0264739990234375, 0.01435089111328125, -0.005878448486328125, -0.013763427734375, 0.01532745361328125, -0.0174102783203125, -0.041900634765625, -0.00235748291015625, -0.05133056640625, 0.07550048828125, -0.0307159423828125, -0.01959228515625, 0.004894256591796875, 0.0117950439453125, -0.0026950836181640625, 0.0008940696716308594, 0.034149169921875, -0.05914306640625, -0.0194244384765625, 0.015411376953125, 0.0009832382202148438, -0.00746917724609375, 0.006160736083984375, -0.0714111328125, 0.0787353515625, -0.00988006591796875, 0.038116455078125, 0.0291595458984375, 0.0146942138671875, -0.03955078125, -0.01220703125, -0.039794921875, 0.031890869140625, 0.0589599609375, -0.0034618377685546875, -0.009490966796875, -0.01221466064453125, -0.006015777587890625, 0.0207977294921875, 0.0391845703125, 0.01435089111328125, -0.00879669189453125, -0.0303955078125, 0.019195556640625, 0.0308380126953125, -0.0144805908203125, 0.016632080078125, 0.0015964508056640625, -0.0073089599609375, 0.034149169921875, -0.023773193359375, 0.0211029052734375, -0.0264129638671875, 0.00826263427734375, 0.01393890380859375, -0.0178070068359375, -0.030303955078125, -0.0032176971435546875, 0.00276947021484375, -0.0234832763671875, -0.00862884521484375, 0.005382537841796875, -0.036895751953125, -0.00560760498046875, 0.054229736328125, 0.048492431640625, -0.07159423828125, -0.0282135009765625, -0.0418701171875, 0.054595947265625, 0.00412750244140625, 0.038604736328125, 0.05291748046875, 0.00780487060546875, 0.101318359375, 0.01442718505859375, 0.0230255126953125, 0.00803375244140625, 0.014312744140625, 0.0301055908203125, 0.0196990966796875, 0.01016998291015625, -0.0439453125, -0.011962890625, 0.051544189453125, 0.0526123046875, -0.02789306640625, -0.039764404296875, 0.0167083740234375, 0.0247344970703125, 0.0022296905517578125, 0.041717529296875, 0.048858642578125, 0.04296875, 0.059906005859375, -0.03363037109375, -0.0116729736328125, 0.034423828125, 0.036407470703125, 0.016876220703125, 0.0296783447265625, -0.0232086181640625, -0.0472412109375, -0.013641357421875, -0.0007882118225097656, 0.01012420654296875, 0.02777099609375, 0.0027828216552734375, 0.03668212890625, 0.007785797119140625, 0.00299072265625, 0.01403045654296875, 0.01154327392578125, 0.00525665283203125, -0.044219970703125, 0.00836181640625, -0.039825439453125, 0.022125244140625, 0.01314544677734375, 0.03759765625, -0.046875, 0.00527191162109375, -0.013214111328125, -0.04901123046875, -0.01149749755859375, -0.006275177001953125, -0.0209503173828125, -0.0192718505859375, -0.0290679931640625, -0.01180267333984375, 0.01007080078125, 0.007190704345703125, 0.01230621337890625, 0.036102294921875, 0.005329132080078125, 0.01152801513671875, -0.020172119140625, 0.020477294921875, -0.023406982421875, -0.015655517578125, 0.036407470703125, -0.008392333984375, 0.0546875, -0.1070556640625, -0.0220947265625, -0.047027587890625, -0.05078125, 0.05975341796875, 0.050048828125, -0.023712158203125, 0.00470733642578125, -0.00998687744140625, -0.01210784912109375, 0.00559234619140625, -0.011566162109375, 0.0138702392578125, 0.032135009765625, 0.00664520263671875, 0.0149078369140625, -0.018951416015625, -0.02056884765625, -0.00984954833984375, 0.05255126953125, 0.02093505859375, 0.041351318359375, -0.0220489501953125, 0.0167999267578125, 0.01355743408203125, -0.01116180419921875, 0.01305389404296875, -0.019775390625, 0.047637939453125, 0.01125335693359375, -0.0006279945373535156, -0.032135009765625, 0.00107574462890625, -0.0023250579833984375, 0.0474853515625, -0.059295654296875, -0.002468109130859375, -0.025726318359375, 0.02899169921875, -0.0234832763671875, -0.006561279296875, -0.0166168212890625, 0.0117340087890625, -0.0025348663330078125, -0.0194549560546875, 0.037445068359375, 0.0298614501953125, -0.00618743896484375, 0.03717041015625, -0.020660400390625, 0.0172882080078125, 0.009521484375, 0.01361083984375, 0.0048980712890625, 0.0246429443359375, -0.07208251953125, 0.0203857421875, 0.0223846435546875, -0.0126190185546875, 0.00946044921875, 0.0301971435546875, -0.01198577880859375, 0.0149383544921875, 0.06756591796875, 0.044464111328125, 0.0287628173828125, 0.0340576171875, -0.054779052734375, 0.005950927734375, 0.04107666015625, -0.0035724639892578125, 0.0189971923828125, -0.0040283203125, -0.033843994140625, -0.0194854736328125, -0.006183624267578125, 0.0009069442749023438, -0.002227783203125, -0.032989501953125, -0.0262908935546875, 0.0196685791015625, 0.03497314453125, -0.0186614990234375, -0.0018949508666992188, 0.023345947265625, -0.051971435546875, 0.0355224609375, -0.02642822265625, -0.07489013671875, 0.01117706298828125, 0.0113067626953125, -0.0175628662109375, 0.0005435943603515625, -0.04754638671875, -0.022705078125, -0.031890869140625, -0.01123809814453125, 0.01351165771484375, -0.01386260986328125, -0.0023784637451171875, -0.0206756591796875, -0.016693115234375, 0.027923583984375, 0.0290069580078125, -0.0013208389282226562, 0.035858154296875, 0.0197296142578125, 0.0028705596923828125, -0.0836181640625, -0.03167724609375, -0.023223876953125, 0.031982421875, 0.0151519775390625, -0.0272369384765625, -0.0037174224853515625, -0.0212860107421875, -0.01287841796875, 0.059051513671875, 0.0173187255859375, -0.017486572265625, -0.029083251953125, 0.022674560546875, 0.0032215118408203125, 0.0023250579833984375, 0.0018167495727539062, -0.01276397705078125, -0.022308349609375, 0.005596160888671875, 0.0263519287109375, -0.01277923583984375, 0.047821044921875, -0.0217437744140625, -0.03240966796875, 0.01303863525390625, 0.02423095703125, 0.035858154296875, -0.02716064453125, 0.0202789306640625, 0.01995849609375, 0.0269317626953125, -0.02557373046875, 0.006961822509765625, 0.00389862060546875, 0.01317596435546875, 0.0080718994140625, -0.05010986328125, -0.07562255859375, -0.043487548828125, 0.08306884765625, 0.05145263671875, 0.0308074951171875, -0.0235595703125, -0.040924072265625, -0.046722412109375, 0.01201629638671875, -0.023956298828125, 0.0027408599853515625, -0.07080078125, -0.0080718994140625, 0.01134490966796875, -0.01245880126953125, 0.01470947265625, -0.036346435546875, -0.03857421875, -0.004657745361328125, -0.055084228515625, 0.006076812744140625, -0.0728759765625, 0.027557373046875, -0.041748046875, -0.01113128662109375, -0.04010009765625, -0.0193328857421875, -0.009185791015625, -0.063232421875, -0.02337646484375, -0.04559326171875, 0.00875091552734375, -0.036346435546875, 0.0029621124267578125, -0.0200347900390625, 0.057373046875, -0.0227203369140625, 0.020233154296875, -0.005153656005859375, 0.006275177001953125, 0.008209228515625, 0.00811767578125, 0.0158538818359375, -0.0296783447265625, -0.01042938232421875, 0.0200958251953125, -0.006984710693359375, 0.01531219482421875, 0.01010894775390625, 0.018951416015625, -0.0203857421875, -0.0059051513671875, 0.00833892822265625, -0.0311279296875, 0.003795623779296875, 0.0151824951171875, -0.01473236083984375, -0.023406982421875, 0.005870819091796875, -0.054412841796875, -0.00916290283203125, 0.01348114013671875 ]
67d8cd0854f8f19af1af327702a41dba460ec1d0
Wordpress Stackexchange Q: Check if on last page of paginated post using wp_link_pages A client of mine reviews products on his site, and wants to display the review criteria and score on the last page of each posts. Typically, there are 3-5 pages per post, and I'm looking for a way to check if we're on the last page. ‹!--nextpage--› is used in the post to divide it into pages, and wp_link_pages on the front-end to display pagination links. I've been able to find ways of checking if we're on page one, or not on page one, or on a specific page. But nothing for checking if we're on the very last page. A: You can find this info in the global vars $multipage, $numpages, and $page global $multipage, $numpages, $page; if( $multipage && $page == $numpages ) echo 'last page';
Q: Check if on last page of paginated post using wp_link_pages A client of mine reviews products on his site, and wants to display the review criteria and score on the last page of each posts. Typically, there are 3-5 pages per post, and I'm looking for a way to check if we're on the last page. ‹!--nextpage--› is used in the post to divide it into pages, and wp_link_pages on the front-end to display pagination links. I've been able to find ways of checking if we're on page one, or not on page one, or on a specific page. But nothing for checking if we're on the very last page. A: You can find this info in the global vars $multipage, $numpages, and $page global $multipage, $numpages, $page; if( $multipage && $page == $numpages ) echo 'last page';
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:425556", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71785" }
[ 0.044952392578125, 0.0035152435302734375, 0.01544952392578125, -0.02923583984375, 0.01474761962890625, -0.0183258056640625, 0.018768310546875, -0.0239715576171875, 0.01561737060546875, -0.0029087066650390625, -0.04425048828125, 0.0012836456298828125, 0.00006705522537231445, -0.0175628662109375, 0.00519561767578125, -0.0372314453125, 0.0254974365234375, 0.007404327392578125, 0.0361328125, 0.00673675537109375, -0.0064239501953125, 0.017791748046875, 0.039398193359375, 0.006404876708984375, -0.002239227294921875, 0.01488494873046875, 0.04693603515625, -0.03228759765625, 0.0028018951416015625, -0.018463134765625, 0.01502227783203125, -0.0020294189453125, 0.0165863037109375, -0.0166778564453125, 0.01357269287109375, -0.017913818359375, -0.025177001953125, 0.005687713623046875, 0.003292083740234375, -0.002033233642578125, 0.022705078125, -0.001888275146484375, 0.004871368408203125, 0.0017795562744140625, -0.025604248046875, -0.0026493072509765625, -0.0099639892578125, -0.03961181640625, 0.0033245086669921875, 0.014190673828125, 0.01354217529296875, 0.00009697675704956055, 0.00006002187728881836, 0.01654052734375, -0.006561279296875, 0.0199127197265625, 0.04443359375, -0.044342041015625, 0.050140380859375, -0.05804443359375, -0.046905517578125, -0.030426025390625, 0.03839111328125, -0.01485443115234375, -0.042755126953125, -0.01451873779296875, -0.08087158203125, 0.01090240478515625, 0.03680419921875, -0.07489013671875, -0.0123138427734375, 0.01605224609375, -0.00479888916015625, -0.01184844970703125, 0.010345458984375, -0.0022125244140625, 0.0011663436889648438, 0.005126953125, -0.005764007568359375, 0.0243682861328125, -0.07476806640625, -0.00042557716369628906, -0.053131103515625, -0.044769287109375, 0.006298065185546875, -0.0113372802734375, -0.035491943359375, 0.0282135009765625, -0.01215362548828125, -0.027862548828125, -0.020660400390625, 0.036102294921875, -0.02783203125, -0.0167999267578125, -0.041259765625, -0.01580810546875, 0.0256500244140625, 0.035675048828125, 0.00876617431640625, -0.0181121826171875, 0.0047149658203125, -0.041656494140625, -0.0262908935546875, -0.0201568603515625, 0.031524658203125, 0.05224609375, 0.00588226318359375, -0.021514892578125, 0.049407958984375, 0.0027179718017578125, 0.0167236328125, 0.062744140625, -0.003292083740234375, -0.0377197265625, -0.020263671875, 0.0072784423828125, -0.04107666015625, 0.00666046142578125, 0.020172119140625, -0.00047326087951660156, -0.02496337890625, -0.023468017578125, 0.03277587890625, 0.0030422210693359375, 0.0174560546875, 0.02728271484375, -0.0153350830078125, -0.019866943359375, 0.043121337890625, 0.11199951171875, -0.043487548828125, -0.0283355712890625, -0.03753662109375, -0.060150146484375, -0.0306549072265625, -0.052337646484375, 0.005168914794921875, 0.01788330078125, -0.01873779296875, 0.027099609375, -0.06671142578125, -0.0300750732421875, 0.02490234375, -0.0517578125, -0.001529693603515625, 0.0093536376953125, 0.0174102783203125, 0.0243682861328125, -0.0274810791015625, -0.043304443359375, 0.045166015625, -0.010406494140625, 0.028350830078125, -0.0193328857421875, -0.05413818359375, -0.038055419921875, -0.062103271484375, -0.005725860595703125, 0.01119232177734375, -0.01311492919921875, 0.022369384765625, -0.0037479400634765625, 0.028961181640625, -0.047760009765625, -0.06292724609375, 0.007511138916015625, -0.07269287109375, -0.02117919921875, 0.01385498046875, 0.0264739990234375, -0.02056884765625, -0.026275634765625, 0.012939453125, 0.028717041015625, 0.0008440017700195312, 0.03472900390625, 0.0335693359375, 0.01160430908203125, 0.00441741943359375, 0.039825439453125, -0.01316070556640625, -0.027984619140625, 0.060394287109375, -0.046905517578125, -0.033660888671875, -0.0177154541015625, 0.0374755859375, 0.038055419921875, -0.003086090087890625, 0.037353515625, 0.034881591796875, -0.000637054443359375, -0.024200439453125, 0.0212249755859375, 0.01104736328125, -0.03143310546875, -0.031646728515625, -0.0223846435546875, -0.0153961181640625, 0.006114959716796875, -0.012847900390625, 0.01922607421875, -0.0226593017578125, 0.0217132568359375, -0.041534423828125, 0.0017213821411132812, -0.0120697021484375, 0.0223846435546875, 0.0224151611328125, 0.032470703125, 0.007129669189453125, -0.017913818359375, -0.01442718505859375, 0.00618743896484375, -0.006572723388671875, 0.01458740234375, -0.0162200927734375, -0.0245819091796875, -0.0171966552734375, -0.00823974609375, -0.0235595703125, 0.01605224609375, -0.02978515625, 0.0110626220703125, 0.06304931640625, 0.0000655055046081543, -0.03521728515625, -0.01947021484375, 0.016815185546875, 0.01763916015625, -0.057403564453125, 0.041046142578125, 0.035125732421875, 0.00785064697265625, -0.0251922607421875, 0.0196380615234375, 0.0169677734375, -0.022369384765625, -0.016632080078125, 0.042388916015625, 0.048614501953125, 0.005886077880859375, 0.0005779266357421875, -0.0272979736328125, -0.01096343994140625, -0.09228515625, 0.005550384521484375, -0.02703857421875, 0.00506591796875, 0.05816650390625, 0.034027099609375, 0.01922607421875, -0.006359100341796875, -0.0240478515625, -0.0011606216430664062, 0.0217437744140625, 0.021881103515625, 0.058624267578125, -0.01166534423828125, 0.00615692138671875, -0.024749755859375, 0.0259246826171875, 0.029296875, -0.017852783203125, 0.0177459716796875, -0.017913818359375, 0.0304107666015625, 0.01152801513671875, -0.004375457763671875, -0.035552978515625, 0.020111083984375, 0.02020263671875, 0.002361297607421875, -0.0147705078125, 0.00894927978515625, -0.00795745849609375, -0.01186370849609375, 0.00888824462890625, 0.0204010009765625, -0.019866943359375, -0.0310516357421875, 0.004058837890625, 0.0137176513671875, -0.00820159912109375, -0.038421630859375, -0.004337310791015625, 0.0298919677734375, -0.003818511962890625, 0.016326904296875, -0.0122222900390625, 0.0002529621124267578, 0.0249786376953125, -0.03790283203125, 0.0677490234375, 0.00345611572265625, -0.02606201171875, 0.01450347900390625, -0.0291900634765625, 0.05438232421875, -0.051177978515625, -0.028839111328125, 0.043121337890625, -0.013946533203125, 0.004322052001953125, -0.01001739501953125, 0.0325927734375, -0.003116607666015625, -0.0186614990234375, -0.03900146484375, -0.01239013671875, -0.033966064453125, 0.00325775146484375, -0.004047393798828125, -0.010223388671875, 0.0089111328125, -0.043487548828125, 0.030364990234375, -0.01136016845703125, -0.10638427734375, -0.0948486328125, 0.0369873046875, -0.061981201171875, -0.02191162109375, 0.0394287109375, -0.0302276611328125, -0.0193328857421875, 0.08526611328125, -0.0149383544921875, -0.0161285400390625, -0.0322265625, -0.053436279296875, -0.08160400390625, -0.0748291015625, -0.00539398193359375, 0.0009179115295410156, 0.0220489501953125, -0.02239990234375, 0.08251953125, -0.00952911376953125, -0.07952880859375, -0.0660400390625, 0.009521484375, -0.0239410400390625, -0.03839111328125, -0.06353759765625, 0.0007796287536621094, 0.0057220458984375, -0.007534027099609375, 0.007114410400390625, -0.010040283203125, 0.037200927734375, 0.027313232421875, -0.02886962890625, 0.003307342529296875, 0.00189971923828125, 0.025909423828125, 0.0186920166015625, 0.0207672119140625, 0.00677490234375, -0.021392822265625, -0.059722900390625, 0.020294189453125, -0.0697021484375, 0.0190277099609375, 0.047393798828125, -0.01494598388671875, 0.01343536376953125, -0.0132598876953125, -0.0114288330078125, -0.007091522216796875, 0.007427215576171875, -0.01094818115234375, 0.019927978515625, -0.0020809173583984375, -0.01035308837890625, -0.01175689697265625, 0.01715087890625, -0.0218505859375, 0.0204925537109375, 0.004428863525390625, -0.015533447265625, -0.03802490234375, 0.0180206298828125, -0.04766845703125, -0.03680419921875, 0.03338623046875, -0.0169525146484375, 0.0091094970703125, -0.0036945343017578125, -0.022430419921875, 0.033447265625, 0.08880615234375, -0.01105499267578125, -0.048431396484375, -0.004634857177734375, -0.004665374755859375, 0.03857421875, -0.005352020263671875, 0.02899169921875, -0.048614501953125, -0.0692138671875, 0.01471710205078125, -0.0095672607421875, -0.00469970703125, -0.03253173828125, 0.0701904296875, -0.04791259765625, -0.0182037353515625, 0.01482391357421875, 0.01324462890625, -0.006732940673828125, 0.051788330078125, -0.03240966796875, 0.060455322265625, -0.0259246826171875, -0.01384735107421875, -0.05584716796875, 0.0096435546875, -0.0272216796875, 0.0104827880859375, 0.00960540771484375, -0.01233673095703125, -0.02020263671875, 0.0022869110107421875, 0.043914794921875, 0.041107177734375, 0.0212860107421875, -0.0216827392578125, 0.0215911865234375, 0.00629425048828125, 0.048583984375, -0.02142333984375, 0.00516510009765625, 0.0022029876708984375, 0.003215789794921875, 0.0067596435546875, -0.044647216796875, -0.03350830078125, -0.015228271484375, -0.0222320556640625, -0.055694580078125, -0.01580810546875, 0.05157470703125, 0.06689453125, 0.02349853515625, 0.0086212158203125, -0.04290771484375, -0.0654296875, -0.015350341796875, 0.0232086181640625, -0.06585693359375, 0.033203125, 0.01277923583984375, 0.039306640625, -0.0032958984375, -0.079833984375, 0.01546478271484375, 0.0379638671875, -0.0027790069580078125, 0.036773681640625, 0.0092620849609375, -0.03155517578125, 0.078125, -0.0018129348754882812, -0.03118896484375, 0.00168609619140625, 0.0263824462890625, -0.013092041015625, -0.036865234375, 0.01056671142578125, -0.05169677734375, 0.04766845703125, 0.0222930908203125, -0.0390625, -0.01152801513671875, -0.00606536865234375, 0.06268310546875, -0.048553466796875, 0.058349609375, -0.04803466796875, -0.0180206298828125, 0.0011796951293945312, 0.0235443115234375, 0.052520751953125, 0.037139892578125, -0.00640106201171875, 0.049774169921875, 0.033935546875, 0.01358795166015625, 0.01219940185546875, 0.040863037109375, -0.005290985107421875, 0.048126220703125, 0.01291656494140625, 0.0082244873046875, -0.031494140625, 0.00977325439453125, -0.00435638427734375, -0.009307861328125, -0.0129547119140625, -0.0247650146484375, -0.018524169921875, 0.00661468505859375, 0.0174560546875, 0.037200927734375, 0.0501708984375, -0.0168304443359375, -0.031951904296875, -0.01168060302734375, -0.00927734375, -0.042724609375, -0.06719970703125, -0.00890350341796875, -0.01125335693359375, -0.0028095245361328125, -0.01629638671875, 0.052490234375, -0.02569580078125, 0.0176849365234375, -0.0052490234375, 0.0023860931396484375, 0.0280609130859375, 0.0252685546875, 0.031280517578125, 0.0105133056640625, -0.034637451171875, 0.0195465087890625, 0.0219268798828125, 0.0311431884765625, -0.05926513671875, -0.0006384849548339844, -0.0131988525390625, 0.012298583984375, 0.07928466796875, -0.0167999267578125, 0.039031982421875, -0.021484375, 0.03289794921875, 0.06219482421875, -0.01302337646484375, -0.0129241943359375, -0.0215301513671875, 0.0008225440979003906, 0.00881195068359375, -0.0100555419921875, -0.020233154296875, -0.01568603515625, 0.00400543212890625, 0.0340576171875, -0.02313232421875, 0.0142364501953125, -0.006595611572265625, -0.040191650390625, -0.0283966064453125, 0.008575439453125, -0.0151214599609375, -0.005580902099609375, -0.0020046234130859375, -0.019805908203125, -0.0158233642578125, -0.00847625732421875, 0.04681396484375, -0.032135009765625, -0.0113525390625, 0.0220489501953125, 0.01885986328125, 0.01641845703125, -0.0151824951171875, -0.03118896484375, 0.0281829833984375, -0.06915283203125, -0.013641357421875, 0.01358795166015625, -0.00667572021484375, -0.0310516357421875, -0.047454833984375, 0.044952392578125, 0.0401611328125, -0.00981903076171875, -0.06195068359375, -0.00406646728515625, -0.01123809814453125, 0.017669677734375, 0.03375244140625, 0.00457000732421875, 0.104248046875, -0.0154571533203125, 0.07611083984375, 0.045379638671875, 0.05718994140625, -0.040130615234375, -0.0310516357421875, 0.031768798828125, -0.004344940185546875, -0.04931640625, 0.0008177757263183594, -0.0733642578125, -0.03472900390625, 0.036529541015625, -0.02301025390625, -0.0265045166015625, 0.002532958984375, 0.00750732421875, 0.005443572998046875, -0.0010547637939453125, 0.053955078125, -0.03192138671875, 0.04962158203125, -0.012969970703125, -0.0267333984375, 0.006183624267578125, -0.005184173583984375, 0.00994110107421875, 0.01390838623046875, -0.001773834228515625, -0.0124053955078125, -0.0209503173828125, -0.01275634765625, 0.0526123046875, 0.0243988037109375, 0.056610107421875, 0.021881103515625, 0.027557373046875, 0.0328369140625, 0.0115966796875, 0.0298614501953125, -0.0235595703125, 0.0210723876953125, -0.007221221923828125, 0.0036373138427734375, 0.0097503662109375, -0.029510498046875, 0.00408935546875, 0.0172271728515625, 0.01739501953125, -0.04229736328125, 0.019561767578125, 0.00890350341796875, -0.0005636215209960938, 0.0023441314697265625, -0.011077880859375, -0.001651763916015625, -0.02276611328125, 0.05804443359375, -0.007297515869140625, 0.00873565673828125, 0.0277557373046875, -0.041259765625, -0.01666259765625, -0.0267486572265625, 0.0400390625, 0.006420135498046875, -0.05126953125, -0.01461029052734375, 0.0238494873046875, -0.039459228515625, -0.00846099853515625, -0.00878143310546875, -0.0107574462890625, -0.0288848876953125, -0.0263519287109375, 0.00862884521484375, -0.043670654296875, 0.029083251953125, 0.03594970703125, 0.012054443359375, 0.00832366943359375, 0.05499267578125, 0.000804901123046875, 0.005023956298828125, 0.031890869140625, -0.0672607421875, -0.058319091796875, 0.00955963134765625, 0.0287322998046875, 0.0198516845703125, -0.0187835693359375, 0.0266876220703125, -0.056243896484375, -0.0175018310546875, -0.0066375732421875, 0.0025119781494140625, 0.07305908203125, -0.05377197265625, -0.01019287109375, 0.0290985107421875, 0.0004229545593261719, -0.0093841552734375, -0.01068878173828125, 0.006450653076171875, -0.02862548828125, 0.00959014892578125, -0.019989013671875, -0.007114410400390625, -0.01320648193359375, -0.048126220703125, -0.04864501953125, 0.084716796875, -0.03448486328125, 0.03662109375, 0.01030731201171875, 0.0285797119140625, 0.00848388671875, 0.0245361328125, -0.042816162109375, 0.03839111328125, -0.01120758056640625, 0.107666015625, -0.046630859375, -0.0291290283203125, 0.058441162109375, 0.07611083984375, -0.0176849365234375, -0.002613067626953125, -0.0286102294921875, -0.026397705078125, -0.01480865478515625, 0.058380126953125, 0.032257080078125, 0.015899658203125, -0.023590087890625, -0.0154266357421875, 0.003421783447265625, -0.0212249755859375, 0.026519775390625, -0.0239715576171875, -0.015045166015625, 0.0007624626159667969, 0.0211029052734375, -0.0004611015319824219, -0.033172607421875, -0.02545166015625, -0.0556640625, -0.00888824462890625, 0.029327392578125, 0.008392333984375, 0.00839996337890625, 0.03271484375, 0.02288818359375, -0.07183837890625, -0.0362548828125, -0.028533935546875, 0.042083740234375, -0.011993408203125, 0.034454345703125, 0.0138397216796875, 0.0246734619140625, 0.044219970703125, -0.0247344970703125, 0.0117340087890625, 0.015625, -0.0310821533203125, 0.0831298828125, 0.053497314453125, 0.03076171875, -0.022796630859375, 0.0029811859130859375, 0.01049041748046875, 0.074462890625, -0.062744140625, -0.0120849609375, 0.01082611083984375, -0.003692626953125, -0.00955963134765625, -0.0196075439453125, -0.0032978057861328125, 0.0195159912109375, 0.007495880126953125, -0.0198516845703125, -0.037322998046875, -0.0109405517578125, 0.061798095703125, -0.00533294677734375, 0.002101898193359375, -0.01447296142578125, -0.086669921875, 0.003871917724609375, 0.0122222900390625, 0.0261383056640625, 0.00693511962890625, -0.0223541259765625, 0.03570556640625, -0.0185699462890625, 0.026031494140625, -0.01751708984375, 0.034942626953125, -0.0364990234375, 0.02850341796875, -0.04608154296875, -0.05072021484375, -0.0305633544921875, 0.039642333984375, 0.0080108642578125, -0.02996826171875, -0.038726806640625, 0.0065155029296875, 0.0323486328125, -0.018829345703125, 0.042877197265625, 0.002864837646484375, -0.0177001953125, -0.034393310546875, 0.0284271240234375, 0.037261962890625, 0.02056884765625, 0.0016660690307617188, 0.037567138671875, 0.024810791015625, 0.01654052734375, 0.028717041015625, 0.0228424072265625, -0.003925323486328125, 0.0465087890625, 0.0259246826171875, 0.049957275390625, 0.060211181640625, -0.061767578125, -0.019927978515625, 0.00897216796875, 0.01088714599609375, -0.0238800048828125, 0.01157379150390625, -0.005443572998046875, 0.0211029052734375, 0.0119171142578125, -0.01276397705078125, 0.0301055908203125, -0.00458526611328125, -0.00800323486328125, 0.031707763671875, 0.024017333984375, -0.0028324127197265625, -0.01032257080078125, -0.0184478759765625, -0.0025177001953125, 0.045135498046875, 0.0006642341613769531, 0.0252532958984375, -0.01383209228515625, 0.019287109375, 0.01116180419921875, 0.0182952880859375, -0.0199127197265625, -0.016265869140625, 0.0634765625, -0.0145721435546875, 0.005519866943359375, -0.006603240966796875, -0.06414794921875, 0.030181884765625, 0.01763916015625, -0.004150390625, 0.01220703125, -0.0128173828125, 0.021820068359375, 0.006687164306640625, -0.004608154296875, -0.0163116455078125, 0.0181121826171875, 0.0093841552734375, -0.0012731552124023438, 0.035736083984375, -0.00885772705078125, -0.0406494140625, 0.045074462890625, 0.0142669677734375, -0.0284423828125, 0.024261474609375, -0.05181884765625, 0.029022216796875, 0.0219879150390625, 0.027801513671875, 0.0006093978881835938, -0.00797271728515625, -0.0091705322265625, 0.0031280517578125, 0.0178070068359375, -0.0300445556640625, 0.0258941650390625, 0.031005859375, -0.02545166015625, 0.0230560302734375, 0.021942138671875, -0.0290985107421875, -0.0012674331665039062, 0.018524169921875, -0.018707275390625, 0.0093231201171875, -0.0210113525390625, -0.01227569580078125, -0.042022705078125, 0.0015506744384765625, 0.01342010498046875, -0.00527191162109375, -0.01514434814453125, 0.0075531005859375, 0.00830841064453125, 0.007015228271484375, -0.0136871337890625, -0.0103912353515625, 0.0226287841796875, -0.051727294921875, 0.0106201171875, -0.0180816650390625, 0.0308990478515625, -0.00907135009765625, -0.00774383544921875, -0.029388427734375, 0.021209716796875, -0.0101318359375, 0.01061248779296875, 0.031829833984375, 0.002536773681640625, 0.0212249755859375, -0.022735595703125, -0.01160430908203125, -0.0276947021484375, 0.0027484893798828125, 0.0135955810546875, 0.05108642578125, -0.0066070556640625, 0.03533935546875, 0.030731201171875, -0.0142974853515625, -0.059295654296875, -0.02978515625, 0.0169830322265625, 0.047393798828125, 0.01262664794921875, -0.0035686492919921875, 0.0160369873046875, -0.0177154541015625, -0.03924560546875, 0.043060302734375, 0.00970458984375, -0.0255279541015625, -0.038116455078125, -0.007617950439453125, -0.0195770263671875, -0.01305389404296875, -0.01424407958984375, -0.0128631591796875, -0.01136016845703125, 0.0335693359375, 0.035308837890625, 0.0357666015625, 0.007335662841796875, 0.043670654296875, -0.04595947265625, 0.0361328125, -0.01428985595703125, 0.0264892578125, 0.034271240234375, -0.007465362548828125, 0.01280975341796875, 0.018951416015625, -0.048736572265625, -0.01441192626953125, -0.00783538818359375, 0.01120758056640625, 0.006374359130859375, -0.00740814208984375, -0.0309906005859375, -0.0263671875, 0.043731689453125, 0.0374755859375, 0.0198516845703125, -0.01273345947265625, 0.054962158203125, -0.0066375732421875, -0.04217529296875, 0.035003662109375, -0.0032711029052734375, 0.008758544921875, 0.0301055908203125, 0.016021728515625, -0.0118560791015625, -0.00492095947265625, -0.003376007080078125, -0.04437255859375, -0.0018606185913085938, 0.003814697265625, 0.0191650390625, -0.050201416015625, -0.00470733642578125, 0.0419921875, -0.050506591796875, -0.03173828125, 0.007053375244140625, 0.0078582763671875, -0.018585205078125, 0.0026378631591796875, 0.0049285888671875, 0.04241943359375, -0.07470703125, -0.0362548828125, 0.00286102294921875, 0.0223388671875, -0.01184844970703125, -0.005462646484375, 0.01021575927734375, 0.023590087890625, -0.018402099609375, 0.00392913818359375, -0.0098419189453125, 0.0231781005859375, -0.0221710205078125, 0.0980224609375, 0.0023593902587890625, 0.1270751953125, 0.01062774658203125, 0.038665771484375, 0.0255889892578125, -0.018646240234375, 0.05706787109375, -0.047576904296875, -0.0036792755126953125, 0.007534027099609375, -0.046783447265625, -0.032806396484375, 0.0015783309936523438, -0.0005125999450683594, -0.005275726318359375, 0.00937652587890625 ]
cd934c9ac959aacbd660556d538696c8162a8ffb
Wordpress Stackexchange Q: Is it possible to add new user Roles? I wonder if it is possible to create a new user role and give him special limited abilities? I'd like to have some users who can only add events onto the calendar. They should only be able to work within events calendar taxonomy and edit add their posts but not publish them something like contributor but more limited! A: Yes. WordPress has robust built-in Roles and Capabilities system desgined to do exactly what you are looking for. To add a new role, use the add_role() function in your theme's functions.php or a plug-in like so: $role = add_role( 'event_manager', 'Event Manager', array( 'read' => true, // True allows that capability ) ); if ( null !== $role ) { echo 'Yay! New role created!'; } else { echo 'Oh... the event_manager role already exists.'; } To add a new capability, use the add_cap() function like this: $role = get_role( 'event_manager' ); $role->add_cap( 'manage_events' );
Q: Is it possible to add new user Roles? I wonder if it is possible to create a new user role and give him special limited abilities? I'd like to have some users who can only add events onto the calendar. They should only be able to work within events calendar taxonomy and edit add their posts but not publish them something like contributor but more limited! A: Yes. WordPress has robust built-in Roles and Capabilities system desgined to do exactly what you are looking for. To add a new role, use the add_role() function in your theme's functions.php or a plug-in like so: $role = add_role( 'event_manager', 'Event Manager', array( 'read' => true, // True allows that capability ) ); if ( null !== $role ) { echo 'Yay! New role created!'; } else { echo 'Oh... the event_manager role already exists.'; } To add a new capability, use the add_cap() function like this: $role = get_role( 'event_manager' ); $role->add_cap( 'manage_events' ); A: Yes, definitely possible with a plugin like Members. You can create new roles and capabilities, but remember - you'll actually need inject these custom capabilities into your plugin. What you may want to do is just install the plugin and then modify the existing contributor role to suite your needs. For really granular control, you could bundle that with the Role Scoper plugin as well. Thanks! A: Add the below code in functions.php file add_role( 'custom_editor', __( 'Custom Editor' ), array( 'read' => true, // true allows this capability 'edit_posts' => true, ) ); Replace Custom Editor with your role name A: Besides pure code solutions, I would also suggest this free plugin I used since several years ago, and still. It's really stable and reliable, and actively updated. https://wordpress.org/plugins/user-role-editor/
wordpress
{ "language": "en", "length": 294, "provenance": "stackexchange_00019.jsonl.gz:425578", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71855" }
[ 0.0927734375, -0.0143280029296875, 0.00363922119140625, -0.0614013671875, 0.0286865234375, -0.042694091796875, 0.0307159423828125, -0.0032291412353515625, -0.0114288330078125, 0.03411865234375, 0.03167724609375, -0.0035572052001953125, 0.016937255859375, -0.050201416015625, -0.01024627685546875, -0.002918243408203125, 0.0163726806640625, -0.0303802490234375, -0.0242462158203125, -0.043243408203125, 0.03118896484375, -0.031494140625, -0.0137786865234375, 0.10003662109375, 0.017242431640625, 0.0218353271484375, 0.0306549072265625, -0.040740966796875, 0.02166748046875, -0.0035877227783203125, 0.01511383056640625, -0.0275726318359375, -0.0128021240234375, -0.001010894775390625, 0.0360107421875, -0.00458526611328125, 0.011688232421875, 0.001323699951171875, 0.02764892578125, -0.006961822509765625, 0.014678955078125, 0.0032672882080078125, -0.01345062255859375, 0.0535888671875, -0.017608642578125, -0.0556640625, 0.01155853271484375, -0.0207366943359375, -0.014556884765625, -0.02783203125, 0.03668212890625, -0.0106353759765625, 0.064697265625, -0.047149658203125, -0.00555419921875, 0.0086517333984375, -0.01244354248046875, 0.0171356201171875, 0.0259857177734375, 0.0051422119140625, -0.01107025146484375, 0.0226287841796875, 0.00820159912109375, -0.036285400390625, -0.005161285400390625, 0.00777435302734375, 0.037750244140625, 0.013519287109375, -0.02850341796875, -0.042205810546875, -0.00496673583984375, -0.002410888671875, -0.02325439453125, -0.0056304931640625, 0.01300811767578125, 0.01541900634765625, 0.00036334991455078125, -0.00958251953125, -0.002445220947265625, 0.0423583984375, 0.01386260986328125, -0.006175994873046875, 0.0279998779296875, -0.0008306503295898438, -0.00011235475540161133, 0.01184844970703125, -0.00992584228515625, -0.0084686279296875, -0.0017480850219726562, 0.0002892017364501953, -0.016937255859375, -0.04071044921875, -0.00531768798828125, 0.045501708984375, -0.016571044921875, 0.00176239013671875, 0.07879638671875, 0.058197021484375, 0.00789642333984375, -0.006793975830078125, 0.0097198486328125, -0.05230712890625, 0.0124053955078125, -0.0243072509765625, 0.00836181640625, 0.060821533203125, -0.006092071533203125, -0.0306243896484375, 0.00292205810546875, 0.021697998046875, 0.01251983642578125, -0.01611328125, 0.01016998291015625, -0.0127410888671875, -0.01531219482421875, 0.0137786865234375, -0.00235748291015625, 0.03826904296875, 0.0089111328125, 0.051239013671875, -0.004878997802734375, 0.02667236328125, -0.0063323974609375, -0.0277252197265625, -0.00632476806640625, -0.007083892822265625, -0.0115814208984375, -0.024017333984375, 0.027313232421875, 0.0006570816040039062, -0.02801513671875, 0.034088134765625, 0.029937744140625, -0.001911163330078125, -0.0111236572265625, -0.005275726318359375, 0.02093505859375, -0.00384521484375, -0.016387939453125, 0.0309906005859375, 0.0189361572265625, -0.03594970703125, -0.012969970703125, 0.015777587890625, 0.043731689453125, -0.004291534423828125, 0.01035308837890625, 0.031524658203125, 0.0445556640625, 0.0096435546875, 0.0091400146484375, -0.024078369140625, -0.013824462890625, 0.019256591796875, 0.03582763671875, -0.007350921630859375, 0.0160369873046875, -0.0080413818359375, 0.026519775390625, 0.005977630615234375, 0.026458740234375, 0.022064208984375, 0.015899658203125, -0.03582763671875, -0.03143310546875, -0.038604736328125, -0.06195068359375, -0.00711822509765625, 0.0206451416015625, -0.0250244140625, 0.02337646484375, -0.01172637939453125, 0.0230560302734375, -0.00428009033203125, -0.00933074951171875, 0.027313232421875, 0.021942138671875, 0.0251312255859375, 0.0135955810546875, -0.00655364990234375, -0.004390716552734375, -0.0296173095703125, 0.07965087890625, -0.02667236328125, -0.024658203125, -0.00696563720703125, -0.0171966552734375, -0.01271820068359375, 0.042999267578125, 0.01010894775390625, 0.0128326416015625, 0.00222015380859375, 0.0222625732421875, -0.0517578125, -0.0112457275390625, -0.04296875, 0.035003662109375, -0.0163421630859375, -0.00563812255859375, 0.052215576171875, 0.0638427734375, -0.01503753662109375, 0.01357269287109375, -0.048492431640625, -0.0633544921875, 0.00024068355560302734, -0.0254669189453125, 0.0364990234375, 0.0033740997314453125, -0.00173187255859375, -0.0145721435546875, -0.005279541015625, 0.005558013916015625, -0.08294677734375, -0.0299072265625, 0.0213775634765625, 0.023101806640625, 0.06884765625, 0.0156402587890625, 0.040374755859375, 0.02398681640625, -0.05792236328125, 0.027557373046875, 0.0213623046875, 0.05133056640625, -0.01457977294921875, 0.0145111083984375, -0.020050048828125, 0.07904052734375, 0.01486968994140625, -0.003612518310546875, -0.01467132568359375, 0.022003173828125, 0.007617950439453125, -0.006633758544921875, 0.008331298828125, 0.01348114013671875, -0.0693359375, -0.00665283203125, 0.050079345703125, 0.036224365234375, 0.041015625, 0.00916290283203125, 0.0174407958984375, 0.018402099609375, -0.037139892578125, 0.0296783447265625, -0.0237884521484375, -0.0298614501953125, 0.042877197265625, 0.00621795654296875, 0.04425048828125, 0.0119171142578125, 0.039093017578125, -0.026580810546875, 0.0396728515625, -0.030426025390625, -0.000732421875, -0.014801025390625, -0.0120086669921875, 0.0048675537109375, -0.06671142578125, -0.012725830078125, -0.0253753662109375, -0.0271148681640625, 0.0166778564453125, -0.002452850341796875, 0.0014295578002929688, -0.00797271728515625, -0.0013332366943359375, 0.0181121826171875, -0.0281524658203125, 0.005039215087890625, 0.006092071533203125, -0.0148468017578125, 0.036041259765625, -0.0215301513671875, 0.006195068359375, -0.00806427001953125, 0.00681304931640625, -0.01419830322265625, 0.0233001708984375, 0.0144195556640625, -0.0187225341796875, -0.0247039794921875, -0.0377197265625, 0.010772705078125, -0.0119476318359375, 0.01055908203125, -0.03155517578125, 0.00737762451171875, -0.0276031494140625, -0.047637939453125, 0.042510986328125, 0.0024433135986328125, -0.05340576171875, -0.056396484375, -0.029815673828125, 0.0281524658203125, -0.032745361328125, -0.00445556640625, 0.0528564453125, 0.01467132568359375, -0.00799560546875, 0.02325439453125, -0.06329345703125, -0.002704620361328125, 0.050445556640625, 0.02734375, -0.0160369873046875, -0.0135650634765625, 0.06707763671875, 0.02850341796875, -0.00585174560546875, 0.03887939453125, 0.0110015869140625, 0.01108551025390625, 0.0159454345703125, 0.037811279296875, 0.026153564453125, -0.0097808837890625, -0.044677734375, -0.005565643310546875, 0.0184783935546875, -0.01947021484375, -0.01259613037109375, 0.04150390625, 0.00865936279296875, -0.042327880859375, 0.003314971923828125, 0.020477294921875, 0.004467010498046875, 0.01025390625, 0.01171112060546875, -0.00592041015625, -0.00907135009765625, -0.00782012939453125, 0.07568359375, 0.0028095245361328125, -0.05242919921875, -0.03778076171875, 0.01544952392578125, -0.005756378173828125, -0.0250396728515625, 0.038604736328125, 0.0086517333984375, 0.01549530029296875, 0.010101318359375, -0.01071929931640625, 0.031646728515625, -0.04296875, -0.0340576171875, -0.0173187255859375, 0.005367279052734375, 0.004276275634765625, 0.03485107421875, 0.0167694091796875, 0.0218505859375, 0.038482666015625, -0.0284423828125, 0.005237579345703125, 0.006038665771484375, -0.025634765625, -0.034423828125, -0.0005240440368652344, -0.0162811279296875, 0.0161590576171875, -0.04052734375, 0.0262603759765625, 0.0281982421875, -0.00440216064453125, 0.01849365234375, -0.018890380859375, -0.0016345977783203125, -0.003864288330078125, -0.007572174072265625, 0.007251739501953125, -0.0238800048828125, 0.032958984375, 0.006534576416015625, 0.0085906982421875, -0.0038547515869140625, 0.0159149169921875, -0.031524658203125, -0.0965576171875, 0.0157928466796875, -0.0860595703125, 0.021240234375, -0.045867919921875, 0.011993408203125, 0.0145263671875, 0.11688232421875, -0.0037899017333984375, -0.00916290283203125, -0.031463623046875, 0.009796142578125, -0.052093505859375, -0.0291290283203125, -0.0170745849609375, 0.01224517822265625, 0.0004177093505859375, 0.005489349365234375, 0.005889892578125, 0.023406982421875, -0.05194091796875, 0.07208251953125, -0.00115966796875, 0.008636474609375, 0.033477783203125, -0.0251007080078125, -0.0021266937255859375, 0.021270751953125, -0.00798797607421875, -0.004741668701171875, -0.025238037109375, -0.0139617919921875, -0.09814453125, -0.0247955322265625, -0.020111083984375, 0.083740234375, 0.007663726806640625, 0.0169525146484375, -0.017578125, 0.05609130859375, 0.018035888671875, -0.01861572265625, 0.016937255859375, -0.0010929107666015625, 0.015594482421875, -0.0037479400634765625, 0.0036334991455078125, -0.031829833984375, 0.0025005340576171875, -0.00498199462890625, 0.001628875732421875, 0.01367950439453125, -0.047821044921875, -0.03485107421875, -0.01861572265625, -0.0269622802734375, -0.01222991943359375, -0.01322174072265625, -0.006717681884765625, 0.01232147216796875, -0.015655517578125, 0.0006465911865234375, -0.0172576904296875, -0.0301971435546875, 0.0059051513671875, -0.045379638671875, -0.00742340087890625, 0.0215606689453125, 0.077392578125, 0.026214599609375, -0.003387451171875, 0.0189208984375, 0.01534271240234375, 0.0207672119140625, 0.03131103515625, 0.038238525390625, 0.013519287109375, 0.004680633544921875, -0.0193023681640625, -0.0027484893798828125, 0.0209503173828125, -0.046844482421875, 0.01287841796875, 0.0241546630859375, -0.00432586669921875, 0.015869140625, 0.0172576904296875, 0.01904296875, -0.037933349609375, -0.01158905029296875, -0.004253387451171875, 0.0201873779296875, 0.03875732421875, -0.0160369873046875, 0.052978515625, -0.007015228271484375, -0.0242156982421875, 0.005046844482421875, -0.033935546875, -0.004993438720703125, 0.020233154296875, 0.00136566162109375, -0.0197906494140625, -0.01312255859375, -0.016143798828125, -0.01971435546875, -0.02294921875, -0.030914306640625, 0.0237579345703125, -0.0234375, -0.033294677734375, -0.007537841796875, -0.00412750244140625, 0.051239013671875, 0.0031909942626953125, -0.044097900390625, 0.003662109375, 0.0112457275390625, 0.0458984375, 0.0160064697265625, -0.0390625, 0.0173492431640625, 0.02618408203125, 0.0242919921875, 0.006443023681640625, -0.03778076171875, 0.0215301513671875, -0.016357421875, -0.01593017578125, -0.00923919677734375, -0.0104217529296875, 0.01363372802734375, 0.0145721435546875, 0.00740814208984375, 0.01506805419921875, -0.024322509765625, 0.08056640625, 0.1005859375, -0.0220947265625, -0.01114654541015625, 0.045196533203125, -0.0207366943359375, -0.0110931396484375, -0.0008492469787597656, -0.03338623046875, -0.016754150390625, 0.023468017578125, 0.0285797119140625, -0.01348876953125, -0.00795745849609375, 0.0146331787109375, 0.010955810546875, -0.00823211669921875, -0.01016998291015625, -0.0153045654296875, -0.01215362548828125, -0.01102447509765625, 0.01708984375, 0.0187835693359375, 0.006092071533203125, -0.00629425048828125, 0.0154571533203125, -0.0345458984375, 0.01372528076171875, -0.002819061279296875, 0.01461029052734375, -0.030426025390625, -0.0167694091796875, -0.0994873046875, -0.0264739990234375, 0.020263671875, -0.004970550537109375, -0.0264434814453125, 0.00028204917907714844, -0.0389404296875, -0.0003986358642578125, -0.024810791015625, 0.0038661956787109375, -0.05804443359375, 0.036590576171875, -0.07537841796875, 0.0007872581481933594, 0.045074462890625, 0.01233673095703125, -0.0250701904296875, -0.027679443359375, -0.046661376953125, -0.02862548828125, -0.073974609375, -0.0142822265625, -0.033050537109375, 0.039642333984375, 0.049896240234375, 0.0278778076171875, 0.018035888671875, -0.0323486328125, -0.016876220703125, 0.01788330078125, 0.0347900390625, 0.048126220703125, -0.0004968643188476562, 0.006927490234375, 0.028839111328125, 0.024200439453125, 0.02386474609375, -0.00547027587890625, -0.0261077880859375, -0.025726318359375, -0.01293182373046875, -0.0220947265625, -0.00287628173828125, -0.0237884521484375, -0.00899505615234375, 0.0260162353515625, 0.06695556640625, -0.0024356842041015625, 0.0255126953125, -0.0273895263671875, 0.01189422607421875, -0.030059814453125, 0.000789642333984375, -0.056549072265625, -0.018768310546875, 0.01287841796875, -0.0382080078125, 0.059600830078125, -0.0036792755126953125, 0.02777099609375, 0.0174102783203125, -0.068115234375, 0.03961181640625, 0.0408935546875, -0.01175689697265625, 0.035125732421875, 0.045379638671875, -0.033721923828125, 0.0282135009765625, 0.031829833984375, 0.0163726806640625, 0.01105499267578125, 0.01276397705078125, -0.037200927734375, -0.0042572021484375, 0.0104522705078125, -0.010009765625, -0.0189971923828125, -0.02716064453125, -0.0113372802734375, 0.02783203125, 0.044342041015625, 0.03497314453125, -0.068603515625, 0.03009033203125, -0.0269775390625, -0.0032939910888671875, 0.09967041015625, -0.004241943359375, 0.00415802001953125, -0.011077880859375, 0.0460205078125, -0.0218353271484375, -0.01300811767578125, 0.01212310791015625, -0.029083251953125, -0.01337432861328125, 0.0015745162963867188, 0.009246826171875, 0.0265655517578125, 0.017486572265625, 0.0261993408203125, -0.023529052734375, 0.059234619140625, 0.0020771026611328125, 0.006191253662109375, 0.00379180908203125, -0.0236968994140625, -0.06890869140625, -0.0164794921875, -0.0076751708984375, -0.0202484130859375, -0.00148773193359375, -0.034149169921875, 0.047149658203125, 0.047943115234375, -0.0215301513671875, 0.021484375, 0.048553466796875, -0.02557373046875, -0.01861572265625, -0.036529541015625, 0.0108184814453125, 0.01264190673828125, -0.0077056884765625, 0.02294921875, -0.0026416778564453125, -0.06182861328125, -0.003948211669921875, -0.00933074951171875, 0.05340576171875, -0.0198822021484375, -0.0213165283203125, 0.031890869140625, -0.025665283203125, -0.006366729736328125, 0.03692626953125, 0.004669189453125, -0.027435302734375, -0.01349639892578125, 0.0250396728515625, -0.0239715576171875, 0.025543212890625, 0.0662841796875, -0.0377197265625, 0.1014404296875, -0.0100250244140625, 0.0035839080810546875, 0.0318603515625, 0.037933349609375, -0.045867919921875, 0.0078582763671875, -0.038177490234375, 0.059051513671875, 0.01232147216796875, 0.048919677734375, -0.01186370849609375, -0.01201629638671875, 0.01739501953125, 0.036224365234375, 0.10003662109375, 0.022491455078125, -0.00997161865234375, -0.023956298828125, 0.014190673828125, -0.0031070709228515625, -0.05816650390625, 0.036102294921875, -0.01318359375, -0.0149688720703125, 0.0171661376953125, 0.026153564453125, 0.0572509765625, -0.044921875, -0.052886962890625, -0.01953125, -0.037567138671875, -0.0626220703125, -0.004283905029296875, -0.0025081634521484375, -0.032958984375, -0.005947113037109375, -0.0178070068359375, 0.004177093505859375, 0.002338409423828125, 0.012847900390625, 0.039093017578125, -0.017303466796875, 0.0124664306640625, -0.0230560302734375, 0.0584716796875, 0.025848388671875, 0.01117706298828125, 0.0057830810546875, 0.027587890625, -0.03582763671875, 0.004909515380859375, 0.0036373138427734375, 0.032623291015625, -0.034576416015625, 0.0218505859375, 0.01490020751953125, 0.0151214599609375, -0.03448486328125, 0.0191802978515625, 0.06884765625, 0.043060302734375, -0.039093017578125, -0.0338134765625, -0.0016994476318359375, 0.023468017578125, 0.04052734375, 0.017578125, 0.04998779296875, 0.0030384063720703125, 0.052459716796875, -0.047119140625, 0.03594970703125, 0.05572509765625, -0.00421905517578125, -0.005245208740234375, 0.024993896484375, -0.073974609375, 0.03790283203125, -0.03167724609375, -0.0107879638671875, -0.0218048095703125, 0.0034275054931640625, 0.043853759765625, -0.00795745849609375, 0.052215576171875, 0.0120391845703125, 0.030548095703125, 0.025421142578125, -0.01110076904296875, -0.045867919921875, -0.016937255859375, -0.0787353515625, -0.00746917724609375, 0.0283966064453125, -0.0271148681640625, 0.0019741058349609375, -0.0211029052734375, 0.0306549072265625, 0.0293121337890625, -0.0263671875, 0.043212890625, -0.0079803466796875, 0.01514434814453125, -0.034088134765625, 0.0113372802734375, 0.0044097900390625, -0.0149383544921875, 0.00543975830078125, 0.00989532470703125, 0.0294189453125, -0.0217437744140625, 0.00769805908203125, -0.01377105712890625, -0.0294647216796875, 0.006328582763671875, -0.034637451171875, 0.038543701171875, -0.01097869873046875, -0.10888671875, 0.0016584396362304688, -0.08050537109375, -0.051483154296875, 0.04779052734375, 0.04052734375, -0.039337158203125, 0.032928466796875, 0.0056915283203125, 0.00946044921875, 0.0236968994140625, -0.032196044921875, 0.00981903076171875, -0.0070953369140625, 0.010101318359375, 0.0036106109619140625, 0.00823211669921875, 0.0062255859375, -0.0027713775634765625, 0.03564453125, 0.01213836669921875, 0.02813720703125, -0.02716064453125, 0.01082611083984375, -0.025482177734375, 0.0157318115234375, -0.0246734619140625, -0.028717041015625, 0.044403076171875, 0.0312347412109375, 0.003696441650390625, -0.0174713134765625, -0.032318115234375, 0.00794219970703125, 0.026947021484375, -0.01169586181640625, 0.02593994140625, -0.03704833984375, 0.01157379150390625, -0.0036373138427734375, 0.04583740234375, -0.0110321044921875, 0.0013284683227539062, -0.0301666259765625, -0.026885986328125, 0.04547119140625, 0.00244140625, -0.00664520263671875, 0.03082275390625, -0.039398193359375, -0.0255584716796875, -0.01611328125, -0.024017333984375, -0.0789794921875, 0.005916595458984375, 0.01873779296875, -0.0160980224609375, 0.033721923828125, 0.004550933837890625, 0.00757598876953125, 0.01343536376953125, 0.020263671875, 0.043212890625, -0.052459716796875, 0.00942230224609375, -0.0057525634765625, 0.02801513671875, -0.009002685546875, -0.00551605224609375, 0.010223388671875, -0.01104736328125, -0.027923583984375, -0.0021762847900390625, -0.0286712646484375, -0.031982421875, -0.0279693603515625, 0.0008935928344726562, -0.0283355712890625, -0.093505859375, -0.072021484375, -0.00405120849609375, 0.039947509765625, 0.04150390625, -0.10540771484375, 0.053497314453125, 0.026336669921875, 0.048858642578125, -0.0014972686767578125, -0.040863037109375, 0.038360595703125, 0.0362548828125, -0.045623779296875, -0.0172119140625, -0.0158538818359375, -0.032928466796875, -0.0294647216796875, 0.001781463623046875, 0.01273345947265625, 0.01045989990234375, -0.02105712890625, 0.03253173828125, -0.0182342529296875, 0.06646728515625, -0.0634765625, -0.00347900390625, 0.0023040771484375, -0.006252288818359375, -0.0400390625, -0.0122833251953125, 0.043426513671875, -0.04766845703125, -0.083740234375, -0.0216064453125, 0.00568389892578125, 0.0245208740234375, -0.0202789306640625, -0.0411376953125, 0.055938720703125, -0.0056610107421875, -0.0163116455078125, -0.055023193359375, 0.0241546630859375, -0.0131072998046875, -0.0013151168823242188, -0.01473236083984375, -0.0103759765625, 0.0089569091796875, 0.04241943359375, 0.0208740234375, -0.0626220703125, 0.0450439453125, -0.000652313232421875, -0.06134033203125, 0.0169677734375, 0.0305023193359375, -0.028900146484375, 0.0023288726806640625, 0.0008983612060546875, -0.00376129150390625, 0.0269622802734375, -0.0199737548828125, -0.0726318359375, -0.041229248046875, -0.0174713134765625, -0.0457763671875, -0.07122802734375, -0.01751708984375, -0.036407470703125, 0.08660888671875, 0.06146240234375, 0.022857666015625, -0.03125, -0.0089263916015625, -0.052459716796875, -0.042816162109375, -0.003971099853515625, 0.0159912109375, -0.0447998046875, 0.02032470703125, 0.0031299591064453125, -0.0243377685546875, 0.015869140625, 0.008270263671875, -0.044158935546875, 0.00383758544921875, -0.006633758544921875, 0.0080718994140625, -0.092529296875, 0.06988525390625, 0.0484619140625, -0.06170654296875, -0.0176849365234375, -0.01806640625, -0.01537322998046875, 0.004638671875, -0.06671142578125, -0.02435302734375, -0.035400390625, -0.0024890899658203125, 0.046905517578125, -0.02227783203125, 0.029754638671875, -0.04742431640625, -0.01153564453125, 0.0176849365234375, 0.019866943359375, -0.0008172988891601562, 0.032440185546875, -0.023468017578125, 0.058258056640625, -0.007801055908203125, 0.0465087890625, 0.009765625, 0.00396728515625, -0.0223388671875, 0.0313720703125, -0.01100921630859375, 0.0000909566879272461, 0.020782470703125, -0.0158233642578125, 0.0145416259765625, 0.042205810546875, -0.01206207275390625, -0.0078277587890625, 0.0024127960205078125, 0.01264190673828125, 0.007549285888671875, -0.0013990402221679688 ]
53839e20292f157e04205aedb578c2a66ed1f263
Wordpress Stackexchange Q: Stop WP from creating "Sample Page" and "Hello World!" post Is it possible to stop WP from creating the "Sample Page" and "Hello World!" post when creating a new blog? A: If you're using Multisite The accepted answer is destructive in that it cancels all other set-up items in the overridden function. A less destructive way to do it for multisite installs is to delete the default content during new blog creation by hooking in to wpmu_new_blog add_action( 'wpmu_new_blog', 'delete_wordpress_defaults', 100, 1 ); function delete_wordpress_defaults(){ // 'Hello World!' post wp_delete_post( 1, true ); // 'Sample page' page wp_delete_post( 2, true ); }
Q: Stop WP from creating "Sample Page" and "Hello World!" post Is it possible to stop WP from creating the "Sample Page" and "Hello World!" post when creating a new blog? A: If you're using Multisite The accepted answer is destructive in that it cancels all other set-up items in the overridden function. A less destructive way to do it for multisite installs is to delete the default content during new blog creation by hooking in to wpmu_new_blog add_action( 'wpmu_new_blog', 'delete_wordpress_defaults', 100, 1 ); function delete_wordpress_defaults(){ // 'Hello World!' post wp_delete_post( 1, true ); // 'Sample page' page wp_delete_post( 2, true ); } A: Create a file install.php in your wp-content directory. In that file you declare the wp_install_defaults() function. If you just leave that function empty no default categories, links, posts or pages will be created. The default (pluggable) wp_install_defaults() function can be found in wp-admin/includes/upgrade.php. Also see: https://stackoverflow.com/questions/550086/how-to-delete-the-default-hello-world-post-before-wordpress-install
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:425583", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71866" }
[ 0.02044677734375, -0.0258026123046875, 0.000014781951904296875, 0.0203094482421875, -0.03314208984375, -0.03143310546875, 0.044891357421875, -0.049957275390625, -0.034912109375, -0.01239013671875, -0.02508544921875, 0.028839111328125, 0.0035457611083984375, -0.0286712646484375, 0.073486328125, -0.0235443115234375, 0.05474853515625, -0.0200347900390625, 0.0472412109375, 0.00658416748046875, 0.005588531494140625, 0.0305023193359375, 0.041534423828125, 0.0550537109375, -0.0034008026123046875, -0.0154266357421875, 0.036376953125, -0.007266998291015625, -0.0304107666015625, -0.045806884765625, 0.0113677978515625, 0.062744140625, 0.008331298828125, 0.053314208984375, -0.0458984375, 0.0012645721435546875, -0.0592041015625, 0.04937744140625, 0.0066680908203125, -0.00710296630859375, -0.0013113021850585938, -0.004909515380859375, 0.0300750732421875, -0.00295257568359375, 0.01508331298828125, -0.0203857421875, 0.00011628866195678711, -0.07452392578125, 0.019256591796875, -0.035369873046875, 0.00011432170867919922, 0.0005736351013183594, -0.0010461807250976562, -0.0341796875, -0.0306396484375, -0.02886962890625, -0.01332855224609375, 0.037841796875, 0.038848876953125, 0.01287078857421875, -0.0220184326171875, 0.0017824172973632812, -0.004245758056640625, -0.0303192138671875, 0.02783203125, -0.022979736328125, -0.045867919921875, 0.037811279296875, -0.0206451416015625, 0.04095458984375, 0.031402587890625, -0.04937744140625, 0.00882720947265625, -0.047637939453125, 0.0157928466796875, 0.0285797119140625, -0.0254364013671875, -0.004852294921875, 0.0142669677734375, 0.007259368896484375, 0.023895263671875, 0.00580596923828125, -0.0191650390625, -0.052581787109375, 0.0164337158203125, -0.035369873046875, 0.01338958740234375, 0.01171112060546875, -0.037200927734375, -0.0242919921875, -0.0386962890625, -0.01290130615234375, -0.02313232421875, -0.0009298324584960938, -0.041168212890625, 0.0129852294921875, 0.0224609375, 0.06036376953125, -0.0095367431640625, 0.0221405029296875, -0.039306640625, -0.0272064208984375, 0.0223846435546875, -0.04278564453125, 0.0323486328125, 0.057373046875, -0.0195465087890625, -0.034637451171875, 0.047943115234375, 0.01270294189453125, 0.0172119140625, 0.0347900390625, -0.003772735595703125, -0.039154052734375, -0.0211181640625, 0.0308837890625, -0.00885772705078125, -0.01233673095703125, 0.024627685546875, -0.0162811279296875, -0.011260986328125, -0.01511383056640625, 0.034942626953125, -0.00589752197265625, 0.04132080078125, 0.02447509765625, -0.042022705078125, -0.022735595703125, -0.0116729736328125, 0.018524169921875, -0.030487060546875, -0.0171966552734375, 0.046356201171875, 0.07550048828125, 0.04644775390625, -0.0223236083984375, 0.0206298828125, -0.01073455810546875, 0.0006303787231445312, -0.00176239013671875, 0.002246856689453125, -0.020904541015625, -0.02105712890625, -0.0162811279296875, 0.035186767578125, 0.02496337890625, 0.0184478759765625, 0.01806640625, 0.00624847412109375, 0.032318115234375, -0.039215087890625, -0.0088958740234375, 0.030731201171875, -0.0218658447265625, 0.027679443359375, -0.08868408203125, 0.0254669189453125, -0.042816162109375, 0.030792236328125, -0.034637451171875, 0.00612640380859375, 0.001857757568359375, 0.012237548828125, -0.03289794921875, -0.058349609375, -0.016265869140625, -0.020233154296875, -0.016571044921875, 0.03094482421875, 0.00621795654296875, 0.006282806396484375, -0.034423828125, 0.0309295654296875, 0.0026454925537109375, -0.004543304443359375, 0.027130126953125, 0.0246429443359375, -0.044342041015625, 0.0009393692016601562, 0.0714111328125, -0.0001399517059326172, -0.015777587890625, 0.002593994140625, -0.0034160614013671875, -0.0784912109375, 0.0172271728515625, 0.02252197265625, 0.06768798828125, 0.02239990234375, 0.011627197265625, 0.06524658203125, -0.0279083251953125, -0.01117706298828125, 0.0022258758544921875, 0.010009765625, -0.039459228515625, -0.01244354248046875, -0.0204010009765625, -0.0037899017333984375, 0.01062774658203125, 0.0197296142578125, 0.03973388671875, -0.00814056396484375, -0.0160980224609375, -0.03936767578125, 0.007068634033203125, -0.0170135498046875, 0.0406494140625, -0.035247802734375, 0.0041656494140625, 0.0218353271484375, -0.0204010009765625, 0.013916015625, -0.05657958984375, -0.009857177734375, -0.0004343986511230469, -0.0210418701171875, 0.060638427734375, 0.006259918212890625, 0.0160064697265625, 0.005695343017578125, -0.050140380859375, 0.002017974853515625, -0.02398681640625, 0.044525146484375, -0.056884765625, 0.005352020263671875, -0.0462646484375, 0.0202789306640625, -0.02081298828125, -0.01442718505859375, 0.053466796875, -0.01934814453125, -0.01227569580078125, -0.046539306640625, -0.0037479400634765625, -0.0201873779296875, -0.04925537109375, 0.006153106689453125, 0.0623779296875, 0.0361328125, 0.033111572265625, -0.014678955078125, -0.016082763671875, 0.0259552001953125, -0.0439453125, 0.0246429443359375, -0.0192108154296875, 0.021484375, 0.07354736328125, 0.0012226104736328125, 0.006893157958984375, -0.013519287109375, -0.06488037109375, -0.0002448558807373047, 0.03472900390625, -0.0220489501953125, -0.040802001953125, 0.0196685791015625, -0.0106201171875, 0.01654052734375, -0.0263671875, -0.0234832763671875, 0.00275421142578125, 0.029510498046875, -0.0303802490234375, 0.0281982421875, 0.007602691650390625, 0.0003464221954345703, -0.0091400146484375, 0.0130462646484375, -0.06842041015625, -0.019287109375, -0.0031375885009765625, 0.0389404296875, 0.004032135009765625, -0.06683349609375, 0.01519012451171875, 0.0345458984375, 0.003887176513671875, -0.0250091552734375, 0.052001953125, -0.018035888671875, -0.036956787109375, -0.0128631591796875, -0.07952880859375, -0.019744873046875, -0.048370361328125, 0.010406494140625, -0.01535797119140625, 0.0031147003173828125, 0.00508880615234375, -0.040374755859375, 0.037567138671875, 0.025909423828125, -0.04248046875, -0.00812530517578125, -0.0472412109375, 0.032257080078125, -0.004383087158203125, 0.0635986328125, 0.0821533203125, 0.004459381103515625, 0.02099609375, -0.0028324127197265625, -0.0028781890869140625, 0.002105712890625, -0.01169586181640625, -0.0325927734375, 0.021759033203125, -0.097900390625, 0.01291656494140625, 0.036773681640625, 0.043701171875, 0.020751953125, -0.0015544891357421875, 0.03643798828125, 0.0291290283203125, -0.0010852813720703125, -0.01448822021484375, -0.00945281982421875, -0.0224761962890625, 0.002056121826171875, -0.0118255615234375, -0.01186370849609375, -0.00885009765625, -0.01038360595703125, -0.00030541419982910156, -0.047454833984375, -0.029327392578125, -0.0258331298828125, -0.072509765625, -0.05633544921875, -0.035247802734375, -0.0003502368927001953, 0.0141754150390625, 0.0008692741394042969, 0.06964111328125, -0.002689361572265625, -0.060455322265625, -0.003570556640625, -0.0197601318359375, -0.0210723876953125, 0.0100555419921875, 0.00937652587890625, -0.009063720703125, 0.0115509033203125, 0.00887298583984375, -0.0026226043701171875, 0.0224609375, -0.00620269775390625, -0.0333251953125, -0.0186309814453125, -0.01227569580078125, 0.0031490325927734375, 0.01062774658203125, 0.007904052734375, -0.03656005859375, -0.01502227783203125, -0.05487060546875, -0.00896453857421875, -0.01010894775390625, -0.05340576171875, -0.02490234375, 0.00664520263671875, 0.0015172958374023438, 0.00911712646484375, 0.0006814002990722656, 0.0022754669189453125, 0.01509857177734375, 0.043304443359375, -0.0130157470703125, 0.036041259765625, -0.0280609130859375, -0.042266845703125, -0.04962158203125, 0.01953125, -0.031951904296875, -0.008087158203125, 0.004734039306640625, -0.0018892288208007812, -0.0013704299926757812, -0.041046142578125, 0.0013790130615234375, 0.01593017578125, -0.0114898681640625, -0.04852294921875, 0.048187255859375, -0.003993988037109375, 0.007556915283203125, -0.009033203125, 0.0394287109375, -0.0928955078125, -0.003589630126953125, 0.007602691650390625, 0.0154876708984375, 0.0153045654296875, -0.07818603515625, -0.050445556640625, -0.0280303955078125, -0.0245819091796875, 0.015289306640625, 0.01177978515625, -0.0122528076171875, -0.04345703125, 0.0251312255859375, -0.0205841064453125, -0.01551055908203125, 0.0430908203125, -0.009124755859375, 0.007083892822265625, -0.021240234375, -0.0029277801513671875, -0.0187225341796875, -0.021759033203125, -0.01396942138671875, -0.07269287109375, -0.00945281982421875, -0.0254058837890625, 0.029022216796875, -0.01399993896484375, 0.0256500244140625, -0.054779052734375, 0.011932373046875, 0.00348663330078125, 0.049835205078125, 0.0026493072509765625, 0.01384735107421875, 0.0165863037109375, -0.00774383544921875, 0.04034423828125, -0.026275634765625, -0.00827789306640625, -0.0302581787109375, -0.01207733154296875, 0.007396697998046875, -0.0273590087890625, -0.006519317626953125, -0.0182952880859375, -0.007720947265625, -0.031280517578125, -0.050628662109375, -0.0201873779296875, 0.01354217529296875, -0.00946807861328125, 0.00173187255859375, -0.07611083984375, -0.02825927734375, -0.01532745361328125, -0.00811767578125, -0.0202178955078125, 0.01471710205078125, 0.00606536865234375, 0.0267486572265625, 0.00041413307189941406, -0.01279449462890625, 0.0198974609375, 0.0061492919921875, -0.0188751220703125, 0.06365966796875, 0.01309967041015625, 0.033203125, 0.003734588623046875, -0.03497314453125, -0.0298614501953125, -0.009185791015625, 0.065673828125, -0.0034084320068359375, -0.0011730194091796875, -0.0214996337890625, -0.044342041015625, 0.0213775634765625, 0.03546142578125, 0.01404571533203125, -0.0086212158203125, 0.02392578125, 0.0025043487548828125, 0.0011243820190429688, -0.03216552734375, -0.0014495849609375, -0.0223388671875, 0.0240478515625, 0.014068603515625, -0.0171051025390625, -0.0108642578125, 0.0112762451171875, -0.031646728515625, -0.051483154296875, 0.011932373046875, 0.0171661376953125, 0.051055908203125, 0.0035495758056640625, 0.046112060546875, 0.022979736328125, 0.0012788772583007812, -0.0092620849609375, -0.002414703369140625, 0.0184326171875, 0.006778717041015625, -0.03936767578125, -0.00843048095703125, 0.01003265380859375, 0.0215911865234375, 0.01096343994140625, 0.00312042236328125, 0.0187530517578125, 0.0303497314453125, -0.0208740234375, -0.01111602783203125, 0.00414276123046875, 0.0184478759765625, -0.03814697265625, -0.01013946533203125, -0.038848876953125, 0.006809234619140625, 0.0592041015625, -0.0188751220703125, -0.0273590087890625, 0.0328369140625, -0.0188140869140625, 0.0465087890625, 0.019256591796875, 0.0160980224609375, 0.01116943359375, 0.03521728515625, -0.004180908203125, -0.003940582275390625, -0.0006084442138671875, -0.046630859375, -0.031982421875, 0.06707763671875, 0.027374267578125, -0.0261383056640625, -0.031097412109375, 0.005039215087890625, 0.005489349365234375, 0.0034313201904296875, -0.00904083251953125, -0.0241851806640625, -0.036041259765625, 0.0168914794921875, 0.0230865478515625, 0.01331329345703125, -0.021148681640625, -0.0010890960693359375, -0.0186004638671875, -0.0180206298828125, 0.022308349609375, -0.04217529296875, 0.01236724853515625, -0.01409912109375, -0.024383544921875, 0.01428985595703125, -0.03948974609375, 0.004375457763671875, -0.036224365234375, 0.044891357421875, -0.040924072265625, -0.0187530517578125, 0.03350830078125, -0.03985595703125, 0.0250244140625, -0.030609130859375, 0.0269622802734375, -0.037353515625, 0.0287017822265625, 0.015838623046875, 0.00977325439453125, -0.00342559814453125, -0.030853271484375, -0.062408447265625, -0.0533447265625, -0.03814697265625, -0.0070953369140625, -0.047393798828125, 0.01751708984375, 0.03155517578125, 0.0206298828125, 0.01078033447265625, -0.0170440673828125, -0.041046142578125, 0.005615234375, 0.0220947265625, 0.053314208984375, -0.04779052734375, 0.052001953125, 0.035308837890625, 0.0185089111328125, 0.01203155517578125, 0.046295166015625, 0.033050537109375, -0.0305023193359375, 0.0136260986328125, -0.02935791015625, -0.02081298828125, 0.01776123046875, -0.05224609375, -0.0195465087890625, 0.0211639404296875, -0.00809478759765625, -0.004665374755859375, -0.00865936279296875, 0.017608642578125, -0.0224456787109375, 0.01070404052734375, -0.032928466796875, -0.024139404296875, -0.013885498046875, -0.0391845703125, 0.015960693359375, 0.018218994140625, 0.024169921875, 0.02447509765625, -0.0460205078125, 0.01493072509765625, 0.0177001953125, -0.0204315185546875, 0.0242156982421875, 0.0308074951171875, 0.006195068359375, 0.032684326171875, -0.00476837158203125, 0.0102081298828125, 0.01427459716796875, 0.036468505859375, -0.0178680419921875, -0.0650634765625, 0.06048583984375, 0.034912109375, -0.025146484375, 0.061767578125, -0.0288238525390625, 0.01611328125, 0.06378173828125, 0.060638427734375, -0.084228515625, 0.004375457763671875, 0.0294036865234375, -0.0160980224609375, -0.011016845703125, -0.0086822509765625, 0.0226593017578125, -0.0006208419799804688, 0.0271453857421875, 0.02117919921875, -0.00724029541015625, 0.00902557373046875, -0.005397796630859375, -0.0323486328125, -0.024139404296875, -0.0142364501953125, 0.03033447265625, -0.037689208984375, 0.061248779296875, 0.0284271240234375, 0.02838134765625, -0.0328369140625, 0.007572174072265625, 0.0131683349609375, -0.01044464111328125, -0.089599609375, 0.006145477294921875, 0.00627899169921875, -0.0216064453125, 0.027618408203125, 0.0156707763671875, -0.002658843994140625, 0.07318115234375, -0.04345703125, 0.07244873046875, 0.03839111328125, -0.0244903564453125, -0.0882568359375, -0.0160675048828125, 0.032379150390625, 0.0010576248168945312, -0.016265869140625, 0.046722412109375, -0.0287933349609375, -0.0673828125, 0.007076263427734375, -0.0101318359375, 0.08636474609375, -0.024078369140625, -0.02581787109375, 0.0279693603515625, -0.030914306640625, -0.0143890380859375, -0.053619384765625, -0.010833740234375, -0.06683349609375, -0.0081024169921875, -0.045562744140625, 0.007266998291015625, 0.03857421875, -0.035186767578125, -0.08380126953125, 0.08160400390625, 0.01483917236328125, 0.04437255859375, -0.00395965576171875, 0.0237274169921875, -0.02783203125, 0.0003039836883544922, -0.026031494140625, 0.053009033203125, -0.0023822784423828125, 0.03509521484375, -0.036163330078125, 0.011383056640625, -0.00830841064453125, 0.0193328857421875, 0.0177001953125, -0.0032634735107421875, 0.06988525390625, -0.0173797607421875, 0.0207366943359375, 0.017852783203125, -0.038116455078125, -0.0229644775390625, -0.00885009765625, 0.0228424072265625, 0.008453369140625, -0.07940673828125, -0.00012803077697753906, -0.017578125, -0.004528045654296875, 0.01318359375, 0.0192718505859375, 0.007305145263671875, 0.01213836669921875, -0.00795745849609375, -0.012847900390625, 0.01129150390625, 0.006183624267578125, 0.0275421142578125, -0.0010824203491210938, 0.048004150390625, 0.0621337890625, -0.036529541015625, 0.01287841796875, -0.03375244140625, 0.06268310546875, 0.03387451171875, 0.032073974609375, 0.03680419921875, 0.0182647705078125, -0.019073486328125, 0.0191192626953125, 0.028045654296875, 0.034881591796875, -0.038482666015625, 0.0250396728515625, 0.041259765625, 0.0250701904296875, -0.03173828125, 0.00499725341796875, 0.0484619140625, 0.04327392578125, -0.033447265625, 0.0012311935424804688, 0.0023651123046875, 0.007720947265625, -0.004161834716796875, -0.035675048828125, -0.004253387451171875, -0.0115509033203125, 0.00637054443359375, -0.036376953125, 0.0013494491577148438, 0.036346435546875, -0.0001633167266845703, 0.0025463104248046875, -0.00290679931640625, -0.0139617919921875, 0.01739501953125, 0.0010004043579101562, -0.04681396484375, -0.0012750625610351562, 0.05145263671875, 0.0240936279296875, 0.0297393798828125, -0.048187255859375, -0.01213836669921875, -0.0185394287109375, 0.03656005859375, -0.0221405029296875, 0.01507568359375, -0.045166015625, -0.044464111328125, 0.00652313232421875, 0.0283966064453125, -0.0167236328125, 0.05438232421875, 0.061431884765625, 0.03887939453125, -0.046417236328125, 0.00009632110595703125, 0.06988525390625, -0.032806396484375, -0.0255126953125, -0.037017822265625, -0.08880615234375, -0.024200439453125, -0.0411376953125, 0.01220703125, -0.029266357421875, 0.00276947021484375, -0.044219970703125, -0.0239105224609375, 0.00627899169921875, -0.04644775390625, 0.07598876953125, -0.00830841064453125, 0.0305938720703125, -0.02691650390625, -0.07293701171875, -0.0157928466796875, -0.0458984375, -0.0250396728515625, 0.0406494140625, 0.036590576171875, -0.0207366943359375, 0.03253173828125, 0.005046844482421875, 0.0335693359375, 0.00829315185546875, -0.0169830322265625, -0.020721435546875, -0.0090484619140625, 0.063232421875, 0.00377655029296875, -0.072021484375, -0.0297088623046875, -0.01345062255859375, 0.0099945068359375, -0.046875, 0.10345458984375, -0.019195556640625, -0.0167694091796875, -0.01308441162109375, 0.032470703125, -0.03192138671875, -0.0178680419921875, 0.004974365234375, 0.00762939453125, 0.0204010009765625, -0.01458740234375, -0.048431396484375, 0.03680419921875, 0.0290679931640625, 0.01013946533203125, 0.061553955078125, -0.032135009765625, 0.00917816162109375, -0.034271240234375, 0.03643798828125, -0.0172576904296875, -0.00447845458984375, -0.043365478515625, 0.0056610107421875, 0.04119873046875, -0.0172271728515625, -0.0750732421875, 0.0396728515625, 0.0010843276977539062, -0.048614501953125, 0.0223846435546875, -0.05126953125, 0.007221221923828125, 0.032440185546875, 0.055389404296875, -0.00750732421875, 0.027374267578125, -0.0072784423828125, -0.01654052734375, 0.036102294921875, 0.0005164146423339844, 0.02880859375, -0.05914306640625, 0.024993896484375, -0.022308349609375, 0.0242919921875, -0.041473388671875, -0.0145416259765625, -0.00698089599609375, 0.021026611328125, -0.00720977783203125, -0.010650634765625, -0.0157012939453125, -0.03338623046875, -0.01812744140625, 0.0011081695556640625, -0.056427001953125, -0.046417236328125, -0.0296783447265625, 0.0035572052001953125, 0.021392822265625, 0.0037746429443359375, -0.06524658203125, 0.042266845703125, -0.01151275634765625, 0.031585693359375, -0.005840301513671875, 0.03875732421875, -0.035125732421875, -0.029693603515625, -0.037445068359375, -0.027313232421875, -0.040771484375, 0.0587158203125, -0.00820159912109375, 0.0066986083984375, 0.044464111328125, -0.0109405517578125, -0.0209197998046875, -0.036285400390625, -0.007793426513671875, 0.01483154296875, -0.017547607421875, -0.0217437744140625, -0.00662994384765625, 0.007080078125, 0.0146331787109375, -0.07293701171875, -0.00019943714141845703, -0.06292724609375, -0.00940704345703125, 0.01332855224609375, -0.02545166015625, -0.00716400146484375, -0.04302978515625, -0.0716552734375, 0.023223876953125, 0.0017766952514648438, -0.049407958984375, -0.0087432861328125, 0.006961822509765625, -0.035491943359375, 0.05230712890625, 0.014801025390625, -0.0159759521484375, 0.01085662841796875, 0.02740478515625, 0.008331298828125, 0.03106689453125, 0.025054931640625, 0.0208282470703125, 0.0199737548828125, 0.028900146484375, 0.01323699951171875, -0.01409912109375, 0.0093231201171875, -0.002758026123046875, 0.023651123046875, 0.0523681640625, -0.0115814208984375, 0.0094146728515625, -0.0042572021484375, -0.03411865234375, -0.01215362548828125, -0.01354217529296875, -0.0335693359375, -0.01042938232421875, 0.07818603515625, 0.0814208984375, 0.019134521484375, -0.05328369140625, -0.0123748779296875, -0.036041259765625, -0.0075836181640625, -0.015869140625, 0.0178680419921875, -0.062225341796875, -0.00989532470703125, 0.015838623046875, -0.01018524169921875, -0.0018014907836914062, -0.0484619140625, -0.0234375, -0.00437164306640625, -0.01558685302734375, 0.0232391357421875, -0.003704071044921875, -0.0193328857421875, 0.03546142578125, -0.0181884765625, 0.00197601318359375, -0.0028228759765625, 0.021636962890625, 0.01312255859375, 0.0361328125, -0.0275421142578125, -0.01148223876953125, 0.004863739013671875, 0.01806640625, -0.002117156982421875, -0.00939178466796875, -0.005123138427734375, 0.025482177734375, -0.0228118896484375, 0.001422882080078125, 0.00574493408203125, 0.002887725830078125, 0.0008921623229980469, 0.0210723876953125, 0.016357421875, -0.0224609375, 0.01096343994140625, 0.01534271240234375, -0.005401611328125, 0.02880859375, 0.00092315673828125, -0.0305938720703125, 0.0382080078125, -0.041046142578125, -0.0020809173583984375, 0.01203155517578125, 0.00609588623046875, -0.0196990966796875, -0.0032958984375, 0.04437255859375, 0.00469207763671875, -0.00921630859375 ]
e9647d17b9fbadb482cef3b602a024fa47c4369d
Wordpress Stackexchange Q: Admin pages have no content Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, the content is not shown for any of the sections/pages. Except for one two things: adding a post and editing an old one. And so, this is what I get: http://dumpt.com/img/files/jdyvf8206fkmi1w01e6u.png The page update animation just rolls and rolls without any actual changes even made. Haven't found any discussions about the said problem anywhere so... Need help :D A: Try going to Tools then Export and export your Wordpress site into an XML file. Then delete your Wordpress site off your web server and reinstall it. Go Tools > Import and click on import and select the XML file. Reinstalling Wordpress should fix your problem.
Q: Admin pages have no content Not the usual white screen of whatever horror, my site is shown normally until you go to the admin dashboard. While the dashboard (or the admin menu if you will) is visible and responds accordingly, the content is not shown for any of the sections/pages. Except for one two things: adding a post and editing an old one. And so, this is what I get: http://dumpt.com/img/files/jdyvf8206fkmi1w01e6u.png The page update animation just rolls and rolls without any actual changes even made. Haven't found any discussions about the said problem anywhere so... Need help :D A: Try going to Tools then Export and export your Wordpress site into an XML file. Then delete your Wordpress site off your web server and reinstall it. Go Tools > Import and click on import and select the XML file. Reinstalling Wordpress should fix your problem. A: This all because of PHP has been allocated less memory. So have to increase PHP memory limit.If PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be. Increase PHP Memory to add this line to wp-config.php file. define('WP_MEMORY_LIMIT', '96M'); if it works then let me know.
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:425599", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71909" }
[ 0.0293426513671875, -0.006134033203125, 0.0229949951171875, 0.0280914306640625, -0.0009412765502929688, -0.032684326171875, 0.045440673828125, -0.06939697265625, 0.01320648193359375, -0.00433349609375, -0.039398193359375, -0.0006437301635742188, -0.027984619140625, -0.0188140869140625, -0.0101165771484375, -0.04638671875, 0.031707763671875, -0.007457733154296875, 0.053985595703125, 0.017822265625, -0.006237030029296875, 0.036163330078125, 0.039886474609375, -0.0153961181640625, -0.002506256103515625, -0.00164031982421875, 0.058990478515625, 0.0031566619873046875, -0.0009245872497558594, -0.01849365234375, 0.02337646484375, -0.006603240966796875, -0.00028967857360839844, 0.024139404296875, -0.012664794921875, -0.04595947265625, -0.0190582275390625, 0.021087646484375, 0.0023059844970703125, 0.00470733642578125, 0.0014171600341796875, 0.0014247894287109375, 0.08587646484375, 0.039825439453125, 0.031341552734375, -0.0322265625, -0.00533294677734375, -0.09564208984375, 0.0242156982421875, -0.058074951171875, 0.01525115966796875, -0.00896453857421875, 0.03558349609375, -0.0350341796875, -0.018157958984375, -0.005275726318359375, -0.0070343017578125, 0.009368896484375, 0.041534423828125, -0.0269317626953125, -0.03375244140625, -0.04296875, 0.026611328125, -0.0242919921875, 0.0035877227783203125, 0.0033664703369140625, 0.04864501953125, -0.006893157958984375, -0.0902099609375, 0.0156402587890625, 0.07501220703125, -0.046661376953125, -0.01129150390625, -0.0205535888671875, 0.031463623046875, 0.0015039443969726562, 0.004383087158203125, -0.007434844970703125, -0.0128021240234375, 0.039520263671875, 0.040008544921875, 0.05682373046875, 0.00498199462890625, -0.01458740234375, 0.02374267578125, -0.00963592529296875, -0.013458251953125, -0.0293731689453125, -0.0245819091796875, -0.002902984619140625, -0.0243377685546875, -0.045562744140625, 0.0099029541015625, 0.004306793212890625, -0.00502777099609375, -0.0193939208984375, 0.007228851318359375, 0.0195770263671875, 0.0194091796875, 0.038177490234375, -0.0198974609375, -0.035736083984375, 0.039825439453125, -0.04754638671875, 0.013763427734375, -0.0168304443359375, 0.003971099853515625, 0.00689697265625, 0.049407958984375, 0.0219879150390625, -0.01947021484375, 0.074951171875, -0.007747650146484375, -0.0105438232421875, -0.042572021484375, 0.0185394287109375, -0.0228729248046875, -0.01922607421875, 0.003917694091796875, -0.0008935928344726562, -0.0207061767578125, 0.0236053466796875, -0.061126708984375, -0.01348114013671875, 0.01120758056640625, -0.00342559814453125, -0.0007534027099609375, 0.0232086181640625, 0.06549072265625, -0.0269317626953125, -0.03985595703125, 0.0196380615234375, 0.046905517578125, 0.0094757080078125, 0.01507568359375, -0.002429962158203125, -0.001979827880859375, -0.036041259765625, -0.0272369384765625, 0.039215087890625, -0.017913818359375, -0.0208740234375, 0.0301666259765625, -0.053375244140625, 0.0247344970703125, 0.031585693359375, 0.0127716064453125, 0.00576019287109375, 0.0188751220703125, -0.042694091796875, 0.0142669677734375, -0.00998687744140625, 0.0269927978515625, 0.034820556640625, -0.0068511962890625, -0.0015039443969726562, 0.052886962890625, -0.0321044921875, -0.032073974609375, -0.043731689453125, 0.017364501953125, 0.003082275390625, 0.034271240234375, -0.0034427642822265625, -0.0178375244140625, -0.017608642578125, -0.05718994140625, -0.01360321044921875, 0.02154541015625, -0.020416259765625, 0.0105438232421875, -0.00916290283203125, 0.024566650390625, 0.01251220703125, 0.00946807861328125, 0.037872314453125, 0.0418701171875, -0.0384521484375, 0.005382537841796875, 0.07147216796875, 0.004711151123046875, 0.0018033981323242188, 0.00860595703125, -0.006755828857421875, -0.04962158203125, 0.021240234375, 0.0007038116455078125, 0.03875732421875, 0.033538818359375, 0.01763916015625, 0.0223541259765625, -0.00004655122756958008, -0.00989532470703125, 0.033233642578125, 0.022735595703125, -0.01329803466796875, -0.07244873046875, 0.0028553009033203125, -0.0260162353515625, -0.03369140625, -0.0247344970703125, 0.029052734375, 0.00405120849609375, 0.020751953125, 0.0005521774291992188, 0.016754150390625, -0.00414276123046875, 0.03753662109375, 0.04498291015625, 0.0290069580078125, 0.00765228271484375, 0.025604248046875, -0.04010009765625, -0.031768798828125, -0.05609130859375, -0.01102447509765625, -0.006206512451171875, 0.028778076171875, 0.005001068115234375, 0.0237884521484375, 0.005496978759765625, -0.026611328125, -0.0128173828125, -0.004852294921875, 0.070068359375, 0.0110931396484375, -0.0106201171875, -0.0190887451171875, 0.083984375, -0.008087158203125, 0.028839111328125, 0.037445068359375, 0.0084991455078125, 0.00689697265625, -0.052825927734375, -0.01496124267578125, -0.03900146484375, -0.058685302734375, 0.004589080810546875, 0.060760498046875, 0.042510986328125, 0.0157623291015625, 0.00196075439453125, 0.0247955322265625, 0.05706787109375, -0.0258026123046875, 0.006221771240234375, 0.006244659423828125, -0.0051422119140625, 0.03411865234375, 0.0020313262939453125, 0.00429534912109375, 0.017578125, -0.03173828125, 0.0129852294921875, 0.03192138671875, -0.0007257461547851562, 0.04534912109375, -0.054168701171875, 0.002429962158203125, -0.0054931640625, -0.0169830322265625, -0.0189056396484375, -0.0167694091796875, -0.0224609375, 0.050048828125, 0.01494598388671875, 0.0352783203125, -0.032073974609375, -0.0008053779602050781, 0.020904541015625, 0.052947998046875, 0.00852203369140625, 0.033111572265625, 0.030853271484375, 0.0006422996520996094, -0.023529052734375, -0.0204620361328125, 0.0112457275390625, 0.0172882080078125, -0.007091522216796875, -0.00710296630859375, -0.0162811279296875, -0.0112152099609375, 0.0204315185546875, -0.02545166015625, 0.002429962158203125, 0.0024738311767578125, 0.01074981689453125, 0.00643157958984375, -0.0005102157592773438, 0.040679931640625, -0.020782470703125, 0.058135986328125, 0.00946044921875, -0.0038433074951171875, 0.02191162109375, -0.04156494140625, 0.0263214111328125, -0.0028228759765625, 0.067138671875, 0.0765380859375, 0.0299224853515625, -0.0030517578125, 0.0078125, 0.025848388671875, 0.0228424072265625, 0.0174713134765625, 0.015228271484375, 0.00377655029296875, -0.03436279296875, 0.012847900390625, 0.03082275390625, 0.05328369140625, -0.0238189697265625, -0.03216552734375, -0.04486083984375, 0.042633056640625, -0.1004638671875, -0.0794677734375, -0.09375, -0.05780029296875, -0.015625, 0.0166778564453125, -0.030426025390625, 0.03521728515625, 0.0193328857421875, 0.0306854248046875, 0.004039764404296875, -0.00004166364669799805, -0.0771484375, -0.037384033203125, -0.0806884765625, 0.0020656585693359375, -0.02386474609375, 0.0282440185546875, 0.00534820556640625, 0.0312042236328125, -0.0024776458740234375, -0.0870361328125, -0.0162353515625, 0.0172119140625, -0.0241851806640625, 0.024169921875, -0.00952911376953125, -0.024261474609375, 0.027618408203125, -0.0023937225341796875, 0.0178680419921875, 0.0028438568115234375, -0.0026378631591796875, -0.024993896484375, -0.01788330078125, -0.033538818359375, -0.006000518798828125, -0.0308990478515625, 0.0274200439453125, -0.0227203369140625, -0.013824462890625, -0.05914306640625, -0.0269927978515625, -0.0008883476257324219, -0.044677734375, 0.00273895263671875, 0.0230865478515625, -0.019439697265625, 0.0038356781005859375, -0.01239013671875, -0.040557861328125, -0.01128387451171875, 0.004238128662109375, -0.00647735595703125, -0.03167724609375, -0.01806640625, -0.037017822265625, 0.0254364013671875, -0.00566864013671875, -0.0249786376953125, 0.012969970703125, -0.0015430450439453125, 0.0011196136474609375, -0.011566162109375, 0.0299835205078125, -0.012298583984375, -0.037841796875, 0.0274658203125, -0.033203125, 0.01560211181640625, -0.0280303955078125, -0.0020542144775390625, -0.0048980712890625, 0.0703125, -0.034820556640625, 0.0010290145874023438, 0.00762939453125, 0.02569580078125, -0.04345703125, -0.043609619140625, -0.06195068359375, -0.00391387939453125, -0.0863037109375, 0.00907135009765625, -0.0013494491577148438, -0.018890380859375, -0.0153045654296875, 0.0125274658203125, -0.037872314453125, -0.037384033203125, 0.0254669189453125, -0.0018873214721679688, -0.00829315185546875, 0.00247955322265625, -0.00994110107421875, -0.03045654296875, -0.00743865966796875, -0.0011920928955078125, -0.043487548828125, -0.020477294921875, 0.0014753341674804688, 0.044647216796875, 0.010528564453125, -0.0031757354736328125, -0.02020263671875, 0.021514892578125, -0.0091705322265625, 0.00843048095703125, -0.020904541015625, 0.005279541015625, -0.011474609375, -0.016937255859375, -0.00737762451171875, -0.0204620361328125, -0.0360107421875, -0.044525146484375, 0.0226287841796875, -0.0038585662841796875, -0.026885986328125, -0.0189208984375, -0.026824951171875, 0.01568603515625, -0.011810302734375, -0.0011301040649414062, -0.05096435546875, 0.01023101806640625, -0.0059814453125, -0.00804901123046875, 0.0023860931396484375, -0.0245208740234375, 0.005611419677734375, -0.0295257568359375, -0.0489501953125, 0.0276947021484375, 0.020965576171875, 0.0222015380859375, -0.00021314620971679688, -0.053070068359375, -0.01110076904296875, 0.028533935546875, 0.0008702278137207031, 0.0574951171875, 0.028900146484375, -0.008148193359375, 0.03509521484375, 0.0051727294921875, 0.04266357421875, -0.0291595458984375, 0.0516357421875, -0.012939453125, -0.028961181640625, 0.044281005859375, -0.00689697265625, -0.021484375, 0.01245880126953125, -0.005161285400390625, -0.019012451171875, -0.036163330078125, 0.0511474609375, 0.022216796875, -0.01428985595703125, -0.0648193359375, 0.0019855499267578125, -0.0139007568359375, 0.00923919677734375, 0.046630859375, 0.0199127197265625, 0.01003265380859375, 0.003143310546875, 0.050537109375, -0.007904052734375, 0.0458984375, -0.01213836669921875, 0.00905609130859375, 0.0105743408203125, 0.038482666015625, -0.01013946533203125, 0.035003662109375, -0.024993896484375, 0.09130859375, 0.017486572265625, -0.07415771484375, 0.0020160675048828125, 0.0029163360595703125, 0.043731689453125, 0.031585693359375, 0.0287628173828125, -0.006000518798828125, 0.00463104248046875, 0.0023288726806640625, -0.0013570785522460938, 0.07122802734375, -0.0168304443359375, -0.01090240478515625, -0.002582550048828125, -0.0101318359375, -0.004673004150390625, 0.01444244384765625, 0.042724609375, -0.039276123046875, 0.02435302734375, -0.00159454345703125, -0.01226043701171875, -0.0237274169921875, 0.053558349609375, 0.01116180419921875, -0.0189361572265625, 0.00579071044921875, 0.0282745361328125, 0.03375244140625, -0.025604248046875, -0.0024585723876953125, 0.00742340087890625, 0.04339599609375, 0.00701141357421875, -0.020050048828125, 0.016204833984375, -0.027435302734375, -0.015655517578125, 0.06488037109375, 0.003971099853515625, -0.08624267578125, -0.017913818359375, 0.01139068603515625, 0.017059326171875, -0.049560546875, -0.0292205810546875, 0.047943115234375, -0.050811767578125, 0.0065460205078125, 0.0243377685546875, -0.0276641845703125, -0.01299285888671875, -0.01348876953125, 0.0013990402221679688, -0.0265960693359375, -0.0143585205078125, -0.01922607421875, 0.0090484619140625, -0.0215606689453125, -0.0016698837280273438, 0.044830322265625, 0.002872467041015625, -0.0037784576416015625, -0.0260162353515625, 0.001857757568359375, -0.039764404296875, 0.0012044906616210938, 0.04632568359375, -0.00006121397018432617, -0.06884765625, -0.004673004150390625, -0.04168701171875, -0.02239990234375, -0.047271728515625, -0.038970947265625, -0.0648193359375, -0.006107330322265625, 0.017547607421875, -0.003086090087890625, -0.016754150390625, -0.0555419921875, -0.046539306640625, 0.042205810546875, 0.054901123046875, 0.042877197265625, 0.005428314208984375, 0.07830810546875, -0.03985595703125, 0.0904541015625, 0.00004845857620239258, 0.03912353515625, -0.02972412109375, -0.031463623046875, 0.026458740234375, 0.0291748046875, -0.0303192138671875, -0.03369140625, -0.03076171875, -0.0238494873046875, 0.053497314453125, -0.0177001953125, -0.00920867919921875, -0.009918212890625, 0.00756072998046875, -0.0189056396484375, 0.0521240234375, -0.0006542205810546875, -0.014404296875, 0.0164794921875, -0.0220184326171875, 0.0136566162109375, 0.005840301513671875, -0.03997802734375, 0.0199127197265625, 0.005504608154296875, 0.0027179718017578125, 0.0174560546875, -0.0081329345703125, 0.0293426513671875, 0.0845947265625, -0.0178070068359375, 0.04345703125, 0.033355712890625, 0.008819580078125, 0.029388427734375, 0.0062713623046875, -0.0111846923828125, -0.015533447265625, 0.04486083984375, 0.0028839111328125, -0.0199432373046875, 0.026885986328125, -0.025390625, 0.037261962890625, 0.10382080078125, 0.07135009765625, -0.1041259765625, -0.0027027130126953125, -0.01427459716796875, -0.044464111328125, 0.02069091796875, -0.0057525634765625, -0.0288238525390625, -0.048065185546875, 0.01934814453125, 0.0195159912109375, -0.0178070068359375, 0.007373809814453125, 0.015411376953125, -0.01824951171875, -0.017730712890625, 0.01239013671875, 0.00881195068359375, -0.01462554931640625, 0.024658203125, 0.007328033447265625, 0.0125885009765625, -0.0184783935546875, 0.01245880126953125, -0.0285491943359375, 0.01129913330078125, -0.035125732421875, -0.0008597373962402344, -0.01207733154296875, 0.0216217041015625, 0.0062713623046875, 0.049896240234375, -0.0209197998046875, 0.06732177734375, -0.0269622802734375, 0.0299224853515625, 0.0362548828125, -0.01528167724609375, 0.00981903076171875, -0.02410888671875, 0.0224456787109375, 0.0277862548828125, -0.04931640625, 0.015533447265625, -0.0032100677490234375, -0.035675048828125, -0.0000655055046081543, -0.041046142578125, 0.072509765625, -0.06500244140625, 0.01464080810546875, 0.0288238525390625, -0.01511383056640625, -0.0126190185546875, 0.0019445419311523438, 0.0103607177734375, -0.016693115234375, 0.041015625, -0.0057525634765625, 0.0325927734375, 0.00772857666015625, 0.036590576171875, -0.0574951171875, 0.08856201171875, -0.00537109375, 0.0026378631591796875, 0.0248565673828125, 0.0352783203125, -0.06878662109375, -0.01287078857421875, -0.031646728515625, 0.0791015625, 0.019287109375, 0.0273590087890625, -0.06353759765625, 0.0028076171875, -0.0025844573974609375, 0.028839111328125, 0.001987457275390625, -0.007122039794921875, -0.00464630126953125, 0.00844573974609375, 0.038055419921875, 0.0133056640625, 0.004291534423828125, 0.034423828125, -0.0216522216796875, 0.02606201171875, 0.0130767822265625, -0.034393310546875, 0.0313720703125, -0.0340576171875, -0.07110595703125, -0.00836944580078125, -0.0038814544677734375, -0.01508331298828125, 0.03924560546875, 0.01409912109375, -0.006717681884765625, 0.01140594482421875, 0.006824493408203125, -0.0494384765625, -0.0220489501953125, 0.016754150390625, 0.00423431396484375, -0.04559326171875, 0.00975799560546875, -0.040557861328125, 0.03662109375, 0.008087158203125, -0.006290435791015625, 0.0031528472900390625, 0.0204620361328125, 0.00270843505859375, -0.052093505859375, -0.002613067626953125, 0.0186767578125, -0.05059814453125, 0.007350921630859375, 0.01184844970703125, 0.028289794921875, -0.037017822265625, -0.037567138671875, 0.016265869140625, 0.031280517578125, -0.008331298828125, -0.050262451171875, -0.0010995864868164062, 0.0038967132568359375, 0.0107574462890625, 0.01189422607421875, 0.02349853515625, 0.01241302490234375, 0.044189453125, 0.0079803466796875, -0.00679779052734375, 0.0022106170654296875, -0.0032978057861328125, -0.00719451904296875, 0.033416748046875, 0.03167724609375, 0.0006070137023925781, -0.01690673828125, 0.034454345703125, 0.00490570068359375, 0.030609130859375, -0.00959014892578125, 0.0308837890625, -0.046600341796875, 0.0004987716674804688, 0.0025482177734375, 0.0204010009765625, -0.0374755859375, 0.01535797119140625, -0.07232666015625, -0.07232666015625, 0.005096435546875, 0.0521240234375, -0.0269622802734375, -0.01317596435546875, 0.02410888671875, 0.054168701171875, -0.0182037353515625, -0.026519775390625, 0.0036945343017578125, -0.0164031982421875, -0.041900634765625, -0.025634765625, 0.044586181640625, 0.05352783203125, 0.033935546875, 0.0085906982421875, 0.059417724609375, 0.0435791015625, -0.003459930419921875, -0.0238189697265625, 0.0123138427734375, -0.05706787109375, 0.0220489501953125, -0.0035266876220703125, 0.039764404296875, 0.01776123046875, -0.050750732421875, -0.03546142578125, -0.0119171142578125, 0.0022125244140625, 0.0214385986328125, 0.045257568359375, 0.008148193359375, -0.008880615234375, -0.01378631591796875, 0.0263824462890625, -0.04937744140625, -0.0027942657470703125, 0.00960540771484375, 0.017425537109375, 0.03057861328125, 0.0249786376953125, -0.02239990234375, -0.0235595703125, -0.020172119140625, 0.060150146484375, 0.004856109619140625, 0.1219482421875, -0.056488037109375, 0.033477783203125, -0.01560211181640625, 0.020721435546875, -0.0213623046875, -0.0008258819580078125, 0.0044403076171875, 0.026214599609375, 0.0017642974853515625, -0.0282440185546875, -0.1077880859375, 0.015289306640625, 0.02093505859375, -0.01019287109375, 0.031951904296875, -0.00548553466796875, 0.0115814208984375, -0.014495849609375, -0.02313232421875, -0.02557373046875, -0.035858154296875, -0.02337646484375, 0.0227508544921875, 0.0087890625, 0.01800537109375, -0.0245819091796875, 0.0304718017578125, 0.0158538818359375, -0.025421142578125, 0.004680633544921875, -0.0362548828125, 0.00916290283203125, 0.034393310546875, 0.034637451171875, -0.0150299072265625, 0.015899658203125, -0.0115509033203125, 0.026611328125, 0.01105499267578125, 0.0399169921875, 0.01525115966796875, 0.01873779296875, 0.004787445068359375, -0.00007843971252441406, 0.00873565673828125, -0.042572021484375, -0.00193023681640625, 0.0270233154296875, 0.00850677490234375, 0.0054473876953125, -0.01250457763671875, -0.02178955078125, -0.0268096923828125, -0.01555633544921875, 0.01078033447265625, -0.013214111328125, -0.037841796875, -0.0458984375, 0.0227813720703125, 0.048126220703125, 0.0297088623046875, -0.088134765625, 0.078125, -0.0284271240234375, 0.0167999267578125, 0.005985260009765625, 0.00899505615234375, 0.00954437255859375, 0.040283203125, -0.038177490234375, 0.005157470703125, -0.022552490234375, -0.031646728515625, -0.0238494873046875, -0.00913238525390625, 0.005451202392578125, -0.0019054412841796875, 0.048553466796875, -0.04541015625, -0.0196685791015625, 0.0211334228515625, 0.051788330078125, -0.0053253173828125, -0.01617431640625, 0.01517486572265625, 0.010711669921875, 0.00008845329284667969, -0.00740814208984375, 0.040008544921875, -0.03466796875, -0.0113067626953125, 0.016845703125, 0.042327880859375, -0.0233612060546875, -0.075927734375, -0.048736572265625, 0.01543426513671875, -0.040496826171875, -0.014404296875, -0.032684326171875, -0.0149078369140625, -0.0116729736328125, -0.0211639404296875, -0.01873779296875, -0.01194000244140625, 0.047943115234375, 0.0016632080078125, 0.0193328857421875, 0.022552490234375, -0.00946044921875, -0.044464111328125, -0.0259857177734375, -0.03778076171875, -0.0015897750854492188, 0.01291656494140625, -0.01995849609375, 0.03216552734375, 0.07196044921875, -0.0194244384765625, -0.070068359375, -0.01485443115234375, -0.051544189453125, -0.0010328292846679688, -0.0252227783203125, -0.034912109375, -0.0318603515625, 0.043487548828125, 0.0194854736328125, 0.01148223876953125, 0.007770538330078125, 0.000576019287109375, -0.0181732177734375, -0.0418701171875, -0.019805908203125, 0.01611328125, -0.06573486328125, -0.0128631591796875, -0.00630950927734375, -0.0242462158203125, 0.0135040283203125, 0.005619049072265625, -0.030242919921875, 0.00916290283203125, 0.0064849853515625, -0.0142974853515625, -0.018341064453125, -0.05743408203125, 0.05419921875, -0.022796630859375, 0.027618408203125, -0.0188140869140625, 0.040252685546875, 0.038055419921875, 0.0234222412109375, -0.003742218017578125, -0.006977081298828125, -0.039581298828125, 0.014404296875, -0.01134490966796875, 0.005229949951171875, -0.03826904296875, -0.016845703125, 0.01018524169921875, 0.027679443359375, -0.0186920166015625, 0.037689208984375, 0.03289794921875, 0.0092926025390625, -0.0030364990234375, 0.037353515625, -0.0178070068359375, 0.0148162841796875, -0.01380157470703125, 0.0419921875, -0.037445068359375, -0.00609588623046875, 0.0132598876953125, -0.0438232421875, 0.007476806640625, -0.009429931640625, -0.00013375282287597656, -0.034332275390625, -0.015533447265625, -0.06854248046875, 0.0012826919555664062, 0.00540924072265625 ]
76f29ca56d869796cf2161cdf495b628ec522ed0
Wordpress Stackexchange Q: numberposts not showing specific number I'm using List Category Posts plugin to show up the specific posts from a category on a page. It works well, but if I'm trying to reduce the number of my latest posts to 3, for example this way: [catlist id=13 numberposts=3] It shows up all the posts from that category. Am I doing somwthing wrong? A: The numberposts parameter is correct. I'm using this code: [catlist numberposts=10 excerpt_size=10 excerpt=yes thumbnail=yes thumbnail_class="alignright" class="lcp_catlist_clear"] It's working on this page, showing the latest 10 posts. Maybe the category id is wrong?
Q: numberposts not showing specific number I'm using List Category Posts plugin to show up the specific posts from a category on a page. It works well, but if I'm trying to reduce the number of my latest posts to 3, for example this way: [catlist id=13 numberposts=3] It shows up all the posts from that category. Am I doing somwthing wrong? A: The numberposts parameter is correct. I'm using this code: [catlist numberposts=10 excerpt_size=10 excerpt=yes thumbnail=yes thumbnail_class="alignright" class="lcp_catlist_clear"] It's working on this page, showing the latest 10 posts. Maybe the category id is wrong?
wordpress
{ "language": "en", "length": 95, "provenance": "stackexchange_00019.jsonl.gz:425606", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71923" }
[ 0.053802490234375, 0.012359619140625, 0.0195465087890625, 0.016082763671875, 0.0235748291015625, -0.02362060546875, 0.043365478515625, -0.06549072265625, 0.002208709716796875, 0.001277923583984375, -0.036956787109375, 0.02008056640625, -0.07049560546875, -0.0221405029296875, -0.017059326171875, -0.04290771484375, 0.0278778076171875, 0.01132965087890625, 0.02191162109375, -0.01641845703125, -0.0177001953125, 0.012847900390625, 0.01235198974609375, 0.0889892578125, 0.0036773681640625, -0.01245880126953125, 0.0673828125, -0.01508331298828125, -0.006908416748046875, -0.035675048828125, 0.0120697021484375, 0.0200042724609375, 0.0545654296875, -0.0254364013671875, -0.004833221435546875, 0.03216552734375, 0.00026917457580566406, -0.01702880859375, -0.00397491455078125, 0.0112152099609375, 0.0175628662109375, -0.018157958984375, 0.04937744140625, -0.01508331298828125, 0.0090179443359375, -0.005794525146484375, 0.0218963623046875, -0.033660888671875, 0.0281219482421875, -0.062469482421875, -0.0112152099609375, 0.0257110595703125, 0.01227569580078125, -0.05841064453125, -0.01459503173828125, 0.021240234375, -0.0228729248046875, 0.03607177734375, 0.0300445556640625, -0.009307861328125, -0.02294921875, -0.00933074951171875, 0.0205078125, -0.00762939453125, -0.015777587890625, -0.002956390380859375, 0.04608154296875, 0.0001577138900756836, -0.02374267578125, -0.0279998779296875, 0.040924072265625, -0.006378173828125, 0.0292816162109375, -0.0238037109375, -0.0323486328125, -0.051788330078125, 0.0289764404296875, -0.0487060546875, -0.0074310302734375, -0.02508544921875, -0.01165008544921875, 0.000001430511474609375, -0.027130126953125, 0.00391387939453125, -0.016510009765625, 0.031890869140625, -0.0112762451171875, -0.0125274658203125, -0.03564453125, -0.0236968994140625, -0.0269317626953125, -0.018829345703125, -0.04736328125, 0.01383209228515625, 0.0196380615234375, -0.041046142578125, 0.0207977294921875, 0.045562744140625, -0.011322021484375, -0.0367431640625, -0.00586700439453125, -0.0170440673828125, -0.069580078125, -0.0012979507446289062, 0.01251220703125, 0.04364013671875, -0.01490020751953125, 0.0231781005859375, 0.0650634765625, 0.038055419921875, 0.030364990234375, 0.0274505615234375, 0.0244598388671875, 0.0156707763671875, -0.002902984619140625, -0.06451416015625, -0.06536865234375, 0.0498046875, -0.00955963134765625, -0.0078887939453125, -0.011566162109375, 0.031890869140625, -0.046356201171875, 0.0044403076171875, 0.0204925537109375, 0.015625, 0.003917694091796875, -0.0106964111328125, 0.038848876953125, -0.01483917236328125, -0.047760009765625, 0.0272674560546875, 0.044036865234375, -0.0167388916015625, -0.015625, -0.004405975341796875, 0.00982666015625, -0.0301361083984375, -0.01397705078125, 0.0007953643798828125, -0.06494140625, 0.0027179718017578125, 0.05413818359375, -0.0775146484375, 0.018829345703125, 0.0128173828125, 0.0036640167236328125, 0.00836944580078125, 0.0123443603515625, -0.004497528076171875, 0.01849365234375, -0.038238525390625, 0.05609130859375, 0.004703521728515625, -0.0389404296875, -0.008148193359375, 0.0183563232421875, -0.01849365234375, -0.036376953125, -0.0390625, 0.069580078125, -0.01751708984375, -0.019989013671875, -0.054473876953125, -0.0849609375, 0.002170562744140625, -0.05908203125, -0.01678466796875, 0.019622802734375, 0.02032470703125, -0.00263214111328125, 0.0006780624389648438, -0.006984710693359375, 0.014617919921875, 0.0112457275390625, 0.00981903076171875, -0.01483917236328125, -0.001758575439453125, 0.031524658203125, 0.023895263671875, -0.004894256591796875, -0.02313232421875, 0.030059814453125, 0.0028400421142578125, -0.038726806640625, 0.035247802734375, 0.037506103515625, 0.057769775390625, -0.0268707275390625, 0.022613525390625, 0.045135498046875, 0.04815673828125, -0.004291534423828125, -0.03070068359375, 0.0106201171875, 0.005794525146484375, -0.038055419921875, 0.0009236335754394531, -0.0009183883666992188, 0.00751495361328125, -0.0160064697265625, 0.0272979736328125, -0.0266265869140625, 0.058502197265625, -0.005573272705078125, 0.029937744140625, -0.00925445556640625, 0.0274658203125, 0.00020122528076171875, 0.035430908203125, 0.0248260498046875, 0.00342559814453125, -0.04498291015625, -0.00893402099609375, -0.012481689453125, 0.01064300537109375, -0.023223876953125, -0.0345458984375, -0.0304412841796875, -0.025970458984375, -0.035614013671875, 0.00836944580078125, -0.044219970703125, 0.054107666015625, 0.0157928466796875, 0.0032482147216796875, -0.021392822265625, -0.01898193359375, -0.00965118408203125, 0.04302978515625, -0.06646728515625, -0.0013952255249023438, 0.0083770751953125, 0.029083251953125, -0.043731689453125, -0.00862884521484375, 0.01120758056640625, 0.01522064208984375, 0.01210784912109375, 0.0243988037109375, 0.0404052734375, -0.01560211181640625, -0.0274200439453125, -0.0489501953125, 0.03656005859375, -0.0254364013671875, 0.0188446044921875, -0.044525146484375, 0.016693115234375, 0.0362548828125, 0.04583740234375, 0.00778961181640625, -0.01019287109375, -0.033111572265625, 0.018768310546875, 0.0169219970703125, 0.033050537109375, 0.0201416015625, -0.006603240966796875, -0.0002548694610595703, 0.004955291748046875, 0.00504302978515625, -0.0438232421875, 0.01486968994140625, 0.04248046875, -0.01776123046875, 0.036468505859375, 0.0238037109375, -0.0099029541015625, -0.01727294921875, 0.0087127685546875, 0.006626129150390625, 0.0229644775390625, -0.0192413330078125, -0.10321044921875, -0.0015039443969726562, -0.0302276611328125, 0.0343017578125, 0.043701171875, -0.029266357421875, -0.01454925537109375, 0.048126220703125, -0.01215362548828125, -0.019378662109375, -0.049957275390625, -0.059356689453125, -0.0007081031799316406, 0.01305389404296875, -0.0467529296875, 0.01357269287109375, 0.0281524658203125, 0.037445068359375, -0.010162353515625, 0.0165252685546875, -0.0207366943359375, 0.024566650390625, 0.0249176025390625, -0.051483154296875, 0.055877685546875, -0.048797607421875, 0.010833740234375, 0.061920166015625, -0.0179595947265625, 0.024200439453125, -0.00330352783203125, 0.0421142578125, 0.00453948974609375, -0.0013446807861328125, -0.0189666748046875, -0.03955078125, -0.0293121337890625, -0.025299072265625, 0.0211029052734375, 0.07598876953125, -0.0182037353515625, -0.06573486328125, 0.01262664794921875, 0.0211944580078125, -0.09197998046875, -0.110595703125, 0.0265960693359375, -0.032012939453125, -0.020904541015625, 0.002063751220703125, -0.026824951171875, -0.017059326171875, 0.0193023681640625, -0.0028285980224609375, -0.00624847412109375, -0.007465362548828125, -0.040252685546875, -0.03515625, -0.060638427734375, 0.0074615478515625, 0.01885986328125, 0.02752685546875, -0.013336181640625, 0.12152099609375, -0.01181793212890625, -0.0916748046875, -0.042694091796875, 0.029541015625, -0.01140594482421875, 0.0180206298828125, 0.00946044921875, 0.0236663818359375, -0.03582763671875, 0.028076171875, 0.037017822265625, 0.0200042724609375, -0.050506591796875, -0.015655517578125, -0.023040771484375, 0.0294036865234375, 0.00691986083984375, 0.0006537437438964844, 0.0279541015625, 0.0516357421875, 0.00797271728515625, -0.006465911865234375, -0.0238494873046875, -0.0231170654296875, -0.05322265625, -0.01407623291015625, 0.0195465087890625, 0.018585205078125, -0.05084228515625, 0.0261077880859375, -0.008148193359375, -0.03265380859375, 0.031890869140625, -0.06396484375, 0.052764892578125, 0.0107879638671875, 0.029937744140625, -0.013763427734375, -0.03814697265625, -0.0261383056640625, -0.00910186767578125, -0.04058837890625, 0.009124755859375, -0.019989013671875, 0.036376953125, -0.0141448974609375, -0.007335662841796875, 0.030792236328125, -0.0230865478515625, -0.0136566162109375, -0.0214385986328125, -0.02203369140625, -0.019775390625, 0.04052734375, -0.074462890625, -0.04290771484375, -0.01154327392578125, 0.040313720703125, -0.01495361328125, -0.0762939453125, 0.007495880126953125, -0.03253173828125, -0.049652099609375, -0.005451202392578125, 0.0011091232299804688, -0.02227783203125, -0.0183563232421875, 0.055511474609375, -0.045166015625, -0.00958251953125, 0.04022216796875, 0.0008211135864257812, -0.0101165771484375, -0.05413818359375, -0.00870513916015625, -0.0770263671875, -0.030181884765625, 0.00958251953125, -0.01983642578125, -0.02325439453125, 0.0033054351806640625, 0.020477294921875, 0.0322265625, -0.08758544921875, 0.0178070068359375, 0.04150390625, 0.032562255859375, 0.041839599609375, 0.00783538818359375, -0.011962890625, 0.0010042190551757812, -0.00408935546875, 0.028076171875, -0.034820556640625, -0.0125885009765625, -0.054443359375, -0.0248260498046875, -0.00782012939453125, -0.046783447265625, 0.024261474609375, -0.034759521484375, -0.0011692047119140625, -0.06317138671875, -0.02740478515625, -0.0056610107421875, 0.00211334228515625, -0.021392822265625, 0.0100555419921875, -0.029266357421875, -0.05157470703125, 0.030975341796875, 0.019775390625, 0.0025234222412109375, 0.006877899169921875, 0.046539306640625, 0.0003254413604736328, -0.018585205078125, -0.04022216796875, 0.0212554931640625, 0.04608154296875, 0.0185546875, 0.014617919921875, 0.0151214599609375, -0.042724609375, 0.055694580078125, 0.02569580078125, 0.0031108856201171875, -0.0010938644409179688, -0.004703521728515625, 0.0034160614013671875, -0.007480621337890625, -0.005252838134765625, 0.023712158203125, 0.019622802734375, 0.035491943359375, 0.00679779052734375, -0.03961181640625, -0.0206756591796875, 0.05975341796875, 0.0001068115234375, 0.007335662841796875, -0.034271240234375, -0.0084228515625, 0.01262664794921875, 0.03570556640625, 0.00890350341796875, 0.034820556640625, 0.0024929046630859375, 0.0132293701171875, 0.0100250244140625, -0.01174163818359375, 0.01568603515625, 0.04315185546875, -0.0191497802734375, -0.01678466796875, 0.051361083984375, -0.046142578125, -0.01200103759765625, -0.002399444580078125, 0.0343017578125, -0.01561737060546875, -0.04388427734375, -0.0102386474609375, -0.004322052001953125, 0.037689208984375, 0.0283660888671875, -0.025115966796875, 0.022308349609375, 0.02337646484375, -0.00860595703125, 0.004108428955078125, -0.006778717041015625, -0.02593994140625, -0.0294342041015625, -0.01274871826171875, 0.0157470703125, -0.01512908935546875, 0.008758544921875, 0.06195068359375, 0.01898193359375, 0.031524658203125, -0.023956298828125, 0.011749267578125, -0.00978851318359375, 0.01401519775390625, 0.0171356201171875, -0.00594329833984375, -0.00922393798828125, -0.00860595703125, 0.0167694091796875, -0.00867462158203125, -0.00016939640045166016, 0.005527496337890625, 0.005023956298828125, 0.031890869140625, 0.01161956787109375, 0.01611328125, -0.00206756591796875, -0.0171661376953125, 0.0237579345703125, 0.0007090568542480469, -0.0171356201171875, -0.017486572265625, -0.004917144775390625, 0.02606201171875, 0.0018167495727539062, -0.00270843505859375, -0.0293121337890625, -0.0240936279296875, 0.0062103271484375, -0.024169921875, -0.000278472900390625, 0.0017499923706054688, -0.0100555419921875, -0.0289306640625, -0.017578125, -0.005725860595703125, 0.0210113525390625, -0.0215911865234375, -0.0045013427734375, -0.0107879638671875, 0.021697998046875, 0.0031070709228515625, 0.1015625, -0.0083465576171875, -0.09295654296875, 0.0277252197265625, 0.018798828125, 0.015472412109375, 0.01523590087890625, -0.016876220703125, 0.01219940185546875, -0.027862548828125, -0.038177490234375, 0.060394287109375, 0.00957489013671875, -0.038360595703125, -0.042877197265625, 0.0389404296875, 0.03900146484375, -0.0163116455078125, -0.0849609375, -0.031402587890625, -0.0253143310546875, 0.04901123046875, 0.0430908203125, 0.014923095703125, -0.01331329345703125, 0.0235595703125, 0.04742431640625, 0.025115966796875, -0.014312744140625, -0.011016845703125, -0.04156494140625, 0.0271148681640625, -0.0276947021484375, -0.01529693603515625, 0.047698974609375, -0.076171875, -0.07232666015625, -0.02423095703125, -0.0082550048828125, -0.018310546875, 0.00948333740234375, 0.0243072509765625, 0.0007538795471191406, -0.031768798828125, 0.053375244140625, -0.041595458984375, 0.0440673828125, -0.01357269287109375, 0.0031490325927734375, -0.010101318359375, 0.0033664703369140625, -0.02001953125, -0.0186920166015625, -0.026580810546875, 0.01512908935546875, 0.0014638900756835938, 0.03021240234375, 0.05145263671875, 0.0296783447265625, 0.0283050537109375, 0.0259246826171875, 0.0208892822265625, -0.04022216796875, -0.0229034423828125, 0.0770263671875, -0.0183563232421875, 0.0433349609375, -0.0214996337890625, 0.0010175704956054688, 0.0247039794921875, -0.04461669921875, 0.0074005126953125, 0.00116729736328125, 0.0032939910888671875, -0.0209503173828125, 0.0106048583984375, -0.030364990234375, -0.0216217041015625, 0.040283203125, 0.00524139404296875, 0.0058746337890625, -0.025054931640625, 0.038604736328125, 0.0143585205078125, -0.00501251220703125, 0.0273590087890625, -0.0083160400390625, 0.00980377197265625, -0.0015058517456054688, 0.0274505615234375, 0.005397796630859375, -0.045196533203125, -0.0169677734375, 0.0288543701171875, -0.0130767822265625, -0.0313720703125, -0.0193939208984375, 0.04754638671875, -0.04119873046875, -0.07965087890625, 0.033111572265625, 0.01544189453125, -0.01000213623046875, 0.0270843505859375, 0.006610870361328125, -0.01474761962890625, 0.041290283203125, -0.0340576171875, 0.036407470703125, 0.00997161865234375, -0.0144195556640625, 0.01245880126953125, -0.0186309814453125, 0.018463134765625, 0.0345458984375, -0.052947998046875, 0.0146484375, -0.006587982177734375, -0.004436492919921875, -0.028045654296875, -0.010406494140625, 0.08892822265625, -0.0184326171875, -0.0240325927734375, 0.0291748046875, 0.05804443359375, -0.0107421875, -0.0010633468627929688, -0.0029430389404296875, -0.03289794921875, 0.033966064453125, -0.0021495819091796875, 0.03533935546875, 0.0232086181640625, 0.0201568603515625, -0.04766845703125, 0.056640625, -0.00751495361328125, 0.026611328125, -0.0213470458984375, 0.02069091796875, 0.037567138671875, 0.0295257568359375, -0.03717041015625, 0.047393798828125, -0.036773681640625, 0.03436279296875, -0.056488037109375, 0.0152740478515625, -0.0022525787353515625, 0.0232391357421875, 0.058135986328125, 0.0041961669921875, -0.04986572265625, -0.032012939453125, 0.0196990966796875, 0.0633544921875, 0.0249176025390625, 0.0240631103515625, 0.0220184326171875, 0.0022487640380859375, 0.0213470458984375, -0.0213470458984375, 0.021484375, -0.0193634033203125, 0.0102691650390625, 0.03533935546875, 0.00867462158203125, -0.004184722900390625, 0.00989532470703125, 0.0234375, -0.05682373046875, 0.02203369140625, 0.0401611328125, -0.00991058349609375, 0.030242919921875, 0.06268310546875, 0.0869140625, -0.053802490234375, -0.0189666748046875, -0.0192413330078125, 0.06536865234375, -0.0026111602783203125, 0.05694580078125, 0.037139892578125, 0.01861572265625, 0.10382080078125, -0.0163116455078125, 0.033355712890625, 0.0019350051879882812, -0.0189666748046875, 0.05340576171875, 0.005657196044921875, 0.02886962890625, -0.0204925537109375, 0.026458740234375, -0.0087432861328125, 0.04656982421875, -0.055450439453125, -0.034637451171875, 0.01290130615234375, 0.020263671875, 0.00713348388671875, 0.026031494140625, 0.033294677734375, 0.00041294097900390625, 0.0380859375, -0.0259246826171875, -0.0179901123046875, -0.004364013671875, 0.07061767578125, 0.00540924072265625, 0.006534576416015625, -0.04144287109375, -0.0653076171875, -0.02386474609375, 0.00789642333984375, 0.01537322998046875, 0.05712890625, 0.0111083984375, 0.037200927734375, -0.0736083984375, -0.0207672119140625, 0.005947113037109375, 0.036102294921875, 0.020477294921875, -0.0207061767578125, 0.0059051513671875, -0.0015935897827148438, 0.0031566619873046875, 0.01049041748046875, 0.01068878173828125, -0.0043487548828125, 0.06591796875, 0.061370849609375, -0.0225677490234375, -0.036102294921875, -0.0030460357666015625, -0.006320953369140625, -0.05474853515625, -0.0208282470703125, -0.009796142578125, 0.03778076171875, -0.004138946533203125, 0.037384033203125, 0.0244140625, 0.0272369384765625, -0.0178070068359375, -0.01678466796875, 0.01418304443359375, -0.0482177734375, 0.0273284912109375, 0.010009765625, 0.04339599609375, -0.0003333091735839844, -0.061279296875, -0.00605010986328125, -0.0243988037109375, -0.020751953125, -0.005947113037109375, 0.01519775390625, -0.01302337646484375, 0.028472900390625, 0.005619049072265625, -0.0264739990234375, 0.0217437744140625, -0.028411865234375, 0.04901123046875, 0.0105743408203125, -0.03277587890625, 0.00894927978515625, 0.00235748291015625, 0.01141357421875, -0.0020389556884765625, 0.0195465087890625, 0.0248260498046875, 0.0452880859375, -0.003467559814453125, 0.02203369140625, -0.041961669921875, 0.050018310546875, -0.0941162109375, -0.03668212890625, 0.057586669921875, -0.01274871826171875, -0.0023365020751953125, 0.0016908645629882812, -0.033966064453125, 0.01171875, 0.00556182861328125, 0.00194549560546875, -0.002826690673828125, -0.04827880859375, 0.0269317626953125, 0.033538818359375, 0.0016984939575195312, -0.0247344970703125, 0.012481689453125, -0.033660888671875, -0.04986572265625, 0.054351806640625, 0.01476287841796875, 0.0110626220703125, 0.02618408203125, 0.00007939338684082031, -0.008270263671875, -0.00495147705078125, -0.00020396709442138672, -0.0087127685546875, 0.031890869140625, -0.004505157470703125, 0.048095703125, 0.01392364501953125, -0.0144195556640625, 0.0249786376953125, 0.01338958740234375, -0.0229644775390625, 0.013336181640625, 0.0282135009765625, 0.01325225830078125, 0.02288818359375, 0.01410675048828125, -0.0265045166015625, -0.003559112548828125, 0.04510498046875, -0.0193023681640625, -0.0278472900390625, -0.003631591796875, -0.0235748291015625, -0.036529541015625, -0.0018033981323242188, 0.005443572998046875, -0.0305938720703125, -0.01013946533203125, -0.0177154541015625, -0.00030422210693359375, -0.0084991455078125, 0.00624847412109375, -0.0599365234375, 0.059295654296875, -0.010223388671875, 0.003650665283203125, -0.039337158203125, 0.0167999267578125, 0.01605224609375, 0.03509521484375, -0.046234130859375, 0.0029354095458984375, 0.0006732940673828125, -0.0027675628662109375, 0.0056304931640625, 0.0217742919921875, 0.00896453857421875, -0.0159912109375, -0.010162353515625, 0.01004791259765625, 0.01494598388671875, 0.051300048828125, 0.03265380859375, 0.006805419921875, 0.0125274658203125, 0.0264892578125, -0.05853271484375, -0.050506591796875, 0.03594970703125, -0.0266571044921875, -0.028350830078125, 0.0012540817260742188, -0.009674072265625, -0.0047454833984375, -0.0276336669921875, -0.0286102294921875, 0.0546875, 0.00971221923828125, -0.0157928466796875, -0.0042877197265625, -0.0264129638671875, 0.004131317138671875, -0.015472412109375, -0.017669677734375, -0.009765625, -0.04180908203125, 0.024444580078125, -0.01065826416015625, 0.035980224609375, 0.01251220703125, -0.022796630859375, -0.045684814453125, -0.0035533905029296875, -0.0133819580078125, 0.00601959228515625, 0.02874755859375, -0.005069732666015625, 0.0153045654296875, 0.0247344970703125, -0.058685302734375, 0.0100555419921875, -0.01253509521484375, 0.034637451171875, 0.0191192626953125, -0.0196685791015625, -0.07196044921875, -0.0709228515625, 0.031524658203125, 0.03387451171875, 0.0160980224609375, 0.00969696044921875, -0.0010194778442382812, -0.053497314453125, -0.00018596649169921875, -0.035980224609375, 0.00547027587890625, -0.06719970703125, -0.00836181640625, 0.02044677734375, -0.01387786865234375, 0.0108489990234375, -0.0250091552734375, -0.032257080078125, -0.0102081298828125, -0.04644775390625, -0.01538848876953125, -0.025238037109375, 0.0080718994140625, 0.011962890625, -0.024444580078125, -0.06689453125, 0.02264404296875, -0.0067596435546875, -0.047271728515625, 0.0219879150390625, -0.03143310546875, -0.0236053466796875, -0.0030975341796875, 0.036468505859375, -0.007587432861328125, 0.02825927734375, -0.0165557861328125, 0.013824462890625, 0.002300262451171875, 0.005512237548828125, -0.0032405853271484375, -0.004871368408203125, 0.021759033203125, 0.0309906005859375, -0.0107574462890625, 0.033416748046875, 0.01502227783203125, 0.028076171875, 0.00888824462890625, 0.047088623046875, -0.0036773681640625, -0.0246429443359375, 0.0181427001953125, -0.0433349609375, -0.0225830078125, -0.0036258697509765625, -0.03125, -0.040130615234375, 0.01153564453125, -0.042022705078125, -0.00699615478515625, 0.0048675537109375 ]
fc27d85789b08d0ff3573ee209139c2f867b0061
Wordpress Stackexchange Q: How to prevent automatic redirection of 404 errors and "incorrect" URLs? Wordpress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page If I go to: www.mysite.com/something/my-page/ it will immediately redirect me to www.mysite.com/my-page/ as nothing exists at the first URL. How can I turn this feature off, and instead just get a 404 if incorrect URL's are typed in? A: You can disable permalink guessing for 404s without disabling redirection of canonical URLs by adding the following line somewhere in your code (eg. in functions.php): add_filter('do_redirect_guess_404_permalink', '__return_false'); Relevant functions in the Wordpress code are redirect_canonical and redirect_guess_404_permalink in wp-includes/canonical.php.
Q: How to prevent automatic redirection of 404 errors and "incorrect" URLs? Wordpress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page If I go to: www.mysite.com/something/my-page/ it will immediately redirect me to www.mysite.com/my-page/ as nothing exists at the first URL. How can I turn this feature off, and instead just get a 404 if incorrect URL's are typed in? A: You can disable permalink guessing for 404s without disabling redirection of canonical URLs by adding the following line somewhere in your code (eg. in functions.php): add_filter('do_redirect_guess_404_permalink', '__return_false'); Relevant functions in the Wordpress code are redirect_canonical and redirect_guess_404_permalink in wp-includes/canonical.php. A: This worked for me: remove_action('template_redirect', 'redirect_canonical'); A: As Ash suggested, you can turn off the feature by using the following code: remove_action('template_redirect', 'redirect_canonical'); In looking at the redirect_canonical function in canonical.php, it would appear you can also modify the behavior with your own filter. At the end of the redirect_canonical() function, there is a call to filter the final answer: $redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url ); So you could write your own filter to modify the final redirection or return null to stop the redirection, based upon the input, thus turning off the feature for a particular URL or a subset of URLs.
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:425608", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71927" }
[ 0.0860595703125, 0.0197601318359375, 0.029449462890625, -0.01806640625, 0.0078277587890625, -0.0196533203125, 0.049896240234375, -0.062469482421875, 0.011138916015625, 0.01340484619140625, 0.0098724365234375, -0.00807952880859375, 0.0146636962890625, -0.053253173828125, 0.0146636962890625, -0.00021195411682128906, 0.01294708251953125, -0.021331787109375, 0.013458251953125, -0.021392822265625, 0.0113525390625, -0.01155853271484375, 0.0263519287109375, 0.0218963623046875, -0.0004911422729492188, -0.0272979736328125, 0.0689697265625, -0.01290130615234375, -0.010040283203125, -0.03289794921875, 0.0124664306640625, 0.0214691162109375, 0.0075531005859375, 0.0455322265625, -0.035430908203125, -0.0261383056640625, 0.00827789306640625, 0.0187835693359375, 0.002498626708984375, 0.0310211181640625, 0.0087127685546875, -0.00714111328125, 0.047210693359375, 0.01849365234375, 0.0036449432373046875, -0.019317626953125, 0.00039505958557128906, -0.061279296875, 0.022857666015625, 0.0011968612670898438, 0.0042572021484375, 0.0222625732421875, 0.0182952880859375, -0.01305389404296875, -0.0254669189453125, -0.03814697265625, 0.0022182464599609375, 0.0276336669921875, 0.0161895751953125, -0.0269927978515625, -0.03314208984375, 0.023681640625, 0.00391387939453125, -0.00731658935546875, -0.040771484375, -0.0175628662109375, -0.045440673828125, 0.02252197265625, -0.0560302734375, -0.055999755859375, 0.031585693359375, -0.0172271728515625, 0.0011682510375976562, 0.007595062255859375, -0.0158538818359375, -0.0263214111328125, 0.0175018310546875, -0.021728515625, 0.0177459716796875, 0.0306854248046875, 0.0244293212890625, -0.0501708984375, 0.037017822265625, -0.01317596435546875, 0.010711669921875, 0.0096435546875, -0.004268646240234375, 0.0010461807250976562, -0.038299560546875, -0.030029296875, -0.033233642578125, -0.01776123046875, -0.0482177734375, 0.0009241104125976562, -0.0006151199340820312, -0.021759033203125, 0.0278778076171875, 0.06585693359375, -0.0034427642822265625, 0.01041412353515625, -0.01207733154296875, -0.02410888671875, -0.00806427001953125, -0.03863525390625, -0.005279541015625, 0.062347412109375, 0.034637451171875, -0.01104736328125, 0.00611114501953125, 0.005550384521484375, 0.026214599609375, 0.0280303955078125, -0.00994873046875, -0.055694580078125, 0.00008702278137207031, 0.06207275390625, 0.0015897750854492188, -0.0030574798583984375, 0.005725860595703125, 0.00637054443359375, -0.019195556640625, 0.00948333740234375, 0.01531219482421875, -0.020263671875, 0.005062103271484375, -0.0183868408203125, -0.0101318359375, -0.01959228515625, 0.04412841796875, 0.019256591796875, -0.04608154296875, 0.0034618377685546875, 0.0401611328125, -0.00920867919921875, -0.006320953369140625, -0.027862548828125, 0.061126708984375, 0.005764007568359375, -0.00888824462890625, 0.00984954833984375, 0.004833221435546875, -0.0180206298828125, -0.0217437744140625, -0.00794219970703125, 0.02557373046875, 0.035247802734375, 0.0188140869140625, 0.010711669921875, -0.00792694091796875, -0.039764404296875, 0.0182952880859375, -0.01806640625, 0.038116455078125, -0.0158538818359375, 0.01800537109375, -0.074951171875, 0.0012884140014648438, -0.029754638671875, 0.02532958984375, -0.0226593017578125, 0.0246734619140625, -0.02264404296875, 0.006130218505859375, -0.0166015625, -0.0673828125, 0.0283203125, -0.04736328125, -0.0247039794921875, 0.01099395751953125, 0.0362548828125, -0.0430908203125, -0.0020160675048828125, -0.0251617431640625, -0.025177001953125, -0.0271453857421875, -0.00762176513671875, 0.01580810546875, 0.0238189697265625, -0.00406646728515625, 0.09600830078125, 0.045257568359375, -0.018280029296875, 0.036651611328125, -0.01007843017578125, -0.055023193359375, 0.07232666015625, 0.01058197021484375, 0.073486328125, -0.00702667236328125, 0.007579803466796875, 0.0191192626953125, 0.03363037109375, -0.04559326171875, 0.041015625, -0.0244598388671875, -0.032867431640625, 0.0506591796875, 0.0233001708984375, -0.006443023681640625, -0.002300262451171875, -0.0014057159423828125, 0.00911712646484375, -0.031982421875, 0.004772186279296875, -0.07452392578125, -0.00876617431640625, -0.035186767578125, 0.0267181396484375, 0.01503753662109375, 0.0477294921875, 0.0020847320556640625, -0.0007739067077636719, -0.00959014892578125, 0.0091400146484375, -0.01149749755859375, 0.0043792724609375, -0.00934600830078125, 0.010589599609375, -0.01488494873046875, -0.0027141571044921875, -0.0284576416015625, -0.0228729248046875, -0.0287322998046875, -0.0193634033203125, 0.0178070068359375, -0.04705810546875, -0.011993408203125, -0.0263824462890625, -0.01271820068359375, -0.0177764892578125, -0.0261688232421875, 0.07623291015625, 0.005817413330078125, 0.001956939697265625, -0.04144287109375, -0.0156707763671875, -0.028717041015625, -0.041656494140625, -0.005859375, 0.058380126953125, 0.032989501953125, 0.0099639892578125, -0.021514892578125, -0.0031948089599609375, -0.035552978515625, -0.08209228515625, 0.00678253173828125, -0.00011962652206420898, 0.031494140625, 0.027252197265625, 0.041961669921875, -0.02996826171875, 0.01666259765625, -0.04949951171875, 0.00931549072265625, 0.0285797119140625, -0.04351806640625, -0.0178985595703125, -0.00634765625, -0.0174102783203125, 0.0117645263671875, -0.028045654296875, -0.0035552978515625, -0.0177154541015625, 0.004535675048828125, -0.0284423828125, 0.0034732818603515625, 0.00299835205078125, 0.007415771484375, -0.035614013671875, 0.0100860595703125, -0.0247955322265625, 0.004917144775390625, -0.01068115234375, 0.044403076171875, -0.0423583984375, -0.0379638671875, 0.021209716796875, 0.0184783935546875, -0.0145263671875, -0.036285400390625, 0.036102294921875, -0.02593994140625, -0.0173187255859375, -0.041748046875, -0.03778076171875, 0.0023784637451171875, -0.0248260498046875, 0.019561767578125, -0.0171356201171875, 0.0178375244140625, 0.0175933837890625, -0.01259613037109375, 0.032196044921875, 0.01251220703125, -0.04083251953125, -0.037628173828125, -0.060150146484375, 0.032379150390625, -0.05511474609375, 0.03271484375, 0.0626220703125, -0.01082611083984375, 0.00971221923828125, 0.01201629638671875, 0.01020050048828125, 0.01140594482421875, 0.00536346435546875, -0.01410675048828125, 0.0303802490234375, -0.09539794921875, -0.0372314453125, 0.033233642578125, 0.0169219970703125, 0.0277252197265625, -0.01528167724609375, 0.01496124267578125, 0.0213470458984375, -0.07135009765625, -0.08099365234375, 0.0037021636962890625, -0.00872039794921875, -0.005649566650390625, 0.02996826171875, 0.0035877227783203125, -0.02825927734375, 0.042938232421875, 0.007904052734375, -0.0094146728515625, -0.0206146240234375, -0.04730224609375, -0.039703369140625, -0.047149658203125, 0.0277099609375, 0.0089111328125, 0.005046844482421875, 0.006595611572265625, -0.015472412109375, 0.00499725341796875, -0.008209228515625, 0.035400390625, 0.02276611328125, 0.001842498779296875, -0.027374267578125, -0.0208587646484375, -0.024200439453125, 0.0163421630859375, -0.0023250579833984375, 0.056060791015625, 0.005428314208984375, 0.0110626220703125, -0.006977081298828125, -0.053741455078125, 0.00621795654296875, 0.0020008087158203125, -0.0171356201171875, 0.052734375, 0.004726409912109375, 0.00495147705078125, -0.014404296875, -0.013214111328125, 0.0003361701965332031, -0.045684814453125, -0.004383087158203125, 0.0196685791015625, -0.0129241943359375, 0.00824737548828125, -0.0206298828125, 0.0372314453125, 0.01020050048828125, 0.006031036376953125, -0.0185546875, 0.06231689453125, 0.0033588409423828125, 0.03485107421875, -0.0523681640625, 0.05523681640625, 0.0033435821533203125, 0.00445556640625, 0.021240234375, 0.027069091796875, 0.0247344970703125, -0.00970458984375, -0.0255126953125, -0.031829833984375, 0.012603759765625, -0.047332763671875, 0.004634857177734375, -0.0163116455078125, -0.00201416015625, 0.01491546630859375, 0.0692138671875, -0.0325927734375, -0.0160064697265625, -0.0029392242431640625, 0.0067901611328125, 0.0005488395690917969, -0.04083251953125, -0.01238250732421875, -0.00942230224609375, -0.07080078125, -0.03631591796875, -0.032806396484375, -0.0382080078125, 0.00611114501953125, 0.0039215087890625, -0.0245819091796875, -0.04595947265625, 0.021453857421875, -0.0445556640625, -0.0089569091796875, 0.005039215087890625, -0.009368896484375, -0.042877197265625, 0.00782012939453125, -0.0460205078125, -0.09228515625, -0.0296783447265625, -0.0038928985595703125, 0.0887451171875, 0.0017251968383789062, -0.0183868408203125, -0.00708770751953125, 0.0567626953125, -0.002925872802734375, 0.02484130859375, -0.01280975341796875, -0.015838623046875, 0.045623779296875, 0.0241851806640625, 0.0020885467529296875, 0.010467529296875, 0.034423828125, 0.0091552734375, -0.06561279296875, -0.0164031982421875, -0.03955078125, -0.0024242401123046875, 0.044403076171875, -0.057647705078125, -0.035247802734375, -0.04071044921875, -0.038818359375, 0.0340576171875, -0.00949859619140625, -0.01425933837890625, -0.048370361328125, -0.08331298828125, 0.01910400390625, -0.049713134765625, -0.00086212158203125, 0.00040078163146972656, 0.03814697265625, 0.018798828125, 0.0008940696716308594, 0.057952880859375, 0.013580322265625, 0.0098419189453125, -0.0174560546875, 0.040802001953125, -0.021331787109375, 0.0119171142578125, 0.041412353515625, -0.050048828125, -0.04400634765625, 0.0128173828125, 0.005290985107421875, 0.001667022705078125, -0.026031494140625, -0.0109710693359375, -0.06915283203125, 0.06365966796875, 0.049957275390625, 0.009674072265625, -0.00698089599609375, 0.01422119140625, 0.01287078857421875, -0.0067138671875, -0.018035888671875, -0.01432037353515625, -0.0263824462890625, 0.0150604248046875, 0.0501708984375, 0.0044097900390625, 0.0215606689453125, -0.0006799697875976562, 0.01515960693359375, -0.00970458984375, -0.0128936767578125, 0.005340576171875, 0.00473785400390625, -0.0173797607421875, 0.015625, -0.0036296844482421875, -0.0304412841796875, -0.0008921623229980469, -0.0012359619140625, 0.059967041015625, 0.009979248046875, -0.031585693359375, 0.01873779296875, -0.03240966796875, -0.032440185546875, 0.019683837890625, -0.020294189453125, 0.045501708984375, 0.0273590087890625, -0.03668212890625, -0.008819580078125, -0.0238494873046875, -0.0207061767578125, -0.067138671875, 0.004734039306640625, 0.017913818359375, 0.00823211669921875, 0.016021728515625, 0.042877197265625, 0.07586669921875, 0.00041604042053222656, -0.04412841796875, 0.00010281801223754883, 0.020965576171875, 0.0309906005859375, 0.0255126953125, -0.0152435302734375, 0.00299835205078125, -0.00550079345703125, 0.038360595703125, -0.0526123046875, -0.040435791015625, 0.04229736328125, 0.06109619140625, -0.03460693359375, -0.0280303955078125, 0.016387939453125, -0.00984954833984375, -0.0066986083984375, 0.0308990478515625, -0.024658203125, -0.0308837890625, -0.053558349609375, -0.03668212890625, 0.0438232421875, -0.0152587890625, -0.0347900390625, 0.03350830078125, -0.0377197265625, 0.0186309814453125, 0.049560546875, -0.0390625, 0.005889892578125, 0.0106658935546875, 0.00807952880859375, -0.035797119140625, -0.02490234375, -0.00965118408203125, 0.031280517578125, -0.050445556640625, -0.01849365234375, 0.054168701171875, -0.01100921630859375, -0.003192901611328125, -0.025970458984375, 0.01477813720703125, 0.0272064208984375, 0.0130157470703125, 0.034820556640625, -0.01526641845703125, -0.059478759765625, -0.0036468505859375, -0.0462646484375, -0.01360321044921875, -0.0115814208984375, 0.007549285888671875, -0.0276641845703125, 0.005146026611328125, 0.0186614990234375, 0.012847900390625, -0.0028934478759765625, -0.0218658447265625, -0.01629638671875, 0.02056884765625, 0.01473236083984375, 0.01442718505859375, -0.0184326171875, -0.0065155029296875, 0.020965576171875, -0.002758026123046875, -0.0086669921875, 0.00453948974609375, 0.046600341796875, -0.035736083984375, -0.0074310302734375, -0.038421630859375, -0.0033245086669921875, 0.012847900390625, -0.0092620849609375, 0.046661376953125, 0.07489013671875, 0.006641387939453125, -0.027740478515625, 0.00370025634765625, 0.0222015380859375, -0.035614013671875, -0.01219940185546875, 0.0027980804443359375, -0.0093231201171875, -0.0262451171875, 0.0204315185546875, 0.010040283203125, -0.019134521484375, -0.041015625, 0.005584716796875, 0.02783203125, -0.000009417533874511719, -0.0177764892578125, -0.050933837890625, 0.06170654296875, 0.060211181640625, 0.040008544921875, 0.071533203125, 0.01055145263671875, 0.037750244140625, 0.035125732421875, 0.0250701904296875, -0.0016813278198242188, -0.043121337890625, 0.0280914306640625, -0.00783538818359375, -0.0157623291015625, 0.0179443359375, -0.01727294921875, -0.017486572265625, 0.09490966796875, 0.051483154296875, -0.11260986328125, -0.01776123046875, 0.0025234222412109375, 0.00206756591796875, -0.004222869873046875, -0.009307861328125, 0.0085906982421875, 0.0283050537109375, -0.00684356689453125, -0.049285888671875, -0.051788330078125, -0.01416778564453125, -0.005626678466796875, -0.00980377197265625, 0.021453857421875, 0.051849365234375, 0.00675201416015625, -0.042510986328125, -0.0183563232421875, 0.00444793701171875, -0.000392913818359375, -0.0140228271484375, -0.004302978515625, -0.0147552490234375, -0.010955810546875, -0.019317626953125, 0.0172119140625, -0.047210693359375, 0.028961181640625, 0.050262451171875, 0.015380859375, -0.00800323486328125, 0.038116455078125, -0.025238037109375, 0.03997802734375, -0.00022363662719726562, -0.04461669921875, 0.054840087890625, -0.029266357421875, -0.00411224365234375, -0.02471923828125, -0.0191802978515625, -0.00052642822265625, -0.00360107421875, -0.03997802734375, 0.002960205078125, 0.00634002685546875, 0.060791015625, -0.051055908203125, -0.0106353759765625, 0.02716064453125, -0.0182342529296875, 0.0022106170654296875, -0.02276611328125, 0.023529052734375, -0.05242919921875, -0.01435089111328125, -0.01349639892578125, -0.0177764892578125, 0.0165252685546875, -0.0310211181640625, -0.020538330078125, 0.054901123046875, 0.0078125, 0.0017461776733398438, 0.0073394775390625, 0.0269775390625, 0.007167816162109375, 0.033447265625, -0.01226806640625, 0.055206298828125, 0.0238494873046875, 0.043121337890625, -0.04095458984375, -0.03271484375, 0.0217132568359375, 0.058197021484375, 0.0704345703125, 0.02008056640625, -0.04425048828125, 0.0142822265625, 0.058013916015625, 0.0312042236328125, 0.0029430389404296875, 0.03656005859375, -0.0088348388671875, 0.0240631103515625, 0.037078857421875, -0.05645751953125, 0.0180206298828125, -0.0257568359375, 0.0036754608154296875, -0.00177764892578125, 0.01442718505859375, 0.00977325439453125, -0.01222991943359375, -0.01047515869140625, -0.06414794921875, 0.0007147789001464844, 0.0439453125, 0.025909423828125, 0.0247650146484375, 0.0209197998046875, 0.06964111328125, -0.10968017578125, 0.041168212890625, -0.06280517578125, 0.07891845703125, 0.0030689239501953125, 0.006927490234375, 0.04644775390625, 0.01277923583984375, 0.0307769775390625, 0.020294189453125, 0.0164031982421875, 0.0245361328125, 0.004547119140625, 0.031158447265625, 0.03985595703125, 0.04620361328125, 0.00331878662109375, -0.03411865234375, 0.0238037109375, 0.05126953125, -0.01032257080078125, -0.0223541259765625, 0.0106048583984375, -0.005126953125, 0.0016765594482421875, -0.01557159423828125, 0.004222869873046875, -0.047943115234375, -0.01568603515625, -0.0082855224609375, -0.0146636962890625, 0.0171661376953125, -0.0103302001953125, -0.02520751953125, -0.0113677978515625, 0.035491943359375, 0.039031982421875, -0.0252227783203125, -0.0230255126953125, 0.023162841796875, 0.07830810546875, 0.018646240234375, 0.037506103515625, -0.0089263916015625, -0.0289306640625, -0.0219268798828125, 0.04876708984375, -0.01155853271484375, 0.0278472900390625, -0.06488037109375, -0.056854248046875, 0.03106689453125, 0.049652099609375, -0.003009796142578125, -0.0179290771484375, 0.0126800537109375, 0.0222625732421875, -0.022064208984375, -0.018646240234375, 0.01629638671875, -0.0277252197265625, 0.033294677734375, -0.033905029296875, 0.004604339599609375, -0.0162811279296875, -0.018218994140625, -0.034088134765625, 0.0097198486328125, 0.01055908203125, 0.00927734375, 0.01363372802734375, -0.004154205322265625, -0.014617919921875, 0.03424072265625, -0.036865234375, 0.034332275390625, 0.01495361328125, -0.047637939453125, -0.0207977294921875, -0.0197906494140625, -0.04150390625, 0.044708251953125, 0.059722900390625, 0.0146331787109375, -0.03143310546875, 0.0027008056640625, 0.005512237548828125, 0.0198516845703125, -0.031219482421875, 0.0015935897827148438, -0.016876220703125, 0.017120361328125, -0.00490570068359375, -0.0004968643188476562, -0.00299072265625, 0.026092529296875, 0.0225982666015625, -0.0230712890625, 0.11572265625, -0.048736572265625, -0.01959228515625, -0.0106201171875, -0.00467681884765625, -0.0218658447265625, -0.02093505859375, 0.0305633544921875, -0.01184844970703125, -0.0165557861328125, -0.009552001953125, -0.040008544921875, 0.041015625, 0.01361846923828125, -0.00508880615234375, 0.05859375, -0.027191162109375, -0.008056640625, -0.02630615234375, 0.049896240234375, -0.03704833984375, -0.098876953125, -0.08563232421875, 0.01214599609375, -0.0082550048828125, 0.004749298095703125, -0.03558349609375, 0.048858642578125, -0.048553466796875, -0.0287628173828125, 0.035552978515625, -0.074951171875, 0.03448486328125, 0.0258026123046875, -0.029296875, 0.0119781494140625, -0.0030975341796875, -0.0107574462890625, -0.0219268798828125, 0.023529052734375, -0.03948974609375, -0.00867462158203125, -0.0033473968505859375, -0.06353759765625, -0.0731201171875, -0.048095703125, -0.026885986328125, -0.02667236328125, -0.059844970703125, -0.006771087646484375, -0.00238800048828125, -0.003143310546875, -0.011688232421875, -0.0174560546875, -0.0023326873779296875, 0.005222320556640625, 0.0189971923828125, -0.0030918121337890625, 0.038238525390625, 0.01468658447265625, 0.014007568359375, -0.0004799365997314453, -0.042266845703125, 0.019012451171875, -0.0343017578125, 0.05859375, -0.04083251953125, 0.01349639892578125, -0.0072479248046875, 0.0006146430969238281, -0.05572509765625, 0.00811004638671875, -0.02374267578125, 0.0135498046875, -0.019805908203125, -0.0009965896606445312, 0.039886474609375, -0.00919342041015625, -0.000026702880859375, -0.05755615234375, -0.0177154541015625, 0.005741119384765625, -0.04815673828125, -0.0321044921875, 0.039947509765625, -0.0096435546875, -0.0034847259521484375, -0.01311492919921875, -0.0234832763671875, 0.01435089111328125, 0.0231475830078125, 0.012359619140625, -0.021026611328125, -0.004638671875, -0.045318603515625, -0.0467529296875, 0.0439453125, 0.00864410400390625, -0.0274200439453125, -0.01103973388671875, -0.01275634765625, -0.00848388671875, 0.0175323486328125, -0.0036411285400390625, 0.007030487060546875, -0.0220947265625, 0.018768310546875, 0.0162506103515625, 0.0225372314453125, -0.012359619140625, 0.0237884521484375, 0.0181884765625, 0.0628662109375, 0.07208251953125, -0.0206756591796875, 0.01255035400390625, -0.0116424560546875, 0.046234130859375, 0.064453125, -0.00907135009765625, 0.0011224746704101562, 0.01087188720703125, -0.0350341796875, -0.0230255126953125, -0.0205535888671875, -0.02685546875, -0.0546875, 0.079345703125, 0.0263824462890625, 0.00833892822265625, 0.0039520263671875, -0.056304931640625, -0.00833892822265625, -0.005710601806640625, -0.0200042724609375, 0.027557373046875, -0.0982666015625, -0.0263671875, 0.01261138916015625, -0.0035800933837890625, -0.00152587890625, -0.00455474853515625, -0.026092529296875, 0.0011873245239257812, 0.0183258056640625, -0.0175323486328125, -0.0171966552734375, -0.0024394989013671875, 0.0312347412109375, -0.026641845703125, 0.0102081298828125, -0.0199737548828125, 0.025238037109375, -0.0038909912109375, -0.039642333984375, 0.03021240234375, 0.0703125, -0.051971435546875, -0.01885986328125, 0.0207366943359375, 0.0091552734375, -0.03338623046875, -0.019317626953125, -0.01448822021484375, 0.022918701171875, 0.01052093505859375, 0.0384521484375, 0.004001617431640625, -0.00734710693359375, 0.003406524658203125, 0.0081634521484375, 0.00647735595703125, 0.0206756591796875, -0.003711700439453125, 0.051055908203125, -0.041168212890625, -0.019134521484375, -0.0237274169921875, -0.042877197265625, 0.0110626220703125, 0.056396484375, 0.0022716522216796875, -0.001674652099609375, 0.00157928466796875, -0.003871917724609375, 0.025909423828125, -0.0015058517456054688 ]
3ad632b71b95b167b8f8dec1ba1b7b2631f8349f
Wordpress Stackexchange Q: how to enable different number of revisions for different blogs when using WPMU? for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog to have more revision than blog1, how to do this? wp-config.php only support for global revision, and can not be customize for each blogs, so should i implement this function by myself? A: No, wp-config.php can have granular constants. Like this: if ( 'example.com' == $_SERVER['HTTP_HOST'] ) { define( 'WP_POST_REVISIONS', 1 ); } elseif ( 'blog1.example.com' == $_SERVER['HTTP_HOST'] ) { define( 'WP_POST_REVISIONS', 5 ); } elseif ( 'blog2.example.com' == $_SERVER['HTTP_HOST'] ) { define( 'WP_POST_REVISIONS', 10 ); }
Q: how to enable different number of revisions for different blogs when using WPMU? for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog to have more revision than blog1, how to do this? wp-config.php only support for global revision, and can not be customize for each blogs, so should i implement this function by myself? A: No, wp-config.php can have granular constants. Like this: if ( 'example.com' == $_SERVER['HTTP_HOST'] ) { define( 'WP_POST_REVISIONS', 1 ); } elseif ( 'blog1.example.com' == $_SERVER['HTTP_HOST'] ) { define( 'WP_POST_REVISIONS', 5 ); } elseif ( 'blog2.example.com' == $_SERVER['HTTP_HOST'] ) { define( 'WP_POST_REVISIONS', 10 ); }
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:425611", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71933" }
[ 0.028778076171875, -0.0213470458984375, -0.0274658203125, -0.04107666015625, 0.00467681884765625, -0.0257415771484375, 0.017852783203125, 0.00920867919921875, -0.006923675537109375, -0.00994110107421875, -0.056732177734375, 0.00395965576171875, -0.03582763671875, -0.01180267333984375, -0.0068206787109375, -0.055145263671875, 0.0367431640625, -0.0243072509765625, 0.00473785400390625, -0.01424407958984375, -0.0204010009765625, 0.0078582763671875, 0.00585174560546875, 0.06719970703125, 0.024169921875, 0.0018634796142578125, 0.040496826171875, -0.02093505859375, 0.00843048095703125, -0.0270538330078125, 0.0223236083984375, 0.0002281665802001953, 0.0389404296875, 0.022857666015625, -0.059356689453125, -0.0303955078125, 0.010711669921875, -0.0087127685546875, -0.034454345703125, 0.03350830078125, 0.015655517578125, -0.00762176513671875, 0.03546142578125, 0.00952911376953125, -0.008880615234375, -0.0148773193359375, 0.0146942138671875, -0.0281982421875, 0.0104217529296875, 0.0203094482421875, -0.008209228515625, 0.0162506103515625, -0.0058441162109375, -0.00519561767578125, -0.00318145751953125, -0.030548095703125, 0.032318115234375, 0.00598907470703125, 0.0298004150390625, -0.059600830078125, -0.053253173828125, 0.005878448486328125, 0.03662109375, 0.0284423828125, -0.0452880859375, 0.005413055419921875, 0.03662109375, 0.01629638671875, -0.063232421875, -0.07177734375, 0.0281982421875, -0.021942138671875, 0.01262664794921875, -0.003971099853515625, -0.026336669921875, -0.00234222412109375, 0.0031795501708984375, -0.0085906982421875, 0.0209808349609375, -0.00597381591796875, 0.041656494140625, -0.010528564453125, -0.00457763671875, -0.019195556640625, 0.03857421875, 0.017669677734375, 0.002899169921875, -0.020263671875, -0.0399169921875, -0.00928497314453125, -0.0230560302734375, -0.048675537109375, -0.07464599609375, 0.0404052734375, 0.03326416015625, -0.018096923828125, 0.033172607421875, 0.044708251953125, -0.00972747802734375, -0.0175323486328125, 0.0016870498657226562, -0.029449462890625, -0.0220489501953125, -0.01480865478515625, 0.004909515380859375, 0.04876708984375, -0.0131072998046875, -0.0028171539306640625, 0.0447998046875, 0.0252838134765625, 0.023834228515625, 0.040496826171875, 0.0052337646484375, -0.06591796875, 0.0153656005859375, -0.0078125, -0.026092529296875, 0.034088134765625, 0.038818359375, -0.06060791015625, -0.022491455078125, 0.031158447265625, -0.0200653076171875, -0.0325927734375, -0.0161285400390625, -0.031829833984375, 0.0182037353515625, -0.0321044921875, -0.035614013671875, 0.017486572265625, -0.03497314453125, 0.03564453125, 0.06658935546875, 0.00110626220703125, -0.028961181640625, -0.0201568603515625, 0.039794921875, 0.0246429443359375, -0.013153076171875, 0.02557373046875, -0.057586669921875, -0.009674072265625, 0.0176544189453125, -0.058074951171875, 0.00079345703125, 0.02581787109375, 0.031341552734375, 0.01033782958984375, 0.004779815673828125, -0.025665283203125, -0.014007568359375, 0.0203704833984375, 0.0253143310546875, -0.006267547607421875, 0.0010690689086914062, -0.05194091796875, -0.0117645263671875, -0.04583740234375, 0.038787841796875, -0.033050537109375, -0.0211181640625, -0.01209259033203125, 0.0401611328125, -0.0595703125, -0.08154296875, 0.029205322265625, -0.034088134765625, -0.0211944580078125, 0.034332275390625, -0.01776123046875, 0.037750244140625, -0.0233306884765625, 0.0224456787109375, 0.03564453125, 0.0093536376953125, 0.03515625, -0.02081298828125, -0.00408935546875, 0.004444122314453125, 0.039093017578125, 0.027557373046875, -0.01251220703125, 0.01262664794921875, 0.01800537109375, -0.06085205078125, 0.01200103759765625, -0.00086212158203125, 0.047576904296875, 0.052154541015625, 0.01468658447265625, 0.0166015625, -0.02862548828125, -0.0079345703125, 0.0139007568359375, -0.032989501953125, -0.0141143798828125, -0.0265960693359375, 0.0207977294921875, -0.034027099609375, 0.009857177734375, 0.006923675537109375, -0.0292816162109375, 0.0255126953125, -0.005580902099609375, -0.042022705078125, -0.00640869140625, -0.0203399658203125, 0.0168609619140625, 0.0013093948364257812, 0.0274658203125, 0.0163116455078125, 0.0054473876953125, -0.01047515869140625, -0.036773681640625, -0.01140594482421875, 0.00940704345703125, -0.013671875, 0.061065673828125, -0.012451171875, 0.0335693359375, -0.0256195068359375, -0.02081298828125, -0.00928497314453125, -0.006107330322265625, 0.0631103515625, -0.06378173828125, 0.0013904571533203125, -0.06427001953125, 0.046112060546875, 0.004657745361328125, -0.05853271484375, 0.0262298583984375, 0.0265350341796875, 0.030792236328125, 0.005828857421875, -0.004634857177734375, 0.033905029296875, -0.06787109375, 0.0234832763671875, 0.0416259765625, 0.032958984375, -0.01287078857421875, -0.0307464599609375, -0.0093536376953125, -0.01035308837890625, -0.03997802734375, 0.001354217529296875, -0.00640106201171875, -0.023895263671875, 0.016571044921875, 0.0120697021484375, 0.002361297607421875, 0.013153076171875, -0.057861328125, -0.01091766357421875, 0.0310516357421875, -0.00638580322265625, 0.051361083984375, 0.0020599365234375, -0.03472900390625, -0.01142120361328125, -0.03680419921875, -0.01508331298828125, -0.03082275390625, 0.0174713134765625, 0.034454345703125, 0.04901123046875, 0.041046142578125, -0.0211029052734375, 0.00727081298828125, 0.0010251998901367188, 0.019195556640625, 0.0088653564453125, -0.0355224609375, -0.03240966796875, 0.0075531005859375, -0.02056884765625, 0.032867431640625, 0.0208282470703125, -0.0335693359375, -0.0294647216796875, 0.007419586181640625, -0.02752685546875, -0.01654052734375, -0.0008492469787597656, -0.0633544921875, 0.00923919677734375, -0.0157470703125, -0.0301513671875, -0.03271484375, 0.0266571044921875, -0.02178955078125, -0.041900634765625, 0.0032520294189453125, -0.034393310546875, -0.0308380126953125, 0.01153564453125, -0.08203125, 0.06658935546875, -0.054931640625, 0.081298828125, 0.0821533203125, -0.020477294921875, 0.0266876220703125, -0.00852203369140625, 0.01171112060546875, -0.0162506103515625, 0.00856781005859375, -0.007350921630859375, -0.01531982421875, -0.06268310546875, -0.0090484619140625, 0.0125732421875, -0.037322998046875, 0.033294677734375, 0.0075225830078125, -0.0052490234375, -0.0075225830078125, -0.038238525390625, -0.016693115234375, -0.0157928466796875, -0.052581787109375, 0.03826904296875, -0.00911712646484375, 0.0010271072387695312, -0.0418701171875, 0.0216217041015625, 0.0193634033203125, 0.03338623046875, -0.0253448486328125, -0.04693603515625, -0.038970947265625, -0.09088134765625, -0.04656982421875, 0.018463134765625, 0.0225830078125, -0.002063751220703125, 0.061981201171875, -0.006076812744140625, -0.0634765625, -0.01532745361328125, -0.0247344970703125, 0.0015239715576171875, -0.0124053955078125, 0.01983642578125, -0.01910400390625, -0.04498291015625, 0.00543212890625, 0.035064697265625, 0.0109710693359375, -0.0198516845703125, -0.003055572509765625, -0.0002963542938232422, -0.01229095458984375, 0.0428466796875, -0.01763916015625, -0.033905029296875, 0.0274658203125, 0.032440185546875, -0.02728271484375, -0.01239013671875, -0.008026123046875, -0.04736328125, -0.0141754150390625, 0.02435302734375, -0.003841400146484375, -0.0103607177734375, -0.00865936279296875, -0.003917694091796875, 0.001087188720703125, 0.040435791015625, -0.019805908203125, 0.025390625, -0.00765228271484375, -0.0097808837890625, -0.028839111328125, 0.0270843505859375, -0.01219940185546875, -0.0161590576171875, -0.0155792236328125, 0.006000518798828125, -0.038330078125, 0.0255584716796875, -0.07550048828125, -0.012451171875, 0.0226898193359375, -0.033172607421875, 0.01776123046875, -0.035888671875, -0.01274871826171875, -0.01885986328125, 0.056671142578125, -0.04718017578125, -0.02947998046875, -0.0230255126953125, 0.035308837890625, -0.0252838134765625, -0.07586669921875, 0.0158233642578125, -0.0246429443359375, -0.03631591796875, 0.01873779296875, -0.002468109130859375, -0.01959228515625, -0.0032405853271484375, -0.039093017578125, -0.01557159423828125, -0.0318603515625, 0.029510498046875, 0.023773193359375, -0.0006766319274902344, 0.0169677734375, -0.0145111083984375, -0.0007805824279785156, -0.0087432861328125, 0.004528045654296875, -0.0921630859375, -0.01090240478515625, -0.0241851806640625, 0.061737060546875, 0.0274810791015625, -0.06268310546875, 0.003459930419921875, 0.052947998046875, 0.013702392578125, 0.043243408203125, -0.00858306884765625, 0.005313873291015625, -0.003231048583984375, -0.027252197265625, -0.006999969482421875, -0.023712158203125, -0.0247344970703125, -0.021087646484375, -0.01861572265625, 0.01296234130859375, -0.028961181640625, -0.0107574462890625, 0.0013103485107421875, -0.0258941650390625, -0.08441162109375, -0.0236968994140625, -0.00769805908203125, 0.0190887451171875, 0.0050506591796875, -0.0116424560546875, -0.031036376953125, -0.0848388671875, 0.0151824951171875, 0.00954437255859375, -0.0192718505859375, 0.01186370849609375, 0.056884765625, 0.0211944580078125, -0.0179901123046875, -0.0638427734375, -0.00923919677734375, 0.0196380615234375, 0.0028285980224609375, 0.032806396484375, 0.0106658935546875, -0.005802154541015625, 0.01806640625, -0.00753021240234375, 0.0043792724609375, 0.01727294921875, -0.033477783203125, 0.0386962890625, 0.005138397216796875, -0.007282257080078125, 0.0289459228515625, 0.03546142578125, -0.004451751708984375, -0.0019969940185546875, -0.034881591796875, 0.038543701171875, 0.056488037109375, -0.033233642578125, 0.03814697265625, -0.0312347412109375, -0.0200958251953125, 0.004779815673828125, -0.0621337890625, 0.0162353515625, 0.01123046875, 0.0026397705078125, -0.0034465789794921875, 0.0014295578002929688, 0.01280975341796875, 0.0306854248046875, 0.045928955078125, -0.00009799003601074219, 0.049041748046875, 0.040313720703125, -0.0003533363342285156, 0.0015287399291992188, -0.018096923828125, 0.019012451171875, 0.00653839111328125, -0.0517578125, 0.01428985595703125, 0.0086212158203125, 0.0450439453125, -0.00530242919921875, -0.0294189453125, 0.04364013671875, 0.01334381103515625, -0.0286712646484375, -0.00196075439453125, -0.038482666015625, -0.048004150390625, -0.06732177734375, 0.01934814453125, 0.020965576171875, -0.0240020751953125, 0.016876220703125, 0.0254058837890625, 0.0180511474609375, 0.01085662841796875, -0.0196075439453125, 0.07537841796875, 0.060394287109375, -0.01004791259765625, 0.0005879402160644531, 0.04901123046875, -0.03753662109375, -0.014190673828125, -0.0237274169921875, -0.0182342529296875, -0.03314208984375, 0.0272369384765625, 0.021453857421875, 0.0005307197570800781, 0.01525115966796875, -0.002414703369140625, 0.01087188720703125, -0.006702423095703125, 0.01354217529296875, 0.00688934326171875, -0.0185089111328125, 0.0019683837890625, 0.0199127197265625, 0.0166473388671875, -0.01654052734375, 0.015777587890625, -0.04718017578125, -0.012847900390625, -0.029205322265625, -0.0250396728515625, -0.024139404296875, -0.020599365234375, -0.0133056640625, -0.04339599609375, -0.00815582275390625, 0.0229034423828125, -0.018157958984375, -0.04827880859375, 0.00948333740234375, -0.005229949951171875, 0.01107025146484375, -0.038238525390625, -0.01175689697265625, -0.01557159423828125, 0.0234832763671875, 0.005336761474609375, 0.020355224609375, 0.03363037109375, 0.01094818115234375, -0.018157958984375, 0.014251708984375, -0.031951904296875, -0.007335662841796875, -0.00447845458984375, -0.054718017578125, -0.0236358642578125, -0.029937744140625, 0.0207366943359375, 0.01436614990234375, 0.01123809814453125, -0.024688720703125, -0.036773681640625, 0.00832366943359375, 0.0196990966796875, 0.0474853515625, 0.0109710693359375, 0.003948211669921875, 0.0175628662109375, 0.005645751953125, 0.0206756591796875, -0.00409698486328125, -0.0221099853515625, -0.02545166015625, 0.0122528076171875, -0.05853271484375, -0.02581787109375, 0.0054168701171875, -0.05279541015625, 0.016387939453125, 0.0248870849609375, -0.0117645263671875, 0.0029354095458984375, -0.018280029296875, 0.0128631591796875, -0.017059326171875, 0.006649017333984375, -0.047607421875, -0.05194091796875, 0.035003662109375, -0.0008244514465332031, 0.020660400390625, -0.014678955078125, -0.024993896484375, 0.027313232421875, 0.004695892333984375, 0.018585205078125, -0.01061248779296875, -0.0016584396362304688, 0.003208160400390625, 0.0357666015625, 0.019317626953125, 0.0582275390625, 0.01038360595703125, 0.0291290283203125, 0.0247344970703125, -0.008636474609375, -0.0243682861328125, 0.042449951171875, 0.009429931640625, -0.01010894775390625, 0.00684356689453125, -0.00969696044921875, 0.0006270408630371094, 0.0203857421875, 0.0211639404296875, 0.05975341796875, -0.06085205078125, 0.03466796875, 0.02288818359375, 0.033599853515625, 0.0721435546875, 0.021026611328125, -0.0131683349609375, -0.01148223876953125, 0.0305328369140625, -0.0667724609375, -0.0160369873046875, 0.02093505859375, -0.013458251953125, -0.023956298828125, -0.036956787109375, -0.021942138671875, 0.033843994140625, 0.027191162109375, 0.05133056640625, -0.005527496337890625, 0.0338134765625, 0.0002732276916503906, 0.0088653564453125, 0.018310546875, -0.047576904296875, -0.072998046875, -0.0071258544921875, -0.0138397216796875, -0.0333251953125, 0.0003941059112548828, -0.021514892578125, -0.006862640380859375, 0.058868408203125, -0.0556640625, 0.0478515625, 0.0261688232421875, -0.03759765625, -0.0287017822265625, -0.021209716796875, 0.01165771484375, -0.00969696044921875, -0.00860595703125, 0.0266876220703125, -0.0250396728515625, -0.05035400390625, -0.004352569580078125, -0.00931549072265625, 0.08856201171875, 0.006313323974609375, -0.0231781005859375, 0.0594482421875, -0.006542205810546875, -0.05755615234375, -0.0005774497985839844, -0.009033203125, -0.0794677734375, -0.08599853515625, -0.01560211181640625, -0.11053466796875, 0.0258331298828125, -0.0137481689453125, -0.0640869140625, 0.11724853515625, -0.0225372314453125, 0.04443359375, 0.0182647705078125, 0.0257720947265625, -0.00962066650390625, 0.0182037353515625, -0.0322265625, 0.055633544921875, -0.0213775634765625, 0.005802154541015625, -0.080078125, 0.0003361701965332031, -0.0234375, 0.034210205078125, 0.0222320556640625, 0.01837158203125, -0.0482177734375, -0.01294708251953125, 0.009490966796875, 0.0182647705078125, -0.003368377685546875, 0.067626953125, 0.0040435791015625, 0.007335662841796875, 0.034149169921875, -0.015777587890625, 0.027435302734375, 0.00951385498046875, -0.009552001953125, 0.0276031494140625, 0.007549285888671875, 0.0013589859008789062, -0.007061004638671875, 0.04443359375, 0.00722503662109375, -0.01355743408203125, -0.005962371826171875, 0.0016632080078125, -0.0006432533264160156, 0.022369384765625, 0.0211944580078125, -0.023956298828125, 0.0012645721435546875, -0.0160369873046875, 0.044036865234375, 0.01413726806640625, -0.005718231201171875, 0.06817626953125, 0.01229095458984375, 0.003284454345703125, 0.04254150390625, 0.004833221435546875, 0.004917144775390625, 0.026458740234375, 0.0288543701171875, 0.02996826171875, 0.0245208740234375, -0.002777099609375, 0.02777099609375, 0.037109375, 0.018341064453125, -0.0303955078125, -0.008575439453125, 0.00966644287109375, 0.0254364013671875, 0.0009441375732421875, -0.032745361328125, 0.01299285888671875, -0.0243682861328125, 0.004016876220703125, -0.0004901885986328125, 0.007579803466796875, 0.0290679931640625, -0.03460693359375, 0.01654052734375, 0.02960205078125, 0.01715087890625, 0.047943115234375, -0.036102294921875, -0.00008612871170043945, 0.018829345703125, 0.04644775390625, 0.01971435546875, 0.0465087890625, 0.00012421607971191406, -0.02532958984375, -0.00853729248046875, 0.048309326171875, 0.004627227783203125, -0.0108642578125, -0.050811767578125, -0.06646728515625, 0.0186614990234375, 0.041412353515625, 0.0341796875, -0.048980712890625, 0.055633544921875, 0.057373046875, -0.050048828125, -0.024993896484375, 0.0280914306640625, 0.014892578125, 0.030670166015625, -0.017120361328125, -0.015380859375, -0.0195159912109375, -0.03155517578125, -0.0231781005859375, 0.0130157470703125, 0.0158538818359375, 0.021514892578125, 0.0012989044189453125, 0.0206451416015625, -0.01128387451171875, -0.0036983489990234375, 0.047882080078125, -0.016937255859375, 0.06304931640625, -0.07537841796875, -0.01149749755859375, -0.04376220703125, -0.033111572265625, 0.02679443359375, 0.0253448486328125, -0.030731201171875, 0.04473876953125, 0.007091522216796875, -0.01293182373046875, 0.0083770751953125, 0.00902557373046875, 0.010009765625, 0.00339508056640625, 0.02227783203125, -0.004703521728515625, -0.09423828125, -0.04730224609375, -0.042510986328125, 0.0352783203125, -0.00632476806640625, 0.09375, -0.01082611083984375, 0.0135498046875, 0.0213470458984375, 0.0226287841796875, -0.00634765625, 0.01483917236328125, -0.0211944580078125, 0.0018968582153320312, 0.025543212890625, 0.0030231475830078125, -0.032562255859375, 0.03546142578125, 0.02728271484375, -0.0023212432861328125, 0.055419921875, -0.04766845703125, 0.0113525390625, -0.021453857421875, -0.0310211181640625, -0.04083251953125, -0.043487548828125, -0.0285797119140625, -0.0009050369262695312, 0.00838470458984375, -0.01078033447265625, -0.025299072265625, 0.0152435302734375, 0.01439666748046875, -0.0287933349609375, -0.012115478515625, 0.0174713134765625, -0.0279693603515625, 0.018157958984375, 0.040496826171875, -0.0242919921875, 0.017578125, -0.006977081298828125, -0.038421630859375, 0.035369873046875, -0.005702972412109375, 0.0202484130859375, -0.031585693359375, 0.0134735107421875, 0.0400390625, 0.037872314453125, -0.0234832763671875, 0.019287109375, 0.048980712890625, -0.01287078857421875, 0.030303955078125, 0.0028057098388671875, -0.0298004150390625, -0.023529052734375, -0.0168609619140625, -0.00702667236328125, -0.0035457611083984375, -0.053863525390625, -0.006237030029296875, 0.007663726806640625, 0.024810791015625, 0.004695892333984375, -0.0478515625, 0.054412841796875, -0.036102294921875, 0.034454345703125, -0.015716552734375, -0.036651611328125, -0.00011837482452392578, -0.01013946533203125, -0.01904296875, -0.023651123046875, -0.05047607421875, 0.0265350341796875, -0.027862548828125, 0.01739501953125, 0.033416748046875, -0.02081298828125, -0.0141448974609375, 0.001842498779296875, -0.00572967529296875, 0.03485107421875, -0.0153045654296875, 0.007266998291015625, 0.022613525390625, 0.0129547119140625, -0.04388427734375, -0.10052490234375, 0.016326904296875, -0.06689453125, 0.010345458984375, -0.003284454345703125, -0.016387939453125, -0.00923919677734375, -0.048309326171875, -0.05780029296875, 0.05865478515625, -0.00519561767578125, -0.029296875, -0.048095703125, -0.02197265625, -0.007114410400390625, 0.07061767578125, 0.00804901123046875, -0.0246124267578125, -0.031463623046875, 0.0242462158203125, -0.003520965576171875, 0.0321044921875, -0.0330810546875, 0.0284271240234375, 0.0003466606140136719, 0.04833984375, 0.030670166015625, -0.0426025390625, 0.029541015625, -0.01214599609375, 0.01910400390625, 0.04937744140625, -0.0298919677734375, -0.0196533203125, -0.0220794677734375, -0.054443359375, -0.021728515625, -0.0219268798828125, -0.06268310546875, -0.054412841796875, 0.09588623046875, 0.06427001953125, 0.0294036865234375, -0.009613037109375, 0.0482177734375, 0.0081024169921875, -0.066162109375, 0.005161285400390625, 0.0186767578125, -0.033935546875, 0.0019092559814453125, 0.005908966064453125, 0.00653076171875, 0.00046563148498535156, -0.014678955078125, -0.0255126953125, -0.0265960693359375, -0.0227508544921875, 0.0158233642578125, -0.0631103515625, 0.01160430908203125, 0.005462646484375, -0.0136871337890625, 0.018402099609375, -0.021820068359375, -0.002132415771484375, -0.0054473876953125, 0.00025153160095214844, 0.0008482933044433594, -0.0181427001953125, -0.034027099609375, 0.04229736328125, -0.016754150390625, 0.0059356689453125, -0.058135986328125, -0.01348876953125, -0.01113128662109375, 0.000499725341796875, 0.003025054931640625, -0.016204833984375, 0.0300750732421875, -0.045684814453125, -0.0292816162109375, 0.0211639404296875, 0.007114410400390625, 0.03448486328125, -0.0096588134765625, 0.0144195556640625, -0.07147216796875, 0.01678466796875, -0.0621337890625, -0.01300811767578125, 0.0032138824462890625, 0.0054168701171875, 0.0274810791015625, -0.035858154296875, 0.0546875, 0.029266357421875, 0.0115509033203125, 0.01983642578125 ]
97b20507a76d6a4e82ac37519d2b97eb4777380c
Wordpress Stackexchange Q: Long running action from plugin I'm creating a WordPress plugin that will copy posts data to a remote database, I know it will take a while to transfer all the posts. How should I create copy functionality so it won't timeout? Ideally it would run in background and show some notification on completion. A: You could use WordPress' pseudo-cron and wp_schedule_single_event. <?php // add the action. add_action('wpse71941_cron', 'wpse71941_long_running'); function wpse71941_long_running($args) { // might need to call `set_time_limit` here set_time_limit(0); // do long running stuff here // return normal time limit if($l = ini_get('max_execution_time')) set_time_limit($l); } // schedule the event for right now wp_schedule_single_event( time(), 'wpse71941_cron', array('args' => 'for', 'callback' => 'function') ); Not sure if you need to mess with time limit. WP does call ignore_user_abort at the top of the cron script.
Q: Long running action from plugin I'm creating a WordPress plugin that will copy posts data to a remote database, I know it will take a while to transfer all the posts. How should I create copy functionality so it won't timeout? Ideally it would run in background and show some notification on completion. A: You could use WordPress' pseudo-cron and wp_schedule_single_event. <?php // add the action. add_action('wpse71941_cron', 'wpse71941_long_running'); function wpse71941_long_running($args) { // might need to call `set_time_limit` here set_time_limit(0); // do long running stuff here // return normal time limit if($l = ini_get('max_execution_time')) set_time_limit($l); } // schedule the event for right now wp_schedule_single_event( time(), 'wpse71941_cron', array('args' => 'for', 'callback' => 'function') ); Not sure if you need to mess with time limit. WP does call ignore_user_abort at the top of the cron script.
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:425613", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71941" }
[ 0.06695556640625, 0.01324462890625, 0.0196533203125, 0.0022144317626953125, 0.02532958984375, -0.0396728515625, 0.056488037109375, -0.052001953125, -0.03192138671875, 0.0036487579345703125, 0.0294036865234375, 0.0139617919921875, -0.02227783203125, -0.0587158203125, 0.03851318359375, -0.020050048828125, 0.048828125, 0.007625579833984375, 0.03131103515625, -0.00881195068359375, 0.000858306884765625, 0.0267181396484375, 0.00792694091796875, 0.0782470703125, 0.0122222900390625, -0.00768280029296875, 0.0738525390625, 0.01183319091796875, 0.007598876953125, -0.0123748779296875, 0.02862548828125, -0.0289154052734375, 0.01470947265625, 0.00412750244140625, 0.00153350830078125, 0.015533447265625, 0.00749969482421875, 0.00421905517578125, -0.00284576416015625, 0.024993896484375, 0.034515380859375, -0.018951416015625, 0.0019102096557617188, 0.0311737060546875, -0.0030956268310546875, -0.0286865234375, 0.0239105224609375, -0.046356201171875, 0.003223419189453125, 0.054290771484375, 0.0024967193603515625, -0.0301971435546875, -0.006298065185546875, 0.0498046875, -0.00010687112808227539, -0.00357818603515625, -0.0245361328125, 0.040802001953125, 0.01580810546875, 0.0010175704956054688, -0.015777587890625, 0.010711669921875, 0.0003490447998046875, 0.01474761962890625, 0.0012865066528320312, -0.000659942626953125, 0.01165008544921875, 0.0197296142578125, 0.0073699951171875, 0.0255584716796875, 0.016571044921875, -0.006378173828125, -0.004550933837890625, -0.012298583984375, -0.022064208984375, 0.0104522705078125, 0.01313018798828125, 0.007511138916015625, 0.020416259765625, 0.0054473876953125, 0.01207733154296875, 0.0200958251953125, -0.0019626617431640625, -0.023834228515625, 0.0049285888671875, -0.012176513671875, -0.023529052734375, -0.007808685302734375, -0.0194549560546875, -0.0043487548828125, -0.034881591796875, 0.0279083251953125, -0.0021114349365234375, -0.033050537109375, -0.033721923828125, -0.018035888671875, -0.0041351318359375, 0.00815582275390625, -0.02972412109375, 0.0187530517578125, -0.01224517822265625, -0.0108489990234375, 0.0303802490234375, -0.0173187255859375, -0.00868988037109375, 0.0272216796875, 0.007785797119140625, -0.040802001953125, -0.020843505859375, 0.007049560546875, -0.036468505859375, -0.03173828125, -0.00907135009765625, -0.004364013671875, -0.01006317138671875, -0.0289764404296875, -0.058746337890625, 0.038360595703125, -0.0006175041198730469, 0.01513671875, -0.01959228515625, -0.0178070068359375, -0.02020263671875, -0.00982666015625, 0.002414703369140625, -0.0240936279296875, -0.0227508544921875, 0.0247955322265625, 0.0210418701171875, -0.0178375244140625, -0.023651123046875, 0.00658416748046875, 0.03662109375, 0.03265380859375, 0.00836181640625, -0.0006680488586425781, 0.03961181640625, 0.007495880126953125, 0.006031036376953125, 0.0014505386352539062, 0.0104217529296875, -0.032562255859375, -0.03131103515625, 0.0005559921264648438, -0.000980377197265625, 0.01100921630859375, 0.021514892578125, 0.0125732421875, 0.0013399124145507812, -0.0308380126953125, -0.0160675048828125, 0.0147705078125, 0.043426513671875, -0.040496826171875, -0.01258087158203125, -0.09173583984375, 0.00025963783264160156, -0.05145263671875, 0.039337158203125, -0.043121337890625, -0.00482177734375, 0.0078277587890625, 0.046600341796875, 0.0054779052734375, -0.0263519287109375, -0.01238250732421875, -0.0220794677734375, -0.00777435302734375, 0.03302001953125, 0.01470184326171875, -0.0096435546875, -0.01377105712890625, 0.03790283203125, 0.035858154296875, 0.0010890960693359375, 0.048065185546875, -0.0218963623046875, 0.0014467239379882812, 0.037872314453125, -0.0142669677734375, -0.043975830078125, -0.03192138671875, 0.060821533203125, -0.00334930419921875, -0.027374267578125, -0.0019483566284179688, -0.0186767578125, 0.005832672119140625, 0.049041748046875, 0.01035308837890625, -0.0017910003662109375, -0.01120758056640625, 0.0112152099609375, 0.01983642578125, -0.028289794921875, -0.0408935546875, 0.0201568603515625, 0.00710296630859375, -0.020233154296875, 0.01088714599609375, 0.0093994140625, 0.00811004638671875, -0.0017490386962890625, -0.019378662109375, -0.0963134765625, 0.01371002197265625, -0.039459228515625, 0.042388916015625, 0.0187530517578125, -0.01361846923828125, -0.0037841796875, 0.0012502670288085938, 0.0141448974609375, -0.07550048828125, -0.04937744140625, 0.029205322265625, -0.046630859375, 0.030670166015625, -0.0086517333984375, 0.040435791015625, -0.0174102783203125, -0.0350341796875, -0.00006312131881713867, -0.0142364501953125, 0.005706787109375, -0.01161956787109375, -0.0122833251953125, -0.009033203125, -0.0177001953125, -0.00750732421875, 0.00494384765625, 0.03363037109375, 0.0322265625, 0.052764892578125, -0.0026988983154296875, -0.018646240234375, 0.009674072265625, -0.06024169921875, 0.0261383056640625, 0.0328369140625, 0.024688720703125, 0.0038280487060546875, -0.0031585693359375, 0.0292205810546875, -0.0018482208251953125, -0.08795166015625, -0.0002105236053466797, 0.01276397705078125, 0.00165557861328125, 0.004138946533203125, -0.046600341796875, -0.03173828125, 0.0335693359375, -0.0623779296875, 0.0032711029052734375, 0.0271759033203125, -0.0224761962890625, -0.0292816162109375, 0.003910064697265625, -0.0095672607421875, 0.01219940185546875, -0.0311737060546875, -0.0136260986328125, 0.0014514923095703125, -0.0004608631134033203, -0.004474639892578125, -0.0026683807373046875, -0.01419830322265625, -0.03533935546875, 0.018218994140625, 0.04534912109375, 0.01383209228515625, 0.0094451904296875, 0.007049560546875, 0.0291748046875, 0.003936767578125, -0.039306640625, 0.00315093994140625, 0.0111541748046875, 0.008270263671875, -0.0123291015625, 0.056121826171875, 0.0113372802734375, -0.015655517578125, -0.039825439453125, -0.0018520355224609375, 0.0123138427734375, -0.0015134811401367188, -0.006771087646484375, -0.0082550048828125, 0.03729248046875, -0.0077972412109375, -0.044586181640625, 0.0294342041015625, -0.012969970703125, -0.039947509765625, 0.05157470703125, -0.052581787109375, 0.06591796875, -0.04827880859375, 0.0135040283203125, 0.054779052734375, -0.051177978515625, 0.0357666015625, 0.01654052734375, 0.0168304443359375, 0.019073486328125, 0.0254058837890625, -0.00734710693359375, 0.0018587112426757812, -0.08673095703125, -0.05615234375, 0.0322265625, 0.12286376953125, -0.0272216796875, -0.070556640625, 0.00836181640625, 0.047027587890625, -0.0299072265625, -0.057891845703125, -0.021240234375, -0.07806396484375, 0.03546142578125, -0.0186309814453125, -0.0160064697265625, -0.0273895263671875, 0.026641845703125, 0.023406982421875, -0.014251708984375, -0.01268768310546875, -0.02252197265625, -0.040557861328125, -0.05560302734375, -0.0163726806640625, 0.01374053955078125, 0.0079193115234375, -0.00849151611328125, 0.1055908203125, 0.00789642333984375, -0.07025146484375, -0.026611328125, -0.002452850341796875, -0.039215087890625, 0.015594482421875, 0.0254669189453125, -0.01148223876953125, 0.0238800048828125, 0.01096343994140625, 0.0165863037109375, 0.0531005859375, -0.044281005859375, -0.02606201171875, -0.007717132568359375, 0.006740570068359375, 0.0179901123046875, 0.0032253265380859375, 0.0005636215209960938, 0.050323486328125, 0.0311126708984375, -0.01523590087890625, -0.04364013671875, 0.011077880859375, -0.060394287109375, -0.01004791259765625, 0.04071044921875, -0.0023174285888671875, -0.035247802734375, 0.01413726806640625, 0.0374755859375, 0.03912353515625, 0.01971435546875, 0.032135009765625, -0.040802001953125, -0.01212310791015625, 0.0035076141357421875, -0.0312042236328125, -0.0017910003662109375, -0.0183258056640625, 0.0152435302734375, -0.0145721435546875, 0.01194000244140625, -0.0184173583984375, 0.016387939453125, -0.06463623046875, -0.051361083984375, 0.05816650390625, 0.0253448486328125, 0.00968170166015625, -0.018402099609375, -0.04058837890625, 0.0125579833984375, 0.0928955078125, 0.0037174224853515625, -0.02215576171875, -0.01407623291015625, -0.0007300376892089844, -0.040252685546875, -0.006046295166015625, -0.02099609375, 0.0028324127197265625, -0.04144287109375, 0.030303955078125, -0.00907135009765625, -0.01285552978515625, 0.00028967857360839844, -0.034576416015625, -0.01110076904296875, -0.02874755859375, 0.01506805419921875, -0.03369140625, 0.0224761962890625, -0.05108642578125, 0.0241241455078125, -0.08526611328125, 0.0175933837890625, -0.042449951171875, -0.0439453125, -0.01092529296875, -0.0287017822265625, 0.0230865478515625, 0.043548583984375, -0.0204010009765625, -0.0027408599853515625, 0.0212554931640625, 0.03729248046875, 0.01354217529296875, 0.005523681640625, -0.043609619140625, 0.0074462890625, 0.04266357421875, 0.032257080078125, 0.0029926300048828125, -0.01502227783203125, -0.02386474609375, 0.00656890869140625, -0.0227508544921875, -0.044036865234375, -0.0100250244140625, -0.039306640625, -0.01404571533203125, -0.031463623046875, -0.03656005859375, -0.0130615234375, 0.00250244140625, 0.004550933837890625, -0.026336669921875, -0.040618896484375, -0.044677734375, 0.03204345703125, -0.031585693359375, -0.007534027099609375, -0.0002815723419189453, 0.047607421875, 0.018035888671875, -0.00803375244140625, 0.007526397705078125, -0.035064697265625, 0.0012273788452148438, 0.0106048583984375, 0.016204833984375, 0.00804901123046875, -0.006031036376953125, 0.0310821533203125, -0.01441192626953125, -0.00933074951171875, -0.0110321044921875, -0.01702880859375, 0.0280303955078125, -0.01910400390625, -0.0118255615234375, 0.01186370849609375, 0.036285400390625, 0.031646728515625, -0.0180206298828125, -0.044830322265625, -0.01434326171875, 0.0726318359375, -0.036468505859375, 0.043121337890625, -0.053619384765625, -0.056060791015625, 0.0266571044921875, -0.06402587890625, -0.007114410400390625, 0.005466461181640625, -0.00595855712890625, 0.0145721435546875, -0.0278778076171875, -0.01273345947265625, -0.01160430908203125, -0.01165771484375, -0.005413055419921875, 0.02587890625, 0.01474761962890625, -0.007221221923828125, 0.006565093994140625, 0.00666046142578125, 0.0081329345703125, 0.01934814453125, -0.01483917236328125, -0.048919677734375, 0.0142974853515625, 0.0101776123046875, -0.013671875, -0.0235443115234375, 0.023162841796875, 0.03521728515625, -0.032135009765625, -0.0120391845703125, -0.01480865478515625, -0.017120361328125, -0.0462646484375, -0.046722412109375, -0.00439453125, -0.030029296875, -0.011993408203125, 0.0186767578125, 0.0018949508666992188, 0.00019037723541259766, -0.01351165771484375, 0.0792236328125, 0.05615234375, 0.01177215576171875, 0.0183258056640625, -0.03997802734375, 0.01174163818359375, -0.0277099609375, -0.035980224609375, -0.050933837890625, 0.0030193328857421875, 0.047454833984375, 0.055572509765625, 0.003543853759765625, -0.03076171875, 0.01097869873046875, -0.01015472412109375, -0.03790283203125, 0.04913330078125, 0.04833984375, 0.00637054443359375, -0.032806396484375, 0.01151275634765625, 0.0443115234375, 0.04351806640625, 0.0079193115234375, -0.0006976127624511719, 0.0166015625, 0.038177490234375, -0.01070404052734375, 0.0282440185546875, -0.0180816650390625, -0.0244140625, -0.03094482421875, -0.048065185546875, -0.00536346435546875, 0.046539306640625, 0.045135498046875, -0.013275146484375, -0.048095703125, 0.0167083740234375, -0.015716552734375, 0.071044921875, -0.046722412109375, -0.0206298828125, -0.095947265625, 0.0005164146423339844, 0.066162109375, 0.060821533203125, -0.07061767578125, -0.0157318115234375, -0.05035400390625, -0.009307861328125, -0.0263824462890625, -0.03692626953125, -0.040496826171875, 0.00949859619140625, -0.0174560546875, 0.003833770751953125, -0.0186614990234375, -0.018524169921875, -0.0209808349609375, 0.0162200927734375, 0.01629638671875, -0.0082550048828125, -0.0168914794921875, 0.055938720703125, 0.0101776123046875, 0.036834716796875, 0.007373809814453125, -0.0052032470703125, -0.037567138671875, 0.0077362060546875, -0.00782012939453125, -0.0208282470703125, -0.01337432861328125, -0.0017299652099609375, -0.0036945343017578125, 0.04095458984375, 0.06707763671875, -0.002605438232421875, 0.027587890625, -0.03814697265625, -0.008148193359375, -0.025054931640625, 0.0244598388671875, -0.0445556640625, 0.00994110107421875, -0.01038360595703125, -0.06768798828125, -0.0018472671508789062, 0.0240020751953125, 0.0140838623046875, 0.018951416015625, -0.0394287109375, 0.00978851318359375, 0.02154541015625, 0.03668212890625, -0.0121002197265625, 0.060211181640625, -0.01454925537109375, 0.040374755859375, 0.038330078125, 0.022216796875, 0.03448486328125, 0.042938232421875, 0.017608642578125, -0.07220458984375, 0.031707763671875, -0.0083465576171875, -0.04803466796875, -0.01200103759765625, -0.041595458984375, 0.024261474609375, -0.0086669921875, 0.0491943359375, -0.00823211669921875, 0.0218353271484375, 0.00951385498046875, -0.0206756591796875, 0.01708984375, -0.004058837890625, 0.005535125732421875, -0.0170440673828125, 0.02081298828125, 0.0185699462890625, -0.00569915771484375, 0.012725830078125, 0.0024890899658203125, 0.0162353515625, -0.006694793701171875, 0.0223541259765625, 0.0168609619140625, -0.072021484375, 0.0293426513671875, 0.06494140625, 0.0080413818359375, -0.041015625, 0.0196990966796875, -0.004436492919921875, 0.0014896392822265625, -0.033355712890625, 0.040924072265625, 0.004550933837890625, 0.028533935546875, 0.0251007080078125, 0.004520416259765625, 0.040924072265625, 0.043853759765625, 0.006610870361328125, 0.01195526123046875, 0.0167388916015625, 0.004291534423828125, -0.04119873046875, -0.03533935546875, -0.00508880615234375, 0.052459716796875, -0.047271728515625, 0.0364990234375, -0.0184326171875, -0.0193328857421875, -0.0140228271484375, -0.0218505859375, 0.08148193359375, 0.0032978057861328125, -0.0293121337890625, 0.00927734375, 0.0178070068359375, -0.0037021636962890625, -0.019378662109375, 0.046875, -0.05218505859375, -0.0251617431640625, 0.008331298828125, -0.028961181640625, -0.017486572265625, 0.0016574859619140625, -0.0200347900390625, 0.10430908203125, 0.0506591796875, -0.04803466796875, -0.0178680419921875, 0.06396484375, -0.04656982421875, 0.046966552734375, -0.056976318359375, 0.0748291015625, -0.0225830078125, 0.027862548828125, -0.0287628173828125, 0.0212554931640625, 0.007205963134765625, -0.017822265625, 0.056488037109375, 0.014190673828125, -0.0184783935546875, -0.00392913818359375, 0.012481689453125, 0.007232666015625, -0.0265655517578125, 0.043701171875, -0.0012483596801757812, 0.055206298828125, 0.0506591796875, -0.0418701171875, 0.0209503173828125, 0.026123046875, -0.025238037109375, 0.0251922607421875, -0.015380859375, -0.006565093994140625, -0.0036144256591796875, 0.0279998779296875, 0.0243072509765625, -0.0221099853515625, -0.0180816650390625, -0.071044921875, 0.0029296875, 0.03509521484375, 0.029632568359375, -0.0285491943359375, -0.00920867919921875, -0.03662109375, 0.050994873046875, -0.018798828125, 0.07440185546875, 0.052978515625, 0.029388427734375, 0.059112548828125, -0.015899658203125, 0.0250244140625, -0.01444244384765625, -0.025543212890625, 0.01267242431640625, 0.016632080078125, 0.020965576171875, -0.01715087890625, -0.0036678314208984375, 0.04669189453125, 0.021697998046875, -0.0231170654296875, -0.03228759765625, 0.00870513916015625, 0.026702880859375, 0.0250396728515625, -0.0005154609680175781, 0.0259552001953125, -0.0235137939453125, 0.0111236572265625, -0.007801055908203125, -0.0260162353515625, 0.006160736083984375, 0.020660400390625, 0.005161285400390625, 0.019989013671875, -0.00269317626953125, -0.0372314453125, -0.00905609130859375, -0.00862884521484375, 0.007648468017578125, 0.0102691650390625, 0.020751953125, -0.029449462890625, 0.0230712890625, 0.0033206939697265625, 0.03607177734375, 0.00907135009765625, 0.011932373046875, -0.062744140625, -0.0010814666748046875, -0.06719970703125, 0.0032806396484375, 0.019317626953125, 0.0056915283203125, -0.0113677978515625, 0.0243988037109375, 0.03533935546875, -0.01461029052734375, -0.00986480712890625, 0.03619384765625, -0.0080718994140625, -0.0065460205078125, -0.031463623046875, 0.0144500732421875, -0.0160369873046875, -0.0011434555053710938, -0.0089263916015625, 0.047210693359375, -0.033538818359375, -0.00878143310546875, 0.00818634033203125, 0.00948333740234375, -0.045257568359375, 0.00838470458984375, 0.017974853515625, 0.042266845703125, -0.003421783447265625, -0.054107666015625, -0.0006113052368164062, -0.00421905517578125, -0.01325225830078125, -0.00687408447265625, 0.0206298828125, -0.054107666015625, 0.06829833984375, 0.0032100677490234375, -0.01087188720703125, -0.0024967193603515625, 0.0285186767578125, 0.0010356903076171875, 0.0200958251953125, 0.01593017578125, -0.0013113021850585938, -0.03985595703125, -0.024139404296875, -0.05987548828125, 0.05810546875, 0.04461669921875, 0.06427001953125, -0.024383544921875, 0.049530029296875, 0.03839111328125, -0.0263519287109375, 0.055999755859375, 0.0362548828125, -0.035614013671875, 0.0299530029296875, 0.029083251953125, -0.033233642578125, -0.038909912109375, -0.0257568359375, 0.038726806640625, 0.0015954971313476562, -0.029083251953125, -0.022918701171875, 0.048553466796875, 0.036285400390625, 0.06732177734375, -0.030426025390625, -0.01116943359375, -0.017364501953125, -0.02734375, 0.0238189697265625, -0.0043792724609375, -0.0050048828125, 0.038055419921875, -0.005031585693359375, 0.0175018310546875, 0.006866455078125, -0.005176544189453125, -0.002056121826171875, 0.0148773193359375, -0.02642822265625, 0.0026721954345703125, 0.00079345703125, -0.01776123046875, 0.017242431640625, 0.000644683837890625, 0.041168212890625, 0.011627197265625, 0.037200927734375, 0.0279083251953125, -0.0157928466796875, 0.007205963134765625, -0.036041259765625, -0.01107025146484375, 0.01221466064453125, 0.0269012451171875, 0.0035953521728515625, -0.07086181640625, -0.039947509765625, -0.0645751953125, 0.018157958984375, 0.0224761962890625, -0.034210205078125, -0.03851318359375, -0.05059814453125, -0.042510986328125, 0.041107177734375, -0.0011243820190429688, -0.025177001953125, 0.020416259765625, -0.033203125, -0.01535797119140625, -0.0248565673828125, -0.014251708984375, -0.01305389404296875, 0.0260162353515625, 0.024810791015625, -0.10052490234375, -0.01861572265625, 0.11175537109375, -0.035919189453125, -0.01276397705078125, 0.032012939453125, -0.00887298583984375, -0.0714111328125, -0.03216552734375, -0.01335906982421875, 0.01076507568359375, 0.0233612060546875, -0.00027632713317871094, 0.01554107666015625, -0.00501251220703125, -0.019317626953125, -0.0164337158203125, 0.0169525146484375, -0.0024547576904296875, -0.0304718017578125, -0.0011157989501953125, -0.017608642578125, -0.004184722900390625, -0.0245819091796875, -0.000782012939453125, 0.027801513671875, 0.016326904296875, -0.0168914794921875, -0.03826904296875, 0.0196380615234375, 0.0005202293395996094, -0.0224456787109375, -0.01340484619140625, 0.0081939697265625, -0.01256561279296875, 0.0271453857421875, -0.006053924560546875, -0.004795074462890625, 0.004425048828125, -0.01558685302734375, -0.02691650390625, 0.01355743408203125, 0.0296630859375, -0.0179595947265625, 0.0262451171875, -0.003932952880859375, 0.0416259765625, 0.060455322265625, -0.015411376953125, 0.02801513671875, -0.005664825439453125, -0.07244873046875, -0.018157958984375, -0.0024547576904296875, -0.0587158203125, 0.0296783447265625, 0.1529541015625, 0.08538818359375, 0.0552978515625, -0.09588623046875, -0.0411376953125, -0.058990478515625, -0.006732940673828125, -0.01611328125, 0.00646209716796875, -0.037353515625, 0.0312042236328125, -0.0191802978515625, -0.0175018310546875, 0.014312744140625, 0.03387451171875, -0.0024433135986328125, -0.0036754608154296875, 0.043060302734375, -0.05108642578125, -0.0120697021484375, -0.0019931793212890625, 0.049346923828125, -0.035888671875, -0.007511138916015625, 0.0296478271484375, -0.00533294677734375, 0.0113525390625, 0.0557861328125, -0.01087188720703125, 0.0240478515625, -0.01123046875, 0.016571044921875, 0.02081298828125, 0.010650634765625, -0.0294342041015625, -0.0037975311279296875, 0.037628173828125, 0.0172576904296875, -0.01082611083984375, 0.037353515625, 0.00884246826171875, 0.00620269775390625, -0.03302001953125, 0.0006914138793945312, -0.0009975433349609375, 0.00389862060546875, -0.0184783935546875, 0.0297088623046875, -0.0140838623046875, -0.0188140869140625, 0.02252197265625, -0.035614013671875, 0.01284027099609375, 0.020355224609375, -0.01605224609375, -0.0065155029296875, -0.006717681884765625, -0.00849151611328125, -0.005802154541015625, -0.0125732421875 ]
c845f6e9a10366bd98c8afd50ee74ec2c46eeeda
Wordpress Stackexchange Q: How to use WordPress HTTP API to download file from remote location So this PHP code works for me: $ch = curl_init( TCS_CPDF_REMOTE_ZIP ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $data = curl_exec( $ch ); curl_close( $ch ); file_put_contents( TCS_CPDF_LOCAL_ZIP, $data ); but when trying to use the WordPress HTTP API: $the_body = wp_remote_retrieve_body( wp_remote_get( TCS_CPDF_REMOTE_ZIP ) ); file_put_contents( TCS_CPDF_LOCAL_ZIP, $the_body ); I end up getting a 0KB file, so the above WordPress version is not working. So how do you download a file from a remote location using the WordPress API? A: Check out download_url() - it's only loaded in the admin, so you'll have to include it (or write your own) if needed on the front-end. From download_url() you can use: $response = wp_remote_get( TCS_CPDF_REMOTE_ZIP, array( 'timeout' => 300, 'stream' => true, 'filename' => TCS_CPDF_LOCAL_ZIP ) );
Q: How to use WordPress HTTP API to download file from remote location So this PHP code works for me: $ch = curl_init( TCS_CPDF_REMOTE_ZIP ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $data = curl_exec( $ch ); curl_close( $ch ); file_put_contents( TCS_CPDF_LOCAL_ZIP, $data ); but when trying to use the WordPress HTTP API: $the_body = wp_remote_retrieve_body( wp_remote_get( TCS_CPDF_REMOTE_ZIP ) ); file_put_contents( TCS_CPDF_LOCAL_ZIP, $the_body ); I end up getting a 0KB file, so the above WordPress version is not working. So how do you download a file from a remote location using the WordPress API? A: Check out download_url() - it's only loaded in the admin, so you'll have to include it (or write your own) if needed on the front-end. From download_url() you can use: $response = wp_remote_get( TCS_CPDF_REMOTE_ZIP, array( 'timeout' => 300, 'stream' => true, 'filename' => TCS_CPDF_LOCAL_ZIP ) ); A: If you're in WordPress Admin, you have the function download_url() available (see codex description). download_url() downloads the file, makes it available in a temp file, and returns the name of a file which you copy/rename and then unlink. See download_url() source here in wp-admin/includes/file.php for more details. The above answer mentioning download_url() appears to have a wp_remote_get() example - an example for download_url() being: $permfile = 'safefilename.jpg'; $tmpfile = download_url( $url, $timeout = 300 ); copy( $tmpfile, $permfile ); unlink( $tmpfile ); // must unlink afterwards Obviously this is very nice. Of course, you'd want to ensure $permfile is sanitized nicely if it is based on an externally supplied filename. A: $your_pdf_path = 'https://example.com/Fortrydelsesformular.pdf'; if (!class_exists('WP_Http')) include_once( ABSPATH . WPINC . '/class-http.php' ); $http = new WP_Http(); $response = $http->request($your_pdf_path); if ($response['response']['code'] != 200) { return false; } $upload = wp_upload_bits(basename($your_pdf_path), null, $response['body']); if (!empty($upload['error'])) { return false; } $file_path = $upload['file']; If you print out the $upload , you will get below Array ( [file] => /var/www/aug15/wp-content/uploads/2019/02/Fortrydelsesformular.pdf [url] => https://myadomain.com/Fortrydelsesformular.pdf [type] => application/pdf [error] => )
wordpress
{ "language": "en", "length": 317, "provenance": "stackexchange_00019.jsonl.gz:425620", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/71961" }
[ 0.0243988037109375, -0.011993408203125, 0.01190185546875, -0.02587890625, 0.0033321380615234375, -0.007366180419921875, 0.03167724609375, -0.006084442138671875, 0.0218505859375, 0.02056884765625, -0.0221405029296875, 0.005329132080078125, -0.02789306640625, -0.005527496337890625, -0.01433563232421875, -0.019500732421875, 0.057525634765625, 0.01042938232421875, 0.07159423828125, 0.02691650390625, -0.0203704833984375, 0.07763671875, 0.03564453125, 0.0087890625, -0.0038471221923828125, 0.0404052734375, 0.036163330078125, -0.00606536865234375, -0.0200042724609375, -0.026519775390625, 0.003170013427734375, 0.009918212890625, 0.0328369140625, 0.047332763671875, -0.07257080078125, -0.055755615234375, 0.00702667236328125, 0.009063720703125, -0.060150146484375, 0.0872802734375, 0.017730712890625, -0.005092620849609375, -0.02435302734375, 0.065673828125, -0.04351806640625, -0.031890869140625, 0.014739990234375, -0.0038318634033203125, -0.017486572265625, 0.07861328125, 0.0209808349609375, -0.01214599609375, 0.0026226043701171875, 0.0677490234375, 0.00003224611282348633, -0.005466461181640625, 0.00439453125, 0.07000732421875, 0.039306640625, -0.07684326171875, -0.06396484375, -0.0006060600280761719, 0.034149169921875, 0.038055419921875, -0.013397216796875, 0.01715087890625, 0.037628173828125, -0.01076507568359375, -0.011749267578125, -0.009918212890625, 0.00910186767578125, 0.00678253173828125, -0.0016202926635742188, -0.01548004150390625, -0.0223541259765625, -0.01250457763671875, 0.00182342529296875, -0.041900634765625, 0.0232391357421875, -0.00296783447265625, 0.0266265869140625, 0.01396942138671875, -0.016448974609375, -0.0316162109375, 0.039764404296875, 0.037689208984375, -0.004657745361328125, -0.038726806640625, -0.037139892578125, -0.0054168701171875, -0.0404052734375, -0.05120849609375, -0.0123138427734375, 0.0145721435546875, -0.03271484375, 0.001522064208984375, -0.01001739501953125, -0.03863525390625, 0.0243988037109375, 0.00940704345703125, 0.033233642578125, -0.056640625, 0.0233001708984375, -0.00734710693359375, 0.00974273681640625, 0.013427734375, -0.0005831718444824219, -0.051239013671875, 0.032623291015625, 0.0018587112426757812, -0.01165008544921875, 0.0892333984375, -0.003570556640625, -0.004810333251953125, -0.018157958984375, 0.0011043548583984375, -0.025054931640625, 0.0122833251953125, -0.004016876220703125, -0.006561279296875, -0.016387939453125, -0.012969970703125, -0.004337310791015625, 0.056610107421875, 0.00736236572265625, 0.0311279296875, 0.0006270408630371094, -0.01617431640625, -0.02874755859375, 0.05841064453125, -0.005523681640625, 0.006504058837890625, 0.0208282470703125, -0.0148773193359375, -0.041229248046875, -0.0183258056640625, 0.007656097412109375, -0.01026153564453125, 0.010711669921875, 0.003833770751953125, 0.057891845703125, -0.018524169921875, -0.0018291473388671875, 0.033111572265625, -0.008880615234375, -0.0199127197265625, 0.04302978515625, 0.051422119140625, -0.031982421875, -0.0278778076171875, 0.032501220703125, 0.02423095703125, -0.006023406982421875, 0.0252685546875, 0.0263824462890625, -0.039154052734375, 0.058013916015625, -0.0572509765625, 0.028106689453125, -0.041259765625, 0.019439697265625, -0.040374755859375, -0.037994384765625, -0.014739990234375, -0.0303802490234375, 0.0292510986328125, 0.007457733154296875, 0.0030193328857421875, 0.0224151611328125, 0.00572967529296875, 0.022735595703125, -0.052978515625, 0.004413604736328125, -0.0012054443359375, -0.01103973388671875, 0.031585693359375, 0.026947021484375, 0.0241546630859375, 0.023284912109375, -0.0082550048828125, -0.0156097412109375, -0.01543426513671875, 0.0859375, -0.037750244140625, -0.01442718505859375, 0.0498046875, 0.0184478759765625, 0.0784912109375, -0.0340576171875, 0.034576416015625, -0.052642822265625, 0.041534423828125, 0.00992584228515625, -0.019256591796875, -0.0301971435546875, -0.028228759765625, 0.0142669677734375, 0.00860595703125, -0.01483154296875, 0.05255126953125, -0.0240020751953125, -0.01316070556640625, 0.0355224609375, 0.01479339599609375, 0.01251983642578125, 0.01922607421875, -0.018890380859375, 0.025177001953125, -0.021270751953125, 0.00467681884765625, -0.00023758411407470703, -0.0157012939453125, 0.022430419921875, -0.073974609375, -0.0045928955078125, 0.027069091796875, -0.0428466796875, 0.0377197265625, -0.01514434814453125, 0.061737060546875, -0.019195556640625, -0.034423828125, 0.00658416748046875, -0.02838134765625, 0.0172882080078125, -0.0286712646484375, -0.01218414306640625, -0.0219268798828125, 0.054107666015625, -0.0259552001953125, 0.0673828125, 0.043792724609375, 0.01132965087890625, 0.037200927734375, 0.01158905029296875, -0.0087890625, 0.014923095703125, -0.0601806640625, 0.031494140625, 0.0321044921875, 0.04571533203125, 0.0188751220703125, -0.0039005279541015625, -0.016448974609375, 0.030487060546875, -0.034149169921875, 0.020050048828125, -0.033966064453125, 0.006267547607421875, -0.038299560546875, -0.02386474609375, -0.0626220703125, 0.047393798828125, -0.09295654296875, -0.007762908935546875, 0.032623291015625, -0.0102386474609375, -0.01727294921875, -0.0174407958984375, 0.0161285400390625, 0.0022125244140625, 0.0112152099609375, -0.00922393798828125, -0.0014295578002929688, -0.024658203125, 0.01558685302734375, 0.0276336669921875, 0.0283203125, -0.013397216796875, -0.0216217041015625, 0.01172637939453125, 0.0423583984375, 0.006931304931640625, 0.0614013671875, 0.035552978515625, -0.007030487060546875, -0.00829315185546875, -0.03375244140625, 0.032379150390625, 0.02166748046875, -0.0267181396484375, 0.0026302337646484375, 0.01042938232421875, 0.00112152099609375, -0.0034122467041015625, -0.022857666015625, 0.0296630859375, 0.007503509521484375, 0.019989013671875, 0.0438232421875, 0.041259765625, 0.035552978515625, 0.0021839141845703125, 0.0225677490234375, -0.000568389892578125, 0.00908660888671875, 0.0574951171875, 0.0292510986328125, -0.00891876220703125, 0.00408935546875, 0.036102294921875, 0.0218658447265625, -0.0223541259765625, -0.0172119140625, -0.006855010986328125, 0.0009641647338867188, 0.0025463104248046875, 0.0168914794921875, -0.0150146484375, -0.0286407470703125, -0.0426025390625, -0.034576416015625, 0.0025882720947265625, -0.023040771484375, -0.0165863037109375, -0.04595947265625, -0.040985107421875, -0.02520751953125, -0.17431640625, -0.1270751953125, 0.015960693359375, -0.035247802734375, 0.037567138671875, -0.005359649658203125, -0.0200958251953125, -0.0318603515625, 0.035888671875, 0.0025119781494140625, -0.0020923614501953125, -0.0143585205078125, -0.037078857421875, -0.04705810546875, -0.057525634765625, -0.0159454345703125, 0.004131317138671875, -0.001995086669921875, -0.0027027130126953125, 0.027740478515625, -0.00988006591796875, -0.033905029296875, -0.01493072509765625, 0.032958984375, 0.0004169940948486328, -0.03631591796875, -0.004337310791015625, -0.0202178955078125, 0.032257080078125, -0.0048370361328125, 0.06756591796875, 0.0213470458984375, -0.01556396484375, 0.00048041343688964844, -0.00786590576171875, -0.0160064697265625, -0.00844573974609375, 0.012481689453125, 0.0110321044921875, -0.049530029296875, -0.0304107666015625, -0.0830078125, 0.004222869873046875, 0.00345611572265625, -0.0257568359375, 0.0257720947265625, -0.0031261444091796875, -0.008331298828125, 0.01097869873046875, 0.01500701904296875, 0.01090240478515625, -0.00923919677734375, -0.004932403564453125, 0.0068817138671875, -0.0007119178771972656, -0.015838623046875, -0.00933074951171875, -0.00782012939453125, 0.08660888671875, 0.014892578125, -0.020111083984375, 0.035400390625, 0.009124755859375, -0.005886077880859375, -0.037109375, -0.08941650390625, -0.0518798828125, 0.0716552734375, -0.01494598388671875, 0.006420135498046875, -0.0296173095703125, -0.025634765625, 0.001964569091796875, 0.0845947265625, -0.01039886474609375, -0.015045166015625, -0.015289306640625, -0.002948760986328125, -0.055908203125, -0.045013427734375, -0.0404052734375, 0.0244598388671875, -0.0004105567932128906, 0.0012292861938476562, -0.017608642578125, -0.007740020751953125, 0.024993896484375, -0.0750732421875, 0.02496337890625, -0.043670654296875, -0.01244354248046875, -0.004108428955078125, -0.0035953521728515625, -0.0219573974609375, -0.004711151123046875, -0.028076171875, 0.03515625, -0.034576416015625, -0.026031494140625, -0.00649261474609375, -0.04290771484375, 0.02447509765625, 0.018524169921875, 0.0209808349609375, -0.004009246826171875, 0.029083251953125, 0.01055145263671875, -0.0299835205078125, 0.01422119140625, -0.01335906982421875, 0.0025768280029296875, 0.04510498046875, 0.006946563720703125, -0.005260467529296875, -0.007495880126953125, -0.017181396484375, -0.031768798828125, -0.0120086669921875, -0.005542755126953125, -0.0004074573516845703, 0.035064697265625, -0.0214385986328125, -0.044342041015625, -0.035675048828125, 0.0021820068359375, 0.00481414794921875, -0.0162506103515625, 0.028350830078125, -0.036529541015625, -0.029571533203125, 0.04608154296875, -0.0062408447265625, 0.004009246826171875, 0.01032257080078125, 0.043365478515625, 0.0030841827392578125, -0.0297698974609375, -0.07373046875, -0.029296875, 0.018096923828125, 0.01087188720703125, 0.0377197265625, 0.0013246536254882812, -0.016357421875, 0.059417724609375, 0.0084686279296875, 0.0258636474609375, 0.01250457763671875, 0.0142974853515625, 0.0275726318359375, 0.0133819580078125, 0.008544921875, 0.0611572265625, -0.06463623046875, -0.011383056640625, -0.0286407470703125, -0.0015153884887695312, -0.02691650390625, 0.0347900390625, -0.0158538818359375, 0.05352783203125, -0.024627685546875, -0.07373046875, 0.028472900390625, -0.0531005859375, 0.0257110595703125, -0.0028743743896484375, 0.0065460205078125, 0.021392822265625, -0.00391387939453125, 0.0017604827880859375, 0.002651214599609375, 0.005950927734375, 0.0007944107055664062, 0.0186004638671875, 0.031768798828125, 0.008819580078125, -0.01312255859375, -0.021728515625, 0.034423828125, 0.0149078369140625, -0.0262908935546875, -0.0069122314453125, -0.00789642333984375, 0.0267791748046875, -0.0148773193359375, -0.034027099609375, 0.004329681396484375, 0.02056884765625, -0.033721923828125, 0.0137939453125, 0.0024242401123046875, -0.0216522216796875, -0.0364990234375, 0.01910400390625, 0.015899658203125, -0.0133819580078125, -0.01029205322265625, 0.076416015625, 0.02239990234375, 0.0191192626953125, -0.0164642333984375, 0.0066070556640625, 0.034912109375, -0.0040130615234375, 0.0251007080078125, -0.007625579833984375, 0.01084136962890625, -0.033721923828125, 0.0255279541015625, -0.0226287841796875, -0.042510986328125, 0.0118408203125, 0.055206298828125, -0.033966064453125, -0.01000213623046875, 0.038848876953125, -0.0103759765625, -0.006061553955078125, -0.00604248046875, -0.0177459716796875, 0.010589599609375, -0.031280517578125, -0.0003752708435058594, 0.051513671875, 0.0121307373046875, -0.006610870361328125, 0.017669677734375, 0.007488250732421875, 0.02197265625, 0.044342041015625, -0.01000213623046875, -0.0087738037109375, -0.00868988037109375, 0.0010089874267578125, -0.067626953125, -0.046661376953125, 0.0718994140625, 0.060455322265625, -0.0333251953125, -0.03436279296875, 0.0312042236328125, -0.0255279541015625, -0.00835418701171875, -0.04840087890625, 0.043212890625, -0.0650634765625, -0.01360321044921875, 0.0860595703125, 0.055267333984375, -0.038726806640625, 0.0038776397705078125, -0.00177764892578125, -0.007617950439453125, 0.043731689453125, -0.009796142578125, -0.032623291015625, -0.04132080078125, -0.0025119781494140625, 0.0133514404296875, -0.010772705078125, 0.000012814998626708984, 0.033935546875, 0.0192108154296875, -0.033599853515625, 0.00722503662109375, -0.01212310791015625, 0.0272064208984375, 0.00901031494140625, 0.0447998046875, 0.021392822265625, 0.0031070709228515625, -0.051361083984375, -0.01468658447265625, -0.0084075927734375, -0.06048583984375, -0.0148773193359375, 0.02410888671875, -0.04791259765625, 0.02337646484375, 0.04058837890625, 0.00910186767578125, -0.0130767822265625, -0.01279449462890625, 0.0010089874267578125, -0.0224456787109375, 0.032989501953125, -0.007228851318359375, -0.030181884765625, 0.004177093505859375, -0.0274505615234375, -0.0203399658203125, -0.00994110107421875, -0.03875732421875, 0.023712158203125, 0.00728607177734375, 0.005565643310546875, 0.0193023681640625, -0.020904541015625, 0.060211181640625, 0.11151123046875, 0.0026187896728515625, 0.0721435546875, 0.040130615234375, 0.00196075439453125, 0.0328369140625, 0.0229949951171875, 0.0021495819091796875, -0.007465362548828125, -0.0029239654541015625, -0.015350341796875, -0.0028285980224609375, -0.026947021484375, -0.01285552978515625, -0.0022735595703125, 0.00815582275390625, 0.00640869140625, -0.0166778564453125, -0.0104217529296875, -0.0249481201171875, -0.028289794921875, -0.0130615234375, 0.0268096923828125, -0.051483154296875, -0.0965576171875, 0.036529541015625, -0.004184722900390625, 0.01354217529296875, 0.00527191162109375, 0.01416015625, -0.0116424560546875, 0.01220703125, 0.0112152099609375, 0.00402069091796875, -0.07177734375, 0.0016727447509765625, 0.024169921875, -0.03350830078125, -0.00628662109375, 0.029541015625, 0.006671905517578125, -0.0113067626953125, -0.03643798828125, 0.0201416015625, -0.01198577880859375, -0.0150604248046875, -0.038543701171875, -0.00875091552734375, 0.0305938720703125, 0.0389404296875, -0.0146636962890625, -0.0306396484375, 0.0290374755859375, 0.00220489501953125, -0.036773681640625, -0.03656005859375, -0.022552490234375, 0.040924072265625, -0.0243377685546875, 0.0221099853515625, -0.0157470703125, 0.0032672882080078125, 0.0052947998046875, 0.01355743408203125, 0.0287628173828125, -0.0105743408203125, -0.0129852294921875, 0.054443359375, 0.006046295166015625, -0.026153564453125, 0.016937255859375, 0.0767822265625, -0.06103515625, -0.050872802734375, 0.055511474609375, -0.0279693603515625, -0.040557861328125, 0.0212249755859375, -0.0128631591796875, 0.09326171875, 0.0259857177734375, -0.012298583984375, 0.0028972625732421875, 0.049591064453125, -0.0408935546875, 0.01273345947265625, -0.013458251953125, 0.04119873046875, 0.057830810546875, -0.0347900390625, -0.0229644775390625, -0.0208892822265625, -0.0223236083984375, 0.043548583984375, 0.043853759765625, 0.0005197525024414062, -0.0296173095703125, -0.034393310546875, 0.0289154052734375, 0.03564453125, 0.003818511962890625, 0.02301025390625, -0.007373809814453125, 0.0015964508056640625, 0.01412200927734375, -0.035247802734375, 0.005558013916015625, -0.003582000732421875, -0.0124969482421875, 0.0238189697265625, 0.0211639404296875, 0.007427215576171875, 0.011932373046875, 0.03857421875, -0.0372314453125, 0.0002143383026123047, 0.034423828125, -0.00472259521484375, -0.007808685302734375, 0.0263671875, 0.018798828125, 0.0026836395263671875, 0.0328369140625, -0.037445068359375, 0.04901123046875, 0.01119232177734375, 0.01288604736328125, 0.017852783203125, 0.0207366943359375, 0.032958984375, -0.025634765625, 0.0007910728454589844, 0.0013875961303710938, -0.000020444393157958984, 0.0506591796875, 0.043121337890625, 0.010498046875, -0.0209197998046875, 0.00817108154296875, 0.0285797119140625, 0.06573486328125, -0.05267333984375, -0.0155181884765625, -0.001956939697265625, -0.0013685226440429688, 0.016571044921875, -0.0010833740234375, 0.0491943359375, -0.0116424560546875, 0.004550933837890625, -0.03948974609375, 0.01482391357421875, 0.034881591796875, 0.032745361328125, 0.03363037109375, 0.0294952392578125, -0.07781982421875, -0.04486083984375, 0.019500732421875, -0.0208587646484375, 0.00893402099609375, 0.0248260498046875, 0.005023956298828125, 0.01312255859375, -0.0511474609375, 0.00984954833984375, 0.01195526123046875, 0.014892578125, 0.0033416748046875, -0.00865936279296875, -0.00974273681640625, -0.0352783203125, 0.04266357421875, 0.02685546875, 0.00827789306640625, 0.0173187255859375, 0.042266845703125, 0.01479339599609375, -0.0389404296875, -0.006183624267578125, 0.06793212890625, -0.0225372314453125, 0.01378631591796875, -0.046112060546875, -0.0210723876953125, -0.02215576171875, -0.01436614990234375, -0.01001739501953125, -0.042236328125, 0.03466796875, -0.045928955078125, 0.0838623046875, -0.03070068359375, -0.0198211669921875, -0.00351715087890625, -0.042327880859375, 0.05963134765625, -0.026092529296875, -0.04888916015625, -0.006072998046875, -0.002765655517578125, -0.0255584716796875, 0.012847900390625, 0.044189453125, -0.0035495758056640625, 0.0183868408203125, 0.00974273681640625, -0.0219573974609375, 0.01168060302734375, 0.017608642578125, -0.00714874267578125, 0.01041412353515625, 0.0179290771484375, -0.006984710693359375, -0.0374755859375, -0.0160064697265625, -0.0577392578125, 0.053131103515625, 0.0118865966796875, 0.09674072265625, -0.037689208984375, 0.037750244140625, -0.01302337646484375, 0.004528045654296875, -0.00873565673828125, 0.00919342041015625, -0.007717132568359375, 0.0299224853515625, 0.002307891845703125, -0.0177764892578125, 0.015899658203125, 0.0031681060791015625, 0.0106201171875, 0.0023555755615234375, -0.0222015380859375, -0.07672119140625, 0.042236328125, 0.07244873046875, 0.0400390625, -0.03436279296875, -0.016815185546875, 0.0167694091796875, 0.01415252685546875, 0.0001474618911743164, 0.00527191162109375, 0.0158538818359375, 0.002155303955078125, 0.0223236083984375, -0.01227569580078125, 0.02593994140625, 0.0028934478759765625, 0.04534912109375, 0.0167083740234375, -0.02191162109375, 0.0032291412353515625, -0.0380859375, -0.0134429931640625, 0.0005054473876953125, -0.003360748291015625, 0.003826141357421875, -0.01345062255859375, 0.059600830078125, -0.006778717041015625, 0.003231048583984375, 0.02960205078125, 0.013031005859375, 0.004817962646484375, -0.01177978515625, -0.005313873291015625, -0.01611328125, -0.0023632049560546875, -0.0027446746826171875, -0.003978729248046875, 0.00292205810546875, 0.0201416015625, 0.010955810546875, 0.01515960693359375, -0.0146484375, -0.0206756591796875, 0.00496673583984375, -0.0157318115234375, 0.00021135807037353516, -0.005924224853515625, -0.0213775634765625, -0.0084075927734375, -0.0136871337890625, 0.037139892578125, -0.03466796875, 0.00299072265625, -0.029144287109375, -0.050750732421875, -0.01215362548828125, 0.07861328125, -0.014678955078125, 0.00958251953125, 0.0202178955078125, -0.0024356842041015625, 0.019439697265625, 0.01080322265625, 0.028045654296875, 0.051605224609375, -0.04034423828125, -0.048919677734375, 0.01092529296875, -0.02154541015625, 0.0177459716796875, -0.033782958984375, 0.00212860107421875, -0.0789794921875, -0.0006041526794433594, -0.03997802734375, 0.0240478515625, 0.0272369384765625, -0.03521728515625, -0.05242919921875, 0.0240631103515625, -0.0090789794921875, -0.027587890625, -0.029266357421875, -0.0187835693359375, 0.020538330078125, -0.0161285400390625, -0.01557159423828125, -0.026336669921875, -0.068359375, 0.01183319091796875, 0.0153961181640625, 0.03106689453125, 0.017974853515625, 0.0004520416259765625, 0.0019931793212890625, 0.04193115234375, 0.04241943359375, 0.00391387939453125, -0.0214385986328125, -0.0140838623046875, 0.05615234375, 0.03240966796875, -0.00037217140197753906, 0.045562744140625, 0.0494384765625, -0.0139617919921875, -0.02557373046875, -0.01274871826171875, -0.007312774658203125, 0.03265380859375, 0.042022705078125, 0.0855712890625, 0.0054779052734375, -0.07867431640625, 0.0021724700927734375, -0.0281219482421875, -0.0347900390625, -0.00732421875, 0.00799560546875, -0.036865234375, 0.0157012939453125, -0.01306915283203125, 0.0018396377563476562, 0.023681640625, -0.035614013671875, -0.014404296875, 0.005352020263671875, 0.02294921875, 0.0105743408203125, -0.0186920166015625, -0.0496826171875, 0.06854248046875, -0.027862548828125, 0.02996826171875, -0.01302337646484375, 0.0338134765625, 0.037017822265625, 0.0281982421875, -0.0125274658203125, 0.033203125, -0.0121002197265625, 0.002960205078125, 0.016845703125, 0.0025177001953125, -0.00014126300811767578, 0.007518768310546875, -0.033447265625, -0.012908935546875, 0.0004525184631347656, -0.00861358642578125, 0.0111846923828125, 0.005229949951171875, 0.0195465087890625, 0.01554107666015625, -0.0282745361328125, -0.02874755859375, -0.0160675048828125, -0.005611419677734375, -0.00681304931640625, 0.007537841796875, 0.0535888671875, -0.05194091796875, 0.006893157958984375, 0.005886077880859375, -0.0020008087158203125, -0.03948974609375, 0.01009368896484375, -0.01076507568359375, 0.0078887939453125, 0.019134521484375 ]