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
71b42231399e1a2dc94560502181f1b65158170d
Wordpress Stackexchange Q: Local wordpress setup with SPAM in the incoming links dashboard section? I am developing a website on my localhost and i just notice a bunch of incoming links in the dashboard's incoming links section, which doesn't look valid. When i visit the urls i don't see a reffer to my localhost/domain.com. the only plugin i had active was "Regenerate Thumbnails". I disabled the plugin but i can still see the links. How can i fix this? regards A: The incoming links widget is asking Google for links to the domain you’re on right now. If your domain is localhost you get a lot of links – because that’s a very common domain name. Unfortunately, some people don’t clean up their data when they move from localhost to the world wide web, and then Google will find these links. :) Nothing to worry about.
Q: Local wordpress setup with SPAM in the incoming links dashboard section? I am developing a website on my localhost and i just notice a bunch of incoming links in the dashboard's incoming links section, which doesn't look valid. When i visit the urls i don't see a reffer to my localhost/domain.com. the only plugin i had active was "Regenerate Thumbnails". I disabled the plugin but i can still see the links. How can i fix this? regards A: The incoming links widget is asking Google for links to the domain you’re on right now. If your domain is localhost you get a lot of links – because that’s a very common domain name. Unfortunately, some people don’t clean up their data when they move from localhost to the world wide web, and then Google will find these links. :) Nothing to worry about.
wordpress
{ "language": "en", "length": 144, "provenance": "stackexchange_00019.jsonl.gz:417699", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44367" }
[ 0.0653076171875, 0.01062774658203125, 0.028778076171875, -0.040283203125, 0.005962371826171875, -0.0160064697265625, 0.0423583984375, -0.045135498046875, 0.01232147216796875, -0.0169525146484375, 0.0291290283203125, -0.0015916824340820312, -0.04559326171875, -0.07037353515625, 0.038116455078125, -0.020599365234375, 0.016326904296875, 0.0009455680847167969, 0.030853271484375, -0.022918701171875, 0.01479339599609375, -0.01303863525390625, 0.044921875, 0.025146484375, 0.02349853515625, -0.02862548828125, 0.07061767578125, 0.0269012451171875, -0.02020263671875, -0.00914764404296875, 0.01776123046875, -0.00630950927734375, -0.004840850830078125, 0.03131103515625, 0.011932373046875, -0.00705718994140625, 0.0228271484375, 0.021575927734375, 0.01056671142578125, 0.041168212890625, -0.003467559814453125, -0.0079498291015625, 0.055084228515625, -0.006378173828125, 0.0229339599609375, -0.00925445556640625, -0.0018329620361328125, -0.08074951171875, 0.04541015625, -0.0172882080078125, 0.002758026123046875, -0.0170135498046875, 0.0005588531494140625, 0.0034046173095703125, -0.03973388671875, -0.025665283203125, -0.047271728515625, 0.0092620849609375, 0.041259765625, -0.007717132568359375, -0.0184783935546875, -0.04547119140625, 0.0107574462890625, -0.016754150390625, -0.033111572265625, -0.003993988037109375, 0.043243408203125, 0.003627777099609375, -0.0107269287109375, -0.0161895751953125, 0.02996826171875, 0.0012683868408203125, -0.0096435546875, -0.0292205810546875, 0.0032939910888671875, -0.0032100677490234375, -0.0157623291015625, -0.04754638671875, 0.01148223876953125, 0.021270751953125, -0.0161895751953125, -0.032379150390625, -0.0065155029296875, 0.0009307861328125, 0.016326904296875, 0.037506103515625, -0.0189666748046875, -0.01055908203125, -0.021270751953125, -0.0180816650390625, -0.0306549072265625, -0.09185791015625, 0.0023822784423828125, -0.001255035400390625, -0.01113128662109375, -0.01464080810546875, 0.00940704345703125, 0.0194549560546875, -0.01450347900390625, -0.01373291015625, -0.01690673828125, -0.0161590576171875, -0.0159149169921875, -0.015960693359375, 0.003253936767578125, 0.027801513671875, 0.0084381103515625, -0.006305694580078125, 0.037811279296875, -0.00270843505859375, -0.00551605224609375, 0.051300048828125, -0.019134521484375, 0.03167724609375, -0.049652099609375, -0.0157623291015625, -0.0469970703125, -0.00836181640625, -0.02825927734375, 0.00859832763671875, 0.0199127197265625, 0.047515869140625, -0.053619384765625, 0.0298004150390625, -0.0021457672119140625, -0.00032830238342285156, -0.0167083740234375, 0.004978179931640625, -0.01220703125, 0.018890380859375, -0.039306640625, 0.00852203369140625, 0.0209197998046875, 0.005764007568359375, 0.00580596923828125, -0.00988006591796875, 0.0298614501953125, -0.0173492431640625, -0.0169830322265625, 0.03759765625, -0.034698486328125, -0.06292724609375, -0.0228118896484375, -0.01238250732421875, 0.0132293701171875, 0.00928497314453125, -0.0016508102416992188, 0.00634002685546875, 0.01461029052734375, 0.012451171875, 0.004047393798828125, -0.048309326171875, 0.059417724609375, 0.0209503173828125, -0.0264892578125, -0.0263671875, 0.0733642578125, -0.041168212890625, -0.04815673828125, -0.06329345703125, -0.001316070556640625, -0.014678955078125, 0.01715087890625, -0.06500244140625, -0.04510498046875, -0.017578125, -0.0626220703125, -0.0019893646240234375, 0.0341796875, 0.003261566162109375, 0.01175689697265625, -0.028900146484375, 0.0513916015625, 0.006221771240234375, -0.010894775390625, 0.0177764892578125, 0.06549072265625, -0.006103515625, 0.01446533203125, 0.061248779296875, 0.00849151611328125, -0.01139068603515625, 0.08477783203125, -0.046539306640625, -0.051361083984375, 0.061187744140625, 0.003917694091796875, 0.08831787109375, 0.005435943603515625, 0.02777099609375, 0.029388427734375, 0.01174163818359375, -0.017425537109375, 0.006565093994140625, -0.0166473388671875, -0.0004115104675292969, 0.0270843505859375, 0.029632568359375, -0.01110076904296875, -0.0011768341064453125, -0.033050537109375, -0.0124359130859375, 0.02496337890625, -0.0093841552734375, -0.01032257080078125, 0.0065765380859375, -0.0274200439453125, 0.055694580078125, 0.0274200439453125, 0.00701904296875, 0.00951385498046875, 0.00946807861328125, -0.0186309814453125, -0.021209716796875, -0.034881591796875, -0.0009589195251464844, -0.02825927734375, 0.0296173095703125, -0.0209503173828125, 0.005401611328125, -0.04925537109375, -0.0200347900390625, -0.029388427734375, -0.01123046875, 0.0306396484375, 0.005138397216796875, -0.0251617431640625, -0.006244659423828125, -0.0055084228515625, 0.0272216796875, -0.08416748046875, 0.039337158203125, -0.006130218505859375, -0.00835418701171875, -0.047149658203125, -0.00009578466415405273, -0.0279998779296875, -0.016387939453125, -0.0066375732421875, 0.044342041015625, 0.03472900390625, -0.054962158203125, 0.0233001708984375, 0.0467529296875, 0.0212860107421875, -0.038604736328125, 0.00820159912109375, 0.019256591796875, 0.00899505615234375, 0.0635986328125, -0.04681396484375, 0.0028896331787109375, 0.00757598876953125, -0.0272979736328125, -0.0350341796875, 0.0438232421875, 0.005176544189453125, -0.00632476806640625, -0.0182037353515625, 0.03558349609375, -0.0066375732421875, -0.00508880615234375, -0.0181121826171875, -0.023193359375, -0.02069091796875, -0.00991058349609375, 0.01352691650390625, 0.016937255859375, -0.0086669921875, -0.02911376953125, 0.0182952880859375, 0.0167236328125, -0.0045928955078125, 0.0318603515625, 0.0408935546875, 0.001995086669921875, -0.018402099609375, -0.0210418701171875, 0.0204925537109375, 0.0279541015625, -0.042205810546875, -0.04815673828125, 0.089599609375, -0.0068511962890625, 0.020721435546875, -0.031494140625, 0.0811767578125, -0.059295654296875, 0.03326416015625, 0.0229949951171875, 0.048309326171875, -0.01541900634765625, -0.00272369384765625, 0.0022411346435546875, 0.0194854736328125, -0.039642333984375, 0.0207366943359375, -0.03924560546875, 0.0227203369140625, -0.0054931640625, 0.0562744140625, 0.07501220703125, 0.036865234375, -0.0281982421875, -0.01337432861328125, -0.00653839111328125, 0.0163726806640625, -0.018463134765625, -0.01052093505859375, -0.0217437744140625, -0.014373779296875, -0.0018138885498046875, 0.0146331787109375, 0.0035610198974609375, -0.03265380859375, -0.0372314453125, -0.034454345703125, -0.01425933837890625, -0.088134765625, -0.042938232421875, -0.026214599609375, -0.0193634033203125, 0.00754547119140625, 0.0034427642822265625, -0.009063720703125, -0.00754547119140625, 0.01416778564453125, 0.01239013671875, -0.0037250518798828125, -0.033966064453125, -0.05230712890625, -0.0546875, -0.08184814453125, 0.01898193359375, 0.004299163818359375, 0.00554656982421875, 0.006237030029296875, -0.00426483154296875, 0.01055145263671875, 0.008819580078125, 0.0291900634765625, 0.04443359375, 0.0228118896484375, -0.031005859375, -0.06103515625, 0.00638580322265625, 0.0477294921875, -0.002544403076171875, -0.003814697265625, 0.0258331298828125, 0.005035400390625, -0.0189056396484375, 0.0016651153564453125, 0.0074615478515625, 0.01102447509765625, -0.0252227783203125, 0.005046844482421875, -0.01334381103515625, -0.0160369873046875, -0.043670654296875, 0.05877685546875, -0.00479888916015625, 0.0110321044921875, -0.01496124267578125, -0.00652313232421875, -0.06768798828125, -0.0037631988525390625, -0.02203369140625, 0.00713348388671875, -0.037841796875, 0.0308685302734375, -0.01995849609375, 0.01355743408203125, -0.006847381591796875, 0.01312255859375, -0.02313232421875, 0.0292510986328125, -0.0213165283203125, 0.066650390625, 0.032379150390625, -0.0035343170166015625, -0.023834228515625, 0.032501220703125, -0.036407470703125, -0.017242431640625, 0.0157012939453125, -0.0202484130859375, 0.0208892822265625, -0.0100555419921875, -0.0064239501953125, 0.0012836456298828125, 0.06695556640625, -0.065185546875, -0.01220703125, 0.0462646484375, 0.03936767578125, -0.03271484375, -0.03857421875, -0.053375244140625, -0.0309295654296875, -0.0748291015625, -0.0287322998046875, -0.01477813720703125, -0.0305938720703125, 0.00875091552734375, 0.006622314453125, -0.0225830078125, -0.04083251953125, 0.04583740234375, -0.01922607421875, 0.0177764892578125, -0.0361328125, 0.01438140869140625, -0.059234619140625, -0.03863525390625, 0.00864410400390625, -0.09942626953125, -0.01263427734375, -0.0161895751953125, 0.058502197265625, 0.00850677490234375, -0.000005841255187988281, -0.0057373046875, 0.047943115234375, 0.0022182464599609375, 0.000988006591796875, 0.0283966064453125, 0.00677490234375, 0.036163330078125, 0.034942626953125, 0.0263824462890625, -0.01270294189453125, -0.0224761962890625, -0.01271820068359375, -0.07733154296875, -0.0097198486328125, 0.0187530517578125, 0.0198211669921875, 0.06304931640625, -0.033416748046875, -0.05572509765625, -0.0153045654296875, 0.0447998046875, 0.061492919921875, 0.00966644287109375, 0.01279449462890625, -0.036712646484375, -0.046783447265625, 0.009552001953125, -0.00579071044921875, -0.01045989990234375, 0.002964019775390625, 0.042266845703125, 0.0234832763671875, -0.0079345703125, 0.046783447265625, 0.0146331787109375, 0.0196685791015625, 0.019439697265625, 0.044830322265625, 0.02728271484375, 0.0135345458984375, -0.022369384765625, 0.004596710205078125, 0.033416748046875, 0.0093841552734375, -0.007221221923828125, 0.003696441650390625, 0.00934600830078125, -0.0020771026611328125, 0.0258331298828125, -0.022308349609375, 0.023284912109375, 0.0266571044921875, -0.040771484375, 0.0447998046875, 0.038543701171875, -0.0270233154296875, 0.005809783935546875, -0.00937652587890625, -0.0307464599609375, 0.0111846923828125, -0.044891357421875, 0.03228759765625, 0.0002951622009277344, 0.0089569091796875, -0.01119232177734375, 0.000020623207092285156, -0.00908660888671875, 0.006031036376953125, -0.01450347900390625, -0.0260467529296875, 0.00662994384765625, -0.00015747547149658203, -0.027069091796875, 0.0142974853515625, -0.00901031494140625, 0.0377197265625, -0.01316070556640625, -0.0653076171875, -0.0136566162109375, 0.017333984375, -0.0032749176025390625, 0.035888671875, 0.032684326171875, 0.01436614990234375, 0.018280029296875, 0.017547607421875, -0.0214996337890625, 0.032318115234375, 0.0281829833984375, -0.02978515625, -0.03546142578125, -0.0482177734375, -0.0025997161865234375, 0.0080413818359375, -0.01143646240234375, -0.0157012939453125, -0.0137786865234375, -0.00737762451171875, -0.021697998046875, 0.042266845703125, 0.0051116943359375, 0.033111572265625, 0.009307861328125, -0.0284423828125, 0.0214080810546875, 0.049102783203125, -0.0604248046875, 0.007656097412109375, 0.030120849609375, 0.045745849609375, -0.006092071533203125, -0.045806884765625, 0.0305938720703125, -0.00852203369140625, -0.05023193359375, 0.09429931640625, 0.02777099609375, -0.0841064453125, -0.05902099609375, -0.028289794921875, 0.0256195068359375, 0.005161285400390625, -0.00481414794921875, 0.028839111328125, 0.0408935546875, 0.036956787109375, 0.0173492431640625, -0.01776123046875, 0.01898193359375, 0.0180816650390625, 0.010284423828125, -0.0175933837890625, -0.0029582977294921875, -0.033966064453125, 0.021881103515625, -0.0284271240234375, -0.01715087890625, 0.04437255859375, 0.0255584716796875, -0.004810333251953125, -0.046112060546875, 0.0087738037109375, -0.06378173828125, -0.00039124488830566406, -0.01209259033203125, -0.051666259765625, -0.044830322265625, -0.00469207763671875, -0.055389404296875, -0.0285797119140625, -0.01433563232421875, -0.0100250244140625, -0.0311431884765625, -0.0007495880126953125, 0.04583740234375, 0.042236328125, -0.01194000244140625, -0.0782470703125, -0.03399658203125, -0.0281219482421875, 0.049652099609375, -0.0269012451171875, -0.0097808837890625, 0.01161956787109375, 0.0280914306640625, 0.0272674560546875, -0.0015802383422851562, -0.023284912109375, -0.04302978515625, -0.0006589889526367188, 0.03277587890625, -0.040679931640625, -0.0282440185546875, 0.0093231201171875, -0.03546142578125, -0.013153076171875, -0.0011129379272460938, -0.0160369873046875, -0.020172119140625, -0.00009256601333618164, 0.00876617431640625, -0.01708984375, 0.0191497802734375, 0.024749755859375, -0.0274200439453125, 0.0067901611328125, -0.0087127685546875, -0.004730224609375, 0.0010690689086914062, -0.0063323974609375, -0.0185546875, 0.025665283203125, -0.01258087158203125, -0.0164642333984375, -0.0012140274047851562, 0.033782958984375, 0.0523681640625, 0.0189971923828125, 0.07427978515625, 0.0178070068359375, 0.04168701171875, 0.03826904296875, 0.009063720703125, 0.002521514892578125, -0.051727294921875, -0.003261566162109375, -0.003810882568359375, -0.0201873779296875, -0.00023996829986572266, -0.033447265625, 0.010009765625, 0.0460205078125, 0.036712646484375, -0.085205078125, 0.0062713623046875, -0.003025054931640625, -0.0214385986328125, -0.01410675048828125, 0.004940032958984375, 0.0066070556640625, 0.002277374267578125, -0.0026378631591796875, 0.032379150390625, -0.017669677734375, 0.00453948974609375, 0.0284576416015625, 0.00899505615234375, 0.02923583984375, 0.0312042236328125, -0.005008697509765625, -0.06298828125, -0.05987548828125, 0.0279541015625, -0.051788330078125, 0.01131439208984375, 0.01244354248046875, 0.00464630126953125, -0.032958984375, -0.01371002197265625, 0.00859832763671875, -0.031585693359375, -0.01611328125, -0.02020263671875, 0.00577545166015625, 0.028472900390625, -0.0017452239990234375, 0.0017833709716796875, -0.024322509765625, -0.018646240234375, -0.01384735107421875, 0.06304931640625, -0.014404296875, -0.0355224609375, -0.0185699462890625, 0.0015821456909179688, -0.017913818359375, 0.003692626953125, -0.000499725341796875, -0.013153076171875, -0.01800537109375, 0.0369873046875, -0.00469207763671875, -0.021270751953125, 0.0177001953125, 0.005527496337890625, -0.000858306884765625, -0.0211334228515625, -0.01262664794921875, -0.041107177734375, 0.0266265869140625, -0.0243377685546875, 0.004180908203125, 0.016937255859375, -0.03973388671875, -0.08013916015625, 0.036468505859375, -0.01358795166015625, 0.05450439453125, 0.029388427734375, -0.0034809112548828125, -0.0300140380859375, -0.0291595458984375, -0.0399169921875, 0.0201568603515625, -0.00637054443359375, 0.0202178955078125, -0.0384521484375, 0.0013990402221679688, -0.0029144287109375, 0.00982666015625, 0.053863525390625, 0.01323699951171875, 0.005619049072265625, -0.0005068778991699219, 0.01947021484375, -0.001560211181640625, -0.053314208984375, 0.029571533203125, -0.01465606689453125, 0.0139617919921875, 0.0238800048828125, -0.03509521484375, 0.0191497802734375, 0.004791259765625, -0.01264190673828125, 0.0196533203125, 0.0161895751953125, 0.0132598876953125, -0.006793975830078125, 0.0266876220703125, 0.006565093994140625, -0.0006504058837890625, 0.006603240966796875, -0.01540374755859375, -0.003997802734375, 0.059417724609375, 0.02587890625, -0.04046630859375, -0.0146942138671875, -0.037078857421875, 0.040618896484375, -0.0016660690307617188, 0.00030517578125, 0.01071929931640625, 0.0271453857421875, 0.046051025390625, 0.00946807861328125, 0.0089874267578125, 0.04852294921875, -0.006134033203125, 0.054168701171875, 0.00982666015625, 0.03167724609375, -0.04302978515625, -0.051055908203125, 0.032684326171875, 0.09466552734375, -0.031951904296875, -0.0281982421875, 0.004726409912109375, -0.0121002197265625, 0.011962890625, 0.0013751983642578125, 0.049957275390625, -0.0038547515869140625, 0.0035800933837890625, -0.0069580078125, -0.012847900390625, -0.018035888671875, -0.01026153564453125, -0.01456451416015625, 0.047821044921875, 0.038299560546875, 0.009307861328125, 0.01352691650390625, -0.032440185546875, -0.0009593963623046875, 0.03973388671875, -0.00699615478515625, 0.015777587890625, -0.07196044921875, 0.0015735626220703125, -0.03106689453125, -0.0003261566162109375, 0.0194549560546875, 0.03790283203125, -0.074462890625, -0.017913818359375, 0.0723876953125, 0.05413818359375, 0.060272216796875, -0.004993438720703125, 0.040924072265625, 0.00664520263671875, -0.026947021484375, 0.012725830078125, 0.0299224853515625, -0.013153076171875, -0.01058197021484375, -0.060821533203125, 0.0240325927734375, 0.005970001220703125, 0.004940032958984375, 0.011138916015625, -0.0216522216796875, 0.040802001953125, -0.0469970703125, 0.050445556640625, -0.0170745849609375, -0.039886474609375, 0.0239105224609375, -0.0263519287109375, 0.054290771484375, -0.01971435546875, -0.05950927734375, -0.03765869140625, 0.018402099609375, 0.003879547119140625, 0.0013761520385742188, 0.03375244140625, 0.00679779052734375, 0.0069427490234375, 0.0179901123046875, -0.0147857666015625, 0.00502777099609375, -0.0204010009765625, 0.01885986328125, 0.000020682811737060547, 0.00421905517578125, 0.00742340087890625, 0.0211944580078125, 0.03387451171875, 0.039703369140625, -0.0023555755615234375, -0.0653076171875, 0.1365966796875, -0.0657958984375, -0.034027099609375, 0.07122802734375, 0.031341552734375, 0.0258941650390625, 0.061279296875, 0.0275421142578125, 0.024322509765625, 0.0206451416015625, -0.06732177734375, -0.07049560546875, -0.0055694580078125, 0.008575439453125, -0.01947021484375, 0.01617431640625, -0.0465087890625, 0.015899658203125, 0.00806427001953125, 0.05535888671875, -0.0224456787109375, -0.062469482421875, -0.07257080078125, -0.03155517578125, 0.0238494873046875, 0.0633544921875, 0.0382080078125, 0.066650390625, 0.00909423828125, 0.02313232421875, -0.0014219284057617188, -0.049163818359375, 0.0014591217041015625, 0.0289154052734375, -0.01458740234375, 0.007678985595703125, 0.03265380859375, -0.0205078125, 0.050628662109375, -0.0039215087890625, 0.06146240234375, 0.0217437744140625, 0.038421630859375, 0.0207672119140625, 0.001544952392578125, 0.0252227783203125, -0.028900146484375, -0.0172119140625, 0.040191650390625, -0.01702880859375, 0.005126953125, -0.0027828216552734375, -0.01117706298828125, -0.032684326171875, -0.01009368896484375, 0.0210113525390625, -0.00494384765625, 0.0121307373046875, -0.00849151611328125, 0.005977630615234375, 0.049407958984375, 0.01019287109375, -0.053497314453125, 0.015899658203125, -0.022552490234375, 0.0709228515625, 0.0023212432861328125, 0.031005859375, -0.032012939453125, -0.0176239013671875, -0.021575927734375, -0.022003173828125, -0.0277252197265625, 0.0416259765625, -0.0177154541015625, -0.0209197998046875, -0.01287841796875, 0.028106689453125, 0.021728515625, -0.0305328369140625, -0.02154541015625, 0.0164337158203125, -0.030517578125, -0.04315185546875, 0.0168609619140625, -0.0185699462890625, -0.0034923553466796875, -0.004276275634765625, -0.005924224853515625, -0.039642333984375, 0.01383209228515625, 0.006168365478515625, -0.016937255859375, -0.010711669921875, -0.050933837890625, -0.08624267578125, 0.05413818359375, -0.0027008056640625, -0.034423828125, -0.00394439697265625, -0.0055694580078125, -0.023223876953125, 0.002849578857421875, 0.004970550537109375, -0.01348114013671875, -0.00412750244140625, 0.03564453125, 0.0111846923828125, 0.003772735595703125, 0.01157379150390625, -0.0240631103515625, 0.0088958740234375, 0.0294647216796875, 0.04534912109375, -0.002056121826171875, -0.0294342041015625, 0.0252685546875, 0.03155517578125, 0.050811767578125, -0.0101776123046875, 0.08819580078125, 0.01947021484375, -0.008697509765625, -0.00899505615234375, -0.04302978515625, 0.004058837890625, -0.031463623046875, 0.06842041015625, 0.0106353759765625, 0.0044403076171875, 0.0036907196044921875, -0.0263824462890625, -0.004596710205078125, -0.0195159912109375, -0.0178985595703125, 0.01297760009765625, -0.035614013671875, -0.01102447509765625, -0.033599853515625, 0.011810302734375, 0.0083770751953125, -0.01593017578125, -0.0093841552734375, -0.01403045654296875, -0.002506256103515625, -0.0206451416015625, -0.015777587890625, -0.0188140869140625, 0.08758544921875, -0.060791015625, -0.00530242919921875, 0.017333984375, 0.02227783203125, 0.03558349609375, 0.0191497802734375, 0.01727294921875, 0.00537872314453125, -0.036590576171875, 0.0233306884765625, 0.0264129638671875, 0.041778564453125, -0.0592041015625, -0.035552978515625, 0.0019025802612304688, 0.01483154296875, -0.0162506103515625, 0.02593994140625, 0.032470703125, 0.002658843994140625, -0.018157958984375, 0.050628662109375, 0.0024700164794921875, -0.06207275390625, -0.033538818359375, 0.03887939453125, -0.0430908203125, -0.00390625, -0.0184326171875, -0.0161895751953125, -0.00905609130859375, 0.026336669921875, -0.043701171875, -0.052154541015625, -0.005840301513671875, -0.022430419921875, 0.031494140625, 0.0138702392578125 ]
8b097824124a022359af7eb320b74a8155785c93
Wordpress Stackexchange Q: wp_mail is undefined I am writing a plugin that opens up a form to invite people to a website by email and want to use wp_mail(). Whenever I use the wp_mail() function in any file in my plugin folder I always end up with: PHP Fatal error: Call to undefined function wp_mail() The code segment in question is: function send_email() { $subject = 'test'; $message = 'this is a test from send invitation'; $to = '[email protected]'; wp_mail($to, $subject, $message); } I am at my wits end as to why this should be happening when so many plugins use wp_mail(). Thanks in advance. A: You may call the function too early. You have to wait until the action 'plugins_loaded' fires. wp_mail() is defined in wp-includes/pluggable.php. pluggable.php is loaded in wp-settings.php after the plugins are loaded but before 'plugins_loaded' is called. See this answer for an example.
Q: wp_mail is undefined I am writing a plugin that opens up a form to invite people to a website by email and want to use wp_mail(). Whenever I use the wp_mail() function in any file in my plugin folder I always end up with: PHP Fatal error: Call to undefined function wp_mail() The code segment in question is: function send_email() { $subject = 'test'; $message = 'this is a test from send invitation'; $to = '[email protected]'; wp_mail($to, $subject, $message); } I am at my wits end as to why this should be happening when so many plugins use wp_mail(). Thanks in advance. A: You may call the function too early. You have to wait until the action 'plugins_loaded' fires. wp_mail() is defined in wp-includes/pluggable.php. pluggable.php is loaded in wp-settings.php after the plugins are loaded but before 'plugins_loaded' is called. See this answer for an example.
wordpress
{ "language": "en", "length": 146, "provenance": "stackexchange_00019.jsonl.gz:417705", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44387" }
[ 0.0192413330078125, -0.01495361328125, -0.00885009765625, -0.00778961181640625, 0.004116058349609375, -0.025970458984375, 0.04156494140625, -0.037261962890625, 0.03863525390625, 0.01294708251953125, -0.0184173583984375, -0.00909423828125, -0.0225830078125, -0.0200042724609375, -0.01375579833984375, -0.026611328125, 0.01355743408203125, 0.0126800537109375, 0.01256561279296875, -0.0146331787109375, 0.0222320556640625, 0.00010019540786743164, -0.03826904296875, 0.056243896484375, -0.0330810546875, 0.0538330078125, 0.1072998046875, -0.0187530517578125, -0.040130615234375, -0.03643798828125, -0.01190185546875, 0.015899658203125, 0.025177001953125, 0.0203857421875, -0.03497314453125, -0.03472900390625, 0.014678955078125, -0.007785797119140625, -0.011749267578125, 0.044158935546875, 0.021148681640625, -0.00986480712890625, 0.0295562744140625, 0.01142120361328125, -0.00537109375, -0.025482177734375, 0.02813720703125, -0.03533935546875, -0.00569915771484375, 0.0174713134765625, 0.0084075927734375, 0.0049285888671875, 0.0145111083984375, -0.0284576416015625, 0.01003265380859375, 0.00460052490234375, -0.016204833984375, 0.051239013671875, 0.0005145072937011719, 0.0229339599609375, -0.0233306884765625, 0.048095703125, -0.0125274658203125, -0.0288543701171875, -0.002628326416015625, 0.00617218017578125, -0.01277923583984375, 0.0147857666015625, -0.0247039794921875, 0.00441741943359375, 0.0167388916015625, -0.034820556640625, 0.0031261444091796875, 0.0192108154296875, 0.004261016845703125, -0.0276947021484375, 0.016448974609375, 0.005184173583984375, 0.0103759765625, 0.0259857177734375, -0.01108551025390625, -0.023773193359375, -0.06951904296875, 0.0196685791015625, 0.0176239013671875, 0.062103271484375, -0.00998687744140625, -0.0279998779296875, -0.0156097412109375, -0.028564453125, -0.022216796875, 0.0202178955078125, -0.039886474609375, -0.03533935546875, -0.023345947265625, -0.050262451171875, 0.028839111328125, 0.05377197265625, -0.0223846435546875, 0.006443023681640625, -0.0020046234130859375, -0.038330078125, 0.018341064453125, -0.032440185546875, -0.0131988525390625, 0.04119873046875, -0.0104217529296875, 0.00331878662109375, -0.005931854248046875, 0.0263519287109375, -0.00023674964904785156, -0.0689697265625, 0.032196044921875, -0.00644683837890625, 0.01110076904296875, -0.01806640625, -0.0156402587890625, 0.07659912109375, 0.023223876953125, 0.045623779296875, -0.0000756978988647461, 0.0166778564453125, -0.017730712890625, -0.0303802490234375, -0.0113067626953125, -0.039306640625, -0.02630615234375, 0.01203155517578125, 0.037078857421875, 0.0140380859375, -0.04534912109375, 0.0181121826171875, 0.042572021484375, -0.01012420654296875, -0.0148162841796875, -0.01788330078125, 0.01026153564453125, 0.01320648193359375, -0.0118560791015625, 0.0164794921875, 0.0114288330078125, -0.0182037353515625, -0.0041961669921875, -0.003025054931640625, -0.0020923614501953125, 0.0026760101318359375, 0.034271240234375, 0.016204833984375, -0.005859375, -0.0117645263671875, -0.020751953125, 0.0243072509765625, 0.005008697509765625, 0.035797119140625, 0.00930023193359375, 0.044921875, 0.0292816162109375, -0.004909515380859375, -0.035980224609375, 0.008148193359375, 0.0245819091796875, -0.01149749755859375, 0.0010156631469726562, -0.0399169921875, -0.03826904296875, -0.002147674560546875, -0.06671142578125, -0.0243988037109375, 0.0200958251953125, -0.05322265625, -0.0088653564453125, -0.010467529296875, 0.0467529296875, -0.005580902099609375, -0.0035533905029296875, 0.0275421142578125, -0.00008594989776611328, 0.00974273681640625, 0.037445068359375, 0.010162353515625, -0.02020263671875, -0.0211944580078125, 0.058746337890625, -0.0192108154296875, -0.03759765625, 0.02044677734375, 0.005176544189453125, 0.00333404541015625, -0.000209808349609375, 0.01218414306640625, 0.0203399658203125, 0.06048583984375, 0.01035308837890625, 0.007598876953125, -0.05377197265625, -0.02996826171875, -0.032745361328125, 0.005706787109375, -0.05169677734375, 0.049224853515625, 0.01560211181640625, -0.018402099609375, 0.0136871337890625, -0.012969970703125, -0.04132080078125, -0.0181427001953125, -0.01169586181640625, 0.0175323486328125, -0.0285491943359375, -0.0262451171875, 0.01763916015625, -0.030426025390625, -0.009033203125, -0.037109375, -0.02740478515625, 0.04547119140625, -0.033538818359375, 0.062225341796875, -0.02374267578125, 0.0811767578125, -0.04046630859375, -0.07733154296875, -0.021087646484375, -0.0236358642578125, 0.01348114013671875, 0.022705078125, -0.031829833984375, -0.003936767578125, -0.00384521484375, 0.0134429931640625, 0.01123046875, 0.045989990234375, 0.0029144287109375, 0.040435791015625, -0.035369873046875, -0.0199127197265625, -0.016693115234375, 0.00916290283203125, 0.0192108154296875, 0.0309600830078125, 0.05963134765625, 0.0231475830078125, 0.0133514404296875, 0.0050201416015625, 0.053985595703125, -0.039947509765625, 0.022003173828125, -0.02227783203125, 0.0161895751953125, 0.0243377685546875, -0.0046539306640625, 0.005268096923828125, 0.01300811767578125, 0.0037784576416015625, -0.005947113037109375, 0.04376220703125, 0.0523681640625, -0.01367950439453125, 0.0161590576171875, 0.010711669921875, 0.01421356201171875, -0.0258026123046875, -0.07672119140625, 0.01332855224609375, -0.0255584716796875, 0.01025390625, 0.006866455078125, 0.0018320083618164062, -0.016571044921875, -0.0022525787353515625, 0.0176239013671875, -0.0016183853149414062, 0.0009307861328125, 0.049591064453125, 0.0377197265625, 0.054534912109375, -0.040740966796875, -0.030609130859375, 0.0201873779296875, 0.04742431640625, -0.0498046875, 0.01363372802734375, 0.016510009765625, -0.028839111328125, -0.01274871826171875, 0.004055023193359375, 0.031402587890625, -0.062255859375, 0.01568603515625, -0.00896453857421875, 0.030975341796875, 0.007320404052734375, -0.028717041015625, 0.044403076171875, -0.02294921875, -0.041107177734375, -0.0310211181640625, 0.0014553070068359375, 0.01384735107421875, -0.017303466796875, 0.00554656982421875, 0.039764404296875, -0.010528564453125, -0.00476837158203125, 0.009124755859375, -0.034271240234375, 0.007419586181640625, 0.02801513671875, 0.0229034423828125, -0.038482666015625, -0.0012073516845703125, 0.035308837890625, 0.01477813720703125, 0.0251312255859375, -0.0338134765625, -0.056396484375, -0.03369140625, -0.0134429931640625, -0.1282958984375, -0.09686279296875, 0.0015592575073242188, -0.071044921875, -0.0036296844482421875, -0.026580810546875, -0.02685546875, -0.0043182373046875, -0.003551483154296875, 0.0029659271240234375, -0.006977081298828125, -0.02337646484375, -0.0682373046875, -0.060211181640625, -0.0863037109375, -0.00507354736328125, -0.01104736328125, 0.02166748046875, -0.00919342041015625, 0.072021484375, 0.00884246826171875, -0.0261077880859375, -0.0128173828125, -0.0013055801391601562, -0.01690673828125, -0.027740478515625, -0.0007872581481933594, -0.006500244140625, -0.0115509033203125, 0.004650115966796875, -0.017425537109375, -0.012725830078125, 0.005603790283203125, -0.035980224609375, 0.0036067962646484375, -0.035980224609375, 0.004688262939453125, -0.0209197998046875, -0.01959228515625, -0.050048828125, -0.032012939453125, -0.090087890625, 0.050018310546875, -0.01407623291015625, -0.003749847412109375, 0.0229644775390625, -0.0043487548828125, -0.023681640625, 0.0106964111328125, -0.0124053955078125, 0.00514984130859375, -0.004878997802734375, 0.016845703125, -0.014892578125, 0.039703369140625, -0.006984710693359375, 0.006488800048828125, -0.018829345703125, 0.023406982421875, 0.00246429443359375, -0.004489898681640625, -0.00016105175018310547, 0.032623291015625, -0.0017108917236328125, 0.0096282958984375, -0.0418701171875, -0.0211029052734375, 0.049346923828125, -0.01369476318359375, -0.006763458251953125, -0.018890380859375, -0.0200347900390625, -0.006229400634765625, 0.058502197265625, 0.03875732421875, -0.0211029052734375, -0.01129913330078125, 0.00238037109375, -0.055633544921875, -0.0031528472900390625, -0.005222320556640625, 0.005161285400390625, -0.02362060546875, -0.00022971630096435547, -0.034027099609375, -0.001766204833984375, 0.004688262939453125, -0.006038665771484375, 0.00888824462890625, -0.04608154296875, 0.01483154296875, -0.0029506683349609375, 0.01311492919921875, 0.0179443359375, -0.01084136962890625, -0.015899658203125, -0.0016078948974609375, -0.0261077880859375, -0.052825927734375, 0.01125335693359375, -0.031494140625, 0.019073486328125, -0.00603485107421875, 0.02520751953125, -0.0382080078125, -0.00603485107421875, 0.0167999267578125, -0.0041351318359375, 0.0163116455078125, -0.0125579833984375, 0.0117950439453125, 0.03436279296875, 0.02813720703125, 0.01142120361328125, 0.0091400146484375, 0.00031495094299316406, -0.04443359375, 0.0254974365234375, -0.0131683349609375, 0.01422119140625, 0.0401611328125, -0.045806884765625, -0.01030731201171875, -0.0179443359375, -0.029541015625, 0.0221099853515625, -0.0183258056640625, 0.01117706298828125, -0.023834228515625, -0.034820556640625, 0.0400390625, -0.02655029296875, -0.007755279541015625, 0.0172882080078125, 0.07177734375, 0.0141754150390625, -0.01238250732421875, -0.0185699462890625, -0.0018968582153320312, 0.05694580078125, 0.064697265625, -0.0005154609680175781, 0.0136566162109375, -0.03594970703125, 0.0265960693359375, 0.0667724609375, 0.0193328857421875, -0.0036411285400390625, 0.06500244140625, 0.01146697998046875, -0.023193359375, 0.0310211181640625, 0.0165863037109375, -0.050872802734375, 0.0309295654296875, -0.01522064208984375, 0.003421783447265625, 0.042510986328125, 0.0010786056518554688, -0.051910400390625, 0.038726806640625, 0.0010061264038085938, -0.0345458984375, 0.0218505859375, -0.003353118896484375, 0.0352783203125, 0.038665771484375, -0.0189361572265625, 0.02215576171875, -0.0158233642578125, -0.004055023193359375, 0.0289459228515625, 0.00341033935546875, -0.006595611572265625, 0.00179290771484375, 0.040802001953125, -0.00397491455078125, 0.0006232261657714844, -0.0104217529296875, 0.052215576171875, 0.03790283203125, 0.016448974609375, -0.0335693359375, -0.008270263671875, -0.01195526123046875, -0.039520263671875, -0.036651611328125, 0.05047607421875, 0.05279541015625, -0.0191650390625, 0.004913330078125, -0.0272979736328125, 0.0095367431640625, -0.048004150390625, 0.007686614990234375, 0.00905609130859375, -0.0020847320556640625, -0.0033245086669921875, 0.0743408203125, -0.0195159912109375, 0.041412353515625, 0.0015697479248046875, -0.0211334228515625, -0.0054931640625, 0.056060791015625, 0.039825439453125, -0.047271728515625, -0.014678955078125, 0.035369873046875, 0.001506805419921875, -0.042388916015625, -0.0105743408203125, 0.0100555419921875, 0.037506103515625, -0.004405975341796875, -0.0164794921875, 0.0299835205078125, 0.0033016204833984375, 0.004566192626953125, 0.0238800048828125, -0.002803802490234375, -0.020904541015625, -0.025054931640625, 0.01216888427734375, 0.0516357421875, 0.0041961669921875, 0.00447845458984375, 0.0139007568359375, 0.000743865966796875, 0.0169525146484375, -0.0023193359375, -0.00859832763671875, -0.018402099609375, -0.0174560546875, 0.033721923828125, -0.005893707275390625, -0.0206298828125, -0.026641845703125, -0.0125579833984375, -0.02789306640625, -0.0030422210693359375, 0.061676025390625, -0.0137176513671875, 0.0023593902587890625, -0.026153564453125, 0.0117950439453125, -0.03485107421875, -0.00040411949157714844, 0.03955078125, -0.0006284713745117188, -0.08447265625, 0.0098876953125, -0.046478271484375, 0.004695892333984375, -0.04901123046875, -0.041107177734375, -0.039398193359375, -0.0034580230712890625, 0.0175018310546875, 0.032379150390625, -0.00893402099609375, -0.044189453125, -0.00873565673828125, -0.0165557861328125, 0.005031585693359375, 0.01526641845703125, -0.0037631988525390625, 0.047882080078125, 0.01161956787109375, 0.03887939453125, 0.01898193359375, 0.01751708984375, -0.01505279541015625, -0.0169830322265625, 0.0008654594421386719, -0.01207733154296875, 0.00510406494140625, -0.024749755859375, 0.0151214599609375, -0.01190948486328125, 0.0452880859375, -0.00937652587890625, 0.0017652511596679688, -0.03594970703125, -0.012939453125, -0.0125732421875, 0.080078125, -0.02117919921875, 0.00011360645294189453, 0.0002772808074951172, -0.0252532958984375, 0.004528045654296875, -0.0023345947265625, -0.0101165771484375, 0.0340576171875, -0.0221099853515625, 0.0239105224609375, 0.01812744140625, -0.0158233642578125, 0.0665283203125, 0.0223541259765625, -0.036529541015625, 0.022216796875, 0.007770538330078125, -0.006168365478515625, -0.0023479461669921875, 0.027740478515625, 0.01065826416015625, -0.08197021484375, 0.0748291015625, 0.0190887451171875, -0.02655029296875, 0.06219482421875, -0.036895751953125, 0.0154876708984375, 0.0269012451171875, 0.083251953125, -0.053436279296875, 0.01045989990234375, 0.038604736328125, -0.0165557861328125, -0.0131378173828125, -0.0275726318359375, -0.0098724365234375, -0.03106689453125, 0.07342529296875, 0.0026836395263671875, -0.0018186569213867188, 0.0278778076171875, -0.016998291015625, -0.0258941650390625, -0.0016040802001953125, 0.0294342041015625, 0.0175018310546875, -0.038482666015625, 0.0188446044921875, 0.017608642578125, 0.0072479248046875, -0.02923583984375, 0.014068603515625, 0.01467132568359375, -0.035614013671875, -0.061248779296875, -0.0053558349609375, 0.02728271484375, -0.0213623046875, -0.03173828125, -0.0209197998046875, 0.0247650146484375, 0.026580810546875, -0.0035152435302734375, -0.03070068359375, 0.0042724609375, -0.0034008026123046875, 0.053466796875, -0.050811767578125, 0.0355224609375, 0.0655517578125, -0.08837890625, 0.025360107421875, 0.034027099609375, -0.020416259765625, -0.00212860107421875, 0.021270751953125, 0.058624267578125, 0.01207733154296875, -0.035980224609375, 0.0562744140625, 0.0164794921875, -0.045196533203125, -0.029571533203125, 0.058837890625, -0.037353515625, 0.0273284912109375, 0.00421905517578125, 0.02471923828125, -0.0187225341796875, -0.028411865234375, -0.06390380859375, 0.11578369140625, -0.04010009765625, 0.0406494140625, 0.04571533203125, 0.0262451171875, -0.031280517578125, -0.0005393028259277344, -0.034698486328125, 0.043182373046875, -0.04119873046875, 0.051055908203125, -0.042205810546875, 0.024017333984375, -0.005893707275390625, -0.00762939453125, 0.07568359375, 0.017425537109375, -0.0079803466796875, -0.006435394287109375, 0.0660400390625, 0.03570556640625, -0.016937255859375, 0.01073455810546875, 0.0330810546875, -0.005008697509765625, 0.036895751953125, 0.0157928466796875, 0.032928466796875, -0.027679443359375, 0.0065765380859375, 0.05218505859375, -0.0158538818359375, -0.043212890625, -0.0108489990234375, 0.00960540771484375, -0.024810791015625, -0.0121307373046875, -0.00789642333984375, -0.0019102096557617188, -0.0135498046875, 0.01543426513671875, -0.0208587646484375, -0.0204925537109375, 0.048614501953125, -0.0275115966796875, 0.03497314453125, -0.031707763671875, -0.0175628662109375, 0.0146942138671875, 0.01593017578125, 0.054290771484375, -0.049835205078125, -0.0211639404296875, -0.0093994140625, 0.010589599609375, 0.037109375, -0.0221099853515625, 0.0007500648498535156, -0.09063720703125, -0.0175933837890625, 0.03802490234375, 0.053131103515625, -0.027191162109375, -0.0214385986328125, -0.0007624626159667969, 0.0013523101806640625, 0.008697509765625, -0.031829833984375, -0.0015287399291992188, -0.000576019287109375, 0.00396728515625, -0.035491943359375, -0.0165557861328125, 0.0247802734375, 0.015625, -0.0082855224609375, -0.02703857421875, 0.00728607177734375, -0.024871826171875, -0.00943756103515625, 0.041168212890625, 0.0093994140625, -0.00952911376953125, -0.0462646484375, 0.028839111328125, -0.0284881591796875, 0.027618408203125, -0.01282501220703125, 0.00913238525390625, -0.0009293556213378906, -0.00708770751953125, 0.008392333984375, 0.002681732177734375, -0.004016876220703125, 0.01885986328125, 0.010223388671875, 0.00681304931640625, 0.04620361328125, 0.02459716796875, -0.039276123046875, -0.015167236328125, -0.0071258544921875, -0.0310821533203125, -0.01123046875, -0.003063201904296875, -0.00551605224609375, 0.00708770751953125, 0.0017843246459960938, -0.022247314453125, 0.06231689453125, 0.0095367431640625, -0.01360321044921875, 0.0226593017578125, -0.0033550262451171875, -0.0224609375, 0.0258331298828125, -0.004657745361328125, 0.0615234375, 0.020172119140625, -0.0875244140625, -0.03515625, -0.017974853515625, 0.0254058837890625, 0.0133209228515625, 0.0362548828125, 0.0147705078125, 0.01267242431640625, 0.021484375, 0.0014162063598632812, 0.04913330078125, -0.00896453857421875, -0.022186279296875, -0.02313232421875, 0.04168701171875, -0.0225372314453125, -0.04425048828125, -0.045562744140625, -0.031219482421875, 0.06689453125, 0.02374267578125, 0.0975341796875, -0.043701171875, 0.025848388671875, -0.0046539306640625, 0.0297393798828125, -0.04156494140625, -0.0240325927734375, 0.045654296875, -0.0206146240234375, -0.021514892578125, -0.004856109619140625, -0.05316162109375, 0.0132598876953125, 0.040802001953125, -0.0163421630859375, 0.01514434814453125, -0.00913238525390625, 0.01959228515625, -0.004764556884765625, 0.04925537109375, -0.00901031494140625, -0.041748046875, -0.030181884765625, 0.01316070556640625, 0.035003662109375, 0.07464599609375, -0.01629638671875, -0.0275115966796875, -0.01177978515625, -0.057647705078125, -0.005947113037109375, -0.0018100738525390625, -0.0309295654296875, 0.0130615234375, 0.0232086181640625, -0.06085205078125, -0.0258941650390625, -0.0204315185546875, -0.0049896240234375, -0.004390716552734375, 0.061370849609375, -0.0257720947265625, -0.004428863525390625, 0.003017425537109375, 0.0124359130859375, 0.01013946533203125, -0.01374053955078125, -0.006847381591796875, 0.01849365234375, -0.0151214599609375, -0.0032501220703125, -0.058319091796875, -0.029937744140625, -0.055999755859375, 0.0017480850219726562, 0.0154876708984375, -0.0231475830078125, -0.04150390625, -0.002410888671875, 0.0287322998046875, 0.0142822265625, -0.01535797119140625, -0.023193359375, 0.00556182861328125, -0.03973388671875, 0.036834716796875, -0.0172271728515625, 0.039703369140625, 0.0100555419921875, 0.0745849609375, -0.05328369140625, -0.0665283203125, -0.006168365478515625, 0.04937744140625, -0.049530029296875, 0.037689208984375, 0.052154541015625, -0.029144287109375, -0.0193939208984375, 0.039581298828125, 0.01348114013671875, 0.085693359375, -0.0338134765625, -0.01551055908203125, 0.01027679443359375, 0.0022068023681640625, -0.00978851318359375, -0.0565185546875, -0.0010547637939453125, -0.050750732421875, -0.00044226646423339844, -0.03936767578125, 0.0106353759765625, 0.004512786865234375, -0.06524658203125, -0.115966796875, 0.00666046142578125, -0.0224151611328125, -0.0509033203125, -0.08074951171875, 0.0119171142578125, 0.0001811981201171875, 0.006855010986328125, -0.0360107421875, -0.033966064453125, -0.031341552734375, 0.053009033203125, 0.006587982177734375, 0.0272216796875, 0.025787353515625, -0.0131683349609375, -0.03851318359375, 0.005645751953125, -0.0041656494140625, 0.01702880859375, -0.0248565673828125, -0.017578125, 0.0439453125, 0.049957275390625, 0.01119232177734375, -0.01617431640625, 0.05352783203125, -0.055908203125, 0.0027027130126953125, -0.039947509765625, -0.01206207275390625, 0.004695892333984375, 0.08599853515625, 0.015777587890625, 0.032806396484375, -0.040771484375, -0.01522064208984375, 0.0008215904235839844, -0.0212554931640625, 0.00893402099609375, 0.01256561279296875, -0.033050537109375, 0.01497650146484375, -0.01213836669921875, 0.0037250518798828125, -0.00778961181640625, -0.011199951171875, -0.0211181640625, -0.01190948486328125, -0.0177764892578125, -0.0140838623046875, 0.011566162109375, -0.04620361328125, 0.0633544921875, -0.00997161865234375, 0.03955078125, 0.01531219482421875, 0.0306854248046875, 0.050079345703125, 0.0958251953125, 0.0309906005859375, 0.020263671875, -0.048553466796875, -0.026885986328125, 0.0229339599609375, 0.04132080078125, 0.0052642822265625, -0.04534912109375, 0.00330352783203125, 0.005153656005859375, -0.03460693359375, 0.00325775146484375, 0.0234375, 0.049285888671875, -0.00771331787109375, 0.055694580078125, -0.007488250732421875, -0.026214599609375, -0.030059814453125, 0.035552978515625, 0.0037708282470703125, -0.00640869140625, 0.0195159912109375, -0.015869140625, 0.01236724853515625, 0.047454833984375, 0.049652099609375, -0.01953125, 0.04229736328125, 0.00006103515625, 0.04534912109375, 0.01320648193359375 ]
cafdea1db4cc38afff5eecf8635c5290890214a1
Wordpress Stackexchange Q: Moving WP install from local to live, what about wp_posts GUID? Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost But at wordpress.org documentation it clearly states: Never, ever, change the contents of the GUID column, under any circumstances. But as i understand it is just to unique identify your posts globally. But as more people would have http://localhost in their guid. So can i safely replace http://localhost with http://example.com ? regards A: "GUID" stands for "Globally Unique Identifier" mainly used by feeds to tell if that specific post was shown on the feed before or not, even if you change domains. When developing on local host and the moving to live (+1 just for that BTW) and no feed reader/burner has read your feeds and only if that is the case it's OK to change it and start fresh on your new live host.
Q: Moving WP install from local to live, what about wp_posts GUID? Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost But at wordpress.org documentation it clearly states: Never, ever, change the contents of the GUID column, under any circumstances. But as i understand it is just to unique identify your posts globally. But as more people would have http://localhost in their guid. So can i safely replace http://localhost with http://example.com ? regards A: "GUID" stands for "Globally Unique Identifier" mainly used by feeds to tell if that specific post was shown on the feed before or not, even if you change domains. When developing on local host and the moving to live (+1 just for that BTW) and no feed reader/burner has read your feeds and only if that is the case it's OK to change it and start fresh on your new live host.
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:417709", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44396" }
[ 0.0222625732421875, 0.01226043701171875, -0.0196533203125, 0.0224609375, 0.0214691162109375, -0.038787841796875, 0.09375, -0.0302734375, 0.0001226663589477539, 0.038787841796875, 0.01629638671875, 0.017730712890625, -0.00858306884765625, -0.020355224609375, -0.01496124267578125, 0.002635955810546875, 0.032440185546875, -0.006870269775390625, 0.01424407958984375, 0.0053863525390625, -0.0291748046875, 0.036224365234375, 0.006687164306640625, -0.0203399658203125, 0.02081298828125, -0.040924072265625, 0.0277252197265625, -0.007282257080078125, 0.026031494140625, 0.0027313232421875, 0.0246124267578125, -0.00888824462890625, -0.004665374755859375, 0.02197265625, -0.0058746337890625, -0.028228759765625, 0.0109100341796875, 0.015869140625, 0.005916595458984375, 0.0306396484375, 0.0009226799011230469, -0.0174407958984375, 0.021148681640625, -0.030426025390625, -0.01995849609375, 0.0283966064453125, -0.028350830078125, -0.0276031494140625, 0.02081298828125, 0.00960540771484375, 0.006092071533203125, 0.0055694580078125, 0.01580810546875, 0.00597381591796875, -0.0158538818359375, -0.0216064453125, -0.0016231536865234375, -0.0163421630859375, 0.046173095703125, 0.004589080810546875, -0.02972412109375, -0.037841796875, 0.023529052734375, -0.03216552734375, -0.004947662353515625, -0.00821685791015625, 0.0748291015625, 0.0203399658203125, -0.0758056640625, -0.01067352294921875, 0.05780029296875, -0.0093536376953125, -0.0170440673828125, -0.050628662109375, 0.01629638671875, 0.004734039306640625, -0.0251007080078125, -0.049224853515625, -0.004680633544921875, 0.0295562744140625, 0.01337432861328125, -0.01430511474609375, 0.00949859619140625, -0.04864501953125, 0.028411865234375, -0.01947021484375, -0.002132415771484375, -0.009979248046875, -0.039276123046875, -0.01116943359375, -0.0254058837890625, -0.0321044921875, -0.01384735107421875, -0.00643157958984375, -0.028656005859375, -0.0030765533447265625, -0.036407470703125, 0.03228759765625, -0.048858642578125, 0.0270538330078125, -0.03759765625, 0.005321502685546875, 0.0123748779296875, -0.043853759765625, -0.0077972412109375, 0.044677734375, 0.0038089752197265625, 0.04608154296875, 0.030517578125, 0.0171966552734375, 0.0009112358093261719, -0.0216522216796875, -0.042572021484375, -0.040771484375, -0.03863525390625, 0.08538818359375, -0.02703857421875, -0.0200958251953125, 0.0029544830322265625, -0.002777099609375, 0.00627899169921875, 0.04315185546875, -0.038330078125, 0.0213623046875, 0.0311737060546875, 0.04241943359375, 0.0201873779296875, -0.01971435546875, -0.0283966064453125, 0.051788330078125, -0.0263824462890625, -0.01111602783203125, 0.0660400390625, 0.0283050537109375, -0.0014657974243164062, -0.037994384765625, 0.0379638671875, 0.00222015380859375, -0.0200958251953125, 0.036529541015625, -0.0323486328125, -0.04681396484375, -0.004489898681640625, -0.03900146484375, -0.00797271728515625, 0.021697998046875, 0.040924072265625, -0.0004742145538330078, -0.053375244140625, -0.030303955078125, -0.00714111328125, -0.01097869873046875, 0.0194854736328125, -0.0088348388671875, 0.012451171875, -0.0293121337890625, -0.02130126953125, -0.01922607421875, 0.0213775634765625, -0.00916290283203125, 0.028961181640625, 0.005245208740234375, 0.03857421875, -0.03485107421875, -0.039306640625, -0.01100921630859375, -0.06549072265625, -0.01184844970703125, 0.00440216064453125, 0.004085540771484375, -0.01488494873046875, -0.0236053466796875, 0.016632080078125, -0.047576904296875, -0.0289764404296875, -0.00424957275390625, 0.0135498046875, 0.0242919921875, 0.01334381103515625, 0.031707763671875, 0.005420684814453125, -0.024383544921875, 0.054290771484375, -0.01751708984375, -0.062408447265625, 0.07159423828125, 0.001445770263671875, 0.1033935546875, 0.01251220703125, 0.006137847900390625, 0.008087158203125, -0.00675201416015625, -0.032989501953125, 0.0094451904296875, -0.03131103515625, 0.0101470947265625, 0.004436492919921875, 0.04107666015625, -0.005214691162109375, -0.026824951171875, 0.035614013671875, 0.0223388671875, 0.00228118896484375, -0.01313018798828125, -0.04241943359375, 0.020111083984375, -0.0102691650390625, 0.030364990234375, 0.035614013671875, 0.0206146240234375, -0.0191192626953125, 0.0154571533203125, 0.01035308837890625, -0.06317138671875, -0.045928955078125, 0.0150909423828125, -0.039154052734375, -0.014312744140625, -0.02728271484375, 0.032135009765625, -0.056732177734375, -0.0181732177734375, -0.0699462890625, -0.03216552734375, 0.04571533203125, -0.007480621337890625, -0.00890350341796875, -0.004276275634765625, 0.057464599609375, 0.001556396484375, 0.01119232177734375, 0.0168304443359375, -0.0262603759765625, -0.0137481689453125, -0.0036334991455078125, 0.0184783935546875, 0.0034999847412109375, -0.08123779296875, 0.01247406005859375, 0.056854248046875, 0.025848388671875, -0.032379150390625, -0.0025081634521484375, 0.027313232421875, -0.005279541015625, -0.01064300537109375, 0.0272369384765625, 0.0087890625, -0.0004489421844482422, 0.05218505859375, -0.032989501953125, 0.0198974609375, 0.0142669677734375, -0.08758544921875, -0.0010862350463867188, 0.068359375, -0.0203094482421875, 0.0154571533203125, 0.005603790283203125, 0.006618499755859375, -0.0287322998046875, -0.0205078125, 0.0260009765625, -0.0272369384765625, 0.0084686279296875, 0.00969696044921875, 0.0170135498046875, 0.0280609130859375, -0.0421142578125, 0.005146026611328125, 0.0430908203125, 0.041748046875, -0.01143646240234375, 0.037109375, 0.06298828125, 0.035400390625, -0.04498291015625, -0.0179290771484375, 0.015625, 0.0438232421875, -0.035797119140625, 0.0124053955078125, -0.045684814453125, -0.00693511962890625, 0.00014591217041015625, -0.054443359375, -0.01543426513671875, -0.0222015380859375, 0.01422882080078125, -0.0113067626953125, 0.00279998779296875, 0.015472412109375, -0.0308837890625, 0.04669189453125, 0.0198516845703125, -0.0264892578125, 0.031982421875, -0.012725830078125, -0.0004553794860839844, 0.0020809173583984375, 0.03424072265625, 0.04791259765625, 0.0433349609375, -0.026519775390625, -0.024810791015625, 0.0421142578125, 0.031524658203125, -0.036590576171875, -0.032257080078125, -0.0029277801513671875, -0.0435791015625, -0.015350341796875, 0.01323699951171875, 0.0028133392333984375, -0.01149749755859375, -0.0408935546875, -0.03363037109375, 0.00731658935546875, -0.111083984375, -0.04315185546875, -0.04656982421875, 0.00438690185546875, 0.0057830810546875, 0.01128387451171875, 0.0175933837890625, -0.0023651123046875, -0.0070953369140625, 0.01364898681640625, -0.023468017578125, 0.016845703125, -0.060516357421875, -0.0421142578125, -0.06854248046875, -0.01084136962890625, -0.0199737548828125, 0.03857421875, 0.01140594482421875, 0.026763916015625, 0.015899658203125, 0.0246124267578125, 0.0277862548828125, 0.06396484375, -0.0110015869140625, -0.045684814453125, -0.01190948486328125, -0.0179595947265625, 0.03778076171875, -0.0034084320068359375, -0.005672454833984375, -0.0082855224609375, 0.02154541015625, -0.032989501953125, 0.0147247314453125, 0.01280975341796875, 0.01294708251953125, -0.0296783447265625, -0.010772705078125, -0.0032444000244140625, -0.0316162109375, -0.06463623046875, -0.0211181640625, -0.01067352294921875, -0.032135009765625, 0.044708251953125, -0.0099639892578125, -0.004894256591796875, 0.01629638671875, 0.030426025390625, -0.0186004638671875, -0.0211944580078125, 0.0301513671875, -0.045684814453125, 0.0479736328125, -0.00732421875, -0.0283050537109375, -0.0254058837890625, 0.035125732421875, -0.00983428955078125, 0.001552581787109375, 0.01375579833984375, 0.0153350830078125, 0.0007748603820800781, -0.0252532958984375, -0.053802490234375, -0.0029087066650390625, 0.01776123046875, -0.0220184326171875, 0.030731201171875, -0.029571533203125, -0.01727294921875, -0.03033447265625, 0.042724609375, -0.047119140625, -0.012908935546875, 0.005828857421875, 0.0030269622802734375, 0.0088653564453125, -0.0266571044921875, -0.0251312255859375, -0.0196685791015625, -0.01222991943359375, -0.01483917236328125, -0.0279998779296875, 0.004993438720703125, -0.00673675537109375, 0.0565185546875, 0.0286102294921875, -0.0270538330078125, 0.01763916015625, 0.007007598876953125, 0.06341552734375, -0.0309295654296875, 0.031707763671875, -0.0041961669921875, 0.00530242919921875, -0.0369873046875, -0.05914306640625, -0.01120758056640625, -0.023406982421875, 0.05328369140625, 0.034515380859375, -0.043212890625, 0.005573272705078125, 0.038360595703125, -0.02642822265625, 0.011138916015625, -0.0033245086669921875, 0.0260162353515625, -0.0013589859008789062, 0.0265960693359375, 0.006580352783203125, 0.0022830963134765625, -0.0309906005859375, -0.0418701171875, -0.06854248046875, -0.0318603515625, 0.0208587646484375, 0.04302978515625, 0.0369873046875, -0.0147857666015625, -0.027313232421875, -0.04144287109375, -0.035003662109375, 0.031402587890625, -0.0205230712890625, 0.0059356689453125, -0.05780029296875, -0.043792724609375, 0.05902099609375, 0.004180908203125, 0.007472991943359375, -0.004100799560546875, 0.045379638671875, 0.009552001953125, -0.0265045166015625, -0.015167236328125, -0.0016412734985351562, 0.042999267578125, 0.03375244140625, 0.010986328125, 0.005084991455078125, -0.017669677734375, 0.044891357421875, 0.0215301513671875, -0.02142333984375, 0.005535125732421875, -0.0022907257080078125, 0.0059661865234375, -0.013641357421875, 0.007061004638671875, -0.003925323486328125, 0.04248046875, 0.035369873046875, -0.00113677978515625, -0.03668212890625, 0.0190887451171875, 0.04962158203125, -0.0323486328125, 0.00833892822265625, -0.05364990234375, -0.04931640625, 0.039520263671875, -0.050628662109375, -0.04150390625, -0.0380859375, 0.01483154296875, -0.03924560546875, -0.03387451171875, 0.0015583038330078125, 0.02001953125, -0.004383087158203125, 0.0271148681640625, 0.01371002197265625, 0.046478271484375, 0.0155792236328125, -0.0177764892578125, -0.026214599609375, 0.07757568359375, -0.034759521484375, -0.0582275390625, 0.00908660888671875, -0.0155487060546875, 0.015625, 0.05438232421875, -0.01216888427734375, 0.0011053085327148438, 0.022552490234375, -0.0072021484375, -0.007701873779296875, 0.037628173828125, -0.039154052734375, -0.032745361328125, -0.01763916015625, 0.016876220703125, -0.030853271484375, 0.032958984375, -0.018524169921875, 0.004436492919921875, -0.00685882568359375, -0.0185546875, 0.06884765625, 0.052978515625, 0.0264892578125, -0.0030536651611328125, 0.00255584716796875, 0.005794525146484375, -0.007808685302734375, -0.0128631591796875, -0.035736083984375, -0.021453857421875, 0.04180908203125, 0.043609619140625, -0.044281005859375, -0.03460693359375, 0.036102294921875, -0.0057373046875, -0.0263671875, 0.059051513671875, -0.0092315673828125, -0.068359375, -0.0328369140625, -0.0166778564453125, 0.0249481201171875, -0.033294677734375, 0.0207061767578125, -0.054290771484375, -0.0232696533203125, -0.033294677734375, -0.0035552978515625, -0.01543426513671875, -0.0243377685546875, -0.021820068359375, -0.046234130859375, -0.0550537109375, -0.0002391338348388672, 0.05657958984375, 0.0438232421875, -0.0282440185546875, -0.0509033203125, 0.0260162353515625, 0.0260772705078125, 0.061248779296875, -0.0275421142578125, -0.054168701171875, -0.0221710205078125, -0.005558013916015625, 0.0361328125, -0.001407623291015625, -0.042724609375, -0.019561767578125, -0.036102294921875, 0.01544952392578125, 0.0343017578125, -0.0196380615234375, -0.01143646240234375, 0.0004987716674804688, 0.041717529296875, 0.020904541015625, 0.0293731689453125, 0.0060272216796875, -0.020477294921875, -0.0154571533203125, 0.004085540771484375, 0.0196533203125, -0.02276611328125, 0.0101776123046875, 0.006038665771484375, 0.0247650146484375, -0.008453369140625, -0.007022857666015625, 0.0008292198181152344, -0.0187225341796875, 0.034637451171875, -0.01055908203125, -0.03643798828125, -0.03326416015625, -0.034271240234375, -0.0244903564453125, 0.04071044921875, -0.024017333984375, 0.04864501953125, -0.029693603515625, 0.00800323486328125, -0.01227569580078125, -0.037750244140625, -0.07757568359375, 0.0116729736328125, 0.004650115966796875, -0.0094146728515625, 0.0296478271484375, 0.00389862060546875, 0.015289306640625, -0.031585693359375, -0.0033206939697265625, -0.033111572265625, 0.026763916015625, -0.035064697265625, 0.00974273681640625, 0.058074951171875, 0.033111572265625, 0.048492431640625, 0.007045745849609375, 0.0170745849609375, 0.00991058349609375, 0.01557159423828125, -0.01409912109375, -0.038543701171875, 0.00955963134765625, 0.01427459716796875, 0.0037689208984375, 0.026458740234375, -0.0125579833984375, 0.01213836669921875, 0.05108642578125, 0.0406494140625, -0.0711669921875, 0.0022106170654296875, 0.005054473876953125, -0.020233154296875, 0.010955810546875, 0.00818634033203125, -0.00978851318359375, 0.005535125732421875, 0.0130767822265625, -0.01020050048828125, -0.007415771484375, 0.006923675537109375, 0.00855255126953125, -0.0045166015625, 0.00005072355270385742, 0.035614013671875, -0.01232147216796875, -0.003269195556640625, -0.053131103515625, -0.004116058349609375, -0.0294952392578125, -0.0269775390625, -0.0165863037109375, 0.040374755859375, -0.061065673828125, -0.10968017578125, -0.02001953125, -0.0209503173828125, -0.028167724609375, -0.0025920867919921875, 0.002010345458984375, 0.0772705078125, 0.0220794677734375, 0.0160980224609375, -0.0034275054931640625, -0.035919189453125, 0.057159423828125, -0.052825927734375, -0.042449951171875, 0.0274505615234375, 0.045196533203125, -0.062347412109375, 0.041900634765625, -0.00855255126953125, -0.0299072265625, 0.0201416015625, 0.01541900634765625, 0.004764556884765625, -0.04937744140625, 0.0077972412109375, 0.0301361083984375, 0.0166473388671875, 0.004032135009765625, 0.018524169921875, 0.0170135498046875, -0.06024169921875, -0.04296875, 0.01114654541015625, -0.05682373046875, -0.0136566162109375, -0.0016345977783203125, -0.050811767578125, 0.092041015625, 0.016876220703125, 0.01105499267578125, 0.00548553466796875, 0.039794921875, -0.05438232421875, 0.00678253173828125, -0.032806396484375, 0.08197021484375, -0.034881591796875, 0.0227203369140625, -0.04486083984375, 0.0148162841796875, 0.0095367431640625, -0.019775390625, 0.086181640625, 0.03851318359375, -0.07000732421875, -0.0217742919921875, -0.0018024444580078125, 0.01448822021484375, -0.02996826171875, 0.0655517578125, -0.026397705078125, 0.04095458984375, -0.023895263671875, -0.064697265625, 0.0015354156494140625, -0.0150909423828125, -0.037994384765625, 0.01369476318359375, 0.0213165283203125, 0.016845703125, -0.0102386474609375, 0.00662994384765625, -0.02032470703125, -0.01128387451171875, 0.0178375244140625, 0.006900787353515625, 0.0026035308837890625, 0.01059722900390625, -0.0028820037841796875, -0.035491943359375, 0.00800323486328125, -0.032806396484375, 0.03533935546875, -0.017425537109375, 0.018402099609375, 0.044586181640625, 0.0257110595703125, 0.02850341796875, 0.0238189697265625, 0.00933074951171875, 0.0201568603515625, 0.0001647472381591797, 0.06549072265625, 0.06256103515625, 0.05499267578125, 0.0200958251953125, -0.006961822509765625, 0.0174102783203125, 0.06170654296875, -0.03985595703125, -0.01751708984375, 0.010040283203125, -0.021026611328125, 0.0109100341796875, -0.04498291015625, 0.008575439453125, -0.01934814453125, -0.0272369384765625, 0.0157318115234375, 0.011749267578125, 0.0172882080078125, 0.00034546852111816406, 0.0211639404296875, 0.055816650390625, -0.054473876953125, 0.006862640380859375, 0.0016107559204101562, -0.0144805908203125, 0.0216827392578125, 0.0081634521484375, 0.0116119384765625, -0.0095062255859375, 0.01151275634765625, 0.009735107421875, -0.020843505859375, 0.03326416015625, 0.0275726318359375, 0.021484375, -0.06866455078125, -0.053680419921875, 0.08697509765625, 0.05224609375, -0.0012922286987304688, -0.014892578125, 0.0556640625, 0.06439208984375, -0.050750732421875, -0.0231781005859375, 0.02996826171875, -0.0087738037109375, -0.00984954833984375, -0.015350341796875, 0.007297515869140625, 0.0152130126953125, 0.004486083984375, -0.00797271728515625, 0.05938720703125, -0.00044465065002441406, -0.00823974609375, 0.045379638671875, -0.0017595291137695312, -0.0294952392578125, 0.0031604766845703125, -0.010589599609375, 0.07110595703125, 0.025665283203125, -0.00794219970703125, -0.004039764404296875, -0.00801849365234375, -0.016357421875, -0.00870513916015625, 0.022369384765625, 0.00640869140625, 0.01131439208984375, -0.03875732421875, 0.0194854736328125, 0.0032634735107421875, -0.0036563873291015625, -0.00940704345703125, 0.06475830078125, 0.04034423828125, 0.025909423828125, -0.032745361328125, 0.0035495758056640625, -0.0141754150390625, 0.016693115234375, -0.02386474609375, 0.082275390625, -0.0179595947265625, 0.0023365020751953125, -0.007781982421875, 0.0171356201171875, -0.027740478515625, -0.0200042724609375, 0.02667236328125, 0.00733184814453125, 0.0305328369140625, -0.00495147705078125, -0.0206298828125, -0.00220489501953125, 0.018768310546875, -0.0120849609375, 0.011749267578125, -0.0755615234375, 0.038818359375, 0.0167236328125, 0.0513916015625, -0.022613525390625, -0.029541015625, -0.0151214599609375, 0.01322174072265625, 0.0164031982421875, 0.027435302734375, -0.0163726806640625, 0.06451416015625, 0.0181732177734375, 0.01364898681640625, 0.0160369873046875, -0.049591064453125, -0.004917144775390625, 0.021087646484375, 0.01506805419921875, -0.04962158203125, 0.056884765625, -0.005748748779296875, 0.01132965087890625, 0.02215576171875, 0.0899658203125, 0.03167724609375, 0.0191802978515625, -0.04180908203125, 0.0245819091796875, 0.00405120849609375, -0.0059051513671875, -0.005519866943359375, 0.01479339599609375, -0.037750244140625, -0.024200439453125, 0.000362396240234375, 0.0048370361328125, -0.036865234375, -0.00875091552734375, 0.025360107421875, -0.03411865234375, 0.0178985595703125, -0.03851318359375, -0.03961181640625, 0.037567138671875, 0.011383056640625, -0.04901123046875, 0.01483917236328125, -0.002178192138671875, 0.034698486328125, -0.0131683349609375, -0.004711151123046875, -0.05474853515625, -0.0191497802734375, -0.024169921875, -0.052276611328125, -0.0654296875, 0.048858642578125, -0.04217529296875, 0.004383087158203125, -0.0171051025390625, -0.00815582275390625, -0.01910400390625, 0.0119781494140625, 0.003948211669921875, 0.048858642578125, 0.06585693359375, -0.0289154052734375, 0.055908203125, -0.02972412109375, -0.00487518310546875, -0.04852294921875, -0.01146697998046875, -0.0963134765625, 0.006542205810546875, -0.0188751220703125, 0.0237884521484375, 0.0400390625, -0.01535797119140625, -0.055206298828125, 0.0423583984375, -0.008087158203125, -0.023895263671875, 0.01517486572265625, -0.00592803955078125, -0.00543212890625, 0.006603240966796875, 0.0188446044921875, -0.038482666015625, -0.032684326171875, -0.0254974365234375, 0.00565338134765625, 0.04876708984375, 0.0400390625, 0.0010862350463867188, -0.0003612041473388672, 0.01296234130859375, 0.00403594970703125, 0.0232696533203125, 0.0196685791015625, -0.0202484130859375, 0.048065185546875, 0.0732421875, -0.0203704833984375, 0.057373046875, -0.0036773681640625, -0.033935546875, 0.00235748291015625, 0.0194091796875, -0.0186614990234375, -0.021636962890625, 0.031768798828125, 0.0367431640625, 0.01203155517578125, 0.0021533966064453125, -0.0018129348754882812, -0.034423828125, -0.0087890625, 0.0035152435302734375, 0.00716400146484375, -0.0487060546875, 0.004741668701171875, 0.01751708984375, -0.00574493408203125, 0.0197296142578125, -0.0206298828125, -0.0198974609375, 0.006946563720703125, -0.01495361328125, -0.0283660888671875, -0.0235595703125, -0.0225372314453125, 0.07745361328125, -0.0291595458984375, 0.0105438232421875, 0.009674072265625, 0.0210418701171875, 0.0443115234375, 0.038116455078125, -0.003795623779296875, -0.0195770263671875, -0.0153961181640625, 0.00879669189453125, -0.00817108154296875, 0.0623779296875, -0.037078857421875, -0.01971435546875, -0.01116943359375, 0.006103515625, -0.003330230712890625, 0.01345062255859375, 0.01401519775390625, 0.0110321044921875, 0.0002472400665283203, 0.061614990234375, 0.0176544189453125, -0.0056304931640625, -0.005825042724609375, 0.0308990478515625, -0.03167724609375, -0.02154541015625, -0.037139892578125, -0.04571533203125, 0.0081634521484375, -0.005535125732421875, -0.0217132568359375, -0.0269317626953125, -0.039398193359375, -0.0171966552734375, 0.0014772415161132812, -0.0007963180541992188 ]
fec0b377d0d15a8e7d92fad7d44ffec341aefd77
Wordpress Stackexchange Q: When I change slug, will WordPress create redirect from the old URL? When I change a slug from post-a to post-b, will WordPress create a redirect from /post-a to /post-b, like HTTP 301 or something similar? If not, is there a plugin for that? A: This plugin can be used to monitor URL changes like that and set up redirection automatically: http://wordpress.org/extend/plugins/redirection/
Q: When I change slug, will WordPress create redirect from the old URL? When I change a slug from post-a to post-b, will WordPress create a redirect from /post-a to /post-b, like HTTP 301 or something similar? If not, is there a plugin for that? A: This plugin can be used to monitor URL changes like that and set up redirection automatically: http://wordpress.org/extend/plugins/redirection/ A: I just went and tested this (WP 3.3.1), the wordpress core will automatically do a redirect if you change the post slug, even if you change the slug from post-a to post-b and then to post-c, post-a will return a 301 to post-c. That said, the redirection plugin that Mike Jolley recommended is an outstanding plugin and a great way to monitor for 404 errors and such.
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:417713", "question_score": "19", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44411" }
[ 0.05145263671875, 0.0082855224609375, 0.01413726806640625, 0.0048675537109375, 0.002407073974609375, -0.0261077880859375, 0.05657958984375, -0.050994873046875, -0.0109710693359375, 0.0188140869140625, 0.018585205078125, 0.0278167724609375, -0.01386260986328125, -0.043548583984375, 0.01715087890625, 0.0026950836181640625, 0.0384521484375, -0.05712890625, 0.0080108642578125, -0.0162353515625, 0.03619384765625, 0.01328277587890625, 0.02301025390625, 0.0816650390625, -0.0036869049072265625, 0.0018148422241210938, 0.0494384765625, -0.0262451171875, -0.01230621337890625, -0.0254364013671875, 0.006134033203125, 0.0145416259765625, 0.0032749176025390625, 0.03546142578125, -0.03497314453125, -0.020751953125, 0.017730712890625, 0.0140228271484375, 0.0034027099609375, 0.006435394287109375, 0.021575927734375, -0.022979736328125, 0.01509857177734375, -0.007129669189453125, 0.025177001953125, -0.037872314453125, 0.03997802734375, -0.06622314453125, 0.048797607421875, 0.000023603439331054688, -0.0095062255859375, -0.0018148422241210938, -0.0190277099609375, 0.0010557174682617188, -0.0291748046875, -0.0155792236328125, -0.01806640625, 0.01494598388671875, 0.0140838623046875, -0.02001953125, -0.00753021240234375, 0.0246124267578125, 0.0091552734375, 0.03851318359375, -0.0152740478515625, 0.00460052490234375, -0.054779052734375, 0.005214691162109375, -0.048065185546875, 0.0004248619079589844, 0.03271484375, -0.07012939453125, -0.0218505859375, -0.0028076171875, 0.0084991455078125, -0.029022216796875, 0.0277099609375, -0.006259918212890625, -0.0215301513671875, 0.0552978515625, 0.0144195556640625, -0.0172119140625, 0.044952392578125, -0.04937744140625, 0.0189971923828125, -0.034423828125, -0.007450103759765625, 0.0006275177001953125, -0.04010009765625, -0.06268310546875, -0.0323486328125, -0.0168609619140625, -0.0765380859375, -0.01373291015625, -0.0001800060272216797, -0.03411865234375, 0.023590087890625, 0.0069732666015625, 0.004863739013671875, 0.0168304443359375, -0.01354217529296875, -0.041656494140625, 0.0177459716796875, -0.0166778564453125, 0.0078125, 0.00946807861328125, 0.0384521484375, 0.005977630615234375, 0.0196685791015625, 0.0069580078125, -0.024139404296875, 0.0278472900390625, -0.035247802734375, -0.0008897781372070312, -0.0087127685546875, 0.017822265625, -0.060089111328125, -0.005641937255859375, -0.02392578125, -0.0007333755493164062, 0.005859375, 0.0269775390625, 0.060821533203125, -0.01934814453125, -0.003261566162109375, 0.0018978118896484375, -0.0218963623046875, -0.0753173828125, -0.0059814453125, 0.0209808349609375, -0.031280517578125, 0.018463134765625, 0.06524658203125, 0.021820068359375, -0.004230499267578125, -0.03509521484375, 0.024627685546875, -0.07464599609375, -0.03265380859375, 0.0271759033203125, -0.03118896484375, -0.03570556640625, -0.005687713623046875, -0.0367431640625, 0.052978515625, 0.0287933349609375, 0.0005283355712890625, -0.0008192062377929688, 0.01366424560546875, -0.0245513916015625, 0.0272674560546875, -0.049468994140625, 0.029449462890625, -0.005786895751953125, 0.021942138671875, -0.033355712890625, 0.0011911392211914062, -0.01384735107421875, 0.0173187255859375, -0.006664276123046875, 0.0143585205078125, 0.0003402233123779297, 0.0212554931640625, -0.0333251953125, -0.059783935546875, 0.0054473876953125, -0.0601806640625, -0.0113525390625, 0.0215911865234375, -0.0288848876953125, 0.026763916015625, -0.0146636962890625, -0.006378173828125, 0.0006761550903320312, 0.005817413330078125, 0.022552490234375, 0.0025844573974609375, -0.0175933837890625, 0.0295562744140625, 0.09124755859375, 0.0361328125, 0.005611419677734375, 0.0194549560546875, 0.022369384765625, -0.05078125, 0.0767822265625, -0.003505706787109375, 0.041748046875, 0.0090179443359375, -0.00031065940856933594, -0.002689361572265625, 0.052978515625, -0.03546142578125, 0.054046630859375, -0.02130126953125, -0.031646728515625, 0.0074005126953125, 0.0165557861328125, -0.00612640380859375, -0.032989501953125, -0.017547607421875, 0.041534423828125, -0.049407958984375, 0.06646728515625, -0.0148468017578125, 0.00772857666015625, -0.01023101806640625, 0.007129669189453125, 0.07177734375, 0.04119873046875, -0.0168304443359375, 0.006622314453125, -0.01428985595703125, -0.01104736328125, -0.05511474609375, 0.000682830810546875, -0.022613525390625, -0.00937652587890625, -0.001499176025390625, 0.0181427001953125, -0.035858154296875, 0.034637451171875, -0.0552978515625, -0.041778564453125, 0.024810791015625, -0.0299072265625, -0.00037932395935058594, -0.03680419921875, -0.032867431640625, 0.0005087852478027344, -0.06658935546875, 0.04425048828125, 0.035400390625, 0.02587890625, -0.051055908203125, -0.004566192626953125, -0.00225067138671875, -0.01380157470703125, 0.005435943603515625, 0.05633544921875, 0.012115478515625, 0.012939453125, -0.06365966796875, -0.0199127197265625, -0.0548095703125, -0.020416259765625, 0.033111572265625, -0.014068603515625, 0.0419921875, 0.07177734375, 0.00537109375, 0.0047454833984375, 0.00565338134765625, -0.0184478759765625, 0.0092315673828125, 0.031890869140625, -0.0225067138671875, -0.03717041015625, -0.01337432861328125, -0.0081024169921875, 0.0341796875, -0.021820068359375, -0.034393310546875, 0.0079193115234375, -0.0169525146484375, 0.0036983489990234375, -0.0028858184814453125, 0.002231597900390625, -0.017303466796875, -0.00032401084899902344, 0.0302276611328125, -0.01158905029296875, 0.00357818603515625, 0.038177490234375, 0.027923583984375, -0.00264739990234375, -0.0321044921875, -0.0081634521484375, 0.037689208984375, 0.0259246826171875, -0.016448974609375, 0.0228424072265625, -0.033111572265625, -0.035003662109375, -0.015960693359375, -0.043121337890625, -0.01277923583984375, -0.0196990966796875, 0.037109375, 0.0009570121765136719, 0.035430908203125, -0.0005044937133789062, -0.029449462890625, 0.0440673828125, -0.0084228515625, -0.044769287109375, 0.049652099609375, -0.038482666015625, 0.037322998046875, -0.00791168212890625, 0.080322265625, 0.0703125, -0.0109405517578125, 0.0284881591796875, -0.0150604248046875, 0.053924560546875, -0.01398468017578125, -0.00179290771484375, -0.0251922607421875, -0.029205322265625, -0.05120849609375, -0.045745849609375, 0.0201568603515625, -0.0205230712890625, 0.01373291015625, -0.0138092041015625, -0.0025920867919921875, -0.003948211669921875, -0.054534912109375, -0.0294189453125, -0.0469970703125, -0.0738525390625, 0.01030731201171875, 0.0184326171875, -0.0254364013671875, -0.006591796875, 0.05926513671875, 0.0313720703125, 0.016632080078125, -0.0227203369140625, -0.06732177734375, -0.04656982421875, -0.0626220703125, 0.0145721435546875, -0.0033664703369140625, 0.001018524169921875, 0.005992889404296875, -0.00811004638671875, -0.010955810546875, -0.053497314453125, -0.0135955810546875, 0.056060791015625, -0.004528045654296875, -0.0129852294921875, -0.03179931640625, -0.013916015625, 0.01026153564453125, -0.0045166015625, 0.07373046875, 0.032623291015625, -0.01251220703125, 0.01432037353515625, -0.00946044921875, -0.00402069091796875, 0.00797271728515625, -0.045166015625, -0.0107269287109375, -0.002559661865234375, -0.018035888671875, -0.0362548828125, 0.00414276123046875, -0.0367431640625, -0.037017822265625, -0.02410888671875, 0.0193939208984375, 0.013824462890625, -0.03570556640625, -0.01406097412109375, 0.015655517578125, 0.00923919677734375, 0.032928466796875, -0.03289794921875, 0.07110595703125, -0.0186767578125, -0.01025390625, -0.0697021484375, -0.00260162353515625, -0.01079559326171875, 0.027099609375, -0.006237030029296875, 0.0036373138427734375, -0.0170135498046875, 0.032012939453125, -0.0191650390625, -0.0606689453125, 0.0241851806640625, -0.041168212890625, -0.01013946533203125, -0.0216217041015625, 0.0015134811401367188, -0.0001888275146484375, 0.0699462890625, -0.01033782958984375, 0.0092620849609375, -0.040496826171875, -0.0183258056640625, 0.03216552734375, -0.018890380859375, -0.04229736328125, -0.01256561279296875, -0.060943603515625, 0.00576019287109375, -0.000568389892578125, -0.0152130126953125, -0.036865234375, 0.05194091796875, -0.037872314453125, -0.0243682861328125, 0.048828125, -0.0230560302734375, 0.031982421875, -0.01360321044921875, 0.0159149169921875, -0.0257110595703125, -0.0259857177734375, -0.0195465087890625, -0.032806396484375, -0.0169830322265625, 0.0232086181640625, 0.047027587890625, 0.01033782958984375, -0.025970458984375, 0.032257080078125, 0.0653076171875, 0.01010894775390625, 0.055694580078125, 0.0017004013061523438, 0.002315521240234375, 0.004974365234375, 0.01861572265625, 0.02606201171875, -0.0028934478759765625, -0.0164642333984375, -0.0299835205078125, -0.004581451416015625, -0.0032520294189453125, -0.03173828125, 0.02008056640625, -0.00263214111328125, -0.01263427734375, -0.046173095703125, -0.00904083251953125, -0.005908966064453125, 0.01824951171875, 0.0016508102416992188, -0.0111236572265625, -0.0119781494140625, -0.0447998046875, 0.028411865234375, -0.0129547119140625, -0.01108551025390625, -0.0021514892578125, 0.0242156982421875, 0.012115478515625, -0.0188751220703125, 0.00701904296875, 0.0167236328125, 0.0197906494140625, 0.047119140625, 0.025115966796875, -0.0218048095703125, -0.00894927978515625, 0.05474853515625, -0.01369476318359375, -0.038055419921875, -0.006114959716796875, 0.04058837890625, -0.0059661865234375, -0.024322509765625, 0.0004010200500488281, -0.0404052734375, 0.051910400390625, 0.058441162109375, -0.00848388671875, 0.0024127960205078125, -0.0462646484375, 0.0247650146484375, 0.00504302978515625, -0.0110931396484375, -0.052215576171875, -0.066162109375, 0.035858154296875, 0.0028076171875, -0.01534271240234375, 0.00438690185546875, 0.00850677490234375, 0.0236053466796875, 0.00710296630859375, -0.0011034011840820312, -0.0242919921875, -0.01483154296875, -0.01560211181640625, 0.035614013671875, -0.0226898193359375, -0.0219268798828125, -0.01116180419921875, -0.0102996826171875, 0.05450439453125, 0.002422332763671875, -0.026824951171875, 0.007663726806640625, -0.035430908203125, -0.036102294921875, 0.01409912109375, -0.038909912109375, 0.04449462890625, 0.043548583984375, -0.01776123046875, -0.003948211669921875, -0.04681396484375, 0.0054931640625, -0.053924560546875, 0.04840087890625, 0.01151275634765625, 0.003173828125, 0.0276947021484375, 0.040771484375, 0.061065673828125, 0.0164031982421875, -0.0294189453125, 0.031951904296875, 0.00809478759765625, 0.0218048095703125, -0.0022449493408203125, 0.032196044921875, -0.0020236968994140625, 0.00847625732421875, 0.005527496337890625, -0.0511474609375, -0.02191162109375, 0.029266357421875, 0.0655517578125, -0.017181396484375, -0.0225982666015625, 0.019287109375, -0.0036869049072265625, -0.01007843017578125, 0.038330078125, 0.007366180419921875, -0.038543701171875, -0.01513671875, -0.0026912689208984375, 0.0280914306640625, 0.0017576217651367188, -0.02520751953125, -0.004299163818359375, -0.0191497802734375, 0.0264129638671875, -0.04736328125, -0.0014085769653320312, 0.00885772705078125, 0.01293182373046875, 0.0210418701171875, -0.037933349609375, -0.0178070068359375, 0.037261962890625, 0.0292816162109375, -0.028045654296875, -0.007320404052734375, 0.05853271484375, -0.0179290771484375, -0.0015201568603515625, -0.007904052734375, -0.0033435821533203125, 0.054901123046875, 0.0005507469177246094, 0.07391357421875, 0.00885009765625, -0.034515380859375, -0.00473785400390625, -0.028961181640625, -0.004642486572265625, 0.0447998046875, -0.0119476318359375, -0.01090240478515625, -0.02490234375, 0.0234375, 0.018341064453125, 0.010894775390625, -0.034423828125, 0.007610321044921875, 0.0016813278198242188, 0.024932861328125, 0.006229400634765625, -0.00769805908203125, 0.0238037109375, 0.0011997222900390625, 0.035919189453125, -0.0101165771484375, -0.00350189208984375, -0.01016998291015625, -0.01374053955078125, 0.0034637451171875, -0.036468505859375, -0.00775146484375, 0.019775390625, -0.01378631591796875, 0.01898193359375, 0.0238037109375, 0.0042724609375, 0.00748443603515625, 0.00897979736328125, 0.020599365234375, -0.0166473388671875, -0.016143798828125, -0.007152557373046875, 0.0089569091796875, 0.0186614990234375, 0.024566650390625, 0.0302734375, -0.0226287841796875, -0.0169219970703125, -0.0126953125, 0.021026611328125, -0.001712799072265625, -0.008453369140625, -0.061370849609375, 0.050994873046875, 0.051666259765625, -0.00267791748046875, 0.0295257568359375, 0.0018873214721679688, 0.00922393798828125, 0.038543701171875, -0.044342041015625, 0.036285400390625, 0.020111083984375, 0.055633544921875, -0.01959228515625, -0.004833221435546875, 0.040740966796875, -0.023345947265625, 0.0211334228515625, 0.07220458984375, 0.06781005859375, -0.08331298828125, -0.01415252685546875, -0.0103759765625, -0.0159454345703125, 0.0460205078125, 0.002269744873046875, 0.00771331787109375, 0.043914794921875, -0.0099334716796875, -0.0121307373046875, -0.03839111328125, 0.0030803680419921875, 0.0301971435546875, -0.0006775856018066406, 0.0035381317138671875, 0.03656005859375, 0.003772735595703125, -0.042022705078125, 0.0032825469970703125, 0.0162200927734375, 0.00675201416015625, -0.03369140625, -0.0362548828125, 0.059722900390625, -0.030548095703125, -0.0197601318359375, 0.07989501953125, -0.020416259765625, 0.04833984375, 0.02978515625, -0.0001996755599975586, 0.03387451171875, 0.0404052734375, 0.005512237548828125, 0.0135650634765625, 0.013031005859375, -0.0277252197265625, 0.005352020263671875, -0.026458740234375, -0.0149383544921875, 0.01861572265625, -0.0173187255859375, 0.002727508544921875, -0.00496673583984375, 0.0025634765625, -0.0241241455078125, 0.0017843246459960938, 0.059539794921875, -0.0275115966796875, -0.0231475830078125, 0.01369476318359375, 0.036529541015625, 0.004184722900390625, -0.0272979736328125, 0.009033203125, -0.043731689453125, -0.007648468017578125, -0.0283966064453125, -0.0214996337890625, 0.028533935546875, -0.042144775390625, -0.0853271484375, 0.10748291015625, 0.0244293212890625, 0.05059814453125, 0.01248931884765625, 0.03460693359375, -0.032562255859375, 0.0007977485656738281, -0.04217529296875, 0.06951904296875, 0.01302337646484375, 0.06500244140625, -0.0386962890625, -0.00972747802734375, 0.03509521484375, 0.0244293212890625, 0.07159423828125, 0.002498626708984375, -0.0193939208984375, 0.01934814453125, 0.07940673828125, -0.0104827880859375, -0.017303466796875, 0.046600341796875, 0.0066680908203125, 0.030059814453125, 0.0540771484375, -0.034881591796875, 0.037261962890625, -0.0192718505859375, 0.00698089599609375, 0.01032257080078125, 0.00867462158203125, 0.01073455810546875, 0.0137481689453125, 0.0017004013061523438, -0.0164947509765625, 0.010406494140625, 0.0265045166015625, 0.00750732421875, -0.002964019775390625, 0.041778564453125, 0.039520263671875, -0.06689453125, 0.02740478515625, -0.048553466796875, 0.054473876953125, 0.006328582763671875, 0.00274658203125, 0.007061004638671875, 0.01641845703125, 0.01000213623046875, -0.031494140625, -0.002399444580078125, 0.0262908935546875, -0.046173095703125, 0.07232666015625, 0.04736328125, 0.0340576171875, -0.018646240234375, -0.01320648193359375, 0.0384521484375, 0.073486328125, -0.05487060546875, -0.00185394287109375, 0.003025054931640625, 0.0066375732421875, 0.0195465087890625, -0.047943115234375, 0.0031604766845703125, -0.038360595703125, -0.02447509765625, -0.0240478515625, -0.0017547607421875, 0.04058837890625, 0.026458740234375, -0.0092315673828125, -0.037353515625, -0.03277587890625, 0.02374267578125, -0.04620361328125, -0.00453948974609375, 0.0147247314453125, 0.0694580078125, 0.0186920166015625, 0.0263519287109375, 0.0013742446899414062, -0.034423828125, 0.0032291412353515625, 0.0269622802734375, 0.00035381317138671875, 0.0158538818359375, -0.044403076171875, -0.06365966796875, 0.0435791015625, 0.048583984375, 0.039093017578125, -0.004055023193359375, 0.02374267578125, 0.007389068603515625, -0.02813720703125, -0.007328033447265625, 0.037322998046875, -0.0182342529296875, 0.06866455078125, -0.049041748046875, 0.023956298828125, -0.0222320556640625, -0.0305328369140625, -0.035125732421875, -0.03155517578125, 0.049957275390625, 0.0264739990234375, 0.024993896484375, 0.01181793212890625, -0.0245513916015625, 0.0206451416015625, -0.0274810791015625, 0.0528564453125, 0.03466796875, -0.021392822265625, 0.0055999755859375, 0.00439453125, -0.10296630859375, -0.0028839111328125, 0.038665771484375, -0.024932861328125, -0.00977325439453125, -0.017974853515625, -0.01129913330078125, 0.048431396484375, -0.044219970703125, 0.017608642578125, 0.0166015625, -0.017486572265625, -0.0055694580078125, -0.0654296875, -0.0234832763671875, -0.01739501953125, 0.0233917236328125, -0.01392364501953125, 0.10101318359375, -0.025390625, 0.004550933837890625, -0.02349853515625, -0.00978851318359375, -0.0258026123046875, -0.021728515625, 0.0182647705078125, -0.0086212158203125, -0.0304412841796875, -0.0017957687377929688, -0.0718994140625, -0.0295257568359375, 0.03131103515625, -0.0212860107421875, -0.0016164779663085938, -0.0261077880859375, 0.023712158203125, -0.00855255126953125, -0.00844573974609375, -0.04168701171875, -0.07220458984375, -0.064697265625, -0.003875732421875, -0.00911712646484375, 0.00995635986328125, -0.019927978515625, 0.036376953125, -0.0188751220703125, -0.018524169921875, 0.01189422607421875, -0.059844970703125, -0.0229339599609375, 0.019134521484375, -0.00033354759216308594, -0.0015382766723632812, 0.03765869140625, -0.00890350341796875, -0.0025482177734375, 0.01091766357421875, 0.031829833984375, 0.007598876953125, -0.0009293556213378906, -0.059173583984375, -0.08123779296875, -0.0131072998046875, 0.0012540817260742188, -0.0216217041015625, -0.06927490234375, 0.0138092041015625, -0.03338623046875, -0.0233917236328125, -0.0157928466796875, -0.02264404296875, -0.00653839111328125, 0.0236663818359375, -0.016448974609375, -0.016845703125, -0.02880859375, 0.0090789794921875, 0.001506805419921875, -0.005458831787109375, -0.038177490234375, 0.021209716796875, -0.01165008544921875, 0.0179595947265625, -0.0227508544921875, -0.0207977294921875, 0.0212860107421875, 0.0026035308837890625, -0.065673828125, -0.011199951171875, -0.032684326171875, -0.00946044921875, -0.03887939453125, 0.02783203125, 0.049072265625, -0.04022216796875, -0.0299835205078125, -0.03887939453125, 0.01004791259765625, 0.012298583984375, 0.02178955078125, -0.0177459716796875, 0.0024890899658203125, 0.01849365234375, -0.006732940673828125, -0.0589599609375, 0.00424957275390625, -0.04296875, -0.0137786865234375, 0.00850677490234375, -0.043914794921875, -0.031280517578125, -0.047119140625, -0.03961181640625, 0.0494384765625, 0.005512237548828125, -0.015289306640625, -0.0469970703125, 0.022430419921875, 0.0274200439453125, -0.0109710693359375, -0.01140594482421875, 0.000804901123046875, -0.052337646484375, -0.016143798828125, -0.023590087890625, 0.06695556640625, -0.03753662109375, -0.007965087890625, 0.030029296875, 0.03558349609375, 0.034515380859375, -0.0248870849609375, 0.0015993118286132812, -0.0130767822265625, 0.0096588134765625, 0.033477783203125, -0.045318603515625, -0.0031414031982421875, -0.016143798828125, 0.032196044921875, -0.005153656005859375, -0.0283355712890625, -0.032928466796875, -0.01134490966796875, 0.061737060546875, 0.0538330078125, 0.016876220703125, -0.033905029296875, -0.047149658203125, -0.034393310546875, -0.0089569091796875, -0.003963470458984375, 0.0210418701171875, -0.07208251953125, 0.00852203369140625, 0.008697509765625, 0.009124755859375, 0.01204681396484375, -0.0131988525390625, 0.005496978759765625, -0.01393890380859375, 0.00838470458984375, -0.0284423828125, 0.01219940185546875, -0.0146942138671875, 0.040863037109375, -0.01294708251953125, 0.027191162109375, -0.0017671585083007812, 0.0330810546875, 0.0211639404296875, 0.02081298828125, 0.04327392578125, 0.00698089599609375, 0.01256561279296875, 0.0277099609375, 0.03466796875, 0.0232696533203125, -0.0250701904296875, -0.0550537109375, -0.03582763671875, 0.03662109375, 0.00380706787109375, 0.02740478515625, 0.0008549690246582031, 0.029510498046875, 0.03204345703125, 0.1019287109375, 0.03192138671875, -0.01172637939453125, -0.0122528076171875, 0.054443359375, -0.0482177734375, -0.023651123046875, -0.046539306640625, -0.0230865478515625, 0.01450347900390625, 0.0284881591796875, 0.0226287841796875, -0.01168060302734375, 0.0333251953125, -0.02197265625, 0.01605224609375, 0.02008056640625 ]
c984fea9e532ba7561407f85c2208676fc7359c6
Wordpress Stackexchange Q: body_class hook for admin pages The body_class hook seem only to work with non-admin pages. When I do add_filter('body_class', 'add_body_classes'); function add_body_classes($classes) { $classes[] = 'myclass'; return $classes; } Is there another hook i should be using if i want to add a class to the body of an admin page? A: Admin pages don't use the body_class filter, use the admin_body_class filter to add classes to admin body tag instead. Note that $classes in that case is a string, not an array.
Q: body_class hook for admin pages The body_class hook seem only to work with non-admin pages. When I do add_filter('body_class', 'add_body_classes'); function add_body_classes($classes) { $classes[] = 'myclass'; return $classes; } Is there another hook i should be using if i want to add a class to the body of an admin page? A: Admin pages don't use the body_class filter, use the admin_body_class filter to add classes to admin body tag instead. Note that $classes in that case is a string, not an array. A: Mamaduka answer pointed me to the right direction, here is the code for adding classes to the body in the dashboard. The callback function should return a valid value for the HTML class attribute, that is space separated class names, also, don't forget to prepend (or append) any existing classes, you should understand by reading the code. add_filter( 'admin_body_class', 'my_admin_body_class' ); /** * Adds one or more classes to the body tag in the dashboard. * * @link https://wordpress.stackexchange.com/a/154951/17187 * @param String $classes Current body classes. * @return String Altered body classes. */ function my_admin_body_class( $classes ) { return "$classes my_class"; // Or: return "$classes my_class_1 my_class_2 my_class_3"; } A: Adding multiple classes, and especially when they must display based on some conditions, may result in an inconsistent HTML output. To format it correctly and also have the ability to remove duplicates or existing classes, we can convert them to array and in the end join back to string: add_filter('admin_body_class', static function ($classes) { $classes = explode(' ', $classes); $classes = array_merge($classes, [ 'my-class-one', 'my-class-two', 'my-class-three', some_function(), another_function(), ]); return implode(' ', array_unique($classes)); }); A: one of the hooks i use for editing WP admin/Dashboard admin_head function remove_screen_options(){ $hideCSS = '<style>#screen-meta-links { display: none; }</style>'; } Will put the css in your admin part And by using class .wp-admin you could style the body part of admin. Good luck
wordpress
{ "language": "en", "length": 314, "provenance": "stackexchange_00019.jsonl.gz:417723", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44444" }
[ 0.031402587890625, -0.001895904541015625, 0.009735107421875, -0.0167236328125, 0.00927734375, -0.034912109375, 0.03192138671875, -0.00899505615234375, -0.01059722900390625, 0.0014410018920898438, -0.0182647705078125, 0.043731689453125, -0.0205230712890625, -0.0238494873046875, 0.011993408203125, -0.0172882080078125, 0.021453857421875, -0.01934814453125, 0.006687164306640625, -0.00307464599609375, 0.006664276123046875, 0.0208282470703125, 0.0088653564453125, -0.0095062255859375, -0.001110076904296875, 0.0002999305725097656, -0.005176544189453125, -0.022125244140625, -0.002567291259765625, -0.00307464599609375, -0.005710601806640625, 0.0101776123046875, 0.02886962890625, 0.0198516845703125, -0.0416259765625, -0.000885009765625, -0.02044677734375, 0.00571441650390625, -0.005573272705078125, 0.00408172607421875, 0.01241302490234375, 0.008453369140625, 0.037506103515625, 0.059478759765625, -0.0270843505859375, -0.0292510986328125, 0.00939178466796875, -0.033782958984375, 0.01126861572265625, -0.06524658203125, 0.00829315185546875, 0.0004210472106933594, 0.0194091796875, -0.002773284912109375, -0.01080322265625, 0.0298919677734375, -0.019683837890625, 0.00212860107421875, 0.034149169921875, 0.01338958740234375, -0.0222930908203125, -0.024658203125, 0.00537109375, -0.042205810546875, -0.00975799560546875, 0.00262451171875, -0.0075531005859375, 0.006496429443359375, -0.038726806640625, -0.021575927734375, 0.0186309814453125, -0.032135009765625, -0.036651611328125, -0.0313720703125, -0.00751495361328125, 0.01207733154296875, -0.001567840576171875, -0.0263519287109375, -0.0128326416015625, 0.0538330078125, 0.037139892578125, 0.0170440673828125, 0.00586700439453125, 0.00865936279296875, -0.045745849609375, -0.01617431640625, -0.0155487060546875, -0.00811767578125, -0.0172119140625, 0.0021228790283203125, -0.0208740234375, -0.0601806640625, 0.031890869140625, 0.003665924072265625, -0.00518035888671875, -0.0328369140625, -0.0015687942504882812, 0.0389404296875, 0.00461578369140625, 0.03497314453125, 0.0287017822265625, -0.052398681640625, 0.0780029296875, -0.0767822265625, 0.0290679931640625, 0.04302978515625, -0.01617431640625, 0.0004429817199707031, 0.03515625, 0.00754547119140625, -0.00446319580078125, 0.002590179443359375, 0.01094818115234375, -0.01285552978515625, -0.020294189453125, -0.037841796875, -0.0433349609375, 0.0005793571472167969, 0.005710601806640625, -0.0521240234375, 0.0206451416015625, 0.0164337158203125, 0.05120849609375, -0.041534423828125, 0.01025390625, -0.0019063949584960938, -0.04827880859375, -0.040863037109375, 0.0523681640625, -0.0634765625, 0.007213592529296875, 0.04461669921875, 0.0135498046875, 0.0117340087890625, -0.0033416748046875, 0.0291748046875, 0.0250091552734375, -0.056304931640625, -0.0241851806640625, 0.01543426513671875, -0.0020084381103515625, -0.034149169921875, -0.028900146484375, -0.028564453125, -0.020751953125, 0.0201416015625, -0.002994537353515625, 0.00885772705078125, 0.01593017578125, -0.0281219482421875, -0.0092315673828125, -0.06097412109375, 0.0126953125, 0.033172607421875, -0.00911712646484375, 0.032012939453125, 0.0318603515625, -0.0002084970474243164, -0.0243072509765625, -0.02423095703125, 0.028717041015625, 0.00891876220703125, 0.030487060546875, -0.0281524658203125, -0.0474853515625, -0.0265045166015625, -0.08367919921875, -0.017822265625, 0.01568603515625, -0.0731201171875, 0.0582275390625, -0.0198974609375, 0.022064208984375, -0.00940704345703125, -0.0022430419921875, 0.021575927734375, -0.0039825439453125, 0.043487548828125, 0.0509033203125, -0.055877685546875, -0.03973388671875, -0.052154541015625, 0.08203125, -0.029144287109375, -0.035186767578125, -0.0140380859375, 0.03900146484375, 0.055084228515625, -0.007598876953125, 0.0229339599609375, 0.031005859375, 0.0066070556640625, -0.00543212890625, -0.00989532470703125, -0.0251922607421875, -0.00508880615234375, -0.0210723876953125, 0.0211944580078125, -0.0283355712890625, 0.02276611328125, 0.018218994140625, 0.0034427642822265625, 0.0176849365234375, 0.00411224365234375, 0.00046372413635253906, 0.0005369186401367188, 0.004276275634765625, 0.0240325927734375, 0.00830841064453125, 0.0147857666015625, -0.01103973388671875, -0.026092529296875, -0.0015811920166015625, 0.0009522438049316406, -0.020050048828125, 0.007354736328125, -0.0261688232421875, 0.01470184326171875, -0.03607177734375, 0.035064697265625, -0.02911376953125, -0.0626220703125, -0.0294952392578125, 0.00955963134765625, 0.02105712890625, 0.019683837890625, -0.028900146484375, -0.002391815185546875, -0.007221221923828125, 0.0162506103515625, -0.022216796875, 0.04925537109375, 0.0010576248168945312, 0.0390625, -0.036163330078125, -0.0199737548828125, -0.045867919921875, -0.038177490234375, -0.0010013580322265625, 0.036163330078125, 0.042999267578125, 0.0506591796875, -0.0056304931640625, -0.035247802734375, 0.041412353515625, -0.042388916015625, 0.0274200439453125, -0.03765869140625, -0.03778076171875, 0.007312774658203125, 0.0141448974609375, 0.013763427734375, 0.023345947265625, -0.0211181640625, -0.0257110595703125, 0.046417236328125, -0.0047454833984375, -0.033355712890625, -0.004825592041015625, -0.0067901611328125, 0.037139892578125, -0.0186309814453125, -0.06884765625, 0.0160064697265625, -0.003322601318359375, -0.0144805908203125, 0.02691650390625, -0.00008910894393920898, -0.0038967132568359375, -0.0340576171875, 0.0224456787109375, 0.007038116455078125, -0.0030689239501953125, 0.0079803466796875, 0.004032135009765625, 0.007595062255859375, -0.0308837890625, 0.0019407272338867188, 0.019012451171875, 0.005580902099609375, -0.021240234375, 0.02923583984375, -0.0206451416015625, -0.0213470458984375, -0.013580322265625, -0.0100250244140625, 0.01358795166015625, -0.00548553466796875, 0.013916015625, -0.03875732421875, 0.000896453857421875, 0.005313873291015625, -0.03082275390625, 0.04754638671875, -0.0014896392822265625, -0.050811767578125, -0.004749298095703125, 0.01395416259765625, -0.002864837646484375, -0.030731201171875, 0.01513671875, 0.0245208740234375, -0.0185394287109375, -0.01134490966796875, 0.004512786865234375, -0.00301361083984375, -0.00917816162109375, 0.00403594970703125, -0.0015659332275390625, -0.00928497314453125, 0.001708984375, 0.07757568359375, 0.0310516357421875, 0.040313720703125, 0.01418304443359375, -0.05865478515625, 0.0020008087158203125, 0.017608642578125, -0.0645751953125, -0.054595947265625, -0.035797119140625, -0.03875732421875, -0.0017328262329101562, 0.01116943359375, -0.022735595703125, 0.01385498046875, 0.024200439453125, 0.01277923583984375, 0.022979736328125, 0.01471710205078125, -0.0171051025390625, 0.028778076171875, -0.0169830322265625, 0.000751495361328125, -0.0055084228515625, 0.00247955322265625, 0.0005064010620117188, 0.07135009765625, 0.00507354736328125, -0.039886474609375, 0.022613525390625, 0.027801513671875, 0.0026607513427734375, 0.0214691162109375, 0.0101470947265625, -0.037353515625, 0.0003147125244140625, -0.00795745849609375, -0.035491943359375, 0.0166015625, -0.0115203857421875, -0.00884246826171875, -0.038726806640625, -0.00379180908203125, -0.0245819091796875, 0.0302276611328125, 0.045562744140625, -0.0128173828125, -0.005405426025390625, -0.05364990234375, -0.022216796875, 0.0352783203125, -0.00321197509765625, 0.0158538818359375, -0.0160980224609375, -0.0511474609375, 0.0244140625, 0.020599365234375, -0.0108489990234375, 0.0129241943359375, -0.037994384765625, -0.007167816162109375, 0.03643798828125, -0.0023250579833984375, 0.00023066997528076172, 0.031768798828125, -0.006526947021484375, -0.016204833984375, 0.05291748046875, 0.0152587890625, 0.0092010498046875, -0.01418304443359375, 0.037384033203125, -0.031219482421875, -0.0826416015625, 0.06793212890625, 0.0017118453979492188, 0.0291595458984375, -0.0562744140625, -0.041778564453125, 0.00814056396484375, 0.1409912109375, -0.046356201171875, -0.0239410400390625, -0.00061798095703125, 0.02447509765625, -0.044830322265625, -0.0311737060546875, -0.028778076171875, -0.0156707763671875, -0.08880615234375, -0.0034351348876953125, -0.00516510009765625, -0.052154541015625, -0.0217132568359375, -0.019317626953125, -0.075927734375, -0.030975341796875, 0.011505126953125, -0.0196990966796875, -0.006519317626953125, 0.0430908203125, -0.0194854736328125, 0.01824951171875, 0.004302978515625, -0.01861572265625, -0.0791015625, -0.01102447509765625, -0.0142364501953125, 0.07958984375, 0.0077667236328125, 0.0009613037109375, -0.0290985107421875, 0.0229034423828125, 0.0285797119140625, -0.0141754150390625, 0.00925445556640625, -0.005859375, 0.0182952880859375, -0.0185546875, -0.006744384765625, -0.0277252197265625, 0.00732421875, 0.006622314453125, -0.034912109375, -0.0206146240234375, -0.03900146484375, -0.0219879150390625, 0.02789306640625, -0.04510498046875, 0.022796630859375, -0.041412353515625, -0.0181884765625, -0.0037899017333984375, -0.01317596435546875, 0.01166534423828125, -0.021453857421875, 0.0223236083984375, 0.034088134765625, -0.0165252685546875, -0.0228271484375, 0.013641357421875, 0.042510986328125, 0.0121307373046875, -0.0180206298828125, -0.07733154296875, 0.0191497802734375, 0.012054443359375, -0.04864501953125, 0.07757568359375, -0.0017156600952148438, 0.0008177757263183594, 0.060699462890625, -0.04345703125, -0.001338958740234375, -0.055694580078125, 0.11065673828125, -0.007442474365234375, -0.0105743408203125, 0.02044677734375, -0.0281982421875, 0.022003173828125, -0.04437255859375, -0.02557373046875, -0.0089111328125, 0.049072265625, 0.03759765625, -0.040802001953125, 0.07476806640625, -0.00785064697265625, -0.0152435302734375, 0.0011463165283203125, -0.0038204193115234375, 0.01543426513671875, 0.035400390625, -0.0139923095703125, -0.0123443603515625, -0.0131378173828125, -0.00464630126953125, 0.0008130073547363281, 0.01082611083984375, -0.00823974609375, 0.031951904296875, -0.0017681121826171875, -0.00904083251953125, -0.0160064697265625, -0.020477294921875, 0.07318115234375, -0.0073089599609375, -0.056243896484375, 0.0277862548828125, -0.018585205078125, 0.01448822021484375, 0.03387451171875, -0.038818359375, 0.00800323486328125, 0.029449462890625, -0.007625579833984375, -0.0038967132568359375, -0.0107879638671875, -0.0044708251953125, -0.0290374755859375, 0.0635986328125, 0.02032470703125, -0.01294708251953125, 0.042144775390625, -0.0020580291748046875, -0.00843048095703125, 0.004138946533203125, 0.002941131591796875, 0.033538818359375, 0.006694793701171875, 0.039764404296875, 0.022735595703125, -0.04046630859375, 0.0272979736328125, -0.0001455545425415039, -0.00946044921875, -0.01226806640625, -0.02728271484375, 0.0109100341796875, 0.00951385498046875, 0.0173492431640625, 0.030426025390625, -0.01360321044921875, 0.02484130859375, -0.02691650390625, 0.038238525390625, 0.01491546630859375, -0.0265350341796875, -0.036590576171875, -0.03765869140625, 0.013031005859375, 0.0027523040771484375, -0.014373779296875, 0.01219940185546875, 0.0172119140625, 0.002727508544921875, 0.00409698486328125, -0.0552978515625, 0.0169219970703125, 0.023834228515625, -0.0221099853515625, 0.0219268798828125, 0.01177978515625, -0.11114501953125, -0.06854248046875, 0.0011472702026367188, 0.01222991943359375, 0.0360107421875, -0.00887298583984375, 0.054046630859375, -0.0209808349609375, -0.03302001953125, -0.03399658203125, 0.005565643310546875, 0.0157470703125, 0.0206146240234375, -0.0283966064453125, -0.019500732421875, -0.07720947265625, -0.04290771484375, -0.07843017578125, -0.0015001296997070312, -0.034637451171875, 0.0255584716796875, 0.004474639892578125, 0.031524658203125, -0.0019073486328125, -0.0177764892578125, -0.01210784912109375, -0.0086669921875, 0.00951385498046875, 0.042755126953125, -0.02984619140625, 0.118896484375, -0.029327392578125, 0.043609619140625, -0.00040078163146972656, 0.041168212890625, -0.0213775634765625, 0.01169586181640625, 0.00772857666015625, -0.043975830078125, -0.02532958984375, 0.01264190673828125, -0.0740966796875, 0.0269317626953125, 0.06414794921875, -0.0183258056640625, -0.0146484375, -0.0034732818603515625, -0.0028972625732421875, -0.034393310546875, 0.02032470703125, 0.00046324729919433594, -0.01004791259765625, -0.01065826416015625, 0.029327392578125, 0.02947998046875, -0.0751953125, -0.04095458984375, 0.01477813720703125, 0.0199432373046875, 0.019317626953125, -0.021392822265625, -0.0224151611328125, 0.054595947265625, 0.039398193359375, -0.0277862548828125, 0.0236358642578125, 0.0115203857421875, 0.003627777099609375, 0.0299224853515625, 0.03143310546875, 0.02484130859375, 0.00330352783203125, 0.0657958984375, 0.0003764629364013672, -0.00112152099609375, 0.031036376953125, -0.02081298828125, 0.01605224609375, 0.058990478515625, 0.06201171875, -0.09429931640625, 0.0180511474609375, -0.007366180419921875, 0.0125732421875, 0.053070068359375, 0.006679534912109375, -0.0121612548828125, -0.0260162353515625, 0.00792694091796875, 0.0031337738037109375, -0.0234375, 0.013214111328125, 0.0115814208984375, -0.046234130859375, -0.015228271484375, -0.00677490234375, 0.0106964111328125, 0.0537109375, -0.003818511962890625, -0.049835205078125, 0.0015153884887695312, 0.00833892822265625, 0.006298065185546875, -0.00418853759765625, -0.032012939453125, -0.03375244140625, -0.0276031494140625, -0.05029296875, -0.01206207275390625, -0.0224151611328125, 0.0247955322265625, 0.048431396484375, 0.030181884765625, 0.0184326171875, -0.042755126953125, -0.0006527900695800781, 0.01016998291015625, -0.061279296875, -0.030120849609375, 0.03497314453125, -0.005596160888671875, -0.038330078125, 0.0297393798828125, -0.0235748291015625, -0.0693359375, 0.0009055137634277344, -0.05322265625, -0.0129547119140625, 0.007488250732421875, -0.0159149169921875, 0.007232666015625, -0.018890380859375, 0.01291656494140625, 0.0148773193359375, 0.024017333984375, -0.020660400390625, -0.006793975830078125, 0.0212860107421875, -0.0194244384765625, -0.0080413818359375, 0.01494598388671875, -0.038421630859375, 0.075927734375, 0.034637451171875, -0.0197601318359375, -0.007541656494140625, 0.045257568359375, -0.043701171875, 0.0172271728515625, -0.0478515625, 0.014801025390625, 0.0201263427734375, 0.023101806640625, -0.009002685546875, 0.0164031982421875, -0.00711822509765625, -0.00994873046875, -0.0215911865234375, -0.0033512115478515625, -0.0215606689453125, 0.007503509521484375, 0.032928466796875, 0.0273590087890625, 0.0304107666015625, 0.020843505859375, -0.033721923828125, 0.0022716522216796875, 0.0251922607421875, -0.0071258544921875, 0.0213623046875, -0.011260986328125, -0.04241943359375, 0.012939453125, -0.017333984375, 0.0024547576904296875, 0.0294342041015625, -0.0114288330078125, -0.0080718994140625, 0.01108551025390625, 0.00466156005859375, -0.09149169921875, -0.0184173583984375, 0.0264892578125, -0.0003495216369628906, -0.03094482421875, -0.056365966796875, -0.0269775390625, 0.0189361572265625, 0.0099639892578125, 0.031768798828125, 0.03533935546875, 0.02789306640625, 0.051239013671875, 0.00440216064453125, 0.015869140625, 0.044158935546875, -0.0248260498046875, 0.045684814453125, 0.00936126708984375, 0.03082275390625, -0.0421142578125, -0.0313720703125, 0.01114654541015625, 0.0611572265625, -0.01641845703125, -0.0154876708984375, 0.00299835205078125, -0.01235198974609375, 0.006473541259765625, -0.0024890899658203125, 0.01555633544921875, -0.005054473876953125, -0.007427215576171875, -0.00887298583984375, -0.0005207061767578125, 0.002674102783203125, 0.008087158203125, -0.0096282958984375, 0.01336669921875, 0.0022144317626953125, 0.03363037109375, -0.04937744140625, 0.00348663330078125, 0.019622802734375, 0.05450439453125, 0.0291900634765625, 0.0269927978515625, -0.006763458251953125, -0.0293731689453125, -0.041778564453125, -0.01432037353515625, 0.0025196075439453125, 0.03887939453125, -0.031341552734375, 0.040283203125, -0.0176849365234375, 0.035797119140625, -0.021881103515625, 0.007595062255859375, 0.00865936279296875, 0.025634765625, 0.0067138671875, -0.0202789306640625, 0.002655029296875, -0.0217437744140625, -0.012542724609375, -0.0016040802001953125, 0.003154754638671875, 0.021881103515625, -0.0108489990234375, 0.01326751708984375, 0.0189208984375, 0.039764404296875, 0.009307861328125, -0.042449951171875, 0.0252685546875, -0.052215576171875, -0.0015125274658203125, 0.06829833984375, 0.0340576171875, 0.06439208984375, -0.08197021484375, -0.0031490325927734375, -0.039306640625, -0.0792236328125, 0.05792236328125, 0.0684814453125, -0.0167236328125, -0.0162353515625, 0.032501220703125, -0.01154327392578125, -0.0163421630859375, 0.0274658203125, -0.0121917724609375, -0.044677734375, 0.0364990234375, -0.0085906982421875, -0.03619384765625, -0.023956298828125, -0.04345703125, 0.053741455078125, 0.0216217041015625, 0.095458984375, -0.032501220703125, 0.03265380859375, -0.03924560546875, 0.017669677734375, -0.051788330078125, -0.03594970703125, 0.00966644287109375, -0.0241241455078125, -0.0253448486328125, 0.0157928466796875, -0.03289794921875, 0.03106689453125, 0.04083251953125, -0.00920867919921875, 0.0124359130859375, 0.0391845703125, 0.00926971435546875, -0.0110321044921875, 0.0253753662109375, -0.0202484130859375, 0.009429931640625, -0.032501220703125, -0.0117950439453125, 0.040802001953125, 0.01239013671875, 0.00772857666015625, -0.00799560546875, 0.011474609375, -0.0297088623046875, 0.0035266876220703125, 0.01189422607421875, -0.01349639892578125, 0.01068878173828125, 0.01025390625, -0.0218658447265625, 0.0255584716796875, -0.0025424957275390625, 0.01515960693359375, 0.0249481201171875, 0.0479736328125, 0.026214599609375, 0.00003981590270996094, 0.03826904296875, 0.031005859375, 0.050445556640625, -0.01206207275390625, 0.0134429931640625, 0.01200103759765625, -0.00853729248046875, 0.0011014938354492188, -0.0087890625, -0.04107666015625, -0.05816650390625, -0.006267547607421875, 0.0290374755859375, -0.0289764404296875, -0.04913330078125, -0.0926513671875, 0.040557861328125, 0.006893157958984375, -0.00795745849609375, -0.03912353515625, 0.04241943359375, -0.0601806640625, 0.053192138671875, -0.00421905517578125, 0.0310516357421875, 0.00614166259765625, 0.0196075439453125, -0.056304931640625, 0.007568359375, -0.017669677734375, 0.0039825439453125, -0.00537109375, 0.005207061767578125, 0.033203125, -0.016387939453125, 0.016021728515625, 0.021148681640625, -0.001377105712890625, 0.072509765625, -0.07183837890625, -0.0194244384765625, 0.01206207275390625, 0.02484130859375, -0.0023479461669921875, -0.06451416015625, -0.0120086669921875, -0.0033550262451171875, 0.01495361328125, 0.0227508544921875, -0.00664520263671875, 0.016510009765625, -0.0340576171875, -0.0780029296875, 0.0562744140625, -0.01023101806640625, -0.043304443359375, -0.059844970703125, 0.0181121826171875, 0.0148773193359375, -0.0006113052368164062, -0.035369873046875, -0.005641937255859375, -0.0204315185546875, 0.01739501953125, 0.0181732177734375, 0.0034656524658203125, 0.03509521484375, -0.0002770423889160156, -0.053009033203125, 0.0012722015380859375, -0.0266571044921875, 0.01739501953125, 0.0160980224609375, -0.04534912109375, 0.07989501953125, 0.0611572265625, -0.0038890838623046875, 0.039794921875, 0.0447998046875, -0.04248046875, 0.004367828369140625, -0.04193115234375, -0.0135498046875, -0.034698486328125, 0.07513427734375, -0.027984619140625, 0.020660400390625, 0.003032684326171875, -0.0093841552734375, -0.00788116455078125, -0.05328369140625, -0.01537322998046875, 0.0248260498046875, -0.04736328125, 0.010406494140625, -0.016204833984375, 0.0079498291015625, 0.014556884765625, -0.03173828125, 0.006221771240234375, -0.01244354248046875, 0.0213623046875, 0.019287109375, -0.017120361328125, -0.05035400390625, 0.0229644775390625, -0.01201629638671875, 0.01513671875, 0.00714111328125, 0.040435791015625, 0.0209808349609375, 0.05841064453125, -0.03167724609375, -0.04412841796875, 0.0160980224609375, 0.005229949951171875, -0.01206207275390625, 0.023590087890625, 0.004077911376953125, -0.006866455078125, -0.027679443359375, 0.01293182373046875, 0.018829345703125, 0.00658416748046875, -0.0279541015625, 0.039764404296875, 0.0167083740234375, 0.04486083984375, -0.01169586181640625, 0.0121612548828125, 0.01406097412109375, 0.0186309814453125, 0.036376953125, -0.0250091552734375, 0.068115234375, -0.0491943359375, -0.02410888671875, 0.0098876953125, 0.00748443603515625, -0.0714111328125, 0.0443115234375, -0.076416015625, 0.0303497314453125, 0.0413818359375 ]
486e41ba98ce0698dbc9d7dd4beb86e73d038f47
Wordpress Stackexchange Q: Reblog wordpress.com posts on self hosted I'm currently collaborating to a wordress.com blog and would like to use the reblog feature to mirror my posts there to my main blog that is a self hosted wordpress installation. My understanding is that this is only possible within wordpress.com so I searched for some plugins to accomplish this and the closest I came to it is the "Press This" feature, but it's not a good solution because it's mostly copying and pasting the text from the other post and it seems to fail to import links, youtube videos and other things. Is there some way to do this? A: Try something like http://wordpress.org/extend/plugins/feedwordpress/ or another RSS aggregator.
Q: Reblog wordpress.com posts on self hosted I'm currently collaborating to a wordress.com blog and would like to use the reblog feature to mirror my posts there to my main blog that is a self hosted wordpress installation. My understanding is that this is only possible within wordpress.com so I searched for some plugins to accomplish this and the closest I came to it is the "Press This" feature, but it's not a good solution because it's mostly copying and pasting the text from the other post and it seems to fail to import links, youtube videos and other things. Is there some way to do this? A: Try something like http://wordpress.org/extend/plugins/feedwordpress/ or another RSS aggregator.
wordpress
{ "language": "en", "length": 116, "provenance": "stackexchange_00019.jsonl.gz:417745", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44523" }
[ 0.034454345703125, -0.00665283203125, 0.07110595703125, 0.04425048828125, -0.048858642578125, -0.01099395751953125, 0.052642822265625, -0.09002685546875, -0.01422119140625, 0.01120758056640625, 0.005748748779296875, -0.00614166259765625, -0.01434326171875, -0.026153564453125, 0.0074310302734375, -0.0279998779296875, 0.038116455078125, 0.01219940185546875, 0.051849365234375, 0.0078582763671875, -0.0170135498046875, 0.027374267578125, 0.0404052734375, 0.0099029541015625, 0.050537109375, -0.03802490234375, 0.0628662109375, -0.039276123046875, 0.055999755859375, -0.00772857666015625, 0.04302978515625, -0.04290771484375, 0.04632568359375, 0.00098419189453125, -0.056304931640625, -0.0196990966796875, -0.001369476318359375, -0.0127410888671875, -0.04388427734375, 0.046630859375, 0.00403594970703125, -0.0060882568359375, 0.045562744140625, 0.015869140625, 0.019134521484375, -0.059814453125, 0.04693603515625, -0.0584716796875, 0.006683349609375, 0.03948974609375, 0.0159912109375, 0.033782958984375, 0.0193328857421875, 0.0159454345703125, 0.00737762451171875, 0.00850677490234375, -0.0035114288330078125, 0.0450439453125, 0.04876708984375, -0.05584716796875, -0.053863525390625, -0.00902557373046875, 0.0139007568359375, 0.01427459716796875, -0.005725860595703125, -0.015899658203125, 0.01561737060546875, 0.0269927978515625, 0.002986907958984375, -0.0087432861328125, 0.013946533203125, -0.00152587890625, 0.005218505859375, -0.0111541748046875, -0.024139404296875, -0.03057861328125, 0.03936767578125, -0.0208892822265625, 0.006420135498046875, 0.02130126953125, -0.03668212890625, -0.01369476318359375, 0.0155029296875, -0.04864501953125, -0.0323486328125, -0.04608154296875, -0.0255126953125, 0.020050048828125, -0.035797119140625, -0.041473388671875, -0.01519775390625, -0.047760009765625, -0.07855224609375, 0.045196533203125, 0.00372314453125, 0.00884246826171875, -0.00896453857421875, 0.00543975830078125, -0.0275115966796875, 0.01224517822265625, -0.0104217529296875, -0.022674560546875, 0.01410675048828125, -0.019012451171875, 0.0033054351806640625, 0.00972747802734375, -0.01262664794921875, -0.030181884765625, 0.05072021484375, 0.025909423828125, -0.01849365234375, 0.05224609375, -0.006946563720703125, 0.004962921142578125, -0.03662109375, -0.006305694580078125, -0.034759521484375, 0.018463134765625, -0.00838470458984375, 0.019134521484375, -0.0046844482421875, 0.046295166015625, -0.0338134765625, 0.0197296142578125, -0.021484375, -0.006137847900390625, 0.04681396484375, -0.046173095703125, -0.006961822509765625, -0.00800323486328125, -0.0161285400390625, 0.00981903076171875, 0.045745849609375, 0.0299224853515625, 0.01013946533203125, -0.0160064697265625, 0.04876708984375, 0.013641357421875, -0.021087646484375, 0.0013685226440429688, 0.00095367431640625, -0.007312774658203125, -0.0290679931640625, -0.0268707275390625, 0.03485107421875, 0.00821685791015625, 0.027984619140625, 0.024688720703125, 0.01007843017578125, -0.0004057884216308594, 0.00013685226440429688, 0.002979278564453125, 0.0277557373046875, -0.0096282958984375, 0.043212890625, -0.0863037109375, 0.035919189453125, -0.07196044921875, 0.05755615234375, -0.053558349609375, 0.00812530517578125, -0.011932373046875, 0.021087646484375, 0.018798828125, -0.0034198760986328125, 0.0186614990234375, -0.02093505859375, 0.0061187744140625, 0.038177490234375, 0.0194244384765625, 0.01837158203125, -0.0021076202392578125, 0.05413818359375, 0.0228729248046875, -0.001987457275390625, 0.014251708984375, -0.00337982177734375, -0.0133514404296875, 0.0152130126953125, 0.0845947265625, 0.0197296142578125, -0.010528564453125, 0.0280914306640625, 0.004856109619140625, -0.0374755859375, 0.027679443359375, 0.0091552734375, 0.07867431640625, 0.0236053466796875, 0.0298309326171875, -0.02178955078125, -0.0220947265625, 0.00458526611328125, 0.044525146484375, -0.027008056640625, -0.06439208984375, 0.022064208984375, 0.00846099853515625, -0.0179901123046875, 0.003376007080078125, 0.0033111572265625, 0.026947021484375, -0.0234222412109375, -0.0030651092529296875, -0.0570068359375, -0.0181732177734375, -0.01861572265625, 0.0289459228515625, 0.042449951171875, -0.00405120849609375, -0.003688812255859375, -0.010528564453125, 0.01001739501953125, -0.04107666015625, -0.07196044921875, -0.0076751708984375, -0.006221771240234375, -0.002239227294921875, -0.0031681060791015625, 0.008270263671875, -0.005069732666015625, -0.018218994140625, -0.032745361328125, 0.0142364501953125, 0.03228759765625, -0.00830078125, -0.0184783935546875, -0.023681640625, -0.02777099609375, 0.0300445556640625, -0.08135986328125, 0.033203125, -0.0267181396484375, 0.016632080078125, -0.02154541015625, -0.005275726318359375, -0.00750732421875, 0.0100555419921875, 0.03045654296875, 0.0263824462890625, 0.0155792236328125, -0.0003745555877685547, 0.00243377685546875, 0.03668212890625, 0.0303192138671875, -0.034454345703125, 0.007396697998046875, 0.0180511474609375, 0.031341552734375, 0.064697265625, -0.037139892578125, -0.01727294921875, 0.021942138671875, -0.04095458984375, -0.01435089111328125, 0.0386962890625, -0.003681182861328125, 0.03143310546875, -0.038055419921875, 0.0047760009765625, -0.01190948486328125, 0.04180908203125, 0.016815185546875, 0.01071929931640625, 0.01323699951171875, -0.0035533905029296875, 0.052093505859375, 0.041656494140625, -0.0037841796875, -0.028289794921875, -0.0034580230712890625, 0.0160369873046875, 0.006328582763671875, 0.016510009765625, 0.03466796875, 0.030914306640625, -0.025115966796875, -0.0277862548828125, 0.026580810546875, 0.0204925537109375, 0.0015773773193359375, 0.037017822265625, -0.03948974609375, -0.0150146484375, -0.0178680419921875, -0.036712646484375, -0.01088714599609375, 0.036376953125, 0.00799560546875, -0.00650787353515625, 0.012908935546875, 0.0523681640625, -0.007755279541015625, 0.057525634765625, -0.005817413330078125, -0.0035648345947265625, 0.054473876953125, -0.10552978515625, 0.06787109375, -0.045989990234375, 0.060791015625, 0.079833984375, 0.005725860595703125, 0.0216827392578125, 0.01023101806640625, -0.00342559814453125, 0.00873565673828125, 0.00955963134765625, -0.01351165771484375, 0.00730133056640625, -0.07928466796875, -0.0115966796875, 0.01120758056640625, -0.006313323974609375, -0.0107879638671875, -0.030029296875, -0.0266571044921875, -0.0011034011840820312, -0.08502197265625, -0.0303802490234375, 0.00174713134765625, -0.0970458984375, 0.0080413818359375, 0.01276397705078125, -0.055023193359375, -0.0228424072265625, 0.07049560546875, 0.028045654296875, 0.01467132568359375, -0.051177978515625, -0.034423828125, -0.07421875, -0.07757568359375, -0.05609130859375, 0.01800537109375, -0.01280975341796875, 0.0247955322265625, -0.0275726318359375, 0.0112762451171875, -0.0007901191711425781, 0.055419921875, 0.09381103515625, -0.0087890625, -0.03662109375, -0.005245208740234375, -0.0100860595703125, -0.04278564453125, 0.01541900634765625, 0.0147247314453125, 0.00804901123046875, -0.02166748046875, 0.01094818115234375, -0.026397705078125, -0.0003077983856201172, -0.0287628173828125, -0.0011949539184570312, 0.041259765625, 0.0202789306640625, -0.01201629638671875, -0.023101806640625, -0.0252838134765625, -0.0199737548828125, -0.054931640625, -0.0232391357421875, 0.048065185546875, -0.01473236083984375, -0.053314208984375, -0.004901885986328125, 0.00537872314453125, 0.006107330322265625, 0.049652099609375, -0.0026607513427734375, 0.0037708282470703125, -0.02545166015625, -0.037689208984375, -0.053558349609375, -0.028076171875, -0.0458984375, 0.054351806640625, -0.030517578125, 0.0042724609375, -0.043609619140625, 0.042510986328125, -0.076416015625, -0.0300140380859375, 0.035858154296875, -0.01461029052734375, 0.00432586669921875, -0.00420379638671875, -0.021636962890625, -0.0003590583801269531, 0.0758056640625, -0.07275390625, -0.0128326416015625, 0.033294677734375, 0.015899658203125, 0.0129241943359375, -0.0056915283203125, -0.04229736328125, -0.029052734375, -0.0305938720703125, -0.00023794174194335938, -0.023345947265625, -0.0150909423828125, 0.0164794921875, -0.021514892578125, 0.000016689300537109375, -0.0394287109375, 0.024566650390625, -0.0323486328125, 0.0216522216796875, -0.0176544189453125, 0.007282257080078125, -0.0200347900390625, -0.0124359130859375, -0.0303802490234375, -0.0584716796875, -0.0052947998046875, -0.0025119781494140625, 0.028961181640625, 0.01435089111328125, -0.0283355712890625, 0.00039649009704589844, 0.03741455078125, -0.006496429443359375, 0.0179290771484375, -0.022003173828125, 0.013153076171875, -0.021728515625, -0.0208892822265625, -0.0192413330078125, -0.028961181640625, 0.033203125, 0.00936126708984375, -0.04107666015625, 0.012603759765625, -0.039642333984375, -0.035003662109375, -0.014862060546875, -0.04962158203125, -0.0148773193359375, 0.00019466876983642578, -0.01824951171875, 0.031005859375, -0.0200958251953125, -0.010833740234375, -0.017181396484375, -0.032989501953125, -0.0266265869140625, -0.045379638671875, -0.00800323486328125, 0.02838134765625, 0.04888916015625, 0.022796630859375, 0.0277252197265625, -0.027313232421875, 0.002201080322265625, 0.01226806640625, 0.0148468017578125, 0.047607421875, 0.01329803466796875, 0.0032196044921875, -0.002193450927734375, -0.00658416748046875, 0.043548583984375, -0.055938720703125, 0.0310821533203125, -0.0009274482727050781, 0.01013946533203125, 0.012451171875, 0.0313720703125, 0.007610321044921875, 0.002948760986328125, -0.0107269287109375, -0.0162200927734375, 0.0234375, 0.02532958984375, -0.0245513916015625, 0.032745361328125, -0.00534820556640625, -0.004314422607421875, 0.026123046875, -0.0556640625, 0.03643798828125, 0.00232696533203125, 0.0145263671875, -0.01216888427734375, 0.00005829334259033203, -0.007228851318359375, 0.0119476318359375, 0.00734710693359375, -0.01065826416015625, 0.0251617431640625, -0.01617431640625, -0.0323486328125, -0.0028553009033203125, -0.005764007568359375, 0.045654296875, 0.014984130859375, -0.033233642578125, -0.0120391845703125, -0.007389068603515625, -0.021881103515625, -0.0230865478515625, -0.017608642578125, 0.02239990234375, 0.027130126953125, -0.004055023193359375, 0.0355224609375, -0.0025081634521484375, -0.00339508056640625, -0.03289794921875, -0.05328369140625, -0.017608642578125, -0.00860595703125, 0.035888671875, 0.020782470703125, -0.03155517578125, 0.041473388671875, -0.0311431884765625, 0.0279541015625, 0.046295166015625, 0.0005950927734375, 0.0154571533203125, -0.006259918212890625, 0.004146575927734375, -0.03778076171875, 0.0025482177734375, -0.0217132568359375, -0.017120361328125, 0.023162841796875, 0.046478271484375, 0.04302978515625, 0.02825927734375, -0.029815673828125, -0.0189361572265625, -0.016998291015625, 0.010986328125, 0.0025539398193359375, -0.0127410888671875, -0.006938934326171875, -0.0240325927734375, -0.0177764892578125, -0.00341796875, -0.0018854141235351562, -0.047760009765625, -0.020751953125, -0.0042724609375, -0.0251312255859375, -0.0023651123046875, -0.0035724639892578125, -0.01514434814453125, 0.0576171875, -0.00267791748046875, -0.01282501220703125, -0.0255584716796875, 0.0086517333984375, -0.0292205810546875, -0.00539398193359375, 0.07464599609375, -0.022705078125, -0.0263519287109375, -0.01739501953125, 0.0186004638671875, -0.0537109375, 0.002140045166015625, 0.08172607421875, 0.044586181640625, -0.06689453125, -0.0036602020263671875, -0.0163116455078125, -0.00012314319610595703, 0.036376953125, -0.03424072265625, -0.022216796875, -0.0311431884765625, 0.0103912353515625, 0.03338623046875, 0.01438140869140625, -0.01349639892578125, -0.040557861328125, -0.0303192138671875, 0.01474761962890625, 0.00395965576171875, 0.0011510848999023438, 0.030029296875, 0.0010519027709960938, 0.06005859375, 0.0240936279296875, 0.0096282958984375, -0.043792724609375, -0.027130126953125, -0.015625, -0.04925537109375, -0.01873779296875, 0.01052093505859375, 0.0187225341796875, 0.07342529296875, 0.035064697265625, 0.00511932373046875, 0.01727294921875, -0.032806396484375, 0.00901031494140625, -0.01520538330078125, 0.02032470703125, -0.0361328125, 0.004974365234375, 0.017486572265625, 0.009765625, 0.04644775390625, 0.00948333740234375, 0.017791748046875, -0.036163330078125, 0.0149688720703125, -0.0321044921875, -0.002178192138671875, -0.01812744140625, 0.0272216796875, 0.0899658203125, -0.0010318756103515625, 0.058135986328125, 0.033172607421875, 0.0052337646484375, 0.03167724609375, 0.0308074951171875, -0.0270233154296875, -0.00992584228515625, -0.006481170654296875, -0.0186004638671875, -0.0206146240234375, -0.03472900390625, -0.0175628662109375, -0.00737762451171875, 0.0309906005859375, 0.04339599609375, -0.0246124267578125, -0.01459503173828125, 0.01168060302734375, -0.03216552734375, -0.0146484375, -0.033233642578125, 0.0098114013671875, 0.0192413330078125, 0.01763916015625, 0.007541656494140625, -0.04461669921875, -0.011138916015625, 0.0191192626953125, -0.009521484375, 0.00518798828125, 0.052154541015625, 0.035125732421875, -0.0152435302734375, 0.00972747802734375, 0.0028228759765625, 0.0172119140625, -0.0100250244140625, 0.0169830322265625, 0.0011186599731445312, -0.0189056396484375, -0.0335693359375, 0.01263427734375, -0.01483917236328125, -0.015472412109375, 0.007472991943359375, -0.0163116455078125, 0.0286712646484375, 0.0214996337890625, -0.0167694091796875, 0.00560760498046875, -0.01480865478515625, -0.01003265380859375, 0.0077972412109375, -0.051116943359375, 0.003864288330078125, 0.0228729248046875, -0.0455322265625, 0.0167083740234375, 0.0147705078125, -0.040679931640625, -0.01415252685546875, -0.05267333984375, 0.042266845703125, -0.0189361572265625, 0.003612518310546875, 0.0227813720703125, 0.001125335693359375, -0.0086517333984375, -0.0200042724609375, -0.0038280487060546875, -0.0791015625, -0.044830322265625, -0.02288818359375, -0.06475830078125, -0.0157318115234375, -0.0440673828125, -0.08349609375, 0.12469482421875, 0.0240631103515625, 0.0310211181640625, -0.0025806427001953125, 0.05535888671875, -0.0450439453125, 0.027557373046875, 0.011566162109375, 0.0307769775390625, 0.0263214111328125, 0.003170013427734375, -0.02490234375, -0.041839599609375, 0.00405120849609375, 0.07757568359375, 0.06781005859375, 0.021728515625, -0.03741455078125, -0.01361846923828125, 0.0167083740234375, 0.032257080078125, -0.01277923583984375, 0.045379638671875, -0.032958984375, 0.0194549560546875, -0.0037670135498046875, -0.09869384765625, -0.025726318359375, 0.0284271240234375, -0.0138092041015625, 0.01107025146484375, -0.0011854171752929688, 0.0009374618530273438, -0.0189208984375, 0.03369140625, 0.00730133056640625, -0.01413726806640625, -0.0062255859375, 0.0012569427490234375, 0.0241546630859375, 0.01273345947265625, 0.0275421142578125, -0.006092071533203125, 0.0010747909545898438, -0.03216552734375, 0.03875732421875, -0.015655517578125, -0.0022563934326171875, 0.022064208984375, 0.0170135498046875, 0.0304412841796875, -0.046295166015625, -0.013519287109375, -0.00038051605224609375, -0.0193023681640625, -0.0012693405151367188, 0.00977325439453125, 0.0318603515625, -0.021240234375, -0.01143646240234375, 0.034149169921875, 0.016265869140625, -0.0159149169921875, -0.031707763671875, 0.01140594482421875, -0.002307891845703125, 0.00476837158203125, -0.04083251953125, -0.02984619140625, -0.045745849609375, -0.0009984970092773438, -0.015411376953125, -0.030517578125, 0.0021800994873046875, 0.0277557373046875, 0.01509857177734375, 0.036041259765625, 0.01534271240234375, -0.058807373046875, 0.0347900390625, -0.0196990966796875, 0.0208892822265625, 0.0218505859375, -0.01149749755859375, 0.0302886962890625, -0.0693359375, 0.01495361328125, -0.028289794921875, 0.0478515625, 0.0192718505859375, 0.0198211669921875, -0.05322265625, -0.0198822021484375, 0.0025787353515625, 0.04400634765625, 0.005893707275390625, -0.002758026123046875, 0.052825927734375, 0.062103271484375, -0.05670166015625, -0.022552490234375, 0.0677490234375, -0.008209228515625, 0.041259765625, -0.053466796875, 0.01280975341796875, -0.0266876220703125, -0.024993896484375, -0.01392364501953125, 0.004405975341796875, 0.0198516845703125, 0.01561737060546875, 0.037017822265625, 0.0023403167724609375, 0.01384735107421875, -0.0195770263671875, -0.01058197021484375, -0.0347900390625, 0.018218994140625, -0.058380126953125, 0.00922393798828125, -0.038726806640625, -0.0701904296875, 0.032196044921875, 0.041015625, -0.036895751953125, 0.020660400390625, 0.039031982421875, 0.02294921875, -0.0089874267578125, -0.0203399658203125, 0.014312744140625, 0.00982666015625, 0.0357666015625, 0.032989501953125, -0.06964111328125, -0.029296875, -0.044647216796875, 0.033782958984375, 0.0355224609375, 0.07623291015625, -0.006633758544921875, 0.031707763671875, -0.0216217041015625, 0.0022869110107421875, -0.01358795166015625, 0.00852203369140625, -0.044525146484375, 0.0100555419921875, 0.027740478515625, -0.00405120849609375, -0.0362548828125, 0.0134735107421875, 0.0249786376953125, -0.018524169921875, 0.0357666015625, -0.0262603759765625, 0.0025577545166015625, -0.01251220703125, 0.002330780029296875, -0.03875732421875, -0.04486083984375, 0.0019359588623046875, 0.0151214599609375, -0.0201873779296875, -0.024200439453125, -0.00396728515625, 0.09783935546875, 0.0199127197265625, -0.0033740997314453125, 0.008087158203125, -0.091552734375, -0.01004791259765625, 0.01448822021484375, 0.06268310546875, -0.01541900634765625, 0.03411865234375, -0.005153656005859375, -0.007694244384765625, 0.0240020751953125, 0.00926971435546875, 0.04150390625, -0.059051513671875, 0.005664825439453125, 0.040740966796875, 0.071044921875, 0.035858154296875, 0.03753662109375, -0.0210723876953125, -0.01418304443359375, -0.0194244384765625, 0.04962158203125, -0.01123809814453125, -0.0292205810546875, -0.0133819580078125, -0.020782470703125, -0.01898193359375, -0.04376220703125, -0.023895263671875, -0.01959228515625, 0.0302886962890625, -0.004425048828125, -0.015350341796875, -0.01139068603515625, 0.00021779537200927734, 0.042572021484375, -0.0013380050659179688, -0.00551605224609375, 0.0189056396484375, 0.047088623046875, -0.031158447265625, -0.050872802734375, -0.004425048828125, 0.034210205078125, -0.045440673828125, 0.00431060791015625, -0.00782012939453125, -0.012054443359375, 0.046478271484375, 0.01320648193359375, 0.040679931640625, 0.050506591796875, 0.0023059844970703125, -0.003513336181640625, 0.0160980224609375, -0.002979278564453125, -0.01629638671875, -0.005161285400390625, 0.0203857421875, -0.00760650634765625, -0.022247314453125, -0.0238494873046875, -0.00841522216796875, -0.0009198188781738281, -0.0379638671875, -0.048492431640625, -0.01058197021484375, 0.0117950439453125, -0.037567138671875, -0.06634521484375, 0.004688262939453125, 0.0274505615234375, 0.00933837890625, -0.0295562744140625, -0.0156707763671875, -0.09375, 0.0005955696105957031, -0.010528564453125, 0.0233612060546875, -0.0148162841796875, 0.0189056396484375, 0.02606201171875, 0.051483154296875, 0.0592041015625, -0.042694091796875, -0.0018711090087890625, 0.0031642913818359375, 0.01898193359375, 0.0033817291259765625, -0.046295166015625, 0.01006317138671875, 0.004001617431640625, 0.00296783447265625, 0.0204925537109375, -0.00015807151794433594, -0.06622314453125, -0.007659912109375, 0.043853759765625, 0.05328369140625, 0.0210723876953125, -0.02117919921875, -0.032958984375, -0.04833984375, -0.00919342041015625, -0.01776123046875, 0.0031948089599609375, -0.05169677734375, -0.006961822509765625, 0.01407623291015625, -0.007808685302734375, 0.0042877197265625, -0.0008034706115722656, -0.0260162353515625, 0.0025196075439453125, -0.0157470703125, -0.01959228515625, -0.03558349609375, -0.0195770263671875, 0.07275390625, -0.0290985107421875, 0.036376953125, 0.02899169921875, 0.00278472900390625, 0.06402587890625, 0.04327392578125, 0.011566162109375, -0.018280029296875, -0.01947021484375, 0.01311492919921875, 0.0174407958984375, 0.01325225830078125, -0.0027675628662109375, -0.0154571533203125, -0.00276947021484375, -0.0034122467041015625, -0.0146331787109375, -0.0085601806640625, 0.0214080810546875, -0.003993988037109375, -0.0221099853515625, 0.043609619140625, -0.01580810546875, -0.075927734375, -0.0214385986328125, 0.02020263671875, -0.054718017578125, 0.0005960464477539062, -0.0274505615234375, -0.034881591796875, 0.0099945068359375, 0.01203155517578125, -0.00360107421875, -0.01473236083984375, 0.0180816650390625, 0.019500732421875, -0.0027923583984375, 0.0098876953125 ]
48cd513f57f614c40d01c8d5d81565afa0540eb2
Wordpress Stackexchange Q: Why is "/page/2/" not working? Finally got pagination to work with the below code, but now the pagination links to /videos/page/2/, which doesn't exist. How do I get page 2 to work? <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('post_type=videos&showposts=1'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); //display stuff endwhile; php wp_pagenavi(); ?> A: After a long time I found a solution for this issue (thanks to franzblog). If you are using version 4.2 or higher, you need to add the following lines in your functions.php file: add_filter( 'redirect_canonical', 'custom_disable_redirect_canonical' ); function custom_disable_redirect_canonical( $redirect_url ) { if ( is_paged() && is_singular() ) $redirect_url = false; return $redirect_url; } Everything is working fine now!
Q: Why is "/page/2/" not working? Finally got pagination to work with the below code, but now the pagination links to /videos/page/2/, which doesn't exist. How do I get page 2 to work? <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('post_type=videos&showposts=1'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); //display stuff endwhile; php wp_pagenavi(); ?> A: After a long time I found a solution for this issue (thanks to franzblog). If you are using version 4.2 or higher, you need to add the following lines in your functions.php file: add_filter( 'redirect_canonical', 'custom_disable_redirect_canonical' ); function custom_disable_redirect_canonical( $redirect_url ) { if ( is_paged() && is_singular() ) $redirect_url = false; return $redirect_url; } Everything is working fine now! A: you CANT have a PAGE and a CUSTOM POST TYPE with the same name Maybe tree years ago it was impossible, but now you CAN. First, add this lines to $args into your post type: 'has_archive' => false, 'rewrite' => array( 'slug' => 'your slug', // if you need slug 'with_front' => false, ), Second, in functions.php add action: add_action('init', 'custom_rewrite_basic'); function custom_rewrite_basic() { global $wp_post_types; foreach ($wp_post_types as $wp_post_type) { if ($wp_post_type->_builtin) continue; if (!$wp_post_type->has_archive && isset($wp_post_type->rewrite) && isset($wp_post_type->rewrite['with_front']) && !$wp_post_type->rewrite['with_front']) { $slug = (isset($wp_post_type->rewrite['slug']) ? $wp_post_type->rewrite['slug'] : $wp_post_type->name); $page = get_page_by_slug($slug); if ($page) add_rewrite_rule('^' .$slug .'/page/([0-9]+)/?', 'index.php?page_id=' .$page->ID .'&paged=$matches[1]', 'top'); } } } function get_page_by_slug($page_slug, $output = OBJECT, $post_type = 'page' ) { global $wpdb; $page = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_name = %s AND post_type= %s AND post_status = 'publish'", $page_slug, $post_type ) ); return ($page ? get_post($page, $output) : NULL); } Don't forget to flush rules in dashboard. A: Found the answer: After a looong day debugging thru wordpress core, I managed to solve this issue. Basicly, you CANT have a PAGE and a CUSTOM POST TYPE with the same name. If you do, the permalink rewrite rules will get confused and trigger a 404. A very simple solution I'm using is: The page that lists the custom post types is called in plural (eg. products) and the actual post type name is in singular (eg. product). So they dont conflict and it's all fine. Done Done! Hope this will save people's time. * *via rafaelxy (http://wordpress.org/support/topic/pagination-with-custom-post-type-listing) A: One possibility is that, on the admin dashboard Settings -> Reading, if you have selected a Posts page, the option Blog pages show at most will conflict with your custom posts_per_page query in that page. So make sure that you either unselect the posts page, or make sure the posts per page matches the Blog pages show at most option in Settings -> Reading. A: After debugging a long time even I got the solution regarding pagination issue Basically, In WordPress, you can't have a PAGE and a CUSTOM POST TYPE with the same name. If you do, the permalink rewrite rules will get confused and trigger a 404.
wordpress
{ "language": "en", "length": 479, "provenance": "stackexchange_00019.jsonl.gz:417749", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44537" }
[ 0.07275390625, 0.0089111328125, 0.0204925537109375, -0.0148468017578125, 0.015625, -0.03936767578125, 0.059539794921875, -0.04949951171875, 0.03338623046875, 0.01535797119140625, -0.00164794921875, -0.043792724609375, 0.01154327392578125, -0.054046630859375, -0.0119171142578125, -0.017120361328125, 0.0406494140625, -0.00685882568359375, 0.0192108154296875, -0.00913238525390625, 0.0269927978515625, 0.01690673828125, 0.0204620361328125, 0.0784912109375, 0.0176239013671875, -0.05084228515625, 0.040130615234375, -0.0362548828125, -0.013153076171875, -0.048858642578125, 0.001529693603515625, 0.04376220703125, 0.007740020751953125, 0.0185089111328125, -0.0299530029296875, -0.084716796875, 0.018463134765625, 0.0008454322814941406, -0.0013780593872070312, 0.008514404296875, 0.007160186767578125, 0.0024776458740234375, 0.035400390625, -0.043914794921875, 0.0011224746704101562, -0.0216827392578125, 0.01180267333984375, -0.0191192626953125, -0.01459503173828125, 0.0299530029296875, -0.01073455810546875, 0.0227203369140625, -0.005008697509765625, 0.037109375, 0.0101318359375, 0.004306793212890625, 0.02325439453125, -0.044677734375, 0.01041412353515625, -0.005344390869140625, 0.00533294677734375, 0.0183258056640625, 0.00583648681640625, 0.00946807861328125, -0.043731689453125, -0.00618743896484375, -0.03106689453125, 0.006938934326171875, -0.01580810546875, -0.06121826171875, -0.0114288330078125, 0.0022735595703125, -0.01261138916015625, -0.024444580078125, -0.0167388916015625, 0.007778167724609375, 0.002094268798828125, -0.0287017822265625, -0.005451202392578125, 0.01525115966796875, -0.007476806640625, 0.00844573974609375, -0.042694091796875, -0.0234527587890625, 0.0095062255859375, -0.0128631591796875, -0.030120849609375, -0.00460052490234375, -0.0311279296875, -0.0131683349609375, -0.0159912109375, -0.039947509765625, -0.00989532470703125, -0.030914306640625, 0.0052032470703125, -0.03564453125, 0.053009033203125, 0.0916748046875, -0.012115478515625, 0.0142669677734375, -0.0131378173828125, -0.03692626953125, 0.03887939453125, -0.0655517578125, 0.036041259765625, -0.004154205322265625, -0.012603759765625, -0.02850341796875, 0.05963134765625, 0.0203857421875, -0.010101318359375, 0.07037353515625, -0.0023956298828125, -0.044952392578125, -0.0163726806640625, 0.00914764404296875, -0.0222625732421875, -0.002655029296875, 0.02874755859375, -0.007366180419921875, -0.01407623291015625, 0.0173797607421875, 0.028839111328125, -0.044677734375, -0.005588531494140625, -0.0207061767578125, -0.01064300537109375, -0.03814697265625, 0.07177734375, 0.0247344970703125, -0.039794921875, 0.0027313232421875, 0.056854248046875, -0.0281219482421875, -0.00606536865234375, -0.027618408203125, 0.041595458984375, -0.00505828857421875, -0.038665771484375, 0.03460693359375, -0.025909423828125, -0.01555633544921875, 0.0323486328125, -0.034759521484375, 0.049468994140625, 0.0137939453125, 0.0198211669921875, 0.0216522216796875, -0.009490966796875, -0.01113128662109375, 0.0245361328125, -0.01235198974609375, 0.041717529296875, -0.0024890899658203125, -0.029998779296875, -0.01483154296875, -0.01300048828125, -0.007373809814453125, -0.0257415771484375, -0.01282501220703125, 0.05340576171875, 0.0142822265625, 0.0111541748046875, -0.0582275390625, -0.0733642578125, -0.041168212890625, -0.08282470703125, -0.0264892578125, 0.0025920867919921875, 0.028961181640625, -0.0208892822265625, -0.0195159912109375, -0.0166473388671875, 0.0199432373046875, -0.00775909423828125, 0.027191162109375, 0.00042510032653808594, -0.024505615234375, 0.030029296875, 0.053680419921875, 0.004245758056640625, -0.01306915283203125, 0.03704833984375, -0.02020263671875, -0.0709228515625, 0.07952880859375, 0.01690673828125, 0.048736572265625, -0.02105712890625, -0.004375457763671875, 0.0679931640625, 0.0703125, -0.053375244140625, 0.046234130859375, 0.016387939453125, -0.0341796875, -0.01117706298828125, -0.01190948486328125, -0.004878997802734375, -0.01019287109375, 0.0233612060546875, 0.0290679931640625, -0.0269622802734375, 0.0011854171752929688, -0.070068359375, -0.005809783935546875, -0.0163116455078125, 0.0297088623046875, 0.0426025390625, 0.0540771484375, -0.012298583984375, 0.00484466552734375, -0.00177001953125, -0.00807952880859375, -0.0149993896484375, -0.01042938232421875, 0.00809478759765625, -0.0204315185546875, -0.00441741943359375, 0.00768280029296875, 0.006008148193359375, 0.02325439453125, -0.01338958740234375, -0.005764007568359375, 0.03948974609375, -0.0290374755859375, -0.006988525390625, -0.026885986328125, 0.0118255615234375, -0.022857666015625, -0.0125579833984375, 0.0640869140625, 0.049957275390625, 0.0396728515625, -0.04949951171875, -0.0023937225341796875, 0.012847900390625, -0.001739501953125, 0.0144500732421875, 0.042236328125, 0.0175018310546875, 0.01403045654296875, -0.042999267578125, -0.0131988525390625, 0.00646209716796875, -0.06793212890625, -0.02490234375, 0.01061248779296875, -0.0308685302734375, -0.0015478134155273438, 0.03985595703125, 0.006908416748046875, 0.0171966552734375, -0.017303466796875, 0.00957489013671875, 0.00893402099609375, 0.0267486572265625, 0.056396484375, -0.0146942138671875, 0.00018906593322753906, -0.004486083984375, -0.002803802490234375, -0.01081085205078125, -0.003803253173828125, 0.0190582275390625, -0.0070953369140625, 0.0007576942443847656, -0.0177764892578125, -0.01983642578125, 0.0011491775512695312, 0.0166015625, -0.03265380859375, 0.00045990943908691406, -0.0007519721984863281, 0.042388916015625, -0.0513916015625, -0.040557861328125, 0.01256561279296875, 0.00922393798828125, -0.0231781005859375, -0.0186004638671875, 0.0107421875, -0.0290374755859375, -0.0169677734375, -0.0014247894287109375, -0.0226593017578125, -0.007266998291015625, 0.005741119384765625, 0.00087738037109375, 0.006649017333984375, 0.03082275390625, 0.034271240234375, -0.0038585662841796875, 0.028289794921875, -0.0003294944763183594, -0.005786895751953125, 0.06060791015625, -0.052154541015625, 0.05657958984375, -0.03814697265625, 0.03497314453125, 0.041656494140625, -0.0238800048828125, 0.01496124267578125, 0.0116119384765625, 0.0065460205078125, 0.0302581787109375, 0.006519317626953125, -0.0025730133056640625, -0.001728057861328125, -0.035675048828125, -0.0009012222290039062, 0.0233612060546875, 0.0014696121215820312, 0.020233154296875, -0.03131103515625, 0.001178741455078125, 0.0120697021484375, -0.091796875, -0.095703125, -0.0243988037109375, -0.09197998046875, 0.0268707275390625, 0.04266357421875, -0.031280517578125, -0.004123687744140625, 0.080078125, 0.03314208984375, 0.00008618831634521484, -0.01922607421875, -0.07196044921875, -0.05029296875, -0.0728759765625, 0.036834716796875, -0.01181793212890625, 0.006153106689453125, 0.0160369873046875, 0.0219268798828125, 0.023834228515625, -0.032867431640625, 0.029937744140625, 0.04034423828125, -0.0010318756103515625, -0.0009222030639648438, -0.0458984375, 0.042388916015625, 0.0096282958984375, 0.0190277099609375, 0.0389404296875, 0.01267242431640625, -0.000457763671875, -0.007114410400390625, 0.0282440185546875, -0.0300750732421875, 0.0140838623046875, 0.0034942626953125, -0.0142669677734375, 0.001483917236328125, 0.0214996337890625, -0.030517578125, -0.03253173828125, -0.03778076171875, -0.07232666015625, -0.010498046875, 0.08135986328125, 0.0152740478515625, -0.041656494140625, -0.03631591796875, -0.0118865966796875, -0.00914764404296875, -0.00760650634765625, -0.038055419921875, 0.0484619140625, -0.00029969215393066406, 0.001232147216796875, -0.00034308433532714844, 0.032501220703125, -0.00917816162109375, 0.004604339599609375, 0.00833892822265625, 0.00884246826171875, 0.0003075599670410156, 0.00787353515625, -0.035919189453125, -0.0418701171875, 0.04595947265625, 0.0172576904296875, -0.0016012191772460938, -0.02978515625, -0.050018310546875, -0.0038356781005859375, 0.0750732421875, -0.040069580078125, -0.028564453125, -0.016448974609375, 0.019287109375, 0.0194549560546875, -0.050689697265625, 0.0421142578125, -0.028594970703125, -0.06451416015625, -0.0029773712158203125, 0.00609588623046875, -0.03662109375, -0.0135498046875, -0.020843505859375, -0.03607177734375, -0.0265045166015625, 0.04541015625, 0.01151275634765625, 0.00820159912109375, 0.0306854248046875, -0.01319122314453125, 0.02130126953125, -0.042724609375, 0.01267242431640625, -0.0699462890625, -0.0318603515625, 0.033203125, 0.056060791015625, -0.00787353515625, -0.00846099853515625, -0.0252532958984375, 0.049957275390625, 0.034271240234375, 0.01099395751953125, 0.01412200927734375, -0.035125732421875, -0.03387451171875, 0.021484375, 0.01580810546875, -0.01537322998046875, 0.018463134765625, -0.01561737060546875, -0.0239715576171875, 0.00922393798828125, -0.07318115234375, 0.00732421875, -0.035858154296875, -0.027313232421875, -0.08758544921875, -0.031219482421875, 0.01099395751953125, 0.0164947509765625, 0.01025390625, -0.0167999267578125, -0.0345458984375, -0.0758056640625, 0.0101318359375, -0.01006317138671875, -0.01432037353515625, -0.0006747245788574219, 0.012420654296875, 0.0193328857421875, -0.0299835205078125, 0.00653839111328125, 0.0198974609375, 0.01477813720703125, -0.0038604736328125, 0.037933349609375, -0.00881195068359375, -0.004489898681640625, 0.03515625, -0.0240936279296875, -0.0083465576171875, 0.0156402587890625, 0.005008697509765625, -0.0119171142578125, -0.0499267578125, 0.028106689453125, -0.03887939453125, 0.03729248046875, 0.05950927734375, -0.0057830810546875, -0.031463623046875, -0.022735595703125, 0.064697265625, 0.0013065338134765625, -0.0018415451049804688, -0.06787109375, -0.0168304443359375, -0.0091705322265625, -0.0015382766723632812, 0.06585693359375, 0.0399169921875, -0.0007929801940917969, 0.042724609375, 0.052398681640625, 0.026947021484375, 0.053375244140625, 0.0292510986328125, -0.022216796875, 0.04010009765625, 0.03692626953125, -0.0018444061279296875, 0.022674560546875, 0.000957489013671875, 0.0224151611328125, 0.02154541015625, -0.01543426513671875, -0.041717529296875, 0.0011758804321289062, -0.006763458251953125, -0.022735595703125, 0.03466796875, 0.040374755859375, 0.0113677978515625, -0.004459381103515625, -0.0086212158203125, 0.03765869140625, -0.0115814208984375, -0.0350341796875, 0.052581787109375, 0.019561767578125, 0.007152557373046875, 0.0021343231201171875, 0.1046142578125, -0.0024356842041015625, 0.0489501953125, -0.0187835693359375, 0.014923095703125, -0.0245361328125, 0.05865478515625, 0.0135955810546875, -0.006320953369140625, 0.00008445978164672852, 0.03515625, 0.0121612548828125, -0.01012420654296875, -0.03326416015625, 0.03216552734375, 0.01210784912109375, -0.005619049072265625, 0.025482177734375, -0.003620147705078125, 0.00859832763671875, -0.032135009765625, 0.0186004638671875, -0.0023822784423828125, -0.01152801513671875, -0.03192138671875, -0.007061004638671875, 0.0186004638671875, 0.00737762451171875, -0.020111083984375, 0.006397247314453125, -0.06451416015625, -0.0142669677734375, 0.05999755859375, -0.0298614501953125, -0.0144805908203125, -0.01617431640625, 0.033660888671875, -0.03399658203125, -0.0189971923828125, 0.002468109130859375, 0.032623291015625, -0.03082275390625, -0.00992584228515625, 0.0260162353515625, -0.044036865234375, 0.047698974609375, -0.01763916015625, -0.01184844970703125, -0.028045654296875, 0.0196685791015625, 0.054779052734375, 0.04571533203125, -0.041717529296875, 0.0084686279296875, -0.0477294921875, -0.01111602783203125, 0.0184783935546875, -0.0200347900390625, -0.04248046875, -0.037841796875, 0.01244354248046875, 0.0181732177734375, -0.002410888671875, -0.044281005859375, -0.020965576171875, -0.007049560546875, 0.034332275390625, 0.006256103515625, -0.00977325439453125, 0.09930419921875, -0.0233154296875, 0.037567138671875, 0.008880615234375, 0.051910400390625, -0.03045654296875, -0.006984710693359375, 0.0023059844970703125, -0.04876708984375, -0.0261993408203125, 0.01122283935546875, -0.026214599609375, 0.060882568359375, 0.046966552734375, -0.005069732666015625, -0.009002685546875, 0.00604248046875, 0.00324249267578125, -0.0184478759765625, -0.010650634765625, 0.024627685546875, 0.004993438720703125, 0.01641845703125, -0.002613067626953125, -0.00887298583984375, -0.006832122802734375, -0.01303863525390625, 0.0058746337890625, 0.01425933837890625, 0.006656646728515625, -0.0026397705078125, -0.029052734375, -0.01013946533203125, 0.05657958984375, 0.0469970703125, 0.0565185546875, -0.01218414306640625, 0.028778076171875, 0.0234375, 0.01104736328125, -0.00815582275390625, 0.041656494140625, 0.061309814453125, -0.009490966796875, -0.0192413330078125, 0.0146026611328125, -0.0311431884765625, -0.021514892578125, 0.029571533203125, 0.0137786865234375, -0.0292510986328125, -0.01116943359375, -0.0245513916015625, -0.007171630859375, 0.0213470458984375, -0.0017766952514648438, -0.00890350341796875, 0.040191650390625, 0.0052947998046875, -0.01568603515625, -0.03131103515625, 0.00605010986328125, 0.026275634765625, -0.01110076904296875, -0.0032405853271484375, -0.028656005859375, 0.0006852149963378906, -0.031036376953125, -0.00289154052734375, 0.025726318359375, -0.017242431640625, -0.01493072509765625, -0.0110321044921875, 0.028350830078125, -0.0239105224609375, -0.0245361328125, 0.038604736328125, -0.0238189697265625, 0.019622802734375, 0.021820068359375, 0.0169830322265625, 0.0159454345703125, 0.038818359375, -0.0018291473388671875, 0.00414276123046875, 0.00533294677734375, -0.029632568359375, 0.0113067626953125, 0.0020999908447265625, 0.01062774658203125, -0.039703369140625, 0.003902435302734375, 0.0009098052978515625, -0.0276336669921875, -0.0243377685546875, -0.0099334716796875, 0.00025177001953125, 0.09173583984375, -0.039886474609375, -0.018829345703125, 0.01971435546875, -0.0130615234375, -0.01030731201171875, -0.01261138916015625, 0.0029201507568359375, -0.04461669921875, -0.01885986328125, -0.001434326171875, -0.0231170654296875, 0.020233154296875, -0.0007185935974121094, -0.036865234375, 0.07928466796875, -0.00959014892578125, 0.026153564453125, 0.06866455078125, 0.0128173828125, -0.043182373046875, -0.0037403106689453125, -0.0345458984375, 0.018951416015625, -0.001094818115234375, 0.05059814453125, -0.050994873046875, -0.01702880859375, 0.0137176513671875, 0.05108642578125, 0.03900146484375, 0.004032135009765625, -0.051666259765625, 0.011077880859375, 0.060028076171875, 0.044830322265625, 0.034423828125, 0.03619384765625, -0.03631591796875, 0.001880645751953125, 0.003513336181640625, -0.047760009765625, 0.00655364990234375, -0.01837158203125, -0.03790283203125, -0.0175323486328125, 0.0019817352294921875, 0.00103759765625, -0.0243682861328125, -0.01012420654296875, -0.06756591796875, -0.014495849609375, 0.037445068359375, -0.0263519287109375, -0.00443267822265625, 0.039276123046875, 0.048004150390625, -0.08026123046875, -0.0142059326171875, -0.0399169921875, 0.052276611328125, 0.0082855224609375, -0.029541015625, 0.030731201171875, 0.0198822021484375, 0.01493072509765625, -0.0179443359375, -0.019012451171875, -0.00876617431640625, 0.017578125, 0.06591796875, 0.061309814453125, 0.01328277587890625, -0.0257415771484375, -0.015777587890625, 0.0587158203125, 0.0810546875, -0.061431884765625, -0.0237579345703125, 0.0063323974609375, 0.0088653564453125, 0.01222991943359375, -0.0119171142578125, 0.00818634033203125, -0.00351715087890625, -0.0024051666259765625, -0.0206146240234375, 0.0004963874816894531, 0.0260772705078125, 0.01044464111328125, -0.01232147216796875, -0.00698089599609375, -0.01259613037109375, 0.01140594482421875, -0.05181884765625, 0.01103973388671875, 0.01776123046875, 0.07257080078125, 0.0195159912109375, 0.05096435546875, -0.0130462646484375, -0.03802490234375, -0.006038665771484375, 0.060882568359375, -0.01245880126953125, 0.018341064453125, -0.1156005859375, -0.1177978515625, 0.032012939453125, 0.063720703125, 0.0119476318359375, 0.02008056640625, -0.007724761962890625, 0.005214691162109375, 0.0195465087890625, 0.0006694793701171875, 0.054443359375, -0.016448974609375, 0.003292083740234375, -0.048004150390625, -0.00569915771484375, -0.0240936279296875, -0.00844573974609375, 0.007572174072265625, 0.0018768310546875, -0.005939483642578125, -0.024627685546875, 0.00952911376953125, 0.0026702880859375, -0.033172607421875, 0.005779266357421875, 0.01552581787109375, 0.05389404296875, 0.00823974609375, -0.06573486328125, -0.0282135009765625, -0.01004791259765625, -0.06689453125, 0.0389404296875, 0.06036376953125, -0.006092071533203125, -0.026275634765625, 0.0174102783203125, 0.0099334716796875, -0.000965118408203125, -0.01129150390625, 0.010528564453125, 0.026947021484375, 0.0269012451171875, 0.033721923828125, -0.044525146484375, -0.01538848876953125, -0.0022563934326171875, 0.00942230224609375, -0.0089569091796875, 0.10711669921875, -0.0287322998046875, 0.00096893310546875, -0.004505157470703125, 0.00791168212890625, -0.0284576416015625, -0.0146942138671875, 0.00921630859375, -0.0214080810546875, 0.007366180419921875, -0.005573272705078125, -0.03289794921875, 0.0362548828125, 0.0208282470703125, -0.01497650146484375, 0.0374755859375, -0.0135650634765625, 0.00772857666015625, -0.017578125, -0.01357269287109375, -0.03729248046875, -0.06787109375, -0.0535888671875, 0.029449462890625, -0.002346038818359375, 0.0089569091796875, -0.05255126953125, 0.01467132568359375, 0.008026123046875, -0.0293121337890625, 0.0260467529296875, -0.0246429443359375, 0.04437255859375, 0.04071044921875, -0.032135009765625, -0.0005803108215332031, 0.0006003379821777344, -0.0182037353515625, 0.01012420654296875, 0.006561279296875, -0.0168914794921875, 0.0095062255859375, -0.0216064453125, -0.05328369140625, -0.047027587890625, -0.03662109375, -0.0394287109375, -0.033660888671875, 0.0170745849609375, -0.0267791748046875, -0.036895751953125, -0.00731658935546875, -0.0022678375244140625, -0.031341552734375, -0.011322021484375, 0.0022449493408203125, 0.00154876708984375, -0.0181732177734375, 0.012451171875, 0.0191497802734375, 0.022216796875, 0.02081298828125, -0.07879638671875, 0.05645751953125, -0.018646240234375, 0.043487548828125, -0.0168914794921875, 0.022186279296875, -0.00795745849609375, -0.00302886962890625, -0.047119140625, 0.0260467529296875, -0.035675048828125, -0.0063934326171875, -0.0021915435791015625, -0.015899658203125, 0.025604248046875, -0.01271820068359375, -0.025543212890625, -0.0214385986328125, 0.0001430511474609375, 0.01401519775390625, 0.005603790283203125, -0.017120361328125, -0.00601959228515625, 0.01763916015625, -0.00913238525390625, -0.0181884765625, -0.006641387939453125, 0.0038700103759765625, -0.00811004638671875, 0.023468017578125, -0.048736572265625, -0.0260009765625, -0.0394287109375, -0.035797119140625, 0.038818359375, 0.0333251953125, -0.0135650634765625, -0.042755126953125, -0.00006079673767089844, -0.0260467529296875, 0.060516357421875, 0.009490966796875, -0.0192108154296875, -0.0031986236572265625, 0.033599853515625, 0.009063720703125, 0.053955078125, -0.0008192062377929688, 0.034454345703125, -0.0239105224609375, 0.007091522216796875, -0.0157928466796875, 0.0016622543334960938, 0.02099609375, -0.0059967041015625, 0.027679443359375, 0.0323486328125, -0.01068878173828125, -0.006488800048828125, -0.009918212890625, -0.05145263671875, 0.0272674560546875, -0.0126190185546875, -0.04010009765625, -0.041046142578125, -0.003314971923828125, 0.02606201171875, 0.01346588134765625, 0.016998291015625, -0.0677490234375, -0.035675048828125, -0.042877197265625, 0.014007568359375, 0.044647216796875, -0.092041015625, 0.0251922607421875, 0.01012420654296875, -0.004489898681640625, 0.0121612548828125, -0.004077911376953125, -0.0269622802734375, -0.026458740234375, -0.032012939453125, -0.004878997802734375, -0.0229034423828125, -0.004039764404296875, 0.032958984375, -0.027191162109375, -0.0122833251953125, -0.0156097412109375, 0.0288543701171875, -0.021392822265625, -0.05059814453125, 0.03131103515625, -0.009521484375, -0.017059326171875, -0.01105499267578125, 0.0277557373046875, 0.0257415771484375, 0.001041412353515625, -0.0660400390625, 0.00836944580078125, 0.00710296630859375, -0.00621795654296875, -0.0177001953125, -0.006824493408203125, 0.028350830078125, -0.00664520263671875, 0.0472412109375, 0.0105133056640625, 0.060089111328125, -0.0012006759643554688, 0.0301513671875, 0.00603485107421875, -0.01267242431640625, 0.01319122314453125, -0.0258026123046875, 0.01123809814453125, 0.01271820068359375, 0.0036983489990234375, -0.0237579345703125, -0.02130126953125, -0.06512451171875, 0.004886627197265625, -0.0006809234619140625 ]
b78ee6e357970eb0d248ff6f8f5da00d7b159e21
Wordpress Stackexchange Q: How to change the text of link 'Home' in bbPress forum breadcrumb? I just installed bbPress 2.0.2 forum plugin for WordPress, and would like to change the text of link Home to iGeek (or anything else, for that matter). So the breadcrumb Home › Community becomes iGeek › Community (or something like that). How do I do that? In case it helps, this is the code in \wp-content\plugins\bbpress\bbp-includes\bbp-common-template.php that determines the text: /** Home Text *********************************************************/ // No custom home text if ( empty( $args['home_text'] ) ) { // Set home text to page title if ( $front_id = get_option( 'page_on_front' ) ) { $pre_front_text = get_the_title( $front_id ); // Default to 'Home' } else { $pre_front_text = __( 'Home', 'bbpress' ); } } A: There is no specific hook to filter the home text only, so we need to filter the whole breadcrumb and replace 'Home' with 'iGeek': function wpse_44597_custom_home_text_in_bbp_breadcrumb( $trail ) { return str_ireplace( 'Home', 'iGeek', $trail ); } add_filter( 'bbp_get_breadcrumb', 'wpse_44597_custom_home_text_in_bbp_breadcrumb' ); The above example has been successfully tested on my own site running bbPress 2.2.3.
Q: How to change the text of link 'Home' in bbPress forum breadcrumb? I just installed bbPress 2.0.2 forum plugin for WordPress, and would like to change the text of link Home to iGeek (or anything else, for that matter). So the breadcrumb Home › Community becomes iGeek › Community (or something like that). How do I do that? In case it helps, this is the code in \wp-content\plugins\bbpress\bbp-includes\bbp-common-template.php that determines the text: /** Home Text *********************************************************/ // No custom home text if ( empty( $args['home_text'] ) ) { // Set home text to page title if ( $front_id = get_option( 'page_on_front' ) ) { $pre_front_text = get_the_title( $front_id ); // Default to 'Home' } else { $pre_front_text = __( 'Home', 'bbpress' ); } } A: There is no specific hook to filter the home text only, so we need to filter the whole breadcrumb and replace 'Home' with 'iGeek': function wpse_44597_custom_home_text_in_bbp_breadcrumb( $trail ) { return str_ireplace( 'Home', 'iGeek', $trail ); } add_filter( 'bbp_get_breadcrumb', 'wpse_44597_custom_home_text_in_bbp_breadcrumb' ); The above example has been successfully tested on my own site running bbPress 2.2.3. A: There are two possibilities, depending what theme you are using: 1 Locate call to bbp_breadcrumb or bbp_get_breadcrumb function in your template files and add arguments to your function, like this: $args = array( 'home_text' => 'iGeek' ); bbp_breadcrumb( $args ); // or bbp_get_breadcrumb( $args ), depending on which theme has been used in the first place 2 Create a page that you will use as your home page (depends on weather your theme supports such functionality or not; if there is a page template available for homepage then select it), name it 'iGeek'. Go to Reading -> Settings in your WP admin, select 'Static page' in 'Front page displays' option and select your 'iGeek' page as front page. Save options and the link in breadcrumb should change its name. This may change the way your home page is displayed and can vary from theme to theme. I suggest trying the former method first. EDIT: I have found another method to do that - put below code in your functions.php: function modify_breadcrumb_args() { $args['home_text'] = 'iGeek'; return $args; } add_filter( 'bbp_before_get_breadcrumb_parse_args', 'modify_breadcrumb_args' ); A: The string is now in bbpress/includes/common/template-tags.php. Hook into bbp_no_breadcrumb, register a filter for gettext and change the text: add_filter( 'bbp_no_breadcrumb', 'wpse_44597_change_home_text' ); function wpse_44597_change_home_text( $translated, $original = '', $domain = '' ) { if ( 'bbp_no_breadcrumb' === current_filter() ) { add_filter( 'gettext', __FUNCTION__, 10, 3 ); return FALSE; } if ( 'Home' === $original && 'bbpress' === $domain ) { remove_filter( current_filter(), __FUNCTION__ ); return get_bloginfo( 'name' ); } return $translated; } The difference to a filter on bbp_get_breadcrumb is: bbp_get_breadcrumb is the complete bread crumb, and it is really hard to find the string for the home page without touching the wrong matches. WordPress might be installed in /www/Home/wp/, or another item might contain the word Home. You do not want to touch that. A: jQuery alternative if no plugin hook exists: <script type="text/javascript"> jQuery(document).ready( function($) { $('#bborg-crumbs a:first').html('iGeek'); }); </script> A: I found out how to change the breadcrumb url, alt and text myself. You can change the code in bbp-common-template.php (/wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php) on line 1889 // Add the breadcrumb $crumbs[] = 'iGeek';
wordpress
{ "language": "en", "length": 538, "provenance": "stackexchange_00019.jsonl.gz:417765", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44597" }
[ -0.00785064697265625, 0.01538848876953125, -0.0132598876953125, 0.003986358642578125, 0.0226898193359375, -0.01425933837890625, 0.019287109375, -0.0338134765625, 0.03759765625, 0.006626129150390625, 0.002941131591796875, -0.047943115234375, -0.0010251998901367188, -0.042938232421875, -0.030426025390625, -0.0238189697265625, 0.0294952392578125, -0.02410888671875, 0.0267486572265625, -0.0071868896484375, 0.0281829833984375, -0.00170135498046875, 0.0065460205078125, 0.0303802490234375, 0.0262298583984375, -0.0250396728515625, 0.10675048828125, -0.046417236328125, 0.0546875, -0.005260467529296875, 0.018798828125, -0.05828857421875, 0.048126220703125, 0.000820159912109375, -0.036712646484375, -0.0322265625, 0.0248260498046875, -0.0092926025390625, -0.0290985107421875, 0.032928466796875, 0.0286865234375, -0.0007810592651367188, -0.0211944580078125, 0.03167724609375, -0.035369873046875, -0.018707275390625, 0.016143798828125, -0.0255279541015625, -0.01129913330078125, 0.037841796875, 0.00504302978515625, 0.0172576904296875, 0.007511138916015625, -0.006633758544921875, 0.041229248046875, 0.06414794921875, -0.058868408203125, 0.03790283203125, 0.011077880859375, 0.0118255615234375, 0.0194091796875, -0.0014562606811523438, 0.00913238525390625, 0.01042938232421875, -0.0220489501953125, -0.02874755859375, -0.019775390625, 0.0180816650390625, -0.0191802978515625, -0.034912109375, 0.0189971923828125, -0.01629638671875, 0.02691650390625, -0.07159423828125, -0.029632568359375, 0.01593017578125, -0.0266265869140625, -0.0384521484375, 0.036712646484375, -0.0552978515625, -0.018890380859375, -0.07025146484375, -0.0322265625, 0.0214385986328125, -0.022369384765625, 0.0253448486328125, -0.01385498046875, 0.0038356781005859375, -0.019500732421875, 0.0496826171875, -0.0009598731994628906, -0.048248291015625, -0.017333984375, 0.07196044921875, 0.0264129638671875, 0.0021839141845703125, -0.029296875, 0.00922393798828125, -0.026275634765625, 0.031005859375, -0.021209716796875, -0.00095367431640625, 0.030181884765625, -0.0347900390625, 0.0186309814453125, 0.001995086669921875, -0.044830322265625, 0.029327392578125, 0.055755615234375, 0.055816650390625, 0.007411956787109375, -0.006008148193359375, -0.0228118896484375, 0.00337982177734375, -0.041595458984375, -0.005603790283203125, -0.03533935546875, -0.019683837890625, -0.0147705078125, 0.0088958740234375, -0.0174560546875, -0.0189666748046875, 0.052581787109375, 0.0006661415100097656, 0.0040740966796875, -0.00182342529296875, -0.02215576171875, -0.019378662109375, -0.02716064453125, -0.0215301513671875, -0.00899505615234375, 0.044891357421875, 0.03582763671875, 0.020660400390625, -0.0087738037109375, 0.00614166259765625, 0.0576171875, -0.060089111328125, 0.0025920867919921875, 0.05718994140625, 0.003387451171875, -0.02490234375, -0.0180206298828125, -0.00258636474609375, 0.0016565322875976562, 0.02032470703125, 0.0309906005859375, 0.0176849365234375, -0.051513671875, -0.038726806640625, 0.01056671142578125, 0.01154327392578125, 0.0533447265625, 0.02252197265625, -0.03533935546875, -0.007720947265625, 0.035736083984375, -0.041595458984375, -0.038848876953125, -0.061737060546875, -0.036895751953125, -0.0166168212890625, 0.03692626953125, -0.0175323486328125, -0.026519775390625, 0.03704833984375, -0.000006735324859619141, -0.0104217529296875, 0.01351165771484375, 0.02557373046875, 0.01739501953125, 0.01323699951171875, 0.01050567626953125, -0.01546478271484375, 0.0013484954833984375, -0.00894927978515625, -0.044403076171875, 0.06988525390625, 0.035491943359375, 0.034271240234375, 0.0280303955078125, -0.040191650390625, 0.09197998046875, -0.00806427001953125, -0.051910400390625, 0.01503753662109375, 0.0006403923034667969, 0.03692626953125, 0.017974853515625, 0.004909515380859375, 0.032196044921875, -0.004238128662109375, -0.0555419921875, 0.0258331298828125, -0.017059326171875, -0.0372314453125, 0.00806427001953125, -0.032073974609375, 0.00286102294921875, 0.056915283203125, 0.04669189453125, 0.03765869140625, 0.0029277801513671875, -0.021942138671875, -0.0198211669921875, 0.00087738037109375, -0.01654052734375, 0.0443115234375, 0.024200439453125, 0.03814697265625, -0.018280029296875, -0.0389404296875, 0.01349639892578125, -0.017578125, -0.0301971435546875, -0.018829345703125, 0.00027751922607421875, 0.0016832351684570312, -0.007801055908203125, -0.004764556884765625, 0.0028076171875, -0.01261138916015625, -0.0203094482421875, 0.03436279296875, 0.0256805419921875, -0.042327880859375, -0.0159759521484375, -0.026214599609375, 0.00418853759765625, 0.0025310516357421875, -0.047943115234375, 0.04595947265625, 0.03759765625, -0.00891876220703125, -0.0177001953125, 0.0169830322265625, 0.023712158203125, -0.057159423828125, -0.0087127685546875, 0.04656982421875, 0.03173828125, 0.0037593841552734375, -0.02587890625, -0.032257080078125, 0.04736328125, -0.033172607421875, -0.0002772808074951172, -0.00473785400390625, 0.01351165771484375, 0.02996826171875, -0.041107177734375, 0.024993896484375, 0.0224151611328125, -0.0501708984375, 0.0228271484375, 0.054534912109375, -0.0103759765625, -0.007007598876953125, -0.025177001953125, 0.00934600830078125, 0.018951416015625, 0.02716064453125, -0.01727294921875, 0.020233154296875, 0.018218994140625, -0.033203125, 0.030914306640625, 0.0187530517578125, -0.0301055908203125, -0.023406982421875, 0.03265380859375, 0.04351806640625, -0.024261474609375, -0.00324249267578125, 0.07025146484375, -0.035552978515625, -0.06475830078125, 0.02178955078125, 0.0002391338348388672, 0.006885528564453125, 0.00726318359375, 0.0167694091796875, 0.039398193359375, -0.01303863525390625, -0.01335906982421875, -0.06365966796875, 0.0270843505859375, -0.0037784576416015625, -0.021484375, -0.0312347412109375, -0.005702972412109375, 0.0406494140625, -0.0194244384765625, 0.0330810546875, -0.00989532470703125, -0.004764556884765625, 0.0263519287109375, -0.014404296875, 0.0027599334716796875, -0.00867462158203125, 0.06024169921875, 0.04937744140625, -0.0016984939575195312, -0.003780364990234375, 0.007625579833984375, 0.050537109375, 0.0197296142578125, -0.01258087158203125, -0.0079803466796875, 0.006626129150390625, -0.02093505859375, 0.0115966796875, -0.003215789794921875, 0.0178070068359375, 0.00923919677734375, -0.0438232421875, 0.0200653076171875, 0.00615692138671875, -0.04156494140625, -0.02728271484375, -0.023590087890625, -0.0200958251953125, 0.01204681396484375, 0.0165252685546875, -0.016357421875, -0.007061004638671875, 0.0308837890625, 0.00753021240234375, -0.01290130615234375, -0.030487060546875, -0.0245361328125, -0.04925537109375, -0.046356201171875, 0.02606201171875, -0.0020904541015625, -0.01392364501953125, 0.01318359375, -0.008575439453125, 0.01641845703125, 0.006053924560546875, 0.034912109375, 0.11444091796875, -0.00743865966796875, -0.040069580078125, 0.0239105224609375, -0.037841796875, 0.002620697021484375, 0.0019254684448242188, 0.0224761962890625, 0.04168701171875, -0.0243377685546875, -0.0014019012451171875, -0.025146484375, -0.0065460205078125, 0.00223541259765625, -0.004459381103515625, 0.01898193359375, 0.018829345703125, 0.0191497802734375, -0.01654052734375, -0.0223541259765625, 0.0268402099609375, -0.0156707763671875, -0.0003380775451660156, 0.023284912109375, -0.04534912109375, -0.004810333251953125, 0.0108642578125, 0.00445556640625, -0.00856781005859375, 0.059967041015625, -0.0257568359375, 0.0203857421875, -0.024810791015625, -0.021514892578125, -0.053192138671875, 0.036163330078125, -0.031890869140625, 0.006900787353515625, 0.009796142578125, -0.0408935546875, -0.0162353515625, -0.01348876953125, -0.02764892578125, -0.0056304931640625, 0.033721923828125, -0.0260467529296875, 0.0211334228515625, 0.0025234222412109375, -0.0151824951171875, 0.004917144775390625, 0.044769287109375, -0.10308837890625, -0.0026378631591796875, -0.00009632110595703125, 0.00937652587890625, 0.0214691162109375, -0.04632568359375, -0.044677734375, -0.038543701171875, -0.08917236328125, 0.01409149169921875, -0.0154571533203125, -0.0285186767578125, 0.0015735626220703125, 0.00043082237243652344, -0.042816162109375, -0.044097900390625, 0.0303497314453125, 0.017303466796875, -0.006450653076171875, 0.058990478515625, -0.036468505859375, 0.0460205078125, -0.04498291015625, -0.004833221435546875, -0.03851318359375, -0.01044464111328125, -0.0022983551025390625, 0.032684326171875, 0.01141357421875, -0.00970458984375, -0.00029969215393066406, 0.043212890625, -0.00811767578125, 0.035369873046875, 0.0126190185546875, 0.006855010986328125, 0.0236053466796875, 0.0182342529296875, 0.0093231201171875, -0.016754150390625, 0.036529541015625, 0.01605224609375, -0.08111572265625, 0.0284271240234375, -0.0176544189453125, 0.035003662109375, 0.050079345703125, -0.0428466796875, -0.089111328125, -0.053009033203125, -0.027496337890625, -0.0226898193359375, 0.037109375, -0.05352783203125, -0.051177978515625, -0.07720947265625, 0.0006780624389648438, 0.0020961761474609375, -0.0222930908203125, 0.0051116943359375, 0.01715087890625, 0.023162841796875, -0.0133514404296875, 0.04290771484375, 0.00783538818359375, 0.0325927734375, 0.00136566162109375, 0.0426025390625, 0.01111602783203125, -0.020538330078125, 0.05877685546875, -0.0014829635620117188, -0.01507568359375, 0.009613037109375, 0.06201171875, 0.0222015380859375, 0.0198211669921875, -0.006977081298828125, 0.006999969482421875, -0.0228271484375, 0.0175628662109375, 0.0166778564453125, -0.022125244140625, 0.010894775390625, 0.05059814453125, -0.016326904296875, 0.01849365234375, -0.0283966064453125, -0.003940582275390625, 0.00594329833984375, 0.0469970703125, 0.029266357421875, 0.0142364501953125, 0.00896453857421875, -0.0019893646240234375, 0.0162200927734375, -0.004058837890625, 0.0166778564453125, -0.04205322265625, -0.02978515625, 0.0220947265625, -0.0245513916015625, -0.0232391357421875, 0.044586181640625, -0.0122528076171875, 0.041046142578125, 0.0036792755126953125, -0.020965576171875, -0.033782958984375, -0.0079498291015625, 0.05670166015625, 0.020111083984375, 0.0235595703125, -0.002288818359375, -0.005756378173828125, -0.022796630859375, 0.007755279541015625, 0.050201416015625, -0.014892578125, -0.01155853271484375, -0.00217437744140625, -0.017303466796875, 0.007503509521484375, 0.0010423660278320312, 0.035003662109375, 0.057098388671875, -0.0195465087890625, -0.031982421875, -0.00567626953125, 0.005161285400390625, 0.0168914794921875, 0.03228759765625, -0.0078887939453125, -0.0145721435546875, -0.0007948875427246094, 0.0258026123046875, 0.0015497207641601562, 0.0111083984375, 0.033203125, 0.0272674560546875, -0.003604888916015625, -0.0037021636962890625, -0.02508544921875, -0.035308837890625, -0.015380859375, 0.059326171875, 0.040802001953125, -0.041839599609375, -0.027801513671875, 0.0141448974609375, 0.039215087890625, 0.00966644287109375, 0.0158843994140625, -0.0218658447265625, 0.0116729736328125, 0.00540924072265625, -0.018646240234375, -0.049468994140625, -0.0008306503295898438, 0.0144195556640625, -0.03485107421875, -0.0196533203125, 0.0394287109375, -0.0277252197265625, 0.01377105712890625, -0.06842041015625, -0.028778076171875, 0.08367919921875, 0.010223388671875, 0.08642578125, -0.05462646484375, -0.044158935546875, 0.00739288330078125, -0.01213836669921875, 0.048858642578125, 0.01084136962890625, -0.00027370452880859375, -0.0014820098876953125, -0.041015625, -0.016357421875, -0.043670654296875, -0.03411865234375, -0.0209197998046875, 0.0022125244140625, 0.0034503936767578125, 0.01425933837890625, -0.02313232421875, -0.0210723876953125, -0.005245208740234375, 0.0246734619140625, 0.029388427734375, 0.0276031494140625, -0.040374755859375, 0.0703125, -0.004016876220703125, 0.06976318359375, -0.0028896331787109375, 0.025848388671875, -0.0006499290466308594, -0.033233642578125, -0.01262664794921875, -0.0225067138671875, -0.005672454833984375, 0.001132965087890625, 0.00524139404296875, 0.0219573974609375, 0.05072021484375, -0.003261566162109375, 0.054595947265625, 0.003448486328125, -0.0103302001953125, -0.00646209716796875, -0.034210205078125, 0.01091766357421875, 0.057464599609375, 0.00246429443359375, -0.00846099853515625, -0.027679443359375, -0.0226287841796875, 0.026092529296875, -0.00965118408203125, -0.013702392578125, -0.0279083251953125, 0.007793426513671875, -0.03314208984375, 0.044342041015625, 0.1021728515625, -0.000011742115020751953, 0.036712646484375, 0.01934814453125, -0.0007576942443847656, 0.0149078369140625, 0.003353118896484375, 0.012725830078125, -0.00838470458984375, 0.0227508544921875, 0.0020809173583984375, 0.004756927490234375, 0.034210205078125, -0.004833221435546875, -0.006427764892578125, -0.0069427490234375, 0.0167999267578125, -0.04266357421875, 0.0039215087890625, -0.0032100677490234375, 0.0487060546875, 0.075927734375, 0.0654296875, 0.00302886962890625, -0.0009655952453613281, -0.06072998046875, -0.036834716796875, -0.000021457672119140625, -0.0010671615600585938, 0.01351165771484375, -0.031402587890625, -0.0227813720703125, -0.0078582763671875, -0.0012378692626953125, -0.055877685546875, 0.0279998779296875, 0.02349853515625, -0.0182952880859375, -0.04339599609375, 0.0100555419921875, 0.0157318115234375, -0.0095062255859375, -0.08990478515625, 0.002490997314453125, 0.0150146484375, -0.01263427734375, -0.001163482666015625, 0.0250701904296875, 0.010498046875, 0.028045654296875, -0.00724029541015625, 0.0111846923828125, -0.022003173828125, 0.01534271240234375, 0.033660888671875, -0.0357666015625, -0.0130767822265625, 0.0080718994140625, -0.05474853515625, 0.01371002197265625, -0.0175628662109375, 0.00627899169921875, -0.036102294921875, -0.07208251953125, 0.084716796875, 0.0167999267578125, -0.04022216796875, -0.023101806640625, 0.0128021240234375, 0.0112152099609375, -0.00629425048828125, 0.0562744140625, -0.05621337890625, -0.026275634765625, 0.02789306640625, -0.035400390625, -0.0452880859375, -0.01235198974609375, -0.04815673828125, 0.07537841796875, -0.0140228271484375, -0.01318359375, -0.0299835205078125, 0.03466796875, 0.0131988525390625, 0.03094482421875, -0.0234832763671875, 0.053863525390625, -0.020599365234375, 0.0577392578125, -0.0306549072265625, 0.006938934326171875, 0.03759765625, 0.00897216796875, 0.01837158203125, 0.0048370361328125, -0.0270233154296875, -0.019989013671875, -0.00012111663818359375, 0.0021648406982421875, -0.01204681396484375, 0.041107177734375, -0.0194091796875, -0.018829345703125, 0.038909912109375, -0.05780029296875, 0.01953125, -0.0272064208984375, 0.00817108154296875, -0.038055419921875, 0.0245513916015625, 0.037445068359375, -0.0283966064453125, -0.01198577880859375, -0.0026149749755859375, -0.036590576171875, 0.00926971435546875, -0.0660400390625, -0.0257415771484375, 0.016204833984375, -0.0236663818359375, -0.024932861328125, 0.00881195068359375, -0.025604248046875, 0.01139068603515625, -0.0013055801391601562, 0.03558349609375, 0.041015625, 0.01092529296875, 0.0228118896484375, -0.00467681884765625, 0.01483154296875, -0.0025634765625, 0.00745391845703125, 0.042724609375, 0.0163421630859375, 0.005035400390625, -0.02777099609375, 0.051666259765625, 0.0085601806640625, 0.055206298828125, -0.0577392578125, -0.035430908203125, 0.016357421875, -0.01207733154296875, -0.0232696533203125, 0.0142059326171875, 0.00597381591796875, -0.0161895751953125, 0.0207977294921875, -0.0090484619140625, 0.034515380859375, 0.0160064697265625, 0.005100250244140625, -0.02191162109375, -0.00750732421875, -0.031036376953125, 0.044281005859375, -0.02288818359375, 0.00379180908203125, 0.01027679443359375, -0.007534027099609375, -0.0014781951904296875, 0.00536346435546875, 0.04339599609375, 0.032318115234375, -0.00850677490234375, 0.0289154052734375, 0.04278564453125, 0.00855255126953125, -0.02313232421875, -0.032318115234375, 0.04559326171875, 0.0361328125, 0.060516357421875, 0.07891845703125, 0.05120849609375, -0.028411865234375, 0.00873565673828125, 0.044647216796875, 0.04931640625, -0.038238525390625, 0.02093505859375, -0.036041259765625, 0.022308349609375, -0.006816864013671875, 0.00437164306640625, -0.04949951171875, 0.037139892578125, 0.0005426406860351562, 0.04644775390625, 0.033599853515625, 0.01476287841796875, 0.0201416015625, 0.0025348663330078125, -0.01265716552734375, 0.01336669921875, 0.0487060546875, -0.0313720703125, -0.017913818359375, -0.010406494140625, -0.0019855499267578125, 0.0308074951171875, 0.0565185546875, 0.0240325927734375, -0.000056684017181396484, -0.0215301513671875, -0.00994110107421875, 0.034637451171875, -0.039520263671875, -0.005847930908203125, 0.00872802734375, -0.0022678375244140625, -0.011932373046875, -0.00997161865234375, 0.01282501220703125, 0.0196990966796875, -0.0167388916015625, -0.038360595703125, 0.08624267578125, -0.01125335693359375, -0.0224151611328125, -0.04327392578125, 0.039398193359375, -0.042236328125, -0.031768798828125, 0.0195159912109375, 0.046295166015625, 0.057159423828125, -0.0169830322265625, -0.056427001953125, 0.00033354759216308594, 0.057037353515625, -0.040496826171875, 0.05401611328125, 0.00677490234375, -0.007770538330078125, -0.09161376953125, 0.0169677734375, -0.0162506103515625, -0.04833984375, -0.052032470703125, 0.01165008544921875, 0.031951904296875, 0.04736328125, 0.004581451416015625, 0.0312347412109375, 0.01221466064453125, 0.044036865234375, 0.005863189697265625, 0.046295166015625, 0.00272369384765625, 0.028564453125, -0.0634765625, -0.0170135498046875, -0.00994873046875, -0.007556915283203125, 0.0264892578125, -0.004238128662109375, 0.01190948486328125, 0.03497314453125, -0.0286102294921875, -0.022796630859375, -0.04443359375, -0.0015554428100585938, -0.0273895263671875, -0.0017786026000976562, -0.00945281982421875, 0.0240325927734375, -0.0104217529296875, -0.015716552734375, -0.0011196136474609375, -0.0248870849609375, -0.04412841796875, 0.004077911376953125, -0.039398193359375, -0.03948974609375, -0.006317138671875, -0.0182342529296875, 0.03253173828125, 0.01337432861328125, -0.05621337890625, 0.035491943359375, -0.024383544921875, -0.009735107421875, 0.017669677734375, -0.0302886962890625, -0.015045166015625, -0.0107421875, 0.00017452239990234375, -0.042938232421875, -0.0789794921875, 0.0443115234375, -0.0521240234375, 0.00368499755859375, 0.044342041015625, -0.0028076171875, -0.036834716796875, -0.038665771484375, -0.0024280548095703125, 0.007598876953125, -0.03564453125, -0.034698486328125, 0.038848876953125, -0.07196044921875, 0.028900146484375, -0.046905517578125, -0.006591796875, -0.11273193359375, -0.01959228515625, 0.015716552734375, -0.01558685302734375, -0.029205322265625, -0.058868408203125, -0.0589599609375, 0.0256500244140625, 0.009307861328125, -0.03216552734375, -0.046905517578125, 0.0260467529296875, -0.00421905517578125, 0.01308441162109375, 0.002933502197265625, -0.05859375, -0.035491943359375, 0.006664276123046875, -0.0028781890869140625, 0.06768798828125, -0.0200347900390625, 0.02362060546875, -0.0350341796875, 0.02117919921875, 0.01299285888671875, 0.0019683837890625, 0.055023193359375, -0.033355712890625, 0.041778564453125, 0.00403594970703125, -0.056854248046875, -0.0277862548828125, -0.029052734375, -0.040924072265625, 0.0199737548828125, -0.06573486328125, 0.01751708984375, -0.00942230224609375, 0.0154266357421875, -0.038726806640625, -0.01471710205078125, -0.0222625732421875, -0.0308380126953125, -0.0218658447265625, 0.03924560546875, 0.0386962890625, -0.0121002197265625, -0.0274505615234375, 0.036590576171875, 0.00414276123046875, -0.02740478515625, -0.028411865234375, -0.012847900390625, -0.060882568359375, 0.00539398193359375, -0.035125732421875, -0.013641357421875, 0.00649261474609375, -0.01256561279296875, 0.036224365234375, -0.0166015625, 0.02923583984375, -0.01751708984375, 0.012542724609375, 0.0283203125, 0.0123291015625, 0.00475311279296875, -0.016204833984375, -0.0166168212890625, -0.000492095947265625, 0.0134429931640625, 0.046630859375, -0.004589080810546875, -0.042022705078125, -0.00215911865234375, -0.0144195556640625, -0.00353240966796875, -0.01416015625, -0.0110626220703125, -0.0185699462890625, -0.055633544921875, 0.07879638671875, -0.0267181396484375, -0.036773681640625, -0.0218048095703125, 0.0103607177734375, 0.0008215904235839844, 0.00745391845703125, 0.0154876708984375, 0.0303192138671875, 0.0183258056640625, 0.0199737548828125, 0.04620361328125, 0.00760650634765625, 0.0212860107421875, 0.00960540771484375, 0.00848388671875, 0.00583648681640625 ]
5d41ed65f92bbc9015a653f27e5a17698e48849a
Wordpress Stackexchange Q: How to add just one page in Arabic Hi I have a WordPress site where all the content is in English, however I need just one page to be in Arabic with left to right text, plus some bullets which obviously appear on the right instead of on the left, how do I go about creating such a page? A: Add a container to your markup: <div dir="rtl"> your page content here </div> If the post editor strips out the attribute, either post as (user role:) editor, or extend the list of allowed elements and attributes per plugin.
Q: How to add just one page in Arabic Hi I have a WordPress site where all the content is in English, however I need just one page to be in Arabic with left to right text, plus some bullets which obviously appear on the right instead of on the left, how do I go about creating such a page? A: Add a container to your markup: <div dir="rtl"> your page content here </div> If the post editor strips out the attribute, either post as (user role:) editor, or extend the list of allowed elements and attributes per plugin. A: @toscho is right about the direction of the text... But as someone who builds websites in hebrew all the time i would reccomend you create a custom page template by putting this tag in a copy of page.php /* Template name: arabic page */ THen you can design it differently... maybe remove the sidebar which is probably in english maybe make the structure different... you can even make the design a little bit different by loading additional css.. in that page you should use @toscho advice but i would implant the dir="rtl" command directly into that page so you would have better control.
wordpress
{ "language": "en", "length": 203, "provenance": "stackexchange_00019.jsonl.gz:417766", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44598" }
[ 0.00514984130859375, -0.02642822265625, -0.004108428955078125, -0.0217132568359375, -0.03045654296875, -0.00962066650390625, 0.0081329345703125, 0.0078582763671875, -0.006191253662109375, -0.0050811767578125, 0.00617218017578125, -0.004791259765625, -0.043792724609375, -0.04351806640625, 0.015777587890625, -0.0374755859375, 0.052398681640625, -0.02923583984375, 0.01110076904296875, -0.006450653076171875, 0.01523590087890625, -0.005382537841796875, 0.00612640380859375, 0.075439453125, 0.0132598876953125, -0.050201416015625, 0.0667724609375, -0.027801513671875, -0.00565338134765625, -0.0254669189453125, 0.0106353759765625, 0.0126800537109375, 0.028594970703125, -0.025238037109375, 0.01428985595703125, -0.01026153564453125, -0.0012664794921875, -0.0117034912109375, -0.0086517333984375, 0.0082550048828125, 0.03643798828125, -0.0308685302734375, -0.019744873046875, 0.058074951171875, -0.029266357421875, -0.06634521484375, 0.059417724609375, -0.0122528076171875, -0.0099639892578125, -0.035675048828125, 0.01074981689453125, 0.01209259033203125, 0.0234375, -0.005764007568359375, -0.0160369873046875, 0.00975799560546875, 0.0205535888671875, -0.0012378692626953125, 0.010345458984375, -0.008270263671875, -0.00716400146484375, 0.0338134765625, 0.016204833984375, 0.0142364501953125, -0.00469207763671875, -0.0127410888671875, -0.0557861328125, 0.025146484375, -0.07269287109375, -0.027801513671875, 0.034210205078125, -0.06634521484375, 0.0173187255859375, -0.07220458984375, -0.0078582763671875, 0.07122802734375, -0.021209716796875, 0.01102447509765625, 0.00974273681640625, -0.0201416015625, -0.0038299560546875, 0.049072265625, -0.04962158203125, -0.056396484375, -0.00782012939453125, -0.03790283203125, -0.023651123046875, 0.0008544921875, -0.07452392578125, -0.0131378173828125, -0.038848876953125, -0.002208709716796875, -0.06256103515625, -0.037078857421875, -0.0175018310546875, -0.0102386474609375, 0.005573272705078125, 0.00940704345703125, 0.01131439208984375, 0.039093017578125, 0.02398681640625, -0.060821533203125, 0.089111328125, -0.056243896484375, 0.020965576171875, -0.01617431640625, -0.0035305023193359375, 0.038604736328125, 0.07098388671875, 0.0262451171875, -0.0078582763671875, 0.05657958984375, 0.0236968994140625, 0.004993438720703125, -0.0213775634765625, 0.007106781005859375, -0.0086822509765625, 0.004093170166015625, -0.01248931884765625, -0.007411956787109375, -0.00569915771484375, 0.017333984375, -0.004611968994140625, -0.0138092041015625, -0.0020694732666015625, -0.0125579833984375, -0.01279449462890625, -0.01544952392578125, 0.0227813720703125, 0.00629425048828125, -0.0268402099609375, 0.0128021240234375, 0.028045654296875, 0.039947509765625, 0.004779815673828125, -0.0060882568359375, 0.0264739990234375, 0.0025882720947265625, 0.0026264190673828125, 0.037628173828125, -0.01009368896484375, -0.0174713134765625, 0.0380859375, -0.005764007568359375, -0.038177490234375, -0.004779815673828125, -0.00769805908203125, 0.042083740234375, 0.03033447265625, -0.05084228515625, 0.0166473388671875, -0.0235595703125, 0.038970947265625, -0.002040863037109375, -0.0259246826171875, -0.04803466796875, 0.0251312255859375, -0.036529541015625, 0.025360107421875, -0.036590576171875, 0.0106964111328125, -0.007537841796875, 0.0237579345703125, -0.0116119384765625, -0.029083251953125, 0.004978179931640625, -0.037445068359375, -0.0053253173828125, 0.019622802734375, -0.007381439208984375, -0.021881103515625, -0.01715087890625, 0.04229736328125, -0.007537841796875, -0.0264892578125, 0.0282440185546875, -0.007598876953125, 0.01251983642578125, 0.006015777587890625, 0.0714111328125, 0.033355712890625, -0.0184173583984375, 0.033203125, 0.01152801513671875, -0.035491943359375, 0.01471710205078125, -0.0182647705078125, 0.025543212890625, 0.051513671875, 0.005218505859375, -0.002635955810546875, -0.0026111602783203125, -0.04412841796875, -0.021759033203125, -0.007843017578125, 0.023529052734375, -0.017669677734375, 0.024566650390625, -0.020721435546875, 0.0014829635620117188, 0.00909423828125, 0.0181732177734375, 0.006801605224609375, 0.0245361328125, 0.012908935546875, 0.0124969482421875, 0.01210784912109375, 0.00650787353515625, -0.00878143310546875, -0.00267791748046875, 0.01148223876953125, 0.00948333740234375, -0.001964569091796875, -0.04412841796875, -0.0258941650390625, 0.0150909423828125, 0.040496826171875, 0.020751953125, 0.002246856689453125, 0.02630615234375, 0.0179290771484375, -0.0272369384765625, -0.00446319580078125, 0.041046142578125, 0.063720703125, -0.0386962890625, -0.006267547607421875, -0.0496826171875, 0.040740966796875, -0.02545166015625, -0.047149658203125, 0.06365966796875, -0.0030498504638671875, -0.0221710205078125, -0.036529541015625, 0.006923675537109375, -0.01433563232421875, -0.0164642333984375, 0.004863739013671875, 0.040496826171875, 0.0134429931640625, 0.0183563232421875, 0.006198883056640625, 0.04681396484375, -0.00569915771484375, -0.05987548828125, 0.007106781005859375, 0.02301025390625, 0.0107269287109375, 0.030853271484375, 0.02801513671875, -0.025482177734375, -0.00464630126953125, -0.09893798828125, 0.022979736328125, 0.001773834228515625, -0.03509521484375, 0.00926971435546875, -0.006946563720703125, -0.0035877227783203125, -0.005901336669921875, -0.00347900390625, 0.021148681640625, -0.01361846923828125, -0.002895355224609375, 0.0146331787109375, 0.0411376953125, 0.03839111328125, 0.00009655952453613281, -0.0293731689453125, 0.0004754066467285156, 0.04339599609375, 0.00006341934204101562, 0.01389312744140625, -0.056427001953125, 0.0340576171875, -0.013427734375, 0.0214385986328125, 0.001644134521484375, -0.012115478515625, 0.0068511962890625, 0.030059814453125, 0.00530242919921875, -0.0232086181640625, 0.0099334716796875, -0.050201416015625, -0.007633209228515625, 0.0036945343017578125, -0.0137481689453125, -0.018096923828125, 0.0100555419921875, 0.027252197265625, -0.02001953125, 0.021453857421875, 0.0579833984375, -0.0183868408203125, 0.07476806640625, -0.026947021484375, 0.03619384765625, -0.02978515625, 0.03680419921875, 0.047760009765625, -0.0159912109375, -0.010406494140625, 0.005767822265625, 0.00762176513671875, 0.01404571533203125, -0.001827239990234375, -0.0017070770263671875, -0.0035991668701171875, -0.01238250732421875, 0.0204925537109375, 0.01092529296875, -0.001728057861328125, -0.012664794921875, -0.0230712890625, -0.0079803466796875, 0.004360198974609375, -0.06268310546875, -0.0506591796875, 0.052520751953125, -0.04937744140625, 0.0099639892578125, 0.02947998046875, -0.03057861328125, -0.033843994140625, 0.076904296875, -0.01678466796875, -0.01385498046875, -0.006855010986328125, -0.0033168792724609375, -0.01541900634765625, -0.006557464599609375, -0.0054931640625, 0.00023305416107177734, -0.0174102783203125, 0.001071929931640625, 0.035430908203125, 0.016326904296875, -0.032318115234375, 0.0173492431640625, 0.04766845703125, -0.03277587890625, -0.002735137939453125, 0.0214385986328125, -0.0288848876953125, -0.03466796875, 0.011932373046875, 0.0099029541015625, -0.009490966796875, -0.00704193115234375, -0.0026531219482421875, -0.030120849609375, 0.03125, -0.006801605224609375, -0.0127716064453125, 0.034088134765625, 0.0266571044921875, -0.0168609619140625, -0.03436279296875, -0.0190887451171875, 0.04052734375, -0.017822265625, -0.041168212890625, -0.0137481689453125, -0.0192413330078125, -0.0225982666015625, 0.022613525390625, -0.03253173828125, 0.0159149169921875, 0.0013704299926757812, -0.01119232177734375, -0.027740478515625, -0.0187225341796875, -0.049652099609375, 0.0312347412109375, 0.005886077880859375, -0.0179443359375, 0.00838470458984375, -0.000051140785217285156, -0.00603485107421875, 0.005092620849609375, -0.004901885986328125, 0.00872039794921875, -0.036529541015625, 0.0225830078125, -0.02471923828125, 0.034149169921875, -0.0009298324584960938, -0.0301666259765625, 0.0020580291748046875, 0.07861328125, -0.037933349609375, -0.022613525390625, -0.00823211669921875, 0.0208282470703125, -0.050445556640625, -0.0650634765625, -0.03704833984375, -0.00782012939453125, -0.015716552734375, 0.00897216796875, 0.01227569580078125, -0.04437255859375, -0.02508544921875, -0.0274505615234375, -0.0294036865234375, -0.0167388916015625, 0.041900634765625, -0.04931640625, -0.0270843505859375, 0.045440673828125, -0.041473388671875, 0.0258636474609375, -0.06005859375, -0.006740570068359375, -0.13525390625, -0.024810791015625, -0.057037353515625, 0.11004638671875, 0.023956298828125, -0.030120849609375, -0.02294921875, 0.0601806640625, 0.0035648345947265625, 0.01369476318359375, 0.007686614990234375, 0.00586700439453125, 0.035552978515625, 0.00943756103515625, 0.006008148193359375, -0.0184783935546875, -0.0229644775390625, -0.003803253173828125, 0.0005946159362792969, 0.007579803466796875, -0.0178985595703125, -0.0241546630859375, 0.0018901824951171875, -0.03369140625, -0.0277557373046875, -0.042999267578125, -0.0209808349609375, 0.01560211181640625, -0.0255889892578125, 0.00814056396484375, -0.04833984375, -0.031768798828125, 0.0229034423828125, 0.0015268325805664062, -0.0283660888671875, 0.0204925537109375, 0.031829833984375, 0.0113372802734375, -0.03466796875, -0.073486328125, 0.01149749755859375, 0.049072265625, 0.03729248046875, 0.0443115234375, 0.045654296875, -0.04296875, 0.0655517578125, 0.0562744140625, 0.0211334228515625, -0.0149078369140625, 0.055023193359375, -0.015350341796875, -0.0266265869140625, 0.037872314453125, 0.00307464599609375, -0.04681396484375, 0.01898193359375, -0.004909515380859375, 0.0052337646484375, 0.040435791015625, 0.0189208984375, -0.0035400390625, -0.016448974609375, -0.019622802734375, -0.03692626953125, -0.01216888427734375, 0.07147216796875, 0.002826690673828125, 0.01161956787109375, 0.0214080810546875, 0.01157379150390625, 0.033599853515625, -0.0294036865234375, 0.0413818359375, 0.0174102783203125, 0.0248565673828125, 0.0132598876953125, 0.03717041015625, -0.03375244140625, 0.0087432861328125, -0.0257415771484375, 0.060516357421875, 0.02862548828125, -0.04266357421875, 0.029571533203125, -0.009613037109375, 0.004726409912109375, -0.0038051605224609375, 0.0230255126953125, -0.035614013671875, -0.0305938720703125, -0.006591796875, 0.00844573974609375, 0.038299560546875, -0.03924560546875, -0.00424957275390625, -0.01337432861328125, -0.0220489501953125, -0.00445556640625, -0.003627777099609375, 0.036346435546875, -0.0199737548828125, 0.01812744140625, -0.006343841552734375, -0.01392364501953125, -0.0178375244140625, 0.045654296875, 0.01068115234375, -0.010467529296875, -0.006168365478515625, 0.03985595703125, 0.0017766952514648438, -0.0443115234375, 0.0020732879638671875, 0.030670166015625, 0.06964111328125, -0.034515380859375, -0.057647705078125, 0.01203155517578125, -0.061126708984375, 0.03240966796875, 0.026947021484375, -0.04571533203125, -0.06842041015625, -0.004222869873046875, 0.017822265625, 0.014556884765625, -0.07562255859375, 0.0156707763671875, 0.037933349609375, -0.01068115234375, 0.0082550048828125, 0.042572021484375, 0.019500732421875, -0.046905517578125, -0.0654296875, 0.0027866363525390625, -0.0467529296875, -0.02117919921875, -0.03125, 0.041717529296875, -0.0226593017578125, -0.016845703125, 0.0179595947265625, -0.01152801513671875, 0.01320648193359375, -0.016632080078125, -0.014129638671875, -0.020172119140625, 0.00843048095703125, 0.041229248046875, 0.00839996337890625, -0.002590179443359375, -0.044769287109375, -0.04705810546875, -0.043609619140625, -0.0506591796875, -0.022918701171875, -0.0259552001953125, 0.035125732421875, 0.0217437744140625, 0.042083740234375, -0.0156402587890625, -0.02435302734375, -0.0153045654296875, 0.033905029296875, 0.01306915283203125, 0.0927734375, -0.028564453125, 0.05902099609375, -0.01031494140625, 0.032958984375, -0.004398345947265625, 0.04583740234375, 0.0296783447265625, -0.0193939208984375, 0.032470703125, -0.0552978515625, -0.023529052734375, -0.022857666015625, -0.02081298828125, -0.0137481689453125, 0.0012006759643554688, -0.006679534912109375, -0.018524169921875, -0.016937255859375, -0.0086212158203125, -0.01404571533203125, 0.0633544921875, -0.0023975372314453125, -0.0036144256591796875, 0.03289794921875, -0.0278472900390625, 0.01885986328125, -0.00440216064453125, 0.01995849609375, 0.036529541015625, -0.03125, 0.037841796875, 0.004131317138671875, 0.00849151611328125, 0.0018253326416015625, 0.03973388671875, 0.01247406005859375, 0.04888916015625, 0.034637451171875, 0.026763916015625, 0.0159912109375, -0.01763916015625, 0.0081024169921875, 0.03375244140625, 0.037750244140625, -0.0251007080078125, -0.0072784423828125, 0.0261688232421875, -0.01497650146484375, -0.001186370849609375, 0.0767822265625, 0.051239013671875, -0.10418701171875, 0.010711669921875, -0.00878143310546875, -0.020111083984375, 0.003383636474609375, 0.0003917217254638672, -0.02056884765625, -0.08575439453125, 0.041900634765625, 0.006389617919921875, 0.003131866455078125, 0.01352691650390625, 0.007785797119140625, 0.00022363662719726562, -0.00832366943359375, 0.04864501953125, 0.01151275634765625, -0.0245361328125, -0.01104736328125, -0.0035037994384765625, 0.01983642578125, -0.0168609619140625, -0.0345458984375, 0.0196990966796875, -0.0052642822265625, -0.02447509765625, 0.039825439453125, -0.0550537109375, 0.039337158203125, 0.00913238525390625, 0.0193939208984375, 0.04449462890625, 0.049591064453125, -0.0100250244140625, -0.016998291015625, 0.0204010009765625, 0.00127410888671875, -0.023284912109375, -0.007549285888671875, 0.0177764892578125, 0.004650115966796875, -0.053741455078125, 0.004695892333984375, -0.048736572265625, 0.00525665283203125, -0.0061798095703125, -0.0227508544921875, 0.03277587890625, -0.006317138671875, -0.0147247314453125, 0.0223236083984375, -0.026885986328125, -0.01617431640625, -0.01068878173828125, -0.0010843276977539062, -0.050628662109375, -0.006839752197265625, 0.0014057159423828125, -0.0232696533203125, -0.001941680908203125, -0.00695037841796875, -0.085693359375, 0.0875244140625, 0.02935791015625, 0.0243682861328125, -0.030609130859375, 0.05072021484375, -0.04205322265625, -0.0119171142578125, -0.00727081298828125, 0.03143310546875, 0.03253173828125, 0.0159912109375, -0.005950927734375, -0.0123291015625, 0.0135040283203125, 0.0594482421875, 0.049407958984375, 0.00467681884765625, -0.00007718801498413086, -0.01140594482421875, 0.0279693603515625, 0.031829833984375, -0.00881195068359375, 0.0267791748046875, -0.033355712890625, 0.014495849609375, 0.017059326171875, -0.0308380126953125, 0.022735595703125, 0.0204315185546875, -0.054931640625, 0.006671905517578125, -0.014556884765625, -0.0276641845703125, 0.0269775390625, -0.0031566619873046875, -0.037078857421875, 0.015838623046875, 0.004791259765625, -0.02783203125, 0.01526641845703125, 0.004840850830078125, 0.0219573974609375, -0.037811279296875, -0.01971435546875, -0.025421142578125, 0.032928466796875, 0.014495849609375, 0.0015087127685546875, -0.005657196044921875, 0.00897216796875, 0.0276031494140625, -0.01010894775390625, -0.00493621826171875, 0.0239105224609375, 0.002361297607421875, 0.0007829666137695312, 0.02392578125, 0.007572174072265625, -0.032684326171875, 0.0198822021484375, 0.057373046875, 0.0113677978515625, -0.028076171875, -0.01172637939453125, 0.0191650390625, 0.0081024169921875, -0.01104736328125, -0.01265716552734375, -0.013458251953125, 0.00167083740234375, 0.05780029296875, 0.00537872314453125, -0.0098419189453125, 0.00021982192993164062, 0.0067291259765625, 0.010467529296875, 0.0003094673156738281, 0.004497528076171875, 0.011322021484375, -0.047698974609375, -0.0008769035339355469, 0.0057525634765625, 0.0279693603515625, 0.0260772705078125, 0.026336669921875, 0.01702880859375, 0.0009188652038574219, -0.0161895751953125, 0.0227508544921875, -0.0035266876220703125, 0.0064849853515625, -0.01280975341796875, -0.04248046875, 0.03668212890625, 0.0254974365234375, -0.0285186767578125, -0.041046142578125, 0.005931854248046875, 0.019012451171875, -0.06494140625, -0.036712646484375, 0.01323699951171875, -0.0214996337890625, -0.0196685791015625, -0.04339599609375, 0.0794677734375, 0.06634521484375, 0.028717041015625, 0.0102691650390625, 0.028076171875, 0.05535888671875, 0.02642822265625, -0.0169830322265625, 0.0170440673828125, -0.0170135498046875, 0.005374908447265625, 0.05145263671875, -0.01203155517578125, 0.055145263671875, -0.0831298828125, 0.0014886856079101562, -0.048248291015625, -0.08843994140625, 0.04730224609375, 0.058441162109375, -0.037109375, -0.005771636962890625, 0.061279296875, 0.031585693359375, -0.0186767578125, -0.0286865234375, 0.046966552734375, -0.0244140625, 0.0186920166015625, 0.0419921875, -0.036285400390625, -0.03045654296875, -0.00890350341796875, 0.05511474609375, -0.00862884521484375, 0.038909912109375, -0.0078277587890625, 0.0172576904296875, 0.009246826171875, 0.01482391357421875, 0.0194091796875, -0.0129547119140625, 0.07379150390625, 0.0226898193359375, 0.01055145263671875, -0.037872314453125, -0.03717041015625, -0.00858306884765625, 0.0233612060546875, -0.05877685546875, -0.00017368793487548828, -0.032379150390625, 0.02520751953125, -0.022216796875, 0.01494598388671875, -0.0264739990234375, -0.04705810546875, -0.05987548828125, 0.01079559326171875, 0.025054931640625, 0.033294677734375, -0.0038166046142578125, 0.058563232421875, -0.05029296875, -0.0447998046875, 0.0219879150390625, -0.08123779296875, -0.01800537109375, 0.015289306640625, -0.00045609474182128906, -0.02008056640625, -0.0140838623046875, -0.016754150390625, 0.00699615478515625, 0.0193023681640625, 0.033782958984375, 0.007808685302734375, 0.031707763671875, -0.0036220550537109375, 0.015838623046875, 0.0207061767578125, -0.03924560546875, 0.0049896240234375, 0.0059967041015625, -0.002471923828125, 0.0128631591796875, 0.019439697265625, -0.00833892822265625, -0.057769775390625, -0.02239990234375, -0.005970001220703125, -0.038787841796875, -0.0408935546875, -0.027099609375, 0.0010747909545898438, -0.0208740234375, -0.035858154296875, -0.019775390625, -0.01751708984375, 0.004367828369140625, 0.06793212890625, -0.07061767578125, 0.009521484375, 0.00670623779296875, 0.0487060546875, -0.06304931640625, -0.058746337890625, -0.0245819091796875, 0.03582763671875, -0.069091796875, 0.0226287841796875, 0.01523590087890625, -0.0268707275390625, 0.0206146240234375, 0.027923583984375, 0.0474853515625, 0.0789794921875, 0.0193939208984375, -0.024688720703125, 0.0245819091796875, -0.03179931640625, -0.032196044921875, -0.024688720703125, 0.038787841796875, -0.080078125, -0.039306640625, 0.029998779296875, -0.0077362060546875, 0.0280609130859375, -0.032989501953125, -0.060455322265625, 0.0251312255859375, 0.003307342529296875, -0.03704833984375, 0.005809783935546875, 0.025909423828125, -0.009185791015625, -0.031982421875, -0.005626678466796875, -0.003192901611328125, 0.032379150390625, 0.0261383056640625, 0.006343841552734375, 0.00908660888671875, 0.01461029052734375, 0.00795745849609375, -0.020416259765625, 0.021209716796875, 0.00897979736328125, 0.004680633544921875, -0.019927978515625, 0.0007467269897460938, -0.0135345458984375, 0.011322021484375, -0.051116943359375, -0.08758544921875, -0.0191192626953125, 0.0261383056640625, -0.0211334228515625, -0.051239013671875, -0.039398193359375, -0.0259552001953125, 0.08990478515625, 0.0673828125, 0.0231781005859375, -0.0253753662109375, 0.043182373046875, -0.01410675048828125, -0.0276947021484375, 0.028564453125, 0.012115478515625, -0.0109405517578125, 0.029205322265625, 0.01519012451171875, -0.0016927719116210938, 0.029449462890625, 0.01605224609375, -0.002109527587890625, -0.001953125, 0.0199127197265625, -0.0196990966796875, -0.06890869140625, 0.00014710426330566406, 0.07391357421875, -0.0340576171875, -0.008148193359375, 0.004322052001953125, 0.002593994140625, 0.040618896484375, -0.006893157958984375, -0.031890869140625, -0.043914794921875, 0.0118865966796875, 0.030853271484375, -0.0131683349609375, 0.04119873046875, -0.00925445556640625, -0.00958251953125, -0.0015268325805664062, 0.03948974609375, 0.0206756591796875, 0.047607421875, -0.046600341796875, 0.04779052734375, 0.0230865478515625, -0.019195556640625, -0.0016164779663085938, -0.058135986328125, -0.016387939453125, -0.0003516674041748047, -0.01187896728515625, -0.00460052490234375, 0.00395965576171875, -0.0435791015625, 0.00196075439453125, -0.005451202392578125, 0.015960693359375, -0.0506591796875, 0.0195159912109375, 0.00704193115234375, 0.009033203125, 0.025238037109375 ]
2f138c2eb4536092fbd142c5d4ec806188b12e4b
Wordpress Stackexchange Q: Contact Form 7 - process form using a PHP script, instead of mailing I want to use a form from the Contact Form 7 plugin to allow the users to upload a document to my website. The problem is that I'd like to manage those uploads from WordPress instead of receiving them in my E-Mail. Is there a way of redirecting the output of those forms to a PHP script, or something similar? A: Take a look at the wpcf7_before_send_mail hook CF7 provides. add_action("wpcf7_before_send_mail", "wpcf7_do_something_else_with_the_data"); function wpcf7_do_something_else_with_the_data(&$wpcf7_data) { // Everything you should need is in this variable var_dump($wpcf7_data); // I can skip sending the mail if I want to... $wpcf7_data->skip_mail = true; }
Q: Contact Form 7 - process form using a PHP script, instead of mailing I want to use a form from the Contact Form 7 plugin to allow the users to upload a document to my website. The problem is that I'd like to manage those uploads from WordPress instead of receiving them in my E-Mail. Is there a way of redirecting the output of those forms to a PHP script, or something similar? A: Take a look at the wpcf7_before_send_mail hook CF7 provides. add_action("wpcf7_before_send_mail", "wpcf7_do_something_else_with_the_data"); function wpcf7_do_something_else_with_the_data(&$wpcf7_data) { // Everything you should need is in this variable var_dump($wpcf7_data); // I can skip sending the mail if I want to... $wpcf7_data->skip_mail = true; } A: Using var_dump here is not a good idea because you will write the output to the buffer and break the form submission. Use error_log wordpress functions with print_r or var_dump with the following code instead : ob_start(); // start buffer capture var_dump($wpcf7_data); // dump the values $contents = ob_get_contents(); // put the buffer into a variable ob_end_clean(); // end capture error_log($contents); // Write to wp-content/debug.log (enable debug mode to see it).
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:417777", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44623" }
[ 0.036651611328125, 0.007289886474609375, -0.034759521484375, -0.04248046875, 0.01364898681640625, -0.038604736328125, 0.02972412109375, -0.0009717941284179688, 0.0517578125, -0.0277099609375, -0.0196075439453125, -0.019012451171875, -0.0382080078125, -0.04248046875, 0.020599365234375, -0.022918701171875, 0.00012767314910888672, 0.033355712890625, 0.02069091796875, -0.0258026123046875, 0.00316619873046875, 0.0012865066528320312, -0.0031890869140625, 0.003360748291015625, -0.031463623046875, 0.0275726318359375, 0.023590087890625, 0.01727294921875, -0.056427001953125, -0.040435791015625, -0.013519287109375, 0.043914794921875, 0.048309326171875, 0.038909912109375, -0.093994140625, 0.004245758056640625, 0.00804901123046875, 0.002658843994140625, -0.037109375, 0.04620361328125, 0.028594970703125, -0.012176513671875, 0.00021386146545410156, 0.00682830810546875, -0.0099945068359375, -0.03424072265625, 0.027679443359375, -0.0307464599609375, 0.0343017578125, 0.067626953125, 0.010498046875, 0.033416748046875, 0.00823211669921875, 0.021087646484375, -0.00434112548828125, 0.012237548828125, -0.004650115966796875, 0.039581298828125, 0.035858154296875, 0.032958984375, -0.0274505615234375, 0.01187896728515625, -0.0010461807250976562, -0.05145263671875, 0.0011262893676757812, 0.00402069091796875, -0.0399169921875, 0.00476837158203125, -0.02813720703125, 0.01416015625, 0.037200927734375, -0.059783935546875, 0.0151214599609375, -0.0165557861328125, 0.0118408203125, -0.01136016845703125, 0.0267791748046875, 0.0177154541015625, -0.012542724609375, 0.0037250518798828125, -0.03436279296875, -0.066650390625, -0.00171661376953125, -0.0172576904296875, 0.003490447998046875, 0.033905029296875, -0.0198822021484375, 0.005298614501953125, -0.03350830078125, -0.007049560546875, -0.033721923828125, -0.01255035400390625, -0.01560211181640625, -0.0171966552734375, -0.01230621337890625, -0.038909912109375, -0.021331787109375, -0.050384521484375, 0.0193023681640625, 0.0029144287109375, 0.0161285400390625, -0.035247802734375, 0.0024967193603515625, 0.00864410400390625, 0.0131072998046875, 0.07806396484375, -0.0173492431640625, -0.052734375, 0.00421905517578125, -0.0163726806640625, 0.00626373291015625, -0.0245361328125, -0.0259857177734375, -0.0119781494140625, -0.0117340087890625, 0.031097412109375, -0.03271484375, -0.0005464553833007812, -0.007305145263671875, 0.021240234375, -0.03662109375, 0.01358795166015625, -0.00748443603515625, -0.05377197265625, 0.022308349609375, -0.0122222900390625, 0.0035266876220703125, -0.00666046142578125, 0.0311126708984375, -0.00974273681640625, -0.0179901123046875, 0.01413726806640625, 0.060028076171875, 0.042083740234375, 0.0325927734375, -0.006633758544921875, 0.0271148681640625, -0.00008082389831542969, 0.017730712890625, 0.0008702278137207031, 0.0193939208984375, -0.043548583984375, -0.04083251953125, 0.03765869140625, -0.0186920166015625, 0.047271728515625, 0.0291290283203125, -0.015716552734375, -0.0220794677734375, -0.041015625, -0.054534912109375, 0.03173828125, 0.006500244140625, 0.01038360595703125, 0.0011262893676757812, -0.0147857666015625, 0.0170745849609375, -0.01702880859375, 0.01171112060546875, -0.023834228515625, -0.004016876220703125, -0.0160064697265625, 0.020355224609375, -0.035308837890625, -0.023529052734375, -0.0028533935546875, -0.057586669921875, -0.005641937255859375, 0.0101776123046875, -0.04412841796875, 0.0029621124267578125, -0.032623291015625, 0.01194000244140625, -0.0007181167602539062, 0.004093170166015625, 0.04718017578125, 0.01335906982421875, 0.03070068359375, 0.025146484375, 0.0194091796875, -0.004749298095703125, -0.031768798828125, 0.072509765625, -0.03558349609375, -0.035888671875, 0.058197021484375, -0.0031185150146484375, 0.019561767578125, -0.0171356201171875, -0.0032215118408203125, 0.0296630859375, 0.0743408203125, -0.021331787109375, 0.046234130859375, -0.01885986328125, -0.042694091796875, -0.0018815994262695312, 0.01898193359375, -0.024810791015625, -0.007556915283203125, -0.003108978271484375, -0.0124053955078125, 0.01358795166015625, -0.007373809814453125, -0.01154327392578125, -0.00518035888671875, -0.007503509521484375, 0.008270263671875, -0.031707763671875, 0.0217742919921875, 0.0240325927734375, 0.0222930908203125, -0.034454345703125, -0.0119171142578125, 0.020477294921875, -0.012451171875, -0.01039886474609375, 0.054229736328125, -0.002689361572265625, 0.07232666015625, -0.023345947265625, -0.0174407958984375, -0.013763427734375, -0.00848388671875, -0.006778717041015625, -0.00034236907958984375, -0.0252227783203125, -0.003875732421875, -0.0300445556640625, -0.007709503173828125, -0.0019321441650390625, 0.0576171875, 0.016204833984375, 0.0200653076171875, -0.041046142578125, -0.01540374755859375, -0.0242767333984375, -0.0472412109375, 0.01303863525390625, 0.05010986328125, 0.0279998779296875, 0.039306640625, 0.0052490234375, 0.02581787109375, 0.03155517578125, -0.00801849365234375, 0.034576416015625, -0.0035495758056640625, 0.0206756591796875, 0.03302001953125, -0.027618408203125, -0.01373291015625, 0.0287017822265625, -0.034637451171875, 0.01168060302734375, 0.036346435546875, -0.0177764892578125, -0.08282470703125, 0.017578125, -0.01514434814453125, 0.057586669921875, 0.004791259765625, -0.08416748046875, 0.0265045166015625, 0.03436279296875, -0.01197052001953125, 0.02899169921875, 0.0198822021484375, -0.0250244140625, -0.0054168701171875, 0.01934814453125, -0.0060882568359375, 0.00849151611328125, 0.00074005126953125, 0.01727294921875, 0.025848388671875, -0.0224761962890625, -0.021148681640625, 0.040191650390625, 0.00569915771484375, -0.01580810546875, 0.028472900390625, 0.019256591796875, 0.0012378692626953125, -0.03033447265625, -0.06036376953125, 0.027862548828125, 0.0175323486328125, 0.043609619140625, 0.00408935546875, 0.038116455078125, -0.005615234375, -0.033782958984375, 0.05218505859375, -0.0098724365234375, -0.0419921875, -0.013702392578125, 0.013092041015625, 0.0181884765625, -0.0247344970703125, 0.02630615234375, 0.043060302734375, -0.043243408203125, 0.0238494873046875, -0.00457763671875, -0.0296173095703125, 0.006046295166015625, 0.02252197265625, -0.0094146728515625, -0.036376953125, -0.01824951171875, -0.005252838134765625, 0.0076141357421875, 0.01380157470703125, -0.01157379150390625, -0.0428466796875, -0.0134429931640625, -0.003612518310546875, -0.06982421875, -0.08209228515625, -0.02392578125, -0.087646484375, 0.0028076171875, -0.0161590576171875, -0.05426025390625, 0.0059051513671875, 0.035888671875, 0.00732421875, -0.00032901763916015625, 0.0167999267578125, -0.01421356201171875, 0.004055023193359375, -0.050933837890625, -0.005794525146484375, -0.0018749237060546875, 0.0216522216796875, -0.00789642333984375, 0.012115478515625, -0.01971435546875, -0.057464599609375, -0.03057861328125, 0.025299072265625, 0.0160980224609375, -0.01122283935546875, -0.039215087890625, -0.007732391357421875, -0.00864410400390625, 0.0051727294921875, -0.0038299560546875, -0.018157958984375, 0.0210723876953125, -0.01934814453125, -0.03759765625, -0.05218505859375, -0.00888824462890625, -0.0037288665771484375, 0.01904296875, -0.05413818359375, -0.00496673583984375, -0.07659912109375, 0.0261383056640625, 0.008148193359375, -0.01087188720703125, -0.0841064453125, -0.0247650146484375, -0.01387786865234375, -0.0307464599609375, -0.003513336181640625, 0.0270538330078125, 0.0214385986328125, -0.0267181396484375, 0.0008106231689453125, 0.06390380859375, -0.00467681884765625, 0.0169830322265625, -0.00897979736328125, 0.032623291015625, -0.0144500732421875, 0.0310211181640625, 0.007740020751953125, -0.006649017333984375, -0.01611328125, 0.01629638671875, -0.03369140625, -0.0897216796875, 0.0567626953125, -0.050933837890625, -0.0302734375, -0.03125, -0.00861358642578125, 0.007080078125, 0.08880615234375, -0.01218414306640625, -0.0177001953125, 0.0092620849609375, 0.017059326171875, -0.0316162109375, -0.0234375, -0.007720947265625, 0.0011358261108398438, -0.08856201171875, 0.0219879150390625, -0.0207061767578125, -0.00272369384765625, 0.02032470703125, -0.01222991943359375, 0.0015134811401367188, -0.0751953125, 0.0037212371826171875, -0.01611328125, -0.0022640228271484375, -0.003360748291015625, -0.00566864013671875, -0.034820556640625, 0.0283660888671875, -0.036590576171875, -0.105712890625, -0.0055389404296875, 0.00734710693359375, 0.04193115234375, -0.0222930908203125, 0.01065826416015625, -0.04827880859375, 0.03680419921875, 0.0034008026123046875, -0.00725555419921875, -0.0004627704620361328, 0.01158905029296875, -0.048614501953125, -0.0011682510375976562, 0.0235443115234375, -0.0362548828125, 0.010284423828125, -0.030853271484375, -0.024505615234375, -0.0300445556640625, -0.0362548828125, -0.0006084442138671875, -0.00980377197265625, -0.024566650390625, -0.031585693359375, -0.042327880859375, -0.03875732421875, -0.01070404052734375, -0.005420684814453125, -0.0184326171875, -0.0200958251953125, -0.029632568359375, -0.011627197265625, -0.0021381378173828125, -0.0213775634765625, 0.0264739990234375, 0.025360107421875, 0.0212860107421875, -0.0022106170654296875, -0.061004638671875, -0.017425537109375, 0.043365478515625, -0.000820159912109375, -0.00789642333984375, 0.00034809112548828125, -0.059539794921875, 0.06695556640625, 0.0291290283203125, 0.04229736328125, -0.029449462890625, 0.051177978515625, 0.007167816162109375, -0.006862640380859375, 0.0226287841796875, 0.027862548828125, -0.037445068359375, -0.034271240234375, 0.002239227294921875, -0.0193023681640625, 0.0074615478515625, 0.0268402099609375, 0.023406982421875, 0.023956298828125, -0.006961822509765625, -0.064208984375, 0.0196380615234375, -0.007228851318359375, -0.0032196044921875, -0.0070037841796875, 0.00888824462890625, 0.01224517822265625, 0.007720947265625, -0.007480621337890625, -0.00324249267578125, -0.0256500244140625, 0.01384735107421875, 0.00222015380859375, 0.032379150390625, 0.00823211669921875, -0.01430511474609375, -0.0014324188232421875, -0.0227813720703125, 0.0263671875, -0.004550933837890625, -0.02899169921875, 0.005615234375, -0.05023193359375, -0.0543212890625, 0.0033111572265625, -0.0178375244140625, 0.0394287109375, 0.0399169921875, 0.041046142578125, 0.03778076171875, 0.0633544921875, 0.00405120849609375, -0.059814453125, 0.01812744140625, -0.048614501953125, -0.00849151611328125, 0.06390380859375, -0.0228271484375, 0.0372314453125, -0.0006489753723144531, 0.05987548828125, 0.080810546875, -0.018402099609375, 0.0268096923828125, 0.01508331298828125, -0.001567840576171875, -0.05377197265625, 0.0030670166015625, -0.0489501953125, -0.00716400146484375, 0.0289459228515625, 0.0191192626953125, 0.004596710205078125, -0.00521087646484375, 0.0156402587890625, 0.01800537109375, -0.005084991455078125, -0.0200347900390625, 0.016571044921875, 0.02996826171875, -0.01140594482421875, 0.004207611083984375, 0.0092620849609375, 0.03326416015625, 0.02191162109375, 0.00868988037109375, 0.016754150390625, 0.006839752197265625, 0.0134124755859375, -0.0113983154296875, -0.0227508544921875, -0.015411376953125, 0.0877685546875, -0.0017995834350585938, -0.03021240234375, -0.05865478515625, -0.0143280029296875, -0.02874755859375, 0.038238525390625, 0.0867919921875, -0.04608154296875, 0.007068634033203125, -0.0192413330078125, 0.01849365234375, -0.06585693359375, 0.0244140625, 0.031341552734375, 0.039703369140625, -0.035888671875, 0.0016803741455078125, -0.05523681640625, -0.03680419921875, -0.053466796875, -0.0208892822265625, -0.04229736328125, 0.00713348388671875, -0.00894927978515625, 0.006855010986328125, -0.0281829833984375, -0.03790283203125, -0.01560211181640625, 0.00884246826171875, 0.0138397216796875, 0.001506805419921875, -0.003391265869140625, 0.0248870849609375, -0.0252532958984375, 0.02532958984375, 0.003353118896484375, -0.014007568359375, -0.040863037109375, -0.0024890899658203125, -0.0218048095703125, -0.0771484375, -0.006595611572265625, 0.0200347900390625, -0.0082855224609375, 0.050262451171875, 0.01073455810546875, 0.01398468017578125, 0.0196685791015625, -0.007282257080078125, 0.003208160400390625, -0.028411865234375, 0.0164794921875, -0.039703369140625, -0.01184844970703125, 0.004680633544921875, -0.00021898746490478516, 0.024993896484375, -0.004608154296875, -0.048095703125, 0.029693603515625, 0.022735595703125, 0.036285400390625, -0.01070404052734375, -0.024566650390625, 0.0389404296875, 0.0279388427734375, -0.01204681396484375, 0.0213165283203125, 0.0241241455078125, 0.0162811279296875, 0.020782470703125, 0.0215606689453125, 0.025543212890625, -0.03173828125, 0.050506591796875, 0.0008921623229980469, -0.0297088623046875, 0.0115966796875, -0.03594970703125, 0.0257568359375, 0.06646728515625, 0.0711669921875, -0.10870361328125, 0.0290069580078125, 0.019439697265625, -0.0086212158203125, -0.004680633544921875, -0.04229736328125, -0.0166168212890625, -0.0142974853515625, 0.06378173828125, 0.0304107666015625, -0.0165557861328125, 0.0225982666015625, 0.01922607421875, -0.00949859619140625, -0.001682281494140625, 0.034820556640625, 0.01031494140625, 0.001659393310546875, -0.0238494873046875, -0.0216827392578125, 0.0078277587890625, -0.007633209228515625, 0.031341552734375, -0.0255889892578125, -0.0179595947265625, -0.02471923828125, 0.004230499267578125, 0.0135650634765625, -0.0186004638671875, -0.058380126953125, -0.0116729736328125, 0.058868408203125, 0.041534423828125, 0.00989532470703125, -0.07440185546875, 0.038970947265625, 0.0210113525390625, -0.038116455078125, -0.047698974609375, 0.0026569366455078125, 0.0183868408203125, -0.049835205078125, 0.035552978515625, -0.0113525390625, -0.034271240234375, -0.0010585784912109375, 0.009521484375, 0.0621337890625, 0.0010786056518554688, -0.048370361328125, 0.0253143310546875, -0.018890380859375, -0.0233001708984375, -0.0187530517578125, -0.0007762908935546875, -0.05718994140625, -0.041015625, -0.00798797607421875, -0.07000732421875, 0.006954193115234375, -0.0249786376953125, -0.04058837890625, 0.08056640625, -0.0164794921875, 0.0235595703125, 0.0280303955078125, 0.0250701904296875, -0.011016845703125, 0.0196075439453125, -0.033782958984375, 0.032073974609375, 0.019073486328125, -0.0028209686279296875, -0.0304718017578125, -0.0024356842041015625, -0.0172271728515625, 0.023162841796875, 0.046173095703125, 0.0038013458251953125, -0.03338623046875, 0.0255584716796875, 0.10382080078125, 0.05572509765625, 0.0175018310546875, 0.0288238525390625, -0.0161590576171875, -0.0036468505859375, 0.0301361083984375, -0.032501220703125, 0.0186004638671875, -0.007106781005859375, -0.006328582763671875, 0.0095062255859375, 0.0262908935546875, 0.023651123046875, -0.022308349609375, 0.0311431884765625, -0.0012674331665039062, -0.018402099609375, 0.0113983154296875, -0.0013446807861328125, -0.041473388671875, 0.01201629638671875, -0.04638671875, -0.0555419921875, 0.0226593017578125, -0.047332763671875, 0.0209197998046875, -0.02630615234375, 0.01375579833984375, 0.039398193359375, 0.025390625, 0.0775146484375, -0.035675048828125, 0.01367950439453125, -0.0006308555603027344, -0.01277923583984375, 0.02471923828125, -0.0281829833984375, 0.016571044921875, -0.037689208984375, 0.01190185546875, -0.002361297607421875, -0.0005807876586914062, -0.0303802490234375, -0.0299072265625, 0.0108642578125, 0.026763916015625, 0.0263519287109375, -0.0019588470458984375, 0.042633056640625, -0.046722412109375, -0.01262664794921875, -0.022216796875, -0.015167236328125, 0.00919342041015625, 0.001453399658203125, -0.0106048583984375, -0.017364501953125, 0.0250244140625, 0.01062774658203125, -0.01000213623046875, -0.0013561248779296875, -0.01248931884765625, 0.03631591796875, 0.00827789306640625, 0.0399169921875, -0.0521240234375, -0.0009207725524902344, 0.005458831787109375, -0.0097198486328125, -0.01255035400390625, -0.01288604736328125, 0.020172119140625, 0.003482818603515625, 0.010040283203125, 0.00888824462890625, 0.033355712890625, 0.047332763671875, 0.053955078125, 0.037261962890625, 0.02667236328125, 0.0067138671875, 0.0252838134765625, -0.0006394386291503906, -0.00029969215393066406, -0.0504150390625, 0.0091705322265625, 0.015380859375, 0.0010251998901367188, 0.006862640380859375, -0.0202484130859375, 0.046051025390625, -0.041839599609375, 0.0419921875, -0.016998291015625, -0.05474853515625, 0.0177459716796875, -0.0477294921875, 0.095947265625, -0.03704833984375, -0.0782470703125, -0.049285888671875, 0.027313232421875, 0.0239105224609375, 0.027130126953125, 0.0423583984375, -0.02801513671875, 0.031280517578125, -0.007007598876953125, 0.00577545166015625, 0.0546875, -0.02764892578125, -0.03759765625, 0.00751495361328125, 0.052886962890625, -0.02703857421875, -0.04644775390625, -0.0200653076171875, -0.006805419921875, 0.03692626953125, -0.0031909942626953125, 0.07525634765625, -0.028289794921875, 0.0095977783203125, -0.03472900390625, 0.0305633544921875, -0.0408935546875, -0.050140380859375, 0.057159423828125, -0.007053375244140625, -0.00917816162109375, 0.006572723388671875, 0.0236053466796875, 0.0030879974365234375, 0.0195465087890625, -0.0235748291015625, -0.01702880859375, -0.035552978515625, 0.0249481201171875, 0.0309600830078125, 0.007602691650390625, -0.012939453125, -0.0218353271484375, 0.0028057098388671875, -0.006793975830078125, 0.022430419921875, 0.051116943359375, 0.0033721923828125, 0.042724609375, -0.03741455078125, -0.007061004638671875, 0.0234222412109375, -0.04241943359375, 0.0223388671875, 0.01708984375, -0.03759765625, 0.024078369140625, -0.00995635986328125, -0.0254364013671875, 0.034820556640625, -0.0010290145874023438, 0.01541900634765625, 0.005496978759765625, -0.006053924560546875, -0.00591278076171875, -0.015899658203125, 0.02484130859375, 0.0007710456848144531, -0.0015077590942382812, -0.042510986328125, 0.006717681884765625, -0.0012025833129882812, -0.052520751953125, -0.0163726806640625, -0.047821044921875, 0.0272216796875, 0.0247802734375, 0.02606201171875, 0.0159149169921875, 0.042022705078125, -0.01904296875, -0.00579071044921875, -0.01229095458984375, -0.00843048095703125, -0.002704620361328125, -0.0012311935424804688, -0.006633758544921875, -0.026580810546875, 0.0279541015625, -0.0357666015625, -0.01763916015625, -0.04815673828125, -0.07318115234375, -0.052947998046875, 0.0806884765625, -0.03875732421875, -0.0024623870849609375, 0.042083740234375, -0.0094757080078125, -0.054290771484375, -0.0130615234375, -0.0113677978515625, 0.041107177734375, -0.005405426025390625, -0.0176239013671875, -0.0032672882080078125, 0.01224517822265625, -0.004878997802734375, -0.00862884521484375, 0.0012102127075195312, 0.01114654541015625, -0.010040283203125, 0.0029354095458984375, -0.039093017578125, -0.036285400390625, -0.0615234375, -0.0703125, 0.03363037109375, 0.003742218017578125, -0.037322998046875, -0.0196380615234375, 0.023681640625, 0.0294647216796875, -0.01413726806640625, -0.00487518310546875, -0.0228729248046875, -0.048858642578125, -0.020050048828125, -0.0102996826171875, 0.0235443115234375, 0.025665283203125, -0.031768798828125, -0.041961669921875, -0.03973388671875, -0.025909423828125, -0.0005807876586914062, 0.014556884765625, 0.006160736083984375, 0.0282440185546875, 0.0452880859375, -0.018829345703125, -0.006656646728515625, -0.00815582275390625, -0.06793212890625, -0.007045745849609375, -0.0249481201171875, -0.056610107421875, -0.0146331787109375, 0.09185791015625, 0.05303955078125, 0.03521728515625, -0.020172119140625, 0.0262451171875, 0.03173828125, -0.010162353515625, -0.0010480880737304688, 0.0099639892578125, -0.0191650390625, -0.0105438232421875, -0.0228729248046875, -0.0168609619140625, 0.010467529296875, 0.0018329620361328125, -0.033050537109375, 0.0009822845458984375, 0.005573272705078125, -0.0276336669921875, -0.0206298828125, -0.07659912109375, 0.07574462890625, -0.031463623046875, 0.007541656494140625, 0.0181121826171875, 0.047576904296875, 0.03741455078125, 0.06500244140625, 0.00035691261291503906, -0.00983428955078125, -0.032806396484375, 0.0179901123046875, 0.0084991455078125, 0.021209716796875, -0.031280517578125, -0.0114288330078125, 0.004413604736328125, 0.031280517578125, -0.013702392578125, 0.027496337890625, -0.030731201171875, 0.04498291015625, -0.01309967041015625, 0.06231689453125, -0.050506591796875, -0.09967041015625, -0.038360595703125, -0.01087188720703125, -0.035369873046875, 0.03387451171875, 0.0577392578125, -0.045745849609375, 0.01000213623046875, 0.0234375, 0.0177459716796875, -0.025909423828125, -0.0037689208984375, 0.0044708251953125, 0.0390625, -0.0009813308715820312 ]
da04250da509da646a7ee962aafa7054b70d18c3
Wordpress Stackexchange Q: Strange permalink issue: can't rename /company-2/ to /company/ I created a page titled company. But the permalink turned it into /company-2/, trying to change it to just /company/ doesn't work. The website just has 8 pages and none is called company (don't know if company as page title is used in the past?). What can i do and what is the cause? Where should i look? Not afraid to use phpmyadmin ;) regards A: You're close. The permalink cannot be changed because at some point another page titled 'company' was drafted (not necessarily published). Unfortunately, there isn't much that I know of that you can do from WordPress to change this besides naming the page something else. However, you could go into the database if you have access and look in the 'wp_posts' table. Keep searching under the 'post-title' column until you find one that is simply 'company' and delete it. This should, in theory, solve your problem.
Q: Strange permalink issue: can't rename /company-2/ to /company/ I created a page titled company. But the permalink turned it into /company-2/, trying to change it to just /company/ doesn't work. The website just has 8 pages and none is called company (don't know if company as page title is used in the past?). What can i do and what is the cause? Where should i look? Not afraid to use phpmyadmin ;) regards A: You're close. The permalink cannot be changed because at some point another page titled 'company' was drafted (not necessarily published). Unfortunately, there isn't much that I know of that you can do from WordPress to change this besides naming the page something else. However, you could go into the database if you have access and look in the 'wp_posts' table. Keep searching under the 'post-title' column until you find one that is simply 'company' and delete it. This should, in theory, solve your problem. A: I had the same problem and did everything that is normally suggested (empty trash etc)..I found the problem was that I had an image in the gallery with the same name as the page. Deleted the image, uploaded it with a new name and the problem disappeared. A: In my case, I was trying to rename /gallery/2010-2/ to /gallery/2010/. This is similar to your case, except I was trying to rename the page slug to a number. This is prohibited by wordpress since numbers are reserved for archive type pages. There may be other restrictions I didn't look them up. Hopefully this helps somebody else who ends up here after searching for "Can't change WP page slug". A: Check the slugs of the other pages - chances are /company/ is being used for one of those. You could also go to /company/ on your site and see if anything pulls up. As mentioned in a comment, make sure to check the trash as well. You may have deleted a page with that name, but if it is still in the trash you can not reuse the name. A: I had this problem. And I checked all forums and trash and drafts and images with the same name. In the end I fond the problem with my incorrect usage of Yoast plugin - the redirect section. I created a redirect for a page which did not exist and that blocked me from creating a page with that url. Once I deleted the redirect I was able to rename the slug. A: You've got another post/page with the same slug (probably in your trash) that already has take that. Find it and do your thing with it :) A: As others have suggested, this looks like a duplicate slug or (post_name) in another WordPress item. Since most every piece of content in WordPress is stored in the posts table (usually wp_posts), the following SQL will help you quickly narrow down which item is causing the problem by returning anything starting with company. Open up MySql ( phpMyAdmin works ) and enter this in the SQL tab. SELECT ID, post_title, post_name, post_type FROM `wp_posts` WHERE post_name LIKE 'company%' ORDER BY post_name
wordpress
{ "language": "en", "length": 528, "provenance": "stackexchange_00019.jsonl.gz:417781", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44634" }
[ -0.0026607513427734375, -0.007419586181640625, 0.0008502006530761719, 0.056671142578125, -0.046722412109375, -0.0291595458984375, 0.0216064453125, -0.072998046875, -0.018524169921875, -0.003963470458984375, -0.01013946533203125, 0.0204620361328125, -0.036865234375, -0.048431396484375, 0.04278564453125, -0.0203704833984375, 0.01276397705078125, 0.017059326171875, 0.041656494140625, 0.01450347900390625, -0.004291534423828125, 0.01526641845703125, 0.003814697265625, -0.0445556640625, 0.04339599609375, -0.034637451171875, 0.03076171875, -0.02325439453125, 0.03875732421875, -0.01873779296875, 0.018768310546875, -0.0215606689453125, 0.02197265625, -0.0166015625, 0.04046630859375, 0.0253753662109375, 0.0296173095703125, -0.011383056640625, 0.01153564453125, 0.026397705078125, 0.02337646484375, -0.0038242340087890625, 0.052337646484375, 0.04705810546875, 0.018646240234375, -0.022308349609375, 0.0256195068359375, -0.08392333984375, 0.034210205078125, -0.0528564453125, -0.02423095703125, 0.025970458984375, -0.0225677490234375, 0.035919189453125, -0.014923095703125, 0.018829345703125, 0.0099029541015625, -0.06500244140625, 0.01103973388671875, -0.00531768798828125, 0.006465911865234375, -0.02606201171875, 0.0221405029296875, 0.02166748046875, -0.059539794921875, -0.0258636474609375, -0.009796142578125, 0.004589080810546875, 0.0198516845703125, -0.035430908203125, 0.01497650146484375, 0.038116455078125, 0.0074615478515625, -0.05853271484375, -0.01532745361328125, -0.016815185546875, -0.006542205810546875, -0.07110595703125, -0.01218414306640625, -0.001461029052734375, 0.0112152099609375, 0.0012359619140625, 0.0008487701416015625, -0.02227783203125, 0.0168304443359375, 0.00457000732421875, -0.0064239501953125, -0.0208740234375, -0.05010986328125, -0.004180908203125, -0.032318115234375, 0.004955291748046875, -0.0096588134765625, -0.00933074951171875, -0.040740966796875, 0.0149383544921875, 0.0308685302734375, 0.03790283203125, -0.0004451274871826172, 0.023345947265625, -0.0194854736328125, -0.04119873046875, 0.038604736328125, -0.0528564453125, 0.00205230712890625, -0.03326416015625, 0.03350830078125, 0.018157958984375, 0.046417236328125, 0.00024306774139404297, -0.03692626953125, 0.10479736328125, -0.0036678314208984375, -0.043548583984375, -0.00885009765625, 0.0102386474609375, -0.028717041015625, 0.0176239013671875, 0.0276947021484375, -0.0215301513671875, -0.019683837890625, 0.0263214111328125, 0.0122528076171875, -0.02239990234375, 0.01548004150390625, 0.0197601318359375, 0.00815582275390625, -0.057464599609375, 0.048248291015625, -0.025390625, -0.032196044921875, 0.03131103515625, 0.071533203125, 0.0298614501953125, 0.028472900390625, 0.003948211669921875, 0.02593994140625, 0.002597808837890625, 0.0098724365234375, 0.00041604042053222656, 0.007053375244140625, -0.01800537109375, 0.0056915283203125, 0.000050008296966552734, 0.0496826171875, 0.0305938720703125, 0.01432037353515625, 0.028289794921875, 0.0364990234375, -0.0172119140625, 0.0300445556640625, -0.018096923828125, 0.0513916015625, -0.0138092041015625, -0.01468658447265625, -0.0411376953125, 0.0214080810546875, -0.05780029296875, -0.00521087646484375, -0.049468994140625, 0.03900146484375, -0.005161285400390625, 0.006622314453125, -0.0213165283203125, -0.03082275390625, 0.0029087066650390625, -0.08428955078125, -0.02313232421875, 0.0015001296997070312, -0.048614501953125, -0.0218048095703125, 0.043243408203125, -0.0093536376953125, -0.0301513671875, 0.01372528076171875, -0.006923675537109375, -0.01007843017578125, 0.0028533935546875, 0.00572967529296875, 0.062744140625, 0.0218048095703125, -0.0192413330078125, 0.021636962890625, 0.011474609375, -0.06390380859375, 0.02191162109375, 0.044464111328125, 0.0604248046875, -0.03204345703125, 0.0260009765625, 0.10418701171875, 0.039306640625, -0.0670166015625, 0.0038852691650390625, -0.036651611328125, 0.002346038818359375, 0.01534271240234375, 0.0108184814453125, -0.02252197265625, 0.0399169921875, -0.0125885009765625, 0.03070068359375, -0.031707763671875, 0.04119873046875, -0.02972412109375, 0.0177764892578125, -0.026702880859375, 0.0167999267578125, 0.0733642578125, 0.031402587890625, -0.01186370849609375, 0.0252227783203125, -0.021575927734375, -0.0384521484375, -0.070068359375, 0.01056671142578125, -0.0057373046875, -0.0304718017578125, -0.0227203369140625, -0.0013723373413085938, -0.017547607421875, 0.00572967529296875, -0.043792724609375, 0.0195770263671875, 0.048919677734375, -0.020294189453125, -0.0193328857421875, -0.0230560302734375, -0.0084686279296875, -0.0010833740234375, -0.04852294921875, 0.038726806640625, 0.041351318359375, 0.04364013671875, 0.0027027130126953125, 0.0288848876953125, -0.0004343986511230469, -0.03729248046875, -0.01264190673828125, 0.027008056640625, 0.01666259765625, 0.0017080307006835938, -0.00933837890625, 0.01617431640625, 0.026519775390625, -0.0248870849609375, 0.005306243896484375, 0.005626678466796875, 0.006805419921875, 0.02459716796875, 0.05548095703125, 0.0119476318359375, 0.00917816162109375, -0.00809478759765625, 0.011505126953125, 0.0208892822265625, -0.01467132568359375, -0.029541015625, 0.033599853515625, -0.01174163818359375, 0.0212249755859375, -0.0297088623046875, -0.03216552734375, -0.0142974853515625, -0.00952911376953125, 0.01433563232421875, 0.005779266357421875, 0.0087127685546875, 0.0009284019470214844, -0.006916046142578125, 0.0048370361328125, -0.050079345703125, -0.006061553955078125, 0.01314544677734375, 0.054779052734375, 0.02325439453125, -0.05352783203125, 0.005199432373046875, 0.0131378173828125, 0.016326904296875, -0.031585693359375, 0.039947509765625, -0.0462646484375, -0.028594970703125, -0.0357666015625, 0.0086669921875, -0.030914306640625, -0.01520538330078125, -0.01690673828125, -0.0200347900390625, 0.0231170654296875, -0.004962921142578125, -0.0197906494140625, -0.004512786865234375, -0.0255279541015625, -0.0287628173828125, 0.057830810546875, -0.014129638671875, 0.049102783203125, -0.042633056640625, 0.0023479461669921875, 0.03546142578125, -0.03485107421875, 0.017974853515625, 0.01190948486328125, -0.0271453857421875, 0.00441741943359375, -0.0191650390625, -0.013214111328125, 0.01107025146484375, -0.07220458984375, 0.00897979736328125, 0.00896453857421875, 0.047698974609375, -0.039154052734375, -0.07177734375, -0.0035686492919921875, 0.00897979736328125, -0.0819091796875, -0.06573486328125, -0.00811767578125, 0.0210723876953125, -0.0310211181640625, 0.04620361328125, 0.00617218017578125, -0.0101318359375, 0.0389404296875, -0.01611328125, 0.0093841552734375, -0.0261688232421875, -0.044708251953125, -0.044464111328125, -0.046600341796875, -0.007419586181640625, 0.00940704345703125, 0.000659942626953125, 0.006427764892578125, 0.0185546875, 0.00406646728515625, -0.0704345703125, -0.01522064208984375, 0.06884765625, -0.024566650390625, -0.0229034423828125, -0.0237274169921875, -0.00498199462890625, 0.00272369384765625, 0.00046062469482421875, 0.05670166015625, 0.01959228515625, -0.00023627281188964844, 0.0032520294189453125, -0.01419830322265625, 0.0073699951171875, 0.019622802734375, 0.00689697265625, 0.0267486572265625, 0.0277557373046875, 0.0166778564453125, -0.036376953125, -0.06610107421875, -0.0103912353515625, -0.065185546875, 0.017333984375, 0.042327880859375, 0.019744873046875, -0.005096435546875, 0.014251708984375, 0.006866455078125, 0.0237579345703125, 0.00865936279296875, 0.00746917724609375, 0.0029964447021484375, -0.0014562606811523438, -0.0141754150390625, -0.01206207275390625, 0.04107666015625, -0.022430419921875, -0.00115203857421875, 0.018829345703125, -0.0301971435546875, -0.0236053466796875, 0.036529541015625, -0.0169677734375, -0.0615234375, 0.049896240234375, -0.1021728515625, -0.03265380859375, -0.05487060546875, -0.01088714599609375, -0.00726318359375, 0.086669921875, -0.02874755859375, -0.0305633544921875, -0.0236358642578125, 0.0102386474609375, -0.00518035888671875, -0.032867431640625, 0.0021686553955078125, -0.0263519287109375, -0.02972412109375, 0.0010366439819335938, 0.0015439987182617188, -0.0238800048828125, -0.022064208984375, -0.0050048828125, -0.013397216796875, -0.0099945068359375, 0.043975830078125, 0.0355224609375, -0.01186370849609375, 0.0026340484619140625, -0.006114959716796875, -0.020660400390625, -0.04058837890625, 0.0262451171875, -0.08099365234375, -0.022674560546875, 0.041168212890625, 0.031158447265625, -0.05224609375, 0.025054931640625, -0.0292205810546875, 0.05224609375, 0.020751953125, 0.05731201171875, -0.049468994140625, -0.042938232421875, -0.0101776123046875, 0.039276123046875, -0.00519561767578125, 0.026824951171875, 0.044830322265625, -0.019561767578125, -0.046173095703125, -0.0210113525390625, -0.0516357421875, 0.020538330078125, -0.0032291412353515625, -0.034027099609375, -0.0396728515625, -0.02093505859375, -0.024444580078125, 0.0292205810546875, -0.018524169921875, 0.0158233642578125, -0.041595458984375, -0.0655517578125, 0.04315185546875, -0.0246124267578125, -0.003940582275390625, -0.005084991455078125, 0.054107666015625, 0.007007598876953125, -0.022125244140625, -0.01511383056640625, 0.044525146484375, 0.009552001953125, 0.0145263671875, 0.048980712890625, -0.02960205078125, 0.0048980712890625, 0.03082275390625, -0.03887939453125, -0.0299224853515625, 0.0286865234375, -0.004138946533203125, -0.01114654541015625, 0.00004607439041137695, -0.023162841796875, -0.037994384765625, 0.04388427734375, 0.042755126953125, -0.0154266357421875, -0.009521484375, -0.07659912109375, 0.051055908203125, 0.0262908935546875, 0.0013141632080078125, -0.06463623046875, 0.01425933837890625, -0.006397247314453125, 0.004367828369140625, 0.0244293212890625, 0.0035305023193359375, 0.004589080810546875, -0.0187530517578125, 0.010162353515625, 0.01090240478515625, -0.02734375, 0.01336669921875, -0.0352783203125, 0.0186614990234375, -0.019195556640625, -0.0115203857421875, -0.033538818359375, -0.01434326171875, 0.068115234375, 0.061279296875, 0.0181427001953125, 0.0011053085327148438, -0.01117706298828125, -0.00189208984375, -0.036895751953125, 0.061309814453125, -0.02294921875, -0.00737762451171875, 0.0338134765625, 0.028045654296875, 0.033355712890625, 0.03656005859375, 0.0034160614013671875, 0.0206146240234375, 0.03973388671875, -0.03192138671875, 0.0042266845703125, 0.005039215087890625, 0.038604736328125, -0.03125, -0.01593017578125, 0.01015472412109375, -0.006237030029296875, 0.068359375, 0.0017786026000976562, -0.03326416015625, 0.0210723876953125, 0.025482177734375, 0.023101806640625, -0.0208740234375, -0.0163726806640625, 0.01015472412109375, 0.054412841796875, -0.00010269880294799805, 0.0020618438720703125, -0.0013275146484375, -0.03155517578125, -0.021820068359375, 0.01206207275390625, -0.035888671875, -0.037200927734375, -0.0263671875, -0.00798797607421875, 0.024871826171875, -0.013916015625, 0.00815582275390625, 0.01050567626953125, -0.0313720703125, -0.00696563720703125, 0.037017822265625, -0.00562286376953125, -0.026397705078125, -0.037109375, 0.0024280548095703125, 0.0067901611328125, -0.016448974609375, 0.0017642974853515625, -0.02484130859375, -0.0007619857788085938, -0.00090789794921875, 0.0143890380859375, -0.0251312255859375, 0.09234619140625, -0.005893707275390625, -0.05596923828125, 0.034912109375, 0.009918212890625, 0.01467132568359375, 0.027496337890625, -0.0396728515625, 0.003398895263671875, -0.045074462890625, 0.009246826171875, -0.00629425048828125, -0.01538848876953125, -0.0258026123046875, -0.017791748046875, 0.0237274169921875, 0.033477783203125, -0.0006999969482421875, -0.0245208740234375, -0.0241241455078125, 0.0234832763671875, 0.0195770263671875, 0.045806884765625, -0.02362060546875, 0.035888671875, 0.037200927734375, -0.0281829833984375, 0.0219268798828125, 0.04180908203125, 0.032196044921875, -0.033966064453125, 0.0057830810546875, 0.0043487548828125, -0.01593017578125, 0.001537322998046875, -0.035064697265625, -0.01374053955078125, 0.07293701171875, -0.006511688232421875, -0.02691650390625, -0.01038360595703125, 0.0163116455078125, -0.0220794677734375, 0.01369476318359375, -0.037689208984375, -0.040283203125, 0.00024044513702392578, -0.0193328857421875, 0.038299560546875, 0.00662994384765625, -0.00028967857360839844, -0.007450103759765625, -0.01279449462890625, -0.00577545166015625, 0.0606689453125, -0.0360107421875, 0.0013666152954101562, 0.038818359375, 0.0302276611328125, 0.040618896484375, 0.003528594970703125, 0.01154327392578125, 0.035980224609375, 0.0023040771484375, 0.0277252197265625, 0.01490020751953125, 0.03466796875, 0.0002429485321044922, 0.035614013671875, 0.0303192138671875, -0.01340484619140625, 0.01529693603515625, 0.0662841796875, 0.05731201171875, -0.09796142578125, 0.00026488304138183594, -0.01194000244140625, 0.022918701171875, 0.0618896484375, 0.00977325439453125, 0.0287628173828125, 0.005771636962890625, 0.002857208251953125, -0.0271148681640625, 0.0012464523315429688, 0.00418853759765625, -0.01432037353515625, -0.00485992431640625, -0.0025634765625, 0.06536865234375, 0.00038504600524902344, -0.021728515625, -0.001628875732421875, 0.0017747879028320312, 0.01302337646484375, 0.007564544677734375, -0.030914306640625, 0.047576904296875, -0.054779052734375, -0.031585693359375, 0.04351806640625, -0.04547119140625, 0.0066986083984375, -0.0110931396484375, 0.0235595703125, -0.00766754150390625, 0.033172607421875, -0.033935546875, 0.0185089111328125, -0.008941650390625, -0.005558013916015625, 0.0107879638671875, 0.0040740966796875, 0.00759124755859375, -0.03839111328125, -0.0198822021484375, -0.00791168212890625, -0.046112060546875, -0.0020923614501953125, 0.002170562744140625, -0.0169677734375, 0.0665283203125, -0.04144287109375, -0.0174713134765625, 0.033416748046875, -0.043914794921875, -0.030975341796875, 0.016265869140625, -0.0144805908203125, -0.043975830078125, -0.037872314453125, -0.00583648681640625, -0.05206298828125, 0.0244903564453125, 0.00994110107421875, -0.0423583984375, 0.0986328125, 0.0028247833251953125, 0.0228424072265625, 0.032958984375, 0.048248291015625, -0.0389404296875, 0.007595062255859375, -0.0086669921875, 0.03790283203125, -0.0074310302734375, 0.039886474609375, 0.00991058349609375, 0.0178375244140625, 0.0263671875, 0.01325225830078125, 0.00815582275390625, 0.004375457763671875, -0.019866943359375, -0.002193450927734375, 0.046417236328125, 0.0173797607421875, 0.01306915283203125, 0.0296630859375, -0.01751708984375, 0.028717041015625, 0.005672454833984375, -0.01898193359375, 0.002964019775390625, 0.019317626953125, -0.068115234375, 0.00734710693359375, 0.023406982421875, 0.032745361328125, 0.007579803466796875, 0.0207672119140625, -0.0063629150390625, -0.0147705078125, 0.038604736328125, -0.056549072265625, -0.012786865234375, 0.0279388427734375, 0.0243988037109375, -0.057373046875, -0.040740966796875, -0.0254058837890625, 0.047271728515625, 0.0093994140625, 0.060791015625, 0.0131683349609375, 0.0164031982421875, 0.0565185546875, -0.004505157470703125, 0.034271240234375, 0.03582763671875, -0.0322265625, 0.06646728515625, 0.036407470703125, 0.028717041015625, -0.042144775390625, -0.0012493133544921875, 0.04266357421875, 0.08251953125, -0.050201416015625, 0.005046844482421875, 0.020660400390625, 0.01232147216796875, -0.00962066650390625, -0.0306243896484375, -0.00473785400390625, -0.0091552734375, -0.00604248046875, -0.0162506103515625, 0.00521087646484375, 0.019134521484375, 0.0193328857421875, -0.003200531005859375, -0.00243377685546875, -0.0185699462890625, 0.02789306640625, -0.033935546875, 0.018646240234375, 0.018798828125, 0.061065673828125, 0.017974853515625, 0.023040771484375, -0.039642333984375, -0.0191497802734375, 0.021484375, 0.036712646484375, -0.035614013671875, -0.01085662841796875, -0.0384521484375, -0.09942626953125, 0.030303955078125, 0.05023193359375, 0.03887939453125, 0.048736572265625, 0.032867431640625, -0.0033740997314453125, 0.01544189453125, 0.01171875, -0.006008148193359375, -0.04254150390625, 0.03656005859375, -0.005680084228515625, -0.015380859375, -0.0218658447265625, -0.02752685546875, -0.0222930908203125, 0.032135009765625, -0.00789642333984375, -0.0241241455078125, 0.01276397705078125, 0.01309967041015625, -0.0098114013671875, 0.060028076171875, 0.0002332925796508789, 0.038238525390625, 0.0092010498046875, 0.0235595703125, 0.0016231536865234375, -0.0002624988555908203, -0.0192718505859375, -0.008331298828125, 0.0264129638671875, 0.040924072265625, -0.0196380615234375, 0.03411865234375, 0.0120849609375, 0.009613037109375, -0.0174560546875, 0.0169525146484375, 0.033355712890625, 0.0242156982421875, 0.04833984375, -0.04827880859375, -0.036163330078125, -0.02081298828125, 0.051971435546875, -0.018157958984375, 0.0980224609375, -0.03778076171875, 0.008697509765625, -0.03704833984375, -0.0203094482421875, -0.0030651092529296875, -0.034820556640625, 0.05047607421875, 0.00991058349609375, -0.00909423828125, -0.003147125244140625, -0.047119140625, 0.040863037109375, 0.01360321044921875, -0.029266357421875, 0.017486572265625, -0.00006580352783203125, 0.007488250732421875, 0.0082550048828125, 0.0176239013671875, -0.02630615234375, -0.05419921875, -0.07598876953125, -0.004695892333984375, 0.02069091796875, 0.0125274658203125, -0.029052734375, 0.035888671875, 0.01178741455078125, -0.036102294921875, 0.0196990966796875, -0.0482177734375, 0.043731689453125, 0.046478271484375, -0.001827239990234375, -0.040771484375, -0.020111083984375, -0.0186920166015625, 0.000049948692321777344, 0.003917694091796875, 0.0238494873046875, 0.012603759765625, 0.00226593017578125, -0.0188446044921875, -0.05914306640625, -0.028411865234375, -0.03460693359375, -0.029052734375, -0.02301025390625, 0.0192413330078125, -0.051025390625, 0.0267333984375, -0.0166015625, -0.03240966796875, 0.00206756591796875, 0.01390838623046875, -0.01210784912109375, 0.0172271728515625, -0.0142822265625, 0.0164947509765625, 0.020355224609375, 0.0369873046875, -0.0697021484375, 0.081298828125, -0.01383209228515625, -0.027801513671875, 0.021759033203125, -0.02703857421875, 0.004596710205078125, 0.0171966552734375, -0.0307769775390625, -0.0304107666015625, -0.031768798828125, 0.01904296875, -0.034271240234375, 0.01039886474609375, 0.03448486328125, -0.0015268325805664062, -0.0173492431640625, -0.0105743408203125, -0.025177001953125, 0.04766845703125, -0.03863525390625, -0.00995635986328125, -0.002506256103515625, -0.00774383544921875, -0.024200439453125, -0.01934814453125, 0.0292205810546875, -0.0204010009765625, -0.039031982421875, -0.02001953125, -0.0194244384765625, -0.0261077880859375, -0.053192138671875, -0.02252197265625, -0.021728515625, 0.0404052734375, -0.033782958984375, -0.0311126708984375, -0.02362060546875, -0.025909423828125, 0.037689208984375, -0.0184173583984375, 0.008758544921875, -0.006427764892578125, 0.06756591796875, 0.0245361328125, 0.077392578125, -0.00354766845703125, 0.044647216796875, 0.032318115234375, 0.04571533203125, 0.014007568359375, 0.0109100341796875, 0.0242919921875, 0.02276611328125, 0.003673553466796875, 0.07305908203125, -0.0007672309875488281, -0.007671356201171875, -0.04998779296875, -0.06146240234375, 0.0167999267578125, -0.0229034423828125, -0.03704833984375, -0.03656005859375, 0.03936767578125, 0.0218505859375, 0.0232696533203125, -0.0029773712158203125, -0.0230560302734375, -0.0511474609375, 0.010589599609375, -0.0048828125, 0.0135498046875, -0.0709228515625, 0.0035572052001953125, 0.0276947021484375, -0.030853271484375, 0.002777099609375, -0.003276824951171875, -0.0472412109375, 0.0035648345947265625, -0.026275634765625, -0.0178680419921875, -0.0404052734375, 0.02008056640625, 0.04486083984375, -0.036651611328125, -0.0231781005859375, -0.0173492431640625, 0.0141143798828125, -0.002941131591796875, -0.049530029296875, -0.01434326171875, -0.01898193359375, 0.049072265625, 0.037994384765625, 0.0369873046875, 0.007289886474609375, 0.01555633544921875, -0.0220184326171875, -0.0078277587890625, 0.0280609130859375, 0.00865936279296875, 0.0025424957275390625, -0.026092529296875, 0.0384521484375, -0.010040283203125, 0.08203125, 0.0008420944213867188, -0.0032806396484375, 0.00787353515625, 0.0228729248046875, -0.0284423828125, -0.00020396709442138672, 0.0007991790771484375, -0.0438232421875, 0.0024127960205078125, 0.0209503173828125, 0.0012063980102539062, -0.00933837890625, 0.005908966064453125, -0.032958984375, 0.01141357421875, 0.00882720947265625 ]
80a5d5ffb9056145426bb7c52484ab88fb802961
Wordpress Stackexchange Q: Exclude the category from the WordPress loop I have this code for the loop, and I need to exclude a category 4 from this loop. Any suggestions on how to achieve this? Code that starts the loop <?php if(have_posts()): ?> <ol class="item_lists"> <?php $end = array(3,6,9,12,15,18,21,24,27,30,33,36,39,42,45); $i = 0; while (have_posts()) : the_post(); $i++; global $post; ?> A: From your functions file function remove_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-4' ); } } add_action( 'pre_get_posts', 'remove_home_category' ); This code alters the query before the actual query is run so is the most efficient hook to modify the loop in this case.
Q: Exclude the category from the WordPress loop I have this code for the loop, and I need to exclude a category 4 from this loop. Any suggestions on how to achieve this? Code that starts the loop <?php if(have_posts()): ?> <ol class="item_lists"> <?php $end = array(3,6,9,12,15,18,21,24,27,30,33,36,39,42,45); $i = 0; while (have_posts()) : the_post(); $i++; global $post; ?> A: From your functions file function remove_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-4' ); } } add_action( 'pre_get_posts', 'remove_home_category' ); This code alters the query before the actual query is run so is the most efficient hook to modify the loop in this case. A: you could use wp_parse_args() to merge your arguments into the default query // Define the default query args global $wp_query; $defaults = $wp_query->query_vars; // Your custom args $args = array('cat'=>-4); // merge the default with your custom args $args = wp_parse_args( $args, $defaults ); // query posts based on merged arguments query_posts($args); although, i think the more elegant route is using the pre_get_posts() action. this modifies the query before the query is made so that the query isn't run twice. check out: http://codex.wordpress.org/Custom_Queries#Category_Exclusion based on that example to exclude category 4 from the index i'd put this in your functions.php: add_action('pre_get_posts', 'wpa_44672' ); function wpa_44672( $wp_query ) { //$wp_query is passed by reference. we don't need to return anything. whatever changes made inside this function will automatically effect the global variable $excluded = array(4); //made it an array in case you need to exclude more than one // only exclude on the home page if( is_home() ) { set_query_var('category__not_in', $excluded); //which is merely the more elegant way to write: //$wp_query->set('category__not_in', $excluded); } } A: Before the line <?php if(have_posts()): ?> Insert something like this <?php query_posts($query_string . '&cat=-4'); ?> This excludes the category with Category ID 4. As seen here A: Adam is right. In addition, for pagination to work, you need to have something more like so: <?php query_posts('post_type=post&paged='.$paged.'&cat=-4'); ?>
wordpress
{ "language": "en", "length": 331, "provenance": "stackexchange_00019.jsonl.gz:417791", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44672" }
[ 0.031982421875, 0.0186004638671875, -0.0273590087890625, -0.013580322265625, 0.057525634765625, -0.051666259765625, 0.0633544921875, -0.0245208740234375, 0.019561767578125, 0.001125335693359375, -0.019866943359375, -0.027923583984375, -0.0163116455078125, -0.03619384765625, -0.0007214546203613281, -0.036712646484375, 0.035675048828125, -0.0240936279296875, 0.032745361328125, -0.00762176513671875, 0.006984710693359375, -0.002025604248046875, 0.049346923828125, 0.057159423828125, -0.003387451171875, -0.0231781005859375, 0.04351806640625, -0.0094757080078125, -0.01207733154296875, -0.0234222412109375, 0.00420379638671875, 0.01837158203125, -0.01036834716796875, 0.017791748046875, 0.0160369873046875, -0.0202484130859375, 0.00754547119140625, 0.0115509033203125, 0.0287322998046875, 0.01030731201171875, 0.0037555694580078125, 0.00740814208984375, -0.006961822509765625, 0.02154541015625, -0.043487548828125, -0.017578125, 0.01300048828125, -0.0006880760192871094, 0.0209503173828125, -0.043914794921875, 0.0263671875, 0.0073699951171875, 0.042510986328125, -0.01505279541015625, -0.0160369873046875, 0.055511474609375, 0.0115966796875, 0.020751953125, 0.05657958984375, -0.016204833984375, -0.0687255859375, -0.01488494873046875, 0.0287628173828125, -0.052032470703125, -0.0220947265625, -0.0077667236328125, -0.00843048095703125, -0.007686614990234375, -0.03936767578125, -0.01104736328125, 0.06414794921875, -0.0231170654296875, -0.00787353515625, 0.0048828125, -0.060577392578125, 0.006427764892578125, 0.0287628173828125, -0.01432037353515625, 0.008636474609375, -0.0182037353515625, -0.0130767822265625, 0.022705078125, -0.070556640625, -0.007717132568359375, 0.01070404052734375, 0.026947021484375, -0.0179901123046875, -0.0242462158203125, -0.01335906982421875, -0.01517486572265625, -0.0166015625, -0.0260772705078125, -0.0080108642578125, 0.004852294921875, -0.00722503662109375, -0.0192108154296875, 0.01558685302734375, 0.0102996826171875, -0.00637054443359375, -0.017120361328125, -0.010101318359375, -0.0237884521484375, -0.0391845703125, 0.00524139404296875, 0.0202484130859375, 0.0195770263671875, -0.0277557373046875, 0.027130126953125, 0.07208251953125, 0.0556640625, 0.02508544921875, 0.01690673828125, -0.02435302734375, -0.019195556640625, -0.041259765625, 0.045562744140625, -0.01690673828125, -0.0292510986328125, -0.026611328125, 0.004840850830078125, -0.004131317138671875, 0.042999267578125, -0.0157470703125, -0.050994873046875, 0.01934814453125, 0.003841400146484375, -0.003070831298828125, -0.0301666259765625, 0.0267333984375, 0.01041412353515625, -0.038848876953125, -0.01287841796875, 0.07421875, 0.03350830078125, 0.0274810791015625, -0.0255584716796875, 0.0094757080078125, -0.0144500732421875, 0.007755279541015625, 0.007640838623046875, 0.0202789306640625, -0.036407470703125, 0.0009555816650390625, 0.0165863037109375, 0.058807373046875, 0.0312042236328125, 0.0163421630859375, -0.0008840560913085938, 0.03094482421875, -0.0177001953125, 0.040740966796875, -0.06671142578125, 0.034912109375, 0.005199432373046875, -0.0186004638671875, 0.0028171539306640625, 0.01983642578125, -0.0260009765625, -0.027557373046875, -0.0335693359375, 0.01983642578125, 0.0032806396484375, 0.0130615234375, -0.0355224609375, -0.04052734375, -0.000667572021484375, -0.0557861328125, -0.0137786865234375, 0.016571044921875, 0.0224761962890625, 0.01203155517578125, 0.001476287841796875, 0.0304412841796875, -0.002429962158203125, -0.0171051025390625, 0.005962371826171875, -0.0277099609375, -0.053680419921875, 0.037384033203125, 0.02764892578125, -0.0207977294921875, -0.0258636474609375, -0.039459228515625, 0.0256500244140625, -0.06451416015625, 0.0246429443359375, 0.01123809814453125, 0.0400390625, -0.00786590576171875, 0.00395965576171875, 0.0655517578125, 0.03826904296875, -0.0104522705078125, 0.00775909423828125, -0.0017499923706054688, -0.028778076171875, -0.024139404296875, -0.0155792236328125, -0.004856109619140625, 0.006927490234375, 0.025665283203125, -0.00476837158203125, -0.007564544677734375, -0.01079559326171875, -0.08111572265625, -0.006519317626953125, -0.021881103515625, 0.0301971435546875, -0.0255126953125, 0.0217437744140625, 0.0254974365234375, 0.0005044937133789062, -0.02960205078125, -0.00717926025390625, -0.0189056396484375, -0.0031909942626953125, -0.00597381591796875, 0.039337158203125, 0.022979736328125, 0.005077362060546875, 0.047332763671875, -0.0172271728515625, 0.0469970703125, 0.02203369140625, 0.09979248046875, -0.022979736328125, -0.01140594482421875, -0.056365966796875, 0.03887939453125, 0.00978851318359375, -0.11883544921875, 0.058990478515625, 0.051239013671875, 0.0438232421875, -0.05352783203125, 0.0009918212890625, -0.00849151611328125, -0.004425048828125, -0.0185699462890625, 0.038055419921875, 0.038970947265625, -0.0007333755493164062, -0.054656982421875, -0.08294677734375, 0.047210693359375, -0.06121826171875, -0.00928497314453125, -0.037872314453125, -0.00750732421875, 0.039703369140625, 0.036773681640625, 0.0562744140625, 0.001453399658203125, 0.02142333984375, 0.0184326171875, 0.0212860107421875, 0.03192138671875, 0.0355224609375, -0.0338134765625, -0.019256591796875, 0.0232086181640625, -0.0361328125, -0.0821533203125, 0.0131072998046875, 0.0838623046875, -0.0301361083984375, 0.0253448486328125, 0.0115966796875, -0.016326904296875, 0.004009246826171875, 0.01111602783203125, -0.036590576171875, -0.0171356201171875, -0.01302337646484375, -0.0208892822265625, 0.0194549560546875, -0.055694580078125, 0.04144287109375, -0.0030422210693359375, -0.0071258544921875, -0.0146331787109375, 0.056793212890625, 0.040557861328125, -0.023590087890625, -0.044342041015625, -0.047607421875, 0.025848388671875, -0.0204315185546875, -0.0274810791015625, -0.038360595703125, -0.004375457763671875, 0.0134735107421875, -0.0269317626953125, -0.007549285888671875, 0.00981903076171875, -0.020843505859375, 0.014190673828125, 0.006317138671875, 0.004032135009765625, 0.00699615478515625, 0.02972412109375, 0.04815673828125, 0.0109710693359375, -0.002452850341796875, 0.02105712890625, -0.002635955810546875, 0.0272216796875, 0.00751495361328125, 0.0101318359375, 0.029449462890625, -0.056182861328125, 0.023773193359375, 0.02056884765625, 0.051116943359375, 0.034881591796875, -0.031524658203125, 0.055267333984375, 0.035369873046875, -0.00611114501953125, -0.0673828125, 0.039276123046875, 0.034942626953125, 0.01116180419921875, 0.0130462646484375, 0.0207366943359375, -0.044586181640625, 0.0034694671630859375, -0.0104522705078125, 0.0198211669921875, -0.0272216796875, -0.0528564453125, -0.06549072265625, -0.0401611328125, -0.03057861328125, -0.002197265625, -0.0106964111328125, 0.00817108154296875, 0.12420654296875, 0.005634307861328125, -0.0855712890625, -0.03204345703125, -0.00342559814453125, -0.031951904296875, 0.01568603515625, -0.034423828125, 0.00873565673828125, -0.0165557861328125, 0.007598876953125, 0.032318115234375, -0.017791748046875, 0.0032176971435546875, -0.01038360595703125, -0.01216888427734375, 0.00110626220703125, 0.0269317626953125, 0.00795745849609375, 0.005764007568359375, 0.0335693359375, 0.037078857421875, -0.000713348388671875, -0.030914306640625, -0.006168365478515625, -0.0293426513671875, -0.006870269775390625, 0.007213592529296875, 0.0111083984375, -0.0212554931640625, 0.030059814453125, -0.00966644287109375, -0.0161590576171875, -0.00439453125, -0.034759521484375, 0.0689697265625, 0.007717132568359375, 0.0179901123046875, -0.008056640625, 0.038665771484375, -0.0180816650390625, 0.0041961669921875, 0.00299835205078125, -0.012847900390625, -0.0154571533203125, -0.01216888427734375, -0.0207977294921875, -0.032806396484375, 0.052642822265625, 0.0302276611328125, -0.0182342529296875, 0.022979736328125, -0.04150390625, 0.0273895263671875, 0.077392578125, -0.039093017578125, -0.0307769775390625, -0.031341552734375, -0.0044403076171875, 0.0166473388671875, 0.00037598609924316406, -0.0125274658203125, -0.0137939453125, -0.0718994140625, 0.0027675628662109375, -0.0210418701171875, -0.01092529296875, -0.030914306640625, 0.0305938720703125, -0.0626220703125, -0.036956787109375, 0.044677734375, -0.0361328125, 0.00994110107421875, -0.0372314453125, 0.03326416015625, -0.065673828125, -0.0222320556640625, -0.0099639892578125, -0.052734375, 0.00884246826171875, -0.037261962890625, 0.0259857177734375, 0.0085906982421875, 0.01329803466796875, -0.0330810546875, 0.01293182373046875, 0.00801849365234375, -0.0303802490234375, 0.0022792816162109375, -0.0030422210693359375, -0.027801513671875, 0.039093017578125, -0.01404571533203125, -0.00014472007751464844, 0.00038933753967285156, -0.0147247314453125, -0.00673675537109375, 0.052001953125, -0.035186767578125, 0.018402099609375, -0.035064697265625, -0.0034732818603515625, -0.041015625, -0.04852294921875, -0.00923919677734375, -0.0292510986328125, -0.004779815673828125, -0.0049896240234375, -0.03948974609375, -0.0174407958984375, 0.034881591796875, 0.0379638671875, -0.045562744140625, 0.00482177734375, 0.040618896484375, 0.01560211181640625, -0.040252685546875, -0.057037353515625, 0.015777587890625, 0.027435302734375, -0.050872802734375, 0.061676025390625, 0.0185546875, -0.02178955078125, 0.09765625, -0.020233154296875, -0.015411376953125, -0.0202789306640625, 0.040252685546875, 0.01190948486328125, -0.025909423828125, 0.00946807861328125, -0.0092926025390625, 0.0285797119140625, 0.018310546875, 0.025360107421875, -0.038238525390625, 0.0189361572265625, 0.01514434814453125, 0.03717041015625, -0.03656005859375, -0.0290069580078125, -0.013824462890625, -0.0019216537475585938, -0.007472991943359375, 0.051666259765625, 0.03460693359375, 0.00994873046875, 0.00775909423828125, 0.0252838134765625, 0.0147247314453125, -0.0374755859375, -0.0216064453125, -0.043243408203125, 0.035308837890625, -0.03924560546875, -0.00017368793487548828, -0.0015878677368164062, 0.01273345947265625, -0.0472412109375, -0.024200439453125, -0.034027099609375, -0.033416748046875, 0.00823974609375, 0.049835205078125, 0.0219268798828125, -0.0203857421875, 0.02716064453125, 0.0094757080078125, -0.0014133453369140625, -0.007175445556640625, -0.045379638671875, -0.00862884521484375, -0.038604736328125, 0.00949859619140625, 0.006519317626953125, -0.01178741455078125, 0.0285797119140625, 0.031402587890625, 0.0195159912109375, 0.032196044921875, -0.02685546875, 0.038665771484375, 0.042266845703125, 0.0017232894897460938, 0.00118255615234375, 0.01500701904296875, -0.006504058837890625, -0.003421783447265625, 0.01526641845703125, -0.04046630859375, -0.0263824462890625, 0.0030364990234375, 0.033905029296875, -0.03900146484375, -0.022186279296875, 0.0496826171875, 0.00885009765625, -0.0107879638671875, 0.05084228515625, 0.006137847900390625, -0.023345947265625, -0.028076171875, -0.0199127197265625, 0.0185394287109375, -0.00251007080078125, -0.0005064010620117188, -0.00962066650390625, 0.0005679130554199219, 0.0152130126953125, -0.0021686553955078125, -0.0255584716796875, 0.0148468017578125, 0.024383544921875, -0.059906005859375, -0.0134124755859375, -0.00255584716796875, -0.0212249755859375, -0.053619384765625, 0.014862060546875, -0.01751708984375, -0.0037975311279296875, 0.01800537109375, 0.04632568359375, -0.01409149169921875, -0.061859130859375, 0.02838134765625, -0.0243682861328125, 0.08380126953125, 0.034515380859375, -0.060943603515625, -0.00582122802734375, -0.056976318359375, -0.01983642578125, -0.03369140625, -0.030364990234375, -0.049591064453125, -0.000621795654296875, -0.00975799560546875, 0.005550384521484375, -0.0011415481567382812, -0.0120849609375, -0.02490234375, 0.0208892822265625, 0.01117706298828125, 0.0003032684326171875, -0.01153564453125, 0.041839599609375, 0.01910400390625, 0.021331787109375, 0.0164337158203125, 0.042694091796875, 0.0361328125, -0.043701171875, 0.01285552978515625, -0.06268310546875, -0.0258026123046875, 0.0106353759765625, -0.062286376953125, 0.00689697265625, 0.025634765625, -0.006008148193359375, -0.036590576171875, 0.007358551025390625, 0.007366180419921875, -0.030853271484375, 0.0196685791015625, 0.01354217529296875, -0.032928466796875, 0.0106048583984375, 0.0011577606201171875, -0.01007080078125, -0.0241851806640625, -0.02789306640625, 0.01090240478515625, 0.01171875, -0.005290985107421875, 0.007724761962890625, -0.0380859375, 0.052764892578125, 0.046600341796875, -0.021484375, 0.036834716796875, 0.01605224609375, 0.007537841796875, 0.0236968994140625, -0.00365447998046875, 0.0276641845703125, 0.015289306640625, 0.0596923828125, -0.002376556396484375, -0.003101348876953125, 0.03472900390625, -0.033447265625, -0.0107879638671875, 0.0011968612670898438, 0.02362060546875, -0.032867431640625, 0.006023406982421875, 0.0113525390625, 0.0129241943359375, -0.002376556396484375, 0.0086212158203125, 0.0008096694946289062, 0.00213623046875, 0.023651123046875, 0.0186767578125, -0.0187225341796875, 0.01068115234375, 0.01294708251953125, -0.0211639404296875, -0.0008473396301269531, 0.006229400634765625, 0.00865936279296875, -0.06463623046875, 0.0183258056640625, 0.053436279296875, -0.025115966796875, -0.037841796875, 0.0001634359359741211, 0.028839111328125, -0.0277862548828125, -0.10235595703125, 0.0087738037109375, 0.0304718017578125, -0.0192108154296875, 0.01128387451171875, 0.0001857280731201172, -0.004306793212890625, 0.020294189453125, -0.00506591796875, 0.0025177001953125, -0.0162811279296875, -0.03668212890625, 0.017242431640625, 0.0078125, 0.024139404296875, 0.0025482177734375, -0.08477783203125, 0.0018186569213867188, -0.0435791015625, 0.0269012451171875, -0.0103912353515625, -0.0714111328125, 0.054840087890625, -0.007110595703125, -0.028472900390625, 0.0004763603210449219, 0.007762908935546875, 0.007007598876953125, -0.0103302001953125, 0.05572509765625, -0.027435302734375, -0.012786865234375, 0.0227813720703125, -0.00640869140625, -0.040435791015625, -0.0361328125, -0.05987548828125, 0.0723876953125, -0.06610107421875, 0.0633544921875, 0.01227569580078125, 0.023193359375, 0.028045654296875, 0.0216522216796875, -0.04620361328125, 0.06201171875, 0.032196044921875, 0.035919189453125, -0.0249786376953125, -0.0160980224609375, 0.023468017578125, 0.036865234375, 0.0303802490234375, -0.00531768798828125, -0.0232086181640625, -0.0212249755859375, 0.01324462890625, 0.07470703125, 0.028594970703125, 0.00397491455078125, -0.0237579345703125, -0.0085296630859375, 0.0165863037109375, -0.0007495880126953125, 0.036285400390625, 0.010589599609375, -0.058258056640625, 0.00555419921875, -0.0031719207763671875, 0.0018339157104492188, -0.002719879150390625, 0.0267333984375, 0.010162353515625, -0.0174407958984375, -0.0171966552734375, 0.003955841064453125, -0.02703857421875, 0.06756591796875, -0.0111236572265625, -0.017852783203125, 0.020050048828125, -0.0474853515625, 0.0322265625, -0.026092529296875, 0.050384521484375, 0.04388427734375, 0.019256591796875, 0.125732421875, 0.000637054443359375, 0.0257568359375, 0.0161895751953125, -0.00612640380859375, 0.029632568359375, 0.0599365234375, 0.043731689453125, 0.01020050048828125, 0.0439453125, 0.0321044921875, 0.041046142578125, -0.03741455078125, -0.0116729736328125, 0.01898193359375, 0.0275115966796875, -0.004436492919921875, -0.032196044921875, 0.004970550537109375, -0.0249176025390625, 0.0350341796875, -0.062042236328125, -0.0062103271484375, 0.0307769775390625, 0.029449462890625, -0.00463104248046875, -0.0171051025390625, -0.010589599609375, -0.030487060546875, -0.0345458984375, 0.00919342041015625, -0.0181884765625, 0.025482177734375, 0.0380859375, 0.0223236083984375, -0.01334381103515625, -0.00965118408203125, -0.0093841552734375, 0.05108642578125, -0.0120391845703125, 0.01068115234375, -0.0131072998046875, -0.032806396484375, -0.0220794677734375, 0.0091705322265625, 0.0183258056640625, -0.01300048828125, 0.031158447265625, 0.057464599609375, -0.00832366943359375, -0.018829345703125, 0.0291900634765625, -0.00830841064453125, -0.06353759765625, -0.023651123046875, 0.0201263427734375, 0.0723876953125, 0.02056884765625, 0.021270751953125, 0.039306640625, 0.0521240234375, 0.0019521713256835938, 0.0088653564453125, 0.0013370513916015625, -0.0379638671875, 0.00885009765625, -0.0018510818481445312, 0.053741455078125, 0.0135955810546875, -0.04962158203125, -0.01561737060546875, -0.00013518333435058594, -0.02410888671875, 0.01085662841796875, 0.0218353271484375, -0.03271484375, 0.03448486328125, 0.021759033203125, -0.05523681640625, 0.0218505859375, 0.0218505859375, 0.004360198974609375, -0.017242431640625, -0.002193450927734375, -0.0276031494140625, -0.042938232421875, -0.0187530517578125, -0.0192718505859375, 0.0288543701171875, 0.033599853515625, 0.03277587890625, 0.0225677490234375, 0.0302276611328125, 0.008056640625, 0.04168701171875, -0.03466796875, -0.00786590576171875, 0.004993438720703125, -0.01654052734375, 0.03167724609375, -0.0014543533325195312, 0.02093505859375, -0.025299072265625, 0.06353759765625, -0.07061767578125, -0.0211639404296875, -0.009429931640625, 0.0161590576171875, -0.0615234375, 0.052825927734375, -0.005115509033203125, 0.0188140869140625, -0.03851318359375, -0.047088623046875, 0.06927490234375, 0.054443359375, 0.00501251220703125, 0.0173187255859375, -0.0123748779296875, 0.0177154541015625, 0.0157012939453125, 0.0271148681640625, 0.0036029815673828125, 0.0318603515625, -0.07073974609375, 0.01383209228515625, -0.0018167495727539062, -0.00812530517578125, 0.039581298828125, 0.0018444061279296875, 0.009979248046875, 0.0259246826171875, -0.028106689453125, -0.0201568603515625, 0.037109375, 0.0227508544921875, -0.031463623046875, 0.02313232421875, 0.01380157470703125, -0.017364501953125, 0.01093292236328125, 0.007297515869140625, -0.03143310546875, -0.032196044921875, -0.0250244140625, -0.0005774497985839844, -0.047119140625, -0.07073974609375, -0.05352783203125, -0.009979248046875, 0.013580322265625, -0.00582122802734375, -0.040008544921875, 0.029052734375, -0.01708984375, 0.0161285400390625, -0.042144775390625, 0.05633544921875, -0.0212554931640625, 0.0008249282836914062, -0.06732177734375, -0.0019006729125976562, -0.0234222412109375, 0.0185394287109375, -0.019775390625, 0.00846099853515625, 0.015777587890625, -0.0168609619140625, -0.027923583984375, -0.0007076263427734375, -0.001285552978515625, 0.0213623046875, 0.033111572265625, -0.02154541015625, -0.0013360977172851562, 0.00848388671875, -0.004627227783203125, -0.037567138671875, 0.011688232421875, -0.045623779296875, -0.031646728515625, -0.00008034706115722656, -0.00942230224609375, 0.00006985664367675781, -0.037933349609375, -0.06927490234375, 0.0301666259765625, -0.01096343994140625, -0.032684326171875, -0.016571044921875, 0.022125244140625, -0.0030536651611328125, -0.0135345458984375, 0.005435943603515625, -0.034423828125, -0.0010862350463867188, 0.0011091232299804688, 0.02349853515625, -0.005828857421875, -0.0030460357666015625, 0.013458251953125, -0.07501220703125, 0.0257568359375, 0.0023059844970703125, 0.0172119140625, -0.01136016845703125, 0.0086517333984375, 0.0242462158203125, 0.0294647216796875, -0.02197265625, 0.07196044921875, 0.004596710205078125, -0.0027256011962890625, 0.01448822021484375, -0.0272979736328125, -0.06951904296875, -0.0565185546875, 0.044769287109375, 0.029876708984375, 0.0267181396484375, 0.015594482421875, -0.04449462890625, -0.04119873046875, 0.020263671875, -0.007389068603515625, 0.005649566650390625, -0.053955078125, 0.003192901611328125, 0.005767822265625, 0.0179290771484375, -0.0193328857421875, -0.01275634765625, -0.0203094482421875, -0.040069580078125, -0.0182952880859375, 0.0094146728515625, -0.033294677734375, 0.0670166015625, -0.07171630859375, -0.0002892017364501953, -0.032318115234375, -0.046600341796875, -0.0245513916015625, -0.054473876953125, -0.0241546630859375, -0.01038360595703125, -0.02984619140625, 0.01190185546875, 0.0244293212890625, 0.0043182373046875, 0.0506591796875, 0.0003139972686767578, -0.0169219970703125, -0.0200347900390625, 0.0011272430419921875, 0.031280517578125, 0.0024166107177734375, -0.032958984375, -0.005519866943359375, 0.01861572265625, 0.01001739501953125, 0.030242919921875, 0.055328369140625, 0.012298583984375, 0.042236328125, 0.03509521484375, -0.0435791015625, 0.053985595703125, -0.0584716796875, -0.00035691261291503906, 0.00017726421356201172, -0.0147857666015625, -0.01971435546875, 0.005352020263671875, 0.007022857666015625, 0.0040435791015625, 0.0113067626953125 ]
463908f2d459e1219cf0531c347f22fad40a7ba6
Wordpress Stackexchange Q: How to set an upload directory for each media type? Is there a way I can set a custom upload folder for each media type? for example: .PNGs should be saved in uploads/png, .GIFs in upload/gifs A: [More info added]. See below the code. //~ change upload dir add_filter('upload_dir', 'choose_upload_dir'); //~ upload image $upload = wp_handle_upload( $_FILES['your_form_input_name'], array('test_form' => false) ); //~ change upload dir back remove_filter('upload_dir', 'choose_upload_dir'); function choose_upload_dir($upload) { //~ your file to upload $file_type = $_FILES['your_form_input_name']['type']; //~ switch between file types switch($file_type) { //~ if type is 'png' then upload subdir is '/png' and so on case 'image/png': $type_dir = '/png'; break; case 'image/jpeg': $type_dir = '/jpg'; break; default: $type_dir = '/others'; } $upload['subdir'] = $upload['subdir'].$type_dir; $upload['path'] = $upload['basedir'].$upload['subdir']; $upload['url'] = $upload['baseurl'].$upload['subdir']; return $upload; } ?> More info: Casually I've stumbled upon useful plugin which allows you to setup different directories for your uploads: Relocate Upload
Q: How to set an upload directory for each media type? Is there a way I can set a custom upload folder for each media type? for example: .PNGs should be saved in uploads/png, .GIFs in upload/gifs A: [More info added]. See below the code. //~ change upload dir add_filter('upload_dir', 'choose_upload_dir'); //~ upload image $upload = wp_handle_upload( $_FILES['your_form_input_name'], array('test_form' => false) ); //~ change upload dir back remove_filter('upload_dir', 'choose_upload_dir'); function choose_upload_dir($upload) { //~ your file to upload $file_type = $_FILES['your_form_input_name']['type']; //~ switch between file types switch($file_type) { //~ if type is 'png' then upload subdir is '/png' and so on case 'image/png': $type_dir = '/png'; break; case 'image/jpeg': $type_dir = '/jpg'; break; default: $type_dir = '/others'; } $upload['subdir'] = $upload['subdir'].$type_dir; $upload['path'] = $upload['basedir'].$upload['subdir']; $upload['url'] = $upload['baseurl'].$upload['subdir']; return $upload; } ?> More info: Casually I've stumbled upon useful plugin which allows you to setup different directories for your uploads: Relocate Upload
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:417799", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44705" }
[ 0.01934814453125, -0.0164337158203125, -0.025054931640625, 0.0019626617431640625, 0.00799560546875, -0.041351318359375, 0.07708740234375, 0.0118408203125, -0.0131072998046875, 0.0174713134765625, -0.0019044876098632812, 0.0110931396484375, -0.0009927749633789062, -0.035003662109375, 0.005092620849609375, -0.00795745849609375, 0.021575927734375, -0.0218658447265625, 0.0080718994140625, -0.02093505859375, 0.016632080078125, -0.0006012916564941406, 0.01342010498046875, 0.018524169921875, -0.009063720703125, 0.0225067138671875, -0.0020751953125, 0.005252838134765625, -0.0443115234375, -0.033599853515625, -0.003345489501953125, 0.0445556640625, 0.02667236328125, -0.004146575927734375, 0.0114288330078125, 0.08770751953125, 0.0259552001953125, -0.00439453125, 0.035797119140625, 0.006809234619140625, 0.0194549560546875, -0.010040283203125, 0.0452880859375, -0.0168914794921875, 0.005645751953125, -0.01275634765625, 0.0225372314453125, -0.01641845703125, 0.03857421875, 0.0156097412109375, -0.0096588134765625, 0.0086669921875, 0.0012645721435546875, -0.02557373046875, -0.005420684814453125, -0.024932861328125, 0.0013494491577148438, 0.00608062744140625, 0.034759521484375, -0.0284271240234375, -0.051116943359375, -0.00820159912109375, 0.01806640625, -0.0177459716796875, -0.002475738525390625, -0.01273345947265625, -0.01904296875, 0.0269927978515625, -0.051971435546875, -0.026947021484375, 0.02642822265625, -0.0259246826171875, 0.0171661376953125, -0.064208984375, 0.00133514404296875, 0.049896240234375, -0.0010204315185546875, 0.0010318756103515625, 0.0178680419921875, -0.0531005859375, 0.025482177734375, -0.020294189453125, 0.027191162109375, -0.0280609130859375, 0.036773681640625, 0.01499176025390625, 0.00598907470703125, -0.01050567626953125, -0.003337860107421875, 0.035400390625, -0.01397705078125, -0.002063751220703125, 0.03509521484375, 0.0085296630859375, -0.01187896728515625, -0.017913818359375, 0.01025390625, -0.01556396484375, 0.0002682209014892578, -0.0009632110595703125, 0.01076507568359375, -0.04693603515625, 0.0604248046875, -0.0321044921875, 0.031219482421875, 0.006755828857421875, -0.0186309814453125, -0.0782470703125, 0.02996826171875, 0.021759033203125, -0.01224517822265625, 0.04779052734375, -0.0244598388671875, -0.032470703125, -0.0192413330078125, 0.0164794921875, -0.0452880859375, 0.02117919921875, 0.01058197021484375, 0.004852294921875, -0.002349853515625, 0.036956787109375, 0.0023250579833984375, -0.06781005859375, 0.0166473388671875, -0.020965576171875, -0.022979736328125, -0.033355712890625, -0.00821685791015625, 0.0285491943359375, -0.0340576171875, 0.0240325927734375, 0.05615234375, -0.00872802734375, -0.013641357421875, -0.01544189453125, 0.010894775390625, -0.032257080078125, -0.0207977294921875, 0.036773681640625, 0.02044677734375, -0.0438232421875, -0.01232147216796875, 0.015167236328125, -0.03936767578125, 0.042724609375, 0.01171112060546875, 0.003936767578125, -0.0206451416015625, -0.09423828125, -0.00525665283203125, -0.03277587890625, 0.0289764404296875, -0.01021575927734375, -0.0152587890625, -0.038726806640625, 0.0197906494140625, -0.033172607421875, 0.01200103759765625, -0.0516357421875, 0.0152435302734375, -0.01163482666015625, 0.03448486328125, -0.0198211669921875, -0.0286407470703125, -0.0174713134765625, -0.06634521484375, -0.01346588134765625, 0.017852783203125, -0.004467010498046875, 0.0023288726806640625, 0.0240020751953125, -0.002964019775390625, 0.004528045654296875, -0.00177764892578125, -0.00923919677734375, 0.01507568359375, 0.016845703125, 0.00920867919921875, 0.051605224609375, 0.0060577392578125, -0.024169921875, 0.031524658203125, 0.00724029541015625, -0.03125, 0.00452423095703125, 0.00908660888671875, 0.0147705078125, -0.00595855712890625, 0.0202789306640625, 0.037567138671875, 0.035888671875, -0.0833740234375, -0.006328582763671875, -0.01910400390625, 0.0267791748046875, -0.03338623046875, 0.0044708251953125, -0.012237548828125, 0.02020263671875, -0.0285186767578125, -0.0149078369140625, 0.004871368408203125, 0.0098724365234375, -0.006160736083984375, -0.0254364013671875, -0.0008835792541503906, 0.01041412353515625, -0.0115509033203125, -0.00470733642578125, 0.017608642578125, 0.012054443359375, -0.0217132568359375, -0.0457763671875, -0.0214691162109375, 0.038055419921875, -0.015472412109375, 0.021575927734375, -0.01377105712890625, 0.07232666015625, -0.03985595703125, -0.04071044921875, -0.03558349609375, -0.0013704299926757812, 0.0294647216796875, 0.01702880859375, -0.027862548828125, 0.00638580322265625, 0.0226593017578125, 0.0161285400390625, -0.02587890625, 0.0156707763671875, -0.01201629638671875, -0.041015625, -0.037933349609375, -0.01012420654296875, -0.0004317760467529297, -0.069091796875, 0.007740020751953125, 0.0687255859375, 0.029144287109375, 0.027130126953125, 0.0051422119140625, 0.0345458984375, 0.09600830078125, 0.01345062255859375, 0.00836944580078125, 0.0014867782592773438, -0.0386962890625, -0.0082550048828125, -0.03900146484375, 0.0015077590942382812, 0.01268768310546875, -0.0743408203125, -0.006744384765625, 0.0438232421875, -0.044647216796875, -0.04608154296875, 0.061004638671875, -0.02459716796875, 0.0175323486328125, -0.0183868408203125, -0.011383056640625, 0.0014057159423828125, -0.005687713623046875, 0.031097412109375, 0.01470947265625, 0.01934814453125, -0.0243988037109375, 0.038299560546875, 0.0108795166015625, -0.060302734375, -0.0171966552734375, 0.0330810546875, 0.056304931640625, 0.0131988525390625, -0.029449462890625, -0.006591796875, -0.0005083084106445312, 0.0204620361328125, -0.03594970703125, 0.00675201416015625, -0.024932861328125, -0.0015039443969726562, -0.038848876953125, -0.049163818359375, 0.038818359375, 0.015777587890625, 0.000091552734375, -0.0146636962890625, 0.0202789306640625, 0.0232391357421875, -0.02001953125, 0.0335693359375, -0.031463623046875, -0.0069122314453125, 0.07012939453125, -0.02020263671875, 0.0218048095703125, -0.01427459716796875, 0.017669677734375, 0.047760009765625, -0.01515960693359375, -0.005462646484375, -0.006771087646484375, 0.00890350341796875, -0.0007886886596679688, 0.0369873046875, -0.006256103515625, -0.049102783203125, -0.01160430908203125, -0.0267791748046875, -0.00832366943359375, -0.050201416015625, -0.0041351318359375, -0.02008056640625, -0.01180267333984375, -0.026702880859375, -0.07855224609375, -0.01428985595703125, 0.01715087890625, -0.06744384765625, 0.0292205810546875, 0.01187896728515625, -0.0233001708984375, -0.037353515625, 0.050689697265625, -0.004047393798828125, -0.0289459228515625, 0.01120758056640625, 0.035980224609375, -0.012420654296875, -0.007266998291015625, -0.0168304443359375, 0.01290130615234375, -0.00273895263671875, -0.0066680908203125, 0.0240631103515625, 0.004978179931640625, -0.018035888671875, 0.005588531494140625, 0.07293701171875, -0.003299713134765625, -0.00988006591796875, 0.02655029296875, -0.04156494140625, 0.04736328125, -0.023040771484375, 0.04156494140625, 0.057952880859375, -0.03173828125, 0.0000966787338256836, -0.019317626953125, -0.034423828125, -0.05267333984375, 0.057159423828125, 0.058929443359375, -0.05364990234375, -0.0273895263671875, -0.072021484375, -0.01861572265625, -0.0252685546875, -0.04412841796875, 0.01529693603515625, 0.0134429931640625, 0.004131317138671875, -0.0117340087890625, 0.033172607421875, -0.002292633056640625, 0.041046142578125, -0.0192108154296875, -0.03240966796875, 0.03314208984375, -0.006267547607421875, 0.0194091796875, 0.0012254714965820312, 0.0238037109375, -0.0147705078125, 0.037994384765625, 0.02227783203125, 0.01201629638671875, -0.01230621337890625, 0.0083465576171875, -0.051483154296875, -0.073486328125, 0.03851318359375, -0.048431396484375, 0.0005068778991699219, -0.056365966796875, -0.0112152099609375, -0.0240325927734375, 0.0738525390625, -0.040679931640625, -0.006832122802734375, -0.023468017578125, -0.00449371337890625, -0.0139312744140625, -0.04345703125, -0.046783447265625, 0.006534576416015625, -0.0186309814453125, -0.006053924560546875, 0.0007491111755371094, -0.01197052001953125, 0.03179931640625, -0.0626220703125, 0.0207366943359375, -0.039337158203125, 0.0208587646484375, -0.018798828125, 0.008819580078125, 0.012054443359375, 0.0278167724609375, -0.0180511474609375, 0.0135498046875, -0.0423583984375, -0.10113525390625, -0.02496337890625, 0.017852783203125, 0.054931640625, -0.0214691162109375, 0.0249786376953125, -0.0228424072265625, 0.08551025390625, 0.0186920166015625, -0.005329132080078125, 0.01544189453125, -0.0025882720947265625, 0.004596710205078125, -0.002628326416015625, 0.013580322265625, -0.0267181396484375, 0.00998687744140625, -0.0650634765625, -0.03582763671875, -0.053985595703125, -0.032318115234375, 0.026458740234375, -0.0209808349609375, -0.01049041748046875, -0.024932861328125, -0.0308837890625, -0.0657958984375, 0.004749298095703125, -0.039031982421875, -0.019866943359375, -0.0302886962890625, -0.04339599609375, 0.04339599609375, -0.03228759765625, 0.01021575927734375, 0.00856781005859375, 0.08984375, -0.00012177228927612305, -0.01097869873046875, -0.0298309326171875, 0.00482940673828125, 0.040191650390625, 0.0158843994140625, 0.0296173095703125, 0.024871826171875, -0.0201263427734375, 0.0247802734375, 0.020721435546875, 0.0010347366333007812, -0.01476287841796875, 0.0345458984375, -0.0074005126953125, -0.0306243896484375, 0.0156402587890625, -0.017791748046875, 0.00360870361328125, -0.019805908203125, -0.035125732421875, 0.00963592529296875, -0.052154541015625, 0.039459228515625, 0.0245361328125, 0.00801849365234375, -0.05633544921875, -0.0623779296875, 0.0190887451171875, -0.0268096923828125, 0.039215087890625, -0.0006737709045410156, 0.004497528076171875, 0.05743408203125, 0.036376953125, 0.00510406494140625, 0.023284912109375, 0.0364990234375, 0.0228424072265625, 0.0362548828125, 0.06622314453125, 0.02606201171875, -0.0377197265625, 0.028533935546875, -0.004467010498046875, 0.0250701904296875, -0.003993988037109375, -0.044677734375, 0.0044097900390625, 0.0227508544921875, -0.03216552734375, -0.02471923828125, 0.036102294921875, 0.027099609375, -0.006191253662109375, 0.010955810546875, -0.060546875, 0.02447509765625, -0.052825927734375, 0.034515380859375, 0.039794921875, -0.0196685791015625, -0.036651611328125, 0.01392364501953125, 0.0296630859375, -0.0426025390625, 0.010345458984375, 0.031768798828125, 0.048431396484375, 0.028076171875, 0.0129852294921875, 0.00827789306640625, -0.0190582275390625, 0.0040740966796875, 0.01114654541015625, -0.05816650390625, 0.0013704299926757812, -0.0099029541015625, 0.040496826171875, -0.0244140625, -0.03509521484375, 0.0340576171875, -0.0469970703125, -0.004367828369140625, -0.0201416015625, -0.062255859375, -0.05352783203125, -0.0023651123046875, 0.0232086181640625, 0.03082275390625, -0.038543701171875, -0.025665283203125, -0.00098419189453125, -0.043914794921875, -0.038787841796875, 0.018951416015625, -0.072265625, 0.00043201446533203125, 0.0167083740234375, -0.02679443359375, -0.0014934539794921875, 0.0215606689453125, -0.08868408203125, -0.03662109375, -0.0176544189453125, -0.033050537109375, 0.056671142578125, -0.0362548828125, -0.006015777587890625, -0.00618743896484375, 0.0022182464599609375, -0.039886474609375, 0.02862548828125, 0.021881103515625, -0.0037899017333984375, -0.03948974609375, 0.006916046142578125, -0.040283203125, -0.002063751220703125, -0.0123748779296875, -0.023162841796875, -0.03619384765625, -0.0199127197265625, -0.058624267578125, -0.002048492431640625, -0.023223876953125, 0.046356201171875, -0.0205535888671875, 0.044464111328125, -0.023529052734375, 0.028564453125, 0.002925872802734375, -0.0075531005859375, -0.020263671875, -0.0134124755859375, -0.01495361328125, -0.02789306640625, 0.007160186767578125, -0.01247406005859375, -0.03887939453125, -0.035400390625, 0.01313018798828125, 0.015899658203125, 0.0008578300476074219, 0.06402587890625, 0.0850830078125, 0.030914306640625, 0.018829345703125, -0.01396942138671875, -0.00844573974609375, -0.045013427734375, 0.038116455078125, -0.052764892578125, 0.023406982421875, -0.031463623046875, -0.00748443603515625, 0.047607421875, 0.00009340047836303711, -0.00678253173828125, 0.0188751220703125, -0.01898193359375, 0.033233642578125, -0.005405426025390625, -0.0290374755859375, 0.0245513916015625, 0.06817626953125, 0.0233001708984375, 0.0579833984375, 0.0182037353515625, 0.041961669921875, 0.0369873046875, 0.003147125244140625, 0.041107177734375, 0.01666259765625, 0.059326171875, 0.002162933349609375, -0.003204345703125, 0.0301971435546875, -0.020172119140625, 0.0166168212890625, 0.044342041015625, 0.054473876953125, -0.06707763671875, 0.018951416015625, 0.029510498046875, 0.00698089599609375, 0.03179931640625, -0.01338958740234375, -0.012359619140625, -0.0015954971313476562, 0.005641937255859375, -0.0246124267578125, -0.043365478515625, -0.0141754150390625, 0.0162353515625, 0.00011497735977172852, 0.0233612060546875, 0.0216827392578125, -0.0026454925537109375, -0.013397216796875, -0.0555419921875, 0.03564453125, -0.040252685546875, 0.0233306884765625, 0.01715087890625, -0.025360107421875, -0.01311492919921875, -0.042694091796875, -0.02178955078125, -0.04083251953125, -0.0228271484375, 0.01360321044921875, -0.01708984375, 0.08758544921875, 0.037567138671875, 0.0209197998046875, -0.035858154296875, 0.0238494873046875, -0.0091705322265625, -0.0012025833129882812, -0.004302978515625, 0.023651123046875, 0.01308441162109375, -0.044464111328125, 0.003940582275390625, -0.04583740234375, 0.01367950439453125, 0.0184478759765625, 0.015380859375, 0.028289794921875, -0.05303955078125, -0.0124359130859375, 0.021514892578125, 0.0188446044921875, 0.01551055908203125, 0.005962371826171875, -0.00868988037109375, -0.08319091796875, -0.0615234375, -0.0032558441162109375, -0.07330322265625, 0.00905609130859375, -0.014251708984375, -0.054229736328125, 0.0732421875, -0.023773193359375, 0.050750732421875, 0.05548095703125, 0.0133209228515625, -0.04132080078125, -0.0182647705078125, -0.00110626220703125, -0.002498626708984375, -0.0343017578125, -0.01277923583984375, -0.034454345703125, 0.004150390625, -0.0205841064453125, 0.029449462890625, 0.058837890625, 0.025238037109375, -0.025726318359375, 0.0033626556396484375, 0.0634765625, 0.0465087890625, 0.005191802978515625, 0.026824951171875, 0.01134490966796875, -0.0112152099609375, 0.03076171875, 0.00853729248046875, 0.023223876953125, 0.01296234130859375, -0.0217437744140625, 0.046722412109375, 0.006717681884765625, 0.006137847900390625, -0.01447296142578125, 0.0021152496337890625, -0.04315185546875, -0.00472259521484375, 0.031982421875, -0.005733489990234375, 0.026611328125, 0.026702880859375, 0.034698486328125, -0.037628173828125, -0.0096282958984375, -0.01861572265625, 0.04681396484375, 0.00047206878662109375, 0.00569915771484375, 0.025604248046875, 0.0032405853271484375, 0.0419921875, 0.0269317626953125, -0.0112457275390625, 0.033447265625, 0.022064208984375, 0.042022705078125, 0.01105499267578125, 0.0065765380859375, -0.0355224609375, 0.0290985107421875, 0.00879669189453125, 0.0364990234375, -0.05596923828125, -0.06768798828125, 0.0115966796875, -0.0107269287109375, 0.0010843276977539062, 0.01410675048828125, -0.00806427001953125, -0.07550048828125, -0.0243682861328125, -0.0231781005859375, 0.0002818107604980469, 0.01438140869140625, 0.025604248046875, -0.01358795166015625, -0.028839111328125, -0.0157928466796875, -0.00621795654296875, -0.019989013671875, -0.005275726318359375, -0.004535675048828125, 0.00357818603515625, -0.0086212158203125, 0.05120849609375, 0.02569580078125, 0.005168914794921875, 0.0215301513671875, 0.030120849609375, -0.02178955078125, -0.0092010498046875, -0.02642822265625, -0.0654296875, 0.0017528533935546875, 0.0223236083984375, 0.044921875, 0.040771484375, 0.047698974609375, 0.0096282958984375, -0.0079345703125, 0.02447509765625, 0.0070648193359375, -0.0177001953125, 0.00038170814514160156, -0.00843048095703125, 0.01335906982421875, 0.023406982421875, -0.0150604248046875, -0.02264404296875, 0.0012054443359375, 0.0692138671875, -0.033721923828125, 0.03515625, -0.006130218505859375, -0.042510986328125, 0.0220947265625, 0.0085906982421875, 0.09283447265625, -0.003513336181640625, -0.007110595703125, 0.00020587444305419922, -0.037841796875, -0.018890380859375, 0.0235595703125, 0.0286407470703125, -0.0103759765625, 0.026336669921875, 0.01442718505859375, -0.0263671875, 0.024566650390625, 0.012664794921875, 0.00537109375, 0.026153564453125, 0.0231781005859375, 0.0007472038269042969, -0.01247406005859375, -0.0017595291137695312, -0.0192108154296875, 0.01995849609375, 0.034576416015625, 0.07379150390625, -0.0275421142578125, 0.0262298583984375, 0.0213165283203125, 0.00994110107421875, -0.01165008544921875, 0.016326904296875, 0.036529541015625, -0.007049560546875, -0.0067901611328125, -0.0172882080078125, 0.032135009765625, -0.007709503173828125, 0.02593994140625, -0.0625, -0.04437255859375, 0.00262451171875, 0.02972412109375, 0.041534423828125, 0.0200653076171875, -0.0159912109375, -0.0156707763671875, -0.04644775390625, -0.01338958740234375, 0.05084228515625, 0.0210418701171875, -0.0540771484375, 0.029541015625, -0.017425537109375, -0.0203704833984375, 0.034210205078125, -0.0458984375, 0.05413818359375, 0.046722412109375, -0.041839599609375, -0.062164306640625, -0.0267181396484375, -0.00975799560546875, -0.0186309814453125, -0.00991058349609375, 0.054779052734375, -0.0113525390625, -0.033172607421875, -0.005931854248046875, 0.00893402099609375, 0.00926971435546875, -0.0227203369140625, -0.006473541259765625, 0.0221099853515625, -0.02288818359375, -0.0101470947265625, -0.0278778076171875, -0.0035858154296875, -0.036956787109375, 0.0037364959716796875, 0.0161590576171875, 0.007160186767578125, 0.0028839111328125, 0.007457733154296875, -0.005008697509765625, 0.0755615234375, 0.02044677734375, -0.07183837890625, 0.00958251953125, -0.0300750732421875, 0.06854248046875, 0.018829345703125, -0.0027942657470703125, -0.0077972412109375, -0.01146697998046875, -0.02313232421875, -0.05987548828125, -0.05560302734375, 0.04962158203125, -0.0245819091796875, 0.0204010009765625, 0.019989013671875, -0.019744873046875, -0.024627685546875, 0.037139892578125, 0.0167083740234375, 0.09130859375, -0.015472412109375, -0.0196533203125, -0.013336181640625, 0.0009603500366210938, -0.0128326416015625, -0.01885986328125, 0.0157318115234375, -0.042755126953125, -0.04595947265625, -0.055145263671875, 0.001758575439453125, -0.00356292724609375, -0.056243896484375, -0.1014404296875, 0.028045654296875, -0.023773193359375, -0.048187255859375, 0.0087127685546875, 0.040374755859375, -0.0222015380859375, 0.0394287109375, 0.0253448486328125, -0.042999267578125, 0.034637451171875, -0.002277374267578125, 0.0018396377563476562, 0.005519866943359375, 0.002468109130859375, 0.003971099853515625, -0.043060302734375, 0.01024627685546875, -0.0034008026123046875, -0.01555633544921875, 0.0386962890625, -0.04644775390625, 0.052337646484375, 0.043548583984375, -0.006916046142578125, 0.01439666748046875, 0.0186614990234375, -0.07220458984375, -0.01258087158203125, 0.01030731201171875, -0.03314208984375, -0.0026111602783203125, 0.08026123046875, 0.05889892578125, 0.0179901123046875, -0.0272674560546875, -0.0335693359375, -0.032867431640625, -0.000028371810913085938, 0.00209808349609375, 0.01000213623046875, -0.03271484375, 0.005657196044921875, -0.00368499755859375, 0.0258941650390625, -0.06365966796875, 0.01093292236328125, -0.00411224365234375, -0.038787841796875, 0.0260009765625, -0.0009617805480957031, 0.0108642578125, 0.03790283203125, 0.03955078125, -0.020904541015625, 0.020721435546875, -0.03643798828125, 0.000202178955078125, 0.03045654296875, -0.031768798828125, 0.0007352828979492188, 0.0192718505859375, -0.0274200439453125, -0.0057525634765625, -0.0052337646484375, -0.01100921630859375, -0.01294708251953125, 0.01471710205078125, -0.016937255859375, -0.0237274169921875, -0.009857177734375, -0.0277862548828125, -0.0084381103515625, 0.020172119140625, -0.0162353515625, 0.0736083984375, 0.023773193359375, -0.001544952392578125, -0.0222320556640625, 0.042205810546875, 0.01010894775390625, -0.037628173828125, 0.0249481201171875, -0.029296875, 0.023956298828125, 0.0027790069580078125, -0.01354217529296875, -0.03424072265625, 0.040985107421875, 0.036224365234375, -0.01287841796875, 0.0229339599609375 ]
b3f1e930b5dc6c43e9e49cfe7ec62b8d34d8564b
Wordpress Stackexchange Q: TinyMCE Advanced newline problem I am using TinyMCE Advanced plugin according to qTranslate in a wordpress 3.3 installation. My question is: why does tinymce translate visual editor new line ("enter" key) in a <p>&nbsp;</p> instead of <br/>? Is it possible to change this behavior? A: Go into Settings -> TinyMCE Advanced, and check the option Stop removing the <p> and <br /> tags when saving and show them in the HTML editor. This will allow you full control over those tags inside the HTML view. For a single line break without overriding the editor, use Shift+Enter. To override the editor and make Enter a single line break, put this into your functions.php: function change_mce_options($init){ $init["forced_root_block"] = false; $init["force_br_newlines"] = true; $init["force_p_newlines"] = false; $init["convert_newlines_to_brs"] = true; return $init; } add_filter('tiny_mce_before_init','change_mce_options'); This does not convert shift+enter into <p></p> however, and this will cause some strange behavior for already existing content (if you're inside an existing <p> it will give two lines instead of one), so I would strongly recommend getting used to shift+enter instead.
Q: TinyMCE Advanced newline problem I am using TinyMCE Advanced plugin according to qTranslate in a wordpress 3.3 installation. My question is: why does tinymce translate visual editor new line ("enter" key) in a <p>&nbsp;</p> instead of <br/>? Is it possible to change this behavior? A: Go into Settings -> TinyMCE Advanced, and check the option Stop removing the <p> and <br /> tags when saving and show them in the HTML editor. This will allow you full control over those tags inside the HTML view. For a single line break without overriding the editor, use Shift+Enter. To override the editor and make Enter a single line break, put this into your functions.php: function change_mce_options($init){ $init["forced_root_block"] = false; $init["force_br_newlines"] = true; $init["force_p_newlines"] = false; $init["convert_newlines_to_brs"] = true; return $init; } add_filter('tiny_mce_before_init','change_mce_options'); This does not convert shift+enter into <p></p> however, and this will cause some strange behavior for already existing content (if you're inside an existing <p> it will give two lines instead of one), so I would strongly recommend getting used to shift+enter instead. A: 1) use soft returns (shift+enter) to insert <br> instead of paragraphs. 2) if you want to make intent in the beginning of sentence after (SHIFT+ENTER), then you may need to use this custom code: https://wordpress.stackexchange.com/a/139347/42702
wordpress
{ "language": "en", "length": 210, "provenance": "stackexchange_00019.jsonl.gz:417812", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44748" }
[ -0.00617218017578125, -0.039581298828125, 0.0267333984375, 0.03472900390625, -0.036163330078125, -0.00891876220703125, 0.0472412109375, -0.0199127197265625, 0.016815185546875, 0.050079345703125, 0.00933837890625, -0.031524658203125, 0.01214599609375, -0.0275726318359375, -0.02691650390625, -0.004688262939453125, 0.031707763671875, -0.041717529296875, -0.0220947265625, -0.00736236572265625, -0.0131988525390625, 0.01215362548828125, 0.0113677978515625, -0.01458740234375, 0.0201263427734375, 0.0177764892578125, 0.053497314453125, -0.0472412109375, 0.002773284912109375, -0.036376953125, 0.00995635986328125, 0.00017571449279785156, 0.026824951171875, 0.0792236328125, -0.111572265625, 0.057525634765625, -0.04034423828125, 0.048248291015625, -0.0190582275390625, 0.023468017578125, 0.0032176971435546875, 0.00778961181640625, -0.0216827392578125, 0.01003265380859375, -0.043975830078125, 0.00007748603820800781, -0.0167083740234375, -0.0105438232421875, 0.00798797607421875, 0.0148468017578125, -0.006183624267578125, 0.00341033935546875, 0.0022373199462890625, -0.039031982421875, -0.010955810546875, -0.00896453857421875, -0.0305938720703125, -0.0782470703125, -0.002544403076171875, 0.10498046875, 0.055572509765625, -0.01309967041015625, -0.016937255859375, -0.04071044921875, -0.0042724609375, -0.016937255859375, -0.022918701171875, 0.0216217041015625, 0.0216827392578125, -0.01129150390625, -0.00695037841796875, 0.00039458274841308594, 0.0240478515625, -0.03704833984375, 0.0012073516845703125, 0.019927978515625, -0.0212860107421875, 0.007167816162109375, 0.00919342041015625, -0.00982666015625, 0.0017786026000976562, 0.00803375244140625, -0.018585205078125, -0.0684814453125, 0.0178680419921875, -0.04443359375, -0.00443267822265625, 0.00968170166015625, -0.0237579345703125, -0.0234527587890625, -0.0256500244140625, -0.0235443115234375, -0.048919677734375, 0.0205078125, -0.00897979736328125, -0.01358795166015625, -0.043121337890625, -0.04681396484375, -0.01507568359375, 0.04046630859375, 0.0002932548522949219, -0.037445068359375, 0.08258056640625, -0.0257720947265625, 0.044677734375, -0.01560211181640625, -0.0168609619140625, -0.038970947265625, 0.0738525390625, 0.036895751953125, -0.01529693603515625, 0.1064453125, -0.01751708984375, -0.0264892578125, 0.0104522705078125, 0.0364990234375, -0.01477813720703125, 0.058624267578125, 0.0023632049560546875, 0.0660400390625, -0.014251708984375, -0.0207977294921875, 0.006504058837890625, 0.016204833984375, -0.0287322998046875, -0.041900634765625, -0.031219482421875, 0.0266265869140625, -0.05126953125, 0.0290679931640625, 0.007175445556640625, 0.00547027587890625, 0.0179595947265625, 0.06353759765625, -0.00392913818359375, -0.003078460693359375, 0.0283966064453125, 0.0172882080078125, 0.00272369384765625, 0.0189208984375, -0.0229339599609375, -0.06707763671875, -0.052520751953125, -0.0115814208984375, -0.01293182373046875, 0.021484375, 0.01207733154296875, 0.0215911865234375, -0.0097808837890625, -0.060577392578125, 0.0307464599609375, -0.050811767578125, 0.051788330078125, 0.002960205078125, -0.050872802734375, -0.038055419921875, 0.0238037109375, -0.043670654296875, -0.0107574462890625, -0.06243896484375, 0.003940582275390625, -0.01335906982421875, 0.003292083740234375, -0.05902099609375, -0.074951171875, 0.011474609375, -0.0209808349609375, -0.0055999755859375, 0.027008056640625, 0.01522064208984375, -0.014801025390625, -0.00876617431640625, 0.02081298828125, 0.01143646240234375, 0.0061798095703125, 0.02606201171875, -0.03155517578125, 0.044342041015625, 0.0299835205078125, 0.01910400390625, 0.034423828125, -0.0240478515625, 0.06170654296875, 0.0204925537109375, -0.03973388671875, 0.042724609375, 0.01061248779296875, 0.08648681640625, 0.01345062255859375, 0.032623291015625, -0.00940704345703125, 0.000583648681640625, -0.01495361328125, 0.0004715919494628906, 0.03118896484375, -0.022064208984375, -0.0129852294921875, -0.01202392578125, 0.01629638671875, -0.03326416015625, 0.04754638671875, 0.00890350341796875, 0.0096282958984375, 0.0009832382202148438, -0.0584716796875, 0.0210113525390625, -0.0157318115234375, 0.03155517578125, 0.0452880859375, -0.0065155029296875, -0.0219879150390625, -0.0089111328125, 0.0175628662109375, -0.0171966552734375, -0.044921875, 0.0289459228515625, 0.0157928466796875, 0.042236328125, 0.0152130126953125, 0.005016326904296875, 0.045745849609375, -0.01284027099609375, 0.0478515625, 0.031646728515625, -0.00003510713577270508, -0.023101806640625, -0.01387786865234375, -0.0139617919921875, -0.0086669921875, -0.0242919921875, 0.03802490234375, 0.046600341796875, 0.006549835205078125, 0.03216552734375, -0.046173095703125, -0.02703857421875, -0.0251922607421875, -0.01175689697265625, 0.0219268798828125, 0.034759521484375, 0.02520751953125, 0.033905029296875, -0.00283050537109375, 0.00464630126953125, 0.052093505859375, -0.033935546875, 0.001354217529296875, 0.002552032470703125, -0.006847381591796875, 0.00751495361328125, -0.017181396484375, -0.01078033447265625, 0.036285400390625, -0.05010986328125, -0.004547119140625, 0.045196533203125, 0.0033359527587890625, -0.009033203125, 0.0099029541015625, -0.013763427734375, 0.0208587646484375, -0.0013608932495117188, -0.0229949951171875, 0.006206512451171875, 0.0070037841796875, 0.027435302734375, 0.033172607421875, 0.03759765625, -0.0180816650390625, 0.00859832763671875, 0.00870513916015625, 0.0265350341796875, -0.00955963134765625, 0.044219970703125, -0.05010986328125, -0.0063629150390625, -0.019622802734375, 0.01042938232421875, -0.0143890380859375, 0.00501251220703125, -0.011322021484375, 0.0301971435546875, 0.0193023681640625, -0.01331329345703125, 0.0173492431640625, -0.0176849365234375, 0.002960205078125, -0.03375244140625, 0.00872039794921875, -0.007442474365234375, 0.0173797607421875, 0.01898193359375, -0.030517578125, 0.041595458984375, -0.015869140625, -0.016143798828125, 0.110107421875, -0.00957489013671875, 0.026702880859375, -0.0154266357421875, 0.064697265625, 0.03790283203125, -0.05548095703125, 0.0249176025390625, 0.005046844482421875, 0.0016050338745117188, -0.00695037841796875, 0.02728271484375, 0.0183563232421875, 0.002513885498046875, -0.054473876953125, -0.022674560546875, 0.005550384521484375, 0.026397705078125, -0.0239410400390625, -0.043853759765625, -0.00977325439453125, 0.00179290771484375, -0.01160430908203125, 0.01204681396484375, -0.0736083984375, -0.09747314453125, -0.01348876953125, 0.0115814208984375, -0.058624267578125, 0.021484375, 0.060821533203125, 0.0177001953125, -0.0107421875, 0.00933074951171875, -0.004550933837890625, 0.0029544830322265625, -0.00792694091796875, 0.0029582977294921875, -0.0105133056640625, -0.01055145263671875, 0.0242919921875, 0.0032711029052734375, 0.01018524169921875, -0.007404327392578125, 0.037628173828125, -0.04827880859375, -0.033233642578125, 0.009979248046875, -0.045074462890625, -0.04461669921875, 0.01268768310546875, -0.028289794921875, 0.004058837890625, -0.01074981689453125, 0.044097900390625, 0.02215576171875, -0.03570556640625, -0.01525115966796875, 0.017303466796875, 0.01090240478515625, 0.0250091552734375, 0.0206298828125, 0.049774169921875, -0.022247314453125, -0.024658203125, 0.0213775634765625, -0.01511383056640625, 0.04827880859375, -0.0238037109375, -0.0176849365234375, 0.0010013580322265625, 0.06298828125, -0.01727294921875, 0.007633209228515625, 0.054290771484375, -0.01380157470703125, 0.005474090576171875, -0.03216552734375, -0.053558349609375, -0.042083740234375, 0.024810791015625, -0.0155181884765625, 0.0187530517578125, -0.005611419677734375, 0.0131072998046875, -0.01006317138671875, 0.0169219970703125, 0.01285552978515625, -0.00048828125, 0.00951385498046875, -0.0357666015625, 0.018890380859375, -0.005435943603515625, -0.0037136077880859375, 0.00021529197692871094, 0.036376953125, -0.0027790069580078125, -0.004108428955078125, 0.0023784637451171875, 0.005908966064453125, -0.042449951171875, -0.0179901123046875, -0.03546142578125, 0.01898193359375, 0.01120758056640625, 0.00014913082122802734, -0.0325927734375, 0.0049591064453125, -0.034027099609375, 0.037872314453125, 0.013397216796875, -0.024658203125, 0.034423828125, 0.007595062255859375, 0.00811004638671875, 0.00152587890625, 0.006618499755859375, -0.022613525390625, -0.0022220611572265625, -0.00848388671875, -0.055938720703125, 0.01422882080078125, -0.0810546875, 0.033935546875, 0.04376220703125, -0.0151519775390625, 0.0011396408081054688, 0.037506103515625, -0.017120361328125, 0.01302337646484375, -0.0038509368896484375, 0.0308074951171875, -0.0089874267578125, -0.02862548828125, -0.0066680908203125, -0.04345703125, -0.0276336669921875, 0.0167999267578125, -0.041351318359375, -0.00904083251953125, 0.0028476715087890625, -0.0751953125, 0.07574462890625, -0.054290771484375, -0.1036376953125, -0.04974365234375, -0.0224761962890625, -0.01251220703125, 0.0142822265625, -0.027557373046875, -0.048583984375, -0.0791015625, 0.018829345703125, -0.0178375244140625, 0.022674560546875, -0.00862884521484375, 0.0863037109375, 0.0245361328125, 0.005199432373046875, 0.040496826171875, 0.0293121337890625, 0.01812744140625, 0.041046142578125, 0.0212249755859375, -0.0118255615234375, -0.00878143310546875, 0.0221099853515625, 0.00308990478515625, 0.02978515625, -0.07666015625, 0.0911865234375, -0.030426025390625, -0.01399993896484375, 0.031585693359375, -0.02471923828125, 0.005527496337890625, -0.00861358642578125, -0.02197265625, 0.0289459228515625, 0.01296234130859375, 0.01136016845703125, -0.0231475830078125, 0.0079803466796875, -0.0207061767578125, -0.037933349609375, 0.018463134765625, 0.07281494140625, -0.00481414794921875, 0.021331787109375, 0.0123443603515625, -0.00727081298828125, -0.0243377685546875, -0.01009368896484375, 0.004207611083984375, -0.021942138671875, 0.01515960693359375, 0.023773193359375, -0.0311737060546875, -0.01525115966796875, 0.00516510009765625, -0.0009136199951171875, -0.02801513671875, -0.0408935546875, -0.06982421875, -0.01129913330078125, 0.0200347900390625, 0.05255126953125, 0.0355224609375, 0.0286865234375, -0.0258026123046875, 0.01336669921875, -0.004947662353515625, 0.033203125, 0.08984375, -0.020050048828125, -0.0003185272216796875, -0.00945281982421875, -0.007293701171875, -0.01129913330078125, -0.01477813720703125, 0.050201416015625, 0.0013952255249023438, 0.0129852294921875, -0.0129547119140625, 0.001678466796875, 0.007244110107421875, 0.0281982421875, 0.014739990234375, 0.0135498046875, -0.028106689453125, 0.042633056640625, 0.0029888153076171875, -0.04364013671875, 0.014068603515625, 0.0220489501953125, 0.0213623046875, 0.039520263671875, -0.0177001953125, 0.01885986328125, 0.0009031295776367188, -0.013214111328125, 0.0165863037109375, 0.0008363723754882812, -0.023345947265625, -0.0241851806640625, -0.006748199462890625, 0.010498046875, 0.01641845703125, 0.002300262451171875, -0.0008153915405273438, -0.00994873046875, -0.00665283203125, 0.0163116455078125, -0.0296478271484375, -0.0165252685546875, -0.0025196075439453125, -0.016632080078125, -0.003185272216796875, -0.01389312744140625, 0.00701904296875, -0.020660400390625, -0.01322174072265625, -0.0240936279296875, 0.03582763671875, -0.03717041015625, -0.004367828369140625, 0.00116729736328125, 0.015655517578125, -0.059600830078125, 0.019744873046875, 0.03753662109375, 0.039459228515625, 0.0345458984375, -0.0421142578125, -0.03411865234375, -0.0316162109375, 0.007610321044921875, -0.0276947021484375, -0.0027980804443359375, -0.00879669189453125, 0.048858642578125, 0.01318359375, 0.004955291748046875, -0.047027587890625, 0.009735107421875, 0.032318115234375, 0.03216552734375, 0.051727294921875, -0.031829833984375, 0.0218658447265625, 0.0340576171875, 0.00008291006088256836, -0.0152130126953125, 0.011627197265625, 0.015777587890625, -0.00974273681640625, 0.02734375, -0.016998291015625, -0.019927978515625, -0.0019474029541015625, -0.011199951171875, -0.047271728515625, 0.002468109130859375, -0.0168304443359375, 0.00960540771484375, 0.0345458984375, 0.0160369873046875, -0.0197906494140625, -0.053985595703125, 0.0223846435546875, 0.01500701904296875, -0.01136016845703125, -0.0311737060546875, -0.01242828369140625, 0.00801849365234375, 0.01215362548828125, 0.01230621337890625, -0.0081634521484375, 0.0012149810791015625, -0.0080108642578125, -0.00873565673828125, -0.0096435546875, -0.01114654541015625, -0.0008845329284667969, 0.0206298828125, 0.00872802734375, 0.0275421142578125, 0.0187530517578125, -0.049957275390625, 0.04107666015625, 0.07781982421875, -0.007598876953125, -0.044769287109375, 0.027099609375, -0.024688720703125, -0.0012235641479492188, 0.0308380126953125, 0.0738525390625, 0.0804443359375, -0.08734130859375, 0.018035888671875, 0.026763916015625, -0.0458984375, 0.005100250244140625, -0.0107421875, -0.017364501953125, -0.06927490234375, 0.08135986328125, -0.0250701904296875, 0.004695892333984375, 0.0196990966796875, -0.02703857421875, -0.0012788772583007812, -0.01047515869140625, 0.036376953125, 0.007080078125, -0.01141357421875, -0.001953125, 0.00647735595703125, 0.0200653076171875, -0.00986480712890625, 0.006702423095703125, -0.020294189453125, -0.0135498046875, -0.057281494140625, -0.0225067138671875, -0.02996826171875, 0.0021915435791015625, 0.04437255859375, 0.0025768280029296875, -0.0198822021484375, 0.06329345703125, -0.050323486328125, 0.050323486328125, 0.040252685546875, -0.032562255859375, 0.0144500732421875, -0.0067901611328125, -0.0177001953125, 0.018218994140625, 0.0177001953125, 0.0005512237548828125, 0.0174407958984375, -0.003986358642578125, 0.01026153564453125, -0.00197601318359375, -0.01053619384765625, 0.0017490386962890625, -0.0248870849609375, 0.032958984375, -0.0216064453125, -0.0016841888427734375, -0.0235443115234375, -0.0236663818359375, -0.048614501953125, -0.01497650146484375, -0.051971435546875, -0.0367431640625, 0.025634765625, -0.06396484375, -0.07818603515625, 0.10711669921875, 0.056854248046875, 0.0256805419921875, -0.01129150390625, 0.042449951171875, -0.049163818359375, 0.0128021240234375, -0.0218048095703125, 0.0181121826171875, 0.0086212158203125, -0.0169677734375, -0.040740966796875, -0.0201263427734375, -0.007457733154296875, 0.052520751953125, -0.0254364013671875, -0.0135040283203125, -0.0205535888671875, 0.01560211181640625, 0.0509033203125, 0.058197021484375, 0.0430908203125, -0.00905609130859375, 0.037933349609375, -0.0005106925964355469, 0.04608154296875, -0.01171112060546875, 0.0265960693359375, -0.025970458984375, 0.0215911865234375, 0.044158935546875, 0.00254058837890625, -0.0016489028930664062, -0.0032196044921875, -0.0396728515625, -0.01280975341796875, -0.00885009765625, -0.0107269287109375, -0.0252685546875, -0.02777099609375, 0.048309326171875, 0.01352691650390625, -0.0679931640625, -0.06317138671875, -0.033935546875, 0.0255279541015625, 0.00952911376953125, 0.0196533203125, -0.01464080810546875, -0.0039825439453125, 0.04571533203125, -0.031951904296875, -0.0198211669921875, 0.0168914794921875, 0.0030193328857421875, 0.0000470280647277832, -0.00138092041015625, 0.00899505615234375, -0.03228759765625, 0.0311279296875, 0.046173095703125, 0.015533447265625, -0.0273590087890625, -0.03143310546875, 0.01163482666015625, 0.0078125, 0.0011529922485351562, -0.00115203857421875, 0.0172271728515625, -0.0258941650390625, 0.01543426513671875, 0.0379638671875, -0.0253753662109375, -0.0494384765625, 0.00429534912109375, 0.01349639892578125, 0.051177978515625, 0.04083251953125, -0.016357421875, -0.061676025390625, 0.025970458984375, 0.009857177734375, 0.0241851806640625, 0.01242828369140625, 0.050048828125, 0.0355224609375, -0.019744873046875, -0.03338623046875, 0.0203704833984375, 0.0309600830078125, 0.0233612060546875, -0.0322265625, 0.005306243896484375, 0.033599853515625, 0.0272979736328125, -0.007793426513671875, 0.0203704833984375, 0.01873779296875, 0.01313018798828125, -0.0138702392578125, -0.012115478515625, 0.024444580078125, -0.020416259765625, -0.05255126953125, -0.0467529296875, -0.06463623046875, -0.00273895263671875, -0.01399993896484375, 0.05133056640625, -0.05157470703125, 0.0341796875, 0.022857666015625, 0.0169219970703125, 0.007495880126953125, -0.02392578125, -0.0408935546875, -0.0029430389404296875, 0.03594970703125, 0.03680419921875, 0.0027313232421875, 0.0136566162109375, -0.0224456787109375, -0.032440185546875, 0.011016845703125, 0.040802001953125, 0.0157012939453125, 0.004001617431640625, 0.00626373291015625, 0.00977325439453125, -0.0297698974609375, -0.0019130706787109375, 0.0272979736328125, 0.029022216796875, 0.019317626953125, 0.024169921875, -0.058380126953125, -0.0455322265625, -0.021820068359375, 0.034210205078125, 0.0172119140625, 0.020355224609375, 0.021270751953125, 0.0285491943359375, -0.0030841827392578125, 0.008697509765625, -0.0087738037109375, 0.0216522216796875, -0.0259552001953125, 0.0302276611328125, 0.033538818359375, -0.025299072265625, -0.0078277587890625, 0.061981201171875, 0.00565338134765625, 0.0130157470703125, 0.034454345703125, -0.01279449462890625, 0.004413604736328125, 0.005771636962890625, 0.01395416259765625, -0.019378662109375, -0.014434814453125, -0.0300750732421875, -0.0286102294921875, 0.037445068359375, 0.02398681640625, 0.00391387939453125, 0.046417236328125, -0.02142333984375, -0.0350341796875, 0.03875732421875, -0.08056640625, 0.0156707763671875, 0.0257110595703125, -0.005340576171875, -0.0220184326171875, -0.01947021484375, -0.0251312255859375, -0.0036869049072265625, 0.0155487060546875, 0.01076507568359375, -0.00577545166015625, -0.0753173828125, 0.050872802734375, 0.03167724609375, 0.06866455078125, -0.01290130615234375, 0.0166778564453125, 0.023773193359375, 0.00891876220703125, 0.034698486328125, 0.033721923828125, -0.01239013671875, 0.002819061279296875, 0.00011259317398071289, -0.00384521484375, 0.023345947265625, -0.018402099609375, -0.039581298828125, -0.04364013671875, 0.00341796875, -0.01367950439453125, 0.00933837890625, -0.021026611328125, -0.00824737548828125, -0.031890869140625, -0.034881591796875, 0.015960693359375, -0.0290985107421875, -0.0108795166015625, -0.0374755859375, -0.0377197265625, -0.06390380859375, 0.03509521484375, -0.032470703125, 0.00927734375, 0.034759521484375, -0.003963470458984375, -0.01354217529296875, -0.0235748291015625, -0.00347900390625, 0.0235137939453125, -0.01224517822265625, -0.0001691579818725586, 0.02252197265625, -0.019866943359375, -0.0489501953125, -0.0440673828125, 0.0386962890625, -0.065673828125, -0.047271728515625, -0.01094818115234375, 0.0087738037109375, 0.0214691162109375, -0.0421142578125, -0.097412109375, -0.029876708984375, -0.00589752197265625, -0.040069580078125, 0.0193328857421875, -0.02716064453125, -0.0250091552734375, 0.0297088623046875, 0.0121917724609375, -0.002033233642578125, -0.0034236907958984375, 0.0245361328125, 0.000560760498046875, 0.06439208984375, -0.016571044921875, -0.01433563232421875, -0.015777587890625, 0.0161285400390625, 0.015655517578125, 0.0202789306640625, -0.0158233642578125, 0.0160980224609375, -0.016143798828125, 0.0280914306640625, -0.0139923095703125, -0.09271240234375, -0.031890869140625, -0.0445556640625, -0.006374359130859375, -0.040557861328125, -0.023590087890625, 0.0019140243530273438, 0.0279083251953125, 0.05694580078125, -0.005077362060546875, -0.0455322265625, 0.0192108154296875, 0.0135040283203125, -0.01419830322265625, -0.01032257080078125, 0.01849365234375, -0.07403564453125, -0.037109375, 0.00649261474609375, 0.006671905517578125, -0.0079498291015625, -0.0246429443359375, -0.0023822784423828125, -0.01898193359375, -0.0030574798583984375, -0.0316162109375, 0.025421142578125, -0.01953125, 0.10174560546875, -0.0697021484375, -0.05780029296875, 0.035369873046875, -0.0049285888671875, 0.011322021484375, 0.02239990234375, -0.0238800048828125, 0.0400390625, -0.0338134765625, 0.004474639892578125, 0.0038242340087890625, 0.016632080078125, -0.0196990966796875, 0.025634765625, 0.0243377685546875, -0.0081024169921875, -0.0232696533203125, -0.01261138916015625, 0.020599365234375, -0.01030731201171875, -0.04644775390625, 0.01065826416015625, -0.03387451171875, 0.011474609375, -0.02911376953125, 0.006908416748046875, -0.036285400390625, 0.03564453125, -0.00787353515625, -0.017333984375, 0.02099609375, 0.04949951171875, -0.0233001708984375, 0.037017822265625, -0.032958984375, 0.055389404296875, 0.0005688667297363281, -0.0189361572265625 ]
0473e843ce792ac3fa1fb62d1f1b1525ae4f285d
Wordpress Stackexchange Q: How-to make the admin area mobile friendly Currently the admin-UI is a no-go for mobile browsers. Therefore I'm searching for a plugin that makes the back-end/admin-UI accessible and a little more friendly for mobile devices. Features, the plugin should have: * *Not outdated *Not reliant on some 3rd party service Important It's not (!) about a front-end Theme. Short list of plugins that are outdate (will edit later) * *iPhone / Mobile Admin - outdated *WPTouch - not for admin UI Thanks! A: I haven't tried this, but it may be the ticket. This one has been updated a little more recently JUIZ smart mobile admin
Q: How-to make the admin area mobile friendly Currently the admin-UI is a no-go for mobile browsers. Therefore I'm searching for a plugin that makes the back-end/admin-UI accessible and a little more friendly for mobile devices. Features, the plugin should have: * *Not outdated *Not reliant on some 3rd party service Important It's not (!) about a front-end Theme. Short list of plugins that are outdate (will edit later) * *iPhone / Mobile Admin - outdated *WPTouch - not for admin UI Thanks! A: I haven't tried this, but it may be the ticket. This one has been updated a little more recently JUIZ smart mobile admin
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:417813", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44749" }
[ 0.022216796875, 0.00885009765625, 0.007114410400390625, 0.01354217529296875, 0.0275726318359375, -0.0192108154296875, 0.036468505859375, -0.04742431640625, -0.0002808570861816406, 0.0266571044921875, -0.0004570484161376953, 0.0015287399291992188, -0.002044677734375, -0.0269317626953125, -0.016632080078125, -0.01499176025390625, -0.00664520263671875, 0.0150146484375, 0.0110015869140625, -0.038818359375, 0.006622314453125, -0.043914794921875, 0.0029850006103515625, 0.02606201171875, 0.0081634521484375, -0.0052642822265625, 0.01386260986328125, 0.01641845703125, -0.017608642578125, 0.00405120849609375, 0.01074981689453125, -0.01235198974609375, -0.0175018310546875, 0.039276123046875, 0.009185791015625, -0.039215087890625, 0.06982421875, -0.0042572021484375, 0.020782470703125, 0.0143890380859375, 0.0306243896484375, -0.01459503173828125, -0.0239715576171875, 0.044158935546875, -0.031585693359375, -0.076416015625, 0.05596923828125, -0.021331787109375, 0.00876617431640625, -0.04833984375, -0.0009217262268066406, -0.006622314453125, 0.0241546630859375, -0.045623779296875, -0.0011043548583984375, 0.01413726806640625, -0.0107879638671875, -0.06805419921875, 0.0175018310546875, 0.0269012451171875, 0.01409149169921875, -0.041534423828125, 0.0240478515625, -0.0216522216796875, -0.01025390625, -0.025238037109375, -0.049896240234375, -0.0024166107177734375, -0.037322998046875, 0.0001882314682006836, 0.04302978515625, -0.051361083984375, 0.012847900390625, 0.0157928466796875, -0.030517578125, -0.04010009765625, 0.0207977294921875, -0.0009975433349609375, 0.0286712646484375, -0.01141357421875, -0.0254364013671875, -0.0009450912475585938, 0.00968170166015625, -0.058624267578125, 0.036773681640625, 0.004177093505859375, -0.013336181640625, -0.0015773773193359375, -0.0286407470703125, 0.0027866363525390625, -0.006046295166015625, -0.038665771484375, -0.06787109375, 0.06585693359375, 0.04248046875, -0.016357421875, 0.022064208984375, 0.0207366943359375, 0.0268402099609375, 0.0024852752685546875, 0.001987457275390625, -0.053955078125, -0.0023403167724609375, -0.0237579345703125, -0.0023193359375, 0.040008544921875, -0.0014371871948242188, 0.045257568359375, 0.032928466796875, 0.0161285400390625, 0.00930023193359375, 0.008453369140625, -0.0091552734375, 0.00421905517578125, -0.03717041015625, -0.007015228271484375, -0.027984619140625, 0.0030040740966796875, -0.01153564453125, 0.0181121826171875, -0.00646209716796875, -0.0142974853515625, -0.00406646728515625, 0.03021240234375, 0.0123443603515625, 0.006229400634765625, -0.0214691162109375, 0.006984710693359375, -0.020111083984375, -0.0210418701171875, -0.01507568359375, 0.03948974609375, 0.0167999267578125, 0.00006222724914550781, -0.032073974609375, 0.011932373046875, 0.01111602783203125, -0.01271820068359375, 0.019500732421875, -0.01433563232421875, 0.006893157958984375, -0.0219268798828125, 0.01535797119140625, 0.0210113525390625, 0.0222320556640625, 0.0292816162109375, 0.0034008026123046875, 0.005275726318359375, 0.0223846435546875, -0.0367431640625, 0.02685546875, -0.04791259765625, 0.009033203125, 0.019012451171875, 0.035125732421875, 0.005916595458984375, 0.059417724609375, -0.01033782958984375, -0.033294677734375, -0.022674560546875, 0.00537872314453125, 0.03802490234375, 0.06341552734375, -0.01141357421875, 0.00478363037109375, -0.0537109375, -0.05096435546875, -0.0003504753112792969, 0.0287628173828125, -0.0096588134765625, 0.06939697265625, -0.01116943359375, 0.0110626220703125, 0.005519866943359375, -0.0015201568603515625, -0.00649261474609375, -0.0272674560546875, 0.025360107421875, 0.04791259765625, -0.01397705078125, 0.0015621185302734375, -0.019683837890625, 0.06781005859375, 0.0037021636962890625, -0.01505279541015625, 0.028472900390625, -0.0179290771484375, 0.0094146728515625, 0.0187530517578125, 0.004047393798828125, -0.0390625, 0.00988006591796875, 0.00397491455078125, 0.03729248046875, -0.0241241455078125, -0.034942626953125, -0.005283355712890625, 0.0171661376953125, -0.02069091796875, -0.016937255859375, -0.02862548828125, -0.01129913330078125, -0.00351715087890625, 0.01206207275390625, -0.04547119140625, -0.0047454833984375, -0.014801025390625, 0.02032470703125, 0.07464599609375, 0.0399169921875, -0.01093292236328125, 0.017425537109375, -0.015960693359375, -0.036895751953125, -0.043609619140625, 0.0104217529296875, -0.03125, 0.04364013671875, 0.0129241943359375, -0.004180908203125, 0.045623779296875, -0.05804443359375, 0.0760498046875, 0.032562255859375, -0.00841522216796875, 0.034942626953125, -0.0310516357421875, 0.0189208984375, 0.002399444580078125, 0.0161285400390625, 0.0175933837890625, 0.043060302734375, 0.006633758544921875, 0.04815673828125, 0.0173492431640625, -0.0281219482421875, 0.019866943359375, -0.10430908203125, 0.03131103515625, 0.044342041015625, 0.038818359375, 0.0010776519775390625, -0.01204681396484375, 0.0137481689453125, 0.01415252685546875, -0.0694580078125, 0.002101898193359375, 0.01180267333984375, -0.032135009765625, -0.0161895751953125, -0.021484375, -0.01129150390625, 0.0369873046875, -0.052764892578125, -0.0175323486328125, 0.049407958984375, -0.003986358642578125, 0.0135498046875, -0.0263671875, 0.0022716522216796875, -0.0008959770202636719, -0.021026611328125, -0.0316162109375, -0.013427734375, 0.01177978515625, -0.022674560546875, 0.037506103515625, 0.02374267578125, -0.01355743408203125, -0.0300140380859375, 0.0261077880859375, 0.038177490234375, 0.00525665283203125, 0.0129547119140625, 0.0755615234375, 0.0083160400390625, -0.0491943359375, -0.040252685546875, 0.06854248046875, 0.02685546875, -0.01442718505859375, -0.0020771026611328125, -0.0048065185546875, 0.00897979736328125, -0.0057373046875, -0.0452880859375, 0.0450439453125, 0.039794921875, 0.00324249267578125, 0.0372314453125, 0.04400634765625, 0.027130126953125, -0.00614166259765625, 0.0191497802734375, -0.0178985595703125, 0.00495147705078125, 0.01201629638671875, -0.021087646484375, 0.0179595947265625, -0.01493072509765625, 0.0511474609375, 0.07391357421875, 0.00673675537109375, 0.0009388923645019531, -0.01477813720703125, -0.0027675628662109375, -0.01396942138671875, 0.033355712890625, -0.005748748779296875, -0.021087646484375, -0.0540771484375, -0.0162353515625, 0.03436279296875, 0.01244354248046875, 0.0091400146484375, -0.0091400146484375, -0.017547607421875, 0.0177459716796875, -0.0740966796875, -0.04119873046875, -0.02423095703125, -0.053253173828125, -0.007747650146484375, 0.049163818359375, -0.030059814453125, 0.0000699758529663086, 0.08856201171875, -0.0083770751953125, 0.0158233642578125, -0.0182342529296875, -0.053680419921875, -0.03057861328125, -0.06915283203125, -0.0167388916015625, -0.0164947509765625, 0.004405975341796875, 0.003482818603515625, 0.036224365234375, -0.0009202957153320312, -0.033721923828125, -0.0012044906616210938, -0.023712158203125, 0.01371002197265625, 0.007476806640625, 0.006557464599609375, -0.029388427734375, 0.002002716064453125, 0.00839996337890625, -0.029296875, 0.0189361572265625, -0.0023899078369140625, -0.0243072509765625, -0.040435791015625, -0.034637451171875, -0.024749755859375, 0.0135345458984375, 0.043853759765625, -0.0024662017822265625, 0.00400543212890625, -0.04986572265625, 0.01739501953125, 0.0156707763671875, -0.01026153564453125, 0.0308074951171875, -0.042633056640625, -0.035430908203125, 0.050018310546875, -0.0016088485717773438, 0.024658203125, 0.00032520294189453125, -0.025360107421875, -0.02496337890625, -0.0013093948364257812, 0.0221099853515625, 0.06365966796875, 0.0306396484375, -0.026336669921875, -0.03924560546875, -0.005298614501953125, -0.035369873046875, -0.007793426513671875, -0.0100250244140625, 0.034393310546875, 0.007904052734375, -0.05010986328125, 0.041534423828125, -0.05078125, 0.020904541015625, -0.07501220703125, -0.019989013671875, -0.060882568359375, 0.0855712890625, -0.0836181640625, -0.006053924560546875, 0.02191162109375, 0.004825592041015625, 0.017608642578125, 0.007656097412109375, -0.0830078125, -0.029388427734375, -0.09173583984375, -0.0052490234375, -0.0060882568359375, -0.0286407470703125, -0.0258941650390625, 0.04791259765625, -0.03857421875, -0.033660888671875, 0.034423828125, -0.034912109375, -0.022491455078125, 0.00614166259765625, -0.00774383544921875, -0.04779052734375, 0.00940704345703125, -0.02923583984375, -0.039703369140625, -0.0164031982421875, -0.0074615478515625, 0.048309326171875, 0.033050537109375, -0.0587158203125, -0.0018787384033203125, 0.039581298828125, -0.0024394989013671875, 0.0021572113037109375, -0.01226806640625, -0.0048675537109375, -0.0294036865234375, 0.0025119781494140625, -0.002132415771484375, -0.0032196044921875, -0.004779815673828125, 0.01464080810546875, -0.009002685546875, 0.0190887451171875, -0.0267333984375, -0.05126953125, 0.0222015380859375, -0.0360107421875, -0.0216827392578125, -0.0264739990234375, -0.045745849609375, 0.0012254714965820312, -0.02874755859375, 0.01114654541015625, -0.027679443359375, -0.0262298583984375, 0.031707763671875, -0.0249176025390625, -0.00936126708984375, 0.0204010009765625, 0.0755615234375, 0.0176544189453125, -0.0007200241088867188, -0.0230255126953125, -0.0167083740234375, 0.035614013671875, 0.037506103515625, 0.006259918212890625, -0.006984710693359375, -0.046783447265625, 0.07421875, 0.0267791748046875, -0.004497528076171875, -0.01442718505859375, 0.024749755859375, 0.01763916015625, -0.0380859375, 0.0391845703125, 0.007030487060546875, -0.01009368896484375, -0.01708984375, -0.01296234130859375, -0.021514892578125, -0.052520751953125, 0.049591064453125, 0.043548583984375, -0.00811767578125, -0.07080078125, -0.058563232421875, 0.032257080078125, -0.0328369140625, 0.0182342529296875, -0.031219482421875, 0.0266265869140625, 0.01227569580078125, 0.0294189453125, -0.007312774658203125, -0.026031494140625, -0.008087158203125, -0.005741119384765625, 0.0304107666015625, -0.0067291259765625, 0.004970550537109375, -0.01291656494140625, -0.01007843017578125, 0.07293701171875, 0.0256500244140625, -0.0203399658203125, -0.0007338523864746094, -0.0214691162109375, -0.0027751922607421875, -0.00457763671875, -0.023101806640625, 0.034637451171875, 0.045318603515625, -0.019287109375, -0.0190277099609375, 0.0187835693359375, -0.0167236328125, -0.0679931640625, -0.029388427734375, -0.01558685302734375, -0.007450103759765625, 0.0285797119140625, 0.006542205810546875, 0.005588531494140625, 0.0026226043701171875, -0.016693115234375, 0.041229248046875, -0.01261138916015625, 0.04302978515625, 0.006893157958984375, -0.0034942626953125, 0.0183868408203125, -0.0170745849609375, -0.007598876953125, 0.0103912353515625, 0.0014524459838867188, 0.019012451171875, 0.0013637542724609375, 0.022064208984375, 0.031707763671875, -0.0177764892578125, -0.015960693359375, 0.00260162353515625, 0.037689208984375, -0.0401611328125, -0.06890869140625, -0.0173187255859375, 0.040374755859375, 0.057373046875, -0.0517578125, -0.014617919921875, 0.02813720703125, -0.062286376953125, 0.01131439208984375, 0.01580810546875, -0.00853729248046875, -0.02337646484375, -0.0174560546875, -0.0135955810546875, -0.006465911865234375, -0.0297393798828125, -0.02984619140625, -0.061614990234375, 0.023651123046875, 0.037109375, -0.0220947265625, -0.006046295166015625, -0.00923919677734375, 0.0010938644409179688, -0.00727081298828125, -0.016357421875, 0.0147552490234375, -0.0025482177734375, -0.0233154296875, -0.061920166015625, -0.004886627197265625, -0.07879638671875, -0.032958984375, -0.14599609375, -0.047515869140625, -0.06329345703125, 0.036224365234375, 0.0170440673828125, 0.004749298095703125, -0.006336212158203125, -0.0153350830078125, -0.0107879638671875, 0.061859130859375, 0.047515869140625, 0.0810546875, -0.011505126953125, 0.051971435546875, 0.00339508056640625, 0.0173797607421875, -0.00579833984375, 0.0187835693359375, -0.0012664794921875, -0.0092926025390625, 0.015716552734375, -0.02276611328125, -0.0039520263671875, -0.01010894775390625, -0.01491546630859375, -0.049407958984375, -0.017822265625, 0.005886077880859375, 0.0098419189453125, -0.0202484130859375, 0.00891876220703125, -0.0301513671875, 0.041534423828125, -0.04315185546875, 0.0141754150390625, -0.02154541015625, -0.0611572265625, -0.0116729736328125, 0.0195770263671875, 0.002872467041015625, -0.019439697265625, -0.0077362060546875, -0.035797119140625, 0.047119140625, -0.0208892822265625, 0.054351806640625, 0.118896484375, 0.0118255615234375, 0.04443359375, 0.048065185546875, 0.01491546630859375, -0.0146484375, 0.010406494140625, 0.0013294219970703125, -0.0192413330078125, 0.044342041015625, 0.00009709596633911133, -0.0183563232421875, 0.0271453857421875, -0.03765869140625, -0.007495880126953125, 0.04461669921875, 0.04345703125, -0.07080078125, 0.0029144287109375, 0.02337646484375, 0.0159912109375, 0.01000213623046875, -0.0018215179443359375, 0.004535675048828125, -0.00836944580078125, 0.012237548828125, -0.0212554931640625, -0.0158233642578125, 0.0006251335144042969, -0.01168060302734375, -0.0254669189453125, 0.01541900634765625, 0.023468017578125, 0.00836181640625, 0.00949859619140625, -0.0352783203125, -0.03021240234375, -0.007297515869140625, 0.00798797607421875, 0.0302581787109375, -0.0350341796875, -0.0460205078125, -0.06463623046875, -0.03924560546875, 0.0157318115234375, -0.05035400390625, 0.050628662109375, 0.0298309326171875, -0.0086669921875, 0.053466796875, -0.0036830902099609375, 0.0252685546875, -0.00986480712890625, 0.01308441162109375, 0.054595947265625, -0.00862884521484375, -0.0204315185546875, 0.0025844573974609375, -0.038116455078125, -0.00202178955078125, -0.03656005859375, 0.0241851806640625, -0.004039764404296875, 0.008758544921875, 0.0662841796875, 0.007663726806640625, -0.03485107421875, 0.0474853515625, -0.0219879150390625, -0.0309295654296875, 0.001178741455078125, -0.0024261474609375, -0.018280029296875, 0.0257720947265625, -0.007724761962890625, 0.0214080810546875, 0.02618408203125, 0.032806396484375, -0.04449462890625, 0.005771636962890625, -0.0202178955078125, 0.0085601806640625, 0.02642822265625, -0.01031494140625, -0.005008697509765625, -0.0338134765625, -0.014312744140625, 0.01239013671875, 0.00804901123046875, -0.044281005859375, 0.00164031982421875, 0.01806640625, -0.034515380859375, -0.01953125, -0.01218414306640625, 0.007411956787109375, -0.055938720703125, 0.0166168212890625, 0.059478759765625, 0.00902557373046875, 0.018096923828125, 0.06768798828125, 0.00858306884765625, -0.0223236083984375, 0.0390625, -0.0023651123046875, 0.0400390625, -0.017425537109375, 0.003108978271484375, 0.028533935546875, 0.029388427734375, 0.036346435546875, -0.0007600784301757812, 0.00499725341796875, 0.00647735595703125, -0.01523590087890625, 0.0245513916015625, -0.0745849609375, 0.00983428955078125, -0.0009984970092773438, -0.00006562471389770508, -0.01511383056640625, 0.072265625, -0.041961669921875, 0.043121337890625, -0.01078033447265625, 0.01959228515625, -0.011474609375, 0.0164947509765625, -0.0235443115234375, -0.01198577880859375, 0.01617431640625, 0.05792236328125, -0.0714111328125, -0.007266998291015625, -0.0206756591796875, 0.0223388671875, -0.0797119140625, -0.057891845703125, 0.02374267578125, 0.026397705078125, 0.01313018798828125, -0.088623046875, 0.017608642578125, 0.033782958984375, 0.0260772705078125, 0.0433349609375, 0.0213165283203125, -0.044189453125, 0.04913330078125, 0.0260467529296875, -0.0036907196044921875, 0.035003662109375, -0.023712158203125, 0.02838134765625, 0.0180511474609375, 0.004627227783203125, 0.0285186767578125, 0.01727294921875, -0.0015926361083984375, 0.02227783203125, -0.019989013671875, -0.0147705078125, -0.0184326171875, -0.00319671630859375, 0.006832122802734375, -0.007625579833984375, 0.0304107666015625, 0.01049041748046875, 0.02703857421875, -0.00016951560974121094, -0.004009246826171875, -0.022125244140625, 0.01325225830078125, -0.000339508056640625, 0.0268707275390625, 0.0260162353515625, 0.01007080078125, -0.0046234130859375, -0.0013570785522460938, 0.040802001953125, -0.019439697265625, -0.0235595703125, -0.0301513671875, 0.0239410400390625, 0.0261383056640625, 0.02288818359375, -0.01134490966796875, 0.03741455078125, 0.0445556640625, -0.00467681884765625, 0.0024929046630859375, 0.00505828857421875, -0.0262603759765625, 0.03094482421875, -0.0224151611328125, 0.00934600830078125, 0.0157623291015625, -0.03863525390625, -0.025970458984375, 0.0004930496215820312, 0.0077972412109375, 0.015838623046875, 0.013214111328125, -0.03826904296875, 0.07232666015625, 0.00936126708984375, 0.0186614990234375, -0.019256591796875, -0.020538330078125, 0.00632476806640625, 0.0041046142578125, 0.0264129638671875, 0.00910186767578125, -0.017425537109375, -0.034454345703125, -0.0281829833984375, 0.0655517578125, 0.00605010986328125, 0.07733154296875, -0.05389404296875, 0.0266876220703125, -0.021820068359375, -0.033172607421875, -0.0008196830749511719, -0.021087646484375, -0.03729248046875, -0.014190673828125, -0.0213775634765625, 0.01425933837890625, -0.04595947265625, 0.0207672119140625, 0.027862548828125, -0.021759033203125, 0.01122283935546875, 0.026641845703125, -0.0022487640380859375, -0.03204345703125, -0.0031986236572265625, -0.032806396484375, -0.043243408203125, -0.016204833984375, 0.0037059783935546875, 0.004241943359375, 0.01273345947265625, -0.0010814666748046875, 0.020263671875, 0.002056121826171875, -0.0134124755859375, 0.0027370452880859375, -0.004688262939453125, 0.01555633544921875, 0.040313720703125, -0.024505615234375, 0.033447265625, 0.027801513671875, -0.026092529296875, 0.05499267578125, -0.0010347366333007812, 0.037872314453125, 0.0018634796142578125, 0.0208892822265625, 0.0085906982421875, 0.038970947265625, 0.038116455078125, -0.044830322265625, 0.01476287841796875, 0.02545166015625, -0.0005369186401367188, 0.008331298828125, -0.0095367431640625, -0.02691650390625, -0.05078125, -0.01629638671875, 0.0247955322265625, -0.04583740234375, -0.034423828125, -0.07684326171875, 0.059600830078125, 0.0282440185546875, 0.01029205322265625, -0.0970458984375, 0.08056640625, -0.038360595703125, 0.072509765625, 0.0012445449829101562, 0.007633209228515625, -0.0006318092346191406, 0.01413726806640625, -0.02587890625, -0.01407623291015625, -0.04547119140625, 0.0163726806640625, -0.03387451171875, 0.018463134765625, 0.0275421142578125, -0.042938232421875, 0.026214599609375, 0.05035400390625, 0.040679931640625, 0.0985107421875, 0.0310821533203125, -0.0119781494140625, -0.00658416748046875, 0.02349853515625, -0.0116729736328125, -0.03839111328125, 0.0064849853515625, -0.01323699951171875, -0.016693115234375, -0.0267791748046875, -0.01544952392578125, -0.037994384765625, -0.04913330078125, -0.08892822265625, -0.00266265869140625, 0.013397216796875, -0.036041259765625, -0.030120849609375, 0.00841522216796875, 0.0171661376953125, -0.0302276611328125, -0.0014142990112304688, -0.040313720703125, -0.061248779296875, -0.00800323486328125, 0.02374267578125, -0.0155181884765625, 0.0253143310546875, 0.0150909423828125, -0.05755615234375, 0.0195465087890625, 0.017059326171875, 0.01065826416015625, -0.0027561187744140625, -0.00490570068359375, -0.017852783203125, 0.02215576171875, -0.047821044921875, -0.054931640625, -0.01412200927734375, 0.0222320556640625, 0.00865936279296875, 0.0107421875, -0.03704833984375, -0.018218994140625, 0.06402587890625, 0.05657958984375, 0.0198516845703125, -0.0237884521484375, -0.01331329345703125, -0.012542724609375, 0.015869140625, -0.0091400146484375, -0.00872039794921875, -0.04962158203125, -0.004024505615234375, 0.0210113525390625, 0.0006957054138183594, 0.016571044921875, 0.060516357421875, 0.00667572021484375, -0.0090484619140625, 0.0677490234375, -0.027801513671875, -0.06036376953125, 0.00946807861328125, 0.054718017578125, -0.034576416015625, -0.0099029541015625, 0.00539398193359375, 0.00232696533203125, 0.0187225341796875, 0.0039043426513671875, 0.0092620849609375, -0.00627899169921875, -0.01535797119140625, 0.040374755859375, 0.0014324188232421875, 0.01849365234375, -0.032501220703125, -0.0030345916748046875, -0.0224761962890625, 0.0258941650390625, 0.00991058349609375, 0.06292724609375, -0.011199951171875, 0.011260986328125, 0.0203704833984375, -0.004016876220703125, -0.006717681884765625, -0.01430511474609375, -0.0289764404296875, 0.05010986328125, 0.011474609375, -0.036224365234375, 0.039215087890625, -0.034210205078125, 0.002223968505859375, 0.044219970703125, -0.0072784423828125, -0.031524658203125, 0.01097869873046875, -0.04815673828125, 0.0199737548828125, 0.00920867919921875 ]
cca297364ddd7c62ce8bf208a48e44ebb881bb0e
Wordpress Stackexchange Q: Wordpress admin stylesheet Is there a way to override the styles in the admin in my theme? I don't want to touch the admin style sheet if I don't have to. I just want to make a column bigger in my admin, but also, to do it in a way that doesn't get overridden in a future wordpress update. A: You can use the admin_enqueue_scripts hook in combination with wp_enqueue_style in a manner similar to this: // you may want to wrap add_action() in a conditional to prevent enqueue on every page add_action( 'admin_enqueue_scripts', 'wpse44753_admin_enqueue' ); function wpse44753_admin_enqueue() { wp_enqueue_script( 'wpse44753_style', 'script/location/here.css', // you probably want to use plugins_url() for this ); }
Q: Wordpress admin stylesheet Is there a way to override the styles in the admin in my theme? I don't want to touch the admin style sheet if I don't have to. I just want to make a column bigger in my admin, but also, to do it in a way that doesn't get overridden in a future wordpress update. A: You can use the admin_enqueue_scripts hook in combination with wp_enqueue_style in a manner similar to this: // you may want to wrap add_action() in a conditional to prevent enqueue on every page add_action( 'admin_enqueue_scripts', 'wpse44753_admin_enqueue' ); function wpse44753_admin_enqueue() { wp_enqueue_script( 'wpse44753_style', 'script/location/here.css', // you probably want to use plugins_url() for this ); } A: Take a look here at the CODEX for an example on how to do this very thing. Example: Load CSS File on All Admin Pages function load_custom_wp_admin_style(){ wp_register_style( 'custom_wp_admin_css', get_bloginfo('stylesheet_directory') . '/admin-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); } add_action('admin_enqueue_scripts', 'load_custom_wp_admin_style'); Example: Target a Specific Admin Page function my_enqueue($hook) { if( 'edit.php' != $hook ) return; wp_enqueue_script( 'my_custom_script', plugins_url('/myscript.js', __FILE__) ); } add_action( 'admin_enqueue_scripts', 'my_enqueue' ); A: What about using "add_editor_style( array|string $stylesheet = 'editor-style.css' )" ? "The parameter $stylesheet is the name of the stylesheet, relative to the theme root. It also accepts an array of stylesheets. It is optional and defaults to ‘editor-style.css’. This function automatically adds another stylesheet with -rtl prefix, e.g. editor-style-rtl.css. If that file doesn’t exist, it is removed before adding the stylesheet(s) to TinyMCE. If an array of stylesheets is passed to add_editor_style(), RTL is only added for the first stylesheet." /** * Registers an editor stylesheet for the theme. */ if ( ! function_exists( 'ns_admin_custom_css' ) ) : function ns_admin_custom_css() { add_editor_style( get_stylesheet_directory_uri() . '/assets/css/admin.css' ); } add_action( 'admin_init', 'ns_admin_custom_css' ); endif;
wordpress
{ "language": "en", "length": 294, "provenance": "stackexchange_00019.jsonl.gz:417815", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44753" }
[ -0.002742767333984375, -0.01568603515625, -0.031280517578125, 0.0099334716796875, -0.0305938720703125, -0.04742431640625, 0.005832672119140625, -0.021392822265625, -0.007366180419921875, -0.002559661865234375, -0.037689208984375, -0.006946563720703125, 0.0033721923828125, -0.0233306884765625, 0.03997802734375, -0.051055908203125, 0.039886474609375, 0.00940704345703125, 0.024169921875, 0.009735107421875, -0.01047515869140625, 0.040924072265625, -0.00872802734375, 0.055816650390625, -0.01448822021484375, -0.00341033935546875, 0.0770263671875, 0.006099700927734375, -0.0009570121765136719, 0.003795623779296875, 0.0186004638671875, -0.05499267578125, 0.01036834716796875, 0.0216064453125, -0.0177459716796875, -0.044525146484375, -0.0102996826171875, 0.0162506103515625, -0.012298583984375, 0.01053619384765625, 0.062255859375, -0.0272064208984375, 0.0233154296875, 0.0506591796875, -0.01058197021484375, -0.035125732421875, 0.0394287109375, -0.04095458984375, -0.004062652587890625, -0.0225372314453125, 0.0295562744140625, 0.0281219482421875, 0.035980224609375, -0.00640106201171875, 0.0006661415100097656, 0.04754638671875, -0.00605010986328125, -0.0361328125, 0.045654296875, -0.032501220703125, -0.0181732177734375, -0.05316162109375, 0.042449951171875, -0.007617950439453125, -0.026275634765625, 0.006221771240234375, -0.0018939971923828125, -0.0081634521484375, -0.0384521484375, 0.00778961181640625, 0.04620361328125, -0.02569580078125, 0.00638580322265625, -0.023101806640625, -0.060577392578125, 0.013336181640625, 0.0199737548828125, -0.00421142578125, 0.024505615234375, -0.040283203125, 0.0299530029296875, 0.025482177734375, -0.00689697265625, -0.03460693359375, 0.0234832763671875, -0.006855010986328125, -0.0218048095703125, -0.0213775634765625, -0.01092529296875, -0.0318603515625, -0.015472412109375, -0.037384033203125, -0.0389404296875, 0.006778717041015625, 0.00904083251953125, -0.0328369140625, 0.0745849609375, 0.06622314453125, 0.02783203125, 0.0212249755859375, 0.002227783203125, -0.061920166015625, 0.0179595947265625, -0.0142059326171875, -0.0113677978515625, 0.01763916015625, -0.0025959014892578125, 0.016082763671875, 0.007415771484375, 0.0187530517578125, -0.01971435546875, -0.022613525390625, -0.0251922607421875, 0.0214691162109375, -0.016143798828125, -0.00508880615234375, -0.062408447265625, 0.01220703125, -0.030303955078125, 0.0242462158203125, 0.010223388671875, 0.0164794921875, -0.00402069091796875, -0.0134735107421875, -0.006252288818359375, -0.0156402587890625, -0.0193939208984375, -0.01357269287109375, 0.032806396484375, 0.031341552734375, -0.0263214111328125, -0.0285797119140625, 0.0460205078125, 0.04583740234375, 0.039306640625, -0.0250396728515625, 0.044342041015625, -0.006206512451171875, -0.018402099609375, 0.0142364501953125, -0.014678955078125, -0.0190887451171875, 0.004230499267578125, -0.016693115234375, -0.02325439453125, 0.036346435546875, 0.020660400390625, -0.00438690185546875, -0.0218658447265625, -0.04840087890625, 0.0156707763671875, -0.0662841796875, 0.011566162109375, 0.046966552734375, -0.030120849609375, 0.049560546875, 0.052886962890625, 0.0053253173828125, -0.07220458984375, -0.04278564453125, -0.0196380615234375, -0.00345611572265625, 0.044158935546875, -0.0022182464599609375, -0.0182952880859375, 0.019134521484375, -0.0161895751953125, -0.004863739013671875, 0.034423828125, -0.00397491455078125, 0.04400634765625, -0.01593017578125, 0.034698486328125, 0.011566162109375, -0.0135498046875, 0.016693115234375, -0.00951385498046875, -0.0167694091796875, 0.033172607421875, 0.015960693359375, -0.0160980224609375, -0.031097412109375, 0.03363037109375, -0.007251739501953125, -0.0255279541015625, -0.04022216796875, 0.01187896728515625, 0.007053375244140625, 0.0386962890625, 0.032684326171875, 0.0180206298828125, -0.028839111328125, -0.0043182373046875, -0.0102386474609375, -0.006633758544921875, -0.014495849609375, 0.005123138427734375, 0.0162353515625, -0.005947113037109375, -0.007476806640625, 0.0287017822265625, 0.02667236328125, 0.01415252685546875, 0.007053375244140625, 0.006305694580078125, 0.028717041015625, -0.00228118896484375, 0.0279998779296875, 0.00778961181640625, 0.046173095703125, -0.00391387939453125, 0.018646240234375, 0.0011053085327148438, -0.063720703125, -0.0097198486328125, -0.00720977783203125, -0.00485992431640625, 0.042236328125, 0.0067291259765625, 0.04608154296875, 0.0185699462890625, -0.034759521484375, 0.007904052734375, -0.002716064453125, -0.033355712890625, 0.004543304443359375, -0.0244293212890625, 0.0045013427734375, -0.01030731201171875, 0.01441192626953125, 0.0212860107421875, 0.0177764892578125, 0.020111083984375, 0.062408447265625, 0.00292205810546875, -0.0153045654296875, -0.018798828125, -0.09686279296875, 0.0252227783203125, 0.048248291015625, 0.04779052734375, 0.007770538330078125, -0.0011739730834960938, 0.0172882080078125, 0.057159423828125, -0.0012922286987304688, 0.028045654296875, -0.00989532470703125, -0.0013322830200195312, -0.002925872802734375, -0.004146575927734375, -0.011138916015625, 0.036590576171875, -0.09130859375, 0.0228118896484375, 0.0511474609375, -0.01953125, -0.0288543701171875, -0.031951904296875, 0.044281005859375, 0.01418304443359375, 0.0242919921875, -0.018463134765625, 0.00971221923828125, 0.01413726806640625, 0.00502777099609375, 0.003787994384765625, -0.01549530029296875, -0.0214691162109375, 0.0083465576171875, 0.0426025390625, -0.0190277099609375, 0.008026123046875, 0.004306793212890625, -0.005466461181640625, -0.03570556640625, -0.029632568359375, 0.0088958740234375, 0.00931549072265625, -0.01910400390625, -0.01151275634765625, 0.0557861328125, -0.06353759765625, -0.0218963623046875, -0.0295562744140625, -0.05230712890625, -0.02301025390625, 0.01702880859375, 0.012786865234375, 0.0021381378173828125, 0.02984619140625, 0.006961822509765625, -0.00970458984375, 0.0144195556640625, -0.006954193115234375, -0.0213165283203125, -0.0061492919921875, -0.000568389892578125, 0.032440185546875, -0.02001953125, 0.035919189453125, 0.049224853515625, -0.03387451171875, 0.03155517578125, -0.0013647079467773438, -0.0006060600280761719, 0.004131317138671875, 0.00788116455078125, -0.015869140625, -0.0080718994140625, -0.06427001953125, -0.002887725830078125, 0.04327392578125, 0.0263671875, 0.042510986328125, -0.024505615234375, 0.0036220550537109375, 0.050262451171875, -0.02252197265625, -0.04241943359375, -0.04693603515625, -0.08154296875, 0.0078277587890625, -0.02288818359375, -0.033447265625, 0.01446533203125, -0.00156402587890625, 0.026214599609375, -0.008453369140625, -0.04156494140625, 0.008941650390625, -0.034881591796875, -0.038818359375, -0.024200439453125, 0.025848388671875, -0.0006475448608398438, 0.00470733642578125, 0.034881591796875, -0.0177764892578125, -0.08489990234375, -0.02203369140625, -0.00963592529296875, 0.0007863044738769531, 0.0221099853515625, 0.03729248046875, -0.044708251953125, -0.01983642578125, 0.01081085205078125, -0.0157623291015625, 0.00643157958984375, -0.01153564453125, -0.01605224609375, -0.033599853515625, -0.04022216796875, -0.00920867919921875, 0.0235595703125, 0.0308380126953125, -0.036407470703125, 0.0009551048278808594, -0.0672607421875, -0.055206298828125, 0.0046539306640625, -0.053863525390625, 0.0286712646484375, 0.009490966796875, -0.00893402099609375, 0.00611114501953125, 0.0183258056640625, 0.050079345703125, 0.0013179779052734375, -0.01493072509765625, -0.01303863525390625, 0.02142333984375, 0.0225372314453125, 0.0579833984375, -0.01995849609375, 0.0127105712890625, -0.01702880859375, 0.0215301513671875, 0.0008158683776855469, 0.0097808837890625, -0.00858306884765625, 0.038421630859375, 0.0007071495056152344, -0.06005859375, 0.02667236328125, -0.0650634765625, 0.0474853515625, -0.0643310546875, -0.01351165771484375, 0.00799560546875, 0.124267578125, -0.01312255859375, -0.00392913818359375, 0.0122222900390625, 0.0138702392578125, -0.05694580078125, -0.04150390625, -0.0692138671875, 0.0123138427734375, -0.1175537109375, 0.0289459228515625, -0.0038242340087890625, -0.030914306640625, -0.0275115966796875, 0.0362548828125, -0.08447265625, -0.044036865234375, 0.019439697265625, -0.0133514404296875, -0.0283660888671875, 0.04132080078125, -0.04998779296875, 0.021759033203125, 0.0138092041015625, -0.03289794921875, -0.1170654296875, -0.0305938720703125, -0.04248046875, 0.1058349609375, 0.00827789306640625, 0.02447509765625, -0.0280914306640625, 0.06005859375, -0.005645751953125, -0.0204620361328125, 0.02105712890625, 0.043609619140625, -0.02215576171875, -0.02593994140625, 0.00484466552734375, -0.035064697265625, -0.022186279296875, -0.007488250732421875, -0.009979248046875, 0.03692626953125, -0.004482269287109375, -0.003448486328125, 0.04241943359375, -0.0212860107421875, -0.01702880859375, -0.019805908203125, -0.03515625, -0.0038890838623046875, -0.0272674560546875, -0.00879669189453125, -0.0019321441650390625, -0.01329803466796875, 0.035980224609375, 0.0214385986328125, 0.013458251953125, -0.0022296905517578125, 0.029052734375, 0.02337646484375, -0.032440185546875, -0.006282806396484375, 0.008453369140625, 0.0198822021484375, 0.008270263671875, 0.01361083984375, -0.0347900390625, -0.0291595458984375, 0.047393798828125, 0.002716064453125, -0.03173828125, 0.01219940185546875, 0.06622314453125, 0.001537322998046875, -0.0270538330078125, 0.01385498046875, -0.037353515625, -0.00664520263671875, -0.00010842084884643555, 0.0158843994140625, -0.0272064208984375, -0.01137542724609375, 0.03314208984375, 0.051971435546875, -0.041046142578125, -0.060882568359375, -0.03656005859375, 0.001735687255859375, -0.03277587890625, 0.0269012451171875, 0.01398468017578125, -0.00206756591796875, 0.0146636962890625, 0.034088134765625, -0.0017833709716796875, 0.00936126708984375, 0.03076171875, -0.02752685546875, 0.040130615234375, -0.0216827392578125, -0.0311431884765625, 0.003047943115234375, -0.006473541259765625, 0.042724609375, 0.0100555419921875, -0.045989990234375, -0.0347900390625, 0.0126953125, 0.0308074951171875, 0.00292205810546875, 0.0014925003051757812, 0.03125, 0.02508544921875, -0.009368896484375, -0.0251617431640625, 0.0026798248291015625, 0.01204681396484375, -0.051483154296875, 0.01544952392578125, 0.0261077880859375, -0.0290069580078125, 0.047760009765625, 0.003177642822265625, 0.060150146484375, -0.01093292236328125, -0.027587890625, 0.0164642333984375, -0.00695037841796875, 0.016204833984375, 0.0122528076171875, -0.00496673583984375, 0.037689208984375, -0.04425048828125, 0.031036376953125, -0.01800537109375, 0.004505157470703125, 0.01206207275390625, 0.0255279541015625, -0.004215240478515625, -0.006275177001953125, 0.0220184326171875, -0.0197601318359375, -0.0241546630859375, 0.032379150390625, -0.004283905029296875, -0.05224609375, -0.006381988525390625, 0.0018415451049804688, 0.0199127197265625, -0.016937255859375, -0.0013380050659179688, 0.0018024444580078125, -0.01178741455078125, 0.0269317626953125, 0.01468658447265625, -0.003833770751953125, 0.01397705078125, -0.00701904296875, -0.04364013671875, 0.0010499954223632812, -0.0196990966796875, -0.060577392578125, -0.08319091796875, 0.02227783203125, 0.01025390625, -0.013092041015625, -0.014801025390625, 0.05084228515625, -0.005252838134765625, -0.0540771484375, -0.0023441314697265625, 0.0170745849609375, 0.044036865234375, 0.041168212890625, 0.0007238388061523438, -0.02032470703125, -0.0654296875, -0.033050537109375, -0.07781982421875, -0.040863037109375, -0.0217742919921875, 0.0174407958984375, -0.0009474754333496094, -0.01690673828125, -0.012786865234375, -0.040252685546875, -0.052154541015625, 0.046844482421875, 0.0699462890625, 0.00305938720703125, -0.043182373046875, 0.089111328125, -0.0009937286376953125, -0.004791259765625, -0.01152801513671875, 0.04620361328125, 0.006412506103515625, 0.017852783203125, 0.01861572265625, 0.01451873779296875, -0.020416259765625, -0.00939178466796875, -0.02044677734375, -0.0352783203125, 0.04595947265625, -0.018157958984375, 0.049102783203125, -0.040863037109375, -0.0073394775390625, -0.024017333984375, 0.01461029052734375, -0.07989501953125, 0.013885498046875, 0.0020904541015625, 0.018035888671875, 0.0946044921875, -0.043243408203125, -0.04559326171875, 0.044677734375, -0.0168914794921875, 0.07843017578125, 0.00458526611328125, -0.043182373046875, 0.0711669921875, 0.039764404296875, -0.0017614364624023438, 0.03466796875, -0.0029850006103515625, 0.01274871826171875, -0.0177459716796875, -0.0275115966796875, 0.01328277587890625, 0.01873779296875, 0.0251617431640625, -0.021026611328125, 0.0256805419921875, 0.02545166015625, -0.0014276504516601562, 0.029510498046875, 0.058197021484375, 0.07763671875, -0.08056640625, 0.0199737548828125, -0.00392913818359375, -0.01448822021484375, 0.06793212890625, -0.01617431640625, -0.018463134765625, -0.035308837890625, 0.06060791015625, -0.0000775456428527832, -0.005947113037109375, 0.0140533447265625, -0.016693115234375, -0.012359619140625, -0.034393310546875, -0.0126953125, 0.0199432373046875, 0.002796173095703125, 0.031341552734375, -0.0002161264419555664, 0.0289154052734375, 0.01427459716796875, 0.00449371337890625, -0.006877899169921875, -0.039703369140625, -0.0261688232421875, -0.01309967041015625, -0.00861358642578125, -0.0207672119140625, -0.00395965576171875, 0.03466796875, 0.01099395751953125, 0.0443115234375, -0.006732940673828125, 0.0035247802734375, -0.007080078125, 0.01335906982421875, 0.039276123046875, -0.03521728515625, 0.01062774658203125, -0.01403045654296875, -0.01507568359375, 0.01012420654296875, 0.00247955322265625, -0.052337646484375, 0.01189422607421875, -0.0009565353393554688, 0.05438232421875, -0.06744384765625, 0.0118408203125, 0.0233306884765625, -0.01236724853515625, 0.0024814605712890625, -0.001964569091796875, 0.02740478515625, -0.05126953125, -0.030914306640625, 0.0113677978515625, -0.0384521484375, -0.007720947265625, -0.018280029296875, -0.02044677734375, 0.08111572265625, -0.0228424072265625, -0.0076751708984375, 0.04827880859375, 0.04058837890625, -0.060302734375, 0.006435394287109375, -0.0217132568359375, 0.0250396728515625, 0.00849151611328125, -0.0094451904296875, -0.01392364501953125, 0.002834320068359375, -0.0165557861328125, 0.012481689453125, 0.0241546630859375, 0.004673004150390625, -0.02496337890625, 0.0025882720947265625, 0.06646728515625, 0.0614013671875, 0.04168701171875, 0.0212249755859375, -0.01666259765625, 0.005992889404296875, 0.00893402099609375, -0.0303497314453125, 0.0225982666015625, -0.0309600830078125, -0.0347900390625, 0.0085906982421875, 0.00217437744140625, 0.0065155029296875, 0.03826904296875, 0.015594482421875, -0.04156494140625, 0.02081298828125, 0.040252685546875, -0.09625244140625, -0.00508880615234375, 0.02447509765625, 0.0030498504638671875, -0.0014390945434570312, -0.01136016845703125, -0.011474609375, 0.0216217041015625, -0.00798797607421875, -0.0032501220703125, -0.024322509765625, 0.0007419586181640625, 0.050140380859375, -0.01151275634765625, -0.0214996337890625, 0.0498046875, -0.0208282470703125, 0.015350341796875, 0.03497314453125, 0.04071044921875, 0.016998291015625, 0.00254058837890625, -0.0257110595703125, 0.007091522216796875, -0.0116729736328125, 0.00038433074951171875, 0.0285797119140625, 0.01280975341796875, -0.02545166015625, -0.033843994140625, -0.03106689453125, -0.02532958984375, 0.00351715087890625, -0.0208740234375, -0.0033626556396484375, 0.046112060546875, -0.0033588409423828125, 0.005725860595703125, 0.040802001953125, -0.011688232421875, -0.00252532958984375, -0.038055419921875, -0.004566192626953125, 0.006977081298828125, 0.052032470703125, 0.016632080078125, 0.0240020751953125, -0.0186309814453125, -0.0149688720703125, -0.036773681640625, 0.012298583984375, 0.00691986083984375, 0.039031982421875, -0.0335693359375, 0.0249786376953125, -0.006183624267578125, 0.040618896484375, -0.0010890960693359375, -0.003448486328125, 0.0272216796875, 0.004425048828125, -0.044586181640625, -0.0189971923828125, 0.01461029052734375, -0.0238037109375, 0.0196380615234375, -0.054443359375, 0.04296875, 0.019683837890625, 0.005496978759765625, 0.005939483642578125, -0.00012093782424926758, 0.06121826171875, -0.01058197021484375, -0.0207366943359375, 0.0130462646484375, -0.024993896484375, -0.01241302490234375, 0.0234375, -0.037689208984375, 0.021270751953125, -0.052764892578125, -0.01288604736328125, -0.0126953125, -0.0074920654296875, 0.007122039794921875, 0.024810791015625, -0.03668212890625, 0.042755126953125, 0.003143310546875, -0.0282135009765625, 0.00568389892578125, 0.01477813720703125, -0.0006494522094726562, -0.0083160400390625, 0.0248870849609375, -0.00848388671875, -0.06427001953125, -0.043426513671875, -0.04815673828125, 0.06488037109375, 0.019134521484375, 0.0654296875, -0.0247650146484375, 0.033203125, 0.021392822265625, -0.0140228271484375, 0.00917816162109375, -0.0025119781494140625, 0.00948333740234375, -0.033843994140625, 0.000072479248046875, -0.0087432861328125, -0.050506591796875, -0.01029205322265625, 0.022186279296875, -0.033660888671875, -0.009979248046875, 0.005153656005859375, 0.0201416015625, -0.01476287841796875, -0.00455474853515625, -0.04443359375, -0.038543701171875, -0.0099029541015625, 0.013671875, -0.027618408203125, -0.037109375, -0.0026874542236328125, 0.0019168853759765625, 0.001834869384765625, -0.02349853515625, 0.0294952392578125, -0.01403045654296875, 0.04119873046875, 0.028961181640625, -0.033203125, -0.00933837890625, 0.017578125, -0.01009368896484375, 0.020538330078125, 0.0180206298828125, 0.0347900390625, 0.0012216567993164062, -0.0170135498046875, 0.00016415119171142578, 0.022735595703125, 0.0267486572265625, -0.0100555419921875, 0.0214385986328125, 0.029449462890625, -0.02703857421875, -0.020477294921875, 0.00010269880294799805, -0.032989501953125, -0.052581787109375, 0.00879669189453125, 0.0201568603515625, -0.0206756591796875, -0.02471923828125, -0.07635498046875, 0.05218505859375, 0.047271728515625, 0.002056121826171875, -0.0787353515625, 0.0596923828125, -0.05914306640625, 0.087646484375, 0.00910186767578125, 0.0059356689453125, 0.0138702392578125, 0.033905029296875, -0.053955078125, -0.03564453125, -0.021392822265625, 0.0094146728515625, -0.042449951171875, -0.0016641616821289062, 0.031890869140625, -0.020660400390625, 0.0260162353515625, -0.003261566162109375, 0.017791748046875, 0.040985107421875, -0.0201263427734375, -0.0006985664367675781, 0.033721923828125, 0.03302001953125, -0.0233154296875, -0.107177734375, -0.01556396484375, -0.0160980224609375, 0.048126220703125, 0.002254486083984375, -0.00594329833984375, 0.017578125, -0.028106689453125, -0.051849365234375, -0.0027980804443359375, 0.01374053955078125, -0.0296783447265625, -0.00884246826171875, 0.005741119384765625, -0.006214141845703125, -0.03424072265625, 0.0008473396301269531, -0.0160369873046875, -0.0155181884765625, 0.004512786865234375, 0.01959228515625, -0.0008292198181152344, 0.0157470703125, 0.019287109375, -0.07904052734375, 0.033416748046875, 0.023712158203125, 0.030487060546875, -0.031402587890625, -0.00966644287109375, 0.0260772705078125, 0.0184173583984375, -0.01190948486328125, -0.031707763671875, 0.049896240234375, -0.007297515869140625, -0.00887298583984375, -0.0224761962890625, -0.040435791015625, 0.001972198486328125, 0.08355712890625, 0.0936279296875, 0.01922607421875, -0.035736083984375, -0.0269622802734375, -0.01435089111328125, -0.00960540771484375, -0.031768798828125, 0.0156707763671875, -0.08050537109375, -0.0296630859375, 0.01520538330078125, -0.027740478515625, -0.022613525390625, 0.024200439453125, -0.047332763671875, 0.01302337646484375, 0.016082763671875, -0.011322021484375, -0.04119873046875, -0.020965576171875, 0.060272216796875, -0.041046142578125, 0.01021575927734375, -0.009124755859375, 0.03582763671875, 0.0302276611328125, -0.0192108154296875, -0.05010986328125, 0.00978851318359375, -0.0374755859375, 0.0195770263671875, -0.033721923828125, 0.02978515625, -0.04681396484375, 0.040252685546875, 0.0004725456237792969, 0.0177154541015625, -0.0211334228515625, 0.0070343017578125, 0.01763916015625, 0.03271484375, -0.0157928466796875, 0.0570068359375, 0.0018749237060546875, 0.0244903564453125, -0.014739990234375, 0.038055419921875, 0.0176544189453125, -0.02276611328125, 0.0300140380859375, -0.031402587890625, 0.005054473876953125, -0.0004940032958984375, 0.00838470458984375, -0.031524658203125, 0.020172119140625, 0.0049896240234375, 0.0182037353515625, 0.0135955810546875 ]
6f1b6b0f789af7554bf9857e8253e895eb0ff4d4
Wordpress Stackexchange Q: Need to create a Theme demo site that features multiple themes I would like to create a site like: http://demo2.woothemes.com/?name=sentient for my clients, so that they can see the range of themes I offer. I own many templates from different providers, and sending them to the providers will not help as there are quite a few and not all offer this functionality (not to mention that the UI can be confusing to my clients) I want the site to be super simple to use, and provide the ability at first to just switch themes on using a demo site (Wordpress site with content) Found this previous question about same subject, this plugin was offered there, but the solution is far from simple in that the all templates need to support some specific functionality (the theme switching widget) - this is not good enough. I'd appreciate any suggestions you may have (creating a site with an upper frame that switches sites below?) - problem is I have very little time to experiment on this, and am looking for someone with the knowledge who is willing to share. A: what about a plugin like: http://wordpress.org/extend/plugins/theme-switcher/
Q: Need to create a Theme demo site that features multiple themes I would like to create a site like: http://demo2.woothemes.com/?name=sentient for my clients, so that they can see the range of themes I offer. I own many templates from different providers, and sending them to the providers will not help as there are quite a few and not all offer this functionality (not to mention that the UI can be confusing to my clients) I want the site to be super simple to use, and provide the ability at first to just switch themes on using a demo site (Wordpress site with content) Found this previous question about same subject, this plugin was offered there, but the solution is far from simple in that the all templates need to support some specific functionality (the theme switching widget) - this is not good enough. I'd appreciate any suggestions you may have (creating a site with an upper frame that switches sites below?) - problem is I have very little time to experiment on this, and am looking for someone with the knowledge who is willing to share. A: what about a plugin like: http://wordpress.org/extend/plugins/theme-switcher/ A: Yes, theme switcher is good. You still need to install all of the different themes you want to demo, and modify them to suit your needs...
wordpress
{ "language": "en", "length": 221, "provenance": "stackexchange_00019.jsonl.gz:417829", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44801" }
[ -0.006809234619140625, 0.004856109619140625, 0.01265716552734375, 0.029083251953125, 0.00209808349609375, -0.00901031494140625, 0.007213592529296875, -0.06658935546875, -0.00890350341796875, 0.0133056640625, -0.0361328125, 0.014404296875, -0.00225830078125, -0.006946563720703125, 0.0177764892578125, -0.036712646484375, 0.02117919921875, -0.0169219970703125, 0.028656005859375, -0.009063720703125, 0.03228759765625, 0.0172119140625, 0.004634857177734375, 0.06854248046875, 0.026397705078125, -0.006053924560546875, 0.039215087890625, -0.039337158203125, 0.019073486328125, -0.01690673828125, 0.01497650146484375, -0.006694793701171875, 0.01885986328125, -0.003910064697265625, 0.02142333984375, 0.036895751953125, 0.032928466796875, -0.00971221923828125, 0.0142822265625, 0.029022216796875, -0.009674072265625, 0.00617218017578125, 0.0157623291015625, 0.019287109375, 0.0011873245239257812, -0.07568359375, 0.0212554931640625, -0.06341552734375, -0.0096282958984375, -0.0576171875, 0.006824493408203125, 0.00870513916015625, 0.02349853515625, -0.006175994873046875, -0.028106689453125, -0.018310546875, 0.0193023681640625, -0.0065460205078125, 0.051544189453125, -0.0268096923828125, -0.04119873046875, -0.0300750732421875, 0.0278472900390625, -0.013397216796875, -0.0168914794921875, 0.007442474365234375, -0.0430908203125, 0.01324462890625, -0.01474761962890625, -0.0061492919921875, 0.023681640625, -0.0377197265625, 0.018280029296875, -0.06414794921875, -0.02557373046875, 0.0355224609375, -0.037109375, -0.036285400390625, 0.037445068359375, -0.03826904296875, -0.0024623870849609375, 0.0106201171875, -0.037109375, -0.0439453125, 0.0237579345703125, -0.021270751953125, -0.00920867919921875, 0.0015773773193359375, -0.05902099609375, -0.002223968505859375, -0.04095458984375, -0.00333404541015625, -0.05242919921875, 0.0226287841796875, -0.012664794921875, 0.0305938720703125, -0.006473541259765625, -0.00020933151245117188, 0.005115509033203125, 0.0085906982421875, 0.044830322265625, -0.060638427734375, 0.04486083984375, -0.0281982421875, -0.0090789794921875, 0.034332275390625, 0.0203399658203125, 0.028411865234375, 0.02264404296875, 0.01898193359375, 0.0072021484375, 0.034210205078125, -0.0045623779296875, -0.03375244140625, -0.0267181396484375, 0.00267791748046875, -0.039093017578125, -0.00608062744140625, 0.006313323974609375, -0.0156707763671875, 0.0134124755859375, 0.04132080078125, 0.01885986328125, -0.030303955078125, -0.042449951171875, -0.0272979736328125, -0.00698089599609375, -0.059173583984375, -0.0059661865234375, 0.006500244140625, -0.024505615234375, 0.00302886962890625, 0.03668212890625, 0.04669189453125, 0.00963592529296875, -0.0178985595703125, 0.027191162109375, 0.0011081695556640625, -0.000354766845703125, -0.0034961700439453125, 0.0171966552734375, -0.03460693359375, -0.0264892578125, 0.0102996826171875, 0.0267486572265625, 0.03924560546875, 0.0211944580078125, -0.0091400146484375, -0.01470947265625, -0.01702880859375, 0.0237884521484375, -0.020477294921875, 0.0248565673828125, -0.034393310546875, 0.0312042236328125, -0.0474853515625, -0.01244354248046875, -0.0224456787109375, 0.01491546630859375, 0.013885498046875, -0.03594970703125, 0.005580902099609375, 0.053436279296875, -0.031768798828125, -0.01497650146484375, -0.027862548828125, -0.01427459716796875, 0.0003197193145751953, 0.01788330078125, -0.01416778564453125, -0.003162384033203125, -0.008209228515625, 0.06317138671875, 0.011474609375, -0.0012197494506835938, 0.045440673828125, -0.011199951171875, 0.011077880859375, 0.0306396484375, -0.0096435546875, -0.0291290283203125, -0.03387451171875, 0.038604736328125, -0.01300811767578125, -0.06439208984375, 0.049713134765625, 0.00201416015625, 0.058990478515625, 0.01995849609375, 0.0002639293670654297, 0.032440185546875, 0.011016845703125, 0.007534027099609375, 0.017486572265625, 0.0016422271728515625, -0.025848388671875, -0.01513671875, 0.015350341796875, -0.0103302001953125, -0.041473388671875, -0.01360321044921875, 0.0087127685546875, -0.017852783203125, -0.0028476715087890625, -0.0144500732421875, -0.02294921875, -0.00597381591796875, 0.0239715576171875, -0.004276275634765625, 0.00566864013671875, 0.01424407958984375, -0.017974853515625, 0.0008821487426757812, -0.050567626953125, -0.037109375, 0.028900146484375, -0.009368896484375, 0.01309967041015625, -0.005279541015625, -0.00904083251953125, 0.01531982421875, -0.00939178466796875, 0.01383209228515625, 0.049163818359375, 0.052276611328125, 0.019378662109375, -0.021209716796875, -0.01424407958984375, 0.01335906982421875, 0.04107666015625, -0.060760498046875, 0.0177764892578125, 0.04071044921875, 0.03564453125, -0.00536346435546875, 0.0270843505859375, 0.03582763671875, -0.043975830078125, -0.009124755859375, 0.01824951171875, 0.0089263916015625, 0.036773681640625, -0.040313720703125, -0.018035888671875, 0.038726806640625, -0.0267791748046875, 0.0113677978515625, 0.00826263427734375, 0.004840850830078125, 0.050323486328125, 0.00559234619140625, 0.0174407958984375, 0.002193450927734375, -0.0750732421875, 0.0014543533325195312, 0.04034423828125, -0.0159454345703125, -0.0220489501953125, -0.004642486572265625, 0.0030670166015625, 0.0177001953125, -0.000240325927734375, -0.03302001953125, -0.0037689208984375, 0.039306640625, 0.00803375244140625, 0.03863525390625, 0.001338958740234375, -0.0037021636962890625, 0.00921630859375, -0.01800537109375, -0.08721923828125, 0.01995849609375, 0.005664825439453125, 0.0142669677734375, 0.03009033203125, -0.00988006591796875, -0.039459228515625, 0.05914306640625, 0.0088348388671875, -0.0279388427734375, 0.0175018310546875, -0.06903076171875, -0.036407470703125, 0.0167999267578125, -0.045623779296875, -0.048980712890625, -0.0169525146484375, 0.0213775634765625, 0.032867431640625, 0.03228759765625, -0.00630950927734375, -0.058441162109375, 0.069091796875, -0.008758544921875, -0.0184326171875, 0.0614013671875, -0.0684814453125, 0.04937744140625, -0.0396728515625, 0.030120849609375, 0.0543212890625, -0.01224517822265625, -0.021148681640625, 0.01290130615234375, -0.008941650390625, 0.02056884765625, 0.00001710653305053711, -0.004730224609375, 0.0220947265625, -0.07147216796875, 0.0032291412353515625, 0.03564453125, -0.00855255126953125, 0.02410888671875, -0.0089263916015625, -0.025909423828125, 0.0458984375, -0.0021114349365234375, 0.04510498046875, 0.04541015625, -0.03680419921875, 0.006282806396484375, -0.0021915435791015625, -0.0229949951171875, -0.029998779296875, 0.0269317626953125, -0.0029735565185546875, -0.032928466796875, -0.038330078125, -0.039947509765625, -0.08197021484375, -0.061187744140625, -0.0192108154296875, -0.0108184814453125, 0.0166473388671875, 0.0078887939453125, 0.022857666015625, 0.0024166107177734375, -0.02667236328125, 0.01276397705078125, 0.0204925537109375, -0.0089111328125, -0.0308380126953125, 0.022796630859375, -0.021331787109375, -0.027374267578125, 0.032470703125, -0.03851318359375, 0.01107025146484375, -0.027191162109375, -0.0177154541015625, -0.029388427734375, -0.0106048583984375, -0.0008206367492675781, -0.0276336669921875, 0.018707275390625, -0.0152435302734375, -0.0259552001953125, -0.052703857421875, -0.0294647216796875, 0.006473541259765625, -0.046875, -0.0101318359375, 0.0024013519287109375, -0.0007190704345703125, 0.0237579345703125, -0.0196685791015625, 0.0114898681640625, 0.0022449493408203125, 0.032012939453125, -0.035125732421875, 0.025970458984375, 0.00420379638671875, 0.00809478759765625, -0.032684326171875, -0.036773681640625, -0.052093505859375, 0.0169677734375, -0.02874755859375, -0.00782012939453125, -0.0191650390625, 0.048065185546875, 0.028564453125, -0.05499267578125, 0.041839599609375, -0.017974853515625, 0.004688262939453125, -0.043426513671875, -0.028900146484375, -0.0258331298828125, 0.08123779296875, -0.051788330078125, 0.009124755859375, 0.017364501953125, 0.005146026611328125, -0.001796722412109375, 0.037750244140625, -0.10565185546875, -0.0263519287109375, -0.0950927734375, -0.0025196075439453125, -0.027191162109375, -0.01421356201171875, -0.0164947509765625, -0.048248291015625, -0.03778076171875, -0.0543212890625, 0.023345947265625, 0.0174407958984375, 0.03375244140625, -0.032379150390625, 0.01294708251953125, -0.037384033203125, -0.0009541511535644531, -0.02789306640625, -0.0260772705078125, -0.0264434814453125, 0.02740478515625, 0.029327392578125, 0.0175933837890625, -0.034088134765625, -0.0067596435546875, 0.03533935546875, 0.00679779052734375, 0.037506103515625, 0.0047760009765625, 0.01129913330078125, 0.0147247314453125, -0.012969970703125, 0.0137939453125, -0.0267791748046875, -0.0225677490234375, -0.037200927734375, -0.045074462890625, 0.00913238525390625, -0.0128936767578125, 0.0245513916015625, -0.00904083251953125, -0.00836944580078125, 0.0013666152954101562, -0.0052032470703125, 0.01055908203125, 0.00537872314453125, 0.01500701904296875, -0.0182342529296875, 0.004669189453125, 0.0055999755859375, -0.0002803802490234375, -0.0186767578125, -0.0252838134765625, 0.031036376953125, 0.036376953125, 0.025482177734375, -0.0162200927734375, -0.07550048828125, 0.0236968994140625, 0.04962158203125, 0.0243682861328125, -0.0280609130859375, -0.023651123046875, -0.0535888671875, 0.033966064453125, 0.012115478515625, 0.0012187957763671875, 0.0205230712890625, 0.019927978515625, -0.005184173583984375, -0.036224365234375, 0.01116943359375, -0.005924224853515625, 0.01132965087890625, 0.037872314453125, -0.026824951171875, 0.0172882080078125, -0.02020263671875, -0.0016832351684570312, -0.0208587646484375, 0.003856658935546875, -0.0258636474609375, -0.0029430389404296875, -0.004367828369140625, -0.007366180419921875, 0.01264190673828125, 0.0185699462890625, -0.003421783447265625, -0.01226806640625, 0.01348114013671875, 0.00909423828125, 0.007572174072265625, 0.0203857421875, -0.0028133392333984375, 0.040679931640625, 0.0040435791015625, 0.0008339881896972656, -0.01812744140625, -0.027130126953125, 0.10186767578125, 0.0012922286987304688, -0.041656494140625, -0.0109710693359375, -0.0282440185546875, 0.015777587890625, 0.00894927978515625, -0.032501220703125, 0.048614501953125, 0.053924560546875, -0.036468505859375, -0.00983428955078125, -0.01052093505859375, 0.01395416259765625, -0.0657958984375, -0.019012451171875, 0.0024623870849609375, -0.0123138427734375, 0.060516357421875, 0.004299163818359375, -0.002994537353515625, 0.0286865234375, -0.035980224609375, 0.040435791015625, 0.07159423828125, -0.004367828369140625, 0.01543426513671875, 0.00655364990234375, -0.019439697265625, -0.03375244140625, -0.0019254684448242188, -0.06182861328125, -0.005718231201171875, 0.04791259765625, 0.039520263671875, 0.0282135009765625, -0.0279083251953125, 0.01010894775390625, 0.01605224609375, 0.006046295166015625, -0.0015163421630859375, -0.0259857177734375, -0.005157470703125, -0.0269012451171875, 0.024322509765625, 0.0479736328125, -0.0016641616821289062, -0.00995635986328125, -0.0323486328125, -0.034698486328125, -0.039764404296875, -0.008331298828125, -0.0633544921875, 0.0173187255859375, 0.024383544921875, -0.0199737548828125, 0.0228729248046875, 0.030517578125, -0.086181640625, -0.056915283203125, -0.0159759521484375, -0.0205078125, 0.055908203125, -0.0247039794921875, 0.0124664306640625, -0.0040435791015625, -0.00742340087890625, -0.035247802734375, 0.024200439453125, 0.0189208984375, 0.007289886474609375, -0.10504150390625, 0.01227569580078125, -0.06280517578125, -0.0206298828125, -0.0672607421875, -0.077880859375, -0.0782470703125, -0.01012420654296875, 0.00392913818359375, 0.0095367431640625, -0.0033016204833984375, -0.01715087890625, 0.00321197509765625, 0.00795745849609375, -0.00408935546875, 0.003070831298828125, 0.0006499290466308594, 0.03778076171875, -0.0252838134765625, 0.034393310546875, 0.00933837890625, 0.005466461181640625, -0.02288818359375, -0.015625, 0.0022945404052734375, -0.00934600830078125, -0.00707244873046875, -0.001285552978515625, 0.0089569091796875, 0.0144195556640625, 0.050628662109375, 0.0004494190216064453, 0.00606536865234375, -0.023651123046875, 0.01015472412109375, -0.0221405029296875, 0.03228759765625, -0.04638671875, -0.01629638671875, 0.00603485107421875, -0.050445556640625, -0.02972412109375, 0.021514892578125, 0.006595611572265625, 0.0263671875, -0.0196075439453125, 0.01064300537109375, 0.023681640625, -0.0265045166015625, 0.034088134765625, 0.0302886962890625, -0.007099151611328125, 0.020965576171875, 0.0008664131164550781, -0.009674072265625, 0.007663726806640625, -0.002826690673828125, -0.0001500844955444336, -0.043243408203125, 0.01316070556640625, -0.008209228515625, -0.003627777099609375, 0.016571044921875, -0.0152435302734375, -0.035369873046875, 0.04095458984375, 0.032470703125, -0.09368896484375, 0.01441192626953125, 0.0183563232421875, 0.042755126953125, -0.045501708984375, 0.02703857421875, 0.01035308837890625, -0.0298614501953125, 0.021820068359375, 0.0229339599609375, 0.024627685546875, 0.0262603759765625, 0.0008192062377929688, -0.006092071533203125, -0.0153045654296875, 0.01480865478515625, 0.0137786865234375, -0.044647216796875, 0.03717041015625, 0.0265655517578125, 0.0245208740234375, 0.00022077560424804688, -0.00829315185546875, -0.01239776611328125, -0.019134521484375, -0.0217437744140625, 0.019073486328125, -0.05072021484375, 0.00243377685546875, -0.0228424072265625, 0.027984619140625, 0.0069732666015625, 0.052825927734375, -0.02362060546875, 0.0179901123046875, 0.01019287109375, 0.05206298828125, 0.019317626953125, -0.0003859996795654297, 0.0252685546875, -0.0228424072265625, -0.0279693603515625, 0.014801025390625, -0.020721435546875, -0.0260009765625, -0.0216522216796875, 0.0435791015625, 0.07373046875, 0.0093841552734375, -0.047698974609375, 0.05718994140625, 0.04010009765625, -0.036376953125, -0.0302886962890625, 0.00754547119140625, -0.10479736328125, -0.062255859375, -0.004650115966796875, -0.0283966064453125, -0.0035858154296875, -0.0012750625610351562, -0.0672607421875, 0.09735107421875, -0.01097869873046875, 0.0419921875, 0.049072265625, 0.0306396484375, -0.05743408203125, -0.022552490234375, -0.01250457763671875, 0.0423583984375, -0.005023956298828125, 0.00463104248046875, 0.0013275146484375, 0.028167724609375, 0.006496429443359375, -0.0134735107421875, 0.017181396484375, -0.0031108856201171875, 0.0330810546875, 0.0250091552734375, 0.04888916015625, 0.037445068359375, -0.0233001708984375, -0.00579071044921875, -0.043548583984375, -0.0166778564453125, -0.0460205078125, 0.005268096923828125, 0.000011205673217773438, 0.0172576904296875, -0.07977294921875, 0.0211334228515625, 0.003971099853515625, 0.0027027130126953125, 0.0283203125, -0.006618499755859375, -0.06689453125, 0.01023101806640625, 0.04693603515625, -0.01074981689453125, 0.0172576904296875, 0.034820556640625, 0.0156402587890625, 0.06060791015625, 0.0538330078125, -0.01328277587890625, 0.05706787109375, -0.003047943115234375, 0.01071929931640625, 0.0141143798828125, 0.01971435546875, -0.027740478515625, -0.01189422607421875, 0.0115814208984375, 0.034454345703125, -0.060821533203125, 0.01374053955078125, -0.0026111602783203125, -0.003681182861328125, -0.07830810546875, -0.0206756591796875, 0.0196990966796875, 0.050750732421875, -0.022186279296875, -0.055145263671875, -0.002704620361328125, -0.005420684814453125, 0.0362548828125, 0.0098419189453125, 0.04052734375, 0.0247650146484375, 0.0090789794921875, -0.013458251953125, 0.0003979206085205078, -0.006999969482421875, 0.0246124267578125, -0.0125885009765625, -0.006664276123046875, -0.035430908203125, 0.016357421875, -0.03533935546875, 0.029083251953125, 0.0130615234375, 0.033843994140625, -0.024566650390625, 0.1083984375, -0.00850677490234375, -0.0135498046875, 0.0212860107421875, 0.0243072509765625, 0.03302001953125, -0.051910400390625, 0.039398193359375, -0.01812744140625, 0.004283905029296875, -0.007633209228515625, -0.0167999267578125, 0.007007598876953125, 0.03973388671875, 0.055572509765625, -0.023651123046875, -0.0157012939453125, 0.04345703125, -0.0229339599609375, 0.008453369140625, -0.0200653076171875, -0.045867919921875, 0.0003769397735595703, -0.033172607421875, 0.00018131732940673828, -0.04876708984375, 0.048858642578125, -0.04052734375, 0.040313720703125, -0.001766204833984375, -0.0178680419921875, -0.0064697265625, -0.01428985595703125, 0.02545166015625, -0.00893402099609375, -0.12225341796875, -0.02655029296875, -0.0443115234375, -0.0419921875, 0.02215576171875, 0.03900146484375, -0.0179901123046875, 0.0157623291015625, -0.001918792724609375, 0.01091766357421875, 0.0318603515625, -0.035675048828125, -0.0013704299926757812, 0.01314544677734375, 0.0225677490234375, -0.0006957054138183594, -0.089599609375, -0.055145263671875, -0.034332275390625, 0.042144775390625, -0.0121917724609375, 0.09063720703125, -0.0242156982421875, 0.016204833984375, 0.0186767578125, 0.0189361572265625, 0.0011844635009765625, -0.0036907196044921875, 0.07244873046875, 0.011016845703125, -0.007595062255859375, -0.03466796875, -0.018646240234375, 0.0128021240234375, 0.034942626953125, -0.03155517578125, -0.002532958984375, 0.004222869873046875, 0.0275115966796875, -0.0129852294921875, 0.022125244140625, -0.0238800048828125, -0.053131103515625, -0.058441162109375, 0.0173492431640625, 0.01397705078125, 0.00751495361328125, -0.049072265625, -0.01300048828125, -0.0051727294921875, -0.0163421630859375, -0.011260986328125, 0.046173095703125, -0.052581787109375, 0.02044677734375, 0.0233154296875, -0.044952392578125, 0.0433349609375, -0.0014820098876953125, -0.0014848709106445312, 0.03155517578125, 0.066162109375, 0.01806640625, -0.007251739501953125, 0.06475830078125, 0.0280303955078125, 0.041229248046875, -0.0340576171875, 0.0009465217590332031, 0.08270263671875, 0.0038547515869140625, -0.0209503173828125, 0.0216217041015625, -0.0233001708984375, -0.007152557373046875, 0.00768280029296875, 0.0131988525390625, 0.021270751953125, 0.018310546875, -0.0360107421875, 0.0299072265625, 0.02117919921875, -0.011016845703125, -0.01552581787109375, 0.0228118896484375, -0.03839111328125, 0.03924560546875, -0.004688262939453125, -0.0279388427734375, 0.00588226318359375, 0.006725311279296875, -0.031097412109375, 0.019439697265625, -0.05255126953125, -0.017974853515625, -0.00835418701171875, 0.004268646240234375, 0.0308380126953125, -0.01416778564453125, 0.006256103515625, -0.005817413330078125, 0.0070953369140625, 0.06219482421875, -0.019195556640625, 0.011962890625, 0.01503753662109375, 0.01078033447265625, -0.040679931640625, -0.058807373046875, 0.019195556640625, -0.0257720947265625, -0.03662109375, -0.021148681640625, -0.0170135498046875, -0.00774383544921875, -0.04425048828125, -0.034698486328125, 0.0760498046875, -0.00579071044921875, -0.017852783203125, -0.03680419921875, 0.0209808349609375, -0.0200042724609375, 0.01471710205078125, -0.003871917724609375, -0.0012750625610351562, 0.0283050537109375, 0.048095703125, 0.00167083740234375, 0.0050048828125, 0.02606201171875, -0.01006317138671875, -0.0251617431640625, -0.001544952392578125, -0.0040740966796875, -0.00894927978515625, 0.00506591796875, -0.0268707275390625, 0.0038738250732421875, 0.0196380615234375, -0.025909423828125, -0.11480712890625, -0.009979248046875, -0.0391845703125, -0.0144805908203125, -0.005695343017578125, -0.0228118896484375, -0.021087646484375, 0.0255889892578125, 0.05706787109375, 0.0121917724609375, -0.0165252685546875, -0.0222930908203125, -0.0323486328125, 0.00391387939453125, -0.0173492431640625, 0.002880096435546875, -0.032562255859375, 0.0017490386962890625, -0.01396942138671875, -0.03155517578125, 0.00714111328125, 0.0217132568359375, -0.04248046875, 0.005123138427734375, 0.002521514892578125, 0.0036716461181640625, -0.0765380859375, 0.00942230224609375, 0.08050537109375, -0.01971435546875, 0.043670654296875, -0.0259857177734375, 0.017669677734375, 0.07293701171875, 0.0025386810302734375, 0.0279998779296875, -0.0360107421875, -0.034637451171875, 0.03857421875, -0.0191802978515625, 0.035919189453125, -0.03863525390625, -0.029998779296875, -0.0032024383544921875, 0.011505126953125, -0.00034332275390625, -0.0046234130859375, 0.0025177001953125, 0.037841796875, 0.000667572021484375, 0.04156494140625, 0.0380859375, 0.0550537109375, 0.0258331298828125, 0.04754638671875, -0.0170135498046875, -0.039276123046875, -0.004940032958984375, -0.09906005859375, 0.007198333740234375, 0.00522613525390625, 0.01343536376953125, 0.0113372802734375, -0.0001838207244873047, 0.00824737548828125, 0.00696563720703125, -0.0037384033203125 ]
768911966ddd349ee410e792550fe432d8f25cb7
Wordpress Stackexchange Q: How to create a specific frontend URL (not a Page) from a theme or plugin? My theme implements an AJAX action that returns some dynamic content and needs some functions from the Wordpress environment. How can I construct a URL for the AJAX call in the most elegant and robust way? In particular, I see lots of themes and plugins directly linking to PHP files that are inside their directory tree, which in turn are totally different entry points from Wordpress's index.php, and then include this: // INCLUDE WORDPRESS STUFF define('WP_USE_THEMES', false); include_once('../../../wp-load.php'); From an architecture perspective, this does not seem elegant to me (we create another entry point to the app), and it also breaks if I want to symlink the theme directory to some place else. I think WordPress doesn't implement a full-fledged router as the ones from typical Web frameworks, but is there a way to create specific (not custom posts, for instance) frontend URLs? A: Read AJAX in Plugins. Themes work the same way. So, you get an API, some gotchas inclusive. :) Our tag ajax is quite popular too; you may find some good solutions there.
Q: How to create a specific frontend URL (not a Page) from a theme or plugin? My theme implements an AJAX action that returns some dynamic content and needs some functions from the Wordpress environment. How can I construct a URL for the AJAX call in the most elegant and robust way? In particular, I see lots of themes and plugins directly linking to PHP files that are inside their directory tree, which in turn are totally different entry points from Wordpress's index.php, and then include this: // INCLUDE WORDPRESS STUFF define('WP_USE_THEMES', false); include_once('../../../wp-load.php'); From an architecture perspective, this does not seem elegant to me (we create another entry point to the app), and it also breaks if I want to symlink the theme directory to some place else. I think WordPress doesn't implement a full-fledged router as the ones from typical Web frameworks, but is there a way to create specific (not custom posts, for instance) frontend URLs? A: Read AJAX in Plugins. Themes work the same way. So, you get an API, some gotchas inclusive. :) Our tag ajax is quite popular too; you may find some good solutions there.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:417830", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44802" }
[ 0.089599609375, -0.00969696044921875, -0.0072479248046875, -0.07196044921875, 0.0210418701171875, -0.0242462158203125, 0.0126190185546875, 0.003833770751953125, -0.04754638671875, 0.01016998291015625, 0.00844573974609375, 0.0083160400390625, -0.029876708984375, -0.038482666015625, 0.01459503173828125, -0.03009033203125, 0.0296478271484375, -0.0267333984375, 0.008087158203125, -0.021728515625, 0.0240631103515625, -0.01131439208984375, 0.0088043212890625, 0.065185546875, 0.0194549560546875, 0.039031982421875, 0.054412841796875, -0.016204833984375, 0.013458251953125, -0.0028705596923828125, 0.0268402099609375, -0.049468994140625, 0.01971435546875, 0.01000213623046875, -0.00994873046875, -0.039764404296875, 0.01474761962890625, 0.008636474609375, 0.00249481201171875, -0.0024700164794921875, 0.0565185546875, -0.042724609375, 0.003551483154296875, 0.043914794921875, 0.00733184814453125, -0.046722412109375, 0.079833984375, -0.05914306640625, 0.0023403167724609375, 0.01314544677734375, 0.0015087127685546875, 0.0139923095703125, 0.0166168212890625, -0.0025177001953125, -0.011810302734375, -0.0266876220703125, -0.023590087890625, -0.0144195556640625, 0.03155517578125, -0.01242828369140625, -0.01263427734375, -0.04132080078125, 0.037567138671875, 0.0113677978515625, 0.01213836669921875, -0.01727294921875, -0.0258941650390625, 0.057769775390625, -0.025970458984375, -0.00368499755859375, 0.0098724365234375, -0.031280517578125, -0.01000213623046875, -0.0151824951171875, -0.04156494140625, 0.0081329345703125, 0.0322265625, -0.0107879638671875, -0.00537109375, -0.002834320068359375, 0.0026607513427734375, -0.02734375, -0.0250244140625, -0.0438232421875, 0.0264129638671875, -0.03204345703125, -0.0030765533447265625, 0.0046844482421875, -0.07379150390625, -0.0134124755859375, -0.056243896484375, -0.0263824462890625, -0.06939697265625, 0.006175994873046875, 0.0019855499267578125, 0.022735595703125, -0.019805908203125, -0.0369873046875, 0.0265350341796875, 0.039337158203125, 0.039642333984375, -0.06817626953125, 0.0977783203125, -0.0369873046875, -0.006015777587890625, 0.07080078125, 0.0294647216796875, 0.02984619140625, 0.016387939453125, -0.0184783935546875, 0.0144500732421875, 0.0281829833984375, 0.01629638671875, 0.0177764892578125, -0.0160980224609375, -0.02581787109375, -0.032928466796875, 0.015838623046875, -0.017486572265625, 0.0224151611328125, -0.026641845703125, -0.003143310546875, 0.01025390625, 0.028289794921875, -0.0018758773803710938, 0.0126953125, 0.0010118484497070312, -0.0290069580078125, 0.01287078857421875, 0.00982666015625, -0.04302978515625, 0.0272979736328125, 0.07763671875, 0.01184844970703125, 0.0113677978515625, -0.01617431640625, 0.031768798828125, -0.0007877349853515625, -0.0155792236328125, -0.01161956787109375, 0.03375244140625, -0.01377105712890625, -0.01953125, -0.015899658203125, 0.0153961181640625, 0.0017986297607421875, 0.0009069442749023438, 0.01953125, 0.01554107666015625, -0.012451171875, -0.00994110107421875, -0.01181793212890625, 0.0263214111328125, 0.0225982666015625, 0.0295562744140625, 0.009735107421875, 0.0733642578125, -0.0272674560546875, -0.0224456787109375, -0.015777587890625, 0.006439208984375, 0.008056640625, -0.00508880615234375, -0.0081024169921875, -0.0227203369140625, -0.0250091552734375, 0.00975799560546875, 0.008941650390625, 0.01024627685546875, 0.056427001953125, -0.01448822021484375, -0.012969970703125, -0.03289794921875, 0.0130767822265625, -0.005725860595703125, 0.0018463134765625, -0.0059967041015625, 0.00579833984375, 0.0217437744140625, 0.03851318359375, -0.003482818603515625, -0.038360595703125, 0.04522705078125, -0.004299163818359375, -0.062225341796875, 0.08734130859375, 0.003330230712890625, 0.08013916015625, -0.0160980224609375, 0.004467010498046875, 0.005550384521484375, 0.037139892578125, 0.007091522216796875, 0.0080108642578125, -0.037384033203125, -0.052947998046875, 0.004001617431640625, -0.0060272216796875, -0.03515625, 0.04217529296875, 0.046051025390625, 0.030426025390625, 0.0097198486328125, 0.00368499755859375, -0.031402587890625, 0.0369873046875, -0.01340484619140625, 0.039520263671875, 0.02362060546875, 0.012298583984375, 0.00029921531677246094, 0.02874755859375, -0.01122283935546875, -0.0953369140625, -0.049072265625, 0.031707763671875, -0.006702423095703125, 0.0015363693237304688, -0.006938934326171875, 0.00446319580078125, -0.00787353515625, 0.0001550912857055664, -0.027069091796875, 0.00023424625396728516, 0.02789306640625, -0.0097503662109375, -0.0092010498046875, -0.03399658203125, 0.0098724365234375, 0.006435394287109375, -0.0294189453125, 0.030303955078125, 0.055816650390625, 0.058013916015625, -0.007717132568359375, -0.01218414306640625, 0.015869140625, -0.08514404296875, 0.0030460357666015625, 0.05059814453125, 0.0267486572265625, 0.02587890625, -0.01195526123046875, -0.006866455078125, -0.0141754150390625, -0.05706787109375, 0.01031494140625, -0.0117034912109375, 0.01543426513671875, 0.0166778564453125, -0.0263214111328125, -0.042938232421875, 0.0172882080078125, -0.060882568359375, -0.00977325439453125, 0.0296630859375, -0.006893157958984375, -0.004596710205078125, 0.0021953582763671875, -0.01409912109375, 0.01105499267578125, 0.0150299072265625, -0.0301513671875, 0.009063720703125, 0.0223846435546875, 0.0119781494140625, 0.031097412109375, 0.042022705078125, -0.01047515869140625, -0.00530242919921875, 0.0040740966796875, 0.0184783935546875, -0.01617431640625, 0.02325439453125, 0.04998779296875, -0.019073486328125, -0.021331787109375, -0.016204833984375, 0.019317626953125, 0.0074005126953125, -0.045684814453125, -0.0025463104248046875, -0.0211181640625, -0.0142822265625, -0.0223388671875, -0.08721923828125, 0.0240631103515625, 0.01409149169921875, 0.043304443359375, 0.055999755859375, 0.052490234375, -0.007099151611328125, -0.031219482421875, 0.051055908203125, -0.0021800994873046875, -0.009674072265625, 0.01387786865234375, -0.031494140625, 0.037078857421875, -0.0294342041015625, 0.03271484375, 0.047637939453125, -0.01219940185546875, -0.00820159912109375, -0.00360107421875, 0.0116119384765625, -0.003856658935546875, 0.00197601318359375, -0.0175323486328125, -0.00624847412109375, -0.05865478515625, -0.017578125, 0.042938232421875, 0.052001953125, 0.0169525146484375, -0.03424072265625, 0.0045928955078125, 0.056610107421875, -0.040771484375, -0.05908203125, 0.0256500244140625, -0.019683837890625, 0.022247314453125, -0.01073455810546875, -0.003421783447265625, -0.02215576171875, 0.0095672607421875, -0.0021381378173828125, -0.002674102783203125, -0.0343017578125, -0.07373046875, -0.07061767578125, -0.07855224609375, -0.00312042236328125, -0.01021575927734375, 0.004421234130859375, 0.0022335052490234375, 0.0105743408203125, -0.0065460205078125, -0.046478271484375, -0.01416015625, 0.06854248046875, 0.001445770263671875, -0.0411376953125, 0.022735595703125, -0.01334381103515625, -0.053741455078125, 0.0170745849609375, 0.0582275390625, 0.018341064453125, -0.0379638671875, 0.003108978271484375, -0.021087646484375, -0.035186767578125, -0.0195465087890625, 0.04248046875, 0.0139617919921875, -0.003856658935546875, 0.04339599609375, -0.050537109375, -0.0259857177734375, 0.013824462890625, -0.0377197265625, -0.00275421142578125, 0.00860595703125, -0.014556884765625, 0.0014352798461914062, 0.0090789794921875, 0.0193328857421875, -0.00994110107421875, 0.0243988037109375, -0.005275726318359375, 0.0149078369140625, -0.0191192626953125, -0.00048804283142089844, -0.0369873046875, 0.05462646484375, -0.01253509521484375, -0.0137939453125, 0.01288604736328125, -0.0173492431640625, -0.01104736328125, -0.023193359375, -0.021881103515625, -0.039306640625, 0.026702880859375, -0.05401611328125, 0.0083465576171875, -0.026092529296875, -0.007724761962890625, 0.004718780517578125, 0.058441162109375, -0.0258941650390625, -0.0024318695068359375, -0.004299163818359375, 0.027008056640625, -0.0679931640625, -0.06829833984375, -0.06787109375, 0.0024852752685546875, -0.0810546875, 0.0225677490234375, 0.018768310546875, -0.01922607421875, -0.0095062255859375, -0.0021820068359375, -0.050811767578125, -0.034576416015625, 0.033660888671875, -0.0399169921875, -0.0016260147094726562, -0.002437591552734375, -0.01593017578125, -0.03668212890625, -0.03936767578125, -0.0120849609375, 0.006397247314453125, -0.0104217529296875, -0.0239410400390625, 0.0193328857421875, 0.029144287109375, -0.03546142578125, 0.0237884521484375, 0.039794921875, -0.0108184814453125, 0.0262451171875, -0.0126953125, -0.0037841796875, 0.00022029876708984375, 0.00872802734375, -0.0004315376281738281, -0.005878448486328125, -0.01617431640625, -0.0188140869140625, -0.01214599609375, 0.04107666015625, -0.0015888214111328125, -0.00478363037109375, 0.0001817941665649414, -0.01401519775390625, -0.052215576171875, -0.022369384765625, -0.0191497802734375, 0.0259246826171875, 0.007556915283203125, -0.0255584716796875, -0.02862548828125, -0.07000732421875, 0.024627685546875, 0.007625579833984375, -0.004779815673828125, 0.006923675537109375, 0.0438232421875, 0.0118255615234375, -0.0303497314453125, -0.0292205810546875, 0.00533294677734375, 0.044158935546875, 0.00543212890625, 0.03424072265625, -0.00348663330078125, -0.03277587890625, 0.053985595703125, 0.0034542083740234375, 0.02191162109375, 0.019805908203125, 0.01200103759765625, -0.002857208251953125, -0.0200042724609375, 0.02459716796875, 0.03424072265625, -0.0455322265625, 0.035369873046875, -0.0107421875, 0.00189208984375, 0.0016183853149414062, 0.007129669189453125, -0.026763916015625, 0.0192718505859375, -0.00650787353515625, -0.0015363693237304688, 0.0111083984375, 0.017303466796875, 0.056427001953125, 0.02984619140625, 0.005252838134765625, 0.01436614990234375, 0.018585205078125, 0.0079193115234375, 0.036590576171875, 0.0209808349609375, -0.0035915374755859375, 0.0179290771484375, 0.0396728515625, -0.01372528076171875, 0.01082611083984375, -0.0019588470458984375, 0.050323486328125, -0.00426483154296875, -0.04150390625, -0.0501708984375, 0.00010395050048828125, -0.00762939453125, 0.01036834716796875, -0.021209716796875, 0.042633056640625, 0.004241943359375, -0.00783538818359375, -0.0261688232421875, -0.01837158203125, -0.06195068359375, -0.038421630859375, 0.042083740234375, 0.01435089111328125, 0.007640838623046875, -0.00518035888671875, 0.0806884765625, 0.032928466796875, 0.032379150390625, -0.0198974609375, 0.031158447265625, 0.0002460479736328125, 0.042022705078125, -0.0135345458984375, 0.004772186279296875, 0.0282135009765625, -0.00469207763671875, 0.0208892822265625, -0.01430511474609375, 0.01285552978515625, 0.03497314453125, 0.0262908935546875, -0.00826263427734375, -0.036468505859375, 0.004741668701171875, -0.033966064453125, -0.0174560546875, 0.03790283203125, 0.01300811767578125, -0.0214385986328125, -0.025634765625, -0.0231475830078125, 0.02923583984375, 0.01210784912109375, -0.01416778564453125, 0.00690460205078125, 0.00970458984375, 0.037567138671875, 0.0157470703125, -0.01380157470703125, 0.020263671875, 0.017486572265625, -0.038116455078125, -0.010040283203125, 0.01412200927734375, -0.0289306640625, -0.01271820068359375, -0.0258331298828125, -0.02252197265625, 0.048431396484375, -0.0191802978515625, 0.033905029296875, -0.0196380615234375, -0.0202484130859375, -0.00998687744140625, 0.0054779052734375, 0.048736572265625, 0.0242156982421875, -0.0216522216796875, -0.00363922119140625, -0.052215576171875, -0.0270538330078125, -0.005584716796875, -0.037322998046875, -0.03466796875, -0.000751495361328125, 0.0131072998046875, 0.03363037109375, -0.0277862548828125, -0.01552581787109375, 0.01320648193359375, 0.0089111328125, -0.0147552490234375, 0.031585693359375, 0.0087432861328125, 0.0289306640625, -0.0107574462890625, 0.04180908203125, 0.0098876953125, -0.0018463134765625, -0.01110076904296875, -0.0292816162109375, -0.031768798828125, -0.03338623046875, -0.0005888938903808594, 0.016632080078125, 0.0211029052734375, 0.049346923828125, 0.0428466796875, 0.019439697265625, 0.0027713775634765625, -0.004642486572265625, -0.0102386474609375, -0.0283203125, 0.05047607421875, 0.00888824462890625, 0.037811279296875, -0.02069091796875, -0.0031299591064453125, 0.0018072128295898438, -0.0033855438232421875, 0.0124969482421875, -0.007556915283203125, -0.01305389404296875, -0.003940582275390625, 0.0165863037109375, -0.046539306640625, 0.053314208984375, 0.1260986328125, 0.0175933837890625, 0.0751953125, 0.037353515625, 0.01971435546875, 0.0308990478515625, 0.062225341796875, -0.051025390625, -0.033660888671875, 0.058502197265625, 0.034820556640625, -0.04278564453125, 0.03143310546875, -0.0271148681640625, 0.005741119384765625, 0.05096435546875, 0.047698974609375, -0.09356689453125, 0.0249481201171875, 0.00983428955078125, 0.046051025390625, 0.0438232421875, 0.001018524169921875, 0.023101806640625, -0.0014743804931640625, 0.0299072265625, 0.0152587890625, 0.0112762451171875, 0.01038360595703125, -0.0038089752197265625, 0.0090179443359375, 0.004566192626953125, 0.053924560546875, -0.006298065185546875, -0.03759765625, -0.039794921875, 0.00597381591796875, -0.0174713134765625, -0.03607177734375, 0.0043182373046875, 0.0153656005859375, 0.00386810302734375, -0.0207977294921875, 0.06512451171875, 0.007663726806640625, 0.032012939453125, 0.01300048828125, 0.00534820556640625, 0.045684814453125, 0.034027099609375, -0.003173828125, 0.018890380859375, 0.01056671142578125, 0.0265350341796875, 0.039581298828125, 0.002422332763671875, 0.0190277099609375, -0.004024505615234375, -0.051025390625, 0.00019073486328125, -0.025604248046875, -0.002246856689453125, -0.0201263427734375, -0.005558013916015625, 0.126953125, -0.0157470703125, -0.0295257568359375, 0.034332275390625, 0.0179443359375, -0.036407470703125, -0.022552490234375, -0.0177764892578125, -0.04193115234375, 0.005290985107421875, -0.01434326171875, -0.0016021728515625, 0.038909912109375, -0.01824951171875, -0.04541015625, 0.09625244140625, -0.056732177734375, 0.0167236328125, 0.00440216064453125, 0.061370849609375, 0.0027008056640625, 0.0390625, 0.0020351409912109375, 0.048980712890625, 0.005123138427734375, 0.0075225830078125, -0.01507568359375, -0.00400543212890625, 0.0164794921875, 0.0250396728515625, 0.0144195556640625, 0.01065826416015625, -0.0035076141357421875, -0.0022754669189453125, 0.0179901123046875, 0.030792236328125, -0.01129913330078125, 0.01396942138671875, 0.01390838623046875, 0.005451202392578125, 0.061065673828125, -0.018402099609375, 0.0345458984375, -0.01409149169921875, 0.032073974609375, 0.03607177734375, 0.025299072265625, 0.01543426513671875, 0.045440673828125, 0.0018949508666992188, -0.0643310546875, 0.029571533203125, 0.046417236328125, -0.01465606689453125, -0.0037689208984375, 0.0245208740234375, 0.0234222412109375, -0.01654052734375, -0.002742767333984375, -0.01399993896484375, 0.04608154296875, 0.00260162353515625, 0.000766754150390625, 0.0086822509765625, 0.0200347900390625, -0.00795745849609375, -0.039794921875, -0.0063018798828125, 0.021270751953125, -0.041412353515625, 0.0650634765625, 0.041351318359375, 0.030120849609375, -0.07147216796875, -0.07763671875, 0.0523681640625, 0.0960693359375, -0.0257415771484375, -0.0634765625, -0.0034160614013671875, -0.016448974609375, 0.0361328125, 0.04052734375, 0.073974609375, 0.0205841064453125, -0.00478363037109375, -0.0270538330078125, -0.0013427734375, 0.025390625, 0.0369873046875, 0.0016345977783203125, -0.023468017578125, -0.036529541015625, -0.01491546630859375, -0.031097412109375, -0.0025730133056640625, -0.01029205322265625, 0.031219482421875, 0.0265655517578125, 0.026153564453125, -0.01148223876953125, -0.01070404052734375, 0.00626373291015625, 0.05572509765625, -0.01364898681640625, -0.0059661865234375, 0.007022857666015625, -0.049163818359375, -0.00753021240234375, 0.017913818359375, 0.0031681060791015625, 0.055755615234375, 0.04296875, 0.0211181640625, 0.0243988037109375, 0.003993988037109375, -0.0083465576171875, -0.021820068359375, 0.019989013671875, -0.0274810791015625, 0.01462554931640625, -0.00958251953125, -0.017547607421875, -0.006305694580078125, 0.0213165283203125, 0.0086212158203125, -0.0491943359375, 0.06793212890625, -0.0352783203125, -0.0130462646484375, 0.053680419921875, -0.07952880859375, 0.07421875, -0.053863525390625, -0.0682373046875, -0.0171661376953125, -0.0169525146484375, -0.023773193359375, -0.0024585723876953125, 0.030792236328125, -0.01641845703125, 0.0228271484375, -0.0225982666015625, 0.01049041748046875, 0.03619384765625, -0.05267333984375, 0.00852203369140625, 0.016876220703125, 0.010223388671875, 0.002414703369140625, -0.0215911865234375, -0.0188446044921875, 0.002376556396484375, 0.0301055908203125, 0.0006489753723144531, 0.09283447265625, -0.0350341796875, -0.003795623779296875, 0.0208740234375, -0.004352569580078125, -0.0017938613891601562, 0.002246856689453125, 0.003543853759765625, -0.0226287841796875, 0.02362060546875, -0.0007920265197753906, -0.05517578125, -0.014923095703125, 0.03472900390625, -0.049560546875, -0.0006685256958007812, -0.020416259765625, 0.0279388427734375, -0.019500732421875, 0.03436279296875, -0.01837158203125, -0.07452392578125, -0.0706787109375, 0.02642822265625, 0.00809478759765625, 0.05181884765625, -0.0447998046875, 0.0293731689453125, -0.031097412109375, -0.0209197998046875, 0.0246124267578125, -0.061309814453125, 0.0230560302734375, 0.023895263671875, -0.016021728515625, -0.04095458984375, 0.004486083984375, -0.0242156982421875, 0.028778076171875, -0.013763427734375, 0.07598876953125, 0.017181396484375, -0.0340576171875, -0.016510009765625, 0.0004088878631591797, 0.03515625, -0.0181732177734375, 0.0246429443359375, 0.006534576416015625, 0.018035888671875, -0.007762908935546875, -0.02093505859375, -0.010955810546875, 0.0079345703125, -0.01186370849609375, 0.0200958251953125, 0.00737762451171875, -0.03240966796875, -0.04388427734375, 0.0025615692138671875, 0.01039886474609375, 0.0010061264038085938, -0.047088623046875, 0.01468658447265625, 0.0026111602783203125, 0.03826904296875, -0.032562255859375, 0.0204925537109375, -0.0207061767578125, 0.01751708984375, -0.01100921630859375, -0.036468505859375, -0.0232086181640625, 0.05645751953125, -0.0169677734375, 0.0124053955078125, 0.0443115234375, -0.0189971923828125, -0.043731689453125, 0.023681640625, -0.007755279541015625, 0.074462890625, -0.021759033203125, -0.01517486572265625, 0.0018281936645507812, 0.0190582275390625, -0.022216796875, -0.0645751953125, 0.01235198974609375, -0.037445068359375, -0.0118408203125, -0.0110321044921875, -0.02606201171875, -0.0108642578125, -0.056976318359375, -0.10125732421875, 0.03790283203125, -0.0123291015625, -0.04754638671875, -0.0355224609375, 0.005603790283203125, 0.00997161865234375, -0.0020198822021484375, -0.0297088623046875, 0.00004661083221435547, -0.0352783203125, 0.0248260498046875, 0.02197265625, -0.006244659423828125, 0.0282745361328125, 0.02020263671875, -0.027923583984375, 0.024749755859375, 0.0264892578125, 0.01428985595703125, -0.005863189697265625, 0.0037288665771484375, 0.041412353515625, 0.061187744140625, -0.00177001953125, 0.057647705078125, -0.0009431838989257812, -0.0269622802734375, -0.01824951171875, -0.05181884765625, 0.032684326171875, 0.0116119384765625, 0.025726318359375, 0.01354217529296875, -0.004848480224609375, -0.036163330078125, -0.031982421875, -0.035186767578125, 0.0167388916015625, -0.0166473388671875, 0.010467529296875, -0.0780029296875, -0.00864410400390625, 0.0229034423828125, -0.0164337158203125, 0.00457763671875, -0.004852294921875, -0.016693115234375, 0.0141143798828125, 0.0228729248046875, -0.0004673004150390625, 0.00450897216796875, -0.02545166015625, 0.076171875, -0.03948974609375, 0.006282806396484375, 0.004497528076171875, 0.031219482421875, 0.0382080078125, -0.01435089111328125, 0.0560302734375, 0.05914306640625, -0.040740966796875, 0.010711669921875, 0.034210205078125, 0.02880859375, -0.03424072265625, -0.042266845703125, -0.01580810546875, 0.043426513671875, -0.0092010498046875, 0.038238525390625, 0.0015649795532226562, 0.047637939453125, 0.0171356201171875, 0.04791259765625, -0.01837158203125, 0.014251708984375, -0.01812744140625, 0.02685546875, -0.03515625, 0.0120697021484375, -0.0001367330551147461, -0.03759765625, 0.011810302734375, 0.0262298583984375, -0.019927978515625, 0.022552490234375, -0.0208740234375, -0.03326416015625, -0.01422119140625, -0.0164642333984375 ]
35fe4210d0d55450cfb52c942a9a1f8aac5f2279
Wordpress Stackexchange Q: How important is it to enqueue a theme's stylesheet? I have trawled the net looking for an answer to this, but for some reason all I can find are actual examples, but without that particular explanation, which is clear say in the case of scripts. Can someone explain to me why it's important/advantageous to enqueue styles when developing a theme, rather than just using <link rel=stylesheet> in header.php. Also, what about the theme's default stylesheet, should that be enqueued too? A: Another reason for enqueuing is that it lets plugins do things with the styles. For instance, Better WordPress Minify will automatically and concatenate CSS files, and WP-LESS will compile your LESS files and cache them on the fly. They both do this by hooking into the styles queue and processing the files lined up there. There may be specific reasons why you need certain styles to be excluded from things like this, but generally it's good to make your styles available to such useful functionality.
Q: How important is it to enqueue a theme's stylesheet? I have trawled the net looking for an answer to this, but for some reason all I can find are actual examples, but without that particular explanation, which is clear say in the case of scripts. Can someone explain to me why it's important/advantageous to enqueue styles when developing a theme, rather than just using <link rel=stylesheet> in header.php. Also, what about the theme's default stylesheet, should that be enqueued too? A: Another reason for enqueuing is that it lets plugins do things with the styles. For instance, Better WordPress Minify will automatically and concatenate CSS files, and WP-LESS will compile your LESS files and cache them on the fly. They both do this by hooking into the styles queue and processing the files lined up there. There may be specific reasons why you need certain styles to be excluded from things like this, but generally it's good to make your styles available to such useful functionality. A: It's important to enqueue the stylesheet because it will allow child themes the flexibility of dequeueing it as well as allowing it to be listed for dependencies and a multitude of other things. It just generally allows greater flexibility, both for you and for any other developers who interact with your code. It's also important to note that using the default stylesheet in your theme is not a requirement. The stylesheet must be PRESENT, but if you use it for nothing more than to name your theme, set the version, etc, wordpress is COMPLETELY fine with that, as are the people who approve themes for the main repository. A: As an addition to the other answer by @m0r7if3r: You can use current_theme_supports() to only load the parent themes stylesheet if there's theme support. function add_supported_stylesheets() { if ( current_theme_supports( 'parent-stylesheet' ) ) wp_enqueue_style( 'main', get_stylesheet_directory_uri().'/style.css', array(), filemtime( get_stylesheet_directory().'/style.css' ); } // In your parent themes bootstrap in the functions.php file // Add the theme support: add_theme_support( 'parent-stylesheet' ); // Then add the stylesheet: add_action( 'after_setup_theme', 'add_supported_stylesheets', 20 ); Note, that this function adds filemtime on the version-nr. to prevent browser caching if the files contents were changed. This will allow your users to disable the stylesheet in the child themes bootstrap with a simple single fn call: remove_theme_support( 'parent-stylesheet' ); // ...or... add_theme_support( 'parent-stylesheet' );
wordpress
{ "language": "en", "length": 393, "provenance": "stackexchange_00019.jsonl.gz:417838", "question_score": "20", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44821" }
[ -0.0113067626953125, -0.0128173828125, -0.035797119140625, -0.03057861328125, -0.0191802978515625, -0.03509521484375, -0.005832672119140625, 0.0177154541015625, -0.031707763671875, 0.022613525390625, -0.0233154296875, 0.0204620361328125, -0.02197265625, -0.0013036727905273438, 0.0131072998046875, -0.0297393798828125, 0.030731201171875, -0.0122222900390625, 0.0064544677734375, 0.0052032470703125, -0.00165557861328125, 0.0268707275390625, -0.0049285888671875, 0.040191650390625, 0.03155517578125, -0.05291748046875, 0.05712890625, -0.0098419189453125, 0.0271759033203125, -0.009307861328125, 0.0254974365234375, -0.025390625, 0.02044677734375, 0.0175018310546875, -0.00799560546875, -0.0013074874877929688, -0.00940704345703125, 0.0034847259521484375, 0.0154571533203125, 0.006259918212890625, 0.0223388671875, -0.005466461181640625, 0.0443115234375, 0.0215606689453125, -0.01490020751953125, -0.01212310791015625, -0.0081024169921875, -0.0309906005859375, -0.031005859375, -0.0240020751953125, 0.029998779296875, 0.02008056640625, 0.056304931640625, -0.0216064453125, -0.005214691162109375, 0.0033245086669921875, -0.00835418701171875, -0.031158447265625, 0.0295562744140625, -0.024200439453125, -0.01300811767578125, -0.016571044921875, 0.03643798828125, 0.01163482666015625, -0.01216888427734375, -0.00521087646484375, -0.04168701171875, 0.01445770263671875, -0.05450439453125, -0.00881195068359375, 0.050018310546875, -0.04327392578125, 0.01190948486328125, -0.026824951171875, -0.0064544677734375, 0.0179595947265625, -0.0001577138900756836, 0.01485443115234375, 0.035369873046875, -0.00958251953125, -0.029205322265625, -0.021759033203125, -0.0452880859375, -0.07952880859375, 0.03887939453125, -0.050537109375, -0.01126861572265625, 0.02410888671875, -0.0185546875, -0.050048828125, -0.0242156982421875, 0.0037021636962890625, -0.031829833984375, -0.0232086181640625, -0.0179290771484375, -0.0197296142578125, 0.032257080078125, 0.05169677734375, 0.0175933837890625, 0.042266845703125, 0.013641357421875, -0.06695556640625, 0.07208251953125, -0.04522705078125, -0.007488250732421875, 0.0295562744140625, -0.01178741455078125, 0.0188140869140625, 0.03125, 0.0304107666015625, 0.007038116455078125, -0.0148468017578125, 0.00180816650390625, -0.037261962890625, 0.00394439697265625, 0.021728515625, -0.00839996337890625, 0.02056884765625, 0.0072021484375, 0.01372528076171875, 0.027923583984375, 0.038482666015625, -0.0171356201171875, -0.03973388671875, -0.035400390625, -0.053863525390625, -0.01410675048828125, -0.0248870849609375, 0.032073974609375, 0.04315185546875, -0.028472900390625, -0.020721435546875, 0.02862548828125, 0.0101318359375, 0.0010862350463867188, -0.03326416015625, 0.035797119140625, -0.022186279296875, -0.01477813720703125, 0.00911712646484375, -0.0142059326171875, -0.031768798828125, -0.006206512451171875, -0.0298614501953125, -0.003070831298828125, 0.0159149169921875, 0.02197265625, 0.022125244140625, -0.0078277587890625, -0.0372314453125, 0.0244903564453125, -0.04095458984375, 0.0166778564453125, 0.0108642578125, -0.01129150390625, -0.00695037841796875, -0.0179901123046875, 0.00461578369140625, -0.006481170654296875, -0.01360321044921875, -0.061553955078125, 0.0176544189453125, 0.05108642578125, -0.006427764892578125, 0.01428985595703125, -0.01507568359375, 0.0285797119140625, 0.016021728515625, 0.016326904296875, -0.0457763671875, -0.005084991455078125, -0.057525634765625, 0.01123046875, -0.00537109375, -0.0007548332214355469, 0.054046630859375, 0.055267333984375, -0.01551055908203125, 0.022796630859375, 0.035614013671875, -0.01971435546875, -0.0185394287109375, 0.0648193359375, -0.05419921875, -0.035400390625, 0.00021278858184814453, 0.012298583984375, 0.053741455078125, 0.016204833984375, 0.0302276611328125, 0.026824951171875, -0.01513671875, -0.0250701904296875, -0.00864410400390625, 0.033294677734375, -0.017791748046875, 0.00855255126953125, -0.0068206787109375, 0.0248260498046875, -0.0260009765625, 0.033355712890625, 0.0059661865234375, 0.0172271728515625, -0.023681640625, -0.03680419921875, 0.0024738311767578125, -0.01250457763671875, 0.0258026123046875, -0.0012569427490234375, 0.002056121826171875, -0.01197052001953125, -0.017547607421875, 0.0240325927734375, -0.0670166015625, -0.035552978515625, 0.04498291015625, 0.004852294921875, 0.01385498046875, 0.00945281982421875, -0.01410675048828125, 0.052154541015625, -0.01739501953125, 0.032012939453125, 0.03448486328125, -0.0184478759765625, 0.0068206787109375, -0.01470184326171875, 0.01126861572265625, -0.036224365234375, 0.023834228515625, 0.007198333740234375, 0.003772735595703125, 0.0677490234375, 0.10174560546875, 0.0035419464111328125, -0.01451873779296875, -0.01318359375, -0.065673828125, 0.0117950439453125, 0.047393798828125, 0.032958984375, 0.03851318359375, -0.02154541015625, -0.0279693603515625, 0.06622314453125, 0.0088653564453125, 0.0208587646484375, -0.02032470703125, 0.004425048828125, 0.007045745849609375, 0.033172607421875, -0.03607177734375, 0.02813720703125, -0.09259033203125, 0.006061553955078125, 0.027252197265625, -0.0171661376953125, 0.01244354248046875, -0.034881591796875, 0.013031005859375, -0.002750396728515625, 0.000453948974609375, -0.00006777048110961914, -0.01047515869140625, 0.042236328125, -0.027191162109375, -0.00580596923828125, -0.036865234375, -0.01076507568359375, 0.01751708984375, 0.017852783203125, -0.0904541015625, 0.0127716064453125, 0.047576904296875, -0.0211639404296875, 0.006439208984375, -0.0190887451171875, -0.01218414306640625, 0.01271820068359375, 0.01425933837890625, 0.00237274169921875, 0.01468658447265625, -0.028076171875, -0.0140838623046875, 0.0082550048828125, -0.047088623046875, 0.0064544677734375, 0.0262451171875, 0.0224151611328125, -0.0006918907165527344, 0.0303955078125, 0.0076904296875, -0.007450103759765625, -0.00634002685546875, 0.033447265625, -0.034423828125, 0.01218414306640625, 0.021484375, 0.00270843505859375, 0.004817962646484375, -0.0107421875, 0.034637451171875, -0.0158538818359375, 0.002094268798828125, 0.0163116455078125, 0.008514404296875, 0.0350341796875, -0.00701141357421875, -0.00417327880859375, 0.038848876953125, -0.08740234375, 0.00447845458984375, 0.05072021484375, 0.050750732421875, 0.02288818359375, -0.012481689453125, 0.002208709716796875, 0.0614013671875, -0.021026611328125, -0.059326171875, -0.07891845703125, -0.03857421875, 0.02301025390625, -0.036651611328125, 0.00809478759765625, 0.01548004150390625, -0.05157470703125, 0.0347900390625, -0.029388427734375, -0.036376953125, -0.03253173828125, -0.09991455078125, -0.06951904296875, -0.013092041015625, 0.0092315673828125, 0.025482177734375, 0.005336761474609375, 0.07666015625, 0.00872802734375, -0.041778564453125, -0.002750396728515625, -0.0164642333984375, -0.0251007080078125, 0.0018205642700195312, 0.0439453125, -0.037384033203125, -0.037811279296875, 0.0187530517578125, -0.02972412109375, -0.00319671630859375, -0.01064300537109375, -0.0206756591796875, -0.04510498046875, -0.0272979736328125, -0.014923095703125, 0.032989501953125, 0.04248046875, -0.018798828125, 0.01346588134765625, -0.053192138671875, -0.0660400390625, 0.0078582763671875, -0.0616455078125, 0.025665283203125, 0.04913330078125, -0.0088958740234375, -0.01245880126953125, 0.01453399658203125, -0.0013141632080078125, -0.0209808349609375, -0.0249481201171875, -0.0279083251953125, 0.1014404296875, 0.005664825439453125, 0.01490020751953125, -0.0142669677734375, 0.0213775634765625, -0.035003662109375, 0.008087158203125, 0.004444122314453125, -0.0286102294921875, -0.01556396484375, 0.007770538330078125, -0.01001739501953125, -0.038360595703125, 0.0194244384765625, -0.0214385986328125, 0.03472900390625, -0.028533935546875, -0.00704193115234375, 0.0059661865234375, 0.0948486328125, -0.050201416015625, -0.012847900390625, 0.0092620849609375, 0.01209259033203125, -0.0226898193359375, -0.035064697265625, -0.033294677734375, -0.01262664794921875, -0.043609619140625, 0.01947021484375, -0.0077362060546875, -0.0180206298828125, -0.04400634765625, 0.007965087890625, -0.0606689453125, -0.0228118896484375, 0.01418304443359375, 0.0143585205078125, -0.0006470680236816406, -0.0071258544921875, -0.021270751953125, 0.002445220947265625, 0.016143798828125, -0.031890869140625, -0.043212890625, -0.0169525146484375, -0.00873565673828125, 0.0550537109375, 0.004283905029296875, 0.03143310546875, -0.002689361572265625, 0.044158935546875, -0.0261383056640625, 0.034759521484375, -0.0023212432861328125, 0.02496337890625, -0.01166534423828125, 0.0109405517578125, 0.005779266357421875, -0.014678955078125, 0.006198883056640625, 0.04327392578125, -0.062103271484375, 0.0269317626953125, 0.00614166259765625, -0.053863525390625, 0.08197021484375, -0.0689697265625, -0.044464111328125, -0.01023101806640625, 0.0266265869140625, -0.0233917236328125, 0.0167999267578125, -0.01605224609375, -0.00295257568359375, 0.0010442733764648438, 0.04888916015625, 0.0384521484375, 0.0234375, -0.00690460205078125, 0.055572509765625, 0.018951416015625, -0.046112060546875, -0.0308074951171875, 0.02337646484375, 0.047882080078125, 0.0333251953125, 0.0114898681640625, -0.01201629638671875, -0.0450439453125, 0.049835205078125, 0.04180908203125, -0.00598907470703125, 0.007030487060546875, 0.040985107421875, -0.011444091796875, -0.038482666015625, 0.0116729736328125, -0.031890869140625, -0.0002149343490600586, 0.0391845703125, 0.00672149658203125, -0.021331787109375, 0.0154266357421875, 0.0111083984375, 0.00785064697265625, -0.037261962890625, -0.032379150390625, 0.0004458427429199219, -0.01727294921875, 0.025604248046875, 0.044647216796875, 0.0333251953125, -0.01335906982421875, 0.0149383544921875, 0.04779052734375, 0.01320648193359375, 0.01812744140625, 0.006259918212890625, -0.032928466796875, 0.01611328125, 0.049285888671875, -0.00787353515625, 0.007778167724609375, -0.01025390625, 0.051544189453125, -0.012664794921875, -0.057403564453125, -0.0302276611328125, 0.0121612548828125, 0.050384521484375, 0.03436279296875, -0.0064544677734375, 0.05181884765625, -0.01503753662109375, -0.018768310546875, -0.0224151611328125, -0.07232666015625, -0.0195465087890625, -0.054962158203125, -0.00044536590576171875, -0.0193634033203125, -0.0206298828125, 0.0419921875, -0.0211944580078125, -0.036346435546875, 0.0156402587890625, 0.0008234977722167969, -0.003017425537109375, -0.032867431640625, 0.0308990478515625, 0.004634857177734375, 0.020965576171875, 0.041107177734375, -0.006988525390625, 0.0687255859375, -0.0460205078125, -0.0030670166015625, 0.007171630859375, 0.040496826171875, -0.043304443359375, -0.038665771484375, 0.058502197265625, -0.0106353759765625, -0.024993896484375, 0.0330810546875, 0.0193634033203125, -0.0285797119140625, -0.0291900634765625, -0.0535888671875, 0.0098724365234375, 0.01219940185546875, 0.004749298095703125, -0.0107421875, 0.0236053466796875, 0.039825439453125, -0.004993438720703125, -0.00719451904296875, 0.02447509765625, 0.00348663330078125, -0.038787841796875, 0.004375457763671875, 0.0194091796875, -0.046142578125, -0.058624267578125, -0.00641632080078125, -0.005229949951171875, 0.0268402099609375, -0.02264404296875, 0.01666259765625, -0.0030498504638671875, -0.0167999267578125, 0.0019779205322265625, 0.03643798828125, -0.01204681396484375, -0.01824951171875, -0.01467132568359375, 0.00695037841796875, -0.0665283203125, 0.0005040168762207031, -0.05419921875, -0.0595703125, -0.0184173583984375, -0.0103302001953125, -0.005046844482421875, 0.0057220458984375, -0.0205078125, -0.039947509765625, -0.04913330078125, 0.03765869140625, 0.047393798828125, 0.03076171875, -0.041290283203125, 0.053070068359375, 0.035247802734375, -0.0233154296875, 0.006710052490234375, 0.0416259765625, 0.017181396484375, -0.0031299591064453125, 0.00330352783203125, -0.0189971923828125, 0.007503509521484375, -0.0246124267578125, 0.025054931640625, -0.0027141571044921875, 0.039459228515625, -0.0010576248168945312, 0.032440185546875, -0.01141357421875, 0.01137542724609375, -0.0195159912109375, -0.0011615753173828125, -0.0419921875, -0.005741119384765625, 0.022430419921875, 0.00957489013671875, 0.035980224609375, -0.041290283203125, -0.041412353515625, 0.0287017822265625, 0.0010833740234375, 0.03961181640625, -0.0107421875, -0.050201416015625, 0.05987548828125, 0.0523681640625, 0.00496673583984375, 0.009246826171875, 0.005374908447265625, -0.007137298583984375, -0.020111083984375, 0.0009226799011230469, -0.04376220703125, -0.0141448974609375, 0.032440185546875, -0.0051116943359375, -0.01142120361328125, 0.0198822021484375, -0.0202789306640625, 0.0099334716796875, 0.0364990234375, 0.055572509765625, -0.05419921875, 0.004848480224609375, 0.0035495758056640625, -0.0116424560546875, 0.0232696533203125, -0.01358795166015625, 0.0221710205078125, -0.006175994873046875, 0.07611083984375, -0.0060272216796875, 0.00043392181396484375, 0.03509521484375, -0.05078125, -0.01995849609375, -0.03662109375, -0.0167083740234375, 0.01416778564453125, -0.0361328125, 0.032806396484375, 0.0278167724609375, -0.003803253173828125, -0.00948333740234375, -0.002468109130859375, -0.0112152099609375, -0.036834716796875, -0.0251922607421875, -0.0040130615234375, -0.0231781005859375, -0.00370025634765625, -0.0103759765625, -0.01508331298828125, 0.0187225341796875, 0.0276031494140625, -0.0238800048828125, 0.01033782958984375, -0.00907135009765625, 0.035675048828125, -0.0140228271484375, -0.021392822265625, 0.04058837890625, 0.0142059326171875, -0.03839111328125, 0.02716064453125, -0.0144500732421875, -0.037567138671875, -0.0173187255859375, 0.00585174560546875, 0.0787353515625, -0.039459228515625, -0.0006246566772460938, -0.005451202392578125, 0.06451416015625, 0.0300140380859375, -0.03912353515625, 0.043121337890625, -0.055999755859375, -0.0080718994140625, -0.00954437255859375, 0.002960205078125, -0.0214080810546875, -0.06072998046875, -0.04522705078125, 0.061370849609375, -0.0179901123046875, 0.019073486328125, 0.01029205322265625, 0.03265380859375, -0.0122833251953125, 0.0095062255859375, 0.006778717041015625, 0.0149688720703125, 0.0114593505859375, -0.005306243896484375, -0.00331878662109375, -0.0035076141357421875, 0.0010986328125, 0.0498046875, 0.03167724609375, 0.001308441162109375, 0.0007982254028320312, 0.01383209228515625, 0.0875244140625, 0.0462646484375, 0.0114288330078125, 0.0011129379272460938, -0.01410675048828125, -0.01084136962890625, -0.0391845703125, -0.01702880859375, 0.005840301513671875, -0.03204345703125, -0.054412841796875, 0.017822265625, -0.020721435546875, -0.0269927978515625, 0.0244903564453125, -0.004299163818359375, -0.07122802734375, 0.0196075439453125, 0.0328369140625, -0.00649261474609375, -0.020111083984375, 0.041015625, 0.00920867919921875, -0.0226287841796875, -0.039642333984375, -0.0177459716796875, 0.031280517578125, -0.01116180419921875, 0.0246429443359375, 0.017364501953125, 0.00018930435180664062, 0.0701904296875, -0.01439666748046875, -0.0035953521728515625, 0.0167236328125, -0.0120086669921875, 0.0090484619140625, -0.0012960433959960938, 0.0304718017578125, -0.039794921875, -0.0465087890625, -0.00934600830078125, 0.00846099853515625, -0.0034236907958984375, 0.00705718994140625, 0.023895263671875, 0.022369384765625, -0.0015268325805664062, -0.044189453125, 0.006679534912109375, -0.07525634765625, -0.050018310546875, 0.00638580322265625, -0.0008535385131835938, 0.0147247314453125, -0.043487548828125, -0.005001068115234375, 0.005496978759765625, 0.03515625, 0.05511474609375, -0.0270538330078125, 0.02880859375, -0.0009031295776367188, 0.0004906654357910156, 0.01450347900390625, -0.003662109375, 0.0222015380859375, 0.0051422119140625, -0.046142578125, 0.03863525390625, 0.019561767578125, 0.04541015625, -0.0244598388671875, 0.028289794921875, 0.0009074211120605469, 0.041259765625, 0.005306243896484375, -0.035736083984375, 0.053497314453125, 0.0208740234375, -0.07965087890625, -0.0270843505859375, -0.0298309326171875, -0.03533935546875, 0.03265380859375, -0.0095672607421875, 0.036285400390625, 0.0452880859375, -0.015167236328125, -0.01471710205078125, -0.006977081298828125, 0.10345458984375, -0.043212890625, -0.0015964508056640625, -0.00353240966796875, -0.048736572265625, 0.01371002197265625, -0.0312042236328125, 0.0126190185546875, -0.0254058837890625, -0.01560211181640625, -0.0226593017578125, 0.040313720703125, 0.043548583984375, -0.034454345703125, 0.0009608268737792969, 0.008880615234375, 0.042724609375, 0.023162841796875, -0.03302001953125, -0.0060882568359375, 0.029296875, 0.0007648468017578125, 0.0168609619140625, 0.0268402099609375, 0.0075225830078125, -0.0784912109375, -0.057037353515625, -0.035125732421875, 0.056884765625, -0.004276275634765625, 0.043609619140625, -0.01206207275390625, 0.00795745849609375, 0.06488037109375, -0.040679931640625, 0.052520751953125, 0.0297088623046875, 0.02386474609375, -0.035247802734375, 0.0091400146484375, -0.014404296875, -0.04144287109375, -0.008544921875, 0.015533447265625, -0.025054931640625, -0.026611328125, -0.01197052001953125, 0.03814697265625, 0.0180206298828125, -0.0234527587890625, -0.051910400390625, -0.03411865234375, -0.0182952880859375, 0.01430511474609375, -0.0212860107421875, -0.0570068359375, -0.0028896331787109375, -0.01264190673828125, 0.01238250732421875, -0.0716552734375, 0.0258026123046875, -0.01611328125, 0.0221099853515625, 0.02215576171875, 0.057342529296875, -0.0304412841796875, 0.01708984375, -0.01448822021484375, 0.0133056640625, -0.0023860931396484375, 0.0555419921875, -0.006763458251953125, -0.02545166015625, 0.00891876220703125, 0.059661865234375, 0.07708740234375, 0.026947021484375, 0.0217132568359375, 0.01131439208984375, -0.030426025390625, -0.01953125, -0.0287933349609375, -0.02667236328125, -0.03753662109375, -0.002567291259765625, 0.0257110595703125, -0.0281982421875, -0.0411376953125, -0.0711669921875, 0.022369384765625, 0.0292205810546875, 0.0036487579345703125, -0.049072265625, 0.031494140625, -0.03033447265625, 0.03143310546875, 0.003997802734375, 0.010589599609375, 0.01264190673828125, 0.040740966796875, -0.043060302734375, -0.031890869140625, -0.0193939208984375, 0.01485443115234375, -0.041595458984375, 0.0232086181640625, 0.032073974609375, -0.02960205078125, 0.056793212890625, 0.00376129150390625, 0.018096923828125, 0.0682373046875, -0.004497528076171875, -0.005615234375, 0.034454345703125, 0.0011577606201171875, -0.0323486328125, -0.0750732421875, -0.0031795501708984375, -0.0171966552734375, 0.0070648193359375, -0.02606201171875, -0.007503509521484375, 0.017608642578125, -0.039703369140625, -0.0650634765625, 0.0875244140625, -0.0197601318359375, -0.0236968994140625, -0.026397705078125, -0.02313232421875, -0.01678466796875, -0.00579071044921875, -0.0147857666015625, -0.021759033203125, -0.02703857421875, 0.0413818359375, 0.020721435546875, 0.0120849609375, 0.050262451171875, 0.00678253173828125, -0.0616455078125, -0.0117340087890625, -0.0255584716796875, 0.0131988525390625, -0.0472412109375, 0.02459716796875, -0.00615692138671875, 0.03857421875, 0.006683349609375, 0.007293701171875, 0.0206451416015625, -0.0028076171875, -0.019073486328125, 0.004711151123046875, -0.0107421875, 0.00930023193359375, 0.0782470703125, 0.036834716796875, 0.01432037353515625, -0.02618408203125, -0.01163482666015625, 0.00313568115234375, -0.0096282958984375, -0.01302337646484375, 0.01068115234375, -0.037628173828125, -0.0156402587890625, -0.0269317626953125, -0.0171051025390625, 0.006122589111328125, -0.08123779296875, -0.061798095703125, -0.0018939971923828125, -0.064697265625, 0.01444244384765625, -0.017669677734375, -0.057861328125, 0.0394287109375, 0.0009775161743164062, 0.052459716796875, -0.011688232421875, 0.06500244140625, 0.031829833984375, 0.038421630859375, -0.027862548828125, 0.04498291015625, -0.062164306640625, 0.0160369873046875, -0.027740478515625, 0.032440185546875, -0.053985595703125, 0.025115966796875, -0.00006568431854248047, 0.0087738037109375, -0.00876617431640625, 0.01690673828125, -0.0065765380859375, -0.0027675628662109375, -0.010528564453125, 0.02520751953125, -0.0160369873046875, 0.018341064453125, -0.0196533203125, 0.03680419921875, -0.00679779052734375, -0.0006184577941894531, 0.032958984375, -0.04461669921875, 0.027587890625, -0.0198974609375, 0.03997802734375, -0.009674072265625, 0.01120758056640625, -0.03680419921875, -0.0252532958984375, 0.004547119140625 ]
0ae8604e7c388afa0e93203bc821a2c2787f4abf
Wordpress Stackexchange Q: Delete Post With No Traffic? My site has over 8k posts, some of which are outdated. To keep site maintainable and tidy, I want to delete all post with no traffic. Can this be done? Is there any plugin for this purpose? Or any way? Thanks in advance, A: First, you need a list of all available URIs. You may use my plugin T5 All URIs for that. Just activate and go to your blog on /alluris/. There is also a link to the file in your plugin list after activation. Then you need your log files, ideally one file with all requests from a long period (one year?). Run a grep for each line from all-uris over your log file and create a third list with all missing URIs – URIs which were never called during the time the log file represents. This may take a while … be patient. :D And then you can review the deletion candidates. Still a lot of work. But it is worth the time.
Q: Delete Post With No Traffic? My site has over 8k posts, some of which are outdated. To keep site maintainable and tidy, I want to delete all post with no traffic. Can this be done? Is there any plugin for this purpose? Or any way? Thanks in advance, A: First, you need a list of all available URIs. You may use my plugin T5 All URIs for that. Just activate and go to your blog on /alluris/. There is also a link to the file in your plugin list after activation. Then you need your log files, ideally one file with all requests from a long period (one year?). Run a grep for each line from all-uris over your log file and create a third list with all missing URIs – URIs which were never called during the time the log file represents. This may take a while … be patient. :D And then you can review the deletion candidates. Still a lot of work. But it is worth the time. A: I did it this way. Opened Google analytics and Moved around 20 worthy posts manually to a new username, then delete all psots by admin, then moved worthy posts back. But f you have hundreds of worthy posts, then we need plugin.. someone need to create. But it should works like a counter first to gather views statistics.. A: I seriously doubt there is a plugin out there that can do this for you. I did have a quick Google search, but you're going to have to manually do it or write your own plugin. Keep in mind a plugin of this calibre will need to store metrics of a post like views, with the ability to have different views for different days and then set an interval for the plugin to check for unpopular posts and then delete them. I'm sure there would be a way you could create a plugin that uses Google Analytics data as well, but regardless of choice there would be a bit of work involved. A: Just an idea... but you could store the number of views as meta data. I believe there are several plug-ins that do this (for instance WP-PostViews. Though I can't recommend it as I haven't used it. You (or someone) could use a plug-in like that as a basis for your own. The only difference being that you run a WP-Cron job every X number of days/weeks/months and check which posts have had less than Y hits. The hooked function that searches for posts with fewer than Y views and deletes them, and resets the counters for the rest of the posts. That said, that would be a lot of database work. I'd recommend searching for some of the questions we have on plug-in development and cron jobs. A: In Google Analytics you can easily create a list of the 500 most popular posts by view for the past year and save this as a CSV file. But by manipulating the URL you can get the list to be 5000, 10000 lines. You can then match this is @Toschos T5 URI plugin and its probably a matter of just comparing the two lists. A: This is what I would do instead, I would use screamming frog connected to the google analytics api then you can export a excel with all your urls and the views on it. Select the less visited url and create a xml with them, then you can use the plugin mass wordpress delete to upload the xml file with all the urls to delete.
wordpress
{ "language": "en", "length": 602, "provenance": "stackexchange_00019.jsonl.gz:417849", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44860" }
[ 0.035003662109375, 0.00110626220703125, -0.0040283203125, -0.00864410400390625, 0.01389312744140625, -0.027923583984375, 0.060577392578125, -0.0138397216796875, 0.0118560791015625, -0.001209259033203125, -0.0102691650390625, -0.007755279541015625, -0.0225067138671875, -0.032135009765625, 0.0022869110107421875, -0.032684326171875, 0.049468994140625, -0.00997161865234375, 0.045745849609375, -0.006763458251953125, 0.017974853515625, 0.0200042724609375, 0.05938720703125, 0.07586669921875, -0.01702880859375, 0.02386474609375, 0.06268310546875, -0.032501220703125, -0.03436279296875, -0.06396484375, -0.01251983642578125, 0.0555419921875, 0.0172576904296875, 0.0011873245239257812, -0.003108978271484375, -0.021820068359375, -0.0037078857421875, 0.00732421875, 0.00006401538848876953, 0.006439208984375, 0.01560211181640625, -0.0162506103515625, -0.0133819580078125, 0.006542205810546875, -0.01526641845703125, 0.0010747909545898438, -0.0032367706298828125, -0.043731689453125, 0.0285491943359375, -0.040863037109375, -0.006755828857421875, 0.01506805419921875, 0.0215911865234375, -0.032318115234375, -0.034454345703125, -0.0202484130859375, 0.003215789794921875, 0.03125, 0.0276031494140625, -0.038970947265625, -0.032318115234375, 0.010955810546875, 0.0198211669921875, 0.0255279541015625, -0.032470703125, 0.0097808837890625, -0.063232421875, -0.00791168212890625, -0.042022705078125, -0.0230865478515625, 0.046112060546875, -0.053802490234375, -0.0018749237060546875, -0.0195159912109375, 0.00504302978515625, -0.04180908203125, 0.016876220703125, -0.047698974609375, -0.006275177001953125, 0.0244140625, 0.02734375, 0.01175689697265625, 0.01491546630859375, 0.00296783447265625, -0.0254058837890625, -0.0265960693359375, -0.00030422210693359375, -0.00981903076171875, -0.03863525390625, -0.04302978515625, -0.04156494140625, -0.047088623046875, -0.0193328857421875, -0.0051422119140625, -0.054473876953125, 0.0032520294189453125, 0.0303497314453125, 0.01270294189453125, 0.007568359375, -0.004302978515625, -0.03009033203125, -0.02923583984375, -0.0089263916015625, -0.00247955322265625, 0.0212249755859375, 0.014801025390625, -0.029083251953125, -0.014739990234375, 0.04827880859375, 0.0299224853515625, 0.0022068023681640625, 0.00962066650390625, 0.0220184326171875, 0.04364013671875, -0.03814697265625, -0.005229949951171875, 0.0024318695068359375, -0.00787353515625, -0.04107666015625, 0.034698486328125, -0.0196533203125, -0.00281524658203125, -0.06695556640625, -0.028564453125, 0.02520751953125, -0.0285797119140625, -0.0234527587890625, 0.060089111328125, 0.046112060546875, -0.02508544921875, -0.033721923828125, 0.037139892578125, 0.0218353271484375, -0.0218353271484375, -0.0229949951171875, 0.006992340087890625, -0.0192413330078125, -0.0263214111328125, -0.0163726806640625, -0.0190582275390625, 0.04400634765625, -0.0280609130859375, -0.0232086181640625, 0.0273284912109375, 0.0650634765625, 0.0499267578125, 0.033599853515625, -0.0106201171875, 0.007080078125, -0.0114898681640625, -0.01910400390625, 0.01276397705078125, 0.04937744140625, -0.01238250732421875, -0.04693603515625, -0.048858642578125, 0.03759765625, -0.059112548828125, -0.01122283935546875, -0.08624267578125, 0.0872802734375, 0.024658203125, 0.00937652587890625, 0.0015583038330078125, -0.03656005859375, -0.05352783203125, -0.07318115234375, -0.0214996337890625, 0.023223876953125, -0.0625, 0.044158935546875, -0.032379150390625, 0.00881195068359375, -0.039215087890625, 0.0076904296875, 0.0307769775390625, 0.0127716064453125, -0.01336669921875, 0.00861358642578125, 0.0183258056640625, -0.016082763671875, -0.0308074951171875, 0.0003230571746826172, 0.0033740997314453125, -0.05816650390625, 0.0299072265625, 0.0265045166015625, 0.080810546875, -0.0040435791015625, 0.04290771484375, 0.0506591796875, 0.00789642333984375, 0.014434814453125, -0.0003261566162109375, 0.03607177734375, -0.043914794921875, -0.002017974853515625, -0.03131103515625, 0.018524169921875, -0.0148468017578125, -0.005199432373046875, 0.0123138427734375, -0.02471923828125, 0.0123138427734375, -0.035614013671875, 0.004383087158203125, -0.01464080810546875, 0.0224456787109375, -0.055419921875, 0.0090179443359375, 0.037841796875, -0.01343536376953125, -0.037628173828125, -0.0052642822265625, 0.00994110107421875, 0.0103912353515625, 0.0115203857421875, -0.049468994140625, -0.0222015380859375, -0.025848388671875, -0.03607177734375, -0.009246826171875, -0.06610107421875, 0.004535675048828125, 0.01824951171875, 0.00971221923828125, -0.0069732666015625, -0.0106201171875, 0.03680419921875, -0.0007295608520507812, 0.0166015625, 0.0220947265625, 0.03118896484375, 0.0274658203125, -0.01568603515625, 0.007472991943359375, -0.0058746337890625, -0.0540771484375, 0.0014963150024414062, 0.059326171875, 0.006565093994140625, 0.01396942138671875, -0.016693115234375, 0.0288238525390625, -0.0191802978515625, -0.058441162109375, 0.0036106109619140625, 0.0161590576171875, 0.00945281982421875, 0.0093231201171875, 0.00868988037109375, -0.034637451171875, 0.01432037353515625, -0.03717041015625, 0.054901123046875, -0.003841400146484375, 0.040191650390625, 0.024444580078125, -0.0272064208984375, 0.0048065185546875, 0.01800537109375, 0.05364990234375, -0.0391845703125, 0.030517578125, 0.0341796875, -0.01678466796875, 0.023712158203125, 0.0121307373046875, -0.035186767578125, 0.0178985595703125, 0.0207061767578125, -0.033660888671875, 0.0301513671875, 0.0200042724609375, 0.0225982666015625, 0.0132598876953125, -0.00914764404296875, -0.0367431640625, 0.0711669921875, 0.017913818359375, -0.042755126953125, -0.0006308555603027344, 0.0251922607421875, -0.01442718505859375, -0.0273895263671875, 0.01149749755859375, 0.04486083984375, -0.024627685546875, 0.0176544189453125, 0.00592041015625, 0.0144500732421875, 0.03436279296875, -0.02679443359375, 0.0408935546875, 0.018829345703125, -0.01409912109375, 0.037628173828125, -0.119384765625, 0.06622314453125, -0.0239410400390625, 0.09747314453125, 0.105224609375, 0.0135040283203125, 0.0323486328125, -0.00951385498046875, 0.045135498046875, 0.00901031494140625, -0.01184844970703125, -0.02960205078125, 0.0078277587890625, -0.06640625, 0.0036716461181640625, -0.006336212158203125, -0.003208160400390625, -0.0288238525390625, -0.03887939453125, -0.0197601318359375, -0.004581451416015625, -0.080078125, -0.0203857421875, -0.0396728515625, -0.00852203369140625, 0.01325225830078125, -0.00641632080078125, 0.00662994384765625, -0.004718780517578125, 0.00433349609375, 0.01104736328125, -0.0194244384765625, 0.0187225341796875, -0.071533203125, -0.0260162353515625, -0.07049560546875, 0.01300048828125, -0.025146484375, 0.0279693603515625, 0.00888824462890625, 0.05450439453125, 0.0189971923828125, -0.058868408203125, -0.00798797607421875, 0.04608154296875, -0.03582763671875, 0.01497650146484375, 0.006717681884765625, 0.0025119781494140625, -0.0234222412109375, 0.0231170654296875, 0.01495361328125, 0.027130126953125, -0.04193115234375, -0.01476287841796875, -0.01227569580078125, -0.0208892822265625, 0.000046312808990478516, -0.0160675048828125, 0.00479888916015625, -0.01434326171875, -0.020660400390625, -0.059722900390625, 0.0210418701171875, -0.03216552734375, -0.0161285400390625, 0.004352569580078125, 0.0187835693359375, -0.007450103759765625, -0.0265655517578125, 0.001613616943359375, 0.0199737548828125, -0.0185089111328125, 0.0181121826171875, -0.01158905029296875, -0.006092071533203125, 0.00273895263671875, 0.032012939453125, -0.01271820068359375, 0.0357666015625, -0.01641845703125, 0.0271453857421875, 0.024139404296875, 0.0010766983032226562, -0.0013647079467773438, 0.0072174072265625, -0.00980377197265625, 0.00553131103515625, 0.0189361572265625, 0.01221466064453125, 0.029205322265625, 0.00649261474609375, -0.022918701171875, -0.006610870361328125, 0.055328369140625, -0.028564453125, -0.02691650390625, -0.042694091796875, 0.01227569580078125, 0.01361083984375, -0.07135009765625, 0.046722412109375, -0.0169525146484375, -0.06866455078125, 0.0159759521484375, 0.00519561767578125, -0.00800323486328125, -0.0020771026611328125, 0.01425933837890625, -0.01025390625, -0.032379150390625, 0.017974853515625, -0.018707275390625, 0.0276031494140625, -0.034820556640625, 0.0183258056640625, -0.033111572265625, 0.00026297569274902344, -0.03955078125, 0.0142059326171875, 0.002071380615234375, 0.0037078857421875, -0.0151214599609375, 0.003604888916015625, 0.02130126953125, 0.00748443603515625, 0.02508544921875, -0.032684326171875, 0.0214691162109375, -0.029205322265625, 0.0264129638671875, -0.0601806640625, 0.01837158203125, -0.0068359375, -0.0158843994140625, -0.005146026611328125, -0.0151824951171875, 0.0014057159423828125, 0.00821685791015625, -0.033172607421875, 0.0181427001953125, -0.04510498046875, -0.0076751708984375, -0.0276947021484375, -0.01406097412109375, -0.00966644287109375, 0.0175933837890625, -0.01070404052734375, -0.0167694091796875, -0.00640869140625, -0.0259857177734375, 0.039764404296875, -0.00551605224609375, 0.0020275115966796875, 0.006256103515625, 0.071044921875, 0.0008039474487304688, -0.0110626220703125, -0.0242462158203125, 0.01367950439453125, 0.01107025146484375, -0.002910614013671875, 0.056121826171875, 0.025543212890625, 0.0171966552734375, 0.026641845703125, -0.0174713134765625, -0.004451751708984375, -0.00370025634765625, 0.0307464599609375, -0.016143798828125, -0.031829833984375, 0.033416748046875, -0.0142822265625, 0.0234222412109375, 0.035125732421875, -0.0004076957702636719, -0.01551055908203125, 0.0034084320068359375, 0.04681396484375, -0.019439697265625, 0.00040078163146972656, -0.04925537109375, 0.031463623046875, -0.0163726806640625, 0.024261474609375, 0.032196044921875, 0.040740966796875, 0.00823974609375, -0.02703857421875, 0.01256561279296875, -0.01497650146484375, 0.0023899078369140625, 0.0291748046875, 0.0152740478515625, 0.0122833251953125, 0.035125732421875, 0.00507354736328125, -0.049285888671875, -0.01027679443359375, 0.06561279296875, -0.00833892822265625, -0.06060791015625, -0.005466461181640625, -0.00701904296875, -0.004657745361328125, 0.031707763671875, 0.0033855438232421875, 0.056060791015625, 0.040863037109375, -0.0043182373046875, -0.0322265625, -0.012847900390625, 0.00980377197265625, -0.0687255859375, 0.00142669677734375, -0.0153656005859375, -0.0020771026611328125, 0.032257080078125, 0.0255126953125, -0.033935546875, 0.034271240234375, 0.011016845703125, 0.0213623046875, 0.00470733642578125, 0.0399169921875, 0.027008056640625, -0.0157470703125, -0.02398681640625, 0.022247314453125, -0.0267181396484375, -0.043487548828125, 0.008392333984375, 0.051971435546875, 0.034027099609375, 0.0251007080078125, -0.0352783203125, -0.002197265625, -0.005031585693359375, -0.0243072509765625, 0.06207275390625, 0.06585693359375, -0.04644775390625, -0.029541015625, 0.012847900390625, 0.0154571533203125, 0.0157318115234375, 0.0189056396484375, -0.04437255859375, 0.02001953125, -0.0176239013671875, -0.0294952392578125, -0.0198211669921875, -0.01126861572265625, -0.0009427070617675781, -0.0065155029296875, -0.050567626953125, -0.01087188720703125, 0.058502197265625, 0.039642333984375, -0.0333251953125, -0.0228729248046875, 0.040191650390625, 0.0079345703125, 0.01186370849609375, 0.0001844167709350586, -0.022613525390625, 0.08477783203125, 0.009429931640625, 0.01007080078125, -0.0416259765625, 0.0174407958984375, -0.032257080078125, -0.0213623046875, -0.050567626953125, -0.0149078369140625, 0.000988006591796875, -0.0297088623046875, 0.01531219482421875, 0.0294189453125, 0.035888671875, -0.0311737060546875, -0.06488037109375, 0.01300811767578125, -0.010284423828125, 0.0279693603515625, 0.0155792236328125, 0.004428863525390625, -0.0202178955078125, 0.020111083984375, -0.0113067626953125, 0.0284576416015625, 0.01387786865234375, 0.042877197265625, -0.03497314453125, 0.0224151611328125, -0.0170135498046875, -0.050445556640625, -0.0014333724975585938, -0.0384521484375, 0.0206756591796875, 0.044525146484375, -0.0151519775390625, 0.00672149658203125, 0.0007262229919433594, 0.01152801513671875, -0.0230560302734375, 0.00812530517578125, 0.006557464599609375, 0.034393310546875, -0.0253753662109375, 0.01120758056640625, 0.0330810546875, 0.0005469322204589844, 0.00406646728515625, -0.0333251953125, 0.00951385498046875, -0.0265350341796875, -0.00830841064453125, -0.0027179718017578125, 0.0404052734375, 0.080322265625, -0.051239013671875, 0.006366729736328125, 0.0428466796875, -0.029815673828125, 0.007083892822265625, -0.0364990234375, 0.023040771484375, 0.00015854835510253906, 0.0396728515625, -0.01806640625, -0.0165557861328125, 0.01502227783203125, -0.0362548828125, -0.0258636474609375, 0.0212860107421875, 0.01983642578125, -0.0535888671875, -0.00092315673828125, 0.006633758544921875, 0.01494598388671875, -0.004669189453125, 0.0121612548828125, 0.0189056396484375, 0.030059814453125, 0.01528167724609375, 0.020416259765625, -0.0008158683776855469, 0.022125244140625, 0.00269317626953125, -0.002155303955078125, 0.004001617431640625, 0.01470947265625, -0.0101776123046875, -0.038177490234375, -0.0306396484375, 0.04022216796875, -0.03680419921875, -0.04937744140625, 0.0149993896484375, 0.007038116455078125, 0.0183563232421875, -0.037261962890625, 0.055389404296875, -0.00872802734375, 0.0301055908203125, 0.04278564453125, -0.006763458251953125, 0.031219482421875, 0.0499267578125, -0.00421905517578125, 0.01995849609375, 0.0016794204711914062, 0.0021228790283203125, -0.00734710693359375, -0.0263519287109375, -0.00677490234375, 0.0245819091796875, -0.0161285400390625, 0.017303466796875, -0.0143890380859375, -0.01363372802734375, -0.0107879638671875, 0.005733489990234375, 0.08111572265625, -0.01337432861328125, -0.0236663818359375, 0.02825927734375, 0.046722412109375, -0.0178070068359375, -0.0198974609375, -0.005367279052734375, -0.035308837890625, 0.022308349609375, -0.0200653076171875, 0.0193023681640625, -0.006000518798828125, -0.01230621337890625, -0.07574462890625, 0.117431640625, -0.0169830322265625, 0.0347900390625, -0.0130462646484375, 0.0576171875, -0.0078582763671875, 0.037445068359375, -0.03143310546875, 0.054595947265625, -0.0125732421875, 0.0023975372314453125, -0.04278564453125, 0.0178070068359375, -0.0281219482421875, -0.0013151168823242188, 0.06005859375, 0.0157928466796875, -0.038330078125, -0.0355224609375, -0.007366180419921875, 0.018280029296875, -0.0082244873046875, 0.04681396484375, -0.00909423828125, 0.0487060546875, 0.051971435546875, -0.07452392578125, 0.0227203369140625, 0.004482269287109375, 0.00328826904296875, -0.001983642578125, 0.019195556640625, 0.0101776123046875, 0.0089263916015625, 0.00937652587890625, -0.006275177001953125, 0.00482940673828125, -0.01125335693359375, 0.0703125, 0.0223388671875, 0.044769287109375, 0.072265625, -0.0870361328125, -0.0634765625, -0.01136016845703125, 0.045440673828125, 0.01837158203125, 0.01276397705078125, 0.03790283203125, 0.05029296875, 0.02276611328125, -0.08233642578125, 0.01215362548828125, -0.0237884521484375, -0.066650390625, 0.052276611328125, 0.0399169921875, 0.0224761962890625, -0.035400390625, -0.039947509765625, 0.049560546875, 0.07666015625, -0.03192138671875, -0.033477783203125, 0.00909423828125, 0.0222015380859375, 0.035308837890625, 0.005855560302734375, 0.051483154296875, -0.04071044921875, -0.004154205322265625, 0.005828857421875, 0.0023651123046875, -0.01206207275390625, -0.0004527568817138672, 0.0006132125854492188, 0.0307159423828125, -0.019775390625, 0.012420654296875, 0.0046234130859375, -0.010772705078125, 0.00327301025390625, 0.005466461181640625, -0.008026123046875, 0.028106689453125, -0.0113372802734375, 0.0169830322265625, 0.0296478271484375, -0.01454925537109375, -0.025054931640625, -0.0293121337890625, -0.0168304443359375, -0.046356201171875, 0.0027675628662109375, 0.0325927734375, 0.051513671875, 0.0202789306640625, 0.071533203125, 0.042236328125, -0.005542755126953125, -0.00478363037109375, 0.0272674560546875, -0.01035308837890625, -0.006252288818359375, 0.003993988037109375, -0.03338623046875, -0.008880615234375, -0.029693603515625, -0.0010118484497070312, 0.044830322265625, -0.00902557373046875, -0.001125335693359375, 0.0030231475830078125, 0.0157318115234375, -0.040863037109375, 0.056243896484375, -0.005523681640625, 0.05657958984375, 0.0083160400390625, -0.043731689453125, -0.025115966796875, -0.01290130615234375, 0.00726318359375, 0.005336761474609375, 0.030975341796875, -0.0208740234375, 0.04107666015625, -0.0244293212890625, 0.0123748779296875, -0.021392822265625, -0.01030731201171875, 0.0190887451171875, 0.031341552734375, 0.00817108154296875, 0.01708984375, 0.016754150390625, 0.007099151611328125, 0.0081329345703125, 0.0157623291015625, -0.00861358642578125, 0.07843017578125, -0.0230255126953125, -0.0029125213623046875, -0.0111846923828125, 0.029022216796875, -0.0239410400390625, 0.0302276611328125, -0.05108642578125, 0.029937744140625, 0.0257110595703125, -0.019134521484375, -0.015045166015625, 0.00010055303573608398, 0.0194549560546875, -0.03045654296875, -0.006305694580078125, -0.031158447265625, 0.00916290283203125, 0.004306793212890625, 0.01275634765625, -0.0237274169921875, -0.0276336669921875, -0.0245361328125, -0.0024700164794921875, 0.016998291015625, 0.02667236328125, -0.0155487060546875, 0.05206298828125, -0.032073974609375, -0.025787353515625, 0.01413726806640625, -0.0655517578125, 0.01605224609375, 0.030059814453125, 0.0016012191772460938, 0.023193359375, -0.006481170654296875, -0.01198577880859375, 0.013519287109375, 0.00689697265625, -0.0301361083984375, 0.03350830078125, 0.0010709762573242188, -0.049560546875, -0.0574951171875, 0.00518798828125, -0.025970458984375, -0.0128936767578125, -0.044921875, 0.027099609375, -0.003894805908203125, 0.01532745361328125, -0.0112457275390625, -0.0055999755859375, -0.050628662109375, -0.0316162109375, -0.02410888671875, -0.1192626953125, -0.033538818359375, 0.03289794921875, -0.02886962890625, -0.017547607421875, -0.0176239013671875, 0.04150390625, -0.0230560302734375, -0.017974853515625, -0.04266357421875, 0.0260467529296875, -0.0176239013671875, 0.033599853515625, 0.01348876953125, -0.01325225830078125, -0.01451873779296875, 0.06610107421875, 0.002796173095703125, 0.0169525146484375, 0.047760009765625, -0.0186614990234375, -0.038238525390625, -0.03857421875, -0.002475738525390625, 0.02825927734375, -0.0247039794921875, -0.0237579345703125, 0.0215606689453125, -0.03228759765625, 0.003696441650390625, -0.01491546630859375, 0.002117156982421875, -0.043792724609375, -0.039306640625, -0.0081939697265625, 0.005512237548828125, 0.01288604736328125, -0.03143310546875, -0.05950927734375, 0.06671142578125, -0.012237548828125, -0.0172271728515625, -0.04400634765625, -0.00472259521484375, 0.026397705078125, -0.00814056396484375, -0.014892578125, 0.005039215087890625, -0.075927734375, 0.01132965087890625, -0.024078369140625, 0.031982421875, -0.0203857421875, -0.0120697021484375, 0.006954193115234375, 0.02703857421875, 0.0574951171875, -0.032012939453125, 0.03369140625, -0.003971099853515625, 0.037109375, 0.0601806640625, -0.0236663818359375, 0.04193115234375, -0.00757598876953125, -0.05560302734375, -0.00156402587890625, -0.01218414306640625, -0.07550048828125, -0.0186309814453125, 0.0885009765625, 0.09136962890625, 0.040679931640625, -0.052825927734375, -0.0153350830078125, -0.023101806640625, -0.0109710693359375, -0.0212860107421875, 0.025543212890625, -0.07232666015625, -0.0152435302734375, 0.002391815185546875, -0.027801513671875, -0.0206756591796875, -0.053924560546875, -0.060394287109375, -0.0011043548583984375, -0.031219482421875, 0.0243377685546875, -0.0089263916015625, 0.07421875, 0.0186614990234375, -0.02203369140625, 0.01139068603515625, -0.0240020751953125, -0.018646240234375, 0.0174407958984375, -0.02191162109375, -0.0036869049072265625, -0.049041748046875, -0.0219268798828125, 0.0362548828125, -0.01438140869140625, 0.0281524658203125, -0.04925537109375, -0.031280517578125, -0.0130615234375, 0.022613525390625, 0.005107879638671875, 0.0438232421875, 0.0237579345703125, -0.0159149169921875, 0.02099609375, -0.002521514892578125, 0.001201629638671875, -0.0301055908203125, -0.01372528076171875, 0.031341552734375, -0.00684356689453125, -0.0223846435546875, 0.0303802490234375, -0.0489501953125, -0.00598907470703125, -0.0128326416015625, -0.01678466796875, -0.08038330078125, 0.038238525390625, -0.00014901161193847656, 0.0189208984375, 0.036712646484375 ]
e3fefe822a3fe139c3d9879e17e6f265bbd81e3c
Wordpress Stackexchange Q: User registration problem in WordPress I am trying to make a user registration form in my site's side bar. Users are able to register but instead of getting a success message, WordPress usually redirect them to 404 page. Below is my form: <form id="joinmaillist" method='post'> <table> <tr> <td>Name</td> <td><input type="text" placeholder="Your name here.." name="name" title="Please enter your name" required/></td> </tr> <tr> <td>Email</td> <td><input type="email" name="email" placeholder="Your email here.." required/></td> </tr> <tr> <td></td> <td style="text-align:right"><input class="submitmail" type="submit" value="Join!" name="joinm"/></td> </tr> </table> </form> and below is my PHP code: <?php if (isset($_POST['joinm'])){ $user_name=$_POST['name']; $email =$_POST['email']; $user_id= username_exists($user_name); if (!$user_id){ $random_pass = wp_generate_password(12, false); $user_id=wp_create_user($user_name, $password, $email); header('Location:' . $_SERVER['REQUEST_URI']); }else{ } } A: Look at the code in wp-login.php (line 481 and following). There you can see how registration works. The names of your form – email, name – are probably overwritten by WordPress. Always use prefixed names in forms to avoid collisions, eg.: ma_email and ma_name. Prepare incoming data. Do not just write anything someone sends you into your data base. It may be dangerous. Oh, and welcome to WordPress Stack Exchange! :)
Q: User registration problem in WordPress I am trying to make a user registration form in my site's side bar. Users are able to register but instead of getting a success message, WordPress usually redirect them to 404 page. Below is my form: <form id="joinmaillist" method='post'> <table> <tr> <td>Name</td> <td><input type="text" placeholder="Your name here.." name="name" title="Please enter your name" required/></td> </tr> <tr> <td>Email</td> <td><input type="email" name="email" placeholder="Your email here.." required/></td> </tr> <tr> <td></td> <td style="text-align:right"><input class="submitmail" type="submit" value="Join!" name="joinm"/></td> </tr> </table> </form> and below is my PHP code: <?php if (isset($_POST['joinm'])){ $user_name=$_POST['name']; $email =$_POST['email']; $user_id= username_exists($user_name); if (!$user_id){ $random_pass = wp_generate_password(12, false); $user_id=wp_create_user($user_name, $password, $email); header('Location:' . $_SERVER['REQUEST_URI']); }else{ } } A: Look at the code in wp-login.php (line 481 and following). There you can see how registration works. The names of your form – email, name – are probably overwritten by WordPress. Always use prefixed names in forms to avoid collisions, eg.: ma_email and ma_name. Prepare incoming data. Do not just write anything someone sends you into your data base. It may be dangerous. Oh, and welcome to WordPress Stack Exchange! :)
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:417854", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44873" }
[ 0.06573486328125, 0.00850677490234375, 0.00847625732421875, -0.0205078125, 0.03350830078125, -0.040374755859375, 0.048095703125, -0.04547119140625, -0.02423095703125, 0.042877197265625, -0.0184326171875, -0.00824737548828125, 0.0201568603515625, -0.020751953125, -0.0180816650390625, -0.032989501953125, -0.0128326416015625, 0.042236328125, 0.0017538070678710938, -0.0282745361328125, 0.0021953582763671875, -0.0192108154296875, -0.0016603469848632812, -0.0087890625, -0.0012912750244140625, -0.015167236328125, 0.06658935546875, -0.0242767333984375, 0.00301361083984375, -0.018035888671875, 0.006580352783203125, -0.00945281982421875, 0.02508544921875, 0.010101318359375, -0.0014104843139648438, 0.02252197265625, 0.0237274169921875, 0.0033435821533203125, 0.0190582275390625, 0.0204010009765625, 0.04052734375, -0.028961181640625, 0.040985107421875, -0.026275634765625, 0.0263519287109375, -0.042205810546875, 0.068359375, -0.0247039794921875, -0.001255035400390625, 0.01019287109375, 0.0166168212890625, 0.03875732421875, 0.035369873046875, -0.0157623291015625, 0.0027313232421875, 0.033111572265625, 0.00553131103515625, -0.01116180419921875, 0.0269622802734375, 0.00876617431640625, -0.021484375, -0.007793426513671875, 0.015869140625, -0.020233154296875, -0.0135955810546875, -0.020172119140625, -0.0167083740234375, 0.0165252685546875, -0.007503509521484375, -0.01132965087890625, 0.016204833984375, -0.006687164306640625, -0.0178680419921875, -0.0132293701171875, -0.01495361328125, 0.00040721893310546875, 0.0067596435546875, -0.0099639892578125, 0.00222015380859375, 0.017303466796875, -0.03741455078125, -0.01076507568359375, -0.057342529296875, 0.004062652587890625, -0.0170440673828125, 0.0288848876953125, -0.0272979736328125, -0.008575439453125, -0.0274658203125, -0.0242919921875, -0.01265716552734375, -0.05889892578125, 0.0022220611572265625, -0.0133209228515625, -0.0216827392578125, -0.042449951171875, 0.040496826171875, 0.049774169921875, 0.00496673583984375, 0.002109527587890625, 0.001819610595703125, -0.0399169921875, 0.0256805419921875, -0.0284576416015625, 0.011138916015625, 0.10516357421875, 0.004375457763671875, 0.003643035888671875, -0.006046295166015625, -0.011077880859375, 0.01375579833984375, -0.038543701171875, -0.036773681640625, -0.039337158203125, -0.0148773193359375, 0.0567626953125, -0.037109375, -0.0089874267578125, -0.003612518310546875, 0.0223541259765625, -0.02337646484375, 0.0008292198181152344, -0.00360870361328125, -0.0098114013671875, 0.0293426513671875, -0.004306793212890625, -0.007843017578125, -0.0034389495849609375, -0.003063201904296875, 0.0200958251953125, -0.03192138671875, 0.02227783203125, 0.038299560546875, 0.005889892578125, -0.01021575927734375, -0.01540374755859375, 0.038116455078125, -0.00738525390625, -0.026031494140625, 0.043304443359375, -0.023284912109375, -0.025726318359375, -0.004161834716796875, -0.0325927734375, 0.0260162353515625, 0.048187255859375, 0.01238250732421875, -0.01155853271484375, 0.012298583984375, -0.0203857421875, -0.0250396728515625, -0.040679931640625, -0.02166748046875, 0.042938232421875, 0.016937255859375, 0.056488037109375, -0.00012636184692382812, 0.01122283935546875, -0.0021495819091796875, 0.0251007080078125, 0.0684814453125, 0.0112457275390625, -0.0020503997802734375, -0.032318115234375, -0.06097412109375, -0.0269622802734375, -0.062286376953125, -0.0261993408203125, 0.0146331787109375, -0.0161285400390625, 0.00922393798828125, -0.00803375244140625, 0.0093231201171875, 0.01361846923828125, 0.00727081298828125, 0.0227203369140625, 0.01493072509765625, 0.0256500244140625, -0.005580902099609375, 0.00943756103515625, 0.0011644363403320312, -0.016876220703125, 0.043304443359375, -0.008392333984375, -0.038238525390625, 0.042266845703125, 0.0200958251953125, 0.02801513671875, -0.006183624267578125, 0.0038852691650390625, 0.035675048828125, 0.06890869140625, -0.004489898681640625, 0.038177490234375, -0.039764404296875, -0.07183837890625, 0.01288604736328125, -0.00717926025390625, -0.039215087890625, 0.050262451171875, 0.0142669677734375, -0.0276641845703125, 0.0419921875, -0.0106048583984375, -0.01331329345703125, 0.007457733154296875, -0.017852783203125, 0.008758544921875, -0.01947021484375, 0.0171051025390625, 0.0198211669921875, 0.00994110107421875, -0.0335693359375, -0.01922607421875, 0.0109710693359375, 0.04345703125, -0.0141143798828125, 0.02825927734375, -0.006198883056640625, 0.06451416015625, -0.036041259765625, -0.003726959228515625, -0.0270233154296875, -0.034332275390625, 0.0078277587890625, 0.0013818740844726562, -0.026885986328125, -0.0146942138671875, -0.013671875, 0.00011140108108520508, -0.0022182464599609375, 0.043975830078125, -0.0014772415161132812, -0.0204620361328125, -0.080810546875, -0.0095062255859375, -0.0308074951171875, 0.0279693603515625, -0.0024871826171875, 0.04510498046875, 0.025543212890625, 0.032684326171875, -0.0048675537109375, 0.007282257080078125, 0.056732177734375, -0.0241546630859375, 0.0115203857421875, -0.0130157470703125, -0.0005388259887695312, 0.048126220703125, 0.00440216064453125, 0.0241241455078125, -0.0073699951171875, -0.051513671875, 0.014556884765625, 0.0290985107421875, -0.032989501953125, -0.0106201171875, 0.00833892822265625, -0.0193023681640625, 0.0026569366455078125, -0.07843017578125, -0.0161590576171875, -0.041748046875, -0.0204620361328125, -0.0087738037109375, -0.01401519775390625, -0.0156707763671875, -0.00664520263671875, -0.014984130859375, 0.01934814453125, -0.04180908203125, -0.0026683807373046875, -0.0154571533203125, 0.0235595703125, 0.0190887451171875, -0.0482177734375, 0.01396942138671875, 0.044189453125, -0.0037708282470703125, -0.0352783203125, -0.03143310546875, -0.0049285888671875, -0.0018186569213867188, 0.002864837646484375, -0.032257080078125, 0.045135498046875, 0.01568603515625, 0.021759033203125, -0.01531982421875, 0.00788116455078125, 0.024017333984375, -0.026092529296875, 0.055389404296875, -0.007617950439453125, -0.02996826171875, -0.002635955810546875, 0.01099395751953125, -0.01403045654296875, -0.0207061767578125, 0.0181121826171875, 0.0291900634765625, -0.0038280487060546875, -0.01317596435546875, -0.0013904571533203125, 0.01483917236328125, -0.014373779296875, -0.0097808837890625, -0.0205535888671875, -0.04559326171875, -0.0131988525390625, 0.019775390625, 0.01959228515625, 0.06622314453125, 0.0078125, -0.037689208984375, 0.00920867919921875, 0.0211334228515625, -0.0323486328125, -0.0775146484375, -0.0728759765625, -0.06475830078125, -0.00652313232421875, -0.00399017333984375, -0.0282745361328125, 0.024383544921875, 0.01226043701171875, 0.0190277099609375, 0.00907135009765625, -0.05340576171875, -0.07916259765625, -0.073974609375, -0.08111572265625, 0.007228851318359375, -0.00437164306640625, 0.00226593017578125, -0.002593994140625, 0.0086669921875, -0.01904296875, -0.0290069580078125, -0.026336669921875, -0.018646240234375, -0.00963592529296875, -0.0399169921875, -0.041839599609375, -0.004283905029296875, 0.0139617919921875, -0.00550079345703125, 0.0265655517578125, -0.0110015869140625, 0.005157470703125, -0.01323699951171875, -0.0004792213439941406, -0.051971435546875, -0.004520416259765625, 0.0223388671875, -0.00514984130859375, -0.037200927734375, 0.0304107666015625, -0.062164306640625, 0.01326751708984375, 0.0008087158203125, -0.032806396484375, -0.0272064208984375, 0.010986328125, -0.019317626953125, 0.0135345458984375, -0.035858154296875, -0.005077362060546875, 0.0148773193359375, -0.01409912109375, -0.0195465087890625, 0.032928466796875, -0.0085296630859375, 0.006710052490234375, 0.002185821533203125, 0.0093231201171875, -0.0148468017578125, -0.01300811767578125, -0.00429534912109375, 0.033355712890625, 0.00917816162109375, 0.00011235475540161133, -0.028289794921875, -0.10577392578125, 0.074951171875, -0.01345062255859375, -0.0268096923828125, -0.038970947265625, -0.05047607421875, 0.0148468017578125, 0.1265869140625, -0.007720947265625, -0.0185546875, 0.0139007568359375, 0.01708984375, -0.071044921875, -0.0292816162109375, -0.034912109375, 0.0082550048828125, 0.00354766845703125, -0.0266265869140625, -0.0160369873046875, -0.0224761962890625, 0.022613525390625, -0.06939697265625, 0.01177215576171875, -0.0294647216796875, 0.0362548828125, 0.0034275054931640625, 0.041259765625, -0.004924774169921875, 0.012603759765625, -0.00881195068359375, -0.00942230224609375, -0.014495849609375, -0.07012939453125, -0.01218414306640625, -0.01279449462890625, 0.05792236328125, 0.0161590576171875, -0.022308349609375, -0.03497314453125, 0.0310821533203125, 0.01617431640625, -0.016387939453125, 0.0098419189453125, -0.0008134841918945312, 0.0284881591796875, -0.0121002197265625, -0.01523590087890625, -0.00994873046875, -0.0029354095458984375, -0.003696441650390625, -0.0411376953125, -0.00032711029052734375, -0.037811279296875, -0.00644683837890625, 0.01202392578125, -0.0282745361328125, -0.0233306884765625, -0.00499725341796875, 0.005794525146484375, 0.026458740234375, -0.0307464599609375, 0.0112762451171875, -0.004604339599609375, -0.0207977294921875, 0.032470703125, -0.042694091796875, -0.01458740234375, 0.0031375885009765625, 0.053680419921875, 0.0195465087890625, 0.001708984375, -0.00911712646484375, -0.0013875961303710938, 0.034942626953125, 0.0219573974609375, 0.019744873046875, 0.017364501953125, -0.01137542724609375, 0.0284271240234375, 0.0228271484375, -0.01428985595703125, 0.02191162109375, 0.051788330078125, 0.003078460693359375, -0.03973388671875, 0.028778076171875, -0.0118408203125, -0.0308685302734375, 0.00927734375, -0.005847930908203125, -0.0108489990234375, 0.004673004150390625, 0.005115509033203125, -0.01171875, 0.01336669921875, -0.006359100341796875, -0.046630859375, 0.01702880859375, -0.059234619140625, -0.006565093994140625, -0.0008130073547363281, 0.00655364990234375, -0.01287841796875, -0.00536346435546875, -0.019989013671875, -0.0078887939453125, -0.061187744140625, 0.026824951171875, -0.010467529296875, 0.01407623291015625, 0.00360107421875, 0.007205963134765625, -0.0213165283203125, 0.10028076171875, 0.039947509765625, -0.0286865234375, 0.0364990234375, -0.010467529296875, 0.0219879150390625, -0.02093505859375, 0.02239990234375, 0.04241943359375, 0.036376953125, -0.015228271484375, -0.01088714599609375, 0.0220794677734375, -0.000057697296142578125, -0.040496826171875, 0.016693115234375, 0.02301025390625, -0.020355224609375, -0.009033203125, 0.04644775390625, 0.0071563720703125, 0.01378631591796875, -0.00885009765625, 0.037506103515625, 0.058502197265625, 0.028656005859375, 0.029296875, -0.02276611328125, -0.00785064697265625, 0.007114410400390625, 0.0118408203125, -0.0242767333984375, 0.005218505859375, 0.02752685546875, 0.050628662109375, 0.0278778076171875, -0.002685546875, -0.01209259033203125, -0.0477294921875, -0.0016222000122070312, 0.013397216796875, -0.0738525390625, -0.073974609375, -0.033233642578125, -0.0019588470458984375, 0.0299224853515625, -0.068603515625, 0.010894775390625, -0.02203369140625, -0.0175323486328125, 0.00021982192993164062, 0.024688720703125, 0.01256561279296875, -0.040618896484375, -0.04962158203125, 0.050262451171875, 0.00511932373046875, -0.0267333984375, 0.0203399658203125, 0.02099609375, -0.01861572265625, -0.01947021484375, 0.031982421875, -0.0316162109375, -0.022003173828125, -0.040008544921875, 0.054595947265625, -0.07171630859375, -0.00478363037109375, 0.0419921875, 0.01326751708984375, -0.0205078125, -0.0110931396484375, -0.01047515869140625, -0.0185394287109375, 0.01123046875, -0.00850677490234375, -0.023284912109375, -0.02386474609375, -0.01222991943359375, 0.001605987548828125, -0.01500701904296875, -0.01528167724609375, -0.03143310546875, -0.0006723403930664062, 0.015045166015625, -0.0206756591796875, -0.050445556640625, 0.05303955078125, -0.0009164810180664062, 0.0240325927734375, -0.011627197265625, 0.02655029296875, 0.006397247314453125, -0.0016965866088867188, 0.01258087158203125, -0.019683837890625, -0.025848388671875, -0.01422119140625, -0.01995849609375, -0.009368896484375, 0.0439453125, -0.0203094482421875, -0.003269195556640625, -0.006084442138671875, -0.00521087646484375, -0.003757476806640625, 0.042327880859375, 0.0206298828125, -0.003448486328125, 0.0190277099609375, -0.039093017578125, -0.04058837890625, 0.01013946533203125, 0.0260772705078125, -0.0074310302734375, -0.0305938720703125, -0.0237884521484375, 0.0189056396484375, -0.04376220703125, 0.037322998046875, 0.0648193359375, 0.0178680419921875, 0.052520751953125, -0.003753662109375, 0.033538818359375, 0.03497314453125, 0.019744873046875, -0.040191650390625, -0.01617431640625, 0.055572509765625, 0.0142974853515625, -0.03607177734375, 0.03857421875, -0.036376953125, 0.003688812255859375, 0.10302734375, 0.09405517578125, -0.114990234375, -0.00241851806640625, -0.004627227783203125, -0.01154327392578125, 0.0301513671875, 0.01413726806640625, -0.01430511474609375, 0.0015840530395507812, 0.02349853515625, -0.01953125, -0.01392364501953125, 0.0248260498046875, 0.028533935546875, -0.00849151611328125, -0.00047469139099121094, 0.091552734375, 0.0239715576171875, -0.01525115966796875, -0.012603759765625, 0.00543975830078125, 0.022796630859375, -0.0232696533203125, 0.00244903564453125, 0.0225372314453125, -0.0031890869140625, -0.055389404296875, 0.0145263671875, -0.0211334228515625, -0.0133819580078125, -0.00504302978515625, -0.00867462158203125, 0.06341552734375, -0.0006275177001953125, 0.0184478759765625, -0.031768798828125, -0.037811279296875, 0.04107666015625, 0.029266357421875, -0.0042266845703125, -0.040252685546875, -0.032073974609375, -0.004009246826171875, 0.00484466552734375, -0.03094482421875, -0.0008444786071777344, -0.0243377685546875, -0.01389312744140625, 0.09674072265625, -0.012908935546875, -0.0391845703125, 0.002872467041015625, 0.00600433349609375, 0.00659942626953125, -0.038238525390625, 0.0023193359375, -0.08782958984375, -0.046173095703125, -0.0240631103515625, -0.057281494140625, 0.000012755393981933594, -0.052337646484375, -0.061004638671875, 0.0760498046875, 0.0186767578125, 0.0221405029296875, -0.00022232532501220703, 0.0291900634765625, -0.01526641845703125, 0.004222869873046875, -0.03253173828125, 0.039703369140625, 0.01189422607421875, 0.039154052734375, -0.0083770751953125, 0.01395416259765625, 0.020721435546875, -0.0004756450653076172, 0.09002685546875, 0.0266876220703125, -0.033203125, -0.0270233154296875, 0.01523590087890625, 0.0242462158203125, -0.0304107666015625, 0.035064697265625, 0.004207611083984375, 0.013916015625, 0.039306640625, -0.041778564453125, 0.0311737060546875, -0.034759521484375, 0.0016355514526367188, 0.004817962646484375, -0.0177459716796875, -0.044525146484375, 0.00933837890625, 0.0291290283203125, -0.07037353515625, 0.0187835693359375, 0.0256805419921875, 0.041778564453125, -0.02740478515625, 0.039093017578125, 0.009246826171875, -0.0289154052734375, 0.061065673828125, -0.060333251953125, 0.057159423828125, 0.00467681884765625, 0.0170135498046875, 0.0009322166442871094, 0.0213165283203125, 0.075927734375, -0.02392578125, 0.002582550048828125, 0.040557861328125, -0.005794525146484375, 0.03936767578125, 0.01126861572265625, 0.0215911865234375, -0.0830078125, -0.04644775390625, 0.08782958984375, 0.09869384765625, -0.040679931640625, -0.01898193359375, -0.0017938613891601562, 0.019683837890625, 0.0305633544921875, 0.01480865478515625, 0.07440185546875, -0.025848388671875, -0.0020885467529296875, -0.044891357421875, 0.0052337646484375, 0.0155487060546875, -0.00586700439453125, -0.0148468017578125, -0.01389312744140625, 0.02252197265625, 0.0235137939453125, -0.03594970703125, 0.023895263671875, 0.037811279296875, 0.0164794921875, -0.0252532958984375, 0.05535888671875, 0.033721923828125, 0.001068115234375, -0.0170135498046875, 0.005168914794921875, 0.0292205810546875, -0.0007281303405761719, -0.018798828125, -0.0052642822265625, 0.01995849609375, 0.0301513671875, -0.02362060546875, 0.01739501953125, 0.03363037109375, 0.0269927978515625, -0.0364990234375, -0.03173828125, 0.0164642333984375, -0.040496826171875, -0.0018062591552734375, -0.0016460418701171875, -0.0223846435546875, -0.0010442733764648438, -0.0185546875, -0.004222869873046875, 0.02447509765625, 0.0223541259765625, -0.0023021697998046875, 0.0296630859375, -0.01222991943359375, -0.0105743408203125, 0.020233154296875, -0.044647216796875, 0.052978515625, 0.0018367767333984375, -0.11224365234375, -0.040771484375, -0.0080718994140625, -0.0225372314453125, 0.057647705078125, 0.0396728515625, -0.0270233154296875, 0.0157623291015625, 0.0184326171875, -0.045501708984375, 0.044219970703125, -0.001392364501953125, 0.0313720703125, 0.00989532470703125, -0.009307861328125, -0.00914764404296875, -0.0714111328125, -0.01155853271484375, -0.01386260986328125, -0.01041412353515625, -0.013275146484375, 0.094482421875, -0.0020771026611328125, -0.01111602783203125, -0.04412841796875, 0.019317626953125, -0.04827880859375, -0.042633056640625, 0.038787841796875, -0.0142669677734375, -0.01265716552734375, 0.0104217529296875, -0.04156494140625, 0.0751953125, -0.0210723876953125, 0.0217437744140625, 0.038055419921875, -0.0281524658203125, 0.00019860267639160156, 0.0282440185546875, 0.00934600830078125, -0.01751708984375, -0.041595458984375, -0.0240631103515625, 0.0285797119140625, 0.0272674560546875, 0.042327880859375, -0.0273590087890625, 0.037506103515625, -0.034912109375, -0.037994384765625, 0.02313232421875, -0.0732421875, 0.022186279296875, 0.017669677734375, -0.004749298095703125, -0.0101318359375, -0.0152740478515625, -0.0214080810546875, 0.001678466796875, 0.01090240478515625, -0.0097503662109375, 0.0020389556884765625, 0.005462646484375, 0.0309600830078125, 0.0548095703125, 0.038330078125, -0.02587890625, 0.0162200927734375, 0.049468994140625, -0.0224151611328125, 0.02685546875, -0.032379150390625, -0.0207977294921875, -0.026397705078125, -0.003215789794921875, 0.0184478759765625, -0.0030536651611328125, -0.0262298583984375, -0.041412353515625, 0.005634307861328125, -0.019439697265625, -0.0261383056640625, 0.0018825531005859375, -0.0245361328125, 0.0034465789794921875, 0.0391845703125, -0.043609619140625, 0.01383209228515625, 0.00650787353515625, 0.0140533447265625, -0.052276611328125, 0.0064239501953125, -0.00968170166015625, 0.0087890625, 0.004528045654296875, -0.01007080078125, 0.054840087890625, 0.011260986328125, -0.06512451171875, -0.0386962890625, -0.0543212890625, -0.002185821533203125, -0.039276123046875, -0.0283355712890625, 0.0021800994873046875, 0.002536773681640625, 0.004486083984375, -0.06378173828125, -0.02056884765625, -0.0576171875, 0.0228271484375, -0.029541015625, 0.041412353515625, 0.0374755859375, -0.029022216796875, -0.084228515625, 0.0285797119140625, -0.0302581787109375, -0.03759765625, -0.0275115966796875, 0.006443023681640625, -0.00012165307998657227, -0.016265869140625, -0.01016998291015625, -0.034423828125, -0.0292816162109375, 0.020050048828125, 0.006053924560546875, 0.0009741783142089844, 0.0220947265625, 0.033294677734375, -0.06689453125, 0.003604888916015625, -0.0097808837890625, -0.0203094482421875, 0.0176544189453125, 0.0051727294921875, 0.0168609619140625, 0.06146240234375, -0.01177215576171875, -0.00373077392578125, -0.017608642578125, -0.05255126953125, -0.0081024169921875, -0.049713134765625, 0.007579803466796875, -0.00572967529296875, 0.0291900634765625, 0.020477294921875, -0.0016260147094726562, -0.016693115234375, -0.05242919921875, -0.0426025390625, -0.03594970703125, -0.00852203369140625, 0.0286865234375, -0.08892822265625, 0.01149749755859375, 0.00820159912109375, -0.01111602783203125, -0.0015916824340820312, 0.0038318634033203125, -0.0328369140625, -0.0004763603210449219, 0.0242767333984375, -0.005008697509765625, -0.00917816162109375, -0.038543701171875, 0.03704833984375, -0.03173828125, -0.04681396484375, 0.002552032470703125, 0.038848876953125, -0.039306640625, -0.0190277099609375, 0.019500732421875, 0.0215911865234375, -0.0289764404296875, -0.010009765625, 0.0190887451171875, 0.047119140625, -0.01727294921875, -0.031280517578125, -0.018280029296875, 0.03955078125, -0.0028858184814453125, 0.04754638671875, -0.0091094970703125, 0.04193115234375, 0.014739990234375, 0.069580078125, -0.01861572265625, -0.050384521484375, -0.022216796875, 0.0277862548828125, 0.038543701171875, -0.0147552490234375, 0.06512451171875, -0.0199127197265625, -0.0018815994262695312, 0.0157012939453125, 0.04010009765625, -0.01409912109375, 0.0092010498046875, -0.023956298828125, 0.0246429443359375, -0.0016193389892578125 ]
f07fc29356130c6d799b5ebfc950b5299e1e75a1
Wordpress Stackexchange Q: How can I change the admin search posts fields? I have a custom post type that includes many custom fields. I would like to add them as a search target to admin search. Currently the admin search searches only the content and the title, I would like it to search these custom fields as well. Is there a way to do that ? A: It is possible, but you'll have to play a little bit with the actual query. As always, the furious posts_clauses filter comes to action: function wpse_alter_posts_search( $pieces ) { global $wpdb; // Make the input save $search_string = like_escape( $_GET['s'] ); // Your new WHERE clause $where = $wpdb->prepare( "$wpdb->postmeta.%s LIKE %s", 'YOUR_COLUMN', // Should match your col name 1) "%{$search_string}%" ); // Not sure if this exactly the same on your install 2) $pieces['where'] = str_replace( 'AND (((', "AND ((({$where} ", $pieces['where'] ); return $pieces; } add_filter( 'posts_clauses', 'wpse_alter_posts_search' ); NOTES * *Could be that you need to unserialize some parts to be search able. *You better simply dump the $pieces to take a look into them, before altering the query (right after the $search_string was received).
Q: How can I change the admin search posts fields? I have a custom post type that includes many custom fields. I would like to add them as a search target to admin search. Currently the admin search searches only the content and the title, I would like it to search these custom fields as well. Is there a way to do that ? A: It is possible, but you'll have to play a little bit with the actual query. As always, the furious posts_clauses filter comes to action: function wpse_alter_posts_search( $pieces ) { global $wpdb; // Make the input save $search_string = like_escape( $_GET['s'] ); // Your new WHERE clause $where = $wpdb->prepare( "$wpdb->postmeta.%s LIKE %s", 'YOUR_COLUMN', // Should match your col name 1) "%{$search_string}%" ); // Not sure if this exactly the same on your install 2) $pieces['where'] = str_replace( 'AND (((', "AND ((({$where} ", $pieces['where'] ); return $pieces; } add_filter( 'posts_clauses', 'wpse_alter_posts_search' ); NOTES * *Could be that you need to unserialize some parts to be search able. *You better simply dump the $pieces to take a look into them, before altering the query (right after the $search_string was received). A: kaiser's answer got me on the right track but I had to join the postmeta table and add a group by as well. Now like_escape is $wpdb->esc_like. Replace [your_post_type] with your post type and [your_postmeta_key] with your meta key: //join postmeta for search add_filter( 'posts_join' , function($join){ global $wpdb; if(is_search() && is_admin() && $_GET['post_type'] == '[your_post_type]') { $join .= " LEFT JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id "; } return $join; }); //search [your_postmeta_key] for search string add_filter( 'posts_where', function( $where ) { global $wpdb; if(is_search() && is_admin() && $_GET['post_type'] == '[your_post_type]') { $searchstring = '%' . $wpdb->esc_like( $_GET['s'] ) . '%'; //search [your_postmeta_key] as well $where .= $wpdb->prepare(" OR ($wpdb->postmeta.meta_key = '[your_postmeta_key]' AND $wpdb->postmeta.meta_value LIKE %s) ", $searchstring); } return $where; }); //group by post ID add_filter( 'posts_groupby', function ($groupby, $query) { global $wpdb; if(is_search() && is_admin() && $_GET['post_type'] == '[your_post_type]') { $groupby = "{$wpdb->posts}.ID"; } return $groupby; }, 10, 2 );
wordpress
{ "language": "en", "length": 347, "provenance": "stackexchange_00019.jsonl.gz:417858", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44893" }
[ 0.03460693359375, 0.0005092620849609375, 0.0236358642578125, -0.00865936279296875, -0.0017900466918945312, -0.0111846923828125, 0.0287322998046875, -0.032684326171875, 0.007305145263671875, 0.01287078857421875, -0.034088134765625, -0.0014238357543945312, -0.01090240478515625, -0.0298004150390625, -0.003902435302734375, -0.0279693603515625, 0.0265045166015625, 0.0113983154296875, 0.028717041015625, -0.00970458984375, 0.0224456787109375, 0.005130767822265625, 0.0191650390625, -0.04364013671875, 0.02587890625, -0.025909423828125, 0.05987548828125, -0.0231475830078125, 0.04931640625, -0.0009975433349609375, 0.036224365234375, -0.06390380859375, 0.0347900390625, -0.0038852691650390625, 0.004596710205078125, -0.02996826171875, -0.0180206298828125, 0.01168060302734375, -0.01617431640625, 0.016876220703125, 0.0296630859375, -0.0260009765625, -0.046905517578125, 0.044281005859375, -0.0288543701171875, -0.04132080078125, 0.03240966796875, -0.01548004150390625, 0.012481689453125, 0.005401611328125, -0.01433563232421875, 0.01093292236328125, 0.0077362060546875, -0.0638427734375, -0.006572723388671875, -0.017242431640625, -0.0286102294921875, -0.0170135498046875, 0.04193115234375, 0.01357269287109375, -0.02203369140625, -0.052703857421875, 0.0128631591796875, -0.0275115966796875, 0.0099029541015625, 0.0086517333984375, 0.08172607421875, 0.0208740234375, -0.049346923828125, -0.01557159423828125, 0.03125, -0.005336761474609375, -0.00540924072265625, 0.0084381103515625, 0.01348114013671875, -0.06298828125, 0.00728607177734375, -0.0234527587890625, -0.00414276123046875, 0.053863525390625, 0.0374755859375, -0.0008897781372070312, 0.008331298828125, -0.01137542724609375, 0.00919342041015625, -0.004970550537109375, -0.002315521240234375, -0.004352569580078125, -0.0118865966796875, -0.0029315948486328125, -0.00385284423828125, -0.01001739501953125, -0.058380126953125, 0.0276031494140625, 0.018890380859375, -0.01306915283203125, 0.036041259765625, 0.023834228515625, 0.0282135009765625, 0.02337646484375, 0.01015472412109375, -0.06268310546875, 0.0277252197265625, -0.0296478271484375, 0.0194854736328125, -0.00907135009765625, -0.0006909370422363281, -0.004444122314453125, 0.05511474609375, 0.0266876220703125, -0.01195526123046875, 0.0245208740234375, -0.0076141357421875, -0.00888824462890625, -0.044921875, 0.0211334228515625, -0.00911712646484375, -0.050689697265625, -0.00250244140625, -0.0224761962890625, -0.021697998046875, -0.0193939208984375, 0.03131103515625, 0.01291656494140625, 0.00019431114196777344, -0.01029205322265625, -0.0404052734375, 0.0180511474609375, 0.00274658203125, 0.03216552734375, -0.004375457763671875, -0.001251220703125, 0.0272064208984375, 0.03936767578125, 0.007373809814453125, -0.017730712890625, 0.033203125, -0.0155792236328125, -0.0053558349609375, 0.012054443359375, 0.0150604248046875, -0.037933349609375, -0.034393310546875, 0.004650115966796875, 0.039825439453125, 0.02032470703125, 0.0386962890625, 0.008331298828125, -0.0101776123046875, -0.039154052734375, -0.0011157989501953125, 0.048828125, 0.04229736328125, 0.014923095703125, -0.061004638671875, 0.018768310546875, 0.04345703125, -0.018768310546875, -0.04638671875, -0.062286376953125, 0.033843994140625, 0.0037593841552734375, 0.01383209228515625, -0.01215362548828125, -0.038818359375, -0.01107025146484375, -0.049713134765625, -0.01064300537109375, 0.0182647705078125, -0.029266357421875, 0.053924560546875, -0.0057220458984375, -0.0018892288208007812, -0.005702972412109375, 0.00354766845703125, -0.0017232894897460938, -0.005596160888671875, 0.0266876220703125, 0.0026702880859375, 0.0266265869140625, 0.0292205810546875, -0.0242767333984375, 0.05950927734375, -0.01131439208984375, -0.0770263671875, 0.041015625, -0.003559112548828125, 0.04974365234375, 0.054840087890625, 0.0006537437438964844, 0.037994384765625, -0.005527496337890625, -0.005596160888671875, 0.0121917724609375, -0.03460693359375, -0.04193115234375, 0.0108489990234375, 0.00646209716796875, -0.0227508544921875, 0.018890380859375, 0.019561767578125, 0.0227508544921875, 0.00656890869140625, 0.03533935546875, -0.0013017654418945312, 0.02667236328125, -0.0164794921875, 0.0030002593994140625, -0.01959228515625, 0.024383544921875, 0.026123046875, 0.01873779296875, -0.052276611328125, 0.034423828125, 0.0020809173583984375, -0.0258636474609375, 0.019073486328125, 0.03363037109375, 0.0128021240234375, 0.007354736328125, 0.03582763671875, -0.07037353515625, 0.01535797119140625, 0.01277923583984375, 0.046905517578125, 0.02264404296875, -0.0157928466796875, 0.0155029296875, 0.05755615234375, 0.0248565673828125, 0.009429931640625, 0.029266357421875, 0.06640625, 0.040557861328125, 0.00005340576171875, -0.0007343292236328125, 0.02532958984375, -0.08563232421875, 0.00214385986328125, 0.047332763671875, 0.041229248046875, 0.07232666015625, -0.0027980804443359375, -0.049896240234375, 0.103271484375, -0.031585693359375, 0.004119873046875, -0.0287322998046875, -0.002193450927734375, 0.05352783203125, -0.03167724609375, -0.003192901611328125, 0.002414703369140625, -0.0360107421875, -0.00978851318359375, 0.036651611328125, -0.0191497802734375, 0.01004791259765625, 0.0006074905395507812, 0.01953125, -0.00628662109375, 0.02166748046875, 0.0192413330078125, 0.003185272216796875, 0.050872802734375, 0.0206298828125, 0.034271240234375, 0.0251922607421875, -0.046539306640625, 0.028717041015625, 0.018280029296875, 0.00685882568359375, 0.005035400390625, -0.009979248046875, -0.001560211181640625, -0.011474609375, -0.0217132568359375, 0.02691650390625, 0.005756378173828125, -0.015655517578125, 0.0035400390625, 0.0217742919921875, -0.038665771484375, 0.004436492919921875, -0.0090179443359375, -0.0694580078125, 0.0049591064453125, 0.059173583984375, 0.0272674560546875, -0.01088714599609375, 0.0302276611328125, -0.00247955322265625, -0.017791748046875, 0.048614501953125, -0.011505126953125, -0.042938232421875, -0.0037174224853515625, -0.023284912109375, 0.02569580078125, -0.012359619140625, 0.03765869140625, 0.06494140625, 0.00962066650390625, 0.0048065185546875, -0.0064697265625, 0.038330078125, -0.004787445068359375, -0.004764556884765625, -0.0049285888671875, -0.02081298828125, -0.00017726421356201172, 0.004398345947265625, 0.0302886962890625, 0.0206756591796875, 0.0274200439453125, -0.0220489501953125, 0.00647735595703125, 0.031768798828125, -0.0657958984375, -0.08734130859375, 0.0119171142578125, -0.0732421875, -0.0611572265625, 0.0017805099487304688, -0.05609130859375, 0.0248260498046875, 0.00952911376953125, -0.01125335693359375, 0.031097412109375, 0.0053558349609375, -0.043487548828125, 0.0183258056640625, -0.04681396484375, 0.02069091796875, -0.0162506103515625, 0.0016117095947265625, 0.0063323974609375, 0.03814697265625, 0.01495361328125, -0.071533203125, 0.0097198486328125, 0.05859375, -0.0092010498046875, 0.01018524169921875, 0.02947998046875, -0.02239990234375, 0.030059814453125, 0.00609588623046875, 0.056610107421875, 0.028289794921875, -0.036102294921875, -0.0161590576171875, 0.0002968311309814453, 0.061279296875, 0.044464111328125, -0.052459716796875, -0.0183868408203125, 0.060211181640625, -0.0019683837890625, -0.0187225341796875, -0.0374755859375, 0.0012674331665039062, -0.022003173828125, 0.00044846534729003906, -0.00679779052734375, 0.0048980712890625, -0.038421630859375, 0.055633544921875, 0.048248291015625, 0.0328369140625, 0.004177093505859375, -0.00970458984375, 0.0247802734375, 0.016876220703125, 0.045867919921875, -0.03436279296875, 0.018829345703125, -0.03753662109375, 0.0157012939453125, 0.010894775390625, -0.006557464599609375, 0.01216888427734375, -0.040771484375, -0.01971435546875, -0.030731201171875, 0.037994384765625, -0.045684814453125, 0.0147857666015625, -0.044036865234375, -0.023345947265625, -0.028778076171875, 0.07568359375, -0.052734375, -0.01416778564453125, -0.028594970703125, 0.0118408203125, -0.0026416778564453125, -0.060211181640625, -0.01010894775390625, -0.0213165283203125, -0.0760498046875, 0.007526397705078125, -0.049468994140625, -0.01248931884765625, -0.0228424072265625, 0.0220489501953125, -0.01531982421875, -0.050872802734375, 0.00957489013671875, -0.02691650390625, -0.016448974609375, 0.042144775390625, -0.042572021484375, 0.00672149658203125, -0.0018930435180664062, -0.022979736328125, -0.07843017578125, -0.0291900634765625, 0.016204833984375, 0.05889892578125, 0.017333984375, -0.0308685302734375, -0.0156097412109375, 0.0506591796875, 0.007434844970703125, -0.0235595703125, 0.01129913330078125, -0.017486572265625, 0.01209259033203125, 0.03729248046875, -0.0191650390625, -0.006206512451171875, -0.01617431640625, 0.007049560546875, -0.002231597900390625, 0.04534912109375, -0.004970550537109375, 0.0186920166015625, 0.00806427001953125, -0.0125579833984375, -0.00939178466796875, -0.0179595947265625, -0.039703369140625, 0.035430908203125, -0.0526123046875, 0.00995635986328125, -0.0175018310546875, -0.03564453125, 0.055572509765625, 0.0318603515625, 0.0143585205078125, -0.016143798828125, 0.07098388671875, 0.0145416259765625, -0.03924560546875, -0.005706787109375, 0.0020885467529296875, -0.0001728534698486328, 0.0011997222900390625, 0.045074462890625, -0.0167083740234375, -0.00977325439453125, 0.053192138671875, -0.0294036865234375, -0.0274200439453125, -0.01092529296875, 0.038116455078125, 0.004718780517578125, -0.01727294921875, 0.0231475830078125, -0.0240478515625, 0.0276641845703125, 0.0264892578125, 0.004108428955078125, -0.048126220703125, 0.02362060546875, 0.055572509765625, -0.0382080078125, 0.036834716796875, -0.0244903564453125, -0.0258636474609375, -0.005832672119140625, 0.01471710205078125, -0.019134521484375, 0.029052734375, -0.0120391845703125, 0.00594329833984375, 0.00417327880859375, 0.0025653839111328125, -0.0026950836181640625, -0.005664825439453125, -0.00565338134765625, 0.038330078125, -0.0401611328125, -0.0118560791015625, -0.00794219970703125, 0.00316619873046875, 0.02105712890625, -0.0264739990234375, -0.03741455078125, -0.0284423828125, -0.006946563720703125, -0.01522064208984375, 0.026947021484375, 0.0035572052001953125, 0.01751708984375, 0.033050537109375, 0.00212860107421875, 0.0233001708984375, -0.002262115478515625, 0.036041259765625, -0.01513671875, 0.05078125, 0.036102294921875, 0.0016155242919921875, -0.0016641616821289062, 0.0738525390625, 0.01493072509765625, 0.027801513671875, -0.01898193359375, 0.01386260986328125, 0.01031494140625, 0.015289306640625, -0.003936767578125, 0.01531219482421875, 0.0203704833984375, -0.01288604736328125, 0.042694091796875, 0.0240936279296875, 0.0299530029296875, -0.00850677490234375, -0.0350341796875, -0.02703857421875, -0.0044403076171875, 0.049285888671875, 0.0033855438232421875, -0.025146484375, 0.01313018798828125, 0.00434112548828125, -0.024139404296875, -0.03338623046875, 0.005767822265625, 0.036224365234375, 0.0094146728515625, 0.00258636474609375, -0.010467529296875, -0.039031982421875, -0.0235443115234375, 0.01021575927734375, -0.01343536376953125, -0.0194091796875, -0.0295562744140625, -0.01126861572265625, 0.0067596435546875, 0.015869140625, -0.0264739990234375, -0.0374755859375, 0.007198333740234375, 0.004238128662109375, 0.0352783203125, -0.0019464492797851562, 0.037261962890625, -0.0164642333984375, -0.0050048828125, 0.034393310546875, 0.0175323486328125, 0.002445220947265625, -0.0302276611328125, -0.040679931640625, -0.01580810546875, -0.0482177734375, -0.0153045654296875, -0.03558349609375, -0.02020263671875, -0.050506591796875, -0.00543975830078125, 0.0204010009765625, 0.0191192626953125, 0.0240325927734375, -0.0248565673828125, -0.01708984375, -0.007457733154296875, 0.0147552490234375, 0.01227569580078125, -0.0390625, 0.05511474609375, -0.0299072265625, 0.0477294921875, -0.0206756591796875, 0.00028896331787109375, -0.0047149658203125, 0.0091400146484375, 0.0011777877807617188, -0.053802490234375, -0.034271240234375, 0.005954742431640625, -0.0450439453125, 0.046661376953125, 0.0221405029296875, -0.0022945404052734375, 0.02398681640625, -0.01409149169921875, -0.003940582275390625, -0.040985107421875, 0.0140228271484375, -0.06024169921875, 0.03228759765625, -0.036041259765625, 0.00835418701171875, 0.044219970703125, -0.01006317138671875, -0.04827880859375, -0.0035247802734375, 0.017852783203125, -0.00182342529296875, 0.0186004638671875, -0.02490234375, 0.01261138916015625, 0.004486083984375, 0.0013446807861328125, 0.0025272369384765625, -0.0272674560546875, -0.01027679443359375, -0.043548583984375, -0.0694580078125, -0.01270294189453125, 0.04693603515625, 0.0465087890625, -0.020721435546875, -0.01168060302734375, 0.058746337890625, -0.018524169921875, 0.0164337158203125, 0.046112060546875, 0.0535888671875, -0.07684326171875, 0.0176239013671875, 0.0123291015625, -0.00959014892578125, 0.017913818359375, 0.02337646484375, -0.0136566162109375, -0.0223236083984375, -0.03509521484375, 0.040435791015625, -0.0083160400390625, -0.01251220703125, 0.02215576171875, -0.0228118896484375, -0.047271728515625, 0.054595947265625, 0.006591796875, -0.017303466796875, 0.05279541015625, -0.0141143798828125, 0.0426025390625, -0.0234375, 0.023468017578125, -0.01325225830078125, -0.0104827880859375, -0.06597900390625, -0.002960205078125, -0.0167083740234375, -0.0174407958984375, -0.0024871826171875, 0.0535888671875, 0.05255126953125, 0.061492919921875, 0.02423095703125, -0.02496337890625, 0.03387451171875, 0.0031299591064453125, -0.0321044921875, -0.0190277099609375, -0.00414276123046875, 0.0638427734375, -0.0307769775390625, 0.0240936279296875, -0.0287933349609375, 0.00940704345703125, -0.01531982421875, -0.052032470703125, 0.061431884765625, -0.0435791015625, 0.00029015541076660156, 0.0099334716796875, 0.0312042236328125, -0.0033702850341796875, 0.0034694671630859375, -0.0108795166015625, -0.02972412109375, -0.01270294189453125, -0.01568603515625, -0.05718994140625, -0.0091552734375, -0.0252227783203125, -0.0185394287109375, 0.073974609375, 0.0146331787109375, -0.012542724609375, 0.034881591796875, 0.041748046875, -0.03985595703125, 0.01959228515625, -0.025390625, 0.08563232421875, -0.0111236572265625, 0.056610107421875, -0.06634521484375, 0.002567291259765625, 0.030914306640625, 0.03564453125, 0.02813720703125, 0.0030460357666015625, -0.022125244140625, -0.0081787109375, 0.02935791015625, 0.0279541015625, -0.001949310302734375, 0.022705078125, 0.0152587890625, 0.037353515625, 0.02801513671875, -0.026947021484375, 0.028533935546875, -0.016815185546875, -0.01325225830078125, 0.040008544921875, 0.01274871826171875, 0.051116943359375, -0.023193359375, -0.028778076171875, -0.0207061767578125, -0.026885986328125, 0.03387451171875, -0.0753173828125, -0.0191650390625, 0.0404052734375, 0.035919189453125, -0.06695556640625, -0.030242919921875, -0.039276123046875, 0.045074462890625, 0.0110931396484375, 0.0426025390625, -0.00794219970703125, 0.004299163818359375, 0.092529296875, -0.0276947021484375, 0.016448974609375, 0.032318115234375, -0.037872314453125, 0.035430908203125, 0.0290374755859375, 0.023406982421875, 0.0031452178955078125, 0.0234527587890625, 0.0125732421875, 0.037353515625, -0.046966552734375, -0.0140228271484375, 0.017181396484375, 0.01641845703125, -0.004688262939453125, 0.007312774658203125, -0.01381683349609375, 0.0396728515625, 0.049346923828125, 0.0167083740234375, 0.01081085205078125, 0.009307861328125, -0.0179901123046875, -0.0171051025390625, 0.01702880859375, 0.0080413818359375, 0.0455322265625, -0.04193115234375, 0.016265869140625, 0.033538818359375, 0.0670166015625, 0.010101318359375, 0.0301055908203125, -0.004718780517578125, -0.01526641845703125, -0.0133514404296875, 0.0008602142333984375, -0.009552001953125, 0.00432586669921875, -0.04632568359375, -0.045684814453125, -0.00182342529296875, 0.051116943359375, -0.01369476318359375, -0.020294189453125, -0.0118560791015625, -0.0135955810546875, -0.0408935546875, -0.007080078125, 0.0254364013671875, -0.02484130859375, -0.006061553955078125, -0.05181884765625, 0.03082275390625, 0.033782958984375, 0.0195159912109375, -0.003200531005859375, 0.007354736328125, 0.02801513671875, 0.072265625, 0.01476287841796875, 0.0283050537109375, -0.007350921630859375, -0.01424407958984375, -0.00498199462890625, 0.03582763671875, 0.0810546875, -0.04595947265625, -0.005626678466796875, -0.0273284912109375, -0.1175537109375, 0.02862548828125, 0.06201171875, 0.0019989013671875, -0.03265380859375, -0.0009489059448242188, -0.0311431884765625, -0.00008690357208251953, 0.02203369140625, 0.0020599365234375, 0.008331298828125, 0.0006780624389648438, -0.007965087890625, -0.032684326171875, -0.0199737548828125, 0.01265716552734375, 0.0250701904296875, -0.046844482421875, 0.0745849609375, -0.03240966796875, -0.01023101806640625, -0.041229248046875, 0.030059814453125, -0.046417236328125, -0.029998779296875, -0.0024280548095703125, -0.0226593017578125, 0.003704071044921875, 0.01666259765625, 0.04095458984375, -0.033203125, 0.060882568359375, -0.08203125, -0.0394287109375, -0.01885986328125, 0.034881591796875, -0.06683349609375, 0.01097869873046875, -0.0291290283203125, -0.0094757080078125, 0.0042572021484375, -0.0121917724609375, 0.0213623046875, 0.0245819091796875, 0.032073974609375, 0.031951904296875, 0.013427734375, -0.016387939453125, 0.04254150390625, -0.04248046875, 0.09368896484375, 0.06048583984375, -0.037322998046875, 0.03204345703125, 0.00994110107421875, -0.03924560546875, 0.028350830078125, 0.00870513916015625, -0.0230865478515625, -0.01013946533203125, -0.0243682861328125, -0.034912109375, -0.00439453125, 0.0318603515625, 0.0205841064453125, 0.0167236328125, -0.029693603515625, -0.0267333984375, -0.03472900390625, 0.0049285888671875, -0.01456451416015625, -0.006649017333984375, -0.0418701171875, -0.00911712646484375, -0.01348114013671875, -0.0430908203125, -0.015869140625, 0.004154205322265625, 0.04998779296875, 0.03179931640625, -0.06817626953125, 0.033905029296875, -0.0238189697265625, -0.0013256072998046875, 0.049530029296875, 0.00716400146484375, 0.0074005126953125, 0.044586181640625, -0.0191497802734375, -0.02264404296875, -0.0318603515625, 0.005859375, -0.022186279296875, -0.007740020751953125, 0.033721923828125, 0.004917144775390625, -0.0662841796875, 0.01042938232421875, -0.0243072509765625, 0.0430908203125, -0.005748748779296875, 0.00911712646484375, 0.0523681640625, 0.004108428955078125, -0.049407958984375, -0.0799560546875, 0.01141357421875, -0.061431884765625, 0.0291748046875, -0.004673004150390625, 0.00807952880859375, 0.028228759765625, -0.025665283203125, -0.1004638671875, 0.058563232421875, -0.03900146484375, -0.0262451171875, -0.07574462890625, 0.00971221923828125, 0.020538330078125, -0.0258026123046875, -0.0177001953125, -0.02825927734375, -0.0648193359375, 0.0042266845703125, 0.001964569091796875, 0.0276641845703125, 0.00969696044921875, 0.01305389404296875, -0.035247802734375, 0.0227508544921875, 0.011474609375, 0.0008234977722167969, 0.0265960693359375, -0.0038776397705078125, 0.01288604736328125, 0.02972412109375, -0.04327392578125, -0.03643798828125, -0.0435791015625, -0.049591064453125, 0.0050506591796875, 0.01898193359375, -0.05584716796875, -0.0250701904296875, 0.037506103515625, 0.06787109375, 0.0213623046875, -0.01349639892578125, 0.01263427734375, -0.00875091552734375, -0.0031757354736328125, 0.00414276123046875, 0.0109710693359375, -0.0225982666015625, -0.0029506683349609375, 0.015960693359375, 0.00014960765838623047, 0.01593017578125, -0.0037593841552734375, 0.0084686279296875, -0.00695037841796875, 0.02911376953125, -0.030731201171875, -0.01024627685546875, 0.01207733154296875, 0.013397216796875, -0.049713134765625, -0.0596923828125, 0.00952911376953125, 0.0128021240234375, -0.0589599609375, -0.05194091796875, -0.0137939453125, 0.026336669921875, -0.016510009765625, 0.003147125244140625, 0.00955963134765625, 0.00984954833984375, -0.01190185546875, 0.01464080810546875, -0.050537109375, 0.0195159912109375, 0.018585205078125, -0.0027866363525390625, -0.0606689453125, 0.03485107421875, 0.00882720947265625, 0.054290771484375, 0.0025844573974609375, 0.01248931884765625, -0.002040863037109375, 0.03497314453125, 0.02911376953125, -0.0333251953125, 0.0504150390625, -0.02679443359375, -0.004932403564453125, 0.032318115234375, -0.0283966064453125, -0.019287109375, -0.00548553466796875, -0.01161956787109375, -0.0019083023071289062, 0.00153350830078125 ]
c55a9d16069af4cc992e4e023d7574d5095eed90
Wordpress Stackexchange Q: Uploading Images in the Link Manager In /wordpress/wp-admin/link-add.php there is the possibility to add an image to a link, but it belongs to the category "Advanced" and is really a little too advanced for an average user, which needs first to upload an image somehow and only then to add the URL of the image to a link. Maybe there exists a plugin which simplifies adding an image to a link? A: Well, started as a curiosity, ended up doing a plugin... : After finishing, I went to look in WordPress repository and...yes, there's already one that does it: Easy Blogroll Image : At least, I took a different approach and did something different. Featured Link Image - [edit: released in the WordPress repository, link updated]
Q: Uploading Images in the Link Manager In /wordpress/wp-admin/link-add.php there is the possibility to add an image to a link, but it belongs to the category "Advanced" and is really a little too advanced for an average user, which needs first to upload an image somehow and only then to add the URL of the image to a link. Maybe there exists a plugin which simplifies adding an image to a link? A: Well, started as a curiosity, ended up doing a plugin... : After finishing, I went to look in WordPress repository and...yes, there's already one that does it: Easy Blogroll Image : At least, I took a different approach and did something different. Featured Link Image - [edit: released in the WordPress repository, link updated]
wordpress
{ "language": "en", "length": 127, "provenance": "stackexchange_00019.jsonl.gz:417862", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44902" }
[ 0.11376953125, -0.003993988037109375, 0.054473876953125, 0.00804901123046875, 0.0258941650390625, -0.04229736328125, 0.1038818359375, -0.059051513671875, 0.0093841552734375, 0.005458831787109375, -0.002414703369140625, -0.00420379638671875, -0.0170440673828125, -0.046539306640625, 0.005611419677734375, -0.02362060546875, 0.0280303955078125, -0.0136566162109375, 0.0386962890625, 0.00890350341796875, -0.003917694091796875, 0.030029296875, 0.035308837890625, -0.0298614501953125, 0.0005893707275390625, 0.05377197265625, 0.040557861328125, -0.013824462890625, 0.0038928985595703125, 0.006496429443359375, 0.0110321044921875, -0.037139892578125, 0.032318115234375, -0.027191162109375, 0.023834228515625, -0.01055145263671875, 0.006580352783203125, -0.0205230712890625, -0.0081939697265625, 0.0051727294921875, -0.0007557868957519531, 0.00768280029296875, 0.0513916015625, 0.0238800048828125, 0.002033233642578125, -0.0090484619140625, -0.0215606689453125, -0.06207275390625, 0.0184326171875, -0.0150604248046875, 0.01861572265625, 0.0226593017578125, 0.04205322265625, -0.023651123046875, -0.0088653564453125, 0.0119781494140625, 0.006099700927734375, 0.0222015380859375, 0.046142578125, -0.050506591796875, -0.045989990234375, -0.039337158203125, 0.040435791015625, 0.0006237030029296875, 0.0036678314208984375, -0.0018062591552734375, -0.01007080078125, 0.007671356201171875, -0.009063720703125, -0.004222869873046875, 0.01544952392578125, -0.02545166015625, -0.0098876953125, -0.0246124267578125, -0.007411956787109375, 0.01277923583984375, 0.00861358642578125, -0.0254058837890625, 0.015350341796875, -0.003444671630859375, -0.01363372802734375, -0.036224365234375, 0.0206298828125, -0.007015228271484375, -0.0023784637451171875, 0.0109710693359375, -0.00995635986328125, -0.004131317138671875, -0.0167083740234375, -0.01143646240234375, -0.0218048095703125, -0.004482269287109375, -0.01715087890625, 0.00717926025390625, -0.03448486328125, 0.002285003662109375, 0.0260772705078125, -0.0025768280029296875, 0.0213775634765625, 0.035003662109375, -0.0032367706298828125, -0.04119873046875, 0.04852294921875, -0.0242767333984375, 0.01910400390625, -0.00030732154846191406, 0.004116058349609375, 0.00528717041015625, 0.03692626953125, 0.024505615234375, -0.0230560302734375, 0.053955078125, 0.0106353759765625, -0.005313873291015625, 0.01480865478515625, 0.007099151611328125, -0.014801025390625, 0.0609130859375, -0.0097503662109375, 0.051025390625, -0.0211639404296875, 0.00908660888671875, -0.040496826171875, 0.01617431640625, -0.00655364990234375, -0.008392333984375, 0.01495361328125, -0.0018224716186523438, -0.029815673828125, -0.007221221923828125, -0.015716552734375, 0.0513916015625, 0.058746337890625, 0.0008440017700195312, -0.025115966796875, 0.0007643699645996094, -0.017333984375, -0.03045654296875, -0.01221466064453125, 0.0260162353515625, -0.0250091552734375, -0.0211181640625, 0.0192108154296875, -0.01922607421875, 0.0308837890625, 0.0496826171875, -0.0103759765625, -0.0021839141845703125, 0.019073486328125, -0.0521240234375, 0.04296875, -0.08795166015625, -0.0010519027709960938, 0.00849151611328125, 0.039947509765625, -0.0214691162109375, 0.0024433135986328125, -0.010589599609375, 0.0421142578125, 0.0037841796875, 0.00165557861328125, 0.01198577880859375, 0.04620361328125, 0.0009541511535644531, 0.0261383056640625, -0.0288238525390625, -0.05792236328125, 0.003173828125, 0.0237274169921875, 0.0089874267578125, 0.017486572265625, -0.0241546630859375, 0.0139007568359375, 0.0160675048828125, 0.0004410743713378906, 0.0266265869140625, 0.038970947265625, 0.040985107421875, -0.0012617111206054688, 0.08026123046875, 0.03759765625, -0.01561737060546875, 0.101806640625, -0.034027099609375, -0.02880859375, -0.007476806640625, 0.0009007453918457031, 0.0323486328125, 0.029327392578125, 0.0218658447265625, 0.01064300537109375, 0.0003612041473388672, 0.00821685791015625, 0.00534820556640625, -0.031829833984375, -0.0296783447265625, -0.0026569366455078125, 0.0069427490234375, -0.024749755859375, 0.0218658447265625, -0.0238037109375, -0.001720428466796875, -0.0020847320556640625, 0.0122833251953125, 0.0242462158203125, -0.01100921630859375, 0.00812530517578125, 0.0124664306640625, 0.01531982421875, 0.00989532470703125, -0.00016999244689941406, -0.00864410400390625, 0.0006656646728515625, -0.04937744140625, -0.0101776123046875, 0.045440673828125, -0.0256500244140625, -0.011199951171875, -0.01047515869140625, 0.0185089111328125, -0.033355712890625, -0.00217437744140625, -0.040252685546875, 0.00563812255859375, 0.004962921142578125, 0.01403045654296875, -0.046234130859375, -0.0099639892578125, -0.06573486328125, 0.0219879150390625, -0.0811767578125, 0.06915283203125, -0.037994384765625, 0.0015506744384765625, -0.0158843994140625, -0.023468017578125, -0.0193023681640625, -0.07440185546875, 0.03955078125, 0.0496826171875, 0.028656005859375, 0.0208892822265625, 0.01561737060546875, 0.029998779296875, 0.033905029296875, 0.0234375, 0.05450439453125, -0.0244903564453125, -0.018707275390625, -0.0029277801513671875, 0.01342010498046875, 0.004894256591796875, 0.021270751953125, -0.0372314453125, 0.0110931396484375, 0.0261077880859375, 0.00215911865234375, -0.00507354736328125, -0.03594970703125, 0.035675048828125, 0.00913238525390625, 0.01605224609375, -0.025054931640625, -0.0015001296997070312, 0.035736083984375, 0.01220703125, 0.032012939453125, 0.022308349609375, -0.045867919921875, 0.012725830078125, 0.0205078125, -0.00531768798828125, 0.00001424551010131836, 0.03924560546875, 0.042236328125, -0.005519866943359375, -0.01824951171875, -0.031219482421875, 0.00264739990234375, 0.0200653076171875, -0.0242767333984375, -0.02886962890625, 0.038726806640625, -0.0119781494140625, -0.013153076171875, -0.040557861328125, 0.07464599609375, 0.00148773193359375, -0.0013914108276367188, -0.0060577392578125, 0.039825439453125, -0.01690673828125, -0.030914306640625, 0.0274200439453125, -0.016021728515625, -0.027435302734375, -0.01140594482421875, -0.03741455078125, 0.047515869140625, -0.0302581787109375, 0.036712646484375, 0.07623291015625, -0.006580352783203125, 0.031341552734375, -0.004596710205078125, -0.0102386474609375, 0.00894927978515625, 0.009796142578125, -0.00937652587890625, -0.0211334228515625, -0.04071044921875, 0.00858306884765625, 0.0015382766723632812, -0.033416748046875, -0.011566162109375, -0.02984619140625, -0.03570556640625, -0.0445556640625, -0.09033203125, -0.041168212890625, -0.056610107421875, -0.09649658203125, -0.00634002685546875, 0.05804443359375, -0.05413818359375, 0.001247406005859375, 0.12054443359375, 0.0173797607421875, -0.042266845703125, -0.0201568603515625, 0.0021076202392578125, -0.06353759765625, -0.052642822265625, -0.006061553955078125, 0.0129852294921875, 0.0253143310546875, 0.00438690185546875, 0.0205078125, -0.00269317626953125, -0.030487060546875, 0.0114288330078125, 0.0162811279296875, 0.0023670196533203125, -0.00001150369644165039, 0.0355224609375, -0.0186309814453125, -0.01288604736328125, -0.0021686553955078125, 0.01531219482421875, 0.054656982421875, -0.050933837890625, 0.01267242431640625, -0.032012939453125, -0.021331787109375, -0.0208740234375, 0.01934814453125, 0.041534423828125, -0.017333984375, 0.000812530517578125, -0.0423583984375, 0.0204925537109375, -0.0276641845703125, -0.0172882080078125, -0.0134429931640625, -0.0090179443359375, 0.01222991943359375, -0.028076171875, 0.0214996337890625, 0.005931854248046875, 0.0212249755859375, -0.01580810546875, 0.006755828857421875, -0.0007653236389160156, -0.0179290771484375, -0.0201873779296875, 0.0042266845703125, -0.0040130615234375, -0.01390838623046875, 0.04278564453125, -0.00923919677734375, 0.0291290283203125, -0.022369384765625, 0.0523681640625, -0.053497314453125, -0.037567138671875, 0.0272979736328125, -0.0308074951171875, 0.0308074951171875, -0.053619384765625, -0.01306915283203125, -0.036224365234375, 0.067626953125, 0.0006170272827148438, -0.01210784912109375, -0.0291900634765625, 0.0133056640625, -0.0233612060546875, -0.039947509765625, -0.00689697265625, -0.0040283203125, -0.024871826171875, 0.002468109130859375, -0.001373291015625, -0.0189361572265625, -0.0034732818603515625, 0.0182647705078125, -0.0228118896484375, -0.020843505859375, 0.0283355712890625, -0.0240631103515625, -0.025665283203125, 0.0521240234375, -0.04498291015625, 0.005496978759765625, -0.0313720703125, -0.0179595947265625, -0.1138916015625, -0.0164031982421875, 0.0048828125, 0.060089111328125, -0.0321044921875, 0.0305633544921875, -0.031829833984375, 0.06072998046875, 0.00041675567626953125, 0.0137481689453125, -0.006011962890625, 0.0024261474609375, 0.00963592529296875, -0.026397705078125, -0.01045989990234375, -0.0287933349609375, -0.00615692138671875, -0.04901123046875, -0.041656494140625, 0.001434326171875, -0.0129241943359375, 0.03070068359375, -0.00543212890625, -0.00769805908203125, -0.01226806640625, -0.01412200927734375, -0.0017299652099609375, 0.046417236328125, 0.002471923828125, -0.00960540771484375, -0.0487060546875, -0.03338623046875, -0.005161285400390625, -0.0312042236328125, -0.004428863525390625, 0.034332275390625, 0.05926513671875, 0.017120361328125, 0.0160980224609375, -0.0758056640625, 0.009857177734375, 0.02056884765625, 0.0165863037109375, 0.0243682861328125, 0.016632080078125, 0.001346588134765625, -0.01488494873046875, 0.00562286376953125, 0.033355712890625, -0.0306854248046875, 0.011627197265625, 0.00044918060302734375, -0.024169921875, 0.03765869140625, 0.0148162841796875, 0.00811767578125, 0.034027099609375, -0.00140380859375, -0.030487060546875, -0.0264892578125, 0.04241943359375, -0.0118408203125, 0.022186279296875, -0.03155517578125, -0.02410888671875, -0.0015735626220703125, -0.04986572265625, 0.06591796875, 0.0258941650390625, -0.004222869873046875, 0.004283905029296875, 0.0167388916015625, -0.00009363889694213867, 0.011199951171875, -0.0167694091796875, 0.0017004013061523438, 0.036041259765625, -0.0188751220703125, 0.0018091201782226562, 0.006710052490234375, -0.00839996337890625, 0.033599853515625, 0.03240966796875, -0.01181793212890625, -0.0168609619140625, -0.0025539398193359375, 0.0206298828125, -0.0396728515625, 0.037567138671875, 0.044281005859375, 0.014312744140625, 0.004161834716796875, -0.0207366943359375, 0.0049896240234375, 0.017120361328125, -0.039093017578125, 0.03900146484375, 0.0139007568359375, -0.00634765625, 0.04461669921875, -0.006214141845703125, -0.01497650146484375, 0.01500701904296875, 0.002124786376953125, -0.005695343017578125, 0.04022216796875, 0.0031890869140625, 0.03240966796875, 0.0179595947265625, -0.030548095703125, -0.00019741058349609375, 0.0245361328125, -0.0270538330078125, 0.01971435546875, -0.0036640167236328125, 0.03863525390625, -0.0021419525146484375, -0.032928466796875, 0.035308837890625, -0.029937744140625, -0.01861572265625, 0.01849365234375, -0.0168304443359375, -0.0406494140625, -0.0380859375, -0.0128021240234375, 0.0355224609375, 0.0032291412353515625, -0.005359649658203125, -0.01122283935546875, 0.0122833251953125, 0.0210723876953125, -0.0013532638549804688, -0.00959014892578125, 0.0009899139404296875, 0.005863189697265625, -0.01378631591796875, -0.03485107421875, -0.03851318359375, 0.0243072509765625, 0.0104827880859375, -0.016876220703125, -0.0209808349609375, 0.05303955078125, -0.0071258544921875, -0.0024013519287109375, -0.018035888671875, -0.0007681846618652344, -0.0042572021484375, 0.012969970703125, 0.004772186279296875, -0.027984619140625, -0.010101318359375, -0.0118255615234375, -0.0496826171875, -0.0174560546875, 0.0008473396301269531, -0.017913818359375, -0.009033203125, -0.01434326171875, 0.002079010009765625, 0.035552978515625, -0.01334381103515625, -0.0224456787109375, -0.0204010009765625, 0.00742340087890625, 0.017059326171875, 0.0297393798828125, 0.0245819091796875, -0.018707275390625, -0.0086517333984375, 0.02679443359375, 0.021728515625, -0.01264190673828125, -0.01309967041015625, -0.032135009765625, -0.0286102294921875, -0.054229736328125, 0.00713348388671875, 0.01213836669921875, 0.004444122314453125, 0.0552978515625, 0.0450439453125, 0.0264434814453125, 0.00963592529296875, -0.0023937225341796875, 0.00609588623046875, -0.011505126953125, 0.01213836669921875, 0.004047393798828125, -0.02142333984375, 0.04656982421875, -0.0268402099609375, 0.031524658203125, 0.0033664703369140625, 0.041534423828125, -0.0236663818359375, -0.0305023193359375, -0.00774383544921875, 0.005229949951171875, -0.018096923828125, 0.03326416015625, 0.062286376953125, -0.0015363693237304688, 0.04241943359375, 0.0244903564453125, 0.0229034423828125, 0.026947021484375, 0.038909912109375, 0.0007038116455078125, -0.04718017578125, 0.0184478759765625, 0.003803253173828125, -0.0208282470703125, 0.016937255859375, -0.0249786376953125, 0.04351806640625, 0.0182342529296875, 0.070556640625, -0.038177490234375, 0.0286712646484375, 0.0016937255859375, -0.034027099609375, 0.06341552734375, 0.004730224609375, 0.009002685546875, 0.028594970703125, 0.01019287109375, -0.03271484375, -0.026123046875, -0.008636474609375, -0.0020389556884765625, 0.005161285400390625, 0.00875091552734375, 0.0222625732421875, -0.0028972625732421875, -0.07550048828125, -0.02667236328125, 0.05596923828125, -0.054107666015625, -0.0002696514129638672, 0.01450347900390625, -0.0173797607421875, 0.00885772705078125, -0.005908966064453125, 0.040557861328125, -0.0167083740234375, 0.0294036865234375, 0.032928466796875, 0.0030612945556640625, 0.0552978515625, 0.0445556640625, 0.0233154296875, -0.02777099609375, 0.028717041015625, -0.0024318695068359375, 0.049102783203125, -0.0190277099609375, -0.0006465911865234375, -0.0305938720703125, -0.0261077880859375, -0.003704071044921875, -0.0247039794921875, -0.00133514404296875, -0.00940704345703125, 0.0017795562744140625, 0.093505859375, -0.042205810546875, -0.0176239013671875, 0.0257720947265625, 0.0036468505859375, -0.01042938232421875, -0.00836944580078125, 0.004238128662109375, -0.028961181640625, -0.0010738372802734375, -0.0180206298828125, -0.024383544921875, 0.01226806640625, -0.01806640625, -0.075439453125, 0.1068115234375, -0.021759033203125, 0.0570068359375, -0.0184478759765625, 0.03631591796875, 0.033599853515625, 0.020599365234375, -0.038818359375, 0.048431396484375, -0.0489501953125, 0.04144287109375, -0.0648193359375, 0.0111541748046875, -0.005817413330078125, 0.0146942138671875, 0.06640625, 0.00783538818359375, -0.0079193115234375, -0.011016845703125, 0.039947509765625, 0.047210693359375, -0.005405426025390625, 0.016265869140625, 0.01184844970703125, -0.027862548828125, 0.0218658447265625, 0.0208740234375, 0.0260162353515625, 0.01050567626953125, -0.0166015625, 0.0299530029296875, -0.00014531612396240234, 0.006633758544921875, 0.006893157958984375, 0.043487548828125, -0.01305389404296875, -0.004764556884765625, 0.0152740478515625, -0.043701171875, 0.0184326171875, 0.0217437744140625, -0.00847625732421875, 0.0231781005859375, -0.0055084228515625, -0.0023193359375, 0.02691650390625, -0.00782012939453125, 0.0290985107421875, 0.01522064208984375, 0.019287109375, 0.0465087890625, -0.0290985107421875, 0.01263427734375, 0.0160980224609375, -0.0218963623046875, 0.053314208984375, -0.032135009765625, 0.01361083984375, -0.103515625, -0.0428466796875, 0.03546142578125, 0.07568359375, -0.039703369140625, -0.037689208984375, 0.00099945068359375, 0.00438690185546875, 0.035308837890625, -0.00890350341796875, 0.040313720703125, -0.07464599609375, -0.0262908935546875, -0.040802001953125, 0.01251983642578125, 0.059112548828125, 0.0157623291015625, 0.0077362060546875, 0.01390838623046875, -0.051025390625, 0.0027618408203125, -0.043212890625, 0.0299072265625, -0.0009021759033203125, 0.03253173828125, -0.0146331787109375, 0.050048828125, 0.0006146430969238281, 0.0004303455352783203, -0.01078033447265625, 0.0675048828125, -0.023101806640625, 0.01861572265625, -0.0160369873046875, -0.06756591796875, -0.028045654296875, 0.0234375, 0.01548004150390625, 0.0034694671630859375, 0.0157318115234375, 0.040496826171875, -0.01053619384765625, -0.00923919677734375, 0.028594970703125, -0.0135650634765625, 0.0298614501953125, -0.036163330078125, 0.0692138671875, 0.050750732421875, 0.0010709762573242188, -0.00981903076171875, -0.0380859375, 0.10479736328125, -0.027923583984375, -0.006397247314453125, -0.0028533935546875, -0.039154052734375, 0.006702423095703125, -0.030059814453125, 0.03216552734375, -0.02783203125, -0.10711669921875, -0.031951904296875, -0.01605224609375, -0.0222625732421875, 0.036834716796875, 0.034332275390625, -0.040435791015625, 0.033843994140625, -0.01206207275390625, 0.007049560546875, -0.005596160888671875, -0.0201873779296875, 0.004268646240234375, -0.01226043701171875, 0.0116424560546875, -0.00640106201171875, -0.03302001953125, -0.01497650146484375, -0.0167236328125, 0.01532745361328125, 0.01788330078125, 0.06671142578125, -0.0104217529296875, 0.0143585205078125, 0.02197265625, -0.0275115966796875, 0.007015228271484375, 0.037139892578125, -0.024871826171875, -0.00534820556640625, -0.0258941650390625, -0.022705078125, -0.024078369140625, 0.0255889892578125, 0.006038665771484375, -0.0241851806640625, -0.0130615234375, -0.0088043212890625, 0.01485443115234375, 0.036407470703125, 0.0743408203125, -0.00646209716796875, -0.0159149169921875, -0.043609619140625, -0.0165252685546875, 0.034332275390625, 0.02459716796875, -0.00264739990234375, 0.03704833984375, -0.01282501220703125, -0.01230621337890625, -0.00453948974609375, -0.04437255859375, -0.014923095703125, 0.021392822265625, 0.0281219482421875, -0.0168609619140625, 0.012176513671875, -0.009307861328125, 0.01409912109375, -0.0036182403564453125, 0.028564453125, 0.0220184326171875, -0.05145263671875, 0.0237579345703125, -0.0007810592651367188, 0.03607177734375, -0.0119171142578125, -0.008758544921875, 0.01126861572265625, 0.0087432861328125, -0.0201568603515625, -0.00911712646484375, -0.01158905029296875, -0.04827880859375, -0.031005859375, 0.003864288330078125, -0.0413818359375, -0.04022216796875, -0.0192718505859375, 0.01194000244140625, 0.0253448486328125, 0.006404876708984375, -0.0687255859375, 0.045806884765625, -0.0269317626953125, 0.04058837890625, -0.0223388671875, -0.0211639404296875, 0.010955810546875, 0.056915283203125, -0.04052734375, -0.053466796875, -0.02447509765625, 0.0196533203125, -0.058685302734375, 0.033447265625, 0.023040771484375, -0.041595458984375, 0.05157470703125, 0.05963134765625, 0.04241943359375, 0.11090087890625, 0.0081787109375, -0.035125732421875, -0.0164947509765625, 0.008270263671875, -0.006359100341796875, -0.0224151611328125, 0.03662109375, -0.053375244140625, -0.0194854736328125, -0.031280517578125, -0.02239990234375, -0.032958984375, -0.07354736328125, -0.141357421875, 0.062164306640625, -0.031646728515625, -0.054534912109375, -0.022125244140625, 0.017578125, -0.037628173828125, 0.03778076171875, 0.007274627685546875, -0.0166015625, 0.029815673828125, 0.040618896484375, -0.01084136962890625, 0.025146484375, -0.003154754638671875, 0.00240325927734375, -0.0279541015625, -0.0019283294677734375, 0.01161956787109375, -0.00817108154296875, 0.07501220703125, -0.052520751953125, 0.059173583984375, 0.04010009765625, -0.057403564453125, 0.00479888916015625, -0.030242919921875, -0.0250396728515625, -0.03118896484375, -0.041748046875, 0.004886627197265625, 0.007762908935546875, 0.050933837890625, 0.0200958251953125, 0.00559234619140625, -0.040313720703125, -0.00252532958984375, -0.04644775390625, 0.01519012451171875, -0.0149688720703125, -0.01110076904296875, -0.0274658203125, 0.005764007568359375, 0.0025653839111328125, -0.0018157958984375, -0.005390167236328125, 0.005825042724609375, -0.02337646484375, -0.022125244140625, 0.018218994140625, 0.00568389892578125, -0.037445068359375, 0.0286865234375, 0.09674072265625, -0.050689697265625, 0.046142578125, 0.0022449493408203125, -0.01259613037109375, 0.07769775390625, -0.01319122314453125, 0.00621795654296875, -0.003658294677734375, -0.0208282470703125, 0.036895751953125, -0.0014028549194335938, 0.0184783935546875, -0.03857421875, -0.0194549560546875, -0.0248870849609375, 0.01727294921875, 0.000051915645599365234, 0.005950927734375, -0.0280914306640625, 0.06365966796875, 0.022735595703125, 0.06756591796875, -0.020477294921875, -0.05364990234375, -0.0220794677734375, 0.005168914794921875, -0.061309814453125, 0.0240936279296875, -0.0200347900390625, -0.03179931640625, 0.00435638427734375, 0.0362548828125, -0.0217742919921875, -0.004550933837890625, 0.002834320068359375, -0.026885986328125, -0.0008444786071777344, -0.007495880126953125 ]
8bd8ac047fff6be5d598b3da8cda1ed212ac79bf
Wordpress Stackexchange Q: How can I add extra attribute in the 'Page Attribute' section in wp-admin for pages? I would like to add a select list in the Page Attribute box you see on the right side in the administration interface for pages. Does anyone know if that is possible? Or at least add a custom box below this box? A: Woohoo! As of WP 4.9.0, there is an action hook to add code to the Page Attributes meta box: 'page_attributes_misc_attributes'. See the Codex for reference. Example: function wpse44966_page_attributes( $post ) { wp_nonce_field( 'wpse44966_page_attributes_nonce', 'wpse44966_page_attributes_nonce' ); ?> <p class="post-attributes-label-wrapper wpse44966-label-wrapper"> <label class="wpse44966-label" for="wpse44966_option" style="font-weight: 600;"><?php _e( 'Option Label', 'textdomain' ); ?></label> <input id="wpse44966_option" name="wpse44966_option" type="checkbox" value="1" style="margin-left: 5px;"<?php if( isset( $post->wpse44966_option ) && $post->wpse44966_option ) echo ' checked="checked"'; ?>> </p> <?php } add_action( 'page_attributes_misc_attributes', 'wpse44966_page_attributes' ); function wpse44966_metabox_save_post( $post_id ) { if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if( ! isset( $_POST['wpse44966_page_attributes_nonce'] ) || ! wp_verify_nonce( $_POST['wpse44966_page_attributes_nonce'], 'wpse44966_page_attributes_nonce' ) ) return; if( ! current_user_can( 'edit_post', $post_id ) ) return; $wpse44966_option = (int) ( isset( $_POST['wpse44966_option'] ) && $_POST['wpse44966_option'] ); update_post_meta( $post_id, 'wpse44966_option', $wpse44966_option ); } add_action( 'save_post', 'wpse44966_metabox_save_post' );
Q: How can I add extra attribute in the 'Page Attribute' section in wp-admin for pages? I would like to add a select list in the Page Attribute box you see on the right side in the administration interface for pages. Does anyone know if that is possible? Or at least add a custom box below this box? A: Woohoo! As of WP 4.9.0, there is an action hook to add code to the Page Attributes meta box: 'page_attributes_misc_attributes'. See the Codex for reference. Example: function wpse44966_page_attributes( $post ) { wp_nonce_field( 'wpse44966_page_attributes_nonce', 'wpse44966_page_attributes_nonce' ); ?> <p class="post-attributes-label-wrapper wpse44966-label-wrapper"> <label class="wpse44966-label" for="wpse44966_option" style="font-weight: 600;"><?php _e( 'Option Label', 'textdomain' ); ?></label> <input id="wpse44966_option" name="wpse44966_option" type="checkbox" value="1" style="margin-left: 5px;"<?php if( isset( $post->wpse44966_option ) && $post->wpse44966_option ) echo ' checked="checked"'; ?>> </p> <?php } add_action( 'page_attributes_misc_attributes', 'wpse44966_page_attributes' ); function wpse44966_metabox_save_post( $post_id ) { if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if( ! isset( $_POST['wpse44966_page_attributes_nonce'] ) || ! wp_verify_nonce( $_POST['wpse44966_page_attributes_nonce'], 'wpse44966_page_attributes_nonce' ) ) return; if( ! current_user_can( 'edit_post', $post_id ) ) return; $wpse44966_option = (int) ( isset( $_POST['wpse44966_option'] ) && $_POST['wpse44966_option'] ); update_post_meta( $post_id, 'wpse44966_option', $wpse44966_option ); } add_action( 'save_post', 'wpse44966_metabox_save_post' ); A: There are no convenient hooks to add something to that box. You could do one of two things. 1. Add a new Meta Box You do this by hooking into the add_meta_boxes action and calling add_meta_box. You can specify a callback function in your call to add_meta_box. That callback will take care of echoing out your select list. <?php add_action( 'add_meta_boxes', 'wpse44966_add_meta_box' ); /** * Adds the meta box to the page screen */ function wpse44966_add_meta_box() { add_meta_box( 'wpse44966-meta-box', // id, used as the html id att __( 'WPSE 44966 Meta Box' ), // meta box title, like "Page Attributes" 'wpse44966_meta_box_cb', // callback function, spits out the content 'page', // post type or page. We'll add this to pages only 'side', // context (where on the screen 'low' // priority, where should this go in the context? ); } /** * Callback function for our meta box. Echos out the content */ function wpse44966_meta_box_cb( $post ) { // create your dropdown here } 2. Remove the Default Page attributes meta box, add your own version All the content on the post editting screen, with the exception of the main editor and title area, is a meta box. You can remove them by calling remove_meta_box, then replace them with your own. So, first up, modify the add function above to include a remove meta box call. Then you'll need to copy the page_attributes_meta_box function body from wp-admin/includes/meta-boxes.php and put your stuff below it. <?php add_action( 'add_meta_boxes', 'wpse44966_add_meta_box' ); /** * Adds the meta box to the page screen */ function wpse44966_add_meta_box( $post_type ) { // remove the default remove_meta_box( 'pageparentdiv', 'page', 'side' ); // add our own add_meta_box( 'wpse44966-meta-box', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'wpse44966_meta_box_cb', 'page', 'side', 'low' ); } /** * Callback function for our meta box. Echos out the content */ function wpse44966_meta_box_cb( $post ) { // Copy the the `page_attributes_meta_box` function content here // add your drop down } Either way you do this, you'll need to hook into save_post to save the value of your field with add_post_meta and/or update_post_meta. <?php add_action( 'save_post', 'wpse44966_save_post' ); /** * Save our custom field value */ function wpse44966_save_post( $post_id ) { // check nonces, permissions here // save the data with update_post_meta } This tutorial might help you out.
wordpress
{ "language": "en", "length": 571, "provenance": "stackexchange_00019.jsonl.gz:417885", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/44966" }
[ 0.060150146484375, -0.008819580078125, -0.0091552734375, -0.032379150390625, 0.0252532958984375, -0.054046630859375, 0.0728759765625, 0.0016880035400390625, 0.0028820037841796875, -0.0010194778442382812, -0.01287078857421875, 0.002414703369140625, -0.00257110595703125, -0.0277252197265625, 0.01666259765625, -0.01090240478515625, 0.0229339599609375, -0.0249176025390625, 0.024505615234375, 0.0011749267578125, 0.004970550537109375, 0.0074310302734375, 0.00878143310546875, -0.00946807861328125, 0.035125732421875, -0.0416259765625, 0.03802490234375, -0.00688934326171875, 0.024139404296875, -0.017547607421875, 0.031463623046875, -0.0194854736328125, 0.048431396484375, -0.00479888916015625, -0.018829345703125, 0.048095703125, 0.044342041015625, -0.026214599609375, -0.006145477294921875, 0.032684326171875, 0.026702880859375, 0.0025882720947265625, 0.031341552734375, 0.01425933837890625, -0.019012451171875, -0.01219940185546875, 0.020721435546875, -0.0177001953125, -0.00040078163146972656, -0.0181427001953125, 0.005474090576171875, 0.00492095947265625, -0.0004315376281738281, -0.021942138671875, -0.01080322265625, 0.0296478271484375, -0.044708251953125, -0.00937652587890625, 0.0255126953125, 0.0433349609375, 0.00299072265625, -0.03668212890625, 0.006744384765625, -0.047271728515625, 0.01114654541015625, -0.0012645721435546875, -0.002048492431640625, 0.02178955078125, -0.04248046875, 0.0032196044921875, 0.0176544189453125, -0.03167724609375, -0.0031452178955078125, -0.038909912109375, 0.01238250732421875, 0.027313232421875, -0.0131378173828125, 0.00888824462890625, -0.0048370361328125, 0.01544952392578125, 0.028076171875, 0.0227813720703125, -0.03399658203125, -0.00861358642578125, 0.0260162353515625, 0.0263824462890625, -0.0145263671875, -0.0175933837890625, -0.02349853515625, -0.00543212890625, -0.0302734375, -0.04779052734375, 0.0252532958984375, 0.004108428955078125, -0.0230712890625, -0.00847625732421875, -0.004222869873046875, 0.019378662109375, -0.0015058517456054688, 0.0160064697265625, 0.01033782958984375, -0.046417236328125, 0.05517578125, -0.0297698974609375, -0.0008101463317871094, 0.0250701904296875, 0.0035552978515625, 0.011199951171875, 0.012420654296875, 0.0163421630859375, -0.00411224365234375, -0.02886962890625, 0.0026760101318359375, 0.01201629638671875, -0.05401611328125, -0.013824462890625, -0.0173187255859375, -0.0245208740234375, -0.0078125, -0.01861572265625, -0.0267181396484375, -0.0014972686767578125, 0.031463623046875, -0.05462646484375, 0.030517578125, 0.0166015625, -0.027099609375, -0.037445068359375, 0.002513885498046875, 0.0236968994140625, -0.033599853515625, 0.007465362548828125, 0.04351806640625, 0.01274871826171875, -0.0039520263671875, -0.020050048828125, 0.01556396484375, 0.012054443359375, -0.0063629150390625, 0.0406494140625, -0.007045745849609375, -0.062042236328125, -0.017181396484375, -0.00557708740234375, 0.013427734375, 0.0170135498046875, 0.0232391357421875, 0.028045654296875, -0.0059814453125, -0.038818359375, 0.05389404296875, -0.0308380126953125, 0.0265045166015625, -0.001873016357421875, -0.024505615234375, -0.01287841796875, 0.00372314453125, -0.01439666748046875, -0.00328826904296875, -0.0223388671875, 0.01006317138671875, -0.004695892333984375, 0.0018978118896484375, -0.043609619140625, -0.03802490234375, -0.00836181640625, -0.033935546875, -0.010345458984375, 0.0143585205078125, 0.028289794921875, 0.00879669189453125, -0.0134124755859375, 0.0240325927734375, -0.0018854141235351562, -0.0243377685546875, 0.0157012939453125, 0.0089874267578125, 0.0282440185546875, 0.0220184326171875, -0.0068511962890625, -0.0093536376953125, -0.0413818359375, 0.08892822265625, -0.0262908935546875, -0.05712890625, 0.0268402099609375, 0.00933074951171875, 0.08453369140625, 0.0091094970703125, 0.0221710205078125, 0.01593017578125, -0.0046234130859375, -0.02783203125, 0.004566192626953125, 0.0163116455078125, -0.029693603515625, 0.0006709098815917969, -0.0109710693359375, 0.006008148193359375, -0.0014495849609375, 0.009796142578125, -0.006137847900390625, 0.0230255126953125, 0.01015472412109375, 0.001377105712890625, -0.010009765625, -0.006771087646484375, 0.01261138916015625, -0.033416748046875, -0.01509857177734375, 0.03466796875, -0.0330810546875, -0.00475311279296875, -0.004817962646484375, -0.014617919921875, 0.019012451171875, -0.02691650390625, 0.0232086181640625, -0.00978851318359375, 0.0115509033203125, 0.05914306640625, -0.044403076171875, 0.04547119140625, 0.02313232421875, 0.0426025390625, 0.0070037841796875, -0.037841796875, -0.022064208984375, 0.0096435546875, 0.01641845703125, -0.02435302734375, 0.04034423828125, 0.05560302734375, 0.0166473388671875, -0.04437255859375, -0.03240966796875, -0.04229736328125, -0.0947265625, -0.00803375244140625, 0.0750732421875, 0.0386962890625, 0.0438232421875, -0.0167083740234375, -0.0132293701171875, 0.018798828125, -0.03466796875, 0.0197296142578125, -0.027099609375, -0.016021728515625, 0.01445770263671875, 0.048187255859375, 0.024261474609375, 0.01045989990234375, -0.0214996337890625, 0.032257080078125, 0.024627685546875, -0.02874755859375, 0.0278167724609375, -0.036468505859375, -0.004764556884765625, -0.004314422607421875, -0.048583984375, 0.000812530517578125, -0.0286865234375, 0.06927490234375, -0.02880859375, 0.0310821533203125, -0.00830841064453125, -0.03173828125, 0.01024627685546875, 0.0241546630859375, -0.047088623046875, -0.01216888427734375, -0.005889892578125, 0.01103973388671875, -0.0200042724609375, -0.049163818359375, 0.0292510986328125, -0.0036525726318359375, -0.00786590576171875, 0.01219940185546875, 0.024017333984375, 0.00439453125, 0.0006256103515625, 0.0362548828125, -0.044952392578125, -0.0097198486328125, 0.0001239776611328125, -0.0219573974609375, -0.047637939453125, -0.0024471282958984375, 0.01250457763671875, -0.0277862548828125, 0.01055145263671875, 0.034027099609375, -0.03515625, -0.00640869140625, -0.0102691650390625, 0.010772705078125, -0.0188140869140625, 0.021942138671875, 0.050994873046875, -0.00653076171875, 0.0184173583984375, 0.004367828369140625, -0.048675537109375, 0.005279541015625, 0.0248565673828125, 0.0005135536193847656, -0.055694580078125, -0.00815582275390625, 0.00124359130859375, 0.008819580078125, -0.03289794921875, 0.0135650634765625, -0.0277252197265625, -0.025390625, 0.007076263427734375, -0.053436279296875, -0.0215911865234375, 0.020050048828125, -0.06695556640625, -0.0116424560546875, 0.014617919921875, -0.04351806640625, -0.01090240478515625, 0.07733154296875, -0.00543975830078125, -0.0606689453125, -0.0002732276916503906, -0.0076904296875, -0.05291748046875, -0.045867919921875, -0.0357666015625, 0.007091522216796875, 0.0284423828125, -0.00112152099609375, 0.03656005859375, -0.0205841064453125, -0.0679931640625, -0.0180206298828125, -0.0281219482421875, 0.0007963180541992188, -0.005733489990234375, -0.02801513671875, 0.0023136138916015625, 0.014434814453125, -0.0037097930908203125, 0.01025390625, 0.0118865966796875, -0.0009150505065917969, -0.015655517578125, -0.0256500244140625, 0.004505157470703125, 0.0167388916015625, -0.002796173095703125, 0.0153961181640625, 0.0179443359375, 0.020782470703125, -0.016571044921875, -0.0196533203125, -0.005794525146484375, -0.04144287109375, -0.00914764404296875, -0.0034885406494140625, -0.0038814544677734375, 0.0205841064453125, -0.01534271240234375, 0.0014352798461914062, 0.00673675537109375, 0.07012939453125, -0.0021305084228515625, -0.05450439453125, -0.030242919921875, -0.038421630859375, -0.03546142578125, 0.0240478515625, 0.0034351348876953125, 0.034027099609375, 0.0218505859375, 0.0496826171875, 0.0289306640625, 0.013824462890625, 0.005859375, -0.10589599609375, 0.0440673828125, -0.06280517578125, -0.0123138427734375, -0.05377197265625, -0.0163421630859375, 0.0247039794921875, 0.109619140625, -0.052581787109375, -0.043182373046875, -0.0010957717895507812, 0.04901123046875, -0.01532745361328125, -0.040283203125, 0.0274658203125, -0.0248260498046875, -0.0931396484375, -0.004093170166015625, 0.00994110107421875, -0.036376953125, -0.018280029296875, 0.052642822265625, -0.045257568359375, -0.0330810546875, 0.0280609130859375, -0.04034423828125, -0.01593017578125, 0.0389404296875, -0.037445068359375, 0.017333984375, -0.0018548965454101562, -0.047088623046875, -0.12139892578125, -0.0201416015625, -0.038055419921875, 0.09967041015625, -0.005859375, 0.0265655517578125, -0.044525146484375, 0.0321044921875, 0.00339508056640625, -0.0213623046875, 0.021697998046875, 0.0306243896484375, -0.045867919921875, -0.02728271484375, 0.01329803466796875, -0.049041748046875, -0.00988006591796875, -0.0051422119140625, -0.0110626220703125, 0.0294647216796875, -0.0165252685546875, -0.0116119384765625, 0.0020580291748046875, -0.019683837890625, -0.03814697265625, -0.028045654296875, -0.0106658935546875, -0.0017118453979492188, -0.038177490234375, 0.017303466796875, -0.0241546630859375, -0.051849365234375, 0.02197265625, -0.0149078369140625, 0.007114410400390625, 0.00923919677734375, 0.0447998046875, 0.0120391845703125, -0.024322509765625, -0.002582550048828125, -0.0004112720489501953, 0.0039005279541015625, -0.06512451171875, 0.041839599609375, -0.000789642333984375, 0.01546478271484375, 0.031646728515625, -0.06561279296875, 0.0048065185546875, -0.0684814453125, 0.0472412109375, 0.0095062255859375, 0.01555633544921875, -0.00336456298828125, -0.00920867919921875, 0.052825927734375, 0.038848876953125, -0.01221466064453125, -0.0297698974609375, 0.01039886474609375, 0.0244903564453125, -0.01800537109375, 0.031982421875, -0.00418853759765625, -0.02734375, -0.00948333740234375, 0.0171661376953125, 0.01080322265625, 0.03509521484375, -0.005794525146484375, 0.0113525390625, 0.0015897750854492188, -0.0092315673828125, -0.0016651153564453125, -0.0018873214721679688, 0.0185699462890625, 0.03839111328125, -0.03289794921875, 0.015716552734375, -0.01334381103515625, -0.0005407333374023438, 0.046478271484375, -0.0306549072265625, -0.032806396484375, -0.053985595703125, -0.0108642578125, 0.0213470458984375, 0.048187255859375, 0.005977630615234375, 0.051239013671875, 0.0216827392578125, -0.0174407958984375, -0.01178741455078125, -0.031158447265625, 0.020599365234375, -0.0560302734375, -0.00007081031799316406, 0.01451873779296875, -0.0031948089599609375, -0.00881195068359375, 0.07366943359375, 0.0224151611328125, 0.035614013671875, -0.0198211669921875, 0.037841796875, 0.0638427734375, 0.017333984375, 0.0202789306640625, -0.036865234375, -0.0099639892578125, 0.012420654296875, -0.020416259765625, -0.025970458984375, -0.00782012939453125, 0.00722503662109375, 0.030853271484375, 0.0167999267578125, -0.004512786865234375, 0.00872802734375, -0.001941680908203125, -0.01030731201171875, 0.02593994140625, 0.0189361572265625, -0.06494140625, 0.005222320556640625, 0.05657958984375, 0.0089111328125, -0.020599365234375, -0.00792694091796875, 0.025787353515625, 0.0051116943359375, 0.01309967041015625, 0.02593994140625, -0.04718017578125, 0.0238189697265625, 0.0226593017578125, -0.048095703125, -0.01284027099609375, -0.019134521484375, -0.0020732879638671875, -0.02001953125, -0.00531005859375, -0.02880859375, 0.0155487060546875, -0.0250244140625, 0.035736083984375, -0.00771331787109375, -0.0268707275390625, -0.00994873046875, 0.0235137939453125, 0.01006317138671875, -0.0092010498046875, 0.011474609375, -0.0159912109375, -0.051544189453125, -0.04193115234375, 0.00543212890625, 0.0181884765625, -0.01922607421875, 0.006317138671875, 0.00907135009765625, 0.0406494140625, -0.028839111328125, -0.041778564453125, -0.005184173583984375, 0.01018524169921875, 0.014068603515625, 0.072021484375, -0.028900146484375, 0.07794189453125, -0.035003662109375, 0.0304107666015625, -0.0161285400390625, 0.01157379150390625, 0.0003437995910644531, 0.0135498046875, 0.00887298583984375, -0.048553466796875, -0.03265380859375, -0.01374053955078125, -0.046630859375, 0.071533203125, 0.098876953125, -0.004772186279296875, 0.038238525390625, -0.00823974609375, 0.00687408447265625, -0.006134033203125, -0.0367431640625, -0.036895751953125, -0.00640869140625, 0.046966552734375, -0.0261688232421875, -0.01983642578125, -0.0180511474609375, 0.0074920654296875, 0.0162200927734375, -0.018402099609375, 0.025421142578125, 0.0189208984375, -0.06658935546875, 0.0750732421875, 0.065673828125, -0.0017242431640625, 0.056671142578125, -0.01605224609375, 0.00029921531677246094, 0.0450439453125, 0.0061798095703125, -0.04425048828125, -0.00412750244140625, 0.0726318359375, 0.0196533203125, -0.0279541015625, 0.06488037109375, -0.0213623046875, 0.047515869140625, 0.021392822265625, 0.06353759765625, -0.062103271484375, 0.037261962890625, -0.005245208740234375, -0.027008056640625, 0.05462646484375, -0.01004791259765625, 0.006977081298828125, -0.0246734619140625, 0.040802001953125, -0.03240966796875, -0.0188140869140625, -0.005672454833984375, -0.0235443115234375, -0.023651123046875, -0.0239105224609375, -0.001068115234375, 0.01335906982421875, 0.0053253173828125, 0.013214111328125, -0.01274871826171875, 0.00396728515625, 0.008819580078125, 0.0184326171875, -0.01407623291015625, -0.0498046875, -0.06707763671875, -0.04425048828125, -0.0006952285766601562, -0.051300048828125, 0.01496124267578125, -0.003597259521484375, 0.045806884765625, 0.0361328125, 0.00933074951171875, -0.040557861328125, 0.00975799560546875, 0.014404296875, -0.01372528076171875, -0.0006093978881835938, 0.005771636962890625, -0.0111541748046875, -0.0006260871887207031, 0.01328277587890625, -0.0158843994140625, -0.03948974609375, 0.00005614757537841797, 0.022857666015625, 0.0892333984375, -0.0051422119140625, -0.0340576171875, 0.062164306640625, -0.02813720703125, -0.06011962890625, -0.0033321380615234375, -0.0020809173583984375, -0.04937744140625, -0.06903076171875, -0.008575439453125, -0.0784912109375, 0.005153656005859375, -0.0219268798828125, -0.08367919921875, 0.12310791015625, 0.02496337890625, 0.01502227783203125, -0.0260772705078125, 0.06390380859375, -0.047943115234375, 0.031585693359375, -0.04119873046875, 0.04248046875, 0.0072174072265625, 0.061981201171875, -0.0614013671875, -0.022674560546875, 0.026275634765625, 0.06658935546875, 0.0174560546875, 0.00936126708984375, 0.00933837890625, 0.0114593505859375, 0.061309814453125, 0.0203094482421875, -0.006015777587890625, 0.0152740478515625, 0.0223541259765625, 0.004947662353515625, 0.04150390625, -0.056182861328125, 0.004703521728515625, 0.0029449462890625, 0.04949951171875, 0.052978515625, -0.00725555419921875, -0.0259552001953125, -0.03125, 0.060638427734375, -0.03656005859375, -0.0240936279296875, 0.0135955810546875, -0.027862548828125, -0.0010051727294921875, -0.0112152099609375, -0.0248870849609375, -0.0230560302734375, -0.041473388671875, -0.0008406639099121094, 0.004451751708984375, -0.0008001327514648438, 0.01959228515625, 0.00814056396484375, -0.0004029273986816406, 0.03668212890625, 0.04425048828125, -0.0017986297607421875, 0.037506103515625, 0.015106201171875, 0.02618408203125, 0.01149749755859375, 0.00046062469482421875, -0.0089874267578125, 0.08953857421875, 0.0117950439453125, 0.01483154296875, -0.052581787109375, -0.005191802978515625, 0.01323699951171875, 0.022613525390625, -0.005184173583984375, -0.0278167724609375, 0.038055419921875, -0.0394287109375, -0.006107330322265625, -0.004425048828125, 0.0028781890869140625, 0.036651611328125, 0.022125244140625, 0.006649017333984375, 0.05145263671875, -0.057159423828125, -0.016021728515625, -0.0233612060546875, -0.04803466796875, -0.00036263465881347656, 0.0439453125, 0.04449462890625, 0.0225067138671875, 0.00574493408203125, -0.02496337890625, -0.0065765380859375, -0.00774383544921875, 0.0048370361328125, -0.0114288330078125, 0.00887298583984375, -0.00724029541015625, 0.01187896728515625, 0.0134429931640625, 0.0170745849609375, 0.0179901123046875, 0.0457763671875, 0.04107666015625, -0.02886962890625, -0.0092010498046875, 0.043060302734375, -0.012725830078125, -0.024444580078125, -0.0205230712890625, 0.04864501953125, 0.07958984375, 0.0210723876953125, -0.0018281936645507812, 0.0099945068359375, 0.0902099609375, -0.004306793212890625, 0.019561767578125, -0.0015506744384765625, -0.0018053054809570312, -0.00995635986328125, 0.033966064453125, -0.00664520263671875, 0.0291595458984375, -0.059783935546875, -0.01751708984375, -0.0202178955078125, 0.0015478134155273438, 0.0010833740234375, 0.0325927734375, -0.036224365234375, 0.039794921875, 0.0137939453125, -0.032562255859375, 0.022186279296875, 0.016510009765625, -0.0025691986083984375, 0.056121826171875, 0.0246429443359375, 0.0030765533447265625, -0.03961181640625, 0.00860595703125, -0.002216339111328125, 0.004520416259765625, 0.0016660690307617188, 0.0263519287109375, 0.001972198486328125, -0.0026035308837890625, -0.0207672119140625, 0.066162109375, -0.044830322265625, -0.04083251953125, 0.0623779296875, 0.0272979736328125, 0.00667572021484375, -0.0266876220703125, -0.00522613525390625, 0.037078857421875, -0.00251007080078125, -0.041107177734375, 0.029632568359375, -0.03179931640625, 0.0132293701171875, -0.0014772415161132812, 0.0245208740234375, -0.02606201171875, -0.04498291015625, -0.05267333984375, 0.01861572265625, 0.021484375, 0.04248046875, -0.0355224609375, 0.01702880859375, 0.00925445556640625, 0.050567626953125, -0.0004627704620361328, 0.0377197265625, -0.005588531494140625, 0.0177154541015625, -0.07421875, 0.007495880126953125, -0.0084075927734375, -0.0261383056640625, 0.022705078125, -0.00420379638671875, 0.027130126953125, 0.0067901611328125, 0.0013990402221679688, -0.00977325439453125, 0.0312347412109375, 0.03436279296875, -0.006626129150390625, 0.0204010009765625, 0.0031585693359375, -0.01232147216796875, 0.00524139404296875, -0.00839996337890625, -0.0188140869140625, -0.0253448486328125, -0.0031280517578125, 0.01274871826171875, -0.00003987550735473633, -0.006282806396484375, -0.01934814453125, 0.0142822265625, 0.024688720703125, 0.007640838623046875, -0.03985595703125, 0.017181396484375, -0.007965087890625, 0.046600341796875, -0.01044464111328125, 0.04132080078125, -0.0076751708984375, 0.0193023681640625, -0.06195068359375, 0.0192108154296875, -0.033843994140625, -0.01593017578125, -0.0210113525390625, 0.005985260009765625, 0.01229095458984375, -0.018341064453125, -0.0269317626953125, 0.02508544921875, 0.0183563232421875, 0.050537109375, 0.046417236328125, 0.0007047653198242188, 0.03692626953125, 0.0005130767822265625, -0.0281524658203125, -0.0892333984375, -0.014068603515625, -0.04718017578125, 0.00930023193359375, -0.0010652542114257812, 0.018707275390625, 0.045501708984375, -0.0177154541015625, -0.058502197265625, 0.078125, -0.0139312744140625, -0.01206207275390625, -0.026763916015625, 0.0086822509765625, -0.00823211669921875, 0.0175018310546875, -0.00215911865234375, -0.031768798828125, -0.0088348388671875, 0.0277862548828125, 0.01904296875, 0.016143798828125, 0.02081298828125, 0.037506103515625, -0.07073974609375, -0.01345062255859375, -0.052520751953125, -0.00153350830078125, 0.035797119140625, -0.0190887451171875, 0.0210723876953125, 0.04150390625, -0.052520751953125, -0.08502197265625, -0.05072021484375, -0.0233154296875, 0.028778076171875, -0.002529144287109375, -0.039886474609375, -0.01678466796875, 0.045745849609375, 0.03558349609375, 0.0134124755859375, -0.01454925537109375, 0.0074615478515625, -0.01373291015625, -0.0144500732421875, -0.0102691650390625, 0.01715087890625, -0.042449951171875, -0.02685546875, -0.0003814697265625, -0.0021114349365234375, 0.00879669189453125, 0.01245880126953125, -0.005496978759765625, 0.00328826904296875, 0.0555419921875, 0.01468658447265625, -0.07867431640625, 0.0164031982421875, 0.032928466796875, -0.032623291015625, -0.0322265625, 0.0010271072387695312, -0.0028839111328125, 0.002429962158203125, 0.00933074951171875, -0.0135040283203125, -0.01508331298828125, -0.0215911865234375, 0.0292205810546875, -0.022552490234375, 0.049041748046875, -0.051239013671875, 0.0022373199462890625, -0.038360595703125, 0.017181396484375, -0.002071380615234375, 0.01104736328125, -0.00806427001953125, 0.0273895263671875, 0.004032135009765625, 0.0633544921875, -0.01276397705078125, 0.04571533203125, 0.0157470703125, -0.0016260147094726562, 0.0297088623046875, -0.0013427734375, 0.07952880859375, -0.04766845703125, 0.0111236572265625, 0.01226043701171875, 0.0248565673828125, -0.0340576171875, 0.0178070068359375, 0.014739990234375, 0.0252838134765625, 0.01084136962890625 ]
fd0932dcc15ab66a47d48976cd2437a63e795785
Wordpress Stackexchange Q: How do i add class="fancybox" to the default gallery? i tried this shortcode: [gallery class="fancybox" link="file" columns="5"] But the class="fancybox" isn't been added to the a href tag of each image. How can i add class="fancybox" to each a href tag?? ps: where is the source code of gallery? A: jQuery(".gallery-icon a").fancybox().attr('data-fancybox', 'wp-gallery-fancybox'); Gives all links the same rel attribute, this way the user will be able to slide between the images.
Q: How do i add class="fancybox" to the default gallery? i tried this shortcode: [gallery class="fancybox" link="file" columns="5"] But the class="fancybox" isn't been added to the a href tag of each image. How can i add class="fancybox" to each a href tag?? ps: where is the source code of gallery? A: jQuery(".gallery-icon a").fancybox().attr('data-fancybox', 'wp-gallery-fancybox'); Gives all links the same rel attribute, this way the user will be able to slide between the images. A: These answer were all right but now fancybox has changed it's spec. It's no longer rel=gallery, but "data-fancybox=gallery". So the new scripts should look like this jQuery(".gallery-icon a").fancybox().attr('data-fancybox', 'gallery'); and jQuery('.gallery').each(function() { // set the rel for each gallery jQuery(this).find(".gallery-icon a").attr('data-fancybox', 'group-' + jQuery(this).attr('id')); }); A: You can use javascript/jquery to solve this. When you insert a gallery in a wordpress posts, the whole gallery is wrapped by a div with id like "gallery-1" but also a class that's always "gallery". Also, every item is surrounded by two other "dl" and "dt", with class "gallery-item" and "gallery-icon" respectively. So, you can just use jquery to match every link inside those classes, and add whatever lightbox script you want. If it's fancybox, i think something like this should work: jQuery(".gallery-icon a").fancybox(); You can be more specific, matching css classes .gallery .gallery-item .gallery-icon in that order and then the a (for the link). For the new Gutenberg galleries, this should work: jQuery(".wp-block-gallery .blocks-gallery-item a").fancybox(); If you want users can navigate between images as a gallery, then use: jQuery(".gallery-icon a").fancybox().attr('data-fancybox', 'gallery'); And for the new Gutenberg galleries, use this instead: jQuery(".wp-block-gallery .blocks-gallery-item a").fancybox().attr('data-fancybox', 'gallery'); If you want more grained control (for multiple galleries on the same page), check this response. Or use a simple plugin that use the same approach from Viper007Bond, that does clean and nicely, but using colorbox instead. A: to build on @kaiser here - Each gallery ideally would get a unique id, but now that posts and pages can have multiple galleries, its not easy with php to give each gallery a unique rel identifier. jQuery('.gallery').each(function (g) { jQuery('a', this).attr('rel', function (i, attr) { return attr + ' gallery-' + g; }); });` Mind your selectors, your theme might rewrite them. This is discussed in depth on http://kaspars.net/blog/wordpress/add-rel-attribute-to-each-gallery-post
wordpress
{ "language": "en", "length": 373, "provenance": "stackexchange_00019.jsonl.gz:417895", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45005" }
[ 0.068603515625, -0.0072479248046875, 0.0306549072265625, -0.054840087890625, 0.01447296142578125, -0.0208282470703125, 0.06689453125, -0.01219940185546875, 0.0021038055419921875, 0.01326751708984375, -0.0457763671875, 0.0312347412109375, -0.0006585121154785156, -0.0131378173828125, 0.00583648681640625, -0.015716552734375, 0.031524658203125, 0.005031585693359375, 0.06036376953125, -0.000682830810546875, 0.026397705078125, 0.0121917724609375, 0.03277587890625, 0.053131103515625, 0.01457977294921875, 0.00909423828125, 0.06768798828125, 0.0153961181640625, 0.00958251953125, 0.0043182373046875, 0.0156707763671875, -0.033477783203125, 0.044769287109375, 0.01326751708984375, -0.053253173828125, 0.0284576416015625, -0.014892578125, 0.0015325546264648438, -0.0205078125, 0.0233917236328125, 0.0155181884765625, 0.002056121826171875, -0.01556396484375, 0.020477294921875, -0.040313720703125, -0.01279449462890625, -0.033294677734375, -0.03509521484375, 0.03704833984375, -0.052337646484375, 0.0088653564453125, 0.0243682861328125, 0.0295257568359375, -0.07415771484375, -0.01448822021484375, 0.01082611083984375, -0.00914764404296875, -0.04345703125, 0.03338623046875, -0.01641845703125, -0.0289764404296875, -0.028839111328125, 0.0243072509765625, -0.0187835693359375, -0.0091094970703125, 0.001773834228515625, -0.007358551025390625, 0.02264404296875, -0.01326751708984375, -0.01080322265625, 0.016815185546875, -0.01525115966796875, -0.025909423828125, -0.034912109375, -0.0196685791015625, 0.043060302734375, -0.0125579833984375, -0.0232086181640625, 0.0025787353515625, 0.01006317138671875, 0.055328369140625, 0.00787353515625, 0.002597808837890625, 0.01332855224609375, 0.00885772705078125, 0.0384521484375, -0.01403045654296875, -0.041778564453125, 0.001674652099609375, -0.03228759765625, -0.01123046875, -0.020660400390625, -0.01502227783203125, -0.004032135009765625, -0.00849151611328125, -0.0531005859375, -0.0228424072265625, 0.052459716796875, 0.033905029296875, 0.058868408203125, -0.0274810791015625, -0.020477294921875, 0.0213470458984375, -0.050018310546875, -0.021148681640625, 0.00995635986328125, 0.00919342041015625, 0.020233154296875, 0.003482818603515625, 0.03680419921875, -0.026153564453125, -0.026123046875, 0.0086669921875, 0.01551055908203125, -0.03790283203125, -0.024932861328125, -0.046295166015625, 0.0266265869140625, -0.0174713134765625, 0.00850677490234375, 0.027923583984375, 0.045166015625, 0.0074462890625, -0.006885528564453125, -0.01490020751953125, 0.00016355514526367188, -0.006786346435546875, -0.05999755859375, 0.011199951171875, -0.019561767578125, -0.05255126953125, 0.02752685546875, 0.0745849609375, 0.041412353515625, 0.0379638671875, -0.00104522705078125, 0.039825439453125, -0.0261077880859375, -0.00521087646484375, -0.007537841796875, 0.049896240234375, -0.0009446144104003906, -0.0139312744140625, 0.017852783203125, 0.047882080078125, 0.046112060546875, 0.036163330078125, -0.006023406982421875, -0.019775390625, -0.058380126953125, 0.05792236328125, -0.02899169921875, 0.036041259765625, 0.042633056640625, -0.0157318115234375, 0.011077880859375, 0.052764892578125, -0.023284912109375, -0.0290374755859375, -0.062042236328125, -0.0010652542114257812, 0.005970001220703125, 0.00972747802734375, -0.0479736328125, -0.025726318359375, -0.032958984375, -0.028411865234375, 0.01032257080078125, 0.029541015625, -0.007801055908203125, 0.01186370849609375, -0.044036865234375, -0.013092041015625, 0.0430908203125, 0.0148468017578125, 0.060089111328125, 0.045745849609375, 0.0310821533203125, 0.01364898681640625, 0.0307769775390625, 0.0011777877807617188, -0.033599853515625, 0.093994140625, -0.039459228515625, -0.032684326171875, 0.0245208740234375, -0.00370025634765625, 0.02142333984375, 0.0178985595703125, 0.007678985595703125, 0.0299072265625, 0.039825439453125, -0.0745849609375, 0.013763427734375, -0.0198822021484375, 0.0277862548828125, -0.03265380859375, 0.015655517578125, -0.0133209228515625, -0.008087158203125, -0.0037670135498046875, -0.048614501953125, 0.03125, 0.01275634765625, 0.021148681640625, -0.0125885009765625, -0.0069580078125, 0.005413055419921875, -0.01363372802734375, -0.007556915283203125, 0.01708984375, -0.01395416259765625, -0.0190887451171875, -0.0013151168823242188, -0.005634307861328125, 0.053253173828125, 0.006931304931640625, 0.0296173095703125, -0.0053253173828125, 0.0016107559204101562, -0.022735595703125, -0.0223236083984375, -0.022216796875, 0.0276031494140625, 0.006298065185546875, 0.02850341796875, -0.05487060546875, -0.00775146484375, -0.06610107421875, 0.037109375, -0.09442138671875, 0.046051025390625, -0.0396728515625, 0.00039267539978027344, -0.039947509765625, -0.042266845703125, -0.0430908203125, -0.0263824462890625, 0.033172607421875, 0.03863525390625, 0.0235443115234375, 0.0236968994140625, -0.0048980712890625, 0.0159912109375, 0.049407958984375, 0.00909423828125, 0.0178375244140625, -0.0118408203125, -0.06134033203125, -0.0193328857421875, 0.0166168212890625, 0.036529541015625, 0.0169677734375, 0.048370361328125, -0.0237274169921875, 0.033172607421875, 0.0006537437438964844, 0.0014581680297851562, -0.00543212890625, 0.02392578125, -0.001922607421875, 0.0166168212890625, 0.001873016357421875, -0.005584716796875, 0.040771484375, 0.0102691650390625, 0.03521728515625, 0.0233306884765625, -0.0255584716796875, 0.028411865234375, -0.003330230712890625, -0.04400634765625, -0.009063720703125, 0.04180908203125, 0.0380859375, 0.0211181640625, -0.016632080078125, -0.0266876220703125, 0.0019550323486328125, 0.041961669921875, -0.006122589111328125, 0.03546142578125, -0.0102386474609375, -0.01251983642578125, -0.007289886474609375, -0.07891845703125, 0.005832672119140625, 0.01018524169921875, -0.026580810546875, -0.0156402587890625, 0.0205230712890625, 0.0274658203125, -0.0106048583984375, 0.02105712890625, -0.01052093505859375, -0.0113525390625, -0.01070404052734375, -0.0272064208984375, 0.05267333984375, -0.06280517578125, 0.015838623046875, 0.0570068359375, -0.054412841796875, 0.045623779296875, -0.0254364013671875, 0.06646728515625, -0.04803466796875, -0.005329132080078125, -0.016937255859375, -0.024505615234375, -0.006561279296875, 0.003437042236328125, 0.0204315185546875, 0.03009033203125, -0.044891357421875, -0.053131103515625, -0.03741455078125, 0.009857177734375, -0.064208984375, -0.03778076171875, 0.055419921875, -0.0357666015625, -0.004608154296875, 0.0233917236328125, -0.02593994140625, -0.0355224609375, 0.059814453125, -0.0076751708984375, -0.01068115234375, -0.00827789306640625, 0.033233642578125, -0.01380157470703125, -0.0018644332885742188, -0.03155517578125, 0.0178985595703125, -0.004154205322265625, 0.0129241943359375, 0.0311737060546875, -0.017242431640625, -0.035491943359375, -0.0169219970703125, -0.02685546875, -0.0018110275268554688, -0.00732421875, 0.021453857421875, -0.055694580078125, 0.006877899169921875, -0.01318359375, 0.042999267578125, 0.024993896484375, -0.025146484375, 0.0136260986328125, -0.034637451171875, 7.152557373046875e-7, 0.009979248046875, 0.01461029052734375, 0.0170745849609375, 0.035888671875, 0.0545654296875, -0.01326751708984375, -0.003345489501953125, 0.00524139404296875, -0.0225372314453125, -0.05291748046875, -0.0030422210693359375, -0.01715087890625, -0.020904541015625, -0.00937652587890625, -0.033538818359375, -0.006137847900390625, 0.0478515625, -0.05364990234375, 0.03570556640625, -0.021697998046875, -0.0305328369140625, -0.03912353515625, 0.052703857421875, 0.0010366439819335938, 0.0087890625, 0.01395416259765625, -0.0019626617431640625, -0.01172637939453125, 0.0229339599609375, -0.034393310546875, -0.047088623046875, 0.03521728515625, -0.0292510986328125, 0.02569580078125, -0.05560302734375, -0.00539398193359375, -0.019012451171875, 0.07855224609375, -0.054168701171875, -0.01134490966796875, -0.01055145263671875, -0.0032215118408203125, 0.034332275390625, -0.00543212890625, -0.035919189453125, -0.032379150390625, -0.059417724609375, 0.01520538330078125, 0.00632476806640625, -0.036834716796875, -0.004669189453125, -0.0259857177734375, -0.0242156982421875, -0.03900146484375, 0.0460205078125, -0.036041259765625, -0.0179901123046875, 0.040191650390625, -0.0207366943359375, -0.0005340576171875, -0.015838623046875, -0.0199737548828125, -0.10931396484375, -0.0268707275390625, 0.00804901123046875, 0.08514404296875, -0.0100555419921875, -0.0177459716796875, -0.028076171875, 0.059661865234375, 0.00583648681640625, -0.01502227783203125, 0.0014162063598632812, 0.0012836456298828125, -0.0002899169921875, 0.0172271728515625, 0.0022220611572265625, -0.0157012939453125, 0.037750244140625, 0.0019073486328125, -0.06982421875, 0.004161834716796875, -0.044464111328125, 0.011322021484375, -0.004123687744140625, -0.04364013671875, -0.022491455078125, -0.06903076171875, 0.023895263671875, 0.0259857177734375, 0.0159149169921875, 0.01708984375, -0.0723876953125, -0.002262115478515625, -0.060699462890625, -0.024444580078125, -0.035186767578125, 0.054473876953125, 0.036407470703125, 0.04754638671875, 0.0175018310546875, -0.080078125, 0.026947021484375, 0.0419921875, 0.0096893310546875, 0.0362548828125, 0.014801025390625, -0.0227203369140625, 0.0305328369140625, 0.01293182373046875, 0.050018310546875, -0.05303955078125, 0.067626953125, -0.006488800048828125, -0.012786865234375, 0.03436279296875, -0.0015010833740234375, -0.0221099853515625, -0.00989532470703125, -0.017120361328125, 0.0277862548828125, -0.0170135498046875, -0.01244354248046875, 0.0188446044921875, -0.0029773712158203125, -0.006122589111328125, 0.026275634765625, -0.037628173828125, 0.03851318359375, 0.052459716796875, 0.04766845703125, -0.004241943359375, -0.00754547119140625, 0.041259765625, -0.006053924560546875, 0.00804901123046875, 0.01605224609375, -0.00258636474609375, 0.016143798828125, 0.02008056640625, -0.016571044921875, 0.000762939453125, -0.009765625, 0.022979736328125, 0.061614990234375, -0.00130462646484375, -0.01082611083984375, 0.025054931640625, 0.0136260986328125, -0.04840087890625, 0.003108978271484375, 0.055389404296875, -0.0247802734375, -0.01369476318359375, -0.030792236328125, -0.07177734375, -0.0130767822265625, -0.0692138671875, 0.0582275390625, 0.0227508544921875, -0.01554107666015625, 0.033477783203125, -0.035614013671875, 0.0237579345703125, -0.040802001953125, 0.004169464111328125, -0.01171875, -0.005584716796875, 0.0171661376953125, 0.028076171875, 0.0039825439453125, 0.01204681396484375, -0.00690460205078125, 0.0238800048828125, -0.01354217529296875, -0.0043487548828125, 0.037811279296875, 0.04168701171875, 0.0015268325805664062, -0.0171661376953125, -0.015350341796875, -0.045135498046875, -0.0035839080810546875, -0.0159149169921875, -0.01885986328125, -0.01824951171875, -0.01393890380859375, -0.0253753662109375, 0.002124786376953125, 0.0109100341796875, -0.037811279296875, 0.0218353271484375, -0.0143585205078125, 0.043548583984375, -0.021575927734375, -0.0225982666015625, 0.04241943359375, 0.030517578125, 0.0020694732666015625, -0.011810302734375, -0.02740478515625, -0.0296173095703125, 0.00211334228515625, -0.0173187255859375, -0.0246429443359375, 0.036590576171875, -0.0014495849609375, 0.05633544921875, -0.053497314453125, -0.0246429443359375, -0.06549072265625, 0.01461029052734375, -0.004688262939453125, -0.00785064697265625, 0.01163482666015625, -0.01354217529296875, -0.041534423828125, -0.027557373046875, 0.0250091552734375, -0.025634765625, -0.024261474609375, -0.04351806640625, 0.0032863616943359375, 0.0374755859375, -0.012481689453125, -0.025634765625, -0.01318359375, -0.01131439208984375, 0.005260467529296875, 0.02178955078125, 0.013702392578125, 0.006473541259765625, -0.01256561279296875, 0.024078369140625, 0.017120361328125, -0.003124237060546875, 0.00305938720703125, -0.04931640625, 0.0102386474609375, -0.00896453857421875, -0.03570556640625, -0.004772186279296875, -0.04461669921875, 0.016448974609375, 0.0770263671875, -0.0075531005859375, 0.0192413330078125, -0.01444244384765625, -0.00678253173828125, -0.0164031982421875, 0.0298614501953125, -0.01331329345703125, 0.0090789794921875, 0.03753662109375, 0.0098419189453125, 0.06268310546875, -0.033905029296875, -0.046600341796875, 0.01053619384765625, -0.0142059326171875, 0.0192718505859375, 0.031707763671875, -0.04949951171875, 0.04962158203125, 0.06365966796875, -0.00536346435546875, 0.0537109375, 0.004375457763671875, 0.0131683349609375, 0.040283203125, -0.00783538818359375, 0.0227813720703125, 0.01824951171875, 0.08966064453125, 0.004772186279296875, -0.0253448486328125, 0.06561279296875, -0.031646728515625, 0.0307159423828125, -0.014739990234375, 0.060760498046875, 0.009063720703125, 0.00864410400390625, -0.00873565673828125, -0.0361328125, 0.06805419921875, 0.001861572265625, -0.01605224609375, -0.0061187744140625, 0.032318115234375, -0.0154876708984375, -0.019622802734375, 0.024749755859375, 0.0120391845703125, -0.0009446144104003906, 0.0035533905029296875, -0.011016845703125, -0.004161834716796875, -0.04559326171875, -0.0184173583984375, 0.02691650390625, -0.01424407958984375, 0.006618499755859375, 0.0035991668701171875, 0.023956298828125, -0.0189666748046875, -0.0281524658203125, 0.02520751953125, -0.0176544189453125, 0.0031566619873046875, -0.01285552978515625, -0.021087646484375, 0.045562744140625, 0.0159912109375, -0.0010843276977539062, -0.01419830322265625, -0.025146484375, 0.02569580078125, 0.0096588134765625, -0.01023101806640625, 0.012542724609375, 0.0007491111755371094, -0.03466796875, 0.01047515869140625, -0.0209503173828125, -0.0010471343994140625, -0.01210784912109375, -0.032867431640625, 0.07366943359375, -0.06817626953125, 0.0006093978881835938, 0.02716064453125, 0.0296630859375, -0.0149383544921875, 0.02703857421875, 0.000016868114471435547, -0.035888671875, -0.039276123046875, 0.016357421875, -0.0753173828125, -0.002048492431640625, 0.003818511962890625, -0.04644775390625, 0.040985107421875, -0.024627685546875, 0.00525665283203125, 0.005645751953125, 0.031280517578125, -0.00714111328125, 0.023101806640625, -0.0188140869140625, -0.0003294944763183594, 0.01611328125, 0.0035457611083984375, 0.0027523040771484375, -0.0009264945983886719, -0.0003006458282470703, 0.0231170654296875, 0.01134490966796875, 0.0026569366455078125, -0.024566650390625, 0.00022602081298828125, 0.07037353515625, 0.055328369140625, 0.018463134765625, 0.01399993896484375, -0.019287109375, 0.0064697265625, 0.01080322265625, -0.0205535888671875, 0.0061187744140625, 0.017120361328125, -0.056488037109375, 0.01462554931640625, 0.0225830078125, 0.016357421875, 0.0305023193359375, 0.03826904296875, -0.0280609130859375, 0.0235137939453125, 0.022979736328125, -0.012176513671875, -0.03802490234375, 0.0770263671875, 0.01171112060546875, 0.0036067962646484375, -0.0758056640625, -0.01430511474609375, 0.018310546875, 0.0024013519287109375, 0.021697998046875, 0.03619384765625, 0.0081024169921875, 0.01010894775390625, 0.00885772705078125, 0.0182342529296875, -0.002849578857421875, -0.00432586669921875, 0.04498291015625, -0.0079193115234375, 0.01049041748046875, -0.08294677734375, -0.04150390625, 0.032470703125, 0.0621337890625, -0.0266265869140625, -0.0219879150390625, 0.00981903076171875, -0.004489898681640625, 0.01438140869140625, -0.0238189697265625, 0.01282501220703125, -0.0704345703125, -0.0400390625, -0.036376953125, 0.00043010711669921875, 0.02197265625, 0.037109375, -0.00432586669921875, 0.01666259765625, -0.04852294921875, -0.0219268798828125, -0.042144775390625, 0.0178070068359375, 0.004703521728515625, 0.00989532470703125, -0.004970550537109375, 0.02734375, 0.025360107421875, 0.01116943359375, -0.0041656494140625, 0.018524169921875, -0.031646728515625, 0.02606201171875, -0.044647216796875, -0.03631591796875, -0.0213775634765625, 0.05169677734375, 0.057525634765625, 0.005084991455078125, 0.0465087890625, 0.0345458984375, 0.0011491775512695312, -0.00540924072265625, -0.0150909423828125, -0.007965087890625, 0.01568603515625, -0.0261688232421875, 0.07476806640625, 0.0635986328125, 0.01849365234375, -0.002559661865234375, 0.011627197265625, 0.0780029296875, -0.06707763671875, 0.0343017578125, -0.021209716796875, -0.0170745849609375, 0.039520263671875, -0.03240966796875, 0.05426025390625, -0.0313720703125, -0.082275390625, -0.0278472900390625, 0.00447845458984375, -0.08526611328125, 0.044952392578125, 0.056976318359375, -0.0296783447265625, -0.01371002197265625, 0.00899505615234375, 0.011260986328125, 0.004451751708984375, 0.0020923614501953125, -0.0253143310546875, 0.0005726814270019531, 0.05255126953125, 0.006137847900390625, -0.0162200927734375, -0.01557159423828125, 0.00798797607421875, 0.035491943359375, 0.0186614990234375, 0.0020961761474609375, -0.00618743896484375, 0.0258026123046875, 0.009033203125, 0.0022792816162109375, -0.01513671875, 0.00867462158203125, 0.0119476318359375, -0.01142120361328125, -0.011993408203125, -0.01465606689453125, -0.006366729736328125, 0.031707763671875, 0.03558349609375, -0.009796142578125, 0.0196990966796875, -0.01317596435546875, 0.00060272216796875, -0.0135650634765625, 0.052520751953125, -0.0257720947265625, -0.02734375, -0.083740234375, -0.0299072265625, 0.040863037109375, -0.005046844482421875, -0.043609619140625, 0.031646728515625, 0.044525146484375, 0.017791748046875, 0.02685546875, -0.01229095458984375, 0.043853759765625, 0.030731201171875, 0.0116424560546875, -0.022003173828125, -0.007366180419921875, -0.0120849609375, 0.0168304443359375, 0.0099639892578125, 0.01358795166015625, 0.01175689697265625, -0.054595947265625, 0.0176239013671875, 0.050323486328125, 0.03497314453125, -0.02789306640625, 0.004528045654296875, 0.049102783203125, -0.0196380615234375, 0.00090789794921875, 0.00406646728515625, -0.020965576171875, -0.05279541015625, -0.003810882568359375, 0.02789306640625, -0.039825439453125, 0.005512237548828125, -0.0787353515625, -0.0127716064453125, 0.01045989990234375, 0.0198211669921875, -0.0672607421875, 0.0179901123046875, 0.035552978515625, 0.04730224609375, -0.02105712890625, -0.0374755859375, 0.022064208984375, 0.0167694091796875, -0.038177490234375, -0.0207366943359375, -0.0394287109375, -0.0159149169921875, -0.0521240234375, 0.040557861328125, 0.045989990234375, -0.0382080078125, 0.0050506591796875, 0.0313720703125, 0.0257415771484375, 0.0875244140625, -0.0191497802734375, -0.045166015625, 0.00994110107421875, -0.017059326171875, -0.0036907196044921875, -0.0308990478515625, 0.0029468536376953125, -0.057464599609375, 0.0098114013671875, 0.018798828125, -0.032806396484375, -0.01297760009765625, -0.049285888671875, -0.06719970703125, 0.0833740234375, -0.006877899169921875, -0.03289794921875, -0.053375244140625, 0.03778076171875, -0.0194854736328125, 0.054046630859375, -0.01367950439453125, 0.0067901611328125, 0.024078369140625, 0.0199432373046875, 0.003704071044921875, 0.0131072998046875, 0.0161895751953125, -0.026275634765625, -1.7881393432617188e-7, 0.01523590087890625, 0.02178955078125, -0.000751495361328125, 0.034088134765625, -0.0217132568359375, 0.032867431640625, 0.044281005859375, -0.045013427734375, -0.0574951171875, -0.0144805908203125, -0.0182952880859375, 0.041900634765625, -0.043060302734375, -0.024322509765625, -0.06524658203125, -0.00366973876953125, -0.03717041015625, -0.004703521728515625, 0.042266845703125, -0.0019969940185546875, -0.02960205078125, -0.0013208389282226562, -0.003376007080078125, -0.005504608154296875, -0.0224609375, 0.004642486572265625, 0.0009074211120605469, 0.0131988525390625, -0.01357269287109375, 0.0079345703125, -0.00399017333984375, -0.01006317138671875, 0.0233917236328125, -0.0009984970092773438, -0.0268707275390625, 0.049224853515625, 0.0701904296875, -0.029144287109375, 0.04339599609375, 0.0000711679458618164, -0.0249786376953125, 0.0677490234375, 0.007083892822265625, 0.01071929931640625, 0.019287109375, -0.01776123046875, 0.01181793212890625, 0.032684326171875, -0.0276336669921875, -0.00812530517578125, -0.0030193328857421875, -0.0015516281127929688, 0.017974853515625, 0.005901336669921875, 0.033203125, -0.006072998046875, 0.01739501953125, -0.0037555694580078125, 0.013031005859375, -0.0265350341796875, -0.0173797607421875, -0.0008177757263183594, 0.018096923828125, -0.027923583984375, 0.0117034912109375, 0.033203125, -0.05084228515625, 0.00472259521484375, -0.0086669921875, -0.0173492431640625, -0.038604736328125, 0.005199432373046875, -0.027862548828125, -0.006397247314453125, 0.0160369873046875 ]
a5abd9e747e94c1048f42dd0098c2f8dff717276
Wordpress Stackexchange Q: get the attachement url for the medium sized image Hi I'm using some code to create a slideshow with lytebox functionality - the following code is used in the loop to pull each image attached to a post in sequence. It seems to be only pulling the large image, even thought I've set the value to medium - any ideas how I can get .wp_get_attachment_url($attachment->ID, 'medium', false, false) to be pulling the medium sized images? thanks <?php $argsThumb = array( 'order' => 'DESC', 'post_type' => 'attachment', 'post_parent' => $post->ID, 'post_mime_type' => 'image', 'post_status' => null ); $attachments = get_posts($argsThumb); if ($attachments) { foreach ($attachments as $attachment) { echo '<div class="images"><a class="lytebox" href="' .wp_get_attachment_url($attachment->ID, 'medium', false, false). '"><img src="'.wp_get_attachment_url($attachment->ID, 'medium', false, false).'" /><div class="caption">'.apply_filters('the_content', $attachment->post_content).'</div></a></div>'; } } A: wp_get_attachment_url() will only return url to original attachment file, this function only accepts attachment id as parameter. Use wp_get_attachment_image_src() or wp_get_attachment_image() instead.
Q: get the attachement url for the medium sized image Hi I'm using some code to create a slideshow with lytebox functionality - the following code is used in the loop to pull each image attached to a post in sequence. It seems to be only pulling the large image, even thought I've set the value to medium - any ideas how I can get .wp_get_attachment_url($attachment->ID, 'medium', false, false) to be pulling the medium sized images? thanks <?php $argsThumb = array( 'order' => 'DESC', 'post_type' => 'attachment', 'post_parent' => $post->ID, 'post_mime_type' => 'image', 'post_status' => null ); $attachments = get_posts($argsThumb); if ($attachments) { foreach ($attachments as $attachment) { echo '<div class="images"><a class="lytebox" href="' .wp_get_attachment_url($attachment->ID, 'medium', false, false). '"><img src="'.wp_get_attachment_url($attachment->ID, 'medium', false, false).'" /><div class="caption">'.apply_filters('the_content', $attachment->post_content).'</div></a></div>'; } } A: wp_get_attachment_url() will only return url to original attachment file, this function only accepts attachment id as parameter. Use wp_get_attachment_image_src() or wp_get_attachment_image() instead. A: Update for those finding this all these years later. The function you want is called wp_get_attachment_image_url(). Documentation here. All you need to do is give it the attachment ID and the size and it will return either a string of the image url or false. A: echo out the following: wp_get_attachment_image_src( $post->ID, 'medium')[0]; to the attachment url for the medium sized image. A: I don't how above answer makes the answer. wp_get_attachment_image_src need attachment id not post id. <?php echo esc_url((wp_get_attachment_image_src( get_post_thumbnail_id(get_the_id()), 'medium')[0])?>
wordpress
{ "language": "en", "length": 234, "provenance": "stackexchange_00019.jsonl.gz:417897", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45033" }
[ 0.05718994140625, -0.0069580078125, -0.0137786865234375, -0.0255889892578125, 0.0016918182373046875, -0.04193115234375, 0.047607421875, -0.0171966552734375, -0.009796142578125, 0.026947021484375, -0.01473236083984375, -0.0146942138671875, 0.006069183349609375, -0.0238800048828125, -0.0244598388671875, -0.0250396728515625, 0.0574951171875, -0.045379638671875, 0.03363037109375, 0.0149078369140625, 0.011322021484375, 0.058990478515625, 0.01358795166015625, 0.0484619140625, -0.00511932373046875, 0.024871826171875, 0.07952880859375, -0.0072479248046875, -0.00562286376953125, -0.006732940673828125, 0.013763427734375, -0.0282440185546875, 0.03839111328125, -0.011138916015625, -0.00905609130859375, 0.0232391357421875, 0.005962371826171875, -0.02001953125, -0.0204315185546875, 0.0244293212890625, 0.0191192626953125, -0.00372314453125, 0.006710052490234375, -0.0160064697265625, -0.0173187255859375, -0.006877899169921875, -0.003917694091796875, -0.04193115234375, 0.0113677978515625, -0.0123748779296875, 0.022552490234375, -0.006927490234375, 0.0296783447265625, -0.001766204833984375, -0.00934600830078125, 0.0205841064453125, -0.018035888671875, -0.005283355712890625, 0.01483917236328125, -0.036529541015625, -0.026275634765625, 0.0007290840148925781, 0.037261962890625, 0.035675048828125, -0.007480621337890625, -0.0047607421875, -0.0303497314453125, 0.01959228515625, -0.03533935546875, -0.036529541015625, 0.0160064697265625, -0.031341552734375, -0.01006317138671875, -0.035736083984375, -0.01312255859375, 0.0169525146484375, 0.014801025390625, -0.0009589195251464844, -0.01113128662109375, -0.01192474365234375, 0.045989990234375, -0.0092315673828125, -0.054656982421875, 0.044189453125, 0.0038471221923828125, 0.068603515625, 0.0091705322265625, -0.048126220703125, -0.00222015380859375, -0.0253143310546875, -0.01336669921875, -0.0321044921875, 0.0372314453125, -0.015960693359375, -0.0491943359375, -0.0482177734375, 0.043914794921875, 0.029571533203125, 0.00638580322265625, -0.01261138916015625, 0.0309600830078125, -0.0723876953125, 0.04400634765625, -0.039581298828125, 0.010406494140625, 0.0300445556640625, 0.00008589029312133789, -0.01727294921875, 0.0322265625, 0.0237579345703125, -0.00022673606872558594, 0.0244903564453125, -0.00977325439453125, 0.00933837890625, 0.0166168212890625, 0.00894927978515625, -0.052703857421875, 0.046630859375, -0.025360107421875, 0.031494140625, -0.0012998580932617188, 0.02667236328125, 0.0225067138671875, -0.043609619140625, 0.003948211669921875, 0.00458526611328125, -0.007534027099609375, -0.061065673828125, 0.0207061767578125, 0.009857177734375, -0.0293121337890625, 0.0086822509765625, 0.004924774169921875, -0.00215911865234375, -0.002315521240234375, -0.0139617919921875, -0.01235198974609375, -0.0211639404296875, -0.006252288818359375, 0.01213836669921875, 0.006267547607421875, -0.0276947021484375, 0.0181732177734375, 0.0181427001953125, -0.01763916015625, 0.023162841796875, 0.00030350685119628906, 0.0167083740234375, 0.0012969970703125, -0.07684326171875, 0.044403076171875, -0.0540771484375, 0.0560302734375, 0.00478363037109375, -0.04412841796875, -0.011810302734375, 0.05865478515625, -0.033203125, -0.042327880859375, -0.0853271484375, 0.016754150390625, 0.01541900634765625, 0.004688262939453125, -0.00762176513671875, 0.016876220703125, -0.037445068359375, -0.023284912109375, 0.01171112060546875, 0.021728515625, 0.0897216796875, 0.004405975341796875, -0.0110321044921875, -0.041717529296875, 0.0157928466796875, -0.0079498291015625, 0.005893707275390625, -0.0213775634765625, 0.0006499290466308594, 0.03973388671875, 0.0274200439453125, -0.006618499755859375, -0.0294189453125, 0.05810546875, -0.027587890625, -0.035797119140625, 0.018829345703125, 0.0025634765625, 0.0220794677734375, 0.03948974609375, 0.02032470703125, 0.00690460205078125, -0.0090484619140625, -0.031890869140625, 0.0285491943359375, -0.034698486328125, 0.01178741455078125, -0.00759124755859375, 0.02886962890625, -0.0308837890625, -0.0034236907958984375, 0.0305633544921875, -0.005374908447265625, 0.0335693359375, 0.00063323974609375, -0.0095062255859375, 0.02239990234375, -0.0178680419921875, 0.014739990234375, -0.03741455078125, 0.06597900390625, 0.0155181884765625, 0.01204681396484375, -0.0218353271484375, -0.017120361328125, 0.040313720703125, -0.0002560615539550781, 0.02008056640625, 0.00695037841796875, -0.01922607421875, 0.03167724609375, -0.052001953125, -0.010986328125, -0.05010986328125, 0.0445556640625, 0.0523681640625, 0.010498046875, -0.00951385498046875, -0.004528045654296875, 0.031768798828125, 0.03363037109375, -0.04486083984375, 0.007709503173828125, 0.0012674331665039062, 0.0178680419921875, -0.0343017578125, -0.0171356201171875, -0.0244293212890625, -0.035614013671875, 0.0116729736328125, 0.044525146484375, 0.045013427734375, 0.03875732421875, -0.0022792816162109375, 0.005462646484375, 0.08331298828125, -0.01058197021484375, 0.005710601806640625, -0.0186004638671875, 0.01454925537109375, 0.0279541015625, -0.01319122314453125, 0.00511932373046875, 0.0189056396484375, -0.020416259765625, 0.0367431640625, 0.022430419921875, 0.00385284423828125, 0.00830841064453125, -0.05401611328125, 0.07098388671875, -0.01995849609375, 0.02392578125, 0.006328582763671875, -0.00852203369140625, -0.0096588134765625, 0.00769805908203125, 0.00926971435546875, -0.015869140625, -0.0275421142578125, 0.01499176025390625, 0.019927978515625, -0.01311492919921875, -0.01267242431640625, 0.047760009765625, 0.0239105224609375, 0.0226593017578125, -0.00475311279296875, -0.01434326171875, -0.0211944580078125, 0.0221710205078125, -0.022491455078125, 0.0018291473388671875, -0.028961181640625, -0.0050506591796875, -0.01377105712890625, -0.04693603515625, 0.01543426513671875, 0.00860595703125, 0.0032787322998046875, -0.0130462646484375, 0.002834320068359375, 0.03277587890625, 0.012725830078125, 0.007793426513671875, 0.04095458984375, -0.0161285400390625, 0.041412353515625, -0.03564453125, 0.06427001953125, -0.038543701171875, 0.06304931640625, 0.0704345703125, -0.070068359375, 0.0889892578125, 0.007236480712890625, -0.019866943359375, 0.007495880126953125, 0.01399993896484375, 0.0008759498596191406, -0.0200042724609375, -0.0237579345703125, 0.01200103759765625, -0.004207611083984375, 0.059906005859375, -0.055511474609375, -0.06365966796875, -0.01470947265625, -0.00441741943359375, -0.100341796875, -0.07220458984375, 0.01390838623046875, -0.0799560546875, -0.029205322265625, -0.006679534912109375, -0.05194091796875, 0.0056610107421875, 0.022735595703125, -0.010589599609375, -0.016326904296875, 0.00615692138671875, -0.05328369140625, -0.020294189453125, -0.059326171875, 0.00263214111328125, -0.016387939453125, 0.0117340087890625, -0.0104217529296875, 0.0265655517578125, -0.00020301342010498047, -0.004486083984375, -0.003360748291015625, 0.017059326171875, 0.002849578857421875, -0.055511474609375, -0.0171966552734375, 0.006259918212890625, -0.0291290283203125, 0.004184722900390625, 0.041839599609375, -0.0070953369140625, -0.00962066650390625, -0.0086669921875, -0.010284423828125, -0.0007433891296386719, 0.01039886474609375, 0.01358795166015625, 0.0085601806640625, 0.018829345703125, 0.0226287841796875, -0.029998779296875, -0.003086090087890625, -0.03875732421875, -0.029144287109375, 0.03387451171875, 0.0288238525390625, 0.003753662109375, -0.01371002197265625, 0.017974853515625, -0.0088653564453125, -0.0171966552734375, 0.0235748291015625, -0.0200653076171875, 0.05792236328125, -0.01934814453125, -0.01091766357421875, -0.027923583984375, 0.034759521484375, -0.01187896728515625, 0.0018930435180664062, 0.006755828857421875, -0.0032062530517578125, 0.0009984970092773438, -0.014312744140625, 0.0079345703125, -0.036468505859375, 0.050506591796875, -0.0116729736328125, 0.008514404296875, -0.019927978515625, -0.0445556640625, 0.0023784637451171875, 0.08099365234375, -0.049072265625, -0.0299224853515625, -0.011962890625, 0.016265869140625, -0.01546478271484375, -0.058380126953125, 0.004367828369140625, -0.01519012451171875, -0.070068359375, 0.00026416778564453125, 0.01207733154296875, -0.046417236328125, -0.0027923583984375, 0.01007843017578125, -0.059844970703125, -0.03424072265625, 0.0302886962890625, 0.0257568359375, -0.005138397216796875, 0.0211181640625, -0.00472259521484375, 0.0200653076171875, -0.030181884765625, 0.007198333740234375, -0.0892333984375, -0.023284912109375, 0.05615234375, 0.0360107421875, -0.05413818359375, 0.0004105567932128906, -0.0234375, 0.07049560546875, 0.009521484375, 0.0020008087158203125, -0.0009198188781738281, -0.023529052734375, 0.0096282958984375, 0.01430511474609375, -0.0023326873779296875, -0.0014638900756835938, -0.0003674030303955078, -0.056915283203125, -0.08599853515625, -0.05474853515625, -0.023590087890625, 0.03204345703125, -0.006183624267578125, 0.0008454322814941406, -0.0518798828125, -0.0139617919921875, -0.006992340087890625, 0.02740478515625, 0.00046563148498535156, -0.01165008544921875, -0.0401611328125, -0.06842041015625, 0.012908935546875, 0.004741668701171875, -0.020904541015625, 0.007312774658203125, 0.046600341796875, 0.02764892578125, -0.0162811279296875, -0.04254150390625, 0.004146575927734375, 0.047576904296875, -0.01221466064453125, 0.01422882080078125, 0.03131103515625, -0.029510498046875, 0.052154541015625, 0.035369873046875, 0.0411376953125, -0.01873779296875, 0.032501220703125, 0.005832672119140625, 0.00724029541015625, 0.0196380615234375, 0.0259246826171875, -0.0240325927734375, 0.015289306640625, -0.01898193359375, -0.00567626953125, 0.0194549560546875, 0.03631591796875, -0.01532745361328125, 0.0244140625, -0.021575927734375, -0.03607177734375, 0.004482269287109375, -0.029296875, 0.033203125, 0.017608642578125, -0.00336456298828125, 0.01277923583984375, 0.032440185546875, 0.0001214146614074707, -0.003170013427734375, -0.006866455078125, -0.00647735595703125, 0.0243682861328125, -0.0134429931640625, -0.01358795166015625, 0.004520416259765625, 0.00531768798828125, -0.0260467529296875, 0.0150146484375, 0.00408935546875, -0.0341796875, -0.002471923828125, 0.0261993408203125, -0.006866455078125, -0.01959228515625, 0.06036376953125, -0.0027923583984375, -0.027679443359375, -0.03594970703125, -0.058624267578125, -0.042236328125, -0.0745849609375, 0.02667236328125, -0.004001617431640625, -0.0019855499267578125, 0.0282135009765625, 0.04119873046875, -0.029693603515625, 0.038604736328125, -0.01059722900390625, 0.01020050048828125, -0.0007047653198242188, 0.03436279296875, 0.0166168212890625, 0.0040130615234375, 0.003826141357421875, -0.0032482147216796875, 0.0235748291015625, -0.04132080078125, 0.01552581787109375, 0.053070068359375, 0.0704345703125, -0.0152435302734375, -0.0501708984375, -0.007114410400390625, -0.0290374755859375, -0.03533935546875, 0.08709716796875, 0.041656494140625, -0.058746337890625, -0.03863525390625, 0.0003273487091064453, 0.040008544921875, 0.00199127197265625, -0.041717529296875, 0.0030727386474609375, -0.0276641845703125, -0.0030384063720703125, -0.016876220703125, -0.0919189453125, 0.0570068359375, 0.08026123046875, -0.0271453857421875, -0.0274200439453125, -0.0465087890625, 0.01465606689453125, -0.01222991943359375, 0.00153350830078125, 0.006114959716796875, 0.028717041015625, -0.029693603515625, 0.04193115234375, -0.0312042236328125, -0.032684326171875, -0.09356689453125, 0.0104217529296875, 0.06939697265625, 0.06842041015625, 0.00833892822265625, -0.0085906982421875, -0.0281219482421875, 0.0038051605224609375, 0.06689453125, -0.0183563232421875, 0.01056671142578125, -0.043212890625, 0.0196533203125, 0.027679443359375, 0.0252227783203125, 0.0267791748046875, 0.01503753662109375, -0.005199432373046875, -0.0279693603515625, 0.033905029296875, 0.00746917724609375, 0.0195770263671875, 0.0197906494140625, 0.0355224609375, 0.021575927734375, -0.0010585784912109375, -0.056488037109375, -0.01497650146484375, -0.0300445556640625, -0.068115234375, 0.0294342041015625, 0.040771484375, 0.0098724365234375, -0.00787353515625, -0.04095458984375, 0.032073974609375, -0.00431060791015625, -0.0082855224609375, -0.0169525146484375, -0.033843994140625, 0.051361083984375, 0.0019741058349609375, 0.00821685791015625, -0.006084442138671875, -0.0552978515625, -0.0201568603515625, 0.0308074951171875, -0.0009055137634277344, 0.034942626953125, -0.0306854248046875, 0.0116119384765625, 0.0406494140625, 0.0018701553344726562, -0.005886077880859375, 0.088623046875, -0.0035037994384765625, 0.0489501953125, 0.02734375, 0.0161895751953125, 0.0614013671875, 0.0499267578125, -0.0277099609375, -0.023223876953125, 0.05645751953125, 0.0224609375, -0.01006317138671875, 0.0308837890625, -0.022369384765625, 0.0219268798828125, -0.05908203125, 0.028778076171875, 0.05322265625, 0.0201416015625, 0.037322998046875, -0.048004150390625, 0.002544403076171875, 0.011810302734375, 0.01059722900390625, 0.0186920166015625, 0.0135955810546875, -0.026336669921875, -0.014923095703125, 0.00847625732421875, -0.029144287109375, 0.0186920166015625, -0.021087646484375, 0.03375244140625, -0.017425537109375, -0.06842041015625, -0.0270233154296875, 0.05596923828125, -0.0340576171875, -0.018096923828125, 0.0031795501708984375, -0.0125579833984375, -0.01397705078125, -0.036651611328125, -0.005786895751953125, -0.0227813720703125, 0.018341064453125, -0.00653839111328125, -0.040496826171875, 0.04638671875, 0.037200927734375, -0.0167236328125, 0.0049591064453125, 0.007495880126953125, -0.03912353515625, 0.0214691162109375, -0.022796630859375, 0.004730224609375, 0.008636474609375, -0.056732177734375, 0.001911163330078125, -0.0185699462890625, -0.004184722900390625, -0.0113067626953125, -0.0089569091796875, 0.041351318359375, -0.033416748046875, -0.019683837890625, 0.0168914794921875, 0.01617431640625, 0.01194000244140625, -0.00537109375, 0.04046630859375, -0.0712890625, -0.03826904296875, 0.0213623046875, -0.01203155517578125, -0.02606201171875, -0.0216217041015625, -0.055389404296875, 0.06536865234375, -0.0280609130859375, 0.03228759765625, -0.0057525634765625, 0.0264739990234375, 0.016082763671875, 0.01532745361328125, -0.027008056640625, 0.023712158203125, 0.0308837890625, -0.02734375, -0.0293121337890625, 0.0029697418212890625, -0.035247802734375, 0.0163421630859375, 0.07135009765625, 0.0133209228515625, -0.055389404296875, -0.03173828125, 0.046875, 0.0643310546875, 0.0206298828125, 0.03765869140625, 0.0008969306945800781, 0.004486083984375, 0.03155517578125, -0.021209716796875, 0.030181884765625, -0.02001953125, 0.0024318695068359375, 0.0291748046875, 0.0029926300048828125, -0.007671356201171875, -0.002170562744140625, 0.05670166015625, -0.053741455078125, -0.0048065185546875, 0.0618896484375, -0.08587646484375, 0.0243988037109375, 0.02484130859375, 0.03704833984375, -0.035736083984375, -0.018157958984375, -0.0169830322265625, 0.043304443359375, -0.00884246826171875, -0.0038166046142578125, 0.02764892578125, 0.023193359375, 0.041168212890625, 0.0011644363403320312, -0.0039043426513671875, 0.00868988037109375, 0.023834228515625, -0.0007395744323730469, -0.004779815673828125, -0.0028076171875, -0.058258056640625, 0.01953125, 0.057891845703125, 0.0149078369140625, -0.034332275390625, -0.031280517578125, 0.00893402099609375, -0.0095367431640625, 0.006496429443359375, -0.0104827880859375, 0.0085601806640625, -0.047027587890625, -0.03057861328125, -0.06390380859375, 0.0148162841796875, 0.0294342041015625, 0.0335693359375, -0.01311492919921875, -0.0294036865234375, -0.03497314453125, -0.005382537841796875, -0.0272979736328125, 0.01384735107421875, 0.005096435546875, 0.024169921875, 0.0021419525146484375, 0.039642333984375, -0.00464630126953125, 0.00577545166015625, -0.008544921875, 0.01434326171875, -0.01326751708984375, 0.03253173828125, -0.01123809814453125, -0.0075225830078125, 0.01180267333984375, 0.03216552734375, 0.0341796875, -0.01036834716796875, 0.03839111328125, 0.0173492431640625, -0.036163330078125, -0.009002685546875, 0.0032196044921875, -0.0173492431640625, 0.053619384765625, -0.04376220703125, 0.00861358642578125, -0.00012242794036865234, -0.0297698974609375, -0.00199127197265625, -0.04998779296875, 0.068359375, -0.048675537109375, 0.060821533203125, -0.01323699951171875, 0.01424407958984375, 0.042266845703125, -0.006229400634765625, 0.00682830810546875, -0.01250457763671875, -0.087158203125, -0.0157318115234375, -0.0274505615234375, -0.056304931640625, 0.02703857421875, 0.0307159423828125, -0.0361328125, 0.031280517578125, -0.06805419921875, 0.01100921630859375, -0.0106201171875, 0.006198883056640625, -0.0291748046875, 0.01190185546875, 0.03485107421875, -0.01654052734375, -0.0281829833984375, -0.0242919921875, 0.0006251335144042969, 0.017974853515625, 0.0301513671875, 0.0421142578125, 0.003910064697265625, 0.0101165771484375, -0.006175994873046875, -0.0258331298828125, -0.00128173828125, 0.006877899169921875, -0.040069580078125, -0.012298583984375, -0.01165771484375, -0.00604248046875, 0.02496337890625, 0.030517578125, 0.0172119140625, -0.0185394287109375, -0.039337158203125, 0.0163726806640625, 0.011932373046875, 0.033203125, 0.0379638671875, -0.0203704833984375, -0.0034618377685546875, -0.05963134765625, -0.055450439453125, 0.061279296875, 0.0061187744140625, 0.01432037353515625, 0.002353668212890625, 0.0491943359375, 0.0150604248046875, 0.0369873046875, 0.0355224609375, 0.06463623046875, 0.0428466796875, -0.044769287109375, -0.023162841796875, 0.0060882568359375, -0.0173492431640625, -0.0119171142578125, 0.0188446044921875, 0.041656494140625, -0.02081298828125, -0.0001779794692993164, 0.0056610107421875, 0.0065460205078125, 0.016571044921875, -0.02783203125, -0.006511688232421875, 0.043701171875, -0.0074615478515625, -0.0306854248046875, -0.0175323486328125, -0.01959228515625, -0.05877685546875, 0.0006518363952636719, 0.01537322998046875, -0.0023651123046875, 0.0173492431640625, 0.02423095703125, -0.0294647216796875, 0.005184173583984375, 0.0057373046875, -0.0179443359375, -0.01531982421875, 0.01251220703125, 0.0023555755615234375, -0.0259246826171875, 0.00905609130859375, -0.01454925537109375, 0.001605987548828125, -0.01104736328125, -0.060302734375, -0.034515380859375, 0.07928466796875, -0.0322265625, 0.039947509765625, 0.043121337890625, -0.03338623046875, 0.022552490234375, 0.026611328125, 0.03961181640625, 0.08056640625, -0.03594970703125, -0.0228729248046875, 0.016693115234375, 0.007518768310546875, -0.0178070068359375, -0.017120361328125, -0.009307861328125, 0.022247314453125, 0.0025882720947265625, 0.00618743896484375, 0.0095672607421875, 0.0308837890625, -0.03582763671875, -0.07550048828125, 0.016265869140625, -0.017974853515625, -0.05352783203125, -0.0523681640625, 0.018646240234375, -0.0026721954345703125, 0.016326904296875, -0.00347900390625, -0.020477294921875, -0.024658203125, 0.02349853515625, 0.0281524658203125, -0.0190887451171875, 0.0517578125, 0.007808685302734375, -0.0487060546875, -0.01436614990234375, -0.018310546875, -0.00759124755859375, -0.02972412109375, -0.0103912353515625, 0.038360595703125, 0.045562744140625, 0.00890350341796875, -0.01702880859375, 0.052978515625, -0.0264892578125, -0.00962066650390625, -0.025665283203125, -0.0238037109375, 0.01079559326171875, 0.023406982421875, 0.07525634765625, -0.00029015541076660156, -0.04168701171875, 0.04644775390625, -0.01078033447265625, -0.09881591796875, -0.023406982421875, 0.033355712890625, -0.0484619140625, -0.01433563232421875, -0.02191162109375, -0.00983428955078125, 0.01416015625, -0.0056915283203125, -0.032867431640625, -0.004150390625, 0.00138092041015625, -0.006900787353515625, -0.0374755859375, 0.032012939453125, 0.093505859375, -0.05438232421875, 0.00946807861328125, 0.00041794776916503906, -0.0037937164306640625, 0.04931640625, -0.0308837890625, -0.01568603515625, 0.01073455810546875, 0.00969696044921875, -0.0058441162109375, 0.0301971435546875, -0.0080718994140625, 0.0322265625, 0.00357818603515625, -0.0167694091796875, -0.007442474365234375, 0.0015106201171875, -0.0190277099609375, 0.01271820068359375, -0.0228729248046875, -0.0005044937133789062, 0.01274871826171875, -0.004642486572265625, 0.03240966796875, 0.01580810546875, 0.009552001953125, 0.0269012451171875, -0.0240478515625, 0.062164306640625, -0.031890869140625, -0.00140380859375, 0.0008525848388671875, -0.04400634765625, 0.00331878662109375, 0.0013113021850585938, 0.0107574462890625, -0.029205322265625, 0.00315093994140625 ]
fe6af21bcf1dfd97b56a93a8302586e23ccb8ea1
Wordpress Stackexchange Q: What is the difference between esc_html and wp_filter_nohtml_kses? What is the exact difference between esc_html and wp_filter_nohtml_kses. Everywhere I look says that both strip all the html, the only difference I can see is to do with exactly how they do this. Does esc_html encode the tags and does wp_filter_nohtml_kses strip them altogether? A: Contrary to what you have been looking at, esc_html does not strip all the HTML, it escapes it, meaning it encodes it into safe HTML entities that do not break HTML tags. wp_filter_nohtml_kses strips all the HTML. When in doubt always consult the source code. It is accessible online. esc_attr is short and sweet, uses _wp_specialchars, defined in wp-includes/formatting.php wp_filter_nohtml_kses is defined in wp-includes/kses.php, and "Strips all of the HTML in the content."
Q: What is the difference between esc_html and wp_filter_nohtml_kses? What is the exact difference between esc_html and wp_filter_nohtml_kses. Everywhere I look says that both strip all the html, the only difference I can see is to do with exactly how they do this. Does esc_html encode the tags and does wp_filter_nohtml_kses strip them altogether? A: Contrary to what you have been looking at, esc_html does not strip all the HTML, it escapes it, meaning it encodes it into safe HTML entities that do not break HTML tags. wp_filter_nohtml_kses strips all the HTML. When in doubt always consult the source code. It is accessible online. esc_attr is short and sweet, uses _wp_specialchars, defined in wp-includes/formatting.php wp_filter_nohtml_kses is defined in wp-includes/kses.php, and "Strips all of the HTML in the content."
wordpress
{ "language": "en", "length": 128, "provenance": "stackexchange_00019.jsonl.gz:417899", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45036" }
[ 0.048614501953125, -0.03204345703125, 0.014678955078125, -0.0240325927734375, -0.0013971328735351562, -0.0220489501953125, 0.0236053466796875, 0.0008664131164550781, -0.019256591796875, 0.068115234375, 0.0191802978515625, 0.0211334228515625, 0.03564453125, -0.01922607421875, 0.005615234375, 0.0223236083984375, 0.017791748046875, -0.0158233642578125, 0.00989532470703125, -0.020233154296875, -0.002086639404296875, -0.0169830322265625, 0.01064300537109375, -0.00222015380859375, 0.0017251968383789062, -0.0313720703125, 0.08984375, -0.0196685791015625, -0.0030460357666015625, -0.023895263671875, -0.0142364501953125, 0.007144927978515625, 0.035797119140625, 0.0516357421875, -0.1373291015625, -0.01708984375, -0.034759521484375, 0.027374267578125, -0.050994873046875, 0.0369873046875, 0.0208282470703125, -0.017974853515625, 0.004302978515625, 0.0005917549133300781, -0.0164031982421875, -0.0036773681640625, 0.00984954833984375, -0.01523590087890625, -0.02386474609375, -0.007450103759765625, 0.014678955078125, -0.0035762786865234375, 0.045745849609375, -0.06610107421875, 0.0205230712890625, 0.0034618377685546875, -0.0274658203125, 0.00772857666015625, 0.01311492919921875, 0.05517578125, 0.027435302734375, 0.033203125, -0.0199737548828125, -0.0227203369140625, -0.00399017333984375, 0.0183258056640625, 0.0176239013671875, 0.0181427001953125, -0.0499267578125, -0.041748046875, -0.005321502685546875, -0.025360107421875, 0.007266998291015625, -0.05841064453125, -0.0272674560546875, 0.047119140625, -0.0279541015625, -0.040130615234375, 0.033203125, -0.0318603515625, 0.03582763671875, 0.0103912353515625, -0.0156402587890625, -0.040069580078125, -0.015380859375, -0.0556640625, 0.0015087127685546875, 0.01052093505859375, -0.01462554931640625, 0.0145111083984375, -0.0230255126953125, 0.036163330078125, -0.021087646484375, 0.006679534912109375, -0.0018472671508789062, -0.0262908935546875, 0.0055694580078125, -0.00550079345703125, -0.029754638671875, 0.0037899017333984375, 0.042999267578125, -0.04949951171875, 0.046905517578125, -0.0288543701171875, 0.0218658447265625, 0.06982421875, 0.0157470703125, 0.00914764404296875, 0.058441162109375, -0.0164031982421875, 0.023529052734375, 0.06268310546875, -0.02410888671875, -0.0199127197265625, -0.0280914306640625, 0.031158447265625, -0.019805908203125, -0.003993988037109375, 0.0178985595703125, 0.02203369140625, -0.00736236572265625, -0.005771636962890625, 0.035491943359375, -0.04632568359375, -0.01178741455078125, -0.0259552001953125, -0.0290374755859375, -0.0229949951171875, -0.0159454345703125, 0.01485443115234375, -0.030548095703125, 0.038787841796875, 0.07257080078125, 0.0047607421875, -0.0244140625, -0.0272674560546875, 0.008209228515625, -0.004093170166015625, -0.00018548965454101562, 0.033447265625, -0.037689208984375, -0.024993896484375, 0.016448974609375, -0.04144287109375, -0.00458526611328125, 0.050201416015625, 0.025115966796875, -0.0027790069580078125, -0.0258636474609375, -0.08026123046875, 0.031585693359375, -0.0283355712890625, 0.056640625, -0.025787353515625, -0.03997802734375, -0.03350830078125, 0.01438140869140625, -0.0295562744140625, -0.0416259765625, -0.04827880859375, -0.00737762451171875, -0.0218963623046875, 0.02386474609375, 0.027130126953125, -0.003734588623046875, 0.0272064208984375, 0.00855255126953125, -0.00394439697265625, 0.0182342529296875, 0.0104522705078125, -0.006389617919921875, -0.0165557861328125, 0.01009368896484375, 0.0035915374755859375, -0.0089111328125, 0.03179931640625, -0.02374267578125, 0.025726318359375, 0.033172607421875, 0.025115966796875, 0.0117950439453125, -0.0220947265625, 0.0684814453125, -0.01983642578125, -0.072265625, 0.00815582275390625, 0.0166015625, 0.0694580078125, 0.04290771484375, 0.0220184326171875, 0.050140380859375, -0.0172271728515625, 0.0423583984375, -0.0103302001953125, 0.03631591796875, -0.07147216796875, -0.034912109375, -0.034393310546875, -0.00444793701171875, 0.01551055908203125, 0.0677490234375, -0.0266265869140625, 0.03753662109375, -0.0090484619140625, 0.003528594970703125, -0.01026153564453125, -0.0007157325744628906, 0.0028228759765625, -0.0081787109375, 0.0242462158203125, 0.0213623046875, -0.01178741455078125, -0.03656005859375, 0.039886474609375, 0.01444244384765625, -0.01110076904296875, -0.049041748046875, 0.059234619140625, -0.0005445480346679688, 0.0390625, 0.038055419921875, -0.03167724609375, 0.03411865234375, 0.00789642333984375, 0.043975830078125, -0.04168701171875, 0.01239013671875, -0.0193328857421875, 0.0792236328125, 0.002620697021484375, 0.01221466064453125, 0.007762908935546875, 0.07586669921875, 0.08038330078125, -0.00946807861328125, -0.00948333740234375, 0.012481689453125, -0.05560302734375, 0.00634765625, 0.04974365234375, 0.047515869140625, 0.09857177734375, -0.0006976127624511719, -0.0428466796875, 0.08929443359375, -0.053955078125, 0.0130157470703125, -0.04498291015625, 0.0017871856689453125, -0.007904052734375, 0.0293426513671875, -0.0308074951171875, 0.0150604248046875, -0.04010009765625, 0.0026264190673828125, 0.0140838623046875, -0.00494384765625, -0.0140838623046875, -0.054534912109375, 0.044158935546875, 0.00704193115234375, -0.0096588134765625, -0.0094757080078125, -0.00429534912109375, 0.07366943359375, -0.060333251953125, 0.02227783203125, -0.00016582012176513672, 0.00524139404296875, -0.03741455078125, 0.0210113525390625, -0.01178741455078125, -0.01467132568359375, 0.0811767578125, -0.00710296630859375, 0.06707763671875, -0.0364990234375, -0.011138916015625, -0.0189361572265625, 0.065673828125, -0.0055999755859375, 0.0230560302734375, 0.014739990234375, -0.02203369140625, 0.0007543563842773438, 0.002643585205078125, 0.010162353515625, -0.0200958251953125, 0.0301361083984375, -0.00041294097900390625, 0.0271759033203125, 0.006317138671875, -0.0035076141357421875, 0.0192108154296875, 0.041412353515625, -0.0175018310546875, -0.0002980232238769531, -0.0567626953125, 0.02947998046875, -0.0194244384765625, 0.08642578125, 0.06512451171875, 0.0104522705078125, -0.00213623046875, 0.007167816162109375, -0.0230560302734375, 0.00566864013671875, 0.00374603271484375, -0.024627685546875, 0.033935546875, -0.1396484375, -0.040130615234375, 0.01296234130859375, 0.01435089111328125, -0.034576416015625, -0.0172119140625, -0.049774169921875, -0.01143646240234375, -0.054046630859375, -0.036590576171875, -0.0029850006103515625, -0.01094818115234375, 0.0025787353515625, -0.0027637481689453125, 0.00695037841796875, -0.0037479400634765625, -0.0003535747528076172, 0.004238128662109375, -0.007083892822265625, 0.01007080078125, -0.04412841796875, 0.007232666015625, -0.04052734375, 0.09185791015625, 0.0008416175842285156, 0.019317626953125, 0.0110626220703125, -0.003726959228515625, -0.002658843994140625, 0.0015039443969726562, 0.025146484375, 0.01255035400390625, 0.0005202293395996094, -0.0003921985626220703, -0.028228759765625, -0.047088623046875, -0.0250701904296875, -0.009307861328125, 0.0012483596801757812, -0.0279083251953125, 0.043792724609375, -0.005237579345703125, 0.00560760498046875, 0.0169677734375, 0.0367431640625, -0.003997802734375, -0.0175018310546875, 0.0175018310546875, 0.0300445556640625, -0.0256805419921875, -0.029937744140625, -0.0249481201171875, -0.05889892578125, 0.07281494140625, 0.052093505859375, 0.006011962890625, 0.01053619384765625, 0.01885986328125, -0.0024433135986328125, -0.0283966064453125, 0.0494384765625, -0.013946533203125, -0.01432037353515625, -0.0216522216796875, -0.01336669921875, -0.02001953125, 0.008056640625, -0.0289306640625, 0.004413604736328125, -0.003673553466796875, -0.0107574462890625, -0.0219573974609375, -0.0010547637939453125, -0.0207672119140625, -0.02569580078125, 0.050933837890625, -0.0217437744140625, 0.01446533203125, -0.04095458984375, -0.02838134765625, -0.0193634033203125, 0.07708740234375, -0.012359619140625, -0.01387786865234375, 0.006465911865234375, -0.003345489501953125, -0.019012451171875, -0.004230499267578125, -0.0260772705078125, -0.0082855224609375, -0.06976318359375, 0.0286102294921875, 0.014434814453125, -0.008697509765625, -0.010650634765625, -0.0003635883331298828, -0.04840087890625, -0.030914306640625, 0.0345458984375, -0.0143280029296875, -0.013824462890625, -0.0190582275390625, -0.02044677734375, -0.032562255859375, -0.007659912109375, -0.018035888671875, -0.03997802734375, 0.00026106834411621094, -0.027862548828125, 0.0126190185546875, 0.02813720703125, -0.004985809326171875, -0.03363037109375, 0.004001617431640625, -0.0019588470458984375, 0.036773681640625, 0.0184478759765625, 0.03253173828125, -0.0077362060546875, -0.007671356201171875, 0.037872314453125, -0.040557861328125, -0.03289794921875, -0.044342041015625, -0.01523590087890625, -0.0284881591796875, 0.01319122314453125, -0.03955078125, 0.019989013671875, -0.0024471282958984375, -0.0634765625, -0.0257415771484375, -0.047027587890625, -0.01078033447265625, -0.0193939208984375, -0.0246124267578125, -0.0253753662109375, -0.058837890625, 0.0595703125, 0.0426025390625, 0.03521728515625, -0.0266265869140625, 0.04510498046875, 0.004711151123046875, -0.06170654296875, 0.02166748046875, -0.050018310546875, 0.01270294189453125, -0.056671142578125, 0.0780029296875, 0.056182861328125, 0.01580810546875, 0.0596923828125, -0.0340576171875, 0.062286376953125, -0.026214599609375, 0.005344390869140625, 0.0169677734375, 0.02203369140625, -0.0011091232299804688, 0.051239013671875, -0.03466796875, 0.0015707015991210938, 0.004589080810546875, 0.039276123046875, 0.043914794921875, -0.03155517578125, 0.00820159912109375, -0.039215087890625, 0.01227569580078125, -0.006969451904296875, -0.00325775146484375, 0.0286102294921875, 0.054443359375, 0.061004638671875, 0.005588531494140625, 0.027069091796875, 0.03558349609375, 0.01074981689453125, -0.04803466796875, 0.00238037109375, -0.0306396484375, 0.03887939453125, -0.01389312744140625, 0.0035228729248046875, -0.028076171875, -0.0098876953125, 0.00951385498046875, -0.008544921875, -0.018035888671875, -0.0188140869140625, 0.006595611572265625, 0.032806396484375, 0.01165008544921875, 0.019378662109375, 0.032257080078125, 0.0132904052734375, -0.0012121200561523438, 0.0230255126953125, 0.0467529296875, -0.028411865234375, -0.026885986328125, -0.026336669921875, 0.0015087127685546875, -0.01763916015625, 0.033050537109375, 0.01806640625, -0.027374267578125, 0.0369873046875, -0.01335906982421875, -0.00704193115234375, -0.0053558349609375, 0.03515625, 0.03662109375, -0.0523681640625, -0.0128173828125, 0.019805908203125, -0.01168060302734375, -0.021026611328125, -0.07293701171875, 0.05560302734375, 0.0438232421875, -0.040557861328125, 0.026947021484375, -0.01145172119140625, 0.03594970703125, -0.006244659423828125, 0.033477783203125, -0.01479339599609375, -0.034454345703125, -0.03533935546875, 0.0027561187744140625, 0.0443115234375, 0.0006732940673828125, -0.0162811279296875, -0.005321502685546875, -0.01983642578125, -0.01114654541015625, 0.0096282958984375, -0.045379638671875, 0.0167694091796875, 0.02032470703125, -0.0308685302734375, -0.0095062255859375, 0.01395416259765625, -0.0343017578125, -0.00417327880859375, -0.0372314453125, -0.020965576171875, 0.0831298828125, -0.028839111328125, 0.08966064453125, -0.039215087890625, -0.0256195068359375, -0.01422119140625, 0.0340576171875, 0.02374267578125, 0.03900146484375, -0.025970458984375, -0.00974273681640625, -0.04931640625, -0.009857177734375, -0.033233642578125, -0.0119476318359375, -0.0217132568359375, 0.0135040283203125, -0.0238494873046875, 0.015869140625, -0.010833740234375, 0.0176239013671875, 0.01399993896484375, 0.006591796875, -0.034515380859375, 0.00780487060546875, -0.01479339599609375, 0.035888671875, -0.0179595947265625, 0.00539398193359375, -0.0308990478515625, 0.011932373046875, 0.0232696533203125, -0.00909423828125, 0.02215576171875, -0.0599365234375, -0.035858154296875, -0.040863037109375, -0.0175323486328125, 0.033935546875, 0.0184326171875, -0.00405120849609375, 0.045684814453125, -0.00687408447265625, -0.003475189208984375, 0.0020503997802734375, -0.0005121231079101562, -0.004634857177734375, 0.0474853515625, 0.026092529296875, -0.03533935546875, -0.026702880859375, -0.0037670135498046875, -0.0033931732177734375, 0.055633544921875, -0.0306854248046875, 0.033905029296875, 0.00453948974609375, 0.00213623046875, 0.01419830322265625, 0.010772705078125, -0.01461029052734375, 0.0391845703125, 0.012786865234375, 0.024078369140625, 0.040008544921875, -0.00563812255859375, 0.0092010498046875, 0.00555419921875, 0.034088134765625, 0.007663726806640625, 0.0176544189453125, 0.0443115234375, -0.023834228515625, 0.029052734375, 0.0704345703125, 0.07879638671875, -0.08734130859375, 0.005313873291015625, 0.043365478515625, -0.043731689453125, -0.0677490234375, -0.0126495361328125, -0.030059814453125, -0.0487060546875, 0.032135009765625, -0.031585693359375, -0.0318603515625, -0.0052490234375, -0.005985260009765625, -0.0171661376953125, -0.013885498046875, 0.0262451171875, 0.01012420654296875, -0.0120086669921875, 0.00254058837890625, -0.004535675048828125, -0.032470703125, -0.023956298828125, 0.023040771484375, 0.0031185150146484375, -0.02752685546875, -0.07904052734375, -0.01386260986328125, 0.028900146484375, -0.051177978515625, 0.0226287841796875, 0.0005784034729003906, 0.036041259765625, 0.03936767578125, -0.01229095458984375, 0.016021728515625, 0.0030803680419921875, 0.00930023193359375, 0.00830078125, -0.0295867919921875, -0.0160064697265625, 0.049163818359375, -0.0177154541015625, 0.0174407958984375, 0.01471710205078125, 0.010772705078125, -0.0014743804931640625, -0.002902984619140625, 0.04400634765625, 0.00849151611328125, -0.032073974609375, 0.018646240234375, 0.03326416015625, -0.0102386474609375, -0.00815582275390625, -0.020294189453125, -0.078369140625, -0.0352783203125, -0.01351165771484375, -0.04107666015625, 0.0131072998046875, -0.0017004013061523438, -0.080810546875, 0.0484619140625, 0.0860595703125, 0.047882080078125, 0.005092620849609375, -0.0021457672119140625, -0.0584716796875, -0.0487060546875, -0.00891876220703125, 0.00787353515625, -0.020111083984375, 0.0032520294189453125, -0.002391815185546875, 0.00865936279296875, -0.00983428955078125, 0.0168609619140625, 0.022918701171875, -0.01094818115234375, 0.01934814453125, 0.0036067962646484375, 0.057220458984375, 0.00289154052734375, -0.0209503173828125, 0.00946807861328125, 0.020233154296875, 0.026580810546875, 0.057525634765625, -0.047027587890625, 0.0153045654296875, -0.041290283203125, 0.01507568359375, 0.0156707763671875, -0.0024242401123046875, -0.012847900390625, -0.005840301513671875, 0.0032291412353515625, -0.01351165771484375, -0.0018358230590820312, -0.019622802734375, 0.01953125, -0.050750732421875, 0.006580352783203125, -0.00377655029296875, -0.0677490234375, -0.0426025390625, -0.02239990234375, 0.01282501220703125, 0.044525146484375, 0.043243408203125, 0.0648193359375, 0.00173187255859375, 0.07427978515625, 0.022705078125, 0.044189453125, -0.0007481575012207031, 0.0202789306640625, 0.0013742446899414062, -0.01885986328125, 0.013427734375, -0.042938232421875, 0.0031833648681640625, 0.01202392578125, 0.005950927734375, -0.0166015625, -0.042236328125, 0.0015687942504882812, 0.020721435546875, 0.01328277587890625, 0.005229949951171875, 0.014495849609375, -0.038116455078125, 0.01300811767578125, -0.0053253173828125, -0.005840301513671875, 0.01332855224609375, 0.0089111328125, -0.0053253173828125, 0.0033092498779296875, 0.006595611572265625, 0.009552001953125, -0.0435791015625, -0.02374267578125, -0.0012960433959960938, 0.039947509765625, 0.054290771484375, 0.0148468017578125, 0.0009760856628417969, -0.0233917236328125, -0.01473236083984375, 0.018646240234375, -0.0285491943359375, 0.031402587890625, -0.050689697265625, -0.0189971923828125, 0.03521728515625, 0.0400390625, 0.03875732421875, -0.01114654541015625, 0.046875, 0.00514984130859375, -0.027496337890625, -0.00560760498046875, 0.01529693603515625, -0.00894927978515625, -0.02398681640625, -0.00811767578125, 0.03289794921875, 0.06317138671875, 0.020751953125, -0.043182373046875, 0.035064697265625, 0.0771484375, -0.0120391845703125, 0.00791168212890625, -0.008026123046875, -0.061279296875, 0.01305389404296875, 0.00045871734619140625, 0.0731201171875, 0.0007839202880859375, -0.009033203125, -0.01806640625, 0.037841796875, -0.004650115966796875, 0.021209716796875, 0.048553466796875, 0.01427459716796875, 0.00385284423828125, 0.04351806640625, -0.037933349609375, 0.0257568359375, 0.032684326171875, -0.0091400146484375, -0.0217742919921875, 0.021728515625, -0.0246734619140625, -0.009246826171875, -0.004638671875, 0.0079345703125, 0.0294342041015625, -0.006885528564453125, 0.00679779052734375, -0.01232147216796875, 0.0214996337890625, 0.0195770263671875, 0.0229034423828125, -0.0105133056640625, 0.003208160400390625, 0.0618896484375, 0.006206512451171875, 0.005859375, -0.0306549072265625, -0.03662109375, 0.024932861328125, 0.0196075439453125, 0.0063018798828125, -0.02056884765625, 0.0271759033203125, 0.029876708984375, 0.040802001953125, 0.018402099609375, -0.0255279541015625, -0.049224853515625, -0.021575927734375, 0.01477813720703125, 0.0013856887817382812, 0.0147247314453125, -0.0005064010620117188, 0.0249481201171875, 0.01617431640625, -0.03375244140625, 0.035980224609375, -0.050933837890625, 0.0234375, 0.0099945068359375, 0.027252197265625, 0.0261383056640625, 0.0091705322265625, -0.00827789306640625, -0.01493072509765625, 0.003162384033203125, -0.038238525390625, 0.014312744140625, -0.02105712890625, -0.0250244140625, 0.0496826171875, 0.041412353515625, 0.00711822509765625, 0.0159149169921875, 0.022979736328125, -0.0241241455078125, -0.0198822021484375, 0.003162384033203125, -0.00994110107421875, -0.028656005859375, -0.023345947265625, -0.00927734375, -0.0257415771484375, -0.06536865234375, -0.050048828125, -0.050811767578125, 0.011260986328125, 0.001728057861328125, -0.01369476318359375, -0.052734375, 0.020050048828125, 0.0118408203125, 0.0025081634521484375, 0.01354217529296875, -0.0455322265625, -0.036468505859375, -0.0216522216796875, -0.038177490234375, -0.07952880859375, 0.060028076171875, -0.05206298828125, -0.01261138916015625, -0.01152801513671875, -0.00453948974609375, -0.0306854248046875, -0.005161285400390625, 0.004955291748046875, 0.042999267578125, 0.01131439208984375, -0.01953125, -0.033782958984375, 0.0290374755859375, -0.007297515869140625, -0.0406494140625, 0.00812530517578125, -0.008209228515625, 0.007049560546875, 0.036041259765625, -0.0210723876953125, 0.01300811767578125, -0.025146484375, -0.048004150390625, 0.05364990234375, 0.02008056640625, -0.0240936279296875, -0.0057220458984375, 0.0000476837158203125, 0.01491546630859375, -0.01934814453125, -0.021270751953125, 0.0174102783203125, -0.03997802734375, 0.007480621337890625, 0.0416259765625, 0.010498046875, 0.026092529296875, 0.015625, -0.0116729736328125, 0.0323486328125, 0.021392822265625, 0.0033054351806640625, -0.0380859375, 0.01015472412109375, 0.008392333984375, 0.020538330078125, -0.007236480712890625, 0.0041046142578125, 0.0197906494140625, 0.0090484619140625, -0.0140533447265625, -0.0513916015625, -0.0006847381591796875, -0.01702880859375, 0.06396484375, -0.004680633544921875, -0.0016965866088867188, -0.0302581787109375, 0.00804901123046875, -0.03509521484375, -0.007568359375, -0.027618408203125, 0.002887725830078125, -0.061798095703125, -0.0247344970703125, 0.003963470458984375, -0.028961181640625, 0.037384033203125, -0.0567626953125, -0.038604736328125, 0.0185699462890625, -0.017333984375, 0.0260772705078125, -0.01788330078125, -0.00829315185546875, 0.04022216796875, -0.03131103515625, 0.01024627685546875, -0.0002110004425048828, 0.0259246826171875, 0.028045654296875, 0.001781463623046875, -0.0165863037109375, -0.007617950439453125, 0.01812744140625, -0.00572967529296875, 0.007282257080078125, -0.006175994873046875, 0.019317626953125, 0.0063323974609375, 0.002109527587890625, 0.035675048828125, -0.021636962890625, 0.06536865234375, 0.0081329345703125, 0.03936767578125, 0.0011854171752929688, 0.0184478759765625, -0.035797119140625, 0.029998779296875, 0.006237030029296875, -0.005458831787109375, -0.03924560546875, 0.0273590087890625, 0.025421142578125, -0.04339599609375, 0.01336669921875, -0.01019287109375, 0.058502197265625, -0.0232086181640625, 0.0167388916015625, -0.004901885986328125, 0.00799560546875, 0.018646240234375 ]
2af686cd8cc9c91dc63f24c6da9860b238ecddcf
Wordpress Stackexchange Q: When should I be using the Transients API? I've never used the Transients API before and was wondering if anyone has guidance on when to use it. The Codex article implies that as a theme developer I might want to set each new WP_Query() as a transient; I assume the same might be said for direct $wpdb queries and query_posts(). Is that overkill? And/Or are there other places I should default to using it? I do often use caching plugins on my site (W3 Total Cache usually) and it sounds like using Transients might bump up the plugin's effectiveness but I don't want to go crazy wrapping everything in transients if that's not a best practice. A: I think the code from Sterling could be improved by not call the get_transient function twice. Instead store the first result in a temporary variable. Because the idea behind the Transient API ist speed ;-) private function _get_data( $query) { $result = get_transient( $query ); if ( $result ) { return $result; } else { return $this->_get_query( $query ); } }
Q: When should I be using the Transients API? I've never used the Transients API before and was wondering if anyone has guidance on when to use it. The Codex article implies that as a theme developer I might want to set each new WP_Query() as a transient; I assume the same might be said for direct $wpdb queries and query_posts(). Is that overkill? And/Or are there other places I should default to using it? I do often use caching plugins on my site (W3 Total Cache usually) and it sounds like using Transients might bump up the plugin's effectiveness but I don't want to go crazy wrapping everything in transients if that's not a best practice. A: I think the code from Sterling could be improved by not call the get_transient function twice. Instead store the first result in a temporary variable. Because the idea behind the Transient API ist speed ;-) private function _get_data( $query) { $result = get_transient( $query ); if ( $result ) { return $result; } else { return $this->_get_query( $query ); } } A: Short Answer: You should use it when/where you can. Long Answer: The Transients API is for caching. So you want to use it as much as you can. You can write a function that does this for you. It's not overkill and if done properly ends up being pretty elegant: // If the transient isn't false, then you can just get the cached version. // If not, we'll call another function that runs a database query. private function _get_data( $query) { return ( get_transient( $query ) ) ? get_transient( $query ) : $this->_get_query( $query ); } // After you make the query, set the transient so you can leverage on caching plugins. private function _get_query( $query ) { // Database logic. Results go to $results. ... set_transient( $query, $results , 0 ); // 0 Means cache for as long as you can. } A: Transients API is really useful when you're fetching data from external sources like Facebook, Twitter. To get more clear idea of what Transients API is and what is difference with Cache WordPress function, I recommend to watch Otto's and Nanic's talk from WordCamp San Francisco 2011 A: Transients are great when you're doing complex queries in your themes and plugins. I tend to use transients for things like menus and showing other things like Tweets from Twitter in a sidebar for example. I wouldn't use them for absolutely everything more-so just temporary pieces of data that can be cached. Keep in mind that if you use something like Memcached with transients, then you will notice a massive performance gain. The rule with transients is to not use them for data that should not expire as they're really only for temporary data and keep in mind transients are not always stored in the database. Some uses for transients: * *Complex and custom database queries *Wordpress navigation menus *Sidebar widgets that display info like; tweets, a list of recent site visitors or a Flickr photo stream *Caching tag clouds This article is a very informative one with quick benchmarks showing just how transients can speed up your site and even has a couple of examples. This other article also has a few great examples of using transients which might help you understand what to use them for as well. A: There are several caching mechanisms in WordPress and their mechanics differ, depending on choice of object cache (native or not): +-----------+-------------------------+---------------------+ | | Native | Object cache plugin | +-----------+-------------------------+---------------------+ | Option | Persistent (database) | N/A | | Transient | Persistent (database) | Persistent (varies) | | Cache | Non-persistent (memory) | Persistent (varies) | +-----------+-------------------------+---------------------+ In a nutshell what this means is that transient is always persistent (will survive between page loads unlike Cache natively), but it will make use of customized storage if provided (unlike Options). This makes transients most versatile choice for caching. However with flexibility comes undercurrent complexity and there are quite a few of nuances with them (such as limit on name length, different behavior with and without expiration, lack of garbage collection) that make them more complex than they seem. Overall: * *use Options for saving things that must be persistent *use Transients for caching anything else *use Cache when you have very good grasp of all three and know that Cache fits use case better than others (which won't be often)
wordpress
{ "language": "en", "length": 741, "provenance": "stackexchange_00019.jsonl.gz:417909", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45065" }
[ 0.0599365234375, -0.0014638900756835938, -0.00006765127182006836, -0.030853271484375, 0.0305938720703125, -0.0270843505859375, 0.059783935546875, 0.0036163330078125, 0.049652099609375, 0.04583740234375, -0.0167694091796875, -0.050750732421875, 0.007476806640625, -0.00702667236328125, -0.09136962890625, -0.0273590087890625, 0.05938720703125, -0.062744140625, 0.0175323486328125, 0.00823211669921875, -0.00469207763671875, 0.03375244140625, 0.0665283203125, 0.03143310546875, 0.0274658203125, -0.03411865234375, 0.07452392578125, -0.049530029296875, 0.0340576171875, -0.031219482421875, 0.01068878173828125, 0.00909423828125, 0.001132965087890625, 0.036102294921875, 0.0027866363525390625, 0.07257080078125, 0.043243408203125, 0.01055908203125, 0.02801513671875, 0.0265350341796875, 0.0200347900390625, -0.004413604736328125, -0.064697265625, -0.005157470703125, -0.0440673828125, -0.0192108154296875, -0.005706787109375, -0.03289794921875, 0.00814056396484375, 0.0213470458984375, 0.0240936279296875, -0.0384521484375, 0.024444580078125, 0.00841522216796875, -0.033233642578125, -0.03564453125, -0.02001953125, -0.0179443359375, 0.04241943359375, -0.002193450927734375, -0.0165863037109375, -0.01708984375, 0.0274505615234375, -0.0135345458984375, -0.00940704345703125, -0.016082763671875, 0.05364990234375, 0.00885009765625, 0.035125732421875, -0.0167236328125, -0.00251007080078125, 0.0301971435546875, -0.00519561767578125, 0.007038116455078125, -0.03472900390625, -0.0302734375, 0.04290771484375, -0.03057861328125, -0.002330780029296875, 0.01050567626953125, -0.007144927978515625, -0.00844573974609375, -0.0231781005859375, -0.01183319091796875, 0.0162811279296875, 0.0347900390625, -0.01129913330078125, -0.00632476806640625, -0.03887939453125, -0.0208587646484375, -0.0277099609375, -0.06622314453125, -0.04327392578125, 0.0023441314697265625, 0.02642822265625, -0.0570068359375, -0.003299713134765625, 0.0157623291015625, -0.00185394287109375, 0.009063720703125, 0.01297760009765625, -0.0440673828125, 0.0251922607421875, -0.0237884521484375, 0.042236328125, 0.01934814453125, -0.0369873046875, -0.040130615234375, 0.06671142578125, 0.03570556640625, 0.014434814453125, 0.06396484375, 0.0128631591796875, -0.01441192626953125, -0.0274810791015625, -0.0330810546875, -0.044403076171875, -0.0003616809844970703, 0.0036487579345703125, -0.051544189453125, 0.0404052734375, 0.05474853515625, -0.024810791015625, -0.030364990234375, -0.0345458984375, -0.0384521484375, -0.02587890625, -0.0169525146484375, -0.040863037109375, 0.0089569091796875, -0.007495880126953125, 0.02801513671875, 0.0251617431640625, -0.00949859619140625, -0.037200927734375, -0.0129547119140625, 0.0008578300476074219, -0.0143280029296875, 0.03472900390625, -0.041961669921875, 0.046295166015625, 0.0011577606201171875, 0.016876220703125, 0.0305328369140625, -0.004924774169921875, 0.03375244140625, 0.024566650390625, -0.0011310577392578125, -0.03326416015625, -0.0252227783203125, -0.01117706298828125, -0.00316619873046875, -0.0106353759765625, 0.01326751708984375, 0.01229095458984375, 0.005161285400390625, -0.0064697265625, -0.012359619140625, 0.002895355224609375, 0.004749298095703125, -0.0072174072265625, -0.0265655517578125, -0.0218963623046875, -0.01067352294921875, 0.0025463104248046875, 0.003414154052734375, 0.030853271484375, 0.024505615234375, 0.01345062255859375, 0.051025390625, 0.0085601806640625, -0.046295166015625, -0.005504608154296875, 0.0186309814453125, -0.002902984619140625, 0.022064208984375, -0.003753662109375, 0.0560302734375, 0.051513671875, -0.044281005859375, -0.0282745361328125, -0.051544189453125, 0.1025390625, -0.02667236328125, -0.043304443359375, 0.061431884765625, 0.003452301025390625, 0.048065185546875, -0.00569915771484375, 0.005565643310546875, 0.0218048095703125, 0.049560546875, -0.0287017822265625, 0.05780029296875, -0.006023406982421875, -0.033355712890625, -0.034759521484375, -0.02154541015625, -0.00102996826171875, -0.035430908203125, -0.006542205810546875, -0.0014734268188476562, -0.003070831298828125, 0.0106658935546875, -0.0426025390625, 0.02386474609375, -0.032012939453125, 0.027496337890625, 0.00716400146484375, 0.01114654541015625, 0.006206512451171875, -0.030029296875, -0.0202178955078125, 0.032928466796875, -0.023468017578125, -0.0202484130859375, -0.003009796142578125, -0.00000947713851928711, 0.0102996826171875, -0.027008056640625, 0.03619384765625, 0.0266571044921875, 0.01024627685546875, 0.0182647705078125, 0.0308074951171875, -0.015594482421875, -0.00249481201171875, -0.02484130859375, 0.0457763671875, -0.0153350830078125, 0.032958984375, 0.02630615234375, 0.0181884765625, 0.0595703125, 0.003131866455078125, -0.00201416015625, 0.003765106201171875, -0.05096435546875, -0.00838470458984375, 0.03094482421875, 0.042022705078125, 0.017059326171875, -0.0246124267578125, -0.0128173828125, 0.0279693603515625, -0.054046630859375, -0.0057525634765625, -0.0107269287109375, 0.0223846435546875, 0.0125732421875, 0.002887725830078125, -0.052093505859375, 0.0184478759765625, -0.043914794921875, 0.0190277099609375, 0.017730712890625, 0.01241302490234375, -0.0196380615234375, 0.049072265625, -0.0217132568359375, 0.01629638671875, 0.01517486572265625, -0.01593017578125, 0.018157958984375, 0.039764404296875, -0.005702972412109375, 0.03302001953125, 0.0175323486328125, 0.0220489501953125, 0.00560760498046875, -0.0260467529296875, -0.09332275390625, -0.0004870891571044922, 0.013916015625, 0.018096923828125, -0.0120697021484375, -0.0197296142578125, -0.01245880126953125, 0.0179290771484375, -0.00838470458984375, -0.031158447265625, 0.058197021484375, -0.035430908203125, -0.03619384765625, -0.033660888671875, -0.0004601478576660156, -0.033355712890625, -0.044677734375, 0.0028934478759765625, -0.007007598876953125, 0.0178070068359375, 0.034423828125, -0.025482177734375, 0.037841796875, -0.007488250732421875, -0.0130615234375, -0.039703369140625, 0.006526947021484375, 0.006866455078125, -0.0291748046875, 0.004802703857421875, 0.05023193359375, -0.0210418701171875, 0.0163116455078125, 0.002071380615234375, 0.0101165771484375, 0.0063934326171875, -0.01387786865234375, -0.0139617919921875, 0.0007991790771484375, -0.060455322265625, 0.005649566650390625, 0.0199737548828125, 0.09442138671875, -0.039154052734375, -0.07305908203125, -0.0033817291259765625, 0.025390625, -0.0823974609375, -0.08642578125, -0.006832122802734375, -0.06549072265625, -0.0175933837890625, -0.023193359375, -0.03997802734375, 0.01556396484375, -0.00439453125, 0.005718231201171875, -0.00923919677734375, -0.004497528076171875, -0.05316162109375, -0.03289794921875, -0.047210693359375, 0.00152587890625, -0.01525115966796875, 0.009033203125, -0.00829315185546875, 0.07196044921875, -0.00579071044921875, -0.07373046875, -0.04083251953125, 0.02105712890625, -0.019195556640625, -0.0200347900390625, 0.0119781494140625, -0.005168914794921875, 0.0007672309875488281, 0.0004425048828125, -0.0222930908203125, 0.0229949951171875, -0.00542449951171875, -0.008819580078125, -0.01214599609375, 0.0200653076171875, 0.036102294921875, -0.0158843994140625, -0.0126800537109375, 0.06884765625, 0.048980712890625, -0.0080718994140625, 0.015869140625, -0.0251312255859375, -0.0389404296875, -0.02569580078125, 0.0257110595703125, 0.0007719993591308594, -0.006229400634765625, -0.03692626953125, -0.00920867919921875, -0.0187835693359375, -0.0121917724609375, -0.034393310546875, 0.056060791015625, 0.00005346536636352539, 0.00670623779296875, -0.0032749176025390625, 0.00946807861328125, -0.04449462890625, 0.049102783203125, 0.0102386474609375, -0.018890380859375, 0.0175323486328125, -0.039642333984375, 0.05328369140625, -0.03350830078125, 0.04730224609375, 0.0179443359375, 0.0037078857421875, 0.0025424957275390625, -0.032196044921875, -0.006168365478515625, 0.057769775390625, -0.0224609375, -0.019683837890625, -0.0306549072265625, 0.00373077392578125, -0.034088134765625, 0.0026950836181640625, -0.0028133392333984375, 0.0003943443298339844, -0.0130767822265625, 0.027618408203125, 0.006862640380859375, -0.0167236328125, -0.03594970703125, 0.0163726806640625, -0.02532958984375, -0.014984130859375, 0.014739990234375, -0.07720947265625, 0.00986480712890625, -0.0244903564453125, -0.0138702392578125, -0.05169677734375, -0.0011053085327148438, -0.08062744140625, -0.038909912109375, -0.03179931640625, -0.0244598388671875, 0.07537841796875, 0.06317138671875, -0.0908203125, 0.03564453125, 0.057952880859375, -0.00004273653030395508, 0.036285400390625, 0.0106964111328125, 0.0015964508056640625, 0.00830078125, 0.0052032470703125, 0.0230560302734375, -0.0162506103515625, -0.0004973411560058594, -0.0011892318725585938, -0.031982421875, 0.00933074951171875, -0.0252685546875, 0.0018301010131835938, -0.0022602081298828125, -0.023681640625, -0.0211944580078125, -0.030731201171875, -0.015350341796875, -0.001728057861328125, -0.060638427734375, 0.028228759765625, -0.014129638671875, 0.0005588531494140625, 0.053436279296875, 0.047393798828125, 0.0190887451171875, -0.014801025390625, 0.038330078125, 0.0128631591796875, -0.054718017578125, 0.00018012523651123047, 0.0264434814453125, 0.0264434814453125, -0.01023101806640625, -0.0260467529296875, -0.0513916015625, -0.05230712890625, 0.07354736328125, -0.01194000244140625, -0.0178375244140625, -0.033355712890625, 0.069580078125, -0.019927978515625, -0.024169921875, 0.03216552734375, -0.035888671875, 0.032257080078125, -0.004070281982421875, -0.0325927734375, -0.009002685546875, -0.01181793212890625, 0.056182861328125, -0.03192138671875, 0.049774169921875, -0.046295166015625, -0.05914306640625, 0.028533935546875, -0.0091552734375, 0.0058135986328125, 0.006954193115234375, 0.0118865966796875, 0.0157470703125, -0.0166778564453125, 0.0223846435546875, 0.01059722900390625, 0.07171630859375, -0.01494598388671875, 0.039459228515625, 0.03973388671875, 0.0017242431640625, -0.04913330078125, -0.00032329559326171875, 0.0261993408203125, -0.047821044921875, -0.06439208984375, 0.00330352783203125, -0.0298004150390625, 0.05328369140625, 0.05035400390625, 0.007228851318359375, 0.03790283203125, -0.01113128662109375, -0.013671875, -0.00743865966796875, -0.0139007568359375, -0.03790283203125, -0.0504150390625, 0.004878997802734375, 0.00830078125, -0.0181121826171875, -0.00565338134765625, 0.06201171875, -0.030731201171875, 0.033050537109375, 0.00028133392333984375, 0.031280517578125, -0.005558013916015625, 0.00878143310546875, 0.00289154052734375, 0.020843505859375, 0.0491943359375, -0.0452880859375, 0.02093505859375, -0.037261962890625, -0.004268646240234375, 0.0228271484375, 0.042327880859375, -0.037689208984375, -0.051513671875, 0.0289306640625, -0.019989013671875, -0.01207733154296875, 0.025421142578125, 0.0264892578125, 0.0050201416015625, -0.0301361083984375, -0.0274658203125, 0.035125732421875, 0.019073486328125, 0.002105712890625, 0.036956787109375, 0.00557708740234375, 0.06793212890625, -0.037811279296875, 0.04205322265625, -0.0159759521484375, -0.00904083251953125, -0.041259765625, -0.06268310546875, -0.033538818359375, -0.002838134765625, 0.03515625, -0.019927978515625, -0.03656005859375, 0.0081939697265625, -0.017425537109375, 0.030181884765625, -0.043487548828125, 0.0104522705078125, -0.01097869873046875, 0.00550079345703125, 0.0380859375, 0.0126190185546875, -0.031890869140625, -0.0086669921875, -0.05108642578125, -0.016143798828125, -0.00955963134765625, -0.041229248046875, -0.013397216796875, -0.0149383544921875, 0.0013685226440429688, 0.00852203369140625, -0.021759033203125, -0.042022705078125, -0.01389312744140625, 0.0211944580078125, 0.006061553955078125, 0.02099609375, -0.00431060791015625, 0.01204681396484375, 0.03533935546875, -0.0030689239501953125, 0.0237579345703125, 0.004405975341796875, 0.002651214599609375, -0.02471923828125, 0.028411865234375, -0.0259857177734375, -0.038848876953125, -0.00948333740234375, -0.0396728515625, -0.005954742431640625, 0.03802490234375, -0.0162353515625, 0.06585693359375, -0.033843994140625, -0.0049896240234375, 0.002796173095703125, 0.02154541015625, -0.080810546875, 0.0236968994140625, 0.02349853515625, -0.002254486083984375, -0.0268707275390625, -0.0281829833984375, -0.05059814453125, 0.04022216796875, 0.0157470703125, 0.0244293212890625, 0.004344940185546875, -0.02874755859375, 0.033111572265625, 0.082275390625, 0.0007157325744628906, 0.06158447265625, 0.0166015625, 0.01107025146484375, 0.039093017578125, 0.005580902099609375, 0.0107879638671875, -0.03326416015625, 0.031524658203125, 0.007762908935546875, -0.029510498046875, 0.0180511474609375, -0.041900634765625, -0.0018901824951171875, 0.016876220703125, 0.039459228515625, -0.00684356689453125, -0.023101806640625, -0.00609588623046875, -0.05621337890625, -0.0131683349609375, 0.004329681396484375, -0.00518798828125, -0.025543212890625, 0.038604736328125, -0.02838134765625, -0.015777587890625, 0.01016998291015625, -0.006107330322265625, -0.0083465576171875, -0.0158843994140625, 0.006755828857421875, -0.0190887451171875, 0.0024394989013671875, -0.01027679443359375, -0.0038471221923828125, -0.0244140625, -0.0018329620361328125, 0.034881591796875, 0.043975830078125, -0.01483917236328125, -0.04534912109375, 0.0251007080078125, 0.01108551025390625, -0.060333251953125, -0.0004210472106933594, -0.0089263916015625, 0.03302001953125, 0.01335906982421875, 0.00821685791015625, -0.0148162841796875, -0.024993896484375, 0.018341064453125, -0.0262603759765625, -0.02203369140625, 0.023712158203125, 0.046478271484375, -0.07073974609375, 0.03204345703125, -0.01953125, 0.0021991729736328125, -0.01207733154296875, -0.036529541015625, 0.04400634765625, -0.0152130126953125, -0.005245208740234375, 0.032470703125, -0.007717132568359375, -0.018035888671875, -0.050506591796875, -0.00901031494140625, -0.026763916015625, 0.00969696044921875, -0.04412841796875, -0.01287841796875, 0.01447296142578125, -0.062469482421875, -0.036529541015625, 0.049774169921875, -0.007633209228515625, 0.0404052734375, 0.070068359375, -0.01313018798828125, -0.0594482421875, -0.04522705078125, -0.045623779296875, 0.037750244140625, -0.02679443359375, 0.0430908203125, -0.06201171875, -0.006435394287109375, -0.01009368896484375, 0.031341552734375, 0.06884765625, 0.0196075439453125, -0.056610107421875, -0.00438690185546875, 0.0256195068359375, -0.0131378173828125, -0.03302001953125, 0.08856201171875, 0.00374603271484375, 0.053253173828125, 0.059417724609375, -0.0406494140625, 0.030364990234375, -0.001537322998046875, -0.004444122314453125, 0.038482666015625, 0.0225982666015625, 0.02496337890625, 0.020111083984375, 0.02447509765625, -0.029815673828125, 0.018341064453125, 0.033416748046875, 0.007457733154296875, 0.010986328125, -0.0165557861328125, -0.0205230712890625, -0.00757598876953125, -0.021026611328125, 0.0086212158203125, 0.023223876953125, 0.0155487060546875, -0.0010061264038085938, 0.02001953125, -0.004974365234375, 0.01407623291015625, 0.0214691162109375, 0.006805419921875, 0.0211181640625, -0.004093170166015625, 0.049530029296875, 0.0216522216796875, 0.043914794921875, -0.039398193359375, -0.044830322265625, 0.021270751953125, 0.061370849609375, -0.00884246826171875, -0.037261962890625, 0.007358551025390625, -0.024932861328125, 0.0005826950073242188, 0.00905609130859375, 0.0193328857421875, -0.0022068023681640625, -0.0012369155883789062, 0.0175628662109375, 0.0038051605224609375, -0.006378173828125, -0.01885986328125, 0.0158843994140625, 0.07373046875, -0.0289764404296875, 0.0145721435546875, 0.0109100341796875, -0.033843994140625, 0.0171356201171875, 0.032379150390625, -0.0005741119384765625, 0.0428466796875, -0.015869140625, -0.0118255615234375, -0.0074615478515625, 0.028472900390625, 0.0039520263671875, -0.003978729248046875, 0.004283905029296875, -0.040374755859375, 0.0011892318725585938, 0.01061248779296875, -0.014617919921875, -0.0196685791015625, 0.006591796875, -0.01000213623046875, -0.039825439453125, -0.0177459716796875, 0.0232086181640625, -0.0306396484375, 0.00383758544921875, -0.028900146484375, -0.0281219482421875, 0.004024505615234375, -0.0175323486328125, -0.01276397705078125, -0.036590576171875, 0.039276123046875, -0.04559326171875, 0.02557373046875, -0.0245361328125, -0.06451416015625, 0.0435791015625, -0.0273590087890625, 0.11468505859375, -0.0210418701171875, -0.01416778564453125, 0.002094268798828125, -0.040679931640625, -0.01357269287109375, 0.0017862319946289062, 0.0238494873046875, 0.043914794921875, 0.0120086669921875, -0.0274658203125, -0.01383209228515625, 0.02435302734375, -0.002895355224609375, -0.0241241455078125, -0.027099609375, 0.00917816162109375, -0.048004150390625, -0.03265380859375, -0.0164642333984375, 0.0026397705078125, 0.0101165771484375, -0.0167236328125, 0.0654296875, 0.004058837890625, 0.0018873214721679688, 0.01354217529296875, -0.030517578125, 0.0171661376953125, 0.038909912109375, -0.034637451171875, -0.03277587890625, -0.020599365234375, -0.00010120868682861328, -0.041839599609375, -0.019866943359375, 0.047882080078125, -0.01513671875, 0.01104736328125, -0.028411865234375, 0.042572021484375, -0.0160980224609375, -0.007480621337890625, -0.01308441162109375, 0.001708984375, 0.024505615234375, 0.018890380859375, 0.02471923828125, 0.00946044921875, -0.040130615234375, 0.01242828369140625, 0.033050537109375, -0.005039215087890625, 0.00705718994140625, 0.006298065185546875, 0.00843048095703125, 0.0282440185546875, 0.0170135498046875, 0.0211181640625, -0.03924560546875, -0.034912109375, 0.0021991729736328125, -0.00972747802734375, -0.003925323486328125, -0.0308990478515625, 0.03302001953125, -0.01149749755859375, -0.017791748046875, 0.0374755859375, -0.01445770263671875, -0.005748748779296875, -0.0255584716796875, 0.023712158203125, -0.005191802978515625, 0.0244293212890625, -0.0180206298828125, 0.0016918182373046875, -0.0145263671875, 0.00948333740234375, 0.007480621337890625, -0.0206146240234375, -0.055084228515625, -0.00004667043685913086, 0.03424072265625, -0.0156402587890625, -0.00970458984375, -0.003448486328125, -0.054656982421875, 0.018218994140625, -0.01611328125, -0.017120361328125, -0.005908966064453125, 0.001628875732421875, -0.01110076904296875, -0.0413818359375, -0.053436279296875, 0.038421630859375, -0.025970458984375, 0.0201263427734375, 0.0369873046875, -0.0175323486328125, 0.006805419921875, 0.034027099609375, 0.040985107421875, 0.0582275390625, -0.0206146240234375, -0.01154327392578125, 0.01554107666015625, 0.00600433349609375, -0.037017822265625, -0.04241943359375, 0.004512786865234375, 0.004123687744140625, -0.011962890625, -0.00811004638671875, 0.007251739501953125, 0.005237579345703125, -0.037841796875, -0.06341552734375, 0.1011962890625, -0.0267181396484375, -0.018310546875, -0.0254669189453125, -0.0214080810546875, 0.00957489013671875, 0.004795074462890625, -0.00777435302734375, -0.0205841064453125, -0.047210693359375, -0.0030517578125, 0.0290985107421875, 0.029510498046875, 0.0408935546875, 0.0017852783203125, -0.0694580078125, -0.0233154296875, -0.055908203125, 0.06402587890625, -0.07244873046875, 0.032318115234375, -0.004001617431640625, 0.0229644775390625, -0.002559661865234375, 0.022430419921875, 0.03314208984375, 0.02740478515625, -0.0278472900390625, 0.033172607421875, -0.00592803955078125, 0.04168701171875, 0.08935546875, 0.0899658203125, 0.0227203369140625, -0.080078125, 0.0164642333984375, 0.01471710205078125, -0.02313232421875, -0.005016326904296875, 0.0145721435546875, -0.048126220703125, -0.026885986328125, 0.002277374267578125, 0.0302886962890625, -0.00623321533203125, -0.059478759765625, -0.003948211669921875, -0.02398681640625, -0.0139923095703125, 0.01418304443359375, 0.0235443115234375, -0.0277252197265625, -0.050445556640625, 0.011627197265625, -0.0137481689453125, -0.036224365234375, 0.035888671875, -0.04718017578125, 0.007625579833984375, 0.03765869140625, 0.016937255859375, -0.01441192626953125, -0.01134490966796875, 0.03765869140625, 0.022430419921875, 0.01032257080078125, -0.029449462890625, 0.00804901123046875, 0.00511932373046875, 0.0005536079406738281, 0.01265716552734375, 0.0147705078125, -0.032989501953125, -0.010406494140625, -0.03326416015625, -0.016632080078125, 0.077880859375, -0.004413604736328125, 0.03521728515625, -0.006206512451171875, 0.00705718994140625, 0.0291290283203125, -0.009246826171875, -0.004955291748046875, -0.012237548828125, -0.0094451904296875, -0.01531982421875, -0.03094482421875, -0.0709228515625, -0.0124969482421875, 0.0086517333984375 ]
c1535fcc14bc4a84369d19185fda2ade3def5d02
Wordpress Stackexchange Q: Get the first post term How do I get only the first term of a custom post type. I can get all - no problem. This what I am using to grab all of them <?php foreach ($terms as $term) {echo '<a href="'.get_term_link($term->slug, 'sitecat').'">'.$term->name.'</a>,';} ?> >> <a href="<?php the_permalink(); ?>"><?php the_title('', ''); ?></a></h2></span> Would appreciate an answer using my code but any help is most welcomed A: As of PHP 5.4, you can directly dereference an array, so to get the first term, you can simply do. $first_term = get_the_terms( $post->ID, 'TAXONOMY_NAME' )[0]; var_dump( $first_term ); If you need a specific property (say the term name) of the first term, you can do the following $first_term_name = get_the_terms( $post->ID, 'TAXONOMY_NAME' )[0]->name; var_dump( $first_term_name ); EDIT Just a note, this does have its draw backs because you will get a WP_Error object if the taxonomy is invalid. Also, if the returned array is empty, you will also get an undefined array key warning, so use this with with care.
Q: Get the first post term How do I get only the first term of a custom post type. I can get all - no problem. This what I am using to grab all of them <?php foreach ($terms as $term) {echo '<a href="'.get_term_link($term->slug, 'sitecat').'">'.$term->name.'</a>,';} ?> >> <a href="<?php the_permalink(); ?>"><?php the_title('', ''); ?></a></h2></span> Would appreciate an answer using my code but any help is most welcomed A: As of PHP 5.4, you can directly dereference an array, so to get the first term, you can simply do. $first_term = get_the_terms( $post->ID, 'TAXONOMY_NAME' )[0]; var_dump( $first_term ); If you need a specific property (say the term name) of the first term, you can do the following $first_term_name = get_the_terms( $post->ID, 'TAXONOMY_NAME' )[0]->name; var_dump( $first_term_name ); EDIT Just a note, this does have its draw backs because you will get a WP_Error object if the taxonomy is invalid. Also, if the returned array is empty, you will also get an undefined array key warning, so use this with with care. A: I'm not sure what you mean by 'first' taxonomy... but, $terms = get_the_terms( $post->ID, 'mytaxonomy' ); returns an array of taxonomy term objects, so $term = array_pop($terms); Would give you the first term in the array. And then: echo '<a href="'.get_term_link($term->slug, 'mytaxonomy').'">'.$term->name.'</a>,' (You may want to include some if statements, in case an empty array or error is returned (see is_wp_error) A: how about directly access the key of object? $terms = get_the_terms( $post->ID, 'sitecat' ); $first_term = $terms[0]; so you can access the object. echo $first_term->name; A: To summarize all the previous answers here is the helper gist I use. Does all the necessary checks and accepts same arguments as the get_the_terms() function. function getTheFirstTerm($post, $taxonomy) { $post = get_post( $post ); if ( ! $post ) { return false; } $terms = get_the_terms( $post->ID, $taxonomy ); if (!empty($terms) && !is_wp_error( $terms )) { //this line effectively returns the first available term object if there is one. return $terms[0]; } return false; } Further note. This function for simplicity that's needed in most of my cases just returns the term object or false. You can still return WP_Error if up the flow you need check for it i.e. if (!empty($terms)) { if(!is_wp_error( $terms )) { //this line effectively returns the first available term object if there is one. return $terms[0]; } else { return $terms; //This returns the WP_Error object } } Moreover you can sort the terms before returning the first i.e. so you get first term object by term_id, slug, name, menu order and so on. A: It worked for me. It brings only the first category as text, no anchor. $terms = get_the_terms( $post->ID , 'your_custom_taxonomy' ); foreach( $terms as $term ) { print $term->name; break; unset($term); }
wordpress
{ "language": "en", "length": 462, "provenance": "stackexchange_00019.jsonl.gz:417912", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45083" }
[ 0.01342010498046875, -0.0240325927734375, -0.0125579833984375, -0.0056610107421875, -0.028839111328125, -0.027984619140625, 0.011138916015625, -0.00955963134765625, 0.0209197998046875, 0.01105499267578125, -0.03857421875, 0.0037326812744140625, -0.029632568359375, -0.02471923828125, -0.0015211105346679688, -0.03521728515625, 0.038665771484375, -0.015350341796875, 0.0205535888671875, -0.003925323486328125, 0.01904296875, 0.0227508544921875, 0.005893707275390625, 0.0548095703125, 0.0430908203125, -0.0241546630859375, 0.016021728515625, -0.03338623046875, 0.0131988525390625, -0.031036376953125, 0.019500732421875, 0.0229644775390625, 0.004329681396484375, 0.00524139404296875, 0.0221405029296875, -0.023681640625, 0.0202178955078125, -0.01116180419921875, 0.021697998046875, 0.02392578125, 0.031768798828125, -0.0110931396484375, -0.0019092559814453125, 0.069091796875, -0.02093505859375, -0.02947998046875, -0.01288604736328125, -0.040802001953125, 0.00817108154296875, -0.040130615234375, 0.020355224609375, 0.005001068115234375, 0.039306640625, -0.024993896484375, -0.027984619140625, 0.0031299591064453125, 0.0194091796875, -0.042724609375, 0.0228271484375, -0.022308349609375, -0.03594970703125, -0.0270538330078125, 0.04376220703125, 0.001773834228515625, -0.035125732421875, 0.0165557861328125, 0.0008130073547363281, 0.01088714599609375, -0.036651611328125, -0.046722412109375, 0.005290985107421875, -0.020263671875, 0.0010271072387695312, 0.004467010498046875, -0.0206146240234375, -0.04864501953125, 0.024505615234375, -0.04071044921875, -0.011383056640625, 0.035552978515625, -0.0023517608642578125, -0.044525146484375, -0.035919189453125, 0.0260467529296875, -0.0004544258117675781, 0.048858642578125, -0.006015777587890625, -0.0130767822265625, -0.026153564453125, -0.03240966796875, -0.0128936767578125, -0.004032135009765625, -0.045989990234375, -0.004852294921875, -0.007808685302734375, -0.03436279296875, 0.035125732421875, 0.056060791015625, -0.02899169921875, -0.014312744140625, -0.01708984375, -0.0251007080078125, 0.005947113037109375, -0.0181427001953125, 0.005878448486328125, -0.01410675048828125, 0.00925445556640625, 0.0033016204833984375, 0.042449951171875, 0.0216522216796875, -0.00908660888671875, 0.062164306640625, -0.003833770751953125, -0.01312255859375, -0.009124755859375, 0.0303802490234375, -0.01416778564453125, 0.01715087890625, 0.0012607574462890625, 0.0219268798828125, 0.018798828125, 0.038421630859375, 0.0239410400390625, -0.0276947021484375, 0.002750396728515625, 0.0078582763671875, -0.0185699462890625, -0.043701171875, -0.034637451171875, 0.036285400390625, -0.0269317626953125, 0.01922607421875, 0.05535888671875, 0.0045318603515625, -0.01192474365234375, -0.022491455078125, 0.032989501953125, 0.0298309326171875, -0.0006451606750488281, -0.00760650634765625, 0.03924560546875, 0.0217437744140625, 0.0102386474609375, 0.01287841796875, -0.00270843505859375, 0.024749755859375, 0.040740966796875, 0.01934814453125, -0.0287322998046875, -0.064697265625, 0.02606201171875, -0.00726318359375, 0.03314208984375, 0.0172576904296875, -0.039642333984375, 0.003841400146484375, 0.022979736328125, -0.0286102294921875, -0.03857421875, -0.05560302734375, 0.049346923828125, -0.005886077880859375, -0.0278167724609375, 0.028045654296875, -0.01314544677734375, 0.005023956298828125, -0.00910186767578125, -0.0036754608154296875, 0.02178955078125, 0.033477783203125, 0.0127716064453125, 0.005096435546875, 0.00318145751953125, 0.0049285888671875, -0.0090789794921875, -0.01079559326171875, -0.027862548828125, -0.0142059326171875, 0.024444580078125, 0.023712158203125, -0.005916595458984375, -0.0201263427734375, -0.018798828125, 0.0123748779296875, -0.0178985595703125, -0.005496978759765625, 0.023590087890625, 0.05438232421875, -0.00440216064453125, 0.0338134765625, 0.01751708984375, 0.01160430908203125, -0.07513427734375, 0.048583984375, -0.0155792236328125, 0.005474090576171875, -0.043182373046875, 0.005687713623046875, -0.025054931640625, -0.0115509033203125, 0.045196533203125, -0.0121917724609375, 0.03668212890625, -0.031646728515625, -0.043609619140625, 0.004638671875, -0.01491546630859375, 0.0311431884765625, -0.02117919921875, 0.0016012191772460938, 0.043914794921875, -0.00930023193359375, -0.033447265625, -0.0027065277099609375, -0.0273284912109375, 0.00621795654296875, -0.02655029296875, 0.005817413330078125, -0.0177764892578125, -0.016448974609375, 0.013641357421875, -0.0596923828125, 0.0010356903076171875, 0.042266845703125, 0.039459228515625, 0.0171051025390625, -0.01690673828125, -0.0066375732421875, 0.03564453125, 0.0299835205078125, -0.0253448486328125, -0.0089263916015625, 0.0047149658203125, -0.0050201416015625, -0.009490966796875, 0.0113067626953125, 0.03955078125, -0.030975341796875, 0.005054473876953125, 0.0258026123046875, 0.031982421875, 0.0167236328125, -0.0323486328125, -0.036956787109375, 0.06292724609375, -0.042449951171875, -0.0157470703125, -0.019378662109375, 0.0310821533203125, 0.0653076171875, -0.025634765625, 0.0196533203125, 0.01348876953125, 0.023529052734375, 0.0202178955078125, 0.034027099609375, -0.0195770263671875, -0.02008056640625, -0.019683837890625, 0.031280517578125, -0.00659942626953125, -0.05401611328125, -0.0209503173828125, -0.01873779296875, 0.044525146484375, 0.0178375244140625, 0.02093505859375, 0.0133514404296875, -0.08551025390625, 0.02691650390625, 0.031585693359375, 0.0251007080078125, -0.0106048583984375, 0.032958984375, 0.046417236328125, -0.036651611328125, -0.00681304931640625, -0.007297515869140625, -0.01416778564453125, -0.0011386871337890625, 0.006908416748046875, 0.05108642578125, 0.031005859375, -0.00946044921875, -0.025115966796875, -0.05841064453125, 0.035400390625, 0.05072021484375, -0.042755126953125, -0.02630615234375, 0.010650634765625, 0.0260162353515625, -0.043701171875, 0.017303466796875, -0.0251312255859375, 0.006191253662109375, -0.039459228515625, -0.024322509765625, 0.0196533203125, -0.0156707763671875, 0.0027313232421875, 0.05084228515625, 0.0233154296875, -0.00782012939453125, -0.00489044189453125, -0.043243408203125, -0.015411376953125, 0.00007891654968261719, -0.031890869140625, -0.0240478515625, -0.06292724609375, -0.00023293495178222656, 0.0117034912109375, 0.10693359375, -0.038848876953125, -0.060394287109375, -0.010101318359375, 0.0291748046875, -0.06134033203125, -0.0543212890625, -0.013031005859375, -0.050689697265625, 0.01277923583984375, -0.0187835693359375, -0.0182342529296875, -0.00601959228515625, 0.000010192394256591797, 0.00864410400390625, 0.034698486328125, -0.0330810546875, -0.0657958984375, -0.037261962890625, -0.0780029296875, 0.0232391357421875, 0.0031719207763671875, 0.0134735107421875, 0.016265869140625, 0.04083251953125, 0.0308380126953125, -0.01198577880859375, 0.0400390625, 0.059326171875, -0.029754638671875, 0.0027103424072265625, -0.021331787109375, 0.01015472412109375, -0.0080413818359375, 0.01023101806640625, -0.00890350341796875, -0.0068206787109375, -0.005687713623046875, -0.0221405029296875, -0.0056304931640625, -0.03607177734375, 0.03216552734375, -0.0018138885498046875, -0.033050537109375, -0.01222991943359375, 0.050994873046875, -0.0472412109375, -0.00014472007751464844, -0.016632080078125, -0.0230560302734375, -0.005962371826171875, 0.0038356781005859375, 0.0001430511474609375, -0.033477783203125, 0.008544921875, -0.046875, -0.023712158203125, -0.0220184326171875, -0.016387939453125, 0.0297393798828125, -0.009490966796875, -0.0191802978515625, 0.03594970703125, 0.04833984375, -0.0151519775390625, 0.014251708984375, 0.0294189453125, 0.00019168853759765625, 0.0007610321044921875, -0.03826904296875, -0.0382080078125, -0.05206298828125, 0.035736083984375, -0.08489990234375, 0.006053924560546875, -0.048309326171875, -0.00852203369140625, -0.0008034706115722656, 0.08734130859375, -0.0203094482421875, -0.024627685546875, -0.02886962890625, 0.001361846923828125, 0.00286102294921875, -0.0265350341796875, -0.0018777847290039062, -0.01267242431640625, -0.09759521484375, 0.0038604736328125, 0.01239776611328125, -0.041961669921875, -0.010284423828125, 0.0143280029296875, -0.07049560546875, -0.029693603515625, 0.0206756591796875, -0.08807373046875, 0.02001953125, 0.029296875, -0.032135009765625, 0.011138916015625, -0.0210723876953125, -0.074462890625, -0.046234130859375, -0.01934814453125, 0.039886474609375, 0.01512908935546875, -0.019989013671875, 0.0013780593872070312, 0.0025730133056640625, 0.052398681640625, -0.0021114349365234375, -0.01824951171875, 0.00208282470703125, 0.01812744140625, -0.0096588134765625, 0.00506591796875, -0.01513671875, -0.01523590087890625, -0.006603240966796875, -0.0234222412109375, -0.0182952880859375, 0.0284881591796875, -0.0191802978515625, 0.055999755859375, -0.01522064208984375, -0.00894927978515625, -0.024017333984375, -0.02825927734375, -0.00859832763671875, 0.01165771484375, -0.00563812255859375, -0.0008029937744140625, -0.043792724609375, -0.03631591796875, 0.0576171875, 0.00490570068359375, -0.0511474609375, -0.00162506103515625, 0.053924560546875, 0.0142669677734375, -0.032073974609375, -0.0499267578125, -0.0139923095703125, 0.0268707275390625, -0.01459503173828125, 0.0253753662109375, 0.0016298294067382812, -0.0238189697265625, 0.06988525390625, -0.0159759521484375, 0.02978515625, -0.00563812255859375, 0.01331329345703125, 0.0004355907440185547, -0.004772186279296875, 0.0009860992431640625, -0.001438140869140625, -0.0097808837890625, -0.0158843994140625, -0.0467529296875, 0.0178070068359375, 0.026580810546875, 0.0229339599609375, -0.059356689453125, 0.07623291015625, -0.0141754150390625, -0.037017822265625, 0.016937255859375, 0.007610321044921875, -0.0011472702026367188, 0.0200042724609375, -0.01389312744140625, 0.0076751708984375, -0.016265869140625, -0.0066375732421875, -0.005764007568359375, -0.005584716796875, 0.0309295654296875, 0.00406646728515625, 0.01195526123046875, -0.0005598068237304688, -0.01503753662109375, 0.0027008056640625, 0.0271759033203125, -0.023712158203125, -0.06109619140625, -0.0048675537109375, -0.01166534423828125, 0.0208282470703125, 0.03057861328125, -0.0108795166015625, 0.046844482421875, 0.0143280029296875, -0.0184173583984375, -0.0046539306640625, -0.043182373046875, -0.01409912109375, -0.04144287109375, 0.03076171875, 0.005832672119140625, 0.0014820098876953125, -0.00019621849060058594, 0.05804443359375, -0.0085601806640625, 0.0312042236328125, -0.01044464111328125, 0.003566741943359375, -0.00487518310546875, 0.060089111328125, 0.0119781494140625, -0.0256805419921875, 0.00004464387893676758, 0.030120849609375, 0.0184326171875, -0.048553466796875, -0.0288238525390625, -0.0006046295166015625, 0.06378173828125, -0.0307769775390625, -0.0261688232421875, 0.04119873046875, -0.0177001953125, 0.0006093978881835938, 0.01016998291015625, -0.0113525390625, -0.032928466796875, -0.003265380859375, 0.01415252685546875, 0.0082550048828125, -0.03277587890625, -0.004238128662109375, 0.060821533203125, 0.01018524169921875, 0.061004638671875, -0.049835205078125, 0.01480865478515625, -0.0019216537475585938, 0.017822265625, 0.0066375732421875, -0.009613037109375, 0.006710052490234375, -0.0010232925415039062, -0.004299163818359375, -0.03216552734375, -0.043914794921875, 0.059814453125, -0.0168914794921875, 0.040679931640625, -0.046783447265625, -0.019287109375, -0.057952880859375, -0.00446319580078125, 0.06719970703125, 0.0445556640625, -0.03704833984375, 0.01100921630859375, -0.02911376953125, 0.0170135498046875, 0.0267486572265625, -0.052642822265625, -0.0051422119140625, -0.034271240234375, -0.010894775390625, 0.012451171875, 0.043121337890625, 0.05810546875, 0.0028896331787109375, 0.0158538818359375, -0.043975830078125, 0.004924774169921875, -0.0263824462890625, 0.036102294921875, 0.0278167724609375, 0.00341796875, -0.00418853759765625, 0.00983428955078125, -0.007404327392578125, -0.005374908447265625, -0.0287933349609375, -0.07183837890625, -0.0014171600341796875, 0.0185546875, 0.01016998291015625, 0.046966552734375, 0.00408172607421875, 0.01448822021484375, -0.01015472412109375, 0.033905029296875, 0.01739501953125, -0.003143310546875, -0.05023193359375, 0.04681396484375, -0.0467529296875, 0.0704345703125, -0.01160430908203125, 0.01473236083984375, 0.0162811279296875, -0.0051116943359375, 0.00714874267578125, 0.0022735595703125, 0.00795745849609375, -0.01232147216796875, 0.0160369873046875, -0.00885772705078125, 0.0117950439453125, 0.005340576171875, 0.03448486328125, 0.00860595703125, 0.0303497314453125, -0.0011234283447265625, 0.0135650634765625, -0.044677734375, -0.04632568359375, 0.043731689453125, 0.017120361328125, 0.00328826904296875, 0.059417724609375, -0.0162353515625, -0.040802001953125, -0.030914306640625, 0.036376953125, 0.0177154541015625, 0.00252532958984375, 0.043853759765625, -0.00870513916015625, -0.03594970703125, 0.033843994140625, -0.03424072265625, -0.03814697265625, -0.006717681884765625, -0.00466156005859375, -0.01277923583984375, 0.003742218017578125, 0.0177764892578125, 0.00862884521484375, -0.019378662109375, 0.0496826171875, 0.01496124267578125, -0.0789794921875, 0.04364013671875, 0.046600341796875, 0.01195526123046875, -0.045074462890625, 0.0092315673828125, -0.0022220611572265625, 0.005992889404296875, -0.05987548828125, 0.0246734619140625, -0.01373291015625, 0.010040283203125, 0.031646728515625, -0.001689910888671875, -0.019256591796875, 0.0281219482421875, -0.01220703125, 0.0280609130859375, -0.000270843505859375, -0.057342529296875, -0.0142974853515625, -0.0345458984375, 0.01174163818359375, 0.046783447265625, -0.0283966064453125, 0.0293731689453125, 0.0100860595703125, -0.026397705078125, -0.0155181884765625, -0.0533447265625, 0.06298828125, -0.0181427001953125, -0.010650634765625, 0.012298583984375, 0.01898193359375, -0.00726318359375, -0.019622802734375, -0.008056640625, -0.040679931640625, 0.0164031982421875, -0.02081298828125, 0.022674560546875, 0.01715087890625, -0.0254669189453125, -0.050018310546875, 0.08416748046875, 0.00954437255859375, 0.006603240966796875, 0.00946044921875, 0.0201873779296875, -0.03228759765625, 0.01305389404296875, -0.061981201171875, 0.06646728515625, 0.03936767578125, 0.037933349609375, -0.07177734375, -0.0240936279296875, 0.0013189315795898438, 0.033843994140625, 0.043121337890625, 0.0114593505859375, -0.0231475830078125, 0.0005941390991210938, 0.056976318359375, 0.0153656005859375, -0.0206451416015625, 0.024078369140625, 0.04144287109375, 0.032806396484375, 0.07867431640625, 0.006244659423828125, 0.0574951171875, -0.01357269287109375, 0.011962890625, 0.04840087890625, 0.0214080810546875, 0.034088134765625, 0.0170745849609375, -0.060638427734375, -0.04296875, 0.0159912109375, 0.0234527587890625, 0.01397705078125, 0.010833740234375, 0.0360107421875, 0.01074981689453125, 0.00665283203125, 0.0247802734375, -0.0267791748046875, 0.039031982421875, -0.007389068603515625, 0.030609130859375, 0.05908203125, 0.0284881591796875, 0.053985595703125, -0.0194549560546875, 0.0238037109375, -0.0103912353515625, -0.0006923675537109375, 0.049224853515625, -0.006084442138671875, 0.008544921875, -0.0936279296875, -0.026947021484375, 0.05462646484375, 0.08123779296875, -0.050018310546875, -0.05853271484375, 0.00710296630859375, -0.0015859603881835938, -0.0157318115234375, 0.044219970703125, 0.0189971923828125, 0.1014404296875, 0.12420654296875, -0.07489013671875, 0.00989532470703125, 0.017608642578125, 0.046539306640625, -0.0277252197265625, -0.03057861328125, -0.03875732421875, -0.022369384765625, -0.031585693359375, -0.0036449432373046875, 0.01104736328125, 0.046356201171875, 0.0088043212890625, 0.0447998046875, -0.00916290283203125, -0.01119232177734375, -0.01070404052734375, 0.017242431640625, 0.003143310546875, 0.0024051666259765625, 0.004123687744140625, 0.0269317626953125, -0.0479736328125, 0.0017309188842773438, 0.0238494873046875, -0.00601959228515625, 0.027740478515625, 0.0205841064453125, -0.0233917236328125, -0.01067352294921875, 0.0200958251953125, -0.0229644775390625, -0.024200439453125, -0.0281982421875, 0.0148773193359375, 0.0245208740234375, 0.002460479736328125, 0.0068206787109375, 0.038787841796875, 0.0158538818359375, -0.0042877197265625, 0.0784912109375, 0.002689361572265625, 0.0169677734375, 0.0232696533203125, -0.011474609375, 0.058197021484375, 0.02996826171875, -0.09222412109375, 0.00856781005859375, -0.06585693359375, -0.03558349609375, 0.016326904296875, 0.0153656005859375, -0.005828857421875, 0.01529693603515625, 0.00557708740234375, -0.0285797119140625, 0.0068359375, 0.02301025390625, 0.00904083251953125, 0.026702880859375, 0.0223846435546875, -0.0019292831420898438, -0.0360107421875, -0.007732391357421875, 0.01580810546875, -0.00138092041015625, -0.0109710693359375, 0.0655517578125, -0.0171356201171875, -0.00010579824447631836, -0.0297698974609375, 0.047760009765625, -0.0826416015625, -0.031402587890625, 0.0247955322265625, -0.0372314453125, 0.00399017333984375, 0.0116729736328125, -0.05487060546875, 0.0163116455078125, 0.052398681640625, -0.0152587890625, 0.0192413330078125, 0.004016876220703125, 0.0149078369140625, -0.034149169921875, 0.0859375, -0.0008287429809570312, -0.0186004638671875, -0.0457763671875, -0.03533935546875, 0.06585693359375, 0.08392333984375, 0.026153564453125, -0.00859832763671875, 0.01476287841796875, -0.059478759765625, 0.0300140380859375, -0.01953125, 0.035491943359375, 0.024322509765625, 0.04241943359375, -0.019378662109375, -0.009613037109375, -0.0112457275390625, -0.029022216796875, 0.04083251953125, -0.006702423095703125, -0.0066680908203125, 0.01322174072265625, 0.042083740234375, -0.0180816650390625, 0.029632568359375, -0.0166168212890625, -0.01055145263671875, 0.0204620361328125, 0.024139404296875, -0.026092529296875, -0.0391845703125, -0.018096923828125, -0.04095458984375, -0.0265350341796875, -0.0011796951293945312, -0.0185394287109375, -0.048919677734375, 0.0174713134765625, 0.0017604827880859375, 0.0266571044921875, -0.0263214111328125, 0.02972412109375, -0.01171875, -0.048675537109375, -0.0010271072387695312, -0.0038318634033203125, -0.00830078125, 0.01531982421875, 0.047607421875, -0.024169921875, -0.021881103515625, -0.021148681640625, 0.0008931159973144531, -0.03900146484375, 0.00534820556640625, 0.018310546875, -0.0159759521484375, -0.01511383056640625, 0.0152130126953125, 0.0176544189453125, 0.048095703125, 0.009185791015625, -0.030487060546875, 0.01274871826171875, -0.0008940696716308594, -0.03155517578125, -0.06353759765625, 0.03082275390625, -0.0926513671875, -0.02490234375, -0.020263671875, 0.0187530517578125, 0.03375244140625, -0.024078369140625, -0.0328369140625, 0.05816650390625, -0.0218963623046875, -0.009521484375, -0.05523681640625, -0.0018463134765625, 0.004116058349609375, -0.0089569091796875, -0.01436614990234375, -0.006923675537109375, -0.0352783203125, 0.0285186767578125, -0.0084228515625, 0.0308380126953125, 0.0291595458984375, -0.002437591552734375, -0.0252532958984375, -0.01078033447265625, -0.0284423828125, -0.0217437744140625, 0.0117340087890625, -0.01273345947265625, 0.0289459228515625, 0.033905029296875, -0.0212554931640625, -0.019561767578125, 0.00247955322265625, -0.0263671875, -0.00830841064453125, -0.051422119140625, -0.039215087890625, -0.0245361328125, 0.0850830078125, 0.03131103515625, 0.029693603515625, -0.0267181396484375, -0.07769775390625, -0.004833221435546875, -0.05670166015625, -0.008331298828125, 0.06182861328125, -0.1038818359375, 0.01007080078125, 0.0151519775390625, -0.020660400390625, 0.0294036865234375, -0.022247314453125, -0.03582763671875, 0.001190185546875, -0.039581298828125, -0.021514892578125, -0.0308990478515625, 0.046783447265625, -0.01064300537109375, -0.0160369873046875, -0.0200347900390625, -0.03289794921875, -0.00433349609375, -0.0175628662109375, -0.031463623046875, 0.01568603515625, 0.01340484619140625, 0.00835418701171875, -0.0227508544921875, 0.04071044921875, -0.019500732421875, 0.0545654296875, -0.0209808349609375, -0.012451171875, 0.0167083740234375, 0.01454925537109375, 0.005451202392578125, -0.018341064453125, 0.017303466796875, 0.01123809814453125, 0.02978515625, -0.02093505859375, 0.0577392578125, -0.006175994873046875, 0.0482177734375, -0.011077880859375, -0.0226898193359375, 0.0126800537109375, -0.0322265625, 0.005092620849609375, -0.00366973876953125, -0.013580322265625, -0.01556396484375, -0.028167724609375, 0.015411376953125, -0.0107879638671875, -0.000514984130859375 ]
a4e1edb79933db30ff1982d8cb8b72fd9158c0b9
Wordpress Stackexchange Q: How to make sense of the active_plugins option_value to enable and disable certain plugins from the database? Can anyone explain how to interpret and make sense of the active_plugins option_value string in WordPress. And then use this string/ array to disable and activate specific plugins? Here is an example: a:8:{i:0;s:21:"adrotate/adrotate.php";i:1;s:19:"akismet/akismet.php";i:2;s:33:"better-related/better-related.php";i:3;s:17:"clicky/clicky.php";i:4;s:49:"custom-post-permalinks/custom-post-permalinks.php";i:5;s:32:"disqus-comment-system/disqus.php";i:6;s:33:"export-to-text/export-to-text.php";i:7;s:36:"google-sitemap-generator/sitemap.php";} A: That's a serialized array. // Serialized: a:8:{i:0;s:21:"adrotate/adrotate.php";i:1;s:19:"akismet/akismet.php";i:2;s:33:"better-related/better-related.php";i:3;s:17:"clicky/clicky.php";i:4;s:49:"custom-post-permalinks/custom-post-permalinks.php";i:5;s:32:"disqus-comment-system/disqus.php";i:6;s:33:"export-to-text/export-to-text.php";i:7;s:36:"google-sitemap-generator/sitemap.php";} // dump: var_dump( maybe_unserialize('a:8:{i:0;s:21:"adrotate/adrotate.php";i:1;s:19:"akismet/akismet.php";i:2;s:33:"better-related/better-related.php";i:3;s:17:"clicky/clicky.php";i:4;s:49:"custom-post-permalinks/custom-post-permalinks.php";i:5;s:32:"disqus-comment-system/disqus.php";i:6;s:33:"export-to-text/export-to-text.php";i:7;s:36:"google-sitemap-generator/sitemap.php";}') ); // Result array(8) { [0]=> string(21) "adrotate/adrotate.php" [1]=> string(19) "akismet/akismet.php" [2]=> string(33) "better-related/better-related.php" [3]=> string(17) "clicky/clicky.php" [4]=> string(49) "custom-post-permalinks/custom-post-permalinks.php" [5]=> string(32) "disqus-comment-system/disqus.php" [6]=> string(33) "export-to-text/export-to-text.php" [7]=> string(36) "google-sitemap-generator/sitemap.php" } Use maybe_unserialize() or unserialize() to transform it back to an array.
Q: How to make sense of the active_plugins option_value to enable and disable certain plugins from the database? Can anyone explain how to interpret and make sense of the active_plugins option_value string in WordPress. And then use this string/ array to disable and activate specific plugins? Here is an example: a:8:{i:0;s:21:"adrotate/adrotate.php";i:1;s:19:"akismet/akismet.php";i:2;s:33:"better-related/better-related.php";i:3;s:17:"clicky/clicky.php";i:4;s:49:"custom-post-permalinks/custom-post-permalinks.php";i:5;s:32:"disqus-comment-system/disqus.php";i:6;s:33:"export-to-text/export-to-text.php";i:7;s:36:"google-sitemap-generator/sitemap.php";} A: That's a serialized array. // Serialized: a:8:{i:0;s:21:"adrotate/adrotate.php";i:1;s:19:"akismet/akismet.php";i:2;s:33:"better-related/better-related.php";i:3;s:17:"clicky/clicky.php";i:4;s:49:"custom-post-permalinks/custom-post-permalinks.php";i:5;s:32:"disqus-comment-system/disqus.php";i:6;s:33:"export-to-text/export-to-text.php";i:7;s:36:"google-sitemap-generator/sitemap.php";} // dump: var_dump( maybe_unserialize('a:8:{i:0;s:21:"adrotate/adrotate.php";i:1;s:19:"akismet/akismet.php";i:2;s:33:"better-related/better-related.php";i:3;s:17:"clicky/clicky.php";i:4;s:49:"custom-post-permalinks/custom-post-permalinks.php";i:5;s:32:"disqus-comment-system/disqus.php";i:6;s:33:"export-to-text/export-to-text.php";i:7;s:36:"google-sitemap-generator/sitemap.php";}') ); // Result array(8) { [0]=> string(21) "adrotate/adrotate.php" [1]=> string(19) "akismet/akismet.php" [2]=> string(33) "better-related/better-related.php" [3]=> string(17) "clicky/clicky.php" [4]=> string(49) "custom-post-permalinks/custom-post-permalinks.php" [5]=> string(32) "disqus-comment-system/disqus.php" [6]=> string(33) "export-to-text/export-to-text.php" [7]=> string(36) "google-sitemap-generator/sitemap.php" } Use maybe_unserialize() or unserialize() to transform it back to an array. A: It looks very heavy duty in comparison with JSON! Though also not too hard. Here's mine before modification. I want to disable Google Authenticator to allow myself to log in again. My provider now provides HTTPS for free thankfully, though before this I relied on authenticator as a protection against password sniffing. It's still a very useful feature to have, HTTPS or not. So I intend to reset and re-enable it once my phone has a new token for it. It looks like "Array, length 5" and for each item "Index, Length, Value". I've highlighted the entry for Authenticator. My modification was to delete this entry, modify the array length to 4 and reduce the index values for all subsequent entries. Here's the diff showing the change. I've formatted it for easier read here. I wouldn't expect it to work if formatted like this! A: I had more than a few times where I could NOT disable plugins on our Wordpress site, and the only avenue was database access. I could read/write to the DB, so I made this python tool to list the plugins in human-readable form; delete them from the list by line number; save the delete plugin entries to a backup file; and create a new PHP string to insert back into the database. As I drew inspiration partly from this thread, I thought I'd add a link to it here: https://github.com/Solarbotics/Wordpress_plugin_managment_by_db
wordpress
{ "language": "en", "length": 340, "provenance": "stackexchange_00019.jsonl.gz:417920", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45109" }
[ 0.08734130859375, -0.006046295166015625, 0.04925537109375, -0.031097412109375, 0.01404571533203125, -0.01210784912109375, 0.066162109375, -0.0333251953125, 0.01371002197265625, -0.0115966796875, -0.0136260986328125, -0.0047149658203125, -0.033203125, -0.04864501953125, 0.0266876220703125, -0.035980224609375, 0.04766845703125, 0.00531768798828125, 0.0229339599609375, 0.0190887451171875, 0.0036029815673828125, 0.05340576171875, -0.02490234375, 0.040863037109375, 0.01514434814453125, -0.0225067138671875, 0.07794189453125, -0.0457763671875, 0.03753662109375, -0.0001811981201171875, 0.007396697998046875, -0.0256195068359375, 0.0163726806640625, 0.00533294677734375, 0.015655517578125, -0.020416259765625, 0.00876617431640625, -0.0002701282501220703, 0.00785064697265625, 0.032470703125, 0.0367431640625, -0.021575927734375, 0.021728515625, -0.006023406982421875, 0.0045166015625, -0.02545166015625, 0.040771484375, -0.019256591796875, -0.0162353515625, 0.010955810546875, -0.0174407958984375, 0.01007843017578125, 0.0012369155883789062, -0.0219879150390625, 0.002166748046875, -0.01445770263671875, -0.05615234375, 0.083984375, 0.0335693359375, 0.0389404296875, -0.0264129638671875, 0.003902435302734375, -0.0120391845703125, -0.02911376953125, 0.022796630859375, -0.0114898681640625, 0.002605438232421875, 0.04205322265625, -0.0528564453125, 0.0134124755859375, 0.0276641845703125, -0.039947509765625, 0.015716552734375, -0.05224609375, -0.03765869140625, 0.0200042724609375, -0.01025390625, -0.030853271484375, 0.01593017578125, -0.048187255859375, 0.031402587890625, 0.0019779205322265625, 0.01142120361328125, -0.00763702392578125, 0.006214141845703125, 0.0132904052734375, 0.006183624267578125, -0.0229644775390625, 0.00014066696166992188, 0.0047607421875, -0.01473236083984375, 0.0234527587890625, 0.007762908935546875, 0.01348876953125, -0.0214385986328125, 0.0035037994384765625, 0.0372314453125, 0.019256591796875, 0.01197052001953125, 0.00008177757263183594, 0.0108642578125, -0.03851318359375, 0.007511138916015625, -0.0201263427734375, -0.0085296630859375, 0.025543212890625, 0.0181732177734375, 0.0235748291015625, 0.0260162353515625, -0.002193450927734375, -0.0197296142578125, 0.0287017822265625, 0.0227813720703125, 0.01334381103515625, 0.001163482666015625, -0.045074462890625, -0.043548583984375, 0.048919677734375, -0.017486572265625, 0.029266357421875, -0.0093231201171875, 0.0164642333984375, 0.0191192626953125, -0.037445068359375, 0.0232391357421875, -0.002170562744140625, -0.0216827392578125, -0.0160675048828125, 0.004840850830078125, 0.0277557373046875, -0.01421356201171875, -0.00002586841583251953, 0.034698486328125, 0.031890869140625, 0.0074005126953125, -0.00879669189453125, -0.0035305023193359375, 0.017822265625, -0.0037860870361328125, 0.0149688720703125, -0.024322509765625, -0.051513671875, 0.023712158203125, -0.0112152099609375, 0.0036754608154296875, -0.0190887451171875, 0.020111083984375, 0.04681396484375, -0.003528594970703125, -0.031219482421875, 0.04449462890625, 0.0030193328857421875, 0.041961669921875, 0.0079193115234375, -0.0684814453125, -0.0128631591796875, 0.0024242401123046875, -0.02227783203125, -0.033172607421875, -0.05963134765625, 0.00740814208984375, -0.0085601806640625, -0.01025390625, -0.04656982421875, -0.0338134765625, -0.006622314453125, -0.0173797607421875, 0.006805419921875, 0.02081298828125, 0.00997161865234375, 0.0027179718017578125, -0.019439697265625, 0.006847381591796875, 0.01398468017578125, 0.0002455711364746094, 0.0296783447265625, -0.03277587890625, -0.01538848876953125, 0.0345458984375, 0.005214691162109375, -0.004512786865234375, -0.0096435546875, 0.027099609375, 0.01406097412109375, -0.07049560546875, 0.077880859375, -0.008514404296875, 0.07037353515625, 0.006427764892578125, -0.005970001220703125, 0.053466796875, 0.021759033203125, -0.0316162109375, 0.03094482421875, -0.016357421875, -0.0269012451171875, -0.0032501220703125, 0.01256561279296875, -0.0196533203125, -0.01331329345703125, 0.0121612548828125, 0.00954437255859375, 0.013397216796875, -0.0257415771484375, -0.0880126953125, 0.00930023193359375, -0.036834716796875, 0.05279541015625, -0.0263671875, 0.006195068359375, 0.018951416015625, -0.006298065185546875, -0.0300750732421875, 0.0423583984375, 0.01326751708984375, 0.0047760009765625, 0.020233154296875, 0.02020263671875, -0.0028209686279296875, -0.0027332305908203125, 0.02618408203125, -0.0306549072265625, -0.004947662353515625, 0.040374755859375, -0.0011091232299804688, -0.004817962646484375, -0.0166778564453125, -0.00962066650390625, -0.005092620849609375, 0.004207611083984375, 0.019805908203125, 0.038604736328125, 0.050689697265625, 0.0396728515625, -0.011993408203125, -0.01116180419921875, 0.0174713134765625, -0.05926513671875, 0.0016040802001953125, 0.042236328125, 0.0262603759765625, 0.046112060546875, -0.0423583984375, -0.043243408203125, 0.0149078369140625, -0.037353515625, 0.01513671875, -0.02777099609375, -0.01314544677734375, 0.00936126708984375, -0.047576904296875, 0.0277252197265625, 0.051849365234375, 0.011962890625, -0.0006036758422851562, 0.059661865234375, -0.05364990234375, -0.0216217041015625, 0.003116607666015625, 0.004161834716796875, 0.0191192626953125, 0.053131103515625, 0.041717529296875, 0.01178741455078125, 0.03338623046875, 0.015228271484375, 0.01544189453125, 0.00966644287109375, -0.036376953125, 0.0268402099609375, 0.01120758056640625, -0.047332763671875, -0.01776123046875, -0.0228271484375, 0.034271240234375, -0.040802001953125, -0.032440185546875, 0.01788330078125, -0.025970458984375, -0.0239715576171875, -0.00980377197265625, -0.0184173583984375, -0.0215301513671875, -0.000042557716369628906, 0.021209716796875, -0.057220458984375, 0.0149993896484375, 0.0240478515625, -0.070068359375, -0.0277557373046875, 0.0167388916015625, 0.00849151611328125, -0.034332275390625, -0.010711669921875, 0.010345458984375, -0.006572723388671875, 0.047821044921875, -0.03363037109375, 0.0200958251953125, -0.0102081298828125, 0.0574951171875, 0.05206298828125, -0.010772705078125, 0.002765655517578125, -0.00818634033203125, -0.0084075927734375, 0.0189361572265625, -0.029754638671875, -0.0252685546875, -0.0163421630859375, -0.046661376953125, 0.0175933837890625, 0.0075531005859375, 0.052093505859375, -0.034576416015625, -0.063720703125, -0.0076904296875, 0.0157623291015625, -0.08160400390625, -0.071533203125, 0.029327392578125, -0.0682373046875, 0.00662994384765625, -0.00223541259765625, -0.03662109375, -0.01715087890625, 0.0294647216796875, 0.0037479400634765625, -0.019012451171875, -0.050994873046875, -0.034637451171875, -0.057830810546875, -0.06231689453125, 0.01221466064453125, 0.010284423828125, 0.003070831298828125, 0.0128021240234375, 0.0005278587341308594, 0.00516510009765625, -0.025482177734375, 0.0171966552734375, -0.0250244140625, 0.006275177001953125, 0.0175628662109375, -0.058746337890625, 0.02197265625, 0.0177459716796875, 0.0038394927978515625, 0.0718994140625, 0.00319671630859375, -0.00717926025390625, -0.0072479248046875, 0.028045654296875, 0.06341552734375, 0.04534912109375, -0.018646240234375, -0.01428985595703125, 0.04644775390625, -0.001186370849609375, -0.01409149169921875, -0.00989532470703125, -0.0207366943359375, -0.054718017578125, 0.0006351470947265625, 0.0239715576171875, 0.0096588134765625, 0.012786865234375, -0.01464080810546875, 0.03045654296875, -0.002651214599609375, 0.023468017578125, -0.0313720703125, -0.0168914794921875, 0.01708984375, 0.048065185546875, -0.03277587890625, 0.06048583984375, -0.022857666015625, 0.0244140625, 0.0185699462890625, -0.043609619140625, -0.0092620849609375, -0.02752685546875, -0.032623291015625, -0.03570556640625, 0.043487548828125, -0.025115966796875, -0.0258026123046875, -0.02386474609375, -0.017852783203125, -0.0089263916015625, 0.0389404296875, -0.054290771484375, -0.01038360595703125, -0.00394439697265625, 0.013031005859375, 0.01245880126953125, 0.00017547607421875, -0.014862060546875, -0.0204010009765625, -0.0992431640625, -0.008636474609375, -0.038055419921875, -0.017547607421875, -0.0174713134765625, -0.015594482421875, -0.049835205078125, -0.05865478515625, 0.0240020751953125, 0.0194854736328125, -0.0023975372314453125, 0.0233917236328125, -0.0089111328125, 0.0055084228515625, -0.0213165283203125, -0.00789642333984375, -0.06976318359375, -0.033538818359375, 0.033966064453125, 0.043731689453125, 0.00838470458984375, -0.032562255859375, -0.030120849609375, 0.03314208984375, -0.01158905029296875, -0.061676025390625, 0.017333984375, 0.01088714599609375, -0.0282135009765625, 0.036376953125, -0.01354217529296875, -0.0089111328125, -0.0189971923828125, 0.006069183349609375, -0.03070068359375, -0.02734375, 0.0093536376953125, -0.052490234375, 0.05950927734375, -0.04638671875, -0.0972900390625, -0.002960205078125, -0.023040771484375, 0.010009765625, -0.038848876953125, -0.01013946533203125, -0.0093994140625, -0.113037109375, 0.07794189453125, -0.0181884765625, -0.006927490234375, -0.01142120361328125, 0.03240966796875, 0.00836181640625, -0.032501220703125, -0.005275726318359375, -0.0186767578125, 0.0115203857421875, 0.040740966796875, 0.028839111328125, -0.004711151123046875, -0.0018529891967773438, 0.02520751953125, -0.01172637939453125, -0.0325927734375, -0.056243896484375, 0.06573486328125, 0.01056671142578125, 0.019256591796875, -0.0194549560546875, -0.029693603515625, 0.0643310546875, 0.0189971923828125, 0.0023670196533203125, -0.0256500244140625, -0.00557708740234375, 0.04071044921875, -0.012786865234375, 0.0236358642578125, -0.043426513671875, -0.03564453125, 0.01126861572265625, -0.0014848709106445312, 0.017578125, 0.0297393798828125, -0.0104522705078125, 0.031829833984375, -0.020263671875, -0.0204925537109375, -0.006786346435546875, 0.03717041015625, -0.0226898193359375, 0.0011653900146484375, 0.003047943115234375, -0.049774169921875, -0.0267181396484375, 0.0027370452880859375, 0.034576416015625, -0.0130767822265625, -0.05816650390625, -0.03900146484375, 0.00441741943359375, 0.0614013671875, 0.00917816162109375, 0.0196380615234375, 0.056793212890625, 0.042877197265625, -0.020172119140625, -0.006778717041015625, 0.00411224365234375, 0.0280303955078125, -0.04364013671875, -0.0200653076171875, 0.00717926025390625, -0.0023555755615234375, -0.0290374755859375, 0.082763671875, 0.022308349609375, 0.014129638671875, -0.029296875, 0.0161285400390625, 0.00962066650390625, 0.02789306640625, 0.01166534423828125, -0.01384735107421875, -0.010101318359375, 0.00832366943359375, 0.02294921875, -0.03021240234375, -0.00907135009765625, -0.01479339599609375, 0.028533935546875, 0.0015277862548828125, -0.00435638427734375, 0.0250701904296875, -0.01495361328125, -0.050933837890625, 0.063720703125, 0.0399169921875, -0.073974609375, -0.00997161865234375, 0.035430908203125, 0.013885498046875, -0.0109100341796875, 0.0009579658508300781, -0.00070953369140625, -0.022857666015625, -0.0207061767578125, 0.0355224609375, -0.032867431640625, -0.03167724609375, -0.0188446044921875, 0.0198211669921875, 0.0187835693359375, -0.0282440185546875, -0.054534912109375, -0.058746337890625, 0.02069091796875, 0.01611328125, 0.018707275390625, -0.01001739501953125, 0.0211181640625, -0.0201873779296875, -0.0179901123046875, -0.016571044921875, 0.009613037109375, 0.0116119384765625, 0.002552032470703125, -0.05999755859375, 0.0229034423828125, -0.03564453125, -0.01287078857421875, -0.0109100341796875, -0.02392578125, -0.050628662109375, -0.0243377685546875, 0.0030269622802734375, 0.015716552734375, 0.0080413818359375, 0.005214691162109375, 0.0266571044921875, 0.01338958740234375, -0.0188140869140625, 0.0304107666015625, -0.00870513916015625, 0.07501220703125, 0.009552001953125, 0.032745361328125, 0.03619384765625, 0.052490234375, -0.0176544189453125, -0.0116729736328125, -0.018310546875, -0.043792724609375, -0.01666259765625, 0.023590087890625, -0.007568359375, 0.032501220703125, 0.0267333984375, 0.0020008087158203125, 0.018218994140625, 0.02618408203125, 0.0191497802734375, -0.032012939453125, -0.024383544921875, 0.0159759521484375, 0.03564453125, -0.0242767333984375, -0.035491943359375, -0.035186767578125, 0.01387786865234375, -0.0111846923828125, 0.00907135009765625, -0.0033111572265625, -0.0144195556640625, 0.0290679931640625, -0.023040771484375, 0.0089874267578125, 0.06817626953125, 0.0261383056640625, 0.055389404296875, 0.01611328125, 0.026397705078125, 0.0222625732421875, 0.00513458251953125, 0.045440673828125, 0.023895263671875, 0.06817626953125, 0.002994537353515625, 0.004425048828125, 0.03875732421875, -0.027587890625, 0.00940704345703125, 0.0748291015625, 0.07318115234375, -0.10260009765625, 0.00554656982421875, 0.00971221923828125, 0.026031494140625, 0.05029296875, 0.01363372802734375, -0.00043582916259765625, -0.023193359375, -0.01476287841796875, -0.011566162109375, -0.0251007080078125, -0.0264129638671875, -0.01248931884765625, -0.003948211669921875, -0.0081787109375, 0.0179595947265625, 0.01154327392578125, -0.0262603759765625, 0.023651123046875, 0.00814056396484375, 0.006595611572265625, -0.0163116455078125, -0.03631591796875, -0.0034084320068359375, -0.02313232421875, -0.04541015625, -0.0189208984375, -0.045257568359375, 0.01178741455078125, -0.052734375, -0.036651611328125, 0.051116943359375, 0.0280609130859375, -0.02545166015625, -0.037628173828125, 0.017242431640625, -0.004940032958984375, -0.0009021759033203125, -0.02783203125, -0.008575439453125, 0.01230621337890625, 0.0208587646484375, 0.0226593017578125, 0.00916290283203125, -0.04974365234375, -0.0247650146484375, 0.049530029296875, 0.11077880859375, 0.0015239715576171875, -0.040008544921875, 0.058258056640625, 0.0220947265625, -0.0482177734375, -0.045196533203125, 0.025909423828125, -0.09027099609375, -0.026275634765625, -0.01398468017578125, -0.0341796875, -0.017547607421875, -0.055267333984375, -0.03924560546875, 0.10595703125, -0.0134124755859375, 0.018768310546875, 0.0276641845703125, 0.0457763671875, -0.0290985107421875, 0.02874755859375, 0.0048828125, 0.0445556640625, -0.044219970703125, 0.0192413330078125, -0.031890869140625, 0.011016845703125, 0.005512237548828125, 0.036346435546875, 0.0655517578125, 0.010284423828125, -0.02471923828125, -0.0013284683227539062, 0.049774169921875, 0.002468109130859375, -0.0301055908203125, 0.0421142578125, 0.004878997802734375, 0.057861328125, 0.0496826171875, -0.059051513671875, 0.0198516845703125, 0.006229400634765625, -0.0017404556274414062, 0.0282745361328125, 0.0059051513671875, 0.0204315185546875, 0.0007567405700683594, 0.02923583984375, 0.00634002685546875, -0.005126953125, 0.0182342529296875, -0.0303192138671875, -0.0102996826171875, -0.0175628662109375, -0.0170440673828125, -0.036590576171875, -0.011810302734375, -0.006450653076171875, 0.021514892578125, 0.005893707275390625, 0.01114654541015625, 0.0228118896484375, 0.0283660888671875, 0.00927734375, -0.031524658203125, 0.0159149169921875, 0.0144500732421875, -0.023193359375, 0.0299530029296875, 0.030914306640625, 0.0107574462890625, 0.0061798095703125, 0.03582763671875, 0.033203125, 0.0264892578125, -0.04052734375, -0.04791259765625, 0.0098114013671875, 0.0229644775390625, 0.0162506103515625, 0.0101318359375, 0.03656005859375, -0.01360321044921875, 0.0284576416015625, -0.0278167724609375, 0.015472412109375, 0.0248565673828125, 0.0029144287109375, 0.0013151168823242188, 0.025390625, -0.036529541015625, 0.037200927734375, -0.04840087890625, -0.0018453598022460938, -0.011444091796875, 0.04473876953125, 0.037750244140625, 0.040802001953125, 0.02703857421875, -0.03350830078125, -0.016998291015625, 0.01544952392578125, -0.004192352294921875, 0.0369873046875, -0.071044921875, -0.01194000244140625, -0.0008144378662109375, 0.056488037109375, -0.0253448486328125, 0.059967041015625, 0.032257080078125, 0.04766845703125, 0.01126861572265625, 0.00025081634521484375, 0.100830078125, -0.01145172119140625, -0.032318115234375, -0.058197021484375, 0.023895263671875, 0.0150909423828125, 0.02215576171875, 0.0166168212890625, 0.02874755859375, 0.0006155967712402344, -0.0211334228515625, 0.0244903564453125, -0.00019049644470214844, -0.0068817138671875, 0.026397705078125, 0.019256591796875, 0.00982666015625, 0.01751708984375, -0.0004673004150390625, 0.021087646484375, -0.00872802734375, -0.07232666015625, -0.0206451416015625, 0.027496337890625, -0.0242462158203125, 0.03143310546875, -0.0204620361328125, -0.018707275390625, 0.0019779205322265625, 0.00860595703125, -0.005146026611328125, 0.0021381378173828125, 0.00215911865234375, -0.0112457275390625, -0.03326416015625, -0.0048370361328125, -0.01291656494140625, 0.0172271728515625, -0.006122589111328125, 0.051788330078125, -0.0014791488647460938, 0.02362060546875, -0.03082275390625, -0.0178680419921875, -0.0225372314453125, -0.0073394775390625, -0.03240966796875, -0.003086090087890625, 0.0050811767578125, 0.01087188720703125, -0.036865234375, 0.021514892578125, 0.02154541015625, -0.032440185546875, -0.01384735107421875, 0.006984710693359375, 0.0192413330078125, -0.0028018951416015625, 0.026947021484375, -0.0367431640625, -0.046417236328125, -0.03466796875, -0.01617431640625, 0.0164031982421875, 0.0252227783203125, 0.0247802734375, 0.003040313720703125, 0.033538818359375, 0.0019702911376953125, -0.0118865966796875, 0.0227508544921875, 0.00717926025390625, 0.02349853515625, -0.014373779296875, -0.0285186767578125, 0.006366729736328125, -0.018157958984375, 0.006679534912109375, 0.0005669593811035156, 0.01541900634765625, 0.021728515625, -0.0333251953125, -0.0108795166015625, -0.01169586181640625, 0.0105133056640625, -0.004520416259765625, 0.0020198822021484375, -0.0086517333984375, -0.004978179931640625, 0.0032215118408203125, -0.0279388427734375, -0.0031414031982421875, -0.0277862548828125, -0.0303192138671875, 0.02099609375, -0.04864501953125, -0.039825439453125, -0.039215087890625, 0.006313323974609375, 0.0219879150390625, 0.0037937164306640625, -0.04443359375, 0.0228118896484375, -0.035125732421875, 0.036224365234375, -0.00595855712890625, 0.01824951171875, -0.039703369140625, -0.0287933349609375, -0.018951416015625, -0.048858642578125, -0.054443359375, 0.06732177734375, -0.01141357421875, 0.041351318359375, 0.03662109375, -0.027496337890625, -0.0211639404296875, 0.051727294921875, 0.0113525390625, 0.09747314453125, 0.004299163818359375, 0.006374359130859375, 0.037139892578125, -0.01477813720703125, -0.037689208984375, -0.08319091796875, 0.0079803466796875, -0.06573486328125, -0.0261688232421875, -0.01031494140625, -0.0054473876953125, -0.0039005279541015625, -0.042236328125, -0.08514404296875, 0.06036376953125, -0.01629638671875, -0.032562255859375, -0.0159149169921875, 0.0006546974182128906, 0.0243377685546875, -0.0175323486328125, -0.00774383544921875, -0.007568359375, -0.05560302734375, -0.021514892578125, -0.00012814998626708984, 0.0416259765625, -0.00858306884765625, -0.004642486572265625, -0.0139007568359375, 0.0311279296875, 0.032012939453125, -0.01160430908203125, 0.00859832763671875, 0.0123748779296875, 0.03515625, 0.040771484375, -0.019927978515625, 0.056671142578125, -0.0003333091735839844, -0.0252227783203125, 0.001636505126953125, -0.021240234375, -0.039459228515625, -0.0047607421875, 0.0833740234375, 0.057403564453125, 0.03472900390625, -0.045867919921875, -0.05633544921875, -0.0582275390625, 0.0011816024780273438, -0.029876708984375, 0.03167724609375, -0.11419677734375, -0.01285552978515625, 0.037841796875, 0.0029239654541015625, 0.0298004150390625, 0.02197265625, 0.0252838134765625, -0.01276397705078125, 0.0660400390625, -0.050811767578125, 0.02215576171875, -0.0322265625, -0.01385498046875, -0.005153656005859375, -0.0015382766723632812, -0.01605224609375, 0.019317626953125, -0.007129669189453125, 0.027252197265625, -0.0017547607421875, -0.0379638671875, -0.0164642333984375, 0.01263427734375, -0.00308990478515625, 0.041229248046875, -0.017547607421875, -0.0379638671875, 0.0026645660400390625, 0.0008015632629394531, 0.006038665771484375, -0.0254669189453125, -0.054534912109375, 0.02264404296875, -0.0183868408203125, 0.019561767578125, 0.00859832763671875, 0.044769287109375, -0.0129852294921875, 0.035491943359375, 0.01316070556640625, -0.034454345703125, 0.028045654296875, -0.0400390625, 0.003253936767578125, 0.0167236328125, -0.01433563232421875, -0.0576171875, 0.0276031494140625, 0.01190185546875, 0.00960540771484375, 0.01739501953125 ]
731333d27287c4058330e2e18a7484581f4806fd
Wordpress Stackexchange Q: Prevent access to single post types Say that I want to make a post type called 'press' and it is mostly concerned with linking a title with a PDF document of a press clipping. I want to show all of these as an archive... so something like site.com/press but i don't want any single post template pages. so no site.com/press/article1 or site.com/press/article2. other than not including a link in my archive template (which just obscures it but doesn't negate their existence or prevent access to the single posts) how can i prevent a visitor from inadvertently accessing the single posts. how could i re-direct them back to the /press archive? A: An alternative to redirecting users would be to make it so this page isn't generated to begin with. Setting your post type to 'public' => false, 'publicly_queryable' => true will create a non-public post type. Then you can build a custom page template to act as the archive, with a custom query in the page template. See the register_post_type function for more info.
Q: Prevent access to single post types Say that I want to make a post type called 'press' and it is mostly concerned with linking a title with a PDF document of a press clipping. I want to show all of these as an archive... so something like site.com/press but i don't want any single post template pages. so no site.com/press/article1 or site.com/press/article2. other than not including a link in my archive template (which just obscures it but doesn't negate their existence or prevent access to the single posts) how can i prevent a visitor from inadvertently accessing the single posts. how could i re-direct them back to the /press archive? A: An alternative to redirecting users would be to make it so this page isn't generated to begin with. Setting your post type to 'public' => false, 'publicly_queryable' => true will create a non-public post type. Then you can build a custom page template to act as the archive, with a custom query in the page template. See the register_post_type function for more info. A: The fast way In your .htaccess add a rule RedirectMatch Permanent ^/press/.+ /press/ Plugin way Hook into template_redirect and redirect all requests to a single entry: add_action( 'template_redirect', 'wpse_45164_redirect_press' ); function wpse_45164_redirect_press() { if ( ! is_singular( 'press' ) ) return; wp_redirect( get_post_type_archive_link( 'press' ), 301 ); exit; } (Caveat: not tested)
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:417940", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45164" }
[ 0.072021484375, 0.0106048583984375, 0.033355712890625, 0.012359619140625, -0.006450653076171875, -0.02142333984375, 0.05487060546875, -0.058746337890625, -0.033294677734375, 0.01165008544921875, 0.05511474609375, -0.01654052734375, -0.01378631591796875, -0.061065673828125, 0.0277557373046875, -0.020477294921875, 0.031524658203125, -0.0255126953125, 0.0105743408203125, -0.023284912109375, 0.0301055908203125, -0.0213165283203125, 0.035400390625, 0.007671356201171875, 0.0013284683227539062, 0.034698486328125, 0.0682373046875, -0.06146240234375, 0.02349853515625, -0.01145172119140625, 0.0235443115234375, -0.050140380859375, 0.016265869140625, 0.0287628173828125, -0.03369140625, 0.004650115966796875, -0.042266845703125, 0.045745849609375, 0.001667022705078125, 0.0036563873291015625, -0.00969696044921875, 0.0079498291015625, -0.0257568359375, 0.0183258056640625, -0.03509521484375, -0.033935546875, -0.016510009765625, -0.0286102294921875, 0.0256805419921875, 0.03826904296875, -0.01210784912109375, 0.0209503173828125, -0.005252838134765625, 0.01299285888671875, -0.0222320556640625, -0.031707763671875, 0.0229034423828125, -0.07562255859375, 0.044769287109375, -0.0186309814453125, -0.034576416015625, -0.0433349609375, 0.033172607421875, -0.03118896484375, -0.00971221923828125, -0.0099945068359375, -0.0227813720703125, 0.0246124267578125, -0.0643310546875, -0.0292205810546875, 0.035308837890625, -0.044097900390625, 0.043548583984375, -0.042633056640625, -0.03704833984375, -0.005779266357421875, 0.0177764892578125, -0.0301055908203125, 0.0006299018859863281, -0.042022705078125, -0.0122528076171875, 0.00579071044921875, -0.040557861328125, -0.02716064453125, 0.0007300376892089844, -0.01071929931640625, -0.017486572265625, -0.006305694580078125, -0.0135650634765625, -0.00913238525390625, -0.025787353515625, -0.046905517578125, 0.0173187255859375, 0.026580810546875, -0.01206207275390625, 0.0059661865234375, 0.02874755859375, 0.0236053466796875, 0.021453857421875, 0.01131439208984375, 0.008758544921875, -0.041778564453125, 0.0135955810546875, -0.020660400390625, 0.022491455078125, 0.0589599609375, 0.00925445556640625, 0.036407470703125, 0.06488037109375, -0.0009350776672363281, 0.017791748046875, 0.036865234375, -0.0306243896484375, -0.01233673095703125, -0.0212554931640625, 0.05841064453125, -0.01340484619140625, -0.0107421875, -0.002597808837890625, 0.036895751953125, 0.0163421630859375, 0.01558685302734375, 0.05072021484375, -0.01300811767578125, -0.002941131591796875, 0.001056671142578125, -0.05419921875, -0.03857421875, 0.0025424957275390625, 0.0251007080078125, 0.0104522705078125, -0.0094757080078125, -0.0129547119140625, 0.0156707763671875, -0.0086212158203125, -0.01284027099609375, -0.00267791748046875, 0.020538330078125, -0.00675201416015625, 0.0001863241195678711, 0.0242767333984375, -0.02923583984375, -0.005100250244140625, 0.018585205078125, -0.007114410400390625, 0.0137481689453125, 0.0312347412109375, 0.011871337890625, -0.011260986328125, -0.02020263671875, -0.052825927734375, 0.03143310546875, 0.04132080078125, -0.0129852294921875, -0.0257568359375, -0.060882568359375, 0.010955810546875, -0.023773193359375, -0.0030536651611328125, -0.051422119140625, 0.060760498046875, 0.01483917236328125, 0.003498077392578125, 0.01525115966796875, -0.017120361328125, -0.0156707763671875, -0.060272216796875, -0.01245880126953125, 0.0183868408203125, 0.038970947265625, -0.027557373046875, -0.0121002197265625, -0.0103759765625, 0.00278472900390625, -0.0142059326171875, 0.0067138671875, -0.0015840530395507812, -0.0126190185546875, 0.01629638671875, 0.04095458984375, -0.0194854736328125, -0.02093505859375, 0.03619384765625, -0.0214080810546875, -0.060516357421875, 0.07244873046875, 0.0194244384765625, 0.0225067138671875, -0.00836944580078125, -0.01255035400390625, 0.06256103515625, 0.0777587890625, 0.01275634765625, -0.021270751953125, 0.0017652511596679688, -0.039215087890625, 0.02984619140625, -0.01427459716796875, -0.00334930419921875, 0.021728515625, -0.01593017578125, 0.01335906982421875, -0.021636962890625, -0.01163482666015625, -0.0189056396484375, -0.027984619140625, 0.00922393798828125, 0.023162841796875, -0.032012939453125, 0.01114654541015625, 0.0298004150390625, -0.01404571533203125, -0.0217742919921875, 0.00399017333984375, 0.0190887451171875, 0.0111846923828125, -0.004810333251953125, 0.01459503173828125, -0.0280914306640625, 0.01165771484375, -0.026947021484375, -0.020355224609375, -0.0214996337890625, 0.022857666015625, 0.054595947265625, 0.02447509765625, -0.0229644775390625, -0.0025539398193359375, 0.01861572265625, 0.0215911865234375, -0.044097900390625, 0.0262451171875, 0.01151275634765625, -0.01177978515625, -0.0038814544677734375, 0.0303497314453125, 0.01064300537109375, -0.057373046875, 0.0015420913696289062, 0.04608154296875, 0.00879669189453125, -0.01532745361328125, -0.0100555419921875, 0.0416259765625, 0.0130615234375, 0.004486083984375, 0.024322509765625, 0.0064697265625, -0.01036834716796875, 0.0256500244140625, -0.0020542144775390625, 0.045745849609375, 0.00809478759765625, -0.0178985595703125, 0.0119476318359375, 0.02301025390625, 0.0087127685546875, 0.0038585662841796875, 0.0265655517578125, 0.007843017578125, -0.005886077880859375, 0.040069580078125, 0.012542724609375, 0.0059356689453125, 0.025604248046875, -0.00592803955078125, 0.041015625, 0.03656005859375, 0.0021266937255859375, -0.02801513671875, -0.01042938232421875, -0.0016880035400390625, 0.00612640380859375, -0.00330352783203125, 0.0460205078125, 0.0021419525146484375, -0.037994384765625, -0.004192352294921875, 0.032073974609375, 0.00754547119140625, -0.02862548828125, 0.00876617431640625, -0.06011962890625, -0.0229034423828125, -0.00045180320739746094, -0.027557373046875, -0.0131072998046875, -0.020294189453125, -0.003116607666015625, -0.0016841888427734375, -0.0013275146484375, 0.0362548828125, -0.00007641315460205078, 0.028045654296875, 0.0254058837890625, -0.00841522216796875, 0.0018768310546875, -0.07293701171875, 0.059112548828125, -0.0699462890625, 0.061737060546875, 0.08013916015625, -0.05029296875, 0.057769775390625, -0.0004851818084716797, 0.0030727386474609375, 0.008819580078125, -0.0005726814270019531, -0.01511383056640625, -0.011932373046875, -0.0543212890625, -0.0208892822265625, 0.026641845703125, -0.01194000244140625, 0.034332275390625, -0.0026912689208984375, 0.005115509033203125, 0.0192718505859375, -0.030670166015625, -0.032958984375, 0.040802001953125, -0.12548828125, 0.0482177734375, -0.0274505615234375, -0.060882568359375, -0.041473388671875, 0.044342041015625, 0.016815185546875, -0.0208740234375, 0.0182342529296875, -0.07183837890625, -0.0184326171875, -0.065185546875, 0.05047607421875, -0.00882720947265625, 0.0279541015625, 0.00745391845703125, 0.08831787109375, 0.02099609375, -0.047607421875, 0.03662109375, 0.00878143310546875, -0.0276947021484375, 0.0254364013671875, 0.0052337646484375, -0.0112457275390625, -0.01183319091796875, 0.0240478515625, -0.01242828369140625, 0.01258087158203125, -0.0082244873046875, -0.0290374755859375, 0.010650634765625, -0.017791748046875, 0.0274200439453125, 0.06610107421875, -0.0181427001953125, 0.009674072265625, 0.06268310546875, -0.02947998046875, -0.028717041015625, -0.01898193359375, -0.05224609375, -0.0246429443359375, 0.0391845703125, 0.01238250732421875, -0.0498046875, 0.0297088623046875, 0.034454345703125, 0.03436279296875, -0.0051116943359375, 0.00720977783203125, 0.032562255859375, -0.00728607177734375, 0.0192108154296875, -0.0245513916015625, 0.03369140625, -0.03076171875, -0.014495849609375, 0.0020847320556640625, -0.0218963623046875, -0.00696563720703125, -0.0247344970703125, 0.007015228271484375, -0.036956787109375, 0.033416748046875, -0.052825927734375, 0.027130126953125, -0.0501708984375, -0.01207733154296875, -0.0213470458984375, 0.07110595703125, -0.0665283203125, 0.002056121826171875, -0.0229034423828125, 0.01128387451171875, 0.0013275146484375, -0.06561279296875, -0.0293731689453125, -0.011199951171875, 0.00510406494140625, -0.006954193115234375, -0.0247955322265625, -0.0008344650268554688, -0.0174713134765625, -0.04803466796875, 0.013763427734375, -0.040008544921875, 0.02484130859375, -0.00876617431640625, 0.02001953125, 0.007572174072265625, 0.0036449432373046875, -0.0184326171875, -0.029693603515625, -0.021575927734375, -0.1270751953125, -0.0227508544921875, 0.018951416015625, 0.0758056640625, -0.01554107666015625, -0.026336669921875, -0.02197265625, 0.055999755859375, -0.0196990966796875, 0.016845703125, -0.002532958984375, 0.015777587890625, -0.0083465576171875, 0.02752685546875, -0.01055908203125, -0.00447845458984375, 0.016876220703125, 0.005352020263671875, -0.006000518798828125, -0.0033283233642578125, -0.05792236328125, -0.05419921875, -0.01470184326171875, -0.034454345703125, -0.04583740234375, -0.04217529296875, 0.021575927734375, 0.049224853515625, 0.033355712890625, -0.0086517333984375, -0.0635986328125, -0.05181884765625, -0.00525665283203125, 0.0199432373046875, -0.034820556640625, 0.02069091796875, -0.007904052734375, 0.01348114013671875, -0.0192413330078125, -0.047393798828125, 0.05908203125, 0.02081298828125, -0.00916290283203125, 0.053802490234375, 0.020904541015625, 0.0142974853515625, -0.01282501220703125, -0.0233306884765625, -0.06219482421875, -0.0013170242309570312, 0.0667724609375, -0.023468017578125, -0.060333251953125, 0.025238037109375, -0.08245849609375, 0.0562744140625, 0.036407470703125, 0.017242431640625, -0.0570068359375, 0.011383056640625, 0.06658935546875, -0.0426025390625, 0.06231689453125, -0.02459716796875, 0.01120758056640625, -0.007228851318359375, 0.0286102294921875, -0.0211639404296875, 0.0302276611328125, -0.001270294189453125, -0.0411376953125, -0.0275421142578125, -0.01271820068359375, 0.007343292236328125, 0.0333251953125, -0.0027866363525390625, 0.036468505859375, -0.00658416748046875, -0.0195770263671875, -0.0291748046875, -0.0087738037109375, -0.0088348388671875, -0.006168365478515625, -0.06829833984375, 0.0233306884765625, -0.01092529296875, 0.015869140625, 0.0226593017578125, 0.008941650390625, 0.01654052734375, 0.0077667236328125, -0.01580810546875, 0.0261077880859375, 0.0247039794921875, -0.036529541015625, -0.01641845703125, -0.007720947265625, 0.0201263427734375, -0.01560211181640625, 0.06793212890625, -0.006656646728515625, 0.023895263671875, 0.007396697998046875, -0.032958984375, 0.0231781005859375, 0.05572509765625, -0.00606536865234375, 0.0115814208984375, 0.035308837890625, -0.02923583984375, 0.0040130615234375, 0.0216217041015625, -0.0279693603515625, -0.01001739501953125, 0.02947998046875, 0.036285400390625, 0.0094146728515625, -0.0089111328125, 0.004486083984375, -0.01491546630859375, -0.02471923828125, 0.02691650390625, 0.023223876953125, -0.0200958251953125, -0.03564453125, -0.019317626953125, 0.01763916015625, 0.0162353515625, -0.0005898475646972656, -0.00009691715240478516, -0.0173492431640625, -0.017181396484375, 0.0653076171875, -0.060760498046875, 0.01192474365234375, 0.0204925537109375, 0.021270751953125, -0.038116455078125, -0.0010929107666015625, 0.0238800048828125, 0.046661376953125, -0.048553466796875, -0.01141357421875, 0.03240966796875, -0.01026153564453125, 0.028228759765625, -0.036651611328125, -0.007175445556640625, -0.052490234375, -0.0021953582763671875, 0.05853271484375, 0.033538818359375, -0.01470947265625, -0.00890350341796875, -0.05145263671875, -0.0283050537109375, -0.006397247314453125, -0.03448486328125, -0.02301025390625, 0.0007891654968261719, 0.0212554931640625, 0.0166778564453125, -0.01837158203125, -0.052490234375, 0.01062774658203125, 0.0255279541015625, 0.01508331298828125, 0.044708251953125, -0.006565093994140625, 0.0767822265625, 0.0018854141235351562, 0.07220458984375, 0.00919342041015625, 0.03057861328125, -0.0418701171875, 0.000015437602996826172, -0.0059814453125, -0.069091796875, -0.0020084381103515625, 0.0093994140625, 0.0207977294921875, 0.040069580078125, 0.005504608154296875, 0.0098419189453125, -0.0286102294921875, -0.030303955078125, -0.01232147216796875, -0.035400390625, 0.06805419921875, -0.024932861328125, -0.0242767333984375, -0.0374755859375, -0.023651123046875, 0.049468994140625, 0.011505126953125, -0.0343017578125, 0.0164031982421875, -0.016571044921875, 0.038421630859375, 0.035003662109375, -0.004222869873046875, -0.0019054412841796875, 0.029022216796875, 0.005542755126953125, 0.049041748046875, -0.01280975341796875, 0.0328369140625, 0.05316162109375, -0.01305389404296875, 0.002101898193359375, -0.0003376007080078125, 0.0396728515625, -0.00850677490234375, 0.010162353515625, 0.0458984375, -0.016998291015625, 0.00286865234375, 0.06134033203125, 0.0460205078125, -0.09283447265625, -0.0027446746826171875, 0.01702880859375, -0.003215789794921875, -0.004848480224609375, -0.0101165771484375, 0.004810333251953125, -0.01206207275390625, 0.0340576171875, 0.0089111328125, -0.0244598388671875, -0.00022840499877929688, -0.009185791015625, 0.0150604248046875, 0.004009246826171875, 0.050445556640625, 0.005550384521484375, -0.02569580078125, -0.039276123046875, 0.007801055908203125, -0.002857208251953125, -0.0419921875, -0.0223236083984375, -0.0032978057861328125, -0.03973388671875, -0.0740966796875, -0.0163116455078125, -0.00344085693359375, 0.0228271484375, 0.0537109375, 0.0218353271484375, 0.00292205810546875, 0.0159454345703125, -0.00211334228515625, 0.032135009765625, -0.037322998046875, 0.003173828125, -0.035736083984375, -0.050567626953125, -0.0030117034912109375, -0.0145721435546875, 0.006107330322265625, 0.026092529296875, 0.0021457672119140625, -0.08099365234375, -0.01065826416015625, 0.0017309188842773438, 0.061798095703125, -0.007480621337890625, -0.033935546875, 0.02947998046875, -0.0215911865234375, -0.018890380859375, 0.01342010498046875, 0.00542449951171875, -0.00988006591796875, -0.003276824951171875, -0.0011434555053710938, -0.0290985107421875, 0.0229034423828125, 0.0193939208984375, -0.024322509765625, 0.049652099609375, -0.027984619140625, 0.01534271240234375, 0.047821044921875, 0.0130615234375, -0.02264404296875, 0.010498046875, -0.006450653076171875, 0.040679931640625, 0.0227203369140625, 0.0008783340454101562, -0.016998291015625, -0.0098876953125, -0.01372528076171875, 0.04437255859375, 0.0675048828125, 0.0174407958984375, -0.041259765625, 0.0170135498046875, 0.06903076171875, 0.0224151611328125, 0.003330230712890625, 0.0418701171875, 0.0028133392333984375, 0.02197265625, 0.03680419921875, -0.0227813720703125, 0.04290771484375, -0.018463134765625, -0.00942230224609375, 0.0177764892578125, -0.0022182464599609375, -0.0011234283447265625, -0.023193359375, -0.0190277099609375, -0.031402587890625, -0.0025615692138671875, 0.01021575927734375, 0.019378662109375, 0.01074981689453125, 0.0158843994140625, 0.03607177734375, -0.0296478271484375, 0.0273284912109375, -0.041351318359375, 0.047607421875, -0.000782012939453125, 0.002170562744140625, 0.0285797119140625, 0.0082855224609375, -0.005947113037109375, -0.01172637939453125, 0.00838470458984375, -0.0022449493408203125, 0.004367828369140625, 0.0263671875, 0.02020263671875, 0.0272979736328125, -0.059722900390625, -0.0206451416015625, 0.07177734375, 0.05908203125, -0.0284576416015625, -0.0555419921875, 0.005218505859375, 0.0010929107666015625, -0.0015840530395507812, 0.01372528076171875, -0.0096435546875, 0.01885986328125, 0.0684814453125, -0.0380859375, -0.00662994384765625, 0.033966064453125, 0.0224456787109375, -0.00545501708984375, -0.0178985595703125, -0.0306396484375, 0.0018720626831054688, -0.0154266357421875, -0.05548095703125, 0.01617431640625, 0.0226898193359375, 0.04302978515625, -0.009429931640625, 0.05010986328125, -0.00612640380859375, -0.0303955078125, -0.007579803466796875, 0.011871337890625, 0.03314208984375, -0.032562255859375, 0.00494384765625, 0.053192138671875, 0.012054443359375, 0.03656005859375, 0.0048675537109375, 0.057373046875, 0.038818359375, -0.0285797119140625, -0.00861358642578125, 0.03271484375, -0.007659912109375, 0.032440185546875, -0.01026153564453125, -0.04473876953125, -0.039093017578125, -0.053985595703125, -0.024322509765625, -0.00966644287109375, 0.0010013580322265625, 0.01274871826171875, 0.00675201416015625, 0.0032806396484375, -0.0268707275390625, 0.041534423828125, -0.0220489501953125, 0.037139892578125, 0.0189361572265625, -0.1102294921875, -0.0292510986328125, 0.0034275054931640625, -0.07708740234375, 0.044525146484375, 0.05926513671875, -0.05438232421875, 0.006580352783203125, 0.0196380615234375, 0.0092620849609375, -0.0090179443359375, -0.042724609375, 0.05816650390625, 0.0283660888671875, -0.007099151611328125, 0.049346923828125, -0.0201568603515625, -0.01044464111328125, -0.0024280548095703125, 0.041229248046875, 0.00949859619140625, 0.061309814453125, -0.025665283203125, 0.0252685546875, -0.030059814453125, 0.044921875, -0.06756591796875, -0.0191650390625, -0.00785064697265625, -0.0145111083984375, 0.0188751220703125, 0.0121002197265625, -0.017364501953125, 0.0004189014434814453, 0.042144775390625, -0.044891357421875, -0.005283355712890625, -0.01324462890625, 0.0166015625, -0.028656005859375, 0.0298614501953125, -0.0210418701171875, 0.0029449462890625, -0.024505615234375, -0.024749755859375, 0.0372314453125, 0.005802154541015625, -0.0080108642578125, 0.0655517578125, -0.0158538818359375, -0.0423583984375, 0.00533294677734375, -0.07781982421875, -0.012237548828125, 0.0047760009765625, 0.05291748046875, 0.02264404296875, -0.00258636474609375, -0.02783203125, 0.01160430908203125, 0.0213775634765625, -0.002780914306640625, -0.003955841064453125, 0.016082763671875, -0.021514892578125, -0.06207275390625, 0.00717926025390625, 0.00699615478515625, -0.019256591796875, -0.043487548828125, 0.0091094970703125, -0.07708740234375, 0.057769775390625, -0.00925445556640625, -0.018890380859375, -0.00507354736328125, -0.006122589111328125, -0.0012454986572265625, -0.02435302734375, -0.038238525390625, -0.01384735107421875, 0.0237579345703125, -0.0139007568359375, -0.028778076171875, 0.0005364418029785156, -0.035797119140625, 0.0292205810546875, -0.0127716064453125, -0.0082550048828125, 0.0105133056640625, 0.041015625, -0.0306396484375, 0.0002608299255371094, -0.0222930908203125, 0.0033588409423828125, -0.027191162109375, 0.00685882568359375, 0.036224365234375, -0.00649261474609375, -0.019683837890625, -0.01113128662109375, -0.02838134765625, 0.0450439453125, -0.048614501953125, -0.00933837890625, 0.011260986328125, -0.00591278076171875, -0.01241302490234375, -0.0546875, 0.003063201904296875, -0.03973388671875, -0.02716064453125, -0.0007877349853515625, -0.023223876953125, -0.0223846435546875, -0.047698974609375, -0.0701904296875, 0.08514404296875, -0.015533447265625, -0.027130126953125, -0.0546875, 0.0015048980712890625, 0.01275634765625, 0.00902557373046875, -0.02288818359375, 0.0188446044921875, -0.04144287109375, 0.0222320556640625, -0.01088714599609375, 0.03485107421875, 0.00847625732421875, -0.02069091796875, -0.003269195556640625, 0.00025463104248046875, 0.01540374755859375, -0.019500732421875, -0.0391845703125, 0.0225982666015625, 0.0188140869140625, 0.01561737060546875, -0.0195465087890625, 0.07891845703125, 0.036163330078125, 0.049346923828125, -0.009918212890625, 0.0056304931640625, -0.05767822265625, -0.00730133056640625, 0.0498046875, 0.09283447265625, 0.024627685546875, -0.0389404296875, 0.0004634857177734375, -0.06365966796875, -0.0738525390625, 0.02044677734375, 0.040924072265625, -0.04644775390625, 0.03912353515625, 0.045562744140625, -0.0017709732055664062, -0.002964019775390625, -0.0185699462890625, -0.020751953125, -0.00617218017578125, 0.00470733642578125, 0.01007080078125, -0.00946807861328125, -0.01197052001953125, -0.01788330078125, 0.0004930496215820312, -0.01141357421875, -0.00421142578125, 0.01055145263671875, -0.03314208984375, 0.0135955810546875, -0.0211334228515625, 0.0096893310546875, -0.029205322265625, 0.00870513916015625, -0.0021610260009765625, 0.02239990234375, -0.0206146240234375, 0.018646240234375, 0.01335906982421875, 0.0228271484375, 0.01526641845703125, 0.00902557373046875, -0.038482666015625, 0.049102783203125, 0.0030689239501953125, 0.0225067138671875, -0.00884246826171875, -0.0008759498596191406, -0.0101470947265625, 0.0186767578125, -0.0179443359375, 0.0021820068359375, 0.00339508056640625, -0.00112152099609375, -0.0097198486328125, -0.01392364501953125, -0.043060302734375, -0.028045654296875, 0.0166015625, -0.040008544921875, -0.0174713134765625, 0.01534271240234375 ]
691ac981f25ff7273ef79a87360c8011be64a80a
Wordpress Stackexchange Q: Get URL of a specific file I have a file that can either be included in a plugin, or in a theme. What's the best way to get the URL of the file's folder (from within the file)? Edit: I'm now using this for now home_url( '/' . str_replace( ABSPATH, "", dirname( __FILE__ ) ) ); Let me know if there's any problem with this / there's a better way. A: See Determining Plugin and Content Directories. plugins_url( 'filename', __FILE__ ); … returns the full URI to the file in your plugin. For themes you use: get_stylesheet_directory_uri() . '/path/to/file';
Q: Get URL of a specific file I have a file that can either be included in a plugin, or in a theme. What's the best way to get the URL of the file's folder (from within the file)? Edit: I'm now using this for now home_url( '/' . str_replace( ABSPATH, "", dirname( __FILE__ ) ) ); Let me know if there's any problem with this / there's a better way. A: See Determining Plugin and Content Directories. plugins_url( 'filename', __FILE__ ); … returns the full URI to the file in your plugin. For themes you use: get_stylesheet_directory_uri() . '/path/to/file'; A: Using ABSPATH and home_url() might not work if the wp installation is in a different directory to the url it is displayed at. You should test that out. My thought is using the content directory as a place to do the replacement might be more robust as you can pass the resulting path into content_url() which accounts for where the WP installation is: function get_file_url( $file = __FILE__ ) { $file_path = str_replace( "\\", "/", str_replace( str_replace( "/", "\\", WP_CONTENT_DIR ), "", $file ) ); if ( $file_path ) return content_url( $file_path ); return false; } This could be simplified for unix only but the above supports windows too. A: Why won't you write both case and check which one is actually pointing to a real file: function dogbert_library_get_file_path($filename) { // As you might put your file in a folder, just configure this path $path_to_file = "files/" .$filename; // get_theme_root() doesn't give trailing slash $themeFile = get_theme_root() ."/" .get_current_theme() ."/" .$path_to_file; // plugin_dir_path does give trailing slash $pluginFile = plugin_dir_path( __FILE__ ) .$path_to_file ; // As we are at filesystem layer, we can use file_exists to check if(file_exists($themeFile)){ return $themeFile; } else if(file_exists($pluginFile)) { return $pluginFile; } else { // Return empty as a fallback... return ""; } } That's the best option I would see. A: I suggest you use a filter. In your file, somewhere at the very beginning, include something along the lines of: add_filter( 'wpa45165_resource_url', 'wpa45165_resource_url_finder' ); function wpa45165_resource_url_finder( $url ) { $url = /* Some code to generate the url from WP_SITEURL and dirname() */; return $url; } Then, in the code that needs to reference the file, apply the filter to an empty string: $include_url = apply_filters( 'wpa45165_resource_url', '' ); A: TL;DR $themes_search_index = strpos(__FILE__,'wp-content/themes'); $plugins_search_index = strpos(__FILE__,'wp-content/plugins'); $url_postfix_prospect = dirname(__FILE__); if( $themes_search_index !== false ){ $url_postfix_index = strpos($url_postfix_prospect,'wp-content/themes'); } elseif( $plugins_search_index !== false ) { $url_postfix_index = strpos($url_postfix_prospect,'wp-content/plugins'); } $url_prefix = get_site_url(); $url_postfix = substr($url_postfix_prospect, $url_postfix_index); $lib_path_url = $url_prefix .'/'. $url_postfix; echo $lib_path_url; Given the file path... /var/www/html/example.com/wp-content/plugins/my-plugin/lib/an-awesome-library/autoload.php Results to... http://example.com/wp-content/plugins/my-plugin/lib/an-awesome-library Problem Building a plug-and-play library for wordpress that can either be "included" inside a theme or plugin can be difficult. Wordpress has no pre-defined function for getting the URL of that file. Solution Treat plugins and themes separately. Step 1. Check whether included inside theme or plugin /** * Contains numeric values if the respective strings are found, * Contains boolean `false` if the string is not found */ $themes_search_index = strpos(__FILE__,'wp-content/themes'); $plugins_search_index = strpos(__FILE__,'wp-content/plugins'); Step 2a. If inside a theme $url_postfix_prospect = dirname(__FILE__); $url_postfix_index = strpos($url_postfix_prospect,'wp-content/themes'); $url_prefix = get_site_url(); $url_postfix = substr($url_postfix_prospect, $url_postfix_index); $lib_path_url = $url_prefix .'/'. $url_postfix; echo $lib_path_url; Step 2b. If inside a plugin $url_postfix_prospect = dirname(__FILE__); $url_postfix_index = strpos($url_postfix_prospect,'wp-content/plugins'); $url_prefix = get_site_url(); $url_postfix = substr($url_postfix_prospect, $url_postfix_index); $lib_path_url = $url_prefix .'/'. $url_postfix; echo $lib_path_url; A: $path = dirname(__FILE__); should do the trick.
wordpress
{ "language": "en", "length": 574, "provenance": "stackexchange_00019.jsonl.gz:417941", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45165" }
[ 0.0167236328125, -0.0390625, -0.0069580078125, -0.0244140625, -0.024383544921875, -0.01407623291015625, 0.0084991455078125, 0.005992889404296875, -0.00738525390625, 0.0212554931640625, -0.016021728515625, 0.01436614990234375, -0.0243682861328125, -0.025054931640625, -0.003513336181640625, -0.0290374755859375, 0.03204345703125, -0.027252197265625, 0.0196380615234375, -0.0013360977172851562, 0.02691650390625, 0.00797271728515625, 0.042938232421875, 0.013275146484375, 0.02105712890625, 0.0185546875, 0.06475830078125, -0.02862548828125, 0.0027446746826171875, -0.030181884765625, 0.0187530517578125, -0.0098114013671875, 0.0117034912109375, -0.002819061279296875, 0.032135009765625, -0.021209716796875, 0.0006823539733886719, 0.011810302734375, 0.02545166015625, -0.006031036376953125, 0.03497314453125, -0.01250457763671875, -0.035736083984375, 0.04901123046875, -0.0258026123046875, -0.053802490234375, 0.0537109375, -0.0084686279296875, -0.0246429443359375, 0.0604248046875, 0.0318603515625, 0.0166778564453125, 0.027740478515625, -0.016998291015625, -0.0034313201904296875, -0.018463134765625, 0.016815185546875, 0.01593017578125, 0.0196533203125, -0.09820556640625, -0.057037353515625, 0.013702392578125, 0.05908203125, 0.0689697265625, -0.01096343994140625, -0.00958251953125, -0.031890869140625, 0.0242767333984375, -0.0255126953125, -0.0399169921875, 0.00702667236328125, -0.0247955322265625, 0.00414276123046875, -0.0270233154296875, -0.02520751953125, 0.01201629638671875, -0.02484130859375, -0.0213165283203125, 0.041229248046875, -0.0232086181640625, -0.0357666015625, -0.02130126953125, -0.069580078125, -0.01207733154296875, 0.007396697998046875, 0.00421142578125, -0.01166534423828125, -0.0045928955078125, -0.0347900390625, 0.004642486572265625, -0.050750732421875, 0.0249786376953125, 0.01525115966796875, -0.024658203125, -0.060699462890625, 0.0232086181640625, 0.005916595458984375, 0.01108551025390625, -0.00868988037109375, 0.0218505859375, -0.00762176513671875, -0.026702880859375, 0.002086639404296875, -0.01593017578125, 0.018310546875, 0.05291748046875, 0.01543426513671875, 0.00296783447265625, 0.0254669189453125, 0.00641632080078125, 0.00045180320739746094, 0.028045654296875, -0.01343536376953125, -0.04437255859375, 0.00592041015625, 0.0419921875, -0.022735595703125, 0.005382537841796875, 0.025360107421875, 0.00669097900390625, 0.0135955810546875, 0.022705078125, -0.0167388916015625, -0.01294708251953125, -0.0321044921875, -0.04034423828125, -0.0374755859375, 0.0004341602325439453, 0.0080718994140625, 0.0157623291015625, -0.0180511474609375, 0.0006222724914550781, 0.0159912109375, -0.0160980224609375, -0.0186767578125, -0.01226043701171875, -0.01548004150390625, 0.0153656005859375, -0.00656890869140625, -0.0014333724975585938, -0.00823211669921875, -0.00687408447265625, 0.03607177734375, -0.031982421875, -0.03155517578125, 0.00847625732421875, -0.013946533203125, 0.0213623046875, -0.0011320114135742188, -0.0400390625, -0.0087890625, -0.026123046875, 0.040924072265625, 0.006565093994140625, -0.014007568359375, -0.03814697265625, 0.0224151611328125, -0.04559326171875, 0.014801025390625, -0.040924072265625, 0.0258026123046875, 0.005496978759765625, -0.00501251220703125, -0.017486572265625, -0.0237579345703125, -0.043060302734375, -0.03350830078125, -0.0078887939453125, 0.012054443359375, 0.04376220703125, 0.01177215576171875, -0.0193634033203125, -0.027923583984375, 0.00472259521484375, 0.006237030029296875, 0.0074920654296875, -0.01090240478515625, 0.0162353515625, 0.0023632049560546875, 0.0809326171875, 0.026092529296875, -0.01349639892578125, 0.01529693603515625, -0.006015777587890625, -0.02191162109375, 0.017364501953125, -0.001293182373046875, 0.0189208984375, 0.002681732177734375, 0.00423431396484375, 0.0205841064453125, 0.031524658203125, -0.0213470458984375, 0.005725860595703125, -0.031982421875, 0.00882720947265625, 0.00931549072265625, 0.0245513916015625, -0.0218658447265625, -0.00659942626953125, -0.0031948089599609375, -0.0222625732421875, 0.01494598388671875, 0.01039886474609375, -0.00934600830078125, -0.007328033447265625, -0.00981903076171875, 0.017822265625, -0.0122528076171875, 0.0178985595703125, 0.01078033447265625, 0.016143798828125, -0.00255584716796875, -0.06787109375, -0.021514892578125, 0.0283050537109375, -0.00519561767578125, -0.00548553466796875, -0.006275177001953125, 0.0186004638671875, -0.0158843994140625, 0.0207977294921875, -0.02960205078125, -0.005401611328125, 0.00814056396484375, 0.00823974609375, -0.0265350341796875, 0.00362396240234375, 0.0004334449768066406, 0.033416748046875, -0.033966064453125, 0.00966644287109375, 0.01308441162109375, 0.046173095703125, -0.001728057861328125, -0.0158843994140625, 0.00841522216796875, -0.0855712890625, 0.033599853515625, 0.0499267578125, 0.041259765625, 0.01280975341796875, 0.005451202392578125, -0.0113372802734375, 0.044891357421875, -0.048675537109375, 0.001125335693359375, -0.022216796875, 0.03704833984375, 0.05706787109375, -0.013214111328125, 0.00107574462890625, 0.0019969940185546875, -0.0257415771484375, 0.0015697479248046875, 0.023193359375, -0.016693115234375, -0.0013179779052734375, -0.042449951171875, 0.043609619140625, 0.00872039794921875, 0.0452880859375, 0.00489044189453125, 0.0127716064453125, -0.037445068359375, 0.050567626953125, 0.0126953125, 0.03460693359375, -0.0104827880859375, 0.0188751220703125, 0.0006842613220214844, 0.02294921875, -0.01483154296875, 0.056610107421875, 0.04632568359375, -0.0543212890625, -0.0006003379821777344, -0.0221405029296875, -0.021453857421875, 0.0203704833984375, -0.0247039794921875, -0.031494140625, -0.004924774169921875, -0.00457000732421875, -0.0008015632629394531, -0.0535888671875, 0.045135498046875, 0.026214599609375, 0.0177001953125, 0.055023193359375, 0.06707763671875, 0.002338409423828125, -0.0142059326171875, 0.021331787109375, -0.0266876220703125, 0.006313323974609375, 0.062469482421875, 0.00640869140625, 0.00677490234375, 0.01316070556640625, 0.05377197265625, 0.040130615234375, -0.0001399517059326172, -0.00408935546875, 0.01239013671875, -0.0214080810546875, 0.0174560546875, -0.0020656585693359375, -0.010711669921875, 0.04296875, -0.0953369140625, 0.004810333251953125, 0.01380157470703125, 0.006298065185546875, -0.0075225830078125, -0.043975830078125, -0.017364501953125, -0.0055389404296875, -0.1412353515625, -0.099365234375, -0.01192474365234375, -0.07769775390625, 0.00299072265625, 0.0181732177734375, -0.0296478271484375, -6.556510925292969e-7, 0.053619384765625, 0.00775909423828125, 0.0177459716796875, -0.028411865234375, -0.0556640625, -0.04461669921875, -0.06549072265625, 0.010009765625, -0.005950927734375, -0.0093994140625, -0.0021762847900390625, 0.0313720703125, -0.00534820556640625, -0.0301513671875, -0.01546478271484375, 0.04473876953125, 0.004852294921875, -0.02166748046875, 0.021484375, -0.01519775390625, -0.03814697265625, 0.0027294158935546875, 0.03692626953125, 0.036163330078125, -0.05059814453125, 0.008392333984375, -0.0167083740234375, -0.0173797607421875, 0.0018949508666992188, 0.0286102294921875, -0.0006570816040039062, -0.0036411285400390625, 0.0260467529296875, -0.04833984375, -0.00518035888671875, 0.0009222030639648438, -0.025177001953125, 0.066162109375, 0.01194000244140625, -0.01145172119140625, 0.02142333984375, 0.0279388427734375, -0.01007080078125, -0.0087432861328125, 0.037689208984375, -0.0382080078125, 0.04229736328125, -0.006809234619140625, -0.0068206787109375, -0.0264892578125, 0.09002685546875, 0.0257720947265625, -0.01470184326171875, 0.033966064453125, 0.0287933349609375, 0.00849151611328125, -0.00498199462890625, -0.0401611328125, -0.001316070556640625, 0.0352783203125, -0.0035343170166015625, 0.056121826171875, -0.0511474609375, -0.031646728515625, -0.04693603515625, 0.06146240234375, 0.0011444091796875, -0.02410888671875, 0.0227508544921875, 0.032867431640625, -0.0667724609375, -0.060699462890625, -0.068115234375, -0.006092071533203125, -0.09521484375, -0.0216827392578125, -0.027679443359375, -0.048431396484375, -0.0018434524536132812, -0.025634765625, -0.06201171875, -0.05010986328125, 0.0278778076171875, -0.0200958251953125, 0.0212860107421875, 0.0181884765625, 0.017913818359375, 0.01322174072265625, -0.01364898681640625, -0.0229949951171875, -0.037109375, -0.019073486328125, -0.0284423828125, 0.047515869140625, 0.0292205810546875, -0.022369384765625, 0.002857208251953125, 0.0416259765625, -0.001270294189453125, 0.038604736328125, 0.01042938232421875, -0.007564544677734375, 0.022674560546875, 0.0190887451171875, 0.031280517578125, -0.0161895751953125, 0.024261474609375, -0.0171966552734375, -0.07330322265625, -0.00034236907958984375, -0.0171661376953125, 0.033477783203125, 0.011566162109375, -0.03448486328125, 0.006732940673828125, 0.0010814666748046875, -0.00664520263671875, -0.00374603271484375, 0.007419586181640625, -0.0274810791015625, 0.004154205322265625, 0.00411224365234375, 0.032073974609375, 0.01983642578125, -0.0230255126953125, -0.007904052734375, 0.057373046875, 0.01554107666015625, -0.031494140625, -0.027496337890625, 0.041046142578125, 0.050079345703125, 0.02935791015625, 0.03118896484375, 0.0244293212890625, -0.041046142578125, 0.054046630859375, 0.031646728515625, 0.01218414306640625, 0.01297760009765625, 0.0457763671875, -0.00995635986328125, -0.029144287109375, 0.032196044921875, -0.00574493408203125, -0.0303955078125, 0.057373046875, -0.01800537109375, 0.0043487548828125, -0.0178375244140625, 0.0150909423828125, -0.0282135009765625, 0.00940704345703125, -0.0243682861328125, -0.054718017578125, 0.0150604248046875, 0.00847625732421875, 0.034576416015625, 0.033782958984375, -0.01233673095703125, 0.06829833984375, 0.044464111328125, -0.01383209228515625, 0.02825927734375, 0.0867919921875, -0.006900787353515625, 0.037628173828125, 0.0137939453125, -0.03216552734375, -0.031280517578125, 0.0023345947265625, 0.029022216796875, -0.0023899078369140625, -0.002655029296875, -0.045654296875, -0.0166473388671875, -0.0276336669921875, 0.0012569427490234375, -0.016021728515625, 0.023895263671875, 0.020904541015625, -0.036376953125, -0.0238037109375, -0.013214111328125, -0.01387786865234375, -0.040313720703125, 0.0215606689453125, -0.001903533935546875, -0.006793975830078125, 0.00873565673828125, 0.039459228515625, -0.01617431640625, 0.028564453125, -0.005298614501953125, -0.01081085205078125, -0.0196075439453125, 0.0013170242309570312, 0.0008358955383300781, 0.01190185546875, 0.020233154296875, -0.02789306640625, 0.046783447265625, -0.0207977294921875, 0.021209716796875, 0.00449371337890625, 0.0435791015625, -0.04339599609375, -0.062744140625, 0.04290771484375, -0.043975830078125, -0.00611114501953125, 0.01149749755859375, 0.0031223297119140625, -0.0084075927734375, -0.01519012451171875, -0.00872039794921875, 0.01910400390625, 0.001674652099609375, -0.04217529296875, 0.021820068359375, -0.019866943359375, 0.002048492431640625, 0.0123291015625, -0.0831298828125, 0.043212890625, 0.05474853515625, -0.0140380859375, -0.01503753662109375, 0.0030040740966796875, -0.048248291015625, -0.0166168212890625, -0.032318115234375, -0.02520751953125, 0.050689697265625, -0.029327392578125, 0.029510498046875, -0.0016775131225585938, -0.0286407470703125, 0.01317596435546875, 0.0213165283203125, 0.042755126953125, 0.0301361083984375, -0.084716796875, 0.0190582275390625, -0.05633544921875, 0.0221405029296875, -0.00527191162109375, -0.042999267578125, -0.023712158203125, -0.038970947265625, -0.0133819580078125, 0.007640838623046875, 0.0050811767578125, 0.0309600830078125, 0.0270843505859375, 0.026397705078125, -0.03411865234375, 0.020477294921875, -0.0102996826171875, 0.0219268798828125, 0.0095672607421875, 0.04180908203125, -0.005016326904296875, -0.00270843505859375, -0.004398345947265625, -0.0250396728515625, -0.00492095947265625, -0.0030078887939453125, -0.0027675628662109375, -0.025604248046875, 0.06640625, 0.005401611328125, 0.032623291015625, 0.01239776611328125, -0.0276031494140625, -0.00040841102600097656, -0.00846099853515625, -0.028717041015625, 0.044769287109375, 0.020111083984375, -0.00991058349609375, -0.035003662109375, 0.003299713134765625, 0.01788330078125, -0.0175323486328125, -0.0298004150390625, 0.01226806640625, 0.0118560791015625, 0.01230621337890625, 0.0097503662109375, -0.0298004150390625, 0.06842041015625, 0.0943603515625, 0.0092010498046875, 0.055206298828125, 0.03582763671875, 0.0186309814453125, 0.00798797607421875, 0.033050537109375, 0.009552001953125, -0.01922607421875, 0.05926513671875, 0.0214691162109375, -0.011016845703125, 0.03509521484375, -0.0239105224609375, 0.019989013671875, 0.01218414306640625, 0.029022216796875, -0.047332763671875, 0.028564453125, -0.01253509521484375, -0.003055572509765625, 0.071533203125, 0.0313720703125, -0.01324462890625, -0.0038204193115234375, 0.0250244140625, -0.041717529296875, 0.0097198486328125, 0.0167236328125, 0.004955291748046875, 0.005062103271484375, 0.00347137451171875, 0.0172119140625, -0.009735107421875, -0.048187255859375, -0.058929443359375, 0.058685302734375, -0.050872802734375, -0.0233612060546875, 0.01092529296875, 0.004787445068359375, 0.00820159912109375, -0.0139312744140625, 0.03857421875, -0.01276397705078125, 0.006175994873046875, -0.0186004638671875, 0.00414276123046875, 0.0487060546875, 0.04437255859375, -0.0015048980712890625, -0.02899169921875, 0.036285400390625, 0.0186767578125, 0.055816650390625, 0.0304412841796875, 0.00927734375, 0.03466796875, -0.0279541015625, -0.01342010498046875, -0.0293121337890625, 0.0489501953125, -0.017333984375, 0.009490966796875, 0.12841796875, -0.039398193359375, -0.02850341796875, 0.01348114013671875, 0.0022983551025390625, -0.00907135009765625, -0.01136016845703125, 0.0404052734375, -0.05657958984375, 0.02276611328125, 0.0190582275390625, 0.033447265625, -0.0100555419921875, -0.01068115234375, -0.0110931396484375, 0.042083740234375, -0.05499267578125, 0.03485107421875, 0.0212860107421875, 0.0101318359375, 0.0252227783203125, 0.021759033203125, -0.042205810546875, 0.06103515625, -0.01059722900390625, 0.00537872314453125, -0.046661376953125, 0.009674072265625, -0.023956298828125, 0.00035691261291503906, 0.05511474609375, 0.0182952880859375, -0.0523681640625, -0.00667572021484375, 0.041748046875, 0.042449951171875, 0.01275634765625, 0.04132080078125, 0.035797119140625, 0.0134124755859375, 0.05596923828125, -0.01360321044921875, 0.048309326171875, -0.038543701171875, 0.0318603515625, 0.03741455078125, 0.0006327629089355469, -0.0278472900390625, -0.00890350341796875, -0.01336669921875, -0.07611083984375, 0.00759124755859375, 0.03704833984375, -0.022308349609375, 0.00917816162109375, 0.0261383056640625, 0.031280517578125, 0.002330780029296875, -0.0017900466918945312, -0.003871917724609375, 0.058929443359375, 0.005401611328125, 0.00616455078125, -0.004871368408203125, 0.00513458251953125, 0.0279388427734375, -0.029541015625, -0.0227813720703125, 0.02813720703125, -0.000057637691497802734, 0.057281494140625, 0.037139892578125, 0.030242919921875, -0.0045013427734375, 0.019500732421875, -0.0028591156005859375, 0.043609619140625, -0.048309326171875, -0.0416259765625, 0.0028057098388671875, -0.01136016845703125, 0.0147705078125, 0.00010335445404052734, 0.012725830078125, -0.00518035888671875, 0.0196533203125, -0.0171966552734375, -0.0077056884765625, 0.0364990234375, 0.0286407470703125, -0.0038509368896484375, -0.07086181640625, -0.0274658203125, 0.0004260540008544922, -0.019805908203125, 0.035491943359375, 0.003650665283203125, -0.02911376953125, -0.0167083740234375, 0.040679931640625, 0.013702392578125, 0.0196075439453125, 0.0011806488037109375, 0.03448486328125, -0.01409149169921875, -0.0079803466796875, -0.030059814453125, -0.056854248046875, 0.031158447265625, 0.032440185546875, 0.037689208984375, 0.03814697265625, 0.03179931640625, 0.0013666152954101562, 0.010528564453125, 0.01055145263671875, -0.0037937164306640625, -0.0181121826171875, 0.06512451171875, -0.061614990234375, 0.07012939453125, -0.00844573974609375, -0.0010251998901367188, -0.037689208984375, -0.009918212890625, 0.05450439453125, -0.0302581787109375, 0.03570556640625, -0.00861358642578125, -0.0021572113037109375, 0.006206512451171875, -0.0469970703125, 0.014373779296875, -0.04010009765625, -0.014373779296875, 0.01230621337890625, 0.004505157470703125, -0.01006317138671875, -0.007259368896484375, 0.031768798828125, -0.012237548828125, 0.0416259765625, -0.006561279296875, 0.017547607421875, 0.010406494140625, -0.033660888671875, -0.001956939697265625, 0.0020503997802734375, 0.0193328857421875, 0.01519775390625, -0.0279388427734375, -0.034423828125, -0.039642333984375, 0.054656982421875, 0.04833984375, 0.0811767578125, -0.032501220703125, 0.05157470703125, 0.03045654296875, 0.003459930419921875, -0.0241241455078125, 0.01837158203125, 0.001422882080078125, -0.0272979736328125, 0.0023250579833984375, -0.001628875732421875, -0.037384033203125, 0.0035839080810546875, 0.035369873046875, -0.024261474609375, 0.0157623291015625, -0.00687408447265625, 0.01111602783203125, -0.007843017578125, 0.007320404052734375, -0.0234222412109375, -0.04034423828125, -0.03729248046875, -0.0022602081298828125, 0.028594970703125, 0.03143310546875, 0.00647735595703125, 0.00909423828125, 0.01788330078125, -0.0020313262939453125, 0.023834228515625, 0.008331298828125, 0.051025390625, 0.03216552734375, -0.054534912109375, -0.052520751953125, -0.0077362060546875, -0.016998291015625, 0.0237274169921875, -0.0236358642578125, 0.1075439453125, -0.0188751220703125, 0.0166473388671875, -0.0028514862060546875, -0.0055999755859375, 0.04827880859375, -0.004909515380859375, 0.0229644775390625, -0.0092010498046875, 0.0404052734375, -0.0027675628662109375, -0.0726318359375, -0.00972747802734375, -0.051116943359375, -0.005397796630859375, 0.00858306884765625, -0.01436614990234375, -0.03021240234375, 0.0291900634765625, 0.0053253173828125, 0.0005235671997070312, -0.01061248779296875, -0.040313720703125, 0.002696990966796875, -0.0199737548828125, 0.041229248046875, -0.05126953125, 0.0302276611328125, -0.01071929931640625, 0.0271759033203125, -0.02618408203125, -0.0123748779296875, -0.034576416015625, 0.0285186767578125, -0.0211029052734375, 0.050262451171875, 0.0595703125, -0.038116455078125, 0.0014333724975585938, 0.07342529296875, 0.03997802734375, 0.1192626953125, -0.0771484375, -0.0323486328125, -0.0294342041015625, -0.004947662353515625, -0.01100921630859375, -0.010833740234375, 0.0217132568359375, -0.0214385986328125, -0.033233642578125, 0.00572967529296875, -0.0002925395965576172, 0.0113067626953125, -0.032989501953125, -0.0672607421875, 0.043487548828125, -0.005828857421875, -0.04498291015625, -0.0223846435546875, 0.0103912353515625, -0.0030002593994140625, -0.006072998046875, -0.01094818115234375, -0.021331787109375, -0.02264404296875, 0.001834869384765625, 0.034576416015625, 0.0458984375, 0.016021728515625, 0.045257568359375, -0.0160064697265625, 0.040252685546875, 0.00836181640625, 0.031341552734375, -0.0310516357421875, 0.007595062255859375, 0.012908935546875, 0.04010009765625, 0.00223541259765625, 0.0207672119140625, 0.046539306640625, -0.0167694091796875, -0.0169677734375, -0.0200958251953125, 0.00498199462890625, 0.01593017578125, 0.047454833984375, 0.02471923828125, 0.004924774169921875, -0.0390625, -0.039642333984375, -0.040679931640625, -0.009765625, -0.00788116455078125, 0.01233673095703125, -0.05267333984375, 0.037384033203125, 0.0037860870361328125, -0.019317626953125, -0.0271759033203125, 0.0017566680908203125, -0.059234619140625, -0.0009584426879882812, -0.033782958984375, -0.005207061767578125, -0.01800537109375, -0.002758026123046875, 0.08673095703125, -0.034271240234375, 0.045440673828125, -0.0003979206085205078, 0.019805908203125, 0.07537841796875, -0.0159912109375, 0.04193115234375, 0.04803466796875, -0.037811279296875, 0.007747650146484375, 0.035797119140625, 0.0309600830078125, -0.022735595703125, -0.0309906005859375, 0.01434326171875, 0.0227508544921875, -0.02508544921875, 0.0088043212890625, 0.03900146484375, 0.028564453125, -0.009979248046875, 0.085205078125, -0.0079803466796875, 0.042266845703125, -0.00504302978515625, 0.041259765625, -0.01041412353515625, -0.016387939453125, 0.0244903564453125, -0.046783447265625, -0.01128387451171875, 0.03302001953125, -0.042999267578125, -0.032958984375, 0.008636474609375, -0.06353759765625, 0.0077362060546875, -0.01239776611328125 ]
41f2bdf8ac7b4d65884c64f511aa6ff3c7082f5f
Wordpress Stackexchange Q: wp_enqueue script my_javascript_file in the footer I am trying to place my_javascript_file in the footer. According to the documentation $in_footer is the fifth value and it is a boolean so I have it set to true. Currently it doesn't show up anywhere, as far as I can tell from inspecting the code. Got it to work, it was hidden in a div I forgot to close (oops) UPDATE added fourth parameter as empty string ' ' FUNCTIONS.PHP FILE <?php function load_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('my_javascript_file', get_template_directory_uri() . '/javascripts/app.js', array('jquery'),' ',true); } add_action('init', 'load_scripts'); /*add_action('wp_footer', 'load_scripts');/*DELETED THIS PART ?> FOOTER.PHP added wp_footer </div> <!-- Main Row Ends --> <?php wp_footer(); ?> /*added*/ </body> </html> A: You have true set in the 4th parameter (version), not the 5th. wp_enqueue_script( 'my_javascript_file', //slug get_template_directory_uri() . '/javascripts/app.js', //path array('jquery'), //dependencies false, //version true //footer ); Also, as someone else mentioned, drop jquery enqueue, you've got it as a dependency, you don't need to enqueue it as well. One last thing, your function name has a good chance of breaking your site somewhere down the line. load_scripts has a pretty large chance of conflicting with something from the core or from the theme/plugin.
Q: wp_enqueue script my_javascript_file in the footer I am trying to place my_javascript_file in the footer. According to the documentation $in_footer is the fifth value and it is a boolean so I have it set to true. Currently it doesn't show up anywhere, as far as I can tell from inspecting the code. Got it to work, it was hidden in a div I forgot to close (oops) UPDATE added fourth parameter as empty string ' ' FUNCTIONS.PHP FILE <?php function load_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('my_javascript_file', get_template_directory_uri() . '/javascripts/app.js', array('jquery'),' ',true); } add_action('init', 'load_scripts'); /*add_action('wp_footer', 'load_scripts');/*DELETED THIS PART ?> FOOTER.PHP added wp_footer </div> <!-- Main Row Ends --> <?php wp_footer(); ?> /*added*/ </body> </html> A: You have true set in the 4th parameter (version), not the 5th. wp_enqueue_script( 'my_javascript_file', //slug get_template_directory_uri() . '/javascripts/app.js', //path array('jquery'), //dependencies false, //version true //footer ); Also, as someone else mentioned, drop jquery enqueue, you've got it as a dependency, you don't need to enqueue it as well. One last thing, your function name has a good chance of breaking your site somewhere down the line. load_scripts has a pretty large chance of conflicting with something from the core or from the theme/plugin.
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:417958", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45217" }
[ 0.033843994140625, 0.0016450881958007812, -0.0794677734375, -0.062103271484375, 0.02593994140625, -0.043609619140625, 0.016998291015625, 0.041168212890625, -0.03399658203125, 0.00487518310546875, -0.03363037109375, 0.022918701171875, -0.032135009765625, -0.01342010498046875, 0.01276397705078125, -0.06689453125, 0.071533203125, -0.062744140625, -0.0038909912109375, -0.01479339599609375, 0.0167083740234375, 0.01384735107421875, 0.01611328125, 0.1317138671875, 0.01329803466796875, -0.03515625, 0.0968017578125, 0.01029205322265625, -0.004436492919921875, -0.0236053466796875, 0.0130615234375, 0.00798797607421875, 0.028076171875, -0.00592803955078125, 0.0022106170654296875, -0.016387939453125, -0.00787353515625, 0.0000947713851928711, 0.00798797607421875, 0.01039886474609375, 0.02447509765625, -0.008819580078125, -0.00670623779296875, 0.0189361572265625, -0.0189971923828125, -0.04510498046875, 0.036865234375, -0.0094146728515625, -0.004375457763671875, -0.01265716552734375, -0.0032291412353515625, 0.003414154052734375, 0.0069427490234375, 0.0003571510314941406, 0.001216888427734375, 0.0136566162109375, -0.0308685302734375, 0.0173492431640625, 0.00751495361328125, 0.073486328125, 0.02117919921875, 0.039825439453125, -0.0238494873046875, -0.03948974609375, -0.02801513671875, -0.0196075439453125, -0.0516357421875, -0.0237884521484375, -0.032623291015625, 0.0040130615234375, 0.06427001953125, -0.017669677734375, 0.00009924173355102539, -0.033935546875, -0.02197265625, 0.0077667236328125, 0.005115509033203125, -0.00467681884765625, 0.00417327880859375, -0.01056671142578125, 0.0182647705078125, -0.03717041015625, -0.05340576171875, 0.0276031494140625, -0.00678253173828125, 0.058624267578125, -0.005764007568359375, -0.0299224853515625, -0.043792724609375, -0.01554107666015625, -0.03607177734375, -0.00421142578125, -0.019134521484375, -0.022979736328125, -0.0246429443359375, 0.0037631988525390625, 0.032562255859375, 0.047149658203125, 0.021240234375, 0.0125274658203125, 0.007488250732421875, -0.03924560546875, 0.004375457763671875, -0.019927978515625, -0.0091094970703125, 0.0701904296875, -0.004344940185546875, -0.0026302337646484375, 0.0017023086547851562, 0.01186370849609375, 0.0196990966796875, -0.0704345703125, 0.04180908203125, 0.0261993408203125, -0.04852294921875, -0.0380859375, -0.00708770751953125, 0.0003097057342529297, -0.0008511543273925781, 0.025726318359375, 0.016143798828125, 0.055145263671875, -0.037139892578125, -0.01198577880859375, -0.00983428955078125, -0.0192108154296875, 0.01215362548828125, -0.034210205078125, -0.00360870361328125, 0.04681396484375, -0.0162200927734375, 0.002269744873046875, 0.01303863525390625, 0.00531005859375, -0.0184478759765625, -0.0214691162109375, 0.020782470703125, -0.003398895263671875, 0.0027866363525390625, -0.01390838623046875, 0.00400543212890625, -0.018402099609375, 0.031463623046875, 0.00708770751953125, -0.046295166015625, -0.014678955078125, -0.00542449951171875, 0.037139892578125, 0.0263671875, -0.015716552734375, -0.004161834716796875, -0.038360595703125, 0.03619384765625, -0.0014133453369140625, -0.021240234375, -0.0015201568603515625, 0.0029239654541015625, -0.00322723388671875, -0.03643798828125, -0.041259765625, -0.0369873046875, 0.018829345703125, 0.03265380859375, -0.04974365234375, -0.01007843017578125, -0.053863525390625, 0.0184326171875, 0.0093536376953125, 0.0188751220703125, 0.09600830078125, -0.03363037109375, -0.01068878173828125, -0.03839111328125, 0.0118560791015625, -0.0136566162109375, -0.0005488395690917969, 0.0025081634521484375, 0.03607177734375, 0.0285186767578125, -0.01045989990234375, -0.0305023193359375, -0.041259765625, 0.056121826171875, -0.0209808349609375, -0.0631103515625, 0.0006799697875976562, 0.010986328125, 0.0239105224609375, 0.0242767333984375, -0.00005364418029785156, 0.10028076171875, 0.004657745361328125, -0.02685546875, 0.0090789794921875, 0.0021724700927734375, -0.01059722900390625, -0.0176849365234375, -0.0009756088256835938, 0.005489349365234375, -0.01538848876953125, -0.01168060302734375, 0.004596710205078125, 0.0085906982421875, 0.014617919921875, -0.0230712890625, 0.01296234130859375, -0.0229949951171875, 0.04119873046875, 0.0115814208984375, 0.0065460205078125, 0.012603759765625, 0.036773681640625, -0.02301025390625, -0.022216796875, -0.039825439453125, 0.0247955322265625, -0.0408935546875, 0.0499267578125, -0.006683349609375, 0.037506103515625, -0.0135498046875, -0.0230560302734375, 0.007038116455078125, -0.0009813308715820312, -0.0234222412109375, -0.0130615234375, -0.01861572265625, -0.0185546875, -0.01535797119140625, 0.00275421142578125, -0.001392364501953125, 0.04559326171875, 0.016021728515625, 0.06842041015625, 0.009033203125, -0.005207061767578125, 0.01033782958984375, -0.0380859375, 0.0155181884765625, 0.0169525146484375, 0.025665283203125, 0.0655517578125, -0.0115203857421875, -0.00013935565948486328, 0.060791015625, -0.033935546875, -0.00020945072174072266, -0.001033782958984375, -0.0009393692016601562, 0.005096435546875, -0.0253143310546875, -0.0037326812744140625, 0.029815673828125, -0.036895751953125, 0.01016998291015625, 0.034637451171875, -0.01508331298828125, 0.0217742919921875, -0.007114410400390625, 0.0034160614013671875, -0.00858306884765625, 0.0194854736328125, 0.01678466796875, -0.002902984619140625, 0.0281982421875, 0.007732391357421875, 0.0084991455078125, 0.0010356903076171875, -0.0295867919921875, 0.0212249755859375, 0.0304718017578125, -0.041778564453125, -0.0101470947265625, 0.0391845703125, 0.0011358261108398438, -0.04669189453125, -0.03851318359375, 0.007778167724609375, 0.00008535385131835938, 0.004718780517578125, 0.00609588623046875, -0.0165863037109375, -0.01995849609375, 0.0005092620849609375, 0.0107269287109375, -0.043853759765625, 0.03179931640625, 0.06195068359375, 0.024627685546875, 0.050506591796875, 0.05517578125, 0.0242919921875, 0.0148162841796875, 0.0219573974609375, 0.006130218505859375, 0.0035305023193359375, 0.04913330078125, 0.00016605854034423828, 0.0146484375, -0.00847625732421875, 0.0125885009765625, 0.034912109375, 0.006011962890625, 0.0005707740783691406, 0.00920867919921875, 0.0297393798828125, 0.038726806640625, -0.027099609375, -0.01287841796875, -0.002941131591796875, -0.0272216796875, 0.017852783203125, 0.0164794921875, 0.0186004638671875, 0.01458740234375, -0.02471923828125, -0.0080413818359375, 0.0140380859375, -0.0909423828125, -0.127197265625, 0.0114898681640625, -0.06640625, 0.05303955078125, 0.006206512451171875, -0.0177764892578125, -0.04791259765625, 0.0506591796875, 0.0251312255859375, -0.028594970703125, -0.0159912109375, -0.055084228515625, -0.038970947265625, -0.05230712890625, 0.053070068359375, -0.0025386810302734375, -0.01401519775390625, 0.0191192626953125, 0.041717529296875, 0.02001953125, -0.061279296875, 0.0153350830078125, 0.0240478515625, -0.030426025390625, 0.025909423828125, 0.0357666015625, -0.041748046875, -0.0038356781005859375, 0.00586700439453125, -0.029022216796875, 0.0223541259765625, -0.01213836669921875, -0.0156402587890625, -0.0101318359375, -0.0311431884765625, 0.0020160675048828125, 0.03289794921875, -0.005828857421875, -0.0163116455078125, 0.028594970703125, -0.05535888671875, -0.0266571044921875, -0.0016851425170898438, -0.0294342041015625, 0.04644775390625, 0.028045654296875, -0.01314544677734375, 0.005413055419921875, 0.0186614990234375, 0.05242919921875, 0.005100250244140625, 0.00025653839111328125, 0.0013055801391601562, 0.04925537109375, 0.0030994415283203125, 0.03729248046875, -0.050384521484375, 0.0897216796875, 0.0046234130859375, -0.034820556640625, 0.033050537109375, -0.0023975372314453125, 0.006702423095703125, -0.0310821533203125, -0.026641845703125, -0.011749267578125, 0.01508331298828125, -0.011199951171875, 0.0309295654296875, -0.0187835693359375, -0.01324462890625, -0.008575439453125, 0.057891845703125, -0.0209197998046875, 0.003612518310546875, 0.0204925537109375, 0.002788543701171875, -0.04913330078125, -0.0270538330078125, -0.073974609375, 0.0020122528076171875, 0.004604339599609375, 0.00989532470703125, -0.00800323486328125, 0.0032711029052734375, -0.0100860595703125, 0.00949859619140625, 0.0006499290466308594, -0.0177459716796875, 0.0234527587890625, -0.044647216796875, 0.00214385986328125, 0.0133056640625, -0.01226806640625, 0.0066375732421875, -0.019134521484375, -0.03839111328125, -0.084228515625, -0.0186309814453125, -0.0125579833984375, 0.0797119140625, 0.0168914794921875, -0.007236480712890625, -0.0110626220703125, 0.06597900390625, -0.01486968994140625, 0.0021610260009765625, 0.0433349609375, 0.02850341796875, 0.000926971435546875, -0.00930023193359375, 0.0177154541015625, -0.04931640625, -0.005115509033203125, -0.006244659423828125, -0.042572021484375, -0.0535888671875, -0.032012939453125, -0.0290985107421875, 0.021270751953125, -0.0301666259765625, -0.048553466796875, -0.0017595291137695312, -0.01248931884765625, -0.02142333984375, 0.002361297607421875, -0.036773681640625, -0.0091552734375, -0.04315185546875, 0.022308349609375, -0.018463134765625, -0.01076507568359375, -0.0035724639892578125, 0.038909912109375, 0.0246124267578125, -0.00830078125, 0.01148223876953125, 0.031768798828125, 0.015869140625, 0.0145111083984375, 0.07135009765625, 0.01483154296875, -0.01806640625, 0.0701904296875, 0.004352569580078125, 0.030792236328125, 0.0165252685546875, 0.021026611328125, 0.014984130859375, 0.0009274482727050781, 0.0009202957153320312, 0.04327392578125, -0.054779052734375, 0.00798797607421875, -0.02911376953125, 0.04290771484375, 0.0009059906005859375, -0.01285552978515625, -0.02978515625, -0.001308441162109375, -0.01177215576171875, -0.037811279296875, -0.0025196075439453125, -0.03533935546875, 0.07916259765625, 0.0394287109375, -0.0143890380859375, 0.059112548828125, 0.07501220703125, 0.002628326416015625, 0.00891876220703125, 0.01348114013671875, -0.0260467529296875, 0.0096893310546875, 0.047821044921875, -0.00571441650390625, 0.003963470458984375, -0.00252532958984375, 0.018768310546875, 0.0159454345703125, -0.026031494140625, -0.0281219482421875, 0.0118560791015625, 0.0640869140625, -0.0322265625, 0.035552978515625, 0.042449951171875, 0.00782012939453125, -0.039703369140625, -0.032928466796875, -0.010345458984375, 0.0114593505859375, -0.05108642578125, 0.0311737060546875, 0.016265869140625, -0.01465606689453125, -0.034576416015625, 0.0567626953125, 0.04644775390625, -0.0081024169921875, -0.020538330078125, 0.039703369140625, -0.01141357421875, 0.06219482421875, 0.024810791015625, -0.057861328125, 0.0240631103515625, 0.0166778564453125, -0.0184783935546875, -0.0296630859375, 0.00543975830078125, 0.00954437255859375, 0.0281524658203125, -0.035064697265625, -0.0382080078125, 0.038330078125, -0.01202392578125, -0.00994110107421875, 0.037567138671875, -0.0031642913818359375, -0.0238037109375, -0.0325927734375, -0.031829833984375, 0.04107666015625, -0.0152740478515625, 0.0313720703125, -0.011993408203125, 0.007495880126953125, -0.010162353515625, -0.005908966064453125, -0.022857666015625, -0.0149688720703125, -0.00829315185546875, 0.002605438232421875, 0.034454345703125, -0.006641387939453125, -0.064697265625, -0.08343505859375, 0.01003265380859375, -0.00832366943359375, 0.051177978515625, -0.0380859375, 0.008514404296875, -0.006633758544921875, 0.0192718505859375, 0.004734039306640625, 0.035736083984375, 0.009918212890625, 0.0098419189453125, -0.0112152099609375, -0.0226593017578125, -0.0382080078125, -0.022064208984375, -0.028564453125, -0.05120849609375, -0.01128387451171875, 0.0140533447265625, -0.02410888671875, 0.03448486328125, -0.0635986328125, -0.06134033203125, 0.01216888427734375, -0.002300262451171875, -0.006771087646484375, 0.0433349609375, -0.038726806640625, 0.0572509765625, -0.002201080322265625, 0.024139404296875, -0.01374053955078125, 0.040863037109375, 0.030487060546875, -0.0148162841796875, -0.0034465789794921875, -0.050445556640625, 0.00921630859375, 0.001979827880859375, -0.002010345458984375, -0.00257110595703125, 0.0274810791015625, 0.01027679443359375, 0.0176544189453125, 0.021728515625, 0.004436492919921875, -0.004436492919921875, 0.020294189453125, 0.04962158203125, 0.006999969482421875, 0.08477783203125, -0.005706787109375, -0.00881195068359375, -0.00989532470703125, -0.0010738372802734375, 0.01424407958984375, -0.011932373046875, 0.00397491455078125, -0.0231475830078125, -0.0650634765625, 0.06536865234375, 0.07659912109375, 0.0341796875, 0.0576171875, 0.0031585693359375, 0.0301513671875, 0.0166473388671875, 0.04425048828125, -0.03729248046875, -0.06396484375, -0.0306854248046875, -0.0157318115234375, -0.01114654541015625, -0.0285491943359375, -0.00110626220703125, -0.00848388671875, 0.019317626953125, 0.034393310546875, -0.057342529296875, 0.0266571044921875, 0.0009441375732421875, 0.005878448486328125, 0.004886627197265625, -0.01242828369140625, 0.0112457275390625, 0.0088958740234375, 0.00885772705078125, 0.033447265625, -0.0217742919921875, 0.01227569580078125, 0.002593994140625, -0.0162811279296875, -0.0038013458251953125, -0.01013946533203125, 0.029998779296875, -0.0216522216796875, 0.031219482421875, 0.030120849609375, 0.0233154296875, 0.0037212371826171875, 0.0002009868621826172, 0.0134124755859375, -0.036468505859375, -0.024200439453125, 0.01444244384765625, -0.0207977294921875, -0.02880859375, 0.035614013671875, -0.020965576171875, 0.050750732421875, 0.034027099609375, 0.0033054351806640625, -0.01495361328125, 0.005695343017578125, 0.0182342529296875, -0.00498199462890625, -0.0190277099609375, 0.016265869140625, 0.0104522705078125, -0.03009033203125, 0.0072479248046875, -0.0162200927734375, -0.00713348388671875, -0.01385498046875, -0.022613525390625, 0.051605224609375, -0.037261962890625, -0.0082855224609375, 0.00760650634765625, 0.00931549072265625, -0.00656890869140625, -0.005550384521484375, 0.033416748046875, -0.056182861328125, -0.0347900390625, 0.0289154052734375, -0.06353759765625, -0.05267333984375, -0.0310516357421875, -0.0210723876953125, 0.1312255859375, -0.0272369384765625, -0.016876220703125, 0.006069183349609375, 0.06689453125, -0.0252227783203125, 0.053466796875, -0.016754150390625, 0.00042057037353515625, -0.007598876953125, 0.048980712890625, -0.01264190673828125, -0.006587982177734375, 0.0225677490234375, 0.049896240234375, 0.0146636962890625, -0.01181793212890625, 0.0175628662109375, 0.010284423828125, 0.078857421875, 0.05511474609375, 0.0229034423828125, -0.021942138671875, 0.0037784576416015625, -0.016326904296875, 0.0100250244140625, -0.01861572265625, 0.02838134765625, -0.043731689453125, -0.012298583984375, 0.00951385498046875, 0.003757476806640625, 0.0197906494140625, -0.0253448486328125, -0.0181121826171875, -0.024932861328125, -0.00010031461715698242, 0.0050201416015625, 0.033966064453125, -0.0182037353515625, 0.0260162353515625, -0.025970458984375, 0.0121917724609375, -0.052734375, -0.01288604736328125, 0.006748199462890625, -0.01168060302734375, -0.016876220703125, -0.01253509521484375, 0.0129547119140625, -0.01959228515625, -0.0260009765625, -0.0204010009765625, 0.044403076171875, -0.0467529296875, 0.0220794677734375, 0.02069091796875, 0.04071044921875, -0.0007801055908203125, 0.01212310791015625, 0.033355712890625, 0.030029296875, -0.0245208740234375, 0.01459503173828125, 0.00827789306640625, 0.00823211669921875, -0.01739501953125, -0.0579833984375, -0.040008544921875, -0.010589599609375, 0.0208740234375, 0.00812530517578125, -0.0196380615234375, -0.007396697998046875, 0.0179443359375, 0.001953125, -0.00305938720703125, 0.004673004150390625, 0.0011272430419921875, -0.058837890625, 0.050994873046875, -0.005603790283203125, 0.0440673828125, 0.02886962890625, 0.01210784912109375, -0.0057525634765625, -0.0243072509765625, -0.0221099853515625, 0.038848876953125, 0.0020351409912109375, 0.029205322265625, -0.0523681640625, -0.01053619384765625, 0.0038299560546875, 0.04931640625, 0.0313720703125, 0.0061798095703125, 0.0264892578125, 0.01110076904296875, -0.031982421875, 0.006549835205078125, 0.05181884765625, -0.005077362060546875, 0.028076171875, 0.0281219482421875, 0.0221099853515625, 0.019317626953125, 0.00252532958984375, -0.0245819091796875, 0.08709716796875, 0.011993408203125, -0.02783203125, 0.007080078125, -0.0022487640380859375, -0.0158538818359375, 0.0164947509765625, 0.0270233154296875, 0.037261962890625, 0.0129241943359375, 0.01213836669921875, 0.0011644363403320312, 0.004058837890625, -0.028228759765625, 0.012481689453125, 0.034576416015625, -0.023223876953125, 0.04150390625, 0.06884765625, -0.0157318115234375, -0.03558349609375, 0.0142669677734375, 0.042266845703125, -0.01715087890625, 0.028289794921875, 0.0428466796875, 0.003108978271484375, 0.0113525390625, 0.046630859375, -0.005523681640625, -0.0008187294006347656, 0.024627685546875, -0.00319671630859375, -0.0101165771484375, 0.04052734375, -0.024078369140625, 0.0216064453125, 0.0288543701171875, -0.00844573974609375, -0.00829315185546875, -0.0009446144104003906, -0.0274505615234375, -0.0533447265625, 0.01117706298828125, 0.0028972625732421875, 0.0187225341796875, 0.00908660888671875, -0.0248260498046875, 0.0269927978515625, 0.025970458984375, 0.0116119384765625, -0.033203125, -0.0230865478515625, -0.036712646484375, -0.0189056396484375, 0.01442718505859375, -0.0176239013671875, -0.0110321044921875, -0.01593017578125, 0.03546142578125, -0.02838134765625, -0.000835418701171875, 0.0252532958984375, 0.002239227294921875, 0.023773193359375, 0.035888671875, 0.04425048828125, 0.0287322998046875, -0.02032470703125, 0.044189453125, -0.0003705024719238281, -0.003963470458984375, 0.01378631591796875, -0.061126708984375, 0.0015420913696289062, 0.04815673828125, 0.0277099609375, -0.0097198486328125, 0.0161285400390625, 0.032135009765625, -0.044464111328125, -0.001922607421875, -0.046630859375, -0.0075225830078125, -0.03033447265625, -0.01678466796875, 0.0159149169921875, -0.0151824951171875, -0.00917816162109375, 0.0302581787109375, 0.02490234375, 0.034332275390625, 0.0179443359375, -0.08575439453125, 0.048126220703125, -0.033416748046875, 0.0616455078125, -0.0011692047119140625, 0.06829833984375, -0.01409149169921875, -0.007144927978515625, -0.044525146484375, 0.011199951171875, -0.018157958984375, 0.032012939453125, 0.020111083984375, 0.0154876708984375, 0.028656005859375, -0.0198822021484375, -0.0014314651489257812, 0.0294952392578125, 0.01230621337890625, 0.073974609375, -0.02813720703125, -0.017425537109375, 0.007049560546875, 0.03668212890625, -0.0160064697265625, -0.078369140625, -0.00969696044921875, -0.027130126953125, 0.0302581787109375, -0.00795745849609375, -0.01641845703125, -0.019256591796875, -0.064697265625, -0.12548828125, 0.055389404296875, -0.01337432861328125, -0.042816162109375, -0.033233642578125, 0.002788543701171875, 0.01218414306640625, 0.0075225830078125, -0.00537872314453125, -0.0101318359375, -0.05047607421875, -0.00605010986328125, 0.0014238357543945312, 0.06317138671875, 0.032196044921875, -0.033447265625, -0.041534423828125, -0.025390625, -0.03546142578125, 0.013214111328125, -0.0244140625, 0.023284912109375, 0.028350830078125, 0.0618896484375, 0.0110321044921875, 0.0258026123046875, 0.0018825531005859375, -0.039642333984375, -0.012603759765625, -0.012542724609375, -0.031463623046875, -0.01241302490234375, 0.10687255859375, -0.01357269287109375, 0.0247650146484375, -0.0193939208984375, -0.054107666015625, -0.0760498046875, 0.0024814605712890625, -0.01061248779296875, 0.0008788108825683594, -0.044830322265625, 0.05126953125, 0.0135498046875, 0.00604248046875, -0.04266357421875, -0.0203399658203125, -0.042449951171875, -0.03167724609375, -0.00873565673828125, 0.01715087890625, 0.01004791259765625, -0.026763916015625, 0.0855712890625, -0.027984619140625, 0.0170440673828125, 0.0164642333984375, 0.0300140380859375, 0.04193115234375, 0.0277557373046875, 0.016082763671875, 0.018585205078125, -0.04412841796875, 0.01348876953125, 0.006591796875, 0.020050048828125, -0.019287109375, -0.00804901123046875, 0.0031280517578125, 0.0237579345703125, -0.004444122314453125, 0.040924072265625, 0.00737762451171875, 0.035247802734375, 0.0037593841552734375, 0.0276031494140625, -0.044708251953125, 0.0290069580078125, -0.03533935546875, 0.016448974609375, 0.016326904296875, 0.0166168212890625, 0.06597900390625, 0.0041046142578125, -0.021240234375, 0.006542205810546875, -0.0850830078125, -0.039306640625, -0.0204315185546875, -0.032196044921875, -0.007568359375, 0.00299072265625 ]
9d9f03cc7d14c4c736c0c917767c51a219668bc8
Wordpress Stackexchange Q: Deleting users from front-end with wp_delete_user() I would like admins to be able to delete users from the frontend with the click of a button. How could I use the wp_delete_users() function to create such a button on the frontend if the user ID is provided? A: The above answer has an error and an omission (not sure why it has 4 checks) 1) int_val not a WP function intval is a WP function 2) You need to include("./wp-admin/includes/user.php" ) to call wp_delete_user I wanted to delete users without going to admin dashboard - Here is working code solution: add_action('init','prefix_delete_user'); function prefix_delete_user() { if(isset($_REQUEST['action']) && $_REQUEST['action']=='prefix_delete_user') { include("./wp-admin/includes/user.php" ); //check admin permissions. if (current_user_can('edit_users')) { $user_id = intval($_REQUEST['user_id']); wp_delete_user($user_id); exit(); } } } Action happens when you post this http://website.com/?action=prefix_delete_user&user_id=<ID> Add to your functions.php
Q: Deleting users from front-end with wp_delete_user() I would like admins to be able to delete users from the frontend with the click of a button. How could I use the wp_delete_users() function to create such a button on the frontend if the user ID is provided? A: The above answer has an error and an omission (not sure why it has 4 checks) 1) int_val not a WP function intval is a WP function 2) You need to include("./wp-admin/includes/user.php" ) to call wp_delete_user I wanted to delete users without going to admin dashboard - Here is working code solution: add_action('init','prefix_delete_user'); function prefix_delete_user() { if(isset($_REQUEST['action']) && $_REQUEST['action']=='prefix_delete_user') { include("./wp-admin/includes/user.php" ); //check admin permissions. if (current_user_can('edit_users')) { $user_id = intval($_REQUEST['user_id']); wp_delete_user($user_id); exit(); } } } Action happens when you post this http://website.com/?action=prefix_delete_user&user_id=<ID> Add to your functions.php A: You could use AJAX to request a custom 'action' and send the users' ID. Alternatively 'post' the action and user ID to the same page. They are both essentially the same thing, but the former doesn't require the page to be reloaded. There are plenty of topics on this site that deal with AJAX, so I'll omit the details (check out the ajax tag for more information). Either way, you want to set action to 'myprefix_delete_user', and 'user_id' to the ID of the appropriate user. Ajax method Sending an ajax request with action 'myprefix_delete_user' will fire the hooks: * *wp_ajax_myprefix_delete_user - if you are logged in *wp_ajax_nopriv_myprefix_delete_user - if you are logged out We only want to do something if are logged in, so we attach a callback to only the first hook: add_action('wp_ajax_myprefix_delete_user','myprefix_delete_user_cb'); function myprefix_delete_user_cb(){ //You should check nonces and user permissions at this point. $user_id = int_val($_REQUEST['user_id']); wp_delete_user($user_id); exit(); } 'POST/GET' method (wasn't sure what to call this method...). Works in much the same way. You again 'post' the action and user_id variables. You can do this by constructing a link: $user_id=9 //ID of the user to be deleted. $url = add_query_arg(array('action'=>'myprefix_delete_user', 'user_id'=>$user_id)); echo "<a href='".$url. "'>Delete User</a>"; This 'posts' (not quite) the data to the current page. Then you hook onto 'init' if the action is set: if(isset($_REQUEST['action']) && $_REQUEST['action']=='myprefix_delete_user') add_action('init','myprefix_delete_user_cb'); The same callback function can be used, with the following changes: * *Remove exit(); *You may wish to use wp_redirect to redirect back to the same page. By redirecting, if a user clicks refresh it doesn't try to re-perform the deletion. Note, I have not performed any nonce or permission checks. You really should do this. The later is a simple current_user_can check. How you do the former will depend on which method, but I encourage you to read this. This question is broadly similar and may help: * *Modify front-end delete button to publish pending posts
wordpress
{ "language": "en", "length": 457, "provenance": "stackexchange_00019.jsonl.gz:417961", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45224" }
[ 0.06402587890625, 0.01548004150390625, -0.0174407958984375, -0.015899658203125, 0.048126220703125, -0.04766845703125, 0.07012939453125, -0.040130615234375, 0.0258636474609375, 0.036773681640625, 0.014251708984375, -0.02349853515625, 0.029449462890625, -0.0273895263671875, -0.0300445556640625, -0.005462646484375, 0.0297088623046875, -0.0023937225341796875, 0.033477783203125, -0.0105133056640625, -0.004009246826171875, 0.0172576904296875, 0.0285186767578125, 0.00160980224609375, -0.0160980224609375, 0.00986480712890625, 0.0312042236328125, -0.00566864013671875, -0.021575927734375, -0.02880859375, -0.00750732421875, 0.04132080078125, -0.0345458984375, 0.042205810546875, 0.0206756591796875, -0.009979248046875, 0.0030994415283203125, 0.029632568359375, 0.047821044921875, 0.0012111663818359375, 0.054962158203125, -0.02130126953125, -0.0044708251953125, 0.02874755859375, -0.0065155029296875, -0.08172607421875, 0.07757568359375, -0.0305328369140625, 0.006256103515625, 0.01125335693359375, 0.020904541015625, -0.01213836669921875, 0.046966552734375, -0.0181884765625, -0.01105499267578125, 0.006069183349609375, -0.01412200927734375, -0.00608062744140625, 0.0457763671875, 0.040252685546875, -0.0294342041015625, -0.018280029296875, 0.00927734375, -0.072509765625, 0.01258087158203125, -0.0186004638671875, 0.0021457672119140625, 0.0247344970703125, -0.0184478759765625, -0.002277374267578125, 0.007904052734375, -0.0025539398193359375, -0.036956787109375, 0.00365447998046875, -0.027923583984375, 0.00774383544921875, 0.002803802490234375, -0.0201873779296875, 0.00048065185546875, 0.0309295654296875, -0.027862548828125, -0.0029964447021484375, -0.0679931640625, 0.01094818115234375, -0.0214996337890625, 0.029022216796875, -0.030303955078125, -0.0185546875, -0.042938232421875, -0.0146331787109375, -0.0305938720703125, -0.05853271484375, 0.00897979736328125, -0.0252838134765625, -0.0276031494140625, -0.0107879638671875, 0.013702392578125, 0.055999755859375, 0.00457763671875, 0.01064300537109375, 0.01090240478515625, -0.048065185546875, 0.01275634765625, -0.0504150390625, -0.0152587890625, 0.04791259765625, 0.0216827392578125, 0.042877197265625, -0.01113128662109375, 0.0182037353515625, 0.002445220947265625, -0.04595947265625, -0.00933837890625, -0.02960205078125, -0.0152587890625, 0.0117645263671875, -0.051605224609375, 0.0123443603515625, -0.006847381591796875, -0.0059967041015625, -0.01067352294921875, -0.003124237060546875, -0.0155487060546875, 0.004207611083984375, 0.0167388916015625, -0.0007066726684570312, -0.0229949951171875, 0.003597259521484375, 0.00704193115234375, -0.00786590576171875, -0.04278564453125, 0.040802001953125, 0.07757568359375, 0.003627777099609375, -0.004596710205078125, -0.01105499267578125, 0.010955810546875, -0.005828857421875, 0.002597808837890625, 0.01140594482421875, 0.039215087890625, -0.041290283203125, -0.039459228515625, 0.026397705078125, 0.018402099609375, 0.040435791015625, 0.0204010009765625, -0.0225372314453125, 0.00392913818359375, -0.046844482421875, -0.02783203125, -0.01904296875, 0.007965087890625, 0.03887939453125, 0.0330810546875, 0.01068878173828125, 0.0599365234375, -0.0223388671875, -0.0171966552734375, -0.0281524658203125, 0.0149993896484375, -0.004638671875, 0.0225067138671875, -0.0300140380859375, -0.0679931640625, 0.0011739730834960938, -0.043670654296875, -0.025482177734375, 0.034515380859375, 0.0282135009765625, 0.00879669189453125, -0.028656005859375, 0.0215606689453125, 0.046905517578125, 0.004459381103515625, 0.0357666015625, 0.02178955078125, -0.0001627206802368164, -0.004241943359375, 0.047332763671875, -0.0159454345703125, -0.037200927734375, 0.0318603515625, -0.0223236083984375, -0.035064697265625, 0.0054779052734375, 0.0300445556640625, 0.060394287109375, -0.0012798309326171875, 0.0220489501953125, 0.031463623046875, 0.035003662109375, 0.0390625, 0.0284576416015625, -0.0017709732055664062, -0.099365234375, 0.0028896331787109375, -0.038726806640625, -0.0274200439453125, 0.0360107421875, 0.075927734375, 0.005176544189453125, 0.02532958984375, -0.03851318359375, -0.09991455078125, 0.0279083251953125, -0.0350341796875, 0.041961669921875, 0.01149749755859375, 0.0034694671630859375, 0.0063934326171875, -0.0026683807373046875, -0.0017652511596679688, -0.0361328125, -0.02362060546875, 0.03240966796875, -0.003063201904296875, 0.033721923828125, 0.0012884140014648438, 0.060821533203125, -0.013946533203125, -0.023651123046875, -0.004482269287109375, -0.0303192138671875, 0.016387939453125, -0.04205322265625, -0.0008411407470703125, -0.028411865234375, -0.0019683837890625, -0.0098114013671875, -0.001491546630859375, 0.0196075439453125, 0.0382080078125, 0.0271453857421875, -0.032562255859375, -0.00823211669921875, -0.007572174072265625, -0.04931640625, -0.004581451416015625, 0.04937744140625, 0.0312347412109375, 0.0032749176025390625, 0.00844573974609375, 0.037384033203125, 0.0118255615234375, -0.0159454345703125, 0.02349853515625, 0.0065765380859375, -0.01070404052734375, 0.036468505859375, -0.0221405029296875, 0.018463134765625, 0.005596160888671875, -0.06689453125, -0.006763458251953125, 0.04498291015625, -0.016082763671875, -0.0161895751953125, 0.0007224082946777344, -0.0064697265625, 0.0006160736083984375, -0.07830810546875, -0.03057861328125, -0.033599853515625, 0.0254669189453125, -0.048095703125, -0.0019474029541015625, -0.017181396484375, 0.0017595291137695312, -0.023712158203125, 0.023651123046875, -0.04669189453125, -0.004932403564453125, -0.0036907196044921875, 0.010772705078125, -0.0311737060546875, -0.041107177734375, 0.0243682861328125, 0.01551055908203125, -0.0277557373046875, -0.00333404541015625, 0.03326416015625, 0.034942626953125, 0.005809783935546875, -0.01055145263671875, -0.003963470458984375, 0.03558349609375, 0.0038013458251953125, 0.0298614501953125, -0.0270843505859375, 0.004413604736328125, 0.03875732421875, -0.0149993896484375, 0.0611572265625, -0.01424407958984375, -0.01103973388671875, 0.005443572998046875, -0.018707275390625, 0.0167083740234375, -0.00908660888671875, 0.04345703125, 0.08062744140625, 0.0140838623046875, -0.01255035400390625, 0.0044403076171875, 0.0217742919921875, 0.02239990234375, 0.0005230903625488281, 0.0015764236450195312, -0.0103759765625, -0.01525115966796875, 0.017791748046875, 0.0263214111328125, 0.069091796875, 0.0034313201904296875, -0.04052734375, 0.015716552734375, 0.03271484375, -0.02349853515625, -0.029754638671875, -0.015472412109375, -0.071533203125, 0.013916015625, -0.031005859375, -0.0298614501953125, 0.01374053955078125, -0.00514984130859375, 0.016021728515625, -0.0194244384765625, 0.007049560546875, 0.02642822265625, 0.0176239013671875, -0.0140533447265625, -0.005950927734375, 0.0014371871948242188, -0.00017058849334716797, -0.0008206367492675781, 0.0199737548828125, -0.005962371826171875, -0.0615234375, -0.025634765625, 0.042938232421875, -0.01513671875, -0.019439697265625, 0.040252685546875, -0.0233612060546875, -0.0023021697998046875, 0.01354217529296875, 0.01517486572265625, 0.0216522216796875, -0.0281829833984375, -0.031005859375, -0.0005497932434082031, -0.036376953125, 0.0221405029296875, 0.0028438568115234375, -0.01381683349609375, -0.029022216796875, 0.0350341796875, -0.052093505859375, 0.0194244384765625, 0.0177459716796875, -0.002773284912109375, 0.0249786376953125, -0.0183868408203125, -0.0477294921875, 0.04632568359375, -0.00939178466796875, 0.050018310546875, 0.056121826171875, -0.019989013671875, 0.056732177734375, -0.035125732421875, 0.000347137451171875, 0.024688720703125, -0.005863189697265625, 0.031463623046875, -0.0166778564453125, 0.017730712890625, 0.007495880126953125, 0.0119476318359375, 0.00798797607421875, -0.0182647705078125, -0.023223876953125, -0.0665283203125, 0.063720703125, 0.0079345703125, -0.0172271728515625, -0.019805908203125, -0.027252197265625, 0.01175689697265625, 0.07958984375, -0.01065826416015625, -0.042694091796875, -0.0151519775390625, 0.0201873779296875, -0.03155517578125, -0.01187896728515625, 0.01959228515625, -0.01235198974609375, -0.053375244140625, -0.004024505615234375, -0.0060577392578125, -0.0069580078125, -0.0272674560546875, 0.048248291015625, -0.041046142578125, -0.03546142578125, 0.01087188720703125, -0.0863037109375, 0.0306243896484375, 0.0110321044921875, -0.0209808349609375, -0.00899505615234375, -0.00040030479431152344, -0.060455322265625, -0.0097808837890625, -0.0003495216369628906, -0.00992584228515625, 0.0166015625, 0.031768798828125, -0.0191497802734375, 0.0023403167724609375, 0.018707275390625, 0.013824462890625, 0.0157318115234375, -0.01446533203125, -0.0013589859008789062, 0.0008077621459960938, -0.0203857421875, -0.021820068359375, -0.01226806640625, -0.0221099853515625, -0.0302581787109375, -0.03704833984375, -0.01309967041015625, -0.045928955078125, 0.0268402099609375, -0.016204833984375, -0.0206756591796875, -0.07177734375, -0.047607421875, -0.0222320556640625, 0.027679443359375, -0.040924072265625, 0.0164642333984375, -0.052093505859375, -0.08404541015625, 0.050506591796875, -0.0300750732421875, 0.0182037353515625, -0.007167816162109375, 0.068603515625, 0.00592041015625, -0.02093505859375, 0.0176849365234375, -0.00008845329284667969, 0.038330078125, -0.0222015380859375, 0.045684814453125, 0.02288818359375, -0.0129852294921875, 0.03790283203125, 0.0164642333984375, 0.0185699462890625, -0.0364990234375, 0.031402587890625, -0.0084075927734375, -0.0302886962890625, 0.0279541015625, -0.01013946533203125, 0.02728271484375, 0.0141143798828125, -0.004711151123046875, -0.00989532470703125, 0.045867919921875, 0.038787841796875, -0.01302337646484375, -0.00829315185546875, -0.02813720703125, -0.04425048828125, 0.0159912109375, -0.0830078125, 0.020263671875, -0.0077362060546875, 0.0106048583984375, 0.00377655029296875, 0.0017757415771484375, -0.01308441162109375, -0.0251617431640625, -0.0148162841796875, -0.0016765594482421875, 0.031951904296875, -0.05413818359375, 0.003482818603515625, -0.01708984375, -0.02777099609375, 0.11669921875, 0.01129913330078125, -0.037933349609375, -0.0180511474609375, -0.01096343994140625, 0.0556640625, 0.0006313323974609375, 0.005855560302734375, 0.03436279296875, 0.03228759765625, -0.002773284912109375, -0.0038051605224609375, -0.000614166259765625, 0.0128021240234375, -0.024017333984375, -0.005252838134765625, 0.00818634033203125, -0.0139007568359375, 0.02886962890625, 0.07159423828125, -0.01837158203125, 0.054107666015625, -0.01287078857421875, 0.07391357421875, 0.0130157470703125, 0.03656005859375, -0.0188446044921875, 0.027069091796875, -0.00782012939453125, 0.0162811279296875, -0.01490020751953125, 0.0002529621124267578, 0.00640106201171875, 0.044708251953125, 0.0209808349609375, 0.0322265625, 0.00978851318359375, -0.035430908203125, -0.01190948486328125, -0.0166778564453125, 0.040435791015625, -0.0015172958374023438, -0.052703857421875, -0.037994384765625, 0.00021898746490478516, 0.0283660888671875, -0.022857666015625, -0.01184844970703125, 0.018035888671875, -0.0299224853515625, 0.0025787353515625, 0.015045166015625, -0.01300048828125, -0.01526641845703125, -0.00937652587890625, 0.0012969970703125, -0.02349853515625, -0.0203704833984375, 0.00986480712890625, 0.0166015625, -0.03460693359375, -0.031982421875, 0.0478515625, 0.0157470703125, -0.019378662109375, -0.0193634033203125, 0.0137786865234375, -0.0078277587890625, -0.0252227783203125, 0.0767822265625, 0.0149383544921875, -0.043731689453125, -0.0177154541015625, -0.012725830078125, -0.007320404052734375, 0.0219879150390625, -0.01323699951171875, -0.0159149169921875, 0.003772735595703125, -0.0047607421875, 0.005084991455078125, -0.007564544677734375, 0.032135009765625, -0.0137939453125, 0.045135498046875, 0.005550384521484375, 0.029022216796875, -0.0186767578125, 0.053497314453125, -0.015716552734375, 0.0128326416015625, 0.017059326171875, 0.048858642578125, 0.00859832763671875, -0.0255584716796875, 0.022705078125, 0.0159454345703125, -0.018798828125, -0.0322265625, -0.007724761962890625, -0.04638671875, 0.043853759765625, -0.017578125, -0.005733489990234375, 0.01168060302734375, -0.003566741943359375, -0.041259765625, 0.01360321044921875, 0.031463623046875, 0.0271148681640625, -0.05224609375, -0.031005859375, -0.01424407958984375, -0.00786590576171875, 0.0228271484375, -0.01776123046875, -0.02972412109375, -0.00836944580078125, 0.01483154296875, -0.04156494140625, 0.05023193359375, 0.061614990234375, -0.0007357597351074219, 0.04339599609375, 0.0261383056640625, 0.0149078369140625, 0.0254364013671875, 0.0236663818359375, -0.06585693359375, -0.010406494140625, 0.0323486328125, 0.01415252685546875, -0.01377105712890625, 0.0194091796875, -0.01336669921875, 0.01137542724609375, 0.08905029296875, 0.07464599609375, -0.1181640625, 0.01148223876953125, -0.0032405853271484375, -0.0019550323486328125, 0.05615234375, -0.01727294921875, 0.0291290283203125, -0.0072021484375, 0.04949951171875, -0.0055084228515625, -0.0112762451171875, 0.01824951171875, -0.02911376953125, -0.006549835205078125, -0.0163421630859375, 0.005847930908203125, -0.012786865234375, 0.01280975341796875, -0.00807952880859375, -0.0262603759765625, 0.01108551025390625, -0.0164794921875, 0.00954437255859375, 0.0160369873046875, -0.0100250244140625, -0.056396484375, 0.02606201171875, -0.005252838134765625, -0.0278167724609375, 0.0193939208984375, -0.0184478759765625, 0.028472900390625, 0.033447265625, -0.0145416259765625, 0.005096435546875, -0.0042877197265625, 0.0016422271728515625, -0.031463623046875, -0.032318115234375, 0.01511383056640625, 0.0024166107177734375, -0.07427978515625, 0.0362548828125, -0.04248046875, -0.0247650146484375, -0.007030487060546875, -0.0139312744140625, 0.10540771484375, -0.05224609375, -0.00634002685546875, 0.0284423828125, 0.020782470703125, -0.01995849609375, -0.0003495216369628906, -0.022674560546875, -0.042572021484375, -0.036041259765625, -0.0034122467041015625, -0.060760498046875, 0.03509521484375, 0.005001068115234375, -0.0491943359375, 0.0513916015625, -0.0026531219482421875, 0.01251220703125, -0.01319122314453125, 0.0194091796875, 0.00673675537109375, 0.0161590576171875, -0.049041748046875, 0.040924072265625, -0.0121917724609375, 0.025665283203125, -0.0305633544921875, 0.00984954833984375, -0.005405426025390625, -0.004825592041015625, 0.08984375, 0.041748046875, -0.0194549560546875, -0.0176544189453125, 0.0091552734375, -0.004486083984375, -0.038055419921875, 0.051300048828125, 0.01320648193359375, 0.00540924072265625, 0.0173187255859375, -0.017608642578125, 0.02886962890625, -0.03680419921875, -0.0194854736328125, 0.0198974609375, 0.02215576171875, 0.0262603759765625, 0.018707275390625, 0.0283966064453125, -0.03887939453125, 0.00225067138671875, 0.0364990234375, -0.033233642578125, -0.031402587890625, 0.033203125, 0.01080322265625, -0.031951904296875, -0.006992340087890625, -0.03204345703125, 0.0418701171875, 0.035125732421875, 0.02020263671875, 0.025604248046875, 0.031890869140625, -0.02301025390625, -0.003612518310546875, 0.0205230712890625, 0.03558349609375, -0.052276611328125, 0.0645751953125, 0.044158935546875, 0.0283355712890625, -0.03021240234375, -0.015960693359375, 0.0703125, 0.09625244140625, -0.04541015625, -0.047119140625, 0.001903533935546875, 0.01226806640625, 0.047607421875, 0.033966064453125, 0.07708740234375, -0.039154052734375, -0.00909423828125, -0.05828857421875, 0.0242767333984375, 0.025543212890625, 0.0178985595703125, -0.011627197265625, 0.02069091796875, -0.045501708984375, 0.00588226318359375, -0.037811279296875, 0.0111846923828125, 0.0019588470458984375, 0.00302886962890625, 0.013885498046875, -0.00357818603515625, 0.058624267578125, 0.00998687744140625, 0.0170440673828125, 0.0151824951171875, -0.003765106201171875, -0.0235443115234375, -0.01192474365234375, -0.0477294921875, 0.004100799560546875, 0.03607177734375, -0.03759765625, 0.0212554931640625, 0.026611328125, 0.007350921630859375, -0.034637451171875, -0.03900146484375, -0.0089874267578125, -0.041748046875, -0.014923095703125, -0.010498046875, -0.018157958984375, -0.01348876953125, -0.01132965087890625, -0.00794219970703125, 0.0308074951171875, -0.0099334716796875, -0.041351318359375, 0.01800537109375, -0.012298583984375, -0.03204345703125, 0.05633544921875, -0.0178680419921875, 0.0360107421875, -0.0236053466796875, -0.0300140380859375, 0.007904052734375, -0.0146636962890625, -0.017425537109375, -0.005859375, 0.01203155517578125, -0.02911376953125, 0.051422119140625, 0.0188751220703125, -0.04058837890625, 0.037109375, 0.027587890625, 0.003551483154296875, 0.015106201171875, 0.01104736328125, -0.01629638671875, -0.00608062744140625, 0.003726959228515625, 0.019287109375, 0.0146331787109375, 0.0251312255859375, 0.04241943359375, -0.015777587890625, 0.0170745849609375, -0.01142120361328125, 0.059844970703125, -0.03924560546875, -0.0474853515625, 0.07501220703125, 0.0079345703125, -0.0038814544677734375, -0.0115509033203125, -0.042999267578125, 0.0560302734375, 0.0186920166015625, 0.0034637451171875, 0.031463623046875, -0.0019359588623046875, 0.0022430419921875, -0.002368927001953125, 0.058685302734375, -0.00795745849609375, -0.04107666015625, -0.048675537109375, 0.002994537353515625, 0.040313720703125, 0.057647705078125, -0.031646728515625, 0.00478363037109375, -0.0127716064453125, -0.041748046875, 0.005954742431640625, -0.0034332275390625, 0.00820159912109375, 0.020416259765625, -0.0163116455078125, -0.0175628662109375, -0.0120391845703125, -0.005092620849609375, 0.000020384788513183594, 0.007061004638671875, -0.019134521484375, 0.0215301513671875, -0.0038394927978515625, -0.007617950439453125, -0.025115966796875, 0.042633056640625, 0.021392822265625, 0.01198577880859375, -0.053253173828125, 0.01357269287109375, 0.00884246826171875, -0.031097412109375, -0.025543212890625, -0.015411376953125, -0.0165863037109375, 0.039154052734375, -0.0240325927734375, -0.032440185546875, -0.101318359375, 0.02349853515625, 0.0147247314453125, 0.008392333984375, -0.0728759765625, 0.0552978515625, -0.0146942138671875, 0.02325439453125, -0.035736083984375, -0.004352569580078125, -0.019927978515625, 0.01513671875, -0.0293731689453125, -0.01560211181640625, -0.03814697265625, 0.0160369873046875, -0.03204345703125, 0.0020427703857421875, 0.04144287109375, 0.0034160614013671875, -0.0302886962890625, 0.00904083251953125, -0.0014505386352539062, 0.049591064453125, -0.0343017578125, -0.02630615234375, -0.0007452964782714844, -0.0012273788452148438, 0.021881103515625, -0.02362060546875, -0.0206756591796875, -0.006031036376953125, -0.002864837646484375, 0.0006499290466308594, 0.0269622802734375, 0.0540771484375, -0.0390625, -0.11181640625, 0.054901123046875, -0.022674560546875, -0.04852294921875, 0.00591278076171875, 0.01094818115234375, 0.00577545166015625, -0.01015472412109375, -0.002857208251953125, -0.025177001953125, -0.0229339599609375, 0.00464630126953125, 0.01482391357421875, 0.0090179443359375, 0.01192474365234375, 0.0028438568115234375, -0.06591796875, 0.00513458251953125, -0.00637054443359375, 0.026519775390625, 0.01129150390625, -0.015899658203125, 0.058868408203125, 0.06793212890625, -0.006656646728515625, 0.036590576171875, 0.0101776123046875, -0.052978515625, -0.0306396484375, -0.04034423828125, -0.0212860107421875, -0.02703857421875, 0.07916259765625, 0.0254364013671875, 0.01264190673828125, -0.017608642578125, -0.020111083984375, -0.03143310546875, -0.01702880859375, -0.002552032470703125, 0.0133209228515625, -0.0819091796875, -0.01303863525390625, 0.038604736328125, -0.0310821533203125, -0.0006690025329589844, 0.0004069805145263672, -0.052001953125, 0.027099609375, 0.034271240234375, 0.006927490234375, -0.015472412109375, 0.0191802978515625, 0.0278778076171875, -0.034759521484375, -0.035430908203125, -0.0292205810546875, 0.0074920654296875, -0.0198974609375, -0.069091796875, -0.01287078857421875, 0.004756927490234375, -0.0214691162109375, 0.017181396484375, 0.0005440711975097656, 0.0290374755859375, -0.0224761962890625, -0.00899505615234375, -0.004390716552734375, 0.0299224853515625, -0.00689697265625, 0.03277587890625, -0.01105499267578125, 0.0716552734375, 0.0069427490234375, 0.051116943359375, -0.01190948486328125, 0.05841064453125, -0.0163726806640625, 0.050201416015625, 0.004852294921875, -0.00655364990234375, 0.050506591796875, -0.037872314453125, -0.035003662109375, 0.027130126953125, -0.02130126953125, -0.0858154296875, 0.053863525390625, 0.05731201171875, 0.047698974609375, 0.034759521484375 ]
6497c45f5c261fa32a26ff9a1caeeb0a8278068f
Wordpress Stackexchange Q: Is it possible to add classes to list items in wp_nav_menu()? I am using <?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'menu_class' => 'nav-bar', 'container' => 'nav' ) ); ?> to output my navigation menu list. Currently they automatically get classes added to them like page-item-8, page-item-6. I work on a local machine and upload to my server. My problem is the page-item numbers are different and I can't select them properly. What I want to do is add a class home, shop, services, etc to the respective list item. Is there a better way to do this. Thanks in advance. A: The simple way would to add the css class to the individual titles in the wp-admin/menus section. First, go to the screen options and select the css checkbox: Next, open the menu item and give it a class. In my example it would have the class .home-page:
Q: Is it possible to add classes to list items in wp_nav_menu()? I am using <?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'menu_class' => 'nav-bar', 'container' => 'nav' ) ); ?> to output my navigation menu list. Currently they automatically get classes added to them like page-item-8, page-item-6. I work on a local machine and upload to my server. My problem is the page-item numbers are different and I can't select them properly. What I want to do is add a class home, shop, services, etc to the respective list item. Is there a better way to do this. Thanks in advance. A: The simple way would to add the css class to the individual titles in the wp-admin/menus section. First, go to the screen options and select the css checkbox: Next, open the menu item and give it a class. In my example it would have the class .home-page: A: Ok I just added to my functions.php file went to appearance menus, changed screen options to allow classes. Then Added a individual class for each one. Awesome! <?php function register_my_menus() { register_nav_menus( array('header-menu' => __( 'Header Menu' ) ) ); } add_action( 'init', 'register_my_menus' ); ?>
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:417962", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45227" }
[ 0.06231689453125, 0.0179595947265625, 0.0184478759765625, 0.03515625, 0.03839111328125, -0.05908203125, 0.11029052734375, -0.07427978515625, -0.029693603515625, -0.0145111083984375, -0.04693603515625, 0.046234130859375, -0.0445556640625, -0.01250457763671875, 0.0195159912109375, -0.053436279296875, 0.04071044921875, -0.01291656494140625, 0.028167724609375, 0.007354736328125, 0.0116424560546875, 0.0217742919921875, 0.01477813720703125, 0.038330078125, 0.0306854248046875, -0.045654296875, 0.0183868408203125, 0.000024020671844482422, 0.01885986328125, 0.0130615234375, 0.0232086181640625, -0.01268768310546875, 0.006610870361328125, 0.0083770751953125, 0.0516357421875, 0.00511932373046875, 0.0015058517456054688, 0.007099151611328125, 0.033233642578125, 0.004756927490234375, 0.042083740234375, -0.0266571044921875, 0.01314544677734375, 0.040069580078125, -0.01031494140625, -0.0266876220703125, 0.0250244140625, -0.035308837890625, 0.0228424072265625, -0.09906005859375, 0.005695343017578125, 0.0040740966796875, 0.0245361328125, -0.030120849609375, -0.0264892578125, 0.0223541259765625, -0.00016176700592041016, -0.0016775131225585938, 0.033447265625, 0.00011855363845825195, -0.035400390625, -0.01396942138671875, 0.0193023681640625, -0.029327392578125, -0.033782958984375, 0.015045166015625, 0.032379150390625, -0.007389068603515625, -0.039276123046875, -0.032257080078125, 0.0258331298828125, -0.01035308837890625, -0.038238525390625, -0.0186614990234375, -0.0117034912109375, -0.01232147216796875, 0.00493621826171875, -0.05133056640625, -0.004146575927734375, 0.042938232421875, 0.033721923828125, 0.048980712890625, -0.00014829635620117188, -0.0357666015625, 0.02764892578125, -0.0171661376953125, -0.0201873779296875, -0.02667236328125, 0.0272064208984375, -0.0306396484375, -0.00458526611328125, -0.0236358642578125, 0.0308990478515625, 0.01715087890625, -0.0205841064453125, -0.0396728515625, -0.00925445556640625, 0.072998046875, -0.004344940185546875, 0.0579833984375, -0.0232696533203125, -0.0311737060546875, 0.07073974609375, -0.07769775390625, -0.0133209228515625, 0.01477813720703125, 0.0033626556396484375, 0.054779052734375, 0.040069580078125, 0.037750244140625, -0.006496429443359375, 0.019256591796875, -0.007659912109375, -0.0565185546875, -0.00959014892578125, -0.0016164779663085938, -0.028564453125, 0.0137481689453125, 0.036163330078125, -0.054901123046875, 0.00841522216796875, 0.04302978515625, -0.0169830322265625, 0.00824737548828125, -0.0263519287109375, 0.005947113037109375, 0.0211029052734375, -0.04876708984375, 0.002712249755859375, -0.0257720947265625, -0.034942626953125, 0.031768798828125, 0.040802001953125, 0.038726806640625, 0.01513671875, -0.0029144287109375, 0.01039886474609375, -0.031646728515625, -0.0147552490234375, 0.0112457275390625, 0.0257568359375, -0.0109405517578125, -0.0089569091796875, 0.00612640380859375, 0.04327392578125, 0.0075531005859375, 0.01666259765625, 0.0107574462890625, 0.01242828369140625, -0.00115203857421875, 0.048797607421875, -0.0418701171875, 0.0300445556640625, 0.0310821533203125, -0.0301055908203125, 0.0166778564453125, 0.010406494140625, -0.00775909423828125, -0.03704833984375, -0.03216552734375, -0.0213775634765625, -0.01395416259765625, 0.01947021484375, -0.08447265625, -0.068359375, 0.01068878173828125, -0.04595947265625, -0.00919342041015625, 0.0248260498046875, -0.048065185546875, -0.015228271484375, -0.023681640625, 0.039276123046875, 0.0252227783203125, 0.0010786056518554688, 0.0631103515625, 0.040618896484375, 0.00362396240234375, 0.0130462646484375, 0.0283966064453125, -0.0199127197265625, -0.040985107421875, 0.023468017578125, -0.0260467529296875, -0.0439453125, 0.01129913330078125, -0.0036067962646484375, 0.032379150390625, 0.033416748046875, 0.0154266357421875, 0.02593994140625, -0.000591278076171875, -0.04266357421875, -0.01250457763671875, -0.0283660888671875, -0.0002758502960205078, -0.004177093505859375, 0.0245819091796875, -0.007511138916015625, 0.01082611083984375, 0.0016307830810546875, -0.01340484619140625, -0.003582000732421875, 0.003795623779296875, -0.022003173828125, -0.01910400390625, 0.0033969879150390625, 0.0269775390625, -0.0031986236572265625, 0.0010328292846679688, -0.005130767822265625, -0.01471710205078125, 0.0289459228515625, -0.0955810546875, -0.045989990234375, 0.0200042724609375, 0.01154327392578125, -0.0003504753112792969, -0.00775146484375, -0.021087646484375, -0.01215362548828125, 0.004184722900390625, -0.018646240234375, 0.02880859375, 0.0272216796875, -0.00279998779296875, -0.036163330078125, -0.01061248779296875, 0.0137939453125, 0.0101470947265625, -0.0281219482421875, 0.030059814453125, 0.03240966796875, 0.03387451171875, -0.0235443115234375, -0.0157012939453125, -0.00984954833984375, -0.07403564453125, 0.004730224609375, 0.049407958984375, 0.044769287109375, 0.0068511962890625, -0.00836181640625, -0.0310821533203125, 0.005802154541015625, -0.01535797119140625, 0.03546142578125, -0.042816162109375, -0.0435791015625, -0.0127410888671875, 0.05975341796875, 0.00966644287109375, 0.030792236328125, 0.01267242431640625, -0.00450897216796875, 0.026031494140625, -0.021453857421875, -0.01024627685546875, -0.0202484130859375, 0.01105499267578125, -0.0027523040771484375, 0.01207733154296875, 0.006832122802734375, 0.0005164146423339844, 0.03497314453125, 0.0025634765625, 0.029205322265625, 0.003787994384765625, -0.01459503173828125, -0.00632476806640625, 0.01393890380859375, -0.00836181640625, 0.0201873779296875, 0.026702880859375, -0.038726806640625, 0.0038967132568359375, -0.0139617919921875, -0.0034847259521484375, 0.0196380615234375, -0.0000762939453125, -0.0216217041015625, 0.03424072265625, 0.0369873046875, -0.01256561279296875, -0.023895263671875, -0.06915283203125, 0.04046630859375, -0.01056671142578125, -0.03533935546875, -0.0218658447265625, 0.0106353759765625, 0.01605224609375, -0.03924560546875, 0.0252685546875, -0.01071929931640625, -0.0160369873046875, 0.06732177734375, 0.04595947265625, -0.0135345458984375, 0.01239776611328125, 0.040740966796875, 0.0176544189453125, -0.0260772705078125, -0.0117340087890625, -0.0038776397705078125, 0.01284027099609375, 0.004520416259765625, 0.00756072998046875, 0.0014591217041015625, -0.033294677734375, 0.0218353271484375, 0.05657958984375, 0.02630615234375, 0.006336212158203125, 0.004459381103515625, -0.03277587890625, -0.0106658935546875, 0.0020294189453125, -0.047607421875, -0.0286712646484375, 0.039642333984375, -0.024169921875, 0.0162811279296875, 0.021728515625, -0.0079498291015625, -0.03826904296875, 0.06475830078125, 0.0028629302978515625, 0.00662994384765625, -0.011993408203125, -0.01047515869140625, -0.00997161865234375, -0.037994384765625, 0.00524139404296875, 0.005157470703125, 0.0147857666015625, 0.004840850830078125, 0.05120849609375, -0.002651214599609375, -0.03009033203125, 0.007595062255859375, 0.0309906005859375, 0.014923095703125, -0.001819610595703125, 0.0021820068359375, -0.0301513671875, -0.0199127197265625, 0.0010805130004882812, -0.0123291015625, -0.00568389892578125, 0.0035762786865234375, -0.005977630615234375, -0.034515380859375, 0.0177459716796875, -0.006195068359375, 0.00820159912109375, 0.05633544921875, 0.057647705078125, 0.016326904296875, -0.0108489990234375, -0.0286865234375, 0.00020742416381835938, -0.0174102783203125, -0.0182647705078125, -0.0272979736328125, 0.007297515869140625, -0.01445770263671875, 0.033203125, -0.01477813720703125, 0.00359344482421875, 0.013824462890625, -0.0190887451171875, 0.0254669189453125, -0.0103607177734375, -0.021240234375, -0.005985260009765625, 0.043701171875, 0.01175689697265625, 0.0025806427001953125, 0.018310546875, 0.00641632080078125, -0.0248870849609375, 0.031524658203125, -0.0750732421875, -0.0860595703125, 0.040863037109375, -0.01763916015625, 0.022918701171875, -0.038848876953125, -0.033477783203125, 0.020538330078125, 0.128173828125, -0.06829833984375, -0.0286865234375, -0.008575439453125, 0.040008544921875, -0.01546478271484375, -0.0645751953125, 0.0162353515625, -0.0408935546875, -0.11163330078125, 0.0240478515625, -0.00556182861328125, -0.03973388671875, -0.0237274169921875, -0.0036754608154296875, -0.058349609375, -0.042724609375, 0.031890869140625, -0.044036865234375, 0.004825592041015625, 0.0325927734375, -0.0010023117065429688, -0.00360107421875, -0.01031494140625, -0.032867431640625, -0.0914306640625, -0.01358795166015625, -0.037628173828125, 0.08209228515625, 0.01898193359375, -0.0025234222412109375, -0.01080322265625, 0.0531005859375, 0.037384033203125, 0.0272216796875, 0.029571533203125, 0.0024261474609375, 0.0201416015625, 0.0003662109375, 0.032379150390625, -0.0259246826171875, 0.0101165771484375, -0.005550384521484375, -0.05609130859375, 0.0066680908203125, -0.0291290283203125, 0.006519317626953125, 0.0238800048828125, -0.04071044921875, -0.0206756591796875, -0.055419921875, -0.01082611083984375, 0.003200531005859375, -0.0011396408081054688, 0.0110931396484375, -0.039306640625, -0.0215911865234375, 0.00571441650390625, -0.01776123046875, 0.00859832763671875, 0.0212249755859375, 0.046905517578125, 0.01473236083984375, -0.0242462158203125, -0.00034165382385253906, 0.049285888671875, 0.034881591796875, -0.005340576171875, 0.0258331298828125, -0.00347137451171875, -0.028106689453125, 0.0445556640625, -0.0032749176025390625, 0.0185699462890625, 0.01013946533203125, 0.04327392578125, 0.0260772705078125, -0.0081024169921875, 0.01364898681640625, 0.020172119140625, -0.037689208984375, 0.014251708984375, 0.00727081298828125, -0.046173095703125, -0.0010213851928710938, 0.039794921875, 0.01513671875, 0.01561737060546875, -0.0286865234375, -0.0128936767578125, -0.00952911376953125, -0.0196990966796875, 0.04290771484375, 0.045013427734375, -0.01010894775390625, 0.02081298828125, 0.0185699462890625, -0.0013284683227539062, 0.0008940696716308594, -0.0244903564453125, -0.0162353515625, 0.01174163818359375, -0.018157958984375, -0.0200347900390625, 0.019134521484375, -0.0158843994140625, 0.08447265625, 0.0245819091796875, -0.035614013671875, -0.0087890625, -0.0035915374755859375, 0.031768798828125, 0.00775146484375, -0.007045745849609375, 0.045196533203125, 0.0164337158203125, 0.0242919921875, -0.0238800048828125, -0.0682373046875, 0.0185546875, -0.043487548828125, 0.06866455078125, 0.035186767578125, 0.00008541345596313477, 0.027923583984375, 0.022216796875, 0.0352783203125, 0.01296234130859375, -0.0229644775390625, -0.004444122314453125, 0.0027256011962890625, 0.0281982421875, 0.0229949951171875, 0.0008368492126464844, -0.00498199462890625, 0.01171112060546875, 0.01345062255859375, -0.005428314208984375, 0.00016176700592041016, 0.0309906005859375, 0.01293182373046875, 0.008575439453125, 0.0011320114135742188, 0.0007867813110351562, -0.0198974609375, -0.01380157470703125, 0.02093505859375, -0.01241302490234375, -0.03192138671875, -0.024444580078125, 0.0021457672119140625, 0.03070068359375, -0.0156402587890625, -0.0136566162109375, 0.0071563720703125, 0.01030731201171875, 0.0214385986328125, 0.023590087890625, -0.0294189453125, 0.0216064453125, 0.0214996337890625, -0.054473876953125, -0.01041412353515625, 0.01837158203125, -0.0953369140625, -0.0279693603515625, -0.0198974609375, -0.034271240234375, 0.0245819091796875, -0.029876708984375, 0.052032470703125, -0.025238037109375, -0.00782012939453125, -0.0156402587890625, 0.025177001953125, -0.0022869110107421875, -0.0016698837280273438, -0.00540924072265625, -0.02313232421875, -0.065673828125, -0.01824951171875, -0.040985107421875, -0.036102294921875, -0.01450347900390625, 0.01177978515625, 0.004108428955078125, 0.0086822509765625, -0.0186614990234375, -0.050445556640625, -0.0447998046875, 0.006694793701171875, 0.040557861328125, -0.04119873046875, -0.0292510986328125, 0.086181640625, -0.006988525390625, 0.042236328125, 0.0032138824462890625, 0.02545166015625, -0.01461029052734375, -0.0031337738037109375, 0.0191802978515625, -0.0012578964233398438, -0.041259765625, -0.02734375, -0.0322265625, 0.0236358642578125, 0.1080322265625, -0.01528167724609375, 0.0215911865234375, -0.0247650146484375, 0.01085662841796875, -0.032501220703125, 0.005718231201171875, -0.0687255859375, -0.0238800048828125, 0.0213470458984375, 0.033843994140625, 0.053680419921875, -0.0246124267578125, -0.008209228515625, -0.017181396484375, 0.00991058349609375, 0.01983642578125, -0.034912109375, -0.06329345703125, 0.0631103515625, 0.0634765625, -0.0029239654541015625, 0.041259765625, -0.006427764892578125, 0.003376007080078125, 0.0156097412109375, -0.011810302734375, 0.016204833984375, 0.0458984375, 0.08404541015625, -0.00585174560546875, -0.0304107666015625, 0.0211944580078125, -0.04376220703125, -0.0006089210510253906, 0.04742431640625, 0.045013427734375, -0.0819091796875, 0.026214599609375, 0.002758026123046875, 0.002685546875, 0.04644775390625, 0.03375244140625, -0.02301025390625, -0.020751953125, 0.027008056640625, -0.0489501953125, -0.00856781005859375, 0.01971435546875, -0.004192352294921875, 0.00550079345703125, -0.0133056640625, 0.00850677490234375, -0.005130767822265625, -0.0110321044921875, -0.031219482421875, 0.01424407958984375, -0.01544952392578125, -0.033935546875, -0.00689697265625, 0.022247314453125, -0.018096923828125, -0.053619384765625, 0.0380859375, -0.02752685546875, 0.0252685546875, -0.00243377685546875, 0.0241851806640625, -0.01221466064453125, 0.01995849609375, -0.0237274169921875, 0.0170745849609375, 0.006561279296875, -0.0263824462890625, 0.0246734619140625, 0.00445556640625, 0.036102294921875, -0.0321044921875, -0.0543212890625, 0.00701141357421875, -0.04034423828125, -0.0308380126953125, 0.0104827880859375, 0.0036716461181640625, 0.056427001953125, -0.05108642578125, -0.0126953125, 0.01158905029296875, -0.0162506103515625, 0.018157958984375, 0.00838470458984375, 0.050933837890625, -0.045562744140625, -0.0002193450927734375, 0.022613525390625, 0.01021575927734375, -0.006633758544921875, 0.005859375, 0.0186004638671875, 0.0494384765625, -0.058013916015625, -0.0517578125, 0.0418701171875, 0.043853759765625, -0.0118865966796875, 0.04449462890625, -0.0303802490234375, 0.045166015625, 0.005054473876953125, 0.0006542205810546875, -0.0287933349609375, 0.005428314208984375, -0.0096893310546875, 0.01068878173828125, -0.044219970703125, -0.00997161865234375, -0.0440673828125, 0.00571441650390625, 0.04888916015625, 0.06561279296875, 0.06231689453125, 0.014404296875, -0.0297698974609375, -0.01531219482421875, -0.019927978515625, -0.03521728515625, 0.0171356201171875, -0.0306243896484375, -0.04437255859375, -0.0140228271484375, -0.00006300210952758789, -0.0187530517578125, 0.0052337646484375, 0.00848388671875, -0.016387939453125, 0.0008978843688964844, -0.01885986328125, 0.0203399658203125, 0.00580596923828125, 0.024688720703125, 0.0034923553466796875, -0.01194000244140625, -0.0291290283203125, -0.0245361328125, 0.0193328857421875, -0.006000518798828125, 0.0118560791015625, 0.0010175704956054688, 0.0058135986328125, 0.0020046234130859375, 0.0300445556640625, 0.003173828125, 0.055694580078125, -0.02117919921875, 0.053955078125, -0.0016126632690429688, 0.038848876953125, -0.052734375, -0.035797119140625, 0.002887725830078125, 0.06829833984375, -0.0333251953125, -0.020660400390625, 0.01654052734375, 0.027435302734375, 0.0167999267578125, -0.0066986083984375, 0.042816162109375, -0.050689697265625, -0.00231170654296875, -0.002964019775390625, -0.0007190704345703125, 0.027496337890625, 0.00943756103515625, 0.012420654296875, 0.029815673828125, -0.02105712890625, -0.005908966064453125, -0.048736572265625, 0.035919189453125, -0.0024261474609375, 0.042510986328125, 0.01415252685546875, 0.0657958984375, -0.01537322998046875, -0.0189666748046875, -0.00649261474609375, 0.051055908203125, 0.0168914794921875, -0.0025959014892578125, -0.0017938613891601562, -0.031494140625, 0.0035076141357421875, 0.005107879638671875, -0.00211334228515625, 0.00827789306640625, 0.042633056640625, 0.0384521484375, -0.0235595703125, -0.0196075439453125, 0.01727294921875, -0.0288848876953125, -0.05169677734375, -0.00255584716796875, 0.007350921630859375, 0.06298828125, 0.0006513595581054688, 0.02703857421875, 0.020782470703125, 0.0643310546875, -0.0265350341796875, 0.004589080810546875, -0.0020904541015625, -0.040130615234375, 0.005107879638671875, 0.0026683807373046875, 0.029754638671875, 0.00021922588348388672, -0.10357666015625, -0.03192138671875, -0.00965118408203125, -0.03167724609375, 0.053558349609375, 0.055999755859375, -0.01947021484375, 0.0023345947265625, 0.062286376953125, -0.015167236328125, 0.0077362060546875, 0.0229339599609375, -0.0003197193145751953, -0.01148223876953125, 0.033447265625, 0.0134735107421875, -0.07476806640625, -0.0284881591796875, -0.054962158203125, 0.0262603759765625, 0.060302734375, -0.004871368408203125, 0.0312347412109375, 0.0460205078125, -0.048736572265625, 0.01352691650390625, -0.040863037109375, -0.044708251953125, 0.033477783203125, 0.0016145706176757812, -0.0014190673828125, -0.00004380941390991211, -0.035400390625, 0.019317626953125, 0.059051513671875, -0.0504150390625, 0.022247314453125, 0.01021575927734375, -0.00514984130859375, -0.06976318359375, 0.03167724609375, -0.0205078125, 0.025299072265625, -0.0162200927734375, -0.03955078125, 0.046905517578125, 0.0237274169921875, 0.0170745849609375, 0.033111572265625, 0.0059661865234375, -0.008514404296875, 0.0296478271484375, -0.0266876220703125, 0.041259765625, 0.031768798828125, -0.036773681640625, -0.040313720703125, 0.0173492431640625, 0.0047149658203125, 0.0023345947265625, 0.0195465087890625, 0.0213775634765625, 0.031402587890625, -0.0282745361328125, 0.057098388671875, 0.0546875, 0.054534912109375, -0.005794525146484375, 0.01337432861328125, 0.06036376953125, -0.00843048095703125, -0.0194854736328125, -0.02587890625, -0.0457763671875, -0.06640625, 0.012481689453125, 0.0379638671875, -0.0394287109375, -0.01153564453125, -0.109619140625, 0.01122283935546875, 0.019805908203125, -0.004726409912109375, -0.04541015625, 0.035186767578125, -0.0255584716796875, 0.045440673828125, -0.0360107421875, -0.00045871734619140625, 0.0007472038269042969, 0.00897216796875, -0.0265655517578125, -0.0030117034912109375, -0.0275115966796875, 0.01268768310546875, -0.0225067138671875, 0.00998687744140625, 0.0325927734375, -0.0296783447265625, 0.0119781494140625, -0.01349639892578125, 0.03314208984375, 0.036468505859375, 0.00267791748046875, -0.0386962890625, -0.0003979206085205078, -0.00637054443359375, 0.032867431640625, -0.040985107421875, -0.0136566162109375, -0.0489501953125, 0.00318145751953125, 0.04278564453125, -0.011688232421875, 0.01812744140625, -0.0270843505859375, -0.046875, 0.07220458984375, 0.012176513671875, -0.03570556640625, -0.005214691162109375, 0.01837158203125, -0.0241851806640625, -0.0161895751953125, -0.0010957717895507812, -0.0169677734375, 0.033599853515625, 0.023162841796875, -0.0029850006103515625, 0.0797119140625, -0.01129150390625, 0.01535797119140625, -0.0310516357421875, 0.0013179779052734375, -0.02557373046875, 0.0236968994140625, 0.016143798828125, -0.02362060546875, 0.030364990234375, 0.0289764404296875, -0.063720703125, -0.01568603515625, -0.01116943359375, 0.018280029296875, 0.02606201171875, -0.01447296142578125, -0.049163818359375, -0.05865478515625, 0.0202789306640625, -0.017181396484375, 0.021453857421875, 0.03265380859375, 0.031707763671875, -0.01345062255859375, -0.03216552734375, 0.0207977294921875, 0.0055999755859375, -0.0218963623046875, -0.006214141845703125, 0.0307159423828125, -0.003662109375, -0.02215576171875, 0.0208282470703125, -0.01873779296875, -0.01161956787109375, 0.0181121826171875, -0.00139617919921875, -0.05767822265625, -0.038787841796875, 0.036895751953125, -0.025970458984375, 0.000015854835510253906, 0.00403594970703125, 0.025909423828125, 0.0033054351806640625, 0.0305328369140625, -0.01552581787109375, -0.0352783203125, -0.0203857421875, 0.017974853515625, -0.01629638671875, 0.0094451904296875, -0.04156494140625, -0.0018129348754882812, -0.00324249267578125, 0.0129241943359375, 0.0177764892578125, 0.0290985107421875, -0.040863037109375, 0.027008056640625, 0.0121002197265625, -0.01061248779296875, 0.01180267333984375, 0.0212249755859375, 0.007720947265625, 0.053070068359375, 0.024169921875, -0.047943115234375, 0.06585693359375, -0.07708740234375, -0.007106781005859375, 0.0021991729736328125, -0.0267333984375, -0.071533203125, 0.0272979736328125, 0.0006103515625, 0.00396728515625, 0.02911376953125 ]
7138d10b096faed0295b82030b480bc660edda26
Wordpress Stackexchange Q: How to create a Wordpress plugin for another wordpress plugin? I always do changes on the Wordpress plugins for clients. But these changes are always in danger to be lost if the plugin is updated. Is there is a way to make a plugin for another plugin in Wordpress? Is there is a way to preserve the changes or re-apply it after each plugin update. A: I think best way to do this is via actions and filters, like we extend WordPress core itself. Other options is like @helgatheviking pointed, if plugin is class you can extend it. Unfortunately not all plugin developers provide useful filters and actions with their code, most often plugin isn't written in OOP manner. Only way to save your modifications on plugin update, is to create copy of original plugin, change plugin name. I usually prefix original name e.g. Mamaduka Twitter Connect, but with this solution you'll need to manually update original plugin's code. If you think that plugin needs more filters/action, you can contact the author and ask him to include those hooks into the core.
Q: How to create a Wordpress plugin for another wordpress plugin? I always do changes on the Wordpress plugins for clients. But these changes are always in danger to be lost if the plugin is updated. Is there is a way to make a plugin for another plugin in Wordpress? Is there is a way to preserve the changes or re-apply it after each plugin update. A: I think best way to do this is via actions and filters, like we extend WordPress core itself. Other options is like @helgatheviking pointed, if plugin is class you can extend it. Unfortunately not all plugin developers provide useful filters and actions with their code, most often plugin isn't written in OOP manner. Only way to save your modifications on plugin update, is to create copy of original plugin, change plugin name. I usually prefix original name e.g. Mamaduka Twitter Connect, but with this solution you'll need to manually update original plugin's code. If you think that plugin needs more filters/action, you can contact the author and ask him to include those hooks into the core. A: One simple way would be to define custom hooks within your plugin that you can hook onto. The in-built hooks system allows for you to create your own hooks and then bind onto them like normal Wordpress hooks. The Wordpress Codex has great examples and explanations of the do_action function and how you can use it to create custom hooks. A seriously overlooked feature in Wordpress by plugin and theme developers. I am a firm believer that the hooks system is all you need to develop plugins that can be extended by other plugins, but as I said seriously overlooked by 90% of all Wordpress developers. See below for an example (taken from the Wordpress Codex link provided): <?php # ======= Somewhere in a (mu-)plugin, theme or the core ======= # /** * You can have as many arguments as you want, * but your callback function and the add_action call need to agree in number of arguments. * Note: `add_action` above has 2 and 'i_am_hook' accepts 2. * You will find action hooks like these in a lot of themes & plugins and in many place @core * @see: http://codex.wordpress.org/Plugin_API/Action_Reference */ // Define the arguments for the action hook $a = array( 'eye patch' => 'yes' ,'parrot' => true ,'wooden leg' => (int) 1 ); $b = 'And hook said: "I ate ice cream with peter pan."'; // Defines the action hook named 'i_am_hook' do_action( 'i_am_hook', $a, $b ); # ======= inside for eg. your functions.php file ======= # /** * Define callback function * Inside this function you can do whatever you can imagine * with the variables that are loaded in the do_action() call above. */ function who_is_hook( $a, $b ) { echo '<code>'; print_r( $a ); // `print_r` the array data inside the 1st argument echo '</code>'; echo '<br />'.$b; // echo linebreak and value of 2nd argument } // then add it to the action hook, matching the defined number (2) of arguments in do_action // see [http://codex.wordpress.org/Function_Reference/add_action] in the Codex // add_action( $tag, $function_to_add, $priority, $accepted_args ); add_action( 'i_am_hook', 'who_is_hook', 10, 2 ); # ======= output that you see in the browser ======= # Array ( ['eye patch'] => 'yes' ['parrot'] => true ['wooden leg'] => 1 ) And hook said: "I ate ice cream with peter pan." A: FWIW, you can increase the plugin version number so that it doesn't auto update. while its not the best solution, it'll solve the immediate problem. You could also change the naming and filenames so that they aren't the "same" plugin anymore.
wordpress
{ "language": "en", "length": 610, "provenance": "stackexchange_00019.jsonl.gz:417971", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45263" }
[ 0.016998291015625, 0.0006198883056640625, 0.041412353515625, 0.0068817138671875, -0.02081298828125, 0.004840850830078125, 0.0146484375, -0.062286376953125, -0.057891845703125, 0.008148193359375, 0.0009603500366210938, 0.0338134765625, -0.0256805419921875, -0.0201416015625, 0.025604248046875, -0.055511474609375, 0.0341796875, -0.023590087890625, 0.0085601806640625, -0.0223388671875, 0.020355224609375, -0.00205230712890625, 0.0279541015625, 0.0992431640625, 0.0198211669921875, -0.044525146484375, 0.0814208984375, -0.017608642578125, 0.025909423828125, -0.0071563720703125, 0.034759521484375, -0.02789306640625, 0.02813720703125, 0.0281524658203125, -0.054718017578125, -0.031829833984375, 0.027435302734375, -0.01432037353515625, -0.03228759765625, 0.06298828125, 0.051605224609375, -0.025299072265625, 0.012420654296875, 0.03106689453125, 0.0284881591796875, -0.09051513671875, 0.09124755859375, -0.06170654296875, 0.01381683349609375, -0.038970947265625, 0.015411376953125, 0.0208587646484375, 0.0386962890625, 0.004734039306640625, -0.0232696533203125, -0.01971435546875, 0.0020160675048828125, 0.0253753662109375, 0.035186767578125, -0.0265655517578125, -0.03546142578125, -0.01995849609375, 0.030792236328125, -0.0052032470703125, 0.022796630859375, -0.01165771484375, -0.044097900390625, 0.01230621337890625, -0.02154541015625, 0.045379638671875, 0.0263824462890625, -0.05145263671875, 0.0265655517578125, 0.01873779296875, 0.0002803802490234375, -0.058013916015625, 0.048553466796875, 0.01195526123046875, 0.0025234222412109375, 0.016448974609375, 0.03851318359375, -0.0019779205322265625, 0.043212890625, -0.03558349609375, 0.00553131103515625, -0.02203369140625, -0.0079498291015625, -0.010162353515625, -0.0257415771484375, 0.0183258056640625, -0.021209716796875, -0.019989013671875, -0.0204315185546875, 0.047576904296875, 0.00681304931640625, 0.00284576416015625, -0.01702880859375, -0.0014276504516601562, -0.0088958740234375, 0.04193115234375, 0.0174560546875, -0.043548583984375, 0.07061767578125, -0.0362548828125, -0.0216522216796875, 0.031463623046875, 0.030242919921875, 0.01568603515625, 0.005462646484375, 0.0109710693359375, -0.005771636962890625, 0.044921875, -0.0115509033203125, -0.041534423828125, 0.018035888671875, 0.025390625, -0.03704833984375, 0.025482177734375, -0.0020389556884765625, -0.01062774658203125, -0.0085906982421875, -0.0103302001953125, -0.01104736328125, 0.01076507568359375, -0.00843048095703125, -0.0298919677734375, -0.01435089111328125, 0.0102996826171875, -0.01172637939453125, -0.017608642578125, -0.0504150390625, 0.03277587890625, 0.1063232421875, 0.056976318359375, 0.032562255859375, -0.0013017654418945312, 0.026123046875, 0.0021152496337890625, 0.00675201416015625, -0.0025959014892578125, 0.006740570068359375, 0.0078582763671875, 0.013275146484375, -0.0213165283203125, 0.0269012451171875, -0.01111602783203125, 0.00038170814514160156, 0.047454833984375, 0.02166748046875, 0.0031108856201171875, 0.044952392578125, -0.0236663818359375, 0.0112457275390625, -0.016571044921875, 0.07562255859375, -0.037109375, 0.051361083984375, -0.044921875, 0.03607177734375, -0.01708984375, -0.0306854248046875, -0.0026988983154296875, 0.0283050537109375, -0.034332275390625, -0.0210723876953125, 0.008026123046875, -0.01093292236328125, 0.007904052734375, 0.00970458984375, -0.04034423828125, 0.0245819091796875, 0.025146484375, 0.019134521484375, 0.0059661865234375, 0.0086517333984375, 0.0015735626220703125, -0.01255035400390625, -0.004444122314453125, 0.037200927734375, 0.04058837890625, -0.004680633544921875, -0.0093994140625, 0.06024169921875, -0.02020263671875, -0.046905517578125, 0.043914794921875, 0.000946044921875, 0.049224853515625, 0.005542755126953125, 0.0036563873291015625, 0.028411865234375, 0.01849365234375, -0.02325439453125, -0.0087127685546875, -0.041961669921875, 0.01009368896484375, 0.004352569580078125, 0.0513916015625, -0.0213775634765625, -0.0214080810546875, -0.0341796875, 0.033233642578125, -0.0416259765625, 0.0182342529296875, -0.07623291015625, -0.00968170166015625, -0.01995849609375, 0.056182861328125, 0.0200347900390625, 0.0182037353515625, 0.01163482666015625, 0.0119781494140625, 0.006343841552734375, -0.0484619140625, -0.0228729248046875, 0.0249786376953125, -0.01739501953125, -0.0086822509765625, 0.027801513671875, -0.0096282958984375, 0.0384521484375, 0.043212890625, 0.01093292236328125, -0.00704193115234375, -0.00923919677734375, -0.0302581787109375, -0.01453399658203125, -0.0247955322265625, -0.050567626953125, 0.0108642578125, -0.0545654296875, 0.03021240234375, 0.03192138671875, 0.05126953125, 0.006481170654296875, -0.01177215576171875, -0.01357269287109375, -0.0697021484375, 0.005584716796875, 0.041351318359375, 0.029449462890625, 0.0072784423828125, -0.0005655288696289062, 0.029144287109375, 0.00482940673828125, -0.038177490234375, 0.020660400390625, 0.0174102783203125, 0.017486572265625, 0.025909423828125, 0.0088043212890625, -0.004467010498046875, 0.0237579345703125, -0.046844482421875, 0.0242462158203125, 0.03271484375, -0.0190582275390625, -0.033294677734375, -0.03314208984375, -0.020416259765625, 0.0187225341796875, -0.08612060546875, -0.06036376953125, -0.00616455078125, 0.028717041015625, 0.0219268798828125, 0.04095458984375, 0.030731201171875, 0.0008993148803710938, 0.0037364959716796875, 0.0002601146697998047, -0.022674560546875, 0.01213836669921875, 0.0281829833984375, 0.00970458984375, 0.0303192138671875, -0.039154052734375, -0.006488800048828125, 0.036407470703125, 0.033538818359375, -0.0068206787109375, -0.0019512176513671875, -0.024505615234375, -0.0142059326171875, 0.0223846435546875, -0.01090240478515625, 0.006290435791015625, -0.0157928466796875, -0.0234832763671875, -0.0167694091796875, 0.0224761962890625, -0.0204620361328125, -0.04986572265625, 0.0178985595703125, 0.004924774169921875, -0.034820556640625, 0.00447845458984375, -0.034759521484375, 0.0306549072265625, -0.027801513671875, 0.04058837890625, 0.0621337890625, -0.00832366943359375, 0.00690460205078125, -0.00754547119140625, -0.01306915283203125, 0.00815582275390625, -0.016998291015625, -0.02044677734375, 0.0004093647003173828, -0.0494384765625, 0.0091552734375, 0.01727294921875, 0.057525634765625, -0.01059722900390625, -0.043914794921875, -0.01800537109375, 0.039794921875, -0.0181884765625, 0.0189056396484375, -0.00305938720703125, -0.0450439453125, 0.02117919921875, -0.0150909423828125, -0.0211181640625, -0.00899505615234375, 0.02288818359375, 0.0149383544921875, 0.008544921875, -0.064453125, -0.018218994140625, -0.07470703125, -0.06683349609375, -0.024627685546875, 0.0328369140625, 0.0026798248291015625, 0.00894927978515625, 0.0289306640625, -0.0005321502685546875, -0.06353759765625, -0.010467529296875, 0.0199432373046875, -0.0124359130859375, 0.0029544830322265625, 0.0167999267578125, -0.041015625, -0.00928497314453125, 0.00238800048828125, 0.0714111328125, 0.02374267578125, -0.0287933349609375, 0.001857757568359375, -0.0253143310546875, -0.0269775390625, 0.01503753662109375, -0.0006589889526367188, -0.0039043426513671875, 0.0162353515625, 0.0340576171875, -0.032806396484375, -0.016876220703125, 0.0165252685546875, -0.0270843505859375, 0.025177001953125, -0.0171966552734375, -0.022003173828125, 0.0123291015625, 0.0222930908203125, 0.005458831787109375, 0.01143646240234375, 0.01461029052734375, -0.0224151611328125, 0.037322998046875, -0.0032749176025390625, 0.0041656494140625, -0.0276947021484375, 0.0201263427734375, -0.0261383056640625, -0.040130615234375, -0.027496337890625, 0.00377655029296875, -0.01312255859375, 0.0225067138671875, -0.01407623291015625, -0.0177764892578125, 0.030609130859375, -0.046966552734375, 0.0017299652099609375, -0.03985595703125, -0.0045318603515625, -0.017822265625, 0.062225341796875, -0.07086181640625, -0.020782470703125, 0.00372314453125, 0.023345947265625, -0.005786895751953125, -0.007724761962890625, -0.026824951171875, -0.03692626953125, -0.050384521484375, -0.01377105712890625, 0.00832366943359375, -0.04718017578125, 0.016082763671875, 0.032958984375, -0.0066070556640625, -0.0285797119140625, -0.0006155967712402344, -0.05859375, 0.00875091552734375, -0.0244903564453125, -0.0249176025390625, -0.0389404296875, 0.010101318359375, -0.0482177734375, -0.0309600830078125, 0.01253509521484375, -0.0731201171875, 0.0152435302734375, 0.0465087890625, 0.004505157470703125, 0.0202484130859375, 0.0247650146484375, -0.0245819091796875, 0.059967041015625, -0.0165863037109375, 0.019439697265625, 0.0017747879028320312, 0.01439666748046875, 0.017333984375, -0.01543426513671875, -0.0265960693359375, -0.039337158203125, -0.0203094482421875, 0.005977630615234375, -0.0235595703125, -0.019561767578125, -0.0299072265625, -0.004180908203125, -0.047393798828125, -0.03106689453125, -0.01424407958984375, -0.030029296875, 0.00042128562927246094, -0.0216827392578125, 0.009796142578125, -0.0260162353515625, 0.022705078125, -0.01467132568359375, -0.0030384063720703125, 0.0191802978515625, 0.1114501953125, 0.01367950439453125, -0.001155853271484375, -0.07421875, -0.006595611572265625, 0.021453857421875, 0.044708251953125, 0.01108551025390625, -0.002155303955078125, -0.0093994140625, -0.001171112060546875, 0.0131072998046875, -0.0173187255859375, 0.0294189453125, 0.00768280029296875, 0.0187530517578125, -0.03448486328125, -0.00417327880859375, 0.0032291412353515625, -0.0002739429473876953, -0.006866455078125, -0.044189453125, 0.0035533905029296875, -0.020538330078125, 0.0184173583984375, 0.0079498291015625, 0.03546142578125, -0.031097412109375, -0.0572509765625, 0.0244293212890625, -0.020599365234375, 0.0028591156005859375, 0.01451873779296875, -0.01432037353515625, 0.006816864013671875, -0.0243988037109375, 0.002376556396484375, 0.015716552734375, 0.004314422607421875, -0.00438690185546875, 0.03662109375, 0.00208282470703125, -0.0200653076171875, 0.00537109375, -0.0136871337890625, 0.0704345703125, -0.00035881996154785156, -0.035736083984375, -0.01186370849609375, -0.0235748291015625, -0.019500732421875, 0.01508331298828125, -0.039276123046875, 0.0228271484375, 0.039215087890625, -0.015777587890625, 0.0120697021484375, -0.0256805419921875, -0.01422882080078125, -0.0279388427734375, -0.02728271484375, -0.019256591796875, -0.00704193115234375, 0.0217437744140625, 0.02679443359375, -0.016845703125, 0.031707763671875, -0.01186370849609375, 0.0662841796875, 0.017791748046875, 0.00914764404296875, 0.01163482666015625, 0.0001747608184814453, 0.017059326171875, -0.05267333984375, -0.047119140625, -0.02032470703125, 0.0009350776672363281, 0.006145477294921875, 0.0110015869140625, 0.000012636184692382812, -0.006809234619140625, 0.04974365234375, -0.006732940673828125, -0.0115203857421875, -0.0079193115234375, 0.0239410400390625, 0.020111083984375, -0.01194000244140625, 0.02154541015625, 0.02716064453125, 0.0291595458984375, 0.01439666748046875, -0.035125732421875, -0.0193328857421875, -0.0254669189453125, -0.0209808349609375, -0.045928955078125, 0.00949859619140625, 0.01142120361328125, 0.01018524169921875, -0.0238800048828125, -0.028350830078125, -0.0374755859375, -0.01092529296875, -0.0221099853515625, 0.00807952880859375, 0.048675537109375, -0.025848388671875, 0.032562255859375, -0.0340576171875, 0.0142974853515625, 0.0214996337890625, -0.0025196075439453125, 0.07745361328125, 0.033660888671875, -0.049713134765625, -0.006404876708984375, -0.040924072265625, -0.0330810546875, -0.04974365234375, -0.0382080078125, -0.0618896484375, 0.00736236572265625, 0.019134521484375, 0.0271148681640625, -0.0063629150390625, -0.007415771484375, 0.0035037994384765625, 0.0143585205078125, -0.0042266845703125, 0.0233612060546875, -0.027801513671875, 0.05084228515625, 0.034576416015625, 0.06268310546875, 0.00490570068359375, 0.0102996826171875, -0.024078369140625, -0.021453857421875, -0.019561767578125, -0.035003662109375, -0.016998291015625, -0.00572967529296875, -0.00592803955078125, 0.045379638671875, 0.0660400390625, 0.006557464599609375, 0.0200653076171875, -0.023529052734375, -0.01012420654296875, -0.00460052490234375, 0.03546142578125, -0.0180816650390625, -0.02264404296875, 0.055572509765625, -0.04827880859375, -0.00948333740234375, -0.01421356201171875, 0.0047149658203125, 0.0235748291015625, -0.031585693359375, 0.00981903076171875, 0.036590576171875, -0.02874755859375, 0.041778564453125, -0.006511688232421875, -0.03509521484375, 0.0150146484375, 0.01474761962890625, 0.003875732421875, 0.0165863037109375, -0.010009765625, 0.0142822265625, 0.034271240234375, 0.07073974609375, 0.003509521484375, -0.0166778564453125, 0.042144775390625, -0.0306549072265625, 0.00916290283203125, 0.0137786865234375, 0.045196533203125, -0.078857421875, 0.04046630859375, 0.012481689453125, 0.0213470458984375, 0.02294921875, 0.0164031982421875, -0.019500732421875, -0.035919189453125, 0.01666259765625, -0.0009207725524902344, -0.0022106170654296875, 0.0156402587890625, 0.01128387451171875, -0.03692626953125, -0.01462554931640625, 0.0206146240234375, 0.0270233154296875, 0.0100860595703125, 0.0257568359375, -0.019012451171875, 0.028594970703125, -0.01953125, -0.005039215087890625, 0.02740478515625, -0.025543212890625, -0.033935546875, 0.041778564453125, -0.0196075439453125, 0.0223236083984375, -0.0098876953125, -0.00928497314453125, 0.05609130859375, 0.0306549072265625, -0.00933074951171875, -0.01050567626953125, 0.005321502685546875, 0.045562744140625, -0.003116607666015625, -0.0193634033203125, -0.01230621337890625, 0.0164031982421875, -0.0299530029296875, -0.0014486312866210938, -0.031341552734375, 0.004940032958984375, -0.0213775634765625, -0.005950927734375, 0.07342529296875, 0.00032019615173339844, -0.0212860107421875, 0.042236328125, 0.02166748046875, -0.037506103515625, -0.0282440185546875, -0.01483917236328125, -0.076416015625, -0.0241546630859375, -0.031494140625, -0.01763916015625, 0.0360107421875, -0.0169525146484375, -0.0880126953125, 0.146240234375, 0.01373291015625, 0.034027099609375, -0.01189422607421875, 0.06036376953125, -0.049163818359375, 0.0079193115234375, -0.0177764892578125, 0.03375244140625, -0.0267181396484375, 0.0208740234375, -0.028289794921875, 0.005657196044921875, -0.00007605552673339844, 0.0179443359375, 0.050018310546875, 0.019927978515625, -0.034515380859375, -0.033416748046875, 0.007587432861328125, 0.01395416259765625, -0.019439697265625, 0.05145263671875, 0.01239013671875, -0.035308837890625, 0.0233001708984375, 0.009429931640625, 0.044403076171875, -0.04364013671875, 0.01438140869140625, 0.026947021484375, -0.007450103759765625, -0.027008056640625, -0.0035228729248046875, 0.005420684814453125, 0.0166015625, -0.0191802978515625, -0.032379150390625, 0.010772705078125, 0.017852783203125, -0.007904052734375, -0.0225982666015625, 0.041259765625, 0.029754638671875, -0.004375457763671875, 0.0201416015625, -0.01824951171875, 0.01617431640625, 0.0196380615234375, 0.004608154296875, 0.0221099853515625, -0.006103515625, 0.00201416015625, 0.02386474609375, -0.0174560546875, 0.024993896484375, -0.01387786865234375, 0.01041412353515625, -0.048492431640625, -0.00994873046875, 0.02154541015625, 0.0266571044921875, -0.025177001953125, -0.04180908203125, 0.005641937255859375, 0.007801055908203125, 0.011566162109375, -0.004215240478515625, 0.0003509521484375, -0.043853759765625, 0.01349639892578125, -0.020172119140625, 0.010467529296875, 0.0338134765625, 0.00830078125, 0.0026988983154296875, -0.005512237548828125, -0.024078369140625, 0.0146331787109375, -0.0313720703125, 0.0185394287109375, 0.0134124755859375, 0.022369384765625, -0.0156097412109375, 0.083740234375, 0.011627197265625, -0.0100250244140625, 0.002758026123046875, 0.04827880859375, 0.008148193359375, 0.0017805099487304688, -0.0267791748046875, -0.06512451171875, 0.025054931640625, 0.0341796875, -0.00981903076171875, 0.036712646484375, 0.0396728515625, 0.04693603515625, -0.0215301513671875, -0.0195159912109375, 0.03253173828125, -0.0222930908203125, 0.0413818359375, -0.0322265625, 0.030059814453125, 0.004367828369140625, -0.00890350341796875, -0.0286712646484375, -0.00131988525390625, 0.06109619140625, -0.032073974609375, 0.0311431884765625, -0.0139312744140625, -0.030181884765625, 0.0567626953125, -0.03594970703125, 0.06463623046875, -0.0229644775390625, -0.06304931640625, 0.001964569091796875, -0.047515869140625, -0.041107177734375, 0.02008056640625, 0.03167724609375, -0.035247802734375, 0.04345703125, 0.0210418701171875, -0.00762939453125, 0.0261993408203125, -0.014892578125, 0.01763916015625, -0.005626678466796875, 0.00501251220703125, 0.01238250732421875, -0.058197021484375, -0.03558349609375, -0.049346923828125, 0.0572509765625, 0.054229736328125, 0.0411376953125, -0.01404571533203125, 0.05267333984375, -0.002410888671875, -0.02069091796875, -0.0189208984375, -0.00821685791015625, 0.002750396728515625, -0.0278167724609375, -0.028778076171875, 0.01160430908203125, -0.032867431640625, -0.00408935546875, 0.031982421875, -0.03485107421875, -0.021881103515625, -0.00727081298828125, 0.0284271240234375, 0.011932373046875, 0.024017333984375, -0.0169830322265625, -0.037750244140625, 0.00010484457015991211, 0.01450347900390625, -0.008087158203125, 0.01067352294921875, -0.0079498291015625, -0.005046844482421875, 0.0007266998291015625, -0.0123443603515625, -0.0048370361328125, 0.02685546875, -0.028656005859375, 0.0197601318359375, -0.01165008544921875, -0.07293701171875, -0.0078125, -0.01873779296875, -0.019287109375, -0.003353118896484375, 0.101318359375, -0.040863037109375, -0.046722412109375, 0.0207061767578125, 0.00847625732421875, 0.0297393798828125, -0.037384033203125, 0.025665283203125, 0.0171661376953125, 0.0130767822265625, 0.01806640625, -0.07476806640625, -0.058624267578125, -0.07977294921875, 0.032012939453125, 0.04254150390625, -0.01324462890625, -0.044342041015625, -0.06219482421875, 0.0048675537109375, 0.03948974609375, 0.0312347412109375, -0.09112548828125, 0.057647705078125, -0.0233001708984375, 0.0133514404296875, 0.00017690658569335938, -0.0537109375, -0.0023403167724609375, 0.025848388671875, 0.006656646728515625, -0.057220458984375, -0.0560302734375, 0.03424072265625, -0.056488037109375, 0.037567138671875, 0.0391845703125, -0.043670654296875, -0.01708984375, 0.07415771484375, 0.06597900390625, 0.10064697265625, 0.01546478271484375, -0.0062408447265625, 0.0214385986328125, -0.0236358642578125, -0.0258941650390625, -0.03338623046875, 0.03558349609375, -0.0732421875, -0.05108642578125, -0.0233001708984375, 0.0038051605224609375, -0.0021915435791015625, -0.035888671875, -0.04461669921875, 0.039154052734375, -0.004741668701171875, -0.026397705078125, -0.07757568359375, 0.0027523040771484375, -0.00022268295288085938, -0.0091705322265625, -0.043731689453125, 0.01161956787109375, -0.03594970703125, 0.049957275390625, 0.00977325439453125, 0.035003662109375, -0.0182037353515625, 0.0174713134765625, 0.01474761962890625, 0.038665771484375, 0.027862548828125, -0.0087432861328125, -0.02532958984375, -0.0208587646484375, 0.02166748046875, 0.0251312255859375, -0.018646240234375, -0.021240234375, 0.0271453857421875, -0.01432037353515625, 0.0015115737915039062, -0.04718017578125, -0.0272369384765625, -0.00504302978515625, 0.059051513671875, 0.045654296875, 0.01180267333984375, -0.03924560546875, 0.01076507568359375, -0.0257720947265625, -0.0244140625, 0.01543426513671875, 0.01363372802734375, -0.044036865234375, 0.01465606689453125, 0.0244293212890625, -0.0004291534423828125, 0.000946044921875, 0.01035308837890625, -0.0025959014892578125, -0.0198516845703125, 0.0180511474609375, -0.01172637939453125, -0.03692626953125, 0.00061798095703125, 0.0799560546875, -0.0259552001953125, 0.0557861328125, -0.00408935546875, -0.002178192138671875, 0.076416015625, 0.03363037109375, 0.037628173828125, 0.003314971923828125, -0.032806396484375, 0.0269927978515625, 0.01251983642578125, -0.00440216064453125, -0.0174713134765625, -0.046844482421875, -0.035491943359375, 0.021240234375, 0.0199127197265625, 0.00439453125, -0.03741455078125, 0.0528564453125, 0.050628662109375, 0.050018310546875, 0.00025081634521484375, -0.05267333984375, -0.0428466796875, 0.045379638671875, -0.00983428955078125, -0.023956298828125, 0.0015201568603515625, -0.036285400390625, 0.01398468017578125, 0.020782470703125, 0.020111083984375, -0.0204315185546875, 0.05108642578125, 0.0159912109375, 0.005184173583984375, 0.02911376953125 ]
d028bba4d0b4ffa54920201a4f702fc5619bb357
Wordpress Stackexchange Q: What is the advantage of using wp_mail? What is the advantage of using wp_mail() over mail(). Codex says they're similar, but they seem to be very similar. A: wp_mail() is a pluggable function: It can be replaced by plugins. That’s useful in cases where the regular mail() doesn’t work (good enough), for example when you need extra authentication details. Example: WP Mail SMTP wp_mail() uses PHPMailer by default, a sophisticated PHP class which offers a lot of useful preprocessing and workarounds for cases where mail() is too simple (UTF-8 encoded subject lines, attachments and so on). Just take a look at the bug tracker to get an idea about the complexity of these tasks. wp_mail offers some hooks for other plugins to change different values: * *'wp_mail' *'wp_mail_from' *'wp_mail_from_name' use case *'wp_mail_content_type' *'wp_mail_charset' *'phpmailer_init' (an action) In short: Use wp_mail() for interoperability.
Q: What is the advantage of using wp_mail? What is the advantage of using wp_mail() over mail(). Codex says they're similar, but they seem to be very similar. A: wp_mail() is a pluggable function: It can be replaced by plugins. That’s useful in cases where the regular mail() doesn’t work (good enough), for example when you need extra authentication details. Example: WP Mail SMTP wp_mail() uses PHPMailer by default, a sophisticated PHP class which offers a lot of useful preprocessing and workarounds for cases where mail() is too simple (UTF-8 encoded subject lines, attachments and so on). Just take a look at the bug tracker to get an idea about the complexity of these tasks. wp_mail offers some hooks for other plugins to change different values: * *'wp_mail' *'wp_mail_from' *'wp_mail_from_name' use case *'wp_mail_content_type' *'wp_mail_charset' *'phpmailer_init' (an action) In short: Use wp_mail() for interoperability.
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:417979", "question_score": "24", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45289" }
[ 0.04296875, -0.02001953125, -0.035308837890625, -0.050628662109375, 0.0035400390625, -0.038360595703125, 0.02032470703125, -0.00186920166015625, 0.0061798095703125, 0.0280609130859375, 0.020782470703125, -0.0010929107666015625, -0.006412506103515625, -0.041046142578125, -0.0009255409240722656, -0.0017538070678710938, 0.013671875, 0.01103973388671875, -0.01508331298828125, -0.0193023681640625, 0.0242767333984375, -0.004547119140625, -0.059417724609375, 0.06939697265625, -0.01430511474609375, 0.0018863677978515625, 0.055145263671875, -0.025360107421875, -0.0250701904296875, -0.046417236328125, -0.012054443359375, 0.0302734375, 0.022979736328125, 0.01331329345703125, -0.037750244140625, -0.03594970703125, 0.007091522216796875, -0.0042724609375, -0.001819610595703125, 0.037078857421875, 0.005222320556640625, 0.004535675048828125, 0.060791015625, -0.0438232421875, 0.00537872314453125, 0.006290435791015625, 0.003978729248046875, -0.0311126708984375, -0.0020313262939453125, 0.00225067138671875, 0.0159759521484375, 0.0031681060791015625, 0.032684326171875, 0.0008111000061035156, -0.01151275634765625, -0.01535797119140625, -0.04541015625, 0.05535888671875, 0.01134490966796875, -0.0243682861328125, -0.03192138671875, 0.02838134765625, 0.0253753662109375, 0.0193023681640625, 0.009735107421875, 0.007404327392578125, 0.0227508544921875, 0.01383209228515625, -0.0183868408203125, -0.005401611328125, 0.00795745849609375, -0.0239715576171875, -0.00927734375, -0.03680419921875, -0.01580810546875, 0.043182373046875, 0.00998687744140625, 0.01297760009765625, 0.00962066650390625, -0.016845703125, -0.047271728515625, -0.044342041015625, -0.076171875, -0.04644775390625, 0.02752685546875, -0.014129638671875, -0.0123443603515625, 0.01207733154296875, -0.0201873779296875, -0.03533935546875, -0.022216796875, -0.0074462890625, -0.0265350341796875, -0.030242919921875, -0.0266876220703125, -0.037139892578125, -0.0134124755859375, -0.0029735565185546875, -0.0158233642578125, 0.0009179115295410156, 0.00475311279296875, -0.0290069580078125, 0.0102081298828125, -0.0081787109375, -0.0016336441040039062, 0.0836181640625, 0.005100250244140625, -0.004779815673828125, -0.01255035400390625, -0.01374053955078125, 0.009552001953125, -0.04083251953125, 0.0034542083740234375, -0.052398681640625, 0.02227783203125, 0.01776123046875, -0.0195770263671875, 0.06243896484375, 0.032135009765625, 0.0239410400390625, 0.01085662841796875, 0.026275634765625, 0.0278778076171875, -0.044189453125, -0.00826263427734375, -0.0291290283203125, -0.034393310546875, -0.0298004150390625, -0.0007200241088867188, 0.02880859375, -0.0274658203125, 0.007160186767578125, 0.0284271240234375, 0.01032257080078125, -0.004505157470703125, -0.0190277099609375, -0.0080413818359375, 0.041778564453125, 0.01314544677734375, 0.009735107421875, 0.0273590087890625, -0.030059814453125, 0.01007843017578125, 0.0244293212890625, 0.00376129150390625, 0.0126800537109375, 0.01140594482421875, 0.01157379150390625, 0.00347900390625, -0.0242156982421875, -0.00681304931640625, 0.0200042724609375, -0.01367950439453125, 0.0225372314453125, 0.0232391357421875, 0.037811279296875, -0.036895751953125, 0.02197265625, 0.0007023811340332031, 0.0343017578125, 0.019744873046875, -0.02496337890625, -0.0095367431640625, -0.0268096923828125, -0.05584716796875, 0.04144287109375, -0.036529541015625, -0.0200347900390625, 0.0165863037109375, -0.04052734375, 0.040618896484375, -0.0085906982421875, 0.016571044921875, 0.001491546630859375, 0.01202392578125, -0.0027141571044921875, -0.021759033203125, 0.04913330078125, 0.038848876953125, -0.01401519775390625, -0.00959014892578125, -0.0266571044921875, 0.08477783203125, -0.020843505859375, -0.01299285888671875, -0.001216888427734375, 0.0202178955078125, 0.0216217041015625, -0.01318359375, 0.032623291015625, 0.0229034423828125, 0.030548095703125, 0.01165771484375, 0.03570556640625, -0.0134124755859375, -0.061737060546875, -0.01273345947265625, -0.01136016845703125, -0.0228271484375, -0.0034198760986328125, 0.044342041015625, 0.005283355712890625, 0.022003173828125, -0.0267333984375, -0.05621337890625, 0.019012451171875, -0.02197265625, 0.0289154052734375, -0.04486083984375, -0.0164031982421875, 0.0270843505859375, -0.00771331787109375, -0.0135498046875, -0.0283355712890625, -0.025482177734375, 0.00513458251953125, -0.0279388427734375, 0.060638427734375, 0.004955291748046875, 0.06903076171875, -0.0038280487060546875, -0.043914794921875, 0.00250244140625, -0.036956787109375, 0.0023250579833984375, 0.00872802734375, -0.0188446044921875, 0.00664520263671875, -0.0015077590942382812, 0.025848388671875, 0.006275177001953125, 0.0283660888671875, 0.021820068359375, 0.03912353515625, -0.006816864013671875, -0.007534027099609375, -0.0097808837890625, -0.0709228515625, 0.010498046875, 0.0582275390625, 0.036407470703125, 0.04364013671875, -0.007457733154296875, -0.0184173583984375, 0.06451416015625, -0.029327392578125, 0.0106353759765625, -0.0189666748046875, -0.002819061279296875, 0.033599853515625, -0.005687713623046875, 0.01348876953125, 0.01329803466796875, -0.017333984375, -0.0225830078125, 0.0396728515625, 0.043731689453125, 0.0223541259765625, 0.0036678314208984375, 0.040252685546875, -0.0223388671875, 0.02667236328125, -0.003849029541015625, 0.00749969482421875, -0.01384735107421875, -0.00878143310546875, 0.01141357421875, 0.00963592529296875, -0.01788330078125, -0.0196075439453125, 0.0245208740234375, 0.0141754150390625, 0.0164031982421875, 0.062469482421875, 0.0165252685546875, 0.048492431640625, -0.0197601318359375, -0.050628662109375, 0.030517578125, 0.047576904296875, -0.059814453125, -0.019744873046875, -0.0110015869140625, -0.01629638671875, -0.01404571533203125, 0.01003265380859375, 0.0362548828125, -0.031494140625, 0.01551055908203125, 0.00731658935546875, 0.0440673828125, 0.0070037841796875, -0.039276123046875, 0.033050537109375, -0.0028553009033203125, -0.035614013671875, -0.047943115234375, -0.016357421875, 0.01404571533203125, -0.0208740234375, 0.024383544921875, 0.0484619140625, 0.00994873046875, -0.00844573974609375, -0.00391387939453125, -0.04827880859375, -0.02239990234375, 0.026275634765625, -0.01393890380859375, -0.042266845703125, -0.0309600830078125, 0.03704833984375, 0.0160064697265625, 0.0016012191772460938, -0.0203399658203125, -0.039276123046875, -0.0367431640625, -0.01163482666015625, -0.1033935546875, -0.055938720703125, -0.044281005859375, -0.09539794921875, -0.008880615234375, -0.01236724853515625, -0.038238525390625, 0.0240631103515625, -0.00004297494888305664, 0.0165557861328125, 0.0022792816162109375, -0.0231170654296875, -0.05426025390625, -0.050384521484375, -0.0758056640625, -0.01198577880859375, 0.001499176025390625, 0.0248260498046875, 0.01190948486328125, 0.0207977294921875, 0.0010175704956054688, -0.033447265625, -0.0081024169921875, 0.02325439453125, -0.01009368896484375, -0.021026611328125, 0.007717132568359375, -0.0279541015625, -0.021240234375, 0.001796722412109375, -0.013671875, -0.0224456787109375, 0.02886962890625, -0.033660888671875, -0.014312744140625, -0.00958251953125, 0.0293426513671875, -0.0177001953125, -0.01275634765625, 0.024017333984375, 0.0155792236328125, -0.03741455078125, 0.026031494140625, 0.0008821487426757812, -0.0197296142578125, -0.0003998279571533203, 0.00235748291015625, -0.005939483642578125, 0.0178375244140625, -0.0198516845703125, 0.0179595947265625, 0.0042266845703125, 0.0030269622802734375, -0.03216552734375, 0.09893798828125, 0.00942230224609375, 0.02880859375, -0.04193115234375, -0.01454925537109375, -0.0345458984375, -0.0003612041473388672, -0.0265045166015625, 0.01432037353515625, -0.00789642333984375, 0.039794921875, -0.0217437744140625, -0.07818603515625, 0.051971435546875, -0.05157470703125, -0.0196075439453125, -0.04168701171875, -0.006458282470703125, 0.00130462646484375, 0.09539794921875, 0.0296173095703125, -0.0171661376953125, -0.00970458984375, 0.004451751708984375, -0.039886474609375, 0.00249481201171875, -0.0164031982421875, -0.0008144378662109375, 0.0037288665771484375, 0.032501220703125, -0.0093994140625, 0.023345947265625, -0.0255584716796875, 0.02557373046875, 0.0276031494140625, -0.0292510986328125, 0.0155029296875, 0.019256591796875, -0.0067901611328125, -0.00785064697265625, -0.0159912109375, -0.033538818359375, 0.024627685546875, -0.0186920166015625, -0.02081298828125, 0.00734710693359375, -0.0026226043701171875, 0.0036029815673828125, -0.00803375244140625, 0.00949859619140625, -0.01776123046875, -0.001216888427734375, 0.0103302001953125, 0.020782470703125, -0.0019464492797851562, -0.0190887451171875, 0.035400390625, 0.030059814453125, 0.017303466796875, 0.0178680419921875, 0.02008056640625, -0.039154052734375, -0.0894775390625, -0.01453399658203125, -0.020538330078125, 0.052398681640625, 0.01430511474609375, -0.03570556640625, -0.0023822784423828125, -0.0304107666015625, -0.060882568359375, 0.00919342041015625, -0.0303955078125, -0.00463104248046875, -0.0411376953125, -0.028411865234375, 0.0684814453125, 0.004863739013671875, -0.020355224609375, -0.01165008544921875, 0.0958251953125, 0.0177459716796875, -0.03289794921875, -0.0305633544921875, 0.0018587112426757812, 0.030670166015625, 0.013336181640625, 0.01419830322265625, 0.0072174072265625, -0.03289794921875, 0.042572021484375, 0.022674560546875, 0.0028743743896484375, -0.02606201171875, 0.05743408203125, 0.01457977294921875, 0.01024627685546875, -0.007038116455078125, -0.004993438720703125, 0.0260467529296875, 0.03790283203125, 0.004642486572265625, -0.021636962890625, 0.025604248046875, 0.032318115234375, -0.024688720703125, 0.009521484375, -0.038299560546875, -0.0228271484375, 0.0230865478515625, -0.015838623046875, 0.004901885986328125, 0.0154571533203125, -0.0085601806640625, -0.0231781005859375, -0.01520538330078125, 0.0205841064453125, 0.024688720703125, -0.000560760498046875, 0.01157379150390625, 0.02093505859375, 0.04632568359375, 0.0176239013671875, -0.001068115234375, -0.009124755859375, 0.05010986328125, 0.0293426513671875, 0.01055145263671875, -0.058135986328125, -0.00855255126953125, 0.003978729248046875, -0.0379638671875, -0.035614013671875, 0.052642822265625, 0.00848388671875, -0.023712158203125, -0.0192108154296875, -0.056304931640625, -0.016265869140625, -0.06927490234375, 0.002201080322265625, 0.007137298583984375, -0.0250396728515625, 0.0244293212890625, 0.0274658203125, -0.052093505859375, 0.037933349609375, 0.01235198974609375, 0.017425537109375, 0.06787109375, 0.018096923828125, 0.00809478759765625, -0.003955841064453125, -0.007778167724609375, -0.0009775161743164062, 0.033935546875, -0.030487060546875, -0.0235595703125, 0.00159454345703125, 0.007537841796875, -0.00716400146484375, 0.0059356689453125, 0.034515380859375, 0.034027099609375, -0.02728271484375, 0.03759765625, 0.055938720703125, -0.00440216064453125, -0.0225677490234375, -0.0290069580078125, 0.00383758544921875, 0.0190582275390625, 0.0020294189453125, 0.031341552734375, 0.00940704345703125, 0.037078857421875, -0.029876708984375, 0.01081085205078125, -0.014495849609375, -0.0048065185546875, 0.0281219482421875, 0.0043792724609375, -0.00365447998046875, -0.061248779296875, -0.02728271484375, -0.0196380615234375, 0.01317596435546875, 0.0677490234375, -0.007778167724609375, 0.00634765625, -0.025115966796875, -0.00482177734375, -0.0667724609375, 0.02191162109375, 0.0178985595703125, 0.0070953369140625, -0.04364013671875, 0.01198577880859375, -0.05340576171875, -0.01141357421875, -0.07830810546875, -0.060882568359375, -0.041412353515625, -0.0026645660400390625, -0.0011835098266601562, 0.0018329620361328125, -0.012054443359375, -0.0186309814453125, -0.027008056640625, 0.0188751220703125, 0.0159149169921875, 0.0196075439453125, -0.00356292724609375, 0.01885986328125, 0.015716552734375, 0.0242767333984375, 0.0026111602783203125, -0.00475311279296875, -0.005313873291015625, -0.0156707763671875, -0.005641937255859375, -0.06048583984375, 0.01163482666015625, -0.0297698974609375, 0.02056884765625, 0.01025390625, 0.0061492919921875, 0.0044708251953125, 0.00928497314453125, -0.0246124267578125, 0.0009303092956542969, -0.0258026123046875, 0.039276123046875, -0.034912109375, 0.02301025390625, -0.031585693359375, 0.01485443115234375, 0.0302734375, -0.04571533203125, -0.029693603515625, 0.0211944580078125, 0.00701141357421875, 0.01470947265625, -0.00492095947265625, -0.00366973876953125, 0.038909912109375, 0.03948974609375, -0.01041412353515625, 0.0207366943359375, 0.0170135498046875, 0.00830078125, -0.00858306884765625, 0.006992340087890625, -0.01751708984375, -0.03131103515625, 0.07464599609375, 0.0251617431640625, -0.0232696533203125, 0.059814453125, -0.0252838134765625, 0.03277587890625, 0.05682373046875, 0.12548828125, -0.0660400390625, 0.0141754150390625, 0.043182373046875, -0.029327392578125, 0.005126953125, 0.0015878677368164062, -0.032073974609375, -0.047698974609375, 0.0703125, -0.039459228515625, -0.00684356689453125, 0.0215911865234375, -0.031982421875, -0.00881195068359375, -0.0095672607421875, 0.0396728515625, 0.020965576171875, -0.0281982421875, 0.0176544189453125, 0.035888671875, 0.00434112548828125, -0.01031494140625, -0.0110321044921875, 0.00785064697265625, -0.04925537109375, -0.0791015625, -0.05010986328125, -0.006946563720703125, -0.0216064453125, -0.035675048828125, -0.01538848876953125, 0.048004150390625, 0.045562744140625, -0.00757598876953125, -0.0096435546875, 0.0137786865234375, 0.030242919921875, -0.020843505859375, -0.0301055908203125, 0.025054931640625, 0.051910400390625, -0.039276123046875, 0.039154052734375, 0.00902557373046875, -0.0290374755859375, 0.0074920654296875, 0.041168212890625, 0.063232421875, -0.00952911376953125, -0.028350830078125, 0.047637939453125, -0.0048065185546875, -0.025238037109375, -0.01441192626953125, 0.0252838134765625, -0.036956787109375, -0.006072998046875, -0.01201629638671875, -0.0394287109375, -0.015899658203125, -0.0341796875, -0.05584716796875, 0.1204833984375, -0.01513671875, 0.034423828125, 0.054412841796875, 0.0210418701171875, -0.036834716796875, 0.002197265625, -0.007965087890625, 0.0111541748046875, -0.0352783203125, 0.026580810546875, -0.0103759765625, 0.0176849365234375, -0.005313873291015625, -0.0008893013000488281, 0.08392333984375, 0.0185546875, -0.0005707740783691406, -0.0003902912139892578, 0.069580078125, 0.048553466796875, -0.01141357421875, -0.0163421630859375, 0.0311279296875, 0.04296875, 0.07611083984375, -0.0277252197265625, 0.0217132568359375, 0.02056884765625, 0.02020263671875, 0.05181884765625, -0.00815582275390625, -0.032958984375, -0.00489044189453125, 0.0005788803100585938, -0.03753662109375, -0.0092315673828125, 0.0106658935546875, -0.005840301513671875, -0.0126953125, 0.029632568359375, -0.01132965087890625, -0.0003097057342529297, 0.0117034912109375, -0.0279998779296875, 0.034881591796875, -0.02447509765625, 0.041778564453125, 0.040496826171875, 0.01010894775390625, 0.07720947265625, 0.0006279945373535156, 0.027130126953125, 0.0180816650390625, -0.0134429931640625, 0.007701873779296875, -0.03558349609375, -0.007106781005859375, -0.08721923828125, -0.0233917236328125, 0.047943115234375, 0.017608642578125, -0.0228118896484375, -0.036895751953125, -0.009429931640625, -0.033355712890625, 0.0197296142578125, -0.0282440185546875, 0.0005860328674316406, -0.045654296875, -0.0654296875, -0.033233642578125, -0.01218414306640625, 0.037750244140625, 0.0085906982421875, -0.0019426345825195312, -0.01007843017578125, -0.0025634765625, -0.0221405029296875, -0.0109100341796875, 0.0302886962890625, 0.0082244873046875, -0.0097808837890625, -0.0275421142578125, 0.040985107421875, 0.010833740234375, 0.0128021240234375, -0.0272979736328125, 0.0267333984375, 0.0394287109375, 0.007293701171875, 0.0019359588623046875, 0.020416259765625, 0.0421142578125, 0.009490966796875, 0.0330810546875, 0.01372528076171875, 0.0340576171875, 0.0074462890625, -0.00994110107421875, -0.0012226104736328125, 0.01160430908203125, -0.0182647705078125, 0.045257568359375, -0.0248565673828125, -0.0081787109375, -0.0160675048828125, -0.0257568359375, -0.02838134765625, 0.01056671142578125, 0.0286865234375, -0.004428863525390625, 0.0179290771484375, -0.0028133392333984375, -0.0052337646484375, 0.0303192138671875, -0.0209197998046875, 0.041015625, 0.01202392578125, -0.087646484375, -0.06695556640625, 0.02508544921875, 0.040863037109375, 0.0262451171875, 0.0445556640625, 0.021728515625, -0.004863739013671875, 0.011962890625, 0.003139495849609375, 0.034881591796875, -0.009033203125, -0.038055419921875, -0.033538818359375, 0.040863037109375, -0.0295867919921875, -0.041839599609375, -0.0330810546875, -0.02777099609375, 0.048553466796875, 0.0139312744140625, 0.08984375, -0.0316162109375, 0.0184783935546875, -0.013214111328125, 0.03448486328125, -0.039825439453125, -0.032867431640625, 0.055328369140625, -0.02264404296875, -0.0214385986328125, -0.00913238525390625, -0.03411865234375, -0.0088348388671875, 0.0400390625, -0.048309326171875, 0.00972747802734375, -0.046539306640625, 0.02239990234375, -0.017425537109375, 0.001842498779296875, -0.02783203125, -0.036956787109375, -0.0511474609375, -0.00275421142578125, 0.0251617431640625, 0.0181884765625, -0.0098876953125, 0.00677490234375, -0.06402587890625, -0.03167724609375, -0.0137176513671875, -0.0228271484375, -0.059356689453125, 0.0091552734375, -0.0196533203125, -0.034576416015625, -0.0092926025390625, -0.0268402099609375, -0.0009350776672363281, -0.00801849365234375, 0.046356201171875, -0.0015897750854492188, -0.03631591796875, -0.05352783203125, 0.0100860595703125, 0.049041748046875, 0.017486572265625, 0.023345947265625, -0.053955078125, -0.0022792816162109375, 0.007724761962890625, -0.0692138671875, -0.0179901123046875, -0.049591064453125, 0.0102386474609375, 0.032318115234375, -0.0211029052734375, -0.00507354736328125, -0.00055694580078125, 0.004634857177734375, 0.006252288818359375, -0.0224609375, 0.0096588134765625, -0.011871337890625, -0.0298004150390625, 0.0029163360595703125, -0.005939483642578125, 0.0338134765625, -0.008087158203125, 0.035675048828125, -0.055023193359375, -0.08917236328125, -0.04864501953125, 0.07861328125, -0.0809326171875, 0.03338623046875, 0.039031982421875, -0.03558349609375, 0.00946807861328125, 0.042236328125, 0.03070068359375, 0.09173583984375, -0.0034046173095703125, -0.032012939453125, -0.0027370452880859375, -0.01210784912109375, 0.0037593841552734375, -0.001316070556640625, 0.00794219970703125, -0.0281982421875, -0.043182373046875, -0.0283660888671875, 0.00353240966796875, 0.006366729736328125, -0.048095703125, -0.09271240234375, 0.038726806640625, -0.0225830078125, -0.030670166015625, -0.057373046875, 0.00308990478515625, -0.0006766319274902344, 0.05548095703125, -0.019439697265625, -0.01708984375, -0.049407958984375, 0.0276336669921875, 0.004138946533203125, 0.06634521484375, 0.0059814453125, -0.0085601806640625, -0.0158843994140625, 0.018157958984375, 0.0034885406494140625, 0.04046630859375, -0.01187896728515625, 0.010650634765625, 0.035003662109375, 0.045074462890625, -0.0013093948364257812, 0.023651123046875, 0.026947021484375, -0.0157623291015625, -0.024383544921875, -0.00223541259765625, -0.007175445556640625, 0.0220794677734375, 0.06494140625, 0.074462890625, 0.0140533447265625, -0.0509033203125, -0.0281219482421875, -0.019683837890625, -0.033599853515625, 0.0140533447265625, 0.006931304931640625, -0.038116455078125, 0.031829833984375, -0.0098419189453125, 0.006000518798828125, -0.0028133392333984375, -0.0288543701171875, -0.0138092041015625, -0.0115814208984375, -0.00021076202392578125, -0.00830841064453125, 0.0124359130859375, -0.0287933349609375, 0.086181640625, -0.027008056640625, 0.051422119140625, 0.02069091796875, 0.0234832763671875, 0.07318115234375, 0.0838623046875, 0.0243072509765625, 0.00225830078125, -0.04376220703125, 0.0011472702026367188, 0.00937652587890625, 0.0219573974609375, -0.0215911865234375, -0.034698486328125, 0.0216827392578125, 0.030029296875, -0.0139312744140625, 0.0294036865234375, -0.01251983642578125, 0.08209228515625, 0.0023956298828125, 0.01129150390625, -0.0037994384765625, -0.03759765625, -0.01525115966796875, 0.0163421630859375, -0.0179595947265625, 0.0002856254577636719, 0.005458831787109375, -0.03204345703125, 0.01094818115234375, 0.0294189453125, 0.055633544921875, -0.0035877227783203125, 0.023162841796875, -0.01496124267578125, 0.018585205078125, 0.0199127197265625 ]
99077a72c9060b32c230e0cf6516b28785491e56
Wordpress Stackexchange Q: What is the difference between the "wp_footer" and "get_footer" actions? I am working on developing a plugin, and I am trying to add a line of text to the bottom of the page, I see there are two actions that seems reasonable, wp_footer() and get_footer(). wp_footer sounds like it may more suited towards code that needs to go at the very end of the page (like JavaScript files), but get_footer didn't have any documentation on its wordpress codex page. Which should I use for something like this? A: The get_footer() template tag is a custom wrapper for the locate_template() function, used to include a template-part file within a template file. The get_footer() template tag is part of the WordPress template system, and is used primarily by the Theme itself, to specify the footer.php or footer-{slug}.php file to include in the current template. The wp_footer() template tag is a custom wrapper for the wp_footer action hook, which is invoked via do_action( 'wp_footer' ). The wp_footer() template tag is part of the WordPress Hooks API, and is used primarily by Plugins, to inject scripts in the site HTML footer.
Q: What is the difference between the "wp_footer" and "get_footer" actions? I am working on developing a plugin, and I am trying to add a line of text to the bottom of the page, I see there are two actions that seems reasonable, wp_footer() and get_footer(). wp_footer sounds like it may more suited towards code that needs to go at the very end of the page (like JavaScript files), but get_footer didn't have any documentation on its wordpress codex page. Which should I use for something like this? A: The get_footer() template tag is a custom wrapper for the locate_template() function, used to include a template-part file within a template file. The get_footer() template tag is part of the WordPress template system, and is used primarily by the Theme itself, to specify the footer.php or footer-{slug}.php file to include in the current template. The wp_footer() template tag is a custom wrapper for the wp_footer action hook, which is invoked via do_action( 'wp_footer' ). The wp_footer() template tag is part of the WordPress Hooks API, and is used primarily by Plugins, to inject scripts in the site HTML footer. A: These two functions accomplish two different things. wp_footer() is a hook used in your footer.php template file to ensure that the right code is inserted (from the core/plugins/etc) into the right place. get_footer() is used in your other template files to call for the code in your footer.php template file. So in simpler words wp_footer() gets other code that you most likely don't produce (but need), so it's a little more abstract. get_footer() grabs the exact code that you wrote into your footer.php file so it is the WordPress version of PHP's include() function. Hope this helps :)
wordpress
{ "language": "en", "length": 287, "provenance": "stackexchange_00019.jsonl.gz:417983", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45299" }
[ 0.0234222412109375, 0.0399169921875, -0.03656005859375, -0.013702392578125, 0.0273590087890625, -0.035308837890625, 0.022186279296875, -0.0207061767578125, -0.040924072265625, 0.02374267578125, -0.038543701171875, 0.031341552734375, 0.0008368492126464844, -0.006183624267578125, 0.032073974609375, -0.046356201171875, 0.046783447265625, -0.0386962890625, 0.032470703125, -0.02337646484375, 0.0222320556640625, 0.00579833984375, 0.043487548828125, 0.1312255859375, 0.006702423095703125, -0.0775146484375, 0.08172607421875, 0.0239715576171875, 0.0025482177734375, -0.01006317138671875, -0.00040340423583984375, 0.00785064697265625, 0.02044677734375, 0.021209716796875, -0.030242919921875, -0.055999755859375, -0.00829315185546875, 0.01284027099609375, -0.0179290771484375, 0.017486572265625, 0.0233306884765625, -0.00527191162109375, -0.025115966796875, 0.0038242340087890625, -0.02508544921875, -0.0267333984375, 0.0169677734375, -0.0178375244140625, 0.0029659271240234375, 0.034210205078125, 0.01274871826171875, -0.017059326171875, 0.01059722900390625, -0.0173492431640625, -0.00772857666015625, -0.0135040283203125, 0.006198883056640625, 0.0024700164794921875, 0.00714111328125, -0.00267791748046875, -0.0292816162109375, 0.0283203125, 0.01922607421875, -0.0024051666259765625, -0.02264404296875, -0.01361083984375, -0.0056915283203125, -0.003986358642578125, -0.036346435546875, -0.01103973388671875, 0.03289794921875, -0.00411224365234375, -0.00799560546875, -0.00836181640625, 0.00927734375, -0.00323486328125, 0.007358551025390625, -0.0017385482788085938, 0.004100799560546875, 0.03521728515625, 0.00687408447265625, -0.0367431640625, -0.043975830078125, -0.00316619873046875, 0.01470184326171875, 0.02093505859375, -0.0064849853515625, -0.01284027099609375, -0.039825439453125, -0.0265960693359375, -0.041534423828125, -0.0194091796875, -0.0252227783203125, -0.01568603515625, -0.037841796875, -0.0104217529296875, -0.0005812644958496094, 0.05181884765625, -0.0228729248046875, 0.024688720703125, 0.0263519287109375, -0.042083740234375, 0.059783935546875, -0.043212890625, -0.004001617431640625, 0.0872802734375, 0.0146331787109375, 0.018768310546875, 0.021759033203125, -0.0141754150390625, 0.04083251953125, 0.01500701904296875, 0.00170135498046875, -0.035888671875, -0.004039764404296875, -0.0006628036499023438, -0.0217437744140625, 0.0169830322265625, 0.00830078125, -0.0032520294189453125, 0.005222320556640625, 0.0194549560546875, 0.0517578125, -0.0228118896484375, -0.032989501953125, -0.015167236328125, -0.0002951622009277344, -0.07879638671875, -0.0025653839111328125, 0.033660888671875, -0.00666046142578125, 0.0145263671875, 0.00684356689453125, -0.014923095703125, -0.0333251953125, -0.01763916015625, -0.015716552734375, 0.00989532470703125, 0.01421356201171875, -0.004985809326171875, -0.0235137939453125, -0.032257080078125, 0.012054443359375, -0.00849151611328125, -0.022308349609375, -0.014862060546875, 0.0028533935546875, 0.020751953125, -0.00750732421875, -0.00960540771484375, -0.0028533935546875, -0.01067352294921875, 0.014068603515625, -0.01149749755859375, 0.00409698486328125, -0.039947509765625, -0.055572509765625, -0.006168365478515625, 0.03363037109375, -0.0087432861328125, -0.05303955078125, -0.0050506591796875, 0.039093017578125, -0.06829833984375, -0.043426513671875, 0.00020551681518554688, 0.001323699951171875, -0.0063323974609375, 0.0240020751953125, 0.047637939453125, 0.040557861328125, 0.0018377304077148438, 0.0205230712890625, 0.0276641845703125, 0.00759124755859375, -0.00727081298828125, -0.0132598876953125, 0.0914306640625, 0.0220947265625, -0.0511474609375, -0.0394287109375, -0.06658935546875, 0.09173583984375, -0.03497314453125, -0.039764404296875, 0.007293701171875, 0.016876220703125, 0.035797119140625, 0.004016876220703125, 0.024688720703125, 0.03900146484375, 0.022247314453125, -0.010223388671875, 0.042083740234375, 0.0032863616943359375, -0.03826904296875, -0.049346923828125, 0.003398895263671875, -0.0256805419921875, -0.03472900390625, -0.010772705078125, 0.039398193359375, -0.01453399658203125, 0.048309326171875, -0.0072174072265625, 0.03753662109375, -0.0241241455078125, 0.0211944580078125, -0.0190582275390625, -0.006744384765625, 0.01018524169921875, -0.00447845458984375, -0.020416259765625, -0.003284454345703125, -0.03253173828125, -0.0003895759582519531, -0.033203125, -0.0037384033203125, 0.0140380859375, -0.0084381103515625, 0.034759521484375, 0.0037078857421875, 0.0184173583984375, 0.0212554931640625, 0.0276031494140625, -0.01007843017578125, -0.01374053955078125, -0.01448822021484375, -0.01548004150390625, 0.034698486328125, -0.07391357421875, 0.0313720703125, 0.038238525390625, 0.06866455078125, -0.0098724365234375, -0.0168914794921875, -0.01117706298828125, -0.06524658203125, 0.0240478515625, 0.046142578125, 0.021697998046875, 0.03509521484375, -0.00666046142578125, -0.007358551025390625, 0.032684326171875, -0.048553466796875, -0.0007061958312988281, -0.00896453857421875, 0.0125579833984375, 0.06646728515625, 0.01097869873046875, 0.00981903076171875, 0.001804351806640625, -0.0247955322265625, -0.049407958984375, 0.0447998046875, -0.044097900390625, -0.02130126953125, 0.00872039794921875, 0.0016946792602539062, 0.018096923828125, -0.0284423828125, 0.00768280029296875, -0.0298004150390625, -0.0157623291015625, 0.0016775131225585938, -0.007541656494140625, -0.003505706787109375, -0.041107177734375, 0.006450653076171875, 0.04052734375, 0.0223388671875, 0.0091552734375, 0.0423583984375, -0.0389404296875, -0.001857757568359375, -0.0019969940185546875, -0.01056671142578125, -0.01105499267578125, 0.0143280029296875, -0.007343292236328125, 0.021453857421875, -0.042388916015625, -0.01131439208984375, 0.0020694732666015625, -0.038726806640625, -0.019622802734375, 0.0215606689453125, -0.0011167526245117188, 0.00992584228515625, 0.0257110595703125, 0.038726806640625, -0.03631591796875, 0.045135498046875, -0.00971221923828125, -0.006977081298828125, 0.032684326171875, -0.0126495361328125, 0.005779266357421875, 0.0038604736328125, 0.019287109375, 0.0421142578125, 0.026611328125, -0.034881591796875, 0.0070343017578125, -0.01629638671875, 0.00013828277587890625, -0.033538818359375, -0.03466796875, 0.0159912109375, -0.0552978515625, 0.04547119140625, 0.0160369873046875, 0.029693603515625, -0.01024627685546875, -0.04876708984375, -0.034393310546875, 0.0128326416015625, -0.079345703125, -0.060516357421875, 0.054443359375, -0.129150390625, 0.0180206298828125, -0.00943756103515625, -0.082763671875, -0.0323486328125, 0.055084228515625, 0.00449371337890625, -0.00852203369140625, -0.006618499755859375, -0.02301025390625, -0.0214080810546875, -0.0633544921875, 0.019775390625, -0.005229949951171875, 0.01480865478515625, 0.002323150634765625, 0.044830322265625, -0.016571044921875, -0.03204345703125, -0.03271484375, -0.014251708984375, -0.0006494522094726562, 0.005130767822265625, 0.0142059326171875, -0.016998291015625, 0.016845703125, 0.015655517578125, -0.06524658203125, 0.01157379150390625, -0.0035648345947265625, -0.046875, -0.0234832763671875, -0.03436279296875, -0.01181793212890625, 0.06597900390625, 0.0160980224609375, -0.034637451171875, 0.0221099853515625, -0.06512451171875, -0.03717041015625, -0.0088043212890625, -0.04522705078125, 0.09857177734375, 0.06304931640625, -0.02362060546875, 0.012786865234375, 0.01445770263671875, 0.047760009765625, 0.049346923828125, 0.039825439453125, 0.0068359375, 0.029205322265625, 0.003326416015625, -0.0065155029296875, -0.0634765625, -0.004978179931640625, -0.0278778076171875, 0.02850341796875, -0.0003287792205810547, 0.00939178466796875, -0.007068634033203125, -0.0122222900390625, -0.03363037109375, -0.059417724609375, 0.042938232421875, -0.0305023193359375, -0.0097808837890625, -0.031707763671875, -0.00910186767578125, 0.005115509033203125, 0.07470703125, -0.017303466796875, -0.0258636474609375, 0.01116180419921875, 0.0172271728515625, -0.042938232421875, -0.0154266357421875, -0.026397705078125, -0.006000518798828125, -0.035003662109375, 0.01953125, 0.0016660690307617188, 0.0016765594482421875, -0.0279388427734375, 0.045654296875, -0.0311279296875, -0.0111846923828125, 0.022918701171875, 0.00878143310546875, -0.0276947021484375, 0.02685546875, -0.05517578125, 0.02630615234375, -0.006412506103515625, -0.0027065277099609375, 0.032623291015625, -0.008331298828125, 0.012420654296875, -0.00556182861328125, 0.040069580078125, -0.033660888671875, 0.03057861328125, 0.0303192138671875, 0.00934600830078125, 0.03472900390625, 0.019287109375, 0.028045654296875, 0.0245208740234375, -0.07525634765625, 0.0038814544677734375, -0.049224853515625, -0.029876708984375, -0.016510009765625, -0.04510498046875, 0.03363037109375, 0.0161590576171875, 0.03253173828125, 0.031036376953125, -0.01291656494140625, -0.036590576171875, -0.00409698486328125, 0.0229644775390625, -0.0267486572265625, 0.0231475830078125, -0.030975341796875, 0.0309600830078125, -0.004734039306640625, 0.044677734375, 0.023834228515625, 0.015960693359375, 0.00482940673828125, 0.109375, 0.0293121337890625, -0.0203399658203125, -0.056243896484375, 0.0185699462890625, 0.06060791015625, -0.01059722900390625, 0.0211944580078125, 0.06011962890625, -0.04620361328125, 0.031890869140625, 0.050262451171875, -0.0010404586791992188, 0.00638580322265625, 0.068603515625, -0.01043701171875, -0.0330810546875, 0.027679443359375, -0.0183563232421875, -0.035247802734375, 0.04498291015625, -0.033538818359375, 0.006366729736328125, -0.055267333984375, 0.0153961181640625, -0.0257110595703125, 0.043212890625, -0.041015625, 0.0155792236328125, -0.0123138427734375, -0.0030117034912109375, 0.039947509765625, 0.027374267578125, -0.000640869140625, -0.02001953125, 0.01241302490234375, -0.0053863525390625, -0.030975341796875, -0.0435791015625, 0.00293731689453125, 0.01340484619140625, -0.007106781005859375, 0.000652313232421875, -0.0113067626953125, -0.01325225830078125, 0.061248779296875, -0.0135345458984375, -0.039031982421875, -0.0394287109375, -0.010772705078125, 0.055633544921875, 0.0222625732421875, 0.0134124755859375, 0.052764892578125, -0.0170440673828125, -0.0003323554992675781, 0.006275177001953125, -0.0039520263671875, -0.036529541015625, -0.0224456787109375, -0.00357818603515625, 0.0343017578125, -0.028656005859375, -0.014434814453125, 0.0499267578125, 0.029327392578125, -0.01122283935546875, -0.0285797119140625, 0.01143646240234375, -0.01983642578125, 0.057342529296875, 0.0272674560546875, -0.057403564453125, 0.0229949951171875, 0.01568603515625, -0.014007568359375, -0.01012420654296875, 0.0279693603515625, 0.0006651878356933594, 0.04034423828125, -0.021148681640625, -0.0285491943359375, 0.02703857421875, -0.051666259765625, -0.0151214599609375, 0.035064697265625, 0.0275421142578125, -0.0296478271484375, -0.023681640625, -0.0002715587615966797, 0.0421142578125, 0.0082244873046875, -0.0105133056640625, 0.034088134765625, -0.0033550262451171875, 0.033538818359375, 0.036285400390625, -0.01148223876953125, 0.007236480712890625, 0.00890350341796875, -0.018096923828125, 0.0008106231689453125, -0.0004229545593261719, -0.0286712646484375, -0.02911376953125, -0.010284423828125, -0.031341552734375, 0.042449951171875, -0.0219879150390625, 0.02264404296875, -0.0203399658203125, -0.0078887939453125, -0.03277587890625, 0.0221405029296875, 0.023895263671875, 0.032989501953125, -0.00904083251953125, -0.015350341796875, -0.048126220703125, -0.0234527587890625, -0.054443359375, -0.0648193359375, -0.0281219482421875, 0.0113067626953125, -0.0085296630859375, 0.0247650146484375, -0.000995635986328125, 0.01473236083984375, 0.0125579833984375, 0.00704193115234375, -0.0206756591796875, 0.04608154296875, -0.01409149169921875, 0.06390380859375, -0.012969970703125, 0.01349639892578125, 0.0006136894226074219, 0.0445556640625, 0.0291595458984375, -0.0201873779296875, 0.0134429931640625, -0.03192138671875, -0.0028247833251953125, -0.040985107421875, 0.013519287109375, 0.01265716552734375, 0.037445068359375, 0.00726318359375, -0.004608154296875, -0.004550933837890625, -0.00827789306640625, -0.00777435302734375, 0.051788330078125, 0.0350341796875, -0.01244354248046875, 0.0538330078125, -0.025970458984375, -0.004230499267578125, 0.0134429931640625, -0.0025272369384765625, 0.04339599609375, -0.03179931640625, 0.035308837890625, 0.0023365020751953125, 0.012542724609375, 0.00848388671875, 0.036651611328125, 0.030059814453125, 0.046661376953125, 0.0283355712890625, 0.05328369140625, -0.002437591552734375, 0.063232421875, -0.002964019775390625, -0.06280517578125, 0.059783935546875, 0.0189361572265625, -0.0298614501953125, 0.044219970703125, -0.043426513671875, 0.0340576171875, 0.03472900390625, 0.06268310546875, -0.06353759765625, 0.0257568359375, 0.0242767333984375, -0.0241851806640625, 0.0278472900390625, 0.0011224746704101562, -0.0290679931640625, -0.044708251953125, 0.044586181640625, 0.0005650520324707031, 0.0022220611572265625, 0.0216522216796875, 0.0042572021484375, -0.031890869140625, -0.0172271728515625, 0.007709503173828125, 0.0094146728515625, 0.038177490234375, 0.01265716552734375, -0.027984619140625, 0.0469970703125, -0.0277557373046875, 0.0114898681640625, -0.041107177734375, 0.0001270771026611328, -0.00588226318359375, 0.01099395751953125, -0.00958251953125, 0.026458740234375, 0.005542755126953125, -0.0537109375, 0.016815185546875, 0.0182647705078125, -0.02764892578125, 0.006572723388671875, -0.01271820068359375, -0.006927490234375, -0.0755615234375, -0.0179290771484375, 0.0217742919921875, 0.0207061767578125, -0.026275634765625, 0.0309600830078125, -0.027191162109375, -0.03656005859375, -0.018585205078125, -0.0712890625, 0.045074462890625, -0.042755126953125, -0.0022144317626953125, 0.0033054351806640625, 0.002655029296875, -0.0015783309936523438, -0.013885498046875, 0.075927734375, -0.03338623046875, -0.0021610260009765625, 0.0252685546875, 0.006397247314453125, -0.0296173095703125, -0.00986480712890625, -0.0290069580078125, 0.10919189453125, 0.06719970703125, -0.01058197021484375, 0.01433563232421875, 0.049102783203125, -0.063232421875, 0.02972412109375, -0.052581787109375, 0.03717041015625, 0.003734588623046875, 0.04840087890625, -0.0175933837890625, 0.0010356903076171875, 0.013641357421875, 0.0131683349609375, 0.09271240234375, 0.015289306640625, -0.01288604736328125, -0.00201416015625, 0.059356689453125, 0.037109375, -0.0233306884765625, 0.0206451416015625, 0.0206146240234375, 0.0263519287109375, 0.02423095703125, -0.046966552734375, 0.012237548828125, -0.022613525390625, 0.006481170654296875, 0.03961181640625, -0.00457000732421875, -0.029388427734375, -0.0007100105285644531, -0.055206298828125, -0.0380859375, 0.0011453628540039062, 0.0097198486328125, -0.0139923095703125, -0.0211181640625, 0.048736572265625, -0.0005521774291992188, -0.02301025390625, -0.0138397216796875, -0.03790283203125, 0.025421142578125, -0.0196075439453125, 0.051727294921875, 0.004680633544921875, 0.00444793701171875, 0.047882080078125, 0.0242767333984375, 0.030548095703125, 0.040130615234375, -0.00884246826171875, 0.03753662109375, 0.00804901123046875, 0.0257568359375, -0.051727294921875, 0.0328369140625, 0.03436279296875, 0.0450439453125, -0.0357666015625, -0.004467010498046875, 0.0030956268310546875, -0.006374359130859375, -0.002685546875, -0.039093017578125, 0.0020427703857421875, -0.0219268798828125, -0.00487518310546875, -0.025390625, -0.005588531494140625, 0.0154876708984375, -0.00036835670471191406, -0.01248931884765625, -0.007160186767578125, 0.012786865234375, 0.022979736328125, -0.033843994140625, 0.00732421875, 0.01316070556640625, 0.021942138671875, -0.00665283203125, 0.02142333984375, 0.0088958740234375, -0.0005402565002441406, -0.0198516845703125, 0.0421142578125, -0.006305694580078125, 0.041778564453125, -0.041229248046875, -0.0228729248046875, 0.0103759765625, 0.037872314453125, 0.0262298583984375, 0.0307464599609375, 0.022430419921875, 0.0253753662109375, 0.0219573974609375, 0.00034809112548828125, -0.0020046234130859375, -0.0099639892578125, -0.0007257461547851562, -0.0182647705078125, -0.0367431640625, -0.01377105712890625, -0.0264739990234375, 0.00948333740234375, -0.0112152099609375, 0.0098114013671875, 0.00843048095703125, 0.035125732421875, 0.005283355712890625, 0.0007495880126953125, 0.01081085205078125, -0.0413818359375, 0.02545166015625, 0.01392364501953125, -0.02032470703125, -0.0020542144775390625, 0.0038204193115234375, -0.0214385986328125, 0.01277923583984375, 0.03594970703125, -0.0167083740234375, 0.029449462890625, -0.0014925003051757812, 0.004619598388671875, -0.01512908935546875, -0.022613525390625, 0.047760009765625, 0.0079498291015625, 0.0003294944763183594, 0.0295257568359375, -0.034759521484375, -0.0307464599609375, -0.01035308837890625, 0.031585693359375, 0.00913238525390625, 0.058135986328125, -0.0210723876953125, 0.016021728515625, 0.002719879150390625, 0.038848876953125, -0.036895751953125, -0.0176544189453125, 0.040252685546875, -0.0082244873046875, -0.002410888671875, -0.01169586181640625, -0.0789794921875, -0.007747650146484375, 0.03656005859375, -0.00384521484375, 0.017181396484375, -0.0142059326171875, 0.01934814453125, -0.026092529296875, 0.01251220703125, -0.009674072265625, -0.046630859375, -0.033782958984375, 0.0009450912475585938, 0.02105712890625, 0.05706787109375, 0.0057373046875, 0.045196533203125, -0.0117340087890625, -0.01105499267578125, 0.006130218505859375, -0.0369873046875, -0.016326904296875, 0.01313018798828125, -0.022857666015625, 0.037261962890625, 0.025787353515625, -0.032318115234375, 0.044586181640625, -0.00753021240234375, 0.024200439453125, 0.0036373138427734375, -0.0142974853515625, -0.0005764961242675781, -0.054443359375, -0.0012865066528320312, -0.05535888671875, -0.01081085205078125, -0.0165557861328125, 0.035614013671875, -0.0107574462890625, -0.0767822265625, -0.0019063949584960938, -0.017303466796875, -0.036102294921875, 0.01190948486328125, -0.0249176025390625, -0.03912353515625, 0.0005612373352050781, -0.01343536376953125, -0.00739288330078125, 0.01108551025390625, -0.032501220703125, 0.0128936767578125, 0.01313018798828125, -0.003162384033203125, -0.007171630859375, 0.005130767822265625, -0.00496673583984375, 0.0167083740234375, -0.0226593017578125, -0.00542449951171875, -0.033172607421875, -0.0008463859558105469, -0.017974853515625, 0.0203857421875, 0.043731689453125, -0.0210723876953125, -0.0241546630859375, 0.0487060546875, 0.0235748291015625, 0.10845947265625, -0.0307464599609375, -0.0136260986328125, 0.0147705078125, 0.01153564453125, -0.0213470458984375, -0.04766845703125, 0.006710052490234375, -0.0137786865234375, 0.0037517547607421875, 0.03057861328125, -0.006931304931640625, 0.01297760009765625, -0.0274505615234375, -0.06536865234375, 0.0614013671875, -0.004974365234375, -0.0304718017578125, -0.052215576171875, -0.003940582275390625, 0.006069183349609375, 0.03955078125, -0.0141448974609375, 0.01393890380859375, -0.042694091796875, 0.00420379638671875, 0.006328582763671875, 0.01514434814453125, 0.04559326171875, -0.0191192626953125, -0.0360107421875, -0.0028743743896484375, -0.019287109375, -0.0024700164794921875, -0.0226593017578125, 0.001529693603515625, 0.017059326171875, 0.0362548828125, -0.018310546875, 0.035003662109375, 0.0123138427734375, 0.00039768218994140625, 0.0201416015625, -0.044921875, 0.0020542144775390625, -0.01178741455078125, 0.038818359375, -0.016754150390625, 0.0039520263671875, -0.019775390625, 0.0006580352783203125, -0.0216827392578125, -0.06427001953125, -0.0134429931640625, 0.045257568359375, -0.08502197265625, -0.009979248046875, 0.0174560546875, -0.028350830078125, 0.00550079345703125, -0.01031494140625, -0.046905517578125, 0.014923095703125, -0.01416778564453125, -0.009246826171875, -0.035797119140625, -0.031524658203125, 0.09649658203125, -0.039276123046875, 0.010009765625, -0.0178070068359375, 0.04754638671875, 0.038421630859375, -0.04083251953125, -0.004970550537109375, 0.0224456787109375, -0.071044921875, 0.00557708740234375, -0.007778167724609375, 0.025634765625, -0.0279998779296875, 0.0038700103759765625, 0.00698089599609375, 0.03607177734375, -0.01422119140625, 0.038299560546875, -0.0169525146484375, 0.09649658203125, 0.005123138427734375, 0.0634765625, -0.029327392578125, 0.119873046875, -0.0065765380859375, 0.04779052734375, -0.0147705078125, 0.01064300537109375, 0.01294708251953125, -0.0081329345703125, -0.01358795166015625, 0.022369384765625, -0.06353759765625, -0.05218505859375, 0.00832366943359375, -0.01198577880859375, -0.0016574859619140625, 0.013916015625 ]
e8da596b0fb9308139c5a371dc6447035ea6a8d6
Wordpress Stackexchange Q: Should Plugin Folders Include a Blank index.php File? WordPress itself, in the wp-content folder, includes an empty PHP file which looks like this. <?php // Silence is golden. ?> Should plugins include an empty file like this as well to stop folks view viewing the contents of a directory? What about additional folders in themes -- like an includes directory? A: No, they should not. If a plugin has vulnerabilities just because someone might see its directory structure it is broken. These bugs should be fixed. Security through obscurity is a bug for itself. It’s up to the site owner to allow or forbid directory browsing. A second issue is performance: WordPress scans all PHP files in a plugin’s root directory to find plugin headers. This allows you to have multiple plugins under the same directory, eg /wp-content/plugins/wpse-examples/. It also means that unused PHP files in that directory are wasting time and memory when WordPress is searching for plugins. One file will not do much harm, but imagine this is getting a common practice. You are creating a real problem in an attempt to fix a fictional.
Q: Should Plugin Folders Include a Blank index.php File? WordPress itself, in the wp-content folder, includes an empty PHP file which looks like this. <?php // Silence is golden. ?> Should plugins include an empty file like this as well to stop folks view viewing the contents of a directory? What about additional folders in themes -- like an includes directory? A: No, they should not. If a plugin has vulnerabilities just because someone might see its directory structure it is broken. These bugs should be fixed. Security through obscurity is a bug for itself. It’s up to the site owner to allow or forbid directory browsing. A second issue is performance: WordPress scans all PHP files in a plugin’s root directory to find plugin headers. This allows you to have multiple plugins under the same directory, eg /wp-content/plugins/wpse-examples/. It also means that unused PHP files in that directory are wasting time and memory when WordPress is searching for plugins. One file will not do much harm, but imagine this is getting a common practice. You are creating a real problem in an attempt to fix a fictional. A: I am going to say YES. Security through obscurity works if you're more obscure then your neighbors :) (joking but there is some truth to that). The reality is that the bots/scanners now compile the plugin lists right off wordpress.org and crawl the plugin url's directly, fingerprinting versions for known exploits and keeping the info in a database for reference. So which one would you rather have, a bot not being able to gather info on your install, or leaving it up to the plugin author to make sure you're secure. How about both. ps. On a side note there were 186 reported exploits from wordpress.org plugins last year .(*reported..). A: Since WordPress core does this is makes sense for plugins to follow suit. While all of this can be protected with various server side settings it doesn't hurt to have a default (probably why WordPress core does it). A: As fuxia pointed out, there is a performance drawback in having an extra .php file that WordPress to scan for plugins. An index.html would probably be a better option. Of course, the best option would be to forbid directory browsing through the web server. And also, security through obscurity is no good.
wordpress
{ "language": "en", "length": 391, "provenance": "stackexchange_00019.jsonl.gz:418000", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45365" }
[ 0.0699462890625, -0.008819580078125, 0.0298004150390625, -0.01934814453125, 0.007198333740234375, -0.0196990966796875, 0.055694580078125, -0.0221405029296875, -0.01448822021484375, -0.010406494140625, -0.026092529296875, -0.0200042724609375, -0.027618408203125, -0.03509521484375, 0.008880615234375, -0.060089111328125, 0.021881103515625, 0.000560760498046875, 0.020263671875, -0.006816864013671875, 0.0011234283447265625, 0.0240478515625, 0.01033782958984375, -0.0357666015625, 0.00431060791015625, -0.0171661376953125, 0.10406494140625, -0.02294921875, -0.0187225341796875, -0.052581787109375, 0.020294189453125, 0.029083251953125, 0.0276947021484375, 0.03216552734375, -0.032684326171875, 0.0178070068359375, 0.007480621337890625, 0.0084075927734375, -0.003612518310546875, 0.027435302734375, 0.016998291015625, -0.003955841064453125, 0.06378173828125, 0.002140045166015625, 0.0157470703125, -0.007965087890625, 0.02093505859375, -0.03485107421875, 0.03631591796875, -0.02880859375, 0.0239715576171875, 0.015106201171875, 0.0299835205078125, -0.0565185546875, -0.0201416015625, 0.02777099609375, -0.047607421875, 0.04730224609375, 0.0242156982421875, -0.00701141357421875, -0.0279693603515625, -0.006103515625, 0.0125274658203125, -0.0186920166015625, 0.0174713134765625, -0.019683837890625, -0.037384033203125, 0.033447265625, -0.043853759765625, 0.023468017578125, 0.0347900390625, -0.04510498046875, 0.007213592529296875, -0.036041259765625, -0.00841522216796875, 0.00284576416015625, -0.0197601318359375, -0.037384033203125, 0.033538818359375, -0.0009937286376953125, -0.03680419921875, -0.0161895751953125, -0.01421356201171875, -0.04681396484375, 0.0207061767578125, -0.0026035308837890625, -0.0129852294921875, 0.007175445556640625, 0.0093536376953125, -0.0006995201110839844, -0.003826141357421875, 0.033843994140625, -0.002742767333984375, 0.0164947509765625, -0.0241241455078125, -0.00855255126953125, 0.004947662353515625, 0.0382080078125, -0.02667236328125, 0.01153564453125, 0.03778076171875, -0.043487548828125, 0.048248291015625, -0.0328369140625, -0.0056304931640625, 0.056121826171875, 0.0215606689453125, 0.01543426513671875, 0.0245361328125, -0.005878448486328125, 0.01531982421875, 0.0264434814453125, 0.006633758544921875, -0.06329345703125, 0.0037841796875, 0.04718017578125, 0.01027679443359375, 0.0272979736328125, 0.034515380859375, 0.025421142578125, -0.0038547515869140625, 0.00534820556640625, -0.01338958740234375, -0.0146942138671875, -0.0179443359375, -0.036529541015625, -0.017486572265625, 0.01432037353515625, 0.02142333984375, 0.027984619140625, -0.0225830078125, -0.0175323486328125, 0.023712158203125, 0.035308837890625, 0.010986328125, -0.021453857421875, 0.01837158203125, 0.02069091796875, -0.0230560302734375, 0.001953125, -0.016021728515625, -0.0166473388671875, 0.016448974609375, -0.053680419921875, 0.0010576248168945312, 0.025634765625, 0.01092529296875, 0.01549530029296875, 0.004848480224609375, -0.0115509033203125, 0.00412750244140625, -0.04541015625, 0.02496337890625, -0.023834228515625, 0.0171051025390625, -0.0048675537109375, 0.00856781005859375, -0.008636474609375, -0.040374755859375, 0.01009368896484375, 0.02093505859375, -0.0163421630859375, -0.025146484375, -0.047821044921875, -0.037353515625, -0.01375579833984375, -0.027984619140625, 0.01352691650390625, 0.01329803466796875, -0.01534271240234375, 0.00893402099609375, -0.0005736351013183594, 0.005382537841796875, 0.01519775390625, 0.0187835693359375, 0.01067352294921875, 0.02032470703125, -0.00542449951171875, 0.040313720703125, 0.0292510986328125, -0.01290130615234375, -0.017608642578125, 0.10943603515625, -0.04254150390625, -0.069580078125, 0.054534912109375, -0.004444122314453125, 0.050811767578125, 0.0216217041015625, -0.007709503173828125, 0.0487060546875, 0.0233917236328125, -0.0294342041015625, -0.034210205078125, -0.01318359375, 0.007686614990234375, 0.015228271484375, 0.0015411376953125, -0.0001055598258972168, 0.01715087890625, 0.0022754669189453125, 0.0191650390625, -0.022216796875, 0.004070281982421875, -0.061065673828125, -0.00498199462890625, -0.006076812744140625, 0.020233154296875, -0.029876708984375, 0.006671905517578125, 0.0272674560546875, 0.00888824462890625, -0.0364990234375, -0.011505126953125, -0.0122528076171875, 0.019775390625, -0.0264892578125, 0.033660888671875, 0.0286407470703125, 0.0526123046875, 0.0355224609375, 0.0009984970092773438, 0.02764892578125, -0.02923583984375, 0.042755126953125, 0.0197906494140625, -0.0304718017578125, -0.01068878173828125, 0.027923583984375, 0.01055908203125, -0.00921630859375, 0.015869140625, 0.038970947265625, 0.0231170654296875, -0.0380859375, -0.0162353515625, -0.01515960693359375, -0.0860595703125, 0.005077362060546875, 0.064208984375, 0.01983642578125, 0.043182373046875, -0.0243377685546875, 0.0275421142578125, 0.05267333984375, -0.044952392578125, -0.01262664794921875, 0.0230712890625, 0.0290374755859375, 0.029815673828125, -0.03033447265625, -0.022674560546875, 0.0198211669921875, -0.02093505859375, -0.000701904296875, 0.01302337646484375, -0.015167236328125, -0.026336669921875, -0.0269927978515625, 0.02215576171875, 0.018096923828125, -0.013916015625, -0.037139892578125, -0.0020122528076171875, -0.0008397102355957031, 0.01329803466796875, 0.006923675537109375, 0.0179901123046875, -0.01459503173828125, 0.0101470947265625, 0.0158233642578125, -0.016143798828125, -0.006855010986328125, 0.054107666015625, 0.034027099609375, -0.02386474609375, -0.0222320556640625, -0.019439697265625, 0.010009765625, 0.0234527587890625, -0.0230712890625, -0.050079345703125, -0.051666259765625, -0.004695892333984375, 0.0014219284057617188, -0.02630615234375, 0.02056884765625, 0.0216064453125, 0.01336669921875, -0.0151214599609375, 0.01047515869140625, 0.02734375, -0.037689208984375, 0.05731201171875, 0.022735595703125, -0.0261077880859375, 0.02056884765625, -0.0110626220703125, 0.00920867919921875, -0.01296234130859375, 0.020782470703125, 0.04571533203125, 0.0281524658203125, -0.0482177734375, 0.005550384521484375, -0.0035381317138671875, -0.00566864013671875, 0.0301361083984375, 0.001583099365234375, -0.016815185546875, -0.049041748046875, -0.02520751953125, 0.008880615234375, 0.028717041015625, -0.040771484375, -0.05072021484375, -0.035797119140625, 0.0075225830078125, -0.0791015625, -0.0479736328125, -0.00016939640045166016, -0.04302978515625, 0.00997161865234375, -0.00800323486328125, -0.0264129638671875, -0.033782958984375, 0.00547027587890625, 0.01012420654296875, -0.0209808349609375, -0.05548095703125, -0.051727294921875, -0.07904052734375, -0.04803466796875, 0.0285186767578125, 0.004009246826171875, -0.007633209228515625, -0.01021575927734375, 0.042510986328125, 0.007843017578125, -0.03411865234375, -0.02947998046875, 0.0650634765625, -0.0063629150390625, -0.04180908203125, -0.0016546249389648438, 0.00395965576171875, -0.0019140243530273438, 0.004116058349609375, -0.006580352783203125, 0.0212249755859375, -0.0166778564453125, -0.026214599609375, 0.0013704299926757812, -0.04022216796875, -0.0016393661499023438, 0.01505279541015625, 0.0011854171752929688, -0.0245819091796875, 0.0006952285766601562, -0.061248779296875, -0.0019130706787109375, 0.0107574462890625, -0.031494140625, -0.01363372802734375, 0.0020961761474609375, -0.011871337890625, 0.017974853515625, -0.0282135009765625, 0.0262908935546875, 0.0313720703125, -0.024200439453125, -0.0177154541015625, 0.026580810546875, 0.0087738037109375, 0.03680419921875, -0.006618499755859375, 0.0347900390625, -0.01372528076171875, -0.00595855712890625, 0.0113525390625, 0.004878997802734375, 0.005702972412109375, -0.0211029052734375, -0.00814056396484375, 0.036712646484375, 0.0202178955078125, -0.00849151611328125, 0.0276947021484375, -0.021942138671875, -0.01323699951171875, -0.03753662109375, 0.0205078125, -0.07574462890625, -0.01434326171875, 0.005901336669921875, 0.0265655517578125, -0.047454833984375, -0.04412841796875, -0.041961669921875, -0.02001953125, -0.0257568359375, 0.01605224609375, 0.006259918212890625, -0.009857177734375, 0.01470947265625, -0.04083251953125, 0.00960540771484375, -0.030487060546875, 0.02001953125, -0.00653839111328125, 0.036285400390625, -0.026336669921875, 0.0267791748046875, -0.037750244140625, -0.0034332275390625, -0.03436279296875, -0.07720947265625, -0.01439666748046875, -0.005035400390625, 0.04522705078125, -0.0023632049560546875, -0.0166778564453125, -0.0361328125, 0.021240234375, -0.02972412109375, 0.00481414794921875, 0.0355224609375, 0.0380859375, -0.01277923583984375, 0.035430908203125, 0.049163818359375, -0.0162506103515625, 0.010589599609375, -0.01151275634765625, -0.0080108642578125, 0.0060882568359375, -0.052581787109375, -0.032196044921875, -0.01076507568359375, -0.027435302734375, 0.01523590087890625, -0.0163726806640625, -0.05718994140625, 0.00347137451171875, -0.01192474365234375, -0.0260467529296875, -0.0167083740234375, 0.00431060791015625, 0.0266571044921875, 0.0002830028533935547, 0.0010366439819335938, 0.00844573974609375, 0.03076171875, 0.007289886474609375, -0.018585205078125, -0.058868408203125, 0.0033435821533203125, 0.0246734619140625, 0.046142578125, 0.046173095703125, 0.0019550323486328125, -0.023834228515625, 0.060821533203125, 0.01088714599609375, -0.0014905929565429688, -0.0171051025390625, 0.0582275390625, -0.0120391845703125, -0.035736083984375, 0.03167724609375, -0.01214599609375, 0.00824737548828125, 0.040008544921875, 0.0018749237060546875, 0.0027008056640625, 0.020904541015625, -0.006763458251953125, -0.034881591796875, 0.014892578125, 0.0208282470703125, -0.045623779296875, -0.00666046142578125, 0.02532958984375, 0.041900634765625, 0.0281982421875, -0.0065460205078125, 0.061126708984375, 0.06976318359375, -0.0121612548828125, 0.052398681640625, 0.077392578125, 0.0014801025390625, 0.01433563232421875, 0.051116943359375, -0.041015625, -0.0234527587890625, 0.0009670257568359375, 0.02703857421875, 0.009307861328125, -0.026092529296875, 0.005039215087890625, -0.00698089599609375, -0.003261566162109375, 0.0087890625, 0.03167724609375, 0.04620361328125, 0.002773284912109375, -0.036376953125, -0.023651123046875, 0.0095062255859375, -0.010345458984375, -0.051788330078125, -0.006580352783203125, 0.0171356201171875, -0.03570556640625, -0.021820068359375, -0.0014257431030273438, -0.0025463104248046875, -0.02490234375, 0.0079345703125, -0.006069183349609375, 0.03314208984375, 0.0228118896484375, 0.034759521484375, -0.02734375, -0.0273284912109375, 0.02423095703125, 0.0084228515625, -0.03265380859375, 0.0016736984252929688, -0.02105712890625, 0.0172882080078125, -0.05133056640625, -0.04150390625, 0.0784912109375, 0.0025157928466796875, -0.0003833770751953125, 0.008270263671875, -0.02081298828125, -0.018035888671875, -0.0297393798828125, -0.015716552734375, 0.047637939453125, 0.0013532638549804688, -0.0158538818359375, 0.012786865234375, -0.0177154541015625, -0.04193115234375, 0.0704345703125, -0.1182861328125, 0.0225372314453125, 0.048370361328125, 0.04205322265625, 0.0031890869140625, 0.0133819580078125, -0.0794677734375, 0.01094818115234375, -0.0565185546875, -0.0188446044921875, 0.09014892578125, -0.00897979736328125, 0.043212890625, -0.01092529296875, -0.027984619140625, 0.036590576171875, 0.0238037109375, -0.006969451904296875, -0.01444244384765625, -0.09259033203125, 0.014923095703125, -0.0262451171875, 0.0059661865234375, -0.010650634765625, -0.0238037109375, -0.062042236328125, -0.00864410400390625, 0.0160980224609375, 0.0191650390625, 0.006679534912109375, -0.037689208984375, -0.042144775390625, 0.017852783203125, 0.044830322265625, 0.031982421875, -0.053619384765625, 0.066162109375, 0.0633544921875, -0.0143585205078125, -0.001758575439453125, 0.039794921875, 0.025726318359375, 0.00689697265625, 0.016387939453125, 0.0014104843139648438, -0.005908966064453125, -0.03961181640625, 0.03814697265625, -0.0035572052001953125, 0.045379638671875, -0.0021915435791015625, -0.0064239501953125, 0.00484466552734375, 0.0017099380493164062, -0.00150299072265625, 0.048095703125, 0.035186767578125, 0.01036834716796875, 0.017974853515625, -0.00687408447265625, 0.017059326171875, -0.0167694091796875, -0.038665771484375, 0.01325225830078125, 0.006160736083984375, 0.00634765625, 0.024322509765625, -0.041534423828125, 0.0732421875, 0.04534912109375, -0.00879669189453125, 0.036773681640625, 0.0012350082397460938, -0.0026149749755859375, -0.0025844573974609375, 0.00011050701141357422, 0.0178375244140625, -0.0267333984375, 0.08984375, 0.021148681640625, -0.0182647705078125, 0.0887451171875, -0.04510498046875, 0.01806640625, 0.034637451171875, 0.034637451171875, -0.03814697265625, -0.00830841064453125, -0.017730712890625, -0.0242156982421875, 0.03240966796875, -0.018402099609375, -0.0088653564453125, -0.046478271484375, 0.03656005859375, 0.0063018798828125, -0.01514434814453125, 0.001232147216796875, -0.0226287841796875, -0.0189971923828125, 0.011749267578125, 0.0154571533203125, 0.02484130859375, -0.039031982421875, 0.007122039794921875, 0.035736083984375, 0.0129547119140625, 0.01354217529296875, 0.0178375244140625, -0.0252532958984375, -0.035400390625, -0.0237579345703125, -0.0282440185546875, -0.0076141357421875, -0.033203125, 0.015350341796875, 0.018310546875, 0.016693115234375, 0.046661376953125, -0.013153076171875, 0.02362060546875, 0.01538848876953125, 0.019500732421875, -0.022857666015625, -0.0260467529296875, 0.0009093284606933594, 0.07000732421875, -0.0129852294921875, 0.03497314453125, 0.016265869140625, -0.01221466064453125, -0.02484130859375, -0.056304931640625, 0.0826416015625, -0.0125732421875, -0.020538330078125, 0.033782958984375, -0.0225677490234375, -0.03839111328125, 0.0006422996520996094, 0.04736328125, -0.036468505859375, 0.009613037109375, 0.02801513671875, 0.052398681640625, -0.0037631988525390625, 0.0258026123046875, -0.060302734375, 0.088134765625, -0.04168701171875, 0.0321044921875, 0.00800323486328125, 0.022674560546875, 0.00879669189453125, 0.0211944580078125, -0.005321502685546875, 0.06683349609375, -0.031463623046875, 0.01317596435546875, -0.049224853515625, -0.012542724609375, -0.0006256103515625, 0.0389404296875, 0.050018310546875, 0.011566162109375, -0.028594970703125, -0.01319122314453125, 0.0372314453125, -0.00537109375, -0.029388427734375, 0.052490234375, 0.01666259765625, 0.03009033203125, 0.042938232421875, -0.0243377685546875, 0.055145263671875, -0.06378173828125, -0.0127410888671875, -0.0024433135986328125, 0.01349639892578125, -0.01324462890625, 0.0037670135498046875, -0.000027835369110107422, 0.00907135009765625, -0.004756927490234375, -0.0167083740234375, 0.03155517578125, -0.0084075927734375, -0.004138946533203125, 0.0011281967163085938, -0.05743408203125, 0.002902984619140625, -0.01364898681640625, 0.045166015625, 0.006114959716796875, 0.0035152435302734375, 0.019439697265625, 0.012939453125, 0.037078857421875, -0.0217437744140625, -0.007793426513671875, 0.0213165283203125, -0.01421356201171875, 0.010406494140625, 0.028839111328125, 0.03924560546875, 0.0016632080078125, -0.02099609375, -0.004302978515625, 0.009918212890625, -0.00406646728515625, -0.06390380859375, 0.0167999267578125, 0.02215576171875, -0.0181427001953125, 0.03955078125, -0.016326904296875, 0.0019702911376953125, 0.07415771484375, -0.01271820068359375, 0.01381683349609375, 0.0256805419921875, -0.020050048828125, -0.00006699562072753906, -0.004150390625, -0.0034198760986328125, 0.0279541015625, -0.0094146728515625, 0.0279388427734375, 0.0298309326171875, -0.0007491111755371094, -0.04449462890625, 0.037261962890625, 0.00873565673828125, 0.01529693603515625, -0.0150299072265625, 0.073974609375, -0.007049560546875, 0.01068115234375, -0.0643310546875, -0.08404541015625, 0.00417327880859375, 0.053375244140625, 0.034423828125, 0.05169677734375, 0.037689208984375, 0.0014925003051757812, -0.00970458984375, 0.011444091796875, -0.0318603515625, -0.039398193359375, 0.0085296630859375, -0.023468017578125, 0.06317138671875, 0.05322265625, 0.01302337646484375, -0.00553131103515625, 0.0196380615234375, 0.06500244140625, -0.020599365234375, 0.00033926963806152344, -0.007198333740234375, -0.05889892578125, 0.0204010009765625, -0.02532958984375, 0.044677734375, -0.0090789794921875, -0.01678466796875, -0.0127410888671875, 0.0226593017578125, 0.00318145751953125, -0.023406982421875, 0.0195159912109375, 0.003520965576171875, 0.029510498046875, 0.043243408203125, 0.01015472412109375, -0.01450347900390625, -0.0297088623046875, 0.038360595703125, 0.0030765533447265625, 0.03369140625, 0.036895751953125, -0.0246734619140625, -0.0249786376953125, -0.046600341796875, 0.04058837890625, 0.020172119140625, 0.1583251953125, -0.06591796875, 0.0259246826171875, 0.0233917236328125, -0.0074310302734375, -0.01026153564453125, 0.01479339599609375, -0.0017213821411132812, -0.032989501953125, -0.0098114013671875, -0.0028934478759765625, -0.08575439453125, -0.033294677734375, 0.0294342041015625, -0.0389404296875, -0.0181732177734375, 0.0007529258728027344, 0.034698486328125, -0.010498046875, 0.043487548828125, -0.005523681640625, -0.033721923828125, -0.0032329559326171875, 0.017852783203125, 0.013519287109375, 0.045867919921875, -0.0148468017578125, -0.005611419677734375, 0.00803375244140625, -0.041229248046875, 0.0155487060546875, -0.01016998291015625, 0.01012420654296875, 0.0208587646484375, 0.0213470458984375, -0.033477783203125, -0.04193115234375, -0.03338623046875, -0.0106201171875, -0.01812744140625, 0.0419921875, -0.039276123046875, -0.0204315185546875, 0.00731658935546875, 0.0162353515625, 0.038421630859375, -0.01493072509765625, 0.01300811767578125, 0.01018524169921875, 0.005413055419921875, 0.01274871826171875, -0.02288818359375, -0.036163330078125, -0.0228118896484375, -0.0033740997314453125, 0.00743865966796875, -0.00579071044921875, -0.0853271484375, -0.06072998046875, 0.019927978515625, 0.0255889892578125, 0.008453369140625, -0.094970703125, 0.041656494140625, -0.028961181640625, 0.053375244140625, -0.0224456787109375, 0.045318603515625, -0.006900787353515625, -0.0008339881896972656, -0.041595458984375, -0.0179443359375, -0.00004506111145019531, 0.036895751953125, 0.0179290771484375, 0.0244598388671875, 0.033111572265625, -0.0261383056640625, -0.0191650390625, 0.039825439453125, 0.01084136962890625, 0.076416015625, -0.0083160400390625, -0.02374267578125, 0.006114959716796875, -0.002628326416015625, -0.0003407001495361328, -0.024444580078125, -0.004627227783203125, -0.03448486328125, -0.00930023193359375, -0.03302001953125, -0.01454925537109375, -0.0294647216796875, -0.06378173828125, -0.096923828125, 0.055450439453125, -0.0146026611328125, -0.032806396484375, -0.0027561187744140625, -0.0133209228515625, -0.0287933349609375, 0.02581787109375, -0.007526397705078125, -0.0165863037109375, 0.017059326171875, 0.053314208984375, -0.000015676021575927734, -0.004238128662109375, 0.0111236572265625, 0.0086669921875, -0.008758544921875, 0.0246124267578125, 0.014862060546875, -0.05450439453125, -0.01568603515625, 0.008819580078125, 0.0435791015625, 0.0767822265625, 0.01190948486328125, 0.02740478515625, 0.0193939208984375, -0.06683349609375, -0.020538330078125, -0.006183624267578125, 0.0010347366333007812, 0.0277557373046875, 0.0792236328125, 0.0623779296875, 0.0157928466796875, -0.0616455078125, -0.04254150390625, -0.06732177734375, 0.00860595703125, 0.0036182403564453125, 0.0036869049072265625, -0.06573486328125, 0.025543212890625, 0.037261962890625, 0.018829345703125, -0.0042572021484375, -0.01421356201171875, -0.0174560546875, -0.028228759765625, -0.020782470703125, -0.0031528472900390625, -0.006855010986328125, -0.0479736328125, 0.031585693359375, -0.0005092620849609375, 0.03753662109375, -0.00818634033203125, 0.0301361083984375, 0.036773681640625, 0.06072998046875, 0.00672149658203125, 0.007152557373046875, -0.032257080078125, 0.0287628173828125, 0.0005102157592773438, 0.0435791015625, -0.04351806640625, -0.0247039794921875, -0.00537109375, 0.0218048095703125, 0.004688262939453125, 0.032073974609375, -0.0230865478515625, 0.0285797119140625, -0.0059814453125, 0.048126220703125, 0.0002644062042236328, -0.042999267578125, -0.016143798828125, 0.041412353515625, -0.0024204254150390625, -0.03753662109375, 0.037200927734375, -0.05615234375, 0.006130218505859375, 0.0262908935546875, 0.002262115478515625, -0.01413726806640625, -0.006839752197265625, -0.02752685546875, 0.0156402587890625, -0.0013103485107421875 ]
474fb87acfb514f4d9c9457472cf3929ea27693e
Wordpress Stackexchange Q: How to check if user is in back end? In my application, i have one form. Now if user is in front end i want to display the title but if he is in back end i do not want to display it. I do not want to check it based on user role. A: Use is_admin(). It checks if you're viewing an Admin page, means the backend.
Q: How to check if user is in back end? In my application, i have one form. Now if user is in front end i want to display the title but if he is in back end i do not want to display it. I do not want to check it based on user role. A: Use is_admin(). It checks if you're viewing an Admin page, means the backend. A: Use is_admin() to check if the the current page is an administration page. Despite its name this is not a user role check. It returns always FALSE on front end, no matter what role the user has.
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:418005", "question_score": "20", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45381" }
[ 0.06256103515625, 0.043182373046875, -0.007678985595703125, -0.0304412841796875, 0.027435302734375, -0.03936767578125, -0.01276397705078125, -0.0579833984375, 0.033203125, 0.01395416259765625, -0.0023937225341796875, -0.01812744140625, 0.004390716552734375, -0.028717041015625, -0.048828125, -0.025054931640625, -0.00156402587890625, 0.0281982421875, 0.0153656005859375, -0.017822265625, 0.0164031982421875, -0.0197906494140625, -0.0011749267578125, -0.0031642913818359375, 0.01239776611328125, -0.032684326171875, 0.040679931640625, -0.01171875, 0.006374359130859375, -0.0221710205078125, 0.01983642578125, 0.0013742446899414062, 0.0119171142578125, -0.022125244140625, 0.0506591796875, 0.016204833984375, -0.0085601806640625, 0.01446533203125, 0.044464111328125, -0.04400634765625, 0.04180908203125, -0.0103607177734375, -0.021392822265625, 0.04327392578125, -0.0236663818359375, -0.047882080078125, 0.04693603515625, -0.028564453125, 0.004611968994140625, -0.027923583984375, 0.01435089111328125, -0.039154052734375, 0.028167724609375, 0.01690673828125, -0.0074310302734375, 0.0217132568359375, 0.03985595703125, -0.051483154296875, 0.057281494140625, -0.02044677734375, -0.054046630859375, -0.05938720703125, 0.039276123046875, -0.04888916015625, 0.009613037109375, -0.0061187744140625, -0.0267181396484375, 0.034515380859375, -0.038787841796875, -0.01409149169921875, -0.0032329559326171875, -0.0323486328125, 0.004100799560546875, 0.028472900390625, -0.047882080078125, -0.0259246826171875, 0.03106689453125, -0.01470184326171875, 0.017425537109375, 0.00667572021484375, -0.07135009765625, 0.0247955322265625, -0.08831787109375, -0.0139312744140625, 0.00733184814453125, 0.027191162109375, -0.045867919921875, 0.000007092952728271484, -0.019805908203125, 0.01531982421875, -0.01399993896484375, -0.016265869140625, -0.01203155517578125, 0.0122528076171875, 0.003154754638671875, -0.01593017578125, 0.0513916015625, 0.07806396484375, -0.025299072265625, -0.0297698974609375, -0.020263671875, -0.0193023681640625, -0.04302978515625, -0.01496124267578125, 0.019439697265625, 0.0311126708984375, -0.029449462890625, -0.032012939453125, 0.032745361328125, 0.0196990966796875, -0.0028018951416015625, 0.018524169921875, -0.03790283203125, -0.026641845703125, -0.0296630859375, 0.038421630859375, -0.04437255859375, 0.00021469593048095703, 0.0053863525390625, 0.023773193359375, -0.010894775390625, 0.01160430908203125, 0.039154052734375, -0.0587158203125, 0.033782958984375, 0.013275146484375, -0.02630615234375, -0.032470703125, -0.0295257568359375, 0.02386474609375, -0.0091552734375, 0.022308349609375, 0.00931549072265625, -0.00502777099609375, -0.0306396484375, -0.011474609375, -0.014495849609375, 0.042266845703125, -0.01898193359375, 0.0308380126953125, -0.0006470680236816406, -0.07501220703125, -0.0163726806640625, 0.01255035400390625, -0.040924072265625, -0.0001842975616455078, 0.0103759765625, 0.0149078369140625, -0.01354217529296875, -0.0792236328125, 0.0238494873046875, -0.055419921875, -0.03765869140625, 0.03594970703125, 0.05438232421875, 0.055328369140625, 0.016387939453125, 0.03289794921875, -0.0037784576416015625, 0.04962158203125, 0.01282501220703125, 0.0250396728515625, 0.06634521484375, -0.040679931640625, -0.0293731689453125, -0.05828857421875, -0.06890869140625, -0.0037746429443359375, 0.0236663818359375, -0.0195770263671875, 0.038482666015625, -0.021636962890625, 0.0218353271484375, 0.01039886474609375, 0.003513336181640625, 0.0284271240234375, -0.002063751220703125, 0.028778076171875, 0.01551055908203125, 0.0034275054931640625, -0.009735107421875, -0.01129150390625, 0.0645751953125, -0.00958251953125, -0.025390625, 0.01214599609375, -0.01033782958984375, 0.0168914794921875, 0.025543212890625, 0.00453948974609375, -0.010528564453125, 0.0247955322265625, 0.039337158203125, 0.028839111328125, -0.0227813720703125, -0.064208984375, 0.0100555419921875, 0.005954742431640625, -0.0266876220703125, 0.001678466796875, 0.059722900390625, -0.0007066726684570312, 0.0004954338073730469, -0.017608642578125, -0.04669189453125, -0.03143310546875, -0.005641937255859375, 0.0025501251220703125, 0.0246429443359375, 0.050140380859375, -0.00827789306640625, 0.0205078125, -0.01139068603515625, -0.055023193359375, -0.01268768310546875, 0.0174407958984375, -0.0152740478515625, -0.00818634033203125, -0.0114593505859375, -0.007709503173828125, -0.0233001708984375, 0.0175323486328125, -0.0243377685546875, 0.0090179443359375, 0.0238800048828125, 0.00799560546875, 0.01052093505859375, 0.01435089111328125, 0.07318115234375, 0.03289794921875, 0.040435791015625, -0.049713134765625, 0.055511474609375, 0.01270294189453125, -0.0181732177734375, 0.0021648406982421875, 0.0075836181640625, -0.0966796875, -0.0113067626953125, 0.07049560546875, 0.030975341796875, 0.0164794921875, 0.0001137852668762207, 0.0181884765625, -0.005466461181640625, -0.07305908203125, -0.0009350776672363281, 0.01415252685546875, -0.0050201416015625, 0.035980224609375, -0.06671142578125, 0.0037670135498046875, 0.041748046875, -0.0283660888671875, -0.025848388671875, 0.07476806640625, 0.00005614757537841797, 0.010162353515625, -0.00201416015625, -0.0111541748046875, -0.00010722875595092773, -0.0181427001953125, -0.0180816650390625, -0.006866455078125, -0.004253387451171875, -0.0191497802734375, -0.00445556640625, -0.005176544189453125, -0.00860595703125, -0.0203399658203125, 0.0210723876953125, -0.01236724853515625, 0.0175018310546875, 0.0265655517578125, 0.0682373046875, 0.010589599609375, -0.04876708984375, -0.0239105224609375, 0.0716552734375, 0.0274658203125, -0.02642822265625, -0.0059661865234375, -0.03240966796875, -0.00875091552734375, -0.003528594970703125, -0.048309326171875, 0.01776123046875, -0.0026187896728515625, 0.050323486328125, 0.038238525390625, 0.053863525390625, -0.0155029296875, -0.00257110595703125, 0.043853759765625, -0.039031982421875, -0.038726806640625, -0.01367950439453125, 0.010284423828125, -0.0003955364227294922, -0.00885772705078125, -0.01038360595703125, 0.037261962890625, 0.0298614501953125, -0.036895751953125, 0.003406524658203125, 0.01465606689453125, -0.02569580078125, 0.041748046875, 0.00848388671875, 0.0084686279296875, -0.0721435546875, -0.00838470458984375, 0.0195465087890625, -0.0111846923828125, 0.0244903564453125, -0.023956298828125, 0.003749847412109375, 0.01360321044921875, -0.039215087890625, -0.0281524658203125, -0.03948974609375, -0.048492431640625, -0.022613525390625, -0.00299835205078125, -0.01073455810546875, 0.0275726318359375, 0.0004334449768066406, 0.0022068023681640625, 0.020751953125, -0.029815673828125, -0.0165557861328125, -0.01849365234375, -0.0396728515625, -0.0281219482421875, 0.004673004150390625, -0.0247802734375, -0.01058197021484375, 0.055938720703125, -0.004421234130859375, -0.08074951171875, -0.02996826171875, 0.041839599609375, 0.0045623779296875, 0.0037441253662109375, -0.03558349609375, 0.0175018310546875, -0.017791748046875, 0.0286865234375, -0.0643310546875, -0.044525146484375, 0.033843994140625, -0.035919189453125, -0.00751495361328125, -0.055267333984375, 0.00673675537109375, -0.0010061264038085938, -0.009765625, -0.0001049041748046875, 0.045684814453125, -0.0305328369140625, -0.04901123046875, 0.037200927734375, -0.041290283203125, 0.0022487640380859375, 0.0204315185546875, -0.03955078125, 0.0159912109375, -0.0047454833984375, 0.044525146484375, 0.038360595703125, -0.0250244140625, 0.027008056640625, -0.020294189453125, 0.0169677734375, 0.0435791015625, 0.006832122802734375, -0.01739501953125, -0.0347900390625, 0.016632080078125, -0.01264190673828125, 0.006389617919921875, 0.0088043212890625, 0.03839111328125, 0.043487548828125, -0.08514404296875, 0.04449462890625, -0.0266265869140625, 0.01934814453125, -0.042236328125, -0.02593994140625, 0.0086822509765625, 0.13037109375, -0.039642333984375, -0.004535675048828125, 0.0258941650390625, -0.004856109619140625, -0.0309600830078125, 0.0255584716796875, -0.084716796875, 0.0034694671630859375, -0.05511474609375, 0.0016469955444335938, -0.0148468017578125, -0.003124237060546875, -0.04534912109375, 0.028472900390625, -0.0288238525390625, -0.01434326171875, 0.00711822509765625, -0.07232666015625, 0.0194244384765625, -0.0215606689453125, -0.0168609619140625, -0.0251007080078125, 0.0008645057678222656, -0.07867431640625, -0.054962158203125, -0.0088958740234375, -0.000637054443359375, 0.03204345703125, 0.000013470649719238281, 0.0008697509765625, 0.0041961669921875, 0.031524658203125, 0.00034928321838378906, 0.0017404556274414062, -0.007049560546875, 0.002300262451171875, 0.0302276611328125, -0.029327392578125, -0.029937744140625, -0.0151824951171875, -0.0194091796875, -0.001522064208984375, -0.0140533447265625, 0.0145111083984375, -0.036224365234375, -0.0218658447265625, -0.01329803466796875, -0.013763427734375, -0.03173828125, -0.0282135009765625, -0.0020313262939453125, -0.01107025146484375, -0.005954742431640625, -0.00881195068359375, -0.006317138671875, -0.0130615234375, 0.05059814453125, -0.004222869873046875, -0.030120849609375, -0.00031280517578125, 0.041259765625, 0.0111236572265625, -0.0304107666015625, -0.014068603515625, -0.018310546875, 0.048492431640625, -0.007297515869140625, 0.0235443115234375, 0.0242462158203125, -0.0413818359375, 0.0654296875, 0.0214996337890625, 0.0103759765625, 0.01219940185546875, 0.01132965087890625, -0.0181732177734375, -0.075439453125, 0.048004150390625, -0.00951385498046875, -0.021087646484375, -0.028778076171875, -0.01125335693359375, 0.00943756103515625, -0.01473236083984375, -0.0018310546875, -0.00691986083984375, 0.034393310546875, 0.0011539459228515625, -0.0128631591796875, 0.002796173095703125, -0.009002685546875, 0.0195159912109375, 0.01058197021484375, 0.00469207763671875, -0.005126953125, 0.0170440673828125, -0.0240325927734375, -0.016204833984375, -0.03125, 0.00272369384765625, 0.01514434814453125, -0.041778564453125, -0.0116424560546875, -0.0046234130859375, -0.01192474365234375, 0.07537841796875, -0.0149078369140625, -0.066650390625, 0.0169219970703125, -0.04071044921875, -0.00399017333984375, 0.03851318359375, 0.05169677734375, 0.0279083251953125, -0.0416259765625, -0.01104736328125, -0.0115814208984375, 0.03240966796875, -0.0289154052734375, -0.031280517578125, 0.006702423095703125, -0.032318115234375, 0.007442474365234375, 0.00742340087890625, 0.068115234375, -0.0081024169921875, 0.041473388671875, -0.0282745361328125, 0.010101318359375, 0.0226287841796875, -0.01031494140625, -0.0087127685546875, 0.042633056640625, -0.004039764404296875, -0.01715087890625, 0.05438232421875, -0.0153656005859375, 0.005825042724609375, 0.057464599609375, 0.019561767578125, 0.054962158203125, 0.0214080810546875, -0.039764404296875, -0.0085601806640625, -0.0195159912109375, 0.07958984375, -0.0099639892578125, -0.0709228515625, -0.0721435546875, -0.005504608154296875, 0.060699462890625, -0.0421142578125, -0.0240478515625, 0.005313873291015625, -0.0054168701171875, 0.038818359375, 0.0318603515625, -0.04486083984375, 0.04791259765625, 0.042327880859375, -0.059234619140625, -0.043365478515625, 0.02386474609375, -0.01538848876953125, 0.0335693359375, -0.0305023193359375, -0.047943115234375, -0.00007581710815429688, -0.0116729736328125, 0.009552001953125, -0.0285186767578125, 0.01373291015625, -0.004703521728515625, 0.0022640228271484375, 0.04449462890625, 0.01322174072265625, -0.10430908203125, 0.004734039306640625, -0.07177734375, 0.0055694580078125, -0.0513916015625, -0.048553466796875, -0.018707275390625, 0.0078887939453125, 0.01548004150390625, 0.0227813720703125, -0.004302978515625, -0.022857666015625, 0.0185089111328125, 0.0182342529296875, 0.013397216796875, 0.04132080078125, 0.00251007080078125, 0.08685302734375, -0.039215087890625, 0.07415771484375, -0.0025634765625, 0.0027866363525390625, -0.052581787109375, -0.01081085205078125, 0.003345489501953125, -0.01355743408203125, -0.007518768310546875, -0.031463623046875, 0.01904296875, -0.0149688720703125, 0.01381683349609375, 0.0027408599853515625, -0.01488494873046875, 0.021697998046875, 0.0027561187744140625, -0.0220947265625, -0.0156402587890625, 0.033111572265625, 0.01136016845703125, -0.035552978515625, -0.005474090576171875, -0.00765228271484375, -0.0235137939453125, -0.046600341796875, 0.0063018798828125, 0.0306396484375, -0.01297760009765625, 0.01543426513671875, -0.05462646484375, 0.0187835693359375, 0.08685302734375, 0.0092010498046875, 0.0565185546875, 0.04376220703125, 0.0170440673828125, 0.0465087890625, 0.0176849365234375, -0.024627685546875, 0.009979248046875, 0.0277099609375, -0.00229644775390625, -0.00823974609375, 0.007434844970703125, -0.0115814208984375, 0.0157012939453125, 0.08294677734375, 0.0748291015625, -0.1090087890625, -0.00008106231689453125, 0.0009102821350097656, 0.0015935897827148438, 0.01507568359375, -0.032012939453125, 0.006561279296875, -0.042266845703125, 0.08721923828125, 0.0190277099609375, 0.0003814697265625, 0.035980224609375, -0.0265045166015625, 0.0025787353515625, 0.006610870361328125, 0.09710693359375, 0.0082550048828125, 0.009979248046875, -0.06463623046875, -0.018341064453125, -0.0096435546875, -0.02496337890625, 0.0355224609375, -0.0031185150146484375, 0.0035152435302734375, -0.03564453125, 0.0229644775390625, 0.016082763671875, -0.015625, 0.050048828125, 0.047607421875, 0.0284576416015625, 0.0704345703125, 0.004695892333984375, -0.005886077880859375, 0.043670654296875, -0.0233001708984375, -0.0194854736328125, -0.0174713134765625, -0.00977325439453125, -0.007205963134765625, -0.050994873046875, 0.01343536376953125, -0.05999755859375, -0.0004837512969970703, -0.013916015625, -0.03790283203125, 0.02667236328125, 0.060150146484375, -0.04888916015625, 0.0185394287109375, -0.00846099853515625, -0.007755279541015625, -0.007129669189453125, 0.01458740234375, -0.033599853515625, 0.007320404052734375, -0.004787445068359375, -0.01117706298828125, -0.0099639892578125, 0.00875091552734375, -0.044281005859375, 0.0200347900390625, -0.0020961761474609375, 0.0165557861328125, 0.0089874267578125, -0.004093170166015625, -0.005096435546875, -0.0208587646484375, -0.0364990234375, 0.021942138671875, 0.004474639892578125, 0.04510498046875, -0.039642333984375, -0.0066986083984375, 0.010650634765625, 0.03387451171875, -0.0134124755859375, 0.01145172119140625, -0.00881195068359375, -0.021026611328125, -0.01180267333984375, 0.01058197021484375, -0.007297515869140625, 0.0296478271484375, -0.004703521728515625, 0.00609588623046875, 0.027740478515625, -0.0008463859558105469, 0.06597900390625, -0.06884765625, -0.0180511474609375, 0.00475311279296875, 0.0191497802734375, 0.02490234375, 0.02593994140625, 0.034576416015625, -0.051666259765625, 0.0090789794921875, 0.056488037109375, -0.03564453125, -0.0169219970703125, 0.0075836181640625, 0.0236053466796875, -0.050689697265625, 0.0220947265625, -0.0325927734375, 0.04510498046875, 0.024261474609375, -0.003753662109375, 0.0153656005859375, 0.0220184326171875, -0.0377197265625, -0.0157623291015625, 0.00310516357421875, 0.0194549560546875, -0.042755126953125, -0.00015103816986083984, 0.036651611328125, 0.03985595703125, 0.006610870361328125, -0.0413818359375, 0.00604248046875, 0.02630615234375, 0.005809783935546875, -0.01560211181640625, 0.0113525390625, 0.0167999267578125, -0.005680084228515625, 0.0018720626831054688, -0.01666259765625, 0.039215087890625, 0.071533203125, -0.0112762451171875, 0.005504608154296875, 0.00141143798828125, 0.03961181640625, -0.01148223876953125, -0.00939178466796875, -0.024078369140625, -0.0032958984375, -0.0216827392578125, -0.00852203369140625, 0.01300811767578125, 0.0157623291015625, 0.030059814453125, -0.0027256011962890625, 0.0230865478515625, -0.006320953369140625, -0.01514434814453125, 0.02301025390625, -0.0016164779663085938, 0.01425933837890625, -0.02337646484375, -0.0210113525390625, -0.003063201904296875, 0.017578125, 0.00594329833984375, 0.0122222900390625, -0.0183563232421875, 0.0169525146484375, 0.057525634765625, -0.0030803680419921875, 0.0212249755859375, 0.0010776519775390625, 0.0012083053588867188, -0.00864410400390625, -0.0011510848999023438, 0.005611419677734375, -0.004817962646484375, -0.03973388671875, 0.028594970703125, 0.028900146484375, -0.0217132568359375, 0.0269927978515625, -0.0008749961853027344, -0.004756927490234375, 0.026153564453125, 0.0008716583251953125, 0.042510986328125, 0.006000518798828125, -0.0142974853515625, 0.00916290283203125, 0.014434814453125, -0.03857421875, -0.0175323486328125, 0.024688720703125, -0.05914306640625, 0.05255126953125, 0.036773681640625, -0.019683837890625, 0.01025390625, 0.0210418701171875, 0.0115509033203125, 0.01218414306640625, 0.0194854736328125, 0.01580810546875, -0.0255279541015625, -0.0081329345703125, 0.019683837890625, 0.0136260986328125, 0.013641357421875, -0.00595855712890625, 0.0201568603515625, 0.0234222412109375, -0.0282745361328125, 0.0256805419921875, -0.05242919921875, -0.03875732421875, 0.019989013671875, -0.02252197265625, -0.0098724365234375, 0.01407623291015625, -0.0479736328125, 0.046630859375, 0.033782958984375, 0.01030731201171875, 0.05633544921875, 0.003566741943359375, 0.001461029052734375, -0.0411376953125, -0.0169677734375, -0.0234527587890625, -0.022125244140625, -0.004070281982421875, 0.022613525390625, 0.01529693603515625, 0.0120697021484375, -0.029266357421875, 0.009490966796875, -0.0222320556640625, -0.0452880859375, -0.006988525390625, -0.02264404296875, -0.00396728515625, 0.028228759765625, -0.030059814453125, 0.0469970703125, -0.01120758056640625, -0.0029315948486328125, 0.045928955078125, 0.0176544189453125, -0.03076171875, 0.023529052734375, 0.052886962890625, 0.006580352783203125, -0.003475189208984375, 0.0287322998046875, -0.0235137939453125, 0.006618499755859375, 0.0018377304077148438, 0.000766754150390625, -0.0268707275390625, -0.0016565322875976562, -0.0064544677734375, -0.01016998291015625, -0.01291656494140625, 0.000007808208465576172, 0.007080078125, -0.035064697265625, 0.0009832382202148438, -0.0045318603515625, 0.036590576171875, -0.0310211181640625, 0.0034847259521484375, -0.01065826416015625, -0.06103515625, 0.031158447265625, -0.004528045654296875, 0.017333984375, 0.005428314208984375, 0.0213623046875, -0.03289794921875, 0.04437255859375, -0.0186614990234375, -0.044891357421875, 0.019622802734375, 0.00909423828125, 0.04229736328125, -0.0227813720703125, -0.03924560546875, -0.01226806640625, -0.0009474754333496094, 0.034149169921875, -0.00460052490234375, -0.01120758056640625, -0.02899169921875, 0.062744140625, -0.00971221923828125, -0.017852783203125, -0.0010194778442382812, 0.0343017578125, -0.0001914501190185547, -0.052093505859375, 0.021392822265625, 0.01275634765625, -0.0338134765625, -0.0823974609375, 0.0740966796875, -0.0355224609375, -0.01953125, -0.01861572265625, 0.0277557373046875, 0.00499725341796875, -0.007904052734375, -0.0108489990234375, -0.0215606689453125, -0.00838470458984375, 0.0018978118896484375, 0.040618896484375, -0.01528167724609375, 0.041015625, 0.04388427734375, -0.08245849609375, 0.0167236328125, -0.032501220703125, 0.01404571533203125, 0.020843505859375, 0.00921630859375, 0.01119232177734375, 0.040283203125, -0.028045654296875, 0.0036106109619140625, -0.01202392578125, -0.0286865234375, 0.004055023193359375, -0.0086212158203125, 0.011474609375, -0.0097503662109375, 0.0170440673828125, 0.01558685302734375, -0.0019311904907226562, -0.0233001708984375, -0.041107177734375, -0.034881591796875, -0.013885498046875, -0.0015115737915039062, 0.0183868408203125, -0.08074951171875, 0.006839752197265625, 0.038604736328125, -0.03759765625, 0.00051116943359375, 0.039276123046875, -0.054718017578125, 0.02197265625, 0.034393310546875, 0.00975799560546875, -0.0731201171875, -0.045318603515625, 0.044586181640625, -0.03863525390625, -0.04925537109375, 0.01181793212890625, 0.0310211181640625, -0.0218963623046875, -0.0099639892578125, 0.036163330078125, -0.0101318359375, -0.029296875, 0.00327301025390625, 0.0218963623046875, 0.022857666015625, -0.01392364501953125, -0.05145263671875, -0.0154876708984375, 0.01934814453125, -0.0007939338684082031, 0.03155517578125, -0.01456451416015625, 0.052490234375, 0.0101776123046875, 0.046875, -0.007312774658203125, 0.050323486328125, -0.007312774658203125, 0.03240966796875, 0.0269012451171875, -0.0208282470703125, 0.06109619140625, -0.01508331298828125, -0.01763916015625, 0.0090484619140625, -0.033721923828125, -0.0792236328125, 0.0306549072265625, -0.00449371337890625, 0.033843994140625, 0.031646728515625 ]
763b8dff1a80c1faa331c5a290ba65e88740ee82
Wordpress Stackexchange Q: Using Orderby and meta_value_num to order numbers first then strings I have a list of products, each with a price in a custom field stored as text such as "2.50" or "5.00" and I am displaying them on the page with a custom query that sorts by the price: if(!$wp_query) { global $wp_query; } $args = array( 'meta_key' => 'price', 'orderby' => 'meta_value_num', 'order' => 'ASC' ); query_posts( array_merge( $args , $wp_query->query ) ); This works fine for the prices, but some prices are "POA" and I would like to show them last, however the above orders in such a way that "POA" is shown first. Is there any way to alter this, or a quick hack I could use to sort the array afterwards and put any "POA" prices last? A: I found this solution by combining code by @bonger and https://stackoverflow.com/questions/18084199/wordpress-query-order-by-case-when And it works well. Function function filter_case($orderby = '') { $orderby .= "CASE WHEN wp_postmeta.meta_value RLIKE '^[0-9]' THEN '' ELSE wp_postmeta.meta_value END ASC, wp_postmeta.meta_value+0 ASC"; return $orderby; } Before Query add_filter( 'posts_orderby', 'filter_case' ); $wp_query = new WP_Query($args); remove_filter( 'posts_orderby', 'filter_case' );
Q: Using Orderby and meta_value_num to order numbers first then strings I have a list of products, each with a price in a custom field stored as text such as "2.50" or "5.00" and I am displaying them on the page with a custom query that sorts by the price: if(!$wp_query) { global $wp_query; } $args = array( 'meta_key' => 'price', 'orderby' => 'meta_value_num', 'order' => 'ASC' ); query_posts( array_merge( $args , $wp_query->query ) ); This works fine for the prices, but some prices are "POA" and I would like to show them last, however the above orders in such a way that "POA" is shown first. Is there any way to alter this, or a quick hack I could use to sort the array afterwards and put any "POA" prices last? A: I found this solution by combining code by @bonger and https://stackoverflow.com/questions/18084199/wordpress-query-order-by-case-when And it works well. Function function filter_case($orderby = '') { $orderby .= "CASE WHEN wp_postmeta.meta_value RLIKE '^[0-9]' THEN '' ELSE wp_postmeta.meta_value END ASC, wp_postmeta.meta_value+0 ASC"; return $orderby; } Before Query add_filter( 'posts_orderby', 'filter_case' ); $wp_query = new WP_Query($args); remove_filter( 'posts_orderby', 'filter_case' ); A: The OrderBy argument can take more then one parameter so the solution was to change : 'orderby' => 'meta_value_num', to: 'orderby' => 'meta_value meta_value_num',
wordpress
{ "language": "en", "length": 211, "provenance": "stackexchange_00019.jsonl.gz:418012", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45413" }
[ 0.04364013671875, 0.00844573974609375, 0.040283203125, -0.04498291015625, 0.0080718994140625, 0.0123748779296875, 0.016204833984375, -0.028961181640625, 0.0550537109375, 0.0126953125, -0.0227203369140625, -0.049560546875, 0.003719329833984375, -0.02630615234375, -0.032745361328125, -0.0233612060546875, 0.022674560546875, 0.0178985595703125, 0.01416015625, -0.00946807861328125, -0.0107879638671875, 0.0112762451171875, 0.0035762786865234375, 0.004390716552734375, 0.0294952392578125, -0.042144775390625, 0.06524658203125, -0.0716552734375, 0.06524658203125, -0.01328277587890625, 0.0264892578125, -0.0309295654296875, 0.00951385498046875, -0.031768798828125, 0.06170654296875, -0.0013227462768554688, 0.03387451171875, -0.01557159423828125, 0.045196533203125, -0.025390625, 0.036163330078125, -0.004291534423828125, -0.041015625, 0.0273284912109375, -0.05096435546875, -0.03961181640625, 0.030364990234375, 0.0162200927734375, 0.03778076171875, -0.00992584228515625, -0.0015964508056640625, -0.003101348876953125, 0.01445770263671875, -0.026123046875, -0.0205535888671875, -0.0227508544921875, -0.0274658203125, -0.0010967254638671875, 0.0147247314453125, -0.001300811767578125, 0.0104522705078125, 0.01490020751953125, 0.01059722900390625, 0.005252838134765625, -0.04095458984375, 0.02545166015625, 0.040313720703125, -0.01727294921875, 0.0003457069396972656, -0.039031982421875, 0.017242431640625, 0.0223388671875, 0.00363922119140625, -0.0188140869140625, 0.007747650146484375, -0.024139404296875, 0.012298583984375, -0.030426025390625, 0.0010986328125, 0.0189056396484375, 0.0132904052734375, -0.020172119140625, -0.0157012939453125, -0.0240020751953125, 0.0130157470703125, -0.018768310546875, -0.01021575927734375, -0.0016469955444335938, -0.01971435546875, -0.054168701171875, -0.01007080078125, 0.0105743408203125, -0.043365478515625, -0.0251312255859375, -0.03314208984375, -0.03533935546875, 0.0157318115234375, 0.030487060546875, -0.016082763671875, -0.03302001953125, 0.01438140869140625, -0.027557373046875, -0.025604248046875, -0.0054779052734375, -0.00923919677734375, 0.0123443603515625, -0.0024814605712890625, 0.00914764404296875, 0.029510498046875, 0.038055419921875, -0.0094757080078125, 0.00008553266525268555, -0.004222869873046875, -0.03216552734375, 0.004329681396484375, 0.01448822021484375, -0.022064208984375, 0.048797607421875, 0.021759033203125, 0.0048980712890625, 0.0156402587890625, 0.026824951171875, 0.053375244140625, -0.05181884765625, 0.032196044921875, 0.0396728515625, -0.049041748046875, -0.0626220703125, -0.06573486328125, 0.08038330078125, -0.005985260009765625, -0.0043182373046875, 0.0001977682113647461, 0.00037026405334472656, -0.044158935546875, -0.0268707275390625, 0.01010894775390625, -0.0184173583984375, 0.01348876953125, 0.0011281967163085938, 0.020294189453125, -0.019989013671875, 0.016021728515625, 0.0214691162109375, -0.0290069580078125, -0.01528167724609375, -0.00955963134765625, 0.0222015380859375, -0.004016876220703125, -0.01270294189453125, 0.01276397705078125, -0.0284423828125, 0.0499267578125, -0.001987457275390625, -0.07159423828125, 0.00968170166015625, -0.002864837646484375, -0.00443267822265625, -0.058197021484375, -0.04315185546875, -0.021575927734375, -0.0193634033203125, -0.006534576416015625, -0.07049560546875, -0.07501220703125, 0.038726806640625, -0.0120849609375, -0.01861572265625, 0.00994110107421875, 0.0389404296875, -0.01082611083984375, -0.0015888214111328125, 0.004070281982421875, 0.0237274169921875, -0.01163482666015625, 0.017425537109375, 0.0191802978515625, 0.0038204193115234375, 0.0160675048828125, 0.01258087158203125, -0.038543701171875, -0.036590576171875, 0.043121337890625, -0.0384521484375, -0.05902099609375, 0.017578125, 0.0084075927734375, 0.0360107421875, -0.00579833984375, 0.00547027587890625, 0.083251953125, 0.0229034423828125, -0.08428955078125, 0.07061767578125, 0.0023250579833984375, -0.0322265625, -0.01381683349609375, -0.009033203125, 0.0031871795654296875, -0.0261688232421875, -0.0254669189453125, 0.0423583984375, -0.0159759521484375, 0.020843505859375, -0.061767578125, 0.032562255859375, -0.0289154052734375, 0.05523681640625, -0.049713134765625, 0.004436492919921875, 0.042938232421875, -0.02581787109375, -0.0311126708984375, 0.07037353515625, -0.0037631988525390625, -0.040008544921875, 0.01438140869140625, 0.0552978515625, 0.0024242401123046875, 0.012481689453125, -0.00839996337890625, -0.05743408203125, -0.006053924560546875, 0.0479736328125, 0.0250701904296875, 0.0189666748046875, -0.034576416015625, -0.003795623779296875, 0.04974365234375, -0.0022449493408203125, 0.01532745361328125, 0.020172119140625, 0.01111602783203125, 0.0253753662109375, -0.0289764404296875, 0.0008068084716796875, -0.0290069580078125, -0.04150390625, 0.006534576416015625, 0.03192138671875, 0.039154052734375, 0.0107269287109375, 0.017578125, 0.0341796875, 0.052978515625, -0.01178741455078125, 0.00954437255859375, 0.0009298324584960938, 0.01253509521484375, 0.03936767578125, -0.0152587890625, -0.00994110107421875, 0.02734375, -0.0200042724609375, 0.0151214599609375, 0.0177001953125, 0.0003895759582519531, 0.046661376953125, 0.0093841552734375, -0.0104522705078125, -0.015960693359375, 0.007293701171875, -0.00176239013671875, -0.00981903076171875, 0.03857421875, 0.0180206298828125, 0.037689208984375, 0.0245208740234375, -0.034454345703125, 0.0108489990234375, 0.01532745361328125, -0.006687164306640625, -0.00014066696166992188, -0.0579833984375, -0.03924560546875, -0.028717041015625, -0.055419921875, 0.055908203125, 0.0216064453125, -0.0662841796875, 0.006862640380859375, 0.0248870849609375, -0.051849365234375, -0.0018072128295898438, -0.01045989990234375, -0.0196075439453125, 0.007198333740234375, 0.04541015625, -0.03411865234375, -0.038665771484375, -0.00191497802734375, 0.03240966796875, -0.0212249755859375, 0.033447265625, -0.0167083740234375, -0.0175933837890625, -0.057891845703125, -0.01467132568359375, 0.02752685546875, -0.058074951171875, -0.011932373046875, 0.048919677734375, -0.0243072509765625, 0.00830078125, -0.02728271484375, 0.007965087890625, -0.02581787109375, -0.0018320083618164062, -0.013336181640625, -0.02899169921875, -0.048614501953125, -0.010833740234375, 0.0418701171875, 0.0743408203125, 0.001422882080078125, -0.03338623046875, 0.0116119384765625, 0.032989501953125, -0.069091796875, -0.1258544921875, 0.0294036865234375, -0.0224761962890625, -0.003887176513671875, 0.00690460205078125, -0.002208709716796875, -0.007228851318359375, 0.021392822265625, -0.00812530517578125, 0.02117919921875, -0.0006937980651855469, -0.065185546875, -0.008544921875, -0.030029296875, 0.03570556640625, -0.030364990234375, 0.003376007080078125, -0.00446319580078125, 0.09808349609375, 0.0257720947265625, -0.05712890625, 0.0306243896484375, 0.019866943359375, -0.0222320556640625, 0.038055419921875, 0.00795745849609375, -0.0684814453125, -0.03619384765625, -0.023590087890625, 0.06427001953125, -0.0009222030639648438, 0.004352569580078125, 0.04620361328125, -0.01299285888671875, -0.0005731582641601562, 0.01280975341796875, 0.03704833984375, 0.01235198974609375, -0.00708770751953125, 0.049591064453125, -0.0247955322265625, -0.0007882118225097656, -0.033966064453125, -0.026031494140625, 0.00698089599609375, 0.0307159423828125, 0.010528564453125, -0.0178985595703125, 0.018524169921875, -0.005115509033203125, -0.007045745849609375, 0.032684326171875, -0.0300750732421875, -0.01062774658203125, -0.00417327880859375, 0.0097198486328125, -0.0186004638671875, 0.0159149169921875, -0.04644775390625, 0.0009937286376953125, -0.0102386474609375, -0.00479888916015625, -0.004673004150390625, -0.015655517578125, -0.0215301513671875, -0.031402587890625, 0.06927490234375, 0.040985107421875, 0.0094757080078125, -0.00556182861328125, -0.058197021484375, -0.0021381378173828125, 0.08154296875, -0.03961181640625, -0.0233917236328125, 0.0305023193359375, 0.016693115234375, -0.024139404296875, 0.01366424560546875, -0.032470703125, -0.00946807861328125, -0.0546875, 0.0222015380859375, -0.011749267578125, -0.004608154296875, -0.017669677734375, 0.01555633544921875, -0.0340576171875, -0.02813720703125, 0.0186309814453125, -0.032470703125, -0.0014123916625976562, 0.0181427001953125, -0.0196380615234375, -0.00710296630859375, -0.001483917236328125, -0.01678466796875, -0.060455322265625, -0.024566650390625, 0.01373291015625, 0.0518798828125, 0.002910614013671875, -0.0163726806640625, 0.0157318115234375, 0.0655517578125, -0.030914306640625, -0.0032215118408203125, -0.0036773681640625, 0.0263214111328125, -0.0068511962890625, -0.021697998046875, -0.0308837890625, -0.045135498046875, -0.021026611328125, -0.0241241455078125, -0.000946044921875, 0.010528564453125, -0.011474609375, 0.006900787353515625, -0.0173187255859375, -0.01117706298828125, -0.050567626953125, -0.03399658203125, -0.02191162109375, 0.00322723388671875, -0.02362060546875, -0.001705169677734375, -0.0215606689453125, -0.0780029296875, 0.0006551742553710938, -0.033660888671875, -0.040130615234375, 0.0328369140625, 0.015716552734375, 0.0260772705078125, -0.004619598388671875, -0.023681640625, 0.0133514404296875, 0.0211944580078125, 0.01523590087890625, 0.0009851455688476562, -0.04620361328125, -0.034210205078125, 0.07098388671875, -0.00969696044921875, 0.01331329345703125, -0.01218414306640625, 0.00983428955078125, -0.021514892578125, -0.047943115234375, 0.03289794921875, -0.01381683349609375, 0.0164794921875, 0.024810791015625, -0.005218505859375, -0.035675048828125, 0.01611328125, 0.039764404296875, -0.002597808837890625, -0.01214599609375, -0.039459228515625, -0.03955078125, 0.00916290283203125, -0.02276611328125, 0.0204925537109375, 0.0017518997192382812, 0.013427734375, 0.01727294921875, 0.023101806640625, 0.014801025390625, -0.0285491943359375, 0.04754638671875, -0.053924560546875, 0.0411376953125, -0.0245513916015625, 0.0008029937744140625, -0.025787353515625, -0.01538848876953125, 0.07391357421875, -0.00905609130859375, -0.005664825439453125, -0.06097412109375, -0.0204620361328125, 0.0197296142578125, 0.0112762451171875, -0.017669677734375, 0.0224609375, 0.022003173828125, -0.005725860595703125, 0.00934600830078125, -0.0210418701171875, 0.00666046142578125, -0.0242767333984375, 0.00836181640625, 0.0163116455078125, -0.016510009765625, -0.047088623046875, 0.087158203125, -0.043365478515625, 0.03265380859375, -0.00475311279296875, 0.0206298828125, -0.00045180320739746094, 0.0261688232421875, 0.002899169921875, -0.0018968582153320312, 0.0177764892578125, 0.019622802734375, 0.03253173828125, 0.0237274169921875, -0.0295257568359375, 0.0246734619140625, -0.0528564453125, -0.0192413330078125, 0.05914306640625, 0.0171661376953125, 0.06634521484375, -0.0241546630859375, 0.0135498046875, 0.039642333984375, 0.00966644287109375, -0.016387939453125, -0.0323486328125, -0.01052093505859375, 0.001361846923828125, 0.02349853515625, 0.026092529296875, 0.0131683349609375, 0.04986572265625, -0.05029296875, 0.059356689453125, -0.0400390625, -0.042510986328125, 0.02679443359375, -0.008544921875, -0.029327392578125, -0.00998687744140625, -0.015228271484375, -0.0171356201171875, 0.005039215087890625, 0.06683349609375, -0.0160980224609375, 0.07159423828125, -0.043609619140625, -0.017242431640625, -0.0290985107421875, 0.0272064208984375, 0.003765106201171875, -0.00173187255859375, -0.027923583984375, 0.008636474609375, -0.0221710205078125, -0.021026611328125, 0.04376220703125, 0.0057830810546875, -0.025665283203125, -0.039093017578125, -0.00872039794921875, 0.043426513671875, -0.0219268798828125, -0.047119140625, -0.00867462158203125, -0.024688720703125, -0.006336212158203125, -0.0004911422729492188, -0.027557373046875, 0.06494140625, 0.00565338134765625, 0.041534423828125, 0.01438140869140625, 0.02960205078125, -0.01338958740234375, -0.00798797607421875, 0.00638580322265625, -0.03082275390625, -0.02508544921875, 0.01172637939453125, -0.06341552734375, -0.018402099609375, 0.03369140625, -0.00982666015625, 0.028411865234375, -0.0105438232421875, -0.01540374755859375, 0.0081024169921875, -0.01465606689453125, 0.01043701171875, 0.04486083984375, 0.0272064208984375, -0.0269622802734375, 0.0009541511535644531, -0.0011415481567382812, -0.034393310546875, 0.0311126708984375, -0.0008869171142578125, 0.032806396484375, 0.01473236083984375, -0.067626953125, 0.02386474609375, -0.00004953145980834961, 0.06414794921875, 0.047149658203125, -0.039093017578125, 0.063720703125, -0.0013914108276367188, -0.0284576416015625, 0.013763427734375, 0.07427978515625, 0.054412841796875, -0.02008056640625, -0.00972747802734375, 0.034271240234375, -0.026580810546875, 0.01001739501953125, 0.040557861328125, 0.04974365234375, -0.0428466796875, 0.004001617431640625, 0.010955810546875, -0.031646728515625, 0.0192108154296875, 0.0170440673828125, -0.0184478759765625, 0.0072784423828125, 0.01477813720703125, -0.01505279541015625, -0.0020313262939453125, 0.02459716796875, 0.01279449462890625, 0.01007080078125, 0.004192352294921875, 0.005184173583984375, -0.0031986236572265625, -0.046173095703125, -0.028717041015625, 0.03802490234375, -0.026336669921875, -0.0092926025390625, 0.01165771484375, -0.020050048828125, -0.035614013671875, -0.08319091796875, -0.046966552734375, -0.0081939697265625, -0.0302276611328125, 0.01959228515625, 0.0014495849609375, 0.04669189453125, 0.0186309814453125, 0.02569580078125, -0.033782958984375, -0.0005059242248535156, -0.004791259765625, 0.0178680419921875, -0.0178070068359375, -0.0107269287109375, 0.0150909423828125, -0.01085662841796875, 0.0009450912475585938, -0.00396728515625, -0.0157012939453125, -0.0105133056640625, 0.01202392578125, 0.06463623046875, -0.020538330078125, -0.03173828125, 0.026214599609375, 0.015869140625, -0.0208740234375, -0.007457733154296875, 0.01190948486328125, -0.056304931640625, -0.01432037353515625, 0.0026035308837890625, -0.0214080810546875, -0.00531768798828125, -0.004230499267578125, -0.061767578125, 0.04156494140625, -0.0257415771484375, 0.041046142578125, -0.021759033203125, 0.00392913818359375, 0.0285186767578125, 0.0027332305908203125, -0.0290679931640625, 0.07049560546875, 0.037200927734375, 0.0732421875, -0.0379638671875, -0.025146484375, 0.0389404296875, 0.069580078125, 0.022003173828125, 0.01107025146484375, -0.07171630859375, 0.017242431640625, 0.051788330078125, 0.05731201171875, 0.03448486328125, 0.060302734375, 0.0006284713745117188, 0.05328369140625, 0.041717529296875, -0.01971435546875, 0.02764892578125, -0.014129638671875, -0.032196044921875, 0.045318603515625, 0.0252685546875, 0.035736083984375, -0.0238189697265625, 0.0274505615234375, -0.036468505859375, -0.0185089111328125, 0.051788330078125, -0.051727294921875, 0.0125274658203125, 0.003936767578125, 0.02581787109375, -0.035675048828125, -0.067626953125, 0.0055389404296875, 0.032745361328125, 0.0201416015625, 0.018157958984375, 0.072021484375, 0.024566650390625, 0.0164031982421875, -0.01702880859375, 0.0279541015625, -0.00768280029296875, -0.038116455078125, 0.058380126953125, 0.00885772705078125, 0.0196685791015625, -0.0239105224609375, 0.031158447265625, -0.00405120849609375, 0.03662109375, -0.041778564453125, 0.0172271728515625, 0.018585205078125, -0.0159912109375, -0.006130218505859375, -0.0618896484375, -0.0203857421875, -0.03582763671875, -0.051971435546875, -0.061981201171875, 0.0012540817260742188, 0.00803375244140625, 0.0189208984375, -0.01462554931640625, 0.0020313262939453125, -0.012237548828125, -0.020416259765625, -0.0221710205078125, 0.0135040283203125, 0.038116455078125, 0.04730224609375, -0.0168609619140625, 0.06719970703125, -0.05242919921875, -0.0175628662109375, -0.069091796875, 0.0406494140625, 0.005313873291015625, 0.088134765625, -0.05487060546875, 0.02386474609375, -0.0172119140625, 0.03277587890625, 0.02239990234375, 0.00782012939453125, 0.0367431640625, 0.07110595703125, 0.023468017578125, -0.0008702278137207031, 0.051788330078125, 0.00020241737365722656, -0.04046630859375, -0.025360107421875, -0.0007829666137695312, 0.01324462890625, 0.00913238525390625, 0.001010894775390625, 0.037872314453125, -0.019744873046875, 0.0107421875, 0.00608062744140625, 0.015289306640625, -0.01224517822265625, 0.02166748046875, 0.019012451171875, 0.0322265625, 0.03546142578125, -0.01067352294921875, 0.00791168212890625, -0.062347412109375, 0.00777435302734375, -0.004535675048828125, 0.00933074951171875, -0.0003657341003417969, 0.044830322265625, 0.008880615234375, -0.05133056640625, 0.0078887939453125, -0.0037670135498046875, 0.0504150390625, -0.0006833076477050781, -0.02398681640625, 0.00521087646484375, -0.006740570068359375, -0.00791168212890625, 0.0237274169921875, 0.0322265625, 0.00856781005859375, 0.0108795166015625, 0.003520965576171875, 0.0141754150390625, -0.0103607177734375, -0.004283905029296875, 0.005878448486328125, -0.004138946533203125, 0.042236328125, 0.0003497600555419922, -0.0293426513671875, -0.0218505859375, 0.0286102294921875, -0.0487060546875, 0.07373046875, -0.0635986328125, -0.05908203125, -0.021453857421875, 0.046356201171875, -0.0187225341796875, 0.017913818359375, -0.0213775634765625, 0.023468017578125, -0.0022411346435546875, -0.06292724609375, 0.0562744140625, 0.03643798828125, 0.045745849609375, 0.0117645263671875, 0.0261077880859375, -0.032623291015625, 0.027740478515625, -0.00962066650390625, 0.0718994140625, 0.044189453125, -0.0102386474609375, 0.0406494140625, -0.01166534423828125, -0.03411865234375, 0.04302978515625, 0.009918212890625, -0.0236968994140625, 0.00983428955078125, 0.00884246826171875, -0.038299560546875, 0.0357666015625, 0.048370361328125, 0.0038013458251953125, 0.017608642578125, 0.01514434814453125, -0.0228424072265625, -0.029693603515625, 0.0114898681640625, -0.0302734375, -0.004367828369140625, 0.004970550537109375, -0.005191802978515625, 0.032379150390625, -0.0225067138671875, 0.01107025146484375, -0.03424072265625, 0.016876220703125, -0.00464630126953125, -0.0259857177734375, 0.0010290145874023438, -0.0120086669921875, -0.0013265609741210938, -0.019256591796875, -0.046905517578125, -0.01390838623046875, 0.00208282470703125, 0.003063201904296875, -0.01053619384765625, -0.049102783203125, 0.024322509765625, 0.0004477500915527344, -0.00732421875, 0.00612640380859375, -0.0003726482391357422, -0.006153106689453125, -0.0089569091796875, -0.0181121826171875, 0.01003265380859375, 0.0032958984375, -0.01062774658203125, 0.012237548828125, 0.0312042236328125, -0.05096435546875, -0.094482421875, 0.0219879150390625, -0.056427001953125, 0.0225677490234375, 0.0218048095703125, 0.02593994140625, 0.04931640625, -0.00893402099609375, -0.06494140625, 0.03985595703125, -0.0009527206420898438, -0.040008544921875, 0.003925323486328125, 0.0023250579833984375, -0.0172119140625, 0.03765869140625, 0.0153656005859375, -0.0057373046875, -0.029998779296875, -0.015625, -0.023773193359375, 0.024566650390625, -0.01323699951171875, -0.0028438568115234375, -0.056854248046875, -0.01244354248046875, -0.0198822021484375, -0.0073394775390625, -0.01334381103515625, 0.013671875, 0.00734710693359375, 0.01377105712890625, -0.009185791015625, 0.0198211669921875, 0.023284912109375, -0.012420654296875, 0.004451751708984375, -0.03955078125, -0.0204620361328125, -0.030364990234375, 0.04864501953125, -0.006683349609375, 0.0101776123046875, -0.01136016845703125, 0.015594482421875, -0.0005993843078613281, 0.0085296630859375, -0.01788330078125, 0.0027675628662109375, -0.049957275390625, -0.041473388671875, -0.0010700225830078125, -0.0036220550537109375, 0.0623779296875, -0.0030117034912109375, -0.00611114501953125, 0.003078460693359375, 0.01175689697265625, -0.0103912353515625, -0.07110595703125, -0.03741455078125, 0.031219482421875, -0.044586181640625, -0.051910400390625, -0.01357269287109375, 0.02777099609375, -0.03436279296875, -0.0295562744140625, -0.004749298095703125, -0.050201416015625, 0.042694091796875, 0.0307464599609375, 0.0161285400390625, 0.00972747802734375, 0.0389404296875, -0.0220489501953125, -0.043670654296875, 0.0054473876953125, 0.01299285888671875, -0.009674072265625, 0.016387939453125, 0.01059722900390625, 0.033172607421875, 0.0229644775390625, -0.022491455078125, 0.111572265625, 0.00986480712890625, 0.02642822265625, 0.0184783935546875, 0.00563812255859375, 0.06597900390625, -0.005718231201171875, -0.007373809814453125, -0.0191650390625, -0.0167388916015625, -0.035980224609375, -0.0098876953125, 0.01470184326171875, -0.0147552490234375, 0.0183258056640625 ]
04f2c86871f51afd1168f3ce35710203aa3907fe
Wordpress Stackexchange Q: Removing fields from the Media Uploader/Gallery I've been searching high and low for an answer. I simply want to remove the Alternate Text, Caption, Description and Link URL-fields from the uploader and gallery view. I seem that every thing else than this Media-thingy can be removed. Thanx for helping out:) A: You can do this via a filter. Add the following to functions.php. You can also add your own fields this way... // edit fields in media upload area add_filter('attachment_fields_to_edit', 'remove_media_upload_fields', 10000, 2); function remove_media_upload_fields( $form_fields, $post ) { // remove unnecessary fields unset( $form_fields['image-size'] ); unset( $form_fields['post_excerpt'] ); unset( $form_fields['post_content'] ); unset( $form_fields['url'] ); unset( $form_fields['image_url'] ); unset( $form_fields['align'] ); return $form_fields; } The example above strips out more than you need to but if you do a print_r() on the $form_fields variable you'll see what's available to add/remove.
Q: Removing fields from the Media Uploader/Gallery I've been searching high and low for an answer. I simply want to remove the Alternate Text, Caption, Description and Link URL-fields from the uploader and gallery view. I seem that every thing else than this Media-thingy can be removed. Thanx for helping out:) A: You can do this via a filter. Add the following to functions.php. You can also add your own fields this way... // edit fields in media upload area add_filter('attachment_fields_to_edit', 'remove_media_upload_fields', 10000, 2); function remove_media_upload_fields( $form_fields, $post ) { // remove unnecessary fields unset( $form_fields['image-size'] ); unset( $form_fields['post_excerpt'] ); unset( $form_fields['post_content'] ); unset( $form_fields['url'] ); unset( $form_fields['image_url'] ); unset( $form_fields['align'] ); return $form_fields; } The example above strips out more than you need to but if you do a print_r() on the $form_fields variable you'll see what's available to add/remove. A: Unfortunately it looks like this changed quite a bit in WP3.5 when they upgraded the media library. That filter's $form_fields parameter doesn't contain the defaults any more. The only solution I've found so far is to forcibly remove the markup from the view using buffering: This is extremely fragile - any change to the WordPress core might break this function wpse45562_remove_media_fields( $buffer ) { // remove the 'caption' block $buffer = preg_replace( '~<p>\s*<label\s*for="attachment_caption">.*?</p>~ims', '', $buffer ); // remove the 'alt text' block $buffer = preg_replace( '~<p>\s*<label\s*for="attachment_alt">.*?</p>~ims', '', $buffer ); // remove the 'description' box (and label separately) $buffer = preg_replace( '~<div\s*id="wp-attachment_content-editor.*?</div>~ims', '', $buffer ); $buffer = preg_replace( '~<label\s*for="content">.*?</label>~ims', '', $buffer ); return $buffer; } function wpse45562_media_strip_buffer_start() { ob_start("wpse45562_remove_media_fields"); } function wpse45562_media_strip_buffer_end() { ob_end_flush(); } add_action('admin_head', 'wpse45562_media_strip_buffer_start', 10, 1); add_action('admin_footer', 'wpse45562_media_strip_buffer_end', 10, 1); A: Since WP 3.5, the simplest way is to just remove fields with CSS: add_action('admin_head', 'custom_remove_attachment_fields'); function custom_remove_attachment_fields() { ?><style type='text/css'> .attachment-info .setting.has-description,/* Alternative Text */ .attachment-info #alt-text-description,/* Alternative Text description */ .attachment-info .setting[data-setting="title"], .attachment-info .setting[data-setting="caption"], .attachment-info .setting[data-setting="description"], .attachment-info .setting[data-setting="url"], .attachment-info .media-types.media-types-required-info /* Required info */ { display: none; } </style><?php } This is focused on images, but you can add anything to it... A: I know it's a really old question, but I was looking for a feature like this right now, and @Jake 's answer was the closest to the solution I got myself, which is adding to the style.css .media-sidebar .setting.has-description, .media-sidebar #alt-text-description, .media-sidebar .setting[data-setting="title"], .media-sidebar .setting[data-setting="caption"], .media-sidebar .setting[data-setting="description"], .media-sidebar .setting[data-setting="url"], .media-sidebar .media-types.media-types-required-info, .media-sidebar .compat-item { display: none !important; } this removed the whole meta fields part, leaving image details like file name, image size and upload date. A: The sanchothefat's Answer is correct, really Works like a charm. Just for increase his answer, you can use unset( $form_fields['image_alt'] ); to remove the Alternate Text. Thanks for Answering sanchothefat, it Helped me.
wordpress
{ "language": "en", "length": 449, "provenance": "stackexchange_00019.jsonl.gz:418050", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45562" }
[ 0.0262451171875, 0.0293426513671875, -0.01727294921875, 0.01419830322265625, 0.01404571533203125, -0.044921875, 0.051605224609375, -0.032470703125, -0.01059722900390625, 0.031707763671875, 0.03143310546875, -0.01464080810546875, -0.01395416259765625, -0.051971435546875, -0.00970458984375, -0.0193328857421875, -0.0225677490234375, 0.02923583984375, 0.029510498046875, -0.003643035888671875, 0.01409149169921875, -0.005359649658203125, 0.00862884521484375, -0.053253173828125, -0.00045418739318847656, 0.004230499267578125, 0.03289794921875, -0.00189971923828125, -0.01538848876953125, -0.0285797119140625, 0.01323699951171875, 0.0296173095703125, 0.00954437255859375, 0.03497314453125, -0.034820556640625, -0.00778961181640625, 0.012298583984375, 0.0078887939453125, 0.0022029876708984375, 0.0178070068359375, 0.0201416015625, -0.0004565715789794922, -0.013946533203125, -0.0307159423828125, -0.0237274169921875, -0.0209503173828125, 0.024017333984375, 0.00408935546875, 0.01093292236328125, 0.01544952392578125, -0.01361083984375, -0.0216522216796875, 0.0084686279296875, -0.0060272216796875, -0.0279693603515625, -0.0552978515625, -0.007427215576171875, 0.01190185546875, 0.03271484375, 0.007389068603515625, -0.03460693359375, -0.00867462158203125, -0.000118255615234375, -0.042572021484375, -0.0274658203125, 0.01218414306640625, -0.017913818359375, 0.01715087890625, -0.059967041015625, -0.031890869140625, 0.027496337890625, -0.065185546875, 0.028839111328125, -0.062347412109375, -0.01300811767578125, 0.05731201171875, -0.0247802734375, 0.00421142578125, 0.028533935546875, -0.0556640625, 0.0235748291015625, 0.00556182861328125, -0.0150909423828125, 0.0010986328125, 0.019287109375, 0.02117919921875, 0.0026226043701171875, -0.02484130859375, -0.0002772808074951172, -0.0047454833984375, -0.003780364990234375, -0.0706787109375, -0.01442718505859375, 0.03643798828125, 0.013702392578125, -0.0283966064453125, 0.0654296875, 0.032012939453125, 0.041351318359375, -0.0136260986328125, 0.0174407958984375, -0.054412841796875, 0.00357818603515625, -0.006862640380859375, 0.0260009765625, 0.010162353515625, -0.03472900390625, -0.056854248046875, 0.033538818359375, 0.0274658203125, -0.01480865478515625, 0.006671905517578125, -0.01380157470703125, 0.01983642578125, -0.040924072265625, 0.032196044921875, -0.0161285400390625, -0.010345458984375, -0.03802490234375, 0.03369140625, -0.0267486572265625, -0.0163116455078125, -0.01715087890625, -0.02996826171875, 0.00824737548828125, -0.030731201171875, -0.037322998046875, 0.055572509765625, 0.01352691650390625, 0.03668212890625, -0.0517578125, 0.01715087890625, 0.080078125, 0.01561737060546875, 0.0179290771484375, -0.02850341796875, 0.0025119781494140625, -0.0190887451171875, 0.016632080078125, 0.01253509521484375, 0.01297760009765625, -0.0574951171875, 0.01434326171875, 0.03955078125, -0.004444122314453125, 0.022125244140625, 0.0243072509765625, 0.002010345458984375, -0.0254974365234375, -0.04638671875, 0.0036678314208984375, -0.009735107421875, 0.044769287109375, 0.02020263671875, -0.0147552490234375, -0.02734375, 0.112060546875, -0.05908203125, -0.0304718017578125, -0.09259033203125, 0.042816162109375, -0.002017974853515625, 0.004608154296875, -0.0281982421875, -0.045684814453125, -0.005474090576171875, -0.061370849609375, -0.0181427001953125, 0.031707763671875, -0.0037097930908203125, 0.006381988525390625, -0.0623779296875, 0.0137939453125, 0.021759033203125, -0.0047607421875, 0.06304931640625, 0.0052642822265625, 0.0309295654296875, -0.0025882720947265625, 0.032562255859375, -0.00033736228942871094, -0.03668212890625, 0.0291595458984375, -0.026641845703125, -0.0732421875, 0.050811767578125, -0.006397247314453125, 0.035430908203125, 0.0270233154296875, -0.003772735595703125, 0.060577392578125, 0.029510498046875, 0.00921630859375, -0.0227508544921875, 0.026031494140625, -0.0108489990234375, -0.0195465087890625, 0.0017518997192382812, -0.0012426376342773438, 0.0006251335144042969, 0.0290374755859375, 0.0244598388671875, -0.0035343170166015625, -0.007396697998046875, -0.03436279296875, -0.00021255016326904297, -0.004497528076171875, 0.0184478759765625, -0.099853515625, 0.0043182373046875, 0.06573486328125, -0.00879669189453125, -0.07318115234375, 0.08209228515625, 0.0413818359375, -0.024322509765625, 0.006740570068359375, 0.0228729248046875, -0.006313323974609375, 0.02154541015625, -0.006591796875, -0.034759521484375, -0.0149078369140625, 0.004573822021484375, 0.030975341796875, -0.021820068359375, -0.008880615234375, -0.0289459228515625, 0.0416259765625, -0.0239410400390625, 0.02410888671875, 0.05859375, 0.018707275390625, 0.0035381317138671875, -0.037078857421875, -0.00632476806640625, -0.0194854736328125, -0.10040283203125, -0.0011882781982421875, 0.06060791015625, 0.035980224609375, 0.0254669189453125, -0.007076263427734375, 0.0087127685546875, 0.053070068359375, 0.0210418701171875, 0.039306640625, -0.03106689453125, 0.0164642333984375, 0.06658935546875, -0.01678466796875, 0.0222930908203125, 0.0019102096557617188, -0.050384521484375, 0.0205230712890625, 0.039642333984375, -0.0323486328125, -0.037017822265625, 0.031005859375, -0.000415802001953125, 0.0158233642578125, -0.01416778564453125, -0.02655029296875, -0.00970458984375, 0.0323486328125, 0.03558349609375, 0.04510498046875, 0.05023193359375, -0.04833984375, 0.027587890625, 0.013031005859375, 0.010986328125, -0.01329803466796875, 0.003482818603515625, -0.019287109375, -0.008453369140625, 0.00278472900390625, 0.014617919921875, -0.053802490234375, -0.0187225341796875, -0.018768310546875, 0.0024394989013671875, -0.000012099742889404297, -0.00980377197265625, -0.003753662109375, -0.0655517578125, 0.03265380859375, 0.0012731552124023438, 0.0028018951416015625, -0.026885986328125, 0.00252532958984375, 0.0076446533203125, -0.038299560546875, 0.040008544921875, 0.004596710205078125, -0.03741455078125, -0.0406494140625, -0.050567626953125, 0.048583984375, -0.037017822265625, 0.028564453125, 0.0709228515625, -0.0172119140625, 0.0286712646484375, -0.0019817352294921875, -0.025787353515625, -0.00704193115234375, -0.00937652587890625, -0.01045989990234375, -0.0005869865417480469, -0.052001953125, 0.005191802978515625, 0.01259613037109375, -0.0323486328125, -0.005275726318359375, -0.0217742919921875, -0.0323486328125, -0.020172119140625, -0.1044921875, -0.04296875, 0.0160064697265625, -0.0601806640625, -0.050506591796875, 0.0281524658203125, -0.06298828125, 0.00763702392578125, 0.0667724609375, -0.009490966796875, 0.049285888671875, -0.016082763671875, -0.03094482421875, 0.0190582275390625, -0.0418701171875, 0.01214599609375, -0.01129913330078125, 0.007320404052734375, 0.00739288330078125, 0.060516357421875, 0.005420684814453125, -0.037994384765625, 0.01334381103515625, -0.042877197265625, -0.000732421875, 0.034332275390625, 0.016143798828125, -0.018310546875, 0.02874755859375, 0.01441192626953125, 0.033843994140625, 0.02947998046875, -0.0239410400390625, -0.036956787109375, -0.0162811279296875, -0.004787445068359375, -0.0198822021484375, 0.01000213623046875, 0.0179595947265625, -0.048858642578125, -0.048980712890625, -0.0699462890625, -0.007549285888671875, -0.02777099609375, -0.01263427734375, 0.0226593017578125, -0.0015859603881835938, -0.00666046142578125, -0.0267181396484375, 0.054931640625, -0.0041656494140625, 0.0007214546203613281, -0.01297760009765625, -0.0237579345703125, 0.03338623046875, 0.0028362274169921875, 0.0180206298828125, -0.0033092498779296875, 0.0176849365234375, -0.0250396728515625, 0.01495361328125, 0.00580596923828125, 0.0128326416015625, 0.00571441650390625, 0.01030731201171875, -0.00013744831085205078, -0.05230712890625, 0.044097900390625, -0.03515625, 0.0206756591796875, -0.04150390625, -0.0187225341796875, -0.0138092041015625, 0.08660888671875, -0.054351806640625, -0.027587890625, -0.016265869140625, 0.0265350341796875, 0.002498626708984375, -0.049468994140625, 0.0181427001953125, -0.0181121826171875, -0.0867919921875, 0.02490234375, 0.0028438568115234375, -0.027740478515625, -0.023834228515625, 0.007843017578125, -0.04620361328125, -0.0308685302734375, 0.0260772705078125, 0.0552978515625, -0.005916595458984375, 0.00909423828125, -0.00597381591796875, 0.007488250732421875, -0.00875091552734375, 0.00719451904296875, -0.0780029296875, -0.0272216796875, 0.0164031982421875, 0.06475830078125, -0.0289764404296875, 0.0155792236328125, -0.017822265625, 0.06622314453125, 0.005489349365234375, -0.031097412109375, -0.005428314208984375, -0.0186004638671875, -0.00630950927734375, 0.033111572265625, -0.02166748046875, -0.0023212432861328125, 0.004932403564453125, -0.0399169921875, -0.01427459716796875, -0.005340576171875, -0.035003662109375, 0.0105133056640625, -0.015716552734375, -0.007465362548828125, -0.0027217864990234375, -0.0276641845703125, -0.0249481201171875, 0.0037326812744140625, -0.0267486572265625, 0.0152587890625, -0.01462554931640625, -0.007312774658203125, 0.00423431396484375, -0.0156402587890625, -0.03179931640625, 0.0268096923828125, 0.046600341796875, 0.0198822021484375, 0.0059967041015625, -0.0738525390625, -0.0229034423828125, 0.030029296875, 0.007965087890625, 0.01605224609375, 0.0172576904296875, -0.0233612060546875, 0.028411865234375, -0.006572723388671875, 0.0093994140625, -0.05181884765625, 0.05877685546875, -0.006633758544921875, -0.009033203125, 0.0118255615234375, -0.0237884521484375, 0.040374755859375, -0.046478271484375, -0.009124755859375, 0.0086517333984375, 0.027374267578125, 0.0198974609375, 0.0254364013671875, -0.0032176971435546875, -0.0235748291015625, -0.035919189453125, -0.0007781982421875, 0.00008225440979003906, 0.0241546630859375, 0.016082763671875, -0.004398345947265625, 0.0253753662109375, 0.01422119140625, 0.0163421630859375, -0.03564453125, -0.0243988037109375, -0.060089111328125, 0.0193634033203125, -0.0117034912109375, -0.017303466796875, 0.0014123916625976562, 0.004016876220703125, -0.01439666748046875, -0.005756378173828125, -0.041748046875, -0.01904296875, -0.002979278564453125, 0.03515625, 0.0066680908203125, 0.03594970703125, 0.01540374755859375, 0.0106964111328125, 0.023590087890625, 0.0021190643310546875, 0.01447296142578125, 0.021148681640625, -0.0275115966796875, 0.01239013671875, -0.017730712890625, 0.004383087158203125, 0.02288818359375, 0.01551055908203125, -0.031402587890625, 0.0259857177734375, -0.01409912109375, 0.0225677490234375, 0.03009033203125, 0.0227203369140625, 0.017120361328125, -0.0110015869140625, 0.02099609375, 0.0019474029541015625, 0.01494598388671875, -0.025238037109375, -0.0003006458282470703, 0.0251312255859375, 0.00891876220703125, -0.0016841888427734375, -0.01044464111328125, -0.004756927490234375, -0.0237579345703125, -0.0098419189453125, 0.011810302734375, -0.0240936279296875, -0.06268310546875, 0.0015344619750976562, 0.045562744140625, 0.01175689697265625, -0.03472900390625, -0.02154541015625, 0.02001953125, -0.048828125, -0.016632080078125, 0.023834228515625, -0.054962158203125, -0.001590728759765625, 0.0141448974609375, 0.0136566162109375, -0.020233154296875, -0.0178985595703125, -0.09405517578125, -0.035736083984375, -0.01146697998046875, 0.01776123046875, 0.06463623046875, -0.038482666015625, -0.0330810546875, -0.0221405029296875, 0.044525146484375, -0.061187744140625, 0.0237884521484375, 0.01108551025390625, 0.0053863525390625, 0.029754638671875, -0.034149169921875, -0.03643798828125, -0.041351318359375, -0.041595458984375, -0.0261993408203125, -0.01201629638671875, 0.00675201416015625, -0.01039886474609375, 0.0111541748046875, 0.0011072158813476562, 0.01396942138671875, 0.01253509521484375, 0.023773193359375, -0.0014200210571289062, 0.0179290771484375, 0.0206756591796875, -0.01325225830078125, 0.0140533447265625, 0.028045654296875, 0.026031494140625, -0.0035915374755859375, -0.0229034423828125, -0.039459228515625, -0.004932403564453125, -0.053680419921875, -0.0234527587890625, 0.01500701904296875, -0.0298614501953125, 0.022491455078125, 0.01052093505859375, 0.0027828216552734375, -0.00588226318359375, -0.02740478515625, -0.00926971435546875, -0.05108642578125, 0.06884765625, -0.046417236328125, -0.0006928443908691406, -0.0506591796875, -0.00665283203125, 0.058990478515625, 0.006473541259765625, -0.0178070068359375, 0.0031375885009765625, -0.01427459716796875, 0.021484375, 0.032501220703125, 0.003322601318359375, 0.018310546875, 0.0275421142578125, -0.03363037109375, 0.0258636474609375, 0.041473388671875, 0.008575439453125, 0.05072021484375, 0.031768798828125, -0.02020263671875, -0.029510498046875, 0.06298828125, 0.021942138671875, -0.00665283203125, 0.053802490234375, -0.0172576904296875, 0.0269012451171875, 0.01534271240234375, 0.054779052734375, -0.040679931640625, 0.02008056640625, 0.00949859619140625, -0.007625579833984375, 0.06219482421875, -0.0093841552734375, 0.0194091796875, 0.002468109130859375, 0.0021266937255859375, -0.004894256591796875, -0.0390625, -0.01505279541015625, -0.0121917724609375, -0.0015106201171875, 0.0200958251953125, 0.002758026123046875, -0.0006108283996582031, -0.024932861328125, -0.048858642578125, 0.0191802978515625, -0.0208740234375, 0.0011959075927734375, -0.01324462890625, 0.01241302490234375, -0.027435302734375, -0.06121826171875, -0.0137939453125, -0.01497650146484375, -0.01251220703125, 0.00478363037109375, 0.00284576416015625, 0.04345703125, 0.03302001953125, -0.0086669921875, -0.0138702392578125, 0.00250244140625, -0.0051727294921875, -0.032196044921875, -0.0489501953125, 0.01500701904296875, 0.0002084970474243164, -0.060333251953125, 0.0382080078125, -0.0275421142578125, -0.049102783203125, -0.016204833984375, -0.008026123046875, 0.054595947265625, -0.048919677734375, -0.0161285400390625, 0.004283905029296875, 0.033203125, 0.0166168212890625, -0.020904541015625, 0.033172607421875, -0.06182861328125, -0.0282745361328125, -0.0037097930908203125, -0.04412841796875, 0.005680084228515625, -0.0254669189453125, -0.123046875, 0.107177734375, 0.027130126953125, 0.07464599609375, 0.001667022705078125, 0.0186004638671875, -0.0555419921875, -0.0113677978515625, 0.0093994140625, 0.03741455078125, 0.0487060546875, -0.044219970703125, 0.0112152099609375, -0.0084075927734375, -0.01280975341796875, 0.0384521484375, 0.058319091796875, -0.002288818359375, 0.039459228515625, -0.0121612548828125, 0.0697021484375, 0.060577392578125, -0.0030117034912109375, -0.020477294921875, 0.01441192626953125, 0.0148162841796875, 0.02874755859375, -0.03607177734375, 0.025299072265625, -0.02777099609375, 0.005550384521484375, 0.041778564453125, 0.0278167724609375, 0.05145263671875, -0.0001666545867919922, 0.044036865234375, 0.01062774658203125, -0.0179443359375, 0.01351165771484375, -0.022064208984375, 0.0223541259765625, 0.029083251953125, 0.017059326171875, -0.006439208984375, 0.059234619140625, -0.0264129638671875, 0.0650634765625, -0.0016775131225585938, 0.0182647705078125, 0.04248046875, 0.0133514404296875, 0.05902099609375, 0.0021724700927734375, 0.016571044921875, 0.0038394927978515625, 0.01190948486328125, 0.0159912109375, -0.01061248779296875, -0.004589080810546875, -0.0611572265625, 0.05218505859375, 0.024566650390625, 0.0163726806640625, -0.0447998046875, -0.0280914306640625, 0.01534271240234375, -0.00846099853515625, -0.022003173828125, -0.037109375, -0.048095703125, -0.0770263671875, -0.0291595458984375, -0.0277557373046875, 0.0001552104949951172, 0.032318115234375, 0.04150390625, -0.00736236572265625, -0.0020599365234375, -0.048828125, -0.00911712646484375, -0.050628662109375, 0.0003132820129394531, -0.016937255859375, 0.0260467529296875, 0.02978515625, 0.04400634765625, 0.03277587890625, -0.015625, -0.0236663818359375, 0.0189208984375, -0.031524658203125, 0.0301513671875, -0.0294647216796875, -0.026641845703125, -0.022125244140625, 0.030609130859375, 0.0269012451171875, 0.0273284912109375, 0.03955078125, 0.053924560546875, 0.007526397705078125, 0.0015039443969726562, 0.0262603759765625, -0.01078033447265625, -0.0264892578125, -0.04681396484375, 0.0027980804443359375, 0.04022216796875, 0.0028705596923828125, 0.01253509521484375, -0.054534912109375, 0.071044921875, -0.033477783203125, 0.00833892822265625, -0.0035953521728515625, -0.035675048828125, 0.03338623046875, -0.0056915283203125, 0.0382080078125, -0.00879669189453125, -0.07183837890625, -0.01375579833984375, -0.039306640625, -0.04364013671875, 0.022796630859375, 0.0382080078125, -0.04638671875, 0.03125, 0.01181793212890625, -0.060211181640625, 0.0164337158203125, 0.02093505859375, 0.00923919677734375, -0.00934600830078125, -0.015472412109375, -0.0284881591796875, -0.01220703125, 0.0020294189453125, 0.0183868408203125, 0.00830841064453125, -0.00876617431640625, 0.060333251953125, -0.009796142578125, 0.0036258697509765625, 0.0008554458618164062, -0.0135955810546875, 0.00899505615234375, 0.0253753662109375, -0.05078125, 0.0154266357421875, 0.01324462890625, -0.02349853515625, 0.036529541015625, 0.02203369140625, 0.0283966064453125, -0.040740966796875, 0.0052337646484375, -0.0167694091796875, -0.00044536590576171875, -0.029815673828125, -0.01117706298828125, -0.0240631103515625, -0.0296630859375, -0.0142364501953125, 0.01107025146484375, 0.01247406005859375, 0.0255889892578125, -0.02508544921875, 0.0296478271484375, 0.0272216796875, -0.0270538330078125, 0.0275421142578125, -0.0277252197265625, 0.04473876953125, 0.03363037109375, 0.0057830810546875, -0.020416259765625, 0.019378662109375, -0.00862884521484375, 0.0271453857421875, 0.0246429443359375, 0.0303802490234375, 0.03692626953125, -0.04095458984375, -0.033477783203125, -0.03985595703125, -0.013885498046875, -0.0265045166015625, -0.015472412109375, -0.0005764961242675781, -0.01206207275390625, -0.035003662109375, -0.02215576171875, -0.0123748779296875, -0.045013427734375, -0.034149169921875, 0.029937744140625, -0.050750732421875, -0.04791259765625, -0.05908203125, -0.01024627685546875, 0.008636474609375, 0.0005712509155273438, -0.0538330078125, 0.02801513671875, 0.005352020263671875, 0.005859375, -0.016876220703125, 0.0095672607421875, -0.0233612060546875, 0.0251922607421875, -0.011566162109375, -0.047088623046875, -0.051544189453125, 0.0606689453125, -0.038665771484375, 0.014739990234375, 0.015625, -0.0134124755859375, 0.0181427001953125, 0.01494598388671875, 0.0179443359375, 0.06781005859375, 0.01094818115234375, -0.043182373046875, 0.0004019737243652344, 0.00609588623046875, 0.02496337890625, -0.01184844970703125, -0.02447509765625, 0.01141357421875, -0.008331298828125, -0.00145721435546875, -0.0117340087890625, -0.0012798309326171875, -0.01480865478515625, -0.06695556640625, 0.05523681640625, -0.015289306640625, -0.033843994140625, -0.02325439453125, 0.00516510009765625, -0.00872039794921875, 0.08026123046875, 0.0175628662109375, -0.0196533203125, -0.0153656005859375, -0.0033855438232421875, 0.0148773193359375, 0.0201416015625, 0.0169677734375, -0.01177978515625, -0.0292205810546875, 0.00664520263671875, 0.00954437255859375, 0.049652099609375, 0.044097900390625, -0.0267333984375, 0.043487548828125, 0.0318603515625, -0.05670166015625, 0.0176239013671875, -0.035430908203125, -0.007389068603515625, -0.00829315185546875, -0.0263214111328125, -0.031219482421875, -0.00899505615234375, 0.052276611328125, 0.08306884765625, 0.003711700439453125, -0.0171661376953125, -0.021881103515625, 0.01303863525390625, 0.0247802734375, -0.0207672119140625, 0.004421234130859375, -0.05938720703125, -0.03851318359375, -0.01326751708984375, 0.0096893310546875, -0.0239410400390625, 0.0001691579818725586, -0.0136871337890625, -0.0206298828125, 0.03741455078125, 0.021759033203125, -0.022552490234375, 0.0286712646484375, 0.061767578125, -0.040191650390625, 0.00879669189453125, -0.02471923828125, 0.005771636962890625, 0.035491943359375, -0.032196044921875, -0.032318115234375, -0.046966552734375, -0.0218963623046875, 0.03448486328125, -0.028594970703125, 0.044647216796875, -0.036529541015625, -0.00043082237243652344, -0.03564453125, 0.01605224609375, 0.020233154296875, 0.0313720703125, -0.035888671875, 0.006099700927734375, 0.01238250732421875, 0.03179931640625, -0.025543212890625, 0.0165557861328125, -0.02423095703125, -0.0020999908447265625, 0.0160369873046875, 0.00926971435546875, 0.059417724609375, -0.016021728515625, -0.002910614013671875, 0.032867431640625, -0.05596923828125, -0.065673828125, 0.02130126953125, -0.0240631103515625, 0.0138397216796875, 0.0242767333984375 ]
8eed94be952966220c7db1b0b38c354df7c2d584
Wordpress Stackexchange Q: Disabled trackbacks in Wordpress but I am still receiving trackbacks I have disabled trackbacks in Wordpress back end discussion panel but I am still receiving trackbacks. How can I ensure that I do not receive any trackbacks? A: Changing the global Trackbacks setting via Dashboard -> Settings -> Discussion will only change the default behavior. If you currently have existing posts/pages with trackbacks enabled, changing the default setting will not change the per-post setting. You will need to go to Dashboard -> Posts, select all posts, and batch-edit them to disable trackbacks. (Then repeat with Pages.)
Q: Disabled trackbacks in Wordpress but I am still receiving trackbacks I have disabled trackbacks in Wordpress back end discussion panel but I am still receiving trackbacks. How can I ensure that I do not receive any trackbacks? A: Changing the global Trackbacks setting via Dashboard -> Settings -> Discussion will only change the default behavior. If you currently have existing posts/pages with trackbacks enabled, changing the default setting will not change the per-post setting. You will need to go to Dashboard -> Posts, select all posts, and batch-edit them to disable trackbacks. (Then repeat with Pages.)
wordpress
{ "language": "en", "length": 97, "provenance": "stackexchange_00019.jsonl.gz:418087", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45673" }
[ 0.078857421875, -0.00881195068359375, 0.0298919677734375, -0.0195159912109375, -0.007236480712890625, -0.0265045166015625, 0.0304412841796875, -0.041473388671875, 0.0296478271484375, 0.024200439453125, 0.02532958984375, -0.0175323486328125, 0.035064697265625, -0.053558349609375, 0.00466156005859375, 0.00975799560546875, 0.023529052734375, -0.0164794921875, 0.01030731201171875, -0.0160980224609375, 0.004810333251953125, -0.01062774658203125, 0.00873565673828125, 0.060394287109375, 0.016632080078125, 0.015533447265625, 0.024383544921875, -0.0178680419921875, 0.0014162063598632812, -0.01910400390625, 0.0146942138671875, -0.0214385986328125, 0.01044464111328125, 0.0263671875, -0.0189208984375, -0.0401611328125, -0.02740478515625, 0.024871826171875, 0.0099945068359375, 0.005710601806640625, 0.00238800048828125, -0.01348876953125, 0.0318603515625, 0.01021575927734375, -0.01531982421875, -0.041351318359375, 0.03125, -0.049530029296875, 0.0276336669921875, -0.00016009807586669922, -0.020965576171875, 0.03497314453125, -0.0108642578125, -0.008758544921875, -0.00342559814453125, -0.00621795654296875, 0.006969451904296875, -0.0006518363952636719, 0.00698089599609375, 0.0101776123046875, 0.003208160400390625, 0.032196044921875, -0.0074462890625, -0.009063720703125, 0.05291748046875, -0.0263519287109375, 0.021759033203125, 0.050048828125, -0.0889892578125, 0.062744140625, 0.08026123046875, -0.07208251953125, 0.01079559326171875, -0.006481170654296875, 0.03668212890625, -0.0147857666015625, 0.0113525390625, 0.0016231536865234375, -0.0015249252319335938, 0.0282745361328125, -0.01154327392578125, -0.02734375, -0.07440185546875, 0.00505828857421875, 0.00362396240234375, 0.032257080078125, -0.003543853759765625, -0.01092529296875, -0.01343536376953125, 0.002414703369140625, -0.0104827880859375, -0.0178070068359375, -0.023406982421875, 0.0197296142578125, -0.0135345458984375, -0.0016326904296875, 0.01087188720703125, 0.060272216796875, -0.04034423828125, -0.047119140625, -0.02789306640625, 0.01947021484375, -0.0711669921875, -0.01184844970703125, -0.00775909423828125, 0.0033931732177734375, -0.0013265609741210938, -0.041046142578125, 0.0264129638671875, 0.034332275390625, -0.0092926025390625, 0.050201416015625, 0.00010251998901367188, -0.01151275634765625, -0.025970458984375, -0.00909423828125, -0.052398681640625, 0.0191192626953125, -0.0045928955078125, 0.0082244873046875, 0.007343292236328125, 0.0309906005859375, -0.07684326171875, 0.038818359375, -0.01332855224609375, -0.024505615234375, 0.00705718994140625, 0.01678466796875, -0.0179901123046875, -0.01116180419921875, -0.03515625, 0.02264404296875, 0.07012939453125, 0.038818359375, 0.01043701171875, -0.00024628639221191406, 0.007526397705078125, -0.016510009765625, -0.030487060546875, 0.07904052734375, -0.054351806640625, -0.0911865234375, -0.006328582763671875, -0.01247406005859375, 0.001880645751953125, 0.0051422119140625, 0.037445068359375, 0.045257568359375, -0.02532958984375, -0.04766845703125, 0.02691650390625, 0.02056884765625, 0.0005927085876464844, 0.0255126953125, 0.01284027099609375, -0.032470703125, 0.03125, -0.0306243896484375, 0.017242431640625, -0.036590576171875, 0.0040740966796875, -0.0007004737854003906, 0.0029163360595703125, -0.042388916015625, -0.0416259765625, -0.0171051025390625, -0.01064300537109375, -0.0060577392578125, 0.0221099853515625, 0.034149169921875, 0.0201568603515625, -0.01910400390625, -0.003177642822265625, -0.026153564453125, -0.00664520263671875, -0.01485443115234375, -0.01519775390625, -0.010284423828125, 0.03338623046875, -0.06658935546875, -0.05224609375, -0.037353515625, 0.025543212890625, -0.003276824951171875, -0.09033203125, 0.04302978515625, 0.008209228515625, 0.060272216796875, 0.043853759765625, 0.004741668701171875, 0.0634765625, -0.0002465248107910156, 0.00708770751953125, -0.0260467529296875, 0.01422882080078125, -0.02227783203125, -0.028900146484375, -0.022552490234375, -0.0097198486328125, 0.03839111328125, 0.0587158203125, -0.00988006591796875, -0.0191650390625, -0.027008056640625, -0.1070556640625, -0.00942230224609375, -0.023529052734375, 0.0185089111328125, 0.007701873779296875, 0.035491943359375, 0.035980224609375, 0.0167083740234375, -0.0308837890625, 0.031005859375, -0.023956298828125, -0.01739501953125, -0.03619384765625, 0.064697265625, -0.0020351409912109375, 0.021942138671875, -0.00025343894958496094, -0.029083251953125, 0.01328277587890625, -0.0014886856079101562, 0.02862548828125, -0.0116729736328125, -0.004730224609375, -0.0207061767578125, 0.051666259765625, -0.01418304443359375, 0.03192138671875, 0.029388427734375, -0.037078857421875, 0.012237548828125, 0.009124755859375, 0.01230621337890625, 0.038970947265625, -0.053802490234375, 0.0183868408203125, 0.02130126953125, 0.053680419921875, 0.0232696533203125, 0.0305023193359375, -0.00008159875869750977, 0.01157379150390625, -0.0537109375, 0.02069091796875, -0.01947021484375, 0.004230499267578125, -0.0274658203125, 0.0298004150390625, -0.041534423828125, 0.058197021484375, -0.037933349609375, 0.031982421875, 0.0255279541015625, -0.03753662109375, 0.01299285888671875, 0.01678466796875, 0.003353118896484375, -0.01505279541015625, -0.033905029296875, 0.0156707763671875, -0.039703369140625, 0.00736236572265625, -0.01442718505859375, 0.01483154296875, 0.01031494140625, -0.003170013427734375, -0.0072784423828125, 0.01461029052734375, -0.04132080078125, 0.034271240234375, 0.056610107421875, 0.01081085205078125, 0.0438232421875, -0.017974853515625, -0.044586181640625, 0.0552978515625, 0.049102783203125, -0.0262298583984375, -0.01123809814453125, -0.0030841827392578125, -0.016448974609375, 0.0019435882568359375, -0.040618896484375, 0.0335693359375, 0.0116729736328125, -0.0465087890625, -0.014892578125, 0.0216827392578125, 0.008148193359375, -0.0311126708984375, 0.00638580322265625, -0.0364990234375, -0.010589599609375, -0.0401611328125, -0.03900146484375, 0.0227203369140625, -0.02105712890625, -0.00481414794921875, 0.069580078125, 0.04974365234375, -0.019500732421875, 0.02899169921875, 0.00873565673828125, 0.0430908203125, 0.01491546630859375, 0.0088043212890625, 0.0523681640625, -0.09283447265625, -0.0176239013671875, 0.0010967254638671875, -0.007678985595703125, -0.0306396484375, -0.034698486328125, -0.042816162109375, -0.01436614990234375, -0.07110595703125, -0.019134521484375, -0.0113983154296875, -0.0943603515625, 0.0206298828125, -0.01373291015625, -0.04766845703125, -0.00466156005859375, 0.0197906494140625, 0.03076171875, 0.02008056640625, -0.0301513671875, -0.033966064453125, -0.03302001953125, -0.0487060546875, -0.048553466796875, 0.0015163421630859375, -0.01305389404296875, 0.01200103759765625, 0.08111572265625, 0.003917694091796875, -0.05316162109375, 0.01502227783203125, -0.003978729248046875, -0.0288848876953125, 0.02252197265625, -0.01486968994140625, 0.0227508544921875, 0.06719970703125, -0.0013933181762695312, -0.036590576171875, 0.039703369140625, -0.01432037353515625, -0.0296478271484375, -0.015228271484375, 0.0174102783203125, -0.0026988983154296875, 0.01479339599609375, 0.0296630859375, 0.010894775390625, -0.0037708282470703125, -0.028411865234375, -0.01110076904296875, 0.0185546875, -0.019561767578125, -0.061676025390625, -0.0213623046875, -0.01068878173828125, -0.031280517578125, 0.0208892822265625, 0.06658935546875, 0.0254364013671875, 0.027557373046875, 0.0089263916015625, 0.02252197265625, 0.006439208984375, 0.04193115234375, -0.043853759765625, -0.003204345703125, -0.0277252197265625, 0.01544952392578125, -0.0079193115234375, 0.00334930419921875, -0.0528564453125, 0.04278564453125, -0.0677490234375, -0.020843505859375, 0.00441741943359375, -0.08172607421875, -0.01044464111328125, -0.01611328125, 0.0203094482421875, 0.005107879638671875, 0.037384033203125, -0.051544189453125, -0.006160736083984375, 0.00506591796875, 0.02337646484375, -0.01136016845703125, -0.0550537109375, -0.026275634765625, -0.02484130859375, 0.028289794921875, 0.0103912353515625, 0.00505828857421875, -0.00800323486328125, -0.005496978759765625, -0.07177734375, 0.005092620849609375, -0.0164337158203125, 0.03411865234375, -0.059326171875, 0.01934814453125, -0.018707275390625, -0.01239776611328125, -0.046478271484375, -0.011871337890625, -0.03997802734375, -0.0784912109375, -0.0244903564453125, 0.036041259765625, 0.0236968994140625, -0.004573822021484375, -0.059173583984375, -0.01171112060546875, 0.042236328125, 0.00698089599609375, -0.0063934326171875, 0.0135498046875, 0.00365447998046875, 0.026885986328125, -0.0263519287109375, -0.01544952392578125, -0.0249176025390625, -0.02227783203125, -0.0028324127197265625, 0.00377655029296875, 0.016571044921875, -0.0150299072265625, -0.03704833984375, 0.0298919677734375, -0.0247802734375, -0.0914306640625, -0.053466796875, -0.04949951171875, -0.0265045166015625, -0.035247802734375, -0.0058441162109375, -0.03302001953125, -0.0750732421875, -0.0015115737915039062, 0.0181427001953125, -0.03021240234375, 0.02099609375, 0.025848388671875, 0.0290069580078125, -0.0140228271484375, -0.0033550262451171875, 0.031280517578125, 0.0176544189453125, -0.001972198486328125, 0.033599853515625, -0.00992584228515625, -0.0006833076477050781, 0.07611083984375, -0.0223541259765625, 0.0069427490234375, -0.0183868408203125, 0.02557373046875, -0.0201568603515625, -0.0232696533203125, 0.0147552490234375, -0.029876708984375, 0.026947021484375, 0.02838134765625, 0.000995635986328125, -0.006351470947265625, -0.01456451416015625, 0.0240478515625, -0.010040283203125, -0.0008068084716796875, -0.029815673828125, -0.026123046875, 0.028350830078125, -0.04095458984375, 0.05255126953125, 0.0269317626953125, 0.00872802734375, 0.04254150390625, 0.026580810546875, -0.0122833251953125, -0.01111602783203125, -0.0046844482421875, -0.00798797607421875, 0.01087188720703125, 0.0312042236328125, -0.0107269287109375, -0.0048828125, -0.00229644775390625, 0.0513916015625, -0.01084136962890625, -0.0557861328125, -0.021148681640625, -0.0131072998046875, -0.011993408203125, 0.04815673828125, -0.0176849365234375, 0.0305938720703125, 0.00640869140625, -0.01904296875, -0.01006317138671875, -0.04351806640625, 0.005855560302734375, -0.052764892578125, 0.0212554931640625, -0.004634857177734375, 0.01131439208984375, -0.0186614990234375, 0.08013916015625, 0.01141357421875, 0.0196380615234375, -0.01102447509765625, 0.011810302734375, -0.00969696044921875, -0.006923675537109375, 0.0026531219482421875, 0.0323486328125, 0.0053863525390625, -0.0151824951171875, 0.0408935546875, -0.0345458984375, -0.0047149658203125, 0.007083892822265625, 0.045013427734375, 0.0295867919921875, 0.0013103485107421875, 0.006011962890625, -0.0225372314453125, -0.034912109375, 0.047088623046875, -0.0022449493408203125, -0.06884765625, -0.01259613037109375, 0.004276275634765625, 0.0020809173583984375, -0.018157958984375, 0.00074005126953125, -0.03814697265625, -0.01517486572265625, -0.0017442703247070312, 0.016632080078125, -0.0098114013671875, -0.0130615234375, -0.019927978515625, -0.0250701904296875, -0.05224609375, -0.004741668701171875, -0.07196044921875, 0.0186309814453125, -0.0107879638671875, 0.005313873291015625, 0.01021575927734375, 0.004055023193359375, 0.0247955322265625, -0.02392578125, -0.01419830322265625, -0.09716796875, 0.0180206298828125, 0.032012939453125, 0.0213470458984375, -0.044586181640625, 0.00670623779296875, -0.07171630859375, -0.03424072265625, -0.05596923828125, -0.02777099609375, -0.062408447265625, -0.00896453857421875, 0.037811279296875, -0.000001430511474609375, -0.0046539306640625, -0.0665283203125, -0.0274505615234375, 0.02008056640625, 0.06591796875, 0.02288818359375, 0.0009388923645019531, 0.036834716796875, -0.03515625, 0.058074951171875, -0.010498046875, -0.004550933837890625, -0.027801513671875, -0.015716552734375, 0.031982421875, -0.028472900390625, -0.0379638671875, -0.038787841796875, -0.023193359375, 0.0259246826171875, 0.07574462890625, -0.006160736083984375, -0.062286376953125, -0.00838470458984375, 0.024169921875, -0.0178375244140625, 0.045257568359375, 0.0051116943359375, -0.07421875, -0.006290435791015625, -0.00980377197265625, -0.0027103424072265625, -0.038421630859375, -0.052398681640625, 0.0213470458984375, 0.005046844482421875, -0.0010728836059570312, 0.01551055908203125, -0.00567626953125, -0.01708984375, 0.037445068359375, 0.00150299072265625, 0.052520751953125, 0.007686614990234375, 0.02398681640625, 0.080810546875, 0.02801513671875, -0.065185546875, -0.0125732421875, 0.034423828125, 0.0182647705078125, -0.034881591796875, 0.032135009765625, -0.023895263671875, 0.0080718994140625, 0.03558349609375, 0.0677490234375, -0.0625, 0.00878143310546875, 0.01142120361328125, -0.004177093505859375, 0.011688232421875, -0.01358795166015625, -0.0186767578125, -0.0271759033203125, 0.0396728515625, 0.00939178466796875, -0.0340576171875, 0.001689910888671875, 0.0112457275390625, 0.0244598388671875, 0.0230560302734375, 0.06268310546875, 0.005126953125, -0.06622314453125, -0.0279388427734375, 0.05572509765625, -0.0106658935546875, -0.0240478515625, -0.04693603515625, 0.041839599609375, -0.060699462890625, -0.09674072265625, -0.01253509521484375, -0.0147552490234375, -0.00310516357421875, 0.01303863525390625, 0.007053375244140625, 0.01232147216796875, 0.049774169921875, -0.02490234375, 0.00897979736328125, 0.038848876953125, -0.02484130859375, -0.01209259033203125, -0.0005383491516113281, 0.04412841796875, 0.018035888671875, -0.00444793701171875, 0.0205230712890625, -0.0201416015625, -0.0305023193359375, -0.014404296875, 0.02471923828125, 0.045074462890625, 0.0159454345703125, -0.034515380859375, 0.016204833984375, 0.04327392578125, 0.01439666748046875, -0.029449462890625, 0.00637054443359375, -0.02880859375, 0.0206756591796875, -0.030120849609375, 0.00830841064453125, 0.0221405029296875, -0.021636962890625, -0.05078125, 0.09912109375, -0.0273895263671875, 0.0287628173828125, 0.0357666015625, 0.033843994140625, -0.0225067138671875, 0.01039886474609375, -0.031951904296875, 0.05657958984375, 0.0166778564453125, 0.06903076171875, -0.04534912109375, -0.0251922607421875, 0.01287078857421875, 0.058837890625, 0.0985107421875, 0.01557159423828125, 0.00705718994140625, -0.0242919921875, 0.059417724609375, 0.042877197265625, -0.0168914794921875, 0.012969970703125, 0.006977081298828125, 0.06768798828125, 0.00940704345703125, -0.04925537109375, 0.033355712890625, -0.057647705078125, -0.02978515625, 0.017669677734375, 0.00571441650390625, 0.0189361572265625, 0.02203369140625, 0.05316162109375, 0.039306640625, -0.00494384765625, -0.022491455078125, -0.039093017578125, -0.0209503173828125, 0.0241851806640625, 0.0087432861328125, -0.0479736328125, 0.0013093948364257812, -0.041595458984375, 0.039276123046875, 0.0099639892578125, 0.004222869873046875, 0.052886962890625, 0.024505615234375, -0.0257110595703125, -0.01251220703125, 0.005825042724609375, 0.006702423095703125, -0.01413726806640625, -0.0211334228515625, -0.0010671615600585938, 0.049285888671875, -0.0112152099609375, -0.0145263671875, -0.01465606689453125, -0.01451873779296875, 0.0019207000732421875, -0.033233642578125, 0.0193328857421875, 0.00577545166015625, -0.01953125, -0.00476837158203125, -0.006595611572265625, 0.0006084442138671875, 0.03509521484375, 0.0108642578125, -0.0004916191101074219, -0.01520538330078125, 0.045166015625, 0.00004941225051879883, 0.032958984375, -0.0264739990234375, -0.01375579833984375, -0.0002474784851074219, -0.0296478271484375, 0.01274871826171875, -0.01325225830078125, 0.0027217864990234375, -0.01549530029296875, 0.0246429443359375, 0.01094818115234375, -0.017242431640625, 0.01154327392578125, 0.00705718994140625, 0.0301666259765625, -0.01088714599609375, -0.001499176025390625, 0.00446319580078125, 0.022979736328125, 0.0104522705078125, 0.0251617431640625, 0.06787109375, 0.05853271484375, -0.034423828125, -0.0192108154296875, 0.0258636474609375, -0.0163421630859375, -0.036376953125, -0.0143890380859375, -0.0132904052734375, 0.040618896484375, 0.012237548828125, -0.021942138671875, -0.0009946823120117188, 0.07196044921875, 0.005329132080078125, -0.01172637939453125, 0.0183563232421875, -0.01108551025390625, 0.014495849609375, 0.028076171875, -0.0217132568359375, 0.023101806640625, -0.0201568603515625, -0.0012912750244140625, 0.003509521484375, -0.024322509765625, 0.00012636184692382812, 0.027435302734375, -0.0307159423828125, 0.03912353515625, -0.00662994384765625, 0.00921630859375, -0.007541656494140625, -0.032684326171875, 0.0022430419921875, -0.007045745849609375, 0.018157958984375, 0.0018358230590820312, -0.06524658203125, -0.0261993408203125, -0.01036834716796875, 0.0180816650390625, 0.0102081298828125, 0.059173583984375, 0.0081634521484375, 0.01544952392578125, 0.03369140625, 0.0014743804931640625, 0.0090179443359375, 0.038543701171875, -0.01885986328125, 0.0008902549743652344, 0.00457763671875, -0.0259246826171875, -0.06414794921875, 0.034698486328125, 0.035675048828125, 0.0157318115234375, 0.08349609375, -0.0290679931640625, 0.003383636474609375, -0.059600830078125, -0.0479736328125, -0.058441162109375, -0.04541015625, -0.02923583984375, -0.00731658935546875, -0.023040771484375, -0.0233917236328125, 0.022430419921875, 0.00618743896484375, 0.0199737548828125, -0.0028362274169921875, 0.0187530517578125, 0.0142669677734375, 0.0341796875, 0.0199127197265625, -0.0174407958984375, 0.0203857421875, 0.0039825439453125, -0.00850677490234375, -0.0116119384765625, 0.0271148681640625, -0.0325927734375, 0.01141357421875, -0.0557861328125, -0.003875732421875, 0.01122283935546875, 0.0154266357421875, -0.02850341796875, 0.004039764404296875, -0.00012177228927612305, -0.0021038055419921875, 0.0198516845703125, 0.0212554931640625, 0.0088653564453125, 0.020904541015625, -0.0162506103515625, 0.01026153564453125, 0.00914764404296875, -0.0037555694580078125, 0.02203369140625, 0.0225067138671875, 0.0311279296875, 0.0025482177734375, -0.040252685546875, 0.0228271484375, -0.042205810546875, 0.027984619140625, 0.00995635986328125, -0.0164794921875, 0.0106964111328125, 0.039398193359375, -0.01678466796875, -0.0401611328125, -0.027069091796875, 0.0227508544921875, -0.051300048828125, 0.0165863037109375, 0.02813720703125, -0.005420684814453125, 0.026458740234375, 0.0022220611572265625, 0.01751708984375, 0.0631103515625, 0.005702972412109375, -0.025146484375, -0.01137542724609375, 0.04901123046875, -0.016082763671875, -0.02960205078125, 0.002529144287109375, 0.01267242431640625, 0.01486968994140625, -0.037689208984375, 0.0177154541015625, 0.01241302490234375, -0.03643798828125, -0.033355712890625, -0.035888671875, 0.0084991455078125, -0.045562744140625, -0.00844573974609375, -0.0189056396484375, -0.016754150390625, 0.0193023681640625, 0.0115814208984375, -0.038421630859375, -0.0248565673828125, 0.02490234375, 0.047943115234375, 0.0516357421875, 0.05230712890625, 0.0263824462890625, 0.0159454345703125, 0.033660888671875, 0.003772735595703125, 0.06744384765625, -0.018585205078125, 0.00855255126953125, 0.01377105712890625, 0.0079193115234375, -0.0321044921875, 0.017303466796875, 0.0168609619140625, 0.042266845703125, 0.013214111328125, -0.02838134765625, -0.02276611328125, -0.01806640625, 0.033599853515625, 0.039947509765625, 0.00351715087890625, -0.00647735595703125, -0.040863037109375, -0.03314208984375, -0.045867919921875, -0.0224151611328125, 0.0244293212890625, -0.0867919921875, 0.005619049072265625, -0.0020122528076171875, 0.0033550262451171875, -0.0197296142578125, -0.0064239501953125, -0.00505828857421875, -0.016876220703125, -0.01275634765625, -0.035888671875, 0.023193359375, -0.0146331787109375, -0.0160064697265625, -0.00445556640625, -0.012847900390625, -0.00397491455078125, 0.01015472412109375, -0.0206146240234375, 0.037994384765625, -0.0253143310546875, 0.035003662109375, -0.045318603515625, 0.00531005859375, 0.0005826950073242188, 0.045867919921875, -0.032623291015625, -0.0002446174621582031, 0.006626129150390625, 0.0097808837890625, -0.00015461444854736328, 0.0059967041015625, 0.01358795166015625, -0.005451202392578125, -0.0159912109375, 0.0262451171875, 0.0231781005859375, 0.005313873291015625, -0.007015228271484375, 0.049530029296875, -0.0012149810791015625, -0.0472412109375, -0.0029354095458984375, -0.028564453125, -0.0022373199462890625, -0.00582122802734375, 0.0188751220703125, -0.06231689453125, 0.0433349609375, 0.003879547119140625, 0.00882720947265625, 0.035919189453125 ]
6656cae98f0a2a7454795c8c0f9a6165e6cc11f3
Wordpress Stackexchange Q: How to check if a shortcode exists? I'm using do_shortcode function to add shortcode in my template. But i would like to check if that shortcode exists before display them. I mean like this If (shortcode_gallery_exists) { echo do_shortcode('[gallery]'); } Can anyone help me? Thanks A: #23572 introduced shortcode_exists() into 3.6.
Q: How to check if a shortcode exists? I'm using do_shortcode function to add shortcode in my template. But i would like to check if that shortcode exists before display them. I mean like this If (shortcode_gallery_exists) { echo do_shortcode('[gallery]'); } Can anyone help me? Thanks A: #23572 introduced shortcode_exists() into 3.6. A: I think you could use the following code to do this: $content = get_the_content(); //write the begining of the shortcode $shortcode = '[gallery'; $check = strpos($content,$shortcode); if($check=== false) { //Code to execute if there isn't the shortcode } else { //Code to execute if the shortcode is present } (Caveat: not tested) A: Found this online somewhere and used is once or twice //first we check for shortcode in the content $tempContent = get_the_content(); $tempCheck = '[gallery'; $tempVerify = strpos($tempContent,$tempCheck); if($tempVerify === false) { //Your Shortcode not found do nothing ? you choose } else { echo do_shortcode('[gallery]'); } . (i know the [gallery is missing the ].. leave it like so) This should be used inside the loop .. Hope this helps, Sagive A: You can create your own function, // check the current post for the existence of a short code function has_shortcode( $shortcode = NULL ) { $post_to_check = get_post( get_the_ID() ); // false because we have to search through the post content first $found = false; // if no short code was provided, return false if ( ! $shortcode ) { return $found; } // check the post content for the short code if ( stripos( $post_to_check->post_content, '[' . $shortcode) !== FALSE ) { // we have found the short code $found = TRUE; } // return our final results return $found; } The in your template write a conditional like, if(has_shortcode('[gallery]')) { // perform actions here } Idea from this NetTuts link A: WP now has a built-in function for this: <?php if ( shortcode_exists( 'gallery' ) ): ?> // The short code exists. <?php else: ?> // It DOESN'T EXIST <?php endif;?> https://developer.wordpress.org/reference/functions/shortcode_exists/ A: WordPress allows you to check whether a shortcode exists or not. To check it you can use shortcode_exists() function. It returns true if the shortcode exists. <?php if ( shortcode_exists( $tag ) ) { } ?> Where $tag is the name of shortcode you want to check. <?php if ( shortcode_exists( 'latest_post' ) ) { // The short code exists. } ?> A: I know it's old question but someone may still need this, especially because shortcode_exists() may not work for some plugin shortcodes: $shortcode_result = do_shortcode('[your_shortcode]'); if ($shortcode_result != [your_shortcode]) && !empty($shortcode_result))] { // do what you need } else { // this is not valide shortcode }
wordpress
{ "language": "en", "length": 442, "provenance": "stackexchange_00019.jsonl.gz:418095", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45697" }
[ 0.03375244140625, 0.01971435546875, 0.006610870361328125, -0.004871368408203125, 0.0094451904296875, -0.0286865234375, 0.04937744140625, -0.039459228515625, 0.006191253662109375, 0.03216552734375, -0.046356201171875, -0.01430511474609375, -0.020538330078125, -0.011810302734375, -0.041290283203125, -0.04864501953125, 0.0158843994140625, -0.006916046142578125, 0.01085662841796875, -0.009796142578125, 0.01004791259765625, 0.01209259033203125, -0.0240936279296875, 0.0093841552734375, 0.01190948486328125, -0.0455322265625, 0.0859375, -0.01727294921875, -0.0063629150390625, -0.03851318359375, 0.017425537109375, 0.038238525390625, 0.0283050537109375, 0.00510406494140625, -0.0308685302734375, 0.0670166015625, -0.03875732421875, 0.0216827392578125, 0.0035533905029296875, 0.0106658935546875, 0.0253143310546875, -0.0083465576171875, 0.047607421875, -0.0272369384765625, 0.00511932373046875, 0.0151519775390625, -0.00360107421875, -0.044342041015625, -0.00971221923828125, 0.0180206298828125, 0.0440673828125, -0.0008063316345214844, 0.053131103515625, -0.032958984375, -0.0175323486328125, -0.0218963623046875, -0.0004448890686035156, -0.0156707763671875, 0.0282440185546875, -0.0270843505859375, -0.040191650390625, -0.018798828125, 0.035736083984375, -0.004047393798828125, 0.033172607421875, 0.00765228271484375, -0.035888671875, 0.050140380859375, -0.02471923828125, 0.014984130859375, 0.007205963134765625, -0.041351318359375, -0.000759124755859375, -0.0009326934814453125, -0.00911712646484375, 0.02093505859375, -0.00395965576171875, 0.01418304443359375, 0.00835418701171875, 0.01071929931640625, 0.0033397674560546875, -0.0057830810546875, 0.0078887939453125, -0.005584716796875, -0.0023860931396484375, 0.0164794921875, -0.0029964447021484375, -0.006557464599609375, -0.01380157470703125, -0.027252197265625, -0.0187530517578125, 0.0191497802734375, -0.0261077880859375, -0.0243682861328125, -0.03179931640625, -0.0211181640625, 0.02325439453125, 0.108642578125, -0.03009033203125, 0.016876220703125, -0.038299560546875, -0.020294189453125, -0.0002961158752441406, -0.057830810546875, 0.0219573974609375, 0.0242462158203125, -0.018157958984375, -0.040863037109375, 0.030029296875, 0.016876220703125, -0.028045654296875, 0.009857177734375, -0.0452880859375, -0.01203155517578125, -0.004520416259765625, 0.0255889892578125, -0.07659912109375, 0.0175628662109375, -0.01837158203125, 0.0176239013671875, 0.03961181640625, 0.04583740234375, 0.038970947265625, -0.0406494140625, -0.0160675048828125, -0.010894775390625, -0.049072265625, -0.05596923828125, 0.043365478515625, 0.00914764404296875, -0.033233642578125, 0.0291748046875, 0.0096588134765625, -0.0357666015625, -0.030914306640625, -0.0035495758056640625, -0.002307891845703125, -0.0006785392761230469, 0.00864410400390625, -0.01513671875, 0.04290771484375, -0.0065155029296875, 0.02423095703125, 0.0226898193359375, -0.0028400421142578125, 0.01812744140625, 0.0328369140625, 0.01558685302734375, -0.02911376953125, -0.08172607421875, 0.040496826171875, -0.003566741943359375, 0.0220489501953125, 0.01201629638671875, -0.00548553466796875, 0.01922607421875, 0.0380859375, -0.0204925537109375, -0.0235137939453125, -0.03680419921875, 0.0114288330078125, -0.015350341796875, 0.00786590576171875, -0.03973388671875, -0.06524658203125, 0.005069732666015625, -0.04766845703125, -0.00414276123046875, 0.0181427001953125, 0.034210205078125, -0.02264404296875, -0.0313720703125, -0.0291595458984375, 0.0281524658203125, -0.0025653839111328125, 0.04010009765625, 0.00554656982421875, -0.0113983154296875, 0.0240020751953125, -0.00827789306640625, -0.0179901123046875, -0.0210113525390625, 0.044708251953125, -0.004428863525390625, -0.07305908203125, 0.058349609375, 0.0148162841796875, 0.0784912109375, 0.0136871337890625, 0.0013704299926757812, 0.0576171875, 0.0191192626953125, -0.0157012939453125, 0.0160675048828125, -0.0183868408203125, -0.0239105224609375, 0.01093292236328125, 0.008209228515625, -0.0218048095703125, -0.003162384033203125, 0.007541656494140625, -0.0217132568359375, 0.03265380859375, -0.017547607421875, -0.036590576171875, 0.012359619140625, -0.032379150390625, 0.0265655517578125, -0.0279998779296875, -0.0172119140625, 0.02294921875, -0.0269775390625, -0.020233154296875, 0.01171875, 0.00705718994140625, 0.039794921875, -0.0504150390625, 0.00489044189453125, -0.0121002197265625, 0.042633056640625, -0.005451202392578125, -0.0156707763671875, -0.016448974609375, -0.028564453125, -0.00550079345703125, 0.005428314208984375, -0.03851318359375, -0.0011730194091796875, -0.0701904296875, 0.054473876953125, -0.09686279296875, -0.0044403076171875, 0.01380157470703125, -0.01409912109375, -0.044921875, -0.0172882080078125, -0.0168304443359375, -0.046600341796875, 0.01291656494140625, 0.0621337890625, 0.050933837890625, 0.047882080078125, 0.01436614990234375, -0.038970947265625, 0.10906982421875, -0.022491455078125, 0.0164794921875, -0.045684814453125, -0.018157958984375, 0.04217529296875, -0.006805419921875, 0.053070068359375, -0.016387939453125, -0.00237274169921875, -0.0240020751953125, 0.040863037109375, -0.02996826171875, 0.01430511474609375, 0.0121917724609375, 0.01146697998046875, -0.01580810546875, -0.004238128662109375, 0.038726806640625, -0.03302001953125, 0.0850830078125, 0.024169921875, 0.054534912109375, 0.033111572265625, -0.04046630859375, 0.06024169921875, -0.01107025146484375, -0.060882568359375, 0.00624847412109375, 0.05462646484375, 0.00910186767578125, 0.09716796875, -0.05657958984375, -0.019256591796875, 0.036346435546875, 0.071044921875, -0.0283660888671875, 0.042022705078125, -0.055908203125, -0.0149383544921875, -0.01168060302734375, -0.01058197021484375, -0.0122528076171875, -0.007144927978515625, 0.04888916015625, -0.00799560546875, 0.01078033447265625, 0.0248260498046875, -0.028411865234375, 0.072509765625, 0.04998779296875, -0.038543701171875, -0.00023221969604492188, -0.0289764404296875, 0.0443115234375, -0.049041748046875, -0.0009226799011230469, 0.0533447265625, -0.03759765625, 0.034698486328125, 0.0020427703857421875, 0.0011720657348632812, -0.0240325927734375, 0.0150909423828125, -0.0057525634765625, -0.0012674331665039062, -0.032501220703125, 0.035980224609375, 0.0308685302734375, 0.0439453125, 0.01036834716796875, -0.0242156982421875, -0.0022869110107421875, 0.0418701171875, -0.04705810546875, -0.07879638671875, 0.0079803466796875, -0.032806396484375, 0.00982666015625, 0.006305694580078125, -0.0105743408203125, -0.027801513671875, 0.0305633544921875, 0.005863189697265625, 0.0073089599609375, -0.0014238357543945312, -0.041015625, -0.048919677734375, -0.06292724609375, -0.020843505859375, 0.002735137939453125, 0.01108551025390625, 0.01251983642578125, 0.05291748046875, 0.007904052734375, -0.045074462890625, 0.0229339599609375, -0.032562255859375, -0.021087646484375, 0.045318603515625, 0.005222320556640625, -0.0236053466796875, -0.01806640625, 0.0045928955078125, -0.038238525390625, 0.0041656494140625, 0.011749267578125, -0.0179901123046875, -0.0036907196044921875, -0.040802001953125, 0.02471923828125, 0.04345703125, -0.010589599609375, -0.0175933837890625, 0.07806396484375, -0.035308837890625, -0.0203094482421875, -0.006134033203125, -0.05230712890625, 0.027435302734375, 0.04205322265625, -0.0174713134765625, 0.0184326171875, -0.02093505859375, -0.01338958740234375, 0.033782958984375, 0.025482177734375, -0.01568603515625, 0.0296478271484375, -0.0162506103515625, -0.0277557373046875, -0.024993896484375, 0.0172882080078125, -0.0301513671875, 0.006927490234375, -0.0023345947265625, -0.01007080078125, -0.0236358642578125, 0.036376953125, -0.0188751220703125, -0.0273895263671875, 0.042205810546875, 0.01236724853515625, 0.046478271484375, -0.06591796875, -0.0343017578125, -0.040771484375, 0.07977294921875, 0.0003409385681152344, -0.0129547119140625, -0.004863739013671875, -0.0171661376953125, 0.0077972412109375, 0.010772705078125, -0.04437255859375, -0.0183868408203125, -0.07354736328125, 0.0293121337890625, 0.025115966796875, -0.031646728515625, -0.01337432861328125, -0.034423828125, -0.056121826171875, -0.0186614990234375, 0.02899169921875, -0.0302581787109375, 0.064208984375, -0.0142974853515625, 0.034210205078125, -0.0231170654296875, 0.004364013671875, -0.046539306640625, -0.07025146484375, -0.004650115966796875, -0.0235443115234375, 0.054656982421875, 0.0272216796875, -0.046875, -0.0170440673828125, 0.027252197265625, 0.0093994140625, -0.002826690673828125, -0.004444122314453125, -0.005184173583984375, 0.0008969306945800781, 0.0241241455078125, -0.0002868175506591797, -0.003772735595703125, -0.0038471221923828125, 0.0139007568359375, 0.00023102760314941406, 0.0271453857421875, -0.0268402099609375, -0.022796630859375, 0.0025959014892578125, -0.036865234375, 0.010162353515625, -0.0196533203125, 0.0262451171875, 0.03692626953125, -0.0093994140625, 0.0265045166015625, -0.0236358642578125, 0.01329803466796875, 0.00001722574234008789, -0.022125244140625, -0.034332275390625, 0.038177490234375, 0.0517578125, 0.01953125, 0.005611419677734375, -0.073486328125, 0.0293426513671875, 0.0472412109375, 0.0445556640625, -0.001613616943359375, -0.0007085800170898438, -0.03863525390625, 0.0119171142578125, 0.0271148681640625, -0.02093505859375, -0.005100250244140625, 0.032470703125, 0.001216888427734375, 0.0009984970092773438, -0.024658203125, -0.00788116455078125, 0.0196075439453125, 0.03790283203125, -0.0067596435546875, 0.0211181640625, 0.01459503173828125, -0.011322021484375, -0.016326904296875, -0.0160980224609375, -0.0026988983154296875, -0.013153076171875, -0.01361846923828125, 0.040771484375, 0.0167388916015625, 0.031280517578125, -0.00759124755859375, -0.0007548332214355469, 0.0306549072265625, -0.0029888153076171875, 0.03021240234375, 0.01788330078125, -0.0117340087890625, 0.040557861328125, -0.025421142578125, -0.0223846435546875, 0.024749755859375, -0.00286102294921875, 0.040618896484375, -0.0022678375244140625, -0.040130615234375, -0.0282745361328125, -0.00034928321838378906, -0.01177215576171875, -0.006313323974609375, 0.0190887451171875, 0.0501708984375, 0.00600433349609375, -0.0184173583984375, 0.0004470348358154297, -0.01806640625, 0.0118408203125, -0.0399169921875, -0.0260772705078125, -0.034393310546875, -0.0198822021484375, 0.00757598876953125, -0.02142333984375, -0.06903076171875, 0.01276397705078125, 0.0217437744140625, 0.01328277587890625, 0.0205230712890625, 0.0206756591796875, 0.034576416015625, -0.03179931640625, 0.01739501953125, -0.00528717041015625, -0.00528717041015625, -0.0372314453125, -0.04693603515625, 0.01239776611328125, 0.027923583984375, -0.028717041015625, 0.01143646240234375, 0.0259552001953125, 0.038970947265625, -0.00948333740234375, -0.01373291015625, -0.006664276123046875, 0.00258636474609375, -0.023956298828125, -0.000029087066650390625, 0.02496337890625, 0.0170745849609375, -0.036376953125, -0.00812530517578125, -0.0552978515625, -0.006511688232421875, 0.019317626953125, -0.035675048828125, 0.00818634033203125, -0.005584716796875, 0.0109100341796875, -0.00815582275390625, -0.01007843017578125, 0.034088134765625, -0.0019025802612304688, -0.0194549560546875, -0.022705078125, 0.042236328125, -0.040313720703125, -0.0186614990234375, -0.037811279296875, 0.0408935546875, -0.016387939453125, 0.006622314453125, 0.0548095703125, 0.02923583984375, -0.037139892578125, 0.01412200927734375, -0.043975830078125, -0.004772186279296875, 0.00878143310546875, -0.02947998046875, -0.04595947265625, -0.033172607421875, -0.0106353759765625, 0.0284423828125, -0.025970458984375, -0.00701904296875, 0.01342010498046875, 0.007221221923828125, -0.007663726806640625, 0.0308074951171875, 0.04534912109375, -0.01488494873046875, -0.01422882080078125, 0.0257568359375, 0.023223876953125, -0.0158538818359375, -0.0089263916015625, -0.0531005859375, 0.025054931640625, 0.030548095703125, -0.04583740234375, -0.0301055908203125, 0.0203399658203125, -0.0220794677734375, 0.0288543701171875, -0.0234527587890625, -0.0017290115356445312, 0.00798797607421875, -0.00849151611328125, -0.010986328125, 0.00508880615234375, 0.0288848876953125, 0.0010929107666015625, 0.0175018310546875, -0.039337158203125, 0.00446319580078125, 0.0038242340087890625, -0.037567138671875, 0.06787109375, -0.0120697021484375, 0.037567138671875, 0.0235443115234375, -0.0284423828125, 0.08709716796875, 0.048309326171875, -0.041748046875, 0.013214111328125, 0.018707275390625, -0.020477294921875, -0.01409149169921875, -0.0006022453308105469, 0.0022144317626953125, -0.010589599609375, 0.061920166015625, 0.00513458251953125, -0.00211334228515625, 0.050689697265625, -0.01399993896484375, 0.00970458984375, 0.04010009765625, 0.048797607421875, -0.03814697265625, -0.0169525146484375, 0.01267242431640625, -0.0293731689453125, 0.0009284019470214844, -0.047088623046875, 0.0063629150390625, -0.049346923828125, 0.09991455078125, 0.0094146728515625, -0.005947113037109375, 0.027130126953125, -0.045684814453125, -0.0034961700439453125, -0.009552001953125, 0.04644775390625, 0.0267181396484375, -0.01415252685546875, -0.00011610984802246094, 0.021942138671875, 0.005229949951171875, -0.0229034423828125, 0.01526641845703125, -0.0254364013671875, -0.00530242919921875, -0.02001953125, 0.011260986328125, -0.0027313232421875, 0.00909423828125, 0.010833740234375, 0.015106201171875, 0.0220947265625, 0.052520751953125, -0.019622802734375, 0.0223541259765625, 0.01392364501953125, 0.00768280029296875, 0.0146636962890625, -0.004116058349609375, 0.0234832763671875, 0.052825927734375, -0.08526611328125, 0.018463134765625, -0.03326416015625, 0.02685546875, -0.01617431640625, -0.032012939453125, 0.094482421875, -0.07232666015625, -0.0006480216979980469, -0.0121917724609375, 0.04345703125, 0.0162811279296875, -0.004840850830078125, 0.03375244140625, -0.0236053466796875, -0.008026123046875, 0.00440216064453125, -0.048858642578125, -0.035400390625, -0.03900146484375, -0.06390380859375, 0.044158935546875, -0.004909515380859375, 0.03375244140625, 0.01458740234375, 0.00930023193359375, -0.01517486572265625, -0.0053863525390625, -0.040557861328125, 0.05792236328125, 0.018585205078125, 0.03656005859375, -0.029327392578125, -0.0006160736083984375, 0.015899658203125, 0.02752685546875, 0.0165863037109375, -0.005481719970703125, 0.043243408203125, 0.01009368896484375, 0.03753662109375, -0.0176239013671875, -0.049285888671875, 0.0009713172912597656, -0.031768798828125, -0.0187835693359375, 0.00772857666015625, -0.01291656494140625, 0.0245513916015625, -0.03961181640625, -0.037139892578125, -0.0066070556640625, -0.004238128662109375, -0.0105743408203125, -0.0007596015930175781, 0.0118865966796875, -0.01080322265625, -0.0113067626953125, 0.005947113037109375, -0.00969696044921875, -0.015533447265625, 0.038482666015625, -0.0029773712158203125, -0.0391845703125, -0.050262451171875, -0.01293182373046875, 0.020721435546875, -0.012725830078125, 0.039520263671875, 0.0302886962890625, 0.01184844970703125, 0.057861328125, -0.004352569580078125, 0.0187225341796875, 0.018646240234375, -0.01076507568359375, 0.03228759765625, 0.043701171875, 0.0223846435546875, -0.019561767578125, -0.027618408203125, 0.050445556640625, 0.054412841796875, -0.0165557861328125, -0.0217132568359375, 0.019287109375, 0.0163421630859375, -0.02484130859375, -0.0101318359375, -0.018951416015625, 0.0013170242309570312, 0.045623779296875, -0.053558349609375, -0.025054931640625, 0.03271484375, 0.04779052734375, 0.0000979304313659668, -0.01090240478515625, -0.02752685546875, -0.05303955078125, -0.0467529296875, 0.0221710205078125, 0.016143798828125, 0.06280517578125, 0.00811004638671875, 0.0433349609375, -0.041351318359375, -0.032684326171875, -0.0231781005859375, 0.010345458984375, -0.041259765625, 0.04083251953125, -0.071533203125, -0.037139892578125, 0.003520965576171875, 0.057891845703125, 0.002307891845703125, 0.05267333984375, 0.024200439453125, 0.0289306640625, 0.0255889892578125, -0.00406646728515625, 0.04815673828125, -0.0199127197265625, 0.0032196044921875, -0.0198822021484375, -0.00984954833984375, 0.011932373046875, -0.00429534912109375, -0.02227783203125, -0.004123687744140625, 0.051910400390625, -0.04705810546875, 0.0587158203125, -0.0170745849609375, -0.0130462646484375, 0.01953125, -0.003986358642578125, 0.0811767578125, -0.005558013916015625, -0.0167694091796875, -0.01239776611328125, 0.01495361328125, -0.041748046875, -0.0004742145538330078, 0.035675048828125, -0.0119171142578125, 0.01313018798828125, 0.023651123046875, -0.028045654296875, 0.007541656494140625, 0.049102783203125, -0.0102386474609375, -0.023040771484375, 0.029815673828125, -0.031005859375, -0.051239013671875, -0.0187530517578125, -0.019195556640625, 0.0229644775390625, 0.033294677734375, 0.0304412841796875, 0.01523590087890625, 0.0201568603515625, -0.016510009765625, -0.00353240966796875, -0.0023174285888671875, -0.01424407958984375, 0.05694580078125, 0.00278472900390625, -0.02545166015625, -0.0345458984375, 0.007419586181640625, 0.0242919921875, 0.039642333984375, -0.0151824951171875, 0.01165771484375, -0.012786865234375, 0.0223388671875, -0.007442474365234375, 0.02642822265625, -0.03472900390625, -0.07806396484375, -0.0310821533203125, 0.06536865234375, -0.0208740234375, 0.011474609375, -0.0312347412109375, 0.0120849609375, 0.031829833984375, -0.053070068359375, 0.02606201171875, -0.02886962890625, 0.0247955322265625, 0.03436279296875, 0.0465087890625, 0.01255035400390625, -0.072509765625, -0.03424072265625, 0.0128936767578125, -0.0047454833984375, -0.0439453125, -0.0184173583984375, -0.007221221923828125, 0.0111846923828125, 0.0284423828125, 0.01556396484375, -0.03851318359375, -0.00226593017578125, 0.04290771484375, -0.0309600830078125, 0.04693603515625, 0.01128387451171875, 0.0048675537109375, -0.0435791015625, 0.005496978759765625, 0.0169677734375, 0.0006384849548339844, 0.04730224609375, 0.0225982666015625, 0.0009298324584960938, 0.030609130859375, 0.0010328292846679688, -0.0200653076171875, -0.00458526611328125, -0.00060272216796875, 0.021728515625, 0.015716552734375, 0.01251983642578125, 0.018890380859375, 0.035919189453125, -0.0364990234375, 0.02435302734375, 0.00859832763671875, -0.032012939453125, 0.034515380859375, 0.01702880859375, 0.031829833984375, -0.036590576171875, -0.043731689453125, 0.0196380615234375, 0.0122528076171875, 0.050628662109375, 0.03302001953125, -0.037261962890625, 0.0248870849609375, -0.023773193359375, -0.00643157958984375, -0.0212249755859375, -0.0030651092529296875, -0.060882568359375, -0.00124359130859375, -0.0289306640625, 0.0189056396484375, 0.048492431640625, -0.0281982421875, -0.10723876953125, 0.0438232421875, -0.03387451171875, -0.0300445556640625, -0.05377197265625, 0.0013895034790039062, -0.01300811767578125, 0.03515625, -0.016082763671875, 0.0029392242431640625, -0.0012655258178710938, 0.04473876953125, -0.01435089111328125, 0.035675048828125, 0.00714111328125, -0.026611328125, -0.0257415771484375, -0.00901031494140625, -0.029541015625, -0.01442718505859375, 0.050537109375, -0.03948974609375, 0.05224609375, 0.044921875, -0.04144287109375, -0.0882568359375, -0.02435302734375, -0.046234130859375, 0.0181427001953125, -0.05157470703125, 0.01267242431640625, -0.0109405517578125, 0.05279541015625, -0.0188446044921875, 0.01021575927734375, -0.018890380859375, -0.0294647216796875, 0.0086212158203125, -0.0259246826171875, 0.01126861572265625, 0.01763916015625, -0.03375244140625, 0.0237579345703125, -0.04681396484375, -0.0017423629760742188, -0.020843505859375, 0.01342010498046875, -0.042694091796875, -0.0161590576171875, -0.03021240234375, -0.00787353515625, -0.053070068359375, -0.0237274169921875, 0.037445068359375, -0.01422119140625, 0.03533935546875, -0.0236663818359375, 0.0287017822265625, 0.037384033203125, 0.0114593505859375, 0.045013427734375, 0.02923583984375, -0.024932861328125, -0.0129852294921875, 0.043731689453125, -0.01381683349609375, 0.0171356201171875, -0.02813720703125, 0.01641845703125, 0.01206207275390625, 0.005077362060546875, -0.0064849853515625, -0.0295867919921875, 0.052825927734375, -0.021209716796875, 0.057861328125, -0.0039005279541015625, 0.06756591796875, 0.01348114013671875, 0.0251922607421875, 0.00017011165618896484, -0.0192108154296875, 0.022705078125, -0.047821044921875, -0.00409698486328125, 0.0204315185546875, -0.01247406005859375, -0.07415771484375, 0.04534912109375, -0.0212860107421875, 0.041900634765625, 0.0291595458984375 ]
371045da01bd5a75d202684d47e6a592978a01b7
Wordpress Stackexchange Q: Display Menu Name using wp_nav_menu I have a custom menu that I can call just fine using wp_nav_menu. Is there a way to have the menu name displayed inside an h3 tag before the menu? Ex. <h3>My Menu Name</h3> <nav> <ul> <li>Menu Item 1</li> <li>Menu Item 2</li> </ul> </nav> A: replace the id 4 below with the id of your menu. if you don't know the id go into the menus page of the admin, right click on the tab of the menu you want to echo the title for, inspect elemenent and the id will be listed as menu=ID in the link. <? $_menu_object = wp_get_nav_menu_object( 4 ); $nav_menu_selected_title = $_menu_object->name; echo $nav_menu_selected_title; ?>
Q: Display Menu Name using wp_nav_menu I have a custom menu that I can call just fine using wp_nav_menu. Is there a way to have the menu name displayed inside an h3 tag before the menu? Ex. <h3>My Menu Name</h3> <nav> <ul> <li>Menu Item 1</li> <li>Menu Item 2</li> </ul> </nav> A: replace the id 4 below with the id of your menu. if you don't know the id go into the menus page of the admin, right click on the tab of the menu you want to echo the title for, inspect elemenent and the id will be listed as menu=ID in the link. <? $_menu_object = wp_get_nav_menu_object( 4 ); $nav_menu_selected_title = $_menu_object->name; echo $nav_menu_selected_title; ?> A: If you know the menu's slug, then things are easier, otherwise you can use this function to get the menu at a specified location. <?php function wpse45700_get_menu_by_location( $location ) { if( empty($location) ) return false; $locations = get_nav_menu_locations(); if( ! isset( $locations[$location] ) ) return false; $menu_obj = get_term( $locations[$location], 'nav_menu' ); return $menu_obj; } ?> Then //if you after the menu the menu with a specific ID / Slug //$menu_obj =wp_get_nav_menu_object($id_slug_or_name); //if you after the menu at a specific location $menu_obj = wpse45700_get_menu_by_location($location); echo "<h3>".esc_html($menu_obj->name)."</h3>"; //Display menu here Or, rather than echo the html, you could pass it as part of the the argument for the items attribute in wp_nav_menu. For example, to display the menu at location 'primary': $location = 'primary'; $menu_obj = wpse45700_get_menu_by_location($location ); wp_nav_menu( array('theme_location' => $location, 'items_wrap'=> '<h3>'.esc_html($menu_obj->name).'</h3><ul id=\"%1$s\" class=\"%2$s\">%3$s</ul>') ); A: stephen's answer is good. but i put it one step further: <?php $location = 'footer_navigation3'; if (has_nav_menu($location)) : $menu_obj = get_menu_by_location($location); wp_nav_menu( array( 'theme_location' => $location, 'items_wrap'=> '<strong>'.esc_html($menu_obj->name).'</strong><ul id="%1$s" class="%2$s">%3$s</ul>' )); endif; ?> assuming you have a registered a theme location called "footer_navigation3" and assigned a wp menu to that. now place this code where ever you want to display your menu.
wordpress
{ "language": "en", "length": 316, "provenance": "stackexchange_00019.jsonl.gz:418096", "question_score": "18", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45700" }
[ 0.03564453125, 0.0056915283203125, 0.016845703125, 0.03680419921875, 0.005771636962890625, -0.035400390625, 0.07342529296875, -0.07098388671875, -0.005462646484375, 0.003627777099609375, -0.043609619140625, 0.0196533203125, -0.0299530029296875, -0.0161590576171875, 0.006023406982421875, -0.052703857421875, 0.0372314453125, -0.0082550048828125, 0.03704833984375, 0.006275177001953125, 0.002536773681640625, 0.0288543701171875, 0.036346435546875, 0.01465606689453125, 0.04644775390625, -0.084716796875, 0.01406097412109375, -0.0088043212890625, 0.03619384765625, 0.0016317367553710938, 0.036773681640625, -0.021026611328125, 0.00205230712890625, 0.0102081298828125, 0.04986572265625, 0.04498291015625, 0.009521484375, 0.0158538818359375, 0.052459716796875, -0.0127410888671875, 0.0206146240234375, -0.0178985595703125, 0.01727294921875, -0.0019779205322265625, 0.002197265625, -0.03692626953125, 0.01354217529296875, -0.040191650390625, 0.0090484619140625, -0.025238037109375, 0.035247802734375, 0.0234222412109375, 0.046417236328125, 0.0092315673828125, -0.02252197265625, -0.002582550048828125, 0.01459503173828125, -0.044158935546875, 0.027587890625, 0.036376953125, -0.007434844970703125, -0.016693115234375, 0.01361083984375, -0.04315185546875, 0.007007598876953125, 0.006992340087890625, 0.06585693359375, -0.0006518363952636719, -0.036468505859375, -0.0101470947265625, 0.0275421142578125, -0.01316070556640625, -0.007503509521484375, -0.0175628662109375, -0.0253143310546875, -0.0289459228515625, 0.0213775634765625, -0.04345703125, 0.0038280487060546875, 0.01396942138671875, 0.0103302001953125, 0.00818634033203125, -0.025665283203125, 0.00922393798828125, -0.003444671630859375, 0.0290679931640625, -0.0228118896484375, -0.0259857177734375, 0.0273284912109375, -0.026702880859375, -0.006099700927734375, -0.00045752525329589844, 0.027923583984375, 0.0016937255859375, -0.040374755859375, -0.0298309326171875, 0.0219879150390625, 0.0655517578125, -0.0107879638671875, 0.021392822265625, -0.01401519775390625, -0.0228271484375, 0.045989990234375, -0.052886962890625, -0.007171630859375, 0.04071044921875, 0.0277557373046875, 0.0562744140625, 0.028289794921875, 0.00948333740234375, 0.00652313232421875, -0.000591278076171875, -0.0230865478515625, -0.0301971435546875, -0.0253753662109375, 0.027740478515625, -0.0289459228515625, -0.0120849609375, 0.01258087158203125, -0.005615234375, -0.01213836669921875, 0.0146026611328125, -0.01389312744140625, 0.035400390625, 0.019439697265625, 0.0426025390625, 0.015899658203125, -0.0247955322265625, -0.053985595703125, 0.0147552490234375, -0.01357269287109375, 0.008392333984375, 0.0484619140625, 0.07080078125, 0.0172119140625, -0.025238037109375, -0.01380157470703125, -0.012176513671875, -0.0019512176513671875, 0.0028514862060546875, 0.0008988380432128906, 0.00450897216796875, 0.03765869140625, -0.0244903564453125, -0.00620269775390625, 0.032806396484375, 0.0082855224609375, -0.0052642822265625, -0.014617919921875, -0.053192138671875, 0.0186920166015625, -0.058197021484375, 0.03826904296875, -0.0074462890625, -0.02392578125, -0.0017824172973632812, 0.0011615753173828125, -0.0116729736328125, -0.0296478271484375, -0.00699615478515625, -0.04156494140625, -0.021820068359375, 0.00037741661071777344, -0.06182861328125, -0.0648193359375, 0.0241241455078125, -0.025909423828125, -0.0017461776733398438, 0.014984130859375, 0.01282501220703125, -0.00772857666015625, -0.0275115966796875, -0.0216827392578125, -0.012481689453125, -0.0158233642578125, 0.025238037109375, 0.017059326171875, 0.002376556396484375, 0.004474639892578125, 0.059051513671875, 0.00565338134765625, -0.0352783203125, 0.0218963623046875, -0.0201873779296875, -0.0657958984375, 0.0268402099609375, 0.0038928985595703125, 0.08526611328125, 0.031585693359375, 0.0228729248046875, 0.041717529296875, -0.0218353271484375, -0.022918701171875, -0.0157623291015625, 0.003566741943359375, 0.004055023193359375, 0.01064300537109375, 0.01091766357421875, -0.0016508102416992188, -0.0199737548828125, -0.0284423828125, 0.026641845703125, -0.027069091796875, 0.0090484619140625, -0.042572021484375, 0.003559112548828125, -0.0171661376953125, 0.046905517578125, 0.0249481201171875, 0.0023136138916015625, -0.009735107421875, -0.0125732421875, 0.0341796875, -0.12213134765625, -0.061553955078125, 0.0165252685546875, -0.02325439453125, 0.00974273681640625, -0.01345062255859375, 0.0044097900390625, -0.016510009765625, 0.0058746337890625, -0.0175323486328125, 0.0147857666015625, 0.0162506103515625, -0.01444244384765625, -0.01334381103515625, -0.0181732177734375, 0.0111541748046875, 0.007503509521484375, -0.0268707275390625, 0.018402099609375, 0.05645751953125, 0.06304931640625, -0.0014848709106445312, -0.0115814208984375, 0.01253509521484375, -0.07611083984375, 0.0121612548828125, 0.0386962890625, 0.01212310791015625, 0.034027099609375, -0.0203399658203125, -0.0016851425170898438, 0.026641845703125, -0.030059814453125, 0.005157470703125, -0.0064849853515625, -0.0341796875, -0.01393890380859375, 0.04364013671875, 0.0003364086151123047, 0.0294342041015625, -0.0048370361328125, -0.00925445556640625, 0.029632568359375, -0.01276397705078125, -0.020294189453125, 0.0050048828125, 0.01413726806640625, 0.00389862060546875, 0.017974853515625, 0.01367950439453125, 0.005764007568359375, -0.0005640983581542969, 0.0231781005859375, 0.00024819374084472656, 0.0010995864868164062, -0.044891357421875, 0.01273345947265625, 0.036346435546875, 0.030426025390625, 0.00556182861328125, -0.0079193115234375, -0.001644134521484375, -0.0175933837890625, -0.01409149169921875, 0.013458251953125, 0.01141357421875, -0.022369384765625, -0.0108184814453125, 0.0170135498046875, 0.00794219970703125, -0.0111846923828125, -0.0040740966796875, -0.06689453125, 0.0193939208984375, 0.0028362274169921875, -0.01514434814453125, 0.0021343231201171875, 0.01284027099609375, 0.031707763671875, -0.01486968994140625, 0.0200347900390625, -0.032440185546875, 0.00677490234375, 0.0262908935546875, 0.023468017578125, 0.0076751708984375, 0.0106658935546875, 0.04168701171875, 0.0546875, 0.00461578369140625, 0.0018091201782226562, 0.0031833648681640625, -0.00958251953125, 0.01073455810546875, 0.0011224746704101562, 0.0032138824462890625, -0.005222320556640625, -0.0116729736328125, 0.05401611328125, 0.0004992485046386719, 0.02288818359375, -0.033172607421875, -0.05645751953125, -0.034332275390625, -0.0183258056640625, -0.091552734375, -0.048736572265625, 0.008636474609375, -0.0187225341796875, 0.034423828125, 0.028717041015625, 0.0025043487548828125, -0.035247802734375, 0.059356689453125, 0.008514404296875, 0.0066986083984375, -0.04351806640625, -0.0484619140625, -0.05242919921875, -0.0565185546875, -0.0022487640380859375, -0.005992889404296875, -0.011322021484375, -0.0028629302978515625, 0.0023860931396484375, -0.004108428955078125, -0.026824951171875, 0.02880859375, -0.00308990478515625, 0.009918212890625, 0.0199737548828125, 0.0297393798828125, -0.0218658447265625, 0.0066680908203125, 0.01209259033203125, 0.0075225830078125, 0.0257415771484375, -0.015869140625, -0.0213470458984375, -0.03179931640625, 0.0005660057067871094, 0.0281524658203125, 0.0005974769592285156, 0.02349853515625, 0.049835205078125, 0.06085205078125, -0.01030731201171875, -0.01398468017578125, -0.036834716796875, -0.046417236328125, 0.0114898681640625, 0.030975341796875, 0.004718780517578125, -0.040771484375, 0.00972747802734375, -0.0217742919921875, -0.01546478271484375, -0.00640869140625, -0.0106353759765625, -0.0037899017333984375, -0.01076507568359375, 0.00665283203125, 0.01085662841796875, 0.044769287109375, 0.0009632110595703125, 0.0157318115234375, 0.028045654296875, 0.0308074951171875, 0.00437164306640625, 0.00455474853515625, -0.056732177734375, -0.050140380859375, 0.03326416015625, -0.05889892578125, 0.0312347412109375, -0.045684814453125, -0.0225982666015625, 0.0015268325805664062, 0.10980224609375, -0.0099639892578125, -0.00977325439453125, 0.006542205810546875, 0.006359100341796875, 0.01270294189453125, -0.0139312744140625, -0.042633056640625, -0.0299530029296875, -0.11480712890625, 0.0232086181640625, -0.01195526123046875, -0.035491943359375, -0.0290069580078125, 0.053436279296875, -0.07061767578125, -0.03466796875, 0.0218963623046875, -0.048095703125, -0.0005216598510742188, 0.0254058837890625, -0.0218505859375, -0.00687408447265625, -0.030120849609375, -0.0301513671875, -0.080322265625, -0.01137542724609375, -0.028106689453125, 0.07244873046875, 0.022491455078125, -0.0084075927734375, -0.0012083053588867188, 0.0596923828125, 0.049041748046875, 0.0631103515625, 0.0210418701171875, -0.012359619140625, 0.0296630859375, -0.0301666259765625, 0.028717041015625, -0.03961181640625, -0.010650634765625, -0.01568603515625, -0.02801513671875, 0.017303466796875, -0.0081634521484375, 0.0192718505859375, 0.0288543701171875, -0.0291290283203125, -0.04107666015625, -0.0394287109375, 0.003391265869140625, 0.0082550048828125, 0.03302001953125, -0.013702392578125, -0.034881591796875, -0.04132080078125, -0.0307769775390625, 0.0011463165283203125, -0.021270751953125, 0.019927978515625, 0.0312042236328125, 0.038970947265625, -0.0118865966796875, 0.015533447265625, 0.036285400390625, 0.039459228515625, -0.0290374755859375, 0.04949951171875, 0.006298065185546875, -0.034210205078125, 0.06640625, -0.0005083084106445312, 0.0248565673828125, 0.019744873046875, 0.0222625732421875, -0.00017201900482177734, -0.03314208984375, 0.039459228515625, 0.01561737060546875, -0.066162109375, 0.044097900390625, 0.006893157958984375, -0.042694091796875, -0.01031494140625, 0.058502197265625, -0.01465606689453125, 0.012054443359375, -0.0439453125, -0.02581787109375, 0.004001617431640625, 0.0243682861328125, 0.04852294921875, 0.0277252197265625, -0.0017499923706054688, 0.008453369140625, 0.019256591796875, -0.005245208740234375, 0.0032520294189453125, -0.041717529296875, 0.00798797607421875, 0.035919189453125, -0.0523681640625, -0.004772186279296875, 0.031951904296875, -0.012451171875, 0.09130859375, 0.047149658203125, 0.00212860107421875, -0.04327392578125, 0.004119873046875, 0.00992584228515625, -0.036285400390625, 0.018463134765625, 0.01251220703125, 0.01097869873046875, 0.0031185150146484375, 0.01056671142578125, -0.01471710205078125, 0.006744384765625, -0.01495361328125, 0.0157928466796875, 0.03271484375, -0.012237548828125, 0.0015668869018554688, 0.08245849609375, 0.01418304443359375, 0.031524658203125, -0.020294189453125, 0.008026123046875, 0.0021762847900390625, 0.026031494140625, 0.0159149169921875, 0.00785064697265625, 0.007354736328125, -0.01322174072265625, 0.017669677734375, -0.0091552734375, 0.0085296630859375, -0.00164794921875, -0.0061492919921875, 0.0155181884765625, 0.0012559890747070312, 0.03350830078125, -0.007404327392578125, -0.0069427490234375, 0.03619384765625, -0.047515869140625, -0.070068359375, -0.051422119140625, -0.0021228790283203125, 0.042083740234375, -0.0386962890625, -0.003871917724609375, 0.0171051025390625, 0.0110626220703125, 0.04052734375, -0.052581787109375, -0.0016565322875976562, 0.029449462890625, 0.036285400390625, 0.004421234130859375, 0.00469207763671875, -0.006458282470703125, -0.06414794921875, -0.03802490234375, -0.01398468017578125, -0.0134124755859375, 0.0689697265625, -0.0377197265625, 0.02349853515625, -0.030792236328125, 0.0258026123046875, -0.053741455078125, 0.0219573974609375, 0.0182952880859375, 0.0238494873046875, -0.06573486328125, 0.03509521484375, -0.022125244140625, 0.01128387451171875, 0.040618896484375, -0.032318115234375, -0.03021240234375, -0.0660400390625, -0.0170745849609375, 0.0028228759765625, 0.00628662109375, 0.0146331787109375, -0.0287933349609375, 0.031982421875, 0.0008106231689453125, -0.00012743473052978516, -0.004608154296875, 0.0333251953125, -0.00089263916015625, 0.01204681396484375, 0.00720977783203125, 0.0164794921875, -0.004180908203125, -0.0200042724609375, 0.02093505859375, 0.0163726806640625, -0.02301025390625, -0.03863525390625, -0.00516510009765625, -0.0171966552734375, 0.05279541015625, -0.00823974609375, 0.042999267578125, -0.0016918182373046875, 0.0130767822265625, -0.006343841552734375, -0.0391845703125, -0.0193634033203125, -0.016937255859375, 0.060394287109375, -0.01593017578125, 0.01081085205078125, 0.015960693359375, 0.034881591796875, -0.0004620552062988281, -0.017791748046875, 0.0204010009765625, -0.0215606689453125, -0.068359375, 0.07550048828125, 0.07720947265625, 0.0304412841796875, 0.045623779296875, 0.0129241943359375, 0.01094818115234375, -0.01824951171875, -0.00957489013671875, -0.02008056640625, 0.01096343994140625, 0.045928955078125, 0.006046295166015625, -0.0015592575073242188, 0.0465087890625, -0.022430419921875, 0.026123046875, 0.038665771484375, 0.0535888671875, -0.056182861328125, 0.0172119140625, -0.00318145751953125, -0.0251617431640625, 0.04803466796875, 0.01465606689453125, -0.020172119140625, -0.0262298583984375, 0.018798828125, -0.04644775390625, -0.0138092041015625, 0.0119781494140625, 0.0029582977294921875, 0.015472412109375, -0.018585205078125, 0.035308837890625, 0.0106658935546875, 0.0031948089599609375, -0.03271484375, -0.003204345703125, 0.007366180419921875, -0.043304443359375, 0.005130767822265625, 0.035430908203125, 0.0010519027709960938, -0.0316162109375, 0.08343505859375, -0.0239410400390625, 0.035736083984375, 0.035369873046875, 0.0253143310546875, -0.01934814453125, 0.049072265625, -0.02532958984375, 0.04473876953125, -0.00258636474609375, -0.008270263671875, 0.06292724609375, -0.0114288330078125, 0.00041985511779785156, 0.006855010986328125, -0.047271728515625, -0.01229095458984375, -0.01045989990234375, 0.0115814208984375, -0.0178680419921875, 0.0181427001953125, 0.12237548828125, -0.01168060302734375, -0.046173095703125, -0.01837158203125, -0.0009369850158691406, 0.005428314208984375, 0.0007152557373046875, 0.045654296875, -0.046142578125, 0.0006952285766601562, 0.0257415771484375, 0.0131072998046875, -0.0260009765625, 0.0033473968505859375, -0.028839111328125, 0.08062744140625, -0.01412200927734375, -0.0005440711975097656, 0.01404571533203125, 0.036834716796875, -0.0110015869140625, 0.027069091796875, -0.039459228515625, 0.040618896484375, -0.01277923583984375, 0.04644775390625, -0.069580078125, -0.007564544677734375, 0.01324462890625, 0.047027587890625, -0.03839111328125, -0.00777435302734375, -0.003223419189453125, 0.0026378631591796875, 0.02789306640625, 0.06378173828125, 0.04083251953125, -0.021820068359375, -0.00933074951171875, -0.036285400390625, -0.011810302734375, 0.0037078857421875, 0.024566650390625, -0.0284271240234375, -0.0419921875, 0.000023603439331054688, 0.01404571533203125, 0.0171966552734375, -0.0204010009765625, -0.0023632049560546875, -0.0164031982421875, -0.007476806640625, 0.004169464111328125, -0.00638580322265625, 0.0006427764892578125, 0.0198516845703125, 0.01413726806640625, -0.023406982421875, -0.0482177734375, -0.022796630859375, 0.03338623046875, 0.00864410400390625, -0.0208740234375, 0.04022216796875, 0.025238037109375, -0.0294342041015625, -0.009063720703125, -0.0050201416015625, 0.004718780517578125, -0.015777587890625, 0.040740966796875, 0.0091400146484375, 0.035919189453125, -0.047637939453125, -0.07952880859375, 0.0305023193359375, 0.078857421875, -0.016937255859375, -0.02459716796875, 0.007232666015625, -0.0003788471221923828, -0.006206512451171875, 0.016265869140625, 0.028076171875, 0.033355712890625, 0.0274505615234375, -0.01561737060546875, 0.013885498046875, 0.057708740234375, 0.02813720703125, 0.01239013671875, 0.021881103515625, -0.06329345703125, 0.00997161865234375, -0.052459716796875, 0.042022705078125, 0.033111572265625, 0.04254150390625, -0.004268646240234375, 0.0491943359375, 0.00171661376953125, -0.006580352783203125, 0.0030269622802734375, 0.033905029296875, 0.0092315673828125, -0.01012420654296875, -0.008758544921875, -0.0262603759765625, 0.0242767333984375, -0.004016876220703125, 0.03509521484375, 0.029693603515625, 0.0592041015625, 0.015533447265625, -0.025543212890625, -0.0035419464111328125, -0.01219940185546875, -0.03326416015625, -0.04522705078125, -0.043670654296875, 0.033599853515625, 0.036468505859375, 0.0340576171875, 0.01531982421875, 0.04241943359375, 0.0124969482421875, -0.022369384765625, 0.040618896484375, -0.00801849365234375, -0.004604339599609375, 0.016143798828125, -0.0184326171875, 0.0271759033203125, 0.0019292831420898438, -0.136474609375, -0.0377197265625, -0.03741455078125, -0.00801849365234375, 0.039031982421875, 0.047882080078125, 0.0135040283203125, -0.00431060791015625, 0.01082611083984375, -0.007038116455078125, 0.0109100341796875, -0.01322174072265625, 0.0172119140625, 0.04498291015625, 0.0186004638671875, 0.0257415771484375, -0.058074951171875, -0.0250244140625, 0.0010223388671875, 0.0093231201171875, 0.036224365234375, -0.024688720703125, 0.03729248046875, 0.019622802734375, -0.04931640625, 0.00891876220703125, -0.04974365234375, -0.064697265625, 0.040313720703125, -0.01383209228515625, -0.016754150390625, 0.019500732421875, -0.07305908203125, 0.046600341796875, 0.026214599609375, -0.0013437271118164062, 0.057342529296875, -0.0124053955078125, 0.00615692138671875, -0.04864501953125, 0.0255126953125, -0.005764007568359375, -0.021453857421875, 0.004070281982421875, 0.006191253662109375, 0.0182037353515625, 0.0401611328125, 0.0025653839111328125, 0.0120086669921875, 0.0037021636962890625, -0.027099609375, 0.00800323486328125, -0.0220794677734375, 0.0272369384765625, 0.04046630859375, 0.0081024169921875, -0.032440185546875, -0.01560211181640625, -0.01557159423828125, -0.022430419921875, 0.015472412109375, -0.004093170166015625, -0.01360321044921875, -0.009979248046875, 0.041656494140625, 0.005062103271484375, 0.03851318359375, -0.034393310546875, 0.01751708984375, 0.0165557861328125, 0.02410888671875, 0.0035419464111328125, -0.053985595703125, -0.059295654296875, -0.06768798828125, 0.017242431640625, 0.058837890625, -0.0450439453125, 0.01055145263671875, -0.134765625, -0.005809783935546875, 0.03466796875, -0.0029277801513671875, -0.0190582275390625, 0.0015592575073242188, -0.0330810546875, 0.042236328125, -0.0169677734375, -0.005580902099609375, 0.005779266357421875, -0.005718231201171875, -0.0259857177734375, 0.009765625, -0.0103912353515625, 0.013824462890625, 0.0239410400390625, -0.0096435546875, 0.00072479248046875, -0.0134429931640625, -0.045318603515625, -0.002269744873046875, 0.01438140869140625, 0.03436279296875, 0.048431396484375, -0.0174407958984375, -0.04638671875, 0.01451873779296875, -0.01537322998046875, -0.021728515625, 0.0469970703125, -0.07421875, -0.07244873046875, 0.0206451416015625, 0.004856109619140625, 0.030120849609375, -0.02777099609375, -0.036895751953125, 0.05401611328125, 0.0167999267578125, -0.031768798828125, 0.027862548828125, 0.007297515869140625, -0.028289794921875, 0.0275421142578125, 0.0206298828125, -0.0279998779296875, 0.00921630859375, -0.00250244140625, -0.0019159317016601562, 0.07666015625, -0.0187835693359375, 0.0234375, -0.0220947265625, 0.0113677978515625, -0.0164337158203125, -0.011260986328125, 0.00559234619140625, -0.0158843994140625, 0.010009765625, 0.01265716552734375, -0.046722412109375, -0.049285888671875, 0.0010290145874023438, 0.0237884521484375, -0.00019502639770507812, -0.02911376953125, -0.038421630859375, -0.0272674560546875, 0.0206146240234375, 0.046600341796875, 0.006168365478515625, -0.0220184326171875, 0.0129547119140625, -0.020263671875, -0.035125732421875, -0.00791168212890625, 0.01131439208984375, -0.047698974609375, -0.01139068603515625, 0.0213775634765625, -0.040435791015625, -0.043914794921875, 0.034027099609375, -0.0775146484375, 0.0082550048828125, -0.00567626953125, 0.006290435791015625, -0.05682373046875, -0.03289794921875, 0.096923828125, -0.071533203125, -0.055938720703125, 0.006927490234375, 0.032623291015625, -0.00453948974609375, -0.06036376953125, -0.01727294921875, -0.00859832763671875, -0.0188140869140625, -0.0003173351287841797, -0.017669677734375, 0.03228759765625, -0.01406097412109375, -0.01000213623046875, -0.01100921630859375, 0.0286102294921875, 0.0033626556396484375, 0.0253753662109375, -0.0103759765625, 0.0192718505859375, 0.004177093505859375, 0.007659912109375, -6.556510925292969e-7, 0.026519775390625, 0.0022678375244140625, 0.055328369140625, -0.0035114288330078125, -0.0270538330078125, 0.0168914794921875, -0.051666259765625, 0.003116607666015625, -0.00778961181640625, -0.01323699951171875, -0.038360595703125, 0.0231170654296875, 0.01383209228515625, -0.0035648345947265625, 0.027099609375 ]
80fe13ad0da12ef9b57f2853030c1ff35a9272e8
Wordpress Stackexchange Q: add_query_vars and add_rewrite_rules I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in the pretty url, the page acts how I want. When I submit a form which redirects to a page with the query variables in the url, it also works fine. But I had thought that if I had typed in a url with the query variables, it would switch to the pretty url. It does not do that. Should it? Am I doing this wrong? function add_query_vars($aVars) { $aVars[] .= 'var_state'; $aVars[] .= 'var_clubs'; } add_filter('query_vars', 'add_query_vars'); function add_rewrite_rules($aRules) { $aNewRules = array( 'rv-clubs/([^/]+)/([^/]+)/?$' => 'index.php?pagename=rv-clubs&var_state=$matches[1]&var_clubs=$matches[2]' ); $aRules = $aNewRules + $aRules; return $aRules; } add_filter('rewrite_rules_array', 'add_rewrite_rules'); Any help would be appreciated. A: You can see in this answer how add_rewrite_rules is being used, I don't think it applies to your case at all. What you need to do is to redirect urls generated from the search from (I'm assuming something like site.com/?s=term) to a pretty URL. This article do it http://www.wptavern.com/how-to-make-the-wordpress-search-url-pretty
Q: add_query_vars and add_rewrite_rules I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in the pretty url, the page acts how I want. When I submit a form which redirects to a page with the query variables in the url, it also works fine. But I had thought that if I had typed in a url with the query variables, it would switch to the pretty url. It does not do that. Should it? Am I doing this wrong? function add_query_vars($aVars) { $aVars[] .= 'var_state'; $aVars[] .= 'var_clubs'; } add_filter('query_vars', 'add_query_vars'); function add_rewrite_rules($aRules) { $aNewRules = array( 'rv-clubs/([^/]+)/([^/]+)/?$' => 'index.php?pagename=rv-clubs&var_state=$matches[1]&var_clubs=$matches[2]' ); $aRules = $aNewRules + $aRules; return $aRules; } add_filter('rewrite_rules_array', 'add_rewrite_rules'); Any help would be appreciated. A: You can see in this answer how add_rewrite_rules is being used, I don't think it applies to your case at all. What you need to do is to redirect urls generated from the search from (I'm assuming something like site.com/?s=term) to a pretty URL. This article do it http://www.wptavern.com/how-to-make-the-wordpress-search-url-pretty
wordpress
{ "language": "en", "length": 193, "provenance": "stackexchange_00019.jsonl.gz:418119", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45768" }
[ 0.0482177734375, -0.02545166015625, 0.0172882080078125, -0.050933837890625, -0.0010251998901367188, -0.0048980712890625, 0.0278472900390625, 0.00215911865234375, -0.0090484619140625, 0.00902557373046875, 0.0034732818603515625, -0.0102386474609375, -0.0205230712890625, -0.04315185546875, 0.00759124755859375, -0.03729248046875, 0.0254669189453125, -0.056243896484375, -0.040740966796875, -0.022918701171875, -0.004497528076171875, -0.00795745849609375, 0.01311492919921875, 0.048492431640625, 0.0164947509765625, -0.0162200927734375, 0.04150390625, -0.024658203125, 0.01751708984375, -0.0172882080078125, -0.0054168701171875, -0.0186614990234375, 0.032318115234375, 0.008453369140625, 0.00807952880859375, 0.037261962890625, 0.0572509765625, -0.0203704833984375, 0.01329803466796875, 0.038818359375, 0.0251922607421875, -0.022064208984375, -0.0313720703125, -0.02178955078125, -0.013397216796875, -0.05438232421875, 0.06500244140625, -0.0186614990234375, 0.006595611572265625, 0.0400390625, -0.0232086181640625, 0.0159454345703125, -0.030364990234375, 0.00864410400390625, 0.01947021484375, 0.006053924560546875, 0.029083251953125, -0.0762939453125, 0.0161285400390625, 0.0016326904296875, 0.0121307373046875, -0.0079803466796875, 0.034210205078125, 0.01456451416015625, -0.044097900390625, 0.006500244140625, 0.006580352783203125, -0.007709503173828125, -0.03302001953125, -0.046112060546875, 0.030426025390625, -0.01346588134765625, -0.0295257568359375, 0.002574920654296875, -0.020660400390625, 0.001354217529296875, 0.0177001953125, -0.0079498291015625, -0.01337432861328125, 0.038970947265625, 0.0266876220703125, -0.029083251953125, -0.0291290283203125, 0.029693603515625, -0.017120361328125, 0.018157958984375, -0.00018143653869628906, -0.0216522216796875, -0.04400634765625, -0.049346923828125, -0.0163726806640625, -0.0765380859375, -0.0487060546875, -0.0283050537109375, -0.0008578300476074219, -0.05218505859375, 0.0199127197265625, 0.00940704345703125, 0.0445556640625, 0.0303802490234375, 0.013702392578125, -0.06353759765625, 0.05810546875, -0.047027587890625, 0.00835418701171875, 0.08514404296875, 0.030426025390625, 0.07183837890625, 0.051025390625, -0.0163421630859375, 0.03131103515625, 0.03033447265625, -0.0124053955078125, 0.060791015625, -0.06524658203125, -0.0307464599609375, -0.054901123046875, -0.04046630859375, -0.04266357421875, 0.0180206298828125, 0.0023517608642578125, 0.02349853515625, -0.0074005126953125, -0.017364501953125, 0.0017681121826171875, -0.0286407470703125, -0.0190582275390625, 0.007640838623046875, -0.0057220458984375, 0.0155792236328125, -0.00653839111328125, 0.01702880859375, -0.0163421630859375, -0.00003343820571899414, -0.022247314453125, -0.0211944580078125, 0.07574462890625, -0.06463623046875, -0.007572174072265625, 0.040496826171875, -0.007312774658203125, -0.0278778076171875, -0.02301025390625, -0.00279998779296875, 0.015533447265625, 0.04254150390625, 0.0248565673828125, 0.001495361328125, -0.042510986328125, -0.03009033203125, -0.005611419677734375, -0.042388916015625, 0.056243896484375, -0.0004172325134277344, -0.0665283203125, 0.01120758056640625, 0.01389312744140625, -0.021636962890625, -0.058929443359375, -0.038848876953125, -0.004241943359375, 0.016693115234375, 0.0404052734375, -0.0274658203125, -0.0165557861328125, -0.051727294921875, -0.076171875, -0.0047607421875, 0.0160369873046875, -0.016510009765625, 0.043975830078125, 0.0086517333984375, 0.0136260986328125, 0.0184326171875, 0.005908966064453125, -0.005161285400390625, -0.00009167194366455078, 0.020721435546875, 0.01457977294921875, 0.02642822265625, 0.01132965087890625, -0.039154052734375, 0.060089111328125, -0.0227813720703125, -0.07489013671875, 0.066162109375, -0.0308990478515625, 0.03546142578125, 0.042877197265625, -0.02191162109375, 0.0321044921875, 0.0124359130859375, 0.01509857177734375, -0.01654052734375, -0.01229095458984375, -0.031463623046875, 0.0157470703125, -0.0099639892578125, -0.007450103759765625, 0.0200653076171875, 0.0111541748046875, -0.0118255615234375, 0.0220794677734375, 0.017608642578125, -0.0053558349609375, -0.0012683868408203125, -0.01361083984375, 0.00543212890625, -0.0266876220703125, 0.042327880859375, 0.0278167724609375, 0.00959014892578125, -0.054229736328125, 0.037322998046875, 0.0279693603515625, -0.0011873245239257812, 0.039154052734375, 0.032928466796875, 0.01203155517578125, -0.003665924072265625, 0.025543212890625, -0.02642822265625, 0.01091766357421875, 0.03131103515625, 0.0294647216796875, -0.0230865478515625, -0.01560211181640625, -0.01441192626953125, 0.0025691986083984375, -0.01052093505859375, -0.01250457763671875, 0.051971435546875, 0.02215576171875, 0.04522705078125, -0.0302276611328125, -0.0003886222839355469, -0.041839599609375, -0.01436614990234375, -0.0098724365234375, 0.043365478515625, 0.0301666259765625, 0.013458251953125, -0.02801513671875, -0.0220794677734375, 0.032073974609375, -0.052337646484375, -0.0032196044921875, -0.01983642578125, -0.01274871826171875, 0.053863525390625, 0.005645751953125, 0.0245208740234375, -0.036865234375, -0.06756591796875, -0.01061248779296875, 0.015625, -0.027862548828125, -0.00969696044921875, -0.042205810546875, 0.004520416259765625, 0.005992889404296875, -0.03680419921875, -0.0183563232421875, -0.0123443603515625, -0.00833892822265625, -0.0043792724609375, -0.000244140625, -0.00946807861328125, -0.0011091232299804688, -0.009124755859375, 0.004825592041015625, -0.011810302734375, -0.017547607421875, -0.01404571533203125, 0.00893402099609375, -0.043792724609375, 0.00858306884765625, 0.02056884765625, -0.0146331787109375, -0.032196044921875, -0.0279083251953125, 0.0251312255859375, -0.0257415771484375, -0.0170135498046875, -0.0306243896484375, 0.01904296875, 0.0024967193603515625, -0.032318115234375, 0.038238525390625, 0.0016202926635742188, 0.04547119140625, -0.01221466064453125, -0.0135498046875, 0.01232147216796875, -0.0055389404296875, -0.037353515625, 0.04986572265625, -0.0078582763671875, 0.006134033203125, 0.015899658203125, 0.047088623046875, 0.05816650390625, 0.025970458984375, -0.040283203125, 0.007656097412109375, 0.0241851806640625, 0.0151824951171875, 0.001720428466796875, -0.010528564453125, -0.000606536865234375, -0.057830810546875, -0.031463623046875, 0.031951904296875, -0.0213165283203125, 0.053466796875, -0.006580352783203125, 0.006214141845703125, 0.026123046875, -0.0419921875, -0.0245819091796875, -0.032867431640625, -0.00984954833984375, -0.05023193359375, 0.052703857421875, -0.010040283203125, 0.0240631103515625, 0.04937744140625, -0.00287628173828125, -0.0092315673828125, -0.0160064697265625, -0.0548095703125, -0.0435791015625, -0.053741455078125, 0.00048351287841796875, -0.01221466064453125, -0.00888824462890625, 0.004566192626953125, 0.0232391357421875, 0.01192474365234375, -0.010894775390625, 0.0235595703125, 0.01003265380859375, -0.0166778564453125, -0.04498291015625, -0.04473876953125, -0.032501220703125, 0.01428985595703125, -0.032928466796875, 0.0849609375, 0.032745361328125, 0.004444122314453125, 0.056671142578125, 0.007183074951171875, 0.04974365234375, 0.0217437744140625, -0.045379638671875, 0.007232666015625, 0.044952392578125, 0.0017147064208984375, -0.0168914794921875, -0.0301666259765625, 0.0164337158203125, -0.033721923828125, -0.015106201171875, 0.02978515625, -0.0190887451171875, -0.024169921875, 0.004169464111328125, -0.004978179931640625, -0.017181396484375, 0.0172576904296875, -0.05279541015625, 0.0396728515625, 0.007442474365234375, 0.0013608932495117188, -0.01273345947265625, 0.030853271484375, -0.0146026611328125, 0.01123809814453125, 0.01544189453125, -0.001232147216796875, 0.0049591064453125, -0.0013370513916015625, -0.0197906494140625, -0.0193328857421875, 0.039154052734375, -0.04681396484375, -0.01091766357421875, -0.0496826171875, -0.0021953582763671875, -0.056243896484375, 0.0243377685546875, -0.039154052734375, -0.01904296875, -0.037933349609375, 0.004192352294921875, -0.005096435546875, -0.054534912109375, 0.0279541015625, -0.0188446044921875, -0.09893798828125, 0.019744873046875, -0.0131072998046875, -0.02874755859375, -0.010467529296875, -0.0286712646484375, -0.038604736328125, -0.054443359375, 0.0262451171875, -0.0189666748046875, 0.009521484375, 0.0198974609375, -0.0297698974609375, 0.0111541748046875, -0.041259765625, -0.0096282958984375, -0.08331298828125, -0.03399658203125, 0.051483154296875, 0.06866455078125, -0.0090484619140625, -0.0496826171875, 0.0107269287109375, 0.0955810546875, 0.01006317138671875, 0.00302886962890625, -0.008880615234375, -0.0294342041015625, -0.0048675537109375, 0.04010009765625, -0.01611328125, 0.01641845703125, 0.00600433349609375, 0.00592803955078125, -0.03387451171875, 0.003948211669921875, -0.021759033203125, 0.0116729736328125, 0.0296630859375, -0.0307159423828125, -0.054046630859375, -0.026641845703125, 0.0122528076171875, -0.01141357421875, -0.0019254684448242188, -0.0194244384765625, 0.0019245147705078125, -0.0194244384765625, 0.0030231475830078125, -0.023956298828125, 0.007343292236328125, -0.00818634033203125, 0.06427001953125, 0.0250244140625, 0.0026683807373046875, 0.0736083984375, 0.0264434814453125, 0.034454345703125, -0.0135955810546875, 0.025543212890625, -0.0165252685546875, -0.02911376953125, 0.06219482421875, -0.02423095703125, 0.023468017578125, -0.03125, -0.018585205078125, 0.0186920166015625, -0.0013608932495117188, 0.0114898681640625, 0.0299224853515625, 0.03265380859375, 0.01800537109375, -0.00469207763671875, -0.01543426513671875, 0.018157958984375, 0.03521728515625, 0.0008192062377929688, -0.0088653564453125, -0.022613525390625, -0.0367431640625, 0.015838623046875, 0.0234222412109375, 0.040313720703125, 0.0005955696105957031, 0.012786865234375, 0.01165008544921875, 0.022674560546875, -0.004093170166015625, 0.0111541748046875, 0.043182373046875, -0.0269012451171875, 0.047760009765625, -0.006122589111328125, -0.021453857421875, -0.01358795166015625, -0.0021381378173828125, 0.0599365234375, 0.0130462646484375, -0.0008721351623535156, -0.006500244140625, -0.037506103515625, 0.005550384521484375, -0.00478363037109375, 0.0239410400390625, 0.025482177734375, 0.01220703125, 0.0171966552734375, 0.0039520263671875, 0.0175628662109375, 0.00896453857421875, -0.01056671142578125, 0.05078125, 0.017486572265625, -0.0006046295166015625, -0.029266357421875, 0.087158203125, -0.01300811767578125, 0.02667236328125, 0.0028171539306640625, -0.0207366943359375, -0.00921630859375, 0.006561279296875, 0.0205230712890625, 0.03662109375, -0.00875091552734375, -0.00365447998046875, 0.04046630859375, -0.0279388427734375, -0.002033233642578125, 0.02349853515625, 0.051116943359375, -0.0034160614013671875, -0.0027484893798828125, 0.00812530517578125, -0.01419830322265625, 0.004131317138671875, -0.0188751220703125, -0.00807952880859375, 0.01450347900390625, -0.02392578125, -0.0147857666015625, 0.01399993896484375, 0.0144500732421875, 0.0009403228759765625, -0.0019397735595703125, -0.0150299072265625, 0.01399993896484375, 0.00601959228515625, 0.006969451904296875, -0.0291900634765625, -0.0330810546875, -0.0160064697265625, -0.06549072265625, 0.005245208740234375, -0.067138671875, 0.0217437744140625, -0.0284423828125, -0.002071380615234375, 0.01000213623046875, 0.001384735107421875, 0.017852783203125, -0.016876220703125, -0.01010894775390625, 0.0753173828125, -0.011505126953125, 0.029815673828125, -0.03497314453125, -0.0163421630859375, -0.016998291015625, -0.034759521484375, -0.004512786865234375, 0.016204833984375, -0.0084991455078125, 0.0135955810546875, -0.01296234130859375, -0.0163116455078125, 0.015411376953125, -0.011199951171875, 0.01274871826171875, 0.00946807861328125, 0.00957489013671875, -0.01558685302734375, 0.0277099609375, 0.0159454345703125, 0.006893157958984375, -0.042877197265625, 0.038116455078125, 0.0005192756652832031, -0.0254364013671875, -0.0528564453125, -0.0287322998046875, 0.0099639892578125, -0.0487060546875, -0.03497314453125, -0.032440185546875, -0.0200042724609375, 0.0665283203125, 0.092529296875, 0.0076141357421875, 0.048980712890625, -0.0015554428100585938, -0.00128173828125, -0.02685546875, -0.007343292236328125, -0.0185546875, 0.07061767578125, -0.0011138916015625, 0.02532958984375, 0.0770263671875, -0.0307464599609375, -0.01117706298828125, -0.0341796875, -0.00154876708984375, 0.0201568603515625, 0.00742340087890625, -0.05120849609375, 0.031829833984375, 0.06201171875, 0.00881195068359375, 0.0362548828125, -0.003437042236328125, 0.007289886474609375, 0.0279998779296875, -0.034759521484375, 0.005115509033203125, 0.034149169921875, 0.046112060546875, -0.005283355712890625, 0.00782012939453125, 0.056427001953125, 0.0008821487426757812, 0.0074615478515625, 0.041015625, 0.0303955078125, -0.06494140625, -0.0110015869140625, -0.01678466796875, -0.0211944580078125, 0.02960205078125, 0.0380859375, -0.00809478759765625, 0.032440185546875, -0.02880859375, -0.0259857177734375, -0.0200653076171875, 0.0045318603515625, 0.059814453125, -0.0001888275146484375, -0.01218414306640625, 0.04498291015625, -0.0164031982421875, -0.0662841796875, 0.0007810592651367188, 0.033447265625, -0.01137542724609375, 0.0100250244140625, -0.00568389892578125, 0.023681640625, -0.0435791015625, -0.041595458984375, 0.0006504058837890625, -0.029083251953125, -0.025054931640625, -0.004390716552734375, -0.015777587890625, 0.03814697265625, 0.028472900390625, -0.0017347335815429688, -0.011810302734375, 0.01427459716796875, -0.0169677734375, 0.033599853515625, -0.0104522705078125, -0.00865936279296875, 0.0003063678741455078, -0.0265350341796875, 0.0081939697265625, -0.01479339599609375, 0.004558563232421875, -0.01306915283203125, 0.019622802734375, 0.019866943359375, 0.0005192756652832031, -0.02935791015625, 0.0187225341796875, 0.024261474609375, 0.0176239013671875, 0.010101318359375, -0.0130157470703125, -0.03179931640625, -0.0584716796875, -0.00940704345703125, -0.09686279296875, 0.01320648193359375, -0.055419921875, -0.061370849609375, 0.039459228515625, 0.0182342529296875, 0.045196533203125, 0.042388916015625, 0.005809783935546875, -0.036865234375, -0.04022216796875, -0.020965576171875, 0.033905029296875, 0.0184173583984375, 0.020538330078125, -0.025970458984375, 0.00399017333984375, 0.01251220703125, 0.023468017578125, 0.076904296875, 0.021942138671875, -0.05584716796875, -0.00926971435546875, 0.055633544921875, 0.03094482421875, -0.00909423828125, 0.0281829833984375, 0.0025615692138671875, 0.029998779296875, 0.059722900390625, -0.0482177734375, 0.021270751953125, -0.00787353515625, 0.01284027099609375, 0.0188140869140625, -0.0073394775390625, -0.00811767578125, -0.0063629150390625, 0.017364501953125, -0.022430419921875, -0.0147247314453125, 0.0198211669921875, -0.020294189453125, -0.010772705078125, 0.005603790283203125, 0.022735595703125, -0.0343017578125, -0.04241943359375, -0.01617431640625, 0.02459716796875, 0.0233306884765625, 0.0103759765625, 0.06298828125, 0.0189361572265625, 0.05303955078125, 0.0263824462890625, 0.0240631103515625, 0.01544952392578125, 0.0157623291015625, 0.060333251953125, 0.04241943359375, 0.027587890625, -0.01244354248046875, -0.0018482208251953125, -0.005039215087890625, 0.0526123046875, -0.045989990234375, -0.0025196075439453125, 0.0033245086669921875, -0.0022602081298828125, 0.0072021484375, -0.0217132568359375, 0.020263671875, -0.01007080078125, -0.00801849365234375, -0.05096435546875, 0.01267242431640625, 0.041717529296875, 0.000885009765625, -0.01885986328125, 0.00911712646484375, -0.01470184326171875, 0.0264434814453125, -0.01255035400390625, -0.050323486328125, 0.004764556884765625, 0.066162109375, 0.0239410400390625, 0.038726806640625, -0.0284576416015625, -0.0435791015625, -0.036712646484375, 0.028106689453125, 0.009033203125, 0.046051025390625, -0.06298828125, 0.00021326541900634766, 0.004444122314453125, 0.059295654296875, 0.023529052734375, 0.0269012451171875, 0.0570068359375, 0.0013055801391601562, -0.0295867919921875, -0.0019321441650390625, 0.0240020751953125, -0.0299224853515625, 0.061492919921875, -0.0233612060546875, 0.049957275390625, 0.01288604736328125, -0.0035457611083984375, -0.043975830078125, 0.01114654541015625, 0.0323486328125, 0.00711822509765625, 0.034820556640625, -0.00591278076171875, -0.026702880859375, -0.022918701171875, -0.0174713134765625, 0.040985107421875, 0.0278167724609375, -0.03558349609375, 0.0072021484375, -0.07080078125, -0.07269287109375, 0.05853271484375, 0.06597900390625, -0.004253387451171875, 0.006984710693359375, 0.02838134765625, -0.0192413330078125, 0.0255126953125, 0.004184722900390625, -0.006221771240234375, -0.036407470703125, 0.01346588134765625, -0.0270233154296875, -0.04193115234375, -0.021697998046875, -0.0019521713256835938, 0.006488800048828125, -0.010345458984375, 0.1357421875, -0.03436279296875, -0.00505828857421875, -0.027191162109375, -0.02154541015625, 0.00687408447265625, -0.021514892578125, 0.033172607421875, -0.002010345458984375, -0.030181884765625, -0.0018062591552734375, 0.02203369140625, -0.005092620849609375, 0.017730712890625, -0.0694580078125, -0.016387939453125, -0.0244903564453125, 0.01100921630859375, 0.005245208740234375, 0.04608154296875, -0.02716064453125, -0.059417724609375, -0.054290771484375, -0.0086822509765625, 0.023040771484375, 0.05242919921875, 0.0157470703125, 0.059051513671875, 0.040618896484375, 0.0155029296875, 0.03179931640625, -0.05267333984375, 0.05328369140625, 0.03985595703125, 0.023223876953125, 0.0300445556640625, 0.01165771484375, -0.0345458984375, 0.015777587890625, 0.0043182373046875, -0.0292205810546875, 0.01263427734375, 0.002658843994140625, -0.04693603515625, -0.05072021484375, 0.007511138916015625, -0.0015773773193359375, -0.00354766845703125, -0.0406494140625, 0.0019054412841796875, -0.0338134765625, 0.041961669921875, -0.0325927734375, -0.0222015380859375, -0.0021076202392578125, -0.0161895751953125, 0.0207061767578125, -0.041900634765625, -0.0037174224853515625, 0.029998779296875, 0.04193115234375, 0.01605224609375, -0.09912109375, 0.019927978515625, -0.0276641845703125, 0.1085205078125, -0.0296173095703125, 0.0062255859375, -0.0010557174682617188, -0.003406524658203125, -0.0396728515625, 0.0048675537109375, -0.0276336669921875, 0.0006518363952636719, -0.01197052001953125, -0.01195526123046875, 0.040679931640625, 0.0018262863159179688, -0.0254669189453125, -0.046478271484375, -0.0222930908203125, 0.0123138427734375, -0.038665771484375, -0.00844573974609375, 0.054046630859375, -0.007083892822265625, -0.031402587890625, -0.0186920166015625, -0.0272979736328125, 0.0204010009765625, 0.043609619140625, -0.01541900634765625, -0.01776123046875, -0.0278778076171875, -0.047515869140625, -0.0428466796875, 0.0262298583984375, -0.000029802322387695312, -0.009063720703125, -0.05377197265625, -0.0092926025390625, -0.0041046142578125, 0.00725555419921875, -0.0224609375, -0.00624847412109375, -0.051361083984375, 0.0158233642578125, 0.0260772705078125, 0.074462890625, -0.007965087890625, 0.0364990234375, -0.032135009765625, 0.00981903076171875, -0.0268096923828125, 0.0259857177734375, 0.00200653076171875, -0.01910400390625, 0.058563232421875, 0.036041259765625, 0.0038585662841796875, 0.034454345703125, 0.0302276611328125, -0.0616455078125, -0.00592041015625, -0.0299072265625, -0.045379638671875, -0.04583740234375, 0.058563232421875, -0.0016326904296875, 0.0145111083984375, 0.0108184814453125, -0.040802001953125, -0.021881103515625, -0.0322265625, -0.021820068359375, 0.03564453125, -0.07684326171875, -0.0125579833984375, -0.003673553466796875, 0.0164642333984375, -0.006561279296875, -0.0295562744140625, -0.01357269287109375, -0.019775390625, -0.0030193328857421875, 0.003055572509765625, 0.0048828125, -0.01300811767578125, 0.052337646484375, -0.04150390625, -0.046112060546875, -0.0041046142578125, 0.026458740234375, -0.0198211669921875, -0.0372314453125, -0.01318359375, 0.0181732177734375, 0.0282745361328125, 0.0133819580078125, 0.02252197265625, -0.0004868507385253906, 0.006683349609375, 0.019073486328125, -0.012359619140625, 0.01496124267578125, -0.01032257080078125, -0.006458282470703125, -0.01303863525390625, 0.059478759765625, 0.00742340087890625, 0.0989990234375, -0.047332763671875, -0.0413818359375, -0.01556396484375, -0.0032939910888671875, -0.0272064208984375, 0.032318115234375, 0.052154541015625, -0.0197906494140625, -0.020477294921875, 0.0194091796875, -0.031707763671875, -0.051605224609375, 0.01448822021484375, -0.03302001953125, 0.032073974609375, 0.024139404296875 ]
347852f488b84d589ad2ea5e4046008b1edb6340
Wordpress Stackexchange Q: Can't find wp-cron.php but I can see it in the public folder I have a problem with the wp-cron.php file. I can see it when I browse the public folder and it has the permissions set to 755. But still I am getting this error in my server error log: [Thu Mar 15 17:49:20 2012] [error] [client xx.xx.xxx.xxx] Couldn't find wp-cron.php, referer: http://secretsection.com/invizimals/?page_id=681 Can someone explain me why I get this error end what I can do to fix it? BTW... I am using WP v. 3.3.1 BR A: Just a guess, but try to set this one in your wp-config.php // make use of redirect rather than http loopback define ( 'ALTERNATE_WP_CRON', true );
Q: Can't find wp-cron.php but I can see it in the public folder I have a problem with the wp-cron.php file. I can see it when I browse the public folder and it has the permissions set to 755. But still I am getting this error in my server error log: [Thu Mar 15 17:49:20 2012] [error] [client xx.xx.xxx.xxx] Couldn't find wp-cron.php, referer: http://secretsection.com/invizimals/?page_id=681 Can someone explain me why I get this error end what I can do to fix it? BTW... I am using WP v. 3.3.1 BR A: Just a guess, but try to set this one in your wp-config.php // make use of redirect rather than http loopback define ( 'ALTERNATE_WP_CRON', true );
wordpress
{ "language": "en", "length": 116, "provenance": "stackexchange_00019.jsonl.gz:418127", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45797" }
[ 0.04864501953125, -0.01220703125, -0.01186370849609375, 0.012786865234375, -0.00855255126953125, -0.0599365234375, 0.0418701171875, -0.050323486328125, -0.01520538330078125, 0.01470184326171875, -0.050140380859375, 0.02301025390625, -0.0250091552734375, 0.01513671875, -0.0042724609375, -0.048675537109375, 0.0304412841796875, 0.017669677734375, 0.0289764404296875, -0.007904052734375, -0.00004595518112182617, 0.0306396484375, -0.01049041748046875, 0.06512451171875, -0.004547119140625, 0.0164642333984375, 0.058074951171875, -0.0110626220703125, -0.00677490234375, -0.020477294921875, 0.0070648193359375, -0.00466156005859375, 0.026153564453125, 0.0014705657958984375, -0.0159759521484375, -0.038604736328125, -0.04296875, 0.010894775390625, 0.0031414031982421875, 0.0107421875, -0.00827789306640625, 0.007297515869140625, 0.044921875, 0.0114288330078125, -0.0207061767578125, -0.0280303955078125, -0.0198516845703125, -0.032470703125, -0.006351470947265625, -0.00279998779296875, -0.017730712890625, 0.004924774169921875, 0.00891876220703125, -0.023681640625, -0.0021305084228515625, -0.04302978515625, 0.0142822265625, 0.03643798828125, 0.00893402099609375, -0.0643310546875, -0.038604736328125, 0.020751953125, 0.02435302734375, 0.0406494140625, 0.01129913330078125, -0.03289794921875, 0.0101318359375, 0.042724609375, -0.0562744140625, -0.01416778564453125, 0.044769287109375, 0.0001405477523803711, 0.01059722900390625, -0.006381988525390625, -0.032989501953125, -0.015045166015625, -0.0032176971435546875, -0.04376220703125, 0.034027099609375, 0.007328033447265625, 0.00753021240234375, -0.006214141845703125, -0.033660888671875, -0.01161956787109375, 0.0111236572265625, 0.006999969482421875, -0.01708984375, -0.01910400390625, -0.0195159912109375, -0.0142974853515625, -0.024169921875, 0.03131103515625, -0.032867431640625, -0.01412200927734375, -0.011138916015625, -0.013946533203125, 0.06549072265625, 0.058990478515625, -0.0301513671875, -0.0200653076171875, -0.01192474365234375, -0.01419830322265625, -0.019073486328125, -0.01123809814453125, -0.0211639404296875, 0.044464111328125, 0.039825439453125, 0.0618896484375, -0.0182952880859375, 0.01052093505859375, -0.0182342529296875, -0.059600830078125, 0.03375244140625, -0.044891357421875, 0.0089874267578125, -0.005290985107421875, -0.0014715194702148438, 0.0340576171875, 0.0208740234375, -0.012786865234375, -0.01044464111328125, 0.028717041015625, -0.032806396484375, -0.036651611328125, -0.0177154541015625, -0.04931640625, 0.00565338134765625, 0.00023043155670166016, -0.0251007080078125, 0.058258056640625, -0.0184173583984375, -0.00251007080078125, 0.0276031494140625, -0.00841522216796875, -0.0286712646484375, -0.034881591796875, 0.00481414794921875, -0.0204925537109375, 0.0084228515625, -0.01294708251953125, 0.01099395751953125, -0.005184173583984375, 0.0256805419921875, -0.00687408447265625, 0.01528167724609375, 0.0197296142578125, 0.04949951171875, 0.023101806640625, -0.04669189453125, -0.0231170654296875, -0.017120361328125, 0.051544189453125, 0.01319122314453125, 0.03173828125, 0.0302581787109375, -0.03179931640625, 0.07452392578125, -0.0474853515625, -0.001079559326171875, -0.05401611328125, -0.0063323974609375, -0.0157470703125, 0.01390838623046875, -0.01529693603515625, -0.036285400390625, 0.03436279296875, -0.039825439453125, -0.007171630859375, 0.028594970703125, 0.01280975341796875, 0.0007233619689941406, -0.01021575927734375, 0.014556884765625, 0.01297760009765625, -0.004306793212890625, 0.0207977294921875, 0.0121002197265625, -0.00890350341796875, 0.027313232421875, 0.0521240234375, -0.0026187896728515625, -0.018829345703125, 0.0325927734375, -0.01197052001953125, -0.024658203125, 0.0008897781372070312, 0.0147552490234375, 0.0201416015625, 0.0035037994384765625, 0.01206207275390625, 0.0226898193359375, 0.022613525390625, 0.0142669677734375, 0.02716064453125, -0.0123443603515625, -0.0163421630859375, -0.03668212890625, 0.021392822265625, -0.024688720703125, -0.0310821533203125, 0.0083770751953125, 0.0175323486328125, -0.0133209228515625, -0.00215911865234375, -0.08038330078125, 0.0204315185546875, -0.02667236328125, 0.04248046875, 0.0078887939453125, -0.0180511474609375, 0.0111846923828125, -0.0011644363403320312, 0.014892578125, -0.06353759765625, -0.056121826171875, 0.041595458984375, -0.046661376953125, 0.043609619140625, -0.01215362548828125, 0.09271240234375, -0.04644775390625, -0.0246124267578125, -0.0272369384765625, -0.04278564453125, 0.015655517578125, 0.0149078369140625, -0.040771484375, -0.0011606216430664062, 0.01383209228515625, 0.01129150390625, 0.005016326904296875, 0.0221099853515625, 0.00826263427734375, 0.05084228515625, 0.01151275634765625, -0.00934600830078125, 0.0148773193359375, -0.02142333984375, 0.0210723876953125, 0.027496337890625, 0.047332763671875, 0.06439208984375, 0.002185821533203125, -0.004566192626953125, 0.03582763671875, -0.06201171875, 0.023223876953125, -0.035736083984375, -0.0261688232421875, -0.044036865234375, 0.0231475830078125, -0.01471710205078125, 0.061279296875, -0.04681396484375, -0.022705078125, 0.067138671875, -0.002933502197265625, 0.019744873046875, 0.01032257080078125, 0.01271820068359375, -0.00814056396484375, -0.044830322265625, -0.0270843505859375, -0.01152801513671875, -0.0306854248046875, -0.0202484130859375, -0.028656005859375, -0.0302276611328125, -0.01018524169921875, -0.0092010498046875, 0.02874755859375, -0.0350341796875, 0.003238677978515625, 0.03399658203125, -0.004673004150390625, 0.0269317626953125, -0.047271728515625, 0.014068603515625, -0.00971221923828125, 0.0209503173828125, -0.020111083984375, 0.0213165283203125, -0.032989501953125, -0.00910186767578125, -0.03759765625, 0.0010442733764648438, 0.01483154296875, 0.0133209228515625, -0.006046295166015625, 0.01468658447265625, 0.03765869140625, 0.0273895263671875, -0.013427734375, 0.0162200927734375, 0.00036597251892089844, -0.0041961669921875, 0.06402587890625, -0.03192138671875, 0.039276123046875, -0.036712646484375, 0.0290069580078125, 0.04248046875, -0.051605224609375, 0.03778076171875, 0.002948760986328125, -0.01806640625, -0.0034503936767578125, 0.025421142578125, -0.00933837890625, 0.0169219970703125, -0.103515625, 0.007663726806640625, 0.0157012939453125, 0.029327392578125, -0.0167694091796875, -0.044647216796875, -0.01071929931640625, -0.01068115234375, -0.11163330078125, -0.1219482421875, -0.068115234375, -0.0667724609375, -0.002658843994140625, -0.023345947265625, -0.0203704833984375, 0.0169525146484375, -0.0003552436828613281, 0.0229949951171875, 0.0035305023193359375, -0.0177764892578125, -0.07366943359375, -0.03973388671875, -0.07415771484375, 0.0177764892578125, -0.01091766357421875, 0.0195159912109375, -0.0017452239990234375, 0.07391357421875, -0.0097198486328125, -0.0660400390625, -0.041473388671875, 0.031982421875, -0.0189056396484375, -0.01531219482421875, -0.0068511962890625, -0.036346435546875, -0.0085906982421875, 0.0108642578125, 0.058074951171875, -0.004642486572265625, 0.0014495849609375, -0.0157012939453125, 0.01288604736328125, -0.033294677734375, 0.01325225830078125, 0.063720703125, -0.0236053466796875, -0.07427978515625, 0.0182952880859375, -0.07733154296875, -0.007480621337890625, -0.00473785400390625, -0.03143310546875, 0.07147216796875, 0.0374755859375, -0.0305938720703125, 0.00507354736328125, 0.0104522705078125, -0.0009937286376953125, 0.0262908935546875, 0.0234375, -0.024505615234375, 0.040740966796875, 0.0025310516357421875, 0.0022830963134765625, -0.03277587890625, 0.053009033203125, -0.0209808349609375, 0.0272216796875, 0.021026611328125, -0.048492431640625, -0.046295166015625, -0.006534576416015625, -0.08697509765625, -0.0477294921875, 0.0465087890625, -0.034515380859375, -0.0148773193359375, -0.036224365234375, -0.0190887451171875, -0.0011243820190429688, 0.0673828125, 0.00933837890625, -0.0276031494140625, -0.0305938720703125, 0.0176849365234375, -0.031982421875, -0.046875, 0.021209716796875, -0.0142974853515625, -0.06768798828125, 0.03619384765625, -0.0014476776123046875, -0.0130615234375, -0.04095458984375, -0.009002685546875, -0.05096435546875, -0.04376220703125, 0.0260467529296875, -0.0299224853515625, 0.03076171875, -0.0013017654418945312, 0.016876220703125, -0.0219268798828125, -0.017608642578125, -0.03790283203125, -0.0985107421875, -0.0221099853515625, -0.030303955078125, 0.060516357421875, 0.03558349609375, -0.0303497314453125, -0.01226806640625, 0.050689697265625, 0.03216552734375, 0.01123809814453125, 0.02093505859375, -0.04449462890625, 0.0222930908203125, 0.0625, 0.025787353515625, 0.0218658447265625, 0.0070648193359375, -0.009674072265625, -0.03997802734375, 0.0225067138671875, -0.02386474609375, 0.01519012451171875, 0.0031890869140625, -0.0258636474609375, -0.0211029052734375, -0.0172882080078125, -0.01267242431640625, 0.039764404296875, -0.00798797607421875, 0.01299285888671875, -0.05438232421875, -0.056396484375, 0.025665283203125, -0.056396484375, 0.004467010498046875, 0.0140838623046875, 0.0791015625, 0.01499176025390625, -0.002025604248046875, -0.029815673828125, -0.01140594482421875, 0.0216827392578125, 0.01861572265625, 0.0400390625, 0.00994110107421875, 0.00424957275390625, 0.026702880859375, 0.016143798828125, -0.020538330078125, 0.007480621337890625, 0.0169219970703125, 0.0157928466796875, -0.0286407470703125, 0.00931549072265625, -0.0127105712890625, 0.032135009765625, 0.01983642578125, -0.005390167236328125, -0.0014276504516601562, 0.024627685546875, 0.0153045654296875, -0.033599853515625, 0.0119476318359375, -0.0113372802734375, -0.04461669921875, 0.0162200927734375, -0.058013916015625, 0.0556640625, 0.0301513671875, -0.012603759765625, 0.04400634765625, 0.053253173828125, 0.003818511962890625, 0.003925323486328125, 0.058197021484375, -0.03570556640625, 0.034759521484375, -0.004665374755859375, -0.031768798828125, -0.035797119140625, -0.0151519775390625, 0.06158447265625, 0.0255889892578125, -0.032318115234375, 0.004497528076171875, -0.004001617431640625, -0.01445770263671875, -0.012359619140625, -0.052764892578125, 0.0243377685546875, 0.02301025390625, -0.0245208740234375, 0.01540374755859375, -0.04449462890625, -0.023468017578125, -0.037384033203125, 0.062744140625, 0.0025272369384765625, -0.0013875961303710938, 0.022735595703125, 0.040130615234375, 0.01433563232421875, 0.02996826171875, -0.011993408203125, 0.038848876953125, 0.002887725830078125, 0.054443359375, 0.0026226043701171875, -0.004608154296875, 0.022613525390625, 0.01021575927734375, 0.00652313232421875, -0.03546142578125, -0.02154541015625, 0.01090240478515625, 0.04644775390625, -0.01267242431640625, -0.00323486328125, 0.037872314453125, -0.00525665283203125, -0.0173797607421875, -0.001316070556640625, 0.0167999267578125, -0.0111846923828125, -0.0120849609375, -0.03839111328125, 0.0006461143493652344, 0.01528167724609375, 0.01287841796875, -0.0164337158203125, -0.01277923583984375, -0.0189361572265625, -0.007411956787109375, -0.018829345703125, -0.033355712890625, -0.0213775634765625, -0.0276336669921875, 0.007663726806640625, 0.0117340087890625, -0.0157623291015625, -0.057647705078125, -0.007171630859375, -0.0279998779296875, 0.05950927734375, -0.0307464599609375, 0.040283203125, -0.00963592529296875, -0.0184326171875, -0.034942626953125, 0.0164794921875, 0.06927490234375, 0.059783935546875, -0.047454833984375, 0.00394439697265625, -0.042083740234375, 0.01320648193359375, -0.00574493408203125, -0.03228759765625, -0.04058837890625, -0.005855560302734375, -0.01168060302734375, 0.01025390625, -0.0474853515625, -0.0179901123046875, -0.036224365234375, 0.04913330078125, 0.022430419921875, 0.03643798828125, -0.0220184326171875, 0.072998046875, -0.019317626953125, 0.031829833984375, 0.00370025634765625, 0.051849365234375, 0.0181121826171875, -0.0243988037109375, 0.016082763671875, -0.0182342529296875, -0.0275115966796875, -0.017608642578125, -0.0033817291259765625, -0.004947662353515625, 0.028533935546875, -0.0190582275390625, -0.00005716085433959961, -0.02459716796875, -0.0010318756103515625, -0.01180267333984375, 0.046051025390625, -0.0187225341796875, -0.0002617835998535156, -0.0006170272827148438, -0.0220947265625, 0.026611328125, 0.01186370849609375, 0.0224609375, 0.002140045166015625, -0.03369140625, 0.007328033447265625, 0.01953125, -0.0814208984375, 0.09796142578125, 0.13525390625, 0.0418701171875, 0.0794677734375, 0.0123748779296875, 0.0075225830078125, 0.023468017578125, 0.03466796875, -0.030517578125, -0.04901123046875, 0.043609619140625, 0.00882720947265625, -0.0238494873046875, -0.001239776611328125, -0.01641845703125, -0.02203369140625, 0.050048828125, 0.016571044921875, -0.05517578125, -0.0214996337890625, -0.00959014892578125, -0.01523590087890625, 0.002536773681640625, 0.003986358642578125, -0.0223541259765625, -0.08038330078125, 0.06005859375, -0.0257415771484375, 0.005146026611328125, 0.01442718505859375, -0.0154876708984375, -0.0041961669921875, 0.016510009765625, -0.0167388916015625, 0.01367950439453125, -0.0604248046875, 0.029022216796875, 0.041473388671875, 0.032379150390625, -0.046356201171875, 0.0036067962646484375, 0.00507354736328125, -0.007061004638671875, -0.0518798828125, 0.031829833984375, -0.022552490234375, 0.0322265625, -0.007488250732421875, -0.0377197265625, 0.040740966796875, 0.03240966796875, -0.024749755859375, 0.01529693603515625, 0.00719451904296875, -0.0214080810546875, 0.03887939453125, -0.021453857421875, 0.028778076171875, 0.018157958984375, -0.07879638671875, 0.007297515869140625, -0.0259552001953125, 0.00472259521484375, 0.006603240966796875, -0.010467529296875, 0.0006337165832519531, -0.03057861328125, -0.0007843971252441406, 0.013885498046875, -0.01318359375, 0.02593994140625, 0.02984619140625, 0.039947509765625, -0.006526947021484375, -0.0078277587890625, 0.035888671875, -0.01312255859375, -0.007602691650390625, 0.041534423828125, 0.0298919677734375, 0.06805419921875, -0.039031982421875, -0.059844970703125, 0.044219970703125, 0.05267333984375, -0.0006279945373535156, 0.058013916015625, -0.0193939208984375, 0.016510009765625, -0.035797119140625, 0.05511474609375, -0.0330810546875, -0.003814697265625, 0.021484375, 0.0439453125, 0.052154541015625, 0.014434814453125, -0.017913818359375, -0.004810333251953125, 0.0196685791015625, 0.0208587646484375, -0.0177764892578125, 0.0273284912109375, 0.00853729248046875, 0.03875732421875, 0.01885986328125, -0.05938720703125, 0.01160430908203125, -0.03704833984375, -0.00675201416015625, 0.0224151611328125, 0.00453948974609375, -0.00931549072265625, -0.0008068084716796875, 0.026397705078125, -0.039306640625, -0.00789642333984375, 0.0227203369140625, -0.0182952880859375, -0.014739990234375, 0.043853759765625, 0.038299560546875, -0.0562744140625, -0.059600830078125, -0.027069091796875, 0.03826904296875, 0.0118408203125, 0.0174713134765625, 0.0160064697265625, 0.01715087890625, 0.04669189453125, -0.071533203125, -0.01369476318359375, -0.0021762847900390625, -0.0244903564453125, -0.0218353271484375, 0.0194549560546875, 0.02520751953125, -0.0024566650390625, 0.0207977294921875, 0.01953125, -0.00720977783203125, -0.0193939208984375, -0.03375244140625, 0.00954437255859375, 0.002460479736328125, 0.0109100341796875, -0.00665283203125, 0.005054473876953125, 0.0187530517578125, 0.01371002197265625, -0.007434844970703125, 0.00475311279296875, 0.015228271484375, -0.00970458984375, 0.006099700927734375, -0.00673675537109375, -0.0002791881561279297, 0.0198211669921875, -0.0221710205078125, 0.047088623046875, -0.01323699951171875, 0.01435089111328125, -0.013275146484375, 0.03900146484375, 0.005077362060546875, 0.0034389495849609375, 0.02801513671875, 0.029632568359375, -0.0084991455078125, -0.04071044921875, -0.0145721435546875, -0.057647705078125, 0.01157379150390625, 0.039459228515625, 0.0027942657470703125, 0.0189971923828125, 0.0350341796875, 0.024871826171875, -0.01366424560546875, -0.0130462646484375, 0.0253753662109375, -0.01435089111328125, -0.044342041015625, 0.011444091796875, -0.0007166862487792969, 0.0207977294921875, 0.0144500732421875, -0.0191497802734375, 0.08160400390625, 0.01177215576171875, -0.0211334228515625, 0.022552490234375, 0.004730224609375, -0.0006809234619140625, 0.022003173828125, -0.0180816650390625, -0.0173187255859375, -0.0147247314453125, 0.02264404296875, 0.01480865478515625, -0.00936126708984375, -0.020721435546875, -0.002777099609375, 0.0306549072265625, 0.0229339599609375, 0.0021381378173828125, 0.04339599609375, 0.012115478515625, -0.010772705078125, 0.0200347900390625, -0.0042724609375, -0.03131103515625, 0.045562744140625, 0.0179901123046875, -0.08599853515625, -0.07904052734375, -0.032470703125, 0.057159423828125, 0.0158538818359375, 0.04632568359375, -0.01169586181640625, 0.0279388427734375, -0.0172271728515625, 0.0173492431640625, -0.04986572265625, -0.0205841064453125, 0.021240234375, 0.0009169578552246094, 0.004024505615234375, -0.003543853759765625, -0.0762939453125, 0.023651123046875, 0.0232391357421875, 0.00042891502380371094, 0.009185791015625, 0.0012540817260742188, 0.02532958984375, 0.014251708984375, -0.01519775390625, -0.03521728515625, -0.0280303955078125, -0.0098724365234375, 0.016845703125, 0.020355224609375, 0.00942230224609375, -0.04046630859375, -0.01303863525390625, 0.01519012451171875, -0.056121826171875, 0.0270233154296875, -0.01531219482421875, 0.045196533203125, 0.0423583984375, -0.0157623291015625, -0.00434112548828125, 0.0011949539184570312, 0.0020751953125, -0.0017137527465820312, 0.0159759521484375, 0.0064697265625, -0.031585693359375, 0.043792724609375, -0.0213775634765625, 0.0133209228515625, -0.0184478759765625, -0.046661376953125, -0.013427734375, 0.033538818359375, -0.0242767333984375, 0.0108489990234375, -0.02032470703125, -0.01456451416015625, -0.000033855438232421875, -0.01322174072265625, 0.0265045166015625, 0.0033969879150390625, -0.028717041015625, -0.0723876953125, 0.009185791015625, 0.033966064453125, 0.02410888671875, -0.057281494140625, 0.032806396484375, -0.0294342041015625, 0.0269927978515625, -0.0006051063537597656, 0.00302886962890625, 0.01180267333984375, 0.0113983154296875, -0.02593994140625, 0.02569580078125, -0.01131439208984375, -0.01025390625, 0.0165863037109375, 0.0141754150390625, 0.046478271484375, -0.005878448486328125, 0.0010938644409179688, -0.0261383056640625, -0.03204345703125, 0.028045654296875, -0.048736572265625, -0.0303497314453125, -0.0169219970703125, 0.0031414031982421875, -0.01233673095703125, -0.0100555419921875, 0.0286712646484375, -0.057220458984375, -0.050994873046875, -0.050933837890625, 0.0218505859375, 0.01509857177734375, -0.03338623046875, -0.054718017578125, 0.059600830078125, -0.017303466796875, -0.01285552978515625, -0.07659912109375, -0.0060272216796875, -0.0135345458984375, 0.007175445556640625, -0.022613525390625, -0.01336669921875, -0.027008056640625, 0.061798095703125, 0.03497314453125, 0.005950927734375, 0.025848388671875, 0.0293426513671875, -0.0236053466796875, 0.02862548828125, 0.027496337890625, -0.01132965087890625, 0.00958251953125, -0.006717681884765625, 0.03118896484375, 0.07391357421875, -0.00832366943359375, -0.01294708251953125, -0.00896453857421875, -0.0472412109375, -0.0104522705078125, -0.038238525390625, -0.0290985107421875, -0.033782958984375, 0.060150146484375, 0.023590087890625, 0.0230255126953125, -0.0205230712890625, -0.022216796875, -0.034942626953125, -0.0227203369140625, -0.01366424560546875, 0.013580322265625, -0.0487060546875, 0.0197296142578125, -0.001857757568359375, -0.0277252197265625, -0.022735595703125, 0.0401611328125, -0.0252532958984375, 0.005859375, 0.0048065185546875, -0.0435791015625, 0.00867462158203125, -0.033935546875, 0.060577392578125, -0.0277252197265625, 0.03326416015625, 0.004352569580078125, 0.02764892578125, 0.04473876953125, 0.029083251953125, 0.0236663818359375, 0.017913818359375, -0.020263671875, -0.00020051002502441406, 0.0198822021484375, 0.0241851806640625, -0.0245819091796875, -0.0250244140625, 0.0270843505859375, 0.006771087646484375, -0.01373291015625, 0.00731658935546875, 0.01122283935546875, 0.0242767333984375, -0.039031982421875, 0.032196044921875, -0.0140533447265625, 0.013397216796875, -0.0271453857421875, 0.058502197265625, -0.0281524658203125, 0.0009398460388183594, -0.0161590576171875, -0.002094268798828125, 0.005184173583984375, 0.020965576171875, -0.00905609130859375, -0.01390838623046875, 0.00243377685546875, -0.032318115234375, -0.0034770965576171875, 0.0012378692626953125 ]
267572ac42ea9b83e683a7afeedf72ba40ba1754
Wordpress Stackexchange Q: How can I run custom function when post status is changed? I can hook custom function to each of trash_post, edit_post, private_to_publish etc. to meet some of my requirements, but I need also to check for more possible transitions like 'pending to draft', 'private to draft' and so on. Something similar to this inexistent function: if( post_status_changed($post_id) ) { my_custom_function(); } A: See this Codex page. In general the hook is {old_status}_to_{new_status}. (Untested) but in your case, the hook would be pending_to_draft: add_action('pending_to_draft','wpse45803_pending_to_draft'); function wpse45803_pending_to_draft($post){ //Do something } You might want to look up the wp_transition_post_status function. You could also use the hook: transition_post_status add_action('transition_post_status','wpse45803_transition_post_status',10,3); function wpse45803_transition_post_status($new_status,$old_status,$post){ //Do something }
Q: How can I run custom function when post status is changed? I can hook custom function to each of trash_post, edit_post, private_to_publish etc. to meet some of my requirements, but I need also to check for more possible transitions like 'pending to draft', 'private to draft' and so on. Something similar to this inexistent function: if( post_status_changed($post_id) ) { my_custom_function(); } A: See this Codex page. In general the hook is {old_status}_to_{new_status}. (Untested) but in your case, the hook would be pending_to_draft: add_action('pending_to_draft','wpse45803_pending_to_draft'); function wpse45803_pending_to_draft($post){ //Do something } You might want to look up the wp_transition_post_status function. You could also use the hook: transition_post_status add_action('transition_post_status','wpse45803_transition_post_status',10,3); function wpse45803_transition_post_status($new_status,$old_status,$post){ //Do something }
wordpress
{ "language": "en", "length": 111, "provenance": "stackexchange_00019.jsonl.gz:418131", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45803" }
[ 0.0740966796875, 0.006214141845703125, -0.00836944580078125, -0.0635986328125, 0.0278167724609375, -0.03204345703125, 0.00754547119140625, -0.0214996337890625, 0.002178192138671875, -0.0018949508666992188, -0.022430419921875, 0.0218048095703125, -0.044219970703125, -0.023406982421875, 0.0128173828125, -0.0273284912109375, 0.047698974609375, -0.035186767578125, 0.04876708984375, -0.005840301513671875, -0.0114898681640625, 0.03155517578125, 0.055023193359375, 0.01416778564453125, 0.00878143310546875, 0.0021038055419921875, 0.05267333984375, -0.045074462890625, 0.01325225830078125, -0.0284576416015625, 0.0245361328125, 0.00897979736328125, 0.003643035888671875, 0.04522705078125, -0.033477783203125, 0.059326171875, 0.00640869140625, 0.0262451171875, 0.00417327880859375, 0.038848876953125, 0.023681640625, -0.0036602020263671875, -0.0167999267578125, -0.0159759521484375, -0.02557373046875, -0.028961181640625, 0.027740478515625, -0.0087890625, 0.033905029296875, 0.0004105567932128906, 0.0214385986328125, -0.0233306884765625, 0.01837158203125, 0.012664794921875, -0.03564453125, -0.023956298828125, -0.060302734375, 0.0413818359375, 0.0313720703125, 0.04693603515625, -0.00799560546875, -0.005519866943359375, -0.0141448974609375, -0.041015625, -0.0132293701171875, 0.00020825862884521484, 0.0039215087890625, 0.00328826904296875, -0.0094146728515625, -0.042816162109375, -0.0010232925415039062, -0.01580810546875, -0.0172576904296875, 0.018951416015625, -0.0253448486328125, -0.040191650390625, 0.0360107421875, -0.034271240234375, -0.009796142578125, 0.0478515625, 0.01348876953125, -0.0031604766845703125, 0.01197052001953125, -0.0369873046875, 0.041229248046875, 0.0161590576171875, -0.01053619384765625, -0.01446533203125, -0.028228759765625, -0.007778167724609375, -0.0227203369140625, -0.0124969482421875, -0.0007505416870117188, -0.035308837890625, -0.019256591796875, -0.032867431640625, 0.0233612060546875, 0.04986572265625, -0.0299530029296875, -0.01131439208984375, 0.02056884765625, -0.02825927734375, 0.0194244384765625, -0.041107177734375, 0.006473541259765625, 0.044647216796875, 0.0125274658203125, -0.030364990234375, -0.00254058837890625, -0.005573272705078125, -0.0172119140625, -0.03448486328125, -0.017486572265625, 0.0091552734375, -0.05706787109375, -0.0092010498046875, -0.034088134765625, -0.031585693359375, -0.027099609375, -0.0175628662109375, 0.033355712890625, 0.037750244140625, 0.01535797119140625, -0.05035400390625, 0.0167999267578125, -0.0089263916015625, -0.0440673828125, -0.037506103515625, -0.00148773193359375, 0.007568359375, -0.0460205078125, 0.01122283935546875, 0.09039306640625, 0.012725830078125, 0.012481689453125, -0.019256591796875, 0.054412841796875, 0.0210723876953125, -0.01165008544921875, 0.044769287109375, 0.0008368492126464844, -0.066162109375, -0.06304931640625, 0.001369476318359375, 0.0033473968505859375, 0.029937744140625, 0.0272674560546875, -0.0109710693359375, -0.02215576171875, -0.05853271484375, -0.0139923095703125, 0.00963592529296875, 0.04071044921875, -0.00753021240234375, -0.00843048095703125, -0.0372314453125, -0.00930023193359375, -0.01515960693359375, -0.0020904541015625, -0.0254058837890625, 0.059326171875, -0.01611328125, -0.0288543701171875, 0.0020275115966796875, -0.040985107421875, 0.0183868408203125, -0.062286376953125, -0.01389312744140625, 0.016937255859375, 0.02069091796875, -0.00363922119140625, 0.021026611328125, 0.0146331787109375, -0.007587432861328125, -0.0128326416015625, -0.01459503173828125, -0.0234527587890625, 0.0243377685546875, 0.024932861328125, 0.020538330078125, -0.01019287109375, -0.0396728515625, 0.0423583984375, -0.0086517333984375, -0.043975830078125, 0.035858154296875, 0.0026836395263671875, 0.048828125, 0.0024051666259765625, 0.01552581787109375, -0.002758026123046875, 0.01055145263671875, -0.034149169921875, -0.00897979736328125, 0.0115509033203125, -0.0245208740234375, 0.002475738525390625, -0.039276123046875, 0.018402099609375, 0.017791748046875, 0.0022182464599609375, 0.042572021484375, -0.02117919921875, 0.0159759521484375, -0.056671142578125, 0.03131103515625, -0.028900146484375, 0.054656982421875, 0.00836944580078125, 0.0113372802734375, 0.02203369140625, 0.0007452964782714844, -0.0126190185546875, 0.009429931640625, -0.0244903564453125, -0.0308990478515625, -0.024810791015625, -0.0088653564453125, -0.0187225341796875, 0.0343017578125, -0.039337158203125, -0.0074005126953125, -0.0672607421875, -0.0237579345703125, 0.033477783203125, -0.0165863037109375, 0.0031375885009765625, -0.0010814666748046875, 0.041229248046875, 0.01593017578125, 0.0000489354133605957, -0.00022554397583007812, 0.038604736328125, 0.019500732421875, 0.006977081298828125, -0.0022029876708984375, 0.0127410888671875, -0.12890625, 0.00907135009765625, 0.076904296875, 0.025146484375, 0.0020618438720703125, -0.00214385986328125, 0.03533935546875, 0.0802001953125, 0.03955078125, 0.021087646484375, 0.0079193115234375, 0.01280975341796875, 0.0721435546875, -0.037994384765625, 0.022216796875, 0.0037097930908203125, -0.032440185546875, -0.0030155181884765625, 0.04400634765625, -0.0134735107421875, -0.037322998046875, 0.03472900390625, -0.0238494873046875, 0.0251312255859375, -0.051513671875, -0.055755615234375, -0.0089874267578125, 0.025390625, -0.017669677734375, 0.03448486328125, 0.00501251220703125, -0.021820068359375, -0.01407623291015625, 0.0102386474609375, -0.0146026611328125, 0.01015472412109375, 0.016021728515625, -0.006534576416015625, 0.042572021484375, -0.00553131103515625, -0.01245880126953125, 0.027801513671875, 0.01222991943359375, -0.00018894672393798828, 0.06170654296875, -0.03271484375, -0.0282135009765625, -0.013275146484375, -0.00887298583984375, -0.0192108154296875, -0.006359100341796875, -0.001934051513671875, -0.022705078125, 0.01079559326171875, 0.021209716796875, -0.018218994140625, 0.0277252197265625, 0.003246307373046875, -0.0263519287109375, 0.00385284423828125, -0.062225341796875, 0.044464111328125, -0.04254150390625, 0.01399993896484375, 0.0726318359375, 0.0169677734375, -0.00319671630859375, -0.0030269622802734375, 0.0341796875, 0.0154266357421875, 0.0198211669921875, -0.0057830810546875, -0.0287322998046875, -0.023529052734375, -0.03363037109375, 0.03515625, 0.0535888671875, -0.0018939971923828125, -0.0132293701171875, 0.0006203651428222656, 0.039459228515625, -0.01416778564453125, 0.01513671875, -0.051177978515625, -0.044281005859375, -0.015777587890625, -0.01727294921875, -0.00634002685546875, 0.0182037353515625, -0.0218048095703125, 0.0106964111328125, -0.043701171875, 0.02886962890625, -0.051788330078125, -0.01824951171875, -0.04156494140625, 0.0197906494140625, -0.0242156982421875, 0.028533935546875, -0.01198577880859375, 0.1236572265625, 0.010467529296875, -0.10186767578125, -0.028778076171875, 0.039215087890625, -0.0244293212890625, 0.026885986328125, 0.01058197021484375, -0.0196075439453125, 0.0264434814453125, 0.0005822181701660156, 0.03948974609375, 0.044677734375, -0.04388427734375, 0.0012416839599609375, -0.04254150390625, -0.01580810546875, -0.0195465087890625, 0.029876708984375, 0.0504150390625, 0.006427764892578125, 0.028533935546875, -0.02752685546875, 0.02093505859375, -0.022552490234375, -0.0218505859375, 0.01275634765625, -0.00592803955078125, -0.001018524169921875, -0.01363372802734375, 0.0220947265625, -0.0200042724609375, 0.00383758544921875, 0.03375244140625, 0.01505279541015625, -0.020477294921875, -0.0361328125, -0.046905517578125, -0.024017333984375, -0.037261962890625, -0.027587890625, 0.045257568359375, -0.01360321044921875, 0.0121002197265625, -0.028472900390625, 0.01326751708984375, -0.0614013671875, -0.06256103515625, 0.004360198974609375, -0.08563232421875, -0.014251708984375, -0.02471923828125, 0.0181427001953125, 0.0256500244140625, 0.078125, -0.00875091552734375, -0.0035381317138671875, -0.033599853515625, -0.0153656005859375, -0.0139617919921875, -0.033355712890625, -0.0352783203125, 0.0045928955078125, -0.037811279296875, 0.030029296875, -0.0083160400390625, 0.0025615692138671875, -0.052093505859375, 0.030426025390625, -0.0377197265625, -0.00024700164794921875, 0.023529052734375, -0.01422119140625, 0.00418853759765625, 0.0009531974792480469, -0.00038170814514160156, -0.0194091796875, 0.01114654541015625, -0.03125, -0.07696533203125, -0.01192474365234375, -0.039520263671875, 0.03546142578125, 0.04571533203125, -0.0615234375, 0.015228271484375, 0.032012939453125, 0.03546142578125, 0.03900146484375, -0.03717041015625, -0.033233642578125, 0.01343536376953125, -0.0125885009765625, -0.0193634033203125, -0.00885009765625, -0.01407623291015625, -0.01401519775390625, -0.00478363037109375, 0.0036029815673828125, -0.0183258056640625, -0.00528717041015625, 0.013824462890625, -0.03253173828125, -0.06243896484375, -0.0289764404296875, -0.0000629425048828125, 0.01033782958984375, -0.0168609619140625, 0.01000213623046875, -0.030853271484375, -0.043548583984375, 0.03668212890625, -0.027679443359375, -0.014404296875, -0.0084991455078125, 0.035247802734375, 0.016326904296875, -0.01045989990234375, 0.03253173828125, -0.034271240234375, 0.029083251953125, 0.0018587112426757812, 0.005092620849609375, 0.00322723388671875, -0.02178955078125, 0.0275115966796875, -0.0020294189453125, -0.062286376953125, 0.058319091796875, -0.010467529296875, 0.047088623046875, -0.0079498291015625, -0.04833984375, 0.0187835693359375, 0.0333251953125, 0.018463134765625, -0.036163330078125, -0.007289886474609375, 0.00949859619140625, 0.038360595703125, -0.0653076171875, 0.062042236328125, -0.014801025390625, -0.029052734375, 0.021575927734375, -0.0303955078125, 0.0021839141845703125, 0.027069091796875, -0.0083770751953125, -0.0081787109375, -0.0186920166015625, 0.0141448974609375, -0.046112060546875, -0.013641357421875, -0.0007061958312988281, 0.030517578125, 0.02606201171875, 0.029388427734375, -0.04071044921875, -0.00724029541015625, 0.044189453125, -0.006374359130859375, -0.044281005859375, -0.01611328125, -0.0032749176025390625, 0.0215911865234375, 0.0293731689453125, -0.0281982421875, 0.03204345703125, 0.041259765625, -0.0323486328125, 0.01558685302734375, -0.014007568359375, 0.022552490234375, -0.041961669921875, 0.0011968612670898438, 0.040557861328125, -0.0265350341796875, 0.01476287841796875, 0.021392822265625, 0.0770263671875, 0.001125335693359375, -0.04510498046875, 0.019287109375, 0.011627197265625, -0.0206756591796875, 0.033111572265625, 0.035888671875, -0.00023984909057617188, -0.0460205078125, 0.01105499267578125, -0.04754638671875, -0.01152801513671875, 0.0206451416015625, 0.029815673828125, 0.010528564453125, -0.0035572052001953125, 0.027679443359375, 0.01544952392578125, -0.019500732421875, 0.0540771484375, 0.08038330078125, -0.015350341796875, -0.0142669677734375, 0.04107666015625, 0.020660400390625, 0.0212860107421875, -0.005138397216796875, -0.016265869140625, -0.0212860107421875, 0.032379150390625, -0.07305908203125, 0.0137939453125, 0.005329132080078125, 0.0041656494140625, -0.027008056640625, -0.038482666015625, 0.0110626220703125, -0.014373779296875, 0.00295257568359375, -0.0186767578125, -0.0196533203125, 0.0243682861328125, -0.0213165283203125, -0.0013790130615234375, -0.038482666015625, 0.0139007568359375, -0.0273590087890625, 0.0032405853271484375, 0.059417724609375, 0.0085601806640625, -0.062103271484375, -0.0167694091796875, -0.030670166015625, -0.01038360595703125, -0.04730224609375, -0.04522705078125, -0.0360107421875, 0.01910400390625, 0.043060302734375, 0.0240020751953125, 0.00257110595703125, -0.0556640625, -0.0224609375, 0.01568603515625, 0.04974365234375, 0.07366943359375, 0.01119232177734375, 0.04779052734375, 0.00511932373046875, 0.07550048828125, 0.0244598388671875, 0.00878143310546875, -0.032928466796875, -0.03717041015625, -0.0011968612670898438, -0.02294921875, 0.0006995201110839844, -0.01088714599609375, -0.0022144317626953125, 0.010986328125, 0.038421630859375, 0.005035400390625, 0.015869140625, 0.00449371337890625, 0.01514434814453125, -0.01004791259765625, -0.0196533203125, 0.01055145263671875, 0.003589630126953125, 0.00685882568359375, -0.03558349609375, -0.0168609619140625, 0.020751953125, 0.031494140625, 0.0193634033203125, -0.0312347412109375, 0.0103607177734375, 0.0161590576171875, -0.06658935546875, 0.03533935546875, 0.034423828125, 0.0161895751953125, 0.0276947021484375, -0.03094482421875, 0.02294921875, 0.0241241455078125, -0.01401519775390625, 0.022491455078125, -0.00554656982421875, 0.0472412109375, -0.00435638427734375, -0.006504058837890625, 0.03997802734375, -0.0295867919921875, 0.0302886962890625, 0.045654296875, 0.076904296875, -0.0816650390625, 0.02685546875, 0.050048828125, -0.0196685791015625, 0.02642822265625, 0.00921630859375, -0.022613525390625, -0.038330078125, 0.008148193359375, -0.0233917236328125, -0.016815185546875, 0.013153076171875, 0.0076446533203125, -0.00103759765625, -0.035491943359375, 0.0197906494140625, 0.008514404296875, -0.05078125, 0.034393310546875, 0.035675048828125, 0.0174713134765625, -0.0104217529296875, 0.02105712890625, -0.004436492919921875, -0.00833892822265625, -0.044219970703125, 0.01824951171875, 0.005069732666015625, -0.02093505859375, 0.020965576171875, 0.030670166015625, 0.03265380859375, 0.03216552734375, 0.0236968994140625, -0.02239990234375, 0.01727294921875, -0.0214691162109375, -0.07183837890625, -0.007572174072265625, 0.03399658203125, 0.0408935546875, -0.004486083984375, 0.04449462890625, -0.00881195068359375, -0.037811279296875, -0.01299285888671875, -0.03668212890625, 0.068115234375, -0.04681396484375, 0.0024242401123046875, 0.01201629638671875, 0.0218505859375, 0.004058837890625, 0.020538330078125, 0.04217529296875, -0.076904296875, -0.08331298828125, 0.004638671875, -0.116943359375, -0.051849365234375, -0.0241546630859375, -0.07489013671875, 0.11553955078125, 0.031646728515625, 0.02880859375, -0.00450897216796875, 0.034942626953125, -0.055450439453125, 0.006267547607421875, -0.06365966796875, 0.052001953125, -0.011138916015625, 0.05535888671875, -0.0439453125, 0.0126953125, 0.006710052490234375, -0.007537841796875, 0.014862060546875, 0.0127716064453125, -0.00685882568359375, 0.01271820068359375, 0.017120361328125, 0.031463623046875, -0.0033359527587890625, 0.01543426513671875, -0.023406982421875, 0.05889892578125, 0.00771331787109375, -0.05914306640625, 0.0249786376953125, -0.039703369140625, -0.0487060546875, -0.0018167495727539062, 0.031768798828125, 0.03607177734375, -0.0653076171875, 0.0269317626953125, -0.0428466796875, -0.022247314453125, 0.0295867919921875, 0.0270843505859375, 0.0162506103515625, 0.021270751953125, 0.017852783203125, -0.0174713134765625, -0.0018243789672851562, -0.0186767578125, 0.031707763671875, -0.0173187255859375, 0.031341552734375, 0.021942138671875, 0.0294036865234375, -0.00911712646484375, -0.005523681640625, 0.01708984375, 0.00901031494140625, -0.0276336669921875, 0.05548095703125, 0.039703369140625, 0.00624847412109375, 0.013458251953125, 0.073486328125, 0.010406494140625, 0.042205810546875, -0.060455322265625, 0.021026611328125, 0.0159454345703125, -0.00009441375732421875, -0.00937652587890625, -0.039581298828125, 0.00936126708984375, -0.008331298828125, -0.019500732421875, -0.0005145072937011719, -0.022979736328125, 0.02728271484375, 0.0134429931640625, 0.00946807861328125, -0.00409698486328125, -0.0087890625, -0.032989501953125, -0.029937744140625, -0.019622802734375, 0.0279083251953125, 0.041717529296875, 0.01418304443359375, 0.038330078125, 0.038848876953125, -0.00984954833984375, 0.0288848876953125, -0.01212310791015625, 0.0017414093017578125, -0.043792724609375, -0.01427459716796875, -0.04937744140625, 0.01343536376953125, 0.039306640625, 0.01085662841796875, 0.018646240234375, 0.0258941650390625, -0.0030040740966796875, -0.0249481201171875, -0.0049896240234375, 0.040740966796875, -0.0308837890625, -0.0178985595703125, -0.0374755859375, -0.00789642333984375, 0.01132965087890625, -0.0102996826171875, 0.0147857666015625, -0.01334381103515625, 0.027099609375, -0.020050048828125, 0.0435791015625, -0.0053863525390625, -0.04315185546875, 0.0443115234375, 0.0302276611328125, 0.11474609375, 0.016998291015625, -0.055908203125, -0.007068634033203125, -0.041168212890625, -0.0097198486328125, -0.00946807861328125, 0.0271148681640625, 0.0150146484375, 0.0139617919921875, 0.005870819091796875, -0.0172882080078125, 0.01123809814453125, 0.0225372314453125, -0.0025997161865234375, 0.0125274658203125, 0.0191192626953125, -0.0003170967102050781, -0.04473876953125, -0.021331787109375, -0.02874755859375, 0.03271484375, -0.009185791015625, 0.06787109375, -0.025238037109375, 0.0241851806640625, -0.0013647079467773438, 0.014434814453125, -0.019805908203125, -0.0168914794921875, 0.027252197265625, -0.0252685546875, 0.009674072265625, 0.0070343017578125, 0.01519775390625, 0.01134490966796875, 0.021514892578125, -0.0224609375, 0.0154876708984375, -0.042724609375, 0.0189666748046875, -0.007518768310546875, -0.0225677490234375, -0.0272216796875, -0.012298583984375, 0.01708984375, 0.00713348388671875, -0.001079559326171875, -0.0092926025390625, 0.00823974609375, 0.030181884765625, -0.023712158203125, -0.01849365234375, -0.0033473968505859375, -0.0193023681640625, -0.022308349609375, 0.0357666015625, -0.036407470703125, 0.0027751922607421875, -0.0166015625, -0.0192718505859375, 0.005641937255859375, -0.008056640625, 0.0092620849609375, -0.0139923095703125, 0.0070343017578125, -0.019866943359375, -0.03790283203125, 0.0010528564453125, -0.0246734619140625, -0.01010894775390625, -0.003063201904296875, 0.003566741943359375, -0.0012359619140625, 0.0015211105346679688, -0.0150604248046875, 0.0007634162902832031, -0.0099029541015625, -0.0011739730834960938, 0.0180511474609375, -0.044952392578125, 0.02056884765625, -0.020050048828125, 0.022216796875, 0.009368896484375, -0.036041259765625, 0.0088653564453125, -0.005130767822265625, 0.0098876953125, 0.007511138916015625, -0.0264129638671875, 0.01629638671875, 0.04638671875, -0.030059814453125, -0.03753662109375, -0.0213623046875, 0.0231170654296875, -0.03826904296875, -0.0220947265625, 0.02691650390625, -0.021026611328125, -0.07769775390625, -0.03265380859375, -0.0171966552734375, -0.001312255859375, 0.0250091552734375, -0.021728515625, 0.0082855224609375, 0.004180908203125, -0.0070953369140625, -0.053558349609375, 0.0039215087890625, -0.041168212890625, -0.005664825439453125, 0.0153350830078125, 0.00909423828125, 0.05633544921875, -0.017547607421875, -0.07452392578125, -0.003139495849609375, -0.00814056396484375, -0.0439453125, -0.058197021484375, 0.00913238525390625, -0.0110626220703125, 0.0210113525390625, -0.0142974853515625, -0.0283966064453125, -0.0210723876953125, 0.027008056640625, -0.0024890899658203125, 0.10040283203125, -0.0208282470703125, 0.0084228515625, -0.041168212890625, 0.0017261505126953125, -0.0277252197265625, 0.0264892578125, 0.0093536376953125, -0.0246734619140625, 0.0197906494140625, 0.0335693359375, -0.0310821533203125, -0.048309326171875, 0.0010652542114257812, -0.0307464599609375, -0.01495361328125, -0.0278472900390625, -0.02325439453125, -0.0186614990234375, 0.0987548828125, 0.031463623046875, 0.02313232421875, -0.025146484375, -0.0008516311645507812, -0.0149078369140625, -0.021636962890625, 0.0025920867919921875, 0.01195526123046875, -0.038909912109375, -0.0018301010131835938, 0.0195770263671875, 0.0006227493286132812, -0.018951416015625, -0.04010009765625, -0.032012939453125, -0.01418304443359375, -0.028594970703125, 0.02301025390625, -0.0350341796875, -0.02008056640625, 0.04888916015625, -0.033355712890625, 0.0009751319885253906, 0.031463623046875, -0.002330780029296875, 0.029541015625, 0.08697509765625, 0.022918701171875, 0.052398681640625, -0.050628662109375, -0.0271148681640625, 0.025543212890625, 0.0287322998046875, 0.001934051513671875, -0.01702880859375, -0.0120697021484375, -0.021820068359375, -0.01153564453125, -0.05291748046875, 0.0243682861328125, -0.0090484619140625, -0.0252227783203125, 0.07806396484375, -0.032958984375, 0.11090087890625, 0.0036411285400390625, 0.01407623291015625, -0.01666259765625, 0.00853729248046875, 0.0272369384765625, -0.0215606689453125, 0.00156402587890625, -0.00592803955078125, -0.004413604736328125, -0.026580810546875, 0.02752685546875, -0.02044677734375, 0.0003821849822998047, 0.022674560546875 ]
bdc8e93cd108066820dcac017fb3e318ac5b7779
Wordpress Stackexchange Q: Disable h1 and h2 from rich text editor combobox In the Wordpress control panel, when writing a new post, I would like to disable the Header 1 and Header 2 from the text formatting combobox, because I already use them on my theme (h1 for blog name and h2 for post titles), and would like to keep all headers inside a post with h3 or higher. Is that possible? It doesn't matter for the case if the code can be edited in the HTML view. Also, I don't want to edit Wordpress internal files, so a hack for functions.php or a plugin would be great for this task, in order to preserve this change across future updates. Thank you! A: you can change lots of things about the tinyMCE editor at the tiny_mce_before_init filter. http://codex.wordpress.org/TinyMCE_Custom_Buttons the following will restrict your blockformats to p,h3,h4 and blockquote function wpa_45815($arr){ $arr['theme_advanced_blockformats'] = 'p,h3,h4,blockquote'; return $arr; } add_filter('tiny_mce_before_init', 'wpa_45815'); EDIT for WordPress 3.9 see link function wpa_45815($arr){ $arr['block_formats'] = 'Paragraph=p;Heading 3=h3;Heading 4=h4'; return $arr; } add_filter('tiny_mce_before_init', 'wpa_45815');
Q: Disable h1 and h2 from rich text editor combobox In the Wordpress control panel, when writing a new post, I would like to disable the Header 1 and Header 2 from the text formatting combobox, because I already use them on my theme (h1 for blog name and h2 for post titles), and would like to keep all headers inside a post with h3 or higher. Is that possible? It doesn't matter for the case if the code can be edited in the HTML view. Also, I don't want to edit Wordpress internal files, so a hack for functions.php or a plugin would be great for this task, in order to preserve this change across future updates. Thank you! A: you can change lots of things about the tinyMCE editor at the tiny_mce_before_init filter. http://codex.wordpress.org/TinyMCE_Custom_Buttons the following will restrict your blockformats to p,h3,h4 and blockquote function wpa_45815($arr){ $arr['theme_advanced_blockformats'] = 'p,h3,h4,blockquote'; return $arr; } add_filter('tiny_mce_before_init', 'wpa_45815'); EDIT for WordPress 3.9 see link function wpa_45815($arr){ $arr['block_formats'] = 'Paragraph=p;Heading 3=h3;Heading 4=h4'; return $arr; } add_filter('tiny_mce_before_init', 'wpa_45815'); A: This is a quick and dirty solution but it may work if your objective is to disable H1 and H2. Add this code to your functions.php file function custom_css() { echo '<style type="text/css"> #menu_content_content_formatselect_menu #mce_9, #menu_content_content_formatselect_menu #mce_10 {display:none;} </style>'; } add_action('admin_head', 'custom_css'); Heading 1 and Heading 2 should be hidden now.
wordpress
{ "language": "en", "length": 226, "provenance": "stackexchange_00019.jsonl.gz:418133", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45815" }
[ -0.01885986328125, 0.006885528564453125, -0.054840087890625, 0.009521484375, 0.0179443359375, -0.03314208984375, 0.0224761962890625, -0.0019216537475585938, 0.006511688232421875, 0.048095703125, 0.0273590087890625, -0.0167999267578125, 0.0250091552734375, -0.041595458984375, -0.007843017578125, 0.007724761962890625, 0.0285797119140625, 0.004039764404296875, 0.0024585723876953125, -0.005344390869140625, -0.027191162109375, 0.00007289648056030273, 0.0028743743896484375, -0.00885772705078125, 0.0310821533203125, -0.041900634765625, 0.0469970703125, -0.032073974609375, 0.018402099609375, -0.01812744140625, 0.0261383056640625, 0.006649017333984375, 0.023162841796875, 0.08502197265625, -0.1021728515625, 0.0770263671875, -0.017608642578125, 0.04815673828125, 0.00885772705078125, 0.020721435546875, 0.03662109375, -0.0227508544921875, -0.01593017578125, 0.033447265625, -0.0218658447265625, -0.0005517005920410156, 0.0022296905517578125, -0.0340576171875, 0.021881103515625, -0.009979248046875, -0.0228271484375, 0.0238189697265625, 0.0021152496337890625, -0.039306640625, -0.01396942138671875, -0.0128631591796875, -0.022003173828125, 0.00970458984375, 0.00844573974609375, 0.057342529296875, 0.01465606689453125, 0.011260986328125, -0.017669677734375, -0.0278472900390625, -0.0014495849609375, 0.008392333984375, -0.00025963783264160156, 0.02679443359375, -0.0174407958984375, 0.010223388671875, 0.005847930908203125, -0.053253173828125, -0.002895355224609375, -0.0487060546875, -0.0193634033203125, 0.021240234375, -0.032470703125, -0.044525146484375, 0.0253753662109375, -0.0225830078125, 0.0260162353515625, 0.01519775390625, -0.062408447265625, -0.0080108642578125, 0.027435302734375, 0.017181396484375, -0.01056671142578125, -0.0295867919921875, 0.00785064697265625, -0.01081085205078125, -0.007610321044921875, -0.0401611328125, 0.004802703857421875, 0.03424072265625, -0.00909423828125, -0.030731201171875, 0.0312347412109375, 0.0005512237548828125, -0.01267242431640625, -0.0048675537109375, 0.0191802978515625, -0.051116943359375, 0.043701171875, -0.025787353515625, 0.0201263427734375, 0.01136016845703125, -0.0416259765625, -0.005496978759765625, 0.05706787109375, 0.035888671875, -0.0081634521484375, 0.0236968994140625, -0.029632568359375, -0.0343017578125, -0.0156097412109375, 0.0489501953125, -0.039093017578125, 0.006134033203125, 0.00470733642578125, 0.0253143310546875, 0.0139617919921875, 0.032257080078125, 0.0404052734375, -0.023712158203125, -0.01070404052734375, -0.0005025863647460938, -0.0223236083984375, -0.04583740234375, 0.007114410400390625, 0.014801025390625, -0.007488250732421875, -0.0226593017578125, 0.0221099853515625, 0.068115234375, 0.0386962890625, -0.00508880615234375, 0.027587890625, 0.0004832744598388672, -0.024078369140625, 0.026947021484375, 0.010223388671875, -0.040679931640625, -0.039215087890625, -0.0020885467529296875, -0.0163726806640625, 0.032501220703125, 0.0015087127685546875, 0.00543975830078125, -0.00804901123046875, -0.06768798828125, 0.004364013671875, -0.04443359375, 0.050079345703125, 0.015228271484375, -0.031585693359375, -0.0350341796875, 0.0252532958984375, -0.03216552734375, -0.02349853515625, -0.06201171875, 0.018157958984375, -0.01232147216796875, 0.00759124755859375, -0.030426025390625, -0.056915283203125, -0.0015516281127929688, -0.03692626953125, -0.0224609375, 0.0160369873046875, 0.002071380615234375, -0.01462554931640625, 0.005878448486328125, -0.004199981689453125, -0.03363037109375, -0.01629638671875, 0.00043964385986328125, -0.0096282958984375, 0.0122528076171875, 0.0015611648559570312, 0.06207275390625, 0.02679443359375, -0.0257568359375, 0.0261077880859375, 0.007038116455078125, -0.07220458984375, 0.06005859375, -0.0024509429931640625, 0.07196044921875, 0.005252838134765625, -0.001781463623046875, 0.053375244140625, 0.0214996337890625, -0.0372314453125, -0.02935791015625, 0.0097503662109375, -0.025238037109375, -0.004390716552734375, -0.02423095703125, 0.0117340087890625, 0.038726806640625, 0.013885498046875, 0.01230621337890625, -0.01593017578125, -0.04150390625, -0.06964111328125, -0.0010967254638671875, -0.008270263671875, 0.046966552734375, -0.004291534423828125, -0.0020656585693359375, 0.006702423095703125, -0.03106689453125, 0.00453948974609375, -0.0057373046875, -0.00058746337890625, 0.01479339599609375, -0.0013790130615234375, 0.065185546875, 0.02703857421875, 0.034393310546875, 0.03076171875, -0.013427734375, 0.04351806640625, 0.00418853759765625, 0.023468017578125, -0.02862548828125, 0.01403045654296875, -0.01554107666015625, 0.0648193359375, 0.00428009033203125, 0.028289794921875, -0.0157928466796875, 0.0178070068359375, 0.0322265625, -0.031463623046875, -0.00392913818359375, 0.00328826904296875, -0.04095458984375, 0.0056304931640625, 0.038604736328125, 0.0196990966796875, 0.033477783203125, -0.02349853515625, 0.01070404052734375, 0.06475830078125, -0.05120849609375, -0.0281219482421875, 0.03521728515625, 0.03753662109375, 0.037872314453125, 0.00799560546875, -0.032684326171875, 0.036407470703125, -0.007030487060546875, 0.0648193359375, 0.005084991455078125, -0.016082763671875, -0.0194854736328125, 0.034149169921875, -0.00675201416015625, 0.01303863525390625, 0.01198577880859375, 0.000812530517578125, -0.00942230224609375, 0.11175537109375, 0.00710296630859375, 0.05780029296875, 0.02008056640625, -0.0716552734375, 0.040557861328125, 0.02923583984375, 0.0006766319274902344, -0.006748199462890625, -0.01036834716796875, 0.053131103515625, -0.0322265625, -0.04583740234375, 0.0140380859375, 0.0304412841796875, -0.005603790283203125, -0.0186004638671875, -0.0014963150024414062, -0.02789306640625, -0.0164794921875, 0.0065155029296875, -0.055511474609375, 0.006591796875, -0.00412750244140625, 0.050262451171875, 0.01617431640625, 0.013336181640625, 0.0269317626953125, -0.01483917236328125, 0.06097412109375, -0.01544189453125, -0.019622802734375, -0.007411956787109375, -0.051605224609375, 0.051116943359375, -0.03363037109375, 0.05706787109375, 0.059356689453125, -0.01383209228515625, 0.0079193115234375, 0.01030731201171875, -0.00783538818359375, 0.0203857421875, 0.0308837890625, 0.0223236083984375, -0.003345489501953125, -0.0028839111328125, 0.025726318359375, 0.01244354248046875, 0.039581298828125, -0.01441192626953125, -0.0377197265625, -0.007068634033203125, 0.024627685546875, -0.01338958740234375, 0.00443267822265625, 0.003772735595703125, -0.025177001953125, 0.01026153564453125, -0.008819580078125, -0.01355743408203125, -0.024505615234375, 0.00978851318359375, 0.01274871826171875, -0.00017654895782470703, -0.027801513671875, -0.00382232666015625, -0.0293121337890625, -0.03338623046875, -0.04888916015625, -0.0035419464111328125, -0.020660400390625, 0.010711669921875, 0.058746337890625, 0.0182342529296875, -0.0550537109375, 0.0306549072265625, -0.05267333984375, -0.023193359375, 0.05718994140625, -0.0167083740234375, -0.00617218017578125, 0.0093994140625, 0.011810302734375, -0.056732177734375, -0.006351470947265625, 0.03216552734375, -0.024200439453125, -0.0026187896728515625, -0.010040283203125, -0.0014591217041015625, 0.04071044921875, 0.0145416259765625, -0.00333404541015625, 0.01490020751953125, -0.0400390625, -0.03582763671875, -0.0008106231689453125, -0.035858154296875, 0.014862060546875, 0.04327392578125, -0.02020263671875, -0.0171661376953125, 0.0241241455078125, -0.0074462890625, -0.0296783447265625, 0.01715087890625, -0.052642822265625, 0.06317138671875, 0.005207061767578125, 0.039794921875, -0.0172882080078125, -0.004802703857421875, -0.025970458984375, 0.041900634765625, -0.005039215087890625, -0.005321502685546875, -0.0360107421875, 0.0330810546875, -0.0533447265625, 0.0001882314682006836, 0.01336669921875, -0.05615234375, -0.006107330322265625, 0.027099609375, 0.01377105712890625, 0.037261962890625, 0.0361328125, -0.0261077880859375, -0.00478363037109375, 0.0019102096557617188, 0.0208740234375, -0.034454345703125, -0.06561279296875, -0.0278778076171875, -0.01418304443359375, -0.07177734375, 0.0309906005859375, -0.0110015869140625, -0.01102447509765625, -0.044586181640625, 0.030609130859375, -0.03607177734375, -0.031829833984375, 0.013946533203125, 0.01250457763671875, -0.034942626953125, 0.052764892578125, -0.0576171875, 0.04400634765625, -0.03167724609375, -0.01190185546875, -0.0772705078125, -0.006580352783203125, -0.01227569580078125, 0.03216552734375, 0.00472259521484375, -0.017120361328125, -0.0297393798828125, 0.0293426513671875, -0.014892578125, 0.03021240234375, -0.0077972412109375, 0.031341552734375, -0.001697540283203125, -0.037109375, -0.0194244384765625, -0.0290985107421875, -0.010223388671875, 0.016387939453125, -0.031463623046875, 0.036590576171875, -0.00632476806640625, -0.0174407958984375, 0.032318115234375, -0.048248291015625, -0.06829833984375, -0.061737060546875, -0.03485107421875, 0.00943756103515625, -0.026641845703125, 0.0245819091796875, -0.075927734375, -0.056488037109375, 0.01438140869140625, 0.026611328125, -0.01021575927734375, -0.0034732818603515625, 0.0057220458984375, 0.0311279296875, -0.030517578125, 0.04302978515625, -0.014495849609375, 0.0316162109375, -0.0023326873779296875, 0.032867431640625, 0.0118560791015625, -0.04132080078125, 0.08819580078125, 0.01183319091796875, -0.004528045654296875, -0.0406494140625, 0.0914306640625, -0.00013756752014160156, -0.0124359130859375, 0.0184173583984375, -0.01922607421875, 0.0194244384765625, 0.0170440673828125, 0.0214996337890625, -0.00371551513671875, 0.0182342529296875, 0.016510009765625, 0.016937255859375, -0.048797607421875, -0.0255279541015625, -0.001461029052734375, -0.01910400390625, 0.058624267578125, 0.01300048828125, 0.0263519287109375, 0.01479339599609375, -0.040435791015625, 0.00803375244140625, -0.01116943359375, 0.031829833984375, -0.00399017333984375, -0.026031494140625, 0.037933349609375, -0.04595947265625, -0.051666259765625, 0.028778076171875, -0.0023345947265625, 0.0209808349609375, 0.020965576171875, -0.0310821533203125, -0.045928955078125, -0.00019025802612304688, 0.0277557373046875, -0.03875732421875, 0.01904296875, 0.022186279296875, 0.00862884521484375, -0.023681640625, -0.00572967529296875, 0.0305023193359375, -0.0174407958984375, -0.03131103515625, -0.00948333740234375, 0.02398681640625, -0.00955963134765625, 0.0019817352294921875, 0.0565185546875, 0.05535888671875, -0.000010073184967041016, -0.03375244140625, 0.005939483642578125, 0.00275421142578125, -0.006458282470703125, 0.0003933906555175781, 0.0499267578125, 0.01279449462890625, -0.0215606689453125, 0.044891357421875, -0.038787841796875, -0.018463134765625, 0.0150299072265625, 0.029693603515625, 0.025054931640625, 0.01258087158203125, -0.005573272705078125, -0.0123443603515625, 0.00882720947265625, 0.01470947265625, -0.00927734375, -0.061431884765625, 0.0155487060546875, 0.0167083740234375, -0.0205535888671875, -0.042022705078125, -0.00543212890625, -0.0195770263671875, -0.03643798828125, -0.00446319580078125, 0.01148223876953125, -0.035003662109375, -0.00005602836608886719, 0.0095367431640625, 0.0141754150390625, -0.007068634033203125, -0.024932861328125, -0.060882568359375, -0.0222930908203125, -0.0026035308837890625, 0.006694793701171875, 0.039093017578125, -0.03466796875, 0.008758544921875, -0.0135345458984375, 0.0142059326171875, -0.04949951171875, 0.01739501953125, 0.030242919921875, 0.02154541015625, -0.052459716796875, -0.0023670196533203125, -0.055572509765625, -0.01580810546875, -0.06854248046875, -0.071044921875, -0.03118896484375, 0.0018339157104492188, 0.03857421875, 0.03118896484375, 0.0051422119140625, -0.03424072265625, 0.0181732177734375, 0.0086669921875, 0.013824462890625, 0.060546875, -0.053802490234375, 0.1024169921875, 0.007747650146484375, 0.07232666015625, 0.004749298095703125, 0.05908203125, 0.019683837890625, -0.007495880126953125, 0.0219573974609375, -0.04669189453125, -0.00370025634765625, -0.00588226318359375, -0.0147857666015625, -0.0271148681640625, -0.017669677734375, -0.007091522216796875, 0.0030536651611328125, 0.00411224365234375, 0.021240234375, -0.0279388427734375, -0.039825439453125, -0.035400390625, -0.00960540771484375, -0.02264404296875, -0.0159454345703125, 0.020751953125, -0.01436614990234375, -0.009613037109375, 0.0323486328125, -0.0195465087890625, 0.0242919921875, 0.017120361328125, -0.0287322998046875, 0.030487060546875, 0.040283203125, 0.006805419921875, 0.022003173828125, 0.004627227783203125, 0.0133209228515625, -0.00797271728515625, -0.030120849609375, -0.01239013671875, 0.0479736328125, 0.0567626953125, 0.00609588623046875, -0.00946807861328125, 0.055450439453125, -0.026214599609375, 0.0234222412109375, 0.020538330078125, 0.07012939453125, -0.0294647216796875, -0.0015544891357421875, 0.01090240478515625, -0.0333251953125, 0.037353515625, 0.0115966796875, -0.0160064697265625, -0.056915283203125, 0.057861328125, 0.0005779266357421875, 0.0012102127075195312, 0.01593017578125, -0.007305145263671875, -0.01279449462890625, -0.01727294921875, 0.046173095703125, 0.01190185546875, -0.0304718017578125, 0.01522064208984375, 0.0185394287109375, -0.00010842084884643555, -0.0125885009765625, 0.01264190673828125, -0.0220184326171875, -0.052215576171875, -0.08233642578125, -0.047882080078125, 0.033172607421875, -0.053680419921875, 0.0031681060791015625, -0.00469207763671875, 0.01044464111328125, 0.058685302734375, -0.034576416015625, 0.0277099609375, 0.02264404296875, 0.0157318115234375, 0.03204345703125, -0.0228424072265625, 0.0230865478515625, 0.05682373046875, -0.017059326171875, 0.0216827392578125, 0.0267791748046875, -0.019439697265625, -0.004268646240234375, 0.0036869049072265625, 0.0171966552734375, 0.0240478515625, -0.044281005859375, 0.0308685302734375, -0.0220794677734375, -0.020660400390625, -0.038238525390625, 0.0343017578125, -0.05609130859375, -0.025543212890625, -0.0168914794921875, -0.03594970703125, -0.0169525146484375, -0.0450439453125, -0.07379150390625, 0.109619140625, -0.0230865478515625, 0.050811767578125, 0.0119476318359375, 0.02490234375, -0.03546142578125, -0.007053375244140625, -0.007762908935546875, 0.0235595703125, -0.0002727508544921875, -0.00218963623046875, -0.037872314453125, -0.0016965866088867188, -0.0009813308715820312, 0.049102783203125, 0.0218505859375, -0.006496429443359375, 0.031494140625, -0.01470947265625, 0.0084686279296875, 0.06719970703125, -0.0048980712890625, -0.035675048828125, 0.0094146728515625, -0.0254364013671875, -0.03125, 0.005702972412109375, 0.033905029296875, -0.06829833984375, -0.043365478515625, 0.023590087890625, 0.00893402099609375, -0.0107269287109375, 0.0164031982421875, -0.0208587646484375, -0.0248870849609375, -0.0005869865417480469, -0.004547119140625, -0.032135009765625, -0.053863525390625, 0.04949951171875, 0.0014705657958984375, -0.029510498046875, -0.0279541015625, -0.03411865234375, 0.0384521484375, 0.019134521484375, 0.004749298095703125, 0.039794921875, 0.0240325927734375, 0.00753021240234375, 0.011932373046875, 0.0236663818359375, 0.0198211669921875, -0.021148681640625, -0.00048804283142089844, 0.01346588134765625, 0.00878143310546875, -0.01140594482421875, 0.04217529296875, 0.02105712890625, -0.00798797607421875, -0.030059814453125, -0.024505615234375, 0.00493621826171875, 0.0078277587890625, 0.01035308837890625, -0.0185699462890625, 0.0170440673828125, -0.0140838623046875, 0.028411865234375, 0.0111236572265625, -0.018524169921875, -0.004852294921875, -0.010650634765625, 0.007049560546875, 0.045867919921875, 0.03350830078125, -0.0037441253662109375, -0.054779052734375, -0.0115966796875, -0.001773834228515625, 0.04364013671875, 0.03948974609375, 0.04083251953125, 0.0256195068359375, -0.03057861328125, -0.047027587890625, 0.03173828125, 0.01064300537109375, 0.046173095703125, -0.069580078125, -0.0196380615234375, 0.0103302001953125, 0.04534912109375, 0.033233642578125, 0.016754150390625, 0.05645751953125, 0.043792724609375, -0.024566650390625, -0.0014753341674804688, 0.016571044921875, -0.021636962890625, -0.03887939453125, -0.058563232421875, -0.04681396484375, -0.0123138427734375, -0.0010156631469726562, 0.053558349609375, -0.0170745849609375, -0.005340576171875, 0.003070831298828125, -0.0189971923828125, 0.0118408203125, -0.0244140625, -0.01181793212890625, 0.01120758056640625, -0.048675537109375, 0.0255584716796875, -0.039642333984375, -0.005706787109375, -0.01398468017578125, -0.07476806640625, 0.034881591796875, 0.0604248046875, -0.0179901123046875, 0.00727081298828125, -0.038543701171875, -0.0026912689208984375, -0.007080078125, -0.01551055908203125, 0.010894775390625, 0.0265350341796875, 0.005931854248046875, 0.007305145263671875, -0.0104522705078125, 0.0022411346435546875, 0.01015472412109375, 0.0163421630859375, 0.033538818359375, 0.042877197265625, 0.003467559814453125, 0.014007568359375, -0.0255584716796875, 0.0254364013671875, -0.0193023681640625, -0.01212310791015625, -0.0012664794921875, 0.042449951171875, 0.037567138671875, -0.0205078125, -0.0312347412109375, 0.059051513671875, 0.020965576171875, -0.016021728515625, 0.049346923828125, 0.01151275634765625, -0.00960540771484375, -0.061859130859375, 0.033233642578125, -0.0161895751953125, -0.0367431640625, -0.043975830078125, -0.0008401870727539062, 0.02545166015625, 0.0484619140625, 0.0124053955078125, 0.01465606689453125, 0.04534912109375, 0.0019741058349609375, 0.0292816162109375, 0.00905609130859375, 0.054473876953125, 0.046112060546875, -0.0242156982421875, -0.0291748046875, 0.03363037109375, -0.01143646240234375, -0.0179595947265625, 0.03179931640625, 0.01393890380859375, 0.004058837890625, -0.06396484375, 0.027801513671875, 0.01763916015625, 0.0335693359375, -0.0255279541015625, 0.0041046142578125, 0.04718017578125, 0.00988006591796875, -0.01055145263671875, 0.01236724853515625, -0.01788330078125, -0.032958984375, -0.018798828125, 0.0289459228515625, -0.045135498046875, -0.042938232421875, -0.11151123046875, -0.0298309326171875, 0.018218994140625, -0.003391265869140625, -0.0216064453125, -0.00905609130859375, -0.021575927734375, 0.0289306640625, -0.0235595703125, 0.032135009765625, -0.055328369140625, -0.021331787109375, -0.0286712646484375, -0.0673828125, -0.06866455078125, 0.0916748046875, -0.055755615234375, 0.0038280487060546875, 0.05126953125, -0.0093841552734375, -0.00820159912109375, -0.03875732421875, -0.01427459716796875, 0.017913818359375, -0.044525146484375, -0.0213470458984375, 0.06646728515625, -0.045318603515625, 0.007495880126953125, -0.057220458984375, -0.028961181640625, -0.05645751953125, 0.00989532470703125, 0.0026988983154296875, -0.052642822265625, -0.0579833984375, -0.056793212890625, -0.0161590576171875, 0.048919677734375, 0.0272369384765625, -0.017913818359375, -0.0256500244140625, 0.0240325927734375, -0.0156097412109375, 0.00897216796875, 0.005641937255859375, -0.0113677978515625, 0.01308441162109375, 0.011993408203125, -0.00955963134765625, 0.060089111328125, -0.00835418701171875, -0.010955810546875, 0.01922607421875, 0.0309295654296875, 0.0277862548828125, -0.00034356117248535156, -0.0130157470703125, 0.012359619140625, 0.0099639892578125, 0.01474761962890625, -0.020843505859375, -0.025634765625, -0.01000213623046875, -0.00902557373046875, 0.0148773193359375, -0.0171966552734375, -0.06500244140625, -0.03662109375, 0.0517578125, 0.067626953125, 0.0221099853515625, -0.01580810546875, -0.00798797607421875, -0.004978179931640625, 0.01444244384765625, 0.01152801513671875, -0.00786590576171875, -0.0213470458984375, -0.00955963134765625, 0.00290679931640625, -0.0014934539794921875, 0.002872467041015625, -0.02374267578125, -0.03411865234375, -0.0086669921875, -0.022796630859375, -0.0023746490478515625, -0.0206756591796875, 0.0131683349609375, -0.0018758773803710938, -0.03350830078125, -0.044921875, -0.0169677734375, 0.0008378028869628906, -0.03973388671875, -0.042266845703125, -0.07257080078125, -0.0173492431640625, -0.007244110107421875, 0.0355224609375, -0.034423828125, 0.0338134765625, -0.051605224609375, 0.0477294921875, -0.0243072509765625, -0.0285797119140625, 0.02459716796875, -0.054901123046875, -0.036163330078125, -0.0209197998046875, -0.00742340087890625, -0.006443023681640625, -0.019134521484375, -0.028167724609375, -0.0482177734375, 0.0268096923828125, 0.0226898193359375, -0.000545501708984375, 0.042633056640625, 0.0038051605224609375, 0.01354217529296875, 0.0180511474609375, 0.006237030029296875, -0.01522064208984375, 0.018890380859375, 0.0088348388671875, 0.0173492431640625, 0.00881195068359375 ]
44d1c5663c5a753081f5870e0ca5a90445883aeb
Wordpress Stackexchange Q: Default .htaccess file for WordPress? My .htaccess files are intercepting WordPress' .htaccess file. Which modules and which settings (specified by .htaccess) are required for WordPress to work? In other words, where can I find WordPress' default .htaccess file? A: WordPress does not contain .htaccess in file form. The rules are written into file by save_mod_rewrite_rules() function and are generated by $wp_rewrite->mod_rewrite_rules(). Note that multisite installation has different (more complex) rules and seems to be handled differently.
Q: Default .htaccess file for WordPress? My .htaccess files are intercepting WordPress' .htaccess file. Which modules and which settings (specified by .htaccess) are required for WordPress to work? In other words, where can I find WordPress' default .htaccess file? A: WordPress does not contain .htaccess in file form. The rules are written into file by save_mod_rewrite_rules() function and are generated by $wp_rewrite->mod_rewrite_rules(). Note that multisite installation has different (more complex) rules and seems to be handled differently. A: Here is the default code for that file. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress you can check it here for default htaccess file. http://codex.wordpress.org/Using_Permalinks. Thanks. I hope it helps little. A: Use the latest version of default .htaccess https://wordpress.org/support/article/htaccess/. A: Use the Freenode's #wordpress to find the appropriate documentation, usually in the /topic. There I found the key Class WP_Rewrite here, the official wordpress.org is at the best misleading and marketing. Anyway, do not mix Apache's rewrite rules with WP's rewrite rules although the naming of WP is probably from Apache's equivalent. The WP_Rewrite API states You can add rules to trigger your page view and processing using this component. The full functionality of a front controller does not exist, meaning you can't define how the template files load based on the rewrite rules. so you must use the API to do the changes, not fully sure what it means but I think it means you cannot trust in your hard-coded .htaccess -files -- things may change even with different WD -versions! So use the API. intercepting The code here has some conditions if the .htaccess -file exists -- not 100% of their inferences because not well-documented and cannot understand the naming there but the central message is probably that the safe way to maintain the rewrite rules is to use the WP_Rewrite API, WP may change in the future. For example, a simple Apache-rewrite RewriteRule ^hello$ Layouts/hello.html [NC,L] is apparently something like add_rewrite("^hello$", "Layouts/hello.html"), haven't tested but tried to follow the API below: add_rewrite_rule (line 19) Add a straight rewrite rule. see: WP_Rewrite::add_rule() for long description. since: 2.1.0 void add_rewrite_rule (string $regex, string $redirect, [string $after = 'bottom']) string $regex: Regular Expression to match request against. string $redirect: Page to redirect to. string $after: Optional, default is 'bottom'. Where to add rule, can also be 'top'. Related * *http://codex.wordpress.org/Rewrite_API/add_rewrite_rule *http://pmg.co/a-mostly-complete-guide-to-the-wordpress-rewrite-api *Thanks to toscho for assisting here, some small-talk in chat.
wordpress
{ "language": "en", "length": 420, "provenance": "stackexchange_00019.jsonl.gz:418155", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45898" }
[ 0.0321044921875, -0.0154571533203125, -0.0005578994750976562, -0.0145416259765625, -0.00856781005859375, -0.033050537109375, 0.039093017578125, -0.01343536376953125, -0.0584716796875, 0.0036411285400390625, -0.0419921875, 0.00959014892578125, -0.0124053955078125, -0.019378662109375, 0.038909912109375, -0.05194091796875, 0.026458740234375, -0.01190185546875, 0.007358551025390625, -0.006900787353515625, 0.006137847900390625, 0.01580810546875, 0.0091400146484375, 0.06280517578125, 0.0019140243530273438, -0.01318359375, 0.07696533203125, -0.033905029296875, 0.0001519918441772461, -0.031707763671875, 0.016876220703125, 0.019561767578125, 0.03668212890625, 0.03240966796875, -0.07464599609375, -0.0224761962890625, -0.03814697265625, 0.0213775634765625, -0.0081634521484375, 0.01904296875, 0.0028438568115234375, 0.00620269775390625, 0.07244873046875, 0.008880615234375, 0.01427459716796875, -0.06646728515625, 0.023681640625, -0.050689697265625, 0.04730224609375, -0.042144775390625, -0.0255279541015625, 0.0264129638671875, -0.01226806640625, -0.049896240234375, -0.0212249755859375, -0.007717132568359375, 0.061737060546875, -0.0018377304077148438, 0.01418304443359375, -0.08477783203125, -0.0645751953125, 0.0284881591796875, 0.036590576171875, 0.048065185546875, 0.0018281936645507812, -0.001979827880859375, -0.005542755126953125, 0.03717041015625, -0.033843994140625, 0.009918212890625, 0.03790283203125, -0.0232391357421875, 0.004917144775390625, -0.033447265625, 0.0158538818359375, 0.016448974609375, -0.01885986328125, -0.0048980712890625, 0.01363372802734375, 0.0149688720703125, 0.01354217529296875, -0.054534912109375, -0.0228271484375, -0.033416748046875, 0.03656005859375, 0.0050048828125, 0.0119171142578125, -0.0086212158203125, -0.01465606689453125, -0.0038013458251953125, -0.0237579345703125, 0.005367279052734375, -0.03143310546875, 0.005115509033203125, -0.0173492431640625, -0.00524139404296875, 0.0223388671875, 0.036376953125, 0.0007443428039550781, 0.0026702880859375, 0.01337432861328125, -0.037384033203125, 0.024993896484375, -0.02899169921875, 0.012603759765625, 0.032135009765625, 0.0014619827270507812, 0.029510498046875, 0.01195526123046875, 0.0195159912109375, -0.01544952392578125, -0.0222625732421875, 0.0008544921875, -0.0275421142578125, -0.0297088623046875, 0.01555633544921875, -0.0268096923828125, 0.00635528564453125, 0.0019321441650390625, -0.01126861572265625, -0.0027713775634765625, 0.019866943359375, -0.0020771026611328125, -0.020843505859375, -0.0225372314453125, -0.02301025390625, -0.0206451416015625, -0.0144500732421875, -0.0294647216796875, 0.0185699462890625, -0.01508331298828125, -0.00044345855712890625, -0.007793426513671875, 0.0258026123046875, -0.01296234130859375, -0.01287841796875, 0.052154541015625, -0.0188751220703125, -0.0155029296875, 0.027923583984375, -0.007183074951171875, -0.0240020751953125, -0.0111846923828125, -0.024932861328125, -0.004032135009765625, 0.0209503173828125, 0.03411865234375, 0.016876220703125, -0.03887939453125, -0.05621337890625, -0.0016450881958007812, -0.007564544677734375, 0.049285888671875, 0.0190277099609375, -0.00489044189453125, -0.024017333984375, 0.034149169921875, -0.033447265625, -0.04534912109375, -0.03399658203125, -0.0192718505859375, -0.0137176513671875, 0.0268096923828125, 0.0167083740234375, -0.0132598876953125, 0.0272216796875, -0.018463134765625, -0.01232147216796875, 0.0302734375, -0.01300811767578125, 0.00440216064453125, -0.038818359375, -0.0012340545654296875, 0.005741119384765625, 0.0105438232421875, 0.0328369140625, -0.01456451416015625, -0.0218658447265625, 0.0099334716796875, 0.09490966796875, 0.040740966796875, -0.0157928466796875, -0.03033447265625, 0.04534912109375, -0.060211181640625, 0.0633544921875, 0.0015687942504882812, 0.07958984375, 0.005771636962890625, 0.00981903076171875, 0.01934814453125, 0.02471923828125, -0.0501708984375, 0.0240936279296875, -0.01235198974609375, -0.015533447265625, -0.004627227783203125, 0.01074981689453125, -0.021087646484375, -0.01513671875, -0.044158935546875, -0.015289306640625, -0.002716064453125, 0.0051727294921875, -0.0215911865234375, -0.0268707275390625, -0.0132904052734375, 0.0261077880859375, 0.0225982666015625, -0.0003230571746826172, 0.0040740966796875, -0.003032684326171875, 0.00045299530029296875, -0.0555419921875, -0.042694091796875, 0.049560546875, -0.022918701171875, 0.06829833984375, 0.01032257080078125, 0.058837890625, -0.01560211181640625, -0.04486083984375, 0.00580596923828125, -0.037078857421875, -0.00461578369140625, -0.007709503173828125, -0.032318115234375, -0.00971221923828125, -0.005756378173828125, 0.00007587671279907227, 0.002796173095703125, 0.0185699462890625, 0.0181884765625, 0.0150299072265625, -0.049224853515625, -0.02423095703125, -0.0657958984375, -0.06390380859375, 0.0041656494140625, 0.0738525390625, 0.022552490234375, 0.0389404296875, -0.0195465087890625, -0.0040283203125, 0.039703369140625, -0.0164947509765625, 0.00955963134765625, -0.01049041748046875, 0.04437255859375, 0.03778076171875, -0.004207611083984375, -0.033416748046875, 0.0271759033203125, -0.055816650390625, 0.01396942138671875, 0.0256500244140625, -0.0413818359375, -0.053131103515625, -0.02264404296875, 0.03802490234375, -0.00583648681640625, -0.0174713134765625, 0.007724761962890625, -0.0172119140625, 0.0148162841796875, 0.0275115966796875, 0.0269927978515625, 0.0247802734375, -0.017547607421875, 0.029571533203125, -0.006351470947265625, -0.04864501953125, -0.00041747093200683594, 0.033599853515625, 0.056060791015625, 0.01538848876953125, -0.0211181640625, -0.02447509765625, 0.0204925537109375, 0.0323486328125, -0.031707763671875, -0.01129913330078125, -0.05267333984375, -0.0095367431640625, 0.0106658935546875, -0.060272216796875, -0.00688934326171875, -0.0082855224609375, 0.043975830078125, 0.0174102783203125, 0.026519775390625, 0.00262451171875, -0.0169219970703125, 0.03570556640625, -0.0032062530517578125, -0.04046630859375, -0.0092926025390625, -0.047882080078125, 0.05352783203125, -0.0443115234375, 0.009185791015625, 0.07208251953125, -0.0236358642578125, 0.032928466796875, 0.01160430908203125, 0.031951904296875, 0.035858154296875, -0.008331298828125, -0.02191162109375, 0.0312347412109375, -0.0802001953125, -0.04486083984375, -0.004985809326171875, -0.005832672119140625, -0.03369140625, -0.02996826171875, -0.04461669921875, -0.0099639892578125, -0.084716796875, -0.0280609130859375, -0.04681396484375, -0.0169830322265625, -0.0074615478515625, -0.019744873046875, 0.002010345458984375, 0.0014667510986328125, -0.022430419921875, 0.00696563720703125, -0.01284027099609375, -0.0280609130859375, -0.06793212890625, -0.08203125, -0.079345703125, -0.04034423828125, -0.016693115234375, 0.0178680419921875, -0.004177093505859375, 0.0499267578125, -0.00786590576171875, -0.03704833984375, -0.0295257568359375, -0.047088623046875, -0.008209228515625, -0.0133056640625, -0.031402587890625, -0.0162811279296875, 0.010162353515625, -0.0030155181884765625, 0.048126220703125, 0.007808685302734375, 0.01198577880859375, 0.0020961761474609375, -0.01111602783203125, -0.048828125, -0.025054931640625, 0.03179931640625, 0.01039886474609375, -0.0777587890625, -0.005840301513671875, -0.08563232421875, -0.0008025169372558594, -0.0019254684448242188, -0.017364501953125, 0.0215301513671875, 0.005870819091796875, -0.01953125, -0.006092071533203125, -0.0019464492797851562, 0.01064300537109375, -0.0056610107421875, 0.0171661376953125, -0.0421142578125, 0.047821044921875, -0.003543853759765625, 0.03277587890625, -0.035858154296875, 0.0223846435546875, -0.02105712890625, 0.0153656005859375, 0.00946807861328125, -0.0119781494140625, -0.013275146484375, 0.01486968994140625, -0.04931640625, -0.04327392578125, 0.03564453125, -0.0386962890625, 0.031158447265625, -0.06390380859375, -0.01177978515625, -0.035247802734375, 0.088134765625, 0.0222625732421875, -0.0181732177734375, 0.00737762451171875, 0.01454925537109375, -0.04925537109375, -0.050567626953125, -0.0197296142578125, -0.012115478515625, -0.0841064453125, 0.006618499755859375, -0.011322021484375, -0.023162841796875, -0.0032711029052734375, -0.0562744140625, -0.040924072265625, -0.06744384765625, 0.007419586181640625, -0.040191650390625, 0.0018453598022460938, 0.030303955078125, -0.006900787353515625, -0.0007376670837402344, 0.004581451416015625, -0.04931640625, -0.05511474609375, -0.01061248779296875, -0.033935546875, 0.03778076171875, 0.0249786376953125, -0.012298583984375, 0.0027751922607421875, 0.035400390625, -0.01023101806640625, 0.01513671875, -0.00782012939453125, -0.0174713134765625, 0.019012451171875, 0.0176544189453125, 0.01305389404296875, -0.011749267578125, -0.008880615234375, -0.01461029052734375, -0.03350830078125, 0.0089569091796875, -0.006710052490234375, 0.0130462646484375, 0.03192138671875, -0.0222015380859375, -0.022308349609375, -0.00527191162109375, -0.018463134765625, 0.01629638671875, -0.02252197265625, 0.007556915283203125, -0.00794219970703125, -0.036376953125, 0.056121826171875, -0.0250244140625, -0.01222991943359375, 0.004543304443359375, 0.05078125, 0.001705169677734375, -0.0243682861328125, -0.0283966064453125, -0.002117156982421875, 0.0212860107421875, 0.0170440673828125, 0.056365966796875, 0.01392364501953125, 0.01280975341796875, 0.03802490234375, 0.0023097991943359375, 0.00341796875, -0.040618896484375, 0.041015625, 0.0007510185241699219, 0.0029296875, 0.00028634071350097656, -0.0293121337890625, 0.04168701171875, 0.0278167724609375, 0.028167724609375, -0.0074310302734375, 0.03997802734375, 0.0141143798828125, -0.01055908203125, -0.0211029052734375, -0.0195159912109375, -0.006778717041015625, -0.0015954971313476562, 0.01013946533203125, 0.044219970703125, 0.006298065185546875, 0.0111846923828125, 0.0253143310546875, 0.025634765625, 0.0007824897766113281, 0.0029468536376953125, 0.0019626617431640625, 0.022979736328125, 0.0189056396484375, 0.035858154296875, 0.009674072265625, -0.033233642578125, 0.00325775146484375, 0.0246734619140625, -0.0228424072265625, -0.045379638671875, 0.0131683349609375, -0.0096435546875, -0.0307159423828125, 0.06243896484375, -0.019866943359375, 0.0293121337890625, 0.024261474609375, -0.0445556640625, -0.0018663406372070312, -0.0213470458984375, -0.01403045654296875, -0.05963134765625, 0.039154052734375, -0.01593017578125, 0.0192108154296875, 0.01934814453125, 0.07666015625, -0.021820068359375, 0.05401611328125, -0.0021724700927734375, 0.02459716796875, 0.0185394287109375, 0.0223388671875, -0.0015630722045898438, 0.0198822021484375, 0.0122528076171875, -0.01471710205078125, 0.0237274169921875, -0.04827880859375, -0.0262451171875, 0.030517578125, 0.05010986328125, -0.00560760498046875, -0.0172882080078125, 0.00811767578125, -0.019989013671875, 0.0025196075439453125, -0.01325225830078125, -0.052947998046875, -0.044647216796875, -0.0015087127685546875, 0.00594329833984375, 0.02679443359375, -0.02899169921875, -0.036651611328125, 0.053924560546875, -0.004913330078125, 0.03045654296875, -0.0037403106689453125, -0.0364990234375, 0.004940032958984375, 0.02301025390625, 0.04632568359375, 0.0215911865234375, -0.01953125, -0.0704345703125, -0.027801513671875, -0.0292510986328125, -0.0002956390380859375, 0.05841064453125, -0.005519866943359375, 0.03912353515625, 0.0032482147216796875, -0.056732177734375, 0.01134490966796875, 0.0232696533203125, 0.045135498046875, 0.02349853515625, -0.01806640625, -0.0197906494140625, -0.07415771484375, -0.030548095703125, -0.01209259033203125, -0.016204833984375, -0.030914306640625, 0.0096588134765625, -0.007640838623046875, -0.0169677734375, 0.007244110107421875, 0.049530029296875, -0.0231781005859375, 0.060638427734375, 0.002147674560546875, -0.00478363037109375, -0.037994384765625, 0.090576171875, -0.0019025802612304688, 0.0273895263671875, -0.00432586669921875, 0.047210693359375, 0.0029697418212890625, -0.01806640625, 0.028411865234375, -0.01338958740234375, -0.0179901123046875, -0.025909423828125, -0.016937255859375, -0.01108551025390625, 0.03564453125, -0.007354736328125, -0.0035076141357421875, -0.0114593505859375, -0.007568359375, -0.0229644775390625, 0.0182342529296875, -0.0225067138671875, -0.019866943359375, -0.00016736984252929688, 0.006076812744140625, 0.06781005859375, -0.037628173828125, -0.052337646484375, 0.002323150634765625, -0.01235198974609375, 0.0116119384765625, 0.048431396484375, -0.072021484375, 0.05908203125, 0.09814453125, 0.0158538818359375, 0.0697021484375, 0.019378662109375, 0.022125244140625, 0.02880859375, 0.01371002197265625, -0.034576416015625, -0.056182861328125, 0.029815673828125, 0.02191162109375, -0.008148193359375, 0.048187255859375, -0.0014286041259765625, 0.0095062255859375, 0.06939697265625, 0.0693359375, -0.07940673828125, 0.0011701583862304688, -0.0006036758422851562, -0.030517578125, 0.01509857177734375, 0.0175018310546875, -0.0323486328125, -0.034576416015625, -0.0003452301025390625, -0.0174713134765625, -0.026214599609375, -0.01195526123046875, 0.03546142578125, 0.00665283203125, 0.0009222030639648438, 0.0625, 0.0135040283203125, 0.01983642578125, -0.037353515625, -0.01422119140625, 0.0110321044921875, -0.0029430389404296875, 0.0250244140625, -0.007183074951171875, 0.003719329833984375, -0.01425933837890625, 0.026885986328125, -0.015045166015625, -0.01523590087890625, -0.0007624626159667969, -0.025665283203125, 0.01032257080078125, 0.045318603515625, -0.037353515625, 0.044281005859375, 0.0084991455078125, 0.00028014183044433594, 0.00009119510650634766, -0.0294952392578125, 0.0201263427734375, 0.03662109375, -0.0005488395690917969, 0.0276336669921875, 0.01837158203125, -0.053253173828125, -0.006717681884765625, -0.0574951171875, 0.048370361328125, -0.07373046875, 0.01678466796875, 0.01084136962890625, 0.045074462890625, 0.0255279541015625, -0.0101318359375, 0.01416778564453125, -0.01291656494140625, 0.01404571533203125, -0.01306915283203125, 0.00606536865234375, 0.007747650146484375, -0.02716064453125, -0.043121337890625, 0.0361328125, -0.0006098747253417969, 0.010467529296875, 0.0283966064453125, 0.01078033447265625, -0.0076904296875, 0.004489898681640625, -0.0166778564453125, 0.0300445556640625, 0.00470733642578125, 0.046417236328125, -0.0242919921875, -0.02032470703125, 0.017578125, 0.07177734375, 0.0206298828125, 0.004787445068359375, -0.041473388671875, 0.0128173828125, 0.05780029296875, 0.0369873046875, 0.014617919921875, 0.0260162353515625, -0.01000213623046875, -0.00817108154296875, -0.0175933837890625, -0.0194244384765625, -0.0024471282958984375, -0.024566650390625, -0.031951904296875, 0.0160980224609375, 0.01172637939453125, 0.005077362060546875, 0.0259552001953125, 0.02349853515625, -0.0614013671875, 0.029693603515625, 0.0478515625, -0.032470703125, -0.021881103515625, 0.056732177734375, 0.0284271240234375, -0.01322174072265625, -0.00537872314453125, -0.034454345703125, 0.059051513671875, 0.0025920867919921875, 0.010162353515625, 0.045623779296875, 0.020111083984375, 0.01116943359375, -0.01971435546875, 0.004932403564453125, 0.01309967041015625, -0.033782958984375, 0.008758544921875, 0.01502227783203125, 0.0152130126953125, -0.0171051025390625, 0.0161285400390625, -0.0018205642700195312, 0.01123809814453125, -0.018524169921875, -0.0163726806640625, 0.0103302001953125, -0.007663726806640625, 0.017364501953125, -0.02703857421875, 0.015777587890625, 0.012603759765625, -0.0078277587890625, -0.0160675048828125, -0.01129150390625, 0.01800537109375, 0.0060272216796875, -0.01299285888671875, -0.01507568359375, 0.0135345458984375, 0.01251983642578125, -0.0240325927734375, -0.00638580322265625, 0.016448974609375, 0.038330078125, 0.01009368896484375, 0.039154052734375, -0.01349639892578125, -0.0218353271484375, 0.0032711029052734375, 0.05615234375, -0.03839111328125, 0.01235198974609375, -0.0322265625, -0.06890869140625, -0.020355224609375, 0.052398681640625, 0.036529541015625, 0.0576171875, 0.052093505859375, 0.018798828125, -0.01513671875, 0.009002685546875, 0.0200958251953125, -0.04638671875, 0.0219268798828125, -0.03302001953125, 0.06207275390625, 0.01166534423828125, -0.01467132568359375, -0.0063629150390625, 0.0340576171875, 0.035491943359375, -0.0263214111328125, -0.0010690689086914062, 0.01378631591796875, -0.0274505615234375, 0.050079345703125, -0.00026917457580566406, 0.0196380615234375, -0.00879669189453125, -0.040679931640625, 0.002040863037109375, -0.00466156005859375, -0.050933837890625, 0.0187530517578125, 0.034576416015625, 0.0036468505859375, -0.0203704833984375, -0.026031494140625, 0.0127716064453125, 0.01532745361328125, -0.035247802734375, 0.005748748779296875, -0.0284423828125, 0.00732421875, -0.01349639892578125, -0.068603515625, -0.048095703125, -0.01084136962890625, 0.026336669921875, -0.005706787109375, 0.09014892578125, -0.0290679931640625, -0.01157379150390625, -0.0068817138671875, 0.01390838623046875, 0.01000213623046875, 0.00034999847412109375, 0.0011739730834960938, 0.0238800048828125, 0.0063018798828125, -0.023895263671875, -0.05181884765625, 0.006008148193359375, 0.023040771484375, -0.050262451171875, 0.0191192626953125, 0.007904052734375, 0.00978851318359375, -0.0401611328125, 0.01158905029296875, -0.044097900390625, -0.115966796875, -0.10089111328125, 0.0360107421875, -0.007411956787109375, 0.00853729248046875, -0.045745849609375, 0.031463623046875, -0.0002589225769042969, -0.0132904052734375, 0.0032100677490234375, -0.027252197265625, 0.0240631103515625, 0.034210205078125, -0.03765869140625, -0.0408935546875, 0.00045037269592285156, -0.01192474365234375, -0.01499176025390625, 0.0238494873046875, 0.00496673583984375, -0.0095672607421875, -0.0396728515625, 0.0003216266632080078, -0.01351165771484375, 0.03070068359375, -0.0204620361328125, -0.0027446746826171875, -0.018798828125, 0.009674072265625, 0.0408935546875, -0.002803802490234375, -0.0090789794921875, -0.01337432861328125, -0.031768798828125, 0.01904296875, -0.044830322265625, -0.028228759765625, -0.06683349609375, 0.0101165771484375, 0.03240966796875, -0.0289459228515625, -0.01776123046875, 0.001453399658203125, -0.0411376953125, 0.0830078125, -0.049713134765625, -0.006023406982421875, -0.0091094970703125, -0.0036106109619140625, -0.045928955078125, -0.007320404052734375, -0.0304107666015625, -0.0016574859619140625, -0.0201416015625, 0.0171661376953125, 0.039642333984375, -0.014312744140625, 0.0294952392578125, 0.00775146484375, 0.0064849853515625, 0.06817626953125, -0.049591064453125, -0.0240936279296875, 0.003284454345703125, 0.0218658447265625, -0.040130615234375, -0.042022705078125, 0.0121612548828125, -0.027130126953125, -0.00795745849609375, -0.0260467529296875, 0.002857208251953125, 0.0214691162109375, -0.050872802734375, -0.08587646484375, 0.07098388671875, -0.038787841796875, -0.032806396484375, -0.032501220703125, -0.016357421875, -0.01537322998046875, 0.01538848876953125, -0.01320648193359375, -0.018341064453125, -0.01751708984375, 0.03656005859375, 0.0235137939453125, 0.0193939208984375, -0.00041675567626953125, 0.020843505859375, 0.0007371902465820312, 0.038848876953125, 0.034210205078125, 0.0167999267578125, 0.043304443359375, -0.02581787109375, 0.05975341796875, 0.10870361328125, 0.01230621337890625, -0.0018701553344726562, -0.032501220703125, -0.11761474609375, 0.0216827392578125, 0.0018520355224609375, -0.01959228515625, -0.036041259765625, -0.0207977294921875, 0.01270294189453125, -0.006504058837890625, 0.02557373046875, -0.0006341934204101562, -0.033782958984375, -0.039154052734375, -0.0006318092346191406, 0.0250701904296875, -0.0283355712890625, 0.01201629638671875, 0.0161285400390625, -0.02154541015625, -0.017364501953125, 0.0018558502197265625, -0.053253173828125, 0.01525115966796875, -0.006072998046875, -0.01546478271484375, -0.0279998779296875, -0.01029205322265625, 0.06982421875, -0.035125732421875, 0.021270751953125, -0.0017461776733398438, 0.02252197265625, 0.04638671875, -0.0012979507446289062, 0.0083160400390625, 0.06390380859375, -0.01873779296875, -0.0144195556640625, 0.038787841796875, -0.0208892822265625, 0.0070343017578125, 0.004482269287109375, -0.005229949951171875, 0.038726806640625, 0.0120086669921875, 0.05450439453125, -0.024749755859375, 0.046875, 0.006671905517578125, 0.0288238525390625, 0.002132415771484375, -0.046539306640625, -0.029754638671875, 0.06298828125, -0.00916290283203125, -0.018524169921875, 0.0168304443359375, -0.03448486328125, 0.01073455810546875, 0.0108795166015625, 0.032257080078125, -0.00373077392578125, -0.006801605224609375, -0.047271728515625, 0.007091522216796875, 0.0057373046875 ]
342b976886554a168cd02c1ff824b6c4e933394a
Wordpress Stackexchange Q: Adding extra authentication field in login page I am going to enhance my WordPress authentication page. My idea is that simply adding an extra field into the login page. The extra field will require user to enter personal identification code (4 to 8 digit). I have changed the login page layout in wp-login.php and added extra column for storing personal identification code in MySQL database. However, I don't know which part of coding is used to verify the password as I want to refer to the existing coding. How can I effecively do that? A: This answer for reference purpose only. You should not edit core files WordPress files or else you will lose your modifications after an update. Below is how WordPress handles it's login password verification process as seen on line 250 of the /wp-includes/class-phpass.php file: function CheckPassword($password, $stored_hash) { $hash = $this->crypt_private($password, $stored_hash); if ($hash[0] == '*') $hash = crypt($password, $stored_hash); return $hash == $stored_hash; }
Q: Adding extra authentication field in login page I am going to enhance my WordPress authentication page. My idea is that simply adding an extra field into the login page. The extra field will require user to enter personal identification code (4 to 8 digit). I have changed the login page layout in wp-login.php and added extra column for storing personal identification code in MySQL database. However, I don't know which part of coding is used to verify the password as I want to refer to the existing coding. How can I effecively do that? A: This answer for reference purpose only. You should not edit core files WordPress files or else you will lose your modifications after an update. Below is how WordPress handles it's login password verification process as seen on line 250 of the /wp-includes/class-phpass.php file: function CheckPassword($password, $stored_hash) { $hash = $this->crypt_private($password, $stored_hash); if ($hash[0] == '*') $hash = crypt($password, $stored_hash); return $hash == $stored_hash; } A: First of all, I would advise against editing the core files as it will be overwritten when you next update WordPress. Also, you should update WordPress, because it will often include security updates. (It's recently been reported that there has been a spate of attacks on sites using outdated WordPress versions) In order to achieve what you actually want to do, I recommend you use hooks as the best way to edit WordPress. As such, to create an extra field on your login page, you may use the login_form action hook: add_action('login_form','my_added_login_field'); function my_added_login_field(){ //Output your HTML ?> <p> <label for="my_extra_field">My extra field<br> <input type="text" tabindex="20" size="20" value="" class="input" id="my_extra_field" name="my_extra_field_name"></label> </p> <?php } Next we need to verify that what they entered into the field matched what you have stored. In the following code, I've assumed you've stored the identification code as a user meta value with meta key my_ident_code. You should do this rather than create your own column!. See the Codex pages for * *add_user_meta function *update_user_meta function *get_user_meta function To verify a users you can use the authenticate filter. This passes the entered username and password. If the identification code is correct, return null to allow WordPress to verify the password and username. If it is not correct, remove the WordPress' authentication and return an error. This forces the user back to the log-in page, where they'll see the error displayed. add_filter( 'authenticate', 'my_custom_authenticate', 10, 3 ); function my_custom_authenticate( $user, $username, $password ){ //Get POSTED value $my_value = $_POST['my_extra_field_name']; //Get user object $user = get_user_by('login', $username ); //Get stored value $stored_value = get_user_meta($user->ID, 'my_ident_code', true); if(!$user || empty($my_value) || $my_value !=$stored_value){ //User note found, or no value entered or doesn't match stored value - don't proceed. remove_action('authenticate', 'wp_authenticate_username_password', 20); remove_action('authenticate', 'wp_authenticate_email_password', 20); //Create an error to return to user return new WP_Error( 'denied', __("<strong>ERROR</strong>: You're unique identifier was invalid.") ); } //Make sure you return null return null; } A: If editing all that code seems a little daunting there is a good plugin for this: Cimy Extra Fields Or you could consider using Theme My login which can do this, but it takes some coding. It also adds quite a bit of extra functionality. You can happily use these two plugins together.
wordpress
{ "language": "en", "length": 538, "provenance": "stackexchange_00019.jsonl.gz:418156", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45900" }
[ 0.06201171875, 0.0186614990234375, -0.0176849365234375, -0.032073974609375, 0.046539306640625, -0.0421142578125, 0.061981201171875, -0.021881103515625, -0.07659912109375, 0.02081298828125, -0.01001739501953125, 0.06573486328125, -0.053436279296875, -0.017303466796875, 0.035064697265625, -0.041351318359375, 0.006999969482421875, -0.0026531219482421875, 0.025543212890625, -0.00455474853515625, 0.00417327880859375, -0.00881195068359375, 0.0037021636962890625, -0.042999267578125, 0.0244903564453125, -0.026153564453125, 0.08428955078125, -0.03302001953125, 0.047760009765625, 0.002498626708984375, 0.0260772705078125, -0.057403564453125, 0.0218353271484375, 0.0209808349609375, -0.03082275390625, -0.008087158203125, 0.0024242401123046875, 0.0178680419921875, -0.016082763671875, 0.0457763671875, 0.0447998046875, -0.0205841064453125, 0.01160430908203125, 0.0127716064453125, -0.0225677490234375, -0.0224761962890625, 0.04132080078125, -0.007396697998046875, 0.0035915374755859375, 0.007541656494140625, 0.0036716461181640625, 0.01334381103515625, 0.0149383544921875, 0.0168304443359375, -0.0183868408203125, 0.002109527587890625, -0.0258331298828125, -0.033172607421875, 0.040802001953125, 0.059173583984375, -0.0017576217651367188, -0.047027587890625, -0.005115509033203125, -0.08099365234375, -0.043121337890625, -0.011322021484375, -0.0404052734375, 0.006053924560546875, -0.001739501953125, -0.04266357421875, 0.0212860107421875, -0.0159454345703125, -0.0165557861328125, -0.04559326171875, -0.005634307861328125, 0.062164306640625, 0.01161956787109375, -0.00482177734375, -0.0173492431640625, 0.0033817291259765625, -0.0178985595703125, 0.0021457672119140625, -0.055450439453125, -0.043914794921875, 0.01611328125, -0.02117919921875, -0.01611328125, 0.00030493736267089844, -0.00969696044921875, -0.00727081298828125, -0.0190582275390625, -0.0831298828125, 0.02606201171875, 0.020263671875, -0.011627197265625, -0.027130126953125, -0.013885498046875, 0.01413726806640625, -0.0017232894897460938, 0.037994384765625, -0.01262664794921875, -0.032867431640625, 0.0411376953125, -0.0224151611328125, -0.01983642578125, 0.0341796875, 0.0236968994140625, -0.0115203857421875, -0.0262451171875, 0.00528717041015625, -0.01654052734375, -0.038726806640625, -0.031585693359375, -0.059051513671875, -0.01512908935546875, 0.07757568359375, 0.02191162109375, -0.041778564453125, 0.004077911376953125, -0.01495361328125, -0.0328369140625, -0.01085662841796875, -0.01837158203125, -0.0172119140625, 0.01415252685546875, -0.02459716796875, -0.0204010009765625, 0.029937744140625, 0.00568389892578125, 0.0277862548828125, -0.03497314453125, 0.019927978515625, 0.041046142578125, 0.0012578964233398438, -0.0145263671875, -0.026153564453125, 0.01055908203125, -0.002079010009765625, -0.0103302001953125, 0.047607421875, -0.0477294921875, -0.057861328125, 0.035491943359375, -0.009674072265625, 0.009857177734375, 0.0301666259765625, 0.024322509765625, 0.01145172119140625, -0.00952911376953125, -0.039703369140625, 0.022247314453125, -0.03167724609375, -0.018096923828125, 0.0228729248046875, 0.032470703125, 0.041778564453125, -0.004283905029296875, 0.0188751220703125, -0.01090240478515625, 0.036895751953125, 0.048828125, -0.0204620361328125, -0.038818359375, -0.017486572265625, -0.039642333984375, 0.0055694580078125, -0.046966552734375, -0.00839996337890625, 0.035858154296875, -0.0028743743896484375, 0.058074951171875, -0.035797119140625, 0.023773193359375, 0.0209503173828125, 0.0011339187622070312, 0.0231170654296875, -0.014984130859375, 0.0718994140625, 0.0306396484375, 0.0311431884765625, 0.021697998046875, -0.0206451416015625, 0.129150390625, -0.0302581787109375, -0.0389404296875, 0.0198211669921875, 0.0032825469970703125, 0.06005859375, 0.01255035400390625, 0.03387451171875, 0.0002491474151611328, -0.0034427642822265625, -0.040924072265625, 0.00730133056640625, -0.028961181640625, -0.006916046142578125, 0.0179290771484375, 0.0247344970703125, -0.0186920166015625, 0.0164794921875, 0.0214691162109375, 0.006526947021484375, -0.00616455078125, -0.0205841064453125, -0.002910614013671875, -0.033599853515625, 0.008697509765625, 0.0162353515625, -0.0169219970703125, 0.017120361328125, 0.027130126953125, -0.01012420654296875, -0.0304718017578125, -0.0015163421630859375, -0.0245819091796875, -0.039306640625, -0.02978515625, 0.043548583984375, 0.002246856689453125, 0.03778076171875, 0.0025157928466796875, -0.0271148681640625, -0.0007371902465820312, -0.0413818359375, 0.041778564453125, -0.03143310546875, -0.0101318359375, -0.0439453125, 0.037139892578125, -0.0220489501953125, -0.000522613525390625, 0.04656982421875, 0.01447296142578125, 0.014312744140625, -0.037139892578125, -0.016204833984375, -0.0374755859375, -0.052154541015625, -0.0032196044921875, 0.045623779296875, 0.0635986328125, 0.01337432861328125, 0.01221466064453125, -0.0208282470703125, 0.0261383056640625, -0.041229248046875, 0.0278472900390625, -0.032989501953125, 0.007007598876953125, 0.05224609375, -0.0177459716796875, -0.005970001220703125, 0.01377105712890625, -0.03973388671875, -0.037353515625, 0.0428466796875, -0.0206756591796875, -0.00615692138671875, -0.030609130859375, 0.02886962890625, -0.00848388671875, -0.06719970703125, -0.016845703125, -0.032379150390625, -0.01080322265625, -0.00030493736267089844, -0.0004279613494873047, -0.01013946533203125, -0.0285797119140625, 0.0050201416015625, 0.033447265625, -0.0163116455078125, -0.0115509033203125, -0.03826904296875, -0.007781982421875, 0.0247344970703125, -0.0292205810546875, 0.0257415771484375, -0.01374053955078125, -0.0251617431640625, -0.030426025390625, -0.0235137939453125, -0.061065673828125, -0.006847381591796875, 0.00003337860107421875, -0.02557373046875, 0.0072479248046875, 0.01395416259765625, -0.036468505859375, -0.042755126953125, 0.014862060546875, -0.00014281272888183594, -0.05078125, 0.0302276611328125, -0.0301513671875, -0.0311431884765625, -0.021209716796875, -0.0205078125, 0.050933837890625, -0.07666015625, -0.0156707763671875, 0.037689208984375, -0.062103271484375, 0.0296173095703125, -0.01361083984375, -0.0301971435546875, -0.04022216796875, 0.020660400390625, -0.005199432373046875, -0.054229736328125, 0.005092620849609375, 0.05615234375, 0.02288818359375, -0.00472259521484375, 0.031280517578125, -0.01763916015625, 0.008209228515625, 0.0170135498046875, -0.03521728515625, -0.0628662109375, -0.0748291015625, -0.05914306640625, -0.028594970703125, 0.017578125, -0.0263824462890625, 0.0380859375, 0.044891357421875, 0.01041412353515625, -0.027984619140625, -0.018402099609375, -0.023193359375, -0.062225341796875, -0.05255126953125, -0.018035888671875, -0.00634765625, 0.00732421875, -0.00043272972106933594, 0.01134490966796875, -0.006633758544921875, -0.0187835693359375, -0.018310546875, -0.0228271484375, 0.00897216796875, -0.0408935546875, -0.061187744140625, -0.024810791015625, 0.031402587890625, -0.0247039794921875, -0.018707275390625, -0.030792236328125, 0.07415771484375, -0.0159912109375, -0.022705078125, -0.01177978515625, -0.0064544677734375, 0.036834716796875, 0.01556396484375, -0.001720428466796875, 0.02459716796875, -0.035308837890625, 0.0177459716796875, -0.00418853759765625, -0.013153076171875, -0.01178741455078125, 0.0013856887817382812, -0.03497314453125, -0.006130218505859375, -0.017242431640625, -0.0184326171875, -0.0033721923828125, -0.001293182373046875, -0.011688232421875, 0.0428466796875, -0.01910400390625, -0.0212249755859375, -0.01163482666015625, -0.00238800048828125, -0.048126220703125, -0.017852783203125, -0.02783203125, -0.0206298828125, -0.00331878662109375, -0.025115966796875, 0.0001519918441772461, -0.09747314453125, 0.0675048828125, 0.002685546875, 0.00470733642578125, -0.05511474609375, -0.04058837890625, -0.005126953125, 0.1182861328125, -0.007198333740234375, -0.0177001953125, 0.004833221435546875, 0.01511383056640625, -0.042999267578125, -0.022674560546875, -0.035552978515625, -0.00905609130859375, 0.0007395744323730469, -0.01007080078125, 0.002071380615234375, -0.015899658203125, 0.00795745849609375, -0.0296783447265625, 0.01233673095703125, -0.01446533203125, 0.01308441162109375, 0.0070953369140625, 0.006702423095703125, 0.026824951171875, -0.004352569580078125, 0.0145416259765625, 0.0174560546875, -0.0176239013671875, -0.0699462890625, -0.0093841552734375, -0.0131378173828125, 0.0443115234375, 0.0070648193359375, -0.031494140625, -0.0010089874267578125, 0.04473876953125, -0.0180511474609375, 0.00601959228515625, 0.0018262863159179688, 0.017669677734375, 0.00014221668243408203, 0.01355743408203125, -0.0114288330078125, -0.00782012939453125, 0.0011854171752929688, -0.01983642578125, -0.0180816650390625, -0.044281005859375, -0.04034423828125, -0.033416748046875, 0.00609588623046875, -0.0223846435546875, -0.008056640625, -0.03778076171875, -0.00677490234375, 0.0017137527465820312, 0.0009765625, 0.0010690689086914062, -0.031524658203125, 0.01084136962890625, 0.050750732421875, 0.04364013671875, -0.005695343017578125, -0.01212310791015625, 0.05718994140625, 0.01030731201171875, -0.04595947265625, -0.032958984375, 0.02044677734375, 0.0278167724609375, -0.0028629302978515625, 0.02557373046875, -0.019195556640625, -0.0289764404296875, 0.072265625, -0.0162506103515625, -0.0185089111328125, -0.008453369140625, 0.016265869140625, 0.0136871337890625, -0.025421142578125, -0.007144927978515625, -0.01361846923828125, 0.037628173828125, 0.02984619140625, 0.0201873779296875, -0.01291656494140625, 0.035003662109375, -0.00592803955078125, -0.0012598037719726562, -0.0094451904296875, 0.030029296875, -0.039093017578125, 0.0156097412109375, -0.0516357421875, -0.00933837890625, 0.00861358642578125, -0.009552001953125, -0.0161285400390625, -0.0167083740234375, -0.0254974365234375, -0.031982421875, -0.03204345703125, 0.0123748779296875, -0.0012340545654296875, 0.003215789794921875, -0.0115509033203125, -0.0298309326171875, -0.029144287109375, 0.081787109375, 0.00868988037109375, -0.0482177734375, 0.03863525390625, -0.025848388671875, -0.0025501251220703125, 0.0163421630859375, -0.0252838134765625, 0.023468017578125, -0.041839599609375, -0.02447509765625, 0.016937255859375, -0.048736572265625, -0.05548095703125, -0.035888671875, 0.01148223876953125, -0.0147705078125, 0.0031452178955078125, 0.00322723388671875, 0.04913330078125, -0.0076904296875, 0.02142333984375, -0.008819580078125, 0.038360595703125, 0.09033203125, 0.0007839202880859375, 0.038238525390625, -0.0228729248046875, -0.027984619140625, -0.0187225341796875, -0.0171356201171875, -0.036956787109375, -0.0204315185546875, -0.00150299072265625, 0.043975830078125, 0.00435638427734375, 0.006916046142578125, 0.0101776123046875, 0.003631591796875, 0.0127716064453125, 0.0251617431640625, -0.014801025390625, -0.079345703125, 0.007534027099609375, 0.0011587142944335938, 0.0017232894897460938, -0.056365966796875, -0.011322021484375, 0.019256591796875, -0.037353515625, 0.019439697265625, 0.045745849609375, 0.003971099853515625, -0.005718231201171875, -0.01959228515625, -0.0170135498046875, -0.02862548828125, -0.04132080078125, 0.00916290283203125, -0.0178680419921875, 0.0130157470703125, -0.00907135009765625, -0.0149078369140625, 0.00028252601623535156, 0.0266876220703125, -0.00794219970703125, -0.03924560546875, 0.05706787109375, 0.01422882080078125, 0.0136566162109375, -0.037872314453125, 0.011383056640625, -0.038330078125, -0.0016889572143554688, -0.0287322998046875, 0.00405120849609375, 0.009613037109375, 0.00559234619140625, 0.00861358642578125, -0.004405975341796875, 0.01174163818359375, -0.012969970703125, -0.005565643310546875, -0.031951904296875, 0.01995849609375, 0.01557159423828125, -0.001956939697265625, -0.0144500732421875, 0.0180206298828125, 0.039764404296875, -0.0171356201171875, 0.03375244140625, 0.03192138671875, 0.01251220703125, -0.0286865234375, 0.029510498046875, 0.0011577606201171875, -0.04302978515625, -0.042327880859375, -0.005390167236328125, -0.01496124267578125, 0.031005859375, -0.0249176025390625, 0.0128936767578125, 0.01113128662109375, 0.016754150390625, -0.0033626556396484375, 0.030975341796875, 0.027923583984375, -0.0196533203125, 0.06536865234375, -0.011474609375, 0.0299224853515625, -0.01374053955078125, 0.014801025390625, 0.025177001953125, -0.0291595458984375, 0.049957275390625, -0.003986358642578125, -0.06927490234375, 0.07611083984375, 0.05841064453125, 0.004703521728515625, 0.031402587890625, 0.00154876708984375, 0.002567291259765625, -0.01457977294921875, -0.027130126953125, -0.056793212890625, 0.0171661376953125, 0.02032470703125, -0.00922393798828125, -0.0235748291015625, -0.00308990478515625, -0.0111541748046875, 0.02447509765625, 0.0335693359375, 0.06536865234375, -0.0828857421875, 0.03997802734375, -0.01239013671875, -0.01230621337890625, 0.0682373046875, 0.0143585205078125, -0.0116729736328125, 0.00858306884765625, 0.054718017578125, -0.0261993408203125, -0.0032444000244140625, 0.0426025390625, 0.00506591796875, -0.0137481689453125, -0.0278167724609375, 0.0013055801391601562, 0.00565338134765625, -0.01169586181640625, 0.01485443115234375, 0.0163116455078125, 0.0265655517578125, 0.0389404296875, -0.006145477294921875, 0.02276611328125, -0.03955078125, -0.038848876953125, -0.01776123046875, -0.055419921875, -0.030181884765625, -0.003925323486328125, 0.026519775390625, 0.0767822265625, 0.01788330078125, 0.0340576171875, -0.05389404296875, -0.0217742919921875, 0.050018310546875, 0.0291290283203125, -0.040802001953125, -0.0016050338745117188, 0.0130462646484375, -0.034149169921875, 0.0192108154296875, 0.01024627685546875, -0.03778076171875, -0.01284027099609375, -0.026885986328125, 0.0662841796875, -0.0097503662109375, -0.0238189697265625, 0.03509521484375, -0.015655517578125, -0.0086822509765625, 0.0189208984375, 0.0299072265625, -0.0626220703125, -0.047821044921875, 0.0233154296875, -0.043670654296875, -0.005680084228515625, 0.0162200927734375, -0.07000732421875, 0.1025390625, 0.0038166046142578125, 0.01812744140625, 0.001178741455078125, 0.0447998046875, -0.02996826171875, 0.0244903564453125, -0.01346588134765625, 0.0291595458984375, -0.00946044921875, 0.017913818359375, -0.0204315185546875, -0.017486572265625, 0.00226593017578125, 0.040740966796875, 0.057403564453125, 0.01497650146484375, -0.00844573974609375, -0.037567138671875, -0.003185272216796875, 0.00463104248046875, -0.046905517578125, 0.0345458984375, 0.0303192138671875, 0.0143585205078125, 0.047698974609375, -0.027923583984375, 0.02825927734375, -0.01406097412109375, 0.01580810546875, 0.0452880859375, -0.007526397705078125, -0.047454833984375, 0.02044677734375, 0.033416748046875, -0.074462890625, 0.0298309326171875, 0.04119873046875, -0.0006055831909179688, 0.0209808349609375, 0.032745361328125, 0.0268707275390625, -0.003849029541015625, -0.00853729248046875, -0.01018524169921875, 0.029632568359375, -0.011688232421875, 0.04022216796875, 0.028564453125, 0.01849365234375, 0.028900146484375, 0.022430419921875, 0.0204315185546875, 0.01837158203125, -0.0002052783966064453, 0.050811767578125, 0.0148468017578125, 0.029937744140625, -0.00974273681640625, 0.06396484375, -0.000003337860107421875, 0.048675537109375, -0.05401611328125, 0.005764007568359375, 0.017852783203125, 0.0291595458984375, 0.032073974609375, -0.0027751922607421875, 0.09344482421875, 0.01363372802734375, 0.00583648681640625, -0.002593994140625, 0.015960693359375, 0.02325439453125, 0.01395416259765625, 0.0026721954345703125, 0.032806396484375, -0.0634765625, 0.025146484375, -0.0128173828125, 0.001323699951171875, 0.00007152557373046875, -0.0186920166015625, -0.012939453125, 0.0104827880859375, 0.049560546875, 0.027008056640625, -0.0139923095703125, 0.0234375, 0.020751953125, 0.0007796287536621094, -0.0012683868408203125, -0.0008807182312011719, -0.01213836669921875, 0.018341064453125, -0.04144287109375, 0.00360107421875, 0.0287933349609375, 0.0452880859375, -0.03192138671875, -0.0419921875, 0.002712249755859375, -0.0185699462890625, 0.0083160400390625, -0.029876708984375, 0.0024433135986328125, 0.03118896484375, -0.016815185546875, -0.018829345703125, -0.0293426513671875, 0.0706787109375, -0.0037746429443359375, 0.0171051025390625, 0.004756927490234375, -0.00905609130859375, 0.03167724609375, 0.00893402099609375, 0.0270538330078125, 0.0335693359375, -0.0806884765625, 0.004848480224609375, -0.034912109375, -0.08575439453125, 0.03857421875, 0.054290771484375, -0.0247650146484375, -0.0199432373046875, 0.04876708984375, -0.035980224609375, 0.024322509765625, 0.00412750244140625, 0.03082275390625, -0.00003248453140258789, 0.0014371871948242188, 0.00441741943359375, -0.05767822265625, 0.00396728515625, -0.0037288665771484375, -0.0036563873291015625, -0.002422332763671875, 0.047698974609375, 0.01560211181640625, -0.00446319580078125, 0.01317596435546875, 0.025665283203125, -0.00738525390625, 0.0134124755859375, -0.007389068603515625, -0.001003265380859375, 0.01212310791015625, -0.003543853759765625, -0.0657958984375, 0.061614990234375, -0.01788330078125, 0.0167999267578125, 0.0780029296875, -0.033050537109375, -0.00922393798828125, -0.0137786865234375, -0.0027313232421875, -0.033416748046875, -0.06561279296875, -0.051177978515625, 0.0203704833984375, -0.00008380413055419922, 0.01617431640625, -0.03643798828125, 0.03411865234375, -0.027923583984375, -0.0082550048828125, 0.0259857177734375, -0.04583740234375, 0.006679534912109375, 0.027374267578125, -0.03070068359375, 0.0027904510498046875, -0.01971435546875, -0.03533935546875, 0.041534423828125, -0.0238037109375, 0.0389404296875, -0.006526947021484375, -0.043212890625, 0.0091094970703125, 0.1199951171875, 0.0712890625, 0.018280029296875, 0.05108642578125, 0.052764892578125, -0.0552978515625, 0.0307464599609375, -0.01401519775390625, -0.04132080078125, -0.026214599609375, 0.00481414794921875, 0.01366424560546875, 0.005092620849609375, -0.031402587890625, -0.034515380859375, 0.01021575927734375, 0.0201873779296875, -0.013458251953125, -0.06903076171875, 0.007595062255859375, -0.016815185546875, 0.0797119140625, -0.055755615234375, 0.003833770751953125, 0.01213836669921875, 0.04888916015625, -0.036285400390625, 0.00128936767578125, -0.029022216796875, -0.024658203125, -0.0386962890625, 0.005992889404296875, 0.02777099609375, 0.005031585693359375, -0.0246734619140625, -0.017303466796875, -0.018707275390625, 0.0209503173828125, -0.043365478515625, -0.00725555419921875, 0.04144287109375, -0.0165557861328125, -0.031951904296875, -0.055816650390625, 0.0149383544921875, -0.04705810546875, -0.00371551513671875, 0.004924774169921875, -0.0040283203125, 0.0097808837890625, -0.03216552734375, -0.0657958984375, 0.032745361328125, 0.0032825469970703125, -0.019378662109375, -0.048492431640625, -0.00004869699478149414, -0.01389312744140625, 0.02032470703125, -0.0238800048828125, -0.01403045654296875, -0.006710052490234375, 0.043731689453125, 0.041229248046875, -0.035552978515625, 0.038238525390625, 0.048980712890625, -0.06927490234375, 0.0297698974609375, -0.000003337860107421875, 0.007785797119140625, 0.0018339157104492188, -0.01245880126953125, 0.0150909423828125, 0.022064208984375, -0.04150390625, -0.0272216796875, -0.00795745849609375, 0.0204925537109375, -0.017486572265625, -0.0538330078125, 0.017181396484375, 0.007167816162109375, 0.05255126953125, 0.036865234375, -0.0032291412353515625, -0.02789306640625, -0.0301971435546875, -0.018585205078125, 0.0184783935546875, -0.00008869171142578125, -0.0022869110107421875, -0.061737060546875, -0.01190185546875, 0.007167816162109375, 0.0168304443359375, -0.0268707275390625, 0.021270751953125, -0.006168365478515625, -0.0188751220703125, 0.038116455078125, -0.0029315948486328125, -0.01500701904296875, -0.0018310546875, 0.072021484375, -0.0498046875, -0.04534912109375, 0.005523681640625, 0.00531005859375, 0.0092010498046875, -0.0278778076171875, -0.0102996826171875, 0.002109527587890625, -0.0175018310546875, 0.0228118896484375, -0.006137847900390625, 0.05029296875, -0.038238525390625, -0.0037517547607421875, -0.0133056640625, 0.008056640625, -0.01611328125, 0.00872802734375, 0.0107269287109375, 0.0224151611328125, -0.007495880126953125, 0.08038330078125, -0.0038089752197265625, 0.00742340087890625, -0.00792694091796875, 0.024566650390625, 0.02996826171875, -0.0222930908203125, 0.060211181640625, -0.0191650390625, 0.00485992431640625, -0.0092315673828125, 0.006465911865234375, -0.034576416015625, 0.016937255859375, 0.00867462158203125, 0.0179595947265625, 0.0175323486328125 ]
25b9fc4bc75847988a5351b5998855888c7285a7
Wordpress Stackexchange Q: How do I get posts that have a thumbnail in WP_Query? I want to grab the 5 most recent posts that have thumbnails. A: You should be able to call posts with a featured image with the following code: $thumbs = array( 'posts_per_page' => 5, 'meta_query' => array(array('key' => '_thumbnail_id')) ); $query = new WP_Query($thumbs); The code checks each post for the custom field _thumbnail_id, which is where the thumbnail image is stored.
Q: How do I get posts that have a thumbnail in WP_Query? I want to grab the 5 most recent posts that have thumbnails. A: You should be able to call posts with a featured image with the following code: $thumbs = array( 'posts_per_page' => 5, 'meta_query' => array(array('key' => '_thumbnail_id')) ); $query = new WP_Query($thumbs); The code checks each post for the custom field _thumbnail_id, which is where the thumbnail image is stored.
wordpress
{ "language": "en", "length": 74, "provenance": "stackexchange_00019.jsonl.gz:418158", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45909" }
[ 0.08074951171875, -0.00995635986328125, 0.038482666015625, -0.03857421875, 0.02569580078125, -0.01442718505859375, 0.0594482421875, -0.0260162353515625, 0.04443359375, -0.01053619384765625, -0.0204925537109375, 0.006793975830078125, -0.031890869140625, -0.024383544921875, -0.007297515869140625, -0.0208740234375, 0.0689697265625, -0.0634765625, 0.0302886962890625, 0.01458740234375, -0.003574371337890625, 0.053985595703125, 0.06878662109375, 0.0293731689453125, 0.0106964111328125, 0.01439666748046875, 0.027069091796875, -0.0158538818359375, -0.004009246826171875, -0.021514892578125, 0.0198516845703125, 0.0153045654296875, 0.01288604736328125, -0.008392333984375, 0.028167724609375, 0.0210418701171875, 0.03948974609375, -0.0221099853515625, 0.0178985595703125, 0.018463134765625, 0.00862884521484375, 0.007762908935546875, -0.030731201171875, 0.00594329833984375, -0.0242919921875, -0.005954742431640625, -0.01800537109375, -0.044891357421875, 0.0011892318725585938, -0.0312347412109375, -0.0015974044799804688, 0.0237884521484375, 0.0180511474609375, -0.045745849609375, -0.007564544677734375, -0.008941650390625, -0.0179901123046875, 0.0028400421142578125, 0.05096435546875, -0.04913330078125, -0.041656494140625, -0.04681396484375, 0.035675048828125, -0.0032444000244140625, -0.00763702392578125, 0.0328369140625, 0.0292816162109375, 0.006092071533203125, -0.003261566162109375, -0.0255126953125, -0.033050537109375, -0.014404296875, 0.003917694091796875, -0.0413818359375, 0.0005993843078613281, 0.00775146484375, -0.02679443359375, -0.045318603515625, 0.007175445556640625, 0.004772186279296875, -0.004833221435546875, -0.0313720703125, -0.059295654296875, 0.040863037109375, -0.01763916015625, 0.056640625, -0.004215240478515625, -0.0234832763671875, -0.032196044921875, -0.01666259765625, -0.0108642578125, -0.06298828125, -0.06610107421875, 0.04742431640625, 0.045074462890625, -0.03851318359375, 0.045928955078125, 0.041107177734375, -0.0257720947265625, -0.0260009765625, -0.0142059326171875, -0.0206298828125, -0.007671356201171875, -0.0113677978515625, 0.026336669921875, 0.002056121826171875, -0.03289794921875, -0.01207733154296875, 0.049713134765625, 0.056671142578125, -0.01093292236328125, 0.020965576171875, 0.0264129638671875, 0.00444793701171875, -0.046875, 0.0024261474609375, -0.005542755126953125, -0.00423431396484375, 0.00759124755859375, 0.0005559921264648438, 0.00855255126953125, 0.011993408203125, 0.0179443359375, -0.038726806640625, 0.01367950439453125, 0.00046062469482421875, -0.0430908203125, -0.0171356201171875, -0.01399993896484375, 0.0634765625, 0.006450653076171875, -0.0167999267578125, -0.0214691162109375, 0.018280029296875, -0.0210723876953125, -0.0201416015625, 0.01116943359375, -0.030242919921875, 0.0041961669921875, 0.01568603515625, -0.0450439453125, -0.0253753662109375, 0.0213470458984375, -0.037506103515625, 0.037353515625, -0.018646240234375, 0.016326904296875, 0.041015625, 0.015869140625, 0.0122222900390625, 0.0310516357421875, 0.0052337646484375, 0.0091552734375, 0.0135345458984375, 0.03277587890625, -0.0144195556640625, 0.052703857421875, -0.0199737548828125, -0.01097869873046875, -0.03094482421875, 0.06182861328125, -0.00010281801223754883, -0.0084381103515625, 0.035125732421875, -0.002044677734375, -0.00760650634765625, -0.0240478515625, -0.0032501220703125, 0.0252838134765625, 0.064208984375, 0.036041259765625, -0.033599853515625, 0.033538818359375, 0.000049054622650146484, -0.034149169921875, -0.0143585205078125, 0.02850341796875, -0.029052734375, 0.011199951171875, 0.03253173828125, -0.032989501953125, -0.034820556640625, 0.01247406005859375, -0.04095458984375, -0.021087646484375, -0.0057373046875, 0.019439697265625, 0.04351806640625, 0.0026702880859375, 0.033782958984375, 0.006130218505859375, -0.0034885406494140625, -0.05181884765625, 0.051300048828125, 0.0187225341796875, -0.0052337646484375, -0.0250244140625, 0.00086212158203125, 0.005184173583984375, -0.04229736328125, 0.035125732421875, 0.00826263427734375, 0.005687713623046875, -0.0033435821533203125, -0.07427978515625, 0.0121612548828125, -0.0199127197265625, 0.0301513671875, 0.0216827392578125, 0.02294921875, 0.014312744140625, 0.0189361572265625, -0.03656005859375, 0.023406982421875, -0.0208740234375, 0.020263671875, -0.036102294921875, -0.02337646484375, -0.01544952392578125, 0.009368896484375, -0.03863525390625, -0.01849365234375, -0.06341552734375, -0.01097869873046875, 0.032257080078125, -0.01427459716796875, -0.025177001953125, -0.022369384765625, -0.0211944580078125, 0.0136260986328125, -0.08551025390625, 0.040496826171875, -0.03289794921875, -0.032012939453125, -0.01849365234375, 0.01418304443359375, 0.043365478515625, -0.047210693359375, 0.0158233642578125, 0.03839111328125, 0.050048828125, 0.07513427734375, 0.0254669189453125, -0.007396697998046875, 0.0523681640625, -0.052032470703125, 0.0287628173828125, -0.03790283203125, -0.001178741455078125, 0.01922607421875, 0.01149749755859375, -0.0252685546875, 0.019622802734375, -0.00925445556640625, 0.00986480712890625, 0.0198211669921875, 0.02685546875, 0.07586669921875, -0.04901123046875, 0.03643798828125, -0.0294036865234375, 0.010833740234375, 0.006992340087890625, -0.01514434814453125, 0.016143798828125, 0.061126708984375, 0.022705078125, 0.029754638671875, -0.0391845703125, 0.04608154296875, -0.0027179718017578125, -0.032440185546875, 0.00621795654296875, 0.0298614501953125, 0.0082244873046875, -0.0013647079467773438, -0.0234832763671875, -0.0200347900390625, 0.02581787109375, 0.01415252685546875, 0.0013065338134765625, 0.0123443603515625, 0.020416259765625, 0.004123687744140625, -0.01110076904296875, -0.0257110595703125, 0.04327392578125, 0.031982421875, 0.0004570484161376953, 0.0167694091796875, 0.0279541015625, 0.0379638671875, -0.0152435302734375, 0.046630859375, -0.0204010009765625, 0.0113372802734375, -0.037017822265625, -0.06756591796875, 0.049713134765625, -0.046905517578125, 0.02764892578125, 0.07098388671875, -0.005496978759765625, 0.0148773193359375, 0.00963592529296875, -0.0271148681640625, -0.006267547607421875, 0.0068817138671875, -0.00021076202392578125, -0.0006165504455566406, -0.049530029296875, 0.05145263671875, 0.017181396484375, 0.10205078125, -0.049713134765625, -0.060791015625, 0.0037937164306640625, 0.0310821533203125, -0.08721923828125, -0.09466552734375, -0.0037097930908203125, -0.0565185546875, -0.002330780029296875, 0.0032863616943359375, -0.02587890625, -0.00907135009765625, 0.0254669189453125, 0.01042938232421875, -0.0273284912109375, 0.004840850830078125, -0.04443359375, -0.017669677734375, -0.05194091796875, 0.04852294921875, -0.01282501220703125, 0.0272216796875, 0.008880615234375, 0.0643310546875, -0.022491455078125, -0.07342529296875, -0.032867431640625, 0.002758026123046875, -0.0240325927734375, 0.003078460693359375, -0.005084991455078125, 0.0092010498046875, -0.035614013671875, 0.0049896240234375, -0.0110931396484375, 0.01120758056640625, -0.01342010498046875, 0.002964019775390625, -0.02923583984375, 0.0214691162109375, -0.006206512451171875, 0.03228759765625, 0.0343017578125, 0.02947998046875, 0.035247802734375, -0.008026123046875, -0.0167694091796875, -0.036712646484375, -0.035858154296875, 0.024688720703125, 0.01544189453125, 0.00849151611328125, -0.01514434814453125, 0.0219573974609375, 0.033416748046875, -0.01187896728515625, 0.00406646728515625, -0.03253173828125, 0.058563232421875, 0.0292205810546875, 0.059478759765625, -0.034088134765625, -0.0279693603515625, -0.0166778564453125, 0.05841064453125, -0.0011005401611328125, 0.051177978515625, -0.006168365478515625, 0.044281005859375, -0.042236328125, -0.0026721954345703125, 0.03326416015625, -0.017303466796875, 0.0043792724609375, -0.0129547119140625, -0.019927978515625, -0.004802703857421875, 0.053955078125, -0.07244873046875, -0.039093017578125, -0.019500732421875, -0.006229400634765625, 0.0220947265625, -0.0024089813232421875, -0.00801849365234375, -0.0194549560546875, -0.0732421875, -0.0096282958984375, -0.0038909912109375, -0.049072265625, 0.005825042724609375, -0.0105743408203125, -0.046295166015625, -0.0253753662109375, 0.04315185546875, 0.00589752197265625, -0.01110076904296875, 0.0592041015625, -0.0092926025390625, 0.045501708984375, -0.050079345703125, 0.0109100341796875, -0.08746337890625, -0.0269622802734375, -0.01482391357421875, 0.0830078125, 0.0132904052734375, -0.0263519287109375, -0.047027587890625, 0.0458984375, -0.01413726806640625, 0.032135009765625, -0.003299713134765625, 0.0171661376953125, 0.01218414306640625, -0.014312744140625, 0.0020503997802734375, -0.0280303955078125, 0.00609588623046875, -0.054351806640625, -0.0234527587890625, -0.038543701171875, -0.0772705078125, -0.0110931396484375, -0.06884765625, 0.004436492919921875, -0.020172119140625, 0.0185394287109375, 0.036834716796875, 0.043914794921875, -0.003711700439453125, 0.005764007568359375, 0.0021533966064453125, -0.0243988037109375, 0.053985595703125, 0.017059326171875, -0.021453857421875, 0.0026378631591796875, 0.08270263671875, 0.00862884521484375, -0.033233642578125, -0.088623046875, 0.002780914306640625, 0.0088348388671875, 0.0002065896987915039, 0.0498046875, 0.032806396484375, 0.00505828857421875, -0.01104736328125, -0.0027332305908203125, -0.0108642578125, -0.01079559326171875, 0.0450439453125, -0.0098419189453125, -0.006008148193359375, -0.0038661956787109375, -0.02685546875, 0.03289794921875, 0.033477783203125, -0.013946533203125, -0.0374755859375, -0.0213775634765625, 0.046417236328125, -0.0170440673828125, 0.027923583984375, -0.035400390625, 0.0002899169921875, -0.0062713623046875, -0.00598907470703125, 0.035308837890625, 0.05084228515625, -0.0199127197265625, 0.004741668701171875, 0.028839111328125, 0.0250396728515625, 0.0086669921875, -0.00022149085998535156, 0.00002866983413696289, 0.048065185546875, -0.00977325439453125, 0.0181732177734375, 0.006443023681640625, 0.00911712646484375, 0.0055389404296875, -0.0026111602783203125, -0.03741455078125, -0.0271148681640625, 0.003772735595703125, 0.0380859375, -0.0118255615234375, -0.002574920654296875, 0.038330078125, 0.004894256591796875, -0.031982421875, -0.032379150390625, -0.0411376953125, -0.00849151611328125, -0.058380126953125, -0.019256591796875, -0.00362396240234375, -0.0048980712890625, 0.0362548828125, 0.05938720703125, -0.016876220703125, 0.054840087890625, -0.0215606689453125, 0.00792694091796875, -0.0114593505859375, 0.004955291748046875, 0.01458740234375, 0.04058837890625, -0.00482940673828125, -0.009246826171875, 0.01525115966796875, -0.02581787109375, -0.0215911865234375, -0.00833892822265625, 0.01264190673828125, -0.00788116455078125, 0.01543426513671875, 0.02545166015625, 0.0169525146484375, -0.032623291015625, 0.005176544189453125, -0.00937652587890625, -0.007389068603515625, -0.0279693603515625, -0.0223846435546875, 0.01093292236328125, 0.0269775390625, -0.02008056640625, 0.00913238525390625, 0.017669677734375, 0.04327392578125, -0.05816650390625, -0.02398681640625, 0.045135498046875, 0.047210693359375, -0.00887298583984375, -0.0212554931640625, -0.0279541015625, 0.01666259765625, -0.02069091796875, -0.0081329345703125, -0.01294708251953125, 0.05078125, -0.03033447265625, 0.0308685302734375, -0.00754547119140625, -0.0187835693359375, -0.0269317626953125, 0.0272979736328125, 0.0060577392578125, 0.0167083740234375, -0.040740966796875, -0.013885498046875, -0.03790283203125, -0.01094818115234375, 0.07904052734375, -0.00614166259765625, -0.0067901611328125, -0.041259765625, -0.0108642578125, 0.0283050537109375, -0.00007730722427368164, 0.013031005859375, 0.008697509765625, 0.0028743743896484375, -0.017486572265625, 0.02984619140625, 0.005062103271484375, 0.0245513916015625, -0.0171966552734375, 0.0401611328125, 0.0035400390625, 0.00821685791015625, -0.0270843505859375, -0.0215911865234375, -0.0199737548828125, -0.0570068359375, 0.0090789794921875, 0.026824951171875, -0.0285797119140625, -0.01422882080078125, 0.008575439453125, 0.010955810546875, 0.00316619873046875, -0.0270538330078125, -0.004871368408203125, -0.015716552734375, 0.0207366943359375, -0.0215911865234375, -0.0401611328125, 0.048797607421875, -0.037994384765625, 0.0011758804321289062, -0.002685546875, -0.005146026611328125, 0.0108795166015625, -0.035186767578125, -0.0238800048828125, 0.0634765625, -0.00513458251953125, 0.04443359375, 0.0872802734375, 0.0174407958984375, 0.052734375, 0.0411376953125, 0.018951416015625, -0.01111602783203125, 0.01531219482421875, 0.00409698486328125, -0.0167388916015625, 0.03558349609375, -0.005825042724609375, 0.0027866363525390625, 0.01277923583984375, -0.0272979736328125, -0.00464630126953125, -0.0357666015625, 0.0120849609375, 0.032257080078125, 0.023895263671875, -0.002410888671875, -0.0217437744140625, 0.031982421875, -0.0038890838623046875, -0.00799560546875, -0.0155487060546875, 0.043121337890625, -0.01010894775390625, -0.017822265625, 0.0028324127197265625, -0.0206451416015625, -0.02459716796875, 0.0148468017578125, -0.0199432373046875, -0.00916290283203125, -0.0667724609375, -0.005268096923828125, 0.0306549072265625, -0.0186767578125, 0.00867462158203125, 0.02117919921875, -0.02532958984375, 0.003261566162109375, -0.03289794921875, -0.0082550048828125, -0.0186004638671875, -0.0188140869140625, 0.037353515625, 0.04833984375, -0.005218505859375, 0.06890869140625, -0.0040283203125, 0.0161285400390625, 0.04315185546875, -0.04693603515625, -0.0279998779296875, 0.0020923614501953125, 0.025634765625, 0.05792236328125, -0.047027587890625, 0.0280303955078125, -0.0335693359375, 0.021148681640625, -0.005039215087890625, 0.0011081695556640625, 0.07867431640625, -0.04083251953125, -0.01473236083984375, 0.028961181640625, 0.0181732177734375, -0.006427764892578125, 0.00714111328125, 0.02056884765625, -0.0233917236328125, 0.01605224609375, 0.00335693359375, -0.0019474029541015625, -0.0235137939453125, -0.019805908203125, -0.05816650390625, 0.060791015625, -0.018646240234375, 0.02862548828125, 0.0256805419921875, 0.0161285400390625, -0.019256591796875, -0.01537322998046875, -0.01082611083984375, 0.054718017578125, -0.043853759765625, 0.030120849609375, -0.03790283203125, 0.008331298828125, 0.0081939697265625, 0.00827789306640625, 0.10577392578125, 0.012481689453125, -0.047027587890625, -0.01538848876953125, 0.08319091796875, 0.05694580078125, 0.0005550384521484375, 0.04046630859375, -0.01910400390625, 0.017425537109375, 0.05157470703125, -0.045196533203125, 0.034759521484375, 0.000576019287109375, -0.02490234375, 0.0052032470703125, 0.005229949951171875, 0.005123138427734375, 0.018829345703125, 0.00988006591796875, -0.03814697265625, 0.0139007568359375, 0.045257568359375, -0.0643310546875, 0.005519866943359375, 0.06494140625, 0.05340576171875, 0.0025501251220703125, -0.05426025390625, -0.00505828857421875, 0.03460693359375, 0.022216796875, 0.0531005859375, 0.043487548828125, 0.0270538330078125, 0.054656982421875, 0.0012350082397460938, 0.0322265625, 0.01198577880859375, -0.029632568359375, 0.061126708984375, 0.0281524658203125, 0.0380859375, -0.032012939453125, -0.01263427734375, 0.030670166015625, 0.0849609375, -0.04498291015625, -0.0291595458984375, 0.0161895751953125, 0.0170135498046875, -0.007045745849609375, -0.0008878707885742188, -0.024169921875, -0.01557159423828125, 0.039154052734375, -0.0218353271484375, -0.004856109619140625, 0.0295257568359375, 0.027069091796875, -0.00356292724609375, -0.0147705078125, -0.0238189697265625, -0.022186279296875, 0.0025653839111328125, -0.003963470458984375, 0.0215301513671875, 0.007244110107421875, -0.005016326904296875, -0.005069732666015625, -0.0303497314453125, 0.0162506103515625, -0.0009613037109375, 0.0250244140625, -0.01305389404296875, 0.01153564453125, -0.0284423828125, -0.035491943359375, -0.02410888671875, 0.025787353515625, 0.02874755859375, -0.048858642578125, 0.017669677734375, 0.03619384765625, -0.056671142578125, -0.019866943359375, 0.035858154296875, -0.005115509033203125, -0.005825042724609375, -0.0218353271484375, 0.024688720703125, 0.038818359375, -0.0021457672119140625, -0.01177215576171875, -0.01153564453125, 0.07696533203125, -0.023345947265625, 0.07171630859375, -0.0092010498046875, 0.0191650390625, 0.00121307373046875, -0.0087738037109375, 0.0198516845703125, 0.004878997802734375, -0.07177734375, -0.0162200927734375, -0.0187225341796875, -0.035675048828125, 0.042144775390625, 0.0318603515625, -0.0567626953125, 0.031402587890625, 0.0241851806640625, -0.0009303092956542969, 0.022247314453125, -0.01812744140625, 0.0094451904296875, 0.002162933349609375, 0.0305328369140625, 0.01342010498046875, -0.039276123046875, -0.036346435546875, 0.01364898681640625, 0.0302734375, 0.0192413330078125, -0.019561767578125, 0.03424072265625, 0.020477294921875, 0.0159149169921875, -0.009002685546875, 0.0023212432861328125, 0.0229949951171875, 0.0062408447265625, -0.006145477294921875, -0.01273345947265625, -0.0161285400390625, -0.003704071044921875, 0.0025463104248046875, 0.025848388671875, -0.01995849609375, -0.050201416015625, 0.01099395751953125, 0.0288543701171875, 0.038818359375, 0.021453857421875, -0.0274505615234375, -0.0007152557373046875, -0.0509033203125, -0.05181884765625, 0.046234130859375, -0.0129547119140625, -0.000934600830078125, -0.01096343994140625, 0.047210693359375, -0.05029296875, 0.046630859375, -0.00955963134765625, 0.102294921875, 0.0628662109375, -0.0272064208984375, 0.0240325927734375, -0.062286376953125, -0.0269927978515625, -0.006427764892578125, 0.0017910003662109375, -0.05291748046875, -0.00811767578125, 0.007213592529296875, -0.00910186767578125, -0.037200927734375, -0.002185821533203125, -0.031494140625, -0.019866943359375, 0.00482940673828125, -0.007511138916015625, -0.03887939453125, -0.028533935546875, -0.01617431640625, -0.06573486328125, 0.004566192626953125, 0.003574371337890625, -0.02130126953125, -0.00064849853515625, 0.029388427734375, -0.032928466796875, 0.0128173828125, 0.0269622802734375, -0.05877685546875, 0.052032470703125, 0.0138092041015625, -0.043609619140625, -0.0013971328735351562, -0.044036865234375, 0.02252197265625, 0.0445556640625, -0.0014820098876953125, 0.0007839202880859375, -0.01503753662109375, -0.019805908203125, -0.0005269050598144531, 0.02337646484375, 0.0253753662109375, -0.036865234375, 0.01360321044921875, 0.052825927734375, 0.0299072265625, 0.1005859375, -0.003917694091796875, -0.018646240234375, 0.0287017822265625, -0.00958251953125, -0.011016845703125, -0.03948974609375, 0.0066375732421875, -0.049560546875, 0.0083770751953125, 0.0195159912109375, -0.0155792236328125, 0.006931304931640625, -0.045013427734375, -0.10528564453125, 0.045135498046875, -0.0186920166015625, -0.054931640625, -0.00861358642578125, 0.01180267333984375, 0.01678466796875, -0.039215087890625, -0.0002834796905517578, 0.00836181640625, -0.0306396484375, -0.037689208984375, 0.01806640625, -0.01934814453125, 0.059326171875, -0.0254364013671875, -0.036651611328125, -0.002590179443359375, -0.0073089599609375, 0.003963470458984375, 0.01358795166015625, 0.00998687744140625, 0.00977325439453125, 0.060699462890625, -0.03961181640625, -0.01340484619140625, -0.032989501953125, -0.0239105224609375, -0.01934814453125, 0.004547119140625, -0.0225677490234375, -0.00079345703125, 0.043853759765625, 0.0694580078125, 0.01080322265625, -0.038726806640625, 0.0203857421875, -0.03497314453125, -0.0305633544921875, -0.01201629638671875, 0.01032257080078125, -0.0300445556640625, -0.003177642822265625, 0.013916015625, -0.01044464111328125, -0.01499176025390625, -0.015106201171875, -0.035858154296875, -0.0103302001953125, -0.016448974609375, 0.016265869140625, -0.051788330078125, 0.05438232421875, 0.044464111328125, -0.04864501953125, -0.018890380859375, -0.01508331298828125, -0.00957489013671875, 0.00350189208984375, -0.05682373046875, 0.02276611328125, 0.020721435546875, -0.0087738037109375, 0.00443267822265625, 0.026641845703125, -0.0299835205078125, 0.00948333740234375, 0.004909515380859375, -0.01274871826171875, 0.00421142578125, 0.01096343994140625, 0.005321502685546875, -0.002193450927734375, 0.0080413818359375, 0.005523681640625, 0.01430511474609375, 0.00867462158203125, 0.00450897216796875, -0.00714111328125, 0.032073974609375, 0.02581787109375, -0.0263214111328125, 0.04425048828125, -0.0132293701171875, -0.00812530517578125, 0.0185394287109375, -0.0552978515625, -0.034881591796875, -0.0132598876953125, 0.00812530517578125, -0.0158843994140625, 0.005001068115234375 ]
a989fea41e85770f296f83f1c38b9b405a2b8a70
Wordpress Stackexchange Q: Disable Comments Feed I am working on a private site where the comments need to be hidden. I know how to remove the comments feed from the header, but can anyone give me some instructions on how to disable the comments feed altogether. Because all you need to do is add /feed/ to the single post and then you can see the comments feed. I tried creating feed-atom-comments.php, and feed-rss2-comments.php, and that still did not work. A: Something like this should work. function wpse45941_disable_feed( $comments ) { if( $comments ) { wp_die( 'No feed available' ); } } add_action('do_feed', 'wpse45941_disable_feed',1 ); add_action('do_feed_rdf', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss2', 'wpse45941_disable_feed',1 ); add_action('do_feed_atom', 'wpse45941_disable_feed',1 ); Note: I haven't tested that at all, I just wrote it right into the answer box.
Q: Disable Comments Feed I am working on a private site where the comments need to be hidden. I know how to remove the comments feed from the header, but can anyone give me some instructions on how to disable the comments feed altogether. Because all you need to do is add /feed/ to the single post and then you can see the comments feed. I tried creating feed-atom-comments.php, and feed-rss2-comments.php, and that still did not work. A: Something like this should work. function wpse45941_disable_feed( $comments ) { if( $comments ) { wp_die( 'No feed available' ); } } add_action('do_feed', 'wpse45941_disable_feed',1 ); add_action('do_feed_rdf', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss2', 'wpse45941_disable_feed',1 ); add_action('do_feed_atom', 'wpse45941_disable_feed',1 ); Note: I haven't tested that at all, I just wrote it right into the answer box. A: Disable only the individual-post comment feeds An alternate version of mor7ifer's answer, this one only disables the per-post comment feeds, and not the site-wide comments feed (by checking for is_single() before doing wp_die()). It also uses the 410 error code which means GONE and seems appropriate for this use-case (at least for me, where these URLs already existed and are indexed, and I want to unequivocally tell Google and friends to stop indexing). function wpse45941_disable_feed( $comments ) { if( $comments and is_single() ) { wp_die( 'Feeds for comments on single posts have been disabled.', 410 ); } } add_action('do_feed', 'wpse45941_disable_feed',1 ); add_action('do_feed_rdf', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss2', 'wpse45941_disable_feed',1 ); add_action('do_feed_atom', 'wpse45941_disable_feed',1 ); Disable all comment feeds Here's the same code with the 410 HTTP status, but it will also disable the sitewide comments feed (and shows an appropriate message): function wpse45941_disable_feed( $comments ) { if( $comments ) { wp_die( 'Feeds for comments have been disabled.', 410 ); } } add_action('do_feed', 'wpse45941_disable_feed',1 ); add_action('do_feed_rdf', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss', 'wpse45941_disable_feed',1 ); add_action('do_feed_rss2', 'wpse45941_disable_feed',1 ); add_action('do_feed_atom', 'wpse45941_disable_feed',1 ); Note: This doesn't fix the <item> for each post in the normal RSS feed On further inspection, I've found the following error when validating the main (posts) RSS feed for my site: It seems WP is still inserting the comments RSS tag into the feed, but because that feed is disabled, it generates an error. RSS still works, but I'm looking for a solution to get rid of it. This Core Trac issue is relevant
wordpress
{ "language": "en", "length": 381, "provenance": "stackexchange_00019.jsonl.gz:418167", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/45941" }
[ 0.10040283203125, -0.00188446044921875, 0.004756927490234375, -0.017822265625, 0.0263519287109375, -0.055694580078125, 0.0784912109375, -0.0279083251953125, -0.000022232532501220703, 0.013153076171875, -0.03857421875, -0.036041259765625, -0.0238189697265625, -0.00759124755859375, -0.032470703125, -0.07635498046875, 0.0261993408203125, 0.01080322265625, 0.042144775390625, 0.0028285980224609375, 0.01338958740234375, 0.006134033203125, 0.02020263671875, 0.0207672119140625, 0.00028061866760253906, -0.0249481201171875, 0.1083984375, -0.010345458984375, 0.0029659271240234375, -0.025238037109375, 0.0166015625, -0.0021762847900390625, 0.0016231536865234375, 0.052520751953125, -0.0423583984375, -0.048065185546875, -0.037322998046875, 0.0267181396484375, -0.01485443115234375, 0.0219879150390625, 0.021514892578125, -0.01419830322265625, 0.0196075439453125, -0.0204925537109375, -0.004154205322265625, 0.019866943359375, 0.00017976760864257812, -0.0251312255859375, -0.002956390380859375, 0.006195068359375, 0.001461029052734375, 0.030914306640625, 0.01508331298828125, -0.0299072265625, -0.006725311279296875, -0.00873565673828125, -0.03509521484375, 0.01268768310546875, 0.0101165771484375, -0.0228424072265625, 0.016387939453125, -0.00007671117782592773, 0.0196990966796875, 0.038970947265625, 0.0066375732421875, -0.0024890899658203125, 0.0304718017578125, 0.023406982421875, -0.01433563232421875, 0.023773193359375, 0.020782470703125, -0.027679443359375, 0.019775390625, -0.0294189453125, 0.0096282958984375, 0.0037689208984375, -0.024078369140625, -0.020904541015625, 0.02996826171875, 0.00049591064453125, 0.000705718994140625, 0.02362060546875, -0.08660888671875, 0.000012218952178955078, 0.01364898681640625, 0.018310546875, -0.013092041015625, -0.033050537109375, -0.01093292236328125, 0.027740478515625, -0.0240478515625, -0.0005674362182617188, 0.017364501953125, 0.0249786376953125, -0.018951416015625, 0.0026264190673828125, 0.037445068359375, 0.0260772705078125, -0.0312347412109375, -0.034454345703125, 0.00525665283203125, -0.018218994140625, -0.028778076171875, -0.0028858184814453125, 0.01360321044921875, 0.01021575927734375, -0.0227508544921875, -0.0232696533203125, 0.050201416015625, 0.034423828125, 0.0028858184814453125, 0.017425537109375, -0.0274810791015625, -0.016754150390625, 0.005657196044921875, 0.01593017578125, -0.06439208984375, 0.04656982421875, -0.0067138671875, 0.045989990234375, 0.0019855499267578125, 0.0209197998046875, -0.057647705078125, 0.042388916015625, -0.0150299072265625, -0.0196685791015625, 0.0002143383026123047, 0.034210205078125, -0.00098419189453125, -0.01007843017578125, -0.01111602783203125, 0.0158843994140625, 0.0655517578125, 0.06524658203125, 0.031158447265625, -0.0078277587890625, 0.038299560546875, -0.0112152099609375, -0.022857666015625, 0.0350341796875, 0.0195465087890625, -0.041473388671875, -0.031219482421875, -0.0016393661499023438, -0.03302001953125, 0.005931854248046875, 0.021148681640625, 0.0201873779296875, 0.00925445556640625, -0.0194549560546875, -0.0653076171875, 0.0433349609375, 0.031585693359375, 0.0167999267578125, -0.00978851318359375, -0.0229034423828125, 0.045074462890625, -0.03741455078125, -0.00791168212890625, -0.06597900390625, -0.00455474853515625, -0.007595062255859375, 0.0247039794921875, -0.040283203125, -0.045501708984375, 0.00508880615234375, -0.0173492431640625, -0.00426483154296875, 0.017059326171875, 0.004940032958984375, -0.023834228515625, -0.03143310546875, -0.00009757280349731445, -0.0099029541015625, -0.00214385986328125, 0.0318603515625, 0.0100555419921875, -0.0105438232421875, 0.00018084049224853516, 0.0114288330078125, -0.0178070068359375, -0.048797607421875, -0.003780364990234375, -0.00015211105346679688, -0.053955078125, 0.060333251953125, 0.026123046875, 0.054779052734375, -0.015472412109375, 0.01264190673828125, 0.061767578125, 0.047637939453125, 0.037689208984375, -0.04290771484375, 0.00037288665771484375, -0.040313720703125, -0.006015777587890625, -0.018035888671875, -0.0099945068359375, 0.05419921875, -0.0017366409301757812, 0.0249481201171875, -0.037811279296875, 0.021636962890625, -0.07513427734375, 0.030914306640625, -0.029937744140625, 0.041107177734375, -0.032562255859375, 0.001506805419921875, 0.0257110595703125, -0.037872314453125, -0.01409912109375, -0.0153961181640625, -0.0172271728515625, -0.0162811279296875, -0.0220794677734375, 0.032012939453125, 0.00125885009765625, 0.059600830078125, -0.004955291748046875, -0.008941650390625, 0.001026153564453125, -0.0203094482421875, 0.0567626953125, -0.026824951171875, -0.004856109619140625, -0.03912353515625, 0.06689453125, -0.025787353515625, -0.0019779205322265625, 0.03717041015625, -0.00852203369140625, -0.0153045654296875, 0.00543212890625, 0.03778076171875, 0.044708251953125, -0.04034423828125, -0.018463134765625, 0.017974853515625, 0.032073974609375, -0.0129547119140625, 0.003509521484375, 0.0245819091796875, 0.038787841796875, -0.01381683349609375, 0.01043701171875, -0.001708984375, 0.03582763671875, 0.046356201171875, 0.0057220458984375, -0.006465911865234375, 0.0260162353515625, -0.0178985595703125, 0.01273345947265625, 0.037078857421875, -0.009521484375, 0.0036411285400390625, 0.039794921875, -0.0181427001953125, 0.0110626220703125, 0.052276611328125, -0.0018110275268554688, 0.02301025390625, 0.043609619140625, -0.02008056640625, 0.0169525146484375, 0.0115509033203125, -0.0204620361328125, -0.00690460205078125, 0.0173797607421875, -0.02508544921875, -0.01690673828125, 0.03668212890625, 0.03814697265625, -0.02618408203125, -0.01580810546875, -0.006717681884765625, -0.029388427734375, 0.01464080810546875, 0.0150299072265625, 0.05303955078125, -0.0028438568115234375, -0.016632080078125, -0.00447845458984375, -0.0226898193359375, -0.028228759765625, -0.004302978515625, -0.010009765625, 0.01079559326171875, 0.002208709716796875, 0.0550537109375, 0.00691986083984375, 0.00614166259765625, 0.057830810546875, 0.0164031982421875, 0.00829315185546875, -0.05279541015625, 0.05145263671875, -0.017303466796875, 0.054779052734375, 0.07861328125, 0.01282501220703125, -0.001544952392578125, 0.018096923828125, -0.021240234375, 0.0321044921875, -0.01213836669921875, -0.00872802734375, 0.0179290771484375, -0.04278564453125, 0.0279541015625, -0.0084075927734375, -0.002140045166015625, -0.01528167724609375, -0.03204345703125, -0.01206207275390625, 0.005939483642578125, 0.0111083984375, 0.056671142578125, 0.0181884765625, -0.0270538330078125, -0.005985260009765625, -0.004547119140625, -0.01136016845703125, -0.017913818359375, -0.004894256591796875, -0.0009655952453613281, -0.0176239013671875, -0.0149993896484375, -0.0377197265625, -0.005046844482421875, -0.03802490234375, 0.050994873046875, -0.01031494140625, 0.02557373046875, 0.015167236328125, 0.0294647216796875, 0.0224151611328125, 0.008056640625, 0.057098388671875, -0.003902435302734375, -0.01514434814453125, -0.006938934326171875, -0.0174102783203125, 0.00754547119140625, 0.047119140625, -0.00921630859375, 0.020050048828125, 0.0421142578125, -0.0213470458984375, -0.01212310791015625, -0.00344085693359375, 0.0217742919921875, -0.0009775161743164062, 0.0103607177734375, 0.0164794921875, -0.01123046875, -0.0227813720703125, -0.0479736328125, -0.045867919921875, -0.03802490234375, -0.07818603515625, -0.048553466796875, 0.045928955078125, 0.035125732421875, -0.053924560546875, 0.015167236328125, 0.00812530517578125, 0.03448486328125, 0.0557861328125, -0.0173797607421875, -0.0249176025390625, -0.00968170166015625, -0.0177764892578125, -0.03546142578125, 0.01488494873046875, -0.002460479736328125, 0.00084686279296875, -0.00682830810546875, 0.0013751983642578125, -0.0657958984375, 0.057373046875, -0.08746337890625, -0.0006532669067382812, 0.033355712890625, -0.03411865234375, -0.042266845703125, 0.013427734375, 0.005191802978515625, -0.00649261474609375, 0.0118560791015625, -0.01123046875, -0.030487060546875, -0.03363037109375, 0.0184326171875, -0.032623291015625, -0.06640625, 0.0231170654296875, -0.0025768280029296875, -0.08209228515625, 0.041656494140625, 0.0009508132934570312, -0.024566650390625, -0.002593994140625, -0.068359375, -0.02349853515625, -0.041259765625, -0.0018157958984375, -0.051025390625, -0.026397705078125, 0.03826904296875, -0.070068359375, 0.0222625732421875, -0.003932952880859375, -0.05975341796875, -0.042327880859375, 0.006092071533203125, -0.03143310546875, -0.000048041343688964844, 0.00902557373046875, 0.004108428955078125, -0.0032806396484375, 0.0244598388671875, -0.012359619140625, -0.001171112060546875, 0.012176513671875, 0.0031108856201171875, -0.0086822509765625, 0.06036376953125, 0.0325927734375, 0.00611114501953125, -0.00742340087890625, 0.041473388671875, 0.01044464111328125, 0.1085205078125, -0.01036834716796875, 0.0238494873046875, -0.003612518310546875, -0.032073974609375, -0.0102996826171875, -0.062408447265625, -0.05999755859375, 0.0169525146484375, -0.025970458984375, 0.0007266998291015625, -0.061737060546875, -0.04559326171875, 0.0138092041015625, -0.026641845703125, 0.0026073455810546875, 0.0084228515625, 0.03350830078125, 0.0199432373046875, -0.005176544189453125, 0.015106201171875, -0.017333984375, 0.0196533203125, 0.0244293212890625, 0.042266845703125, 0.007495880126953125, -0.01320648193359375, 0.06158447265625, -0.01279449462890625, 0.01210784912109375, -0.035736083984375, 0.072265625, -0.0283660888671875, -0.014434814453125, 0.032257080078125, -0.03814697265625, 0.0110626220703125, 0.0160369873046875, 0.010833740234375, -0.02069091796875, 0.01148223876953125, 0.041656494140625, 0.00446319580078125, -0.018585205078125, -0.0418701171875, -0.02783203125, 0.0105743408203125, -0.03375244140625, 0.027374267578125, 0.03350830078125, -0.00885772705078125, 0.0183258056640625, -0.00800323486328125, 0.016357421875, -0.0206298828125, 0.0062713623046875, -0.033111572265625, 0.03228759765625, -0.01275634765625, -0.010284423828125, -0.0092620849609375, -0.00978851318359375, 0.0218658447265625, 0.01168060302734375, -0.052581787109375, 0.002651214599609375, 0.0175933837890625, 0.035491943359375, 0.03656005859375, 0.0318603515625, 0.0511474609375, -0.0209197998046875, 0.0035190582275390625, 0.018768310546875, -0.033935546875, 0.0008807182312011719, -0.041595458984375, 0.018768310546875, 0.0161895751953125, -0.0145263671875, 0.0219879150390625, 0.04046630859375, -0.0000457763671875, 0.038238525390625, -0.028961181640625, 0.034637451171875, 0.01450347900390625, 0.0164642333984375, -0.007770538330078125, 0.0443115234375, -0.0021381378173828125, -0.020416259765625, 0.011962890625, -0.0079803466796875, -0.0199432373046875, 0.041290283203125, -0.0079345703125, 0.049346923828125, 0.01145172119140625, -0.029144287109375, 0.00688934326171875, -0.0174713134765625, 0.04638671875, 0.060089111328125, -0.022735595703125, -0.027374267578125, -0.01161956787109375, 0.004913330078125, 0.00797271728515625, -0.01222991943359375, -0.0228118896484375, -0.035980224609375, -0.037628173828125, 0.0831298828125, -0.06927490234375, 0.01165771484375, 0.0156707763671875, -0.039947509765625, -0.0211334228515625, 0.00400543212890625, -0.0172271728515625, -0.021820068359375, 0.01094818115234375, -0.0130157470703125, -0.00738525390625, 0.0021381378173828125, 0.024261474609375, -0.034820556640625, 0.004634857177734375, 0.0008473396301269531, -0.00678253173828125, 0.050018310546875, 0.019866943359375, -0.051971435546875, -0.005954742431640625, -0.0604248046875, -0.0280303955078125, -0.07666015625, -0.06976318359375, -0.0640869140625, 0.01102447509765625, -0.0012083053588867188, 0.0223388671875, -0.00696563720703125, 0.0209503173828125, 0.0174102783203125, 0.031829833984375, -0.0189666748046875, 0.07916259765625, -0.03179931640625, 0.057861328125, 0.02728271484375, 0.04736328125, 0.0186614990234375, 0.054595947265625, 0.0087127685546875, -0.04974365234375, 0.01806640625, -0.034271240234375, -0.0248870849609375, -0.01568603515625, -0.016510009765625, 0.0160980224609375, 0.037933349609375, 0.003421783447265625, -0.00316619873046875, -0.0160675048828125, 0.006160736083984375, -0.04071044921875, 0.0175933837890625, -0.017730712890625, 0.0284576416015625, -0.042694091796875, -0.00772857666015625, -0.0209197998046875, -0.0195770263671875, -0.022369384765625, 0.01091766357421875, 0.02618408203125, -0.01389312744140625, 0.0017032623291015625, -0.06787109375, 0.07470703125, 0.0859375, -0.003536224365234375, 0.046722412109375, -0.0028095245361328125, 0.002033233642578125, 0.023895263671875, 0.022674560546875, -0.01079559326171875, -0.03253173828125, 0.02777099609375, 0.022308349609375, 0.0000731348991394043, 0.03179931640625, -0.01027679443359375, 0.0265350341796875, 0.0005517005920410156, 0.034423828125, -0.0238800048828125, -0.000980377197265625, -0.0300140380859375, -0.019439697265625, 0.09283447265625, -0.01751708984375, 0.006992340087890625, -0.04364013671875, 0.039459228515625, 0.017822265625, -0.01526641845703125, 0.004375457763671875, -0.015716552734375, -0.01309967041015625, 0.01123809814453125, 0.0261993408203125, -0.00652313232421875, -0.044891357421875, -0.043670654296875, 0.036102294921875, -0.0419921875, -0.048095703125, -0.049102783203125, 0.03521728515625, -0.0584716796875, -0.1053466796875, 0.010955810546875, -0.03057861328125, 0.01352691650390625, 0.062103271484375, -0.007755279541015625, -0.0002409219741821289, 0.03594970703125, -0.01004791259765625, 0.0301361083984375, -0.008056640625, -0.042236328125, -0.065185546875, -0.041748046875, 0.037811279296875, -0.00951385498046875, -0.002292633056640625, 0.03753662109375, -0.0080718994140625, -0.08447265625, 0.00858306884765625, 0.0010280609130859375, 0.051116943359375, -0.04443359375, -0.01438140869140625, 0.0125732421875, -0.011627197265625, 0.00708770751953125, -0.01861572265625, 0.02642822265625, -0.00914764404296875, 0.033050537109375, -0.0162506103515625, 0.0166168212890625, -0.007671356201171875, -0.043487548828125, -0.06488037109375, 0.10101318359375, -0.043853759765625, 0.021209716796875, 0.015777587890625, 0.0309600830078125, -0.03179931640625, 0.008026123046875, -0.00482177734375, 0.061065673828125, -0.03363037109375, 0.08197021484375, -0.0219879150390625, -0.0150146484375, 0.058685302734375, 0.054718017578125, 0.035430908203125, 0.008056640625, 0.026092529296875, -0.0299072265625, 0.01824951171875, 0.039215087890625, -0.017486572265625, -0.0088348388671875, -0.039886474609375, 0.004245758056640625, -0.03564453125, -0.03826904296875, 0.00792694091796875, -0.03399658203125, -0.0789794921875, -0.0177154541015625, 0.00713348388671875, -0.015167236328125, -0.00238800048828125, 0.042388916015625, -0.031890869140625, 0.00305938720703125, 0.0180511474609375, -0.0184783935546875, -0.057830810546875, 0.032623291015625, 0.008819580078125, -0.053009033203125, -0.0024051666259765625, -0.043914794921875, 0.044769287109375, 0.0198822021484375, 0.045135498046875, 0.052886962890625, 0.039764404296875, 0.0195465087890625, -0.0256195068359375, 0.0341796875, -0.00193023681640625, -0.042999267578125, 0.003887176513671875, 0.01293182373046875, 0.0204315185546875, -0.047943115234375, -0.04400634765625, 0.0269012451171875, 0.0241546630859375, 0.00455474853515625, -0.014984130859375, 0.0142822265625, 0.01348114013671875, 0.0276336669921875, -0.0074462890625, 0.058837890625, -0.0170135498046875, 0.0017862319946289062, -0.01021575927734375, -0.029144287109375, -0.0005068778991699219, 0.041961669921875, 0.0023193359375, 0.011688232421875, -0.00855255126953125, -0.0469970703125, -0.0004737377166748047, -0.00870513916015625, -0.0015163421630859375, 0.0006566047668457031, -0.006412506103515625, 0.030029296875, 0.0103912353515625, 0.01215362548828125, 0.0263824462890625, 0.024261474609375, -0.00345611572265625, -0.040557861328125, -0.0310211181640625, -0.0740966796875, 0.030914306640625, 0.034393310546875, 0.01194000244140625, -0.0006322860717773438, 0.009368896484375, -0.016510009765625, -0.029388427734375, -0.0097808837890625, -0.01026153564453125, -0.034454345703125, -0.036956787109375, -0.0087127685546875, -0.005657196044921875, 0.04180908203125, -0.00852203369140625, 0.037506103515625, -0.0182952880859375, 0.048797607421875, -0.00356292724609375, -0.0178680419921875, 0.0113067626953125, -0.00885772705078125, -0.00333404541015625, 0.03753662109375, -0.049652099609375, 0.02484130859375, -0.0364990234375, -0.01511383056640625, 0.008941650390625, -0.045166015625, 0.0136260986328125, 0.04034423828125, -0.026702880859375, 0.0242767333984375, -0.0228271484375, 0.0182037353515625, -0.014556884765625, -0.053131103515625, 0.032012939453125, 0.0240325927734375, -0.015167236328125, 0.027740478515625, -0.0232391357421875, -0.035491943359375, -0.02252197265625, 0.058990478515625, 0.0287628173828125, 0.059478759765625, -0.0228118896484375, 0.0360107421875, -0.050384521484375, -0.01458740234375, 0.0068817138671875, -0.0286407470703125, 0.00423431396484375, 0.04107666015625, -0.0101776123046875, -0.0166473388671875, -0.038177490234375, 0.03900146484375, 0.02459716796875, -0.01154327392578125, 0.054901123046875, -0.032928466796875, 0.01047515869140625, -0.0244293212890625, -0.04107666015625, -0.04864501953125, -0.0263824462890625, -0.010406494140625, -0.00859832763671875, -0.0127105712890625, -0.02813720703125, 0.00013780593872070312, 0.043548583984375, -0.00286102294921875, 0.050201416015625, -0.00726318359375, 0.0297393798828125, -0.034271240234375, 0.01227569580078125, -0.035888671875, 0.029388427734375, 0.01061248779296875, -0.01123809814453125, 0.0218048095703125, 0.0074920654296875, -0.00594329833984375, 0.0033416748046875, -0.004253387451171875, -0.019439697265625, 0.0092926025390625, 0.0201568603515625, -0.00838470458984375, 0.007648468017578125, -0.0034637451171875, -0.0196380615234375, -0.0002086162567138672, -0.0293426513671875, -0.007366180419921875, -0.01453399658203125, -0.03399658203125, 0.022186279296875, -0.0423583984375, -0.0279693603515625, -0.06085205078125, -0.00921630859375, 0.01861572265625, -0.0087127685546875, -0.0098724365234375, -0.0119476318359375, -0.017425537109375, 0.042083740234375, -0.01788330078125, -0.01824951171875, 0.0181732177734375, 0.036376953125, -0.0309600830078125, -0.036346435546875, -0.0251922607421875, 0.007472991943359375, -0.042266845703125, 0.0246124267578125, 0.00978851318359375, -0.01528167724609375, 0.036773681640625, 0.035003662109375, 0.0196990966796875, 0.089111328125, -0.0001163482666015625, -0.022186279296875, -0.0158233642578125, -0.0013828277587890625, -0.0040435791015625, -0.02655029296875, 0.027252197265625, -0.068603515625, -0.059539794921875, -0.0153961181640625, -0.0122528076171875, 0.007045745849609375, -0.042755126953125, -0.059417724609375, 0.0295257568359375, -0.00017130374908447266, -0.027252197265625, 0.00339508056640625, -0.00653076171875, 0.0142669677734375, -0.0509033203125, -0.004619598388671875, 0.00015974044799804688, -0.02081298828125, 0.0223846435546875, 0.007411956787109375, 0.047576904296875, 0.011444091796875, 0.017608642578125, 0.035247802734375, 0.038818359375, 0.0214996337890625, -0.0136871337890625, -0.0631103515625, 0.022857666015625, -0.0097503662109375, 0.0156707763671875, -0.035675048828125, 0.02899169921875, 0.0129852294921875, 0.059295654296875, -0.004940032958984375, 0.005962371826171875, -0.034942626953125, -0.00446319580078125, 0.039398193359375, 0.075927734375, 0.0185394287109375, -0.037078857421875, 0.00408935546875, -0.0257415771484375, -0.018585205078125, -0.0191802978515625, 0.0239410400390625, -0.06591796875, -0.01763916015625, 0.0214385986328125, -0.0017108917236328125, -0.0036983489990234375, -0.060943603515625, -0.029296875, -0.01235198974609375, -0.04541015625, -0.0025577545166015625, 0.0325927734375, 0.028228759765625, -0.0082550048828125, -0.01141357421875, 0.0165863037109375, -0.047607421875, -0.00020003318786621094, 0.0089111328125, -0.051971435546875, -0.0439453125, -0.05377197265625, 0.01360321044921875, 0.0517578125, -0.024444580078125, 0.06439208984375, -0.025634765625, -0.01003265380859375, -0.00048661231994628906, -0.013671875, 0.0178680419921875, -0.008056640625, -0.021697998046875, -0.013946533203125, -0.01146697998046875, -0.01155853271484375, -0.0120086669921875, -0.00041556358337402344, -0.028411865234375, 0.0404052734375, -0.007259368896484375, -0.00391387939453125, 0.0162506103515625, -0.01320648193359375, -0.00848388671875, 0.0222930908203125, 0.004795074462890625, -0.0726318359375, 0.07098388671875, -0.0277099609375, 0.0303192138671875, 0.04437255859375 ]
519c7b081b07c263b59202aea8410787ee773ec0
Wordpress Stackexchange Q: Wordpress Admin Tooltip hooks I want to know if there is a way to use Wordpress Adminitration Tooltips (de gray and blue ones) that are shown one you update your worpdress (3.x). Showing the new features. Thanks! A: Here is the simplest implementation I know of since there is no real API: //add the needed scripts and styles add_action('admin_enqueue_scripts', 'wpse_46028_enqueue_admin_scripts'); function wpse_46028_enqueue_admin_scripts() { wp_enqueue_style('wp-pointer'); wp_enqueue_script('wp-pointer'); //hook the pointer add_action('admin_print_footer_scripts', 'wpse_46028_print_footer_scripts' ); } function wpse_46028_print_footer_scripts() { $pointer_content = '<h3>WordPress Answers</h3>'; $pointer_content .= '<p>This is your pointer content</p>'; ?> <script type="text/javascript"> //<![CDATA[ jQuery(document).ready( function($) { //jQuery selector to point to $('#menu-dashboard').pointer({ content: '<?php echo $pointer_content; ?>', position: 'top', close: function() { // This function is fired when you click the close button } }).pointer('open'); }); //]]> </script> <?php }
Q: Wordpress Admin Tooltip hooks I want to know if there is a way to use Wordpress Adminitration Tooltips (de gray and blue ones) that are shown one you update your worpdress (3.x). Showing the new features. Thanks! A: Here is the simplest implementation I know of since there is no real API: //add the needed scripts and styles add_action('admin_enqueue_scripts', 'wpse_46028_enqueue_admin_scripts'); function wpse_46028_enqueue_admin_scripts() { wp_enqueue_style('wp-pointer'); wp_enqueue_script('wp-pointer'); //hook the pointer add_action('admin_print_footer_scripts', 'wpse_46028_print_footer_scripts' ); } function wpse_46028_print_footer_scripts() { $pointer_content = '<h3>WordPress Answers</h3>'; $pointer_content .= '<p>This is your pointer content</p>'; ?> <script type="text/javascript"> //<![CDATA[ jQuery(document).ready( function($) { //jQuery selector to point to $('#menu-dashboard').pointer({ content: '<?php echo $pointer_content; ?>', position: 'top', close: function() { // This function is fired when you click the close button } }).pointer('open'); }); //]]> </script> <?php } A: There is always a way, as shown by some plugins utilizing these pointers, but they are currently meant as an internal core feature and thus have no real API for use.
wordpress
{ "language": "en", "length": 160, "provenance": "stackexchange_00019.jsonl.gz:418196", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46028" }
[ 0.049163818359375, 0.0117645263671875, 0.035552978515625, 0.0152587890625, 0.0273284912109375, -0.03900146484375, 0.07586669921875, -0.06439208984375, -0.0223388671875, 0.036041259765625, -0.02764892578125, -0.0240631103515625, 0.01554107666015625, -0.00861358642578125, -0.0206451416015625, -0.035003662109375, 0.03411865234375, -0.029022216796875, 0.0139007568359375, -0.0013484954833984375, -0.020355224609375, 0.0159454345703125, 0.00823211669921875, 0.052947998046875, -0.0034427642822265625, -0.0469970703125, 0.0709228515625, -0.0008440017700195312, -0.0039520263671875, -0.0124359130859375, 0.0139617919921875, -0.01218414306640625, 0.021759033203125, 0.0263671875, -0.0323486328125, 0.0430908203125, 0.000052928924560546875, 0.0241851806640625, 0.022247314453125, 0.01357269287109375, 0.0155181884765625, 0.01345062255859375, -0.0396728515625, 0.060333251953125, -0.05596923828125, -0.0250244140625, -0.032745361328125, -0.031768798828125, 0.041961669921875, -0.0236663818359375, 0.030059814453125, 0.0002034902572631836, 0.0251617431640625, -0.03631591796875, -0.018035888671875, 0.0467529296875, 0.0041656494140625, -0.055511474609375, 0.019256591796875, 0.044281005859375, 0.0114288330078125, -0.0190277099609375, -0.0060272216796875, -0.06512451171875, 0.0020580291748046875, 0.01117706298828125, 0.0186920166015625, 0.0019006729125976562, 0.0010995864868164062, 0.01326751708984375, -0.0007228851318359375, -0.009735107421875, -0.00901031494140625, 0.02130126953125, 0.040313720703125, -0.051971435546875, 0.0229339599609375, 0.00995635986328125, -0.00013911724090576172, 0.0565185546875, 0.00867462158203125, 0.035797119140625, -0.03680419921875, 0.0208892822265625, -0.00616455078125, 0.041534423828125, -0.019561767578125, -0.0399169921875, -0.0238037109375, -0.01496124267578125, -0.01450347900390625, 0.01277923583984375, -0.0286865234375, -0.0001798868179321289, -0.0108489990234375, -0.0308685302734375, -0.0170745849609375, 0.0232086181640625, -0.0149383544921875, 0.006397247314453125, -0.0285186767578125, -0.00251007080078125, -0.0111083984375, -0.019317626953125, 0.0184173583984375, 0.046783447265625, -0.00591278076171875, -0.028900146484375, 0.0168609619140625, -0.0113372802734375, -0.01287078857421875, -0.01519775390625, -0.0034122467041015625, -0.0005831718444824219, -0.0211181640625, -0.01262664794921875, -0.058868408203125, 0.0322265625, -0.0016088485717773438, 0.04779052734375, -0.00600433349609375, -0.00482177734375, 0.0144500732421875, -0.0047149658203125, 0.031158447265625, 0.0023288726806640625, -0.0430908203125, -0.0028362274169921875, -0.01160430908203125, -0.00722503662109375, -0.00955963134765625, 0.0079345703125, 0.033416748046875, 0.0374755859375, 0.0208282470703125, -0.01349639892578125, 0.0662841796875, 0.00213623046875, -8.940696716308594e-7, -0.0223236083984375, 0.0221099853515625, 0.01947021484375, -0.0169219970703125, -0.01947021484375, -0.0137786865234375, -0.006946563720703125, 0.0163421630859375, 0.027130126953125, 0.005649566650390625, -0.04180908203125, 0.0190887451171875, 0.0008831024169921875, 0.0164947509765625, 0.0168304443359375, -0.002117156982421875, -0.032379150390625, 0.0295867919921875, -0.027252197265625, 0.01200103759765625, -0.04254150390625, -0.027191162109375, -0.029541015625, 0.013763427734375, -0.06903076171875, -0.056732177734375, 0.0131378173828125, -0.03692626953125, 0.0020580291748046875, 0.020904541015625, 0.05615234375, 0.018402099609375, -0.05303955078125, -0.0265960693359375, 0.0282745361328125, 0.0030307769775390625, 0.032562255859375, 0.013885498046875, 0.01483154296875, 0.049652099609375, -0.035858154296875, -0.048553466796875, -0.045074462890625, 0.084228515625, -0.043121337890625, -0.03466796875, 0.00713348388671875, 0.0206451416015625, 0.04754638671875, -0.01160430908203125, 0.0129852294921875, 0.023162841796875, 0.0034580230712890625, 0.01525115966796875, -0.006595611572265625, -0.018463134765625, -0.02557373046875, -0.02386474609375, 0.01983642578125, -0.039581298828125, 0.00003641843795776367, 0.007389068603515625, 0.0254974365234375, 0.00872802734375, 0.00666046142578125, -0.0535888671875, 0.055908203125, -0.0347900390625, 0.04742431640625, 0.02642822265625, -0.01457977294921875, 0.006328582763671875, -0.006458282470703125, -0.0145721435546875, -0.03424072265625, -0.0628662109375, -0.01175689697265625, -0.01468658447265625, 0.05596923828125, -0.00799560546875, 0.045745849609375, 0.0201568603515625, -0.06683349609375, 0.01277923583984375, 0.031097412109375, 0.00646209716796875, -0.0272369384765625, -0.00539398193359375, -0.0239105224609375, 0.0030155181884765625, -0.0103607177734375, 0.00786590576171875, 0.0347900390625, 0.026702880859375, 0.031280517578125, -0.002368927001953125, -0.0196685791015625, 0.01361083984375, -0.09588623046875, 0.0155487060546875, 0.051971435546875, 0.047607421875, 0.0498046875, -0.008758544921875, -0.0216064453125, 0.061553955078125, -0.050750732421875, 0.006744384765625, -0.0196075439453125, -0.02105712890625, 0.0090179443359375, -0.00891876220703125, 0.0073089599609375, 0.0304412841796875, -0.0172576904296875, 0.00298309326171875, 0.037689208984375, -0.0016622543334960938, 0.0191192626953125, -0.040008544921875, 0.004413604736328125, 0.0191497802734375, -0.0142822265625, -0.025604248046875, -0.00022280216217041016, 0.06683349609375, -0.01922607421875, 0.06402587890625, 0.052825927734375, -0.03131103515625, -0.0301971435546875, 0.0191650390625, 0.059356689453125, 0.006191253662109375, 0.01306915283203125, 0.0236053466796875, -0.0433349609375, -0.0270843505859375, -0.002567291259765625, 0.0277557373046875, -0.0023708343505859375, -0.006855010986328125, 0.01488494873046875, 0.01641845703125, -0.0060577392578125, 0.0184783935546875, -0.0147247314453125, -0.002666473388671875, -0.035064697265625, 0.053192138671875, 0.0215911865234375, 0.034210205078125, 0.0032787322998046875, -0.026641845703125, 0.036102294921875, 0.0391845703125, -0.0360107421875, -0.0036067962646484375, -0.0313720703125, 0.0207366943359375, -0.01153564453125, 0.056396484375, 0.0694580078125, 0.026214599609375, -0.0015354156494140625, -0.02276611328125, 0.027984619140625, 0.00298309326171875, -0.005359649658203125, -0.0263824462890625, -0.0579833984375, 0.042327880859375, 0.041900634765625, 0.0308074951171875, 0.0621337890625, -0.03277587890625, -0.0528564453125, -0.0210113525390625, 0.016815185546875, -0.11676025390625, -0.1197509765625, -0.0163421630859375, -0.08111572265625, 0.01554107666015625, 0.00864410400390625, -0.045562744140625, -0.018157958984375, 0.054840087890625, 0.0006017684936523438, -0.0027980804443359375, 0.01055908203125, -0.0168304443359375, 0.01192474365234375, -0.0301971435546875, 0.0243988037109375, -0.0178680419921875, 0.000957489013671875, 0.021942138671875, -0.014495849609375, -0.00281524658203125, -0.047454833984375, 0.01702880859375, 0.0218963623046875, -0.0140533447265625, 0.00780487060546875, 0.04217529296875, -0.001705169677734375, 0.0160675048828125, 0.0285797119140625, -0.0309295654296875, 0.0178375244140625, -0.018157958984375, -0.048309326171875, -0.017120361328125, -0.0362548828125, 0.0321044921875, -0.007701873779296875, -0.012237548828125, -0.004436492919921875, 0.041473388671875, -0.03594970703125, -0.0167694091796875, 0.017669677734375, -0.0374755859375, -0.0250701904296875, 0.043670654296875, -0.0252227783203125, 0.01128387451171875, -0.04144287109375, 0.045684814453125, 0.0189666748046875, -0.01262664794921875, 0.0226898193359375, -0.002651214599609375, -0.006744384765625, 0.0160369873046875, -0.02392578125, -0.03472900390625, -0.03228759765625, 0.053009033203125, -0.01097869873046875, 0.0107879638671875, 0.005519866943359375, 0.023193359375, 0.0230560302734375, -0.038726806640625, 0.03826904296875, -0.0002925395965576172, -0.01007080078125, 0.006134033203125, -0.0186920166015625, 0.023529052734375, 0.061767578125, -0.037628173828125, -0.01751708984375, -0.01558685302734375, 0.0066986083984375, -0.0374755859375, -0.01336669921875, -0.0235595703125, 0.00431060791015625, -0.158447265625, 0.025787353515625, 0.0115509033203125, -0.052703857421875, -0.026763916015625, 0.047515869140625, -0.08526611328125, -0.04119873046875, 0.052093505859375, -0.041534423828125, -0.00759124755859375, 0.01094818115234375, -0.034332275390625, -0.01058197021484375, -0.02447509765625, -0.0161590576171875, -0.0718994140625, -0.02606201171875, -0.01534271240234375, 0.048980712890625, 0.0255279541015625, -0.034088134765625, -0.0235443115234375, 0.03125, -0.0153045654296875, 0.01242828369140625, -0.003566741943359375, 0.033660888671875, -0.019744873046875, -0.039886474609375, -0.0106964111328125, -0.037567138671875, -0.00560760498046875, -0.00682830810546875, -0.045135498046875, 0.0130462646484375, 0.008819580078125, 0.0211181640625, 0.058807373046875, -0.037017822265625, -0.034271240234375, -0.0175933837890625, -0.04400634765625, -0.0022449493408203125, -0.022247314453125, -0.01084136962890625, -0.0248870849609375, -0.048065185546875, 0.0250091552734375, -0.03875732421875, -0.00904083251953125, 0.01081085205078125, 0.0303497314453125, 0.0286712646484375, 0.002246856689453125, 0.0250396728515625, -0.0163421630859375, 0.027191162109375, 0.006786346435546875, 0.05023193359375, 0.024871826171875, -0.01477813720703125, 0.056243896484375, 0.009124755859375, -0.00397491455078125, -0.04986572265625, 0.04833984375, 0.026519775390625, 0.006839752197265625, -0.003574371337890625, 0.0198211669921875, 0.0236663818359375, -0.00223541259765625, -0.0243988037109375, -0.0167236328125, -0.068115234375, 0.06854248046875, 0.0280303955078125, 0.035888671875, -0.068359375, -0.0185394287109375, -0.0007586479187011719, -0.0188446044921875, 0.0447998046875, 0.0264892578125, -0.003528594970703125, 0.00818634033203125, 0.044921875, 0.003902435302734375, 0.00920867919921875, 0.047149658203125, -0.006229400634765625, 0.0222625732421875, 0.054534912109375, -0.0018129348754882812, -0.0421142578125, -0.00730133056640625, 0.049224853515625, 0.00698089599609375, -0.043853759765625, -0.0179443359375, -0.0038318634033203125, 0.047210693359375, -0.01727294921875, -0.00921630859375, 0.03240966796875, 0.06732177734375, -0.02294921875, -0.03619384765625, 0.0190887451171875, 0.0283050537109375, -0.048797607421875, 0.02313232421875, 0.01299285888671875, -0.0119476318359375, -0.007740020751953125, 0.046478271484375, 0.031707763671875, 0.0008935928344726562, -0.019989013671875, 0.0220947265625, -0.0231781005859375, 0.025390625, 0.001926422119140625, 0.03863525390625, -0.0035877227783203125, 0.005718231201171875, -0.00937652587890625, -0.0218505859375, 0.013580322265625, 0.0204010009765625, 0.002399444580078125, 0.0001170039176940918, -0.0240478515625, 0.005336761474609375, 0.0156707763671875, -0.026153564453125, 0.02508544921875, -0.0167236328125, -0.0382080078125, -0.022216796875, 0.038177490234375, 0.030242919921875, 0.0205841064453125, 0.01361083984375, -0.0068817138671875, -0.0328369140625, -0.00749969482421875, -0.021453857421875, 0.00931549072265625, -0.0299072265625, -0.035186767578125, -0.006862640380859375, -0.005313873291015625, -0.003570556640625, -0.052520751953125, -0.03216552734375, -0.0110626220703125, 0.012420654296875, 0.037384033203125, -0.01128387451171875, 0.0162506103515625, -0.058502197265625, 0.01983642578125, -0.06097412109375, -0.0174713134765625, 0.08026123046875, 0.044891357421875, -0.08331298828125, 0.01110076904296875, -0.06512451171875, 0.00258636474609375, -0.0625, -0.06634521484375, -0.0298614501953125, -0.003421783447265625, 0.0264434814453125, 0.016387939453125, 0.005321502685546875, -0.02587890625, -0.003215789794921875, 0.0201263427734375, 0.0257568359375, 0.081787109375, -0.000614166259765625, 0.06982421875, -0.0277557373046875, 0.006938934326171875, 0.0189666748046875, 0.04437255859375, -0.001880645751953125, -0.01541900634765625, 0.0151824951171875, -0.039337158203125, -0.003757476806640625, 0.0032062530517578125, -0.0391845703125, -0.0157623291015625, 0.023590087890625, -0.01337432861328125, 0.0457763671875, 0.0260009765625, 0.028106689453125, -0.006610870361328125, -0.060394287109375, 0.000865936279296875, 0.0111083984375, 0.060516357421875, 0.0273895263671875, 0.0654296875, -0.0162200927734375, -0.037445068359375, -0.002330780029296875, 0.0251922607421875, 0.01293182373046875, -0.0015773773193359375, -0.01229095458984375, 0.03729248046875, 0.08526611328125, -0.0028820037841796875, 0.03961181640625, 0.041015625, -0.0027904510498046875, -0.0020961761474609375, -0.0118865966796875, 0.060546875, 0.00885772705078125, 0.04351806640625, -0.021148681640625, -0.01395416259765625, 0.0294036865234375, -0.046173095703125, 0.0016813278198242188, 0.019378662109375, 0.0158843994140625, -0.03680419921875, 0.0176239013671875, -0.018218994140625, -0.0252685546875, 0.0262603759765625, -0.01531219482421875, -0.0152740478515625, -0.0264129638671875, 0.0010805130004882812, 0.0253143310546875, -0.04083251953125, -0.02685546875, 0.0107574462890625, -0.0079345703125, 0.024078369140625, -0.0017242431640625, -0.00885772705078125, -0.0245819091796875, -0.04498291015625, 0.01212310791015625, -0.0156707763671875, 0.0045623779296875, -0.00797271728515625, 0.01152801513671875, -0.0298004150390625, -0.04095458984375, 0.0029144287109375, -0.021942138671875, -0.0252227783203125, 0.038970947265625, 0.0102081298828125, 0.02294921875, 0.058746337890625, -0.0007357597351074219, 0.0001552104949951172, 0.00799560546875, 0.04962158203125, -0.0159454345703125, -0.0167388916015625, 0.035797119140625, 0.0012216567993164062, -0.062408447265625, 0.018035888671875, -0.03338623046875, -0.0159149169921875, 0.00579071044921875, 0.04437255859375, 0.06256103515625, -0.0253448486328125, -0.041168212890625, 0.032958984375, -0.0303802490234375, -0.00652313232421875, -0.0149078369140625, -0.004413604736328125, -0.08013916015625, -0.07568359375, -0.0269775390625, -0.0928955078125, 0.0162200927734375, -0.057403564453125, -0.030487060546875, 0.08807373046875, 0.0104217529296875, -0.0184783935546875, 0.0101318359375, 0.04351806640625, -0.032470703125, 0.02569580078125, -0.0340576171875, 0.0679931640625, 0.032257080078125, 0.0182952880859375, -0.0245361328125, 0.0011777877807617188, -0.0030612945556640625, 0.0188140869140625, 0.00318145751953125, -0.0008649826049804688, 0.016571044921875, 0.0013494491577148438, 0.04339599609375, -0.0018787384033203125, -0.0154571533203125, 0.008209228515625, 0.01474761962890625, -0.0131683349609375, 0.01495361328125, -0.03106689453125, 0.0267181396484375, -0.047119140625, 0.0020008087158203125, 0.033966064453125, -0.00885009765625, -0.0104827880859375, 0.01959228515625, -0.033447265625, -0.0238037109375, 0.02386474609375, 0.006626129150390625, -0.017913818359375, -0.00847625732421875, 0.034576416015625, 0.0228424072265625, -0.005283355712890625, -0.01849365234375, -0.0205535888671875, 0.02301025390625, 0.0222625732421875, -0.0001996755599975586, -0.015869140625, 0.01407623291015625, 0.00908660888671875, 0.01204681396484375, -0.01556396484375, 0.03924560546875, -0.01412200927734375, 0.05609130859375, 0.03369140625, 0.033660888671875, -0.033477783203125, -0.035797119140625, 0.037628173828125, 0.0732421875, -0.0160064697265625, -0.033294677734375, 0.007381439208984375, 0.00765228271484375, 0.0153656005859375, -0.001972198486328125, 0.0447998046875, -0.03863525390625, -0.0102691650390625, -0.00823974609375, -0.0224609375, 0.018798828125, -0.006504058837890625, 0.0151824951171875, 0.03955078125, 0.015289306640625, -0.01291656494140625, -0.0013790130615234375, -0.00820159912109375, 0.0227508544921875, 0.016876220703125, -0.034423828125, 0.053802490234375, -0.038909912109375, -0.0016021728515625, 0.00934600830078125, -0.0013666152954101562, 0.0406494140625, -0.034515380859375, 0.01276397705078125, -0.00244903564453125, 0.0285491943359375, 0.00588226318359375, 0.0166015625, 0.046905517578125, 0.052490234375, -0.0032100677490234375, -0.0396728515625, 0.01412200927734375, 0.04510498046875, -0.04034423828125, -0.0213470458984375, 0.0030384063720703125, 0.009735107421875, 0.033538818359375, 0.0095977783203125, 0.00937652587890625, 0.07037353515625, 0.01276397705078125, -0.05316162109375, 0.040252685546875, -0.016571044921875, -0.0189361572265625, 0.02264404296875, -0.026092529296875, 0.0165557861328125, -0.028472900390625, -0.05218505859375, -0.01959228515625, 0.00975799560546875, -0.005970001220703125, 0.0291290283203125, 0.034088134765625, -0.00919342041015625, 0.021697998046875, -0.00818634033203125, 0.018035888671875, 0.0027332305908203125, -0.0287933349609375, -0.0010633468627929688, -0.002086639404296875, 0.0313720703125, 0.00179290771484375, 0.0268402099609375, 0.0226287841796875, 0.046356201171875, 0.0202484130859375, 0.0035495758056640625, 0.00777435302734375, 0.0061798095703125, -0.0011873245239257812, -0.00656890869140625, 0.0203857421875, -0.03839111328125, -0.016204833984375, -0.0018072128295898438, -0.0242156982421875, 0.0191802978515625, -0.004009246826171875, -0.09869384765625, 0.00267791748046875, 0.00514984130859375, 0.0145263671875, 0.0208587646484375, -0.033660888671875, 0.03369140625, 0.0244598388671875, 0.025848388671875, -0.03363037109375, -0.032440185546875, -0.0290985107421875, -0.024871826171875, 0.007450103759765625, 0.0165863037109375, 0.045745849609375, 0.0291290283203125, 0.0219879150390625, 0.003040313720703125, 0.008636474609375, -0.004764556884765625, 0.0268096923828125, 0.026092529296875, -0.02978515625, 0.017791748046875, 0.0164794921875, -0.01502227783203125, 0.0123138427734375, 0.0004591941833496094, 0.01383209228515625, -0.0128631591796875, 0.0189056396484375, 0.0258026123046875, -0.031219482421875, -0.0016536712646484375, -0.037078857421875, -0.0341796875, 0.006305694580078125, 0.01117706298828125, -0.02130126953125, 0.0164337158203125, -0.027618408203125, -0.053802490234375, 0.01284027099609375, 0.021240234375, -0.01544952392578125, -0.0153656005859375, -0.06494140625, 0.025482177734375, 0.054840087890625, 0.028594970703125, -0.08447265625, 0.037628173828125, -0.0335693359375, 0.06658935546875, 0.0191192626953125, 0.039520263671875, -0.0177459716796875, -0.011077880859375, -0.01432037353515625, 0.0013256072998046875, -0.0133514404296875, 0.0330810546875, 0.01459503173828125, 0.023223876953125, 0.0172271728515625, -0.048370361328125, 0.0501708984375, 0.007354736328125, 0.040435791015625, 0.07110595703125, 0.06304931640625, -0.024383544921875, -0.0014934539794921875, 0.0284881591796875, 0.00001239776611328125, -0.045867919921875, -0.0030689239501953125, -0.0308074951171875, -0.0021152496337890625, -0.004871368408203125, -0.03436279296875, -0.0186614990234375, -0.052154541015625, -0.08026123046875, 0.06304931640625, -0.004924774169921875, -0.0256500244140625, 0.01081085205078125, -0.003101348876953125, -0.01340484619140625, -0.01666259765625, 0.00318145751953125, -0.02130126953125, -0.022796630859375, 0.00910186767578125, 0.039337158203125, 0.0207366943359375, 0.0273284912109375, 0.010589599609375, -0.024688720703125, 0.0221099853515625, 0.005344390869140625, 0.00992584228515625, -0.0149688720703125, -0.01128387451171875, 0.0159759521484375, 0.01702880859375, -0.033111572265625, -0.0628662109375, 0.0063018798828125, -0.0084228515625, -0.0183258056640625, -0.01000213623046875, -0.017822265625, 0.0012674331665039062, 0.06268310546875, 0.046905517578125, 0.019439697265625, -0.04498291015625, 0.01131439208984375, -0.0249481201171875, -0.0010137557983398438, -0.017425537109375, 0.01242828369140625, -0.0361328125, -0.0130767822265625, 0.0037288665771484375, 0.00778961181640625, -0.0229034423828125, 0.0014467239379882812, -0.007381439208984375, -0.0162506103515625, 0.031951904296875, 0.00916290283203125, -0.040130615234375, -0.037811279296875, 0.07330322265625, -0.04852294921875, -0.0168914794921875, 0.019195556640625, 0.0350341796875, 0.01708984375, -0.016387939453125, -0.0175018310546875, 0.0022144317626953125, -0.02362060546875, 0.025909423828125, -0.01073455810546875, 0.0101470947265625, -0.031097412109375, 0.00009799003601074219, 0.00008279085159301758, 0.027740478515625, -0.003818511962890625, 0.02490234375, -0.0239410400390625, 0.037872314453125, -0.01485443115234375, 0.039520263671875, -0.0150299072265625, 0.054901123046875, -0.02783203125, 0.06292724609375, 0.006534576416015625, -0.016387939453125, 0.0218353271484375, -0.02587890625, 0.01837158203125, 0.0230560302734375, 0.046356201171875, -0.0433349609375, 0.033355712890625, 0.03765869140625, 0.0228729248046875, 0.0248870849609375 ]
c5a9dc696d8036f50218dd49056b65978b9b0223
Wordpress Stackexchange Q: Display all search results Is there a way to display all the search results on the search.php? Actually it is displaying only 10 results (as set in WordPress settings > general). A: The quick and dirty way to do it would be to use query_posts again, doubling the number of database calls. <?php if (have_posts()) : ?> <?php query_posts('showposts=999'); ?> Better would be to add this to functions.php, altering the original query before it is executed: function change_wp_search_size($query) { if ( $query->is_search ) // Make sure it is a search page $query->query_vars['posts_per_page'] = 10; // Change 10 to the number of posts you would like to show return $query; // Return our modified query variables } add_filter('pre_get_posts', 'change_wp_search_size'); // Hook our custom function onto the request filter If you want to show an unlimited amount of posts, use -1.
Q: Display all search results Is there a way to display all the search results on the search.php? Actually it is displaying only 10 results (as set in WordPress settings > general). A: The quick and dirty way to do it would be to use query_posts again, doubling the number of database calls. <?php if (have_posts()) : ?> <?php query_posts('showposts=999'); ?> Better would be to add this to functions.php, altering the original query before it is executed: function change_wp_search_size($query) { if ( $query->is_search ) // Make sure it is a search page $query->query_vars['posts_per_page'] = 10; // Change 10 to the number of posts you would like to show return $query; // Return our modified query variables } add_filter('pre_get_posts', 'change_wp_search_size'); // Hook our custom function onto the request filter If you want to show an unlimited amount of posts, use -1. A: Pretty easy: -1 overrides the limit. Just merge the default query with your custom arguments. global $wp_query; query_posts( wp_parse_args( $wp_query->query ,array( 'posts_per_page' => -1 ) ) ); A: Try http://wordpress.org/extend/plugins/custom-post-limits/ You can set independent post limits/numbers for all kinds of results, i.e. search, category, tag, archives, author, paged, etc., without needing page templates or custom loops.
wordpress
{ "language": "en", "length": 197, "provenance": "stackexchange_00019.jsonl.gz:418203", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46049" }
[ 0.09197998046875, -0.020477294921875, 0.04010009765625, -0.01153564453125, 0.0025463104248046875, -0.037322998046875, 0.10406494140625, -0.0192718505859375, 0.05108642578125, 0.0169677734375, -0.052337646484375, -0.02813720703125, -0.042999267578125, -0.0188140869140625, -0.048828125, -0.057861328125, 0.04632568359375, -0.04058837890625, 0.0179443359375, -0.00955963134765625, 0.0174407958984375, 0.0085296630859375, 0.05072021484375, 0.0643310546875, -0.0028285980224609375, -0.034912109375, 0.06378173828125, -0.04736328125, -0.012908935546875, -0.054534912109375, -0.0028076171875, 0.0665283203125, 0.02716064453125, -0.0014476776123046875, -0.0003781318664550781, 0.0133056640625, 0.0255126953125, -0.009735107421875, -0.0057525634765625, 0.0246734619140625, 0.037994384765625, -0.0164947509765625, -0.0025997161865234375, 0.00977325439453125, -0.00015282630920410156, -0.03192138671875, 0.0489501953125, -0.041351318359375, -0.0262908935546875, -0.038543701171875, 0.0265350341796875, 0.02630615234375, 0.04205322265625, -0.0301513671875, -0.0091705322265625, 0.01537322998046875, 0.0374755859375, -0.022125244140625, 0.042999267578125, -0.08135986328125, -0.04388427734375, -0.013824462890625, 0.049591064453125, 0.0202484130859375, -0.02813720703125, 0.002902984619140625, -0.01032257080078125, -0.004146575927734375, -0.01204681396484375, -0.027252197265625, 0.0273590087890625, -0.00991058349609375, 0.004756927490234375, 0.00260162353515625, 0.0029315948486328125, -0.037933349609375, -0.0014400482177734375, -0.009490966796875, 0.007465362548828125, 0.0095672607421875, 0.0120086669921875, -0.0243072509765625, -0.03692626953125, 0.0015316009521484375, -0.016143798828125, -0.013153076171875, 0.0027828216552734375, 0.00510406494140625, -0.00630950927734375, -0.036346435546875, -0.00444793701171875, -0.004886627197265625, -0.07586669921875, 0.00038886070251464844, 0.0178985595703125, -0.0677490234375, 0.0116119384765625, 0.0037326812744140625, 0.0115509033203125, 0.01201629638671875, -0.036834716796875, -0.00835418701171875, -0.023162841796875, -0.0113372802734375, 0.0005340576171875, -0.010528564453125, -0.01044464111328125, 0.0160369873046875, 0.051239013671875, 0.06976318359375, 0.0269775390625, 0.04425048828125, -0.05126953125, -0.0082244873046875, -0.025909423828125, 0.0207977294921875, -0.06683349609375, 0.008697509765625, -0.01132965087890625, 0.0125885009765625, -0.001953125, 0.0176239013671875, -0.0029735565185546875, -0.006683349609375, -0.02886962890625, -0.035675048828125, -0.006961822509765625, -0.01256561279296875, 0.005046844482421875, 0.01064300537109375, -0.01178741455078125, 0.023681640625, -0.004329681396484375, -0.00980377197265625, -0.033233642578125, -0.01116180419921875, 0.00943756103515625, -0.00004875659942626953, -0.00231170654296875, 0.030059814453125, -0.0285797119140625, -0.051300048828125, 0.012115478515625, 0.006298065185546875, 0.0400390625, -0.01352691650390625, 0.03826904296875, 0.037567138671875, 0.010955810546875, -0.006786346435546875, -0.01447296142578125, 0.0853271484375, 0.0245513916015625, 0.00695037841796875, -0.044036865234375, -0.00763702392578125, 0.00025391578674316406, -0.017364501953125, -0.004627227783203125, -0.0244903564453125, 0.0162506103515625, 0.00672149658203125, 0.0267486572265625, 0.00421905517578125, 0.0011682510375976562, -0.03662109375, -0.024658203125, -0.00569915771484375, 0.01910400390625, -0.00992584228515625, -0.0165863037109375, 0.0021266937255859375, 0.042449951171875, -0.01617431640625, -0.023681640625, -0.001972198486328125, -0.0022563934326171875, 0.009490966796875, 0.0303955078125, 0.0169830322265625, -0.006023406982421875, -0.0291290283203125, 0.0665283203125, -0.0225677490234375, -0.0277557373046875, 0.032470703125, -0.0016622543334960938, 0.00649261474609375, -0.01007080078125, 0.01192474365234375, 0.0163116455078125, 0.040252685546875, -0.03192138671875, 0.023529052734375, -0.01085662841796875, 0.005359649658203125, -0.034088134765625, -0.00044798851013183594, -0.019866943359375, -0.0088043212890625, -0.000835418701171875, -0.00872802734375, -0.0013751983642578125, 0.01776123046875, -0.049163818359375, 0.0151824951171875, -0.0293731689453125, 0.0275726318359375, -0.0142974853515625, 0.038818359375, 0.01016998291015625, 0.00310516357421875, -0.023712158203125, -0.0128936767578125, 0.00919342041015625, -0.00243377685546875, 0.006519317626953125, 0.004638671875, -0.0006537437438964844, -0.0013933181762695312, 0.011932373046875, -0.0235595703125, -0.0005517005920410156, 0.04229736328125, 0.08441162109375, -0.0281829833984375, 0.0014591217041015625, -0.04248046875, 0.065673828125, -0.01212310791015625, -0.0340576171875, 0.0304107666015625, 0.059295654296875, 0.0836181640625, -0.01047515869140625, -0.005947113037109375, 0.0029888153076171875, -0.0238800048828125, 0.0102386474609375, 0.03564453125, 0.033782958984375, 0.020538330078125, -0.005054473876953125, -0.0162353515625, 0.045166015625, -0.0433349609375, 0.006153106689453125, -0.0198211669921875, 0.0016508102416992188, 0.03204345703125, -0.0016546249389648438, -0.004772186279296875, 0.01446533203125, -0.08197021484375, 0.004974365234375, 0.049713134765625, 0.039703369140625, 0.059356689453125, -0.0511474609375, 0.007549285888671875, -0.01027679443359375, 0.0013065338134765625, -0.0174560546875, -0.0065155029296875, -0.0421142578125, 0.0478515625, -0.0036487579345703125, 0.0240478515625, -0.038726806640625, 0.0253143310546875, 0.021575927734375, 0.01428985595703125, 0.0014638900756835938, 0.0029048919677734375, -0.05230712890625, -0.032379150390625, -0.0220794677734375, 0.03497314453125, -0.012298583984375, -0.035308837890625, -0.0086822509765625, 0.00917816162109375, -0.01007080078125, -0.0021877288818359375, 0.0031604766845703125, -0.07000732421875, 0.0187835693359375, 0.02972412109375, -0.003154754638671875, 0.034271240234375, 0.0311126708984375, 0.058868408203125, -0.00003933906555175781, 0.0361328125, -0.036163330078125, 0.032501220703125, 0.0265045166015625, -0.0850830078125, 0.0687255859375, -0.03204345703125, 0.08892822265625, 0.08551025390625, -0.0163726806640625, 0.040924072265625, -0.0180206298828125, 0.006305694580078125, -0.00013971328735351562, -0.0191497802734375, -0.044586181640625, -0.0222625732421875, -0.06439208984375, -0.0213775634765625, 0.009796142578125, 0.039794921875, -0.00553131103515625, -0.06103515625, 0.003345489501953125, 0.0092315673828125, -0.11175537109375, -0.09295654296875, -0.022613525390625, -0.049468994140625, -0.0423583984375, -0.01154327392578125, -0.0305633544921875, 0.034423828125, -0.015777587890625, -0.0021209716796875, 0.0284271240234375, -0.0031833648681640625, -0.0232086181640625, 0.02630615234375, -0.027740478515625, 0.01953125, 0.00847625732421875, -0.0086822509765625, 0.0034027099609375, 0.0657958984375, 0.019805908203125, -0.05218505859375, -0.00371551513671875, 0.0997314453125, -0.03887939453125, -0.037078857421875, 0.0036602020263671875, -0.04388427734375, 0.00771331787109375, -0.004154205322265625, -0.0014486312866210938, 0.01480865478515625, 0.01458740234375, 0.012451171875, -0.0010538101196289062, 0.0105743408203125, 0.0271453857421875, -0.0205078125, -0.0254669189453125, 0.012176513671875, -0.01025390625, -0.04205322265625, 0.00399017333984375, -0.00972747802734375, -0.029388427734375, 0.00611114501953125, 0.0103759765625, 0.0007314682006835938, -0.02294921875, 0.0068511962890625, 0.0192413330078125, -0.0009088516235351562, -0.0112152099609375, -0.03533935546875, 0.05047607421875, 0.023345947265625, 0.043487548828125, -0.006412506103515625, 0.0218048095703125, -0.0214080810546875, 0.007511138916015625, 0.0056915283203125, -0.00595855712890625, 0.0096588134765625, -0.01369476318359375, -0.00959014892578125, -0.05828857421875, 0.040924072265625, -0.0128326416015625, -0.0016202926635742188, -0.04681396484375, -0.03033447265625, -0.005924224853515625, 0.0911865234375, -0.02880859375, -0.00506591796875, -0.0174102783203125, 0.00762176513671875, -0.0289154052734375, -0.07891845703125, -0.0192718505859375, 0.0016393661499023438, -0.09161376953125, 0.0238494873046875, -0.020172119140625, -0.028778076171875, 0.004993438720703125, -0.0675048828125, -0.024688720703125, -0.046722412109375, -0.00019049644470214844, 0.034149169921875, -0.00444793701171875, -0.04248046875, -0.002288818359375, -0.0209808349609375, 0.0196990966796875, -0.0212249755859375, -0.08050537109375, -0.0239715576171875, 0.0052337646484375, 0.05718994140625, 0.005397796630859375, -0.032928466796875, -0.0024738311767578125, 0.066650390625, 0.0261993408203125, 0.0601806640625, 0.01503753662109375, -0.026519775390625, 0.01049041748046875, 0.006305694580078125, 0.02850341796875, -0.025543212890625, -0.0169677734375, -0.05047607421875, 0.030731201171875, -0.01165771484375, -0.059783935546875, -0.0198974609375, -0.0675048828125, 0.01525115966796875, -0.0167694091796875, -0.02783203125, -0.041015625, 0.01812744140625, -0.054779052734375, 0.0164031982421875, -0.0196685791015625, -0.04107666015625, 0.0323486328125, 0.0565185546875, -0.03448486328125, 0.006755828857421875, 0.0268402099609375, 0.006557464599609375, -0.05157470703125, -0.0753173828125, 0.0149993896484375, 0.020477294921875, 0.032745361328125, 0.0197296142578125, -0.0123748779296875, -0.0244293212890625, 0.0369873046875, 0.0009207725524902344, -0.01200103759765625, 0.02294921875, 0.0228118896484375, -0.0059967041015625, -0.021240234375, 0.022216796875, 0.003482818603515625, 0.00580596923828125, 0.017730712890625, 0.00583648681640625, -0.0268402099609375, 0.0184173583984375, 0.061187744140625, -0.00801849365234375, 0.025970458984375, -0.02838134765625, -0.00848388671875, -0.0023479461669921875, 0.0169525146484375, 0.049163818359375, 0.0179290771484375, 0.0035552978515625, 0.018951416015625, 0.043212890625, 0.0119781494140625, 0.0131378173828125, 0.03515625, -0.00968170166015625, 0.043121337890625, -0.00948333740234375, -0.00928497314453125, -0.0233001708984375, -0.0077667236328125, 0.03582763671875, -0.0134124755859375, -0.047698974609375, 0.00162506103515625, -0.00226593017578125, 0.0235443115234375, 0.00287628173828125, 0.005489349365234375, 0.014434814453125, 0.035491943359375, 0.00498199462890625, -0.01434326171875, -0.0019273757934570312, 0.0012350082397460938, -0.0300445556640625, 0.0254669189453125, 0.01360321044921875, -0.00501251220703125, 0.0008397102355957031, 0.058013916015625, -0.060333251953125, 0.0469970703125, 0.01474761962890625, -0.01497650146484375, 0.004215240478515625, 0.0176849365234375, 0.01149749755859375, -0.00984954833984375, 0.00469207763671875, -0.004901885986328125, 0.045654296875, -0.021728515625, 0.01507568359375, 0.0182952880859375, -0.00583648681640625, 0.0287017822265625, -0.005641937255859375, 0.019073486328125, 0.023468017578125, -0.023284912109375, 0.0292510986328125, 0.02496337890625, -0.01210784912109375, -0.05010986328125, -0.03314208984375, 0.029510498046875, 0.0263519287109375, 0.0225677490234375, -0.0284576416015625, 0.005947113037109375, -0.002269744873046875, -0.03143310546875, -0.00276947021484375, -0.0242462158203125, -0.0166473388671875, -0.07354736328125, -0.03948974609375, 0.0090789794921875, -0.06817626953125, -0.030364990234375, -0.0010347366333007812, -0.0208282470703125, 0.0377197265625, -0.01629638671875, 0.029693603515625, 0.016510009765625, -0.043609619140625, 0.021331787109375, 0.0181427001953125, 0.0191650390625, 0.0009031295776367188, -0.036346435546875, 0.0092926025390625, -0.03057861328125, 0.001720428466796875, 0.059844970703125, -0.021636962890625, -0.032318115234375, -0.06689453125, 0.041473388671875, 0.002559661865234375, 0.0269317626953125, -0.03076171875, -0.0306396484375, 0.0210113525390625, 0.040557861328125, 0.01108551025390625, -0.02081298828125, 0.03076171875, 0.0084228515625, 0.0250396728515625, -0.007144927978515625, 0.0023555755615234375, -0.0156707763671875, -0.00429534912109375, 0.0268096923828125, -0.042083740234375, -0.056610107421875, 0.0220184326171875, -0.08477783203125, -0.008758544921875, 0.01412200927734375, -0.0175933837890625, -0.01397705078125, -0.01015472412109375, 0.0034122467041015625, -0.007598876953125, 0.07763671875, 0.0164031982421875, 0.01398468017578125, 0.036041259765625, 0.0299835205078125, 0.021728515625, -0.01202392578125, -0.0172271728515625, 0.0073699951171875, 0.0261688232421875, 0.0233001708984375, -0.066650390625, -0.006160736083984375, 0.026641845703125, 0.045257568359375, -0.01399993896484375, 0.024658203125, 0.01433563232421875, -0.018951416015625, 0.00022459030151367188, -0.0031261444091796875, -0.01299285888671875, 0.0016241073608398438, 0.038665771484375, -0.006561279296875, -0.0245513916015625, 0.0225830078125, -0.029815673828125, -0.027191162109375, 0.0128021240234375, -0.0256805419921875, -0.049407958984375, 0.0018634796142578125, -0.0272674560546875, 0.01128387451171875, 0.0004305839538574219, 0.01678466796875, -0.01296234130859375, -0.0264892578125, 0.0308837890625, -0.0008115768432617188, -0.006134033203125, 0.0099945068359375, 0.00569915771484375, 0.01372528076171875, -0.01184844970703125, 0.0290679931640625, -0.00010663270950317383, -0.074462890625, 0.0292510986328125, 0.044403076171875, 0.0193328857421875, -0.006229400634765625, 0.0063629150390625, 0.005840301513671875, -0.005157470703125, -0.04669189453125, 0.01384735107421875, -0.04962158203125, 0.009979248046875, 0.03350830078125, 0.002582550048828125, 0.003627777099609375, 0.077392578125, -0.04229736328125, 0.05328369140625, 0.02801513671875, -0.024200439453125, -0.036376953125, -0.0218505859375, 0.0007910728454589844, 0.033203125, -0.026397705078125, 0.0203399658203125, -0.01309967041015625, -0.00899505615234375, -0.0152740478515625, -0.0264892578125, 0.09844970703125, -0.0565185546875, -0.0010538101196289062, 0.03668212890625, -0.004741668701171875, -0.032257080078125, -0.006988525390625, 0.006305694580078125, -0.032135009765625, 0.02618408203125, -0.00009125471115112305, 0.021728515625, -0.00330352783203125, -0.00783538818359375, -0.03155517578125, 0.055755615234375, -0.01264190673828125, -0.015411376953125, 0.00061798095703125, 0.034423828125, 0.0167694091796875, 0.041046142578125, -0.0203399658203125, 0.052215576171875, 0.00020444393157958984, 0.035247802734375, -0.0309295654296875, -0.0091094970703125, 0.0120086669921875, 0.0311431884765625, 0.0157012939453125, -0.00438690185546875, -0.033203125, -0.00008386373519897461, 0.047332763671875, 0.047454833984375, 0.02069091796875, 0.016632080078125, 0.007602691650390625, 0.04779052734375, 0.057220458984375, -0.059295654296875, 0.0156402587890625, -0.00670623779296875, 0.0228271484375, 0.053619384765625, 0.0096282958984375, 0.036163330078125, 0.01233673095703125, -0.01947021484375, 0.0010976791381835938, -0.0019216537475585938, 0.00431060791015625, -0.0052947998046875, 0.03570556640625, 0.01453399658203125, 0.054931640625, -0.09619140625, -0.0293121337890625, -0.01047515869140625, 0.04107666015625, 0.01276397705078125, 0.032623291015625, 0.0015287399291992188, 0.00044155120849609375, 0.08929443359375, 0.01471710205078125, 0.0162506103515625, 0.037994384765625, -0.00417327880859375, 0.025787353515625, 0.027984619140625, 0.0220947265625, -0.0305023193359375, -0.0236663818359375, 0.03466796875, 0.051025390625, -0.03155517578125, -0.06195068359375, 0.0187225341796875, 0.0103912353515625, -0.01080322265625, 0.037109375, -0.017730712890625, 0.0400390625, 0.10394287109375, -0.02008056640625, -0.00974273681640625, -0.00786590576171875, 0.019989013671875, -0.019012451171875, -0.0233612060546875, 0.03289794921875, -0.0006160736083984375, -0.037872314453125, 0.0014867782592773438, 0.0151214599609375, 0.052581787109375, 0.00908660888671875, 0.02215576171875, -0.0380859375, -0.005889892578125, -0.030609130859375, 0.0177459716796875, -0.00588226318359375, 0.0357666015625, -0.046600341796875, -0.0088958740234375, 0.0010938644409179688, 0.0384521484375, 0.056396484375, 0.01187896728515625, 0.04058837890625, 0.036834716796875, 0.006378173828125, 0.0006604194641113281, 0.0406494140625, 0.00600433349609375, -0.00015616416931152344, -0.03240966796875, 0.022125244140625, 0.047149658203125, 0.0169219970703125, 0.00274658203125, 0.00991058349609375, 0.060943603515625, 0.0127410888671875, -0.01654052734375, 0.00424957275390625, -0.05279541015625, 0.031158447265625, 0.01238250732421875, 0.0693359375, 0.0280914306640625, -0.08673095703125, -0.0074310302734375, -0.043914794921875, -0.049346923828125, 0.050506591796875, 0.040374755859375, -0.017852783203125, 0.0065155029296875, 0.02093505859375, -0.0167083740234375, 0.00795745849609375, -0.0046539306640625, 0.0284881591796875, 0.01513671875, 0.00039458274841308594, 0.00989532470703125, -0.0845947265625, -0.0345458984375, -0.007171630859375, -0.008392333984375, -0.0287017822265625, 0.040313720703125, 0.03411865234375, -0.017822265625, 0.025543212890625, -0.0098876953125, 0.0224761962890625, -0.007106781005859375, 0.054901123046875, -0.00843048095703125, -0.0203857421875, -0.0260772705078125, -0.0030651092529296875, -0.003948211669921875, 0.033416748046875, -0.058319091796875, 0.022674560546875, -0.034088134765625, 0.01285552978515625, -0.04095458984375, 0.0037059783935546875, -0.0196685791015625, 0.02996826171875, 0.021087646484375, -0.0227813720703125, 0.03338623046875, -0.01177215576171875, -0.0177459716796875, 0.0286407470703125, 0.04986572265625, -0.027313232421875, 0.0186614990234375, -0.0261383056640625, 0.060699462890625, 0.044586181640625, 0.0210723876953125, 0.0157470703125, -0.0294036865234375, -0.0216522216796875, -0.0207366943359375, 0.0261688232421875, -0.06658935546875, -0.0031986236572265625, -0.01517486572265625, -0.057403564453125, -0.0227813720703125, 0.0232391357421875, 0.008819580078125, 0.0047149658203125, -0.049346923828125, -0.0159759521484375, -0.0220489501953125, 0.027191162109375, -0.0305633544921875, -0.0012311935424804688, -0.02349853515625, -0.0211334228515625, -0.005847930908203125, -0.08709716796875, -0.035797119140625, -0.0002193450927734375, 0.027008056640625, -0.0013017654418945312, -0.035919189453125, 0.014007568359375, -0.0205230712890625, 0.0211944580078125, -0.01605224609375, -0.0209503173828125, 0.01412200927734375, 0.06439208984375, -0.0164947509765625, 0.006618499755859375, -0.016937255859375, -0.01163482666015625, -0.00787353515625, -0.0078582763671875, 0.008544921875, -0.003276824951171875, -0.005695343017578125, -0.0125274658203125, -0.004734039306640625, 0.024658203125, 0.0019083023071289062, -0.00865936279296875, 0.0086669921875, 0.01922607421875, -0.04071044921875, -0.06365966796875, 0.024444580078125, -0.0430908203125, -0.00647735595703125, 0.003902435302734375, 0.0309906005859375, 0.048187255859375, -0.0038280487060546875, -0.0650634765625, 0.037628173828125, -0.0213165283203125, -0.0303497314453125, -0.031219482421875, -0.0113983154296875, 0.00457000732421875, -0.01898193359375, -0.01116943359375, 0.0111541748046875, -0.04644775390625, 0.01351165771484375, 0.01558685302734375, 0.007343292236328125, 0.0016927719116210938, 0.0274658203125, -0.0219268798828125, 0.044158935546875, 0.029876708984375, -0.0122833251953125, 0.0135955810546875, -0.031646728515625, 0.0369873046875, 0.04046630859375, -0.031463623046875, -0.02191162109375, 0.005336761474609375, -0.006099700927734375, -0.0020122528076171875, 0.0271453857421875, -0.04498291015625, -0.0276336669921875, 0.059417724609375, 0.01078033447265625, 0.0273590087890625, -0.0002911090850830078, -0.000476837158203125, -0.00318145751953125, 0.004489898681640625, 0.00756072998046875, 0.000029861927032470703, -0.0243682861328125, 0.00951385498046875, -0.005710601806640625, 0.0006537437438964844, 0.0224609375, -0.03369140625, -0.032257080078125, -0.0128631591796875, -0.0183868408203125, 0.0133209228515625, -0.06268310546875, 0.040985107421875, 0.034027099609375, -0.0372314453125, -0.051483154296875, -0.00789642333984375, -0.0098724365234375, -0.03509521484375, -0.055023193359375, 0.00266265869140625, 0.025390625, 0.017791748046875, -0.001461029052734375, 0.0499267578125, -0.0234832763671875, 0.043060302734375, 0.0037899017333984375, -0.023345947265625, 0.038482666015625, 0.00769805908203125, 0.040496826171875, -0.010040283203125, 0.02471923828125, 0.00612640380859375, 0.07135009765625, -0.0046539306640625, 0.047821044921875, -0.00025391578674316406, 0.04217529296875, -0.030303955078125, -0.007419586181640625, -0.0027523040771484375, -0.0467529296875, 0.005107879638671875, -0.00027251243591308594, -0.00653076171875, -0.0241241455078125, 0.018890380859375, 0.0304718017578125, -0.01788330078125, 0.030548095703125 ]
a707a4a08707297aab7632a3eccefef0619ba71c
Wordpress Stackexchange Q: Regenerate Slugs From Title of Posts is it possible to regenerate the slugs programmatically after changing the titles of the post? Numerous post titles were updated and the slug was not updated with the title so I need to regenerate all these slugs. A: Yes, it is possible. Sample code, has to be tested and refined: // get all posts $posts = get_posts( array ( 'numberposts' => -1 ) ); foreach ( $posts as $post ) { // check the slug and run an update if necessary $new_slug = sanitize_title( $post->post_title ); if ( $post->post_name != $new_slug ) { wp_update_post( array ( 'ID' => $post->ID, 'post_name' => $new_slug ) ); } } I just made this up, there are probably some errors and egde cases, but it should give you an idea. Also, this may take a while, so it could be useful to split the update into smaller chunks.
Q: Regenerate Slugs From Title of Posts is it possible to regenerate the slugs programmatically after changing the titles of the post? Numerous post titles were updated and the slug was not updated with the title so I need to regenerate all these slugs. A: Yes, it is possible. Sample code, has to be tested and refined: // get all posts $posts = get_posts( array ( 'numberposts' => -1 ) ); foreach ( $posts as $post ) { // check the slug and run an update if necessary $new_slug = sanitize_title( $post->post_title ); if ( $post->post_name != $new_slug ) { wp_update_post( array ( 'ID' => $post->ID, 'post_name' => $new_slug ) ); } } I just made this up, there are probably some errors and egde cases, but it should give you an idea. Also, this may take a while, so it could be useful to split the update into smaller chunks. A: This plugin also does the job: http://www.jerrytravis.com/598/wordpress-plugin-to-generate-post-slugs However, as it only does it for posts which don't have a slug yet, if you need to regenerate slugs edit the following line in the plugin: if ($post->post_name == "") { for example, you could change it to: if (true) { A: I was trying the method suggested by Toscho, which is the "instinctive one", but in many cases it doesn't work (cf the core code to get what I mean by "many cases"). Looking in the code, I found the wp_insert_post_data filter hook, called by the wp_update_post function right before inserting the post iunto the database. By calling this filter, and changing the value of $data['post_name'], I was able to get this to work properly. Wordpress is cool but so badly documented... I edited the documentation, so that more people can find this workaround if needed. A: you can do this directly in mysql if you need. (our woocommerce site has 100's of thousands of products): update wp_posts set post_name = concat(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(lower(post_title), '"', ''), "'", ''), ",", '-'), " ", '-'), "&", ''), ";", ''), "@", ''), ".", ''), ":", ''), "/", ''), "+", ''), "(", ''), ")", ''), "--", '-'), "---", '-'), "--", '-'), "--", '-'), '-', id) where post_type = 'product'; where post_type = 'product' - that will keep your update to just woocommerce products; you should figure out what limits you want to keep on this query. A: We had an issue where we migrating and combined a bunch of post types. We had a bunch of blank titles as well. I wrote a WP CLI command to fix them all, but here is the gist of what I did: global $wpdb; $types = [ 'page', // Your CPT machine names ]; // Formats our IN query properly. $final = array_map(function($type) { return "'" . esc_sql($type) . "'"; }, $types); // Grabs all our empty title fields. $query = sprintf("SELECT post_title, ID FROM `%s` WHERE post_type IN (%s) AND post_name = ''", $wpdb->posts, implode(",", $final) ); foreach ($wpdb->get_results($query) as $post) { $title = sanitize_title_with_dashes( $post->post_title ); $wpdb->update('wp_posts', ['post_name' => $title], ['ID' => $post->ID]); } Needed to do a direct MySQL update since wp_update_post doesn't update the post_name.
wordpress
{ "language": "en", "length": 521, "provenance": "stackexchange_00019.jsonl.gz:418213", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46086" }
[ 0.017242431640625, -0.01336669921875, 0.0074310302734375, 0.00188446044921875, -0.01519012451171875, -0.0168609619140625, 0.0438232421875, -0.01971435546875, 0.005542755126953125, 0.038787841796875, 0.0094757080078125, 0.00897216796875, 0.0083465576171875, -0.0225677490234375, -0.0266571044921875, 0.0019025802612304688, 0.052886962890625, -0.00685882568359375, 0.035736083984375, -0.010162353515625, 0.01290130615234375, 0.02691650390625, 0.0263519287109375, 0.12646484375, 0.0038661956787109375, -0.026702880859375, 0.09771728515625, -0.032257080078125, 0.01038360595703125, -0.03759765625, 0.010009765625, 0.00959014892578125, 0.016326904296875, -0.049560546875, 0.05548095703125, -0.01296234130859375, 0.023773193359375, -0.040283203125, -0.006557464599609375, 0.0195159912109375, 0.017608642578125, 0.0022029876708984375, 0.031402587890625, 0.0224609375, -0.00731658935546875, -0.0171051025390625, 0.004474639892578125, -0.03387451171875, 0.021392822265625, -0.005268096923828125, 0.0036373138427734375, -0.00007420778274536133, 0.0193634033203125, -0.0189056396484375, -0.00312042236328125, -0.002407073974609375, -0.03179931640625, 0.053863525390625, 0.032073974609375, -0.03131103515625, -0.0208892822265625, -0.0025539398193359375, 0.0294189453125, 0.01216888427734375, -0.0087127685546875, 0.0068359375, 0.0396728515625, -0.015777587890625, -0.0269927978515625, 0.01537322998046875, 0.0447998046875, -0.0296173095703125, -0.0017957687377929688, 0.0035247802734375, 0.0377197265625, -0.047332763671875, -0.0101470947265625, -0.03802490234375, 0.00421142578125, 0.061920166015625, 0.05853271484375, -0.0259857177734375, 0.0694580078125, 0.01200103759765625, -0.002349853515625, -0.002819061279296875, 0.0067291259765625, -0.0206756591796875, -0.0330810546875, -0.05224609375, -0.02520751953125, -0.004734039306640625, -0.05145263671875, 0.0167236328125, -0.0200042724609375, -0.01500701904296875, 0.032958984375, 0.0159759521484375, -0.0213470458984375, 0.002483367919921875, 0.022796630859375, -0.0589599609375, 0.049102783203125, -0.0200958251953125, 0.0087432861328125, 0.00598907470703125, 0.006183624267578125, -0.0306854248046875, 0.000015437602996826172, 0.0161895751953125, -0.032501220703125, 0.0222320556640625, -0.007022857666015625, -0.02294921875, -0.05316162109375, 0.058624267578125, -0.008331298828125, -0.022430419921875, 0.0035076141357421875, 0.0191192626953125, -0.006259918212890625, 0.0030803680419921875, 0.0198822021484375, -0.007663726806640625, 0.0199432373046875, 0.0099945068359375, -0.0254058837890625, -0.0176849365234375, 0.047637939453125, 0.03216552734375, -0.026702880859375, -0.00797271728515625, 0.06402587890625, 0.0275115966796875, 0.01448822021484375, -0.025909423828125, -0.036590576171875, -0.004726409912109375, -0.0119781494140625, -0.017608642578125, 0.0254058837890625, -0.006679534912109375, 0.01336669921875, -0.002445220947265625, 0.07293701171875, -0.00949859619140625, -0.00525665283203125, 0.033782958984375, 0.06561279296875, 0.01184844970703125, 0.048614501953125, -0.024322509765625, 0.00324249267578125, 0.019989013671875, 0.0220489501953125, -0.034759521484375, 0.035736083984375, -0.04974365234375, 0.047271728515625, -0.052001953125, 0.019775390625, -0.005153656005859375, 0.0144195556640625, -0.0106048583984375, -0.032562255859375, 0.021759033203125, -0.04229736328125, -0.0095672607421875, 0.0224609375, -0.01055145263671875, 0.042327880859375, -0.01132965087890625, 0.00283050537109375, -0.003459930419921875, -0.00627899169921875, 0.001556396484375, -0.018218994140625, -0.042144775390625, 0.029144287109375, 0.05242919921875, 0.01059722900390625, -0.0126190185546875, -0.00684356689453125, 0.00894927978515625, -0.0474853515625, -0.001953125, -0.005096435546875, 0.04132080078125, 0.05517578125, 0.0191192626953125, 0.00266265869140625, -0.03826904296875, -0.038543701171875, 0.038604736328125, -0.0099029541015625, -0.019317626953125, 0.005954742431640625, 0.0118408203125, -0.00817108154296875, -0.024322509765625, -0.0135040283203125, 0.019744873046875, -0.0283966064453125, 0.0345458984375, -0.055694580078125, 0.0057373046875, -0.01800537109375, 0.0260162353515625, 0.016387939453125, 0.01922607421875, 0.009674072265625, 0.0025634765625, -0.03857421875, 0.0233612060546875, -0.0474853515625, -0.0169677734375, 0.009185791015625, -0.07269287109375, -0.0299530029296875, -0.045013427734375, -0.018524169921875, 0.032196044921875, -0.06292724609375, 0.047119140625, 0.06805419921875, -0.04217529296875, -0.0007367134094238281, -0.0421142578125, 0.0288543701171875, -0.0023059844970703125, -0.06292724609375, 0.0428466796875, 0.03717041015625, 0.0325927734375, -0.0244903564453125, -0.005977630615234375, -0.0101776123046875, -0.03741455078125, -0.004398345947265625, 0.05462646484375, 0.03814697265625, -0.006870269775390625, -0.0058746337890625, -0.017730712890625, 0.035369873046875, 0.0018663406372070312, 0.024688720703125, -0.01497650146484375, 0.016815185546875, 0.0672607421875, -0.013427734375, 0.037078857421875, 0.02197265625, 0.017822265625, -0.0038909912109375, 0.06048583984375, -0.001544952392578125, 0.0223388671875, -0.033538818359375, -0.007640838623046875, 0.01090240478515625, -0.042938232421875, -0.019805908203125, -0.026702880859375, -0.037445068359375, 0.01473236083984375, -0.01546478271484375, -0.0006079673767089844, -0.01146697998046875, 0.01267242431640625, 0.025482177734375, -0.033782958984375, 0.02362060546875, 0.019500732421875, -0.019134521484375, 0.01064300537109375, -0.0148162841796875, -0.01177978515625, 0.037994384765625, 0.00693511962890625, -0.007171630859375, 0.043243408203125, 0.028076171875, -0.0263214111328125, -0.00580596923828125, -0.055816650390625, 0.0006895065307617188, -0.0211334228515625, 0.00954437255859375, 0.01209259033203125, 0.024810791015625, 0.03143310546875, -0.022308349609375, 0.03753662109375, 0.0175628662109375, 0.0005793571472167969, 0.04876708984375, -0.0138397216796875, 0.023681640625, -0.004390716552734375, 0.038665771484375, 0.05548095703125, 0.007511138916015625, -0.0016651153564453125, 0.009185791015625, -0.0005044937133789062, 0.016815185546875, -0.0035266876220703125, -0.00890350341796875, -0.0059967041015625, -0.040618896484375, 0.01136016845703125, 0.0188140869140625, 0.07806396484375, -0.0032138824462890625, -0.057586669921875, 0.041259765625, 0.0235595703125, -0.06378173828125, -0.107666015625, -0.0011463165283203125, -0.035675048828125, 0.01372528076171875, -0.030120849609375, -0.0177154541015625, -0.01332855224609375, -0.00208282470703125, 0.016876220703125, 0.025390625, -0.015533447265625, -0.06573486328125, -0.0335693359375, -0.06549072265625, -0.00923919677734375, -0.006916046142578125, 0.004741668701171875, 0.01415252685546875, 0.00373077392578125, -0.0006461143493652344, -0.0221099853515625, 0.021026611328125, 0.06927490234375, -0.005519866943359375, -0.006786346435546875, 0.00960540771484375, -0.02008056640625, 0.0165557861328125, 0.0003979206085205078, 0.0103607177734375, 0.0369873046875, -0.01180267333984375, -0.009124755859375, -0.0255279541015625, 0.018890380859375, 0.01462554931640625, 0.0107879638671875, 0.0178985595703125, 0.0421142578125, 0.024169921875, -0.00414276123046875, -0.04803466796875, -0.02911376953125, -0.05584716796875, 0.0189361572265625, 0.0261993408203125, 0.02056884765625, -0.040008544921875, 0.04840087890625, 0.0010929107666015625, 0.0084686279296875, 0.021636962890625, 0.001827239990234375, 0.0020580291748046875, -0.00811767578125, -0.012542724609375, -0.021820068359375, 0.0187835693359375, 0.00438690185546875, -0.018768310546875, -0.005970001220703125, 0.037750244140625, -0.0111236572265625, 0.0213623046875, -0.0714111328125, -0.02191162109375, 0.0217437744140625, -0.06280517578125, 0.029083251953125, -0.025238037109375, -0.01003265380859375, -0.00782012939453125, 0.070068359375, -0.05963134765625, -0.048492431640625, -0.01708984375, 0.025665283203125, 0.0262908935546875, -0.03033447265625, 0.027191162109375, -0.04681396484375, -0.0650634765625, -0.00460052490234375, -0.0014829635620117188, -0.032867431640625, -0.016326904296875, 0.051422119140625, -0.0294952392578125, -0.01275634765625, 0.01520538330078125, -0.018310546875, 0.00394439697265625, 0.0073089599609375, -0.0020160675048828125, -0.0021953582763671875, -0.01497650146484375, -0.0263671875, -0.09344482421875, -0.0200958251953125, 0.01436614990234375, 0.0577392578125, -0.0055999755859375, -0.006450653076171875, -0.0230255126953125, 0.046295166015625, -0.0032253265380859375, 0.051239013671875, 0.0188140869140625, 0.0232391357421875, 0.01000213623046875, 0.00202178955078125, 0.026611328125, -0.0221710205078125, -0.003875732421875, -0.0216064453125, -0.005340576171875, 0.0146942138671875, -0.03570556640625, 0.0074920654296875, -0.022308349609375, -0.016448974609375, -0.034515380859375, -0.0015649795532226562, -0.00551605224609375, -0.00583648681640625, -0.00659942626953125, -0.01006317138671875, -0.0167083740234375, -0.046234130859375, 0.06329345703125, 0.039459228515625, -0.00902557373046875, -0.0106964111328125, 0.0753173828125, 0.01422119140625, -0.04962158203125, -0.016448974609375, -0.0124053955078125, 0.00653076171875, 0.0231475830078125, 0.0279541015625, -0.01702880859375, -0.0033473968505859375, 0.03460693359375, -0.00611114501953125, -0.06878662109375, 0.0075836181640625, -0.0013093948364257812, 0.0186920166015625, -0.01641845703125, -0.03558349609375, -0.0302734375, 0.097412109375, 0.0209197998046875, -0.01062774658203125, -0.00594329833984375, -0.0266571044921875, 0.049224853515625, 0.02008056640625, 0.0027942657470703125, -0.06634521484375, -0.08392333984375, 0.0260009765625, -0.007663726806640625, -0.0026226043701171875, 0.0096588134765625, -0.0107269287109375, 0.0426025390625, -0.0220184326171875, 0.0100250244140625, -0.035797119140625, -0.017425537109375, -0.0116424560546875, 0.036376953125, -0.030517578125, 0.00811767578125, -0.01629638671875, -0.00605010986328125, 0.03216552734375, 0.0181884765625, -0.033050537109375, -0.0259246826171875, -0.00415802001953125, 0.03741455078125, -0.0269927978515625, 0.00916290283203125, 0.034942626953125, 0.0345458984375, 0.0004870891571044922, -0.0035381317138671875, -0.039093017578125, 0.0401611328125, -0.028900146484375, 0.01432037353515625, 0.0199737548828125, -0.0285797119140625, -0.0013971328735351562, 0.03192138671875, 0.037506103515625, -0.00341796875, -0.02337646484375, 0.0362548828125, 0.036895751953125, 0.01010894775390625, 0.01451873779296875, -0.0033779144287109375, -0.00909423828125, 0.00925445556640625, 0.00197601318359375, -0.02691650390625, 0.039825439453125, 0.0264434814453125, 0.00753021240234375, 0.022491455078125, -0.0309906005859375, 0.018585205078125, -0.014068603515625, -0.008544921875, 0.00746917724609375, -0.0205841064453125, -0.03900146484375, -0.0050506591796875, 0.0232086181640625, 0.0239715576171875, -0.00763702392578125, 0.00846099853515625, -0.037841796875, -0.01337432861328125, -0.00934600830078125, -0.0255126953125, -0.0265960693359375, 0.00472259521484375, 0.006305694580078125, -0.0230255126953125, -0.035675048828125, -0.0190277099609375, 0.06439208984375, 0.01465606689453125, -0.0279998779296875, -0.0430908203125, 0.074462890625, 0.004993438720703125, 0.033050537109375, -0.05035400390625, -0.0032176971435546875, 0.0261688232421875, -0.008209228515625, 0.035400390625, -0.0259552001953125, -0.039337158203125, 0.0243377685546875, -0.06011962890625, 0.0166473388671875, 0.035614013671875, -0.051239013671875, -0.0162811279296875, -0.060791015625, 0.025360107421875, 0.0307769775390625, 0.0125732421875, -0.007694244384765625, 0.00873565673828125, -0.0004038810729980469, 0.0108642578125, 0.051849365234375, -0.00815582275390625, -0.00704193115234375, 0.01861572265625, 0.00714111328125, -0.007503509521484375, -0.0300140380859375, -0.0029201507568359375, -0.017852783203125, -0.023590087890625, -0.03564453125, 0.01036834716796875, 0.0295562744140625, 0.032073974609375, 0.0228424072265625, 0.0258026123046875, 0.0005598068237304688, 0.01361846923828125, -0.0302276611328125, 0.0071868896484375, -0.01288604736328125, 0.0184326171875, -0.04852294921875, -0.052886962890625, 0.055084228515625, -0.038177490234375, -0.004413604736328125, -0.0108795166015625, 0.027557373046875, 0.002307891845703125, -0.049224853515625, -0.013519287109375, 0.035675048828125, -0.040679931640625, 0.03656005859375, 0.045654296875, 0.021514892578125, 0.0350341796875, 0.0081634521484375, 0.026947021484375, 0.00508880615234375, -0.049346923828125, 0.08819580078125, 0.043853759765625, 0.06597900390625, -0.031646728515625, 0.00875091552734375, 0.0234222412109375, -0.054656982421875, 0.00045561790466308594, 0.007373809814453125, 0.037628173828125, -0.037628173828125, 0.015625, 0.0203399658203125, 0.0198516845703125, 0.024810791015625, 0.0240631103515625, -0.0119476318359375, 0.004245758056640625, 0.0301513671875, -0.045501708984375, -0.01366424560546875, 0.0276336669921875, 0.004352569580078125, -0.0130462646484375, -0.0148162841796875, 0.0281829833984375, 0.018402099609375, 0.001567840576171875, 0.0077972412109375, -0.00799560546875, 0.029510498046875, -0.043121337890625, -0.0172882080078125, 0.0301666259765625, -0.0117034912109375, -0.033172607421875, 0.08343505859375, -0.0261077880859375, 0.043792724609375, 0.0106353759765625, 0.04827880859375, 0.01336669921875, 0.0501708984375, 0.0101776123046875, -0.00994873046875, 0.02691650390625, -0.04412841796875, -0.046417236328125, -0.02001953125, 0.01218414306640625, 0.0234527587890625, -0.0279693603515625, 0.0243072509765625, -0.0297393798828125, 0.0003311634063720703, -0.0262451171875, -0.0423583984375, 0.0716552734375, 0.0178070068359375, -0.0428466796875, -0.00464630126953125, 0.027008056640625, 0.00850677490234375, -0.005619049072265625, 0.0035400390625, -0.0270538330078125, -0.0026988983154296875, 0.0027027130126953125, -0.00751495361328125, 0.01151275634765625, 0.0025501251220703125, -0.0989990234375, 0.1439208984375, 0.032989501953125, 0.06317138671875, -0.01202392578125, 0.04559326171875, -0.0261688232421875, 0.0194549560546875, -0.06353759765625, 0.07415771484375, -0.0185546875, 0.042633056640625, -0.06317138671875, 0.00995635986328125, 0.0050506591796875, 0.0015687942504882812, 0.039215087890625, -0.002407073974609375, -0.00962066650390625, -0.032470703125, 0.0249481201171875, 0.027069091796875, -0.00940704345703125, 0.02337646484375, -0.01081085205078125, 0.0134735107421875, 0.02813720703125, -0.038177490234375, 0.0184173583984375, -0.006305694580078125, -0.030792236328125, 0.0000642538070678711, 0.0261383056640625, 0.0316162109375, 0.023193359375, -0.05242919921875, -0.038665771484375, 0.0126953125, 0.0247344970703125, 0.01361846923828125, -0.01103973388671875, 0.059478759765625, 0.0252227783203125, 0.01155853271484375, -0.01421356201171875, -0.031158447265625, 0.046783447265625, 0.0035266876220703125, 0.006443023681640625, -0.00142669677734375, -0.001964569091796875, 0.0482177734375, -0.006916046142578125, -0.01073455810546875, 0.0161590576171875, -0.00033545494079589844, 0.05413818359375, 0.00974273681640625, 0.007617950439453125, -0.0419921875, 0.0307769775390625, 0.0819091796875, 0.070068359375, -0.06622314453125, 0.004276275634765625, 0.0181884765625, -0.0025691986083984375, -0.007732391357421875, -0.0341796875, -0.005214691162109375, -0.005153656005859375, -0.00070953369140625, -0.055328369140625, 0.00004684925079345703, 0.03729248046875, 0.01324462890625, -0.01441192626953125, -0.01549530029296875, -0.0095977783203125, 0.0064849853515625, -0.048431396484375, 0.0135650634765625, 0.01444244384765625, 0.057373046875, 0.016357421875, 0.06353759765625, -0.009552001953125, -0.03125, 0.0083770751953125, 0.01116943359375, 0.0204925537109375, -0.0157928466796875, -0.01500701904296875, -0.04107666015625, -0.0033092498779296875, 0.029571533203125, 0.058013916015625, -0.00908660888671875, 0.06829833984375, 0.007106781005859375, -0.0609130859375, -0.0021209716796875, -0.01180267333984375, -0.0279693603515625, 0.062042236328125, 0.0054779052734375, 0.01177978515625, -0.001220703125, -0.03656005859375, -0.03228759765625, 0.0284576416015625, 0.012298583984375, 0.01016998291015625, 0.039886474609375, 0.016143798828125, 0.01082611083984375, 0.04620361328125, 0.04522705078125, 0.02294921875, 0.06451416015625, -0.07037353515625, 0.004360198974609375, -0.0108184814453125, -0.06719970703125, -0.01116943359375, 0.02191162109375, -0.045257568359375, 0.03546142578125, 0.0024394989013671875, -0.01776123046875, 0.042236328125, -0.0204925537109375, 0.0047454833984375, 0.0222015380859375, 0.00782012939453125, 0.0038356781005859375, -0.0673828125, -0.0287322998046875, -0.0235443115234375, 0.027496337890625, -0.01549530029296875, 0.07708740234375, -0.0106658935546875, 0.00046539306640625, -0.050262451171875, 0.0170135498046875, -0.042327880859375, -0.04412841796875, 0.031494140625, -0.0014858245849609375, -0.0115814208984375, -0.0006079673767089844, -0.016998291015625, -0.00666046142578125, 0.043182373046875, 0.001194000244140625, 0.0194091796875, -0.051666259765625, 0.028167724609375, -0.0253448486328125, -0.00018036365509033203, -0.026641845703125, -0.0149993896484375, -0.0007128715515136719, -0.0131378173828125, 0.023651123046875, 0.017852783203125, 0.006862640380859375, 0.045135498046875, -0.004180908203125, 0.00463104248046875, -0.0033416748046875, -0.0189208984375, -0.028656005859375, 0.0224761962890625, -0.01265716552734375, -0.021728515625, 0.0260162353515625, 0.010101318359375, -0.01446533203125, 0.038330078125, 0.017425537109375, 0.0167388916015625, 0.0037384033203125, -0.027587890625, -0.0159912109375, 0.0295867919921875, 0.022857666015625, 0.0180511474609375, -0.06927490234375, 0.0005779266357421875, -0.0253143310546875, -0.06298828125, -0.038116455078125, -0.07086181640625, -0.01053619384765625, 0.03857421875, -0.062103271484375, -0.0204315185546875, -0.056121826171875, -0.032684326171875, 0.004131317138671875, -0.0012445449829101562, -0.0178680419921875, 0.00955963134765625, 0.0015125274658203125, -0.0122528076171875, -0.017974853515625, -0.009368896484375, 0.01507568359375, 0.0183563232421875, -0.039886474609375, -0.0182952880859375, -0.0325927734375, 0.0143585205078125, -0.0249481201171875, 0.0267181396484375, 0.060638427734375, -0.036407470703125, -0.05615234375, -0.01221466064453125, 0.0374755859375, 0.0225372314453125, 0.004665374755859375, 0.00025653839111328125, 0.03509521484375, 0.0038280487060546875, -0.01302337646484375, -0.08770751953125, -0.007045745849609375, -0.05206298828125, -0.0008492469787597656, -0.014373779296875, 0.0005812644958496094, 0.0100555419921875, -0.0243682861328125, -0.00353240966796875, 0.0679931640625, -0.0005121231079101562, -0.01287841796875, -0.0833740234375, 0.031524658203125, 0.034912109375, -0.0228118896484375, -0.026092529296875, -0.018310546875, -0.035614013671875, 0.0174560546875, -0.0011186599731445312, 0.05670166015625, 0.0005679130554199219, 0.0230865478515625, 0.016448974609375, 0.04852294921875, 0.0273590087890625, -0.02001953125, 0.03424072265625, -0.031646728515625, 0.0281524658203125, 0.0207366943359375, -0.051910400390625, -0.01020050048828125, -0.0204925537109375, -0.0107879638671875, -0.0293121337890625, -0.0210723876953125, -0.04315185546875, -0.00878143310546875, 0.08685302734375, 0.08013916015625, 0.034637451171875, -0.050506591796875, 0.0145721435546875, 0.002971649169921875, -0.0240936279296875, 0.0271148681640625, 0.027496337890625, -0.047760009765625, -0.0013933181762695312, 0.0433349609375, 0.01177215576171875, -0.0242919921875, -0.045440673828125, -0.01145172119140625, -0.033416748046875, -0.0222320556640625, 0.01087188720703125, 0.0162506103515625, 0.01136016845703125, 0.039215087890625, -0.019805908203125, 0.0005483627319335938, -0.00696563720703125, 0.0196075439453125, 0.00751495361328125, -0.005039215087890625, -0.003147125244140625, -0.0255584716796875, 0.007259368896484375, 0.01050567626953125, 0.005046844482421875, 0.0261688232421875, 0.016693115234375, -0.02899169921875, -0.0316162109375, 0.0193939208984375, 0.0372314453125, 0.018524169921875, -0.04473876953125, 0.05218505859375, 0.03009033203125, 0.032196044921875, 0.000011801719665527344, -0.004192352294921875, -0.0026397705078125, 0.03656005859375, -0.00508880615234375, -0.02398681640625, 0.0276336669921875, -0.042327880859375, 0.00103759765625, -0.001995086669921875, -0.01678466796875, -0.0531005859375, 0.047637939453125, -0.00998687744140625, -0.001079559326171875, 0.03057861328125 ]
4a3bf1a94dc7597da7deb865eb21422abed2c025
Wordpress Stackexchange Q: WordPress and $_GET Params This is an odd problem that I have never run into before with WordPress. I have a site, permalinks enabled. The url can be http://mysite.com/page-name/?anyParamName=testing then when I use print_r($_GET); or echo $_GET["anyParamName"] I get an empty array or nothing respectively. A pure PHP file works fine so its not a server issue. Does WordPress do anything with rewiring the get params? Really puzzled by this. A: For custom parameters you should register them with WordPress: add_action('init','wpse46108_register_param'); function wpse46108_register_param() { global $wp; $wp->add_query_var('anyParamName'); } Then the value of 'anyParamName' can be found with get_query_var $anyParamNameValue = get_query_var('anyParamName').
Q: WordPress and $_GET Params This is an odd problem that I have never run into before with WordPress. I have a site, permalinks enabled. The url can be http://mysite.com/page-name/?anyParamName=testing then when I use print_r($_GET); or echo $_GET["anyParamName"] I get an empty array or nothing respectively. A pure PHP file works fine so its not a server issue. Does WordPress do anything with rewiring the get params? Really puzzled by this. A: For custom parameters you should register them with WordPress: add_action('init','wpse46108_register_param'); function wpse46108_register_param() { global $wp; $wp->add_query_var('anyParamName'); } Then the value of 'anyParamName' can be found with get_query_var $anyParamNameValue = get_query_var('anyParamName'). A: know that this is old question, but we can freely access any post/get parameters inside 'init' hook, (before WordPress changes it) and that is documented here, look: add_action( 'init', 'process_post' ); function process_post() { if( isset( $_POST['unique_hidden_field'] ) ) { // process $_POST data here, read and modify as you wish } } A: n order to be able to add and work with your own custom query vars that you append to URLs (eg: "http://example.com/some_page/?my_var=foo" - for example using add_query_arg()) you need to add them to the public query variables available to WP_Query. These are built up when WP_Query instantiates, but fortunately are passed through a filter 'query_vars' before they are actually used to populate the $query_vars property of WP_Query. So, to expose your new, custom query variable to WP_Query hook into the 'query_vars' filter, add your query variable to the $vars array that is passed by the filter, and remember to return the array as the output of your filter function. See below: function add_query_vars_filter( $vars ) { $vars[] = "my_var"; return $vars; } add_filter( 'query_vars', 'add_query_vars_filter' ); For further details please have a look https://codex.wordpress.org/Function_Reference/get_query_var A: I had the same problem: * *the page I accessed had permalink /focus. *the main folder had a child folder with the same name (focus). The right page was loaded (not the folder), but the _GET parameters were empty. I renamed the folder (in the file system) and the _GET array is now getting as expected.
wordpress
{ "language": "en", "length": 348, "provenance": "stackexchange_00019.jsonl.gz:418221", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46108" }
[ 0.05914306640625, -0.0029659271240234375, 0.021759033203125, -0.00809478759765625, -0.0155487060546875, -0.018890380859375, 0.04022216796875, -0.0179290771484375, -0.01373291015625, 0.0016374588012695312, -0.05029296875, 0.01064300537109375, -0.0307769775390625, -0.017608642578125, 0.0310516357421875, -0.0369873046875, 0.030059814453125, -0.01190185546875, 0.0286102294921875, -0.00919342041015625, 0.01263427734375, 0.01169586181640625, 0.0274658203125, 0.0265655517578125, 0.031585693359375, -0.0005412101745605469, 0.048370361328125, -0.01125335693359375, 0.0169677734375, -0.0099029541015625, 0.01898193359375, -0.017608642578125, 0.00518798828125, 0.021392822265625, -0.0035152435302734375, -0.02435302734375, 0.02825927734375, 0.006229400634765625, 0.0260467529296875, 0.005710601806640625, 0.034515380859375, -0.038055419921875, 0.004364013671875, -0.0015659332275390625, 0.001972198486328125, -0.029052734375, 0.033203125, -0.03558349609375, -0.001125335693359375, 0.006015777587890625, 0.038482666015625, 0.0309906005859375, 0.03729248046875, 0.0035877227783203125, -0.00856781005859375, 0.02349853515625, 0.0294189453125, -0.01500701904296875, 0.025909423828125, -0.048614501953125, -0.040679931640625, -0.0120086669921875, 0.0372314453125, 0.0128936767578125, 0.0001233816146850586, 0.0225830078125, 0.00995635986328125, 0.013519287109375, -0.03155517578125, 0.0157470703125, 0.0206756591796875, -0.037628173828125, -0.020721435546875, -0.0211029052734375, 0.00043773651123046875, -0.03265380859375, 0.01385498046875, -0.040863037109375, -0.0184478759765625, 0.03607177734375, 0.0184326171875, -0.04998779296875, -0.0203704833984375, 0.022003173828125, 0.022613525390625, 0.059234619140625, 0.0007338523864746094, -0.01806640625, -0.0239410400390625, -0.041748046875, -0.036651611328125, -0.035736083984375, -0.0173797607421875, -0.029815673828125, -0.0194244384765625, -0.0277862548828125, 0.0094146728515625, 0.042755126953125, 0.013702392578125, 0.015960693359375, 0.0015869140625, -0.03289794921875, 0.0255889892578125, -0.040435791015625, -0.00531768798828125, 0.019683837890625, 0.051361083984375, 0.08721923828125, 0.04217529296875, -0.0049591064453125, 0.004421234130859375, 0.0494384765625, 0.00438690185546875, 0.0211181640625, -0.028411865234375, -0.00339508056640625, -0.036376953125, -0.010833740234375, -0.021636962890625, 0.00659942626953125, -0.01195526123046875, 0.018035888671875, -0.00991058349609375, 0.0147552490234375, 0.016357421875, 0.0019626617431640625, 0.008270263671875, -0.0294342041015625, -0.058746337890625, 0.0643310546875, -0.032012939453125, 0.0051116943359375, 0.041290283203125, 0.0078277587890625, -0.004665374755859375, -0.0362548828125, 0.02264404296875, -0.003864288330078125, -0.0270538330078125, 0.04327392578125, -0.01837158203125, -0.039764404296875, -0.00618743896484375, -0.020660400390625, 0.023895263671875, 0.024688720703125, 0.0222930908203125, 0.0130615234375, 0.0017976760864257812, -0.00777435302734375, -0.004669189453125, 0.0012292861938476562, 0.0254669189453125, 0.00374603271484375, -0.0157928466796875, 0.0299835205078125, 0.035614013671875, -0.0210113525390625, -0.050994873046875, -0.017181396484375, 0.018524169921875, -0.0099029541015625, -0.00798797607421875, -0.023773193359375, -0.0215606689453125, -0.0200958251953125, -0.034271240234375, 0.00353240966796875, 0.01523590087890625, 0.043670654296875, -0.00756072998046875, -0.0037689208984375, 0.02020263671875, 0.034637451171875, 0.0036678314208984375, 0.021820068359375, 0.0028095245361328125, 0.0299530029296875, 0.027618408203125, -0.0047607421875, -0.0177001953125, -0.033355712890625, 0.09906005859375, -0.0479736328125, -0.08416748046875, 0.0703125, -0.004329681396484375, 0.07305908203125, 0.02423095703125, -0.008697509765625, 0.06732177734375, 0.0134429931640625, -0.025390625, 0.01467132568359375, 0.006748199462890625, -0.01543426513671875, 0.014129638671875, -0.005863189697265625, 0.00849151611328125, -0.00368499755859375, 0.0153045654296875, -0.01085662841796875, 0.0242462158203125, 0.005680084228515625, 0.0055694580078125, 0.01239013671875, -0.0110015869140625, 0.01531982421875, -0.002124786376953125, 0.020538330078125, 0.0137939453125, 0.01291656494140625, -0.050384521484375, -0.00873565673828125, -0.036712646484375, 0.01312255859375, 0.016357421875, 0.0311737060546875, -0.0186767578125, 0.00609588623046875, -0.003757476806640625, -0.05450439453125, -0.017791748046875, 0.044158935546875, 0.028778076171875, -0.007282257080078125, -0.016815185546875, -0.005832672119140625, 0.030853271484375, -0.0005674362182617188, 0.01265716552734375, 0.034149169921875, 0.003566741943359375, 0.044830322265625, -0.006168365478515625, -0.0162811279296875, -0.020782470703125, -0.0543212890625, 0.0195465087890625, 0.028839111328125, 0.030059814453125, 0.0181427001953125, 0.0120086669921875, 0.004978179931640625, 0.0217437744140625, -0.036865234375, 0.01898193359375, -0.0249786376953125, -0.007106781005859375, 0.039337158203125, 0.0289154052734375, 0.01953125, -0.00977325439453125, -0.020233154296875, -0.01605224609375, 0.0287322998046875, -0.00882720947265625, 0.027740478515625, -0.0401611328125, 0.0224609375, -0.0301971435546875, -0.0263824462890625, 0.006999969482421875, -0.02288818359375, -0.0103912353515625, 0.02313232421875, 0.002010345458984375, 0.012908935546875, 0.00313568115234375, 0.01119232177734375, 0.00644683837890625, -0.039825439453125, -0.016510009765625, 0.002231597900390625, 0.01904296875, -0.068115234375, -0.0390625, 0.048431396484375, -0.0015392303466796875, -0.0301971435546875, 0.02081298828125, 0.042694091796875, -0.0012302398681640625, -0.006778717041015625, -0.001861572265625, -0.04327392578125, -0.0050048828125, 0.03826904296875, 0.009552001953125, -0.0156707763671875, 0.038360595703125, -0.0144500732421875, -0.044586181640625, 0.042388916015625, -0.0078277587890625, -0.034942626953125, 0.04791259765625, -0.030426025390625, 0.024658203125, -0.0221099853515625, 0.03125, 0.05047607421875, 0.00630950927734375, -0.01010894775390625, -0.00241851806640625, 0.01548004150390625, 0.013519287109375, 0.004009246826171875, -0.006542205810546875, -0.01218414306640625, -0.048736572265625, -0.04473876953125, -0.007274627685546875, 0.032470703125, -0.0160064697265625, -0.06298828125, -0.005950927734375, -0.0023441314697265625, -0.1004638671875, -0.08624267578125, 0.0197296142578125, -0.05548095703125, -0.006061553955078125, -0.0137939453125, -0.027435302734375, 0.0018682479858398438, -0.0165557861328125, 0.0030269622802734375, 0.01087188720703125, -0.03289794921875, -0.07696533203125, -0.0703125, -0.1053466796875, -0.0046844482421875, -0.007762908935546875, 0.0206298828125, -0.0139617919921875, 0.042144775390625, -0.0005736351013183594, -0.01507568359375, -0.002655029296875, 0.00162506103515625, 0.01300048828125, -0.029510498046875, 0.0034999847412109375, -0.02642822265625, 0.02777099609375, -0.026336669921875, 0.0714111328125, 0.062225341796875, -0.053009033203125, 0.023193359375, 0.0148773193359375, -0.006862640380859375, 0.02557373046875, 0.0241241455078125, -0.004528045654296875, -0.017364501953125, 0.0231781005859375, -0.053619384765625, -0.045166015625, -0.00850677490234375, -0.05120849609375, 0.0411376953125, 0.03424072265625, -0.003978729248046875, 0.00960540771484375, 0.00621795654296875, -0.00693511962890625, -0.00922393798828125, 0.00879669189453125, -0.027587890625, 0.0240478515625, -0.00025534629821777344, 0.031494140625, -0.0016355514526367188, 0.00955963134765625, -0.0299072265625, 0.029632568359375, 0.01611328125, -0.0153350830078125, 0.0006670951843261719, -0.01007080078125, 0.01032257080078125, -0.052032470703125, 0.069091796875, -0.018280029296875, -0.00563812255859375, -0.050384521484375, -0.039276123046875, -0.0258026123046875, 0.0826416015625, 0.042877197265625, -0.016143798828125, -0.0074005126953125, 0.0244598388671875, -0.088134765625, -0.053558349609375, -0.0209503173828125, 0.00473785400390625, -0.052764892578125, -0.0031032562255859375, -0.043243408203125, -0.0014066696166992188, -0.0033588409423828125, -0.01247406005859375, -0.0178985595703125, -0.05157470703125, 0.0287628173828125, -0.0576171875, 0.0002903938293457031, -0.003269195556640625, -0.0127410888671875, -0.069580078125, -0.029754638671875, -0.01218414306640625, -0.059844970703125, -0.0294036865234375, 0.03125, 0.0596923828125, -0.003040313720703125, -0.022369384765625, -0.01084136962890625, 0.06658935546875, 0.0207061767578125, 0.0217742919921875, 0.0284271240234375, -0.004451751708984375, 0.0179595947265625, 0.007373809814453125, 0.032562255859375, -0.0218658447265625, -0.0245819091796875, 0.0017414093017578125, -0.00027561187744140625, -0.000156402587890625, -0.005878448486328125, -0.038055419921875, 0.0291900634765625, -0.04229736328125, -0.04730224609375, -0.0173797607421875, -0.0009851455688476562, 0.004302978515625, -0.0011138916015625, 0.00970458984375, -0.00945281982421875, -0.049468994140625, 0.031097412109375, -0.027435302734375, -0.0181121826171875, -0.00009274482727050781, 0.0477294921875, 0.0360107421875, -0.0141754150390625, 0.01629638671875, -0.0235443115234375, 0.0201873779296875, -0.01029205322265625, 0.024383544921875, 0.00968170166015625, -0.003986358642578125, 0.003368377685546875, -0.011444091796875, 0.00847625732421875, 0.00714111328125, 0.0179901123046875, 0.00504302978515625, -0.030975341796875, 0.0251007080078125, 0.0148468017578125, -0.034393310546875, 0.0253143310546875, -0.01352691650390625, -0.03973388671875, -0.0057373046875, 0.04229736328125, -0.0526123046875, 0.07342529296875, -0.006847381591796875, -0.01476287841796875, 0.004177093505859375, -0.032073974609375, 0.0307159423828125, 0.005954742431640625, 0.0019083023071289062, -0.0010290145874023438, 0.0225372314453125, 0.010528564453125, 0.0225372314453125, 0.0419921875, 0.00002765655517578125, 0.04119873046875, -0.0030574798583984375, 0.00365447998046875, -0.00733184814453125, -0.0006866455078125, 0.0231170654296875, -0.0205535888671875, -0.0426025390625, 0.0010242462158203125, -0.0175018310546875, 0.021026611328125, 0.0193023681640625, -0.02301025390625, 0.0206756591796875, 0.0584716796875, -0.0081024169921875, -0.0012388229370117188, 0.0111083984375, 0.032440185546875, -0.03057861328125, 0.06683349609375, 0.0167236328125, 0.0007300376892089844, -0.03857421875, 0.097900390625, 0.0224151611328125, 0.0164031982421875, -0.0202484130859375, -0.01739501953125, 0.01788330078125, 0.039886474609375, 0.019287109375, -0.03692626953125, 0.01099395751953125, 0.00843048095703125, 0.028472900390625, -0.0289306640625, -0.0235137939453125, 0.037567138671875, 0.06231689453125, -0.024658203125, -0.0168304443359375, -0.00351715087890625, -0.007747650146484375, -0.024932861328125, 0.0201568603515625, -0.00394439697265625, -0.029815673828125, -0.045867919921875, -0.005741119384765625, 0.044036865234375, 0.0206451416015625, 0.00201416015625, -0.006114959716796875, -0.01250457763671875, 0.01165008544921875, -0.003620147705078125, 0.01654052734375, -0.0205535888671875, -0.04473876953125, 0.05902099609375, -0.00919342041015625, -0.020782470703125, 0.0025768280029296875, 0.0293121337890625, -0.050445556640625, -0.0312042236328125, 0.087646484375, -0.018096923828125, 0.053192138671875, -0.05621337890625, 0.008026123046875, -0.0282745361328125, -0.005218505859375, 0.04620361328125, 0.0308380126953125, -0.0210113525390625, -0.01529693603515625, -0.029510498046875, -0.0269927978515625, 0.007259368896484375, -0.0194854736328125, -0.0226287841796875, -0.00991058349609375, -0.01244354248046875, 0.006198883056640625, 0.01154327392578125, 0.004230499267578125, -0.039520263671875, 0.019805908203125, 0.0272216796875, 0.0159454345703125, -0.002964019775390625, 0.034393310546875, -0.030059814453125, 0.0323486328125, -0.0019407272338867188, 0.01255035400390625, -0.01001739501953125, -0.0227813720703125, 0.004871368408203125, -0.0259246826171875, -0.0406494140625, -0.007038116455078125, -0.031890869140625, 0.0194549560546875, 0.057952880859375, -0.01490020751953125, -0.03045654296875, -0.0050506591796875, 0.0206756591796875, -0.022705078125, 0.007648468017578125, -0.00508880615234375, -0.07220458984375, 0.0197906494140625, -0.018646240234375, -0.017181396484375, 0.0175628662109375, -0.0003821849822998047, -0.004436492919921875, -0.0008525848388671875, 0.003261566162109375, 0.0054779052734375, -0.0362548828125, 0.0269317626953125, 0.091064453125, 0.0276947021484375, 0.072021484375, -0.020416259765625, 0.026397705078125, 0.07708740234375, 0.01442718505859375, -0.0268707275390625, -0.05633544921875, -0.0016536712646484375, 0.00914764404296875, -0.00974273681640625, 0.007076263427734375, -0.003093719482421875, -0.007404327392578125, 0.04986572265625, 0.053375244140625, -0.085693359375, 0.0163116455078125, 0.021759033203125, 0.0268402099609375, -0.00763702392578125, 0.0173492431640625, -0.05419921875, -0.04498291015625, -0.002521514892578125, -0.048614501953125, -0.035980224609375, -0.00809478759765625, 0.03460693359375, 0.0041351318359375, 0.00643157958984375, 0.060516357421875, 0.00258636474609375, -0.044677734375, 0.00556182861328125, 0.0051727294921875, 0.0009336471557617188, 0.0021533966064453125, -0.01004791259765625, 0.00481414794921875, -0.052459716796875, -0.03485107421875, -0.007625579833984375, -0.0193023681640625, -0.0283355712890625, -0.0036773681640625, 0.01378631591796875, 0.01702880859375, 0.036712646484375, -0.002643585205078125, -0.01235198974609375, 0.017120361328125, -0.047515869140625, 0.034393310546875, -0.037109375, 0.00868988037109375, 0.03472900390625, -0.018798828125, 0.01287078857421875, 0.01061248779296875, -0.035125732421875, -0.0100555419921875, 0.00006288290023803711, 0.0802001953125, -0.032684326171875, -0.0203094482421875, 0.01922607421875, -0.001735687255859375, -0.0036907196044921875, 0.0003981590270996094, -0.034149169921875, -0.0423583984375, -0.0096435546875, -0.007427215576171875, -0.042724609375, 0.023651123046875, -0.015777587890625, -0.04241943359375, 0.10302734375, 0.0036163330078125, -0.0109100341796875, 0.03857421875, 0.037017822265625, -0.055908203125, 0.00879669189453125, -0.08380126953125, 0.04766845703125, 0.05181884765625, 0.0703125, -0.067138671875, -0.01541900634765625, 0.01021575927734375, 0.02264404296875, 0.06524658203125, 0.00960540771484375, -0.0092926025390625, 0.0210723876953125, 0.08685302734375, 0.021392822265625, -0.0194091796875, 0.0276031494140625, 0.060272216796875, 0.04766845703125, 0.07977294921875, -0.0142669677734375, 0.0360107421875, -0.035247802734375, 0.038360595703125, 0.0701904296875, -0.016265869140625, -0.03167724609375, 0.00937652587890625, -0.0171051025390625, -0.04815673828125, 0.0086517333984375, 0.0056304931640625, 0.004528045654296875, 0.0145721435546875, 0.01050567626953125, 0.007781982421875, 0.01325225830078125, -0.0264739990234375, -0.003757476806640625, 0.038330078125, -0.0095367431640625, -0.0083770751953125, 0.05303955078125, 0.01404571533203125, 0.007617950439453125, -0.014190673828125, -0.0027446746826171875, -0.0121002197265625, 0.0269927978515625, 0.06353759765625, 0.031951904296875, 0.0173797607421875, -0.061065673828125, -0.0099334716796875, 0.06732177734375, 0.08380126953125, -0.057769775390625, -0.04901123046875, -0.0086669921875, -0.0189208984375, 0.00809478759765625, 0.0017070770263671875, 0.01806640625, 0.0226287841796875, 0.0163726806640625, -0.027130126953125, 0.00814056396484375, 0.0283050537109375, 0.030364990234375, -0.01090240478515625, -0.0118255615234375, -0.03204345703125, 0.01062774658203125, -0.02447509765625, -0.032257080078125, 0.0258941650390625, 0.06536865234375, 0.0164642333984375, 0.045074462890625, -0.015228271484375, -0.0306549072265625, -0.005931854248046875, 0.047271728515625, -0.030609130859375, 0.0119476318359375, -0.053497314453125, -0.057098388671875, -0.00318145751953125, 0.03460693359375, 0.037078857421875, 0.0179443359375, 0.03863525390625, 0.00237274169921875, -0.032073974609375, 0.0228424072265625, 0.038177490234375, -0.0190582275390625, 0.005420684814453125, -0.049896240234375, 0.0126190185546875, -0.018157958984375, -0.005550384521484375, -0.0207672119140625, 0.01132965087890625, -0.0001614093780517578, -0.0069122314453125, 0.01001739501953125, 0.004352569580078125, -0.0239410400390625, 0.0171051025390625, -0.0203399658203125, 0.032806396484375, 0.00013434886932373047, -0.08526611328125, -0.0217132568359375, -0.02923583984375, -0.00421142578125, 0.0194244384765625, 0.04718017578125, 0.0240631103515625, -0.01013946533203125, 0.005245208740234375, 0.00234222412109375, 0.01059722900390625, -0.01024627685546875, 0.0198822021484375, -0.036163330078125, 0.00742340087890625, -0.00017642974853515625, -0.04913330078125, -0.0072479248046875, -0.00878143310546875, -0.00637054443359375, -0.0278778076171875, 0.0833740234375, -0.041229248046875, -0.0135498046875, -0.00290679931640625, 0.0374755859375, -0.0207061767578125, 0.007434844970703125, 0.011993408203125, 0.0287933349609375, 0.0223846435546875, -0.0294189453125, -0.039947509765625, 0.055908203125, 0.0066680908203125, 0.0006780624389648438, 0.044830322265625, -0.028289794921875, 0.0086669921875, 0.00798797607421875, 0.05914306640625, -0.014617919921875, -0.050384521484375, -0.031585693359375, 0.00848388671875, 0.01197052001953125, 0.035675048828125, -0.020172119140625, 0.0333251953125, 0.038787841796875, -0.022552490234375, 0.048431396484375, -0.040191650390625, 0.07501220703125, 0.038818359375, 0.0177764892578125, -0.00013768672943115234, -0.055084228515625, -0.03619384765625, 0.027435302734375, -0.0119171142578125, -0.00689697265625, -0.018157958984375, 0.01995849609375, -0.029296875, -0.019317626953125, 0.01251983642578125, -0.00411224365234375, 0.0153961181640625, -0.017974853515625, 0.00415802001953125, 0.00205230712890625, -0.05859375, -0.0230255126953125, -0.0401611328125, -0.032958984375, 0.017974853515625, -0.0263214111328125, -0.03521728515625, -0.0212860107421875, 0.005126953125, 0.01119232177734375, 0.0009579658508300781, -0.03759765625, 0.013275146484375, -0.035308837890625, 0.0286102294921875, -0.02716064453125, -0.015625, 0.031494140625, 0.09033203125, -0.037994384765625, -0.006641387939453125, 0.00421142578125, -0.02777099609375, -0.02752685546875, 0.0290985107421875, 0.0218353271484375, -0.017822265625, -0.0229339599609375, 0.0531005859375, 0.0135650634765625, 0.0966796875, -0.021331787109375, -0.0248260498046875, 0.0235595703125, 0.002017974853515625, -0.0303192138671875, -0.04876708984375, 0.0157470703125, -0.03924560546875, 0.0042572021484375, -0.0234832763671875, 0.022705078125, 0.03485107421875, -0.0262298583984375, -0.08258056640625, 0.003002166748046875, -0.0078125, -0.0416259765625, -0.0458984375, -0.0190887451171875, 0.004436492919921875, 0.00553131103515625, -0.01520538330078125, -0.020904541015625, -0.044342041015625, 0.03216552734375, 0.0308837890625, 0.036407470703125, 0.0160064697265625, 0.041900634765625, -0.0127410888671875, 0.045013427734375, 0.0279998779296875, 0.00974273681640625, 0.0266265869140625, -0.006702423095703125, 0.037506103515625, 0.06072998046875, -0.0021495819091796875, -0.0209808349609375, -0.01513671875, -0.07470703125, -0.0159912109375, -0.04083251953125, -0.02496337890625, -0.027923583984375, 0.0784912109375, 0.004634857177734375, 0.007350921630859375, -0.006893157958984375, -0.03564453125, 0.0089874267578125, -0.028717041015625, -0.036102294921875, 0.04302978515625, -0.0833740234375, -0.039215087890625, -0.0096588134765625, -0.0028934478759765625, -0.0208740234375, -0.005786895751953125, -0.035614013671875, -0.0004639625549316406, 0.0175018310546875, 0.004528045654296875, 0.0025768280029296875, -0.048980712890625, 0.06219482421875, -0.035919189453125, -0.0162506103515625, -0.002094268798828125, 0.0423583984375, 0.0019483566284179688, -0.01398468017578125, 0.0254669189453125, 0.07025146484375, -0.027008056640625, -0.010498046875, 0.03668212890625, -0.029022216796875, 0.00879669189453125, 0.0028553009033203125, -0.0263671875, 0.03717041015625, 0.0034923553466796875, 0.03759765625, -0.0039005279541015625, 0.041015625, 0.03021240234375, 0.043548583984375, -0.005138397216796875, -0.001743316650390625, 0.0019626617431640625, 0.015777587890625, 0.003353118896484375, -0.006420135498046875, 0.049285888671875, -0.056365966796875, -0.00937652587890625, 0.012176513671875, -0.05670166015625, -0.053955078125, 0.00609588623046875, -0.015380859375, 0.0017366409301757812, 0.01461029052734375 ]
4b413584d33ea721517bed72dc4608907a2c7fbe
Wordpress Stackexchange Q: What is the correct MIME type for PSD (Photoshop) I am trying to create an upload area (frontend) for word press users on a site. I've got a lot of types opened up through some function calls, but unable to correctly get PSD support. I'm seeing a lot of different types, and to my knowledge have tried all. I'm not sure if my hosting environment makes any difference. Am on Hostgator VPS. Anyone successfully gotten WP to upload PSDs? A: This is what I use to allow PSD upload: add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( $existing_mimes = array() ) { $existing_mimes['psd'] = 'image/vnd.adobe.photoshop'; return $existing_mimes; }
Q: What is the correct MIME type for PSD (Photoshop) I am trying to create an upload area (frontend) for word press users on a site. I've got a lot of types opened up through some function calls, but unable to correctly get PSD support. I'm seeing a lot of different types, and to my knowledge have tried all. I'm not sure if my hosting environment makes any difference. Am on Hostgator VPS. Anyone successfully gotten WP to upload PSDs? A: This is what I use to allow PSD upload: add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( $existing_mimes = array() ) { $existing_mimes['psd'] = 'image/vnd.adobe.photoshop'; return $existing_mimes; } A: A quite horrible mimetype with several values - all of which are in use: image/vnd.adobe.photoshop application/x-photoshop application/photoshop application/psd image/psd A: Photoshop also uses application/x-photoshop. I imagine it varies from version to version.
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:418226", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46125" }
[ -0.0122528076171875, -0.01031494140625, 0.0247039794921875, 0.0275115966796875, -0.0254669189453125, -0.005023956298828125, 0.0509033203125, -0.042144775390625, 0.018035888671875, -0.0012722015380859375, 0.0207366943359375, -0.0172271728515625, -0.0240631103515625, -0.044708251953125, -0.0006475448608398438, -0.0215911865234375, 0.040557861328125, -0.01546478271484375, 0.027984619140625, -0.0085296630859375, -0.01360321044921875, 0.0401611328125, 0.03839111328125, 0.0014820098876953125, -0.0216217041015625, 0.0211334228515625, 0.0712890625, -0.015411376953125, -0.0210418701171875, -0.032501220703125, -0.003265380859375, 0.032379150390625, -0.001415252685546875, 0.0164642333984375, 0.00951385498046875, 0.06878662109375, 0.0005741119384765625, 0.029266357421875, 0.056365966796875, -0.00311279296875, -0.003978729248046875, 0.005687713623046875, 0.040679931640625, -0.019989013671875, -0.00978851318359375, -0.0214385986328125, -0.00354766845703125, -0.0323486328125, -0.0182647705078125, 0.059722900390625, 0.0175323486328125, -0.0241546630859375, 0.025177001953125, -0.00608062744140625, 0.01445770263671875, -0.004276275634765625, -0.0167388916015625, 0.058013916015625, 0.035888671875, -0.00551605224609375, -0.0479736328125, 0.01222991943359375, 0.00965118408203125, -0.01378631591796875, -0.0167236328125, -0.01189422607421875, -0.013580322265625, 0.006988525390625, -0.026580810546875, -0.037933349609375, 0.0247955322265625, -0.01458740234375, -0.0008220672607421875, -0.04754638671875, -0.019927978515625, 0.054107666015625, -0.0010509490966796875, 0.00360107421875, 0.0006275177001953125, -0.03424072265625, 0.0033740997314453125, 0.0172576904296875, -0.059417724609375, -0.006824493408203125, 0.0053253173828125, 0.014373779296875, -0.01512908935546875, -0.0211029052734375, -0.0399169921875, 0.005489349365234375, -0.0284576416015625, -0.018310546875, -0.021484375, 0.004657745361328125, 0.00418853759765625, -0.00279998779296875, -0.0003333091735839844, -0.00826263427734375, 0.016326904296875, 0.0016164779663085938, 0.028106689453125, -0.06072998046875, 0.06292724609375, -0.04217529296875, 0.0188140869140625, 0.023712158203125, -0.001270294189453125, -0.0396728515625, 0.0302734375, 0.01264190673828125, -0.005275726318359375, 0.04132080078125, -0.005641937255859375, -0.030853271484375, -0.004878997802734375, 0.0084228515625, -0.00891876220703125, -0.0037708282470703125, 0.0161895751953125, -0.047088623046875, 0.015350341796875, 0.0340576171875, 0.049468994140625, -0.0255889892578125, -0.00872039794921875, 0.0078887939453125, -0.018096923828125, -0.07489013671875, -0.0151824951171875, 0.055023193359375, -0.0268707275390625, 0.00916290283203125, 0.052642822265625, -0.0196533203125, -0.0226593017578125, -0.03472900390625, 0.0173492431640625, -0.033050537109375, -0.0017747879028320312, 0.00893402099609375, 0.006137847900390625, -0.03277587890625, -0.0017728805541992188, 0.01032257080078125, -0.0333251953125, 0.01479339599609375, -0.0048828125, 0.0224456787109375, 0.00008535385131835938, -0.0478515625, 0.0065460205078125, -0.0270233154296875, 0.0443115234375, -0.0139923095703125, 0.0226593017578125, -0.0390625, 0.0445556640625, -0.03521728515625, -0.01378631591796875, -0.035369873046875, 0.03802490234375, 0.011077880859375, 0.0310211181640625, 0.01238250732421875, -0.0029315948486328125, -0.0185699462890625, -0.054046630859375, -0.004512786865234375, 0.0240478515625, 0.036102294921875, -0.0178375244140625, -0.025177001953125, -0.0089111328125, 0.006214141845703125, -0.00638580322265625, 0.0238494873046875, 0.05340576171875, 0.045166015625, 0.00841522216796875, 0.0034847259521484375, -0.0225372314453125, -0.045867919921875, 0.08221435546875, -0.053955078125, -0.035064697265625, 0.0156707763671875, 0.006702423095703125, 0.005580902099609375, 0.007061004638671875, -0.0097198486328125, 0.0296173095703125, 0.040618896484375, 0.0078887939453125, -0.001861572265625, -0.0360107421875, -0.0279998779296875, -0.0030059814453125, 0.01197052001953125, -0.025665283203125, 0.036102294921875, -0.044464111328125, 0.0038928985595703125, -0.007068634033203125, -0.003040313720703125, -0.0008630752563476562, -0.005828857421875, 0.00006687641143798828, 0.0181121826171875, 0.030731201171875, -0.00975799560546875, -0.01496124267578125, -0.03619384765625, -0.0075531005859375, -0.0002269744873046875, -0.019775390625, 0.058380126953125, -0.00888824462890625, 0.058502197265625, -0.0290679931640625, 0.089599609375, -0.053131103515625, -0.06781005859375, -0.0276947021484375, 0.0298309326171875, 0.015625, 0.03155517578125, -0.0171356201171875, 0.0333251953125, 0.039398193359375, 0.034454345703125, 0.022857666015625, -0.0130615234375, -0.03704833984375, 0.0203857421875, -0.0076446533203125, -0.03668212890625, -0.00951385498046875, -0.0740966796875, 0.04833984375, 0.052520751953125, 0.0159454345703125, -0.007259368896484375, 0.0011043548583984375, 0.03424072265625, 0.054290771484375, 0.044769287109375, 0.0301971435546875, -0.021087646484375, -0.0166473388671875, -0.0177001953125, 0.0094451904296875, -0.016815185546875, 0.022491455078125, -0.04571533203125, -0.01410675048828125, 0.04583740234375, -0.0269622802734375, -0.037994384765625, 0.033782958984375, -0.02728271484375, 0.0260467529296875, -0.03265380859375, -0.047088623046875, 0.0000832676887512207, 0.0011310577392578125, 0.0174102783203125, 0.0211639404296875, 0.01552581787109375, -0.02691650390625, 0.01432037353515625, 0.0169219970703125, -0.01062774658203125, 0.0220489501953125, 0.044708251953125, 0.025390625, 0.04974365234375, -0.009857177734375, -0.04656982421875, 0.053955078125, 0.047149658203125, -0.031707763671875, -0.0103607177734375, -0.0611572265625, 0.004276275634765625, 0.000026047229766845703, -0.04302978515625, 0.0228271484375, 0.024200439453125, 0.0439453125, 0.01328277587890625, 0.031494140625, 0.00787353515625, -0.0037689208984375, 0.01511383056640625, 0.0221099853515625, -0.02691650390625, 0.025787353515625, -0.072509765625, 0.07373046875, -0.049224853515625, 0.04730224609375, 0.0751953125, -0.0543212890625, 0.040130615234375, 0.0010538101196289062, 0.0227508544921875, 0.007381439208984375, 0.01456451416015625, 0.002269744873046875, -0.0285491943359375, -0.0263824462890625, -0.0279083251953125, 0.0011739730834960938, -0.0156402587890625, -0.033416748046875, -0.02850341796875, -0.040557861328125, -0.0202789306640625, -0.0567626953125, 0.02081298828125, 0.0462646484375, -0.04730224609375, 0.0186309814453125, -0.031982421875, -0.00701904296875, -0.0271148681640625, -0.004779815673828125, -0.00786590576171875, -0.0126495361328125, 0.003814697265625, -0.022918701171875, -0.04229736328125, -0.0638427734375, -0.0352783203125, -0.0018053054809570312, 0.0230255126953125, 0.0093841552734375, 0.02093505859375, 0.0024623870849609375, -0.0071868896484375, 0.035491943359375, 0.004344940185546875, -0.007297515869140625, -0.0126800537109375, -0.00794219970703125, -0.0125732421875, 0.04779052734375, -0.0265350341796875, 0.03424072265625, 0.049346923828125, -0.03668212890625, -0.009124755859375, -0.048187255859375, -0.05267333984375, -0.040802001953125, 0.051849365234375, 0.061431884765625, -0.038299560546875, 0.01543426513671875, -0.05621337890625, 0.002227783203125, 0.00832366943359375, 0.00628662109375, 0.032318115234375, -0.0416259765625, -0.0227203369140625, 0.00446319580078125, 0.06829833984375, 0.00379180908203125, 0.034637451171875, 0.0159912109375, -0.0023040771484375, -0.00655364990234375, -0.004070281982421875, 0.00041103363037109375, -0.004974365234375, -0.0041656494140625, -0.03485107421875, 0.058197021484375, 0.00426483154296875, 0.005069732666015625, 0.001255035400390625, 0.0134429931640625, -0.01099395751953125, -0.0616455078125, 0.04754638671875, -0.054779052734375, 0.031005859375, -0.07989501953125, -0.023529052734375, -0.03814697265625, 0.10711669921875, -0.0020503997802734375, -0.0426025390625, -0.0178985595703125, 0.012603759765625, -0.01531982421875, -0.0084686279296875, 0.016357421875, 0.0081939697265625, -0.07708740234375, -0.01274871826171875, -0.012664794921875, -0.044342041015625, 0.046722412109375, -0.06884765625, -0.0250701904296875, -0.05010986328125, 0.0252532958984375, -0.038360595703125, 0.01497650146484375, 0.01065826416015625, 0.018524169921875, -0.0303955078125, 0.0025386810302734375, -0.041046142578125, -0.0870361328125, -0.00382232666015625, -0.04547119140625, 0.039154052734375, 0.027008056640625, -0.0258026123046875, -0.001068115234375, 0.055328369140625, -0.0097198486328125, -0.001522064208984375, 0.0119476318359375, 0.023773193359375, 0.0105133056640625, -0.035369873046875, -0.0207366943359375, -0.045562744140625, -0.004425048828125, -0.017303466796875, -0.041900634765625, -0.061920166015625, -0.022216796875, -0.04949951171875, 0.022705078125, -0.054595947265625, 0.00536346435546875, -0.0299530029296875, -0.052764892578125, 0.00383758544921875, -0.027496337890625, -0.033172607421875, -0.0213165283203125, -0.031707763671875, 0.1253662109375, -0.0058746337890625, 0.029693603515625, -0.0289306640625, 0.10430908203125, -0.00841522216796875, -0.04681396484375, -0.04888916015625, -0.0171051025390625, 0.040069580078125, 0.007572174072265625, 0.0200653076171875, 0.0276336669921875, -0.0162200927734375, 0.00785064697265625, 0.0133514404296875, 0.0005102157592773438, -0.005229949951171875, 0.0101165771484375, -0.000843048095703125, -0.026885986328125, 0.0165252685546875, 0.01531982421875, 0.0222625732421875, -0.00533294677734375, -0.02734375, 0.001308441162109375, -0.0248565673828125, 0.0230712890625, 0.007167816162109375, -0.0094757080078125, -0.046966552734375, -0.0474853515625, 0.0230865478515625, -0.0252838134765625, 0.027587890625, -0.0053253173828125, -0.00429534912109375, 0.02056884765625, -0.00453948974609375, 0.01396942138671875, 0.03350830078125, 0.040771484375, 0.01446533203125, 0.04693603515625, 0.05401611328125, 0.0250701904296875, -0.0252838134765625, 0.009033203125, -0.01023101806640625, 0.0031795501708984375, -0.007373809814453125, -0.07696533203125, 0.006259918212890625, -0.032470703125, -0.005008697509765625, 0.020538330078125, 0.041229248046875, 0.004413604736328125, -0.00623321533203125, -0.018829345703125, -0.0164947509765625, 0.00861358642578125, -0.0592041015625, -0.01031494140625, -0.01129150390625, -0.005443572998046875, -0.002910614013671875, 0.0109405517578125, 0.01049041748046875, -0.019989013671875, -0.0159759521484375, 0.01465606689453125, 0.0589599609375, 0.00917816162109375, 0.027740478515625, -0.00473785400390625, -0.0338134765625, -0.01088714599609375, 0.002559661865234375, -0.0178985595703125, -0.0288848876953125, -0.002170562744140625, 0.0333251953125, -0.043060302734375, -0.006683349609375, 0.0303955078125, -0.0301666259765625, 0.0117645263671875, -0.005886077880859375, -0.038970947265625, -0.027740478515625, -0.0200958251953125, -0.0159454345703125, 0.016876220703125, -0.01763916015625, -0.0290374755859375, 0.004589080810546875, -0.044708251953125, -0.01549530029296875, 0.02117919921875, -0.048828125, 0.00589752197265625, 0.0225067138671875, 0.01435089111328125, -0.0284881591796875, -0.006862640380859375, -0.04827880859375, -0.0184478759765625, -0.00670623779296875, -0.0006771087646484375, 0.0302581787109375, -0.03411865234375, 0.00879669189453125, -0.011444091796875, 0.006031036376953125, -0.05029296875, 0.035064697265625, 0.007671356201171875, -0.00040602684020996094, 0.00647735595703125, -0.027557373046875, -0.0361328125, -0.0298614501953125, 0.01033782958984375, 0.016815185546875, -0.0272979736328125, -0.004974365234375, 0.01047515869140625, 0.0265045166015625, 0.00022602081298828125, 0.01210784912109375, -0.018890380859375, 0.05615234375, 0.0276947021484375, 0.11285400390625, -0.0045928955078125, 0.006931304931640625, 0.001682281494140625, 0.028656005859375, -0.02862548828125, -0.037567138671875, -0.01251220703125, -0.00395965576171875, -0.007442474365234375, -0.0673828125, -0.015655517578125, -0.0085906982421875, 0.039581298828125, 0.06561279296875, 0.034027099609375, 0.01026153564453125, 0.0101165771484375, -0.027008056640625, -0.00226593017578125, -0.0199127197265625, 0.0423583984375, -0.03143310546875, 0.0174560546875, 0.00855255126953125, -0.01345062255859375, 0.038909912109375, 0.013458251953125, -0.025665283203125, 0.0305633544921875, -0.02044677734375, 0.03204345703125, 0.0196380615234375, 0.0052032470703125, -0.0049591064453125, -0.037353515625, -0.01377105712890625, 0.010650634765625, 0.007404327392578125, 0.03662109375, 0.038543701171875, -0.0010175704956054688, -0.01038360595703125, 0.0149383544921875, 0.02923583984375, 0.002895355224609375, 0.0089111328125, 0.0163421630859375, 0.004486083984375, 0.00848388671875, 0.07879638671875, 0.0838623046875, -0.10491943359375, 0.009521484375, 0.034942626953125, -0.0085601806640625, -0.00702667236328125, -0.023193359375, 0.006072998046875, 0.00836944580078125, 0.065673828125, -0.035858154296875, -0.022918701171875, 0.02313232421875, -0.0237884521484375, 0.0171356201171875, 0.0090179443359375, 0.0811767578125, 0.0047607421875, 0.032958984375, -0.09661865234375, -0.00034928321838378906, -0.045501708984375, 0.04107666015625, 0.013580322265625, -0.037567138671875, -0.03729248046875, -0.01192474365234375, -0.02655029296875, -0.037139892578125, -0.039154052734375, 0.03173828125, 0.0026264190673828125, 0.087158203125, 0.045318603515625, 0.013946533203125, 0.006458282470703125, 0.0041961669921875, 0.037200927734375, 0.0273284912109375, -0.03173828125, -0.02484130859375, 0.0180816650390625, -0.028289794921875, -0.00266265869140625, 0.0022449493408203125, 0.0017843246459960938, -0.0033702850341796875, -0.003643035888671875, 0.02886962890625, -0.057037353515625, 0.0121612548828125, 0.047332763671875, 0.057891845703125, -0.014739990234375, 0.00852203369140625, -0.025604248046875, -0.05322265625, -0.032745361328125, -0.0111846923828125, -0.0635986328125, 0.021728515625, 0.02227783203125, -0.061370849609375, 0.01549530029296875, -0.0004100799560546875, 0.061187744140625, 0.046630859375, -0.0288848876953125, -0.0350341796875, -0.0540771484375, -0.00879669189453125, 0.022369384765625, -0.005588531494140625, 0.01062774658203125, -0.0357666015625, -0.0005292892456054688, 0.0037212371826171875, 0.02691650390625, 0.035064697265625, -0.004180908203125, -0.03485107421875, 0.0303802490234375, 0.103759765625, 0.055816650390625, 0.0220184326171875, 0.031890869140625, -0.0155181884765625, -0.057708740234375, 0.011077880859375, 0.027099609375, 0.021514892578125, 0.0035858154296875, -0.005657196044921875, 0.0193023681640625, -0.006259918212890625, 0.020843505859375, -0.0224609375, -0.01174163818359375, -0.0005011558532714844, -0.0272674560546875, 0.007602691650390625, -0.0203704833984375, 0.018310546875, -0.0117340087890625, -0.0156707763671875, -0.0064697265625, 0.016204833984375, -0.006626129150390625, 0.0215911865234375, -0.0030307769775390625, 0.00788116455078125, 0.0258636474609375, 0.0098876953125, -0.015655517578125, -0.028564453125, 0.009002685546875, 0.01265716552734375, -0.025054931640625, -0.00982666015625, -0.0296630859375, 0.00339508056640625, -0.068359375, -0.0002703666687011719, 0.034210205078125, 0.0026683807373046875, -0.0170135498046875, -0.051116943359375, 0.0228424072265625, 0.00855255126953125, 0.0024547576904296875, 0.0278472900390625, 0.02606201171875, -0.048797607421875, 0.0008893013000488281, -0.033660888671875, -0.01290130615234375, 0.052825927734375, 0.0232696533203125, 0.0201873779296875, 0.02978515625, -0.0474853515625, -0.0289764404296875, -0.038360595703125, 0.0240936279296875, 0.0091705322265625, 0.0465087890625, -0.0084991455078125, 0.05657958984375, -0.0291595458984375, 0.00023102760314941406, 0.008087158203125, 0.00501251220703125, -0.01284027099609375, -0.0142669677734375, 0.0036907196044921875, -0.01004791259765625, -0.0041046142578125, 0.0188140869140625, 0.0207977294921875, -0.004901885986328125, 0.0207061767578125, 0.0255126953125, 0.01552581787109375, -0.002410888671875, -0.0020694732666015625, 0.003673553466796875, -0.0179595947265625, -0.019775390625, -0.04833984375, -0.0136260986328125, -0.02825927734375, 0.0133514404296875, -0.00562286376953125, 0.010711669921875, -0.015899658203125, 0.0193023681640625, 0.000766754150390625, -0.0780029296875, 0.0030727386474609375, -0.00905609130859375, 0.11102294921875, 0.0045166015625, -0.07025146484375, -0.0484619140625, -0.01160430908203125, 0.00958251953125, 0.037261962890625, 0.040985107421875, 0.00875091552734375, 0.0027980804443359375, -0.011932373046875, -0.042938232421875, 0.015594482421875, 0.01364898681640625, 0.0119781494140625, 0.049713134765625, 0.0021114349365234375, 0.008087158203125, -0.036468505859375, -0.015869140625, -0.037933349609375, 0.03826904296875, 0.016387939453125, 0.049285888671875, -0.0161895751953125, 0.0280303955078125, -0.004421234130859375, 0.0234222412109375, -0.01898193359375, 0.0005974769592285156, 0.006591796875, 0.037322998046875, 0.01373291015625, -0.03173828125, 0.01453399658203125, 0.0272979736328125, 0.006580352783203125, -0.043304443359375, -0.0190582275390625, 0.0008287429809570312, 0.0162200927734375, 0.03411865234375, 0.0294647216796875, -0.0248260498046875, -0.045562744140625, -0.041717529296875, 0.003765106201171875, 0.01163482666015625, 0.027557373046875, -0.005908966064453125, 0.055419921875, 0.040283203125, -0.017791748046875, 0.039031982421875, -0.06561279296875, 0.06744384765625, 0.043670654296875, 0.016998291015625, -0.06256103515625, 0.01312255859375, -0.005924224853515625, -0.017547607421875, 0.0033550262451171875, 0.06146240234375, -0.013671875, -0.01617431640625, 0.0084075927734375, -0.035186767578125, 0.00922393798828125, -0.060760498046875, -0.024505615234375, 0.0310821533203125, 0.01947021484375, 0.00762939453125, -0.0277862548828125, 0.002811431884765625, -0.019256591796875, -0.014129638671875, 0.0313720703125, 0.01528167724609375, 0.0341796875, 0.01690673828125, -0.03021240234375, 0.04071044921875, 0.0104217529296875, -0.0123748779296875, 0.01139068603515625, -0.0247039794921875, -0.0299072265625, 0.023223876953125, -0.0020351409912109375, -0.01050567626953125, 0.0362548828125, -0.001739501953125, -0.0802001953125, -0.0290069580078125, 0.087890625, -0.053375244140625, 0.005523681640625, 0.0181121826171875, -0.01139068603515625, -0.03167724609375, 0.0268402099609375, -0.008331298828125, 0.07135009765625, -0.00804901123046875, -0.0230712890625, -0.00807952880859375, -0.00160980224609375, -0.0217132568359375, -0.0180206298828125, 0.01580810546875, -0.019256591796875, -0.0584716796875, -0.06427001953125, 0.022064208984375, 0.008209228515625, -0.045379638671875, -0.101318359375, 0.045166015625, -0.038818359375, -0.036407470703125, -0.01458740234375, 0.0147247314453125, -0.0080413818359375, 0.031768798828125, 0.005279541015625, -0.00974273681640625, -0.004108428955078125, 0.0013036727905273438, -0.0186920166015625, 0.048309326171875, 0.00390625, -0.00434112548828125, 0.01471710205078125, 0.004482269287109375, 0.00652313232421875, -0.02276611328125, 0.01117706298828125, -0.0265655517578125, 0.032501220703125, 0.0435791015625, -0.00789642333984375, -0.01293182373046875, 0.0145721435546875, -0.057769775390625, -0.00865936279296875, -0.033599853515625, -0.00738525390625, 0.004863739013671875, 0.07635498046875, 0.006908416748046875, 0.0108642578125, -0.0215911865234375, 0.020294189453125, -0.004138946533203125, -0.0124359130859375, -0.00496673583984375, 0.00713348388671875, -0.03302001953125, -0.0011701583862304688, -0.004474639892578125, 0.01006317138671875, -0.01004791259765625, 0.01345062255859375, 0.001270294189453125, -0.0197601318359375, 0.01198577880859375, -0.042236328125, -0.01299285888671875, 0.01548004150390625, 0.04949951171875, -0.0138092041015625, 0.0238800048828125, -0.0295867919921875, 0.016937255859375, 0.02850341796875, -0.01377105712890625, 0.00817108154296875, 0.03765869140625, -0.02813720703125, -0.00576019287109375, 0.0225372314453125, -0.01806640625, 0.01061248779296875, 0.0069427490234375, 0.006374359130859375, 0.02069091796875, -0.0216064453125, 0.0184783935546875, -0.0160064697265625, 0.05938720703125, -0.0038051605224609375, 0.041229248046875, 0.0007395744323730469, -0.0223846435546875, -0.026763916015625, 0.0290374755859375, 0.013153076171875, -0.0266876220703125, 0.03668212890625, -0.044158935546875, 0.01531219482421875, -0.007793426513671875, -0.02044677734375, 0.01451873779296875, -0.0479736328125, -0.0302734375, -0.033447265625, -0.003734588623046875 ]
39fb26b8a81a3cd1f84cd73f8e6a4be7fb4a0550
Wordpress Stackexchange Q: Archive by Year After some searching I haven't been able to find a answer to what I'm trying to archive. I'm trying to set up an archive page with accordion panels that hide/show posts from a given year with links. So how do I show an entire year of posts, not just a link to a year? Example: 2012 Post Title Next Post Title Another Post Title ============== 2011 Post Title Next Post Title Another Post Title Etc A: The Simple Yearly Archive Plugin does just that. This code will also do the trick: <?php // get years that have posts $years = $wpdb->get_results( "SELECT YEAR(post_date) AS year FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY year DESC" ); foreach ( $years as $year ) { // get posts for each year $posts_this_year = $wpdb->get_results( "SELECT post_title FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' AND YEAR(post_date) = '" . $year->year . "'" ); echo '<h2>' . $year->year . '</h2><ul>'; foreach ( $posts_this_year as $post ) { echo '<li>' . $post->post_title . '</li>'; } echo '</ul>'; } ?> There may be room to optimize that, but I've tested and it works.
Q: Archive by Year After some searching I haven't been able to find a answer to what I'm trying to archive. I'm trying to set up an archive page with accordion panels that hide/show posts from a given year with links. So how do I show an entire year of posts, not just a link to a year? Example: 2012 Post Title Next Post Title Another Post Title ============== 2011 Post Title Next Post Title Another Post Title Etc A: The Simple Yearly Archive Plugin does just that. This code will also do the trick: <?php // get years that have posts $years = $wpdb->get_results( "SELECT YEAR(post_date) AS year FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY year DESC" ); foreach ( $years as $year ) { // get posts for each year $posts_this_year = $wpdb->get_results( "SELECT post_title FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' AND YEAR(post_date) = '" . $year->year . "'" ); echo '<h2>' . $year->year . '</h2><ul>'; foreach ( $posts_this_year as $post ) { echo '<li>' . $post->post_title . '</li>'; } echo '</ul>'; } ?> There may be room to optimize that, but I've tested and it works. A: I think there is probably more than one way to do it but if you don't already know about adjusting the query before you do the loop then you will probably need to read up on it, as I can't see how you'd do it without playing with that. Here is a good place to start. and if you need to reset the query
wordpress
{ "language": "en", "length": 263, "provenance": "stackexchange_00019.jsonl.gz:418232", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46136" }
[ 0.042266845703125, -0.009552001953125, -0.02166748046875, 0.0017995834350585938, -0.00040268898010253906, -0.04840087890625, 0.06854248046875, -0.020904541015625, 0.058197021484375, 0.028350830078125, -0.0097198486328125, -0.029632568359375, -0.01073455810546875, -0.02154541015625, -0.0587158203125, -0.01410675048828125, 0.044525146484375, -0.05450439453125, 0.01253509521484375, -0.0009608268737792969, 0.0041656494140625, 0.0287628173828125, 0.0254058837890625, 0.0247650146484375, 0.02117919921875, -0.0241851806640625, 0.11370849609375, -0.0179443359375, 0.039825439453125, -0.0130157470703125, 0.03131103515625, -0.053955078125, 0.01338958740234375, 0.0006422996520996094, 0.02972412109375, 0.065673828125, -0.0216217041015625, 0.0305328369140625, 0.016143798828125, 0.01149749755859375, 0.002544403076171875, -0.0023326873779296875, 0.033782958984375, -0.01251220703125, -0.0123138427734375, -0.00922393798828125, 0.007747650146484375, -0.005359649658203125, 0.0241546630859375, -0.0345458984375, 0.005092620849609375, 0.04852294921875, 0.01229095458984375, -0.0106964111328125, -0.004848480224609375, 0.044952392578125, 0.001468658447265625, 0.01036834716796875, 0.05706787109375, -0.034149169921875, -0.06842041015625, -0.034881591796875, 0.0296783447265625, -0.0419921875, -0.014129638671875, -0.01366424560546875, 0.0855712890625, 0.0112457275390625, -0.07550048828125, -0.0219573974609375, 0.07928466796875, -0.002811431884765625, 0.0073699951171875, -0.02099609375, -0.0133514404296875, 0.0181884765625, -0.004791259765625, -0.0231475830078125, 0.017730712890625, -0.004787445068359375, -0.0287933349609375, -0.020660400390625, -0.040496826171875, -0.0279541015625, 0.01206207275390625, -0.01364898681640625, -0.019317626953125, 0.0085601806640625, -0.02593994140625, -0.010162353515625, -0.023162841796875, -0.055999755859375, -0.006061553955078125, 0.0008883476257324219, -0.000347137451171875, -0.033416748046875, 0.04254150390625, 0.07049560546875, -0.01849365234375, -0.018402099609375, -0.032684326171875, -0.01702880859375, -0.041168212890625, -0.0093536376953125, -0.01702880859375, 0.031402587890625, 0.027130126953125, 0.058441162109375, 0.034515380859375, 0.0089569091796875, 0.0179290771484375, 0.033843994140625, -0.03741455078125, -0.00994110107421875, 0.00652313232421875, 0.0200958251953125, -0.056884765625, 0.01456451416015625, -0.00879669189453125, 0.0262451171875, 0.015869140625, 0.0296173095703125, -0.0107879638671875, -0.01094818115234375, -0.0204620361328125, 0.00800323486328125, -0.0177154541015625, -0.036529541015625, 0.048370361328125, 0.05645751953125, -0.0278778076171875, -0.005859375, 0.00937652587890625, -0.030975341796875, -0.011138916015625, -0.035369873046875, 0.01265716552734375, -0.029022216796875, -0.0330810546875, 0.01261138916015625, -0.0021381378173828125, -0.0182952880859375, -0.00574493408203125, -0.019073486328125, -0.031524658203125, 0.0024585723876953125, 0.015960693359375, 0.01251220703125, -0.038787841796875, -0.0450439453125, 0.0005030632019042969, -0.01386260986328125, 0.0235595703125, 0.01934814453125, -0.0227203369140625, -0.0248260498046875, 0.00016582012176513672, -0.0259552001953125, 0.03326416015625, -0.051971435546875, 0.02191162109375, 0.023529052734375, -0.0017404556274414062, -0.011688232421875, -0.041351318359375, -0.02215576171875, -0.0245208740234375, -0.004276275634765625, 0.01238250732421875, 0.00780487060546875, 0.0007476806640625, -0.0237579345703125, 0.045013427734375, -0.0361328125, -0.0452880859375, -0.006534576416015625, -0.04864501953125, -0.040069580078125, 0.0289306640625, 0.027191162109375, -0.0020122528076171875, -0.018310546875, -0.03033447265625, 0.041900634765625, -0.0247039794921875, 0.01470184326171875, 0.007518768310546875, -0.004791259765625, 0.01654052734375, 0.0028171539306640625, 0.04058837890625, 0.0482177734375, -0.0859375, 0.011993408203125, -0.0059814453125, 0.00890350341796875, -0.006847381591796875, -0.005817413330078125, -0.0124664306640625, 0.01021575927734375, 0.033721923828125, 0.00025534629821777344, -0.01296234130859375, 0.0396728515625, -0.0321044921875, -0.01494598388671875, -0.01357269287109375, -0.0037097930908203125, -0.0045013427734375, 0.02825927734375, 0.035552978515625, 0.04302978515625, -0.04046630859375, -0.0360107421875, -0.0240478515625, -0.0008215904235839844, -0.0131988525390625, -0.034637451171875, -0.01436614990234375, -0.005706787109375, 0.029815673828125, -0.0090789794921875, 0.005584716796875, 0.05523681640625, 0.10150146484375, -0.04144287109375, 0.01294708251953125, -0.0555419921875, 0.056304931640625, -0.00008189678192138672, -0.075927734375, 0.029296875, 0.0284423828125, 0.0750732421875, -0.0081329345703125, -0.0247802734375, -0.0251922607421875, -0.038299560546875, 0.0306396484375, 0.046783447265625, 0.03717041015625, 0.049407958984375, 0.0192108154296875, 0.01548004150390625, 0.05511474609375, -0.034027099609375, 0.0162506103515625, -0.0157012939453125, -0.016357421875, 0.04345703125, 0.007297515869140625, 0.05401611328125, 0.0101165771484375, 0.0675048828125, -0.0110015869140625, 0.055145263671875, 0.015716552734375, 0.0253753662109375, -0.019927978515625, -0.01557159423828125, 0.01328277587890625, -0.02685546875, -0.038848876953125, -0.01137542724609375, 0.03924560546875, -0.017730712890625, 0.036376953125, 0.0294189453125, -0.0215606689453125, -0.01323699951171875, 0.007617950439453125, -0.00897979736328125, 0.02728271484375, 0.019195556640625, -0.053558349609375, -0.011749267578125, -0.03729248046875, 0.00778961181640625, 0.04217529296875, -0.015411376953125, 0.017547607421875, 0.021453857421875, 0.03863525390625, -0.001186370849609375, 0.0153045654296875, -0.04345703125, 0.0254364013671875, 0.0421142578125, -0.01336669921875, -0.01151275634765625, -0.0036220550537109375, 0.0667724609375, -0.003326416015625, 0.0595703125, 0.005519866943359375, 0.013885498046875, 0.036163330078125, -0.059234619140625, 0.04498291015625, -0.03125, 0.031951904296875, 0.0638427734375, 0.0091705322265625, 0.0090789794921875, 0.0032138824462890625, -0.0188140869140625, -0.0180206298828125, 0.00769805908203125, -0.0262603759765625, -0.004337310791015625, -0.0948486328125, -0.0130767822265625, 0.02947998046875, 0.04766845703125, 0.0181732177734375, -0.044403076171875, 0.00823211669921875, 0.026031494140625, -0.08282470703125, -0.1004638671875, 0.0055084228515625, -0.09722900390625, 0.032562255859375, -0.00806427001953125, -0.04010009765625, -0.0251617431640625, 0.0521240234375, 0.01372528076171875, 0.0287017822265625, -0.0318603515625, -0.057647705078125, -0.047119140625, -0.0843505859375, -0.030120849609375, 0.0162506103515625, 0.014068603515625, -0.0023746490478515625, 0.08642578125, 0.00782012939453125, -0.07568359375, -0.021240234375, 0.0545654296875, -0.042449951171875, 0.0157470703125, 0.003055572509765625, 0.0360107421875, -0.0019626617431640625, 0.0306854248046875, 0.0044708251953125, 0.0229034423828125, -0.0279388427734375, -0.0251922607421875, 0.0251617431640625, -0.0029582977294921875, 0.032012939453125, 0.0180206298828125, -0.022552490234375, 0.02471923828125, 0.017242431640625, -0.031951904296875, 0.0244598388671875, -0.0311279296875, -0.02362060546875, 0.01555633544921875, -0.0128631591796875, 0.01456451416015625, -0.01293182373046875, 0.00975799560546875, -0.0201873779296875, -0.0125885009765625, 0.00905609130859375, -0.05316162109375, 0.025787353515625, 0.016021728515625, 0.0182647705078125, 0.01384735107421875, 0.031402587890625, -0.00997161865234375, 0.0017070770263671875, 0.023162841796875, 0.012542724609375, 0.036956787109375, -0.0183563232421875, 0.0217742919921875, -0.05499267578125, 0.04327392578125, 0.0007309913635253906, 0.0098724365234375, -0.033355712890625, -0.044952392578125, -0.00534820556640625, 0.08099365234375, -0.09033203125, -0.026275634765625, -0.003856658935546875, 0.006053924560546875, 0.02691650390625, 0.006305694580078125, -0.0240478515625, -0.03521728515625, -0.0799560546875, 0.0235137939453125, -0.0196685791015625, -0.009246826171875, -0.0248870849609375, 0.0154571533203125, -0.0625, -0.0330810546875, 0.0086212158203125, 0.04827880859375, 0.022308349609375, -0.0189208984375, -0.024932861328125, 0.00977325439453125, -0.0025691986083984375, -0.020416259765625, -0.0496826171875, -0.0159149169921875, 0.031585693359375, 0.04571533203125, -0.0238037109375, 0.00861358642578125, -0.02783203125, 0.0343017578125, -0.011810302734375, 0.01324462890625, 0.007476806640625, 0.0194244384765625, -0.008514404296875, 0.0103607177734375, 0.0048828125, -0.01515960693359375, -0.01415252685546875, -0.038543701171875, 0.00677490234375, 0.005184173583984375, -0.051483154296875, -0.003116607666015625, -0.054290771484375, 0.01403045654296875, -0.03973388671875, 0.004795074462890625, 0.006992340087890625, 0.022430419921875, -0.0189361572265625, 0.01398468017578125, 0.0001310110092163086, -0.0430908203125, 0.044525146484375, 0.05694580078125, -0.029296875, 0.0012102127075195312, 0.022064208984375, 0.00457763671875, -0.054229736328125, -0.09552001953125, -0.00133514404296875, 0.0003921985626220703, -0.02392578125, 0.0787353515625, 0.0062408447265625, -0.00560760498046875, 0.08905029296875, -0.036712646484375, 0.00791168212890625, -0.028289794921875, 0.016082763671875, 0.00643157958984375, -0.004749298095703125, 0.0022411346435546875, -0.002895355224609375, 0.0275115966796875, 0.009613037109375, 0.02459716796875, -0.0192413330078125, 0.036346435546875, 0.03057861328125, 0.003631591796875, 0.00870513916015625, -0.0254364013671875, -0.0614013671875, 0.0017910003662109375, 0.01322174072265625, 0.032379150390625, 0.014556884765625, -0.00301361083984375, 0.036834716796875, 0.007503509521484375, -0.0022029876708984375, -0.0177154541015625, 0.019134521484375, -0.0262451171875, 0.014801025390625, -0.0185394287109375, -0.03363037109375, -0.029266357421875, 0.01471710205078125, -0.027374267578125, -0.018524169921875, -0.0309906005859375, -0.03741455078125, -0.00428009033203125, 0.0562744140625, 0.01352691650390625, -0.06109619140625, 0.0438232421875, 0.0841064453125, 0.0085906982421875, 0.0220794677734375, -0.0299224853515625, 0.0211639404296875, -0.033599853515625, 0.0165252685546875, 0.041168212890625, -0.01446533203125, 0.03955078125, 0.05633544921875, 0.017730712890625, 0.023406982421875, -0.04351806640625, 0.017913818359375, 0.002292633056640625, 0.05242919921875, 0.037445068359375, -0.06146240234375, -0.0019855499267578125, 0.0159759521484375, -0.003143310546875, -0.028839111328125, 0.01110076904296875, 0.0212554931640625, 0.044921875, 0.03729248046875, -0.01323699951171875, 0.013153076171875, -0.014862060546875, -0.01290130615234375, 0.056182861328125, 0.011322021484375, -0.0190582275390625, -0.051422119140625, -0.039093017578125, 0.052764892578125, -0.0017137527465820312, -0.0166168212890625, -0.004779815673828125, -0.018218994140625, 0.0139312744140625, -0.037567138671875, -0.037628173828125, 0.01505279541015625, 0.03173828125, 0.050537109375, -0.0198822021484375, -0.0229644775390625, 0.026123046875, 0.023193359375, -0.0474853515625, 0.0037746429443359375, 0.086181640625, -0.03033447265625, 0.036712646484375, -0.026763916015625, -0.021942138671875, 0.0174560546875, -0.01177978515625, 0.104736328125, 0.061614990234375, -0.040679931640625, 0.004520416259765625, -0.021484375, -0.0263824462890625, 0.014251708984375, -0.02764892578125, -0.046630859375, -0.0350341796875, 0.021392822265625, -0.0009407997131347656, 0.0006632804870605469, -0.02740478515625, -0.0084686279296875, 0.0293731689453125, 0.024658203125, 0.0340576171875, 0.0195770263671875, 0.09503173828125, -0.01131439208984375, 0.055206298828125, 0.0145263671875, 0.014495849609375, -0.079833984375, 0.01971435546875, 0.0015697479248046875, -0.08990478515625, -0.00811004638671875, 0.01168060302734375, -0.006744384765625, 0.0008697509765625, -0.031494140625, 0.0032196044921875, 0.00286102294921875, 0.0024204254150390625, 0.00806427001953125, -0.01824951171875, 0.019317626953125, -0.01251983642578125, -0.005596160888671875, -0.005126953125, -0.01470947265625, -0.00540924072265625, 0.00495147705078125, -0.0195465087890625, 0.021759033203125, 0.01076507568359375, 0.0126495361328125, -0.00714874267578125, -0.0237884521484375, 0.01258087158203125, 0.025909423828125, -0.0047454833984375, 0.0186767578125, 0.0017347335815429688, 0.006832122802734375, -0.0086822509765625, -0.036895751953125, 0.0281524658203125, -0.0033969879150390625, 0.064697265625, -0.025543212890625, -0.0056304931640625, 0.0596923828125, -0.042694091796875, -0.005603790283203125, -0.00617218017578125, 0.007297515869140625, -0.004150390625, -0.00357818603515625, -0.013885498046875, 0.01419830322265625, 0.045166015625, -0.00969696044921875, 0.01311492919921875, -0.007274627685546875, 0.03448486328125, -0.0066375732421875, -0.008575439453125, -0.007495880126953125, -0.0009784698486328125, 0.021392822265625, 0.00026416778564453125, 0.057220458984375, 0.0185089111328125, -0.09576416015625, -0.005031585693359375, 0.042449951171875, -0.006038665771484375, -0.0300750732421875, -0.01215362548828125, 0.0018768310546875, -0.0229339599609375, -0.0760498046875, -0.005359649658203125, -0.03631591796875, 0.0087127685546875, 0.0298309326171875, 0.0029888153076171875, -0.01151275634765625, 0.04559326171875, -0.025634765625, 0.0272979736328125, 0.0214385986328125, -0.037689208984375, -0.056732177734375, -0.0107574462890625, -0.007373809814453125, 0.0212249755859375, 0.0107421875, 0.0308837890625, -0.0249176025390625, -0.02935791015625, -0.019744873046875, 0.0038928985595703125, 0.08447265625, -0.0078277587890625, -0.046295166015625, -0.0002275705337524414, 0.03955078125, -0.01277923583984375, -0.00792694091796875, 0.0460205078125, -0.05889892578125, 0.015411376953125, 0.01180267333984375, 0.020538330078125, -0.006824493408203125, 0.008636474609375, -0.049102783203125, 0.090576171875, -0.0265960693359375, -0.00897216796875, 0.005420684814453125, 0.045684814453125, -0.002834320068359375, 0.01476287841796875, -0.03509521484375, 0.0667724609375, 0.0011444091796875, 0.005573272705078125, -0.06414794921875, 0.00481414794921875, -0.0240325927734375, 0.0140380859375, 0.0274200439453125, -0.00218963623046875, -0.0204010009765625, -0.0257110595703125, 0.049163818359375, 0.051055908203125, 0.003200531005859375, 0.014007568359375, 0.0027866363525390625, 0.044219970703125, 0.048095703125, -0.0179443359375, 0.033660888671875, 0.00725555419921875, -0.022705078125, 0.0391845703125, 0.004131317138671875, 0.01486968994140625, -0.00328826904296875, -0.01303863525390625, 0.0035724639892578125, -0.006130218505859375, -0.004364013671875, 0.0245513916015625, 0.036773681640625, 0.022674560546875, 0.0494384765625, -0.041656494140625, -0.0323486328125, -0.013214111328125, 0.035003662109375, 0.002613067626953125, 0.005306243896484375, 0.046142578125, 0.0260467529296875, -0.0002586841583251953, -0.01236724853515625, 0.02471923828125, 0.0074310302734375, -0.0085296630859375, 0.020660400390625, 0.016693115234375, 0.0084228515625, -0.0311279296875, -0.027923583984375, 0.0771484375, 0.058837890625, -0.019775390625, -0.035125732421875, 0.01629638671875, -0.00684356689453125, -0.025177001953125, 0.004886627197265625, -0.0214691162109375, 0.018035888671875, 0.051544189453125, -0.017059326171875, -0.0206146240234375, -0.0005788803100585938, 0.029022216796875, -0.0061187744140625, -0.035797119140625, 0.020050048828125, -0.0229339599609375, -0.034271240234375, 0.0008139610290527344, 0.022491455078125, 0.03619384765625, 0.0205078125, 0.0193634033203125, -0.0027866363525390625, -0.01314544677734375, 0.0104827880859375, 0.004802703857421875, -0.005199432373046875, -0.0263519287109375, -0.0014276504516601562, -0.0401611328125, -0.0222320556640625, 0.0274658203125, -0.0021877288818359375, -0.007965087890625, 0.05194091796875, 0.03765869140625, -0.04046630859375, -0.0225067138671875, 0.03717041015625, -0.0216064453125, 0.00189208984375, -0.0239715576171875, 0.03173828125, 0.007045745849609375, 0.0093536376953125, -0.0018415451049804688, 0.0302276611328125, 0.016754150390625, -0.02099609375, 0.035003662109375, -0.007404327392578125, -0.0255279541015625, 0.033538818359375, -0.0163116455078125, 0.058135986328125, -0.006458282470703125, -0.06817626953125, -0.03167724609375, -0.0224761962890625, -0.035888671875, 0.023956298828125, 0.03350830078125, -0.006488800048828125, 0.00681304931640625, -0.005069732666015625, -0.0275421142578125, 0.0193328857421875, -0.01103973388671875, 0.0226593017578125, 0.051055908203125, -0.003055572509765625, 0.01070404052734375, -0.03118896484375, -0.0189361572265625, -0.03717041015625, 0.0362548828125, 0.04034423828125, -0.01092529296875, 0.024749755859375, 0.03851318359375, 0.003787994384765625, 0.0301666259765625, -0.040496826171875, 0.00766754150390625, 0.00970458984375, -0.0294647216796875, 0.0162353515625, -0.007476806640625, -0.044830322265625, -0.01380157470703125, 0.0313720703125, -0.0341796875, -0.01171875, -0.0204925537109375, 0.0210113525390625, -0.0224151611328125, 0.03594970703125, -0.0192108154296875, 0.0016355514526367188, -0.0092926025390625, -0.0019683837890625, 0.0234527587890625, 0.0247650146484375, 0.0164337158203125, 0.013031005859375, 0.0316162109375, -0.040252685546875, 0.0219573974609375, -0.005153656005859375, 0.02685546875, 0.02764892578125, 0.0428466796875, 0.0139007568359375, -0.001377105712890625, -0.012237548828125, 0.0130462646484375, 0.0282745361328125, -0.0016260147094726562, 0.00655364990234375, 0.048004150390625, 0.003879547119140625, 0.003170013427734375, 0.026641845703125, 0.00093841552734375, 0.01099395751953125, -0.006778717041015625, -0.0221405029296875, -0.0184783935546875, 0.017425537109375, -0.0281829833984375, -0.037567138671875, -0.0023250579833984375, 0.0089569091796875, 0.0026340484619140625, -0.06146240234375, -0.042510986328125, -0.0300445556640625, -0.015777587890625, 0.00978851318359375, -0.047393798828125, 0.0027923583984375, 0.0183258056640625, 0.01180267333984375, -0.03863525390625, 0.01465606689453125, -0.0115509033203125, 0.02606201171875, -0.029327392578125, 0.00403594970703125, -0.060882568359375, -0.010833740234375, -0.049652099609375, 0.00325775146484375, -0.004352569580078125, -0.020751953125, -0.026611328125, 0.009490966796875, 0.00646209716796875, 0.0390625, 0.05023193359375, 0.01033782958984375, 0.01922607421875, 0.01064300537109375, -0.0274810791015625, -0.06768798828125, 0.02001953125, -0.0213165283203125, -0.056671142578125, 0.03460693359375, -0.0253753662109375, -0.00864410400390625, -0.039154052734375, -0.07763671875, 0.09588623046875, -0.00714874267578125, -0.038177490234375, -0.032012939453125, 0.039886474609375, 0.0181884765625, 0.01605224609375, 0.0115203857421875, -0.02069091796875, -0.0345458984375, -0.0176544189453125, 0.0017786026000976562, 0.01355743408203125, 0.00942230224609375, -0.001880645751953125, -0.061737060546875, 0.005847930908203125, -0.00955963134765625, -0.0199737548828125, 0.0157623291015625, -0.0079803466796875, 0.027679443359375, -0.0009145736694335938, -0.041778564453125, 0.034393310546875, 0.01239776611328125, 0.03216552734375, 0.01214599609375, -0.005207061767578125, -0.053192138671875, -0.03643798828125, 0.00788116455078125, 0.023529052734375, 0.021575927734375, -0.0013723373413085938, -0.00489044189453125, 0.02838134765625, -0.0098419189453125, -0.002498626708984375, 0.0212860107421875, -0.0509033203125, -0.032379150390625, -0.007289886474609375, -0.01136016845703125, 0.018280029296875, 0.006565093994140625, -0.0136566162109375, -0.033599853515625, -0.01528167724609375, -0.0032215118408203125, -0.046783447265625, 0.02960205078125, 0.059326171875, -0.044097900390625, -0.0218963623046875, 0.01361846923828125, -0.0159454345703125, 0.00270843505859375, -0.0153350830078125, -0.0263671875, 0.004638671875, -0.024749755859375, -0.0191650390625, 0.00556182861328125, 0.00464630126953125, 0.006130218505859375, 0.007320404052734375, 0.0128936767578125, -0.004436492919921875, 0.00289154052734375, -0.0259246826171875, -0.01629638671875, 0.027099609375, -0.0217132568359375, 0.032257080078125, 0.00702667236328125, 0.0002582073211669922, -0.0032367706298828125, 0.0234832763671875, -0.0170440673828125, -0.024322509765625, 0.000522613525390625, -0.017333984375, 0.0002353191375732422, -0.037261962890625, 0.00920867919921875, -0.017242431640625, 0.0097198486328125, -0.050506591796875, -0.0390625, 0.0113525390625 ]
62924417f4e713d49ab4523e87db1aee63005721
Wordpress Stackexchange Q: Conference ticketing and seating module for WordPress Previously I have asked about free Conferencing modules for WordPress. Unfortunately, none (free or paid) support seating, i.e.: tickets with seat numbers. Can you recommend one which does? Thanks A: Late answer - I also added this answer on the other Q as addition to my answer. Possible solution Your best bet would be to use * *A Plugin that makes use of Custom Post Types, then use something like the RW_Meta_Box class library to add custom fields for seat reservation to the event. *Use a DB-option to store all seat numbers (Use the Transients API to clear the entry after the event has expired). *Then retrieve the custom field with your seat numbers option during attendee registration and offer only the available seats.
Q: Conference ticketing and seating module for WordPress Previously I have asked about free Conferencing modules for WordPress. Unfortunately, none (free or paid) support seating, i.e.: tickets with seat numbers. Can you recommend one which does? Thanks A: Late answer - I also added this answer on the other Q as addition to my answer. Possible solution Your best bet would be to use * *A Plugin that makes use of Custom Post Types, then use something like the RW_Meta_Box class library to add custom fields for seat reservation to the event. *Use a DB-option to store all seat numbers (Use the Transients API to clear the entry after the event has expired). *Then retrieve the custom field with your seat numbers option during attendee registration and offer only the available seats.
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:418241", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46191" }
[ 0.06341552734375, -0.005878448486328125, 0.007617950439453125, -0.04949951171875, 0.01247406005859375, -0.0208740234375, 0.0233612060546875, -0.0156707763671875, -0.0022296905517578125, -0.009063720703125, -0.035125732421875, 0.0161285400390625, -0.042816162109375, -0.032196044921875, 0.0255889892578125, -0.051239013671875, 0.037322998046875, -0.031890869140625, 0.01261138916015625, -0.01271820068359375, -0.001941680908203125, 0.0028743743896484375, 0.0299072265625, 0.058380126953125, 0.03839111328125, 0.0281524658203125, 0.0302734375, -0.01517486572265625, 0.0302276611328125, 0.00774383544921875, 0.0269775390625, -0.04522705078125, -0.0008683204650878906, 0.05712890625, -0.038116455078125, 0.01276397705078125, -0.018890380859375, 0.048004150390625, 0.01520538330078125, 0.020263671875, 0.032196044921875, -0.0019626617431640625, -0.0379638671875, 0.044036865234375, -0.0377197265625, -0.0462646484375, -0.0015459060668945312, -0.051177978515625, -0.00707244873046875, -0.03485107421875, 0.0012760162353515625, -0.004047393798828125, 0.016143798828125, -0.0677490234375, -0.0155487060546875, -0.0105133056640625, 0.033294677734375, -0.00970458984375, -0.00388336181640625, -0.034393310546875, 0.003719329833984375, 0.06170654296875, 0.011688232421875, 0.0604248046875, -0.045684814453125, -0.00675201416015625, -0.0148773193359375, 0.01334381103515625, 0.0260009765625, -0.0545654296875, -0.01163482666015625, 0.0190582275390625, -0.0275421142578125, 0.01328277587890625, -0.0221710205078125, -0.032562255859375, 0.02935791015625, -0.052490234375, -0.005764007568359375, 0.04254150390625, -0.023345947265625, -0.0309295654296875, -0.02728271484375, 0.0021457672119140625, -0.013519287109375, 0.033447265625, -0.0126800537109375, 0.002811431884765625, -0.0006170272827148438, 0.0019464492797851562, -0.0030536651611328125, -0.036285400390625, -0.0294952392578125, 0.05914306640625, 0.005802154541015625, -0.006649017333984375, 0.02069091796875, 0.04315185546875, -0.043365478515625, -0.0296173095703125, 0.018341064453125, -0.01580810546875, -0.0133209228515625, -0.00891876220703125, 0.02166748046875, 0.059844970703125, -0.0160980224609375, -0.036346435546875, 0.0215301513671875, 0.0149383544921875, 0.0155181884765625, 0.0018720626831054688, -0.005306243896484375, -0.01499176025390625, -0.0196075439453125, -0.0194549560546875, -0.057220458984375, 0.034423828125, 0.00489044189453125, 0.00202178955078125, -0.0125885009765625, 0.0214996337890625, -0.04608154296875, 0.0285797119140625, 0.01197052001953125, 0.01517486572265625, 0.01383209228515625, 0.0085296630859375, -0.051727294921875, 0.052276611328125, -0.015655517578125, 0.0124359130859375, 0.0122528076171875, 0.0169525146484375, -0.032501220703125, -0.026336669921875, 0.033355712890625, 0.0248260498046875, 0.000682830810546875, -0.008056640625, -0.0242462158203125, 0.01873779296875, 0.0171966552734375, -0.033935546875, 0.031707763671875, 0.037139892578125, 0.05120849609375, 0.0022945404052734375, -0.0294647216796875, -0.036956787109375, 0.012664794921875, 0.01001739501953125, -0.004001617431640625, 0.0224761962890625, 0.051666259765625, -0.0025787353515625, 0.00583648681640625, -0.005828857421875, 0.046905517578125, 0.017913818359375, 0.04058837890625, -0.0304107666015625, -0.00550079345703125, -0.0239105224609375, -0.047149658203125, 0.032989501953125, -0.06561279296875, -0.0254058837890625, 0.01026153564453125, -0.0161285400390625, 0.0027866363525390625, 0.0304718017578125, -0.044036865234375, -0.019256591796875, 0.0086822509765625, -0.00913238525390625, 0.0113525390625, 0.027618408203125, 0.0111236572265625, 0.059844970703125, -0.01378631591796875, -0.042144775390625, 0.060882568359375, -0.0367431640625, -0.040679931640625, 0.03521728515625, 0.015655517578125, 0.06024169921875, -0.0157623291015625, 0.011932373046875, 0.0458984375, 0.010009765625, -0.02288818359375, -0.034515380859375, -0.0189361572265625, -0.0379638671875, 0.01050567626953125, -0.022705078125, -0.0083160400390625, 0.0555419921875, -0.0174102783203125, -0.0087890625, 0.014434814453125, 0.01033782958984375, 0.0239410400390625, -0.0097503662109375, 0.0018711090087890625, 0.0078582763671875, -0.02081298828125, 0.01898193359375, 0.001766204833984375, -0.01727294921875, -0.008026123046875, -0.006145477294921875, 0.01482391357421875, 0.0217437744140625, 0.0167999267578125, 0.08587646484375, 0.0024051666259765625, 0.049407958984375, 0.0211334228515625, -0.093017578125, 0.045318603515625, 0.053009033203125, 0.00617218017578125, -0.0107574462890625, -0.0085906982421875, -0.002086639404296875, 0.07562255859375, -0.01561737060546875, 0.10791015625, 0.0115814208984375, 0.00157928466796875, 0.00719451904296875, -0.0190277099609375, 0.03741455078125, 0.0322265625, 0.0200653076171875, -0.0289306640625, -0.00991058349609375, 0.041473388671875, -0.019927978515625, -0.029388427734375, -0.03192138671875, 0.045867919921875, -0.010162353515625, 0.00936126708984375, -0.015045166015625, -0.07965087890625, -0.03369140625, 0.07318115234375, 0.04541015625, 0.003643035888671875, 0.01190185546875, -0.0167999267578125, 0.03399658203125, 0.006595611572265625, 0.01910400390625, -0.05145263671875, 0.0200653076171875, 0.0059356689453125, 0.0079803466796875, -0.023529052734375, 0.01206207275390625, -0.0347900390625, 0.029052734375, -0.002910614013671875, 0.01053619384765625, -0.01104736328125, 0.00811004638671875, 0.01018524169921875, -0.00836944580078125, -0.0012187957763671875, 0.0166778564453125, 0.028778076171875, 0.0198822021484375, -0.018402099609375, -0.0019931793212890625, -0.004245758056640625, 0.004161834716796875, -0.025054931640625, 0.0181121826171875, -0.01324462890625, -0.0272979736328125, -0.00516510009765625, -0.033843994140625, -0.01418304443359375, -0.032989501953125, -0.01343536376953125, -0.051177978515625, -0.00791168212890625, 0.021697998046875, -0.0199737548828125, 0.0262908935546875, 0.0065765380859375, -0.0287017822265625, -0.01476287841796875, 0.01503753662109375, 0.004199981689453125, -0.0195465087890625, -0.0100555419921875, 0.0421142578125, 0.0254974365234375, -0.0391845703125, 0.01044464111328125, 0.01172637939453125, 0.0109710693359375, 0.00377655029296875, -0.002292633056640625, -0.0098724365234375, -0.0131683349609375, 0.00872039794921875, -0.00640106201171875, 0.0272674560546875, -0.048431396484375, -0.054412841796875, -0.0178680419921875, -0.0256805419921875, -0.05853271484375, -0.0121002197265625, 0.043792724609375, -0.0703125, -0.0178070068359375, 0.0048980712890625, -0.05438232421875, -0.0164031982421875, 0.05364990234375, -0.001407623291015625, 0.0078125, 0.0203094482421875, -0.00958251953125, -0.004268646240234375, -0.04388427734375, -0.01454925537109375, 0.00873565673828125, 0.0282135009765625, 0.007083892822265625, 0.0282745361328125, 0.00890350341796875, -0.0268096923828125, 0.021942138671875, 0.055908203125, -0.002750396728515625, -0.007843017578125, 0.021392822265625, -0.0160064697265625, 0.016326904296875, -0.007785797119140625, 0.060882568359375, 0.032623291015625, -0.0504150390625, -0.0011644363403320312, -0.04779052734375, 0.035858154296875, -0.03369140625, 0.034942626953125, 0.07061767578125, 0.0249786376953125, 0.0007519721984863281, -0.0391845703125, 0.07147216796875, 0.00989532470703125, 0.01416778564453125, -0.10009765625, -0.01447296142578125, -0.034637451171875, -0.0161285400390625, -0.04595947265625, 0.0059661865234375, 0.0166473388671875, 0.005603790283203125, 0.0113983154296875, 0.0033931732177734375, -0.020751953125, -0.022064208984375, -0.0129241943359375, 0.010101318359375, -0.0280609130859375, -0.01065826416015625, -0.0180511474609375, 0.0109100341796875, -0.032257080078125, 0.03277587890625, -0.053680419921875, -0.05401611328125, 0.051116943359375, 0.0031337738037109375, 0.00655364990234375, -0.00997161865234375, -0.046112060546875, 0.0152130126953125, 0.11944580078125, -0.03668212890625, -0.04180908203125, 0.0223236083984375, 0.03045654296875, -0.009185791015625, -0.022857666015625, 0.01351165771484375, -0.0312347412109375, -0.020172119140625, 0.0011835098266601562, -0.01629638671875, -0.0169677734375, -0.01493072509765625, -0.006275177001953125, -0.002300262451171875, -0.0279541015625, 0.017608642578125, -0.01983642578125, 0.0292816162109375, -0.004497528076171875, 0.03265380859375, -0.0299072265625, 0.0257568359375, -0.037445068359375, -0.0677490234375, -0.0179443359375, -0.0129547119140625, 0.0782470703125, 0.013824462890625, -0.040313720703125, -0.0033283233642578125, 0.049224853515625, 0.03070068359375, 0.0142822265625, 0.01462554931640625, -0.0164947509765625, 0.00588226318359375, 0.00809478759765625, 0.00501251220703125, -0.0303802490234375, -0.019866943359375, 0.0045318603515625, -0.024749755859375, 0.0009927749633789062, -0.0032806396484375, -0.0269622802734375, 0.04638671875, -0.0413818359375, -0.0198211669921875, -0.012603759765625, 0.037841796875, 0.024322509765625, 0.0018663406372070312, 0.00820159912109375, -0.0106964111328125, -0.0038280487060546875, -0.026458740234375, -0.00691986083984375, -0.034912109375, 0.03717041015625, 0.031463623046875, 0.0294647216796875, 0.010467529296875, -0.069580078125, -0.00611114501953125, 0.048126220703125, 0.0195465087890625, 0.0311126708984375, -0.0016021728515625, -0.036041259765625, 0.07879638671875, 0.0220794677734375, 0.0015277862548828125, 0.0256500244140625, 0.0198516845703125, 0.022186279296875, -0.032684326171875, 0.0273590087890625, 0.0236053466796875, -0.050140380859375, -0.002384185791015625, 0.004833221435546875, -0.0223388671875, -0.016082763671875, 0.048004150390625, 0.0310211181640625, 0.0023479461669921875, -0.056671142578125, -0.01232147216796875, 0.00569915771484375, 0.0146484375, 0.01143646240234375, 0.00299072265625, 0.01812744140625, -0.00803375244140625, 0.003864288330078125, -0.0032367706298828125, 0.027587890625, -0.0208587646484375, 0.0267791748046875, -0.00885772705078125, 0.0787353515625, 0.01157379150390625, 0.01093292236328125, 0.00388336181640625, 0.003307342529296875, -0.0206146240234375, -0.047760009765625, -0.032135009765625, -0.010101318359375, 0.0255126953125, 0.049957275390625, 0.00804901123046875, 0.02374267578125, 0.051116943359375, -0.003704071044921875, -0.0015163421630859375, 0.004299163818359375, 0.053436279296875, -0.04254150390625, -0.0238800048828125, -0.00968170166015625, -0.017791748046875, -0.011871337890625, 0.041290283203125, -0.0101318359375, 0.0230865478515625, -0.0204010009765625, 0.052093505859375, 0.052703857421875, 0.0274200439453125, 0.026947021484375, -0.057464599609375, 0.006694793701171875, -0.017425537109375, -0.030242919921875, -0.04327392578125, -0.032745361328125, 0.04620361328125, 0.0439453125, -0.004909515380859375, -0.015716552734375, 0.0128021240234375, 0.0197296142578125, 0.005832672119140625, -0.00855255126953125, -0.03997802734375, -0.036590576171875, -0.005298614501953125, 0.0216522216796875, 0.0084228515625, -0.0272064208984375, -0.00921630859375, 0.0200653076171875, -0.033416748046875, 0.0106048583984375, 0.031494140625, -0.01151275634765625, -0.0167388916015625, -0.023345947265625, 0.045745849609375, 0.00795745849609375, 0.00823974609375, -0.09051513671875, -0.038818359375, -0.028778076171875, 0.032989501953125, 0.060455322265625, -0.02313232421875, 0.0733642578125, -0.0236358642578125, -0.04669189453125, -0.033355712890625, 0.032562255859375, -0.00010716915130615234, 0.013427734375, -0.05548095703125, -0.007080078125, -0.03985595703125, -0.00991058349609375, -0.0491943359375, -0.019683837890625, -0.038330078125, 0.028717041015625, 0.06298828125, 0.022308349609375, 0.0035572052001953125, -0.08599853515625, -0.001399993896484375, 0.01055145263671875, 0.05609130859375, 0.05157470703125, 0.047149658203125, -0.028839111328125, -0.0157623291015625, 0.044097900390625, 0.0237884521484375, -0.01149749755859375, -0.0167388916015625, -0.0465087890625, 0.006381988525390625, -0.050079345703125, 0.0082550048828125, -0.010833740234375, 0.02166748046875, -0.00902557373046875, -0.0275726318359375, -0.0031108856201171875, 0.0244598388671875, -0.016876220703125, 0.02001953125, -0.004253387451171875, -0.01580810546875, -0.024749755859375, -0.035491943359375, 0.042205810546875, -0.0545654296875, 0.03582763671875, 0.040863037109375, 0.01280975341796875, 0.052154541015625, -0.0640869140625, 0.04791259765625, 0.03558349609375, -0.003528594970703125, 0.0004596710205078125, 0.039337158203125, -0.0048675537109375, 0.04876708984375, 0.007228851318359375, 0.032623291015625, 0.04766845703125, 0.0533447265625, -0.053558349609375, -0.1019287109375, 0.0279388427734375, 0.033782958984375, -0.0369873046875, 0.047088623046875, -0.0224151611328125, 0.015228271484375, 0.0032196044921875, 0.04571533203125, -0.0194091796875, 0.0030384063720703125, -0.01158905029296875, -0.0250091552734375, 0.0596923828125, -0.0037097930908203125, 0.0273590087890625, 0.005096435546875, -0.0016269683837890625, 0.038909912109375, -0.016021728515625, 0.0158233642578125, -0.00457000732421875, -0.0165252685546875, -0.018096923828125, 0.0210723876953125, 0.009124755859375, 0.0089874267578125, -0.0233917236328125, -0.0124359130859375, 0.0063018798828125, -0.0189056396484375, 0.01357269287109375, 0.0233917236328125, -0.0121307373046875, -0.0628662109375, 0.00408172607421875, -0.029937744140625, -0.02227783203125, -0.0164642333984375, -0.00797271728515625, 0.0005545616149902344, 0.044464111328125, -0.046844482421875, 0.01885986328125, 0.0108184814453125, -0.018707275390625, 0.006832122802734375, 0.0045928955078125, 0.02154541015625, 0.015289306640625, -0.03436279296875, 0.0101318359375, -0.0361328125, -0.00202178955078125, -0.00736236572265625, 0.032958984375, 0.07794189453125, -0.060699462890625, -0.011566162109375, 0.031585693359375, 0.0305938720703125, -0.006893157958984375, 0.02435302734375, 0.0012826919555664062, -0.01071929931640625, 0.02203369140625, 0.027099609375, 0.00217437744140625, -0.01142120361328125, 0.0180206298828125, -0.01216888427734375, 0.0765380859375, 0.006008148193359375, -0.0200653076171875, -0.00531768798828125, 0.0474853515625, -0.020172119140625, 0.055755615234375, -0.018035888671875, 0.01629638671875, -0.005146026611328125, 0.0251922607421875, 0.00159454345703125, -0.00323486328125, 0.0053558349609375, 0.046234130859375, 0.0264129638671875, -0.0007243156433105469, -0.006504058837890625, 0.0032138824462890625, 0.05047607421875, 0.036895751953125, 0.006622314453125, -0.005462646484375, 0.0012187957763671875, 0.0274505615234375, 0.040985107421875, 0.003551483154296875, 0.035369873046875, -0.0055694580078125, -0.039825439453125, 0.0249481201171875, 0.009857177734375, 0.01279449462890625, -0.01399993896484375, 0.01224517822265625, -0.0087890625, -0.0115203857421875, -0.00945281982421875, -0.00824737548828125, 0.0251312255859375, 0.0272674560546875, 0.0372314453125, -0.040863037109375, -0.0182647705078125, -0.0269927978515625, 0.050689697265625, -0.00026297569274902344, 0.03668212890625, 0.03875732421875, 0.0290069580078125, -0.0217742919921875, -0.0034275054931640625, 0.03277587890625, 0.02301025390625, -0.06787109375, 0.015655517578125, -0.0113983154296875, 0.025421142578125, -0.0584716796875, -0.0128173828125, 0.0247344970703125, 0.046295166015625, -0.010986328125, -0.0367431640625, 0.01290130615234375, 0.0133819580078125, 0.01413726806640625, -0.0022068023681640625, 0.01073455810546875, -0.0281219482421875, 0.0286102294921875, -0.041839599609375, 0.003948211669921875, 0.047393798828125, -0.027374267578125, 0.002979278564453125, 0.019134521484375, 0.01342010498046875, 0.024200439453125, 0.0197906494140625, -0.025299072265625, 0.03387451171875, 0.0109405517578125, -0.0147705078125, 0.0125885009765625, -0.04034423828125, 0.00736236572265625, -0.029693603515625, 0.0672607421875, 0.050933837890625, -0.0033283233642578125, -0.0019550323486328125, -0.0212249755859375, 0.030059814453125, 0.016387939453125, 0.0213165283203125, 0.0384521484375, 0.05523681640625, 0.048797607421875, -0.00562286376953125, 0.00978851318359375, 0.06842041015625, -0.0156707763671875, 0.04010009765625, -0.02410888671875, -0.0222015380859375, -0.0232391357421875, -0.043487548828125, -0.0078582763671875, -0.006412506103515625, 0.0307769775390625, 0.0218048095703125, 0.0204925537109375, 0.003963470458984375, 0.007541656494140625, -0.0246124267578125, -0.024444580078125, -0.014801025390625, 0.0352783203125, -0.1295166015625, -0.048126220703125, -0.0276336669921875, 0.057525634765625, -0.0017805099487304688, 0.01467132568359375, -0.0014352798461914062, 0.037689208984375, 0.01448822021484375, 0.03570556640625, 0.0244598388671875, -0.053680419921875, -0.0154571533203125, 0.009490966796875, 0.042724609375, 0.0086822509765625, -0.0310211181640625, -0.0252838134765625, -0.0277099609375, 0.08209228515625, -0.026763916015625, 0.09735107421875, -0.0596923828125, 0.01837158203125, 0.01168060302734375, -0.0224456787109375, 0.01296234130859375, -0.00518798828125, 0.00823974609375, -0.0201263427734375, -0.0158843994140625, -0.01371002197265625, -0.00426483154296875, 0.047119140625, 0.0026874542236328125, -0.00820159912109375, 0.046783447265625, -0.05340576171875, 0.0126190185546875, 0.0101318359375, 0.00963592529296875, -0.006378173828125, -0.040191650390625, 0.0273590087890625, 0.0147247314453125, -0.01334381103515625, 0.0316162109375, 0.033294677734375, 0.034027099609375, -0.018280029296875, -0.0249481201171875, 0.01290130615234375, -0.05303955078125, 0.035552978515625, 0.031646728515625, -0.0125732421875, 0.0276641845703125, 0.00606536865234375, -0.019134521484375, 0.0231781005859375, 0.0181121826171875, -0.00949859619140625, 0.0163421630859375, 0.031280517578125, 0.022216796875, 0.01323699951171875, 0.021209716796875, -0.037109375, 0.004299163818359375, 0.0382080078125, -0.00390625, 0.006500244140625, -0.0281982421875, -0.023590087890625, -0.05499267578125, 0.0127716064453125, 0.0159454345703125, -0.0364990234375, -0.0202484130859375, -0.06280517578125, -0.0289764404296875, 0.0020198822021484375, -0.006641387939453125, -0.00014793872833251953, -0.0059967041015625, 0.005767822265625, -0.031707763671875, -0.0006899833679199219, -0.050628662109375, 0.0097808837890625, 0.0635986328125, -0.0154266357421875, -0.03790283203125, -0.0269317626953125, 0.01230621337890625, -0.05633544921875, 0.0296630859375, 0.033172607421875, -0.0027866363525390625, 0.01337432861328125, 0.0231170654296875, 0.009307861328125, 0.07049560546875, -0.03778076171875, -0.0289154052734375, -0.01213836669921875, 0.025299072265625, 0.003021240234375, 0.015655517578125, 0.01486968994140625, 0.0390625, -0.042755126953125, -0.05633544921875, 0.025054931640625, -0.001495361328125, -0.056243896484375, -0.08544921875, 0.05120849609375, -0.031890869140625, -0.02655029296875, -0.036865234375, 0.005481719970703125, -0.004055023193359375, 0.0098724365234375, -0.021240234375, -0.01148223876953125, -0.00035309791564941406, 0.037445068359375, 0.023529052734375, -0.00659942626953125, 0.030364990234375, -0.0110015869140625, -0.045379638671875, 0.019195556640625, 0.0251617431640625, 0.01849365234375, 0.030242919921875, -0.01515960693359375, 0.004817962646484375, 0.033050537109375, -0.041351318359375, -0.07891845703125, -0.0247650146484375, -0.041900634765625, 0.01375579833984375, -0.025848388671875, -0.00858306884765625, -0.04632568359375, -0.0138702392578125, -0.0110626220703125, -0.005123138427734375, 0.0306243896484375, -0.01471710205078125, -0.054779052734375, -0.019683837890625, -0.020172119140625, 0.0010042190551757812, -0.0601806640625, 0.01165771484375, 0.0029697418212890625, -0.01233673095703125, -0.0087890625, 0.041748046875, -0.053009033203125, -0.01282501220703125, -0.017059326171875, -0.047607421875, -0.0516357421875, -0.0032501220703125, 0.053619384765625, -0.0467529296875, -0.039459228515625, 0.0023021697998046875, 0.005390167236328125, -0.0113067626953125, -0.035003662109375, -0.0164794921875, -0.0073394775390625, -0.0160369873046875, 0.037384033203125, -0.014404296875, 0.046112060546875, -0.0347900390625, 0.0105133056640625, -0.038848876953125, 0.0362548828125, 0.01800537109375, 0.0650634765625, -0.0236968994140625, 0.01629638671875, 0.039337158203125, -0.039306640625, 0.011383056640625, -0.032379150390625, -0.025421142578125, 0.03350830078125, 0.00958251953125, -0.032623291015625, 0.03643798828125, -0.044097900390625, -0.007045745849609375, 0.00804901123046875, -0.0106048583984375, -0.0523681640625, 0.043487548828125, -0.0478515625, -0.009796142578125, 0.027923583984375 ]
b8f1ba780609f38d28b5fbe754d1e05503287527
Wordpress Stackexchange Q: How to get a variable number of posts per post type on the main loop? I'm looking for a way to balance the content at the homepage of my blog: the blog has a few post types like Poscasts, Videos and Blog and I'd like to have let's say 10 Posts on the homepage, but I'd like to make 5 of them always the lastest Blog. Making 3 separated boxes don't solve my problem because the posts are mixed and there won't always be as many posts of the other types. I could think of the solution for it on pure PHP , but I'd like to get a idea on how to do this using the wordpress API, any help , reference will be welcome! A: So, after a few months. I found the answer to your exact question: add_action('pre_get_posts', 'custom_main_query', 1); function custom_main_query( $query ) { if ( $query->is_main_query() && is_home() ) { //be super careful with this and to be safe, keep the is_home() //bit there, I've had some funny results without it. $query->query_vars['posts_per_page'] = 3; //displays 3 posts ;) $query->query_vars['post_type'] = array('post'); //and if you wanted multiple cpts <3 return $query; } } Cheers
Q: How to get a variable number of posts per post type on the main loop? I'm looking for a way to balance the content at the homepage of my blog: the blog has a few post types like Poscasts, Videos and Blog and I'd like to have let's say 10 Posts on the homepage, but I'd like to make 5 of them always the lastest Blog. Making 3 separated boxes don't solve my problem because the posts are mixed and there won't always be as many posts of the other types. I could think of the solution for it on pure PHP , but I'd like to get a idea on how to do this using the wordpress API, any help , reference will be welcome! A: So, after a few months. I found the answer to your exact question: add_action('pre_get_posts', 'custom_main_query', 1); function custom_main_query( $query ) { if ( $query->is_main_query() && is_home() ) { //be super careful with this and to be safe, keep the is_home() //bit there, I've had some funny results without it. $query->query_vars['posts_per_page'] = 3; //displays 3 posts ;) $query->query_vars['post_type'] = array('post'); //and if you wanted multiple cpts <3 return $query; } } Cheers A: If you are still looking for an alternative that may be faster this may help you: <?php function customBlogFeed() { // The Query $the_query = new WP_Query( array ( 'post_type' => array( 'post', 'page', 'movie', 'book'), 'posts_per_page' => '6' ) ); //Your post_type array is a list of random post_types. You can add whatever you'd like to match your system. // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php endwhile; // Reset Post Data wp_reset_postdata(); } ?> Then to get it's output put <?php customBlogFeed(); ?> wherever you'd like this to output. If you really want to get fancy you can hook into the post_limits Filter and limit how many posts per post type are displayed. I hope this helps you on your quest. PS - Look into WP_Query, it will really help you out. After some research you might actually want to look into post_clauses to get those SQL characterizations done with WP3.1+ Syntax
wordpress
{ "language": "en", "length": 363, "provenance": "stackexchange_00019.jsonl.gz:418243", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46198" }
[ 0.03314208984375, 0.00759124755859375, -0.023162841796875, -0.0251617431640625, 0.027099609375, -0.0310516357421875, 0.050048828125, -0.011199951171875, 0.011566162109375, 0.0166168212890625, -0.055023193359375, 0.016845703125, -0.050262451171875, 0.0002111196517944336, -0.00839996337890625, -0.036956787109375, 0.054473876953125, -0.050384521484375, 0.00838470458984375, -0.00531005859375, -0.0192718505859375, 0.008819580078125, 0.05328369140625, 0.06561279296875, 0.0187530517578125, 0.0031528472900390625, 0.043212890625, -0.04010009765625, -0.00862884521484375, -0.0328369140625, 0.00673675537109375, 0.0250244140625, 0.04266357421875, -0.0098724365234375, -0.0023975372314453125, 0.05499267578125, 0.038909912109375, -0.00783538818359375, 0.0030078887939453125, 0.0261383056640625, -0.018341064453125, 0.025115966796875, 0.0290374755859375, 0.0005664825439453125, -0.0266265869140625, -0.0257415771484375, 0.01507568359375, -0.0086822509765625, 0.010345458984375, 0.003322601318359375, 0.01175689697265625, -0.00899505615234375, 0.0200347900390625, -0.0012598037719726562, -0.005390167236328125, 0.0021686553955078125, 0.05322265625, -0.08892822265625, 0.039794921875, -0.042236328125, -0.04840087890625, -0.038543701171875, 0.07586669921875, -0.0149383544921875, -0.03228759765625, 0.0269775390625, 0.04705810546875, -0.0212860107421875, -0.0289306640625, -0.03851318359375, 0.027587890625, 0.007549285888671875, 0.01273345947265625, -0.006572723388671875, -0.0114593505859375, -0.006504058837890625, -0.0087738037109375, -0.006015777587890625, 0.04302978515625, 0.0003848075866699219, -0.021392822265625, 0.01084136962890625, -0.0865478515625, -0.02020263671875, 0.012420654296875, 0.023406982421875, -0.0092315673828125, -0.00751495361328125, -0.0162506103515625, -0.0093536376953125, -0.006389617919921875, -0.040191650390625, -0.03936767578125, 0.0270538330078125, 0.039520263671875, -0.05419921875, -0.0272979736328125, 0.0012454986572265625, -0.00957489013671875, -0.00945281982421875, -0.0114898681640625, -0.0176239013671875, -0.0276947021484375, -0.001983642578125, 0.023406982421875, -0.01210784912109375, -0.0090179443359375, 0.027496337890625, 0.07513427734375, 0.0579833984375, 0.004024505615234375, 0.0654296875, -0.031524658203125, 0.0134429931640625, -0.038299560546875, -0.0019683837890625, -0.054962158203125, -0.031768798828125, -0.020294189453125, -0.0104827880859375, -0.00604248046875, 0.018157958984375, 0.00244903564453125, -0.042755126953125, 0.02911376953125, 0.01511383056640625, -0.000972747802734375, -0.03631591796875, -0.0128021240234375, 0.053802490234375, -0.026153564453125, 0.0008335113525390625, 0.0268707275390625, -0.007965087890625, -0.029571533203125, -0.032073974609375, 0.039703369140625, -0.0279083251953125, -0.0220794677734375, 0.035858154296875, 0.0003330707550048828, -0.04345703125, -0.0242462158203125, -0.0012216567993164062, 0.04534912109375, 0.033416748046875, 0.04718017578125, -0.006439208984375, -0.0160675048828125, -0.006374359130859375, 0.004024505615234375, -0.0038356781005859375, 0.038177490234375, -0.004222869873046875, -0.06622314453125, -0.017791748046875, -0.0295867919921875, -0.01141357421875, -0.01233673095703125, -0.043701171875, -0.00940704345703125, -0.0031337738037109375, 0.00632476806640625, -0.049560546875, -0.042755126953125, -0.0249176025390625, 0.0044097900390625, -0.002986907958984375, 0.0180206298828125, 0.04534912109375, 0.01016998291015625, -0.024017333984375, 0.05010986328125, 0.00955963134765625, -0.0352783203125, 0.008880615234375, -0.001583099365234375, -0.0016355514526367188, 0.04058837890625, -0.003925323486328125, -0.016326904296875, -0.028472900390625, 0.0430908203125, -0.004405975341796875, -0.0487060546875, 0.03643798828125, -0.003814697265625, 0.029083251953125, 0.0016031265258789062, 0.001483917236328125, 0.027984619140625, 0.032470703125, -0.0313720703125, 0.0272674560546875, -0.0209503173828125, -0.0175628662109375, -0.0245361328125, -0.006610870361328125, -0.0195465087890625, 0.025146484375, -0.0035648345947265625, 0.0110931396484375, 0.0035037994384765625, 0.01352691650390625, -0.04888916015625, 0.0276947021484375, -0.00910186767578125, 0.0389404296875, -0.004009246826171875, 0.059844970703125, 0.034881591796875, 0.04083251953125, -0.05950927734375, 0.0017642974853515625, -0.002574920654296875, 0.007701873779296875, 0.0239105224609375, 0.034912109375, 0.00826263427734375, 0.005397796630859375, 0.00635528564453125, -0.034271240234375, -0.0025882720947265625, 0.042083740234375, 0.100830078125, -0.0311126708984375, -0.0167388916015625, -0.04412841796875, 0.045501708984375, 0.00740814208984375, -0.09619140625, 0.049072265625, 0.046234130859375, 0.033203125, -0.032440185546875, -0.001514434814453125, 0.00928497314453125, -0.01953125, 0.0089874267578125, 0.03424072265625, 0.0355224609375, -0.00012826919555664062, -0.005947113037109375, -0.041290283203125, 0.036407470703125, -0.04071044921875, 0.0165557861328125, -0.03375244140625, 0.026397705078125, 0.063232421875, -0.033203125, 0.010345458984375, 0.0173492431640625, -0.052398681640625, 0.006885528564453125, 0.048919677734375, 0.005523681640625, 0.0184173583984375, -0.0217132568359375, -0.016021728515625, 0.0013217926025390625, -0.010498046875, -0.0211944580078125, 0.01349639892578125, 0.038848876953125, 0.0170745849609375, 0.0445556640625, 0.039215087890625, -0.00826263427734375, 0.0024509429931640625, -0.009063720703125, -0.012664794921875, -0.006946563720703125, -0.00992584228515625, -0.056243896484375, -0.022979736328125, -0.0268707275390625, 0.050018310546875, -0.019866943359375, -0.037445068359375, -0.0261077880859375, 0.04473876953125, -0.07562255859375, -0.01898193359375, -0.0226593017578125, -0.033355712890625, -0.0341796875, -0.01326751708984375, 0.027679443359375, 0.018310546875, 0.038360595703125, 0.01276397705078125, -0.0255279541015625, 0.052703857421875, -0.01678466796875, -0.01910400390625, 0.018829345703125, -0.08319091796875, 0.05755615234375, -0.0494384765625, 0.06591796875, 0.0810546875, -0.02032470703125, 0.027984619140625, 0.00519561767578125, 0.0110321044921875, -0.017120361328125, 0.037322998046875, 0.0038852691650390625, -0.0312347412109375, -0.0181121826171875, 0.0286102294921875, 0.0240020751953125, 0.0511474609375, 0.0079345703125, -0.020416259765625, 0.01036834716796875, 0.0386962890625, -0.0263671875, -0.049346923828125, 0.072509765625, -0.05926513671875, -0.00989532470703125, -0.0263824462890625, -0.041534423828125, -0.022247314453125, -0.0159912109375, -0.0235443115234375, 0.0169525146484375, 0.00469207763671875, -0.062164306640625, -0.0265655517578125, -0.055267333984375, 0.01513671875, -0.005321502685546875, 0.01181793212890625, -0.00439453125, 0.092529296875, 0.01461029052734375, -0.08160400390625, -0.0130615234375, 0.04913330078125, -0.041107177734375, 0.0018253326416015625, 0.0181427001953125, -0.0111846923828125, -0.00962066650390625, 0.0007829666137695312, -0.018768310546875, 0.0264739990234375, -0.021636962890625, 0.0005536079406738281, -0.0015859603881835938, 0.0142059326171875, 0.0263519287109375, 0.0137481689453125, -0.0028972625732421875, 0.0574951171875, 0.038543701171875, -0.0162353515625, -0.0142822265625, -0.0035247802734375, -0.0428466796875, 0.0017881393432617188, 0.00797271728515625, 0.004734039306640625, -0.01285552978515625, -0.0100860595703125, -0.017303466796875, -0.0343017578125, -0.01291656494140625, -0.044952392578125, 0.05340576171875, 0.013275146484375, 0.0245208740234375, -0.00885772705078125, 0.0146942138671875, -0.0124969482421875, 0.052886962890625, 0.01351165771484375, -0.01268768310546875, -0.016998291015625, 0.01482391357421875, -0.03863525390625, -0.0268096923828125, 0.059600830078125, 0.0065765380859375, -0.0038204193115234375, -0.026153564453125, -0.04327392578125, -0.007320404052734375, 0.0751953125, -0.09747314453125, -0.012359619140625, 0.000942230224609375, 0.0184478759765625, -0.01250457763671875, -0.048431396484375, -0.0297698974609375, -0.0189971923828125, -0.01309967041015625, -0.005161285400390625, -0.0411376953125, 0.00933074951171875, -0.039398193359375, 0.0278167724609375, -0.0179901123046875, -0.038299560546875, 0.040863037109375, -0.0328369140625, 0.00023174285888671875, -0.0078277587890625, -0.01398468017578125, -0.03228759765625, -0.03662109375, -0.01351165771484375, -0.04730224609375, -0.044952392578125, 0.0665283203125, 0.048553466796875, -0.00847625732421875, -0.06365966796875, -0.0020885467529296875, 0.06353759765625, 0.0204315185546875, 0.006740570068359375, -0.007598876953125, -0.0108489990234375, -0.0143890380859375, -0.0158538818359375, -0.0105133056640625, -0.019073486328125, -0.01904296875, -0.036102294921875, 0.01110076904296875, -0.0157470703125, -0.04681396484375, -0.0173187255859375, -0.0352783203125, 0.00007826089859008789, -0.06787109375, -0.0296630859375, 0.006595611572265625, 0.022918701171875, 0.006389617919921875, -0.009979248046875, -0.03216552734375, -0.06109619140625, 0.015655517578125, 0.0267791748046875, -0.0384521484375, 0.0160369873046875, 0.037384033203125, 0.00916290283203125, -0.0367431640625, -0.07696533203125, 0.0032806396484375, 0.03338623046875, 0.0316162109375, 0.0390625, 0.025054931640625, -0.01763916015625, 0.038909912109375, 0.0193023681640625, 0.01171112060546875, -0.036346435546875, 0.001888275146484375, 0.00644683837890625, -0.0046539306640625, 0.0062408447265625, 0.0032482147216796875, 0.0472412109375, 0.0018415451049804688, -0.00695037841796875, -0.0300750732421875, 0.002750396728515625, 0.047882080078125, -0.0007419586181640625, 0.040130615234375, -0.03076171875, -0.0104217529296875, 0.0160064697265625, 0.021759033203125, 0.035400390625, -0.0030345916748046875, 0.0184173583984375, 0.0027217864990234375, 0.006988525390625, 0.0115509033203125, 0.036376953125, 0.0592041015625, -0.0020847320556640625, 0.05291748046875, 0.0279083251953125, -0.00958251953125, -0.00243377685546875, 0.003368377685546875, 0.002773284912109375, -0.03314208984375, -0.03314208984375, -0.00811767578125, -0.006931304931640625, -0.0034122467041015625, 0.035369873046875, -0.019195556640625, 0.047119140625, 0.038848876953125, -0.01314544677734375, -0.027587890625, -0.005023956298828125, -0.0235443115234375, -0.051910400390625, -0.001346588134765625, -0.019866943359375, 0.0136566162109375, 0.0188446044921875, 0.0477294921875, -0.0292816162109375, 0.06341552734375, -0.0116424560546875, 0.01219940185546875, 0.02630615234375, 0.0020809173583984375, -0.0027523040771484375, 0.034454345703125, -0.01280975341796875, 0.0235748291015625, 0.0229949951171875, -0.021820068359375, -0.0157623291015625, 0.0309906005859375, 0.040679931640625, -0.005950927734375, -0.005367279052734375, -0.01351165771484375, -0.0176849365234375, 0.001361846923828125, 0.00543975830078125, -0.00940704345703125, 0.0158233642578125, -0.033599853515625, -0.024505615234375, 0.0401611328125, -0.004299163818359375, -0.0010385513305664062, -0.00336456298828125, 0.01617431640625, 0.046051025390625, -0.0258331298828125, 0.008148193359375, 0.002758026123046875, 0.018768310546875, -0.055328369140625, -0.021942138671875, -0.00583648681640625, -0.030670166015625, -0.037261962890625, 0.019317626953125, -0.023681640625, -0.0163116455078125, -0.0067901611328125, 0.040252685546875, -0.0270538330078125, -0.029327392578125, 0.01009368896484375, 0.0194244384765625, 0.03558349609375, 0.01220703125, -0.038360595703125, -0.0002512931823730469, -0.0516357421875, -0.0264739990234375, 0.017730712890625, -0.0056610107421875, -0.0455322265625, -0.00934600830078125, 0.00505828857421875, 0.0308837890625, 0.0015468597412109375, -0.039215087890625, -0.026031494140625, -0.0095977783203125, 0.0071258544921875, 0.0288238525390625, 0.0014486312866210938, 0.033782958984375, -0.01290130615234375, 0.040283203125, 0.00315093994140625, 0.016876220703125, -0.0162200927734375, -0.0166473388671875, 0.0167083740234375, -0.041168212890625, -0.0172119140625, 0.012054443359375, -0.0323486328125, -0.020477294921875, 0.0146942138671875, -0.00868988037109375, 0.006053924560546875, 0.007686614990234375, 0.00777435302734375, -0.0179443359375, -0.006435394287109375, -0.000751495361328125, -0.017333984375, 0.059783935546875, 0.0141143798828125, -0.0129547119140625, -0.02728271484375, -0.01503753662109375, -0.0100555419921875, 0.02105712890625, -0.013641357421875, -0.01537322998046875, -0.0298614501953125, 0.036285400390625, 0.08380126953125, 0.040374755859375, 0.0853271484375, 0.031158447265625, 0.03436279296875, 0.004100799560546875, -0.01529693603515625, 0.026458740234375, 0.021087646484375, 0.034271240234375, -0.0213623046875, -0.026214599609375, 0.00951385498046875, -0.0299224853515625, -0.01413726806640625, 0.036834716796875, 0.0193939208984375, -0.031829833984375, -0.023712158203125, -0.03228759765625, -0.0263824462890625, 0.005367279052734375, 0.0003788471221923828, 0.0036468505859375, -0.0181427001953125, 0.0162200927734375, 0.011871337890625, -0.01183319091796875, -0.0010528564453125, -0.0098876953125, -0.00994110107421875, -0.020599365234375, 0.0175323486328125, -0.0194854736328125, -0.0216217041015625, -0.0025691986083984375, 0.00521087646484375, -0.034515380859375, 0.0003707408905029297, 0.0257110595703125, 0.01233673095703125, -0.0171661376953125, -0.057952880859375, -0.00841522216796875, -0.0166015625, -0.037078857421875, -0.042694091796875, 0.01113128662109375, -0.01172637939453125, 0.042694091796875, -0.033355712890625, 0.01214599609375, 0.042938232421875, -0.0677490234375, -0.0178680419921875, -0.01500701904296875, 0.01081085205078125, 0.0207977294921875, -0.04718017578125, 0.026763916015625, -0.037078857421875, -0.011627197265625, -0.0019092559814453125, -0.026031494140625, 0.0230865478515625, 0.0082244873046875, -0.016387939453125, 0.0494384765625, 0.009796142578125, -0.040985107421875, 0.003971099853515625, -0.0101776123046875, -0.0567626953125, -0.05621337890625, 0.01318359375, -0.0689697265625, -0.025421142578125, -0.0160064697265625, -0.03802490234375, 0.10040283203125, -0.0271148681640625, 0.0280609130859375, 0.03173828125, 0.037078857421875, -0.03948974609375, 0.004924774169921875, -0.01302337646484375, 0.047882080078125, -0.025543212890625, 0.05316162109375, -0.07366943359375, -0.0264739990234375, 0.0163116455078125, 0.07073974609375, 0.02484130859375, -0.0042572021484375, -0.037689208984375, 0.01343536376953125, 0.07806396484375, 0.05670166015625, 0.0245361328125, 0.02593994140625, -0.0016202926635742188, 0.04888916015625, 0.053680419921875, -0.03955078125, 0.039703369140625, -0.00732421875, -0.018402099609375, 0.03228759765625, -0.01468658447265625, -0.0238494873046875, -0.00360107421875, 0.017059326171875, -0.02880859375, -0.00506591796875, 0.00774383544921875, -0.00107574462890625, 0.03594970703125, 0.05841064453125, 0.08453369140625, -0.00016415119171142578, 0.01070404052734375, -0.0111541748046875, 0.06243896484375, 0.0087127685546875, 0.006591796875, 0.058807373046875, 0.006816864013671875, 0.08203125, 0.00925445556640625, -0.004146575927734375, 0.015289306640625, 0.0215301513671875, 0.0584716796875, 0.025482177734375, 0.04290771484375, -0.0340576171875, 0.002582550048828125, 0.0157623291015625, 0.0592041015625, -0.038116455078125, -0.0257110595703125, -0.0015916824340820312, 0.0175018310546875, 0.029327392578125, -0.000025153160095214844, 0.0259246826171875, 0.054443359375, 0.06842041015625, -0.03607177734375, -0.01274871826171875, -0.005786895751953125, 0.00838470458984375, -0.0035839080810546875, 0.007335662841796875, 0.01351165771484375, -0.0311279296875, -0.021881103515625, -0.0006480216979980469, 0.0079803466796875, 0.06939697265625, 0.004413604736328125, 0.054046630859375, -0.07421875, -0.029693603515625, 0.0015745162963867188, 0.0185546875, -0.019683837890625, -0.0005326271057128906, -0.0258331298828125, -0.04315185546875, -0.0428466796875, 0.02435302734375, 0.0379638671875, 0.0208892822265625, 0.026580810546875, 0.0355224609375, 0.0132598876953125, 0.004261016845703125, 0.05548095703125, -0.006206512451171875, -0.040374755859375, -0.01284027099609375, -0.05572509765625, -0.00183868408203125, -0.01387786865234375, 0.0203094482421875, 0.035980224609375, -0.012725830078125, 0.0232696533203125, -0.0166015625, 0.0017576217651367188, -0.004650115966796875, 0.0498046875, 0.0078582763671875, 0.033294677734375, 0.03485107421875, -0.060302734375, -0.0029811859130859375, -0.03143310546875, -0.0428466796875, 0.02935791015625, 0.03607177734375, -0.02569580078125, 0.022613525390625, 0.023193359375, -0.045379638671875, -0.017669677734375, 0.0208587646484375, 0.038604736328125, 0.021728515625, -0.0007348060607910156, 0.0088348388671875, -0.10235595703125, -0.05078125, -0.041107177734375, 0.007198333740234375, -0.0011968612670898438, 0.056488037109375, 0.04205322265625, 0.0211029052734375, 0.00429534912109375, 0.01275634765625, 0.014556884765625, 0.003948211669921875, -0.00287628173828125, 0.01432037353515625, 0.0309295654296875, -0.01251220703125, 0.004878997802734375, -0.0054779052734375, 0.049224853515625, -0.049285888671875, -0.004749298095703125, -0.021728515625, 0.0150909423828125, -0.02142333984375, 0.048065185546875, -0.00823974609375, 0.01099395751953125, -0.038726806640625, -0.054168701171875, 0.0810546875, 0.049896240234375, 0.0017642974853515625, 0.058319091796875, 0.03271484375, -0.01393890380859375, 0.03582763671875, -0.0474853515625, 0.054107666015625, 0.0275421142578125, 0.02252197265625, -0.013763427734375, 0.01471710205078125, -0.021484375, 0.0233306884765625, 0.009429931640625, 0.0419921875, 0.0039520263671875, -0.0264739990234375, -0.004878997802734375, 0.013153076171875, 0.038055419921875, -0.033782958984375, 0.0184173583984375, 0.03082275390625, -0.001556396484375, 0.01039886474609375, 0.0109100341796875, -0.0214691162109375, -0.0029430389404296875, -0.004974365234375, -0.015472412109375, 0.01096343994140625, -0.045501708984375, -0.00897979736328125, -0.0157623291015625, 0.00441741943359375, -0.00786590576171875, -0.0142974853515625, 0.0298309326171875, -0.0308990478515625, -0.02874755859375, -0.033477783203125, -0.01467132568359375, 0.007106781005859375, 0.024078369140625, -0.00992584228515625, 0.0169219970703125, -0.026092529296875, -0.0168914794921875, 0.01425933837890625, 0.001384735107421875, 0.028839111328125, -0.0280914306640625, -0.019439697265625, -0.00672149658203125, -0.001190185546875, 0.013916015625, 0.012237548828125, 0.0036296844482421875, 0.045928955078125, -0.0213623046875, -0.055450439453125, -0.0716552734375, 0.0233154296875, -0.09210205078125, -0.00800323486328125, -0.007648468017578125, 0.0294647216796875, 0.053955078125, -0.0054779052734375, -0.031951904296875, 0.0567626953125, -0.0263214111328125, -0.0218658447265625, -0.048095703125, -0.0013570785522460938, 0.00041794776916503906, -0.00469970703125, -0.0021800994873046875, -0.054595947265625, -0.041717529296875, 0.00800323486328125, 0.012298583984375, 0.013336181640625, 0.059478759765625, -0.0343017578125, -0.05792236328125, -0.0302734375, -0.020233154296875, 0.0223541259765625, 0.015289306640625, 0.0047760009765625, 0.037445068359375, 0.02667236328125, -0.0252532958984375, 0.051177978515625, -0.004589080810546875, -0.0198516845703125, 0.0037212371826171875, -0.039520263671875, -0.0501708984375, -0.0286865234375, 0.06561279296875, 0.0277252197265625, 0.029815673828125, -0.0196075439453125, -0.018463134765625, -0.01367950439453125, -0.0465087890625, -0.03375244140625, 0.0277862548828125, -0.060882568359375, -0.0032062530517578125, -0.026611328125, -0.0214080810546875, -0.033050537109375, -0.0093841552734375, -0.054046630859375, -0.0024547576904296875, 0.006839752197265625, 0.0193939208984375, -0.015045166015625, 0.0029277801513671875, -0.06878662109375, 0.016632080078125, -0.027069091796875, -0.0288848876953125, -0.00330352783203125, -0.06671142578125, 0.0080718994140625, 0.0017986297607421875, 0.0018815994262695312, -0.021881103515625, 0.0205841064453125, 0.0035076141357421875, 0.0145111083984375, -0.027191162109375, -0.0120086669921875, 0.014801025390625, -0.0013628005981445312, -0.0121002197265625, -0.0014142990112304688, -0.0102081298828125, 0.0308380126953125, -0.0231781005859375, 0.01910400390625, -0.0070648193359375, 0.040435791015625, 0.020263671875, -0.0033855438232421875, -0.001983642578125, 0.0098724365234375, 0.00977325439453125, -0.0225982666015625, -0.007717132568359375, -0.004245758056640625, -0.03912353515625, -0.041839599609375, 0.0008101463317871094, 0.064453125, -0.0156707763671875, 0.017120361328125 ]
5f86aa97f155ef5e4877f0ee868f00e5e2b74a6d
Wordpress Stackexchange Q: Editing Wordpress Permissions in LAMP - Ubuntu 11.10 I'm hosting a local version of my wordpress theme on Ubuntu 11.10. However, LAMP is installed in a directory that requires sudo privileges. When I try to add images or any outside content to my theme, it fails because it cannot create a folder/write to a folder. How do I edit the permissions to allow Wordpress the access it needs? A: I think that setting all to 777 is not the most secure option. Basically, my favourite is to change the wordpress to the webserver's owner. Being: sudo chown -R www-data:www-data /var/www/ So that the webserver is responsible for handling changes. Also, you can change the rights to 755 for the whole /var/www branch sudo chmod -R -c 755 /var/www/ Finally, allow your wp-content/ folder in 775 ( so that you can edit files from the WordPress backend without having to upload files via FTP. ( Not necessarily a best practice but useful from time to time ) via sudo chmod -R -c 775 /var/www/WORDPRESS/wp-contents/ And you will have a reasonable setup with uploads, editing from backend and a minimum level of security.
Q: Editing Wordpress Permissions in LAMP - Ubuntu 11.10 I'm hosting a local version of my wordpress theme on Ubuntu 11.10. However, LAMP is installed in a directory that requires sudo privileges. When I try to add images or any outside content to my theme, it fails because it cannot create a folder/write to a folder. How do I edit the permissions to allow Wordpress the access it needs? A: I think that setting all to 777 is not the most secure option. Basically, my favourite is to change the wordpress to the webserver's owner. Being: sudo chown -R www-data:www-data /var/www/ So that the webserver is responsible for handling changes. Also, you can change the rights to 755 for the whole /var/www branch sudo chmod -R -c 755 /var/www/ Finally, allow your wp-content/ folder in 775 ( so that you can edit files from the WordPress backend without having to upload files via FTP. ( Not necessarily a best practice but useful from time to time ) via sudo chmod -R -c 775 /var/www/WORDPRESS/wp-contents/ And you will have a reasonable setup with uploads, editing from backend and a minimum level of security.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:418263", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46266" }
[ 0.036468505859375, -0.00817108154296875, 0.035186767578125, -0.0150146484375, -0.0131072998046875, -0.0167236328125, 0.02777099609375, -0.03936767578125, 0.0036792755126953125, 0.02227783203125, -0.0157318115234375, 0.0035877227783203125, 0.016845703125, -0.021087646484375, 0.00623321533203125, -0.0041351318359375, 0.0229949951171875, -0.03179931640625, 0.01117706298828125, -0.0237274169921875, -0.00839996337890625, 0.0023174285888671875, 0.062744140625, -0.006557464599609375, 0.0079345703125, 0.0106353759765625, 0.0526123046875, -0.0302886962890625, 0.00005716085433959961, -0.03070068359375, 0.0138092041015625, 0.004009246826171875, 0.03167724609375, 0.0196685791015625, -0.0458984375, 0.0013647079467773438, -0.003330230712890625, -0.006092071533203125, -0.0278778076171875, 0.0251617431640625, 0.026702880859375, -0.01690673828125, 0.0262298583984375, 0.03509521484375, 0.0196533203125, -0.063720703125, 0.047637939453125, -0.0693359375, -0.00494384765625, -0.009918212890625, -0.01348114013671875, 0.006130218505859375, 0.00942230224609375, -0.0253448486328125, 0.0018873214721679688, -0.0292816162109375, 0.0306243896484375, -0.0008182525634765625, 0.041290283203125, -0.06402587890625, -0.06671142578125, -0.0295562744140625, 0.03582763671875, 0.01318359375, 0.029571533203125, -0.02001953125, 0.02557373046875, 0.0310211181640625, -0.04888916015625, 0.030792236328125, 0.037261962890625, -0.02545166015625, 0.021942138671875, -0.023223876953125, 0.0537109375, -0.006664276123046875, -0.006072998046875, 0.00919342041015625, 0.01462554931640625, 0.0340576171875, 0.03338623046875, -0.04052734375, -0.029876708984375, -0.0263671875, 0.0233612060546875, 0.005939483642578125, 0.011505126953125, -0.0005145072937011719, -0.003551483154296875, 0.037109375, -0.006099700927734375, -0.00519561767578125, -0.018463134765625, 0.052703857421875, 0.017425537109375, 0.006557464599609375, 0.0027484893798828125, -0.01026153564453125, 0.0188446044921875, 0.02337646484375, 0.0160980224609375, -0.04315185546875, 0.028900146484375, -0.00896453857421875, -0.0016193389892578125, 0.0305023193359375, -0.00157928466796875, -0.0009303092956542969, 0.0263214111328125, 0.031524658203125, -0.007625579833984375, -0.00870513916015625, 0.0231170654296875, -0.005802154541015625, -0.02301025390625, 0.0204315185546875, 0.0206298828125, -0.01435089111328125, -0.01372528076171875, -0.00954437255859375, -0.0127105712890625, -0.0013637542724609375, -0.0252838134765625, 0.0035495758056640625, -0.004673004150390625, -0.0234832763671875, -0.0123138427734375, 0.02447509765625, 0.0301055908203125, 0.0340576171875, -0.0333251953125, 0.01541900634765625, 0.04168701171875, -0.01486968994140625, -0.0201416015625, -0.01007843017578125, 0.0126800537109375, 0.005962371826171875, -0.0017375946044921875, 0.0185089111328125, -0.006679534912109375, 0.006153106689453125, 0.05291748046875, -0.038787841796875, 0.0037326812744140625, 0.0116424560546875, 0.0184326171875, 0.0276336669921875, -0.0064239501953125, -0.037689208984375, 0.0260772705078125, -0.0312042236328125, 0.0081634521484375, 0.020721435546875, 0.0193328857421875, -0.0081024169921875, 0.0135650634765625, -0.0205230712890625, 0.01021575927734375, -0.01477813720703125, -0.00557708740234375, 0.0028629302978515625, 0.053375244140625, -0.016632080078125, -0.0174102783203125, -0.01082611083984375, -0.0440673828125, 0.0018949508666992188, 0.0229034423828125, -0.0264739990234375, 0.048858642578125, -0.0501708984375, 0.00954437255859375, 0.0041961669921875, 0.0026340484619140625, 0.03173828125, -0.005184173583984375, 0.036529541015625, 0.019500732421875, 0.06439208984375, 0.049041748046875, -0.003307342529296875, 0.077880859375, 0.002910614013671875, -0.01007080078125, -0.01068878173828125, 0.01116943359375, 0.00952911376953125, 0.00897979736328125, 0.0263519287109375, -0.00661468505859375, 0.0001348257064819336, -0.049285888671875, 0.06964111328125, -0.042144775390625, -0.041229248046875, -0.03289794921875, 0.0001533031463623047, -0.03485107421875, 0.01230621337890625, 0.035430908203125, 0.01210784912109375, -0.000035762786865234375, -0.006153106689453125, -0.03466796875, -0.0034332275390625, -0.01189422607421875, 0.01141357421875, 0.01245880126953125, 0.0086212158203125, 0.00803375244140625, -0.0030612945556640625, 0.0048980712890625, -0.06243896484375, -0.057281494140625, -0.0007538795471191406, -0.024139404296875, 0.08367919921875, -0.0025959014892578125, 0.07220458984375, 0.006870269775390625, -0.06695556640625, 0.022308349609375, -0.00012201070785522461, 0.0382080078125, -0.0182037353515625, 0.004779815673828125, -0.0146484375, 0.0261993408203125, 0.015899658203125, -0.014739990234375, 0.01346588134765625, -0.010040283203125, -0.01137542724609375, -0.01312255859375, -0.01175689697265625, -0.0242462158203125, -0.0816650390625, 0.01316070556640625, 0.05718994140625, 0.052520751953125, 0.007335662841796875, 0.007793426513671875, -0.035552978515625, 0.04638671875, -0.039947509765625, 0.0276336669921875, -0.050506591796875, 0.0109100341796875, 0.0177764892578125, 0.006011962890625, -0.01337432861328125, 0.033721923828125, -0.046356201171875, -0.0175628662109375, 0.050048828125, -0.0272064208984375, -0.018218994140625, -0.00807952880859375, 0.0077056884765625, -0.0005621910095214844, -0.044586181640625, -0.0148468017578125, -0.0272369384765625, -0.0161285400390625, 0.00951385498046875, -0.0175628662109375, -0.01300811767578125, -0.041473388671875, 0.0122833251953125, 0.030609130859375, -0.044342041015625, 0.00232696533203125, 0.032867431640625, 0.010406494140625, 0.0017423629760742188, -0.038787841796875, 0.00518798828125, 0.019500732421875, 0.017059326171875, -0.05322265625, -0.02178955078125, 0.0005078315734863281, -0.00679779052734375, -0.01904296875, -0.06475830078125, 0.04962158203125, -0.0219879150390625, -0.021881103515625, -0.0114898681640625, 0.0165863037109375, 0.01041412353515625, -0.035400390625, 0.044769287109375, -0.035064697265625, -0.0106353759765625, 0.0723876953125, -0.03411865234375, 0.02142333984375, -0.01250457763671875, 0.0572509765625, 0.051544189453125, 0.0005602836608886719, -0.0109710693359375, -0.002094268798828125, 0.00901031494140625, 0.0016660690307617188, 0.0020771026611328125, -0.00586700439453125, -0.01142120361328125, -0.040252685546875, -0.0136871337890625, -0.0100860595703125, -0.042266845703125, -0.004169464111328125, -0.037445068359375, -0.0194244384765625, -0.0251312255859375, -0.08685302734375, -0.05291748046875, -0.0073394775390625, -0.06011962890625, -0.007083892822265625, -0.0208892822265625, -0.0400390625, 0.0008006095886230469, 0.0161285400390625, -0.002655029296875, -0.025299072265625, 0.00789642333984375, -0.0298309326171875, -0.03997802734375, -0.046234130859375, -0.038970947265625, -0.019989013671875, 0.007049560546875, -0.005260467529296875, 0.0623779296875, -0.0240478515625, -0.0966796875, -0.058319091796875, 0.047119140625, -0.014678955078125, -0.004314422607421875, -0.01190185546875, -0.00739288330078125, 0.005908966064453125, 0.0016231536865234375, 0.038482666015625, 0.00408172607421875, -0.0145416259765625, -0.02777099609375, -0.003147125244140625, -0.0163726806640625, 0.01151275634765625, 0.037261962890625, -0.010498046875, -0.0196075439453125, 0.02398681640625, -0.05645751953125, -0.01189422607421875, -0.0030002593994140625, -0.03460693359375, 0.0016078948974609375, 0.01256561279296875, -0.015838623046875, -0.0191802978515625, 0.00026798248291015625, 0.03070068359375, 0.049652099609375, -0.004486083984375, 0.0181427001953125, 0.04376220703125, 0.0012960433959960938, 0.01303863525390625, -0.0227813720703125, 0.0245208740234375, -0.0218963623046875, 0.00807952880859375, 0.0028705596923828125, 0.0015478134155273438, -0.020477294921875, -0.004180908203125, -0.039520263671875, -0.05792236328125, 0.0460205078125, -0.033294677734375, 0.0172576904296875, -0.0501708984375, -0.034576416015625, -0.0100250244140625, 0.0968017578125, -0.05108642578125, 0.0026798248291015625, 0.027679443359375, 0.020050048828125, -0.01531219482421875, -0.033355712890625, -0.0635986328125, -0.0208587646484375, -0.0190887451171875, 0.01097869873046875, 0.00598907470703125, -0.0088653564453125, -0.02020263671875, -0.0433349609375, -0.017730712890625, -0.0159149169921875, 0.028961181640625, -0.03167724609375, 0.00978851318359375, 0.004062652587890625, -0.0208282470703125, -0.0228729248046875, -0.030242919921875, -0.015869140625, -0.16064453125, -0.047637939453125, 0.0120391845703125, 0.1195068359375, -0.0169525146484375, 0.0175933837890625, -0.040863037109375, 0.09124755859375, -0.02996826171875, 0.0186004638671875, -0.005908966064453125, 0.033050537109375, -0.0090789794921875, -0.01108551025390625, -0.0014142990112304688, -0.017730712890625, -0.013763427734375, -0.0262451171875, -0.0286712646484375, -0.003231048583984375, -0.0192413330078125, 0.0072479248046875, 0.0165252685546875, -0.01322174072265625, -0.048614501953125, -0.032958984375, -0.06512451171875, 0.00276947021484375, -0.03466796875, -0.0028018951416015625, -0.049896240234375, -0.067138671875, 0.067138671875, -0.03363037109375, 0.0138397216796875, -0.0033283233642578125, 0.11737060546875, 0.00864410400390625, -0.016448974609375, -0.0206146240234375, -0.001018524169921875, 0.03204345703125, -0.0106048583984375, 0.06072998046875, 0.042816162109375, -0.004833221435546875, 0.0289764404296875, 0.00821685791015625, -0.0096435546875, -0.0035839080810546875, 0.002216339111328125, 0.0303192138671875, 0.0235748291015625, -0.0445556640625, 0.041534423828125, 0.039703369140625, -0.031890869140625, -0.01221466064453125, 0.037078857421875, 0.0186920166015625, -0.0203857421875, 0.0248260498046875, -0.03094482421875, 0.004764556884765625, -0.0667724609375, 0.02490234375, -0.07696533203125, 0.064697265625, 0.004299163818359375, -0.006557464599609375, 0.0638427734375, 0.0379638671875, -0.00778961181640625, -0.0236053466796875, -0.0254058837890625, -0.029083251953125, -0.0007472038269042969, -0.0003609657287597656, -0.023162841796875, 0.0011472702026367188, -0.0097808837890625, 0.03179931640625, 0.0038585662841796875, -0.03057861328125, -0.0207061767578125, -0.00296783447265625, 0.003925323486328125, -0.002841949462890625, -0.00635528564453125, 0.02178955078125, -0.0099945068359375, -0.005031585693359375, 0.00014460086822509766, 0.0130462646484375, -0.042510986328125, -0.0243988037109375, 0.01131439208984375, 0.0016260147094726562, -0.0131988525390625, 0.0521240234375, -0.02886962890625, 0.01131439208984375, -0.0209808349609375, -0.0091552734375, 0.0225830078125, 0.011993408203125, 0.009979248046875, 0.00550079345703125, 0.0161285400390625, 0.0105438232421875, -0.01861572265625, 0.0175628662109375, -0.03369140625, 0.01293182373046875, 0.04925537109375, 0.0452880859375, -0.013763427734375, -0.034881591796875, -0.004169464111328125, -0.037750244140625, 0.0236053466796875, -0.00588226318359375, -0.021240234375, -0.027801513671875, 0.01491546630859375, -0.002017974853515625, -0.001819610595703125, -0.0487060546875, -0.0011949539184570312, -0.00566864013671875, -0.0269927978515625, -0.01678466796875, 0.051513671875, -0.03106689453125, -0.015411376953125, -0.0303955078125, 0.01174163818359375, -0.01119232177734375, -0.0166168212890625, -0.016265869140625, -0.0284271240234375, -0.00359344482421875, 0.00010699033737182617, 0.0310516357421875, 0.005321502685546875, -0.00682830810546875, -0.034942626953125, 0.0029125213623046875, -0.0101776123046875, -0.0129852294921875, 0.044921875, -0.0024089813232421875, -0.052215576171875, 0.0049896240234375, -0.037445068359375, -0.0011501312255859375, -0.0006279945373535156, -0.035186767578125, -0.0396728515625, -0.026824951171875, 0.004886627197265625, -0.0120086669921875, -0.033935546875, -0.0413818359375, -0.061065673828125, 0.076171875, 0.08056640625, 0.052520751953125, -0.01160430908203125, 0.048797607421875, -0.0022563934326171875, 0.0234832763671875, 0.006610870361328125, 0.004184722900390625, -0.033233642578125, -0.0155487060546875, 0.0215301513671875, -0.0210418701171875, -0.0418701171875, -0.04888916015625, 0.0031185150146484375, 0.03192138671875, 0.067138671875, -0.013885498046875, 0.01143646240234375, -0.03350830078125, -0.0015316009521484375, -0.0150299072265625, 0.0221099853515625, -0.04144287109375, -0.0093994140625, 0.00980377197265625, -0.01390838623046875, 0.08648681640625, -0.006275177001953125, -0.0304107666015625, 0.057037353515625, -0.04388427734375, 0.06329345703125, 0.0540771484375, -0.032684326171875, 0.04022216796875, 0.07330322265625, -0.007114410400390625, 0.039215087890625, 0.034423828125, 0.01049041748046875, 0.0186920166015625, 0.025482177734375, -0.0014247894287109375, -0.012969970703125, 0.0364990234375, 0.006565093994140625, -0.02313232421875, 0.0034465789794921875, -0.034210205078125, 0.043182373046875, 0.05364990234375, 0.08465576171875, -0.06591796875, 0.0145721435546875, 0.01186370849609375, -0.04266357421875, 0.032928466796875, -0.0016040802001953125, -0.01271820068359375, -0.00818634033203125, 0.04241943359375, -0.0703125, -0.0165863037109375, 0.00688934326171875, -0.01430511474609375, -0.00797271728515625, 0.01010894775390625, 0.038421630859375, 0.0203857421875, 0.005306243896484375, -0.0047454833984375, -0.006542205810546875, 0.023406982421875, 0.00408935546875, 0.0155487060546875, -0.02508544921875, -0.05352783203125, -0.0601806640625, -0.0609130859375, 0.0147857666015625, -0.043060302734375, -0.021026611328125, -0.00267791748046875, 0.0316162109375, 0.049285888671875, -0.0268707275390625, 0.02703857421875, 0.02044677734375, 0.002613067626953125, 0.00778961181640625, -0.0124053955078125, 0.01165008544921875, 0.01219940185546875, -0.035369873046875, 0.01381683349609375, -0.00827789306640625, -0.005706787109375, -0.0016880035400390625, -0.01352691650390625, 0.004863739013671875, -0.03875732421875, 0.006824493408203125, 0.05010986328125, 0.019256591796875, -0.0154876708984375, 0.00817108154296875, 0.038970947265625, -0.04986572265625, -0.0264892578125, 0.0248260498046875, -0.01313018798828125, -0.027587890625, 0.03045654296875, -0.055755615234375, 0.0625, 0.00901031494140625, 0.01265716552734375, 0.0171356201171875, 0.034332275390625, -0.04693603515625, -0.01001739501953125, -0.0233612060546875, 0.028594970703125, -0.007595062255859375, 0.0157012939453125, -0.050018310546875, -0.01041412353515625, -0.0162811279296875, 0.0241241455078125, 0.0701904296875, 0.0270538330078125, -0.053741455078125, -0.025238037109375, 0.0311431884765625, 0.035980224609375, -0.0069580078125, 0.0626220703125, 0.002559661865234375, 0.0119171142578125, 0.01074981689453125, -0.0187225341796875, 0.03143310546875, -0.04010009765625, -0.0151519775390625, 0.028594970703125, -0.001506805419921875, -0.01611328125, -0.008026123046875, -0.0011758804321289062, -0.044403076171875, 0.0017423629760742188, 0.027801513671875, -0.015655517578125, 0.0185546875, 0.0240325927734375, 0.031005859375, 0.00951385498046875, 0.002857208251953125, -0.01503753662109375, 0.052490234375, 0.012908935546875, -0.01279449462890625, -0.0135040283203125, 0.00933074951171875, -0.0423583984375, 0.0033702850341796875, -0.009490966796875, 0.04443359375, -0.0264892578125, 0.01068878173828125, 0.042877197265625, 0.0200042724609375, 0.0038089752197265625, 0.080810546875, 0.0399169921875, 0.0175628662109375, -0.04742431640625, 0.01021575927734375, 0.01013946533203125, 0.01346588134765625, -0.01387786865234375, -0.033355712890625, -0.0022106170654296875, 0.023040771484375, 0.021209716796875, -0.049560546875, 0.02734375, 0.041473388671875, 0.00640869140625, -0.0121612548828125, 0.015869140625, -0.032501220703125, 0.0311279296875, 0.0034275054931640625, -0.0197601318359375, -0.00846099853515625, -0.01515960693359375, -0.006053924560546875, 0.0264892578125, 0.04083251953125, 0.02423095703125, -0.00675201416015625, 0.03936767578125, 0.002689361572265625, 0.0160675048828125, -0.046478271484375, -0.06829833984375, 0.04412841796875, 0.0352783203125, -0.0222320556640625, 0.036651611328125, 0.007022857666015625, 0.042999267578125, -0.0072479248046875, -0.01386260986328125, 0.0282745361328125, -0.015777587890625, -0.03155517578125, 0.0128021240234375, -0.0176849365234375, 0.0201263427734375, -0.0068206787109375, -0.035125732421875, 0.06854248046875, 0.01361846923828125, -0.0214691162109375, 0.0211181640625, -0.01015472412109375, 0.00266265869140625, 0.0382080078125, -0.04266357421875, 0.0012493133544921875, -0.019287109375, -0.0281219482421875, 0.005016326904296875, -0.034210205078125, -0.032623291015625, 0.0191802978515625, 0.033294677734375, 0.0148773193359375, -0.0168609619140625, -0.03997802734375, -0.0175933837890625, 0.016815185546875, 0.0175018310546875, -0.01132965087890625, 0.0238189697265625, 0.02374267578125, -0.00475311279296875, -0.055908203125, -0.023193359375, -0.0460205078125, 0.056854248046875, 0.007488250732421875, 0.1072998046875, -0.048675537109375, 0.03118896484375, -0.0128936767578125, 0.004924774169921875, -0.0273590087890625, -0.023223876953125, 0.045928955078125, 0.006622314453125, -0.01235198974609375, -0.01207733154296875, -0.0148468017578125, 0.020416259765625, 0.0017261505126953125, -0.03668212890625, 0.0095672607421875, -0.036376953125, 0.0240020751953125, 0.0034503936767578125, 0.029052734375, -0.0233917236328125, -0.038421630859375, -0.02935791015625, 0.0084228515625, 0.002017974853515625, 0.0047149658203125, -0.0214691162109375, 0.01554107666015625, -0.036102294921875, -0.0545654296875, -0.0005993843078613281, -0.0282440185546875, -0.0251312255859375, 0.02587890625, 0.0018701553344726562, -0.04254150390625, 0.002323150634765625, -0.0029144287109375, -0.0190887451171875, 0.0261077880859375, 0.034454345703125, -0.00749969482421875, -0.005916595458984375, -0.0247650146484375, 0.00391387939453125, 0.0278472900390625, 0.017181396484375, 0.0131072998046875, -0.043426513671875, -0.015777587890625, 0.0054779052734375, -0.008056640625, -0.03814697265625, -0.021270751953125, 0.0028476715087890625, 0.00970458984375, 0.00809478759765625, -0.06390380859375, -0.056365966796875, 0.036956787109375, 0.03851318359375, 0.009185791015625, -0.07501220703125, 0.045623779296875, -0.013641357421875, 0.044403076171875, 0.005390167236328125, -0.0196685791015625, -0.0079345703125, 0.006988525390625, -0.044921875, -0.023529052734375, -0.034881591796875, -0.00518798828125, -0.0268707275390625, 0.030181884765625, 0.032501220703125, -0.025604248046875, 0.0170440673828125, 0.05108642578125, 0.017364501953125, 0.0880126953125, 0.002079010009765625, -0.034393310546875, -0.00514984130859375, -0.0057373046875, -0.012115478515625, -0.03924560546875, 0.002933502197265625, -0.0648193359375, -0.0009598731994628906, -0.0211029052734375, 0.002105712890625, 0.01132965087890625, -0.03851318359375, -0.045257568359375, 0.0173797607421875, -0.0017480850219726562, -0.0187835693359375, -0.0181732177734375, -0.0185394287109375, -0.04156494140625, 0.06561279296875, -0.00435638427734375, -0.004489898681640625, -0.0026702880859375, 0.04876708984375, 0.020843505859375, 0.02685546875, -0.0294342041015625, 0.045654296875, -0.02166748046875, 0.06805419921875, 0.04864501953125, 0.0091552734375, -0.01192474365234375, 0.0020771026611328125, 0.01617431640625, 0.042449951171875, -0.01070404052734375, 0.0020847320556640625, 0.01500701904296875, -0.02642822265625, -0.034088134765625, -0.0182037353515625, -0.0270538330078125, -0.037078857421875, 0.0986328125, 0.06402587890625, 0.0213470458984375, -0.0087890625, -0.03607177734375, -0.08880615234375, -0.054962158203125, -0.001010894775390625, 0.03448486328125, -0.0650634765625, 0.043121337890625, 0.04931640625, -0.010528564453125, 0.01061248779296875, 0.018218994140625, -0.03924560546875, 0.00748443603515625, 0.0006365776062011719, -0.025665283203125, -0.0648193359375, -0.0172271728515625, 0.07159423828125, -0.04644775390625, 0.015106201171875, -0.004398345947265625, 0.0215606689453125, 0.04010009765625, -0.003414154052734375, 0.0011138916015625, 0.00855255126953125, -0.044464111328125, 0.027191162109375, -0.0083160400390625, 0.050140380859375, -0.0513916015625, -0.0125274658203125, 0.007244110107421875, 0.002498626708984375, -0.01251983642578125, 0.01309967041015625, 0.006763458251953125, 0.004543304443359375, -0.035430908203125, 0.0792236328125, -0.01488494873046875, -0.02423095703125, -0.02740478515625, 0.024017333984375, -0.015960693359375, -0.00989532470703125, 0.0017633438110351562, -0.0202789306640625, 0.00726318359375, -0.004245758056640625, 0.00994873046875, -0.03704833984375, -0.005035400390625, 0.0031185150146484375, -0.00907135009765625, 0.0112152099609375 ]
e86cd6c1cc52cb1bc08a99f80e45e4604b314b73
Wordpress Stackexchange Q: Does wordpress create activity, update logs? Does wordpress create any dated logs of activity? ie core updates, plugin download dates etc? A: No, it doesn’t. You could hook into the appropriate filters and save the information in an option or in a custom post type. I would log updates to PHP, MySQL and the server software too. Would be an interesting project. :)
Q: Does wordpress create activity, update logs? Does wordpress create any dated logs of activity? ie core updates, plugin download dates etc? A: No, it doesn’t. You could hook into the appropriate filters and save the information in an option or in a custom post type. I would log updates to PHP, MySQL and the server software too. Would be an interesting project. :) A: If you have enabled debug logging then it will. You can do this by editing your wp-config.php file and adding the following line: define( 'WP_DEBUG_LOG', true ); For more info see WP_DEBUG, which was added to WordPress as of version 2.3.1. A: WordPress alone cannot do it. There are several options in terms of plugins that track the activities such as core/plugin/theme updates. I am using WP Admin Audit for having an event log on my sites.
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:418274", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46310" }
[ 0.04180908203125, -0.00836944580078125, -0.020904541015625, -0.07464599609375, 0.012664794921875, -0.022705078125, 0.01071929931640625, 0.0190582275390625, -0.02093505859375, 0.0203704833984375, 0.029388427734375, -0.035186767578125, -0.018768310546875, -0.03887939453125, -0.017578125, -0.0404052734375, 0.032745361328125, -0.00370025634765625, 0.036407470703125, -0.0004487037658691406, 0.013519287109375, 0.01959228515625, 0.016143798828125, 0.07330322265625, 0.010467529296875, 0.03741455078125, 0.05963134765625, -0.0059661865234375, 0.042694091796875, 0.027435302734375, 0.0272674560546875, -0.0875244140625, 0.0199432373046875, 0.040435791015625, -0.043701171875, 0.0184326171875, 0.00476837158203125, 0.0156402587890625, 0.017486572265625, 0.01294708251953125, -0.009857177734375, 0.01300048828125, 0.08123779296875, -0.0635986328125, 0.020599365234375, -0.007640838623046875, 0.00788116455078125, -0.049957275390625, 0.031005859375, -0.03173828125, 0.001987457275390625, 0.0223541259765625, 0.0220489501953125, -0.0091400146484375, -0.033935546875, -0.0204315185546875, -0.052764892578125, 0.08294677734375, 0.0213470458984375, -0.03973388671875, -0.0230560302734375, 0.020111083984375, 0.013580322265625, 0.0338134765625, -0.01366424560546875, -0.0175628662109375, 0.0202484130859375, -0.00693511962890625, -0.049072265625, 0.01336669921875, 0.06536865234375, -0.0188140869140625, -0.025787353515625, 0.003025054931640625, 0.044647216796875, -0.03887939453125, 0.00995635986328125, -0.039886474609375, -0.0140838623046875, 0.0753173828125, 0.0302734375, 0.0017290115356445312, 0.0501708984375, -0.034088134765625, 0.0203094482421875, -0.00044345855712890625, 0.0013294219970703125, -0.01506805419921875, -0.026123046875, -0.0069732666015625, -0.0265350341796875, -0.038848876953125, -0.024749755859375, 0.0167236328125, -0.023040771484375, -0.0105743408203125, 0.00846099853515625, 0.036224365234375, -0.03106689453125, -0.0095672607421875, -0.035369873046875, 0.0070343017578125, -0.049560546875, 0.007328033447265625, -0.01434326171875, 0.01708984375, 0.04388427734375, 0.008880615234375, -0.00141143798828125, -0.003032684326171875, -0.031768798828125, 0.04168701171875, -0.0016336441040039062, -0.01345062255859375, 0.0158843994140625, 0.025604248046875, -0.014190673828125, 0.03753662109375, -0.013214111328125, 0.0218963623046875, 0.00016069412231445312, 0.020111083984375, -0.0269775390625, -0.001270294189453125, -0.004070281982421875, -0.0182952880859375, -0.01175689697265625, 0.00940704345703125, 0.03167724609375, 0.006134033203125, -0.0186767578125, 0.037322998046875, 0.0126190185546875, -0.01953125, -0.036956787109375, 0.00386810302734375, 0.0159912109375, -0.053466796875, -0.03240966796875, 0.034942626953125, 0.006195068359375, -0.040618896484375, -0.0250091552734375, -0.041412353515625, 0.026885986328125, -0.01192474365234375, 0.0008578300476074219, 0.046539306640625, 0.0313720703125, 0.0024814605712890625, 0.0289154052734375, -0.021942138671875, 0.0306243896484375, -0.031463623046875, 0.0004706382751464844, -0.047149658203125, -0.01163482666015625, -0.0139617919921875, 0.025054931640625, 0.004467010498046875, -0.004268646240234375, -0.0019025802612304688, -0.003993988037109375, 0.00542449951171875, -0.00988006591796875, -0.002506256103515625, 0.007389068603515625, 0.00209808349609375, 0.026275634765625, -0.0272674560546875, -0.0018978118896484375, -0.003948211669921875, 0.05462646484375, 0.0003254413604736328, -0.011962890625, 0.0225067138671875, 0.00039958953857421875, -0.03436279296875, 0.0268707275390625, 0.0245361328125, -0.016571044921875, -0.019012451171875, 0.00514984130859375, -0.003337860107421875, -0.0089263916015625, 0.01605224609375, 0.005992889404296875, 0.0028324127197265625, 0.01256561279296875, -0.0017042160034179688, -0.00029754638671875, 0.0167388916015625, -0.05682373046875, 0.0369873046875, -0.01284027099609375, 0.01099395751953125, -0.0307464599609375, 0.020782470703125, -0.02880859375, -0.04376220703125, -0.00946044921875, 0.04742431640625, -0.0562744140625, 0.0272064208984375, -0.08038330078125, 0.0291900634765625, -0.035369873046875, 0.04901123046875, 0.0060272216796875, 0.003971099853515625, 0.01336669921875, 0.01934814453125, -0.016143798828125, -0.034942626953125, -0.04510498046875, 0.01629638671875, -0.030609130859375, 0.0226898193359375, -0.0006837844848632812, 0.00260162353515625, -0.0194549560546875, -0.005008697509765625, -0.01372528076171875, -0.023223876953125, 0.00391387939453125, -0.0340576171875, 0.00969696044921875, -0.011322021484375, 0.0162200927734375, -0.0138397216796875, 0.007717132568359375, 0.0211334228515625, 0.048248291015625, 0.0364990234375, -0.0264129638671875, -0.0307159423828125, -0.040069580078125, -0.11102294921875, 0.0081024169921875, 0.08135986328125, 0.0257415771484375, 0.0229034423828125, -0.003711700439453125, 0.0206756591796875, -0.002872467041015625, -0.03411865234375, 0.03485107421875, -0.006290435791015625, 0.0026264190673828125, 0.053985595703125, -0.0021457672119140625, 0.01171875, -0.0083770751953125, -0.00746917724609375, -0.0116424560546875, 0.01383209228515625, 0.006641387939453125, -0.0111083984375, -0.0171966552734375, 0.007244110107421875, -0.001861572265625, -0.0090179443359375, -0.0233306884765625, 0.0079193115234375, -0.0169677734375, 0.022796630859375, 0.01505279541015625, 0.032623291015625, -0.01763916015625, 0.01104736328125, 0.0232086181640625, 0.00959014892578125, 0.0117950439453125, 0.0469970703125, -0.0389404296875, 0.03558349609375, -0.03070068359375, -0.0032939910888671875, 0.0027103424072265625, 0.0245208740234375, -0.033599853515625, -0.0161285400390625, -0.0277252197265625, -0.022186279296875, 0.01151275634765625, -0.025634765625, -0.006011962890625, -0.0523681640625, 0.011993408203125, -0.0281829833984375, 0.00724029541015625, -0.00998687744140625, -0.05340576171875, 0.058929443359375, 0.026214599609375, -0.059600830078125, 0.018463134765625, -0.031646728515625, 0.0299835205078125, -0.0143280029296875, 0.06964111328125, 0.06634521484375, -0.018829345703125, 0.0205535888671875, -0.010467529296875, 0.0211029052734375, 0.00457763671875, -0.0101318359375, -0.015655517578125, 0.0013799667358398438, -0.0394287109375, 0.027130126953125, 0.01190948486328125, 0.059356689453125, -0.0257720947265625, -0.039794921875, -0.01085662841796875, 0.0223541259765625, -0.047821044921875, -0.054229736328125, -0.06915283203125, -0.09503173828125, 0.0080108642578125, -0.025421142578125, -0.045166015625, 0.025909423828125, 0.0156707763671875, 0.0253448486328125, -0.03643798828125, -0.0096282958984375, -0.056365966796875, -0.050811767578125, -0.03680419921875, 0.0286407470703125, -0.0211334228515625, 0.0073394775390625, -0.01058197021484375, 0.11175537109375, -0.0038852691650390625, -0.11474609375, -0.055999755859375, -0.01947021484375, -0.0247955322265625, 0.045806884765625, -0.032806396484375, 0.0008115768432617188, 0.0440673828125, -0.0003502368927001953, 0.013092041015625, 0.0142059326171875, 0.01229095458984375, -0.01184844970703125, 0.01117706298828125, 0.003376007080078125, 0.021392822265625, -0.0161590576171875, -0.0290985107421875, 0.0017347335815429688, -0.0084381103515625, -0.057464599609375, 0.02294921875, 0.0287322998046875, -0.00279998779296875, -0.0218505859375, -0.019500732421875, -0.0212554931640625, 0.0168304443359375, -0.0228729248046875, 0.01303863525390625, 0.0084991455078125, 0.021392822265625, -0.0281524658203125, 0.007411956787109375, -0.0170745849609375, -0.0056304931640625, -0.0301666259765625, -0.005035400390625, -0.0299835205078125, 0.01593017578125, -0.0119781494140625, -0.0201416015625, -0.044097900390625, 0.039764404296875, -0.04315185546875, 0.0020046234130859375, 0.010345458984375, -0.053863525390625, 0.016387939453125, -0.0418701171875, 0.005859375, -0.025726318359375, 0.038848876953125, -0.08416748046875, -0.00528717041015625, 0.033203125, 0.035980224609375, -0.061309814453125, -0.042388916015625, -0.0789794921875, -0.011932373046875, -0.039154052734375, 0.0157012939453125, 0.0286407470703125, -0.030059814453125, -0.029510498046875, 0.0379638671875, -0.0435791015625, -0.00867462158203125, 0.00799560546875, 0.05487060546875, -0.0006918907165527344, -0.02142333984375, 0.01517486572265625, -0.023162841796875, 0.0208282470703125, 0.005100250244140625, -0.053924560546875, -0.0067596435546875, -0.045745849609375, 0.0364990234375, 0.025421142578125, -0.01206207275390625, -0.0009055137634277344, 0.038787841796875, -0.0132904052734375, -0.008209228515625, 0.0168914794921875, 0.006999969482421875, -0.0026416778564453125, 0.01190948486328125, 0.007099151611328125, -0.0268096923828125, -0.0076141357421875, -0.06036376953125, 0.000054717063903808594, -0.004009246826171875, -0.051300048828125, -0.0012159347534179688, -0.040374755859375, 0.00753021240234375, 0.01812744140625, -0.003215789794921875, -0.01506805419921875, 0.0181121826171875, -0.0158538818359375, 0.01145172119140625, -0.0030670166015625, -0.00508880615234375, 0.01338958740234375, -0.03253173828125, -0.005218505859375, 0.0202789306640625, 0.109619140625, 0.01511383056640625, 0.02392578125, -0.06353759765625, 0.00424957275390625, 0.032745361328125, -0.0185089111328125, 0.04132080078125, 0.01515960693359375, -0.00952911376953125, 0.0217437744140625, -0.01531219482421875, -0.0270233154296875, -0.040985107421875, 0.07080078125, 0.012359619140625, 0.01145172119140625, -0.0126953125, -0.0253448486328125, 0.04974365234375, 0.0235748291015625, -0.0126953125, -0.0070953369140625, -0.01409149169921875, 0.03411865234375, -0.0207672119140625, 0.0276336669921875, -0.034576416015625, -0.05126953125, 0.0185089111328125, -0.02447509765625, 0.0207672119140625, 0.0285491943359375, -0.023468017578125, 0.0283050537109375, 0.0219268798828125, 0.0011110305786132812, -0.0170745849609375, -0.04815673828125, -0.0170440673828125, 0.0129241943359375, -0.006381988525390625, -0.0135955810546875, 0.01305389404296875, -0.00882720947265625, 0.049163818359375, -0.020355224609375, -0.08062744140625, 0.032440185546875, -0.013641357421875, 0.01291656494140625, 0.0692138671875, -0.04815673828125, 0.0033016204833984375, 0.0380859375, -0.0271759033203125, 0.0010347366333007812, -0.03369140625, -0.0021514892578125, -0.033905029296875, -0.0189361572265625, -0.009490966796875, -0.017059326171875, 0.050872802734375, 0.0033702850341796875, -0.03887939453125, 0.010772705078125, -0.0102081298828125, 0.045196533203125, 0.01033782958984375, 0.03131103515625, 0.042633056640625, -0.030517578125, -0.0226898193359375, 0.010986328125, -0.039947509765625, -0.02960205078125, 0.0107574462890625, 0.0063934326171875, 0.005352020263671875, 0.004070281982421875, -0.025299072265625, 0.03173828125, -0.007442474365234375, -0.0018949508666992188, -0.006683349609375, 0.0108489990234375, -0.0111541748046875, 0.01119232177734375, 0.01287078857421875, 0.00621795654296875, 0.0078887939453125, -0.0009241104125976562, 0.00469970703125, -0.00524139404296875, 0.041229248046875, -0.01641845703125, 0.0254669189453125, -0.02130126953125, -0.034210205078125, -0.056427001953125, -0.0229034423828125, 0.00844573974609375, 0.0175933837890625, -0.0091094970703125, -0.01404571533203125, -0.0325927734375, 0.03564453125, -0.0030307769775390625, 0.01715087890625, -0.04144287109375, 0.007503509521484375, 0.04803466796875, -0.01702880859375, 0.0706787109375, 0.01117706298828125, 0.01313018798828125, -0.0267486572265625, -0.041168212890625, -0.0511474609375, -0.02313232421875, -0.0078582763671875, -0.041656494140625, 0.0020732879638671875, 0.016143798828125, 0.0302734375, -0.018341064453125, -0.04278564453125, 0.0194854736328125, -0.0172576904296875, 0.001079559326171875, -0.002239227294921875, 0.01486968994140625, 0.09075927734375, -0.01352691650390625, 0.05523681640625, 0.034912109375, 0.060821533203125, -0.050750732421875, -0.0224456787109375, 0.0266265869140625, 0.02984619140625, -0.0312347412109375, -0.048797607421875, -0.01184844970703125, -0.056427001953125, 0.01461029052734375, -0.022216796875, 0.01334381103515625, -0.0135955810546875, 0.006465911865234375, -0.0087738037109375, 0.0120086669921875, -0.008392333984375, -0.0103759765625, 0.0335693359375, -0.02032470703125, -0.0005283355712890625, -0.020782470703125, 0.021942138671875, -0.00548553466796875, -0.0310516357421875, -0.00797271728515625, 0.0122528076171875, 0.02801513671875, 0.01934814453125, 0.034912109375, -0.047454833984375, 0.0035858154296875, 0.044189453125, -0.01323699951171875, 0.0259857177734375, 0.0184478759765625, -0.0240936279296875, 0.0204010009765625, 0.07745361328125, 0.00611114501953125, -0.04058837890625, 0.03399658203125, -0.026947021484375, 0.049530029296875, 0.0472412109375, 0.080078125, -0.0994873046875, 0.0311431884765625, 0.01629638671875, -0.0024127960205078125, 0.072509765625, 0.003208160400390625, -0.003597259521484375, -0.022216796875, 0.032196044921875, -0.0214691162109375, -0.0172576904296875, 0.003795623779296875, 0.0005974769592285156, 0.0007677078247070312, -0.01451873779296875, 0.0298309326171875, -0.012054443359375, -0.0345458984375, -0.0218048095703125, 0.0120697021484375, -0.006378173828125, -0.05242919921875, -0.004993438720703125, 0.01544189453125, 0.01482391357421875, -0.041656494140625, 0.059722900390625, -0.023223876953125, 0.059783935546875, -0.0141448974609375, 0.00888824462890625, 0.039764404296875, 0.051361083984375, -0.00374603271484375, 0.0029964447021484375, 0.0275421142578125, 0.03033447265625, -0.0244140625, -0.03765869140625, 0.041015625, 0.07135009765625, -0.056060791015625, 0.031768798828125, 0.005008697509765625, -0.029937744140625, -0.00740814208984375, -0.007537841796875, 0.053192138671875, -0.04119873046875, -0.01485443115234375, 0.0080413818359375, -0.00818634033203125, 0.0050506591796875, -0.0021839141845703125, 0.0005440711975097656, -0.044952392578125, 0.0024738311767578125, 0.0031795501708984375, -0.0015268325805664062, 0.0180206298828125, 0.026092529296875, -0.0284423828125, 0.055908203125, 0.0113372802734375, -0.0279083251953125, -0.01332855224609375, 0.027801513671875, -0.01271820068359375, 0.0171966552734375, -0.033172607421875, 0.0667724609375, 0.006755828857421875, 0.060394287109375, -0.039398193359375, -0.02301025390625, 0.0474853515625, 0.03857421875, 0.0328369140625, 0.01064300537109375, -0.0305633544921875, -0.022979736328125, 0.00048470497131347656, -0.0033321380615234375, -0.007648468017578125, 0.04595947265625, -0.0016775131225585938, 0.00756072998046875, 0.0258026123046875, 0.0025615692138671875, 0.0369873046875, 0.004680633544921875, -0.039581298828125, 0.032989501953125, -0.00348663330078125, -0.007030487060546875, -0.00103759765625, 0.0257110595703125, 0.0004172325134277344, 0.0020198822021484375, -0.0146636962890625, 0.046417236328125, -0.01453399658203125, 0.04779052734375, 0.055694580078125, -0.048187255859375, -0.045684814453125, -0.0282440185546875, 0.046600341796875, 0.0159454345703125, 0.0102996826171875, 0.0186309814453125, 0.0215301513671875, -0.02398681640625, -0.064208984375, -0.01445770263671875, -0.0027027130126953125, -0.048309326171875, 0.002056121826171875, -0.0012159347534179688, 0.0345458984375, -0.03594970703125, -0.061004638671875, 0.02667236328125, 0.040008544921875, 0.00652313232421875, -0.0015611648559570312, 0.005062103271484375, 0.0024623870849609375, 0.0193023681640625, -0.0192718505859375, 0.0382080078125, -0.0287933349609375, -0.018798828125, -0.010772705078125, -0.0145111083984375, 0.0092010498046875, 0.0027618408203125, 0.0079803466796875, 0.0174713134765625, -0.0023021697998046875, -0.0006098747253417969, 0.0224151611328125, -0.02581787109375, -0.00391387939453125, 0.0197296142578125, 0.001811981201171875, -0.0005197525024414062, -0.045440673828125, 0.01209259033203125, -0.0170440673828125, 0.0369873046875, -0.0235595703125, 0.035736083984375, -0.0228729248046875, -0.01324462890625, -0.04718017578125, 0.03436279296875, 0.04974365234375, 0.047943115234375, 0.0556640625, 0.036590576171875, 0.0022487640380859375, 0.009735107421875, 0.019622802734375, -0.01558685302734375, -0.014923095703125, -0.047149658203125, 0.034454345703125, 0.041595458984375, 0.01334381103515625, 0.0202178955078125, -0.028900146484375, 0.0728759765625, -0.016998291015625, 0.00555419921875, 0.01308441162109375, -0.0269622802734375, 0.07000732421875, 0.0011396408081054688, 0.0467529296875, 0.0025310516357421875, -0.0265350341796875, 0.01139068603515625, -0.0286407470703125, -0.047027587890625, 0.00763702392578125, 0.03546142578125, -0.01418304443359375, 0.0159912109375, 0.01076507568359375, 0.01345062255859375, -0.0006270408630371094, -0.031585693359375, 0.0196533203125, -0.0097198486328125, 0.023773193359375, 0.0012369155883789062, -0.06500244140625, -0.0204620361328125, -0.03271484375, 0.023834228515625, 0.00873565673828125, 0.07720947265625, -0.007274627685546875, 0.025146484375, 0.012451171875, 0.01401519775390625, -0.0439453125, 0.03778076171875, -0.0207977294921875, -0.01959228515625, -0.005725860595703125, -0.006099700927734375, -0.056243896484375, 0.00615692138671875, -0.006946563720703125, -0.0261688232421875, 0.031707763671875, -0.0516357421875, 0.01251220703125, -0.002986907958984375, 0.005672454833984375, -0.015716552734375, 0.0020465850830078125, 0.068603515625, 0.01177215576171875, -0.0005869865417480469, -0.004024505615234375, 0.01800537109375, 0.04541015625, 0.00830841064453125, 0.0194244384765625, 0.0024013519287109375, -0.0234527587890625, -0.002048492431640625, 0.0275115966796875, -0.0081329345703125, 0.03314208984375, -0.0295257568359375, -0.034759521484375, 0.0130157470703125, -0.0016393661499023438, 0.007106781005859375, -0.034698486328125, 0.048980712890625, 0.0030345916748046875, -0.01074981689453125, 0.0404052734375, -0.0023250579833984375, 0.0252227783203125, -0.047149658203125, 0.0239105224609375, 0.021759033203125, -0.0030689239501953125, -0.015167236328125, -0.044647216796875, -0.00914764404296875, -0.0113983154296875, -0.03179931640625, -0.041748046875, -0.0035381317138671875, -0.01201629638671875, 0.01502227783203125, 0.024688720703125, -0.058624267578125, 0.044342041015625, 0.006488800048828125, -0.01123809814453125, 0.014739990234375, -0.01102447509765625, 0.007511138916015625, 0.0277252197265625, -0.0005865097045898438, -0.04559326171875, -0.024322509765625, 0.0477294921875, -0.0017538070678710938, 0.0227203369140625, 0.03326416015625, -0.032867431640625, -0.0294342041015625, -0.015655517578125, 0.0269775390625, 0.039154052734375, 0.00402069091796875, -0.0284576416015625, 0.017181396484375, -0.024688720703125, 0.00809478759765625, -0.00445556640625, 0.010955810546875, -0.040191650390625, -0.05523681640625, -0.0004487037658691406, -0.030364990234375, -0.018280029296875, -0.062744140625, -0.11834716796875, 0.0079345703125, -0.021087646484375, -0.05322265625, -0.069580078125, 0.034515380859375, 0.01056671142578125, -0.014739990234375, -0.03912353515625, 0.037506103515625, -0.01390838623046875, 0.036102294921875, -0.006816864013671875, -0.028656005859375, 0.00846099853515625, -0.0249786376953125, -0.02197265625, 0.0228118896484375, 0.045013427734375, -0.031463623046875, 0.00847625732421875, -0.0093841552734375, 0.05615234375, 0.05029296875, -0.004062652587890625, 0.06298828125, 0.0178680419921875, -0.031341552734375, -0.031005859375, -0.0231170654296875, -0.039276123046875, 0.005794525146484375, 0.09271240234375, 0.1072998046875, 0.031646728515625, -0.0584716796875, -0.016021728515625, -0.040252685546875, -0.045867919921875, -0.008056640625, 0.0233154296875, -0.044189453125, 0.01334381103515625, -0.0085296630859375, 0.01055145263671875, -0.0036487579345703125, -0.00799560546875, 0.0158233642578125, -0.0202484130859375, 0.05291748046875, 0.00006401538848876953, 0.01343536376953125, -0.01727294921875, 0.017242431640625, 0.001743316650390625, 0.056854248046875, -0.00858306884765625, 0.01313018798828125, 0.0537109375, 0.08001708984375, 0.035125732421875, 0.0013208389282226562, 0.00812530517578125, 0.008636474609375, 0.0484619140625, -0.0016241073608398438, 0.034027099609375, -0.049896240234375, -0.016754150390625, 0.004241943359375, 0.01763916015625, -0.00763702392578125, -0.039764404296875, 0.01465606689453125, 0.0023250579833984375, 0.054046630859375, 0.0139617919921875, -0.08203125, -0.0254669189453125, 0.0294189453125, -0.0240325927734375, -0.032470703125, -0.0094146728515625, -0.051025390625, -0.01174163818359375, -0.00820159912109375, -0.034820556640625, -0.060760498046875, -0.0015001296997070312, -0.01413726806640625, -0.0146026611328125, 0.012786865234375 ]
6c632974c20249027cee2d0ffbd0bf0ea363b5f6
Wordpress Stackexchange Q: wp_redirect() function is not working wp_redirect($post->guid) is not working. How can I fix this? This is my code: if(isset($_REQUEST['vid']) ){ $id=$_REQUEST['vid']; $post_title = 'sasa'; $post_content ='zxczxczxc'; $new_post = array( 'ID' => '', 'post_author' => $user->ID, 'post_content' => $post_content, 'post_title' => $post_title, 'post_status' => 'publish', // NOW IT'S ALREADY AN ARRAY ); $post_id = wp_insert_post($new_post); // This will redirect you to the newly created post $post = get_post($post_id); $url=$post->guid; wp_redirect($post->guid); } A: I am not sure if this will help... but I found that I had some code in a template and I was starting with get_header() in this way: <?php /** * .. Template comments */ get_header(); if(...) { ... if(...) { ... wp_redirect($url); exit(); } } ?> and was getting the same issue of header previously sent... What I did was just move get_header() to the end of the block and voila!!! <?php /** * .. Template comments */ if(...) { ... if(...) { ... wp_redirect($url); exit(); } } get_header(); ?> No plugin was disabled. and everything was ok... you may give a try if this works for you
Q: wp_redirect() function is not working wp_redirect($post->guid) is not working. How can I fix this? This is my code: if(isset($_REQUEST['vid']) ){ $id=$_REQUEST['vid']; $post_title = 'sasa'; $post_content ='zxczxczxc'; $new_post = array( 'ID' => '', 'post_author' => $user->ID, 'post_content' => $post_content, 'post_title' => $post_title, 'post_status' => 'publish', // NOW IT'S ALREADY AN ARRAY ); $post_id = wp_insert_post($new_post); // This will redirect you to the newly created post $post = get_post($post_id); $url=$post->guid; wp_redirect($post->guid); } A: I am not sure if this will help... but I found that I had some code in a template and I was starting with get_header() in this way: <?php /** * .. Template comments */ get_header(); if(...) { ... if(...) { ... wp_redirect($url); exit(); } } ?> and was getting the same issue of header previously sent... What I did was just move get_header() to the end of the block and voila!!! <?php /** * .. Template comments */ if(...) { ... if(...) { ... wp_redirect($url); exit(); } } get_header(); ?> No plugin was disabled. and everything was ok... you may give a try if this works for you A: Never ever use the post GUID value, it does not have to match the real URL of the post. http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note wp_redirect( get_permalink( $post_id ) ); exit(); // always exit Also, make sure wp_redirect is not plugged by something else which prevents it from doing its job correctly. Deactivate all plugins and revert to Twenty Ten/Eleven to check. A: Two things wrong here: * *Don't use $post->guid as an url *You must exit() after using wp_redirect() (see the Codex) wp_redirect() does not exit automatically and should almost always be followed by exit. To redirect to your new post's page: //..... code as in question $post_id = wp_insert_post($new_post); $url = get_permalink( $post_id ); wp_redirect($url); exit(); A: I have a simple solution, please read: * *If you are using wp_redirect($url) in theme files, and it is not working add ob_clean() ob_start() in your function file on top. *If using in plugin add ob_clean() ob_start() in the main plugin file on top. And make sure you have added exit() function after wp_redirect($url) Like this: $url = 'http://example.com'; wp_redirect($url); exit(); A: header already sent is main reason. As header already sent, so its unable to resend it and fails to redirect. Use before header like in init hook. add_action('init', 'your_app_function'); A: I had same problems here, I just try any method like add_action( 'init', 'my_function_name'); or add_action( 'wp_head', 'my_function_name'); but it's not working finally i got hook that can work with perfectly redirect, below my full code in functions.php function redirect_homepage(){ ob_clean(); ob_start(); $args = array( 'public' => true, '_builtin' => false, ); $output = 'names'; // names or objects, note names is the default $operator = 'and'; // 'and' or 'or' $post_types = get_post_types( $args, $output, $operator ); if(is_singular($post_types)){ $url = get_bloginfo('url'); wp_redirect($url, '301'); exit(); } } add_action( 'template_redirect', 'redirect_homepage'); just use hook add_action( 'template_redirect', 'my_function_name'); Nb: i use child-theme A: Make sure you don't have: get_header(); or any wordpress function that potentially creates contents like header and footer in your template. Otherwise the redirection won't work. Some developers try to clear the page by using ob_start(); but if you have content in your page even if you use ob_start(); the redirection won't work. and then simply try this code: wp_redirect(get_permalink($post->ID)); exit; A: if( is_page( ['wfp-dashboard', 'wfp-checkout'] ) ){ if(!is_user_logged_in()){ @ob_flush(); @ob_end_flush(); @ob_end_clean(); wp_redirect( wp_login_url() ); exit(); } } A: Just noted that W3 total cache plugin must be active for this to work. It disabled mine for some reason. wp_redirect("/"); exit;
wordpress
{ "language": "en", "length": 590, "provenance": "stackexchange_00019.jsonl.gz:418279", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46336" }
[ 0.061187744140625, 0.005462646484375, 0.01496124267578125, -0.00579071044921875, 0.0174713134765625, -0.024169921875, 0.0295257568359375, -0.048980712890625, 0.01464080810546875, 0.039031982421875, -0.016754150390625, -0.00902557373046875, -0.0028858184814453125, -0.015869140625, -0.031494140625, -0.0175323486328125, 0.033111572265625, -0.022735595703125, 0.008087158203125, -0.00194549560546875, -0.01107025146484375, 0.020904541015625, 0.015045166015625, 0.01503753662109375, -0.0176849365234375, -0.01220703125, 0.0848388671875, -0.03704833984375, -0.005290985107421875, -0.031768798828125, -0.0036029815673828125, 0.0090484619140625, 0.005222320556640625, 0.061553955078125, -0.0638427734375, -0.00357818603515625, 0.0016508102416992188, 0.035125732421875, 0.0023899078369140625, 0.032379150390625, 0.021636962890625, -0.01044464111328125, -0.0007557868957519531, 0.004436492919921875, -0.007183074951171875, -0.036224365234375, 0.007358551025390625, -0.04156494140625, 0.0012598037719726562, 0.04498291015625, -0.004150390625, 0.007007598876953125, 0.01549530029296875, 0.0211029052734375, -0.00904083251953125, -0.007747650146484375, -0.051849365234375, 0.0312347412109375, 0.0285797119140625, 0.027740478515625, -0.006275177001953125, -0.01209259033203125, -0.006740570068359375, -0.04571533203125, 0.002788543701171875, 0.01007080078125, 0.0513916015625, 0.04754638671875, -0.0653076171875, -0.0158843994140625, 0.00749969482421875, -0.0195770263671875, -0.0223388671875, 0.01457977294921875, -0.0002467632293701172, -0.046356201171875, 0.0235443115234375, -0.037445068359375, -0.00983428955078125, 0.0390625, 0.006988525390625, -0.00360107421875, -0.00972747802734375, -0.02532958984375, 0.05010986328125, 0.0252227783203125, -0.01375579833984375, -0.032806396484375, -0.0406494140625, 0.005374908447265625, -0.045074462890625, -0.0178680419921875, -0.00787353515625, -0.01702880859375, -0.01221466064453125, -0.0257720947265625, 0.0247039794921875, 0.064208984375, -0.044677734375, 0.00406646728515625, -0.03546142578125, -0.022613525390625, 0.0380859375, -0.046142578125, -0.0016918182373046875, 0.040618896484375, 0.00901031494140625, -0.0164947509765625, -0.0016984939575195312, 0.008148193359375, -0.0005393028259277344, 0.002567291259765625, -0.034332275390625, -0.05291748046875, -0.0193634033203125, 0.04266357421875, -0.045562744140625, -0.00455474853515625, 0.018646240234375, 0.016021728515625, -0.0055694580078125, 0.03717041015625, 0.030914306640625, -0.03094482421875, -0.00189208984375, 0.004344940185546875, 0.00348663330078125, -0.08087158203125, 0.031646728515625, -0.01430511474609375, -0.0196075439453125, 0.0264129638671875, 0.061981201171875, 0.0006952285766601562, 0.00728607177734375, -0.0166015625, 0.034393310546875, 0.014495849609375, -0.016448974609375, 0.0107421875, -0.006145477294921875, -0.0186920166015625, -0.00885009765625, -0.0270233154296875, 0.01508331298828125, 0.0164337158203125, 0.0305328369140625, 0.00945281982421875, -0.0302276611328125, -0.0687255859375, 0.009124755859375, -0.0088348388671875, 0.034576416015625, -0.0161895751953125, -0.00024127960205078125, -0.04669189453125, -0.044281005859375, -0.01184844970703125, 0.0243072509765625, -0.0020771026611328125, 0.044464111328125, 0.004974365234375, 0.00789642333984375, -0.07049560546875, -0.0953369140625, -0.022369384765625, -0.09149169921875, -0.039794921875, 0.016326904296875, 0.06109619140625, -0.01224517822265625, -0.00222015380859375, -0.01557159423828125, 0.0055999755859375, -0.006725311279296875, -0.0067901611328125, 0.001590728759765625, -0.0014781951904296875, 0.015777587890625, 0.0237274169921875, -0.0220184326171875, -0.03192138671875, 0.0191650390625, -0.0203399658203125, -0.07061767578125, 0.1126708984375, 0.0012454986572265625, 0.07781982421875, -0.01082611083984375, -0.002960205078125, 0.0509033203125, 0.0711669921875, -0.061431884765625, 0.0428466796875, -0.02862548828125, -0.0263824462890625, 0.0285797119140625, 0.018585205078125, -0.00914764404296875, 0.01415252685546875, 0.0345458984375, 0.0183258056640625, -0.0005812644958496094, -0.0142669677734375, -0.061798095703125, 0.02276611328125, -0.0151214599609375, 0.03656005859375, 0.02752685546875, 0.055633544921875, -0.0168914794921875, -0.0040130615234375, -0.0239410400390625, 0.03369140625, 0.00531005859375, 0.00524139404296875, -0.024444580078125, 0.043701171875, -0.021697998046875, 0.04876708984375, -0.0279083251953125, -0.040802001953125, -0.01152801513671875, -0.0139617919921875, 0.052459716796875, -0.006072998046875, 0.003173828125, -0.01126861572265625, 0.03045654296875, 0.0236968994140625, -0.0234222412109375, 0.0137481689453125, -0.00592041015625, 0.0015878677368164062, -0.049041748046875, 0.004085540771484375, -0.02984619140625, -0.03155517578125, 0.00595855712890625, 0.047027587890625, 0.0286102294921875, 0.01450347900390625, -0.0207977294921875, 0.004856109619140625, 0.0222930908203125, -0.05108642578125, -0.007190704345703125, 0.01390838623046875, 0.0223541259765625, 0.0037689208984375, -0.00397491455078125, -0.034423828125, 0.032318115234375, -0.0187530517578125, 0.0293731689453125, 0.0228424072265625, -0.0283966064453125, -0.0179595947265625, 0.005779266357421875, -0.0033664703369140625, 0.003444671630859375, -0.0308685302734375, -0.01287841796875, -0.0263671875, 0.055389404296875, -0.0147552490234375, 0.0023174285888671875, -0.00911712646484375, -0.056610107421875, 0.0085906982421875, 0.03985595703125, -0.01169586181640625, 0.0136871337890625, 0.049530029296875, 0.066162109375, 0.0216064453125, -0.0292510986328125, -0.032196044921875, 0.022613525390625, 0.0428466796875, -0.0160675048828125, 0.0267333984375, -0.029571533203125, -0.01154327392578125, -0.01349639892578125, -0.034942626953125, 0.005596160888671875, 0.015228271484375, 0.02850341796875, 0.010284423828125, 0.041473388671875, 0.016265869140625, -0.0200042724609375, 0.05706787109375, -0.007564544677734375, -0.0292510986328125, 0.032440185546875, -0.04010009765625, 0.0328369140625, 0.0013132095336914062, 0.052093505859375, 0.053985595703125, 0.0022602081298828125, 0.0179443359375, -0.0166473388671875, 0.0217437744140625, -0.0115203857421875, -0.01093292236328125, -0.03509521484375, -0.042999267578125, -0.031951904296875, -0.0269927978515625, 0.02008056640625, 0.038116455078125, 0.004718780517578125, -0.044158935546875, -0.015228271484375, 0.0172882080078125, -0.08172607421875, -0.06884765625, -0.025177001953125, -0.07928466796875, 0.0260009765625, -0.01885986328125, -0.0250396728515625, -0.00884246826171875, -0.0010099411010742188, 0.0207366943359375, 0.00685882568359375, 0.015899658203125, -0.06781005859375, -0.032196044921875, -0.08428955078125, -0.023193359375, -0.027130126953125, 0.0193939208984375, 0.0025196075439453125, 0.01654052734375, -0.0011844635009765625, -0.025787353515625, -0.0135498046875, 0.0263824462890625, 0.00255584716796875, -0.032928466796875, -0.036285400390625, -0.003055572509765625, 0.032928466796875, 0.004482269287109375, 0.006439208984375, -0.011260986328125, 0.0229034423828125, -0.0253143310546875, -0.0037021636962890625, -0.05145263671875, 0.00783538818359375, -0.0176849365234375, -0.0021991729736328125, -0.018157958984375, 0.00972747802734375, -0.04888916015625, -0.0185089111328125, -0.041290283203125, -0.0655517578125, 0.031494140625, 0.03271484375, 0.035430908203125, 0.0033359527587890625, 0.004383087158203125, -0.001552581787109375, 0.0160369873046875, 0.016448974609375, -0.042694091796875, 0.0771484375, -0.001743316650390625, 0.007099151611328125, -0.048309326171875, 0.022552490234375, 0.0006809234619140625, -0.01055145263671875, -0.005615234375, 0.028533935546875, 0.00627899169921875, -0.0036220550537109375, -0.06622314453125, -0.01153564453125, 0.0308380126953125, -0.0306243896484375, -0.00537872314453125, -0.02008056640625, -0.0247955322265625, -0.0217132568359375, 0.03985595703125, 0.003475189208984375, -0.00780487060546875, -0.027313232421875, -0.006740570068359375, -0.0081329345703125, -0.029052734375, -0.01132965087890625, 0.01340484619140625, -0.07940673828125, -0.004825592041015625, -0.01103973388671875, -0.022918701171875, -0.01354217529296875, 0.0113372802734375, -0.043914794921875, -0.0367431640625, 0.010955810546875, 0.029937744140625, 0.01290130615234375, 0.03936767578125, -0.002941131591796875, 0.031402587890625, 0.01309967041015625, -0.0265350341796875, -0.030487060546875, -0.0177001953125, 0.035430908203125, 0.0242156982421875, 0.005352020263671875, -0.03643798828125, -0.029327392578125, 0.017730712890625, -0.0234832763671875, 0.0167388916015625, -0.018707275390625, 0.00951385498046875, 0.00455474853515625, 0.0276641845703125, -0.0014104843139648438, 0.0109100341796875, -0.00391387939453125, -0.00015985965728759766, -0.042388916015625, 0.03302001953125, -0.0254364013671875, 0.0004143714904785156, 0.0190582275390625, -0.035400390625, -0.050201416015625, -0.0196685791015625, -0.003505706787109375, 0.0160064697265625, -0.0216827392578125, 0.0088348388671875, -0.03369140625, -0.0675048828125, 0.03521728515625, -0.02557373046875, -0.0262603759765625, -0.00940704345703125, 0.061431884765625, 0.0333251953125, -0.0161285400390625, 0.059539794921875, 0.0174560546875, 0.033172607421875, 0.0077972412109375, 0.0173797607421875, -0.0220489501953125, -0.036895751953125, 0.1102294921875, -0.0079803466796875, 0.00756072998046875, -0.00897979736328125, 0.0135498046875, -0.0148468017578125, -0.048187255859375, 0.054229736328125, -0.023529052734375, 0.00933074951171875, 0.03717041015625, 0.005268096923828125, 0.000026702880859375, -0.00327301025390625, 0.018280029296875, 0.0035266876220703125, -0.035064697265625, -0.045684814453125, -0.03839111328125, 0.016845703125, 0.0006570816040039062, 0.0301361083984375, 0.031982421875, -0.0031719207763671875, 0.0218353271484375, -0.007282257080078125, -0.0003859996795654297, 0.01397705078125, 0.006885528564453125, -0.033172607421875, 0.037841796875, 0.01070404052734375, -0.030120849609375, 0.01194000244140625, -0.00420379638671875, 0.0439453125, 0.01556396484375, -0.0078125, -0.02825927734375, -0.01163482666015625, -0.02911376953125, -0.0228271484375, 0.0046539306640625, 0.058197021484375, 0.0416259765625, -0.015716552734375, -0.026611328125, -0.02252197265625, 0.030303955078125, -0.062286376953125, 0.0026378631591796875, 0.0273284912109375, -0.01076507568359375, 0.00783538818359375, 0.08050537109375, 0.04779052734375, 0.032928466796875, -0.0369873046875, 0.036407470703125, 0.0164947509765625, 0.0170745849609375, 0.034210205078125, 0.00982666015625, -0.00968170166015625, -0.01262664794921875, -0.0189361572265625, -0.057159423828125, -0.039337158203125, 0.0173492431640625, 0.0863037109375, -0.0231781005859375, -0.01096343994140625, 0.02362060546875, -0.01690673828125, -0.0162200927734375, 0.06072998046875, 0.038299560546875, -0.04461669921875, -0.0087738037109375, 0.020721435546875, 0.0237884521484375, -0.009033203125, -0.01380157470703125, -0.045684814453125, -0.0601806640625, -0.01314544677734375, 0.0182037353515625, -0.0092315673828125, 0.004268646240234375, -0.0208740234375, 0.017974853515625, -0.053070068359375, -0.00811767578125, 0.01983642578125, 0.043365478515625, -0.05419921875, -0.014129638671875, 0.0562744140625, -0.0293426513671875, -0.0003376007080078125, -0.030609130859375, 0.019744873046875, -0.054779052734375, 0.0038967132568359375, 0.0726318359375, 0.049102783203125, -0.066162109375, 0.00001633167266845703, -0.04034423828125, 0.00765228271484375, -0.0171356201171875, -0.044464111328125, -0.0248870849609375, -0.01094818115234375, 0.016693115234375, 0.009979248046875, 0.0206146240234375, 0.00452423095703125, 0.00557708740234375, 0.01325225830078125, 0.00032830238342285156, 0.06219482421875, 0.005157470703125, 0.0645751953125, -0.0271453857421875, 0.042327880859375, 0.01104736328125, 0.047698974609375, 0.00688934326171875, -0.01837158203125, 0.00762176513671875, -0.018402099609375, -0.017242431640625, -0.040130615234375, 0.0276031494140625, 0.029937744140625, 0.07391357421875, -0.01140594482421875, -0.0011577606201171875, 0.0117645263671875, 0.027679443359375, -0.02972412109375, -0.028594970703125, 0.0005083084106445312, -0.026275634765625, 0.01033782958984375, -0.00868988037109375, -0.02056884765625, -0.0258026123046875, -0.01294708251953125, 0.01482391357421875, -0.00501251220703125, -0.01258087158203125, 0.0001647472381591797, -0.08355712890625, 0.060821533203125, 0.05712890625, 0.0182952880859375, 0.043426513671875, -0.022064208984375, 0.0172576904296875, 0.0178985595703125, 0.004734039306640625, 0.0142059326171875, 0.03204345703125, 0.05401611328125, -0.00061798095703125, 0.002727508544921875, 0.01776123046875, -0.0209503173828125, 0.02178955078125, 0.039337158203125, 0.036712646484375, -0.0543212890625, 0.00799560546875, 0.0130157470703125, -0.01009368896484375, 0.03948974609375, -0.0268402099609375, -0.00951385498046875, -0.0013942718505859375, 0.0750732421875, 0.00664520263671875, -0.018310546875, 0.0306396484375, 0.0080413818359375, -0.0262908935546875, -0.0004906654357910156, 0.01021575927734375, 0.007762908935546875, -0.07830810546875, -0.0014314651489257812, 0.048492431640625, -0.042938232421875, -0.051910400390625, 0.0018634796142578125, 0.01416778564453125, 0.0014190673828125, -0.049072265625, 0.037322998046875, -0.01364898681640625, 0.0242919921875, 0.04644775390625, 0.009368896484375, 0.0308990478515625, 0.06365966796875, -0.0014505386352539062, 0.022796630859375, 0.039703369140625, 0.006305694580078125, -0.0295867919921875, -0.0323486328125, 0.0007300376892089844, 0.048309326171875, -0.01165771484375, 0.0394287109375, 0.01336669921875, -0.03314208984375, -0.0005445480346679688, 0.0298919677734375, 0.059906005859375, -0.04248046875, -0.0174102783203125, 0.037261962890625, 0.0149688720703125, -0.0169219970703125, 0.0018930435180664062, 0.04632568359375, -0.03662109375, -0.005527496337890625, 0.010833740234375, -0.0167388916015625, -0.031494140625, -0.00728607177734375, -0.0726318359375, 0.1287841796875, 0.0528564453125, 0.0345458984375, -0.0087738037109375, 0.0367431640625, -0.0654296875, -0.0028705596923828125, -0.048309326171875, 0.05474853515625, -0.007595062255859375, 0.042816162109375, -0.06884765625, -0.00901031494140625, -0.00357818603515625, 0.040740966796875, 0.056915283203125, 0.0130767822265625, -0.0313720703125, 0.0182952880859375, 0.05029296875, -0.0013990402221679688, -0.0228424072265625, 0.04437255859375, -0.006549835205078125, -0.01110076904296875, -0.00420379638671875, -0.06292724609375, 0.02166748046875, -0.0621337890625, 0.004058837890625, -0.01428985595703125, -0.0121307373046875, -0.042572021484375, -0.0186614990234375, 0.001621246337890625, -0.09136962890625, 0.007232666015625, 0.039031982421875, 0.0124664306640625, 0.005336761474609375, 0.012969970703125, 0.04473876953125, -0.06787109375, 0.04400634765625, -0.048492431640625, 0.058868408203125, 0.0096588134765625, -0.003681182861328125, 0.00537872314453125, 0.0161285400390625, 0.0117950439453125, -0.022186279296875, -0.005733489990234375, 0.019073486328125, -0.0173187255859375, 0.06915283203125, 0.0406494140625, 0.035675048828125, -0.00713348388671875, 0.0163421630859375, 0.03466796875, 0.062469482421875, -0.0426025390625, 0.0278472900390625, 0.01158905029296875, 0.032684326171875, 0.0233154296875, -0.012481689453125, 0.07415771484375, 0.01520538330078125, 0.00264739990234375, -0.0160064697265625, 0.014007568359375, 0.033905029296875, 0.0079803466796875, -0.0037994384765625, -0.01335906982421875, -0.042694091796875, 0.0318603515625, -0.048828125, 0.01441192626953125, 0.01702880859375, 0.054656982421875, -0.00421142578125, 0.061126708984375, -0.0163726806640625, -0.0269622802734375, -0.001007080078125, 0.03546142578125, -0.01073455810546875, 0.01345062255859375, -0.05303955078125, -0.06256103515625, 0.01361083984375, 0.04962158203125, -0.0103759765625, -0.012054443359375, -0.00531005859375, 0.00719451904296875, -0.0120086669921875, -0.0073394775390625, 0.027252197265625, -0.0168914794921875, 0.017791748046875, -0.0166473388671875, -0.014251708984375, -0.001590728759765625, -0.0312347412109375, 0.00386810302734375, 0.0013265609741210938, 0.024078369140625, -0.0236053466796875, 0.049774169921875, -0.007579803466796875, -0.0171661376953125, -0.01265716552734375, -0.0293121337890625, 0.035919189453125, 0.00041866302490234375, -0.040496826171875, -0.0142364501953125, -0.0131378173828125, -0.0230255126953125, 0.006561279296875, 0.028167724609375, -0.007038116455078125, 0.0223541259765625, -0.04827880859375, 0.01904296875, 0.0167999267578125, -0.0458984375, -0.0014133453369140625, 0.041290283203125, 0.023712158203125, 0.00673675537109375, -0.047821044921875, -0.01129150390625, -0.03179931640625, 0.015411376953125, 0.00213623046875, 0.057525634765625, 0.00299072265625, 0.0190887451171875, -0.028472900390625, -0.0015211105346679688, -0.01371002197265625, -0.031219482421875, 0.048736572265625, 0.006877899169921875, -0.00429534912109375, -0.01120758056640625, -0.0767822265625, 0.022308349609375, 0.0015783309936523438, 0.0089569091796875, 0.0731201171875, -0.040985107421875, 0.00899505615234375, -0.01214599609375, 0.02001953125, -0.037384033203125, -0.06451416015625, -0.0640869140625, -0.0009055137634277344, 0.020965576171875, 0.04205322265625, 0.0190887451171875, 0.0838623046875, -0.0200653076171875, -0.010711669921875, -0.0037670135498046875, -0.08203125, -0.0177001953125, 0.01739501953125, -0.0308685302734375, -0.036773681640625, 0.0300750732421875, 0.010101318359375, -0.01953125, 0.03558349609375, 0.0268707275390625, 0.01922607421875, 0.005733489990234375, -0.0270233154296875, -0.010986328125, -0.0029850006103515625, -0.0302734375, -0.01123046875, 0.0158233642578125, -0.01141357421875, -0.0269012451171875, -0.026458740234375, 0.0022411346435546875, -0.03863525390625, -0.0240631103515625, 0.0032958984375, -0.03521728515625, -0.030426025390625, -0.0069122314453125, -0.0419921875, 0.00965118408203125, -0.01482391357421875, -0.0214691162109375, -0.033935546875, 0.0008831024169921875, 0.0294036865234375, -0.0440673828125, 0.0274810791015625, -0.01557159423828125, 0.01171112060546875, -0.0263214111328125, -0.0146636962890625, -0.0279998779296875, 0.032470703125, -0.030517578125, 0.0007109642028808594, 0.04107666015625, -0.0080718994140625, -0.047088623046875, -0.0190277099609375, -0.03167724609375, 0.0218963623046875, 0.00540924072265625, -0.008270263671875, 0.00836181640625, -0.01898193359375, -0.01019287109375, -0.01340484619140625, 0.0139617919921875, -0.038818359375, -0.043670654296875, -0.0099029541015625, -0.0024509429931640625, -0.0008378028869628906, -0.035614013671875, -0.020172119140625, 0.014129638671875, 0.0211334228515625, -0.026214599609375, -0.02130126953125, 0.0195159912109375, 0.0208892822265625, 0.005352020263671875, 0.00605010986328125, -0.0206146240234375, -0.0293121337890625, -0.0120086669921875, -0.0082550048828125, 0.0265655517578125, 0.0234222412109375, -0.01464080810546875, -0.01007080078125, -0.00420379638671875, -0.00746917724609375, -0.0234375, -0.0310821533203125, -0.0276336669921875, 0.03045654296875, 0.0245819091796875, 0.00525665283203125, -0.017364501953125, 0.05670166015625, 0.0033931732177734375, -0.0037250518798828125, -0.01352691650390625, -0.005237579345703125, -0.0057525634765625, 0.0053558349609375, 0.0227203369140625, 0.0011663436889648438, -0.0050201416015625, 0.004222869873046875, -0.0174102783203125, -0.040924072265625, 0.0146026611328125, 0.0216064453125, -0.04656982421875, -0.008697509765625, 0.0172119140625, 0.0180816650390625, -0.01690673828125, -0.01505279541015625, 0.0032176971435546875, -0.03424072265625, -0.01407623291015625, -0.025970458984375, 0.0401611328125, -0.0191192626953125, 0.07989501953125, -0.03759765625, 0.0013523101806640625, -0.0212554931640625, 0.0389404296875, 0.00949859619140625, -0.05010986328125, 0.01430511474609375, 0.025665283203125, -0.02471923828125, -0.0017299652099609375, 0.0158233642578125, 0.05902099609375, -0.01456451416015625, -0.0251007080078125, 0.003757476806640625, 0.0204010009765625, -0.0361328125, -0.005115509033203125, 0.01141357421875, 0.0653076171875, -0.00403594970703125, 0.0794677734375, -0.016632080078125, 0.02777099609375, -0.01168060302734375, 0.031951904296875, 0.00452423095703125, -0.01232147216796875, 0.03277587890625, -0.0222015380859375, 0.00959014892578125, 0.04852294921875, 0.044647216796875, -0.00574493408203125, 0.0171356201171875, -0.01904296875, 0.047027587890625, -0.00542449951171875 ]
589aa5873567fadbda7dffd9d4d4c68f05305a6e
Wordpress Stackexchange Q: Get $image_id after uploading with media_sideload_image() I want to upload an image and set it as a featured image in a post. What i tried was this: $image_id = media_sideload_image($image_url, $post_id, $post_id); update_post_meta($post_id, '_thumbnail_id', $image_id); But media_sideload_image() is not returning the image_id, but the render html image. How can I get the image_id? A: I've build a function to get the ID from DB, searching by URL. function get_attachment_id_from_src ($image_src) { global $wpdb; $query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$image_src'"; $id = $wpdb->get_var($query); return $id; } You can get URL (insted of html code) with a fourth paramenter set to 'src' Codex: media_sideload_image() $src = media_sideload_image($url, $item_id, $desc,'src'); get_attachment_id_from_src($src);
Q: Get $image_id after uploading with media_sideload_image() I want to upload an image and set it as a featured image in a post. What i tried was this: $image_id = media_sideload_image($image_url, $post_id, $post_id); update_post_meta($post_id, '_thumbnail_id', $image_id); But media_sideload_image() is not returning the image_id, but the render html image. How can I get the image_id? A: I've build a function to get the ID from DB, searching by URL. function get_attachment_id_from_src ($image_src) { global $wpdb; $query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$image_src'"; $id = $wpdb->get_var($query); return $id; } You can get URL (insted of html code) with a fourth paramenter set to 'src' Codex: media_sideload_image() $src = media_sideload_image($url, $item_id, $desc,'src'); get_attachment_id_from_src($src); A: @Tom J Nowell's answer is spot on. I found another alternative (using different functions) explained here but I like this one more. In my case I have an array of $posts with all the posts I want to insert and a separate $media (same $nid keys as $posts) with the media. My code is the same solution as Tom's but refactored to use an anonymous function: foreach( $posts as $nid=>$post ) $posts[$nid]['ID'] = wp_insert_post( $post ); foreach( $posts as $nid=>$post ) foreach( $media[$nid] as $m=>$mitem ) { if( 0 == $m ) add_action( 'add_attachment', function( $att_id ) use ($posts, $nid, $mitem) { update_post_meta($posts[$nid]['ID'], '_thumbnail_id', $att_id); $posts[$nid]['media_urls'][] = $mitem['url']; } ); media_sideload_image($mitem['url'], $post['ID']); remove_all_actions( 'add_attachment' ); } In my case I assume the 1st item in each $media[$nid] shuold be the featured image of its post. WordPress shouold definitely change media_sideload_image() so it returns the $id . In fact the function has it at hand, see the source here. In fact there's a track ticket for this and they even have patches to apply this to your core in the mean time if you want. A: Here is an example of how to bypass this limitation using actions/hooks: function new_attachment( $att_id ){ // the post this was sideloaded into is the attachments parent! // fetch the attachment post $att = get_post( $att_id ); // grab it's parent $post_id = $att->post_parent; // set the featured post set_post_thumbnail( $post_id, $att_id ); } // add the function above to catch the attachments creation add_action('add_attachment','new_attachment'); // load the attachment from the URL media_sideload_image($image_url, $post_id, $post_id); // we have the image now, and the function above will have fired too setting the thumbnail ID in the process, so lets remove the hook so we don't cause any more trouble remove_action('add_attachment','new_attachment'); The idea is that when media_sideload_image is ran, it: * *downloads the image *adds it as an attachment ( a post of type attachment ) *then attaches that attachment to the post whose ID you provided ($post_id) Your issue is that it does not provide the newly created attachment posts ID. But, when an attachment is created, an action is fired containing its ID. We can hook into this before we create the attachment, and save the featured thumbnail with the post ID it gave us, then unhook afterwards. A: I was looking for a solution and decided to look at the code for media_sideload_image() which was very straightforward. It uses media_handle_sideload() which gives us the attachment id. I modified it to return the attachment id instead of the html source of the image, and even added a way to send it new filename. function media_sideload_image_custom($file, $post_id, $desc = null, $file_name = null) { if ( ! empty($file) ) { // Download file to temp location $tmp = download_url( $file ); // fix file filename for query strings if( empty($file_name) ) { preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $file, $matches); $file_array['name'] = basename($matches[0]); } else { $file_array['name'] = sanitize_file_name($file_name); } $file_array['tmp_name'] = $tmp; // If error storing temporarily, unlink if ( is_wp_error( $tmp ) ) { @unlink($file_array['tmp_name']); $file_array['tmp_name'] = ''; } // do the validation and storage stuff $id = media_handle_sideload( $file_array, $post_id, $desc ); // If error storing permanently, unlink if ( is_wp_error($id) ) { @unlink($file_array['tmp_name']); } return $id; } return null; } A: There is no need for the older solutions anymore. You can get The ID with a fourth paramenter($return) set to 'id' <?php media_sideload_image($file, $post_id, $desc, $return); ?> https://codex.wordpress.org/Function_Reference/media_sideload_image A: You can use the media_handle_sideload instead of media_sideload_image.Also if you are using this function in functions.php don't forgot to add below three lines. require_once(ABSPATH . 'wp-admin/includes/media.php'); require_once(ABSPATH . 'wp-admin/includes/file.php'); require_once(ABSPATH . 'wp-admin/includes/image.php'); $id = media_handle_sideload( $file_array, $post_id ); var_dump($id);
wordpress
{ "language": "en", "length": 724, "provenance": "stackexchange_00019.jsonl.gz:418286", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46363" }
[ 0.0638427734375, -0.02130126953125, 0.058258056640625, -0.016571044921875, 0.009552001953125, -0.01287841796875, 0.06414794921875, -0.032928466796875, 0.01183319091796875, 0.031463623046875, -0.006378173828125, -0.01263427734375, -0.03643798828125, -0.0203857421875, -0.04290771484375, -0.03253173828125, 0.0379638671875, -0.0203704833984375, 0.037384033203125, 0.01160430908203125, -0.008880615234375, 0.05126953125, 0.0276641845703125, -0.017913818359375, 0.022369384765625, -0.020782470703125, 0.00689697265625, -0.01264190673828125, 0.008941650390625, -0.015411376953125, 0.00846099853515625, 0.02471923828125, 0.01155853271484375, -0.0194854736328125, 0.039306640625, 0.0234375, 0.01146697998046875, 0.0032749176025390625, 0.0175933837890625, 0.0106353759765625, 0.0152435302734375, -0.0005908012390136719, 0.03717041015625, -0.0272979736328125, -0.004398345947265625, -0.0016222000122070312, 0.0094451904296875, -0.0253143310546875, 0.01427459716796875, 0.0360107421875, 0.017059326171875, 0.008758544921875, 0.0163726806640625, 0.0204010009765625, -0.00960540771484375, -0.00457000732421875, -0.02056884765625, -0.00007647275924682617, 0.0282135009765625, 0.01971435546875, -0.0284576416015625, -0.00969696044921875, 0.02252197265625, -0.042999267578125, -0.003376007080078125, 0.02777099609375, 0.021240234375, 0.009033203125, -0.051727294921875, -0.043243408203125, 0.0017328262329101562, -0.032928466796875, -0.00702667236328125, -0.037933349609375, -0.0211029052734375, 0.0249481201171875, 0.0150909423828125, -0.01739501953125, -0.015106201171875, -0.017578125, 0.022796630859375, -0.02142333984375, -0.0687255859375, 0.045074462890625, 0.0002644062042236328, 0.07763671875, 0.0035610198974609375, -0.042724609375, -0.01068878173828125, 0.01107025146484375, -0.0175018310546875, -0.0279998779296875, 0.0330810546875, 0.0036869049072265625, -0.0260162353515625, -0.029144287109375, 0.0244903564453125, 0.056121826171875, 0.006275177001953125, 0.015655517578125, 0.017303466796875, -0.06304931640625, 0.0499267578125, -0.058135986328125, 0.000011742115020751953, 0.00957489013671875, 0.00740814208984375, -0.043365478515625, 0.00849151611328125, 0.0205230712890625, -0.0114593505859375, 0.032073974609375, -0.0167999267578125, 0.023834228515625, -0.036865234375, 0.01910400390625, -0.03936767578125, -0.0156097412109375, -0.034271240234375, -0.003742218017578125, -0.01215362548828125, 0.0052947998046875, 0.01806640625, -0.0075225830078125, 0.01297760009765625, 0.01032257080078125, -0.0176239013671875, -0.034393310546875, -0.0120697021484375, -0.01232147216796875, -0.04547119140625, 0.0189971923828125, 0.07342529296875, 0.03228759765625, 0.028167724609375, -0.004894256591796875, -0.020416259765625, -0.02679443359375, -0.004238128662109375, 0.01476287841796875, 0.02093505859375, -0.033111572265625, 0.016876220703125, 0.003879547119140625, -0.0197601318359375, 0.0288848876953125, 0.0205078125, -0.00560760498046875, -0.036529541015625, -0.06585693359375, 0.01242828369140625, -0.044708251953125, 0.0099945068359375, 0.01509857177734375, 0.0171966552734375, -0.011871337890625, 0.051605224609375, -0.0301513671875, 0.013031005859375, -0.052093505859375, 0.058197021484375, 0.0133209228515625, 0.01861572265625, 0.03277587890625, 0.00737762451171875, -0.01132965087890625, -0.06689453125, -0.014404296875, 0.02606201171875, 0.06396484375, 0.0117340087890625, -0.0200042724609375, 0.019744873046875, 0.005924224853515625, -0.029083251953125, -0.002574920654296875, 0.0128173828125, 0.00919342041015625, 0.0231781005859375, 0.030120849609375, -0.02001953125, -0.0386962890625, 0.03668212890625, -0.01318359375, -0.043121337890625, 0.07537841796875, 0.0014362335205078125, 0.0745849609375, 0.0195159912109375, 0.00333404541015625, 0.0191650390625, 0.01155853271484375, -0.050537109375, 0.03411865234375, -0.0218353271484375, -0.01334381103515625, -0.0225677490234375, 0.0003981590270996094, -0.026092529296875, 0.0049591064453125, 0.05120849609375, 0.001255035400390625, 0.0190277099609375, 0.0036525726318359375, 0.00487518310546875, -0.00662994384765625, 0.0192413330078125, -0.0030536651611328125, -0.02410888671875, 0.03411865234375, 0.0108184814453125, 0.00017571449279785156, -0.0181427001953125, -0.0158843994140625, 0.021881103515625, 0.0086822509765625, -0.0237579345703125, 0.00835418701171875, -0.033050537109375, 0.060089111328125, -0.07891845703125, -0.005023956298828125, -0.05218505859375, -0.0045928955078125, 0.0361328125, 0.023651123046875, -0.0026988983154296875, 0.0010213851928710938, 0.048431396484375, 0.01934814453125, -0.0211334228515625, -0.00937652587890625, 0.000164031982421875, -0.0038299560546875, -0.0230712890625, -0.006420135498046875, -0.00971221923828125, -0.10321044921875, 0.01155853271484375, 0.06317138671875, 0.04736328125, 0.032501220703125, 0.0262298583984375, 0.016204833984375, 0.075927734375, 0.0240325927734375, 0.040863037109375, -0.033233642578125, -0.0097198486328125, 0.017730712890625, -0.0268096923828125, -0.0010004043579101562, 0.01357269287109375, -0.06719970703125, 0.006805419921875, 0.04095458984375, -0.0178680419921875, -0.04034423828125, 0.01593017578125, 0.040618896484375, -0.00939178466796875, 0.01338958740234375, 0.00949859619140625, -0.002010345458984375, 0.0257720947265625, 0.050140380859375, 0.0300445556640625, 0.0419921875, -0.047760009765625, 0.025115966796875, 0.0139923095703125, 0.0044403076171875, -0.005756378173828125, 0.038330078125, 0.032257080078125, 0.0008597373962402344, -0.0014982223510742188, -0.033111572265625, 0.00036334991455078125, 0.0026378631591796875, -0.010711669921875, 0.0189971923828125, -0.01508331298828125, -0.004886627197265625, -0.0230255126953125, -0.056121826171875, 0.02337646484375, 0.0283966064453125, -0.024688720703125, -0.019744873046875, -0.0079345703125, 0.059478759765625, 0.009033203125, 0.03314208984375, 0.002971649169921875, 0.00989532470703125, 0.033233642578125, -0.007110595703125, 0.013946533203125, 0.01209259033203125, 0.08819580078125, 0.06005859375, -0.0228118896484375, 0.050445556640625, -0.018798828125, -0.02935791015625, -0.01522064208984375, 0.01055145263671875, -0.011993408203125, -0.0288543701171875, -0.05224609375, 0.0064239501953125, 0.018951416015625, 0.0295562744140625, -0.01216888427734375, -0.036834716796875, -0.005046844482421875, 0.0009851455688476562, -0.095458984375, -0.0926513671875, 0.005596160888671875, -0.047882080078125, -0.0246734619140625, -0.0091400146484375, -0.03155517578125, 0.0087890625, 0.0032138824462890625, -0.01169586181640625, -0.024139404296875, 0.0275421142578125, -0.0653076171875, -0.01100921630859375, -0.059051513671875, 0.01000213623046875, -0.026580810546875, 0.0452880859375, 0.005550384521484375, -0.0014400482177734375, 0.003021240234375, -0.0200042724609375, 0.0301513671875, 0.0633544921875, -0.0050048828125, -0.01076507568359375, -0.00811767578125, -0.022491455078125, -0.03570556640625, 0.002117156982421875, -0.00970458984375, -0.0008635520935058594, 0.0004010200500488281, -0.0015430450439453125, -0.0291748046875, 0.0005602836608886719, 0.0036945343017578125, 0.0328369140625, 0.031494140625, 0.0139923095703125, 0.0246429443359375, -0.040252685546875, -0.005985260009765625, -0.0447998046875, -0.03900146484375, 0.01360321044921875, 0.017120361328125, 0.0245513916015625, -0.02471923828125, 0.0261077880859375, 0.010833740234375, 0.0148468017578125, -0.00920867919921875, -0.0210723876953125, 0.04718017578125, -0.0034770965576171875, 0.024261474609375, -0.0093994140625, 0.0136260986328125, -0.00213623046875, -0.01111602783203125, -0.010711669921875, 0.04058837890625, -0.01396942138671875, 0.016571044921875, -0.06256103515625, -0.02606201171875, 0.0543212890625, 0.026397705078125, 0.0428466796875, -0.02734375, -0.05322265625, -0.02764892578125, 0.09844970703125, -0.01001739501953125, -0.031280517578125, -0.02325439453125, -0.00608062744140625, -0.0134124755859375, -0.014984130859375, -0.015106201171875, 0.00635528564453125, -0.047760009765625, -0.005268096923828125, -0.0006918907165527344, -0.030120849609375, -0.006214141845703125, -0.002208709716796875, -0.03802490234375, -0.0300750732421875, 0.053680419921875, -0.0229339599609375, 0.03179931640625, 0.061431884765625, -0.0033359527587890625, 0.0533447265625, -0.06024169921875, -0.0023899078369140625, -0.10028076171875, -0.00836181640625, 0.01319122314453125, 0.050445556640625, -0.022491455078125, -0.00522613525390625, -0.032257080078125, 0.041748046875, 0.006282806396484375, 0.0001996755599975586, -0.005222320556640625, 0.00750732421875, -0.029052734375, -0.0121307373046875, -0.00627899169921875, -0.0234222412109375, -0.02642822265625, -0.06597900390625, -0.0628662109375, -0.054107666015625, -0.01763916015625, 0.0027561187744140625, 0.0009593963623046875, 0.0016155242919921875, -0.00856781005859375, -0.0193328857421875, 0.029510498046875, 0.04510498046875, 0.00551605224609375, 0.00368499755859375, -0.038970947265625, -0.0201263427734375, 0.04681396484375, -0.00689697265625, -0.0184173583984375, 0.0016326904296875, 0.0689697265625, 0.0186767578125, -0.031341552734375, -0.06134033203125, -0.00940704345703125, 0.042205810546875, 0.00299072265625, 0.0298004150390625, 0.0305328369140625, -0.0182952880859375, 0.025360107421875, 0.0215606689453125, 0.007476806640625, -0.01727294921875, 0.0546875, -0.0029010772705078125, -0.01024627685546875, 0.00823974609375, -0.010223388671875, -0.0196380615234375, 0.00933074951171875, -0.036102294921875, 0.003963470458984375, -0.01428985595703125, 0.018341064453125, -0.037078857421875, 0.06036376953125, -0.005649566650390625, -0.04766845703125, 0.01294708251953125, -0.01503753662109375, 0.054351806640625, 0.01253509521484375, -0.0068511962890625, 0.0303192138671875, 0.0293121337890625, -0.01116943359375, -0.01369476318359375, -0.0082855224609375, 0.01435089111328125, 0.03277587890625, -0.0200347900390625, -0.00568389892578125, -0.01085662841796875, 0.012603759765625, 0.0028839111328125, -0.006504058837890625, -0.0096893310546875, -0.061798095703125, -0.0081329345703125, -0.0177001953125, -0.0214691162109375, -0.028564453125, 0.0386962890625, 0.04193115234375, -0.022613525390625, -0.0283660888671875, -0.0312042236328125, -0.0014028549194335938, -0.055389404296875, 0.044158935546875, 0.01319122314453125, -0.00009435415267944336, 0.0165863037109375, 0.059234619140625, -0.0250701904296875, 0.032806396484375, -0.0132904052734375, 0.0254364013671875, 0.04034423828125, 0.0286712646484375, 0.00682830810546875, 0.0028133392333984375, -0.033416748046875, 0.04217529296875, 0.0049591064453125, -0.044189453125, 0.0275421142578125, 0.00644683837890625, 0.061431884765625, -0.026092529296875, -0.048980712890625, 0.0287628173828125, -0.06396484375, -0.01953125, 0.042877197265625, -0.01371002197265625, -0.05694580078125, -0.042755126953125, 0.00982666015625, 0.06024169921875, -0.021820068359375, -0.006534576416015625, -0.0085601806640625, -0.018218994140625, -0.00716400146484375, -0.0176544189453125, -0.040863037109375, 0.01317596435546875, 0.0335693359375, 0.001857757568359375, -0.0153350830078125, -0.04290771484375, 0.06610107421875, 0.0091400146484375, -0.017822265625, -0.032745361328125, 0.068603515625, -0.002071380615234375, 0.0012483596801757812, -0.00725555419921875, -0.019744873046875, -0.049102783203125, 0.001522064208984375, 0.043609619140625, 0.02105712890625, -0.00981903076171875, -0.0256500244140625, -0.0269622802734375, 0.00643157958984375, 0.07708740234375, -0.01377105712890625, 0.01387786865234375, -0.029541015625, -0.0160369873046875, 0.034515380859375, -0.01265716552734375, 0.0254669189453125, 0.032379150390625, 0.0198974609375, -0.028900146484375, 0.0693359375, 0.007335662841796875, -0.0002541542053222656, 0.0090789794921875, 0.016021728515625, 0.01690673828125, -0.012451171875, -0.02020263671875, -0.0243072509765625, -0.05029296875, -0.0382080078125, 0.04461669921875, 0.03521728515625, 0.038330078125, -0.0047760009765625, -0.005451202392578125, 0.0311126708984375, 0.02581787109375, -0.016876220703125, -0.0219573974609375, -0.027130126953125, 0.0126953125, -0.0157012939453125, 0.035247802734375, -0.01068878173828125, -0.06439208984375, -0.04119873046875, -0.0011968612670898438, 0.03253173828125, -0.0012264251708984375, -0.052337646484375, -0.023712158203125, 0.048797607421875, 0.0153961181640625, 0.0215911865234375, 0.09210205078125, 0.02703857421875, 0.05902099609375, 0.040771484375, 0.025604248046875, 0.01824951171875, 0.061431884765625, -0.017425537109375, -0.038238525390625, 0.053863525390625, 0.0309600830078125, -0.00865936279296875, 0.033447265625, -0.0230712890625, 0.0384521484375, -0.0638427734375, 0.046630859375, 0.06781005859375, 0.0199432373046875, 0.0212554931640625, -0.055145263671875, 0.03082275390625, 0.002655029296875, -0.00582122802734375, -0.0159454345703125, 0.035919189453125, -0.06146240234375, -0.031646728515625, -0.0177459716796875, -0.03399658203125, -0.01148223876953125, -0.01192474365234375, 0.0008769035339355469, -0.00133514404296875, -0.0205841064453125, -0.03424072265625, 0.032470703125, -0.0362548828125, -0.0384521484375, 0.01971435546875, -0.02325439453125, 0.02423095703125, -0.048126220703125, 0.0269622802734375, -0.01727294921875, 0.028350830078125, 0.01702880859375, -0.0005068778991699219, 0.049224853515625, 0.017974853515625, 0.016326904296875, -0.00959014892578125, -0.01415252685546875, 0.00891876220703125, 0.02789306640625, -0.010955810546875, -0.0009860992431640625, 0.012115478515625, -0.0406494140625, 0.0031585693359375, -0.0153656005859375, 0.005886077880859375, -0.0011930465698242188, 0.021514892578125, 0.048095703125, -0.0550537109375, 0.0036411285400390625, 0.038299560546875, 0.07196044921875, -0.00323486328125, -0.00693511962890625, 0.038848876953125, -0.0445556640625, -0.0164794921875, 0.004062652587890625, -0.032867431640625, -0.0316162109375, -0.040679931640625, -0.068603515625, 0.0709228515625, 0.01044464111328125, 0.043426513671875, 0.0158233642578125, 0.01126861572265625, -0.0188446044921875, -0.0170135498046875, -0.028045654296875, 0.0034275054931640625, -0.08544921875, 0.006061553955078125, -0.0462646484375, 0.02392578125, -0.0310516357421875, -0.0010223388671875, 0.0811767578125, 0.0187530517578125, -0.0675048828125, -0.0198822021484375, 0.047149658203125, 0.04913330078125, 0.0238494873046875, 0.04327392578125, -0.006458282470703125, 0.006282806396484375, 0.040374755859375, -0.039398193359375, 0.0145111083984375, -0.0185546875, 0.00859832763671875, 0.0240325927734375, 0.0302581787109375, 0.04486083984375, 0.01042938232421875, 0.0296173095703125, -0.02178955078125, 0.0023059844970703125, 0.05047607421875, -0.0438232421875, 0.0283660888671875, 0.019195556640625, 0.0214691162109375, -0.02740478515625, 0.0219268798828125, -0.014984130859375, 0.06298828125, -0.01190185546875, 0.0012636184692382812, 0.0138397216796875, 0.0052947998046875, 0.0360107421875, 0.02935791015625, -0.0009341239929199219, 0.0389404296875, 0.0179595947265625, 0.03973388671875, 0.004787445068359375, 0.0179901123046875, -0.06671142578125, 0.004581451416015625, 0.063720703125, 0.064697265625, -0.0400390625, -0.0023288726806640625, 0.0257568359375, 0.00821685791015625, -0.0078125, -0.0078125, 0.01715087890625, -0.05340576171875, -0.0226898193359375, -0.01971435546875, 0.0150299072265625, 0.028839111328125, 0.06390380859375, 0.003894805908203125, -0.0146026611328125, -0.0938720703125, -0.029144287109375, -0.038116455078125, 0.0094451904296875, 0.01103973388671875, 0.01218414306640625, 0.00705718994140625, 0.0174102783203125, 0.021026611328125, 0.00409698486328125, -0.003814697265625, 0.04754638671875, -0.0011844635009765625, 0.0209503173828125, -0.03533935546875, -0.06536865234375, 0.005741119384765625, 0.042633056640625, 0.0104522705078125, 0.0059814453125, 0.0283203125, 0.01910400390625, -0.048583984375, -0.006591796875, 0.04119873046875, -0.0179901123046875, 0.04248046875, -0.035888671875, 0.032470703125, 0.0210113525390625, -0.01052093505859375, -0.0186004638671875, -0.039581298828125, 0.07196044921875, -0.007091522216796875, 0.060272216796875, -0.00868988037109375, -0.00927734375, 0.00008082389831542969, -0.03094482421875, 0.050445556640625, -0.01241302490234375, -0.0682373046875, -0.00878143310546875, -0.01031494140625, -0.037689208984375, 0.00489044189453125, 0.01470184326171875, -0.022216796875, 0.03173828125, -0.0284576416015625, -0.004177093505859375, 0.0082244873046875, -0.0164031982421875, 0.0143280029296875, -0.01629638671875, 0.00786590576171875, -0.01763916015625, -0.03131103515625, -0.01436614990234375, 0.0124969482421875, 0.022003173828125, 0.0251617431640625, -0.01441192626953125, 0.0185546875, 0.0235748291015625, -0.00604248046875, 0.0165863037109375, -0.056488037109375, 0.010528564453125, -0.0165863037109375, -0.0445556640625, -0.01184844970703125, 0.01313018798828125, -0.0046844482421875, 0.04705810546875, 0.0228424072265625, 0.003307342529296875, -0.0144500732421875, -0.00189208984375, 0.0209197998046875, 0.03082275390625, -0.0056610107421875, -0.029754638671875, -0.01448822021484375, -0.034454345703125, -0.02093505859375, 0.03546142578125, -0.003993988037109375, -0.01207733154296875, 0.017059326171875, 0.0040283203125, -0.018829345703125, 0.035125732421875, -0.019561767578125, 0.04815673828125, 0.037261962890625, -0.052337646484375, -0.032501220703125, 0.00616455078125, -0.00511932373046875, -0.00927734375, 0.005863189697265625, 0.0555419921875, -0.0074310302734375, -0.01457977294921875, 0.0567626953125, 0.03460693359375, 0.051239013671875, -0.0142822265625, -0.00676727294921875, 0.046905517578125, 0.003231048583984375, -0.029754638671875, -0.049285888671875, -0.006656646728515625, -0.053985595703125, -0.0150146484375, 0.0189361572265625, -0.016571044921875, 0.0193023681640625, 0.0159454345703125, -0.020263671875, 0.00959014892578125, 0.00913238525390625, -0.034912109375, 0.01611328125, 0.007251739501953125, -0.00458526611328125, -0.0219879150390625, 0.0022735595703125, -0.0197601318359375, 0.0082244873046875, -0.031280517578125, -0.064453125, -0.03668212890625, 0.050628662109375, -0.0433349609375, 0.0254364013671875, 0.026885986328125, -0.0206756591796875, 0.0026645660400390625, 0.047149658203125, 0.0201873779296875, 0.10504150390625, -0.044342041015625, -0.034912109375, -0.01044464111328125, 0.0184783935546875, 0.0157623291015625, -0.039459228515625, -0.0121612548828125, -0.03643798828125, 0.00792694091796875, -0.0693359375, 0.0249786376953125, 0.0015926361083984375, -0.030517578125, -0.0308837890625, 0.0180816650390625, -0.0206298828125, -0.0308837890625, 0.01525115966796875, 0.019683837890625, 0.010467529296875, 0.004482269287109375, 0.018096923828125, -0.03125, -0.008514404296875, -0.01035308837890625, 0.016357421875, -0.033782958984375, 0.0635986328125, -0.003261566162109375, -0.06396484375, -0.0155181884765625, -0.01715087890625, 0.0027313232421875, 0.00820159912109375, -0.0249786376953125, 0.051055908203125, 0.0032291412353515625, -0.03814697265625, -0.006557464599609375, 0.0178680419921875, 0.01568603515625, -0.0156707763671875, -0.025909423828125, -0.01560211181640625, 0.032562255859375, 0.044403076171875, 0.0789794921875, 0.0160980224609375, -0.0638427734375, 0.0287322998046875, -0.01708984375, -0.033660888671875, -0.00811767578125, 0.01535797119140625, -0.05047607421875, -0.0276947021484375, 0.0215606689453125, -0.0169219970703125, -0.01395416259765625, 0.00034689903259277344, -0.062164306640625, -0.00443267822265625, -0.0142059326171875, 0.0021305084228515625, -0.0557861328125, 0.027130126953125, 0.04248046875, -0.035675048828125, 0.0229339599609375, -0.0352783203125, 0.005374908447265625, 0.035491943359375, -0.05743408203125, -0.00806427001953125, 0.048065185546875, -0.01519775390625, 0.000316619873046875, 0.021453857421875, -0.043212890625, 0.01412200927734375, 0.02923583984375, -0.004913330078125, 0.01511383056640625, -0.0268707275390625, 0.016510009765625, 0.04193115234375, -0.0006651878356933594, -0.01055145263671875, 0.047607421875, -0.033599853515625, 0.04010009765625, 0.006175994873046875, 0.01456451416015625, -0.0340576171875, 0.010528564453125, 0.0195465087890625, -0.0509033203125, 0.01111602783203125, 0.00439453125, -0.005702972412109375, -0.01363372802734375, 0.00098419189453125, 0.00627899169921875, -0.034027099609375, -0.0012874603271484375 ]
1837b33e63005bf7402ab72e60f3036ae9aa0b08
Wordpress Stackexchange Q: Does a reply to a wordpress comment notify the author of the comment? Currently I have my comments set so that when you hit "reply" to a comment, it will insert @USERNAME of the person you are replying to. I am trying to find out if wordpress emails that user to let them know that I have replied to a comment they left or if this is something I will have to manually code in? A: It doesn't automatically send out emails. You can install a plugin to do that, however. There are quite a few listed in the WordPress plugin repository: http://wordpress.org/extend/plugins/search.php?q=reply+to+comment Hope this helps, best of luck!
Q: Does a reply to a wordpress comment notify the author of the comment? Currently I have my comments set so that when you hit "reply" to a comment, it will insert @USERNAME of the person you are replying to. I am trying to find out if wordpress emails that user to let them know that I have replied to a comment they left or if this is something I will have to manually code in? A: It doesn't automatically send out emails. You can install a plugin to do that, however. There are quite a few listed in the WordPress plugin repository: http://wordpress.org/extend/plugins/search.php?q=reply+to+comment Hope this helps, best of luck!
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:418295", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46389" }
[ 0.025177001953125, -0.006465911865234375, 0.003078460693359375, -0.01050567626953125, -0.012603759765625, -0.0258331298828125, 0.00850677490234375, -0.0286407470703125, -0.00934600830078125, 0.037841796875, -0.009002685546875, -0.011199951171875, 0.0216217041015625, -0.008819580078125, -0.0256500244140625, -0.0257568359375, 0.0218353271484375, 0.00909423828125, 0.0308074951171875, -0.007511138916015625, 0.022369384765625, 0.0009312629699707031, 0.006488800048828125, 0.043426513671875, 0.0216827392578125, 0.043914794921875, 0.1190185546875, -0.041534423828125, 0.04803466796875, -0.004974365234375, 0.031829833984375, -0.08038330078125, 0.01325225830078125, 0.0408935546875, -0.051025390625, 0.0040283203125, -0.0006356239318847656, 0.01934814453125, 0.003284454345703125, 0.0228424072265625, 0.0187835693359375, -0.0148468017578125, 0.00902557373046875, -0.01313018798828125, -0.0006489753723144531, -0.02813720703125, 0.0309600830078125, -0.042388916015625, 0.03826904296875, -0.0166015625, 0.003307342529296875, 0.039581298828125, 0.0265350341796875, -0.01995849609375, -0.0184173583984375, 0.0171966552734375, -0.039459228515625, 0.0706787109375, 0.0154266357421875, -0.0379638671875, -0.00983428955078125, 0.031341552734375, 0.0069427490234375, 0.040740966796875, -0.0209808349609375, -0.0062408447265625, -0.0116424560546875, 0.02288818359375, 0.04241943359375, -0.0164642333984375, -0.0241546630859375, 0.0204315185546875, -0.0289154052734375, 0.0000037550926208496094, 0.0022449493408203125, -0.035247802734375, -0.0008897781372070312, -0.05291748046875, 0.011962890625, 0.044677734375, 0.0212249755859375, 0.00809478759765625, -0.0098724365234375, -0.0316162109375, 0.037689208984375, 0.005733489990234375, -0.01273345947265625, -0.0211944580078125, -0.03204345703125, -0.03143310546875, -0.0272216796875, -0.06134033203125, -0.0240325927734375, 0.00514984130859375, -0.0166473388671875, -0.010284423828125, -0.0272979736328125, 0.053955078125, -0.04443359375, -0.010467529296875, -0.052001953125, 0.03765869140625, -0.0538330078125, -0.0225982666015625, -0.005229949951171875, 0.034454345703125, 0.018096923828125, -0.04779052734375, -0.0167999267578125, 0.002655029296875, -0.003650665283203125, -0.041015625, -0.027862548828125, -0.01502227783203125, 0.01152801513671875, -0.007282257080078125, -0.0694580078125, 0.031524658203125, -0.0115509033203125, 0.016876220703125, -0.00992584228515625, 0.0215301513671875, -0.03729248046875, 0.00789642333984375, 0.0068206787109375, -0.01043701171875, 0.0302734375, -0.01525115966796875, 0.016143798828125, -0.01003265380859375, -0.04376220703125, 0.032440185546875, 0.0556640625, 0.002410888671875, -0.007720947265625, -0.01861572265625, 0.03167724609375, 0.01184844970703125, -0.022247314453125, 0.0242462158203125, 0.0031642913818359375, -0.022430419921875, -0.0185699462890625, -0.0204010009765625, -0.025848388671875, 0.0027599334716796875, 0.01326751708984375, 0.028717041015625, 0.0034160614013671875, -0.0224609375, -0.012115478515625, -0.010589599609375, 0.007434844970703125, 0.00199127197265625, 0.02496337890625, -0.0247955322265625, -0.0022678375244140625, -0.02215576171875, 0.0369873046875, -0.01171112060546875, 0.006549835205078125, -0.0005421638488769531, 0.006275177001953125, 0.0033740997314453125, -0.009613037109375, 0.0073089599609375, -0.0223388671875, 0.006427764892578125, 0.0232696533203125, 0.005695343017578125, -0.0005693435668945312, -0.006763458251953125, 0.044830322265625, -0.0027637481689453125, -0.017669677734375, 0.00536346435546875, 0.0027008056640625, 0.0285797119140625, -0.0015878677368164062, 0.036834716796875, 0.01155853271484375, -0.0264129638671875, 0.0299835205078125, -0.00699615478515625, 0.0080413818359375, 0.00039696693420410156, 0.0231170654296875, 0.02813720703125, -0.02532958984375, 0.0240631103515625, -0.0245361328125, 0.04534912109375, 0.0029277801513671875, 0.01152801513671875, -0.03997802734375, -0.024444580078125, 0.00765228271484375, 0.0295562744140625, -0.03076171875, 0.0038013458251953125, 0.016265869140625, -0.0350341796875, 0.0176544189453125, -0.0023250579833984375, -0.07305908203125, 0.01465606689453125, -0.045196533203125, 0.032928466796875, 0.0509033203125, 0.0095367431640625, -0.0190582275390625, -0.0265960693359375, 0.020965576171875, -0.04840087890625, -0.045623779296875, 0.006633758544921875, -0.03704833984375, 0.00882720947265625, -0.01055908203125, 0.057342529296875, -0.0250091552734375, 0.01535797119140625, -0.032958984375, -0.0194244384765625, -0.0048980712890625, -0.04302978515625, -0.00702667236328125, -0.0221710205078125, -0.033355712890625, 0.0175933837890625, -0.058502197265625, 0.0302581787109375, 0.00661468505859375, -0.007541656494140625, -0.0147552490234375, 0.0004749298095703125, 0.0160675048828125, -0.060638427734375, 0.019775390625, 0.05316162109375, 0.001659393310546875, -0.04205322265625, -0.0111083984375, 0.044342041015625, 0.042327880859375, 0.053863525390625, 0.03753662109375, 0.0110626220703125, 0.039642333984375, 0.03863525390625, 0.01473236083984375, -0.0267181396484375, 0.0231475830078125, -0.0858154296875, 0.0284576416015625, 0.035064697265625, 0.0086212158203125, 0.009429931640625, -0.033172607421875, 0.0343017578125, -0.00679779052734375, -0.0052032470703125, 0.006603240966796875, -0.01342010498046875, 0.0186614990234375, -0.058319091796875, -0.007732391357421875, -0.032073974609375, -0.0198822021484375, -0.0287628173828125, 0.0219268798828125, -0.0125274658203125, 0.0149078369140625, 0.056427001953125, 0.0103607177734375, 0.051513671875, 0.017974853515625, -0.04840087890625, 0.013763427734375, 0.038848876953125, -0.0367431640625, -0.031829833984375, -0.019500732421875, -0.005764007568359375, 0.03240966796875, 0.0240020751953125, 0.0177459716796875, -0.03125, -0.0252227783203125, -0.0023555755615234375, 0.0006618499755859375, 0.058563232421875, -0.0027637481689453125, 0.0230865478515625, 0.00379180908203125, 0.01320648193359375, -0.0079498291015625, -0.0220947265625, 0.0263214111328125, -0.0411376953125, 0.0205230712890625, 0.057952880859375, 0.0234222412109375, -0.028076171875, 0.0002779960632324219, 0.0036029815673828125, -0.007152557373046875, 0.005947113037109375, -0.0091552734375, 0.0049896240234375, -0.028961181640625, 0.03912353515625, -0.0090484619140625, 0.07958984375, -0.052032470703125, -0.06744384765625, -0.00557708740234375, 0.017791748046875, -0.01393890380859375, -0.004673004150390625, 0.0275421142578125, -0.042327880859375, -0.00966644287109375, -0.041229248046875, -0.0178070068359375, -0.00485992431640625, -0.033172607421875, -0.00814056396484375, -0.01544189453125, -0.057037353515625, -0.05810546875, -0.0770263671875, -0.06396484375, 0.02093505859375, 0.007843017578125, 0.02276611328125, 0.01146697998046875, 0.039459228515625, -0.007335662841796875, -0.04376220703125, -0.021026611328125, -0.0098419189453125, 0.0002682209014892578, -0.012969970703125, 0.0013513565063476562, 0.0019779205322265625, 0.0007386207580566406, 0.0081024169921875, -0.001987457275390625, 0.024627685546875, -0.023468017578125, -0.00646209716796875, 0.0016326904296875, 0.00809478759765625, 0.0293426513671875, -0.0141448974609375, -0.0122833251953125, 0.03228759765625, 0.017181396484375, -0.034393310546875, 0.01556396484375, 0.0082244873046875, -0.00933837890625, -0.0254058837890625, -0.005176544189453125, -0.02935791015625, -0.01505279541015625, -0.00762176513671875, 0.019134521484375, 0.0250396728515625, 0.0176239013671875, -0.01511383056640625, 0.018524169921875, 0.00272369384765625, 0.004863739013671875, -0.03424072265625, -0.03887939453125, -0.026702880859375, 0.038482666015625, -0.0283966064453125, 0.01311492919921875, -0.06201171875, 0.06646728515625, -0.0811767578125, -0.036285400390625, 0.03448486328125, -0.04150390625, -0.030303955078125, -0.00548553466796875, -0.009002685546875, 0.0272216796875, 0.05877685546875, -0.019989013671875, -0.01995849609375, 0.0153350830078125, 0.01290130615234375, -0.066650390625, -0.0019330978393554688, -0.0537109375, 0.0031986236572265625, -0.03289794921875, 0.0170440673828125, 0.003246307373046875, -0.0124664306640625, -0.04486083984375, 0.04766845703125, -0.0284576416015625, -0.01033782958984375, 0.01294708251953125, -0.05389404296875, 0.0379638671875, -0.004726409912109375, 0.0125732421875, 0.0005235671997070312, 0.033966064453125, -0.0885009765625, -0.0011434555053710938, -0.0047760009765625, -0.0190277099609375, -0.0011148452758789062, -0.004520416259765625, 0.028106689453125, -0.009765625, 0.0116424560546875, -0.004421234130859375, 0.00408172607421875, -0.0179595947265625, -0.0013704299926757812, -0.017120361328125, 0.0124359130859375, -0.0195770263671875, -0.00640106201171875, 0.0165557861328125, 0.0011281967163085938, -0.021148681640625, 0.03118896484375, -0.046875, -0.00484466552734375, -0.0114288330078125, -0.0228729248046875, -0.01238250732421875, -0.0254974365234375, -0.021148681640625, 0.01220703125, -0.0219268798828125, 0.00982666015625, -0.0168609619140625, -0.0231781005859375, -0.01200103759765625, -0.046356201171875, 0.00560760498046875, 0.0279541015625, 0.052459716796875, 0.02252197265625, 0.028778076171875, -0.0005211830139160156, 0.01120758056640625, 0.060821533203125, 0.061553955078125, 0.015411376953125, 0.03192138671875, -0.043914794921875, 0.0260162353515625, 0.07501220703125, -0.004825592041015625, -0.0286712646484375, 0.0579833984375, -0.029571533203125, -0.031524658203125, 0.046539306640625, -0.05426025390625, 0.0195465087890625, -0.03314208984375, -0.0135040283203125, 0.005496978759765625, -0.01551055908203125, 0.037200927734375, -0.0113067626953125, 0.046173095703125, -0.029632568359375, -0.06689453125, 0.02008056640625, -0.05230712890625, -0.00653076171875, -0.0030059814453125, 0.0081787109375, 0.0166015625, 0.01418304443359375, -0.006343841552734375, -0.017913818359375, -0.0280914306640625, -0.00836944580078125, 0.032806396484375, -0.03326416015625, -0.0012063980102539062, -0.0027790069580078125, -0.00923919677734375, 0.08685302734375, 0.044036865234375, -0.0203399658203125, -0.007404327392578125, -0.004657745361328125, -0.0191802978515625, -0.0212249755859375, 0.01099395751953125, 0.02618408203125, 0.042938232421875, -0.01018524169921875, 0.0016117095947265625, -0.0007276535034179688, 0.036407470703125, -0.0413818359375, -0.0017805099487304688, -0.00013494491577148438, -0.014404296875, 0.026031494140625, 0.0180816650390625, -0.033233642578125, 0.035675048828125, -0.006252288818359375, 0.01235198974609375, 0.0252532958984375, 0.0108642578125, 0.0322265625, 0.0200958251953125, -0.014923095703125, -0.009674072265625, 0.006137847900390625, 0.006984710693359375, -0.0018329620361328125, 0.0191650390625, 0.006763458251953125, 0.0469970703125, 0.034576416015625, -0.025543212890625, -0.020599365234375, -0.01044464111328125, 0.00601959228515625, 0.05645751953125, 0.007843017578125, 0.00970458984375, 0.006664276123046875, -0.00719451904296875, 0.0156402587890625, -0.0024166107177734375, 0.01378631591796875, -0.004253387451171875, 0.007160186767578125, 0.001010894775390625, -0.00771331787109375, -0.017242431640625, -0.0045166015625, -0.021148681640625, 0.005298614501953125, 0.02288818359375, -0.03143310546875, -0.0155029296875, -0.0204315185546875, -0.0160369873046875, 0.0645751953125, 0.0027980804443359375, -0.01146697998046875, -0.0372314453125, 0.040252685546875, -0.030975341796875, -0.00984954833984375, 0.06829833984375, 0.0223846435546875, -0.02813720703125, -0.002170562744140625, -0.0518798828125, -0.022491455078125, -0.0165863037109375, -0.01849365234375, -0.030242919921875, -0.00392913818359375, 0.0261993408203125, 0.0097198486328125, -0.0236968994140625, -0.06280517578125, -0.0111236572265625, 0.031158447265625, 0.03875732421875, 0.0170745849609375, -0.0020618438720703125, 0.0256805419921875, 0.006649017333984375, 0.010101318359375, 0.0189971923828125, 0.03204345703125, 0.006923675537109375, -0.039642333984375, 0.00376129150390625, -0.006580352783203125, 0.003467559814453125, -0.00339508056640625, 0.03472900390625, -0.033172607421875, -0.0095977783203125, -0.0048065185546875, 0.00875091552734375, 0.003528594970703125, 0.0107269287109375, -0.01715087890625, -0.0212554931640625, 0.0137939453125, -0.0019054412841796875, 0.006412506103515625, -0.00222015380859375, 0.0127410888671875, -0.014739990234375, -0.00444793701171875, -0.004383087158203125, 0.017547607421875, -0.01171875, -0.0076904296875, -0.03277587890625, 0.0343017578125, 0.071044921875, -0.0054931640625, 0.0489501953125, 0.02642822265625, 0.0187530517578125, 0.033538818359375, 0.0129547119140625, -0.0069732666015625, -0.060394287109375, 0.038787841796875, 0.0144500732421875, -0.0174407958984375, 0.046112060546875, -0.0313720703125, 0.0458984375, 0.0460205078125, 0.0654296875, -0.08856201171875, 0.0265045166015625, -0.00659942626953125, -0.023193359375, 0.055816650390625, -0.025421142578125, -0.0113525390625, -0.0887451171875, 0.08990478515625, -0.01096343994140625, -0.0079803466796875, -0.0018968582153320312, -0.04840087890625, 0.0095062255859375, 0.007293701171875, 0.03594970703125, -0.00524139404296875, -0.034698486328125, -0.0333251953125, 0.03228759765625, -0.0224456787109375, -0.0377197265625, -0.0201263427734375, 0.061309814453125, -0.005039215087890625, -0.042022705078125, 0.07183837890625, -0.046295166015625, 0.0333251953125, 0.0188446044921875, -0.001361846923828125, -0.018280029296875, 0.0283660888671875, -0.025054931640625, 0.0126190185546875, 0.0027599334716796875, -0.033935546875, -0.0030193328857421875, -0.029205322265625, 0.0212554931640625, 0.06964111328125, -0.0124969482421875, 0.036163330078125, 0.0094146728515625, -0.02423095703125, 0.0030689239501953125, 0.02679443359375, 0.08355712890625, -0.0548095703125, -0.0146484375, 0.05316162109375, -0.0224456787109375, -0.039581298828125, -0.011383056640625, -0.0171356201171875, -0.017181396484375, 0.0307769775390625, -0.035400390625, -0.0079193115234375, 0.0372314453125, -0.02459716796875, -0.06280517578125, 0.05303955078125, 0.049896240234375, -0.0016803741455078125, -0.0198974609375, 0.0225982666015625, -0.0179901123046875, 0.01416778564453125, -0.0285797119140625, 0.08782958984375, -0.0198516845703125, 0.07666015625, -0.06170654296875, -0.0290985107421875, 0.040740966796875, 0.06121826171875, 0.07489013671875, 0.0281219482421875, -0.054901123046875, -0.00826263427734375, 0.0269927978515625, 0.00559234619140625, -0.009002685546875, 0.06756591796875, 0.015472412109375, 0.00876617431640625, 0.059783935546875, -0.0185394287109375, 0.03668212890625, -0.010894775390625, 0.0147247314453125, 0.017730712890625, 0.0009350776672363281, 0.005863189697265625, -0.01229095458984375, 0.0771484375, -0.034027099609375, -0.007335662841796875, 0.018646240234375, -0.006885528564453125, 0.024078369140625, 0.0168914794921875, 0.039642333984375, -0.042633056640625, 0.0128326416015625, -0.031646728515625, 0.053680419921875, -0.0091094970703125, -0.0100250244140625, 0.0153961181640625, 0.022003173828125, 0.0279388427734375, -0.031524658203125, -0.0160980224609375, 0.01103973388671875, -0.01107025146484375, 0.047393798828125, -0.0101165771484375, 0.040924072265625, -0.058135986328125, -0.0572509765625, -0.01230621337890625, 0.064208984375, -0.01390838623046875, 0.0295257568359375, 0.0170135498046875, 0.01531219482421875, 0.021392822265625, -0.05413818359375, 0.0430908203125, -0.0287628173828125, -0.044830322265625, -0.0265655517578125, -0.0227508544921875, -0.004100799560546875, 0.0599365234375, -0.0005388259887695312, 0.012359619140625, -0.005462646484375, -0.05645751953125, -0.00461578369140625, -0.005462646484375, 0.02349853515625, -0.00348663330078125, -0.032135009765625, 0.057525634765625, 0.0092315673828125, 0.0310821533203125, 0.01331329345703125, -0.0357666015625, 0.015777587890625, -0.03619384765625, 0.028594970703125, 0.030242919921875, 0.01125335693359375, 0.01451873779296875, -0.0041961669921875, 0.01824951171875, 0.019195556640625, 0.00913238525390625, -0.038818359375, -0.01396942138671875, 0.01129913330078125, -0.039947509765625, 0.0184173583984375, -0.036163330078125, 0.042694091796875, 0.0513916015625, -0.0035076141357421875, 0.0018529891967773438, -0.03338623046875, 0.09344482421875, -0.03900146484375, 0.019500732421875, 0.005626678466796875, -0.019989013671875, 0.053009033203125, 0.0161895751953125, 0.0098724365234375, -0.0008745193481445312, -0.03753662109375, -0.02178955078125, 0.0350341796875, -0.0189361572265625, 0.006809234619140625, 0.031829833984375, -0.014984130859375, 0.01528167724609375, -0.01751708984375, 0.009521484375, 0.0189208984375, -0.03863525390625, 0.0118560791015625, 0.01666259765625, 0.005191802978515625, 0.009521484375, -0.06280517578125, -0.037017822265625, -0.041046142578125, 0.0261077880859375, 0.0404052734375, 0.043365478515625, 0.015380859375, 0.040496826171875, -0.052886962890625, 0.013885498046875, -0.07305908203125, -0.055389404296875, 0.07415771484375, -0.0189208984375, -0.05780029296875, 0.01512908935546875, -0.0948486328125, 0.050018310546875, -0.01090240478515625, 0.0233154296875, 0.070556640625, -0.018829345703125, -0.0164794921875, -0.01409912109375, -0.018035888671875, -0.0307464599609375, -0.01255035400390625, 0.00386810302734375, 0.007488250732421875, 0.00004082918167114258, -0.012451171875, -0.0163116455078125, 0.06298828125, -0.00363922119140625, 0.029815673828125, -0.007171630859375, -0.02935791015625, -0.0194244384765625, 0.0164794921875, -0.03485107421875, 0.005603790283203125, 0.0046844482421875, -0.018890380859375, 0.005096435546875, 0.0014791488647460938, 0.0093841552734375, 0.01474761962890625, -0.0127105712890625, -0.01169586181640625, -0.00908660888671875, 0.06634521484375, 0.0257110595703125, 0.022918701171875, -0.08026123046875, 0.025421142578125, 0.0232696533203125, -0.029510498046875, -0.023590087890625, -0.07440185546875, 0.0206298828125, 0.026641845703125, -0.0408935546875, 0.01456451416015625, -0.02239990234375, -0.030548095703125, -0.002410888671875, -0.0038909912109375, -0.033843994140625, 0.0014047622680664062, 0.0239105224609375, 0.004779815673828125, -0.03326416015625, -0.0030670166015625, 0.0231170654296875, 0.04266357421875, -0.037139892578125, -0.03997802734375, -0.01497650146484375, 0.034332275390625, -0.039215087890625, 0.045867919921875, 0.0535888671875, -0.053497314453125, -0.0236663818359375, 0.0309906005859375, 0.056304931640625, 0.07757568359375, 0.045623779296875, -0.02630615234375, 0.030670166015625, -0.0098114013671875, 0.0008749961853027344, -0.059844970703125, -0.0068206787109375, -0.038970947265625, 0.009857177734375, -0.0218353271484375, 0.037017822265625, 0.04559326171875, -0.027069091796875, -0.0780029296875, 0.0538330078125, -0.031463623046875, -0.031463623046875, -0.026763916015625, -0.028045654296875, -0.01751708984375, 0.004970550537109375, -0.00717926025390625, -0.0023193359375, -0.04400634765625, 0.026397705078125, 0.006195068359375, 0.00811767578125, 0.01509857177734375, 0.0195770263671875, -0.031768798828125, 0.01345062255859375, 0.004520416259765625, -0.0283050537109375, -0.01806640625, -0.0002422332763671875, 0.0006279945373535156, 0.03594970703125, -0.0287017822265625, -0.0238800048828125, -0.0102386474609375, 0.0144500732421875, -0.019744873046875, 0.0036449432373046875, 0.0111236572265625, 0.027679443359375, 0.01959228515625, 0.051025390625, -0.0018949508666992188, -0.038330078125, 0.01381683349609375, -0.002429962158203125, -0.0280609130859375, -0.05029296875, 0.00530242919921875, -0.035247802734375, -0.027435302734375, -0.03924560546875, -0.0110321044921875, -0.048065185546875, -0.03985595703125, -0.0458984375, 0.007244110107421875, 0.016265869140625, 0.0305328369140625, 0.06549072265625, -0.06549072265625, 0.032318115234375, -0.020721435546875, 0.01366424560546875, 0.01238250732421875, 0.0295562744140625, 0.02325439453125, 0.0736083984375, 0.01154327392578125, -0.00504302978515625, -0.0218505859375, 0.0191802978515625, 0.01509857177734375, 0.0124359130859375, -0.018341064453125, -0.0260009765625, 0.0053558349609375, 0.0283660888671875, -0.01216888427734375, 0.0307769775390625, 0.0027713775634765625, 0.036407470703125, 0.0006647109985351562, 0.016265869140625, -0.003997802734375, -0.04486083984375, -0.031890869140625, 0.05023193359375, -0.01473236083984375, -0.020477294921875, 0.0149993896484375, -0.049652099609375, 0.0229034423828125, 0.035064697265625, 0.09136962890625, -0.03497314453125, 0.0653076171875, 0.0775146484375, 0.05279541015625, 0.03778076171875 ]
bdf8805f09b60b42bc1a2ab4c21ef0b21333c9fe
Wordpress Stackexchange Q: Edit "thank you for creating with Wordpress" in version 3.3.1 Is there a way to edit the text "thank you for creating with Wordpress" in version 3.3.1 at the bottom of the CMS? If so what file do I need to edit? A: Just hook into the filter. The only thing remaining will be the <hr />. /** * Change/Disable the footer text line * @return void */ function wpse_remove_footer() { add_filter( 'admin_footer_text', '__return_false', 11 ); add_filter( 'update_footer', '__return_false', 11 ); } add_action( 'admin_init', 'wpse_remove_footer' ); In case you want to change it: add_action( 'admin_init', function() { add_filter( 'admin_footer_text', function() { echo "This is a custom admin footer text"; }, 11 ); add_filter( 'update_footer', function() { echo "This is a custom footer update text"; }, 11 ); } );
Q: Edit "thank you for creating with Wordpress" in version 3.3.1 Is there a way to edit the text "thank you for creating with Wordpress" in version 3.3.1 at the bottom of the CMS? If so what file do I need to edit? A: Just hook into the filter. The only thing remaining will be the <hr />. /** * Change/Disable the footer text line * @return void */ function wpse_remove_footer() { add_filter( 'admin_footer_text', '__return_false', 11 ); add_filter( 'update_footer', '__return_false', 11 ); } add_action( 'admin_init', 'wpse_remove_footer' ); In case you want to change it: add_action( 'admin_init', function() { add_filter( 'admin_footer_text', function() { echo "This is a custom admin footer text"; }, 11 ); add_filter( 'update_footer', function() { echo "This is a custom footer update text"; }, 11 ); } ); A: Credit definitely goes to @kaiser, but here is a full working solution. You can add this code to your functions.php file (in your theme): function wpse_edit_footer() { add_filter( 'admin_footer_text', 'wpse_edit_text', 11 ); } function wpse_edit_text($content) { return "New Footer Text"; } add_action( 'admin_init', 'wpse_edit_footer' ); A: add_filter('admin_footer_text', remove_admin_footer_text, 1000); function remove_admin_footer_text($footer_text =''){ return ''; } add_filter('update_footer', remove_admin_footer_upgrade, 1000); function remove_admin_footer_upgrade($footer_text =''){ return ''; } A: There you go: // Admin footer modification function remove_footer_admin () { echo '<span id="footer-thankyou">Developed by <a href="https://www.example.com" target="_blank">www.example.com</a></span>'; } add_filter('admin_footer_text', 'remove_footer_admin');
wordpress
{ "language": "en", "length": 217, "provenance": "stackexchange_00019.jsonl.gz:418309", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46459" }
[ 0.00019562244415283203, 0.006893157958984375, -0.04461669921875, -0.0161895751953125, -0.0003840923309326172, -0.043426513671875, 0.0112152099609375, -0.004993438720703125, 0.0272979736328125, 0.0009713172912597656, -0.026275634765625, -0.05438232421875, 0.0088348388671875, -0.033935546875, -0.0286102294921875, -0.053253173828125, 0.0023632049560546875, 0.00778961181640625, 0.0271148681640625, -0.027130126953125, 0.0117034912109375, -0.02008056640625, 0.01441192626953125, 0.06927490234375, -0.0221099853515625, -0.044189453125, 0.1087646484375, 0.006275177001953125, 0.01043701171875, -0.0126800537109375, 0.0166015625, -0.0213623046875, 0.01273345947265625, 0.0210418701171875, -0.04547119140625, -0.0236663818359375, 0.0287933349609375, -0.01387786865234375, 0.000614166259765625, 0.0029315948486328125, 0.02435302734375, -0.00984954833984375, -0.02740478515625, 0.01001739501953125, -0.0233154296875, -0.0204620361328125, 0.0233612060546875, -0.00743865966796875, 0.032470703125, 0.0144195556640625, -0.0259246826171875, 0.0031642913818359375, -0.022247314453125, -0.00201416015625, -0.022003173828125, -0.01418304443359375, -0.023284912109375, 0.049530029296875, 0.0035533905029296875, 0.006412506103515625, -0.011383056640625, 0.018646240234375, -0.0010976791381835938, 0.0008606910705566406, -0.004688262939453125, -0.0104217529296875, -0.0260009765625, 0.0080108642578125, -0.002323150634765625, -0.00460052490234375, 0.007404327392578125, -0.0132293701171875, 0.017333984375, -0.029632568359375, -0.00811004638671875, 0.050933837890625, -0.0286865234375, 0.0146331787109375, 0.042266845703125, -0.0290374755859375, 0.047943115234375, -0.0095977783203125, 0.00295257568359375, -0.036865234375, 0.0254364013671875, -0.0230712890625, 0.0085906982421875, -0.00782012939453125, -0.026153564453125, 0.0004100799560546875, -0.025299072265625, -0.049530029296875, 0.00444793701171875, 0.0283050537109375, -0.0133819580078125, -0.0102691650390625, -0.001026153564453125, 0.039337158203125, -0.04443359375, 0.0274200439453125, -0.00957489013671875, -0.0251312255859375, 0.0489501953125, -0.038238525390625, 0.01247406005859375, 0.05877685546875, -0.01291656494140625, -0.0166015625, 0.003620147705078125, 0.006122589111328125, 0.01113128662109375, -0.021331787109375, -0.0167694091796875, -0.0166778564453125, -0.0199737548828125, 0.040496826171875, -0.01374053955078125, -0.00434112548828125, -0.0203704833984375, 0.036224365234375, -0.035614013671875, -0.02886962890625, 0.0416259765625, -0.002838134765625, -0.0150909423828125, -0.02618408203125, -0.01995849609375, -0.022735595703125, 0.052154541015625, -0.03680419921875, -0.040740966796875, 0.040069580078125, 0.09173583984375, 0.0275421142578125, 0.017608642578125, 0.00010925531387329102, -0.0251617431640625, -0.0282745361328125, -0.0171356201171875, 0.018951416015625, -0.043670654296875, -0.0367431640625, 0.01050567626953125, -0.037872314453125, 0.01018524169921875, 0.0133514404296875, -0.0016727447509765625, 0.0099945068359375, 0.0150909423828125, -0.00952911376953125, -0.0220947265625, -0.030303955078125, 0.04541015625, -0.01514434814453125, 0.0030918121337890625, -0.03314208984375, -0.000009238719940185547, -0.016693115234375, -0.006793975830078125, -0.029327392578125, -0.041839599609375, -0.000048220157623291016, 0.06781005859375, -0.055908203125, -0.058349609375, 0.0170745849609375, -0.052978515625, -0.022064208984375, 0.0236358642578125, 0.0340576171875, 0.0216064453125, 0.004032135009765625, -0.058013916015625, 0.00948333740234375, 0.01421356201171875, -0.0107574462890625, -0.00659942626953125, 0.050323486328125, 0.0210723876953125, -0.01244354248046875, -0.02142333984375, -0.049072265625, 0.05987548828125, -0.00604248046875, -0.03912353515625, -0.0179595947265625, 0.0296783447265625, 0.047943115234375, 0.00814056396484375, 0.020965576171875, 0.032562255859375, 0.004802703857421875, 0.02093505859375, -0.02911376953125, -0.005443572998046875, -0.0419921875, -0.04620361328125, -0.034271240234375, -0.0286712646484375, 0.053009033203125, -0.041351318359375, 0.058197021484375, -0.0037631988525390625, 0.04327392578125, 0.0111236572265625, 0.04229736328125, -0.01422119140625, 0.040008544921875, 0.00962066650390625, -0.0142669677734375, 0.00740814208984375, -0.015777587890625, -0.00887298583984375, 0.01885986328125, -0.03973388671875, -0.009613037109375, -0.0241851806640625, 0.046630859375, 0.021759033203125, 0.03289794921875, 0.046905517578125, -0.04876708984375, 0.048980712890625, -0.01128387451171875, 0.00861358642578125, -0.0031414031982421875, 0.005870819091796875, 0.0009317398071289062, 0.030242919921875, 0.0062713623046875, 0.0201873779296875, -0.00598907470703125, 0.052886962890625, 0.051605224609375, -0.0037975311279296875, -0.00392913818359375, -0.020782470703125, -0.09088134765625, -0.00809478759765625, 0.048828125, 0.02496337890625, 0.046051025390625, -0.03887939453125, -0.03448486328125, 0.0806884765625, -0.03717041015625, -0.01715087890625, 0.0038166046142578125, 0.037200927734375, 0.061614990234375, -0.00615692138671875, -0.0086212158203125, -0.0029354095458984375, -0.0855712890625, 0.0021686553955078125, 0.045928955078125, -0.04345703125, -0.02264404296875, 0.0096282958984375, -0.01030731201171875, 0.0103607177734375, -0.06915283203125, -0.00606536865234375, -0.0290679931640625, -0.0213470458984375, 0.0244598388671875, 0.0379638671875, 0.0276031494140625, -0.0498046875, 0.003662109375, 0.0322265625, 0.044097900390625, -0.0026111602783203125, -0.019866943359375, -0.05511474609375, 0.01224517822265625, -0.039825439453125, 0.04071044921875, 0.0240631103515625, -0.0303955078125, -0.024658203125, -0.0298614501953125, -0.0258941650390625, -0.005603790283203125, 0.038482666015625, -0.0654296875, 0.01192474365234375, -0.0130767822265625, 0.021759033203125, 0.031585693359375, 0.0458984375, 0.029937744140625, -0.007587432861328125, 0.0302886962890625, 0.00583648681640625, -0.0007071495056152344, 0.0264892578125, -0.0078887939453125, 0.0133209228515625, -0.01152801513671875, 0.0197296142578125, 0.04791259765625, 0.0075225830078125, -0.015899658203125, 0.00931549072265625, -0.0005283355712890625, -0.0157012939453125, 0.00978851318359375, -0.003948211669921875, 0.00667572021484375, -0.039154052734375, 0.03363037109375, 0.00323486328125, 0.03021240234375, 0.00672149658203125, -0.0249176025390625, 0.0098876953125, 0.004856109619140625, -0.0266571044921875, -0.046844482421875, 0.0135498046875, -0.0833740234375, -0.059478759765625, -0.0048675537109375, -0.08258056640625, 0.0285186767578125, 0.04168701171875, -0.02081298828125, 0.022705078125, -0.0024566650390625, -0.0122833251953125, -0.01396942138671875, -0.039886474609375, -0.0538330078125, -0.00824737548828125, -0.0009098052978515625, -0.007068634033203125, 0.020599365234375, -0.0284576416015625, -0.0816650390625, -0.037933349609375, 0.04559326171875, 0.0032711029052734375, 0.011810302734375, 0.0253448486328125, -0.016632080078125, 0.01483154296875, 0.0035610198974609375, -0.01922607421875, 0.0256195068359375, -0.020538330078125, -0.037750244140625, -0.04150390625, -0.03533935546875, -0.01922607421875, 0.036102294921875, 0.039093017578125, -0.0099334716796875, 0.01318359375, -0.046875, -0.032958984375, 0.01525115966796875, -0.02886962890625, 0.050140380859375, 0.0352783203125, -0.036285400390625, 0.004863739013671875, 0.023162841796875, 0.01383209228515625, 0.0210723876953125, 0.038726806640625, -0.030731201171875, 0.0338134765625, -0.021392822265625, -0.004940032958984375, -0.0660400390625, 0.0228729248046875, -0.01000213623046875, 0.0176544189453125, 0.0298004150390625, 0.0184783935546875, 0.0219573974609375, 0.0034542083740234375, -0.00791168212890625, -0.022918701171875, 0.02984619140625, -0.09759521484375, -0.024261474609375, -0.052459716796875, 0.0076751708984375, 0.002933502197265625, 0.053558349609375, -0.0275726318359375, -0.00502777099609375, 0.0023040771484375, 0.00569915771484375, 0.016448974609375, -0.036163330078125, -0.0214996337890625, -0.02325439453125, -0.0633544921875, 0.0296630859375, 0.0225677490234375, -0.0211639404296875, -0.038238525390625, 0.0765380859375, -0.053131103515625, -0.01371002197265625, 0.025665283203125, -0.03924560546875, -0.011138916015625, 0.034393310546875, -0.054229736328125, 0.0020618438720703125, -0.02197265625, -0.04052734375, -0.07745361328125, -0.0090789794921875, -0.036041259765625, 0.02691650390625, 0.011474609375, -0.01514434814453125, 0.00402069091796875, 0.046783447265625, 0.026641845703125, 0.012237548828125, -0.01218414306640625, -0.01416778564453125, -0.024688720703125, -0.017303466796875, -0.0199432373046875, -0.0231170654296875, -0.03741455078125, -0.007503509521484375, -0.0207977294921875, 0.0310821533203125, 0.0010395050048828125, -0.0264434814453125, 0.0430908203125, -0.025054931640625, -0.04986572265625, -0.03753662109375, -0.01236724853515625, 0.0165252685546875, -0.01107025146484375, 0.0005846023559570312, -0.041259765625, -0.07672119140625, 0.02655029296875, 0.0090484619140625, -0.01364898681640625, 0.025360107421875, 0.04425048828125, 0.00804901123046875, -0.0173187255859375, -0.08648681640625, 0.00026702880859375, 0.04925537109375, -0.01229095458984375, 0.049560546875, 0.023193359375, -0.03857421875, 0.0858154296875, 0.024261474609375, -0.023040771484375, -0.00763702392578125, 0.059478759765625, -0.01335906982421875, -0.046539306640625, 0.026214599609375, -0.031768798828125, 0.0098419189453125, -0.0211029052734375, 0.005985260009765625, 0.0109710693359375, -0.010498046875, 0.0164947509765625, 0.033050537109375, -0.014434814453125, -0.0183868408203125, -0.07159423828125, 0.0222625732421875, -0.025604248046875, 0.005657196044921875, -0.026397705078125, 0.005077362060546875, 0.028411865234375, 0.0181427001953125, -0.0185546875, -0.04351806640625, -0.04278564453125, -0.01355743408203125, 0.0258941650390625, -0.054656982421875, -0.031402587890625, -0.0007071495056152344, -0.01016998291015625, 0.055572509765625, 0.02740478515625, -0.022674560546875, 0.0013103485107421875, -0.00007790327072143555, 0.030731201171875, 0.00838470458984375, -0.0170745849609375, 0.01407623291015625, 0.00399017333984375, 0.02740478515625, 0.01393890380859375, -0.034820556640625, 0.0181121826171875, -0.00537872314453125, -0.0154266357421875, 0.007495880126953125, -0.0271759033203125, 0.01482391357421875, -0.0022068023681640625, 0.0242767333984375, -0.00957489013671875, -0.02252197265625, 0.022796630859375, 0.0280303955078125, 0.00365447998046875, 0.0170745849609375, 0.00934600830078125, 0.00641632080078125, -0.00977325439453125, 0.0150909423828125, -0.030517578125, 0.004547119140625, -0.0012426376342773438, 0.0262298583984375, 0.0310821533203125, -0.002105712890625, 0.004993438720703125, -0.0142669677734375, -0.020263671875, 0.005283355712890625, -0.02325439453125, -0.0537109375, -0.0229034423828125, 0.0242462158203125, 0.021728515625, -0.0106048583984375, 0.0030155181884765625, -0.04241943359375, -0.07208251953125, -0.014801025390625, -0.0017805099487304688, 0.01013946533203125, -0.054931640625, -0.065673828125, 0.0258026123046875, -0.0024356842041015625, -0.023681640625, -0.031982421875, -0.03857421875, 0.00399017333984375, 0.004795074462890625, 0.051239013671875, -0.00753021240234375, 0.00600433349609375, -0.0084686279296875, -0.0216827392578125, 0.043365478515625, 0.0120849609375, 0.020172119140625, -0.007904052734375, -0.006122589111328125, -0.00630950927734375, -0.050018310546875, -0.042205810546875, -0.068115234375, -0.0390625, -0.045074462890625, 0.0293121337890625, -0.01290130615234375, -0.016448974609375, -0.02618408203125, -0.042633056640625, -0.0034027099609375, 0.0426025390625, 0.028045654296875, 0.009124755859375, -0.007343292236328125, 0.038665771484375, -0.0186004638671875, 0.01001739501953125, -0.0020084381103515625, 0.035980224609375, 0.038787841796875, -0.029876708984375, -0.002819061279296875, -0.032623291015625, 0.00698089599609375, -0.0065765380859375, 0.016021728515625, 0.00617218017578125, 0.033905029296875, -0.0019702911376953125, 0.00000762939453125, 0.0054931640625, 0.0163421630859375, -0.023773193359375, 0.037841796875, 0.008392333984375, -0.0251922607421875, 0.046722412109375, -0.02777099609375, 0.02630615234375, -0.0226898193359375, -0.01139068603515625, 0.0421142578125, -0.046783447265625, 0.0180511474609375, 0.054443359375, -0.00988006591796875, 0.04132080078125, 0.0615234375, -0.019287109375, 0.0235595703125, 0.018829345703125, 0.00434112548828125, 0.031585693359375, -0.00905609130859375, -0.0094146728515625, 0.0242919921875, 0.034515380859375, 0.005725860595703125, -0.01525115966796875, 0.0007405281066894531, -0.02008056640625, 0.040008544921875, 0.058319091796875, 0.0877685546875, -0.08123779296875, 0.0172882080078125, 0.0263824462890625, -0.01727294921875, 0.085205078125, 0.0210113525390625, -0.0214080810546875, -0.06475830078125, 0.0283966064453125, -0.032989501953125, 0.0172271728515625, 0.01006317138671875, 0.0021953582763671875, -0.01812744140625, 0.01332855224609375, -0.01076507568359375, -0.012115478515625, 0.032958984375, -0.048248291015625, -0.0220947265625, -0.00015604496002197266, -0.02734375, -0.01175689697265625, 0.004970550537109375, -0.017242431640625, -0.06988525390625, -0.004608154296875, -0.043121337890625, -0.0061187744140625, 0.0142364501953125, -0.026885986328125, -0.01375579833984375, 0.07415771484375, -0.06683349609375, 0.06805419921875, 0.047332763671875, -0.034454345703125, 0.00681304931640625, -0.035919189453125, 0.01035308837890625, 0.0269317626953125, -0.0298919677734375, 0.035675048828125, 0.00384521484375, -0.0248565673828125, -0.0185089111328125, -0.03131103515625, 0.057708740234375, -0.01143646240234375, -0.033203125, 0.0218658447265625, 0.0006937980651855469, -0.0197601318359375, -0.034576416015625, 0.03778076171875, -0.06768798828125, -0.029388427734375, -0.00885772705078125, -0.0360107421875, -0.028472900390625, -0.033111572265625, -0.050140380859375, 0.1082763671875, 0.01300811767578125, 0.0008802413940429688, 0.000013530254364013672, 0.05206298828125, -0.045623779296875, 0.0279693603515625, 0.01134490966796875, 0.016998291015625, -0.039031982421875, 0.06365966796875, -0.00885772705078125, -0.009002685546875, 0.038604736328125, 0.049957275390625, 0.0241851806640625, 0.0067138671875, -0.0015439987182617188, -0.005764007568359375, 0.0293731689453125, 0.040313720703125, -0.0015993118286132812, 0.0024013519287109375, 0.01042938232421875, 0.0232086181640625, 0.032257080078125, -0.0457763671875, 0.0177001953125, -0.015625, 0.0026645660400390625, 0.0355224609375, 0.017822265625, 0.0274200439453125, 0.024017333984375, -0.00516510009765625, 0.001712799072265625, -0.00035119056701660156, 0.0208587646484375, -0.032928466796875, -0.01131439208984375, 0.0273895263671875, -0.02593994140625, 0.020538330078125, 0.009735107421875, -0.0179901123046875, 0.0239410400390625, -0.01078033447265625, 0.00611114501953125, 0.0222015380859375, 0.0149078369140625, 0.0285491943359375, 0.031402587890625, 0.01282501220703125, 0.05126953125, -0.0081634521484375, -0.005123138427734375, 0.0108642578125, 0.014801025390625, -0.0239105224609375, 0.03509521484375, 0.033203125, 0.013336181640625, -0.0206451416015625, -0.00780487060546875, -0.0004734992980957031, -0.007843017578125, 0.03961181640625, -0.0249786376953125, 0.053466796875, -0.0191802978515625, -0.0193939208984375, -0.006710052490234375, -0.0161590576171875, 0.005374908447265625, 0.0074310302734375, 0.00026106834411621094, 0.020111083984375, 0.006099700927734375, -0.006927490234375, -0.00890350341796875, -0.0253753662109375, 0.012481689453125, -0.0201568603515625, -0.0009822845458984375, 0.004489898681640625, 0.05902099609375, 0.03192138671875, -0.005718231201171875, 0.00732421875, 0.01216888427734375, 0.016571044921875, -0.005054473876953125, 0.01007080078125, 0.0037994384765625, 0.0091094970703125, -0.0413818359375, 0.07061767578125, 0.05828857421875, 0.04632568359375, -0.01041412353515625, -0.029876708984375, 0.0310211181640625, -0.0439453125, -0.033721923828125, -0.036895751953125, -0.032623291015625, 0.018096923828125, -0.0007824897766113281, 0.00359344482421875, -0.005977630615234375, 0.0272064208984375, 0.0005717277526855469, -0.06976318359375, 0.018951416015625, -0.06317138671875, 0.023162841796875, 0.0171051025390625, 0.00385284423828125, 0.017669677734375, -0.025360107421875, -0.0216217041015625, 0.0357666015625, 0.00046443939208984375, -0.0201263427734375, 0.0161590576171875, -0.04180908203125, 0.0633544921875, -0.039337158203125, -0.01055908203125, 0.017974853515625, -0.0229644775390625, 0.0140228271484375, -0.00308990478515625, -0.01558685302734375, -0.0247344970703125, -0.043609619140625, -0.0106048583984375, -0.012451171875, 0.027496337890625, 0.02081298828125, 0.06927490234375, 0.00014019012451171875, 0.0163116455078125, -0.003917694091796875, 0.049560546875, -0.0645751953125, -0.025146484375, 0.009613037109375, -0.035308837890625, 0.0134124755859375, 0.0172882080078125, -0.08502197265625, 0.00749969482421875, 0.03985595703125, 0.0229034423828125, 0.05621337890625, 0.01290130615234375, 0.0103759765625, -0.053619384765625, -0.01122283935546875, -0.0213775634765625, -0.048065185546875, -0.0210418701171875, 0.01215362548828125, 0.006732940673828125, 0.0252685546875, -0.00789642333984375, 0.0260162353515625, 0.00875091552734375, 0.0098724365234375, 0.01129150390625, -0.002155303955078125, 0.01357269287109375, 0.0235595703125, -0.03125, 0.0024623870849609375, 0.055694580078125, -0.0087738037109375, 0.0203094482421875, 0.01418304443359375, 0.04742431640625, 0.011749267578125, -0.020965576171875, 0.005767822265625, -0.01413726806640625, 0.01107025146484375, -0.040252685546875, 0.009857177734375, -0.0134429931640625, 0.006938934326171875, 0.014617919921875, -0.0126495361328125, -0.0309600830078125, -0.050567626953125, -0.0063629150390625, 0.02825927734375, -0.0419921875, -0.0269927978515625, -0.07977294921875, 0.005504608154296875, 0.032745361328125, 0.024810791015625, -0.091064453125, 0.0594482421875, -0.0198822021484375, 0.02252197265625, -0.0030841827392578125, 0.019744873046875, -0.0035266876220703125, -0.012481689453125, 0.00630950927734375, -0.0235443115234375, -0.00450897216796875, 0.06402587890625, 0.0491943359375, -0.015625, 0.0252227783203125, 0.0164794921875, -0.031768798828125, -0.01377105712890625, -0.01776123046875, 0.026123046875, -0.041107177734375, -0.0175628662109375, 0.0129852294921875, -0.01317596435546875, -0.031402587890625, -0.07080078125, 0.018157958984375, -0.0859375, -0.0284576416015625, 0.0269622802734375, -0.0234222412109375, 0.0000997781753540039, -0.038055419921875, -0.08172607421875, 0.0440673828125, 0.0024738311767578125, -0.037750244140625, -0.005817413330078125, -0.04638671875, -0.049102783203125, 0.10968017578125, 0.0164642333984375, -0.01534271240234375, -0.0176544189453125, 0.042205810546875, -0.0010614395141601562, 0.0726318359375, -0.004878997802734375, 0.0152740478515625, -0.0261993408203125, 0.005092620849609375, -0.0204925537109375, 0.003986358642578125, 0.0020084381103515625, 0.0170745849609375, -0.01078033447265625, 0.026336669921875, -0.038055419921875, -0.0269012451171875, -0.043426513671875, -0.019561767578125, 0.0022411346435546875, -0.064208984375, -0.04669189453125, -0.055938720703125, 0.058685302734375, 0.010345458984375, 0.0189056396484375, 0.011688232421875, 0.0043792724609375, -0.0172882080078125, -0.005764007568359375, -0.0184783935546875, 0.0011692047119140625, -0.09014892578125, -0.0599365234375, 0.046966552734375, -0.0230560302734375, -0.0224456787109375, 0.03125, -0.03955078125, 0.00022661685943603516, 0.012664794921875, -0.0309600830078125, -0.008758544921875, -0.021636962890625, 0.0426025390625, -0.0277099609375, -0.0257720947265625, -0.0251922607421875, 0.0384521484375, -0.0224609375, -0.044036865234375, -0.0111236572265625, -0.0262908935546875, 0.0067291259765625, 0.034881591796875, -0.006366729736328125, 0.0198516845703125, -0.022186279296875, -0.006801605224609375, 0.0126953125, 0.0156707763671875, -0.007770538330078125, 0.00506591796875, -0.0174407958984375, 0.035125732421875, -0.03033447265625, 0.033294677734375, -0.032501220703125, 0.046173095703125, -0.0292816162109375, 0.02593994140625, -0.0127716064453125, 0.0174713134765625, 0.00873565673828125, 0.0144500732421875, 0.0236968994140625, 0.01160430908203125, 0.0310821533203125, -0.002208709716796875, -0.0180206298828125, 0.0111846923828125, 0.01081085205078125, 0.004398345947265625 ]
2932ccd8c9d7ca441aabb7d5ab47ae7694cb9caf
Wordpress Stackexchange Q: Can I Prevent Enumeration of Usernames? Can I prevent enumeration of usernames on my wordpress site? I can see users at the moment using the WPScan tool. A: Not tested this out thoroughly, but I think it's preferable to remove underlying resource rather than try to build walls around it on web server level. So in WP terms that would be stopping it from processing author-related query variables. if ( ! is_admin() ) { add_filter( 'query_vars', function ( $public_query_vars ) { foreach ( array( 'author', 'author_name' ) as $var ) { $key = array_search( $var, $public_query_vars ); if ( false !== $key ) { unset( $public_query_vars[$key] ); } } return $public_query_vars; } ); } PS note that this will kill author archives entirely, which might or might not be appropriate paranoia level :)
Q: Can I Prevent Enumeration of Usernames? Can I prevent enumeration of usernames on my wordpress site? I can see users at the moment using the WPScan tool. A: Not tested this out thoroughly, but I think it's preferable to remove underlying resource rather than try to build walls around it on web server level. So in WP terms that would be stopping it from processing author-related query variables. if ( ! is_admin() ) { add_filter( 'query_vars', function ( $public_query_vars ) { foreach ( array( 'author', 'author_name' ) as $var ) { $key = array_search( $var, $public_query_vars ); if ( false !== $key ) { unset( $public_query_vars[$key] ); } } return $public_query_vars; } ); } PS note that this will kill author archives entirely, which might or might not be appropriate paranoia level :) A: You can use an .htaccess rewrite rule to prevent this disclosure, but you should also be sure to use nicknames to avoid disclosing usernames in parsable content as described by EAMann. The following blog describes how to do it but has a typo in the rewrite rule: http://www.question-defense.com/2012/03/20/block-wordpress-user-enumeration-secure-wordpress-against-hacking The correct rule should also remove the query string from the rewritten URL, or else you'll still disclose the username. It should look like this: # Stop wordpress username enumeration vulnerability RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ^/?author=([0-9]*) RewriteRule ^(.*)$ http://yoursite.com/somepage/? [L,R=301] Working well for us. A: A simple solution I use in a .htaccess: RewriteCond %{REQUEST_URI} !^/wp-admin [NC] RewriteCond %{QUERY_STRING} author=\d RewriteRule ^ - [L,R=403] It is similar to @jptsetme’s answer, but it works even when the query string is /?dummy&author=5, and the search pattern for RewriteRule is very fast: You often see a capture ([0-9]*) in regular expressions for this. But there is no need to waste memory for the capture when you don't use the captured expression, and a match for the first character is enough, because you don't want to accept author=1b. Update 20.04.2017 I'm seeing more "broken" requests from people who are even too stupid to run a simple scan. The requested URLs look like this: /?author={num:2} So you could extend the rule above to: RewriteCond %{REQUEST_URI} !^/wp-admin [NC] RewriteCond %{QUERY_STRING} ^author=\d+ [NC,OR] RewriteCond %{QUERY_STRING} ^author=\{num RewriteRule ^ - [L,R=403] A: I wanted to add that you can do this on nginx too. Check: » Blocking WordPress User Enumeration on nginx - www.edwidget.name As a side note, I wanted to prevent username enumeration on my site hosted with WP Engine, which limits users' access to low level nginx config files. They do however, have a "Redirect Rules" section in their control panel which allows you to accomplish this. After some time I managed to figure out the best configuration: Redirect Name: // choose a description for the rewrite Domain: // you *must* select a domain; "All Domains" will *not* work here! Source: ^/$ Destination: /? Then you need to show the Advanced Settings panel... Match args: author=([0-9]*) Rewrite type: 301 Permanent Et voila, your usernames are safe[r]! A: You can't. The WPScan tool is an automated utility that takes advantage of WordPress' friendly URLs to determine usernames. It will loop through the first 10 possible IDs for authors and check the Location header on the HTTP response to find a username. Using http://mysite.url for example ... WPScan will check http://mysite.url/?author=1. If your site is using pretty permalinks, it will return a 301 redirect with a Location header of http://mysite.url/author/username. If your site isn't using pretty permalinks, it will return a status of 200 (OK) instead, so WPScan will check the feed for the string "posts by username" and extract the username. What you can do First of all, just because someone can guess your username, doesn't mean your site is insecure. And there is really no way you can prevent someone from parsing your site in such a way. However ... If you are really concerned about this, I would recommend doing two things: * *Turn off pretty permalinks. This will force WPScan and similar tools to parse the content of your site for usernames rather than relying on the URL. *Force users to set a different nickname. In the absence of a username in the URL, scanning tools will search for "posts by username" in the feed/post content instead. If you aren't putting usernames out there, then they can't be nabbed. Another alternative is to change your author permalink rewrites. There are several ways you can do this, and you can probably find a few on this site as well. A: I have completely blocked user enumeration from WPScan by adding the following in htaccess # Stop wordpress username enumeration vulnerability RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ^/?author=([0-9]*) RewriteRule ^(.*)$ http://yourdomain.com [L,R=301] RewriteCond %{QUERY_STRING} author=d RewriteRule ^ /? [L,R=301] My professional opinion as a penetration tester for a gov't agency... it is ALWAYS worth making it harder to enumerate information about your website. Few of you will have a website that rises above the google, script kiddie hackers. We are talking about layered security and with each layer, you add time and complexity to a penetration attempt. Each layer also adds to the skillset required of the hacker. There are a few really good application firewalls available on WP. Look for those that can block IP addresses that have repeated user login attempts or 404. The idea is for your firewall to automatically block IP's that scan your website for pages that don't exist or attempt to repeatedly sign onto your site. A good feature also includes XSS and SQL Injection blocking capabilities. Consider using, All In One WP Security from Tips and Tricks HQ, Peter, Ruhul, Ivy. It has a decent interface and capability set for the novice and expert alike. A: Instead of the .htaccess route, another alternative is to add the following code to your child theme's functions.php: # Redirect author page to homepage add_action( 'template_redirect', 'wpse_46469_author_page' ); function wpse_46469_author_page() { # If the author archive page is being accessed, redirect to homepage if ( is_author() ) { wp_safe_redirect( get_home_url(), 301 ); exit; } } Additionally, you can change the default author links that are added to the username of each page to something else (such as the homepage), by using the following: # Replace author URL with the homepage add_filter( 'author_link', 'wpse_46469_author_link' ); function wpse_46469_author_link() { # Return homepage URL return home_url(); } A: I know this is an old post, but for future references I would like to add my solution as well. This is only a snippet to put in the functions.php of your theme. It will leave everything in place and working, even the author archives, but it kills out the bad enumeration requests. if (!is_admin()) { if( preg_match('/author=([0-9]*)/i', $_SERVER['QUERY_STRING']) ) { add_filter( 'query_vars', 'iside_remove_author_from_query_vars' ); } add_filter('redirect_canonical', 'iside_remove_author_from_redirects', 10, 2); } function iside_remove_author_from_redirects($redirect, $request) { if( !is_admin() && preg_match('/author=([0-9]*)/i', $_SERVER['QUERY_STRING']) ) { add_filter( 'query_vars', 'iside_remove_author_from_query_vars' ); } return $redirect; } function iside_remove_author_from_query_vars( $query_vars ) { if( !is_admin() ) { foreach( array( 'author', 'author_name' ) as $var ) { $key = array_search( $var, $query_vars ); if ( false !== $key ) { unset( $query_vars[$key] ); } } } return $query_vars; } What it does: * *it scans the URL for something like: author=1 *When found it will remove the author variable from the query vars so it will not be queried. If you use permalinks, this will leave the author archives in tact. Also, if the URL will be something like: /dummy?author=1 this will just show the page for /dummy. Thanks to Rarst's answer to this question and https://perishablepress.com/stop-user-enumeration-wordpress/ A: I want to post my own vision: RewriteCond %{REQUEST_URI} ^/$ RewriteCond %{QUERY_STRING} ^author= [NC] RewriteRule (.*) $1? [L] First line detects only home page. I'll explain why. This "user-enumeration" feature works only on home page, so no need to rewrite all urls. Next we look for author= query string. It's obvious. Finally, we just show original page without any blocks, redirects (301, 302) or bans (403). Shouldn't it act like a page with any other useless parameter?
wordpress
{ "language": "en", "length": 1331, "provenance": "stackexchange_00019.jsonl.gz:418312", "question_score": "34", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46469" }
[ 0.06658935546875, 0.0143585205078125, 0.018585205078125, -0.016021728515625, 0.0141143798828125, -0.028594970703125, 0.052001953125, -0.042572021484375, 0.01108551025390625, 0.048065185546875, -0.01125335693359375, 0.0110931396484375, 0.046722412109375, -0.00397491455078125, -0.01500701904296875, -0.0093994140625, 0.00955963134765625, -0.0219268798828125, 0.00589752197265625, -0.01276397705078125, 0.0255126953125, -0.0269012451171875, 0.042022705078125, 0.0019207000732421875, 0.006561279296875, -0.026123046875, 0.1259765625, -0.033935546875, 0.0272674560546875, -0.0243988037109375, 0.01497650146484375, -0.042724609375, -0.023468017578125, 0.061309814453125, -0.044158935546875, 0.01453399658203125, -0.01149749755859375, 0.042694091796875, 0.044708251953125, -0.0282440185546875, 0.0235595703125, -0.01540374755859375, -0.0207366943359375, 0.0121612548828125, -0.0197601318359375, -0.03338623046875, 0.016082763671875, -0.029388427734375, -0.0013360977172851562, 0.01047515869140625, 0.00485992431640625, 0.033477783203125, 0.01305389404296875, 0.0190582275390625, -0.015716552734375, -0.003993988037109375, 0.0298004150390625, -0.04046630859375, 0.028717041015625, -0.047515869140625, -0.016815185546875, -0.00981903076171875, 0.035430908203125, 0.019622802734375, 0.040130615234375, -0.01485443115234375, 0.0169830322265625, 0.05316162109375, -0.046173095703125, 0.0206298828125, 0.0226593017578125, -0.032257080078125, -0.01806640625, -0.0204925537109375, -0.04254150390625, -0.001804351806640625, -0.0011262893676757812, -0.0751953125, 0.01270294189453125, 0.00506591796875, -0.01534271240234375, -0.01447296142578125, -0.07366943359375, 0.03045654296875, -0.00647735595703125, 0.04840087890625, -0.0163116455078125, -0.0164031982421875, -0.012603759765625, -0.00211334228515625, -0.007904052734375, -0.0298309326171875, -0.01238250732421875, 0.04107666015625, 0.009521484375, 0.0040130615234375, 0.0489501953125, 0.061065673828125, -0.0257110595703125, -0.031524658203125, 0.0005965232849121094, -0.0189208984375, -0.031768798828125, -0.00782012939453125, -0.007465362548828125, 0.049346923828125, -0.00443267822265625, 0.045989990234375, 0.036102294921875, 0.035369873046875, 0.025909423828125, -0.041290283203125, -0.05517578125, -0.038604736328125, -0.01497650146484375, 0.043487548828125, -0.048309326171875, -0.0049285888671875, 0.007015228271484375, 0.0020885467529296875, 0.01274871826171875, 0.00380706787109375, -0.0208740234375, 0.0254669189453125, 0.0233154296875, -0.00269317626953125, -0.0295562744140625, 0.020416259765625, 0.0022945404052734375, 0.039947509765625, -0.035430908203125, -0.01666259765625, 0.0011348724365234375, 0.01641845703125, 0.01029205322265625, -0.03802490234375, 0.03900146484375, -0.0030765533447265625, -0.0152587890625, 0.020477294921875, 0.0025234222412109375, -0.0380859375, -0.02984619140625, -0.0177764892578125, -0.0017118453979492188, 0.01091766357421875, 0.01094818115234375, 0.0229339599609375, 0.0016632080078125, 0.0026035308837890625, -0.021728515625, -0.020660400390625, 0.0164794921875, 0.01141357421875, 0.01197052001953125, 0.0034618377685546875, 0.032867431640625, -0.0156402587890625, -0.033477783203125, -0.00846099853515625, -0.00797271728515625, -0.01305389404296875, -0.01416015625, -0.01042938232421875, -0.030364990234375, -0.0167083740234375, 0.02880859375, 0.00690460205078125, 0.0264892578125, 0.001094818115234375, 0.01551055908203125, -0.004505157470703125, 0.048919677734375, 0.04345703125, 0.00913238525390625, 0.02899169921875, -0.0146484375, 0.0182952880859375, 0.0016565322875976562, 0.06610107421875, 0.0184326171875, -0.025634765625, 0.03314208984375, -0.0028018951416015625, -0.07293701171875, 0.053619384765625, -0.00745391845703125, 0.04656982421875, 0.0213775634765625, -0.0224609375, 0.0814208984375, 0.032501220703125, -0.027801513671875, -0.001209259033203125, 0.016448974609375, -0.03497314453125, 0.034942626953125, -0.0193023681640625, 0.0280303955078125, -0.0035953521728515625, 0.057464599609375, -0.0090484619140625, 0.00530242919921875, -0.0518798828125, -0.06768798828125, -0.01224517822265625, -0.017608642578125, 0.0279388427734375, -0.0006618499755859375, 0.023834228515625, 0.025909423828125, 0.0114288330078125, -0.0406494140625, 0.0221710205078125, -0.0089263916015625, -0.009979248046875, -0.025146484375, 0.0035037994384765625, 0.021453857421875, -0.003849029541015625, 0.048797607421875, 0.016510009765625, 0.045318603515625, -0.0104217529296875, 0.0176544189453125, -0.041748046875, -0.0203704833984375, -0.036834716796875, 0.0030422210693359375, -0.035003662109375, 0.0103302001953125, 0.054595947265625, 0.01238250732421875, 0.0404052734375, 0.002166748046875, -0.005519866943359375, 0.0116119384765625, -0.0595703125, 0.0202789306640625, 0.041351318359375, 0.037567138671875, -0.01800537109375, -0.0291595458984375, -0.0287628173828125, 0.0067138671875, 0.00015091896057128906, 0.02557373046875, -0.03363037109375, 0.005462646484375, 0.037200927734375, -0.02099609375, 0.020904541015625, 0.01983642578125, -0.07952880859375, 0.01025390625, 0.056182861328125, -0.0197906494140625, 0.0247344970703125, -0.00997161865234375, -0.018585205078125, 0.004425048828125, -0.044189453125, 0.00600433349609375, -0.02935791015625, 0.00428009033203125, -0.057037353515625, -0.0198211669921875, -0.026031494140625, -0.00994873046875, -0.0271453857421875, 0.0203704833984375, -0.047821044921875, 0.0012540817260742188, -0.01983642578125, 0.012420654296875, -0.0263824462890625, -0.01515960693359375, 0.0134124755859375, 0.01593017578125, -0.01500701904296875, 0.006076812744140625, 0.023590087890625, 0.005664825439453125, -0.0023517608642578125, 0.003269195556640625, -0.0040435791015625, 0.023284912109375, 0.019134521484375, -0.048187255859375, -0.042327880859375, -0.00516510009765625, 0.038726806640625, -0.01129913330078125, 0.02020263671875, -0.02203369140625, -0.0057373046875, 0.01320648193359375, -0.02288818359375, 0.0237579345703125, -0.0165863037109375, 0.0660400390625, 0.074462890625, 0.0009541511535644531, 0.0131378173828125, -0.0023021697998046875, -0.034881591796875, -0.029541015625, -0.00475311279296875, -0.013885498046875, 0.010009765625, -0.07952880859375, 0.027496337890625, 0.01435089111328125, 0.035400390625, 0.0297088623046875, -0.0210418701171875, 0.0271148681640625, 0.02972412109375, -0.00476837158203125, -0.01065826416015625, -0.024200439453125, -0.0374755859375, 0.0117340087890625, -0.0198211669921875, -0.0018796920776367188, -0.00867462158203125, 0.0052642822265625, 0.0084228515625, -0.023345947265625, -0.050384521484375, -0.06341552734375, -0.0830078125, -0.0545654296875, 0.0147247314453125, 0.0034027099609375, -0.004917144775390625, 0.01140594482421875, 0.05706787109375, 0.005157470703125, -0.040496826171875, 0.003448486328125, -0.024871826171875, -0.004314422607421875, 0.007152557373046875, 0.0193023681640625, -0.01212310791015625, -0.01708984375, 0.0128173828125, -0.0101776123046875, -0.005329132080078125, 0.0079498291015625, -0.0258331298828125, 0.0325927734375, -0.0015964508056640625, 0.0550537109375, 0.03375244140625, -0.057891845703125, 0.027191162109375, 0.0614013671875, -0.03668212890625, -0.040618896484375, 0.03619384765625, -0.028900146484375, 0.00365447998046875, 0.0165863037109375, -0.0292510986328125, -0.0001691579818725586, 0.01458740234375, 0.040985107421875, 0.0069732666015625, -0.0672607421875, 0.021331787109375, 0.043212890625, 0.03118896484375, 0.07659912109375, 0.018402099609375, 0.0169525146484375, -0.040283203125, 0.0204620361328125, -0.0006747245788574219, -0.0474853515625, -0.034210205078125, -0.03460693359375, -0.01139068603515625, -0.03302001953125, 0.055908203125, -0.0076446533203125, -0.0077056884765625, -0.00315093994140625, -0.025238037109375, 0.01568603515625, 0.07086181640625, -0.01548004150390625, -0.0304718017578125, 0.00846099853515625, 0.0230712890625, -0.044036865234375, -0.06610107421875, -0.0009326934814453125, -0.0310516357421875, -0.03350830078125, -0.0130615234375, -0.0026302337646484375, -0.04034423828125, -0.01178741455078125, -0.0165863037109375, -0.0270843505859375, -0.00783538818359375, 0.0206451416015625, -0.0164337158203125, 0.038421630859375, -0.05718994140625, 0.0212249755859375, -0.057891845703125, 0.00846099853515625, -0.0276031494140625, -0.10784912109375, -0.04815673828125, 0.0021495819091796875, 0.09552001953125, -0.0159149169921875, 0.006572723388671875, -0.042205810546875, 0.062225341796875, -0.002410888671875, 0.002361297607421875, 0.0273284912109375, -0.00029778480529785156, 0.027618408203125, 0.0241546630859375, 0.014312744140625, -0.00555419921875, -0.01148223876953125, -0.01163482666015625, -0.006778717041015625, -0.004734039306640625, -0.02557373046875, -0.047119140625, 0.005130767822265625, -0.01082611083984375, -0.042694091796875, -0.042694091796875, -0.0215911865234375, 0.00446319580078125, 0.0107269287109375, -0.01439666748046875, -0.052337646484375, -0.04852294921875, 0.042327880859375, 0.0010862350463867188, -0.0086212158203125, 0.0016460418701171875, 0.058624267578125, 0.01099395751953125, -0.0189208984375, -0.0277862548828125, -0.006374359130859375, 0.029632568359375, -0.016845703125, 0.036468505859375, 0.0009946823120117188, -0.0264892578125, 0.0679931640625, -0.01116180419921875, -0.001476287841796875, -0.007549285888671875, 0.021728515625, 0.014312744140625, -0.015380859375, 0.0053558349609375, 0.0116729736328125, 0.0172119140625, 0.019561767578125, 0.014556884765625, -0.0341796875, 0.0300750732421875, 0.0283355712890625, -0.00899505615234375, -0.003314971923828125, -0.011199951171875, -0.031097412109375, 0.01332855224609375, -0.0889892578125, -0.00556182861328125, -0.005588531494140625, 0.00798797607421875, -0.03131103515625, -0.003124237060546875, -0.0112152099609375, 0.0092315673828125, -0.0202789306640625, 0.01393890380859375, 0.034637451171875, -0.04742431640625, -0.00994110107421875, 0.00994110107421875, -0.0200042724609375, 0.097412109375, 0.01202392578125, -0.048797607421875, 0.0200347900390625, -0.0199127197265625, 0.0079345703125, 0.0253753662109375, 0.018035888671875, 0.04571533203125, 0.03851318359375, -0.0005059242248535156, -0.0019025802612304688, -0.0167388916015625, 0.042999267578125, -0.041656494140625, 0.06658935546875, -0.0018911361694335938, 0.0027446746826171875, 0.00021886825561523438, 0.06378173828125, -0.05035400390625, 0.043212890625, 0.007549285888671875, 0.034332275390625, 0.041259765625, 0.00873565673828125, 0.027618408203125, -0.01148223876953125, 0.0041656494140625, -0.02496337890625, 0.01276397705078125, -0.01416015625, 0.0166015625, 0.0135955810546875, 0.00969696044921875, 0.032806396484375, -0.01160430908203125, -0.0081329345703125, -0.03240966796875, -0.005336761474609375, -0.004589080810546875, -0.0435791015625, -0.00612640380859375, -0.042999267578125, -0.061676025390625, 0.017120361328125, -0.01084136962890625, 0.0172882080078125, -0.053863525390625, -0.00424957275390625, -0.0426025390625, 0.036468505859375, -0.034881591796875, -0.03704833984375, -0.0286407470703125, -0.0191650390625, -0.0231475830078125, -0.0038700103759765625, 0.00527191162109375, -0.003082275390625, -0.02239990234375, -0.00911712646484375, 0.02197265625, -0.00986480712890625, 0.0218353271484375, -0.023712158203125, 0.0010366439819335938, 0.01328277587890625, 0.01035308837890625, 0.05712890625, 0.022796630859375, -0.027008056640625, -0.00559234619140625, -0.06243896484375, -0.010009765625, -0.01042938232421875, -0.0212554931640625, -0.015106201171875, -0.01071929931640625, 0.026824951171875, -0.00447845458984375, -0.0066680908203125, -0.035980224609375, 0.041168212890625, 0.0246124267578125, -0.007114410400390625, 0.0105743408203125, -0.052093505859375, 0.038116455078125, 0.04608154296875, 0.022552490234375, -0.01018524169921875, 0.024078369140625, 0.041259765625, -0.0252532958984375, 0.00914764404296875, -0.041015625, -0.0230560302734375, 0.00652313232421875, -0.00832366943359375, -0.006725311279296875, 0.007232666015625, -0.01094818115234375, 0.01102447509765625, 0.00545501708984375, 0.0235748291015625, -0.0164642333984375, -0.0435791015625, -0.01275634765625, -0.02783203125, -0.007904052734375, 0.023040771484375, 0.058746337890625, -0.03643798828125, -0.046966552734375, 0.01305389404296875, 0.0258026123046875, 0.0192413330078125, -0.010223388671875, -0.0185394287109375, 0.010101318359375, 0.013885498046875, 0.0254669189453125, 0.0477294921875, 0.0009946823120117188, 0.04931640625, 0.00594329833984375, -0.00472259521484375, -0.01100921630859375, -0.037567138671875, 0.066650390625, 0.0119781494140625, -0.0178680419921875, 0.06414794921875, -0.044097900390625, -0.0153045654296875, 0.060577392578125, 0.0306854248046875, -0.094970703125, 0.0018053054809570312, -0.006084442138671875, 0.026153564453125, 0.005466461181640625, 0.0007624626159667969, -0.007373809814453125, -0.0122528076171875, 0.0667724609375, -0.033203125, -0.00766754150390625, 0.035614013671875, -0.015838623046875, 0.00023305416107177734, -0.0272369384765625, 0.01306915283203125, 0.0170745849609375, 0.0189971923828125, -0.00011587142944335938, -0.0020236968994140625, 0.019134521484375, -0.026153564453125, 0.0026397705078125, 0.02874755859375, -0.007663726806640625, -0.06866455078125, 0.0160064697265625, -0.0305633544921875, -0.00601959228515625, -0.0030841827392578125, 0.00925445556640625, 0.031982421875, 0.0170745849609375, 0.01348114013671875, -0.024658203125, 0.0039825439453125, -0.03070068359375, 0.023223876953125, -0.0455322265625, -0.044281005859375, 0.033050537109375, -0.0127410888671875, 0.0216064453125, 0.01131439208984375, -0.0120697021484375, -0.00787353515625, 0.004688262939453125, 0.0694580078125, -0.00539398193359375, -0.042327880859375, 0.031463623046875, -0.00931549072265625, -0.01971435546875, 0.01312255859375, -0.0045318603515625, -0.024017333984375, -0.03326416015625, 0.0137481689453125, -0.06903076171875, 0.03436279296875, -0.0014057159423828125, -0.075927734375, 0.026275634765625, 0.01288604736328125, 0.040191650390625, 0.01044464111328125, -0.004795074462890625, -0.01230621337890625, -0.0218505859375, -0.027069091796875, 0.061767578125, 0.0260467529296875, 0.06768798828125, -0.02142333984375, -0.0225830078125, 0.050201416015625, 0.047943115234375, 0.07293701171875, 0.01806640625, 0.006267547607421875, -0.0222320556640625, 0.00400543212890625, 0.012237548828125, -0.055419921875, 0.024383544921875, 0.011932373046875, 0.0206451416015625, 0.050689697265625, -0.035003662109375, 0.0406494140625, -0.04852294921875, 0.00737762451171875, 0.0171661376953125, 0.00698089599609375, 0.00754547119140625, -0.01474761962890625, -0.019866943359375, -0.03204345703125, -0.006931304931640625, 0.01326751708984375, 0.01198577880859375, 0.006877899169921875, 0.059051513671875, 0.024322509765625, -0.00899505615234375, -0.0271148681640625, -0.023529052734375, 0.0416259765625, 0.0018186569213867188, 0.0071563720703125, 0.0543212890625, 0.0200958251953125, 0.0268402099609375, 0.032073974609375, 0.01476287841796875, 0.0174560546875, 0.00411224365234375, 0.0156707763671875, 0.00662994384765625, 0.028656005859375, -0.043487548828125, -0.0501708984375, 0.0239410400390625, 0.03826904296875, -0.006591796875, -0.04791259765625, -0.0008821487426757812, -0.01181793212890625, 0.002384185791015625, -0.0015125274658203125, -0.0016279220581054688, 0.036529541015625, 0.064453125, -0.0186004638671875, 0.005641937255859375, 0.026519775390625, 0.030181884765625, -0.006153106689453125, -0.003009796142578125, -0.041595458984375, 0.018035888671875, -0.031341552734375, -0.022308349609375, -0.001079559326171875, 0.04180908203125, 0.053741455078125, 0.0031108856201171875, -0.0021495819091796875, -0.0262603759765625, -0.027496337890625, 0.01068115234375, -0.0281829833984375, 0.042633056640625, -0.056365966796875, -0.00311279296875, -0.024688720703125, 0.043212890625, 0.01434326171875, -0.01297760009765625, 0.041900634765625, 0.019256591796875, -0.064697265625, -0.01403045654296875, 0.048675537109375, -0.029510498046875, -0.02880859375, -0.024078369140625, 0.01300811767578125, 0.042236328125, 0.01148223876953125, -0.01248931884765625, 0.040771484375, 0.034271240234375, -0.009521484375, -0.045806884765625, 0.0045318603515625, -0.05926513671875, 0.0100555419921875, -0.0224609375, -0.007205963134765625, -0.00550079345703125, -0.10528564453125, -0.039031982421875, 0.019256591796875, -0.0006008148193359375, 0.0031566619873046875, 0.0228424072265625, -0.04168701171875, 0.049407958984375, -0.0182037353515625, -0.01885986328125, -0.014373779296875, 0.01837158203125, 0.00141143798828125, 0.01282501220703125, 0.019500732421875, -0.005245208740234375, -0.054534912109375, -0.0255584716796875, 0.008148193359375, 0.00746917724609375, -0.00913238525390625, 0.058807373046875, 0.006305694580078125, -0.01111602783203125, -0.0360107421875, -0.0103607177734375, -0.041351318359375, -0.0299530029296875, 0.042755126953125, -0.03680419921875, -0.053741455078125, 0.01708984375, -0.077392578125, 0.034881591796875, -0.0228729248046875, 0.007541656494140625, 0.0362548828125, -0.0411376953125, 0.00981903076171875, 0.020721435546875, -0.00007808208465576172, -0.042999267578125, -0.0277557373046875, -0.0213775634765625, 0.0014142990112304688, -0.00240325927734375, -0.01392364501953125, -0.01436614990234375, 0.0232086181640625, 0.01739501953125, -0.034393310546875, 0.0200653076171875, -0.018646240234375, 0.0018138885498046875, 0.0159454345703125, 0.044586181640625, 0.02618408203125, -0.016265869140625, -0.037384033203125, 0.0005865097045898438, 0.00337982177734375, -0.02008056640625, -0.0258636474609375, -0.01428985595703125, -0.0015411376953125, 7.152557373046875e-7, 0.058837890625, 0.04656982421875, 0.002758026123046875, -0.050506591796875, 0.005558013916015625, -0.037933349609375, -0.042236328125, -0.03094482421875, -0.038238525390625, -0.01219940185546875, 0.01861572265625, -0.0224456787109375, -0.044921875, -0.035552978515625, -0.0025844573974609375, -0.00677490234375, 0.004669189453125, -0.06256103515625, 0.07061767578125, -0.0367431640625, -0.016998291015625, -0.043426513671875, 0.0127410888671875, 0.02056884765625, 0.02203369140625, -0.07611083984375, -0.0136260986328125, -0.0116424560546875, 0.0091400146484375, -0.0062255859375, 0.0006895065307617188, 0.0138397216796875, 0.01093292236328125, 0.0016632080078125, -0.00876617431640625, -0.0244293212890625, 0.0269622802734375, -0.0272674560546875, -0.00923919677734375, -0.0169219970703125, 0.0295562744140625, -0.0352783203125, -0.105224609375, 0.01343536376953125, -0.084716796875, 0.0004973411560058594, -0.0183258056640625, -0.004177093505859375, 0.0038242340087890625, -0.038604736328125, -0.07452392578125, 0.06121826171875, -0.0153656005859375, -0.0372314453125, -0.03948974609375, -0.0178375244140625, -0.0193023681640625, 0.003131866455078125, -0.00677490234375, -0.0258331298828125, -0.0303497314453125, 0.042022705078125, 0.0240631103515625, -0.01169586181640625, 0.03509521484375, -0.013427734375, -0.047576904296875, 0.00621795654296875, -0.00017631053924560547, -0.0031147003173828125, -0.015350341796875, 0.017974853515625, 0.034454345703125, 0.055694580078125, 0.0009331703186035156, 0.08990478515625, 0.015838623046875, -0.01337432861328125, -0.04254150390625, 0.006587982177734375, -0.0186920166015625, 0.0008549690246582031, 0.0633544921875, 0.1024169921875, 0.016082763671875, -0.0482177734375, -0.0164794921875, -0.0399169921875, 0.0235595703125, -0.028411865234375, 0.00287628173828125, -0.08599853515625, -0.030029296875, 0.033447265625, -0.00536346435546875, 0.020721435546875, -0.04315185546875, -0.030853271484375, -0.0165557861328125, -0.014556884765625, 0.01378631591796875, -0.0030059814453125, -0.039886474609375, -0.023956298828125, -0.01297760009765625, -0.07989501953125, 0.0032901763916015625, 0.036376953125, -0.0916748046875, -0.0304107666015625, -0.042144775390625, -0.017547607421875, -0.004863739013671875, 0.0401611328125, -0.0233917236328125, 0.0288238525390625, -0.0311737060546875, 0.031524658203125, -0.03363037109375, 0.044464111328125, 0.033111572265625, 0.049224853515625, -0.03143310546875, 0.032135009765625, 0.044189453125, 0.00443267822265625, -0.0299530029296875, -0.012939453125, -0.0237884521484375, -0.003936767578125, -0.005718231201171875, 0.0156707763671875, 0.0584716796875, -0.0203704833984375, 0.006580352783203125, 0.016693115234375, 0.0004925727844238281, -0.01358795166015625, -0.01212310791015625, -0.00457000732421875, 0.0164794921875, 0.0024509429931640625 ]
c86f939830d1cd7a05436ee57754c17a2ac0a2b6
Wordpress Stackexchange Q: dynamic page not indexed Im writting a plugin who makes dynamic pages with simple page template: http://domain.com/slug the url is rewriting so internally call to http://domain.com/index.php?pagename=users and works, but the problem is, how I can index it to make searches? Any ideas? A: Do you have at least have a link to the query url somewhere on your public pages ? Google does follow query parameters, so that will at least bring it to the crawlers attention. See http://googlewebmastercentral.blogspot.com.au/2011/07/improved-handling-of-urls-with.html (I almost have the opposite with my event/calendar plugin. google is paying almost too much attention to the pages and their date query parameters (moving forward in time etc). See notes on that here http://icalevents.com/4046-google-indexing-bandwidth-and-calendar-parameters/ ) Other good seo stuff will then help. Sitemaps etc Also see if you can improve the markup on the page - if about people, then maybe some people microdata will help google index the page .(my plugin's html does event rich snippets) see Rich snippets - People: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=99170 http://support.google.com/webmasters/bin/answer.py?hl=en&answer=146646
Q: dynamic page not indexed Im writting a plugin who makes dynamic pages with simple page template: http://domain.com/slug the url is rewriting so internally call to http://domain.com/index.php?pagename=users and works, but the problem is, how I can index it to make searches? Any ideas? A: Do you have at least have a link to the query url somewhere on your public pages ? Google does follow query parameters, so that will at least bring it to the crawlers attention. See http://googlewebmastercentral.blogspot.com.au/2011/07/improved-handling-of-urls-with.html (I almost have the opposite with my event/calendar plugin. google is paying almost too much attention to the pages and their date query parameters (moving forward in time etc). See notes on that here http://icalevents.com/4046-google-indexing-bandwidth-and-calendar-parameters/ ) Other good seo stuff will then help. Sitemaps etc Also see if you can improve the markup on the page - if about people, then maybe some people microdata will help google index the page .(my plugin's html does event rich snippets) see Rich snippets - People: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=99170 http://support.google.com/webmasters/bin/answer.py?hl=en&answer=146646
wordpress
{ "language": "en", "length": 165, "provenance": "stackexchange_00019.jsonl.gz:418329", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46541" }
[ 0.03546142578125, -0.0180511474609375, 0.0163726806640625, -0.0008301734924316406, -0.00395965576171875, -0.01971435546875, 0.054412841796875, -0.037384033203125, -0.0096588134765625, 0.008056640625, -0.0137481689453125, 0.007106781005859375, -0.05230712890625, -0.0239410400390625, -0.00864410400390625, -0.048553466796875, 0.00617218017578125, -0.0017709732055664062, -0.0018100738525390625, -0.024322509765625, -0.00542449951171875, -0.022064208984375, 0.0179901123046875, 0.00739288330078125, 0.041900634765625, 0.024505615234375, 0.069091796875, -0.007099151611328125, 0.060089111328125, 0.00864410400390625, 0.04547119140625, -0.0927734375, 0.038177490234375, -0.03277587890625, 0.055572509765625, 0.033905029296875, 0.0146636962890625, -0.0102081298828125, 0.0186614990234375, -0.0035495758056640625, 0.01013946533203125, -0.006771087646484375, 0.0098724365234375, 0.0137481689453125, 0.0219573974609375, -0.07940673828125, 0.052276611328125, -0.0592041015625, 0.0014390945434570312, -0.04339599609375, 0.006801605224609375, 0.031646728515625, 0.0236358642578125, -0.0501708984375, -0.00920867919921875, 0.02203369140625, 0.003070831298828125, -0.003692626953125, 0.0036487579345703125, -0.047149658203125, -0.00543975830078125, 0.0116424560546875, 0.039520263671875, 0.06512451171875, -0.03204345703125, -0.05572509765625, -0.0178680419921875, 0.02227783203125, 0.01666259765625, -0.0267791748046875, 0.0252227783203125, 0.036163330078125, -0.0308380126953125, 0.007110595703125, -0.00997161865234375, -0.015869140625, -0.00867462158203125, -0.048553466796875, -0.0029239654541015625, 0.0537109375, 0.0148468017578125, 0.01467132568359375, -0.058807373046875, -0.017425537109375, 0.01558685302734375, -0.00041604042053222656, -0.003936767578125, -0.0123138427734375, -0.0267181396484375, -0.020599365234375, -0.03741455078125, -0.010345458984375, -0.001678466796875, -0.015777587890625, -0.046600341796875, 0.0104217529296875, 0.03424072265625, 0.0921630859375, -0.00394439697265625, 0.007293701171875, 0.0048675537109375, -0.042388916015625, 0.0025844573974609375, -0.04913330078125, -0.01708984375, 0.004581451416015625, 0.0367431640625, 0.09722900390625, 0.045013427734375, 0.0146484375, 0.0176849365234375, 0.027191162109375, -0.0055999755859375, -0.002857208251953125, -0.050506591796875, 0.006214141845703125, -0.023101806640625, -0.04278564453125, -0.00775146484375, -0.0291900634765625, -0.00183868408203125, 0.035369873046875, -0.00420379638671875, -0.007625579833984375, -0.007015228271484375, 0.004604339599609375, -0.0006670951843261719, -0.03045654296875, 0.045654296875, -0.034149169921875, -0.033111572265625, 0.0192718505859375, -0.0019435882568359375, 0.024078369140625, -0.00870513916015625, 0.00946044921875, 0.01336669921875, -0.0601806640625, -0.0189208984375, 0.00922393798828125, -0.019256591796875, -0.003643035888671875, 0.0439453125, -0.0465087890625, -0.02142333984375, -0.0280914306640625, 0.0149688720703125, 0.06756591796875, -0.01454925537109375, -0.0194854736328125, -0.0018701553344726562, 0.0318603515625, 0.04534912109375, 0.00324249267578125, -0.004058837890625, -0.0298919677734375, 0.05706787109375, -0.05029296875, -0.0118865966796875, -0.046539306640625, 0.028228759765625, 0.0190582275390625, 0.02850341796875, 0.0127410888671875, -0.0026607513427734375, -0.05975341796875, -0.0281829833984375, -0.01181793212890625, 0.00958251953125, -0.00974273681640625, 0.00879669189453125, -0.00799560546875, -0.006946563720703125, 0.0222625732421875, 0.01904296875, 0.037261962890625, 0.002346038818359375, 0.0615234375, 0.01497650146484375, 0.04229736328125, 0.0241241455078125, -0.0228118896484375, 0.07989501953125, -0.0142059326171875, -0.03143310546875, 0.06805419921875, -0.004001617431640625, 0.03424072265625, -0.01514434814453125, -0.0097503662109375, 0.051239013671875, 0.049224853515625, -0.0311431884765625, 0.041168212890625, 0.05511474609375, -0.00982666015625, -0.01401519775390625, -0.0063018798828125, 0.00698089599609375, -0.07904052734375, -0.004451751708984375, 0.0050048828125, -0.0095062255859375, 0.00725555419921875, -0.004547119140625, -0.009246826171875, 0.00335693359375, 0.0160369873046875, 0.044952392578125, 0.043121337890625, -0.007091522216796875, -0.007701873779296875, -0.05059814453125, 0.057830810546875, -0.033477783203125, -0.0309906005859375, -0.0012617111206054688, 0.040496826171875, -0.0005230903625488281, 0.04022216796875, 0.0057525634765625, -0.031829833984375, 0.0146484375, -0.0007219314575195312, 0.03204345703125, 0.00782012939453125, -0.026458740234375, -0.0034770965576171875, 0.0137481689453125, 0.034515380859375, -0.04998779296875, 0.0205230712890625, 0.033935546875, 0.0266265869140625, -0.0001456737518310547, 0.00788116455078125, -0.00792694091796875, -0.0628662109375, 0.006435394287109375, 0.03778076171875, 0.0220794677734375, 0.038726806640625, 0.0211639404296875, 0.018157958984375, 0.0372314453125, -0.031646728515625, 0.0205230712890625, 0.0018491744995117188, -0.004978179931640625, 0.05517578125, 0.0082244873046875, 0.0127716064453125, -0.00365447998046875, -0.01092529296875, -0.029541015625, 0.03326416015625, 0.04815673828125, 0.0134124755859375, -0.0258636474609375, 0.022216796875, 0.004486083984375, 0.0322265625, -0.037872314453125, 0.0189666748046875, -0.0029163360595703125, -0.003387451171875, 0.0217742919921875, 0.032958984375, 0.025726318359375, -0.033050537109375, -0.0127105712890625, -0.01294708251953125, 0.01483917236328125, 0.01543426513671875, 0.04241943359375, -0.00539398193359375, 0.0007877349853515625, -0.0341796875, 0.055572509765625, 0.01047515869140625, 0.01531219482421875, 0.020965576171875, -0.0007905960083007812, -0.0012712478637695312, -0.01064300537109375, -0.039337158203125, 0.0218505859375, 0.07403564453125, 0.0146636962890625, 0.01336669921875, 0.015594482421875, 0.044342041015625, -0.0099334716796875, 0.0704345703125, -0.0165863037109375, -0.00885009765625, 0.01039886474609375, -0.054473876953125, 0.05999755859375, -0.050048828125, 0.03826904296875, 0.07196044921875, -0.0249786376953125, 0.0205078125, 0.00939178466796875, -0.00701904296875, -0.005901336669921875, -0.005672454833984375, -0.00807952880859375, -0.0012578964233398438, -0.05413818359375, 0.003314971923828125, 0.02520751953125, 0.0093994140625, 0.047576904296875, -0.0233001708984375, 0.0129241943359375, 0.027618408203125, -0.07855224609375, -0.0936279296875, 0.01812744140625, -0.033172607421875, -0.002597808837890625, 0.002323150634765625, -0.01326751708984375, -0.0086822509765625, 0.01904296875, -0.01148223876953125, 0.0086517333984375, -0.03955078125, -0.094482421875, -0.070068359375, -0.0965576171875, 0.028564453125, -0.0204925537109375, 0.01313018798828125, 0.0167236328125, -0.02056884765625, -0.005474090576171875, -0.03173828125, 0.0093536376953125, 0.0535888671875, -0.025726318359375, -0.0382080078125, 0.005496978759765625, 0.033172607421875, 0.0208587646484375, 0.014404296875, 0.0153961181640625, 0.0557861328125, -0.0606689453125, -0.026397705078125, -0.004055023193359375, -0.01361846923828125, 0.00923919677734375, -0.01361846923828125, 0.0169830322265625, -0.007350921630859375, 0.005340576171875, -0.049041748046875, 0.007213592529296875, -0.00881195068359375, -0.025665283203125, -0.037750244140625, 0.009185791015625, -0.00765228271484375, -0.041595458984375, -0.0013246536254882812, 0.0256195068359375, 0.00959014892578125, 0.006313323974609375, 0.01065826416015625, -0.0323486328125, -0.02191162109375, 0.006771087646484375, -0.020904541015625, 0.039398193359375, -0.0181427001953125, 0.00917816162109375, 0.00957489013671875, -0.0177459716796875, -0.01178741455078125, 0.006866455078125, -0.040191650390625, -0.0262451171875, 0.0207672119140625, -0.01184844970703125, 0.011322021484375, -0.0184173583984375, -0.0037479400634765625, -0.0193023681640625, 0.0296630859375, -0.037017822265625, -0.0264739990234375, -0.00540924072265625, 0.0184326171875, -0.046875, -0.03448486328125, -0.03472900390625, -0.008697509765625, -0.073974609375, -0.025787353515625, -0.03302001953125, -0.03515625, 0.00029850006103515625, 0.0095062255859375, -0.014007568359375, -0.042205810546875, 0.01200103759765625, 0.02984619140625, -0.00592803955078125, 0.02313232421875, -0.00728607177734375, 0.0079193115234375, 0.0015163421630859375, -0.006992340087890625, -0.058563232421875, -0.01299285888671875, 0.0185546875, 0.027069091796875, 0.0273284912109375, -0.052520751953125, 0.005706787109375, 0.047088623046875, 0.01290130615234375, 0.0238037109375, -0.0010089874267578125, -0.030731201171875, 0.0292816162109375, 0.039947509765625, 0.002620697021484375, 0.00809478759765625, 0.032684326171875, 0.0151519775390625, -0.038726806640625, 0.0031223297119140625, -0.061798095703125, -0.0218658447265625, -0.02294921875, -0.0511474609375, -0.055419921875, 0.003063201904296875, 0.01678466796875, 0.0236358642578125, 0.0210418701171875, -0.03216552734375, -0.01419830322265625, -0.0521240234375, 0.0232696533203125, -0.0281219482421875, 0.0048828125, 0.014801025390625, 0.0804443359375, -0.00348663330078125, 0.002071380615234375, 0.0103759765625, 0.0259857177734375, 0.01708984375, 0.0308685302734375, 0.0291748046875, -0.007404327392578125, -0.0150909423828125, 0.0218963623046875, 0.01203155517578125, 0.0418701171875, -0.0167999267578125, 0.022186279296875, -0.01776123046875, -0.039520263671875, 0.044769287109375, 0.0015020370483398438, -0.033294677734375, 0.015411376953125, -0.03399658203125, -0.018402099609375, -0.007472991943359375, 0.0584716796875, -0.0194549560546875, 0.054412841796875, -0.055908203125, -0.0293731689453125, -0.0014858245849609375, -0.005283355712890625, 0.0181884765625, 0.035125732421875, -0.011871337890625, 0.00859832763671875, 0.00537872314453125, -0.003940582275390625, 0.026702880859375, -0.0048370361328125, 0.017669677734375, 0.0217437744140625, -0.005096435546875, 0.0001424551010131836, 0.0035247802734375, 0.0031299591064453125, 0.0718994140625, -0.00507354736328125, -0.0118255615234375, -0.06072998046875, -0.0307769775390625, -0.08984375, 0.01122283935546875, -0.0019931793212890625, -0.024871826171875, 0.0482177734375, 0.039398193359375, 0.03192138671875, 0.02734375, 0.044036865234375, 0.0178070068359375, -0.01143646240234375, -0.0008015632629394531, -0.0008368492126464844, 0.0172119140625, 0.0489501953125, -0.016204833984375, 0.03802490234375, -0.0120086669921875, 0.01506805419921875, 0.0006165504455566406, 0.053497314453125, -0.00008308887481689453, -0.0020122528076171875, -0.0024261474609375, 0.01134490966796875, 0.006252288818359375, -0.006084442138671875, -0.0002465248107910156, 0.047882080078125, 0.047393798828125, 0.004467010498046875, -0.016571044921875, -0.0180206298828125, -0.0288848876953125, -0.0125732421875, -0.01401519775390625, -0.034454345703125, 0.0257568359375, -0.05560302734375, -0.046295166015625, 0.027923583984375, 0.045684814453125, 0.0048980712890625, -0.00807952880859375, -0.0286102294921875, -0.0196075439453125, 0.0132293701171875, -0.0186614990234375, -0.01389312744140625, -0.020294189453125, -0.0113983154296875, -0.028350830078125, 0.027374267578125, -0.031982421875, 0.0027751922607421875, -0.021148681640625, 0.0011091232299804688, 0.0255279541015625, -0.0298309326171875, 0.0452880859375, -0.017120361328125, -0.0207672119140625, -0.001750946044921875, 0.007709503173828125, 0.0198211669921875, 0.0256195068359375, -0.0457763671875, -0.0086669921875, -0.032623291015625, 0.0007309913635253906, -0.0240020751953125, -0.0024166107177734375, -0.030517578125, -0.0035419464111328125, 0.015625, 0.036529541015625, -0.00370025634765625, -0.0214385986328125, -0.032257080078125, -0.0212554931640625, 0.002040863037109375, 0.007511138916015625, -0.0184478759765625, -0.01535797119140625, 0.02081298828125, -0.008636474609375, -0.0143890380859375, -0.005001068115234375, 0.05596923828125, -0.023193359375, 0.002635955810546875, -0.02679443359375, -0.0389404296875, 0.02276611328125, -0.07501220703125, 0.029022216796875, 0.07904052734375, -0.0020236968994140625, 0.018890380859375, -0.0204315185546875, 0.0010623931884765625, -0.02618408203125, 0.06707763671875, -0.051361083984375, -0.010833740234375, 0.035888671875, -0.0231475830078125, 0.0030384063720703125, 0.0015497207641601562, 0.007534027099609375, 0.0031528472900390625, -0.0167236328125, 0.0018787384033203125, -0.000018537044525146484, -0.035369873046875, 0.044708251953125, 0.057403564453125, -0.00811004638671875, 0.0631103515625, 0.0052337646484375, 0.0196380615234375, 0.053985595703125, 0.03466796875, -0.002582550048828125, -0.013458251953125, 0.0240478515625, -0.02069091796875, -0.0247039794921875, -0.020782470703125, -0.0214385986328125, 0.00875091552734375, 0.047088623046875, 0.0225830078125, -0.07757568359375, -0.00402069091796875, -0.02008056640625, -0.023681640625, 0.0158233642578125, 0.002735137939453125, 0.02044677734375, 0.01061248779296875, 0.005657196044921875, 0.048553466796875, -0.006908416748046875, 0.006587982177734375, 0.0159912109375, -0.0103912353515625, -0.01253509521484375, 0.05377197265625, 0.0196685791015625, -0.01959228515625, 0.01288604736328125, 0.00701141357421875, 0.038726806640625, -0.01287078857421875, -0.018890380859375, 0.02789306640625, -0.045745849609375, -0.05096435546875, 0.00131988525390625, -0.025848388671875, -0.00007212162017822266, 0.02447509765625, -0.00905609130859375, 0.0631103515625, 0.022430419921875, 0.01338958740234375, -0.043243408203125, -0.00951385498046875, -0.0063934326171875, 0.0625, -0.005985260009765625, -0.003131866455078125, -0.024505615234375, -0.0022258758544921875, -0.011749267578125, -0.01346588134765625, -0.014617919921875, -0.0202789306640625, -0.0478515625, 0.06719970703125, -0.00984954833984375, -0.02166748046875, 0.0215606689453125, 0.019927978515625, -0.026611328125, 0.0008687973022460938, -0.004489898681640625, -0.001209259033203125, 0.03948974609375, 0.005680084228515625, 0.0204010009765625, -0.017669677734375, -0.002750396728515625, -0.0595703125, 0.053192138671875, -0.01238250732421875, 0.0279998779296875, 0.00995635986328125, 0.02587890625, 0.00853729248046875, -0.003025054931640625, -0.0224761962890625, 0.06365966796875, -0.062164306640625, 0.07550048828125, -0.02191162109375, 0.0172882080078125, 0.05523681640625, -0.002899169921875, 0.05767822265625, 0.0185394287109375, -0.060516357421875, -0.018463134765625, 0.0169525146484375, 0.0084228515625, -0.0103607177734375, 0.06011962890625, -0.0154876708984375, 0.047119140625, 0.0095977783203125, -0.056488037109375, 0.007251739501953125, -0.013031005859375, -0.045806884765625, 0.014984130859375, -0.01302337646484375, -0.028411865234375, -0.005657196044921875, -0.032928466796875, -0.036651611328125, -0.00047969818115234375, 0.0008897781372070312, 0.00873565673828125, -0.01062774658203125, 0.033203125, 0.0443115234375, -0.07928466796875, -0.0897216796875, -0.028900146484375, 0.03302001953125, 0.042694091796875, 0.004852294921875, 0.037384033203125, 0.0197601318359375, 0.0274200439453125, -0.0002562999725341797, 0.016693115234375, 0.0055084228515625, -0.00372314453125, 0.0673828125, -0.00373077392578125, 0.0098876953125, -0.10076904296875, -0.0506591796875, 0.04412841796875, 0.10528564453125, -0.047393798828125, -0.05914306640625, -0.00045371055603027344, -0.0219879150390625, 0.0196990966796875, 0.0271148681640625, 0.0267181396484375, 0.0032482147216796875, 0.0258941650390625, 0.0247955322265625, -0.0199127197265625, -0.02081298828125, 0.01983642578125, -0.0009465217590332031, 0.0213165283203125, 0.01320648193359375, 0.0017566680908203125, -0.0087127685546875, -0.01141357421875, 0.027618408203125, 0.021759033203125, -0.007381439208984375, 0.0210723876953125, -0.016937255859375, 0.0088043212890625, 0.00681304931640625, 0.00421142578125, -0.0198822021484375, 0.0028057098388671875, -0.039276123046875, -0.0482177734375, -0.00467681884765625, 0.053466796875, -0.0092926025390625, -0.0027618408203125, -0.00437164306640625, 0.0345458984375, 0.030029296875, -0.027435302734375, 0.0029125213623046875, -0.004138946533203125, -0.0097808837890625, -0.02069091796875, 0.015869140625, 0.0226898193359375, 0.009368896484375, -0.01212310791015625, 0.0273284912109375, 0.03399658203125, 0.0222320556640625, -0.003772735595703125, 0.0162353515625, -0.0257568359375, 0.0262603759765625, -0.02105712890625, 0.03887939453125, 0.026092529296875, -0.0170135498046875, 0.01239776611328125, -0.035919189453125, -0.07421875, -0.0104522705078125, 0.0298309326171875, 0.01561737060546875, -0.016632080078125, 0.0213623046875, 0.0267333984375, 0.00279998779296875, -0.038177490234375, 0.022186279296875, 0.035308837890625, 0.0230255126953125, 0.03448486328125, -0.01617431640625, 0.009185791015625, 0.01690673828125, 0.001323699951171875, -0.04571533203125, 0.1434326171875, -0.049835205078125, -0.023956298828125, 0.01229095458984375, -0.050506591796875, 0.053955078125, 0.0009455680847167969, 0.009185791015625, 0.0037212371826171875, -0.01220703125, -0.0196685791015625, -0.037567138671875, 0.026580810546875, 0.0289306640625, -0.0081787109375, -0.01141357421875, -0.0032291412353515625, 0.0176239013671875, 0.0108795166015625, 0.00843048095703125, -0.03759765625, -0.0439453125, -0.00970458984375, 0.020263671875, -0.0032024383544921875, -0.009765625, -0.0384521484375, 0.0301361083984375, 0.007053375244140625, -0.0300140380859375, 0.00887298583984375, -0.042938232421875, 0.0246429443359375, 0.040435791015625, 0.010894775390625, 0.016937255859375, 0.014892578125, -0.0218658447265625, 0.04290771484375, -0.0028400421142578125, 0.0269012451171875, 0.0091400146484375, 0.01445770263671875, -0.03594970703125, -0.018035888671875, -0.005733489990234375, -0.015838623046875, -0.0085296630859375, -0.03143310546875, -0.024871826171875, 0.0182647705078125, 0.02392578125, -0.039337158203125, -0.0149993896484375, 0.01141357421875, 0.0258636474609375, -0.01274871826171875, -0.01297760009765625, -0.091796875, 0.006404876708984375, 0.00550079345703125, -0.005107879638671875, -0.073974609375, 0.0303497314453125, -0.005062103271484375, 0.054779052734375, -0.04571533203125, 0.002552032470703125, 0.004756927490234375, 0.039276123046875, -0.04779052734375, 0.007259368896484375, -0.026214599609375, -0.0244598388671875, -0.012969970703125, 0.0255126953125, 0.054443359375, -0.01018524169921875, 0.0260162353515625, 0.0046539306640625, 0.005706787109375, 0.06884765625, -0.0706787109375, 0.011322021484375, 0.06390380859375, 0.0041656494140625, -0.056549072265625, -0.0675048828125, -0.01067352294921875, 0.007450103759765625, 0.01430511474609375, 0.051300048828125, -0.04498291015625, -0.0190582275390625, -0.036285400390625, -0.0662841796875, 0.057159423828125, 0.026397705078125, -0.033294677734375, -0.06414794921875, 0.013946533203125, 0.0133209228515625, -0.05133056640625, -0.034393310546875, -0.01074981689453125, -0.0343017578125, 0.033050537109375, 0.02685546875, 0.0211029052734375, 0.01499176025390625, 0.043914794921875, -0.0239715576171875, 0.022552490234375, -0.002544403076171875, -0.0047760009765625, 0.00978851318359375, -0.0186614990234375, 0.043731689453125, 0.040008544921875, -0.0250701904296875, -0.0088653564453125, 0.006267547607421875, -0.039825439453125, -0.028839111328125, 0.0141754150390625, -0.03851318359375, -0.006805419921875, 0.0673828125, 0.0689697265625, 0.016876220703125, -0.020294189453125, 0.01035308837890625, -0.0137481689453125, -0.0113677978515625, -0.004863739013671875, 0.0185699462890625, -0.0277099609375, 0.0085906982421875, 0.01009368896484375, -0.0162811279296875, 0.013153076171875, -0.0274658203125, -0.02728271484375, 0.0025196075439453125, 0.01177978515625, -0.01285552978515625, 0.0063934326171875, 0.01026153564453125, 0.034332275390625, -0.0455322265625, -0.02471923828125, -0.01433563232421875, 0.0199127197265625, -0.01013946533203125, -0.06939697265625, -0.0030460357666015625, 0.07208251953125, -0.03289794921875, -0.00873565673828125, 0.0209197998046875, -0.0071868896484375, -0.0189666748046875, 0.02691650390625, -0.01507568359375, 0.024993896484375, 0.01029205322265625, 0.0182037353515625, -0.0224151611328125, 0.049835205078125, 0.0227203369140625, 0.0164642333984375, 0.007038116455078125, 0.03302001953125, -0.00804901123046875, 0.056915283203125, -0.0242156982421875, -0.03179931640625, -0.0091400146484375, -0.034698486328125, -0.00333404541015625, 0.01751708984375, 0.0251617431640625, -0.01010894775390625, -0.0223846435546875, -0.0755615234375, 0.022979736328125, -0.0156707763671875 ]
3106e3978cdd9f8d87c7127f516d68205259f1d0
Wordpress Stackexchange Q: How to use logout function on custom menu link? All I am using wordpress custom menu, and there is one menu as Logout. I know wordpress Logout function <?php echo wp_logout_url(); ?> But how can i use it in custom menu ? A: Not sure how and where you can create a custom button, but you can add such a link per filter: Add a filter function to 'wp_nav_menu_objects' and insert the link where you need it. Here is a basic example: add_filter( 'wp_nav_menu_objects', 'wpse_46547_add_log_out_link', 10, 2 ); function wpse_46547_add_log_out_link( $sorted_menu_items, $args ) { $link = array ( 'title' => 'Log out', 'menu_item_parent' => 0, 'ID' => '', 'db_id' => '', 'url' => wp_logout_url() ); $sorted_menu_items[] = (object) $link; return $sorted_menu_items; } You should modify the code: * *Check if you are on the correct menu. For example require a class has_log_out_link for the menu_class parameter on wp_nav_menu and test $args->menu_class. *I18n for the menu title. ;) *Set menu_item_parent to a post ID other than 0 if you need the link in a sub menu. *There are more parameters for the link, see my other answer to inspect those.
Q: How to use logout function on custom menu link? All I am using wordpress custom menu, and there is one menu as Logout. I know wordpress Logout function <?php echo wp_logout_url(); ?> But how can i use it in custom menu ? A: Not sure how and where you can create a custom button, but you can add such a link per filter: Add a filter function to 'wp_nav_menu_objects' and insert the link where you need it. Here is a basic example: add_filter( 'wp_nav_menu_objects', 'wpse_46547_add_log_out_link', 10, 2 ); function wpse_46547_add_log_out_link( $sorted_menu_items, $args ) { $link = array ( 'title' => 'Log out', 'menu_item_parent' => 0, 'ID' => '', 'db_id' => '', 'url' => wp_logout_url() ); $sorted_menu_items[] = (object) $link; return $sorted_menu_items; } You should modify the code: * *Check if you are on the correct menu. For example require a class has_log_out_link for the menu_class parameter on wp_nav_menu and test $args->menu_class. *I18n for the menu title. ;) *Set menu_item_parent to a post ID other than 0 if you need the link in a sub menu. *There are more parameters for the link, see my other answer to inspect those. A: In case someone else struggles with this, the easiest way I found was to simply add the Log out menu item exactly where you want it by using the custom link option. Make the url something unique like logouturl and the simply add this code to your functions.php file or wherever you prefer adding custom code. add_filter( 'wp_nav_menu_items', 'wp123e_loginout_menu_link', 10, 2 ); function wp123e_loginout_menu_link( $items, $args ) { if ($args->theme_location == 'primary') { if (is_user_logged_in()) { $items = str_replace('logouturl', wp_logout_url(), $items); } } return $items; } Remember to change this first parameter of str_replace to the string used in the custom link of the menu settings. You might also need to change the theme_location from primary to the appropriate location.
wordpress
{ "language": "en", "length": 311, "provenance": "stackexchange_00019.jsonl.gz:418332", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46547" }
[ 0.08935546875, 0.0035724639892578125, 0.047027587890625, -0.006961822509765625, 0.020172119140625, -0.03387451171875, 0.0721435546875, -0.050750732421875, -0.04638671875, 0.006206512451171875, 0.021148681640625, -0.0260467529296875, -0.058441162109375, -0.043121337890625, 0.007068634033203125, -0.06634521484375, 0.02838134765625, 0.00991058349609375, 0.033294677734375, 0.0006961822509765625, 0.0024890899658203125, 0.0175628662109375, -0.0009503364562988281, 0.00955963134765625, 0.019317626953125, -0.0220184326171875, 0.045989990234375, -0.003566741943359375, 0.0172119140625, -0.003391265869140625, 0.019775390625, -0.036865234375, 0.0009355545043945312, 0.026153564453125, 0.023101806640625, -0.00917816162109375, -0.016326904296875, 0.0257720947265625, 0.01424407958984375, 0.0221405029296875, 0.0248565673828125, -0.020263671875, -0.0235443115234375, 0.0299530029296875, -0.04302978515625, -0.00103759765625, -0.0171966552734375, -0.0158233642578125, 0.009124755859375, -0.01044464111328125, 0.034820556640625, -0.019317626953125, 0.056365966796875, -0.0438232421875, -0.039215087890625, -0.01293182373046875, 0.0005354881286621094, -0.025115966796875, 0.0109405517578125, 0.052337646484375, 0.0015926361083984375, 0.01507568359375, -0.003108978271484375, -0.03875732421875, -0.017974853515625, 0.0291900634765625, 0.013671875, -0.0023097991943359375, -0.006534576416015625, -0.042266845703125, -0.0217132568359375, -0.01187896728515625, -0.0204315185546875, 0.0241241455078125, -0.04547119140625, -0.035308837890625, 0.03900146484375, -0.03399658203125, 0.0015230178833007812, 0.0310516357421875, -0.01555633544921875, -0.00018155574798583984, -0.0792236328125, 0.0178680419921875, -0.0114898681640625, 0.033294677734375, -0.029144287109375, -0.026702880859375, 0.008209228515625, -0.006145477294921875, -0.0119171142578125, 0.0156707763671875, 0.004459381103515625, 0.00547027587890625, -0.0261383056640625, -0.0286407470703125, 0.0212554931640625, 0.06158447265625, 0.007114410400390625, 0.0226593017578125, -0.0287322998046875, -0.016632080078125, 0.0199737548828125, -0.047943115234375, 0.0012416839599609375, 0.07440185546875, 0.01226043701171875, 0.017791748046875, 0.0168609619140625, -0.0030460357666015625, 0.02874755859375, -0.0251312255859375, -0.033203125, -0.035797119140625, -0.0082855224609375, 0.03668212890625, -0.033172607421875, -0.009368896484375, -0.01160430908203125, 0.0079498291015625, -0.03668212890625, -0.0188446044921875, -0.0252838134765625, 0.04388427734375, 0.00638580322265625, 0.0012254714965820312, 0.010528564453125, 0.0227508544921875, -0.007793426513671875, 0.023895263671875, -0.0294189453125, -0.005970001220703125, 0.04345703125, 0.0316162109375, 0.0148162841796875, -0.0310821533203125, 0.035675048828125, -0.035186767578125, 0.007762908935546875, 0.007274627685546875, 0.027374267578125, -0.0233612060546875, -0.0179595947265625, 0.00965118408203125, 0.005229949951171875, -0.000980377197265625, 0.019866943359375, 0.0162506103515625, -0.0127716064453125, -0.0443115234375, 0.0189056396484375, -0.0019817352294921875, 0.04217529296875, -0.006191253662109375, -0.0406494140625, -0.004241943359375, -0.01465606689453125, -0.002002716064453125, -0.017181396484375, -0.02703857421875, -0.0308990478515625, -0.00522613525390625, 0.025665283203125, -0.053192138671875, -0.0396728515625, 0.01287841796875, -0.031097412109375, -0.004913330078125, 0.028167724609375, 0.006748199462890625, 0.00872802734375, -0.06378173828125, -0.0162353515625, 0.02484130859375, 0.00728607177734375, 0.056365966796875, -0.0321044921875, 0.0634765625, 0.0191497802734375, 0.00788116455078125, 0.00852203369140625, -0.051666259765625, 0.05963134765625, -0.0088043212890625, -0.0308990478515625, 0.0159912109375, -0.0007104873657226562, 0.052001953125, 0.016571044921875, 0.0252227783203125, -0.01087188720703125, -0.0052947998046875, -0.017333984375, 0.030487060546875, -0.010009765625, -0.019989013671875, -0.0006375312805175781, 0.015869140625, -0.01306915283203125, -0.007770538330078125, -0.0097503662109375, 0.025909423828125, -0.0205078125, 0.0188446044921875, -0.07916259765625, 0.05029296875, -0.051239013671875, 0.054290771484375, 0.0019588470458984375, 0.00615692138671875, 0.007904052734375, -0.0026073455810546875, 0.0020809173583984375, -0.048431396484375, -0.0288848876953125, -0.0030460357666015625, -0.01351165771484375, 0.03961181640625, -0.02252197265625, 0.0160064697265625, -0.0175628662109375, -0.0343017578125, -0.01291656494140625, 0.006923675537109375, 0.039947509765625, -0.02069091796875, -0.0222625732421875, -0.0245513916015625, 0.0175018310546875, -0.005886077880859375, -0.0029430389404296875, 0.053314208984375, 0.0712890625, 0.0082244873046875, -0.046173095703125, 0.0053863525390625, -0.0248565673828125, -0.042938232421875, -0.04266357421875, 0.052642822265625, 0.040008544921875, 0.0179443359375, -0.002536773681640625, -0.00673675537109375, 0.045928955078125, -0.0404052734375, 0.00926971435546875, -0.01953125, -0.01311492919921875, -0.00891876220703125, -0.00647735595703125, -0.0137481689453125, 0.058807373046875, 0.033721923828125, 0.0005764961242675781, 0.037017822265625, -0.0293731689453125, -0.04034423828125, 0.0159149169921875, -0.017608642578125, 0.025726318359375, -0.0202789306640625, -0.033905029296875, 0.01149749755859375, 0.005741119384765625, 0.0002231597900390625, 0.0172882080078125, -0.0021877288818359375, -0.039031982421875, 0.0007076263427734375, 0.040802001953125, 0.0254974365234375, -0.006256103515625, 0.011444091796875, 0.0300750732421875, -0.046844482421875, -0.00878143310546875, 0.0095672607421875, -0.01152801513671875, -0.00997161865234375, -0.02099609375, 0.045684814453125, 0.006622314453125, -0.0193634033203125, -0.023101806640625, -0.028076171875, 0.0036640167236328125, -0.01806640625, 0.0311431884765625, 0.0019435882568359375, 0.03765869140625, -0.001506805419921875, -0.004138946533203125, 0.01922607421875, 0.0283203125, -0.031646728515625, 0.04132080078125, 0.0030078887939453125, 0.02239990234375, -0.01454925537109375, 0.016754150390625, 0.02947998046875, -0.0309295654296875, 0.00373077392578125, -0.01043701171875, -0.0009036064147949219, -0.0262603759765625, 0.0262603759765625, -0.005710601806640625, -0.036956787109375, 0.0002002716064453125, 0.049102783203125, 0.002361297607421875, 0.0186004638671875, -0.03466796875, -0.04266357421875, -0.042205810546875, -0.01971435546875, -0.06243896484375, -0.03521728515625, 0.0298004150390625, -0.039794921875, 0.029052734375, 0.0112762451171875, -0.0174102783203125, -0.038360595703125, 0.055389404296875, 0.00914764404296875, 0.031097412109375, -0.03460693359375, -0.03173828125, -0.003734588623046875, -0.033172607421875, 0.028350830078125, 0.00909423828125, -0.006504058837890625, 0.004840850830078125, 0.037689208984375, 0.0026493072509765625, -0.0234832763671875, 0.024078369140625, 0.0361328125, 0.00730133056640625, 0.007213592529296875, 0.010498046875, 0.0087890625, 0.004489898681640625, 0.01023101806640625, 0.0235748291015625, 0.018768310546875, -0.0261993408203125, -0.0114898681640625, -0.0224609375, 0.009124755859375, 0.03729248046875, -0.033447265625, 0.0018873214721679688, 0.0638427734375, 0.031524658203125, 0.0006151199340820312, -0.021087646484375, -0.037872314453125, -0.048065185546875, 0.045257568359375, 0.049896240234375, -0.0019550323486328125, -0.0097808837890625, 0.00328826904296875, -0.00677490234375, 0.0113525390625, 0.0226287841796875, 0.003269195556640625, -0.0103912353515625, -0.01947021484375, -0.0176849365234375, -0.0122222900390625, 0.06103515625, 0.004306793212890625, 0.005496978759765625, 0.03155517578125, 0.00628662109375, -0.0091552734375, -0.01800537109375, -0.061767578125, -0.05267333984375, 0.0582275390625, -0.0283203125, 0.01458740234375, -0.0296173095703125, -0.033538818359375, -0.000873565673828125, 0.0919189453125, 0.00852203369140625, -0.032562255859375, -0.002124786376953125, 0.00412750244140625, 0.029449462890625, -0.012115478515625, 0.01238250732421875, -0.025726318359375, -0.09954833984375, 0.0482177734375, 0.003810882568359375, -0.01873779296875, -0.00670623779296875, -0.03375244140625, -0.04266357421875, -0.052459716796875, 0.023162841796875, 0.01003265380859375, 0.00826263427734375, 0.03900146484375, -0.021453857421875, 0.0214691162109375, -0.0236663818359375, -0.0030364990234375, -0.0133819580078125, 0.0032062530517578125, -0.059661865234375, 0.0439453125, 0.06597900390625, -0.04180908203125, 0.0011882781982421875, 0.032867431640625, 0.0472412109375, 0.011322021484375, 0.01556396484375, -0.03179931640625, 0.043426513671875, 0.0199432373046875, 0.0019664764404296875, 0.00615692138671875, 0.043670654296875, 0.0110931396484375, -0.08392333984375, 0.0030975341796875, -0.026947021484375, 0.03515625, 0.035919189453125, -0.061065673828125, -0.06817626953125, -0.059417724609375, 0.00154876708984375, 0.004329681396484375, 0.0249786376953125, -0.0152130126953125, -0.050689697265625, -0.05633544921875, -0.000362396240234375, 0.006603240966796875, -0.0232086181640625, 0.01035308837890625, 0.032257080078125, 0.03863525390625, -0.015899658203125, 0.0218963623046875, 0.0086517333984375, -0.005466461181640625, -0.058319091796875, 0.06915283203125, -0.004390716552734375, 0.0004436969757080078, 0.07525634765625, -0.05511474609375, -0.016082763671875, -0.02191162109375, 0.05902099609375, -0.003467559814453125, -0.00832366943359375, -0.0009145736694335938, -0.0330810546875, 0.01343536376953125, 0.00893402099609375, 0.0093231201171875, -0.057342529296875, -0.0015745162963867188, 0.07733154296875, -0.002628326416015625, 0.0242767333984375, -0.058685302734375, -0.00930023193359375, -0.0029621124267578125, -0.018646240234375, 0.0697021484375, 0.0543212890625, -0.0181427001953125, 0.0213775634765625, 0.018768310546875, 0.0012826919555664062, -0.01041412353515625, 0.0028076171875, -0.01309967041015625, 0.04034423828125, -0.0309600830078125, -0.005565643310546875, -0.0067291259765625, -0.014312744140625, 0.06695556640625, 0.026397705078125, -0.0093841552734375, -0.01105499267578125, 0.006622314453125, 0.003513336181640625, -0.0167236328125, -0.0073089599609375, 0.032470703125, -0.0160064697265625, -0.0352783203125, 0.00617218017578125, -0.001102447509765625, -0.038909912109375, -0.034942626953125, 0.022918701171875, -0.00627899169921875, 0.001888275146484375, -0.036834716796875, 0.07598876953125, 0.021575927734375, 0.00865936279296875, -0.018096923828125, -0.00217437744140625, 0.0179901123046875, 0.048431396484375, 0.0296783447265625, -0.0230712890625, -0.019012451171875, 0.0328369140625, 0.021697998046875, -0.025054931640625, -0.048431396484375, 0.0305328369140625, 0.031646728515625, -0.01441192626953125, 0.0251617431640625, 0.004520416259765625, 0.01165008544921875, -0.010986328125, 0.06671142578125, -0.01502227783203125, -0.11248779296875, -0.0289154052734375, 0.01544952392578125, 0.01541900634765625, -0.056121826171875, -0.01523590087890625, -0.028533935546875, -0.00812530517578125, -0.005649566650390625, -0.02410888671875, -0.02874755859375, 0.03546142578125, 0.026885986328125, -0.049896240234375, -0.017608642578125, 0.044769287109375, -0.0523681640625, -0.005336761474609375, -0.0355224609375, -0.03271484375, 0.039794921875, -0.03570556640625, 0.01288604736328125, -0.01458740234375, 0.02178955078125, 0.0299072265625, 0.0031490325927734375, 0.0638427734375, 0.0227508544921875, -0.029541015625, 0.005733489990234375, -0.006378173828125, 0.023193359375, 0.0137481689453125, -0.0697021484375, -0.007083892822265625, -0.038604736328125, 0.02069091796875, 0.00823974609375, 0.0197601318359375, 0.0013895034790039062, -0.05108642578125, 0.0118255615234375, 0.0150146484375, -0.00788116455078125, -0.00794219970703125, 0.082763671875, -0.0215606689453125, 0.0105438232421875, 0.022003173828125, 0.052398681640625, -0.0015811920166015625, -0.00905609130859375, 0.036895751953125, 0.025634765625, -0.034576416015625, -0.07403564453125, 0.0142822265625, -0.01885986328125, 0.0550537109375, -0.0269012451171875, 0.0211944580078125, -0.020751953125, -0.0122222900390625, -0.0148162841796875, 0.00750732421875, -0.0036773681640625, 0.01580810546875, 0.015960693359375, -0.0180511474609375, 0.05413818359375, 0.0110931396484375, 0.0467529296875, -0.0180816650390625, -0.03515625, 0.0157470703125, 0.01172637939453125, -0.051177978515625, 0.04486083984375, 0.09002685546875, 0.00473785400390625, 0.044891357421875, 0.011138916015625, -0.00024390220642089844, 0.018798828125, -0.032501220703125, -0.0148468017578125, 0.0288543701171875, 0.0300140380859375, -0.0248565673828125, -0.0184173583984375, 0.003597259521484375, -0.0234832763671875, 0.0224761962890625, 0.035247802734375, 0.061187744140625, -0.06573486328125, 0.034088134765625, 0.01708984375, 0.00945281982421875, 0.075439453125, 0.0302734375, 0.012359619140625, 0.0010957717895507812, -0.024932861328125, -0.04473876953125, -0.0210418701171875, -0.0194244384765625, -0.02490234375, 0.00754547119140625, -0.013641357421875, 0.0086669921875, -0.0111541748046875, -0.076416015625, -0.00714111328125, 0.034423828125, -0.023345947265625, -0.0240936279296875, -0.0204315185546875, 0.037567138671875, -0.01532745361328125, -0.049774169921875, 0.033355712890625, -0.04742431640625, 0.0208892822265625, 0.02447509765625, -0.00978851318359375, 0.0277862548828125, 0.0172119140625, -0.00701904296875, 0.0186614990234375, -0.037628173828125, 0.0181884765625, -0.00342559814453125, -0.0192413330078125, 0.01015472412109375, 0.0345458984375, -0.0518798828125, 0.0213623046875, -0.02532958984375, -0.0034046173095703125, -0.006198883056640625, -0.01861572265625, 0.08172607421875, -0.039306640625, -0.0063018798828125, 0.005306243896484375, 0.028839111328125, 0.01407623291015625, -0.0165863037109375, 0.036285400390625, -0.0675048828125, -0.053985595703125, 0.008453369140625, -0.04888916015625, -0.017822265625, -0.0238800048828125, -0.016571044921875, 0.1297607421875, -0.0362548828125, -0.01325225830078125, -0.0090484619140625, 0.07879638671875, 0.013519287109375, 0.08453369140625, -0.03887939453125, 0.054412841796875, 0.0146484375, 0.015289306640625, -0.023193359375, -0.003887176513671875, 0.0052337646484375, 0.022216796875, -0.0272216796875, 0.01654052734375, -0.043975830078125, -0.01218414306640625, 0.0010709762573242188, 0.029541015625, 0.033172607421875, 0.04132080078125, -0.01222991943359375, 0.0081634521484375, 0.0259857177734375, -0.0287933349609375, 0.01509857177734375, 0.0160675048828125, -0.024200439453125, 0.007472991943359375, 0.01189422607421875, -0.00795745849609375, -0.010498046875, 0.01690673828125, -0.050262451171875, 0.0181884765625, 0.00858306884765625, 0.061737060546875, -0.0111846923828125, 0.03118896484375, 0.0240020751953125, -0.05609130859375, -0.0244293212890625, -0.046417236328125, 0.0308837890625, -0.0091552734375, 0.01023101806640625, 0.01611328125, 0.024078369140625, -0.0150299072265625, -0.062255859375, -0.00962066650390625, -0.0059967041015625, -0.0401611328125, 0.057403564453125, 0.005039215087890625, 0.030731201171875, -0.039794921875, -0.0020618438720703125, 0.016937255859375, 0.0673828125, -0.035888671875, -0.033721923828125, 0.0021820068359375, -0.0025463104248046875, 0.0306243896484375, 0.01300048828125, 0.07086181640625, -0.01470184326171875, -0.0215911865234375, 0.003948211669921875, 0.02679443359375, 0.043609619140625, 0.005786895751953125, 0.017669677734375, 0.03472900390625, -0.07550048828125, 0.040771484375, -0.01666259765625, -0.006015777587890625, 0.010711669921875, 0.028076171875, 0.022735595703125, 0.00949859619140625, 0.010040283203125, -0.00920867919921875, 0.018585205078125, 0.0208282470703125, -0.006343841552734375, -0.015289306640625, 0.0036487579345703125, -0.05731201171875, 0.035369873046875, 0.01251220703125, 0.0182037353515625, -0.0023441314697265625, 0.036102294921875, -0.00971221923828125, -0.055572509765625, -0.00669097900390625, 0.0213470458984375, -0.035308837890625, -0.0309906005859375, -0.0138397216796875, -0.0016622543334960938, 0.025909423828125, 0.002254486083984375, -0.00762939453125, 0.0245361328125, 0.0247039794921875, -0.017425537109375, 0.031219482421875, -0.003162384033203125, -0.03106689453125, -0.01326751708984375, 0.00208282470703125, 0.055023193359375, 0.0107574462890625, -0.08587646484375, -0.0272216796875, -0.00501251220703125, -0.005527496337890625, 0.04644775390625, 0.05316162109375, -0.0029506683349609375, 0.006900787353515625, -0.00704193115234375, 0.026092529296875, -0.033355712890625, -0.007274627685546875, -0.005420684814453125, -0.0283660888671875, 0.028717041015625, 0.00325775146484375, -0.08135986328125, -0.0205535888671875, -0.0382080078125, -0.003490447998046875, 0.032684326171875, 0.00986480712890625, 0.04193115234375, 0.030303955078125, -0.0308990478515625, 0.0008397102355957031, -0.03521728515625, -0.018402099609375, -0.01898193359375, 0.0030994415283203125, 0.0026226043701171875, -0.00020825862884521484, -0.06842041015625, 0.033294677734375, 0.02593994140625, -0.0111236572265625, 0.0498046875, -0.01338958740234375, 0.005062103271484375, -0.0264739990234375, 0.00711822509765625, -0.02020263671875, -0.0066375732421875, 0.0088653564453125, -0.025054931640625, 0.0265655517578125, 0.0400390625, 0.040374755859375, 0.04290771484375, -0.032135009765625, -0.001605987548828125, 0.013031005859375, -0.041351318359375, 0.0115966796875, 0.0283355712890625, -0.032440185546875, 0.03057861328125, -0.028411865234375, -0.027008056640625, -0.0174713134765625, 0.005123138427734375, -0.05035400390625, -0.00777435302734375, -0.0215606689453125, 0.07501220703125, 0.045318603515625, 0.065673828125, -0.01507568359375, 0.03350830078125, 0.0262603759765625, 0.0162200927734375, 0.030914306640625, -0.065673828125, -0.043975830078125, -0.059783935546875, 0.006473541259765625, 0.0225372314453125, -0.0187530517578125, -0.048095703125, -0.0631103515625, -0.01364898681640625, 0.05523681640625, 0.0240325927734375, -0.051910400390625, 0.0212860107421875, -0.02923583984375, 0.016876220703125, 0.015716552734375, -0.005916595458984375, -0.00965118408203125, -0.0160675048828125, -0.00411224365234375, -0.0257415771484375, -0.023651123046875, 0.046661376953125, -0.00452423095703125, -0.0167694091796875, -0.01161956787109375, -0.0028896331787109375, -0.00983428955078125, -0.00887298583984375, 0.0024623870849609375, 0.0394287109375, 0.01026153564453125, -0.050384521484375, -0.030975341796875, -0.001922607421875, 0.0394287109375, 0.0161590576171875, 0.01214599609375, -0.02099609375, -0.041290283203125, 0.0109405517578125, -0.021636962890625, -0.02264404296875, -0.05194091796875, -0.068115234375, 0.062255859375, 0.0041656494140625, -0.032562255859375, -0.040496826171875, 0.05950927734375, -0.00406646728515625, -0.033538818359375, -0.0108642578125, -0.024688720703125, 0.033111572265625, 0.018890380859375, 0.004352569580078125, 0.049072265625, -0.00757598876953125, 0.043304443359375, -0.03533935546875, 0.0232086181640625, 0.00788116455078125, -0.003162384033203125, -0.00374603271484375, 0.0012865066528320312, 0.02294921875, 0.03521728515625, -0.033111572265625, 0.0029125213623046875, -0.0029621124267578125, 0.005558013916015625, -0.0157012939453125, 0.0186004638671875, 0.025238037109375, 0.0206146240234375, 0.0214080810546875, 0.01885986328125, -0.0085906982421875, -0.0224456787109375, -0.0211029052734375, -0.056854248046875, 0.006313323974609375, -0.0265350341796875, -0.006114959716796875, -0.07373046875, -0.0230255126953125, 0.02587890625, -0.019866943359375, -0.0298004150390625, 0.028076171875, -0.0294189453125, 0.007488250732421875, 0.05999755859375, 0.0182647705078125, -0.03515625, 0.0106048583984375, 0.047882080078125, -0.04705810546875, -0.0049591064453125, 0.00463104248046875, 0.002590179443359375, 0.01268768310546875, -0.01229095458984375, -0.0150909423828125, 0.0196380615234375, -0.037384033203125, 0.00942230224609375, -0.00470733642578125, 0.040435791015625, -0.03179931640625, -0.0101776123046875, -0.03125, 0.00730133056640625, 0.0218048095703125, -0.004314422607421875, -0.05218505859375, 0.03863525390625, 0.0177154541015625, 0.034149169921875, -0.0161590576171875, 0.019927978515625, 0.0016641616821289062, 0.03021240234375, 0.00433349609375, -0.01213836669921875, 0.036224365234375, -0.0333251953125, 0.0191192626953125, -0.05572509765625, 0.00983428955078125, -0.06658935546875, 0.059844970703125, 0.012176513671875, -0.041168212890625, 0.057281494140625 ]
063cdb11c301c75bfb86f6e2a209b1dbafde6413
Wordpress Stackexchange Q: Attaching Metadata to a Taxonomy Item I have a taxonomy of menus i.e. Coffee, Tea, Sandwiches, Cakes etc. I want to add more information 'about' the taxonomy such as an image that represents it alongside the other pieces of taxonomy information (slug,name,description). Is this possible, how would you go about it? Thanks, Stewart A: As Mamaduka said there is currently no (native) way of storing meta-data for taxonmies. There is talk of it. But it has stalled since its proving difficult to agree on how best to implement it. For large amounts of data you might not want to use the options table. Alternatively you can create your own taxonomy meta table. There are a couple plug-ins that currently do this: * *http://wordpress.org/extend/plugins/taxonomy-metadata/ *http://wordpress.org/extend/plugins/meta-for-taxonomies/
Q: Attaching Metadata to a Taxonomy Item I have a taxonomy of menus i.e. Coffee, Tea, Sandwiches, Cakes etc. I want to add more information 'about' the taxonomy such as an image that represents it alongside the other pieces of taxonomy information (slug,name,description). Is this possible, how would you go about it? Thanks, Stewart A: As Mamaduka said there is currently no (native) way of storing meta-data for taxonmies. There is talk of it. But it has stalled since its proving difficult to agree on how best to implement it. For large amounts of data you might not want to use the options table. Alternatively you can create your own taxonomy meta table. There are a couple plug-ins that currently do this: * *http://wordpress.org/extend/plugins/taxonomy-metadata/ *http://wordpress.org/extend/plugins/meta-for-taxonomies/ A: Currently only way to store additional metadata for taxonomies is, adding them to WordPress options (wp_options table). Just for an images, you can remove kses filter from term's description and insert image there. // Remove kses filter from term descriptions remove_filter( 'pre_term_description', 'wp_filter_kses' ); About storing taxonomy metadata in options tables, you can see Brad Williams post: http://www.strangework.com/2010/07/01/how-to-save-taxonomy-meta-data-as-an-options-array-in-wordpress/ A: I coded a class that stores metadata for taxonomy terms in the options table and working with it is fairly simple ex: //include the main class file require_once("Tax-meta-class/Tax-meta-class.php"); // configure taxonomy custom fields $config = array( 'id' => 'demo_tax_meta_box', // meta box id, unique per meta box 'title' => 'Demo Meta Box', // meta box title 'pages' => array('menus'), // taxonomy name, accept categories, post_tag and custom taxonomies 'context' => 'normal', // where the meta box appear: normal (default), advanced, side; optional 'fields' => array(), // list of meta fields (can be added by field arrays) 'local_images' => false, // Use local or hosted images (meta box images for add/remove) 'use_with_theme' => false //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false). ); // Initiate your taxonomy custom fields $my_meta = new Tax_Meta_Class($config); // Add fields //text field $my_meta->addText('text_field_id',array('name'=> 'My tax Text ')); //textarea field $my_meta->addTextarea('textarea_field_id',array('name'=> 'My tax Textarea ')); //Image field $my_meta->addImage('image_field_id',array('name'=> 'My tax Image ')); //Finish Taxonomy Extra fields Deceleration $my_meta->Finish(); this will add a text field, textarea field and an image field. And getting the stored data is also very simple: $saved_data = get_tax_meta($term_id,'text_field_id'); echo $saved_data; currently the class supports: * *Input *Textarea *Radio button *Checkbox *Select Dropdown *File Upload *Image Upload *WYSIWYG editor *Date Picker *Time Picker *Color Picker *Taxonomy List Dropdwon *Post list Dropdown *Repeater Field to read more about it look at : WordPress taxonomies extra fields the easy way A: I wrote a Taxonomy Meta Script for WordPress, which can help you easily implement taxonomy meta.
wordpress
{ "language": "en", "length": 450, "provenance": "stackexchange_00019.jsonl.gz:418334", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46560" }
[ 0.0604248046875, 0.0127716064453125, 0.0160064697265625, -0.01470184326171875, 0.04217529296875, -0.01062774658203125, 0.071044921875, -0.046234130859375, 0.022491455078125, 0.0282440185546875, -0.03619384765625, -0.0168914794921875, 0.0174102783203125, -0.0204620361328125, -0.022705078125, -0.02587890625, 0.04034423828125, 0.00988006591796875, 0.0863037109375, 0.023773193359375, 0.00024199485778808594, 0.045806884765625, 0.0794677734375, -0.061553955078125, 0.056365966796875, -0.0489501953125, 0.032958984375, -0.032318115234375, 0.048004150390625, -0.006175994873046875, 0.0404052734375, -0.0092010498046875, 0.005756378173828125, -0.003215789794921875, 0.043701171875, 0.01039886474609375, 0.038970947265625, -0.0142822265625, 0.005580902099609375, 0.034332275390625, 0.0279388427734375, -0.0178375244140625, 0.0218048095703125, 0.047698974609375, 0.02313232421875, -0.0484619140625, 0.0165557861328125, -0.08404541015625, 0.01026153564453125, -0.04766845703125, 0.019622802734375, 0.0115509033203125, 0.040252685546875, -0.03143310546875, -0.009063720703125, 0.0260772705078125, -0.00254058837890625, -0.022613525390625, 0.0031185150146484375, -0.0128936767578125, 0.0005002021789550781, 0.003536224365234375, 0.0276641845703125, 0.026611328125, 0.0113983154296875, 0.0028533935546875, 0.0156402587890625, 0.01290130615234375, -0.050201416015625, 0.0018415451049804688, 0.03863525390625, -0.037445068359375, -0.005878448486328125, -0.00450897216796875, -0.00955963134765625, -0.0743408203125, 0.06378173828125, -0.043548583984375, -0.0200653076171875, 0.0308685302734375, 0.0251922607421875, -0.0187835693359375, 0.038848876953125, -0.0033283233642578125, -0.0070343017578125, 0.00518035888671875, -0.00417327880859375, -0.0010623931884765625, -0.003345489501953125, -0.025146484375, -0.01473236083984375, -0.034942626953125, -0.031951904296875, 0.047149658203125, -0.0199737548828125, 0.0081939697265625, 0.01035308837890625, 0.037261962890625, -0.040130615234375, 0.0159912109375, -0.034881591796875, -0.010528564453125, 0.021697998046875, -0.044189453125, 0.006931304931640625, 0.016815185546875, 0.0097808837890625, -0.033355712890625, 0.0191497802734375, 0.01885986328125, -0.01509857177734375, 0.022857666015625, -0.00554656982421875, -0.07501220703125, 0.0247344970703125, 0.0660400390625, 0.028594970703125, 0.020904541015625, 0.028717041015625, -0.0169525146484375, -0.0288848876953125, 0.0180511474609375, -0.017791748046875, -0.006946563720703125, 0.0164337158203125, 0.01012420654296875, 0.002849578857421875, -0.0096893310546875, -0.0242919921875, -0.0003407001495361328, -0.0238800048828125, 0.0204925537109375, 0.07806396484375, 0.046966552734375, 0.006839752197265625, 0.0015954971313476562, -0.013153076171875, -0.0340576171875, -0.00856781005859375, 0.01383209228515625, -0.013824462890625, -0.002857208251953125, 0.04864501953125, -0.0205535888671875, -0.00905609130859375, 0.0005178451538085938, 0.0153656005859375, 0.0283050537109375, -0.007015228271484375, -0.046478271484375, 0.0206756591796875, -0.0178375244140625, 0.06396484375, 0.005023956298828125, -0.0628662109375, -0.007965087890625, 0.008392333984375, -0.0250396728515625, -0.053619384765625, -0.04034423828125, -0.0465087890625, -0.0122222900390625, 0.00649261474609375, -0.01248931884765625, 0.010101318359375, 0.0216522216796875, 0.01099395751953125, 0.01678466796875, 0.01395416259765625, -0.00638580322265625, -0.0178070068359375, 0.005519866943359375, -0.0016775131225585938, -0.0039520263671875, -0.001117706298828125, 0.006290435791015625, -0.0015163421630859375, 0.00934600830078125, 0.01507568359375, 0.031646728515625, 0.003459930419921875, -0.0298919677734375, 0.0364990234375, -0.014892578125, -0.051666259765625, 0.0194091796875, -0.00537109375, 0.06756591796875, 0.027923583984375, 0.021575927734375, 0.00870513916015625, -0.02728271484375, -0.07220458984375, 0.00905609130859375, -0.005260467529296875, 0.01238250732421875, -0.0164031982421875, 0.00640869140625, -0.012786865234375, -0.023590087890625, -0.04736328125, 0.03485107421875, -0.037933349609375, 0.019256591796875, -0.033294677734375, 0.00861358642578125, -0.00977325439453125, 0.04705810546875, -0.043365478515625, 0.029754638671875, 0.0200958251953125, -0.032867431640625, 0.0109100341796875, -0.05352783203125, 0.01067352294921875, -0.0131683349609375, -0.013763427734375, -0.01238250732421875, -0.0010271072387695312, 0.00005054473876953125, -0.01043701171875, 0.01558685302734375, -0.0173492431640625, 0.026336669921875, 0.000308990478515625, 0.03082275390625, -0.0498046875, 0.015380859375, -0.0384521484375, 0.034759521484375, -0.0697021484375, 0.0241241455078125, 0.017486572265625, -0.0054473876953125, -0.004093170166015625, 0.0161285400390625, 0.01611328125, -0.09234619140625, -0.010498046875, 0.053924560546875, 0.0205078125, 0.0033359527587890625, -0.016937255859375, 0.01080322265625, 0.048492431640625, 0.005336761474609375, 0.0029048919677734375, -0.0008230209350585938, -0.0201873779296875, 0.005146026611328125, 0.0018701553344726562, 0.0179290771484375, 0.0300445556640625, 0.01056671142578125, -0.00850677490234375, 0.023040771484375, -0.05731201171875, -0.04498291015625, 0.018402099609375, 0.005035400390625, 0.01148223876953125, 0.035858154296875, 0.019012451171875, 0.0070953369140625, 0.0266876220703125, 0.0289459228515625, 0.0289459228515625, 0.030364990234375, -0.055328369140625, 0.0173797607421875, 0.031707763671875, 0.0416259765625, -0.009185791015625, 0.017822265625, 0.0146026611328125, 0.01299285888671875, -0.034149169921875, 0.01059722900390625, -0.01113128662109375, 0.004703521728515625, -0.0027904510498046875, 0.017578125, 0.0167388916015625, -0.00276947021484375, -0.01303863525390625, -0.059722900390625, 0.0261688232421875, 0.0185699462890625, -0.044647216796875, -0.02862548828125, -0.00003618001937866211, 0.032012939453125, 0.02166748046875, -0.03955078125, 0.02947998046875, 0.0019407272338867188, 0.0286407470703125, 0.0103607177734375, 0.0251922607421875, -0.0200347900390625, 0.033477783203125, 0.039459228515625, -0.0372314453125, 0.016876220703125, -0.01385498046875, -0.0496826171875, -0.034912109375, 0.0282745361328125, -0.001628875732421875, -0.048858642578125, -0.007602691650390625, 0.034210205078125, 0.018280029296875, -0.0113677978515625, 0.0157470703125, -0.01454925537109375, -0.0153045654296875, -0.00843048095703125, -0.0513916015625, -0.0291290283203125, 0.006145477294921875, -0.018707275390625, -0.005664825439453125, 0.0187225341796875, -0.024505615234375, -0.0221099853515625, 0.04583740234375, 0.00444793701171875, -0.0179901123046875, -0.063232421875, -0.036590576171875, -0.08941650390625, -0.0653076171875, -0.0290679931640625, 0.016082763671875, 0.01349639892578125, 0.0022945404052734375, 0.06268310546875, 0.0031147003173828125, -0.05194091796875, 0.024322509765625, 0.031982421875, 0.007671356201171875, 0.032623291015625, 0.026031494140625, -0.032562255859375, -0.0225372314453125, 0.0019121170043945312, 0.033111572265625, 0.023406982421875, -0.0200042724609375, 0.002452850341796875, -0.01233673095703125, 0.01119232177734375, 0.025970458984375, -0.0504150390625, -0.0002570152282714844, 0.056243896484375, 0.0101318359375, -0.00421142578125, 0.0046539306640625, -0.006626129150390625, -0.00489044189453125, -0.0189361572265625, -0.00003629922866821289, -0.004581451416015625, -0.044830322265625, 0.0262451171875, -0.026763916015625, 0.0030117034912109375, 0.007434844970703125, -0.008453369140625, -0.0166778564453125, -0.042755126953125, -0.06317138671875, 0.002552032470703125, -0.0025577545166015625, -0.026153564453125, -0.01552581787109375, -0.0225067138671875, 0.0190277099609375, -0.00803375244140625, 0.0171356201171875, -0.0214385986328125, -0.033538818359375, 0.046051025390625, -0.0252838134765625, 0.030853271484375, -0.062744140625, -0.0267333984375, -0.032958984375, 0.08294677734375, -0.03192138671875, -0.021484375, -0.0171661376953125, 0.0032711029052734375, 0.02813720703125, 0.0014171600341796875, 0.0008940696716308594, -0.036712646484375, -0.0537109375, -0.01201629638671875, -0.0009899139404296875, -0.02850341796875, -0.0228118896484375, 0.033935546875, -0.040802001953125, -0.020751953125, 0.0226593017578125, -0.036651611328125, 0.0002117156982421875, 0.0146331787109375, -0.00876617431640625, -0.0157012939453125, -0.010650634765625, -0.036712646484375, -0.042205810546875, -0.0157928466796875, -0.0238494873046875, 0.037628173828125, 0.00445556640625, 0.014129638671875, 0.006366729736328125, 0.047576904296875, -0.0137939453125, 0.0269622802734375, -0.00646209716796875, 0.039794921875, 0.000014662742614746094, -0.04925537109375, -0.006683349609375, -0.047576904296875, -0.0162353515625, -0.0582275390625, -0.019073486328125, -0.024383544921875, -0.0145721435546875, 0.0256195068359375, 0.0002846717834472656, -0.004039764404296875, -0.01165771484375, -0.01953125, -0.020050048828125, 0.0201873779296875, -0.0090179443359375, -0.004680633544921875, -0.029083251953125, -0.0162506103515625, 0.005825042724609375, 0.0174407958984375, -0.0270843505859375, 0.032684326171875, 0.040618896484375, 0.0037670135498046875, -0.0185394287109375, -0.10089111328125, 0.035491943359375, 0.04608154296875, -0.0007991790771484375, 0.0009965896606445312, 0.00264739990234375, -0.031951904296875, 0.0274200439453125, 0.01171112060546875, 0.019744873046875, -0.06256103515625, 0.08233642578125, -0.014312744140625, -0.0003571510314941406, 0.01666259765625, -0.03704833984375, 0.031585693359375, 0.0149383544921875, -0.014251708984375, -0.05169677734375, -0.056304931640625, 0.0875244140625, 0.01837158203125, 0.037139892578125, -0.06817626953125, -0.033477783203125, 0.0229644775390625, -0.042205810546875, 0.0165557861328125, 0.0166015625, -0.01332855224609375, -0.009765625, -0.03125, 0.0035762786865234375, -0.01371002197265625, -0.01727294921875, -0.01425933837890625, 0.0171966552734375, 0.01169586181640625, 0.00211334228515625, -0.0091705322265625, -0.00787353515625, 0.048736572265625, -0.0085601806640625, -0.056396484375, 0.012420654296875, -0.00763702392578125, 0.0245819091796875, 0.0265045166015625, 0.042877197265625, 0.05426025390625, 0.0206298828125, 0.00434112548828125, -0.0118255615234375, -0.010650634765625, 0.008148193359375, -0.035919189453125, -0.0308685302734375, -0.0186309814453125, -0.007129669189453125, 0.0195770263671875, 0.0294189453125, -0.055145263671875, 0.0230560302734375, -0.0030002593994140625, 0.0145416259765625, -0.000644683837890625, 0.02545166015625, 0.00797271728515625, -0.008514404296875, 0.0081939697265625, 0.020355224609375, 0.01177978515625, -0.0168914794921875, 0.044281005859375, -0.0106048583984375, 0.0019893646240234375, -0.039398193359375, -0.0633544921875, 0.07257080078125, -0.045318603515625, 0.004505157470703125, -0.0238037109375, -0.05389404296875, -0.0277557373046875, -0.007472991943359375, 0.01454925537109375, 0.033843994140625, -0.023193359375, -0.002994537353515625, -0.0027332305908203125, 0.003978729248046875, 0.039825439453125, -0.0400390625, 0.0182952880859375, 0.0007500648498535156, 0.0017080307006835938, -0.068359375, 0.017852783203125, 0.0227508544921875, -0.046600341796875, -0.079345703125, 0.023345947265625, -0.021820068359375, 0.035186767578125, -0.030120849609375, 0.02850341796875, -0.004177093505859375, 0.0029296875, 0.0010423660278320312, 0.0157318115234375, 0.00821685791015625, -0.0086669921875, -0.024871826171875, 0.01033782958984375, -0.039581298828125, 0.00635528564453125, -0.0150604248046875, -0.04925537109375, -0.0194091796875, -0.021392822265625, -0.004791259765625, 0.045562744140625, 0.00531005859375, 0.0251312255859375, 0.01708984375, 0.0017976760864257812, -0.0162353515625, 0.05084228515625, 0.01088714599609375, 0.01157379150390625, 0.00323486328125, 0.034820556640625, 0.0169219970703125, -0.00994873046875, -0.04052734375, -0.0209503173828125, -0.01074981689453125, -0.07550048828125, -0.03277587890625, 0.0338134765625, -0.055206298828125, 0.0479736328125, 0.0216217041015625, 0.010955810546875, 0.036590576171875, -0.0260467529296875, 0.006961822509765625, 0.0032520294189453125, 0.022125244140625, -0.055145263671875, -0.020904541015625, 0.07666015625, -0.0283660888671875, 0.0115814208984375, -0.0150604248046875, 0.0293426513671875, 0.0068817138671875, -0.0270233154296875, 0.0014524459838867188, 0.0252685546875, -0.02191162109375, 0.027008056640625, 0.02752685546875, -0.0014820098876953125, 0.0139923095703125, 0.0017719268798828125, -0.0008692741394042969, -0.0247344970703125, 0.012847900390625, -0.01450347900390625, -0.00982666015625, 0.045257568359375, 0.00868988037109375, -0.021728515625, 0.03277587890625, -0.03619384765625, -0.00705718994140625, -0.01494598388671875, 0.0192108154296875, 0.01335906982421875, 0.0178375244140625, 0.01381683349609375, -0.017425537109375, 0.006435394287109375, 0.0034618377685546875, -0.01421356201171875, -0.0163726806640625, 0.0135955810546875, -0.025146484375, -0.03155517578125, -0.006114959716796875, 0.0191650390625, -0.0277557373046875, -0.01806640625, -0.01934814453125, 0.00749969482421875, 0.042633056640625, -0.035003662109375, -0.0151824951171875, -0.0297088623046875, 0.00023853778839111328, 0.006072998046875, -0.0212860107421875, -0.0082550048828125, -0.01001739501953125, 0.02728271484375, -0.058868408203125, 0.03253173828125, 0.0110931396484375, -0.0094451904296875, 0.06549072265625, 0.0318603515625, 0.02215576171875, -0.005313873291015625, -0.0086212158203125, -0.0019121170043945312, 0.006793975830078125, -0.008880615234375, 0.00582122802734375, -0.016204833984375, -0.0005650520324707031, 0.007366180419921875, -0.017913818359375, -0.015960693359375, -0.020599365234375, -0.0341796875, 0.0953369140625, -0.05328369140625, -0.004421234130859375, 0.018402099609375, 0.005161285400390625, -0.00788116455078125, 0.0223388671875, 0.05224609375, -0.006877899169921875, -0.00388336181640625, 0.0318603515625, -0.01485443115234375, -0.036773681640625, 0.01526641845703125, -0.0633544921875, 0.0850830078125, -0.011932373046875, 0.01192474365234375, -0.01837158203125, 0.046478271484375, 0.0162506103515625, 0.036895751953125, -0.0270233154296875, 0.050628662109375, -0.00925445556640625, 0.0411376953125, -0.034423828125, -0.0003795623779296875, 0.01050567626953125, 0.02264404296875, 0.0947265625, 0.022430419921875, -0.02984619140625, -0.0081939697265625, 0.042999267578125, 0.013397216796875, -0.0275115966796875, 0.052703857421875, 0.004535675048828125, -0.033294677734375, -0.0021839141845703125, -0.0021209716796875, 0.02752685546875, -0.046234130859375, -0.006809234619140625, 0.01568603515625, 0.0010499954223632812, 0.00817108154296875, -0.031829833984375, 0.04779052734375, 0.0012416839599609375, -0.037109375, 0.00411224365234375, -0.044097900390625, 0.02191162109375, -0.0172576904296875, -0.0254364013671875, 0.003398895263671875, 0.01490020751953125, 0.008575439453125, 0.025787353515625, -0.01403045654296875, 0.03948974609375, 0.0170440673828125, 0.0115814208984375, 0.044769287109375, 0.0016422271728515625, 0.0210723876953125, 0.04034423828125, -0.026702880859375, 0.053741455078125, -0.01354217529296875, 0.0269927978515625, -0.08837890625, -0.0181732177734375, 0.052276611328125, 0.08172607421875, -0.046051025390625, -0.0213775634765625, 0.00606536865234375, -0.002948760986328125, 0.005329132080078125, 0.0076141357421875, 0.0210113525390625, 0.048583984375, 0.0482177734375, -0.03839111328125, 0.00032329559326171875, 0.01708984375, 0.0435791015625, -0.00421142578125, 0.022613525390625, -0.0540771484375, -0.04156494140625, -0.060760498046875, 0.034332275390625, 0.00777435302734375, 0.068115234375, 0.003314971923828125, 0.06512451171875, -0.02508544921875, -0.015228271484375, -0.01235198974609375, 0.0228118896484375, 0.00787353515625, -0.001979827880859375, -0.02227783203125, -0.032379150390625, 0.007762908935546875, 0.0268402099609375, -0.01168060302734375, 0.01499176025390625, 0.04071044921875, 0.049407958984375, -0.036651611328125, -0.020416259765625, 0.031005859375, -0.02630615234375, 0.0219268798828125, -0.04534912109375, 0.06646728515625, 0.05914306640625, 0.01314544677734375, -0.019134521484375, 0.00815582275390625, 0.0966796875, -0.0347900390625, 0.015777587890625, -0.00524139404296875, -0.0298614501953125, 0.053985595703125, -0.0261993408203125, 0.034759521484375, -0.0142364501953125, -0.0869140625, -0.02301025390625, -0.0196990966796875, -0.04345703125, 0.049835205078125, 0.04351806640625, -0.034637451171875, 0.00914764404296875, -0.00417327880859375, 0.00774383544921875, 0.0007662773132324219, -0.008453369140625, -0.006732940673828125, 0.0157318115234375, 0.03265380859375, 0.0008149147033691406, -0.0216827392578125, 0.0009446144104003906, 0.00047779083251953125, 0.0109710693359375, -0.0008287429809570312, 0.054779052734375, 0.006107330322265625, 0.004058837890625, -0.0308837890625, 0.001934051513671875, -0.003856658935546875, -0.028533935546875, 0.011016845703125, 0.01910400390625, 0.0021305084228515625, -0.004657745361328125, -0.0226898193359375, 0.00307464599609375, 0.045257568359375, -0.06060791015625, -0.036865234375, 0.021392822265625, 0.00974273681640625, -0.0206451416015625, 0.029693603515625, -0.016510009765625, -0.014068603515625, -0.04315185546875, -0.045867919921875, 0.0384521484375, 0.038665771484375, 0.032196044921875, 0.0229339599609375, 0.03369140625, 0.00389862060546875, 0.0192718505859375, -0.015594482421875, 0.036285400390625, 0.029876708984375, -0.0179443359375, 0.00044989585876464844, 0.0162506103515625, -0.0244598388671875, 0.0224609375, -0.02655029296875, 0.042877197265625, 0.01739501953125, -0.06805419921875, 0.0386962890625, 0.0362548828125, 0.056793212890625, -0.0170745849609375, 0.00890350341796875, 0.04376220703125, 0.00539398193359375, 0.00263214111328125, -0.00838470458984375, -0.037353515625, -0.0792236328125, 0.0025634765625, 0.037811279296875, -0.05963134765625, -0.00954437255859375, -0.12432861328125, -0.0112457275390625, 0.0372314453125, 0.01299285888671875, -0.037445068359375, 0.0274505615234375, 0.0015192031860351562, -0.00911712646484375, 0.0205841064453125, -0.033660888671875, 0.02032470703125, 0.05517578125, -0.0165557861328125, -0.0285797119140625, -0.0201568603515625, 0.01128387451171875, -0.041534423828125, 0.03131103515625, 0.016754150390625, -0.046783447265625, 0.0391845703125, 0.0421142578125, 0.05810546875, 0.06329345703125, 0.062286376953125, -0.0273284912109375, 0.0069122314453125, -0.0041961669921875, 0.01102447509765625, -0.00946807861328125, 0.00051116943359375, -0.010009765625, -0.00800323486328125, -0.043548583984375, 0.011505126953125, 0.018218994140625, -0.054534912109375, -0.09881591796875, 0.0780029296875, -0.03277587890625, -0.03424072265625, -0.0190277099609375, -0.024688720703125, -0.033416748046875, 0.035919189453125, -0.0016965866088867188, 0.00301361083984375, 0.0014057159423828125, 0.057281494140625, 0.0347900390625, 0.009124755859375, 0.0306243896484375, 0.0193328857421875, -0.034027099609375, 0.03076171875, 0.007099151611328125, 0.0247802734375, -0.00783538818359375, -0.0160675048828125, -0.005157470703125, 0.01073455810546875, -0.056243896484375, -0.081787109375, 0.00885772705078125, 0.04095458984375, -0.005382537841796875, -0.042999267578125, -0.025390625, -0.0148773193359375, 0.06182861328125, 0.036865234375, 0.01163482666015625, -0.037139892578125, -0.0068511962890625, -0.02850341796875, -0.01413726806640625, -0.0187835693359375, 0.0004248619079589844, -0.05206298828125, -0.005092620849609375, -0.00016391277313232422, -0.002574920654296875, 0.00029087066650390625, 0.043792724609375, -0.017669677734375, 0.004596710205078125, 0.06597900390625, 0.004207611083984375, -0.09906005859375, -0.01544189453125, 0.0102996826171875, -0.027587890625, -0.01505279541015625, -0.027923583984375, 0.0379638671875, -0.0255279541015625, -0.0361328125, -0.0209808349609375, -0.0224151611328125, 0.010498046875, 0.031890869140625, -0.0155792236328125, 0.01044464111328125, -0.00788116455078125, 0.00469207763671875, -0.028167724609375, 0.0216217041015625, 0.0294647216796875, 0.038421630859375, -0.034332275390625, 0.02197265625, 0.0306396484375, -0.00034689903259277344, -0.0260772705078125, -0.049560546875, -0.0362548828125, 0.0222625732421875, -0.055755615234375, 0.0162200927734375, 0.0011072158813476562, -0.046722412109375, 0.009185791015625, -0.018341064453125, 0.007720947265625, -0.04339599609375, 0.01059722900390625, -0.037841796875, -0.01294708251953125, 0.0263214111328125 ]
eea403ec9ed07cec7458ce36b63ff626c47e79e2
Wordpress Stackexchange Q: Child Theme: how to override variables? I'm going to build my first Child Theme. I understood how to override functions (hope!), but how to override variables? For example, in a Premium Template I want to change the values of feed variables shown in functions.php: $app_rss_feed = 'http://xxx.rss'; $app_twitter_rss_feed = 'http://yyy.rss'; $app_forum_rss_feed = 'http://zzz.rss'; But if I create my functions.php file inside my child theme and assign a different RSS feed value to these variables... nothing happens. So, which is the right way to change variables? A: I'm mobile, so this will be short. Use the after_setup_theme hook to add a function to set those variables. Declare them as global inside that function before setting them. Hope that helps. If anybody wants to add an example to this answer before I get home, feel free. ;)
Q: Child Theme: how to override variables? I'm going to build my first Child Theme. I understood how to override functions (hope!), but how to override variables? For example, in a Premium Template I want to change the values of feed variables shown in functions.php: $app_rss_feed = 'http://xxx.rss'; $app_twitter_rss_feed = 'http://yyy.rss'; $app_forum_rss_feed = 'http://zzz.rss'; But if I create my functions.php file inside my child theme and assign a different RSS feed value to these variables... nothing happens. So, which is the right way to change variables? A: I'm mobile, so this will be short. Use the after_setup_theme hook to add a function to set those variables. Declare them as global inside that function before setting them. Hope that helps. If anybody wants to add an example to this answer before I get home, feel free. ;) A: The parent theme’s functions.php is loaded later, it will overwrite those variables. Show us the code where these variables are declared and where thex are used, there may be a filter you could use. An example: In fetch_feed() you can filter the feed URL: do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); To filter the values, you could check for the parent theme’s URL: add_filter( 'wp_feed_options', 'wpse_46644_feed' ); function wpse_46644_feed( $arr ) { if ( 'http://example.com/feed/' === $arr[1] ) { $arr[0]->set_feed_url( 'http://replacement.example.com/feed/' ); } } Not tested, just an idea.
wordpress
{ "language": "en", "length": 226, "provenance": "stackexchange_00019.jsonl.gz:418358", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46644" }
[ 0.02423095703125, -0.026397705078125, 0.00899505615234375, -0.01461029052734375, -0.032958984375, -0.00807952880859375, 0.0148468017578125, -0.033843994140625, 0.00015854835510253906, -0.00569915771484375, -0.0307159423828125, -0.020111083984375, -0.0271148681640625, -0.0226287841796875, -0.01407623291015625, -0.05694580078125, 0.0241241455078125, -0.04132080078125, -0.00537872314453125, -0.0174560546875, 0.0027408599853515625, 0.004436492919921875, 0.01189422607421875, 0.041351318359375, 0.05438232421875, -0.03875732421875, -0.0038299560546875, -0.024383544921875, 0.020782470703125, -0.011199951171875, 0.025299072265625, 0.005340576171875, 0.01152801513671875, 0.0253753662109375, -0.0215911865234375, -0.048980712890625, -0.007534027099609375, 0.007350921630859375, -0.004520416259765625, 0.0218963623046875, 0.05078125, -0.037567138671875, -0.00008749961853027344, 0.03717041015625, -0.003002166748046875, -0.03753662109375, 0.038787841796875, -0.06884765625, -0.0173187255859375, -0.00441741943359375, 0.022613525390625, 0.008880615234375, 0.0288543701171875, 0.0115203857421875, 0.0009565353393554688, -0.0013866424560546875, 0.003833770751953125, -0.02301025390625, 0.0303955078125, -0.0132904052734375, -0.0119476318359375, -0.013336181640625, 0.038360595703125, -0.00009936094284057617, 0.0216827392578125, -0.0160369873046875, 0.0025310516357421875, 0.028167724609375, -0.07269287109375, 0.0095672607421875, 0.052337646484375, -0.049072265625, 0.0055694580078125, -0.011993408203125, -0.0186920166015625, -0.002239227294921875, 0.0204315185546875, 0.00043845176696777344, 0.0139007568359375, -0.012542724609375, 0.00519561767578125, -0.013275146484375, 0.00916290283203125, -0.0003330707550048828, -0.00887298583984375, 0.004795074462890625, -0.00994110107421875, -0.0016450881958007812, -0.0313720703125, 0.00951385498046875, -0.024017333984375, -0.007274627685546875, -0.0254058837890625, 0.006927490234375, -0.0009088516235351562, -0.00801849365234375, 0.04608154296875, 0.046234130859375, -0.0238800048828125, 0.0034999847412109375, -0.03399658203125, -0.0172882080078125, 0.0052032470703125, -0.026885986328125, -0.03399658203125, 0.020355224609375, 0.01849365234375, 0.0689697265625, 0.021636962890625, 0.058258056640625, 0.009857177734375, 0.0085601806640625, -0.0229034423828125, 0.01335906982421875, -0.04052734375, -0.002498626708984375, -0.06396484375, 0.0002276897430419922, -0.0211181640625, 0.0196685791015625, 0.033538818359375, 0.033294677734375, -0.022491455078125, 0.011688232421875, -0.0011005401611328125, 0.00135040283203125, -0.036773681640625, -0.0155181884765625, -0.05230712890625, 0.0831298828125, -0.0333251953125, -0.020416259765625, 0.054443359375, 0.055084228515625, 0.007404327392578125, -0.03851318359375, 0.0572509765625, -0.0290679931640625, -0.01309967041015625, 0.0419921875, -0.008575439453125, -0.060150146484375, -0.0274658203125, -0.01036834716796875, -0.0163421630859375, 0.037017822265625, 0.0256500244140625, 0.006053924560546875, -0.0117645263671875, -0.048370361328125, -0.007434844970703125, -0.0034122467041015625, 0.006694793701171875, 0.039825439453125, 0.006626129150390625, 0.023101806640625, 0.04412841796875, -0.0137786865234375, -0.016632080078125, -0.0251312255859375, -0.01824951171875, -0.026153564453125, 0.009796142578125, -0.0276031494140625, -0.039031982421875, 0.0261993408203125, -0.0165557861328125, 0.0022869110107421875, 0.0162353515625, -0.0058746337890625, 0.017364501953125, -0.004573822021484375, -0.03466796875, 0.027252197265625, 0.0302734375, 0.026092529296875, -0.04119873046875, 0.0208587646484375, 0.0269622802734375, -0.0128021240234375, -0.005535125732421875, -0.04193115234375, 0.019622802734375, 0.0209808349609375, -0.051239013671875, 0.0071563720703125, -0.015899658203125, 0.00008404254913330078, 0.0621337890625, -0.0014562606811523438, 0.01739501953125, -0.0135955810546875, -0.025390625, 0.0292816162109375, 0.0175933837890625, -0.0303192138671875, 0.00884246826171875, -0.00860595703125, 0.006069183349609375, -0.023468017578125, -0.0014028549194335938, 0.0237884521484375, -0.004581451416015625, 0.01358795166015625, 0.0014696121215820312, 0.0071563720703125, -0.0084075927734375, 0.0300140380859375, -0.01116180419921875, 0.041900634765625, 0.0171051025390625, 0.0013227462768554688, -0.00673675537109375, -0.04034423828125, -0.00426483154296875, -0.00640106201171875, -0.0031566619873046875, 0.06915283203125, 0.0189666748046875, 0.032470703125, 0.027130126953125, -0.0123443603515625, 0.040771484375, 0.006988525390625, 0.0288848876953125, -0.0144500732421875, -0.00850677490234375, -0.02630615234375, 0.01526641845703125, 0.00962066650390625, -0.03204345703125, 0.01500701904296875, -0.046844482421875, -0.0163421630859375, -0.005168914794921875, 0.0158843994140625, 0.0008897781372070312, -0.0280609130859375, 0.0013608932495117188, 0.021759033203125, 0.04144287109375, 0.0391845703125, -0.001194000244140625, -0.0014753341674804688, 0.061065673828125, -0.008636474609375, 0.0189361572265625, -0.031402587890625, 0.0594482421875, 0.0887451171875, -0.02386474609375, -0.01409912109375, -0.00464630126953125, -0.1104736328125, 0.0176239013671875, 0.046112060546875, 0.022247314453125, -0.049774169921875, 0.0198974609375, 0.028472900390625, 0.00395965576171875, 0.0599365234375, -0.038177490234375, 0.052734375, 0.060272216796875, 0.030029296875, 0.02996826171875, 0.0157928466796875, -0.041656494140625, 0.014862060546875, 0.019195556640625, -0.016632080078125, 0.00643157958984375, -0.01409912109375, -0.05535888671875, -0.017181396484375, 0.009613037109375, 0.037506103515625, -0.04852294921875, -0.03887939453125, 0.0214996337890625, 0.08795166015625, -0.0168914794921875, -0.0250396728515625, -0.015625, -0.00360870361328125, -0.0330810546875, 0.00565338134765625, 0.0223236083984375, 0.044219970703125, 0.04949951171875, 0.0252532958984375, -0.004306793212890625, 0.04449462890625, -0.041656494140625, 0.00689697265625, 0.0237884521484375, -0.0194091796875, 0.0258941650390625, -0.0242156982421875, 0.039703369140625, 0.0421142578125, -0.01067352294921875, 0.00927734375, -0.0161285400390625, -0.00919342041015625, -0.025421142578125, 0.00974273681640625, -0.00298309326171875, -0.0272369384765625, -0.02593994140625, 0.0177001953125, 0.032470703125, 0.0237579345703125, 0.01561737060546875, -0.024749755859375, -0.0005564689636230469, 0.031646728515625, -0.0322265625, -0.0175018310546875, 0.031646728515625, -0.033203125, -0.0014410018920898438, -0.0181121826171875, -0.0159149169921875, -0.022796630859375, -0.0088653564453125, -0.00408935546875, 0.008758544921875, -0.04949951171875, -0.02838134765625, -0.062255859375, -0.0714111328125, -0.00548553466796875, 0.0176239013671875, 0.0152587890625, -0.0079193115234375, 0.0291748046875, -0.00732421875, -0.0306549072265625, -0.00884246826171875, 0.0022335052490234375, 0.007625579833984375, -0.024017333984375, 0.024993896484375, -0.0506591796875, 0.01059722900390625, -0.0037689208984375, 0.055145263671875, 0.0218658447265625, -0.02398681640625, -0.0035991668701171875, -0.017852783203125, 0.0003845691680908203, 0.0048065185546875, 0.0278167724609375, 0.0190887451171875, 0.002811431884765625, 0.019287109375, -0.0401611328125, -0.061981201171875, -0.0257720947265625, -0.07720947265625, 0.042144775390625, 0.07440185546875, 0.0184326171875, -0.03863525390625, 0.02777099609375, -0.01024627685546875, -0.0263824462890625, 0.045166015625, -0.0516357421875, -0.004650115966796875, -0.0172119140625, -0.007236480712890625, -0.0195465087890625, 0.029083251953125, -0.006290435791015625, 0.004974365234375, 0.006908416748046875, 0.0208892822265625, -0.0262451171875, 0.040252685546875, -0.04730224609375, -0.004833221435546875, -0.00020122528076171875, -0.04754638671875, 0.024810791015625, -0.0182952880859375, 0.0034027099609375, -0.02508544921875, 0.036346435546875, -0.02398681640625, -0.00453948974609375, 0.01343536376953125, 0.027984619140625, -0.071044921875, -0.058013916015625, -0.059112548828125, 0.004840850830078125, -0.0291900634765625, 0.00592803955078125, -0.01483154296875, 0.00960540771484375, -0.0126800537109375, 0.03485107421875, -0.0023746490478515625, -0.0226593017578125, 0.0124053955078125, -0.019256591796875, -0.0421142578125, 0.018585205078125, -0.06005859375, -0.0066070556640625, 0.01059722900390625, -0.028900146484375, -0.039093017578125, -0.022430419921875, -0.0253448486328125, 0.049407958984375, 0.05804443359375, -0.07293701171875, 0.03424072265625, 0.060943603515625, -0.0268707275390625, -0.01479339599609375, -0.0159454345703125, 0.0122528076171875, -0.023651123046875, 0.00616455078125, -0.0167388916015625, -0.009613037109375, -0.011016845703125, -0.0063934326171875, -0.039642333984375, 0.020050048828125, 0.005901336669921875, 0.0276336669921875, 0.0247802734375, -0.0201416015625, -0.0867919921875, -0.033721923828125, -0.032958984375, -0.00830078125, 0.01448822021484375, -0.0305938720703125, -0.03936767578125, -0.085205078125, 0.020782470703125, -0.0265350341796875, -0.0150604248046875, 0.005496978759765625, 0.036895751953125, 0.023406982421875, -0.01200103759765625, 0.05316162109375, -0.0216064453125, 0.0276336669921875, 0.00036787986755371094, 0.00228118896484375, -0.0162811279296875, -0.026702880859375, 0.04034423828125, 0.0008044242858886719, 0.0173492431640625, 0.02117919921875, 0.053619384765625, 0.00879669189453125, -0.00702667236328125, 0.01959228515625, 0.01419830322265625, -0.05230712890625, -0.032806396484375, -0.0286712646484375, 0.0156707763671875, 0.01165771484375, 0.0233306884765625, -0.01322174072265625, 0.02960205078125, -0.024566650390625, -0.0179901123046875, 0.01306915283203125, 0.006847381591796875, -0.0230255126953125, 0.0137939453125, -0.006328582763671875, -0.04364013671875, -0.045501708984375, 0.0280609130859375, 0.007114410400390625, 0.0401611328125, -0.030059814453125, 0.036041259765625, -0.0003921985626220703, -0.01262664794921875, -0.004673004150390625, -0.004150390625, 0.01267242431640625, 0.004791259765625, -0.02801513671875, -0.0195465087890625, 0.0275115966796875, -0.0006260871887207031, 0.00687408447265625, 0.0184326171875, 0.0192718505859375, 0.00835418701171875, 0.0021190643310546875, 0.011810302734375, 0.001918792724609375, 0.019378662109375, -0.0174560546875, 0.046356201171875, 0.022857666015625, -0.017974853515625, 0.00011426210403442383, 0.0157012939453125, 0.0130767822265625, -0.01036834716796875, -0.007434844970703125, 0.006389617919921875, 0.01183319091796875, -0.02301025390625, 0.0241546630859375, 0.045745849609375, 0.016357421875, -0.05780029296875, 0.062042236328125, -0.002353668212890625, -0.0122833251953125, 0.00762939453125, 0.03692626953125, 0.01264190673828125, 0.01441192626953125, -0.01480865478515625, -0.038970947265625, 0.0034084320068359375, 0.0223388671875, -0.01123046875, -0.0120849609375, -0.0121612548828125, -0.034576416015625, 0.0160064697265625, -0.007648468017578125, 0.015960693359375, -0.0237274169921875, -0.01462554931640625, 0.023223876953125, -0.002269744873046875, 0.0166015625, -0.0124359130859375, -0.0237884521484375, -0.047607421875, 0.0185546875, 0.02117919921875, -0.077392578125, -0.09332275390625, 0.01055145263671875, 0.0066680908203125, 0.03857421875, -0.025726318359375, 0.026763916015625, -0.0269012451171875, -0.0005793571472167969, 0.00231170654296875, -0.016082763671875, 0.083740234375, 0.05670166015625, -0.058624267578125, 0.00023281574249267578, -0.050201416015625, -0.0268707275390625, -0.09210205078125, -0.036956787109375, -0.0845947265625, 0.04132080078125, -0.0149688720703125, 0.01535797119140625, -0.0279541015625, -0.01169586181640625, 0.0112152099609375, 0.02630615234375, 0.00832366943359375, 0.04339599609375, 0.02557373046875, 0.031524658203125, -0.027587890625, 0.02716064453125, 0.01087188720703125, -0.0015993118286132812, -0.044921875, -0.0231781005859375, -0.00276947021484375, 0.020538330078125, -0.0187835693359375, -0.002361297607421875, -0.0108642578125, -0.0235137939453125, 0.07208251953125, -0.0025501251220703125, 0.05743408203125, -0.0229949951171875, 0.00719451904296875, -0.023468017578125, 0.0105133056640625, -0.0625, 0.0369873046875, 0.016387939453125, -0.025848388671875, -0.057769775390625, 0.01561737060546875, 0.004390716552734375, 0.024688720703125, 0.01654052734375, -0.0017251968383789062, -0.028656005859375, -0.11846923828125, 0.0850830078125, 0.08563232421875, 0.0006403923034667969, 0.049346923828125, -0.041900634765625, -0.0026607513427734375, 0.038726806640625, 0.0245361328125, -0.0102996826171875, -0.03350830078125, 0.0236968994140625, 0.00939178466796875, 0.006847381591796875, 0.00750732421875, -0.01427459716796875, -0.02197265625, 0.059661865234375, 0.040771484375, -0.06256103515625, -0.025054931640625, -0.001499176025390625, -0.0159912109375, -0.0129852294921875, 0.042633056640625, -0.008270263671875, 0.0281982421875, -0.0252227783203125, -0.0307769775390625, -0.01435089111328125, 0.01456451416015625, 0.0182647705078125, 0.0008859634399414062, 0.00415802001953125, 0.0648193359375, 0.01763916015625, -0.0345458984375, -0.001007080078125, 0.0267486572265625, 0.01430511474609375, 0.0166168212890625, -0.00812530517578125, 0.0100555419921875, -0.055084228515625, -0.050323486328125, -0.016937255859375, -0.0200042724609375, -0.036224365234375, -0.01210784912109375, -0.04339599609375, 0.01502227783203125, 0.016082763671875, -0.0151214599609375, -0.0185394287109375, -0.0088653564453125, -0.03466796875, -0.0113677978515625, -0.03192138671875, 0.0007376670837402344, -0.015777587890625, -0.033294677734375, 0.0012454986572265625, -0.039337158203125, -0.0274658203125, 0.003246307373046875, -0.0266265869140625, 0.006023406982421875, -0.0222625732421875, -0.00994110107421875, 0.035675048828125, 0.01268768310546875, -0.007221221923828125, -0.003936767578125, 0.03057861328125, -0.0589599609375, -0.051666259765625, 0.005970001220703125, -0.059478759765625, -0.0240020751953125, -0.0254669189453125, -0.07232666015625, 0.142822265625, 0.001922607421875, 0.034423828125, 0.034820556640625, 0.051483154296875, -0.062255859375, 0.0099029541015625, -0.0416259765625, 0.03936767578125, 0.0511474609375, 0.035797119140625, -0.0325927734375, -0.0213165283203125, 0.01348114013671875, 0.046844482421875, 0.028533935546875, 0.005855560302734375, 0.01447296142578125, -0.00765228271484375, 0.05474853515625, 0.0199737548828125, -0.01995849609375, 0.004352569580078125, -0.0172882080078125, 0.006145477294921875, -0.00994873046875, -0.051239013671875, 0.01473236083984375, -0.066162109375, -0.01319122314453125, 0.0015964508056640625, 0.01137542724609375, -0.0120086669921875, 0.00688934326171875, -0.0155029296875, -0.059234619140625, 0.01314544677734375, 0.032073974609375, -0.0037670135498046875, 0.02728271484375, -0.0265655517578125, -0.017486572265625, 0.01187896728515625, 0.0006375312805175781, 0.007457733154296875, 0.0247955322265625, -0.0153656005859375, 0.01097869873046875, 0.0234832763671875, 0.0084075927734375, -0.03082275390625, 0.020172119140625, 0.0072479248046875, 0.02630615234375, -0.006687164306640625, 0.007358551025390625, 0.039031982421875, 0.029205322265625, 0.00916290283203125, 0.01666259765625, 0.03875732421875, 0.00899505615234375, -0.0193939208984375, -0.00201416015625, 0.0230712890625, 0.0019245147705078125, -0.007965087890625, 0.001495361328125, 0.0248565673828125, -0.00626373291015625, 0.0003647804260253906, -0.057769775390625, -0.0173797607421875, 0.0379638671875, 0.042266845703125, 0.01261138916015625, 0.048614501953125, -0.03631591796875, -0.07061767578125, -0.0018787384033203125, -0.039520263671875, -0.0121307373046875, 0.0316162109375, 0.027191162109375, 0.0267333984375, -0.003955841064453125, -0.01080322265625, -0.01995849609375, 0.0241546630859375, 0.01293182373046875, 0.0168914794921875, 0.00202178955078125, 0.017547607421875, 0.02691650390625, 0.01093292236328125, 0.0023670196533203125, -0.0218505859375, 0.043670654296875, 0.0027751922607421875, -0.07293701171875, -0.0229034423828125, -0.0010557174682617188, -0.040985107421875, -0.007640838623046875, -0.017913818359375, -0.034820556640625, -0.01436614990234375, -0.02813720703125, 0.005832672119140625, 0.036102294921875, -0.017913818359375, -0.006458282470703125, 0.0193634033203125, 0.00308990478515625, -0.01021575927734375, -0.0266571044921875, 0.0197906494140625, 0.020843505859375, 0.0318603515625, -0.06390380859375, -0.0125579833984375, -0.00867462158203125, -0.09661865234375, 0.054656982421875, 0.055511474609375, -0.030731201171875, -0.00030875205993652344, -0.0228118896484375, -0.022705078125, 0.0096893310546875, 0.00975799560546875, -0.024627685546875, 0.0168304443359375, 0.0123443603515625, -0.00907135009765625, 0.0240020751953125, -0.0038471221923828125, 0.01203155517578125, 0.036285400390625, 0.04107666015625, 0.0241851806640625, -0.01593017578125, 0.0275115966796875, -0.00011086463928222656, 0.0010547637939453125, 0.0017538070678710938, -0.00829315185546875, 0.0123748779296875, -0.004604339599609375, 0.01107025146484375, -0.01265716552734375, -0.0452880859375, 0.046234130859375, 0.01413726806640625, -0.025421142578125, 0.0295257568359375, -0.01739501953125, 0.0005197525024414062, -0.01119232177734375, -0.005733489990234375, -0.01442718505859375, -0.0165252685546875, -0.0164794921875, -0.007350921630859375, 0.035736083984375, 0.04705810546875, -0.004901885986328125, 0.035736083984375, 0.0276031494140625, 0.033599853515625, 0.0171661376953125, 0.0163421630859375, -0.010009765625, 0.015777587890625, -0.0196685791015625, -0.051727294921875, 0.00604248046875, -0.01806640625, -0.00533294677734375, 0.0002894401550292969, 0.055572509765625, -0.009918212890625, -0.018157958984375, 0.03656005859375, 0.033416748046875, 0.039520263671875, -0.026641845703125, -0.0017824172973632812, 0.05255126953125, -0.0021419525146484375, 0.012664794921875, -0.00823211669921875, -0.01526641845703125, -0.0213775634765625, -0.012786865234375, 0.0146484375, -0.0160369873046875, -0.02728271484375, -0.043853759765625, 0.04608154296875, 0.036407470703125, -0.0033130645751953125, -0.0526123046875, 0.04510498046875, -0.055999755859375, 0.046630859375, 0.0008878707885742188, -0.037750244140625, 0.0142364501953125, 0.0222320556640625, -0.02520751953125, -0.0178070068359375, -0.03350830078125, 0.0006742477416992188, -0.0298919677734375, 0.032958984375, 0.034210205078125, -0.006988525390625, 0.031219482421875, 0.03436279296875, 0.00579833984375, 0.08892822265625, -0.0309600830078125, -0.0355224609375, 0.0164794921875, 0.012603759765625, 0.007022857666015625, -0.0772705078125, 0.0155792236328125, -0.10406494140625, 0.0186767578125, 0.004505157470703125, -0.0197296142578125, 0.0042572021484375, -0.031524658203125, -0.0308380126953125, 0.07989501953125, 0.00656890869140625, -0.03070068359375, -0.0248260498046875, 0.0203857421875, -0.00403594970703125, -0.0034694671630859375, -0.00711822509765625, 0.003353118896484375, -0.00719451904296875, 0.01479339599609375, 0.031768798828125, 0.009490966796875, 0.033416748046875, 0.0310211181640625, -0.07977294921875, 0.0190582275390625, -0.016937255859375, 0.03167724609375, -0.04827880859375, 0.0249481201171875, -0.006256103515625, 0.003734588623046875, -0.031402587890625, -0.02606201171875, 0.02606201171875, 0.044677734375, -0.012603759765625, -0.0304718017578125, -0.04473876953125, -0.011444091796875, 0.08770751953125, 0.0704345703125, 0.019317626953125, -0.039154052734375, -0.042266845703125, -0.027557373046875, -0.0051422119140625, -0.0135040283203125, 0.0220947265625, -0.11297607421875, -0.017669677734375, 0.055633544921875, -0.022857666015625, 0.0158843994140625, -0.05670166015625, -0.055023193359375, -0.0024700164794921875, -0.06298828125, -0.0044708251953125, -0.00753021240234375, -0.0237579345703125, 0.0616455078125, -0.033782958984375, 0.01395416259765625, -0.0016984939575195312, 0.0204925537109375, 0.03277587890625, 0.0000673532485961914, 0.0185394287109375, 0.0213775634765625, -0.066162109375, 0.0028324127197265625, 0.00010311603546142578, 0.0811767578125, -0.045989990234375, -0.0450439453125, -0.02239990234375, -0.004680633544921875, 0.0015888214111328125, -0.02392578125, -0.0027179718017578125, 0.031524658203125, -0.00899505615234375, 0.08502197265625, -0.01361846923828125, 0.00930023193359375, -0.0279083251953125, 0.0333251953125, -0.05242919921875, 0.02081298828125, -0.03497314453125, 0.0202789306640625, -0.0010356903076171875, -0.00957489013671875, 0.00484466552734375, -0.051239013671875, 0.0280914306640625, -0.004032135009765625, -0.003116607666015625, 0.0269622802734375 ]
2db41d7dbce3fa04a92cab6151a934ac1df9a487
Wordpress Stackexchange Q: Change page title from plugin Is possible to change page title on the fly from plugin? I've try global $post, but seem like plugin runs after. Any Ideas? Edit: Im writting some pages on the fly, based on same page / post, so every page show the same title. Looking a way to do via shortcode or writting my own plugin/function A: There's a filter for that: function wpse_alter_title( $title, $id ) { // $id = $post->ID; // alter the title here return $title; } If you want to alter the "Protected" and "Private" titles, then you need other filters: // Preserve the "%s" - else the title will be removed. function wpse_alter_protected_title_format( $title ) { return __( 'Protected: %s' ); } function wpse_alter_private_title_format( $title ) { return __( 'Private: %s' ); } Last but not least, you must add your filter callbacks early enough. function wpse_load_alter_title() { add_filter( 'the_title', 'wpse_alter_title', 20, 2 ); add_filter( 'protected_title_format', 'wpse_alter_protected_title_format' ); add_filter( 'private_title_format', 'wpse_alter_private_title_format' ); } add_action( 'init', 'wpse_load_alter_title' );
Q: Change page title from plugin Is possible to change page title on the fly from plugin? I've try global $post, but seem like plugin runs after. Any Ideas? Edit: Im writting some pages on the fly, based on same page / post, so every page show the same title. Looking a way to do via shortcode or writting my own plugin/function A: There's a filter for that: function wpse_alter_title( $title, $id ) { // $id = $post->ID; // alter the title here return $title; } If you want to alter the "Protected" and "Private" titles, then you need other filters: // Preserve the "%s" - else the title will be removed. function wpse_alter_protected_title_format( $title ) { return __( 'Protected: %s' ); } function wpse_alter_private_title_format( $title ) { return __( 'Private: %s' ); } Last but not least, you must add your filter callbacks early enough. function wpse_load_alter_title() { add_filter( 'the_title', 'wpse_alter_title', 20, 2 ); add_filter( 'protected_title_format', 'wpse_alter_protected_title_format' ); add_filter( 'private_title_format', 'wpse_alter_private_title_format' ); } add_action( 'init', 'wpse_load_alter_title' ); A: This depends on the context your page title is being rendered in and how the data is being fed into it. Consider the following: <h2><?php the_title(); ?></h2> Solution would involve hooking to the the_title filter and alter it in a breeze. How about this? <h2><?php echo $post->post_title; ?></h2> // not nice! And it's not nice due to the problems with altering it. It's hard to know how the $post got populated in the first place. Consider: foreach( get_posts( ... ) as $post ): ... No place to hook there, at first glance. But it can be done inside the actual posts query. Check out the found_posts filter. However, consider the following: $post = $wpdb->get_row( "SELECT .... " ); echo "<h2>$post->post_title</h2>" That's insane. Point is, depending on your situation there's probably a good solution. Check the template file, see how the title is being rendered. Fix it to be comfortable or make your plugin work a little harder. And you will never ever be able to alter the title via a plugin if mysql_query() is used directly to retrieve the title. Yes, I've actually seen this done. Some people go as far as hard code it in the template even. Like front-page.php will contain <h2>Home</h2> and never even use the $post->post_title or ever query the database. So, depends on the context and the situation. A: I'm building a plugin that is heavily reliant on a front end shortcode. This shortcode is responsible for gathering data which I need to use in the page tab <title> tag. Using a shortcode made it difficult to tie in with the wordpress hooks and filters so I ended up using JavaScript to sort out the page tab title. Easily done like this: var newTitle = document.createElement("title") newTitle.innerText = "New tab title here" window.onload = function() { // only add this to the DOM after it has finished loading document.head.prepend(newTitle) } And to be really good I also tidied up the DOM by removing any other <title> elements: var newTitle = document.createElement("title") newTitle.innerText = "New tab title here" window.onload = function() { // only add this to the DOM after it has finished loading let allTitles = document.getElementsByTagName("title"); for (let i=0; i<allTitles.length; i++ ) { // loop through all <title> elements allTitles[i].remove() // ... and remove them } document.head.prepend(newTitle) } I actually echoed this out in PHP which made it simpler to add my PHP variables into the mix: <?php $newtitle = "New Tab Title Here"; echo '<script type="text/javascript"> var newTitle = document.createElement("title") newTitle.innerText = "' . $newtitle . '" window.onload = function() { let allTitles = document.getElementsByTagName("title"); for (let i=0; i<allTitles.length; i++ ) { allTitles[i].remove() } document.head.prepend(newTitle) } </script>'; ?> Hope this helps someone :)
wordpress
{ "language": "en", "length": 619, "provenance": "stackexchange_00019.jsonl.gz:418376", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46707" }
[ 0.00782012939453125, -0.0141143798828125, -0.00965118408203125, 0.021728515625, -0.0008940696716308594, -0.040008544921875, 0.0278778076171875, -0.0216217041015625, -0.0374755859375, -0.0187835693359375, 0.01160430908203125, -0.0018167495727539062, -0.04998779296875, -0.047882080078125, 0.0306549072265625, -0.0548095703125, 0.0168914794921875, 0.02685546875, 0.039886474609375, -0.008514404296875, 0.01058197021484375, 0.0006461143493652344, 0.02252197265625, 0.00263214111328125, 0.00669097900390625, -0.034423828125, 0.1097412109375, -0.02801513671875, 0.030914306640625, -0.02301025390625, 0.025390625, -0.034332275390625, 0.03314208984375, -0.01221466064453125, -0.0035858154296875, 0.034149169921875, -0.0108642578125, -0.015380859375, -0.016357421875, 0.0274200439453125, 0.0300140380859375, -0.006633758544921875, -0.047454833984375, 0.03082275390625, -0.037384033203125, -0.034912109375, 0.045196533203125, 0.0166015625, 0.006500244140625, 0.00689697265625, 0.0238037109375, 0.00858306884765625, 0.024017333984375, -0.0160980224609375, 0.006336212158203125, 0.006748199462890625, -0.0261688232421875, 0.03948974609375, 0.028564453125, -0.00843048095703125, -0.0235443115234375, -0.00311279296875, 0.017578125, -0.01702880859375, 0.0270538330078125, 0.0157623291015625, 0.0199737548828125, 0.02197265625, 0.012908935546875, 0.03094482421875, -0.006107330322265625, -0.033233642578125, -0.02264404296875, -0.017333984375, -0.057891845703125, 0.0258941650390625, 0.0008893013000488281, -0.0482177734375, 0.0377197265625, -0.01409149169921875, 0.046966552734375, -0.01806640625, -0.006763458251953125, 0.01401519775390625, 0.008819580078125, 0.038238525390625, 0.00244903564453125, -0.03045654296875, -0.03094482421875, 0.035858154296875, -0.018524169921875, 0.00812530517578125, -0.01247406005859375, 0.04168701171875, -0.0023956298828125, 0.01165771484375, 0.017120361328125, 0.07171630859375, -0.01448822021484375, 0.0200653076171875, 0.014373779296875, -0.03460693359375, 0.0377197265625, -0.044708251953125, -0.01134490966796875, 0.0130462646484375, 0.022430419921875, 0.048492431640625, 0.0216827392578125, 0.004680633544921875, -0.00849151611328125, 0.027191162109375, -0.0025043487548828125, 0.026031494140625, -0.0478515625, 0.01065826416015625, -0.028045654296875, -0.0256805419921875, -0.0260772705078125, 0.028778076171875, -0.007720947265625, -0.01995849609375, 0.04412841796875, -0.017547607421875, 0.00446319580078125, -0.007801055908203125, -0.046661376953125, -0.018463134765625, -0.0278778076171875, -0.01407623291015625, -0.01404571533203125, 0.01806640625, 0.09912109375, 0.0689697265625, 0.0278778076171875, -0.0178680419921875, 0.01251983642578125, -0.0204315185546875, 0.0004723072052001953, 0.00724029541015625, -0.0111846923828125, 0.005100250244140625, 0.0264129638671875, -0.0287933349609375, 0.0005450248718261719, 0.006862640380859375, 0.00908660888671875, 0.0241546630859375, 0.0097808837890625, -0.031982421875, 0.01904296875, -0.005649566650390625, 0.02117919921875, 0.021209716796875, -0.0017299652099609375, -0.010162353515625, 0.036773681640625, -0.0238189697265625, -0.00020360946655273438, -0.041168212890625, 0.0176849365234375, -0.0020427703857421875, -0.0064697265625, 0.02508544921875, -0.00458526611328125, 0.017852783203125, 0.0037097930908203125, -0.005767822265625, 0.0210723876953125, 0.01739501953125, 0.0413818359375, 0.016204833984375, -0.012969970703125, 0.004669189453125, 0.005733489990234375, -0.0034732818603515625, -0.036529541015625, 0.0217132568359375, 0.007648468017578125, 0.02349853515625, -0.006710052490234375, -0.03961181640625, 0.0213165283203125, 0.01666259765625, -0.027496337890625, -0.0272216796875, -0.0016870498657226562, 0.008148193359375, 0.02142333984375, 0.01519775390625, 0.014129638671875, -0.0151824951171875, -0.01512908935546875, -0.00011926889419555664, 0.031585693359375, -0.033966064453125, -0.0095977783203125, -0.02557373046875, 0.015655517578125, 0.003704071044921875, 0.0184326171875, 0.0298614501953125, -0.00859832763671875, 0.01032257080078125, -0.007625579833984375, -0.00765228271484375, -0.0035495758056640625, 0.0160064697265625, 0.01522064208984375, -0.0257720947265625, 0.00013971328735351562, -0.042572021484375, 0.01186370849609375, -0.038909912109375, -0.0654296875, 0.00791168212890625, -0.015594482421875, -0.0065460205078125, 0.00647735595703125, -0.006824493408203125, 0.03533935546875, -0.00925445556640625, 0.006023406982421875, 0.0310821533203125, 0.053680419921875, -0.022308349609375, -0.01418304443359375, -0.029815673828125, 0.041900634765625, -0.01959228515625, -0.0293426513671875, 0.052398681640625, 0.050018310546875, 0.03448486328125, -0.0213775634765625, -0.0247650146484375, -0.053314208984375, -0.1158447265625, 0.0017671585083007812, 0.08856201171875, 0.039947509765625, 0.00797271728515625, 0.00904083251953125, 0.020111083984375, 0.042510986328125, -0.012847900390625, 0.0289459228515625, -0.006862640380859375, 0.0145263671875, 0.0236053466796875, -0.05853271484375, -0.01178741455078125, 0.046417236328125, -0.04901123046875, 0.0120086669921875, 0.0623779296875, -0.032928466796875, -0.0199432373046875, 0.0112457275390625, -0.0131378173828125, 0.00734710693359375, -0.031036376953125, -0.0125885009765625, 0.006847381591796875, 0.045074462890625, 0.0177154541015625, 0.0196685791015625, 0.025543212890625, -0.047088623046875, 0.040924072265625, 0.0200042724609375, -0.04949951171875, 0.00792694091796875, 0.005962371826171875, 0.0019588470458984375, 0.0008330345153808594, -0.032135009765625, 0.01233673095703125, 0.011474609375, -0.0096282958984375, 0.00911712646484375, 0.033172607421875, -0.0478515625, -0.02520751953125, -0.0116424560546875, -0.045684814453125, -0.01175689697265625, 0.018829345703125, 0.0244140625, -0.05340576171875, -0.0183563232421875, 0.004894256591796875, -0.038909912109375, 0.0628662109375, 0.04052734375, -0.0634765625, 0.04547119140625, -0.041046142578125, 0.06182861328125, -0.06988525390625, 0.05682373046875, 0.04058837890625, -0.058990478515625, 0.0266265869140625, 0.01183319091796875, 0.01666259765625, 0.045745849609375, -0.014434814453125, -0.007328033447265625, 0.038299560546875, -0.07769775390625, 0.0171356201171875, 0.0016803741455078125, 0.056610107421875, -0.02490234375, -0.065185546875, 0.01221466064453125, 0.0167083740234375, -0.040191650390625, -0.004489898681640625, -0.02532958984375, -0.0728759765625, -0.01397705078125, 0.004695892333984375, -0.043609619140625, 0.00812530517578125, 0.0225067138671875, 0.0127105712890625, 0.0040740966796875, -0.032867431640625, -0.040130615234375, -0.01053619384765625, -0.037322998046875, -0.0010967254638671875, -0.005680084228515625, -0.006694793701171875, -0.0012521743774414062, 0.06988525390625, 0.0248260498046875, -0.022918701171875, -0.0012874603271484375, 0.06298828125, -0.0246429443359375, -0.01500701904296875, 0.0181121826171875, -0.0211639404296875, 0.00830841064453125, 0.0126495361328125, -0.0154876708984375, 0.02362060546875, -0.012939453125, -0.01033782958984375, -0.0220184326171875, 0.005107879638671875, 0.00856781005859375, -0.03302001953125, 0.0125579833984375, 0.046356201171875, 0.00974273681640625, -0.0262451171875, -0.044586181640625, -0.0006432533264160156, -0.049163818359375, 0.039031982421875, 0.032684326171875, -0.002788543701171875, 0.0061492919921875, 0.037811279296875, -0.01435089111328125, 0.0153045654296875, 0.0189666748046875, -0.02801513671875, 0.00033545494079589844, -0.00469970703125, -0.004070281982421875, -0.00884246826171875, 0.040130615234375, 0.0017499923706054688, -0.00997161865234375, 0.02117919921875, 0.01319122314453125, 0.006908416748046875, 0.02349853515625, -0.00450897216796875, -0.0712890625, 0.034423828125, -0.060699462890625, -0.01480865478515625, -0.0301055908203125, -0.007648468017578125, 0.01499176025390625, 0.08251953125, -0.03448486328125, -0.02630615234375, 0.0150299072265625, 0.043212890625, -0.028717041015625, -0.07525634765625, -0.005767822265625, -0.033355712890625, -0.08221435546875, 0.037261962890625, -0.0171051025390625, -0.00958251953125, -0.013641357421875, 0.00205230712890625, -0.0231475830078125, -0.050445556640625, 0.01430511474609375, -0.01326751708984375, -0.004070281982421875, 0.01021575927734375, -0.0484619140625, 0.00878143310546875, -0.0068359375, -0.0191802978515625, -0.060546875, -0.0179595947265625, -0.026519775390625, 0.072998046875, 0.0303802490234375, -0.041778564453125, -0.0083465576171875, 0.04437255859375, 0.0191650390625, 0.03436279296875, -0.0174407958984375, -0.0281982421875, 0.01690673828125, 0.0204315185546875, -0.006046295166015625, 0.000720977783203125, 0.01451873779296875, 0.0029163360595703125, -0.08636474609375, -0.0090484619140625, 0.00446319580078125, 0.036956787109375, 0.061431884765625, -0.069580078125, -0.07952880859375, -0.0306549072265625, 0.02337646484375, -0.002933502197265625, -0.0092010498046875, 0.00908660888671875, -0.0289306640625, -0.050506591796875, 0.0830078125, 0.0161895751953125, 0.0006418228149414062, -0.00986480712890625, 0.07684326171875, 0.0040740966796875, -0.0445556640625, -0.010955810546875, 0.00628662109375, 0.01311492919921875, -0.0203399658203125, 0.0643310546875, 0.00661468505859375, -0.01360321044921875, 0.0947265625, -0.031768798828125, -0.016510009765625, -0.0142669677734375, 0.041748046875, -0.00412750244140625, -0.032562255859375, 0.01983642578125, -0.015716552734375, 0.023529052734375, -0.00389862060546875, -0.010833740234375, -0.017181396484375, -0.028350830078125, 0.028350830078125, 0.0000692605972290039, 0.046417236328125, 0.0030498504638671875, -0.021697998046875, 0.00586700439453125, 0.0235137939453125, -0.00036406517028808594, 0.016204833984375, 0.004306793212890625, -0.029510498046875, -0.035308837890625, -0.01416015625, -0.031402587890625, 0.0023212432861328125, -0.00736236572265625, 0.02508544921875, -0.034912109375, -0.024566650390625, -0.02362060546875, -0.0080718994140625, 0.01358795166015625, 0.00262451171875, -0.0325927734375, -0.00806427001953125, -0.013275146484375, 0.0173187255859375, 0.005908966064453125, 0.054931640625, 0.01959228515625, 0.031829833984375, -0.005184173583984375, 0.006103515625, 0.0259857177734375, 0.048736572265625, -0.036773681640625, 0.07037353515625, 0.04205322265625, -0.00699615478515625, 0.039337158203125, 0.0213623046875, 0.036590576171875, 0.009307861328125, -0.032379150390625, 0.036285400390625, 0.047607421875, -0.007236480712890625, -0.0009293556213378906, 0.017974853515625, -0.0027980804443359375, -0.01372528076171875, 0.030029296875, -0.0182647705078125, -0.0211029052734375, 0.0287628173828125, -0.0021305084228515625, 0.0018463134765625, 0.01143646240234375, 0.01654052734375, 0.0285186767578125, -0.0160369873046875, -0.0182342529296875, -0.0084228515625, -0.0159149169921875, -0.0204620361328125, 0.0240325927734375, 0.0273895263671875, 0.0300445556640625, 0.0310211181640625, -0.08343505859375, 0.0085906982421875, -0.01044464111328125, -0.0279388427734375, -0.022369384765625, 0.00585174560546875, 0.0088653564453125, -0.006244659423828125, -0.0096588134765625, -0.00603485107421875, -0.0186309814453125, -0.005611419677734375, -0.005710601806640625, -0.00598907470703125, 0.0276031494140625, -0.045196533203125, 0.078857421875, -0.03350830078125, -0.0106201171875, -0.02117919921875, 0.010894775390625, 0.0285491943359375, 0.050140380859375, -0.03790283203125, 0.0004191398620605469, -0.0638427734375, -0.02252197265625, -0.0418701171875, -0.04034423828125, -0.039581298828125, 0.002132415771484375, 0.0007963180541992188, 0.0181732177734375, -0.023193359375, -0.021453857421875, -0.0223846435546875, 0.01483917236328125, 0.0218505859375, 0.037322998046875, -0.020751953125, 0.10675048828125, -0.0016679763793945312, 0.051788330078125, 0.004688262939453125, 0.032196044921875, -0.061920166015625, 0.00640106201171875, -0.0010137557983398438, -0.0251617431640625, -0.019744873046875, -0.0089263916015625, -0.01178741455078125, 0.0258026123046875, 0.038330078125, 0.00021696090698242188, 0.01177978515625, 0.00026226043701171875, 0.00019657611846923828, -0.02593994140625, 0.0157623291015625, -0.0076904296875, -0.0173797607421875, 0.0187530517578125, -0.0295257568359375, -0.0020351409912109375, -0.021209716796875, 0.00914764404296875, 0.00435638427734375, -0.02655029296875, -0.00917816162109375, 0.0289459228515625, -0.06610107421875, 0.0335693359375, 0.01132965087890625, 0.01763916015625, 0.03778076171875, -0.0285186767578125, 0.027679443359375, 0.03167724609375, -0.0440673828125, 0.020904541015625, 0.0223236083984375, 0.039520263671875, -0.01419830322265625, -0.0053558349609375, 0.04815673828125, -0.031951904296875, 0.022735595703125, 0.037200927734375, 0.02398681640625, -0.09344482421875, 0.040618896484375, 0.0026683807373046875, 0.0226593017578125, 0.04522705078125, 0.0325927734375, -0.0082550048828125, -0.01161956787109375, 0.0149993896484375, -0.00153350830078125, 0.00968170166015625, 0.0299835205078125, 0.0281524658203125, -0.00787353515625, -0.0140228271484375, 0.043853759765625, 0.005344390869140625, -0.0290374755859375, 0.00345611572265625, -0.0121002197265625, 0.025634765625, -0.03155517578125, 0.014373779296875, 0.042816162109375, -0.019744873046875, -0.07958984375, 0.0440673828125, 0.0178070068359375, -0.02227783203125, 0.021575927734375, 0.0291900634765625, 0.0028533935546875, 0.05889892578125, -0.0035610198974609375, 0.006927490234375, 0.03497314453125, -0.01128387451171875, 0.01534271240234375, -0.032989501953125, 0.007293701171875, 0.036529541015625, -0.0623779296875, 0.0163421630859375, -0.007274627685546875, -0.0092315673828125, -0.0009398460388183594, -0.0595703125, 0.032318115234375, 0.005374908447265625, -0.0200347900390625, -0.0089263916015625, -0.007411956787109375, 0.02752685546875, -0.0007905960083007812, -0.00431060791015625, -0.0213623046875, -0.00952911376953125, -0.00789642333984375, -0.0540771484375, -0.0032978057861328125, -0.0178070068359375, -0.061279296875, 0.1068115234375, 0.0052032470703125, 0.041473388671875, 0.01201629638671875, 0.0267791748046875, -0.03662109375, 0.005611419677734375, -0.0174102783203125, 0.074951171875, -0.02386474609375, 0.04608154296875, 0.01073455810546875, 0.001880645751953125, 0.04498291015625, 0.023101806640625, -0.0003223419189453125, -0.0023021697998046875, -0.017120361328125, 0.00930023193359375, 0.0653076171875, 0.033294677734375, 0.018707275390625, 0.015899658203125, 0.010955810546875, 0.02410888671875, -0.0178985595703125, -0.032012939453125, 0.0237884521484375, -0.09075927734375, -0.03131103515625, 0.0267486572265625, 0.02825927734375, 0.038848876953125, -0.01068115234375, -0.0167388916015625, -0.021636962890625, -0.0107269287109375, 0.01435089111328125, 0.0306854248046875, -0.0304107666015625, 0.05615234375, 0.0203399658203125, -0.02276611328125, -0.049407958984375, -0.029998779296875, 0.031341552734375, 0.019439697265625, -0.0028705596923828125, 0.0318603515625, 0.01412200927734375, -0.00836181640625, -0.00922393798828125, -0.0009531974792480469, 0.0149078369140625, 0.008209228515625, 0.0499267578125, -0.00469970703125, -0.004711151123046875, -0.058837890625, 0.045928955078125, 0.03936767578125, 0.0572509765625, -0.058441162109375, -0.020751953125, 0.01105499267578125, 0.003314971923828125, -0.018035888671875, -0.029510498046875, -0.0282135009765625, -0.037445068359375, 0.0210418701171875, 0.017852783203125, 0.00572967529296875, 0.0421142578125, 0.008636474609375, 0.010772705078125, -0.006801605224609375, -0.029083251953125, 0.01494598388671875, -0.04058837890625, -0.0032978057861328125, 0.00949859619140625, 0.0823974609375, 0.04302978515625, 0.0494384765625, -0.008209228515625, -0.051788330078125, -0.00542449951171875, 0.035400390625, 0.00965118408203125, 0.013153076171875, -0.0418701171875, -0.036651611328125, 0.0250396728515625, 0.035552978515625, 0.047088623046875, 0.035247802734375, 0.03936767578125, -0.0152740478515625, -0.0298309326171875, 0.016632080078125, -0.031494140625, -0.038665771484375, -0.00925445556640625, 0.0055389404296875, 0.01226806640625, 0.0258331298828125, -0.02398681640625, -0.00960540771484375, 0.052215576171875, -0.0122833251953125, -0.0333251953125, -0.0142822265625, -0.0011472702026367188, -0.038482666015625, 0.051666259765625, -0.007045745849609375, 0.006465911865234375, -0.034759521484375, -0.114013671875, -0.016693115234375, -0.0187530517578125, -0.0242767333984375, 0.02593994140625, 0.05145263671875, -0.01198577880859375, 0.01486968994140625, 0.0113525390625, 0.0013446807861328125, 0.028717041015625, -0.0380859375, 0.01548004150390625, 0.04412841796875, 0.0186309814453125, 0.0181121826171875, -0.06512451171875, -0.0484619140625, -0.0657958984375, 0.06787109375, 0.06597900390625, 0.03900146484375, 0.0017099380493164062, 0.06903076171875, -0.037139892578125, -0.0009541511535644531, -0.0296478271484375, -0.04833984375, 0.05767822265625, 0.0086822509765625, -0.029449462890625, 0.00815582275390625, -0.040740966796875, 0.00812530517578125, 0.02325439453125, -0.0041351318359375, 0.016632080078125, -0.03173828125, 0.035736083984375, -0.00702667236328125, 0.01435089111328125, -0.0127410888671875, 0.0024852752685546875, -0.007717132568359375, -0.011627197265625, 0.0404052734375, 0.03228759765625, -0.0005831718444824219, 0.0163421630859375, 0.005931854248046875, 0.00984954833984375, 0.03021240234375, 0.002002716064453125, 0.03887939453125, 0.0267486572265625, -0.048858642578125, -0.0104522705078125, 0.01654052734375, -0.0194244384765625, -0.003360748291015625, 0.0004303455352783203, 0.045745849609375, -0.017547607421875, -0.0246734619140625, -0.02587890625, -0.052337646484375, -0.010528564453125, -0.037994384765625, -0.004547119140625, -0.02532958984375, 0.0216217041015625, -0.055511474609375, -0.04913330078125, -0.045806884765625, -0.054290771484375, 0.03472900390625, 0.0268096923828125, 0.0020771026611328125, -0.023834228515625, -0.035430908203125, -0.0193023681640625, -0.023590087890625, 0.004024505615234375, -0.036376953125, -0.00797271728515625, 0.0157012939453125, -0.00618743896484375, -0.0247344970703125, -0.0015363693237304688, 0.016510009765625, 0.0175628662109375, -0.054168701171875, -0.0297088623046875, -0.0212554931640625, 0.0068206787109375, -0.02545166015625, -0.004505157470703125, 0.033050537109375, -0.0091552734375, -0.038055419921875, 0.01708984375, -0.01189422607421875, 0.058990478515625, -0.003925323486328125, -0.0244903564453125, 0.001800537109375, 0.0157318115234375, 0.00927734375, -0.07977294921875, 0.0013399124145507812, -0.05859375, -0.00347900390625, 0.0260009765625, -0.04986572265625, -0.037628173828125, -0.04095458984375, 0.005046844482421875, 0.0225067138671875, 0.042633056640625, -0.01110076904296875, -0.037933349609375, 0.03240966796875, -0.0167694091796875, 0.0214996337890625, 0.00894927978515625, -0.05548095703125, 0.01404571533203125, 0.0293121337890625, 0.00021922588348388672, 0.0888671875, -0.026824951171875, 0.04718017578125, -0.0074310302734375, 0.026214599609375, 0.004974365234375, -0.01291656494140625, 0.0134429931640625, -0.0198822021484375, 0.022186279296875, 0.0265960693359375, -0.036590576171875, -0.0193939208984375, -0.0029144287109375, 0.01219940185546875, -0.00902557373046875, -0.047393798828125, -0.0224456787109375, 0.0113983154296875, 0.08642578125, 0.027618408203125, 0.0260162353515625, -0.06280517578125, 0.01418304443359375, -0.01099395751953125, -0.020599365234375, 0.01096343994140625, 0.00012385845184326172, -0.019775390625, 0.0025730133056640625, 0.0179595947265625, -0.018157958984375, -0.007434844970703125, -0.005687713623046875, -0.037445068359375, -0.0217437744140625, -0.0196380615234375, -0.006641387939453125, -0.0261688232421875, -0.050262451171875, 0.06805419921875, -0.060546875, -0.0496826171875, 0.0384521484375, 0.0225372314453125, 0.00022995471954345703, -0.00757598876953125, -0.021636962890625, 0.036102294921875, -0.019805908203125, 0.012176513671875, 0.004852294921875, 0.046844482421875, -0.0161285400390625, 0.00954437255859375, -0.033538818359375, 0.036041259765625, 0.01776123046875, 0.028594970703125, -0.037841796875, 0.037750244140625, 0.027557373046875, 0.0323486328125, -0.0239410400390625, 0.01690673828125, -0.01280975341796875, 0.017852783203125, -0.0055389404296875, 0.004730224609375, 0.044403076171875, -0.01222991943359375, -0.0038585662841796875, 0.019317626953125, 0.002460479736328125, -0.01389312744140625, 0.0266876220703125, -0.0848388671875, 0.00542449951171875, -0.00958251953125 ]
71db66c3a0a5cbf468dcebc9329ae912486a67c3
Wordpress Stackexchange Q: Remove tabs from media uploader for a CPT I use the media uploader in a own meta-box for a custom post type called "premium". The Thickbox opens after a click of the button in the meta-box and files can be uploaded. Now I want to remove the tabs "From URL" and "Library" only when used the uploader in the edit/new-page for the CPT or if possible with the call of the click-event. I have no idea how to resolve. P.S.: I use this js for calling the thickbox and tried to remove a tab via jQuery: jQuery(document).ready(function() { jQuery('#pc_extContent_button').click(function() { formfield = jQuery('#pc_extContent').attr('name'); tbframe_interval = setInterval(function() { jQuery('#tab-type_url').hide(); }, 2000); tb_show('', 'media-upload.php?type=file&TB_iframe=true') return false; }); A: You can use the media_upload_tabs filter check for your post type and unset any tab you don't want ex: function remove_media_library_tab($tabs) { if (isset($_REQUEST['post_id'])) { $post_type = get_post_type($_REQUEST['post_id']); if ('premium' == $post_type) unset($tabs['library']); unset($tabs['type_url']); } return $tabs; } add_filter('media_upload_tabs', 'remove_media_library_tab');
Q: Remove tabs from media uploader for a CPT I use the media uploader in a own meta-box for a custom post type called "premium". The Thickbox opens after a click of the button in the meta-box and files can be uploaded. Now I want to remove the tabs "From URL" and "Library" only when used the uploader in the edit/new-page for the CPT or if possible with the call of the click-event. I have no idea how to resolve. P.S.: I use this js for calling the thickbox and tried to remove a tab via jQuery: jQuery(document).ready(function() { jQuery('#pc_extContent_button').click(function() { formfield = jQuery('#pc_extContent').attr('name'); tbframe_interval = setInterval(function() { jQuery('#tab-type_url').hide(); }, 2000); tb_show('', 'media-upload.php?type=file&TB_iframe=true') return false; }); A: You can use the media_upload_tabs filter check for your post type and unset any tab you don't want ex: function remove_media_library_tab($tabs) { if (isset($_REQUEST['post_id'])) { $post_type = get_post_type($_REQUEST['post_id']); if ('premium' == $post_type) unset($tabs['library']); unset($tabs['type_url']); } return $tabs; } add_filter('media_upload_tabs', 'remove_media_library_tab'); A: First it is necessar to change the JavaScript for including the post_id in the request: jQuery(document).ready(function() { jQuery('#pc_extContent_button').click(function() { var pID = jQuery('#post_ID').val(); formfield = jQuery('#pc_extContent').attr('name'); tb_show('premiumTB', 'media-upload.php?post_id='+ pID +'&type=image&TB_iframe=true'); return false; }); window.send_to_editor = function(html) { imgurl = jQuery('img', html).attr('href'); jQuery('#pc_extContent').val(imgurl); tb_remove(); } }); Then the solution of Bainternet can be used in the functions.php (or similar) function remove_media_library_tab($tabs) { if (isset($_REQUEST['post_id'])) { $post_type = get_post_type($_REQUEST['post_id']); if ('premium' == $post_type) { unset($tabs['library']); unset($tabs['type_url']); } } return $tabs; } add_filter('media_upload_tabs', 'remove_media_library_tab'); So all works fine together and the tabs are removed.
wordpress
{ "language": "en", "length": 249, "provenance": "stackexchange_00019.jsonl.gz:418398", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46808" }
[ 0.061248779296875, -0.0024585723876953125, 0.0242767333984375, -0.0005893707275390625, 0.01355743408203125, -0.032196044921875, 0.05792236328125, -0.045166015625, 0.0298004150390625, 0.01033782958984375, 0.035064697265625, -0.037078857421875, -0.0249786376953125, -0.0594482421875, -0.01511383056640625, -0.01494598388671875, 0.025604248046875, -0.01215362548828125, 0.030426025390625, -0.0169830322265625, 0.01345062255859375, -0.0073699951171875, 0.0391845703125, 0.06414794921875, 0.004852294921875, 0.0112762451171875, -0.0013456344604492188, -0.00873565673828125, -0.0224456787109375, -0.0291595458984375, -0.0005345344543457031, 0.050140380859375, 0.0018243789672851562, 0.0452880859375, -0.04132080078125, 0.01293182373046875, 0.0184478759765625, 0.0217742919921875, 0.04010009765625, -0.022674560546875, 0.0121307373046875, 0.00957489013671875, -0.01189422607421875, -0.005786895751953125, -0.03668212890625, 0.000247955322265625, -0.014190673828125, -0.006801605224609375, 0.0433349609375, 0.034576416015625, -0.00004112720489501953, -0.011962890625, -0.01367950439453125, -0.007640838623046875, -0.0124969482421875, -0.0107421875, 0.026763916015625, -0.049346923828125, 0.001293182373046875, 0.042999267578125, -0.0042724609375, 0.0281219482421875, 0.0008883476257324219, -0.03955078125, -0.044464111328125, 0.0038623809814453125, 0.0024776458740234375, -0.0063934326171875, -0.07806396484375, -0.055877685546875, 0.0439453125, -0.0295562744140625, 0.0147705078125, -0.002826690673828125, -0.0174713134765625, -0.006786346435546875, 0.01251220703125, -0.0199432373046875, 0.0095672607421875, -0.0201263427734375, 0.0239410400390625, -0.00423431396484375, -0.057586669921875, 0.0086822509765625, 0.05499267578125, 0.07794189453125, -0.00341033935546875, -0.04974365234375, -0.00030350685119628906, 0.00475311279296875, -0.016754150390625, -0.016326904296875, 0.0290069580078125, 0.0146484375, -0.03759765625, -0.003383636474609375, 0.06793212890625, 0.032501220703125, 0.018035888671875, -0.02716064453125, 0.048919677734375, -0.073486328125, 0.0075531005859375, -0.01462554931640625, 0.036865234375, 0.0111236572265625, -0.0604248046875, -0.07470703125, 0.0428466796875, 0.028961181640625, -0.0191802978515625, 0.0012340545654296875, 0.0087432861328125, 0.01453399658203125, -0.0174560546875, -0.037261962890625, -0.05218505859375, 0.01161956787109375, -0.0206298828125, -0.022979736328125, -0.01145172119140625, 0.01128387451171875, -0.038360595703125, -0.026763916015625, 0.0169677734375, -0.0166778564453125, -0.01001739501953125, 0.0182647705078125, -0.02947998046875, 0.03753662109375, -0.04364013671875, 0.00833892822265625, 0.029449462890625, 0.031097412109375, 0.0183563232421875, -0.026336669921875, 0.04241943359375, -0.0261077880859375, 0.019439697265625, 0.008514404296875, 0.042022705078125, -0.0305328369140625, -0.02227783203125, 0.0357666015625, -0.0003445148468017578, 0.04486083984375, 0.0224456787109375, -0.020751953125, -0.0068206787109375, -0.034210205078125, -0.01073455810546875, -0.0210113525390625, 0.06134033203125, 0.01068115234375, -0.04144287109375, -0.047454833984375, 0.056182861328125, -0.0609130859375, -0.0272674560546875, -0.0750732421875, 0.0528564453125, -0.00677490234375, -0.0035552978515625, -0.024658203125, -0.01971435546875, -0.0097808837890625, -0.06744384765625, -0.0097808837890625, 0.0249481201171875, 0.0192413330078125, 0.0008301734924316406, -0.055572509765625, 0.003101348876953125, 0.019500732421875, -0.0008287429809570312, 0.0533447265625, 0.0221710205078125, 0.061614990234375, 0.0170135498046875, 0.0059967041015625, -0.01113128662109375, -0.03936767578125, 0.11376953125, -0.050323486328125, -0.0606689453125, 0.05023193359375, 0.01178741455078125, 0.047576904296875, 0.005825042724609375, 0.0012836456298828125, 0.051788330078125, 0.025115966796875, 0.0050811767578125, -0.0433349609375, 0.032501220703125, -0.036407470703125, 0.008087158203125, -0.0343017578125, 0.00995635986328125, 0.041046142578125, -0.0024814605712890625, 0.0258636474609375, -0.0154266357421875, 0.011138916015625, -0.038604736328125, 0.0168914794921875, -0.0202484130859375, 0.0300750732421875, -0.0631103515625, 0.011810302734375, 0.04595947265625, 0.0202789306640625, -0.06365966796875, 0.0222930908203125, 0.0200347900390625, 0.019561767578125, 0.01548004150390625, 0.03204345703125, -0.01009368896484375, 0.0277099609375, -0.02960205078125, -0.007099151611328125, -0.02655029296875, -0.008514404296875, 0.0252532958984375, 0.0095672607421875, -0.0135955810546875, -0.004261016845703125, 0.02386474609375, 0.0078125, -0.01050567626953125, 0.034942626953125, 0.0443115234375, -0.003948211669921875, -0.03302001953125, 0.0013914108276367188, -0.00878143310546875, -0.10296630859375, -0.0244903564453125, 0.06463623046875, 0.0205841064453125, 0.0350341796875, -0.0173492431640625, 0.0032138824462890625, 0.04779052734375, 0.00727081298828125, 0.021942138671875, 0.002735137939453125, 0.0014295578002929688, 0.04339599609375, -0.0186309814453125, 0.0179443359375, 0.0225677490234375, -0.0200653076171875, 0.012603759765625, 0.041290283203125, -0.0247650146484375, 0.003009796142578125, 0.038299560546875, -0.0184783935546875, -0.00603485107421875, 0.01262664794921875, 0.010467529296875, -0.01308441162109375, 0.040679931640625, 0.006763458251953125, 0.034881591796875, 0.037628173828125, -0.0263214111328125, -0.00485992431640625, 0.013458251953125, 0.005767822265625, -0.01438140869140625, 0.044677734375, 0.0845947265625, -0.01078033447265625, -0.027496337890625, -0.0246734619140625, 0.00012683868408203125, 0.0203399658203125, -0.0179290771484375, -0.014892578125, -0.0197296142578125, -0.006389617919921875, 0.0204620361328125, -0.0286102294921875, 0.011566162109375, -0.01139068603515625, -0.04925537109375, -0.05548095703125, -0.0100860595703125, 0.0038928985595703125, -0.031982421875, 0.0013837814331054688, 0.00998687744140625, -0.041961669921875, 0.024017333984375, -0.012939453125, 0.0092620849609375, 0.0005393028259277344, 0.09320068359375, 0.0748291015625, 0.00846099853515625, 0.0241241455078125, 0.009063720703125, -0.0207672119140625, -0.0192108154296875, 0.0157928466796875, 0.0008449554443359375, -0.00902557373046875, -0.039794921875, 0.024383544921875, -0.0005674362182617188, -0.034881591796875, -0.0180816650390625, -0.030914306640625, -0.024078369140625, -0.019775390625, -0.073974609375, 0.005657196044921875, 0.0128021240234375, -0.05230712890625, -0.0161895751953125, 0.0036907196044921875, -0.043365478515625, -0.00797271728515625, 0.041656494140625, 0.00928497314453125, 0.0246124267578125, 0.02294921875, 0.0181732177734375, 0.0260162353515625, -0.015960693359375, -0.013702392578125, 0.0159912109375, 0.0014066696166992188, 0.01016998291015625, 0.052459716796875, 0.007411956787109375, -0.0394287109375, 0.022705078125, -0.0287322998046875, -0.01380157470703125, 0.038177490234375, 0.040557861328125, -0.0233154296875, -0.02581787109375, 0.00693511962890625, -0.01358795166015625, 0.036468505859375, -0.02532958984375, -0.0091400146484375, 0.0014352798461914062, -0.02874755859375, 0.00534820556640625, 0.0191802978515625, 0.005252838134765625, -0.036956787109375, -0.01459503173828125, -0.0728759765625, 0.01190948486328125, 0.0085296630859375, 0.00848388671875, -0.013702392578125, -0.036224365234375, -0.019744873046875, -0.00733184814453125, 0.031524658203125, 0.038604736328125, 0.03851318359375, -0.0010499954223632812, 0.0011587142944335938, 0.002758026123046875, 0.01515960693359375, 0.045135498046875, -0.024993896484375, 0.08026123046875, 0.007598876953125, -0.034637451171875, 0.030029296875, 0.004974365234375, 0.0199737548828125, -0.061431884765625, -0.0178070068359375, -0.01727294921875, 0.0384521484375, -0.0380859375, 0.0191192626953125, -0.0224609375, -0.0189056396484375, 0.01114654541015625, 0.08160400390625, -0.08038330078125, -0.0025730133056640625, -0.070556640625, -0.0010595321655273438, 0.03533935546875, -0.101318359375, 0.005123138427734375, -0.01523590087890625, -0.04693603515625, 0.00708770751953125, 0.00775146484375, -0.035736083984375, -0.028778076171875, 0.002208709716796875, -0.063232421875, -0.01474761962890625, 0.03204345703125, -0.003353118896484375, -0.0009984970092773438, 0.0008206367492675781, -0.0017910003662109375, -0.02984619140625, -0.030181884765625, -0.00455474853515625, -0.0845947265625, -0.01129913330078125, 0.0022258758544921875, 0.044097900390625, -0.010589599609375, -0.005680084228515625, -0.048614501953125, 0.0265960693359375, 0.053863525390625, -0.016754150390625, 0.016357421875, -0.045074462890625, 0.032501220703125, -0.0015974044799804688, 0.0010633468627929688, -0.01183319091796875, 0.00261688232421875, -0.034637451171875, -0.038299560546875, 0.020721435546875, -0.010955810546875, 0.042236328125, 0.00782012939453125, -0.00904083251953125, -0.07281494140625, -0.04534912109375, -0.041656494140625, -0.021026611328125, -0.01319122314453125, -0.00971221923828125, -0.0258941650390625, -0.0574951171875, 0.0162506103515625, 0.052490234375, -0.03118896484375, 0.005001068115234375, 0.0145111083984375, 0.03143310546875, -0.028228759765625, -0.0743408203125, -0.00795745849609375, 0.053466796875, 0.01195526123046875, 0.01371002197265625, 0.025054931640625, -0.04400634765625, 0.051788330078125, 0.0226593017578125, -0.0034542083740234375, -0.03485107421875, 0.053802490234375, 0.004703521728515625, -0.00021910667419433594, 0.0020618438720703125, -0.0254058837890625, 0.027801513671875, -0.0732421875, -0.01351165771484375, 0.0123291015625, -0.0006556510925292969, 0.028594970703125, 0.048095703125, -0.0135040283203125, -0.034912109375, -0.07305908203125, 0.0270233154296875, 0.004230499267578125, 0.018951416015625, -0.01183319091796875, 0.0043487548828125, 0.0467529296875, 0.0090179443359375, 0.01751708984375, -0.0140533447265625, 0.0288543701171875, -0.061981201171875, 0.03863525390625, 0.0109100341796875, -0.0214385986328125, -0.019287109375, 0.01666259765625, -0.06378173828125, -0.04351806640625, -0.056488037109375, -0.046417236328125, 0.00762939453125, 0.05401611328125, 0.0193023681640625, 0.003025054931640625, 0.0050201416015625, 0.0185394287109375, 0.0075836181640625, 0.004474639892578125, 0.037628173828125, 0.0048370361328125, -0.0248870849609375, 0.044647216796875, 0.0231475830078125, 0.00244140625, 0.015716552734375, 0.0689697265625, -0.020172119140625, 0.037506103515625, 0.0009202957153320312, 0.0389404296875, 0.023468017578125, 0.019622802734375, 0.0263519287109375, -0.016326904296875, 0.005115509033203125, -0.00992584228515625, -0.017730712890625, -0.04412841796875, 0.002597808837890625, 0.03173828125, 0.04095458984375, 0.0034770965576171875, -0.0245361328125, -0.005290985107421875, -0.052276611328125, 0.00168609619140625, 0.003215789794921875, -0.0260772705078125, -0.0240936279296875, -0.005580902099609375, -0.002544403076171875, 0.009735107421875, -0.019012451171875, -0.01141357421875, 0.01384735107421875, -0.0233306884765625, -0.005504608154296875, 0.007190704345703125, -0.061248779296875, 0.0305633544921875, 0.053924560546875, 0.01971435546875, -0.0193023681640625, -0.021087646484375, -0.0280914306640625, -0.006542205810546875, -0.0159454345703125, -0.00017964839935302734, 0.024658203125, -0.0166778564453125, 0.0269927978515625, -0.0233917236328125, -0.007221221923828125, -0.0145416259765625, -0.0005774497985839844, 0.07342529296875, 0.047393798828125, -0.0252227783203125, -0.00347900390625, -0.05059814453125, -0.035125732421875, -0.048583984375, -0.036956787109375, -0.03070068359375, -0.00399017333984375, 0.005779266357421875, 0.02587890625, -0.004985809326171875, -0.021484375, 0.033935546875, 0.0001747608184814453, -0.0080108642578125, 0.0307769775390625, 0.002475738525390625, 0.043731689453125, 0.0226287841796875, 0.058197021484375, 0.03570556640625, 0.0312042236328125, -0.030853271484375, -0.0389404296875, -0.0111846923828125, -0.08441162109375, -0.00417327880859375, 0.01309967041015625, -0.0504150390625, 0.0310211181640625, 0.0254364013671875, 0.01264190673828125, -0.00714874267578125, -0.01024627685546875, -0.00396728515625, -0.047271728515625, 0.039947509765625, -0.0193023681640625, 0.0281829833984375, -0.038787841796875, -0.017181396484375, 0.06573486328125, 0.0019502639770507812, -0.011810302734375, 0.034393310546875, -0.041351318359375, 0.061004638671875, 0.00885009765625, -0.0016489028930664062, 0.036529541015625, 0.09234619140625, 0.0139617919921875, 0.065673828125, 0.03448486328125, 0.020599365234375, 0.048675537109375, -0.007587432861328125, 0.0092315673828125, 0.00286102294921875, 0.049835205078125, -0.0004050731658935547, -0.0081024169921875, 0.045989990234375, -0.022369384765625, 0.01016998291015625, 0.016571044921875, 0.0411376953125, -0.044708251953125, 0.0016660690307617188, 0.014190673828125, -0.003269195556640625, 0.01541900634765625, -0.0298309326171875, 0.022918701171875, -0.01125335693359375, -0.00775146484375, 0.0018138885498046875, -0.06524658203125, -0.03521728515625, -0.0102996826171875, -0.00434112548828125, -0.00966644287109375, 0.035736083984375, 0.006160736083984375, -0.032012939453125, -0.029571533203125, 0.01316070556640625, -0.024932861328125, 0.003856658935546875, 0.037445068359375, -0.031951904296875, 0.007526397705078125, -0.0350341796875, -0.0133514404296875, -0.027099609375, -0.0216827392578125, 0.0154571533203125, -0.0225677490234375, 0.0262908935546875, 0.047210693359375, -0.02215576171875, 0.0212860107421875, 0.01580810546875, -0.021026611328125, -0.022491455078125, -0.014190673828125, 0.0219268798828125, 0.0028629302978515625, -0.037994384765625, 0.0191802978515625, -0.033935546875, -0.01666259765625, 0.0026149749755859375, 0.00811767578125, 0.036346435546875, -0.041046142578125, -0.014739990234375, 0.005199432373046875, 0.0217132568359375, 0.0309906005859375, 0.017425537109375, 0.01041412353515625, -0.03448486328125, -0.0242919921875, 0.01439666748046875, -0.057891845703125, -0.0206146240234375, -0.006031036376953125, -0.08245849609375, 0.100341796875, 0.020233154296875, 0.052276611328125, 0.01032257080078125, 0.029205322265625, -0.035919189453125, -0.0105133056640625, -0.03472900390625, 0.0166168212890625, 0.00916290283203125, 0.0296783447265625, -0.04302978515625, -0.010223388671875, 0.00649261474609375, 0.029022216796875, 0.057464599609375, 0.0010242462158203125, -0.01129150390625, -0.00374603271484375, 0.033447265625, 0.06512451171875, -0.0006246566772460938, 0.0029010772705078125, -0.000021398067474365234, 0.0304412841796875, 0.037567138671875, -0.05517578125, 0.00811767578125, 0.003681182861328125, -0.0179443359375, 0.02490234375, 0.028350830078125, 0.025421142578125, -0.0313720703125, 0.01055145263671875, -0.013641357421875, -0.0316162109375, 0.010498046875, -0.0007910728454589844, 0.033111572265625, 0.0369873046875, 0.032958984375, -0.0164947509765625, -0.0003135204315185547, -0.0179595947265625, 0.054107666015625, -0.0095062255859375, -0.01555633544921875, 0.040313720703125, 0.0171051025390625, -0.032867431640625, -0.0208740234375, -0.017547607421875, -0.021636962890625, 0.01215362548828125, 0.0196380615234375, -0.0087432861328125, 0.004486083984375, -0.03948974609375, 0.040863037109375, 0.04486083984375, 0.0272216796875, -0.040679931640625, -0.051300048828125, 0.00791168212890625, 0.005886077880859375, -0.005870819091796875, 0.00540924072265625, 0.0298309326171875, -0.070068359375, -0.004680633544921875, -0.0220184326171875, 0.0169677734375, 0.007640838623046875, 0.04833984375, -0.0008878707885742188, 0.0201263427734375, -0.0556640625, -0.0151824951171875, -0.034454345703125, -0.01360321044921875, -0.00749969482421875, 0.0309906005859375, 0.042755126953125, 0.0233917236328125, 0.008148193359375, -0.032623291015625, -0.0161895751953125, 0.04052734375, -0.012542724609375, 0.0145111083984375, -0.03485107421875, -0.048004150390625, 0.024322509765625, 0.020965576171875, 0.062408447265625, 0.033111572265625, 0.041534423828125, 0.00946807861328125, 0.0274810791015625, 0.0283660888671875, 0.02142333984375, -0.00595855712890625, -0.0170745849609375, -0.035797119140625, 0.0097198486328125, 0.0145721435546875, -0.0114898681640625, 0.02081298828125, -0.0171051025390625, 0.03546142578125, 0.007781982421875, 0.0171356201171875, 0.007049560546875, -0.026885986328125, 0.00310516357421875, 0.007678985595703125, 0.048370361328125, 0.038909912109375, -0.0229949951171875, 0.0016736984252929688, -0.03179931640625, -0.0182952880859375, 0.01464080810546875, 0.0242156982421875, -0.019012451171875, 0.04833984375, -0.01461029052734375, -0.00827789306640625, -0.000789642333984375, -0.0201568603515625, 0.0234832763671875, 0.001499176025390625, -0.0130462646484375, 0.00603485107421875, -0.003753662109375, 0.0034961700439453125, 0.042144775390625, 0.0077667236328125, -0.01456451416015625, 0.052734375, -0.004581451416015625, -0.01453399658203125, 0.0162353515625, 0.027801513671875, -0.0036468505859375, 0.027801513671875, 0.003360748291015625, 0.0266876220703125, 0.0115509033203125, -0.043212890625, 0.0298919677734375, 0.04241943359375, 0.0053863525390625, -0.01213836669921875, -0.0128173828125, -0.0163421630859375, 0.0092010498046875, 0.0362548828125, -0.0005879402160644531, -0.015716552734375, 0.00926971435546875, -0.0072174072265625, -0.0295867919921875, 0.05029296875, 0.0274505615234375, 0.0011119842529296875, 0.00293731689453125, 0.0184783935546875, 0.00618743896484375, 0.01013946533203125, 0.03424072265625, 0.0206298828125, 0.041595458984375, -0.04901123046875, -0.060577392578125, -0.01186370849609375, -0.0122528076171875, -0.019866943359375, 0.025726318359375, 0.0278778076171875, 0.01039886474609375, -0.033721923828125, 0.0265045166015625, 0.018157958984375, -0.0089111328125, -0.04608154296875, -0.0254974365234375, 0.05010986328125, -0.0298919677734375, 0.0011205673217773438, -0.01751708984375, -0.023101806640625, -0.0304412841796875, -0.02569580078125, 0.023773193359375, -0.0223541259765625, -0.06683349609375, -0.0919189453125, 0.0213470458984375, 0.003139495849609375, -0.00907135009765625, -0.07696533203125, 0.0457763671875, -0.0293731689453125, 0.07281494140625, -0.048614501953125, 0.057861328125, -0.04852294921875, -0.01242828369140625, -0.03057861328125, -0.050323486328125, -0.05206298828125, 0.08331298828125, -0.026153564453125, 0.0014209747314453125, 0.03448486328125, -0.031829833984375, -0.034515380859375, -0.01514434814453125, 0.01434326171875, 0.04052734375, 0.0203857421875, -0.02301025390625, -0.0047607421875, 0.0177001953125, 0.0017347335815429688, -0.0185394287109375, -0.02691650390625, 0.00991058349609375, 0.01131439208984375, 0.038055419921875, -0.037506103515625, -0.0206451416015625, -0.029754638671875, -0.0276031494140625, 0.052001953125, 0.0235137939453125, -0.024444580078125, -0.00568389892578125, 0.0202789306640625, -0.016754150390625, 0.0587158203125, 0.01334381103515625, -0.0279998779296875, 0.01396942138671875, -0.0097198486328125, -0.00818634033203125, 0.04046630859375, 0.004100799560546875, -0.027252197265625, -0.0082244873046875, 0.002742767333984375, 0.01016998291015625, 0.0147705078125, 0.005847930908203125, 0.0033206939697265625, 0.0243682861328125, 0.01019287109375, -0.0311431884765625, 0.01177978515625, -0.0033130645751953125, -0.01324462890625, -0.022796630859375, -0.0450439453125, -0.02703857421875, -0.01157379150390625, 0.09832763671875, 0.0804443359375, 0.0171051025390625, -0.041839599609375, 0.0097198486328125, 0.0052032470703125, -0.009796142578125, -0.0237274169921875, 0.025726318359375, -0.07373046875, -0.044952392578125, 0.0054168701171875, 0.02490234375, 0.0078582763671875, -0.06768798828125, 0.002056121826171875, -0.034271240234375, 0.0166778564453125, 0.043365478515625, -0.0006046295166015625, 0.026458740234375, 0.0220794677734375, -0.0250396728515625, -0.006252288818359375, -0.0023021697998046875, -0.0051116943359375, 0.0141143798828125, 0.007427215576171875, 0.001377105712890625, -0.003490447998046875, -0.01288604736328125, 0.0302886962890625, 0.003879547119140625, 0.00811767578125, -0.0276031494140625, -0.0095977783203125, -0.003986358642578125, -0.0133819580078125, -0.0005865097045898438, -0.01447296142578125, -0.001468658447265625, -0.0080718994140625, -0.0223236083984375, 0.048248291015625, -0.022064208984375, 0.0213775634765625, -0.004566192626953125, -0.003627777099609375, 0.0180206298828125, 0.005035400390625, 0.069580078125, -0.034088134765625, 0.0089874267578125, -0.029449462890625, -0.03619384765625, -0.052215576171875, 0.014923095703125, -0.01543426513671875, -0.02374267578125, 0.032135009765625 ]
bc3f041a324b00baf7fdd9f9dfdc524926ba03f1
Wordpress Stackexchange Q: How to change post thumbnail title and alt attributes to post title? Can we change the title and alt attributes of the_post_thumbnails and set them to post title instead ? like creating a function for it and adding a filter ? I tried searching but I can't seem to find what I want. and thanks in advance. A: Look at this http://codex.wordpress.org/Function_Reference/the_post_thumbnail second argument in this function you can set a few set fields, such as alt, title, source and class: $default_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim(strip_tags( wp_postmeta->_wp_attachment_image_alt )), 'title' => trim(strip_tags( $attachment->post_title )), );
Q: How to change post thumbnail title and alt attributes to post title? Can we change the title and alt attributes of the_post_thumbnails and set them to post title instead ? like creating a function for it and adding a filter ? I tried searching but I can't seem to find what I want. and thanks in advance. A: Look at this http://codex.wordpress.org/Function_Reference/the_post_thumbnail second argument in this function you can set a few set fields, such as alt, title, source and class: $default_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim(strip_tags( wp_postmeta->_wp_attachment_image_alt )), 'title' => trim(strip_tags( $attachment->post_title )), ); A: try this $title_attribute = the_title_attribute( array( 'echo' => FALSE ) ); the_post_thumbnail( 'full', array( 'alt' => $title_attribute, 'title' => $title_attribute ) );
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:418454", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/46985" }
[ 0.03656005859375, -0.007427215576171875, 0.04229736328125, 0.042205810546875, -0.01177215576171875, -0.016448974609375, 0.08636474609375, -0.06781005859375, -0.0037364959716796875, 0.0178375244140625, -0.0027866363525390625, 0.0189971923828125, 0.0033931732177734375, -0.0246734619140625, 0.0260009765625, -0.0064239501953125, 0.0291290283203125, -0.004871368408203125, 0.0255889892578125, -0.0011005401611328125, 0.0164337158203125, 0.014556884765625, 0.02056884765625, 0.015777587890625, 0.0138092041015625, -0.01513671875, 0.081298828125, -0.0165863037109375, -0.00893402099609375, -0.03033447265625, 0.027557373046875, 0.01296234130859375, 0.054168701171875, -0.03961181640625, 0.0097503662109375, 0.06951904296875, 0.0545654296875, -0.0305633544921875, -0.0117950439453125, 0.05133056640625, 0.04095458984375, -0.02410888671875, -0.010345458984375, 0.0296783447265625, -0.016448974609375, -0.0149078369140625, 0.0247802734375, -0.0335693359375, 0.0307769775390625, -0.0214691162109375, -0.006969451904296875, 0.02685546875, 0.017822265625, -0.0765380859375, -0.0200042724609375, -0.0180511474609375, -0.046417236328125, 0.0252685546875, 0.044921875, 0.0107574462890625, -0.02923583984375, -0.0298309326171875, -0.00010597705841064453, -0.037078857421875, 0.0052642822265625, 0.012359619140625, 0.03436279296875, 0.0007839202880859375, -0.020050048828125, 0.0078582763671875, 0.0323486328125, -0.02789306640625, 0.0096282958984375, -0.04693603515625, 0.0191192626953125, 0.036285400390625, -0.038421630859375, -0.006519317626953125, 0.01540374755859375, -0.0034732818603515625, 0.055908203125, -0.03759765625, 0.034393310546875, 0.0010509490966796875, 0.035186767578125, 0.03057861328125, 0.01837158203125, -0.030548095703125, 0.002552032470703125, -0.0218505859375, 0.00946044921875, -0.00937652587890625, -0.0740966796875, 0.0506591796875, 0.035736083984375, -0.04461669921875, 0.0265350341796875, 0.036407470703125, 0.005550384521484375, -0.0024127960205078125, 0.00766754150390625, -0.044097900390625, 0.0062408447265625, -0.0271759033203125, -0.0169830322265625, -0.041839599609375, -0.0177764892578125, -0.005367279052734375, 0.005062103271484375, 0.058380126953125, -0.04534912109375, -0.0035800933837890625, 0.005062103271484375, 0.0312042236328125, -0.05950927734375, 0.0021572113037109375, -0.0254058837890625, -0.0089263916015625, -0.03363037109375, 0.042724609375, -0.0038623809814453125, -0.00658416748046875, 0.042144775390625, -0.01259613037109375, 0.0287933349609375, 0.037750244140625, -0.04150390625, -0.0312347412109375, -0.007137298583984375, 0.0288848876953125, -0.014617919921875, -0.007717132568359375, 0.0278778076171875, 0.054840087890625, 0.0225830078125, -0.00705718994140625, -0.0258026123046875, -0.023040771484375, -0.03076171875, 0.0037097930908203125, -0.017913818359375, -0.019866943359375, 0.036041259765625, -0.0300140380859375, 0.0330810546875, 0.034088134765625, 0.007007598876953125, 0.0176544189453125, -0.002841949462890625, -0.04681396484375, 0.05718994140625, -0.055389404296875, 0.0013570785522460938, 0.032257080078125, 0.032867431640625, -0.01641845703125, 0.0743408203125, -0.037872314453125, 0.00513458251953125, -0.037261962890625, 0.0142822265625, -0.025909423828125, -0.00934600830078125, -0.00899505615234375, -0.0312347412109375, 0.037567138671875, -0.01447296142578125, -0.00505828857421875, 0.0106353759765625, 0.0224151611328125, 0.019744873046875, 0.03009033203125, 0.0052947998046875, -0.01155853271484375, -0.007282257080078125, -0.030242919921875, -0.01080322265625, -0.031280517578125, 0.0307159423828125, 0.04095458984375, -0.01055145263671875, -0.025604248046875, 0.01336669921875, -0.0072479248046875, -0.025543212890625, -0.0107421875, 0.0013246536254882812, -0.002101898193359375, 0.025299072265625, 0.016204833984375, 0.00968170166015625, -0.001544952392578125, -0.0183868408203125, 0.0253143310546875, 0.036468505859375, -0.0237579345703125, -0.043365478515625, -0.026885986328125, -0.0007338523864746094, -0.02362060546875, 0.025238037109375, 0.015716552734375, -0.018280029296875, 0.00800323486328125, 0.00424957275390625, -0.0435791015625, 0.0159149169921875, 0.004184722900390625, -0.01119232177734375, 0.032196044921875, 0.01372528076171875, -0.014984130859375, -0.0241546630859375, 0.03106689453125, -0.00009918212890625, -0.022552490234375, -0.01009368896484375, -0.035491943359375, -0.0239715576171875, 0.00502777099609375, -0.02825927734375, -0.0017242431640625, -0.03564453125, 0.0443115234375, 0.06195068359375, -0.009063720703125, -0.018829345703125, -0.0213623046875, 0.032318115234375, 0.0201568603515625, -0.074462890625, 0.0238800048828125, 0.0146636962890625, -0.005031585693359375, -0.0225982666015625, 0.002964019775390625, -0.01445770263671875, -0.06341552734375, 0.005458831787109375, 0.06939697265625, 0.0361328125, 0.0203857421875, 0.0087738037109375, 0.0287322998046875, 0.0633544921875, 0.007015228271484375, 0.0265045166015625, -0.00370025634765625, 0.017547607421875, -0.020111083984375, -0.008697509765625, -0.035736083984375, 0.056915283203125, -0.041107177734375, 0.021820068359375, 0.046844482421875, -0.0103759765625, -0.0124664306640625, -0.0020847320556640625, 0.016021728515625, 0.00934600830078125, -0.02459716796875, -0.0018262863159179688, -0.0184173583984375, 0.036285400390625, 0.049774169921875, 0.03057861328125, 0.025970458984375, -0.06646728515625, 0.06597900390625, 0.00933837890625, -0.001369476318359375, 0.009246826171875, 0.02935791015625, 0.0036640167236328125, 0.0212860107421875, -0.016510009765625, -0.012359619140625, 0.00878143310546875, 0.01108551025390625, -0.020904541015625, 0.012359619140625, 0.0157012939453125, -0.0017290115356445312, -0.010284423828125, -0.054656982421875, 0.0257720947265625, 0.01346588134765625, -0.026031494140625, -0.0285491943359375, 0.00614166259765625, 0.0166473388671875, -0.02813720703125, 0.0207977294921875, 0.01288604736328125, -0.0111236572265625, -0.0008187294006347656, -0.07635498046875, 0.05999755859375, -0.05047607421875, 0.067626953125, 0.0794677734375, -0.016510009765625, 0.0295867919921875, 0.00905609130859375, -0.004848480224609375, -0.0196990966796875, 0.006092071533203125, -0.00937652587890625, -0.0006175041198730469, -0.0694580078125, 0.00502777099609375, 0.006099700927734375, 0.078857421875, -0.05609130859375, -0.07330322265625, -0.018402099609375, 0.0213165283203125, -0.07080078125, -0.0233306884765625, 0.01372528076171875, -0.063720703125, -0.0137481689453125, -0.00037360191345214844, -0.039215087890625, -0.0075836181640625, 0.048095703125, -0.006816864013671875, 0.0144195556640625, -0.0078277587890625, -0.03106689453125, -0.004032135009765625, -0.046661376953125, -0.0234832763671875, -0.0159759521484375, -0.001041412353515625, 0.00821685791015625, -0.0037899017333984375, -0.01065826416015625, -0.03472900390625, 0.0034885406494140625, 0.055023193359375, -0.0016756057739257812, -0.0215301513671875, 0.0247802734375, -0.0277252197265625, -0.0238037109375, 0.004611968994140625, 0.0207366943359375, 0.02978515625, -0.0230255126953125, 0.0036296844482421875, -0.025421142578125, 0.0263214111328125, 0.006710052490234375, 0.00528717041015625, 0.0306396484375, 0.043243408203125, 0.00530242919921875, -0.0206298828125, -0.05706787109375, -0.0312347412109375, -0.09033203125, 0.00894927978515625, 0.0562744140625, 0.0228271484375, -0.04095458984375, 0.02203369140625, 0.0123138427734375, 0.01441192626953125, 0.0328369140625, 0.006519317626953125, -0.0020294189453125, -0.01361083984375, -0.0160980224609375, -0.02838134765625, -0.00836181640625, -0.0264739990234375, 0.0184173583984375, -0.0136260986328125, 0.025787353515625, -0.00368499755859375, 0.025634765625, -0.017242431640625, -0.05340576171875, 0.0323486328125, -0.055145263671875, 0.022674560546875, -0.050933837890625, -0.02728271484375, -0.00856781005859375, 0.08795166015625, -0.04150390625, -0.0230560302734375, -0.0213623046875, 0.023162841796875, -0.01155853271484375, -0.05987548828125, -0.00013458728790283203, -0.01904296875, -0.115234375, 0.046875, 0.0299072265625, -0.0306549072265625, -0.036956787109375, 0.043243408203125, -0.0745849609375, -0.0213623046875, 0.01474761962890625, 0.04547119140625, -0.013427734375, 0.0243988037109375, -0.04071044921875, 0.04974365234375, -0.0245513916015625, 0.0096588134765625, -0.09161376953125, -0.028594970703125, -0.00302886962890625, 0.084228515625, -0.02532958984375, 0.016143798828125, -0.0465087890625, 0.045318603515625, -0.025421142578125, 0.0208892822265625, 0.0038776397705078125, 0.023590087890625, 0.01324462890625, 0.035186767578125, 0.0043182373046875, -0.007160186767578125, 0.007965087890625, -0.045257568359375, -0.0645751953125, -0.0236968994140625, -0.0306549072265625, 0.051239013671875, 0.005428314208984375, -0.0243988037109375, -0.043426513671875, -0.02215576171875, 0.04815673828125, 0.039825439453125, 0.0087738037109375, 0.0098876953125, -0.040069580078125, -0.029876708984375, 0.076171875, 0.01343536376953125, -0.0132904052734375, -0.006420135498046875, 0.05023193359375, 0.0013074874877929688, -0.035736083984375, -0.05279541015625, -0.0009484291076660156, 0.0131072998046875, -0.04095458984375, 0.04583740234375, -0.002811431884765625, -0.01030731201171875, 0.0611572265625, -0.03778076171875, 0.011138916015625, -0.047607421875, 0.040771484375, -0.0028400421142578125, 0.00017642974853515625, 0.0240478515625, -0.00925445556640625, 0.0380859375, -0.00592803955078125, -0.000024020671844482422, -0.00882720947265625, 0.005603790283203125, 0.0223236083984375, 0.0193939208984375, -0.0038394927978515625, -0.018646240234375, -0.0225830078125, 0.005710601806640625, 0.00754547119140625, -0.016510009765625, 0.038543701171875, -0.01474761962890625, -0.0171356201171875, -0.0189056396484375, 0.020477294921875, -0.07037353515625, -0.00241851806640625, -0.032196044921875, 0.0374755859375, -0.03094482421875, 0.016082763671875, -0.05419921875, -0.01224517822265625, 0.03955078125, -0.0013074874877929688, -0.0472412109375, 0.0024566650390625, -0.0062103271484375, 0.048248291015625, 0.007747650146484375, -0.00489044189453125, 0.034912109375, 0.034210205078125, -0.0093536376953125, -0.0171051025390625, -0.056304931640625, 0.037689208984375, -0.05474853515625, 0.0229034423828125, 0.046173095703125, -0.019775390625, 0.031036376953125, 0.030517578125, 0.043426513671875, 0.014007568359375, -0.027618408203125, 0.0225372314453125, 0.0158233642578125, 0.03802490234375, 0.025054931640625, -0.00946807861328125, -0.0401611328125, 0.03875732421875, -0.022796630859375, -0.03851318359375, 0.005275726318359375, 0.030670166015625, 0.04876708984375, 0.0007143020629882812, -0.02728271484375, 0.007053375244140625, -0.04046630859375, -0.01258087158203125, -0.00017082691192626953, -0.01236724853515625, -0.040283203125, -0.00011491775512695312, 0.02752685546875, 0.01265716552734375, -0.008758544921875, -0.017791748046875, -0.0105133056640625, -0.0165252685546875, -0.0012969970703125, -0.0079498291015625, -0.049163818359375, 0.0258636474609375, 0.0251617431640625, -0.0164794921875, -0.027191162109375, -0.035247802734375, 0.01316070556640625, -0.01206207275390625, -0.00667572021484375, -0.019989013671875, 0.03955078125, -0.04022216796875, 0.06396484375, -0.022125244140625, -0.019378662109375, -0.004650115966796875, 0.0230712890625, 0.034698486328125, 0.02740478515625, -0.0621337890625, -0.005603790283203125, -0.03875732421875, -0.0104217529296875, 0.0098419189453125, -0.00415802001953125, -0.055938720703125, -0.01474761962890625, 0.0087432861328125, 0.0293731689453125, -0.002857208251953125, 0.0014200210571289062, -0.003467559814453125, 0.0038604736328125, 0.0040740966796875, 0.050689697265625, -0.024871826171875, 0.0279693603515625, 0.0203094482421875, 0.0517578125, -0.00949859619140625, -0.00786590576171875, -0.004611968994140625, -0.023834228515625, 0.0005311965942382812, -0.07452392578125, -0.008758544921875, 0.022247314453125, -0.0294342041015625, 0.01006317138671875, 0.00646209716796875, 0.0059051513671875, 0.010223388671875, -0.0253448486328125, -0.007381439208984375, -0.0198974609375, 0.0204010009765625, -0.0462646484375, -0.01047515869140625, -0.0012006759643554688, -0.01898193359375, 0.034454345703125, -0.02490234375, -0.0220947265625, 0.0183563232421875, -0.036407470703125, 0.019134521484375, 0.048309326171875, -0.03302001953125, 0.0267333984375, 0.059356689453125, -0.0117645263671875, 0.031524658203125, 0.032501220703125, -0.000011146068572998047, 0.0123443603515625, 0.006862640380859375, 0.037445068359375, 0.004497528076171875, 0.09124755859375, 0.0046539306640625, -0.0280914306640625, 0.043060302734375, -0.058441162109375, 0.032501220703125, -0.0052490234375, 0.0615234375, -0.001983642578125, 0.0335693359375, 0.03302001953125, -0.017791748046875, 0.046417236328125, 0.0113067626953125, -0.00801849365234375, -0.0018606185913085938, 0.0285491943359375, -0.059417724609375, -0.02069091796875, 0.00864410400390625, -0.004058837890625, -0.0096893310546875, -0.00809478759765625, -0.017730712890625, 0.0019464492797851562, -0.0546875, -0.0099945068359375, 0.0457763671875, -0.03228759765625, -0.024993896484375, 0.007099151611328125, 0.0125579833984375, -0.0160980224609375, -0.08184814453125, 0.005489349365234375, -0.0240936279296875, -0.0130462646484375, -0.00024962425231933594, 0.054840087890625, 0.04071044921875, 0.03973388671875, 0.0255889892578125, -0.013946533203125, 0.0123291015625, -0.0183563232421875, -0.05328369140625, -0.0146026611328125, -0.00634765625, 0.04010009765625, -0.020172119140625, 0.032745361328125, -0.026153564453125, -0.006649017333984375, -0.009521484375, -0.005702972412109375, 0.03631591796875, 0.0293731689453125, -0.0401611328125, 0.0168609619140625, -0.0024204254150390625, 0.002704620361328125, -0.027008056640625, 0.0117034912109375, -0.052032470703125, -0.007480621337890625, -0.018402099609375, -0.0295867919921875, -0.0005826950073242188, -0.0296630859375, -0.0841064453125, 0.093017578125, -0.0018796920776367188, 0.057586669921875, -0.0004839897155761719, 0.01458740234375, -0.008087158203125, -0.0016078948974609375, -0.01168060302734375, 0.0276947021484375, -0.02215576171875, 0.0077056884765625, -0.0165557861328125, 0.01409912109375, 0.019744873046875, 0.004665374755859375, 0.0499267578125, 0.0077972412109375, -0.0283355712890625, -0.0104217529296875, 0.0750732421875, 0.056976318359375, 0.01861572265625, 0.0270538330078125, -0.0187225341796875, 0.0194854736328125, 0.031951904296875, -0.039306640625, 0.022003173828125, 0.006198883056640625, -0.0208740234375, 0.007328033447265625, 0.0239410400390625, 0.03143310546875, 0.0004200935363769531, 0.005344390869140625, -0.03387451171875, -0.0054473876953125, 0.043701171875, -0.0309600830078125, 0.0093536376953125, 0.0236663818359375, 0.026519775390625, 0.0170135498046875, -0.051910400390625, -0.0015239715576171875, 0.038665771484375, 0.0322265625, 0.0180511474609375, 0.0219573974609375, 0.006618499755859375, 0.0137481689453125, 0.01503753662109375, 0.01416015625, 0.0172119140625, 0.01032257080078125, 0.0203857421875, -0.0060882568359375, 0.00904083251953125, -0.047210693359375, 0.0210418701171875, 0.036224365234375, 0.0244903564453125, -0.043609619140625, 0.00533294677734375, 0.0300140380859375, 0.0203094482421875, -0.0136871337890625, -0.05059814453125, -0.033966064453125, -0.058563232421875, -0.003986358642578125, -0.031158447265625, 0.02593994140625, 0.049530029296875, 0.03338623046875, 0.0015993118286132812, 0.01522064208984375, -0.09161376953125, 0.0130157470703125, -0.00872039794921875, -0.037384033203125, 0.007411956787109375, 0.046478271484375, 0.0265960693359375, 0.03924560546875, -0.01445770263671875, -0.01134490966796875, 0.01094818115234375, 0.0341796875, -0.0290679931640625, -0.033355712890625, -0.0011529922485351562, -0.07916259765625, -0.01338958740234375, 0.01446533203125, 0.0263214111328125, 0.006839752197265625, 0.064453125, 0.0280303955078125, -0.0736083984375, -0.0156707763671875, -0.0137786865234375, -0.03045654296875, 0.00933837890625, -0.013916015625, 0.041412353515625, 0.039031982421875, 0.00333404541015625, -0.03271484375, 0.042022705078125, 0.039886474609375, -0.050628662109375, 0.0631103515625, -0.00318145751953125, -0.026824951171875, 0.0213775634765625, -0.01470184326171875, 0.06842041015625, -0.0018062591552734375, -0.0570068359375, -0.003910064697265625, -0.0037212371826171875, -0.0645751953125, 0.00946044921875, 0.038909912109375, -0.04669189453125, 0.034454345703125, -0.033203125, -0.021636962890625, 0.024658203125, -0.01401519775390625, 0.01360321044921875, 0.064453125, 0.00478363037109375, 0.0177001953125, -0.0126953125, -0.00897216796875, -0.00940704345703125, 0.03790283203125, 0.029632568359375, 0.014984130859375, -0.01473236083984375, 0.04412841796875, -0.025970458984375, 0.021392822265625, -0.04632568359375, -0.0181884765625, 0.035369873046875, -0.01302337646484375, 0.0020275115966796875, -0.0019931793212890625, -0.00811767578125, 0.0002505779266357422, 0.02471923828125, -0.0246734619140625, -0.006618499755859375, -0.03082275390625, 0.026336669921875, -0.00881195068359375, 0.043914794921875, -0.03240966796875, -0.019989013671875, -0.05224609375, -0.02630615234375, 0.03070068359375, 0.0026721954345703125, 0.00859832763671875, 0.0008530616760253906, 0.025604248046875, -0.0091094970703125, 0.0206146240234375, 0.00879669189453125, 0.039093017578125, 0.045867919921875, -0.043792724609375, -0.055755615234375, 0.028228759765625, 0.0023555755615234375, 0.00406646728515625, 0.0212860107421875, 0.045257568359375, 0.033172607421875, -0.023590087890625, -0.02227783203125, -0.03533935546875, 0.01445770263671875, 0.0070037841796875, 0.005062103271484375, -0.036712646484375, 0.0099639892578125, -0.054595947265625, 0.0110321044921875, -0.0267333984375, -0.07281494140625, 0.0146942138671875, 0.0265045166015625, -0.0294189453125, -0.0027332305908203125, -0.047119140625, -0.0179290771484375, 0.0243988037109375, -0.0031414031982421875, 0.0034618377685546875, -0.0007810592651367188, -0.016510009765625, -0.018463134765625, 0.01187896728515625, -0.06719970703125, 0.0127105712890625, 0.01338958740234375, -0.02423095703125, -0.0352783203125, -0.07244873046875, -0.0087127685546875, -0.0645751953125, 0.042724609375, 0.056793212890625, -0.035186767578125, -0.0411376953125, 0.037261962890625, 0.027313232421875, 0.0816650390625, -0.007366180419921875, -0.02557373046875, -0.0123748779296875, 0.0140533447265625, 0.005615234375, -0.06414794921875, -0.00655364990234375, -0.04486083984375, -0.0140228271484375, -0.004032135009765625, -0.0294342041015625, -0.0186309814453125, -0.0406494140625, -0.006877899169921875, 0.0521240234375, 0.01030731201171875, -0.0208587646484375, -0.0138702392578125, 0.0246124267578125, -0.008056640625, 0.019866943359375, 0.0220489501953125, -0.0137481689453125, -0.005420684814453125, -0.0187530517578125, 0.022308349609375, 0.0012350082397460938, 0.0225372314453125, -0.00228118896484375, -0.007587432861328125, 0.036956787109375, 0.0297698974609375, 0.002727508544921875, 0.0229339599609375, -0.00798797607421875, 0.01149749755859375, 0.03265380859375, -0.06475830078125, -0.024810791015625, -0.0302581787109375, 0.00498199462890625, -0.00820159912109375, 0.00850677490234375, -0.04327392578125, -0.0016889572143554688, 0.06805419921875, 0.08758544921875, 0.0262603759765625, -0.033172607421875, 0.00013566017150878906, 0.006496429443359375, -0.0184173583984375, 0.0022449493408203125, 0.01094818115234375, -0.04791259765625, -0.03076171875, 0.014434814453125, 0.000016510486602783203, -0.0227813720703125, 0.004650115966796875, -0.032196044921875, -0.017303466796875, -0.00778961181640625, 0.007366180419921875, -0.049560546875, 0.048614501953125, 0.055450439453125, -0.05126953125, 0.0042877197265625, -0.022979736328125, 0.00971221923828125, 0.026641845703125, -0.060394287109375, 0.0006709098815917969, -0.01251220703125, -0.00922393798828125, 0.024383544921875, -0.004642486572265625, 0.0147857666015625, -0.0229339599609375, -0.01219940185546875, -0.0153656005859375, 0.031585693359375, 0.0166015625, 0.03961181640625, 0.0021514892578125, -0.004337310791015625, 0.003143310546875, 0.0288543701171875, 0.00041747093200683594, -0.0161590576171875, -0.005748748779296875, 0.0012216567993164062, -0.05914306640625, 0.00731658935546875, -0.0281982421875, -0.0360107421875, 0.0151519775390625, 0.01007843017578125, 0.03204345703125, -0.0214080810546875, 0.002197265625, -0.0256805419921875, 0.0094757080078125, 0.01003265380859375 ]
169550bfc1ff205c3db4eec89bcefe4550e18565
Wordpress Stackexchange Q: Removing buttons from the html editor I've been searching the codex, and I'm probably overlooking something somewhere, but could someone tell if it would be possible to remove a button/quicktag from the WordPress html editor? A: With the quicktag_settings filter: function wpa_47010( $qtInit ) { $qtInit['buttons'] = 'strong,em,link,block,del,img,ul,ol,li,code,more,spell,close,fullscreen'; return $qtInit; } add_filter('quicktags_settings', 'wpa_47010'); The default is: $qtInit['buttons'] = 'strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close'; Though 'fullscreen' usually gets added too at the end. So I just deleted the 'ins' button. Edit to add: If you wish to create a custom button the following tutorial might help.
Q: Removing buttons from the html editor I've been searching the codex, and I'm probably overlooking something somewhere, but could someone tell if it would be possible to remove a button/quicktag from the WordPress html editor? A: With the quicktag_settings filter: function wpa_47010( $qtInit ) { $qtInit['buttons'] = 'strong,em,link,block,del,img,ul,ol,li,code,more,spell,close,fullscreen'; return $qtInit; } add_filter('quicktags_settings', 'wpa_47010'); The default is: $qtInit['buttons'] = 'strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close'; Though 'fullscreen' usually gets added too at the end. So I just deleted the 'ins' button. Edit to add: If you wish to create a custom button the following tutorial might help. A: I'm late to this party I know, but might I add that it's better to be agnostic about the default buttons provided by Wordpress. So instead of typing the buttons you want, I choose to remove the buttons I don't want: function nmt_quicktags_buttons( $qt_init) { $del_buttons = array('del','ins','img','code'); $qt_init['buttons'] = implode(',', array_diff(explode(',',$qt_init['buttons']), $del_buttons)); return $qt_init; } Now if anyone at Wordpress decides the quicktags-toolbar gets a new button, it will show up in your editor without a code change of your plugin/function.
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:418462", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47010" }
[ 0.03265380859375, 0.0195770263671875, 0.0173492431640625, 0.07220458984375, 0.034637451171875, -0.036468505859375, 0.11126708984375, -0.070556640625, 0.033203125, 0.03314208984375, 0.041015625, -0.037384033203125, -0.0227813720703125, -0.0511474609375, -0.040771484375, -0.00331878662109375, 0.0222625732421875, -0.01715087890625, 0.03350830078125, -0.0171356201171875, 0.00543212890625, -0.0032100677490234375, 0.0267333984375, -0.0126495361328125, -0.004547119140625, -0.0121917724609375, 0.074462890625, -0.042083740234375, -0.01158905029296875, -0.04266357421875, 0.0111846923828125, 0.0260772705078125, 0.007049560546875, 0.06573486328125, -0.07586669921875, 0.00499725341796875, -0.01450347900390625, 0.0426025390625, -0.0111541748046875, 0.026153564453125, 0.0290374755859375, -0.024932861328125, -0.0289154052734375, -0.019256591796875, -0.027252197265625, -0.006549835205078125, 0.0239410400390625, -0.032867431640625, 0.002315521240234375, -0.0015325546264648438, 0.0209808349609375, 0.0274505615234375, 0.045745849609375, -0.0496826171875, -0.01035308837890625, -0.0248565673828125, -0.0272674560546875, 0.01708984375, 0.0027408599853515625, 0.06573486328125, 0.0242767333984375, 0.0254974365234375, -0.02154541015625, -0.039947509765625, 0.00461578369140625, -0.0181121826171875, -0.027252197265625, 0.027313232421875, -0.038055419921875, 0.010467529296875, 0.02490234375, -0.0413818359375, 0.0121917724609375, -0.036865234375, 0.01515960693359375, 0.018585205078125, -0.00502777099609375, 0.004215240478515625, 0.00946044921875, -0.00862884521484375, 0.043243408203125, 0.0183868408203125, -0.004993438720703125, 0.0226287841796875, 0.009124755859375, 0.048919677734375, -0.0009136199951171875, -0.04583740234375, 0.0143890380859375, -0.01204681396484375, 0.0063018798828125, -0.0452880859375, 0.0234527587890625, 0.02679443359375, -0.0285186767578125, -0.0352783203125, 0.03350830078125, 0.0068817138671875, 0.01403045654296875, -0.01139068603515625, 0.026580810546875, -0.06494140625, 0.035430908203125, -0.0253448486328125, 0.00783538818359375, 0.03436279296875, -0.01486968994140625, 0.068603515625, 0.0633544921875, 0.0272979736328125, 0.019927978515625, -0.0275726318359375, -0.0159454345703125, -0.005764007568359375, -0.0176544189453125, -0.0021953582763671875, -0.043182373046875, 0.0303955078125, -0.01477813720703125, 0.007450103759765625, -0.0247802734375, -0.00634002685546875, -0.030059814453125, 0.00864410400390625, 0.01922607421875, 0.0015277862548828125, -0.0005478858947753906, 0.019989013671875, 0.01074981689453125, -0.0257568359375, -0.043670654296875, 0.03350830078125, 0.0648193359375, 0.0411376953125, 0.0264129638671875, -0.0075836181640625, 0.03533935546875, 0.0139312744140625, 0.00311279296875, 0.0382080078125, -0.035430908203125, -0.03839111328125, -0.0016574859619140625, -0.026153564453125, -0.02178955078125, 0.022796630859375, 0.00975799560546875, 0.0171356201171875, 0.001125335693359375, -0.076416015625, 0.0240478515625, -0.04144287109375, 0.039794921875, 0.010833740234375, -0.0114593505859375, -0.03924560546875, 0.043975830078125, -0.041351318359375, -0.01137542724609375, -0.0533447265625, 0.0196075439453125, -0.00960540771484375, 0.03448486328125, -0.023895263671875, -0.039215087890625, 0.00641632080078125, -0.05438232421875, -0.0166778564453125, 0.02325439453125, 0.07635498046875, -0.02703857421875, -0.03656005859375, -0.005664825439453125, 0.0195465087890625, -0.01473236083984375, 0.033843994140625, 0.025177001953125, -0.020477294921875, 0.000843048095703125, 0.062225341796875, -0.00637054443359375, -0.03314208984375, 0.028472900390625, -0.03558349609375, -0.09613037109375, 0.0166778564453125, -0.0164947509765625, 0.0648193359375, 0.054473876953125, 0.000568389892578125, 0.054840087890625, -0.0307464599609375, -0.03253173828125, 0.0186309814453125, 0.041229248046875, -0.034271240234375, -0.059814453125, -0.043701171875, 0.006961822509765625, -0.006877899169921875, 0.006870269775390625, 0.01195526123046875, -0.03143310546875, 0.01114654541015625, -0.09869384765625, 0.008758544921875, -0.033203125, 0.0421142578125, 0.018768310546875, -0.0266265869140625, 0.0023288726806640625, -0.028350830078125, -0.01251983642578125, 0.007236480712890625, -0.0220794677734375, 0.037078857421875, 0.0009603500366210938, 0.05316162109375, 0.021942138671875, 0.021942138671875, 0.0243988037109375, -0.0301971435546875, 0.0157928466796875, -0.008941650390625, 0.045562744140625, -0.0234222412109375, -0.0260162353515625, -0.033966064453125, 0.02581787109375, -0.01499176025390625, -0.0225677490234375, 0.056976318359375, 0.05352783203125, 0.0579833984375, -0.016937255859375, -0.002338409423828125, -0.001743316650390625, -0.048370361328125, -0.01690673828125, 0.038970947265625, 0.0430908203125, -0.00335693359375, -0.028106689453125, -0.017913818359375, 0.04437255859375, -0.01093292236328125, 0.0088653564453125, -0.019744873046875, 0.01947021484375, 0.032440185546875, -0.0102996826171875, -0.0095977783203125, 0.01953125, 0.00846099853515625, 0.0352783203125, 0.027679443359375, -0.01206207275390625, -0.01275634765625, 0.027801513671875, -0.005096435546875, -0.01137542724609375, -0.0198516845703125, 0.00971221923828125, -0.020263671875, 0.040557861328125, 0.0249786376953125, 0.0340576171875, 0.041900634765625, -0.035003662109375, 0.0135345458984375, 0.01436614990234375, 0.0239105224609375, -0.00751495361328125, 0.041259765625, 0.0509033203125, 0.02301025390625, -0.0174407958984375, -0.0251007080078125, 0.005672454833984375, 0.039703369140625, -0.0188446044921875, 0.0152435302734375, 0.026275634765625, -0.0193939208984375, -0.0005030632019042969, -0.040802001953125, 0.0237274169921875, -0.0283660888671875, 0.007843017578125, -0.0095367431640625, 0.005832672119140625, 0.0386962890625, -0.01605224609375, 0.03857421875, -0.0016956329345703125, -0.0088653564453125, 0.025787353515625, -0.032684326171875, 0.03399658203125, 0.0022945404052734375, 0.059783935546875, 0.08245849609375, 0.0166015625, -0.0006074905395507812, 0.0244140625, -0.0184478759765625, 0.026458740234375, -0.0015306472778320312, 0.0072174072265625, 0.065185546875, -0.045623779296875, 0.08599853515625, 0.01136016845703125, 0.02130126953125, -0.0305633544921875, -0.06085205078125, -0.0261077880859375, 0.00249481201171875, -0.1046142578125, -0.044158935546875, 0.03851318359375, -0.0224609375, -0.020294189453125, 0.028350830078125, -0.030242919921875, -0.0162506103515625, 0.060333251953125, -0.00579071044921875, -0.00965118408203125, 0.0088043212890625, 0.0035037994384765625, 0.0179443359375, -0.01190185546875, 0.00589752197265625, -0.013092041015625, -0.0034503936767578125, 0.0113983154296875, 0.049285888671875, 0.00933074951171875, -0.0287628173828125, 0.00977325439453125, -0.0650634765625, -0.0008544921875, 0.0285186767578125, 0.061676025390625, -0.06524658203125, -0.0159759521484375, 0.0108489990234375, -0.0033664703369140625, 0.0032978057861328125, -0.0012140274047851562, -0.024871826171875, -0.0233917236328125, 0.01462554931640625, 0.0216827392578125, 0.01763916015625, 0.0185699462890625, 0.00594329833984375, 0.029815673828125, -0.035858154296875, 0.0050506591796875, 0.01419830322265625, 0.0020732879638671875, 0.055877685546875, -0.036651611328125, -0.0206298828125, 0.0249481201171875, 0.04754638671875, 0.04608154296875, 0.03448486328125, 0.001983642578125, 0.034759521484375, -0.0225982666015625, 0.00750732421875, 0.038360595703125, -0.033416748046875, -0.00494384765625, -0.032135009765625, 0.01406097412109375, -0.01519012451171875, -0.0156707763671875, -0.00695037841796875, -0.011260986328125, 0.02227783203125, -0.0026645660400390625, 0.034698486328125, -0.036468505859375, -0.023040771484375, -0.008148193359375, -0.0012216567993164062, 0.0014963150024414062, 0.028594970703125, -0.056793212890625, -0.0096588134765625, -0.01073455810546875, 0.00368499755859375, 0.0240325927734375, -0.036346435546875, -0.02496337890625, -0.016357421875, -0.088134765625, 0.0254974365234375, 0.0101776123046875, -0.01401519775390625, -0.03155517578125, 0.036651611328125, -0.053314208984375, -0.0360107421875, 0.060546875, -0.006198883056640625, 0.020477294921875, -0.0164794921875, 0.0167083740234375, -0.0170135498046875, -0.036376953125, 0.002899169921875, -0.019500732421875, 0.01413726806640625, -0.07611083984375, -0.002544403076171875, 0.03521728515625, 0.0004718303680419922, -0.0165252685546875, 0.0006856918334960938, -0.006534576416015625, 0.035919189453125, -0.0014657974243164062, 0.0280303955078125, -0.03607177734375, -0.00818634033203125, 0.021942138671875, -0.02606201171875, 0.025543212890625, 0.02783203125, -0.047271728515625, 0.057830810546875, -0.0227813720703125, 0.00287628173828125, 0.00844573974609375, -0.055450439453125, -0.048065185546875, -0.0665283203125, -0.03448486328125, 0.0025768280029296875, -0.0219573974609375, 0.00983428955078125, -0.051361083984375, -0.051727294921875, 0.0267791748046875, 0.02349853515625, -0.01181793212890625, -0.01082611083984375, 0.038726806640625, 0.031585693359375, -0.031158447265625, 0.0089569091796875, -0.014556884765625, 0.01152801513671875, 0.007762908935546875, 0.029388427734375, 0.02545166015625, 0.0093231201171875, -0.005130767822265625, -0.00634765625, 0.005279541015625, -0.05682373046875, 0.07379150390625, 0.004016876220703125, 0.024078369140625, 0.00238800048828125, -0.013092041015625, 0.032318115234375, -0.01033782958984375, 0.0104827880859375, -0.01611328125, 0.0308685302734375, 0.0165557861328125, 0.0132904052734375, -0.016448974609375, 0.00836944580078125, -0.0164794921875, -0.006439208984375, 0.031646728515625, 0.04595947265625, 0.041534423828125, 0.0021514892578125, 0.029022216796875, 0.033782958984375, -0.0009303092956542969, -0.0178680419921875, -0.019561767578125, -0.034149169921875, 0.01557159423828125, -0.008697509765625, -0.020263671875, 0.008880615234375, 0.006069183349609375, -0.0278167724609375, -0.00007033348083496094, -0.04693603515625, -0.005352020263671875, 0.01380157470703125, -0.0255584716796875, 0.01239013671875, 0.005130767822265625, 0.0159912109375, 0.01305389404296875, -0.018280029296875, 0.003711700439453125, 0.035980224609375, -0.02923583984375, -0.026458740234375, -0.07379150390625, -0.0275115966796875, -0.028778076171875, -0.00787353515625, -0.006618499755859375, -0.0499267578125, -0.00659942626953125, 0.006626129150390625, 0.00756072998046875, 0.01123046875, 0.0186004638671875, 0.00034236907958984375, 0.0106353759765625, 0.019195556640625, -0.0149383544921875, 0.022918701171875, -0.0174713134765625, -0.0168914794921875, -0.00135040283203125, 0.04083251953125, -0.004528045654296875, -0.0176849365234375, 0.010955810546875, -0.05560302734375, -0.01155853271484375, 0.0181732177734375, -0.0137939453125, -0.0736083984375, -0.0029430389404296875, 0.030426025390625, -0.00634002685546875, -0.038787841796875, -0.00196075439453125, -0.005924224853515625, -0.0159149169921875, -0.0260009765625, 0.00893402099609375, -0.0733642578125, -0.001316070556640625, 0.0198516845703125, 0.0262451171875, -0.004093170166015625, -0.0200042724609375, -0.11810302734375, -0.026092529296875, -0.01203155517578125, 0.041534423828125, 0.03985595703125, -0.00363922119140625, 0.0018291473388671875, -0.015777587890625, -0.0022220611572265625, 0.007297515869140625, 0.0009055137634277344, 0.033599853515625, -0.02337646484375, -0.019134521484375, -0.0255889892578125, -0.05462646484375, -0.0303497314453125, -0.04156494140625, -0.021728515625, -0.03216552734375, 0.01953125, 0.01025390625, 0.02386474609375, -0.0011148452758789062, 0.0111236572265625, -0.017059326171875, 0.02044677734375, 0.0111846923828125, 0.06884765625, -0.003173828125, 0.0030193328857421875, -0.0109710693359375, 0.028656005859375, 0.005954742431640625, -0.0109100341796875, -0.015716552734375, -0.0267181396484375, 0.03912353515625, -0.032562255859375, -0.067138671875, -0.01415252685546875, -0.070556640625, -0.007049560546875, 0.00936126708984375, -0.0263671875, 0.008392333984375, -0.0214080810546875, -0.008941650390625, -0.0215606689453125, 0.047943115234375, -0.017303466796875, 0.00843048095703125, 0.01526641845703125, -0.0201263427734375, 0.0187530517578125, -0.006622314453125, 0.006931304931640625, -0.01459503173828125, -0.01197052001953125, -0.0290679931640625, 0.03851318359375, -0.00445556640625, 0.0019321441650390625, 0.0262298583984375, -0.0127410888671875, 0.0374755859375, 0.03204345703125, 0.01116943359375, 0.0276336669921875, -0.01338958740234375, -0.04345703125, -0.0007977485656738281, 0.0153350830078125, -0.0011701583862304688, -0.007434844970703125, 0.02789306640625, -0.007328033447265625, 0.01947021484375, 0.06805419921875, 0.077880859375, -0.08819580078125, 0.0070037841796875, 0.0307769775390625, -0.0029296875, 0.021087646484375, -0.02984619140625, -0.01425933837890625, -0.03399658203125, 0.0472412109375, 0.023406982421875, -0.033355712890625, 0.002025604248046875, 0.02093505859375, -0.004085540771484375, -0.0009479522705078125, 0.0849609375, 0.01538848876953125, -0.027679443359375, -0.0186767578125, 0.0253753662109375, -0.02996826171875, -0.03594970703125, 0.028472900390625, -0.007053375244140625, -0.045440673828125, -0.079345703125, -0.034820556640625, 0.04498291015625, -0.04962158203125, 0.04754638671875, -0.0360107421875, 0.010009765625, 0.0194091796875, -0.04669189453125, 0.04815673828125, -0.0163726806640625, -0.0474853515625, -0.0316162109375, -0.02032470703125, 0.0236663818359375, -0.01922607421875, -0.02471923828125, 0.01727294921875, -0.0310821533203125, -0.032989501953125, 0.0285491943359375, 0.028167724609375, 0.048004150390625, -0.071533203125, -0.00803375244140625, 0.022125244140625, -0.002445220947265625, 0.001369476318359375, -0.01509857177734375, -0.036712646484375, -0.03509521484375, 0.0016832351684570312, -0.0517578125, -0.04296875, 0.06182861328125, -0.0377197265625, -0.06573486328125, 0.079345703125, 0.03411865234375, 0.0212860107421875, 0.0009579658508300781, 0.02972412109375, -0.059539794921875, -0.00644683837890625, 0.004955291748046875, 0.0182952880859375, 0.0198974609375, -0.0118408203125, 0.007122039794921875, -0.00392913818359375, 0.0067901611328125, 0.042205810546875, 0.0288543701171875, -0.0147247314453125, 0.056671142578125, 0.031524658203125, 0.06280517578125, 0.01279449462890625, -0.02716064453125, -0.01491546630859375, 0.0200653076171875, -0.000640869140625, -0.000347137451171875, -0.003803253173828125, 0.0295867919921875, -0.06304931640625, -0.0214691162109375, 0.037628173828125, 0.0108489990234375, -0.0028781890869140625, -0.00786590576171875, -0.0020599365234375, -0.00989532470703125, -0.000431060791015625, -0.016815185546875, 0.0257415771484375, 0.007022857666015625, 0.0322265625, 0.036163330078125, -0.05535888671875, -0.035003662109375, -0.0274505615234375, 0.041107177734375, 0.0166168212890625, 0.0202484130859375, 0.016387939453125, 0.0249481201171875, -0.00341033935546875, -0.0019779205322265625, 0.0214385986328125, 0.034149169921875, -0.03564453125, 0.0037174224853515625, -0.03887939453125, 0.0003657341003417969, -0.057403564453125, 0.03802490234375, 0.01323699951171875, 0.01543426513671875, -0.026885986328125, -0.0360107421875, -0.0097808837890625, -0.02044677734375, 0.038909912109375, -0.01268768310546875, 0.051971435546875, -0.044464111328125, -0.02276611328125, 0.00971221923828125, 0.002803802490234375, 0.0044097900390625, 0.001678466796875, 0.0186920166015625, 0.0755615234375, -0.02972412109375, 0.0032062530517578125, -0.02313232421875, -0.028167724609375, 0.008575439453125, 0.031768798828125, 0.04071044921875, 0.031036376953125, 0.03289794921875, -0.01336669921875, -0.0223236083984375, 0.036529541015625, -0.017608642578125, 0.037322998046875, -0.0633544921875, -0.0229034423828125, 0.0029582977294921875, 0.035919189453125, 0.032440185546875, 0.0020198822021484375, 0.042694091796875, -0.007129669189453125, -0.04669189453125, 0.0024394989013671875, -0.024322509765625, -0.04278564453125, 0.0035724639892578125, -0.0303955078125, 0.02374267578125, 0.032745361328125, 0.0049591064453125, -0.01141357421875, 0.009368896484375, 0.060089111328125, 0.004467010498046875, -0.0030574798583984375, -0.003997802734375, -0.02630615234375, 0.049957275390625, -0.02423095703125, 0.03662109375, 0.025390625, -0.0022182464599609375, 0.042694091796875, -0.037139892578125, -0.049835205078125, -0.00905609130859375, 0.0249786376953125, -0.016448974609375, 0.045074462890625, 0.00921630859375, -0.02197265625, 0.01190948486328125, 0.0093231201171875, 0.00591278076171875, 0.052276611328125, 0.021514892578125, 0.0123443603515625, -0.01334381103515625, 0.004047393798828125, 0.0157470703125, 0.007236480712890625, -0.00783538818359375, 0.0767822265625, -0.00923919677734375, -0.0089874267578125, 0.01064300537109375, -0.0275726318359375, 0.0277862548828125, 0.005435943603515625, 0.0245361328125, 0.009368896484375, -0.0204010009765625, -0.0304718017578125, -0.0135498046875, 0.032470703125, 0.01412200927734375, -0.0089111328125, 0.0121612548828125, -0.0122528076171875, 0.01271820068359375, 0.007595062255859375, 0.03778076171875, -0.006877899169921875, -0.031707763671875, -0.018341064453125, 0.0014781951904296875, 0.029327392578125, 0.06658935546875, 0.0186004638671875, 0.0016050338745117188, 0.023040771484375, 0.003948211669921875, 0.0399169921875, 0.01374053955078125, 0.044830322265625, 0.0279083251953125, -0.0149383544921875, -0.03497314453125, 0.01052093505859375, -0.0123443603515625, -0.0036067962646484375, 0.0166473388671875, 0.008636474609375, 0.02423095703125, -0.033172607421875, 0.006740570068359375, 0.0128021240234375, 0.019317626953125, -0.0278472900390625, 0.0087890625, 0.03521728515625, -0.0007939338684082031, -0.0009551048278808594, -0.0013704299926757812, 0.0019664764404296875, -0.01824951171875, -0.039520263671875, 0.013824462890625, -0.03753662109375, -0.059967041015625, -0.06805419921875, 0.021270751953125, 0.0007433891296386719, 0.0095062255859375, -0.06256103515625, 0.042236328125, -0.001880645751953125, 0.040252685546875, -0.0249176025390625, 0.030548095703125, -0.046295166015625, -0.058624267578125, -0.051422119140625, -0.037078857421875, -0.05841064453125, 0.06463623046875, -0.03375244140625, 0.01360321044921875, 0.0107574462890625, -0.01129150390625, 0.015838623046875, -0.0146331787109375, 0.008941650390625, 0.039794921875, 0.01078033447265625, -0.032684326171875, 0.0071868896484375, 0.0005316734313964844, 0.015594482421875, -0.06329345703125, -0.00789642333984375, -0.05426025390625, 0.003326416015625, 0.01263427734375, -0.039398193359375, -0.0244598388671875, -0.0760498046875, -0.13134765625, 0.029937744140625, -0.0015783309936523438, -0.0589599609375, 0.0210723876953125, 0.0418701171875, -0.005039215087890625, -0.01824951171875, 0.0119171142578125, -0.0126495361328125, 0.033111572265625, -0.0198516845703125, 0.004055023193359375, 0.0288848876953125, -0.017822265625, -0.01189422607421875, -0.041015625, 0.020721435546875, 0.01168060302734375, 0.01084136962890625, 0.02178955078125, -0.01751708984375, 0.03204345703125, 0.0143585205078125, -0.049530029296875, 0.004123687744140625, -0.01232147216796875, 0.0158538818359375, -0.02294921875, -0.041534423828125, -0.0218658447265625, -0.02740478515625, 0.054443359375, 0.045928955078125, 0.007289886474609375, -0.0215911865234375, -0.01788330078125, 0.004238128662109375, 0.009185791015625, -0.0202484130859375, 0.01143646240234375, -0.057525634765625, -0.0288848876953125, -0.01041412353515625, -0.020843505859375, 0.038421630859375, -0.0188140869140625, -0.045654296875, -0.0004696846008300781, -0.042938232421875, 0.0038166046142578125, -0.0950927734375, 0.0218658447265625, 0.01348114013671875, -0.0221099853515625, 0.00861358642578125, -0.032135009765625, -0.0006098747253417969, 0.0187225341796875, -0.010284423828125, -0.038848876953125, 0.0212860107421875, -0.01462554931640625, 0.045745849609375, -0.016693115234375, 0.01348876953125, -0.053131103515625, 0.0295257568359375, -0.0307769775390625, 0.011474609375, -0.0005140304565429688, -0.00579071044921875, -0.0292816162109375, 0.03460693359375, 0.0177764892578125, 0.04888916015625, -0.0252685546875, 0.0196990966796875, -0.0291748046875, 0.02392578125, -0.00498199462890625, 0.0010614395141601562, 0.03143310546875, -0.0219879150390625, 0.0052947998046875, 0.015289306640625, 0.00897216796875, -0.053070068359375, 0.033538818359375, 0.0080718994140625, 0.0163116455078125, 0.031463623046875 ]
16297e5f756ab200200c6fc24fcee59925d71221
Wordpress Stackexchange Q: Is there any record of installed plugins in the database? I have my live install on one server and a development install on another. I've added a plugin to both but it only appears in the plugin list in wp-admin on one. For a plugin to appear in wp-admin does it need to appear in the database at all? Or is it that just by having the plugin file(s) in the plugins directory that it'll be detected? Cheers! A: It saves the data in: * *wp_options * * *Row: option_name * * * * *active_plugins
Q: Is there any record of installed plugins in the database? I have my live install on one server and a development install on another. I've added a plugin to both but it only appears in the plugin list in wp-admin on one. For a plugin to appear in wp-admin does it need to appear in the database at all? Or is it that just by having the plugin file(s) in the plugins directory that it'll be detected? Cheers! A: It saves the data in: * *wp_options * * *Row: option_name * * * * *active_plugins A: The plugin file had Mac line endings so the meta-data comment at the top of the file wasn't being parsed properly. e.g. <?php /* Plugin Name: WP JSON-RPC Plugin URI: http://plugins.voceconnect.com Description: This plugin provides a JSON version of the XML-RPC WordPress API... Author: Jeff Stieler Version: 0.9.1 */ A: In 99% of cases a plugin isn't detected when moving because the owner of the directory is different from the current owner, meaning no reading rights. http://codex.wordpress.org/Changing_File_Permissions
wordpress
{ "language": "en", "length": 174, "provenance": "stackexchange_00019.jsonl.gz:418489", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47110" }
[ 0.04827880859375, 0.0049285888671875, -0.0011320114135742188, -0.01212310791015625, 0.005977630615234375, -0.019989013671875, 0.057220458984375, -0.0253143310546875, 0.014007568359375, 0.012298583984375, -0.024169921875, 0.0028476715087890625, -0.05352783203125, -0.019744873046875, -0.037322998046875, -0.050048828125, 0.0202484130859375, 0.02349853515625, 0.04296875, 0.0032100677490234375, 0.0031375885009765625, 0.037322998046875, -0.0232696533203125, 0.04522705078125, 0.0176849365234375, 0.0032558441162109375, 0.06744384765625, -0.0208892822265625, 0.04217529296875, -0.0110015869140625, 0.0264129638671875, -0.034454345703125, 0.003993988037109375, 0.0032806396484375, 0.023162841796875, -0.053466796875, 0.0150146484375, -0.01129150390625, 0.0010862350463867188, 0.019378662109375, 0.037750244140625, -0.034820556640625, 0.050140380859375, 0.01837158203125, 0.0216522216796875, -0.056793212890625, 0.064208984375, -0.041656494140625, 0.01181793212890625, -0.037078857421875, 0.035552978515625, 0.00464630126953125, 0.052032470703125, -0.059539794921875, -0.0306396484375, -0.0019178390502929688, -0.01424407958984375, 0.0496826171875, 0.03228759765625, -0.00937652587890625, -0.03497314453125, -0.0010423660278320312, 0.0162353515625, -0.018798828125, 0.001987457275390625, -0.0008778572082519531, 0.01468658447265625, 0.01959228515625, -0.0418701171875, 0.005725860595703125, 0.03765869140625, -0.033355712890625, -0.0036334991455078125, -0.006725311279296875, -0.027801513671875, -0.00698089599609375, 0.025482177734375, -0.002979278564453125, -0.006374359130859375, 0.0017499923706054688, 0.0207061767578125, 0.004917144775390625, 0.0509033203125, -0.0218658447265625, -0.016998291015625, 0.00033473968505859375, -0.0091400146484375, -0.0029296875, -0.00745391845703125, 0.0034160614013671875, -0.01541900634765625, -0.00582122802734375, -0.00679779052734375, 0.0347900390625, -0.00855255126953125, -0.006587982177734375, 0.0611572265625, 0.08758544921875, -0.0277099609375, -0.00970458984375, -0.01157379150390625, -0.0265960693359375, -0.00833892822265625, -0.0308990478515625, 0.0075531005859375, 0.02508544921875, -0.0296783447265625, -0.02911376953125, 0.025238037109375, 0.03839111328125, 0.001983642578125, -0.0009064674377441406, -0.00843048095703125, -0.0440673828125, -0.004489898681640625, 0.00945281982421875, -0.0244598388671875, 0.0271148681640625, 0.0230865478515625, -0.01244354248046875, 0.006519317626953125, 0.0384521484375, -0.056915283203125, -0.0321044921875, -0.0452880859375, -0.0726318359375, -0.006969451904296875, 0.0003476142883300781, -0.07342529296875, 0.0251007080078125, -0.0061798095703125, 0.0162811279296875, 0.044677734375, 0.03863525390625, -0.0174713134765625, -0.006839752197265625, 0.031707763671875, 0.023834228515625, 0.01459503173828125, 0.012359619140625, -0.014312744140625, -0.0218353271484375, 0.01334381103515625, -0.0209808349609375, 0.02056884765625, 0.0138397216796875, 0.006870269775390625, 0.016357421875, 0.00011557340621948242, -0.00612640380859375, -0.01111602783203125, 0.0120849609375, 0.0021724700927734375, 0.00872802734375, 0.060516357421875, 0.00461578369140625, 0.0338134765625, -0.010955810546875, -0.004291534423828125, 0.006877899169921875, -0.00591278076171875, -0.00887298583984375, 0.0182037353515625, -0.008544921875, -0.03875732421875, 0.01282501220703125, -0.019317626953125, 0.0035858154296875, 0.01160430908203125, -0.004352569580078125, 0.0026073455810546875, -0.01142120361328125, 0.03521728515625, 0.0158233642578125, 0.003040313720703125, 0.031097412109375, -0.017974853515625, -0.0152587890625, 0.038818359375, 0.04888916015625, -0.003459930419921875, -0.000980377197265625, 0.03790283203125, 0.0016422271728515625, -0.0380859375, 0.040740966796875, 0.0036067962646484375, 0.017181396484375, 0.00344085693359375, -0.00948333740234375, 0.0294189453125, 0.041015625, -0.01445770263671875, 0.0027141571044921875, -0.01541900634765625, -0.006298065185546875, -0.01541900634765625, 0.021728515625, -0.0103607177734375, -0.0251922607421875, -0.0445556640625, 0.01702880859375, -0.0069122314453125, 0.0238800048828125, -0.03350830078125, -0.0034694671630859375, -0.0146484375, 0.03436279296875, 0.018463134765625, 0.012054443359375, -0.00897979736328125, -0.01541900634765625, 0.0203094482421875, -0.042999267578125, -0.0294952392578125, 0.0107269287109375, -0.0372314453125, 0.0244598388671875, 0.0175933837890625, 0.057403564453125, -0.0016965866088867188, 0.00847625732421875, -0.0193634033203125, -0.0345458984375, 0.005146026611328125, 0.04388427734375, -0.03814697265625, 0.02252197265625, -0.0035381317138671875, 0.010833740234375, 0.025726318359375, 0.0207672119140625, 0.035919189453125, 0.033935546875, -0.0232696533203125, -0.03656005859375, -0.0233306884765625, -0.11590576171875, 0.0213165283203125, 0.07586669921875, 0.0208587646484375, 0.0268707275390625, -0.001003265380859375, 0.0526123046875, -0.01412200927734375, -0.047271728515625, 0.0165863037109375, 0.015716552734375, 0.0174560546875, 0.07952880859375, -0.00373077392578125, 0.037750244140625, 0.0015630722045898438, -0.01360321044921875, 0.01220703125, 0.04681396484375, -0.033172607421875, -0.00872039794921875, 0.004543304443359375, -0.0222930908203125, 0.0045013427734375, 0.00885772705078125, 0.01264190673828125, 0.000027179718017578125, 0.006679534912109375, 0.0196685791015625, 0.0268096923828125, 0.02972412109375, -0.0137786865234375, 0.0033283233642578125, 0.0093994140625, 0.01482391357421875, -0.006587982177734375, 0.008575439453125, 0.01059722900390625, 0.050201416015625, -0.0504150390625, -0.005523681640625, 0.03973388671875, 0.013946533203125, -0.01617431640625, -0.01922607421875, -0.0022258758544921875, 0.0009741783142089844, -0.000652313232421875, -0.0712890625, 0.041015625, 0.0175323486328125, -0.014617919921875, -0.0447998046875, -0.0017461776733398438, 0.020599365234375, -0.0312042236328125, 0.04052734375, -0.00965118408203125, -0.0268402099609375, 0.0251312255859375, -0.023162841796875, 0.0262451171875, -0.006908416748046875, 0.0103912353515625, 0.05755615234375, 0.033843994140625, -0.02691650390625, -0.0194091796875, -0.0038852691650390625, 0.003665924072265625, -0.01067352294921875, -0.0222320556640625, -0.00975799560546875, -0.05377197265625, 0.005794525146484375, 0.031402587890625, 0.014312744140625, 0.0227813720703125, -0.021820068359375, -0.0017023086547851562, 0.0279693603515625, -0.0794677734375, -0.056396484375, -0.080810546875, -0.045654296875, 0.031280517578125, -0.00975799560546875, -0.002338409423828125, 0.009918212890625, -0.005481719970703125, 0.0364990234375, -0.004039764404296875, -0.053955078125, -0.017059326171875, -0.0689697265625, -0.06427001953125, -0.0264739990234375, 0.0216064453125, 0.0167999267578125, 0.01303863525390625, 0.0819091796875, 0.0097503662109375, -0.07391357421875, -0.006443023681640625, -0.032257080078125, -0.019317626953125, 0.04571533203125, 0.010101318359375, -0.0443115234375, -0.002197265625, 0.01068115234375, -0.0041961669921875, -0.0052337646484375, -0.003742218017578125, -0.0213470458984375, 0.02093505859375, -0.019927978515625, 0.034332275390625, -0.0102386474609375, -0.040740966796875, 0.0312042236328125, 0.02203369140625, -0.0262298583984375, 0.03753662109375, -0.0018720626831054688, 0.002239227294921875, 0.0160980224609375, -0.04827880859375, -0.0163726806640625, 0.0302886962890625, 0.001293182373046875, 0.0256500244140625, 0.004245758056640625, -0.004741668701171875, -0.00872802734375, -0.0203857421875, 0.01235198974609375, 0.01192474365234375, -0.0037822723388671875, 0.01348114013671875, -0.01580810546875, -0.023406982421875, -0.00519561767578125, -0.0163421630859375, -0.045257568359375, 0.034637451171875, -0.0291595458984375, -0.0599365234375, 0.04144287109375, -0.0008015632629394531, 0.031219482421875, -0.05010986328125, -0.0391845703125, -0.0011625289916992188, 0.10162353515625, -0.04986572265625, -0.007511138916015625, -0.00339508056640625, 0.00577545166015625, 0.0028591156005859375, -0.038116455078125, -0.045989990234375, -0.0188751220703125, -0.08935546875, -0.0269012451171875, -0.01219940185546875, -0.03802490234375, 0.006580352783203125, 0.039581298828125, -0.02471923828125, -0.048919677734375, 0.034637451171875, -0.07879638671875, 0.0228271484375, -0.0003674030303955078, 0.007495880126953125, -0.04144287109375, -0.00608062744140625, -0.047821044921875, -0.072509765625, 0.003002166748046875, -0.0565185546875, 0.04779052734375, 0.02203369140625, 0.00878143310546875, -0.02392578125, 0.02471923828125, -0.0085601806640625, 0.023681640625, 0.0181121826171875, 0.03204345703125, -0.032989501953125, -0.0178985595703125, 0.033416748046875, -0.04632568359375, -0.027130126953125, -0.04583740234375, -0.0024013519287109375, 0.02239990234375, 0.00318145751953125, 0.0176239013671875, 0.00250244140625, 0.004138946533203125, 0.00975799560546875, 0.0035419464111328125, -0.043304443359375, -0.00336456298828125, -0.02227783203125, -0.0265960693359375, 0.0211181640625, -0.00395965576171875, 0.00992584228515625, -0.04339599609375, -0.00518035888671875, 0.02593994140625, 0.082275390625, 0.0237274169921875, 0.0126953125, -0.060699462890625, 0.024017333984375, 0.0482177734375, 0.035491943359375, 0.03216552734375, 0.048614501953125, -0.01491546630859375, -0.01355743408203125, 0.0372314453125, 0.00655364990234375, -0.0438232421875, 0.03973388671875, 0.011566162109375, -0.030975341796875, 0.0384521484375, 0.0198822021484375, 0.00389862060546875, 0.0023593902587890625, -0.016448974609375, -0.0309600830078125, 0.0078887939453125, 0.032501220703125, -0.0214385986328125, 0.048431396484375, -0.0132598876953125, -0.045684814453125, 0.016998291015625, -0.0361328125, 0.03448486328125, 0.0203857421875, -0.00601959228515625, 0.040252685546875, 0.004245758056640625, -0.0084228515625, 0.07476806640625, 0.0308074951171875, 0.0300140380859375, 0.0187530517578125, 0.04083251953125, -0.02264404296875, 0.0173492431640625, -0.0181884765625, 0.0718994140625, -0.0142059326171875, -0.058624267578125, 0.0232086181640625, -0.033172607421875, 0.0048370361328125, 0.04248046875, 0.039306640625, 0.0005855560302734375, 0.033966064453125, 0.0105133056640625, -0.01268768310546875, 0.03961181640625, 0.028106689453125, -0.00208282470703125, -0.005733489990234375, -0.0350341796875, 0.00922393798828125, 0.01392364501953125, 0.050994873046875, -0.0643310546875, 0.048370361328125, 0.00894927978515625, 0.0513916015625, 0.01485443115234375, 0.04010009765625, 0.0299224853515625, -0.039520263671875, 0.0098876953125, -0.0230560302734375, -0.035888671875, -0.045989990234375, 0.00496673583984375, -0.040985107421875, 0.0271759033203125, -0.0014333724975585938, -0.02105712890625, 0.0775146484375, -0.0115203857421875, -0.03240966796875, 0.053619384765625, 0.005401611328125, -0.0667724609375, -0.027496337890625, 0.0684814453125, 0.0723876953125, -0.01922607421875, -0.0164794921875, -0.01263427734375, -0.0312042236328125, -0.01247406005859375, 0.0250244140625, -0.05218505859375, 0.0030269622802734375, 0.0130767822265625, -0.01219940185546875, -0.024627685546875, -0.0268096923828125, -0.0042877197265625, -0.01727294921875, 0.0021152496337890625, -0.0005559921264648438, 0.01629638671875, -0.0186614990234375, 0.023712158203125, -0.001434326171875, -0.021240234375, -0.0264434814453125, 0.0005731582641601562, 0.061279296875, 0.0511474609375, -0.041717529296875, -0.006496429443359375, -0.060516357421875, -0.031585693359375, 0.020599365234375, 0.003643035888671875, -0.039337158203125, -0.01010894775390625, -0.0032100677490234375, 0.0084991455078125, -0.01122283935546875, -0.0285491943359375, 0.0006823539733886719, -0.007495880126953125, -0.0008463859558105469, -0.0253448486328125, 0.01558685302734375, 0.05950927734375, -0.0298919677734375, 0.07244873046875, 0.033477783203125, 0.02789306640625, -0.044708251953125, -0.034820556640625, 0.007328033447265625, 0.005039215087890625, -0.0081329345703125, -0.0245208740234375, 0.035064697265625, -0.016448974609375, 0.039825439453125, 0.00402069091796875, -0.01070404052734375, 0.0007452964782714844, 0.005279541015625, 0.0021209716796875, 0.0230255126953125, 0.0340576171875, -0.05487060546875, 0.06390380859375, -0.04974365234375, -0.0170135498046875, 0.0101776123046875, 0.01222991943359375, 0.00868988037109375, -0.017608642578125, -0.00820159912109375, 0.0278167724609375, -0.021484375, 0.040496826171875, 0.0084991455078125, 0.017822265625, 0.0247039794921875, 0.0160675048828125, 0.032989501953125, -0.0245819091796875, 0.00014984607696533203, 0.0005354881286621094, -0.0413818359375, 0.056427001953125, 0.009765625, 0.00974273681640625, 0.07708740234375, -0.025299072265625, 0.0117034912109375, 0.02862548828125, 0.0244140625, -0.05810546875, 0.024017333984375, -0.00350189208984375, -0.0238189697265625, 0.0051727294921875, -0.0210723876953125, -0.0235748291015625, -0.055206298828125, -0.0078887939453125, 0.03436279296875, -0.0360107421875, -0.024200439453125, 0.0017910003662109375, -0.010894775390625, -0.0006699562072753906, 0.00038814544677734375, -0.009490966796875, 0.01271820068359375, -0.034942626953125, -0.0221405029296875, -0.00785064697265625, 0.002777099609375, 0.007579803466796875, 0.0230865478515625, -0.0162506103515625, -0.0496826171875, 0.0254669189453125, -0.037445068359375, -0.00713348388671875, 0.025482177734375, -0.021270751953125, 0.068359375, 0.04376220703125, 0.0005102157592773438, -0.00702667236328125, 0.0145111083984375, 0.0102386474609375, 0.0029659271240234375, -0.0172119140625, 0.006084442138671875, 0.03594970703125, -0.07135009765625, 0.00484466552734375, -0.044830322265625, 0.022064208984375, -0.007328033447265625, -0.0212249755859375, 0.0697021484375, -0.034210205078125, -0.006275177001953125, 0.0215301513671875, 0.0195770263671875, -0.01202392578125, -0.033203125, 0.0200042724609375, -0.042144775390625, 0.0237579345703125, -0.010528564453125, 0.047760009765625, -0.0018930435180664062, -0.0261993408203125, -0.05078125, 0.0816650390625, -0.0013370513916015625, 0.0008406639099121094, 0.01016998291015625, 0.02935791015625, -0.031005859375, 0.000885009765625, -0.0196380615234375, 0.0501708984375, -0.052978515625, 0.017669677734375, -0.05078125, 0.0195159912109375, -0.0085906982421875, 0.006542205810546875, 0.0889892578125, 0.0216522216796875, -0.00881195068359375, -0.01119232177734375, 0.04193115234375, 0.019439697265625, -0.01971435546875, 0.03875732421875, 0.029998779296875, 0.0255584716796875, 0.04949951171875, -0.00360870361328125, 0.034088134765625, -0.01152801513671875, 0.0042266845703125, 0.055633544921875, 0.0068817138671875, 0.0066986083984375, -0.0177154541015625, 0.016998291015625, 0.0408935546875, -0.03302001953125, -0.017791748046875, -0.04949951171875, 0.0009522438049316406, 0.00322723388671875, 0.0057220458984375, -0.03460693359375, -0.03271484375, -0.006359100341796875, 0.0279541015625, 0.0018625259399414062, -0.0154266357421875, -0.0186614990234375, -0.0001977682113647461, 0.00030684471130371094, -0.0178680419921875, -0.0181427001953125, 0.041290283203125, -0.0280609130859375, 0.027435302734375, 0.01258087158203125, 0.0262451171875, -0.032806396484375, -0.0031452178955078125, 0.03076171875, 0.038116455078125, -0.033905029296875, -0.0692138671875, 0.009124755859375, 0.013275146484375, -0.011444091796875, 0.03228759765625, -0.038116455078125, -0.002399444580078125, 0.0775146484375, 0.003173828125, -0.0221710205078125, 0.03704833984375, 0.005702972412109375, 0.00542449951171875, -0.004810333251953125, -0.0004534721374511719, -0.01494598388671875, -0.0216217041015625, 0.0101776123046875, 0.0118560791015625, 0.0259246826171875, 0.00246429443359375, 0.01531219482421875, 0.005126953125, -0.002506256103515625, -0.023834228515625, 0.070556640625, -0.016632080078125, 0.044219970703125, -0.08868408203125, -0.0657958984375, 0.01445770263671875, 0.047332763671875, -0.00860595703125, 0.045562744140625, 0.042236328125, 0.0350341796875, -0.017974853515625, -0.0184326171875, 0.036407470703125, -0.00615692138671875, -0.0200347900390625, -0.041351318359375, 0.07489013671875, 0.055694580078125, 0.043853759765625, -0.007595062255859375, 0.037628173828125, 0.059661865234375, -0.02752685546875, 0.009033203125, 0.0013685226440429688, -0.052764892578125, 0.020050048828125, -0.012939453125, 0.0562744140625, 0.004001617431640625, -0.051910400390625, -0.01296234130859375, -0.0022754669189453125, -0.020416259765625, 0.00672149658203125, 0.039398193359375, -0.01812744140625, 0.031402587890625, 0.0272216796875, 0.0163726806640625, -0.013092041015625, 0.0009360313415527344, 0.0158843994140625, -0.002605438232421875, 0.03253173828125, 0.0167083740234375, -0.056060791015625, -0.016204833984375, -0.0231475830078125, 0.01078033447265625, 0.0030422210693359375, 0.05230712890625, -0.006458282470703125, 0.0169219970703125, -0.00783538818359375, -0.03179931640625, 0.00954437255859375, -0.01806640625, 0.01465606689453125, -0.0143890380859375, -0.030059814453125, -0.00252532958984375, -0.059112548828125, 0.01372528076171875, 0.025177001953125, -0.01203155517578125, 0.02398681640625, -0.029937744140625, 0.0185546875, -0.006511688232421875, 0.035980224609375, -0.013519287109375, -0.05938720703125, -0.04083251953125, 0.007160186767578125, 0.022796630859375, 0.0496826171875, 0.001216888427734375, 0.0124359130859375, 0.0294342041015625, -0.01453399658203125, 0.0022182464599609375, -0.0007843971252441406, 0.0146026611328125, 0.0462646484375, 0.0063018798828125, -0.01189422607421875, 0.01544952392578125, -0.021270751953125, 0.02569580078125, 0.003566741943359375, 0.0765380859375, -0.00360107421875, -0.0015325546264648438, 0.0090179443359375, 0.028167724609375, 0.050262451171875, -0.01149749755859375, 0.016021728515625, -0.0018358230590820312, -0.0004057884216308594, 0.01496124267578125, -0.01509857177734375, -0.0322265625, -0.06842041015625, 0.0035915374755859375, 0.022674560546875, -0.049530029296875, -0.03717041015625, -0.10516357421875, 0.033233642578125, 0.032623291015625, 0.0008144378662109375, -0.055908203125, 0.0240478515625, -0.048065185546875, 0.06195068359375, -0.026763916015625, -0.0006914138793945312, 0.008941650390625, 0.052001953125, -0.0018444061279296875, -0.0022716522216796875, 0.0006113052368164062, -0.0006880760192871094, 0.017852783203125, 0.0175933837890625, 0.0026950836181640625, -0.0255889892578125, 0.017425537109375, 0.051361083984375, 0.031646728515625, 0.09820556640625, 0.03729248046875, -0.005199432373046875, 0.01371002197265625, -0.0098114013671875, -0.0297393798828125, -0.051971435546875, 0.0252227783203125, -0.06585693359375, -0.03936767578125, -0.08203125, 0.044158935546875, 0.034454345703125, -0.045654296875, -0.07891845703125, 0.048004150390625, -0.030059814453125, -0.0174713134765625, -0.040283203125, -0.0148162841796875, 0.00024056434631347656, -0.01015472412109375, -0.01483917236328125, -0.0187225341796875, -0.037506103515625, 0.05609130859375, -0.004848480224609375, -0.018463134765625, 0.027740478515625, -0.03466796875, -0.0304718017578125, -0.00720977783203125, 0.0097808837890625, -0.0285186767578125, 0.0236663818359375, -0.0187530517578125, 0.056884765625, 0.07904052734375, -0.01898193359375, 0.01007080078125, 0.004840850830078125, -0.047698974609375, -0.0005826950073242188, -0.043212890625, 0.0068511962890625, 0.016387939453125, 0.04986572265625, 0.04168701171875, 0.0070037841796875, -0.053497314453125, -0.01050567626953125, -0.0391845703125, 0.0007314682006835938, 0.01149749755859375, -0.004566192626953125, -0.0350341796875, 0.015899658203125, 0.032867431640625, -0.00821685791015625, -0.006595611572265625, 0.041290283203125, -0.00830841064453125, -0.00312042236328125, 0.047943115234375, -0.0250244140625, -0.032318115234375, -0.03936767578125, 0.029052734375, -0.010772705078125, -0.012481689453125, 0.0155029296875, 0.00852203369140625, 0.00518035888671875, 0.06817626953125, 0.0192718505859375, -0.004299163818359375, -0.032135009765625, 0.027557373046875, 0.0033416748046875, 0.007495880126953125, -0.04217529296875, -0.026275634765625, -0.00621795654296875, 0.0291748046875, -0.01280975341796875, 0.022705078125, 0.0086212158203125, 0.038787841796875, 0.00817108154296875, 0.07196044921875, 0.022918701171875, -0.033660888671875, -0.03240966796875, 0.0645751953125, -0.02593994140625, -0.038360595703125, -0.0235595703125, -0.0176849365234375, 0.00450897216796875, 0.0104217529296875, -0.026458740234375, -0.0265960693359375, -0.0006055831909179688, 0.00348663330078125, -0.01062774658203125, 0.01007080078125 ]
7b7589ca28cf2a972d5c12113327daa1a86e8a18
Wordpress Stackexchange Q: How to define WP_DEBUG as true outside of wp-config.php? I am trying to create a debugging mode in one of my plugins so users can easily enable WP_DEBUG on their own, and hopefully report back to us with helpful error messages. Right now we ask them to modify their wp-config.php, but that's beyond some users' capabilities. I was hoping to just add define( 'WP_DEBUG', true );in our plugin if the user has checked that option, but it appears you can only enable WP_DEBUG from the wp-config.php file. Does anyone know of any way to enable WP_DEBUG from anywhere else but wp-config? Or is there another useful WP function that I could be using instead? Thanks, Dalton A: WordPress logic forces WP_DEBUG to be defined to something, even if it's omitted it will be set to false in wp_initial_constants() during load. However "background" (that is not when it is checked explicitly) function of WP_DEBUG is to be a flag for how PHP error reporting should be configured on runtime. That configuration is performed by wp_debug_mode() and at any point after that can be changed by your plugin's code if necessary.
Q: How to define WP_DEBUG as true outside of wp-config.php? I am trying to create a debugging mode in one of my plugins so users can easily enable WP_DEBUG on their own, and hopefully report back to us with helpful error messages. Right now we ask them to modify their wp-config.php, but that's beyond some users' capabilities. I was hoping to just add define( 'WP_DEBUG', true );in our plugin if the user has checked that option, but it appears you can only enable WP_DEBUG from the wp-config.php file. Does anyone know of any way to enable WP_DEBUG from anywhere else but wp-config? Or is there another useful WP function that I could be using instead? Thanks, Dalton A: WordPress logic forces WP_DEBUG to be defined to something, even if it's omitted it will be set to false in wp_initial_constants() during load. However "background" (that is not when it is checked explicitly) function of WP_DEBUG is to be a flag for how PHP error reporting should be configured on runtime. That configuration is performed by wp_debug_mode() and at any point after that can be changed by your plugin's code if necessary. A: It is not possible to turn on WP_DEBUG because it's defined in wp-config.php by default, redefinition of defined constants is not possible in PHP. If you want to keep them out of wp-config.php ask them to add to the top something like: if ( file_exists( 'safe-wp-config.php' ) ) { /* this will contains WP_DEBUG */ include 'safe-wp-config.php'; } Alternatively, WP_DEBUG is assumed to be false when missing, so let them remove WP_DEBUG completely from wp-config.php and use wherever/whenever they like. A: If you do not have access to wp-config.php but you do have access to the theme (or plugin) editor, you can add a code snippet to essentially do the same thing as the WP_DEBUG constant. The wp_debug_mode() function uses the value of this and a few other constants to set the display and log error functions in PHP. You can run the same PHP functions directly with actually touching the WP_DEBUG constant or the wp-config.php file. Here are the key PHP functions your code snippet can use: * *error_reporting( E_ALL ) - sets PHP to display all errors, warnings, and notices. *ini_set( 'display_errors', 1 ) - sets PHP to display errors on the screen; use 0 to supress (although if debugging is not enabled in wp-config.php this will already be 0 so you could omit it altogether). *ini_set( 'log_errors', 1) - sets PHP to log errors. Like the value above, this can be omitted if you're not going to log errors. If you do log errors, you'll need an error log you can get to. The default set by wp_debug_mode() is going to be inaccessible. My example will set it as a text file in the theme directory so you can read it with the theme editor. *ini_set( 'error_log', $log_path ) - sets the location of the error log (mentioned above). Here's the code snippet: add_action( 'template_redirect', 'my_enable_debug_mode' ); function my_enable_debug_mode() { // Turn on error reporting. error_reporting( E_ALL ); // Sets to display errors on screen. Use 0 to turn off. ini_set( 'display_errors', 1 ); // Sets to log errors. Use 0 (or omit) to not log errors. ini_set( 'log_errors', 1 ); // Sets a log file path you can access in the theme editor. $log_path = get_template_directory() . '/debug.txt'; ini_set( 'error_log', $log_path ); } To summarize, if you need to debug, do not have access to wp-config.php but do have access to the theme editor, you can add this code snippet to the functions.php file to enable debugging on screen along with a txt log file in the theme folder. A: However, if you really want to display errors and not store them in log file (like I wanted), then you can turn on debugging for your Public IP like following - if ( $_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.xxx') define('WP_DEBUG', true); There should not be a problem as long as you are on Static IP, but if you have dynamic IP, you probably can change the IP every time you need to turn on debugigng. A: I am very late to the party. However, I had a requirement where I had to enable wp_debug and I had no access to the files. This plugin helped: https://wordpress.org/plugins/debug/ Maybe you can do the same thing as the plugin? Edit wp-config.php programmatically?
wordpress
{ "language": "en", "length": 731, "provenance": "stackexchange_00019.jsonl.gz:418494", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47123" }
[ 0.08184814453125, -0.006595611572265625, 0.00444793701171875, -0.0589599609375, 0.01006317138671875, -0.031829833984375, 0.004581451416015625, -0.02008056640625, 0.00897216796875, -0.004730224609375, -0.00861358642578125, -0.0194244384765625, -0.01459503173828125, -0.032012939453125, -0.0007762908935546875, -0.0322265625, 0.021392822265625, -0.0159149169921875, 0.007472991943359375, -0.0180206298828125, 0.00959014892578125, 0.00626373291015625, -0.027587890625, 0.05413818359375, 0.02459716796875, 0.0005860328674316406, 0.0584716796875, -0.007488250732421875, 0.032135009765625, 0.0044403076171875, 0.025665283203125, -0.03692626953125, 0.034210205078125, 0.051055908203125, -0.06451416015625, -0.01322174072265625, -0.00525665283203125, -0.004489898681640625, -0.0273895263671875, 0.06610107421875, 0.038848876953125, -0.00926971435546875, 0.0151519775390625, 0.0242767333984375, -0.01439666748046875, -0.043548583984375, 0.047637939453125, -0.015716552734375, 0.0218963623046875, -0.00583648681640625, -0.00223541259765625, 0.046173095703125, 0.0193328857421875, -0.0237884521484375, -0.0172576904296875, -0.01312255859375, -0.035186767578125, -0.01242828369140625, 0.0287017822265625, 0.0577392578125, 0.0049591064453125, -0.042388916015625, 0.00714111328125, -0.04791259765625, 0.036163330078125, -0.0181884765625, -0.0226593017578125, 0.037567138671875, -0.042694091796875, 0.0276031494140625, 0.032867431640625, -0.055694580078125, -0.01345062255859375, 0.02362060546875, 0.0006451606750488281, -0.05816650390625, 0.033050537109375, -0.017059326171875, -0.0022602081298828125, 0.037933349609375, 0.028717041015625, -0.0653076171875, 0.0194091796875, 0.037841796875, -0.018768310546875, 0.043670654296875, 0.0162353515625, -0.0159759521484375, -0.01259613037109375, -0.005096435546875, -0.02288818359375, 0.01873779296875, -0.013641357421875, -0.00777435302734375, -0.01128387451171875, -0.03717041015625, 0.0025577545166015625, 0.026458740234375, -0.0208587646484375, -0.0141448974609375, 0.0187530517578125, -0.0270233154296875, -0.00276947021484375, -0.013427734375, -0.00926971435546875, 0.045745849609375, -0.007152557373046875, -0.03338623046875, 0.0106201171875, 0.0273284912109375, 0.0122222900390625, -0.017303466796875, -0.0197601318359375, -0.0799560546875, 0.0043182373046875, 0.06402587890625, -0.004077911376953125, -0.011016845703125, 0.03125, -0.0214996337890625, 0.01617431640625, 0.039337158203125, 0.0009713172912597656, 0.006191253662109375, -0.037384033203125, -0.021575927734375, 0.012847900390625, -0.0626220703125, -0.00994110107421875, 0.014984130859375, -0.0229949951171875, 0.01457977294921875, 0.047332763671875, 0.0218505859375, 0.00476837158203125, -0.01708984375, 0.028076171875, 0.00524139404296875, -0.001682281494140625, 0.011474609375, 0.012542724609375, -0.027587890625, -0.013336181640625, 0.0135650634765625, -0.050537109375, -0.00952911376953125, 0.0153350830078125, 0.02685546875, -0.025543212890625, -0.060028076171875, 0.0105133056640625, 0.0112762451171875, 0.009979248046875, 0.001224517822265625, 0.0300140380859375, -0.0190887451171875, 0.032745361328125, -0.03143310546875, 0.0026836395263671875, -0.02655029296875, -0.059173583984375, -0.019561767578125, 0.01031494140625, -0.031951904296875, -0.026519775390625, 0.0369873046875, 0.0279388427734375, 0.0172119140625, 0.0274200439453125, 0.0032215118408203125, 0.04302978515625, 0.00907135009765625, -0.0031280517578125, 0.005313873291015625, 0.0128936767578125, -0.0075531005859375, -0.004703521728515625, 0.01367950439453125, 0.02679443359375, 0.0108489990234375, -0.00040221214294433594, -0.0205841064453125, 0.0408935546875, -0.006961822509765625, -0.055511474609375, 0.01496124267578125, -0.01041412353515625, 0.05279541015625, 0.06951904296875, 0.00917816162109375, 0.00920867919921875, -0.039825439453125, 0.0173187255859375, 0.022705078125, -0.0178680419921875, -0.054412841796875, -0.03411865234375, -0.0103607177734375, -0.038726806640625, 0.01885986328125, 0.01654052734375, -0.0032100677490234375, -0.0018377304077148438, -0.01140594482421875, -0.0966796875, -0.01629638671875, -0.032867431640625, 0.023101806640625, 0.07342529296875, 0.0226898193359375, -0.028900146484375, 0.0133819580078125, 0.0183563232421875, -0.062255859375, -0.0645751953125, 0.0494384765625, -0.035919189453125, 0.049530029296875, 0.00466156005859375, 0.036224365234375, 0.00006753206253051758, -0.019989013671875, 0.010955810546875, -0.0259246826171875, 0.050628662109375, -0.00896453857421875, 0.01148223876953125, -0.01551055908203125, 0.079833984375, 0.0033626556396484375, 0.01666259765625, -0.005878448486328125, 0.0118408203125, -0.01035308837890625, -0.017974853515625, -0.02374267578125, -0.00583648681640625, -0.07415771484375, 0.0311279296875, 0.07080078125, 0.03839111328125, 0.00457000732421875, 0.0035552978515625, -0.00879669189453125, 0.0229644775390625, -0.038909912109375, 0.0206756591796875, -0.0280303955078125, 0.031463623046875, 0.0015287399291992188, -0.0347900390625, -0.032501220703125, 0.0511474609375, -0.045562744140625, 0.036865234375, 0.0235748291015625, -0.0012865066528320312, 0.0182952880859375, -0.01538848876953125, 0.0072174072265625, -0.00849151611328125, 0.002796173095703125, 0.0022735595703125, -0.0199127197265625, 0.0078125, 0.004302978515625, 0.0061798095703125, 0.0179901123046875, -0.0021038055419921875, -0.003986358642578125, 0.017242431640625, -0.0218353271484375, -0.0208892822265625, 0.011688232421875, 0.02197265625, 0.0217132568359375, -0.05145263671875, 0.0135955810546875, -0.01285552978515625, 0.009674072265625, -0.04095458984375, -0.030029296875, -0.01100921630859375, -0.004611968994140625, -0.033294677734375, -0.040252685546875, 0.060577392578125, 0.03179931640625, -0.0018520355224609375, -0.034210205078125, 0.0098724365234375, 0.0120391845703125, -0.051025390625, 0.045989990234375, -0.00022304058074951172, -0.028961181640625, -0.0084228515625, -0.04986572265625, 0.050384521484375, -0.030303955078125, 0.0218963623046875, 0.07330322265625, 0.011871337890625, 0.01119232177734375, -0.0009655952453613281, 0.027984619140625, 0.015899658203125, -0.01239013671875, -0.0275115966796875, 0.0214385986328125, -0.08056640625, -0.00457763671875, -0.0019702911376953125, -0.00926971435546875, -0.01284027099609375, -0.037384033203125, -0.031982421875, 0.01244354248046875, -0.04779052734375, -0.02691650390625, -0.0169830322265625, -0.069580078125, 0.03009033203125, 0.010528564453125, -0.01959228515625, -0.025604248046875, 0.05645751953125, 0.0143585205078125, -0.0165863037109375, -0.055145263671875, 0.0082855224609375, -0.06182861328125, -0.0478515625, -0.007568359375, 0.035888671875, 0.01480865478515625, 0.00438690185546875, 0.047515869140625, 0.00638580322265625, -0.01497650146484375, 0.00739288330078125, -0.0166473388671875, -0.0142822265625, -0.01230621337890625, -0.00917816162109375, 0.020263671875, 0.007526397705078125, 0.01273345947265625, -0.0706787109375, 0.0132598876953125, 0.00617218017578125, -0.04669189453125, -0.0225677490234375, 0.009185791015625, -0.035125732421875, -0.009674072265625, 0.047821044921875, -0.0047607421875, -0.058563232421875, -0.042999267578125, -0.0228729248046875, 0.008331298828125, -0.043609619140625, 0.0214996337890625, 0.013092041015625, -0.0250244140625, 0.00475311279296875, -0.0160675048828125, 0.0310211181640625, 0.0243072509765625, 0.053253173828125, 0.0012950897216796875, 0.0282440185546875, -0.0237579345703125, -0.0190887451171875, -0.0682373046875, 0.0284423828125, -0.0223541259765625, -0.0579833984375, -0.0156097412109375, -0.016357421875, 0.0007615089416503906, -0.01320648193359375, 0.002216339111328125, 0.0057830810546875, 0.04693603515625, 0.00634765625, 0.009918212890625, -0.003025054931640625, -0.014068603515625, -0.00954437255859375, 0.0377197265625, -0.035919189453125, -0.019012451171875, -0.00905609130859375, 0.0086669921875, -0.02508544921875, -0.0426025390625, -0.0233154296875, -0.0125732421875, -0.0200347900390625, -0.0020351409912109375, -0.0226898193359375, -0.0264129638671875, 0.00925445556640625, -0.005962371826171875, 0.0021076202392578125, -0.0288848876953125, 0.026611328125, -0.0501708984375, 0.0014638900756835938, 0.0008196830749511719, 0.005275726318359375, -0.049652099609375, -0.004913330078125, -0.036651611328125, -0.08990478515625, -0.01177215576171875, -0.04559326171875, 0.08856201171875, 0.03338623046875, -0.0238037109375, -0.00853729248046875, 0.049468994140625, 0.00395965576171875, 0.0330810546875, 0.0166015625, 0.01410675048828125, 0.01456451416015625, 0.01183319091796875, 0.037261962890625, -0.0108489990234375, -0.01056671142578125, 0.01380157470703125, -0.0241851806640625, 0.004238128662109375, -0.01410675048828125, -0.034820556640625, 0.044464111328125, -0.0504150390625, 0.0130615234375, -0.0211334228515625, -0.0240020751953125, 0.0024261474609375, -0.018157958984375, -0.002857208251953125, -0.0135345458984375, 0.0108184814453125, 0.0325927734375, -0.0287933349609375, -0.006107330322265625, 0.013641357421875, 0.08599853515625, 0.02587890625, 0.0074005126953125, -0.033111572265625, -0.019134521484375, 0.031585693359375, -0.03961181640625, 0.011962890625, 0.0202789306640625, -0.026123046875, 0.02923583984375, -0.019683837890625, 0.0302886962890625, -0.0204315185546875, 0.00821685791015625, -0.012359619140625, -0.0526123046875, 0.043609619140625, -0.0067291259765625, 0.0079803466796875, 0.018035888671875, -0.016876220703125, 0.0219573974609375, 0.01309967041015625, -0.0097808837890625, -0.04132080078125, 0.01168060302734375, 0.00856781005859375, -0.0255889892578125, 0.01250457763671875, -0.0188446044921875, 0.0258331298828125, 0.035858154296875, -0.011993408203125, -0.0019483566284179688, -0.0019474029541015625, 0.0124053955078125, 0.048828125, 0.06805419921875, -0.00978851318359375, 0.037200927734375, 0.06396484375, -0.004756927490234375, -0.01922607421875, -0.018524169921875, 0.07568359375, -0.02154541015625, -0.0770263671875, 0.0254364013671875, -0.0168609619140625, 0.0158538818359375, 0.038818359375, -0.011444091796875, 0.08184814453125, -0.0067901611328125, -0.017547607421875, -0.013397216796875, -0.06805419921875, -0.03759765625, -0.07061767578125, 0.033416748046875, -0.0188140869140625, 0.006153106689453125, 0.044097900390625, 0.042724609375, -0.039459228515625, 0.06695556640625, -0.007099151611328125, 0.024261474609375, 0.005382537841796875, 0.025787353515625, 0.00922393798828125, -0.022979736328125, 0.025909423828125, -0.03033447265625, 0.01071929931640625, -0.03839111328125, -0.0211181640625, -0.002582550048828125, 0.0300750732421875, -0.045745849609375, -0.0260009765625, 0.051788330078125, 0.0030612945556640625, 0.005275726318359375, 0.0457763671875, 0.00965118408203125, -0.0131683349609375, -0.032196044921875, -0.017791748046875, 0.050445556640625, -0.0160369873046875, 0.01459503173828125, 0.00543212890625, 0.0233001708984375, 0.00913238525390625, -0.0237274169921875, -0.03521728515625, -0.00047850608825683594, 0.019775390625, -0.0149993896484375, -0.0214080810546875, -0.01004791259765625, 0.006450653076171875, 0.00702667236328125, -0.00787353515625, -0.0386962890625, -0.006481170654296875, -0.06304931640625, -0.008056640625, -0.00945281982421875, 0.02618408203125, -0.029815673828125, 0.0276641845703125, 0.046417236328125, 0.04595947265625, -0.0247344970703125, 0.01029205322265625, -0.0386962890625, -0.0228424072265625, -0.01349639892578125, -0.0276947021484375, -0.03802490234375, -0.018341064453125, 0.002288818359375, 0.0191802978515625, -0.016754150390625, -0.0413818359375, -0.037506103515625, 0.02520751953125, 0.040985107421875, 0.043609619140625, 0.005680084228515625, 0.02349853515625, -0.0133209228515625, 0.0299835205078125, 0.01320648193359375, -0.00894927978515625, -0.045196533203125, -0.0120086669921875, 0.0214691162109375, 0.00832366943359375, -0.0350341796875, -0.03271484375, 0.01519775390625, -0.023040771484375, 0.040069580078125, -0.017425537109375, 0.01348114013671875, -0.0163116455078125, -0.0080718994140625, -0.0172882080078125, 0.0286865234375, -0.0252532958984375, 0.0286102294921875, -0.0290679931640625, -0.029083251953125, -0.060821533203125, -0.01105499267578125, -0.0205078125, 0.0284881591796875, 0.0203857421875, -0.01047515869140625, -0.0090179443359375, -0.03643798828125, 0.05181884765625, 0.10418701171875, 0.03033447265625, 0.06781005859375, 0.049530029296875, 0.0121002197265625, 0.00833892822265625, 0.035888671875, -0.0222625732421875, -0.040985107421875, 0.03521728515625, 0.01375579833984375, -0.0163116455078125, 0.01520538330078125, -0.0160369873046875, 0.0185394287109375, 0.02618408203125, 0.05841064453125, -0.076171875, 0.035675048828125, 0.04327392578125, 0.028656005859375, 0.0204620361328125, -0.01336669921875, 0.02325439453125, -0.00553131103515625, 0.039398193359375, -0.01457977294921875, -0.00963592529296875, 0.0313720703125, -0.0177001953125, 0.0012216567993164062, 0.003627777099609375, 0.052734375, 0.03253173828125, -0.053741455078125, 0.06195068359375, 0.01763916015625, 0.0457763671875, 0.0004401206970214844, 0.0207977294921875, -0.006866455078125, -0.04241943359375, -0.05426025390625, -0.0028553009033203125, -0.0009241104125976562, -0.0357666015625, 0.03045654296875, 0.00351715087890625, 0.02313232421875, 0.032562255859375, 0.0031642913818359375, 0.0012874603271484375, -0.0009756088256835938, 0.0012197494506835938, -0.00914764404296875, -0.00824737548828125, 0.037139892578125, 0.013275146484375, -0.07275390625, 0.016448974609375, -0.041717529296875, -0.0175933837890625, -0.006763458251953125, 0.0118865966796875, 0.09942626953125, -0.03125, -0.02294921875, 0.01468658447265625, 0.003082275390625, 0.002521514892578125, -0.01352691650390625, 0.039154052734375, -0.052581787109375, -0.032562255859375, 0.006946563720703125, -0.036163330078125, -0.0419921875, -0.01849365234375, -0.0014638900756835938, 0.103759765625, -0.057037353515625, -0.006591796875, 0.053680419921875, 0.036590576171875, -0.0212860107421875, 0.032867431640625, -0.022369384765625, 0.087158203125, 0.0204315185546875, 0.0799560546875, -0.0848388671875, -0.040771484375, 0.03387451171875, 0.0943603515625, 0.0309906005859375, -0.0012922286987304688, 0.02386474609375, 0.0129241943359375, 0.05194091796875, -0.0147247314453125, -0.041748046875, 0.0176849365234375, -0.01003265380859375, -0.0012493133544921875, -0.00189971923828125, -0.031402587890625, 0.04296875, -0.0645751953125, -0.0023651123046875, 0.0005731582641601562, 0.004474639892578125, -0.018524169921875, -0.0055694580078125, 0.01299285888671875, -0.016815185546875, 0.0028400421142578125, 0.00583648681640625, 0.0108795166015625, -0.000980377197265625, 0.02178955078125, 0.024200439453125, -0.01006317138671875, -0.0645751953125, -0.0019207000732421875, 0.0221405029296875, 0.018310546875, -0.0146026611328125, 0.032470703125, 0.0034084320068359375, 0.0167236328125, -0.0165557861328125, -0.018707275390625, 0.0007815361022949219, 0.008331298828125, -0.00585174560546875, 0.03167724609375, 0.007656097412109375, 0.0109405517578125, 0.0504150390625, 0.01126861572265625, -0.0080413818359375, -0.0382080078125, -0.044342041015625, 0.0012340545654296875, -0.006053924560546875, -0.0006475448608398438, 0.00893402099609375, 0.000029742717742919922, -0.017974853515625, 0.021026611328125, -0.01116943359375, -0.00518798828125, 0.004016876220703125, 0.0157928466796875, 0.006008148193359375, 0.0238800048828125, -0.023345947265625, -0.01410675048828125, -0.0240020751953125, -0.03253173828125, 0.0004367828369140625, 0.044525146484375, 0.056060791015625, -0.0144195556640625, -0.0016832351684570312, -0.029052734375, -0.034454345703125, 0.0263671875, -0.00635528564453125, 0.034820556640625, -0.040771484375, -0.021148681640625, -0.0051422119140625, 0.03546142578125, 0.0213165283203125, -0.0174102783203125, 0.06439208984375, 0.046173095703125, -0.05938720703125, -0.02032470703125, 0.050079345703125, -0.01148223876953125, -0.0455322265625, -0.027587890625, -0.01389312744140625, 0.0226287841796875, 0.002841949462890625, 0.027862548828125, 0.0106048583984375, 0.0217132568359375, 0.001941680908203125, 0.007808685302734375, 0.0091552734375, -0.016448974609375, 0.016571044921875, -0.01065826416015625, 0.0111846923828125, 0.0180206298828125, -0.04986572265625, 0.0012521743774414062, -0.02410888671875, -0.0305328369140625, -0.0125579833984375, 0.0256195068359375, 0.01422882080078125, 0.01012420654296875, 0.0142974853515625, 0.0137786865234375, -0.007808685302734375, -0.0192718505859375, 0.0158233642578125, -0.049041748046875, 0.005153656005859375, -0.0204315185546875, -0.04779052734375, -0.038421630859375, -0.044281005859375, 0.045928955078125, 0.033477783203125, 0.05413818359375, -0.0143280029296875, 0.033599853515625, -0.0275421142578125, -0.006717681884765625, -0.020477294921875, -0.0203857421875, -0.0308837890625, 0.0029621124267578125, -0.002658843994140625, 0.021728515625, -0.0052032470703125, 0.05426025390625, 0.02044677734375, -0.0018129348754882812, 0.043060302734375, -0.037261962890625, 0.0189056396484375, -0.02069091796875, 0.0017642974853515625, -0.00946044921875, -0.03753662109375, 0.0217437744140625, 0.05059814453125, -0.005954742431640625, 0.0229034423828125, -0.01378631591796875, 0.000270843505859375, 0.02410888671875, -0.00629425048828125, 0.013092041015625, 0.01861572265625, -0.0102691650390625, 0.01158905029296875, 0.006038665771484375, -0.05999755859375, -0.054595947265625, -0.0238189697265625, -0.0281219482421875, -0.0126190185546875, 0.06402587890625, -0.04705810546875, 0.008697509765625, 0.007663726806640625, 0.006786346435546875, 0.029266357421875, -0.026336669921875, 0.0164337158203125, 0.0217132568359375, 0.007053375244140625, 0.007480621337890625, -0.02056884765625, -0.005794525146484375, -0.02520751953125, -0.0018835067749023438, 0.00989532470703125, -0.0015506744384765625, -0.0168304443359375, -0.00390625, -0.0015878677368164062, 0.04718017578125, -0.004215240478515625, -0.052703857421875, 0.01294708251953125, -0.03631591796875, 0.0426025390625, 0.004764556884765625, -0.007366180419921875, 0.0020160675048828125, -0.0021820068359375, -0.01200103759765625, -0.003665924072265625, -0.02471923828125, 0.026702880859375, 0.0192718505859375, 0.056304931640625, 0.0703125, -0.02923583984375, -0.01885986328125, 0.07958984375, 0.0225677490234375, 0.117431640625, -0.059906005859375, -0.002681732177734375, -0.0207977294921875, 0.030548095703125, -0.0102386474609375, -0.052093505859375, -0.0018310546875, -0.03863525390625, -0.01024627685546875, 0.006381988525390625, -0.04864501953125, -0.040283203125, -0.072509765625, -0.08282470703125, 0.007472991943359375, 0.0169677734375, -0.052947998046875, -0.04840087890625, -0.0029010772705078125, 0.01312255859375, 0.021026611328125, 0.002681732177734375, -0.031646728515625, -0.0474853515625, 0.0173797607421875, 0.00977325439453125, 0.007617950439453125, 0.02313232421875, 0.009124755859375, -0.05029296875, 0.00247955322265625, -0.0178985595703125, 0.006992340087890625, -0.01561737060546875, -0.0044708251953125, 0.034515380859375, 0.0152130126953125, -0.0095977783203125, 0.0201263427734375, 0.03790283203125, 0.0081939697265625, -0.0232391357421875, -0.041595458984375, -0.01026153564453125, -0.0154876708984375, 0.07794189453125, 0.003002166748046875, 0.018157958984375, -0.0190277099609375, -0.0648193359375, -0.0589599609375, 0.00939178466796875, -0.0010509490966796875, 0.010986328125, -0.062408447265625, 0.021087646484375, 0.01319122314453125, -0.01367950439453125, -0.0094451904296875, 0.0242767333984375, -0.0169830322265625, -0.008514404296875, 0.054412841796875, -0.0050048828125, 0.0031566619873046875, -0.05841064453125, 0.046966552734375, -0.0272064208984375, 0.037109375, -0.01439666748046875, 0.03814697265625, 0.0347900390625, 0.01251983642578125, 0.0309295654296875, 0.0297088623046875, -0.0782470703125, -0.0065460205078125, 0.00876617431640625, 0.05712890625, -0.0489501953125, -0.033172607421875, -0.012237548828125, -0.02764892578125, -0.00968170166015625, -0.039031982421875, 0.0197601318359375, -0.0278472900390625, -0.0202178955078125, 0.0347900390625, 0.0086669921875, 0.0256500244140625, -0.0252227783203125, 0.056121826171875, -0.0225677490234375, -0.02825927734375, -0.0085906982421875, -0.0224456787109375, 0.01149749755859375, 0.0204315185546875, 0.054962158203125, -0.028228759765625, 0.038970947265625, 0.04638671875, 0.0299835205078125, 0.01495361328125 ]
76ad7cc0af46d2718b9d3cb6dcdc684362b09a2a
Wordpress Stackexchange Q: How can I remove the site URL from enqueued scripts and styles? I'm dealing with an SSL issue and I would like to strip the domain from all scripts and styles being output via wp_enqueue_scripts. This would result in all scripts and styles being displayed with a relative path from the domain root. I imagine there is a hook that I can use to fileter this, however, I am not sure which one, nor how to go about it. A: Yes, i think its possible. See on the filter hook script_loader_src; there get the string and you can filter this for your requirements. add_filter( 'script_loader_src', 'fb_filter_script_loader', 1 ); function fb_filter_script_loader( $src ) { // remove string-part "?ver=" $src = explode( '?ver=', $src ); return $src[0]; } * *write on scratch, not tested The same is possible for stylesheets, ther load via wp_enqueue_style with filterstyle_loader_src.
Q: How can I remove the site URL from enqueued scripts and styles? I'm dealing with an SSL issue and I would like to strip the domain from all scripts and styles being output via wp_enqueue_scripts. This would result in all scripts and styles being displayed with a relative path from the domain root. I imagine there is a hook that I can use to fileter this, however, I am not sure which one, nor how to go about it. A: Yes, i think its possible. See on the filter hook script_loader_src; there get the string and you can filter this for your requirements. add_filter( 'script_loader_src', 'fb_filter_script_loader', 1 ); function fb_filter_script_loader( $src ) { // remove string-part "?ver=" $src = explode( '?ver=', $src ); return $src[0]; } * *write on scratch, not tested The same is possible for stylesheets, ther load via wp_enqueue_style with filterstyle_loader_src. A: Another way, which I think I got from the roots theme, maybe a bit ghetto but has some smart handling on when to use relative urls (tested only on dev site). The benefit is it can be uses as a filter on many other built in urls that WordPress uses. This example only shows style and script enqueue filter. function roots_root_relative_url($input) { $output = preg_replace_callback( '!(https?://[^/|"]+)([^"]+)?!', create_function( '$matches', // if full URL is site_url, return a slash for relative root 'if (isset($matches[0]) && $matches[0] === site_url()) { return "/";' . // if domain is equal to site_url, then make URL relative '} elseif (isset($matches[0]) && strpos($matches[0], site_url()) !== false) { return $matches[2];' . // if domain is not equal to site_url, do not make external link relative '} else { return $matches[0]; };' ), $input ); /** * Fixes an issue when the following is the case: * site_url() = http://yoursite.com/inc * home_url() = http://yoursite.com * WP_CONTENT_DIR = http://yoursite.com/content * http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content */ $str = "/" . end(explode("/", content_url())); if (strpos($output, $str) !== false) { $arrResults = explode( $str, $output ); $output = $str . $arrResults[1]; } return $output; if (!is_admin()) { add_filter('script_loader_src', 'roots_root_relative_url'); add_filter('style_loader_src', 'roots_root_relative_url'); } A: Similar to Wyck's answer, but using str_replace instead of regex. script_loader_src and style_loader_src are the hooks you want. <?php add_filter( 'script_loader_src', 'wpse47206_src' ); add_filter( 'style_loader_src', 'wpse47206_src' ); function wpse47206_src( $url ) { if( is_admin() ) return $url; return str_replace( site_url(), '', $url ); } You could also start the script/style URLs with a double slash // (a "network path reference"). Which might be safer (?): still has the full path, but uses the scheme/protocol of the current page. <?php add_filter( 'script_loader_src', 'wpse47206_src' ); add_filter( 'style_loader_src', 'wpse47206_src' ); function wpse47206_src( $url ) { if( is_admin() ) return $url; // why pass by reference on count? last arg return str_replace( array( 'http:', 'https:' ), '', $url, $c=1 ); }
wordpress
{ "language": "en", "length": 460, "provenance": "stackexchange_00019.jsonl.gz:418522", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47206" }
[ 0.035247802734375, 0.006999969482421875, -0.0501708984375, -0.031158447265625, 0.016845703125, -0.05419921875, 0.0240631103515625, 0.029998779296875, -0.0299224853515625, -0.0010929107666015625, 0.037353515625, 0.0005297660827636719, -0.037933349609375, -0.04913330078125, 0.0230712890625, -0.0275421142578125, 0.0253753662109375, -0.004283905029296875, -0.0002205371856689453, -0.0169830322265625, 0.006023406982421875, -0.0034389495849609375, 0.0008196830749511719, 0.06707763671875, 0.00608062744140625, -0.03973388671875, 0.1253662109375, -0.0025196075439453125, 0.003078460693359375, -0.0236053466796875, 0.0160980224609375, -0.0238800048828125, -0.0025539398193359375, 0.0638427734375, -0.0298614501953125, -0.02301025390625, 0.00732421875, 0.024932861328125, 0.0222930908203125, 0.0120697021484375, 0.0125274658203125, -0.0021114349365234375, -0.00909423828125, 0.019927978515625, -0.0204925537109375, -0.0311431884765625, 0.021575927734375, -0.0123443603515625, -0.005626678466796875, 0.067138671875, 0.0038318634033203125, 0.0243682861328125, -0.0057525634765625, 0.05169677734375, -0.0073089599609375, -0.01470184326171875, -0.032562255859375, -0.004364013671875, -0.0005311965942382812, 0.045623779296875, 0.0218505859375, 0.0263214111328125, -0.002590179443359375, -0.0325927734375, -0.01393890380859375, -0.004302978515625, -0.01210784912109375, 0.01560211181640625, -0.05364990234375, -0.0215911865234375, 0.034088134765625, -0.0245361328125, -0.00514984130859375, -0.038299560546875, -0.016754150390625, 0.06964111328125, -0.049163818359375, 0.00330352783203125, 0.04632568359375, -0.038787841796875, 0.00627899169921875, -0.024322509765625, -0.053192138671875, 0.03155517578125, 0.0016307830810546875, 0.044097900390625, -0.013275146484375, -0.022796630859375, -0.029327392578125, -0.0014352798461914062, -0.023651123046875, -0.0212860107421875, -0.0145721435546875, -0.005207061767578125, -0.005771636962890625, -0.01116180419921875, 0.064697265625, 0.034576416015625, 0.016632080078125, -0.0006699562072753906, 0.0229949951171875, -0.05242919921875, 0.0165863037109375, -0.022064208984375, -0.01222991943359375, 0.049163818359375, 0.003322601318359375, -0.0006608963012695312, 0.0256500244140625, 0.01074981689453125, 0.0142974853515625, -0.031402587890625, -0.00830841064453125, 0.034637451171875, -0.04937744140625, -0.0087127685546875, -0.0333251953125, -0.0193634033203125, -0.054107666015625, 0.02667236328125, -0.005767822265625, 0.036834716796875, -0.0263214111328125, -0.024688720703125, -0.007091522216796875, -0.01340484619140625, 0.01322174072265625, -0.0197906494140625, 0.045654296875, 0.0186767578125, -0.04254150390625, -0.0141143798828125, 0.042022705078125, 0.0211639404296875, 0.0175323486328125, -0.0304718017578125, 0.027252197265625, -0.016693115234375, -0.03240966796875, 0.007541656494140625, 0.01003265380859375, -0.044097900390625, -0.010406494140625, -0.01531982421875, -0.021087646484375, 0.0117645263671875, 0.00844573974609375, 0.0117950439453125, -0.010467529296875, -0.03509521484375, -0.00086212158203125, -0.0227203369140625, 0.051177978515625, -0.01678466796875, 0.01438140869140625, -0.042266845703125, 0.06939697265625, -0.06317138671875, -0.01446533203125, -0.058197021484375, -0.0202789306640625, 0.0224609375, 0.03607177734375, 0.01488494873046875, 0.01549530029296875, -0.0328369140625, 0.004150390625, -0.0013141632080078125, 0.0247650146484375, 0.032623291015625, -0.036346435546875, -0.050872802734375, 0.01190948486328125, 0.0283966064453125, -0.01947021484375, 0.0633544921875, 0.00360107421875, 0.009918212890625, 0.01224517822265625, 0.03582763671875, -0.0004398822784423828, -0.040679931640625, 0.038818359375, -0.0288238525390625, -0.051025390625, 0.0015363693237304688, 0.0027523040771484375, 0.0280303955078125, 0.0175323486328125, 0.01203155517578125, 0.0677490234375, 0.01323699951171875, -0.03570556640625, -0.0194854736328125, 0.0127105712890625, 0.013031005859375, -0.0066680908203125, -0.0008258819580078125, -0.0010671615600585938, -0.00038886070251464844, 0.0229339599609375, 0.004314422607421875, 0.04132080078125, -0.0160675048828125, 0.01293182373046875, -0.0007715225219726562, -0.004253387451171875, 0.03631591796875, -0.0308074951171875, 0.0206146240234375, 0.01540374755859375, 0.016387939453125, -0.0291748046875, 0.0119781494140625, 0.00835418701171875, 0.01195526123046875, 0.0174102783203125, 0.04510498046875, 0.0023403167724609375, 0.01885986328125, 0.0158538818359375, -0.0204620361328125, 0.01123046875, -0.0031375885009765625, 0.0121002197265625, -0.02862548828125, -0.0073089599609375, -0.0262603759765625, 0.038116455078125, -0.02069091796875, 0.044158935546875, 0.0299224853515625, 0.031494140625, 0.068115234375, -0.0016222000122070312, 0.01239013671875, -0.005466461181640625, -0.035919189453125, -0.0010290145874023438, 0.0293426513671875, 0.050384521484375, 0.053192138671875, -0.0080108642578125, -0.0249786376953125, 0.0271148681640625, -0.059112548828125, 0.01532745361328125, -0.024871826171875, 0.002826690673828125, -0.005397796630859375, -0.004779815673828125, -0.0192108154296875, 0.0279083251953125, -0.0438232421875, 0.0025844573974609375, 0.032623291015625, 0.00516510009765625, 0.0171051025390625, 0.00862884521484375, -0.0017919540405273438, 0.01241302490234375, 0.0294342041015625, -0.007232666015625, 0.00853729248046875, 0.01282501220703125, 0.00823974609375, 0.00861358642578125, 0.006927490234375, -0.0287017822265625, 0.000286102294921875, 0.045166015625, 0.00908660888671875, -0.0237274169921875, 0.016845703125, 0.059967041015625, -0.040496826171875, -0.01396942138671875, -0.006481170654296875, -0.0280609130859375, 0.0016269683837890625, -0.010345458984375, 0.019439697265625, 0.0012903213500976562, -0.0121612548828125, -0.0267486572265625, -0.03887939453125, 0.0260009765625, 0.021209716796875, 0.050994873046875, 0.0272216796875, 0.03802490234375, 0.0152435302734375, 0.01056671142578125, 0.0287628173828125, 0.0215301513671875, -0.0306243896484375, 0.06207275390625, -0.023345947265625, 0.02294921875, -0.00992584228515625, 0.069091796875, 0.05108642578125, -0.00799560546875, 0.00901031494140625, 0.01142120361328125, 0.007049560546875, 0.0225677490234375, -0.01493072509765625, -0.00553131103515625, 0.0325927734375, -0.1025390625, -0.0176544189453125, 0.0268707275390625, -0.0159912109375, 0.0233154296875, -0.0180816650390625, -0.002216339111328125, 0.004581451416015625, -0.1195068359375, -0.1134033203125, 0.006256103515625, -0.0245361328125, 0.00432586669921875, 0.009979248046875, -0.01324462890625, -0.006641387939453125, 0.037506103515625, 0.006206512451171875, 0.036285400390625, -0.0186309814453125, -0.06280517578125, -0.0075531005859375, -0.05999755859375, 0.012054443359375, -0.00936126708984375, -0.00614166259765625, 0.01085662841796875, -0.0012111663818359375, 0.02490234375, 0.0016832351684570312, 0.05523681640625, 0.030426025390625, -0.0013904571533203125, -0.0174560546875, 0.0021953582763671875, -0.0308685302734375, -0.040924072265625, -0.0016775131225585938, -0.01354217529296875, -0.0185546875, 0.02801513671875, 0.002193450927734375, -0.006744384765625, -0.033782958984375, 0.0003116130828857422, -0.02679443359375, 0.0032958984375, -0.01445770263671875, -0.00981903076171875, -0.06573486328125, -0.041717529296875, 0.01021575927734375, -0.0267486572265625, 0.0142364501953125, 0.001903533935546875, -0.0242156982421875, -0.020599365234375, 0.040618896484375, 0.05743408203125, -0.004650115966796875, 0.010955810546875, 0.01503753662109375, 0.0350341796875, 0.0115814208984375, 0.052154541015625, -0.04437255859375, 0.08331298828125, -0.01023101806640625, -0.0289306640625, 0.0159149169921875, -0.006832122802734375, 0.00048089027404785156, -0.063232421875, -0.03619384765625, -0.003021240234375, 0.032318115234375, -0.04248046875, 0.0109405517578125, -0.0236053466796875, -0.0113677978515625, -0.00457000732421875, 0.07220458984375, -0.061553955078125, -0.0186920166015625, 0.0302734375, 0.041961669921875, -0.048248291015625, -0.06292724609375, -0.04052734375, -0.00685882568359375, -0.168212890625, 0.03240966796875, -0.02520751953125, -0.034423828125, 0.0032672882080078125, -0.056610107421875, -0.0789794921875, -0.0888671875, 0.050811767578125, 0.01666259765625, 0.010009765625, -0.005329132080078125, 0.0165252685546875, -0.0304718017578125, -0.046661376953125, 0.00978851318359375, -0.068603515625, -0.0182037353515625, -0.0270538330078125, 0.054290771484375, 0.00577545166015625, 0.0023746490478515625, -0.002147674560546875, 0.0499267578125, -0.01253509521484375, 0.009185791015625, 0.0184478759765625, -0.00040435791015625, -0.002902984619140625, 0.028778076171875, -0.006107330322265625, -0.01305389404296875, -0.0110015869140625, -0.01059722900390625, -0.064453125, -0.009613037109375, 0.0026760101318359375, 0.01389312744140625, 0.0665283203125, -0.03350830078125, -0.026580810546875, 0.00957489013671875, 0.00506591796875, -0.01361846923828125, 0.004627227783203125, -0.0301666259765625, 0.024017333984375, -0.01387786865234375, 0.037384033203125, -0.00026226043701171875, -0.007457733154296875, -0.00919342041015625, -0.0079498291015625, 0.0197906494140625, -0.03485107421875, 0.0421142578125, 0.0193939208984375, 0.0145263671875, -0.0184173583984375, 0.05462646484375, -0.00014829635620117188, -0.006511688232421875, 0.03759765625, -0.0288543701171875, 0.0298004150390625, -0.0069122314453125, 0.0300140380859375, 0.029876708984375, 0.0211181640625, 0.005695343017578125, 0.046417236328125, -0.045166015625, 0.011810302734375, 0.0145416259765625, 0.009521484375, 0.01605224609375, -0.016387939453125, 0.007183074951171875, -0.0290069580078125, -0.00724029541015625, -0.0149688720703125, -0.000007152557373046875, 0.0026092529296875, 0.037445068359375, 0.0238800048828125, 0.0015382766723632812, 0.0097808837890625, 0.056060791015625, 0.0216064453125, -0.03289794921875, -0.0109100341796875, -0.05291748046875, 0.06549072265625, -0.062286376953125, -0.01334381103515625, 0.0015420913696289062, -0.01346588134765625, 0.0289154052734375, 0.01140594482421875, -0.048828125, -0.01934814453125, 0.0040130615234375, 0.06060791015625, 0.00909423828125, 0.040191650390625, 0.0465087890625, -0.0183868408203125, -0.019439697265625, -0.032379150390625, 0.0008563995361328125, -0.0186767578125, -0.043304443359375, 0.035858154296875, -0.0128631591796875, 0.0035400390625, 0.0012998580932617188, 0.05035400390625, 0.0018911361694335938, 0.0357666015625, -0.0225677490234375, -0.025665283203125, -0.008026123046875, 0.00749969482421875, 0.0156097412109375, 0.0110626220703125, -0.00460052490234375, 0.00927734375, 0.061370849609375, -0.0382080078125, 0.005641937255859375, 0.0255279541015625, 0.0321044921875, -0.021270751953125, -0.017578125, 0.01418304443359375, -0.0212860107421875, -0.0421142578125, 0.052520751953125, 0.0289154052734375, -0.013153076171875, -0.05255126953125, -0.034698486328125, 0.027618408203125, 0.0443115234375, 0.0005288124084472656, -0.019805908203125, -0.016876220703125, -0.0198822021484375, 0.0254058837890625, -0.0477294921875, 0.0013284683227539062, 0.0020618438720703125, -0.0296783447265625, -0.0203094482421875, 0.00921630859375, -0.0555419921875, -0.0396728515625, 0.00019490718841552734, -0.0026988983154296875, 0.028839111328125, -0.020294189453125, 0.036041259765625, -0.0181884765625, -0.0248870849609375, -0.004486083984375, 0.0162811279296875, 0.044403076171875, 0.027740478515625, -0.031585693359375, -0.0084075927734375, -0.0228118896484375, 0.0038299560546875, -0.0166168212890625, -0.0311279296875, 0.0103912353515625, -0.0186614990234375, 0.00984954833984375, 0.01354217529296875, -0.022613525390625, -0.038330078125, 0.00873565673828125, 0.00597381591796875, 0.0117950439453125, 0.0234375, -0.0204315185546875, 0.078369140625, 0.003742218017578125, 0.0311431884765625, 0.00848388671875, 0.047760009765625, 0.01136016845703125, -0.01537322998046875, 0.00038743019104003906, -0.06915283203125, -0.00910186767578125, -0.00067138671875, -0.0209503173828125, 0.050811767578125, 0.039520263671875, 0.006443023681640625, 0.01104736328125, 0.01226806640625, 0.006214141845703125, -0.035369873046875, -0.012542724609375, -0.0033893585205078125, 0.0101318359375, -0.011260986328125, 0.008697509765625, 0.03582763671875, -0.01282501220703125, 0.0019855499267578125, 0.020965576171875, -0.0176239013671875, 0.032745361328125, -0.0242156982421875, -0.009429931640625, 0.020233154296875, 0.0221099853515625, -0.007335662841796875, 0.0313720703125, 0.01163482666015625, 0.00946044921875, 0.02435302734375, -0.01397705078125, -0.03924560546875, 0.00458526611328125, 0.00337982177734375, -0.01198577880859375, 0.0145416259765625, 0.004924774169921875, 0.002269744873046875, 0.0194549560546875, 0.02685546875, 0.05316162109375, -0.060821533203125, 0.015777587890625, -0.0036830902099609375, -0.0099334716796875, 0.02984619140625, -0.00673675537109375, 0.02423095703125, -0.0012731552124023438, 0.00959014892578125, 0.039093017578125, -0.00708770751953125, 0.00315093994140625, -0.00528717041015625, -0.021026611328125, -0.0225372314453125, -0.005374908447265625, 0.007537841796875, -0.039947509765625, 0.0218505859375, 0.0257110595703125, -0.005710601806640625, -0.04998779296875, -0.01285552978515625, 0.03094482421875, -0.020721435546875, -0.06756591796875, 0.0186920166015625, -0.01523590087890625, 0.00445556640625, 0.006824493408203125, -0.0196533203125, 0.0556640625, 0.0203094482421875, -0.0149688720703125, 0.004558563232421875, -0.00782012939453125, 0.0035724639892578125, 0.0311279296875, -0.0243682861328125, 0.0241241455078125, 0.00579071044921875, -0.03497314453125, 0.005344390869140625, -0.00846099853515625, -0.0242156982421875, -0.0124664306640625, -0.0164337158203125, 0.046417236328125, -0.03167724609375, -0.034454345703125, 0.00333404541015625, 0.0117034912109375, 0.01493072509765625, -0.041168212890625, 0.040283203125, -0.07037353515625, -0.039520263671875, 0.0015668869018554688, -0.042266845703125, -0.039215087890625, -0.0623779296875, -0.060760498046875, 0.07965087890625, -0.0204925537109375, 0.049224853515625, -0.002704620361328125, 0.0171051025390625, 0.009033203125, -0.0030918121337890625, 0.019195556640625, 0.0234375, 0.063720703125, -0.01103973388671875, 0.0374755859375, -0.0280914306640625, 0.03173828125, 0.05877685546875, 0.053314208984375, 0.003810882568359375, -0.01043701171875, -0.010833740234375, 0.04931640625, 0.058807373046875, 0.0243682861328125, -0.011627197265625, -0.02056884765625, 0.061126708984375, 0.004665374755859375, -0.0552978515625, 0.0174407958984375, -0.01503753662109375, -0.043060302734375, 0.0223236083984375, 0.02789306640625, 0.03167724609375, 0.00540924072265625, 0.004047393798828125, -0.05078125, 0.02294921875, 0.0300445556640625, 0.0325927734375, 0.002338409423828125, 0.020294189453125, 0.002071380615234375, -0.0095672607421875, -0.03759765625, 0.00058746337890625, 0.0252838134765625, -0.01016998291015625, -0.01375579833984375, 0.0153656005859375, 0.0095977783203125, 0.017181396484375, 0.005702972412109375, -0.00775909423828125, 0.0206756591796875, 0.006290435791015625, 0.021942138671875, 0.03570556640625, 0.01192474365234375, 0.01233673095703125, 0.03326416015625, -0.014007568359375, 0.00852203369140625, -0.0423583984375, -0.014129638671875, 0.0142059326171875, 0.017791748046875, 0.02008056640625, -0.023956298828125, 0.02862548828125, -0.06768798828125, -0.038909912109375, 0.0018739700317382812, 0.025787353515625, 0.025665283203125, 0.010772705078125, 0.00675201416015625, 0.03582763671875, -0.04327392578125, 0.0435791015625, -0.0275726318359375, -0.0278167724609375, -0.016510009765625, 0.055450439453125, 0.06768798828125, 0.0197906494140625, -0.033905029296875, -0.046142578125, -0.018646240234375, 0.036895751953125, -0.01497650146484375, 0.0218353271484375, -0.0260009765625, -0.010650634765625, -0.032257080078125, 0.0269317626953125, 0.03228759765625, 0.001605987548828125, 0.060272216796875, 0.0204010009765625, -0.05340576171875, 0.005069732666015625, 0.0242919921875, -0.0261993408203125, 0.054443359375, -0.01435089111328125, 0.02508544921875, 0.00788116455078125, -0.0203399658203125, -0.041259765625, 0.0145111083984375, 0.04669189453125, -0.03704833984375, 0.036590576171875, -0.0072784423828125, -0.0027008056640625, -0.0036334991455078125, -0.02813720703125, 0.004840850830078125, -0.0143890380859375, 0.00266265869140625, -0.0113372802734375, -0.007411956787109375, 0.0390625, -0.0188140869140625, 0.00783538818359375, -0.0095367431640625, 0.06109619140625, 0.061370849609375, -0.0251922607421875, -0.00070953369140625, 0.019134521484375, 0.0026264190673828125, -0.020965576171875, 0.0274200439453125, 0.0036792755126953125, -0.024078369140625, -0.0269622802734375, -0.007305145263671875, 0.04278564453125, -0.00885009765625, 0.0836181640625, -0.048095703125, 0.00572967529296875, 0.0537109375, -0.0050811767578125, 0.019989013671875, 0.027618408203125, -0.0165252685546875, -0.01678466796875, 0.0316162109375, -0.0164031982421875, -0.0545654296875, 0.00800323486328125, 0.0271453857421875, -0.0249176025390625, 0.0199127197265625, 0.004100799560546875, 0.00870513916015625, -0.040130615234375, 0.002956390380859375, -0.0307464599609375, -0.04840087890625, -0.0260009765625, 0.023101806640625, -0.00286102294921875, 0.0036830902099609375, -0.0165863037109375, -0.0067596435546875, 0.031585693359375, -0.033416748046875, 0.025909423828125, -0.0120391845703125, 0.046966552734375, 0.024749755859375, 0.0146026611328125, -0.016632080078125, 0.02557373046875, -0.0117340087890625, 0.035430908203125, 0.01491546630859375, 0.045257568359375, 0.036376953125, -0.0005321502685546875, -0.032623291015625, -0.004364013671875, 0.039642333984375, 0.038970947265625, 0.02764892578125, -0.0244598388671875, -0.0213165283203125, -0.08990478515625, -0.0173797607421875, -0.01702880859375, -0.01456451416015625, -0.0166473388671875, 0.00475311279296875, -0.0018911361694335938, -0.0740966796875, 0.0036773681640625, -0.00457763671875, 0.03515625, 0.020751953125, -0.09295654296875, 0.056549072265625, -0.04998779296875, 0.032623291015625, -0.01523590087890625, 0.045318603515625, -0.026458740234375, -0.029815673828125, -0.049072265625, -0.055908203125, -0.03955078125, 0.09716796875, -0.03228759765625, 0.008056640625, 0.042724609375, -0.0033435821533203125, 0.0098419189453125, -0.00591278076171875, -0.0164642333984375, 0.055328369140625, -0.08056640625, -0.0014505386352539062, -0.0097808837890625, 0.0411376953125, -0.0164337158203125, -0.0657958984375, -0.01507568359375, -0.007232666015625, 0.0188446044921875, 0.0233154296875, -0.0288238525390625, -0.017669677734375, -0.0298614501953125, -0.039825439453125, 0.05657958984375, 0.01392364501953125, -0.0241546630859375, -0.0291900634765625, 0.00817108154296875, 0.00995635986328125, 0.0206146240234375, -0.005870819091796875, -0.0218658447265625, -0.03790283203125, -0.005222320556640625, 0.0163116455078125, 0.043426513671875, 0.0009331703186035156, -0.006671905517578125, -0.023651123046875, 0.0239105224609375, 0.019317626953125, 0.037689208984375, -0.035491943359375, 0.0125885009765625, 0.043060302734375, 0.037017822265625, 0.007122039794921875, 0.072509765625, 0.02838134765625, -0.033660888671875, -0.0203094482421875, -0.0010557174682617188, -0.022979736328125, 0.010589599609375, 0.0738525390625, 0.055877685546875, 0.022216796875, -0.0299835205078125, -0.04095458984375, -0.0249481201171875, 0.00888824462890625, -0.033355712890625, 0.019500732421875, -0.0721435546875, -0.01468658447265625, -0.00421905517578125, -0.01087188720703125, -0.0001595020294189453, -0.080322265625, -0.0421142578125, -0.0205535888671875, -0.0224151611328125, 0.058013916015625, -0.01132965087890625, -0.0189361572265625, 0.05328369140625, -0.0233001708984375, 0.047454833984375, -0.0255889892578125, 0.055328369140625, 0.059326171875, -0.02142333984375, -0.047332763671875, -0.00420379638671875, -0.0294952392578125, 0.037261962890625, -0.03118896484375, -0.0106048583984375, -0.052581787109375, 0.0243988037109375, -0.016754150390625, 0.0020999908447265625, 0.0191650390625, -0.0010509490966796875, -0.02423095703125, 0.00041103363037109375, 0.006771087646484375, 0.016693115234375, -0.033294677734375, 0.0014171600341796875, -0.01288604736328125, -0.0033931732177734375, 0.0020904541015625, 0.0151824951171875, 0.06475830078125, -0.0396728515625, 0.00426483154296875, -0.0155487060546875, -0.0014543533325195312, -0.061248779296875, 0.0201416015625, -0.057281494140625, 0.0175933837890625, 0.0256805419921875 ]
60f63fd5e82925f0f569ba05b5fb16dae086e0d9
Wordpress Stackexchange Q: Google Apps login in wordpress I manage a google apps domain with plenty of users; I would like to join Google apps with a Wordpress based intranet app we're creating. Which level of integration could I expect to achieve? Our hope is to create users in wordpress using their google apps email and let them login using their google apps password, so that they don't need to remember two different passwords. How would you suggest we should implement this? A: Use the plugin Wordpress Social Login: http://wordpress.org/extend/plugins/wordpress-social-login/ Does exactly what you want except the user doesn't actually have to type in their username and password if they are already logged in to Google Apps - they just click the Google icon and it will log them in to WordPress using Google Apps. And yes, you can create users in WordPress first tied to Google Apps email addresses and then the users can login without needing a registration step. It provides other auth options (FB, Twitter, etc.) if you'd like.
Q: Google Apps login in wordpress I manage a google apps domain with plenty of users; I would like to join Google apps with a Wordpress based intranet app we're creating. Which level of integration could I expect to achieve? Our hope is to create users in wordpress using their google apps email and let them login using their google apps password, so that they don't need to remember two different passwords. How would you suggest we should implement this? A: Use the plugin Wordpress Social Login: http://wordpress.org/extend/plugins/wordpress-social-login/ Does exactly what you want except the user doesn't actually have to type in their username and password if they are already logged in to Google Apps - they just click the Google icon and it will log them in to WordPress using Google Apps. And yes, you can create users in WordPress first tied to Google Apps email addresses and then the users can login without needing a registration step. It provides other auth options (FB, Twitter, etc.) if you'd like. A: This question was asked a while ago, but for anyone else facing this problem, we have developed a plugin that allows users to login using the latest Google OAuth2 without needing a separate WordPress password. Google Apps Login is designed specifically for intranets (or any WordPress site) where the organization is running their email entirely on Google Apps. http://wordpress.org/plugins/google-apps-login/ The plugin is fully supported, through support licenses and a premium version which can save you a lot of time on user management - domain admins no longer need to separately manage WordPress user accounts. A: I would say Using OAuth would be your best bet. Making it so that the users can login only with gmail by removing all the WordPress registration and login. http://wordpress.org/extend/plugins/oauth-provider/
wordpress
{ "language": "en", "length": 296, "provenance": "stackexchange_00019.jsonl.gz:418536", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47265" }
[ 0.01000213623046875, 0.00429534912109375, 0.0025539398193359375, 0.004150390625, -0.014801025390625, -0.01065826416015625, 0.034210205078125, -0.03106689453125, -0.032623291015625, 0.0256805419921875, 0.0052947998046875, 0.01934814453125, -0.01617431640625, -0.032440185546875, 0.0247802734375, -0.02716064453125, -0.00469970703125, -0.0033969879150390625, -0.01468658447265625, -0.039276123046875, 0.0197906494140625, -0.0299530029296875, -0.009857177734375, -0.016357421875, 0.01248931884765625, 0.0281219482421875, 0.0601806640625, -0.00986480712890625, -0.0033740997314453125, -0.0034275054931640625, 0.0256500244140625, -0.044342041015625, 0.0120086669921875, 0.0201873779296875, -0.005649566650390625, -0.03955078125, -0.01611328125, 0.016510009765625, 0.01488494873046875, -0.007282257080078125, 0.044921875, -0.0172576904296875, 0.03887939453125, 0.02117919921875, 0.0081634521484375, -0.06060791015625, 0.064697265625, -0.028839111328125, 0.01824951171875, -0.0176239013671875, 0.005615234375, 0.027801513671875, 0.032928466796875, -0.0025196075439453125, -0.002269744873046875, 0.0244140625, 0.007122039794921875, -0.0123291015625, 0.028778076171875, -0.050079345703125, -0.0285186767578125, -0.037017822265625, 0.05035400390625, 0.025115966796875, 0.00890350341796875, -0.023101806640625, -0.04400634765625, 0.031768798828125, 0.027435302734375, 0.00933837890625, -0.01529693603515625, -0.0057220458984375, -0.018310546875, -0.042633056640625, 0.03271484375, 0.06866455078125, -0.037506103515625, 0.027801513671875, 0.0191650390625, 0.018035888671875, 0.00528717041015625, 0.019866943359375, -0.024200439453125, -0.0081787109375, 0.0037021636962890625, 0.00659942626953125, -0.0198974609375, -0.0175018310546875, -0.029998779296875, 0.0075836181640625, -0.0228424072265625, -0.05419921875, -0.01027679443359375, 0.0260162353515625, -0.006137847900390625, -0.0119476318359375, 0.026214599609375, 0.01519775390625, 0.0267486572265625, 0.005451202392578125, 0.01091766357421875, -0.053863525390625, 0.0039215087890625, -0.0205230712890625, -0.02191162109375, 0.06207275390625, 0.0189208984375, 0.0225372314453125, -0.019744873046875, -0.00405120849609375, 0.004825592041015625, -0.058837890625, 0.00969696044921875, -0.0050506591796875, -0.018585205078125, 0.040679931640625, 0.02490234375, -0.0147705078125, -0.00992584228515625, 0.0025081634521484375, -0.035308837890625, -0.002407073974609375, -0.0301666259765625, 0.0411376953125, -0.0130462646484375, -0.0193023681640625, 0.0194244384765625, 0.0186920166015625, -0.01904296875, 0.014739990234375, -0.027069091796875, 0.0302276611328125, 0.059783935546875, 0.0153350830078125, -0.017181396484375, -0.016693115234375, 0.0200042724609375, 0.0129241943359375, -0.006870269775390625, 0.02630615234375, 0.004711151123046875, -0.03228759765625, 0.00157928466796875, -0.0133819580078125, 0.01446533203125, -0.00794219970703125, 0.00714874267578125, 0.030853271484375, 0.01548004150390625, 0.0088348388671875, 0.0199737548828125, -0.0281982421875, -0.036376953125, 0.020660400390625, 0.08807373046875, 0.01425933837890625, 0.0269622802734375, 0.0004749298095703125, 0.03515625, 0.0275726318359375, 0.0182952880859375, -0.0305633544921875, -0.02294921875, 0.0102386474609375, -0.0258331298828125, 0.0187835693359375, 0.0036983489990234375, 0.0003991127014160156, 0.01049041748046875, -0.02606201171875, 0.0011653900146484375, 0.01486968994140625, 0.044464111328125, -0.02777099609375, -0.002227783203125, -0.0012340545654296875, -0.0013380050659179688, 0.061981201171875, 0.016021728515625, 0.0259857177734375, 0.026092529296875, -0.017547607421875, 0.0986328125, -0.00673675537109375, 0.01349639892578125, 0.00518798828125, -0.007213592529296875, -0.01216888427734375, -0.01393890380859375, 0.009124755859375, -0.0075836181640625, 0.04669189453125, -0.036773681640625, -0.00487518310546875, -0.01152801513671875, -0.01201629638671875, 0.062164306640625, 0.0099639892578125, 0.02020263671875, -0.0168304443359375, 0.0301055908203125, 0.00260162353515625, -0.0081634521484375, -0.030670166015625, -0.04534912109375, -0.0034732818603515625, 0.0003681182861328125, 0.020111083984375, -0.019805908203125, 0.022308349609375, 0.01605224609375, -0.007198333740234375, 0.0029926300048828125, -0.0055084228515625, 0.0097198486328125, -0.0098876953125, -0.0295867919921875, 0.0521240234375, 0.01153564453125, 0.05926513671875, 0.0002040863037109375, -0.00865936279296875, 0.0164337158203125, -0.04400634765625, 0.00720977783203125, -0.044097900390625, -0.00287628173828125, -0.0198822021484375, -0.0113525390625, -0.00798797607421875, -0.0097808837890625, 0.042388916015625, 0.0122833251953125, 0.01323699951171875, -0.03643798828125, -0.0111541748046875, -0.0034618377685546875, -0.01119232177734375, -0.00007015466690063477, 0.03729248046875, 0.0251312255859375, 0.022735595703125, -0.0245819091796875, -0.0160980224609375, 0.0150299072265625, -0.01346588134765625, 0.028411865234375, -0.0202789306640625, 0.0077972412109375, 0.01457977294921875, 0.00936126708984375, -0.001895904541015625, 0.020263671875, -0.022918701171875, 0.0208587646484375, 0.0174102783203125, 0.00728607177734375, -0.04486083984375, -0.0020885467529296875, 0.0151519775390625, 0.0143585205078125, -0.05084228515625, -0.044158935546875, -0.0063934326171875, -0.05792236328125, -0.005474090576171875, -0.00696563720703125, 0.0047760009765625, 0.007785797119140625, -0.05145263671875, 0.0294036865234375, 0.03369140625, -0.01331329345703125, 0.00949859619140625, 0.0694580078125, -0.0105438232421875, -0.0382080078125, -0.0135955810546875, 0.04119873046875, 0.0241546630859375, -0.021270751953125, -0.044525146484375, -0.01629638671875, 0.00615692138671875, 0.0016260147094726562, -0.06561279296875, 0.047149658203125, 0.0290069580078125, 0.033966064453125, 0.0015478134155273438, 0.01412200927734375, 0.0245361328125, -0.022125244140625, 0.072265625, -0.0028247833251953125, -0.0271759033203125, 0.00540924072265625, -0.036773681640625, 0.049072265625, -0.051025390625, -0.0127410888671875, 0.064208984375, 0.012664794921875, -0.01210784912109375, -0.01316070556640625, 0.0013704299926757812, -0.0267181396484375, 0.0289154052734375, 0.0125274658203125, -0.06256103515625, 0.0216217041015625, 0.04022216796875, 0.00855255126953125, 0.052215576171875, -0.00838470458984375, -0.03729248046875, 0.0087127685546875, 0.030975341796875, -0.0474853515625, -0.055511474609375, -0.0293731689453125, -0.08203125, -0.01561737060546875, -0.036712646484375, -0.0477294921875, 0.036163330078125, -0.0097198486328125, 0.00824737548828125, -0.00893402099609375, -0.034942626953125, -0.03369140625, -0.043792724609375, -0.0282745361328125, 0.0266876220703125, -0.00652313232421875, -0.0168609619140625, 0.035186767578125, -0.03900146484375, 0.01357269287109375, 0.010406494140625, 0.0537109375, 0.050537109375, 0.0023956298828125, -0.0303802490234375, -0.045501708984375, -0.03125, 0.0003795623779296875, -0.0170745849609375, 0.017364501953125, -0.01410675048828125, 0.0394287109375, 0.006317138671875, 0.045074462890625, 0.01273345947265625, 0.05023193359375, -0.04296875, -0.0611572265625, 0.0372314453125, 0.00957489013671875, -0.044281005859375, 0.0249481201171875, 0.005664825439453125, 0.0084686279296875, -0.03045654296875, -0.028778076171875, -0.0277862548828125, -0.006229400634765625, 0.0005655288696289062, 0.0156707763671875, 0.0252838134765625, 0.0160064697265625, -0.0021991729736328125, 0.0114898681640625, -0.0128936767578125, -0.0175018310546875, -0.0033855438232421875, -0.0218505859375, -0.057708740234375, -0.00531768798828125, -0.0382080078125, -0.031036376953125, -0.03009033203125, -0.0007014274597167969, -0.00296783447265625, -0.029083251953125, 0.0309600830078125, -0.0295867919921875, 0.034210205078125, -0.045867919921875, -0.0047454833984375, -0.037811279296875, 0.063720703125, 0.0015802383422851562, -0.01285552978515625, 0.05010986328125, 0.015533447265625, -0.06414794921875, 0.01094818115234375, -0.0733642578125, -0.005229949951171875, 0.03472900390625, -0.010894775390625, -0.01473236083984375, 0.01021575927734375, 0.001129150390625, -0.0322265625, 0.0252227783203125, -0.0234375, 0.00971221923828125, 0.04388427734375, 0.006336212158203125, -0.03173828125, 0.017364501953125, -0.051971435546875, 0.026275634765625, -0.002880096435546875, -0.036468505859375, 0.0021495819091796875, 0.00839996337890625, 0.00893402099609375, 0.03466796875, -0.051177978515625, 0.01763916015625, 0.037078857421875, -0.0236358642578125, 0.00013554096221923828, 0.0298614501953125, 0.042022705078125, 0.012603759765625, -0.0090179443359375, 0.0035991668701171875, -0.039520263671875, -0.0006108283996582031, -0.0054168701171875, -0.0283203125, -0.0260009765625, -0.024932861328125, -0.01690673828125, 0.0218353271484375, -0.030364990234375, -0.036407470703125, -0.022613525390625, 0.03265380859375, 0.03656005859375, 0.0156097412109375, 0.016143798828125, -0.0245208740234375, -0.0185089111328125, 0.04083251953125, 0.005603790283203125, -0.01114654541015625, -0.005214691162109375, 0.06610107421875, 0.0205230712890625, -0.0285186767578125, -0.00046324729919433594, 0.0272674560546875, 0.04388427734375, -0.0330810546875, 0.040496826171875, 0.032562255859375, -0.0301055908203125, 0.023651123046875, 0.0233917236328125, 0.019317626953125, 0.046142578125, 0.006504058837890625, 0.000274658203125, -0.0231781005859375, 0.00441741943359375, 0.0135345458984375, -0.07061767578125, -0.00029850006103515625, 0.0034942626953125, -0.0192718505859375, 0.01378631591796875, 0.013580322265625, -0.0102691650390625, 0.023712158203125, 0.006084442138671875, -0.06024169921875, 0.03704833984375, -0.04046630859375, -0.0092620849609375, 0.0110626220703125, 0.0034656524658203125, -0.004787445068359375, 0.007480621337890625, -0.044921875, -0.034149169921875, -0.040802001953125, 0.0004563331604003906, -0.023284912109375, 0.01019287109375, -0.017578125, -0.027435302734375, -0.037872314453125, 0.133056640625, 0.0007410049438476562, -0.07989501953125, 0.046173095703125, -0.046539306640625, 0.03369140625, 0.064453125, -0.03466796875, 0.02337646484375, 0.00508880615234375, -0.00954437255859375, 0.00815582275390625, -0.054229736328125, -0.005207061767578125, -0.044525146484375, -0.049407958984375, -0.039642333984375, 0.0009045600891113281, -0.01103973388671875, 0.06488037109375, -0.046630859375, 0.0321044921875, -0.007110595703125, 0.013153076171875, 0.0172576904296875, 0.02178955078125, 0.0172576904296875, 0.00833892822265625, 0.004985809326171875, -0.01085662841796875, 0.01427459716796875, -0.041961669921875, -0.033477783203125, 0.0299530029296875, 0.0697021484375, 0.0264129638671875, 0.005859375, -0.01415252685546875, -0.027679443359375, -0.00019598007202148438, 0.00397491455078125, -0.0458984375, -0.0587158203125, -0.0118408203125, 0.0036449432373046875, 0.0125732421875, -0.05230712890625, 0.01161956787109375, 0.0149688720703125, 0.0179595947265625, 0.030609130859375, 0.00013244152069091797, 0.0009274482727050781, 0.0055999755859375, -0.00318145751953125, -0.033538818359375, -0.039459228515625, 0.0006413459777832031, -0.01507568359375, 0.003856658935546875, -0.00553131103515625, -0.022247314453125, 0.0164947509765625, -0.00835418701171875, -0.00650787353515625, -0.0228271484375, 0.0178070068359375, -0.00018334388732910156, -0.0161895751953125, 0.055023193359375, 0.01210784912109375, -0.004581451416015625, -0.0345458984375, -0.0245513916015625, -0.039825439453125, -0.0196533203125, 0.013824462890625, -0.04412841796875, 0.037567138671875, -0.00799560546875, 0.03546142578125, -0.0352783203125, -0.01100921630859375, -0.035064697265625, 0.01323699951171875, 0.010772705078125, 0.0565185546875, -0.025421142578125, 0.049285888671875, 0.025115966796875, 0.04083251953125, 0.0106964111328125, 0.033416748046875, -0.002902984619140625, -0.023406982421875, -0.007720947265625, -0.0714111328125, 0.0019550323486328125, 0.00197601318359375, 0.0012636184692382812, 0.03863525390625, 0.01459503173828125, 0.004482269287109375, 0.0014562606811523438, -0.0298919677734375, -0.0006432533264160156, -0.007480621337890625, 0.051239013671875, -0.005306243896484375, -0.04901123046875, 0.07293701171875, -0.00836944580078125, 0.01216888427734375, -0.035308837890625, 0.01273345947265625, -0.01446533203125, -0.0167999267578125, -0.01151275634765625, 0.009552001953125, -0.041778564453125, 0.039764404296875, 0.05706787109375, 0.02642822265625, 0.03863525390625, -0.0010204315185546875, 0.014739990234375, 0.0126953125, -0.0010356903076171875, -0.059112548828125, -0.052276611328125, -0.0231170654296875, -0.0026874542236328125, -0.01435089111328125, -0.002353668212890625, -0.00884246826171875, 0.01546478271484375, 0.06842041015625, 0.06890869140625, -0.1209716796875, 0.0140380859375, -0.0032958984375, 0.00029754638671875, 0.0193939208984375, 0.006710052490234375, -0.018310546875, -0.020233154296875, 0.0665283203125, -0.04248046875, -0.005146026611328125, 0.0364990234375, -0.016204833984375, 0.002994537353515625, 0.0016632080078125, 0.056793212890625, 0.01324462890625, -0.043487548828125, -0.009490966796875, 0.003276824951171875, 0.0230712890625, 0.005046844482421875, -0.032012939453125, 0.0103912353515625, -0.058837890625, -0.08258056640625, -0.035186767578125, -0.034088134765625, -0.035491943359375, 0.01544952392578125, -0.0074615478515625, 0.0755615234375, 0.047515869140625, 0.007793426513671875, 0.0021228790283203125, 0.00572967529296875, 0.043365478515625, 0.055755615234375, 0.00777435302734375, 0.0202178955078125, 0.0151824951171875, -0.041168212890625, -0.004085540771484375, -0.034210205078125, 0.04791259765625, -0.0156402587890625, 0.0234222412109375, 0.037384033203125, 0.016754150390625, -0.0274505615234375, 0.059112548828125, 0.042327880859375, -0.0379638671875, -0.014923095703125, 0.01654052734375, -0.06396484375, -0.0261077880859375, 0.01096343994140625, -0.0221405029296875, 0.0005826950073242188, 0.0137481689453125, -0.0305328369140625, 0.0655517578125, -0.008209228515625, -0.00760650634765625, -0.007740020751953125, 0.0275726318359375, -0.0101470947265625, 0.0218658447265625, -0.009185791015625, 0.0234222412109375, 0.01287841796875, 0.026519775390625, 0.02496337890625, -0.01099395751953125, 0.02923583984375, 0.0304107666015625, 0.054534912109375, 0.0274810791015625, -0.093505859375, -0.0287322998046875, 0.0189361572265625, 0.026336669921875, 0.023590087890625, 0.07244873046875, 0.012451171875, 0.017059326171875, 0.023681640625, -0.018035888671875, 0.0159149169921875, -0.01204681396484375, -0.00684356689453125, 0.041595458984375, -0.0209808349609375, -0.027618408203125, -0.0020275115966796875, 0.005214691162109375, -0.0115203857421875, 0.000682830810546875, -0.00926971435546875, -0.0159454345703125, -0.00693511962890625, 0.02593994140625, 0.0079345703125, -0.01922607421875, -0.02886962890625, -0.0225067138671875, 0.03192138671875, -0.0129852294921875, 0.007709503173828125, 0.0300140380859375, 0.03466796875, -0.0021800994873046875, -0.007965087890625, 0.0263214111328125, 0.036407470703125, -0.055267333984375, 0.036590576171875, 0.00083160400390625, 0.010650634765625, -0.080078125, -0.0246734619140625, 0.051788330078125, 0.06640625, -0.04425048828125, -0.0247955322265625, 0.004695892333984375, 0.01255035400390625, 0.0555419921875, -0.006137847900390625, 0.0782470703125, -0.00992584228515625, -0.00873565673828125, -0.005649566650390625, 0.0188751220703125, 0.0206451416015625, 0.0044708251953125, 0.00638580322265625, 0.0246124267578125, -0.034271240234375, 0.0299224853515625, 0.0021648406982421875, -0.004528045654296875, 0.00789642333984375, -0.0007238388061523438, 0.00231170654296875, 0.01922607421875, 0.025726318359375, -0.003017425537109375, -0.032806396484375, 0.01678466796875, 0.037811279296875, 0.03125, -0.006591796875, 0.023712158203125, 0.01189422607421875, 0.033203125, -0.00792694091796875, -0.0018863677978515625, 0.03765869140625, 0.0185546875, -0.0570068359375, -0.0284881591796875, -0.005191802978515625, -0.0283355712890625, -0.0167388916015625, 0.034088134765625, -0.0516357421875, 0.001312255859375, -0.034576416015625, -0.0093536376953125, 0.053619384765625, -0.025787353515625, 0.01380157470703125, 0.04718017578125, -0.01202392578125, -0.033721923828125, 0.034210205078125, -0.008941650390625, 0.10589599609375, 0.01824951171875, -0.043731689453125, -0.00439453125, -0.0213165283203125, -0.036773681640625, 0.01446533203125, 0.026458740234375, -0.03704833984375, 0.04974365234375, 0.08013916015625, -0.001918792724609375, 0.011962890625, -0.01947021484375, 0.0260009765625, -0.00909423828125, 0.01456451416015625, 0.02593994140625, -0.10247802734375, -0.034332275390625, -0.027252197265625, 0.01067352294921875, 0.005908966064453125, 0.03887939453125, 0.026397705078125, 0.0172119140625, 0.0103302001953125, 0.001392364501953125, 0.0032062530517578125, 0.003765106201171875, 0.018524169921875, -0.007663726806640625, -0.01247406005859375, -0.010833740234375, -0.0211944580078125, 0.031829833984375, -0.018218994140625, -0.0266876220703125, 0.004718780517578125, -0.032135009765625, 0.00955963134765625, 0.0280914306640625, -0.00992584228515625, -0.047607421875, -0.060546875, -0.034088134765625, 0.044891357421875, -0.03265380859375, -0.051177978515625, -0.09136962890625, 0.0506591796875, -0.04180908203125, -0.02496337890625, 0.003902435302734375, -0.06549072265625, -0.0175323486328125, 0.0172576904296875, -0.003429412841796875, -0.00557708740234375, 0.03375244140625, -0.02191162109375, 0.017181396484375, 0.0016870498657226562, 0.0155181884765625, 0.01526641845703125, -0.0701904296875, 0.0255126953125, 0.0635986328125, 0.06829833984375, 0.0014553070068359375, 0.0269317626953125, 0.01366424560546875, -0.00814056396484375, 0.034942626953125, -0.0216827392578125, -0.040283203125, -0.0411376953125, 0.001678466796875, 0.0236663818359375, -0.01227569580078125, -0.044525146484375, -0.06988525390625, 0.042877197265625, 0.0304412841796875, 0.01641845703125, -0.078857421875, 0.052276611328125, -0.0343017578125, 0.046356201171875, 0.01314544677734375, 0.002902984619140625, -0.00975799560546875, -0.0036792755126953125, -0.00717926025390625, -0.001094818115234375, -0.026458740234375, 0.0281524658203125, 0.023895263671875, 0.0123291015625, 0.037628173828125, -0.0085906982421875, 0.0143585205078125, 0.0155029296875, 0.00713348388671875, 0.0640869140625, -0.048492431640625, -0.0177764892578125, -0.00780487060546875, 0.0055084228515625, 0.00795745849609375, -0.01329803466796875, -0.0014333724975585938, -0.0382080078125, -0.004619598388671875, -0.01406097412109375, 0.0224151611328125, 0.04443359375, -0.045257568359375, -0.126708984375, 0.038177490234375, -0.018829345703125, -0.044036865234375, -0.09906005859375, 0.04559326171875, 0.028594970703125, -0.02154541015625, -0.033905029296875, 0.00899505615234375, -0.034271240234375, 0.0237274169921875, -0.0028934478759765625, 0.002227783203125, 0.019439697265625, 0.0015840530395507812, 0.0004944801330566406, 0.0197296142578125, 0.0255889892578125, -0.0478515625, 0.019134521484375, 0.01076507568359375, 0.022674560546875, 0.06378173828125, -0.0274810791015625, -0.00431060791015625, -0.03082275390625, -0.06298828125, -0.00884246826171875, -0.021759033203125, 0.0015659332275390625, -0.001552581787109375, 0.053741455078125, 0.03631591796875, 0.006557464599609375, -0.0184173583984375, -0.038543701171875, -0.0634765625, 0.035980224609375, -0.0219879150390625, -0.00736236572265625, -0.052154541015625, 0.01247406005859375, 0.00882720947265625, 0.0152435302734375, -0.0038661956787109375, -0.02288818359375, -0.0017766952514648438, -0.0150909423828125, 0.036773681640625, -0.0055694580078125, 0.0184478759765625, 0.0199127197265625, 0.05316162109375, -0.047698974609375, -0.0189056396484375, -0.0233917236328125, 0.016143798828125, 0.010955810546875, -0.065185546875, 0.034027099609375, 0.01058197021484375, -0.0435791015625, -0.00701904296875, 0.0243988037109375, 0.0382080078125, -0.01296234130859375, -0.0487060546875, -0.023101806640625, 0.01476287841796875, 0.01059722900390625, 0.0242767333984375, -0.0274200439453125, 0.04400634765625, 0.0528564453125, 0.0027446746826171875, 0.00237274169921875, -0.0843505859375, -0.048828125, 0.041015625, 0.01654052734375, -0.035736083984375, 0.0220794677734375, -0.0290985107421875, 0.00592041015625, 0.03668212890625, 0.026611328125, -0.03680419921875, 0.026641845703125, 0.0217742919921875, 0.035491943359375, 0.0153656005859375 ]
f08d1efb03ca605f5fc713b84f659e1b2b213b68
Wordpress Stackexchange Q: difference between add_object_page and add_menu_page According to Codex, the add_object_page "essentially does the exact same thing as add_menu_page() in case you're wondering". So.... what is the difference between those two functions? A: It's just a wrapper for add_menu_page() with one addition: It adds the menu page as absolutely last/to the bottom of the menu.
Q: difference between add_object_page and add_menu_page According to Codex, the add_object_page "essentially does the exact same thing as add_menu_page() in case you're wondering". So.... what is the difference between those two functions? A: It's just a wrapper for add_menu_page() with one addition: It adds the menu page as absolutely last/to the bottom of the menu.
wordpress
{ "language": "en", "length": 55, "provenance": "stackexchange_00019.jsonl.gz:418543", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47291" }
[ 0.09906005859375, 0.00968170166015625, 0.036163330078125, -0.06640625, 0.021484375, -0.01450347900390625, 0.017852783203125, -0.03216552734375, -0.02685546875, -0.0162200927734375, -0.036376953125, 0.029296875, -0.033355712890625, -0.02142333984375, 0.04486083984375, -0.036895751953125, 0.042724609375, -0.01557159423828125, 0.0545654296875, -0.00975799560546875, 0.01445770263671875, 0.00748443603515625, 0.04339599609375, 0.035003662109375, 0.048675537109375, -0.08984375, -0.0360107421875, 0.0276947021484375, 0.0081329345703125, 0.007595062255859375, 0.01010894775390625, 0.026336669921875, 0.025299072265625, 0.032196044921875, -0.06549072265625, -0.0038280487060546875, -0.01531982421875, 0.0283050537109375, -0.01207733154296875, 0.00054168701171875, 0.03277587890625, -0.0045318603515625, -0.01092529296875, 0.01421356201171875, -0.032684326171875, -0.03033447265625, 0.0254058837890625, 0.0015077590942382812, -0.04180908203125, -0.047821044921875, 0.02801513671875, -0.019378662109375, 0.048248291015625, -0.0157470703125, -0.0189971923828125, -0.00754547119140625, 0.017333984375, -0.0111236572265625, 0.00939178466796875, 0.0008268356323242188, -0.0152435302734375, 0.0325927734375, 0.0135955810546875, -0.009185791015625, 0.016357421875, 0.0205841064453125, 0.003955841064453125, 0.01641845703125, -0.093505859375, 0.0004584789276123047, 0.04107666015625, -0.07196044921875, -0.0272674560546875, 0.0247802734375, -0.025970458984375, -0.031341552734375, 0.017669677734375, -0.023345947265625, 0.0150604248046875, 0.03546142578125, -0.0175018310546875, 0.0145416259765625, -0.08349609375, -0.0165863037109375, 0.00617218017578125, 0.023223876953125, -0.0239715576171875, -0.01419830322265625, -0.02288818359375, -0.03240966796875, -0.0233001708984375, -0.048004150390625, -0.017425537109375, 0.010772705078125, -0.00820159912109375, -0.01203155517578125, 0.01226043701171875, 0.01311492919921875, -0.005245208740234375, 0.01708984375, 0.0213470458984375, -0.050048828125, 0.0616455078125, -0.041290283203125, 0.023651123046875, 0.047149658203125, 0.0167694091796875, -0.050537109375, 0.0288543701171875, -0.00928497314453125, 0.00771331787109375, 0.059234619140625, 0.036895751953125, -0.031951904296875, 0.035430908203125, -0.028656005859375, -0.01580810546875, 0.07928466796875, 0.0207672119140625, 0.005413055419921875, -0.0162200927734375, -0.01480865478515625, 0.048980712890625, -0.0023040771484375, 0.006725311279296875, 0.00957489013671875, -0.034820556640625, -0.0273895263671875, 0.00634765625, 0.031829833984375, -0.0362548828125, -0.0216217041015625, 0.03802490234375, 0.039154052734375, 0.020111083984375, -0.04150390625, -0.0017824172973632812, -0.00705718994140625, 0.00907135009765625, 0.0310516357421875, -0.0198822021484375, -0.07958984375, -0.0194549560546875, 0.01259613037109375, -0.045684814453125, 0.0125274658203125, 0.005695343017578125, 0.035003662109375, -0.005214691162109375, -0.0709228515625, 0.027252197265625, -0.0406494140625, 0.0012235641479492188, -0.005462646484375, 0.00010848045349121094, -0.0229644775390625, -0.04241943359375, -0.00609588623046875, 0.044677734375, 0.024871826171875, -0.047698974609375, -0.0218963623046875, 0.01806640625, -0.063232421875, -0.06298828125, 0.01436614990234375, -0.0073089599609375, 0.00902557373046875, 0.00849151611328125, 0.0015583038330078125, -0.003448486328125, 0.0115966796875, -0.0145263671875, 0.00234222412109375, -0.003101348876953125, 0.013671875, -0.0015268325805664062, 0.0264739990234375, -0.01032257080078125, 0.007633209228515625, -0.01580810546875, -0.048797607421875, 0.009765625, -0.0193328857421875, -0.07012939453125, 0.056854248046875, -0.0154266357421875, 0.028167724609375, 0.04351806640625, -0.0126495361328125, 0.0682373046875, -0.000013530254364013672, -0.0168609619140625, 0.012786865234375, 0.026397705078125, -0.019927978515625, -0.010711669921875, -0.00812530517578125, -0.0008955001831054688, -0.0311737060546875, -0.050811767578125, 0.04437255859375, -0.0188446044921875, 0.038482666015625, -0.0152587890625, 0.0304107666015625, -0.0171661376953125, 0.044158935546875, 0.00455474853515625, 0.005695343017578125, 0.003856658935546875, -0.0264434814453125, 0.0014495849609375, -0.01319122314453125, -0.023712158203125, 0.00899505615234375, -0.0556640625, -0.0009427070617675781, 0.00164794921875, 0.0207061767578125, -0.015838623046875, 0.0101470947265625, -0.021484375, -0.039947509765625, 0.076904296875, 0.01010894775390625, -0.0236053466796875, -0.0217437744140625, 0.044830322265625, 0.010650634765625, -0.04638671875, 0.042266845703125, 0.036895751953125, 0.0312042236328125, -0.0158538818359375, 0.004547119140625, 0.0021915435791015625, -0.07635498046875, -0.01035308837890625, 0.057098388671875, 0.031097412109375, 0.0648193359375, -0.0227203369140625, -0.01213836669921875, 0.04266357421875, -0.028839111328125, 0.0072784423828125, -0.01471710205078125, -0.03759765625, 0.016387939453125, 0.050262451171875, 0.024169921875, -0.01027679443359375, -0.01230621337890625, -0.006649017333984375, 0.00994110107421875, -0.0290069580078125, 0.01131439208984375, -0.0186004638671875, 0.0147857666015625, -0.0006351470947265625, -0.0278778076171875, 0.0249786376953125, -0.0229339599609375, -0.01837158203125, 0.004932403564453125, 0.0242767333984375, 0.0301971435546875, 0.01293182373046875, -0.033721923828125, 0.01508331298828125, 0.0018663406372070312, -0.0021305084228515625, 0.0313720703125, 0.0005645751953125, -0.00797271728515625, -0.018280029296875, -0.00746917724609375, -0.0131378173828125, -0.001483917236328125, -0.0123748779296875, 0.0091552734375, -0.00005227327346801758, -0.0189666748046875, 0.03399658203125, -0.0301055908203125, -0.01268768310546875, -0.0239105224609375, 0.0027294158935546875, -0.0232391357421875, 0.0183563232421875, -0.029998779296875, -0.042327880859375, 0.0204925537109375, -0.009521484375, -0.050933837890625, 0.02166748046875, 0.03607177734375, -0.01319122314453125, -0.00921630859375, 0.01275634765625, 0.0205230712890625, -0.0295562744140625, -0.0004057884216308594, 0.0164031982421875, -0.0196990966796875, 0.005893707275390625, 0.00315093994140625, 0.001743316650390625, 0.01512908935546875, -0.03790283203125, 0.037322998046875, 0.0159149169921875, -0.016632080078125, 0.038543701171875, -0.0279541015625, 0.0095977783203125, -0.012115478515625, -0.0787353515625, -0.08551025390625, 0.0185699462890625, -0.023773193359375, -0.00653839111328125, 0.018310546875, -0.0213470458984375, -0.017730712890625, 0.058502197265625, 0.010345458984375, -0.0027713775634765625, -0.005584716796875, -0.01128387451171875, -0.0263519287109375, -0.013458251953125, -0.042236328125, -0.01971435546875, -0.036224365234375, 0.0013017654418945312, 0.04266357421875, 0.002040863037109375, -0.0210113525390625, 0.0100555419921875, -0.00577545166015625, -0.009033203125, 0.0001404285430908203, 0.022491455078125, -0.006011962890625, 0.004390716552734375, 0.0141143798828125, 0.0306549072265625, 0.022857666015625, -0.03326416015625, -0.0277099609375, -0.0289154052734375, 0.0162811279296875, 0.018310546875, 0.034912109375, 0.0303802490234375, 0.0153656005859375, 0.0234222412109375, -0.0278778076171875, -0.062744140625, 0.025848388671875, -0.038238525390625, 0.06329345703125, -0.0030078887939453125, -0.0167388916015625, 0.01947021484375, 0.05670166015625, -0.0295867919921875, 0.003528594970703125, -0.003162384033203125, 0.01007843017578125, -0.01800537109375, -0.0275421142578125, -0.0498046875, 0.01317596435546875, 0.037872314453125, -0.025115966796875, -0.00431060791015625, 0.005725860595703125, 0.0015344619750976562, 0.02252197265625, -0.05389404296875, 0.006786346435546875, -0.07830810546875, 0.0159454345703125, -0.06396484375, 0.034912109375, -0.056884765625, -0.01070404052734375, 0.00940704345703125, 0.107666015625, 0.0008616447448730469, -0.038177490234375, -0.003490447998046875, 0.0247039794921875, -0.01454925537109375, -0.0251922607421875, 0.0176239013671875, -0.01488494873046875, 0.0006251335144042969, -0.00482940673828125, 0.0081329345703125, -0.00592041015625, -0.054473876953125, 0.11004638671875, -0.053741455078125, 0.01488494873046875, 0.034332275390625, -0.038421630859375, -0.01410675048828125, 0.04443359375, -0.018798828125, 0.01513671875, -0.0264129638671875, -0.02105712890625, -0.058929443359375, -0.00594329833984375, -0.0124969482421875, 0.023956298828125, 0.007659912109375, -0.019287109375, 0.0025272369384765625, 0.020782470703125, 0.048248291015625, -0.0034847259521484375, 0.02813720703125, -0.0265350341796875, 0.03466796875, -0.020660400390625, 0.00641632080078125, -0.035797119140625, 0.0085296630859375, -0.045166015625, -0.044189453125, -0.00847625732421875, -0.03460693359375, 0.048187255859375, -0.022216796875, -0.0081939697265625, -0.0244140625, -0.0196380615234375, -0.010650634765625, 0.0223846435546875, -0.001529693603515625, 0.0007810592651367188, -0.02783203125, -0.021148681640625, -0.053863525390625, -0.0010528564453125, -0.048980712890625, 0.0302276611328125, -0.016021728515625, 0.046051025390625, 0.0006823539733886719, -0.01099395751953125, -0.0013608932495117188, 0.0016698837280273438, -0.0153045654296875, 0.0518798828125, 0.01235198974609375, 0.01355743408203125, 0.00368499755859375, -0.0182647705078125, 0.01580810546875, -0.0269622802734375, 0.045501708984375, -0.0027561187744140625, -0.015533447265625, 0.022491455078125, -0.01363372802734375, 0.004730224609375, 0.01522064208984375, -0.039459228515625, 0.0055694580078125, -0.05303955078125, 0.0286865234375, -0.013153076171875, 0.04248046875, -0.032379150390625, -0.00978851318359375, -0.00579071044921875, 0.01169586181640625, 0.05999755859375, 0.0465087890625, -0.004322052001953125, 0.011444091796875, 0.0268707275390625, 0.0157012939453125, 0.07427978515625, 0.052825927734375, 0.018768310546875, 0.04132080078125, 0.0352783203125, 0.00772857666015625, -0.00836944580078125, -0.009246826171875, 0.06475830078125, 0.03668212890625, -0.00662994384765625, -0.032318115234375, -0.005527496337890625, 0.00560760498046875, -0.0302886962890625, 0.028961181640625, 0.0289764404296875, -0.038543701171875, 0.0038394927978515625, 0.002071380615234375, 0.01084136962890625, -0.044921875, -0.007083892822265625, 0.007171630859375, 0.00936126708984375, -0.018829345703125, 0.0316162109375, 0.003997802734375, -0.01093292236328125, 0.0167999267578125, -0.023834228515625, -0.01250457763671875, 0.0218505859375, 0.01105499267578125, 0.02606201171875, 0.00814056396484375, -0.037689208984375, 0.0299072265625, 0.0169525146484375, 0.0272216796875, -0.0247802734375, -0.006076812744140625, -0.0005702972412109375, -0.0273590087890625, 0.0268402099609375, 0.01000213623046875, 0.0003924369812011719, -0.029876708984375, 0.037628173828125, 0.036346435546875, -0.055755615234375, -0.0014209747314453125, 0.006336212158203125, -0.0184173583984375, -0.01849365234375, -0.00316619873046875, 0.04974365234375, 0.04296875, 0.0660400390625, -0.0299072265625, -0.01387786865234375, 0.0199127197265625, 0.047393798828125, -0.0594482421875, -0.020599365234375, 0.0145111083984375, -0.060760498046875, -0.0380859375, 0.0006480216979980469, -0.0084075927734375, -0.0027484893798828125, -0.01016998291015625, 0.0596923828125, -0.03143310546875, -0.0201568603515625, -0.04071044921875, 0.004364013671875, 0.0264129638671875, 0.01448822021484375, -0.01076507568359375, -0.007640838623046875, -0.049835205078125, -0.01428985595703125, -0.0491943359375, -0.03765869140625, -0.026947021484375, 0.00650787353515625, -0.00839996337890625, 0.027618408203125, 0.01438140869140625, 0.035125732421875, 0.005222320556640625, 0.011627197265625, -0.030029296875, 0.0079345703125, 0.0283050537109375, 0.0633544921875, -0.0290985107421875, 0.061279296875, 0.033447265625, 0.039642333984375, -0.0305023193359375, -0.041015625, 0.0279693603515625, -0.07208251953125, -0.02447509765625, -0.0178985595703125, -0.057647705078125, -0.007389068603515625, -0.00878143310546875, -0.0137481689453125, 0.0227203369140625, -0.00020694732666015625, 0.0011835098266601562, -0.0118865966796875, -0.01099395751953125, -0.0005316734313964844, 0.016265869140625, 0.02294921875, -0.0239105224609375, 0.01751708984375, -0.01026153564453125, -0.01666259765625, 0.04766845703125, -0.0286865234375, 0.048065185546875, 0.0141143798828125, -0.06353759765625, 0.062347412109375, 0.0634765625, -0.007465362548828125, 0.02020263671875, 0.01708984375, 0.0027332305908203125, 0.010162353515625, -0.0239410400390625, -0.0222320556640625, -0.00420379638671875, 0.08441162109375, 0.0186767578125, 0.0054473876953125, 0.0927734375, -0.0291595458984375, 0.07391357421875, 0.06427001953125, 0.10906982421875, -0.0743408203125, 0.00830078125, 0.0184173583984375, -0.05206298828125, 0.051177978515625, -0.01348876953125, 0.0255279541015625, -0.003292083740234375, 0.03271484375, 0.01001739501953125, -0.0019445419311523438, 0.01690673828125, -0.0176239013671875, -0.03887939453125, -0.0290679931640625, -0.034393310546875, 0.01751708984375, 0.067626953125, 0.03143310546875, -0.05426025390625, 0.040130615234375, -0.01207733154296875, 0.0027008056640625, -0.0093536376953125, -0.015899658203125, -0.0185699462890625, 0.042388916015625, -0.043487548828125, 0.03546142578125, 0.046783447265625, 0.046142578125, 0.0030612945556640625, 0.043365478515625, 0.0031490325927734375, 0.025390625, 0.00508880615234375, 0.0032596588134765625, -0.01093292236328125, 0.00038814544677734375, 0.01280975341796875, -0.00823211669921875, -0.0465087890625, -0.002704620361328125, -0.0704345703125, 0.0206756591796875, 0.00298309326171875, 0.0032939910888671875, 0.060302734375, -0.056640625, -0.004413604736328125, 0.01561737060546875, -0.006443023681640625, 0.004375457763671875, -0.01375579833984375, 0.034912109375, -0.02447509765625, 0.0182342529296875, 0.00435638427734375, 0.02197265625, -0.03009033203125, -0.0121612548828125, -0.05322265625, 0.07086181640625, 0.0100250244140625, 0.0107574462890625, -0.002582550048828125, 0.0239715576171875, -0.01776123046875, 0.01451873779296875, -0.04193115234375, 0.05291748046875, -0.0024204254150390625, 0.042633056640625, -0.03302001953125, 0.0181427001953125, 0.0120849609375, -0.0011167526245117188, 0.007144927978515625, -0.00466156005859375, 0.0115203857421875, -0.0145721435546875, 0.006099700927734375, 0.004497528076171875, -0.005542755126953125, 0.0017518997192382812, -0.006046295166015625, -0.005046844482421875, 0.05303955078125, -0.007610321044921875, 0.0360107421875, -0.0152435302734375, -0.010040283203125, -0.00213623046875, -0.0191497802734375, -0.04107666015625, -0.00713348388671875, 0.006389617919921875, 0.005405426025390625, -0.02984619140625, -0.0195159912109375, -0.002490997314453125, 0.0137481689453125, 0.012786865234375, -0.017791748046875, 0.0281982421875, -0.0228271484375, 0.006988525390625, 0.0099639892578125, -0.00621795654296875, 0.047454833984375, 0.037567138671875, 0.0242767333984375, 0.0369873046875, 0.018798828125, 0.0276641845703125, 0.03900146484375, -0.0289764404296875, 0.03961181640625, 0.039886474609375, 0.035858154296875, -0.031890869140625, -0.06195068359375, 0.025238037109375, 0.06298828125, -0.01399993896484375, 0.007175445556640625, 0.01824951171875, 0.01555633544921875, 0.004863739013671875, -0.0192413330078125, 0.0254058837890625, -0.075927734375, -0.03887939453125, -0.015594482421875, 0.01239776611328125, 0.0178680419921875, -0.01079559326171875, -0.01157379150390625, 0.0095672607421875, -0.00960540771484375, 0.0216064453125, -0.028350830078125, 0.023712158203125, 0.018402099609375, 0.02203369140625, -0.027435302734375, 0.0771484375, 0.0022449493408203125, -0.00598907470703125, -0.027069091796875, 0.042022705078125, 0.00496673583984375, 0.0498046875, -0.0638427734375, -0.044525146484375, 0.047821044921875, 0.0394287109375, 0.0036411285400390625, 0.032318115234375, 0.015533447265625, -0.00858306884765625, 0.008758544921875, 0.0104522705078125, 0.043609619140625, -0.032440185546875, -0.058868408203125, -0.03912353515625, 0.0197906494140625, 0.0501708984375, 0.0282745361328125, 0.0182952880859375, 0.0025463104248046875, 0.04766845703125, 0.01239013671875, -0.0141143798828125, 0.00616455078125, -0.04302978515625, 0.044647216796875, -0.01157379150390625, 0.078125, 0.0275115966796875, -0.0528564453125, -0.02105712890625, -0.036529541015625, -0.0139617919921875, 0.04351806640625, 0.044677734375, 0.01043701171875, 0.005077362060546875, 0.04443359375, 0.0120697021484375, -0.00576019287109375, -0.0026226043701171875, 0.0099029541015625, -0.0001195073127746582, 0.0250091552734375, 0.0191650390625, -0.043670654296875, -0.0175323486328125, 0.0165557861328125, -0.000469207763671875, -0.0231170654296875, 0.002841949462890625, 0.0228118896484375, -0.007373809814453125, -0.0263519287109375, 0.024810791015625, -0.031951904296875, -0.049163818359375, 0.049407958984375, 0.0170745849609375, 0.0008549690246582031, -0.0136871337890625, -0.06695556640625, 0.0012254714965820312, 0.03704833984375, -0.033477783203125, 0.0152587890625, 0.0203704833984375, 0.00826263427734375, -0.049835205078125, -0.0267486572265625, -0.012908935546875, 0.040313720703125, 0.05078125, -0.02532958984375, 0.021514892578125, -0.0384521484375, 0.0007910728454589844, 0.017059326171875, -0.044036865234375, -0.03253173828125, -0.0005116462707519531, -0.02410888671875, -0.03485107421875, 0.00768280029296875, -0.0007839202880859375, 0.03662109375, 0.055389404296875, -0.01043701171875, 0.0283355712890625, 0.016571044921875, -0.021636962890625, 0.057952880859375, -0.07843017578125, 0.0198974609375, 0.0027332305908203125, 0.0032863616943359375, -0.04412841796875, -0.019195556640625, 0.04022216796875, -0.01027679443359375, -0.018157958984375, 0.0191802978515625, -0.00934600830078125, -0.00585174560546875, -0.00563812255859375, 0.00855255126953125, 0.0107269287109375, 0.0019130706787109375, -0.02130126953125, 0.0018520355224609375, 0.0015249252319335938, 0.019622802734375, -0.04766845703125, 0.040008544921875, 0.0092010498046875, -0.0272979736328125, -0.0012102127075195312, -0.01271820068359375, -0.00829315185546875, -0.0078887939453125, -0.046966552734375, -0.0020885467529296875, -0.058197021484375, -0.0074462890625, -0.0307159423828125, 0.0263214111328125, 0.032073974609375, -0.040313720703125, 0.011016845703125, 0.018096923828125, 0.04583740234375, 0.0750732421875, 0.035797119140625, -0.032989501953125, -0.01093292236328125, -0.0177154541015625, 0.037017822265625, 0.0235443115234375, 0.0057525634765625, -0.0171966552734375, -0.048370361328125, 0.02178955078125, -0.025848388671875, 0.0027446746826171875, -0.0269927978515625, -0.0137176513671875, 0.0291290283203125, 0.035614013671875, -0.0305328369140625, -0.0186767578125, -0.03521728515625, -0.016082763671875, 0.045166015625, -0.011993408203125, 0.01285552978515625, -0.0160064697265625, 0.048553466796875, 0.0241851806640625, 0.04974365234375, 0.01515960693359375, -0.005863189697265625, -0.00567626953125, 0.0219879150390625, 0.008880615234375, 0.0240478515625, -0.0190277099609375, -0.017303466796875, 0.036041259765625, 0.03826904296875, -0.01094818115234375, -0.02178955078125, 0.0212554931640625, -0.0008149147033691406, -0.0208282470703125, 0.0166473388671875, 0.0000022649765014648438, 0.024200439453125, 0.033538818359375, 0.060150146484375, 0.0132904052734375, -0.054046630859375, 0.0191192626953125, -0.019287109375, 0.01800537109375, -0.020721435546875, 0.0021533966064453125, -0.06964111328125, -0.03607177734375, 0.0311279296875, -0.02423095703125, 0.01458740234375, -0.008148193359375, -0.03363037109375, 0.0128631591796875, 0.040557861328125, 0.00782012939453125, -0.047210693359375, -0.04913330078125, 0.07244873046875, -0.03839111328125, -0.01154327392578125, 0.0160675048828125, 0.035736083984375, 0.00891876220703125, 0.036956787109375, -0.0250091552734375, -0.02056884765625, -0.0254974365234375, 0.0292816162109375, -0.020660400390625, 0.026824951171875, -0.0210418701171875, 0.0025691986083984375, 0.0012979507446289062, 0.0465087890625, 0.0092315673828125, 0.05914306640625, -0.0225982666015625, 0.09320068359375, 0.02789306640625, 0.04241943359375, 0.002765655517578125, 0.05120849609375, 0.0068206787109375, 0.0300750732421875, -0.01849365234375, -0.01312255859375, 0.00664520263671875, -0.04925537109375, -0.01360321044921875, 0.01319122314453125, -0.042205810546875, -0.057525634765625, 0.0638427734375, -0.041473388671875, -0.004154205322265625, 0.046783447265625 ]
6eb02b2f055a31f60f255d2fda112f8876b5ede3
Wordpress Stackexchange Q: why doesnt is_home() work in functions.php I'm pulling in scripts.php through functions.php. this is in scripts.php but for some reason, wordpress isn't recognizing is_home(). i've tried resetting the query, but to no avail. Am I hooking into the right function? if(is_home()){ function my_scripts_method2() { wp_register_script('cycle', get_template_directory_uri() . '/js/cycle.js', array('jquery')); wp_enqueue_script('cycle'); } add_action('wp_enqueue_scripts', 'my_scripts_method2'); function my_scripts_method() { wp_register_script('homepage', get_template_directory_uri() . '/js/homepage.js', 'cycle'); wp_enqueue_script('homepage'); } add_action('wp_enqueue_scripts', 'my_scripts_method'); } A: At the time functions.php is included during bootup, WordPress has no idea on the contents of the query, and doesn't know the nature of the page. is_home will return false. Wrap the code in a function and have it triggered by the wp hook, which comes after the global query object has been hydrated with data. add_action( 'wp', 'wpse47305_check_home' ); function wpse47305_check_home() { if ( is_home() ) add_action( 'wp_enqueue_scripts', 'my_scripts' ); } function my_scripts() { ... } The wp_enqueue_scripts action runs after wp. http://codex.wordpress.org/Plugin_API/Action_Reference#Actions_Run_During_a_Typical_Request
Q: why doesnt is_home() work in functions.php I'm pulling in scripts.php through functions.php. this is in scripts.php but for some reason, wordpress isn't recognizing is_home(). i've tried resetting the query, but to no avail. Am I hooking into the right function? if(is_home()){ function my_scripts_method2() { wp_register_script('cycle', get_template_directory_uri() . '/js/cycle.js', array('jquery')); wp_enqueue_script('cycle'); } add_action('wp_enqueue_scripts', 'my_scripts_method2'); function my_scripts_method() { wp_register_script('homepage', get_template_directory_uri() . '/js/homepage.js', 'cycle'); wp_enqueue_script('homepage'); } add_action('wp_enqueue_scripts', 'my_scripts_method'); } A: At the time functions.php is included during bootup, WordPress has no idea on the contents of the query, and doesn't know the nature of the page. is_home will return false. Wrap the code in a function and have it triggered by the wp hook, which comes after the global query object has been hydrated with data. add_action( 'wp', 'wpse47305_check_home' ); function wpse47305_check_home() { if ( is_home() ) add_action( 'wp_enqueue_scripts', 'my_scripts' ); } function my_scripts() { ... } The wp_enqueue_scripts action runs after wp. http://codex.wordpress.org/Plugin_API/Action_Reference#Actions_Run_During_a_Typical_Request A: try with $_SERVER[REQUEST_URI] . It works for me ;) In my case I have this script for charging the enqueue scripts only on the front: if ($_SERVER[REQUEST_URI]=='/'){ add_action('wp_enqueue_scripts', '***********'); } echo the $_SERVER[REQUEST_URI] and you'll see his value for each page you are so you can work with it ;)
wordpress
{ "language": "en", "length": 203, "provenance": "stackexchange_00019.jsonl.gz:418545", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47303" }
[ 0.037994384765625, 0.0310516357421875, -0.018157958984375, -0.0092010498046875, 0.03564453125, -0.048126220703125, 0.022796630859375, -0.045928955078125, 0.0057830810546875, -0.003261566162109375, -0.059722900390625, 0.0011129379272460938, -0.035552978515625, -0.0178375244140625, -0.00496673583984375, -0.06268310546875, 0.0689697265625, -0.04290771484375, 0.0086822509765625, -0.004657745361328125, -0.00724029541015625, 0.03570556640625, -0.0006680488586425781, 0.11370849609375, 0.0220489501953125, -0.049713134765625, 0.11236572265625, 0.006038665771484375, 0.0300140380859375, 0.0012273788452148438, 0.01953125, -0.039581298828125, 0.0184478759765625, 0.0191650390625, -0.02130126953125, -0.01605224609375, 0.023529052734375, -0.002964019775390625, -0.0021266937255859375, 0.033935546875, 0.03973388671875, -0.030975341796875, -0.0215911865234375, 0.024688720703125, -0.0238037109375, -0.0256805419921875, 0.029541015625, -0.004077911376953125, 0.01116943359375, 0.03521728515625, -0.015899658203125, -0.0204925537109375, -0.016143798828125, 0.01084136962890625, 0.01424407958984375, 0.0292816162109375, -0.02056884765625, -0.01203155517578125, 0.0204315185546875, 0.00997161865234375, -0.00482940673828125, -0.0255279541015625, 0.027008056640625, -0.026336669921875, -0.029022216796875, -0.003864288330078125, -0.007648468017578125, 0.01276397705078125, -0.052947998046875, -0.038482666015625, 0.022857666015625, -0.024993896484375, -0.005496978759765625, 0.00708770751953125, -0.040252685546875, -0.0026092529296875, -0.00746917724609375, -0.0271148681640625, 0.03045654296875, 0.0037593841552734375, 0.00428009033203125, -0.0213470458984375, -0.057281494140625, 0.032562255859375, -0.0158538818359375, 0.057037353515625, -0.00945281982421875, -0.0322265625, -0.048614501953125, -0.002544403076171875, -0.0248870849609375, -0.055511474609375, -0.01221466064453125, -0.03076171875, -0.0007996559143066406, -0.020477294921875, 0.042633056640625, 0.049896240234375, -0.042694091796875, -0.00830841064453125, -0.005100250244140625, -0.0303192138671875, 0.0214996337890625, -0.0263671875, 0.0152587890625, 0.043792724609375, -0.007144927978515625, -0.03375244140625, 0.02069091796875, 0.0132904052734375, 0.01971435546875, -0.010894775390625, -0.026580810546875, -0.0251312255859375, -0.0280914306640625, 0.0024127960205078125, -0.05670166015625, -0.022735595703125, -0.005924224853515625, -0.017578125, 0.00774383544921875, 0.0181884765625, 0.027557373046875, -0.0258026123046875, 0.022125244140625, 0.00040602684020996094, -0.027252197265625, -0.0281219482421875, -0.007648468017578125, 0.033599853515625, -0.01959228515625, 0.0231781005859375, 0.04449462890625, -0.021087646484375, -0.04718017578125, -0.01910400390625, 0.058624267578125, 0.01476287841796875, 0.001796722412109375, 0.00475311279296875, 0.017364501953125, -0.0478515625, -0.045166015625, 0.0253448486328125, -0.0011720657348632812, 0.0133819580078125, 0.03692626953125, 0.0172271728515625, -0.0195465087890625, -0.01053619384765625, 0.0231170654296875, -0.032470703125, 0.01334381103515625, 0.03167724609375, -0.003993988037109375, -0.0016202926635742188, 0.043701171875, -0.0102996826171875, -0.006656646728515625, -0.036529541015625, -0.00841522216796875, -0.015716552734375, 0.002658843994140625, -0.0517578125, -0.042144775390625, 0.001041412353515625, -0.025115966796875, -0.00308990478515625, 0.0222015380859375, 0.05023193359375, 0.02685546875, -0.01568603515625, 0.0277252197265625, 0.00675201416015625, -0.0341796875, -0.01212310791015625, -0.0095062255859375, 0.011138916015625, 0.037261962890625, 0.0318603515625, -0.01397705078125, -0.029266357421875, 0.06256103515625, -0.03314208984375, -0.048675537109375, 0.0286407470703125, 0.01361846923828125, 0.03271484375, -0.0012235641479492188, 0.003223419189453125, 0.07086181640625, 0.04498291015625, -0.034088134765625, 0.0220794677734375, -0.00835418701171875, -0.016998291015625, 0.00901031494140625, -0.00701904296875, -0.010589599609375, 0.007015228271484375, 0.0675048828125, -0.003993988037109375, 0.018096923828125, -0.032318115234375, -0.08123779296875, 0.01165008544921875, -0.030120849609375, 0.0262908935546875, 0.0293731689453125, 0.04998779296875, -0.000751495361328125, 0.04791259765625, -0.033782958984375, -0.032623291015625, -0.0328369140625, 0.0182952880859375, -0.036163330078125, 0.05499267578125, -0.034637451171875, 0.0322265625, -0.033966064453125, -0.039306640625, -0.01430511474609375, -0.0000597834587097168, 0.00885772705078125, -0.019989013671875, -0.0244598388671875, -0.01030731201171875, -0.0215606689453125, 0.00815582275390625, -0.032073974609375, 0.052520751953125, 0.028961181640625, 0.044219970703125, -0.0273284912109375, -0.02777099609375, -0.0233001708984375, -0.035675048828125, 0.015655517578125, 0.040802001953125, 0.03173828125, 0.0231781005859375, -0.0241851806640625, -0.01910400390625, 0.029022216796875, -0.0675048828125, -0.009979248046875, -0.0017080307006835938, -0.01331329345703125, 0.021087646484375, -0.05426025390625, 0.036285400390625, 0.0279693603515625, -0.0556640625, -0.0224609375, 0.07012939453125, 0.003772735595703125, 0.03759765625, -0.04644775390625, -0.00933074951171875, 0.01129150390625, -0.0214996337890625, -0.031219482421875, -0.00023186206817626953, 0.031402587890625, -0.015045166015625, 0.01171112060546875, 0.0083465576171875, 0.01338958740234375, -0.005985260009765625, -0.01511383056640625, -0.0341796875, 0.005001068115234375, 0.04901123046875, 0.06768798828125, -0.048797607421875, -0.036102294921875, -0.0228424072265625, -0.005218505859375, 0.0182342529296875, -0.00655364990234375, 0.03363037109375, -0.0235748291015625, -0.017669677734375, -0.0117340087890625, -0.037353515625, 0.0087432861328125, 0.00965118408203125, 0.07720947265625, 0.0195159912109375, 0.04583740234375, 0.01702880859375, -0.01247406005859375, 0.073486328125, 0.01105499267578125, -0.03717041015625, 0.0245208740234375, 0.0074005126953125, 0.0020599365234375, -0.00536346435546875, 0.0343017578125, 0.038848876953125, -0.01000213623046875, -0.00453948974609375, 0.0006189346313476562, -0.007144927978515625, 0.0270538330078125, -0.0227508544921875, -0.031280517578125, 0.0114898681640625, -0.07440185546875, 0.0020809173583984375, 0.01751708984375, 0.0560302734375, 0.019256591796875, -0.051361083984375, 0.026092529296875, 0.016387939453125, -0.075927734375, -0.131591796875, -0.009613037109375, -0.0297393798828125, 0.05743408203125, -0.009124755859375, 0.007232666015625, -0.03375244140625, -0.017242431640625, 0.0146484375, -0.056610107421875, -0.035125732421875, -0.005619049072265625, -0.055908203125, -0.0222625732421875, 0.0235595703125, 0.02020263671875, -0.00312042236328125, 0.011077880859375, 0.03997802734375, 0.01377105712890625, -0.041534423828125, 0.01141357421875, 0.031585693359375, -0.018096923828125, 0.0016765594482421875, -0.0248565673828125, 0.0031795501708984375, -0.00041937828063964844, 0.01187896728515625, -0.037994384765625, -0.007080078125, 0.0108184814453125, -0.01346588134765625, -0.0208740234375, -0.02044677734375, 0.0174713134765625, 0.018402099609375, 0.0174102783203125, 0.0081787109375, 0.040740966796875, -0.0280303955078125, -0.033599853515625, 0.0145263671875, -0.045806884765625, 0.03204345703125, 0.028594970703125, -0.018707275390625, 0.02105712890625, -0.0027923583984375, 0.02978515625, 0.0063018798828125, 0.029205322265625, 0.00887298583984375, 0.013824462890625, -0.01230621337890625, 0.00975799560546875, -0.0307159423828125, 0.04840087890625, -0.0030651092529296875, -0.0440673828125, -0.0004565715789794922, -0.01206207275390625, -0.02081298828125, -0.00737762451171875, -0.05169677734375, -0.0034122467041015625, 0.0032901763916015625, -0.004184722900390625, 0.028564453125, -0.009429931640625, 0.002468109130859375, 0.004505157470703125, 0.043731689453125, -0.056976318359375, -0.01500701904296875, 0.0254364013671875, 0.021942138671875, -0.048858642578125, -0.0076141357421875, -0.0513916015625, 0.00215911865234375, -0.031097412109375, 0.0197296142578125, -0.01331329345703125, -0.01183319091796875, -0.0230255126953125, 0.008636474609375, -0.0193328857421875, -0.03155517578125, 0.044189453125, -0.03900146484375, 0.0088043212890625, 0.006313323974609375, 0.00458526611328125, -0.033843994140625, -0.0104522705078125, -0.036407470703125, -0.093505859375, -0.0133514404296875, -0.058563232421875, 0.06951904296875, 0.048187255859375, -0.046966552734375, -0.033538818359375, 0.03155517578125, 0.0108642578125, 0.02642822265625, 0.0247955322265625, -0.005901336669921875, 0.05133056640625, -0.032073974609375, -0.00966644287109375, -0.0277099609375, 0.01361083984375, 0.016265869140625, -0.0408935546875, -0.022247314453125, -0.037811279296875, -0.026763916015625, 0.04034423828125, -0.040679931640625, -0.0010194778442382812, -0.026336669921875, -0.020782470703125, -0.0241241455078125, -0.0212860107421875, -0.0153350830078125, -0.0082550048828125, -0.01038360595703125, 0.0284576416015625, -0.0237579345703125, -0.01355743408203125, -0.0004208087921142578, 0.04559326171875, 0.0294647216796875, -0.01367950439453125, 0.02410888671875, 0.02008056640625, -0.002410888671875, 0.01181793212890625, 0.04986572265625, -0.0046844482421875, -0.00701904296875, 0.0452880859375, -0.0128021240234375, 0.0024433135986328125, 0.0010290145874023438, 0.05194091796875, 0.035675048828125, -0.00487518310546875, 0.00004291534423828125, 0.0513916015625, -0.033172607421875, 0.005687713623046875, 0.01531219482421875, -0.06298828125, 0.017242431640625, 0.054107666015625, -0.0364990234375, 0.05816650390625, -0.0272064208984375, -0.0214385986328125, -0.0033779144287109375, 0.01261138916015625, 0.052764892578125, 0.0243682861328125, 0.0081329345703125, 0.013641357421875, 0.03717041015625, 0.0110931396484375, -0.025115966796875, 0.0173797607421875, -0.04229736328125, 0.052642822265625, -0.06201171875, -0.006725311279296875, -0.012481689453125, -0.0018205642700195312, 0.0272216796875, -0.033203125, -0.06787109375, -0.02398681640625, -0.03375244140625, 0.0289154052734375, 0.0302581787109375, 0.0224151611328125, 0.0299224853515625, 0.01136016845703125, -0.03143310546875, -0.02801513671875, 0.0060882568359375, -0.00447845458984375, -0.047576904296875, 0.0039005279541015625, -0.0294952392578125, 0.0068511962890625, 0.0021762847900390625, 0.042633056640625, 0.0266265869140625, 0.0229644775390625, -0.0316162109375, -0.013336181640625, 0.002811431884765625, 0.040313720703125, 0.0204315185546875, -0.01396942138671875, 0.0172882080078125, 0.0186309814453125, 0.049835205078125, -0.01354217529296875, 0.006961822509765625, 0.0307464599609375, 0.0135345458984375, 0.01230621337890625, -0.0036487579345703125, 0.00020062923431396484, 0.006237030029296875, -0.0343017578125, 0.05987548828125, 0.034271240234375, -0.0423583984375, -0.05450439453125, -0.0312347412109375, 0.032440185546875, 0.023590087890625, 0.0005164146423339844, 0.0172119140625, -0.0023593902587890625, 0.039215087890625, 0.01541900634765625, -0.0159759521484375, 0.0231475830078125, 0.01641845703125, -0.03375244140625, -0.0096893310546875, 0.00988006591796875, -0.01386260986328125, 0.0028438568115234375, -0.01776123046875, -0.049560546875, 0.00907135009765625, -0.005985260009765625, 0.03350830078125, -0.030914306640625, -0.03118896484375, 0.0218505859375, 0.001674652099609375, 0.0701904296875, 0.033416748046875, -0.07098388671875, -0.023162841796875, -0.0292816162109375, -0.007724761962890625, -0.006824493408203125, -0.03411865234375, -0.032745361328125, 0.009490966796875, -0.00635528564453125, 0.0167083740234375, -0.01336669921875, -0.038177490234375, -0.0265045166015625, 0.0002627372741699219, 0.0191192626953125, 0.00644683837890625, -0.042144775390625, 0.10662841796875, 0.0115966796875, 0.01544952392578125, 0.0041961669921875, 0.06597900390625, 0.010345458984375, 0.0038776397705078125, -0.00441741943359375, -0.034454345703125, 0.016845703125, -0.0280303955078125, 0.002605438232421875, 0.002765655517578125, 0.0484619140625, 0.0006327629089355469, 0.0174407958984375, 0.0266265869140625, -0.01195526123046875, -0.007656097412109375, -0.021759033203125, 0.041534423828125, 0.0014820098876953125, 0.0223236083984375, -0.022369384765625, -0.039581298828125, -0.0207061767578125, -0.003574371337890625, 0.033447265625, -0.007411956787109375, 0.0013179779052734375, 0.0011234283447265625, -0.047271728515625, 0.055419921875, 0.059906005859375, 0.0215301513671875, 0.059539794921875, -0.01457977294921875, 0.0243988037109375, 0.02581787109375, 0.0341796875, -0.050048828125, -0.0267333984375, 0.0044708251953125, -0.0191192626953125, -0.018798828125, -0.01251220703125, -0.01313018798828125, -0.0029506683349609375, 0.016998291015625, 0.0347900390625, -0.052703857421875, 0.004680633544921875, 0.004497528076171875, 0.0027027130126953125, 0.025238037109375, -0.009857177734375, 0.02587890625, 0.017333984375, 0.07696533203125, 0.035980224609375, 0.0052337646484375, 0.06646728515625, -0.0017852783203125, -0.014495849609375, -0.0189971923828125, 0.0228118896484375, 0.0191802978515625, -0.0328369140625, 0.0305633544921875, 0.033447265625, -0.0023517608642578125, -0.02301025390625, 0.006683349609375, 0.014434814453125, -0.0296783447265625, -0.0657958984375, 0.01004791259765625, 0.0013866424560546875, -0.032684326171875, -0.01441192626953125, -0.008056640625, 0.018341064453125, 0.007617950439453125, -0.00449371337890625, -0.024932861328125, -0.0028820037841796875, -0.0182342529296875, -0.020050048828125, -0.003204345703125, 0.042327880859375, 0.036865234375, -0.04833984375, 0.0247802734375, -0.0238189697265625, -0.0009198188781738281, 0.0037670135498046875, -0.0712890625, 0.0082244873046875, -0.01534271240234375, -0.004627227783203125, -0.016357421875, -0.0257110595703125, 0.036407470703125, -0.0170135498046875, 0.0438232421875, -0.08013916015625, -0.06781005859375, 0.0270233154296875, -0.060577392578125, -0.0625, -0.040496826171875, -0.00836944580078125, 0.105712890625, -0.053375244140625, -0.00136566162109375, 0.01165771484375, 0.051513671875, 0.00600433349609375, 0.0521240234375, -0.0341796875, 0.0596923828125, 0.00501251220703125, 0.055511474609375, -0.0009899139404296875, 0.01247406005859375, 0.052093505859375, 0.003459930419921875, -0.004962921142578125, 0.004985809326171875, -0.021759033203125, -0.014190673828125, -0.00323486328125, 0.0297698974609375, 0.0101165771484375, 0.0242462158203125, -0.03240966796875, 0.00958251953125, 0.00475311279296875, -0.055419921875, 0.029510498046875, -0.042236328125, -0.0247955322265625, -0.01641845703125, -0.0007500648498535156, 0.0043182373046875, -0.03826904296875, -0.0274200439453125, -0.00031828880310058594, -0.010650634765625, -0.00888824462890625, 0.006313323974609375, -0.0226898193359375, 0.049896240234375, -0.0080108642578125, 0.0307769775390625, -0.00550079345703125, -0.0254058837890625, 0.0206146240234375, -0.018646240234375, 0.01055145263671875, 0.03240966796875, 0.0293426513671875, -0.01898193359375, 0.0137939453125, 0.01340484619140625, 0.023406982421875, -0.0276031494140625, 0.046844482421875, 0.050689697265625, 0.0302581787109375, 0.0272064208984375, 0.0386962890625, 0.0028285980224609375, 0.0501708984375, -0.044952392578125, -0.028778076171875, -0.020904541015625, 0.005008697509765625, 0.0179443359375, 0.0009675025939941406, 0.037261962890625, 0.038726806640625, 0.03704833984375, 0.0123748779296875, -0.00638580322265625, -0.003002166748046875, 0.00502777099609375, 0.007503509521484375, 0.006366729736328125, 0.0176239013671875, 0.01148223876953125, -0.04290771484375, 0.0223541259765625, 0.004268646240234375, 0.0679931640625, -0.00860595703125, 0.04901123046875, -0.046234130859375, -0.02288818359375, -0.044830322265625, 0.03955078125, -0.02130126953125, 0.042388916015625, -0.0919189453125, -0.055572509765625, 0.012786865234375, 0.06756591796875, 0.052886962890625, 0.046051025390625, 0.01593017578125, 0.003910064697265625, 0.0205841064453125, 0.037628173828125, 0.08880615234375, -0.0119171142578125, -0.0081787109375, -0.007160186767578125, 0.0256195068359375, 0.0199737548828125, -0.014251708984375, -0.001346588134765625, 0.07135009765625, 0.005596160888671875, -0.023162841796875, 0.01465606689453125, 0.00724029541015625, -0.0272216796875, 0.01221466064453125, 0.0265960693359375, 0.059356689453125, 0.01267242431640625, -0.006969451904296875, -0.0325927734375, 0.0164031982421875, 0.0294189453125, -0.006206512451171875, 0.041015625, 0.02874755859375, -0.00081634521484375, 0.058135986328125, -0.05084228515625, 0.0255279541015625, 0.038543701171875, -0.0125885009765625, -0.020111083984375, 0.029022216796875, -0.0149688720703125, -0.00746917724609375, 0.007328033447265625, -0.0033512115478515625, 0.01507568359375, 0.0085906982421875, 0.0706787109375, -0.0258941650390625, 0.0171051025390625, 0.052764892578125, 0.0384521484375, -0.01404571533203125, 0.00952911376953125, 0.0178680419921875, -0.0389404296875, 0.024932861328125, -0.0011386871337890625, -0.0465087890625, 0.004802703857421875, 0.0269012451171875, -0.00952911376953125, 0.033416748046875, -0.0271453857421875, 0.01183319091796875, -0.0248870849609375, 0.00466156005859375, -0.0340576171875, -0.040313720703125, -0.0218048095703125, 0.00659942626953125, 0.008148193359375, 0.0237274169921875, 0.0021839141845703125, 0.06488037109375, -0.010498046875, -0.03326416015625, 0.01482391357421875, -0.07354736328125, 0.00836181640625, 0.0133209228515625, 0.0264129638671875, 0.00991058349609375, 0.010986328125, -0.00753021240234375, 0.03668212890625, 0.01471710205078125, 0.0049285888671875, 0.0186614990234375, -0.0189971923828125, -0.0069427490234375, 0.00775146484375, 0.00959014892578125, -0.0182037353515625, -0.01052093505859375, 0.035736083984375, -0.0252532958984375, -0.022308349609375, -0.0667724609375, -0.02227783203125, -0.052581787109375, 0.01079559326171875, 0.019622802734375, -0.0038928985595703125, -0.0167083740234375, 0.0279693603515625, 0.0128326416015625, 0.01690673828125, -0.029022216796875, -0.01387786865234375, 0.007564544677734375, -0.07672119140625, 0.04608154296875, -0.028167724609375, 0.048095703125, -0.01239013671875, 0.001972198486328125, -0.051971435546875, 0.0133209228515625, -0.015289306640625, 0.01092529296875, 0.00855255126953125, 0.012969970703125, 0.036529541015625, -0.00323486328125, -0.048095703125, -0.00962066650390625, -0.0164031982421875, 0.0504150390625, 0.0017547607421875, -0.056549072265625, -0.00479888916015625, -0.00780487060546875, 0.037567138671875, 0.027313232421875, 0.00611114501953125, -0.01580810546875, -0.02386474609375, -0.0226593017578125, 0.019500732421875, 0.017852783203125, -0.0364990234375, -0.08038330078125, 0.0323486328125, -0.0159149169921875, -0.034698486328125, -0.0928955078125, 0.005260467529296875, 0.0249481201171875, -0.032745361328125, -0.0482177734375, -0.006805419921875, -0.05426025390625, 0.053497314453125, 0.017303466796875, 0.033111572265625, 0.005458831787109375, 0.0157623291015625, -0.05023193359375, 0.0186920166015625, -0.01190185546875, 0.021026611328125, -0.00786590576171875, -0.0028076171875, 0.0205535888671875, 0.0382080078125, -0.0054779052734375, 0.004238128662109375, 0.013641357421875, -0.041168212890625, 0.00705718994140625, -0.003124237060546875, 0.014892578125, 0.0281829833984375, 0.026824951171875, -0.019500732421875, 0.00004023313522338867, -0.043853759765625, -0.05572509765625, -0.054107666015625, -0.0091094970703125, -0.024749755859375, 0.00746917724609375, -0.045989990234375, 0.033905029296875, -0.0174407958984375, -0.0157012939453125, -0.04815673828125, -0.0302276611328125, -0.057952880859375, -0.00738525390625, 0.00055694580078125, 0.025970458984375, 0.019500732421875, -0.0718994140625, 0.04180908203125, -0.0299530029296875, -0.0182647705078125, 0.0170745849609375, 0.0367431640625, 0.003520965576171875, 0.056427001953125, 0.0230560302734375, 0.06732177734375, -0.033782958984375, -0.03338623046875, 0.04046630859375, -0.0079498291015625, 0.0286407470703125, -0.0171051025390625, 0.032989501953125, -0.006389617919921875, -0.002544403076171875, -0.007335662841796875, -0.019775390625, -0.01499176025390625, -0.061798095703125, 0.0108795166015625, -0.032867431640625, 0.005123138427734375, -0.01467132568359375, 0.004566192626953125, 0.01248931884765625, 0.01006317138671875, 0.061767578125, -0.013336181640625, -0.003612518310546875, 0.03692626953125, 0.0158843994140625, -0.0191192626953125, 0.00740814208984375, -0.023406982421875, 0.0159759521484375, -0.00620269775390625 ]
d4180bdd09387ddaaa5e82cfa8e2362f174e78a3
Wordpress Stackexchange Q: How to get full slug, including all parent pages I am trying for hours and I managed to get full slug for parent of sub-page when I am on 3rd level sub-page I can not get slug of the top parent page. Example domain.com/top_page/sub_page/sub_sub_page I need to get full slug 'top_page/sub_page/sub_sub_page' I am doing this for language sites that are on sub-domains (individuals sites). These pages have same slug across sub-domains. So I want to link language site that when you are on some given page link to language site will take you to that page in that language (not home page of that language). example of hyperlink to English language sub-domain: echo '<a href="en.domain.com/'.get_FULL_SLUG).'">'English'</a>'; Is it possible to get slug of top parent when you are on third level page, sub-sub-page Hope somebody can help A: Directly using get_page_uri: $path = get_page_uri($post_or_id); Result is e.g. top-level-page/sub-page/current-page. This function is used internally by get_page_link etc.
Q: How to get full slug, including all parent pages I am trying for hours and I managed to get full slug for parent of sub-page when I am on 3rd level sub-page I can not get slug of the top parent page. Example domain.com/top_page/sub_page/sub_sub_page I need to get full slug 'top_page/sub_page/sub_sub_page' I am doing this for language sites that are on sub-domains (individuals sites). These pages have same slug across sub-domains. So I want to link language site that when you are on some given page link to language site will take you to that page in that language (not home page of that language). example of hyperlink to English language sub-domain: echo '<a href="en.domain.com/'.get_FULL_SLUG).'">'English'</a>'; Is it possible to get slug of top parent when you are on third level page, sub-sub-page Hope somebody can help A: Directly using get_page_uri: $path = get_page_uri($post_or_id); Result is e.g. top-level-page/sub-page/current-page. This function is used internally by get_page_link etc. A: This would replace domain.com/top_page/sub_page/sub_sub_page with /top_page/sub_page/sub_sub_page $path = str_replace(home_url(),'',get_permalink());
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:418570", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47378" }
[ 0.03997802734375, -0.038299560546875, -0.0035858154296875, -0.0517578125, -0.0260772705078125, -0.0008139610290527344, -0.0007023811340332031, 0.0082550048828125, -0.00824737548828125, 0.0033779144287109375, 0.0151214599609375, -0.01023101806640625, 0.0007424354553222656, -0.048583984375, 0.0318603515625, -0.0135650634765625, 0.05548095703125, -0.039581298828125, 0.03326416015625, 0.0130767822265625, -0.0218048095703125, 0.050323486328125, 0.045318603515625, 0.0550537109375, 0.06195068359375, -0.07720947265625, -0.002315521240234375, -0.0017309188842773438, 0.027435302734375, -0.033477783203125, 0.023345947265625, 0.042694091796875, 0.0292510986328125, -0.046539306640625, 0.060150146484375, -0.0109710693359375, 0.0114288330078125, -0.0231170654296875, 0.0175933837890625, 0.0024280548095703125, 0.00821685791015625, 0.0255584716796875, -0.015625, 0.05877685546875, -0.0447998046875, -0.045013427734375, -0.01348114013671875, -0.0196533203125, 0.005397796630859375, 0.0252838134765625, 0.01158905029296875, -0.0196075439453125, -0.0032291412353515625, 0.02984619140625, -0.0063018798828125, -0.007198333740234375, -0.003536224365234375, 0.035400390625, 0.01611328125, -0.0328369140625, -0.03741455078125, 0.017333984375, 0.0306396484375, 0.0010700225830078125, -0.0205535888671875, 0.00817108154296875, -0.06915283203125, -0.000125885009765625, 0.0151519775390625, -0.004589080810546875, 0.00789642333984375, -0.0250091552734375, 0.0352783203125, -0.0038509368896484375, -0.037017822265625, -0.041351318359375, 0.00438690185546875, -0.0236968994140625, 0.0282745361328125, -0.0272216796875, -0.0147705078125, 0.0078277587890625, -0.08880615234375, 0.0243072509765625, -0.0102386474609375, 0.034759521484375, -0.022491455078125, -0.0238800048828125, -0.0419921875, -0.0174407958984375, -0.034210205078125, 0.003650665283203125, -0.021697998046875, -0.019683837890625, -0.0220794677734375, -0.0189208984375, 0.042022705078125, 0.046051025390625, -0.026763916015625, -0.0122833251953125, -0.004611968994140625, -0.047515869140625, 0.0241851806640625, -0.045989990234375, 0.0256805419921875, 0.029541015625, 0.01346588134765625, 0.006610870361328125, 0.049713134765625, -0.004779815673828125, 0.0088348388671875, 0.06268310546875, -0.01250457763671875, -0.025115966796875, -0.00782012939453125, 0.039276123046875, -0.031646728515625, -0.0004830360412597656, -0.01027679443359375, -0.003704071044921875, 0.0224609375, 0.0374755859375, -0.01108551025390625, -0.02166748046875, 0.0135040283203125, 0.0175018310546875, -0.023956298828125, -0.0286865234375, 0.03045654296875, -0.0067291259765625, -0.03448486328125, 0.01068878173828125, 0.04302978515625, -0.00847625732421875, -0.01091766357421875, -0.0186614990234375, -0.038726806640625, -0.00571441650390625, 0.0274810791015625, -0.02349853515625, -0.00533294677734375, 0.0113525390625, 0.08624267578125, 0.0158538818359375, -0.0301666259765625, -0.0067291259765625, -0.00687408447265625, 0.0183563232421875, -0.00606536865234375, -0.0195465087890625, -0.00021779537200927734, -0.04815673828125, 0.05230712890625, -0.022705078125, -0.08587646484375, -0.0828857421875, -0.058074951171875, -0.03564453125, 0.048004150390625, -0.05755615234375, -0.0146026611328125, 0.0071258544921875, 0.01068878173828125, -0.027923583984375, -0.027099609375, -0.038360595703125, -0.00904083251953125, 0.0037994384765625, 0.031982421875, -0.0240020751953125, 0.09405517578125, -0.018829345703125, -0.033599853515625, -0.00014030933380126953, 0.0214080810546875, -0.004695892333984375, -0.000023484230041503906, 0.0208740234375, 0.0008287429809570312, 0.0293121337890625, 0.0161590576171875, -0.030548095703125, 0.00836944580078125, 0.014190673828125, -0.03082275390625, 0.004306793212890625, 0.007404327392578125, 0.03997802734375, 0.0168914794921875, 0.0182647705078125, 0.01084136962890625, -0.004039764404296875, -0.0474853515625, 0.03338623046875, -0.0223388671875, -0.0013427734375, -0.0037021636962890625, 0.031829833984375, -0.0267791748046875, -0.021453857421875, -0.06805419921875, -0.00970458984375, -0.008514404296875, 0.04833984375, 0.0007524490356445312, -0.007755279541015625, -0.0110626220703125, 0.0257568359375, 0.04229736328125, 0.00705718994140625, -0.01129913330078125, 0.0227508544921875, -0.0162353515625, -0.03948974609375, -0.0318603515625, 0.06756591796875, 0.0123748779296875, 0.0024814605712890625, -0.005100250244140625, 0.045257568359375, -0.02008056640625, 0.0014257431030273438, -0.05072021484375, -0.0245513916015625, 0.04986572265625, 0.009674072265625, -0.01824951171875, -0.01751708984375, 0.0408935546875, 0.0231781005859375, -0.05255126953125, 0.0193634033203125, 0.0430908203125, 0.00435638427734375, -0.0592041015625, 0.004459381103515625, -0.008209228515625, 0.0264129638671875, -0.0231781005859375, 0.024017333984375, 0.032318115234375, 0.01763916015625, -0.01262664794921875, -0.0205535888671875, -0.0013751983642578125, -0.11151123046875, -0.0238189697265625, -0.0052947998046875, -0.01303863525390625, 0.052764892578125, -0.018218994140625, 0.045440673828125, -0.003276824951171875, 0.000888824462890625, -0.0101318359375, 0.05419921875, -0.004566192626953125, -0.0489501953125, -0.0209503173828125, 0.03521728515625, 0.0226287841796875, -0.0171051025390625, -0.035186767578125, 0.00009578466415405273, -0.0762939453125, 0.040679931640625, -0.0204620361328125, -0.004627227783203125, -0.01129150390625, 0.0005240440368652344, 0.0256195068359375, 0.0293121337890625, 0.009521484375, 0.044952392578125, 0.0016632080078125, -0.038604736328125, 0.01204681396484375, -0.0139007568359375, -0.01395416259765625, 0.006992340087890625, 0.0083160400390625, 0.060943603515625, 0.0833740234375, -0.010498046875, -0.0020961761474609375, -0.04229736328125, 0.01422882080078125, -0.006439208984375, 0.00931549072265625, 0.013916015625, 0.0273895263671875, 0.029632568359375, -0.0234222412109375, 0.03277587890625, 0.02685546875, -0.01611328125, 0.050445556640625, -0.01308441162109375, 0.0284881591796875, -0.006290435791015625, 0.021240234375, 0.0401611328125, -0.004428863525390625, -0.025787353515625, -0.003124237060546875, -0.0447998046875, -0.021087646484375, -0.01959228515625, -0.0255889892578125, -0.00644683837890625, -0.054046630859375, 0.05035400390625, 0.0086212158203125, 0.0005497932434082031, -0.03375244140625, -0.03936767578125, -0.0242767333984375, -0.022491455078125, -0.09674072265625, -0.05755615234375, -0.0037021636962890625, -0.05450439453125, -0.02252197265625, 0.0175018310546875, -0.034454345703125, 0.0052642822265625, 0.048095703125, -0.0015306472778320312, 0.033721923828125, -0.020233154296875, -0.037994384765625, -0.025909423828125, -0.047210693359375, -0.0246124267578125, 0.0026302337646484375, -0.02392578125, 0.012298583984375, -0.01496124267578125, 0.00022554397583007812, -0.02935791015625, -0.0037899017333984375, 0.10247802734375, -0.01483917236328125, -0.04705810546875, -0.0234527587890625, 0.0160980224609375, 0.0574951171875, 0.013885498046875, -0.07867431640625, 0.01325225830078125, 0.02069091796875, -0.055023193359375, 0.00019276142120361328, -0.0026302337646484375, 0.023040771484375, -0.021484375, 0.005344390869140625, 0.032867431640625, 0.0295867919921875, -0.01059722900390625, -0.045318603515625, -0.0535888671875, -0.07232666015625, 0.036590576171875, 0.04754638671875, 0.030120849609375, -0.0093231201171875, 0.01093292236328125, -0.002712249755859375, 0.0147705078125, 0.021331787109375, 0.006866455078125, -0.033203125, -0.0256500244140625, -0.0217742919921875, 0.007389068603515625, 0.06549072265625, 0.01372528076171875, 0.00354766845703125, 0.028533935546875, 0.029510498046875, 0.0094146728515625, -0.00047969818115234375, -0.0283050537109375, -0.03277587890625, 0.04058837890625, 0.01299285888671875, 0.0164031982421875, -0.02789306640625, -0.034149169921875, -0.026947021484375, 0.05950927734375, -0.0045623779296875, -0.01230621337890625, -0.03741455078125, -0.00811004638671875, 0.0027866363525390625, -0.037322998046875, -0.023162841796875, 0.00115203857421875, -0.0251617431640625, 0.0139923095703125, -0.005321502685546875, 0.01525115966796875, -0.0171051025390625, 0.040802001953125, -0.0009050369262695312, -0.0261077880859375, 0.035491943359375, -0.01311492919921875, -0.0430908203125, 0.05889892578125, -0.0299224853515625, 0.0280609130859375, -0.052734375, 0.0232086181640625, -0.044281005859375, -0.025390625, 0.030609130859375, 0.032470703125, -0.0052642822265625, -0.046539306640625, -0.0024394989013671875, 0.04681396484375, 0.027374267578125, 0.032073974609375, 0.01430511474609375, -0.01320648193359375, 0.027801513671875, 0.022308349609375, 0.0225372314453125, -0.007793426513671875, 0.001148223876953125, -0.0100250244140625, -0.04638671875, -0.01473236083984375, -0.0133056640625, 0.0235748291015625, 0.019561767578125, -0.03277587890625, -0.033843994140625, -0.027862548828125, -0.0537109375, -0.006549835205078125, -0.01385498046875, -0.033660888671875, -0.0286712646484375, -0.06304931640625, 0.028106689453125, 0.043975830078125, -0.03875732421875, -0.003139495849609375, 0.005084991455078125, 0.023468017578125, -0.052276611328125, -0.037109375, -0.0246734619140625, 0.0163421630859375, 0.0021953582763671875, 0.0284423828125, 0.0176239013671875, -0.0018167495727539062, 0.01904296875, 0.0080413818359375, 0.0162506103515625, 0.0189208984375, 0.007579803466796875, 0.0142974853515625, -0.01372528076171875, 0.0133209228515625, 0.00431060791015625, -0.021270751953125, 0.042510986328125, -0.03399658203125, -0.00917816162109375, -0.07379150390625, 0.0408935546875, 0.003681182861328125, 0.02874755859375, -0.06890869140625, -0.066650390625, 0.005283355712890625, 0.0235443115234375, 0.00836944580078125, 0.0205078125, -0.00897979736328125, 0.03125, 0.01253509521484375, -0.01050567626953125, 0.00995635986328125, 0.0192108154296875, 0.02764892578125, 0.046722412109375, -0.0164031982421875, 0.004512786865234375, -0.01306915283203125, -0.004665374755859375, 0.043792724609375, 0.0040130615234375, -0.020904541015625, -0.0032176971435546875, -0.0015316009521484375, 0.002429962158203125, 0.004688262939453125, -0.002880096435546875, 0.0203399658203125, 0.0237274169921875, -0.02435302734375, 0.000598907470703125, 0.0179901123046875, -0.0057373046875, -0.038848876953125, 0.0002684593200683594, 0.004367828369140625, -0.00925445556640625, -0.051483154296875, 0.10992431640625, 0.007762908935546875, 0.0225830078125, -0.0227813720703125, -0.059051513671875, -0.024200439453125, 0.049285888671875, 0.0166168212890625, 0.005153656005859375, 0.004894256591796875, 0.031951904296875, 0.07403564453125, -0.0249481201171875, 0.0216522216796875, 0.06341552734375, 0.057952880859375, 0.037628173828125, -0.024810791015625, -0.039794921875, -0.038787841796875, -0.01373291015625, 0.04595947265625, 0.0258941650390625, -0.0274200439453125, -0.0254058837890625, -0.005680084228515625, 0.01267242431640625, 0.01230621337890625, -0.031951904296875, 0.038330078125, -0.0233001708984375, 0.0168304443359375, 0.0284881591796875, -0.033447265625, 0.01629638671875, 0.01029205322265625, -0.0093231201171875, -0.0037994384765625, 0.0140533447265625, -0.0225677490234375, -0.0223388671875, -0.040740966796875, -0.025909423828125, 0.06719970703125, 0.0082855224609375, 0.0303497314453125, -0.007648468017578125, -0.0406494140625, 0.033233642578125, -0.0017023086547851562, 0.0556640625, 0.00543212890625, -0.0458984375, 0.03692626953125, -0.03863525390625, 0.004425048828125, 0.0374755859375, -0.042938232421875, -0.03594970703125, -0.056610107421875, -0.020416259765625, -0.0028781890869140625, -0.01259613037109375, 0.01263427734375, -0.042694091796875, 0.032012939453125, 0.031005859375, 0.033477783203125, -0.021026611328125, 0.09027099609375, -0.05841064453125, 0.006839752197265625, -0.01654052734375, 0.031219482421875, 0.0009098052978515625, 0.0174560546875, 0.003932952880859375, 0.0193023681640625, -0.027191162109375, -0.01479339599609375, 0.00334930419921875, -0.0018892288208007812, 0.069091796875, -0.006076812744140625, 0.0094146728515625, -0.01506805419921875, 0.005462646484375, -0.0211334228515625, 0.01543426513671875, -0.01497650146484375, -0.0263671875, 0.03131103515625, -0.0257415771484375, 0.0093841552734375, 0.00885009765625, 0.0046234130859375, -0.00186920166015625, -0.00988006591796875, 0.01983642578125, 0.0177764892578125, -0.01232147216796875, 0.053741455078125, 0.0443115234375, -0.0147705078125, 0.028076171875, 0.027740478515625, 0.020355224609375, -0.01361083984375, -0.0176849365234375, 0.0164642333984375, -0.0119171142578125, 0.0161590576171875, -0.01995849609375, 0.03411865234375, 0.0246734619140625, 0.0101165771484375, -0.006855010986328125, 0.006397247314453125, 0.038909912109375, -0.0149993896484375, -0.0006947517395019531, 0.01395416259765625, -0.0439453125, -0.01123809814453125, 0.010162353515625, 0.01540374755859375, 0.0177459716796875, -0.0038547515869140625, -0.054656982421875, -0.020751953125, 0.0014200210571289062, -0.0310211181640625, -0.0085906982421875, 0.0036792755126953125, 0.0538330078125, 0.014801025390625, 0.046234130859375, -0.0400390625, -0.0277862548828125, 0.00262451171875, -0.030303955078125, -0.0003609657287597656, -0.008209228515625, 0.012420654296875, -0.003604888916015625, 0.048248291015625, -0.053863525390625, 0.0279998779296875, 0.040985107421875, -0.0088043212890625, -0.0178375244140625, 0.049102783203125, -0.042083740234375, 0.0166015625, 0.0102691650390625, -0.05328369140625, 0.0308990478515625, 0.00010371208190917969, 0.00901031494140625, 0.006969451904296875, -0.032073974609375, -0.0175018310546875, -0.036895751953125, 0.0288848876953125, -0.013671875, -0.0212554931640625, 0.0770263671875, -0.0251312255859375, -0.01294708251953125, 0.0243072509765625, 0.048553466796875, -0.0253143310546875, 0.003780364990234375, 0.0277862548828125, 0.002498626708984375, 0.02618408203125, 0.0000014901161193847656, 0.0142822265625, -0.01236724853515625, -0.004566192626953125, -0.08123779296875, 0.100830078125, -0.01812744140625, 0.06488037109375, 0.01418304443359375, 0.0311126708984375, -0.014801025390625, 0.0022258758544921875, -0.0255279541015625, 0.0491943359375, 0.020751953125, 0.01580810546875, -0.0379638671875, -0.0203399658203125, 0.0091705322265625, 0.05474853515625, 0.01509857177734375, -0.0031528472900390625, -0.013458251953125, -0.0016088485717773438, 0.027557373046875, -0.015899658203125, -0.021728515625, 0.05474853515625, 0.000029802322387695312, 0.033233642578125, 0.05853271484375, -0.058502197265625, 0.018310546875, -0.0042724609375, 0.0128021240234375, 0.028106689453125, -0.004756927490234375, -0.02593994140625, 0.01201629638671875, 0.00897216796875, -0.0604248046875, 0.0166778564453125, 0.0345458984375, -0.03582763671875, 0.033843994140625, 0.0078582763671875, 0.041595458984375, -0.042144775390625, -0.033721923828125, -0.00902557373046875, 0.034515380859375, 0.0208587646484375, 0.00493621826171875, -0.0318603515625, 0.00714111328125, 0.040740966796875, -0.024749755859375, -0.0121917724609375, 0.029571533203125, -0.0216827392578125, 0.05377197265625, 0.0218658447265625, 0.032958984375, -0.0247802734375, 0.0160675048828125, 0.038543701171875, 0.05413818359375, -0.043487548828125, -0.08111572265625, 0.011444091796875, -0.02294921875, -0.01151275634765625, 0.052459716796875, 0.00931549072265625, 0.0177764892578125, 0.060577392578125, -0.0184783935546875, -0.031341552734375, 0.0163726806640625, 0.04345703125, -0.00408935546875, -0.048431396484375, 0.01166534423828125, -0.023162841796875, -0.033233642578125, -0.0258331298828125, 0.0178375244140625, 0.0447998046875, 0.035247802734375, 0.018157958984375, -0.01593017578125, -0.01526641845703125, 0.0091400146484375, -0.0099945068359375, -0.0139923095703125, -0.006633758544921875, -0.0219879150390625, -0.0168304443359375, 0.0151214599609375, 0.03350830078125, 0.06549072265625, -0.039306640625, 0.03472900390625, 0.0073394775390625, -0.0648193359375, -0.0009627342224121094, 0.050323486328125, -0.00975799560546875, 0.048126220703125, -0.0364990234375, 0.0234222412109375, -0.0135498046875, -0.02276611328125, -0.034423828125, -0.01259613037109375, 0.043365478515625, 0.0294647216796875, 0.0093994140625, 0.0166473388671875, 0.00807952880859375, 0.0169677734375, 0.031219482421875, 0.01543426513671875, 0.05584716796875, -0.068603515625, 0.0128173828125, -0.05224609375, -0.061767578125, 0.045654296875, 0.046661376953125, -0.0146484375, 0.0034999847412109375, -0.0195159912109375, -0.0047607421875, 0.0222015380859375, -0.00989532470703125, 0.0013580322265625, 0.02667236328125, 0.00788116455078125, 0.00799560546875, 0.00909423828125, 0.0142364501953125, 0.0166778564453125, -0.0145263671875, 0.026153564453125, 0.08819580078125, -0.013275146484375, -0.0067291259765625, -0.00902557373046875, 0.0184783935546875, -0.019134521484375, -0.0311431884765625, 0.047760009765625, -0.0166168212890625, -0.007671356201171875, -0.01128387451171875, -0.07305908203125, 0.036956787109375, 0.017730712890625, -0.01471710205078125, 0.0328369140625, 0.003879547119140625, -0.0038471221923828125, -0.0130462646484375, 0.0292205810546875, -0.0245361328125, -0.029083251953125, -0.052886962890625, -0.0219268798828125, 0.04095458984375, 0.046600341796875, -0.01369476318359375, 0.044403076171875, -0.040313720703125, -0.03466796875, 0.01727294921875, -0.05926513671875, 0.0148162841796875, 0.0245208740234375, -0.034332275390625, -0.0008916854858398438, 0.049285888671875, -0.003986358642578125, 0.037139892578125, 0.0004220008850097656, 0.0489501953125, 0.0286865234375, -0.0131378173828125, -0.01287841796875, -0.0298309326171875, 0.0008759498596191406, -0.0260467529296875, -0.0142059326171875, -0.0004649162292480469, 0.001262664794921875, -0.0178375244140625, -0.0845947265625, -0.015655517578125, -0.031768798828125, -0.00426483154296875, 0.029815673828125, 0.010162353515625, -0.031341552734375, 0.010711669921875, -0.00333404541015625, 0.01543426513671875, 0.00799560546875, -0.045745849609375, 0.0104827880859375, -0.0118255615234375, 0.056640625, -0.01290130615234375, 0.0227813720703125, -0.00931549072265625, -0.019775390625, -0.0709228515625, 0.034027099609375, -0.00997161865234375, -0.01427459716796875, 0.0182037353515625, 0.02655029296875, 0.048126220703125, -0.0188751220703125, -0.0092926025390625, 0.0194854736328125, 0.0093841552734375, 0.0703125, -0.042236328125, -0.034423828125, -0.0221405029296875, 0.00560760498046875, 0.0009918212890625, -0.0125732421875, 0.0253753662109375, -0.042724609375, -0.008392333984375, -0.006069183349609375, -0.0011911392211914062, 0.0151214599609375, -0.034759521484375, -0.0213165283203125, 0.10888671875, -0.00290679931640625, -0.0189208984375, -0.044219970703125, 0.05499267578125, 0.0081634521484375, 0.03021240234375, 0.0012121200561523438, -0.027008056640625, 0.0020885467529296875, 0.00786590576171875, 0.0223236083984375, 0.027496337890625, -0.0202178955078125, 0.03973388671875, -0.00449371337890625, 0.06695556640625, 0.049285888671875, -0.00466156005859375, 0.023345947265625, 0.0010595321655273438, 0.016143798828125, 0.04608154296875, -0.0501708984375, -0.01800537109375, -0.01308441162109375, -0.00499725341796875, -0.01148223876953125, -0.03424072265625, 0.00441741943359375, -0.01081085205078125, 0.052154541015625, -0.007904052734375, 0.003871917724609375, -0.01132965087890625, -0.036468505859375, -0.041595458984375, -0.013092041015625, 0.018524169921875, 0.032196044921875, -0.064208984375, 0.034271240234375, 0.032379150390625, 0.005466461181640625, -0.045440673828125, -0.02789306640625, -0.02105712890625, -0.02825927734375, -0.0194549560546875, -0.00949859619140625, 0.0286102294921875, 0.0035915374755859375, 0.036956787109375, -0.03057861328125, -0.01064300537109375, -0.0010023117065429688, 0.0084991455078125, -0.00046443939208984375, -0.0108642578125, -0.005039215087890625, 0.0035858154296875, -0.0195770263671875, -0.0055389404296875, 0.01551055908203125, -0.002254486083984375, 0.00594329833984375, -0.02191162109375, -0.048065185546875, 0.01593017578125, 0.0191497802734375, 0.005092620849609375, -0.0210113525390625, 0.036102294921875, 0.044921875, 0.04205322265625, 0.01090240478515625, 0.06695556640625, 0.01526641845703125, 0.0477294921875, 0.0018815994262695312, -0.0298919677734375, 0.01013946533203125, -0.042877197265625, -0.000553131103515625, -0.003448486328125, -0.049163818359375, -0.0478515625, 0.011016845703125, 0.01531219482421875, -0.013916015625, 0.022308349609375 ]
de046a7de52a1694af6c3f5fd2cf53bae00e17fa
Wordpress Stackexchange Q: Change upload directory for PDF files I would like to change the upload directory for PDF files only, not for other files. For example, the PDF files would be uploaded to wp-content/uploads/pdf but other files would remain in wp-content/uploads/yyyy/mm. I know it possible to filter upload_dir but I don't know how to do it with file types/mimes. Thanks! A: Following Justice Is Cheap lead, I ended adapting the functions from this plugin: http://wordpress.org/extend/plugins/custom-upload-dir/ <?php /* * Change upload directory for PDF files * Only works in WordPress 3.3+ */ add_filter('wp_handle_upload_prefilter', 'wpse47415_pre_upload'); add_filter('wp_handle_upload', 'wpse47415_post_upload'); function wpse47415_pre_upload($file){ add_filter('upload_dir', 'wpse47415_custom_upload_dir'); return $file; } function wpse47415_post_upload($fileinfo){ remove_filter('upload_dir', 'wpse47415_custom_upload_dir'); return $fileinfo; } function wpse47415_custom_upload_dir($path){ $extension = substr(strrchr($_POST['name'],'.'),1); if(!empty($path['error']) || $extension != 'pdf') { return $path; } //error or other filetype; do nothing. $customdir = '/pdf'; $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; }
Q: Change upload directory for PDF files I would like to change the upload directory for PDF files only, not for other files. For example, the PDF files would be uploaded to wp-content/uploads/pdf but other files would remain in wp-content/uploads/yyyy/mm. I know it possible to filter upload_dir but I don't know how to do it with file types/mimes. Thanks! A: Following Justice Is Cheap lead, I ended adapting the functions from this plugin: http://wordpress.org/extend/plugins/custom-upload-dir/ <?php /* * Change upload directory for PDF files * Only works in WordPress 3.3+ */ add_filter('wp_handle_upload_prefilter', 'wpse47415_pre_upload'); add_filter('wp_handle_upload', 'wpse47415_post_upload'); function wpse47415_pre_upload($file){ add_filter('upload_dir', 'wpse47415_custom_upload_dir'); return $file; } function wpse47415_post_upload($fileinfo){ remove_filter('upload_dir', 'wpse47415_custom_upload_dir'); return $fileinfo; } function wpse47415_custom_upload_dir($path){ $extension = substr(strrchr($_POST['name'],'.'),1); if(!empty($path['error']) || $extension != 'pdf') { return $path; } //error or other filetype; do nothing. $customdir = '/pdf'; $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: you can change upload directory from wp-config.php file in wordpress. define('UPLOADS', 'myimages'); Make sure you add this code before the line: require_once(ABSPATH.’wp-settings.php’); this is allows you to upload media in myimages folder instead of wp-content/uploads Thanks
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:418582", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47415" }
[ 0.03594970703125, -0.022491455078125, -0.01523590087890625, -0.045166015625, 0.0009622573852539062, -0.032684326171875, 0.042205810546875, 0.0117645263671875, 0.024261474609375, 0.01357269287109375, -0.008514404296875, -0.0178375244140625, 0.022125244140625, -0.0477294921875, 0.0006070137023925781, -0.01099395751953125, 0.0218353271484375, 0.0223846435546875, 0.058013916015625, -0.005039215087890625, 0.01068878173828125, 0.03167724609375, 0.0321044921875, -0.0147705078125, -0.005859375, 0.029296875, 0.031585693359375, -0.0173797607421875, -0.027740478515625, -0.043365478515625, 0.0026397705078125, 0.02239990234375, 0.0222320556640625, 0.0073089599609375, -0.004222869873046875, 0.064208984375, 0.03082275390625, -0.002498626708984375, 0.016326904296875, 0.0221710205078125, 0.033905029296875, -0.0286865234375, -0.008026123046875, -0.05029296875, -0.00839996337890625, -0.01279449462890625, 0.041046142578125, -0.00957489013671875, 0.0288543701171875, 0.0767822265625, -0.01200103759765625, 0.0028324127197265625, -0.03662109375, 0.0171966552734375, 0.008514404296875, -0.025421142578125, -0.01343536376953125, 0.07012939453125, 0.0203094482421875, -0.04046630859375, -0.0311431884765625, 0.01369476318359375, 0.00943756103515625, 0.01520538330078125, 0.0032405853271484375, -0.002044677734375, -0.046173095703125, 0.036590576171875, -0.0305023193359375, -0.018798828125, 0.002040863037109375, -0.037567138671875, 0.0168914794921875, -0.046905517578125, -0.0235595703125, 0.031585693359375, 0.0038623809814453125, -0.01531982421875, 0.0221099853515625, -0.032440185546875, 0.016326904296875, -0.0138092041015625, 0.00481414794921875, -0.014129638671875, 0.024200439453125, 0.01849365234375, -0.002105712890625, -0.017059326171875, -0.022613525390625, 0.031005859375, -0.0214385986328125, -0.005092620849609375, 0.02337646484375, 0.0031223297119140625, -0.03594970703125, 0.006877899169921875, -0.0040130615234375, -0.01232147216796875, -0.009857177734375, 0.01419830322265625, 0.0263519287109375, -0.030548095703125, 0.0306396484375, -0.017974853515625, 0.02813720703125, 0.04046630859375, 0.0158233642578125, -0.034454345703125, 0.01543426513671875, -0.0172271728515625, -0.0103912353515625, 0.030181884765625, -0.0034961700439453125, -0.0391845703125, -0.0126953125, 0.01739501953125, -0.0160064697265625, 0.0031909942626953125, 0.0147705078125, -0.0218505859375, 0.01641845703125, 0.01314544677734375, 0.0135498046875, -0.0411376953125, 0.00405120849609375, -0.021026611328125, -0.03863525390625, -0.015167236328125, 0.01377105712890625, 0.033660888671875, -0.047393798828125, 0.0040740966796875, 0.055084228515625, -0.00231170654296875, 0.0047760009765625, -0.0268402099609375, 0.04541015625, 0.0021533966064453125, -0.0135040283203125, 0.030670166015625, 0.0276031494140625, -0.042510986328125, -0.047210693359375, 0.02532958984375, -0.039886474609375, 0.028411865234375, 0.02069091796875, 0.025634765625, -0.028778076171875, -0.07586669921875, -0.016510009765625, 0.01387786865234375, 0.041015625, -0.01441192626953125, -0.016845703125, -0.03985595703125, 0.0103607177734375, -0.037872314453125, 0.00199127197265625, -0.046722412109375, 0.0136566162109375, -0.0124969482421875, 0.0166473388671875, -0.020111083984375, -0.0302276611328125, 0.01389312744140625, -0.045745849609375, -0.012359619140625, 0.0272674560546875, 0.01395416259765625, 0.05816650390625, -0.0084991455078125, -0.012664794921875, 0.0114593505859375, 0.006893157958984375, 0.0012836456298828125, -0.01364898681640625, 0.05499267578125, 0.00988006591796875, 0.048248291015625, 0.0303955078125, -0.0260009765625, 0.09161376953125, 0.002460479736328125, -0.053009033203125, 0.00605010986328125, 0.009674072265625, 0.00737762451171875, -0.00003820657730102539, -0.01387786865234375, 0.0738525390625, 0.029632568359375, -0.044525146484375, -0.0151214599609375, -0.0187225341796875, 0.005580902099609375, 0.01039886474609375, -0.0057373046875, 0.01142120361328125, 0.027069091796875, -0.0100250244140625, -0.006282806396484375, 0.023834228515625, 0.0190582275390625, 0.033447265625, -0.01244354248046875, 0.007373809814453125, -0.0016565322875976562, 0.0007328987121582031, 0.01412200927734375, 0.017333984375, 0.01666259765625, -0.0199432373046875, -0.0328369140625, -0.0074920654296875, 0.036895751953125, 0.0074615478515625, 0.0056915283203125, -0.01513671875, 0.0506591796875, -0.0301971435546875, 0.0037097930908203125, -0.027801513671875, 0.021392822265625, 0.0184478759765625, 0.01425933837890625, -0.0187530517578125, 0.01412200927734375, 0.041656494140625, 0.0129852294921875, -0.00177001953125, 0.006320953369140625, -0.0012989044189453125, -0.006427764892578125, -0.029693603515625, -0.016998291015625, -0.029541015625, -0.08697509765625, 0.00740814208984375, 0.0657958984375, 0.034423828125, 0.0258941650390625, 0.008026123046875, 0.0064697265625, 0.0758056640625, -0.0098114013671875, 0.00968170166015625, -0.021484375, 0.0032196044921875, 0.020050048828125, -0.0194244384765625, -0.00319671630859375, 0.0253143310546875, -0.0218658447265625, -0.0000336766242980957, 0.052032470703125, -0.02618408203125, -0.05169677734375, 0.0202178955078125, 0.00875091552734375, 0.01361083984375, 0.004238128662109375, -0.0281829833984375, 0.02099609375, -0.042205810546875, 0.00567626953125, -0.00006574392318725586, 0.007129669189453125, -0.0168304443359375, -0.0137786865234375, 0.02490234375, 0.0008273124694824219, -0.0094146728515625, 0.02923583984375, 0.04150390625, -0.017425537109375, -0.0226898193359375, -0.0106048583984375, 0.007671356201171875, 0.00408935546875, -0.0014362335205078125, 0.0218505859375, -0.01459503173828125, -0.0051727294921875, -0.0026721954345703125, -0.029510498046875, 0.01140594482421875, 0.0142059326171875, -0.00739288330078125, -0.01091766357421875, 0.0283203125, 0.0101776123046875, -0.0084381103515625, 0.0180816650390625, 0.01128387451171875, -0.0186614990234375, 0.04364013671875, -0.00435638427734375, 0.028656005859375, -0.03863525390625, -0.0005941390991210938, 0.040863037109375, -0.017547607421875, -0.006671905517578125, 0.01123046875, 0.0068511962890625, 0.0016679763793945312, 0.0338134765625, 0.01053619384765625, -0.00408935546875, -0.04437255859375, -0.00576019287109375, 0.0028820037841796875, -0.038970947265625, 0.0017499923706054688, -0.0104522705078125, -0.0252685546875, -0.02728271484375, -0.060791015625, -0.036102294921875, 0.02685546875, -0.07763671875, 0.021514892578125, 0.01328277587890625, -0.035919189453125, -0.036163330078125, 0.049285888671875, 0.005603790283203125, 0.0065765380859375, -0.0159912109375, -0.00669097900390625, -0.0235137939453125, -0.039794921875, -0.044891357421875, 0.014007568359375, -0.015777587890625, 0.0000024437904357910156, 0.06817626953125, -0.0011167526245117188, -0.062255859375, -0.019439697265625, 0.0537109375, -0.0001367330551147461, 0.01187896728515625, 0.046478271484375, -0.060577392578125, 0.01031494140625, -0.032989501953125, 0.07244873046875, 0.06866455078125, -0.060699462890625, 0.0164794921875, -0.0161590576171875, -0.002765655517578125, -0.032806396484375, 0.032073974609375, 0.04315185546875, -0.05877685546875, -0.055389404296875, -0.07867431640625, 0.007053375244140625, -0.01178741455078125, -0.01331329345703125, 0.058074951171875, -0.0239105224609375, -0.0157928466796875, 0.011383056640625, 0.048126220703125, 0.0080108642578125, 0.036834716796875, -0.04437255859375, -0.0282135009765625, 0.0413818359375, 0.015167236328125, 0.0465087890625, 0.01161956787109375, 0.0675048828125, -0.0021572113037109375, -0.009429931640625, 0.03045654296875, 0.0105743408203125, 0.015045166015625, -0.0284423828125, -0.039398193359375, -0.07745361328125, 0.044891357421875, -0.08026123046875, -0.005184173583984375, -0.060791015625, -0.0115203857421875, -0.0030670166015625, 0.09466552734375, -0.0255584716796875, -0.0137939453125, -0.0077056884765625, 0.0203857421875, -0.0167694091796875, -0.07025146484375, -0.022125244140625, 0.00010305643081665039, -0.00659942626953125, 0.005222320556640625, -0.0020618438720703125, -0.01092529296875, 0.0270538330078125, -0.0689697265625, 0.01442718505859375, -0.036102294921875, 0.0311126708984375, -0.0447998046875, 0.0175933837890625, 0.020782470703125, 0.0093841552734375, -0.022186279296875, -0.0255279541015625, -0.038818359375, -0.09124755859375, -0.028472900390625, -0.0236358642578125, 0.0654296875, 0.007595062255859375, 0.004596710205078125, -0.018035888671875, 0.0728759765625, 0.035400390625, -0.01091766357421875, 0.0164031982421875, -0.03765869140625, 0.020111083984375, 0.02471923828125, 0.00521087646484375, -0.0101165771484375, 0.0016117095947265625, -0.04168701171875, -0.0654296875, -0.0142364501953125, -0.02423095703125, 0.02783203125, 0.01165771484375, -0.03662109375, -0.01515960693359375, -0.04571533203125, -0.07208251953125, 0.014862060546875, -0.047027587890625, -0.0133209228515625, -0.0523681640625, -0.0653076171875, 0.06695556640625, 0.0163116455078125, -0.01544952392578125, -0.00879669189453125, 0.06915283203125, 0.016754150390625, -0.04217529296875, -0.042388916015625, 0.002971649169921875, 0.01727294921875, -0.0165252685546875, 0.04730224609375, 0.01338958740234375, -0.0158538818359375, 0.060882568359375, -0.038604736328125, 0.00980377197265625, -0.0194091796875, 0.041046142578125, -0.0036602020263671875, -0.00925445556640625, 0.01093292236328125, -0.004550933837890625, 0.004253387451171875, -0.033935546875, -0.0137481689453125, -0.0037059783935546875, -0.0127410888671875, 0.0197601318359375, 0.0223388671875, -0.007122039794921875, -0.0165252685546875, -0.06390380859375, 0.01097869873046875, -0.0175628662109375, 0.0260009765625, -0.006275177001953125, 0.0008158683776855469, 0.04498291015625, 0.03424072265625, -0.00521087646484375, 0.033599853515625, 0.054595947265625, -0.0011510848999023438, 0.042572021484375, 0.0304412841796875, -0.003917694091796875, -0.01751708984375, 0.0076446533203125, 0.0018358230590820312, 0.0138092041015625, 0.0157470703125, -0.03857421875, 0.001373291015625, 0.0201873779296875, -0.0123443603515625, -0.0188751220703125, 0.038848876953125, 0.032073974609375, -0.027679443359375, 0.009796142578125, -0.0229949951171875, -0.0031299591064453125, -0.0577392578125, 0.0249786376953125, 0.0279998779296875, -0.0285797119140625, -0.0135040283203125, -0.01306915283203125, 0.039093017578125, -0.055389404296875, 0.0137939453125, 0.03021240234375, 0.04547119140625, -0.0006570816040039062, 0.00016498565673828125, 0.03985595703125, -0.0187225341796875, -0.008392333984375, 0.01493072509765625, -0.0341796875, 0.01560211181640625, -0.002685546875, 0.027801513671875, -0.0229949951171875, -0.035308837890625, 0.036163330078125, -0.039215087890625, 0.025390625, -0.035736083984375, -0.0195770263671875, 0.00997161865234375, 0.00998687744140625, 0.01528167724609375, 0.003917694091796875, -0.0129852294921875, -0.0136566162109375, -0.005458831787109375, -0.0267181396484375, -0.0267333984375, 0.047027587890625, -0.053955078125, -0.013885498046875, -0.0014905929565429688, -0.002971649169921875, 0.00301361083984375, 0.010772705078125, -0.08258056640625, -0.039306640625, -0.01387786865234375, -0.01213836669921875, 0.06695556640625, -0.046234130859375, 0.00833892822265625, -0.019866943359375, 0.01335906982421875, -0.0195159912109375, 0.03369140625, 0.00815582275390625, 0.0010251998901367188, -0.058074951171875, 0.0035610198974609375, -0.0386962890625, -0.0068817138671875, -0.03350830078125, -0.029693603515625, -0.0390625, -0.0039520263671875, -0.01678466796875, 0.0157470703125, 0.01001739501953125, 0.041717529296875, 0.0007867813110351562, 0.022705078125, -0.0157928466796875, 0.04473876953125, -0.0017242431640625, 0.0340576171875, 0.0134124755859375, 0.01049041748046875, 0.0078125, 0.003665924072265625, -0.0125579833984375, -0.00858306884765625, -0.02960205078125, -0.033477783203125, 0.01055145263671875, 0.016204833984375, 0.00876617431640625, 0.052093505859375, 0.06573486328125, 0.0178985595703125, -0.01025390625, -0.02740478515625, -0.0221405029296875, -0.0294189453125, 0.025177001953125, -0.020721435546875, 0.0280303955078125, -0.07366943359375, -0.00021779537200927734, 0.015106201171875, 0.00478363037109375, -0.001224517822265625, 0.0228271484375, 0.004444122314453125, 0.020172119140625, -0.00603485107421875, -0.0092315673828125, 0.036224365234375, 0.049530029296875, 0.0171966552734375, 0.0455322265625, 0.0152587890625, 0.03411865234375, 0.0208282470703125, -0.044677734375, 0.0288238525390625, 0.049041748046875, 0.085205078125, 0.0010194778442382812, 0.006927490234375, 0.07647705078125, -0.019287109375, 0.0289306640625, 0.041534423828125, 0.0531005859375, -0.0726318359375, 0.007251739501953125, 0.00803375244140625, -0.0098724365234375, 0.0684814453125, -0.007663726806640625, -0.02496337890625, -0.00811767578125, 0.025604248046875, -0.048065185546875, -0.027069091796875, 0.00699615478515625, 0.0193634033203125, -0.0209197998046875, -0.0013828277587890625, -0.00279998779296875, -0.0011444091796875, -0.01151275634765625, -0.032806396484375, 0.0179443359375, -0.04754638671875, -0.0027523040771484375, 0.017120361328125, -0.00945281982421875, -0.0211334228515625, -0.06201171875, -0.006381988525390625, -0.013763427734375, -0.03045654296875, 0.0335693359375, -0.0084686279296875, 0.072509765625, 0.046295166015625, 0.016326904296875, -0.01256561279296875, 0.0158233642578125, 0.00897216796875, -0.00615692138671875, -0.0254974365234375, -0.0278778076171875, 0.037841796875, -0.042938232421875, 0.006481170654296875, -0.02978515625, 0.0281829833984375, 0.02435302734375, 0.023284912109375, 0.04766845703125, -0.049713134765625, -0.010833740234375, 0.039520263671875, -0.0271759033203125, -0.012969970703125, 0.0233917236328125, 0.00040602684020996094, -0.044830322265625, -0.054443359375, 0.005374908447265625, -0.10308837890625, -0.0021820068359375, 0.00225830078125, -0.06866455078125, 0.121337890625, -0.0268707275390625, 0.06365966796875, 0.0450439453125, 0.0278167724609375, -0.045623779296875, -0.002735137939453125, -0.0307769775390625, 0.039886474609375, 0.01409912109375, 0.0013208389282226562, -0.036376953125, 0.0037364959716796875, -0.01538848876953125, 0.0302276611328125, 0.0189971923828125, -0.0030384063720703125, -0.018890380859375, 0.004802703857421875, 0.05450439453125, 0.059600830078125, 0.01776123046875, -0.003063201904296875, -0.004604339599609375, -0.040283203125, -0.01348876953125, 0.0019550323486328125, 0.0239410400390625, -0.035369873046875, -0.027923583984375, 0.01367950439453125, 0.01328277587890625, 0.0214691162109375, -0.031951904296875, -0.013153076171875, -0.00373077392578125, -0.03466796875, -0.003448486328125, -0.0252685546875, -0.01343536376953125, 0.050323486328125, 0.01605224609375, -0.023590087890625, -0.0258636474609375, -0.01910400390625, 0.046142578125, -0.0027942657470703125, 0.0107879638671875, 0.005279541015625, 0.00022840499877929688, 0.03167724609375, -0.0012493133544921875, -0.0231781005859375, 0.021087646484375, 0.010406494140625, 0.0377197265625, -0.007709503173828125, 0.0056915283203125, -0.01241302490234375, 0.0723876953125, 0.007659912109375, 0.0175933837890625, -0.06146240234375, -0.0341796875, 0.0153656005859375, -0.0038623809814453125, -0.023193359375, -0.00365447998046875, -0.01165008544921875, -0.035919189453125, -0.00908660888671875, -0.052032470703125, -0.018341064453125, 0.03680419921875, 0.03009033203125, -0.0019321441650390625, -0.036834716796875, -0.01157379150390625, -0.044342041015625, -0.032379150390625, 0.00897216796875, 0.012176513671875, 0.01123046875, 0.0015802383422851562, 0.0294342041015625, 0.035247802734375, -0.002532958984375, 0.01105499267578125, 0.039947509765625, -0.01323699951171875, -0.0113983154296875, -0.039947509765625, -0.07281494140625, 0.0205841064453125, 0.036651611328125, 0.03729248046875, 0.044586181640625, 0.031280517578125, -0.01523590087890625, -0.004528045654296875, 0.0141448974609375, -0.0161590576171875, -0.030914306640625, 0.004146575927734375, -0.042633056640625, 0.029083251953125, 0.0128936767578125, 0.0020580291748046875, -0.0234832763671875, 0.00634765625, 0.04156494140625, -0.039764404296875, 0.02532958984375, -0.0081329345703125, -0.0626220703125, 0.037384033203125, 0.009307861328125, 0.10028076171875, -0.009796142578125, -0.07086181640625, -0.01328277587890625, -0.032440185546875, -0.0034008026123046875, 0.01494598388671875, 0.035308837890625, 0.01456451416015625, 0.005802154541015625, 0.0256805419921875, -0.03192138671875, 0.00209808349609375, 0.0060882568359375, 0.01995849609375, -0.0098114013671875, 0.0009331703186035156, 0.004932403564453125, -0.0004451274871826172, -0.0027751922607421875, -0.00799560546875, 0.03692626953125, 0.033660888671875, 0.06549072265625, -0.041717529296875, 0.023468017578125, 0.0078582763671875, 0.0288848876953125, -0.043548583984375, -0.009490966796875, 0.048126220703125, -0.0188446044921875, -0.005779266357421875, -0.0084381103515625, 0.01617431640625, -0.0204315185546875, 0.03485107421875, -0.0643310546875, -0.0220489501953125, -0.01465606689453125, 0.0308380126953125, 0.0108642578125, 0.0207672119140625, -0.017974853515625, -0.01361846923828125, -0.029388427734375, -0.01197052001953125, 0.04638671875, 0.055877685546875, -0.021636962890625, 0.031707763671875, -0.007801055908203125, -0.0175933837890625, 0.043853759765625, -0.0386962890625, 0.08355712890625, 0.049407958984375, -0.054962158203125, -0.043792724609375, -0.009002685546875, -0.01340484619140625, -0.02301025390625, -0.002391815185546875, 0.05255126953125, -0.018524169921875, -0.0110626220703125, -0.07855224609375, -0.01171875, -0.01197052001953125, -0.033050537109375, 0.01251220703125, -0.015716552734375, -0.00860595703125, 0.001407623291015625, -0.06463623046875, -0.0031337738037109375, -0.0101318359375, -0.0169525146484375, 0.01861572265625, 0.01043701171875, -0.0174713134765625, 0.007747650146484375, 0.011810302734375, 0.033050537109375, 0.02069091796875, -0.09613037109375, 0.061248779296875, -0.01727294921875, 0.0292205810546875, -0.0117340087890625, 0.0267333984375, -0.0248565673828125, 0.0159759521484375, -0.0052490234375, -0.053619384765625, -0.037994384765625, 0.07391357421875, -0.03924560546875, -0.00579071044921875, 0.006519317626953125, 0.0025615692138671875, -0.01129913330078125, 0.0206298828125, -0.0171661376953125, 0.07000732421875, -0.0323486328125, -0.0256805419921875, -0.007564544677734375, -0.01580810546875, -0.007053375244140625, -0.020782470703125, 0.021820068359375, -0.052001953125, -0.0457763671875, 0.0166778564453125, -0.0189361572265625, -0.00542449951171875, -0.049407958984375, -0.0936279296875, 0.05682373046875, -0.0020732879638671875, -0.046295166015625, -0.00925445556640625, 0.0028839111328125, -0.0364990234375, 0.031646728515625, 0.015411376953125, -0.056915283203125, 0.02056884765625, 0.04534912109375, 0.0188751220703125, 0.0226898193359375, -0.0048675537109375, 0.048583984375, -0.03814697265625, 0.0311279296875, 0.012725830078125, -0.00855255126953125, 0.04254150390625, -0.0170745849609375, 0.04486083984375, 0.05230712890625, -0.01198577880859375, 0.02349853515625, -0.0179901123046875, -0.10089111328125, -0.01432037353515625, 0.0026149749755859375, -0.01459503173828125, 0.01450347900390625, 0.05682373046875, 0.0616455078125, 0.00981903076171875, -0.024169921875, -0.0135650634765625, 0.0120086669921875, 0.01535797119140625, 0.029296875, -0.0037670135498046875, -0.016357421875, 0.00893402099609375, 0.012939453125, -0.0058135986328125, -0.05535888671875, 0.0228271484375, -0.031463623046875, -0.0242462158203125, 0.00824737548828125, -0.0153656005859375, -0.01123809814453125, 0.00545501708984375, 0.062744140625, -0.03253173828125, 0.0173797607421875, -0.0173797607421875, 0.018585205078125, 0.03033447265625, -0.0098419189453125, 0.00942230224609375, 0.043670654296875, -0.0203399658203125, -0.006587982177734375, 0.030609130859375, -0.040374755859375, 0.003971099853515625, 0.006809234619140625, 0.00323486328125, -0.018096923828125, -0.02044677734375, -0.0279541015625, 0.0220489501953125, -0.03253173828125, -0.03985595703125, 0.060333251953125, -0.026153564453125, -0.0019207000732421875, -0.045501708984375, 0.0247650146484375, 0.01284027099609375, -0.007030487060546875, 0.06292724609375, -0.006786346435546875, 0.00838470458984375, 0.00899505615234375, -0.0275115966796875, -0.02435302734375, 0.0157318115234375, -0.0447998046875, -0.0049591064453125, 0.005275726318359375 ]
ea4edeb4b07836ba19fa33ee28a79337e31535b2
Wordpress Stackexchange Q: Is there an easy way to migrate a site from SiteFinity to WordPress? Has anyone ever migrated a site from SiteFinity to WordPress? I've got a large (1,200+ page) site that I'm transitioning over to WordPress and I'm not looking forward to the content migration. Does anyone know of a tool, trick or plugin to make this easier? A: It would appear that as of today, there is no easy automated way to do the migration. Closing this out.
Q: Is there an easy way to migrate a site from SiteFinity to WordPress? Has anyone ever migrated a site from SiteFinity to WordPress? I've got a large (1,200+ page) site that I'm transitioning over to WordPress and I'm not looking forward to the content migration. Does anyone know of a tool, trick or plugin to make this easier? A: It would appear that as of today, there is no easy automated way to do the migration. Closing this out. A: Our service offers this option (not for free though :-) )
wordpress
{ "language": "en", "length": 92, "provenance": "stackexchange_00019.jsonl.gz:418595", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47464" }
[ 0.031829833984375, 0.0311737060546875, -0.014190673828125, 0.02392578125, 0.038726806640625, -0.0447998046875, 0.0565185546875, -0.05743408203125, 0.023529052734375, -0.0190582275390625, -0.017669677734375, -0.0103759765625, -0.01256561279296875, -0.05059814453125, 0.0242919921875, -0.0288543701171875, 0.0253448486328125, 0.00011563301086425781, 0.017974853515625, -0.005901336669921875, -0.001949310302734375, 0.00873565673828125, 0.061370849609375, 0.0240020751953125, 0.036590576171875, -0.0279693603515625, 0.01458740234375, -0.00753021240234375, 0.00246429443359375, -0.0212860107421875, 0.0154876708984375, 0.01329803466796875, 0.00850677490234375, -0.00756072998046875, -0.0109100341796875, -0.005962371826171875, 0.0101318359375, -0.006610870361328125, -0.0086822509765625, 0.040252685546875, 0.017791748046875, -0.016845703125, -0.007488250732421875, 0.043548583984375, -0.0201873779296875, -0.0489501953125, 0.034637451171875, -0.03631591796875, 0.0178070068359375, -0.032073974609375, 0.01340484619140625, 0.0037326812744140625, 0.032623291015625, -0.0341796875, -0.020172119140625, -0.01012420654296875, 0.01428985595703125, -0.03155517578125, 0.023712158203125, -0.0217132568359375, -0.0306854248046875, -0.005615234375, 0.030029296875, -0.0018873214721679688, -0.006500244140625, 0.0182342529296875, -0.052520751953125, 0.01507568359375, -0.00919342041015625, 0.01450347900390625, 0.00733184814453125, -0.044830322265625, 0.01194000244140625, 0.01617431640625, -0.029052734375, -0.01369476318359375, 0.015960693359375, -0.005687713623046875, 0.030242919921875, 0.0010843276977539062, 0.0031299591064453125, -0.01715087890625, 0.0029582977294921875, -0.0867919921875, 0.043792724609375, -0.023590087890625, -0.00028634071350097656, 0.0009102821350097656, -0.0017614364624023438, -0.0090789794921875, 0.006824493408203125, 0.03131103515625, -0.0701904296875, 0.0177764892578125, 0.0090484619140625, -0.040985107421875, -0.049346923828125, -0.0243377685546875, -0.0128936767578125, 0.031982421875, 0.02276611328125, -0.034576416015625, 0.0615234375, -0.034393310546875, -0.0289154052734375, -0.047210693359375, -0.0123291015625, -0.0086822509765625, 0.0026912689208984375, 0.0595703125, -0.0469970703125, -0.022979736328125, 0.033721923828125, 0.0083770751953125, -0.032989501953125, 0.02301025390625, 0.0249786376953125, 0.0123748779296875, 0.00325775146484375, 0.01727294921875, -0.034515380859375, 0.007343292236328125, -0.071533203125, 0.002445220947265625, 0.0174713134765625, -0.0026569366455078125, 0.01198577880859375, 0.031646728515625, -0.00750732421875, -0.024017333984375, -0.00926971435546875, 0.0250091552734375, 0.043609619140625, 0.06298828125, 0.0079498291015625, 0.0004470348358154297, 0.0214080810546875, -0.013427734375, -0.003021240234375, 0.00675201416015625, 0.020233154296875, -0.043121337890625, -0.039764404296875, -0.0018291473388671875, 0.01568603515625, 0.007080078125, 0.033721923828125, 0.0271759033203125, -0.0030460357666015625, -0.02191162109375, 0.00867462158203125, 0.0239715576171875, 0.0136566162109375, -0.0084228515625, 0.0187530517578125, -0.080810546875, -0.01546478271484375, -0.03643798828125, 0.093017578125, -0.0338134765625, -0.018646240234375, 0.01096343994140625, 0.0714111328125, 0.00751495361328125, 0.0183563232421875, -0.004596710205078125, -0.052398681640625, -0.0031719207763671875, 0.030426025390625, -0.0174102783203125, 0.0316162109375, -0.017181396484375, 0.0235137939453125, -0.00418853759765625, -0.0029659271240234375, 0.0233917236328125, 0.007648468017578125, 0.0139312744140625, 0.013824462890625, -0.0018968582153320312, 0.00868988037109375, -0.025482177734375, 0.051605224609375, 0.003086090087890625, -0.0106964111328125, -0.032012939453125, 0.02862548828125, 0.001659393310546875, 0.0236968994140625, 0.0207366943359375, 0.03717041015625, 0.0017232894897460938, -0.0021152496337890625, -0.00445556640625, 0.0245361328125, -0.037017822265625, 0.0192413330078125, -0.0195465087890625, 0.0192108154296875, -0.01274871826171875, -0.0302581787109375, 0.01474761962890625, -0.000056743621826171875, 0.04193115234375, 0.02899169921875, 0.01425933837890625, -0.0009207725524902344, 0.0223541259765625, 0.020263671875, 0.018035888671875, -0.005565643310546875, 0.00984954833984375, -0.019500732421875, -0.0164642333984375, -0.040802001953125, 0.00589752197265625, 0.0012969970703125, -0.0107269287109375, -0.0165252685546875, -0.0391845703125, 0.00814056396484375, -0.0035381317138671875, -0.007579803466796875, 0.04669189453125, -0.0163116455078125, -0.055694580078125, -0.0281524658203125, -0.038787841796875, -0.0413818359375, -0.01326751708984375, 0.00399017333984375, 0.05584716796875, 0.01128387451171875, -0.01337432861328125, -0.030029296875, 0.0189056396484375, -0.0081634521484375, -0.036651611328125, -0.0193939208984375, 0.047027587890625, 0.0291290283203125, 0.0016536712646484375, 0.00957489013671875, 0.013580322265625, 0.0189971923828125, -0.0718994140625, -0.01132965087890625, 0.0152130126953125, 0.0171966552734375, 0.05908203125, 0.01235198974609375, -0.0222930908203125, 0.0013666152954101562, -0.06390380859375, 0.006130218505859375, 0.01556396484375, 0.01084136962890625, 0.035614013671875, 0.004497528076171875, -0.0309295654296875, -0.0011262893676757812, -0.0303192138671875, -0.04095458984375, -0.0010309219360351562, 0.01419830322265625, 0.0167694091796875, 0.05438232421875, 0.0390625, -0.0211029052734375, -0.0005259513854980469, 0.007465362548828125, 0.0166168212890625, 0.002285003662109375, 0.0140228271484375, 0.0653076171875, 0.0008959770202636719, -0.04278564453125, -0.0190582275390625, 0.044189453125, 0.022003173828125, -0.0059814453125, 0.0328369140625, 0.004726409912109375, -0.0186614990234375, 0.00803375244140625, 0.00997161865234375, -0.0042724609375, 0.0018978118896484375, -0.032989501953125, -0.012237548828125, 0.024810791015625, -0.014129638671875, -0.030059814453125, -0.001148223876953125, -0.006580352783203125, -0.0189971923828125, 0.07647705078125, -0.08612060546875, 0.039398193359375, -0.06475830078125, 0.02606201171875, 0.0400390625, 0.01056671142578125, -0.054534912109375, -0.004558563232421875, 0.053253173828125, 0.05157470703125, -0.0283355712890625, -0.01097869873046875, 0.0205841064453125, -0.05322265625, -0.030914306640625, 0.01226806640625, 0.001857757568359375, -0.002674102783203125, -0.0352783203125, -0.00472259521484375, -0.00713348388671875, -0.07513427734375, -0.02362060546875, -0.081787109375, -0.05865478515625, 0.01528167724609375, 0.0048828125, -0.00853729248046875, 0.003582000732421875, 0.034576416015625, 0.035797119140625, 0.00574493408203125, -0.03076171875, -0.036376953125, -0.050689697265625, -0.07611083984375, -0.049224853515625, 0.0262603759765625, 0.0054931640625, 0.0267791748046875, -0.035675048828125, -0.0002880096435546875, -0.053009033203125, 0.0016126632690429688, 0.05322265625, -0.035491943359375, -0.0219268798828125, 0.018585205078125, -0.0576171875, 0.0044708251953125, -0.00321197509765625, 0.0282135009765625, 0.0196075439453125, 0.00428009033203125, 0.007511138916015625, -0.01264190673828125, 0.0287017822265625, -0.037017822265625, -0.02166748046875, 0.0552978515625, -0.034149169921875, -0.09161376953125, -0.07891845703125, -0.0113372802734375, 0.033203125, -0.01654052734375, 0.003948211669921875, -0.00007796287536621094, -0.039703369140625, 0.01074981689453125, 0.004550933837890625, -0.01393890380859375, -0.0220947265625, 0.0196685791015625, -0.03271484375, 0.01058197021484375, -0.01251220703125, -0.007083892822265625, -0.01175689697265625, 0.004016876220703125, -0.0458984375, 0.03729248046875, -0.0079345703125, -0.033203125, -0.0168609619140625, -0.0086517333984375, -0.0233001708984375, -0.08740234375, 0.041748046875, -0.02984619140625, 0.00382232666015625, -0.040802001953125, -0.0248565673828125, 0.0064849853515625, 0.130126953125, -0.029205322265625, -0.0123748779296875, 0.0195159912109375, 0.0012502670288085938, 0.00972747802734375, 0.0208740234375, -0.04388427734375, -0.033843994140625, -0.0440673828125, 0.0030498504638671875, -0.01727294921875, -0.033721923828125, -0.0004677772521972656, -0.038604736328125, -0.0192413330078125, -0.04150390625, 0.00965118408203125, -0.050537109375, 0.0186309814453125, 0.0011806488037109375, 0.0089874267578125, -0.033294677734375, 0.0200958251953125, -0.06756591796875, -0.06585693359375, -0.01074981689453125, -0.00640869140625, 0.0177001953125, -0.010406494140625, 0.006011962890625, 0.004123687744140625, 0.0330810546875, -0.015045166015625, -0.01055908203125, 0.00034689903259277344, 0.02532958984375, -0.007091522216796875, -0.0299224853515625, -0.01541900634765625, -0.038604736328125, -0.0263519287109375, -0.08251953125, -0.01561737060546875, -0.054840087890625, -0.0246429443359375, 0.02655029296875, -0.0234832763671875, 0.03131103515625, -0.00421142578125, -0.0024871826171875, -0.06195068359375, 0.012481689453125, -0.046783447265625, -0.01271820068359375, -0.0172882080078125, -0.04571533203125, 0.0452880859375, -0.02154541015625, 0.0079803466796875, 0.01654052734375, 0.0648193359375, 0.00011408329010009766, -0.012664794921875, -0.053955078125, -0.00238800048828125, 0.0309295654296875, 0.033172607421875, 0.031158447265625, -0.0199127197265625, -0.0201873779296875, 0.07867431640625, -0.003849029541015625, -0.0010099411010742188, 0.019378662109375, -0.0095062255859375, 0.03741455078125, -0.001636505126953125, 0.004604339599609375, 0.04559326171875, -0.0029296875, 0.01125335693359375, -0.0218963623046875, -0.00942230224609375, -0.021331787109375, 0.025665283203125, -0.016693115234375, 0.03912353515625, -0.03485107421875, -0.02020263671875, 0.00704193115234375, 0.0033016204833984375, 0.007129669189453125, 0.00001621246337890625, 0.0037784576416015625, 0.011077880859375, 0.017730712890625, 0.0099639892578125, -0.0239715576171875, -0.0121002197265625, -0.0240020751953125, 0.018798828125, -0.00594329833984375, 0.01285552978515625, -0.0027904510498046875, 0.002460479736328125, 0.0260162353515625, -0.0006814002990722656, -0.052642822265625, 0.0228424072265625, -0.027435302734375, -0.00396728515625, 0.03460693359375, -0.0278472900390625, 0.0251312255859375, 0.041290283203125, -0.0278167724609375, 0.0189361572265625, -0.0123443603515625, -0.0104217529296875, -0.04742431640625, -0.0198822021484375, -0.017425537109375, -0.01186370849609375, 0.07086181640625, -0.0020732879638671875, -0.016326904296875, 0.05206298828125, -0.0187225341796875, -0.0042572021484375, 0.0026111602783203125, 0.004711151123046875, 0.015838623046875, -0.004589080810546875, -0.00537109375, -0.0014820098876953125, 0.031982421875, 0.00536346435546875, -0.0182647705078125, 0.0127105712890625, 0.024444580078125, -0.02215576171875, -0.002460479736328125, 0.0135650634765625, -0.0156402587890625, -0.004940032958984375, 0.0097503662109375, -0.0214996337890625, -0.03521728515625, -0.01422119140625, 0.00701141357421875, 0.01425933837890625, -0.012481689453125, 0.017425537109375, -0.039947509765625, -0.004703521728515625, -0.00321197509765625, 0.029205322265625, -0.00728607177734375, -0.016143798828125, -0.0287933349609375, 0.022308349609375, -0.0109100341796875, -0.03594970703125, -0.037689208984375, 0.005306243896484375, -0.0226898193359375, -0.007518768310546875, 0.045562744140625, -0.0211944580078125, 0.0172576904296875, -0.052001953125, 0.00783538818359375, -0.0251617431640625, 0.01073455810546875, 0.038482666015625, 0.01517486572265625, -0.023345947265625, -0.02044677734375, -0.0516357421875, -0.02447509765625, 0.0005016326904296875, -0.013916015625, -0.00270843505859375, 0.00045609474182128906, 0.00385284423828125, 0.001155853271484375, -0.0131988525390625, -0.04364013671875, -0.007305145263671875, 0.018402099609375, 0.01432037353515625, -0.057708740234375, 0.002288818359375, -0.00007075071334838867, 0.05670166015625, 0.0235443115234375, 0.049224853515625, 0.0129241943359375, -0.0229034423828125, -0.042633056640625, 0.0261993408203125, -0.04473876953125, -0.01519775390625, -0.0428466796875, 0.00446319580078125, 0.008270263671875, 0.01023101806640625, -0.0191650390625, 0.01317596435546875, -0.053497314453125, -0.0036334991455078125, -0.03240966796875, 0.050079345703125, -0.06219482421875, -0.0034503936767578125, -0.0052337646484375, 0.01617431640625, 0.02362060546875, -0.0263824462890625, 0.0096893310546875, -0.0435791015625, 0.01300048828125, -0.029571533203125, -0.0038318634033203125, -0.02178955078125, 0.035858154296875, 0.04632568359375, -0.042999267578125, 0.0008153915405273438, 0.00893402099609375, -0.031707763671875, 0.0134735107421875, 0.023284912109375, -0.05621337890625, -0.026092529296875, -0.0023040771484375, -0.00009763240814208984, -0.0386962890625, -0.0239715576171875, -0.0182952880859375, 0.0180206298828125, 0.033294677734375, 0.09228515625, -0.0640869140625, 0.017364501953125, 0.053924560546875, -0.016265869140625, 0.0033245086669921875, -0.0241546630859375, -0.03375244140625, -0.04302978515625, 0.047454833984375, 0.03753662109375, -0.024444580078125, 0.01406097412109375, 0.0233306884765625, 0.01128387451171875, 0.014923095703125, 0.01715087890625, 0.0140838623046875, -0.00553131103515625, -0.0148773193359375, -0.004817962646484375, 0.0220794677734375, -0.033935546875, -0.02203369140625, 0.0252227783203125, -0.0192413330078125, -0.06451416015625, 0.04736328125, -0.04498291015625, 0.04559326171875, -0.005584716796875, -0.0064239501953125, 0.051513671875, 0.04205322265625, 0.0016603469848632812, -0.0126953125, 0.0081024169921875, 0.0249786376953125, -0.02301025390625, -0.00759124755859375, 0.0389404296875, -0.0094451904296875, -0.031890869140625, 0.01529693603515625, -0.034454345703125, -0.037628173828125, -0.0208282470703125, 0.0186614990234375, 0.11187744140625, 0.025146484375, -0.047637939453125, 0.05426025390625, 0.0238494873046875, -0.06561279296875, 0.03485107421875, 0.020294189453125, -0.03875732421875, -0.04986572265625, 0.0364990234375, -0.0693359375, -0.0390625, 0.0140380859375, -0.0330810546875, 0.11114501953125, 0.005603790283203125, -0.002498626708984375, 0.0213165283203125, 0.056121826171875, -0.040069580078125, 0.0369873046875, -0.0269622802734375, 0.08172607421875, 0.04168701171875, -0.004425048828125, -0.0160064697265625, 0.006351470947265625, 0.00835418701171875, -0.0006222724914550781, 0.021392822265625, 0.01198577880859375, -0.05487060546875, -0.01393890380859375, 0.040985107421875, 0.0511474609375, 0.038848876953125, 0.047149658203125, -0.01357269287109375, 0.0173492431640625, 0.025726318359375, -0.0550537109375, 0.01593017578125, -0.01068115234375, -0.01171112060546875, -0.01241302490234375, 0.0202178955078125, 0.031890869140625, -0.007358551025390625, -0.010467529296875, -0.0245513916015625, -0.0016374588012695312, 0.00974273681640625, 0.02911376953125, 0.015655517578125, 0.0118408203125, -0.00579833984375, 0.014495849609375, 0.044464111328125, -0.027740478515625, 0.04931640625, -0.021881103515625, 0.044189453125, 0.00809478759765625, 0.0269622802734375, 0.0738525390625, -0.04742431640625, 0.00888824462890625, 0.031524658203125, -0.05316162109375, 0.044830322265625, -0.01300048828125, 0.0244598388671875, -0.05755615234375, -0.0538330078125, 0.0095062255859375, 0.06390380859375, -0.005413055419921875, -0.0360107421875, 0.0084075927734375, 0.0109710693359375, 0.0386962890625, -0.006805419921875, 0.061859130859375, -0.0361328125, -0.0208282470703125, -0.01438140869140625, -0.001392364501953125, 0.005649566650390625, -0.014678955078125, 0.005817413330078125, 0.04718017578125, 0.0118408203125, 0.03167724609375, -0.038909912109375, 0.018310546875, 0.03240966796875, 0.029693603515625, -0.0159759521484375, 0.06036376953125, 0.01543426513671875, -0.0030345916748046875, 0.001964569091796875, -0.004360198974609375, 0.004974365234375, -0.012603759765625, -0.02655029296875, -0.019195556640625, 0.01629638671875, 0.05096435546875, 0.004520416259765625, 0.005298614501953125, 0.033782958984375, 0.052520751953125, 0.0299530029296875, -0.027801513671875, 0.0261383056640625, -0.00803375244140625, 0.052337646484375, -0.03131103515625, 0.005405426025390625, 0.00238037109375, -0.0216827392578125, -0.0208587646484375, -0.00908660888671875, 0.056854248046875, 0.0010213851928710938, 0.0073089599609375, 0.016571044921875, -0.0256500244140625, 0.02716064453125, 0.01342010498046875, 0.043212890625, 0.0252838134765625, -0.043792724609375, -0.035888671875, 0.01305389404296875, 0.00862884521484375, -0.0035419464111328125, 0.04241943359375, 0.00974273681640625, -0.0011892318725585938, -0.015350341796875, -0.006549835205078125, 0.0036220550537109375, 0.01171875, -0.00865936279296875, 0.03839111328125, 0.033660888671875, 0.00980377197265625, -0.05987548828125, -0.04241943359375, -0.058563232421875, 0.05841064453125, 0.0132904052734375, 0.09747314453125, -0.03509521484375, 0.042694091796875, -0.0109100341796875, -0.041259765625, 0.0294036865234375, -0.0019588470458984375, -0.0162353515625, 0.0222015380859375, -0.0153656005859375, -0.007503509521484375, -0.07537841796875, -0.023193359375, -0.006748199462890625, -0.0230560302734375, -0.0243682861328125, -0.0340576171875, 0.036041259765625, 0.048828125, 0.005542755126953125, -0.0462646484375, -0.03759765625, -0.062408447265625, -0.00783538818359375, 0.010345458984375, -0.0268096923828125, -0.026123046875, 0.07000732421875, 0.044647216796875, 0.0131683349609375, -0.01263427734375, -0.03729248046875, -0.0017423629760742188, 0.0242767333984375, 0.05181884765625, -0.04547119140625, 0.036895751953125, 0.0010786056518554688, -0.0222015380859375, 0.035003662109375, 0.00923919677734375, 0.058685302734375, -0.083251953125, 0.016693115234375, 0.01441192626953125, 0.0218048095703125, -0.0265960693359375, -0.0152587890625, 0.02325439453125, -0.00780487060546875, -0.0003380775451660156, 0.02801513671875, -0.033599853515625, 0.0028057098388671875, 0.0014486312866210938, -0.006603240966796875, 0.00983428955078125, -0.0185546875, -0.0113983154296875, -0.03826904296875, 0.047271728515625, 0.0169830322265625, -0.0309906005859375, 0.021453857421875, -0.021575927734375, -0.014617919921875, 0.0143585205078125, -0.03570556640625, 0.0081939697265625, -0.0130615234375, -0.07012939453125, -0.046295166015625, -0.041351318359375, 0.02044677734375, -0.05816650390625, 0.04803466796875, 0.0828857421875, -0.05462646484375, -0.0025730133056640625, -0.0157012939453125, 0.043914794921875, 0.02227783203125, -0.025909423828125, -0.0222320556640625, 0.017852783203125, -0.01050567626953125, -0.0142364501953125, 0.0017223358154296875, 0.01325225830078125, -0.0204620361328125, -0.0300140380859375, -0.02508544921875, -0.026763916015625, -0.0216522216796875, -0.061859130859375, -0.11767578125, 0.0156097412109375, -0.020843505859375, -0.050323486328125, -0.0526123046875, -0.0027179718017578125, 0.00653076171875, 0.004749298095703125, -0.021240234375, -0.033599853515625, -0.031280517578125, 0.0498046875, 0.0194244384765625, 0.03369140625, -0.010711669921875, -0.000027477741241455078, -0.00725555419921875, 0.06787109375, 0.0650634765625, 0.0396728515625, 0.041351318359375, -0.0041656494140625, 0.0248870849609375, 0.042022705078125, -0.02667236328125, -0.0134735107421875, -0.0256195068359375, -0.049835205078125, -0.021575927734375, 0.0056304931640625, -0.0112152099609375, -0.0216064453125, 0.0321044921875, 0.037078857421875, -0.0013875961303710938, -0.009368896484375, -0.0007305145263671875, 0.00249481201171875, -0.016845703125, -0.0272216796875, -0.0002703666687011719, -0.043060302734375, -0.0259552001953125, -0.0250091552734375, 0.025848388671875, 0.037353515625, -0.041351318359375, 0.013397216796875, -0.019805908203125, 0.00213623046875, 0.0197296142578125, -0.05914306640625, 0.00408172607421875, 0.034698486328125, -0.022308349609375, 0.023193359375, 0.02886962890625, -0.00026297569274902344, 0.032867431640625, 0.030914306640625, -0.0257415771484375, -0.0281219482421875, -0.005580902099609375, -0.004283905029296875, -0.0160064697265625, 0.051483154296875, -0.004016876220703125, -0.022491455078125, -0.01261138916015625, 0.0078277587890625, 0.016998291015625, 0.03448486328125, -0.01357269287109375, 0.0249176025390625, -0.002956390380859375, 0.0234375, 0.0092010498046875, 0.04498291015625, -0.0059661865234375, 0.051849365234375, -0.0687255859375, -0.0121612548828125, -0.03887939453125, -0.043548583984375, 0.005992889404296875, 0.00417327880859375, -0.0062408447265625, -0.01059722900390625, 0.009796142578125, -0.034576416015625, -0.0200042724609375, 0.00023877620697021484 ]
5db2adc3e40de859cbf8bf2fb9c8a905c97be093
Wordpress Stackexchange Q: why does twenty eleven theme mix up the css measurement units? I'm wondering why does WordPress's default theme mix up the css measurement units? For example: .one-column.singular #author-info { margin: 2.2em -8.8% 0; padding: 20px 8.8%;} Wouldn't be easier to understand and to work if all them were pixel based? Thanks A: Its just a css thing... while the distance from the top object is to remain permenant the distance from a side object is relative and those changes (sometimes) as the screen resulotion changes.. That prevents smaller screens from having a broken site. Anyhow thats the old way to go about it (in a matter of speaking) since "Responsive website design" is the modern way to control website fluidity...
Q: why does twenty eleven theme mix up the css measurement units? I'm wondering why does WordPress's default theme mix up the css measurement units? For example: .one-column.singular #author-info { margin: 2.2em -8.8% 0; padding: 20px 8.8%;} Wouldn't be easier to understand and to work if all them were pixel based? Thanks A: Its just a css thing... while the distance from the top object is to remain permenant the distance from a side object is relative and those changes (sometimes) as the screen resulotion changes.. That prevents smaller screens from having a broken site. Anyhow thats the old way to go about it (in a matter of speaking) since "Responsive website design" is the modern way to control website fluidity...
wordpress
{ "language": "en", "length": 121, "provenance": "stackexchange_00019.jsonl.gz:418634", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47581" }
[ -0.048919677734375, -0.042205810546875, -0.0177764892578125, 0.01357269287109375, -0.06024169921875, 0.00275421142578125, -0.01190185546875, 0.007411956787109375, -0.033203125, 0.031585693359375, -0.0250244140625, 0.0242462158203125, 0.0221710205078125, -0.02789306640625, 0.0259857177734375, -0.036376953125, 0.0318603515625, -0.03289794921875, -0.017181396484375, -0.01232147216796875, 0.00478363037109375, 0.0034618377685546875, -0.0204010009765625, 0.0207672119140625, 0.044769287109375, -0.03973388671875, 0.040985107421875, 0.0039043426513671875, 0.0191802978515625, -0.01424407958984375, 0.0292816162109375, -0.006237030029296875, 0.035980224609375, 0.0430908203125, -0.07611083984375, 0.0238494873046875, -0.01517486572265625, 0.0236358642578125, -0.037628173828125, 0.06500244140625, 0.01058197021484375, 0.0012302398681640625, 0.0255279541015625, 0.0016002655029296875, -0.0006222724914550781, -0.068359375, 0.04144287109375, -0.0293426513671875, 0.01032257080078125, -0.0214080810546875, 0.01146697998046875, -0.00849151611328125, 0.043060302734375, -0.03924560546875, -0.02496337890625, -0.0262603759765625, 0.02752685546875, -0.0111541748046875, 0.0244140625, -0.019989013671875, -0.031463623046875, -0.0019521713256835938, 0.01885986328125, -0.01207733154296875, 0.007122039794921875, -0.018096923828125, 0.0118865966796875, 0.03192138671875, -0.0312042236328125, -0.006626129150390625, 0.03704833984375, -0.01198577880859375, -0.01120758056640625, 0.005123138427734375, -0.0198974609375, -0.02099609375, 0.01666259765625, -0.012298583984375, 0.007659912109375, 0.024993896484375, 0.0078277587890625, -0.00414276123046875, -0.0182647705078125, -0.04986572265625, 0.020751953125, -0.009521484375, -0.0074462890625, -0.0015716552734375, -0.0751953125, -0.00702667236328125, -0.033660888671875, -0.034027099609375, -0.088623046875, -0.0015926361083984375, 0.018096923828125, -0.00762176513671875, 0.0081939697265625, 0.0186614990234375, 0.0256805419921875, -0.0100555419921875, 0.0215911865234375, -0.048797607421875, 0.0033588409423828125, -0.0064849853515625, 0.0184478759765625, 0.055694580078125, -0.00986480712890625, 0.02703857421875, 0.060394287109375, 0.0205230712890625, 0.02545166015625, 0.0205230712890625, -0.00968170166015625, -0.031219482421875, -0.0182342529296875, -0.00881195068359375, -0.032379150390625, 0.0264892578125, 0.01491546630859375, 0.0074462890625, 0.0035076141357421875, -0.00902557373046875, 0.02587890625, 0.023834228515625, -0.0186767578125, -0.0240325927734375, -0.03363037109375, 0.00829315185546875, -0.04522705078125, 0.0261383056640625, -0.046112060546875, -0.01045989990234375, 0.059478759765625, 0.02777099609375, 0.0018205642700195312, -0.040557861328125, 0.042449951171875, 0.002101898193359375, -0.003429412841796875, 0.043304443359375, -0.04669189453125, -0.0322265625, 0.0185089111328125, -0.0015535354614257812, -0.046142578125, 0.0138702392578125, 0.039154052734375, 0.03729248046875, -0.036895751953125, -0.07275390625, 0.011688232421875, -0.002685546875, 0.031768798828125, -0.01155853271484375, -0.0164337158203125, 0.000024974346160888672, 0.00974273681640625, -0.00439453125, -0.050262451171875, -0.004016876220703125, -0.0259246826171875, 0.0023708343505859375, 0.05267333984375, -0.036865234375, -0.01025390625, -0.0032444000244140625, -0.0310211181640625, -0.0131378173828125, 0.0239715576171875, 0.030670166015625, -0.0283660888671875, -0.0246429443359375, -0.0167694091796875, 0.038787841796875, 0.0084228515625, 0.048583984375, -0.00506591796875, 0.00998687744140625, 0.03936767578125, -0.0026683807373046875, -0.00047326087951660156, -0.01000213623046875, 0.077392578125, -0.01311492919921875, -0.023040771484375, 0.00016796588897705078, 0.024078369140625, 0.02880859375, 0.0128326416015625, 0.01157379150390625, 0.017547607421875, 0.01904296875, -0.04412841796875, 0.011688232421875, 0.01427459716796875, -0.01552581787109375, -0.0033817291259765625, -0.01071929931640625, 0.004978179931640625, 0.003505706787109375, -0.037017822265625, 0.0253448486328125, -0.0020599365234375, 0.00475311279296875, -0.03466796875, 0.033172607421875, -0.0245208740234375, 0.055084228515625, -0.0283203125, 0.0145111083984375, 0.0139007568359375, -0.0128173828125, -0.015594482421875, -0.01233673095703125, -0.0007758140563964844, 0.0062103271484375, 0.047119140625, -0.0005698204040527344, -0.00885009765625, -0.0308990478515625, 0.00560760498046875, 0.0039215087890625, -0.00047898292541503906, 0.10986328125, 0.01947021484375, -0.0019235610961914062, -0.045684814453125, -0.00992584228515625, 0.035430908203125, -0.03448486328125, 0.06884765625, 0.0853271484375, 0.02392578125, 0.036041259765625, -0.013580322265625, 0.0139312744140625, 0.04998779296875, -0.003887176513671875, 0.0109405517578125, 0.017364501953125, 0.01438140869140625, 0.01168060302734375, 0.00011783838272094727, 0.03765869140625, 0.0061187744140625, -0.0312347412109375, 0.0167083740234375, 0.0158843994140625, 0.00965118408203125, 0.0098876953125, 0.041748046875, -0.0237274169921875, 0.01387786865234375, -0.065673828125, 0.01287078857421875, 0.027130126953125, -0.047393798828125, -0.0180816650390625, -0.037200927734375, 0.038848876953125, -0.0045318603515625, 0.01161956787109375, 0.014617919921875, -0.00583648681640625, 0.01190185546875, -0.0219268798828125, 0.0189361572265625, 0.00832366943359375, 0.005523681640625, -0.02886962890625, 0.0032329559326171875, -0.021514892578125, -0.007843017578125, -0.01486968994140625, -0.03814697265625, 0.0181121826171875, -0.013946533203125, 0.032196044921875, -0.017669677734375, -0.031585693359375, -0.01134490966796875, 0.0179901123046875, -0.0821533203125, -0.0159912109375, 0.01079559326171875, -0.02862548828125, -0.02545166015625, 0.0152435302734375, 0.02740478515625, -0.0269775390625, 0.0265350341796875, -0.0302581787109375, -0.040252685546875, 0.035491943359375, -0.0016040802001953125, -0.0714111328125, -0.01503753662109375, -0.01003265380859375, 0.0288848876953125, -0.04571533203125, 0.032806396484375, 0.045501708984375, -0.053070068359375, 0.04473876953125, 0.010223388671875, -0.0103607177734375, -0.0081634521484375, 0.0435791015625, 0.0188140869140625, -0.01049041748046875, -0.01177215576171875, 0.0044403076171875, 0.0199432373046875, -0.02264404296875, 0.0212860107421875, -0.0014820098876953125, -0.02569580078125, 0.0078277587890625, -0.09039306640625, -0.040863037109375, 0.04400634765625, -0.08697509765625, -0.0139923095703125, -0.03277587890625, -0.048095703125, -0.0165557861328125, 0.0026874542236328125, -0.01447296142578125, 0.040802001953125, -0.042877197265625, -0.053436279296875, -0.0550537109375, -0.07012939453125, -0.023223876953125, -0.0018625259399414062, -0.0213165283203125, 0.005321502685546875, -0.00396728515625, -0.011138916015625, -0.0177459716796875, -0.0008530616760253906, 0.048309326171875, 0.0020084381103515625, -0.05078125, 0.014984130859375, -0.0247802734375, -0.0256500244140625, 0.0163116455078125, -0.0174560546875, -0.0241546630859375, 0.00954437255859375, -0.03631591796875, -0.03643798828125, -0.0399169921875, -0.019805908203125, 0.054656982421875, 0.052337646484375, -0.0276336669921875, 0.046630859375, -0.0391845703125, -0.06402587890625, 0.0002944469451904297, -0.07012939453125, 0.0212554931640625, 0.06036376953125, -0.0210723876953125, -0.00911712646484375, -0.0114288330078125, 0.0196380615234375, -0.01806640625, 0.0347900390625, -0.046173095703125, 0.038299560546875, 0.009063720703125, 0.0289154052734375, -0.0313720703125, -0.04046630859375, -0.04217529296875, 0.032257080078125, -0.0305633544921875, 0.0019626617431640625, 0.005401611328125, 0.01348114013671875, 0.0164031982421875, -0.026947021484375, 0.03753662109375, -0.004779815673828125, 0.029083251953125, -0.0185089111328125, -0.01114654541015625, -0.01488494873046875, 0.08209228515625, -0.06573486328125, -0.024383544921875, 0.04180908203125, 0.047821044921875, -0.06060791015625, -0.04400634765625, -0.03662109375, -0.010498046875, -0.03363037109375, 0.0379638671875, 0.039306640625, -0.00020194053649902344, -0.0650634765625, 0.07745361328125, -0.056793212890625, -0.01280975341796875, 0.03253173828125, 0.036651611328125, -0.003963470458984375, -0.006175994873046875, -0.00908660888671875, -0.00017011165618896484, -0.00376129150390625, -0.0093841552734375, -0.055694580078125, -0.051544189453125, 0.01934814453125, 0.0889892578125, -0.0096588134765625, 0.013153076171875, -0.02313232421875, 0.06243896484375, -0.015716552734375, 0.01512908935546875, 0.00958251953125, 0.0150299072265625, 0.001079559326171875, 0.0038166046142578125, 0.01093292236328125, -0.0256500244140625, -0.0016183853149414062, 0.00508880615234375, -0.07135009765625, -0.00994110107421875, -0.021575927734375, -0.034576416015625, 0.035552978515625, -0.036376953125, -0.039520263671875, -0.08856201171875, 0.031646728515625, 0.01629638671875, 0.00986480712890625, 0.038787841796875, -0.09613037109375, 0.01245880126953125, 0.039520263671875, 0.027374267578125, -0.01123046875, -0.009307861328125, 0.031707763671875, 0.0099029541015625, -0.04302978515625, -0.0206451416015625, -0.016998291015625, 0.049346923828125, 0.04595947265625, 0.0182647705078125, 0.04327392578125, -0.0157928466796875, 0.0140533447265625, 0.04364013671875, 0.0128021240234375, -0.0189208984375, 0.05377197265625, -0.0168304443359375, -0.01055145263671875, 0.0176544189453125, -0.043487548828125, 0.013458251953125, 0.0293426513671875, 0.015899658203125, -0.0023288726806640625, 0.0239715576171875, -0.003910064697265625, 0.00681304931640625, -0.035552978515625, 0.00327301025390625, -0.016510009765625, 0.0012416839599609375, -0.033935546875, 0.059478759765625, 0.01114654541015625, 0.01001739501953125, 0.0234222412109375, 0.02880859375, -0.01348876953125, 0.00795745849609375, 0.01557159423828125, -0.01088714599609375, 0.0023403167724609375, 0.034027099609375, -0.046905517578125, 0.0051422119140625, -0.0174560546875, 0.09027099609375, 0.0596923828125, -0.03753662109375, 0.03277587890625, 0.011627197265625, 0.0258941650390625, -0.01548004150390625, -0.00260162353515625, 0.0308990478515625, -0.0177154541015625, 0.0001232624053955078, -0.00943756103515625, -0.0245513916015625, -0.0303955078125, -0.039794921875, 0.00919342041015625, -0.00885009765625, 0.003021240234375, 0.0655517578125, -0.0246124267578125, 0.0528564453125, 0.0001634359359741211, -0.050994873046875, -0.0200653076171875, -0.05474853515625, 0.06317138671875, 0.028106689453125, -0.036407470703125, 0.026885986328125, 0.0307464599609375, 0.01412200927734375, -0.015716552734375, 0.01507568359375, 0.00849151611328125, 0.002086639404296875, 0.033233642578125, -0.005374908447265625, 0.0255279541015625, 0.0202178955078125, 0.0230865478515625, 0.00734710693359375, -0.04632568359375, -0.07421875, 0.021575927734375, 0.0118865966796875, -0.0167999267578125, -0.058990478515625, -0.031402587890625, -0.01953125, -0.0277557373046875, 0.0289764404296875, -0.01073455810546875, -0.003444671630859375, 0.0284423828125, 0.0273284912109375, -0.000843048095703125, -0.01552581787109375, -0.03448486328125, -0.036041259765625, -0.027984619140625, 0.004497528076171875, -0.00003463029861450195, 0.025421142578125, -0.035552978515625, 0.0257415771484375, -0.0235748291015625, 0.004138946533203125, -0.018096923828125, 0.022674560546875, 0.0247955322265625, 0.0016841888427734375, -0.030975341796875, -0.031280517578125, -0.0309295654296875, -0.0440673828125, 0.0034427642822265625, 0.004543304443359375, -0.0190887451171875, 0.0108642578125, 0.01485443115234375, 0.001117706298828125, -0.004711151123046875, -0.05316162109375, -0.007366180419921875, 0.033050537109375, 0.03863525390625, 0.00989532470703125, -0.04833984375, 0.02655029296875, 0.0188140869140625, -0.048370361328125, -0.008392333984375, 0.00765228271484375, 0.0172119140625, 0.01250457763671875, 0.0445556640625, 0.0005631446838378906, -0.027984619140625, -0.03460693359375, -0.012664794921875, -0.06549072265625, -0.005336761474609375, -0.026947021484375, 0.01088714599609375, 0.007053375244140625, 0.002201080322265625, -0.00690460205078125, 0.005397796630859375, -0.019989013671875, 0.0025539398193359375, -0.00775146484375, 0.038604736328125, 0.05438232421875, -0.0296783447265625, -0.050933837890625, -0.025390625, 0.00787353515625, -0.01491546630859375, 0.043060302734375, -0.024200439453125, 0.0212860107421875, 0.0265045166015625, -0.0248870849609375, 0.00827789306640625, 0.0174560546875, 0.0023365020751953125, 0.0042724609375, -0.04412841796875, -0.03936767578125, 0.033172607421875, -0.0300750732421875, -0.03717041015625, 0.015777587890625, -0.0164642333984375, 0.01381683349609375, -0.0008587837219238281, 0.05859375, 0.060333251953125, -0.0748291015625, -0.00783538818359375, 0.002197265625, -0.0224456787109375, 0.00801849365234375, 0.01032257080078125, -0.0153350830078125, -0.029937744140625, 0.0113525390625, 0.050537109375, -0.0006861686706542969, 0.019927978515625, 0.033447265625, 0.0124664306640625, 0.007419586181640625, 0.038482666015625, 0.0006246566772460938, -0.031158447265625, -0.020751953125, 0.020751953125, -0.0184173583984375, 0.0009021759033203125, 0.0157623291015625, -0.0232696533203125, -0.020965576171875, -0.0186309814453125, -0.024169921875, -0.02716064453125, -0.023590087890625, -0.0264129638671875, 0.0191802978515625, 0.0213775634765625, 0.0352783203125, -0.0240478515625, 0.01338958740234375, 0.007747650146484375, 0.0007491111755371094, 0.01374053955078125, 0.01404571533203125, 0.002338409423828125, -0.040069580078125, 0.0143585205078125, 0.007587432861328125, -0.042266845703125, 0.005649566650390625, -0.0066986083984375, -0.014404296875, -0.007526397705078125, 0.00897979736328125, -0.0099639892578125, 0.05828857421875, 0.0246734619140625, -0.011260986328125, -0.00006949901580810547, 0.05780029296875, -0.059295654296875, -0.023345947265625, 0.0249481201171875, -0.01227569580078125, -0.0017757415771484375, -0.00548553466796875, -0.00970458984375, -0.03662109375, -0.03912353515625, -0.00958251953125, 0.0287017822265625, -0.0219879150390625, 0.0196533203125, -0.0236663818359375, -0.0007519721984863281, 0.013763427734375, -0.0190582275390625, -0.0390625, -0.03631591796875, -0.0187225341796875, -0.046173095703125, 0.038543701171875, 0.038543701171875, 0.00231170654296875, -0.0284881591796875, 0.0174713134765625, 0.08795166015625, 0.0240631103515625, -0.0030364990234375, 0.03759765625, 0.01226806640625, -0.01226806640625, -0.0007963180541992188, 0.06292724609375, 0.0496826171875, -0.00989532470703125, -0.06982421875, 0.0220489501953125, 0.014556884765625, 0.006866455078125, 0.0244598388671875, 0.03759765625, -0.07177734375, 0.0234832763671875, 0.05303955078125, 0.01122283935546875, 0.03515625, 0.043701171875, 0.073974609375, 0.00864410400390625, 0.0192413330078125, -0.0288238525390625, 0.061065673828125, 0.00675201416015625, -0.0224151611328125, 0.046539306640625, 0.0161285400390625, -0.0186004638671875, 0.00905609130859375, 0.0036907196044921875, 0.00582122802734375, 0.00628662109375, -0.0279083251953125, -0.048980712890625, 0.006824493408203125, -0.08441162109375, -0.00528717041015625, 0.022216796875, -0.00504302978515625, -0.01141357421875, -0.02227783203125, 0.00003743171691894531, -0.0289154052734375, -0.01332855224609375, -0.043182373046875, -0.0333251953125, -0.036834716796875, -0.0236968994140625, 0.0035457611083984375, -0.048248291015625, 0.003910064697265625, 0.00972747802734375, 0.0299835205078125, 0.0694580078125, 0.0198516845703125, -0.04876708984375, -0.0577392578125, -0.021820068359375, 0.004150390625, 0.08349609375, 0.034393310546875, 0.050537109375, -0.00881195068359375, -0.05126953125, -0.0526123046875, 0.005100250244140625, 0.01947021484375, 0.044036865234375, -0.0086822509765625, 0.07574462890625, -0.004734039306640625, 0.017578125, -0.0202178955078125, -0.0270233154296875, -0.00421905517578125, -0.0205841064453125, -0.048736572265625, -0.0300445556640625, -0.01187896728515625, -0.045013427734375, -0.032684326171875, -0.00860595703125, -0.003917694091796875, 0.054229736328125, 0.0167999267578125, 0.0018434524536132812, 0.024688720703125, 0.04193115234375, 0.0210723876953125, 0.0135955810546875, 0.0308837890625, -0.00408935546875, 0.0112457275390625, 0.03271484375, 0.00693511962890625, 0.06585693359375, -0.05584716796875, -0.0002696514129638672, -0.0240631103515625, -0.040985107421875, 0.01678466796875, 0.0361328125, -0.0047149658203125, 0.0014667510986328125, 0.024139404296875, -0.033538818359375, -0.0113677978515625, 0.040008544921875, 0.003173828125, 0.03302001953125, 0.005718231201171875, -0.0019016265869140625, -0.030853271484375, -0.01678466796875, -0.0128936767578125, 0.0477294921875, -0.0034694671630859375, 0.0308380126953125, -0.01519775390625, 0.024261474609375, 0.0491943359375, -0.0105133056640625, 0.00940704345703125, -0.016845703125, 0.0557861328125, -0.041839599609375, -0.0157012939453125, -0.00942230224609375, -0.032501220703125, -0.03326416015625, 0.0230712890625, -0.049102783203125, -0.016845703125, -0.0172576904296875, 0.0224456787109375, -0.00656890869140625, 0.00791168212890625, -0.031982421875, -0.019622802734375, -0.034210205078125, -0.018218994140625, 0.037811279296875, -0.0112457275390625, -0.036651611328125, 0.039215087890625, 0.006259918212890625, -0.0274810791015625, 0.036102294921875, -0.043365478515625, 0.028228759765625, 0.0189361572265625, 0.020416259765625, -0.0220794677734375, 0.0191497802734375, 0.00025653839111328125, 0.00696563720703125, 0.0167083740234375, 0.0185089111328125, 0.006134033203125, 0.00927734375, 0.059173583984375, 0.07745361328125, 0.050445556640625, -0.0313720703125, 0.004852294921875, 0.0975341796875, -0.01427459716796875, -0.00545501708984375, 0.046234130859375, 0.00910186767578125, 0.006992340087890625, -0.04193115234375, -0.01430511474609375, -0.01291656494140625, -0.0194244384765625, 0.004878997802734375, -0.017333984375, 0.020751953125, -0.0258636474609375, 0.004261016845703125, -0.00006133317947387695, -0.01407623291015625, -0.011260986328125, -0.0186767578125, 0.0309600830078125, -0.040374755859375, -0.043731689453125, -0.046600341796875, -0.06890869140625, -0.05487060546875, 0.08087158203125, -0.045654296875, 0.0179290771484375, 0.039764404296875, -0.01508331298828125, 0.0074310302734375, 0.00911712646484375, 0.00635528564453125, 0.07421875, -0.06085205078125, -0.023712158203125, 0.0135345458984375, 0.013153076171875, -0.0098876953125, -0.065673828125, -0.01490020751953125, -0.02459716796875, 0.0233612060546875, -0.0018568038940429688, -0.0250091552734375, -0.01373291015625, -0.043975830078125, -0.005062103271484375, -0.00374603271484375, 0.0255279541015625, -0.0278167724609375, -0.042266845703125, -0.03363037109375, -0.0185546875, 0.030426025390625, -0.02728271484375, 0.005558013916015625, -0.02593994140625, 0.06591796875, 0.011138916015625, -0.04296875, 0.0543212890625, -0.01374053955078125, -0.08319091796875, -0.005680084228515625, 0.0093841552734375, -0.0081024169921875, -0.012542724609375, 0.000050127506256103516, -0.0156402587890625, -0.00199127197265625, -0.0404052734375, -0.03167724609375, 0.01312255859375, 0.048797607421875, -0.041534423828125, 0.006011962890625, 0.007587432861328125, -0.009521484375, -0.0027618408203125, 0.05999755859375, -0.0229339599609375, -0.005199432373046875, -0.022613525390625, -0.0269927978515625, 0.00579071044921875, 0.0143280029296875, -0.003231048583984375, -0.044097900390625, 0.0012331008911132812, 0.030609130859375, -0.03741455078125, 0.06884765625, -0.027557373046875, -0.043975830078125, 0.0276641845703125, -0.0020503997802734375, -0.0001271963119506836, -0.02972412109375, -0.0287322998046875, -0.00850677490234375, -0.0131072998046875, -0.04412841796875, 0.004180908203125, 0.0309295654296875, -0.034942626953125, 0.01383209228515625, -0.0005478858947753906, 0.024444580078125, -0.032623291015625, 0.0160675048828125, 0.00521087646484375, 0.01641845703125, -0.03521728515625, -0.00396728515625, 0.00843048095703125, 0.02520751953125, -0.006160736083984375, 0.0538330078125, 0.01806640625, -0.007293701171875, -0.0214996337890625, -0.031707763671875, -0.00739288330078125, 0.0088348388671875, -0.03839111328125, 0.0687255859375, 0.0263824462890625, -0.042388916015625, 0.035980224609375, -0.0103607177734375, 0.013397216796875, -0.0007619857788085938, 0.024566650390625, -0.024200439453125, 0.0141448974609375, 0.01367950439453125, -0.004253387451171875, 0.01201629638671875 ]
956bc45a81eb1b2d0d8ae2d23e5da6740c9f282c
Wordpress Stackexchange Q: Custom metabox for menu administration page? I've been googleing around but failed to find a solution for my need. I'm using wordpress 3.0 and TwentyEleven theme as default pack. In the Dashboard -> appearance->menus that allow user can create menu items from Pages,Categories,and custom link. Now I want to add a box like those boxes above but it would list my custom-post-type's taxonomy and metadata. How can I accomplish with this task ? I know how to add metabox and taxonomy for custom post type but cannot do with this sort of thing. A: Just as a follow up for anybody looking to add their own meta boxes to the menu screen, you can do it by using 'nav-menus' for the post type: add_action( 'admin_init', 'my_add_meta_box' ); function my_add_meta_box() { add_meta_box( 'custom-meta-box', __('My meta box'), 'my_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); } function my_nav_menu_item_link_meta_box() { ?> <div class="custom-meta-box" id="custom-meta-box"> Your meta box content goes here </div> <?php } I hope that helps somebody!
Q: Custom metabox for menu administration page? I've been googleing around but failed to find a solution for my need. I'm using wordpress 3.0 and TwentyEleven theme as default pack. In the Dashboard -> appearance->menus that allow user can create menu items from Pages,Categories,and custom link. Now I want to add a box like those boxes above but it would list my custom-post-type's taxonomy and metadata. How can I accomplish with this task ? I know how to add metabox and taxonomy for custom post type but cannot do with this sort of thing. A: Just as a follow up for anybody looking to add their own meta boxes to the menu screen, you can do it by using 'nav-menus' for the post type: add_action( 'admin_init', 'my_add_meta_box' ); function my_add_meta_box() { add_meta_box( 'custom-meta-box', __('My meta box'), 'my_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); } function my_nav_menu_item_link_meta_box() { ?> <div class="custom-meta-box" id="custom-meta-box"> Your meta box content goes here </div> <?php } I hope that helps somebody! A: From the WordPress Codex Site: Custom Post Types and Taxonomies If you have added custom post types and taxonomies, those types will also be available to add as menu items. If you don't see your custom post types or taxonomies, check the Screen Options to insure those modules are set to display. You probably just have the display disabled. Try looking at the Screen Options for the menu page.
wordpress
{ "language": "en", "length": 233, "provenance": "stackexchange_00019.jsonl.gz:418651", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47628" }
[ 0.0687255859375, -0.00672149658203125, 0.0201416015625, -0.04022216796875, 0.00954437255859375, -0.00817108154296875, 0.0323486328125, -0.0283660888671875, -0.002044677734375, 0.01374053955078125, -0.01306915283203125, -0.01641845703125, -0.01337432861328125, -0.031402587890625, -0.0169525146484375, -0.039215087890625, 0.033538818359375, -0.0022754669189453125, 0.045135498046875, -0.006229400634765625, 0.00978851318359375, -0.0000013113021850585938, 0.0543212890625, 0.016510009765625, 0.049468994140625, -0.0819091796875, 0.002140045166015625, 0.0182342529296875, 0.0178375244140625, -0.0011720657348632812, 0.031524658203125, -0.0015106201171875, 0.01270294189453125, 0.00730133056640625, 0.01145172119140625, 0.07586669921875, 0.005084991455078125, 0.01812744140625, 0.0195770263671875, 0.0212860107421875, 0.02001953125, -0.01259613037109375, 0.0306396484375, -0.00978851318359375, 0.012054443359375, -0.04400634765625, 0.0390625, -0.049407958984375, 0.037078857421875, -0.0250701904296875, 0.02197265625, -0.01216888427734375, 0.034271240234375, -0.07177734375, -0.0249481201171875, -0.0240325927734375, -0.00884246826171875, -0.049591064453125, 0.0246429443359375, 0.0257568359375, 0.00372314453125, -0.02978515625, 0.0178070068359375, -0.01800537109375, -0.009490966796875, 0.01474761962890625, 0.021636962890625, 0.0024166107177734375, -0.0550537109375, -0.020721435546875, 0.03955078125, -0.03643798828125, 0.00244903564453125, -0.01263427734375, -0.01042938232421875, -0.024566650390625, 0.00881195068359375, -0.02734375, 0.0054931640625, 0.01117706298828125, 0.0245361328125, 0.0155181884765625, -0.01387786865234375, 0.0005125999450683594, 0.01197052001953125, 0.017120361328125, -0.0132904052734375, -0.031280517578125, -0.0091552734375, -0.0299530029296875, 0.000701904296875, -0.09332275390625, -0.0175628662109375, 0.019561767578125, 0.01776123046875, -0.05035400390625, 0.0182952880859375, 0.051025390625, -0.0207366943359375, 0.0268707275390625, -0.01494598388671875, -0.028533935546875, 0.048431396484375, -0.040740966796875, 0.00962066650390625, 0.01953125, -0.033355712890625, -0.0301513671875, 0.0257110595703125, 0.043304443359375, -0.01507568359375, -0.0044403076171875, 0.00640106201171875, -0.0030384063720703125, -0.03594970703125, -0.00293731689453125, -0.01137542724609375, -0.0218658447265625, 0.00009119510650634766, -0.024749755859375, 0.00304412841796875, 0.01715087890625, 0.038116455078125, -0.0305633544921875, 0.0221099853515625, 0.019622802734375, -0.039276123046875, -0.040069580078125, -0.03631591796875, 0.0012197494506835938, -0.036590576171875, -0.0010652542114257812, 0.05682373046875, 0.0794677734375, 0.02691650390625, -0.0196380615234375, 0.0174407958984375, -0.0188140869140625, -0.0036468505859375, 0.0070037841796875, -0.0129547119140625, -0.0228424072265625, 0.0086517333984375, -0.0121917724609375, -0.04278564453125, 0.033050537109375, 0.0214996337890625, -0.004909515380859375, -0.0247650146484375, -0.0701904296875, -0.01953125, -0.03314208984375, 0.0634765625, 0.0016393661499023438, -0.0297393798828125, 0.013641357421875, 0.045379638671875, -0.0286865234375, -0.066162109375, -0.044189453125, -0.033599853515625, -0.008544921875, 0.0313720703125, -0.00334930419921875, 0.00850677490234375, 0.01024627685546875, -0.0009555816650390625, 0.015869140625, 0.0160369873046875, 0.01776123046875, 0.00006765127182006836, -0.004642486572265625, -0.034088134765625, 0.01593017578125, 0.005641937255859375, 0.02001953125, 0.0267333984375, 0.0273590087890625, 0.009002685546875, 0.039154052734375, 0.0016002655029296875, -0.04730224609375, 0.06292724609375, -0.030914306640625, -0.04644775390625, 0.0173492431640625, 0.005901336669921875, 0.048614501953125, 0.0225982666015625, 0.01351165771484375, 0.0270843505859375, -0.00946044921875, -0.051422119140625, -0.008209228515625, 0.017303466796875, -0.0007739067077636719, -0.00787353515625, -0.0074615478515625, 0.0015687942504882812, 0.02032470703125, -0.05419921875, 0.01262664794921875, -0.004154205322265625, 0.034210205078125, -0.027740478515625, 0.0259552001953125, -0.021026611328125, 0.048828125, 0.0027923583984375, -0.01123046875, 0.0004611015319824219, -0.0465087890625, 0.0504150390625, -0.07806396484375, -0.035430908203125, 0.0389404296875, 0.0018787384033203125, 0.037811279296875, -0.01898193359375, 0.0233306884765625, -0.01143646240234375, -0.0267333984375, -0.0048828125, 0.041168212890625, 0.04400634765625, 0.007205963134765625, -0.030242919921875, 0.004871368408203125, 0.01299285888671875, 0.0377197265625, -0.054046630859375, 0.02557373046875, 0.031707763671875, -0.01548004150390625, -0.040557861328125, -0.014404296875, 0.006282806396484375, -0.07647705078125, -0.005031585693359375, 0.061126708984375, 0.0164337158203125, 0.0270233154296875, -0.0014657974243164062, 0.045135498046875, 0.033660888671875, -0.05328369140625, -0.0176849365234375, 0.033660888671875, -0.012481689453125, 0.0160980224609375, 0.0107269287109375, 0.0173492431640625, 0.029571533203125, 0.0176544189453125, 0.0023403167724609375, 0.033843994140625, -0.0224761962890625, -0.03173828125, 0.036224365234375, -0.029815673828125, 0.018096923828125, 0.023162841796875, -0.032684326171875, 0.020843505859375, 0.057586669921875, 0.0088653564453125, 0.06500244140625, 0.0479736328125, -0.019317626953125, -0.00392913818359375, -0.0020351409912109375, 0.019287109375, -0.01284027099609375, -0.01499176025390625, 0.003124237060546875, 0.0308074951171875, -0.05426025390625, 0.0284423828125, 0.01267242431640625, 0.0015764236450195312, -0.005523681640625, 0.043304443359375, -0.033416748046875, -0.003528594970703125, -0.00615692138671875, -0.0655517578125, -0.01169586181640625, 0.0172882080078125, 0.0101776123046875, -0.0188751220703125, 0.0218658447265625, -0.0072174072265625, -0.023895263671875, 0.0140228271484375, 0.01177215576171875, -0.034515380859375, 0.0200958251953125, -0.026580810546875, 0.043609619140625, -0.051544189453125, 0.04150390625, 0.047027587890625, -0.060577392578125, 0.037567138671875, -0.0030498504638671875, 0.0126953125, -0.03424072265625, 0.06439208984375, 0.0239410400390625, -0.05023193359375, 0.00228118896484375, -0.01654052734375, 0.0024547576904296875, -0.0283660888671875, 0.01079559326171875, -0.006298065185546875, -0.00823211669921875, -0.0164337158203125, -0.0279541015625, -0.00684356689453125, 0.0736083984375, -0.04034423828125, 0.00023031234741210938, -0.0238189697265625, -0.031890869140625, -0.040069580078125, 0.0107269287109375, -0.01470184326171875, 0.00554656982421875, -0.032379150390625, -0.0267333984375, -0.042327880859375, -0.05706787109375, -0.03118896484375, 0.0098876953125, 0.0008015632629394531, -0.0018911361694335938, 0.076904296875, 0.00640869140625, -0.07513427734375, 0.0082855224609375, 0.025970458984375, 0.011322021484375, 0.041351318359375, 0.0506591796875, -0.042236328125, 0.0013189315795898438, 0.0013256072998046875, 0.0224151611328125, 0.0149383544921875, -0.0296173095703125, -0.028839111328125, -0.0290374755859375, 0.01556396484375, 0.00925445556640625, 0.0161285400390625, 0.030914306640625, 0.029296875, 0.0281219482421875, -0.01558685302734375, 0.012725830078125, 0.0038623809814453125, -0.01192474365234375, -0.0017032623291015625, -0.0153656005859375, -0.01113128662109375, 0.01119232177734375, 0.01299285888671875, 0.0033245086669921875, 0.02398681640625, 0.04534912109375, -0.0029544830322265625, -0.033203125, -0.01467132568359375, -0.0254974365234375, -0.022369384765625, 0.0115203857421875, -0.01666259765625, 0.04864501953125, 0.00817108154296875, 0.0245208740234375, -0.0121612548828125, 0.039276123046875, -0.03082275390625, -0.07598876953125, 0.05499267578125, -0.027740478515625, 0.01226043701171875, -0.045196533203125, -0.02410888671875, 0.00897216796875, 0.115966796875, -0.061248779296875, -0.0138702392578125, 0.0247650146484375, 0.0100555419921875, 0.046295166015625, 0.0112457275390625, -0.0313720703125, -0.056793212890625, -0.10845947265625, 0.0195465087890625, 0.01207733154296875, -0.0361328125, -0.0271148681640625, 0.028656005859375, -0.07958984375, -0.031982421875, 0.0648193359375, -0.04595947265625, 0.007480621337890625, 0.02203369140625, 0.01531982421875, -0.0423583984375, -0.04498291015625, 0.0016794204711914062, -0.11737060546875, -0.02496337890625, -0.021881103515625, 0.07586669921875, -0.0012760162353515625, -0.006488800048828125, -0.0191650390625, 0.0565185546875, 0.0239715576171875, 0.0173797607421875, 0.035247802734375, 0.0125274658203125, 0.032257080078125, -0.0457763671875, 0.0275115966796875, -0.04010009765625, -0.017364501953125, 0.000011682510375976562, -0.01555633544921875, 0.041351318359375, -0.0047760009765625, -0.006397247314453125, 0.0263214111328125, -0.026336669921875, -0.0099945068359375, -0.07147216796875, -0.062164306640625, 0.003810882568359375, -0.01079559326171875, -0.0088958740234375, -0.075927734375, -0.04150390625, -0.031280517578125, -0.006610870361328125, -0.040313720703125, 0.04815673828125, 0.00650787353515625, 0.0218505859375, -0.00876617431640625, -0.06939697265625, -0.02001953125, 0.02545166015625, -0.005786895751953125, 0.0152130126953125, 0.01305389404296875, -0.00997161865234375, 0.01837158203125, -0.006832122802734375, 0.032501220703125, -0.050079345703125, 0.07745361328125, -0.00249481201171875, 0.004154205322265625, 0.01511383056640625, -0.0158843994140625, 0.0027904510498046875, 0.019561767578125, -0.007129669189453125, -0.03875732421875, -0.0215301513671875, 0.052642822265625, 0.0064239501953125, 0.02166748046875, -0.05413818359375, 0.028045654296875, -0.01041412353515625, -0.009124755859375, 0.0584716796875, 0.03533935546875, -0.007598876953125, -0.00586700439453125, -0.0180511474609375, -0.0195770263671875, -0.0019741058349609375, -0.0021724700927734375, 0.0012073516845703125, -0.009765625, 0.0203704833984375, -0.0240020751953125, -0.006633758544921875, -0.00301361083984375, 0.0711669921875, 0.029937744140625, -0.016143798828125, -0.033477783203125, 0.005420684814453125, 0.09234619140625, -0.0106201171875, 0.0006265640258789062, 0.0213470458984375, 0.037933349609375, -0.017120361328125, -0.01111602783203125, 0.007457733154296875, 0.006481170654296875, -0.034332275390625, -0.0298309326171875, 0.0185394287109375, -0.0245361328125, -0.01125335693359375, 0.04296875, -0.007297515869140625, 0.01702880859375, -0.001857757568359375, 0.015533447265625, -0.00907135009765625, 0.038177490234375, 0.036773681640625, -0.039825439453125, 0.0003457069396972656, 0.00787353515625, -0.017486572265625, -0.00482940673828125, 0.0003402233123779297, 0.0164794921875, 0.01123046875, -0.010894775390625, -0.0109710693359375, 0.00843048095703125, -0.02490234375, -0.0192108154296875, -0.008758544921875, -0.02630615234375, -0.05133056640625, 0.0010557174682617188, -0.006977081298828125, -0.01224517822265625, -0.0268402099609375, -0.01483154296875, 0.056884765625, 0.00970458984375, 0.047149658203125, -0.033782958984375, 0.007274627685546875, 0.0087738037109375, 0.0250244140625, -0.047149658203125, 0.0039215087890625, 0.0205230712890625, -0.0841064453125, -0.059051513671875, 0.006561279296875, -0.01556396484375, 0.0205230712890625, -0.03692626953125, 0.0171661376953125, -0.0169677734375, 0.0165863037109375, -0.034942626953125, 0.032501220703125, 0.0129241943359375, 0.002960205078125, -0.007801055908203125, -0.016571044921875, -0.01323699951171875, -0.00603485107421875, -0.0026950836181640625, -0.05096435546875, 0.007213592529296875, -0.01360321044921875, 0.00478363037109375, 0.022552490234375, 0.004352569580078125, 0.0091400146484375, -0.01421356201171875, 0.002899169921875, -0.000965118408203125, 0.033660888671875, 0.003826141357421875, 0.04901123046875, -0.01270294189453125, 0.045166015625, 0.00801849365234375, 0.0117950439453125, -0.02606201171875, -0.01092529296875, -0.00429534912109375, -0.044708251953125, -0.020843505859375, -0.004177093505859375, -0.0227813720703125, 0.052154541015625, 0.06878662109375, -0.00754547119140625, 0.0292816162109375, -0.016571044921875, -0.0025634765625, -0.004634857177734375, 0.033203125, -0.0171356201171875, 0.0227508544921875, 0.053741455078125, -0.040618896484375, -0.00571441650390625, -0.0035839080810546875, 0.0093841552734375, 0.059600830078125, -0.038818359375, 0.034454345703125, 0.0201416015625, -0.08380126953125, 0.0823974609375, 0.06414794921875, 0.03717041015625, 0.049041748046875, -0.01134490966796875, 0.0205841064453125, -0.017730712890625, -0.0305023193359375, 0.00353240966796875, 0.06292724609375, 0.07171630859375, -0.004772186279296875, -0.0272979736328125, 0.043670654296875, -0.03668212890625, 0.017974853515625, 0.0570068359375, 0.0601806640625, -0.05914306640625, -0.0004215240478515625, -0.0030059814453125, -0.02020263671875, 0.046844482421875, -0.0187530517578125, 0.011383056640625, -0.0219573974609375, 0.017059326171875, -0.004871368408203125, -0.02716064453125, -0.0030193328857421875, -0.02423095703125, -0.0223236083984375, -0.01458740234375, -0.01319122314453125, -0.0031585693359375, 0.032196044921875, 0.0012874603271484375, -0.0235137939453125, 0.015899658203125, -0.006099700927734375, -0.005401611328125, -0.0116424560546875, -0.0215606689453125, -0.03485107421875, -0.00533294677734375, -0.042388916015625, 0.016387939453125, 0.028350830078125, 0.0155792236328125, 0.0098724365234375, 0.0523681640625, -0.03302001953125, 0.028411865234375, 0.000278472900390625, 0.006397247314453125, -0.01519012451171875, -0.02850341796875, 0.022369384765625, -0.005107879638671875, -0.0120086669921875, 0.024871826171875, -0.0005884170532226562, -0.0614013671875, 0.00559234619140625, 0.00611114501953125, 0.05877685546875, -0.0014820098876953125, -0.028656005859375, 0.03240966796875, 0.0006003379821777344, -0.0195770263671875, 0.0162506103515625, 0.030487060546875, -0.046478271484375, -0.026519775390625, 0.0308685302734375, -0.035003662109375, -0.016204833984375, 0.01971435546875, -0.07305908203125, 0.08746337890625, -0.0251922607421875, 0.02215576171875, -0.032379150390625, 0.0465087890625, 0.02142333984375, 0.04254150390625, -0.0100555419921875, 0.0413818359375, 0.01873779296875, 0.0007538795471191406, -0.038970947265625, -0.0179443359375, -0.0213623046875, 0.058685302734375, 0.00870513916015625, 0.01432037353515625, -0.0177459716796875, -0.00711822509765625, 0.006011962890625, 0.031982421875, 0.0020580291748046875, 0.019378662109375, -0.0071868896484375, 0.040740966796875, 0.01922607421875, -0.03314208984375, 0.036895751953125, -0.0297393798828125, -0.042510986328125, -0.010223388671875, 0.006137847900390625, -0.004119873046875, -0.02288818359375, 0.056884765625, -0.004673004150390625, -0.0175018310546875, -0.004634857177734375, -0.0164947509765625, 0.0156707763671875, -0.0013208389282226562, 0.006763458251953125, 0.003574371337890625, -0.01117706298828125, -0.003894805908203125, 0.0305633544921875, 0.0166015625, 0.0325927734375, 0.0111846923828125, 0.02252197265625, 0.005405426025390625, 0.0018320083618164062, 0.0208892822265625, 0.0252532958984375, -0.0224761962890625, 0.04180908203125, -0.005825042724609375, 0.0026874542236328125, -0.069091796875, -0.0167236328125, 0.0236053466796875, 0.04534912109375, -0.031280517578125, -0.064697265625, -0.00296783447265625, -0.007610321044921875, 0.0281524658203125, 0.02386474609375, 0.0496826171875, 0.0479736328125, 0.047882080078125, -0.0487060546875, 0.006317138671875, -0.005153656005859375, 0.0249481201171875, -0.02545166015625, 0.0138702392578125, -0.003570556640625, 0.00507354736328125, -0.04443359375, 0.00308990478515625, 0.006328582763671875, 0.053955078125, 0.019866943359375, 0.044586181640625, -0.0142822265625, -0.0202789306640625, 0.003772735595703125, 0.0008053779602050781, 0.0025005340576171875, -0.0199432373046875, -0.01428985595703125, -0.02886962890625, 0.018096923828125, 0.0265960693359375, -0.0025844573974609375, 0.035186767578125, 0.01739501953125, 0.015472412109375, 0.0192413330078125, -0.00957489013671875, 0.0271148681640625, -0.0265960693359375, -0.0215911865234375, -0.045166015625, 0.03973388671875, 0.0399169921875, 0.02545166015625, 0.0100555419921875, 0.0217742919921875, 0.050811767578125, -0.005886077880859375, 0.01328277587890625, 0.01351165771484375, -0.027099609375, 0.00832366943359375, -0.007354736328125, 0.037139892578125, 0.0187530517578125, -0.09515380859375, -0.032745361328125, -0.020782470703125, -0.018218994140625, 0.0325927734375, 0.036956787109375, -0.01239013671875, 0.00018310546875, -0.012603759765625, 0.00028395652770996094, 0.00229644775390625, -0.00199127197265625, 0.00164794921875, 0.05462646484375, 0.02825927734375, 0.030242919921875, -0.0211334228515625, -0.00843048095703125, 0.026519775390625, 0.033477783203125, -0.003826141357421875, 0.023895263671875, -0.00559234619140625, 0.0030651092529296875, -0.055450439453125, 0.0055389404296875, -0.035980224609375, -0.0458984375, 0.01024627685546875, 0.0294342041015625, 0.0016880035400390625, -0.0101470947265625, -0.0135345458984375, 0.01385498046875, 0.055755615234375, -0.029083251953125, 0.002254486083984375, 0.0179595947265625, 0.0128173828125, -0.04205322265625, -0.004871368408203125, -0.052337646484375, -0.0262603759765625, -0.054718017578125, -0.03118896484375, 0.0256195068359375, 0.0049285888671875, 0.0120697021484375, 0.0260009765625, 0.0254974365234375, 0.00701904296875, -0.007343292236328125, 0.0247650146484375, -0.0013322830200195312, 0.034637451171875, -0.0242919921875, -0.03143310546875, 0.03814697265625, -0.005069732666015625, 0.0147705078125, 0.00841522216796875, 0.03173828125, 0.032562255859375, -0.07537841796875, 0.01551055908203125, 0.0374755859375, 0.042266845703125, -0.0229644775390625, 0.007350921630859375, 0.0226898193359375, -0.0124053955078125, 0.002094268798828125, 0.004314422607421875, -0.02777099609375, -0.0753173828125, -0.0012569427490234375, 0.0308074951171875, -0.04229736328125, 0.01189422607421875, -0.080322265625, 0.0023326873779296875, 0.0288848876953125, 0.015960693359375, -0.0731201171875, 0.05047607421875, 0.00417327880859375, 0.032257080078125, -0.0178375244140625, -0.0005350112915039062, 0.00023746490478515625, 0.04534912109375, -0.0018014907836914062, -0.0142822265625, -0.01111602783203125, 0.0312042236328125, -0.009429931640625, 0.01470184326171875, 0.01184844970703125, -0.033355712890625, 0.00629425048828125, 0.0014486312866210938, 0.01551055908203125, 0.04071044921875, 0.05224609375, -0.032623291015625, -0.016082763671875, -0.009521484375, 0.0093841552734375, -0.00839996337890625, 0.00754547119140625, -0.03753662109375, -0.047637939453125, 0.020599365234375, -0.01511383056640625, 0.031463623046875, -0.0246124267578125, -0.0726318359375, 0.0347900390625, 0.001041412353515625, -0.04486083984375, -0.0677490234375, 0.0085906982421875, 0.0093994140625, 0.0307769775390625, -0.01450347900390625, -0.0097198486328125, -0.0280609130859375, 0.0170745849609375, 0.02203369140625, -0.002716064453125, 0.034088134765625, 0.007701873779296875, -0.0616455078125, -0.0031585693359375, -0.0124359130859375, -0.0004532337188720703, -0.0182952880859375, -0.01467132568359375, 0.0022525787353515625, 0.00592803955078125, -0.057647705078125, -0.0633544921875, 0.004528045654296875, 0.033050537109375, -0.006072998046875, -0.036651611328125, 0.001895904541015625, -0.016357421875, 0.044097900390625, 0.00423431396484375, 0.00466156005859375, -0.017333984375, -0.0034046173095703125, -0.032745361328125, -0.0206451416015625, -0.0369873046875, 0.005428314208984375, -0.07073974609375, -0.0263214111328125, 0.0165557861328125, -0.0276336669921875, -0.022186279296875, 0.0205078125, -0.041534423828125, 0.0240325927734375, 0.049468994140625, 0.0146331787109375, -0.056121826171875, -0.01020050048828125, 0.07568359375, -0.04656982421875, -0.0080108642578125, 0.0142364501953125, -0.00009906291961669922, 0.031768798828125, -0.0005865097045898438, -0.040771484375, -0.02294921875, -0.040252685546875, 0.040771484375, -0.048828125, 0.0726318359375, -0.07928466796875, 0.0018815994262695312, -0.0209503173828125, 0.027862548828125, 0.0002846717834472656, 0.0479736328125, -0.0175933837890625, 0.05816650390625, 0.028839111328125, 0.0228424072265625, -0.036285400390625, -0.0239410400390625, -0.0238494873046875, 0.0070343017578125, -0.006198883056640625, 0.0098419189453125, 0.060516357421875, -0.034027099609375, 0.01251220703125, -0.043731689453125, 0.00978851318359375, -0.03668212890625, 0.0190887451171875, -0.00836944580078125, -0.033599853515625, 0.03173828125 ]
7780562aac08b37bb39b0e3cb9e40a7d5830f161
Wordpress Stackexchange Q: Network Admin "You do not have sufficient permissions to access this page." I have had trouble logging into WP-Admin with my admin account. I have reset my password, and I can now log-in to WP-Admin, but cannot reach Network Admin (/wp-admin/network), instead receiving "You do not have sufficient permissions to access this page." What do I need to do to restore the permissions the account had before the password reset? A: The easiest way to restore Super Admin privileges is to add a bit of code to your theme's functions.php file to add yourself back: include(ABSPATH . 'wp-admin/includes/ms.php'); $user = get_userdatabylogin('YOUR_USERNAME'); grant_super_admin($user->ID); Once your Super Admin privileges have been restored you can remove this code from your theme.
Q: Network Admin "You do not have sufficient permissions to access this page." I have had trouble logging into WP-Admin with my admin account. I have reset my password, and I can now log-in to WP-Admin, but cannot reach Network Admin (/wp-admin/network), instead receiving "You do not have sufficient permissions to access this page." What do I need to do to restore the permissions the account had before the password reset? A: The easiest way to restore Super Admin privileges is to add a bit of code to your theme's functions.php file to add yourself back: include(ABSPATH . 'wp-admin/includes/ms.php'); $user = get_userdatabylogin('YOUR_USERNAME'); grant_super_admin($user->ID); Once your Super Admin privileges have been restored you can remove this code from your theme.
wordpress
{ "language": "en", "length": 119, "provenance": "stackexchange_00019.jsonl.gz:418652", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47632" }
[ 0.042572021484375, -0.022552490234375, 0.0122833251953125, -0.01099395751953125, -0.01218414306640625, -0.0296630859375, 0.03826904296875, -0.019744873046875, 0.02581787109375, 0.006099700927734375, -0.03045654296875, -0.031768798828125, -0.00623321533203125, -0.0264434814453125, -0.021514892578125, -0.0404052734375, 0.02496337890625, -0.0075531005859375, 0.02215576171875, 0.0013332366943359375, -0.010040283203125, 0.0170745849609375, 0.01467132568359375, -0.0211334228515625, -0.0214996337890625, -0.00478363037109375, 0.0662841796875, -0.04608154296875, -0.01027679443359375, -0.01399993896484375, -0.00922393798828125, 0.0081024169921875, 0.0118255615234375, 0.006603240966796875, 0.007007598876953125, -0.0972900390625, -0.014984130859375, 0.00274658203125, -0.00255584716796875, -0.00733184814453125, 0.01007843017578125, 0.003459930419921875, 0.032623291015625, 0.0360107421875, -0.013214111328125, -0.046783447265625, 0.029571533203125, -0.03753662109375, -0.0007991790771484375, 0.0255279541015625, -0.0029811859130859375, -0.0657958984375, 0.0078277587890625, 0.00894927978515625, -0.02789306640625, -0.03448486328125, -0.00513458251953125, -0.024261474609375, 0.037017822265625, -0.0298614501953125, -0.0246429443359375, -0.041534423828125, 0.029693603515625, 0.0014734268188476562, -0.0054931640625, 0.00734710693359375, 0.047271728515625, -0.00341796875, -0.053955078125, -0.00969696044921875, 0.03564453125, -0.01412200927734375, 0.01493072509765625, 0.006381988525390625, 0.02581787109375, -0.030303955078125, -0.0160980224609375, -0.0093841552734375, 0.03082275390625, 0.0296478271484375, 0.03399658203125, 0.04034423828125, -0.045989990234375, 0.012603759765625, -0.00791168212890625, 0.03070068359375, -0.00836944580078125, -0.0439453125, 0.007373809814453125, -0.0186004638671875, -0.0184478759765625, -0.04443359375, 0.052947998046875, 0.020904541015625, -0.051849365234375, 0.0053253173828125, 0.02490234375, 0.055419921875, 0.007137298583984375, -0.01280975341796875, 0.002101898193359375, -0.0305023193359375, -0.034393310546875, -0.03314208984375, -0.0037517547607421875, 0.0146331787109375, -0.00798797607421875, 0.0109100341796875, 0.0455322265625, 0.02691650390625, -0.0023345947265625, -0.0005211830139160156, 0.00568389892578125, -0.03375244140625, -0.03515625, 0.041259765625, 0.003749847412109375, -0.045379638671875, 0.0004012584686279297, -0.0248260498046875, -0.04205322265625, -0.01462554931640625, -0.077392578125, 0.02081298828125, 0.01528167724609375, -0.0245361328125, 0.005107879638671875, 0.08477783203125, 0.0071258544921875, 0.035491943359375, -0.01161956787109375, 0.00147247314453125, 0.009552001953125, -0.0066375732421875, -0.0274658203125, -0.016937255859375, 0.0122222900390625, 0.00914764404296875, 0.0030231475830078125, 0.01459503173828125, 0.0270233154296875, -0.0189971923828125, 0.0164337158203125, 0.0013408660888671875, 0.0024204254150390625, 0.03057861328125, 0.003204345703125, 0.019287109375, 0.01067352294921875, -0.034423828125, 0.016143798828125, -0.0281524658203125, -0.020843505859375, 0.039947509765625, 0.0244903564453125, 0.01088714599609375, 0.060821533203125, -0.03497314453125, -0.013641357421875, -0.0230865478515625, 0.044921875, 0.00711822509765625, 0.01113128662109375, -0.01239013671875, -0.005126953125, -0.044036865234375, -0.05670166015625, -0.0004935264587402344, 0.0189208984375, -0.051666259765625, 0.057281494140625, 0.005313873291015625, 0.046600341796875, 0.01088714599609375, 0.016876220703125, 0.00579833984375, 0.034881591796875, 0.01220703125, 0.00066375732421875, 0.056854248046875, -0.0027790069580078125, -0.0308074951171875, 0.053466796875, -0.0253448486328125, -0.00662994384765625, -0.058563232421875, 0.0180816650390625, 0.02081298828125, 0.022247314453125, 0.0303192138671875, 0.021575927734375, -0.03662109375, -0.0210723876953125, 0.037109375, -0.03570556640625, -0.0108795166015625, -0.022186279296875, 0.0307159423828125, -0.033843994140625, -0.0009698867797851562, -0.0043487548828125, 0.00980377197265625, -0.0145721435546875, 0.00550079345703125, -0.011962890625, 0.01093292236328125, -0.0056304931640625, 0.030181884765625, 0.0271148681640625, 0.008453369140625, 0.011871337890625, 0.0013265609741210938, -0.01056671142578125, -0.060516357421875, -0.07122802734375, -0.0275726318359375, -0.037109375, 0.057373046875, -0.0160064697265625, 0.0595703125, -0.0428466796875, -0.0304718017578125, -0.016815185546875, -0.0140838623046875, 0.034423828125, 0.00521087646484375, -0.0269317626953125, -0.007293701171875, 0.046356201171875, -0.01343536376953125, 0.0265960693359375, 0.045135498046875, -0.030059814453125, 0.016632080078125, 0.0184783935546875, 0.0120391845703125, 0.0165557861328125, -0.049530029296875, 0.02197265625, 0.01641845703125, 0.054443359375, 0.010040283203125, -0.0195465087890625, -0.03265380859375, -0.00533294677734375, -0.09002685546875, 0.0011444091796875, -0.022125244140625, -0.012908935546875, 0.0374755859375, 0.02459716796875, 0.0128173828125, -0.0036373138427734375, 0.012237548828125, -0.0017108917236328125, 0.00453948974609375, -0.00881195068359375, -0.006313323974609375, -0.03863525390625, 0.0228271484375, -0.004611968994140625, 0.002353668212890625, -0.0079498291015625, -0.0015077590942382812, 0.0010290145874023438, -0.012847900390625, 0.0008368492126464844, -0.0136260986328125, -0.013214111328125, -0.009674072265625, 0.0293731689453125, -0.043182373046875, -0.00556182861328125, 0.035919189453125, 0.047027587890625, 0.005878448486328125, -0.05810546875, 0.0057830810546875, 0.0272064208984375, 0.0124359130859375, -0.01242828369140625, 0.033843994140625, -0.028411865234375, -0.020965576171875, -0.0270843505859375, -0.00839996337890625, -0.0093231201171875, 0.008758544921875, 0.06829833984375, 0.027740478515625, 0.05889892578125, -0.007335662841796875, -0.016448974609375, 0.05889892578125, -0.0293731689453125, -0.037567138671875, -0.0063934326171875, -0.050933837890625, 0.034698486328125, -0.01904296875, 0.053863525390625, 0.08709716796875, 0.02044677734375, 0.016387939453125, 0.0005297660827636719, -0.032318115234375, 0.0037288665771484375, 0.0244140625, 0.0032863616943359375, -0.032623291015625, -0.0006437301635742188, 0.044219970703125, 0.0219879150390625, 0.01477813720703125, -0.0207977294921875, -0.044342041015625, -0.02142333984375, 0.007720947265625, -0.10626220703125, -0.08758544921875, -0.0682373046875, -0.049072265625, 0.01143646240234375, -0.0302734375, -0.01479339599609375, 0.0104827880859375, -0.016510009765625, 0.0173492431640625, -0.0014429092407226562, -0.01105499267578125, -0.058837890625, -0.0567626953125, -0.062225341796875, -0.04266357421875, -0.020263671875, -0.001041412353515625, -0.0015201568603515625, 0.033233642578125, -0.01486968994140625, -0.033935546875, -0.031280517578125, 0.005229949951171875, -0.01081085205078125, -0.043243408203125, -0.047210693359375, 0.0277252197265625, 0.0118255615234375, 0.014312744140625, -0.02777099609375, -0.0214691162109375, 0.016815185546875, -0.051727294921875, 0.000804901123046875, -0.01058197021484375, 0.021392822265625, 0.01132965087890625, -0.006511688232421875, -0.016326904296875, 0.006618499755859375, -0.0478515625, -0.004917144775390625, 0.0013561248779296875, -0.038177490234375, 0.03314208984375, 0.0026149749755859375, -0.01273345947265625, 0.028411865234375, -0.003818511962890625, -0.0049896240234375, 0.0155792236328125, -0.0216827392578125, 0.0012226104736328125, 0.0074005126953125, -0.020355224609375, -0.01461029052734375, 0.01549530029296875, 0.0257415771484375, -0.034149169921875, 0.007205963134765625, 0.006320953369140625, -0.0132598876953125, 0.005954742431640625, -0.022491455078125, 0.020355224609375, -0.0570068359375, 0.035675048828125, -0.066162109375, 0.0177001953125, -0.052703857421875, -0.00473785400390625, -0.03564453125, 0.06195068359375, -0.0261993408203125, -0.00966644287109375, -0.01885986328125, 0.010101318359375, -0.05181884765625, -0.055450439453125, -0.044403076171875, -0.006725311279296875, -0.0166778564453125, 0.00289154052734375, -0.01128387451171875, -0.020721435546875, 0.003017425537109375, -0.0850830078125, 0.0021152496337890625, -0.030029296875, 0.008880615234375, 0.00039196014404296875, 0.0015382766723632812, 0.0008602142333984375, -0.01055145263671875, -0.0074615478515625, 0.0099639892578125, -0.030548095703125, -0.079345703125, -0.0025386810302734375, -0.046844482421875, 0.044403076171875, -0.004241943359375, 0.0204010009765625, -0.027679443359375, 0.032379150390625, 0.01421356201171875, -0.0224609375, -0.0056915283203125, 0.00043129920959472656, -0.029632568359375, -0.00537109375, -0.0216827392578125, -0.0196533203125, -0.006969451904296875, 0.0019521713256835938, -0.007965087890625, -0.02166748046875, -0.035247802734375, -0.0293426513671875, 0.021209716796875, -0.030059814453125, -0.017608642578125, -0.00882720947265625, -0.02685546875, -0.0121307373046875, -0.01180267333984375, -0.0025691986083984375, -0.001148223876953125, -0.00722503662109375, 0.023468017578125, 0.00693511962890625, -0.008331298828125, 0.0087890625, 0.03472900390625, 0.01016998291015625, -0.02215576171875, 0.00980377197265625, 0.0160980224609375, 0.03173828125, -0.01275634765625, 0.040008544921875, 0.043609619140625, 0.0055389404296875, -0.002948760986328125, 0.01299285888671875, -0.015533447265625, 0.01131439208984375, 0.006465911865234375, 0.01349639892578125, -0.0154266357421875, 0.00852203369140625, -0.01678466796875, 0.01910400390625, -0.0219268798828125, 0.01529693603515625, -0.013031005859375, 0.0183868408203125, 0.036468505859375, 0.0184783935546875, -0.016510009765625, -0.0219879150390625, -0.035552978515625, 0.0190887451171875, -0.050994873046875, 0.016326904296875, -0.0014400482177734375, 0.00988006591796875, -0.0187835693359375, -0.022064208984375, -0.0023136138916015625, -0.0242767333984375, -0.0306396484375, -0.03497314453125, -0.006198883056640625, 0.0169830322265625, -0.0188140869140625, -0.0082550048828125, -0.034149169921875, 0.11358642578125, 0.03302001953125, -0.058746337890625, 0.06500244140625, -0.0240936279296875, 0.05645751953125, 0.01678466796875, 0.00542449951171875, 0.032958984375, 0.0018520355224609375, -0.028778076171875, 0.0140533447265625, 0.0352783203125, -0.057220458984375, -0.0447998046875, 0.016510009765625, -0.0129241943359375, 0.005168914794921875, 0.0220794677734375, 0.062744140625, -0.0184173583984375, 0.045623779296875, -0.01316070556640625, 0.052886962890625, 0.01438140869140625, 0.00530242919921875, -0.005641937255859375, 0.04766845703125, 0.014617919921875, -0.032073974609375, 0.0084686279296875, -0.023406982421875, -0.01081085205078125, 0.0335693359375, 0.054840087890625, 0.031646728515625, -0.0033512115478515625, -0.029205322265625, -0.03887939453125, -0.00559234619140625, 0.081298828125, -0.0048675537109375, -0.08172607421875, -0.026092529296875, -0.002025604248046875, 0.040985107421875, -0.055084228515625, 0.01541900634765625, -0.01500701904296875, -0.0172882080078125, -0.01212310791015625, 0.011138916015625, -0.00521087646484375, -0.040924072265625, -0.045806884765625, 0.021697998046875, -0.0173187255859375, -0.0194091796875, 0.000614166259765625, -0.002422332763671875, -0.0194091796875, 0.00453948974609375, 0.055206298828125, -0.01355743408203125, 0.0191802978515625, -0.04119873046875, 0.033355712890625, -0.03662109375, 0.004611968994140625, 0.02032470703125, 0.00360870361328125, -0.047821044921875, 0.0017261505126953125, -0.014312744140625, -0.0267486572265625, 0.00890350341796875, 0.025848388671875, -0.0540771484375, -0.0052337646484375, 0.0223236083984375, 0.0350341796875, -0.00969696044921875, -0.00757598876953125, -0.029388427734375, 0.053680419921875, 0.02374267578125, 0.1368408203125, -0.03204345703125, 0.03558349609375, -0.00832366943359375, 0.04107666015625, 0.0008268356323242188, 0.0157012939453125, 0.0243377685546875, -0.0207672119140625, 0.03216552734375, -0.0011005401611328125, -0.05133056640625, -0.0198516845703125, -0.02813720703125, -0.022003173828125, 0.03240966796875, -0.0313720703125, -0.01544189453125, -0.0114898681640625, 0.016143798828125, -0.0263214111328125, 0.04833984375, -0.006343841552734375, -0.01555633544921875, -0.01727294921875, -0.0252685546875, 0.056396484375, 0.01056671142578125, -0.040374755859375, 0.0256195068359375, -0.029937744140625, 0.041046142578125, 0.06597900390625, -0.025146484375, 0.0254974365234375, 0.09271240234375, 0.0126190185546875, 0.055908203125, 0.026336669921875, 0.01373291015625, 0.01171112060546875, -0.023956298828125, -0.0039215087890625, 0.0052642822265625, -0.00717926025390625, -0.01451873779296875, 0.02459716796875, 0.0068511962890625, 0.001857757568359375, 0.021209716796875, 0.052490234375, 0.046722412109375, -0.07952880859375, 0.012420654296875, 0.0020847320556640625, 0.00029015541076660156, 0.031280517578125, -0.01934814453125, 0.0031566619873046875, -0.08428955078125, 0.06195068359375, 0.0038471221923828125, -0.005016326904296875, -0.00405120849609375, -0.0467529296875, -0.040435791015625, 0.0212554931640625, -0.00017011165618896484, -0.0008397102355957031, 0.03900146484375, -0.01500701904296875, -0.05010986328125, 0.0167999267578125, 0.007843017578125, 0.01141357421875, -0.0194091796875, -0.048553466796875, -0.03973388671875, -0.0305938720703125, -0.019683837890625, -0.034881591796875, 0.0164642333984375, 0.0140838623046875, 0.0146484375, 0.037994384765625, -0.0115966796875, 0.017974853515625, -0.0040435791015625, 0.02447509765625, 0.06756591796875, -0.042083740234375, 0.0186920166015625, 0.004718780517578125, -0.0413818359375, 0.0079345703125, 0.0153961181640625, -0.04949951171875, -0.0033855438232421875, -0.0411376953125, 0.0098876953125, -0.00909423828125, -0.008209228515625, 0.04766845703125, -0.02899169921875, -0.024871826171875, 0.0030155181884765625, 0.03607177734375, -0.0310211181640625, 0.00974273681640625, 0.0130157470703125, 0.0206146240234375, 0.0019664764404296875, 0.0307464599609375, -0.029815673828125, 0.069580078125, 0.0196533203125, -0.00707244873046875, 0.0200958251953125, 0.02911376953125, -0.05133056640625, -0.00334930419921875, -0.036712646484375, 0.01526641845703125, 0.019500732421875, 0.02581787109375, -0.02880859375, -0.004199981689453125, -0.01465606689453125, 0.0179290771484375, 0.00726318359375, 0.0109710693359375, -0.041107177734375, -0.02655029296875, -0.0276336669921875, 0.00962066650390625, 0.00811767578125, 0.046844482421875, -0.0098114013671875, 0.0148162841796875, 0.032012939453125, -0.03204345703125, 0.045257568359375, -0.04595947265625, -0.029144287109375, -0.0098876953125, -0.030487060546875, -0.0872802734375, 0.005611419677734375, 0.0233917236328125, -0.1328125, 0.0242462158203125, 0.064697265625, -0.031768798828125, 0.0340576171875, 0.013671875, 0.0077362060546875, 0.0162353515625, -0.01806640625, -0.004852294921875, 0.03497314453125, 0.002376556396484375, 0.01247406005859375, 0.006427764892578125, 0.017913818359375, 0.02276611328125, -0.00494384765625, -0.0031375885009765625, 0.0158538818359375, -0.00919342041015625, 0.030029296875, -0.0008749961853027344, 0.0102386474609375, -0.033416748046875, 0.06866455078125, 0.016845703125, 0.0185699462890625, -0.04766845703125, -0.053955078125, -0.0031986236572265625, 0.0018281936645507812, 0.037078857421875, 0.032745361328125, 0.05120849609375, 0.073974609375, 0.082275390625, -0.040740966796875, 0.0189208984375, 0.043914794921875, -0.027587890625, -0.005260467529296875, 0.050872802734375, -0.026580810546875, 0.042449951171875, 0.0037822723388671875, -0.01047515869140625, 0.0212249755859375, 0.0017404556274414062, -0.0022640228271484375, -0.01036834716796875, -0.0024280548095703125, 0.01708984375, 0.004917144775390625, 0.030914306640625, -0.0181884765625, 0.0048370361328125, -0.0222625732421875, -0.07183837890625, 0.00589752197265625, 0.0318603515625, -0.0280914306640625, 0.0003275871276855469, 0.01715087890625, 0.0243682861328125, -0.0218658447265625, -0.026397705078125, -0.012420654296875, -0.035430908203125, -0.01434326171875, -0.018524169921875, -0.01287078857421875, -0.0095672607421875, -0.00823974609375, -0.0014705657958984375, 0.0232086181640625, 0.007495880126953125, 0.0107574462890625, 0.016693115234375, 0.0176239013671875, -0.005298614501953125, 0.0008707046508789062, 0.0019702911376953125, 0.0045623779296875, 0.029052734375, -0.058868408203125, 0.0210723876953125, -0.04718017578125, -0.053985595703125, 0.03472900390625, 0.045989990234375, -0.0121002197265625, 0.01336669921875, -0.0290374755859375, -0.0272216796875, 0.0249481201171875, 0.03790283203125, -0.040069580078125, 0.0139923095703125, 0.0391845703125, -0.033599853515625, -0.061370849609375, -0.04998779296875, -0.032684326171875, 0.050048828125, 0.040252685546875, 0.0968017578125, -0.01500701904296875, 0.041259765625, -0.0082244873046875, 0.0265960693359375, -0.058074951171875, -0.000980377197265625, -0.0137176513671875, -0.0226898193359375, -0.026397705078125, 0.00984954833984375, -0.054901123046875, 0.08868408203125, 0.0043792724609375, 0.03619384765625, 0.061492919921875, 0.02655029296875, -0.01332855224609375, -0.01171112060546875, -0.020538330078125, -0.046356201171875, -0.064697265625, -0.035888671875, 0.01084136962890625, 0.0013446807861328125, 0.0230865478515625, -0.0103912353515625, 0.043731689453125, -0.034332275390625, 0.006565093994140625, 0.00337982177734375, -0.02056884765625, -0.0270233154296875, 0.020477294921875, -0.03955078125, -0.0127716064453125, -0.005664825439453125, -0.021575927734375, 0.00043082237243652344, 0.00627899169921875, 0.02203369140625, 0.005889892578125, -0.00926971435546875, -0.0066375732421875, -0.01166534423828125, 0.0196990966796875, -0.026123046875, -0.0100250244140625, -0.015838623046875, 0.0166168212890625, -0.0092010498046875, -0.027099609375, -0.030670166015625, -0.049224853515625, -0.00028824806213378906, 0.0384521484375, -0.02838134765625, -0.0215911865234375, -0.062164306640625, 0.06414794921875, 0.04608154296875, 0.01934814453125, -0.1082763671875, 0.08905029296875, -0.053863525390625, 0.069580078125, 0.006450653076171875, -0.0169830322265625, 0.01751708984375, 0.035675048828125, -0.007518768310546875, 0.0094451904296875, -0.0207366943359375, 0.0007534027099609375, 0.0093536376953125, 0.02056884765625, 0.0139923095703125, -0.0243377685546875, 0.0048370361328125, 0.034759521484375, 0.0113525390625, 0.06378173828125, 0.0012006759643554688, -0.02520751953125, 0.004817962646484375, 0.02288818359375, -0.0067138671875, -0.045989990234375, -0.0109100341796875, -0.017303466796875, 0.0286865234375, -0.035736083984375, 0.033905029296875, 0.036346435546875, -0.01496124267578125, -0.0187835693359375, -0.032470703125, 0.005046844482421875, -0.0197296142578125, -0.0286102294921875, -0.0257415771484375, -0.006610870361328125, 0.0230560302734375, -0.015838623046875, -0.002956390380859375, -0.047149658203125, 0.0187530517578125, 0.03631591796875, -0.06781005859375, 0.0611572265625, 0.030029296875, -0.054962158203125, 0.03497314453125, 0.0312347412109375, -0.0097808837890625, 0.0034656524658203125, 0.01171875, 0.0183868408203125, 0.06317138671875, -0.0072174072265625, -0.0082855224609375, -0.0226898193359375, -0.039947509765625, 0.0006403923034667969, -0.005924224853515625, 0.0158233642578125, 0.0017547607421875, -0.01503753662109375, 0.036834716796875, -0.018524169921875, -0.00989532470703125, -0.053619384765625, -0.06634521484375, -0.022430419921875, -0.0154571533203125, 0.03497314453125, -0.0950927734375, 0.01465606689453125, 0.035125732421875, -0.0279541015625, 0.035919189453125, -0.01336669921875, -0.025146484375, 0.00728607177734375, -0.00872039794921875, -0.031402587890625, -0.0101776123046875, -0.004695892333984375, 0.036956787109375, -0.041717529296875, -0.0187225341796875, -0.0018749237060546875, 0.0139617919921875, -0.0076751708984375, -0.01186370849609375, -0.01013946533203125, -0.0182037353515625, -0.0179290771484375, 0.004383087158203125, 0.00455474853515625, 0.019683837890625, -0.0159454345703125, -0.002017974853515625, 0.033721923828125, 0.0087890625, -0.022247314453125, 0.007717132568359375, 0.0200653076171875, -0.005115509033203125, -0.049407958984375, 0.03594970703125, -0.025726318359375, 0.0213165283203125, -0.0183563232421875, 0.033294677734375, -0.0023822784423828125, -0.01172637939453125, 0.0384521484375, -0.02276611328125, -0.0037708282470703125, 0.00612640380859375, 0.01873779296875, -0.059783935546875, 0.040618896484375, 0.032806396484375, 0.034759521484375, 0.0287628173828125 ]
b080f3e4ce8e04352ef561e6530867b0e7f988b9
Wordpress Stackexchange Q: How to redirect all requests to wp-login.php? I created some custom login/registration template pages and now I want that every request to wp-login.php to be redirected to a custom url. Now I have something like this: add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( '/wp-login.php' == $pagenow ) { wp_redirect('/login'); exit(); } } but it doesn't work properly because when I click a logout link (in a meta widget) it will redirect me to the /login link and not doing logout. Do you have other method to do this in a safe or a better way ? Thank you. A: To restrict direct access only for 'wp-login.php', without POST or GET request (useful for custom ajax login forms), I use the advanced function: function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { if ( isset( $_POST['wp-submit'] ) || // in case of LOGIN ( isset($_GET['action']) && $_GET['action']=='logout') || // in case of LOGOUT ( isset($_GET['checkemail']) && $_GET['checkemail']=='confirm') || // in case of LOST PASSWORD ( isset($_GET['checkemail']) && $_GET['checkemail']=='registered') ) return; // in case of REGISTER else wp_redirect( home_url() ); // or wp_redirect(home_url('/login')); exit(); } } add_action('init','possibly_redirect');
Q: How to redirect all requests to wp-login.php? I created some custom login/registration template pages and now I want that every request to wp-login.php to be redirected to a custom url. Now I have something like this: add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( '/wp-login.php' == $pagenow ) { wp_redirect('/login'); exit(); } } but it doesn't work properly because when I click a logout link (in a meta widget) it will redirect me to the /login link and not doing logout. Do you have other method to do this in a safe or a better way ? Thank you. A: To restrict direct access only for 'wp-login.php', without POST or GET request (useful for custom ajax login forms), I use the advanced function: function possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { if ( isset( $_POST['wp-submit'] ) || // in case of LOGIN ( isset($_GET['action']) && $_GET['action']=='logout') || // in case of LOGOUT ( isset($_GET['checkemail']) && $_GET['checkemail']=='confirm') || // in case of LOST PASSWORD ( isset($_GET['checkemail']) && $_GET['checkemail']=='registered') ) return; // in case of REGISTER else wp_redirect( home_url() ); // or wp_redirect(home_url('/login')); exit(); } } add_action('init','possibly_redirect'); A: Actually I found the right way to do this. For redirect wordpress login to a custom url: function redirect_login() { wp_redirect( home_url( '/login' ) ); exit(); } add_action( 'login_form_login', 'redirect_login' ); For redirect wordpress registration to a custom url: function redirect_register() { wp_redirect( home_url( '/registration' ) ); exit(); } add_action( 'login_form_register', 'redirect_register' ); I think the code is very simple to understand, basically you add hooks for login and register url's and then use wp-redirect to redirect to a custom url. All requests to wp-login.php and wp-login.php?action=register will be redirected to the custom url's you set. A: I would recommend John's answer, having exit() omitted. So, the code that is fully functional in my case is: function redirect_login() { wp_redirect( home_url( '/login' ) ); } add_action( 'login_form_login', 'redirect_login' ); It seems that the exit() is making it impossible for a user to login. A: Two things to note from the WP function reference for wp_redirect()... * *an exit; is indeed part of the usage, and *$location parameter is to be the "Absolute URI", one including the protocol (http://) Example of Absolute/Full URI: http://www.example.com/blog/images/icecream.jpg
wordpress
{ "language": "en", "length": 370, "provenance": "stackexchange_00019.jsonl.gz:418663", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47657" }
[ 0.09503173828125, 0.01023101806640625, 0.014556884765625, -0.052337646484375, 0.029052734375, -0.0295257568359375, 0.040740966796875, -0.0186004638671875, -0.0195465087890625, 0.0279388427734375, 0.0246734619140625, 0.0014677047729492188, -0.0242767333984375, -0.041259765625, 0.02703857421875, -0.006389617919921875, 0.0298614501953125, 0.0027904510498046875, 0.05291748046875, 0.004543304443359375, 0.0159149169921875, 0.0050201416015625, 0.033355712890625, 0.00351715087890625, -0.023956298828125, -0.00666046142578125, 0.06488037109375, -0.054534912109375, -0.00335693359375, -0.0250701904296875, -0.0037097930908203125, 0.01029205322265625, 0.015838623046875, 0.042633056640625, -0.03228759765625, 0.005428314208984375, -0.0007557868957519531, 0.0276031494140625, 0.006984710693359375, 0.0313720703125, 0.044921875, -0.037933349609375, 0.0017137527465820312, -0.0264892578125, -0.0123291015625, 0.01236724853515625, 0.0282135009765625, -0.016143798828125, 0.02618408203125, 0.0159149169921875, -0.006557464599609375, 0.0264739990234375, 0.0030536651611328125, -0.01239013671875, -0.00717926025390625, 0.004058837890625, -0.035003662109375, -0.0214691162109375, 0.02264404296875, 0.03717041015625, -0.0146484375, -0.033782958984375, 0.01605224609375, -0.04522705078125, -0.00527191162109375, 0.01473236083984375, -0.017578125, 0.01415252685546875, -0.038055419921875, -0.029571533203125, -0.0120849609375, -0.035980224609375, -0.011077880859375, -0.0194549560546875, -0.01358795166015625, 0.00579833984375, 0.0004239082336425781, -0.0023174285888671875, -0.0009274482727050781, 0.0244293212890625, 0.00753021240234375, -0.0221710205078125, -0.033660888671875, 0.012298583984375, 0.01009368896484375, 0.04327392578125, -0.01447296142578125, -0.03277587890625, -0.0222320556640625, -0.02734375, -0.033294677734375, 0.006610870361328125, -0.024871826171875, -0.04071044921875, -0.0201568603515625, -0.049224853515625, 0.01611328125, 0.0297393798828125, 0.01325225830078125, -0.001800537109375, -0.0227813720703125, -0.01374053955078125, -0.01611328125, -0.01493072509765625, 0.003032684326171875, 0.08453369140625, 0.007122039794921875, 0.0170135498046875, 0.004116058349609375, -0.0100250244140625, 0.0254364013671875, -0.02886962890625, -0.047088623046875, -0.0435791015625, -0.005588531494140625, 0.05316162109375, -0.04974365234375, 0.0021820068359375, -0.0009493827819824219, 0.027923583984375, -0.047637939453125, -0.019012451171875, 0.0726318359375, -0.0225372314453125, 0.0040740966796875, -0.01131439208984375, -0.01116180419921875, -0.04693603515625, -0.0257415771484375, 0.0259857177734375, -0.0440673828125, 0.047088623046875, 0.04010009765625, -0.032073974609375, -0.023956298828125, -0.0223236083984375, 0.04144287109375, 0.004642486572265625, -0.00899505615234375, 0.0193634033203125, -0.010528564453125, -0.03118896484375, 0.00995635986328125, 0.01363372802734375, 0.00479888916015625, 0.039306640625, 0.032745361328125, -0.0015153884887695312, -0.029876708984375, -0.0543212890625, -0.005420684814453125, -0.00720977783203125, 0.004093170166015625, 0.0023040771484375, 0.0261077880859375, 0.0110931396484375, 0.00902557373046875, -0.002941131591796875, -0.00702667236328125, 0.018096923828125, 0.03411865234375, -0.007106781005859375, -0.0256805419921875, -0.04315185546875, -0.06231689453125, -0.01433563232421875, -0.03338623046875, -0.01364898681640625, 0.03265380859375, 0.040771484375, 0.04840087890625, -0.020599365234375, 0.0037822723388671875, 0.013031005859375, -0.002696990966796875, -0.0012197494506835938, -0.004856109619140625, 0.05218505859375, 0.023406982421875, 0.0129852294921875, 0.01085662841796875, -0.0255584716796875, 0.060638427734375, -0.0068359375, -0.0687255859375, 0.041595458984375, -0.00614166259765625, 0.01554107666015625, 0.01373291015625, -0.01168060302734375, 0.049530029296875, 0.041412353515625, -0.0645751953125, 0.0208282470703125, -0.0298309326171875, -0.0297393798828125, 0.04315185546875, -0.01021575927734375, -0.0019083023071289062, 0.036163330078125, 0.05718994140625, -0.0050811767578125, 0.0088348388671875, -0.00876617431640625, -0.024627685546875, 0.0108642578125, -0.00849151611328125, 0.00908660888671875, -0.00354766845703125, 0.0296630859375, 0.0111236572265625, 0.0211181640625, -0.0198822021484375, -0.0210113525390625, -0.0271148681640625, 0.004901885986328125, -0.0120086669921875, 0.045867919921875, -0.022796630859375, 0.0285186767578125, -0.00266265869140625, -0.04302978515625, -0.014892578125, 0.01110076904296875, 0.0039825439453125, -0.03375244140625, -0.009063720703125, -0.0283203125, -0.0174407958984375, -0.005245208740234375, -0.0146636962890625, 0.038604736328125, 0.034027099609375, -0.0063629150390625, -0.0810546875, -0.0192108154296875, -0.03173828125, -0.01093292236328125, -0.013763427734375, 0.0528564453125, 0.0254058837890625, 0.037261962890625, -0.0282135009765625, 0.018280029296875, -0.00365447998046875, -0.087890625, -0.0135040283203125, 0.0206298828125, 0.0189666748046875, 0.0308074951171875, -0.0240631103515625, -0.0182037353515625, 0.0321044921875, -0.01015472412109375, -0.0037670135498046875, 0.035430908203125, -0.01120758056640625, -0.019317626953125, -0.0168609619140625, 0.0037021636962890625, 0.00551605224609375, -0.04718017578125, -0.04681396484375, -0.005413055419921875, -0.0087738037109375, -0.051727294921875, -0.016510009765625, -0.03125, -0.009033203125, -0.05010986328125, 0.037139892578125, -0.007167816162109375, -0.012237548828125, 0.03765869140625, 0.0489501953125, -0.052520751953125, -0.0498046875, 0.0013532638549804688, 0.01189422607421875, 0.0101318359375, -0.00917816162109375, 0.0235137939453125, -0.0257568359375, -0.01201629638671875, 0.0221405029296875, -0.0364990234375, -0.0052032470703125, -0.003498077392578125, 0.05596923828125, 0.0166168212890625, 0.059326171875, -0.0240325927734375, -0.0276641845703125, 0.03289794921875, 0.009613037109375, -0.0640869140625, 0.0026092529296875, -0.036102294921875, 0.0457763671875, -0.01314544677734375, 0.0156402587890625, 0.0689697265625, 0.00939178466796875, 0.0296478271484375, -0.0057373046875, 0.0016622543334960938, 0.000006318092346191406, 0.0001125335693359375, -0.0290985107421875, -0.043731689453125, -0.015838623046875, -0.01531219482421875, 0.03094482421875, 0.053497314453125, 0.0086669921875, -0.042022705078125, 0.0153350830078125, 0.03607177734375, -0.045440673828125, -0.046112060546875, -0.029998779296875, -0.0804443359375, 0.037200927734375, -0.0010967254638671875, -0.0276031494140625, -0.011993408203125, 0.045257568359375, 0.02728271484375, -0.0023708343505859375, -0.00357818603515625, -0.0221099853515625, -0.02764892578125, -0.057891845703125, -0.0024261474609375, -0.00200653076171875, 0.021697998046875, -0.0146942138671875, 0.060943603515625, 0.0094757080078125, -0.01432037353515625, 0.0033855438232421875, 0.03466796875, 0.0218048095703125, 0.00087738037109375, -0.0362548828125, -0.0288848876953125, 0.0296173095703125, -0.00677490234375, 0.037750244140625, -0.0110321044921875, 0.032989501953125, -0.006744384765625, -0.005977630615234375, -0.035858154296875, 0.00473785400390625, -0.01465606689453125, -0.0090179443359375, 0.0001952648162841797, 0.0133819580078125, -0.0222320556640625, -0.014495849609375, -0.0015926361083984375, -0.04791259765625, 0.0276641845703125, 0.048492431640625, -0.01812744140625, 0.039581298828125, -0.0389404296875, 0.021087646484375, 0.00411224365234375, 0.0162811279296875, 0.006500244140625, 0.03179931640625, -0.0114898681640625, 0.00997161865234375, -0.0482177734375, 0.0338134765625, -0.01508331298828125, -0.01513671875, 0.0005784034729003906, -0.0008134841918945312, 0.001850128173828125, -0.019195556640625, -0.052642822265625, -0.0292816162109375, 0.03265380859375, -0.04168701171875, -0.0009107589721679688, -0.0272674560546875, 0.005767822265625, -0.00847625732421875, 0.05767822265625, 0.01389312744140625, -0.00019848346710205078, 0.0036258697509765625, 0.0006771087646484375, -0.004833221435546875, -0.01067352294921875, -0.03765869140625, 0.00005459785461425781, -0.09527587890625, 0.0036983489990234375, -0.0171051025390625, -0.01303863525390625, 0.0171051025390625, -0.044769287109375, -0.016876220703125, -0.07537841796875, 0.0090789794921875, 0.029052734375, 0.04852294921875, 0.0189361572265625, 0.0280914306640625, 0.0203857421875, 0.018646240234375, -0.04010009765625, -0.045318603515625, 0.0007109642028808594, -0.044921875, 0.054840087890625, 0.049957275390625, -0.047027587890625, -0.0258026123046875, 0.0173187255859375, 0.0031032562255859375, 0.007762908935546875, -0.001316070556640625, -0.00797271728515625, 0.0114898681640625, -0.004306793212890625, -0.00946807861328125, -0.0034313201904296875, -0.006519317626953125, -0.0034313201904296875, -0.01322174072265625, -0.01873779296875, -0.0391845703125, -0.05841064453125, 0.021148681640625, -0.03375244140625, -0.06646728515625, -0.01335906982421875, 0.0107269287109375, 0.0162200927734375, 0.021728515625, -0.0306854248046875, -0.015533447265625, -0.0694580078125, 0.0262451171875, 0.007617950439453125, -0.025146484375, -0.006465911865234375, 0.048065185546875, 0.02490234375, -0.0258941650390625, 0.04022216796875, 0.0112152099609375, 0.012939453125, -0.0183563232421875, 0.03466796875, -0.0241241455078125, -0.0182647705078125, 0.084716796875, -0.036376953125, 0.0037097930908203125, -0.0175323486328125, 0.0732421875, -0.0059051513671875, -0.005908966064453125, 0.0030727386474609375, -0.039154052734375, 0.004016876220703125, 0.03912353515625, 0.0157928466796875, -0.019439697265625, 0.032562255859375, 0.021270751953125, -0.037384033203125, 0.0297393798828125, -0.0092315673828125, -0.00884246826171875, -0.007259368896484375, 0.026641845703125, 0.0249786376953125, 0.051910400390625, -0.023895263671875, 0.0136566162109375, 0.006763458251953125, -0.001522064208984375, -0.0020751953125, -0.037933349609375, -0.01172637939453125, 0.015899658203125, -0.021697998046875, -0.01313018798828125, 0.01007080078125, -0.02276611328125, 0.08685302734375, 0.02850341796875, -0.037353515625, 0.05059814453125, -0.044952392578125, 0.0116119384765625, -0.009521484375, -0.006683349609375, 0.06097412109375, -0.008331298828125, -0.0279693603515625, -0.0222015380859375, -0.036346435546875, -0.0278472900390625, -0.07177734375, 0.002742767333984375, -0.00839996337890625, -0.0078277587890625, 0.0006737709045410156, 0.045257568359375, 0.01434326171875, 0.030242919921875, -0.0228729248046875, 0.01043701171875, 0.0472412109375, 0.0247344970703125, 0.0244903564453125, 0.00348663330078125, -0.0179595947265625, 0.0147857666015625, 0.018035888671875, -0.039276123046875, -0.033966064453125, 0.033447265625, 0.06463623046875, -0.004505157470703125, -0.00565338134765625, -0.00943756103515625, -0.01287841796875, -0.0031337738037109375, 0.068115234375, 0.028900146484375, -0.08673095703125, -0.025177001953125, -0.0007200241088867188, 0.0207977294921875, -0.035797119140625, -0.00693511962890625, -0.01177215576171875, -0.0296478271484375, -0.017059326171875, 0.0291595458984375, -0.044342041015625, -0.01543426513671875, -0.0001558065414428711, -0.011322021484375, -0.022308349609375, -0.01361846923828125, -0.01605224609375, 0.016632080078125, -0.0296173095703125, -0.03375244140625, 0.01068115234375, -0.0235137939453125, 0.004428863525390625, -0.010284423828125, -0.01117706298828125, 0.00839996337890625, 0.0027027130126953125, 0.0738525390625, 0.0222015380859375, -0.0484619140625, 0.0000527501106262207, -0.0132293701171875, -0.00598907470703125, -0.0124969482421875, -0.025177001953125, -0.03985595703125, -0.01812744140625, 0.02789306640625, 0.0234527587890625, 0.0037403106689453125, -0.0230560302734375, -0.040374755859375, 0.00646209716796875, 0.037200927734375, 0.039306640625, -0.01230621337890625, 0.061004638671875, -0.032470703125, 0.0293731689453125, -0.00676727294921875, 0.0268096923828125, 0.0003094673156738281, -0.005100250244140625, 0.0253448486328125, -0.04510498046875, -0.00218963623046875, -0.057708740234375, 0.00449371337890625, 0.0018148422241210938, 0.04791259765625, -0.01029205322265625, -0.038848876953125, 0.01202392578125, -0.01519012451171875, -0.02685546875, 0.042572021484375, 0.067138671875, 0.0018444061279296875, -0.00986480712890625, 0.004611968994140625, 0.01092529296875, 0.006496429443359375, -0.01172637939453125, 0.007213592529296875, 0.00232696533203125, 0.0159149169921875, -0.00925445556640625, -0.077392578125, 0.02783203125, 0.07281494140625, 0.0406494140625, 0.062347412109375, -0.0159454345703125, 0.03619384765625, 0.06341552734375, 0.01053619384765625, -0.0089111328125, 0.01715087890625, 0.06512451171875, 0.00415802001953125, -0.028900146484375, 0.0305633544921875, -0.0225372314453125, 0.01552581787109375, 0.06585693359375, 0.07855224609375, -0.144775390625, 0.04534912109375, 0.03912353515625, 0.0284271240234375, 0.0386962890625, 0.020172119140625, -0.001983642578125, -0.0098419189453125, -0.02685546875, -0.0244598388671875, -0.04071044921875, -0.025634765625, 0.00475311279296875, -0.01221466064453125, -0.0268402099609375, 0.00739288330078125, 0.0021381378173828125, -0.055450439453125, 0.02386474609375, 0.041656494140625, -0.0147552490234375, -0.0254669189453125, 0.005016326904296875, 0.014556884765625, -0.01239776611328125, -0.0606689453125, 0.01277923583984375, 0.0030803680419921875, -0.003963470458984375, 0.0235748291015625, -0.0104217529296875, 0.0545654296875, 0.051666259765625, 0.0004227161407470703, 0.01617431640625, 0.01030731201171875, -0.0256195068359375, -0.017486572265625, 0.007251739501953125, -0.0076446533203125, 0.0006070137023925781, -0.0288543701171875, 0.00839996337890625, -0.04705810546875, 0.004940032958984375, -0.0019741058349609375, 0.0013246536254882812, 0.056365966796875, -0.035797119140625, -0.02313232421875, 0.0172271728515625, -0.03411865234375, -0.002227783203125, -0.00942230224609375, 0.025360107421875, -0.0770263671875, -0.06292724609375, -0.002056121826171875, -0.08721923828125, -0.0289764404296875, -0.0501708984375, -0.00748443603515625, 0.09722900390625, -0.0147857666015625, -0.011962890625, 0.0240936279296875, 0.0509033203125, -0.0226287841796875, 0.049041748046875, -0.0330810546875, 0.06500244140625, 0.0133514404296875, 0.031646728515625, -0.00988006591796875, 0.004894256591796875, 0.038543701171875, 0.002437591552734375, 0.045867919921875, 0.0235595703125, -0.02825927734375, 0.00463104248046875, 0.03509521484375, 0.043975830078125, -0.00978851318359375, 0.005672454833984375, 0.009765625, 0.00597381591796875, 0.0290374755859375, -0.053802490234375, 0.01030731201171875, 0.00609588623046875, 0.00949859619140625, 0.0286407470703125, -0.01102447509765625, -0.05902099609375, -0.03363037109375, 0.0286712646484375, -0.0943603515625, 0.0030651092529296875, 0.033599853515625, 0.045074462890625, 0.00556182861328125, 0.0237274169921875, 0.016571044921875, -0.050933837890625, 0.0247650146484375, -0.048248291015625, 0.0361328125, -0.043212890625, 0.00909423828125, 0.021636962890625, 0.0207366943359375, 0.00852203369140625, -0.0230560302734375, -0.0029449462890625, 0.01080322265625, -0.007480621337890625, 0.06390380859375, 0.0265045166015625, 0.027435302734375, -0.012481689453125, 0.0198211669921875, -0.0005526542663574219, 0.061614990234375, -0.04876708984375, -0.00567626953125, 0.0010290145874023438, 0.004119873046875, 0.0291595458984375, -0.004306793212890625, 0.055755615234375, -0.0369873046875, -0.035308837890625, -0.003231048583984375, 0.0164642333984375, 0.039825439453125, -0.01727294921875, 0.01183319091796875, 0.017364501953125, -0.025604248046875, 0.051239013671875, -0.0186614990234375, 0.0004897117614746094, 0.015594482421875, 0.0318603515625, -0.01087188720703125, 0.03369140625, 0.0163421630859375, -0.0028820037841796875, -0.0227813720703125, 0.036224365234375, 0.002498626708984375, 0.02398681640625, -0.06317138671875, -0.05712890625, 0.037567138671875, 0.056610107421875, 0.019195556640625, -0.0186004638671875, -0.00962066650390625, -0.00794219970703125, -0.0036220550537109375, -0.0103912353515625, 0.05303955078125, -0.0163116455078125, 0.0361328125, -0.0221099853515625, -0.0206298828125, -0.0099639892578125, -0.025848388671875, -0.0258941650390625, -0.01136016845703125, 0.0297393798828125, -0.01971435546875, 0.043060302734375, -0.004795074462890625, -0.0257568359375, 0.01206207275390625, -0.0168609619140625, 0.088623046875, 0.006526947021484375, -0.049713134765625, -0.036773681640625, 0.004566192626953125, 0.00510406494140625, 0.0238189697265625, 0.0352783203125, 0.0153656005859375, 0.0024166107177734375, 0.01157379150390625, 0.0156402587890625, -0.0091705322265625, 0.0022220611572265625, -0.0030155181884765625, -0.040557861328125, 0.0362548828125, -0.00015437602996826172, -0.0499267578125, 0.0085601806640625, -0.01497650146484375, -0.0244598388671875, 0.0194854736328125, 0.0521240234375, 0.011016845703125, 0.0124053955078125, -0.005313873291015625, 0.03411865234375, -0.030548095703125, -0.0082855224609375, 0.0196075439453125, -0.00360107421875, 0.007221221923828125, -0.01544189453125, -0.06622314453125, 0.0496826171875, -0.02020263671875, 0.001987457275390625, 0.06884765625, -0.03704833984375, 0.0012826919555664062, -0.01175689697265625, 0.014984130859375, -0.024688720703125, -0.041748046875, -0.0164031982421875, 0.0107269287109375, 0.01163482666015625, 0.031524658203125, -0.0010309219360351562, 0.08258056640625, -0.04754638671875, 0.0003676414489746094, -0.0014705657958984375, -0.08441162109375, -0.0251922607421875, 0.03326416015625, -0.017608642578125, -0.003665924072265625, -0.028289794921875, -0.011627197265625, -0.00494384765625, 0.0185089111328125, -0.022857666015625, 0.00569915771484375, 0.033355712890625, -0.0190887451171875, -0.0007252693176269531, 0.007587432861328125, -0.01025390625, 0.006130218505859375, -0.01287078857421875, -0.0173797607421875, 0.002346038818359375, -0.09625244140625, -0.04022216796875, -0.078369140625, 0.00008052587509155273, 0.00875091552734375, -0.0285186767578125, -0.0699462890625, -0.0011835098266601562, 0.032562255859375, 0.00339508056640625, -0.0239715576171875, -0.02215576171875, 0.0013570785522460938, -0.033416748046875, 0.080322265625, -0.058197021484375, 0.0084381103515625, -0.00409698486328125, 0.01491546630859375, -0.0172271728515625, -0.0228271484375, -0.038116455078125, 0.030609130859375, -0.0280303955078125, -0.02947998046875, 0.033721923828125, 0.01702880859375, -0.049407958984375, -0.0745849609375, -0.049957275390625, -0.0190887451171875, -0.049591064453125, -0.0150146484375, 0.02801513671875, -0.0083770751953125, -0.00565338134765625, -0.006504058837890625, -0.007549285888671875, 0.04095458984375, -0.023101806640625, 0.0169219970703125, -0.012847900390625, -0.00740814208984375, -0.0350341796875, -0.065673828125, 0.0576171875, -0.0023746490478515625, -0.0281982421875, -0.028533935546875, 0.04541015625, 0.00519561767578125, -0.0107269287109375, 0.002422332763671875, -0.017730712890625, -0.00655364990234375, -0.028228759765625, 0.025909423828125, 0.02142333984375, 0.0292816162109375, 0.048248291015625, -0.028076171875, 0.00701904296875, -0.0113677978515625, -0.005176544189453125, -0.010986328125, 0.023162841796875, 0.0194244384765625, 0.04327392578125, 0.01519775390625, 0.0271453857421875, 0.005268096923828125, -0.053802490234375, 0.01331329345703125, -0.03839111328125, 0.002368927001953125, -0.01546478271484375, 0.0210723876953125, -0.006618499755859375, -0.0054779052734375, -0.00930023193359375, -0.0487060546875, -0.023468017578125, -0.02130126953125, -0.039154052734375, 0.01413726806640625, -0.08001708984375, -0.029052734375, -0.0124359130859375, -0.01904296875, -0.05224609375, 0.04132080078125, -0.03533935546875, 0.0027561187744140625, 0.028045654296875, -0.006481170654296875, 0.0006451606750488281, 0.024658203125, 0.0595703125, -0.050537109375, -0.01087188720703125, -0.0106964111328125, 0.001251220703125, 0.00661468505859375, -0.041259765625, 0.05224609375, 0.0538330078125, -0.039703369140625, -0.0247802734375, 0.04150390625, -0.016754150390625, -0.0038013458251953125, -0.0482177734375, -0.021759033203125, 0.02099609375, -0.0027065277099609375, 0.0205078125, -0.0091400146484375, 0.0125885009765625, 0.00848388671875, 0.0238494873046875, -0.0306396484375, 0.03948974609375, -0.01009368896484375, 0.01849365234375, 0.039825439453125, 0.00017690658569335938, 0.09716796875, -0.026214599609375, 0.003566741943359375, -0.004001617431640625, 0.0168304443359375, -0.03326416015625, 0.00885009765625, -0.0214080810546875, 0.0166778564453125, 0.02117919921875 ]
94f7d11aaa7d795c5bfdad7a2546e11f56d6b410
Wordpress Stackexchange Q: Is it possible to get a different header.php on language switch with qtranslate? the problem is that on home page I have a lot of code which is added through header.php and it is not amendable through admin panel. What I want to do is to switch header files on language switch. Whenever a user press on the language icon, lets say on the English language icon the header should also switch from <?php get_header('mylanguage') ?> to <?php get_header('english') ?> or etc. Is it possible to do like this? Regards, A: Following the codex about the get_header function You must have an archive header-de.php in your template. Create one for each language you have and adjust the switch accordingly. <?php if(function_exists('qtrans_getLanguage')) { $lingo = qtrans_getLanguage(); switch ($lingo) { case 'de': get_header('de'); break; default: get_header(); break; } } else { get_header(); }
Q: Is it possible to get a different header.php on language switch with qtranslate? the problem is that on home page I have a lot of code which is added through header.php and it is not amendable through admin panel. What I want to do is to switch header files on language switch. Whenever a user press on the language icon, lets say on the English language icon the header should also switch from <?php get_header('mylanguage') ?> to <?php get_header('english') ?> or etc. Is it possible to do like this? Regards, A: Following the codex about the get_header function You must have an archive header-de.php in your template. Create one for each language you have and adjust the switch accordingly. <?php if(function_exists('qtrans_getLanguage')) { $lingo = qtrans_getLanguage(); switch ($lingo) { case 'de': get_header('de'); break; default: get_header(); break; } } else { get_header(); }
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:418665", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47661" }
[ -0.0033206939697265625, 0.0177764892578125, -0.00881195068359375, 0.051300048828125, 0.004596710205078125, -0.0244903564453125, 0.058837890625, -0.043365478515625, -0.009613037109375, 0.039947509765625, 0.0012121200561523438, -0.0013418197631835938, -0.0026569366455078125, -0.01507568359375, -0.01123809814453125, -0.0188446044921875, 0.04681396484375, -0.0139617919921875, 0.035797119140625, 0.01560211181640625, -0.01715087890625, 0.04522705078125, 0.019683837890625, -0.009521484375, 0.0005936622619628906, -0.023284912109375, 0.04608154296875, -0.034454345703125, -0.02880859375, -0.039764404296875, 0.0022602081298828125, 0.055816650390625, 0.0158233642578125, 0.052154541015625, -0.06689453125, 0.010894775390625, -0.00971221923828125, 0.017730712890625, -0.024932861328125, 0.042755126953125, 0.0173492431640625, -0.003696441650390625, -0.0268707275390625, 0.050872802734375, -0.032196044921875, -0.044219970703125, 0.00948333740234375, -0.015838623046875, 0.00945281982421875, 0.0657958984375, 0.01308441162109375, -0.0236663818359375, -0.00542449951171875, -0.001007080078125, 0.01181793212890625, -0.0089874267578125, -0.03228759765625, 0.0372314453125, 0.0140838623046875, 0.0263824462890625, -0.01166534423828125, 0.020721435546875, -0.01446533203125, -0.028045654296875, -0.020965576171875, 0.0036773681640625, -0.006687164306640625, 0.010986328125, -0.03424072265625, -0.0243988037109375, 0.02813720703125, -0.034423828125, 0.044158935546875, -0.0290985107421875, -0.037689208984375, -0.01006317138671875, -0.0142822265625, -0.0469970703125, 0.039154052734375, -0.0628662109375, 0.034820556640625, 0.002620697021484375, -0.010223388671875, -0.0435791015625, 0.052581787109375, 0.005649566650390625, -0.0036830902099609375, -0.028778076171875, -0.0499267578125, -0.0238494873046875, -0.0343017578125, -0.058502197265625, -0.056488037109375, 0.0137176513671875, 0.01021575927734375, -0.037109375, -0.0248565673828125, -0.007274627685546875, -0.0283660888671875, 0.025787353515625, -0.0120086669921875, -0.010986328125, 0.047271728515625, -0.028076171875, 0.006359100341796875, -0.019927978515625, 0.0032825469970703125, 0.005756378173828125, 0.035675048828125, 0.02789306640625, -0.019927978515625, 0.07318115234375, -0.046875, -0.05584716796875, -0.01512908935546875, 0.06884765625, -0.0243072509765625, -0.0307464599609375, 0.01418304443359375, -0.01212310791015625, 0.001941680908203125, 0.034942626953125, 0.037506103515625, -0.045196533203125, 0.006366729736328125, -0.018585205078125, -0.007526397705078125, -0.048004150390625, 0.00612640380859375, 0.00490570068359375, -0.01003265380859375, -0.00836944580078125, 0.01293182373046875, 0.035980224609375, 0.00188446044921875, -0.006290435791015625, 0.0167388916015625, 0.027587890625, 0.0178070068359375, -0.018890380859375, 0.049530029296875, -0.030426025390625, -0.02276611328125, 0.0548095703125, -0.04388427734375, -0.0106201171875, 0.0096893310546875, 0.03094482421875, -0.01557159423828125, -0.02880859375, 0.0028076171875, -0.040985107421875, 0.0182342529296875, 0.00102996826171875, -0.03607177734375, -0.003734588623046875, -0.0222625732421875, 0.0027008056640625, -0.00518798828125, -0.0034236907958984375, -0.045654296875, -0.048919677734375, -0.00656890869140625, -0.0362548828125, -0.0325927734375, 0.050750732421875, 0.0092010498046875, 0.00785064697265625, 0.0160064697265625, -0.0202484130859375, 0.04620361328125, 0.02825927734375, -0.0184173583984375, -0.02410888671875, 0.01318359375, -0.0234527587890625, -0.03662109375, 0.0148162841796875, 0.0135650634765625, 0.01377105712890625, 0.00490570068359375, -0.0372314453125, 0.00881195068359375, 0.022705078125, -0.04827880859375, 0.028228759765625, 0.0115814208984375, 0.06884765625, 0.027069091796875, 0.0178375244140625, 0.0114898681640625, -0.01387786865234375, -0.043853759765625, 0.0235443115234375, -0.0311126708984375, -0.006427764892578125, 0.01239776611328125, 0.03509521484375, -0.0102691650390625, -0.0175933837890625, 0.00852203369140625, -0.00910186767578125, -0.0179443359375, -0.004058837890625, -0.0482177734375, -0.011993408203125, -0.0167999267578125, 0.0247955322265625, 0.02398681640625, 0.0355224609375, 0.00615692138671875, 0.028045654296875, -0.047607421875, 0.021240234375, -0.0033473968505859375, 0.02734375, -0.0081634521484375, 0.05731201171875, 0.04791259765625, -0.00366973876953125, 0.07830810546875, -0.03302001953125, 0.07318115234375, 0.00783538818359375, -0.01557159423828125, -0.0084075927734375, -0.01398468017578125, 0.00446319580078125, 0.0027217864990234375, 0.00710296630859375, 0.005924224853515625, 0.01335906982421875, -0.01076507568359375, -0.0008807182312011719, -0.015167236328125, 0.01039886474609375, 0.031524658203125, -0.0341796875, 0.005340576171875, 0.017181396484375, 0.0284271240234375, -0.0104217529296875, -0.00762939453125, 0.021820068359375, 0.025177001953125, -0.00763702392578125, 0.0178070068359375, 0.006732940673828125, -0.02911376953125, 0.0372314453125, 0.0052337646484375, 0.041290283203125, -0.0008230209350585938, -0.01091766357421875, -0.01255035400390625, 0.02813720703125, -0.0135955810546875, -0.0687255859375, 0.0238189697265625, -0.007061004638671875, 0.03363037109375, -0.00418853759765625, -0.056243896484375, 0.0318603515625, 0.04876708984375, -0.015899658203125, -0.00608062744140625, -0.008880615234375, -0.0209808349609375, 0.0270538330078125, 0.018096923828125, -0.0506591796875, 0.02392578125, 0.03753662109375, -0.041046142578125, 0.037322998046875, 0.0295867919921875, -0.0445556640625, 0.0116119384765625, 0.0156097412109375, 0.0035953521728515625, 0.0232391357421875, -0.0170440673828125, -0.008392333984375, 0.0242156982421875, -0.04510498046875, -0.0191497802734375, 0.005550384521484375, 0.0029087066650390625, -0.00899505615234375, 0.0115966796875, 0.043365478515625, -0.0149078369140625, 0.029632568359375, -0.0096588134765625, -0.0082244873046875, 0.0699462890625, -0.02337646484375, 0.013916015625, -0.00951385498046875, 0.06353759765625, 0.055877685546875, -0.0178680419921875, -0.00653839111328125, 0.0136566162109375, -0.0212554931640625, 0.0033779144287109375, 0.00249481201171875, -0.01029205322265625, 0.023681640625, -0.059173583984375, 0.02923583984375, 0.00397491455078125, 0.026702880859375, -0.03924560546875, -0.04290771484375, -0.041107177734375, 0.0042724609375, -0.07427978515625, -0.046417236328125, -0.0137481689453125, -0.0201263427734375, 0.05926513671875, 0.01251220703125, 0.0090179443359375, -0.052337646484375, 0.038055419921875, 0.0207977294921875, 0.02020263671875, 0.01470184326171875, 0.00811004638671875, 0.0160675048828125, -0.03125, -0.06634521484375, -0.01195526123046875, -0.02325439453125, -0.0010519027709960938, -0.0284881591796875, -0.0139007568359375, -0.0162200927734375, 0.0003478527069091797, 0.07061767578125, 0.0085601806640625, -0.0027065277099609375, 0.035186767578125, -0.077392578125, 0.0017061233520507812, 0.0089569091796875, -0.0060577392578125, 0.012969970703125, -0.006603240966796875, 0.0070648193359375, 0.002437591552734375, -0.00455474853515625, 0.03778076171875, -0.01739501953125, -0.0204010009765625, 0.00948333740234375, 0.0159759521484375, -0.04058837890625, -0.039398193359375, 0.0178680419921875, -0.041107177734375, 0.032806396484375, 0.0272979736328125, -0.02691650390625, 0.0018110275268554688, 0.01004791259765625, -0.031646728515625, -0.01515960693359375, -0.0211029052734375, -0.052703857421875, 0.06829833984375, 0.001613616943359375, 0.00022423267364501953, 0.0180511474609375, -0.0080718994140625, -0.03265380859375, 0.0435791015625, 0.00495147705078125, 0.01617431640625, 0.01219940185546875, -0.0004944801330566406, 0.024078369140625, -0.070068359375, 0.053497314453125, -0.029327392578125, -0.039794921875, 0.0150604248046875, -0.0173492431640625, 0.041259765625, 0.06549072265625, -0.01300811767578125, -0.0162353515625, 0.0017461776733398438, 0.0250396728515625, -0.089599609375, -0.0191802978515625, -0.03680419921875, 0.015167236328125, -0.08880615234375, -0.0000737309455871582, -0.01253509521484375, -0.01096343994140625, -0.0256500244140625, 0.04095458984375, -0.037353515625, -0.0382080078125, 0.043426513671875, 0.01251220703125, -0.0227508544921875, 0.0278472900390625, -0.01128387451171875, -0.004150390625, -0.0343017578125, 0.01123046875, -0.055450439453125, -0.01462554931640625, -0.0192718505859375, 0.0300140380859375, 0.0379638671875, -0.07220458984375, -0.02166748046875, 0.0292816162109375, 0.00870513916015625, 0.05828857421875, -0.014739990234375, -0.0062255859375, 0.05938720703125, -0.00937652587890625, -0.0033435821533203125, -0.0008268356323242188, 0.000018298625946044922, 0.045623779296875, -0.0211334228515625, 0.1038818359375, 0.0025348663330078125, 0.010498046875, 0.038970947265625, -0.06439208984375, -0.0792236328125, -0.03216552734375, -0.013214111328125, -0.0034351348876953125, 0.0181884765625, -0.01061248779296875, -0.041961669921875, -0.06744384765625, 0.06268310546875, 0.0308074951171875, -0.00710296630859375, -0.02520751953125, 0.0462646484375, 0.01812744140625, -0.057952880859375, 0.00881195068359375, 0.0100250244140625, 0.041168212890625, -0.0194854736328125, 0.045867919921875, 0.0032482147216796875, -0.04815673828125, 0.1563720703125, -0.0030517578125, -0.0187835693359375, 0.04437255859375, -0.00943756103515625, 0.0184783935546875, -0.03948974609375, 0.0186767578125, 0.01152801513671875, -0.0283203125, 0.029754638671875, 0.0142059326171875, 0.01134490966796875, 0.0301971435546875, 0.003108978271484375, 0.00882720947265625, -0.05474853515625, -0.0243377685546875, -0.0251007080078125, 0.0161590576171875, 0.0114288330078125, 0.009674072265625, -0.01210784912109375, 0.0233001708984375, -0.0124969482421875, 0.03997802734375, 0.0206756591796875, 0.0171661376953125, 0.0297393798828125, -0.01279449462890625, 0.04962158203125, 0.01233673095703125, 0.002269744873046875, -0.00971221923828125, -0.0081329345703125, 0.0127716064453125, 0.01364898681640625, -0.0416259765625, 0.015960693359375, -0.0003266334533691406, -0.0003292560577392578, 0.00981903076171875, 0.00460052490234375, 0.02520751953125, -0.020263671875, -0.0185546875, -0.0034427642822265625, -0.023284912109375, -0.006183624267578125, -0.033477783203125, 0.01300048828125, 0.0263824462890625, -0.0227508544921875, -0.0287017822265625, 0.08013916015625, 0.004077911376953125, 0.0148162841796875, -0.004856109619140625, -0.01378631591796875, 0.0231781005859375, -0.0159149169921875, 0.02020263671875, 0.00858306884765625, 0.022857666015625, -0.035980224609375, 0.050140380859375, -0.014617919921875, 0.037109375, 0.00774383544921875, 0.040771484375, 0.0284423828125, -0.011810302734375, -0.0079193115234375, -0.061737060546875, 0.011199951171875, 0.0271759033203125, 0.0117950439453125, -0.050445556640625, -0.011016845703125, -0.0002384185791015625, 0.0158843994140625, -0.02947998046875, -0.023040771484375, 0.0094451904296875, -0.024383544921875, 0.007785797119140625, 0.020843505859375, -0.055419921875, 0.04022216796875, 0.0518798828125, 0.00368499755859375, -0.0185089111328125, -0.005031585693359375, -0.0595703125, -0.01111602783203125, 0.0022430419921875, 0.020721435546875, -0.01337432861328125, -0.0160675048828125, -0.00782012939453125, 0.01617431640625, -0.0139312744140625, 0.01849365234375, 0.0270843505859375, 0.049896240234375, 0.0034465789794921875, -0.040252685546875, 0.0276641845703125, -0.037872314453125, -0.007587432861328125, -0.0599365234375, -0.0760498046875, -0.048675537109375, -0.01995849609375, 0.020294189453125, -0.001758575439453125, 0.03289794921875, 0.0302276611328125, -0.019683837890625, 0.044830322265625, 0.02001953125, 0.06011962890625, -0.01015472412109375, 0.03375244140625, 0.0195770263671875, 0.0091400146484375, 0.01739501953125, 0.0283203125, -0.0006031990051269531, -0.0178985595703125, 0.012664794921875, 0.00835418701171875, -0.007457733154296875, -0.023651123046875, 0.00782012939453125, -0.01678466796875, 0.07098388671875, 0.000782012939453125, -0.0262451171875, -0.00714874267578125, 0.00771331787109375, -0.02630615234375, -0.004894256591796875, 0.0026912689208984375, -0.02703857421875, -0.02252197265625, -0.0278167724609375, 0.00481414794921875, -0.019805908203125, -0.01568603515625, 0.0303497314453125, -0.0270843505859375, 0.020660400390625, 0.025787353515625, -0.047943115234375, 0.0223541259765625, 0.07275390625, 0.0443115234375, 0.073974609375, 0.0252838134765625, 0.043212890625, 0.017669677734375, -0.0237579345703125, 0.044525146484375, 0.016326904296875, 0.003387451171875, -0.049041748046875, 0.0207977294921875, -0.0173187255859375, -0.007030487060546875, 0.0160064697265625, 0.057861328125, 0.056427001953125, -0.09112548828125, 0.005016326904296875, 0.0273590087890625, -0.01396942138671875, -0.020660400390625, 0.0080108642578125, -0.0435791015625, -0.064697265625, 0.05059814453125, -0.0338134765625, -0.01447296142578125, 0.016937255859375, 0.0023593902587890625, -0.040985107421875, -0.01300811767578125, 0.0209503173828125, 0.022918701171875, -0.003131866455078125, 0.006832122802734375, 0.001407623291015625, -0.0120849609375, -0.01873779296875, 0.00455474853515625, -0.0127716064453125, -0.0179595947265625, -0.040130615234375, -0.005710601806640625, -0.0233154296875, -0.0009794235229492188, 0.0009565353393554688, -0.012847900390625, 0.04010009765625, 0.049530029296875, -0.0196685791015625, -0.00197601318359375, 0.016357421875, 0.0103912353515625, -0.0173492431640625, 0.00025391578674316406, 0.0272674560546875, -0.005687713623046875, -0.009918212890625, 0.00968170166015625, -0.032379150390625, -0.0289306640625, -0.0011053085327148438, -0.001834869384765625, 0.043609619140625, -0.0070648193359375, -0.02679443359375, 0.031707763671875, 0.0021228790283203125, -0.021392822265625, 0.0228424072265625, 0.01324462890625, -0.0416259765625, -0.058319091796875, 0.018646240234375, -0.0899658203125, -0.0255889892578125, -0.005031585693359375, -0.03448486328125, 0.029449462890625, 0.0041961669921875, 0.0227813720703125, 0.01422882080078125, 0.0012197494506835938, -0.002758026123046875, -0.00791168212890625, -0.0209197998046875, 0.05572509765625, 0.016510009765625, 0.01412200927734375, -0.0546875, -0.00911712646484375, 0.003421783447265625, 0.0501708984375, 0.00853729248046875, -0.0028476715087890625, 0.046234130859375, 0.0117645263671875, 0.0303497314453125, 0.030548095703125, -0.022064208984375, -0.02239990234375, -0.01087188720703125, 0.0291748046875, 0.01398468017578125, -0.052337646484375, 0.022552490234375, -0.020660400390625, -0.0256500244140625, 0.0111236572265625, 0.01325225830078125, -0.01114654541015625, -0.003818511962890625, 0.01117706298828125, -0.0733642578125, 0.00965118408203125, 0.023162841796875, 0.041900634765625, 0.0192108154296875, 0.0192718505859375, 0.050384521484375, -0.00991058349609375, 0.010528564453125, -0.0289459228515625, 0.0682373046875, 0.02630615234375, 0.016448974609375, 0.00975799560546875, 0.004047393798828125, 0.047210693359375, -0.02618408203125, -0.006366729736328125, 0.0027217864990234375, 0.003292083740234375, 0.06695556640625, 0.04779052734375, 0.025634765625, 0.004528045654296875, 0.06842041015625, -0.0167999267578125, 0.05706787109375, -0.0697021484375, -0.0300750732421875, -0.00396728515625, -0.0078582763671875, 0.004302978515625, 0.0180511474609375, 0.042144775390625, 0.01715087890625, 0.0207977294921875, 0.0188751220703125, 0.01806640625, 0.0021228790283203125, -0.00868988037109375, 0.0195159912109375, 0.0220184326171875, -0.01458740234375, 0.056793212890625, -0.067626953125, 0.053741455078125, 0.0298614501953125, 0.06378173828125, -0.0175933837890625, 0.11468505859375, -0.0031337738037109375, -0.022308349609375, 0.00740814208984375, 0.0136871337890625, -0.0341796875, 0.0018978118896484375, -0.046966552734375, -0.05023193359375, -0.034759521484375, 0.048858642578125, 0.0234527587890625, -0.0595703125, 0.032135009765625, 0.03900146484375, -0.035186767578125, -0.025146484375, 0.035186767578125, 0.00179290771484375, 0.0662841796875, -0.05157470703125, 0.01505279541015625, -0.02618408203125, -0.028839111328125, -0.01641845703125, -0.017913818359375, 0.0328369140625, -0.031097412109375, 0.069580078125, -0.006683349609375, -0.0217742919921875, -0.00885009765625, -0.0221405029296875, 0.052032470703125, 0.0012884140014648438, -0.05072021484375, -0.01025390625, -0.0210723876953125, -0.0118255615234375, 0.0263214111328125, 0.038421630859375, 0.011993408203125, 0.01094818115234375, 0.007053375244140625, 0.02484130859375, -0.00278472900390625, -0.0576171875, 0.027862548828125, 0.01751708984375, 0.0248565673828125, 0.0274200439453125, -0.038818359375, -0.050323486328125, -0.0227203369140625, 0.06329345703125, 0.018218994140625, 0.0024166107177734375, 0.0207672119140625, 0.056488037109375, -0.010406494140625, -0.0021762847900390625, 0.0118560791015625, 0.0012903213500976562, 0.056365966796875, 0.0423583984375, -0.00893402099609375, -0.041473388671875, -0.0467529296875, 0.017364501953125, 0.030181884765625, -0.017486572265625, 0.0308074951171875, -0.0174713134765625, 0.00946044921875, -0.03216552734375, 0.0236053466796875, -0.0347900390625, -0.06475830078125, -0.06634521484375, 0.00701141357421875, 0.023101806640625, 0.0330810546875, -0.00653839111328125, 0.0185699462890625, -0.022918701171875, -0.032684326171875, 0.0224761962890625, -0.029327392578125, 0.01271820068359375, 0.038177490234375, -0.01277923583984375, -0.0280609130859375, 0.00205230712890625, -0.01227569580078125, 0.007373809814453125, 0.0167236328125, 0.036407470703125, 0.01076507568359375, 0.0172271728515625, -0.0032024383544921875, -0.003536224365234375, 0.0081024169921875, -0.020416259765625, -0.0101318359375, 0.040283203125, -0.0242462158203125, -0.041778564453125, 0.01511383056640625, 0.006130218505859375, 0.023681640625, -0.01016998291015625, 0.016265869140625, 0.0285491943359375, -0.00879669189453125, -0.0264129638671875, -0.021942138671875, 0.0036029815673828125, -0.00457763671875, -0.006908416748046875, -0.03912353515625, 0.0015897750854492188, 0.03900146484375, -0.0255126953125, 0.0108795166015625, 0.01058197021484375, 0.0030879974365234375, -0.085205078125, 0.001689910888671875, -0.04241943359375, -0.0178375244140625, -0.03179931640625, -0.00949859619140625, 0.0158233642578125, 0.028106689453125, -0.0130615234375, 0.00024187564849853516, -0.023590087890625, 0.049468994140625, -0.0889892578125, -0.0294036865234375, 0.00946807861328125, -0.01451873779296875, -0.01163482666015625, -0.047760009765625, 0.040496826171875, -0.10101318359375, -0.0322265625, -0.007171630859375, -0.004150390625, -0.005130767822265625, -0.05023193359375, -0.08477783203125, 0.0654296875, -0.00789642333984375, -0.03271484375, -0.033966064453125, 0.055267333984375, -0.013916015625, -0.01386260986328125, -0.004413604736328125, -0.0309295654296875, 0.038238525390625, 0.021759033203125, 0.00482940673828125, 0.058349609375, 0.01885986328125, 0.0019588470458984375, 0.03802490234375, 0.020416259765625, 0.033721923828125, -0.004268646240234375, -0.034423828125, -0.0185089111328125, 0.00023162364959716797, -0.01465606689453125, -0.03851318359375, -0.06787109375, 0.03790283203125, 0.06097412109375, 0.001499176025390625, -0.039276123046875, 0.0037174224853515625, -0.01556396484375, 0.0201263427734375, -0.0005469322204589844, 0.002460479736328125, -0.0136566162109375, 0.04315185546875, 0.030059814453125, 0.01245880126953125, 0.01119232177734375, -0.003696441650390625, -0.017791748046875, -0.0322265625, -0.004596710205078125, -0.005828857421875, 0.001773834228515625, 0.00246429443359375, -0.033477783203125, -0.0046539306640625, 0.0037212371826171875, -0.0111541748046875, -0.0265045166015625, -0.0224151611328125, 0.060546875, -0.024505615234375, -0.0018873214721679688, 0.0146484375, 0.0207061767578125, 0.0237274169921875, 0.030242919921875, -0.0008606910705566406, 0.043243408203125, -0.00592041015625, 0.01561737060546875, 0.0228424072265625, -0.004528045654296875, 0.0111083984375, 0.006572723388671875, -0.027191162109375, 0.017364501953125, 0.0145263671875, 0.0209197998046875, -0.028228759765625, 0.025604248046875, 0.01898193359375, -0.005725860595703125, 0.0179595947265625, 0.00014352798461914062, 0.0294342041015625, -0.0018854141235351562, -0.05462646484375, 0.0016489028930664062, -0.035247802734375, -0.055877685546875, 0.007244110107421875, 0.023956298828125, 0.0092926025390625, -0.0380859375, 0.040252685546875, -0.00014781951904296875, 0.0147247314453125, 0.0197601318359375 ]
bb1cb43a7c1db1e04ef67820301dadd2d3a7cfaa
Wordpress Stackexchange Q: Using pre_get_posts to set posts per page, how do I? I am trying to use pre_get_posts to set posts per page for a single term within a taxonomy. One thing that is throwing me off is setting the term to apply the pre_get_posts to. Here's my code: function filter_press_tax( $query ){ if( $query->query_vars['tax_query']['taxonomy'] == 'press' && $query->query_vars['tax_query']['terms'][0] == 'press' ): $query->query_vars['posts_per_page'] = 5; return; endif; }//end filter_press_tax I'm not quite understanding how to access the taxonomy and term in the $query. Yes the taxonomy and term have the same name. Is this a bad idea? I do not have a custom query set up on the taxonomy-press-press.php template for the 'tax_query' is this the problem? Any help is appreciated! Thanks A: You're almost there mate. Try this though. <?php add_action('pre_get_posts', 'filter_press_tax'); function filter_press_tax( $query ){ if( $query->is_tax('press') && $query->has_term('press')): $query->set('posts_per_page', 5); return; endif; } ?> You can use any conditional tag or any argument that can be passed to WP_Query to test your condition or set a new value via pre_get_posts. Also try $query->get('taxonomy') / $query->get('term'). And check this for $query's set and get methods.
Q: Using pre_get_posts to set posts per page, how do I? I am trying to use pre_get_posts to set posts per page for a single term within a taxonomy. One thing that is throwing me off is setting the term to apply the pre_get_posts to. Here's my code: function filter_press_tax( $query ){ if( $query->query_vars['tax_query']['taxonomy'] == 'press' && $query->query_vars['tax_query']['terms'][0] == 'press' ): $query->query_vars['posts_per_page'] = 5; return; endif; }//end filter_press_tax I'm not quite understanding how to access the taxonomy and term in the $query. Yes the taxonomy and term have the same name. Is this a bad idea? I do not have a custom query set up on the taxonomy-press-press.php template for the 'tax_query' is this the problem? Any help is appreciated! Thanks A: You're almost there mate. Try this though. <?php add_action('pre_get_posts', 'filter_press_tax'); function filter_press_tax( $query ){ if( $query->is_tax('press') && $query->has_term('press')): $query->set('posts_per_page', 5); return; endif; } ?> You can use any conditional tag or any argument that can be passed to WP_Query to test your condition or set a new value via pre_get_posts. Also try $query->get('taxonomy') / $query->get('term'). And check this for $query's set and get methods.
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:418671", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47683" }
[ 0.04296875, 0.00975799560546875, -0.00960540771484375, -0.01200103759765625, 0.0281829833984375, -0.037506103515625, 0.05548095703125, -0.0194244384765625, -0.0194549560546875, -0.0293121337890625, -0.050262451171875, 0.010040283203125, -0.048248291015625, -0.031829833984375, 0.036956787109375, -0.055267333984375, 0.02191162109375, -0.06890869140625, -0.01806640625, -0.0265655517578125, -0.0001417398452758789, -0.025146484375, 0.05584716796875, 0.0269622802734375, 0.031951904296875, -0.0065155029296875, 0.0266571044921875, -0.0135345458984375, 0.01080322265625, -0.005100250244140625, 0.0262908935546875, -0.0364990234375, 0.01537322998046875, 0.010528564453125, 0.005001068115234375, 0.0304107666015625, -0.022064208984375, 0.02178955078125, 0.0234222412109375, -0.005817413330078125, 0.0233001708984375, -0.00804901123046875, -0.0723876953125, 0.05279541015625, -0.04998779296875, -0.04443359375, 0.0036773681640625, -0.0208587646484375, 0.01038360595703125, 0.00513458251953125, 0.031402587890625, 0.01520538330078125, 0.0350341796875, -0.0035457611083984375, -0.0225677490234375, -0.0013704299926757812, 0.0219573974609375, -0.05474853515625, 0.034454345703125, -0.0018205642700195312, -0.035247802734375, -0.0303192138671875, 0.0192413330078125, -0.05511474609375, -0.0114593505859375, -0.0013837814331054688, 0.016448974609375, 0.01091766357421875, -0.033355712890625, -0.0244598388671875, 0.0290985107421875, -0.0188446044921875, 0.022430419921875, -0.0016183853149414062, -0.01274871826171875, -0.06280517578125, 0.045013427734375, -0.007366180419921875, 0.003997802734375, 0.00783538818359375, 0.0296173095703125, 0.0201873779296875, -0.04248046875, 0.020660400390625, -0.0027790069580078125, 0.0269622802734375, -0.0081939697265625, -0.032073974609375, -0.0401611328125, -0.050689697265625, -0.019744873046875, -0.024200439453125, -0.068359375, -0.0203704833984375, 0.01300048828125, -0.054168701171875, -0.00864410400390625, 0.0292816162109375, -0.0018148422241210938, 0.00640869140625, -0.0243682861328125, -0.017730712890625, -0.0158538818359375, -0.017791748046875, 0.0206451416015625, 0.010284423828125, -0.0267791748046875, 0.0703125, 0.0906982421875, 0.046295166015625, 0.0182647705078125, 0.037933349609375, -0.0131683349609375, 0.0182342529296875, -0.043487548828125, -0.016998291015625, -0.0401611328125, -0.033294677734375, -0.017181396484375, -0.0154266357421875, 0.0213470458984375, 0.046966552734375, 0.0002803802490234375, -0.054962158203125, 0.0009045600891113281, -0.00174713134765625, -0.006008148193359375, -0.06097412109375, -0.029296875, 0.0572509765625, -0.0261383056640625, 0.00667572021484375, 0.047332763671875, 0.01264190673828125, -0.01335906982421875, -0.0308685302734375, 0.01511383056640625, -0.006778717041015625, -0.01274871826171875, 0.0276031494140625, -0.00958251953125, -0.0293121337890625, 0.00749969482421875, 0.0006103515625, -0.0204620361328125, 0.0056610107421875, 0.040374755859375, 0.00600433349609375, -0.0264892578125, -0.0278778076171875, -0.03057861328125, 0.041656494140625, 0.05419921875, -0.0029735565185546875, -0.0728759765625, 0.01279449462890625, 0.003139495849609375, 0.00141143798828125, -0.068359375, -0.0478515625, 0.050872802734375, -0.005100250244140625, -0.0011720657348632812, -0.03936767578125, -0.04644775390625, -0.024383544921875, -0.06964111328125, -0.00859832763671875, 0.005184173583984375, 0.022979736328125, 0.0144195556640625, 0.0008287429809570312, -0.013671875, -0.0234375, -0.0185394287109375, -0.0144805908203125, -0.01068115234375, 0.0281219482421875, 0.048583984375, -0.0275115966796875, -0.0347900390625, -0.032989501953125, 0.05633544921875, -0.0215301513671875, -0.0306549072265625, -0.0179290771484375, 0.01409912109375, -0.0006937980651855469, 0.00844573974609375, 0.01483154296875, 0.03045654296875, 0.0286865234375, -0.022918701171875, 0.00684356689453125, 0.0275421142578125, -0.0126953125, -0.039947509765625, -0.0183868408203125, -0.00044083595275878906, -0.0018978118896484375, -0.0183258056640625, 0.0005936622619628906, -0.00905609130859375, 0.0186767578125, -0.034210205078125, -0.004093170166015625, -0.00870513916015625, 0.02166748046875, -0.0230712890625, -0.003398895263671875, 0.032135009765625, -0.00986480712890625, -0.0270233154296875, 0.0160675048828125, -0.01226806640625, 0.00592041015625, -0.0243072509765625, 0.033111572265625, 0.00843048095703125, -0.0033359527587890625, 0.041168212890625, -0.0268707275390625, 0.03826904296875, 0.03839111328125, 0.040496826171875, -0.00867462158203125, -0.004795074462890625, -0.0306549072265625, 0.02630615234375, -0.00968170166015625, 0.0015439987182617188, 0.03070068359375, 0.07659912109375, 0.04217529296875, -0.004276275634765625, 0.0235443115234375, 0.042266845703125, -0.054656982421875, -0.007740020751953125, 0.03326416015625, 0.037994384765625, 0.004016876220703125, -0.0010080337524414062, -0.0070343017578125, 0.043365478515625, -0.030975341796875, 0.0197296142578125, -0.0223541259765625, 0.0241546630859375, 0.0364990234375, -0.0134124755859375, -0.0191497802734375, 0.021087646484375, -0.036865234375, 0.0134124755859375, 0.035552978515625, 0.0011138916015625, 0.0031337738037109375, 0.01087188720703125, -0.00786590576171875, -0.00814056396484375, -0.01081085205078125, -0.010833740234375, 0.0003490447998046875, -0.019927978515625, 0.043609619140625, 0.00279998779296875, 0.0105438232421875, -0.01026153564453125, 0.01641845703125, 0.0082550048828125, -0.03985595703125, -0.004306793212890625, -0.00507354736328125, -0.025299072265625, 0.008697509765625, -0.0262908935546875, 0.0256805419921875, -0.0162200927734375, -0.0204315185546875, -0.00311279296875, 0.06201171875, -0.016754150390625, -0.0158233642578125, -0.0302886962890625, -0.02313232421875, -0.0143585205078125, 0.0033130645751953125, -0.0015087127685546875, -0.0154571533203125, 0.020172119140625, 0.00626373291015625, -0.0462646484375, 0.05926513671875, -0.031158447265625, -0.0243072509765625, 0.005802154541015625, -0.063720703125, 0.05731201171875, -0.052276611328125, 0.048095703125, 0.06707763671875, -0.0065155029296875, 0.0194244384765625, -0.0031757354736328125, -0.0159149169921875, -0.038970947265625, 0.039642333984375, -0.005764007568359375, -0.03387451171875, -0.03228759765625, 0.034271240234375, 0.0301361083984375, 0.01019287109375, -0.01383209228515625, -0.037353515625, -0.0399169921875, -0.01076507568359375, -0.07421875, -0.03546142578125, 0.032379150390625, -0.0380859375, 0.007282257080078125, 0.00457000732421875, -0.0100555419921875, -0.0291900634765625, 0.01282501220703125, -0.013916015625, 0.0277557373046875, 0.00968170166015625, -0.04205322265625, -0.0044708251953125, -0.0419921875, 0.0053558349609375, -0.0025959014892578125, 0.00115203857421875, 0.0007700920104980469, 0.11114501953125, 0.0208740234375, -0.0618896484375, 0.00794219970703125, 0.0229644775390625, -0.029144287109375, 0.033477783203125, 0.0182342529296875, -0.0260162353515625, 0.0144195556640625, -0.0165557861328125, 0.0243377685546875, 0.048095703125, -0.028045654296875, 0.0129852294921875, -0.00986480712890625, 0.0084075927734375, 0.0018310546875, 0.034515380859375, 0.010406494140625, 0.00856781005859375, 0.0134735107421875, -0.024658203125, 0.02435302734375, -0.031768798828125, -0.01021575927734375, 0.04937744140625, -0.0031375885009765625, -0.0023822784423828125, 0.0303192138671875, -0.00015270709991455078, -0.026336669921875, -0.015380859375, 0.026031494140625, -0.029693603515625, -0.00405120849609375, -0.01282501220703125, -0.0286102294921875, -0.007213592529296875, 0.0026149749755859375, -0.0261688232421875, 0.047088623046875, 0.0200042724609375, 0.00614166259765625, -0.0077362060546875, 0.024932861328125, -0.01076507568359375, -0.0478515625, 0.03460693359375, -0.0238037109375, 0.00524139404296875, -0.047637939453125, -0.0248870849609375, -0.01337432861328125, 0.089111328125, -0.007480621337890625, -0.0233612060546875, -0.0189056396484375, 0.00250244140625, -0.002605438232421875, -0.036376953125, 0.014556884765625, -0.01263427734375, -0.0546875, -0.0107421875, -0.01515960693359375, -0.0198822021484375, -0.02850341796875, 0.0017251968383789062, -0.0418701171875, -0.0261383056640625, 0.049591064453125, -0.00931549072265625, 0.018524169921875, 0.0112457275390625, -0.01470947265625, -0.0164642333984375, -0.058441162109375, 0.0079498291015625, -0.049560546875, -0.00402069091796875, 0.031646728515625, 0.01326751708984375, 0.0097808837890625, -0.0535888671875, 0.0029277801513671875, 0.035064697265625, 0.03204345703125, 0.041168212890625, 0.0012292861938476562, -0.002552032470703125, -0.018280029296875, -0.0271453857421875, 0.001178741455078125, -0.032012939453125, -0.00992584228515625, 0.0056915283203125, 0.035003662109375, 0.07110595703125, -0.054595947265625, -0.01377105712890625, -0.0550537109375, -0.0037021636962890625, -0.1060791015625, -0.00986480712890625, -0.01873779296875, -0.0235595703125, -0.0241241455078125, -0.029876708984375, 0.005512237548828125, -0.0855712890625, 0.03228759765625, 0.00489044189453125, -0.0247955322265625, -0.0012989044189453125, 0.06854248046875, 0.016510009765625, -0.0170135498046875, -0.01197052001953125, 0.02276611328125, 0.00577545166015625, 0.002231597900390625, 0.026275634765625, 0.00042557716369628906, -0.0005440711975097656, -0.007381439208984375, -0.021484375, -0.04034423828125, -0.009063720703125, 0.045074462890625, -0.00897979736328125, -0.034698486328125, 0.006725311279296875, -0.05450439453125, 0.060516357421875, 0.0250244140625, -0.019989013671875, -0.0198211669921875, -0.0206756591796875, 0.049530029296875, -0.01468658447265625, 0.033233642578125, -0.035980224609375, -0.0216522216796875, 0.0159149169921875, 0.058074951171875, 0.007904052734375, -0.006923675537109375, 0.0169219970703125, -0.0082550048828125, 0.0010538101196289062, -0.00010943412780761719, 0.0186004638671875, 0.085205078125, -0.021575927734375, 0.0592041015625, -0.015777587890625, -0.027099609375, -0.02655029296875, 0.005062103271484375, -0.034210205078125, -0.03948974609375, -0.058502197265625, -0.0089263916015625, 0.00949859619140625, 0.0255889892578125, 0.045623779296875, 0.0131683349609375, 0.0201873779296875, 0.01232147216796875, -0.0307464599609375, 0.00004589557647705078, 0.01739501953125, -0.005218505859375, -0.03643798828125, -0.0294189453125, -0.0006842613220214844, -0.005245208740234375, 0.038787841796875, 0.031280517578125, 0.0153045654296875, 0.0235443115234375, -0.0299530029296875, 0.02825927734375, 0.042083740234375, 0.00229644775390625, 0.029022216796875, 0.005222320556640625, -0.0015230178833007812, -0.0212554931640625, -0.01055145263671875, -0.0218963623046875, -0.018157958984375, 0.0089263916015625, 0.0148773193359375, -0.0247955322265625, 0.00618743896484375, 0.021087646484375, 0.00833892822265625, -0.0213470458984375, 0.010009765625, 0.0143280029296875, 0.006870269775390625, -0.035369873046875, -0.016326904296875, 0.0249481201171875, 0.01837158203125, 0.023956298828125, -0.027923583984375, 0.0269317626953125, 0.043121337890625, -0.07037353515625, 0.03851318359375, 0.00677490234375, 0.006908416748046875, 0.0009937286376953125, -0.0183258056640625, -0.006366729736328125, -0.038970947265625, -0.0160369873046875, -0.017486572265625, -0.00921630859375, 0.0811767578125, -0.049102783203125, 0.03778076171875, -0.052703857421875, 0.0211029052734375, -0.0899658203125, 0.013397216796875, 0.02423095703125, 0.049163818359375, -0.032196044921875, -0.0065460205078125, -0.043609619140625, -0.0196533203125, -0.01003265380859375, -0.0081024169921875, -0.0221405029296875, 0.011016845703125, 0.0284271240234375, 0.038421630859375, -0.0126190185546875, -0.07318115234375, -0.027496337890625, -0.026763916015625, 0.038116455078125, 0.047821044921875, 0.00273895263671875, 0.0400390625, -0.004241943359375, 0.047637939453125, 0.01055908203125, -0.0101776123046875, -0.027099609375, -0.02056884765625, -0.024139404296875, -0.10308837890625, -0.00948333740234375, 0.0246124267578125, -0.0450439453125, 0.057098388671875, 0.0180206298828125, 0.0141143798828125, 0.050018310546875, -0.0206451416015625, 0.004962921142578125, -0.0032958984375, -0.037353515625, -0.033416748046875, -0.01611328125, 0.07855224609375, -0.001781463623046875, 0.051177978515625, -0.011810302734375, -0.01329803466796875, 0.022216796875, -0.02178955078125, 0.041778564453125, -0.00315093994140625, -0.0263824462890625, 0.02349853515625, 0.035736083984375, 0.005512237548828125, 0.04022216796875, -0.004364013671875, 0.0125885009765625, 0.0267791748046875, -0.01343536376953125, 0.0256195068359375, 0.0018863677978515625, 0.031494140625, -0.02398681640625, 0.027862548828125, 0.037841796875, -0.00801849365234375, -0.006778717041015625, 0.059539794921875, 0.0204010009765625, -0.08551025390625, -0.02374267578125, 0.0046234130859375, -0.0270233154296875, -0.050079345703125, 0.033050537109375, 0.004413604736328125, -0.001125335693359375, 0.007114410400390625, -0.018829345703125, 0.007312774658203125, 0.0191650390625, 0.0015306472778320312, -0.01554107666015625, -0.029052734375, 0.03619384765625, 0.01285552978515625, -0.0295257568359375, 0.018035888671875, 0.01387786865234375, -0.01467132568359375, -0.0019369125366210938, 0.016815185546875, 0.0010433197021484375, -0.0283050537109375, -0.075439453125, -0.004974365234375, -0.00562286376953125, -0.037445068359375, 0.029266357421875, -0.01019287109375, 0.0101776123046875, 0.0102691650390625, 0.006557464599609375, -0.038055419921875, -0.002361297607421875, -0.06951904296875, -0.060211181640625, -0.02178955078125, 0.03570556640625, 0.00377655029296875, -0.050018310546875, 0.0288543701171875, -0.041656494140625, -0.035552978515625, -0.0205535888671875, -0.065673828125, 0.0296173095703125, -0.0304412841796875, 0.004451751708984375, -0.004833221435546875, 0.0242462158203125, 0.01555633544921875, 0.005001068115234375, 0.006420135498046875, -0.037567138671875, -0.035888671875, -0.0014820098876953125, -0.047393798828125, -0.0165252685546875, -0.02606201171875, -0.048187255859375, 0.110107421875, -0.0278472900390625, 0.02349853515625, 0.0218048095703125, 0.05047607421875, -0.029815673828125, 0.0223388671875, -0.026275634765625, 0.00592803955078125, 0.009613037109375, 0.0216827392578125, -0.043609619140625, -0.007717132568359375, -0.0162506103515625, 0.039947509765625, 0.083251953125, 0.0168914794921875, -0.05645751953125, 0.002483367919921875, 0.0970458984375, 0.056243896484375, 0.015960693359375, 0.045379638671875, 0.011962890625, 0.035400390625, 0.07318115234375, -0.0248565673828125, 0.047515869140625, -0.0004963874816894531, -0.0064697265625, 0.046142578125, -0.004299163818359375, -0.0019168853759765625, -0.00860595703125, 0.0094146728515625, -0.020111083984375, -0.004070281982421875, 0.0214080810546875, -0.022491455078125, 0.0160675048828125, 0.012481689453125, 0.040130615234375, -0.049835205078125, 0.0216064453125, -0.02569580078125, 0.042388916015625, 0.00591278076171875, 0.024688720703125, 0.044921875, 0.0068206787109375, 0.07952880859375, 0.0159759521484375, 0.0203399658203125, 0.02117919921875, 0.01409912109375, 0.0303192138671875, 0.0067291259765625, 0.01422119140625, -0.04010009765625, 0.035186767578125, 0.028350830078125, 0.04632568359375, -0.0374755859375, -0.046356201171875, 0.0082550048828125, 0.01169586181640625, -0.01251983642578125, 0.0296630859375, 0.01200103759765625, 0.044921875, 0.0789794921875, -0.07269287109375, -0.0019512176513671875, 0.01078033447265625, 0.02099609375, -0.020782470703125, 0.029083251953125, -0.0214691162109375, -0.026458740234375, -0.027557373046875, -0.0295562744140625, 0.01263427734375, 0.055755615234375, 0.0328369140625, 0.01042938232421875, -0.037628173828125, -0.0186309814453125, 0.01288604736328125, -0.002437591552734375, 0.0153350830078125, -0.0217742919921875, 0.0252838134765625, 0.01078033447265625, 0.0028667449951171875, -0.0033550262451171875, 0.043426513671875, 0.001277923583984375, 0.0322265625, 0.0230865478515625, 0.002292633056640625, 0.016845703125, 0.049591064453125, -0.00037598609924316406, 0.0248260498046875, 0.0046234130859375, -0.03778076171875, -0.00797271728515625, -0.033233642578125, -0.0280303955078125, 0.01110076904296875, 0.017974853515625, 0.0032291412353515625, 0.0252227783203125, 0.002666473388671875, -0.01515960693359375, 0.031707763671875, -0.0040283203125, 0.059417724609375, 0.0249481201171875, -0.03875732421875, 0.007152557373046875, -0.0628662109375, -0.06549072265625, 0.0296630859375, 0.038055419921875, 0.0021305084228515625, -0.01322174072265625, -0.002834320068359375, -0.0228424072265625, 0.042724609375, -0.01031494140625, 0.00672149658203125, 0.036376953125, 0.00556182861328125, -0.0005040168762207031, 0.01800537109375, 0.004383087158203125, 0.009979248046875, 0.02642822265625, 0.0178985595703125, 0.03759765625, -0.01264190673828125, 0.0120086669921875, -0.0025787353515625, 0.024993896484375, -0.00615692138671875, -0.005870819091796875, 0.0377197265625, 0.006130218505859375, 0.0081787109375, -0.01708984375, -0.004444122314453125, -0.00746917724609375, 0.046142578125, -0.043426513671875, -0.0004355907440185547, -0.0240020751953125, 0.022705078125, -0.00878143310546875, 0.07733154296875, -0.007709503173828125, -0.00342559814453125, -0.058624267578125, -0.0267486572265625, 0.07037353515625, 0.0244140625, -0.03961181640625, 0.051422119140625, 0.0184478759765625, -0.005565643310546875, 0.035430908203125, -0.046722412109375, 0.042572021484375, 0.026458740234375, -0.00997161865234375, 0.0204315185546875, -0.00923919677734375, -0.022918701171875, -0.01549530029296875, 0.0290679931640625, -0.046600341796875, -0.0006818771362304688, 0.0024585723876953125, -0.019134521484375, -0.013916015625, 0.0018157958984375, -0.0343017578125, -0.003925323486328125, 0.00719451904296875, -0.015594482421875, -0.0367431640625, 0.0177764892578125, -0.0234527587890625, -0.002758026123046875, -0.0249176025390625, -0.0155487060546875, -0.004062652587890625, -0.073486328125, -0.038482666015625, 0.012542724609375, 0.03271484375, -0.01549530029296875, -0.018646240234375, 0.0173492431640625, -0.054962158203125, 0.0298919677734375, -0.00830841064453125, -0.03363037109375, 0.00847625732421875, 0.00457000732421875, -0.006443023681640625, 0.007190704345703125, -0.032928466796875, -0.010986328125, -0.007694244384765625, 0.0115203857421875, 0.028839111328125, -0.0316162109375, -0.0262908935546875, 0.00284576416015625, 0.0009260177612304688, 0.044189453125, 0.01511383056640625, -0.025421142578125, 0.025146484375, -0.009124755859375, -0.004268646240234375, -0.07489013671875, 0.0023365020751953125, -0.06866455078125, 0.007236480712890625, -0.002574920654296875, -0.011260986328125, 0.0035858154296875, -0.05108642578125, -0.11602783203125, 0.0350341796875, -0.0236358642578125, -0.046142578125, -0.048065185546875, -0.00495147705078125, -0.00738525390625, 0.023162841796875, -0.0004506111145019531, -0.019989013671875, -0.05426025390625, 0.007587432861328125, 0.007049560546875, 0.0616455078125, 0.010101318359375, -0.006992340087890625, -0.039398193359375, -0.0168914794921875, -0.037841796875, 0.0283050537109375, -0.0141143798828125, 0.005428314208984375, 0.0081024169921875, 0.0016851425170898438, -0.033966064453125, 0.01371002197265625, 0.01263427734375, 0.00696563720703125, -0.0024776458740234375, -0.027313232421875, -0.052490234375, -0.0197296142578125, 0.09423828125, 0.0271453857421875, 0.029022216796875, -0.033172607421875, 0.014190673828125, -0.00870513916015625, -0.043304443359375, 0.00004601478576660156, 0.02423095703125, -0.0367431640625, -0.00705718994140625, 0.006961822509765625, -0.01517486572265625, 0.007373809814453125, -0.04168701171875, -0.02703857421875, -0.0085906982421875, -0.057525634765625, -0.0021877288818359375, -0.0201568603515625, -0.02020263671875, -0.043182373046875, 0.006072998046875, -0.049224853515625, 0.0033702850341796875, 0.01345062255859375, -0.07965087890625, 0.0406494140625, -0.0156707763671875, 0.04443359375, -0.0418701171875, -0.028900146484375, 0.004528045654296875, -0.0201263427734375, 0.00563812255859375, 0.026885986328125, 0.0170745849609375, 0.0135650634765625, -0.007843017578125, -0.004669189453125, 0.0009031295776367188, 0.052581787109375, -0.032928466796875, 0.10601806640625, 0.000026226043701171875, 0.08331298828125, 0.024078369140625, 0.03167724609375, -0.01259613037109375, -0.0095977783203125, 0.0052337646484375, -0.03057861328125, -0.004962921142578125, -0.0241851806640625, -0.023590087890625, -0.036712646484375, 0.0003299713134765625, -0.037139892578125, -0.01383209228515625, 0.023468017578125 ]
1b85d531d0385075b0f68268bba7a985347d550a
Wordpress Stackexchange Q: Plugin to restrict non-admin user to existing tags Is there a plugin that would restrict non-admin users to only existing tags? I could have used categories for this, but it will be difficult to display with a large population (~1000) of tags. A: None of these solutions did exactly what I needed to allow non-admin users to use existing tags on a post, but not create new tags. So I created the following solution, which works great - although it does not provide any feedback to the user that their tags weren't added (it really just undoes the tag creation immediately): add_action('create_term','undo_create_term',10, 3); function undo_create_term ($term_id, $tt_id, $taxonomy) { if ( !current_user_can( 'administrator' ) ) { if($taxonomy == 'post_tag') { wp_delete_term($term_id,$taxonomy); } } }
Q: Plugin to restrict non-admin user to existing tags Is there a plugin that would restrict non-admin users to only existing tags? I could have used categories for this, but it will be difficult to display with a large population (~1000) of tags. A: None of these solutions did exactly what I needed to allow non-admin users to use existing tags on a post, but not create new tags. So I created the following solution, which works great - although it does not provide any feedback to the user that their tags weren't added (it really just undoes the tag creation immediately): add_action('create_term','undo_create_term',10, 3); function undo_create_term ($term_id, $tt_id, $taxonomy) { if ( !current_user_can( 'administrator' ) ) { if($taxonomy == 'post_tag') { wp_delete_term($term_id,$taxonomy); } } } A: If you do not already have your tags created, you can use the "Bulk Add Tags" plugin - http://wordpress.org/extend/plugins/bulk-add-tags/ Then to restrict all users except admins from adding new tags via the "New Post" screen, add this code to your theme's functions.php file: //Hide Post Page Options from all except Administrator if (!current_user_can('administrator')){ function hide_post_page_options() { global $post; $hide_post_options = "<style type=\"text/css\"> .jaxtag { display: none; }</style>"; print($hide_post_options); } add_action( 'admin_head', 'hide_post_page_options' ); } This will simply hide the box for entering new tags from all users except administrators. I actually use this method to hide many areas of the "New Post" page. Simply find and add the element's div class or id before { display: none; } and separated by commas. If you're unfamiliar, you can use the Firebug plugin with Firefox, or simply right-click and select "Inspect Element" in Chrome. I prefer this method over many plugins because it does not remove functionality completely from Wordpress, the functionality is simply hidden from users who do not need it. A: Your question has really intrigued me. I can see a huge use for this situation, so I will do whatever I can to help you find the answer. Here is another solution, not exactly what you mentioned in your comment on the other answer, but it does make it a little easier for users to find the tags they want, as the tags are listed alphabetically. Manage Tags Capability plugin - http://wordpress.org/extend/plugins/manage-tags-capability/ Also, should note: This method allows users to select from ALL available tags. I just realized, the other method only allows users to select from the "most used" tags. Wordpress already does an auto-predict when typing tags, so essentially, we need to find a way to allow users to type the tag they want, but not add a new one if they cannot find it. A: This is how I solve same problem (in functions.php of your theme): /* Removing Tags for users */ if (is_admin()) : function my_remove_meta_boxes() { if(!current_user_can('publish_posts')) { remove_meta_box('tagsdiv-post_tag', 'post', 'normal'); } } add_action( 'admin_menu', 'my_remove_meta_boxes' ); endif; First we check if it's admin area, then we check if user can publish posts (usually it's admins and editors), than we do our magic with remove_meta_box.
wordpress
{ "language": "en", "length": 498, "provenance": "stackexchange_00019.jsonl.gz:418672", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47691" }
[ 0.09552001953125, 0.01235198974609375, 0.023223876953125, -0.0230865478515625, 0.03680419921875, -0.03912353515625, 0.06072998046875, -0.048187255859375, -0.0115203857421875, 0.0243682861328125, -0.0245513916015625, -0.0019102096557617188, -0.0045623779296875, -0.01067352294921875, -0.014190673828125, -0.036102294921875, 0.00843048095703125, -0.01099395751953125, 0.00933074951171875, -0.0143890380859375, 0.006519317626953125, -0.0059814453125, 0.032989501953125, 0.0046234130859375, -0.0152740478515625, -0.0020389556884765625, 0.0221099853515625, -0.0155792236328125, 0.0025634765625, -0.0238037109375, 0.0125274658203125, -0.0011577606201171875, 0.005146026611328125, 0.0119781494140625, -0.007656097412109375, -0.0188446044921875, -0.021392822265625, 0.01441192626953125, 0.0206451416015625, -0.0028476715087890625, 0.0509033203125, -0.03057861328125, -0.038116455078125, 0.056793212890625, -0.0182952880859375, -0.06658935546875, 0.060516357421875, -0.00873565673828125, -0.0109100341796875, -0.034637451171875, 0.0306549072265625, -0.045989990234375, 0.052215576171875, -0.047943115234375, -0.0181884765625, 0.005939483642578125, -0.0005030632019042969, -0.0146484375, 0.0372314453125, -0.010650634765625, -0.028778076171875, -0.03924560546875, 0.0271148681640625, -0.0153045654296875, 0.0191192626953125, -0.00626373291015625, -0.002048492431640625, 0.0181732177734375, -0.06072998046875, 0.0138702392578125, 0.04718017578125, -0.048858642578125, 0.011138916015625, 0.01332855224609375, -0.019317626953125, -0.03173828125, 0.0285797119140625, 0.00891876220703125, 0.0151824951171875, 0.01387786865234375, 0.032073974609375, 0.002490997314453125, -0.0006914138793945312, 0.023284912109375, -0.02410888671875, 0.015625, -0.0026721954345703125, -0.0148162841796875, -0.022430419921875, 0.002933502197265625, -0.037109375, -0.0254364013671875, 0.001064300537109375, 0.0104522705078125, -0.01496124267578125, -0.006885528564453125, 0.04754638671875, 0.052520751953125, -0.01561737060546875, -0.00328826904296875, -0.006969451904296875, -0.04302978515625, 0.00855255126953125, -0.0254364013671875, 0.0204315185546875, 0.072998046875, -0.0150604248046875, -0.0157470703125, 0.0286712646484375, 0.01071929931640625, 0.0277252197265625, -0.00852203369140625, -0.0167236328125, -0.018707275390625, -0.01007843017578125, -0.00446319580078125, -0.047607421875, 0.017486572265625, -0.0067291259765625, -0.005840301513671875, -0.011810302734375, 0.01241302490234375, -0.03533935546875, 0.0294647216796875, 0.02978515625, 0.0280303955078125, -0.007354736328125, 0.0008368492126464844, -0.0221099853515625, -0.017913818359375, -0.00495147705078125, 0.040069580078125, 0.07403564453125, 0.014312744140625, -0.0144500732421875, 0.002506256103515625, 0.0238800048828125, -0.0236968994140625, -0.0304412841796875, 0.0110626220703125, 0.01129150390625, -0.013885498046875, -0.016845703125, -0.036224365234375, 0.036895751953125, 0.04302978515625, 0.0026988983154296875, -0.0031147003173828125, 0.023681640625, -0.0280303955078125, 0.03033447265625, -0.07861328125, 0.06854248046875, -0.01381683349609375, -0.050323486328125, -0.01268768310546875, 0.0238037109375, -0.0225982666015625, -0.05340576171875, -0.049285888671875, 0.006290435791015625, -0.0194091796875, 0.0018444061279296875, -0.0218048095703125, -0.05548095703125, 0.0218963623046875, -0.03887939453125, -0.0012645721435546875, 0.035888671875, -0.0093994140625, 0.043487548828125, -0.0240936279296875, 0.052581787109375, 0.00337982177734375, -0.0086822509765625, 0.013275146484375, 0.01546478271484375, 0.035552978515625, 0.0216217041015625, 0.01245880126953125, 0.0016422271728515625, -0.0191192626953125, 0.06524658203125, -0.0175628662109375, -0.05487060546875, -0.0136260986328125, 0.0014181137084960938, 0.038726806640625, 0.0543212890625, 0.006824493408203125, 0.053619384765625, -0.0183868408203125, 0.0002536773681640625, 0.00691986083984375, 0.0167388916015625, -0.04925537109375, -0.0272216796875, -0.02313232421875, -0.0203399658203125, 0.0082550048828125, 0.0299224853515625, 0.007843017578125, 0.007717132568359375, -0.045166015625, -0.08905029296875, -0.0092010498046875, -0.0281982421875, 0.052886962890625, -0.00611114501953125, 0.00884246826171875, 0.004261016845703125, -0.0234375, -0.003437042236328125, -0.004817962646484375, -0.006214141845703125, -0.0260009765625, -0.029693603515625, 0.04376220703125, 0.01971435546875, 0.023681640625, 0.07061767578125, -0.0347900390625, 0.058990478515625, -0.0176849365234375, -0.0093994140625, 0.0169219970703125, -0.0127410888671875, 0.018646240234375, -0.0142974853515625, 0.030120849609375, 0.0038909912109375, 0.00036978721618652344, 0.04803466796875, 0.02337646484375, -0.0167388916015625, -0.009246826171875, -0.0093231201171875, -0.115234375, 0.01690673828125, 0.06610107421875, 0.01190185546875, 0.004367828369140625, -0.028717041015625, -0.0043792724609375, 0.061737060546875, -0.0288543701171875, -0.006946563720703125, 0.0034542083740234375, -0.0250244140625, 0.00762939453125, 0.00439453125, 0.041168212890625, 0.037750244140625, 0.0280303955078125, 0.004802703857421875, 0.037200927734375, -0.0245361328125, -0.030487060546875, 0.033782958984375, -0.035003662109375, 0.0129852294921875, -0.0531005859375, -0.0216217041015625, -0.01806640625, 0.01221466064453125, -0.0250396728515625, 0.0241851806640625, 0.0281829833984375, -0.0015459060668945312, -0.040496826171875, 0.0174102783203125, 0.0023975372314453125, 0.008148193359375, 0.004459381103515625, 0.02197265625, 0.04644775390625, -0.07635498046875, 0.00011044740676879883, 0.0701904296875, 0.02899169921875, -0.00627899169921875, 0.06549072265625, -0.0003108978271484375, -0.0195770263671875, -0.03564453125, -0.046630859375, 0.005157470703125, -0.0113983154296875, -0.036346435546875, -0.07098388671875, -0.02191162109375, 0.0172882080078125, -0.03863525390625, 0.0374755859375, 0.00553131103515625, -0.038787841796875, -0.0736083984375, -0.046783447265625, 0.04266357421875, -0.04473876953125, 0.043365478515625, 0.0794677734375, 0.0205078125, 0.003509521484375, 0.033782958984375, 0.0075531005859375, -0.002559661865234375, 0.0198516845703125, 0.01300048828125, 0.04669189453125, -0.060028076171875, 0.0196075439453125, 0.0117340087890625, 0.007068634033203125, -0.00302886962890625, -0.04766845703125, -0.0178375244140625, 0.0057525634765625, -0.0153961181640625, 0.034942626953125, -0.0145111083984375, -0.0280609130859375, -0.00904083251953125, -0.0029926300048828125, -0.0287628173828125, 0.0098724365234375, 0.0171661376953125, 0.0095672607421875, -0.047607421875, -0.029815673828125, -0.0278472900390625, -0.07122802734375, -0.0164794921875, 0.00978851318359375, -0.00946807861328125, -0.0142364501953125, 0.003997802734375, 0.08038330078125, 0.0017309188842773438, -0.060394287109375, -0.003971099853515625, -0.035675048828125, -0.01406097412109375, 0.0218505859375, -0.002307891845703125, 0.004322052001953125, 0.0174713134765625, 0.018798828125, -0.021697998046875, 0.004642486572265625, -0.006061553955078125, -0.039764404296875, 0.0201873779296875, -0.02032470703125, 0.0242462158203125, 0.01288604736328125, -0.022216796875, 0.003437042236328125, 0.0240936279296875, -0.0308685302734375, 0.031585693359375, -0.012725830078125, -0.00682830810546875, 0.0428466796875, -0.0254364013671875, -0.02203369140625, 0.026580810546875, 0.007610321044921875, 0.0301971435546875, 0.02911376953125, -0.01076507568359375, 0.033721923828125, -0.000102996826171875, -0.019927978515625, -0.0160369873046875, -0.0213470458984375, 0.001811981201171875, -0.041900634765625, 0.0140838623046875, -0.0304718017578125, -0.016204833984375, -0.01544189453125, -0.00397491455078125, -0.021514892578125, -0.028594970703125, 0.01995849609375, -0.053070068359375, 0.044097900390625, -0.05914306640625, -0.00677490234375, -0.032958984375, 0.08209228515625, -0.07525634765625, -0.00603485107421875, -0.031585693359375, 0.0075225830078125, 0.01194000244140625, -0.03936767578125, -0.0322265625, -0.01468658447265625, -0.048065185546875, -0.00829315185546875, -0.0105743408203125, -0.01108551025390625, -0.0186004638671875, -0.01032257080078125, -0.0270538330078125, -0.024993896484375, 0.041229248046875, -0.0789794921875, 0.05322265625, -0.027984619140625, 0.048828125, -0.0787353515625, -0.0175323486328125, -0.031341552734375, -0.07550048828125, -0.00450897216796875, -0.04058837890625, 0.05126953125, -0.00157928466796875, 0.03985595703125, -0.04217529296875, 0.025726318359375, -0.007244110107421875, -0.010711669921875, -0.004222869873046875, 0.0207061767578125, -0.01540374755859375, -0.0264739990234375, -0.0175628662109375, -0.03546142578125, -0.0115966796875, -0.00164031982421875, 0.01021575927734375, 0.048736572265625, -0.0214996337890625, -0.004329681396484375, -0.00482177734375, -0.0248260498046875, -0.047637939453125, -0.043609619140625, -0.040283203125, -0.01256561279296875, -0.0224761962890625, -0.00540924072265625, -0.02191162109375, -0.0494384765625, 0.03729248046875, 0.0005359649658203125, -0.0048370361328125, 0.00839996337890625, 0.05950927734375, 0.009796142578125, -0.012603759765625, -0.032623291015625, 0.02294921875, 0.0309295654296875, 0.004177093505859375, 0.0287933349609375, 0.01372528076171875, -0.022735595703125, 0.03643798828125, -0.0024471282958984375, -0.010223388671875, -0.0209197998046875, 0.046417236328125, -0.014862060546875, -0.06378173828125, 0.038665771484375, -0.02838134765625, 0.01080322265625, -0.021331787109375, -0.02178955078125, 0.00646209716796875, 0.0109710693359375, 0.040069580078125, -0.01082611083984375, 0.0010738372802734375, -0.048095703125, -0.07525634765625, 0.0367431640625, -0.00934600830078125, -0.057891845703125, -0.0236053466796875, -0.0005116462707519531, -0.019500732421875, -0.07177734375, -0.0096893310546875, -0.030853271484375, -0.008453369140625, 0.0033855438232421875, 0.030853271484375, -0.02978515625, -0.00020456314086914062, -0.0242156982421875, -0.002407073974609375, 0.043121337890625, -0.0209808349609375, -0.059173583984375, -0.0145721435546875, -0.004093170166015625, 0.039093017578125, 0.04852294921875, -0.007232666015625, 0.0233306884765625, 0.007293701171875, 0.007720947265625, 0.00428009033203125, -0.0240936279296875, -0.0137786865234375, -0.03466796875, -0.022125244140625, -0.01467132568359375, -0.001068115234375, -0.0031147003173828125, 0.04595947265625, -0.0129852294921875, 0.03204345703125, -0.011260986328125, 0.05474853515625, 0.068115234375, -0.01215362548828125, 0.005634307861328125, 0.01861572265625, -0.01332855224609375, -0.0093536376953125, 0.01177978515625, -0.0272674560546875, 0.007427215576171875, 0.00615692138671875, 0.0245513916015625, 0.021759033203125, -0.019256591796875, 0.0158538818359375, -0.021453857421875, -0.01202392578125, 0.02386474609375, -0.0021514892578125, -0.029296875, -0.0196990966796875, 0.018341064453125, 0.038055419921875, -0.01366424560546875, -0.005489349365234375, 0.0184173583984375, -0.01360321044921875, 0.015594482421875, -0.02069091796875, -0.03369140625, 0.0038433074951171875, 0.019805908203125, -0.040283203125, 0.0021839141845703125, -0.0081634521484375, 0.0281982421875, -0.0323486328125, -0.0124969482421875, -0.035308837890625, 0.0261993408203125, -0.0096893310546875, 0.0215301513671875, -0.0159759521484375, -0.0016527175903320312, -0.0182037353515625, -0.0011053085327148438, 0.059417724609375, 0.0286102294921875, -0.045501708984375, -0.024566650390625, -0.05816650390625, -0.0195465087890625, -0.042388916015625, -0.043670654296875, -0.0271759033203125, 0.021087646484375, 0.041778564453125, 0.00803375244140625, 0.006946563720703125, -0.04473876953125, 0.00455474853515625, 0.03521728515625, 0.04510498046875, 0.046875, -0.020721435546875, 0.006290435791015625, 0.023712158203125, 0.0068511962890625, 0.01209259033203125, -0.00464630126953125, 0.0065460205078125, -0.0281982421875, 0.002498626708984375, -0.08233642578125, -0.01232147216796875, 0.009735107421875, -0.027069091796875, 0.040924072265625, 0.01160430908203125, 0.00736236572265625, 0.032745361328125, 0.000537872314453125, 0.021881103515625, -0.00726318359375, -0.0252227783203125, -0.02374267578125, -0.028411865234375, 0.039703369140625, -0.03692626953125, 0.017120361328125, 0.0081329345703125, 0.00591278076171875, 0.034820556640625, -0.03143310546875, 0.0289306640625, 0.02008056640625, 0.00543212890625, 0.0086517333984375, 0.018402099609375, -0.011474609375, 0.02703857421875, 0.00740814208984375, 0.0204925537109375, 0.0175628662109375, -0.048065185546875, -0.039306640625, 0.003070831298828125, 0.036834716796875, 0.0029296875, 0.0208282470703125, 0.07159423828125, 0.005855560302734375, -0.03814697265625, 0.04571533203125, -0.0120086669921875, -0.06658935546875, -0.01227569580078125, -0.0291900634765625, 0.0169219970703125, -0.00876617431640625, 0.00917816162109375, 0.00739288330078125, -0.0191802978515625, 0.041748046875, -0.0007958412170410156, -0.00038504600524902344, 0.0301513671875, -0.002628326416015625, -0.0241851806640625, -0.0292510986328125, 0.004100799560546875, 0.024810791015625, 0.062744140625, 0.013702392578125, -0.04034423828125, 0.0185546875, -0.0202178955078125, 0.01345062255859375, -0.002384185791015625, -0.0235137939453125, -0.058319091796875, 0.007411956787109375, 0.0216217041015625, -0.002925872802734375, 0.0153656005859375, 0.002521514892578125, 0.0248260498046875, 0.050048828125, -0.0184783935546875, 0.0020313262939453125, 0.0289306640625, -0.03704833984375, -0.046783447265625, -0.061676025390625, -0.025787353515625, 0.025726318359375, 0.025146484375, 0.044219970703125, 0.030731201171875, -0.074951171875, -0.00511932373046875, -0.0105438232421875, 0.038787841796875, -0.0014972686767578125, -0.0172271728515625, 0.03338623046875, 0.009368896484375, -0.013336181640625, -0.0035152435302734375, -0.0293731689453125, -0.0426025390625, -0.0304412841796875, -0.0182037353515625, -0.05377197265625, 0.034881591796875, -0.0003147125244140625, -0.09197998046875, 0.08453369140625, 0.0303802490234375, 0.0303497314453125, -0.017974853515625, 0.031585693359375, -0.023101806640625, 0.004352569580078125, -0.054290771484375, 0.031097412109375, -0.0224456787109375, 0.0350341796875, -0.033203125, 0.021240234375, 0.0102691650390625, -0.01215362548828125, 0.0740966796875, 0.0294342041015625, -0.006717681884765625, -0.01473236083984375, -0.002773284912109375, -0.00820159912109375, -0.0523681640625, 0.04730224609375, 0.0268402099609375, -0.00021266937255859375, 0.024261474609375, 0.01009368896484375, 0.053314208984375, -0.04095458984375, -0.0118408203125, 0.054046630859375, -0.00286865234375, -0.007709503173828125, -0.030914306640625, 0.002300262451171875, -0.05401611328125, -0.00394439697265625, 0.03009033203125, -0.0245208740234375, 0.0221710205078125, 0.0208282470703125, 0.019287109375, -0.01241302490234375, -0.01873779296875, -0.02301025390625, 0.039886474609375, 0.00461578369140625, 0.0239410400390625, 0.019134521484375, 0.0222320556640625, 0.007686614990234375, -0.0172119140625, 0.02020263671875, 0.01690673828125, -0.0521240234375, 0.01171875, 0.00780487060546875, 0.006855010986328125, -0.041412353515625, -0.00640106201171875, 0.062225341796875, 0.02984619140625, -0.030853271484375, -0.008209228515625, -0.001361846923828125, 0.023468017578125, 0.0235137939453125, 0.01483917236328125, 0.05401611328125, 0.06488037109375, 0.08050537109375, -0.0662841796875, 0.0159759521484375, 0.0210113525390625, 0.0482177734375, -0.02099609375, -0.0184326171875, -0.051971435546875, -0.006587982177734375, -0.034149169921875, -0.001148223876953125, 0.008697509765625, 0.0180206298828125, 0.0224151611328125, 0.0107879638671875, 0.0251617431640625, -0.0086212158203125, 0.0023651123046875, 0.0021877288818359375, -0.0256805419921875, -0.00228118896484375, -0.01403045654296875, -0.0396728515625, -0.01263427734375, 0.0268707275390625, -0.035919189453125, 0.0211181640625, 0.01326751708984375, 0.0406494140625, 0.002925872802734375, -0.0246734619140625, 0.036041259765625, -0.01232147216796875, -0.0301666259765625, -0.025238037109375, 0.0033016204833984375, 0.024169921875, -0.0033054351806640625, 0.016510009765625, 0.0203704833984375, 0.022216796875, -0.01953125, 0.0145263671875, 0.0013074874877929688, -0.028045654296875, 0.01447296142578125, -0.0259552001953125, 0.007415771484375, -0.01483154296875, -0.0736083984375, 0.01318359375, -0.05352783203125, -0.048675537109375, 0.01556396484375, 0.0211334228515625, -0.05718994140625, 0.05926513671875, 0.041259765625, -0.0269317626953125, 0.01251220703125, 0.00960540771484375, 0.027008056640625, 0.0333251953125, 0.007587432861328125, 0.01806640625, -0.0286865234375, -0.009613037109375, 0.0014934539794921875, 0.041961669921875, 0.007129669189453125, 0.07073974609375, -0.034332275390625, 0.0205078125, -0.03277587890625, 0.048095703125, -0.06781005859375, -0.033538818359375, 0.05670166015625, -0.02099609375, -0.0301971435546875, 0.0074920654296875, -0.039520263671875, 0.033294677734375, 0.0389404296875, -0.006015777587890625, 0.029571533203125, 0.012664794921875, 0.002391815185546875, -0.01105499267578125, 0.046051025390625, -0.019256591796875, -0.0604248046875, -0.07366943359375, -0.00499725341796875, 0.01141357421875, 0.041351318359375, -0.00931549072265625, 0.0308837890625, -0.050567626953125, -0.01318359375, -0.0073089599609375, -0.018280029296875, -0.07965087890625, -0.0023860931396484375, 0.01025390625, 0.00466156005859375, 0.01262664794921875, -0.0183868408203125, 0.0160980224609375, 0.0131683349609375, -0.0034313201904296875, 0.017913818359375, -0.049591064453125, 0.00036787986755371094, -0.01715087890625, 0.029632568359375, -0.016082763671875, 0.0248260498046875, -0.0300140380859375, 0.01076507568359375, 0.007022857666015625, -0.02923583984375, -0.0447998046875, -0.06549072265625, 0.0147857666015625, 0.02996826171875, -0.0258026123046875, -0.051971435546875, -0.097900390625, 0.042938232421875, 0.031219482421875, 0.01824951171875, -0.0616455078125, 0.076904296875, -0.0296478271484375, 0.0281524658203125, 0.0268707275390625, 0.01284027099609375, -0.00926971435546875, -0.01482391357421875, -0.036865234375, -0.0229949951171875, -0.036834716796875, 0.028472900390625, -0.0176849365234375, 0.00508880615234375, 0.01143646240234375, -0.007144927978515625, -0.0250244140625, 0.0212249755859375, -0.0083160400390625, 0.06243896484375, 0.006809234619140625, -0.0118560791015625, -0.016571044921875, 0.0035305023193359375, -0.025787353515625, -0.059051513671875, 0.0362548828125, -0.068359375, -0.054962158203125, -0.0222015380859375, 0.01313018798828125, 0.042510986328125, -0.0301055908203125, -0.08929443359375, 0.04193115234375, -0.03515625, -0.04583740234375, 0.006557464599609375, 0.01192474365234375, -0.01776123046875, 0.012786865234375, 0.00836944580078125, -0.00856781005859375, 0.00540924072265625, 0.004512786865234375, 0.0103607177734375, -0.014129638671875, 0.0294647216796875, -0.003314971923828125, -0.03961181640625, 0.006908416748046875, 0.004695892333984375, -0.0094451904296875, 0.0257415771484375, -0.0191497802734375, 0.0287628173828125, 0.0430908203125, -0.024139404296875, -0.0012426376342773438, -0.00662994384765625, -0.0220489501953125, -0.0062408447265625, -0.07073974609375, -0.0191192626953125, -0.041046142578125, 0.060791015625, 0.0175628662109375, 0.01678466796875, -0.0235748291015625, -0.0394287109375, -0.04815673828125, -0.028411865234375, 0.007442474365234375, 0.03228759765625, -0.0726318359375, 0.018890380859375, 0.0430908203125, -0.015899658203125, -0.011688232421875, 0.0284423828125, -0.04998779296875, -0.0222930908203125, 0.0016498565673828125, -0.006107330322265625, -0.0911865234375, 0.00870513916015625, 0.00817108154296875, -0.0275115966796875, -0.042144775390625, -0.0064239501953125, 0.002170562744140625, -0.0389404296875, -0.043304443359375, -0.0034465789794921875, -0.047576904296875, 0.0006699562072753906, 0.04248046875, 0.00021266937255859375, 0.0289764404296875, -0.028045654296875, -0.021942138671875, -0.005359649658203125, 0.026397705078125, -0.006404876708984375, 0.025299072265625, -0.005584716796875, 0.06610107421875, 0.0164337158203125, 0.031280517578125, -0.005695343017578125, -0.039276123046875, -0.030029296875, 0.0206451416015625, 0.00623321533203125, -0.0036449432373046875, 0.047119140625, -0.006412506103515625, 0.0004646778106689453, -0.016357421875, 0.0176544189453125, -0.056854248046875, 0.029083251953125, -0.00504302978515625, 0.0323486328125, 0.02734375 ]
a90c3cfee83cdfc06fffbfa6ce3631eaa5437990
Wordpress Stackexchange Q: What is the difference between wp_register_sidebar_widget and register_widget? What's the difference between them and when should we use each one ? I'm using wp_register_sidebar_widget right now and it's working fine but I've seen a lot of tutorials online on how to create a widget using register_widget and a class, most of my widgets doesn't need options so should I stick to wp_register_sidebar_widget or should I use register_widget even if I don't have a form ? thanks in advance. A: wp_register_sidebar_widget() is part of the old widgets API. Sidebar widgets used to be built procedurally ... in a non-reusable fashion (i.e. you could only ever have one of each). register_widget() was introduced with the new Widgets API and takes an object/class as an input rather than actual widget parameters. WordPress can instantiate as many copies of this widget as you need, allowing you to have several instances of the exact same widget. You should be using individual widget classes and register_widget() even if your widget doesn't have an input form.
Q: What is the difference between wp_register_sidebar_widget and register_widget? What's the difference between them and when should we use each one ? I'm using wp_register_sidebar_widget right now and it's working fine but I've seen a lot of tutorials online on how to create a widget using register_widget and a class, most of my widgets doesn't need options so should I stick to wp_register_sidebar_widget or should I use register_widget even if I don't have a form ? thanks in advance. A: wp_register_sidebar_widget() is part of the old widgets API. Sidebar widgets used to be built procedurally ... in a non-reusable fashion (i.e. you could only ever have one of each). register_widget() was introduced with the new Widgets API and takes an object/class as an input rather than actual widget parameters. WordPress can instantiate as many copies of this widget as you need, allowing you to have several instances of the exact same widget. You should be using individual widget classes and register_widget() even if your widget doesn't have an input form.
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:418673", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47693" }
[ 0.05023193359375, -0.042205810546875, 0.0294036865234375, -0.0389404296875, -0.01132965087890625, -0.0242462158203125, 0.01519775390625, -0.0075531005859375, -0.006988525390625, 0.0269775390625, -0.041534423828125, 0.0034923553466796875, -0.044891357421875, 0.015167236328125, -0.0323486328125, -0.04388427734375, 0.033355712890625, -0.018463134765625, 0.003902435302734375, -0.02996826171875, 0.025787353515625, -0.005825042724609375, -0.0099945068359375, 0.0701904296875, 0.0328369140625, -0.0830078125, 0.03167724609375, -0.01035308837890625, 0.0270233154296875, -0.02032470703125, 0.028778076171875, 0.024139404296875, 0.036590576171875, 0.0180816650390625, -0.0309600830078125, 0.045928955078125, -0.005191802978515625, 0.01369476318359375, 0.006298065185546875, 0.01044464111328125, 0.043670654296875, -0.041015625, -0.0024089813232421875, -0.036346435546875, -0.0104217529296875, 0.00774383544921875, 0.016693115234375, -0.015228271484375, 0.0268096923828125, -0.03717041015625, 0.0343017578125, -0.0511474609375, 0.056915283203125, -0.051025390625, -0.050323486328125, -0.01483154296875, 0.031097412109375, -0.0222625732421875, 0.0261383056640625, 0.0260772705078125, -0.025177001953125, 0.0011968612670898438, 0.0178375244140625, -0.039276123046875, 0.0022716522216796875, -0.0124359130859375, -0.0265350341796875, 0.0189971923828125, -0.017730712890625, 0.0072174072265625, 0.0278472900390625, -0.036529541015625, -0.01568603515625, -0.01052093505859375, -0.005130767822265625, 0.001438140869140625, 0.0048675537109375, 0.01047515869140625, -0.0014505386352539062, 0.0170440673828125, -0.03399658203125, 0.03253173828125, -0.0384521484375, -0.0008401870727539062, -0.007770538330078125, 0.016357421875, -0.02972412109375, -0.012481689453125, -0.0066375732421875, -0.005779266357421875, 0.00238037109375, -0.08349609375, 0.01450347900390625, 0.0225067138671875, 0.0236663818359375, -0.06585693359375, 0.0173797607421875, 0.0008025169372558594, -0.0175018310546875, 0.0231781005859375, 0.028839111328125, -0.060089111328125, 0.08697509765625, -0.03741455078125, 0.045654296875, 0.08221435546875, -0.033447265625, 0.0027790069580078125, 0.065185546875, 0.00971221923828125, 0.04913330078125, 0.0109405517578125, 0.020843505859375, -0.02996826171875, -0.0135955810546875, -0.0030155181884765625, 0.00031447410583496094, 0.016571044921875, 0.030242919921875, -0.0004703998565673828, 0.01544952392578125, 0.016876220703125, 0.10919189453125, -0.028900146484375, -0.001255035400390625, 0.021942138671875, -0.0283660888671875, -0.11285400390625, 0.010009765625, -0.010101318359375, -0.042083740234375, 0.0116729736328125, 0.053802490234375, 0.032684326171875, 0.02215576171875, -0.016693115234375, 0.052276611328125, 0.0289764404296875, 0.021636962890625, 0.033203125, -0.016815185546875, -0.0609130859375, -0.03558349609375, -0.00612640380859375, 0.01522064208984375, 0.0273590087890625, 0.0322265625, -0.016754150390625, 0.00878143310546875, -0.0248870849609375, -0.0016145706176757812, -0.03399658203125, -0.0020008087158203125, 0.0281829833984375, 0.0254974365234375, 0.0247650146484375, 0.015869140625, -0.00611114501953125, -0.01248931884765625, -0.0014238357543945312, 0.005767822265625, -0.02362060546875, -0.0328369140625, -0.0287933349609375, -0.04229736328125, 0.036285400390625, 0.007122039794921875, 0.0047454833984375, 0.016357421875, -0.0098114013671875, 0.023529052734375, -0.016571044921875, -0.007183074951171875, 0.01013946533203125, 0.01067352294921875, 0.03521728515625, -0.0203704833984375, -0.007686614990234375, 0.00726318359375, -0.01824951171875, -0.059814453125, -0.0560302734375, -0.0056610107421875, -0.0145263671875, -0.073486328125, 0.00743865966796875, 0.020904541015625, 0.04638671875, 0.0271759033203125, 0.01450347900390625, 0.0472412109375, 0.0171356201171875, -0.0022754669189453125, 0.029388427734375, 0.0037784576416015625, -0.0399169921875, 0.002185821533203125, 0.00012028217315673828, -0.0021190643310546875, -0.024810791015625, -0.0169677734375, -0.015838623046875, 0.033721923828125, -0.01264190673828125, -0.041046142578125, 0.022674560546875, -0.01910400390625, 0.042633056640625, 0.01311492919921875, 0.033538818359375, 0.009765625, 0.0423583984375, -0.0509033203125, 0.034637451171875, -0.02490234375, -0.00864410400390625, -0.0078582763671875, 0.070068359375, 0.0217742919921875, 0.0005211830139160156, 0.01337432861328125, -0.0218048095703125, 0.0401611328125, 0.0221710205078125, 0.06964111328125, -0.0163116455078125, 0.0081024169921875, -0.047607421875, 0.048858642578125, 0.00011664628982543945, -0.05029296875, 0.0548095703125, -0.01033782958984375, -0.006603240966796875, -0.0517578125, -0.0256195068359375, -0.0287017822265625, -0.005199432373046875, 0.00634002685546875, 0.052276611328125, 0.0229949951171875, 0.021575927734375, -0.01131439208984375, 0.0212554931640625, -0.00232696533203125, -0.053680419921875, 0.006099700927734375, 0.00562286376953125, -0.037994384765625, 0.00479888916015625, 0.01416778564453125, 0.01316070556640625, 0.01041412353515625, -0.00946807861328125, -0.0174102783203125, 0.0203094482421875, -0.020233154296875, -0.004505157470703125, -0.0159454345703125, 0.0005245208740234375, -0.0025482177734375, -0.08599853515625, -0.020660400390625, -0.045745849609375, 0.0013265609741210938, 0.01012420654296875, 0.03363037109375, 0.0271759033203125, 0.0092315673828125, -0.0003159046173095703, -0.0017147064208984375, -0.034271240234375, 0.003173828125, 0.027252197265625, 0.035675048828125, 0.00974273681640625, -0.052825927734375, -0.0167236328125, 0.049285888671875, 0.00501251220703125, -0.025665283203125, -0.005474090576171875, -0.023590087890625, -0.00547027587890625, -0.0122528076171875, -0.07440185546875, 0.0299224853515625, 0.044158935546875, 0.02349853515625, -0.0322265625, 0.0019474029541015625, 0.0162506103515625, 0.0017242431640625, 0.018646240234375, 0.0389404296875, -0.031585693359375, 0.022857666015625, 0.0244140625, -0.0095062255859375, -0.0089263916015625, 0.026336669921875, 0.020111083984375, -0.03533935546875, -0.007221221923828125, 0.00914764404296875, 0.032928466796875, 0.02972412109375, -0.0077056884765625, 0.003570556640625, 0.005344390869140625, -0.05670166015625, -0.0129852294921875, 0.017181396484375, 0.044921875, 0.0102691650390625, -0.033355712890625, 0.0020351409912109375, 0.019195556640625, -0.0170440673828125, -0.021820068359375, -0.0411376953125, -0.03765869140625, -0.01148223876953125, 0.008697509765625, -0.028411865234375, 0.01401519775390625, 0.009674072265625, 0.017333984375, 0.005138397216796875, 0.009674072265625, -0.0238189697265625, -0.004436492919921875, -0.04205322265625, -0.0072784423828125, -0.0126495361328125, 0.00885009765625, 0.0026798248291015625, 0.026397705078125, 0.00007724761962890625, -0.0139617919921875, 0.012237548828125, -0.0303497314453125, -0.00717926025390625, -0.0033245086669921875, -0.0116729736328125, -0.0391845703125, -0.0173187255859375, -0.01146697998046875, 0.0272369384765625, -0.00904083251953125, 0.00482177734375, 0.005634307861328125, 0.033843994140625, -0.0297088623046875, 0.0413818359375, 0.0113983154296875, -0.051910400390625, -0.028076171875, 0.0193939208984375, -0.058837890625, -0.031646728515625, 0.011749267578125, -0.0235748291015625, 0.00933074951171875, -0.0122833251953125, 0.0030536651611328125, 0.01000213623046875, 0.03448486328125, -0.023284912109375, 0.005168914794921875, 0.00009900331497192383, -0.058441162109375, 0.084716796875, 0.002864837646484375, 0.002666473388671875, 0.0098114013671875, -0.0455322265625, -0.055908203125, 0.01143646240234375, -0.0284881591796875, -0.0093841552734375, -0.0227508544921875, 0.035552978515625, 0.005710601806640625, -0.057037353515625, 0.050262451171875, -0.02337646484375, -0.00571441650390625, -0.0144500732421875, -0.024322509765625, 0.0299835205078125, 0.0931396484375, -0.0297393798828125, -0.01837158203125, 0.027984619140625, 0.0292816162109375, -0.056671142578125, -0.029571533203125, -0.04962158203125, -0.0033969879150390625, -0.01224517822265625, -0.00984954833984375, -0.00255584716796875, -0.0206298828125, -0.0246734619140625, -0.02105712890625, -0.027069091796875, -0.006195068359375, 0.05145263671875, -0.05743408203125, 0.0279998779296875, -0.0016803741455078125, 0.02313232421875, -0.042724609375, -0.0038585662841796875, -0.038543701171875, -0.07000732421875, -0.0025634765625, -0.040863037109375, 0.062225341796875, 0.04083251953125, -0.04412841796875, -0.0088043212890625, 0.0234375, 0.01605224609375, -0.01151275634765625, 0.038482666015625, 0.021270751953125, 0.0130462646484375, 0.004795074462890625, 0.033355712890625, -0.00688934326171875, -0.005176544189453125, -0.0312347412109375, -0.0633544921875, -0.0404052734375, -0.03619384765625, -0.002536773681640625, 0.00606536865234375, -0.029388427734375, -0.0309295654296875, -0.0009608268737792969, -0.0118560791015625, 0.0148468017578125, -0.02703857421875, 0.02252197265625, 0.005107879638671875, -0.0253143310546875, -0.0005841255187988281, -0.03509521484375, -0.00469970703125, 0.02685546875, 0.08453369140625, 0.025665283203125, 0.0037517547607421875, -0.032867431640625, -0.023101806640625, 0.0275115966796875, 0.024017333984375, 0.004734039306640625, 0.039886474609375, -0.00634765625, -0.038848876953125, 0.02581787109375, -0.037567138671875, 0.0726318359375, 0.04248046875, 0.036407470703125, 0.0089569091796875, -0.039764404296875, 0.01108551025390625, -0.048492431640625, 0.01009368896484375, 0.005290985107421875, -0.0266571044921875, 0.05963134765625, 0.03515625, -0.028778076171875, 0.0045013427734375, -0.0212860107421875, 0.02252197265625, -0.0088043212890625, 0.025665283203125, 0.00885009765625, 0.00118255615234375, 0.01338958740234375, -0.07501220703125, -0.017578125, -0.016632080078125, 0.046417236328125, -0.01515960693359375, 0.041717529296875, 0.0013828277587890625, 0.033111572265625, -0.0021724700927734375, 0.020538330078125, 0.00412750244140625, 0.039215087890625, 0.020416259765625, -0.019134521484375, -0.0183868408203125, 0.0030002593994140625, 0.005344390869140625, -0.004062652587890625, 0.0318603515625, 0.041229248046875, 0.01386260986328125, -0.0080413818359375, -0.01482391357421875, 0.0086669921875, 0.01351165771484375, -0.0423583984375, 0.003932952880859375, 0.004344940185546875, -0.0214080810546875, -0.03228759765625, 0.023956298828125, -0.01119232177734375, -0.00897979736328125, -0.0006279945373535156, 0.06494140625, 0.049468994140625, 0.0207977294921875, 0.0175933837890625, -0.0122222900390625, 0.01494598388671875, -0.0305938720703125, -0.0301513671875, -0.0069732666015625, 0.0146484375, 0.01520538330078125, 0.0111083984375, 0.012603759765625, -0.00238037109375, -0.0018768310546875, -0.030609130859375, -0.0274658203125, 0.05853271484375, 0.01708984375, -0.035186767578125, -0.045562744140625, -0.0160064697265625, 0.06573486328125, -0.0128631591796875, 0.00434112548828125, -0.0016031265258789062, -0.0109100341796875, 0.00978851318359375, 0.021026611328125, -0.0114288330078125, 0.0152130126953125, 0.00347900390625, -0.001094818115234375, -0.015838623046875, -0.01097869873046875, -0.011688232421875, 0.005329132080078125, -0.0142974853515625, -0.0186767578125, 0.029296875, -0.0310821533203125, 0.0261077880859375, -0.04254150390625, 0.02398681640625, -0.07769775390625, 0.003574371337890625, 0.049468994140625, 0.044219970703125, -0.0237274169921875, -0.0192718505859375, -0.05145263671875, -0.01361083984375, -0.06878662109375, -0.07391357421875, -0.0235443115234375, 0.021270751953125, -0.0037517547607421875, 0.01222991943359375, 0.00860595703125, 0.01360321044921875, -0.0166473388671875, 0.00737762451171875, -0.00555419921875, -0.0113372802734375, -0.033477783203125, 0.0124969482421875, 0.0209808349609375, 0.043426513671875, -0.0136566162109375, -0.04241943359375, -0.0110931396484375, -0.0121002197265625, 0.004467010498046875, -0.04705810546875, -0.03082275390625, -0.0301971435546875, -0.0160675048828125, 0.003772735595703125, 0.01422119140625, -0.01416015625, 0.0222015380859375, -0.0196990966796875, -0.01320648193359375, 0.0097503662109375, 0.035675048828125, -0.0038471221923828125, 0.031829833984375, 0.03240966796875, -0.034332275390625, -0.015594482421875, 0.0155792236328125, -0.01161956787109375, 0.024871826171875, -0.0052947998046875, -0.00013768672943115234, 0.0106964111328125, -0.05548095703125, 0.051605224609375, 0.01052093505859375, 0.006542205810546875, 0.0438232421875, -0.037261962890625, 0.03656005859375, 0.0438232421875, 0.016571044921875, -0.014007568359375, 0.01690673828125, 0.08453369140625, 0.016021728515625, -0.0292816162109375, 0.03460693359375, -0.04241943359375, 0.036651611328125, 0.07830810546875, 0.0887451171875, -0.1075439453125, 0.015655517578125, 0.039703369140625, -0.02459716796875, -0.015869140625, 0.01715087890625, -0.048126220703125, -0.05096435546875, 0.06317138671875, -0.015533447265625, -0.01068115234375, 0.033721923828125, 0.0159454345703125, 0.00258636474609375, -0.01177215576171875, 0.03533935546875, 0.0254364013671875, 0.0249481201171875, -0.0009217262268066406, -0.0205230712890625, 0.0259857177734375, -0.00269317626953125, 0.001377105712890625, 0.0096893310546875, -0.030181884765625, -0.0635986328125, -0.0029888153076171875, -0.0137786865234375, -0.041290283203125, 0.016021728515625, -0.0162353515625, 0.057891845703125, 0.01166534423828125, 0.00916290283203125, 0.009552001953125, -0.0382080078125, 0.05718994140625, -0.01560211181640625, -0.0189361572265625, -0.011322021484375, -0.0109710693359375, -0.034759521484375, 0.018096923828125, -0.040435791015625, -0.0201416015625, -0.01165771484375, -0.01409149169921875, 0.09771728515625, -0.030731201171875, -0.01477813720703125, 0.008209228515625, 0.0261383056640625, 0.004901885986328125, -0.041900634765625, 0.01139068603515625, -0.07769775390625, -0.032684326171875, -0.03057861328125, -0.05767822265625, -0.00696563720703125, -0.06878662109375, -0.016326904296875, 0.11785888671875, 0.0201873779296875, -0.0021820068359375, 0.031463623046875, 0.0419921875, -0.04833984375, 0.033355712890625, -0.03460693359375, -0.007740020751953125, -0.01031494140625, -0.01302337646484375, 0.0173492431640625, 0.04669189453125, -0.024169921875, -0.05078125, 0.07330322265625, 0.01099395751953125, 0.0190887451171875, -0.006145477294921875, 0.04132080078125, 0.01959228515625, -0.0234222412109375, 0.01090240478515625, 0.01514434814453125, 0.0159759521484375, 0.0167388916015625, -0.0005412101745605469, 0.042144775390625, -0.0156402587890625, -0.020111083984375, 0.038848876953125, -0.0034656524658203125, 0.002605438232421875, -0.004329681396484375, 0.03411865234375, 0.026611328125, -0.04107666015625, -0.01497650146484375, -0.0183563232421875, -0.00644683837890625, 0.047119140625, 0.0026378631591796875, 0.04278564453125, 0.058441162109375, -0.033905029296875, 0.05548095703125, -0.01097869873046875, 0.046783447265625, 0.0144805908203125, 0.0146331787109375, 0.051666259765625, 0.0292205810546875, 0.03173828125, 0.06658935546875, -0.0290374755859375, 0.0205230712890625, 0.0110931396484375, 0.03900146484375, -0.033905029296875, -0.0027313232421875, 0.0328369140625, 0.032318115234375, -0.0182342529296875, -0.0706787109375, 0.00751495361328125, 0.00972747802734375, 0.01556396484375, 0.0289154052734375, 0.0355224609375, -0.10064697265625, -0.026580810546875, -0.03485107421875, -0.0156402587890625, 0.00858306884765625, 0.01222991943359375, -0.0129852294921875, -0.0294036865234375, 0.02215576171875, -0.01435089111328125, -0.0472412109375, 0.016387939453125, 0.044097900390625, 0.06756591796875, -0.005992889404296875, 0.050018310546875, -0.01593017578125, -0.0369873046875, -0.02301025390625, 0.017303466796875, 0.01013946533203125, 0.0233917236328125, -0.051910400390625, -0.03668212890625, 0.055023193359375, 0.031494140625, 0.0222015380859375, 0.0152740478515625, 0.04058837890625, 0.035308837890625, -0.000499725341796875, 0.0002510547637939453, 0.04443359375, 0.004146575927734375, 0.0010709762573242188, -0.038726806640625, -0.01413726806640625, -0.020355224609375, -0.01070404052734375, -0.004108428955078125, 0.0148468017578125, -0.0120697021484375, -0.0097198486328125, 0.029693603515625, 0.00347900390625, -0.0082855224609375, 0.051910400390625, -0.045562744140625, 0.06536865234375, 0.004932403564453125, -0.09832763671875, -0.034698486328125, 0.043731689453125, -0.05718994140625, 0.032012939453125, 0.04315185546875, -0.05303955078125, 0.02117919921875, 0.0066070556640625, 0.0145416259765625, -0.0167694091796875, -0.00852203369140625, 0.02984619140625, -0.033905029296875, 0.00807952880859375, 0.008270263671875, -0.06817626953125, -0.0108795166015625, 0.004352569580078125, -0.01306915283203125, 0.022369384765625, 0.0287017822265625, 0.042816162109375, 0.005054473876953125, -0.013763427734375, 0.0287322998046875, -0.036407470703125, -0.04193115234375, 0.031982421875, -0.02972412109375, 0.002155303955078125, 0.0043792724609375, -0.039764404296875, 0.031219482421875, 0.0270843505859375, -0.041778564453125, 0.0124053955078125, 0.0086212158203125, 0.0017528533935546875, -0.0223541259765625, -0.0294189453125, -0.039093017578125, -0.0173187255859375, 0.0281829833984375, 0.02587890625, -0.013702392578125, -0.04693603515625, -0.03167724609375, 0.003528594970703125, -0.0118408203125, -0.036651611328125, 0.005115509033203125, -0.026702880859375, -0.0283966064453125, 0.013153076171875, 0.020263671875, -0.037994384765625, -0.0007510185241699219, -0.0234832763671875, -0.010955810546875, 0.004161834716796875, 0.0418701171875, -0.0052032470703125, -0.01629638671875, 0.006977081298828125, 0.055145263671875, 0.032470703125, -0.042327880859375, 0.0072174072265625, 0.056121826171875, -0.0216827392578125, 0.035186767578125, -0.0178680419921875, -0.01206207275390625, -0.05963134765625, -0.029541015625, 0.01702880859375, -0.053070068359375, -0.0202484130859375, -0.035064697265625, -0.00836181640625, 0.0260467529296875, -0.006927490234375, -0.0219573974609375, -0.0046539306640625, -0.00576019287109375, 0.030853271484375, -0.030487060546875, 0.0038280487060546875, 0.00823974609375, 0.015960693359375, -0.05126953125, 0.01087188720703125, -0.041595458984375, -0.022857666015625, -0.01959228515625, 0.025177001953125, 0.01303863525390625, -0.040191650390625, -0.0025844573974609375, 0.03564453125, 0.0302734375, 0.07086181640625, 0.047607421875, -0.007564544677734375, 0.0174713134765625, 0.0189971923828125, -0.022491455078125, -0.050201416015625, -0.013671875, 0.0013208389282226562, 0.022918701171875, -0.060455322265625, 0.00783538818359375, -0.01032257080078125, -0.0501708984375, -0.06207275390625, 0.041839599609375, -0.015533447265625, -0.02490234375, -0.044769287109375, 0.01155853271484375, 0.00580596923828125, -0.01519775390625, -0.01280975341796875, -0.034759521484375, -0.0188446044921875, 0.036468505859375, 0.044677734375, 0.0254669189453125, 0.0360107421875, 0.0123443603515625, -0.0374755859375, 0.00872802734375, -0.0101318359375, 0.059051513671875, -0.00429534912109375, -0.016754150390625, 0.004673004150390625, 0.0289306640625, -0.028472900390625, -0.0242156982421875, 0.007297515869140625, 0.02056884765625, 0.00429534912109375, -0.04913330078125, -0.002544403076171875, -0.008880615234375, 0.055633544921875, 0.01302337646484375, 0.01332855224609375, -0.0309906005859375, 0.0191802978515625, 0.0076751708984375, -0.034332275390625, -0.020416259765625, 0.01287841796875, -0.05487060546875, -0.03759765625, -0.007598876953125, 0.0233917236328125, -0.0019779205322265625, -0.01898193359375, 0.000005185604095458984, -0.01351165771484375, 0.029510498046875, 0.0292205810546875, -0.048797607421875, -0.0258941650390625, 0.00957489013671875, 0.00872039794921875, 0.043121337890625, -0.019134521484375, 0.0265045166015625, 0.007167816162109375, 0.043121337890625, -0.0017042160034179688, 0.013580322265625, -0.0626220703125, 0.0016374588012695312, -0.0196075439453125, 0.0282440185546875, -0.035003662109375, -0.002834320068359375, -0.005466461181640625, 0.0136566162109375, 0.005527496337890625, 0.022216796875, -0.008758544921875, 0.056732177734375, 0.0184478759765625, 0.01158905029296875, 0.018341064453125, 0.038818359375, -0.002765655517578125, 0.057220458984375, 0.0116729736328125, -0.027862548828125, 0.0201263427734375, -0.03448486328125, -0.0005078315734863281, -0.01531219482421875, 0.021392822265625, -0.03839111328125, 0.040283203125, -0.02117919921875, -0.0018320083618164062, 0.03326416015625 ]
dfcd1d495aec49892c97cd00caab275ad7c051c4
Wordpress Stackexchange Q: Remove WordPress Toolbar buttons Is there anyway to remove the 'W' icon from the WordPress toolbar located at the top, when Authors login? I know that an author can uncheck an option for an individual user, but we need to do this for all users? A: function mytheme_admin_bar_render() { global $wp_admin_bar; $wp_admin_bar->remove_menu('wp-logo'); } add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); For specific user roles you can wrap the add_action in a conditional, something like if(current_user_can('editor')){ add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); } http://codex.wordpress.org/Roles_and_Capabilities
Q: Remove WordPress Toolbar buttons Is there anyway to remove the 'W' icon from the WordPress toolbar located at the top, when Authors login? I know that an author can uncheck an option for an individual user, but we need to do this for all users? A: function mytheme_admin_bar_render() { global $wp_admin_bar; $wp_admin_bar->remove_menu('wp-logo'); } add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); For specific user roles you can wrap the add_action in a conditional, something like if(current_user_can('editor')){ add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); } http://codex.wordpress.org/Roles_and_Capabilities A: To just remove the logo from the toolbar, add this to your stylesheet: #wp-admin-bar-wp-logo { display:none; } A: you can use jQuery $('#wp-admin-bar-wp-logo').remove(); //this will remove only WP logo Also this will remove the whole top menu bar for everyone but the admin (user 1). This will update the user meta to hide the menubar. The user will still be able to select to show or hide this but will be reset to hide. You can also hide this option from the use with jQuery. Place this in the functions.php file if (!current_user_can('administrator') || get_current_user_id() != 1) { $user_id = get_current_user_id(); update_user_meta( $user_id, 'show_admin_bar_front', false ); update_user_meta( $user_id, 'show_admin_bar_admin', false ); } A: Also you can use plugin Toolbar menu. You can: * *Use custom menu to show in Toolbar *Deactivate default WordPress Toolbar sections *Show Toolbar to guest users *Show login box in Toolbar for guest users
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:418676", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47697" }
[ 0.0204010009765625, 0.007598876953125, -0.0011682510375976562, 0.0572509765625, -0.0014276504516601562, -0.0421142578125, 0.0780029296875, -0.07464599609375, 0.0160064697265625, 0.031768798828125, 0.04046630859375, -0.0355224609375, 0.02752685546875, -0.048095703125, -0.0238494873046875, 0.00011557340621948242, 0.01061248779296875, 0.035797119140625, 0.050567626953125, -0.0026302337646484375, 0.0003676414489746094, 0.0030994415283203125, 0.02105712890625, 0.035430908203125, -0.02166748046875, -0.01361083984375, 0.10614013671875, -0.0118865966796875, 0.004398345947265625, -0.0215606689453125, 0.004856109619140625, -0.0116729736328125, -0.01026153564453125, -0.005443572998046875, 0.01529693603515625, 0.0369873046875, -0.06683349609375, 0.05908203125, 0.0589599609375, -0.06549072265625, 0.043212890625, -0.03387451171875, -0.046051025390625, -0.0011272430419921875, -0.042755126953125, -0.01129913330078125, 0.0254058837890625, -0.0027065277099609375, 0.0445556640625, -0.0122528076171875, 0.00769805908203125, 0.0289459228515625, 0.0304412841796875, -0.01154327392578125, -0.01513671875, 0.027008056640625, 0.0024013519287109375, -0.003971099853515625, 0.0232391357421875, 0.05810546875, 0.0018663406372070312, 0.0203857421875, -0.0167999267578125, -0.07537841796875, 0.00862884521484375, 0.0179443359375, -0.022186279296875, 0.0269775390625, -0.03533935546875, 0.00616455078125, 0.00447845458984375, -0.05499267578125, 0.0223846435546875, -0.00553131103515625, 0.0152130126953125, -0.020477294921875, -0.025604248046875, 0.01131439208984375, 0.0391845703125, 0.0024738311767578125, 0.027374267578125, 0.0246734619140625, -0.0164642333984375, -0.005611419677734375, 0.01007080078125, 0.0186614990234375, -0.004116058349609375, -0.0212860107421875, -0.0284423828125, 0.00675201416015625, -0.0256500244140625, -0.0230560302734375, -0.03759765625, 0.05926513671875, 0.008270263671875, 0.013824462890625, 0.060760498046875, 0.02581787109375, 0.03265380859375, -0.0250244140625, 0.01190185546875, -0.0494384765625, -0.0173492431640625, -0.0089569091796875, -0.022125244140625, 0.064697265625, -0.00594329833984375, 0.051513671875, 0.0245819091796875, 0.02703857421875, 0.034088134765625, -0.06671142578125, -0.0129547119140625, -0.044036865234375, -0.017730712890625, 0.0302734375, -0.006328582763671875, 0.00677490234375, 0.034088134765625, 0.004680633544921875, -0.01690673828125, -0.01366424560546875, 0.0013914108276367188, 0.046295166015625, 0.029296875, 0.01241302490234375, -0.0179443359375, 0.01128387451171875, -0.0291900634765625, 0.02203369140625, -0.04931640625, -0.0030879974365234375, 0.0958251953125, 0.0582275390625, 0.05230712890625, -0.03802490234375, 0.0093841552734375, 0.0147857666015625, 0.0156707763671875, 0.01029205322265625, 0.0196075439453125, -0.041107177734375, -0.01096343994140625, 0.00988006591796875, 0.0025539398193359375, 0.00970458984375, 0.0012331008911132812, 0.0341796875, -0.004180908203125, -0.016143798828125, 0.013885498046875, -0.0193634033203125, 0.025299072265625, 0.022186279296875, 0.020050048828125, 0.0188751220703125, 0.07025146484375, -0.03216552734375, -0.042694091796875, -0.0207672119140625, -0.0112457275390625, -0.0005059242248535156, 0.01641845703125, 0.004573822021484375, -0.017852783203125, 0.0126190185546875, 0.00832366943359375, 0.004764556884765625, 0.0325927734375, 0.0311126708984375, 0.00323486328125, -0.04547119140625, 0.0295562744140625, 0.0345458984375, -0.00655364990234375, 0.053802490234375, 0.03955078125, 0.01122283935546875, -0.01245880126953125, 0.048980712890625, -0.0263671875, -0.0439453125, 0.01537322998046875, -0.036895751953125, -0.063232421875, 0.00464630126953125, 0.004169464111328125, 0.030853271484375, 0.0241851806640625, 0.00466156005859375, 0.045806884765625, 0.016845703125, -0.0452880859375, -0.0105438232421875, 0.0178375244140625, -0.0121307373046875, -0.02301025390625, -0.0183258056640625, 0.0039005279541015625, 0.0157012939453125, 0.07257080078125, 0.0035381317138671875, 0.0125732421875, -0.042449951171875, -0.072998046875, -0.00864410400390625, -0.01409912109375, 0.032684326171875, 0.039825439453125, -0.01161956787109375, -0.0078887939453125, -0.0234222412109375, -0.017822265625, 0.0278778076171875, -0.03466796875, 0.0335693359375, -0.0276947021484375, 0.0589599609375, 0.01129913330078125, 0.05950927734375, 0.01268768310546875, -0.036895751953125, 0.0183868408203125, -0.04437255859375, 0.05242919921875, -0.0142822265625, -0.023284912109375, -0.028656005859375, 0.051971435546875, -0.03643798828125, -0.004047393798828125, 0.06549072265625, -0.0027332305908203125, 0.011962890625, -0.029937744140625, -0.008392333984375, -0.014495849609375, -0.07366943359375, 0.0035877227783203125, 0.053253173828125, 0.03387451171875, -0.0185699462890625, -0.0229034423828125, 0.0252838134765625, -0.0023860931396484375, -0.0303192138671875, 0.009490966796875, 0.0187835693359375, 0.01213836669921875, 0.0277862548828125, -0.0167236328125, -0.017669677734375, 0.01329803466796875, -0.0260467529296875, 0.01995849609375, 0.0233154296875, -0.04949951171875, -0.033538818359375, -0.00846099853515625, 0.0016698837280273438, 0.0028362274169921875, -0.036041259765625, 0.0166778564453125, -0.040985107421875, 0.005558013916015625, -0.017242431640625, -0.00762939453125, -0.00481414794921875, -0.046630859375, -0.00624847412109375, 0.044952392578125, 0.0234375, -0.01204681396484375, 0.001129150390625, 0.03961181640625, -0.05303955078125, -0.0274658203125, 0.01338958740234375, 0.0053863525390625, -0.02447509765625, -0.0186614990234375, 0.0107574462890625, 0.01526641845703125, -0.0195770263671875, -0.0172576904296875, -0.0321044921875, 0.02081298828125, -0.0161285400390625, -0.0291900634765625, -0.043914794921875, -0.0078277587890625, 0.0247802734375, -0.013671875, 0.0136871337890625, 0.0048980712890625, -0.01425933837890625, 0.0360107421875, -0.016754150390625, 0.0164642333984375, 0.012481689453125, 0.058380126953125, 0.07171630859375, 0.0254669189453125, 0.00612640380859375, 0.0037212371826171875, -0.0340576171875, -0.02044677734375, 0.01103973388671875, 0.01265716552734375, 0.00791168212890625, -0.02459716796875, 0.0823974609375, 0.01708984375, -0.01108551025390625, -0.006961822509765625, -0.031463623046875, -0.0291290283203125, 0.0170745849609375, -0.0645751953125, 0.0037860870361328125, -0.006633758544921875, -0.0408935546875, -0.0200653076171875, -0.01364898681640625, -0.027557373046875, 0.00592041015625, 0.01560211181640625, 0.0001405477523803711, -0.042938232421875, -0.0149078369140625, -0.005115509033203125, -0.03570556640625, -0.0133056640625, -0.004276275634765625, -0.0196990966796875, -0.027252197265625, 0.01374053955078125, 0.038177490234375, -0.0006365776062011719, -0.054351806640625, -0.012298583984375, -0.00266265869140625, -0.01425933837890625, 0.003253936767578125, 0.0185699462890625, 0.0105133056640625, -0.03704833984375, 0.00881195068359375, -0.005100250244140625, 0.00662994384765625, -0.02880859375, -0.0343017578125, 0.00506591796875, -0.0394287109375, 0.01541900634765625, 0.00201416015625, -0.03228759765625, -0.0289459228515625, -0.0017948150634765625, -0.070068359375, -0.01236724853515625, 0.00414276123046875, -0.018280029296875, 0.05035400390625, -0.005584716796875, -0.0149993896484375, 0.004150390625, 0.0311737060546875, 0.027435302734375, 0.0306243896484375, 0.01105499267578125, 0.0175628662109375, 0.0445556640625, -0.0049591064453125, -0.0132598876953125, -0.045013427734375, 0.01482391357421875, -0.0244903564453125, 0.008880615234375, -0.0051116943359375, -0.01361083984375, -0.01136016845703125, -0.004909515380859375, -0.01025390625, 0.004756927490234375, 0.04840087890625, 0.0159912109375, 0.007274627685546875, 0.00920867919921875, -0.022430419921875, 0.0175628662109375, 0.060150146484375, -0.0231781005859375, -0.00296783447265625, -0.01546478271484375, 0.00016546249389648438, -0.01226806640625, -0.01445770263671875, -0.04510498046875, -0.01230621337890625, -0.122802734375, 0.006259918212890625, 0.002330780029296875, -0.0190277099609375, -0.055908203125, 0.052581787109375, -0.0931396484375, -0.0279693603515625, 0.039276123046875, -0.04302978515625, 0.0013647079467773438, -0.01116943359375, -0.0197906494140625, -0.0281982421875, -0.01947021484375, -0.0369873046875, -0.0809326171875, 0.0025768280029296875, -0.072265625, 0.06744384765625, 0.0142059326171875, -0.0024318695068359375, -0.045013427734375, 0.0164031982421875, -0.02978515625, 0.003757476806640625, -0.0078125, 0.0257415771484375, 0.0059051513671875, 0.01397705078125, -0.005863189697265625, 0.006134033203125, 0.0186004638671875, -0.01523590087890625, -0.04571533203125, -0.03631591796875, -0.0384521484375, -0.00901031494140625, 0.0246734619140625, -0.0280303955078125, -0.023956298828125, -0.05072021484375, -0.0157318115234375, 0.004512786865234375, -0.017120361328125, 0.015838623046875, -0.041656494140625, -0.0226593017578125, 0.034820556640625, 0.01015472412109375, 0.0117034912109375, 0.007564544677734375, 0.07061767578125, 0.0028858184814453125, -0.0263671875, -0.0244293212890625, 0.006134033203125, 0.03155517578125, 0.0157928466796875, 0.036224365234375, -0.0026149749755859375, -0.022003173828125, 0.049346923828125, -0.0075531005859375, 0.032623291015625, -0.045379638671875, 0.05609130859375, -0.0046844482421875, -0.0014772415161132812, 0.020965576171875, -0.0088958740234375, -0.0005245208740234375, -0.0007538795471191406, -0.0007233619689941406, 0.0208587646484375, -0.0018825531005859375, -0.00806427001953125, 0.0235748291015625, -0.037506103515625, -0.0017375946044921875, 0.004978179931640625, 0.00983428955078125, 0.00560760498046875, 0.0316162109375, 0.0057830810546875, 0.0134735107421875, -0.023284912109375, 0.003177642822265625, -0.0164794921875, 0.00630950927734375, 0.005084991455078125, -0.033905029296875, 0.03082275390625, -0.03875732421875, -0.047393798828125, 0.004058837890625, -0.01287078857421875, 0.06878662109375, 0.0269775390625, -0.045257568359375, 0.01378631591796875, -0.01372528076171875, 0.0250701904296875, -0.014312744140625, 0.00959014892578125, 0.044189453125, 0.012847900390625, -0.00748443603515625, -0.023101806640625, -0.0257720947265625, -0.007114410400390625, -0.05609130859375, 0.017669677734375, -0.0150146484375, 0.01218414306640625, 0.01045989990234375, 0.039398193359375, -0.01224517822265625, 0.0223541259765625, -0.007305145263671875, 0.029693603515625, -0.00279998779296875, 0.05084228515625, 0.00392913818359375, 0.001491546630859375, 0.00853729248046875, 0.00653076171875, 0.00391387939453125, -0.049285888671875, -0.0204315185546875, 0.008575439453125, 0.060760498046875, 0.038330078125, -0.01258087158203125, 0.004199981689453125, -0.02301025390625, -0.007232666015625, 0.037322998046875, -0.036773681640625, -0.09942626953125, 0.00848388671875, 0.0848388671875, 0.024139404296875, -0.0689697265625, -0.01157379150390625, -0.0105133056640625, -0.055908203125, -0.023345947265625, 0.036712646484375, -0.04779052734375, -0.0100555419921875, -0.005466461181640625, -0.0197601318359375, -0.00031828880310058594, 0.004425048828125, -0.08367919921875, -0.032958984375, -0.0191650390625, 0.0010595321655273438, 0.08282470703125, -0.0223388671875, 0.010345458984375, -0.02508544921875, 0.0205078125, 0.037506103515625, -0.00543975830078125, 0.07818603515625, 0.021575927734375, -0.0452880859375, 0.004528045654296875, -0.0264739990234375, -0.0037631988525390625, -0.05810546875, -0.056121826171875, -0.035491943359375, 0.00272369384765625, 0.004001617431640625, -0.0013341903686523438, 0.005596160888671875, 0.01328277587890625, -0.03265380859375, 0.0645751953125, 0.0237884521484375, 0.05743408203125, -0.00933837890625, 0.031951904296875, -0.01107025146484375, 0.0050048828125, 0.007434844970703125, 0.051239013671875, 0.043670654296875, -0.042877197265625, 0.033203125, -0.0205535888671875, -0.03411865234375, -0.035400390625, -0.019134521484375, -0.0015649795532226562, 0.04315185546875, -0.022003173828125, 0.023712158203125, -0.02874755859375, 0.006420135498046875, -0.0210113525390625, 0.0211334228515625, -0.04339599609375, 0.0275726318359375, -0.0290069580078125, 0.0037631988525390625, 0.050567626953125, -0.0130615234375, 0.0035266876220703125, -0.0244293212890625, 0.00014102458953857422, -0.00562286376953125, 0.0078277587890625, -0.06298828125, 0.063232421875, 0.06451416015625, 0.0020294189453125, 0.039703369140625, 0.01568603515625, 0.002315521240234375, 0.00788116455078125, -0.0199432373046875, 0.015045166015625, 0.00763702392578125, 0.0221405029296875, -0.0004811286926269531, 0.01372528076171875, 0.03350830078125, -0.019256591796875, 0.0278472900390625, 0.07830810546875, 0.04901123046875, -0.1207275390625, 0.015716552734375, -0.0007619857788085938, -0.0205535888671875, 0.02484130859375, -0.03253173828125, -0.0243988037109375, -0.041656494140625, 0.09942626953125, -0.0465087890625, -0.01052093505859375, 0.029541015625, -0.0164337158203125, -0.01403045654296875, 0.00469207763671875, 0.0307769775390625, 0.0101776123046875, -0.041351318359375, -0.0129852294921875, 0.046142578125, -0.032958984375, -0.0020236968994140625, 0.0157928466796875, 0.00772857666015625, -0.00925445556640625, -0.04296875, 0.0270538330078125, -0.024139404296875, -0.019561767578125, 0.055755615234375, 0.01041412353515625, 0.01073455810546875, 0.049407958984375, -0.0216827392578125, 0.02862548828125, 0.01055145263671875, -0.005672454833984375, 0.0170135498046875, -0.0289459228515625, -0.00691986083984375, 0.00637054443359375, -0.05438232421875, 0.015716552734375, -0.01971435546875, -0.00569915771484375, 0.0028705596923828125, 0.01534271240234375, 0.06890869140625, -0.045196533203125, -0.01214599609375, 0.017120361328125, 0.008209228515625, 0.005519866943359375, -0.03741455078125, 0.0193023681640625, -0.10040283203125, -0.047698974609375, -0.01110076904296875, -0.01334381103515625, 0.0070037841796875, -0.028289794921875, -0.07867431640625, 0.0760498046875, -0.038787841796875, 0.05133056640625, 0.004116058349609375, 0.01398468017578125, -0.00853729248046875, -0.0079193115234375, -0.0015535354614257812, 0.06866455078125, 0.07666015625, -0.01397705078125, 0.01091766357421875, -0.018341064453125, 0.01454925537109375, 0.01715087890625, 0.06829833984375, 0.01076507568359375, -0.0121307373046875, -0.01358795166015625, 0.035858154296875, 0.04510498046875, 0.0005517005920410156, 0.0274505615234375, 0.0244293212890625, -0.0192413330078125, 0.010467529296875, -0.0028228759765625, 0.032501220703125, -0.03924560546875, -0.0034160614013671875, 0.034759521484375, 0.01373291015625, 0.004299163818359375, 0.01190948486328125, -0.002353668212890625, -0.0121917724609375, 0.0079345703125, 0.004924774169921875, -0.00048041343688964844, 0.002849578857421875, 0.00262451171875, 0.0256195068359375, 0.009613037109375, 0.0076751708984375, -0.018798828125, 0.045166015625, 0.034210205078125, 0.0174713134765625, 0.00762176513671875, 0.02789306640625, -0.0499267578125, -0.01219940185546875, 0.0078887939453125, 0.036712646484375, -0.06341552734375, 0.03887939453125, 0.01381683349609375, 0.0162353515625, -0.029266357421875, 0.01386260986328125, 0.034088134765625, 0.044647216796875, -0.03326416015625, -0.049346923828125, 0.0128173828125, -0.009307861328125, 0.01366424560546875, -0.0020694732666015625, 0.0228729248046875, -0.0322265625, 0.00937652587890625, 0.005809783935546875, 0.0175323486328125, 0.042633056640625, -0.00843048095703125, 0.0022735595703125, 0.013427734375, -0.03216552734375, 0.0474853515625, -0.006542205810546875, -0.01078033447265625, -0.00962066650390625, -0.00809478759765625, 0.0143890380859375, 0.0257720947265625, 0.0318603515625, 0.006603240966796875, -0.025146484375, 0.06689453125, -0.01108551025390625, 0.026031494140625, -0.0745849609375, -0.06793212890625, -0.00241851806640625, 0.047332763671875, 0.0028781890869140625, -0.01540374755859375, 0.0159454345703125, 0.03277587890625, -0.00433349609375, -0.025482177734375, 0.041748046875, -0.006786346435546875, -0.004642486572265625, -0.0018320083618164062, 0.024993896484375, 0.0443115234375, 0.002475738525390625, -0.0081634521484375, 0.042236328125, 0.0333251953125, -0.0323486328125, 0.05450439453125, -0.004611968994140625, 0.0078125, 0.05279541015625, 0.00594329833984375, 0.037872314453125, 0.0058135986328125, -0.067138671875, -0.0133209228515625, 0.0136260986328125, -0.042205810546875, 0.0175018310546875, 0.047698974609375, -0.0198974609375, 0.00860595703125, 0.01079559326171875, -0.00905609130859375, 0.0006270408630371094, -0.0078125, 0.0014238357543945312, -0.0017795562744140625, 0.0262603759765625, -0.0013971328735351562, -0.042388916015625, -0.01491546630859375, -0.001270294189453125, 0.005588531494140625, 0.0016469955444335938, 0.01169586181640625, 0.0218658447265625, 0.007656097412109375, -0.03887939453125, 0.0191802978515625, -0.027069091796875, -0.01526641845703125, -0.0031414031982421875, 0.0303192138671875, 0.01197052001953125, -0.009552001953125, -0.038299560546875, 0.03985595703125, 0.036376953125, 0.001003265380859375, 0.044921875, -0.0135650634765625, 0.0053253173828125, -0.026458740234375, -0.011016845703125, -0.0210723876953125, -0.037139892578125, -0.0189361572265625, 0.0265350341796875, 0.014892578125, 0.0199432373046875, -0.038238525390625, 0.020355224609375, 0.030731201171875, -0.0021266937255859375, 0.02325439453125, 0.01554107666015625, 0.01971435546875, 0.0262603759765625, 0.007106781005859375, 0.0090484619140625, 0.021484375, 0.0021572113037109375, 0.0006122589111328125, 0.037353515625, -0.0216217041015625, 0.028594970703125, -0.0174407958984375, -0.00531768798828125, 0.02447509765625, 0.0251312255859375, 0.00807952880859375, 0.007366180419921875, 0.00498199462890625, -0.012603759765625, -0.06097412109375, 0.048004150390625, -0.022552490234375, 0.006145477294921875, -0.0163726806640625, 0.00370025634765625, 0.0164642333984375, -0.06903076171875, -0.07867431640625, 0.0260772705078125, 0.034759521484375, 0.022308349609375, -0.09503173828125, 0.07708740234375, -0.040252685546875, 0.0310821533203125, -0.006282806396484375, 0.033111572265625, -0.0269317626953125, -0.00608062744140625, -0.056488037109375, -0.03729248046875, -0.04583740234375, 0.031402587890625, -0.044891357421875, -0.01922607421875, -0.025390625, 0.007793426513671875, 0.032928466796875, -0.04931640625, -0.0094146728515625, 0.00844573974609375, 0.0016231536865234375, -0.027008056640625, -0.0018987655639648438, -0.0007295608520507812, 0.012451171875, -0.046234130859375, -0.00994110107421875, -0.033935546875, -0.0194244384765625, 0.0032749176025390625, -0.0118865966796875, -0.003932952880859375, -0.0418701171875, -0.0308837890625, 0.0006999969482421875, 0.0240936279296875, -0.03582763671875, 0.001171112060546875, 0.03997802734375, -0.0300750732421875, 0.038787841796875, 0.0228424072265625, -0.0160064697265625, 0.03826904296875, -0.00504302978515625, 0.00962066650390625, 0.016082763671875, -0.006076812744140625, -0.00786590576171875, -0.039581298828125, 0.027008056640625, 0.0214080810546875, 0.00943756103515625, -0.00991058349609375, -0.01349639892578125, 0.0006918907165527344, 0.00318145751953125, -0.0391845703125, -0.05120849609375, 0.021484375, 0.026763916015625, -0.035858154296875, -0.0026092529296875, 0.0291595458984375, 0.0285186767578125, 0.0251617431640625, 0.036956787109375, 0.00354766845703125, -0.03204345703125, -0.0103912353515625, -0.007793426513671875, -0.007038116455078125, -0.04095458984375, 0.01009368896484375, -0.0787353515625, -0.039031982421875, -0.0015468597412109375, -0.031646728515625, -0.013214111328125, -0.01479339599609375, -0.0550537109375, 0.00925445556640625, -0.00487518310546875, 0.0131072998046875, -0.0097808837890625, 0.0265655517578125, 0.01190185546875, -0.01593017578125, 0.00446319580078125, -0.01128387451171875, -0.003978729248046875, -0.003650665283203125, -0.0277099609375, -0.0019407272338867188, 0.0248260498046875, -0.05462646484375, 0.0323486328125, -0.014923095703125, 0.0206451416015625, -0.06689453125, -0.0020771026611328125, -0.024322509765625, 0.0118255615234375, -0.006458282470703125, 0.0185546875, -0.01428985595703125, 0.0173797607421875, 0.0098114013671875, 0.045745849609375, 0.022552490234375, 0.0640869140625, -0.033172607421875, 0.06494140625, 0.04986572265625, -0.048797607421875, 0.062103271484375, -0.0284271240234375, 0.015869140625, 0.042388916015625, 0.050872802734375, -0.039276123046875, 0.0390625, 0.0443115234375, 0.046234130859375, 0.03204345703125 ]
a44d9874427b2d34ee7d045bd0f0826473e87e9b
Wordpress Stackexchange Q: Remove or Edit in Feeds Would like to remove <dc:creator> or edit it to be a static value without editing core Wordpress files. Preferably as a function. A: I was going to use the above answer from Otto but the more I looked at the templates the more it dawned on me that you don't need all that. Just hook the_author filter and check is_feed if you want a RSS specific author. function f_the_author( $display_name ) { // $display_name === string $authordata->display_name if ( is_feed() ) { return 'Static Feed Author Display Name Here'; } return "Static Author Display Name"; } add_filter( 'the_author', 'f_the_author', PHP_INT_MAX, 1 );
Q: Remove or Edit in Feeds Would like to remove <dc:creator> or edit it to be a static value without editing core Wordpress files. Preferably as a function. A: I was going to use the above answer from Otto but the more I looked at the templates the more it dawned on me that you don't need all that. Just hook the_author filter and check is_feed if you want a RSS specific author. function f_the_author( $display_name ) { // $display_name === string $authordata->display_name if ( is_feed() ) { return 'Static Feed Author Display Name Here'; } return "Static Author Display Name"; } add_filter( 'the_author', 'f_the_author', PHP_INT_MAX, 1 ); A: * *Copy /wp-includes/feed-rss2.php to your theme folder *Edit it and make whatever changes you desire (e.g. removing the line for dc:creator) *in your theme's functions.php file, add the following function: remove_all_actions( 'do_feed_rss2' ); function create_my_custom_feed() { load_template( TEMPLATEPATH . '/feed-rss2.php'); } add_action('do_feed_rss2', 'create_my_custom_feed', 10, 1); Edit by Otto: While that will work, this would be a better way: function create_my_custom_feed() { load_template( TEMPLATEPATH . '/feed-rss2.php'); } add_feed('rss2', 'create_my_custom_feed'); The add_feed() function is smart, and will handle the actions and such for you. Note: It will require a one-time use of flush_rules() to take effect. A: We were unable to get any of the other answers to this question to work for us. Maybe it was due to the theme we're using. @Biranit Goren's solution resulted in a 500 error when we tried to load our RSS feed. @jgraup's solution does work, but the Author field in all of our views for posts, pages, events, media library, etc. show as blank when we use the code in our functions.php file. We did find the following, which worked. Credit goes to the following article: https://www.flynsarmy.com/2013/10/add-to-or-override-the-default-wordpress-rss-feed/ Copy the feed-rss2.php from the wp-includes directory to your child theme directory. Modify the feed-rss2.php in your child theme's diectory as desired. Add the following to your child theme’s functions.php file remove_all_actions( 'do_feed_rss2' ); add_action( 'do_feed_rss2', function( $for_comments ) { if ( $for_comments ) load_template( ABSPATH . WPINC . '/feed-rss2-comments.php' ); else { if ( $rss_template = locate_template( 'feed-rss2.php' ) ) // locate_template() returns path to file // if either the child theme or the parent theme have overridden the template load_template( $rss_template ); else load_template( ABSPATH . WPINC . '/feed-rss2.php' ); } }, 10, 1 ); A: For those who don't want to do a PHP script hack. The field simply displays the author name of the post. If you want to change what it says, go to the WP admin, then go to 'Users' -> 'Your Profile' (or go to the specific user you want to change). Then change the field 'Display name publicly as' to what you want to show in the RSS feed. A: Unfortunately, that element is hard-coded into WordPress core. Take a look at /wp-includes/feed-rss2.php: <item> <title><?php the_title_rss() ?></title> <link><?php the_permalink_rss() ?></link> <comments><?php comments_link_feed(); ?></comments> <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> <dc:creator><?php the_author() ?></dc:creator> <?php the_category_rss('rss2') ?> <guid isPermaLink="false"><?php the_guid(); ?></guid> <?php if (get_option('rss_use_excerpt')) : ?> <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> <?php else : ?> <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> <?php if ( strlen( $post->post_content ) > 0 ) : ?> <content:encoded><![CDATA[<?php the_content_feed('rss2') ?>]]></content:encoded> <?php else : ?> <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> <?php endif; ?> <?php endif; ?> <wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss> <slash:comments><?php echo get_comments_number(); ?></slash:comments> <?php rss_enclosure(); ?> <?php do_action('rss2_item'); ?> </item>
wordpress
{ "language": "en", "length": 566, "provenance": "stackexchange_00019.jsonl.gz:418685", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47726" }
[ 0.03631591796875, 0.030731201171875, -0.01105499267578125, 0.0026912689208984375, 0.034515380859375, -0.03662109375, 0.039459228515625, -0.0572509765625, 0.024658203125, 0.0231475830078125, 0.00757598876953125, -0.036407470703125, -0.0241241455078125, -0.024658203125, -0.0469970703125, -0.03436279296875, 0.01654052734375, -0.015533447265625, 0.0277557373046875, -0.010162353515625, 0.0159759521484375, -0.00444793701171875, 0.03778076171875, 0.01079559326171875, 0.009368896484375, -0.035614013671875, 0.065673828125, -0.030029296875, 0.0168914794921875, -0.0352783203125, 0.01349639892578125, 0.0178680419921875, -0.00943756103515625, 0.034332275390625, -0.021453857421875, -0.0006761550903320312, -0.0220489501953125, 0.0218658447265625, 0.020751953125, -0.003326416015625, 0.01404571533203125, -0.003292083740234375, -0.041656494140625, 0.0036945343017578125, -0.053924560546875, -0.0206298828125, 0.00824737548828125, 0.00844573974609375, 0.028472900390625, 0.07183837890625, -0.0212860107421875, -0.00962066650390625, -0.0204315185546875, 0.027740478515625, -0.0257720947265625, -0.06036376953125, 0.03717041015625, 0.00007605552673339844, 0.0322265625, -0.035125732421875, -0.0297393798828125, 0.0240020751953125, 0.01690673828125, 0.0007414817810058594, 0.0098114013671875, 0.0172271728515625, 0.043487548828125, 0.011871337890625, -0.0285186767578125, -0.0004336833953857422, 0.0199127197265625, -0.02532958984375, 0.00870513916015625, -0.0022335052490234375, -0.037078857421875, -0.0015430450439453125, -0.0012292861938476562, -0.0172271728515625, 0.036865234375, -0.0186767578125, -0.0190582275390625, 0.006099700927734375, -0.004901885986328125, -0.037139892578125, 0.0258941650390625, 0.0029296875, -0.0140533447265625, -0.004817962646484375, -0.005191802978515625, 0.0205078125, -0.00508880615234375, 0.0003345012664794922, -0.000022292137145996094, 0.024017333984375, -0.012054443359375, -0.00679779052734375, 0.06439208984375, 0.09686279296875, -0.020751953125, -0.03466796875, -0.0263214111328125, -0.004352569580078125, -0.0697021484375, -0.035125732421875, -0.00046634674072265625, 0.0771484375, 0.01380157470703125, 0.043365478515625, 0.0270843505859375, 0.01526641845703125, 0.031890869140625, -0.029754638671875, -0.01407623291015625, -0.0285491943359375, -0.020843505859375, 0.006465911865234375, -0.022613525390625, 0.01006317138671875, 0.0003910064697265625, -0.01406097412109375, 0.01319122314453125, 0.025482177734375, -0.0232391357421875, -0.0032558441162109375, 0.02197265625, 0.015411376953125, -0.025848388671875, -0.003627777099609375, -0.037384033203125, -0.02056884765625, -0.035186767578125, 0.03485107421875, 0.10369873046875, 0.0528564453125, 0.01172637939453125, -0.00836944580078125, 0.0157470703125, -0.04168701171875, 0.005092620849609375, 0.011688232421875, 0.00428009033203125, -0.027099609375, 0.0245513916015625, 0.004825592041015625, 0.037811279296875, 0.024566650390625, 0.026824951171875, 0.01284027099609375, -0.001201629638671875, -0.01309967041015625, -0.006359100341796875, 0.01531982421875, 0.0406494140625, 0.02099609375, -0.004291534423828125, -0.035064697265625, 0.087158203125, -0.07672119140625, -0.0182647705078125, -0.08038330078125, -0.0117950439453125, -0.0238800048828125, 0.01151275634765625, -0.035614013671875, -0.035552978515625, 0.025238037109375, -0.0207977294921875, -0.0019626617431640625, 0.01407623291015625, 0.00594329833984375, 0.004974365234375, -0.01033782958984375, -0.0128936767578125, 0.0257720947265625, 0.0158843994140625, 0.0302734375, -0.0120086669921875, 0.011383056640625, 0.00966644287109375, 0.00832366943359375, -0.019317626953125, -0.0384521484375, -0.0103912353515625, 0.01198577880859375, -0.0953369140625, 0.05816650390625, 0.0272369384765625, 0.12091064453125, 0.005001068115234375, 0.01224517822265625, 0.0687255859375, 0.00830078125, 0.0035762786865234375, -0.0140228271484375, 0.00923919677734375, -0.046478271484375, -0.005245208740234375, -0.037567138671875, 0.0030078887939453125, 0.04266357421875, 0.0009140968322753906, 0.043182373046875, -0.0179290771484375, 0.00830841064453125, -0.08331298828125, 0.04913330078125, -0.04681396484375, 0.058258056640625, -0.04083251953125, 0.00550079345703125, 0.0198211669921875, -0.0266265869140625, -0.01434326171875, -0.01006317138671875, -0.0092620849609375, -0.005035400390625, -0.00595855712890625, 0.0162353515625, 0.01279449462890625, 0.053680419921875, 0.005039215087890625, -0.0077972412109375, 0.004360198974609375, -0.0086822509765625, 0.0758056640625, -0.06805419921875, -0.0009012222290039062, -0.06707763671875, 0.0509033203125, -0.03997802734375, -0.03369140625, 0.061676025390625, 0.023345947265625, -0.0100555419921875, -0.028839111328125, 0.00879669189453125, -0.0047760009765625, -0.048675537109375, -0.007381439208984375, 0.0478515625, 0.0179290771484375, -0.0142364501953125, -0.0250396728515625, -0.00044655799865722656, 0.037933349609375, -0.002658843994140625, 0.00412750244140625, -0.004985809326171875, 0.033782958984375, 0.0745849609375, -0.036224365234375, -0.01476287841796875, -0.016937255859375, -0.08544921875, -0.0012750625610351562, 0.031829833984375, -0.006282806396484375, -0.0124969482421875, 0.01230621337890625, 0.0287322998046875, 0.0029296875, 0.06170654296875, 0.0034351348876953125, 0.034698486328125, -0.00048661231994628906, 0.0306396484375, 0.01849365234375, 0.0282135009765625, -0.049896240234375, 0.004329681396484375, 0.024993896484375, 0.06097412109375, -0.0031490325927734375, 0.04351806640625, 0.0087432861328125, -0.0047454833984375, 0.0119781494140625, -0.0210723876953125, -0.039459228515625, -0.00342559814453125, -0.02593994140625, 0.017242431640625, 0.003978729248046875, -0.0255126953125, 0.01540374755859375, -0.0209197998046875, -0.0099334716796875, -0.059783935546875, 0.0013513565063476562, 0.00557708740234375, 0.0146636962890625, 0.009674072265625, -0.0208740234375, 0.0198822021484375, 0.027618408203125, -0.013885498046875, 0.0263519287109375, -0.042449951171875, 0.034393310546875, -0.008331298828125, 0.0513916015625, 0.0675048828125, 0.01800537109375, -0.00865936279296875, -0.0018167495727539062, -0.0323486328125, -0.0005712509155273438, -0.005001068115234375, 0.00017583370208740234, 0.01265716552734375, -0.0333251953125, 0.0467529296875, 0.01288604736328125, 0.029388427734375, -0.004192352294921875, -0.0310516357421875, -0.010009765625, 0.0306854248046875, -0.047119140625, 0.00019848346710205078, 0.0234375, 0.00988006591796875, -0.034942626953125, 0.031585693359375, -0.01494598388671875, -0.000010609626770019531, 0.04193115234375, -0.0251007080078125, 0.016998291015625, -0.022247314453125, -0.047149658203125, -0.011810302734375, -0.055633544921875, 0.0321044921875, 0.0016775131225585938, 0.01239776611328125, 0.01296234130859375, 0.01445770263671875, 0.01155853271484375, -0.036346435546875, 0.035675048828125, 0.03863525390625, -0.00234222412109375, 0.0232696533203125, -0.01026153564453125, 0.002521514892578125, 0.01251220703125, 0.002166748046875, 0.0228118896484375, 0.02288818359375, -0.01995849609375, -0.005138397216796875, -0.01364898681640625, -0.016937255859375, 0.0167999267578125, 0.043060302734375, 0.0109710693359375, 0.003681182861328125, 0.049346923828125, -0.027099609375, -0.03741455078125, 0.019989013671875, -0.018096923828125, 0.007656097412109375, 0.0029087066650390625, -0.0118560791015625, -0.02960205078125, 0.0443115234375, -0.00673675537109375, 0.0213623046875, 0.0113983154296875, 0.0297088623046875, -0.057342529296875, -0.024139404296875, -0.039703369140625, -0.003971099853515625, -0.00830841064453125, -0.042724609375, 0.0235137939453125, 0.00160980224609375, -0.0189971923828125, 0.01116943359375, -0.041015625, -0.01068878173828125, -0.0019102096557617188, 0.03277587890625, -0.03857421875, -0.03082275390625, 0.006610870361328125, 0.0006833076477050781, 0.0085601806640625, 0.015960693359375, -0.00542449951171875, -0.0238189697265625, 0.002780914306640625, 0.023101806640625, -0.009552001953125, -0.07366943359375, 0.00846099853515625, -0.027496337890625, -0.08203125, 0.0221405029296875, -0.0038547515869140625, -0.004482269287109375, -0.0246429443359375, 0.006443023681640625, -0.0260772705078125, -0.037994384765625, 0.019683837890625, -0.017364501953125, -0.0045013427734375, 0.0128936767578125, -0.019073486328125, -0.0218048095703125, -0.01158905029296875, -0.02392578125, -0.050201416015625, -0.0169677734375, -0.037506103515625, 0.06536865234375, 0.018768310546875, 0.01415252685546875, -0.00728607177734375, 0.05242919921875, 0.00110626220703125, -0.00988006591796875, 0.0020751953125, -0.0064544677734375, -0.00574493408203125, -0.006206512451171875, -0.00945281982421875, -0.02923583984375, -0.0006895065307617188, -0.0189056396484375, 0.008209228515625, 0.029541015625, -0.0343017578125, -0.01568603515625, -0.0245819091796875, -0.01495361328125, -0.10260009765625, -0.0965576171875, -0.0140228271484375, 0.028472900390625, -0.034515380859375, 0.054595947265625, -0.10357666015625, -0.1046142578125, 0.0209808349609375, -0.0214080810546875, -0.005550384521484375, 0.0089111328125, 0.0947265625, 0.034149169921875, 0.0057220458984375, 0.0098419189453125, -0.0217132568359375, 0.0274200439453125, -0.020172119140625, 0.04718017578125, 0.038726806640625, -0.0160675048828125, 0.0261688232421875, -0.0008153915405273438, 0.0250091552734375, -0.049652099609375, 0.08416748046875, -0.01654052734375, -0.0142364501953125, 0.0374755859375, -0.0157012939453125, 0.005176544189453125, -0.0168914794921875, -0.010009765625, 0.03521728515625, 0.04534912109375, -0.00885772705078125, -0.0193023681640625, -0.006694793701171875, 0.0109100341796875, -0.0015811920166015625, 0.01406097412109375, -0.0299530029296875, 0.00897216796875, 0.01541900634765625, 0.001979827880859375, -0.038482666015625, -0.0264129638671875, 0.0364990234375, -0.0256195068359375, -0.04827880859375, -0.05218505859375, 0.0167083740234375, -0.02294921875, -0.00726318359375, 0.0218048095703125, -0.005702972412109375, 0.0218048095703125, -0.0005025863647460938, -0.06866455078125, 0.003490447998046875, 0.0174560546875, 0.04071044921875, 0.022857666015625, 0.002567291259765625, 0.035736083984375, 0.006374359130859375, 0.02752685546875, -0.0091705322265625, -0.053131103515625, 0.0077362060546875, -0.0299072265625, -0.016632080078125, 0.00417327880859375, -0.013946533203125, 0.0257720947265625, 0.024627685546875, -0.004253387451171875, 0.01593017578125, -0.02716064453125, 0.050140380859375, 0.0057373046875, 0.00276947021484375, -0.00583648681640625, 0.048095703125, 0.01123809814453125, -0.034088134765625, -0.01323699951171875, 0.003002166748046875, -0.0172271728515625, -0.006305694580078125, 0.006084442138671875, 0.047607421875, 0.03387451171875, -0.0269012451171875, -0.0221710205078125, -0.0159759521484375, 0.041839599609375, 0.00470733642578125, -0.041168212890625, -0.0301361083984375, -0.00832366943359375, 0.0218048095703125, -0.020965576171875, 0.0275726318359375, -0.04998779296875, -0.0034809112548828125, -0.0276336669921875, 0.041229248046875, -0.02081298828125, -0.029144287109375, -0.029815673828125, -0.050628662109375, -0.0101165771484375, 0.01032257080078125, -0.048797607421875, -0.04486083984375, -0.0133819580078125, -0.00673675537109375, 0.0272064208984375, -0.013763427734375, 0.040771484375, -0.05084228515625, 0.01480865478515625, -0.0006527900695800781, -0.015655517578125, 0.06341552734375, 0.04345703125, -0.0562744140625, -0.00247955322265625, -0.037994384765625, -0.015411376953125, -0.03662109375, -0.038055419921875, -0.03350830078125, 0.0092926025390625, -0.021270751953125, 0.01385498046875, -0.031219482421875, -0.01080322265625, 0.0293426513671875, 0.0242767333984375, -0.02587890625, 0.016265869140625, 0.0255584716796875, -0.01035308837890625, -0.01678466796875, 0.032958984375, 0.0255889892578125, 0.0015926361083984375, -0.0175323486328125, -0.0673828125, 0.0242462158203125, 0.0015392303466796875, -0.0211181640625, -0.03216552734375, -0.01399993896484375, -0.0259857177734375, 0.043243408203125, -0.006443023681640625, 0.019805908203125, 0.01023101806640625, 0.01580810546875, -0.01666259765625, -0.0171661376953125, -0.0005350112915039062, 0.004283905029296875, -0.0121002197265625, -0.02239990234375, -0.01885986328125, -0.0139617919921875, 0.0129852294921875, 0.0034389495849609375, -0.0030994415283203125, -0.02325439453125, 0.0092926025390625, -0.05352783203125, 0.05218505859375, 0.062042236328125, -0.0124053955078125, 0.025360107421875, 0.0018758773803710938, -0.01378631591796875, 0.005878448486328125, -0.01290130615234375, -0.030853271484375, 0.0085296630859375, -0.003696441650390625, -0.005970001220703125, 0.0233917236328125, -0.006092071533203125, 0.00765228271484375, -0.02471923828125, 0.04010009765625, 0.0265045166015625, -0.0277557373046875, -0.035858154296875, 0.01497650146484375, -0.0211639404296875, -0.0019626617431640625, 0.02935791015625, -0.005207061767578125, -0.009033203125, 0.0180511474609375, -0.040008544921875, 0.006137847900390625, 0.02886962890625, 0.006237030029296875, 0.0010404586791992188, -0.0194854736328125, 0.03662109375, 0.01024627685546875, -0.006626129150390625, -0.0120697021484375, -0.0166168212890625, -0.002338409423828125, -0.0411376953125, 0.00579833984375, 0.043792724609375, -0.01678466796875, -0.0767822265625, 0.0286407470703125, -0.0203094482421875, -0.002498626708984375, 0.0021533966064453125, 0.0007238388061523438, 0.0260467529296875, 0.01462554931640625, 0.0015153884887695312, -0.004039764404296875, -0.00986480712890625, -0.007160186767578125, -0.05419921875, -0.0665283203125, 0.0002899169921875, 0.0189666748046875, -0.016998291015625, 0.0455322265625, 0.00897979736328125, -0.061004638671875, -0.0023365020751953125, -0.0294647216796875, 0.045196533203125, 0.0275726318359375, -0.04461669921875, -0.0106201171875, -0.00527191162109375, 0.00933074951171875, 0.01111602783203125, 0.039337158203125, -0.0892333984375, -0.0985107421875, 0.027587890625, -0.0943603515625, 0.002384185791015625, -0.00974273681640625, -0.0797119140625, 0.101806640625, -0.01336669921875, 0.037078857421875, 0.0015354156494140625, 0.0341796875, -0.01465606689453125, 0.003208160400390625, -0.01078033447265625, 0.0166778564453125, 0.052642822265625, 0.00931549072265625, -0.016571044921875, -0.025238037109375, 0.00055694580078125, 0.043792724609375, 0.0223388671875, 0.0053863525390625, 0.005886077880859375, 0.0004944801330566406, -0.0016927719116210938, 0.0006260871887207031, -0.04913330078125, 0.029144287109375, -0.0455322265625, 0.004352569580078125, -0.028350830078125, -0.010650634765625, 0.02459716796875, -0.01629638671875, -0.07244873046875, -0.00766754150390625, 0.0242919921875, 0.027862548828125, 0.009521484375, -0.020660400390625, -0.004192352294921875, -0.007640838623046875, 0.017791748046875, -0.0004394054412841797, 0.00800323486328125, 0.059478759765625, 0.05267333984375, -0.016448974609375, -0.015838623046875, -0.0262908935546875, 0.0633544921875, 0.003749847412109375, 0.0275726318359375, 0.051971435546875, 0.014678955078125, 0.0210113525390625, 0.0233917236328125, 0.0296630859375, -0.006626129150390625, 0.0272216796875, 0.0117340087890625, 0.002811431884765625, 0.004100799560546875, -0.040802001953125, -0.0000036954879760742188, 0.03985595703125, 0.029083251953125, -0.0197906494140625, -0.0302276611328125, 0.0032863616943359375, -0.011199951171875, 0.02008056640625, -0.0029277801513671875, 0.0191650390625, -0.027862548828125, -0.022125244140625, -0.09130859375, -0.010345458984375, 0.060699462890625, 0.037139892578125, -0.00864410400390625, 0.001953125, -0.03302001953125, -0.060089111328125, -0.033203125, -0.035003662109375, -0.00098419189453125, 0.053466796875, 0.05340576171875, 0.0474853515625, 0.054046630859375, -0.023712158203125, -0.03204345703125, 0.048431396484375, -0.0124053955078125, 0.035491943359375, -0.06402587890625, -0.01337432861328125, 0.01255035400390625, 0.0240325927734375, -0.00962066650390625, 0.02264404296875, 0.0333251953125, 0.01509857177734375, -0.0225372314453125, -0.0146026611328125, 0.011566162109375, -0.036407470703125, -0.0096435546875, -0.0212860107421875, -0.01385498046875, 0.01024627685546875, -0.0219879150390625, 0.0005927085876464844, 0.012664794921875, 0.0195465087890625, -0.03411865234375, -0.049957275390625, 0.01372528076171875, -0.04541015625, 0.02471923828125, 0.0123291015625, -0.01154327392578125, 0.005123138427734375, -0.0229949951171875, -0.0014896392822265625, -0.0223541259765625, -0.029144287109375, 0.0003974437713623047, 0.02935791015625, -0.015960693359375, 0.03167724609375, -0.033966064453125, 0.036376953125, -0.01345062255859375, -0.0369873046875, 0.0014295578002929688, 0.051361083984375, 0.030059814453125, 0.01715087890625, 0.032440185546875, -0.0008554458618164062, 0.02606201171875, 0.050384521484375, 0.016021728515625, 0.039031982421875, -0.0267486572265625, 0.024139404296875, -0.0169830322265625, -0.018402099609375, -0.037872314453125, 0.002651214599609375, 0.0041961669921875, -0.052734375, -0.034637451171875, 0.00754547119140625, -0.01398468017578125, 0.03497314453125, 0.039276123046875, -0.031341552734375, 0.043914794921875, -0.0268707275390625, 0.0025691986083984375, -0.0269622802734375, -0.02178955078125, -0.0198974609375, -0.006595611572265625, 0.022674560546875, 0.004123687744140625, 0.019683837890625, -0.0017976760864257812, -0.02191162109375, 0.00756072998046875, -0.005054473876953125, -0.035675048828125, 0.02813720703125, -0.00954437255859375, 0.02001953125, 0.0142822265625, 0.0095367431640625, -0.05364990234375, 0.0189971923828125, -0.0015516281127929688, 0.0031299591064453125, 0.01055145263671875, 0.042327880859375, 0.01556396484375, -0.03948974609375, 0.013671875, -0.020599365234375, 0.0374755859375, 0.0128173828125, -0.000629425048828125, -0.020172119140625, 0.0213165283203125, -0.037353515625, 0.01067352294921875, -0.031829833984375, 0.005306243896484375, -0.0064697265625, 0.00682830810546875, 0.01158905029296875, -0.07562255859375, -0.0845947265625, 0.01483154296875, 0.0302886962890625, -0.01354217529296875, -0.0423583984375, 0.03277587890625, -0.053253173828125, 0.052825927734375, -0.0230712890625, -0.0760498046875, 0.0057373046875, 0.048370361328125, 0.007568359375, -0.0288238525390625, -0.0467529296875, -0.00489044189453125, -0.031829833984375, 0.005462646484375, 0.0051727294921875, -0.0019435882568359375, 0.036346435546875, 0.01248931884765625, -0.003276824951171875, 0.06365966796875, -0.046539306640625, -0.0237274169921875, 0.025299072265625, -0.0173492431640625, -0.01922607421875, -0.0699462890625, 0.0095062255859375, -0.08746337890625, -0.0040130615234375, 0.0173187255859375, -0.0242156982421875, -0.00017213821411132812, -0.0220794677734375, -0.033935546875, 0.01050567626953125, 0.02716064453125, -0.03607177734375, 0.04071044921875, 0.01064300537109375, -0.0162811279296875, -0.0194244384765625, 0.007755279541015625, -0.0046844482421875, 0.019744873046875, 0.0091400146484375, -0.005893707275390625, 0.005168914794921875, 0.03173828125, -0.0171966552734375, -0.019134521484375, -0.0007357597351074219, 0.00530242919921875, -0.0095672607421875, -0.03912353515625, 0.018951416015625, -0.00598907470703125, 0.0056304931640625, -0.025726318359375, 0.030029296875, 0.018280029296875, 0.058837890625, -0.0264892578125, -0.04638671875, -0.049102783203125, -0.0265045166015625, 0.08160400390625, 0.0677490234375, 0.030242919921875, -0.0367431640625, 0.002925872802734375, -0.01398468017578125, -0.0531005859375, -0.03424072265625, 0.02667236328125, -0.06622314453125, -0.0285797119140625, -0.0023784637451171875, -0.0301055908203125, -0.0029964447021484375, -0.0254669189453125, -0.0731201171875, 0.0189971923828125, -0.037139892578125, 0.028167724609375, -0.040130615234375, -0.01043701171875, -0.026458740234375, 0.0116424560546875, 0.015960693359375, -0.0216217041015625, 0.00414276123046875, -0.00518035888671875, 0.0567626953125, -0.036865234375, -0.041717529296875, -0.0175323486328125, 0.04150390625, -0.034454345703125, 0.0531005859375, -0.040679931640625, -0.00708770751953125, -0.019775390625, 0.006595611572265625, 0.0134124755859375, -0.00496673583984375, -0.0004925727844238281, 0.0191650390625, -0.0003516674041748047, 0.04913330078125, -0.03125, -0.02301025390625, -0.040252685546875, 0.018585205078125, -0.048187255859375, 0.019805908203125, -0.01067352294921875, 0.0013780593872070312, 0.0009045600891113281, -0.01190185546875, -0.0195159912109375, -0.08636474609375, 0.045074462890625, -0.04095458984375, 0.01129150390625, 0.048187255859375 ]
6b5d02412b7c2bcb876bbfd0e54bbe8e407eece0
Wordpress Stackexchange Q: Cleanest Way to Select Every Second Element in a Loop? What's the quickest and easiest way to select every second element in the loop? At the moment I'm using this strange method: <ul> <?php $k = 1; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li class="<?php if($k%2 == 0) echo 'last'; ?>"><?php the_content(); ?></li> <?php $k++; ?> <?php endwhile; ?> <?php endif; ?> </ul> Can't use nth-child since IE doesn't support it and CSS3 PIE isn't playing nice with my site at the moment. A: I wouldn't consider that strange :). WordPress uses a similar method to apply the 'alternate' class to every other row in the tables on the admin page, something like: <ul> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $class = (empty($class) ? 'class="alternate"' : '');?> <li <?php echo $class; ?> ><?php the_content(); ?></li> <?php endwhile; ?> <?php endif; ?> </ul>
Q: Cleanest Way to Select Every Second Element in a Loop? What's the quickest and easiest way to select every second element in the loop? At the moment I'm using this strange method: <ul> <?php $k = 1; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li class="<?php if($k%2 == 0) echo 'last'; ?>"><?php the_content(); ?></li> <?php $k++; ?> <?php endwhile; ?> <?php endif; ?> </ul> Can't use nth-child since IE doesn't support it and CSS3 PIE isn't playing nice with my site at the moment. A: I wouldn't consider that strange :). WordPress uses a similar method to apply the 'alternate' class to every other row in the tables on the admin page, something like: <ul> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $class = (empty($class) ? 'class="alternate"' : '');?> <li <?php echo $class; ?> ><?php the_content(); ?></li> <?php endwhile; ?> <?php endif; ?> </ul>
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:418692", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47749" }
[ 0.012542724609375, 0.005069732666015625, 0.0276336669921875, 0.0222320556640625, 0.01030731201171875, -0.032867431640625, 0.05816650390625, -0.059844970703125, 0.00458526611328125, 0.0231475830078125, -0.04150390625, 0.0004177093505859375, -0.0271759033203125, -0.029449462890625, -0.010833740234375, -0.060821533203125, 0.019195556640625, -0.0051727294921875, 0.02166748046875, 0.0009179115295410156, -0.01201629638671875, 0.00302886962890625, 0.028900146484375, 0.04638671875, 0.007480621337890625, -0.0767822265625, 0.0687255859375, -0.0143280029296875, 0.004299163818359375, -0.034027099609375, 0.01708984375, 0.0127410888671875, -0.00007146596908569336, 0.0173187255859375, -0.018218994140625, -0.046356201171875, 0.0120086669921875, 0.00019097328186035156, 0.004886627197265625, 0.02496337890625, 0.015411376953125, -0.0131072998046875, 0.00081634521484375, 0.0200653076171875, -0.038360595703125, -0.001247406005859375, 0.01055908203125, 0.000029146671295166016, -0.006744384765625, -0.04937744140625, 0.04156494140625, -0.0164947509765625, 0.05352783203125, -0.0169525146484375, -0.00995635986328125, 0.0416259765625, 0.007740020751953125, -0.053436279296875, 0.0217132568359375, -0.0133056640625, -0.0296478271484375, -0.01763916015625, 0.035400390625, -0.007381439208984375, 0.0052490234375, 0.007343292236328125, 0.037384033203125, 0.0300445556640625, -0.02642822265625, -0.01216888427734375, 0.0149383544921875, 0.00215911865234375, -0.005115509033203125, -0.0665283203125, -0.005035400390625, 0.0221099853515625, -0.0277862548828125, -0.040313720703125, 0.0006608963012695312, -0.020416259765625, -0.0443115234375, 0.0267181396484375, -0.04937744140625, -0.0272216796875, 0.00508880615234375, 0.005374908447265625, -0.027740478515625, -0.0012607574462890625, 0.0207977294921875, -0.020233154296875, -0.0076751708984375, 0.0259246826171875, 0.054290771484375, -0.03851318359375, -0.06109619140625, -0.03411865234375, 0.0256805419921875, 0.0372314453125, -0.0027637481689453125, -0.004405975341796875, 0.01544952392578125, -0.048187255859375, 0.0175933837890625, -0.03424072265625, 0.0255279541015625, 0.0309906005859375, -0.00954437255859375, -0.0235748291015625, 0.05084228515625, 0.021514892578125, -0.0001863241195678711, 0.032135009765625, 0.0038127899169921875, -0.0035762786865234375, -0.01108551025390625, -0.0193328857421875, -0.04449462890625, 0.010009765625, 0.005462646484375, -0.0218353271484375, -0.0030155181884765625, -0.022491455078125, 0.016754150390625, 0.00267791748046875, -0.002109527587890625, -0.014068603515625, -0.032012939453125, -0.01220703125, 0.054412841796875, -0.01413726806640625, -0.035369873046875, 0.000804901123046875, 0.046905517578125, 0.0243377685546875, 0.027557373046875, -0.006793975830078125, 0.00861358642578125, -0.0185089111328125, 0.006885528564453125, -0.0073699951171875, 0.01812744140625, -0.0069122314453125, 0.00940704345703125, 0.0292816162109375, 0.02301025390625, 0.036224365234375, 0.0216827392578125, -0.016937255859375, 0.0133514404296875, -0.039825439453125, -0.0082550048828125, -0.0188751220703125, 0.035675048828125, 0.0007424354553222656, -0.027801513671875, -0.01171875, -0.0005960464477539062, -0.005290985107421875, -0.00396728515625, -0.0362548828125, -0.0146331787109375, -0.00435638427734375, 0.03533935546875, -0.05078125, -0.06085205078125, 0.0046844482421875, -0.0718994140625, -0.0287933349609375, 0.02374267578125, -0.056640625, 0.00598907470703125, -0.01197052001953125, 0.0452880859375, 0.0108184814453125, 0.008331298828125, 0.053955078125, -0.00848388671875, -0.0226898193359375, 0.0221099853515625, 0.005062103271484375, -0.0506591796875, -0.03021240234375, -0.01451873779296875, -0.01067352294921875, -0.0478515625, 0.0170745849609375, 0.00801849365234375, 0.03155517578125, 0.030975341796875, 0.007083892822265625, 0.052093505859375, -0.00269317626953125, -0.059906005859375, 0.07049560546875, 0.0242919921875, -0.0277557373046875, -0.042724609375, -0.02655029296875, -0.0015516281127929688, -0.03729248046875, 0.0311279296875, -0.003589630126953125, -0.013519287109375, 0.01235198974609375, -0.042388916015625, -0.016082763671875, -0.003116607666015625, 0.00902557373046875, -0.0047149658203125, -0.007236480712890625, 0.006618499755859375, -0.0030307769775390625, -0.016143798828125, -0.051849365234375, -0.0599365234375, -0.00045371055603027344, -0.022247314453125, -0.0281524658203125, 0.0056610107421875, 0.00688934326171875, 0.033416748046875, -0.032989501953125, -0.00016546249389648438, 0.021484375, 0.0643310546875, -0.01526641845703125, -0.01654052734375, -0.0240631103515625, 0.0227203369140625, -0.007366180419921875, -0.034423828125, 0.0528564453125, -0.0027675628662109375, 0.04833984375, -0.0162200927734375, 0.007476806640625, 0.00455474853515625, 0.0142059326171875, 0.0019702911376953125, 0.00646209716796875, 0.040496826171875, 0.038116455078125, -0.0019741058349609375, -0.006420135498046875, 0.10821533203125, 0.0032672882080078125, 0.01751708984375, -0.032867431640625, -0.00913238525390625, 0.0443115234375, 0.007732391357421875, 0.035675048828125, 0.024078369140625, 0.006008148193359375, 0.00008600950241088867, 0.03924560546875, 0.01708984375, 0.01190185546875, -0.041839599609375, 0.031341552734375, -0.004116058349609375, -0.03143310546875, -0.0287628173828125, -0.01462554931640625, 0.0919189453125, -0.027923583984375, 0.045745849609375, 0.02642822265625, 0.01409912109375, -0.0166473388671875, -0.013336181640625, -0.031463623046875, 0.0097503662109375, 0.03668212890625, -0.06854248046875, 0.00493621826171875, -0.0267486572265625, 0.0210418701171875, 0.01396942138671875, -0.01126861572265625, -0.007801055908203125, 0.0753173828125, 0.038055419921875, -0.030914306640625, -0.02777099609375, -0.0084686279296875, -0.001953125, -0.0238189697265625, -0.023712158203125, -0.0272979736328125, 0.01355743408203125, 0.0352783203125, -0.0350341796875, 0.0245513916015625, -0.02642822265625, -0.0098876953125, 0.07196044921875, 0.004360198974609375, 0.0167083740234375, 0.0030231475830078125, 0.0380859375, 0.03662109375, -0.01377105712890625, 0.014892578125, 0.0038852691650390625, 0.00806427001953125, 0.01323699951171875, 0.004467010498046875, 0.00006753206253051758, 0.0009679794311523438, -0.02056884765625, 0.0134429931640625, 0.042633056640625, 0.10284423828125, 0.0023040771484375, -0.046905517578125, 0.0216064453125, 0.058685302734375, -0.08984375, -0.10150146484375, 0.031158447265625, -0.06341552734375, -0.008544921875, 0.016448974609375, -0.049102783203125, -0.01503753662109375, 0.050689697265625, -0.011749267578125, -0.00994110107421875, -0.0235595703125, -0.03021240234375, -0.06951904296875, -0.041229248046875, -0.01001739501953125, -0.00830841064453125, 0.0008478164672851562, 0.0083160400390625, 0.04315185546875, 0.00817108154296875, -0.05364990234375, -0.007686614990234375, 0.032257080078125, -0.00315093994140625, 0.00811004638671875, -0.039764404296875, -0.005565643310546875, -0.037353515625, 0.00475311279296875, -0.0010690689086914062, -0.050537109375, 0.0299072265625, -0.0167999267578125, -0.017333984375, 0.040802001953125, 0.032135009765625, 0.004512786865234375, 0.0206146240234375, 0.042724609375, 0.039031982421875, -0.018402099609375, 0.002166748046875, -0.0019245147705078125, -0.0164642333984375, 0.006343841552734375, 0.0089111328125, 0.0009627342224121094, -0.00815582275390625, -0.003635406494140625, -0.055755615234375, -0.0279541015625, -0.016387939453125, -0.062469482421875, 0.037353515625, 0.005435943603515625, 0.006450653076171875, 0.04638671875, 0.0267791748046875, 0.005584716796875, -0.0191497802734375, 0.005889892578125, 0.00536346435546875, 0.0081939697265625, -0.01439666748046875, -0.043701171875, -0.040374755859375, 0.04168701171875, 0.046630859375, 0.0477294921875, -0.01190185546875, -0.0567626953125, 0.0012912750244140625, 0.1046142578125, -0.044647216796875, -0.049652099609375, -0.033111572265625, 0.029754638671875, -0.0185699462890625, -0.042236328125, 0.0233306884765625, -0.01519775390625, -0.1279296875, 0.0155029296875, -0.00820159912109375, -0.045562744140625, -0.003360748291015625, 0.00904083251953125, -0.0843505859375, -0.043609619140625, 0.0180511474609375, -0.0325927734375, 0.0003654956817626953, 0.01763916015625, -0.0031108856201171875, -0.01090240478515625, 0.018585205078125, -0.03759765625, -0.039093017578125, -0.020355224609375, 0.0007605552673339844, 0.041473388671875, 0.018829345703125, 0.003814697265625, 0.0009069442749023438, 0.05645751953125, -0.00217437744140625, -0.01068115234375, 0.006542205810546875, 0.004070281982421875, -0.006256103515625, 0.0209503173828125, 0.0006732940673828125, -0.01812744140625, 0.01000213623046875, -0.01233673095703125, -0.0277557373046875, 0.005828857421875, -0.0655517578125, -0.052276611328125, -0.0501708984375, -0.021636962890625, -0.07818603515625, -0.033447265625, 0.02410888671875, -0.0130462646484375, -0.01528167724609375, 0.042144775390625, -0.02166748046875, -0.056060791015625, 0.0531005859375, 0.0282135009765625, -0.021453857421875, 0.00018703937530517578, 0.04510498046875, 0.02886962890625, -0.051177978515625, -0.03656005859375, -0.023193359375, 0.021575927734375, -0.025360107421875, 0.08074951171875, 0.046112060546875, -0.0047454833984375, 0.09222412109375, -0.00501251220703125, 0.030487060546875, -0.0272979736328125, 0.04266357421875, 0.0030918121337890625, -0.0087432861328125, 0.025146484375, 0.00859832763671875, -0.007091522216796875, -0.00751495361328125, -0.002590179443359375, -0.0160064697265625, 0.0172119140625, 0.00753021240234375, 0.0290679931640625, -0.004291534423828125, -0.024749755859375, 0.002178192138671875, -0.00832366943359375, 0.01006317138671875, 0.07952880859375, 0.061309814453125, -0.01253509521484375, 0.0430908203125, 0.05419921875, 0.01171875, 0.022003173828125, 0.0191802978515625, 0.0279998779296875, 0.035980224609375, 0.0198211669921875, 0.022003173828125, -0.0184783935546875, 0.0053558349609375, 0.0297088623046875, 0.0302581787109375, -0.013092041015625, -0.0292205810546875, 0.0207061767578125, 0.0099029541015625, -0.0253753662109375, -0.0009121894836425781, 0.0046539306640625, -0.01453399658203125, 0.0191650390625, 0.01192474365234375, -0.00606536865234375, -0.006031036376953125, -0.0045623779296875, -0.0038967132568359375, 0.021942138671875, -0.0157928466796875, 0.0040740966796875, 0.05926513671875, 0.01023101806640625, 0.02508544921875, -0.034027099609375, 0.04443359375, 0.006282806396484375, 0.05560302734375, 0.01409912109375, -0.0160675048828125, 0.01183319091796875, 0.0031566619873046875, -0.00038051605224609375, -0.018768310546875, -0.016632080078125, 0.020355224609375, 0.049224853515625, 0.0011043548583984375, 0.0067291259765625, -0.00876617431640625, -0.0224151611328125, -0.021728515625, -0.00763702392578125, 0.016815185546875, 0.0151519775390625, -0.008697509765625, 0.0026645660400390625, 0.02044677734375, 0.029815673828125, 0.007549285888671875, -0.011993408203125, 0.01465606689453125, -0.003856658935546875, 0.01959228515625, -0.047119140625, 0.0250701904296875, 0.02618408203125, -0.041046142578125, -0.010223388671875, -0.023101806640625, -0.0404052734375, -0.04364013671875, 0.02862548828125, -0.0186920166015625, 0.027801513671875, -0.037994384765625, 0.08837890625, -0.046844482421875, -0.0287017822265625, -0.0894775390625, 0.021148681640625, 0.04852294921875, 0.06829833984375, -0.024566650390625, 0.0280914306640625, -0.05841064453125, -0.00907135009765625, -0.05517578125, -0.06512451171875, -0.029022216796875, -0.020050048828125, 0.0244140625, -0.00604248046875, -0.005184173583984375, -0.03045654296875, -0.011505126953125, 0.0148162841796875, 0.0258331298828125, 0.00689697265625, -0.031005859375, 0.0638427734375, 0.02923583984375, 0.0123291015625, 0.01446533203125, 0.043487548828125, -0.00998687744140625, -0.006633758544921875, 0.01392364501953125, -0.00710296630859375, -0.03265380859375, 0.004970550537109375, -0.024871826171875, -0.01739501953125, 0.023681640625, -0.015350341796875, 0.025238037109375, 0.01087188720703125, 0.01537322998046875, -0.010040283203125, -0.0095062255859375, -0.0240020751953125, -0.0185699462890625, 0.03485107421875, 0.004486083984375, 0.005199432373046875, 0.01467132568359375, -0.026580810546875, -0.0165863037109375, 0.033599853515625, -0.02557373046875, 0.0021038055419921875, -0.007335662841796875, -0.00753021240234375, 0.005550384521484375, -0.0100860595703125, 0.02301025390625, 0.0236358642578125, 0.0096893310546875, 0.0082550048828125, -0.0034008026123046875, 0.0211029052734375, 0.0218658447265625, 0.07598876953125, -0.01132965087890625, -0.00754547119140625, 0.034942626953125, -0.026763916015625, 0.003330230712890625, 0.0192108154296875, 0.050994873046875, -0.0267791748046875, 0.0098114013671875, 0.01194000244140625, -0.040863037109375, -0.0162353515625, -0.00872802734375, -0.0127410888671875, -0.0293426513671875, 0.0753173828125, -0.01605224609375, -0.021728515625, 0.0242462158203125, -0.030548095703125, -0.0002834796905517578, -0.007293701171875, 0.04046630859375, -0.00759124755859375, -0.0196685791015625, -0.0179901123046875, 0.0049896240234375, 0.0050811767578125, -0.051513671875, -0.0176849365234375, 0.0030117034912109375, -0.033843994140625, -0.06451416015625, -0.0038433074951171875, -0.004222869873046875, 0.01000213623046875, 0.0258026123046875, 0.0117645263671875, -0.030914306640625, 0.046173095703125, -0.00420379638671875, 0.00919342041015625, 0.009613037109375, -0.037689208984375, -0.0540771484375, 0.01263427734375, 0.01224517822265625, -0.037872314453125, 0.005138397216796875, 0.0167083740234375, -0.053558349609375, -0.0218048095703125, -0.0174102783203125, -0.0758056640625, 0.09271240234375, -0.06243896484375, -0.00021827220916748047, 0.004970550537109375, 0.00046563148498535156, -0.020538330078125, 0.0228424072265625, 0.01824951171875, -0.052703857421875, -0.0200653076171875, 0.0141143798828125, -0.0235595703125, -0.0086822509765625, -0.006839752197265625, -0.06072998046875, 0.08758544921875, -0.0287933349609375, 0.0126495361328125, 0.036285400390625, 0.0285186767578125, -0.06353759765625, -0.03179931640625, -0.0151214599609375, 0.0196075439453125, 0.00933837890625, -0.01439666748046875, -0.00870513916015625, -0.007770538330078125, -0.01108551025390625, 0.01026153564453125, -0.04766845703125, -0.023773193359375, -0.0416259765625, -0.0095977783203125, 0.0294189453125, 0.052947998046875, 0.0653076171875, 0.0258026123046875, -0.003631591796875, 0.044921875, 0.0352783203125, -0.07598876953125, -0.00453948974609375, 0.0004379749298095703, 0.0193328857421875, 0.03594970703125, 0.0096893310546875, 0.008270263671875, -0.010589599609375, 0.038055419921875, -0.0963134765625, 0.004238128662109375, 0.066162109375, -0.0280609130859375, -0.0106048583984375, 0.07513427734375, 0.0267486572265625, -0.034393310546875, -0.04571533203125, -0.03802490234375, 0.043853759765625, -0.0277557373046875, 0.0172576904296875, 0.0195159912109375, 0.01282501220703125, 0.02099609375, 0.019378662109375, 0.00960540771484375, 0.033935546875, -0.00003784894943237305, 0.010498046875, 0.01910400390625, -0.012451171875, -0.04998779296875, 0.01113128662109375, 0.032440185546875, 0.023162841796875, -0.0399169921875, -0.032989501953125, -0.0011339187622070312, 0.01117706298828125, 0.037200927734375, -0.0144805908203125, 0.033782958984375, -0.043731689453125, -0.01021575927734375, -0.012298583984375, -0.03192138671875, -0.00820159912109375, 0.0005297660827636719, -0.0016040802001953125, -0.00131988525390625, 0.04168701171875, -0.033905029296875, -0.01541900634765625, -0.01003265380859375, 0.035980224609375, 0.04278564453125, -0.00516510009765625, 0.05010986328125, -0.0243072509765625, -0.01201629638671875, 0.00841522216796875, 0.0179290771484375, -0.007282257080078125, -0.00481414794921875, -0.0140838623046875, -0.0142059326171875, -0.0135498046875, 0.0192718505859375, 0.03399658203125, 0.01490020751953125, 0.0478515625, 0.02825927734375, -0.024993896484375, -0.00685882568359375, 0.00466156005859375, -0.035003662109375, -0.002521514892578125, -0.038238525390625, 0.007030487060546875, 0.0169525146484375, -0.006011962890625, 0.0125579833984375, -0.03192138671875, 0.05743408203125, -0.00835418701171875, 0.0265350341796875, -0.0098114013671875, -0.00797271728515625, -0.009613037109375, 0.00562286376953125, 0.00498199462890625, 0.01035308837890625, -0.0909423828125, -0.0225982666015625, 0.01348876953125, -0.048980712890625, 0.035919189453125, 0.04376220703125, -0.04583740234375, 0.03692626953125, 0.01953125, 0.002582550048828125, -0.0015058517456054688, 0.01074981689453125, 0.00875091552734375, 0.0609130859375, 0.036041259765625, 0.033935546875, -0.027191162109375, -0.003635406494140625, -0.0258026123046875, 0.0213623046875, 0.025054931640625, 0.007633209228515625, 0.0182037353515625, 0.055908203125, 0.0019054412841796875, -0.031402587890625, 0.00574493408203125, -0.00891876220703125, 0.018341064453125, -0.0275115966796875, -0.01297760009765625, 0.0008764266967773438, 0.033599853515625, 0.03814697265625, 0.015228271484375, -0.052581787109375, -0.01544189453125, 0.0019102096557617188, 0.00965118408203125, 0.00457000732421875, 0.0305328369140625, -0.021697998046875, -0.050537109375, -0.0318603515625, 0.0273590087890625, 0.0213470458984375, 0.04010009765625, -0.01012420654296875, -0.0230865478515625, 0.0134429931640625, -0.009521484375, 0.020965576171875, 0.031524658203125, 0.00901031494140625, 0.029937744140625, -0.0223236083984375, 0.02325439453125, 0.007244110107421875, -0.026092529296875, 0.0352783203125, 0.00995635986328125, 0.003910064697265625, 0.00362396240234375, -0.0231170654296875, 0.02923583984375, 0.0548095703125, 0.048187255859375, 0.005645751953125, 0.0088653564453125, 0.05474853515625, -0.031646728515625, -0.003673553466796875, 0.0167388916015625, 0.007442474365234375, -0.048431396484375, -0.0147247314453125, -0.006572723388671875, -0.0187530517578125, 0.0197906494140625, 0.02325439453125, -0.0159454345703125, 0.02764892578125, 0.0104217529296875, -0.025360107421875, -0.0081024169921875, -0.0085296630859375, 0.038421630859375, -0.0244140625, 0.034027099609375, -0.01491546630859375, 0.028839111328125, -0.030731201171875, -0.06640625, -0.048004150390625, 0.0703125, -0.0654296875, -0.00019156932830810547, -0.005252838134765625, -0.017730712890625, 0.0134735107421875, -0.0220947265625, 0.022125244140625, 0.0138397216796875, 0.045928955078125, -0.00965118408203125, 0.03192138671875, 0.0241241455078125, -0.005680084228515625, -0.068603515625, -0.00704193115234375, -0.0308380126953125, 0.0158233642578125, 0.02691650390625, -0.03240966796875, -0.0052337646484375, -0.03472900390625, -0.053070068359375, 0.10662841796875, -0.00974273681640625, -0.006229400634765625, 0.01190185546875, -0.005413055419921875, -0.0171661376953125, -0.0027980804443359375, 0.0022945404052734375, -0.0170745849609375, 0.00043320655822753906, -0.0055999755859375, 0.005428314208984375, 0.06365966796875, -0.0114898681640625, 0.01617431640625, -0.051910400390625, 0.0037326812744140625, -0.03240966796875, 0.0447998046875, -0.0015535354614257812, 0.01007080078125, 0.003997802734375, 0.03643798828125, -0.00991058349609375, 0.00521087646484375, -0.0014410018920898438, -0.01438140869140625, -0.0100250244140625, -0.02685546875, -0.07958984375, -0.06427001953125, 0.08233642578125, 0.04400634765625, 0.036041259765625, 0.01194000244140625, -0.0020503997802734375, -0.006366729736328125, 0.01000213623046875, -0.016632080078125, 0.007457733154296875, -0.0567626953125, -0.0300140380859375, -0.0076904296875, -0.01374053955078125, 0.0246124267578125, -0.017242431640625, -0.0421142578125, -0.015899658203125, -0.05029296875, 0.00748443603515625, -0.0540771484375, 0.034698486328125, 0.020965576171875, -0.02130126953125, 0.022125244140625, -0.025299072265625, -0.0035572052001953125, 0.01099395751953125, -0.033966064453125, 0.01800537109375, -0.0291900634765625, -0.0214691162109375, 0.01013946533203125, 0.00212860107421875, 0.033477783203125, -0.009552001953125, -0.042449951171875, -0.0355224609375, -0.0024433135986328125, 0.016510009765625, -0.0117645263671875, -0.0027618408203125, -0.0282135009765625, -0.0110626220703125, 0.015655517578125, -0.0004019737243652344, 0.078369140625, -0.00867462158203125, 0.04443359375, 0.016357421875, -0.03436279296875, 0.047576904296875, -0.04986572265625, -0.006114959716796875, -0.0174713134765625, -0.025238037109375, -0.07012939453125, 0.01049041748046875, 0.018463134765625, -0.01136016845703125, 0.020050048828125 ]
f038a6a5b29e0b10a9dac42b3721b2c36988e414
Wordpress Stackexchange Q: Is it possible to integrate Wordpress *posts* and social media (Facebook, Google+, Twitter)? Is there a plugin available that will automatically post an excerpt of a blog post (perhaps up to the more tag) to specified social media groups/pages. So, for example, on posting an excerpt would be posted with a 'Read more' link to a user-defined Facebook group, G+ page and, possibly, twitter feed? If not, is there a method for automating this process? Or is copy>paste the only realistic option? (I know that Dsiqus provides the ability to link comments and social media but this functionality doesn't extend to posts, as I understand it.) A: Search for plugins: http://wordpress.org/extend/plugins/simple-twitter-connect/ and http://wordpress.org/extend/plugins/simple-facebook-connect/ and http://wordpress.org/extend/plugins/simple-google-connect/ All require applications be built at each service for different levels of interaction with a Wordpress site, including automatic excerpt posting (except for G+), tweeting and linking.
Q: Is it possible to integrate Wordpress *posts* and social media (Facebook, Google+, Twitter)? Is there a plugin available that will automatically post an excerpt of a blog post (perhaps up to the more tag) to specified social media groups/pages. So, for example, on posting an excerpt would be posted with a 'Read more' link to a user-defined Facebook group, G+ page and, possibly, twitter feed? If not, is there a method for automating this process? Or is copy>paste the only realistic option? (I know that Dsiqus provides the ability to link comments and social media but this functionality doesn't extend to posts, as I understand it.) A: Search for plugins: http://wordpress.org/extend/plugins/simple-twitter-connect/ and http://wordpress.org/extend/plugins/simple-facebook-connect/ and http://wordpress.org/extend/plugins/simple-google-connect/ All require applications be built at each service for different levels of interaction with a Wordpress site, including automatic excerpt posting (except for G+), tweeting and linking. A: Social is great for Facebook and Twitter integration.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:418713", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47810" }
[ 0.07647705078125, 0.020843505859375, 0.01464080810546875, -0.003894805908203125, 0.007434844970703125, -0.0310821533203125, 0.060516357421875, -0.054840087890625, -0.03802490234375, 0.01611328125, -0.056304931640625, 0.03692626953125, -0.0309600830078125, -0.00879669189453125, 0.0225067138671875, -0.049285888671875, 0.0181427001953125, -0.0105438232421875, 0.037109375, -0.00545501708984375, 0.01413726806640625, -0.013702392578125, 0.038299560546875, -0.053558349609375, 0.006496429443359375, 0.0218658447265625, 0.08795166015625, 0.002201080322265625, 0.0068511962890625, 0.00855255126953125, 0.0276031494140625, -0.0516357421875, 0.0170745849609375, 0.0654296875, -0.07244873046875, -0.033538818359375, -0.02142333984375, 0.035003662109375, -0.027587890625, 0.047119140625, -0.002529144287109375, 0.007442474365234375, 0.03271484375, 0.035003662109375, 0.0165252685546875, -0.048828125, 0.01070404052734375, -0.06915283203125, 0.031402587890625, -0.0131988525390625, -0.0006275177001953125, 0.00893402099609375, 0.01241302490234375, -0.0250701904296875, -0.012481689453125, 0.00653076171875, -0.0058441162109375, 0.01617431640625, 0.040283203125, -0.035064697265625, -0.0235748291015625, -0.0222930908203125, 0.0218505859375, 0.0057220458984375, -0.000179290771484375, -0.001628875732421875, -0.0182647705078125, 0.0266571044921875, -0.03753662109375, -0.0123138427734375, 0.01055908203125, -0.043792724609375, -0.0006928443908691406, -0.0090789794921875, 0.00942230224609375, 0.004634857177734375, -0.01418304443359375, -0.009124755859375, 0.0186767578125, 0.0302886962890625, -0.0300140380859375, -0.004405975341796875, -0.00435638427734375, -0.057373046875, -0.004848480224609375, -0.0274505615234375, -0.0229949951171875, 0.017059326171875, -0.0338134765625, -0.0259857177734375, -0.03216552734375, -0.028411865234375, -0.04071044921875, 0.0076446533203125, -0.01312255859375, -0.0277252197265625, 0.0108184814453125, 0.0298004150390625, 0.01020050048828125, 0.034576416015625, 0.007045745849609375, -0.043121337890625, 0.0601806640625, -0.03680419921875, 0.006435394287109375, 0.056488037109375, -0.0126953125, -0.005474090576171875, 0.025115966796875, 0.0206298828125, 0.0069732666015625, -0.0202789306640625, 0.01419830322265625, 0.00276947021484375, -0.0205230712890625, -0.002315521240234375, -0.0229644775390625, 0.00788116455078125, -0.008575439453125, 0.00982666015625, -0.037841796875, 0.0106658935546875, -0.0592041015625, 0.046875, 0.008697509765625, 0.0207366943359375, 0.04876708984375, 0.01488494873046875, 0.0302276611328125, 0.0058441162109375, 0.00167083740234375, 0.032470703125, 0.04083251953125, -0.01007080078125, -0.0290679931640625, -0.01436614990234375, 0.00623321533203125, 0.0140838623046875, -0.00792694091796875, 0.0028667449951171875, -0.0189666748046875, -0.048187255859375, -0.007648468017578125, -0.00630950927734375, 0.023773193359375, 0.0178680419921875, 0.035552978515625, 0.0165252685546875, -0.0002357959747314453, 0.009185791015625, -0.01165008544921875, 0.00705718994140625, 0.032958984375, -0.0418701171875, 0.0216217041015625, -0.0899658203125, 0.00901031494140625, -0.045257568359375, 0.0567626953125, -0.0341796875, 0.0262908935546875, -0.0149688720703125, 0.023590087890625, 0.01387786865234375, 0.003101348876953125, 0.001026153564453125, -0.055633544921875, 0.001125335693359375, 0.02557373046875, -0.0041656494140625, 0.0105133056640625, -0.00193023681640625, 0.064697265625, -0.037567138671875, -0.039947509765625, -0.00826263427734375, 0.026214599609375, -0.003017425537109375, 0.045318603515625, 0.02642822265625, -0.004108428955078125, 0.002819061279296875, 0.11224365234375, -0.0208892822265625, -0.04473876953125, 0.023223876953125, 0.0194854736328125, 0.048004150390625, 0.0012388229370117188, 0.0214691162109375, 0.046661376953125, 0.03607177734375, -0.0089263916015625, -0.006786346435546875, -0.0009374618530273438, -0.03717041015625, 0.0263824462890625, 0.0048828125, 0.004711151123046875, -0.0005207061767578125, -0.0116119384765625, 0.0202484130859375, -0.0298309326171875, -0.012298583984375, -0.078857421875, -0.005584716796875, -0.029815673828125, 0.049896240234375, -0.0107879638671875, 0.00577545166015625, 0.0089569091796875, -0.01035308837890625, -0.004779815673828125, -0.046905517578125, -0.035858154296875, 0.0037937164306640625, -0.04498291015625, 0.0298614501953125, -0.005954742431640625, 0.0238037109375, -0.013824462890625, -0.00917816162109375, 0.0127410888671875, 0.0013246536254882812, 0.0350341796875, -0.049896240234375, 0.0017242431640625, -0.043792724609375, 0.01259613037109375, 0.0028705596923828125, 0.0015649795532226562, 0.02569580078125, -0.0156707763671875, -0.0260162353515625, -0.035064697265625, 0.00968170166015625, 0.045562744140625, 0.0155181884765625, 0.0058135986328125, 0.02392578125, 0.0311737060546875, 0.0211181640625, -0.00550079345703125, -0.011077880859375, 0.033203125, -0.0379638671875, 0.0214080810546875, -0.01067352294921875, 0.024169921875, 0.07666015625, -0.0057220458984375, 0.0009183883666992188, -0.00792694091796875, -0.052642822265625, 0.0278472900390625, 0.0301971435546875, 0.01152801513671875, -0.0212860107421875, -0.027984619140625, 0.0008592605590820312, 0.01113128662109375, -0.065185546875, -0.061920166015625, -0.004375457763671875, 0.0517578125, -0.0253448486328125, 0.045135498046875, 0.0309906005859375, -0.0264739990234375, -0.01335906982421875, 0.0211029052734375, 0.02850341796875, 0.0182037353515625, 0.02606201171875, 0.016387939453125, -0.0135040283203125, 0.0093994140625, -0.0144195556640625, 0.0035247802734375, -0.002719879150390625, 0.0088043212890625, 0.037994384765625, 0.01456451416015625, -0.01141357421875, -0.015655517578125, -0.04083251953125, 0.0033626556396484375, 0.01084136962890625, 0.01226806640625, -0.0152130126953125, 0.0125732421875, 0.01194000244140625, -0.03369140625, 0.051239013671875, -0.0259246826171875, -0.027069091796875, 0.0504150390625, -0.08026123046875, 0.07025146484375, -0.051971435546875, 0.062347412109375, 0.06976318359375, -0.0244598388671875, 0.029815673828125, -0.01082611083984375, 0.00994110107421875, -0.049713134765625, 0.033721923828125, 0.00005441904067993164, -0.046630859375, 0.005096435546875, 0.038238525390625, 0.012359619140625, 0.03466796875, -0.005771636962890625, -0.0272064208984375, 0.01366424560546875, 0.023162841796875, -0.058074951171875, -0.06256103515625, 0.0645751953125, -0.0745849609375, -0.0174102783203125, -0.0099334716796875, -0.054290771484375, -0.0253143310546875, 0.036956787109375, -0.0196685791015625, -0.045989990234375, 0.0027523040771484375, -0.0290985107421875, -0.052215576171875, -0.041229248046875, -0.005741119384765625, -0.0015878677368164062, 0.003444671630859375, 0.00926971435546875, -0.00406646728515625, 0.00792694091796875, 0.0010499954223632812, 0.041015625, 0.00583648681640625, -0.0186614990234375, -0.0144805908203125, 0.03680419921875, 0.00019061565399169922, 0.0031528472900390625, 0.0183868408203125, 0.01055908203125, 0.052978515625, -0.07171630859375, -0.0283660888671875, -0.0212554931640625, -0.0027599334716796875, 0.01200103759765625, -0.018585205078125, -0.0038394927978515625, 0.053009033203125, 0.014190673828125, -0.01959228515625, 0.0197601318359375, -0.0172576904296875, -0.03765869140625, -0.0648193359375, -0.007495880126953125, 0.022796630859375, -0.051788330078125, 0.0095977783203125, 0.01348114013671875, 0.0169525146484375, 0.03839111328125, -0.005130767822265625, 0.00838470458984375, -0.01561737060546875, -0.029541015625, -0.0264129638671875, -0.032257080078125, -0.0333251953125, 0.049163818359375, -0.02484130859375, 0.0102081298828125, -0.03118896484375, 0.055908203125, -0.04180908203125, 0.00164031982421875, 0.002124786376953125, -0.03631591796875, 0.0174713134765625, -0.02020263671875, 0.0156402587890625, -0.035125732421875, -0.0023365020751953125, -0.036712646484375, -0.004444122314453125, 0.0117034912109375, 0.01181793212890625, -0.0211639404296875, -0.034637451171875, -0.050537109375, -0.01413726806640625, 0.03070068359375, -0.03326416015625, -0.029022216796875, -0.0005578994750976562, -0.0165252685546875, 0.0175933837890625, 0.0288848876953125, 0.00466156005859375, 0.0280303955078125, 0.0191192626953125, -0.0224761962890625, 0.0183868408203125, -0.0154266357421875, -0.01067352294921875, -0.0133819580078125, 0.01016998291015625, -0.042694091796875, 0.01473236083984375, -0.025543212890625, 0.003841400146484375, 0.030303955078125, -0.029754638671875, 0.0245513916015625, 0.034637451171875, -0.00518798828125, -0.001445770263671875, 0.01010894775390625, 0.008392333984375, -0.02239990234375, 0.03167724609375, 0.015350341796875, -0.017486572265625, -0.0227203369140625, -0.0220184326171875, -0.01552581787109375, -0.01641845703125, 0.005512237548828125, -0.0147247314453125, 0.033447265625, -0.0089111328125, -0.049041748046875, -0.01528167724609375, -0.0119171142578125, 0.028717041015625, -0.021331787109375, -0.0034999847412109375, -0.02752685546875, -0.05938720703125, 0.022857666015625, 0.0093231201171875, -0.015960693359375, 0.01152801513671875, 0.053802490234375, 0.0205230712890625, -0.01922607421875, -0.037139892578125, 0.032379150390625, 0.04583740234375, 0.0108642578125, 0.0224151611328125, 0.03668212890625, -0.0225372314453125, -0.00955963134765625, 0.03118896484375, 0.01506805419921875, -0.031585693359375, 0.034637451171875, 0.00539398193359375, 0.0085906982421875, 0.0162811279296875, 0.00742340087890625, 0.00949859619140625, 0.0117950439453125, -0.0097503662109375, -0.0379638671875, -0.007762908935546875, 0.047576904296875, -0.0306549072265625, 0.07366943359375, -0.01983642578125, 0.0034809112548828125, 0.006565093994140625, -0.01038360595703125, -0.0004603862762451172, 0.005161285400390625, 0.00504302978515625, -0.0304718017578125, -0.005279541015625, -0.022369384765625, 0.0004630088806152344, -0.03070068359375, 0.019775390625, -0.0016088485717773438, 0.0212554931640625, -0.016143798828125, -0.012725830078125, -0.005214691162109375, 0.046722412109375, 0.0082550048828125, -0.05841064453125, 0.028045654296875, 0.00215911865234375, 0.0095977783203125, 0.02569580078125, 0.0182037353515625, 0.0087738037109375, 0.03192138671875, 0.01025390625, 0.010284423828125, 0.036285400390625, 0.016265869140625, -0.01263427734375, -0.00949859619140625, -0.034820556640625, 0.0214996337890625, -0.00286865234375, 0.059173583984375, -0.01995849609375, 0.0406494140625, -0.0173492431640625, 0.040191650390625, 0.0478515625, 0.0010080337524414062, 0.028533935546875, -0.0025615692138671875, -0.0278167724609375, -0.02105712890625, -0.0305023193359375, -0.0210418701171875, 0.0013103485107421875, 0.043609619140625, 0.01715087890625, 0.0007987022399902344, -0.017242431640625, -0.0022430419921875, -0.018890380859375, -0.04351806640625, 0.018890380859375, 0.0618896484375, -0.0065155029296875, 0.0006356239318847656, 0.00772857666015625, -0.0252532958984375, 0.045379638671875, 0.026214599609375, -0.046234130859375, 0.050201416015625, 0.00679779052734375, -0.0282440185546875, -0.0173187255859375, -0.00736236572265625, -0.0030078887939453125, 0.031402587890625, 0.0042724609375, 0.015655517578125, -0.04132080078125, -0.01047515869140625, -0.0309600830078125, 0.00044989585876464844, 0.0714111328125, 0.005962371826171875, -0.0110931396484375, -0.035614013671875, 0.0179901123046875, -0.0174102783203125, -0.0118255615234375, 0.08233642578125, 0.0157318115234375, -0.04559326171875, -0.01052093505859375, -0.04974365234375, -0.039398193359375, -0.027496337890625, 0.0027618408203125, -0.0623779296875, 0.0163726806640625, 0.0137481689453125, 0.0307464599609375, -0.0068359375, -0.0284576416015625, -0.02880859375, 0.029998779296875, 0.029052734375, 0.0711669921875, 0.008087158203125, 0.013916015625, 0.0201568603515625, 0.08441162109375, 0.0382080078125, 0.0081787109375, -0.0239410400390625, -0.049041748046875, -0.0214385986328125, -0.094970703125, -0.00954437255859375, 0.010009765625, -0.00557708740234375, 0.1077880859375, 0.04632568359375, 0.0218658447265625, -0.008270263671875, -0.0009188652038574219, 0.0237274169921875, -0.006683349609375, -0.016387939453125, 0.0014972686767578125, -0.05303955078125, 0.0401611328125, 0.0010166168212890625, 0.0242919921875, -0.0220794677734375, 0.00756072998046875, -0.01230621337890625, -0.0003898143768310547, -0.00923919677734375, -0.00574493408203125, -0.033721923828125, 0.06317138671875, 0.077392578125, 0.017822265625, 0.04949951171875, 0.0096588134765625, 0.00020122528076171875, 0.0013132095336914062, 0.05718994140625, -0.02569580078125, -0.03350830078125, -0.029083251953125, -0.029266357421875, -0.027496337890625, -0.0843505859375, -0.01422119140625, 0.032562255859375, 0.032928466796875, 0.04486083984375, -0.051513671875, 0.0240936279296875, -0.00582122802734375, -0.049957275390625, 0.044586181640625, 0.007724761962890625, 0.027587890625, 0.01285552978515625, 0.046295166015625, -0.0018177032470703125, 0.004024505615234375, 0.037841796875, -0.037384033203125, -0.01474761962890625, -0.025177001953125, 0.04058837890625, 0.0126190185546875, -0.0237579345703125, -0.0017986297607421875, 0.00711822509765625, -0.0168304443359375, -0.039276123046875, -0.0217742919921875, 0.00640869140625, -0.024322509765625, -0.052886962890625, 0.0048065185546875, -0.0260162353515625, 0.0299072265625, 0.0087738037109375, 0.01363372802734375, 0.003765106201171875, 0.0178375244140625, -0.00028324127197265625, -0.00966644287109375, -0.0049591064453125, -0.0268402099609375, -0.041534423828125, -0.025177001953125, 0.005062103271484375, 0.045562744140625, 0.04296875, 0.0228729248046875, 0.0160980224609375, -0.050262451171875, -0.007144927978515625, 0.0038394927978515625, 0.077880859375, -0.006778717041015625, -0.028900146484375, 0.0287933349609375, -0.0243682861328125, -0.0099945068359375, -0.01110076904296875, 0.004520416259765625, -0.067626953125, -0.0310821533203125, 0.002254486083984375, -0.0350341796875, -0.035064697265625, -0.0164794921875, -0.045684814453125, 0.096435546875, 0.04388427734375, -0.0067138671875, -0.0106964111328125, 0.06005859375, -0.035919189453125, 0.03167724609375, -0.035186767578125, 0.033111572265625, 0.0115203857421875, 0.0195159912109375, -0.0295562744140625, -0.00782012939453125, -0.00304412841796875, 0.02740478515625, 0.05364990234375, 0.020843505859375, -0.062255859375, -0.04119873046875, -0.015716552734375, 0.01250457763671875, -0.018768310546875, 0.051361083984375, 0.037628173828125, 0.040924072265625, -0.01296234130859375, -0.04412841796875, 0.0170135498046875, -0.058380126953125, 0.01128387451171875, 0.060638427734375, -0.005832672119140625, -0.003826141357421875, -0.01038360595703125, 0.00307464599609375, 0.035003662109375, -0.0233154296875, -0.0212249755859375, -0.01531982421875, 0.027862548828125, 0.033050537109375, 0.019683837890625, -0.0255279541015625, -0.01398468017578125, -0.017852783203125, 0.034637451171875, -0.0299530029296875, 0.007293701171875, 0.016326904296875, 0.016571044921875, 0.0096588134765625, -0.01134490966796875, 0.0138397216796875, 0.021270751953125, -0.040985107421875, 0.039581298828125, -0.03045654296875, 0.0267333984375, -0.1026611328125, -0.05218505859375, 0.03143310546875, 0.0755615234375, -0.02825927734375, -0.05072021484375, 0.0171966552734375, 0.0089569091796875, 0.04193115234375, -0.0106658935546875, 0.025634765625, -0.065673828125, -0.01352691650390625, 0.01068115234375, 0.012298583984375, 0.0283966064453125, 0.0212860107421875, 0.0227203369140625, 0.025543212890625, -0.04608154296875, 0.01666259765625, -0.00237274169921875, 0.01276397705078125, 0.01050567626953125, -0.007282257080078125, -0.0275115966796875, 0.0511474609375, 0.00397491455078125, 0.0174713134765625, -0.035614013671875, 0.0301055908203125, 0.05096435546875, 0.01422119140625, -0.0128021240234375, 0.0081787109375, 0.04974365234375, 0.008331298828125, -0.0211639404296875, 0.033416748046875, 0.0684814453125, 0.05126953125, -0.055572509765625, -0.0269012451171875, 0.0273590087890625, -0.0263824462890625, -0.002582550048828125, -0.033203125, -0.03338623046875, -0.017303466796875, -0.026123046875, 0.0081939697265625, -0.00316619873046875, 0.0011043548583984375, 0.0011987686157226562, 0.031494140625, -0.0006999969482421875, 0.0074920654296875, 0.019195556640625, 0.01239013671875, 0.00609588623046875, 0.021240234375, -0.06146240234375, 0.004169464111328125, -0.01508331298828125, -0.0609130859375, 0.02142333984375, 0.038421630859375, -0.03753662109375, 0.023040771484375, 0.016876220703125, 0.01971435546875, 0.023773193359375, -0.0394287109375, 0.008819580078125, 0.005756378173828125, 0.0208892822265625, 0.0007677078247070312, -0.038177490234375, -0.00634002685546875, -0.02459716796875, 0.0372314453125, 0.0117340087890625, 0.07135009765625, -0.02490234375, 0.0255584716796875, 0.021942138671875, -0.01416778564453125, 0.0092010498046875, 0.00933837890625, -0.034393310546875, -0.00411224365234375, 0.01470947265625, -0.0167999267578125, -0.0189361572265625, 0.012664794921875, 0.03204345703125, -0.051666259765625, 0.02325439453125, -0.00811004638671875, 0.0004658699035644531, -0.050323486328125, 0.0266265869140625, -0.031494140625, -0.043914794921875, -0.05572509765625, 0.0054931640625, 0.00908660888671875, -0.00463104248046875, -0.0318603515625, 0.0345458984375, 0.0360107421875, -0.009521484375, 0.013153076171875, -0.014984130859375, 0.0191192626953125, 0.0126800537109375, 0.0142974853515625, -0.00684356689453125, 0.0234832763671875, -0.0224609375, 0.0156402587890625, 0.0030059814453125, 0.0176849365234375, 0.0222930908203125, -0.0955810546875, -0.0134735107421875, 0.06591796875, 0.0487060546875, -0.027435302734375, 0.0240631103515625, 0.035400390625, -0.027099609375, 0.0340576171875, -0.006404876708984375, -0.013916015625, -0.041595458984375, -0.0234527587890625, 0.005825042724609375, -0.06915283203125, -0.0362548828125, -0.07781982421875, -0.0003342628479003906, 0.0007433891296386719, 0.005649566650390625, -0.0670166015625, 0.0287322998046875, 0.0004563331604003906, 0.05133056640625, -0.033843994140625, -0.033935546875, 0.00872039794921875, 0.0394287109375, -0.02886962890625, -0.007610321044921875, -0.0239410400390625, -0.0188446044921875, -0.03759765625, 0.053955078125, 0.07861328125, -0.057830810546875, -0.06585693359375, 0.035980224609375, 0.06695556640625, 0.0750732421875, -0.0012531280517578125, -0.0006961822509765625, 0.020904541015625, 0.007122039794921875, -0.0292205810546875, -0.069091796875, 0.00238037109375, -0.03314208984375, 0.00443267822265625, -0.01666259765625, -0.0016279220581054688, 0.0004949569702148438, -0.044769287109375, -0.10272216796875, 0.028076171875, -0.0206756591796875, -0.04962158203125, -0.053863525390625, -0.0083770751953125, 0.022186279296875, -0.050018310546875, -0.023651123046875, -0.0142974853515625, -0.0626220703125, 0.0199737548828125, -0.001316070556640625, 0.05426025390625, -0.020416259765625, 0.0003974437713623047, -0.022430419921875, 0.019317626953125, 0.0281829833984375, -0.009857177734375, 0.04058837890625, -0.02618408203125, 0.00403594970703125, 0.02752685546875, -0.07281494140625, -0.042449951171875, -0.041748046875, 0.011627197265625, 0.0128173828125, -0.03759765625, -0.0047760009765625, -0.0092926025390625, -0.00013399124145507812, 0.017364501953125, -0.0017719268798828125, -0.0278472900390625, -0.00554656982421875, -0.0264892578125, -0.0150146484375, -0.0134124755859375, 0.00605010986328125, -0.0291900634765625, 0.0163116455078125, -0.0237884521484375, 0.04241943359375, 0.0179290771484375, -0.03570556640625, 0.0173187255859375, -0.042724609375, 0.0009899139404296875, 0.005767822265625, -0.0299835205078125, 0.032379150390625, 0.0657958984375, -0.03619384765625, 0.0224456787109375, -0.0007500648498535156, -0.015380859375, 0.040618896484375, -0.01551055908203125, 0.006145477294921875, -0.0224456787109375, -0.0167388916015625, 0.00507354736328125, 0.01222991943359375, 0.018829345703125, 0.00012230873107910156, -0.032440185546875, 0.005954742431640625, 0.01291656494140625, -0.0167236328125, 0.011688232421875, -0.006069183349609375, 0.036102294921875, -0.0096435546875, 0.06207275390625, 0.0094146728515625, -0.0255584716796875, -0.024566650390625, 0.031707763671875, -0.0191802978515625, -0.026275634765625, 0.00475311279296875, -0.03424072265625, -0.0047149658203125, 0.03338623046875, -0.006816864013671875, -0.03759765625, 0.0028553009033203125, 0.023895263671875, 0.02264404296875, 0.005035400390625 ]
4ed042da6f5c5da4c6d81a950a11646efacdb3dd
Wordpress Stackexchange Q: Add a new post status in the post progression I run a site with about 30 authors and 3 editors. Authors submit posts for review, and editors schedule or publish them. It would be useful to have another post status of "Editing" between Pending Review and Scheduled/Published. I realize there's a warning when someone else is editing a post, and that's probably significant enough, but I'd like to explore adding a new status level. So, current post progression: Draft --> Pending Review --> Scheduled/Published Desired post progression: Draft --> Pending Review --> Under Review --> Scheduled/Published Thoughts? A: I recommend you install the Editflow plugin, it lets you add arbitrary post statuses so that you can customise your workflow as you wish http://editflow.org/
Q: Add a new post status in the post progression I run a site with about 30 authors and 3 editors. Authors submit posts for review, and editors schedule or publish them. It would be useful to have another post status of "Editing" between Pending Review and Scheduled/Published. I realize there's a warning when someone else is editing a post, and that's probably significant enough, but I'd like to explore adding a new status level. So, current post progression: Draft --> Pending Review --> Scheduled/Published Desired post progression: Draft --> Pending Review --> Under Review --> Scheduled/Published Thoughts? A: I recommend you install the Editflow plugin, it lets you add arbitrary post statuses so that you can customise your workflow as you wish http://editflow.org/
wordpress
{ "language": "en", "length": 124, "provenance": "stackexchange_00019.jsonl.gz:418722", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47849" }
[ 0.04937744140625, 0.005283355712890625, -0.0252838134765625, -0.00048732757568359375, 0.01168060302734375, -0.035858154296875, 0.01318359375, -0.0521240234375, 0.0110626220703125, 0.0111846923828125, -0.004913330078125, 0.0225372314453125, -0.032928466796875, -0.0296630859375, -0.00238037109375, -0.00518035888671875, 0.0399169921875, -0.005001068115234375, 0.0457763671875, 0.003406524658203125, -0.01117706298828125, 0.014312744140625, 0.057464599609375, 0.002445220947265625, -0.014923095703125, 0.104736328125, 0.0260009765625, -0.040771484375, -0.0101776123046875, -0.0043792724609375, 0.00850677490234375, -0.0278167724609375, 0.024627685546875, -0.015411376953125, -0.00023925304412841797, 0.005794525146484375, 0.026947021484375, -0.0284576416015625, -0.0230560302734375, 0.035797119140625, 0.018768310546875, -0.007350921630859375, 0.01457977294921875, -0.020599365234375, -0.012725830078125, -0.023651123046875, 0.034454345703125, -0.0130462646484375, 0.03546142578125, 0.018829345703125, 0.019989013671875, 0.019500732421875, 0.01200103759765625, 0.00244140625, -0.00818634033203125, 0.004253387451171875, -0.0179901123046875, 0.046051025390625, 0.044952392578125, -0.0033416748046875, -0.039581298828125, -0.0177459716796875, 0.0005183219909667969, -0.040618896484375, -0.00734710693359375, 0.0093231201171875, 0.004787445068359375, 0.0030612945556640625, -0.0257110595703125, -0.024444580078125, -0.0025730133056640625, -0.033843994140625, 0.00506591796875, -0.01873779296875, -0.0131988525390625, -0.039215087890625, 0.0135345458984375, -0.052001953125, 0.00699615478515625, 0.0136871337890625, -0.01186370849609375, 0.003459930419921875, -0.01593017578125, -0.05841064453125, 0.037139892578125, -0.016571044921875, -0.0162506103515625, 0.0008950233459472656, -0.024688720703125, -0.00033211708068847656, -0.017913818359375, -0.0430908203125, -0.0350341796875, 0.05560302734375, 0.006343841552734375, -0.00659942626953125, 0.0341796875, 0.04888916015625, 0.0033111572265625, 0.021484375, -0.01076507568359375, -0.050872802734375, 0.049224853515625, -0.045166015625, -0.004970550537109375, 0.0104522705078125, 0.0173492431640625, 0.01543426513671875, 0.0384521484375, 0.024688720703125, -0.021728515625, 0.060638427734375, 0.012969970703125, -0.004970550537109375, -0.02606201171875, -0.037933349609375, -0.026214599609375, 0.0110321044921875, 0.0033416748046875, -0.039886474609375, 0.0090484619140625, 0.04315185546875, -0.04461669921875, -0.0091552734375, -0.0061492919921875, -0.0107879638671875, 0.007625579833984375, -0.0194854736328125, -0.001956939697265625, -0.0003135204315185547, -0.033905029296875, 0.032958984375, 0.05621337890625, 0.0132904052734375, -0.00984954833984375, 0.0002340078353881836, -0.01407623291015625, -0.032257080078125, -0.0457763671875, 0.032440185546875, -0.02655029296875, -0.0047607421875, 0.028594970703125, -0.0303802490234375, -0.026641845703125, 0.0462646484375, -0.004077911376953125, -0.004749298095703125, 0.01145172119140625, -0.06298828125, -0.0017242431640625, -0.050079345703125, 0.038116455078125, -0.01180267333984375, -0.0283660888671875, -0.06036376953125, -0.0340576171875, -0.03350830078125, 0.030853271484375, -0.0250396728515625, 0.0242767333984375, 0.009033203125, 0.030975341796875, -0.029388427734375, -0.04156494140625, -0.0176544189453125, -0.06396484375, -0.0129241943359375, 0.0237579345703125, -0.047882080078125, 0.028228759765625, 0.018463134765625, 0.04595947265625, -0.004241943359375, 0.00136566162109375, -0.004825592041015625, 0.007289886474609375, -0.0276641845703125, 0.0180511474609375, 0.04644775390625, 0.0029468536376953125, -0.0147857666015625, 0.01360321044921875, 0.00910186767578125, -0.0301666259765625, 0.00420379638671875, 0.0002372264862060547, 0.0035610198974609375, 0.0171966552734375, 0.012359619140625, 0.02471923828125, 0.01338958740234375, -0.025665283203125, 0.0140228271484375, -0.007259368896484375, -0.045745849609375, 0.0230865478515625, -0.019775390625, 0.00514984130859375, 0.0164794921875, 0.005786895751953125, 0.030303955078125, -0.02789306640625, 0.007320404052734375, -0.03289794921875, -0.0065765380859375, -0.01558685302734375, 0.038421630859375, 0.0338134765625, -0.01210784912109375, -0.00557708740234375, -0.020355224609375, -0.0004584789276123047, -0.047882080078125, -0.064697265625, 0.020172119140625, -0.0207061767578125, -0.037109375, -0.0027313232421875, -0.024993896484375, 0.01537322998046875, 0.039093017578125, -0.0165557861328125, 0.00907135009765625, 0.044525146484375, -0.0389404296875, 0.003032684326171875, -0.035858154296875, 0.0316162109375, -0.00034809112548828125, -0.0224761962890625, 0.0159759521484375, 0.022125244140625, 0.01348876953125, 0.0015058517456054688, -0.0023021697998046875, -0.005748748779296875, -0.10845947265625, 0.021026611328125, 0.0655517578125, 0.006740570068359375, 0.0269317626953125, 0.02001953125, 0.062469482421875, 0.049560546875, -0.0045013427734375, 0.018890380859375, 0.0243682861328125, 0.01247406005859375, 0.0679931640625, -0.032470703125, 0.0256195068359375, 0.00605010986328125, -0.0288543701171875, -0.00036597251892089844, 0.04669189453125, -0.00360870361328125, 0.0089263916015625, 0.0060272216796875, -0.0367431640625, 0.026214599609375, -0.060150146484375, -0.055267333984375, -0.012847900390625, 0.0199737548828125, -0.0125885009765625, 0.03155517578125, 0.036376953125, -0.0311737060546875, -0.03033447265625, 0.028045654296875, 0.042755126953125, 0.014007568359375, 0.01221466064453125, -0.07305908203125, 0.037139892578125, 0.003757476806640625, 0.00884246826171875, -0.01154327392578125, 0.0016231536865234375, -0.0214691162109375, -0.0204925537109375, 0.003498077392578125, -0.016143798828125, 0.0186767578125, -0.01465606689453125, 0.032440185546875, -0.0133209228515625, -0.03900146484375, -0.045379638671875, 0.0092620849609375, -0.0240631103515625, -0.03131103515625, 0.0004355907440185547, -0.003078460693359375, -0.041900634765625, 0.03717041015625, -0.0657958984375, 0.0672607421875, -0.03717041015625, 0.01995849609375, 0.07110595703125, 0.0032672882080078125, 0.012847900390625, 0.0088348388671875, 0.032318115234375, 0.031951904296875, 0.0061187744140625, -0.0044097900390625, -0.022216796875, -0.015655517578125, -0.002410888671875, 0.04132080078125, 0.0200958251953125, 0.036773681640625, 0.001621246337890625, 0.02093505859375, 0.054046630859375, -0.0050201416015625, -0.010009765625, -0.0498046875, -0.08575439453125, 0.0028228759765625, 0.030029296875, -0.034210205078125, -0.0006346702575683594, 0.08197021484375, 0.0161285400390625, -0.048858642578125, 0.017333984375, -0.019622802734375, -0.00836181640625, -0.0262603759765625, 0.01959228515625, -0.006404876708984375, 0.0208892822265625, 0.00943756103515625, 0.135009765625, 0.0169219970703125, -0.0745849609375, -0.00960540771484375, -0.050567626953125, -0.03961181640625, 0.038726806640625, -0.006053924560546875, -0.02001953125, 0.002262115478515625, -0.00276947021484375, 0.017913818359375, 0.02325439453125, -0.02764892578125, -0.0005807876586914062, -0.032440185546875, 0.05743408203125, 0.0051116943359375, -0.033935546875, 0.0259857177734375, 0.052825927734375, -0.0232696533203125, -0.016510009765625, 0.010284423828125, 0.01358795166015625, -0.01042938232421875, -0.07464599609375, -0.033905029296875, 0.01468658447265625, -0.016571044921875, 0.0008254051208496094, -0.0133056640625, -0.00022423267364501953, 0.073974609375, -0.01415252685546875, -0.004756927490234375, -0.0330810546875, -0.05975341796875, -0.045562744140625, -0.03106689453125, -0.037200927734375, 0.031341552734375, -0.0211029052734375, -0.008056640625, -0.0277862548828125, 0.0222930908203125, -0.030487060546875, -0.034698486328125, 0.0022373199462890625, -0.06689453125, 0.03302001953125, -0.052947998046875, -0.002521514892578125, -0.01099395751953125, 0.072265625, -0.0308990478515625, -0.0120849609375, -0.0077667236328125, 0.01416778564453125, -0.040008544921875, -0.0633544921875, -0.0231475830078125, -0.0184326171875, 0.0006098747253417969, 0.011016845703125, -0.0172271728515625, 0.004695892333984375, -0.0421142578125, 0.0278778076171875, -0.0075531005859375, -0.0158233642578125, 0.039886474609375, -0.033905029296875, 0.0184326171875, 0.02484130859375, -0.00878143310546875, 0.018524169921875, -0.03826904296875, -0.0296630859375, -0.07330322265625, -0.00449371337890625, -0.0292510986328125, 0.0236358642578125, 0.01678466796875, -0.04498291015625, 0.010772705078125, 0.027587890625, -0.004291534423828125, 0.06988525390625, -0.031890869140625, 0.0148468017578125, 0.0058441162109375, -0.04254150390625, -0.01450347900390625, -0.0260009765625, -0.01666259765625, -0.024444580078125, -0.003940582275390625, -0.011383056640625, -0.033172607421875, -0.048736572265625, -0.0347900390625, -0.0189056396484375, -0.051239013671875, -0.0086669921875, 0.039520263671875, 0.027801513671875, -0.00739288330078125, 0.018768310546875, -0.0144805908203125, -0.04443359375, 0.03662109375, -0.021453857421875, -0.031707763671875, 0.01412200927734375, 0.06671142578125, 0.01322174072265625, -0.0016155242919921875, -0.06524658203125, 0.0113983154296875, 0.05279541015625, -0.00272369384765625, 0.003009796142578125, 0.027618408203125, -0.039031982421875, -0.0005469322204589844, 0.0275421142578125, -0.03997802734375, 0.039215087890625, -0.01611328125, 0.0260467529296875, -0.019744873046875, -0.0262298583984375, 0.01111602783203125, 0.032562255859375, -0.0021800994873046875, -0.0399169921875, 0.0103302001953125, -0.033203125, 0.0307464599609375, -0.02752685546875, 0.05059814453125, -0.01910400390625, -0.0131378173828125, 0.0164642333984375, -0.02703857421875, -0.0080413818359375, 0.0008525848388671875, 0.00382232666015625, -0.04400634765625, -0.0341796875, -0.00397491455078125, -0.036956787109375, -0.025970458984375, 0.007274627685546875, 0.01788330078125, 0.004425048828125, 0.006927490234375, -0.03216552734375, -0.01090240478515625, 0.061309814453125, 0.01447296142578125, -0.06072998046875, 0.0218048095703125, -0.00299072265625, 0.0284271240234375, 0.005985260009765625, -0.03985595703125, 0.02117919921875, 0.04937744140625, -0.03253173828125, 0.0037746429443359375, -0.01318359375, -0.00487518310546875, -0.04248046875, -0.0183563232421875, 0.0026950836181640625, -0.0075531005859375, 0.048370361328125, 0.0262451171875, 0.01253509521484375, 0.0289459228515625, -0.037689208984375, 0.0484619140625, 0.05218505859375, -0.06805419921875, 0.01001739501953125, 0.09033203125, 0.0015697479248046875, -0.0830078125, 0.016754150390625, -0.0066680908203125, 0.0006465911865234375, -0.0190277099609375, 0.0078887939453125, 0.0233917236328125, 0.011444091796875, 0.0217437744140625, -0.0220489501953125, -0.0290985107421875, -0.025115966796875, 0.07769775390625, 0.0303192138671875, 0.0252838134765625, 0.033966064453125, -0.0122833251953125, 0.06683349609375, 0.0046539306640625, -0.040985107421875, -0.00116729736328125, 0.006137847900390625, -0.017120361328125, -0.0172882080078125, 0.004863739013671875, 0.006046295166015625, 0.003337860107421875, -0.0273590087890625, -0.007068634033203125, -0.033477783203125, 0.005889892578125, -0.007843017578125, -0.0006647109985351562, 0.00875091552734375, -0.017578125, -0.0016651153564453125, -0.023712158203125, 0.02154541015625, -0.03466796875, 0.0011463165283203125, 0.0183868408203125, -0.01335906982421875, 0.018280029296875, -0.020599365234375, -0.05322265625, -0.053985595703125, -0.07171630859375, -0.0205078125, -0.04437255859375, 0.029052734375, 0.03173828125, 0.026275634765625, -0.016876220703125, -0.050872802734375, -0.034759521484375, 0.0089111328125, 0.0452880859375, 0.04656982421875, 0.03277587890625, 0.0300140380859375, -0.018402099609375, 0.07757568359375, 0.027435302734375, 0.004131317138671875, -0.03857421875, -0.043426513671875, 0.026123046875, -0.015472412109375, -0.05792236328125, -0.005458831787109375, -0.05023193359375, -0.0000858306884765625, 0.03167724609375, -0.02032470703125, 0.02587890625, -0.0226593017578125, 0.0217437744140625, -0.001911163330078125, -0.0032138824462890625, -0.035552978515625, -0.03369140625, 0.0667724609375, -0.0261077880859375, 0.0288848876953125, -0.006214141845703125, 0.048614501953125, -0.033660888671875, -0.0423583984375, -0.021148681640625, 0.01995849609375, -0.0194549560546875, -0.0203399658203125, 0.01470947265625, -0.00012290477752685547, 0.0278778076171875, -0.01065826416015625, 0.0294036865234375, 0.03314208984375, -0.0289459228515625, 0.017730712890625, 0.03289794921875, 0.07086181640625, -0.0035572052001953125, -0.00545501708984375, 0.04595947265625, -0.046600341796875, -0.003650665283203125, 0.041961669921875, 0.0196533203125, -0.09686279296875, 0.033172607421875, -0.01306915283203125, 0.03094482421875, 0.06341552734375, -0.02850341796875, 0.02923583984375, -0.0263214111328125, 0.048309326171875, -0.0266571044921875, -0.0194244384765625, 0.00391387939453125, -0.05181884765625, -0.0018320083618164062, -0.021392822265625, -0.00116729736328125, 0.01049041748046875, -0.0243072509765625, 0.0083160400390625, 0.041351318359375, -0.013031005859375, -0.04437255859375, -0.034881591796875, 0.0301055908203125, 0.0009760856628417969, -0.045928955078125, 0.05438232421875, -0.051788330078125, 0.04620361328125, 0.0252838134765625, -0.019744873046875, 0.0008816719055175781, 0.025482177734375, -0.0198516845703125, 0.0193328857421875, 0.00555419921875, -0.021240234375, -0.041351318359375, 0.000003814697265625, 0.02960205078125, 0.031219482421875, -0.004055023193359375, 0.0216064453125, -0.004070281982421875, -0.03204345703125, -0.017120361328125, -0.01129913330078125, 0.08160400390625, -0.047210693359375, -0.01277923583984375, 0.025146484375, 0.0041656494140625, -0.0198516845703125, 0.0152587890625, 0.003849029541015625, -0.03472900390625, -0.02459716796875, 0.0018606185913085938, -0.0584716796875, -0.0014772415161132812, 0.0069732666015625, -0.052490234375, 0.0718994140625, 0.05999755859375, -0.0102081298828125, 0.0033779144287109375, 0.041748046875, -0.06451416015625, 0.0045623779296875, -0.035797119140625, 0.0677490234375, -0.02947998046875, 0.05169677734375, -0.0531005859375, 0.00698089599609375, 0.012054443359375, 0.0284423828125, 0.08160400390625, 0.0248565673828125, -0.05950927734375, -0.0016584396362304688, 0.048980712890625, 0.02642822265625, -0.0053253173828125, 0.06475830078125, 0.01629638671875, 0.00286865234375, 0.01800537109375, -0.00240325927734375, 0.053070068359375, -0.043914794921875, -0.007843017578125, 0.0166778564453125, 0.00785064697265625, 0.00664520263671875, -0.003955841064453125, 0.008270263671875, -0.0088958740234375, -0.01290130615234375, 0.0010824203491210938, 0.006366729736328125, 0.0138397216796875, 0.0293731689453125, 0.00939178466796875, -0.007732391357421875, -0.01397705078125, -0.010528564453125, 0.028564453125, -0.004535675048828125, 0.0296783447265625, 0.0225830078125, 0.0185089111328125, 0.044647216796875, -0.0193328857421875, 0.0198516845703125, 0.0156707763671875, -0.00024068355560302734, 0.01039886474609375, 0.0015382766723632812, 0.008270263671875, -0.028228759765625, 0.044464111328125, 0.02435302734375, 0.00827789306640625, -0.03436279296875, -0.0009274482727050781, 0.01232147216796875, -0.00740814208984375, -0.007236480712890625, -0.0308990478515625, -0.0026226043701171875, -0.0006995201110839844, 0.024444580078125, -0.0275726318359375, -0.007904052734375, 0.01105499267578125, 0.0198974609375, -0.0092620849609375, -0.028289794921875, -0.0072021484375, 0.00983428955078125, -0.01885986328125, -0.033111572265625, 0.033721923828125, 0.01390838623046875, 0.03302001953125, 0.0223846435546875, 0.057373046875, 0.01337432861328125, 0.021636962890625, 0.007442474365234375, -0.008270263671875, -0.031890869140625, -0.0095672607421875, -0.055511474609375, 0.00373077392578125, 0.0283660888671875, 0.013458251953125, -0.0024967193603515625, 0.021209716796875, 0.0157928466796875, -0.0172271728515625, -0.0177764892578125, 0.0200042724609375, -0.0183563232421875, -0.03253173828125, -0.050262451171875, 0.037811279296875, 0.0567626953125, 0.0219879150390625, 0.01190185546875, 0.013519287109375, 0.05316162109375, -0.025543212890625, -0.007266998291015625, 0.01068878173828125, -0.0521240234375, 0.016265869140625, 0.032257080078125, 0.044586181640625, 0.00604248046875, -0.08563232421875, -0.01497650146484375, 0.0003104209899902344, -0.0260162353515625, 0.01265716552734375, 0.03302001953125, -0.03509521484375, 0.042144775390625, 0.0281219482421875, -0.0254974365234375, 0.0193634033203125, 0.0007381439208984375, 0.039642333984375, 0.0587158203125, 0.004062652587890625, 0.0335693359375, -0.037750244140625, 0.0009341239929199219, -0.04742431640625, 0.0294189453125, 0.06866455078125, 0.039886474609375, 0.0058746337890625, 0.06060791015625, -0.0258331298828125, 0.01305389404296875, -0.027496337890625, -0.00926971435546875, -0.01129913330078125, 0.0006628036499023438, 0.007049560546875, 0.0086212158203125, -0.039306640625, 0.0235137939453125, 0.0305633544921875, 0.00011748075485229492, 0.031768798828125, -0.01898193359375, -0.0020122528076171875, -0.052459716796875, -0.020782470703125, -0.036529541015625, -0.0115203857421875, -0.005947113037109375, -0.001987457275390625, -0.002079010009765625, -0.016998291015625, -0.018035888671875, 0.027587890625, 0.01006317138671875, 0.01593017578125, -0.0112457275390625, 0.01092529296875, -0.028411865234375, 0.021881103515625, -0.0241851806640625, 0.02764892578125, 0.0643310546875, 0.0014324188232421875, 0.0272064208984375, 0.019287109375, 0.01552581787109375, 0.0411376953125, -0.031829833984375, -0.007213592529296875, -0.0007443428039550781, 0.043914794921875, 0.002288818359375, 0.00843048095703125, -0.03216552734375, -0.0012006759643554688, 0.00481414794921875, 0.029266357421875, -0.01517486572265625, -0.012054443359375, -0.0233001708984375, -0.01324462890625, -0.0123748779296875, -0.06927490234375, -0.028045654296875, -0.039703369140625, -0.00688934326171875, -0.0110626220703125, -0.00849151611328125, 0.0014495849609375, 0.0012807846069335938, -0.01324462890625, -0.031494140625, -0.0241241455078125, 0.0212249755859375, 0.04022216796875, -0.0289459228515625, 0.0168914794921875, -0.01971435546875, -0.033203125, -0.00968170166015625, -0.0308685302734375, -0.0028781890869140625, 0.0009303092956542969, -0.006317138671875, -0.08026123046875, -0.01861572265625, -0.035797119140625, 0.00545501708984375, -0.007755279541015625, -0.0060577392578125, 0.031768798828125, -0.0185394287109375, -0.0263824462890625, 0.0138397216796875, 0.0187530517578125, -0.02484130859375, 0.0011997222900390625, 0.03363037109375, 0.060333251953125, -0.01226806640625, -0.0838623046875, 0.00827789306640625, -0.0189208984375, -0.044158935546875, -0.038482666015625, -0.0012540817260742188, -0.0142822265625, 0.046417236328125, 0.0032958984375, -0.039581298828125, -0.005825042724609375, 0.0253143310546875, -0.0218505859375, 0.048858642578125, -0.0036945343017578125, -0.01129150390625, -0.05023193359375, -0.0186004638671875, -0.023223876953125, -0.022979736328125, 0.038299560546875, -0.0223846435546875, 0.00881195068359375, 0.022247314453125, -0.064208984375, -0.0623779296875, -0.0301666259765625, 0.026031494140625, 0.01195526123046875, -0.014801025390625, -0.076416015625, -0.043426513671875, 0.09771728515625, 0.044219970703125, 0.0369873046875, -0.0145263671875, 0.06390380859375, -0.0167083740234375, -0.06671142578125, -0.02008056640625, 0.017791748046875, -0.03448486328125, -0.005069732666015625, 0.003192901611328125, 0.02154541015625, -0.0501708984375, -0.028900146484375, -0.0384521484375, -0.04766845703125, -0.040252685546875, 0.0184173583984375, -0.023040771484375, -0.01337432861328125, 0.0103302001953125, 0.0019083023071289062, 0.015380859375, 0.036285400390625, 0.0018978118896484375, 0.007354736328125, 0.11993408203125, 0.006061553955078125, 0.01422882080078125, -0.0258941650390625, -0.003910064697265625, 0.01416015625, 0.0018739700317382812, -0.008209228515625, -0.00284576416015625, -0.0208740234375, -0.01235198974609375, -0.0032100677490234375, -0.033538818359375, 0.0279693603515625, -0.0020885467529296875, -0.0128021240234375, 0.08673095703125, -0.01120758056640625, 0.05755615234375, 0.002178192138671875, 0.025177001953125, -0.0185394287109375, -0.001499176025390625, 0.01611328125, -0.00888824462890625, 0.00787353515625, 0.01045989990234375, -0.0012445449829101562, -0.01287841796875, 0.0117645263671875, 0.0263824462890625, 0.0007143020629882812, 0.00725555419921875 ]
0de0497788b14f1587fd0226342ef54003fb72bc
Wordpress Stackexchange Q: Different number of posts in each category I have categories driven site. I have different template for each category. I would like to set different number of posts – different for each category. Plus I would like to add proper previous and next links in each category. for example in this category-1.php I want 4 posts per page: <?php query_posts('showposts=4'); ?> <a href="<?=next_posts()?>"> PREVIOUS </a> <a href="<?=previous_posts()?>"> NEXT </a> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> ... <?php endwhile; endif; ?> but in this example next_posts() and previous_posts() doesn't work. A: As @StephenHarris pointed out there's also the pre_get_posts filter. function hwl_home_pagesize( $query ) { if ( is_category( 9 ) ) { // If you want "posts per page" $query->query_vars['posts_per_page'] = 1; return; } if ( is_category( 'movie' ) ) { // If you want "showposts" $query->query_vars['showposts'] = 50; return; } } add_action( 'pre_get_posts', 'hwl_home_pagesize', 1 ); Example altered from Codex example.
Q: Different number of posts in each category I have categories driven site. I have different template for each category. I would like to set different number of posts – different for each category. Plus I would like to add proper previous and next links in each category. for example in this category-1.php I want 4 posts per page: <?php query_posts('showposts=4'); ?> <a href="<?=next_posts()?>"> PREVIOUS </a> <a href="<?=previous_posts()?>"> NEXT </a> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> ... <?php endwhile; endif; ?> but in this example next_posts() and previous_posts() doesn't work. A: As @StephenHarris pointed out there's also the pre_get_posts filter. function hwl_home_pagesize( $query ) { if ( is_category( 9 ) ) { // If you want "posts per page" $query->query_vars['posts_per_page'] = 1; return; } if ( is_category( 'movie' ) ) { // If you want "showposts" $query->query_vars['showposts'] = 50; return; } } add_action( 'pre_get_posts', 'hwl_home_pagesize', 1 ); Example altered from Codex example. A: You can use the pre_get_posts hook (conditionals are available): function wpse47875_change_posts_per_page( $query ) { //Only alter main query. This only works for 3.3+ if( ! $query->is_main_query() ) return; if ( is_category('9') ){ //Display 4 posts for category 1 $query->set( 'posts_per_page', 4); } } add_action('pre_get_posts', 'wpse47875_change_posts_per_page', 1); You probably only want to change the 'main query', so the first check is important. If you are using WP < 3.3 then you can check instead: if( $wp_the_query === $query ){ //$query is the main query }else{ //$query is *not* the main query } A: Parse Request Action Not shure if this will work - it may be that the conditionals are not working at this point... // inside functions.php function wpse47861_intercept_main_query( $wp ) { // default $nr_posts = 10; if ( is_category( 'CAT NAME' ) ) $nr_posts = 4; if ( is_category( array( 9 /*Ex. Cat-ID*/, 'CAT NAME A', 'CAT NAME B' ) ) ) $nr_posts = 6; // Modify the main query object $wp->query_vars['showposts'] = $nr_posts; return $wp; } add_filter( 'parse_request', 'wpse47861_intercept_main_query' ); Posts Limit filter This would be the other chance, as maybe conditionals are already available there. function wpse47861_intercept_query_limit( $limit ) { // default $nr_posts = 10; if ( is_category( 'CAT NAME' ) ) $nr_posts = 4; if ( is_category( array( 9 /*Ex. Cat-ID*/, 'CAT NAME A', 'CAT NAME B' ) ) ) $nr_posts = 6; return "LIMIT 0, {$nr_posts}"; } add_filter( 'posts_limit', 'wpse47861_intercept_query_limit', 9999 ); Note: Both functions are not tested. Plus: Use one or the other. Both should be placed in your functions.php file. A: With query_posts, pagination won't work correctly, unless you use query_posts() in a page template and you set the 'paged' query var appropriately: http://codex.wordpress.org/Template_Tags/query_posts But it may be easier to use a plugin called Custom Post Limits and leave your category page loops the same. You can set different first page and paged limits for each category. See WordPress › Custom Post Limits « WordPress Plugins A: I have flexible way where is possible to set any per_page value for each/any woprdpress site page: * *open functions.php of the current wp theme *use smth like next: * add_filter('pre_option_posts_per_page', function($num) { if ($_SERVER['SCRIPT_URL'] == '/category/faq/') { return 999; } return $num; }); * *use for example http://php.net/manual/ru/function.preg-match.php for $_SERVER['SCRIPT_URL'] with any patterns you want on the site to reach the goal!
wordpress
{ "language": "en", "length": 543, "provenance": "stackexchange_00019.jsonl.gz:418725", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47861" }
[ 0.043914794921875, 0.007755279541015625, -0.0020465850830078125, -0.045440673828125, 0.04180908203125, -0.018310546875, 0.05120849609375, -0.004138946533203125, -0.0294647216796875, -0.007282257080078125, -0.03900146484375, 0.010894775390625, -0.024932861328125, -0.024444580078125, 0.026458740234375, -0.050445556640625, 0.0616455078125, -0.056365966796875, 0.0135498046875, -0.006038665771484375, -0.0206298828125, 0.033203125, 0.0660400390625, 0.11895751953125, 0.016265869140625, -0.0002930164337158203, 0.0135955810546875, -0.036529541015625, 0.003955841064453125, -0.0254974365234375, 0.0104217529296875, -0.00252532958984375, 0.014312744140625, 0.0124969482421875, 0.00040221214294433594, 0.0021152496337890625, 0.002887725830078125, 0.01139068603515625, 0.0184326171875, 0.0018510818481445312, 0.0207672119140625, -0.00106048583984375, 0.03253173828125, -0.0022945404052734375, 0.01251983642578125, -0.0291595458984375, 0.0242462158203125, -0.04986572265625, 0.00815582275390625, -0.000031888484954833984, 0.003879547119140625, -0.01184844970703125, 0.0241851806640625, -0.01251220703125, -0.011566162109375, -0.0081634521484375, 0.01282501220703125, -0.012939453125, 0.05767822265625, -0.0151824951171875, -0.06317138671875, -0.047760009765625, 0.038726806640625, -0.057891845703125, -0.004283905029296875, 0.006870269775390625, 0.046295166015625, 0.029876708984375, -0.0251617431640625, -0.0511474609375, 0.003589630126953125, 0.010162353515625, 0.005279541015625, -0.036346435546875, -0.01027679443359375, 0.004413604736328125, 0.006683349609375, -0.01493072509765625, 0.01190185546875, -0.0122833251953125, -0.02545166015625, 0.023681640625, -0.05419921875, -0.0096893310546875, -0.01812744140625, -0.01114654541015625, -0.030975341796875, 0.0011587142944335938, -0.046905517578125, -0.0133514404296875, -0.032012939453125, -0.058013916015625, -0.026214599609375, 0.001251220703125, 0.0170135498046875, -0.01334381103515625, -0.0128936767578125, -0.0006799697875976562, 0.006778717041015625, 0.0030765533447265625, -0.030609130859375, -0.005809783935546875, -0.03662109375, -0.00476837158203125, 0.036712646484375, 0.00800323486328125, -0.03509521484375, 0.05517578125, 0.09539794921875, 0.06451416015625, 0.021728515625, 0.04583740234375, 0.0027866363525390625, 0.020477294921875, -0.0323486328125, -0.01044464111328125, -0.03594970703125, -0.00691986083984375, -0.017974853515625, -0.0177764892578125, 0.004421234130859375, 0.042877197265625, 0.01910400390625, -0.070068359375, 0.0081939697265625, 0.005191802978515625, 0.0058135986328125, -0.07550048828125, 0.06097412109375, 0.05328369140625, -0.03228759765625, -0.007312774658203125, -0.00646209716796875, -0.01502227783203125, -0.0105438232421875, -0.0198516845703125, 0.035369873046875, -0.04962158203125, -0.0176544189453125, 0.02996826171875, -0.032135009765625, -0.01163482666015625, 0.0215301513671875, -0.042205810546875, 0.035552978515625, 0.0148468017578125, 0.03289794921875, -0.0025043487548828125, -0.01039886474609375, -0.0223541259765625, 0.029510498046875, -0.0213470458984375, 0.048919677734375, -0.00665283203125, -0.09576416015625, -0.00295257568359375, -0.07330322265625, 0.01715087890625, -0.0247955322265625, -0.012969970703125, 0.01551055908203125, 0.0161285400390625, 0.033935546875, -0.064208984375, -0.061492919921875, -0.0284271240234375, -0.06646728515625, -0.0160064697265625, 0.018096923828125, 0.0423583984375, 0.04998779296875, -0.024658203125, 0.0097503662109375, -0.0350341796875, -0.034912109375, -0.02337646484375, -0.036895751953125, -0.0052642822265625, 0.02239990234375, 0.028717041015625, 0.0032405853271484375, -0.0160369873046875, 0.015960693359375, 0.0149993896484375, -0.037933349609375, 0.0277862548828125, 0.0130462646484375, 0.01556396484375, -0.0099945068359375, 0.0078887939453125, 0.057281494140625, 0.02838134765625, -0.0692138671875, 0.010467529296875, -0.020477294921875, -0.02520751953125, 0.00838470458984375, -0.01470947265625, -0.0030117034912109375, 0.033416748046875, 0.0095672607421875, -0.00524139404296875, 0.0124359130859375, 0.004558563232421875, -0.0225372314453125, 0.00557708740234375, -0.0110626220703125, 0.036163330078125, -0.02264404296875, 0.04864501953125, 0.035308837890625, 0.0182952880859375, -0.03363037109375, -0.05499267578125, -0.0091705322265625, 0.01105499267578125, 0.0164031982421875, 0.004108428955078125, -0.0029125213623046875, -0.0201263427734375, 0.0088653564453125, -0.017578125, 0.011627197265625, 0.051849365234375, 0.0736083984375, -0.021240234375, -0.0193328857421875, -0.037200927734375, -0.004619598388671875, 0.00925445556640625, -0.096923828125, 0.06866455078125, 0.0660400390625, 0.0528564453125, -0.028167724609375, 0.01025390625, 0.034515380859375, 0.0037937164306640625, 0.0016374588012695312, 0.02166748046875, 0.0282745361328125, 0.0010080337524414062, -0.041259765625, -0.0684814453125, 0.012939453125, -0.04248046875, 0.01416015625, -0.047821044921875, -0.00994110107421875, 0.036163330078125, 0.020904541015625, 0.03570556640625, 0.010040283203125, 0.0096588134765625, 0.0175933837890625, 0.023590087890625, 0.028289794921875, 0.018035888671875, -0.035369873046875, 0.00763702392578125, 0.0173187255859375, 0.01203155517578125, -0.0474853515625, 0.029998779296875, 0.0160675048828125, -0.006870269775390625, 0.0005550384521484375, -0.0156402587890625, -0.0178375244140625, 0.0067596435546875, 0.01157379150390625, -0.041900634765625, -0.0119781494140625, -0.019866943359375, -0.053070068359375, -0.0312042236328125, -0.0304718017578125, 0.04705810546875, -0.018035888671875, -0.04742431640625, -0.015960693359375, 0.04656982421875, -0.073974609375, -0.017669677734375, -0.048919677734375, -0.0609130859375, -0.02520751953125, 0.023468017578125, 0.029144287109375, 0.0272979736328125, 0.0262908935546875, 0.0176544189453125, -0.01397705078125, 0.055419921875, -0.0122222900390625, -0.0158538818359375, -0.02398681640625, -0.06964111328125, 0.050567626953125, -0.03680419921875, 0.0433349609375, 0.071044921875, -0.019439697265625, 0.046112060546875, 0.00028586387634277344, 0.041046142578125, 0.004703521728515625, -0.00946807861328125, -0.029998779296875, -0.011474609375, -0.047119140625, -0.0010223388671875, 0.0250396728515625, 0.0304412841796875, 0.017364501953125, -0.03509521484375, 0.0137176513671875, 0.03399658203125, -0.0440673828125, -0.046173095703125, 0.017669677734375, -0.043121337890625, 0.034088134765625, 0.00794219970703125, -0.01519012451171875, -0.030242919921875, 0.0194854736328125, 0.01267242431640625, -0.0004868507385253906, -0.032684326171875, -0.039886474609375, -0.062744140625, -0.042999267578125, -0.0199432373046875, -0.00559234619140625, -0.0180816650390625, -0.00826263427734375, 0.10308837890625, -0.006587982177734375, -0.066650390625, -0.02618408203125, -0.0269927978515625, -0.008941650390625, 0.0176544189453125, -0.0171356201171875, 0.02825927734375, -0.00341033935546875, 0.0135040283203125, 0.058563232421875, 0.02972412109375, -0.048492431640625, 0.0016164779663085938, -0.0172882080078125, 0.04132080078125, 0.010284423828125, 0.048858642578125, 0.0293426513671875, 0.0330810546875, 0.035369873046875, -0.005855560302734375, -0.01352691650390625, -0.0111846923828125, -0.04754638671875, -0.004241943359375, 0.033721923828125, -0.0021266937255859375, -0.0059051513671875, -0.030853271484375, -0.02850341796875, -0.01519775390625, 0.01398468017578125, -0.041168212890625, 0.04150390625, -0.005496978759765625, -0.0017185211181640625, -0.0142974853515625, -0.006893157958984375, -0.0157318115234375, 0.02911376953125, -0.01155853271484375, 0.032135009765625, 0.0243988037109375, 0.0024890899658203125, -0.0093994140625, -0.0357666015625, 0.028839111328125, -0.0185546875, 0.001094818115234375, -0.0236358642578125, -0.026611328125, 0.00778961181640625, 0.0633544921875, -0.07147216796875, -0.022491455078125, 0.0013217926025390625, 0.01971435546875, -0.0201568603515625, -0.039276123046875, -0.02618408203125, -0.004047393798828125, -0.054412841796875, 0.00865936279296875, -0.0234375, -0.0087127685546875, -0.037139892578125, 0.054534912109375, -0.038604736328125, -0.023895263671875, 0.0211334228515625, 0.01079559326171875, -0.015899658203125, 0.0035152435302734375, -0.0313720703125, -0.01654052734375, -0.006641387939453125, -0.00830078125, -0.04217529296875, -0.0284576416015625, 0.0197906494140625, 0.05126953125, 0.0279083251953125, -0.045928955078125, -0.00121307373046875, 0.042877197265625, 0.01486968994140625, 0.0229644775390625, 0.037109375, 0.009613037109375, 0.0172576904296875, -0.01849365234375, 0.011474609375, -0.036285400390625, -0.005245208740234375, -0.058868408203125, 0.01500701904296875, 0.0023670196533203125, -0.0723876953125, 0.01751708984375, -0.09912109375, 0.0309600830078125, -0.07574462890625, -0.03570556640625, -0.003131866455078125, -0.0000769495964050293, 0.0094757080078125, -0.0229034423828125, -0.040435791015625, -0.06427001953125, 0.021820068359375, 0.0249176025390625, -0.0302581787109375, -0.0074615478515625, 0.02923583984375, 0.02484130859375, -0.034423828125, 0.019195556640625, 0.00995635986328125, 0.0166778564453125, 0.0227508544921875, 0.026763916015625, -0.01708984375, -0.0150604248046875, 0.047271728515625, -0.004302978515625, -0.01273345947265625, 0.01363372802734375, 0.01329803466796875, 0.0198974609375, -0.01076507568359375, -0.006130218505859375, 0.01383209228515625, 0.0275115966796875, 0.056488037109375, 0.003871917724609375, -0.0413818359375, -0.013214111328125, 0.04443359375, -0.01062774658203125, 0.007289886474609375, -0.030029296875, -0.0045318603515625, 0.002872467041015625, 0.05230712890625, 0.04254150390625, 0.0213775634765625, 0.0024776458740234375, 0.01464080810546875, 0.0234832763671875, 0.00045418739318847656, 0.01312255859375, 0.0478515625, -0.0142364501953125, 0.040924072265625, -0.01282501220703125, -0.00971221923828125, -0.0167236328125, 0.006877899169921875, -0.0077667236328125, -0.01441192626953125, -0.0216064453125, -0.040863037109375, 0.0102996826171875, 0.0020751953125, 0.00800323486328125, -0.017547607421875, 0.0015583038330078125, -0.01079559326171875, -0.0162200927734375, -0.007659912109375, -0.001667022705078125, -0.0640869140625, -0.018463134765625, 0.0189056396484375, 0.010223388671875, 0.002529144287109375, 0.052764892578125, 0.0309600830078125, 0.0064849853515625, 0.042205810546875, -0.0296478271484375, 0.01715087890625, 0.038604736328125, 0.0000426173210144043, -0.0014667510986328125, 0.0235748291015625, -0.01641845703125, 0.00717926025390625, 0.043365478515625, -0.01201629638671875, 0.0186767578125, 0.026458740234375, 0.0213623046875, 0.032135009765625, 0.01617431640625, -0.00424957275390625, 0.00384521484375, 0.003509521484375, 0.03192138671875, 0.027679443359375, -0.0264892578125, -0.00952911376953125, -0.0149078369140625, 0.0163726806640625, -0.02056884765625, 0.0030269622802734375, -0.02642822265625, 0.0260162353515625, 0.04608154296875, -0.048431396484375, 0.025238037109375, -0.00037598609924316406, 0.00360870361328125, -0.0390625, -0.0200042724609375, 0.00335693359375, -0.00748443603515625, -0.002353668212890625, -0.0168304443359375, -0.04656982421875, 0.033172607421875, -0.000003814697265625, 0.050689697265625, -0.03729248046875, -0.0269622802734375, 0.01367950439453125, 0.009429931640625, 0.0224609375, -0.00397491455078125, -0.0226898193359375, 0.00467681884765625, -0.054931640625, -0.0245361328125, -0.0066375732421875, -0.008087158203125, -0.026947021484375, -0.021453857421875, 0.0295562744140625, 0.0083465576171875, 0.0312042236328125, -0.016998291015625, -0.031524658203125, -0.006427764892578125, 0.032867431640625, 0.016082763671875, -0.0202484130859375, 0.037261962890625, 0.0241546630859375, 0.0280609130859375, 0.00273895263671875, -0.00244140625, -0.01116180419921875, -0.004138946533203125, 0.003849029541015625, -0.045745849609375, -0.0015649795532226562, -0.0287322998046875, -0.021270751953125, -0.006885528564453125, 0.03662109375, -0.0035190582275390625, 0.012481689453125, -0.01381683349609375, -0.01377105712890625, -0.003269195556640625, -0.0189361572265625, 0.0269622802734375, -0.004268646240234375, 0.0703125, 0.017181396484375, 0.0352783203125, -0.0086669921875, -0.0247802734375, 0.00634002685546875, 0.00424957275390625, 0.0214385986328125, -0.00417327880859375, -0.04156494140625, -0.002330780029296875, 0.053558349609375, 0.0350341796875, 0.048858642578125, 0.005481719970703125, 0.033905029296875, 0.033416748046875, -0.041015625, 0.034881591796875, 0.0445556640625, 0.07275390625, -0.0204620361328125, 0.0224151611328125, 0.053802490234375, -0.0180511474609375, -0.0224609375, -0.006504058837890625, 0.007274627685546875, -0.0017080307006835938, -0.01348876953125, -0.028778076171875, -0.0216064453125, 0.01055145263671875, 0.02154541015625, 0.007114410400390625, -0.00540924072265625, 0.01337432861328125, -0.0051727294921875, 0.01153564453125, 0.0177764892578125, 0.0016918182373046875, -0.00971221923828125, -0.0138702392578125, -0.0018301010131835938, 0.00782012939453125, -0.01418304443359375, -0.0007948875427246094, 0.01421356201171875, -0.0033397674560546875, -0.0435791015625, 0.0011854171752929688, 0.0093231201171875, -0.022491455078125, -0.08380126953125, 0.0216217041015625, 0.017333984375, 0.0082550048828125, -0.0008525848388671875, -0.0203399658203125, 0.0227508544921875, 0.024261474609375, -0.0028743743896484375, -0.0027866363525390625, -0.004222869873046875, -0.036590576171875, -0.000720977783203125, 0.0004565715789794922, 0.0269317626953125, 0.0350341796875, -0.051910400390625, 0.01134490966796875, -0.0279693603515625, 0.00943756103515625, -0.0094757080078125, -0.012847900390625, 0.07354736328125, -0.0186767578125, -0.02593994140625, 0.015045166015625, 0.0078277587890625, -0.007495880126953125, 0.01110076904296875, -0.0017566680908203125, -0.0611572265625, -0.03363037109375, 0.00360870361328125, -0.05792236328125, 0.004024505615234375, 0.006534576416015625, -0.061004638671875, 0.09295654296875, -0.00958251953125, 0.0673828125, 0.0247955322265625, 0.0171051025390625, -0.006053924560546875, 0.01214599609375, -0.0513916015625, 0.050872802734375, -0.0078887939453125, 0.036773681640625, -0.05224609375, -0.00197601318359375, 0.003795623779296875, 0.02801513671875, 0.0626220703125, 0.0117340087890625, -0.027923583984375, -0.00432586669921875, 0.039306640625, 0.03131103515625, -0.0166778564453125, 0.043365478515625, -0.009063720703125, 0.036346435546875, 0.0290985107421875, -0.0494384765625, 0.0169219970703125, 0.011199951171875, -0.0177154541015625, 0.02728271484375, 0.008544921875, 0.0113525390625, -0.0218505859375, 0.0278167724609375, -0.03948974609375, -0.01117706298828125, 0.0182037353515625, 0.01403045654296875, 0.01038360595703125, 0.0662841796875, 0.05084228515625, -0.04083251953125, -0.0165252685546875, -0.0309906005859375, 0.049896240234375, -0.004180908203125, 0.0394287109375, 0.07464599609375, 0.0294036865234375, 0.08502197265625, -0.01513671875, 0.0206756591796875, -0.004364013671875, -0.007396697998046875, 0.0823974609375, 0.0614013671875, 0.05078125, -0.01403045654296875, -0.001956939697265625, 0.0304718017578125, 0.08575439453125, -0.056182861328125, -0.032806396484375, 0.004611968994140625, -0.00878143310546875, 0.0007925033569335938, 0.02215576171875, 0.0050506591796875, 0.047393798828125, 0.035491943359375, -0.07110595703125, -0.00563812255859375, 0.00899505615234375, 0.02520751953125, -0.0100555419921875, 0.007381439208984375, -0.0087432861328125, -0.037872314453125, -0.06561279296875, 0.0192718505859375, 0.05438232421875, 0.09173583984375, 0.0186767578125, 0.05877685546875, -0.01143646240234375, -0.036834716796875, 0.00667572021484375, 0.00868988037109375, -0.0296478271484375, 0.0071563720703125, -0.00826263427734375, -0.0185546875, -0.057891845703125, 0.0304412841796875, 0.048614501953125, 0.0112457275390625, 0.02020263671875, 0.03363037109375, 0.032501220703125, 0.01207733154296875, 0.04620361328125, -0.0005536079406738281, -0.0170745849609375, -0.05584716796875, 0.015869140625, -0.0090789794921875, 0.007633209228515625, 0.026641845703125, 0.02947998046875, -0.0098876953125, -0.01494598388671875, -0.000904083251953125, 0.0077362060546875, -0.056549072265625, 0.0263671875, 0.037109375, 0.0938720703125, 0.03753662109375, -0.0633544921875, 0.0082550048828125, -0.0382080078125, -0.046966552734375, 0.0182037353515625, 0.0213165283203125, -0.0384521484375, 0.033782958984375, -0.0004286766052246094, -0.02044677734375, 0.0103912353515625, -0.013275146484375, 0.0253753662109375, -0.01149749755859375, -0.0110931396484375, 0.0086517333984375, -0.04815673828125, -0.0275726318359375, -0.0018749237060546875, 0.0364990234375, -0.005596160888671875, 0.047760009765625, -0.006565093994140625, 0.01035308837890625, -0.006740570068359375, 0.041961669921875, -0.0296630859375, -0.0165252685546875, 0.07275390625, 0.0117645263671875, 0.0172271728515625, -0.0238037109375, -0.02069091796875, -0.007701873779296875, 0.043212890625, -0.0523681640625, 0.0211334228515625, -0.0240478515625, 0.012298583984375, -0.042999267578125, 0.0137939453125, -0.007602691650390625, 0.0207672119140625, -0.022613525390625, -0.01873779296875, 0.07330322265625, 0.01355743408203125, -0.050537109375, 0.03875732421875, 0.0070648193359375, 0.020904541015625, 0.037322998046875, -0.003963470458984375, 0.05377197265625, 0.031890869140625, -0.06317138671875, 0.037872314453125, 0.060821533203125, -0.006526947021484375, 0.0118255615234375, 0.046142578125, -0.03509521484375, 0.03350830078125, -0.03131103515625, -0.005023956298828125, 0.0034847259521484375, 0.03997802734375, -0.037628173828125, 0.0254974365234375, 0.026275634765625, -0.00011986494064331055, 0.0294036865234375, 0.0038013458251953125, -0.021270751953125, -0.042388916015625, -0.00994873046875, 0.00450897216796875, -0.017547607421875, -0.0229949951171875, -0.05755615234375, -0.0009064674377441406, 0.05419921875, 0.005298614501953125, -0.0521240234375, 0.035400390625, -0.0323486328125, 0.018035888671875, -0.016571044921875, -0.04205322265625, 0.0036640167236328125, 0.000017940998077392578, -0.0237884521484375, 0.01360321044921875, -0.0555419921875, -0.03948974609375, -0.0307159423828125, 0.007022857666015625, 0.0193023681640625, -0.01465606689453125, -0.051910400390625, -0.00010353326797485352, -0.0008087158203125, 0.0372314453125, 0.038909912109375, 0.005893707275390625, 0.043121337890625, 0.0104522705078125, -0.05224609375, -0.039520263671875, 0.0269012451171875, -0.038482666015625, -0.02423095703125, 0.00811004638671875, -0.006633758544921875, 0.0218353271484375, -0.0322265625, -0.0828857421875, 0.0645751953125, -0.02325439453125, -0.033172607421875, -0.0364990234375, 0.0165863037109375, -0.0212554931640625, 0.0247802734375, 0.013092041015625, -0.04779052734375, -0.030853271484375, 0.0070648193359375, 0.018585205078125, 0.0308837890625, 0.03265380859375, -0.0031566619873046875, -0.030548095703125, 0.00008028745651245117, -0.01207733154296875, 0.01183319091796875, -0.01134490966796875, 0.00443267822265625, 0.007015228271484375, 0.0213470458984375, -0.027313232421875, 0.0062103271484375, 0.0018739700317382812, -0.01763916015625, 0.032318115234375, -0.01526641845703125, -0.08221435546875, -0.045440673828125, 0.018707275390625, 0.0321044921875, 0.032257080078125, 0.0003857612609863281, -0.00278472900390625, -0.0171051025390625, -0.00986480712890625, -0.01476287841796875, 0.0112762451171875, -0.043853759765625, -0.0167388916015625, -0.00223541259765625, -0.010467529296875, -0.0177764892578125, -0.026214599609375, -0.043304443359375, -0.0132904052734375, -0.03607177734375, 0.01445770263671875, -0.049163818359375, 0.053070068359375, 0.00853729248046875, -0.027099609375, -0.02484130859375, 0.000659942626953125, -0.032196044921875, -0.036285400390625, -0.0014810562133789062, -0.0027313232421875, 0.0164794921875, -0.0200042724609375, 0.0185699462890625, 0.009796142578125, 0.0199127197265625, -0.023681640625, 0.0011005401611328125, -0.0095367431640625, 0.0010766983032226562, 0.001422882080078125, -0.00949859619140625, -0.00843048095703125, 0.032928466796875, 0.0095367431640625, 0.04583740234375, -0.01068115234375, 0.038818359375, 0.0220947265625, 0.007488250732421875, -0.002445220947265625, -0.0037441253662109375, 0.0214080810546875, -0.0095977783203125, -0.0184783935546875, -0.01352691650390625, -0.0572509765625, -0.048187255859375, 0.0023708343505859375, 0.019195556640625, -0.023162841796875, 0.017547607421875 ]
22e7167abc9d4e1658f164fd228586cbf43fda00
Wordpress Stackexchange Q: Load minimum WordPress environment I made my own upload service for my website that is separate from WP, but uses WP to provide low level db functions and user verification. To do that, I include wp-load.php in my main script (Uploadify) but doing that seems to fill the server's memory with unnecessary components. Thanks to that, I'm seeing an error in my script that seems to point to a installed WP plugin. How can I load only the core WP components and ignore plugins? Is this even possible? A: Use BackPress, but i have small developments, where i use a default install and smaller source via const. see on the wp-settings.php // Stop most of WordPress from being loaded if we just want the basics. if ( SHORTINIT ) return false; Set the const SHORTINIT on true in the wp-config.php and see the fast run. define( 'SHORTINIT', TRUE ); These are the files you get: // All are located in ABSPATH.WPINC '/load.php' '/default-constants.php' '/version.php' '/compat.php' '/functions.php' '/class-wp.php' '/class-wp-error.php' '/plugin.php' '/default-filters.php' '/pomo/mo.php' // Only Multisite '/ms-blogs.php' '/ms-settings.php'
Q: Load minimum WordPress environment I made my own upload service for my website that is separate from WP, but uses WP to provide low level db functions and user verification. To do that, I include wp-load.php in my main script (Uploadify) but doing that seems to fill the server's memory with unnecessary components. Thanks to that, I'm seeing an error in my script that seems to point to a installed WP plugin. How can I load only the core WP components and ignore plugins? Is this even possible? A: Use BackPress, but i have small developments, where i use a default install and smaller source via const. see on the wp-settings.php // Stop most of WordPress from being loaded if we just want the basics. if ( SHORTINIT ) return false; Set the const SHORTINIT on true in the wp-config.php and see the fast run. define( 'SHORTINIT', TRUE ); These are the files you get: // All are located in ABSPATH.WPINC '/load.php' '/default-constants.php' '/version.php' '/compat.php' '/functions.php' '/class-wp.php' '/class-wp-error.php' '/plugin.php' '/default-filters.php' '/pomo/mo.php' // Only Multisite '/ms-blogs.php' '/ms-settings.php' A: For making is_user_logged_in() and current_user_can() work, I found similar answer here (Cant comment) The comparsion matches answers here, as: Using define('SHORTINIT', true) + require('wp-load.php') + manually includes: Pageload: 1.05 sek - included files: 43 files Comparing: Using ONLY require('wp-load.php'): Pageload: 1.35 sek - included files: 419 files The time difference (0.3 sek) might differ from installs and PHP engines, but while validating many requests on one pageload -things adds up! /@Anna Ericson It was a good idea to use a relative call to WP installed dir. From a Wordpress custom plugin "ROOT" like: $wordpress = '../../../wp-load.php'; Then inside my plugin index.php: define('SHORTINIT', true); include_once $wordpress; require_once ( ABSPATH . WPINC . '/class-wp-user.php' ); require_once ( ABSPATH . WPINC . '/class-wp-roles.php' ); require_once ( ABSPATH . WPINC . '/class-wp-role.php' ); require_once ( ABSPATH . WPINC . '/class-wp-session-tokens.php' ); require_once ( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' ); require_once ( ABSPATH . WPINC . '/formatting.php' ); require_once ( ABSPATH . WPINC . '/capabilities.php' ); //require_once ( ABSPATH . WPINC . '/query.php' ); // - might be useful require_once ( ABSPATH . WPINC . '/user.php' ); require_once ( ABSPATH . WPINC . '/meta.php' ); wp_cookie_constants(); require_once ( ABSPATH . WPINC . '/vars.php' ); require_once ( ABSPATH . WPINC . '/kses.php' ); require_once ( ABSPATH . WPINC . '/rest-api.php' ); require_once ( ABSPATH . WPINC . '/pluggable.php' ); After this, user validation is working for me. Thanks to @Anna Ericson final words from original code: For other task, running on one or two requests, tracking down other needed files might not be worth 0.3 sek. Skip the SHORTINIT constant and manually clutter. A: Have you tried define('SHORTINIT', true);? I haven't tested it myself, but it seems to load very few aspects of WP core while retaining enough functionality, especially if all you want is to deal with the database. A: Disabling plugins entirely means you loose many advantages. There are distributions of wordpress that go further and rip out posts and links etc, but they'll always lag behind WordPress core and tend not to survive as long. Here are some things that could be done Short Init Putting this in your wp-config.php: define( 'SHORTINIT', TRUE ); Or defining it somewhere before you load in wordpress, should reduce the loading process and pull it back to minimal core functions. Secondary lightweight installs Setup a second wordpress installation, with only the plugins and themes you want (if any). Then configure the wp-config.php to use the same wp-content directory and database values. Backpress WordPress, the original BBpress and glotpress amongst others are built around the BackPress library. You could use this instead of WordPress to do your work though numerous APIs and features may be missing or in need of re-implementation/porting Option tables I would also bear in mind that WordPress loads the entire options table into memory to cut down on queries, if you're saving any large values in there it'll impact on performance. Exiting early You could also try hooking into earlier functions in the WordPress load process and exiting the PHP process before WordPress is finished, but I can't advise on how safe that would be. Selectively loading plugins There is also this article on selectively loading plugins, but it does require hacks to the wordpress core files
wordpress
{ "language": "en", "length": 721, "provenance": "stackexchange_00019.jsonl.gz:418726", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/47863" }
[ 0.028411865234375, 0.006450653076171875, 0.0037860870361328125, -0.04925537109375, 0.00714111328125, -0.017547607421875, 0.00928497314453125, -0.01385498046875, 0.0241851806640625, -0.01788330078125, -0.029083251953125, -0.01311492919921875, -0.059906005859375, -0.033782958984375, -0.01727294921875, -0.070068359375, 0.0221405029296875, 0.01200103759765625, 0.0265960693359375, -0.015777587890625, -0.0009617805480957031, 0.00878143310546875, -0.0148773193359375, 0.046600341796875, -0.00433349609375, -0.00543975830078125, 0.0802001953125, -0.0244903564453125, -0.0213623046875, -0.04345703125, 0.00936126708984375, 0.035888671875, 0.03045654296875, 0.00432586669921875, -0.018707275390625, 0.004364013671875, -0.0172882080078125, 0.00868988037109375, -0.004947662353515625, 0.02752685546875, 0.0147552490234375, -0.0016202926635742188, 0.0423583984375, 0.020751953125, -0.004413604736328125, -0.0201416015625, 0.022613525390625, -0.0278167724609375, 0.02679443359375, -0.026763916015625, 0.0225677490234375, 0.030517578125, 0.044464111328125, -0.0703125, -0.01314544677734375, 0.019256591796875, -0.033599853515625, 0.0273590087890625, 0.024261474609375, 0.044097900390625, -0.003856658935546875, -0.01154327392578125, -0.0016422271728515625, -0.0362548828125, 0.004913330078125, -0.0181121826171875, -0.0192108154296875, 0.0193023681640625, -0.047332763671875, 0.02227783203125, 0.06341552734375, -0.039398193359375, 0.0114898681640625, -0.01824951171875, -0.006671905517578125, 0.0080718994140625, 0.0048675537109375, -0.00476837158203125, 0.032989501953125, -0.020599365234375, -0.003875732421875, -0.0207366943359375, -0.06695556640625, 0.01132965087890625, -0.0016222000122070312, 0.05474853515625, 0.0036258697509765625, -0.024566650390625, 0.00885772705078125, 0.025299072265625, -0.0120697021484375, 0.00777435302734375, 0.0048828125, 0.025360107421875, -0.0003180503845214844, -0.002716064453125, 0.0088653564453125, 0.044158935546875, -0.00457000732421875, 0.0179290771484375, -0.01465606689453125, -0.040435791015625, 0.0266265869140625, -0.0313720703125, 0.0076904296875, 0.039215087890625, -0.01055145263671875, -0.01006317138671875, 0.0191192626953125, 0.0310516357421875, 0.0025482177734375, -0.007904052734375, -0.032318115234375, -0.0185394287109375, -0.040069580078125, -0.003582000732421875, -0.043243408203125, -0.005107879638671875, -0.0027484893798828125, -0.01288604736328125, -0.010772705078125, 0.0155029296875, -0.025238037109375, -0.01197052001953125, -0.007152557373046875, -0.03302001953125, -0.00933837890625, -0.005504608154296875, -0.035400390625, 0.04168701171875, -0.0056915283203125, 0.00153350830078125, 0.037139892578125, -0.0039825439453125, -0.0220794677734375, -0.0257415771484375, 0.01495361328125, 0.00812530517578125, 0.0001957416534423828, 0.00814056396484375, 0.035491943359375, -0.032684326171875, -0.0287628173828125, 0.024383544921875, -0.015838623046875, 0.00887298583984375, 0.027801513671875, 0.0250244140625, -0.021514892578125, -0.0199432373046875, -0.0180511474609375, 0.048675537109375, 0.045166015625, -0.0107879638671875, -0.0228271484375, -0.041229248046875, 0.0400390625, -0.044891357421875, -0.037567138671875, -0.05474853515625, -0.0146636962890625, -0.0245361328125, -0.01528167724609375, -0.033782958984375, -0.032745361328125, 0.0228729248046875, -0.0026378631591796875, 0.005550384521484375, 0.0211181640625, -0.0093536376953125, 0.0111083984375, -0.00811767578125, 0.0233917236328125, 0.006801605224609375, 0.005016326904296875, 0.02264404296875, 0.0016794204711914062, 0.0029964447021484375, 0.040374755859375, 0.031280517578125, 0.0053253173828125, -0.0242156982421875, 0.07733154296875, -0.0142364501953125, -0.07098388671875, -0.0288238525390625, 0.0033416748046875, 0.01076507568359375, 0.037872314453125, 0.0020599365234375, 0.075439453125, -0.0102996826171875, -0.032989501953125, 0.0185546875, -0.024566650390625, -0.0285797119140625, -0.04022216796875, 0.0064697265625, -0.025421142578125, 0.01094818115234375, 0.018341064453125, -0.006984710693359375, 0.01291656494140625, -0.00879669189453125, -0.052978515625, -0.0169830322265625, -0.0181884765625, 0.00890350341796875, 0.0203399658203125, -0.01248931884765625, 0.005840301513671875, -0.0014657974243164062, -0.009674072265625, -0.035247802734375, -0.03533935546875, 0.06414794921875, -0.01396942138671875, 0.0430908203125, 0.021026611328125, 0.039794921875, 0.0165863037109375, -0.0228729248046875, 0.005931854248046875, -0.01351165771484375, 0.0170440673828125, 0.0088043212890625, -0.0159454345703125, -0.0034961700439453125, 0.04693603515625, 0.00710296630859375, 0.05072021484375, 0.0153045654296875, 0.0238037109375, 0.039031982421875, -0.037261962890625, -0.01142120361328125, -0.0265655517578125, -0.0259246826171875, 0.0021152496337890625, 0.04510498046875, 0.028167724609375, 0.0159912109375, -0.0114898681640625, 0.020416259765625, 0.0286712646484375, -0.0516357421875, 0.00778961181640625, 0.01345062255859375, 0.02734375, 0.0300445556640625, -0.040557861328125, -0.01253509521484375, 0.027252197265625, -0.0005221366882324219, 0.012176513671875, 0.03271484375, -0.0134429931640625, -0.0087738037109375, 0.0168609619140625, -0.00942230224609375, 0.0169677734375, 0.0015897750854492188, -0.0328369140625, 0.00464630126953125, 0.0186004638671875, 0.02325439453125, 0.035552978515625, 0.0292205810546875, -0.0089111328125, 0.02716064453125, -0.01444244384765625, -0.064697265625, -0.0157928466796875, 0.0011854171752929688, 0.0308990478515625, -0.032012939453125, -0.04107666015625, 0.01702880859375, -0.00630950927734375, -0.0157623291015625, -0.0219879150390625, 0.002742767333984375, 0.01690673828125, -0.0078887939453125, -0.01763916015625, -0.0308074951171875, 0.045654296875, 0.008575439453125, 0.0227203369140625, -0.03399658203125, 0.01568603515625, 0.004505157470703125, -0.0222015380859375, 0.030792236328125, 0.023101806640625, -0.06378173828125, 0.045806884765625, -0.049224853515625, 0.0289154052734375, -0.0083465576171875, 0.04022216796875, 0.07470703125, 0.020050048828125, -0.006336212158203125, -0.00432586669921875, 0.0224609375, 0.0214996337890625, -0.005840301513671875, -0.0242767333984375, -0.0020599365234375, -0.0423583984375, -0.0178070068359375, 0.0203094482421875, 0.0175323486328125, 0.00666046142578125, -0.034637451171875, -0.0167388916015625, 0.00934600830078125, -0.05682373046875, -0.04150390625, -0.035552978515625, -0.06427001953125, 0.035675048828125, -0.0080413818359375, -0.0266571044921875, -0.020599365234375, 0.0180816650390625, 0.020233154296875, -0.022705078125, -0.031494140625, -0.040679931640625, -0.091064453125, -0.09088134765625, -0.01171875, 0.004253387451171875, 0.02423095703125, -0.001895904541015625, 0.0743408203125, 0.023284912109375, -0.046630859375, -0.001644134521484375, 0.04791259765625, -0.03564453125, -0.0184326171875, 0.004268646240234375, -0.0167694091796875, 0.00982666015625, 0.0003719329833984375, 0.015472412109375, 0.0241241455078125, -0.01094818115234375, -0.0125579833984375, -0.031768798828125, -0.0277099609375, -0.04241943359375, 0.0218505859375, 0.060089111328125, -0.06793212890625, -0.045440673828125, -0.081298828125, -0.03009033203125, 0.0013027191162109375, -0.036529541015625, 0.0113372802734375, 0.01202392578125, -0.0264129638671875, -0.0222625732421875, 0.0189971923828125, 0.0261993408203125, 0.03814697265625, 0.0396728515625, -0.006649017333984375, -0.0202789306640625, -0.02496337890625, -0.02288818359375, -0.03363037109375, 0.03717041015625, -0.029937744140625, -0.034637451171875, -0.0079498291015625, -0.0204010009765625, -0.0160369873046875, -0.024566650390625, -0.011962890625, -0.0025844573974609375, 0.02020263671875, -0.0206298828125, 0.05780029296875, -0.061431884765625, -0.0021114349365234375, -0.059967041015625, 0.0582275390625, -0.01910400390625, 0.017425537109375, 0.0014295578002929688, -0.0042724609375, 0.00763702392578125, -0.048797607421875, -0.055267333984375, -0.015472412109375, -0.04876708984375, 0.01384735107421875, -0.0325927734375, -0.000021636486053466797, 0.0225830078125, -0.06573486328125, 0.00543975830078125, -0.06292724609375, 0.02642822265625, -0.05328369140625, 0.032073974609375, 0.01171112060546875, 0.0112457275390625, -0.00980377197265625, 0.0035686492919921875, -0.06451416015625, -0.112548828125, -0.0203704833984375, -0.036956787109375, 0.073974609375, 0.010711669921875, 0.031829833984375, -0.0390625, 0.04473876953125, -0.0218658447265625, 0.0000247955322265625, -0.005458831787109375, 0.0012235641479492188, 0.01480865478515625, 0.002445220947265625, -0.0043487548828125, -0.00197601318359375, -0.0201263427734375, -0.0142669677734375, -0.0222625732421875, 0.01047515869140625, -0.0231170654296875, -0.006656646728515625, -0.0021209716796875, -0.01027679443359375, -0.0102691650390625, -0.051239013671875, -0.0260162353515625, -0.0206756591796875, -0.01058197021484375, -0.0131988525390625, -0.031890869140625, 0.006381988525390625, 0.068359375, 0.014617919921875, -0.00839996337890625, -0.0095062255859375, 0.0697021484375, 0.008392333984375, -0.035430908203125, -0.034423828125, -0.0170745849609375, 0.00455474853515625, -0.00789642333984375, 0.0755615234375, 0.038543701171875, 0.016998291015625, 0.038909912109375, -0.0130157470703125, 0.0299224853515625, -0.01499176025390625, 0.0423583984375, -0.003078460693359375, -0.02960205078125, 0.03900146484375, 0.0163726806640625, -0.032745361328125, 0.0248870849609375, -0.0220947265625, 0.001888275146484375, 0.005329132080078125, 0.0133209228515625, -0.036956787109375, 0.02008056640625, -0.018524169921875, -0.030517578125, 0.0073699951171875, -0.030364990234375, 0.021942138671875, 0.01340484619140625, 0.0013179779052734375, 0.01372528076171875, 0.02996826171875, -0.01050567626953125, 0.06951904296875, 0.053619384765625, 0.029876708984375, 0.0275115966796875, 0.07525634765625, 0.0008530616760253906, -0.0117340087890625, -0.004459381103515625, 0.0103912353515625, -0.0202789306640625, -0.0672607421875, 0.0028324127197265625, -0.0026912689208984375, 0.01190948486328125, 0.0305938720703125, 0.0007967948913574219, 0.066162109375, 0.04681396484375, -0.037750244140625, -0.040313720703125, -0.017242431640625, 0.0007648468017578125, -0.07427978515625, 0.00937652587890625, -0.01206207275390625, -0.0128936767578125, -0.0075531005859375, 0.0090789794921875, -0.02581787109375, -0.0015497207641601562, 0.00978851318359375, 0.0235443115234375, 0.0009608268737792969, 0.043426513671875, 0.00014328956604003906, -0.00472259521484375, 0.00600433349609375, 0.0233917236328125, 0.020751953125, -0.0311279296875, -0.045989990234375, 0.006488800048828125, 0.033966064453125, -0.0699462890625, -0.01219940185546875, 0.050689697265625, -0.01560211181640625, -0.006122589111328125, 0.05133056640625, -0.030731201171875, -0.04876708984375, -0.044158935546875, -0.0243988037109375, 0.07672119140625, -0.02618408203125, -0.004047393798828125, 0.01494598388671875, 0.0031375885009765625, 0.00455474853515625, 0.034271240234375, -0.06500244140625, 0.0140228271484375, 0.0303955078125, 0.04644775390625, -0.022125244140625, -0.0299530029296875, -0.050384521484375, 0.007717132568359375, -0.036407470703125, -0.0011262893676757812, 0.042999267578125, -0.037689208984375, 0.004093170166015625, -0.0134429931640625, 0.01126861572265625, -0.03021240234375, 0.03192138671875, -0.008270263671875, -0.02349853515625, 0.0006422996520996094, -0.003620147705078125, -0.049896240234375, -0.040130615234375, -0.033966064453125, -0.037200927734375, -0.045074462890625, -0.01148223876953125, -0.016357421875, 0.01406097412109375, -0.0192108154296875, 0.004306793212890625, -0.0277862548828125, 0.00418853759765625, 0.0024890899658203125, 0.0076751708984375, -0.0310211181640625, 0.1083984375, 0.020111083984375, 0.01399993896484375, 0.0181884765625, 0.061248779296875, 0.00673675537109375, -0.01074981689453125, -0.006290435791015625, -0.06842041015625, -0.029754638671875, 0.01462554931640625, -0.058746337890625, 0.052215576171875, 0.043243408203125, -0.00044989585876464844, 0.007518768310546875, -0.022705078125, -0.0036258697509765625, -0.0165557861328125, 0.03509521484375, -0.004772186279296875, 0.0108795166015625, -0.0062408447265625, -0.0199432373046875, -0.0196533203125, -0.00266265869140625, -0.02569580078125, 0.0245361328125, 0.00942230224609375, -0.00020766258239746094, 0.005908966064453125, -0.0180511474609375, 0.041839599609375, 0.051513671875, -0.023956298828125, 0.03594970703125, 0.032257080078125, 0.0078125, 0.023773193359375, 0.0301513671875, 0.00777435302734375, -0.0225982666015625, 0.04852294921875, 0.01922607421875, -0.0086822509765625, 0.025726318359375, -0.0178375244140625, 0.00803375244140625, 0.040740966796875, 0.05010986328125, -0.04901123046875, 0.0004954338073730469, 0.03460693359375, -0.019805908203125, -0.0335693359375, 0.0062408447265625, -0.0094146728515625, -0.01203155517578125, 0.00001436471939086914, -0.0131378173828125, -0.0233154296875, 0.0008196830749511719, 0.0240936279296875, 0.00217437744140625, 0.0220489501953125, 0.05810546875, 0.0260009765625, 0.0198974609375, -0.020355224609375, -0.0206451416015625, 0.0347900390625, 0.028167724609375, 0.0195770263671875, -0.0406494140625, -0.042022705078125, -0.05291748046875, -0.04620361328125, 0.0034122467041015625, -0.059417724609375, 0.04241943359375, -0.014190673828125, 0.028717041015625, 0.04559326171875, -0.0027618408203125, 0.0043487548828125, 0.0203094482421875, 0.00653839111328125, 0.04779052734375, -0.04937744140625, 0.0017156600952148438, 0.02215576171875, -0.0540771484375, 0.007434844970703125, 0.02569580078125, -0.0350341796875, 0.0095672607421875, -0.040802001953125, 0.04144287109375, -0.036224365234375, -0.0114288330078125, 0.0021343231201171875, -0.01302337646484375, 0.0103607177734375, -0.012969970703125, 0.016815185546875, -0.06463623046875, -0.04437255859375, -0.01364898681640625, -0.05145263671875, -0.0301971435546875, -0.033477783203125, -0.06298828125, 0.11932373046875, -0.02471923828125, 0.040069580078125, 0.033233642578125, 0.033172607421875, -0.033294677734375, 0.013153076171875, -0.019775390625, 0.07476806640625, 0.0138092041015625, 0.018280029296875, -0.0496826171875, 0.006378173828125, 0.009033203125, 0.03436279296875, 0.01129913330078125, -0.0018777847290039062, -0.0226287841796875, 0.00798797607421875, 0.046783447265625, 0.040740966796875, 0.01387786865234375, 0.0233917236328125, 0.01328277587890625, -0.0005135536193847656, -0.0058746337890625, -0.0168914794921875, 0.02386474609375, -0.0201263427734375, -0.005893707275390625, 0.037750244140625, 0.03564453125, 0.035675048828125, 0.0177459716796875, 0.047637939453125, 0.006092071533203125, 0.0079498291015625, 0.0231170654296875, -0.0006198883056640625, 0.02557373046875, -0.006458282470703125, 0.0113525390625, -0.049468994140625, -0.018035888671875, -0.0024738311767578125, 0.0281829833984375, -0.0007948875427246094, 0.0002627372741699219, 0.054840087890625, 0.01617431640625, 0.0200042724609375, -0.05401611328125, -0.0098876953125, -0.052459716796875, 0.0033721923828125, -0.0036716461181640625, -0.0034332275390625, 0.0462646484375, -0.01123046875, 0.005016326904296875, -0.0036373138427734375, -0.00823974609375, -0.007442474365234375, -0.0748291015625, 0.0244140625, 0.00760650634765625, -0.01068115234375, 0.01035308837890625, -0.0345458984375, -0.048126220703125, 0.04388427734375, -0.05029296875, -0.01006317138671875, 0.047027587890625, -0.032440185546875, 0.0164947509765625, 0.031707763671875, 0.0166473388671875, 0.0106964111328125, -0.00001633167266845703, -0.00717926025390625, 0.01116943359375, 0.03851318359375, -0.036346435546875, 0.062469482421875, -0.0675048828125, 0.01021575927734375, -0.020965576171875, 0.0638427734375, -0.0223388671875, 0.0233917236328125, -0.0653076171875, -0.07440185546875, -0.01641845703125, 0.0609130859375, 0.0272674560546875, 0.040313720703125, 0.059814453125, 0.0391845703125, -0.0579833984375, 0.01898193359375, 0.07513427734375, -0.024505615234375, -0.0278472900390625, -0.0119781494140625, -0.0194549560546875, 0.0027828216552734375, -0.01535797119140625, 0.005279541015625, 0.0255279541015625, 0.01065826416015625, -0.0194091796875, -0.00445556640625, 0.0045928955078125, -0.035797119140625, 0.0280914306640625, 0.0001533031463623047, 0.04083251953125, 0.0167999267578125, -0.0587158203125, 0.01230621337890625, -0.0167388916015625, -0.01508331298828125, -0.01050567626953125, 0.02020263671875, -0.038299560546875, 0.047882080078125, -0.0002529621124267578, 0.0035648345947265625, -0.0143585205078125, -0.0198974609375, 0.02801513671875, -0.002857208251953125, 0.016265869140625, 0.003536224365234375, -0.0196685791015625, 0.005481719970703125, -0.0254974365234375, 0.0247344970703125, 0.053192138671875, 0.09954833984375, -0.026123046875, 0.0289154052734375, -0.0039043426513671875, -0.06365966796875, 0.03363037109375, 0.009246826171875, -0.03204345703125, -0.017578125, -0.0157318115234375, -0.005649566650390625, 0.0081024169921875, 0.026641845703125, 0.030517578125, -0.0128936767578125, 0.0059967041015625, -0.0127105712890625, 0.0220947265625, 0.008209228515625, 0.044158935546875, -0.0164031982421875, -0.02392578125, -0.027191162109375, 0.00885009765625, 0.01824951171875, 0.0255279541015625, -0.0144500732421875, 0.0125579833984375, 0.00417327880859375, -0.0236968994140625, -0.01255035400390625, -0.0135498046875, -0.0213470458984375, 0.0262298583984375, 0.01061248779296875, -0.05316162109375, 0.0005373954772949219, -0.00753021240234375, -0.0196075439453125, 0.01549530029296875, 0.02996826171875, -0.0025730133056640625, -0.041259765625, 0.00666046142578125, 0.01528167724609375, 0.01354217529296875, -0.05126953125, 0.0133056640625, 0.039794921875, 0.004970550537109375, 0.04547119140625, -0.04779052734375, -0.0218353271484375, -0.052459716796875, -0.035919189453125, -0.01055145263671875, -0.053680419921875, -0.08282470703125, 0.0011720657348632812, 0.0157318115234375, 0.0297088623046875, 0.008056640625, -0.060302734375, 0.0361328125, -0.021209716796875, 0.038421630859375, -0.0225067138671875, 0.039031982421875, -0.0439453125, -0.01525115966796875, -0.044403076171875, -0.05657958984375, -0.050018310546875, 0.060943603515625, -0.040863037109375, 0.01363372802734375, 0.06939697265625, -0.015045166015625, -0.06695556640625, -0.0064239501953125, -0.005023956298828125, 0.05267333984375, -0.05377197265625, -0.00887298583984375, 0.0174102783203125, 0.0086517333984375, -0.00537872314453125, -0.06610107421875, -0.020355224609375, -0.020263671875, 0.00716400146484375, -0.00911712646484375, -0.0270538330078125, -0.039825439453125, -0.0693359375, -0.044586181640625, 0.07366943359375, -0.00421905517578125, -0.0294189453125, -0.0289306640625, 0.00691986083984375, -0.0047149658203125, 0.032745361328125, 0.002193450927734375, -0.030517578125, -0.029296875, 0.02587890625, 0.0018939971923828125, -0.0243988037109375, 0.052520751953125, -0.033111572265625, -0.037384033203125, -0.03509521484375, -0.01317596435546875, -0.01313018798828125, 0.0474853515625, 0.017303466796875, 0.033294677734375, 0.0833740234375, 0.004192352294921875, 0.061126708984375, -0.031982421875, -0.117431640625, -0.0073089599609375, -0.048492431640625, -0.01036834716796875, -0.00901031494140625, 0.055694580078125, 0.019622802734375, 0.01259613037109375, -0.0184783935546875, -0.0197906494140625, 0.0111541748046875, -0.005130767822265625, -0.0163116455078125, 0.017974853515625, -0.061248779296875, -0.040069580078125, -0.0294189453125, 0.0006651878356933594, 0.00711822509765625, 0.00826263427734375, -0.0167083740234375, -0.0272674560546875, -0.0400390625, -0.029205322265625, -0.03857421875, -0.06768798828125, 0.033843994140625, -0.01325225830078125, 0.0071563720703125, 0.00016486644744873047, 0.041046142578125, 0.0093841552734375, 0.04791259765625, -0.024993896484375, -0.009674072265625, -0.0180511474609375, 0.01357269287109375, 0.007965087890625, -0.01526641845703125, 0.004764556884765625, -0.0018072128295898438, -0.0208282470703125, -0.01432037353515625, 0.01255035400390625, -0.020751953125, -0.0159149169921875, -0.038818359375, 0.000522613525390625, 0.017608642578125, -0.016082763671875, 0.0028476715087890625, -0.039093017578125, 0.02508544921875, -0.006366729736328125, -0.01097869873046875, 0.01189422607421875, 0.00611114501953125, 0.0112457275390625, 0.0159912109375, -0.01025390625, -0.0265655517578125, -0.0018606185913085938, 0.034698486328125, -0.0015535354614257812, 0.005359649658203125 ]